(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-libs"],{"00bb":function(e,t,n){(function(t,r,i){e.exports=r(n("21bf"),n("38ba"))})(0,(function(e){return e.mode.CFB=function(){var t=e.lib.BlockCipherMode.extend();function n(e,t,n,r){var i,o=this._iv;o?(i=o.slice(0),this._iv=void 0):i=this._prevBlock,r.encryptBlock(i,0);for(var a=0;ai)K(e,n=r[i++],t[n]);return e},J=function(e,t){return void 0===t?M(e):Z(M(e),t)},Q=function(e){var t=Y.call(this,e=x(e,!0));return!(this===V&&i(z,e)&&!i(H,e))&&(!(t||!i(this,e)||!i(z,e)||i(this,N)&&this[N][e])||t)},ee=function(e,t){if(e=w(e),t=x(t,!0),e!==V||!i(z,t)||i(H,t)){var n=A(e,t);return!n||!i(z,t)||i(e,N)&&e[N][t]||(n.enumerable=!0),n}},te=function(e){var t,n=E(w(e)),r=[],o=0;while(n.length>o)i(z,t=n[o++])||t==N||t==l||r.push(t);return r},ne=function(e){var t,n=e===V,r=E(n?H:w(e)),o=[],a=0;while(r.length>a)!i(z,t=r[a++])||n&&!i(V,t)||o.push(z[t]);return o};W||(I=function(){if(this instanceof I)throw TypeError("Symbol is not a constructor!");var e=h(arguments.length>0?arguments[0]:void 0),t=function(n){this===V&&t.call(H,n),i(this,N)&&i(this[N],e)&&(this[N][e]=!1),G(this,e,k(1,n))};return o&&$&&G(V,e,{configurable:!0,set:t}),q(e)},s(I[R],"toString",(function(){return this._k})),C.f=ee,O.f=K,n("6abf").f=S.f=te,n("355d").f=Q,T.f=ne,o&&!n("b8e3")&&s(V,"propertyIsEnumerable",Q,!0),p.f=function(e){return q(f(e))}),a(a.G+a.W+a.F*!W,{Symbol:I});for(var re="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ie=0;re.length>ie;)f(re[ie++]);for(var oe=L(f.store),ae=0;oe.length>ae;)m(oe[ae++]);a(a.S+a.F*!W,"Symbol",{for:function(e){return i(F,e+="")?F[e]:F[e]=I(e)},keyFor:function(e){if(!X(e))throw TypeError(e+" is not a symbol!");for(var t in F)if(F[t]===e)return t},useSetter:function(){$=!0},useSimple:function(){$=!1}}),a(a.S+a.F*!W,"Object",{create:J,defineProperty:K,defineProperties:Z,getOwnPropertyDescriptor:ee,getOwnPropertyNames:te,getOwnPropertySymbols:ne});var se=u((function(){T.f(1)}));a(a.S+a.F*se,"Object",{getOwnPropertySymbols:function(e){return T.f(_(e))}}),j&&a(a.S+a.F*(!W||u((function(){var e=I();return"[null]"!=P([e])||"{}"!=P({a:e})||"{}"!=P(Object(e))}))),"JSON",{stringify:function(e){var t,n,r=[e],i=1;while(arguments.length>i)r.push(arguments[i++]);if(n=t=r[1],(b(t)||void 0!==e)&&!X(e))return v(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!X(t))return t}),r[1]=t,P.apply(j,r)}}),I[R][B]||n("35e8")(I[R],B,I[R].valueOf),d(I,"Symbol"),d(Math,"Math",!0),d(r.JSON,"JSON",!0)},"01f9":function(e,t,n){"use strict";var r=n("2d00"),i=n("5ca1"),o=n("2aba"),a=n("32e9"),s=n("84f2"),l=n("41a0"),u=n("7f20"),c=n("38fd"),d=n("2b4c")("iterator"),h=!([].keys&&"next"in[].keys()),f="@@iterator",p="keys",m="values",g=function(){return this};e.exports=function(e,t,n,v,y,b,_){l(n,t,v);var w,x,k,M=function(e){if(!h&&e in O)return O[e];switch(e){case p:return function(){return new n(this,e)};case m:return function(){return new n(this,e)}}return function(){return new n(this,e)}},S=t+" Iterator",C=y==m,T=!1,O=e.prototype,L=O[d]||O[f]||y&&O[y],A=L||M(y),D=y?C?M("entries"):A:void 0,E="Array"==t&&O.entries||L;if(E&&(k=c(E.call(new e)),k!==Object.prototype&&k.next&&(u(k,S,!0),r||"function"==typeof k[d]||a(k,d,g))),C&&L&&L.name!==m&&(T=!0,A=function(){return L.call(this)}),r&&!_||!h&&!T&&O[d]||a(O,d,A),s[t]=A,s[S]=g,y)if(w={values:C?A:M(m),keys:b?A:M(p),entries:D},_)for(x in w)x in O||o(O,x,w[x]);else i(i.P+i.F*(h||T),t,w);return w}},"0293":function(e,t,n){var r=n("241e"),i=n("53e2");n("ce7e")("getPrototypeOf",(function(){return function(e){return i(r(e))}}))},"0298":function(e,t,n){"use strict";var r=n("5ca1"),i=n("4bf8"),o=n("6a99");r(r.P+r.F*n("79e5")((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})})),"Date",{toJSON:function(e){var t=i(this),n=o(t);return"number"!=typeof n||isFinite(n)?t.toISOString():null}})},"02f4":function(e,t,n){var r=n("4588"),i=n("be13");e.exports=function(e){return function(t,n){var o,a,s=String(i(t)),l=r(n),u=s.length;return l<0||l>=u?e?"":void 0:(o=s.charCodeAt(l),o<55296||o>56319||l+1===u||(a=s.charCodeAt(l+1))<56320||a>57343?e?s.charAt(l):o:e?s.slice(l,l+2):a-56320+(o-55296<<10)+65536)}}},"02fb":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration var t=e.defineLocale("ml",{months:"ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ".split("_"),monthsShort:"ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.".split("_"),monthsParseExact:!0,weekdays:"ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച".split("_"),weekdaysShort:"ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി".split("_"),weekdaysMin:"ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ".split("_"),longDateFormat:{LT:"A h:mm -നു",LTS:"A h:mm:ss -നു",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -നു",LLLL:"dddd, D MMMM YYYY, A h:mm -നു"},calendar:{sameDay:"[ഇന്ന്] LT",nextDay:"[നാളെ] LT",nextWeek:"dddd, LT",lastDay:"[ഇന്നലെ] LT",lastWeek:"[കഴിഞ്ഞ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s കഴിഞ്ഞ്",past:"%s മുൻപ്",s:"അൽപ നിമിഷങ്ങൾ",ss:"%d സെക്കൻഡ്",m:"ഒരു മിനിറ്റ്",mm:"%d മിനിറ്റ്",h:"ഒരു മണിക്കൂർ",hh:"%d മണിക്കൂർ",d:"ഒരു ദിവസം",dd:"%d ദിവസം",M:"ഒരു മാസം",MM:"%d മാസം",y:"ഒരു വർഷം",yy:"%d വർഷം"},meridiemParse:/രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,meridiemHour:function(e,t){return 12===e&&(e=0),"രാത്രി"===t&&e>=4||"ഉച്ച കഴിഞ്ഞ്"===t||"വൈകുന്നേരം"===t?e+12:e},meridiem:function(e,t,n){return e<4?"രാത്രി":e<12?"രാവിലെ":e<17?"ഉച്ച കഴിഞ്ഞ്":e<20?"വൈകുന്നേരം":"രാത്രി"}});return t}))},"036c":function(e,t,n){"use strict";var r=n("5ca1"),i=n("4588"),o=n("bef9"),a=n("9744"),s=1..toFixed,l=Math.floor,u=[0,0,0,0,0,0],c="Number.toFixed: incorrect invocation!",d="0",h=function(e,t){var n=-1,r=t;while(++n<6)r+=e*u[n],u[n]=r%1e7,r=l(r/1e7)},f=function(e){var t=6,n=0;while(--t>=0)n+=u[t],u[t]=l(n/e),n=n%e*1e7},p=function(){var e=6,t="";while(--e>=0)if(""!==t||0===e||0!==u[e]){var n=String(u[e]);t=""===t?n:t+a.call(d,7-n.length)+n}return t},m=function(e,t,n){return 0===t?n:t%2===1?m(e,t-1,n*e):m(e*e,t/2,n)},g=function(e){var t=0,n=e;while(n>=4096)t+=12,n/=4096;while(n>=2)t+=1,n/=2;return t};r(r.P+r.F*(!!s&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!n("79e5")((function(){s.call({})}))),"Number",{toFixed:function(e){var t,n,r,s,l=o(this,c),u=i(e),v="",y=d;if(u<0||u>20)throw RangeError(c);if(l!=l)return"NaN";if(l<=-1e21||l>=1e21)return String(l);if(l<0&&(v="-",l=-l),l>1e-21)if(t=g(l*m(2,69,1))-69,n=t<0?l*m(2,-t,1):l/m(2,t,1),n*=4503599627370496,t=52-t,t>0){h(0,n),r=u;while(r>=7)h(1e7,0),r-=7;h(m(10,r,1),0),r=t-1;while(r>=23)f(1<<23),r-=23;f(1<0?(s=y.length,y=v+(s<=u?"0."+a.call(d,u-s)+y:y.slice(0,s-u)+"."+y.slice(s-u))):y=v+y,y}})},"037e":function(e,t,n){},"0390":function(e,t,n){"use strict";var r=n("02f4")(!0);e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},"0395":function(e,t,n){var r=n("36c3"),i=n("6abf").f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return i(e)}catch(t){return a.slice()}};e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?s(e):i(r(e))}},"03ec":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration var t=e.defineLocale("cv",{months:"кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав".split("_"),monthsShort:"кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш".split("_"),weekdays:"вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун".split("_"),weekdaysShort:"выр_тун_ытл_юн_кӗҫ_эрн_шӑм".split("_"),weekdaysMin:"вр_тн_ыт_юн_кҫ_эр_шм".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]",LLL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm",LLLL:"dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm"},calendar:{sameDay:"[Паян] LT [сехетре]",nextDay:"[Ыран] LT [сехетре]",lastDay:"[Ӗнер] LT [сехетре]",nextWeek:"[Ҫитес] dddd LT [сехетре]",lastWeek:"[Иртнӗ] dddd LT [сехетре]",sameElse:"L"},relativeTime:{future:function(e){var t=/сехет$/i.exec(e)?"рен":/ҫул$/i.exec(e)?"тан":"ран";return e+t},past:"%s каялла",s:"пӗр-ик ҫеккунт",ss:"%d ҫеккунт",m:"пӗр минут",mm:"%d минут",h:"пӗр сехет",hh:"%d сехет",d:"пӗр кун",dd:"%d кун",M:"пӗр уйӑх",MM:"%d уйӑх",y:"пӗр ҫул",yy:"%d ҫул"},dayOfMonthOrdinalParse:/\d{1,2}-мӗш/,ordinal:"%d-мӗш",week:{dow:1,doy:7}});return t}))},"042d":function(e,t,n){},"042e":function(e,t,n){var r=n("5ca1");r(r.S,"Math",{fround:n("91ca")})},"044b":function(e,t){ /*! * Determine if an object is a Buffer * * @author Feross Aboukhadijeh * @license MIT */ e.exports=function(e){return null!=e&&null!=e.constructor&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},"049f":function(e,t,n){var r=n("5ca1");r(r.S,"Math",{log1p:n("d6c6")})},"04fb":function(e,t,n){"use strict";var r=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var i=r(n("7037")),o=r(n("970b"));n("0ca1");var a=r(n("9886")),s=n("5557"),l=n("a736"),u=function e(t){if((0,o["default"])(this,e),!t)return console.error("Charts Missing parameters!"),!1;var n=t.clientWidth,r=t.clientHeight,i=document.createElement("canvas");i.setAttribute("width",n),i.setAttribute("height",r),t.appendChild(i);var s={container:t,canvas:i,render:new a["default"](i),option:null};Object.assign(this,s)};t["default"]=u,u.prototype.setOption=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e||"object"!==(0,i["default"])(e))return console.error("setOption Missing parameters!"),!1;t&&this.render.graphs.forEach((function(e){return e.animationEnd()}));var n=(0,s.deepClone)(e,!0);(0,l.mergeColor)(this,n),(0,l.grid)(this,n),(0,l.axis)(this,n),(0,l.radarAxis)(this,n),(0,l.title)(this,n),(0,l.bar)(this,n),(0,l.line)(this,n),(0,l.pie)(this,n),(0,l.radar)(this,n),(0,l.gauge)(this,n),(0,l.legend)(this,n),this.option=e,this.render.launchAnimation()},u.prototype.resize=function(){var e=this.container,t=this.canvas,n=this.render,r=this.option,i=e.clientWidth,o=e.clientHeight;t.setAttribute("width",i),t.setAttribute("height",o),n.area=[i,o],this.setOption(r)}},"04ff":function(e,t,n){var r=n("5ca1"),i=n("3ca5");r(r.S+r.F*(Number.parseInt!=i),"Number",{parseInt:i})},"050c":function(e,t,n){"use strict";var r=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"bezierCurveToPolyline",{enumerable:!0,get:function(){return i.bezierCurveToPolyline}}),Object.defineProperty(t,"getBezierCurveLength",{enumerable:!0,get:function(){return i.getBezierCurveLength}}),Object.defineProperty(t,"polylineToBezierCurve",{enumerable:!0,get:function(){return o["default"]}}),t["default"]=void 0;var i=n("2db9"),o=r(n("ae10")),a={bezierCurveToPolyline:i.bezierCurveToPolyline,getBezierCurveLength:i.getBezierCurveLength,polylineToBezierCurve:o["default"]};t["default"]=a},"0558":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration function t(e){return e%100===11||e%10!==1}function n(e,n,r,i){var o=e+" ";switch(r){case"s":return n||i?"nokkrar sekúndur":"nokkrum sekúndum";case"ss":return t(e)?o+(n||i?"sekúndur":"sekúndum"):o+"sekúnda";case"m":return n?"mínúta":"mínútu";case"mm":return t(e)?o+(n||i?"mínútur":"mínútum"):n?o+"mínúta":o+"mínútu";case"hh":return t(e)?o+(n||i?"klukkustundir":"klukkustundum"):o+"klukkustund";case"d":return n?"dagur":i?"dag":"degi";case"dd":return t(e)?n?o+"dagar":o+(i?"daga":"dögum"):n?o+"dagur":o+(i?"dag":"degi");case"M":return n?"mánuður":i?"mánuð":"mánuði";case"MM":return t(e)?n?o+"mánuðir":o+(i?"mánuði":"mánuðum"):n?o+"mánuður":o+(i?"mánuð":"mánuði");case"y":return n||i?"ár":"ári";case"yy":return t(e)?o+(n||i?"ár":"árum"):o+(n||i?"ár":"ári")}}var r=e.defineLocale("is",{months:"janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"),monthsShort:"jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),weekdays:"sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),weekdaysShort:"sun_mán_þri_mið_fim_fös_lau".split("_"),weekdaysMin:"Su_Má_Þr_Mi_Fi_Fö_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[í dag kl.] LT",nextDay:"[á morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[í gær kl.] LT",lastWeek:"[síðasta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s síðan",s:n,ss:n,m:n,mm:n,h:"klukkustund",hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return r}))},"0676":function(e,t){function n(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},"0680":function(e,t,n){"use strict";var r=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.axis=v;var i=r(n("7037")),o=r(n("278c")),a=r(n("9523")),s=r(n("448a")),l=n("18ad"),u=n("9d85"),c=n("becb"),d=n("5557");function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},n=t.xAxis,r=t.yAxis,i=t.series,o=[];n&&r&&i&&(o=y(n,r),o=b(o),o=o.filter((function(e){var t=e.show;return t})),o=_(o),o=w(o,i),o=j(o),o=P(o,e),o=R(o,e),o=B(o,e),o=Y(o,e)),(0,l.doUpdate)({chart:e,series:o,key:"axisLine",getGraphConfig:F}),(0,l.doUpdate)({chart:e,series:o,key:"axisTick",getGraphConfig:V}),(0,l.doUpdate)({chart:e,series:o,key:"axisLabel",getGraphConfig:$}),(0,l.doUpdate)({chart:e,series:o,key:"axisName",getGraphConfig:Z}),(0,l.doUpdate)({chart:e,series:o,key:"splitLine",getGraphConfig:te}),e.axisData=o}function y(e,t){var n,r,i=[],o=[];e instanceof Array?(n=i).push.apply(n,(0,s["default"])(e)):i.push(e);t instanceof Array?(r=o).push.apply(r,(0,s["default"])(t)):o.push(t);return i.splice(2),o.splice(2),i=i.map((function(e,t){return f(f({},e),{},{index:t,axis:"x"})})),o=o.map((function(e,t){return f(f({},e),{},{index:t,axis:"y"})})),[].concat((0,s["default"])(i),(0,s["default"])(o))}function b(e){var t=e.filter((function(e){var t=e.axis;return"x"===t})),n=e.filter((function(e){var t=e.axis;return"y"===t}));return t=t.map((function(e){return(0,c.deepMerge)((0,d.deepClone)(u.xAxisConfig),e)})),n=n.map((function(e){return(0,c.deepMerge)((0,d.deepClone)(u.yAxisConfig),e)})),[].concat((0,s["default"])(t),(0,s["default"])(n))}function _(e){var t=e.filter((function(e){var t=e.data;return"value"===t})),n=e.filter((function(e){var t=e.data;return"value"!==t}));return t.forEach((function(e){"boolean"!==typeof e.boundaryGap&&(e.boundaryGap=!1)})),n.forEach((function(e){"boolean"!==typeof e.boundaryGap&&(e.boundaryGap=!0)})),[].concat((0,s["default"])(t),(0,s["default"])(n))}function w(e,t){var n=e.filter((function(e){var t=e.data;return"value"===t})),r=e.filter((function(e){var t=e.data;return t instanceof Array}));return n=x(n,t),r=E(r),[].concat((0,s["default"])(n),(0,s["default"])(r))}function x(e,t){return e.map((function(e){var n=k(e,t),r=C(e,n),i=(0,o["default"])(r,2),a=i[0],s=i[1],l=I(a,s,e),u=e.axisLabel.formatter,c=[];return c=a<0&&s>0?L(a,s,l):A(a,s,l),c=c.map((function(e){return parseFloat(e.toFixed(2))})),f(f({},e),{},{maxValue:c.slice(-1)[0],minValue:c[0],label:D(c,u)})}))}function k(e,t){if(t=t.filter((function(e){var t=e.show,n=e.type;return!1!==t&&"pie"!==n})),0===t.length)return[0,0];var n=e.index,r=e.axis;t=S(t);var i=r+"Axis",o=t.filter((function(e){return e[i]===n}));return o.length||(o=t),M(o)}function M(e){if(e){var t=Math.min.apply(Math,(0,s["default"])(e.map((function(e){var t=e.data;return Math.min.apply(Math,(0,s["default"])((0,c.filterNonNumber)(t)))})))),n=Math.max.apply(Math,(0,s["default"])(e.map((function(e){var t=e.data;return Math.max.apply(Math,(0,s["default"])((0,c.filterNonNumber)(t)))}))));return[t,n]}}function S(e){var t=(0,d.deepClone)(e,!0);return e.forEach((function(n,r){var i=(0,c.mergeSameStackData)(n,e);t[r].data=i})),t}function C(e,t){var n=e.min,r=e.max,a=e.axis,s=(0,o["default"])(t,2),l=s[0],u=s[1],c=(0,i["default"])(n),d=(0,i["default"])(r);if(O(n)||(n=p[a+"AxisConfig"].min,c="string"),O(r)||(r=p[a+"AxisConfig"].max,d="string"),"string"===c){n=parseInt(l-m(l*parseFloat(n)/100));var h=T(n);n=parseFloat((n/h-.1).toFixed(1))*h}if("string"===d){r=parseInt(u+m(u*parseFloat(r)/100));var f=T(r);r=parseFloat((r/f+.1).toFixed(1))*f}return[n,r]}function T(e){var t=m(e).toString(),n=t.length,r=t.replace(/0*$/g,"").indexOf("0"),i=n-1;return-1!==r&&(i-=r),g(10,i)}function O(e){var t=(0,i["default"])(e),n="string"===t&&/^\d+%$/.test(e),r="number"===t;return n||r}function L(e,t,n){var r=[],i=[],o=0,a=0;do{r.push(o-=n)}while(o>e);do{i.push(a+=n)}while(a1&&(u=parseInt(u.toString().replace(/\d$/,"0"))),0===u&&(u=1),"number"===typeof i&&uo?o:u}function j(e){var t=e.filter((function(e){var t=e.axis;return"x"===t})),n=e.filter((function(e){var t=e.axis;return"y"===t}));return t[0]&&!t[0].position&&(t[0].position=u.xAxisConfig.position),t[1]&&!t[1].position&&(t[1].position="bottom"===t[0].position?"top":"bottom"),n[0]&&!n[0].position&&(n[0].position=u.yAxisConfig.position),n[1]&&!n[1].position&&(n[1].position="left"===n[0].position?"right":"left"),[].concat((0,s["default"])(t),(0,s["default"])(n))}function P(e,t){var n=t.gridArea,r=n.x,i=n.y,o=n.w,a=n.h;return e=e.map((function(e){var t=e.position,n=[];return"left"===t?n=[[r,i],[r,i+a]].reverse():"right"===t?n=[[r+o,i],[r+o,i+a]].reverse():"top"===t?n=[[r,i],[r+o,i]]:"bottom"===t&&(n=[[r,i+a],[r+o,i+a]]),f(f({},e),{},{linePosition:n})})),e}function R(e,t){return e.map((function(e){var t=e.axis,n=e.linePosition,r=e.position,i=e.label,a=e.boundaryGap;"boolean"!==typeof a&&(a=p[t+"AxisConfig"].boundaryGap);var s=i.length,l=(0,o["default"])(n,2),u=(0,o["default"])(l[0],2),c=u[0],d=u[1],h=(0,o["default"])(l[1],2),m=h[0],g=h[1],v="x"===t?m-c:g-d,y=v/(a?s:s-1),b=new Array(s).fill(0).map((function(e,n){return"x"===t?[c+y*(a?n+.5:n),d]:[c,d+y*(a?n+.5:n)]})),_=N(t,a,r,b,y);return f(f({},e),{},{tickPosition:b,tickLinePosition:_,tickGap:y})}))}function N(e,t,n,r,i){var a="x"===e?1:0,s=5;"x"===e&&"top"===n&&(s=-5),"y"===e&&"left"===n&&(s=-5);var l=r.map((function(e){var t=(0,d.deepClone)(e);return t[a]+=s,[(0,d.deepClone)(e),t]}));return t?(a="x"===e?0:1,s=i/2,l.forEach((function(e){var t=(0,o["default"])(e,2),n=t[0],r=t[1];n[a]+=s,r[a]+=s})),l):l}function B(e,t){return e.map((function(e){var t=e.nameGap,n=e.nameLocation,r=e.position,i=e.linePosition,a=(0,o["default"])(i,2),l=a[0],u=a[1],c=(0,s["default"])(l);"end"===n&&(c=(0,s["default"])(u)),"center"===n&&(c[0]=(l[0]+u[0])/2,c[1]=(l[1]+u[1])/2);var d=0;"top"===r&&"center"===n&&(d=1),"bottom"===r&&"center"===n&&(d=1),"left"===r&&"center"!==n&&(d=1),"right"===r&&"center"!==n&&(d=1);var h=t;return"top"===r&&"end"!==n&&(h*=-1),"left"===r&&"start"!==n&&(h*=-1),"bottom"===r&&"start"===n&&(h*=-1),"right"===r&&"end"===n&&(h*=-1),c[d]+=h,f(f({},e),{},{namePosition:c})}))}function Y(e,t){var n=t.gridArea,r=n.w,i=n.h;return e.map((function(e){var t=e.tickLinePosition,n=e.position,a=e.boundaryGap,l=0,u=r;"top"!==n&&"bottom"!==n||(l=1),"top"!==n&&"bottom"!==n||(u=i),"right"!==n&&"bottom"!==n||(u*=-1);var c=t.map((function(e){var t=(0,o["default"])(e,1),n=t[0],r=(0,s["default"])(n);return r[l]+=u,[(0,s["default"])(n),r]}));return a||c.shift(),f(f({},e),{},{splitLinePosition:c})}))}function F(e){var t=e.animationCurve,n=e.animationFrame,r=e.rLevel;return[{name:"polyline",index:r,visible:e.axisLine.show,animationCurve:t,animationFrame:n,shape:z(e),style:H(e)}]}function z(e){var t=e.linePosition;return{points:t}}function H(e){return e.axisLine.style}function V(e){var t=e.animationCurve,n=e.animationFrame,r=e.rLevel,i=W(e),o=U(e);return i.map((function(i){return{name:"polyline",index:r,visible:e.axisTick.show,animationCurve:t,animationFrame:n,shape:i,style:o}}))}function W(e){var t=e.tickLinePosition;return t.map((function(e){return{points:e}}))}function U(e){return e.axisTick.style}function $(e){var t=e.animationCurve,n=e.animationFrame,r=e.rLevel,i=G(e),o=X(e,i);return i.map((function(i,a){return{name:"text",index:r,visible:e.axisLabel.show,animationCurve:t,animationFrame:n,shape:i,style:o[a],setGraphCenter:function(){}}}))}function G(e){var t=e.label,n=e.tickPosition,r=e.position;return n.map((function(e,n){return{position:q(e,r),content:t[n].toString()}}))}function q(e,t){var n=0,r=10;return"top"!==t&&"bottom"!==t||(n=1),"top"!==t&&"left"!==t||(r=-10),e=(0,d.deepClone)(e),e[n]+=r,e}function X(e,t){var n=e.position,r=e.axisLabel.style,i=K(n);r=(0,c.deepMerge)(i,r);var o=t.map((function(e){var t=e.position;return f(f({},r),{},{graphCenter:t})}));return o}function K(e){return"left"===e?{textAlign:"right",textBaseline:"middle"}:"right"===e?{textAlign:"left",textBaseline:"middle"}:"top"===e?{textAlign:"center",textBaseline:"bottom"}:"bottom"===e?{textAlign:"center",textBaseline:"top"}:void 0}function Z(e){var t=e.animationCurve,n=e.animationFrame,r=e.rLevel;return[{name:"text",index:r,animationCurve:t,animationFrame:n,shape:J(e),style:Q(e)}]}function J(e){var t=e.name,n=e.namePosition;return{content:t,position:n}}function Q(e){var t=e.nameLocation,n=e.position,r=e.nameTextStyle,i=ee(n,t);return(0,c.deepMerge)(i,r)}function ee(e,t){return"top"===e&&"start"===t||"bottom"===e&&"start"===t||"left"===e&&"center"===t?{textAlign:"right",textBaseline:"middle"}:"top"===e&&"end"===t||"bottom"===e&&"end"===t||"right"===e&&"center"===t?{textAlign:"left",textBaseline:"middle"}:"top"===e&&"center"===t||"left"===e&&"end"===t||"right"===e&&"end"===t?{textAlign:"center",textBaseline:"bottom"}:"bottom"===e&&"center"===t||"left"===e&&"start"===t||"right"===e&&"start"===t?{textAlign:"center",textBaseline:"top"}:void 0}function te(e){var t=e.animationCurve,n=e.animationFrame,r=e.rLevel,i=ne(e),o=re(e);return i.map((function(i){return{name:"polyline",index:r,visible:e.splitLine.show,animationCurve:t,animationFrame:n,shape:i,style:o}}))}function ne(e){var t=e.splitLinePosition;return t.map((function(e){return{points:e}}))}function re(e){return e.splitLine.style}},"06a7":function(e,t,n){var r=n("37a7"),i=n("cb7c"),o=r.get,a=r.key;r.exp({getOwnMetadata:function(e,t){return o(e,i(t),arguments.length<3?void 0:a(arguments[2]))}})},"06db":function(e,t,n){"use strict";var r=n("23c6"),i={};i[n("2b4c")("toStringTag")]="z",i+""!="[object z]"&&n("2aba")(Object.prototype,"toString",(function(){return"[object "+r(this)+"]"}),!0)},"0721":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration var t=e.defineLocale("fo",{months:"januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur".split("_"),weekdaysShort:"sun_mán_týs_mik_hós_frí_ley".split("_"),weekdaysMin:"su_má_tý_mi_hó_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[Í dag kl.] LT",nextDay:"[Í morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[Í gjár kl.] LT",lastWeek:"[síðstu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s síðani",s:"fá sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein tími",hh:"%d tímar",d:"ein dagur",dd:"%d dagar",M:"ein mánaður",MM:"%d mánaðir",y:"eitt ár",yy:"%d ár"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return t}))},"079e":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration var t=e.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"令和",narrow:"㋿",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"平成",narrow:"㍻",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"昭和",narrow:"㍼",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"大正",narrow:"㍽",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"明治",narrow:"㍾",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"西暦",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"紀元前",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(元|\d+)年/,eraYearOrdinalParse:function(e,t){return"元"===t[1]?1:parseInt(t[1]||e,10)},months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日(ddd) HH:mm"},meridiemParse:/午前|午後/i,isPM:function(e){return"午後"===e},meridiem:function(e,t,n){return e<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:function(e){return e.week()!==this.week()?"[来週]dddd LT":"dddd LT"},lastDay:"[昨日] LT",lastWeek:function(e){return this.week()!==e.week()?"[先週]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}日/,ordinal:function(e,t){switch(t){case"y":return 1===e?"元年":e+"年";case"d":case"D":case"DDD":return e+"日";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"数秒",ss:"%d秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}});return t}))},"07e3":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},"0808":function(e,t,n){},"097d":function(e,t,n){"use strict";var r=n("5ca1"),i=n("8378"),o=n("7726"),a=n("ebd6"),s=n("bcaa");r(r.P+r.R,"Promise",{finally:function(e){var t=a(this,i.Promise||o.Promise),n="function"==typeof e;return this.then(n?function(n){return s(t,e()).then((function(){return n}))}:e,n?function(n){return s(t,e()).then((function(){throw n}))}:e)}})},"09e0":function(e,t,n){var r=n("5ca1");r(r.S,"Math",{clamp:function(e,t,n){return Math.min(n,Math.max(t,e))}})},"09fa":function(e,t,n){var r=n("4588"),i=n("9def");e.exports=function(e){if(void 0===e)return 0;var t=r(e),n=i(t);if(t!==n)throw RangeError("Wrong length!");return n}},"0a06":function(e,t,n){"use strict";var r=n("2444"),i=n("c532"),o=n("f6b49"),a=n("5270");function s(e){this.defaults=e,this.interceptors={request:new o,response:new o}}s.prototype.request=function(e){"string"===typeof e&&(e=i.merge({url:arguments[0]},arguments[1])),e=i.merge(r,{method:"get"},this.defaults,e),e.method=e.method.toLowerCase();var t=[a,void 0],n=Promise.resolve(e);this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));while(t.length)n=n.then(t.shift(),t.shift());return n},i.forEach(["delete","get","head","options"],(function(e){s.prototype[e]=function(t,n){return this.request(i.merge(n||{},{method:e,url:t}))}})),i.forEach(["post","put","patch"],(function(e){s.prototype[e]=function(t,n,r){return this.request(i.merge(r||{},{method:e,url:t,data:n}))}})),e.exports=s},"0a3c":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],i=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,o=e.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});return o}))},"0a49":function(e,t,n){var r=n("9b43"),i=n("626a"),o=n("4bf8"),a=n("9def"),s=n("cd1c");e.exports=function(e,t){var n=1==e,l=2==e,u=3==e,c=4==e,d=6==e,h=5==e||d,f=t||s;return function(t,s,p){for(var m,g,v=o(t),y=i(v),b=r(s,p,3),_=a(y.length),w=0,x=n?f(t,_):l?f(t,0):void 0;_>w;w++)if((h||w in y)&&(m=y[w],g=b(m,w,v),e))if(n)x[w]=g;else if(g)switch(e){case 3:return!0;case 5:return m;case 6:return w;case 2:x.push(m)}else if(c)return!1;return d?-1:u||c?c:x}}},"0a84":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration var t=e.defineLocale("ar-ma",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}});return t}))},"0b21":function(e,t,n){var r=n("5ca1");r(r.S,"Math",{sign:n("96fb")})},"0bfb":function(e,t,n){"use strict";var r=n("cb7c");e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},"0c00":function(e,t,n){var r=n("5ca1");r(r.S,"Math",{DEG_PER_RAD:Math.PI/180})},"0c36":function(e,t,n){var r=n("5ca1");r(r.G,{global:n("7726")})},"0ca1":function(e,t,n){"use strict";var r=n("4ea4"),i=r(n("9523")),o=r(n("448a")),a=n("9886"),s=n("b06d"),l=n("5557"),u=n("a870"),c=n("becb");function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t0?s:0,c,d,!h);var f=(0,l.getCircleRadianPoint)(i,a,u,d).map((function(e){return parseInt(e)+.5})),p=(0,l.getCircleRadianPoint)(i,a,s,c).map((function(e){return parseInt(e)+.5}));n.lineTo.apply(n,(0,o["default"])(f)),n.arc(i,a,u>0?u:0,d,c,h),n.lineTo.apply(n,(0,o["default"])(p)),n.closePath(),n.stroke(),n.fill()}},p={shape:{rx:0,ry:0,r:0,startAngle:0,endAngle:0,gradientStartAngle:null,gradientEndAngle:null},validator:function(e){var t=e.shape,n=["rx","ry","r","startAngle","endAngle"];return!n.find((function(e){return"number"!==typeof t[e]}))||(console.error("AgArc shape configuration is abnormal!"),!1)},draw:function(e,t){var n=e.ctx,r=t.shape,i=t.style,o=i.gradient;o=o.map((function(e){return(0,u.getColorFromRgbValue)(e)})),1===o.length&&(o=[o[0],o[0]]);var a=o.length-1,s=r.gradientStartAngle,d=r.gradientEndAngle,h=r.startAngle,f=r.endAngle,p=r.r,m=r.rx,g=r.ry;null===s&&(s=h),null===d&&(d=f);var v=(d-s)/a;v===2*Math.PI&&(v=2*Math.PI-.001);for(var y=0;yf&&(k=f,M=!0),n.arc(m,g,p,x,k),n.strokeStyle=w,n.stroke(),M)break}}},m={shape:{number:[],content:"",position:[0,0],toFixed:0,rowGap:0,formatter:null},validator:function(e){var t=e.shape,n=t.number,r=t.content,i=t.position;return n instanceof Array&&"string"===typeof r&&i instanceof Array||(console.error("NumberText shape configuration is abnormal!"),!1)},draw:function(e,t){var n=e.ctx,r=t.shape,i=r.number,o=r.content,a=r.toFixed,l=r.rowGap,u=r.formatter,c=o.split("{nt}"),d="";c.forEach((function(e,t){var n=i[t];"number"!==typeof n&&(n=""),"number"===typeof n&&(n=n.toFixed(a),"function"===typeof u&&(n=u(n))),d+=e+(n||"")})),s.text.draw({ctx:n},{shape:h(h({},r),{},{content:d,rowGap:l})})}},g={shape:{x:0,y:0,w:0,h:0},validator:function(e){var t=e.shape,n=t.x,r=t.y,i=t.w,o=t.h;return"number"===typeof n&&"number"===typeof r&&"number"===typeof i&&"number"===typeof o||(console.error("lineIcon shape configuration is abnormal!"),!1)},draw:function(e,t){var n=e.ctx,r=t.shape;n.beginPath();var i=r.x,o=r.y,a=r.w,s=r.h,l=s/2;n.strokeStyle=n.fillStyle,n.moveTo(i,o+l),n.lineTo(i+a,o+l),n.lineWidth=1,n.stroke(),n.beginPath();var u=l-10;u<=0&&(u=3),n.arc(i+a/2,o+l,u,0,2*Math.PI),n.lineWidth=5,n.stroke(),n.fillStyle="#fff",n.fill()},hoverCheck:function(e,t){var n=t.shape,r=n.x,i=n.y,o=n.w,a=n.h;return(0,l.checkPointIsInRect)(e,r,i,o,a)},setGraphCenter:function(e,t){var n=t.shape,r=t.style,i=n.x,o=n.y,a=n.w,s=n.h;r.graphCenter=[i+a/2,o+s/2]}};(0,a.extendNewGraph)("pie",f),(0,a.extendNewGraph)("agArc",p),(0,a.extendNewGraph)("numberText",m),(0,a.extendNewGraph)("lineIcon",g)},"0caa":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration function t(e,t,n,r){var i={s:["thoddea sekondamni","thodde sekond"],ss:[e+" sekondamni",e+" sekond"],m:["eka mintan","ek minut"],mm:[e+" mintamni",e+" mintam"],h:["eka voran","ek vor"],hh:[e+" voramni",e+" voram"],d:["eka disan","ek dis"],dd:[e+" disamni",e+" dis"],M:["eka mhoinean","ek mhoino"],MM:[e+" mhoineamni",e+" mhoine"],y:["eka vorsan","ek voros"],yy:[e+" vorsamni",e+" vorsam"]};return r?i[n][0]:i[n][1]}var n=e.defineLocale("gom-latn",{months:{standalone:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),format:"Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Fuddlo] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fattlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(e,t){switch(t){case"D":return e+"er";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return e}},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(e,t){return 12===e&&(e=0),"rati"===t?e<4?e:e+12:"sokallim"===t?e:"donparam"===t?e>12?e:e+12:"sanje"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"rati":e<12?"sokallim":e<16?"donparam":e<20?"sanje":"rati"}});return n}))},"0cd4":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.radarAxisConfig=void 0;var r={show:!0,center:["50%","50%"],radius:"65%",startAngle:-Math.PI/2,splitNum:5,polygon:!1,axisLabel:{show:!0,labelGap:15,color:[],style:{fill:"#333"}},axisLine:{show:!0,color:[],style:{stroke:"#999",lineWidth:1}},splitLine:{show:!0,color:[],style:{stroke:"#d4d4d4",lineWidth:1}},splitArea:{show:!1,color:["#f5f5f5","#e6e6e6"],style:{}},rLevel:-10,animationCurve:"easeOutCubic",animationFrane:50};t.radarAxisConfig=r},"0cd8":function(e,t,n){"use strict";var r=n("5ca1"),i=n("7b23");r(r.P+r.F*!n("2f21")([].reduce,!0),"Array",{reduce:function(e){return i(this,e,arguments.length,arguments[1],!1)}})},"0d25":function(e,t,n){var r=n("5ca1"),i=n("8079")(),o=n("7726").process,a="process"==n("2d95")(o);r(r.G,{asap:function(e){var t=a&&o.domain;i(t?t.bind(e):e)}})},"0d58":function(e,t,n){var r=n("ce10"),i=n("e11e");e.exports=Object.keys||function(e){return r(e,i)}},"0d6d":function(e,t,n){var r=n("d3f4"),i=n("67ab").onFreeze;n("5eda")("freeze",(function(e){return function(t){return e&&r(t)?e(i(t)):t}}))},"0df6":function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},"0e15":function(e,t,n){var r=n("597f");e.exports=function(e,t,n){return void 0===n?r(e,t,!1):r(e,n,!1!==t)}},"0e49":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration var t=e.defineLocale("fr-ch",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}});return t}))},"0e6b":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration var t=e.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,n=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n},week:{dow:0,doy:4}});return t}))},"0e81":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration var t={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"},n=e.defineLocale("tr",{months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pzt_Sal_Çar_Per_Cum_Cmt".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),meridiem:function(e,t,n){return e<12?n?"öö":"ÖÖ":n?"ös":"ÖS"},meridiemParse:/öö|ÖÖ|ös|ÖS/,isPM:function(e){return"ös"===e||"ÖS"===e},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",w:"bir hafta",ww:"%d hafta",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(e,n){switch(n){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'ıncı";var r=e%10,i=e%100-r,o=e>=100?100:null;return e+(t[r]||t[i]||t[o])}},week:{dow:1,doy:7}});return n}))},"0f14":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration var t=e.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tir_ons_tor_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"på dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return t}))},"0f38":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration var t=e.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}});return t}))},"0f88":function(e,t,n){var r,i=n("7726"),o=n("32e9"),a=n("ca5a"),s=a("typed_array"),l=a("view"),u=!(!i.ArrayBuffer||!i.DataView),c=u,d=0,h=9,f="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");while(d0?arguments[0]:void 0)}},b={get:function(e){if(c(e)){var t=m(e);return!0===t?v(d(this,p)).get(e):t?t[this._i]:void 0}},set:function(e,t){return u.def(d(this,p),e,t)}},_=e.exports=n("e0b8")(p,y,b,u,!0,!0);h&&f&&(r=u.getConstructor(y,p),l(r.prototype,b),s.NEED=!0,o(["delete","has","get","set"],(function(e){var t=_.prototype,n=t[e];a(t,e,(function(t,i){if(c(t)&&!g(t)){this._f||(this._f=new r);var o=this._f[e](t,i);return"set"==e?this:o}return n.call(this,t,i)}))})))},"10b7":function(e,t,n){(function(t,r){e.exports=r(n("21bf"))})(0,(function(e){ /** @preserve (c) 2012 by Cédric Mesnil. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ return function(t){var n=e,r=n.lib,i=r.WordArray,o=r.Hasher,a=n.algo,s=i.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),l=i.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),u=i.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),c=i.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),d=i.create([0,1518500249,1859775393,2400959708,2840853838]),h=i.create([1352829926,1548603684,1836072691,2053994217,0]),f=a.RIPEMD160=o.extend({_doReset:function(){this._hash=i.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,i=e[r];e[r]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o,a,f,_,w,x,k,M,S,C,T,O=this._hash.words,L=d.words,A=h.words,D=s.words,E=l.words,I=u.words,j=c.words;x=o=O[0],k=a=O[1],M=f=O[2],S=_=O[3],C=w=O[4];for(n=0;n<80;n+=1)T=o+e[t+D[n]]|0,T+=n<16?p(a,f,_)+L[0]:n<32?m(a,f,_)+L[1]:n<48?g(a,f,_)+L[2]:n<64?v(a,f,_)+L[3]:y(a,f,_)+L[4],T|=0,T=b(T,I[n]),T=T+w|0,o=w,w=_,_=b(f,10),f=a,a=T,T=x+e[t+E[n]]|0,T+=n<16?y(k,M,S)+A[0]:n<32?v(k,M,S)+A[1]:n<48?g(k,M,S)+A[2]:n<64?m(k,M,S)+A[3]:p(k,M,S)+A[4],T|=0,T=b(T,j[n]),T=T+C|0,x=C,C=S,S=b(M,10),M=k,k=T;T=O[1]+f+S|0,O[1]=O[2]+_+C|0,O[2]=O[3]+w+x|0,O[3]=O[4]+o+k|0,O[4]=O[0]+a+M|0,O[0]=T},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),e.sigBytes=4*(t.length+1),this._process();for(var i=this._hash,o=i.words,a=0;a<5;a++){var s=o[a];o[a]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return i},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function p(e,t,n){return e^t^n}function m(e,t,n){return e&t|~e&n}function g(e,t,n){return(e|~t)^n}function v(e,t,n){return e&n|t&~n}function y(e,t,n){return e^(t|~n)}function b(e,t){return e<>>32-t}n.RIPEMD160=o._createHelper(f),n.HmacRIPEMD160=o._createHmacHelper(f)}(Math),e.RIPEMD160}))},"10e8":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration var t=e.defineLocale("th",{months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.".split("_"),monthsParseExact:!0,weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา H:mm",LLLL:"วันddddที่ D MMMM YYYY เวลา H:mm"},meridiemParse:/ก่อนเที่ยง|หลังเที่ยง/,isPM:function(e){return"หลังเที่ยง"===e},meridiem:function(e,t,n){return e<12?"ก่อนเที่ยง":"หลังเที่ยง"},calendar:{sameDay:"[วันนี้ เวลา] LT",nextDay:"[พรุ่งนี้ เวลา] LT",nextWeek:"dddd[หน้า เวลา] LT",lastDay:"[เมื่อวานนี้ เวลา] LT",lastWeek:"[วัน]dddd[ที่แล้ว เวลา] LT",sameElse:"L"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",ss:"%d วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",w:"1 สัปดาห์",ww:"%d สัปดาห์",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}});return t}))},1132:function(e,t,n){(function(t,r){e.exports=r(n("21bf"))})(0,(function(e){return function(){var t=e,n=t.lib,r=n.WordArray,i=t.enc;i.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp();for(var i=[],o=0;o>>2]>>>24-o%4*8&255,s=t[o+1>>>2]>>>24-(o+1)%4*8&255,l=t[o+2>>>2]>>>24-(o+2)%4*8&255,u=a<<16|s<<8|l,c=0;c<4&&o+.75*c>>6*(3-c)&63));var d=r.charAt(64);if(d)while(i.length%4)i.push(d);return i.join("")},parse:function(e){var t=e.length,n=this._map,r=this._reverseMap;if(!r){r=this._reverseMap=[];for(var i=0;i>>6-a%4*2,u=s|l;i[o>>>2]|=u<<24-o%4*8,o++}return r.create(i,o)}}(),e.enc.Base64}))},1169:function(e,t,n){var r=n("2d95");e.exports=Array.isArray||function(e){return"Array"==r(e)}},1173:function(e,t){e.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},"11b0":function(e,t){function n(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},"11b09":function(e,t,n){},"11e9":function(e,t,n){var r=n("52a7"),i=n("4630"),o=n("6821"),a=n("6a99"),s=n("69a8"),l=n("c69a"),u=Object.getOwnPropertyDescriptor;t.f=n("9e1e")?u:function(e,t){if(e=o(e),t=a(t,!0),l)try{return u(e,t)}catch(n){}if(s(e,t))return i(!r.f.call(e,t),e[t])}},"130f":function(e,t,n){var r=n("5ca1"),i=n("1991");r(r.G+r.B,{setImmediate:i.set,clearImmediate:i.clear})},1382:function(e,t,n){(function(t,r,i){e.exports=r(n("21bf"),n("1132"),n("72fe"),n("2b79"),n("38ba"))})(0,(function(e){return function(){var t=e,n=t.lib,r=n.StreamCipher,i=t.algo,o=[],a=[],s=[],l=i.Rabbit=r.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,n=0;n<4;n++)e[n]=16711935&(e[n]<<8|e[n]>>>24)|4278255360&(e[n]<<24|e[n]>>>8);var r=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],i=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(n=0;n<4;n++)u.call(this);for(n=0;n<8;n++)i[n]^=r[n+4&7];if(t){var o=t.words,a=o[0],s=o[1],l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),c=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=l>>>16|4294901760&c,h=c<<16|65535&l;i[0]^=l,i[1]^=d,i[2]^=c,i[3]^=h,i[4]^=l,i[5]^=d,i[6]^=c,i[7]^=h;for(n=0;n<4;n++)u.call(this)}},_doProcessBlock:function(e,t){var n=this._X;u.call(this),o[0]=n[0]^n[5]>>>16^n[3]<<16,o[1]=n[2]^n[7]>>>16^n[5]<<16,o[2]=n[4]^n[1]>>>16^n[7]<<16,o[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)o[r]=16711935&(o[r]<<8|o[r]>>>24)|4278255360&(o[r]<<24|o[r]>>>8),e[t+r]^=o[r]},blockSize:4,ivSize:2});function u(){for(var e=this._X,t=this._C,n=0;n<8;n++)a[n]=t[n];t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0>>0?1:0)|0,this._b=t[7]>>>0>>0?1:0;for(n=0;n<8;n++){var r=e[n]+t[n],i=65535&r,o=r>>>16,l=((i*i>>>17)+i*o>>>15)+o*o,u=((4294901760&r)*r|0)+((65535&r)*r|0);s[n]=l^u}e[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,e[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,e[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,e[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,e[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,e[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,e[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,e[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}t.Rabbit=r._createHelper(l)}(),e.Rabbit}))},1395:function(e,t,n){e.exports=n("7726")},"13e9":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration var t={words:{ss:["секунда","секунде","секунди"],m:["један минут","једног минута"],mm:["минут","минута","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],d:["један дан","једног дана"],dd:["дан","дана","дана"],M:["један месец","једног месеца"],MM:["месец","месеца","месеци"],y:["једну годину","једне године"],yy:["годину","године","година"]},correctGrammaticalCase:function(e,t){return e%10>=1&&e%10<=4&&(e%100<10||e%100>=20)?e%10===1?t[0]:t[1]:t[2]},translate:function(e,n,r,i){var o,a=t.words[r];return 1===r.length?"y"===r&&n?"једна година":i||n?a[0]:a[1]:(o=t.correctGrammaticalCase(e,a),"yy"===r&&n&&"годину"===o?e+" година":e+" "+o)}},n=e.defineLocale("sr-cyrl",{months:"јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар".split("_"),monthsShort:"јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.".split("_"),monthsParseExact:!0,weekdays:"недеља_понедељак_уторак_среда_четвртак_петак_субота".split("_"),weekdaysShort:"нед._пон._уто._сре._чет._пет._суб.".split("_"),weekdaysMin:"не_по_ут_ср_че_пе_су".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[данас у] LT",nextDay:"[сутра у] LT",nextWeek:function(){switch(this.day()){case 0:return"[у] [недељу] [у] LT";case 3:return"[у] [среду] [у] LT";case 6:return"[у] [суботу] [у] LT";case 1:case 2:case 4:case 5:return"[у] dddd [у] LT"}},lastDay:"[јуче у] LT",lastWeek:function(){var e=["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"];return e[this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:t.translate,dd:t.translate,M:t.translate,MM:t.translate,y:t.translate,yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return n}))},1448:function(e,t,n){"use strict";n("386b")("strike",(function(e){return function(){return e(this,"strike","","")}}))},1495:function(e,t,n){var r=n("86cc"),i=n("cb7c"),o=n("0d58");e.exports=n("9e1e")?Object.defineProperties:function(e,t){i(e);var n,a=o(t),s=a.length,l=0;while(s>l)r.f(e,n=a[l++],t[n]);return e}},"14b9":function(e,t,n){var r=n("5ca1");r(r.P,"String",{repeat:n("9744")})},"15ac":function(e,t,n){n("ec30")("Int16",2,(function(e){return function(t,n,r){return e(this,t,n,r)}}))},1654:function(e,t,n){"use strict";var r=n("71c1")(!0);n("30f1")(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})}))},"165b":function(e,t,n){var r=n("d3f4");n("5eda")("isExtensible",(function(e){return function(t){return!!r(t)&&(!e||e(t))}}))},"167b":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration var t=e.defineLocale("oc-lnc",{months:{standalone:"genièr_febrièr_març_abril_mai_junh_julhet_agost_setembre_octòbre_novembre_decembre".split("_"),format:"de genièr_de febrièr_de març_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'octòbre_de novembre_de decembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._mai_junh_julh._ago._set._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"dimenge_diluns_dimars_dimècres_dijòus_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dm._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dm_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:"[uèi a] LT",nextDay:"[deman a] LT",nextWeek:"dddd [a] LT",lastDay:"[ièr a] LT",lastWeek:"dddd [passat a] LT",sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"unas segondas",ss:"%d segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(e,t){var n=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"è";return"w"!==t&&"W"!==t||(n="a"),e+n},week:{dow:1,doy:4}});return t}))},1691:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},"178b":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("f410"),i=n.n(r);function o(e){if(i()(e))return e}},"17e1":function(e,t,n){(function(t,r){e.exports=r(n("21bf"))})(0,(function(e){return function(){if("function"==typeof ArrayBuffer){var t=e,n=t.lib,r=n.WordArray,i=r.init,o=r.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!==typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var t=e.byteLength,n=[],r=0;r>>2]|=e[r]<<24-r%4*8;i.call(this,n,t)}else i.apply(this,arguments)};o.prototype=r}}(),e.lib.WordArray}))},"17ed":function(e,t,n){e.exports={default:n("d8d6"),__esModule:!0}},"18ad":function(e,t,n){"use strict";var r=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.doUpdate=f,t.Updater=void 0;var i=r(n("448a")),o=r(n("7037")),a=r(n("970b")),s=function e(t,n){(0,a["default"])(this,e);var r=t.chart,i=t.key,o=t.getGraphConfig;"function"===typeof o?(r[i]||(this.graphs=r[i]=[]),Object.assign(this,t),this.update(n)):console.warn("Updater need function getGraphConfig!")};function l(e,t){var n=e.graphs,r=e.chart.render,i=n.length,o=t.length;if(i>o){var a=n.splice(o);a.forEach((function(e){return e.forEach((function(e){return r.delGraph(e)}))}))}}function u(e,t,n,r){var i=r.getGraphConfig,o=r.chart.render,a=r.beforeChange,s=i(t,r);c(e,s,o),e.forEach((function(e,t){var n=s[t];"function"===typeof a&&a(e,n),h(e,n)}))}function c(e,t,n){var r=e.length,o=t.length;if(o>r){var a=e.slice(-1)[0],s=o-r,l=new Array(s).fill(0).map((function(e){return n.clone(a)}));e.push.apply(e,(0,i["default"])(l))}else if(o0&&void 0!==arguments[0]?arguments[0]:{},t=e.chart,n=e.series,r=e.key,i=e.getGraphConfig,o=e.getStartGraphConfig,a=e.beforeChange,l=e.beforeUpdate,u=e.afterAddGraph;t[r]?t[r].update(n):t[r]=new s({chart:t,key:r,getGraphConfig:i,getStartGraphConfig:o,beforeChange:a,beforeUpdate:l,afterAddGraph:u},n)}t.Updater=s,s.prototype.update=function(e){var t=this,n=this.graphs,r=this.beforeUpdate;if(l(this,e),e.length){var i=(0,o["default"])(r);e.forEach((function(e,o){"function"===i&&r(n,e,o,t);var a=n[o];a?u(a,e,o,t):d(n,e,o,t)}))}}},"18d0":function(e,t,n){var r=n("5ca1"),i=n("3ca5");r(r.G+r.F*(parseInt!=i),{parseInt:i})},"191b":function(e,t,n){(function(t,r,i){e.exports=r(n("21bf"),n("94f8"))})(0,(function(e){return function(){var t=e,n=t.lib,r=n.WordArray,i=t.algo,o=i.SHA256,a=i.SHA224=o.extend({_doReset:function(){this._hash=new r.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=o._doFinalize.call(this);return e.sigBytes-=4,e}});t.SHA224=o._createHelper(a),t.HmacSHA224=o._createHmacHelper(a)}(),e.SHA224}))},1991:function(e,t,n){var r,i,o,a=n("9b43"),s=n("31f4"),l=n("fab2"),u=n("230e"),c=n("7726"),d=c.process,h=c.setImmediate,f=c.clearImmediate,p=c.MessageChannel,m=c.Dispatch,g=0,v={},y="onreadystatechange",b=function(){var e=+this;if(v.hasOwnProperty(e)){var t=v[e];delete v[e],t()}},_=function(e){b.call(e.data)};h&&f||(h=function(e){var t=[],n=1;while(arguments.length>n)t.push(arguments[n++]);return v[++g]=function(){s("function"==typeof e?e:Function(e),t)},r(g),g},f=function(e){delete v[e]},"process"==n("2d95")(d)?r=function(e){d.nextTick(a(b,e,1))}:m&&m.now?r=function(e){m.now(a(b,e,1))}:p?(i=new p,o=i.port2,i.port1.onmessage=_,r=a(o.postMessage,o,1)):c.addEventListener&&"function"==typeof postMessage&&!c.importScripts?(r=function(e){c.postMessage(e+"","*")},c.addEventListener("message",_,!1)):r=y in u("script")?function(e){l.appendChild(u("script"))[y]=function(){l.removeChild(this),b.call(e)}}:function(e){setTimeout(a(b,e,1),0)}),e.exports={set:h,clear:f}},"1af6":function(e,t,n){var r=n("63b6");r(r.S,"Array",{isArray:n("9003")})},"1b45":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration var t=e.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ".split("_"),weekdays:"Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt".split("_"),weekdaysShort:"Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib".split("_"),weekdaysMin:"Ħa_Tn_Tl_Er_Ħa_Ġi_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[Għada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-bieraħ fil-]LT",lastWeek:"dddd [li għadda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f’ %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"siegħa",hh:"%d siegħat",d:"ġurnata",dd:"%d ġranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});return t}))},"1bc3":function(e,t,n){var r=n("f772");e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},"1c01":function(e,t,n){var r=n("5ca1");r(r.S+r.F*!n("9e1e"),"Object",{defineProperty:n("86cc").f})},"1c35":function(e,t,n){"use strict";(function(e){ /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */ var r=n("1fb5"),i=n("9152"),o=n("e3db");function a(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"===typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(t){return!1}}function s(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(e,t){if(s()=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|e}function b(e){return+e!=e&&(e=0),u.alloc(+e)}function _(e,t){if(u.isBuffer(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return K(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Q(e).length;default:if(r)return K(e).length;t=(""+t).toLowerCase(),r=!0}}function w(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,t>>>=0,n<=t)return"";e||(e="utf8");while(1)switch(e){case"hex":return N(this,t,n);case"utf8":case"utf-8":return E(this,t,n);case"ascii":return P(this,t,n);case"latin1":case"binary":return R(this,t,n);case"base64":return D(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function x(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function k(e,t,n,r,i){if(0===e.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"===typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:M(e,t,n,r,i);if("number"===typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):M(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function M(e,t,n,r,i){var o,a=1,s=e.length,l=t.length;if(void 0!==r&&(r=String(r).toLowerCase(),"ucs2"===r||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var c=-1;for(o=n;os&&(n=s-l),o=n;o>=0;o--){for(var d=!0,h=0;hi&&(r=i)):r=i;var o=t.length;if(o%2!==0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a239?4:u>223?3:u>191?2:1;if(i+d<=n)switch(d){case 1:u<128&&(c=u);break;case 2:o=e[i+1],128===(192&o)&&(l=(31&u)<<6|63&o,l>127&&(c=l));break;case 3:o=e[i+1],a=e[i+2],128===(192&o)&&128===(192&a)&&(l=(15&u)<<12|(63&o)<<6|63&a,l>2047&&(l<55296||l>57343)&&(c=l));break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128===(192&o)&&128===(192&a)&&128===(192&s)&&(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s,l>65535&&l<1114112&&(c=l))}null===c?(c=65533,d=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=d}return j(r)}t.Buffer=u,t.SlowBuffer=b,t.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:a(),t.kMaxLength=s(),u.poolSize=8192,u._augment=function(e){return e.__proto__=u.prototype,e},u.from=function(e,t,n){return c(null,e,t,n)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(e,t,n){return h(null,e,t,n)},u.allocUnsafe=function(e){return f(null,e)},u.allocUnsafeSlow=function(e){return f(null,e)},u.isBuffer=function(e){return!(null==e||!e._isBuffer)},u.compare=function(e,t){if(!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},u.prototype.compare=function(e,t,n,r,i){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var o=i-r,a=n-t,s=Math.min(o,a),l=this.slice(r,i),c=e.slice(t,n),d=0;di)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return S(this,e,t,n);case"utf8":case"utf-8":return C(this,e,t,n);case"ascii":return T(this,e,t,n);case"latin1":case"binary":return O(this,e,t,n);case"base64":return L(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var I=4096;function j(e){var t=e.length;if(t<=I)return String.fromCharCode.apply(String,e);var n="",r=0;while(rr)&&(n=r);for(var i="",o=t;on)throw new RangeError("Trying to access beyond buffer length")}function F(e,t,n,r,i,o){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function z(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i>>8*(r?i:1-i)}function H(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i>>8*(r?i:3-i)&255}function V(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function W(e,t,n,r,o){return o||V(e,t,n,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,n,r,23,4),n+4}function U(e,t,n,r,o){return o||V(e,t,n,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,n,r,52,8),n+8}u.prototype.slice=function(e,t){var n,r=this.length;if(e=~~e,t=void 0===t?r:~~t,e<0?(e+=r,e<0&&(e=0)):e>r&&(e=r),t<0?(t+=r,t<0&&(t=0)):t>r&&(t=r),t0&&(i*=256))r+=this[e+--t]*i;return r},u.prototype.readUInt8=function(e,t){return t||Y(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||Y(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||Y(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||Y(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||Y(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||Y(e,t,this.length);var r=this[e],i=1,o=0;while(++o=i&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||Y(e,t,this.length);var r=t,i=1,o=this[e+--r];while(r>0&&(i*=256))o+=this[e+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return t||Y(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||Y(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){t||Y(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return t||Y(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||Y(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||Y(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||Y(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||Y(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||Y(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t|=0,n|=0,!r){var i=Math.pow(2,8*n)-1;F(this,e,t,n,i,0)}var o=1,a=0;this[t]=255&e;while(++a=0&&(a*=256))this[t+o]=e/a&255;return t+n},u.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):z(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):z(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):H(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):H(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);F(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;this[t]=255&e;while(++o>0)-s&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);F(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;this[t+o]=255&e;while(--o>=0&&(a*=256))e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):z(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):z(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):H(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):H(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,n){return W(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return W(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return U(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return U(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--i)e[i+t]=this[i+n];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(o=t;o55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function Z(e){for(var t=[],n=0;n>8,i=n%256,o.push(i),o.push(r)}return o}function Q(e){return r.toByteArray(G(e))}function ee(e,t,n,r){for(var i=0;i=t.length||i>=e.length)break;t[i+n]=e[i]}return i}function te(e){return e!==e}}).call(this,n("24aa"))},"1c4c":function(e,t,n){"use strict";var r=n("9b43"),i=n("5ca1"),o=n("4bf8"),a=n("1fa8"),s=n("33a4"),l=n("9def"),u=n("f1ae"),c=n("27ee");i(i.S+i.F*!n("5cc5")((function(e){Array.from(e)})),"Array",{from:function(e){var t,n,i,d,h=o(e),f="function"==typeof this?this:Array,p=arguments.length,m=p>1?arguments[1]:void 0,g=void 0!==m,v=0,y=c(h);if(g&&(m=r(m,p>2?arguments[2]:void 0,2)),void 0==y||f==Array&&s(y))for(t=l(h.length),n=new f(t);t>v;v++)u(n,v,g?m(h[v],v):h[v]);else for(d=y.call(h),n=new f;!(i=d.next()).done;v++)u(n,v,g?a(d,m,[i.value,v],!0):i.value);return n.length=v,n}})},"1cfd":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration var t={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},n=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},r={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},i=function(e){return function(t,i,o,a){var s=n(t),l=r[e][n(t)];return 2===s&&(l=l[i?0:1]),l.replace(/%d/i,t)}},o=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],a=e.defineLocale("ar-ly",{months:o,monthsShort:o,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:i("s"),ss:i("s"),m:i("m"),mm:i("m"),h:i("h"),hh:i("h"),d:i("d"),dd:i("d"),M:i("M"),MM:i("M"),y:i("y"),yy:i("y")},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}});return a}))},"1d2b":function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r1&&void 0!==arguments[1]?arguments[1]:{},n=t.series;n||(n=[]);var r=(0,d.initNeedSeries)(n,u.gaugeConfig,"gauge");r=g(r,e),r=v(r,e),r=y(r,e),r=b(r,e),r=_(r,e),r=w(r,e),r=x(r,e),r=k(r,e),r=M(r,e),r=S(r,e),(0,l.doUpdate)({chart:e,series:r,key:"gaugeAxisTick",getGraphConfig:T}),(0,l.doUpdate)({chart:e,series:r,key:"gaugeAxisLabel",getGraphConfig:A}),(0,l.doUpdate)({chart:e,series:r,key:"gaugeBackgroundArc",getGraphConfig:I,getStartGraphConfig:R}),(0,l.doUpdate)({chart:e,series:r,key:"gaugeArc",getGraphConfig:N,getStartGraphConfig:F,beforeChange:z}),(0,l.doUpdate)({chart:e,series:r,key:"gaugePointer",getGraphConfig:H,getStartGraphConfig:$}),(0,l.doUpdate)({chart:e,series:r,key:"gaugeDetails",getGraphConfig:G})}function g(e,t){var n=t.render.area;return e.forEach((function(e){var t=e.center;t=t.map((function(e,t){return"number"===typeof e?e:parseInt(e)/100*n[t]})),e.center=t})),e}function v(e,t){var n=t.render.area,r=Math.min.apply(Math,(0,s["default"])(n))/2;return e.forEach((function(e){var t=e.radius;"number"!==typeof t&&(t=parseInt(t)/100*r),e.radius=t})),e}function y(e,t){var n=t.render.area,r=Math.min.apply(Math,(0,s["default"])(n))/2;return e.forEach((function(e){var t=e.radius,n=e.data,i=e.arcLineWidth;n.forEach((function(e){var n=e.radius,o=e.lineWidth;n||(n=t),"number"!==typeof n&&(n=parseInt(n)/100*r),e.radius=n,o||(o=i),e.lineWidth=o}))})),e}function b(e,t){return e.forEach((function(e){var t=e.startAngle,n=e.endAngle,r=e.data,i=e.min,o=e.max,a=n-t,s=o-i;r.forEach((function(e){var n=e.value,r=Math.abs((n-i)/s*a);e.startAngle=t,e.endAngle=t+r}))})),e}function _(e,t){return e.forEach((function(e){var t=e.data;t.forEach((function(e){var t=e.color,n=e.gradient;n&&n.length||(n=t),n instanceof Array||(n=[n]),e.gradient=n}))})),e}function w(e,t){return e.forEach((function(e){var t=e.startAngle,n=e.endAngle,r=e.splitNum,i=e.center,o=e.radius,a=e.arcLineWidth,l=e.axisTick,u=l.tickLength,d=l.style.lineWidth,h=n-t,f=o-a/2,p=f-u,m=h/(r-1),g=2*Math.PI*o*h/(2*Math.PI),v=Math.ceil(d/2)/g*h;e.tickAngles=[],e.tickInnerRadius=[],e.tickPosition=new Array(r).fill(0).map((function(n,o){var a=t+m*o;return 0===o&&(a+=v),o===r-1&&(a-=v),e.tickAngles[o]=a,e.tickInnerRadius[o]=p,[c.getCircleRadianPoint.apply(void 0,(0,s["default"])(i).concat([f,a])),c.getCircleRadianPoint.apply(void 0,(0,s["default"])(i).concat([p,a]))]}))})),e}function x(e,t){return e.forEach((function(e){var t=e.center,n=e.tickInnerRadius,r=e.tickAngles,i=e.axisLabel.labelGap,o=r.map((function(e,o){return c.getCircleRadianPoint.apply(void 0,(0,s["default"])(t).concat([n[o]-i,r[o]]))})),l=o.map((function(e){var n=(0,a["default"])(e,2),r=n[0],i=n[1];return{textAlign:r>t[0]?"right":"left",textBaseline:i>t[1]?"bottom":"top"}}));e.labelPosition=o,e.labelAlign=l})),e}function k(e,t){return e.forEach((function(e){var t=e.axisLabel,n=e.min,r=e.max,i=e.splitNum,a=t.data,s=t.formatter,l=(r-n)/(i-1),u=new Array(i).fill(0).map((function(e,t){return parseInt(n+l*t)})),c=(0,o["default"])(s);a=(0,d.deepMerge)(u,a).map((function(e,t){var n=e;return"string"===c&&(n=s.replace("{value}",e)),"function"===c&&(n=s({value:e,index:t})),n})),t.data=a})),e}function M(e,t){return e.forEach((function(e){var t=e.data,n=e.details,r=e.center,i=n.position,o=n.offset,a=t.map((function(e){var t=e.startAngle,n=e.endAngle,a=e.radius,l=null;return"center"===i?l=r:"start"===i?l=c.getCircleRadianPoint.apply(void 0,(0,s["default"])(r).concat([a,t])):"end"===i&&(l=c.getCircleRadianPoint.apply(void 0,(0,s["default"])(r).concat([a,n]))),C(l,o)}));e.detailsPosition=a})),e}function S(e,t){return e.forEach((function(e){var t=e.data,n=e.details,r=n.formatter,i=(0,o["default"])(r),a=t.map((function(e){var t=e.value;return"string"===i&&(t=r.replace("{value}","{nt}"),t=t.replace("{name}",e.name)),"function"===i&&(t=r(e)),t.toString()}));e.detailsContent=a})),e}function C(e,t){var n=(0,a["default"])(e,2),r=n[0],i=n[1],o=(0,a["default"])(t,2),s=o[0],l=o[1];return[r+s,i+l]}function T(e){var t=e.tickPosition,n=e.animationCurve,r=e.animationFrame,i=e.rLevel;return t.map((function(t,o){return{name:"polyline",index:i,visible:e.axisTick.show,animationCurve:n,animationFrame:r,shape:O(e,o),style:L(e,o)}}))}function O(e,t){var n=e.tickPosition;return{points:n[t]}}function L(e,t){var n=e.axisTick.style;return n}function A(e){var t=e.labelPosition,n=e.animationCurve,r=e.animationFrame,i=e.rLevel;return t.map((function(t,o){return{name:"text",index:i,visible:e.axisLabel.show,animationCurve:n,animationFrame:r,shape:D(e,o),style:E(e,o)}}))}function D(e,t){var n=e.labelPosition,r=e.axisLabel.data;return{content:r[t].toString(),position:n[t]}}function E(e,t){var n=e.labelAlign,r=e.axisLabel,i=r.style;return(0,d.deepMerge)(p({},n[t]),i)}function I(e){var t=e.animationCurve,n=e.animationFrame,r=e.rLevel;return[{name:"arc",index:r,visible:e.backgroundArc.show,animationCurve:t,animationFrame:n,shape:j(e),style:P(e)}]}function j(e){var t=e.startAngle,n=e.endAngle,r=e.center,i=e.radius;return{rx:r[0],ry:r[1],r:i,startAngle:t,endAngle:n}}function P(e){var t=e.backgroundArc,n=e.arcLineWidth,r=t.style;return(0,d.deepMerge)({lineWidth:n},r)}function R(e){var t=I(e)[0],n=p({},t.shape);return n.endAngle=t.shape.startAngle,t.shape=n,[t]}function N(e){var t=e.data,n=e.animationCurve,r=e.animationFrame,i=e.rLevel;return t.map((function(t,o){return{name:"agArc",index:i,animationCurve:n,animationFrame:r,shape:B(e,o),style:Y(e,o)}}))}function B(e,t){var n=e.data,r=e.center,i=e.endAngle,o=n[t],a=o.radius,s=o.startAngle,l=o.endAngle,u=o.localGradient;return u&&(i=l),{rx:r[0],ry:r[1],r:a,startAngle:s,endAngle:l,gradientEndAngle:i}}function Y(e,t){var n=e.data,r=e.dataItemStyle,i=n[t],o=i.lineWidth,a=i.gradient;return a=a.map((function(e){return(0,h.getRgbaValue)(e)})),(0,d.deepMerge)({lineWidth:o,gradient:a},r)}function F(e){var t=N(e);return t.map((function(e){var t=p({},e.shape);t.endAngle=e.shape.startAngle,e.shape=t})),t}function z(e,t){var n=e.style.gradient,r=n.length,i=t.style.gradient.length;if(r>i)n.splice(i);else{var o=n.slice(-1)[0];n.push.apply(n,(0,s["default"])(new Array(i-r).fill(0).map((function(e){return(0,s["default"])(o)}))))}}function H(e){var t=e.animationCurve,n=e.animationFrame,r=e.center,i=e.rLevel;return[{name:"polyline",index:i,visible:e.pointer.show,animationCurve:t,animationFrame:n,shape:V(e),style:W(e),setGraphCenter:function(e,t){t.style.graphCenter=r}}]}function V(e){var t=e.center;return{points:U(t),close:!0}}function W(e){var t=e.startAngle,n=e.endAngle,r=e.min,i=e.max,o=e.data,a=e.pointer,s=e.center,l=a.valueIndex,u=a.style,c=o[l]?o[l].value:0,h=(c-r)/(i-r)*(n-t)+t+Math.PI/2;return(0,d.deepMerge)({rotate:(0,d.radianToAngle)(h),scale:[1,1],graphCenter:s},u)}function U(e){var t=(0,a["default"])(e,2),n=t[0],r=t[1],i=[n,r-40],o=[n+5,r],s=[n,r+10],l=[n-5,r];return[i,o,s,l]}function $(e){var t=e.startAngle,n=H(e)[0];return n.style.rotate=(0,d.radianToAngle)(t+Math.PI/2),[n]}function G(e){var t=e.detailsPosition,n=e.animationCurve,r=e.animationFrame,i=e.rLevel,o=e.details.show;return t.map((function(t,a){return{name:"numberText",index:i,visible:o,animationCurve:n,animationFrame:r,shape:q(e,a),style:X(e,a)}}))}function q(e,t){var n=e.detailsPosition,r=e.detailsContent,i=e.data,o=e.details,a=n[t],s=r[t],l=i[t].value,u=o.valueToFixed;return{number:[l],content:s,position:a,toFixed:u}}function X(e,t){var n=e.details,r=e.data,i=n.style,o=r[t].color;return(0,d.deepMerge)({fill:o},i)}},"1f91":function(e,t,n){var r=n("5ca1"),i=n("e9d2"),o=n("91ca");r(r.S,"Math",{fscale:function(e,t,n,r,a){return o(i(e,t,n,r,a))}})},"1fa8":function(e,t,n){var r=n("cb7c");e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(a){var o=e["return"];throw void 0!==o&&r(o.call(e)),a}}},"1fb5":function(e,t,n){"use strict";t.byteLength=c,t.toByteArray=h,t.fromByteArray=m;for(var r=[],i=[],o="undefined"!==typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=a.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function c(e){var t=u(e),n=t[0],r=t[1];return 3*(n+r)/4-r}function d(e,t,n){return 3*(t+n)/4-n}function h(e){var t,n,r=u(e),a=r[0],s=r[1],l=new o(d(e,a,s)),c=0,h=s>0?a-4:a;for(n=0;n>16&255,l[c++]=t>>8&255,l[c++]=255&t;return 2===s&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,l[c++]=255&t),1===s&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,l[c++]=t>>8&255,l[c++]=255&t),l}function f(e){return r[e>>18&63]+r[e>>12&63]+r[e>>6&63]+r[63&e]}function p(e,t,n){for(var r,i=[],o=t;ol?l:s+a));return 1===i?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")),o.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},"1fc1":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration function t(e,t){var n=e.split("_");return t%10===1&&t%100!==11?n[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?n[1]:n[2]}function n(e,n,r){var i={ss:n?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:n?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:n?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"};return"m"===r?n?"хвіліна":"хвіліну":"h"===r?n?"гадзіна":"гадзіну":e+" "+t(i[r],+e)}var r=e.defineLocale("be",{months:{format:"студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня".split("_"),standalone:"студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань".split("_")},monthsShort:"студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж".split("_"),weekdays:{format:"нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу".split("_"),standalone:"нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота".split("_"),isFormat:/\[ ?[Ууў] ?(?:мінулую|наступную)? ?\] ?dddd/},weekdaysShort:"нд_пн_ат_ср_чц_пт_сб".split("_"),weekdaysMin:"нд_пн_ат_ср_чц_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"},calendar:{sameDay:"[Сёння ў] LT",nextDay:"[Заўтра ў] LT",lastDay:"[Учора ў] LT",nextWeek:function(){return"[У] dddd [ў] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[У мінулую] dddd [ў] LT";case 1:case 2:case 4:return"[У мінулы] dddd [ў] LT"}},sameElse:"L"},relativeTime:{future:"праз %s",past:"%s таму",s:"некалькі секунд",m:n,mm:n,h:n,hh:n,d:"дзень",dd:n,M:"месяц",MM:n,y:"год",yy:n},meridiemParse:/ночы|раніцы|дня|вечара/,isPM:function(e){return/^(дня|вечара)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночы":e<12?"раніцы":e<17?"дня":"вечара"},dayOfMonthOrdinalParse:/\d{1,2}-(і|ы|га)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e%10!==2&&e%10!==3||e%100===12||e%100===13?e+"-ы":e+"-і";case"D":return e+"-га";default:return e}},week:{dow:1,doy:7}});return r}))},"201b":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration var t=e.defineLocale("ka",{months:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:{standalone:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),format:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_"),isFormat:/(წინა|შემდეგ)/},weekdaysShort:"კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ".split("_"),weekdaysMin:"კვ_ორ_სა_ოთ_ხუ_პა_შა".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[დღეს] LT[-ზე]",nextDay:"[ხვალ] LT[-ზე]",lastDay:"[გუშინ] LT[-ზე]",nextWeek:"[შემდეგ] dddd LT[-ზე]",lastWeek:"[წინა] dddd LT-ზე",sameElse:"L"},relativeTime:{future:function(e){return e.replace(/(წამ|წუთ|საათ|წელ|დღ|თვ)(ი|ე)/,(function(e,t,n){return"ი"===n?t+"ში":t+n+"ში"}))},past:function(e){return/(წამი|წუთი|საათი|დღე|თვე)/.test(e)?e.replace(/(ი|ე)$/,"ის წინ"):/წელი/.test(e)?e.replace(/წელი$/,"წლის წინ"):e},s:"რამდენიმე წამი",ss:"%d წამი",m:"წუთი",mm:"%d წუთი",h:"საათი",hh:"%d საათი",d:"დღე",dd:"%d დღე",M:"თვე",MM:"%d თვე",y:"წელი",yy:"%d წელი"},dayOfMonthOrdinalParse:/0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,ordinal:function(e){return 0===e?e:1===e?e+"-ლი":e<20||e<=100&&e%20===0||e%100===0?"მე-"+e:e+"-ე"},week:{dow:1,doy:7}});return t}))},"204e":function(e,t,n){"use strict";var r=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.bar=p;var i=r(n("7037")),o=r(n("9523")),a=r(n("278c")),s=r(n("448a")),l=n("18ad"),u=n("9d85"),c=n("5557"),d=n("becb");function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},n=t.xAxis,r=t.yAxis,i=t.series,o=[];n&&r&&i&&(o=(0,d.initNeedSeries)(i,u.barConfig,"bar"),o=m(o,e),o=g(o,e),o=C(o,e)),(0,l.doUpdate)({chart:e,series:o.slice(-1),key:"backgroundBar",getGraphConfig:I}),o.reverse(),(0,l.doUpdate)({chart:e,series:o,key:"bar",getGraphConfig:N,getStartGraphConfig:U,beforeUpdate:X}),(0,l.doUpdate)({chart:e,series:o,key:"barLabel",getGraphConfig:K})}function m(e,t){var n=t.axisData;return e.forEach((function(e){var t=e.xAxisIndex,r=e.yAxisIndex;"number"!==typeof t&&(t=0),"number"!==typeof r&&(r=0);var i=n.find((function(e){var n=e.axis,r=e.index;return"".concat(n).concat(r)==="x".concat(t)})),o=n.find((function(e){var t=e.axis,n=e.index;return"".concat(t).concat(n)==="y".concat(r)})),a=[i,o],s=a.findIndex((function(e){var t=e.data;return"value"===t}));e.valueAxis=a[s],e.labelAxis=a[1-s]})),e}function g(e,t){var n=y(e);return n.forEach((function(e){v(e),_(e),w(e,t),x(e),S(e)})),e}function v(e){var t=b(e);t=t.map((function(e){return{stack:e,index:-1}}));var n=0;e.forEach((function(e){var r=e.stack;if(r){var i=t.find((function(e){var t=e.stack;return t===r}));-1===i.index&&(i.index=n,n++),e.barIndex=i.index}else e.barIndex=n,n++}))}function y(e){var t=e.map((function(e){var t=e.labelAxis,n=t.axis,r=t.index;return n+r}));return t=(0,s["default"])(new Set(t)),t.map((function(t){return e.filter((function(e){var n=e.labelAxis,r=n.axis,i=n.index;return r+i===t}))}))}function b(e){var t=[];return e.forEach((function(e){var n=e.stack;n&&t.push(n)})),(0,s["default"])(new Set(t))}function _(e){var t=(0,s["default"])(new Set(e.map((function(e){var t=e.barIndex;return t})))).length;e.forEach((function(e){return e.barNum=t}))}function w(e){var t=e.slice(-1)[0],n=t.barCategoryGap,r=t.labelAxis.tickGap,i=0;i="number"===typeof n?n:(1-parseInt(n)/100)*r,e.forEach((function(e){return e.barCategoryWidth=i}))}function x(e){var t=e.slice(-1)[0],n=t.barCategoryWidth,r=t.barWidth,i=t.barGap,o=t.barNum,s=[];"number"===typeof r||"auto"!==r?s=k(n,r,i,o):"auto"===r&&(s=M(n,r,i,o));var l=s,u=(0,a["default"])(l,2),c=u[0],d=u[1];e.forEach((function(e){e.barWidth=c,e.barGap=d}))}function k(e,t,n){var r=0,i=0;return r="number"===typeof t?t:parseInt(t)/100*e,i="number"===typeof n?n:parseInt(n)/100*r,[r,i]}function M(e,t,n,r){var i=0,o=0,a=e/r;if("number"===typeof n)o=n,i=a-o;else{var s=10+parseInt(n)/10;0===s?(i=2*a,o=-i):(i=a/s*10,o=a-i)}return[i,o]}function S(e){var t=e.slice(-1)[0],n=t.barGap,r=t.barWidth,i=t.barNum,o=(n+r)*i-n;e.forEach((function(e){return e.barAllWidthAndGap=o}))}function C(e,t){return e=O(e),e=T(e),e=A(e),e=D(e),e}function T(e){return e.map((function(e){var t=e.labelAxis,n=e.barAllWidthAndGap,r=e.barGap,i=e.barWidth,o=e.barIndex,a=t.tickGap,s=t.tickPosition,l=t.axis,u="x"===l?0:1,c=s.map((function(e,t){var l=s[t][u]-a/2,c=l+(a-n)/2;return c+(o+.5)*i+o*r}));return f(f({},e),{},{barLabelAxisPos:c})}))}function O(e){return e.map((function(t){var n=(0,d.mergeSameStackData)(t,e);n=L(t,n);var r=t.valueAxis,i=r.axis,o=r.minValue,a=r.maxValue,s=r.linePosition,l=E(o,a,o<0?0:o,s,i),u=n.map((function(e){return E(o,a,e,s,i)})),c=u.map((function(e){return[l,e]}));return f(f({},t),{},{barValueAxisPos:c})}))}function L(e,t){var n=e.data;return t.map((function(e,t){return"number"===typeof n[t]?e:null})).filter((function(e){return null!==e}))}function A(e){return e.map((function(e){var t=e.barLabelAxisPos,n=e.data;return n.forEach((function(e,n){"number"!==typeof e&&(t[n]=null)})),f(f({},e),{},{barLabelAxisPos:t.filter((function(e){return null!==e}))})}))}function D(e){return e.forEach((function(e){var t=e.data,n=e.barLabelAxisPos,r=e.barValueAxisPos,i=t.filter((function(e){return"number"===typeof e})).length,o=n.length;o>i&&(n.splice(i),r.splice(i))})),e}function E(e,t,n,r,i){if("number"!==typeof n)return null;var o=t-e,a="x"===i?0:1,s=r[1][a]-r[0][a],l=(n-e)/o;0===o&&(l=0);var u=l*s;return u+r[0][a]}function I(e){var t=e.animationCurve,n=e.animationFrame,r=e.rLevel,i=j(e),o=R(e);return i.map((function(i){return{name:"rect",index:r,visible:e.backgroundBar.show,animationCurve:t,animationFrame:n,shape:i,style:o}}))}function j(e){var t=e.labelAxis,n=e.valueAxis,r=t.tickPosition,i=n.axis,o=n.linePosition,a=P(e),s=a/2,l="x"===i?0:1,u=r.map((function(e){return e[1-l]})),c=[o[0][l],o[1][l]],d=c[0],h=c[1];return u.map((function(e){return"x"===i?{x:d,y:e-s,w:h-d,h:a}:{x:e-s,y:h,w:a,h:d-h}}))}function P(e){var t=e.barAllWidthAndGap,n=e.barCategoryWidth,r=e.backgroundBar,i=r.width;return"number"===typeof i?i:"auto"===i?t:parseInt(i)/100*n}function R(e){return e.backgroundBar.style}function N(e){var t=e.barLabelAxisPos,n=e.animationCurve,r=e.animationFrame,i=e.rLevel,o=B(e);return t.map((function(t,a){return{name:o,index:i,animationCurve:n,animationFrame:r,shape:Y(e,a),style:V(e,a)}}))}function B(e){var t=e.shapeType;return"leftEchelon"===t||"rightEchelon"===t?"polyline":"rect"}function Y(e,t){var n=e.shapeType;return"leftEchelon"===n?F(e,t):"rightEchelon"===n?z(e,t):H(e,t)}function F(e,t){var n=e.barValueAxisPos,r=e.barLabelAxisPos,i=e.barWidth,o=e.echelonOffset,s=(0,a["default"])(n[t],2),l=s[0],u=s[1],c=r[t],d=i/2,h=e.valueAxis.axis,f=[];return"x"===h?(f[0]=[u,c-d],f[1]=[u,c+d],f[2]=[l,c+d],f[3]=[l+o,c-d],u-l1?arguments[1]:void 0)}}),n("9c6c")(o)},"20fc":function(e,t,n){var r=n("5ca1"),i=n("8894"),o=n("2aeb");r(r.S+r.F,"Object",{make:function(e,t){return i(o(e),t)}})},"20fd":function(e,t,n){"use strict";var r=n("d9f6"),i=n("aebd");e.exports=function(e,t,n){t in e?r.f(e,t,i(0,n)):e[t]=n}},"214f":function(e,t,n){"use strict";n("b0c5");var r=n("2aba"),i=n("32e9"),o=n("79e5"),a=n("be13"),s=n("2b4c"),l=n("520a"),u=s("species"),c=!o((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$")})),d=function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();e.exports=function(e,t,n){var h=s(e),f=!o((function(){var t={};return t[h]=function(){return 7},7!=""[e](t)})),p=f?!o((function(){var t=!1,n=/a/;return n.exec=function(){return t=!0,null},"split"===e&&(n.constructor={},n.constructor[u]=function(){return n}),n[h](""),!t})):void 0;if(!f||!p||"replace"===e&&!c||"split"===e&&!d){var m=/./[h],g=n(a,h,""[e],(function(e,t,n,r,i){return t.exec===l?f&&!i?{done:!0,value:m.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}})),v=g[0],y=g[1];r(String.prototype,e,v),i(RegExp.prototype,h,2==t?function(e,t){return y.call(e,this,t)}:function(e){return y.call(e,this)})}}},"217b":function(e,t,n){"use strict";var r=n("d3f4"),i=n("38fd"),o=n("2b4c")("hasInstance"),a=Function.prototype;o in a||n("86cc").f(a,o,{value:function(e){if("function"!=typeof this||!r(e))return!1;if(!r(this.prototype))return e instanceof this;while(e=i(e))if(this.prototype===e)return!0;return!1}})},"21a1":function(e,t,n){(function(t){(function(t,n){e.exports=n()})(0,(function(){"use strict";"undefined"!==typeof window?window:"undefined"!==typeof t||"undefined"!==typeof self&&self;function e(e,t){return t={exports:{}},e(t,t.exports),t.exports}var n=e((function(e,t){(function(t,n){e.exports=n()})(0,(function(){function e(e){var t=e&&"object"===typeof e;return t&&"[object RegExp]"!==Object.prototype.toString.call(e)&&"[object Date]"!==Object.prototype.toString.call(e)}function t(e){return Array.isArray(e)?[]:{}}function n(n,r){var i=r&&!0===r.clone;return i&&e(n)?o(t(n),n,r):n}function r(t,r,i){var a=t.slice();return r.forEach((function(r,s){"undefined"===typeof a[s]?a[s]=n(r,i):e(r)?a[s]=o(t[s],r,i):-1===t.indexOf(r)&&a.push(n(r,i))})),a}function i(t,r,i){var a={};return e(t)&&Object.keys(t).forEach((function(e){a[e]=n(t[e],i)})),Object.keys(r).forEach((function(s){e(r[s])&&t[s]?a[s]=o(t[s],r[s],i):a[s]=n(r[s],i)})),a}function o(e,t,o){var a=Array.isArray(t),s=o||{arrayMerge:r},l=s.arrayMerge||r;return a?Array.isArray(e)?l(e,t,o):n(t,o):i(e,t,o)}return o.all=function(e,t){if(!Array.isArray(e)||e.length<2)throw new Error("first argument should be an array with at least two elements");return e.reduce((function(e,n){return o(e,n,t)}))},o}))}));function r(e){return e=e||Object.create(null),{on:function(t,n){(e[t]||(e[t]=[])).push(n)},off:function(t,n){e[t]&&e[t].splice(e[t].indexOf(n)>>>0,1)},emit:function(t,n){(e[t]||[]).map((function(e){e(n)})),(e["*"]||[]).map((function(e){e(t,n)}))}}}var i=e((function(e,t){var n={svg:{name:"xmlns",uri:"http://www.w3.org/2000/svg"},xlink:{name:"xmlns:xlink",uri:"http://www.w3.org/1999/xlink"}};t.default=n,e.exports=t.default})),o=function(e){return Object.keys(e).map((function(t){var n=e[t].toString().replace(/"/g,""");return t+'="'+n+'"'})).join(" ")},a=i.svg,s=i.xlink,l={};l[a.name]=a.uri,l[s.name]=s.uri;var u,c=function(e,t){void 0===e&&(e="");var r=n(l,t||{}),i=o(r);return""+e+""},d=i.svg,h=i.xlink,f={attrs:(u={style:["position: absolute","width: 0","height: 0"].join("; ")},u[d.name]=d.uri,u[h.name]=h.uri,u)},p=function(e){this.config=n(f,e||{}),this.symbols=[]};p.prototype.add=function(e){var t=this,n=t.symbols,r=this.find(e.id);return r?(n[n.indexOf(r)]=e,!1):(n.push(e),!0)},p.prototype.remove=function(e){var t=this,n=t.symbols,r=this.find(e);return!!r&&(n.splice(n.indexOf(r),1),r.destroy(),!0)},p.prototype.find=function(e){return this.symbols.filter((function(t){return t.id===e}))[0]||null},p.prototype.has=function(e){return null!==this.find(e)},p.prototype.stringify=function(){var e=this.config,t=e.attrs,n=this.symbols.map((function(e){return e.stringify()})).join("");return c(n,t)},p.prototype.toString=function(){return this.stringify()},p.prototype.destroy=function(){this.symbols.forEach((function(e){return e.destroy()}))};var m=function(e){var t=e.id,n=e.viewBox,r=e.content;this.id=t,this.viewBox=n,this.content=r};m.prototype.stringify=function(){return this.content},m.prototype.toString=function(){return this.stringify()},m.prototype.destroy=function(){var e=this;["id","viewBox","content"].forEach((function(t){return delete e[t]}))};var g=function(e){var t=!!document.importNode,n=(new DOMParser).parseFromString(e,"image/svg+xml").documentElement;return t?document.importNode(n,!0):n},v=function(e){function t(){e.apply(this,arguments)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={isMounted:{}};return n.isMounted.get=function(){return!!this.node},t.createFromExistingNode=function(e){return new t({id:e.getAttribute("id"),viewBox:e.getAttribute("viewBox"),content:e.outerHTML})},t.prototype.destroy=function(){this.isMounted&&this.unmount(),e.prototype.destroy.call(this)},t.prototype.mount=function(e){if(this.isMounted)return this.node;var t="string"===typeof e?document.querySelector(e):e,n=this.render();return this.node=n,t.appendChild(n),n},t.prototype.render=function(){var e=this.stringify();return g(c(e)).childNodes[0]},t.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},Object.defineProperties(t.prototype,n),t}(m),y={autoConfigure:!0,mountTo:"body",syncUrlsWithBaseTag:!1,listenLocationChangeEvent:!0,locationChangeEvent:"locationChange",locationChangeAngularEmitter:!1,usagesToUpdate:"use[*|href]",moveGradientsOutsideSymbol:!1},b=function(e){return Array.prototype.slice.call(e,0)},_=navigator.userAgent,w={isChrome:/chrome/i.test(_),isFirefox:/firefox/i.test(_),isIE:/msie/i.test(_)||/trident/i.test(_),isEdge:/edge/i.test(_)},x=function(e,t){var n=document.createEvent("CustomEvent");n.initCustomEvent(e,!1,!1,t),window.dispatchEvent(n)},k=function(e){var t=[];return b(e.querySelectorAll("style")).forEach((function(e){e.textContent+="",t.push(e)})),t},M=function(e){return(e||window.location.href).split("#")[0]},S=function(e){angular.module("ng").run(["$rootScope",function(t){t.$on("$locationChangeSuccess",(function(t,n,r){x(e,{oldUrl:r,newUrl:n})}))}])},C="linearGradient, radialGradient, pattern",T=function(e,t){return void 0===t&&(t=C),b(e.querySelectorAll("symbol")).forEach((function(e){b(e.querySelectorAll(t)).forEach((function(t){e.parentNode.insertBefore(t,e)}))})),e};function O(e,t){var n=b(e).reduce((function(e,n){if(!n.attributes)return e;var r=b(n.attributes),i=t?r.filter(t):r;return e.concat(i)}),[]);return n}var L=i.xlink.uri,A="xlink:href",D=/[{}|\\\^\[\]`"<>]/g;function E(e){return e.replace(D,(function(e){return"%"+e[0].charCodeAt(0).toString(16).toUpperCase()}))}function I(e,t,n){return b(e).forEach((function(e){var r=e.getAttribute(A);if(r&&0===r.indexOf(t)){var i=r.replace(t,n);e.setAttributeNS(L,A,i)}})),e}var j,P=["clipPath","colorProfile","src","cursor","fill","filter","marker","markerStart","markerMid","markerEnd","mask","stroke","style"],R=P.map((function(e){return"["+e+"]"})).join(","),N=function(e,t,n,r){var i=E(n),o=E(r),a=e.querySelectorAll(R),s=O(a,(function(e){var t=e.localName,n=e.value;return-1!==P.indexOf(t)&&-1!==n.indexOf("url("+i)}));s.forEach((function(e){return e.value=e.value.replace(i,o)})),I(t,i,o)},B={MOUNT:"mount",SYMBOL_MOUNT:"symbol_mount"},Y=function(e){function t(t){var i=this;void 0===t&&(t={}),e.call(this,n(y,t));var o=r();this._emitter=o,this.node=null;var a=this,s=a.config;if(s.autoConfigure&&this._autoConfigure(t),s.syncUrlsWithBaseTag){var l=document.getElementsByTagName("base")[0].getAttribute("href");o.on(B.MOUNT,(function(){return i.updateUrls("#",l)}))}var u=this._handleLocationChange.bind(this);this._handleLocationChange=u,s.listenLocationChangeEvent&&window.addEventListener(s.locationChangeEvent,u),s.locationChangeAngularEmitter&&S(s.locationChangeEvent),o.on(B.MOUNT,(function(e){s.moveGradientsOutsideSymbol&&T(e)})),o.on(B.SYMBOL_MOUNT,(function(e){s.moveGradientsOutsideSymbol&&T(e.parentNode),(w.isIE||w.isEdge)&&k(e)}))}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var i={isMounted:{}};return i.isMounted.get=function(){return!!this.node},t.prototype._autoConfigure=function(e){var t=this,n=t.config;"undefined"===typeof e.syncUrlsWithBaseTag&&(n.syncUrlsWithBaseTag="undefined"!==typeof document.getElementsByTagName("base")[0]),"undefined"===typeof e.locationChangeAngularEmitter&&(n.locationChangeAngularEmitter="angular"in window),"undefined"===typeof e.moveGradientsOutsideSymbol&&(n.moveGradientsOutsideSymbol=w.isFirefox)},t.prototype._handleLocationChange=function(e){var t=e.detail,n=t.oldUrl,r=t.newUrl;this.updateUrls(n,r)},t.prototype.add=function(t){var n=this,r=e.prototype.add.call(this,t);return this.isMounted&&r&&(t.mount(n.node),this._emitter.emit(B.SYMBOL_MOUNT,t.node)),r},t.prototype.attach=function(e){var t=this,n=this;if(n.isMounted)return n.node;var r="string"===typeof e?document.querySelector(e):e;return n.node=r,this.symbols.forEach((function(e){e.mount(n.node),t._emitter.emit(B.SYMBOL_MOUNT,e.node)})),b(r.querySelectorAll("symbol")).forEach((function(e){var t=v.createFromExistingNode(e);t.node=e,n.add(t)})),this._emitter.emit(B.MOUNT,r),r},t.prototype.destroy=function(){var e=this,t=e.config,n=e.symbols,r=e._emitter;n.forEach((function(e){return e.destroy()})),r.off("*"),window.removeEventListener(t.locationChangeEvent,this._handleLocationChange),this.isMounted&&this.unmount()},t.prototype.mount=function(e,t){void 0===e&&(e=this.config.mountTo),void 0===t&&(t=!1);var n=this;if(n.isMounted)return n.node;var r="string"===typeof e?document.querySelector(e):e,i=n.render();return this.node=i,t&&r.childNodes[0]?r.insertBefore(i,r.childNodes[0]):r.appendChild(i),this._emitter.emit(B.MOUNT,i),i},t.prototype.render=function(){return g(this.stringify())},t.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},t.prototype.updateUrls=function(e,t){if(!this.isMounted)return!1;var n=document.querySelectorAll(this.config.usagesToUpdate);return N(this.node,n,M(e)+"#",M(t)+"#"),!0},Object.defineProperties(t.prototype,i),t}(p),F=e((function(e){ /*! * domready (c) Dustin Diaz 2014 - License MIT */ !function(t,n){e.exports=n()}(0,(function(){var e,t=[],n=document,r=n.documentElement.doScroll,i="DOMContentLoaded",o=(r?/^loaded|^c/:/^loaded|^i|^c/).test(n.readyState);return o||n.addEventListener(i,e=function(){n.removeEventListener(i,e),o=1;while(e=t.shift())e()}),function(e){o?setTimeout(e,0):t.push(e)}}))})),z="__SVG_SPRITE_NODE__",H="__SVG_SPRITE__",V=!!window[H];V?j=window[H]:(j=new Y({attrs:{id:z}}),window[H]=j);var W=function(){var e=document.getElementById(z);e?j.attach(e):j.mount(document.body,!0)};document.body?W():F(W);var U=j;return U}))}).call(this,n("24aa"))},"21a6":function(e,t,n){(function(n){var r,i,o;(function(n,a){i=[],r=a,o="function"===typeof r?r.apply(t,i):r,void 0===o||(e.exports=o)})(0,(function(){"use strict";function t(e,t){return"undefined"==typeof t?t={autoBom:!1}:"object"!=typeof t&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e}function r(e,t,n){var r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){s(r.response,t,n)},r.onerror=function(){console.error("could not download file")},r.send()}function i(e){var t=new XMLHttpRequest;return t.open("HEAD",e,!1),t.send(),200<=t.status&&299>=t.status}function o(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(r){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var a="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof n&&n.global===n?n:void 0,s=a.saveAs||("object"!=typeof window||window!==a?function(){}:"download"in HTMLAnchorElement.prototype?function(e,t,n){var s=a.URL||a.webkitURL,l=document.createElement("a");t=t||e.name||"download",l.download=t,l.rel="noopener","string"==typeof e?(l.href=e,l.origin===location.origin?o(l):i(l.href)?r(e,t,n):o(l,l.target="_blank")):(l.href=s.createObjectURL(e),setTimeout((function(){s.revokeObjectURL(l.href)}),4e4),setTimeout((function(){o(l)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,n,a){if(n=n||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(t(e,a),n);else if(i(e))r(e,n,a);else{var s=document.createElement("a");s.href=e,s.target="_blank",setTimeout((function(){o(s)}))}}:function(e,t,n,i){if(i=i||open("","_blank"),i&&(i.document.title=i.document.body.innerText="downloading..."),"string"==typeof e)return r(e,t,n);var o="application/octet-stream"===e.type,s=/constructor/i.test(a.HTMLElement)||a.safari,l=/CriOS\/[\d]+/.test(navigator.userAgent);if((l||o&&s)&&"object"==typeof FileReader){var u=new FileReader;u.onloadend=function(){var e=u.result;e=l?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=e:location=e,i=null},u.readAsDataURL(e)}else{var c=a.URL||a.webkitURL,d=c.createObjectURL(e);i?i.location=d:location.href=d,i=null,setTimeout((function(){c.revokeObjectURL(d)}),4e4)}});a.saveAs=s.saveAs=s,e.exports=s}))}).call(this,n("24aa"))},"21bf":function(e,t,n){(function(t){(function(t,n){e.exports=n()})(0,(function(){var e=e||function(e,r){var i;if("undefined"!==typeof window&&window.crypto&&(i=window.crypto),"undefined"!==typeof self&&self.crypto&&(i=self.crypto),"undefined"!==typeof globalThis&&globalThis.crypto&&(i=globalThis.crypto),!i&&"undefined"!==typeof window&&window.msCrypto&&(i=window.msCrypto),!i&&"undefined"!==typeof t&&t.crypto&&(i=t.crypto),!i)try{i=n(1)}catch(v){}var o=function(){if(i){if("function"===typeof i.getRandomValues)try{return i.getRandomValues(new Uint32Array(1))[0]}catch(v){}if("function"===typeof i.randomBytes)try{return i.randomBytes(4).readInt32LE()}catch(v){}}throw new Error("Native crypto module could not be used to get secure random number.")},a=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),s={},l=s.lib={},u=l.Base=function(){return{extend:function(e){var t=a(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),c=l.WordArray=u.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=t!=r?t:4*e.length},toString:function(e){return(e||h).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,i=e.sigBytes;if(this.clamp(),r%4)for(var o=0;o>>2]>>>24-o%4*8&255;t[r+o>>>2]|=a<<24-(r+o)%4*8}else for(var s=0;s>>2]=n[s>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=u.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],n=0;n>>2]>>>24-i%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new c.init(n,t/2)}},f=d.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(o))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new c.init(n,t)}},p=d.Utf8={stringify:function(e){try{return decodeURIComponent(escape(f.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(e){return f.parse(unescape(encodeURIComponent(e)))}},m=l.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=p.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n,r=this._data,i=r.words,o=r.sigBytes,a=this.blockSize,s=4*a,l=o/s;l=t?e.ceil(l):e.max((0|l)-this._minBufferSize,0);var u=l*a,d=e.min(4*u,o);if(u){for(var h=0;h18),a&&(n.weChat=!0),t.svgSupported="undefined"!==typeof SVGRect,t.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,t.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),t.domSupported="undefined"!==typeof document;var s=document.documentElement.style;t.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||n.ie&&+n.version>=9}"object"===typeof wx&&"function"===typeof wx.getSystemInfoSync?(o.wxa=!0,o.touchEventsSupported=!0):"undefined"===typeof document&&"undefined"!==typeof self?o.worker=!0:!o.hasGlobalWindow||"Deno"in window?(o.node=!0,o.svgSupported=!0):a(navigator.userAgent,o),t["a"]=o},"22f8":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration var t=e.defineLocale("ko",{months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 A h:mm",LLLL:"YYYY년 MMMM D일 dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY년 MMMM D일",lll:"YYYY년 MMMM D일 A h:mm",llll:"YYYY년 MMMM D일 dddd A h:mm"},calendar:{sameDay:"오늘 LT",nextDay:"내일 LT",nextWeek:"dddd LT",lastDay:"어제 LT",lastWeek:"지난주 dddd LT",sameElse:"L"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇 초",ss:"%d초",m:"1분",mm:"%d분",h:"한 시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한 달",MM:"%d달",y:"일 년",yy:"%d년"},dayOfMonthOrdinalParse:/\d{1,2}(일|월|주)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"일";case"M":return e+"월";case"w":case"W":return e+"주";default:return e}},meridiemParse:/오전|오후/,isPM:function(e){return"오후"===e},meridiem:function(e,t,n){return e<12?"오전":"오후"}});return t}))},"230e":function(e,t,n){var r=n("d3f4"),i=n("7726").document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},2397:function(e,t,n){var r=n("5ca1"),i=n("2aeb"),o=n("d8e8"),a=n("cb7c"),s=n("d3f4"),l=n("79e5"),u=n("f0c1"),c=(n("7726").Reflect||{}).construct,d=l((function(){function e(){}return!(c((function(){}),[],e)instanceof e)})),h=!l((function(){c((function(){}))}));r(r.S+r.F*(d||h),"Reflect",{construct:function(e,t){o(e),a(t);var n=arguments.length<3?e:o(arguments[2]);if(h&&!d)return c(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var r=[null];return r.push.apply(r,t),new(u.apply(e,r))}var l=n.prototype,f=i(s(l)?l:Object.prototype),p=Function.apply.call(e,f,t);return s(p)?p:f}})},"23be":function(e,t,n){"use strict";n("aa77")("trimLeft",(function(e){return function(){return e(this,1)}}),"trimStart")},"23bf":function(e,t,n){"use strict";var r=n("5ca1"),i=n("fab2"),o=n("2d95"),a=n("77f1"),s=n("9def"),l=[].slice;r(r.P+r.F*n("79e5")((function(){i&&l.call(i)})),"Array",{slice:function(e,t){var n=s(this.length),r=o(this);if(t=void 0===t?n:t,"Array"==r)return l.call(this,e,t);for(var i=a(e,n),u=a(t,n),c=s(u-i),d=new Array(c),h=0;h=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){l.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){l.headers[e]=r.merge(o)})),e.exports=l}).call(this,n("4362"))},"24aa":function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}e.exports=n},"24c5":function(e,t,n){"use strict";var r,i,o,a,s=n("b8e3"),l=n("e53d"),u=n("d864"),c=n("40c3"),d=n("63b6"),h=n("f772"),f=n("79aa"),p=n("1173"),m=n("a22a"),g=n("f201"),v=n("4178").set,y=n("aba2")(),b=n("656e"),_=n("4439"),w=n("bc13"),x=n("cd78"),k="Promise",M=l.TypeError,S=l.process,C=S&&S.versions,T=C&&C.v8||"",O=l[k],L="process"==c(S),A=function(){},D=i=b.f,E=!!function(){try{var e=O.resolve(1),t=(e.constructor={})[n("5168")("species")]=function(e){e(A,A)};return(L||"function"==typeof PromiseRejectionEvent)&&e.then(A)instanceof t&&0!==T.indexOf("6.6")&&-1===w.indexOf("Chrome/66")}catch(r){}}(),I=function(e){var t;return!(!h(e)||"function"!=typeof(t=e.then))&&t},j=function(e,t){if(!e._n){e._n=!0;var n=e._c;y((function(){var r=e._v,i=1==e._s,o=0,a=function(t){var n,o,a,s=i?t.ok:t.fail,l=t.resolve,u=t.reject,c=t.domain;try{s?(i||(2==e._h&&N(e),e._h=1),!0===s?n=r:(c&&c.enter(),n=s(r),c&&(c.exit(),a=!0)),n===t.promise?u(M("Promise-chain cycle")):(o=I(n))?o.call(n,l,u):l(n)):u(r)}catch(d){c&&!a&&c.exit(),u(d)}};while(n.length>o)a(n[o++]);e._c=[],e._n=!1,t&&!e._h&&P(e)}))}},P=function(e){v.call(l,(function(){var t,n,r,i=e._v,o=R(e);if(o&&(t=_((function(){L?S.emit("unhandledRejection",i,e):(n=l.onunhandledrejection)?n({promise:e,reason:i}):(r=l.console)&&r.error&&r.error("Unhandled promise rejection",i)})),e._h=L||R(e)?2:1),e._a=void 0,o&&t.e)throw t.v}))},R=function(e){return 1!==e._h&&0===(e._a||e._c).length},N=function(e){v.call(l,(function(){var t;L?S.emit("rejectionHandled",e):(t=l.onrejectionhandled)&&t({promise:e,reason:e._v})}))},B=function(e){var t=this;t._d||(t._d=!0,t=t._w||t,t._v=e,t._s=2,t._a||(t._a=t._c.slice()),j(t,!0))},Y=function(e){var t,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw M("Promise can't be resolved itself");(t=I(e))?y((function(){var r={_w:n,_d:!1};try{t.call(e,u(Y,r,1),u(B,r,1))}catch(i){B.call(r,i)}})):(n._v=e,n._s=1,j(n,!1))}catch(r){B.call({_w:n,_d:!1},r)}}};E||(O=function(e){p(this,O,k,"_h"),f(e),r.call(this);try{e(u(Y,this,1),u(B,this,1))}catch(t){B.call(this,t)}},r=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},r.prototype=n("5c95")(O.prototype,{then:function(e,t){var n=D(g(this,O));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=L?S.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&j(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),o=function(){var e=new r;this.promise=e,this.resolve=u(Y,e,1),this.reject=u(B,e,1)},b.f=D=function(e){return e===O||e===a?new o(e):i(e)}),d(d.G+d.W+d.F*!E,{Promise:O}),n("45f2")(O,k),n("4c95")(k),a=n("584a")[k],d(d.S+d.F*!E,k,{reject:function(e){var t=D(this),n=t.reject;return n(e),t.promise}}),d(d.S+d.F*(s||!E),k,{resolve:function(e){return x(s&&this===a?O:this,e)}}),d(d.S+d.F*!(E&&n("4ee1")((function(e){O.all(e)["catch"](A)}))),k,{all:function(e){var t=this,n=D(t),r=n.resolve,i=n.reject,o=_((function(){var n=[],o=0,a=1;m(e,!1,(function(e){var s=o++,l=!1;n.push(void 0),a++,t.resolve(e).then((function(e){l||(l=!0,n[s]=e,--a||r(n))}),i)})),--a||r(n)}));return o.e&&i(o.v),n.promise},race:function(e){var t=this,n=D(t),r=n.reject,i=_((function(){m(e,!1,(function(e){t.resolve(e).then(n.resolve,r)}))}));return i.e&&r(i.v),n.promise}})},"252f":function(e,t,n){"use strict";var r=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.line=g;var i=r(n("7037")),o=r(n("278c")),a=r(n("448a")),s=r(n("9523")),l=n("18ad"),u=n("9d85"),c=r(n("050c")),d=n("becb");function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},n=t.xAxis,r=t.yAxis,i=t.series,o=[];n&&r&&i&&(o=(0,d.initNeedSeries)(i,u.lineConfig,"line"),o=v(o,e)),(0,l.doUpdate)({chart:e,series:o,key:"lineArea",getGraphConfig:x,getStartGraphConfig:T,beforeUpdate:O,beforeChange:L}),(0,l.doUpdate)({chart:e,series:o,key:"line",getGraphConfig:A,getStartGraphConfig:j,beforeUpdate:O,beforeChange:L}),(0,l.doUpdate)({chart:e,series:o,key:"linePoint",getGraphConfig:P,getStartGraphConfig:B}),(0,l.doUpdate)({chart:e,series:o,key:"lineLabel",getGraphConfig:Y})}function v(e,t){var n=t.axisData;return e.map((function(t){var r=(0,d.mergeSameStackData)(t,e);r=y(t,r);var i=b(t,n),o=_(r,i),a=w(i);return f(f({},t),{},{linePosition:o.filter((function(e){return e})),lineFillBottomPos:a})}))}function y(e,t){var n=e.data;return t.map((function(e,t){return"number"===typeof n[t]?e:null}))}function b(e,t){var n=e.xAxisIndex,r=e.yAxisIndex,i=t.find((function(e){var t=e.axis,r=e.index;return"x"===t&&r===n})),o=t.find((function(e){var t=e.axis,n=e.index;return"y"===t&&n===r}));return[i,o]}function _(e,t){var n=t.findIndex((function(e){var t=e.data;return"value"===t})),r=t[n],i=t[1-n],o=r.linePosition,a=r.axis,s=i.tickPosition,l=s.length,u="x"===a?0:1,c=o[0][u],d=o[1][u],h=d-c,f=r.maxValue,p=r.minValue,m=f-p,g=new Array(l).fill(0).map((function(t,n){var r=e[n];if("number"!==typeof r)return null;var i=(r-p)/m;return 0===m&&(i=0),i*h+c}));return g.map((function(e,t){if(t>=l||"number"!==typeof e)return null;var n=[e,s[t][1-u]];return 0===u||n.reverse(),n}))}function w(e){var t=e.find((function(e){var t=e.data;return"value"===t})),n=t.axis,r=t.linePosition,i=t.minValue,o=t.maxValue,a="x"===n?0:1,s=r[0][a];if(i<0&&o>0){var l=o-i,u=Math.abs(r[0][a]-r[1][a]),c=Math.abs(i)/l*u;"y"===n&&(c*=-1),s+=c}return{changeIndex:a,changeValue:s}}function x(e){var t=e.animationCurve,n=e.animationFrame,r=e.lineFillBottomPos,i=e.rLevel;return[{name:D(e),index:i,animationCurve:t,animationFrame:n,visible:e.lineArea.show,lineFillBottomPos:r,shape:k(e),style:M(e),drawed:C}]}function k(e){var t=e.linePosition;return{points:t}}function M(e){var t=e.lineArea,n=e.color,r=t.gradient,i=t.style,o=[i.fill||n],a=(0,d.deepMerge)(o,r);1===a.length&&a.push(a[0]);var s=S(e);return i=f(f({},i),{},{stroke:"rgba(0, 0, 0, 0)"}),(0,d.deepMerge)({gradientColor:a,gradientParams:s,gradientType:"linear",gradientWith:"fill"},i)}function S(e){var t=e.lineFillBottomPos,n=e.linePosition,r=t.changeIndex,i=t.changeValue,o=n.map((function(e){return e[r]})),s=Math.max.apply(Math,(0,a["default"])(o)),l=Math.min.apply(Math,(0,a["default"])(o)),u=s;return 1===r&&(u=l),1===r?[0,u,0,i]:[u,0,i,0]}function C(e,t){var n=e.lineFillBottomPos,r=e.shape,i=t.ctx,o=r.points,s=n.changeIndex,l=n.changeValue,u=(0,a["default"])(o[o.length-1]),c=(0,a["default"])(o[0]);u[s]=l,c[s]=l,i.lineTo.apply(i,(0,a["default"])(u)),i.lineTo.apply(i,(0,a["default"])(c)),i.closePath(),i.fill()}function T(e){var t=x(e)[0],n=f({},t.style);return n.opacity=0,t.style=n,[t]}function O(e,t,n,r){var i=e[n];if(i){var o=D(t),a=r.chart.render,s=i[0].name,l=o!==s;l&&(i.forEach((function(e){return a.delGraph(e)})),e[n]=null)}}function L(e,t){var n=t.shape.points,r=e.shape.points,i=r.length,o=n.length;if(o>i){var s=r.slice(-1)[0],l=new Array(o-i).fill(0).map((function(e){return(0,a["default"])(s)}));r.push.apply(r,(0,a["default"])(l))}else o1&&void 0!==arguments[1]&&arguments[1];if(!t)return(0,d.getPolylineLength)(e);var n=p(e);return m(n)}function j(e){var t=e.lineStyle.lineDash,n=A(e)[0],r=n.style.lineDash;return r=t?[0,0]:(0,a["default"])(r).reverse(),n.style.lineDash=r,[n]}function P(e){var t=e.animationCurve,n=e.animationFrame,r=e.rLevel,i=R(e),o=N(e);return i.map((function(i){return{name:"circle",index:r+2,visible:e.linePoint.show,animationCurve:t,animationFrame:n,shape:i,style:o}}))}function R(e){var t=e.linePosition,n=e.linePoint.radius;return t.map((function(e){var t=(0,o["default"])(e,2),r=t[0],i=t[1];return{r:n,rx:r,ry:i}}))}function N(e){var t=e.color,n=e.linePoint.style;return(0,d.deepMerge)({stroke:t},n)}function B(e){var t=P(e);return t.forEach((function(e){e.shape.r=.1})),t}function Y(e){var t=e.animationCurve,n=e.animationFrame,r=e.rLevel,i=F(e),o=U(e);return i.map((function(i,a){return{name:"text",index:r+3,visible:e.label.show,animationCurve:t,animationFrame:n,shape:i,style:o}}))}function F(e){var t=W(e),n=z(e);return t.map((function(e,t){return{content:e,position:n[t]}}))}function z(e){var t=e.linePosition,n=e.lineFillBottomPos,r=e.label,i=r.position,o=r.offset,s=n.changeIndex,l=n.changeValue;return t.map((function(e){if("bottom"===i&&(e=(0,a["default"])(e),e[s]=l),"center"===i){var t=(0,a["default"])(e);t[s]=l,e=V(e,t)}return H(e,o)}))}function H(e,t){var n=(0,o["default"])(e,2),r=n[0],i=n[1],a=(0,o["default"])(t,2),s=a[0],l=a[1];return[r+s,i+l]}function V(e,t){var n=(0,o["default"])(e,2),r=n[0],i=n[1],a=(0,o["default"])(t,2),s=a[0],l=a[1];return[(r+s)/2,(i+l)/2]}function W(e){var t=e.data,n=e.label.formatter;if(t=t.filter((function(e){return"number"===typeof e})).map((function(e){return e.toString()})),!n)return t;var r=(0,i["default"])(n);return"string"===r?t.map((function(e){return n.replace("{value}",e)})):"function"===r?t.map((function(e,t){return n({value:e,index:t})})):t}function U(e){var t=e.color,n=e.label.style;return(0,d.deepMerge)({fill:t},n)}},2554:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration function t(e,t,n,r){switch(n){case"m":return t?"jedna minuta":r?"jednu minutu":"jedne minute"}}function n(e,t,n){var r=e+" ";switch(n){case"ss":return r+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi",r;case"mm":return r+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta",r;case"h":return"jedan sat";case"hh":return r+=1===e?"sat":2===e||3===e||4===e?"sata":"sati",r;case"dd":return r+=1===e?"dan":"dana",r;case"MM":return r+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci",r;case"yy":return r+=1===e?"godina":2===e||3===e||4===e?"godine":"godina",r}}var r=e.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:n,m:t,mm:n,h:n,hh:n,d:"dan",dd:n,M:"mjesec",MM:n,y:"godinu",yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return r}))},"25b0":function(e,t,n){n("1df8"),e.exports=n("584a").Object.setPrototypeOf},"25c9":function(e,t,n){var r=n("5ca1"),i=Math.exp;r(r.S,"Math",{cosh:function(e){return(i(e=+e)+i(-e))/2}})},"25db":function(e,t,n){n("5eda")("getOwnPropertyNames",(function(){return n("7bbc").f}))},"25eb":function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},2621:function(e,t){t.f=Object.getOwnPropertySymbols},"262f":function(e,t,n){var r=n("5ca1");r(r.G+r.W+r.F*!n("0f88").ABV,{DataView:n("ed0b").DataView})},2655:function(e,t){function n(e){return!!e&&("object"===typeof e||"function"===typeof e)&&"function"===typeof e.then}e.exports=n,e.exports.default=n},"26f9":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration var t={ss:"sekundė_sekundžių_sekundes",m:"minutė_minutės_minutę",mm:"minutės_minučių_minutes",h:"valanda_valandos_valandą",hh:"valandos_valandų_valandas",d:"diena_dienos_dieną",dd:"dienos_dienų_dienas",M:"mėnuo_mėnesio_mėnesį",MM:"mėnesiai_mėnesių_mėnesius",y:"metai_metų_metus",yy:"metai_metų_metus"};function n(e,t,n,r){return t?"kelios sekundės":r?"kelių sekundžių":"kelias sekundes"}function r(e,t,n,r){return t?o(n)[0]:r?o(n)[1]:o(n)[2]}function i(e){return e%10===0||e>10&&e<20}function o(e){return t[e].split("_")}function a(e,t,n,a){var s=e+" ";return 1===e?s+r(e,t,n[0],a):t?s+(i(e)?o(n)[1]:o(n)[0]):a?s+o(n)[1]:s+(i(e)?o(n)[1]:o(n)[2])}var s=e.defineLocale("lt",{months:{format:"sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"),weekdaysMin:"S_P_A_T_K_Pn_Š".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[Šiandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Praėjusį] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prieš %s",s:n,ss:a,m:r,mm:a,h:r,hh:a,d:r,dd:a,M:r,MM:a,y:r,yy:a},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(e){return e+"-oji"},week:{dow:1,doy:4}});return s}))},2748:function(e,t,n){var r=n("5ca1"),i=180/Math.PI;r(r.S,"Math",{degrees:function(e){return e*i}})},"278c":function(e,t,n){var r=n("c135"),i=n("9b42"),o=n("6613"),a=n("c240");function s(e,t){return r(e)||i(e,t)||o(e,t)||a()}e.exports=s,e.exports.__esModule=!0,e.exports["default"]=e.exports},"27ee":function(e,t,n){var r=n("23c6"),i=n("2b4c")("iterator"),o=n("84f2");e.exports=n("8378").getIteratorMethod=function(e){if(void 0!=e)return e[i]||e["@@iterator"]||o[r(e)]}},2848:function(e,t,n){},2877:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var l,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:u}}n.d(t,"a",(function(){return r}))},"28a5":function(e,t,n){"use strict";var r=n("aae3"),i=n("cb7c"),o=n("ebd6"),a=n("0390"),s=n("9def"),l=n("5f1b"),u=n("520a"),c=n("79e5"),d=Math.min,h=[].push,f="split",p="length",m="lastIndex",g=4294967295,v=!c((function(){RegExp(g,"y")}));n("214f")("split",2,(function(e,t,n,c){var y;return y="c"=="abbc"[f](/(b)*/)[1]||4!="test"[f](/(?:)/,-1)[p]||2!="ab"[f](/(?:ab)*/)[p]||4!="."[f](/(.?)(.?)/)[p]||"."[f](/()()/)[p]>1||""[f](/.?/)[p]?function(e,t){var i=String(this);if(void 0===e&&0===t)return[];if(!r(e))return n.call(i,e,t);var o,a,s,l=[],c=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,f=void 0===t?g:t>>>0,v=new RegExp(e.source,c+"g");while(o=u.call(v,i)){if(a=v[m],a>d&&(l.push(i.slice(d,o.index)),o[p]>1&&o.index=f))break;v[m]===o.index&&v[m]++}return d===i[p]?!s&&v.test("")||l.push(""):l.push(i.slice(d)),l[p]>f?l.slice(0,f):l}:"0"[f](void 0,0)[p]?function(e,t){return void 0===e&&0===t?[]:n.call(this,e,t)}:n,[function(n,r){var i=e(this),o=void 0==n?void 0:n[t];return void 0!==o?o.call(n,i,r):y.call(String(i),n,r)},function(e,t){var r=c(y,e,this,t,y!==n);if(r.done)return r.value;var u=i(e),h=String(this),f=o(u,RegExp),p=u.unicode,m=(u.ignoreCase?"i":"")+(u.multiline?"m":"")+(u.unicode?"u":"")+(v?"y":"g"),b=new f(v?u:"^(?:"+u.source+")",m),_=void 0===t?g:t>>>0;if(0===_)return[];if(0===h.length)return null===l(b,h)?[h]:[];var w=0,x=0,k=[];while(x=2&&e<=4?t[1]:t[2]},translate:function(e,n,r){var i=t.words[r];return 1===r.length?n?i[0]:i[1]:e+" "+t.correctGrammaticalCase(e,i)}},n=e.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){var e=["[prošle] [nedjelje] [u] LT","[prošlog] [ponedjeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srijede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"];return e[this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mjesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return n}))},"294c":function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},"2a66":function(e,t,n){(function(t,r,i){e.exports=r(n("21bf"),n("38ba"))})(0,(function(e){return e.pad.ZeroPadding={pad:function(e,t){var n=4*t;e.clamp(),e.sigBytes+=n-(e.sigBytes%n||n)},unpad:function(e){var t=e.words,n=e.sigBytes-1;for(n=e.sigBytes-1;n>=0;n--)if(t[n>>>2]>>>24-n%4*8&255){e.sigBytes=n+1;break}}},e.pad.ZeroPadding}))},"2aba":function(e,t,n){var r=n("7726"),i=n("32e9"),o=n("69a8"),a=n("ca5a")("src"),s=n("fa5b"),l="toString",u=(""+s).split(l);n("8378").inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,n,s){var l="function"==typeof n;l&&(o(n,"name")||i(n,"name",t)),e[t]!==n&&(l&&(o(n,a)||i(n,a,e[t]?""+e[t]:u.join(String(t)))),e===r?e[t]=n:s?e[t]?e[t]=n:i(e,t,n):(delete e[t],i(e,t,n)))})(Function.prototype,l,(function(){return"function"==typeof this&&this[a]||s.call(this)}))},"2aeb":function(e,t,n){var r=n("cb7c"),i=n("1495"),o=n("e11e"),a=n("613b")("IE_PROTO"),s=function(){},l="prototype",u=function(){var e,t=n("230e")("iframe"),r=o.length,i="<",a=">";t.style.display="none",n("fab2").appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(i+"script"+a+"document.F=Object"+i+"/script"+a),e.close(),u=e.F;while(r--)delete u[l][o[r]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(s[l]=r(e),n=new s,s[l]=null,n[a]=e):n=u(),void 0===t?n:i(n,t)}},"2b0e":function(e,t,n){"use strict";n.r(t),function(e){ /*! * Vue.js v2.6.10 * (c) 2014-2019 Evan You * Released under the MIT License. */ var n=Object.freeze({});function r(e){return void 0===e||null===e}function i(e){return void 0!==e&&null!==e}function o(e){return!0===e}function a(e){return!1===e}function s(e){return"string"===typeof e||"number"===typeof e||"symbol"===typeof e||"boolean"===typeof e}function l(e){return null!==e&&"object"===typeof e}var u=Object.prototype.toString;function c(e){return"[object Object]"===u.call(e)}function d(e){return"[object RegExp]"===u.call(e)}function h(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function f(e){return i(e)&&"function"===typeof e.then&&"function"===typeof e.catch}function p(e){return null==e?"":Array.isArray(e)||c(e)&&e.toString===u?JSON.stringify(e,null,2):String(e)}function m(e){var t=parseFloat(e);return isNaN(t)?e:t}function g(e,t){for(var n=Object.create(null),r=e.split(","),i=0;i-1)return e.splice(n,1)}}var b=Object.prototype.hasOwnProperty;function _(e,t){return b.call(e,t)}function w(e){var t=Object.create(null);return function(n){var r=t[n];return r||(t[n]=e(n))}}var x=/-(\w)/g,k=w((function(e){return e.replace(x,(function(e,t){return t?t.toUpperCase():""}))})),M=w((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),S=/\B([A-Z])/g,C=w((function(e){return e.replace(S,"-$1").toLowerCase()}));function T(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n}function O(e,t){return e.bind(t)}var L=Function.prototype.bind?O:T;function A(e,t){t=t||0;var n=e.length-t,r=new Array(n);while(n--)r[n]=e[n+t];return r}function D(e,t){for(var n in t)e[n]=t[n];return e}function E(e){for(var t={},n=0;n0,ne=Q&&Q.indexOf("edge/")>0,re=(Q&&Q.indexOf("android"),Q&&/iphone|ipad|ipod|ios/.test(Q)||"ios"===J),ie=(Q&&/chrome\/\d+/.test(Q),Q&&/phantomjs/.test(Q),Q&&Q.match(/firefox\/(\d+)/)),oe={}.watch,ae=!1;if(K)try{var se={};Object.defineProperty(se,"passive",{get:function(){ae=!0}}),window.addEventListener("test-passive",null,se)}catch(ka){}var le=function(){return void 0===q&&(q=!K&&!Z&&"undefined"!==typeof e&&(e["process"]&&"server"===e["process"].env.VUE_ENV)),q},ue=K&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ce(e){return"function"===typeof e&&/native code/.test(e.toString())}var de,he="undefined"!==typeof Symbol&&ce(Symbol)&&"undefined"!==typeof Reflect&&ce(Reflect.ownKeys);de="undefined"!==typeof Set&&ce(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var fe=I,pe=0,me=function(){this.id=pe++,this.subs=[]};me.prototype.addSub=function(e){this.subs.push(e)},me.prototype.removeSub=function(e){y(this.subs,e)},me.prototype.depend=function(){me.target&&me.target.addDep(this)},me.prototype.notify=function(){var e=this.subs.slice();for(var t=0,n=e.length;t-1)if(o&&!_(i,"default"))a=!1;else if(""===a||a===C(e)){var l=et(String,i.type);(l<0||s0&&(a=Tt(a,(t||"")+"_"+n),Ct(a[0])&&Ct(u)&&(c[l]=xe(u.text+a[0].text),a.shift()),c.push.apply(c,a)):s(a)?Ct(u)?c[l]=xe(u.text+a):""!==a&&c.push(xe(a)):Ct(a)&&Ct(u)?c[l]=xe(u.text+a.text):(o(e._isVList)&&i(a.tag)&&r(a.key)&&i(t)&&(a.key="__vlist"+t+"_"+n+"__"),c.push(a)));return c}function Ot(e){var t=e.$options.provide;t&&(e._provided="function"===typeof t?t.call(e):t)}function Lt(e){var t=At(e.$options.inject,e);t&&(Le(!1),Object.keys(t).forEach((function(n){je(e,n,t[n])})),Le(!0))}function At(e,t){if(e){for(var n=Object.create(null),r=he?Reflect.ownKeys(e):Object.keys(e),i=0;i0,a=e?!!e.$stable:!o,s=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(a&&r&&r!==n&&s===r.$key&&!o&&!r.$hasNormal)return r;for(var l in i={},e)e[l]&&"$"!==l[0]&&(i[l]=jt(t,l,e[l]))}else i={};for(var u in t)u in i||(i[u]=Pt(t,u));return e&&Object.isExtensible(e)&&(e._normalized=i),U(i,"$stable",a),U(i,"$key",s),U(i,"$hasNormal",o),i}function jt(e,t,n){var r=function(){var e=arguments.length?n.apply(null,arguments):n({});return e=e&&"object"===typeof e&&!Array.isArray(e)?[e]:St(e),e&&(0===e.length||1===e.length&&e[0].isComment)?void 0:e};return n.proxy&&Object.defineProperty(e,t,{get:r,enumerable:!0,configurable:!0}),r}function Pt(e,t){return function(){return e[t]}}function Rt(e,t){var n,r,o,a,s;if(Array.isArray(e)||"string"===typeof e)for(n=new Array(e.length),r=0,o=e.length;r1?A(n):n;for(var r=A(arguments,1),i='event handler for "'+e+'"',o=0,a=n.length;odocument.createEvent("Event").timeStamp&&(qn=function(){return Xn.now()})}function Kn(){var e,t;for(Gn=qn(),Wn=!0,Fn.sort((function(e,t){return e.id-t.id})),Un=0;UnUn&&Fn[n].id>e.id)n--;Fn.splice(n+1,0,e)}else Fn.push(e);Vn||(Vn=!0,pt(Kn))}}var tr=0,nr=function(e,t,n,r,i){this.vm=e,i&&(e._watcher=this),e._watchers.push(this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync,this.before=r.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++tr,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new de,this.newDepIds=new de,this.expression="","function"===typeof t?this.getter=t:(this.getter=G(t),this.getter||(this.getter=I)),this.value=this.lazy?void 0:this.get()};nr.prototype.get=function(){var e;ve(this);var t=this.vm;try{e=this.getter.call(t,t)}catch(ka){if(!this.user)throw ka;tt(ka,t,'getter for watcher "'+this.expression+'"')}finally{this.deep&>(e),ye(),this.cleanupDeps()}return e},nr.prototype.addDep=function(e){var t=e.id;this.newDepIds.has(t)||(this.newDepIds.add(t),this.newDeps.push(e),this.depIds.has(t)||e.addSub(this))},nr.prototype.cleanupDeps=function(){var e=this.deps.length;while(e--){var t=this.deps[e];this.newDepIds.has(t.id)||t.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},nr.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():er(this)},nr.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||l(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(ka){tt(ka,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},nr.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},nr.prototype.depend=function(){var e=this.deps.length;while(e--)this.deps[e].depend()},nr.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||y(this.vm._watchers,this);var e=this.deps.length;while(e--)this.deps[e].removeSub(this);this.active=!1}};var rr={enumerable:!0,configurable:!0,get:I,set:I};function ir(e,t,n){rr.get=function(){return this[t][n]},rr.set=function(e){this[t][n]=e},Object.defineProperty(e,n,rr)}function or(e){e._watchers=[];var t=e.$options;t.props&&ar(e,t.props),t.methods&&pr(e,t.methods),t.data?sr(e):Ie(e._data={},!0),t.computed&&cr(e,t.computed),t.watch&&t.watch!==oe&&mr(e,t.watch)}function ar(e,t){var n=e.$options.propsData||{},r=e._props={},i=e.$options._propKeys=[],o=!e.$parent;o||Le(!1);var a=function(o){i.push(o);var a=Ke(o,t,n,e);je(r,o,a),o in e||ir(e,"_props",o)};for(var s in t)a(s);Le(!0)}function sr(e){var t=e.$options.data;t=e._data="function"===typeof t?lr(t,e):t||{},c(t)||(t={});var n=Object.keys(t),r=e.$options.props,i=(e.$options.methods,n.length);while(i--){var o=n[i];0,r&&_(r,o)||W(o)||ir(e,"_data",o)}Ie(t,!0)}function lr(e,t){ve();try{return e.call(t,t)}catch(ka){return tt(ka,t,"data()"),{}}finally{ye()}}var ur={lazy:!0};function cr(e,t){var n=e._computedWatchers=Object.create(null),r=le();for(var i in t){var o=t[i],a="function"===typeof o?o:o.get;0,r||(n[i]=new nr(e,a||I,I,ur)),i in e||dr(e,i,o)}}function dr(e,t,n){var r=!le();"function"===typeof n?(rr.get=r?hr(t):fr(n),rr.set=I):(rr.get=n.get?r&&!1!==n.cache?hr(t):fr(n.get):I,rr.set=n.set||I),Object.defineProperty(e,t,rr)}function hr(e){return function(){var t=this._computedWatchers&&this._computedWatchers[e];if(t)return t.dirty&&t.evaluate(),me.target&&t.depend(),t.value}}function fr(e){return function(){return e.call(this,this)}}function pr(e,t){e.$options.props;for(var n in t)e[n]="function"!==typeof t[n]?I:L(t[n],e)}function mr(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var i=0;i-1)return this;var n=A(arguments,1);return n.unshift(this),"function"===typeof e.install?e.install.apply(e,n):"function"===typeof e&&e.apply(null,n),t.push(e),this}}function Sr(e){e.mixin=function(e){return this.options=qe(this.options,e),this}}function Cr(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,r=n.cid,i=e._Ctor||(e._Ctor={});if(i[r])return i[r];var o=e.name||n.options.name;var a=function(e){this._init(e)};return a.prototype=Object.create(n.prototype),a.prototype.constructor=a,a.cid=t++,a.options=qe(n.options,e),a["super"]=n,a.options.props&&Tr(a),a.options.computed&&Or(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,F.forEach((function(e){a[e]=n[e]})),o&&(a.options.components[o]=a),a.superOptions=n.options,a.extendOptions=e,a.sealedOptions=D({},a.options),i[r]=a,a}}function Tr(e){var t=e.options.props;for(var n in t)ir(e.prototype,"_props",n)}function Or(e){var t=e.options.computed;for(var n in t)dr(e.prototype,n,t[n])}function Lr(e){F.forEach((function(t){e[t]=function(e,n){return n?("component"===t&&c(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"===typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}}))}function Ar(e){return e&&(e.Ctor.options.name||e.tag)}function Dr(e,t){return Array.isArray(e)?e.indexOf(t)>-1:"string"===typeof e?e.split(",").indexOf(t)>-1:!!d(e)&&e.test(t)}function Er(e,t){var n=e.cache,r=e.keys,i=e._vnode;for(var o in n){var a=n[o];if(a){var s=Ar(a.componentOptions);s&&!t(s)&&Ir(n,o,r,i)}}}function Ir(e,t,n,r){var i=e[t];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),e[t]=null,y(n,t)}br(kr),vr(kr),Ln(kr),In(kr),yn(kr);var jr=[String,RegExp,Array],Pr={name:"keep-alive",abstract:!0,props:{include:jr,exclude:jr,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)Ir(this.cache,e,this.keys)},mounted:function(){var e=this;this.$watch("include",(function(t){Er(e,(function(e){return Dr(t,e)}))})),this.$watch("exclude",(function(t){Er(e,(function(e){return!Dr(t,e)}))}))},render:function(){var e=this.$slots.default,t=kn(e),n=t&&t.componentOptions;if(n){var r=Ar(n),i=this,o=i.include,a=i.exclude;if(o&&(!r||!Dr(o,r))||a&&r&&Dr(a,r))return t;var s=this,l=s.cache,u=s.keys,c=null==t.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):t.key;l[c]?(t.componentInstance=l[c].componentInstance,y(u,c),u.push(c)):(l[c]=t,u.push(c),this.max&&u.length>parseInt(this.max)&&Ir(l,u[0],u,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}},Rr={KeepAlive:Pr};function Nr(e){var t={get:function(){return H}};Object.defineProperty(e,"config",t),e.util={warn:fe,extend:D,mergeOptions:qe,defineReactive:je},e.set=Pe,e.delete=Re,e.nextTick=pt,e.observable=function(e){return Ie(e),e},e.options=Object.create(null),F.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,D(e.options.components,Rr),Mr(e),Sr(e),Cr(e),Lr(e)}Nr(kr),Object.defineProperty(kr.prototype,"$isServer",{get:le}),Object.defineProperty(kr.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(kr,"FunctionalRenderContext",{value:Zt}),kr.version="2.6.10";var Br=g("style,class"),Yr=g("input,textarea,option,select,progress"),Fr=function(e,t,n){return"value"===n&&Yr(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},zr=g("contenteditable,draggable,spellcheck"),Hr=g("events,caret,typing,plaintext-only"),Vr=function(e,t){return qr(t)||"false"===t?"false":"contenteditable"===e&&Hr(t)?t:"true"},Wr=g("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),Ur="http://www.w3.org/1999/xlink",$r=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},Gr=function(e){return $r(e)?e.slice(6,e.length):""},qr=function(e){return null==e||!1===e};function Xr(e){var t=e.data,n=e,r=e;while(i(r.componentInstance))r=r.componentInstance._vnode,r&&r.data&&(t=Kr(r.data,t));while(i(n=n.parent))n&&n.data&&(t=Kr(t,n.data));return Zr(t.staticClass,t.class)}function Kr(e,t){return{staticClass:Jr(e.staticClass,t.staticClass),class:i(e.class)?[e.class,t.class]:t.class}}function Zr(e,t){return i(e)||i(t)?Jr(e,Qr(t)):""}function Jr(e,t){return e?t?e+" "+t:e:t||""}function Qr(e){return Array.isArray(e)?ei(e):l(e)?ti(e):"string"===typeof e?e:""}function ei(e){for(var t,n="",r=0,o=e.length;r-1?si[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:si[e]=/HTMLUnknownElement/.test(t.toString())}var ui=g("text,number,password,search,email,tel,url");function ci(e){if("string"===typeof e){var t=document.querySelector(e);return t||document.createElement("div")}return e}function di(e,t){var n=document.createElement(e);return"select"!==e||t.data&&t.data.attrs&&void 0!==t.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n}function hi(e,t){return document.createElementNS(ni[e],t)}function fi(e){return document.createTextNode(e)}function pi(e){return document.createComment(e)}function mi(e,t,n){e.insertBefore(t,n)}function gi(e,t){e.removeChild(t)}function vi(e,t){e.appendChild(t)}function yi(e){return e.parentNode}function bi(e){return e.nextSibling}function _i(e){return e.tagName}function wi(e,t){e.textContent=t}function xi(e,t){e.setAttribute(t,"")}var ki=Object.freeze({createElement:di,createElementNS:hi,createTextNode:fi,createComment:pi,insertBefore:mi,removeChild:gi,appendChild:vi,parentNode:yi,nextSibling:bi,tagName:_i,setTextContent:wi,setStyleScope:xi}),Mi={create:function(e,t){Si(t)},update:function(e,t){e.data.ref!==t.data.ref&&(Si(e,!0),Si(t))},destroy:function(e){Si(e,!0)}};function Si(e,t){var n=e.data.ref;if(i(n)){var r=e.context,o=e.componentInstance||e.elm,a=r.$refs;t?Array.isArray(a[n])?y(a[n],o):a[n]===o&&(a[n]=void 0):e.data.refInFor?Array.isArray(a[n])?a[n].indexOf(o)<0&&a[n].push(o):a[n]=[o]:a[n]=o}}var Ci=new be("",{},[]),Ti=["create","activate","update","remove","destroy"];function Oi(e,t){return e.key===t.key&&(e.tag===t.tag&&e.isComment===t.isComment&&i(e.data)===i(t.data)&&Li(e,t)||o(e.isAsyncPlaceholder)&&e.asyncFactory===t.asyncFactory&&r(t.asyncFactory.error))}function Li(e,t){if("input"!==e.tag)return!0;var n,r=i(n=e.data)&&i(n=n.attrs)&&n.type,o=i(n=t.data)&&i(n=n.attrs)&&n.type;return r===o||ui(r)&&ui(o)}function Ai(e,t,n){var r,o,a={};for(r=t;r<=n;++r)o=e[r].key,i(o)&&(a[o]=r);return a}function Di(e){var t,n,a={},l=e.modules,u=e.nodeOps;for(t=0;tm?(d=r(n[y+1])?null:n[y+1].elm,k(e,d,n,p,y,o)):p>y&&S(e,t,h,m)}function O(e,t,n,r){for(var o=n;o-1?Hi(e,t,n):Wr(t)?qr(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):zr(t)?e.setAttribute(t,Vr(t,n)):$r(t)?qr(n)?e.removeAttributeNS(Ur,Gr(t)):e.setAttributeNS(Ur,t,n):Hi(e,t,n)}function Hi(e,t,n){if(qr(n))e.removeAttribute(t);else{if(ee&&!te&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==n&&!e.__ieph){var r=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",r)};e.addEventListener("input",r),e.__ieph=!0}e.setAttribute(t,n)}}var Vi={create:Fi,update:Fi};function Wi(e,t){var n=t.elm,o=t.data,a=e.data;if(!(r(o.staticClass)&&r(o.class)&&(r(a)||r(a.staticClass)&&r(a.class)))){var s=Xr(t),l=n._transitionClasses;i(l)&&(s=Jr(s,Qr(l))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var Ui,$i={create:Wi,update:Wi},Gi="__r",qi="__c";function Xi(e){if(i(e[Gi])){var t=ee?"change":"input";e[t]=[].concat(e[Gi],e[t]||[]),delete e[Gi]}i(e[qi])&&(e.change=[].concat(e[qi],e.change||[]),delete e[qi])}function Ki(e,t,n){var r=Ui;return function i(){var o=t.apply(null,arguments);null!==o&&Qi(e,i,n,r)}}var Zi=at&&!(ie&&Number(ie[1])<=53);function Ji(e,t,n,r){if(Zi){var i=Gn,o=t;t=o._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=i||e.timeStamp<=0||e.target.ownerDocument!==document)return o.apply(this,arguments)}}Ui.addEventListener(e,t,ae?{capture:n,passive:r}:n)}function Qi(e,t,n,r){(r||Ui).removeEventListener(e,t._wrapper||t,n)}function eo(e,t){if(!r(e.data.on)||!r(t.data.on)){var n=t.data.on||{},i=e.data.on||{};Ui=t.elm,Xi(n),_t(n,i,Ji,Qi,Ki,t.context),Ui=void 0}}var to,no={create:eo,update:eo};function ro(e,t){if(!r(e.data.domProps)||!r(t.data.domProps)){var n,o,a=t.elm,s=e.data.domProps||{},l=t.data.domProps||{};for(n in i(l.__ob__)&&(l=t.data.domProps=D({},l)),s)n in l||(a[n]="");for(n in l){if(o=l[n],"textContent"===n||"innerHTML"===n){if(t.children&&(t.children.length=0),o===s[n])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===n&&"PROGRESS"!==a.tagName){a._value=o;var u=r(o)?"":String(o);io(a,u)&&(a.value=u)}else if("innerHTML"===n&&ii(a.tagName)&&r(a.innerHTML)){to=to||document.createElement("div"),to.innerHTML=""+o+"";var c=to.firstChild;while(a.firstChild)a.removeChild(a.firstChild);while(c.firstChild)a.appendChild(c.firstChild)}else if(o!==s[n])try{a[n]=o}catch(ka){}}}}function io(e,t){return!e.composing&&("OPTION"===e.tagName||oo(e,t)||ao(e,t))}function oo(e,t){var n=!0;try{n=document.activeElement!==e}catch(ka){}return n&&e.value!==t}function ao(e,t){var n=e.value,r=e._vModifiers;if(i(r)){if(r.number)return m(n)!==m(t);if(r.trim)return n.trim()!==t.trim()}return n!==t}var so={create:ro,update:ro},lo=w((function(e){var t={},n=/;(?![^(]*\))/g,r=/:(.+)/;return e.split(n).forEach((function(e){if(e){var n=e.split(r);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}));function uo(e){var t=co(e.style);return e.staticStyle?D(e.staticStyle,t):t}function co(e){return Array.isArray(e)?E(e):"string"===typeof e?lo(e):e}function ho(e,t){var n,r={};if(t){var i=e;while(i.componentInstance)i=i.componentInstance._vnode,i&&i.data&&(n=uo(i.data))&&D(r,n)}(n=uo(e.data))&&D(r,n);var o=e;while(o=o.parent)o.data&&(n=uo(o.data))&&D(r,n);return r}var fo,po=/^--/,mo=/\s*!important$/,go=function(e,t,n){if(po.test(t))e.style.setProperty(t,n);else if(mo.test(n))e.style.setProperty(C(t),n.replace(mo,""),"important");else{var r=yo(t);if(Array.isArray(n))for(var i=0,o=n.length;i-1?t.split(wo).forEach((function(t){return e.classList.add(t)})):e.classList.add(t);else{var n=" "+(e.getAttribute("class")||"")+" ";n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function ko(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(wo).forEach((function(t){return e.classList.remove(t)})):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{var n=" "+(e.getAttribute("class")||"")+" ",r=" "+t+" ";while(n.indexOf(r)>=0)n=n.replace(r," ");n=n.trim(),n?e.setAttribute("class",n):e.removeAttribute("class")}}function Mo(e){if(e){if("object"===typeof e){var t={};return!1!==e.css&&D(t,So(e.name||"v")),D(t,e),t}return"string"===typeof e?So(e):void 0}}var So=w((function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}})),Co=K&&!te,To="transition",Oo="animation",Lo="transition",Ao="transitionend",Do="animation",Eo="animationend";Co&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Lo="WebkitTransition",Ao="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Do="WebkitAnimation",Eo="webkitAnimationEnd"));var Io=K?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function jo(e){Io((function(){Io(e)}))}function Po(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),xo(e,t))}function Ro(e,t){e._transitionClasses&&y(e._transitionClasses,t),ko(e,t)}function No(e,t,n){var r=Yo(e,t),i=r.type,o=r.timeout,a=r.propCount;if(!i)return n();var s=i===To?Ao:Eo,l=0,u=function(){e.removeEventListener(s,c),n()},c=function(t){t.target===e&&++l>=a&&u()};setTimeout((function(){l0&&(n=To,c=a,d=o.length):t===Oo?u>0&&(n=Oo,c=u,d=l.length):(c=Math.max(a,u),n=c>0?a>u?To:Oo:null,d=n?n===To?o.length:l.length:0);var h=n===To&&Bo.test(r[Lo+"Property"]);return{type:n,timeout:c,propCount:d,hasTransform:h}}function Fo(e,t){while(e.length1}function $o(e,t){!0!==t.data.show&&Ho(t)}var Go=K?{create:$o,activate:$o,remove:function(e,t){!0!==e.data.show?Vo(e,t):t()}}:{},qo=[Vi,$i,no,so,_o,Go],Xo=qo.concat(Yi),Ko=Di({nodeOps:ki,modules:Xo});te&&document.addEventListener("selectionchange",(function(){var e=document.activeElement;e&&e.vmodel&&ia(e,"input")}));var Zo={inserted:function(e,t,n,r){"select"===n.tag?(r.elm&&!r.elm._vOptions?wt(n,"postpatch",(function(){Zo.componentUpdated(e,t,n)})):Jo(e,t,n.context),e._vOptions=[].map.call(e.options,ta)):("textarea"===n.tag||ui(e.type))&&(e._vModifiers=t.modifiers,t.modifiers.lazy||(e.addEventListener("compositionstart",na),e.addEventListener("compositionend",ra),e.addEventListener("change",ra),te&&(e.vmodel=!0)))},componentUpdated:function(e,t,n){if("select"===n.tag){Jo(e,t,n.context);var r=e._vOptions,i=e._vOptions=[].map.call(e.options,ta);if(i.some((function(e,t){return!R(e,r[t])}))){var o=e.multiple?t.value.some((function(e){return ea(e,i)})):t.value!==t.oldValue&&ea(t.value,i);o&&ia(e,"change")}}}};function Jo(e,t,n){Qo(e,t,n),(ee||ne)&&setTimeout((function(){Qo(e,t,n)}),0)}function Qo(e,t,n){var r=t.value,i=e.multiple;if(!i||Array.isArray(r)){for(var o,a,s=0,l=e.options.length;s-1,a.selected!==o&&(a.selected=o);else if(R(ta(a),r))return void(e.selectedIndex!==s&&(e.selectedIndex=s));i||(e.selectedIndex=-1)}}function ea(e,t){return t.every((function(t){return!R(t,e)}))}function ta(e){return"_value"in e?e._value:e.value}function na(e){e.target.composing=!0}function ra(e){e.target.composing&&(e.target.composing=!1,ia(e.target,"input"))}function ia(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function oa(e){return!e.componentInstance||e.data&&e.data.transition?e:oa(e.componentInstance._vnode)}var aa={bind:function(e,t,n){var r=t.value;n=oa(n);var i=n.data&&n.data.transition,o=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;r&&i?(n.data.show=!0,Ho(n,(function(){e.style.display=o}))):e.style.display=r?o:"none"},update:function(e,t,n){var r=t.value,i=t.oldValue;if(!r!==!i){n=oa(n);var o=n.data&&n.data.transition;o?(n.data.show=!0,r?Ho(n,(function(){e.style.display=e.__vOriginalDisplay})):Vo(n,(function(){e.style.display="none"}))):e.style.display=r?e.__vOriginalDisplay:"none"}},unbind:function(e,t,n,r,i){i||(e.style.display=e.__vOriginalDisplay)}},sa={model:Zo,show:aa},la={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function ua(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?ua(kn(t.children)):e}function ca(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];var i=n._parentListeners;for(var o in i)t[k(o)]=i[o];return t}function da(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}function ha(e){while(e=e.parent)if(e.data.transition)return!0}function fa(e,t){return t.key===e.key&&t.tag===e.tag}var pa=function(e){return e.tag||xn(e)},ma=function(e){return"show"===e.name},ga={name:"transition",props:la,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(pa),n.length)){0;var r=this.mode;0;var i=n[0];if(ha(this.$vnode))return i;var o=ua(i);if(!o)return i;if(this._leaving)return da(e,i);var a="__transition-"+this._uid+"-";o.key=null==o.key?o.isComment?a+"comment":a+o.tag:s(o.key)?0===String(o.key).indexOf(a)?o.key:a+o.key:o.key;var l=(o.data||(o.data={})).transition=ca(this),u=this._vnode,c=ua(u);if(o.data.directives&&o.data.directives.some(ma)&&(o.data.show=!0),c&&c.data&&!fa(o,c)&&!xn(c)&&(!c.componentInstance||!c.componentInstance._vnode.isComment)){var d=c.data.transition=D({},l);if("out-in"===r)return this._leaving=!0,wt(d,"afterLeave",(function(){t._leaving=!1,t.$forceUpdate()})),da(e,i);if("in-out"===r){if(xn(o))return u;var h,f=function(){h()};wt(l,"afterEnter",f),wt(l,"enterCancelled",f),wt(d,"delayLeave",(function(e){h=e}))}}return i}}},va=D({tag:String,moveClass:String},la);delete va.mode;var ya={props:va,beforeMount:function(){var e=this,t=this._update;this._update=function(n,r){var i=Dn(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,i(),t.call(e,n,r)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],a=ca(this),s=0;s=20?"ste":"de")},week:{dow:1,doy:4}});return t}))},"2caf":function(e,t,n){var r=n("5ca1");r(r.S,"Array",{isArray:n("1169")})},"2d00":function(e,t){e.exports=!1},"2d34":function(e,t,n){var r=n("5ca1"),i=n("38fd"),o=n("cb7c");r(r.S,"Reflect",{getPrototypeOf:function(e){return i(o(e))}})},"2d5c":function(e,t){var n=Math.expm1;e.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(e){return 0==(e=+e)?e:e>-1e-6&&e<1e-6?e+e*e/2:Math.exp(e)-1}:n},"2d63":function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n("f921"),i=n.n(r),o=n("d8d6"),a=n.n(o),s=n("f410"),l=n.n(s),u=n("e630");function c(e,t){var n="undefined"!=typeof i.a&&e[a.a]||e["@@iterator"];if(!n){if(l()(e)||(n=Object(u["a"])(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,c=!0,d=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return c=e.done,e},e:function(e){d=!0,s=e},f:function(){try{c||null==n["return"]||n["return"]()}finally{if(d)throw s}}}}},"2d83":function(e,t,n){"use strict";var r=n("387f");e.exports=function(e,t,n,i,o){var a=new Error(e);return r(a,t,n,i,o)}},"2d95":function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},"2db9":function(e,t,n){"use strict";var r=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.bezierCurveToPolyline=b,t.getBezierCurveLength=_,t["default"]=void 0;var i=r(n("278c")),o=r(n("448a")),a=Math.sqrt,s=Math.pow,l=Math.ceil,u=Math.abs,c=50;function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5,n=e.length-1,r=e[0],i=e[n][2],a=e.slice(1),s=a.map((function(e,t){var n=0===t?r:a[t-1][2];return h.apply(void 0,[n].concat((0,o["default"])(e)))})),l=new Array(n).fill(c),u=g(s,l),d=y(u,s,a,t);return d.segmentPoints.push(i),d}function h(e,t,n,r){return function(i){var o=1-i,a=s(o,3),l=s(o,2),u=s(i,3),c=s(i,2);return[e[0]*a+3*t[0]*i*l+3*n[0]*c*o+r[0]*u,e[1]*a+3*t[1]*i*l+3*n[1]*c*o+r[1]*u]}}function f(e,t){var n=(0,i["default"])(e,2),r=n[0],o=n[1],l=(0,i["default"])(t,2),u=l[0],c=l[1];return a(s(r-u,2)+s(o-c,2))}function p(e){return e.reduce((function(e,t){return e+t}),0)}function m(e){return e.map((function(e,t){return new Array(e.length-1).fill(0).map((function(t,n){return f(e[n],e[n+1])}))}))}function g(e,t){return e.map((function(e,n){var r=1/t[n];return new Array(t[n]).fill("").map((function(t,n){return e(n*r)}))}))}function v(e,t){return e.map((function(e){return e.map((function(e){return u(e-t)}))})).map((function(e){return p(e)})).reduce((function(e,t){return e+t}),0)}function y(e,t,n,r){var i=4,o=1,a=function(){var a=e.reduce((function(e,t){return e+t.length}),0);e.forEach((function(e,t){return e.push(n[t][2])}));var s=m(e),u=s.reduce((function(e,t){return e+t.length}),0),c=s.map((function(e){return p(e)})),d=p(c),h=d/u,f=v(s,h);if(f<=r)return"break";a=l(h/r*a*1.1);var y=c.map((function(e){return l(e/d*a)}));e=g(t,y),a=e.reduce((function(e,t){return e+t.length}),0);var b=JSON.parse(JSON.stringify(e));b.forEach((function(e,t){return e.push(n[t][2])})),s=m(b),u=s.reduce((function(e,t){return e+t.length}),0),c=s.map((function(e){return p(e)})),d=p(c),h=d/u;var _=1/a/10;t.forEach((function(t,n){for(var r=y[n],o=new Array(r).fill("").map((function(e,t){return t/y[n]})),a=0;a1&&(o[c]=1),o[c]<0&&(o[c]=0),e[n][c]=t(o[c])}})),i*=4,o++};do{var s=a();if("break"===s)break}while(i<=1025);return e=e.reduce((function(e,t){return e.concat(t)}),[]),{segmentPoints:e,cycles:o,rounds:i}}function b(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5;if(!e)return console.error("bezierCurveToPolyline: Missing parameters!"),!1;if(!(e instanceof Array))return console.error("bezierCurveToPolyline: Parameter bezierCurve must be an array!"),!1;if("number"!==typeof t)return console.error("bezierCurveToPolyline: Parameter precision must be a number!"),!1;var n=d(e,t),r=n.segmentPoints;return r}function _(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5;if(!e)return console.error("getBezierCurveLength: Missing parameters!"),!1;if(!(e instanceof Array))return console.error("getBezierCurveLength: Parameter bezierCurve must be an array!"),!1;if("number"!==typeof t)return console.error("getBezierCurveLength: Parameter precision must be a number!"),!1;var n=d(e,t),r=n.segmentPoints,i=m([r])[0],o=p(i);return o}var w=b;t["default"]=w},"2e08":function(e,t,n){var r=n("9def"),i=n("9744"),o=n("be13");e.exports=function(e,t,n,a){var s=String(o(e)),l=s.length,u=void 0===n?" ":String(n),c=r(t);if(c<=l||""==u)return s;var d=c-l,h=i.call(u,Math.ceil(d/u.length));return h.length>d&&(h=h.slice(0,d)),a?h+s:s+h}},"2e37":function(e,t,n){var r=n("5ca1");r(r.S,"Number",{EPSILON:Math.pow(2,-52)})},"2e67":function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},"2e8c":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration var t=e.defineLocale("uz",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба".split("_"),weekdaysShort:"Якш_Душ_Сеш_Чор_Пай_Жум_Шан".split("_"),weekdaysMin:"Як_Ду_Се_Чо_Па_Жу_Ша".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Бугун соат] LT [да]",nextDay:"[Эртага] LT [да]",nextWeek:"dddd [куни соат] LT [да]",lastDay:"[Кеча соат] LT [да]",lastWeek:"[Утган] dddd [куни соат] LT [да]",sameElse:"L"},relativeTime:{future:"Якин %s ичида",past:"Бир неча %s олдин",s:"фурсат",ss:"%d фурсат",m:"бир дакика",mm:"%d дакика",h:"бир соат",hh:"%d соат",d:"бир кун",dd:"%d кун",M:"бир ой",MM:"%d ой",y:"бир йил",yy:"%d йил"},week:{dow:1,doy:7}});return t}))},"2ef0":function(e,t,n){(function(e,r){var i; /** * @license * Lodash * Copyright OpenJS Foundation and other contributors * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors */(function(){var o,a="4.17.21",s=200,l="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",c="Invalid `variable` option passed into `_.template`",d="__lodash_hash_undefined__",h=500,f="__lodash_placeholder__",p=1,m=2,g=4,v=1,y=2,b=1,_=2,w=4,x=8,k=16,M=32,S=64,C=128,T=256,O=512,L=30,A="...",D=800,E=16,I=1,j=2,P=3,R=1/0,N=9007199254740991,B=17976931348623157e292,Y=NaN,F=4294967295,z=F-1,H=F>>>1,V=[["ary",C],["bind",b],["bindKey",_],["curry",x],["curryRight",k],["flip",O],["partial",M],["partialRight",S],["rearg",T]],W="[object Arguments]",U="[object Array]",$="[object AsyncFunction]",G="[object Boolean]",q="[object Date]",X="[object DOMException]",K="[object Error]",Z="[object Function]",J="[object GeneratorFunction]",Q="[object Map]",ee="[object Number]",te="[object Null]",ne="[object Object]",re="[object Promise]",ie="[object Proxy]",oe="[object RegExp]",ae="[object Set]",se="[object String]",le="[object Symbol]",ue="[object Undefined]",ce="[object WeakMap]",de="[object WeakSet]",he="[object ArrayBuffer]",fe="[object DataView]",pe="[object Float32Array]",me="[object Float64Array]",ge="[object Int8Array]",ve="[object Int16Array]",ye="[object Int32Array]",be="[object Uint8Array]",_e="[object Uint8ClampedArray]",we="[object Uint16Array]",xe="[object Uint32Array]",ke=/\b__p \+= '';/g,Me=/\b(__p \+=) '' \+/g,Se=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ce=/&(?:amp|lt|gt|quot|#39);/g,Te=/[&<>"']/g,Oe=RegExp(Ce.source),Le=RegExp(Te.source),Ae=/<%-([\s\S]+?)%>/g,De=/<%([\s\S]+?)%>/g,Ee=/<%=([\s\S]+?)%>/g,Ie=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,je=/^\w*$/,Pe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Re=/[\\^$.*+?()[\]{}|]/g,Ne=RegExp(Re.source),Be=/^\s+/,Ye=/\s/,Fe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ze=/\{\n\/\* \[wrapped with (.+)\] \*/,He=/,? & /,Ve=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,We=/[()=,{}\[\]\/\s]/,Ue=/\\(\\)?/g,$e=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ge=/\w*$/,qe=/^[-+]0x[0-9a-f]+$/i,Xe=/^0b[01]+$/i,Ke=/^\[object .+?Constructor\]$/,Ze=/^0o[0-7]+$/i,Je=/^(?:0|[1-9]\d*)$/,Qe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,et=/($^)/,tt=/['\n\r\u2028\u2029\\]/g,nt="\\ud800-\\udfff",rt="\\u0300-\\u036f",it="\\ufe20-\\ufe2f",ot="\\u20d0-\\u20ff",at=rt+it+ot,st="\\u2700-\\u27bf",lt="a-z\\xdf-\\xf6\\xf8-\\xff",ut="\\xac\\xb1\\xd7\\xf7",ct="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",dt="\\u2000-\\u206f",ht=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ft="A-Z\\xc0-\\xd6\\xd8-\\xde",pt="\\ufe0e\\ufe0f",mt=ut+ct+dt+ht,gt="['’]",vt="["+nt+"]",yt="["+mt+"]",bt="["+at+"]",_t="\\d+",wt="["+st+"]",xt="["+lt+"]",kt="[^"+nt+mt+_t+st+lt+ft+"]",Mt="\\ud83c[\\udffb-\\udfff]",St="(?:"+bt+"|"+Mt+")",Ct="[^"+nt+"]",Tt="(?:\\ud83c[\\udde6-\\uddff]){2}",Ot="[\\ud800-\\udbff][\\udc00-\\udfff]",Lt="["+ft+"]",At="\\u200d",Dt="(?:"+xt+"|"+kt+")",Et="(?:"+Lt+"|"+kt+")",It="(?:"+gt+"(?:d|ll|m|re|s|t|ve))?",jt="(?:"+gt+"(?:D|LL|M|RE|S|T|VE))?",Pt=St+"?",Rt="["+pt+"]?",Nt="(?:"+At+"(?:"+[Ct,Tt,Ot].join("|")+")"+Rt+Pt+")*",Bt="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Yt="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ft=Rt+Pt+Nt,zt="(?:"+[wt,Tt,Ot].join("|")+")"+Ft,Ht="(?:"+[Ct+bt+"?",bt,Tt,Ot,vt].join("|")+")",Vt=RegExp(gt,"g"),Wt=RegExp(bt,"g"),Ut=RegExp(Mt+"(?="+Mt+")|"+Ht+Ft,"g"),$t=RegExp([Lt+"?"+xt+"+"+It+"(?="+[yt,Lt,"$"].join("|")+")",Et+"+"+jt+"(?="+[yt,Lt+Dt,"$"].join("|")+")",Lt+"?"+Dt+"+"+It,Lt+"+"+jt,Yt,Bt,_t,zt].join("|"),"g"),Gt=RegExp("["+At+nt+at+pt+"]"),qt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Xt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Kt=-1,Zt={};Zt[pe]=Zt[me]=Zt[ge]=Zt[ve]=Zt[ye]=Zt[be]=Zt[_e]=Zt[we]=Zt[xe]=!0,Zt[W]=Zt[U]=Zt[he]=Zt[G]=Zt[fe]=Zt[q]=Zt[K]=Zt[Z]=Zt[Q]=Zt[ee]=Zt[ne]=Zt[oe]=Zt[ae]=Zt[se]=Zt[ce]=!1;var Jt={};Jt[W]=Jt[U]=Jt[he]=Jt[fe]=Jt[G]=Jt[q]=Jt[pe]=Jt[me]=Jt[ge]=Jt[ve]=Jt[ye]=Jt[Q]=Jt[ee]=Jt[ne]=Jt[oe]=Jt[ae]=Jt[se]=Jt[le]=Jt[be]=Jt[_e]=Jt[we]=Jt[xe]=!0,Jt[K]=Jt[Z]=Jt[ce]=!1;var Qt={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"},en={"&":"&","<":"<",">":">",'"':""","'":"'"},tn={"&":"&","<":"<",">":">",""":'"',"'":"'"},nn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},rn=parseFloat,on=parseInt,an="object"==typeof e&&e&&e.Object===Object&&e,sn="object"==typeof self&&self&&self.Object===Object&&self,ln=an||sn||Function("return this")(),un=t&&!t.nodeType&&t,cn=un&&"object"==typeof r&&r&&!r.nodeType&&r,dn=cn&&cn.exports===un,hn=dn&&an.process,fn=function(){try{var e=cn&&cn.require&&cn.require("util").types;return e||hn&&hn.binding&&hn.binding("util")}catch(t){}}(),pn=fn&&fn.isArrayBuffer,mn=fn&&fn.isDate,gn=fn&&fn.isMap,vn=fn&&fn.isRegExp,yn=fn&&fn.isSet,bn=fn&&fn.isTypedArray;function _n(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function wn(e,t,n,r){var i=-1,o=null==e?0:e.length;while(++i-1}function Tn(e,t,n){var r=-1,i=null==e?0:e.length;while(++r-1);return n}function er(e,t){var n=e.length;while(n--&&Bn(t,e[n],0)>-1);return n}function tr(e,t){var n=e.length,r=0;while(n--)e[n]===t&&++r;return r}var nr=Vn(Qt),rr=Vn(en);function ir(e){return"\\"+nn[e]}function or(e,t){return null==e?o:e[t]}function ar(e){return Gt.test(e)}function sr(e){return qt.test(e)}function lr(e){var t,n=[];while(!(t=e.next()).done)n.push(t.value);return n}function ur(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function cr(e,t){return function(n){return e(t(n))}}function dr(e,t){var n=-1,r=e.length,i=0,o=[];while(++n-1}function Hr(e,t){var n=this.__data__,r=ci(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Vr(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t=t?e:t)),e}function vi(e,t,n,r,i,a){var s,l=t&p,u=t&m,c=t&g;if(n&&(s=i?n(e,r,i,a):n(e)),s!==o)return s;if(!Mc(e))return e;var d=lc(e);if(d){if(s=ts(e),!l)return ia(e,s)}else{var h=Za(e),f=h==Z||h==J;if(fc(e))return qo(e,l);if(h==ne||h==W||f&&!i){if(s=u||f?{}:ns(e),!l)return u?sa(e,fi(s,e)):aa(e,hi(s,e))}else{if(!Jt[h])return i?e:{};s=rs(e,h,l)}}a||(a=new Jr);var v=a.get(e);if(v)return v;a.set(e,s),Nc(e)?e.forEach((function(r){s.add(vi(r,t,n,r,e,a))})):Cc(e)&&e.forEach((function(r,i){s.set(i,vi(r,t,n,i,e,a))}));var y=c?u?Fa:Ya:u?kd:xd,b=d?o:y(e);return xn(b||e,(function(r,i){b&&(i=r,r=e[i]),ui(s,i,vi(r,t,n,i,e,a))})),s}function yi(e){var t=xd(e);return function(n){return bi(n,e,t)}}function bi(e,t,n){var r=n.length;if(null==e)return!r;e=nt(e);while(r--){var i=n[r],a=t[i],s=e[i];if(s===o&&!(i in e)||!a(s))return!1}return!0}function _i(e,t,n){if("function"!=typeof e)throw new ot(u);return Ss((function(){e.apply(o,n)}),t)}function wi(e,t,n,r){var i=-1,o=Cn,a=!0,l=e.length,u=[],c=t.length;if(!l)return u;n&&(t=On(t,Kn(n))),r?(o=Tn,a=!1):t.length>=s&&(o=Jn,a=!1,t=new Xr(t));e:while(++ii?0:i+n),r=r===o||r>i?i:qc(r),r<0&&(r+=i),r=n>r?0:Xc(r);while(n0&&n(s)?t>1?Oi(s,t-1,n,r,i):Ln(i,s):r||(i[i.length]=s)}return i}var Li=da(),Ai=da(!0);function Di(e,t){return e&&Li(e,t,xd)}function Ei(e,t){return e&&Ai(e,t,xd)}function Ii(e,t){return Sn(t,(function(t){return wc(e[t])}))}function ji(e,t){t=Wo(t,e);var n=0,r=t.length;while(null!=e&&nt}function Bi(e,t){return null!=e&&dt.call(e,t)}function Yi(e,t){return null!=e&&t in nt(e)}function Fi(e,t,n){return e>=zt(t,n)&&e=120&&h.length>=120)?new Xr(l&&h):o}h=e[0];var f=-1,p=u[0];e:while(++f-1)s!==e&&St.call(s,l,1),St.call(e,l,1)}return e}function vo(e,t){var n=e?t.length:0,r=n-1;while(n--){var i=t[n];if(n==r||i!==o){var o=i;as(i)?St.call(e,i,1):Ro(e,i)}}return e}function yo(e,t){return e+jt($t()*(t-e+1))}function bo(e,t,r,i){var o=-1,a=Ft(It((t-e)/(r||1)),0),s=n(a);while(a--)s[i?a:++o]=e,e+=r;return s}function _o(e,t){var n="";if(!e||t<1||t>N)return n;do{t%2&&(n+=e),t=jt(t/2),t&&(e+=e)}while(t);return n}function wo(e,t){return Cs(_s(e,t,Ah),e+"")}function xo(e){return oi(zd(e))}function ko(e,t){var n=zd(e);return Ls(n,gi(t,0,n.length))}function Mo(e,t,n,r){if(!Mc(e))return e;t=Wo(t,e);var i=-1,a=t.length,s=a-1,l=e;while(null!=l&&++io?0:o+t),r=r>o?o:r,r<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;var a=n(o);while(++i>>1,a=e[o];null!==a&&!Yc(a)&&(n?a<=t:a=s){var c=t?null:La(e);if(c)return hr(c);a=!1,i=Jn,u=new Xr}else u=t?[]:l;e:while(++r=r?e:Oo(e,t,n)}var Go=At||function(e){return ln.clearTimeout(e)};function qo(e,t){if(t)return e.slice();var n=e.length,r=wt?wt(n):new e.constructor(n);return e.copy(r),r}function Xo(e){var t=new e.constructor(e.byteLength);return new _t(t).set(new _t(e)),t}function Ko(e,t){var n=t?Xo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function Zo(e){var t=new e.constructor(e.source,Ge.exec(e));return t.lastIndex=e.lastIndex,t}function Jo(e){return pr?nt(pr.call(e)):{}}function Qo(e,t){var n=t?Xo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function ea(e,t){if(e!==t){var n=e!==o,r=null===e,i=e===e,a=Yc(e),s=t!==o,l=null===t,u=t===t,c=Yc(t);if(!l&&!c&&!a&&e>t||a&&s&&u&&!l&&!c||r&&s&&u||!n&&u||!i)return 1;if(!r&&!a&&!c&&e=s)return l;var u=n[r];return l*("desc"==u?-1:1)}}return e.index-t.index}function na(e,t,r,i){var o=-1,a=e.length,s=r.length,l=-1,u=t.length,c=Ft(a-s,0),d=n(u+c),h=!i;while(++l1?n[i-1]:o,s=i>2?n[2]:o;a=e.length>3&&"function"==typeof a?(i--,a):o,s&&ss(n[0],n[1],s)&&(a=i<3?o:a,i=1),t=nt(t);while(++r-1?i[a?t[s]:s]:o}}function ya(e){return Ba((function(t){var n=t.length,r=n,i=Cr.prototype.thru;e&&t.reverse();while(r--){var a=t[r];if("function"!=typeof a)throw new ot(u);if(i&&!s&&"wrapper"==Ha(a))var s=new Cr([],!0)}r=s?r:n;while(++r1&&b.reverse(),h&&cl))return!1;var c=a.get(e),d=a.get(t);if(c&&d)return c==t&&d==e;var h=-1,f=!0,p=n&y?new Xr:o;a.set(e,t),a.set(t,e);while(++h1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(Fe,"{\n/* [wrapped with "+t+"] */\n")}function os(e){return lc(e)||sc(e)||!!(Ct&&e&&e[Ct])}function as(e,t){var n=typeof e;return t=null==t?N:t,!!t&&("number"==n||"symbol"!=n&&Je.test(e))&&e>-1&&e%1==0&&e0){if(++t>=D)return arguments[0]}else t=0;return e.apply(o,arguments)}}function Ls(e,t){var n=-1,r=e.length,i=r-1;t=t===o?r:t;while(++n1?e[t-1]:o;return n="function"==typeof n?(e.pop(),n):o,Rl(e,n)}));function Ul(e){var t=wr(e);return t.__chain__=!0,t}function $l(e,t){return t(e),e}function Gl(e,t){return t(e)}var ql=Ba((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return mi(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Tr&&as(n)?(r=r.slice(n,+n+(t?1:0)),r.__actions__.push({func:Gl,args:[i],thisArg:o}),new Cr(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(o),e}))):this.thru(i)}));function Xl(){return Ul(this)}function Kl(){return new Cr(this.value(),this.__chain__)}function Zl(){this.__values__===o&&(this.__values__=$c(this.value()));var e=this.__index__>=this.__values__.length,t=e?o:this.__values__[this.__index__++];return{done:e,value:t}}function Jl(){return this}function Ql(e){var t,n=this;while(n instanceof Sr){var r=js(n);r.__index__=0,r.__values__=o,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t}function eu(){var e=this.__wrapped__;if(e instanceof Tr){var t=e;return this.__actions__.length&&(t=new Tr(this)),t=t.reverse(),t.__actions__.push({func:Gl,args:[pl],thisArg:o}),new Cr(t,this.__chain__)}return this.thru(pl)}function tu(){return Yo(this.__wrapped__,this.__actions__)}var nu=la((function(e,t,n){dt.call(e,n)?++e[n]:pi(e,n,1)}));function ru(e,t,n){var r=lc(e)?Mn:Mi;return n&&ss(e,t,n)&&(t=o),r(e,Wa(t,3))}function iu(e,t){var n=lc(e)?Sn:Ti;return n(e,Wa(t,3))}var ou=va($s),au=va(Gs);function su(e,t){return Oi(gu(e,t),1)}function lu(e,t){return Oi(gu(e,t),R)}function uu(e,t,n){return n=n===o?1:qc(n),Oi(gu(e,t),n)}function cu(e,t){var n=lc(e)?xn:xi;return n(e,Wa(t,3))}function du(e,t){var n=lc(e)?kn:ki;return n(e,Wa(t,3))}var hu=la((function(e,t,n){dt.call(e,n)?e[n].push(t):pi(e,n,[t])}));function fu(e,t,n,r){e=cc(e)?e:zd(e),n=n&&!r?qc(n):0;var i=e.length;return n<0&&(n=Ft(i+n,0)),Bc(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&Bn(e,t,n)>-1}var pu=wo((function(e,t,r){var i=-1,o="function"==typeof t,a=cc(e)?n(e.length):[];return xi(e,(function(e){a[++i]=o?_n(t,e,r):Vi(e,t,r)})),a})),mu=la((function(e,t,n){pi(e,n,t)}));function gu(e,t){var n=lc(e)?On:oo;return n(e,Wa(t,3))}function vu(e,t,n,r){return null==e?[]:(lc(t)||(t=null==t?[]:[t]),n=r?o:n,lc(n)||(n=null==n?[]:[n]),ho(e,t,n))}var yu=la((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));function bu(e,t,n){var r=lc(e)?An:Wn,i=arguments.length<3;return r(e,Wa(t,4),n,i,xi)}function _u(e,t,n){var r=lc(e)?Dn:Wn,i=arguments.length<3;return r(e,Wa(t,4),n,i,ki)}function wu(e,t){var n=lc(e)?Sn:Ti;return n(e,zu(Wa(t,3)))}function xu(e){var t=lc(e)?oi:xo;return t(e)}function ku(e,t,n){t=(n?ss(e,t,n):t===o)?1:qc(t);var r=lc(e)?ai:ko;return r(e,t)}function Mu(e){var t=lc(e)?si:To;return t(e)}function Su(e){if(null==e)return 0;if(cc(e))return Bc(e)?gr(e):e.length;var t=Za(e);return t==Q||t==ae?e.size:no(e).length}function Cu(e,t,n){var r=lc(e)?En:Lo;return n&&ss(e,t,n)&&(t=o),r(e,Wa(t,3))}var Tu=wo((function(e,t){if(null==e)return[];var n=t.length;return n>1&&ss(e,t[0],t[1])?t=[]:n>2&&ss(t[0],t[1],t[2])&&(t=[t[0]]),ho(e,Oi(t,1),[])})),Ou=Dt||function(){return ln.Date.now()};function Lu(e,t){if("function"!=typeof t)throw new ot(u);return e=qc(e),function(){if(--e<1)return t.apply(this,arguments)}}function Au(e,t,n){return t=n?o:t,t=e&&null==t?e.length:t,Da(e,C,o,o,o,o,t)}function Du(e,t){var n;if("function"!=typeof t)throw new ot(u);return e=qc(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=o),n}}var Eu=wo((function(e,t,n){var r=b;if(n.length){var i=dr(n,Va(Eu));r|=M}return Da(e,r,t,n,i)})),Iu=wo((function(e,t,n){var r=b|_;if(n.length){var i=dr(n,Va(Iu));r|=M}return Da(t,r,e,n,i)}));function ju(e,t,n){t=n?o:t;var r=Da(e,x,o,o,o,o,o,t);return r.placeholder=ju.placeholder,r}function Pu(e,t,n){t=n?o:t;var r=Da(e,k,o,o,o,o,o,t);return r.placeholder=Pu.placeholder,r}function Ru(e,t,n){var r,i,a,s,l,c,d=0,h=!1,f=!1,p=!0;if("function"!=typeof e)throw new ot(u);function m(t){var n=r,a=i;return r=i=o,d=t,s=e.apply(a,n),s}function g(e){return d=e,l=Ss(b,t),h?m(e):s}function v(e){var n=e-c,r=e-d,i=t-n;return f?zt(i,a-r):i}function y(e){var n=e-c,r=e-d;return c===o||n>=t||n<0||f&&r>=a}function b(){var e=Ou();if(y(e))return _(e);l=Ss(b,v(e))}function _(e){return l=o,p&&r?m(e):(r=i=o,s)}function w(){l!==o&&Go(l),d=0,r=c=i=l=o}function x(){return l===o?s:_(Ou())}function k(){var e=Ou(),n=y(e);if(r=arguments,i=this,c=e,n){if(l===o)return g(c);if(f)return Go(l),l=Ss(b,t),m(c)}return l===o&&(l=Ss(b,t)),s}return t=Kc(t)||0,Mc(n)&&(h=!!n.leading,f="maxWait"in n,a=f?Ft(Kc(n.maxWait)||0,t):a,p="trailing"in n?!!n.trailing:p),k.cancel=w,k.flush=x,k}var Nu=wo((function(e,t){return _i(e,1,t)})),Bu=wo((function(e,t,n){return _i(e,Kc(t)||0,n)}));function Yu(e){return Da(e,O)}function Fu(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new ot(u);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Fu.Cache||Vr),n}function zu(e){if("function"!=typeof e)throw new ot(u);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function Hu(e){return Du(2,e)}Fu.Cache=Vr;var Vu=Uo((function(e,t){t=1==t.length&&lc(t[0])?On(t[0],Kn(Wa())):On(Oi(t,1),Kn(Wa()));var n=t.length;return wo((function(r){var i=-1,o=zt(r.length,n);while(++i=t})),sc=Wi(function(){return arguments}())?Wi:function(e){return Sc(e)&&dt.call(e,"callee")&&!Mt.call(e,"callee")},lc=n.isArray,uc=pn?Kn(pn):Ui;function cc(e){return null!=e&&kc(e.length)&&!wc(e)}function dc(e){return Sc(e)&&cc(e)}function hc(e){return!0===e||!1===e||Sc(e)&&Ri(e)==G}var fc=Rt||qh,pc=mn?Kn(mn):$i;function mc(e){return Sc(e)&&1===e.nodeType&&!jc(e)}function gc(e){if(null==e)return!0;if(cc(e)&&(lc(e)||"string"==typeof e||"function"==typeof e.splice||fc(e)||Fc(e)||sc(e)))return!e.length;var t=Za(e);if(t==Q||t==ae)return!e.size;if(fs(e))return!no(e).length;for(var n in e)if(dt.call(e,n))return!1;return!0}function vc(e,t){return Gi(e,t)}function yc(e,t,n){n="function"==typeof n?n:o;var r=n?n(e,t):o;return r===o?Gi(e,t,o,n):!!r}function bc(e){if(!Sc(e))return!1;var t=Ri(e);return t==K||t==X||"string"==typeof e.message&&"string"==typeof e.name&&!jc(e)}function _c(e){return"number"==typeof e&&Nt(e)}function wc(e){if(!Mc(e))return!1;var t=Ri(e);return t==Z||t==J||t==$||t==ie}function xc(e){return"number"==typeof e&&e==qc(e)}function kc(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=N}function Mc(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Sc(e){return null!=e&&"object"==typeof e}var Cc=gn?Kn(gn):Xi;function Tc(e,t){return e===t||Ki(e,t,$a(t))}function Oc(e,t,n){return n="function"==typeof n?n:o,Ki(e,t,$a(t),n)}function Lc(e){return Ic(e)&&e!=+e}function Ac(e){if(hs(e))throw new i(l);return Zi(e)}function Dc(e){return null===e}function Ec(e){return null==e}function Ic(e){return"number"==typeof e||Sc(e)&&Ri(e)==ee}function jc(e){if(!Sc(e)||Ri(e)!=ne)return!1;var t=xt(e);if(null===t)return!0;var n=dt.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&ct.call(n)==mt}var Pc=vn?Kn(vn):Ji;function Rc(e){return xc(e)&&e>=-N&&e<=N}var Nc=yn?Kn(yn):Qi;function Bc(e){return"string"==typeof e||!lc(e)&&Sc(e)&&Ri(e)==se}function Yc(e){return"symbol"==typeof e||Sc(e)&&Ri(e)==le}var Fc=bn?Kn(bn):eo;function zc(e){return e===o}function Hc(e){return Sc(e)&&Za(e)==ce}function Vc(e){return Sc(e)&&Ri(e)==de}var Wc=Ca(io),Uc=Ca((function(e,t){return e<=t}));function $c(e){if(!e)return[];if(cc(e))return Bc(e)?vr(e):ia(e);if(Tt&&e[Tt])return lr(e[Tt]());var t=Za(e),n=t==Q?ur:t==ae?hr:zd;return n(e)}function Gc(e){if(!e)return 0===e?e:0;if(e=Kc(e),e===R||e===-R){var t=e<0?-1:1;return t*B}return e===e?e:0}function qc(e){var t=Gc(e),n=t%1;return t===t?n?t-n:t:0}function Xc(e){return e?gi(qc(e),0,F):0}function Kc(e){if("number"==typeof e)return e;if(Yc(e))return Y;if(Mc(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Mc(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Xn(e);var n=Xe.test(e);return n||Ze.test(e)?on(e.slice(2),n?2:8):qe.test(e)?Y:+e}function Zc(e){return oa(e,kd(e))}function Jc(e){return e?gi(qc(e),-N,N):0===e?e:0}function Qc(e){return null==e?"":jo(e)}var ed=ua((function(e,t){if(fs(t)||cc(t))oa(t,xd(t),e);else for(var n in t)dt.call(t,n)&&ui(e,n,t[n])})),td=ua((function(e,t){oa(t,kd(t),e)})),nd=ua((function(e,t,n,r){oa(t,kd(t),e,r)})),rd=ua((function(e,t,n,r){oa(t,xd(t),e,r)})),id=Ba(mi);function od(e,t){var n=kr(e);return null==t?n:hi(n,t)}var ad=wo((function(e,t){e=nt(e);var n=-1,r=t.length,i=r>2?t[2]:o;i&&ss(t[0],t[1],i)&&(r=1);while(++n1),t})),oa(e,Fa(e),n),r&&(n=vi(n,p|m|g,ja));var i=t.length;while(i--)Ro(n,t[i]);return n}));function Ld(e,t){return Dd(e,zu(Wa(t)))}var Ad=Ba((function(e,t){return null==e?{}:fo(e,t)}));function Dd(e,t){if(null==e)return{};var n=On(Fa(e),(function(e){return[e]}));return t=Wa(t),po(e,n,(function(e,n){return t(e,n[0])}))}function Ed(e,t,n){t=Wo(t,e);var r=-1,i=t.length;i||(i=1,e=o);while(++rt){var r=e;e=t,t=r}if(n||e%1||t%1){var i=$t();return zt(e+i*(t-e+rn("1e-"+((i+"").length-1))),t)}return yo(e,t)}var $d=pa((function(e,t,n){return t=t.toLowerCase(),e+(n?Gd(t):t)}));function Gd(e){return _h(Qc(e).toLowerCase())}function qd(e){return e=Qc(e),e&&e.replace(Qe,nr).replace(Wt,"")}function Xd(e,t,n){e=Qc(e),t=jo(t);var r=e.length;n=n===o?r:gi(qc(n),0,r);var i=n;return n-=t.length,n>=0&&e.slice(n,i)==t}function Kd(e){return e=Qc(e),e&&Le.test(e)?e.replace(Te,rr):e}function Zd(e){return e=Qc(e),e&&Ne.test(e)?e.replace(Re,"\\$&"):e}var Jd=pa((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Qd=pa((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),eh=fa("toLowerCase");function th(e,t,n){e=Qc(e),t=qc(t);var r=t?gr(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return ka(jt(i),n)+e+ka(It(i),n)}function nh(e,t,n){e=Qc(e),t=qc(t);var r=t?gr(e):0;return t&&r>>0,n?(e=Qc(e),e&&("string"==typeof t||null!=t&&!Pc(t))&&(t=jo(t),!t&&ar(e))?$o(vr(e),0,n):e.split(t,n)):[]}var uh=pa((function(e,t,n){return e+(n?" ":"")+_h(t)}));function ch(e,t,n){return e=Qc(e),n=null==n?0:gi(qc(n),0,e.length),t=jo(t),e.slice(n,n+t.length)==t}function dh(e,t,n){var r=wr.templateSettings;n&&ss(e,t,n)&&(t=o),e=Qc(e),t=nd({},t,r,Ea);var a,s,l=nd({},t.imports,r.imports,Ea),u=xd(l),d=Zn(l,u),h=0,f=t.interpolate||et,p="__p += '",m=rt((t.escape||et).source+"|"+f.source+"|"+(f===Ee?$e:et).source+"|"+(t.evaluate||et).source+"|$","g"),g="//# sourceURL="+(dt.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Kt+"]")+"\n";e.replace(m,(function(t,n,r,i,o,l){return r||(r=i),p+=e.slice(h,l).replace(tt,ir),n&&(a=!0,p+="' +\n__e("+n+") +\n'"),o&&(s=!0,p+="';\n"+o+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),h=l+t.length,t})),p+="';\n";var v=dt.call(t,"variable")&&t.variable;if(v){if(We.test(v))throw new i(c)}else p="with (obj) {\n"+p+"\n}\n";p=(s?p.replace(ke,""):p).replace(Me,"$1").replace(Se,"$1;"),p="function("+(v||"obj")+") {\n"+(v?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(a?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var y=xh((function(){return Ye(u,g+"return "+p).apply(o,d)}));if(y.source=p,bc(y))throw y;return y}function hh(e){return Qc(e).toLowerCase()}function fh(e){return Qc(e).toUpperCase()}function ph(e,t,n){if(e=Qc(e),e&&(n||t===o))return Xn(e);if(!e||!(t=jo(t)))return e;var r=vr(e),i=vr(t),a=Qn(r,i),s=er(r,i)+1;return $o(r,a,s).join("")}function mh(e,t,n){if(e=Qc(e),e&&(n||t===o))return e.slice(0,yr(e)+1);if(!e||!(t=jo(t)))return e;var r=vr(e),i=er(r,vr(t))+1;return $o(r,0,i).join("")}function gh(e,t,n){if(e=Qc(e),e&&(n||t===o))return e.replace(Be,"");if(!e||!(t=jo(t)))return e;var r=vr(e),i=Qn(r,vr(t));return $o(r,i).join("")}function vh(e,t){var n=L,r=A;if(Mc(t)){var i="separator"in t?t.separator:i;n="length"in t?qc(t.length):n,r="omission"in t?jo(t.omission):r}e=Qc(e);var a=e.length;if(ar(e)){var s=vr(e);a=s.length}if(n>=a)return e;var l=n-gr(r);if(l<1)return r;var u=s?$o(s,0,l).join(""):e.slice(0,l);if(i===o)return u+r;if(s&&(l+=u.length-l),Pc(i)){if(e.slice(l).search(i)){var c,d=u;i.global||(i=rt(i.source,Qc(Ge.exec(i))+"g")),i.lastIndex=0;while(c=i.exec(d))var h=c.index;u=u.slice(0,h===o?l:h)}}else if(e.indexOf(jo(i),l)!=l){var f=u.lastIndexOf(i);f>-1&&(u=u.slice(0,f))}return u+r}function yh(e){return e=Qc(e),e&&Oe.test(e)?e.replace(Ce,br):e}var bh=pa((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),_h=fa("toUpperCase");function wh(e,t,n){return e=Qc(e),t=n?o:t,t===o?sr(e)?xr(e):Pn(e):e.match(t)||[]}var xh=wo((function(e,t){try{return _n(e,o,t)}catch(n){return bc(n)?n:new i(n)}})),kh=Ba((function(e,t){return xn(t,(function(t){t=Ds(t),pi(e,t,Eu(e[t],e))})),e}));function Mh(e){var t=null==e?0:e.length,n=Wa();return e=t?On(e,(function(e){if("function"!=typeof e[1])throw new ot(u);return[n(e[0]),e[1]]})):[],wo((function(n){var r=-1;while(++rN)return[];var n=F,r=zt(e,F);t=Wa(t),e-=F;var i=Gn(r,t);while(++n0||t<0)?new Tr(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==o&&(t=qc(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},Tr.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Tr.prototype.toArray=function(){return this.take(F)},Di(Tr.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=wr[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);i&&(wr.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,l=t instanceof Tr,u=s[0],c=l||lc(t),d=function(e){var t=i.apply(wr,Ln([e],s));return r&&h?t[0]:t};c&&n&&"function"==typeof u&&1!=u.length&&(l=c=!1);var h=this.__chain__,f=!!this.__actions__.length,p=a&&!h,m=l&&!f;if(!a&&c){t=m?t:new Tr(this);var g=e.apply(t,s);return g.__actions__.push({func:Gl,args:[d],thisArg:o}),new Cr(g,h)}return p&&m?e.apply(this,s):(g=this.thru(d),p?r?g.value()[0]:g.value():g)})})),xn(["pop","push","shift","sort","splice","unshift"],(function(e){var t=at[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);wr.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(lc(i)?i:[],e)}return this[n]((function(n){return t.apply(lc(n)?n:[],e)}))}})),Di(Tr.prototype,(function(e,t){var n=wr[t];if(n){var r=n.name+"";dt.call(un,r)||(un[r]=[]),un[r].push({name:t,func:n})}})),un[ba(o,_).name]=[{name:"wrapper",func:o}],Tr.prototype.clone=Or,Tr.prototype.reverse=Lr,Tr.prototype.value=Ar,wr.prototype.at=ql,wr.prototype.chain=Xl,wr.prototype.commit=Kl,wr.prototype.next=Zl,wr.prototype.plant=Ql,wr.prototype.reverse=eu,wr.prototype.toJSON=wr.prototype.valueOf=wr.prototype.value=tu,wr.prototype.first=wr.prototype.head,Tt&&(wr.prototype[Tt]=Jl),wr},Mr=kr();ln._=Mr,i=function(){return Mr}.call(t,n,t,r),i===o||(r.exports=i)}).call(this)}).call(this,n("24aa"),n("7ebd")(e))},"2f21":function(e,t,n){"use strict";var r=n("79e5");e.exports=function(e,t){return!!e&&r((function(){t?e.call(null,(function(){}),1):e.call(null)}))}},"2f62":function(e,t,n){"use strict"; /** * vuex v3.1.0 * (c) 2019 Evan You * @license MIT */ function r(e){var t=Number(e.version.split(".")[0]);if(t>=2)e.mixin({beforeCreate:r});else{var n=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[r].concat(e.init):r,n.call(this,e)}}function r(){var e=this.$options;e.store?this.$store="function"===typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}n.d(t,"d",(function(){return L})),n.d(t,"c",(function(){return A})),n.d(t,"b",(function(){return D}));var i="undefined"!==typeof window&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function o(e){i&&(e._devtoolHook=i,i.emit("vuex:init",e),i.on("vuex:travel-to-state",(function(t){e.replaceState(t)})),e.subscribe((function(e,t){i.emit("vuex:mutation",e,t)})))}function a(e,t){Object.keys(e).forEach((function(n){return t(e[n],n)}))}function s(e){return null!==e&&"object"===typeof e}function l(e){return e&&"function"===typeof e.then}var u=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var n=e.state;this.state=("function"===typeof n?n():n)||{}},c={namespaced:{configurable:!0}};c.namespaced.get=function(){return!!this._rawModule.namespaced},u.prototype.addChild=function(e,t){this._children[e]=t},u.prototype.removeChild=function(e){delete this._children[e]},u.prototype.getChild=function(e){return this._children[e]},u.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},u.prototype.forEachChild=function(e){a(this._children,e)},u.prototype.forEachGetter=function(e){this._rawModule.getters&&a(this._rawModule.getters,e)},u.prototype.forEachAction=function(e){this._rawModule.actions&&a(this._rawModule.actions,e)},u.prototype.forEachMutation=function(e){this._rawModule.mutations&&a(this._rawModule.mutations,e)},Object.defineProperties(u.prototype,c);var d=function(e){this.register([],e,!1)};function h(e,t,n){if(t.update(n),n.modules)for(var r in n.modules){if(!t.getChild(r))return void 0;h(e.concat(r),t.getChild(r),n.modules[r])}}d.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},d.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,n){return t=t.getChild(n),e+(t.namespaced?n+"/":"")}),"")},d.prototype.update=function(e){h([],this.root,e)},d.prototype.register=function(e,t,n){var r=this;void 0===n&&(n=!0);var i=new u(t,n);if(0===e.length)this.root=i;else{var o=this.get(e.slice(0,-1));o.addChild(e[e.length-1],i)}t.modules&&a(t.modules,(function(t,i){r.register(e.concat(i),t,n)}))},d.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];t.getChild(n).runtime&&t.removeChild(n)};var f;var p=function(e){var t=this;void 0===e&&(e={}),!f&&"undefined"!==typeof window&&window.Vue&&O(window.Vue);var n=e.plugins;void 0===n&&(n=[]);var r=e.strict;void 0===r&&(r=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new d(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new f;var i=this,a=this,s=a.dispatch,l=a.commit;this.dispatch=function(e,t){return s.call(i,e,t)},this.commit=function(e,t,n){return l.call(i,e,t,n)},this.strict=r;var u=this._modules.root.state;b(this,u,[],this._modules.root),y(this,u),n.forEach((function(e){return e(t)}));var c=void 0!==e.devtools?e.devtools:f.config.devtools;c&&o(this)},m={state:{configurable:!0}};function g(e,t){return t.indexOf(e)<0&&t.push(e),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function v(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;b(e,n,[],e._modules.root,!0),y(e,n,t)}function y(e,t,n){var r=e._vm;e.getters={};var i=e._wrappedGetters,o={};a(i,(function(t,n){o[n]=function(){return t(e)},Object.defineProperty(e.getters,n,{get:function(){return e._vm[n]},enumerable:!0})}));var s=f.config.silent;f.config.silent=!0,e._vm=new f({data:{$$state:t},computed:o}),f.config.silent=s,e.strict&&S(e),r&&(n&&e._withCommit((function(){r._data.$$state=null})),f.nextTick((function(){return r.$destroy()})))}function b(e,t,n,r,i){var o=!n.length,a=e._modules.getNamespace(n);if(r.namespaced&&(e._modulesNamespaceMap[a]=r),!o&&!i){var s=C(t,n.slice(0,-1)),l=n[n.length-1];e._withCommit((function(){f.set(s,l,r.state)}))}var u=r.context=_(e,a,n);r.forEachMutation((function(t,n){var r=a+n;x(e,r,t,u)})),r.forEachAction((function(t,n){var r=t.root?n:a+n,i=t.handler||t;k(e,r,i,u)})),r.forEachGetter((function(t,n){var r=a+n;M(e,r,t,u)})),r.forEachChild((function(r,o){b(e,t,n.concat(o),r,i)}))}function _(e,t,n){var r=""===t,i={dispatch:r?e.dispatch:function(n,r,i){var o=T(n,r,i),a=o.payload,s=o.options,l=o.type;return s&&s.root||(l=t+l),e.dispatch(l,a)},commit:r?e.commit:function(n,r,i){var o=T(n,r,i),a=o.payload,s=o.options,l=o.type;s&&s.root||(l=t+l),e.commit(l,a,s)}};return Object.defineProperties(i,{getters:{get:r?function(){return e.getters}:function(){return w(e,t)}},state:{get:function(){return C(e.state,n)}}}),i}function w(e,t){var n={},r=t.length;return Object.keys(e.getters).forEach((function(i){if(i.slice(0,r)===t){var o=i.slice(r);Object.defineProperty(n,o,{get:function(){return e.getters[i]},enumerable:!0})}})),n}function x(e,t,n,r){var i=e._mutations[t]||(e._mutations[t]=[]);i.push((function(t){n.call(e,r.state,t)}))}function k(e,t,n,r){var i=e._actions[t]||(e._actions[t]=[]);i.push((function(t,i){var o=n.call(e,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:e.getters,rootState:e.state},t,i);return l(o)||(o=Promise.resolve(o)),e._devtoolHook?o.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):o}))}function M(e,t,n,r){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(e){return n(r.state,r.getters,e.state,e.getters)})}function S(e){e._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}function C(e,t){return t.length?t.reduce((function(e,t){return e[t]}),e):e}function T(e,t,n){return s(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}function O(e){f&&e===f||(f=e,r(f))}m.state.get=function(){return this._vm._data.$$state},m.state.set=function(e){0},p.prototype.commit=function(e,t,n){var r=this,i=T(e,t,n),o=i.type,a=i.payload,s=(i.options,{type:o,payload:a}),l=this._mutations[o];l&&(this._withCommit((function(){l.forEach((function(e){e(a)}))})),this._subscribers.forEach((function(e){return e(s,r.state)})))},p.prototype.dispatch=function(e,t){var n=this,r=T(e,t),i=r.type,o=r.payload,a={type:i,payload:o},s=this._actions[i];if(s){try{this._actionSubscribers.filter((function(e){return e.before})).forEach((function(e){return e.before(a,n.state)}))}catch(u){0}var l=s.length>1?Promise.all(s.map((function(e){return e(o)}))):s[0](o);return l.then((function(e){try{n._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(a,n.state)}))}catch(u){0}return e}))}},p.prototype.subscribe=function(e){return g(e,this._subscribers)},p.prototype.subscribeAction=function(e){var t="function"===typeof e?{before:e}:e;return g(t,this._actionSubscribers)},p.prototype.watch=function(e,t,n){var r=this;return this._watcherVM.$watch((function(){return e(r.state,r.getters)}),t,n)},p.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._vm._data.$$state=e}))},p.prototype.registerModule=function(e,t,n){void 0===n&&(n={}),"string"===typeof e&&(e=[e]),this._modules.register(e,t),b(this,this.state,e,this._modules.get(e),n.preserveState),y(this,this.state)},p.prototype.unregisterModule=function(e){var t=this;"string"===typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit((function(){var n=C(t.state,e.slice(0,-1));f.delete(n,e[e.length-1])})),v(this)},p.prototype.hotUpdate=function(e){this._modules.update(e),v(this,!0)},p.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(p.prototype,m);var L=P((function(e,t){var n={};return j(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){var t=this.$store.state,n=this.$store.getters;if(e){var r=R(this.$store,"mapState",e);if(!r)return;t=r.context.state,n=r.context.getters}return"function"===typeof i?i.call(this,t,n):t[i]},n[r].vuex=!0})),n})),A=P((function(e,t){var n={};return j(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var r=this.$store.commit;if(e){var o=R(this.$store,"mapMutations",e);if(!o)return;r=o.context.commit}return"function"===typeof i?i.apply(this,[r].concat(t)):r.apply(this.$store,[i].concat(t))}})),n})),D=P((function(e,t){var n={};return j(t).forEach((function(t){var r=t.key,i=t.val;i=e+i,n[r]=function(){if(!e||R(this.$store,"mapGetters",e))return this.$store.getters[i]},n[r].vuex=!0})),n})),E=P((function(e,t){var n={};return j(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var r=this.$store.dispatch;if(e){var o=R(this.$store,"mapActions",e);if(!o)return;r=o.context.dispatch}return"function"===typeof i?i.apply(this,[r].concat(t)):r.apply(this.$store,[i].concat(t))}})),n})),I=function(e){return{mapState:L.bind(null,e),mapGetters:D.bind(null,e),mapMutations:A.bind(null,e),mapActions:E.bind(null,e)}};function j(e){return Array.isArray(e)?e.map((function(e){return{key:e,val:e}})):Object.keys(e).map((function(t){return{key:t,val:e[t]}}))}function P(e){return function(t,n){return"string"!==typeof t?(n=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,n)}}function R(e,t,n){var r=e._modulesNamespaceMap[n];return r}var N={Store:p,install:O,version:"3.1.0",mapState:L,mapMutations:A,mapGetters:D,mapActions:E,createNamespacedHelpers:I};t["a"]=N},"2f78":function(e,t,n){var r=n("5ca1");r(r.S,"Math",{isubh:function(e,t,n,r){var i=e>>>0,o=t>>>0,a=n>>>0;return o-(r>>>0)-((~i&a|~(i^a)&i-a>>>0)>>>31)|0}})},"2fdb":function(e,t,n){"use strict";var r=n("5ca1"),i=n("d2c8"),o="includes";r(r.P+r.F*n("5147")(o),"String",{includes:function(e){return!!~i(this,e,o).indexOf(e,arguments.length>1?arguments[1]:void 0)}})},3024:function(e,t){e.exports=function(e,t,n){var r=void 0===n;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},"30b5":function(e,t,n){"use strict";var r=n("c532");function i(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var o;if(n)o=n(t);else if(r.isURLSearchParams(t))o=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!==e&&"undefined"!==typeof e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(i(t)+"="+i(e))})))})),o=a.join("&")}return o&&(e+=(-1===e.indexOf("?")?"?":"&")+o),e}},"30ba":function(e,t,n){ /*! * @form-create/element-ui v2.5.37 * (c) 2018-2024 xaboy * Github https://github.com/xaboy/form-create * Released under the MIT License. */ !function(e,r){r(t,n("2b0e"))}(0,(function(e,t){"use strict";function n(){return(n=Object.assign||function(e){for(var t,n=1;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n-1?[]:[e]}function w(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}w("._fc-frame .fc-files img {\n width: 100%;\n height: 100%;\n display: inline-block;\n vertical-align: top;\n}\n\n._fc-frame .fc-upload-btn {\n border: 1px dashed #c0ccda;\n cursor: pointer;\n}\n\n._fc-frame .fc-upload-cover {\n opacity: 0;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n background: rgba(0, 0, 0, .6);\n -webkit-transition: opacity .3s;\n -o-transition: opacity .3s;\n transition: opacity .3s;\n}\n\n._fc-frame .fc-upload-cover i {\n color: #fff;\n font-size: 20px;\n cursor: pointer;\n margin: 0 2px;\n}\n\n._fc-frame .fc-files:hover .fc-upload-cover {\n opacity: 1;\n}\n\n._fc-frame .el-upload {\n display: block;\n}\n\n._fc-frame .fc-upload-btn, .fc-files {\n display: inline-block;\n width: 58px;\n height: 58px;\n text-align: center;\n line-height: 58px;\n border: 1px solid #c0ccda;\n border-radius: 4px;\n overflow: hidden;\n background: #fff;\n position: relative;\n -webkit-box-shadow: 2px 2px 5px rgba(0, 0, 0, .1);\n box-shadow: 2px 2px 5px rgba(0, 0, 0, .1);\n margin-right: 4px;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n}\n");var x={name:"fcFrame",props:{formCreateInject:{type:Object,required:!0},type:{type:String,default:"input"},field:String,helper:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},src:{type:String,required:!0},icon:{type:String,default:"el-icon-upload2"},width:{type:String,default:"500px"},height:{type:String,default:"370px"},maxLength:{type:Number,default:0},okBtnText:{type:String,default:"确定"},closeBtnText:{type:String,default:"关闭"},modalTitle:String,handleIcon:{type:[String,Boolean],default:void 0},title:String,allowRemove:{type:Boolean,default:!0},onOpen:{type:Function,default:function(){}},onOk:{type:Function,default:function(){}},onCancel:{type:Function,default:function(){}},onLoad:{type:Function,default:function(){}},onBeforeRemove:{type:Function,default:function(){}},onRemove:{type:Function,default:function(){}},onHandle:{type:Function,default:function(e){this.previewImage=this.getSrc(e),this.previewVisible=!0}},modal:{type:Object,default:function(){return{}}},srcKey:{type:[String,Number]},value:[Array,String,Number,Object],previewMask:void 0,footer:{type:Boolean,default:!0},reload:{type:Boolean,default:!0},closeBtn:{type:Boolean,default:!0},okBtn:{type:Boolean,default:!0}},data:function(){return{fileList:_(this.value),previewVisible:!1,frameVisible:!1,previewImage:""}},watch:{value:function(e){this.fileList=_(e)},fileList:function(e){var t=1===this.maxLength?e[0]||"":e;this.$emit("input",t),this.$emit("change",t)},src:function(e){this.modalVm&&(this.modalVm.src=e)}},methods:{key:function(e){return e},closeModel:function(e){this.$emit(e?"$close":"$ok"),this.reload&&(this.$off("$ok"),this.$off("$close")),this.frameVisible=!1},handleCancel:function(){this.previewVisible=!1},showModel:function(){this.disabled||!1===this.onOpen()||(this.frameVisible=!0)},makeInput:function(){var e=this,t=this.$createElement,n={type:"text",value:this.fileList.map((function(t){return e.getSrc(t)})).toString(),readonly:!0};return t("ElInput",s([{},{props:n},{key:this.key("input")}]),[this.fileList.length?t("i",{slot:"suffix",class:"el-input__icon el-icon-circle-close",on:{click:function(){return e.fileList=[]}}}):null,t("ElButton",s([{attrs:{icon:this.icon}},{on:{click:function(){return e.showModel()}}},{slot:"append"}]))])},makeGroup:function(e){var t=this.$createElement;return(!this.maxLength||this.fileList.length0},Function:function(e){var t=this.getType(e);return"Function"===t||"AsyncFunction"===t},getType:function(e){var t=Object.prototype.toString.call(e);return/^\[object (.*)\]$/.exec(t)[1]},empty:function(e){return null==e||!(!Array.isArray(e)||!Array.isArray(e)||e.length)||"string"==typeof e&&!e}};function S(e,t){return{}.hasOwnProperty.call(e,t)}["Date","Object","String","Boolean","Array","Number"].forEach((function(e){M[e]=function(t){return M.type(t,e)}}));var C={name:"fcSelect",functional:!0,props:{formCreateInject:{type:Object,required:!0}},render:function(e,t){var n=function(t,n){var r=t.slot;return e("ElOption",s([{},{props:t},{key:n+"-"+t.value}]),[r?e("template",{slot:t.slotName||"default"},[M.Function(r)?t.slot(e):r]):null])},r=t.props.formCreateInject.options;return e("ElSelect",s([{},t.data,{ref:"el"}]),[(Array.isArray(r)?r:[]).map((function(t,r){return S(t||"","options")?function(t,r){return e("ElOptionGroup",{attrs:{label:t.label},key:r+"-"+t.label},[M.trueArray(t.options)&&t.options.map((function(e,t){return n(e,t)}))])}(t,r):n(t,r)})),t.children])},mounted:function(){this.$emit("fc.el",this.$refs.el)}},T={name:"fcTree",formCreateParser:{mergeProp:function(e){var t=e.prop.props;t.nodeKey||(t.nodeKey="id"),t.props||(t.props={label:"title"})}},props:{formCreateInject:{type:Object,required:!0},type:{type:String,default:"checked"},value:{type:[Array,String,Number],default:function(){return[]}}},watch:{value:function(){this.setValue()}},methods:{onChange:function(){this.updateValue()},updateValue:function(){var e;this.$refs.tree&&(e="selected"===this.type.toLocaleLowerCase()?this.$refs.tree.getCurrentKey():this.$refs.tree.getCheckedKeys(),this.$emit("input",e))},setValue:function(){"selected"===this.type.toLocaleLowerCase()?this.$refs.tree.setCurrentKey(this.value):this.$refs.tree.setCheckedKeys(_(this.value))}},render:function(){var e=this;return(0,arguments[0])("ElTree",s([{},this.formCreateInject.prop,{ref:"tree",on:{check:function(){return e.updateValue()},"node-click":function(){return e.updateValue()}}}]),[y(this.$slots)])},mounted:function(){this.setValue(),this.$emit("fc.el",this.$refs.tree)}};function O(e,t){return{url:e,name:L(e),uid:t}}function L(e){return(""+e).split("/").pop()}w("._fc-upload .fc-files img {\n width: 100%;\n height: 100%;\n display: inline-block;\n vertical-align: top;\n}\n\n._fc-upload .fc-upload-btn {\n border: 1px dashed #c0ccda;\n cursor: pointer;\n}\n\n._fc-upload .fc-upload-cover {\n opacity: 0;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n background: rgba(0, 0, 0, .6);\n -webkit-transition: opacity .3s;\n -o-transition: opacity .3s;\n transition: opacity .3s;\n}\n\n._fc-upload .fc-upload-cover i {\n color: #fff;\n font-size: 20px;\n cursor: pointer;\n margin: 0 2px;\n}\n\n._fc-upload .fc-files:hover .fc-upload-cover {\n opacity: 1;\n}\n\n._fc-upload .el-upload {\n display: block;\n}\n\n._fc-upload .fc-upload-btn, ._fc-upload .fc-files {\n display: inline-block;\n width: 58px;\n height: 58px;\n text-align: center;\n line-height: 58px;\n border: 1px solid #c0ccda;\n border-radius: 4px;\n overflow: hidden;\n background: #fff;\n position: relative;\n -webkit-box-shadow: 2px 2px 5px rgba(0, 0, 0, .1);\n box-shadow: 2px 2px 5px rgba(0, 0, 0, .1);\n margin-right: 4px;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n}\n");var A={name:"fcUpload",props:{formCreateInject:{type:Object,required:!0},onHandle:{type:Function,default:function(e){this.previewImage=e.url,this.previewVisible=!0}},uploadType:{type:String,default:"file"},limit:{type:Number,default:0},allowRemove:{type:Boolean,default:!0},previewMask:void 0,modalTitle:String,handleIcon:{type:[String,Boolean],default:function(){}},value:[Array,String]},data:function(){return{uploadList:[],previewVisible:!1,previewImage:"",cacheFiles:[]}},created:function(){void 0===this.formCreateInject.prop.props.showFileList&&(this.formCreateInject.prop.props.showFileList=!1),this.formCreateInject.prop.props.fileList=_(this.value).map(O)},watch:{value:function(e){this.$refs.upload.uploadFiles.every((function(e){return!e.status||"success"===e.status}))&&(this.$refs.upload.uploadFiles=_(e).map(O),this.uploadList=this.$refs.upload.uploadFiles)},limit:function(e,t){1!==t&&1!==e||this.update()}},methods:{key:function(e){return e},isDisabled:function(){return!0===this.formCreateInject.prop.props.disabled},onRemove:function(e){this.isDisabled()||this.$refs.upload.handleRemove(e)},handleClick:function(e){this.onHandle(e)},makeItem:function(e,t){var n=this.$createElement;return"image"===this.uploadType?n("img",{attrs:{src:e.url},key:this.key("img"+t)}):n("i",{class:"el-icon-tickets",key:this.key("i"+t)})},makeRemoveIcon:function(e,t){var n=this;return(0,this.$createElement)("i",{class:"el-icon-delete",on:{click:function(){return n.onRemove(e)}},key:this.key("ri"+t)})},makeHandleIcon:function(e,t){var n=this;return(0,this.$createElement)("i",{class:!0===this.handleIcon||void 0===this.handleIcon?"el-icon-view":this.handleIcon,on:{click:function(){return n.handleClick(e)}},key:this.key("hi"+t)})},makeProgress:function(e,t){return(0,this.$createElement)("ElProgress",s([{},{props:{percentage:e.percentage,type:"circle",width:52}},{style:"margin-top:2px;",key:this.key("pg"+t)}]))},makeIcons:function(e,t){var n=this.$createElement,r=[];if(this.allowRemove||!1!==this.handleIcon)return("file"!==this.uploadType&&!1!==this.handleIcon||"file"===this.uploadType&&this.handleIcon)&&r.push(this.makeHandleIcon(e,t)),this.allowRemove&&r.push(this.makeRemoveIcon(e,t)),n("div",{class:"fc-upload-cover"},[r])},makeFiles:function(){var e=this,t=this.$createElement;return this.uploadList.map((function(n,r){return e.$scopedSlots.fileList?e.$scopedSlots.fileList({file:n,index:r,vm:e}):t("div",{key:e.key(r),class:"fc-files"},[void 0!==n.percentage&&"success"!==n.status?e.makeProgress(n,r):[e.makeItem(n,r),e.makeIcons(n,r)]])}))},makeUpload:function(){var e=this.$createElement,t=!this.limit||this.limit>this.uploadList.length;return e("ElUpload",s([{},this.formCreateInject.prop,{},{style:{display:"inline-block"},key:this.key("upload"),ref:"upload"}]),[t?e("template",{slot:"default"},[this.$slots.default||e("div",{class:"fc-upload-btn"},[e("i",{class:"el-icon-upload2"})])]):null,y(this.$slots,["default"])])},update:function(){var e=this.$refs.upload.uploadFiles.map((function(e){return e.url})).filter((function(e){return void 0!==e}));this.cacheFiles.length===e.length&&e.length||(this.cacheFiles=g(e),this.$emit("input",1===this.limit?e[0]||"":e))},handleCancel:function(){this.previewVisible=!1}},render:function(){var e=arguments[0];return this.$refs.upload&&(void 0===this.formCreateInject.prop.props.showFileList&&(this.formCreateInject.prop.props.showFileList=this.$refs.upload.showFileList),this.formCreateInject.prop.props.fileList=this.$refs.upload.fileList),e("div",{class:"_fc-upload"},[[this.formCreateInject.prop.props.showFileList?[]:this.makeFiles(),this.makeUpload()],e("el-dialog",s([{},{props:{appendToBody:!0,modal:this.previewMask,title:this.modalTitle,visible:this.previewVisible}},{on:{close:this.handleCancel}}]),[e("img",{attrs:{alt:"example",src:this.previewImage},style:"width: 100%"})])])},mounted:function(){var e=this;this.uploadList=this.$refs.upload.uploadFiles,this.$watch((function(){return e.$refs.upload.uploadFiles}),(function(){e.update()}),{deep:!0}),this.$emit("fc.el",this.$refs.upload)}};function D(e,n,r){t.set(e,n,r)}function E(e,n){t.delete(e,n)}function I(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=!1;for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var o=t[i];if((r=Array.isArray(o))||M.Object(o)){var a=void 0===e[i];if(r)r=!1,a&&D(e,i,[]);else if(o._clone&&void 0!==n){if(!n){D(e,i,o._clone());continue}o=o.getRule(),a&&D(e,i,{})}else a&&D(e,i,{});e[i]=I(e[i],o,n)}else D(e,i,o),M.Undef(o)||(M.Undef(o.__json)||(e[i].__json=o.__json),M.Undef(o.__origin)||(e[i].__origin=o.__origin))}return void 0!==n&&Array.isArray(e)?e.filter((function(e){return!e||!e.__ctrl})):e}function j(e){return I({},{value:e}).value}var P=Object.assign||function(e){for(var t,n=1;n0&&this.expandRule(t)},value:function(e,t){var n=this;e=e||[];var r=this.sort,i=r.length,o=i-e.length;if(o<0){for(var a=o;a<0;a++)this.addRule(e.length+a);this.sort=Object.keys(this.cacheRule);for(var s=0;s0){for(var l=0;lthis.min&&i.push(this.delIcon(t,n)),this.sortBtn&&t&&i.push(this.sortUpIcon(t)),this.sortBtn&&t!==e-1&&i.push(this.sortDownIcon(t)),i},emitEvent:function(e,t,n,r){this.$emit.apply(this,[e].concat(g(t),[this.cacheRule[r].$f,n]))},expandRule:function(e){for(var t=0;t0&&this.expandRule(e);for(var t=0;t1?n-1:0),i=1;i1?t-1:0),r=1;r-1}))||(this.formCreate.$handle.reloadRule(e),this._renderRule())},disabled:function(){this.$f.refresh()}},beforeCreate:function(){var t=this;this.formCreate=new e(this),Object.keys(this.formCreate.prop).forEach((function(e){R(t.$options[e],t.formCreate.prop[e])})),this.$emit("beforeCreate",this.formCreate.api())},created:function(){var e=this,t=this,n=this.formCreate.api(),r=function(){var e=Y(t,t.$pfc);if(e)if(t.isMore){var r=_(e.getSubForm()),i=r.indexOf(n);i>-1&&r.splice(i,1)}else e.subForm()};t.$on("hook:beforeDestroy",(function(){r()})),this.$watch((function(){return e.subForm}),(function(e){e?function(){if(t.$pfc){var e,r=Y(t,t.$pfc);r&&(t.isMore?(e=_(r.getSubForm())).push(n):e=n,r.subForm(e))}}():r()}),{immediate:!0})}}}var z=["attrs","props","domProps","scopedSlots"],H=["class","style","directives"],V=["on","nativeOn"],W=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=[].concat(z,g(r.normal||[])),o=[].concat(H,g(r.array||[])),a=[].concat(V,g(r.functional||[])),s=r.props||[];return t.reduce((function(t,n){for(var r in n)if(t[r])if(s.indexOf(r)>-1)t[r]=e([n[r]],t[r]);else if(i.indexOf(r)>-1)t[r]=d(d({},t[r]),n[r]);else if(o.indexOf(r)>-1){var u=t[r]instanceof Array?t[r]:[t[r]],c=n[r]instanceof Array?n[r]:[n[r]];t[r]=[].concat(g(u),g(c))}else if(a.indexOf(r)>-1)for(var h in n[r])if(t[r][h]){var f=t[r][h]instanceof Array?t[r][h]:[t[r][h]],p=n[r][h]instanceof Array?n[r][h]:[n[r][h]];t[r][h]=[].concat(g(f),g(p))}else t[r][h]=n[r][h];else if("hook"===r)for(var m in n[r])t[r][m]?t[r][m]=U(t[r][m],n[r][m]):t[r][m]=n[r][m];else t[r]=n[r];else i.indexOf(r)>-1||a.indexOf(r)>-1||s.indexOf(r)>-1?t[r]=d({},n[r]):o.indexOf(r)>-1?t[r]=n[r]instanceof Array?g(n[r]):"object"===l(n[r])?d({},n[r]):n[r]:t[r]=n[r];return t}),n)},U=function(e,t){return function(){e&&e.apply(this,arguments),t&&t.apply(this,arguments)}},$=["type","slot","emitPrefix","value","name","native","hidden","display","inject","options","emit","nativeEmit","link","prefix","suffix","update","sync","optionsTo","key","preview","component","cache"],G=["validate","children","control"],q=["effect","deep"];function X(e,t,n){return"[form-create ".concat(e,"]: ").concat(t)+(n?"\n\nrule: "+JSON.stringify(n.getRule?n.getRule():n):"")}function K(e,t){console.error(X("err",e,t))}var Z="[[FORM-CREATE-PREFIX-",J="-FORM-CREATE-SUFFIX]]",Q="$FN:",ee="$FNX:",te="function";function ne(e,t){return JSON.stringify(I(Array.isArray(e)?[]:{},e,!0),(function(e,t){if(!t||!0!==t._isVue){if(l(t)!==te)return t;if(t.__json)return t.__json;if(t.__origin&&(t=t.__origin),!t.__emit)return Z+t+J}}),t)}function re(e){return new Function("return "+e)()}function ie(e,t){if(e&&M.String(e)&&e.length>4){var n=e.trim(),r=!1;try{if(n.indexOf(J)>0&&0===n.indexOf(Z))n=n.replace(J,"").replace(Z,""),r=!0;else if(0===n.indexOf(Q))n=n.replace(Q,""),r=!0;else{if(0===n.indexOf(ee))return(n=re("function($inject){"+n.replace(ee,"")+"}")).__json=e,n.__inject=!0,n;t||0!==n.indexOf(te)||n===te||(r=!0)}if(!r)return e;var i=re(-1===n.indexOf(te)&&0!==n.indexOf("(")?te+" "+n:n);return i.__json=e,i}catch(e){return void K("解析失败:".concat(n,"\n\nerr: ").concat(e))}}return e}function oe(e,t){return JSON.parse(e,(function(e,n){return M.Undef(n)||!n.indexOf?n:ie(n,t)}))}function ae(e,t){return{value:e,enumerable:!1,configurable:!1,writable:!!t}}function se(e){return le([e])[0]}function le(e,t){return I([],g(e),t||!1)}function ue(e,t){return W(Array.isArray(t)?t:[t],e,{array:G,normal:q}),e}function ce(e){var t=M.Function(e.getRule)?e.getRule():e;return t.type||(t.type="input"),t}function de(e,t){Object.defineProperties(e,Object.keys(t).reduce((function(e,n){return e[n]={get:function(){return t[n]()}},e}),{}))}function he(e){return e.__fc__||(e.__origin__?e.__origin__.__fc__:null)}function fe(e,t){try{t=e()}catch(e){!function(e){K(e.toString()),console.error(e)}(e)}return t}var pe=function(e,t){return"string"==typeof e?String(t):"number"==typeof e?Number(t):t},me={"==":function(e,t){return JSON.stringify(e)===JSON.stringify(pe(e,t))},"!=":function(e,t){return!me["=="](e,t)},">":function(e,t){return e>t},">=":function(e,t){return e>=t},"<":function(e,t){return e-1},notOn:function(e,t){return!me.on(e,t)},in:function(e,t){return t&&t.indexOf&&t.indexOf(e)>-1},notIn:function(e,t){return!me.in(e,t)},between:function(e,t){return e>t[0]&&et[1]},empty:function(e){return M.empty(e)},notEmpty:function(e){return!M.empty(e)},pattern:function(e,t){return new RegExp(t,"g").test(e)}};function ge(e,t){return function(n,r,i){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=new ve(e,n,r,i,o);return t&&(M.Function(t)?t(a):a.props(t)),a}}function ve(e,t,n,r,i){this._data=R({props:{},on:{},options:[],children:[],effect:{},hidden:!1,display:!0,value:void 0},{type:e,title:t,field:n,value:r,props:i||{}}),this.event=this.on}function ye(e){e.forEach((function(e){ve.prototype[e]=function(t){return ue(this._data,u({},e,arguments.length<2?t:u({},t,arguments[1]))),this}}))}R(ve.prototype,{getRule:function(){return this._data},setProp:function(e,t){return D(this._data,e,t),this},_clone:function(){var e=new this.constructor;return e._data=se(this._data),e}}),ye([].concat($,g(z),g(H),g(V),G,q));var be=ge("");function _e(e,t,n){var r=be("",t);return r._data.type=e,r._data.title=n,r}function we(e,t,n,r){var i=be("",n);return i._data.type="template",i._data.template=e,i._data.title=r,i._data.vm=t,i}function xe(){return{create:_e,createTmp:we,template:we,factory:ge}}function ke(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch(e){return t}}function Me(e){if("undefined"!=typeof XMLHttpRequest){var t,n=new XMLHttpRequest,r=e.action;n.onerror=function(t){e.onError(t)},n.onload=function(){if(n.status<200||n.status>=300)return e.onError(function(e,t,n){var r="fail to ".concat(e," ").concat(n.status,"'"),i=new Error(r);return i.status=n.status,i.url=e,i}(r,0,n),ke(n));e.onSuccess(ke(n))},n.open(e.method||"get",r,!0),e.data&&("json"!==(e.dataType||"").toLowerCase()?(t=new FormData,Object.keys(e.data).map((function(n){t.append(n,e.data[n])}))):(t=JSON.stringify(e.data),n.setRequestHeader("content-type","application/json"))),e.withCredentials&&"withCredentials"in n&&(n.withCredentials=!0);var i=e.headers||{};Object.keys(i).forEach((function(e){null!==i[e]&&n.setRequestHeader(e,i[e])})),n.send(t)}}function Se(e){return new Promise((function(t,n){Me(d(d({},e),{},{onSuccess:function(n){var r=function(e){return e},i=ie(e.parse);M.Function(i)?r=i:i&&M.String(i)&&(r=function(e){return i.split(".").forEach((function(t){e&&(e=e[t])})),e}),t(r(n))},onError:function(e){n(e)}}))}))}function Ce(e){return j(e)}function Te(e){return Oe(e.replace(/(-[a-z])/g,(function(e){return e.replace("-","").toLocaleUpperCase()})))}function Oe(e){return e.replace(e[0],e[0].toLowerCase())}function Le(e){return null==e?"":"object"===l(e)?JSON.stringify(e,null,2):String(e)}function Ae(e){var t=e.replace(/([A-Z])/g,"-$1").toLocaleLowerCase();return 0===t.indexOf("-")&&(t=t.substr(1)),t}var De=0;function Ee(){var e=370+ ++De;return"F"+Math.random().toString(36).substr(3,3)+Number("".concat(Date.now())).toString(36)+e.toString(36)+"c"}function Ie(e,t,n){var r,i=e;return(t||"").split(".").forEach((function(e){r&&(i[r]&&"object"==l(i[r])||(i[r]={}),i=i[r]),r=e})),i[r]=n,i}function je(e){R(this,{$handle:e,fc:e.fc,vm:e.vm,$manager:e.$manager,vNode:new e.fc.CreateNode(e.vm)}),de(this,{options:function(){return e.options},sort:function(){return e.sort}}),this.initCache(),this.initRender()}!function(e){R(e.prototype,{initCache:function(){this.clearCacheAll()},clearCache:function(e){if(!e.rule.cache)if(this.cache[e.id]){(!0===this.cache[e.id].use||this.cache[e.id].parent)&&this.$handle.refresh();var t=this.cache[e.id].parent;this.cache[e.id]=null,t&&this.clearCache(t)}else e.parent&&this.clearCache(e.parent)},clearCacheAll:function(){this.cache={}},setCache:function(e,t,n){this.cache[e.id]={vnode:t,use:!1,parent:n,slot:e.rule.slot}},getCache:function(e){var t=this.cache[e.id];if(t)return t.use=!0,t.vnode}})}(je),function(e){R(e.prototype,{initRender:function(){this.tempList={},this.clearOrgChildren()},initOrgChildren:function(){var e=this.$handle.ctxs;this.orgChildren=Object.keys(e).reduce((function(t,n){if(!1!==e[n].parser.loadChildren){var r=e[n].rule.children;t[n]=M.trueArray(r)?g(r):[]}return t}),{})},clearOrgChildren:function(){this.orgChildren={}},getTypeSlot:function(e){return function t(n){if(n){var r=void 0;return e.rule.field&&(r=n.$scopedSlots["field-"+Ae(e.rule.field)]||n.$scopedSlots["field-"+e.rule.field]),r||(r=n.$scopedSlots["type-"+Ae(e.type)]||n.$scopedSlots["type-"+e.type]),r||t(n.$pfc)}}(this.vm)},render:function(){var e=this;if(this.vm.isShow){var t;this.$h=this.vm.$createElement,this.$manager.beforeRender();var n=function(){return e.renderList()};return n.renderSlot=function(t){return e.renderList(t)},n.renderName=function(t){return e.renderId(t)},n.renderField=function(t){return e.renderId(t,"field")},t=this.vm.$scopedSlots.container?[this.vm.$scopedSlots.container(n)]:n(),this.$manager.render(t)}},renderList:function(e){var t=this;return this.sort.map((function(n){return e?t.renderSlot(t.$handle.ctxs[n],e):t.renderCtx(t.$handle.ctxs[n])})).filter((function(e){return void 0!==e}))},makeVm:function(e){var t=this,n=e.vm;return n?M.Function(n)?fe((function(){return e.vm(t.$handle.getInjectData(e))})):n._isVue?n:new Je(n):new Je},mergeGlobal:function(e){var t=this.$handle.options.global;t&&(e.cacheConfig||(e.cacheConfig=t[e.originType]||t[e.type]||t[e.trueType]||{}),e.prop=ue({},[t["*"],e.cacheConfig,e.prop]))},setOptions:function(e){e.prop.optionsTo&&e.prop.options&&Ie(e.prop,e.prop.optionsTo,e.prop.options)},deepSet:function(e){var t=e.rule.deep;t&&Object.keys(t).sort((function(e,t){return e.length-1&&(e.$props[t]=i[t])}));var a=e.$options.model&&e.$options.model.prop||"value";r.indexOf(a)>-1&&(e.$props[a]=n.value)}},renderTemp:function(e){var t=this;if(!Je.compile)return function(e,t){console.warn(X("tip",e,t))}("当前使用的Vue构建版本不支持compile,无法使用template功能"),[];var n=e.prop,r=e.id,i=e.key;if(!this.tempList[r]){e.el||(e.el=this.makeVm(n),this.vm.$nextTick((function(){return e.parser.mounted(e)})));var o=e.el;e.input&&o.$on(o.$options.model&&o.$options.model.event||"input",(function(n){t.onInput(e,n)})),this.tempList[r]={vm:o,template:Je.compile(n.template)}}var a=this.tempList[r],s=a.vm,l=a.template;this.setTempProps(s,e);var u=l.render.call(s);return M.Undef(u.data)&&(u.data={}),u.key=i,u.data.ref=e.ref,u.data.key=i,u},parseSide:function(e,t){return M.Object(e)?ue({props:{formCreateInject:t.prop.props.formCreateInject}},e):e},renderSides:function(e,t,n){var r=t[n?"rule":"prop"];return[this.renderRule(this.parseSide(r.prefix,t)),e,this.renderRule(this.parseSide(r.suffix,t))]},renderSlot:function(e,t){return e.rule.slot===t?this.renderCtx(e):void 0},renderId:function(e,t){var n=this,r=this.$handle["field"===t?"fieldCtx":"nameCtx"][e];return r?r.map((function(e){return n.renderCtx(e,e.parent)})):void 0},renderCtx:function(e,t){if("hidden"!==e.type){var n=e.rule;if(!this.cache[e.id]||this.cache[e.id].slot!==n.slot){var r,i=!1!==n.cache,o=e.trueType,a=!(M.Undef(n.display)||n.display);if("template"!==o||n.template)if("fcFragment"===o)r=this.renderChildren(e);else{e.initProp(),this.mergeGlobal(e),this.$manager.tidyRule(e),this.deepSet(e),this.setOptions(e),this.ctxProp(e);var s=e.prop;s.preview=!!(S(s,"preview")?s.preview:this.options.preview),s.props.formCreateInject=this.injectProp(e);var l=s.preview;if(s.hidden)return void this.setCache(e,void 0,t);if("template"===o&&s.template)r=this.renderTemp(e),i=!1;else{var u=[];e.parser.renderChildren?u=e.parser.renderChildren(e):!1!==e.parser.loadChildren&&(u=this.renderChildren(e));var c=this.getTypeSlot(e);r=c?c({rule:n,prop:s,preview:l,children:u,api:this.$handle.api,model:s.model||{}}):l?e.parser.preview(u,e):e.parser.render(u,e)}r=this.renderSides(r,e),!e.input&&M.Undef(s.native)||!0===s.native||(r=this.$manager.makeWrap(e,r)),a&&(r=this.display(r)),r=this.item(e,r)}else r=this.renderSides(this.renderChildren(e),e,!0),a&&this.display(r),r=this.item(e,r);return i&&this.setCache(e,r,t),r}return this.getCache(e)}},display:function(e){var t=this;if(Array.isArray(e)){var n=[];return e.forEach((function(e){if(Array.isArray(e))return t.display(e);t.none(e)&&n.push(e)})),n}return this.none(e)},none:function(e){if(e&&e.data)return Array.isArray(e.data.style)?e.data.style.push({display:"none"}):M.String(e.data.style)?e.data.style+=";display:none;":e.data.style=[e.data.style,{display:"none"}],e},item:function(e,t){return this.$h("fcFragment",{slot:e.rule.slot,key:e.key},[t])},injectProp:function(e){var t=this;this.vm.ctxInject[e.id]||D(this.vm.ctxInject,e.id,{api:this.$handle.api,form:this.fc.create,subForm:function(n){t.$handle.addSubForm(e,n)},getSubForm:function(){return t.$handle.subForm[e.id]},options:[],children:[],prop:{},preview:!1,id:e.id,field:e.field,rule:e.rule,input:e.input});var n,r=this.vm.ctxInject[e.id];return R(r,{preview:e.prop.preview,options:e.prop.options,children:e.rule.children,prop:(n=d({},e.prop),n.on=n.on?d({},n.on):{},delete n.model,n)}),r},ctxProp:function(e){var t=this,n=e.ref,r=e.key,i=e.rule;this.$manager.mergeProp(e),e.parser.mergeProp(e);var o=[{ref:n,key:i.key||"".concat(r,"fc"),slot:void 0,on:{"hook:mounted":function(){t.onMounted(e)},"fc.sub-form":function(n){t.$handle.addSubForm(e,n)},"fc.el":function(t){e.exportEl=t,t&&((t.$el||t).__rule__=e.rule)}}}];return e.input&&(!0===this.vm.$props.disabled&&(e.prop.props.disabled=!0),e.prop.model={value:this.$handle.getFormData(e),callback:function(n){t.onInput(e,n)},expression:"formData.".concat(e.id)}),W(o,e.prop),e.prop},onMounted:function(e){e.el=this.vm.$refs[e.ref],e.el&&((e.el.$el||e.el).__rule__=e.rule),e.parser.mounted(e),this.$handle.effect(e,"mounted")},onInput:function(e,t){this.$handle.onInput(e,t)},renderChildren:function(e){var t=this,n=e.rule.children,r=this.orgChildren[e.id],i=function(e){return!M.String(e)&&e.__fc__&&!t.$handle.ctxs[e.__fc__.id]};return!M.trueArray(n)&&r?(this.$handle.deferSyncValue((function(){r.forEach((function(e){e&&i(e)&&t.$handle.rmCtx(e.__fc__)}))})),this.orgChildren[e.id]=[],[]):(r&&this.$handle.deferSyncValue((function(){r.forEach((function(e){e&&-1===n.indexOf(e)&&i(e)&&t.$handle.rmCtx(e.__fc__)}))})),n.map((function(r){if(r)return M.String(r)?r:r.__fc__?t.renderCtx(r.__fc__,e):void(r.type&&t.vm.$nextTick((function(){t.$handle.loadChildren(n,e),t.$handle.refresh()})))})))},defaultRender:function(e,t){var n=e.prop;return n.component?this.vNode.makeComponent(n.component,n,t):this.vNode[e.type]?this.vNode[e.type](n,t):this.vNode[e.originType]?this.vNode[e.originType](n,t):this.vNode.make(Oe(e.originType),n,t)},renderRule:function(e,t,n){var r=this;if(e){if(M.String(e))return e;var i;if(n)i=e.type;else if(i=e.is,e.type){i=Te(e.type);var o=this.vNode.aliasMap[i];o&&(i=Te(o))}if(i){var a=[[t]];return M.trueArray(e.children)&&a.push(e.children.map((function(e){return r.renderRule(e)}))),this.$h(i,d({},e),a)}}}})}(je);var Pe=["hook:updated","hook:mounted"];function Re(e,t,n){var r,i=Ee();R(this,{id:i,ref:i,wrapRef:i+"fi",rule:t,origin:t.__origin__||t,name:t.name,watch:[],linkOn:[],root:[],ctrlRule:[],parent:null,cacheConfig:null,prop:d({},t),computed:{},payload:{},input:!!t.field,el:void 0,exportEl:void 0,defaultValue:t.field?j(n):void 0,field:t.field||void 0}),this.updateType(),this.updateKey(),r=this,Object.defineProperties(r.origin,{__fc__:ae(r,!0)}),this.update(e,!0)}function Ne(e,t){for(var n=0;n-1&&(e.root.splice(t,1),e.$handle&&e.$handle.refresh())};this.deleted?t():this.$handle.noWatch((function(){e.$handle.deferSyncValue((function(){e.rmCtrl(),t(),e.$handle.rmCtx(e),R(e,{root:[]})}),e.input)}))},update:function(e,t){R(this,{deleted:!1,$handle:e,$render:e.$render,$api:e.api,vm:e.vm,trueType:e.getType(this.originType),vNode:e.$render.vNode,updated:!1,cacheValue:this.rule.value}),!t&&this.unwatch(),this.watchTo(),this.link()}});var ze={init:function(e){},toFormValue:function(e,t){return e},toValue:function(e,t){return e},mounted:function(e){},render:function(e,t){return t.$render.defaultRender(t,e)},preview:function(e,t){return this.render(e,t)},mergeProp:function(e){}},He=["field","value","vm","template","name","config","control","inject","sync","payload","optionsTo","update","component","cache"];function Ve(e){var t=this;R(this,{fc:e,vm:e.vm,watching:!1,loading:!1,reloading:!1,noWatchFn:null,deferSyncFn:null,isMounted:!1,formData:{},subForm:{},form:{},appendData:{},providers:{},cycleLoad:null,loadedId:1,nextTick:null,changeStatus:!1,pageEnd:!0,nextReload:function(){t.lifecycle("reload")}}),de(this,{options:function(){return e.options},bus:function(){return e.bus}}),this.initData(e.rules),this.$manager=new e.manager(this),this.$render=new je(this),this.api=e.extendApi(function(e){function t(t){return M.Undef(t)?t=e.fields():Array.isArray(t)||(t=[t]),t}function n(n,r,i){t(n).forEach((function(t){e.getCtxs(t).forEach((function(t){D(t.rule,r,i),e.$render.clearCache(t)}))}))}function r(){var t=e.subForm;return Object.keys(t).reduce((function(e,n){var r=t[n];return r?(Array.isArray(r)?e.push.apply(e,g(r)):e.push(r),e):e}),[])}var i={get config(){return e.options},get options(){return e.options},get form(){return e.form},get rule(){return e.rules},get parent(){return e.vm.$pfc&&e.vm.$pfc.$f},get top(){return i.parent?i.parent.top:i},get children(){return r()},formData:function(n){return t(n).reduce((function(t,n){var r=e.getFieldCtx(n);return r?(t[r.field]=Ce(r.rule.value),t):t}),!1!==e.options.appendValue?Ce(e.appendData):{})},getValue:function(t){var n=e.getFieldCtx(t);if(n)return Ce(n.rule.value)},coverValue:function(t){var n=d({},t||{});e.deferSyncValue((function(){i.fields().forEach((function(t){var r=e.fieldCtx[t];if(r){var i=S(n,t);r.forEach((function(e){e.rule.value=i?n[t]:void 0})),delete n[t]}})),R(e.appendData,n)}))},setValue:function(t){var n=t;arguments.length>=2&&(n=u({},t,arguments[1])),e.deferSyncValue((function(){Object.keys(n).forEach((function(t){var r=e.fieldCtx[t];if(!r)return e.appendData[t]=n[t];r.forEach((function(e){e.rule.value=n[t]}))}))}))},removeField:function(t){var n=e.getCtx(t);return e.deferSyncValue((function(){e.getCtxs(t).forEach((function(e){e.rm()}))}),!0),n?n.origin:void 0},removeRule:function(e){var t=e&&he(e);if(t)return t.rm(),t.origin},destroy:function(){e.vm.$el.parentNode&&e.vm.$el.parentNode.removeChild(e.vm.$el),e.vm.$destroy()},fields:function(){return e.fields()},append:function(t,n,r){var i,o=e.sort.length-1,a=e.getCtx(n);a?r?(i=a.rule.children,o=a.rule.children.length-1):(o=a.root.indexOf(a.origin),i=a.root):i=e.rules,i.splice(o+1,0,t)},prepend:function(t,n,r){var i,o=0,a=e.getCtx(n);a?r?i=a.rule.children:(o=a.root.indexOf(a.origin),i=a.root):i=e.rules,i.splice(o,0,t)},hidden:function(t,r){n(r,"hidden",!!t),e.refresh()},hiddenStatus:function(t){var n=e.getCtx(t);if(n)return!!n.rule.hidden},display:function(t,r){n(r,"display",!!t),e.refresh()},displayStatus:function(t){var n=e.getCtx(t);if(n)return!!n.rule.display},disabled:function(n,r){t(r).forEach((function(t){e.getCtxs(t).forEach((function(e){e.rule.props&&D(e.rule.props,"disabled",!!n)}))})),e.refresh()},all:function(t){return Object.keys(e.ctxs).map((function(n){var r=e.ctxs[n];return t?r.origin:r.rule}))},model:function(t){return e.fields().reduce((function(n,r){var i=e.fieldCtx[r][0];return n[r]=t?i.origin:i.rule,n}),{})},component:function(t){return Object.keys(e.nameCtx).reduce((function(n,r){var i=e.nameCtx[r].map((function(e){return t?e.origin:e.rule}));return n[r]=1===i.length?i[0]:i,n}),{})},bind:function(){return i.form},reload:function(t){e.reloadRule(t)},updateOptions:function(t){e.fc.updateOptions(t),i.refresh()},onSubmit:function(e){i.updateOptions({onSubmit:e})},sync:function(t){if(Array.isArray(t))t.forEach((function(e){return i.sync(e)}));else{var n=M.Object(t)?he(t):e.getCtxs(t);n&&((n=Array.isArray(n)?n:[n]).forEach((function(t){if(!t.deleted){var n=e.subForm[t.id];n&&(Array.isArray(n)?n.forEach((function(e){e.refresh()})):n&&n.refresh()),e.$render.clearCache(t)}})),e.refresh())}},refresh:function(){r().forEach((function(e){e.refresh()})),e.$render.clearCacheAll(),e.refresh()},refreshOptions:function(){e.$manager.updateOptions(e.options),i.refresh()},hideForm:function(t){D(e.vm,"isShow",!t)},changeStatus:function(){return e.changeStatus},clearChangeStatus:function(){e.changeStatus=!1},updateRule:function(t,n){e.getCtxs(t).forEach((function(e){R(e.rule,n)}))},updateRules:function(e){Object.keys(e).forEach((function(t){i.updateRule(t,e[t])}))},mergeRule:function(t,n){e.getCtxs(t).forEach((function(e){ue(e.rule,n)}))},mergeRules:function(e){Object.keys(e).forEach((function(t){i.mergeRule(t,e[t])}))},getRule:function(t,n){var r=e.getCtx(t);if(r)return n?r.origin:r.rule},getRenderRule:function(t){var n=e.getCtx(t);if(n)return n.prop},getRefRule:function(t){var n=e.getCtxs(t);if(n&&n.length){var r=n.map((function(e){return e.rule}));return 1===r.length?r[0]:r}},setEffect:function(t,n,r){var i=e.getCtx(t);i&&n&&("$"===n[0]&&(n=n.substr(1)),S(i.rule,"$"+n)&&D(i.rule,"$"+n,r),S(i.rule,"effect")||D(i.rule,"effect",{}),D(i.rule.effect,n,r))},clearEffectData:function(t,n){var r=e.getCtx(t);r&&(n&&"$"===n[0]&&(n=n.substr(1)),r.clearEffectData(n),i.sync(t))},updateValidate:function(e,t,r){r?i.mergeRule(e,{validate:t}):n(e,"validate",t)},updateValidates:function(e,t){Object.keys(e).forEach((function(n){i.updateValidate(n,e[n],t)}))},refreshValidate:function(){e.vm.validate={},i.refresh()},resetFields:function(n){t(n).forEach((function(t){e.getCtxs(t).forEach((function(t){e.$render.clearCache(t),t.rule.value=Ce(t.defaultValue)}))}))},method:function(e,t){var n=i.el(e);if(!n||!n[t])throw new Error(X("err","".concat(t,"方法不存在")));return function(){return n[t].apply(n,arguments)}},exec:function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o2?r-2:0),a=2;a1?r-1:0),o=1;o0?this.$render.render():(this.vm.unique=1,[])}})}(Ve),function(e){R(e.prototype,{nextRefresh:function(e){var t=this,n=this.loadedId;this.vm.$nextTick((function(){n===t.loadedId&&(e?e():t.refresh())}))},parseRule:function(e){var t=this,n=ce(e);return Object.defineProperties(n,{__origin__:ae(e,!0)}),function(e){var t={props:{},on:{},options:[],children:[],effect:{},hidden:!1,display:!0,value:void 0};Object.keys(t).forEach((function(n){S(e,n)||D(e,n,t[n])}))}(n),this.appendValue(n),n.options=Array.isArray(n.options)?n.options:[],[n,n.prefix,n.suffix].forEach((function(e){e&&t.loadFn(e,n)})),this.loadCtrl(n),n.update&&(n.update=ie(n.update)),n},loadFn:function(e,t){var n=this;["on","props","nativeOn","deep"].forEach((function(r){e[r]&&n.parseInjectEvent(t,e[r])}))},loadCtrl:function(e){e.control&&e.control.forEach((function(e){e.handle&&(e.handle=ie(e.handle))}))},syncProp:function(e){var t=this,n=e.rule;M.trueArray(n.sync)&&W([{on:n.sync.reduce((function(e,r){return e["update:".concat(r)]=function(e){n.props[r]=e,t.vm.$emit("sync",r,e,n,t.fapi)},e}),{})}],e.computed)},loadRule:function(){var e=this;this.cycleLoad=!1,this.loading=!0,this.pageEnd&&this.bus.$emit("load-start"),this.deferSyncValue((function(){if(e._loadRule(e.rules),e.loading=!1,e.cycleLoad&&e.pageEnd)return e.loadRule();e.pageEnd&&e.bus.$emit("load-end"),e.vm._renderRule(),e.$render.initOrgChildren(),e.syncForm()}))},loadChildren:function(e,t){if(this.cycleLoad=!1,this.loading=!0,this.bus.$emit("load-start"),this._loadRule(e,t),this.loading=!1,this.cycleLoad)return this.loadRule();this.bus.$emit("load-end"),this.syncForm(),this.$render.clearCache(t)},_loadRule:function(e,t){var n=this,r=function(e,t){M.trueArray(e)&&n._loadRule(e,t)};e.map((function(i,o){if((!t||M.Object(i))&&(n.pageEnd||t||!(o>=n.first))){if(i.__fc__&&i.__fc__.root===e&&n.ctxs[i.__fc__.id])return r(i.__fc__.rule.children,i.__fc__),i.__fc__;var a,s=ce(i),l=function(){return!(!s.field||!n.fieldCtx[s.field]||n.fieldCtx[s.field][0]===i.__fc__)};n.ruleEffect(s,"init",{repeat:l()}),l()&&n.vm.$emit("repeat-field",i,n.api);var u=!1,c=!!i.__fc__,d=s.value;if(c){d=(a=i.__fc__).defaultValue;var h=!a.check(n);if(a.deleted){if(h){if(Be(a))return;a.update(n)}}else if(h){if(Be(a))return;e[o]=i=i._clone?i._clone():se(i),a=null,u=!0}}if(a)a.originType!==a.rule.type&&(a.updateType(),n.bindParser(a)),n.appendValue(a.rule);else{var f=n.parseRule(i);a=new Re(n,f,d),n.bindParser(a)}if([!1,!0].forEach((function(e){return n.parseEmit(a,e)})),n.syncProp(a),a.parent=t||null,a.root=e,n.setCtx(a),!u&&!c&&n.effect(a,"load"),n.effect(a,"created"),!1===a.parser.loadChildren||r(a.rule.children,a),!t){var p=function t(r){var i=e[r-1];if(!i||!i.__fc__)return r>0?t(r-1):-1;var o=n.sort.indexOf(i.__fc__.id);return o>-1?o:t(r-1)}(o);p>-1||!o?n.sort.splice(p+1,0,a.id):n.sort.push(a.id)}var m=a.rule;return a.updated||(a.updated=!0,M.Function(m.update)&&n.bus.$once("load-end",(function(){n.refreshUpdate(a,m.value,"init")})),n.effect(a,"loaded")),a.input&&Object.defineProperty(m,"value",n.valueHandle(a)),n.refreshControl(a)&&(n.cycleLoad=!0),a}}))},refreshControl:function(e){return e.input&&e.rule.control&&this.useCtrl(e)},useCtrl:function(e){var t=this,n=function(e){var t=e.rule.control||[];return M.Object(t)?[t]:t}(e),r=[],i=this.api;if(!n.length)return!1;for(var o=function(t){var o=n[t],a=o.handle||function(e){return(me[o.condition||"=="]||me["=="])(e,o.value)};if(!M.trueArray(o.rule))return"continue";var s=d(d({},o),{},{valid:fe((function(){return a(e.rule.value,i)})),ctrl:Ne(e,o.rule),isHidden:M.String(o.rule[0])});if(s.valid&&s.ctrl||!s.valid&&!s.ctrl&&!s.isHidden)return"continue";r.push(s)},a=0;a>>0,1).length>0;return i.length||delete this[r][t],o},getFieldCtx:function(e){return(this.fieldCtx[e]||[])[0]},getNameCtx:function(e){return this.nameCtx[e]||[]},setCtx:function(e){var t=e.id,n=e.field,r=e.name,i=e.rule;this.ctxs[t]=e,r&&this.setIdCtx(e,r,"name"),e.input&&(this.setIdCtx(e,n,"field"),this.setFormData(e,e.parser.toFormValue(i.value,e)),this.isMounted&&!this.reloading&&this.vm.$emit("change",e.field,i.value,e.origin,this.api))},getParser:function(e){var t=this.fc.parsers;return t[e.originType]||t[Te(e.type)]||t[e.trueType]||ze},bindParser:function(e){e.setParser(this.getParser(e))},getType:function(e){var t=this.fc.CreateNode.aliasMap,n=t[e]||t[Te(e)]||e;return Te(n)},noWatch:function(e){this.noWatchFn||(this.noWatchFn=e),fe(e),this.noWatchFn===e&&(this.noWatchFn=null)},watchCtx:function(e){var t=this,n=this.vm;Object.keys(e.rule).filter((function(e){return"_"!==e[0]&&"$"!==e[0]&&-1===He.indexOf(e)})).forEach((function(r){var i="children"===r;e.watch.push(n.$watch((function(){return e.rule[r]}),(function(n,o){if(!(t.loading||t.noWatchFn||t.reloading)){if(i&&!1===e.parser.loadChildren)return t.$render.clearCache(e),void t.nextRefresh();if(t.watching=!0,"link"!==r){if(["props","on","nativeOn","deep"].indexOf(r)>-1)t.parseInjectEvent(e.rule,n||{}),"props"===r&&e.input&&t.setFormData(e,e.parser.toFormValue(e.rule.value,e));else if(["emit","nativeEmit"].indexOf(r)>-1)t.parseEmit(e,"emit"===r);else if(["prefix","suffix"].indexOf(r)>-1)n&&t.loadFn(n,e.rule);else if("type"===r)e.updateType(),t.bindParser(e);else if("children"===r){var a=M.trueArray(n);t.deferSyncValue((function(){n!==o&&(t.rmSub(o,e),t.$render.initOrgChildren()),a&&t.loadChildren(n,e),t.vm.$emit("update",t.api)}))}t.$render.clearCache(e),t.refresh(),t.watching=!1}else e.link()}}),{deep:!i,sync:i}))})),this.watchEffect(e)},rmSub:function(e,t){var n=this;M.trueArray(e)&&e.forEach((function(e){e&&e.__fc__&&e.__fc__.parent===t&&n.rmCtx(e.__fc__)}))},rmCtx:function(e){var t=this;if(!e.deleted){var n=e.id,r=e.field,i=e.input,o=e.name;e.input&&Object.defineProperty(e.rule,"value",{value:e.rule.value,writable:!0}),E(this.ctxs,n),E(this.$render.tempList,n),E(this.$render.orgChildren,n),E(this.vm.ctxInject,n),E(this.formData,n),E(this.subForm,n),E(e,"cacheValue"),i&&this.rmIdCtx(e,r,"field"),o&&this.rmIdCtx(e,o,"name"),i&&!S(this.fieldCtx,r)&&E(this.form,r),this.deferSyncValue((function(){t.reloading||(!1!==e.parser.loadChildren&&M.trueArray(e.rule.children)&&e.rule.children.forEach((function(e){return e.__fc__&&t.rmCtx(e.__fc__)})),e.root===t.rules&&t.vm._renderRule())}),i);var a=this.sort.indexOf(n);return a>-1&&this.sort.splice(a,1),this.$render.clearCache(e),e.delete(),this.effect(e,"deleted"),i&&!this.fieldCtx[r]&&this.vm.$emit("removeField",r,e.rule,this.api),e.rule.__ctrl||this.vm.$emit("removeRule",e.rule,this.api),e}}})}(Ve),function(e){R(e.prototype,{mounted:function(){var e=this,t=function(){e.isMounted=!0,e.lifecycle("mounted")};this.pageEnd?t():this.bus.$once("page-end",t)},lifecycle:function(e){this.vm.$emit(e,this.api),this.emitEvent(e,this.api)},emitEvent:function(e){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i-1||(n.push(i),t.bus.$on("p:".concat(e.name,":").concat(i,":").concat(e.input?1:0),(function(t,n){e[t]&&e[t].apply(e,g(n))})))})),e._used=n},watchEffect:function(e){var t=this,n=this.vm,r={required:function(){var t,n;return(S(e.rule,"$required")?e.rule.$required:null===(t=e.rule)||void 0===t||null===(n=t.effect)||void 0===n?void 0:n.required)||!1}};Object.keys(e.rule.effect||{}).forEach((function(t){r[t]=function(){return e.rule.effect[t]}})),Object.keys(e.rule).forEach((function(t){"$"===t[0]&&(r[t.substr(1)]=function(){return e.rule[t]})})),Object.keys(r||{}).forEach((function(i){e.watch.push(n.$watch(r[i],(function(n){t.effect(e,"watch",u({},i,n))}),{deep:!0}))}))},ruleEffect:function(e,t,n){this.emitEffect({rule:e,input:!!e.field,type:this.getType(e.type)},t,n)},effect:function(e,t,n){this.emitEffect({rule:e.rule,input:e.input,type:e.trueType,ctx:e,custom:n},t)},getEffect:function(e,t){return S(e,"$"+t)?e["$"+t]:S(e,"effect")&&S(e.effect,t)?e.effect[t]:void 0},emitEffect:function(e,t,n){var r=this,i=e.ctx,o=e.rule,a=e.input,s=e.type,l=e.custom;if(s&&"fcFragment"!==s){var u=l||Object.keys(o).reduce((function(e,t){return"$"===t[0]&&(e[t.substr(1)]=o[t]),e}),d({},o.effect||{}));Object.keys(u).forEach((function(e){var l=r.providers[e];if(l&&(!l.input||a)){var c;if(l._c){if(!(l._used.indexOf(s)>-1))return;c=s}else c="*";var h=d({value:u[e],getValue:function(){return r.getEffect(o,e)}},n||{});i&&(h.getProp=function(){return i.effectData(e)},h.clearProp=function(){return i.clearEffectData(e)},h.mergeProp=function(e){return ue(h.getProp(),[e])},h.id=i.id),r.bus.$emit("p:".concat(e,":").concat(c,":").concat(l.input?1:0),t,[h,o,r.api])}}))}}})}(Ve);var We={name:"fcFragment",functional:!0,props:["vnode"],render:function(e,t){return t.props.vnode?t.props.vnode:t.children}};function Ue(){var e={};function n(e){e&&this.setVm(e)}return R(n.prototype,{setVm:function(e){this.vm=e,this.$h=e.$createElement},make:function(e,n,r){return t.config.isReservedTag(e)&&n.nativeOn&&delete n.nativeOn,this.makeComponent(e,n,r)},makeComponent:function(e,t,n){var r,i=this.$h(e,(r=t,M.String(r)?{domProps:{innerHTML:r}}:r),n||[]);return i.context=this.vm,i},aliasMap:e}),R(n,{aliasMap:e,alias:function(t,n){e[t]=n},use:function(e){Object.keys(e).forEach((function(t){var r=Ae(t),i=Le(t).toLocaleLowerCase(),o=e[t];[t,r,i].forEach((function(e){n.alias(t,o),n.prototype[e]=function(e,t){return this.make(o,e,t)}}))}))}}),n}function $e(e){var t=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(n,Ge);var t=m(n);function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),t.apply(this,arguments)}return n}();return Object.assign(t.prototype,e),t}function Ge(e){R(this,{$handle:e,vm:e.vm,options:{},ref:"fcForm",mergeOptionsRule:{normal:["form","row","info","submitBtn","resetBtn"]}}),this.updateKey(),this.init()}R(Ge.prototype,{__init:function(){var e=this;this.$render=this.$handle.$render,this.$r=function(){var t;return(t=e.$render).renderRule.apply(t,arguments)}},updateKey:function(){this.key=Ee()},init:function(){},update:function(){},beforeRender:function(){},form:function(){return this.vm.$refs[this.ref]},getSlot:function(e){return function t(n){if(n){var r=n.$scopedSlots[e];return r||t(n.$pfc)}}(this.vm)},mergeOptions:function(e,t){var n=this;return W(e.map((function(e){return n.tidyOptions(e)})),t,this.mergeOptionsRule)},updateOptions:function(e){this.options=this.mergeOptions([e],this.getDefaultOptions()),this.update()},tidyOptions:function(e){return e},tidyRule:function(e){},mergeProp:function(e){},getDefaultOptions:function(){return{}},render:function(e){}});var qe={name:"componentValidate",load:function(e,t,n){var r=e.getValue();r?e.getProp().validate=[{validator:function(){var i=he(t);if(i){for(var o=arguments.length,a=new Array(o),s=0;s-1)return O();if(void 0===t)return o[n]}else n=Te(e.name),t=e;if(n&&t){var r=Te(n);o[n]=t,o[r]=t,delete p.aliasMap[n],delete p.aliasMap[r],delete a[n],delete a[r],t.formCreateParser&&_(n,t.formCreateParser)}}function x(e){Object.keys(rt).forEach((function(t){(Array.isArray(rt[t])?rt[t]:[rt[t]]).forEach((function(t){t.bus.$emit("p.loadData."+e)}))}))}function k(e,t){f[e]=t,x(e)}function C(e,t){return S(f,e)?f[e]:t}function T(e){delete f[e],x(e)}function O(){return Je.extend(F(I))}function L(){return Je.extend(We)}function A(e,t){return M.Function(e.install)?e.install(D,t):M.Function(e)&&e(D,t),this}function D(e,t,n){var r=tt(e,t||{}),i=r.$refs.fc.formCreate;return i.$parent=n,et(i.options).appendChild(r.$el),i.api()}function E(t){var n=d({},e);return t?n.inherit={components:o,parsers:a,directives:s,providers:l,maker:c,loadData:f}:delete n.inherit,it(n)}function I(t){var n=t.$options.propsData.rule;R(this,{id:nt++,vm:t,create:D,manager:$e(e.manager),parsers:a,providers:l,rules:Array.isArray(n)?n:[],name:t.$options.propsData.name||Ee(),inFor:t.$options.propsData.inFor,prop:{components:o,directives:s},setData:k,getData:C,loadData:f,CreateNode:p,bus:new Je,unwatch:null,options:{},extendApi:e.extendApi||function(e){return e}}),this.init(),this.initOptions(),this.name&&(this.inFor?(rt[this.name]||(rt[this.name]=[]),rt[this.name].push(this)):rt[this.name]=this)}function P(t){R(t,{version:e.version,ui:e.ui,setData:k,getData:C,removeData:T,maker:c,component:w,directive:v,register:y,$vnode:L,parser:_,use:A,factory:E,componentAlias:b,copyRule:se,copyRules:le,fetch:Me,$form:O,parseFn:ie,parseJson:oe,toJson:ne,getApi:m,init:function(e){var t=tt(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),n=t.$refs.fc.formCreate;return{mount:function(e){return e&&M.Element(e)&&(n.options.el=e),et(n.options).appendChild(t.$el),n.api()},remove:function(){t.$el.parentNode&&t.$el.parentNode.removeChild(t.$el)},destroy:function(){this.remove(),t.$destroy()},$f:n.api()}}})}if(t=e.attrs||{},n=t.key||[],r=t.array||[],i=t.normal||[],$.push.apply($,g(n)),G.push.apply(G,g(r)),q.push.apply(q,g(i)),ye([].concat(g(n),g(r),g(i))),R(I.prototype,{init:function(){var e=this,t=this.vm,n=new Ve(this);this.$handle=n,t.$f=n.api,t.$emit("input",n.api),t.$on("hook:created",(function(){e.isSub()&&(e.unwatch=t.$watch((function(){return t.$pfc.option}),(function(){e.initOptions(),t.$f.refresh()}),{deep:!0}),e.initOptions()),e.created()})),t.$on("hook:mounted",(function(){e.mounted()})),t.$on("hook:beforeDestroy",(function(){if(t.destroyed=!0,e.unwatch&&e.unwatch(),n.reloadRule([]),e.name)if(e.inFor){var r=rt[e.name].indexOf(e);rt[e.name].splice(r,1),rt[e.name].length||delete rt[e.name]}else delete rt[e.name]})),t.$on("hook:updated",(function(){n.bindNextTick((function(){return e.bus.$emit("next-tick",n.api)}))}))},isSub:function(){return this.vm.$pfc&&this.vm.extendOption},initOptions:function(){this.options={};var e=d({formData:{},submitBtn:{},resetBtn:{}},j(h));this.isSub()&&this.mergeOptions(this.options,this.vm.$pfc.$f.config||{},!0),e=this.mergeOptions(e,this.vm.$options.propsData.option),this.updateOptions(e)},mergeOptions:function(e,t,n){return t=j(t),n&&["page","onSubmit","mounted","reload","formData","el"].forEach((function(e){delete t[e]})),t.global&&(e.global=function(e,t){return e?(Object.keys(t||{}).forEach((function(n){t[n]&&(e[n]=ue(e[n]||{},t[n]))})),e):t}(e.global,t.global),delete t.global),this.$handle.$manager.mergeOptions([t],e),e},updateOptions:function(e){this.mergeOptions(this.options,e),this.$handle.$manager.updateOptions(this.options)},created:function(){this.$handle.init(),this.vm.$emit("created",this.api())},api:function(){return this.$handle.api},render:function(){return this.$handle.render()},mounted:function(){this.$handle.mounted()}}),P(D),R(D,{create:D,install:function(e,t){if(h=d(d({},h),t||{}),!0!==e._installedFormCreate){e._installedFormCreate=!0,Je=e;var n=function(e){return D(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},this)};P(n),e.prototype.$formCreate=n,e.component("FormCreate",O()),e.component("FcFragment",L())}}}),p.use({fragment:"fcFragment"}),_(Ze),e.install&&D.use(e),e.inherit){var N=e.inherit;N.components&&R(o,N.components),N.parsers&&R(a,N.parsers),N.directives&&R(s,N.directives),N.providers&&R(l,N.providers),N.maker&&R(c,N.maker),N.loadData&&R(f,N.loadData)}return D}var ot={date:"yyyy-MM-dd",month:"yyyy-MM",datetime:"yyyy-MM-dd HH:mm:ss",timerange:"HH:mm:ss",daterange:"yyyy-MM-dd",monthrange:"yyyy-MM",datetimerange:"yyyy-MM-dd HH:mm:ss",year:"yyyy"},at={name:"datePicker",maker:["year","month","date","dates","week","datetime","datetimeRange","dateRange","monthRange"].reduce((function(e,t){return e[t]=ge("datePicker",{type:t.toLowerCase()}),e}),{}),mergeProp:function(e){var t=e.prop.props;t.valueFormat||(t.valueFormat=ot[t.type]||ot.date)}},st={name:"hidden",maker:u({},"hidden",(function(e,t){return ge("hidden")("",e,t)})),render:function(){return[]}},lt=[at,st,{name:"input",maker:function(){var e=["password","url","email","text","textarea"].reduce((function(e,t){return e[t]=ge("input",{type:t}),e}),{});return e.idate=ge("input",{type:"date"}),e}(),mergeProp:function(e){var t=e.prop.props;t&&t.autosize&&t.autosize.minRows&&(t.rows=t.autosize.minRows||2)}},{name:"slider",maker:{sliderRange:ge("slider",{range:!0})},toFormValue:function(e,t){var n=Array.isArray(e),r=t.prop.props,i=r.min||0;return!0===r.range?n?e:[i,parseFloat(e)||i]:n?parseFloat(e[0])||i:parseFloat(e)}},{name:"timePicker",maker:{time:ge("timePicker",(function(e){return e.props.isRange=!1})),timeRange:ge("timePicker",(function(e){return e.props.isRange=!0}))},mergeProp:function(e){var t=e.prop.props;t.valueFormat||(t.valueFormat="HH:mm:ss")}},{name:"FcRow",render:function(e,t){return t.vNode.col({props:{span:24}},[t.vNode.row(t.prop,e)])}},{name:"select",toFormValue:function(e,t){return t.prop.props.multiple&&!Array.isArray(e)?_(e):e}}],ut={button:"elButton",icon:"i",slider:"elSlider",rate:"elRate",upload:"fcUpload",cascader:"elCascader",popover:"elPopover",tooltip:"elTooltip",colorPicker:"elColorPicker",timePicker:"elTimePicker",timeSelect:"elTimeSelect",datePicker:"elDatePicker",switch:"elSwitch",select:"fcSelect",checkbox:"fcCheckbox",radio:"fcRadio",inputNumber:"elInputNumber",number:"elInputNumber",input:"elInput",formItem:"elFormItem",form:"elForm",frame:"fcFrame",col:"elCol",row:"elRow",tree:"fcTree",autoComplete:"elAutocomplete",auto:"elAutocomplete",group:"fcGroup",object:"fcSubForm",subForm:"fcSubForm"},ct=/[A-Z]/;function dt(e,t){var n;S(e,t)&&M.String(e[t])&&(e[t]=(u(n={},t,e[t]),u(n,"show",!0),n))}function ht(e){return!1===e}var ft={validate:function(){var e=this.form();return e?e.validate():new Promise((function(e){return e()}))},validateField:function(e){var t=this.form();return new Promise(t?function(n,r){t.validateField(e,(function(e){e?r(e):n(null)}))}:function(e){return e()})},clearValidateState:function(e){var t=this.vm.$refs[e.wrapRef];t&&(t.validateMessage="",t.validateState="")},tidyOptions:function(e){return["submitBtn","resetBtn","row","info","wrap","col","title"].forEach((function(t){!function(e,t){S(e,t)&&!M.Object(e[t])&&(e[t]={show:!!e[t]})}(e,t)})),e},tidyRule:function(e){var t=e.prop;return dt(t,"title"),dt(t,"info"),t},mergeProp:function(e){var t=e.prop.props;e.prop=W([{attrs:Object.keys(t).reduce((function(e,n){var r,i;return r=n,i=t[n],ct.test(r)||!M.String(i)&&!M.Number(i)||(e[n]=t[n]),e}),{}),info:this.options.info||{},wrap:this.options.wrap||{},col:this.options.col||{},title:this.options.title||{}},e.prop],{info:{trigger:"hover",placement:"top-start",icon:"el-icon-warning"},title:{},col:{span:24},wrap:{}},{normal:["title","info","col","wrap"]})},getDefaultOptions:function(){return{form:{inline:!1,labelPosition:"right",labelWidth:"125px",disabled:!1,size:void 0},row:{show:!0,gutter:0},submitBtn:{type:"primary",loading:!1,disabled:!1,innerText:"提交",show:!0,col:void 0,click:void 0},resetBtn:{type:"default",loading:!1,disabled:!1,icon:"el-icon-refresh",innerText:"重置",show:!1,col:void 0,click:void 0}}},update:function(){var e=this.options.form;this.rule={props:d({},e),nativeOn:{submit:function(e){e.preventDefault()}},class:[e.className,e.class,"form-create"],style:e.style,type:"form"}},beforeRender:function(){var e=this.key,t=this.ref,n=this.$handle;R(this.rule,{key:e,ref:t}),R(this.rule.props,{model:n.formData})},render:function(e){return e.length&&e.push(this.makeFormBtn()),this.$r(this.rule,ht(this.options.row.show)?e:[this.makeRow(e)])},makeWrap:function(e,t){var n=e.prop,r="".concat(this.key).concat(e.key),i=n.col,o=this.isTitle(n),a=i.labelWidth||o?i.labelWidth:0,s=this.rule.props,l=s.inline,u=s.col,c=ht(n.wrap.show)?t:this.$r(W([n.wrap,{props:d(d({labelWidth:void 0===a?a:Le(a),label:o?n.title.title:void 0},n.wrap||{}),{},{prop:e.id,rules:e.injectValidate()}),class:n.className,key:"".concat(r,"fi"),ref:e.wrapRef,type:"formItem"}]),[t,o?this.makeInfo(n,r,e):null]);return!0===l||ht(u)||ht(i.show)?c:this.makeCol(n,r,[c])},isTitle:function(e){if(!1===this.options.form.title)return!1;var t=e.title;return!(!t.title&&!t.native||ht(t.show))},makeInfo:function(e,t,n){var r=e.title,i=e.info,o="tooltip"===i.type,a=this.options.form,s=this.getSlot("title"),l=[s?s({title:r.title||"",rule:n.rule,options:this.options}):(r.title||"")+(a.labelSuffix||a["label-suffix"]||"")];if(!ht(i.show)&&(i.info||i.native)&&!ht(i.icon)){var u={type:i.type||"popover",props:d({},i),key:"".concat(t,"pop"),slot:"label"};i.info&&!S(u.props,"content")&&(u.props.content=i.info),l["left"!==i.align?"unshift":"push"](this.$r(W([i,u]),[this.$r({type:"i",slot:o?"default":"reference",class:!0===i.icon?"el-icon-warning":i.icon,key:"".concat(t,"i")})]))}return this.$r(W([r,{props:r,slot:r.slot||"label",key:"".concat(t,"tit"),type:r.type||"span"}]),l)},makeCol:function(e,t,n){var r=e.col;return this.$r({class:r.class,type:"col",props:r||{span:24},key:"".concat(t,"col")},n)},makeRow:function(e){var t=this.options.row||{};return this.$r({type:"row",props:t,class:t.class,key:"".concat(this.key,"row")},e)},makeFormBtn:function(){var e=[];if(ht(this.options.submitBtn.show)||e.push(this.makeSubmitBtn()),ht(this.options.resetBtn.show)||e.push(this.makeResetBtn()),e.length){var t=this.$r({type:"formItem",key:"".concat(this.key,"fb")},e);return!0===this.rule.props.inline?t:this.$r({type:"col",props:{span:24},key:"".concat(this.key,"fc")},[t])}},makeResetBtn:function(){var e=this,t=this.options.resetBtn;return this.$r({type:"button",props:t,style:{width:t.width},on:{click:function(){var n=e.$handle.api;t.click?t.click(n):n.resetFields()}},key:"".concat(this.key,"b2")},[t.innerText])},makeSubmitBtn:function(){var e=this,t=this.options.submitBtn;return this.$r({type:"button",props:t,style:{width:t.width},on:{click:function(){var n=e.$handle.api;t.click?t.click(n):n.submit()}},key:"".concat(this.key,"b1")},[t.innerText])}},pt={};function mt(e,t){return M.Boolean(e)?e={show:e}:M.Undef(e)||M.Object(e)||(e={show:t}),e}function gt(e,t){return R(e,{formEl:function(){return t.$manager.form()},wrapEl:function(e){var n=t.getFieldCtx(e);if(n)return t.vm.$refs[n.wrapRef]},validate:function(n){return new Promise((function(r,i){var o=e.children,a=[t.$manager.validate()];o.forEach((function(e){a.push(e.validate())})),Promise.all(a).then((function(){r(!0),n&&n(!0)})).catch((function(r){i(r),n&&n(!1,r),t.vm.$emit("validate-fail",r,{api:e})}))}))},validateField:function(n,r){return new Promise((function(i,o){var a=t.getFieldCtx(n);if(a){var s=t.subForm[a.id],l=[t.$manager.validateField(a.id)];_(s).forEach((function(e){l.push(e.validate().catch((function(){return Promise.reject("子表单验证未通过")})))})),Promise.all(l).then((function(){i(null),r&&r(null)})).catch((function(i){o(i),r&&r(i),t.vm.$emit("validate-field-fail",i,{field:n,api:e})}))}}))},clearValidateState:function(n){var r=this,i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e.helper.tidyFields(n).forEach((function(e){i&&r.clearSubValidateState(e),t.getCtxs(e).forEach((function(e){t.$manager.clearValidateState(e)}))}))},clearSubValidateState:function(n){e.helper.tidyFields(n).forEach((function(e){t.getCtxs(e).forEach((function(e){var n=t.subForm[e.id];n&&(Array.isArray(n)?n.forEach((function(e){e.clearValidateState()})):n&&n.clearValidateState())}))}))},btn:{loading:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];e.submitBtnProps({loading:!!t})},disabled:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];e.submitBtnProps({disabled:!!t})},show:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];e.submitBtnProps({show:!!t})}},resetBtn:{loading:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];e.resetBtnProps({loading:!!t})},disabled:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];e.resetBtnProps({disabled:!!t})},show:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];e.resetBtnProps({show:!!t})}},submitBtnProps:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=mt(t.options.submitBtn,!0);R(r,n),t.options.submitBtn=r,e.refreshOptions()},resetBtnProps:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=mt(t.options.resetBtn,!1);R(r,n),t.options.resetBtn=r,e.refreshOptions()},submit:function(n,r){var i=arguments,o=this;e.validate((function(a){if(a){var s=e.formData();M.Function(n)?fe((function(){return n(s,o)})):(M.Function(t.options.onSubmit)&&fe((function(){return t.options.onSubmit(s,o)})),t.vm.$emit("submit",s,o))}else M.Function(r)&&fe((function(){return r.apply(void 0,[o].concat(g(i)))}))}))}}),e}function vt(e){e.componentAlias(ut),N.forEach((function(t){e.component(t.name,t)})),lt.forEach((function(t){e.parser(t)})),Object.keys(pt).forEach((function(t){e.maker[t]=pt[t]}))}!function(e){["group","tree","switch","upload","autoComplete","checkbox","cascader","colorPicker","datePicker","frame","inputNumber","radio","rate"].forEach((function(t){e[t]=ge(t)})),e.auto=e.autoComplete,e.number=e.inputNumber,e.color=e.colorPicker}(pt),function(e){e.selectMultiple=ge("select",u({},"multiple",!0)),e.selectOne=ge("select",u({},"multiple",!1))}(pt),function(e){var t={treeSelected:"selected",treeChecked:"checked"};Object.keys(t).reduce((function(e,n){return e[n]=ge("tree",{type:t[n]}),e}),e)}(pt),function(e){var t={image:["image",0],file:["file",0],uploadFileOne:["file",1],uploadImageOne:["image",1]};Object.keys(t).reduce((function(e,n){return e[n]=ge("upload",(function(e){return e.props({uploadType:t[n][0],maxLength:t[n][1]})})),e}),e),e.uploadImage=e.image,e.uploadFile=e.file}(pt),function(e){var t={frameInputs:["input",0],frameFiles:["file",0],frameImages:["image",0],frameInputOne:["input",1],frameFileOne:["file",1],frameImageOne:["image",1]};Object.keys(t).reduce((function(e,n){return e[n]=ge("frame",(function(e){return e.props({type:t[n][0],maxLength:t[n][1]})})),e}),e),e.frameInput=e.frameInputs,e.frameFile=e.frameFiles,e.frameImage=e.frameImages}(pt),w(".form-create .form-create .el-form-item {\n margin-bottom: 22px;\n}\n\n.form-create .form-create .el-form-item .el-form-item {\n margin-bottom: 0px;\n}\n");var yt=it({ui:"".concat("element-ui"),version:"".concat("2.5.37"),manager:ft,extendApi:gt,install:vt,attrs:{normal:["col","wrap"],array:["className"],key:["title","info"]}});"undefined"!=typeof window&&(window.formCreate=yt,window.Vue&&yt.install(window.Vue));var bt=yt.maker;e.default=yt,e.maker=bt,Object.defineProperty(e,"__esModule",{value:!0})}))},"30f1":function(e,t,n){"use strict";var r=n("b8e3"),i=n("63b6"),o=n("9138"),a=n("35e8"),s=n("481b"),l=n("8f60"),u=n("45f2"),c=n("53e2"),d=n("5168")("iterator"),h=!([].keys&&"next"in[].keys()),f="@@iterator",p="keys",m="values",g=function(){return this};e.exports=function(e,t,n,v,y,b,_){l(n,t,v);var w,x,k,M=function(e){if(!h&&e in O)return O[e];switch(e){case p:return function(){return new n(this,e)};case m:return function(){return new n(this,e)}}return function(){return new n(this,e)}},S=t+" Iterator",C=y==m,T=!1,O=e.prototype,L=O[d]||O[f]||y&&O[y],A=L||M(y),D=y?C?M("entries"):A:void 0,E="Array"==t&&O.entries||L;if(E&&(k=c(E.call(new e)),k!==Object.prototype&&k.next&&(u(k,S,!0),r||"function"==typeof k[d]||a(k,d,g))),C&&L&&L.name!==m&&(T=!0,A=function(){return L.call(this)}),r&&!_||!h&&!T&&O[d]||a(O,d,A),s[t]=A,s[S]=g,y)if(w={values:C?A:M(m),keys:b?A:M(p),entries:D},_)for(x in w)x in O||o(O,x,w[x]);else i(i.P+i.F*(h||T),t,w);return w}},"313e":function(e,t,n){"use strict";var r={};n.r(r),n.d(r,"updateProps",(function(){return Wl})),n.d(r,"initProps",(function(){return Ul})),n.d(r,"removeElement",(function(){return Gl})),n.d(r,"removeElementWithFadeOut",(function(){return Xl})),n.d(r,"isElementRemoved",(function(){return $l})),n.d(r,"extendShape",(function(){return dg})),n.d(r,"extendPath",(function(){return fg})),n.d(r,"registerShape",(function(){return pg})),n.d(r,"getShapeClass",(function(){return mg})),n.d(r,"makePath",(function(){return gg})),n.d(r,"makeImage",(function(){return vg})),n.d(r,"mergePath",(function(){return bg})),n.d(r,"resizePath",(function(){return _g})),n.d(r,"subPixelOptimizeLine",(function(){return wg})),n.d(r,"subPixelOptimizeRect",(function(){return xg})),n.d(r,"subPixelOptimize",(function(){return kg})),n.d(r,"getTransform",(function(){return Mg})),n.d(r,"applyTransform",(function(){return Sg})),n.d(r,"transformDirection",(function(){return Cg})),n.d(r,"groupTransition",(function(){return Lg})),n.d(r,"clipPointsByRect",(function(){return Ag})),n.d(r,"clipRectByRect",(function(){return Dg})),n.d(r,"createIcon",(function(){return Eg})),n.d(r,"linePolygonIntersect",(function(){return Ig})),n.d(r,"lineLineIntersect",(function(){return jg})),n.d(r,"setTooltipConfig",(function(){return Ng})),n.d(r,"traverseElements",(function(){return Yg})),n.d(r,"Group",(function(){return kr})),n.d(r,"Image",(function(){return Qa})),n.d(r,"Text",(function(){return Cs})),n.d(r,"Circle",(function(){return em})),n.d(r,"Ellipse",(function(){return rm})),n.d(r,"Sector",(function(){return wm})),n.d(r,"Ring",(function(){return Mm})),n.d(r,"Polygon",(function(){return Lm})),n.d(r,"Polyline",(function(){return Em})),n.d(r,"Rect",(function(){return ls})),n.d(r,"Line",(function(){return Rm})),n.d(r,"BezierCurve",(function(){return zm})),n.d(r,"Arc",(function(){return Wm})),n.d(r,"IncrementalDisplayable",(function(){return sg})),n.d(r,"CompoundPath",(function(){return $m})),n.d(r,"LinearGradient",(function(){return Km})),n.d(r,"RadialGradient",(function(){return Jm})),n.d(r,"BoundingRect",(function(){return Oe})),n.d(r,"OrientedBoundingRect",(function(){return ig})),n.d(r,"Point",(function(){return ye})),n.d(r,"Path",(function(){return Ua}));var i={};n.r(i),n.d(i,"extendShape",(function(){return dg})),n.d(i,"extendPath",(function(){return fg})),n.d(i,"makePath",(function(){return gg})),n.d(i,"makeImage",(function(){return vg})),n.d(i,"mergePath",(function(){return bg})),n.d(i,"resizePath",(function(){return _g})),n.d(i,"createIcon",(function(){return Eg})),n.d(i,"updateProps",(function(){return Wl})),n.d(i,"initProps",(function(){return Ul})),n.d(i,"getTransform",(function(){return Mg})),n.d(i,"clipPointsByRect",(function(){return Ag})),n.d(i,"clipRectByRect",(function(){return Dg})),n.d(i,"registerShape",(function(){return pg})),n.d(i,"getShapeClass",(function(){return mg})),n.d(i,"Group",(function(){return kr})),n.d(i,"Image",(function(){return Qa})),n.d(i,"Text",(function(){return Cs})),n.d(i,"Circle",(function(){return em})),n.d(i,"Ellipse",(function(){return rm})),n.d(i,"Sector",(function(){return wm})),n.d(i,"Ring",(function(){return Mm})),n.d(i,"Polygon",(function(){return Lm})),n.d(i,"Polyline",(function(){return Em})),n.d(i,"Rect",(function(){return ls})),n.d(i,"Line",(function(){return Rm})),n.d(i,"BezierCurve",(function(){return zm})),n.d(i,"Arc",(function(){return Wm})),n.d(i,"IncrementalDisplayable",(function(){return sg})),n.d(i,"CompoundPath",(function(){return $m})),n.d(i,"LinearGradient",(function(){return Km})),n.d(i,"RadialGradient",(function(){return Jm})),n.d(i,"BoundingRect",(function(){return Oe})); /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */ var o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)};function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}Object.create;Object.create;var s=n("22d1"),l=n("6d8b");function u(e,t){return null==e&&(e=0),null==t&&(t=0),[e,t]}function c(e,t){return e[0]=t[0],e[1]=t[1],e}function d(e){return[e[0],e[1]]}function h(e,t,n){return e[0]=t,e[1]=n,e}function f(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function p(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e}function m(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function g(e){return Math.sqrt(v(e))}function v(e){return e[0]*e[0]+e[1]*e[1]}function y(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function b(e,t){var n=g(t);return 0===n?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function _(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var w=_;function x(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var k=x;function M(e,t,n,r){return e[0]=t[0]+r*(n[0]-t[0]),e[1]=t[1]+r*(n[1]-t[1]),e}function S(e,t,n){var r=t[0],i=t[1];return e[0]=n[0]*r+n[2]*i+n[4],e[1]=n[1]*r+n[3]*i+n[5],e}function C(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function T(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}var O=function(){function e(e,t){this.target=e,this.topTarget=t&&t.topTarget}return e}(),L=function(){function e(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return e.prototype._dragStart=function(e){var t=e.target;while(t&&!t.draggable)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new O(t,e),"dragstart",e.event))},e.prototype._drag=function(e){var t=this._draggingTarget;if(t){var n=e.offsetX,r=e.offsetY,i=n-this._x,o=r-this._y;this._x=n,this._y=r,t.drift(i,o,e),this.handler.dispatchToElement(new O(t,e),"drag",e.event);var a=this.handler.findHover(n,r,t).target,s=this._dropTarget;this._dropTarget=a,t!==a&&(s&&a!==s&&this.handler.dispatchToElement(new O(s,e),"dragleave",e.event),a&&a!==s&&this.handler.dispatchToElement(new O(a,e),"dragenter",e.event))}},e.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new O(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new O(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},e}(),A=L,D=function(){function e(e){e&&(this._$eventProcessor=e)}return e.prototype.on=function(e,t,n,r){this._$handlers||(this._$handlers={});var i=this._$handlers;if("function"===typeof t&&(r=n,n=t,t=null),!n||!e)return this;var o=this._$eventProcessor;null!=t&&o&&o.normalizeQuery&&(t=o.normalizeQuery(t)),i[e]||(i[e]=[]);for(var a=0;a>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[l]+":0",i[u]+":0",r[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),e.appendChild(a),n.push(a)}return n}function z(e,t,n){for(var r=n?"invTrans":"trans",i=t[r],o=t.srcCoords,a=[],s=[],l=!0,u=0;u<4;u++){var c=e[u].getBoundingClientRect(),d=2*u,h=c.left,f=c.top;a.push(h,f),l=l&&o&&h===o[d]&&f===o[d+1],s.push(e[u].offsetLeft,e[u].offsetTop)}return l&&i?i:(t.srcCoords=a,t[r]=n?P(s,a):P(a,s))}function H(e){return"CANVAS"===e.nodeName.toUpperCase()}var V=/([&<>"'])/g,W={"&":"&","<":"<",">":">",'"':""","'":"'"};function U(e){return null==e?"":(e+"").replace(V,(function(e,t){return W[t]}))}var $=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,G=[],q=s["a"].browser.firefox&&+s["a"].browser.version.split(".")[0]<39;function X(e,t,n,r){return n=n||{},r?K(e,t,n):q&&null!=t.layerX&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):null!=t.offsetX?(n.zrX=t.offsetX,n.zrY=t.offsetY):K(e,t,n),n}function K(e,t,n){if(s["a"].domSupported&&e.getBoundingClientRect){var r=t.clientX,i=t.clientY;if(H(e)){var o=e.getBoundingClientRect();return n.zrX=r-o.left,void(n.zrY=i-o.top)}if(Y(G,e,r,i))return n.zrX=G[0],void(n.zrY=G[1])}n.zrX=n.zrY=0}function Z(e){return e||window.event}function J(e,t,n){if(t=Z(t),null!=t.zrX)return t;var r=t.type,i=r&&r.indexOf("touch")>=0;if(i){var o="touchend"!==r?t.targetTouches[0]:t.changedTouches[0];o&&X(e,o,t,n)}else{X(e,t,t,n);var a=Q(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return null==t.which&&void 0!==s&&$.test(t.type)&&(t.which=1&s?1:2&s?3:4&s?2:0),t}function Q(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,r=e.deltaY;if(null==n||null==r)return t;var i=0!==r?Math.abs(r):Math.abs(n),o=r>0?-1:r<0?1:n>0?-1:1;return 3*i*o}function ee(e,t,n,r){e.addEventListener(t,n,r)}function te(e,t,n,r){e.removeEventListener(t,n,r)}var ne=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function re(e){return 2===e.which||3===e.which}var ie=function(){function e(){this._track=[]}return e.prototype.recognize=function(e,t,n){return this._doTrack(e,t,n),this._recognize(e)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(e,t,n){var r=e.touches;if(r){for(var i={points:[],touches:[],target:t,event:e},o=0,a=r.length;o1&&r&&r.length>1){var o=oe(r)/oe(i);!isFinite(o)&&(o=1),t.pinchScale=o;var a=ae(r);return t.pinchX=a[0],t.pinchY=a[1],{type:"pinch",target:e[0].target,event:t}}}}};function le(){return[1,0,0,1,0,0]}function ue(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function ce(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function de(e,t,n){var r=t[0]*n[0]+t[2]*n[1],i=t[1]*n[0]+t[3]*n[1],o=t[0]*n[2]+t[2]*n[3],a=t[1]*n[2]+t[3]*n[3],s=t[0]*n[4]+t[2]*n[5]+t[4],l=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=r,e[1]=i,e[2]=o,e[3]=a,e[4]=s,e[5]=l,e}function he(e,t,n){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+n[0],e[5]=t[5]+n[1],e}function fe(e,t,n,r){void 0===r&&(r=[0,0]);var i=t[0],o=t[2],a=t[4],s=t[1],l=t[3],u=t[5],c=Math.sin(n),d=Math.cos(n);return e[0]=i*d+s*c,e[1]=-i*c+s*d,e[2]=o*d+l*c,e[3]=-o*c+d*l,e[4]=d*(a-r[0])+c*(u-r[1])+r[0],e[5]=d*(u-r[1])-c*(a-r[0])+r[1],e}function pe(e,t,n){var r=n[0],i=n[1];return e[0]=t[0]*r,e[1]=t[1]*i,e[2]=t[2]*r,e[3]=t[3]*i,e[4]=t[4]*r,e[5]=t[5]*i,e}function me(e,t){var n=t[0],r=t[2],i=t[4],o=t[1],a=t[3],s=t[5],l=n*a-o*r;return l?(l=1/l,e[0]=a*l,e[1]=-o*l,e[2]=-r*l,e[3]=n*l,e[4]=(r*s-a*i)*l,e[5]=(o*i-n*s)*l,e):null}function ge(e){var t=le();return ce(t,e),t}var ve=function(){function e(e,t){this.x=e||0,this.y=t||0}return e.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(e,t){return this.x=e,this.y=t,this},e.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},e.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},e.prototype.scale=function(e){this.x*=e,this.y*=e},e.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},e.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},e.prototype.dot=function(e){return this.x*e.x+this.y*e.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},e.prototype.distance=function(e){var t=this.x-e.x,n=this.y-e.y;return Math.sqrt(t*t+n*n)},e.prototype.distanceSquare=function(e){var t=this.x-e.x,n=this.y-e.y;return t*t+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(e){if(e){var t=this.x,n=this.y;return this.x=e[0]*t+e[2]*n+e[4],this.y=e[1]*t+e[3]*n+e[5],this}},e.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},e.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},e.set=function(e,t,n){e.x=t,e.y=n},e.copy=function(e,t){e.x=t.x,e.y=t.y},e.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},e.lenSquare=function(e){return e.x*e.x+e.y*e.y},e.dot=function(e,t){return e.x*t.x+e.y*t.y},e.add=function(e,t,n){e.x=t.x+n.x,e.y=t.y+n.y},e.sub=function(e,t,n){e.x=t.x-n.x,e.y=t.y-n.y},e.scale=function(e,t,n){e.x=t.x*n,e.y=t.y*n},e.scaleAndAdd=function(e,t,n,r){e.x=t.x+n.x*r,e.y=t.y+n.y*r},e.lerp=function(e,t,n,r){var i=1-r;e.x=i*t.x+r*n.x,e.y=i*t.y+r*n.y},e}(),ye=ve,be=Math.min,_e=Math.max,we=new ye,xe=new ye,ke=new ye,Me=new ye,Se=new ye,Ce=new ye,Te=function(){function e(e,t,n,r){n<0&&(e+=n,n=-n),r<0&&(t+=r,r=-r),this.x=e,this.y=t,this.width=n,this.height=r}return e.prototype.union=function(e){var t=be(e.x,this.x),n=be(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=_e(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=_e(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=t,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(e){var t=this,n=e.width/t.width,r=e.height/t.height,i=le();return he(i,i,[-t.x,-t.y]),pe(i,i,[n,r]),he(i,i,[e.x,e.y]),i},e.prototype.intersect=function(t,n){if(!t)return!1;t instanceof e||(t=e.create(t));var r=this,i=r.x,o=r.x+r.width,a=r.y,s=r.y+r.height,l=t.x,u=t.x+t.width,c=t.y,d=t.y+t.height,h=!(op&&(p=b,mp&&(p=_,v=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return 0===this.width||0===this.height},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},e.applyTransform=function(t,n,r){if(r){if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var i=r[0],o=r[3],a=r[4],s=r[5];return t.x=n.x*i+a,t.y=n.y*o+s,t.width=n.width*i,t.height=n.height*o,t.width<0&&(t.x+=t.width,t.width=-t.width),void(t.height<0&&(t.y+=t.height,t.height=-t.height))}we.x=ke.x=n.x,we.y=Me.y=n.y,xe.x=Me.x=n.x+n.width,xe.y=ke.y=n.y+n.height,we.transform(r),Me.transform(r),xe.transform(r),ke.transform(r),t.x=be(we.x,xe.x,ke.x,Me.x),t.y=be(we.y,xe.y,ke.y,Me.y);var l=_e(we.x,xe.x,ke.x,Me.x),u=_e(we.y,xe.y,ke.y,Me.y);t.width=l-t.x,t.height=u-t.y}else t!==n&&e.copy(t,n)},e}(),Oe=Te,Le="silent";function Ae(e,t,n){return{type:e,event:n,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:De}}function De(){ne(this.event)}var Ee=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handler=null,t}return a(t,e),t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(E),Ie=function(){function e(e,t){this.x=e,this.y=t}return e}(),je=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Pe=new Oe(0,0,0,0),Re=function(e){function t(t,n,r,i,o){var a=e.call(this)||this;return a._hovered=new Ie(0,0),a.storage=t,a.painter=n,a.painterRoot=i,a._pointerSize=o,r=r||new Ee,a.proxy=null,a.setHandlerProxy(r),a._draggingMgr=new A(a),a}return a(t,e),t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(l["k"](je,(function(t){e.on&&e.on(t,this[t],this)}),this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var t=e.zrX,n=e.zrY,r=Ye(this,t,n),i=this._hovered,o=i.target;o&&!o.__zr&&(i=this.findHover(i.x,i.y),o=i.target);var a=this._hovered=r?new Ie(t,n):this.findHover(t,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(i,"mouseout",e),this.dispatchToElement(a,"mousemove",e),s&&s!==o&&this.dispatchToElement(a,"mouseover",e)},t.prototype.mouseout=function(e){var t=e.zrEventControl;"only_globalout"!==t&&this.dispatchToElement(this._hovered,"mouseout",e),"no_globalout"!==t&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new Ie(0,0)},t.prototype.dispatch=function(e,t){var n=this[e];n&&n.call(this,t)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var t=this.proxy;t.setCursor&&t.setCursor(e)},t.prototype.dispatchToElement=function(e,t,n){e=e||{};var r=e.target;if(!r||!r.silent){var i="on"+t,o=Ae(t,e,n);while(r)if(r[i]&&(o.cancelBubble=!!r[i].call(r,o)),r.trigger(t,o),r=r.__hostTarget?r.__hostTarget:r.parent,o.cancelBubble)break;o.cancelBubble||(this.trigger(t,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer((function(e){"function"===typeof e[i]&&e[i].call(e,o),e.trigger&&e.trigger(t,o)})))}},t.prototype.findHover=function(e,t,n){var r=this.storage.getDisplayList(),i=new Ie(e,t);if(Be(r,i,e,t,n),this._pointerSize&&!i.target){for(var o=[],a=this._pointerSize,s=a/2,l=new Oe(e-s,t-s,a,a),u=r.length-1;u>=0;u--){var c=r[u];c===n||c.ignore||c.ignoreCoarsePointer||c.parent&&c.parent.ignoreCoarsePointer||(Pe.copy(c.getBoundingRect()),c.transform&&Pe.applyTransform(c.transform),Pe.intersect(l)&&o.push(c))}if(o.length)for(var d=4,h=Math.PI/12,f=2*Math.PI,p=0;p=0;o--){var a=e[o],s=void 0;if(a!==i&&!a.ignore&&(s=Ne(a,n,r))&&(!t.topTarget&&(t.topTarget=a),s!==Le)){t.target=a;break}}}function Ye(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}l["k"](["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(e){Re.prototype[e]=function(t){var n,r,i=t.zrX,o=t.zrY,a=Ye(this,i,o);if("mouseup"===e&&a||(n=this.findHover(i,o),r=n.target),"mousedown"===e)this._downEl=r,this._downPoint=[t.zrX,t.zrY],this._upEl=r;else if("mouseup"===e)this._upEl=r;else if("click"===e){if(this._downEl!==this._upEl||!this._downPoint||w(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,e,t)}}));var Fe=Re,ze=32,He=7;function Ve(e){var t=0;while(e>=ze)t|=1&e,e>>=1;return e+t}function We(e,t,n,r){var i=t+1;if(i===n)return 1;if(r(e[i++],e[t])<0){while(i=0)i++;return i-t}function Ue(e,t,n){n--;while(t>>1,i(a,e[o])<0?l=o:s=o+1;var u=r-s;switch(u){case 3:e[s+3]=e[s+2];case 2:e[s+2]=e[s+1];case 1:e[s+1]=e[s];break;default:while(u>0)e[s+u]=e[s+u-1],u--}e[s]=a}}function Ge(e,t,n,r,i,o){var a=0,s=0,l=1;if(o(e,t[n+i])>0){s=r-i;while(l0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}else{s=i+1;while(ls&&(l=s);var u=a;a=i-l,l=i-u}a++;while(a>>1);o(e,t[n+c])>0?a=c+1:l=c}return l}function qe(e,t,n,r,i,o){var a=0,s=0,l=1;if(o(e,t[n+i])<0){s=i+1;while(ls&&(l=s);var u=a;a=i-l,l=i-u}else{s=r-i;while(l=0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}a++;while(a>>1);o(e,t[n+c])<0?l=c:a=c+1}return l}function Xe(e,t){var n,r,i=He,o=0,a=[];function s(e,t){n[o]=e,r[o]=t,o+=1}function l(){while(o>1){var e=o-2;if(e>=1&&r[e-1]<=r[e]+r[e+1]||e>=2&&r[e-2]<=r[e]+r[e-1])r[e-1]r[e+1])break;c(e)}}function u(){while(o>1){var e=o-2;e>0&&r[e-1]=He||f>=He);if(p)break;m<0&&(m=0),m+=2}if(i=m,i<1&&(i=1),1===r){for(l=0;l=0;l--)e[f+l]=e[h+l];if(0===r){v=!0;break}}if(e[d--]=a[c--],1===--s){v=!0;break}if(g=s-Ge(e[u],a,0,s,s-1,t),0!==g){for(d-=g,c-=g,s-=g,f=d+1,h=c+1,l=0;l=He||g>=He);if(v)break;p<0&&(p=0),p+=2}if(i=p,i<1&&(i=1),1===s){for(d-=r,u-=r,f=d+1,h=u+1,l=r-1;l>=0;l--)e[f+l]=e[h+l];e[d]=a[c]}else{if(0===s)throw new Error;for(h=d-(s-1),l=0;l=0;l--)e[f+l]=e[h+l];e[d]=a[c]}else for(h=d-(s-1),l=0;ls&&(l=s),$e(e,n,n+l,n+o,t),o=l}a.pushRun(n,o),a.mergeRuns(),i-=o,n+=o}while(0!==i);a.forceMergeRuns()}}var Ze=1,Je=2,Qe=4,et=!1;function tt(){et||(et=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function nt(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var rt,it=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=nt}return e.prototype.traverse=function(e,t){for(var n=0;n0&&(u.__clipPaths=[]),isNaN(u.z)&&(tt(),u.z=0),isNaN(u.z2)&&(tt(),u.z2=0),isNaN(u.zlevel)&&(tt(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var c=e.getDecalElement&&e.getDecalElement();c&&this._updateAndAddDisplayable(c,t,n);var d=e.getTextGuideLine();d&&this._updateAndAddDisplayable(d,t,n);var h=e.getTextContent();h&&this._updateAndAddDisplayable(h,t,n)}},e.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},e.prototype.delRoot=function(e){if(e instanceof Array)for(var t=0,n=e.length;t=0&&this._roots.splice(r,1)}},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}(),ot=it;rt=s["a"].hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};var at=rt,st={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return.5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return 0===e?0:Math.pow(1024,e-1)},exponentialOut:function(e){return 1===e?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return 0===e?0:1===e?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(2-Math.pow(2,-10*(e-1)))},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,n=.1,r=.4;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r))},elasticOut:function(e){var t,n=.1,r=.4;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/r)+1)},elasticInOut:function(e){var t,n=.1,r=.4;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)*-.5:n*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?e*e*((t+1)*e-t)*.5:.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-st.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?.5*st.bounceIn(2*e):.5*st.bounceOut(2*e-1)+.5}},lt=st,ut=Math.pow,ct=Math.sqrt,dt=1e-8,ht=1e-4,ft=ct(3),pt=1/3,mt=u(),gt=u(),vt=u();function yt(e){return e>-dt&&edt||e<-dt}function _t(e,t,n,r,i){var o=1-i;return o*o*(o*e+3*i*t)+i*i*(i*r+3*o*n)}function wt(e,t,n,r,i){var o=1-i;return 3*(((t-e)*o+2*(n-t)*i)*o+(r-n)*i*i)}function xt(e,t,n,r,i,o){var a=r+3*(t-n)-e,s=3*(n-2*t+e),l=3*(t-e),u=e-i,c=s*s-3*a*l,d=s*l-9*a*u,h=l*l-3*s*u,f=0;if(yt(c)&&yt(d))if(yt(s))o[0]=0;else{var p=-l/s;p>=0&&p<=1&&(o[f++]=p)}else{var m=d*d-4*c*h;if(yt(m)){var g=d/c,v=(p=-s/a+g,-g/2);p>=0&&p<=1&&(o[f++]=p),v>=0&&v<=1&&(o[f++]=v)}else if(m>0){var y=ct(m),b=c*s+1.5*a*(-d+y),_=c*s+1.5*a*(-d-y);b=b<0?-ut(-b,pt):ut(b,pt),_=_<0?-ut(-_,pt):ut(_,pt);p=(-s-(b+_))/(3*a);p>=0&&p<=1&&(o[f++]=p)}else{var w=(2*c*s-3*a*d)/(2*ct(c*c*c)),x=Math.acos(w)/3,k=ct(c),M=Math.cos(x),S=(p=(-s-2*k*M)/(3*a),v=(-s+k*(M+ft*Math.sin(x)))/(3*a),(-s+k*(M-ft*Math.sin(x)))/(3*a));p>=0&&p<=1&&(o[f++]=p),v>=0&&v<=1&&(o[f++]=v),S>=0&&S<=1&&(o[f++]=S)}}return f}function kt(e,t,n,r,i){var o=6*n-12*t+6*e,a=9*t+3*r-3*e-9*n,s=3*t-3*e,l=0;if(yt(a)){if(bt(o)){var u=-s/o;u>=0&&u<=1&&(i[l++]=u)}}else{var c=o*o-4*a*s;if(yt(c))i[0]=-o/(2*a);else if(c>0){var d=ct(c),h=(u=(-o+d)/(2*a),(-o-d)/(2*a));u>=0&&u<=1&&(i[l++]=u),h>=0&&h<=1&&(i[l++]=h)}}return l}function Mt(e,t,n,r,i,o){var a=(t-e)*i+e,s=(n-t)*i+t,l=(r-n)*i+n,u=(s-a)*i+a,c=(l-s)*i+s,d=(c-u)*i+u;o[0]=e,o[1]=a,o[2]=u,o[3]=d,o[4]=d,o[5]=c,o[6]=l,o[7]=r}function St(e,t,n,r,i,o,a,s,l,u,c){var d,h,f,p,m,g=.005,v=1/0;mt[0]=l,mt[1]=u;for(var y=0;y<1;y+=.05)gt[0]=_t(e,n,i,a,y),gt[1]=_t(t,r,o,s,y),p=k(mt,gt),p=0&&p=0&&u<=1&&(i[l++]=u)}}else{var c=a*a-4*o*s;if(yt(c)){u=-a/(2*o);u>=0&&u<=1&&(i[l++]=u)}else if(c>0){var d=ct(c),h=(u=(-a+d)/(2*o),(-a-d)/(2*o));u>=0&&u<=1&&(i[l++]=u),h>=0&&h<=1&&(i[l++]=h)}}return l}function At(e,t,n){var r=e+n-2*t;return 0===r?.5:(e-t)/r}function Dt(e,t,n,r,i){var o=(t-e)*r+e,a=(n-t)*r+t,s=(a-o)*r+o;i[0]=e,i[1]=o,i[2]=s,i[3]=s,i[4]=a,i[5]=n}function Et(e,t,n,r,i,o,a,s,l){var u,c=.005,d=1/0;mt[0]=a,mt[1]=s;for(var h=0;h<1;h+=.05){gt[0]=Tt(e,n,i,h),gt[1]=Tt(t,r,o,h);var f=k(mt,gt);f=0&&f=1?1:xt(0,r,o,1,e,s)&&_t(0,i,a,1,s[0])}}}var Rt=function(){function e(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||l["L"],this.ondestroy=e.ondestroy||l["L"],this.onrestart=e.onrestart||l["L"],e.easing&&this.setEasing(e.easing)}return e.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),!this._paused){var n=this._life,r=e-this._startTime-this._pausedTime,i=r/n;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,a=o?o(i):i;if(this.onframe(a),1===i){if(!this.loop)return!0;var s=r%n;this._startTime=e-s,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=t},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(e){this.easing=e,this.easingFunc=Object(l["w"])(e)?e:lt[e]||Pt(e)},e}(),Nt=Rt,Bt=n("41ef"),Yt=n("7a29"),Ft=Array.prototype.slice;function zt(e,t,n){return(t-e)*n+e}function Ht(e,t,n,r){for(var i=t.length,o=0;or?t:e,o=Math.min(n,r),a=i[o-1]||{color:[0,0,0,0],offset:0},s=o;sa;if(s)r.length=a;else for(var l=o;l=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(e,t,n){this._needsSort=!0;var r=this.keyframes,i=r.length,o=!1,a=rn,s=t;if(Object(l["u"])(t)){var u=Kt(t);a=u,(1===u&&!Object(l["z"])(t[0])||2===u&&!Object(l["z"])(t[0][0]))&&(o=!0)}else if(Object(l["z"])(t)&&!Object(l["l"])(t))a=Zt;else if(Object(l["C"])(t))if(isNaN(+t)){var c=Bt["h"](t);c&&(s=c,a=en)}else a=Zt;else if(Object(l["x"])(t)){var d=Object(l["m"])({},s);d.colorStops=Object(l["H"])(t.colorStops,(function(e){return{offset:e.offset,color:Bt["h"](e.color)}})),Object(Yt["m"])(t)?a=tn:Object(Yt["o"])(t)&&(a=nn),s=d}0===i?this.valType=a:a===this.valType&&a!==rn||(o=!0),this.discrete=this.discrete||o;var h={time:e,value:s,rawValue:t,percent:0};return n&&(h.easing=n,h.easingFunc=Object(l["w"])(n)?n:lt[n]||Pt(n)),r.push(h),h},e.prototype.prepare=function(e,t){var n=this.keyframes;this._needsSort&&n.sort((function(e,t){return e.time-t.time}));for(var r=this.valType,i=n.length,o=n[i-1],a=this.discrete,s=an(r),l=on(r),u=0;u=0;n--)if(u[n].percent<=t)break;n=p(n,c-2)}else{for(n=f;nt)break;n=p(n-1,c-2)}i=u[n+1],r=u[n]}if(r&&i){this._lastFr=n,this._lastFrP=t;var g=i.percent-r.percent,v=0===g?1:p((t-r.percent)/g,1);i.easingFunc&&(v=i.easingFunc(v));var y=o?this._additiveValue:h?sn:e[d];if(!an(s)&&!h||y||(y=this._additiveValue=[]),this.discrete)e[d]=v<1?r.rawValue:i.rawValue;else if(an(s))s===Jt?Ht(y,r[a],i[a],v):Vt(y,r[a],i[a],v);else if(on(s)){var b=r[a],_=i[a],w=s===tn;e[d]={type:w?"linear":"radial",x:zt(b.x,_.x,v),y:zt(b.y,_.y,v),colorStops:Object(l["H"])(b.colorStops,(function(e,t){var n=_.colorStops[t];return{offset:zt(e.offset,n.offset,v),color:Xt(Ht([],e.color,n.color,v))}})),global:_.global},w?(e[d].x2=zt(b.x2,_.x2,v),e[d].y2=zt(b.y2,_.y2,v)):e[d].r=zt(b.r,_.r,v)}else if(h)Ht(y,r[a],i[a],v),o||(e[d]=Xt(y));else{var x=zt(r[a],i[a],v);o?this._additiveValue=x:e[d]=x}o&&this._addToTarget(e)}}},e.prototype._addToTarget=function(e){var t=this.valType,n=this.propName,r=this._additiveValue;t===Zt?e[n]=e[n]+r:t===en?(Bt["h"](e[n],sn),Wt(sn,sn,r,1),e[n]=Xt(sn)):t===Jt?Wt(e[n],e[n],r,1):t===Qt&&Ut(e[n],e[n],r,1)},e}(),un=function(){function e(e,t,n,r){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&r?Object(l["G"])("Can' use additive animation on looped animation."):(this._additiveAnimators=r,this._allowDiscrete=n)}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(e){this._target=e},e.prototype.when=function(e,t,n){return this.whenWithKeys(e,t,Object(l["F"])(t),n)},e.prototype.whenWithKeys=function(e,t,n,r){for(var i=this._tracks,o=0;o0&&s.addKeyframe(0,qt(l),r),this._trackKeys.push(a)}s.addKeyframe(e,qt(t[a]),r)}return this._maxTime=Math.max(this._maxTime,e),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,n=0;n0)){this._started=1;for(var t=this,n=[],r=this._maxTime||0,i=0;i1){var a=o.pop();i.addKeyframe(a.time,e[r]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},e}(),cn=un;function dn(){return(new Date).getTime()}var hn=function(e){function t(t){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,t=t||{},n.stage=t.stage||{},n}return a(t,e),t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var t=e.getClip();t&&this.addClip(t)},t.prototype.removeClip=function(e){if(e.animation){var t=e.prev,n=e.next;t?t.next=n:this._head=n,n?n.prev=t:this._tail=t,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var t=e.getClip();t&&this.removeClip(t),e.animation=null},t.prototype.update=function(e){var t=dn()-this._pausedTime,n=t-this._time,r=this._head;while(r){var i=r.next,o=r.step(t,n);o?(r.ondestroy(),this.removeClip(r),r=i):r=i}this._time=t,e||(this.trigger("frame",n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;function t(){e._running&&(at(t),!e._paused&&e.update())}this._running=!0,at(t)},t.prototype.start=function(){this._running||(this._time=dn(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=dn(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=dn()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){var e=this._head;while(e){var t=e.next;e.prev=e.next=e.animation=null,e=t}this._head=this._tail=null},t.prototype.isFinished=function(){return null==this._head},t.prototype.animate=function(e,t){t=t||{},this.start();var n=new cn(e,t.loop);return this.addAnimator(n),n},t}(E),fn=hn,pn=300,mn=s["a"].domSupported,gn=function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},r=l["H"](e,(function(e){var t=e.replace("mouse","pointer");return n.hasOwnProperty(t)?t:e}));return{mouse:e,touch:t,pointer:r}}(),vn={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},yn=!1;function bn(e){var t=e.pointerType;return"pen"===t||"touch"===t}function _n(e){e.touching=!0,null!=e.touchTimer&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout((function(){e.touching=!1,e.touchTimer=null}),700)}function wn(e){e&&(e.zrByTouch=!0)}function xn(e,t){return J(e.dom,new Mn(e,t),!0)}function kn(e,t){var n=t,r=!1;while(n&&9!==n.nodeType&&!(r=n.domBelongToZr||n!==t&&n===e.painterRoot))n=n.parentNode;return r}var Mn=function(){function e(e,t){this.stopPropagation=l["L"],this.stopImmediatePropagation=l["L"],this.preventDefault=l["L"],this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return e}(),Sn={mousedown:function(e){e=J(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=J(this.dom,e);var t=this.__mayPointerCapture;!t||e.zrX===t[0]&&e.zrY===t[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=J(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=J(this.dom,e);var t=e.toElement||e.relatedTarget;kn(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){yn=!0,e=J(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){yn||(e=J(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=J(this.dom,e),wn(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),Sn.mousemove.call(this,e),Sn.mousedown.call(this,e)},touchmove:function(e){e=J(this.dom,e),wn(e),this.handler.processGesture(e,"change"),Sn.mousemove.call(this,e)},touchend:function(e){e=J(this.dom,e),wn(e),this.handler.processGesture(e,"end"),Sn.mouseup.call(this,e),+new Date-+this.__lastTouchMomentzn||e<-zn}var Vn=[],Wn=[],Un=le(),$n=Math.abs,Gn=function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},e.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},e.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},e.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},e.prototype.needLocalTransform=function(){return Hn(this.rotation)||Hn(this.x)||Hn(this.y)||Hn(this.scaleX-1)||Hn(this.scaleY-1)||Hn(this.skewX)||Hn(this.skewY)},e.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;t||e?(n=n||le(),t?this.getLocalTransform(n):Fn(n),e&&(t?de(n,e,n):ce(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&(Fn(n),this.invTransform=null)},e.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(null!=t&&1!==t){this.getGlobalScale(Vn);var n=Vn[0]<0?-1:1,r=Vn[1]<0?-1:1,i=((Vn[0]-n)*t+n)/Vn[0]||0,o=((Vn[1]-r)*t+r)/Vn[1]||0;e[0]*=i,e[1]*=i,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||le(),me(this.invTransform,e)},e.prototype.getComputedTransform=function(){var e=this,t=[];while(e)t.push(e),e=e.parent;while(e=t.pop())e.updateTransform();return this.transform},e.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],r=Math.atan2(e[1],e[0]),i=Math.PI/2+r-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-r,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||le(),de(Wn,e.invTransform,t),t=Wn);var n=this.originX,r=this.originY;(n||r)&&(Un[4]=n,Un[5]=r,de(Wn,t,Un),Wn[4]-=n,Wn[5]-=r,t=Wn),this.setLocalTransform(t)}},e.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},e.prototype.transformCoordToLocal=function(e,t){var n=[e,t],r=this.invTransform;return r&&S(n,n,r),n},e.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],r=this.transform;return r&&S(n,n,r),n},e.prototype.getLineScale=function(){var e=this.transform;return e&&$n(e[0]-1)>1e-10&&$n(e[3]-1)>1e-10?Math.sqrt($n(e[0]*e[3]-e[2]*e[1])):1},e.prototype.copyTransform=function(e){Xn(this,e)},e.getLocalTransform=function(e,t){t=t||[];var n=e.originX||0,r=e.originY||0,i=e.scaleX,o=e.scaleY,a=e.anchorX,s=e.anchorY,l=e.rotation||0,u=e.x,c=e.y,d=e.skewX?Math.tan(e.skewX):0,h=e.skewY?Math.tan(-e.skewY):0;if(n||r||a||s){var f=n+a,p=r+s;t[4]=-f*i-d*p*o,t[5]=-p*o-h*f*i}else t[4]=t[5]=0;return t[0]=i,t[3]=o,t[1]=h*i,t[2]=d*o,l&&fe(t,t,l),t[4]+=n+u,t[5]+=r+c,t},e.initDefaultProps=function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),e}(),qn=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Xn(e,t){for(var n=0;n=0?parseFloat(e)/100*t:parseFloat(e):e}function sr(e,t,n){var r=t.position||"inside",i=null!=t.distance?t.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,u=n.y,c="left",d="top";if(r instanceof Array)l+=ar(r[0],n.width),u+=ar(r[1],n.height),c=null,d=null;else switch(r){case"left":l-=i,u+=s,c="right",d="middle";break;case"right":l+=i+a,u+=s,d="middle";break;case"top":l+=a/2,u-=i,c="center",d="bottom";break;case"bottom":l+=a/2,u+=o+i,c="center";break;case"inside":l+=a/2,u+=s,c="center",d="middle";break;case"insideLeft":l+=i,u+=s,d="middle";break;case"insideRight":l+=a-i,u+=s,c="right",d="middle";break;case"insideTop":l+=a/2,u+=i,c="center";break;case"insideBottom":l+=a/2,u+=o-i,c="center",d="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=a-i,u+=i,c="right";break;case"insideBottomLeft":l+=i,u+=o-i,d="bottom";break;case"insideBottomRight":l+=a-i,u+=o-i,c="right",d="bottom";break}return e=e||{},e.x=l,e.y=u,e.align=c,e.verticalAlign=d,e}var lr="__zr_normal__",ur=qn.concat(["ignore"]),cr=Object(l["N"])(qn,(function(e,t){return e[t]=!0,e}),{ignore:!1}),dr={},hr=new Oe(0,0,0,0),fr=function(){function e(e){this.id=Object(l["p"])(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return e.prototype._init=function(e){this.attr(e)},e.prototype.drift=function(e,t,n){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0;break}var r=this.transform;r||(r=this.transform=[1,0,0,1,0,0]),r[4]+=e,r[5]+=t,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var n=this.textConfig,r=n.local,i=t.innerTransformable,o=void 0,a=void 0,s=!1;i.parent=r?this:null;var l=!1;if(i.copyTransform(t),null!=n.position){var u=hr;n.layoutRect?u.copy(n.layoutRect):u.copy(this.getBoundingRect()),r||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(dr,n,u):sr(dr,n,u),i.x=dr.x,i.y=dr.y,o=dr.align,a=dr.verticalAlign;var c=n.origin;if(c&&null!=n.rotation){var d=void 0,h=void 0;"center"===c?(d=.5*u.width,h=.5*u.height):(d=ar(c[0],u.width),h=ar(c[1],u.height)),l=!0,i.originX=-i.x+d+(r?0:u.x),i.originY=-i.y+h+(r?0:u.y)}}null!=n.rotation&&(i.rotation=n.rotation);var f=n.offset;f&&(i.x+=f[0],i.y+=f[1],l||(i.originX=-f[0],i.originY=-f[1]));var p=null==n.inside?"string"===typeof n.position&&n.position.indexOf("inside")>=0:n.inside,m=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),g=void 0,v=void 0,y=void 0;p&&this.canBeInsideText()?(g=n.insideFill,v=n.insideStroke,null!=g&&"auto"!==g||(g=this.getInsideTextFill()),null!=v&&"auto"!==v||(v=this.getInsideTextStroke(g),y=!0)):(g=n.outsideFill,v=n.outsideStroke,null!=g&&"auto"!==g||(g=this.getOutsideFill()),null!=v&&"auto"!==v||(v=this.getOutsideStroke(g),y=!0)),g=g||"#000",g===m.fill&&v===m.stroke&&y===m.autoStroke&&o===m.align&&a===m.verticalAlign||(s=!0,m.fill=g,m.stroke=v,m.autoStroke=y,m.align=o,m.verticalAlign=a,t.setDefaultTextStyle(m)),t.__dirty|=Ze,s&&t.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(e){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Bn:Nn},e.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n="string"===typeof t&&Object(Bt["h"])(t);n||(n=[255,255,255,1]);for(var r=n[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*r+(i?0:255)*(1-r);return n[3]=1,Object(Bt["i"])(n,"rgba")},e.prototype.traverse=function(e,t){},e.prototype.attrKV=function(e,t){"textConfig"===e?this.setTextConfig(t):"textContent"===e?this.setTextContent(t):"clipPath"===e?this.setClipPath(t):"extra"===e?(this.extra=this.extra||{},Object(l["m"])(this.extra,t)):this[e]=t},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(e,t){if("string"===typeof e)this.attrKV(e,t);else if(Object(l["A"])(e))for(var n=e,r=Object(l["F"])(n),i=0;i0},e.prototype.getState=function(e){return this.states[e]},e.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},e.prototype.clearStates=function(e){this.useState(lr,!1,e)},e.prototype.useState=function(e,t,n,r){var i=e===lr,o=this.hasState();if(o||!i){var a=this.currentStates,s=this.stateTransition;if(!(Object(l["r"])(a,e)>=0)||!t&&1!==a.length){var u;if(this.stateProxy&&!i&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),u||i){i||this.saveCurrentToNormalState(u);var c=!!(u&&u.hoverLayer||r);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,u,this._normalState,t,!n&&!this.__inHover&&s&&s.duration>0,s);var d=this._textContent,h=this._textGuide;return d&&d.useState(e,t,n,c),h&&h.useState(e,t,n,c),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Ze),u}Object(l["G"])("State "+e+" not exists.")}}},e.prototype.useStates=function(e,t,n){if(e.length){var r=[],i=this.currentStates,o=e.length,a=o===i.length;if(a)for(var s=0;s0,f);var p=this._textContent,m=this._textGuide;p&&p.useStates(e,t,d),m&&m.useStates(e,t,d),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Ze)}else this.clearStates()},e.prototype.isSilent=function(){var e=this.silent,t=this.parent;while(!e&&t){if(t.silent){e=!0;break}t=t.parent}return e},e.prototype._updateAnimationTargets=function(){for(var e=0;e=0){var n=this.currentStates.slice();n.splice(t,1),this.useStates(n)}},e.prototype.replaceState=function(e,t,n){var r=this.currentStates.slice(),i=Object(l["r"])(r,e),o=Object(l["r"])(r,t)>=0;i>=0?o?r.splice(i,1):r[i]=t:n&&!o&&r.push(t),this.useStates(r)},e.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},e.prototype._mergeStates=function(e){for(var t,n={},r=0;r=0&&t.splice(n,1)})),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(e){this.markRedraw()},e.prototype.stopAnimation=function(e,t){for(var n=this.animators,r=n.length,i=[],o=0;o0&&n.during&&o[0].during((function(e,t){n.during(t)}));for(var h=0;h0||i.force&&!a.length){var S=void 0,C=void 0,T=void 0;if(s){C={},f&&(S={});for(w=0;w<_;w++){y=g[w];C[y]=n[y],f?S[y]=r[y]:n[y]=r[y]}}else if(f){T={};for(w=0;w<_;w++){y=g[w];T[y]=qt(n[y]),vr(n,r,y)}}x=new cn(n,!1,!1,h?Object(l["n"])(m,(function(e){return e.targetName===t})):null);x.targetName=t,i.scope&&(x.scope=i.scope),f&&S&&x.whenWithKeys(0,S,g),T&&x.whenWithKeys(0,T,g),x.whenWithKeys(null==c?500:c,s?C:r,g).delay(d||0),e.addAnimator(x,t),a.push(x)}}Object(l["K"])(fr,E),Object(l["K"])(fr,Kn);var wr=fr,xr=function(e){function t(t){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(t),n}return a(t,e),t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var t=this._children,n=0;n=0&&(n.splice(r,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,t){var n=l["r"](this._children,e);return n>=0&&this.replaceAt(t,n),this},t.prototype.replaceAt=function(e,t){var n=this._children,r=n[t];if(e&&e!==this&&e.parent!==this&&e!==r){n[t]=e,r.parent=null;var i=this.__zr;i&&r.removeSelfFromZr(i),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var t=this.__zr;t&&t!==e.__zr&&e.addSelfToZr(t),t&&t.refresh()},t.prototype.remove=function(e){var t=this.__zr,n=this._children,r=l["r"](n,e);return r<0||(n.splice(r,1),e.parent=null,t&&e.removeSelfFromZr(t),t&&t.refresh()),this},t.prototype.removeAll=function(){for(var e=this._children,t=this.__zr,n=0;n0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover())},e.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},e.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},e.prototype.on=function(e,t,n){return this._disposed||this.handler.on(e,t,n),this},e.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},e.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},e.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t0){if(e<=i)return a;if(e>=o)return s}else{if(e>=i)return a;if(e<=o)return s}else{if(e===i)return a;if(e===o)return s}return(e-i)/l*u+a}function Br(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%";break}return l["C"](e)?Rr(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):null==e?NaN:+e}function Yr(e,t,n){return null==t&&(t=10),t=Math.min(Math.max(0,t),Pr),e=(+e).toFixed(t),n?e:+e}function Fr(e){return e.sort((function(e,t){return e-t})),e}function zr(e){if(e=+e,isNaN(e))return 0;if(e>1e-14)for(var t=1,n=0;n<15;n++,t*=10)if(Math.round(e*t)/t===e)return n;return Hr(e)}function Hr(e){var t=e.toString().toLowerCase(),n=t.indexOf("e"),r=n>0?+t.slice(n+1):0,i=n>0?n:t.length,o=t.indexOf("."),a=o<0?0:i-1-o;return Math.max(0,a-r)}function Vr(e,t){var n=Math.log,r=Math.LN10,i=Math.floor(n(e[1]-e[0])/r),o=Math.round(n(Math.abs(t[1]-t[0]))/r),a=Math.min(Math.max(-i+o,0),20);return isFinite(a)?a:20}function Wr(e,t){var n=l["N"](e,(function(e,t){return e+(isNaN(t)?0:t)}),0);if(0===n)return[];var r=Math.pow(10,t),i=l["H"](e,(function(e){return(isNaN(e)?0:e)/n*r*100})),o=100*r,a=l["H"](i,(function(e){return Math.floor(e)})),s=l["N"](a,(function(e,t){return e+t}),0),u=l["H"](i,(function(e,t){return e-a[t]}));while(sc&&(c=u[h],d=h);++a[d],u[d]=0,++s}return l["H"](a,(function(e){return e/r}))}function Ur(e,t){var n=Math.max(zr(e),zr(t)),r=e+t;return n>Pr?r:Yr(r,n)}var $r=9007199254740991;function Gr(e){var t=2*Math.PI;return(e%t+t)%t}function qr(e){return e>-jr&&e=10&&t++,t}function Qr(e,t){var n,r=Jr(e),i=Math.pow(10,r),o=e/i;return n=t?o<1.5?1:o<2.5?2:o<4?3:o<7?5:10:o<1?1:o<2?2:o<3?3:o<5?5:10,e=n*i,r>=-20?+e.toFixed(r<0?-r:0):e}function ei(e,t){var n=(e.length-1)*t+1,r=Math.floor(n),i=+e[r-1],o=n-r;return o?i+o*(e[r]-i):i}function ti(e){e.sort((function(e,t){return s(e,t,0)?-1:1}));for(var t=-1/0,n=1,r=0;r=0||i&&l["r"](i,s)<0)){var u=n.getShallow(s,t);null!=u&&(o[e[a][0]]=u)}}return o}}var oo=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],ao=io(oo),so=function(){function e(){}return e.prototype.getAreaStyle=function(e,t){return ao(this,e,t)},e}(),lo=new Zn["a"](50);function uo(e){if("string"===typeof e){var t=lo.get(e);return t&&t.image}return e}function co(e,t,n,r,i){if(e){if("string"===typeof e){if(t&&t.__zrImageSrc===e||!n)return t;var o=lo.get(e),a={hostEl:n,cb:r,cbPayload:i};return o?(t=o.image,!fo(t)&&o.pending.push(a)):(t=Jn["d"].loadImage(e,ho,ho),t.__zrImageSrc=e,lo.put(e,t.__cachedImgObj={image:t,pending:[a]})),t}return e}return t}function ho(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t=a;u++)s-=a;var c=er(n,t);return c>s&&(n="",c=0),s=e-c,i.ellipsis=n,i.ellipsisWidth=c,i.contentWidth=s,i.containerWidth=e,i}function vo(e,t,n){var r=n.containerWidth,i=n.font,o=n.contentWidth;if(!r)return e.textLine="",void(e.isTruncated=!1);var a=er(t,i);if(a<=r)return e.textLine=t,void(e.isTruncated=!1);for(var s=0;;s++){if(a<=o||s>=n.maxIterations){t+=n.ellipsis;break}var l=0===s?yo(t,o,n.ascCharWidth,n.cnCharWidth):a>0?Math.floor(t.length*o/a):0;t=t.substr(0,l),a=er(t,i)}""===t&&(t=n.placeholder),e.textLine=t,e.isTruncated=!0}function yo(e,t,n,r){for(var i=0,o=0,a=e.length;om&&d){var g=Math.floor(m/u);h=h||n.length>g,n=n.slice(0,g)}if(e&&a&&null!=f)for(var v=go(f,o,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),y={},b=0;bu&&Mo(n,e.substring(u,c),t,s),Mo(n,r[2],t,s,r[1]),u=po.lastIndex}uo){var A=n.lines.length;k>0?(_.tokens=_.tokens.slice(0,k),y(_,x,w),n.lines=n.lines.slice(0,b+1)):n.lines=n.lines.slice(0,b),n.isTruncated=n.isTruncated||n.lines.length0&&p+r.accumWidth>r.width&&(o=t.split("\n"),d=!0),r.accumWidth=p}else{var m=Oo(t,c,r.width,r.breakAll,r.accumWidth);r.accumWidth=m.accumWidth+f,a=m.linesWidths,o=m.lines}}else o=t.split("\n");for(var g=0;g=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var Co=Object(l["N"])(",&?/;] ".split(""),(function(e,t){return e[t]=!0,e}),{});function To(e){return!So(e)||!!Co[e]}function Oo(e,t,n,r,i){for(var o=[],a=[],s="",l="",u=0,c=0,d=0;dn:i+c+f>n)?c?(s||l)&&(p?(s||(s=l,l="",u=0,c=u),o.push(s),a.push(c-u),l+=h,u+=f,s="",c=u):(l&&(s+=l,l="",u=0),o.push(s),a.push(c),s=h,c=f)):p?(o.push(l),a.push(u),l=h,u=f):(o.push(h),a.push(f)):(c+=f,p?(l+=h,u+=f):(l&&(s+=l,l="",u=0),s+=h))}else l&&(s+=l,c+=u),o.push(s),a.push(c),s="",l="",u=0,c=0}return o.length||s||(s=e,l="",u=0),l&&(s+=l),s&&(o.push(s),a.push(c)),1===o.length&&(c+=i),{accumWidth:c,lines:o,linesWidths:a}}var Lo="__zr_style_"+Math.round(10*Math.random()),Ao={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Do={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Ao[Lo]=!0;var Eo=["z","z2","invisible"],Io=["invisible"],jo=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype._init=function(t){for(var n=Object(l["F"])(t),r=0;r1e-4)return s[0]=e-n,s[1]=t-r,l[0]=e+n,void(l[1]=t+r);if(Wo[0]=Ho(i)*n+e,Wo[1]=zo(i)*r+t,Uo[0]=Ho(o)*n+e,Uo[1]=zo(o)*r+t,u(s,Wo,Uo),c(l,Wo,Uo),i%=Vo,i<0&&(i+=Vo),o%=Vo,o<0&&(o+=Vo),i>o&&!a?o+=Vo:ii&&($o[0]=Ho(f)*n+e,$o[1]=zo(f)*r+t,u(s,$o,s),c(l,$o,l))}var ea={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},ta=[],na=[],ra=[],ia=[],oa=[],aa=[],sa=Math.min,la=Math.max,ua=Math.cos,ca=Math.sin,da=Math.abs,ha=Math.PI,fa=2*ha,pa="undefined"!==typeof Float32Array,ma=[];function ga(e){var t=Math.round(e/ha*1e8)/1e8;return t%2*ha}function va(e,t){var n=ga(e[0]);n<0&&(n+=fa);var r=n-e[0],i=e[1];i+=r,!t&&i-n>=fa?i=n+fa:t&&n-i>=fa?i=n-fa:!t&&n>i?i=n+(fa-ga(n-i)):t&&n0&&(this._ux=da(n/Pn/e)||0,this._uy=da(n/Pn/t)||0)},e.prototype.setDPR=function(e){this.dpr=e},e.prototype.setContext=function(e){this._ctx=e},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(ea.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},e.prototype.lineTo=function(e,t){var n=da(e-this._xi),r=da(t-this._yi),i=n>this._ux||r>this._uy;if(this.addData(ea.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var o=n*n+r*r;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(e,t,n,r,i,o){return this._drawPendingPt(),this.addData(ea.C,e,t,n,r,i,o),this._ctx&&this._ctx.bezierCurveTo(e,t,n,r,i,o),this._xi=i,this._yi=o,this},e.prototype.quadraticCurveTo=function(e,t,n,r){return this._drawPendingPt(),this.addData(ea.Q,e,t,n,r),this._ctx&&this._ctx.quadraticCurveTo(e,t,n,r),this._xi=n,this._yi=r,this},e.prototype.arc=function(e,t,n,r,i,o){this._drawPendingPt(),ma[0]=r,ma[1]=i,va(ma,o),r=ma[0],i=ma[1];var a=i-r;return this.addData(ea.A,e,t,n,n,r,a,0,o?0:1),this._ctx&&this._ctx.arc(e,t,n,r,i,o),this._xi=ua(i)*n+e,this._yi=ca(i)*n+t,this},e.prototype.arcTo=function(e,t,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,n,r,i),this},e.prototype.rect=function(e,t,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,n,r),this.addData(ea.R,e,t,n,r),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(ea.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&e.closePath(),this._xi=t,this._yi=n,this},e.prototype.fill=function(e){e&&e.fill(),this.toStatic()},e.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(e){var t=e.length;this.data&&this.data.length===t||!pa||(this.data=new Float32Array(t));for(var n=0;nu.length&&(this._expandData(),u=this.data);for(var c=0;c0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t11&&(this.data=new Float32Array(e)))}},e.prototype.getBoundingRect=function(){ra[0]=ra[1]=oa[0]=oa[1]=Number.MAX_VALUE,ia[0]=ia[1]=aa[0]=aa[1]=-Number.MAX_VALUE;var e,t=this.data,n=0,r=0,i=0,o=0;for(e=0;en||da(y)>r||d===t-1)&&(p=Math.sqrt(v*v+y*y),i=m,o=g);break;case ea.C:var b=e[d++],_=e[d++],w=(m=e[d++],g=e[d++],e[d++]),x=e[d++];p=Ct(i,o,b,_,m,g,w,x,10),i=w,o=x;break;case ea.Q:b=e[d++],_=e[d++],m=e[d++],g=e[d++];p=It(i,o,b,_,m,g,10),i=m,o=g;break;case ea.A:var k=e[d++],M=e[d++],S=e[d++],C=e[d++],T=e[d++],O=e[d++],L=O+T;d+=1,f&&(a=ua(T)*S+k,s=ca(T)*C+M),p=la(S,C)*sa(fa,Math.abs(O)),i=ua(L)*S+k,o=ca(L)*C+M;break;case ea.R:a=i=e[d++],s=o=e[d++];var A=e[d++],D=e[d++];p=2*A+2*D;break;case ea.Z:v=a-i,y=s-o;p=Math.sqrt(v*v+y*y),i=a,o=s;break}p>=0&&(l[c++]=p,u+=p)}return this._pathLen=u,u},e.prototype.rebuildPath=function(e,t){var n,r,i,o,a,s,l,u,c,d,h,f=this.data,p=this._ux,m=this._uy,g=this._len,v=t<1,y=0,b=0,_=0;if(!v||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,u=this._pathLen,c=t*u,c))e:for(var w=0;w0&&(e.lineTo(d,h),_=0),x){case ea.M:n=i=f[w++],r=o=f[w++],e.moveTo(i,o);break;case ea.L:a=f[w++],s=f[w++];var M=da(a-i),S=da(s-o);if(M>p||S>m){if(v){var C=l[b++];if(y+C>c){var T=(c-y)/C;e.lineTo(i*(1-T)+a*T,o*(1-T)+s*T);break e}y+=C}e.lineTo(a,s),i=a,o=s,_=0}else{var O=M*M+S*S;O>_&&(d=a,h=s,_=O)}break;case ea.C:var L=f[w++],A=f[w++],D=f[w++],E=f[w++],I=f[w++],j=f[w++];if(v){C=l[b++];if(y+C>c){T=(c-y)/C;Mt(i,L,D,I,T,ta),Mt(o,A,E,j,T,na),e.bezierCurveTo(ta[1],na[1],ta[2],na[2],ta[3],na[3]);break e}y+=C}e.bezierCurveTo(L,A,D,E,I,j),i=I,o=j;break;case ea.Q:L=f[w++],A=f[w++],D=f[w++],E=f[w++];if(v){C=l[b++];if(y+C>c){T=(c-y)/C;Dt(i,L,D,T,ta),Dt(o,A,E,T,na),e.quadraticCurveTo(ta[1],na[1],ta[2],na[2]);break e}y+=C}e.quadraticCurveTo(L,A,D,E),i=D,o=E;break;case ea.A:var P=f[w++],R=f[w++],N=f[w++],B=f[w++],Y=f[w++],F=f[w++],z=f[w++],H=!f[w++],V=N>B?N:B,W=da(N-B)>.001,U=Y+F,$=!1;if(v){C=l[b++];y+C>c&&(U=Y+F*(c-y)/C,$=!0),y+=C}if(W&&e.ellipse?e.ellipse(P,R,N,B,z,Y,U,H):e.arc(P,R,V,Y,U,H),$)break e;k&&(n=ua(Y)*N+P,r=ca(Y)*B+R),i=ua(U)*N+P,o=ca(U)*B+R;break;case ea.R:n=i=f[w],r=o=f[w+1],a=f[w++],s=f[w++];var G=f[w++],q=f[w++];if(v){C=l[b++];if(y+C>c){var X=c-y;e.moveTo(a,s),e.lineTo(a+sa(X,G),s),X-=G,X>0&&e.lineTo(a+G,s+sa(X,q)),X-=q,X>0&&e.lineTo(a+la(G-X,0),s+q),X-=G,X>0&&e.lineTo(a,s+la(q-X,0));break e}y+=C}e.rect(a,s,G,q);break;case ea.Z:if(v){C=l[b++];if(y+C>c){T=(c-y)/C;e.lineTo(i*(1-T)+n*T,o*(1-T)+r*T);break e}y+=C}e.closePath(),i=n,o=r}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.CMD=ea,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}(),ba=ya;function _a(e,t,n,r,i,o,a){if(0===i)return!1;var s=i,l=0,u=e;if(a>t+s&&a>r+s||ae+s&&o>n+s||ot+d&&c>r+d&&c>o+d&&c>s+d||ce+d&&u>n+d&&u>i+d&&u>a+d||ut+u&&l>r+u&&l>o+u||le+u&&s>n+u&&s>i+u||sn||c+ui&&(i+=Sa);var h=Math.atan2(l,s);return h<0&&(h+=Sa),h>=r&&h<=i||h+Sa>=r&&h+Sa<=i}function Ta(e,t,n,r,i,o){if(o>t&&o>r||oi?s:0}var Oa=ba.CMD,La=2*Math.PI,Aa=1e-4;function Da(e,t){return Math.abs(e-t)t&&u>r&&u>o&&u>s||u1&&ja(),f=_t(t,r,o,s,Ia[0]),h>1&&(p=_t(t,r,o,s,Ia[1]))),2===h?gt&&s>r&&s>o||s=0&&u<=1){for(var c=0,d=Tt(t,r,o,u),h=0;hn||s<-n)return 0;var l=Math.sqrt(n*n-s*s);Ea[0]=-l,Ea[1]=l;var u=Math.abs(r-i);if(u<1e-4)return 0;if(u>=La-1e-4){r=0,i=La;var c=o?1:-1;return a>=Ea[0]+e&&a<=Ea[1]+e?c:0}if(r>i){var d=r;r=i,i=d}r<0&&(r+=La,i+=La);for(var h=0,f=0;f<2;f++){var p=Ea[f];if(p+e>a){var m=Math.atan2(s,p);c=o?1:-1;m<0&&(m=La+m),(m>=r&&m<=i||m+La>=r&&m+La<=i)&&(m>Math.PI/2&&m<1.5*Math.PI&&(c=-c),h+=c)}}return h}function Ba(e,t,n,r,i){for(var o,a,s=e.data,l=e.len(),u=0,c=0,d=0,h=0,f=0,p=0;p1&&(n||(u+=Ta(c,d,h,f,r,i))),g&&(c=s[p],d=s[p+1],h=c,f=d),m){case Oa.M:h=s[p++],f=s[p++],c=h,d=f;break;case Oa.L:if(n){if(_a(c,d,s[p],s[p+1],t,r,i))return!0}else u+=Ta(c,d,s[p],s[p+1],r,i)||0;c=s[p++],d=s[p++];break;case Oa.C:if(n){if(wa(c,d,s[p++],s[p++],s[p++],s[p++],s[p],s[p+1],t,r,i))return!0}else u+=Pa(c,d,s[p++],s[p++],s[p++],s[p++],s[p],s[p+1],r,i)||0;c=s[p++],d=s[p++];break;case Oa.Q:if(n){if(xa(c,d,s[p++],s[p++],s[p],s[p+1],t,r,i))return!0}else u+=Ra(c,d,s[p++],s[p++],s[p],s[p+1],r,i)||0;c=s[p++],d=s[p++];break;case Oa.A:var v=s[p++],y=s[p++],b=s[p++],_=s[p++],w=s[p++],x=s[p++];p+=1;var k=!!(1-s[p++]);o=Math.cos(w)*b+v,a=Math.sin(w)*_+y,g?(h=o,f=a):u+=Ta(c,d,o,a,r,i);var M=(r-v)*_/b+v;if(n){if(Ca(v,y,_,w,w+x,k,t,M,i))return!0}else u+=Na(v,y,_,w,w+x,k,M,i);c=Math.cos(w+x)*b+v,d=Math.sin(w+x)*_+y;break;case Oa.R:h=c=s[p++],f=d=s[p++];var S=s[p++],C=s[p++];if(o=h+S,a=f+C,n){if(_a(h,f,o,f,t,r,i)||_a(o,f,o,a,t,r,i)||_a(o,a,h,a,t,r,i)||_a(h,a,h,f,t,r,i))return!0}else u+=Ta(o,f,o,a,r,i),u+=Ta(h,a,h,f,r,i);break;case Oa.Z:if(n){if(_a(c,d,h,f,t,r,i))return!0}else u+=Ta(c,d,h,f,r,i);c=h,d=f;break}}return n||Da(d,f)||(u+=Ta(c,d,h,f,r,i)||0),0!==u}function Ya(e,t,n){return Ba(e,0,!1,t,n)}function Fa(e,t,n,r){return Ba(e,t,!0,n,r)}var za=Object(l["i"])({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Ao),Ha={style:Object(l["i"])({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Do.style)},Va=qn.concat(["invisible","culling","z","z2","zlevel","parent"]),Wa=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.update=function(){var n=this;e.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(e){n.buildPath(e,n.shape)}),i.silent=!0;var o=i.style;for(var a in r)o[a]!==r[a]&&(o[a]=r[a]);o.fill=r.fill?r.decal:null,o.decal=null,o.shadowColor=null,r.strokeFirst&&(o.stroke=null);for(var s=0;s.5?Nn:t>.2?Yn:Bn}if(e)return Bn}return Nn},t.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if(Object(l["C"])(t)){var n=this.__zr,r=!(!n||!n.isDarkMode()),i=Object(Bt["e"])(e,0)0))},t.prototype.hasFill=function(){var e=this.style,t=e.fill;return null!=t&&"none"!==t},t.prototype.getBoundingRect=function(){var e=this._rect,t=this.style,n=!e;if(n){var r=!1;this.path||(r=!0,this.createPathProxy());var i=this.path;(r||this.__dirty&Qe)&&(i.beginPath(),this.buildPath(i,this.shape,!1),this.pathUpdated()),e=i.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||n){o.copy(e);var a=t.strokeNoScale?this.getLineScale():1,s=t.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}a>1e-10&&(o.width+=s/a,o.height+=s/a,o.x-=s/a/2,o.y-=s/a/2)}return o}return e},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect(),i=this.style;if(e=n[0],t=n[1],r.contain(e,t)){var o=this.path;if(this.hasStroke()){var a=i.lineWidth,s=i.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),Fa(o,a/s,e,t)))return!0}if(this.hasFill())return Ya(o,e,t)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Qe,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){"style"===e?this.dirtyStyle():"shape"===e?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(t,n){"shape"===t?this.setShape(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setShape=function(e,t){var n=this.shape;return n||(n=this.shape={}),"string"===typeof e?n[e]=t:Object(l["m"])(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Qe)},t.prototype.createStyle=function(e){return Object(l["g"])(za,e)},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=Object(l["m"])({},this.shape))},t.prototype._applyStateObj=function(t,n,r,i,o,a){e.prototype._applyStateObj.call(this,t,n,r,i,o,a);var s,u=!(n&&i);if(n&&n.shape?o?i?s=n.shape:(s=Object(l["m"])({},r.shape),Object(l["m"])(s,n.shape)):(s=Object(l["m"])({},i?this.shape:r.shape),Object(l["m"])(s,n.shape)):u&&(s=r.shape),s)if(o){this.shape=Object(l["m"])({},this.shape);for(var c={},d=Object(l["F"])(s),h=0;h0},t.prototype.hasFill=function(){var e=this.style,t=e.fill;return null!=t&&"none"!==t},t.prototype.createStyle=function(e){return Object(l["g"])($a,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var t=e.text;null!=t?t+="":t="";var n=nr(t,e.font,e.textAlign,e.textBaseline);if(n.x+=e.x||0,n.y+=e.y||0,this.hasStroke()){var r=e.lineWidth;n.x-=r/2,n.y-=r/2,n.width+=r,n.height+=r}this._rect=n}return this._rect},t.initDefaultProps=function(){var e=t.prototype;e.dirtyRectTolerance=10}(),t}(Bo);Ga.prototype.type="tspan";var qa=Ga,Xa=Object(l["i"])({x:0,y:0},Ao),Ka={style:Object(l["i"])({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Do.style)};function Za(e){return!!(e&&"string"!==typeof e&&e.width&&e.height)}var Ja=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.createStyle=function(e){return Object(l["g"])(Xa,e)},t.prototype._getSize=function(e){var t=this.style,n=t[e];if(null!=n)return n;var r=Za(t.image)?t.image:this.__image;if(!r)return 0;var i="width"===e?"height":"width",o=t[i];return null==o?r[e]:r[e]/r[i]*o},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return Ka},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new Oe(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(Bo);Ja.prototype.type="image";var Qa=Ja;function es(e,t){var n,r,i,o,a,s=t.x,l=t.y,u=t.width,c=t.height,d=t.r;u<0&&(s+=u,u=-u),c<0&&(l+=c,c=-c),"number"===typeof d?n=r=i=o=d:d instanceof Array?1===d.length?n=r=i=o=d[0]:2===d.length?(n=i=d[0],r=o=d[1]):3===d.length?(n=d[0],r=o=d[1],i=d[2]):(n=d[0],r=d[1],i=d[2],o=d[3]):n=r=i=o=0,n+r>u&&(a=n+r,n*=u/a,r*=u/a),i+o>u&&(a=i+o,i*=u/a,o*=u/a),r+i>c&&(a=r+i,r*=c/a,i*=c/a),n+o>c&&(a=n+o,n*=c/a,o*=c/a),e.moveTo(s+n,l),e.lineTo(s+u-r,l),0!==r&&e.arc(s+u-r,l+r,r,-Math.PI/2,0),e.lineTo(s+u,l+c-i),0!==i&&e.arc(s+u-i,l+c-i,i,0,Math.PI/2),e.lineTo(s+o,l+c),0!==o&&e.arc(s+o,l+c-o,o,Math.PI/2,Math.PI),e.lineTo(s,l+n),0!==n&&e.arc(s+n,l+n,n,Math.PI,1.5*Math.PI)}var ts=Math.round;function ns(e,t,n){if(t){var r=t.x1,i=t.x2,o=t.y1,a=t.y2;e.x1=r,e.x2=i,e.y1=o,e.y2=a;var s=n&&n.lineWidth;return s?(ts(2*r)===ts(2*i)&&(e.x1=e.x2=is(r,s,!0)),ts(2*o)===ts(2*a)&&(e.y1=e.y2=is(o,s,!0)),e):e}}function rs(e,t,n){if(t){var r=t.x,i=t.y,o=t.width,a=t.height;e.x=r,e.y=i,e.width=o,e.height=a;var s=n&&n.lineWidth;return s?(e.x=is(r,s,!0),e.y=is(i,s,!0),e.width=Math.max(is(r+o,s,!1)-e.x,0===o?0:1),e.height=Math.max(is(i+a,s,!1)-e.y,0===a?0:1),e):e}}function is(e,t,n){if(!t)return e;var r=ts(2*e);return(r+ts(t))%2===0?r/2:(r+(n?1:-1))/2}var os=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),as={},ss=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.getDefaultShape=function(){return new os},t.prototype.buildPath=function(e,t){var n,r,i,o;if(this.subPixelOptimize){var a=rs(as,t,this.style);n=a.x,r=a.y,i=a.width,o=a.height,a.r=t.r,t=a}else n=t.x,r=t.y,i=t.width,o=t.height;t.r?es(e,t):e.rect(n,r,i,o)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(Ua);ss.prototype.type="rect";var ls=ss,us={fill:"#000"},cs=2,ds={style:Object(l["i"])({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},Do.style)},hs=function(e){function t(t){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=us,n.attr(t),n}return a(t,e),t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t0,C=null!=e.width&&("truncate"===e.overflow||"break"===e.overflow||"breakAll"===e.overflow),T=i.calculatedLineHeight,O=0;O=0&&(O=_[T],"right"===O.align))this._placeToken(O,e,x,m,C,"right",v),k-=O.width,C-=O.width,T--;S+=(r-(S-p)-(g-C)-k)/2;while(M<=T)O=_[M],this._placeToken(O,e,x,m,S+O.width/2,"center",v),S+=O.width,M++;m+=x}},t.prototype._placeToken=function(e,t,n,r,i,o,a){var s=t.rich[e.styleName]||{};s.text=e.text;var u=e.verticalAlign,c=r+n/2;"top"===u?c=r+e.height/2:"bottom"===u&&(c=r+n-e.height/2);var d=!e.isLineHolder&&Ss(s);d&&this._renderBackground(s,t,"right"===o?i-e.width:"center"===o?i-e.width/2:i,c-e.height/2,e.width,e.height);var h=!!s.backgroundColor,f=e.textPadding;f&&(i=ks(i,o,f),c-=e.height/2-f[0]-e.innerHeight/2);var p=this._getOrCreateChild(qa),m=p.createStyle();p.useStyle(m);var g=this._defaultStyle,v=!1,y=0,b=xs("fill"in s?s.fill:"fill"in t?t.fill:(v=!0,g.fill)),_=ws("stroke"in s?s.stroke:"stroke"in t?t.stroke:h||a||g.autoStroke&&!v?null:(y=cs,g.stroke)),w=s.textShadowBlur>0||t.textShadowBlur>0;m.text=e.text,m.x=i,m.y=c,w&&(m.shadowBlur=s.textShadowBlur||t.textShadowBlur||0,m.shadowColor=s.textShadowColor||t.textShadowColor||"transparent",m.shadowOffsetX=s.textShadowOffsetX||t.textShadowOffsetX||0,m.shadowOffsetY=s.textShadowOffsetY||t.textShadowOffsetY||0),m.textAlign=o,m.textBaseline="middle",m.font=e.font||Jn["a"],m.opacity=Object(l["Q"])(s.opacity,t.opacity,1),vs(m,s),_&&(m.lineWidth=Object(l["Q"])(s.lineWidth,t.lineWidth,y),m.lineDash=Object(l["P"])(s.lineDash,t.lineDash),m.lineDashOffset=t.lineDashOffset||0,m.stroke=_),b&&(m.fill=b);var x=e.contentWidth,k=e.contentHeight;p.setBoundingRect(new Oe(rr(m.x,x,m.textAlign),ir(m.y,k,m.textBaseline),x,k))},t.prototype._renderBackground=function(e,t,n,r,i,o){var a,s,u=e.backgroundColor,c=e.borderWidth,d=e.borderColor,h=u&&u.image,f=u&&!h,p=e.borderRadius,m=this;if(f||e.lineHeight||c&&d){a=this._getOrCreateChild(ls),a.useStyle(a.createStyle()),a.style.fill=null;var g=a.shape;g.x=n,g.y=r,g.width=i,g.height=o,g.r=p,a.dirtyShape()}if(f){var v=a.style;v.fill=u||null,v.fillOpacity=Object(l["P"])(e.fillOpacity,1)}else if(h){s=this._getOrCreateChild(Qa),s.onload=function(){m.dirtyStyle()};var y=s.style;y.image=u.image,y.x=n,y.y=r,y.width=i,y.height=o}if(c&&d){v=a.style;v.lineWidth=c,v.stroke=d,v.strokeOpacity=Object(l["P"])(e.strokeOpacity,1),v.lineDash=e.borderDash,v.lineDashOffset=e.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill()&&a.hasStroke()&&(v.strokeFirst=!0,v.lineWidth*=2)}var b=(a||s).style;b.shadowBlur=e.shadowBlur||0,b.shadowColor=e.shadowColor||"transparent",b.shadowOffsetX=e.shadowOffsetX||0,b.shadowOffsetY=e.shadowOffsetY||0,b.opacity=Object(l["Q"])(e.opacity,t.opacity,1)},t.makeFont=function(e){var t="";return ys(e)&&(t=[e.fontStyle,e.fontWeight,gs(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),t&&Object(l["T"])(t)||e.textFont||e.font},t}(Bo),fs={left:!0,right:1,center:1},ps={top:1,bottom:1,middle:1},ms=["fontStyle","fontWeight","fontSize","fontFamily"];function gs(e){return"string"!==typeof e||-1===e.indexOf("px")&&-1===e.indexOf("rem")&&-1===e.indexOf("em")?isNaN(+e)?Jn["c"]+"px":e+"px":e}function vs(e,t){for(var n=0;n=0,o=!1;if(e instanceof Ua){var a=Ds(e),s=i&&a.selectFill||a.normalFill,u=i&&a.selectStroke||a.normalStroke;if(Us(s)||Us(u)){r=r||{};var c=r.style||{};"inherit"===c.fill?(o=!0,r=Object(l["m"])({},r),c=Object(l["m"])({},c),c.fill=s):!Us(c.fill)&&Us(s)?(o=!0,r=Object(l["m"])({},r),c=Object(l["m"])({},c),c.fill=Object(Bt["d"])(s)):!Us(c.stroke)&&Us(u)&&(o||(r=Object(l["m"])({},r),c=Object(l["m"])({},c)),c.stroke=Object(Bt["d"])(u)),r.style=c}}if(r&&null==r.z2){o||(r=Object(l["m"])({},r));var d=e.z2EmphasisLift;r.z2=e.z2+(null!=d?d:Bs)}return r}function il(e,t,n){if(n&&null==n.z2){n=Object(l["m"])({},n);var r=e.z2SelectLift;n.z2=e.z2+(null!=r?r:Ys)}return n}function ol(e,t,n){var r=Object(l["r"])(e.currentStates,t)>=0,i=e.style.opacity,o=r?null:nl(e,["opacity"],t,{opacity:1});n=n||{};var a=n.style||{};return null==a.opacity&&(n=Object(l["m"])({},n),a=Object(l["m"])({opacity:r?i:.1*o.opacity},a),n.style=a),n}function al(e,t){var n=this.states[e];if(this.style){if("emphasis"===e)return rl(this,e,t,n);if("blur"===e)return ol(this,e,n);if("select"===e)return il(this,e,n)}return n}function sl(e){e.stateProxy=al;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=al),n&&(n.stateProxy=al)}function ll(e,t){!gl(e,t)&&!e.__highByOuter&&el(e,Gs)}function ul(e,t){!gl(e,t)&&!e.__highByOuter&&el(e,qs)}function cl(e,t){e.__highByOuter|=1<<(t||0),el(e,Gs)}function dl(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&el(e,qs)}function hl(e){el(e,Xs)}function fl(e){el(e,Ks)}function pl(e){el(e,Zs)}function ml(e){el(e,Js)}function gl(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function vl(e){var t=e.getModel(),n=[],r=[];t.eachComponent((function(t,i){var o=Es(i),a="series"===t,s=a?e.getViewOfSeriesModel(i):e.getViewOfComponentModel(i);!a&&r.push(s),o.isBlured&&(s.group.traverse((function(e){Ks(e)})),a&&n.push(i)),o.isBlured=!1})),Object(l["k"])(r,(function(e){e&&e.toggleBlurSeries&&e.toggleBlurSeries(n,!1,t)}))}function yl(e,t,n,r){var i=r.getModel();function o(e,t){for(var n=0;n0){var o={dataIndex:i,seriesIndex:e.seriesIndex};null!=r&&(o.dataType=r),t.push(o)}}))})),t}function Tl(e,t,n){jl(e,!0),el(e,sl),Al(e,t,n)}function Ol(e){jl(e,!1)}function Ll(e,t,n,r){r?Ol(e):Tl(e,t,n)}function Al(e,t,n){var r=Ts(e);null!=t?(r.focus=t,r.blurScope=n):r.focus&&(r.focus=null)}var Dl=["emphasis","blur","select"],El={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Il(e,t,n,r){n=n||"itemStyle";for(var i=0;i0){var h=d.duration,f=d.delay,p=d.easing,m={duration:h,delay:f||0,easing:p,done:o,force:!!o||!!a,setToFinal:!c,scope:e,during:a};u?t.animateFrom(n,m):t.animateTo(n,m)}else t.stopAnimation(),!u&&t.attr(n),a&&a(1),o&&o()}function Wl(e,t,n,r,i,o){Vl("update",e,t,n,r,i,o)}function Ul(e,t,n,r,i,o){Vl("enter",e,t,n,r,i,o)}function $l(e){if(!e.__zr)return!0;for(var t=0;t=0&&n.push(e)})),n}e.topologicalTravel=function(e,t,r,i){if(e.length){var o=n(t),a=o.graph,s=o.noEntryList,u={};l["k"](e,(function(e){u[e]=!0}));while(s.length){var c=s.pop(),d=a[c],h=!!u[c];h&&(r.call(i,c,d.originalDeps.slice()),delete u[c]),l["k"](d.successor,h?p:f)}l["k"](u,(function(){var e="";throw new Error(e)}))}function f(e){a[e].entryCount--,0===a[e].entryCount&&s.push(e)}function p(e){u[e]=!0,f(e)}}}function Eu(e,t){return l["I"](l["I"]({},e,!0),t,!0)}var Iu={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},ju={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}},Pu="ZH",Ru="EN",Nu=Ru,Bu={},Yu={},Fu=s["a"].domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Nu).toUpperCase();return e.indexOf(Pu)>-1?Pu:Nu}():Nu;function zu(e,t){e=e.toUpperCase(),Yu[e]=new Tu(t),Bu[e]=t}function Hu(e){if(Object(l["C"])(e)){var t=Bu[e.toUpperCase()]||{};return e===Pu||e===Ru?Object(l["d"])(t):Object(l["I"])(Object(l["d"])(t),Object(l["d"])(Bu[Nu]),!1)}return Object(l["I"])(Object(l["d"])(e),Object(l["d"])(Bu[Nu]),!1)}function Vu(e){return Yu[e]}function Wu(){return Yu[Nu]}zu(Ru,Iu),zu(Pu,ju);var Uu=1e3,$u=60*Uu,Gu=60*$u,qu=24*Gu,Xu=365*qu,Ku={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},Zu="{yyyy}-{MM}-{dd}",Ju={year:"{yyyy}",month:"{yyyy}-{MM}",day:Zu,hour:Zu+" "+Ku.hour,minute:Zu+" "+Ku.minute,second:Zu+" "+Ku.second,millisecond:Ku.none},Qu=["year","month","day","hour","minute","second","millisecond"],ec=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function tc(e,t){return e+="","0000".substr(0,t-e.length)+e}function nc(e){switch(e){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return e}}function rc(e){return e===nc(e)}function ic(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function oc(e,t,n,r){var i=Kr(e),o=i[uc(n)](),a=i[cc(n)]()+1,s=Math.floor((a-1)/3)+1,l=i[dc(n)](),u=i["get"+(n?"UTC":"")+"Day"](),c=i[hc(n)](),d=(c-1)%12+1,h=i[fc(n)](),f=i[pc(n)](),p=i[mc(n)](),m=c>=12?"pm":"am",g=m.toUpperCase(),v=r instanceof Tu?r:Vu(r||Fu)||Wu(),y=v.getModel("time"),b=y.get("month"),_=y.get("monthAbbr"),w=y.get("dayOfWeek"),x=y.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,m+"").replace(/{A}/g,g+"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,tc(o%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,b[a-1]).replace(/{MMM}/g,_[a-1]).replace(/{MM}/g,tc(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,tc(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,w[u]).replace(/{ee}/g,x[u]).replace(/{e}/g,u+"").replace(/{HH}/g,tc(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,tc(d+"",2)).replace(/{h}/g,d+"").replace(/{mm}/g,tc(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,tc(f,2)).replace(/{s}/g,f+"").replace(/{SSS}/g,tc(p,3)).replace(/{S}/g,p+"")}function ac(e,t,n,r,i){var o=null;if(l["C"](n))o=n;else if(l["w"](n))o=n(e.value,t,{level:e.level});else{var a=l["m"]({},Ku);if(e.level>0)for(var s=0;s=0;--s)if(u[c]){o=u[c];break}o=o||a.none}if(l["t"](o)){var h=null==e.level?0:e.level>=0?e.level:o.length+e.level;h=Math.min(h,o.length-1),o=o[h]}}return oc(new Date(e.value),o,i,r)}function sc(e,t){var n=Kr(e),r=n[cc(t)]()+1,i=n[dc(t)](),o=n[hc(t)](),a=n[fc(t)](),s=n[pc(t)](),l=n[mc(t)](),u=0===l,c=u&&0===s,d=c&&0===a,h=d&&0===o,f=h&&1===i,p=f&&1===r;return p?"year":f?"month":h?"day":d?"hour":c?"minute":u?"second":"millisecond"}function lc(e,t,n){var r=l["z"](e)?Kr(e):e;switch(t=t||sc(e,n),t){case"year":return r[uc(n)]();case"half-year":return r[cc(n)]()>=6?1:0;case"quarter":return Math.floor((r[cc(n)]()+1)/4);case"month":return r[cc(n)]();case"day":return r[dc(n)]();case"half-day":return r[hc(n)]()/24;case"hour":return r[hc(n)]();case"minute":return r[fc(n)]();case"second":return r[pc(n)]();case"millisecond":return r[mc(n)]()}}function uc(e){return e?"getUTCFullYear":"getFullYear"}function cc(e){return e?"getUTCMonth":"getMonth"}function dc(e){return e?"getUTCDate":"getDate"}function hc(e){return e?"getUTCHours":"getHours"}function fc(e){return e?"getUTCMinutes":"getMinutes"}function pc(e){return e?"getUTCSeconds":"getSeconds"}function mc(e){return e?"getUTCMilliseconds":"getMilliseconds"}function gc(e){return e?"setUTCFullYear":"setFullYear"}function vc(e){return e?"setUTCMonth":"setMonth"}function yc(e){return e?"setUTCDate":"setDate"}function bc(e){return e?"setUTCHours":"setHours"}function _c(e){return e?"setUTCMinutes":"setMinutes"}function wc(e){return e?"setUTCSeconds":"setSeconds"}function xc(e){return e?"setUTCMilliseconds":"setMilliseconds"}function kc(e){if(!ri(e))return l["C"](e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function Mc(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,(function(e,t){return t.toUpperCase()})),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var Sc=l["M"];function Cc(e,t,n){var r="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(e){return e&&l["T"](e)?e:"-"}function o(e){return!(null==e||isNaN(e)||!isFinite(e))}var a="time"===t,s=e instanceof Date;if(a||s){var u=a?Kr(e):e;if(!isNaN(+u))return oc(u,r,n);if(s)return"-"}if("ordinal"===t)return l["D"](e)?i(e):l["z"](e)&&o(e)?e+"":"-";var c=ni(e);return o(c)?kc(c):l["D"](e)?i(e):"boolean"===typeof e?e+"":"-"}var Tc=["a","b","c","d","e","f","g"],Oc=function(e,t){return"{"+e+(null==t?"":t)+"}"};function Lc(e,t,n){l["t"](t)||(t=[t]);var r=t.length;if(!r)return"";for(var i=t[0].$vars||[],o=0;o':'';var a=n.markerId||"markerX";return{renderMode:o,content:"{"+a+"|} ",style:"subItem"===i?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}}function Ec(e,t){return t=t||"transparent",l["C"](e)?e:l["A"](e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function Ic(e,t){if("_blank"===t||"blank"===t){var n=window.open();n.opener=null,n.location.href=e}else window.open(e,t)}var jc=l["k"],Pc=["left","right","top","bottom","width","height"],Rc=[["width","left","right"],["height","top","bottom"]];function Nc(e,t,n,r,i){var o=0,a=0;null==r&&(r=1/0),null==i&&(i=1/0);var s=0;t.eachChild((function(l,u){var c,d,h=l.getBoundingRect(),f=t.childAt(u+1),p=f&&f.getBoundingRect();if("horizontal"===e){var m=h.width+(p?-p.x+h.x:0);c=o+m,c>r||l.newline?(o=0,c=m,a+=s+n,s=h.height):s=Math.max(s,h.height)}else{var g=h.height+(p?-p.y+h.y:0);d=a+g,d>i||l.newline?(o+=s+n,a=0,d=g,s=h.width):s=Math.max(s,h.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===e?o=c+n:a=d+n)}))}var Bc=Nc;l["h"](Nc,"vertical"),l["h"](Nc,"horizontal");function Yc(e,t,n){var r=t.width,i=t.height,o=Br(e.left,r),a=Br(e.top,i),s=Br(e.right,r),l=Br(e.bottom,i);return(isNaN(o)||isNaN(parseFloat(e.left)))&&(o=0),(isNaN(s)||isNaN(parseFloat(e.right)))&&(s=r),(isNaN(a)||isNaN(parseFloat(e.top)))&&(a=0),(isNaN(l)||isNaN(parseFloat(e.bottom)))&&(l=i),n=Sc(n||0),{width:Math.max(s-o-n[1]-n[3],0),height:Math.max(l-a-n[0]-n[2],0)}}function Fc(e,t,n){n=Sc(n||0);var r=t.width,i=t.height,o=Br(e.left,r),a=Br(e.top,i),s=Br(e.right,r),l=Br(e.bottom,i),u=Br(e.width,r),c=Br(e.height,i),d=n[2]+n[0],h=n[1]+n[3],f=e.aspect;switch(isNaN(u)&&(u=r-s-h-o),isNaN(c)&&(c=i-l-d-a),null!=f&&(isNaN(u)&&isNaN(c)&&(f>r/i?u=.8*r:c=.8*i),isNaN(u)&&(u=f*c),isNaN(c)&&(c=u/f)),isNaN(o)&&(o=r-s-u-h),isNaN(a)&&(a=i-l-c-d),e.left||e.right){case"center":o=r/2-u/2-n[3];break;case"right":o=r-u-h;break}switch(e.top||e.bottom){case"middle":case"center":a=i/2-c/2-n[0];break;case"bottom":a=i-c-d;break}o=o||0,a=a||0,isNaN(u)&&(u=r-h-o-(s||0)),isNaN(c)&&(c=i-d-a-(l||0));var p=new Oe(o+n[3],a+n[0],u,c);return p.margin=n,p}function zc(e,t,n,r,i,o){var a,s=!i||!i.hv||i.hv[0],u=!i||!i.hv||i.hv[1],c=i&&i.boundingMode||"all";if(o=o||e,o.x=e.x,o.y=e.y,!s&&!u)return!1;if("raw"===c)a="group"===e.type?new Oe(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(a=e.getBoundingRect(),e.needLocalTransform()){var d=e.getLocalTransform();a=a.clone(),a.applyTransform(d)}var h=Fc(l["i"]({width:a.width,height:a.height},t),n,r),f=s?h.x-a.x:0,p=u?h.y-a.y:0;return"raw"===c?(o.x=f,o.y=p):(o.x+=f,o.y+=p),o===e&&e.markRedraw(),!0}function Hc(e,t){return null!=e[Rc[t][0]]||null!=e[Rc[t][1]]&&null!=e[Rc[t][2]]}function Vc(e){var t=e.layoutMode||e.constructor.layoutMode;return l["A"](t)?t:t?{type:t}:null}function Wc(e,t,n){var r=n&&n.ignoreSize;!l["t"](r)&&(r=[r,r]);var i=a(Rc[0],0),o=a(Rc[1],1);function a(n,i){var o={},a=0,l={},c=0,d=2;if(jc(n,(function(t){l[t]=e[t]})),jc(n,(function(e){s(t,e)&&(o[e]=l[e]=t[e]),u(o,e)&&a++,u(l,e)&&c++})),r[i])return u(t,n[1])?l[n[2]]=null:u(t,n[2])&&(l[n[1]]=null),l;if(c!==d&&a){if(a>=d)return o;for(var h=0;h=0;a--)o=l["I"](o,n[a],!0);t.defaultOption=o}return t.defaultOption},t.prototype.getReferringComponents=function(e,t){var n=e+"Index",r=e+"Id";return Bi(this.ecModel,e,{index:this.get(n,!0),id:this.get(r,!0)},t)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0}(),t}(Tu);function Xc(e){var t=[];return l["k"](qc.getClassesByMainType(e),(function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])})),t=l["H"](t,(function(e){return Gi(e).main})),"dataset"!==e&&l["r"](t,"dataset")<=0&&t.unshift("dataset"),t}Ji(qc,Tu),ro(qc),Au(qc),Du(qc,Xc);var Kc=qc,Zc="";"undefined"!==typeof navigator&&(Zc=navigator.platform||"");var Jc="rgba(0, 0, 0, 0.2)",Qc={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Jc,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Jc,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Jc,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Jc,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Jc,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Jc,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Zc.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1},ed=Object(l["f"])(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),td="original",nd="arrayRows",rd="objectRows",id="keyedColumns",od="typedArray",ad="unknown",sd="column",ld="row",ud={Must:1,Might:2,Not:3},cd=Ei();function dd(e){cd(e).datasetMap=Object(l["f"])()}function hd(e,t,n){var r={},i=pd(t);if(!i||!e)return r;var o,a,s=[],u=[],c=t.ecModel,d=cd(c).datasetMap,h=i.uid+"_"+n.seriesLayoutBy;e=e.slice(),Object(l["k"])(e,(function(t,n){var i=Object(l["A"])(t)?t:e[n]={name:t};"ordinal"===i.type&&null==o&&(o=n,a=m(i)),r[i.name]=[]}));var f=d.get(h)||d.set(h,{categoryWayDim:a,valueWayDim:0});function p(e,t,n){for(var r=0;rt)return e[r];return e[n-1]}function Cd(e,t,n,r,i,o,a){o=o||e;var s=t(o),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var c=null!=a&&r?Sd(r,a):n;if(c=c||n,c&&c.length){var d=c[l];return i&&(u[i]=d),s.paletteIdx=(l+1)%c.length,d}}function Td(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var Od,Ld,Ad;"undefined"!==typeof console&&console.warn&&console.log;function Dd(e){0}function Ed(e){throw new Error(e)}var Id="\0_ec_inner",jd=1;var Pd=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.init=function(e,t,n,r,i,o){r=r||{},this.option=null,this._theme=new Tu(r),this._locale=new Tu(i),this._optionManager=o},t.prototype.setOption=function(e,t,n){var r=Fd(t);this._optionManager.setOption(e,n,r),this._resetOption(null,r)},t.prototype.resetOption=function(e,t){return this._resetOption(e,Fd(t))},t.prototype._resetOption=function(e,t){var n=!1,r=this._optionManager;if(!e||"recreate"===e){var i=r.mountOption("recreate"===e);0,this.option&&"recreate"!==e?(this.restoreData(),this._mergeOption(i,t)):Ad(this,i),n=!0}if("timeline"!==e&&"media"!==e||this.restoreData(),!e||"recreate"===e||"timeline"===e){var o=r.getTimelineOption(this);o&&(n=!0,this._mergeOption(o,t))}if(!e||"recreate"===e||"media"===e){var a=r.getMediaOption(this);a.length&&Object(l["k"])(a,(function(e){n=!0,this._mergeOption(e,t)}),this)}return n},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,t){var n=this.option,r=this._componentsMap,i=this._componentsCount,o=[],a=Object(l["f"])(),s=t&&t.replaceMergeMainTypeMap;function u(t){var o=_d(this,t,ci(e[t])),a=r.get(t),u=a?s&&s.get(t)?"replaceMerge":"normalMerge":"replaceAll",c=mi(a,o,u);Oi(c,t,Kc),n[t]=null,r.set(t,null),i.set(t,0);var d,h=[],f=[],p=0;Object(l["k"])(c,(function(e,n){var r=e.existing,i=e.newOption;if(i){var o="series"===t,a=Kc.getClass(t,e.keyInfo.subType,!o);if(!a)return;if("tooltip"===t){if(d)return void 0;d=!0}if(r&&r.constructor===a)r.name=e.keyInfo.name,r.mergeOption(i,this),r.optionUpdated(i,!1);else{var s=Object(l["m"])({componentIndex:n},e.keyInfo);r=new a(i,this,this,s),Object(l["m"])(r,s),e.brandNew&&(r.__requireNewView=!0),r.init(i,this,this),r.optionUpdated(null,!0)}}else r&&(r.mergeOption({},this),r.optionUpdated({},!1));r?(h.push(r.option),f.push(r),p++):(h.push(void 0),f.push(void 0))}),this),n[t]=h,r.set(t,f),i.set(t,p),"series"===t&&Od(this)}dd(this),Object(l["k"])(e,(function(e,t){null!=e&&(Kc.hasClass(t)?t&&(o.push(t),a.set(t,!0)):n[t]=null==n[t]?Object(l["d"])(e):Object(l["I"])(n[t],e,!0))})),s&&s.each((function(e,t){Kc.hasClass(t)&&!a.get(t)&&(o.push(t),a.set(t,!0))})),Kc.topologicalTravel(o,Kc.getAllClassMainTypes(),u,this),this._seriesIndices||Od(this)},t.prototype.getOption=function(){var e=Object(l["d"])(this.option);return Object(l["k"])(e,(function(t,n){if(Kc.hasClass(n)){for(var r=ci(t),i=r.length,o=!1,a=i-1;a>=0;a--)r[a]&&!Ci(r[a])?o=!0:(r[a]=null,!o&&i--);r.length=i,e[n]=r}})),delete e[Id],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,t){var n=this._componentsMap.get(e);if(n){var r=n[t||0];if(r)return r;if(null==t)for(var i=0;i=t:"max"===n?e<=t:e===t}function Qd(e,t){return e.join(",")===t.join(",")}var eh=Xd,th=l["k"],nh=l["A"],rh=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function ih(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=rh.length;n=0;m--){var g=e[m];if(s||(h=g.data.rawIndexOf(g.stackedByDimension,d)),h>=0){var v=g.data.getByRawIndex(g.stackResultDimension,h);if("all"===l||"positive"===l&&v>0||"negative"===l&&v<0||"samesign"===l&&f>=0&&v>0||"samesign"===l&&f<=0&&v<0){f=Ur(f,v),p=v;break}}}return r[0]=f,r[1]=p,r}))}))}var Th,Oh,Lh,Ah,Dh,Eh=function(){function e(e){this.data=e.data||(e.sourceFormat===id?{}:[]),this.sourceFormat=e.sourceFormat||ad,this.seriesLayoutBy=e.seriesLayoutBy||sd,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var n=0;nu&&(u=f)}s[0]=l,s[1]=u}},r=function(){return this._data?this._data.length/this._dimSize:0};function i(e){for(var t=0;t=0&&(s=o.interpolatedValue[u])}return null!=s?s+"":""}))}},e.prototype.getRawValue=function(e,t){return ef(this.getData(t),e)},e.prototype.formatTooltip=function(e,t,n){},e}();function rf(e){var t,n;return l["A"](e)?e.type&&(n=e):t=e,{text:t,frag:n}}function of(e){return new af(e)}var af=function(){function e(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return e.prototype.perform=function(e){var t,n=this._upstream,r=e&&e.skip;if(this._dirty&&n){var i=this.context;i.data=i.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!r&&(t=this._plan(this.context));var o,a=d(this._modBy),s=this._modDataCount||0,u=d(e&&e.modBy),c=e&&e.modDataCount||0;function d(e){return!(e>=1)&&(e=1),e}a===u&&s===c||(t="reset"),(this._dirty||"reset"===t)&&(this._dirty=!1,o=this._doReset(r)),this._modBy=u,this._modDataCount=c;var h=e&&e.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var f=this._dueIndex,p=Math.min(null!=h?this._dueIndex+h:1/0,this._dueEnd);if(!r&&(o||f1&&r>0?s:a}};return o;function a(){return t=e?null:ot},gte:function(e,t){return e>=t}},hf=function(){function e(e,t){if(!Object(l["z"])(t)){var n="";0,Ed(n)}this._opFn=df[e],this._rvalFloat=ni(t)}return e.prototype.evaluate=function(e){return Object(l["z"])(e)?this._opFn(e,this._rvalFloat):this._opFn(ni(e),this._rvalFloat)},e}(),ff=function(){function e(e,t){var n="desc"===e;this._resultLT=n?1:-1,null==t&&(t=n?"min":"max"),this._incomparable="min"===t?-1/0:1/0}return e.prototype.evaluate=function(e,t){var n=Object(l["z"])(e)?e:ni(e),r=Object(l["z"])(t)?t:ni(t),i=isNaN(n),o=isNaN(r);if(i&&(n=this._incomparable),o&&(r=this._incomparable),i&&o){var a=Object(l["C"])(e),s=Object(l["C"])(t);a&&(n=s?e:0),s&&(r=a?t:0)}return nr?-this._resultLT:0},e}(),pf=function(){function e(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=ni(t)}return e.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var n=typeof e;n===this._rvalTypeof||"number"!==n&&"number"!==this._rvalTypeof||(t=ni(e)===this._rvalFloat)}return this._isEQ?t:!t},e}();function mf(e,t){return"eq"===e||"ne"===e?new pf("eq"===e,t):Object(l["q"])(df,e)?new hf(e,t):null}var gf=function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(e){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(e){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(e,t){},e.prototype.retrieveValueFromItem=function(e,t){},e.prototype.convertValue=function(e,t){return lf(e,t)},e}();function vf(e,t){var n=new gf,r=e.data,i=n.sourceFormat=e.sourceFormat,o=e.startIndex,a="";e.seriesLayoutBy!==sd&&Ed(a);var s=[],u={},c=e.dimensionsDefine;if(c)Object(l["k"])(c,(function(e,t){var n=e.name,r={index:t,name:n,displayName:e.displayName};if(s.push(r),null!=n){var i="";Object(l["q"])(u,n)&&Ed(i),u[n]=r}}));else for(var d=0;d65535?Lf:Af}function Pf(){return[1/0,-1/0]}function Rf(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function Nf(e,t,n,r,i){var o=If[n||"float"];if(i){var a=e[t],s=a&&a.length;if(s!==r){for(var l=new o(r),u=0;um[1]&&(m[1]=p)}return this._rawCount=this._count=s,{start:a,end:s}},e.prototype._initDataFromProvider=function(e,t,n){for(var r=this._provider,i=this._chunks,o=this._dimensions,a=o.length,s=this._rawExtent,u=Object(l["H"])(o,(function(e){return e.property})),c=0;cv[1]&&(v[1]=g)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=t,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(e,t){if(!(t>=0&&t=0&&t=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,n=t[e];if(null!=n&&ne))return o;i=o-1}}return-1},e.prototype.indicesOfNearest=function(e,t,n){var r=this._chunks,i=r[e],o=[];if(!i)return o;null==n&&(n=1/0);for(var a=1/0,s=-1,l=0,u=0,c=this.count();u=0&&s<0)&&(a=f,s=h,l=0),h===s&&(o[l++]=u))}return o.length=l,o},e.prototype.getIndices=function(){var e,t=this._indices;if(t){var n=t.constructor,r=this._count;if(n===Array){e=new n(r);for(var i=0;i=d&&y<=h||isNaN(y))&&(s[u++]=m),m++}p=!0}else if(2===i){g=f[r[0]];var b=f[r[1]],_=e[r[1]][0],w=e[r[1]][1];for(v=0;v=d&&y<=h||isNaN(y))&&(x>=_&&x<=w||isNaN(x))&&(s[u++]=m),m++}p=!0}}if(!p)if(1===i)for(v=0;v=d&&y<=h||isNaN(y))&&(s[u++]=k)}else for(v=0;ve[C][1])&&(M=!1)}M&&(s[u++]=t.getRawIndex(v))}return ug[1]&&(g[1]=m)}}}},e.prototype.lttbDownSample=function(e,t){var n,r,i,o=this.clone([e],!0),a=o._chunks,s=a[e],l=this.count(),u=0,c=Math.floor(1/t),d=this.getRawIndex(0),h=new(jf(this._rawCount))(Math.min(2*(Math.ceil(l/c)+2),l));h[u++]=d;for(var f=1;fn&&(n=r,i=b))}C>0&&Ca&&(p=a-u);for(var m=0;mf&&(f=v,h=u+m)}var y=this.getRawIndex(c),b=this.getRawIndex(h);cu-f&&(s=u-f,a.length=s);for(var p=0;pc[1]&&(c[1]=g),d[h++]=v}return i._count=h,i._indices=d,i._updateGetRawIdx(),i},e.prototype.each=function(e,t){if(this._count)for(var n=e.length,r=this._chunks,i=0,o=this.count();is&&(s=c)}return r=[a,s],this._extent[e]=r,r},e.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var n=[],r=this._chunks,i=0;i=0?this._indices[e]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function e(e,t,n,r){return lf(e[r],this._dimensions[r])}Tf={arrayRows:e,objectRows:function(e,t,n,r){return lf(e[t],this._dimensions[r])},keyedColumns:e,original:function(e,t,n,r){var i=e&&(null==e.value?e:e.value);return lf(i instanceof Array?i[r]:i,this._dimensions[r])},typedArray:function(e,t,n,r){return e[r]}}}(),e}(),Yf=Bf,Ff=function(){function e(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var e,t,n=this._sourceHost,r=this._getUpstreamSourceManagers(),i=!!r.length;if(Hf(n)){var o=n,a=void 0,s=void 0,u=void 0;if(i){var c=r[0];c.prepareSource(),u=c.getSource(),a=u.data,s=u.sourceFormat,t=[c._getVersionSign()]}else a=o.get("data",!0),s=Object(l["E"])(a)?od:td,t=[];var d=this._getSourceMetaRawOption()||{},h=u&&u.metaRawOption||{},f=Object(l["P"])(d.seriesLayoutBy,h.seriesLayoutBy)||null,p=Object(l["P"])(d.sourceHeader,h.sourceHeader),m=Object(l["P"])(d.dimensions,h.dimensions),g=f!==h.seriesLayoutBy||!!p!==!!h.sourceHeader||m;e=g?[jh(a,{seriesLayoutBy:f,sourceHeader:p,dimensions:m},s)]:[]}else{var v=n;if(i){var y=this._applyTransform(r);e=y.sourceList,t=y.upstreamSignList}else{var b=v.get("source",!0);e=[jh(b,this._getSourceMetaRawOption(),null)],t=[]}}this._setLocalSource(e,t)},e.prototype._applyTransform=function(e){var t,n=this._sourceHost,r=n.get("transform",!0),i=n.get("fromTransformResult",!0);if(null!=i){var o="";1!==e.length&&Vf(o)}var a=[],s=[];return Object(l["k"])(e,(function(e){e.prepareSource();var t=e.getSource(i||0),n="";null==i||t||Vf(n),a.push(t),s.push(e._getVersionSign())})),r?t=Mf(r,a,{datasetIndex:n.componentIndex}):null!=i&&(t=[Rh(a[0])]),{sourceList:t,upstreamSignList:s}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t1||n>0&&!e.noHeader;return Object(l["k"])(e.blocks,(function(e){var n=Jf(e);n>=t&&(t=n+ +(r&&(!n||Kf(e)&&!e.noHeader)))})),t}return 0}function Qf(e,t,n,r){var i=t.noHeader,o=np(Jf(t)),a=[],s=t.blocks||[];Object(l["b"])(!s||Object(l["t"])(s)),s=s||[];var u=e.orderMode;if(t.sortBlocks&&u){s=s.slice();var c={valueAsc:"asc",valueDesc:"desc"};if(Object(l["q"])(c,u)){var d=new ff(c[u],null);s.sort((function(e,t){return d.evaluate(e.sortParam,t.sortParam)}))}else"seriesDesc"===u&&s.reverse()}Object(l["k"])(s,(function(n,i){var s=t.valueFormatter,u=Zf(n)(s?Object(l["m"])(Object(l["m"])({},e),{valueFormatter:s}):e,n,i>0?o.html:0,r);null!=u&&a.push(u)}));var h="richText"===e.renderMode?a.join(o.richText):rp(r,a.join(""),i?n:o.html);if(i)return h;var f=Cc(t.header,"ordinal",e.useUTC),p=$f(r,e.renderMode).nameStyle,m=Uf(r);return"richText"===e.renderMode?ap(e,f,p)+o.richText+h:rp(r,'
'+U(f)+"
"+h,n)}function ep(e,t,n,r){var i=e.renderMode,o=t.noName,a=t.noValue,s=!t.markerType,u=t.name,c=e.useUTC,d=t.valueFormatter||e.valueFormatter||function(e){return e=Object(l["t"])(e)?e:[e],Object(l["H"])(e,(function(e,t){return Cc(e,Object(l["t"])(p)?p[t]:p,c)}))};if(!o||!a){var h=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),f=o?"":Cc(u,"ordinal",c),p=t.valueType,m=a?[]:d(t.value,t.dataIndex),g=!s||!o,v=!s&&o,y=$f(r,i),b=y.nameStyle,_=y.valueStyle;return"richText"===i?(s?"":h)+(o?"":ap(e,f,b))+(a?"":sp(e,m,g,v,_)):rp(r,(s?"":h)+(o?"":ip(f,!s,b))+(a?"":op(m,g,v,_)),n)}}function tp(e,t,n,r,i,o){if(e){var a=Zf(e),s={useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter};return a(s,e,0,o)}}function np(e){return{html:Gf[e],richText:qf[e]}}function rp(e,t,n){var r='
',i="margin: "+n+"px 0 0",o=Uf(e);return'
'+t+r+"
"}function ip(e,t,n){var r=t?"margin-left:2px":"";return''+U(e)+""}function op(e,t,n,r){var i=n?"10px":"20px",o=t?"float:right;margin-left:"+i:"";return e=Object(l["t"])(e)?e:[e],''+Object(l["H"])(e,(function(e){return U(e)})).join("  ")+""}function ap(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function sp(e,t,n,r,i){var o=[i],a=r?10:20;return n&&o.push({padding:[0,0,0,a],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(Object(l["t"])(t)?t.join(" "):t,o)}function lp(e,t){var n=e.getData().getItemVisual(t,"style"),r=n[e.visualDrawType];return Ec(r)}function up(e,t){var n=e.get("padding");return null!=n?n:"richText"===t?[8,10]:10}var cp=function(){function e(){this.richTextStyles={},this._nextStyleNameId=ii()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(e,t,n){var r="richText"===n?this._generateStyleName():null,i=Dc({color:t,type:e,renderMode:n,markerId:r});return Object(l["C"])(i)?i:(this.richTextStyles[r]=i.style,i.content)},e.prototype.wrapRichTextStyle=function(e,t){var n={};Object(l["t"])(t)?Object(l["k"])(t,(function(e){return Object(l["m"])(n,e)})):Object(l["m"])(n,t);var r=this._generateStyleName();return this.richTextStyles[r]=n,"{"+r+"|"+e+"}"},e}();function dp(e){var t,n,r,i,o=e.series,a=e.dataIndex,s=e.multipleSeries,u=o.getData(),c=u.mapDimensionsAll("defaultedTooltip"),d=c.length,h=o.getRawValue(a),f=Object(l["t"])(h),p=lp(o,a);if(d>1||f&&!d){var m=hp(h,o,a,c,p);t=m.inlineValues,n=m.inlineValueTypes,r=m.blocks,i=m.inlineValues[0]}else if(d){var g=u.getDimensionInfo(c[0]);i=t=ef(u,a,c[0]),n=g.type}else i=t=f?h[0]:h;var v=Si(o),y=v&&o.name||"",b=u.getName(a),_=s?y:b;return Xf("section",{header:y,noHeader:s||!v,sortParam:i,blocks:[Xf("nameValue",{markerType:"item",markerColor:p,name:_,noName:!Object(l["T"])(_),value:t,valueType:n,dataIndex:a})].concat(r||[])})}function hp(e,t,n,r,i){var o=t.getData(),a=Object(l["N"])(e,(function(e,t,n){var r=o.getDimensionInfo(n);return e||r&&!1!==r.tooltip&&null!=r.displayName}),!1),s=[],u=[],c=[];function d(e,t){var n=o.getDimensionInfo(t);n&&!1!==n.otherDims.tooltip&&(a?c.push(Xf("nameValue",{markerType:"subItem",markerColor:i,name:n.displayName,value:e,valueType:n.type})):(s.push(e),u.push(n.type)))}return r.length?Object(l["k"])(r,(function(e){d(ef(o,n,e),e)})):Object(l["k"])(e,d),{inlineValues:s,inlineValueTypes:u,blocks:c}}var fp=Ei();function pp(e,t){return e.getName(t)||e.getId(t)}var mp="__universalTransitionEnabled",gp=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return a(t,e),t.prototype.init=function(e,t,n){this.seriesIndex=this.componentIndex,this.dataTask=of({count:bp,reset:_p}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n);var r=fp(this).sourceManager=new Ff(this);r.prepareSource();var i=this.getInitialData(e,n);xp(i,this),this.dataTask.context.data=i,fp(this).dataBeforeProcessed=i,vp(this),this._initSelectedMapFromData(i)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=Vc(this),r=n?Uc(e):{},i=this.subType;Kc.hasClass(i)&&(i+="Series"),l["I"](e,t.getTheme().get(this.subType)),l["I"](e,this.getDefaultOption()),di(e,"label",["show"]),this.fillDataTextStyle(e.data),n&&Wc(e,r,n)},t.prototype.mergeOption=function(e,t){e=l["I"](this.option,e,!0),this.fillDataTextStyle(e.data);var n=Vc(this);n&&Wc(this.option,e,n);var r=fp(this).sourceManager;r.dirty(),r.prepareSource();var i=this.getInitialData(e,t);xp(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,fp(this).dataBeforeProcessed=i,vp(this),this._initSelectedMapFromData(i)},t.prototype.fillDataTextStyle=function(e){if(e&&!l["E"](e))for(var t=["show"],n=0;nthis.getShallow("animationThreshold")&&(t=!1),!!t},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,t,n){var r=this.ecModel,i=kd.prototype.getColorFromPalette.call(this,e,t,n);return i||(i=r.getColorFromPalette(e,t,n)),i},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,t){this._innerSelect(this.getData(t),e)},t.prototype.unselect=function(e,t){var n=this.option.selectedMap;if(n){var r=this.option.selectedMode,i=this.getData(t);if("series"===r||"all"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var o=0;o=0&&n.push(i)}return n},t.prototype.isSelected=function(e,t){var n=this.option.selectedMap;if(!n)return!1;var r=this.getData(t);return("all"===n||n[pp(r,e)])&&!r.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[mp])return!0;var e=this.option.universalTransition;return!!e&&(!0===e||e&&e.enabled)},t.prototype._innerSelect=function(e,t){var n,r,i=this.option,o=i.selectedMode,a=t.length;if(o&&a)if("series"===o)i.selectedMap="all";else if("multiple"===o){l["A"](i.selectedMap)||(i.selectedMap={});for(var s=i.selectedMap,u=0;u0&&this._innerSelect(e,t)}},t.registerClass=function(e){return Kc.registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",e.visualDrawType="fill"}(),t}(Kc);function vp(e){var t=e.name;Si(e)||(e.name=yp(e)||t)}function yp(e){var t=e.getRawData(),n=t.mapDimensionsAll("seriesName"),r=[];return l["k"](n,(function(e){var n=t.getDimensionInfo(e);n.displayName&&r.push(n.displayName)})),r.join(" ")}function bp(e){return e.model.getRawData().count()}function _p(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),wp}function wp(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function xp(e,t){l["k"](l["e"](e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),(function(n){e.wrapMethod(n,l["h"](kp,t))}))}function kp(e,t){var n=Mp(e);return n&&n.setOutputEnd((t||this).count()),t}function Mp(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var r=n.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(e.uid))}return r}}l["K"](gp,nf),l["K"](gp,kd),Ji(gp,Kc);var Sp=gp,Cp=function(){function e(){this.group=new kr,this.uid=Lu("viewComponent")}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){},e.prototype.updateLayout=function(e,t,n,r){},e.prototype.updateVisual=function(e,t,n,r){},e.prototype.toggleBlurSeries=function(e,t,n){},e.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},e}();Ki(Cp),ro(Cp);var Tp=Cp;function Op(){var e=Ei();return function(t){var n=e(t),r=t.pipelineContext,i=!!n.large,o=!!n.progressiveRender,a=n.large=!(!r||!r.large),s=n.progressiveRender=!(!r||!r.progressiveRender);return!(i===a&&o===s)&&"reset"}}var Lp=ba.CMD,Ap=[[],[],[]],Dp=Math.sqrt,Ep=Math.atan2;function Ip(e,t){if(t){var n,r,i,o,a,s,l=e.data,u=e.len(),c=Lp.M,d=Lp.C,h=Lp.L,f=Lp.R,p=Lp.A,m=Lp.Q;for(i=0,o=0;i1&&(a*=jp(p),s*=jp(p));var m=(i===o?-1:1)*jp((a*a*(s*s)-a*a*(f*f)-s*s*(h*h))/(a*a*(f*f)+s*s*(h*h)))||0,g=m*a*f/s,v=m*-s*h/a,y=(e+n)/2+Rp(d)*g-Pp(d)*v,b=(t+r)/2+Pp(d)*g+Rp(d)*v,_=Fp([1,0],[(h-g)/a,(f-v)/s]),w=[(h-g)/a,(f-v)/s],x=[(-1*h-g)/a,(-1*f-v)/s],k=Fp(w,x);if(Yp(w,x)<=-1&&(k=Np),Yp(w,x)>=1&&(k=0),k<0){var M=Math.round(k/Np*1e6)/1e6;k=2*Np+M%2*Np}c.addData(u,y,b,a,s,_,k,d,o)}var Hp=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,Vp=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Wp(e){var t=new ba;if(!e)return t;var n,r=0,i=0,o=r,a=i,s=ba.CMD,l=e.match(Hp);if(!l)return t;for(var u=0;uA*A+D*D&&(M=C,S=T),{cx:M,cy:S,x0:-c,y0:-d,x1:M*(i/w-1),y1:S*(i/w-1)}}function vm(e){var t;if(Object(l["t"])(e)){var n=e.length;if(!n)return e;t=1===n?[e[0],e[0],0,0]:2===n?[e[0],e[0],e[1],e[1]]:3===n?e.concat(e[2]):e}else t=[e,e,e,e];return t}function ym(e,t){var n,r=hm(t.r,0),i=hm(t.r0||0,0),o=r>0,a=i>0;if(o||a){if(o||(r=i,i=0),i>r){var s=r;r=i,i=s}var l=t.startAngle,u=t.endAngle;if(!isNaN(l)&&!isNaN(u)){var c=t.cx,d=t.cy,h=!!t.clockwise,f=cm(u-l),p=f>om&&f%om;if(p>pm&&(f=p),r>pm)if(f>om-pm)e.moveTo(c+r*sm(l),d+r*am(l)),e.arc(c,d,r,l,u,!h),i>pm&&(e.moveTo(c+i*sm(u),d+i*am(u)),e.arc(c,d,i,u,l,h));else{var m=void 0,g=void 0,v=void 0,y=void 0,b=void 0,_=void 0,w=void 0,x=void 0,k=void 0,M=void 0,S=void 0,C=void 0,T=void 0,O=void 0,L=void 0,A=void 0,D=r*sm(l),E=r*am(l),I=i*sm(u),j=i*am(u),P=f>pm;if(P){var R=t.cornerRadius;R&&(n=vm(R),m=n[0],g=n[1],v=n[2],y=n[3]);var N=cm(r-i)/2;if(b=fm(N,v),_=fm(N,y),w=fm(N,m),x=fm(N,g),S=k=hm(b,_),C=M=hm(w,x),(k>pm||M>pm)&&(T=r*sm(u),O=r*am(u),L=i*sm(l),A=i*am(l),fpm){var U=fm(v,S),$=fm(y,S),G=gm(L,A,D,E,r,U,h),q=gm(T,O,I,j,r,$,h);e.moveTo(c+G.cx+G.x0,d+G.cy+G.y0),S0&&e.arc(c+G.cx,d+G.cy,U,um(G.y0,G.x0),um(G.y1,G.x1),!h),e.arc(c,d,r,um(G.cy+G.y1,G.cx+G.x1),um(q.cy+q.y1,q.cx+q.x1),!h),$>0&&e.arc(c+q.cx,d+q.cy,$,um(q.y1,q.x1),um(q.y0,q.x0),!h))}else e.moveTo(c+D,d+E),e.arc(c,d,r,l,u,!h);else e.moveTo(c+D,d+E);if(i>pm&&P)if(C>pm){U=fm(m,C),$=fm(g,C),G=gm(I,j,T,O,i,-$,h),q=gm(D,E,L,A,i,-U,h);e.lineTo(c+G.cx+G.x0,d+G.cy+G.y0),C0&&e.arc(c+G.cx,d+G.cy,$,um(G.y0,G.x0),um(G.y1,G.x1),!h),e.arc(c,d,i,um(G.cy+G.y1,G.cx+G.x1),um(q.cy+q.y1,q.cx+q.x1),h),U>0&&e.arc(c+q.cx,d+q.cy,U,um(q.y1,q.x1),um(q.y0,q.x0),!h))}else e.lineTo(c+I,d+j),e.arc(c,d,i,u,l,h);else e.lineTo(c+I,d+j)}else e.moveTo(c,d);e.closePath()}}}var bm=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0}return e}(),_m=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.getDefaultShape=function(){return new bm},t.prototype.buildPath=function(e,t){ym(e,t)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(Ua);_m.prototype.type="sector";var wm=_m,xm=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),km=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.getDefaultShape=function(){return new xm},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=2*Math.PI;e.moveTo(n+t.r,r),e.arc(n,r,t.r,0,i,!1),e.moveTo(n+t.r0,r),e.arc(n,r,t.r0,0,i,!0)},t}(Ua);km.prototype.type="ring";var Mm=km;function Sm(e,t,n,r){var i,o,a,s,l=[],u=[],c=[],h=[];if(r){a=[1/0,1/0],s=[-1/0,-1/0];for(var p=0,g=e.length;p=2){if(r){var o=Sm(i,r,n,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var a=i.length,s=0;s<(n?a:a-1);s++){var l=o[2*s],u=o[2*s+1],c=i[(s+1)%a];e.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{e.moveTo(i[0][0],i[0][1]);s=1;for(var d=i.length;seg[1]){if(a=!1,i)return a;var u=Math.abs(eg[0]-Qm[1]),c=Math.abs(Qm[0]-eg[1]);Math.min(u,c)>r.len()&&(uMath.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function Tg(e){return!e.isGroup}function Og(e){return null!=e.shape}function Lg(e,t,n){if(e&&t){var r=i(e);t.traverse((function(e){if(Tg(e)&&e.anid){var t=r[e.anid];if(t){var i=o(e);e.attr(o(t)),Wl(e,i,n,Ts(e).dataIndex)}}}))}function i(e){var t={};return e.traverse((function(e){Tg(e)&&e.anid&&(t[e.anid]=e)})),t}function o(e){var t={x:e.x,y:e.y,rotation:e.rotation};return Og(e)&&(t.shape=Object(l["m"])({},e.shape)),t}}function Ag(e,t){return Object(l["H"])(e,(function(e){var n=e[0];n=lg(n,t.x),n=ug(n,t.x+t.width);var r=e[1];return r=lg(r,t.y),r=ug(r,t.y+t.height),[n,r]}))}function Dg(e,t){var n=lg(e.x,t.x),r=ug(e.x+e.width,t.x+t.width),i=lg(e.y,t.y),o=ug(e.y+e.height,t.y+t.height);if(r>=n&&o>=i)return{x:n,y:i,width:r-n,height:o-i}}function Eg(e,t,n){var r=Object(l["m"])({rectHover:!0},t),i=r.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},e)return 0===e.indexOf("image://")?(i.image=e.slice(8),Object(l["i"])(i,n),new Qa(r)):gg(e.replace("path://",""),r,n,"center")}function Ig(e,t,n,r,i){for(var o=0,a=i[i.length-1];o1)return!1;var g=Pg(f,p,c,d)/h;return!(g<0||g>1)}function Pg(e,t,n,r){return e*r-n*t}function Rg(e){return e<=1e-6&&e>=-1e-6}function Ng(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,i=Object(l["C"])(t)?{formatter:t}:t,o=n.mainType,a=n.componentIndex,s={componentType:o,name:r,$vars:["name"]};s[o+"Index"]=a;var u=e.formatterParamsExtra;u&&Object(l["k"])(Object(l["F"])(u),(function(e){Object(l["q"])(s,e)||(s[e]=u[e],s.$vars.push(e))}));var c=Ts(e.el);c.componentMainType=o,c.componentIndex=a,c.tooltipConfig={name:r,option:Object(l["i"])({content:r,encodeHTMLContent:!0,formatterParams:s},i)}}function Bg(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function Yg(e,t){if(e)if(Object(l["t"])(e))for(var n=0;n=0?d():c=setTimeout(d,-i),l=r};return h.clear=function(){c&&(clearTimeout(c),c=null)},h.debounceNextCall=function(e){s=e},h}function Qg(e,t,n,r){var i=e[t];if(i){var o=i[Xg]||i,a=i[Zg],s=i[Kg];if(s!==n||a!==r){if(null==n||!r)return e[t]=o;i=e[t]=Jg(o,n,"debounce"===r),i[Xg]=o,i[Zg]=r,i[Kg]=n}return i}}function ev(e,t){var n=e[t];n&&n[Xg]&&(n.clear&&n.clear(),e[t]=n[Xg])}var tv=Ei(),nv={itemStyle:io(ku,!0),lineStyle:io(_u,!0)},rv={lineStyle:"stroke",itemStyle:"fill"};function iv(e,t){var n=e.visualStyleMapper||nv[t];return n||(console.warn("Unknown style type '"+t+"'."),nv.itemStyle)}function ov(e,t){var n=e.visualDrawType||rv[t];return n||(console.warn("Unknown style type '"+t+"'."),"fill")}var av={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",i=e.getModel(r),o=iv(e,r),a=o(i),s=i.getShallow("decal");s&&(n.setVisual("decal",s),s.dirty=!0);var u=ov(e,r),c=a[u],d=Object(l["w"])(c)?c:null,h="auto"===a.fill||"auto"===a.stroke;if(!a[u]||d||h){var f=e.getColorFromPalette(e.name,null,t.getSeriesCount());a[u]||(a[u]=f,n.setVisual("colorFromPalette",!0)),a.fill="auto"===a.fill||Object(l["w"])(a.fill)?f:a.fill,a.stroke="auto"===a.stroke||Object(l["w"])(a.stroke)?f:a.stroke}if(n.setVisual("style",a),n.setVisual("drawType",u),!t.isSeriesFiltered(e)&&d)return n.setVisual("colorFromPalette",!1),{dataEach:function(t,n){var r=e.getDataParams(n),i=Object(l["m"])({},a);i[u]=d(r),t.setItemVisual(n,"style",i)}}}},sv=new Tu,lv={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.ignoreStyleOnData&&!t.isSeriesFiltered(e)){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",i=iv(e,r),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(e,t){var n=e.getRawDataItem(t);if(n&&n[r]){sv.option=n[r];var a=i(sv),s=e.ensureUniqueItemVisual(t,"style");Object(l["m"])(s,a),sv.option.decal&&(e.setItemVisual(t,"decal",sv.option.decal),sv.option.decal.dirty=!0),o in a&&e.setItemVisual(t,"colorFromPalette",!1)}}:null}}}},uv={performRawSeries:!0,overallReset:function(e){var t=Object(l["f"])();e.eachSeries((function(e){var n=e.getColorBy();if(!e.isColorBySeries()){var r=e.type+"-"+n,i=t.get(r);i||(i={},t.set(r,i)),tv(e).scope=i}})),e.eachSeries((function(t){if(!t.isColorBySeries()&&!e.isSeriesFiltered(t)){var n=t.getRawData(),r={},i=t.getData(),o=tv(t).scope,a=t.visualStyleAccessPath||"itemStyle",s=ov(t,a);i.each((function(e){var t=i.getRawIndex(e);r[t]=e})),n.each((function(e){var a=r[e],l=i.getItemVisual(a,"colorFromPalette");if(l){var u=i.ensureUniqueItemVisual(a,"style"),c=n.getName(e)||e+"",d=n.count();u[s]=t.getColorFromPalette(c,o,d)}}))}}))}},cv=Math.PI;function dv(e,t){t=t||{},l["i"](t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new kr,r=new ls({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var i,o=new Cs({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new ls({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});return n.add(a),t.showSpinner&&(i=new Wm({shape:{startAngle:-cv/2,endAngle:-cv/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),i.animateShape(!0).when(1e3,{endAngle:3*cv/2}).start("circularInOut"),i.animateShape(!0).when(1e3,{startAngle:3*cv/2}).delay(300).start("circularInOut"),n.add(i)),n.resize=function(){var n=o.getBoundingRect().width,s=t.showSpinner?t.spinnerRadius:0,l=(e.getWidth()-2*s-(t.showSpinner&&n?10:0)-n)/2-(t.showSpinner&&n?0:5+n/2)+(t.showSpinner?0:n/2)+(n?0:s),u=e.getHeight()/2;t.showSpinner&&i.setShape({cx:l,cy:u}),a.setShape({x:l-s,y:u-s,width:2*s,height:2*s}),r.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n}var hv=function(){function e(e,t,n,r){this._stageTaskMap=Object(l["f"])(),this.ecInstance=e,this.api=t,n=this._dataProcessorHandlers=n.slice(),r=this._visualHandlers=r.slice(),this._allHandlers=n.concat(r)}return e.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each((function(e){var t=e.overallTask;t&&t.dirty()}))},e.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),r=n.context,i=!t&&n.progressiveEnabled&&(!r||r.progressiveRender)&&e.__idxInPipeline>n.blockIndex,o=i?n.step:null,a=r&&r.modDataCount,s=null!=a?Math.ceil(a/o):null;return{step:o,modBy:s,modDataCount:a}}},e.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},e.prototype.updateStreamModes=function(e,t){var n=this._pipelineMap.get(e.uid),r=e.getData(),i=r.count(),o=n.progressiveEnabled&&t.incrementalPrepareRender&&i>=n.threshold,a=e.get("large")&&i>=e.get("largeThreshold"),s="mod"===e.get("progressiveChunkMode")?i:null;e.pipelineContext=n.context={progressiveRender:o,modDataCount:s,large:a}},e.prototype.restorePipelines=function(e){var t=this,n=t._pipelineMap=Object(l["f"])();e.eachSeries((function(e){var r=e.getProgressive(),i=e.uid;n.set(i,{id:i,head:null,tail:null,threshold:e.getProgressiveThreshold(),progressiveEnabled:r&&!(e.preventIncremental&&e.preventIncremental()),blockIndex:-1,step:Math.round(r||700),count:0}),t._pipe(e,e.dataTask)}))},e.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;Object(l["k"])(this._allHandlers,(function(r){var i=e.get(r.uid)||e.set(r.uid,{}),o="";Object(l["b"])(!(r.reset&&r.overallReset),o),r.reset&&this._createSeriesStageTask(r,i,t,n),r.overallReset&&this._createOverallStageTask(r,i,t,n)}),this)},e.prototype.prepareView=function(e,t,n,r){var i=e.renderTask,o=i.context;o.model=t,o.ecModel=n,o.api=r,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},e.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},e.prototype.performVisualTasks=function(e,t,n){this._performStageTasks(this._visualHandlers,e,t,n)},e.prototype._performStageTasks=function(e,t,n,r){r=r||{};var i=!1,o=this;function a(e,t){return e.setDirty&&(!e.dirtyMap||e.dirtyMap.get(t.__pipeline.id))}Object(l["k"])(e,(function(e,s){if(!r.visualType||r.visualType===e.visualType){var l=o._stageTaskMap.get(e.uid),u=l.seriesTaskMap,c=l.overallTask;if(c){var d,h=c.agentStubMap;h.each((function(e){a(r,e)&&(e.dirty(),d=!0)})),d&&c.dirty(),o.updatePayload(c,n);var f=o.getPerformArgs(c,r.block);h.each((function(e){e.perform(f)})),c.perform(f)&&(i=!0)}else u&&u.each((function(s,l){a(r,s)&&s.dirty();var u=o.getPerformArgs(s,r.block);u.skip=!e.performRawSeries&&t.isSeriesFiltered(s.context.model),o.updatePayload(s,n),s.perform(u)&&(i=!0)}))}})),this.unfinished=i||this.unfinished},e.prototype.performSeriesTasks=function(e){var t;e.eachSeries((function(e){t=e.dataTask.perform()||t})),this.unfinished=t||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each((function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)}))},e.prototype.updatePayload=function(e,t){"remain"!==t&&(e.context.payload=t)},e.prototype._createSeriesStageTask=function(e,t,n,r){var i=this,o=t.seriesTaskMap,a=t.seriesTaskMap=Object(l["f"])(),s=e.seriesType,u=e.getTargetSeries;function c(t){var s=t.uid,l=a.set(s,o&&o.get(s)||of({plan:vv,reset:yv,count:wv}));l.context={model:t,ecModel:n,api:r,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(t,l)}e.createOnAllSeries?n.eachRawSeries(c):s?n.eachRawSeriesByType(s,c):u&&u(n,r).each(c)},e.prototype._createOverallStageTask=function(e,t,n,r){var i=this,o=t.overallTask=t.overallTask||of({reset:fv});o.context={ecModel:n,api:r,overallReset:e.overallReset,scheduler:i};var a=o.agentStubMap,s=o.agentStubMap=Object(l["f"])(),u=e.seriesType,c=e.getTargetSeries,d=!0,h=!1,f="";function p(e){var t=e.uid,n=s.set(t,a&&a.get(t)||(h=!0,of({reset:pv,onDirty:gv})));n.context={model:e,overallProgress:d},n.agent=o,n.__block=d,i._pipe(e,n)}Object(l["b"])(!e.createOnAllSeries,f),u?n.eachRawSeriesByType(u,p):c?c(n,r).each(p):(d=!1,Object(l["k"])(n.getSeries(),p)),h&&o.dirty()},e.prototype._pipe=function(e,t){var n=e.uid,r=this._pipelineMap.get(n);!r.head&&(r.head=t),r.tail&&r.tail.pipe(t),r.tail=t,t.__idxInPipeline=r.count++,t.__pipeline=r},e.wrapStageHandler=function(e,t){return Object(l["w"])(e)&&(e={overallReset:e,seriesType:xv(e)}),e.uid=Lu("stageHandler"),t&&(e.visualType=t),e},e}();function fv(e){e.overallReset(e.ecModel,e.api,e.payload)}function pv(e){return e.overallProgress&&mv}function mv(){this.agent.dirty(),this.getDownstream().dirty()}function gv(){this.agent&&this.agent.dirty()}function vv(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function yv(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=ci(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?Object(l["H"])(t,(function(e,t){return _v(t)})):bv}var bv=_v(0);function _v(e){return function(t,n){var r=n.data,i=n.resetDefines[e];if(i&&i.dataEach)for(var o=t.start;o0&&c===i.length-u.length){var d=i.slice(0,c);"data"!==d&&(t.mainType=d,t[u.toLowerCase()]=e,s=!0)}}a.hasOwnProperty(i)&&(n[i]=e,s=!0),s||(r[i]=e)}))}return{cptQuery:t,dataQuery:n,otherQuery:r}},e.prototype.filter=function(e,t){var n=this.eventInfo;if(!n)return!0;var r=n.targetEl,i=n.packedEvent,o=n.model,a=n.view;if(!o||!a)return!0;var s=t.cptQuery,l=t.dataQuery;return u(s,o,"mainType")&&u(s,o,"subType")&&u(s,o,"index","componentIndex")&&u(s,o,"name")&&u(s,o,"id")&&u(l,i,"name")&&u(l,i,"dataIndex")&&u(l,i,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(e,t.otherQuery,r,i));function u(e,t,n,r){return null==e[n]||t[r||n]===e[n]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),Nv=["symbol","symbolSize","symbolRotate","symbolOffset"],Bv=Nv.concat(["symbolKeepAspect"]),Yv={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendIcon&&n.setVisual("legendIcon",e.legendIcon),e.hasSymbolVisual){for(var r={},i={},o=!1,a=0;a=0&&cy(l)?l:.5;var u=e.createRadialGradient(a,s,0,a,s,l);return u}function fy(e,t,n){for(var r="radial"===t.type?hy(e,t,n):dy(e,t,n),i=t.colorStops,o=0;o0?"dashed"===e?[4*t,2*t]:"dotted"===e?[t]:Object(l["z"])(e)?[e]:Object(l["t"])(e)?e:null:null}function yy(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&vy(t.lineDash,t.lineWidth),r=t.lineDashOffset;if(n){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&1!==i&&(n=Object(l["H"])(n,(function(e){return e/i})),r/=i)}return[n,r]}var by=new ba(!0);function _y(e){var t=e.stroke;return!(null==t||"none"===t||!(e.lineWidth>0))}function wy(e){return"string"===typeof e&&"none"!==e}function xy(e){var t=e.fill;return null!=t&&"none"!==t}function ky(e,t){if(null!=t.fillOpacity&&1!==t.fillOpacity){var n=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=n}else e.fill()}function My(e,t){if(null!=t.strokeOpacity&&1!==t.strokeOpacity){var n=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=n}else e.stroke()}function Sy(e,t,n){var r=co(t.image,t.__image,n);if(fo(r)){var i=e.createPattern(r,t.repeat||"repeat");if("function"===typeof DOMMatrix&&i&&i.setTransform){var o=new DOMMatrix;o.translateSelf(t.x||0,t.y||0),o.rotateSelf(0,0,(t.rotation||0)*l["a"]),o.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(o)}return i}}function Cy(e,t,n,r){var i,o=_y(n),a=xy(n),s=n.strokePercent,l=s<1,u=!t.path;t.silent&&!l||!u||t.createPathProxy();var c=t.path||by,d=t.__dirty;if(!r){var h=n.fill,f=n.stroke,p=a&&!!h.colorStops,m=o&&!!f.colorStops,g=a&&!!h.image,v=o&&!!f.image,y=void 0,b=void 0,_=void 0,w=void 0,x=void 0;(p||m)&&(x=t.getBoundingRect()),p&&(y=d?fy(e,h,x):t.__canvasFillGradient,t.__canvasFillGradient=y),m&&(b=d?fy(e,f,x):t.__canvasStrokeGradient,t.__canvasStrokeGradient=b),g&&(_=d||!t.__canvasFillPattern?Sy(e,h,t):t.__canvasFillPattern,t.__canvasFillPattern=_),v&&(w=d||!t.__canvasStrokePattern?Sy(e,f,t):t.__canvasStrokePattern,t.__canvasStrokePattern=_),p?e.fillStyle=y:g&&(_?e.fillStyle=_:a=!1),m?e.strokeStyle=b:v&&(w?e.strokeStyle=w:o=!1)}var k,M,S=t.getGlobalScale();c.setScale(S[0],S[1],t.segmentIgnoreThreshold),e.setLineDash&&n.lineDash&&(i=yy(t),k=i[0],M=i[1]);var C=!0;(u||d&Qe)&&(c.setDPR(e.dpr),l?c.setContext(null):(c.setContext(e),C=!1),c.reset(),t.buildPath(c,t.shape,r),c.toStatic(),t.pathUpdated()),C&&c.rebuildPath(e,l?s:1),k&&(e.setLineDash(k),e.lineDashOffset=M),r||(n.strokeFirst?(o&&My(e,n),a&&ky(e,n)):(a&&ky(e,n),o&&My(e,n))),k&&e.setLineDash([])}function Ty(e,t,n){var r=t.__image=co(n.image,t.__image,t,t.onload);if(r&&fo(r)){var i=n.x||0,o=n.y||0,a=t.getWidth(),s=t.getHeight(),l=r.width/r.height;if(null==a&&null!=s?a=s*l:null==s&&null!=a?s=a/l:null==a&&null==s&&(a=r.width,s=r.height),n.sWidth&&n.sHeight){var u=n.sx||0,c=n.sy||0;e.drawImage(r,u,c,n.sWidth,n.sHeight,i,o,a,s)}else if(n.sx&&n.sy){u=n.sx,c=n.sy;var d=a-u,h=s-c;e.drawImage(r,u,c,d,h,i,o,a,s)}else e.drawImage(r,i,o,a,s)}}function Oy(e,t,n){var r,i=n.text;if(null!=i&&(i+=""),i){e.font=n.font||Jn["a"],e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var o=void 0,a=void 0;e.setLineDash&&n.lineDash&&(r=yy(t),o=r[0],a=r[1]),o&&(e.setLineDash(o),e.lineDashOffset=a),n.strokeFirst?(_y(n)&&e.strokeText(i,n.x,n.y),xy(n)&&e.fillText(i,n.x,n.y)):(xy(n)&&e.fillText(i,n.x,n.y),_y(n)&&e.strokeText(i,n.x,n.y)),o&&e.setLineDash([])}}var Ly=["shadowBlur","shadowOffsetX","shadowOffsetY"],Ay=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Dy(e,t,n,r,i){var o=!1;if(!r&&(n=n||{},t===n))return!1;if(r||t.opacity!==n.opacity){Hy(e,i),o=!0;var a=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(a)?Ao.opacity:a}(r||t.blend!==n.blend)&&(o||(Hy(e,i),o=!0),e.globalCompositeOperation=t.blend||Ao.blend);for(var s=0;s0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,t,n){if(!this[Sb])if(this._disposed)o_(this.id);else{var r,i,o;if(Object(l["A"])(t)&&(n=t.lazyUpdate,r=t.silent,i=t.replaceMerge,o=t.transition,t=t.notMerge),this[Sb]=!0,!this._model||t){var a=new eh(this._api),s=this._theme,u=this._model=new zd;u.scheduler=this._scheduler,u.ssr=this._ssr,u.init(null,null,null,s,this._locale,a)}this._model.setOption(e,{replaceMerge:i},u_);var c={seriesTransition:o,optionChanged:!0};if(n)this[Cb]={silent:r,updateParams:c},this[Sb]=!1,this.getZr().wakeUp();else{try{Rb(this),Yb.update.call(this,null,c)}catch(d){throw this[Cb]=null,this[Sb]=!1,d}this._ssr||this._zr.flush(),this[Cb]=null,this[Sb]=!1,Vb.call(this,r),Wb.call(this,r)}}},t.prototype.setTheme=function(){Dd("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||s["a"].hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var t=this._zr.painter;return t.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var t=this._zr.painter;return t.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(s["a"].svgSupported){var e=this._zr,t=e.storage.getDisplayList();return Object(l["k"])(t,(function(e){e.stopAnimation(null,!0)})),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(!this._disposed){e=e||{};var t=e.excludeComponents,n=this._model,r=[],i=this;Object(l["k"])(t,(function(e){n.eachComponent({mainType:e},(function(e){var t=i._componentsMap[e.__viewId];t.group.ignore||(r.push(t),t.group.ignore=!0)}))}));var o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return Object(l["k"])(r,(function(e){e.group.ignore=!1})),o}o_(this.id)},t.prototype.getConnectedDataURL=function(e){if(!this._disposed){var t="svg"===e.type,n=this.group,r=Math.min,i=Math.max,o=1/0;if(p_[n]){var a=o,s=o,u=-o,c=-o,d=[],h=e&&e.pixelRatio||this.getDevicePixelRatio();Object(l["k"])(f_,(function(o,h){if(o.group===n){var f=t?o.getZr().painter.getSvgDom().innerHTML:o.renderToCanvas(Object(l["d"])(e)),p=o.getDom().getBoundingClientRect();a=r(p.left,a),s=r(p.top,s),u=i(p.right,u),c=i(p.bottom,c),d.push({dom:f,left:p.left,top:p.top})}})),a*=h,s*=h,u*=h,c*=h;var f=u-a,p=c-s,m=Jn["d"].createCanvas(),g=Ar(m,{renderer:t?"svg":"canvas"});if(g.resize({width:f,height:p}),t){var v="";return Object(l["k"])(d,(function(e){var t=e.left-a,n=e.top-s;v+=''+e.dom+""})),g.painter.getSvgRoot().innerHTML=v,e.connectedBackgroundColor&&g.painter.setBackgroundColor(e.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}return e.connectedBackgroundColor&&g.add(new ls({shape:{x:0,y:0,width:f,height:p},style:{fill:e.connectedBackgroundColor}})),Object(l["k"])(d,(function(e){var t=new Qa({style:{x:e.left*h-a,y:e.top*h-s,image:e.dom}});g.add(t)})),g.refreshImmediately(),m.toDataURL("image/"+(e&&e.type||"png"))}return this.getDataURL(e)}o_(this.id)},t.prototype.convertToPixel=function(e,t){return Fb(this,"convertToPixel",e,t)},t.prototype.convertFromPixel=function(e,t){return Fb(this,"convertFromPixel",e,t)},t.prototype.containPixel=function(e,t){if(!this._disposed){var n,r=this._model,i=ji(r,e);return Object(l["k"])(i,(function(e,r){r.indexOf("Models")>=0&&Object(l["k"])(e,(function(e){var i=e.coordinateSystem;if(i&&i.containPoint)n=n||!!i.containPoint(t);else if("seriesModels"===r){var o=this._chartsMap[e.__viewId];o&&o.containPoint&&(n=n||o.containPoint(t,e))}else 0}),this)}),this),!!n}o_(this.id)},t.prototype.getVisual=function(e,t){var n=this._model,r=ji(n,e,{defaultMainType:"series"}),i=r.seriesModel;var o=i.getData(),a=r.hasOwnProperty("dataIndexInside")?r.dataIndexInside:r.hasOwnProperty("dataIndex")?o.indexOfRawIndex(r.dataIndex):null;return null!=a?zv(o,a,t):Hv(o,t)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;Object(l["k"])(i_,(function(t){var n=function(n){var r,i=e.getModel(),o=n.target,a="globalout"===t;if(a?r={}:o&&Gv(o,(function(e){var t=Ts(e);if(t&&null!=t.dataIndex){var n=t.dataModel||i.getSeriesByIndex(t.seriesIndex);return r=n&&n.getDataParams(t.dataIndex,t.dataType,o)||{},!0}if(t.eventData)return r=Object(l["m"])({},t.eventData),!0}),!0),r){var s=r.componentType,u=r.componentIndex;"markLine"!==s&&"markPoint"!==s&&"markArea"!==s||(s="series",u=r.seriesIndex);var c=s&&null!=u&&i.getComponent(s,u),d=c&&e["series"===c.mainType?"_chartsMap":"_componentsMap"][c.__viewId];0,r.event=n,r.type=t,e._$eventProcessor.eventInfo={targetEl:o,packedEvent:r,model:c,view:d},e.trigger(t,r)}};n.zrEventfulCallAtLast=!0,e._zr.on(t,n,e)})),Object(l["k"])(s_,(function(t,n){e._messageCenter.on(n,(function(e){this.trigger(n,e)}),e)})),Object(l["k"])(["selectchanged"],(function(t){e._messageCenter.on(t,(function(e){this.trigger(t,e)}),e)})),$v(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){this._disposed?o_(this.id):this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed)o_(this.id);else{this._disposed=!0;var e=this.getDom();e&&Yi(this.getDom(),g_,"");var t=this,n=t._api,r=t._model;Object(l["k"])(t._componentsViews,(function(e){e.dispose(r,n)})),Object(l["k"])(t._chartsViews,(function(e){e.dispose(r,n)})),t._zr.dispose(),t._dom=t._model=t._chartsMap=t._componentsMap=t._chartsViews=t._componentsViews=t._scheduler=t._api=t._zr=t._throttledZrFlush=t._theme=t._coordSysMgr=t._messageCenter=null,delete f_[t.id]}},t.prototype.resize=function(e){if(!this[Sb])if(this._disposed)o_(this.id);else{this._zr.resize(e);var t=this._model;if(this._loadingFX&&this._loadingFX.resize(),t){var n=t.resetOption("media"),r=e&&e.silent;this[Cb]&&(null==r&&(r=this[Cb].silent),n=!0,this[Cb]=null),this[Sb]=!0;try{n&&Rb(this),Yb.update.call(this,{type:"resize",animation:Object(l["m"])({duration:0},e&&e.animation)})}catch(i){throw this[Sb]=!1,i}this[Sb]=!1,Vb.call(this,r),Wb.call(this,r)}}},t.prototype.showLoading=function(e,t){if(this._disposed)o_(this.id);else if(Object(l["A"])(e)&&(t=e,e=""),e=e||"default",this.hideLoading(),h_[e]){var n=h_[e](this._api,t),r=this._zr;this._loadingFX=n,r.add(n)}},t.prototype.hideLoading=function(){this._disposed?o_(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},t.prototype.makeActionFromEvent=function(e){var t=Object(l["m"])({},e);return t.type=s_[e.type],t},t.prototype.dispatchAction=function(e,t){if(this._disposed)o_(this.id);else if(Object(l["A"])(t)||(t={silent:!!t}),a_[e.type]&&this._model)if(this[Sb])this._pendingActions.push(e);else{var n=t.silent;Hb.call(this,e,n);var r=t.flush;r?this._zr.flush():!1!==r&&s["a"].browser.weChat&&this._throttledZrFlush(),Vb.call(this,n),Wb.call(this,n)}},t.prototype.updateLabelLayout=function(){ib.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed)o_(this.id);else{var t=e.seriesIndex,n=this.getModel(),r=n.getSeriesByIndex(t);0,r.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},t.internalField=function(){function e(e){e.clearColorPalette(),e.eachSeries((function(e){e.clearColorPalette()}))}function t(e){var t=[],n=[],r=!1;if(e.eachComponent((function(e,i){var o=i.get("zlevel")||0,a=i.get("z")||0,s=i.getZLevelKey();r=r||!!s,("series"===e?n:t).push({zlevel:o,z:a,idx:i.componentIndex,type:e,key:s})})),r){var i,o,a=t.concat(n);Ke(a,(function(e,t){return e.zlevel===t.zlevel?e.z-t.z:e.zlevel-t.zlevel})),Object(l["k"])(a,(function(t){var n=e.getComponent(t.type,t.idx),r=t.zlevel,a=t.key;null!=i&&(r=Math.max(i,r)),a?(r===i&&a!==o&&r++,o=a):o&&(r===i&&r++,o=""),i=r,n.setZLevel(r)}))}}function n(e){for(var t=[],n=e.currentStates,r=0;rt.get("hoverLayerThreshold")&&!s["a"].node&&!s["a"].worker&&t.eachSeries((function(t){if(!t.preventUsingHoverLayer){var n=e._chartsMap[t.__viewId];n.__alive&&n.eachRendered((function(e){e.states.emphasis&&(e.states.emphasis.hoverLayer=!0)}))}}))}function i(e,t){var n=e.get("blendMode")||null;t.eachRendered((function(e){e.isGroup||(e.style.blend=n)}))}function o(e,t){if(!e.preventAutoZ){var n=e.get("z")||0,r=e.get("zlevel")||0;t.eachRendered((function(e){return u(e,n,r,-1/0),!0}))}}function u(e,t,n,r){var i=e.getTextContent(),o=e.getTextGuideLine(),a=e.isGroup;if(a)for(var s=e.childrenRef(),l=0;l0?{duration:o,delay:r.get("delay"),easing:r.get("easing")}:null;t.eachRendered((function(e){if(e.states&&e.states.emphasis){if($l(e))return;if(e instanceof Ua&&Fl(e),e.__dirty){var t=e.prevStates;t&&e.useStates(t)}if(i){e.stateTransition=a;var r=e.getTextContent(),o=e.getTextGuideLine();r&&(r.stateTransition=a),o&&(o.stateTransition=a)}e.__dirty&&n(e)}}))}Rb=function(e){var t=e._scheduler;t.restorePipelines(e._model),t.prepareStageTasks(),Nb(e,!0),Nb(e,!1),t.plan()},Nb=function(e,t){for(var n=e._model,r=e._scheduler,i=t?e._componentsViews:e._chartsViews,o=t?e._componentsMap:e._chartsMap,a=e._zr,s=e._api,l=0;l=0)){L_.push(n);var o=Tv.wrapStageHandler(n,i);o.__prio=t,o.__raw=n,e.push(o)}}function D_(e,t){h_[e]=t}function E_(e,t,n){var r=sb("registerMap");r&&r(e,t,n)}function I_(e){var t=sb("getMap");return t&&t(e)}var j_=kf;O_(gb,av),O_(bb,lv),O_(bb,uv),O_(gb,Yv),O_(bb,Fv),O_(kb,nb),__(Mh),w_(cb,Sh),D_("default",dv),S_({type:Fs,event:Fs,update:Fs},l["L"]),S_({type:zs,event:zs,update:zs},l["L"]),S_({type:Hs,event:Hs,update:Hs},l["L"]),S_({type:Vs,event:Vs,update:Vs},l["L"]),S_({type:Ws,event:Ws,update:Ws},l["L"]),b_("light",Lv),b_("dark",Pv);var P_=[],R_={registerPreprocessor:__,registerProcessor:w_,registerPostInit:x_,registerPostUpdate:k_,registerUpdateLifecycle:M_,registerAction:S_,registerCoordinateSystem:C_,registerLayout:T_,registerVisual:O_,registerTransform:j_,registerLoading:D_,registerMap:E_,registerImpl:ab,PRIORITY:Mb,ComponentModel:Kc,ComponentView:Tp,SeriesModel:Sp,ChartView:qg,registerComponentModel:function(e){Kc.registerClass(e)},registerComponentView:function(e){Tp.registerClass(e)},registerSeriesModel:function(e){Sp.registerClass(e)},registerChartView:function(e){qg.registerClass(e)},registerSubTypeDefaulter:function(e,t){Kc.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){Dr(e,t)}};function N_(e){Object(l["t"])(e)?Object(l["k"])(e,(function(e){N_(e)})):Object(l["r"])(P_,e)>=0||(P_.push(e),Object(l["w"])(e)&&(e={install:e}),e.install(R_))}var B_=2*Math.PI,Y_=ba.CMD,F_=["top","right","bottom","left"];function z_(e,t,n,r,i){var o=n.width,a=n.height;switch(e){case"top":r.set(n.x+o/2,n.y-t),i.set(0,-1);break;case"bottom":r.set(n.x+o/2,n.y+a+t),i.set(0,1);break;case"left":r.set(n.x-t,n.y+a/2),i.set(-1,0);break;case"right":r.set(n.x+o+t,n.y+a/2),i.set(1,0);break}}function H_(e,t,n,r,i,o,a,s,l){a-=e,s-=t;var u=Math.sqrt(a*a+s*s);a/=u,s/=u;var c=a*n+e,d=s*n+t;if(Math.abs(r-i)%B_<1e-4)return l[0]=c,l[1]=d,u-n;if(o){var h=r;r=Ma(i),i=Ma(h)}else r=Ma(r),i=Ma(i);r>i&&(i+=B_);var f=Math.atan2(s,a);if(f<0&&(f+=B_),f>=r&&f<=i||f+B_>=r&&f+B_<=i)return l[0]=c,l[1]=d,u-n;var p=n*Math.cos(r)+e,m=n*Math.sin(r)+t,g=n*Math.cos(i)+e,v=n*Math.sin(i)+t,y=(p-a)*(p-a)+(m-s)*(m-s),b=(g-a)*(g-a)+(v-s)*(v-s);return y0){t=t/180*Math.PI,q_.fromArray(e[0]),X_.fromArray(e[1]),K_.fromArray(e[2]),ye.sub(Z_,q_,X_),ye.sub(J_,K_,X_);var n=Z_.len(),r=J_.len();if(!(n<.001||r<.001)){Z_.scale(1/n),J_.scale(1/r);var i=Z_.dot(J_),o=Math.cos(t);if(o1&&ye.copy(tw,K_),tw.toArray(e[1])}}}}function rw(e,t,n){if(n<=180&&n>0){n=n/180*Math.PI,q_.fromArray(e[0]),X_.fromArray(e[1]),K_.fromArray(e[2]),ye.sub(Z_,X_,q_),ye.sub(J_,K_,X_);var r=Z_.len(),i=J_.len();if(!(r<.001||i<.001)){Z_.scale(1/r),J_.scale(1/i);var o=Z_.dot(t),a=Math.cos(n);if(o=l)ye.copy(tw,K_);else{tw.scaleAndAdd(J_,s/Math.tan(Math.PI/2-c));var d=K_.x!==X_.x?(tw.x-X_.x)/(K_.x-X_.x):(tw.y-X_.y)/(K_.y-X_.y);if(isNaN(d))return;d<0?ye.copy(tw,X_):d>1&&ye.copy(tw,K_)}tw.toArray(e[1])}}}}function iw(e,t,n,r){var i="normal"===n,o=i?e:e.ensureState(n);o.ignore=t;var a=r.get("smooth");a&&!0===a&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=r.getModel("lineStyle").getLineStyle();i?e.useStyle(s):o.style=s}function ow(e,t){var n=t.smooth,r=t.points;if(r)if(e.moveTo(r[0][0],r[0][1]),n>0&&r.length>=3){var i=w(r[0],r[1]),o=w(r[1],r[2]);if(!i||!o)return e.lineTo(r[1][0],r[1][1]),void e.lineTo(r[2][0],r[2][1]);var a=Math.min(i,o)*n,s=M([],r[1],r[0],a/i),l=M([],r[1],r[2],a/o),u=M([],s,l,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),e.bezierCurveTo(l[0],l[1],l[0],l[1],r[2][0],r[2][1])}else for(var c=1;c0&&o&&x(-d/a,0,a);var g,v,y=e[0],b=e[a-1];return _(),g<0&&k(-g,.8),v<0&&k(v,.8),_(),w(g,v,1),w(v,g,-1),_(),g<0&&M(-g),v<0&&M(v),u}function _(){g=y.rect[t]-r,v=i-b.rect[t]-b.rect[n]}function w(e,t,n){if(e<0){var r=Math.min(t,-e);if(r>0){x(r*n,0,a);var i=r+e;i<0&&k(-i*n,1)}else k(-e*n,1)}}function x(n,r,i){0!==n&&(u=!0);for(var o=r;o0)for(l=0;l0;l--){h=o[l-1]*d;x(-h,l,a)}}}function M(e){var t=e<0?-1:1;e=Math.abs(e);for(var n=Math.ceil(e/(a-1)),r=0;r0?x(n,0,r+1):x(-n,a-r-1,a),e-=n,e<=0)return}}function cw(e,t,n,r){return uw(e,"x","width",t,n,r)}function dw(e,t,n,r){return uw(e,"y","height",t,n,r)}function hw(e){var t=[];e.sort((function(e,t){return t.priority-e.priority}));var n=new Oe(0,0,0,0);function r(e){if(!e.ignore){var t=e.ensureState("emphasis");null==t.ignore&&(t.ignore=!1)}e.ignore=!0}for(var i=0;i=0&&n.attr(i.oldLayoutSelect),Object(l["r"])(d,"emphasis")>=0&&n.attr(i.oldLayoutEmphasis)),Wl(n,u,t,s)}else if(n.attr(u),!hu(n).valueAnimation){var h=Object(l["P"])(n.style.opacity,1);n.style.opacity=0,Ul(n,{style:{opacity:h}},t,s)}if(i.oldLayout=u,n.states.select){var f=i.oldLayoutSelect={};bw(f,u,_w),bw(f,n.states.select,_w)}if(n.states.emphasis){var p=i.oldLayoutEmphasis={};bw(p,u,_w),bw(p,n.states.emphasis,_w)}pu(n,s,c,t,t)}if(r&&!r.ignore&&!r.invisible){i=yw(r),o=i.oldLayout;var m={points:r.shape.points};o?(r.attr({shape:o}),Wl(r,{shape:m},t)):(r.setShape(m),r.style.strokePercent=0,Ul(r,{style:{strokePercent:1}},t)),i.oldLayout=m}},e}(),xw=ww,kw=Ei();function Mw(e){e.registerUpdateLifecycle("series:beforeupdate",(function(e,t,n){var r=kw(t).labelManager;r||(r=kw(t).labelManager=new xw),r.clearLabels()})),e.registerUpdateLifecycle("series:layoutlabels",(function(e,t,n){var r=kw(t).labelManager;n.updatedSeries.forEach((function(e){r.addLabelsOfSeries(t.getViewOfSeriesModel(e))})),r.updateLayoutConfig(t),r.layout(t),r.processLabelsOverall()}))}function Sw(e,t,n){var r=Jn["d"].createCanvas(),i=t.getWidth(),o=t.getHeight(),a=r.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=i+"px",a.height=o+"px",r.setAttribute("data-zr-dom-id",e)),r.width=i*n,r.height=o*n,r}N_(Mw);var Cw=function(e){function t(t,n,r){var i,o=e.call(this)||this;o.motionBlur=!1,o.lastFrameAlpha=.7,o.dpr=1,o.virtual=!1,o.config={},o.incremental=!1,o.zlevel=0,o.maxRepaintRectCount=5,o.__dirty=!0,o.__firstTimePaint=!0,o.__used=!1,o.__drawIndex=0,o.__startIndex=0,o.__endIndex=0,o.__prevStartIndex=null,o.__prevEndIndex=null,r=r||Pn,"string"===typeof t?i=Sw(t,n,r):l["A"](t)&&(i=t,t=i.id),o.id=t,o.dom=i;var a=i.style;return a&&(l["j"](i),i.onselectstart=function(){return!1},a.padding="0",a.margin="0",a.borderWidth="0"),o.painter=n,o.dpr=r,o}return a(t,e),t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var e=this.dpr;this.domBack=Sw("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),1!==e&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,t,n,r){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var i,o=[],a=this.maxRepaintRectCount,s=!1,l=new Oe(0,0,0,0);function u(e){if(e.isFinite()&&!e.isZero())if(0===o.length){var t=new Oe(0,0,0,0);t.copy(e),o.push(t)}else{for(var n=!1,r=1/0,i=0,u=0;u=a)}}for(var c=this.__startIndex;c15)break}}n.prevElClipPaths&&u.restore()};if(c)if(0===c.length)s=l.__endIndex;else for(var _=p.dpr,w=0;w0&&e>r[0]){for(s=0;se)break;a=n[r[s]]}if(r.splice(s+1,0,e),n[e]=t,!t.virtual)if(a){var l=a.dom;l.nextSibling?o.insertBefore(t.dom,l.nextSibling):o.appendChild(t.dom)}else o.firstChild?o.insertBefore(t.dom,o.firstChild):o.appendChild(t.dom);t.painter||(t.painter=this)}},e.prototype.eachLayer=function(e,t){for(var n=this._zlevelList,r=0;r0?Aw:0),this._needsManuallyCompositing),c.__builtin__||l["G"]("ZLevel "+u+" has been used by unkown layer "+c.id),c!==a&&(c.__used=!0,c.__startIndex!==o&&(c.__dirty=!0),c.__startIndex=o,c.incremental?c.__drawIndex=-1:c.__drawIndex=o,t(o),a=c),r.__dirty&Ze&&!r.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=o))}t(o),this.eachBuiltinLayer((function(e,t){!e.__used&&e.getElementCount()>0&&(e.__dirty=!0,e.__startIndex=e.__endIndex=e.__drawIndex=0),e.__dirty&&e.__drawIndex<0&&(e.__drawIndex=e.__startIndex)}))},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(e){e.clear()},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e,l["k"](this._layers,(function(e){e.setUnpainted()}))},e.prototype.configLayer=function(e,t){if(t){var n=this._layerConfig;n[e]?l["I"](n[e],t,!0):n[e]=t;for(var r=0;r=Fw:-l>=Fw),h=l>0?l%Fw:l%Fw+Fw,f=!1;f=!!d||!Object(Yt["j"])(c)&&h>=Yw===!!u;var p=e+n*Bw(o),m=t+r*Nw(o);this._start&&this._add("M",p,m);var g=Math.round(i*zw);if(d){var v=1/this._p,y=(u?1:-1)*(Fw-v);this._add("A",n,r,g,1,+u,e+n*Bw(o+y),t+r*Nw(o+y)),v>.01&&this._add("A",n,r,g,0,+u,p,m)}else{var b=e+n*Bw(a),_=t+r*Nw(a);this._add("A",n,r,g,+f,+u,b,_)}},e.prototype.rect=function(e,t,n,r){this._add("M",e,t),this._add("l",n,0),this._add("l",0,r),this._add("l",-n,0),this._add("Z")},e.prototype.closePath=function(){this._d.length>0&&this._add("Z")},e.prototype._add=function(e,t,n,r,i,o,a,s,l){for(var u=[],c=this._p,d=1;d"}function ox(e){return""}function ax(e,t){t=t||{};var n=t.newline?"\n":"";function r(e){var t=e.children,i=e.tag,o=e.attrs,a=e.text;return ix(i,o)+("style"!==i?U(a):a||"")+(t?""+n+Object(l["H"])(t,(function(e){return r(e)})).join(n)+n:"")+ox(i)}return r(e)}function sx(e,t,n){n=n||{};var r=n.newline?"\n":"",i=" {"+r,o=r+"}",a=Object(l["H"])(Object(l["F"])(e),(function(t){return t+i+Object(l["H"])(Object(l["F"])(e[t]),(function(n){return n+":"+e[t][n]+";"})).join(r)+o})).join(r),s=Object(l["H"])(Object(l["F"])(t),(function(e){return"@keyframes "+e+i+Object(l["H"])(Object(l["F"])(t[e]),(function(n){return n+i+Object(l["H"])(Object(l["F"])(t[e][n]),(function(r){var i=t[e][n][r];return"d"===r&&(i='path("'+i+'")'),r+":"+i+";"})).join(r)+o})).join(r)+o})).join(r);return a||s?[""].join(r):""}function lx(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function ux(e,t,n,r){return rx("svg","root",{width:e,height:t,xmlns:Zw,"xmlns:xlink":Jw,version:"1.1",baseProfile:"full",viewBox:!!r&&"0 0 "+e+" "+t},n)}var cx=0;function dx(){return cx++}var hx={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},fx="transform-origin";function px(e,t,n){var r=Object(l["m"])({},e.shape);Object(l["m"])(r,t),e.buildPath(n,r);var i=new Vw;return i.reset(Object(Yt["f"])(e)),n.rebuildPath(i,1),i.generateStr(),i.getStr()}function mx(e,t){var n=t.originX,r=t.originY;(n||r)&&(e[fx]=n+"px "+r+"px")}var gx={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function vx(e,t){var n=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[n]=e,n}function yx(e,t,n){var r,i,o=e.shape.paths,a={};if(Object(l["k"])(o,(function(e){var t=lx(n.zrId);t.animation=!0,_x(e,{},t,!0);var o=t.cssAnims,s=t.cssNodes,u=Object(l["F"])(o),c=u.length;if(c){i=u[c-1];var d=o[i];for(var h in d){var f=d[h];a[h]=a[h]||{d:""},a[h].d+=f.d||""}for(var p in s){var m=s[p].animation;m.indexOf(i)>=0&&(r=m)}}})),r){t.d=!1;var s=vx(a,n);return r.replace(i,s)}}function bx(e){return Object(l["C"])(e)?hx[e]?"cubic-bezier("+hx[e]+")":Pt(e)?e:"":""}function _x(e,t,n,r){var i=e.animators,o=i.length,a=[];if(e instanceof $m){var s=yx(e,t,n);if(s)a.push(s);else if(!o)return}else if(!o)return;for(var u={},c=0;c0})).length){var A=vx(d,n);return A+" "+i[0]+" both"}}for(var v in u){s=g(u[v]);s&&a.push(s)}if(a.length){var y=n.zrId+"-cls-"+dx();n.cssNodes["."+y]={animation:a.join(",")},t["class"]=y}}function wx(e,t,n){if(!e.ignore)if(e.isSilent()){var r={"pointer-events":"none"};xx(r,t,n,!0)}else{var i=e.states.emphasis&&e.states.emphasis.style?e.states.emphasis.style:{},o=i.fill;if(!o){var a=e.style&&e.style.fill,s=e.states.select&&e.states.select.style&&e.states.select.style.fill,l=e.currentStates.indexOf("select")>=0&&s||a;l&&(o=Object(Bt["d"])(l))}var u=i.lineWidth;if(u){var c=!i.strokeNoScale&&e.transform?e.transform[0]:1;u/=c}r={cursor:"pointer"};o&&(r.fill=o),i.stroke&&(r.stroke=i.stroke),u&&(r["stroke-width"]=u),xx(r,t,n,!0)}}function xx(e,t,n,r){var i=JSON.stringify(e),o=n.cssStyleCache[i];o||(o=n.zrId+"-cls-"+dx(),n.cssStyleCache[i]=o,n.cssNodes["."+o+(r?":hover":"")]=e),t["class"]=t["class"]?t["class"]+" "+o:o}var kx=Math.round;function Mx(e){return e&&Object(l["C"])(e.src)}function Sx(e){return e&&Object(l["w"])(e.toDataURL)}function Cx(e,t,n,r){Kw((function(i,o){var a="fill"===i||"stroke"===i;a&&Object(Yt["k"])(o)?zx(t,e,i,r):a&&Object(Yt["n"])(o)?Hx(n,e,i,r):e[i]=o,a&&r.ssr&&"none"===o&&(e["pointer-events"]="visible")}),t,n,!1),Fx(n,e,r)}function Tx(e,t){var n=Er(t);n&&(n.each((function(t,n){null!=t&&(e[(tx+n).toLowerCase()]=t+"")})),t.isSilent()&&(e[tx+"silent"]="true"))}function Ox(e){return Object(Yt["j"])(e[0]-1)&&Object(Yt["j"])(e[1])&&Object(Yt["j"])(e[2])&&Object(Yt["j"])(e[3]-1)}function Lx(e){return Object(Yt["j"])(e[4])&&Object(Yt["j"])(e[5])}function Ax(e,t,n){if(t&&(!Lx(t)||!Ox(t))){var r=n?10:1e4;e.transform=Ox(t)?"translate("+kx(t[4]*r)/r+" "+kx(t[5]*r)/r+")":Object(Yt["e"])(t)}}function Dx(e,t,n){for(var r=e.points,i=[],o=0;ou?(a=null==n[h+1]?null:n[h+1].elm,ok(e,a,n,l,h)):ak(e,t,s,u))}function uk(e,t){var n=t.elm=e.elm,r=e.children,i=t.children;e!==t&&(sk(e,t),ek(t.text)?tk(r)&&tk(i)?r!==i&&lk(n,r,i):tk(i)?(tk(e.text)&&Kx(n,""),ok(n,null,i,0,i.length-1)):tk(r)?ak(n,r,0,r.length-1):tk(e.text)&&Kx(n,""):e.text!==t.text&&(tk(r)&&ak(n,r,0,r.length-1),Kx(n,t.text)))}function ck(e,t){if(rk(e,t))uk(e,t);else{var n=e.elm,r=qx(n);ik(t),null!==r&&(Ux(r,t.elm,Xx(n)),ak(r,[e],0,0))}return t}var dk=0,hk=function(){function e(e,t,n){if(this.type="svg",this.refreshHover=fk("refreshHover"),this.configLayer=fk("configLayer"),this.storage=t,this._opts=n=Object(l["m"])({},n),this.root=e,this._id="zr"+dk++,this._oldVNode=ux(n.width,n.height),e&&!n.ssr){var r=this._viewport=document.createElement("div");r.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=nx("svg");sk(null,this._oldVNode),r.appendChild(i),e.appendChild(r)}this.resize(n.width,n.height)}return e.prototype.getType=function(){return this.type},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",ck(this._oldVNode,e),this._oldVNode=e}},e.prototype.renderOneToVNode=function(e){return Yx(e,lx(this._id))},e.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),n=this._width,r=this._height,i=lx(this._id);i.animation=e.animation,i.willUpdate=e.willUpdate,i.compress=e.compress,i.emphasis=e.emphasis,i.ssr=this._opts.ssr;var o=[],a=this._bgVNode=pk(n,r,this._backgroundColor,i);a&&o.push(a);var s=e.compress?null:this._mainVNode=rx("g","main",{},[]);this._paintList(t,i,s?s.children:o),s&&o.push(s);var u=Object(l["H"])(Object(l["F"])(i.defs),(function(e){return i.defs[e]}));if(u.length&&o.push(rx("defs","defs",{},u)),e.animation){var c=sx(i.cssNodes,i.cssAnims,{newline:!0});if(c){var d=rx("style","stl",{},[],c);o.push(d)}}return ux(n,r,o,e.useViewBox)},e.prototype.renderToString=function(e){return e=e||{},ax(this.renderToVNode({animation:Object(l["P"])(e.cssAnimation,!0),emphasis:Object(l["P"])(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:Object(l["P"])(e.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(e,t,n){for(var r,i,o=e.length,a=[],s=0,l=0,u=0;u=0;p--)if(d&&i&&d[p]===i[p])break;for(var m=f-1;m>p;m--)s--,r=a[s-1];for(var g=p+1;g1){var u=s.shift();1===s.length&&(n[a]=s[0]),this._update&&this._update(u,o)}else 1===l?(n[a]=null,this._update&&this._update(s,o)):this._remove&&this._remove(o)}this._performRestAdd(i,n)},e.prototype._executeMultiple=function(){var e=this._old,t=this._new,n={},r={},i=[],o=[];this._initIndexMap(e,n,i,"_oldKeyGetter"),this._initIndexMap(t,r,o,"_newKeyGetter");for(var a=0;a1&&1===d)this._updateManyToOne&&this._updateManyToOne(u,l),r[s]=null;else if(1===c&&d>1)this._updateOneToMany&&this._updateOneToMany(u,l),r[s]=null;else if(1===c&&1===d)this._update&&this._update(u,l),r[s]=null;else if(c>1&&d>1)this._updateManyToMany&&this._updateManyToMany(u,l),r[s]=null;else if(c>1)for(var h=0;h1)for(var a=0;a30}var Pk,Rk,Nk,Bk,Yk,Fk,zk,Hk=l["A"],Vk=l["H"],Wk="undefined"===typeof Int32Array?Array:Int32Array,Uk="e\0\0",$k=-1,Gk=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],qk=["_approximateExtent"],Xk=function(){function e(e,t){var n;this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var r=!1;Dk(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(r=!0,n=e),n=n||["x","y"];for(var i={},o=[],a={},s=!1,u={},c=0;c=t)){var n=this._store,r=n.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,a=r.getSource().sourceFormat,s=a===td;if(s&&!r.pure)for(var l=[],u=e;u0},e.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,r=n[e];r||(r=n[e]={});var i=r[t];return null==i&&(i=this.getVisual(t),l["t"](i)?i=i.slice():Hk(i)&&(i=l["m"]({},i)),r[t]=i),i},e.prototype.setItemVisual=function(e,t,n){var r=this._itemVisuals[e]||{};this._itemVisuals[e]=r,Hk(t)?l["m"](r,t):r[t]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(e,t){Hk(e)?l["m"](this._layout,e):this._layout[e]=t},e.prototype.getLayout=function(e){return this._layout[e]},e.prototype.getItemLayout=function(e){return this._itemLayouts[e]},e.prototype.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?l["m"](this._itemLayouts[e]||{},t):t},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(e,t){var n=this.hostModel&&this.hostModel.seriesIndex;Os(n,this.dataType,e,t),this._graphicEls[e]=t},e.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},e.prototype.eachItemGraphicEl=function(e,t){l["k"](this._graphicEls,(function(n,r){n&&e&&e.call(t,n,r)}))},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:Vk(this.dimensions,this._getDimInfo,this),this.hostModel)),Yk(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(e,t){var n=this[e];l["w"](n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);return t.apply(this,[e].concat(l["S"](arguments)))})},e.internalField=function(){Pk=function(e){var t=e._invertedIndicesMap;l["k"](t,(function(n,r){var i=e._dimInfos[r],o=i.ordinalMeta,a=e._store;if(o){n=t[r]=new Wk(o.categories.length);for(var s=0;s1&&(s+="__ec__"+u),r[t]=s}}}(),e}(),Kk=Xk;function Zk(e,t){Ih(e)||(e=Ph(e)),t=t||{};var n=t.coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],i=Object(l["f"])(),o=[],a=Qk(e,n,r,t.dimensionsCount),s=t.canOmitUnusedDimensions&&jk(a),u=r===e.dimensionsDefine,c=u?Ik(e):Ek(r),d=t.encodeDefine;!d&&t.encodeDefaulter&&(d=t.encodeDefaulter(e,a));for(var h=Object(l["f"])(d),f=new Df(a),p=0;p0&&(r.name=i+(o-1)),o++,t.set(i,o)}}function Qk(e,t,n,r){var i=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return Object(l["k"])(t,(function(e){var t;Object(l["A"])(e)&&(t=e.dimsDef)&&(i=Math.max(i,t.length))})),i}function eM(e,t,n){if(n||t.hasKey(e)){var r=0;while(t.hasKey(e+r))r++;e+=r}return t.set(e,!0),e}var tM=function(){function e(e){this.coordSysDims=[],this.axisMap=Object(l["f"])(),this.categoryAxisMap=Object(l["f"])(),this.coordSysName=e}return e}();function nM(e){var t=e.get("coordinateSystem"),n=new tM(t),r=rM[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}var rM={cartesian2d:function(e,t,n,r){var i=e.getReferringComponents("xAxis",Ri).models[0],o=e.getReferringComponents("yAxis",Ri).models[0];t.coordSysDims=["x","y"],n.set("x",i),n.set("y",o),iM(i)&&(r.set("x",i),t.firstCategoryDimIndex=0),iM(o)&&(r.set("y",o),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,n,r){var i=e.getReferringComponents("singleAxis",Ri).models[0];t.coordSysDims=["single"],n.set("single",i),iM(i)&&(r.set("single",i),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var i=e.getReferringComponents("polar",Ri).models[0],o=i.findAxisModel("radiusAxis"),a=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),iM(o)&&(r.set("radius",o),t.firstCategoryDimIndex=0),iM(a)&&(r.set("angle",a),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=1))},geo:function(e,t,n,r){t.coordSysDims=["lng","lat"]},parallel:function(e,t,n,r){var i=e.ecModel,o=i.getComponent("parallel",e.get("parallelIndex")),a=t.coordSysDims=o.dimensions.slice();Object(l["k"])(o.parallelAxisIndex,(function(e,o){var s=i.getComponent("parallelAxis",e),l=a[o];n.set(l,s),iM(s)&&(r.set(l,s),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=o))}))}};function iM(e){return"category"===e.get("type")}function oM(e,t,n){n=n||{};var r,i,o,a=n.byIndex,s=n.stackedCoordDimension;aM(t)?r=t:(i=t.schema,r=i.dimensions,o=t.store);var u,c,d,h,f=!(!e||!e.get("stack"));if(Object(l["k"])(r,(function(e,t){Object(l["C"])(e)&&(r[t]=e={name:e}),f&&!e.isExtraCoord&&(a||u||!e.ordinalMeta||(u=e),c||"ordinal"===e.type||"time"===e.type||s&&s!==e.coordDim||(c=e))})),!c||a||u||(a=!0),c){d="__\0ecstackresult_"+e.id,h="__\0ecstackedover_"+e.id,u&&(u.createInvertedIndices=!0);var p=c.coordDim,m=c.type,g=0;Object(l["k"])(r,(function(e){e.coordDim===p&&g++}));var v={name:d,coordDim:p,coordDimIndex:g,type:m,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length},y={name:h,coordDim:h,coordDimIndex:g+1,type:m,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length+1};i?(o&&(v.storeDimIndex=o.ensureCalculationDimension(h,m),y.storeDimIndex=o.ensureCalculationDimension(d,m)),i.appendCalculationDimension(v),i.appendCalculationDimension(y)):(r.push(v),r.push(y))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:a,stackedOverDimension:h,stackResultDimension:d}}function aM(e){return!Dk(e.schema)}function sM(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function lM(e,t){return sM(e,t)?e.getCalculationInfo("stackResultDimension"):t}function uM(e,t){var n,r=e.get("coordinateSystem"),i=Gd.get(r);return t&&t.coordSysDims&&(n=l["H"](t.coordSysDims,(function(e){var n={name:e},r=t.axisMap.get(e);if(r){var i=r.get("type");n.type=Mk(i)}return n}))),n||(n=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"]),n}function cM(e,t,n){var r,i;return n&&l["k"](e,(function(e,o){var a=e.coordDim,s=n.categoryAxisMap.get(a);s&&(null==r&&(r=o),e.ordinalMeta=s.getOrdinalMeta(),t&&(e.createInvertedIndices=!0)),null!=e.otherDims.itemName&&(i=!0)})),i||null==r||(e[r].otherDims.itemName=0),r}function dM(e,t,n){n=n||{};var r,i=t.getSourceManager(),o=!1;e?(o=!0,r=Ph(e)):(r=i.getSource(),o=r.sourceFormat===td);var a=nM(t),s=uM(t,a),u=n.useEncodeDefaulter,c=l["w"](u)?u:u?l["h"](hd,s,t):null,d={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:c,canOmitUnusedDimensions:!o},h=Zk(r,d),f=cM(h.dimensions,n.createInvertedIndices,a),p=o?null:i.getSharedDataStore(h),m=oM(t,{schema:h,store:p}),g=new Kk(h,t);g.setCalculationInfo(m);var v=null!=f&&hM(r)?function(e,t,n,r){return r===f?n:this.defaultDimValueGetter(e,t,n,r)}:null;return g.hasItemOption=!1,g.initData(o?r:p,null,v),g}function hM(e){if(e.sourceFormat===td){var t=fM(e.data||[]);return!l["t"](fi(t))}}function fM(e){var t=0;while(t-1&&(s.style.stroke=s.style.fill,s.style.fill="#fff",s.style.lineWidth=2),t},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(Sp),gM=mM;function vM(e,t){var n=e.mapDimensionsAll("defaultedLabel"),r=n.length;if(1===r){var i=ef(e,t,n[0]);return null!=i?i+"":null}if(r){for(var o=[],a=0;a=0&&r.push(t[o])}return r.join(" ")}var bM=function(e){function t(t,n,r,i){var o=e.call(this)||this;return o.updateData(t,n,r,i),o}return a(t,e),t.prototype._createSymbol=function(e,t,n,r,i){this.removeAll();var o=sy(e,-1,-1,2,2,null,i);o.attr({z2:100,culling:!0,scaleX:r[0]/2,scaleY:r[1]/2}),o.drift=_M,this._symbolType=e,this.add(o)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){cl(this.childAt(0))},t.prototype.downplay=function(){dl(this.childAt(0))},t.prototype.setZ=function(e,t){var n=this.childAt(0);n.zlevel=e,n.z=t},t.prototype.setDraggable=function(e,t){var n=this.childAt(0);n.draggable=e,n.cursor=!t&&e?"move":n.cursor},t.prototype.updateData=function(e,n,r,i){this.silent=!1;var o=e.getItemVisual(n,"symbol")||"circle",a=e.hostModel,s=t.getSymbolSize(e,n),l=o!==this._symbolType,u=i&&i.disableAnimation;if(l){var c=e.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,e,n,s,c)}else{var d=this.childAt(0);d.silent=!1;var h={scaleX:s[0]/2,scaleY:s[1]/2};u?d.attr(h):Wl(d,h,a,n),Kl(d)}if(this._updateCommon(e,n,s,r,i),l){d=this.childAt(0);if(!u){h={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:d.style.opacity}};d.scaleX=d.scaleY=0,d.style.opacity=0,Ul(d,h,a,n)}}u&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,t,n,r,i){var o,a,s,u,c,d,h,f,p,m=this.childAt(0),g=e.hostModel;if(r&&(o=r.emphasisItemStyle,a=r.blurItemStyle,s=r.selectItemStyle,u=r.focus,c=r.blurScope,h=r.labelStatesModels,f=r.hoverScale,p=r.cursorStyle,d=r.emphasisDisabled),!r||e.hasItemOption){var v=r&&r.itemModel?r.itemModel:e.getItemModel(t),y=v.getModel("emphasis");o=y.getModel("itemStyle").getItemStyle(),s=v.getModel(["select","itemStyle"]).getItemStyle(),a=v.getModel(["blur","itemStyle"]).getItemStyle(),u=y.get("focus"),c=y.get("blurScope"),d=y.get("disabled"),h=nu(v),f=y.getShallow("scale"),p=v.getShallow("cursor")}var b=e.getItemVisual(t,"symbolRotate");m.attr("rotation",(b||0)*Math.PI/180||0);var _=uy(e.getItemVisual(t,"symbolOffset"),n);_&&(m.x=_[0],m.y=_[1]),p&&m.attr("cursor",p);var w=e.getItemVisual(t,"style"),x=w.fill;if(m instanceof Qa){var k=m.style;m.useStyle(Object(l["m"])({image:k.image,x:k.x,y:k.y,width:k.width,height:k.height},w))}else m.__isEmptyBrush?m.useStyle(Object(l["m"])({},w)):m.useStyle(w),m.style.decal=null,m.setColor(x,i&&i.symbolInnerColor),m.style.strokeNoScale=!0;var M=e.getItemVisual(t,"liftZ"),S=this._z2;null!=M?null==S&&(this._z2=m.z2,m.z2+=M):null!=S&&(m.z2=S,this._z2=null);var C=i&&i.useNameLabel;function T(t){return C?e.getName(t):vM(e,t)}tu(m,h,{labelFetcher:g,labelDataIndex:t,defaultText:T,inheritColor:x,defaultOpacity:w.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var O=m.ensureState("emphasis");O.style=o,m.ensureState("select").style=s,m.ensureState("blur").style=a;var L=null==f||!0===f?Math.max(1.1,3/this._sizeY):isFinite(f)&&f>0?+f:1;O.scaleX=this._sizeX*L,O.scaleY=this._sizeY*L,this.setSymbolScale(1),Ll(this,u,c,d)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,t,n){var r=this.childAt(0),i=Ts(this).dataIndex,o=n&&n.animation;if(this.silent=r.silent=!0,n&&n.fadeLabel){var a=r.getTextContent();a&&Gl(a,{style:{opacity:0}},t,{dataIndex:i,removeOpt:o,cb:function(){r.removeTextContent()}})}else r.removeTextContent();Gl(r,{style:{opacity:0},scaleX:0,scaleY:0},t,{dataIndex:i,cb:e,removeOpt:o})},t.getSymbolSize=function(e,t){return ly(e.getItemVisual(t,"symbolSize"))},t}(kr);function _M(e,t){this.parent.drift(e,t)}var wM=bM;function xM(e,t,n,r){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(r.isIgnore&&r.isIgnore(n))&&!(r.clipShape&&!r.clipShape.contain(t[0],t[1]))&&"none"!==e.getItemVisual(n,"symbol")}function kM(e){return null==e||Object(l["A"])(e)||(e={isIgnore:e}),e||{}}function MM(e){var t=e.hostModel,n=t.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:nu(t),cursorStyle:t.get("cursor")}}var SM=function(){function e(e){this.group=new kr,this._SymbolCtor=e||wM}return e.prototype.updateData=function(e,t){this._progressiveEls=null,t=kM(t);var n=this.group,r=e.hostModel,i=this._data,o=this._SymbolCtor,a=t.disableAnimation,s=MM(e),l={disableAnimation:a},u=t.getSymbolPoint||function(t){return e.getItemLayout(t)};i||n.removeAll(),e.diff(i).add((function(r){var i=u(r);if(xM(e,i,r,t)){var a=new o(e,r,s,l);a.setPosition(i),e.setItemGraphicEl(r,a),n.add(a)}})).update((function(c,d){var h=i.getItemGraphicEl(d),f=u(c);if(xM(e,f,c,t)){var p=e.getItemVisual(c,"symbol")||"circle",m=h&&h.getSymbolType&&h.getSymbolType();if(!h||m&&m!==p)n.remove(h),h=new o(e,c,s,l),h.setPosition(f);else{h.updateData(e,c,s,l);var g={x:f[0],y:f[1]};a?h.attr(g):Wl(h,g,r)}n.add(h),e.setItemGraphicEl(c,h)}else n.remove(h)})).remove((function(e){var t=i.getItemGraphicEl(e);t&&t.fadeOut((function(){n.remove(t)}),r)})).execute(),this._getSymbolPoint=u,this._data=e},e.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl((function(t,n){var r=e._getSymbolPoint(n);t.setPosition(r),t.markRedraw()}))},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=MM(e),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t,n){function r(e){e.isGroup||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=kM(n);for(var i=e.start;i0?n=r[0]:r[1]<0&&(n=r[1]),n}function LM(e,t,n,r){var i=NaN;e.stacked&&(i=n.get(n.getCalculationInfo("stackedOverDimension"),r)),isNaN(i)&&(i=e.valueStart);var o=e.baseDataOffset,a=[];return a[o]=n.get(e.baseDim,r),a[1-o]=i,t.dataToPoint(a)}var AM="undefined"!==typeof Float32Array,DM=AM?Float32Array:Array;function EM(e){return Object(l["t"])(e)?AM?new Float32Array(e):e:new DM(e)}function IM(e,t){var n=[];return t.diff(e).add((function(e){n.push({cmd:"+",idx:e})})).update((function(e,t){n.push({cmd:"=",idx:t,idx1:e})})).remove((function(e){n.push({cmd:"-",idx:e})})).execute(),n}function jM(e,t,n,r,i,o,a,s){for(var l=IM(e,t),u=[],c=[],d=[],h=[],f=[],p=[],m=[],g=TM(i,t,a),v=e.getLayout("points")||[],y=t.getLayout("points")||[],b=0;b=i||m<0)break;if(NM(v,y)){if(l){m+=o;continue}break}if(m===n)e[o>0?"moveTo":"lineTo"](v,y),d=v,h=y;else{var b=v-u,_=y-c;if(b*b+_*_<.5){m+=o;continue}if(a>0){var w=m+o,x=t[2*w],k=t[2*w+1];while(x===v&&k===y&&g=r||NM(x,k))f=v,p=y;else{C=x-u,T=k-c;var A=v-u,D=x-v,E=y-c,I=k-y,j=void 0,P=void 0;if("x"===s){j=Math.abs(A),P=Math.abs(D);var R=C>0?1:-1;f=v-R*j*a,p=y,O=v+R*P*a,L=y}else if("y"===s){j=Math.abs(E),P=Math.abs(I);var N=T>0?1:-1;f=v,p=y-N*j*a,O=v,L=y+N*P*a}else j=Math.sqrt(A*A+E*E),P=Math.sqrt(D*D+I*I),S=P/(P+j),f=v-C*a*(1-S),p=y-T*a*(1-S),O=v+C*a*S,L=y+T*a*S,O=PM(O,RM(x,v)),L=PM(L,RM(k,y)),O=RM(O,PM(x,v)),L=RM(L,PM(k,y)),C=O-v,T=L-y,f=v-C*j/P,p=y-T*j/P,f=PM(f,RM(u,v)),p=PM(p,RM(c,y)),f=RM(f,PM(u,v)),p=RM(p,PM(c,y)),C=v-f,T=y-p,O=v+C*P/j,L=y+T*P/j}e.bezierCurveTo(d,h,f,p,v,y),d=O,h=L}else e.lineTo(v,y)}u=v,c=y,m+=o}return g}var YM=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),FM=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-polyline",n}return a(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new YM},t.prototype.buildPath=function(e,t){var n=t.points,r=0,i=n.length/2;if(t.connectNulls){for(;i>0;i--)if(!NM(n[2*i-2],n[2*i-1]))break;for(;r=0){var y=s?(h-r)*v+r:(d-n)*v+n;return s?[e,y]:[y,e]}n=d,r=h;break;case a.C:d=o[u++],h=o[u++],f=o[u++],p=o[u++],m=o[u++],g=o[u++];var b=s?xt(n,d,f,m,e,l):xt(r,h,p,g,e,l);if(b>0)for(var _=0;_=0){y=s?_t(r,h,p,g,w):_t(n,d,f,m,w);return s?[e,y]:[y,e]}}n=m,r=g;break}}},t}(Ua),zM=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t}(YM),HM=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-polygon",n}return a(t,e),t.prototype.getDefaultShape=function(){return new zM},t.prototype.buildPath=function(e,t){var n=t.points,r=t.stackedOnPoints,i=0,o=n.length/2,a=t.smoothMonotone;if(t.connectNulls){for(;o>0;o--)if(!NM(n[2*o-2],n[2*o-1]))break;for(;it){r?i.push(a(r,l,t)):n&&i.push(a(n,l,0),a(n,l,t));break}n&&(i.push(a(n,l,0)),n=null),i.push(l),r=l}}return i}function eS(e,t,n){var r=e.getVisual("visualMeta");if(r&&r.length&&e.count()&&"cartesian2d"===t.type){for(var i,o,a=r.length-1;a>=0;a--){var s=e.getDimensionInfo(r[a].dimension);if(i=s&&s.coordDim,"x"===i||"y"===i){o=r[a];break}}if(o){var u=t.getAxis(i),c=l["H"](o.stops,(function(e){return{coord:u.toGlobalCoord(u.dataToCoord(e.value)),color:e.color}})),d=c.length,h=o.outerColors.slice();d&&c[0].coord>c[d-1].coord&&(c.reverse(),h.reverse());var f=QM(c,"x"===i?n.getWidth():n.getHeight()),p=f.length;if(!p&&d)return c[0].coord<0?h[1]?h[1]:c[d-1].color:h[0]?h[0]:c[0].color;var m=10,g=f[0].coord-m,v=f[p-1].coord+m,y=v-g;if(y<.001)return"transparent";l["k"](f,(function(e){e.offset=(e.coord-g)/y})),f.push({offset:p?f[p-1].offset:.5,color:h[1]||"transparent"}),f.unshift({offset:p?f[0].offset:.5,color:h[0]||"transparent"});var b=new Km(0,0,0,0,f,!0);return b[i]=g,b[i+"2"]=v,b}}}function tS(e,t,n){var r=e.get("showAllSymbol"),i="auto"===r;if(!r||i){var o=n.getAxesByScale("ordinal")[0];if(o&&(!i||!nS(o,t))){var a=t.mapDimension(o.dim),s={};return l["k"](o.getViewLabels(),(function(e){var t=o.scale.getRawOrdinalNumber(e.tickValue);s[t]=1})),function(e){return!s.hasOwnProperty(t.get(a,e))}}}}function nS(e,t){var n=e.getExtent(),r=Math.abs(n[1]-n[0])/e.scale.count();isNaN(r)&&(r=0);for(var i=t.count(),o=Math.max(1,Math.round(i/5)),a=0;ar)return!1;return!0}function rS(e,t){return isNaN(e)||isNaN(t)}function iS(e){for(var t=e.length/2;t>0;t--)if(!rS(e[2*t-2],e[2*t-1]))break;return t-1}function oS(e,t){return[e[2*t],e[2*t+1]]}function aS(e,t,n){for(var r,i,o=e.length/2,a="x"===n?0:1,s=0,l=-1,u=0;u=t||r>=t&&i<=t){l=u;break}s=u,r=i}else r=i;return{range:[s,l],t:(t-r)/(i-r)}}function sS(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t0&&"bolder"===e.get(["emphasis","lineStyle","width"])){var j=f.getState("emphasis").style;j.lineWidth=+f.style.lineWidth+1}Ts(f).seriesIndex=e.seriesIndex,Ll(f,D,E,I);var P=KM(e.get("smooth")),R=e.get("smoothMonotone");if(f.setShape({smooth:P,smoothMonotone:R,connectNulls:x}),p){var N=o.getCalculationInfo("stackedOnSeries"),B=0;p.useStyle(l["i"](s.getAreaStyle(),{fill:T,opacity:.7,lineJoin:"bevel",decal:o.getVisual("style").decal})),N&&(B=KM(N.get("smooth"))),p.setShape({smooth:P,stackedOnSmooth:B,smoothMonotone:R,connectNulls:x}),Il(p,e,"areaStyle"),Ts(p).seriesIndex=e.seriesIndex,Ll(p,D,E,I)}var Y=this._changePolyState;o.eachItemGraphicEl((function(e){e&&(e.onHoverStateChange=Y)})),this._polyline.onHoverStateChange=Y,this._data=o,this._coordSys=r,this._stackedOnPoints=_,this._points=u,this._step=C,this._valueOrigin=y,e.get("triggerLineEvent")&&(this.packEventData(e,f),p&&this.packEventData(e,p))},t.prototype.packEventData=function(e,t){Ts(t).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,t,n,r){var i=e.getData(),o=Di(i,r);if(this._changePolyState("emphasis"),!(o instanceof Array)&&null!=o&&o>=0){var a=i.getLayout("points"),s=i.getItemGraphicEl(o);if(!s){var l=a[2*o],u=a[2*o+1];if(isNaN(l)||isNaN(u))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,u))return;var c=e.get("zlevel")||0,d=e.get("z")||0;s=new wM(i,o),s.x=l,s.y=u,s.setZ(c,d);var h=s.getSymbolPath().getTextContent();h&&(h.zlevel=c,h.z=d,h.z2=this._polyline.z2+1),s.__temp=!0,i.setItemGraphicEl(o,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else qg.prototype.highlight.call(this,e,t,n,r)},t.prototype.downplay=function(e,t,n,r){var i=e.getData(),o=Di(i,r);if(this._changePolyState("normal"),null!=o&&o>=0){var a=i.getItemGraphicEl(o);a&&(a.__temp?(i.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else qg.prototype.downplay.call(this,e,t,n,r)},t.prototype._changePolyState=function(e){var t=this._polygon;tl(this._polyline,e),t&&tl(t,e)},t.prototype._newPolyline=function(e){var t=this._polyline;return t&&this._lineGroup.remove(t),t=new FM({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(t),this._polyline=t,t},t.prototype._newPolygon=function(e,t){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new HM({shape:{points:e,stackedOnPoints:t},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(e,t,n){var r,i,o=t.getBaseAxis(),a=o.inverse;"cartesian2d"===t.type?(r=o.isHorizontal(),i=!1):"polar"===t.type&&(r="angle"===o.dim,i=!0);var s=e.hostModel,u=s.get("animationDuration");l["w"](u)&&(u=u(null));var c=s.get("animationDelay")||0,d=l["w"](c)?c(null):c;e.eachItemGraphicEl((function(e,o){var s=e;if(s){var h=[e.x,e.y],f=void 0,p=void 0,m=void 0;if(n)if(i){var g=n,v=t.pointToCoord(h);r?(f=g.startAngle,p=g.endAngle,m=-v[1]/180*Math.PI):(f=g.r0,p=g.r,m=v[0])}else{var y=n;r?(f=y.x,p=y.x+y.width,m=e.x):(f=y.y+y.height,p=y.y,m=e.y)}var b=p===f?0:(m-f)/(p-f);a&&(b=1-b);var _=l["w"](c)?c(o):u*b+d,w=s.getSymbolPath(),x=w.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:_}),x&&x.animateFrom({style:{opacity:0}},{duration:300,delay:_}),w.disableLabelAnimation=!0}}))},t.prototype._initOrUpdateEndLabel=function(e,t,n){var r=e.getModel("endLabel");if(sS(e)){var i=e.getData(),o=this._polyline,a=i.getLayout("points");if(!a)return o.removeTextContent(),void(this._endLabel=null);var s=this._endLabel;s||(s=this._endLabel=new Cs({z2:200}),s.ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0);var l=iS(a);l>=0&&(tu(o,nu(e,"endLabel"),{inheritColor:n,labelFetcher:e,labelDataIndex:l,defaultText:function(e,t,n){return null!=n?yM(i,n):vM(i,e)},enableTextSetter:!0},uS(r,t)),o.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,t,n,r,i,o,a){var s=this._endLabel,l=this._polyline;if(s){e<1&&null==r.originalX&&(r.originalX=s.x,r.originalY=s.y);var u=n.getLayout("points"),c=n.hostModel,d=c.get("connectNulls"),h=o.get("precision"),f=o.get("distance")||0,p=a.getBaseAxis(),m=p.isHorizontal(),g=p.inverse,v=t.shape,y=g?m?v.x:v.y+v.height:m?v.x+v.width:v.y,b=(m?f:0)*(g?-1:1),_=(m?0:-f)*(g?-1:1),w=m?"x":"y",x=aS(u,y,w),k=x.range,M=k[1]-k[0],S=void 0;if(M>=1){if(M>1&&!d){var C=oS(u,k[0]);s.attr({x:C[0]+b,y:C[1]+_}),i&&(S=c.getRawValue(k[0]))}else{C=l.getPointOn(y,w);C&&s.attr({x:C[0]+b,y:C[1]+_});var T=c.getRawValue(k[0]),O=c.getRawValue(k[1]);i&&(S=Vi(n,h,T,O,x.t))}r.lastFrameIndex=k[0]}else{var L=1===e||r.lastFrameIndex>0?k[0]:0;C=oS(u,L);i&&(S=c.getRawValue(L)),s.attr({x:C[0]+b,y:C[1]+_})}if(i){var A=hu(s);"function"===typeof A.setLabelText&&A.setLabelText(S)}}},t.prototype._doUpdateAnimation=function(e,t,n,r,i,o,a){var s=this._polyline,l=this._polygon,u=e.hostModel,c=jM(this._data,e,this._stackedOnPoints,t,this._coordSys,n,this._valueOrigin,o),d=c.current,h=c.stackedOnCurrent,f=c.next,p=c.stackedOnNext;if(i&&(h=JM(c.stackedOnCurrent,c.current,n,i,a),d=JM(c.current,null,n,i,a),p=JM(c.stackedOnNext,c.next,n,i,a),f=JM(c.next,null,n,i,a)),XM(d,f)>3e3||l&&XM(h,p)>3e3)return s.stopAnimation(),s.setShape({points:f}),void(l&&(l.stopAnimation(),l.setShape({points:f,stackedOnPoints:p})));s.shape.__points=c.current,s.shape.points=d;var m={shape:{points:f}};c.current!==d&&(m.shape.__points=c.next),s.stopAnimation(),Wl(s,m,u),l&&(l.setShape({points:d,stackedOnPoints:h}),l.stopAnimation(),Wl(l,{shape:{stackedOnPoints:p}},u),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var g=[],v=c.status,y=0;yt&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n10&&"cartesian2d"===o.type&&i){var s=o.getBaseAxis(),u=o.getOtherAxis(s),c=s.getExtent(),d=n.getDevicePixelRatio(),h=Math.abs(c[1]-c[0])*(d||1),f=Math.round(a/h);if(isFinite(f)&&f>1){"lttb"===i?e.setData(r.lttbDownSample(r.mapDimension(u.dim),1/f)):"minmax"===i&&e.setData(r.minmaxDownSample(r.mapDimension(u.dim),1/f));var p=void 0;Object(l["C"])(i)?p=fS[i]:Object(l["w"])(i)&&(p=i),p&&e.setData(r.downSample(r.mapDimension(u.dim),1/f,p,pS))}}}}}function gS(e){e.registerChartView(dS),e.registerSeriesModel(gM),e.registerLayout(hS("line",!0)),e.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),n=e.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",n)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,mS("line"))}var vS="__ec_stack_";function yS(e){return e.get("stack")||vS+e.seriesIndex}function bS(e){return e.dim+e.index}function _S(e){var t=[],n=e.axis,r="axis0";if("category"===n.type){for(var i=n.getBandWidth(),o=0;o0&&(o=null===o?s:Math.min(o,s))}n[r]=o}}return n}function kS(e){var t=xS(e),n=[];return Object(l["k"])(e,(function(e){var r,i=e.coordinateSystem,o=i.getBaseAxis(),a=o.getExtent();if("category"===o.type)r=o.getBandWidth();else if("value"===o.type||"time"===o.type){var s=o.dim+"_"+o.index,l=t[s],u=Math.abs(a[1]-a[0]),c=o.scale.getExtent(),d=Math.abs(c[1]-c[0]);r=l?u/d*l:u}else{var h=e.getData();r=Math.abs(a[1]-a[0])/h.count()}var f=Br(e.get("barWidth"),r),p=Br(e.get("barMaxWidth"),r),m=Br(e.get("barMinWidth")||(LS(e)?.5:1),r),g=e.get("barGap"),v=e.get("barCategoryGap");n.push({bandWidth:r,barWidth:f,barMaxWidth:p,barMinWidth:m,barGap:g,barCategoryGap:v,axisKey:bS(o),stackId:yS(e)})})),MS(n)}function MS(e){var t={};Object(l["k"])(e,(function(e,n){var r=e.axisKey,i=e.bandWidth,o=t[r]||{bandWidth:i,remainedWidth:i,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},a=o.stacks;t[r]=o;var s=e.stackId;a[s]||o.autoWidthCount++,a[s]=a[s]||{width:0,maxWidth:0};var l=e.barWidth;l&&!a[s].width&&(a[s].width=l,l=Math.min(o.remainedWidth,l),o.remainedWidth-=l);var u=e.barMaxWidth;u&&(a[s].maxWidth=u);var c=e.barMinWidth;c&&(a[s].minWidth=c);var d=e.barGap;null!=d&&(o.gap=d);var h=e.barCategoryGap;null!=h&&(o.categoryGap=h)}));var n={};return Object(l["k"])(t,(function(e,t){n[t]={};var r=e.stacks,i=e.bandWidth,o=e.categoryGap;if(null==o){var a=Object(l["F"])(r).length;o=Math.max(35-4*a,15)+"%"}var s=Br(o,i),u=Br(e.gap,1),c=e.remainedWidth,d=e.autoWidthCount,h=(c-s)/(d+(d-1)*u);h=Math.max(h,0),Object(l["k"])(r,(function(e){var t=e.maxWidth,n=e.minWidth;if(e.width){r=e.width;t&&(r=Math.min(r,t)),n&&(r=Math.max(r,n)),e.width=r,c-=r+u*r,d--}else{var r=h;t&&tr&&(r=n),r!==h&&(e.width=r,c-=r+u*r,d--)}})),h=(c-s)/(d+(d-1)*u),h=Math.max(h,0);var f,p=0;Object(l["k"])(r,(function(e,t){e.width||(e.width=h),f=e,p+=e.width*(1+u)})),f&&(p-=f.width*u);var m=-p/2;Object(l["k"])(r,(function(e,r){n[t][r]=n[t][r]||{bandWidth:i,offset:m,width:e.width},m+=e.width*(1+u)}))})),n}function SS(e,t,n){if(e&&t){var r=e[bS(t)];return null!=r&&null!=n?r[yS(n)]:r}}function CS(e,t){var n=wS(e,t),r=kS(n);Object(l["k"])(n,(function(e){var t=e.getData(),n=e.coordinateSystem,i=n.getBaseAxis(),o=yS(e),a=r[bS(i)][o],s=a.offset,l=a.width;t.setLayout({bandWidth:a.bandWidth,offset:s,size:l})}))}function TS(e){return{seriesType:e,plan:Op(),reset:function(e){if(OS(e)){var t=e.getData(),n=e.coordinateSystem,r=n.getBaseAxis(),i=n.getOtherAxis(r),o=t.getDimensionIndex(t.mapDimension(i.dim)),a=t.getDimensionIndex(t.mapDimension(r.dim)),s=e.get("showBackground",!0),l=t.mapDimension(i.dim),u=t.getCalculationInfo("stackResultDimension"),c=sM(t,l)&&!!t.getCalculationInfo("stackedOnSeries"),d=i.isHorizontal(),h=AS(r,i),f=LS(e),p=e.get("barMinHeight")||0,m=u&&t.getDimensionIndex(u),g=t.getLayout("size"),v=t.getLayout("offset");return{progress:function(e,t){var r,i=e.count,l=f&&EM(3*i),u=f&&s&&EM(3*i),y=f&&EM(i),b=n.master.getRect(),_=d?b.width:b.height,w=t.getStore(),x=0;while(null!=(r=e.next())){var k=w.get(c?m:o,r),M=w.get(a,r),S=h,C=void 0;c&&(C=+k-w.get(o,r));var T=void 0,O=void 0,L=void 0,A=void 0;if(d){var D=n.dataToPoint([k,M]);if(c){var E=n.dataToPoint([C,M]);S=E[0]}T=S,O=D[1]+v,L=D[0]-S,A=g,Math.abs(L)0?n:1:n))}var DS=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.getInitialData=function(e,t){return pM(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,t,n){var r=this.coordinateSystem;if(r&&r.clampData){var i=r.clampData(e),o=r.dataToPoint(i);if(n)Object(l["k"])(r.getAxes(),(function(e,n){if("category"===e.type&&null!=t){var r=e.getTicksCoords(),a=e.getTickModel().get("alignWithLabel"),s=i[n],l="x1"===t[n]||"y1"===t[n];if(l&&!a&&(s+=1),r.length<2)return;if(2===r.length)return void(o[n]=e.toGlobalCoord(e.getExtent()[l?1:0]));for(var u=void 0,c=void 0,d=1,h=0;hs){c=(f+u)/2;break}1===h&&(d=p-r[0].tickValue)}null==c&&(u?u&&(c=r[r.length-1].coord):c=r[0].coord),o[n]=e.toGlobalCoord(c)}}));else{var a=this.getData(),s=a.getLayout("offset"),u=a.getLayout("size"),c=r.getBaseAxis().isHorizontal()?0:1;o[c]+=s+u/2}return o}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(Sp);Sp.registerClass(DS);var ES=DS,IS=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.getInitialData=function(){return pM(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),t=this.get("largeThreshold");return t>e&&(e=t),e},t.prototype.brushSelector=function(e,t,n){return n.rect(t.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=Eu(ES.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t}(ES),jS=IS,PS=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}return e}(),RS=function(e){function t(t){var n=e.call(this,t)||this;return n.type="sausage",n}return a(t,e),t.prototype.getDefaultShape=function(){return new PS},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r0||0,0),o=Math.max(t.r,0),a=.5*(o-i),s=i+a,l=t.startAngle,u=t.endAngle,c=t.clockwise,d=2*Math.PI,h=c?u-lMath.PI/2&&d<1.5*Math.PI&&(d-=Math.PI),e.setTextConfig({rotation:d})}}function FS(e,t,n){return t*Math.sin(e)*(n?-1:1)}function zS(e,t,n){return t*Math.cos(e)*(n?1:-1)}function HS(e,t,n){var r=e.get("borderRadius");if(null==r)return n?{cornerRadius:0}:null;Object(l["t"])(r)||(r=[r,r,r,r]);var i=Math.abs(t.r||0-t.r0||0);return{cornerRadius:Object(l["H"])(r,(function(e){return ar(e,i)}))}}var VS=Math.max,WS=Math.min;function US(e,t){var n=e.getArea&&e.getArea();if($M(e,"cartesian2d")){var r=e.getBaseAxis();if("category"!==r.type||!r.onBand){var i=t.getLayout("bandWidth");r.isHorizontal()?(n.x-=i,n.width+=2*i):(n.y-=i,n.height+=2*i)}}return n}var $S=function(e){function t(){var n=e.call(this)||this;return n.type=t.type,n._isFirstFrame=!0,n}return a(t,e),t.prototype.render=function(e,t,n,r){this._model=e,this._removeOnRenderedListener(n),this._updateDrawMode(e);var i=e.get("coordinateSystem");("cartesian2d"===i||"polar"===i)&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,t,n):this._renderNormal(e,t,n,r))},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,t){this._progressiveEls=[],this._incrementalRenderLarge(e,t)},t.prototype.eachRendered=function(e){Yg(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;null!=this._isLargeDraw&&t===this._isLargeDraw||(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e,t,n,r){var i,o=this.group,a=e.getData(),s=this._data,l=e.coordinateSystem,u=l.getBaseAxis();"cartesian2d"===l.type?i=u.isHorizontal():"polar"===l.type&&(i="angle"===u.dim);var c=e.isAnimationEnabled()?e:null,d=XS(e,l);d&&this._enableRealtimeSort(d,a,n);var h=e.get("clip",!0)||d,f=US(l,a);o.removeClipPath();var p=e.get("roundCap",!0),m=e.get("showBackground",!0),g=e.getModel("backgroundStyle"),v=g.get("borderRadius")||0,y=[],b=this._backgroundEls,_=r&&r.isInitSort,w=r&&"changeAxisOrder"===r.type;function x(e){var t=tC[l.type](a,e),n=hC(l,i,t);return n.useStyle(g.getItemStyle()),"cartesian2d"===l.type?n.setShape("r",v):n.setShape("cornerRadius",v),y[e]=n,n}a.diff(s).add((function(t){var n=a.getItemModel(t),r=tC[l.type](a,t,n);if(m&&x(t),a.hasValue(t)&&eC[l.type](r)){var s=!1;h&&(s=GS[l.type](f,r));var g=qS[l.type](e,a,t,r,i,c,u.model,!1,p);d&&(g.forceLabelAnimation=!0),iC(g,a,t,n,r,e,i,"polar"===l.type),_?g.attr({shape:r}):d?KS(d,c,g,r,t,i,!1,!1):Ul(g,{shape:r},e,t),a.setItemGraphicEl(t,g),o.add(g),g.ignore=s}})).update((function(t,n){var r=a.getItemModel(t),k=tC[l.type](a,t,r);if(m){var M=void 0;0===b.length?M=x(n):(M=b[n],M.useStyle(g.getItemStyle()),"cartesian2d"===l.type?M.setShape("r",v):M.setShape("cornerRadius",v),y[t]=M);var S=tC[l.type](a,t),C=dC(i,S,l);Wl(M,{shape:C},c,t)}var T=s.getItemGraphicEl(n);if(a.hasValue(t)&&eC[l.type](k)){var O=!1;if(h&&(O=GS[l.type](f,k),O&&o.remove(T)),T?Kl(T):T=qS[l.type](e,a,t,k,i,c,u.model,!!T,p),d&&(T.forceLabelAnimation=!0),w){var L=T.getTextContent();if(L){var A=hu(L);null!=A.prevValue&&(A.prevValue=A.value)}}else iC(T,a,t,r,k,e,i,"polar"===l.type);_?T.attr({shape:k}):d?KS(d,c,T,k,t,i,!0,w):Wl(T,{shape:k},e,t,null),a.setItemGraphicEl(t,T),T.ignore=O,o.add(T)}else o.remove(T)})).remove((function(t){var n=s.getItemGraphicEl(t);n&&Xl(n,e,t)})).execute();var k=this._backgroundGroup||(this._backgroundGroup=new kr);k.removeAll();for(var M=0;Mo)return!0;o=u}return!1},t.prototype._isOrderDifferentInView=function(e,t){for(var n=t.scale,r=n.getExtent(),i=Math.max(0,r[0]),o=Math.min(r[1],n.getOrdinalMeta().categories.length-1);i<=o;++i)if(e.ordinalNumbers[i]!==n.getRawOrdinalNumber(i))return!0},t.prototype._updateSortWithinSameData=function(e,t,n,r){if(this._isOrderChangedWithinSameData(e,t,n)){var i=this._dataSort(e,n,t);this._isOrderDifferentInView(i,n)&&(this._removeOnRenderedListener(r),r.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:i}))}},t.prototype._dispatchInitSort=function(e,t,n){var r=t.baseAxis,i=this._dataSort(e,r,(function(n){return e.get(e.mapDimension(t.otherAxis.dim),n)}));n.dispatchAction({type:"changeAxisOrder",componentType:r.dim+"Axis",isInitSort:!0,axisId:r.index,sortInfo:i})},t.prototype.remove=function(e,t){this._clear(this._model),this._removeOnRenderedListener(t)},t.prototype.dispose=function(e,t){this._removeOnRenderedListener(t)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var t=this.group,n=this._data;e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl((function(t){Xl(t,e,Ts(t).dataIndex)}))):t.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(qg),GS={cartesian2d:function(e,t){var n=t.width<0?-1:1,r=t.height<0?-1:1;n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height);var i=e.x+e.width,o=e.y+e.height,a=VS(t.x,e.x),s=WS(t.x+t.width,i),l=VS(t.y,e.y),u=WS(t.y+t.height,o),c=si?s:a,t.y=d&&l>o?u:l,t.width=c?0:s-a,t.height=d?0:u-l,n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height),c||d},polar:function(e,t){var n=t.r0<=t.r?1:-1;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}var i=WS(t.r,e.r),o=VS(t.r0,e.r0);t.r=i,t.r0=o;var a=i-o<0;if(n<0){r=t.r;t.r=t.r0,t.r0=r}return a}},qS={cartesian2d:function(e,t,n,r,i,o,a,s,u){var c=new ls({shape:Object(l["m"])({},r),z2:1});if(c.__dataIndex=n,c.name="item",o){var d=c.shape,h=i?"height":"width";d[h]=0}return c},polar:function(e,t,n,r,i,o,a,s,l){var u=!i&&l?NS:wm,c=new u({shape:r,z2:1});c.name="item";var d=rC(i);if(c.calculateTextPosition=BS(d,{isRoundCap:u===NS}),o){var h=c.shape,f=i?"r":"endAngle",p={};h[f]=i?r.r0:r.startAngle,p[f]=r[f],(s?Wl:Ul)(c,{shape:p},o)}return c}};function XS(e,t){var n=e.get("realtimeSort",!0),r=t.getBaseAxis();if(n&&"category"===r.type&&"cartesian2d"===t.type)return{baseAxis:r,otherAxis:t.getOtherAxis(r)}}function KS(e,t,n,r,i,o,a,s){var l,u;o?(u={x:r.x,width:r.width},l={y:r.y,height:r.height}):(u={y:r.y,height:r.height},l={x:r.x,width:r.width}),s||(a?Wl:Ul)(n,{shape:l},t,i,null);var c=t?e.baseAxis.model:null;(a?Wl:Ul)(n,{shape:u},c,i)}function ZS(e,t){for(var n=0;n0?1:-1,a=r.height>0?1:-1;return{x:r.x+o*i/2,y:r.y+a*i/2,width:r.width-o*i,height:r.height-a*i}},polar:function(e,t,n){var r=e.getItemLayout(t);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function nC(e){return null!=e.startAngle&&null!=e.endAngle&&e.startAngle===e.endAngle}function rC(e){return function(e){var t=e?"Arc":"Angle";return function(e){switch(e){case"start":case"insideStart":case"end":case"insideEnd":return e+t;default:return e}}}(e)}function iC(e,t,n,r,i,o,a,s){var u=t.getItemVisual(n,"style");if(s){if(!o.get("roundCap")){var c=e.shape,d=HS(r.getModel("itemStyle"),c,!0);Object(l["m"])(c,d),e.setShape(c)}}else{var h=r.get(["itemStyle","borderRadius"])||0;e.setShape("r",h)}e.useStyle(u);var f=r.getShallow("cursor");f&&e.attr("cursor",f);var p=s?a?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":a?i.height>=0?"bottom":"top":i.width>=0?"right":"left",m=nu(r);tu(e,m,{labelFetcher:o,labelDataIndex:n,defaultText:vM(o.getData(),n),inheritColor:u.fill,defaultOpacity:u.opacity,defaultOutsidePosition:p});var g=e.getTextContent();if(s&&g){var v=r.get(["label","position"]);e.textConfig.inside="middle"===v||null,YS(e,"outside"===v?p:v,rC(a),r.get(["label","rotate"]))}fu(g,m,o.getRawValue(n),(function(e){return yM(t,e)}));var y=r.getModel(["emphasis"]);Ll(e,y.get("focus"),y.get("blurScope"),y.get("disabled")),Il(e,r),nC(i)&&(e.style.fill="none",e.style.stroke="none",Object(l["k"])(e.states,(function(e){e.style&&(e.style.fill=e.style.stroke="none")})))}function oC(e,t){var n=e.get(["itemStyle","borderColor"]);if(!n||"none"===n)return 0;var r=e.get(["itemStyle","borderWidth"])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),o=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(r,i,o)}var aC=function(){function e(){}return e}(),sC=function(e){function t(t){var n=e.call(this,t)||this;return n.type="largeBar",n}return a(t,e),t.prototype.getDefaultShape=function(){return new aC},t.prototype.buildPath=function(e,t){for(var n=t.points,r=this.baseDimIdx,i=1-this.baseDimIdx,o=[],a=[],s=this.barWidth,l=0;l=0?n:null}),30,!1);function cC(e,t,n){for(var r=e.baseDimIdx,i=1-r,o=e.shape.points,a=e.largeDataIndices,s=[],l=[],u=e.barWidth,c=0,d=o.length/3;c=s[0]&&t<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return a[c]}return-1}function dC(e,t,n){if($M(n,"cartesian2d")){var r=t,i=n.getArea();return{x:e?r.x:i.x,y:e?i.y:r.y,width:e?r.width:i.width,height:e?i.height:r.height}}i=n.getArea();var o=t;return{cx:i.cx,cy:i.cy,r0:e?i.r0:o.r0,r:e?i.r:o.r,startAngle:e?o.startAngle:0,endAngle:e?o.endAngle:2*Math.PI}}function hC(e,t,n){var r="polar"===e.type?wm:ls;return new r({shape:dC(t,n,e),silent:!0,z2:0})}var fC=$S;function pC(e){e.registerChartView(fC),e.registerSeriesModel(jS),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,l["h"](CS,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,TS("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,mS("bar")),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},(function(e,t){var n=e.componentType||"series";t.eachComponent({mainType:n,query:e},(function(t){e.sortInfo&&t.axis.setCategorySortInfo(e.sortInfo)}))}))}var mC=2*Math.PI,gC=Math.PI/180;function vC(e,t){return Fc(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function yC(e,t){var n=vC(e,t),r=e.get("center"),i=e.get("radius");l["t"](i)||(i=[0,i]);var o,a,s=Br(n.width,t.getWidth()),u=Br(n.height,t.getHeight()),c=Math.min(s,u),d=Br(i[0],c/2),h=Br(i[1],c/2),f=e.coordinateSystem;if(f){var p=f.dataToPoint(r);o=p[0]||0,a=p[1]||0}else l["t"](r)||(r=[r,r]),o=Br(r[0],s)+n.x,a=Br(r[1],u)+n.y;return{cx:o,cy:a,r0:d,r:h}}function bC(e,t,n){t.eachSeriesByType(e,(function(e){var t=e.getData(),r=t.mapDimension("value"),i=vC(e,n),o=yC(e,n),a=o.cx,s=o.cy,l=o.r,u=o.r0,c=-e.get("startAngle")*gC,d=e.get("endAngle"),h=e.get("padAngle")*gC;d="auto"===d?c-mC:-d*gC;var f=e.get("minAngle")*gC,p=f+h,m=0;t.each(r,(function(e){!isNaN(e)&&m++}));var g=t.getSum(r),v=Math.PI/(g||m)*2,y=e.get("clockwise"),b=e.get("roseType"),_=e.get("stillShowZeroSum"),w=t.getDataExtent(r);w[0]=0;var x=y?1:-1,k=[c,d],M=x*h/2;va(k,!y),c=k[0],d=k[1];var S=_C(e);S.startAngle=c,S.endAngle=d,S.clockwise=y;var C=Math.abs(d-c),T=C,O=0,L=c;if(t.setLayout({viewRect:i,r:l}),t.each(r,(function(e,n){var r;if(isNaN(e))t.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:y,cx:a,cy:s,r0:u,r:b?NaN:l});else{r="area"!==b?0===g&&_?v:e*v:C/m,rr?(o=L+x*r/2,c=o):(o=L+M,c=i-M),t.setItemLayout(n,{angle:r,startAngle:o,endAngle:c,clockwise:y,cx:a,cy:s,r0:u,r:b?Nr(e,w,[u,l]):l}),L=i}})),Tn?a:o,c=Math.abs(l.label.y-n);if(c>=u.maxY){var d=l.label.x-t-l.len2*i,h=r+l.len,p=Math.abs(d)e.unconstrainedWidth?null:f:null;r.setStyle("width",p)}var m=r.getBoundingRect();o.width=m.width;var g=(r.style.margin||0)+2.1;o.height=m.height+g,o.y-=(o.height-d)/2}}}function CC(e){return"center"===e.position}function TC(e){var t,n,r=e.getData(),i=[],o=!1,a=(e.get("minShowLabelAngle")||0)*xC,s=r.getLayout("viewRect"),u=r.getLayout("r"),c=s.width,d=s.x,h=s.y,f=s.height;function p(e){e.ignore=!0}function m(e){if(!e.ignore)return!0;for(var t in e.states)if(!1===e.states[t].ignore)return!0;return!1}r.each((function(e){var s=r.getItemGraphicEl(e),h=s.shape,f=s.getTextContent(),g=s.getTextGuideLine(),v=r.getItemModel(e),y=v.getModel("label"),b=y.get("position")||v.get(["emphasis","label","position"]),_=y.get("distanceToLabelLine"),w=y.get("alignTo"),x=Br(y.get("edgeDistance"),c),k=y.get("bleedMargin"),M=v.getModel("labelLine"),S=M.get("length");S=Br(S,c);var C=M.get("length2");if(C=Br(C,c),Math.abs(h.endAngle-h.startAngle)0?"right":"left":E>0?"left":"right"}var z=Math.PI,H=0,V=y.get("rotate");if(Object(l["z"])(V))H=V*(z/180);else if("center"===b)H=0;else if("radial"===V||!0===V){var W=E<0?-D+z:-D;H=W}else if("tangential"===V&&"outside"!==b&&"outer"!==b){var U=Math.atan2(E,I);U<0&&(U=2*z+U);var $=I>0;$&&(U=z+U),H=U-z}if(o=!!H,f.x=T,f.y=O,f.rotation=H,f.setStyle({verticalAlign:"middle"}),j){f.setStyle({align:A});var G=f.states.select;G&&(G.x+=f.x,G.y+=f.y)}else{var q=f.getBoundingRect().clone();q.applyTransform(f.getComputedTransform());var X=(f.style.margin||0)+2.1;q.y-=X/2,q.height+=X,i.push({label:f,labelLine:g,position:b,len:S,len2:C,minTurnAngle:M.get("minTurnAngle"),maxSurfaceAngle:M.get("maxSurfaceAngle"),surfaceNormal:new ye(E,I),linePoints:L,textAlign:A,labelDistance:_,labelAlignTo:w,edgeDistance:x,bleedMargin:k,rect:q,unconstrainedWidth:q.width,labelStyleWidth:f.style.width})}s.setTextConfig({inside:j})}})),!o&&e.get("avoidLabelOverlap")&&MC(i,t,n,u,c,f,d,h);for(var g=0;g0){for(var u=o.getItemLayout(0),c=1;isNaN(u&&u.startAngle)&&c=r.r0}},t.type="pie",t}(qg),AC=LC;function DC(e,t,n){t=Object(l["t"])(t)&&{coordDimensions:t}||Object(l["m"])({encodeDefine:e.getEncode()},t);var r=e.getSource(),i=Zk(r,t).dimensions,o=new Kk(i,e);return o.initData(r,n),o}var EC=function(){function e(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return e.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},e.prototype.containName=function(e){var t=this._getRawData();return t.indexOfName(e)>=0},e.prototype.indexOfName=function(e){var t=this._getDataWithEncodedVisual();return t.indexOfName(e)},e.prototype.getItemVisual=function(e,t){var n=this._getDataWithEncodedVisual();return n.getItemVisual(e,t)},e}(),IC=EC,jC=Ei(),PC=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new IC(l["c"](this.getData,this),l["c"](this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return DC(this,{coordDimensions:["value"],encodeDefaulter:l["h"](fd,this)})},t.prototype.getDataParams=function(t){var n=this.getData(),r=jC(n),i=r.seats;if(!i){var o=[];n.each(n.mapDimension("value"),(function(e){o.push(e)})),i=r.seats=Wr(o,n.hostModel.get("percentPrecision"))}var a=e.prototype.getDataParams.call(this,t);return a.percent=i[t]||0,a.$vars.push("percent"),a},t.prototype._defaultLabelLine=function(e){di(e,"labelLine",["show"]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(Sp),RC=PC;function NC(e){return{seriesType:e,reset:function(e,t){var n=e.getData();n.filterSelf((function(e){var t=n.mapDimension("value"),r=n.get(t,e);return!(Object(l["z"])(r)&&!isNaN(r)&&r<0)}))}}}function BC(e){e.registerChartView(AC),e.registerSeriesModel(RC),Wv("pie",e.registerAction),e.registerLayout(Object(l["h"])(bC,"pie")),e.registerProcessor(wC("pie")),e.registerProcessor(NC("pie"))}var YC=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return a(t,e),t.prototype.getInitialData=function(e,t){return pM(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var e=this.option.progressive;return null==e?this.option.large?5e3:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return null==e?this.option.large?1e4:this.get("progressiveThreshold"):e},t.prototype.brushSelector=function(e,t,n){return n.point(t.getItemLayout(e))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},t}(Sp),FC=YC,zC=4,HC=function(){function e(){}return e}(),VC=function(e){function t(t){var n=e.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return a(t,e),t.prototype.getDefaultShape=function(){return new HC},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(e,t){var n,r=t.points,i=t.size,o=this.symbolProxy,a=o.shape,s=e.getContext?e.getContext():e,l=s&&i[0]=0;s--){var l=2*s,u=r[l]-o/2,c=r[l+1]-a/2;if(e>=u&&t>=c&&e<=u+o&&t<=c+a)return s}return-1},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect();if(e=n[0],t=n[1],r.contain(e,t)){var i=this.hoverDataIdx=this.findDataIndex(e,t);return i>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var t=this.shape,n=t.points,r=t.size,i=r[0],o=r[1],a=1/0,s=1/0,l=-1/0,u=-1/0,c=0;c=0&&(l.dataIndex=n+(e.startIndex||0))}))},e.prototype.remove=function(){this._clear()},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),UC=WC,$C=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.render=function(e,t,n){var r=e.getData(),i=this._updateSymbolDraw(r,e);i.updateData(r,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,n){var r=e.getData(),i=this._updateSymbolDraw(r,e);i.incrementalPrepareUpdate(r),this._finished=!1},t.prototype.incrementalRender=function(e,t,n){this._symbolDraw.incrementalUpdate(e,t.getData(),{clipShape:this._getClipShape(t)}),this._finished=e.end===t.getData().count()},t.prototype.updateTransform=function(e,t,n){var r=e.getData();if(this.group.dirty(),!this._finished||r.count()>1e4)return{update:!0};var i=hS("").reset(e,t,n);i.progress&&i.progress({start:0,end:r.count(),count:r.count()},r),this._symbolDraw.updateLayout(r)},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._getClipShape=function(e){if(e.get("clip",!0)){var t=e.coordinateSystem;return t&&t.getArea&&t.getArea(.1)}},t.prototype._updateSymbolDraw=function(e,t){var n=this._symbolDraw,r=t.pipelineContext,i=r.large;return n&&i===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=i?new UC:new CM,this._isLargeDraw=i,this.group.removeAll()),this.group.add(n.group),n},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(qg),GC=$C,qC=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(Kc),XC=qC,KC=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},e.prototype.getCoordSysModel=function(){},e}(),ZC=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Ri).models[0]},t.type="cartesian2dAxis",t}(Kc);l["K"](ZC,KC);var JC={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},QC=l["I"]({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},JC),eT=l["I"]({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},JC),tT=l["I"]({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},eT),nT=l["i"]({logBase:10},eT),rT={category:QC,value:eT,time:tT,log:nT},iT=0,oT=function(){function e(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++iT}return e.createByAxisModel=function(t){var n=t.option,r=n.data,i=r&&Object(l["H"])(r,aT);return new e({categories:i,needCollect:!i,deduplication:!1!==n.dedplication})},e.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},e.prototype.parseAndCollect=function(e){var t,n=this._needCollect;if(!Object(l["C"])(e)&&!n)return e;if(n&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var r=this._getOrCreateMap();return t=r.get(e),null==t&&(n?(t=this.categories.length,this.categories[t]=e,r.set(e,t)):t=NaN),t},e.prototype._getOrCreateMap=function(){return this._map||(this._map=Object(l["f"])(this.categories))},e}();function aT(e){return Object(l["A"])(e)&&null!=e.value?e.value:e+""}var sT=oT,lT={value:1,category:1,time:1,log:1};function uT(e,t,n,r){Object(l["k"])(lT,(function(i,o){var s=Object(l["I"])(Object(l["I"])({},rT[o],!0),r,!0),u=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t+"Axis."+o,n}return a(n,e),n.prototype.mergeDefaultAndTheme=function(e,t){var n=Vc(this),r=n?Uc(e):{},i=t.getTheme();Object(l["I"])(e,i.get(o+"Axis")),Object(l["I"])(e,this.getDefaultOption()),e.type=cT(e),n&&Wc(e,r,n)},n.prototype.optionUpdated=function(){var e=this.option;"category"===e.type&&(this.__ordinalMeta=sT.createByAxisModel(this))},n.prototype.getCategories=function(e){var t=this.option;if("category"===t.type)return e?t.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.type=t+"Axis."+o,n.defaultOption=s,n}(n);e.registerComponentModel(u)})),e.registerSubTypeDefaulter(t+"Axis",cT)}function cT(e){return e.type||(e.data?"category":"value")}var dT=function(){function e(e){this._setting=e||{},this._extent=[1/0,-1/0]}return e.prototype.getSetting=function(e){return this._setting[e]},e.prototype.unionExtent=function(e){var t=this._extent;e[0]t[1]&&(t[1]=e[1])},e.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=e),isNaN(t)||(n[1]=t)},e.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(e){this._isBlank=e},e}();ro(dT);var hT=dT;function fT(e){return"interval"===e.type||"log"===e.type}function pT(e,t,n,r){var i={},o=e[1]-e[0],a=i.interval=Qr(o/t,!0);null!=n&&ar&&(a=i.interval=r);var s=i.intervalPrecision=gT(a),l=i.niceTickExtent=[Yr(Math.ceil(e[0]/a)*a,s),Yr(Math.floor(e[1]/a)*a,s)];return yT(l,e),i}function mT(e){var t=Math.pow(10,Jr(e)),n=e/t;return n?2===n?n=3:3===n?n=5:n*=2:n=1,Yr(n*t)}function gT(e){return zr(e)+2}function vT(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function yT(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),vT(e,0,t),vT(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function bT(e,t){return e>=t[0]&&e<=t[1]}function _T(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function wT(e,t){return e*(t[1]-t[0])+t[0]}var xT=function(e){function t(t){var n=e.call(this,t)||this;n.type="ordinal";var r=n.getSetting("ordinalMeta");return r||(r=new sT({})),Object(l["t"])(r)&&(r=new sT({categories:Object(l["H"])(r,(function(e){return Object(l["A"])(e)?e.value:e}))})),n._ordinalMeta=r,n._extent=n.getSetting("extent")||[0,r.categories.length-1],n}return a(t,e),t.prototype.parse=function(e){return null==e?NaN:Object(l["C"])(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return e=this.parse(e),bT(e,this._extent)&&null!=this._ordinalMeta.categories[e]},t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),_T(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(wT(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){var e=[],t=this._extent,n=t[0];while(n<=t[1])e.push({value:n}),n++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(null!=e){for(var t=e.ordinalNumbers,n=this._ordinalNumbersByTick=[],r=this._ticksByOrdinalNumber=[],i=0,o=this._ordinalMeta.categories.length,a=Math.min(o,t.length);i=0&&e=0&&e=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(hT);hT.registerClass(xT);var kT=xT,MT=Yr,ST=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return a(t,e),t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return bT(e,this._extent)},t.prototype.normalize=function(e){return _T(e,this._extent)},t.prototype.scale=function(e){return wT(e,this._extent)},t.prototype.setExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=parseFloat(e)),isNaN(t)||(n[1]=parseFloat(t))},t.prototype.unionExtent=function(e){var t=this._extent;e[0]t[1]&&(t[1]=e[1]),this.setExtent(t[0],t[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=gT(e)},t.prototype.getTicks=function(e){var t=this._interval,n=this._extent,r=this._niceExtent,i=this._intervalPrecision,o=[];if(!t)return o;var a=1e4;n[0]a)return[]}var l=o.length?o[o.length-1].value:r[1];return n[1]>l&&(e?o.push({value:MT(l+t,i)}):o.push({value:n[1]})),o},t.prototype.getMinorTicks=function(e){for(var t=this.getTicks(!0),n=[],r=this.getExtent(),i=1;ir[0]&&d>>1;e[i][1]n&&(this._approxInterval=n);var o=LT.length,a=Math.min(TT(LT,this._approxInterval,0,o),o-1);this._interval=LT[a][1],this._minLevelUnit=LT[Math.max(a-1,0)][0]},t.prototype.parse=function(e){return Object(l["z"])(e)?e:+Kr(e)},t.prototype.contain=function(e){return bT(this.parse(e),this._extent)},t.prototype.normalize=function(e){return _T(this.parse(e),this._extent)},t.prototype.scale=function(e){return wT(e,this._extent)},t.type="time",t}(CT),LT=[["second",Uu],["minute",$u],["hour",Gu],["quarter-day",6*Gu],["half-day",12*Gu],["day",1.2*qu],["half-week",3.5*qu],["week",7*qu],["month",31*qu],["quarter",95*qu],["half-year",Xu/2],["year",Xu]];function AT(e,t,n,r){var i=Kr(t),o=Kr(n),a=function(e){return lc(i,e,r)===lc(o,e,r)},s=function(){return a("year")},l=function(){return s()&&a("month")},u=function(){return l()&&a("day")},c=function(){return u()&&a("hour")},d=function(){return c()&&a("minute")},h=function(){return d()&&a("second")},f=function(){return h()&&a("millisecond")};switch(e){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return d();case"second":return h();case"millisecond":return f()}}function DT(e,t){return e/=qu,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function ET(e){var t=30*qu;return e/=t,e>6?6:e>3?3:e>2?2:1}function IT(e){return e/=Gu,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function jT(e,t){return e/=t?$u:Uu,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function PT(e){return Qr(e,!0)}function RT(e,t,n){var r=new Date(e);switch(nc(t)){case"year":case"month":r[vc(n)](0);case"day":r[yc(n)](1);case"hour":r[bc(n)](0);case"minute":r[_c(n)](0);case"second":r[wc(n)](0),r[xc(n)](0)}return r.getTime()}function NT(e,t,n,r){var i=1e4,o=ec,a=0;function s(e,t,n,i,o,a,s){var l=new Date(t),u=t,c=l[i]();while(u1&&0===u&&o.unshift({value:o[0].value-h})}}for(u=0;u=r[0]&&b<=r[1]&&h++)}var _=(r[1]-r[0])/t;if(h>1.5*_&&f>_/1.5)break;if(c.push(v),h>_||e===o[p])break}d=[]}}}var w=Object(l["n"])(Object(l["H"])(c,(function(e){return Object(l["n"])(e,(function(e){return e.value>=r[0]&&e.value<=r[1]&&!e.notAdd}))})),(function(e){return e.length>0})),x=[],k=w.length-1;for(p=0;p0)r*=10;var o=[Yr(VT(t[0]/r)*r),Yr(HT(t[1]/r)*r)];this._interval=r,this._niceExtent=o}},t.prototype.calcNiceExtent=function(e){FT.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return e=UT(e)/UT(this.base),bT(e,this._extent)},t.prototype.normalize=function(e){return e=UT(e)/UT(this.base),_T(e,this._extent)},t.prototype.scale=function(e){return e=wT(e,this._extent),WT(this.base,e)},t.type="log",t}(hT),GT=$T.prototype;function qT(e,t){return zT(e,zr(t))}GT.getMinorTicks=FT.getMinorTicks,GT.getLabel=FT.getLabel,hT.registerClass($T);var XT=$T,KT=function(){function e(e,t,n){this._prepareParams(e,t,n)}return e.prototype._prepareParams=function(e,t,n){n[1]0&&s>0&&!u&&(a=0),a<0&&s<0&&!c&&(s=0));var h=this._determinedMin,f=this._determinedMax;return null!=h&&(a=h,u=!0),null!=f&&(s=f,c=!0),{min:a,max:s,minFixed:u,maxFixed:c,isBlank:d}},e.prototype.modifyDataMinMax=function(e,t){this[JT[e]]=t},e.prototype.setDeterminedMinMax=function(e,t){var n=ZT[e];this[n]=t},e.prototype.freeze=function(){this.frozen=!0},e}(),ZT={min:"_determinedMin",max:"_determinedMax"},JT={min:"_dataMin",max:"_dataMax"};function QT(e,t,n){var r=e.rawExtentInfo;return r||(r=new KT(e,t,n),e.rawExtentInfo=r,r)}function eO(e,t){return null==t?null:Object(l["l"])(t)?NaN:e.parse(t)}function tO(e,t){var n=e.type,r=QT(e,t,e.getExtent()).calculate();e.setBlank(r.isBlank);var i=r.min,o=r.max,a=t.ecModel;if(a&&"time"===n){var s=wS("bar",a),u=!1;if(l["k"](s,(function(e){u=u||e.getBaseAxis()===t.axis})),u){var c=kS(s),d=nO(i,o,t,c);i=d.min,o=d.max}}return{extent:[i,o],fixMin:r.minFixed,fixMax:r.maxFixed}}function nO(e,t,n,r){var i=n.axis.getExtent(),o=Math.abs(i[1]-i[0]),a=SS(r,n.axis);if(void 0===a)return{min:e,max:t};var s=1/0;l["k"](a,(function(e){s=Math.min(e.offset,s)}));var u=-1/0;l["k"](a,(function(e){u=Math.max(e.offset+e.width,u)})),s=Math.abs(s),u=Math.abs(u);var c=s+u,d=t-e,h=1-(s+u)/o,f=d/h-d;return t+=f*(u/c),e-=f*(s/c),{min:e,max:t}}function rO(e,t){var n=t,r=tO(e,n),i=r.extent,o=n.get("splitNumber");e instanceof XT&&(e.base=n.get("logBase"));var a=e.type,s=n.get("interval"),l="interval"===a||"time"===a;e.setExtent(i[0],i[1]),e.calcNiceExtent({splitNumber:o,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),null!=s&&e.setInterval&&e.setInterval(s)}function iO(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new kT({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new BT({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(hT.getClass(t)||CT)}}function oO(e){var t=e.scale.getExtent(),n=t[0],r=t[1];return!(n>0&&r>0||n<0&&r<0)}function aO(e){var t=e.getLabelModel().get("formatter"),n="category"===e.type?e.scale.getExtent()[0]:null;return"time"===e.scale.type?function(t){return function(n,r){return e.scale.getFormattedLabel(n,r,t)}}(t):l["C"](t)?function(t){return function(n){var r=e.scale.getLabel(n),i=t.replace("{value}",null!=r?r:"");return i}}(t):l["w"](t)?function(t){return function(r,i){return null!=n&&(i=r.value-n),t(sO(e,r),i,null!=r.level?{level:r.level}:null)}}(t):function(t){return e.scale.getLabel(t)}}function sO(e,t){return"category"===e.type?e.scale.getLabel(t):t.value}function lO(e){var t=e.model,n=e.scale;if(t.get(["axisLabel","show"])&&!n.isBlank()){var r,i,o=n.getExtent();n instanceof kT?i=n.count():(r=n.getTicks(),i=r.length);var a,s=e.getLabelModel(),l=aO(e),u=1;i>40&&(u=Math.ceil(i/40));for(var c=0;ce[1]&&(e[1]=r[1])}))}var pO=function(){function e(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return e.prototype.getAxis=function(e){return this._axes[e]},e.prototype.getAxes=function(){return l["H"](this._dimList,(function(e){return this._axes[e]}),this)},e.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),l["n"](this.getAxes(),(function(t){return t.scale.type===e}))},e.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},e}(),mO=pO,gO=["x","y"];function vO(e){return"interval"===e.type||"time"===e.type}var yO=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=gO,t}return a(t,e),t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,t=this.getAxis("y").scale;if(vO(e)&&vO(t)){var n=e.getExtent(),r=t.getExtent(),i=this.dataToPoint([n[0],r[0]]),o=this.dataToPoint([n[1],r[1]]),a=n[1]-n[0],s=r[1]-r[0];if(a&&s){var l=(o[0]-i[0])/a,u=(o[1]-i[1])/s,c=i[0]-n[0]*l,d=i[1]-r[0]*u,h=this._transform=[l,0,0,u,c,d];this._invTransform=me([],h)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var t=this.getAxis("x"),n=this.getAxis("y");return t.contain(t.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,t){var n=this.dataToPoint(e),r=this.dataToPoint(t),i=this.getArea(),o=new Oe(n[0],n[1],r[0]-n[0],r[1]-n[1]);return i.intersect(o)},t.prototype.dataToPoint=function(e,t,n){n=n||[];var r=e[0],i=e[1];if(this._transform&&null!=r&&isFinite(r)&&null!=i&&isFinite(i))return S(n,e,this._transform);var o=this.getAxis("x"),a=this.getAxis("y");return n[0]=o.toGlobalCoord(o.dataToCoord(r,t)),n[1]=a.toGlobalCoord(a.dataToCoord(i,t)),n},t.prototype.clampData=function(e,t){var n=this.getAxis("x").scale,r=this.getAxis("y").scale,i=n.getExtent(),o=r.getExtent(),a=n.parse(e[0]),s=r.parse(e[1]);return t=t||[],t[0]=Math.min(Math.max(Math.min(i[0],i[1]),a),Math.max(i[0],i[1])),t[1]=Math.min(Math.max(Math.min(o[0],o[1]),s),Math.max(o[0],o[1])),t},t.prototype.pointToData=function(e,t){var n=[];if(this._invTransform)return S(n,e,this._invTransform);var r=this.getAxis("x"),i=this.getAxis("y");return n[0]=r.coordToData(r.toLocalCoord(e[0]),t),n[1]=i.coordToData(i.toLocalCoord(e[1]),t),n},t.prototype.getOtherAxis=function(e){return this.getAxis("x"===e.dim?"y":"x")},t.prototype.getArea=function(e){e=e||0;var t=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),r=Math.min(t[0],t[1])-e,i=Math.min(n[0],n[1])-e,o=Math.max(t[0],t[1])-r+e,a=Math.max(n[0],n[1])-i+e;return new Oe(r,i,o,a)},t}(mO),bO=yO,_O=Ei();function wO(e,t){var n=l["H"](t,(function(t){return e.scale.parse(t)}));return"time"===e.type&&n.length>0&&(n.sort(),n.unshift(n[0]),n.push(n[n.length-1])),n}function xO(e){var t=e.getLabelModel().get("customValues");if(t){var n=aO(e),r=e.scale.getExtent(),i=wO(e,t),o=l["n"](i,(function(e){return e>=r[0]&&e<=r[1]}));return{labels:l["H"](o,(function(t){var r={value:t};return{formattedLabel:n(r),rawLabel:e.scale.getLabel(r),tickValue:t}}))}}return"category"===e.type?MO(e):TO(e)}function kO(e,t){var n=e.getTickModel().get("customValues");if(n){var r=e.scale.getExtent(),i=wO(e,n);return{ticks:l["n"](i,(function(e){return e>=r[0]&&e<=r[1]}))}}return"category"===e.type?CO(e,t):{ticks:l["H"](e.scale.getTicks(),(function(e){return e.value}))}}function MO(e){var t=e.getLabelModel(),n=SO(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function SO(e,t){var n,r,i=OO(e,"labels"),o=cO(t),a=LO(i,o);return a||(l["w"](o)?n=PO(e,o):(r="auto"===o?DO(e):o,n=jO(e,r)),AO(i,o,{labels:n,labelCategoryInterval:r}))}function CO(e,t){var n,r,i=OO(e,"ticks"),o=cO(t),a=LO(i,o);if(a)return a;if(t.get("show")&&!e.scale.isBlank()||(n=[]),l["w"](o))n=PO(e,o,!0);else if("auto"===o){var s=SO(e,e.getLabelModel());r=s.labelCategoryInterval,n=l["H"](s.labels,(function(e){return e.tickValue}))}else r=o,n=jO(e,r,!0);return AO(i,o,{ticks:n,tickCategoryInterval:r})}function TO(e){var t=e.scale.getTicks(),n=aO(e);return{labels:l["H"](t,(function(t,r){return{level:t.level,formattedLabel:n(t,r),rawLabel:e.scale.getLabel(t),tickValue:t.value}}))}}function OO(e,t){return _O(e)[t]||(_O(e)[t]=[])}function LO(e,t){for(var n=0;n40&&(s=Math.max(1,Math.floor(a/40)));for(var l=o[0],u=e.dataToCoord(l+1)-e.dataToCoord(l),c=Math.abs(u*Math.cos(r)),d=Math.abs(u*Math.sin(r)),h=0,f=0;l<=o[1];l+=s){var p=0,m=0,g=nr(n({value:l}),t.font,"center","top");p=1.3*g.width,m=1.3*g.height,h=Math.max(h,p,7),f=Math.max(f,m,7)}var v=h/c,y=f/d;isNaN(v)&&(v=1/0),isNaN(y)&&(y=1/0);var b=Math.max(0,Math.floor(Math.min(v,y))),_=_O(e.model),w=e.getExtent(),x=_.lastAutoInterval,k=_.lastTickCount;return null!=x&&null!=k&&Math.abs(x-b)<=1&&Math.abs(k-a)<=1&&x>b&&_.axisExtent0===w[0]&&_.axisExtent1===w[1]?b=x:(_.lastTickCount=a,_.lastAutoInterval=b,_.axisExtent0=w[0],_.axisExtent1=w[1]),b}function IO(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function jO(e,t,n){var r=aO(e),i=e.scale,o=i.getExtent(),a=e.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=o[0],c=i.count();0!==u&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var d=dO(e),h=a.get("showMinLabel")||d,f=a.get("showMaxLabel")||d;h&&u!==o[0]&&m(o[0]);for(var p=u;p<=o[1];p+=l)m(p);function m(e){var t={value:e};s.push(n?e:{formattedLabel:r(t),rawLabel:i.getLabel(t),tickValue:e})}return f&&p-l!==o[1]&&m(o[1]),s}function PO(e,t,n){var r=e.scale,i=aO(e),o=[];return l["k"](r.getTicks(),(function(e){var a=r.getLabel(e),s=e.value;t(e.value,a)&&o.push(n?s:{formattedLabel:i(e),rawLabel:a,tickValue:s})})),o}var RO=[0,1],NO=function(){function e(e,t,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=n||[0,0]}return e.prototype.contain=function(e){var t=this._extent,n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]);return e>=n&&e<=r},e.prototype.containData=function(e){return this.scale.contain(e)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(e){return Vr(e||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(e,t){var n=this._extent;n[0]=e,n[1]=t},e.prototype.dataToCoord=function(e,t){var n=this._extent,r=this.scale;return e=r.normalize(e),this.onBand&&"ordinal"===r.type&&(n=n.slice(),BO(n,r.count())),Nr(e,RO,n,t)},e.prototype.coordToData=function(e,t){var n=this._extent,r=this.scale;this.onBand&&"ordinal"===r.type&&(n=n.slice(),BO(n,r.count()));var i=Nr(e,n,RO,t);return this.scale.scale(i)},e.prototype.pointToData=function(e,t){},e.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),n=kO(this,t),r=n.ticks,i=Object(l["H"])(r,(function(e){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(e):e),tickValue:e}}),this),o=t.get("alignWithLabel");return YO(this,i,o,e.clamp),i},e.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var e=this.model.getModel("minorTick"),t=e.get("splitNumber");t>0&&t<100||(t=5);var n=this.scale.getMinorTicks(t),r=Object(l["H"])(n,(function(e){return Object(l["H"])(e,(function(e){return{coord:this.dataToCoord(e),tickValue:e}}),this)}),this);return r},e.prototype.getViewLabels=function(){return xO(this).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent(),n=t[1]-t[0]+(this.onBand?1:0);0===n&&(n=1);var r=Math.abs(e[1]-e[0]);return Math.abs(r)/n},e.prototype.calculateCategoryInterval=function(){return EO(this)},e}();function BO(e,t){var n=e[1]-e[0],r=t,i=n/r/2;e[0]+=i,e[1]-=i}function YO(e,t,n,r){var i=t.length;if(e.onBand&&!n&&i){var o,a,s=e.getExtent();if(1===i)t[0].coord=s[0],o=t[1]={coord:s[1],tickValue:t[0].tickValue};else{var u=t[i-1].tickValue-t[0].tickValue,c=(t[i-1].coord-t[0].coord)/u;Object(l["k"])(t,(function(e){e.coord-=c/2}));var d=e.scale.getExtent();a=1+d[1]-t[i-1].tickValue,o={coord:t[i-1].coord+c*a,tickValue:d[1]+1},t.push(o)}var h=s[0]>s[1];f(t[0].coord,s[0])&&(r?t[0].coord=s[0]:t.shift()),r&&f(s[0],t[0].coord)&&t.unshift({coord:s[0]}),f(s[1],o.coord)&&(r?o.coord=s[1]:t.pop()),r&&f(o.coord,s[1])&&t.push({coord:s[1]})}function f(e,t){return e=Yr(e),t=Yr(t),h?e>t:et[1]&&t.reverse(),t},t.prototype.pointToData=function(e,t){return this.coordToData(this.toLocalCoord(e["x"===this.dim?0:1]),t)},t.prototype.setCategorySortInfo=function(e){if("category"!==this.type)return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(FO),HO=zO;function VO(e,t,n){n=n||{};var r=e.coordinateSystem,i=t.axis,o={},a=i.getAxesOnZeroOf()[0],s=i.position,u=a?"onZero":s,c=i.dim,d=r.getRect(),h=[d.x,d.x+d.width,d.y,d.y+d.height],f={left:0,right:1,top:0,bottom:1,onZero:2},p=t.get("offset")||0,m="x"===c?[h[2]-p,h[3]+p]:[h[0]-p,h[1]+p];if(a){var g=a.toGlobalCoord(a.dataToCoord(0));m[f.onZero]=Math.max(Math.min(g,m[1]),m[0])}o.position=["y"===c?m[f[u]]:h[0],"x"===c?m[f[u]]:h[3]],o.rotation=Math.PI/2*("x"===c?0:1);var v={top:-1,bottom:1,left:-1,right:1};o.labelDirection=o.tickDirection=o.nameDirection=v[s],o.labelOffset=a?m[f[s]]-m[f.onZero]:0,t.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),l["O"](n.labelInside,t.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var y=t.get(["axisLabel","rotate"]);return o.labelRotate="top"===u?-y:y,o.z2=1,o}function WO(e){return"cartesian2d"===e.get("coordinateSystem")}function UO(e){var t={xAxisModel:null,yAxisModel:null};return l["k"](t,(function(n,r){var i=r.replace(/Model$/,""),o=e.getReferringComponents(i,Ri).models[0];t[r]=o})),t}var $O=Math.log;function GO(e,t,n){var r=CT.prototype,i=r.getTicks.call(n),o=r.getTicks.call(n,!0),a=i.length-1,s=r.getInterval.call(n),l=tO(e,t),u=l.extent,c=l.fixMin,d=l.fixMax;if("log"===e.type){var h=$O(e.base);u=[$O(u[0])/h,$O(u[1])/h]}e.setExtent(u[0],u[1]),e.calcNiceExtent({splitNumber:a,fixMin:c,fixMax:d});var f=r.getExtent.call(e);c&&(u[0]=f[0]),d&&(u[1]=f[1]);var p=r.getInterval.call(e),m=u[0],g=u[1];if(c&&d)p=(g-m)/a;else if(c){g=u[0]+p*a;while(gu[0]&&isFinite(m)&&isFinite(u[0]))p=mT(p),m=u[1]-p*a}else{var v=e.getTicks().length-1;v>a&&(p=mT(p));var y=p*a;g=Math.ceil(u[1]/p)*p,m=Yr(g-y),m<0&&u[0]>=0?(m=0,g=Yr(y)):g>0&&u[1]<=0&&(g=0,m=-Yr(y))}var b=(i[0].value-o[0].value)/s,_=(i[a].value-o[a].value)/s;r.setExtent.call(e,m+p*b,g+p*_),r.setInterval.call(e,p),(b||_)&&r.setNiceExtent.call(e,m+p,g-p)}var qO=function(){function e(e,t,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=gO,this._initCartesian(e,t,n),this.model=e}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(e,t){var n=this._axesMap;function r(e){var t,n=Object(l["F"])(e),r=n.length;if(r){for(var i=[],o=r-1;o>=0;o--){var a=+n[o],s=e[a],u=s.model,c=s.scale;fT(c)&&u.get("alignTicks")&&null==u.get("interval")?i.push(s):(rO(c,u),fT(c)&&(t=s))}i.length&&(t||(t=i.pop(),rO(t.scale,t.model)),Object(l["k"])(i,(function(e){GO(e.scale,e.model,t.scale)})))}}this._updateScale(e,this.model),r(n.x),r(n.y);var i={};Object(l["k"])(n.x,(function(e){KO(n,"y",e,i)})),Object(l["k"])(n.y,(function(e){KO(n,"x",e,i)})),this.resize(this.model,t)},e.prototype.resize=function(e,t,n){var r=e.getBoxLayoutParams(),i=!n&&e.get("containLabel"),o=Fc(r,{width:t.getWidth(),height:t.getHeight()});this._rect=o;var a=this._axesList;function s(){Object(l["k"])(a,(function(e){var t=e.isHorizontal(),n=t?[0,o.width]:[0,o.height],r=e.inverse?1:0;e.setExtent(n[r],n[1-r]),JO(e,t?o.x:o.y)}))}s(),i&&(Object(l["k"])(a,(function(e){if(!e.model.get(["axisLabel","inside"])){var t=lO(e);if(t){var n=e.isHorizontal()?"height":"width",r=e.model.get(["axisLabel","margin"]);o[n]-=t[n]+r,"top"===e.position?o.y+=t.height+r:"left"===e.position&&(o.x+=t.width+r)}}})),s()),Object(l["k"])(this._coordsList,(function(e){e.calcAffineTransform()}))},e.prototype.getAxis=function(e,t){var n=this._axesMap[e];if(null!=n)return n[t||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(e,t){if(null!=e&&null!=t){var n="x"+e+"y"+t;return this._coordsMap[n]}Object(l["A"])(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var r=0,i=this._coordsList;r0?"top":"bottom",r="center"):qr(o-eL)?(i=n>0?"bottom":"top",r="center"):(i="middle",r=o>0&&o0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:r,textVerticalAlign:i}},e.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},e.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},e}(),nL={axisLine:function(e,t,n,r){var i=t.get(["axisLine","show"]);if("auto"===i&&e.handleAutoShown&&(i=e.handleAutoShown("axisLine")),i){var o=t.axis.getExtent(),a=r.transform,s=[o[0],0],u=[o[1],0],c=s[0]>u[0];a&&(S(s,s,a),S(u,u,a));var d=Object(l["m"])({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new Rm({shape:{x1:s[0],y1:s[1],x2:u[0],y2:u[1]},style:d,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});wg(h.shape,h.style.lineWidth),h.anid="line",n.add(h);var f=t.get(["axisLine","symbol"]);if(null!=f){var p=t.get(["axisLine","symbolSize"]);Object(l["C"])(f)&&(f=[f,f]),(Object(l["C"])(p)||Object(l["z"])(p))&&(p=[p,p]);var m=uy(t.get(["axisLine","symbolOffset"])||0,p),g=p[0],v=p[1];Object(l["k"])([{rotate:e.rotation+Math.PI/2,offset:m[0],r:0},{rotate:e.rotation-Math.PI/2,offset:m[1],r:Math.sqrt((s[0]-u[0])*(s[0]-u[0])+(s[1]-u[1])*(s[1]-u[1]))}],(function(t,r){if("none"!==f[r]&&null!=f[r]){var i=sy(f[r],-g/2,-v/2,g,v,d.stroke,!0),o=t.r+t.offset,a=c?u:s;i.attr({rotation:t.rotate,x:a[0]+o*Math.cos(e.rotation),y:a[1]-o*Math.sin(e.rotation),silent:!0,z2:11}),n.add(i)}}))}}},axisTickLabel:function(e,t,n,r){var i=uL(n,r,t,e),o=dL(n,r,t,e);if(iL(t,o,i),cL(n,r,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var a=lw(Object(l["H"])(o,(function(e){return{label:e,priority:e.z2,defaultAttr:{ignore:e.ignore}}})));hw(a)}},axisName:function(e,t,n,r){var i=Object(l["O"])(e.axisName,t.get("name"));if(i){var o,a,s=t.get("nameLocation"),u=e.nameDirection,c=t.getModel("nameTextStyle"),d=t.get("nameGap")||0,h=t.axis.getExtent(),f=h[0]>h[1]?-1:1,p=["start"===s?h[0]-f*d:"end"===s?h[1]+f*d:(h[0]+h[1])/2,sL(s)?e.labelOffset+u*d:0],m=t.get("nameRotate");null!=m&&(m=m*eL/180),sL(s)?o=tL.innerTextLayout(e.rotation,null!=m?m:e.rotation,u):(o=rL(e.rotation,s,m||0,h),a=e.axisNameAvailableWidth,null!=a&&(a=Math.abs(a/Math.sin(o.rotation)),!isFinite(a)&&(a=null)));var g=c.getFont(),v=t.get("nameTruncate",!0)||{},y=v.ellipsis,b=Object(l["O"])(e.nameTruncateMaxWidth,v.maxWidth,a),_=new Cs({x:p[0],y:p[1],rotation:o.rotation,silent:tL.isLabelSilent(t),style:ru(c,{text:i,font:g,overflow:"truncate",width:b,ellipsis:y,fill:c.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:c.get("align")||o.textAlign,verticalAlign:c.get("verticalAlign")||o.textVerticalAlign}),z2:1});if(Ng({el:_,componentModel:t,itemName:i}),_.__fullText=i,_.anid="name",t.get("triggerEvent")){var w=tL.makeAxisEventDataBase(t);w.targetType="axisName",w.name=i,Ts(_).eventData=w}r.add(_),_.updateTransform(),n.add(_),_.decomposeTransform()}}};function rL(e,t,n,r){var i,o,a=Gr(n-e),s=r[0]>r[1],l="start"===t&&!s||"start"!==t&&s;return qr(a-eL/2)?(o=l?"bottom":"top",i="center"):qr(a-1.5*eL)?(o=l?"top":"bottom",i="center"):(o="middle",i=a<1.5*eL&&a>eL/2?l?"left":"right":l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function iL(e,t,n){if(!dO(e.axis)){var r=e.get(["axisLabel","showMinLabel"]),i=e.get(["axisLabel","showMaxLabel"]);t=t||[],n=n||[];var o=t[0],a=t[1],s=t[t.length-1],l=t[t.length-2],u=n[0],c=n[1],d=n[n.length-1],h=n[n.length-2];!1===r?(oL(o),oL(u)):aL(o,a)&&(r?(oL(a),oL(c)):(oL(o),oL(u))),!1===i?(oL(s),oL(d)):aL(l,s)&&(i?(oL(l),oL(h)):(oL(s),oL(d)))}}function oL(e){e&&(e.ignore=!0)}function aL(e,t){var n=e&&e.getBoundingRect().clone(),r=t&&t.getBoundingRect().clone();if(n&&r){var i=ue([]);return fe(i,i,-e.rotation),n.applyTransform(de([],i,e.getLocalTransform())),r.applyTransform(de([],i,t.getLocalTransform())),n.intersect(r)}}function sL(e){return"middle"===e||"center"===e}function lL(e,t,n,r,i){for(var o=[],a=[],s=[],l=0;l=0||e===t}function bL(e){var t=_L(e);if(t){var n=t.axisPointerModel,r=t.axis.scale,i=n.option,o=n.get("status"),a=n.get("value");null!=a&&(a=r.parse(a));var s=xL(n);null==o&&(i.status=s?"show":"hide");var l=r.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),a0&&!h.min?h.min=0:null!=h.min&&h.min<0&&!h.max&&(h.max=0);var f=a;null!=h.color&&(f=l["i"]({color:h.color},a));var p=l["I"](l["d"](h),{boundaryGap:e,splitNumber:t,scale:n,axisLine:r,axisTick:i,axisLabel:o,name:h.text,showName:s,nameLocation:"end",nameGap:c,nameTextStyle:f,triggerEvent:d},!1);if(l["C"](u)){var m=p.name;p.name=u.replace("{value}",null!=m?m:"")}else l["w"](u)&&(p.name=u(p.name,p));var g=new Tu(p,null,this.ecModel);return l["K"](g,KC.prototype),g.mainType="radar",g.componentIndex=this.componentIndex,g}),this);this._indicatorModels=h},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:l["I"]({lineStyle:{color:"#bbb"}},qL.axisLine),axisLabel:XL(qL.axisLabel,!1),axisTick:XL(qL.axisTick,!1),splitLine:XL(qL.splitLine,!0),splitArea:XL(qL.splitArea,!0),indicator:[]},t}(Kc),ZL=KL,JL=["axisLine","axisTickLabel","axisName"],QL=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.render=function(e,t,n){var r=this.group;r.removeAll(),this._buildAxes(e),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e){var t=e.coordinateSystem,n=t.getIndicatorAxes(),r=l["H"](n,(function(e){var n=e.model.get("showName")?e.name:"",r=new hL(e.model,{axisName:n,position:[t.cx,t.cy],rotation:e.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return r}));l["k"](r,(function(e){l["k"](JL,e.add,e),this.group.add(e.getGroup())}),this)},t.prototype._buildSplitLineAndArea=function(e){var t=e.coordinateSystem,n=t.getIndicatorAxes();if(n.length){var r=e.get("shape"),i=e.getModel("splitLine"),o=e.getModel("splitArea"),a=i.getModel("lineStyle"),s=o.getModel("areaStyle"),u=i.get("show"),c=o.get("show"),d=a.get("color"),h=s.get("color"),f=l["t"](d)?d:[d],p=l["t"](h)?h:[h],m=[],g=[];if("circle"===r)for(var v=n[0].getTicksCoords(),y=t.cx,b=t.cy,_=0;_3?1.4:i>1?1.2:1.1,l=r>0?s:1/s;fA(this,"zoom","zoomOnMouseWheel",e,{scale:l,originX:o,originY:a,isAvailableBehavior:null})}if(n){var u=Math.abs(r),c=(r>0?1:-1)*(u>3?.4:u>1?.15:.05);fA(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:c,originX:o,originY:a,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(e){if(!cA(this._zr,"globalPan")){var t=e.pinchScale>1?1.1:1/1.1;fA(this,"zoom",null,e,{scale:t,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t}(E);function fA(e,t,n,r,i){e.pointerChecker&&e.pointerChecker(r,i.originX,i.originY)&&(ne(r.event),pA(e,t,n,r,i))}function pA(e,t,n,r,i){i.isAvailableBehavior=Object(l["c"])(mA,null,n,r),e.trigger(t,i)}function mA(e,t,n){var r=n[e];return!e||r&&(!Object(l["C"])(r)||t.event[r+"Key"])}var gA=hA;function vA(e,t,n){var r=e.target;r.x+=t,r.y+=n,r.dirty()}function yA(e,t,n,r){var i=e.target,o=e.zoomLimit,a=e.zoom=e.zoom||1;if(a*=t,o){var s=o.min||0,l=o.max||1/0;a=Math.max(Math.min(l,a),s)}var u=a/e.zoom;e.zoom=a,i.x-=(n-i.x)*(u-1),i.y-=(r-i.y)*(u-1),i.scaleX*=u,i.scaleY*=u,i.dirty()}var bA,_A={axisPointer:1,tooltip:1,brush:1};function wA(e,t,n){var r=t.getComponentByElement(e.topTarget),i=r&&r.coordinateSystem;return r&&r!==n&&!_A.hasOwnProperty(r.mainType)&&i&&i.model!==n}function xA(e){if(Object(l["C"])(e)){var t=new DOMParser;e=t.parseFromString(e,"text/xml")}var n=e;9===n.nodeType&&(n=n.firstChild);while("svg"!==n.nodeName.toLowerCase()||1!==n.nodeType)n=n.nextSibling;return n}var kA={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},MA=Object(l["F"])(kA),SA={"alignment-baseline":"textBaseline","stop-color":"stopColor"},CA=Object(l["F"])(SA),TA=function(){function e(){this._defs={},this._root=null}return e.prototype.parse=function(e,t){t=t||{};var n=xA(e);this._defsUsePending=[];var r=new kr;this._root=r;var i=[],o=n.getAttribute("viewBox")||"",a=parseFloat(n.getAttribute("width")||t.width),s=parseFloat(n.getAttribute("height")||t.height);isNaN(a)&&(a=null),isNaN(s)&&(s=null),IA(n,r,null,!0,!1);var l,u,c=n.firstChild;while(c)this._parseNode(c,r,i,null,!1,!1),c=c.nextSibling;if(NA(this._defs,this._defsUsePending),this._defsUsePending=[],o){var d=YA(o);d.length>=4&&(l={x:parseFloat(d[0]||0),y:parseFloat(d[1]||0),width:parseFloat(d[2]),height:parseFloat(d[3])})}if(l&&null!=a&&null!=s&&(u=$A(l,{x:0,y:0,width:a,height:s}),!t.ignoreViewBox)){var h=r;r=new kr,r.add(h),h.scaleX=h.scaleY=u.scale,h.x=u.x,h.y=u.y}return t.ignoreRootClip||null==a||null==s||r.setClipPath(new ls({shape:{x:0,y:0,width:a,height:s}})),{root:r,width:a,height:s,viewBoxRect:l,viewBoxTransform:u,named:i}},e.prototype._parseNode=function(e,t,n,r,i,o){var a,s=e.nodeName.toLowerCase(),u=r;if("defs"===s&&(i=!0),"text"===s&&(o=!0),"defs"===s||"switch"===s)a=t;else{if(!i){var c=bA[s];if(c&&Object(l["q"])(bA,s)){a=c.call(this,e,t);var d=e.getAttribute("name");if(d){var h={name:d,namedFrom:null,svgNodeTagLower:s,el:a};n.push(h),"g"===s&&(u=h)}else r&&n.push({name:r.name,namedFrom:r,svgNodeTagLower:s,el:a});t.add(a)}}var f=OA[s];if(f&&Object(l["q"])(OA,s)){var p=f.call(this,e),m=e.getAttribute("id");m&&(this._defs[m]=p)}}if(a&&a.isGroup){var g=e.firstChild;while(g)1===g.nodeType?this._parseNode(g,a,n,u,i,o):3===g.nodeType&&o&&this._parseText(g,a),g=g.nextSibling}},e.prototype._parseText=function(e,t){var n=new qa({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});DA(t,n),IA(e,n,this._defsUsePending,!1,!1),jA(n,t);var r=n.style,i=r.fontSize;i&&i<9&&(r.fontSize=9,n.scaleX*=i/9,n.scaleY*=i/9);var o=(r.fontSize||r.fontFamily)&&[r.fontStyle,r.fontWeight,(r.fontSize||12)+"px",r.fontFamily||"sans-serif"].join(" ");r.font=o;var a=n.getBoundingRect();return this._textX+=a.width,t.add(n),n},e.internalField=function(){bA={g:function(e,t){var n=new kr;return DA(t,n),IA(e,n,this._defsUsePending,!1,!1),n},rect:function(e,t){var n=new ls;return DA(t,n),IA(e,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(e,t){var n=new em;return DA(t,n),IA(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),n.silent=!0,n},line:function(e,t){var n=new Rm;return DA(t,n),IA(e,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(e,t){var n=new rm;return DA(t,n),IA(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(e,t){var n,r=e.getAttribute("points");r&&(n=EA(r));var i=new Lm({shape:{points:n||[]},silent:!0});return DA(t,i),IA(e,i,this._defsUsePending,!1,!1),i},polyline:function(e,t){var n,r=e.getAttribute("points");r&&(n=EA(r));var i=new Em({shape:{points:n||[]},silent:!0});return DA(t,i),IA(e,i,this._defsUsePending,!1,!1),i},image:function(e,t){var n=new Qa;return DA(t,n),IA(e,n,this._defsUsePending,!1,!1),n.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),n.silent=!0,n},text:function(e,t){var n=e.getAttribute("x")||"0",r=e.getAttribute("y")||"0",i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(i),this._textY=parseFloat(r)+parseFloat(o);var a=new kr;return DA(t,a),IA(e,a,this._defsUsePending,!1,!0),a},tspan:function(e,t){var n=e.getAttribute("x"),r=e.getAttribute("y");null!=n&&(this._textX=parseFloat(n)),null!=r&&(this._textY=parseFloat(r));var i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",a=new kr;return DA(t,a),IA(e,a,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),a},path:function(e,t){var n=e.getAttribute("d")||"",r=qp(n);return DA(t,r),IA(e,r,this._defsUsePending,!1,!1),r.silent=!0,r}}}(),e}(),OA={lineargradient:function(e){var t=parseInt(e.getAttribute("x1")||"0",10),n=parseInt(e.getAttribute("y1")||"0",10),r=parseInt(e.getAttribute("x2")||"10",10),i=parseInt(e.getAttribute("y2")||"0",10),o=new Km(t,n,r,i);return LA(e,o),AA(e,o),o},radialgradient:function(e){var t=parseInt(e.getAttribute("cx")||"0",10),n=parseInt(e.getAttribute("cy")||"0",10),r=parseInt(e.getAttribute("r")||"0",10),i=new Jm(t,n,r);return LA(e,i),AA(e,i),i}};function LA(e,t){var n=e.getAttribute("gradientUnits");"userSpaceOnUse"===n&&(t.global=!0)}function AA(e,t){var n=e.firstChild;while(n){if(1===n.nodeType&&"stop"===n.nodeName.toLocaleLowerCase()){var r=n.getAttribute("offset"),i=void 0;i=r&&r.indexOf("%")>0?parseInt(r,10)/100:r?parseFloat(r):0;var o={};WA(n,o,o);var a=o.stopColor||n.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:i,color:a})}n=n.nextSibling}}function DA(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),Object(l["i"])(t.__inheritedStyle,e.__inheritedStyle))}function EA(e){for(var t=YA(e),n=[],r=0;r0;o-=2){var a=r[o],s=r[o-1],l=YA(a);switch(i=i||le(),s){case"translate":he(i,i,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":pe(i,i,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":fe(i,i,-parseFloat(l[0])*zA,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*zA);de(i,[1,0,u,1,0,0],i);break;case"skewY":var c=Math.tan(parseFloat(l[0])*zA);de(i,[1,c,0,1,0,0],i);break;case"matrix":i[0]=parseFloat(l[0]),i[1]=parseFloat(l[1]),i[2]=parseFloat(l[2]),i[3]=parseFloat(l[3]),i[4]=parseFloat(l[4]),i[5]=parseFloat(l[5]);break}}t.setLocalTransform(i)}}var VA=/([^\s:;]+)\s*:\s*([^:;]+)/g;function WA(e,t,n){var r=e.getAttribute("style");if(r){var i;VA.lastIndex=0;while(null!=(i=VA.exec(r))){var o=i[1],a=Object(l["q"])(kA,o)?kA[o]:null;a&&(t[a]=i[2]);var s=Object(l["q"])(SA,o)?SA[o]:null;s&&(n[s]=i[2])}}}function UA(e,t,n){for(var r=0;rn&&(e=i,n=a)}if(e)return eD(e.exterior);var s=this.getBoundingRect();return[s.x+s.width/2,s.y+s.height/2]},t.prototype.getBoundingRect=function(e){var t=this._rect;if(t&&!e)return t;var n=[1/0,1/0],r=[-1/0,-1/0],i=this.geometries;return Object(l["k"])(i,(function(t){"polygon"===t.type?QA(t.exterior,n,r,e):Object(l["k"])(t.points,(function(t){QA(t,n,r,e)}))})),isFinite(n[0])&&isFinite(n[1])&&isFinite(r[0])&&isFinite(r[1])||(n[0]=n[1]=r[0]=r[1]=0),t=new Oe(n[0],n[1],r[0]-n[0],r[1]-n[1]),e||(this._rect=t),t},t.prototype.contain=function(e){var t=this.getBoundingRect(),n=this.geometries;if(!t.contain(e[0],e[1]))return!1;e:for(var r=0,i=n.length;r>1^-(1&s),l=l>>1^-(1&l),s+=i,l+=o,i=s,o=l,r.push([s/n,l/n])}return r}function fD(e,t){return e=cD(e),l["H"](l["n"](e.features,(function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0})),(function(e){var n=e.properties,r=e.geometry,i=[];switch(r.type){case"Polygon":var o=r.coordinates;i.push(new nD(o[0],o.slice(1)));break;case"MultiPolygon":l["k"](r.coordinates,(function(e){e[0]&&i.push(new nD(e[0],e.slice(1)))}));break;case"LineString":i.push(new rD([r.coordinates]));break;case"MultiLineString":i.push(new rD(r.coordinates))}var a=new iD(n[t||"name"],i,n.cp);return a.properties=n,a}))}for(var pD=[126,25],mD="南海诸岛",gD=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],vD=0;vD0,m={api:n,geo:s,mapOrGeoModel:e,data:a,isVisualEncodedByVisualMap:p,isGeo:o,transformInfoRaw:d};"geoJSON"===s.resourceType?this._buildGeoJSON(m):"geoSVG"===s.resourceType&&this._buildSVG(m),this._updateController(e,t,n),this._updateMapSelectHandler(e,l,n,r)},e.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=l["f"](),n=l["f"](),r=this._regionsGroup,i=e.transformInfoRaw,o=e.mapOrGeoModel,a=e.data,s=e.geo.projection,u=s&&s.stream;function c(e,t){return t&&(e=t(e)),e&&[e[0]*i.scaleX+i.x,e[1]*i.scaleY+i.y]}function d(e){for(var t=[],n=!u&&s&&s.project,r=0;r=0)&&(h=i);var f=a?{normal:{align:"center",verticalAlign:"middle"}}:null;tu(t,nu(r),{labelFetcher:h,labelDataIndex:d,defaultText:n},f);var p=t.getTextContent();if(p&&(jD(p).ignore=p.ignore,t.textConfig&&a)){var m=t.getBoundingRect().clone();t.textConfig.layoutRect=m,t.textConfig.position=[(a[0]-m.x)/m.width*100+"%",(a[1]-m.y)/m.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function FD(e,t,n,r,i,o){e.data?e.data.setItemGraphicEl(o,t):Ts(t).eventData={componentType:"geo",componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:n,region:r&&r.option||{}}}function zD(e,t,n,r,i){e.data||Ng({el:t,componentModel:i,itemName:n,itemTooltipOption:r.get("tooltip")})}function HD(e,t,n,r,i){t.highDownSilentOnTouch=!!i.get("selectedMode");var o=r.getModel("emphasis"),a=o.get("focus");return Ll(t,a,o.get("blurScope"),o.get("disabled")),e.isGeo&&Rl(t,i,n),a}function VD(e,t,n){var r,i=[];function o(){r=[]}function a(){r.length&&(i.push(r),r=[])}var s=t({polygonStart:o,polygonEnd:a,lineStart:o,lineEnd:a,point:function(e,t){isFinite(e)&&isFinite(t)&&r.push([e,t])},sphere:function(){}});return!n&&s.polygonStart(),l["k"](e,(function(e){s.lineStart();for(var t=0;t-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n},t.type="series.map",t.dependencies=["geo"],t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},t}(Sp),qD=GD;function XD(e,t){var n={};return l["k"](e,(function(e){e.each(e.mapDimension("value"),(function(t,r){var i="ec-"+e.getName(r);n[i]=n[i]||[],isNaN(t)||n[i].push(t)}))})),e[0].map(e[0].mapDimension("value"),(function(r,i){for(var o,a="ec-"+e[0].getName(i),s=0,l=1/0,u=-1/0,c=n[a].length,d=0;d1?(f.width=h,f.height=h/b):(f.height=h,f.width=h*b),f.y=d[1]-f.height/2,f.x=d[0]-f.width/2;else{var w=e.getBoxLayoutParams();w.aspect=b,f=Fc(w,{width:v,height:y})}this.setViewRect(f.x,f.y,f.width,f.height),this.setCenter(e.get("center"),t),this.setZoom(e.get("zoom"))}function lE(e,t){l["k"](t.get("geoCoord"),(function(t,n){e.addGeoCoord(n,t)}))}var uE=function(){function e(){this.dimensions=rE}return e.prototype.create=function(e,t){var n=[];function r(e){return{nameProperty:e.get("nameProperty"),aspectScale:e.get("aspectScale"),projection:e.get("projection")}}e.eachComponent("geo",(function(e,i){var o=e.get("map"),a=new aE(o+i,o,l["m"]({nameMap:e.get("nameMap")},r(e)));a.zoomLimit=e.get("scaleLimit"),n.push(a),e.coordinateSystem=a,a.model=e,a.resize=sE,a.resize(e,t)})),e.eachSeries((function(e){var t=e.get("coordinateSystem");if("geo"===t){var r=e.get("geoIndex")||0;e.coordinateSystem=n[r]}}));var i={};return e.eachSeriesByType("map",(function(e){if(!e.getHostGeoModel()){var t=e.getMapType();i[t]=i[t]||[],i[t].push(e)}})),l["k"](i,(function(e,i){var o=l["H"](e,(function(e){return e.get("nameMap")})),a=new aE(i,i,l["m"]({nameMap:l["J"](o)},r(e[0])));a.zoomLimit=l["O"].apply(null,l["H"](e,(function(e){return e.get("scaleLimit")}))),n.push(a),a.resize=sE,a.resize(e[0],t),l["k"](e,(function(e){e.coordinateSystem=a,lE(a,e)}))})),n},e.prototype.getFilledRegions=function(e,t,n,r){for(var i=(e||[]).slice(),o=l["f"](),a=0;a=0;a--){var s=r[a];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:a,thread:null},i.push(s)}}function xE(e,t){var n=e.isExpand?e.children:[],r=e.parentNode.children,i=e.hierNode.i?r[e.hierNode.i-1]:null;if(n.length){TE(e);var o=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;i?(e.hierNode.prelim=i.hierNode.prelim+t(e,i),e.hierNode.modifier=e.hierNode.prelim-o):e.hierNode.prelim=o}else i&&(e.hierNode.prelim=i.hierNode.prelim+t(e,i));e.parentNode.hierNode.defaultAncestor=OE(e,i,e.parentNode.hierNode.defaultAncestor||r[0],t)}function kE(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function ME(e){return arguments.length?e:IE}function SE(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function CE(e,t){return Fc(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function TE(e){var t=e.children,n=t.length,r=0,i=0;while(--n>=0){var o=t[n];o.hierNode.prelim+=r,o.hierNode.modifier+=r,i+=o.hierNode.change,r+=o.hierNode.shift+i}}function OE(e,t,n,r){if(t){var i=e,o=e,a=o.parentNode.children[0],s=t,l=i.hierNode.modifier,u=o.hierNode.modifier,c=a.hierNode.modifier,d=s.hierNode.modifier;while(s=LE(s),o=AE(o),s&&o){i=LE(i),a=AE(a),i.hierNode.ancestor=e;var h=s.hierNode.prelim+d-o.hierNode.prelim-u+r(s,o);h>0&&(EE(DE(s,e,n),e,h),u+=h,l+=h),d+=s.hierNode.modifier,u+=o.hierNode.modifier,l+=i.hierNode.modifier,c+=a.hierNode.modifier}s&&!LE(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=d-l),o&&!AE(a)&&(a.hierNode.thread=o,a.hierNode.modifier+=u-c,n=e)}return n}function LE(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function AE(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function DE(e,t,n){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:n}function EE(e,t,n){var r=n/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=r,t.hierNode.shift+=n,t.hierNode.modifier+=n,t.hierNode.prelim+=n,e.hierNode.change+=r}function IE(e,t){return e.parentNode===t.parentNode?1:2}var jE=function(){function e(){this.parentPoint=[],this.childPoints=[]}return e}(),PE=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new jE},t.prototype.buildPath=function(e,t){var n=t.childPoints,r=n.length,i=t.parentPoint,o=n[0],a=n[r-1];if(1===r)return e.moveTo(i[0],i[1]),void e.lineTo(o[0],o[1]);var s=t.orient,l="TB"===s||"BT"===s?0:1,u=1-l,c=Br(t.forkPosition,1),d=[];d[l]=i[l],d[u]=i[u]+(a[u]-i[u])*c,e.moveTo(i[0],i[1]),e.lineTo(d[0],d[1]),e.moveTo(o[0],o[1]),d[l]=o[l],e.lineTo(d[0],d[1]),d[l]=a[l],e.lineTo(d[0],d[1]),e.lineTo(a[0],a[1]);for(var h=1;hb.x,x||(w-=Math.PI));var M=x?"left":"right",S=s.getModel("label"),C=S.get("rotate"),T=C*(Math.PI/180),O=v.getTextContent();O&&(v.setTextConfig({position:S.get("position")||M,rotation:null==C?-w:T,origin:"center"}),O.setStyle("verticalAlign","middle"))}var L=s.get(["emphasis","focus"]),A="relative"===L?l["e"](a.getAncestorsIndices(),a.getDescendantIndices()):"ancestor"===L?a.getAncestorsIndices():"descendant"===L?a.getDescendantIndices():null;A&&(Ts(n).focus=A),YE(i,a,d,n,m,p,g,r),n.__edge&&(n.onHoverStateChange=function(t){if("blur"!==t){var r=a.parentNode&&e.getItemGraphicEl(a.parentNode.dataIndex);r&&r.hoverState===js||tl(n.__edge,t)}})}function YE(e,t,n,r,i,o,a,s){var u=t.getModel(),c=e.get("edgeShape"),d=e.get("layout"),h=e.getOrient(),f=e.get(["lineStyle","curveness"]),p=e.get("edgeForkPosition"),m=u.getModel("lineStyle").getLineStyle(),g=r.__edge;if("curve"===c)t.parentNode&&t.parentNode!==n&&(g||(g=r.__edge=new zm({shape:VE(d,h,f,i,i)})),Wl(g,{shape:VE(d,h,f,o,a)},e));else if("polyline"===c)if("orthogonal"===d){if(t!==n&&t.children&&0!==t.children.length&&!0===t.isExpand){for(var v=t.children,y=[],b=0;bt&&(t=r.height)}this.height=t+1},e.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,n=this.children,r=n.length;t=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},e.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},e.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostTree,n=t.data.getItemModel(this.dataIndex);return n.getModel(e)}},e.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},e.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},e.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},e.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},e.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},e.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t=0){var r=n.getData().tree.root,i=e.targetNode;if(l["C"](i)&&(i=r.getNodeById(i)),i&&r.contains(i))return{node:i};var o=e.targetNodeId;if(null!=o&&(i=r.getNodeById(o)))return{node:i}}}function sI(e){var t=[];while(e)e=e.parentNode,e&&t.push(e);return t.reverse()}function lI(e,t){var n=sI(e);return l["r"](n,t)>=0}function uI(e,t){var n=[];while(e){var r=e.dataIndex;n.push({name:e.name,dataIndex:r,value:t.getRawValue(r)}),e=e.parentNode}return n.reverse(),n}var cI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return a(t,e),t.prototype.getInitialData=function(e){var t={name:e.name,children:e.data},n=e.leaves||{},r=new Tu(n,this,this.ecModel),i=oI.createTree(t,this,o);function o(e){e.wrapMethod("getItemModel",(function(e,t){var n=i.getNodeByDataIndex(t);return n&&n.children.length&&n.isExpand||(e.parentModel=r),e}))}var a=0;i.eachNode("preorder",(function(e){e.depth>a&&(a=e.depth)}));var s=e.expandAndCollapse,l=s&&e.initialTreeDepth>=0?e.initialTreeDepth:a;return i.root.eachNode("preorder",(function(e){var t=e.hostTree.data.getRawDataItem(e.dataIndex);e.isExpand=t&&null!=t.collapsed?!t.collapsed:e.depth<=l})),i.data},t.prototype.getOrient=function(){var e=this.get("orient");return"horizontal"===e?e="LR":"vertical"===e&&(e="TB"),e},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.formatTooltip=function(e,t,n){var r=this.getData().tree,i=r.root.children[0],o=r.getNodeByDataIndex(e),a=o.getValue(),s=o.name;while(o&&o!==i)s=o.parentNode.name+"."+s,o=o.parentNode;return Xf("nameValue",{name:s,value:a,noValue:isNaN(a)||null==a})},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=uI(r,this),n.collapsed=!r.isExpand,n},t.type="series.tree",t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},t}(Sp),dI=cI;function hI(e,t,n){var r,i=[e],o=[];while(r=i.pop())if(o.push(r),r.isExpand){var a=r.children;if(a.length)for(var s=0;s=0;o--)r.push(i[o])}}function pI(e,t){e.eachSeriesByType("tree",(function(e){mI(e,t)}))}function mI(e,t){var n=CE(e,t);e.layoutInfo=n;var r=e.get("layout"),i=0,o=0,a=null;"radial"===r?(i=2*Math.PI,o=Math.min(n.height,n.width)/2,a=ME((function(e,t){return(e.parentNode===t.parentNode?1:2)/e.depth}))):(i=n.width,o=n.height,a=ME());var s=e.getData().tree.root,l=s.children[0];if(l){wE(s),hI(l,xE,a),s.hierNode.modifier=-l.hierNode.prelim,fI(l,kE);var u=l,c=l,d=l;fI(l,(function(e){var t=e.getLayout().x;tc.getLayout().x&&(c=e),e.depth>d.depth&&(d=e)}));var h=u===c?1:a(u,c)/2,f=h-u.getLayout().x,p=0,m=0,g=0,v=0;if("radial"===r)p=i/(c.getLayout().x+h+f),m=o/(d.depth-1||1),fI(l,(function(e){g=(e.getLayout().x+f)*p,v=(e.depth-1)*m;var t=SE(g,v);e.setLayout({x:t.x,y:t.y,rawX:g,rawY:v},!0)}));else{var y=e.getOrient();"RL"===y||"LR"===y?(m=o/(c.getLayout().x+h+f),p=i/(d.depth-1||1),fI(l,(function(e){v=(e.getLayout().x+f)*m,g="LR"===y?(e.depth-1)*p:i-(e.depth-1)*p,e.setLayout({x:g,y:v},!0)}))):"TB"!==y&&"BT"!==y||(p=i/(c.getLayout().x+h+f),m=o/(d.depth-1||1),fI(l,(function(e){g=(e.getLayout().x+f)*p,v="TB"===y?(e.depth-1)*m:o-(e.depth-1)*m,e.setLayout({x:g,y:v},!0)})))}}}function gI(e){e.eachSeriesByType("tree",(function(e){var t=e.getData(),n=t.tree;n.eachNode((function(e){var n=e.getModel(),r=n.getModel("itemStyle").getItemStyle(),i=t.ensureUniqueItemVisual(e.dataIndex,"style");Object(l["m"])(i,r)}))}))}function vI(e){e.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},(function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},(function(t){var n=e.dataIndex,r=t.getData().tree,i=r.getNodeByDataIndex(n);i.isExpand=!i.isExpand}))})),e.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},(function(e,t,n){t.eachComponent({mainType:"series",subType:"tree",query:e},(function(t){var r=t.coordinateSystem,i=mE(r,e,void 0,n);t.setCenter&&t.setCenter(i.center),t.setZoom&&t.setZoom(i.zoom)}))}))}function yI(e){e.registerChartView(WE),e.registerSeriesModel(dI),e.registerLayout(pI),e.registerVisual(gI),vI(e)}var bI=["treemapZoomToNode","treemapRender","treemapMove"];function _I(e){for(var t=0;t1)n=n.parentNode;var i=Md(e.ecModel,n.name||n.dataIndex+"",r);t.setVisual("decal",i)}))}var xI=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.preventUsingHoverLayer=!0,n}return a(t,e),t.prototype.getInitialData=function(e,t){var n={name:e.name,children:e.data};kI(n);var r=e.levels||[],i=this.designatedVisualItemStyle={},o=new Tu({itemStyle:i},this,t);r=e.levels=MI(r,t);var a=l["H"](r||[],(function(e){return new Tu(e,o,t)}),this),s=oI.createTree(n,this,u);function u(e){e.wrapMethod("getItemModel",(function(e,t){var n=s.getNodeByDataIndex(t),r=n?a[n.depth]:null;return e.parentModel=r||o,e}))}return s.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(e,t,n){var r=this.getData(),i=this.getRawValue(e),o=r.getName(e);return Xf("nameValue",{name:o,value:i})},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=uI(r,this),n.treePathInfo=n.treeAncestors,n},t.prototype.setLayoutInfo=function(e){this.layoutInfo=this.layoutInfo||{},l["m"](this.layoutInfo,e)},t.prototype.mapIdToIndex=function(e){var t=this._idIndexMap;t||(t=this._idIndexMap=l["f"](),this._idIndexMapCount=0);var n=t.get(e);return null==n&&t.set(e,n=this._idIndexMapCount++),n},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;e&&(e===t||t.contains(e))||(this._viewRoot=t)},t.prototype.enableAriaDecal=function(){wI(this)},t.type="series.treemap",t.layoutMode="box",t.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.1024,scaleLimit:null,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},t}(Sp);function kI(e){var t=0;l["k"](e.children,(function(e){kI(e);var n=e.value;l["t"](n)&&(n=n[0]),t+=n}));var n=e.value;l["t"](n)&&(n=n[0]),(null==n||isNaN(n))&&(n=t),n<0&&(n=0),l["t"](e.value)?e.value[0]=n:e.value=n}function MI(e,t){var n=ci(t.get("color")),r=ci(t.get(["aria","decal","decals"]));if(n){var i,o;e=e||[],l["k"](e,(function(e){var t=new Tu(e),n=t.get("color"),r=t.get("decal");(t.get(["itemStyle","color"])||n&&"none"!==n)&&(i=!0),(t.get(["itemStyle","decal"])||r&&"none"!==r)&&(o=!0)}));var a=e[0]||(e[0]={});return i||(a.color=n.slice()),!o&&r&&(a.decal=r.slice()),e}}var SI=xI,CI=8,TI=8,OI=5,LI=function(){function e(e){this.group=new kr,e.add(this.group)}return e.prototype.render=function(e,t,n,r){var i=e.getModel("breadcrumb"),o=this.group;if(o.removeAll(),i.get("show")&&n){var a=i.getModel("itemStyle"),s=i.getModel("emphasis"),l=a.getModel("textStyle"),u=s.getModel(["itemStyle","textStyle"]),c={pos:{left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,c,l),this._renderContent(e,c,a,s,l,u,r),zc(o,c.pos,c.box)}},e.prototype._prepare=function(e,t,n){for(var r=e;r;r=r.parentNode){var i=Mi(r.getModel().get("name"),""),o=n.getTextRect(i),a=Math.max(o.width+2*CI,t.emptyItemWidth);t.totalWidth+=a+TI,t.renderList.push({node:r,text:i,width:a})}},e.prototype._renderContent=function(e,t,n,r,i,o,a){for(var s=0,u=t.emptyItemWidth,c=e.get(["breadcrumb","height"]),d=Yc(t.pos,t.box),h=t.totalWidth,f=t.renderList,p=r.getModel("itemStyle").getItemStyle(),m=f.length-1;m>=0;m--){var g=f[m],v=g.node,y=g.width,b=g.text;h>d.width&&(h-=y-u,y=u,b=null);var _=new Lm({shape:{points:AI(s,0,y,c,m===f.length-1,0===m)},style:Object(l["i"])(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new Cs({style:ru(i,{text:b})}),textConfig:{position:"inside"},z2:1e4*Bs,onclick:Object(l["h"])(a,v)});_.disableLabelAnimation=!0,_.getTextContent().ensureState("emphasis").style=ru(o,{text:b}),_.ensureState("emphasis").style=p,Ll(_,r.get("focus"),r.get("blurScope"),r.get("disabled")),this.group.add(_),DI(_,e,v),s+=y+TI}},e.prototype.remove=function(){this.group.removeAll()},e}();function AI(e,t,n,r,i,o){var a=[[i?e:e-OI,t],[e+n,t],[e+n,t+r],[i?e:e-OI,t+r]];return!o&&a.splice(2,0,[e+n+OI,t+r/2]),!i&&a.push([e,t+r/2]),a}function DI(e,t,n){Ts(e).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&uI(n,t)}}var EI=LI,II=function(){function e(){this._storage=[],this._elExistsMap={}}return e.prototype.add=function(e,t,n,r,i){return!this._elExistsMap[e.id]&&(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:n,delay:r,easing:i}),!0)},e.prototype.finished=function(e){return this._finishedCallback=e,this},e.prototype.start=function(){for(var e=this,t=this._storage.length,n=function(){t--,t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},r=0,i=this._storage.length;rNI||Math.abs(e.dy)>NI)){var t=this.seriesModel.getData().tree.root;if(!t)return;var n=t.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+e.dx,y:n.y+e.dy,width:n.width,height:n.height}})}},t.prototype._onZoom=function(e){var t=e.originX,n=e.originY,r=e.scale;if("animating"!==this._state){var i=this.seriesModel.getData().tree.root;if(!i)return;var o=i.getLayout();if(!o)return;var a=new Oe(o.x,o.y,o.width,o.height),s=null,l=this._controllerHost;s=l.zoomLimit;var u=l.zoom=l.zoom||1;if(u*=r,s){var c=s.min||0,d=s.max||1/0;u=Math.max(Math.min(d,u),c)}var h=u/l.zoom;l.zoom=u;var f=this.seriesModel.layoutInfo;t-=f.x,n-=f.y;var p=le();he(p,p,[-t,-n]),pe(p,p,[h,h]),he(p,p,[t,n]),a.applyTransform(p),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:a.x,y:a.y,width:a.width,height:a.height}})}},t.prototype._initEvents=function(e){var t=this;e.on("click",(function(e){if("ready"===t._state){var n=t.seriesModel.get("nodeClick",!0);if(n){var r=t.findTarget(e.offsetX,e.offsetY);if(r){var i=r.node;if(i.getLayout().isLeafRoot)t._rootToNode(r);else if("zoomToNode"===n)t._zoomToNode(r);else if("link"===n){var o=i.hostTree.data.getItemModel(i.dataIndex),a=o.get("link",!0),s=o.get("target",!0)||"blank";a&&Ic(a,s)}}}}}),this)},t.prototype._renderBreadcrumb=function(e,t,n){var r=this;n||(n=null!=e.get("leafDepth",!0)?{node:e.getViewRoot()}:this.findTarget(t.getWidth()/2,t.getHeight()/2),n||(n={node:e.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new EI(this.group))).render(e,t,n.node,(function(t){"animating"!==r._state&&(lI(e.getViewRoot(),t)?r._rootToNode({node:t}):r._zoomToNode({node:t}))}))},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=GI(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(e){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype._rootToNode=function(e){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype.findTarget=function(e,t){var n,r=this.seriesModel.getViewRoot();return r.eachNode({attr:"viewChildren",order:"preorder"},(function(r){var i=this._storage.background[r.getRawIndex()];if(i){var o=i.transformCoordToLocal(e,t),a=i.shape;if(!(a.x<=o[0]&&o[0]<=a.x+a.width&&a.y<=o[1]&&o[1]<=a.y+a.height))return!1;n={node:r,offsetX:o[0],offsetY:o[1]}}}),this),n},t.type="treemap",t}(qg);function GI(){return{nodeGroup:[],background:[],content:[]}}function qI(e,t,n,r,i,o,a,s,u,c){if(a){var d=a.getLayout(),h=e.getData(),f=a.getModel();if(h.setItemGraphicEl(a.dataIndex,null),d&&d.isInView){var p=d.width,m=d.height,g=d.borderWidth,v=d.invisible,y=a.getRawIndex(),b=s&&s.getRawIndex(),_=a.viewChildren,w=d.upperHeight,x=_&&_.length,k=f.getModel("itemStyle"),M=f.getModel(["emphasis","itemStyle"]),S=f.getModel(["blur","itemStyle"]),C=f.getModel(["select","itemStyle"]),T=k.get("borderRadius")||0,O=H("nodeGroup",PI);if(O){if(u.add(O),O.x=d.x||0,O.y=d.y||0,O.markRedraw(),UI(O).nodeWidth=p,UI(O).nodeHeight=m,d.isAboveViewRoot)return O;var L=H("background",RI,c,zI);L&&N(O,L,x&&d.upperLabelHeight);var A=f.getModel("emphasis"),D=A.get("focus"),E=A.get("blurScope"),I=A.get("disabled"),j="ancestor"===D?a.getAncestorsIndices():"descendant"===D?a.getDescendantIndices():D;if(x)Pl(O)&&jl(O,!1),L&&(jl(L,!I),h.setItemGraphicEl(a.dataIndex,L),Al(L,j,E));else{var P=H("content",RI,c,HI);P&&B(O,P),L.disableMorphing=!0,L&&Pl(L)&&jl(L,!1),jl(O,!I),h.setItemGraphicEl(a.dataIndex,O);var R=f.getShallow("cursor");R&&P.attr("cursor",R),Al(O,j,E)}return O}}}function N(t,n,r){var i=Ts(n);if(i.dataIndex=a.dataIndex,i.seriesIndex=e.seriesIndex,n.setShape({x:0,y:0,width:p,height:m,r:T}),v)Y(n);else{n.invisible=!1;var o=a.getVisual("style"),s=o.stroke,l=WI(k);l.fill=s;var u=VI(M);u.fill=M.get("borderColor");var c=VI(S);c.fill=S.get("borderColor");var d=VI(C);if(d.fill=C.get("borderColor"),r){var h=p-2*g;F(n,s,o.opacity,{x:g,y:0,width:h,height:w})}else n.removeTextContent();n.setStyle(l),n.ensureState("emphasis").style=u,n.ensureState("blur").style=c,n.ensureState("select").style=d,sl(n)}t.add(n)}function B(t,n){var r=Ts(n);r.dataIndex=a.dataIndex,r.seriesIndex=e.seriesIndex;var i=Math.max(p-2*g,0),o=Math.max(m-2*g,0);if(n.culling=!0,n.setShape({x:g,y:g,width:i,height:o,r:T}),v)Y(n);else{n.invisible=!1;var s=a.getVisual("style"),l=s.fill,u=WI(k);u.fill=l,u.decal=s.decal;var c=VI(M),d=VI(S),h=VI(C);F(n,l,s.opacity,null),n.setStyle(u),n.ensureState("emphasis").style=c,n.ensureState("blur").style=d,n.ensureState("select").style=h,sl(n)}t.add(n)}function Y(e){!e.invisible&&o.push(e)}function F(t,n,r,i){var o=f.getModel(i?YI:BI),s=Mi(f.get("name"),null),u=o.getShallow("show");tu(t,nu(f,i?YI:BI),{defaultText:u?s:null,inheritColor:n,defaultOpacity:r,labelFetcher:e,labelDataIndex:a.dataIndex});var c=t.getTextContent();if(c){var h=c.style,p=Object(l["M"])(h.padding||0);i&&(t.setTextConfig({layoutRect:i}),c.disableLabelLayout=!0),c.beforeUpdate=function(){var e=Math.max((i?i.width:t.shape.width)-p[1]-p[3],0),n=Math.max((i?i.height:t.shape.height)-p[0]-p[2],0);h.width===e&&h.height===n||c.setStyle({width:e,height:n})},h.truncateMinChar=2,h.lineOverflow="truncate",z(h,i,d);var m=c.getState("emphasis");z(m?m.style:null,i,d)}}function z(t,n,r){var i=t?t.text:null;if(!n&&r.isLeafRoot&&null!=i){var o=e.get("drillDownIcon",!0);t.text=o?o+" "+i:i}}function H(e,r,o,a){var s=null!=b&&n[e][b],l=i[e];return s?(n[e][b]=null,V(l,s)):v||(s=new r,s instanceof Bo&&(s.z2=XI(o,a)),W(l,s)),t[e][y]=s}function V(e,t){var n=e[y]={};t instanceof PI?(n.oldX=t.x,n.oldY=t.y):n.oldShape=Object(l["m"])({},t.shape)}function W(e,t){var n=e[y]={},o=a.parentNode,s=t instanceof kr;if(o&&(!r||"drillDown"===r.direction)){var l=0,u=0,c=i.background[o.getRawIndex()];!r&&c&&c.oldShape&&(l=c.oldShape.width,u=c.oldShape.height),s?(n.oldX=0,n.oldY=u):n.oldShape={x:l,y:u,width:0,height:0}}n.fadein=!s}}function XI(e,t){return e*FI+t}var KI=$I,ZI=l["k"],JI=l["A"],QI=-1,ej=function(){function e(t){var n=t.mappingMethod,r=t.type,i=this.option=l["d"](t);this.type=r,this.mappingMethod=n,this._normalizeData=hj[n];var o=e.visualHandlers[r];this.applyVisual=o.applyVisual,this.getColorMapper=o.getColorMapper,this._normalizedToVisual=o._normalizedToVisual[n],"piecewise"===n?(rj(i),tj(i)):"category"===n?i.categories?nj(i):rj(i,!0):(l["b"]("linear"!==n||i.dataExtent),rj(i))}return e.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},e.prototype.getNormalizer=function(){return l["c"](this._normalizeData,this)},e.listVisualTypes=function(){return l["F"](e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(e,t,n){l["A"](e)?l["k"](e,t,n):t.call(n,e)},e.mapVisual=function(t,n,r){var i,o=l["t"](t)?[]:l["A"](t)?{}:(i=!0,null);return e.eachVisual(t,(function(e,t){var a=n.call(r,e,t);i?o=a:o[t]=a})),o},e.retrieveVisuals=function(t){var n,r={};return t&&ZI(e.visualHandlers,(function(e,i){t.hasOwnProperty(i)&&(r[i]=t[i],n=!0)})),n?r:null},e.prepareVisualTypes=function(e){if(l["t"](e))e=e.slice();else{if(!JI(e))return[];var t=[];ZI(e,(function(e,n){t.push(n)})),e=t}return e.sort((function(e,t){return"color"===t&&"color"!==e&&0===e.indexOf("color")?1:-1})),e},e.dependsOn=function(e,t){return"color"===t?!(!e||0!==e.indexOf(t)):e===t},e.findPieceIndex=function(e,t,n){for(var r,i=1/0,o=0,a=t.length;o=0;o--)null==r[o]&&(delete n[t[o]],t.pop())}function rj(e,t){var n=e.visual,r=[];l["A"](n)?ZI(n,(function(e){r.push(e)})):null!=n&&r.push(n);var i={color:1,symbol:1};t||1!==r.length||i.hasOwnProperty(e.type)||(r[1]=r[0]),dj(e,r)}function ij(e){return{applyVisual:function(t,n,r){var i=this.mapValueToVisual(t);r("color",e(n("color"),i))},_normalizedToVisual:uj([0,1])}}function oj(e){var t=this.option.visual;return t[Math.round(Nr(e,[0,1],[0,t.length-1],!0))]||{}}function aj(e){return function(t,n,r){r(e,this.mapValueToVisual(t))}}function sj(e){var t=this.option.visual;return t[this.option.loop&&e!==QI?e%t.length:e]}function lj(){return this.option.visual[0]}function uj(e){return{linear:function(t){return Nr(t,e,this.option.visual,!0)},category:sj,piecewise:function(t,n){var r=cj.call(this,n);return null==r&&(r=Nr(t,e,this.option.visual,!0)),r},fixed:lj}}function cj(e){var t=this.option,n=t.pieceList;if(t.hasSpecialVisual){var r=ej.findPieceIndex(e,n),i=n[r];if(i&&i.visual)return i.visual[this.type]}}function dj(e,t){return e.visual=t,"color"===e.type&&(e.parsedVisual=l["H"](t,(function(e){var t=Bt["h"](e);return t||[0,0,0,1]}))),t}var hj={linear:function(e){return Nr(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,n=ej.findPieceIndex(e,t,!0);if(null!=n)return Nr(n,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return null==t?QI:t},fixed:l["L"]};function fj(e,t,n){return e?t<=n:t=n.length||e===n[e.depth]){var o=Sj(i,c,e,t,m,r);yj(e,o,n,r)}}))}else s=_j(c),d.fill=s}}function bj(e,t,n){var r=Object(l["m"])({},t),i=n.designatedVisualItemStyle;return Object(l["k"])(["color","colorAlpha","colorSaturation"],(function(n){i[n]=t[n];var o=e.get(n);i[n]=null,null!=o&&(r[n]=o)})),r}function _j(e){var t=xj(e,"color");if(t){var n=xj(e,"colorAlpha"),r=xj(e,"colorSaturation");return r&&(t=Object(Bt["g"])(t,null,null,r)),n&&(t=Object(Bt["f"])(t,n)),t}}function wj(e,t){return null!=t?Object(Bt["g"])(t,null,null,e):null}function xj(e,t){var n=e[t];if(null!=n&&"none"!==n)return n}function kj(e,t,n,r,i,o){if(o&&o.length){var a=Mj(t,"color")||null!=i.color&&"none"!==i.color&&(Mj(t,"colorAlpha")||Mj(t,"colorSaturation"));if(a){var s=t.get("visualMin"),l=t.get("visualMax"),u=n.dataExtent.slice();null!=s&&su[1]&&(u[1]=l);var c=t.get("colorMappingBy"),d={type:a.name,dataExtent:u,visual:a.range};"color"!==d.type||"index"!==c&&"id"!==c?d.mappingMethod="linear":(d.mappingMethod="category",d.loop=!0);var h=new pj(d);return gj(h).drColorMappingBy=c,h}}}function Mj(e,t){var n=e.get(t);return Object(l["t"])(n)&&n.length?{name:t,range:n}:null}function Sj(e,t,n,r,i,o){var a=Object(l["m"])({},t);if(i){var s=i.type,u="color"===s&&gj(i).drColorMappingBy,c="index"===u?r:"id"===u?o.mapIdToIndex(n.getId()):n.getValue(e.get("visualDimension"));a[s]=i.mapValueToVisual(c)}return a}var Cj=Math.max,Tj=Math.min,Oj=l["O"],Lj=l["k"],Aj=["itemStyle","borderWidth"],Dj=["itemStyle","gapWidth"],Ej=["upperLabel","show"],Ij=["upperLabel","height"],jj={seriesType:"treemap",reset:function(e,t,n,r){var i=n.getWidth(),o=n.getHeight(),a=e.option,s=Fc(e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),u=a.size||[],c=Br(Oj(s.width,u[0]),i),d=Br(Oj(s.height,u[1]),o),h=r&&r.type,f=["treemapZoomToNode","treemapRootToNode"],p=aI(r,f,e),m="treemapRender"===h||"treemapMove"===h?r.rootRect:null,g=e.getViewRoot(),v=sI(g);if("treemapMove"!==h){var y="treemapZoomToNode"===h?Hj(e,p,g,c,d):m?[m.width,m.height]:[c,d],b=a.sort;b&&"asc"!==b&&"desc"!==b&&(b="desc");var _={squareRatio:a.squareRatio,sort:b,leafDepth:a.leafDepth};g.hostTree.clearLayouts();var w={x:0,y:0,width:y[0],height:y[1],area:y[0]*y[1]};g.setLayout(w),Pj(g,_,!1,0),w=g.getLayout(),Lj(v,(function(e,t){var n=(v[t+1]||g).getValue();e.setLayout(l["m"]({dataExtent:[n,n],borderWidth:0,upperHeight:0},w))}))}var x=e.getData().tree.root;x.setLayout(Vj(s,m,p),!0),e.setLayoutInfo(s),Wj(x,new Oe(-s.x,-s.y,i,o),v,g,0)}};function Pj(e,t,n,r){var i,o;if(!e.isRemoved()){var a=e.getLayout();i=a.width,o=a.height;var s=e.getModel(),l=s.get(Aj),u=s.get(Dj)/2,c=Uj(s),d=Math.max(l,c),h=l-u,f=d-u;e.setLayout({borderWidth:l,upperHeight:d,upperLabelHeight:c},!0),i=Cj(i-2*h,0),o=Cj(o-h-f,0);var p=i*o,m=Rj(e,s,p,t,n,r);if(m.length){var g={x:h,y:f,width:i,height:o},v=Tj(i,o),y=1/0,b=[];b.area=0;for(var _=0,w=m.length;_=0;l--){var u=i["asc"===r?a-l-1:l].getValue();u/n*ta[1]&&(a[1]=t)}))):a=[NaN,NaN],{sum:r,dataExtent:a}}function Fj(e,t,n){for(var r=0,i=1/0,o=0,a=void 0,s=e.length;or&&(r=a));var l=e.area*e.area,u=t*t*n;return l?Cj(u*r/l,l/(u*i)):1/0}function zj(e,t,n,r,i){var o=t===n.width?0:1,a=1-o,s=["x","y"],l=["width","height"],u=n[s[o]],c=t?e.area/t:0;(i||c>n[l[a]])&&(c=n[l[a]]);for(var d=0,h=e.length;d$r&&(u=$r),a=o}ur&&(r=t);var o=r%2?r+2:r+3;i=[];for(var a=0;a0&&(_[0]=-_[0],_[1]=-_[1]);var x=y[0]<0?-1:1;if("start"!==r.__position&&"end"!==r.__position){var k=-Math.atan2(y[1],y[0]);u[0].8?"left":c[0]<-.8?"right":"center",h=c[1]>.8?"top":c[1]<-.8?"bottom":"middle";break;case"start":r.x=-c[0]*p+l[0],r.y=-c[1]*g+l[1],d=c[0]>.8?"right":c[0]<-.8?"left":"center",h=c[1]>.8?"bottom":c[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":r.x=p*x+l[0],r.y=l[1]+M,d=y[0]<0?"right":"left",r.originX=-p*x,r.originY=-M;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":r.x=w[0],r.y=w[1]+M,d="center",r.originY=-M;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":r.x=-p*x+u[0],r.y=u[1]+M,d=y[0]>=0?"right":"left",r.originX=p*x,r.originY=-M;break}r.scaleX=r.scaleY=i,r.setStyle({verticalAlign:r.__verticalAlign||h,align:r.__align||d})}}}function S(e,t){var n=e.__specifiedRotation;if(null==n){var r=a.tangentAt(t);e.attr("rotation",(1===t?-1:1)*Math.PI/2-Math.atan2(r[1],r[0]))}else e.attr("rotation",n)}},t}(kr),NP=RP,BP=function(){function e(e){this.group=new kr,this._LineCtor=e||NP}return e.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var n=this,r=n.group,i=n._lineData;n._lineData=e,i||r.removeAll();var o=FP(e);e.diff(i).add((function(n){t._doAdd(e,n,o)})).update((function(n,r){t._doUpdate(i,e,r,n,o)})).remove((function(e){r.remove(i.getItemGraphicEl(e))})).execute()},e.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl((function(t,n){t.updateLayout(e,n)}),this)},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=FP(e),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t){function n(e){e.isGroup||YP(e)||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[];for(var r=e.start;r0}function FP(e){var t=e.hostModel,n=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:n.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:n.get("disabled"),blurScope:n.get("blurScope"),focus:n.get("focus"),labelStatesModels:nu(t)}}function zP(e){return isNaN(e[0])||isNaN(e[1])}function HP(e){return e&&!zP(e[0])&&!zP(e[1])}var VP=BP,WP=[],UP=[],$P=[],GP=Tt,qP=k,XP=Math.abs;function KP(e,t,n){for(var r,i=e[0],o=e[1],a=e[2],s=1/0,l=n*n,u=.1,c=.1;c<=.9;c+=.1){WP[0]=GP(i[0],o[0],a[0],c),WP[1]=GP(i[1],o[1],a[1],c);var d=XP(qP(WP,t)-l);d=0?r+=u:r-=u:p>=0?r-=u:r+=u}return r}function ZP(e,t){var n=[],r=Dt,i=[[],[],[]],o=[[],[]],a=[];t/=2,e.eachEdge((function(e,s){var l=e.getLayout(),u=e.getVisual("fromSymbol"),h=e.getVisual("toSymbol");l.__original||(l.__original=[d(l[0]),d(l[1])],l[2]&&l.__original.push(d(l[2])));var f=l.__original;if(null!=l[2]){if(c(i[0],f[0]),c(i[1],f[2]),c(i[2],f[1]),u&&"none"!==u){var g=hP(e.node1),v=KP(i,f[0],g*t);r(i[0][0],i[1][0],i[2][0],v,n),i[0][0]=n[3],i[1][0]=n[4],r(i[0][1],i[1][1],i[2][1],v,n),i[0][1]=n[3],i[1][1]=n[4]}if(h&&"none"!==h){g=hP(e.node2),v=KP(i,f[1],g*t);r(i[0][0],i[1][0],i[2][0],v,n),i[1][0]=n[1],i[2][0]=n[2],r(i[0][1],i[1][1],i[2][1],v,n),i[1][1]=n[1],i[2][1]=n[2]}c(l[0],i[0]),c(l[1],i[2]),c(l[2],i[1])}else{if(c(o[0],f[0]),c(o[1],f[1]),m(a,o[1],o[0]),b(a,a),u&&"none"!==u){g=hP(e.node1);p(o[0],o[0],a,g*t)}if(h&&"none"!==h){g=hP(e.node2);p(o[1],o[1],a,-g*t)}c(l[0],o[0]),c(l[1],o[1])}}))}function JP(e){return"view"===e.type}var QP=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.init=function(e,t){var n=new CM,r=new VP,i=this.group;this._controller=new gA(t.getZr()),this._controllerHost={target:i},i.add(n.group),i.add(r.group),this._symbolDraw=n,this._lineDraw=r,this._firstRender=!0},t.prototype.render=function(e,t,n){var r=this,i=e.coordinateSystem;this._model=e;var o=this._symbolDraw,a=this._lineDraw,s=this.group;if(JP(i)){var l={x:i.x,y:i.y,scaleX:i.scaleX,scaleY:i.scaleY};this._firstRender?s.attr(l):Wl(s,l,e)}ZP(e.getGraph(),dP(e));var u=e.getData();o.updateData(u);var c=e.getEdgeData();a.updateData(c),this._updateNodeAndLinkScale(),this._updateController(e,t,n),clearTimeout(this._layoutTimeout);var d=e.forceLayout,h=e.get(["force","layoutAnimation"]);d&&this._startForceLayoutIteration(d,h);var f=e.get("layout");u.graph.eachNode((function(t){var n=t.dataIndex,i=t.getGraphicEl(),o=t.getModel();if(i){i.off("drag").off("dragend");var a=o.get("draggable");a&&i.on("drag",(function(o){switch(f){case"force":d.warmUp(),!r._layouting&&r._startForceLayoutIteration(d,h),d.setFixed(n),u.setItemLayout(n,[i.x,i.y]);break;case"circular":u.setItemLayout(n,[i.x,i.y]),t.setLayout({fixed:!0},!0),mP(e,"symbolSize",t,[o.offsetX,o.offsetY]),r.updateLayout(e);break;case"none":default:u.setItemLayout(n,[i.x,i.y]),uP(e.getGraph(),e),r.updateLayout(e);break}})).on("dragend",(function(){d&&d.setUnfixed(n)})),i.setDraggable(a,!!o.get("cursor"));var s=o.get(["emphasis","focus"]);"adjacency"===s&&(Ts(i).focus=t.getAdjacentDataIndices())}})),u.graph.eachEdge((function(e){var t=e.getGraphicEl(),n=e.getModel().get(["emphasis","focus"]);t&&"adjacency"===n&&(Ts(t).focus={edge:[e.dataIndex],node:[e.node1.dataIndex,e.node2.dataIndex]})}));var p="circular"===e.get("layout")&&e.get(["circular","rotateLabel"]),m=u.getLayout("cx"),g=u.getLayout("cy");u.graph.eachNode((function(e){vP(e,p,m,g)})),this._firstRender=!1},t.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(e,t){var n=this;(function r(){e.step((function(e){n.updateLayout(n._model),(n._layouting=!e)&&(t?n._layoutTimeout=setTimeout(r,16):r())}))})()},t.prototype._updateController=function(e,t,n){var r=this,i=this._controller,o=this._controllerHost,a=this.group;i.setPointerChecker((function(t,r,i){var o=a.getBoundingRect();return o.applyTransform(a.transform),o.contain(r,i)&&!wA(t,n,e)})),JP(e.coordinateSystem)?(i.enable(e.get("roam")),o.zoomLimit=e.get("scaleLimit"),o.zoom=e.coordinateSystem.getZoom(),i.off("pan").off("zoom").on("pan",(function(t){vA(o,t.dx,t.dy),n.dispatchAction({seriesId:e.id,type:"graphRoam",dx:t.dx,dy:t.dy})})).on("zoom",(function(t){yA(o,t.scale,t.originX,t.originY),n.dispatchAction({seriesId:e.id,type:"graphRoam",zoom:t.scale,originX:t.originX,originY:t.originY}),r._updateNodeAndLinkScale(),ZP(e.getGraph(),dP(e)),r._lineDraw.updateLayout(),n.updateLabelLayout()}))):i.disable()},t.prototype._updateNodeAndLinkScale=function(){var e=this._model,t=e.getData(),n=dP(e);t.eachItemGraphicEl((function(e,t){e&&e.setSymbolScale(n)}))},t.prototype.updateLayout=function(e){ZP(e.getGraph(),dP(e)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},t.prototype.remove=function(){clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},t.type="graph",t}(qg),eR=QP;function tR(e){return"_EC_"+e}var nR=function(){function e(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return e.prototype.isDirected=function(){return this._directed},e.prototype.addNode=function(e,t){e=null==e?""+t:""+e;var n=this._nodesMap;if(!n[tR(e)]){var r=new rR(e,t);return r.hostGraph=this,this.nodes.push(r),n[tR(e)]=r,r}},e.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},e.prototype.getNodeById=function(e){return this._nodesMap[tR(e)]},e.prototype.addEdge=function(e,t,n){var r=this._nodesMap,i=this._edgesMap;if(l["z"](e)&&(e=this.nodes[e]),l["z"](t)&&(t=this.nodes[t]),e instanceof rR||(e=r[tR(e)]),t instanceof rR||(t=r[tR(t)]),e&&t){var o=e.id+"-"+t.id,a=new iR(e,t,n);return a.hostGraph=this,this._directed&&(e.outEdges.push(a),t.inEdges.push(a)),e.edges.push(a),e!==t&&t.edges.push(a),this.edges.push(a),i[o]=a,a}},e.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},e.prototype.getEdge=function(e,t){e instanceof rR&&(e=e.id),t instanceof rR&&(t=t.id);var n=this._edgesMap;return this._directed?n[e+"-"+t]:n[e+"-"+t]||n[t+"-"+e]},e.prototype.eachNode=function(e,t){for(var n=this.nodes,r=n.length,i=0;i=0&&e.call(t,n[i],i)},e.prototype.eachEdge=function(e,t){for(var n=this.edges,r=n.length,i=0;i=0&&n[i].node1.dataIndex>=0&&n[i].node2.dataIndex>=0&&e.call(t,n[i],i)},e.prototype.breadthFirstTraverse=function(e,t,n,r){if(t instanceof rR||(t=this._nodesMap[tR(t)]),t){for(var i="out"===n?"outEdges":"in"===n?"inEdges":"edges",o=0;o=0&&n.node2.dataIndex>=0}));for(i=0,o=r.length;i=0&&this[e][t].setItemVisual(this.dataIndex,n,r)},getVisual:function(n){return this[e][t].getItemVisual(this.dataIndex,n)},setLayout:function(n,r){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,n,r)},getLayout:function(){return this[e][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[e][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[e][t].getRawIndex(this.dataIndex)}}}l["K"](rR,oR("hostGraph","data")),l["K"](iR,oR("hostGraph","edgeData"));var aR=nR;function sR(e,t,n,r,i){for(var o=new aR(r),a=0;a "+f)),c++)}var p,m=n.get("coordinateSystem");if("cartesian2d"===m||"polar"===m)p=pM(e,n);else{var g=Gd.get(m),v=g&&g.dimensions||[];l["r"](v,"value")<0&&v.concat(["value"]);var y=Zk(e,{coordDimensions:v,encodeDefine:n.getEncode()}).dimensions;p=new Kk(y,n),p.initData(e)}var b=new Kk(["value"],n);return b.initData(u,s),i&&i(p,b),tI({mainData:p,struct:o,structAttr:"graph",datas:{node:p,edge:b},datasAttr:{node:"data",edge:"edgeData"}}),o.update(),o}var lR=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return a(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments);var n=this;function r(){return n._categoriesData}this.legendVisualProvider=new IC(r,r),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(t){e.prototype.mergeDefaultAndTheme.apply(this,arguments),di(t,"edgeLabel",["show"])},t.prototype.getInitialData=function(e,t){var n=e.edges||e.links||[],r=e.data||e.nodes||[],i=this;if(r&&n){oP(this);var o=sR(r,n,this,!0,a);return l["k"](o.edges,(function(e){aP(e.node1,e.node2,this,e.dataIndex)}),this),o.data}function a(e,t){e.wrapMethod("getItemModel",(function(e){var t=i._categoriesModels,n=e.getShallow("category"),r=t[n];return r&&(r.parentModel=e.parentModel,e.parentModel=r),e}));var n=Tu.prototype.getModel;function r(e,t){var r=n.call(this,e,t);return r.resolveParentPath=o,r}function o(e){if(e&&("label"===e[0]||"label"===e[1])){var t=e.slice();return"label"===e[0]?t[0]="edgeLabel":"label"===e[1]&&(t[1]="edgeLabel"),t}return e}t.wrapMethod("getItemModel",(function(e){return e.resolveParentPath=o,e.getModel=r,e}))}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(e,t,n){if("edge"===n){var r=this.getData(),i=this.getDataParams(e,n),o=r.graph.getEdgeByIndex(e),a=r.getName(o.node1.dataIndex),s=r.getName(o.node2.dataIndex),l=[];return null!=a&&l.push(a),null!=s&&l.push(s),Xf("nameValue",{name:l.join(" > "),value:i.value,noValue:null==i.value})}var u=dp({series:this,dataIndex:e,multipleSeries:t});return u},t.prototype._updateCategoriesData=function(){var e=l["H"](this.option.categories||[],(function(e){return null!=e.value?e:l["m"]({value:0},e)})),t=new Kk(["value"],this);t.initData(e),this._categoriesData=t,this._categoriesModels=t.mapArray((function(e){return t.getItemModel(e)}))},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.isAnimationEnabled=function(){return e.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},t.type="series.graph",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(Sp),uR=lR,cR={type:"graphRoam",event:"graphRoam",update:"none"};function dR(e){e.registerChartView(eR),e.registerSeriesModel(uR),e.registerProcessor(Gj),e.registerVisual(qj),e.registerVisual(Kj),e.registerLayout(cP),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,yP),e.registerLayout(wP),e.registerCoordinateSystem("graphView",{dimensions:tE.dimensions,create:kP}),e.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},l["L"]),e.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},l["L"]),e.registerAction(cR,(function(e,t,n){t.eachComponent({mainType:"series",query:e},(function(t){var r=t.coordinateSystem,i=mE(r,e,void 0,n);t.setCenter&&t.setCenter(i.center),t.setZoom&&t.setZoom(i.zoom)}))}))}var hR=function(){function e(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return e}(),fR=function(e){function t(t){var n=e.call(this,t)||this;return n.type="pointer",n}return a(t,e),t.prototype.getDefaultShape=function(){return new hR},t.prototype.buildPath=function(e,t){var n=Math.cos,r=Math.sin,i=t.r,o=t.width,a=t.angle,s=t.x-n(a)*o*(o>=i/3?1:2),l=t.y-r(a)*o*(o>=i/3?1:2);a=t.angle-Math.PI/2,e.moveTo(s,l),e.lineTo(t.x+n(a)*o,t.y+r(a)*o),e.lineTo(t.x+n(t.angle)*i,t.y+r(t.angle)*i),e.lineTo(t.x-n(a)*o,t.y-r(a)*o),e.lineTo(s,l)},t}(Ua),pR=fR;function mR(e,t){var n=e.get("center"),r=t.getWidth(),i=t.getHeight(),o=Math.min(r,i),a=Br(n[0],t.getWidth()),s=Br(n[1],t.getHeight()),l=Br(e.get("radius"),o/2);return{cx:a,cy:s,r:l}}function gR(e,t){var n=null==e?"":e+"";return t&&(Object(l["C"])(t)?n=t.replace("{value}",n):Object(l["w"])(t)&&(n=t(e))),n}var vR=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.render=function(e,t,n){this.group.removeAll();var r=e.get(["axisLine","lineStyle","color"]),i=mR(e,n);this._renderMain(e,t,n,r,i),this._data=e.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(e,t,n,r,i){var o=this.group,a=e.get("clockwise"),s=-e.get("startAngle")/180*Math.PI,u=-e.get("endAngle")/180*Math.PI,c=e.getModel("axisLine"),d=c.get("roundCap"),h=d?NS:wm,f=c.get("show"),p=c.getModel("lineStyle"),m=p.get("width"),g=[s,u];va(g,!a),s=g[0],u=g[1];for(var v=u-s,y=s,b=[],_=0;f&&_=e&&(0===t?0:r[t-1][0])Math.PI/2&&(Y+=Math.PI)):"tangential"===B?Y=-S-Math.PI/2:Object(l["z"])(B)&&(Y=B*Math.PI/180),0===Y?h.add(new Cs({style:ru(_,{text:j,x:R,y:N,verticalAlign:d<-.8?"top":d>.8?"bottom":"middle",align:c<-.4?"left":c>.4?"right":"center"},{inheritColor:P}),silent:!0})):h.add(new Cs({style:ru(_,{text:j,x:R,y:N,verticalAlign:"middle",align:"center"},{inheritColor:P}),silent:!0,originX:R,originY:N,rotation:Y}))}if(b.get("show")&&D!==w){E=b.get("distance");E=E?E+u:u;for(var F=0;F<=x;F++){c=Math.cos(S),d=Math.sin(S);var z=new Rm({shape:{x1:c*(m-E)+f,y1:d*(m-E)+p,x2:c*(m-M-E)+f,y2:d*(m-M-E)+p},silent:!0,style:L});"auto"===L.stroke&&z.setStyle({stroke:r((D+F/x)/w)}),h.add(z),S+=T}S-=T}else S+=C}},t.prototype._renderPointer=function(e,t,n,r,i,o,a,s,u){var c=this.group,d=this._data,h=this._progressEls,f=[],p=e.get(["pointer","show"]),m=e.getModel("progress"),g=m.get("show"),v=e.getData(),y=v.mapDimension("value"),b=+e.get("min"),_=+e.get("max"),w=[b,_],x=[o,a];function k(t,n){var r,o=v.getItemModel(t),a=o.getModel("pointer"),s=Br(a.get("width"),i.r),l=Br(a.get("length"),i.r),u=e.get(["pointer","icon"]),c=a.get("offsetCenter"),d=Br(c[0],i.r),h=Br(c[1],i.r),f=a.get("keepAspect");return r=u?sy(u,d-s/2,h-l,s,l,null,f):new pR({shape:{angle:-Math.PI/2,width:s,r:l,x:d,y:h}}),r.rotation=-(n+Math.PI/2),r.x=i.cx,r.y=i.cy,r}function M(e,t){var n=m.get("roundCap"),r=n?NS:wm,a=m.get("overlap"),l=a?m.get("width"):u/v.count(),c=a?i.r-l:i.r-(e+1)*l,d=a?i.r:i.r-e*l,h=new r({shape:{startAngle:o,endAngle:t,cx:i.cx,cy:i.cy,clockwise:s,r0:c,r:d}});return a&&(h.z2=Nr(v.get(y,e),[b,_],[100,0],!0)),h}(g||p)&&(v.diff(d).add((function(t){var n=v.get(y,t);if(p){var r=k(t,o);Ul(r,{rotation:-((isNaN(+n)?x[0]:Nr(n,w,x,!0))+Math.PI/2)},e),c.add(r),v.setItemGraphicEl(t,r)}if(g){var i=M(t,o),a=m.get("clip");Ul(i,{shape:{endAngle:Nr(n,w,x,a)}},e),c.add(i),Os(e.seriesIndex,v.dataType,t,i),f[t]=i}})).update((function(t,n){var r=v.get(y,t);if(p){var i=d.getItemGraphicEl(n),a=i?i.rotation:o,s=k(t,a);s.rotation=a,Wl(s,{rotation:-((isNaN(+r)?x[0]:Nr(r,w,x,!0))+Math.PI/2)},e),c.add(s),v.setItemGraphicEl(t,s)}if(g){var l=h[n],u=l?l.shape.endAngle:o,b=M(t,u),_=m.get("clip");Wl(b,{shape:{endAngle:Nr(r,w,x,_)}},e),c.add(b),Os(e.seriesIndex,v.dataType,t,b),f[t]=b}})).execute(),v.each((function(e){var t=v.getItemModel(e),n=t.getModel("emphasis"),i=n.get("focus"),o=n.get("blurScope"),a=n.get("disabled");if(p){var s=v.getItemGraphicEl(e),u=v.getItemVisual(e,"style"),c=u.fill;if(s instanceof Qa){var d=s.style;s.useStyle(Object(l["m"])({image:d.image,x:d.x,y:d.y,width:d.width,height:d.height},u))}else s.useStyle(u),"pointer"!==s.type&&s.setColor(c);s.setStyle(t.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===s.style.fill&&s.setStyle("fill",r(Nr(v.get(y,e),w,[0,1],!0))),s.z2EmphasisLift=0,Il(s,t),Ll(s,i,o,a)}if(g){var h=f[e];h.useStyle(v.getItemVisual(e,"style")),h.setStyle(t.getModel(["progress","itemStyle"]).getItemStyle()),h.z2EmphasisLift=0,Il(h,t),Ll(h,i,o,a)}})),this._progressEls=f)},t.prototype._renderAnchor=function(e,t){var n=e.getModel("anchor"),r=n.get("show");if(r){var i=n.get("size"),o=n.get("icon"),a=n.get("offsetCenter"),s=n.get("keepAspect"),l=sy(o,t.cx-i/2+Br(a[0],t.r),t.cy-i/2+Br(a[1],t.r),i,i,null,s);l.z2=n.get("showAbove")?1:0,l.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(l)}},t.prototype._renderTitleAndDetail=function(e,t,n,r,i){var o=this,a=e.getData(),s=a.mapDimension("value"),l=+e.get("min"),u=+e.get("max"),c=new kr,d=[],h=[],f=e.isAnimationEnabled(),p=e.get(["pointer","showAbove"]);a.diff(this._data).add((function(e){d[e]=new Cs({silent:!0}),h[e]=new Cs({silent:!0})})).update((function(e,t){d[e]=o._titleEls[t],h[e]=o._detailEls[t]})).execute(),a.each((function(t){var n=a.getItemModel(t),o=a.get(s,t),m=new kr,g=r(Nr(o,[l,u],[0,1],!0)),v=n.getModel("title");if(v.get("show")){var y=v.get("offsetCenter"),b=i.cx+Br(y[0],i.r),_=i.cy+Br(y[1],i.r),w=d[t];w.attr({z2:p?0:2,style:ru(v,{x:b,y:_,text:a.getName(t),align:"center",verticalAlign:"middle"},{inheritColor:g})}),m.add(w)}var x=n.getModel("detail");if(x.get("show")){var k=x.get("offsetCenter"),M=i.cx+Br(k[0],i.r),S=i.cy+Br(k[1],i.r),C=Br(x.get("width"),i.r),T=Br(x.get("height"),i.r),O=e.get(["progress","show"])?a.getItemVisual(t,"style").fill:g,L=(w=h[t],x.get("formatter"));w.attr({z2:p?0:2,style:ru(x,{x:M,y:S,text:gR(o,L),width:isNaN(C)?null:C,height:isNaN(T)?null:T,align:"center",verticalAlign:"middle"},{inheritColor:O})}),fu(w,{normal:x},o,(function(e){return gR(e,L)})),f&&pu(w,t,a,e,{getFormattedLabel:function(e,t,n,r,i,a){return gR(a?a.interpolatedValue:o,L)}}),m.add(w)}c.add(m)})),this.group.add(c),this._titleEls=d,this._detailEls=h},t.type="gauge",t}(qg),yR=vR,bR=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="itemStyle",n}return a(t,e),t.prototype.getInitialData=function(e,t){return DC(this,["value"])},t.type="series.gauge",t.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},t}(Sp),_R=bR;function wR(e){e.registerChartView(yR),e.registerSeriesModel(_R)}var xR=["itemStyle","opacity"],kR=function(e){function t(t,n){var r=e.call(this)||this,i=r,o=new Em,a=new Cs;return i.setTextContent(a),r.setTextGuideLine(o),r.updateData(t,n,!0),r}return a(t,e),t.prototype.updateData=function(e,t,n){var r=this,i=e.hostModel,o=e.getItemModel(t),a=e.getItemLayout(t),s=o.getModel("emphasis"),l=o.get(xR);l=null==l?1:l,n||Kl(r),r.useStyle(e.getItemVisual(t,"style")),r.style.lineJoin="round",n?(r.setShape({points:a.points}),r.style.opacity=0,Ul(r,{style:{opacity:l}},i,t)):Wl(r,{style:{opacity:l},shape:{points:a.points}},i,t),Il(r,o),this._updateLabel(e,t),Ll(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))},t.prototype._updateLabel=function(e,t){var n=this,r=this.getTextGuideLine(),i=n.getTextContent(),o=e.hostModel,a=e.getItemModel(t),s=e.getItemLayout(t),l=s.label,u=e.getItemVisual(t,"style"),c=u.fill;tu(i,nu(a),{labelFetcher:e.hostModel,labelDataIndex:t,defaultOpacity:u.opacity,defaultText:e.getName(t)},{normal:{align:l.textAlign,verticalAlign:l.verticalAlign}}),n.setTextConfig({local:!0,inside:!!l.inside,insideStroke:c,outsideFill:c});var d=l.linePoints;r.setShape({points:d}),n.textGuideLineConfig={anchor:d?new ye(d[0][0],d[0][1]):null},Wl(i,{style:{x:l.x,y:l.y}},o,t),i.attr({rotation:l.rotation,originX:l.x,originY:l.y,z2:10}),aw(n,sw(a),{stroke:c})},t}(Lm),MR=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreLabelLineUpdate=!0,n}return a(t,e),t.prototype.render=function(e,t,n){var r=e.getData(),i=this._data,o=this.group;r.diff(i).add((function(e){var t=new kR(r,e);r.setItemGraphicEl(e,t),o.add(t)})).update((function(e,t){var n=i.getItemGraphicEl(t);n.updateData(r,e),o.add(n),r.setItemGraphicEl(e,n)})).remove((function(t){var n=i.getItemGraphicEl(t);Xl(n,e,t)})).execute(),this._data=r},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(qg),SR=MR,CR=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new IC(l["c"](this.getData,this),l["c"](this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.getInitialData=function(e,t){return DC(this,{coordDimensions:["value"],encodeDefaulter:l["h"](fd,this)})},t.prototype._defaultLabelLine=function(e){di(e,"labelLine",["show"]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.prototype.getDataParams=function(t){var n=this.getData(),r=e.prototype.getDataParams.call(this,t),i=n.mapDimension("value"),o=n.getSum(i);return r.percent=o?+(n.get(i,t)/o*100).toFixed(2):0,r.$vars.push("percent"),r},t.type="series.funnel",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(Sp),TR=CR;function OR(e,t){return Fc(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function LR(e,t){for(var n=e.mapDimension("value"),r=e.mapArray(n,(function(e){return e})),i=[],o="ascending"===t,a=0,s=e.count();aJR)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]);"none"!==i.behavior&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(e){if(!this._mouseDownPoint&&tN(this,"mousemove")){var t=this._model,n=t.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]),r=n.behavior;"jump"===r&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===r?null:{axisExpandWindow:n.axisExpandWindow,animation:"jump"===r?null:{duration:0}})}}};function tN(e,t){var n=e._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===t}var nN=QR,rN=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.init=function(){e.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(e){var t=this.option;e&&l["I"](t,e,!0),this._initDimensions()},t.prototype.contains=function(e,t){var n=e.get("parallelIndex");return null!=n&&t.getComponent("parallel",n)===this},t.prototype.setAxisExpand=function(e){l["k"](["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],(function(t){e.hasOwnProperty(t)&&(this.option[t]=e[t])}),this)},t.prototype._initDimensions=function(){var e=this.dimensions=[],t=this.parallelAxisIndex=[],n=l["n"](this.ecModel.queryComponents({mainType:"parallelAxis"}),(function(e){return(e.get("parallelIndex")||0)===this.componentIndex}),this);l["k"](n,(function(n){e.push("dim"+n.get("dim")),t.push(n.componentIndex)}))},t.type="parallel",t.dependencies=["parallelAxis"],t.layoutMode="box",t.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},t}(Kc),iN=rN,oN=function(e){function t(t,n,r,i,o){var a=e.call(this,t,n,r)||this;return a.type=i||"value",a.axisIndex=o,a}return a(t,e),t.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},t}(FO),aN=oN;function sN(e,t,n,r,i,o){e=e||0;var a=n[1]-n[0];if(null!=i&&(i=uN(i,[0,a])),null!=o&&(o=Math.max(o,null!=i?i:0)),"all"===r){var s=Math.abs(t[1]-t[0]);s=uN(s,[0,a]),i=o=uN(s,[i,o]),r=0}t[0]=uN(t[0],n),t[1]=uN(t[1],n);var l=lN(t,r);t[r]+=e;var u,c=i||0,d=n.slice();return l.sign<0?d[0]+=c:d[1]-=c,t[r]=uN(t[r],d),u=lN(t,r),null!=i&&(u.sign!==l.sign||u.spano&&(t[1-r]=t[r]+u.sign*o),t}function lN(e,t){var n=e[t]-e[1-t];return{span:Math.abs(n),sign:n>0?-1:n<0?1:t?-1:1}}function uN(e,t){return Math.min(null!=t[1]?t[1]:1/0,Math.max(null!=t[0]?t[0]:-1/0,e))}var cN=l["k"],dN=Math.min,hN=Math.max,fN=Math.floor,pN=Math.ceil,mN=Yr,gN=Math.PI,vN=function(){function e(e,t,n){this.type="parallel",this._axesMap=l["f"](),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,n)}return e.prototype._init=function(e,t,n){var r=e.dimensions,i=e.parallelAxisIndex;cN(r,(function(e,n){var r=i[n],o=t.getComponent("parallelAxis",r),a=this._axesMap.set(e,new aN(e,iO(o),[0,0],o.get("type"),r)),s="category"===a.type;a.onBand=s&&o.get("boundaryGap"),a.inverse=o.get("inverse"),o.axis=a,a.model=o,a.coordinateSystem=o.coordinateSystem=this}),this)},e.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},e.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),n=t.axisBase,r=t.layoutBase,i=t.pixelDimIndex,o=e[1-i],a=e[i];return o>=n&&o<=n+t.axisLength&&a>=r&&a<=r+t.layoutLength},e.prototype.getModel=function(){return this._model},e.prototype._updateAxesFromSeries=function(e,t){t.eachSeries((function(n){if(e.contains(n,t)){var r=n.getData();cN(this.dimensions,(function(e){var t=this._axesMap.get(e);t.scale.unionExtentFromData(r,r.mapDimension(e)),rO(t.scale,t.model)}),this)}}),this)},e.prototype.resize=function(e,t){this._rect=Fc(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},e.prototype.getRect=function(){return this._rect},e.prototype._makeLayoutInfo=function(){var e,t=this._model,n=this._rect,r=["x","y"],i=["width","height"],o=t.get("layout"),a="horizontal"===o?0:1,s=n[i[a]],l=[0,s],u=this.dimensions.length,c=yN(t.get("axisExpandWidth"),l),d=yN(t.get("axisExpandCount")||0,[0,u]),h=t.get("axisExpandable")&&u>3&&u>d&&d>1&&c>0&&s>0,f=t.get("axisExpandWindow");if(f)e=yN(f[1]-f[0],l),f[1]=f[0]+e;else{e=yN(c*(d-1),l);var p=t.get("axisExpandCenter")||fN(u/2);f=[c*p-e/2],f[1]=f[0]+e}var m=(s-e)/(u-d);m<3&&(m=0);var g=[fN(mN(f[0]/c,1))+1,pN(mN(f[1]/c,1))-1],v=m/c*f[0];return{layout:o,pixelDimIndex:a,layoutBase:n[r[a]],layoutLength:s,axisBase:n[r[1-a]],axisLength:n[i[1-a]],axisExpandable:h,axisExpandWidth:c,axisCollapseWidth:m,axisExpandWindow:f,axisCount:u,winInnerIndices:g,axisExpandWindow0Pos:v}},e.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,n=this.dimensions,r=this._makeLayoutInfo(),i=r.layout;t.each((function(e){var t=[0,r.axisLength],n=e.inverse?1:0;e.setExtent(t[n],t[1-n])})),cN(n,(function(t,n){var o=(r.axisExpandable?_N:bN)(n,r),a={horizontal:{x:o.position,y:r.axisLength},vertical:{x:0,y:o.position}},s={horizontal:gN/2,vertical:0},l=[a[i].x+e.x,a[i].y+e.y],u=s[i],c=le();fe(c,c,u),he(c,c,l),this._axesLayout[t]={position:l,rotation:u,transform:c,axisNameAvailableWidth:o.axisNameAvailableWidth,axisLabelShow:o.axisLabelShow,nameTruncateMaxWidth:o.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}}),this)},e.prototype.getAxis=function(e){return this._axesMap.get(e)},e.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},e.prototype.eachActiveState=function(e,t,n,r){null==n&&(n=0),null==r&&(r=e.count());var i=this._axesMap,o=this.dimensions,a=[],s=[];l["k"](o,(function(t){a.push(e.mapDimension(t)),s.push(i.get(t).model)}));for(var u=this.hasAxisBrushed(),c=n;ci*(1-c[0])?(l="jump",a=s-i*(1-c[2])):(a=s-i*c[1])>=0&&(a=s-i*(1-c[1]))<=0&&(a=0),a*=t.axisExpandWidth/u,a?sN(a,r,o,"all"):l="none";else{var h=r[1]-r[0],f=o[1]*s/h;r=[hN(0,f-h/2)],r[1]=dN(o[1],r[0]+h),r[0]=r[1]-h}return{axisExpandWindow:r,behavior:l}},e}();function yN(e,t){return dN(hN(e,t[0]),t[1])}function bN(e,t){var n=t.layoutLength/(t.axisCount-1);return{position:n*e,axisNameAvailableWidth:n,axisLabelShow:!0}}function _N(e,t){var n,r,i=t.layoutLength,o=t.axisExpandWidth,a=t.axisCount,s=t.axisCollapseWidth,l=t.winInnerIndices,u=s,c=!1;return e=0;n--)Fr(t[n])},t.prototype.getActiveState=function(e){var t=this.activeIntervals;if(!t.length)return"normal";if(null==e||isNaN(+e))return"inactive";if(1===t.length){var n=t[0];if(n[0]<=e&&e<=n[1])return"active"}else for(var r=0,i=t.length;rEN}function ZN(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function JN(e,t,n,r){var i=new kr;return i.add(new ls({name:"main",style:nB(n),silent:!0,draggable:!0,cursor:"move",drift:Object(l["h"])(sB,e,t,i,["n","s","w","e"]),ondragend:Object(l["h"])(XN,t,{isEnd:!0})})),Object(l["k"])(r,(function(n){i.add(new ls({name:n.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Object(l["h"])(sB,e,t,i,n),ondragend:Object(l["h"])(XN,t,{isEnd:!0})}))})),i}function QN(e,t,n,r){var i=r.brushStyle.lineWidth||0,o=LN(i,IN),a=n[0][0],s=n[1][0],l=a-i/2,u=s-i/2,c=n[0][1],d=n[1][1],h=c-o+i/2,f=d-o+i/2,p=c-a,m=d-s,g=p+i,v=m+i;tB(e,t,"main",a,s,p,m),r.transformable&&(tB(e,t,"w",l,u,o,v),tB(e,t,"e",h,u,o,v),tB(e,t,"n",l,u,g,o),tB(e,t,"s",l,f,g,o),tB(e,t,"nw",l,u,o,o),tB(e,t,"ne",h,u,o,o),tB(e,t,"sw",l,f,o,o),tB(e,t,"se",h,f,o,o))}function eB(e,t){var n=t.__brushOption,r=n.transformable,i=t.childAt(0);i.useStyle(nB(n)),i.attr({silent:!r,cursor:r?"move":"default"}),Object(l["k"])([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],(function(n){var i=t.childOfName(n.join("")),o=1===n.length?oB(e,n[0]):aB(e,n);i&&i.attr({silent:!r,invisible:!r,cursor:r?RN[o]+"-resize":null})}))}function tB(e,t,n,r,i,o,a){var s=t.childOfName(n);s&&s.setShape(dB(cB(e,t,[[r,i],[r+o,i+a]])))}function nB(e){return Object(l["i"])({strokeNoScale:!0},e.brushStyle)}function rB(e,t,n,r){var i=[ON(e,n),ON(t,r)],o=[LN(e,n),LN(t,r)];return[[i[0],o[0]],[i[1],o[1]]]}function iB(e){return Mg(e.group)}function oB(e,t){var n={w:"left",e:"right",n:"top",s:"bottom"},r={left:"w",right:"e",top:"n",bottom:"s"},i=Cg(n[t],iB(e));return r[i]}function aB(e,t){var n=[oB(e,t[0]),oB(e,t[1])];return("e"===n[0]||"w"===n[0])&&n.reverse(),n.join("")}function sB(e,t,n,r,i,o){var a=n.__brushOption,s=e.toRectRange(a.range),u=uB(t,i,o);Object(l["k"])(r,(function(e){var t=PN[e];s[t[0]][t[1]]+=u[t[0]]})),a.range=e.fromRectRange(rB(s[0][0],s[1][0],s[0][1],s[1][1])),WN(t,n),XN(t,{isEnd:!1})}function lB(e,t,n,r){var i=t.__brushOption.range,o=uB(e,n,r);Object(l["k"])(i,(function(e){e[0]+=o[0],e[1]+=o[1]})),WN(e,t),XN(e,{isEnd:!1})}function uB(e,t,n){var r=e.group,i=r.transformCoordToLocal(t,n),o=r.transformCoordToLocal(0,0);return[i[0]-o[0],i[1]-o[1]]}function cB(e,t,n){var r=GN(e,t);return r&&r!==TN?r.clipPath(n,e._transform):Object(l["d"])(n)}function dB(e){var t=ON(e[0][0],e[1][0]),n=ON(e[0][1],e[1][1]),r=LN(e[0][0],e[1][0]),i=LN(e[0][1],e[1][1]);return{x:t,y:n,width:r-t,height:i-n}}function hB(e,t,n){if(e._brushType&&!bB(e,t.offsetX,t.offsetY)){var r=e._zr,i=e._covers,o=$N(e,t,n);if(!e._dragging)for(var a=0;ar.getWidth()||n<0||n>r.getHeight()}var _B={lineX:wB(0),lineY:wB(1),rect:{createCover:function(e,t){function n(e){return e}return JN({toRectRange:n,fromRectRange:n},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=ZN(e);return rB(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,n,r){QN(e,t,n,r)},updateCommon:eB,contain:pB},polygon:{createCover:function(e,t){var n=new kr;return n.add(new Em({name:"main",style:nB(t),silent:!0})),n},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new Lm({name:"main",draggable:!0,drift:Object(l["h"])(lB,e,t),ondragend:Object(l["h"])(XN,e,{isEnd:!0})}))},updateCoverShape:function(e,t,n,r){t.childAt(0).setShape({points:cB(e,t,n)})},updateCommon:eB,contain:pB}};function wB(e){return{createCover:function(t,n){return JN({toRectRange:function(t){var n=[t,[0,100]];return e&&n.reverse(),n},fromRectRange:function(t){return t[e]}},t,n,[[["w"],["e"]],[["n"],["s"]]][e])},getCreatingRange:function(t){var n=ZN(t),r=ON(n[0][e],n[1][e]),i=LN(n[0][e],n[1][e]);return[r,i]},updateCoverShape:function(t,n,r,i){var o,a=GN(t,n);if(a!==TN&&a.getLinearBrushOtherExtent)o=a.getLinearBrushOtherExtent(e);else{var s=t._zr;o=[0,[s.getWidth(),s.getHeight()][1-e]]}var l=[r,o];e&&l.reverse(),QN(t,n,l,i)},updateCommon:eB,contain:pB}}var xB=YN;function kB(e){return e=CB(e),function(t){return Ag(t,e)}}function MB(e,t){return e=CB(e),function(n){var r=null!=t?t:n,i=r?e.width:e.height,o=r?e.x:e.y;return[o,o+(i||0)]}}function SB(e,t,n){var r=CB(e);return function(e,i){return r.contain(i[0],i[1])&&!wA(e,t,n)}}function CB(e){return Oe.create(e)}var TB=["axisLine","axisTickLabel","axisName"],OB=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.init=function(t,n){e.prototype.init.apply(this,arguments),(this._brushController=new xB(n.getZr())).on("brush",l["c"](this._onBrush,this))},t.prototype.render=function(e,t,n,r){if(!LB(e,t,r)){this.axisModel=e,this.api=n,this.group.removeAll();var i=this._axisGroup;if(this._axisGroup=new kr,this.group.add(this._axisGroup),e.get("show")){var o=DB(e,t),a=o.coordinateSystem,s=e.getAreaSelectStyle(),u=s.width,c=e.axis.dim,d=a.getAxisLayout(c),h=l["m"]({strokeContainThreshold:u},d),f=new hL(e,h);l["k"](TB,f.add,f),this._axisGroup.add(f.getGroup()),this._refreshBrushController(h,s,e,o,u,n),Lg(i,this._axisGroup,e)}}},t.prototype._refreshBrushController=function(e,t,n,r,i,o){var a=n.axis.getExtent(),s=a[1]-a[0],l=Math.min(30,.1*Math.abs(s)),u=Oe.create({x:a[0],y:-i/2,width:s,height:i});u.x-=l,u.width+=2*l,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,x:e.position[0],y:e.position[1]}).setPanels([{panelId:"pl",clipPath:kB(u),isTargetByCursor:SB(u,o,r),getLinearBrushOtherExtent:MB(u,0)}]).enableBrush({brushType:"lineX",brushStyle:t,removeOnClick:!0}).updateCovers(AB(n))},t.prototype._onBrush=function(e){var t=e.areas,n=this.axisModel,r=n.axis,i=l["H"](t,(function(e){return[r.coordToData(e.range[0],!0),r.coordToData(e.range[1],!0)]}));(!n.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:i})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(Tp);function LB(e,t,n){return n&&"axisAreaSelect"===n.type&&t.findComponents({mainType:"parallelAxis",query:n})[0]===e}function AB(e){var t=e.axis;return l["H"](e.activeIntervals,(function(e){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(e[0],!0),t.dataToCoord(e[1],!0)]}}))}function DB(e,t){return t.getComponent("parallel",e.get("parallelIndex"))}var EB=OB,IB={type:"axisAreaSelect",event:"axisAreaSelected"};function jB(e){e.registerAction(IB,(function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},(function(t){t.axis.model.setActiveIntervals(e.intervals)}))})),e.registerAction("parallelAxisExpand",(function(e,t){t.eachComponent({mainType:"parallel",query:e},(function(t){t.setAxisExpand(e)}))}))}var PB={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function RB(e){e.registerComponentView(nN),e.registerComponentModel(iN),e.registerCoordinateSystem("parallel",MN),e.registerPreprocessor(XR),e.registerComponentModel(CN),e.registerComponentView(EB),uT(e,"parallel",CN,PB),jB(e)}function NB(e){N_(RB),e.registerChartView(zR),e.registerSeriesModel(UR),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,qR)}var BB=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return e}(),YB=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.getDefaultShape=function(){return new BB},t.prototype.buildPath=function(e,t){var n=t.extent;e.moveTo(t.x1,t.y1),e.bezierCurveTo(t.cpx1,t.cpy1,t.cpx2,t.cpy2,t.x2,t.y2),"vertical"===t.orient?(e.lineTo(t.x2+n,t.y2),e.bezierCurveTo(t.cpx2+n,t.cpy2,t.cpx1+n,t.cpy1,t.x1+n,t.y1)):(e.lineTo(t.x2,t.y2+n),e.bezierCurveTo(t.cpx2,t.cpy2+n,t.cpx1,t.cpy1+n,t.x1,t.y1+n)),e.closePath()},t.prototype.highlight=function(){cl(this)},t.prototype.downplay=function(){dl(this)},t}(Ua),FB=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._focusAdjacencyDisabled=!1,n}return a(t,e),t.prototype.render=function(e,t,n){var r=this,i=e.getGraph(),o=this.group,a=e.layoutInfo,s=a.width,u=a.height,c=e.getData(),d=e.getData("edge"),h=e.get("orient");this._model=e,o.removeAll(),o.x=a.x,o.y=a.y,i.eachEdge((function(t){var n=new YB,r=Ts(n);r.dataIndex=t.dataIndex,r.seriesIndex=e.seriesIndex,r.dataType="edge";var i,a,c,f,p,m,g,v,y=t.getModel(),b=y.getModel("lineStyle"),_=b.get("curveness"),w=t.node1.getLayout(),x=t.node1.getModel(),k=x.get("localX"),M=x.get("localY"),S=t.node2.getLayout(),C=t.node2.getModel(),T=C.get("localX"),O=C.get("localY"),L=t.getLayout();n.shape.extent=Math.max(1,L.dy),n.shape.orient=h,"vertical"===h?(i=(null!=k?k*s:w.x)+L.sy,a=(null!=M?M*u:w.y)+w.dy,c=(null!=T?T*s:S.x)+L.ty,f=null!=O?O*u:S.y,p=i,m=a*(1-_)+f*_,g=c,v=a*_+f*(1-_)):(i=(null!=k?k*s:w.x)+w.dx,a=(null!=M?M*u:w.y)+L.sy,c=null!=T?T*s:S.x,f=(null!=O?O*u:S.y)+L.ty,p=i*(1-_)+c*_,m=a,g=i*_+c*(1-_),v=f),n.setShape({x1:i,y1:a,x2:c,y2:f,cpx1:p,cpy1:m,cpx2:g,cpy2:v}),n.useStyle(b.getItemStyle()),zB(n.style,h,t);var A=""+y.get("value"),D=nu(y,"edgeLabel");tu(n,D,{labelFetcher:{getFormattedLabel:function(t,n,r,i,o,a){return e.getFormattedLabel(t,n,"edge",i,Object(l["Q"])(o,D.normal&&D.normal.get("formatter"),A),a)}},labelDataIndex:t.dataIndex,defaultText:A}),n.setTextConfig({position:"inside"});var E=y.getModel("emphasis");Il(n,y,"lineStyle",(function(e){var n=e.getItemStyle();return zB(n,h,t),n})),o.add(n),d.setItemGraphicEl(t.dataIndex,n);var I=E.get("focus");Ll(n,"adjacency"===I?t.getAdjacentDataIndices():"trajectory"===I?t.getTrajectoryDataIndices():I,E.get("blurScope"),E.get("disabled"))})),i.eachNode((function(t){var n=t.getLayout(),r=t.getModel(),i=r.get("localX"),a=r.get("localY"),l=r.getModel("emphasis"),d=r.get(["itemStyle","borderRadius"])||0,h=new ls({shape:{x:null!=i?i*s:n.x,y:null!=a?a*u:n.y,width:n.dx,height:n.dy,r:d},style:r.getModel("itemStyle").getItemStyle(),z2:10});tu(h,nu(r),{labelFetcher:{getFormattedLabel:function(t,n){return e.getFormattedLabel(t,n,"node")}},labelDataIndex:t.dataIndex,defaultText:t.id}),h.disableLabelAnimation=!0,h.setStyle("fill",t.getVisual("color")),h.setStyle("decal",t.getVisual("style").decal),Il(h,r),o.add(h),c.setItemGraphicEl(t.dataIndex,h),Ts(h).dataType="node";var f=l.get("focus");Ll(h,"adjacency"===f?t.getAdjacentDataIndices():"trajectory"===f?t.getTrajectoryDataIndices():f,l.get("blurScope"),l.get("disabled"))})),c.eachItemGraphicEl((function(t,i){var o=c.getItemModel(i);o.get("draggable")&&(t.drift=function(t,o){r._focusAdjacencyDisabled=!0,this.shape.x+=t,this.shape.y+=o,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:e.id,dataIndex:c.getRawIndex(i),localX:this.shape.x/s,localY:this.shape.y/u})},t.ondragend=function(){r._focusAdjacencyDisabled=!1},t.draggable=!0,t.cursor="move")})),!this._data&&e.isAnimationEnabled()&&o.setClipPath(HB(o.getBoundingRect(),e,(function(){o.removeClipPath()}))),this._data=e.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(qg);function zB(e,t,n){switch(e.fill){case"source":e.fill=n.node1.getVisual("color"),e.decal=n.node1.getVisual("style").decal;break;case"target":e.fill=n.node2.getVisual("color"),e.decal=n.node2.getVisual("style").decal;break;case"gradient":var r=n.node1.getVisual("color"),i=n.node2.getVisual("color");Object(l["C"])(r)&&Object(l["C"])(i)&&(e.fill=new Km(0,0,+("horizontal"===t),+("vertical"===t),[{color:r,offset:0},{color:i,offset:1}]))}}function HB(e,t,n){var r=new ls({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return Ul(r,{shape:{width:e.width+20}},t,n),r}var VB=FB,WB=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.getInitialData=function(e,t){var n=e.edges||e.links||[],r=e.data||e.nodes||[],i=e.levels||[];this.levelModels=[];for(var o=this.levelModels,a=0;a=0&&(o[i[a].depth]=new Tu(i[a],this,t));var s=sR(r,n,this,!0,l);return s.data;function l(e,t){e.wrapMethod("getItemModel",(function(e,t){var n=e.parentModel,r=n.getData().getItemLayout(t);if(r){var i=r.depth,o=n.levelModels[i];o&&(e.parentModel=o)}return e})),t.wrapMethod("getItemModel",(function(e,t){var n=e.parentModel,r=n.getGraph().getEdgeByIndex(t),i=r.node1.getLayout();if(i){var o=i.depth,a=n.levelModels[o];a&&(e.parentModel=a)}return e}))}},t.prototype.setNodePosition=function(e,t){var n=this.option.data||this.option.nodes,r=n[e];r.localX=t[0],r.localY=t[1]},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(e,t,n){function r(e){return isNaN(e)||null==e}if("edge"===n){var i=this.getDataParams(e,n),o=i.data,a=i.value,s=o.source+" -- "+o.target;return Xf("nameValue",{name:s,value:a,noValue:r(a)})}var l=this.getGraph().getNodeByIndex(e),u=l.getLayout().value,c=this.getDataParams(e,n).data.name;return Xf("nameValue",{name:null!=c?c+"":null,value:u,noValue:r(u)})},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(t,n){var r=e.prototype.getDataParams.call(this,t,n);if(null==r.value&&"node"===n){var i=this.getGraph().getNodeByIndex(t),o=i.getLayout().value;r.value=o}return r},t.type="series.sankey",t.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},t}(Sp),UB=WB;function $B(e,t){e.eachSeriesByType("sankey",(function(e){var n=e.get("nodeWidth"),r=e.get("nodeGap"),i=GB(e,t);e.layoutInfo=i;var o=i.width,a=i.height,s=e.getGraph(),u=s.nodes,c=s.edges;XB(u);var d=l["n"](u,(function(e){return 0===e.getLayout().value})),h=0!==d.length?0:e.get("layoutIterations"),f=e.get("orient"),p=e.get("nodeAlign");qB(u,c,n,r,o,a,h,f,p)}))}function GB(e,t){return Fc(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function qB(e,t,n,r,i,o,a,s,l){KB(e,t,n,i,o,s,l),tY(e,t,o,i,r,a,s),pY(e,s)}function XB(e){l["k"](e,(function(e){var t=hY(e.outEdges,dY),n=hY(e.inEdges,dY),r=e.getValue()||0,i=Math.max(t,n,r);e.setLayout({value:i},!0)}))}function KB(e,t,n,r,i,o,a){for(var s=[],l=[],u=[],c=[],d=0,h=0;h=0;v&&g.depth>f&&(f=g.depth),m.setLayout({depth:v?g.depth:d},!0),"vertical"===o?m.setLayout({dy:n},!0):m.setLayout({dx:n},!0);for(var y=0;yd-1?f:d-1;a&&"left"!==a&&JB(e,a,o,k);var M="vertical"===o?(i-n)/k:(r-n)/k;eY(e,M,o)}function ZB(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return null!=t.depth&&t.depth>=0}function JB(e,t,n,r){if("right"===t){var i=[],o=e,a=0;while(o.length){for(var s=0;s0;o--)l*=.99,oY(s,l,a),iY(s,i,n,r,a),fY(s,l,a),iY(s,i,n,r,a)}function nY(e,t){var n=[],r="vertical"===t?"y":"x",i=Hi(e,(function(e){return e.getLayout()[r]}));return i.keys.sort((function(e,t){return e-t})),l["k"](i.keys,(function(e){n.push(i.buckets.get(e))})),n}function rY(e,t,n,r,i,o){var a=1/0;l["k"](e,(function(e){var t=e.length,s=0;l["k"](e,(function(e){s+=e.getLayout().value}));var u="vertical"===o?(r-(t-1)*i)/s:(n-(t-1)*i)/s;u0&&(a=s.getLayout()[o]+l,"vertical"===i?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),u=s.getLayout()[o]+s.getLayout()[d]+t;var f="vertical"===i?r:n;if(l=u-t-f,l>0){a=s.getLayout()[o]-l,"vertical"===i?s.setLayout({x:a},!0):s.setLayout({y:a},!0),u=a;for(h=c-2;h>=0;--h)s=e[h],l=s.getLayout()[o]+s.getLayout()[d]+t-u,l>0&&(a=s.getLayout()[o]-l,"vertical"===i?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),u=s.getLayout()[o]}}))}function oY(e,t,n){l["k"](e.slice().reverse(),(function(e){l["k"](e,(function(e){if(e.outEdges.length){var r=hY(e.outEdges,aY,n)/hY(e.outEdges,dY);if(isNaN(r)){var i=e.outEdges.length;r=i?hY(e.outEdges,sY,n)/i:0}if("vertical"===n){var o=e.getLayout().x+(r-cY(e,n))*t;e.setLayout({x:o},!0)}else{var a=e.getLayout().y+(r-cY(e,n))*t;e.setLayout({y:a},!0)}}}))}))}function aY(e,t){return cY(e.node2,t)*e.getValue()}function sY(e,t){return cY(e.node2,t)}function lY(e,t){return cY(e.node1,t)*e.getValue()}function uY(e,t){return cY(e.node1,t)}function cY(e,t){return"vertical"===t?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function dY(e){return e.getValue()}function hY(e,t,n){var r=0,i=e.length,o=-1;while(++oo&&(o=t)})),l["k"](n,(function(t){var n=new pj({type:"color",mappingMethod:"linear",dataExtent:[i,o],visual:e.get("color")}),r=n.mapValueToVisual(t.getLayout().value),a=t.getModel().get(["itemStyle","color"]);null!=a?(t.setVisual("color",a),t.setVisual("style",{fill:a})):(t.setVisual("color",r),t.setVisual("style",{fill:r}))}))}r.length&&l["k"](r,(function(e){var t=e.getModel().get("lineStyle");e.setVisual("style",t)}))}))}function gY(e){e.registerChartView(VB),e.registerSeriesModel(UB),e.registerLayout($B),e.registerVisual(mY),e.registerAction({type:"dragNode",event:"dragnode",update:"update"},(function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},(function(t){t.setNodePosition(e.dataIndex,[e.localX,e.localY])}))}))}var vY=function(){function e(){}return e.prototype._hasEncodeRule=function(e){var t=this.getEncode();return t&&null!=t.get(e)},e.prototype.getInitialData=function(e,t){var n,r,i=t.getComponent("xAxis",this.get("xAxisIndex")),o=t.getComponent("yAxis",this.get("yAxisIndex")),a=i.get("type"),s=o.get("type");"category"===a?(e.layout="horizontal",n=i.getOrdinalMeta(),r=!this._hasEncodeRule("x")):"category"===s?(e.layout="vertical",n=o.getOrdinalMeta(),r=!this._hasEncodeRule("y")):e.layout=e.layout||"horizontal";var u=["x","y"],c="horizontal"===e.layout?0:1,d=this._baseAxisDim=u[c],h=u[1-c],f=[i,o],p=f[c].get("type"),m=f[1-c].get("type"),g=e.data;if(g&&r){var v=[];l["k"](g,(function(e,t){var n;l["t"](e)?(n=e.slice(),e.unshift(t)):l["t"](e.value)?(n=l["m"]({},e),n.value=n.value.slice(),e.value.unshift(t)):n=e,v.push(n)})),e.data=v}var y=this.defaultValueDimensions,b=[{name:d,type:Mk(p),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:Mk(m),dimsDef:y.slice()}];return DC(this,{coordDimensions:b,dimensionsCount:y.length+1,encodeDefaulter:l["h"](hd,b,this)})},e.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},e}(),yY=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],n.visualDrawType="stroke",n}return a(t,e),t.type="series.boxplot",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},t}(Sp);Object(l["K"])(yY,vY,!0);var bY=yY,_Y=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.render=function(e,t,n){var r=e.getData(),i=this.group,o=this._data;this._data||i.removeAll();var a="horizontal"===e.get("layout")?1:0;r.diff(o).add((function(e){if(r.hasValue(e)){var t=r.getItemLayout(e),n=kY(t,r,e,a,!0);r.setItemGraphicEl(e,n),i.add(n)}})).update((function(e,t){var n=o.getItemGraphicEl(t);if(r.hasValue(e)){var s=r.getItemLayout(e);n?(Kl(n),MY(s,n,r,e)):n=kY(s,r,e,a),i.add(n),r.setItemGraphicEl(e,n)}else i.remove(n)})).remove((function(e){var t=o.getItemGraphicEl(e);t&&i.remove(t)})).execute(),this._data=r},t.prototype.remove=function(e){var t=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl((function(e){e&&t.remove(e)}))},t.type="boxplot",t}(qg),wY=function(){function e(){}return e}(),xY=function(e){function t(t){var n=e.call(this,t)||this;return n.type="boxplotBoxPath",n}return a(t,e),t.prototype.getDefaultShape=function(){return new wY},t.prototype.buildPath=function(e,t){var n=t.points,r=0;for(e.moveTo(n[r][0],n[r][1]),r++;r<4;r++)e.lineTo(n[r][0],n[r][1]);for(e.closePath();rg){var w=[y,_];r.push(w)}}}return{boxData:n,outliers:r}}var IY={type:"echarts:boxplot",transform:function(e){var t=e.upstream;if(t.sourceFormat!==nd){var n="";0,Ed(n)}var r=EY(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:r.boxData},{data:r.outliers}]}};function jY(e){e.registerSeriesModel(bY),e.registerChartView(CY),e.registerLayout(OY),e.registerTransform(IY)}var PY=["itemStyle","borderColor"],RY=["itemStyle","borderColor0"],NY=["itemStyle","borderColorDoji"],BY=["itemStyle","color"],YY=["itemStyle","color0"];function FY(e,t){return t.get(e>0?BY:YY)}function zY(e,t){return t.get(0===e?NY:e>0?PY:RY)}var HY={seriesType:"candlestick",plan:Op(),performRawSeries:!0,reset:function(e,t){if(!t.isSeriesFiltered(e)){var n=e.pipelineContext.large;return!n&&{progress:function(e,t){var n;while(null!=(n=e.next())){var r=t.getItemModel(n),i=t.getItemLayout(n).sign,o=r.getItemStyle();o.fill=FY(i,r),o.stroke=zY(i,r)||o.fill;var a=t.ensureUniqueItemVisual(n,"style");Object(l["m"])(a,o)}}}}}},VY=HY,WY=["color","borderColor"],UY=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.render=function(e,t,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,t,n){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,t,n,r){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(e,t):this._incrementalRenderNormal(e,t)},t.prototype.eachRendered=function(e){Yg(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;null!=this._isLargeDraw&&t===this._isLargeDraw||(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e){var t=e.getData(),n=this._data,r=this.group,i=t.getLayout("isSimpleBox"),o=e.get("clip",!0),a=e.coordinateSystem,s=a.getArea&&a.getArea();this._data||r.removeAll(),t.diff(n).add((function(n){if(t.hasValue(n)){var a=t.getItemLayout(n);if(o&&XY(s,a))return;var l=qY(a,n,!0);Ul(l,{shape:{points:a.ends}},e,n),KY(l,t,n,i),r.add(l),t.setItemGraphicEl(n,l)}})).update((function(a,l){var u=n.getItemGraphicEl(l);if(t.hasValue(a)){var c=t.getItemLayout(a);o&&XY(s,c)?r.remove(u):(u?(Wl(u,{shape:{points:c.ends}},e,a),Kl(u)):u=qY(c,a),KY(u,t,a,i),r.add(u),t.setItemGraphicEl(a,u))}else r.remove(u)})).remove((function(e){var t=n.getItemGraphicEl(e);t&&r.remove(t)})).execute(),this._data=t},t.prototype._renderLarge=function(e){this._clear(),eF(e,this.group);var t=e.get("clip",!0)?UM(e.coordinateSystem,!1,e):null;t?this.group.setClipPath(t):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(e,t){var n,r=t.getData(),i=r.getLayout("isSimpleBox");while(null!=(n=e.next())){var o=r.getItemLayout(n),a=qY(o,n);KY(a,r,n,i),a.incremental=!0,this.group.add(a),this._progressiveEls.push(a)}},t.prototype._incrementalRenderLarge=function(e,t){eF(t,this.group,this._progressiveEls,!0)},t.prototype.remove=function(e){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t}(qg),$Y=function(){function e(){}return e}(),GY=function(e){function t(t){var n=e.call(this,t)||this;return n.type="normalCandlestickBox",n}return a(t,e),t.prototype.getDefaultShape=function(){return new $Y},t.prototype.buildPath=function(e,t){var n=t.points;this.__simpleBox?(e.moveTo(n[4][0],n[4][1]),e.lineTo(n[6][0],n[6][1])):(e.moveTo(n[0][0],n[0][1]),e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]),e.lineTo(n[3][0],n[3][1]),e.closePath(),e.moveTo(n[4][0],n[4][1]),e.lineTo(n[5][0],n[5][1]),e.moveTo(n[6][0],n[6][1]),e.lineTo(n[7][0],n[7][1]))},t}(Ua);function qY(e,t,n){var r=e.ends;return new GY({shape:{points:n?ZY(r,e):r},z2:100})}function XY(e,t){for(var n=!0,r=0;rm?w[o]:_[o],ends:M,brushRect:L(g,v,u)})}function T(e,n){var r=[];return r[i]=n,r[o]=e,isNaN(n)||isNaN(e)?[NaN,NaN]:t.dataToPoint(r)}function O(e,t,n){var o=t.slice(),a=t.slice();o[i]=kg(o[i]+r/2,1,!1),a[i]=kg(a[i]-r/2,1,!0),n?e.push(o,a):e.push(a,o)}function L(e,t,n){var a=T(e,n),s=T(t,n);return a[i]-=r/2,s[i]-=r/2,{x:a[0],y:a[1],width:o?r:s[0]-a[0],height:o?s[1]-a[1]:r}}function A(e){return e[i]=kg(e[i],1),e}}function m(n,r){var a,l,u=EM(4*n.count),p=0,m=[],g=[],v=r.getStore(),y=!!e.get(["itemStyle","borderColorDoji"]);while(null!=(l=n.next())){var b=v.get(s,l),_=v.get(c,l),w=v.get(d,l),x=v.get(h,l),k=v.get(f,l);isNaN(b)||isNaN(x)||isNaN(k)?(u[p++]=NaN,p+=3):(u[p++]=sF(v,l,_,w,d,y),m[i]=b,m[o]=x,a=t.dataToPoint(m,null,g),u[p++]=a?a[0]:NaN,u[p++]=a?a[1]:NaN,m[o]=k,a=t.dataToPoint(m,null,g),u[p++]=a?a[1]:NaN)}r.setLayout("largePoints",u)}}};function sF(e,t,n,r,i,o){var a;return a=n>r?-1:n0?e.get(i,t-1)<=r?1:-1:1,a}function lF(e,t){var n,r=e.getBaseAxis(),i="category"===r.type?r.getBandWidth():(n=r.getExtent(),Math.abs(n[1]-n[0])/t.count()),o=Br(Object(l["P"])(e.get("barMaxWidth"),i),i),a=Br(Object(l["P"])(e.get("barMinWidth"),1),i),s=e.get("barWidth");return null!=s?Br(s,i):Math.max(Math.min(i/2,o),a)}var uF=aF;function cF(e){e.registerChartView(nF),e.registerSeriesModel(iF),e.registerPreprocessor(oF),e.registerVisual(VY),e.registerLayout(uF)}function dF(e,t){var n=t.rippleEffectColor||t.color;e.eachChild((function(e){e.attr({z:t.z,zlevel:t.zlevel,style:{stroke:"stroke"===t.brushType?n:null,fill:"fill"===t.brushType?n:null}})}))}var hF=function(e){function t(t,n){var r=e.call(this)||this,i=new wM(t,n),o=new kr;return r.add(i),r.add(o),r.updateData(t,n),r}return a(t,e),t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(e){for(var t=e.symbolType,n=e.color,r=e.rippleNumber,i=this.childAt(1),o=0;o0&&(o=this._getLineLength(r)/u*1e3),o!==this._period||a!==this._loop||s!==this._roundTrip){r.stopAnimation();var d=void 0;d=l["w"](c)?c(n):c,r.__t>0&&(d=-o*r.__t),this._animateSymbol(r,o,d,a,s)}this._period=o,this._loop=a,this._roundTrip=s}},t.prototype._animateSymbol=function(e,t,n,r,i){if(t>0){e.__t=0;var o=this,a=e.animate("",r).when(i?2*t:t,{__t:i?2:1}).delay(n).during((function(){o._updateSymbolPosition(e)}));r||a.done((function(){o.remove(e)})),a.start()}},t.prototype._getLineLength=function(e){return w(e.__p1,e.__cp1)+w(e.__cp1,e.__p2)},t.prototype._updateAnimationPoints=function(e,t){e.__p1=t[0],e.__p2=t[1],e.__cp1=t[2]||[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]},t.prototype.updateData=function(e,t,n){this.childAt(0).updateData(e,t,n),this._updateEffectSymbol(e,t)},t.prototype._updateSymbolPosition=function(e){var t=e.__p1,n=e.__p2,r=e.__cp1,i=e.__t<1?e.__t:2-e.__t,o=[e.x,e.y],a=o.slice(),s=Tt,l=Ot;o[0]=s(t[0],r[0],n[0],i),o[1]=s(t[1],r[1],n[1],i);var u=e.__t<1?l(t[0],r[0],n[0],i):l(n[0],r[0],t[0],1-i),c=e.__t<1?l(t[1],r[1],n[1],i):l(n[1],r[1],t[1],1-i);e.rotation=-Math.atan2(c,u)-Math.PI/2,"line"!==this._symbolType&&"rect"!==this._symbolType&&"roundRect"!==this._symbolType||(void 0!==e.__lastT&&e.__lastT=0;o--)if(r[o]<=t)break;o=Math.min(o,i-2)}else{for(o=a;ot)break;o=Math.min(o-1,i-2)}var l=(t-r[o])/(r[o+1]-r[o]),u=n[o],c=n[o+1];e.x=u[0]*(1-l)+l*c[0],e.y=u[1]*(1-l)+l*c[1];var d=e.__t<1?c[0]-u[0]:u[0]-c[0],h=e.__t<1?c[1]-u[1]:u[1]-c[1];e.rotation=-Math.atan2(h,d)-Math.PI/2,this._lastFrame=o,this._lastFramePercent=t,e.ignore=!1}},t}(_F),MF=kF,SF=function(){function e(){this.polyline=!1,this.curveness=0,this.segs=[]}return e}(),CF=function(e){function t(t){var n=e.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return a(t,e),t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new SF},t.prototype.buildPath=function(e,t){var n,r=t.segs,i=t.curveness;if(t.polyline)for(n=this._off;n0){e.moveTo(r[n++],r[n++]);for(var a=1;a0){var d=(s+u)/2-(l-c)*i,h=(l+c)/2-(u-s)*i;e.quadraticCurveTo(d,h,u,c)}else e.lineTo(u,c)}this.incremental&&(this._off=n,this.notClear=!0)},t.prototype.findDataIndex=function(e,t){var n=this.shape,r=n.segs,i=n.curveness,o=this.style.lineWidth;if(n.polyline)for(var a=0,s=0;s0)for(var u=r[s++],c=r[s++],d=1;d0){var p=(u+h)/2-(c-f)*i,m=(c+f)/2-(h-u)*i;if(xa(u,c,p,m,h,f,o,e,t))return a}else if(_a(u,c,h,f,o,e,t))return a;a++}return-1},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect();if(e=n[0],t=n[1],r.contain(e,t)){var i=this.hoverDataIdx=this.findDataIndex(e,t);return i>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var t=this.shape,n=t.segs,r=1/0,i=1/0,o=-1/0,a=-1/0,s=0;s0&&(o.dataIndex=n+e.__startIndex)}))},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),OF=TF,LF={seriesType:"lines",plan:Op(),reset:function(e){var t=e.coordinateSystem;if(t){var n=e.get("polyline"),r=e.pipelineContext.large;return{progress:function(i,o){var a=[];if(r){var s=void 0,l=i.end-i.start;if(n){for(var u=0,c=i.start;c0&&(l||s.configLayer(o,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(a/10+.9,1),0)})),i.updateData(r);var u=e.get("clip",!0)&&UM(e.coordinateSystem,!1,e);u?this.group.setClipPath(u):this.group.removeClipPath(),this._lastZlevel=o,this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,n){var r=e.getData(),i=this._updateLineDraw(r,e);i.incrementalPrepareUpdate(r),this._clearLayer(n),this._finished=!1},t.prototype.incrementalRender=function(e,t,n){this._lineDraw.incrementalUpdate(e,t.getData()),this._finished=e.end===t.getData().count()},t.prototype.eachRendered=function(e){this._lineDraw&&this._lineDraw.eachRendered(e)},t.prototype.updateTransform=function(e,t,n){var r=e.getData(),i=e.pipelineContext;if(!this._finished||i.large||i.progressiveRender)return{update:!0};var o=AF.reset(e,t,n);o.progress&&o.progress({start:0,end:r.count(),count:r.count()},r),this._lineDraw.updateLayout(),this._clearLayer(n)},t.prototype._updateLineDraw=function(e,t){var n=this._lineDraw,r=this._showEffect(t),i=!!t.get("polyline"),o=t.pipelineContext,a=o.large;return n&&r===this._hasEffet&&i===this._isPolyline&&a===this._isLargeDraw||(n&&n.remove(),n=this._lineDraw=a?new OF:new VP(i?r?MF:xF:r?_F:NP),this._hasEffet=r,this._isPolyline=i,this._isLargeDraw=a),this.group.add(n.group),n},t.prototype._showEffect=function(e){return!!e.get(["effect","show"])},t.prototype._clearLayer=function(e){var t=e.getZr(),n="svg"===t.painter.getType();n||null==this._lastZlevel||t.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(e,t){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(t)},t.prototype.dispose=function(e,t){this.remove(e,t)},t.type="lines",t}(qg),EF=DF,IF="undefined"===typeof Uint32Array?Array:Uint32Array,jF="undefined"===typeof Float64Array?Array:Float64Array;function PF(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(e.data=Object(l["H"])(t,(function(e){var t=[e[0].coord,e[1].coord],n={coords:t};return e[0].name&&(n.fromName=e[0].name),e[1].name&&(n.toName=e[1].name),Object(l["J"])([n,e[0],e[1]])})))}var RF=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return a(t,e),t.prototype.init=function(t){t.data=t.data||[],PF(t);var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count)),e.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(t){if(PF(t),t.data){var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count))}e.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(e){var t=this._processFlatCoordsArray(e.data);t.flatCoords&&(this._flatCoords?(this._flatCoords=Object(l["e"])(this._flatCoords,t.flatCoords),this._flatCoordsOffset=Object(l["e"])(this._flatCoordsOffset,t.flatCoordsOffset)):(this._flatCoords=t.flatCoords,this._flatCoordsOffset=t.flatCoordsOffset),e.data=new Float32Array(t.count)),this.getRawData().appendData(e.data)},t.prototype._getCoordsFromItemModel=function(e){var t=this.getData().getItemModel(e),n=t.option instanceof Array?t.option:t.getShallow("coords");return n},t.prototype.getLineCoordsCount=function(e){return this._flatCoordsOffset?this._flatCoordsOffset[2*e+1]:this._getCoordsFromItemModel(e).length},t.prototype.getLineCoords=function(e,t){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[2*e],r=this._flatCoordsOffset[2*e+1],i=0;i ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var e=this.option.progressive;return null==e?this.option.large?1e4:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return null==e?this.option.large?2e4:this.get("progressiveThreshold"):e},t.prototype.getZLevelKey=function(){var e=this.getModel("effect"),t=e.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:e.get("show")&&t>0?t+"":""},t.type="series.lines",t.dependencies=["grid","polar","geo","calendar"],t.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},t}(Sp),NF=RF;function BF(e){return e instanceof Array||(e=[e,e]),e}var YF={seriesType:"lines",reset:function(e){var t=BF(e.get("symbol")),n=BF(e.get("symbolSize")),r=e.getData();function i(e,t){var n=e.getItemModel(t),r=BF(n.getShallow("symbol",!0)),i=BF(n.getShallow("symbolSize",!0));r[0]&&e.setItemVisual(t,"fromSymbol",r[0]),r[1]&&e.setItemVisual(t,"toSymbol",r[1]),i[0]&&e.setItemVisual(t,"fromSymbolSize",i[0]),i[1]&&e.setItemVisual(t,"toSymbolSize",i[1])}return r.setVisual("fromSymbol",t&&t[0]),r.setVisual("toSymbol",t&&t[1]),r.setVisual("fromSymbolSize",n&&n[0]),r.setVisual("toSymbolSize",n&&n[1]),{dataEach:r.hasItemOption?i:null}}},FF=YF;function zF(e){e.registerChartView(EF),e.registerSeriesModel(NF),e.registerLayout(AF),e.registerVisual(FF)}var HF=256,VF=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=Jn["d"].createCanvas();this.canvas=e}return e.prototype.update=function(e,t,n,r,i,o){var a=this._getBrush(),s=this._getGradient(i,"inRange"),l=this._getGradient(i,"outOfRange"),u=this.pointSize+this.blurSize,c=this.canvas,d=c.getContext("2d"),h=e.length;c.width=t,c.height=n;for(var f=0;f0){var T=o(y)?s:l;y>0&&(y=y*S+k),_[w++]=T[C],_[w++]=T[C+1],_[w++]=T[C+2],_[w++]=T[C+3]*y*256}else w+=4}return d.putImageData(b,0,0),c},e.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=Jn["d"].createCanvas()),t=this.pointSize+this.blurSize,n=2*t;e.width=n,e.height=n;var r=e.getContext("2d");return r.clearRect(0,0,n,n),r.shadowOffsetX=n,r.shadowBlur=this.blurSize,r.shadowColor="#000",r.beginPath(),r.arc(-t,t,this.pointSize,0,2*Math.PI,!0),r.closePath(),r.fill(),e},e.prototype._getGradient=function(e,t){for(var n=this._gradientPixels,r=n[t]||(n[t]=new Uint8ClampedArray(1024)),i=[0,0,0,0],o=0,a=0;a<256;a++)e[t](a/255,!0,i),r[o++]=i[0],r[o++]=i[1],r[o++]=i[2],r[o++]=i[3];return r},e}(),WF=VF;function UF(e,t,n){var r=e[1]-e[0];t=l["H"](t,(function(t){return{interval:[(t.interval[0]-e[0])/r,(t.interval[1]-e[0])/r]}}));var i=t.length,o=0;return function(e){var r;for(r=o;r=0;r--){a=t[r].interval;if(a[0]<=e&&e<=a[1]){o=r;break}}return r>=0&&r=t[0]&&e<=t[1]}}function GF(e){var t=e.dimensions;return"lng"===t[0]&&"lat"===t[1]}var qF=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.render=function(e,t,n){var r;t.eachComponent("visualMap",(function(t){t.eachTargetSeries((function(n){n===e&&(r=t)}))})),this._progressiveEls=null,this.group.removeAll();var i=e.coordinateSystem;"cartesian2d"===i.type||"calendar"===i.type?this._renderOnCartesianAndCalendar(e,n,0,e.getData().count()):GF(i)&&this._renderOnGeo(i,e,r,n)},t.prototype.incrementalPrepareRender=function(e,t,n){this.group.removeAll()},t.prototype.incrementalRender=function(e,t,n,r){var i=t.coordinateSystem;i&&(GF(i)?this.render(t,n,r):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(t,r,e.start,e.end,!0)))},t.prototype.eachRendered=function(e){Yg(this._progressiveEls||this.group,e)},t.prototype._renderOnCartesianAndCalendar=function(e,t,n,r,i){var o,a,s,l,u=e.coordinateSystem,c=$M(u,"cartesian2d");if(c){var d=u.getAxis("x"),h=u.getAxis("y");0,o=d.getBandWidth()+.5,a=h.getBandWidth()+.5,s=d.scale.getExtent(),l=h.scale.getExtent()}for(var f=this.group,p=e.getData(),m=e.getModel(["emphasis","itemStyle"]).getItemStyle(),g=e.getModel(["blur","itemStyle"]).getItemStyle(),v=e.getModel(["select","itemStyle"]).getItemStyle(),y=e.get(["itemStyle","borderRadius"]),b=nu(e),_=e.getModel("emphasis"),w=_.get("focus"),x=_.get("blurScope"),k=_.get("disabled"),M=c?[p.mapDimension("x"),p.mapDimension("y"),p.mapDimension("value")]:[p.mapDimension("time"),p.mapDimension("value")],S=n;Ss[1]||Ll[1])continue;var A=u.dataToPoint([O,L]);C=new ls({shape:{x:A[0]-o/2,y:A[1]-a/2,width:o,height:a},style:T})}else{if(isNaN(p.get(M[1],S)))continue;C=new ls({z2:1,shape:u.dataToRect([p.get(M[0],S)]).contentShape,style:T})}if(p.hasItemOption){var D=p.getItemModel(S),E=D.getModel("emphasis");m=E.getModel("itemStyle").getItemStyle(),g=D.getModel(["blur","itemStyle"]).getItemStyle(),v=D.getModel(["select","itemStyle"]).getItemStyle(),y=D.get(["itemStyle","borderRadius"]),w=E.get("focus"),x=E.get("blurScope"),k=E.get("disabled"),b=nu(D)}C.shape.r=y;var I=e.getRawValue(S),j="-";I&&null!=I[2]&&(j=I[2]+""),tu(C,b,{labelFetcher:e,labelDataIndex:S,defaultOpacity:T.opacity,defaultText:j}),C.ensureState("emphasis").style=m,C.ensureState("blur").style=g,C.ensureState("select").style=v,Ll(C,w,x,k),C.incremental=i,i&&(C.states.emphasis.hoverLayer=!0),f.add(C),p.setItemGraphicEl(S,C),this._progressiveEls&&this._progressiveEls.push(C)}},t.prototype._renderOnGeo=function(e,t,n,r){var i=n.targetVisuals.inRange,o=n.targetVisuals.outOfRange,a=t.getData(),s=this._hmLayer||this._hmLayer||new WF;s.blurSize=t.get("blurSize"),s.pointSize=t.get("pointSize"),s.minOpacity=t.get("minOpacity"),s.maxOpacity=t.get("maxOpacity");var l=e.getViewRect().clone(),u=e.getRoamTransform();l.applyTransform(u);var c=Math.max(l.x,0),d=Math.max(l.y,0),h=Math.min(l.width+l.x,r.getWidth()),f=Math.min(l.height+l.y,r.getHeight()),p=h-c,m=f-d,g=[a.mapDimension("lng"),a.mapDimension("lat"),a.mapDimension("value")],v=a.mapArray(g,(function(t,n,r){var i=e.dataToPoint([t,n]);return i[0]-=c,i[1]-=d,i.push(r),i})),y=n.getExtent(),b="visualMap.continuous"===n.type?$F(y,n.option.range):UF(y,n.getPieceList(),n.option.selected);s.update(v,p,m,i.color.getNormalizer(),{inRange:i.color.getColorMapper(),outOfRange:o.color.getColorMapper()},b);var _=new Qa({style:{width:p,height:m,x:c,y:d,image:s.canvas},silent:!0});this.group.add(_)},t.type="heatmap",t}(qg),XF=qF,KF=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.getInitialData=function(e,t){return pM(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var e=Gd.get(this.get("coordinateSystem"));if(e&&e.dimensions)return"lng"===e.dimensions[0]&&"lat"===e.dimensions[1]},t.type="series.heatmap",t.dependencies=["grid","geo","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},t}(Sp),ZF=KF;function JF(e){e.registerChartView(XF),e.registerSeriesModel(ZF)}var QF=["itemStyle","borderWidth"],ez=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],tz=new em,nz=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.render=function(e,t,n){var r=this.group,i=e.getData(),o=this._data,a=e.coordinateSystem,s=a.getBaseAxis(),l=s.isHorizontal(),u=a.master.getRect(),c={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:e,coordSys:a,coordSysExtent:[[u.x,u.x+u.width],[u.y,u.y+u.height]],isHorizontal:l,valueDim:ez[+l],categoryDim:ez[1-+l]};i.diff(o).add((function(e){if(i.hasValue(e)){var t=pz(i,e),n=rz(i,e,t,c),o=vz(i,c,n);i.setItemGraphicEl(e,o),r.add(o),kz(o,c,n)}})).update((function(e,t){var n=o.getItemGraphicEl(t);if(i.hasValue(e)){var a=pz(i,e),s=rz(i,e,a,c),l=_z(i,s);n&&l!==n.__pictorialShapeStr&&(r.remove(n),i.setItemGraphicEl(e,null),n=null),n?yz(n,c,s):n=vz(i,c,s,!0),i.setItemGraphicEl(e,n),n.__pictorialSymbolMeta=s,r.add(n),kz(n,c,s)}else r.remove(n)})).remove((function(e){var t=o.getItemGraphicEl(e);t&&bz(o,e,t.__pictorialSymbolMeta.animationModel,t)})).execute();var d=e.get("clip",!0)?UM(e.coordinateSystem,!1,e):null;return d?r.setClipPath(d):r.removeClipPath(),this._data=i,this.group},t.prototype.remove=function(e,t){var n=this.group,r=this._data;e.get("animation")?r&&r.eachItemGraphicEl((function(t){bz(r,Ts(t).dataIndex,e,t)})):n.removeAll()},t.type="pictorialBar",t}(qg);function rz(e,t,n,r){var i=e.getItemLayout(t),o=n.get("symbolRepeat"),a=n.get("symbolClip"),s=n.get("symbolPosition")||"start",l=n.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=n.get("symbolPatternSize")||2,d=n.isAnimationEnabled(),h={dataIndex:t,layout:i,itemModel:n,symbolType:e.getItemVisual(t,"symbol")||"circle",style:e.getItemVisual(t,"style"),symbolClip:a,symbolRepeat:o,symbolRepeatDirection:n.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:d?n:null,hoverScale:d&&n.get(["emphasis","scale"]),z2:n.getShallow("z",!0)||0};iz(n,o,i,r,h),az(e,t,i,o,a,h.boundingLength,h.pxSign,c,r,h),sz(n,h.symbolScale,u,r,h);var f=h.symbolSize,p=uy(n.get("symbolOffset"),f);return lz(n,f,i,o,a,p,s,h.valueLineWidth,h.boundingLength,h.repeatCutLength,r,h),h}function iz(e,t,n,r,i){var o,a=r.valueDim,s=e.get("symbolBoundingData"),u=r.coordSys.getOtherAxis(r.coordSys.getBaseAxis()),c=u.toGlobalCoord(u.dataToCoord(0)),d=1-+(n[a.wh]<=0);if(l["t"](s)){var h=[oz(u,s[0])-c,oz(u,s[1])-c];h[1]=0?1:-1:o>0?1:-1}function oz(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function az(e,t,n,r,i,o,a,s,u,c){var d,h=u.valueDim,f=u.categoryDim,p=Math.abs(n[f.wh]),m=e.getItemVisual(t,"symbolSize");d=l["t"](m)?m.slice():null==m?["100%","100%"]:[m,m],d[f.index]=Br(d[f.index],p),d[h.index]=Br(d[h.index],r?p:Math.abs(o)),c.symbolSize=d;var g=c.symbolScale=[d[0]/s,d[1]/s];g[h.index]*=(u.isHorizontal?-1:1)*a}function sz(e,t,n,r,i){var o=e.get(QF)||0;o&&(tz.attr({scaleX:t[0],scaleY:t[1],rotation:n}),tz.updateTransform(),o/=tz.getLineScale(),o*=t[r.valueDim.index]),i.valueLineWidth=o||0}function lz(e,t,n,r,i,o,a,s,u,c,d,h){var f=d.categoryDim,p=d.valueDim,m=h.pxSign,g=Math.max(t[p.index]+s,0),v=g;if(r){var y=Math.abs(u),b=l["O"](e.get("symbolMargin"),"15%")+"",_=!1;b.lastIndexOf("!")===b.length-1&&(_=!0,b=b.slice(0,b.length-1));var w=Br(b,t[p.index]),x=Math.max(g+2*w,0),k=_?0:2*w,M=ri(r),S=M?r:Mz((y+k)/x),C=y-S*g;w=C/2/(_?S:Math.max(S-1,1)),x=g+2*w,k=_?0:2*w,M||"fixed"===r||(S=c?Mz((Math.abs(c)+k)/x):0),v=S*x-k,h.repeatTimes=S,h.symbolMargin=w}var T=m*(v/2),O=h.pathPosition=[];O[f.index]=n[f.wh]/2,O[p.index]="start"===a?T:"end"===a?u-T:u/2,o&&(O[0]+=o[0],O[1]+=o[1]);var L=h.bundlePosition=[];L[f.index]=n[f.xy],L[p.index]=n[p.xy];var A=h.barRectShape=l["m"]({},n);A[p.wh]=m*Math.max(Math.abs(n[p.wh]),Math.abs(O[p.index]+T)),A[f.wh]=n[f.wh];var D=h.clipShape={};D[f.xy]=-n[f.xy],D[f.wh]=d.ecSize[f.wh],D[p.xy]=0,D[p.wh]=n[p.wh]}function uz(e){var t=e.symbolPatternSize,n=sy(e.symbolType,-t/2,-t/2,t,t);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function cz(e,t,n,r){var i=e.__pictorialBundle,o=n.symbolSize,a=n.valueLineWidth,s=n.pathPosition,l=t.valueDim,u=n.repeatTimes||0,c=0,d=o[t.valueDim.index]+a+2*n.symbolMargin;for(wz(e,(function(e){e.__pictorialAnimationIndex=c,e.__pictorialRepeatTimes=u,c0:r<0)&&(i=u-1-e),t[l.index]=d*(i-u/2+.5)+s[l.index],{x:t[0],y:t[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function dz(e,t,n,r){var i=e.__pictorialBundle,o=e.__pictorialMainPath;o?xz(o,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,r):(o=e.__pictorialMainPath=uz(n),i.add(o),xz(o,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:0,scaleY:0,rotation:n.rotation},{scaleX:n.symbolScale[0],scaleY:n.symbolScale[1]},n,r))}function hz(e,t,n){var r=l["m"]({},t.barRectShape),i=e.__pictorialBarRect;i?xz(i,null,{shape:r},t,n):(i=e.__pictorialBarRect=new ls({z2:2,shape:r,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),i.disableMorphing=!0,e.add(i))}function fz(e,t,n,i){if(n.symbolClip){var o=e.__pictorialClipPath,a=l["m"]({},n.clipShape),s=t.valueDim,u=n.animationModel,c=n.dataIndex;if(o)Wl(o,{shape:a},u,c);else{a[s.wh]=0,o=new ls({shape:a}),e.__pictorialBundle.setClipPath(o),e.__pictorialClipPath=o;var d={};d[s.wh]=n.clipShape[s.wh],r[i?"updateProps":"initProps"](o,{shape:d},u,c)}}}function pz(e,t){var n=e.getItemModel(t);return n.getAnimationDelayParams=mz,n.isAnimationEnabled=gz,n}function mz(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function gz(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function vz(e,t,n,r){var i=new kr,o=new kr;return i.add(o),i.__pictorialBundle=o,o.x=n.bundlePosition[0],o.y=n.bundlePosition[1],n.symbolRepeat?cz(i,t,n):dz(i,t,n),hz(i,n,r),fz(i,t,n,r),i.__pictorialShapeStr=_z(e,n),i.__pictorialSymbolMeta=n,i}function yz(e,t,n){var r=n.animationModel,i=n.dataIndex,o=e.__pictorialBundle;Wl(o,{x:n.bundlePosition[0],y:n.bundlePosition[1]},r,i),n.symbolRepeat?cz(e,t,n,!0):dz(e,t,n,!0),hz(e,n,!0),fz(e,t,n,!0)}function bz(e,t,n,r){var i=r.__pictorialBarRect;i&&i.removeTextContent();var o=[];wz(r,(function(e){o.push(e)})),r.__pictorialMainPath&&o.push(r.__pictorialMainPath),r.__pictorialClipPath&&(n=null),l["k"](o,(function(e){Gl(e,{scaleX:0,scaleY:0},n,t,(function(){r.parent&&r.parent.remove(r)}))})),e.setItemGraphicEl(t,null)}function _z(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function wz(e,t,n){l["k"](e.__pictorialBundle.children(),(function(r){r!==e.__pictorialBarRect&&t.call(n,r)}))}function xz(e,t,n,i,o,a){t&&e.attr(t),i.symbolClip&&!o?n&&e.attr(n):n&&r[o?"updateProps":"initProps"](e,n,i.animationModel,i.dataIndex,a)}function kz(e,t,n){var r=n.dataIndex,i=n.itemModel,o=i.getModel("emphasis"),a=o.getModel("itemStyle").getItemStyle(),s=i.getModel(["blur","itemStyle"]).getItemStyle(),u=i.getModel(["select","itemStyle"]).getItemStyle(),c=i.getShallow("cursor"),d=o.get("focus"),h=o.get("blurScope"),f=o.get("scale");wz(e,(function(e){if(e instanceof Qa){var t=e.style;e.useStyle(l["m"]({image:t.image,x:t.x,y:t.y,width:t.width,height:t.height},n.style))}else e.useStyle(n.style);var r=e.ensureState("emphasis");r.style=a,f&&(r.scaleX=1.1*e.scaleX,r.scaleY=1.1*e.scaleY),e.ensureState("blur").style=s,e.ensureState("select").style=u,c&&(e.cursor=c),e.z2=n.z2}));var p=t.valueDim.posDesc[+(n.boundingLength>0)],m=e.__pictorialBarRect;m.ignoreClip=!0,tu(m,nu(i),{labelFetcher:t.seriesModel,labelDataIndex:r,defaultText:vM(t.seriesModel.getData(),r),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:p}),Ll(e,d,h,o.get("disabled"))}function Mz(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}var Sz=nz,Cz=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n.defaultSymbol="roundRect",n}return a(t,e),t.prototype.getInitialData=function(t){return t.stack=null,e.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=Eu(ES.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),t}(ES),Tz=Cz;function Oz(e){e.registerChartView(Sz),e.registerSeriesModel(Tz),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Object(l["h"])(CS,"pictorialBar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,TS("pictorialBar"))}var Lz=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._layers=[],n}return a(t,e),t.prototype.render=function(e,t,n){var r=e.getData(),i=this,o=this.group,a=e.getLayerSeries(),s=r.getLayout("layoutInfo"),u=s.rect,c=s.boundaryGap;function d(e){return e.name}o.x=0,o.y=u.y+c[0];var h=new _k(this._layersSeries||[],a,d,d),f=[];function p(t,n,s){var l=i._layers;if("remove"!==t){for(var u,c,d=[],h=[],p=a[n].indices,m=0;mo&&(o=s),r.push(s)}for(var u=0;uo&&(o=d)}return{y0:i,max:o}}function Bz(e){e.registerChartView(Dz),e.registerSeriesModel(jz),e.registerLayout(Pz),e.registerProcessor(wC("themeRiver"))}var Yz=2,Fz=4,zz=function(e){function t(t,n,r,i){var o=e.call(this)||this;o.z2=Yz,o.textConfig={inside:!0},Ts(o).seriesIndex=n.seriesIndex;var a=new Cs({z2:Fz,silent:t.getModel().get(["label","silent"])});return o.setTextContent(a),o.updateData(!0,t,n,r,i),o}return a(t,e),t.prototype.updateData=function(e,t,n,r,i){this.node=t,t.piece=this,n=n||this._seriesModel,r=r||this._ecModel;var o=this;Ts(o).dataIndex=t.dataIndex;var a=t.getModel(),s=a.getModel("emphasis"),u=t.getLayout(),c=l["m"]({},u);c.label=null;var d=t.getVisual("style");d.lineJoin="bevel";var h=t.getVisual("decal");h&&(d.decal=Ky(h,i));var f=HS(a.getModel("itemStyle"),c,!0);l["m"](c,f),l["k"](Rs,(function(e){var t=o.ensureState(e),n=a.getModel([e,"itemStyle"]);t.style=n.getItemStyle();var r=HS(n,c);r&&(t.shape=r)})),e?(o.setShape(c),o.shape.r=u.r0,Ul(o,{shape:{r:u.r}},n,t.dataIndex)):(Wl(o,{shape:c},n),Kl(o)),o.useStyle(d),this._updateLabel(n);var p=a.getShallow("cursor");p&&o.attr("cursor",p),this._seriesModel=n||this._seriesModel,this._ecModel=r||this._ecModel;var m=s.get("focus"),g="relative"===m?l["e"](t.getAncestorsIndices(),t.getDescendantIndices()):"ancestor"===m?t.getAncestorsIndices():"descendant"===m?t.getDescendantIndices():m;Ll(this,g,s.get("blurScope"),s.get("disabled"))},t.prototype._updateLabel=function(e){var t=this,n=this.node.getModel(),r=n.getModel("label"),i=this.node.getLayout(),o=i.endAngle-i.startAngle,a=(i.startAngle+i.endAngle)/2,s=Math.cos(a),u=Math.sin(a),c=this,d=c.getTextContent(),h=this.node.dataIndex,f=r.get("minAngle")/180*Math.PI,p=r.get("show")&&!(null!=f&&Math.abs(o)C&&!qr(O-C)&&O0?(i.virtualPiece?i.virtualPiece.updateData(!1,r,e,t,n):(i.virtualPiece=new Hz(r,e,t,n),u.add(i.virtualPiece)),o.piece.off("click"),i.virtualPiece.on("click",(function(e){i._rootToNode(o.parentNode)}))):i.virtualPiece&&(u.remove(i.virtualPiece),i.virtualPiece=null)}f(d,h),g(a,s),this._initEvents(),this._oldChildren=d},t.prototype._initEvents=function(){var e=this;this.group.off("click"),this.group.on("click",(function(t){var n=!1,r=e.seriesModel.getViewRoot();r.eachNode((function(r){if(!n&&r.piece&&r.piece===t.target){var i=r.getModel().get("nodeClick");if("rootToNode"===i)e._rootToNode(r);else if("link"===i){var o=r.getModel(),a=o.get("link");if(a){var s=o.get("target",!0)||"_blank";Ic(a,s)}}n=!0}}))}))},t.prototype._rootToNode=function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:Vz,from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},t.prototype.containPoint=function(e,t){var n=t.getData(),r=n.getItemLayout(0);if(r){var i=e[0]-r.cx,o=e[1]-r.cy,a=Math.sqrt(i*i+o*o);return a<=r.r&&a>=r.r0}},t.type="sunburst",t}(qg),qz=Gz,Xz=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreStyleOnData=!0,n}return a(t,e),t.prototype.getInitialData=function(e,t){var n={name:e.name,children:e.data};Kz(n);var r=this._levelModels=l["H"](e.levels||[],(function(e){return new Tu(e,this,t)}),this),i=oI.createTree(n,this,o);function o(e){e.wrapMethod("getItemModel",(function(e,t){var n=i.getNodeByDataIndex(t),o=r[n.depth];return o&&(e.parentModel=o),e}))}return i.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(t);return n.treePathInfo=uI(r,this),n},t.prototype.getLevelModel=function(e){return this._levelModels&&this._levelModels[e.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;e&&(e===t||t.contains(e))||(this._viewRoot=t)},t.prototype.enableAriaDecal=function(){wI(this)},t.type="series.sunburst",t.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},t}(Sp);function Kz(e){var t=0;l["k"](e.children,(function(e){Kz(e);var n=e.value;l["t"](n)&&(n=n[0]),t+=n}));var n=e.value;l["t"](n)&&(n=n[0]),(null==n||isNaN(n))&&(n=t),n<0&&(n=0),l["t"](e.value)?e.value[0]=n:e.value=n}var Zz=Xz,Jz=Math.PI/180;function Qz(e,t,n){t.eachSeriesByType(e,(function(e){var t=e.get("center"),r=e.get("radius");l["t"](r)||(r=[0,r]),l["t"](t)||(t=[t,t]);var i=n.getWidth(),o=n.getHeight(),a=Math.min(i,o),s=Br(t[0],i),u=Br(t[1],o),c=Br(r[0],a/2),d=Br(r[1],a/2),h=-e.get("startAngle")*Jz,f=e.get("minAngle")*Jz,p=e.getData().tree.root,m=e.getViewRoot(),g=m.depth,v=e.get("sort");null!=v&&eH(m,v);var y=0;l["k"](m.children,(function(e){!isNaN(e.getValue())&&y++}));var b=m.getValue(),_=Math.PI/(b||y)*2,w=m.depth>0,x=m.height-(w?-1:1),k=(d-c)/(x||1),M=e.get("clockwise"),S=e.get("stillShowZeroSum"),C=M?1:-1,T=function(t,n){if(t){var r=n;if(t!==p){var i=t.getValue(),o=0===b&&S?_:i*_;o1)i=i.parentNode;var o=n.getColorFromPalette(i.name||i.dataIndex+"",t);return e.depth>1&&Object(l["C"])(o)&&(o=Object(Bt["c"])(o,(e.depth-1)/(r-1)*.5)),o}e.eachSeriesByType("sunburst",(function(e){var t=e.getData(),r=t.tree;r.eachNode((function(i){var o=i.getModel(),a=o.getModel("itemStyle").getItemStyle();a.fill||(a.fill=n(i,e,r.root.height));var s=t.ensureUniqueItemVisual(i.dataIndex,"style");Object(l["m"])(s,a)}))}))}function rH(e){e.registerChartView(qz),e.registerSeriesModel(Zz),e.registerLayout(Object(l["h"])(Qz,"sunburst")),e.registerProcessor(Object(l["h"])(wC,"sunburst")),e.registerVisual(nH),$z(e)}var iH={color:"fill",borderColor:"stroke"},oH={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},aH=Ei(),sH=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(e,t){return pM(null,this)},t.prototype.getDataParams=function(t,n,r){var i=e.prototype.getDataParams.call(this,t,n);return r&&(i.info=aH(r).info),i},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t}(Sp),lH=sH;function uH(e,t){return t=t||[0,0],l["H"](["x","y"],(function(n,r){var i=this.getAxis(n),o=t[r],a=e[r]/2;return"category"===i.type?i.getBandWidth():Math.abs(i.dataToCoord(o-a)-i.dataToCoord(o+a))}),this)}function cH(e){var t=e.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:l["c"](uH,e)}}}function dH(e,t){return t=t||[0,0],l["H"]([0,1],(function(n){var r=t[n],i=e[n]/2,o=[],a=[];return o[n]=r-i,a[n]=r+i,o[1-n]=a[1-n]=t[1-n],Math.abs(this.dataToPoint(o)[n]-this.dataToPoint(a)[n])}),this)}function hH(e){var t=e.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:e.getZoom()},api:{coord:function(t){return e.dataToPoint(t)},size:l["c"](dH,e)}}}function fH(e,t){var n=this.getAxis(),r=t instanceof Array?t[0]:t,i=(e instanceof Array?e[0]:e)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(r-i)-n.dataToCoord(r+i))}function pH(e){var t=e.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:Object(l["c"])(fH,e)}}}function mH(e,t){return t=t||[0,0],l["H"](["Radius","Angle"],(function(n,r){var i="get"+n+"Axis",o=this[i](),a=t[r],s=e[r]/2,l="category"===o.type?o.getBandWidth():Math.abs(o.dataToCoord(a-s)-o.dataToCoord(a+s));return"Angle"===n&&(l=l*Math.PI/180),l}),this)}function gH(e){var t=e.getRadiusAxis(),n=e.getAngleAxis(),r=t.getExtent();return r[0]>r[1]&&r.reverse(),{coordSys:{type:"polar",cx:e.cx,cy:e.cy,r:r[1],r0:r[0]},api:{coord:function(r){var i=t.dataToRadius(r[0]),o=n.dataToAngle(r[1]),a=e.coordToPoint([i,o]);return a.push(i,o*Math.PI/180),a},size:l["c"](mH,e)}}}function vH(e){var t=e.getRect(),n=e.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:e.getCellWidth(),cellHeight:e.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(t,n){return e.dataToPoint(t,n)}}}}function yH(e,t,n,r){return e&&(e.legacy||!1!==e.legacy&&!n&&!r&&"tspan"!==t&&("text"===t||Object(l["q"])(e,"text")))}function bH(e,t,n){var r,i,o,a=e;if("text"===t)o=a;else{o={},Object(l["q"])(a,"text")&&(o.text=a.text),Object(l["q"])(a,"rich")&&(o.rich=a.rich),Object(l["q"])(a,"textFill")&&(o.fill=a.textFill),Object(l["q"])(a,"textStroke")&&(o.stroke=a.textStroke),Object(l["q"])(a,"fontFamily")&&(o.fontFamily=a.fontFamily),Object(l["q"])(a,"fontSize")&&(o.fontSize=a.fontSize),Object(l["q"])(a,"fontStyle")&&(o.fontStyle=a.fontStyle),Object(l["q"])(a,"fontWeight")&&(o.fontWeight=a.fontWeight),i={type:"text",style:o,silent:!0},r={};var s=Object(l["q"])(a,"textPosition");n?r.position=s?a.textPosition:"inside":s&&(r.position=a.textPosition),Object(l["q"])(a,"textPosition")&&(r.position=a.textPosition),Object(l["q"])(a,"textOffset")&&(r.offset=a.textOffset),Object(l["q"])(a,"textRotation")&&(r.rotation=a.textRotation),Object(l["q"])(a,"textDistance")&&(r.distance=a.textDistance)}return _H(o,e),Object(l["k"])(o.rich,(function(e){_H(e,e)})),{textConfig:r,textContent:i}}function _H(e,t){t&&(t.font=t.textFont||t.font,Object(l["q"])(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),Object(l["q"])(t,"textAlign")&&(e.align=t.textAlign),Object(l["q"])(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),Object(l["q"])(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),Object(l["q"])(t,"textWidth")&&(e.width=t.textWidth),Object(l["q"])(t,"textHeight")&&(e.height=t.textHeight),Object(l["q"])(t,"textBackgroundColor")&&(e.backgroundColor=t.textBackgroundColor),Object(l["q"])(t,"textPadding")&&(e.padding=t.textPadding),Object(l["q"])(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),Object(l["q"])(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),Object(l["q"])(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),Object(l["q"])(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),Object(l["q"])(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),Object(l["q"])(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),Object(l["q"])(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function wH(e,t,n){var r=e;r.textPosition=r.textPosition||n.position||"inside",null!=n.offset&&(r.textOffset=n.offset),null!=n.rotation&&(r.textRotation=n.rotation),null!=n.distance&&(r.textDistance=n.distance);var i=r.textPosition.indexOf("inside")>=0,o=e.fill||"#000";xH(r,t);var a=null==r.textFill;return i?a&&(r.textFill=n.insideFill||"#fff",!r.textStroke&&n.insideStroke&&(r.textStroke=n.insideStroke),!r.textStroke&&(r.textStroke=o),null==r.textStrokeWidth&&(r.textStrokeWidth=2)):(a&&(r.textFill=e.fill||n.outsideFill||"#000"),!r.textStroke&&n.outsideStroke&&(r.textStroke=n.outsideStroke)),r.text=t.text,r.rich=t.rich,Object(l["k"])(t.rich,(function(e){xH(e,e)})),r}function xH(e,t){t&&(Object(l["q"])(t,"fill")&&(e.textFill=t.fill),Object(l["q"])(t,"stroke")&&(e.textStroke=t.fill),Object(l["q"])(t,"lineWidth")&&(e.textStrokeWidth=t.lineWidth),Object(l["q"])(t,"font")&&(e.font=t.font),Object(l["q"])(t,"fontStyle")&&(e.fontStyle=t.fontStyle),Object(l["q"])(t,"fontWeight")&&(e.fontWeight=t.fontWeight),Object(l["q"])(t,"fontSize")&&(e.fontSize=t.fontSize),Object(l["q"])(t,"fontFamily")&&(e.fontFamily=t.fontFamily),Object(l["q"])(t,"align")&&(e.textAlign=t.align),Object(l["q"])(t,"verticalAlign")&&(e.textVerticalAlign=t.verticalAlign),Object(l["q"])(t,"lineHeight")&&(e.textLineHeight=t.lineHeight),Object(l["q"])(t,"width")&&(e.textWidth=t.width),Object(l["q"])(t,"height")&&(e.textHeight=t.height),Object(l["q"])(t,"backgroundColor")&&(e.textBackgroundColor=t.backgroundColor),Object(l["q"])(t,"padding")&&(e.textPadding=t.padding),Object(l["q"])(t,"borderColor")&&(e.textBorderColor=t.borderColor),Object(l["q"])(t,"borderWidth")&&(e.textBorderWidth=t.borderWidth),Object(l["q"])(t,"borderRadius")&&(e.textBorderRadius=t.borderRadius),Object(l["q"])(t,"shadowColor")&&(e.textBoxShadowColor=t.shadowColor),Object(l["q"])(t,"shadowBlur")&&(e.textBoxShadowBlur=t.shadowBlur),Object(l["q"])(t,"shadowOffsetX")&&(e.textBoxShadowOffsetX=t.shadowOffsetX),Object(l["q"])(t,"shadowOffsetY")&&(e.textBoxShadowOffsetY=t.shadowOffsetY),Object(l["q"])(t,"textShadowColor")&&(e.textShadowColor=t.textShadowColor),Object(l["q"])(t,"textShadowBlur")&&(e.textShadowBlur=t.textShadowBlur),Object(l["q"])(t,"textShadowOffsetX")&&(e.textShadowOffsetX=t.textShadowOffsetX),Object(l["q"])(t,"textShadowOffsetY")&&(e.textShadowOffsetY=t.textShadowOffsetY))}var kH={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},MH=Object(l["F"])(kH),SH=(Object(l["N"])(qn,(function(e,t){return e[t]=1,e}),{}),qn.join(", "),["","style","shape","extra"]),CH=Ei();function TH(e,t,n,r,i){var o=e+"Animation",a=Hl(e,r,i)||{},s=CH(t).userDuring;return a.duration>0&&(a.during=s?Object(l["c"])(NH,{el:t,userDuring:s}):null,a.setToFinal=!0,a.scope=e),Object(l["m"])(a,n[o]),a}function OH(e,t,n,r){r=r||{};var i=r.dataIndex,o=r.isInit,a=r.clearStyle,s=n.isAnimationEnabled(),u=CH(e),c=t.style;u.userDuring=t.during;var d={},h={};if(zH(e,t,h),YH("shape",t,h),YH("extra",t,h),!o&&s&&(FH(e,t,d),BH("shape",e,t,d),BH("extra",e,t,d),HH(e,t,c,d)),h.style=c,EH(e,h,a),jH(e,t),s)if(o){var f={};Object(l["k"])(SH,(function(e){var n=e?t[e]:t;n&&n.enterFrom&&(e&&(f[e]=f[e]||{}),Object(l["m"])(e?f[e]:f,n.enterFrom))}));var p=TH("enter",e,t,n,i);p.duration>0&&e.animateFrom(f,p)}else IH(e,t,i||0,n,d);LH(e,t),c?e.dirty():e.markRedraw()}function LH(e,t){for(var n=CH(e).leaveToProps,r=0;r0&&e.animateFrom(i,o)}}function jH(e,t){Object(l["q"])(t,"silent")&&(e.silent=t.silent),Object(l["q"])(t,"ignore")&&(e.ignore=t.ignore),e instanceof Bo&&Object(l["q"])(t,"invisible")&&(e.invisible=t.invisible),e instanceof Ua&&Object(l["q"])(t,"autoBatch")&&(e.autoBatch=t.autoBatch)}var PH={},RH={setTransform:function(e,t){return PH.el[e]=t,this},getTransform:function(e){return PH.el[e]},setShape:function(e,t){var n=PH.el,r=n.shape||(n.shape={});return r[e]=t,n.dirtyShape&&n.dirtyShape(),this},getShape:function(e){var t=PH.el.shape;if(t)return t[e]},setStyle:function(e,t){var n=PH.el,r=n.style;return r&&(r[e]=t,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(e){var t=PH.el.style;if(t)return t[e]},setExtra:function(e,t){var n=PH.el.extra||(PH.el.extra={});return n[e]=t,this},getExtra:function(e){var t=PH.el.extra;if(t)return t[e]}};function NH(){var e=this,t=e.el;if(t){var n=CH(t).userDuring,r=e.userDuring;n===r?(PH.el=t,r(RH)):e.el=e.userDuring=null}}function BH(e,t,n,r){var i=n[e];if(i){var o,a=t[e];if(a){var s=n.transition,u=i.transition;if(u)if(!o&&(o=r[e]={}),DH(u))Object(l["m"])(o,a);else for(var c=ci(u),d=0;d=0){!o&&(o=r[e]={});var p=Object(l["F"])(a);for(d=0;d=0)){var f=e.getAnimationStyleProps(),p=f?f.style:null;if(p){!i&&(i=r.style={});var m=Object(l["F"])(n);for(c=0;c=0?t.getStore().get(i,n):void 0}var o=t.get(r.name,n),a=r&&r.ordinalMeta;return a?a.categories[o]:o}function k(n,r){null==r&&(r=s);var i=t.getItemVisual(r,"style"),o=i&&i.fill,a=i&&i.opacity,u=b(r,XH).getItemStyle();null!=o&&(u.fill=o),null!=a&&(u.opacity=a);var c={inheritColor:Object(l["C"])(o)?o:"#000"},d=_(r,XH),h=ru(d,null,c,!1,!0);h.text=d.getShallow("show")?Object(l["P"])(e.getFormattedLabel(r,XH),vM(t,r)):null;var f=iu(d,c,!1);return C(n,u),u=wH(u,h,f),n&&S(u,n),u.legacy=!0,u}function M(n,r){null==r&&(r=s);var i=b(r,qH).getItemStyle(),o=_(r,qH),a=ru(o,null,null,!0,!0);a.text=o.getShallow("show")?Object(l["Q"])(e.getFormattedLabel(r,qH),e.getFormattedLabel(r,XH),vM(t,r)):null;var u=iu(o,null,!0);return C(n,i),i=wH(i,a,u),n&&S(i,n),i.legacy=!0,i}function S(e,t){for(var n in t)Object(l["q"])(t,n)&&(e[n]=t[n])}function C(e,t){e&&(e.textFill&&(t.textFill=e.textFill),e.textPosition&&(t.textPosition=e.textPosition))}function T(e,n){if(null==n&&(n=s),Object(l["q"])(iH,e)){var r=t.getItemVisual(n,"style");return r?r[iH[e]]:null}if(Object(l["q"])(oH,e))return t.getItemVisual(n,e)}function O(e){if("cartesian2d"===o.type){var t=o.getBaseAxis();return _S(Object(l["i"])({axis:t},e))}}function L(){return n.getCurrentSeriesIndices()}function A(e){return du(e,n)}}function gV(e){var t={};return Object(l["k"])(e.dimensions,(function(n){var r=e.getDimensionInfo(n);if(!r.isExtraCoord){var i=r.coordDim,o=t[i]=t[i]||[];o[r.coordDimIndex]=e.getDimensionIndex(n)}})),t}function vV(e,t,n,r,i,o,a){if(r){var s=yV(e,t,n,r,i,o);return s&&a.setItemGraphicEl(n,s),s&&Ll(s,r.focus,r.blurScope,r.emphasisDisabled),s}o.remove(t)}function yV(e,t,n,r,i,o){var a=-1,s=t;t&&bV(t,r,i)&&(a=Object(l["r"])(o.childrenRef(),t),t=null);var u=!t,c=t;c?c.clearStates():(c=cV(r),s&&sV(s,c)),!1===r.morph?c.disableMorphing=!0:c.disableMorphing&&(c.disableMorphing=!1),rV.normal.cfg=rV.normal.conOpt=rV.emphasis.cfg=rV.emphasis.conOpt=rV.blur.cfg=rV.blur.conOpt=rV.select.cfg=rV.select.conOpt=null,rV.isLegacy=!1,wV(c,n,r,i,u,rV),_V(c,n,r,i,u),dV(e,c,n,r,rV,i,u),Object(l["q"])(r,"info")&&(aH(c).info=r.info);for(var d=0;d=0?o.replaceAt(c,a):o.add(c),c}function bV(e,t,n){var r=aH(e),i=t.type,o=t.shape,a=t.style;return n.isUniversalTransitionEnabled()||null!=i&&i!==r.customGraphicType||"path"===i&&EV(o)&&DV(o)!==r.customPathData||"image"===i&&Object(l["q"])(a,"image")&&a.image!==r.customImagePath}function _V(e,t,n,r,i){var o=n.clipPath;if(!1===o)e&&e.getClipPath()&&e.removeClipPath();else if(o){var a=e.getClipPath();a&&bV(a,o,r)&&(a=null),a||(a=cV(o),e.setClipPath(a)),dV(null,a,t,o,null,r,i)}}function wV(e,t,n,r,i,o){if(!e.isGroup){xV(n,null,o),xV(n,qH,o);var a=o.normal.conOpt,s=o.emphasis.conOpt,l=o.blur.conOpt,u=o.select.conOpt;if(null!=a||null!=s||null!=u||null!=l){var c=e.getTextContent();if(!1===a)c&&e.removeTextContent();else{a=o.normal.conOpt=a||{type:"text"},c?c.clearStates():(c=cV(a),e.setTextContent(c)),dV(null,c,t,a,null,r,i);for(var d=a&&a.style,h=0;h=c;f--){var p=t.childAt(f);CV(t,p,i)}}}function CV(e,t,n){t&&AH(t,aH(e).option,n)}function TV(e){new _k(e.oldChildren,e.newChildren,OV,OV,e).add(LV).update(LV).remove(AV).execute()}function OV(e,t){var n=e&&e.name;return null!=n?n:nV+t}function LV(e,t){var n=this.context,r=null!=e?n.newChildren[e]:null,i=null!=t?n.oldChildren[t]:null;yV(n.api,i,n.dataIndex,r,n.seriesModel,n.group)}function AV(e){var t=this.context,n=t.oldChildren[e];n&&AH(n,aH(n).option,t.seriesModel)}function DV(e){return e&&(e.pathData||e.d)}function EV(e){return e&&(Object(l["q"])(e,"pathData")||Object(l["q"])(e,"d"))}function IV(e){e.registerChartView(uV),e.registerSeriesModel(lH)}var jV=Ei(),PV=l["d"],RV=l["c"],NV=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(e,t,n,r){var i=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=n,r||this._lastValue!==i||this._lastStatus!==o){this._lastValue=i,this._lastStatus=o;var a=this._group,s=this._handle;if(!o||"hide"===o)return a&&a.hide(),void(s&&s.hide());a&&a.show(),s&&s.show();var u={};this.makeElOption(u,i,e,t,n);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=c;var d=this._moveAnimation=this.determineAnimation(e,t);if(a){var h=l["h"](BV,t,d);this.updatePointerEl(a,u,h),this.updateLabelEl(a,u,h,t)}else a=this._group=new kr,this.createPointerEl(a,u,e,t),this.createLabelEl(a,u,e,t),n.getZr().add(a);HV(a,t,!0),this._renderHandle(i)}},e.prototype.remove=function(e){this.clear(e)},e.prototype.dispose=function(e){this.clear(e)},e.prototype.determineAnimation=function(e,t){var n=t.get("animation"),r=e.axis,i="category"===r.type,o=t.get("snap");if(!o&&!i)return!1;if("auto"===n||null==n){var a=this.animationThreshold;if(i&&r.getBandWidth()>a)return!0;if(o){var s=_L(e).seriesDataCount,l=r.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===n},e.prototype.makeElOption=function(e,t,n,r,i){},e.prototype.createPointerEl=function(e,t,n,i){var o=t.pointer;if(o){var a=jV(e).pointerEl=new r[o.type](PV(t.pointer));e.add(a)}},e.prototype.createLabelEl=function(e,t,n,r){if(t.label){var i=jV(e).labelEl=new Cs(PV(t.label));e.add(i),FV(i,r)}},e.prototype.updatePointerEl=function(e,t,n){var r=jV(e).pointerEl;r&&t.pointer&&(r.setStyle(t.pointer.style),n(r,{shape:t.pointer.shape}))},e.prototype.updateLabelEl=function(e,t,n,r){var i=jV(e).labelEl;i&&(i.setStyle(t.label.style),n(i,{x:t.label.x,y:t.label.y}),FV(i,r))},e.prototype._renderHandle=function(e){if(!this._dragging&&this.updateHandleTransform){var t,n=this._axisPointerModel,r=this._api.getZr(),i=this._handle,o=n.getModel("handle"),a=n.get("status");if(!o.get("show")||!a||"hide"===a)return i&&r.remove(i),void(this._handle=null);this._handle||(t=!0,i=this._handle=Eg(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(e){ne(e.event)},onmousedown:RV(this._onHandleDragMove,this,0,0),drift:RV(this._onHandleDragMove,this),ondragend:RV(this._onHandleDragEnd,this)}),r.add(i)),HV(i,n,!1),i.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=o.get("size");l["t"](s)||(s=[s,s]),i.scaleX=s[0]/2,i.scaleY=s[1]/2,Qg(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,t)}},e.prototype._moveHandleToValue=function(e,t){BV(this._axisPointerModel,!t&&this._moveAnimation,this._handle,zV(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(e,t){var n=this._handle;if(n){this._dragging=!0;var r=this.updateHandleTransform(zV(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(zV(r)),jV(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var t=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),n=this._group,r=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),r&&t.remove(r),this._group=null,this._handle=null,this._payloadInfo=null),ev(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}},e}();function BV(e,t,n,r){YV(jV(n).lastProp,r)||(jV(n).lastProp=r,t?Wl(n,r,e):(n.stopAnimation(),n.attr(r)))}function YV(e,t){if(l["A"](e)&&l["A"](t)){var n=!0;return l["k"](t,(function(t,r){n=n&&YV(e[r],t)})),!!n}return e===t}function FV(e,t){e[t.get(["label","show"])?"show":"hide"]()}function zV(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function HV(e,t,n){var r=t.get("z"),i=t.get("zlevel");e&&e.traverse((function(e){"group"!==e.type&&(null!=r&&(e.z=r),null!=i&&(e.zlevel=i),e.silent=n)}))}var VV=NV;function WV(e){var t,n=e.get("type"),r=e.getModel(n+"Style");return"line"===n?(t=r.getLineStyle(),t.fill=null):"shadow"===n&&(t=r.getAreaStyle(),t.stroke=null),t}function UV(e,t,n,r,i){var o=n.get("value"),a=GV(o,t.axis,t.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),s=n.getModel("label"),l=Sc(s.get("padding")||0),u=s.getFont(),c=nr(a,u),d=i.position,h=c.width+l[1]+l[3],f=c.height+l[0]+l[2],p=i.align;"right"===p&&(d[0]-=h),"center"===p&&(d[0]-=h/2);var m=i.verticalAlign;"bottom"===m&&(d[1]-=f),"middle"===m&&(d[1]-=f/2),$V(d,h,f,r);var g=s.get("backgroundColor");g&&"auto"!==g||(g=t.get(["axisLine","lineStyle","color"])),e.label={x:d[0],y:d[1],style:ru(s,{text:a,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function $V(e,t,n,r){var i=r.getWidth(),o=r.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+n,o)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function GV(e,t,n,r,i){e=t.scale.parse(e);var o=t.scale.getLabel({value:e},{precision:i.precision}),a=i.formatter;if(a){var s={value:sO(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};l["k"](r,(function(e){var t=n.getSeriesByIndex(e.seriesIndex),r=e.dataIndexInside,i=t&&t.getDataParams(r);i&&s.seriesData.push(i)})),l["C"](a)?o=a.replace("{value}",o):l["w"](a)&&(o=a(s))}return o}function qV(e,t,n){var r=le();return fe(r,r,n.rotation),he(r,r,n.position),Sg([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function XV(e,t,n,r,i,o){var a=hL.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get(["label","margin"]),UV(t,r,i,o,{position:qV(r.axis,e,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function KV(e,t,n){return n=n||0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function ZV(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}function JV(e,t,n,r,i,o){return{cx:e,cy:t,r0:n,r:r,startAngle:i,endAngle:o,clockwise:!0}}var QV=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.makeElOption=function(e,t,n,r,i){var o=n.axis,a=o.grid,s=r.get("type"),l=eW(a,o).getOtherAxis(o).getGlobalExtent(),u=o.toGlobalCoord(o.dataToCoord(t,!0));if(s&&"none"!==s){var c=WV(r),d=tW[s](o,u,l);d.style=c,e.graphicKey=d.type,e.pointer=d}var h=VO(a.model,n);XV(t,e,h,n,r,i)},t.prototype.getHandleTransform=function(e,t,n){var r=VO(t.axis.grid.model,t,{labelInside:!1});r.labelMargin=n.get(["handle","margin"]);var i=qV(t.axis,e,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,r){var i=n.axis,o=i.grid,a=i.getGlobalExtent(!0),s=eW(o,i).getOtherAxis(i).getGlobalExtent(),l="x"===i.dim?0:1,u=[e.x,e.y];u[l]+=t[l],u[l]=Math.min(a[1],u[l]),u[l]=Math.max(a[0],u[l]);var c=(s[1]+s[0])/2,d=[c,c];d[l]=u[l];var h=[{verticalAlign:"middle"},{align:"center"}];return{x:u[0],y:u[1],rotation:e.rotation,cursorPoint:d,tooltipOption:h[l]}},t}(VV);function eW(e,t){var n={};return n[t.dim+"AxisIndex"]=t.index,e.getCartesian(n)}var tW={line:function(e,t,n){var r=KV([t,n[0]],[t,n[1]],nW(e));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(e,t,n){var r=Math.max(1,e.getBandWidth()),i=n[1]-n[0];return{type:"Rect",shape:ZV([t-r/2,n[0]],[r,i],nW(e))}}};function nW(e){return"x"===e.dim?0:1}var rW=QV,iW=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(Kc),oW=iW,aW=Ei(),sW=l["k"];function lW(e,t,n){if(!s["a"].node){var r=t.getZr();aW(r).records||(aW(r).records={}),uW(r,t);var i=aW(r).records[e]||(aW(r).records[e]={});i.handler=n}}function uW(e,t){function n(n,r){e.on(n,(function(n){var i=fW(t);sW(aW(e).records,(function(e){e&&r(e,n,i.dispatchAction)})),cW(i.pendings,t)}))}aW(e).initialized||(aW(e).initialized=!0,n("click",l["h"](hW,"click")),n("mousemove",l["h"](hW,"mousemove")),n("globalout",dW))}function cW(e,t){var n,r=e.showTip.length,i=e.hideTip.length;r?n=e.showTip[r-1]:i&&(n=e.hideTip[i-1]),n&&(n.dispatchAction=null,t.dispatchAction(n))}function dW(e,t,n){e.handler("leave",null,n)}function hW(e,t,n,r){t.handler(e,n,r)}function fW(e){var t={showTip:[],hideTip:[]},n=function(r){var i=t[r.type];i?i.push(r):(r.dispatchAction=n,e.dispatchAction(r))};return{dispatchAction:n,pendings:t}}function pW(e,t){if(!s["a"].node){var n=t.getZr(),r=(aW(n).records||{})[e];r&&(aW(n).records[e]=null)}}var mW=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.render=function(e,t,n){var r=t.getComponent("tooltip"),i=e.get("triggerOn")||r&&r.get("triggerOn")||"mousemove|click";lW("axisPointer",n,(function(e,t,n){"none"!==i&&("leave"===e||i.indexOf(e)>=0)&&n({type:"updateAxisPointer",currTrigger:e,x:t&&t.offsetX,y:t&&t.offsetY})}))},t.prototype.remove=function(e,t){pW("axisPointer",t)},t.prototype.dispose=function(e,t){pW("axisPointer",t)},t.type="axisPointer",t}(Tp),gW=mW;function vW(e,t){var n,r=[],i=e.seriesIndex;if(null==i||!(n=t.getSeriesByIndex(i)))return{point:[]};var o=n.getData(),a=Di(o,e);if(null==a||a<0||l["t"](a))return{point:[]};var s=o.getItemGraphicEl(a),u=n.coordinateSystem;if(n.getTooltipPosition)r=n.getTooltipPosition(a)||[];else if(u&&u.dataToPoint)if(e.isStacked){var c=u.getBaseAxis(),d=u.getOtherAxis(c),h=d.dim,f=c.dim,p="x"===h||"radius"===h?1:0,m=o.mapDimension(f),g=[];g[p]=o.get(m,a),g[1-p]=o.get(o.getCalculationInfo("stackResultDimension"),a),r=u.dataToPoint(g)||[]}else r=u.dataToPoint(o.getValues(l["H"](u.dimensions,(function(e){return o.mapDimension(e)})),a))||[];else if(s){var v=s.getBoundingRect().clone();v.applyTransform(s.transform),r=[v.x+v.width/2,v.y+v.height/2]}return{point:r,el:s}}var yW=Ei();function bW(e,t,n){var r=e.currTrigger,i=[e.x,e.y],o=e,a=e.dispatchAction||Object(l["c"])(n.dispatchAction,n),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){LW(i)&&(i=vW({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},t).point);var u=LW(i),c=o.axesInfo,d=s.axesInfo,h="leave"===r||LW(i),f={},p={},m={list:[],map:{}},g={showPointer:Object(l["h"])(xW,p),showTooltip:Object(l["h"])(kW,m)};Object(l["k"])(s.coordSysMap,(function(e,t){var n=u||e.containPoint(i);Object(l["k"])(s.coordSysAxesInfo[t],(function(e,t){var r=e.axis,o=TW(c,e);if(!h&&n&&(!c||o)){var a=o&&o.value;null!=a||u||(a=r.pointToData(i)),null!=a&&_W(e,a,g,!1,f)}}))}));var v={};return Object(l["k"])(d,(function(e,t){var n=e.linkGroup;n&&!p[t]&&Object(l["k"])(n.axesInfo,(function(t,r){var i=p[r];if(t!==e&&i){var o=i.value;n.mapper&&(o=e.axis.scale.parse(n.mapper(o,OW(t),OW(e)))),v[e.key]=o}}))})),Object(l["k"])(v,(function(e,t){_W(d[t],e,g,!0,f)})),MW(p,d,f),SW(m,i,e,a),CW(d,a,n),f}}function _W(e,t,n,r,i){var o=e.axis;if(!o.scale.isBlank()&&o.containData(t))if(e.involveSeries){var a=wW(t,e),s=a.payloadBatch,u=a.snapToValue;s[0]&&null==i.seriesIndex&&Object(l["m"])(i,s[0]),!r&&e.snap&&o.containData(u)&&null!=u&&(t=u),n.showPointer(e,t,s),n.showTooltip(e,a,u)}else n.showPointer(e,t)}function wW(e,t){var n=t.axis,r=n.dim,i=e,o=[],a=Number.MAX_VALUE,s=-1;return Object(l["k"])(t.seriesModels,(function(t,u){var c,d,h=t.getData().mapDimensionsAll(r);if(t.getAxisTooltipData){var f=t.getAxisTooltipData(h,e,n);d=f.dataIndices,c=f.nestestValue}else{if(d=t.getData().indicesOfNearest(h[0],e,"category"===n.type?.5:null),!d.length)return;c=t.getData().get(h[0],d[0])}if(null!=c&&isFinite(c)){var p=e-c,m=Math.abs(p);m<=a&&((m=0&&s<0)&&(a=m,s=p,i=c,o.length=0),Object(l["k"])(d,(function(e){o.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})})))}})),{payloadBatch:o,snapToValue:i}}function xW(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function kW(e,t,n,r){var i=n.payloadBatch,o=t.axis,a=o.model,s=t.axisPointerModel;if(t.triggerTooltip&&i.length){var l=t.coordSys.model,u=kL(l),c=e.map[u];c||(c=e.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},e.list.push(c)),c.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:r,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function MW(e,t,n){var r=n.axesInfo=[];Object(l["k"])(t,(function(t,n){var i=t.axisPointerModel.option,o=e[n];o?(!t.useHandle&&(i.status="show"),i.value=o.value,i.seriesDataIndices=(o.payloadBatch||[]).slice()):!t.useHandle&&(i.status="hide"),"show"===i.status&&r.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:i.value})}))}function SW(e,t,n,r){if(!LW(t)&&e.list.length){var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}else r({type:"hideTip"})}function CW(e,t,n){var r=n.getZr(),i="axisPointerLastHighlights",o=yW(r)[i]||{},a=yW(r)[i]={};Object(l["k"])(e,(function(e,t){var n=e.axisPointerModel.option;"show"===n.status&&e.triggerEmphasis&&Object(l["k"])(n.seriesDataIndices,(function(e){var t=e.seriesIndex+" | "+e.dataIndex;a[t]=e}))}));var s=[],u=[];Object(l["k"])(o,(function(e,t){!a[t]&&u.push(e)})),Object(l["k"])(a,(function(e,t){!o[t]&&s.push(e)})),u.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:u}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function TW(e,t){for(var n=0;n<(e||[]).length;n++){var r=e[n];if(t.axis.dim===r.axisDim&&t.axis.model.componentIndex===r.axisIndex)return r}}function OW(e){var t=e.axis.model,n={},r=n.axisDim=e.axis.dim;return n.axisIndex=n[r+"AxisIndex"]=t.componentIndex,n.axisName=n[r+"AxisName"]=t.name,n.axisId=n[r+"AxisId"]=t.id,n}function LW(e){return!e||null==e[0]||isNaN(e[0])||null==e[1]||isNaN(e[1])}function AW(e){CL.registerAxisPointerClass("CartesianAxisPointer",rW),e.registerComponentModel(oW),e.registerComponentView(gW),e.registerPreprocessor((function(e){if(e){(!e.axisPointer||0===e.axisPointer.length)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!Object(l["t"])(t)&&(e.axisPointer.link=[t])}})),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,(function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=fL(e,t)})),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},bW)}function DW(e){N_(BL),N_(AW)}var EW=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.makeElOption=function(e,t,n,r,i){var o=n.axis;"angle"===o.dim&&(this.animationThreshold=Math.PI/18);var a=o.polar,s=a.getOtherAxis(o),l=s.getExtent(),u=o.dataToCoord(t),c=r.get("type");if(c&&"none"!==c){var d=WV(r),h=jW[c](o,a,u,l);h.style=d,e.graphicKey=h.type,e.pointer=h}var f=r.get(["label","margin"]),p=IW(t,n,r,a,f);UV(e,n,r,i,p)},t}(VV);function IW(e,t,n,r,i){var o=t.axis,a=o.dataToCoord(e),s=r.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l,u,c,d=r.getRadiusAxis().getExtent();if("radius"===o.dim){var h=le();fe(h,h,s),he(h,h,[r.cx,r.cy]),l=Sg([a,-i],h);var f=t.getModel("axisLabel").get("rotate")||0,p=hL.innerTextLayout(s,f*Math.PI/180,-1);u=p.textAlign,c=p.textVerticalAlign}else{var m=d[1];l=r.coordToPoint([m+i,a]);var g=r.cx,v=r.cy;u=Math.abs(l[0]-g)/m<.3?"center":l[0]>g?"left":"right",c=Math.abs(l[1]-v)/m<.3?"middle":l[1]>v?"top":"bottom"}return{position:l,align:u,verticalAlign:c}}var jW={line:function(e,t,n,r){return"angle"===e.dim?{type:"Line",shape:KV(t.coordToPoint([r[0],n]),t.coordToPoint([r[1],n]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:n}}},shadow:function(e,t,n,r){var i=Math.max(1,e.getBandWidth()),o=Math.PI/180;return"angle"===e.dim?{type:"Sector",shape:JV(t.cx,t.cy,r[0],r[1],(-n-i/2)*o,(i/2-n)*o)}:{type:"Sector",shape:JV(t.cx,t.cy,n-i/2,n+i/2,0,2*Math.PI)}}},PW=EW,RW=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.findAxisModel=function(e){var t,n=this.ecModel;return n.eachComponent(e,(function(e){e.getCoordSysModel()===this&&(t=e)}),this),t},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(Kc),NW=RW,BW=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",Ri).models[0]},t.type="polarAxis",t}(Kc);l["K"](BW,KC);var YW=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.type="angleAxis",t}(BW),FW=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.type="radiusAxis",t}(BW),zW=function(e){function t(t,n){return e.call(this,"radius",t,n)||this}return a(t,e),t.prototype.pointToData=function(e,t){return this.polar.pointToData(e,t)["radius"===this.dim?0:1]},t}(FO);zW.prototype.dataToRadius=FO.prototype.dataToCoord,zW.prototype.radiusToData=FO.prototype.coordToData;var HW=zW,VW=Ei(),WW=function(e){function t(t,n){return e.call(this,"angle",t,n||[0,360])||this}return a(t,e),t.prototype.pointToData=function(e,t){return this.polar.pointToData(e,t)["radius"===this.dim?0:1]},t.prototype.calculateCategoryInterval=function(){var e=this,t=e.getLabelModel(),n=e.scale,r=n.getExtent(),i=n.count();if(r[1]-r[0]<1)return 0;var o=r[0],a=e.dataToCoord(o+1)-e.dataToCoord(o),s=Math.abs(a),l=nr(null==o?"":o+"",t.getFont(),"center","top"),u=Math.max(l.height,7),c=u/s;isNaN(c)&&(c=1/0);var d=Math.max(0,Math.floor(c)),h=VW(e.model),f=h.lastAutoInterval,p=h.lastTickCount;return null!=f&&null!=p&&Math.abs(f-d)<=1&&Math.abs(p-i)<=1&&f>d?d=f:(h.lastTickCount=i,h.lastAutoInterval=d),d},t}(FO);WW.prototype.dataToAngle=FO.prototype.dataToCoord,WW.prototype.angleToData=FO.prototype.coordToData;var UW=WW,$W=["radius","angle"],GW=function(){function e(e){this.dimensions=$W,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new HW,this._angleAxis=new UW,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return e.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},e.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},e.prototype.getAxis=function(e){var t="_"+e+"Axis";return this[t]},e.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},e.prototype.getAxesByScale=function(e){var t=[],n=this._angleAxis,r=this._radiusAxis;return n.scale.type===e&&t.push(n),r.scale.type===e&&t.push(r),t},e.prototype.getAngleAxis=function(){return this._angleAxis},e.prototype.getRadiusAxis=function(){return this._radiusAxis},e.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},e.prototype.getTooltipAxes=function(e){var t=null!=e&&"auto"!==e?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},e.prototype.dataToPoint=function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},e.prototype.pointToData=function(e,t){var n=this.pointToCoord(e);return[this._radiusAxis.radiusToData(n[0],t),this._angleAxis.angleToData(n[1],t)]},e.prototype.pointToCoord=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,r=this.getAngleAxis(),i=r.getExtent(),o=Math.min(i[0],i[1]),a=Math.max(i[0],i[1]);r.inverse?o=a-360:a=o+360;var s=Math.sqrt(t*t+n*n);t/=s,n/=s;var l=Math.atan2(-n,t)/Math.PI*180,u=la)l+=360*u;return[s,l]},e.prototype.coordToPoint=function(e){var t=e[0],n=e[1]/180*Math.PI,r=Math.cos(n)*t+this.cx,i=-Math.sin(n)*t+this.cy;return[r,i]},e.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),n=t.getExtent().slice();n[0]>n[1]&&n.reverse();var r=e.getExtent(),i=Math.PI/180,o=1e-4;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-r[0]*i,endAngle:-r[1]*i,clockwise:e.inverse,contain:function(e,t){var n=e-this.cx,r=t-this.cy,i=n*n+r*r,a=this.r,s=this.r0;return a!==s&&i-o<=a*a&&i+o>=s*s}}},e.prototype.convertToPixel=function(e,t,n){var r=qW(t);return r===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){var r=qW(t);return r===this?this.pointToData(n):null},e}();function qW(e){var t=e.seriesModel,n=e.polarModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}var XW=GW;function KW(e,t,n){var r=t.get("center"),i=n.getWidth(),o=n.getHeight();e.cx=Br(r[0],i),e.cy=Br(r[1],o);var a=e.getRadiusAxis(),s=Math.min(i,o)/2,u=t.get("radius");null==u?u=[0,"100%"]:l["t"](u)||(u=[0,u]);var c=[Br(u[0],s),Br(u[1],s)];a.inverse?a.setExtent(c[1],c[0]):a.setExtent(c[0],c[1])}function ZW(e,t){var n=this,r=n.getAngleAxis(),i=n.getRadiusAxis();if(r.scale.setExtent(1/0,-1/0),i.scale.setExtent(1/0,-1/0),e.eachSeries((function(e){if(e.coordinateSystem===n){var t=e.getData();l["k"](hO(t,"radius"),(function(e){i.scale.unionExtentFromData(t,e)})),l["k"](hO(t,"angle"),(function(e){r.scale.unionExtentFromData(t,e)}))}})),rO(r.scale,r.model),rO(i.scale,i.model),"category"===r.type&&!r.onBand){var o=r.getExtent(),a=360/r.scale.count();r.inverse?o[1]+=a:o[1]-=a,r.setExtent(o[0],o[1])}}function JW(e){return"angleAxis"===e.mainType}function QW(e,t){var n;if(e.type=t.get("type"),e.scale=iO(t),e.onBand=t.get("boundaryGap")&&"category"===e.type,e.inverse=t.get("inverse"),JW(t)){e.inverse=e.inverse!==t.get("clockwise");var r=t.get("startAngle"),i=null!==(n=t.get("endAngle"))&&void 0!==n?n:r+(e.inverse?-360:360);e.setExtent(r,i)}t.axis=e,e.model=t}var eU={dimensions:$W,create:function(e,t){var n=[];return e.eachComponent("polar",(function(e,r){var i=new XW(r+"");i.update=ZW;var o=i.getRadiusAxis(),a=i.getAngleAxis(),s=e.findAxisModel("radiusAxis"),l=e.findAxisModel("angleAxis");QW(o,s),QW(a,l),KW(i,e,t),n.push(i),e.coordinateSystem=i,i.model=e})),e.eachSeries((function(e){if("polar"===e.get("coordinateSystem")){var t=e.getReferringComponents("polar",Ri).models[0];0,e.coordinateSystem=t.coordinateSystem}})),n}},tU=eU,nU=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function rU(e,t,n){t[1]>t[0]&&(t=t.slice().reverse());var r=e.coordToPoint([t[0],n]),i=e.coordToPoint([t[1],n]);return{x1:r[0],y1:r[1],x2:i[0],y2:i[1]}}function iU(e){var t=e.getRadiusAxis();return t.inverse?0:1}function oU(e){var t=e[0],n=e[e.length-1];t&&n&&Math.abs(Math.abs(t.coord-n.coord)-360)<1e-4&&e.pop()}var aU=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="PolarAxisPointer",n}return a(t,e),t.prototype.render=function(e,t){if(this.group.removeAll(),e.get("show")){var n=e.axis,r=n.polar,i=r.getRadiusAxis().getExtent(),o=n.getTicksCoords(),a=n.getMinorTicksCoords(),s=l["H"](n.getViewLabels(),(function(e){e=l["d"](e);var t=n.scale,r="ordinal"===t.type?t.getRawOrdinalNumber(e.tickValue):e.tickValue;return e.coord=n.dataToCoord(r),e}));oU(s),oU(o),l["k"](nU,(function(t){!e.get([t,"show"])||n.scale.isBlank()&&"axisLine"!==t||sU[t](this.group,e,r,o,a,i,s)}),this)}},t.type="angleAxis",t}(CL),sU={axisLine:function(e,t,n,i,o,a){var s,l=t.getModel(["axisLine","lineStyle"]),u=n.getAngleAxis(),c=Math.PI/180,d=u.getExtent(),h=iU(n),f=h?0:1,p=360===Math.abs(d[1]-d[0])?"Circle":"Arc";s=0===a[f]?new r[p]({shape:{cx:n.cx,cy:n.cy,r:a[h],startAngle:-d[0]*c,endAngle:-d[1]*c,clockwise:u.inverse},style:l.getLineStyle(),z2:1,silent:!0}):new Mm({shape:{cx:n.cx,cy:n.cy,r:a[h],r0:a[f]},style:l.getLineStyle(),z2:1,silent:!0}),s.style.fill=null,e.add(s)},axisTick:function(e,t,n,r,i,o){var a=t.getModel("axisTick"),s=(a.get("inside")?-1:1)*a.get("length"),u=o[iU(n)],c=l["H"](r,(function(e){return new Rm({shape:rU(n,[u,u+s],e.coord)})}));e.add(bg(c,{style:l["i"](a.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(e,t,n,r,i,o){if(i.length){for(var a=t.getModel("axisTick"),s=t.getModel("minorTick"),u=(a.get("inside")?-1:1)*s.get("length"),c=o[iU(n)],d=[],h=0;hm?"left":"right",y=Math.abs(p[1]-g)/f<.3?"middle":p[1]>g?"top":"bottom";if(s&&s[h]){var b=s[h];l["A"](b)&&b.textStyle&&(a=new Tu(b.textStyle,u,u.ecModel))}var _=new Cs({silent:hL.isLabelSilent(t),style:ru(a,{x:p[0],y:p[1],fill:a.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:r.formattedLabel,align:v,verticalAlign:y})});if(e.add(_),d){var w=hL.makeAxisEventDataBase(t);w.targetType="axisLabel",w.value=r.rawLabel,Ts(_).eventData=w}}),this)},splitLine:function(e,t,n,r,i,o){var a=t.getModel("splitLine"),s=a.getModel("lineStyle"),u=s.get("color"),c=0;u=u instanceof Array?u:[u];for(var d=[],h=0;h=0?"p":"n",O=x;y&&(r[s][C]||(r[s][C]={p:x,n:x}),O=r[s][C][T]);var L=void 0,A=void 0,D=void 0,E=void 0;if("radius"===d.dim){var I=d.dataToCoord(S)-x,j=o.dataToCoord(C);Math.abs(I)=E})}}}))}function yU(e){var t={};l["k"](e,(function(e,n){var r=e.getData(),i=e.coordinateSystem,o=i.getBaseAxis(),a=gU(i,o),s=o.getExtent(),l="category"===o.type?o.getBandWidth():Math.abs(s[1]-s[0])/r.count(),u=t[a]||{bandWidth:l,remainedWidth:l,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},c=u.stacks;t[a]=u;var d=mU(e);c[d]||u.autoWidthCount++,c[d]=c[d]||{width:0,maxWidth:0};var h=Br(e.get("barWidth"),l),f=Br(e.get("barMaxWidth"),l),p=e.get("barGap"),m=e.get("barCategoryGap");h&&!c[d].width&&(h=Math.min(u.remainedWidth,h),c[d].width=h,u.remainedWidth-=h),f&&(c[d].maxWidth=f),null!=p&&(u.gap=p),null!=m&&(u.categoryGap=m)}));var n={};return l["k"](t,(function(e,t){n[t]={};var r=e.stacks,i=e.bandWidth,o=Br(e.categoryGap,i),a=Br(e.gap,1),s=e.remainedWidth,u=e.autoWidthCount,c=(s-o)/(u+(u-1)*a);c=Math.max(c,0),l["k"](r,(function(e,t){var n=e.maxWidth;n&&n=t.y&&e[1]<=t.y+t.height:n.contain(n.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},e.prototype.pointToData=function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e["horizontal"===t.orient?0:1]))]},e.prototype.dataToPoint=function(e){var t=this.getAxis(),n=this.getRect(),r=[],i="horizontal"===t.orient?0:1;return e instanceof Array&&(e=e[0]),r[i]=t.toGlobalCoord(t.dataToCoord(+e)),r[1-i]=0===i?n.y+n.height/2:n.x+n.width/2,r},e.prototype.convertToPixel=function(e,t,n){var r=RU(t);return r===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){var r=RU(t);return r===this?this.pointToData(n):null},e}();function RU(e){var t=e.seriesModel,n=e.singleAxisModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}var NU=PU;function BU(e,t){var n=[];return e.eachComponent("singleAxis",(function(r,i){var o=new NU(r,e,t);o.name="single_"+i,o.resize(r,t),r.coordinateSystem=o,n.push(o)})),e.eachSeries((function(e){if("singleAxis"===e.get("coordinateSystem")){var t=e.getReferringComponents("singleAxis",Ri).models[0];e.coordinateSystem=t&&t.coordinateSystem}})),n}var YU={create:BU,dimensions:jU},FU=YU,zU=["x","y"],HU=["width","height"],VU=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.makeElOption=function(e,t,n,r,i){var o=n.axis,a=o.coordinateSystem,s=$U(a,1-UU(o)),l=a.dataToPoint(t)[0],u=r.get("type");if(u&&"none"!==u){var c=WV(r),d=WU[u](o,l,s);d.style=c,e.graphicKey=d.type,e.pointer=d}var h=MU(n);XV(t,e,h,n,r,i)},t.prototype.getHandleTransform=function(e,t,n){var r=MU(t,{labelInside:!1});r.labelMargin=n.get(["handle","margin"]);var i=qV(t.axis,e,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,r){var i=n.axis,o=i.coordinateSystem,a=UU(i),s=$U(o,a),l=[e.x,e.y];l[a]+=t[a],l[a]=Math.min(s[1],l[a]),l[a]=Math.max(s[0],l[a]);var u=$U(o,1-a),c=(u[1]+u[0])/2,d=[c,c];return d[a]=l[a],{x:l[0],y:l[1],rotation:e.rotation,cursorPoint:d,tooltipOption:{verticalAlign:"middle"}}},t}(VV),WU={line:function(e,t,n){var r=KV([t,n[0]],[t,n[1]],UU(e));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(e,t,n){var r=e.getBandWidth(),i=n[1]-n[0];return{type:"Rect",shape:ZV([t-r/2,n[0]],[r,i],UU(e))}}};function UU(e){return e.isHorizontal()?0:1}function $U(e,t){var n=e.getRect();return[n[zU[t]],n[zU[t]]+n[HU[t]]]}var GU=VU,qU=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.type="single",t}(Tp);function XU(e){N_(AW),CL.registerAxisPointerClass("SingleAxisPointer",GU),e.registerComponentView(qU),e.registerComponentView(LU),e.registerComponentModel(DU),uT(e,"single",DU,DU.defaultOption),e.registerCoordinateSystem("single",FU)}var KU=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.init=function(t,n,r){var i=Uc(t);e.prototype.init.apply(this,arguments),ZU(t,i)},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),ZU(this.option,t)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t}(Kc);function ZU(e,t){var n,r=e.cellSize;n=l["t"](r)?r:e.cellSize=[r,r],1===n.length&&(n[1]=n[0]);var i=l["H"]([0,1],(function(e){return Hc(t,e)&&(n[e]="auto"),null!=n[e]&&"auto"!==n[e]}));Wc(e,t,{type:"box",ignoreSize:i})}var JU=KU,QU=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.render=function(e,t,n){var r=this.group;r.removeAll();var i=e.coordinateSystem,o=i.getRangeInfo(),a=i.getOrient(),s=t.getLocaleModel();this._renderDayRect(e,o,r),this._renderLines(e,o,a,r),this._renderYearText(e,o,a,r),this._renderMonthText(e,s,a,r),this._renderWeekText(e,s,o,a,r)},t.prototype._renderDayRect=function(e,t,n){for(var r=e.coordinateSystem,i=e.getModel("itemStyle").getItemStyle(),o=r.getCellWidth(),a=r.getCellHeight(),s=t.start.time;s<=t.end.time;s=r.getNextNDay(s,1).time){var l=r.dataToRect([s],!1).tl,u=new ls({shape:{x:l[0],y:l[1],width:o,height:a},cursor:"default",style:i});n.add(u)}},t.prototype._renderLines=function(e,t,n,r){var i=this,o=e.coordinateSystem,a=e.getModel(["splitLine","lineStyle"]).getLineStyle(),s=e.get(["splitLine","show"]),l=a.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var u=t.start,c=0;u.time<=t.end.time;c++){h(u.formatedDate),0===c&&(u=o.getDateInfo(t.start.y+"-"+t.start.m));var d=u.date;d.setMonth(d.getMonth()+1),u=o.getDateInfo(d)}function h(t){i._firstDayOfMonth.push(o.getDateInfo(t)),i._firstDayPoints.push(o.dataToRect([t],!1).tl);var l=i._getLinePointsOfOneWeek(e,t,n);i._tlpoints.push(l[0]),i._blpoints.push(l[l.length-1]),s&&i._drawSplitline(l,a,r)}h(o.getNextNDay(t.end.time,1).formatedDate),s&&this._drawSplitline(i._getEdgesPoints(i._tlpoints,l,n),a,r),s&&this._drawSplitline(i._getEdgesPoints(i._blpoints,l,n),a,r)},t.prototype._getEdgesPoints=function(e,t,n){var r=[e[0].slice(),e[e.length-1].slice()],i="horizontal"===n?0:1;return r[0][i]=r[0][i]-t/2,r[1][i]=r[1][i]+t/2,r},t.prototype._drawSplitline=function(e,t,n){var r=new Em({z2:20,shape:{points:e},style:t});n.add(r)},t.prototype._getLinePointsOfOneWeek=function(e,t,n){for(var r=e.coordinateSystem,i=r.getDateInfo(t),o=[],a=0;a<7;a++){var s=r.getNextNDay(i.time,a),l=r.dataToRect([s.time],!1);o[2*s.day]=l.tl,o[2*s.day+1]=l["horizontal"===n?"bl":"tr"]}return o},t.prototype._formatterLabel=function(e,t){return Object(l["C"])(e)&&e?Ac(e,t):Object(l["w"])(e)?e(t):t.nameMap},t.prototype._yearTextPositionControl=function(e,t,n,r,i){var o=t[0],a=t[1],s=["center","bottom"];"bottom"===r?(a+=i,s=["center","top"]):"left"===r?o-=i:"right"===r?(o+=i,s=["center","top"]):a-=i;var l=0;return"left"!==r&&"right"!==r||(l=Math.PI/2),{rotation:l,x:o,y:a,style:{align:s[0],verticalAlign:s[1]}}},t.prototype._renderYearText=function(e,t,n,r){var i=e.getModel("yearLabel");if(i.get("show")){var o=i.get("margin"),a=i.get("position");a||(a="horizontal"!==n?"top":"left");var s=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],l=(s[0][0]+s[1][0])/2,u=(s[0][1]+s[1][1])/2,c="horizontal"===n?0:1,d={top:[l,s[c][1]],bottom:[l,s[1-c][1]],left:[s[1-c][0],u],right:[s[c][0],u]},h=t.start.y;+t.end.y>+t.start.y&&(h=h+"-"+t.end.y);var f=i.get("formatter"),p={start:t.start.y,end:t.end.y,nameMap:h},m=this._formatterLabel(f,p),g=new Cs({z2:30,style:ru(i,{text:m}),silent:i.get("silent")});g.attr(this._yearTextPositionControl(g,d[a],n,a,o)),r.add(g)}},t.prototype._monthTextPositionControl=function(e,t,n,r,i){var o="left",a="top",s=e[0],l=e[1];return"horizontal"===n?(l+=i,t&&(o="center"),"start"===r&&(a="bottom")):(s+=i,t&&(a="middle"),"start"===r&&(o="right")),{x:s,y:l,align:o,verticalAlign:a}},t.prototype._renderMonthText=function(e,t,n,r){var i=e.getModel("monthLabel");if(i.get("show")){var o=i.get("nameMap"),a=i.get("margin"),s=i.get("position"),u=i.get("align"),c=[this._tlpoints,this._blpoints];o&&!Object(l["C"])(o)||(o&&(t=Vu(o)||t),o=t.get(["time","monthAbbr"])||[]);var d="start"===s?0:1,h="horizontal"===n?0:1;a="start"===s?-a:a;for(var f="center"===u,p=i.get("silent"),m=0;m=r.start.time&&n.timea.end.time&&e.reverse(),e},e.prototype._getRangeInfo=function(e){var t,n=[this.getDateInfo(e[0]),this.getDateInfo(e[1])];n[0].time>n[1].time&&(t=!0,n.reverse());var r=Math.floor(n[1].time/t$)-Math.floor(n[0].time/t$)+1,i=new Date(n[0].time),o=i.getDate(),a=n[1].date.getDate();i.setDate(o+r-1);var s=i.getDate();if(s!==a){var l=i.getTime()-n[1].time>0?1:-1;while((s=i.getDate())!==a&&(i.getTime()-n[1].time)*l>0)r-=l,i.setDate(s-l)}var u=Math.floor((r+n[0].day+6)/7),c=t?1-u:u-1;return t&&n.reverse(),{range:[n[0].formatedDate,n[1].formatedDate],start:n[0],end:n[1],allDay:r,weeks:u,nthWeek:c,fweek:n[0].day,lweek:n[1].day}},e.prototype._getDateByWeeksAndDay=function(e,t,n){var r=this._getRangeInfo(n);if(e>r.weeks||0===e&&tr.lweek)return null;var i=7*(e-1)-r.fweek+t,o=new Date(r.start.time);return o.setDate(+r.start.d+i),this.getDateInfo(o)},e.create=function(t,n){var r=[];return t.eachComponent("calendar",(function(i){var o=new e(i,t,n);r.push(o),i.coordinateSystem=o})),t.eachSeries((function(e){"calendar"===e.get("coordinateSystem")&&(e.coordinateSystem=r[e.get("calendarIndex")||0])})),r},e.dimensions=["time","value"],e}();function r$(e){var t=e.calendarModel,n=e.seriesModel,r=t?t.coordinateSystem:n?n.coordinateSystem:null;return r}var i$=n$;function o$(e){e.registerComponentModel(JU),e.registerComponentView(e$),e.registerCoordinateSystem("calendar",i$)}function a$(e,t){var n=e.existing;if(t.id=e.keyInfo.id,!t.type&&n&&(t.type=n.type),null==t.parentId){var r=t.parentOption;r?t.parentId=r.id:n&&(t.parentId=n.parentId)}t.parentOption=null}function s$(e,t){var n;return l["k"](t,(function(t){null!=e[t]&&"auto"!==e[t]&&(n=!0)})),n}function l$(e,t,n){var r=l["m"]({},n),i=e[t],o=n.$action||"merge";"merge"===o?i?(l["I"](i,r,!0),Wc(i,r,{ignoreSize:!0}),$c(n,i),d$(n,i),d$(n,i,"shape"),d$(n,i,"style"),d$(n,i,"extra"),n.clipPath=i.clipPath):e[t]=r:"replace"===o?e[t]=r:"remove"===o&&i&&(e[t]=null)}var u$=["transition","enterFrom","leaveTo"],c$=u$.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function d$(e,t,n){if(n&&(!e[n]&&t[n]&&(e[n]={}),e=e[n],t=t[n]),e&&t)for(var r=n?u$:c$,i=0;i=0;u--){c=n[u],d=Mi(c.id,null),h=null!=d?i.get(d):null;if(h){f=h.parent,g=m$(f);var v=f===r?{width:o,height:a}:{width:g.width,height:g.height},y={},b=zc(h,c,v,null,{hv:c.hv,boundingMode:c.bounding},y);if(!m$(h).isNew&&b){for(var _=c.transition,w={},x=0;x=0)?w[k]=M:h[k]=M}Wl(h,w,e,0)}else h.attr(y)}}},t.prototype._clear=function(){var e=this,t=this._elMap;t.each((function(n){b$(n,m$(n).option,t,e._lastGraphicModel)})),this._elMap=l["f"]()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(Tp);function v$(e){var t=l["q"](p$,e)?p$[e]:mg(e);var n=new t({});return m$(n).type=e,n}function y$(e,t,n,r){var i=v$(n);return t.add(i),r.set(e,i),m$(i).id=e,m$(i).isNew=!0,i}function b$(e,t,n,r){var i=e&&e.parent;i&&("group"===e.type&&e.traverse((function(e){b$(e,t,n,r)})),AH(e,t,r),n.removeKey(m$(e).id))}function _$(e,t,n,r){e.isGroup||l["k"]([["cursor",Bo.prototype.cursor],["zlevel",r||0],["z",n||0],["z2",0]],(function(n){var r=n[0];l["q"](t,r)?e[r]=l["P"](t[r],n[1]):null==e[r]&&(e[r]=n[1])})),l["k"](l["F"](t),(function(n){if(0===n.indexOf("on")){var r=t[n];e[n]=l["w"](r)?r:null}})),l["q"](t,"draggable")&&(e.draggable=t.draggable),null!=t.name&&(e.name=t.name),null!=t.id&&(e.id=t.id)}function w$(e){return e=l["m"]({},e),l["k"](["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(Pc),(function(t){delete e[t]})),e}function x$(e,t,n){var r=Ts(e).eventData;e.silent||e.ignore||r||(r=Ts(e).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name}),r&&(r.info=n.info)}function k$(e){e.registerComponentModel(f$),e.registerComponentView(g$),e.registerPreprocessor((function(e){var t=e.graphic;Object(l["t"])(t)?t[0]&&t[0].elements?e.graphic=[e.graphic[0]]:e.graphic=[{elements:t}]:t&&!t.elements&&(e.graphic=[{elements:[t]}])}))}var M$=["x","y","radius","angle","single"],S$=["cartesian2d","polar","singleAxis"];function C$(e){var t=e.get("coordinateSystem");return Object(l["r"])(S$,t)>=0}function T$(e){return e+"Axis"}function O$(e,t){var n,r=Object(l["f"])(),i=[],o=Object(l["f"])();e.eachComponent({mainType:"dataZoom",query:t},(function(e){o.get(e.uid)||s(e)}));do{n=!1,e.eachComponent("dataZoom",a)}while(n);function a(e){!o.get(e.uid)&&u(e)&&(s(e),n=!0)}function s(e){o.set(e.uid,!0),i.push(e),c(e)}function u(e){var t=!1;return e.eachTargetAxis((function(e,n){var i=r.get(e);i&&i[n]&&(t=!0)})),t}function c(e){e.eachTargetAxis((function(e,t){(r.get(e)||r.set(e,[]))[t]=!0}))}return i}function L$(e){var t=e.ecModel,n={infoList:[],infoMap:Object(l["f"])()};return e.eachTargetAxis((function(e,r){var i=t.getComponent(T$(e),r);if(i){var o=i.getCoordSysModel();if(o){var a=o.uid,s=n.infoMap.get(a);s||(s={model:o,axisModels:[]},n.infoList.push(s),n.infoMap.set(a,s)),s.axisModels.push(i)}}})),n}var A$=function(){function e(){this.indexList=[],this.indexMap=[]}return e.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},e}(),D$=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=["percent","percent"],n}return a(t,e),t.prototype.init=function(e,t,n){var r=E$(e);this.settledOption=r,this.mergeDefaultAndTheme(e,n),this._doInit(r)},t.prototype.mergeOption=function(e){var t=E$(e);Object(l["I"])(this.option,e,!0),Object(l["I"])(this.settledOption,t,!0),this._doInit(t)},t.prototype._doInit=function(e){var t=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var n=this.settledOption;Object(l["k"])([["start","startValue"],["end","endValue"]],(function(e,r){"value"===this._rangePropMode[r]&&(t[e[0]]=n[e[0]]=null)}),this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),t=this._targetAxisInfoMap=Object(l["f"])(),n=this._fillSpecifiedTargetAxis(t);n?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(t,this._orient)),this._noTarget=!0,t.each((function(e){e.indexList.length&&(this._noTarget=!1)}),this)},t.prototype._fillSpecifiedTargetAxis=function(e){var t=!1;return Object(l["k"])(M$,(function(n){var r=this.getReferringComponents(T$(n),Ni);if(r.specified){t=!0;var i=new A$;Object(l["k"])(r.models,(function(e){i.add(e.componentIndex)})),e.set(n,i)}}),this),t},t.prototype._fillAutoTargetAxisByOrient=function(e,t){var n=this.ecModel,r=!0;if(r){var i="vertical"===t?"y":"x",o=n.findComponents({mainType:i+"Axis"});a(o,i)}if(r){o=n.findComponents({mainType:"singleAxis",filter:function(e){return e.get("orient",!0)===t}});a(o,"single")}function a(t,n){var i=t[0];if(i){var o=new A$;if(o.add(i.componentIndex),e.set(n,o),r=!1,"x"===n||"y"===n){var a=i.getReferringComponents("grid",Ri).models[0];a&&Object(l["k"])(t,(function(e){i.componentIndex!==e.componentIndex&&a===e.getReferringComponents("grid",Ri).models[0]&&o.add(e.componentIndex)}))}}}r&&Object(l["k"])(M$,(function(t){if(r){var i=n.findComponents({mainType:T$(t),filter:function(e){return"category"===e.get("type",!0)}});if(i[0]){var o=new A$;o.add(i[0].componentIndex),e.set(t,o),r=!1}}}),this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis((function(t){!e&&(e=t)}),this),"y"===e?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var t=this.ecModel.option;this.option.throttle=t.animation&&t.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var t=this._rangePropMode,n=this.get("rangeMode");Object(l["k"])([["start","startValue"],["end","endValue"]],(function(r,i){var o=null!=e[r[0]],a=null!=e[r[1]];o&&!a?t[i]="percent":!o&&a?t[i]="value":n?t[i]=n[i]:o&&(t[i]="percent")}))},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis((function(t,n){null==e&&(e=this.ecModel.getComponent(T$(t),n))}),this),e},t.prototype.eachTargetAxis=function(e,t){this._targetAxisInfoMap.each((function(n,r){Object(l["k"])(n.indexList,(function(n){e.call(t,r,n)}))}))},t.prototype.getAxisProxy=function(e,t){var n=this.getAxisModel(e,t);if(n)return n.__dzAxisProxy},t.prototype.getAxisModel=function(e,t){var n=this._targetAxisInfoMap.get(e);if(n&&n.indexMap[t])return this.ecModel.getComponent(T$(e),t)},t.prototype.setRawRange=function(e){var t=this.option,n=this.settledOption;Object(l["k"])([["start","startValue"],["end","endValue"]],(function(r){null==e[r[0]]&&null==e[r[1]]||(t[r[0]]=n[r[0]]=e[r[0]],t[r[1]]=n[r[1]]=e[r[1]])}),this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var t=this.option;Object(l["k"])(["start","startValue","end","endValue"],(function(n){t[n]=e[n]}))},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,t){if(null!=e||null!=t)return this.getAxisProxy(e,t).getDataValueWindow();var n=this.findRepresentativeAxisProxy();return n?n.getDataValueWindow():void 0},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var t,n=this._targetAxisInfoMap.keys(),r=0;ro[1];if(c&&!d&&!h)return!0;c&&(i=!0),d&&(t=!0),h&&(n=!0)}return i&&t&&n}))}else F$(r,(function(n){if("empty"===i)e.setData(t=t.map(n,(function(e){return a(e)?e:NaN})));else{var r={};r[n]=o,t.selectRange(r)}}));F$(r,(function(e){t.setApproximateExtent(o,e)}))}}))}function a(e){return e>=o[0]&&e<=o[1]}},e.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,n=this._dataExtent;F$(["min","max"],(function(r){var i=t.get(r+"Span"),o=t.get(r+"ValueSpan");null!=o&&(o=this.getAxisModel().axis.scale.parse(o)),null!=o?i=Nr(n[0]+o,n,[0,100],!0):null!=i&&(o=Nr(i,[0,100],n,!0)-n[0]),e[r+"Span"]=i,e[r+"ValueSpan"]=o}),this)},e.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,n=this._valueWindow;if(t){var r=Vr(n,[0,500]);r=Math.min(r,20);var i=e.axis.scale.rawExtentInfo;0!==t[0]&&i.setDeterminedMinMax("min",+n[0].toFixed(r)),100!==t[1]&&i.setDeterminedMinMax("max",+n[1].toFixed(r)),i.freeze()}},e}();function V$(e,t,n){var r=[1/0,-1/0];F$(n,(function(e){fO(r,e.getData(),t)}));var i=e.getAxisModel(),o=QT(i.axis.scale,i,r).calculate();return[o.min,o.max]}var W$=H$,U$={getTargetSeries:function(e){function t(t){e.eachComponent("dataZoom",(function(n){n.eachTargetAxis((function(r,i){var o=e.getComponent(T$(r),i);t(r,i,o,n)}))}))}t((function(e,t,n,r){n.__dzAxisProxy=null}));var n=[];t((function(t,r,i,o){i.__dzAxisProxy||(i.__dzAxisProxy=new W$(t,r,o,e),n.push(i.__dzAxisProxy))}));var r=Object(l["f"])();return Object(l["k"])(n,(function(e){Object(l["k"])(e.getTargetSeriesModels(),(function(e){r.set(e.uid,e)}))})),r},overallReset:function(e,t){e.eachComponent("dataZoom",(function(e){e.eachTargetAxis((function(t,n){e.getAxisProxy(t,n).reset(e)})),e.eachTargetAxis((function(n,r){e.getAxisProxy(n,r).filterData(e,t)}))})),e.eachComponent("dataZoom",(function(e){var t=e.findRepresentativeAxisProxy();if(t){var n=t.getDataPercentWindow(),r=t.getDataValueWindow();e.setCalculatedRange({start:n[0],end:n[1],startValue:r[0],endValue:r[1]})}}))}},$$=U$;function G$(e){e.registerAction("dataZoom",(function(e,t){var n=O$(t,e);Object(l["k"])(n,(function(t){t.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})}))}))}var q$=!1;function X$(e){q$||(q$=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,$$),G$(e),e.registerSubTypeDefaulter("dataZoom",(function(){return"slider"})))}function K$(e){e.registerComponentModel(P$),e.registerComponentView(Y$),X$(e)}var Z$=function(){function e(){}return e}(),J$={};function Q$(e,t){J$[e]=t}function eG(e){return J$[e]}var tG=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.optionUpdated=function(){e.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;l["k"](this.option.feature,(function(e,n){var r=eG(n);r&&(r.getDefaultOption&&(r.defaultOption=r.getDefaultOption(t)),l["I"](e,r.defaultOption))}))},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},t}(Kc),nG=tG;function rG(e,t,n){var r=t.getBoxLayoutParams(),i=t.get("padding"),o={width:n.getWidth(),height:n.getHeight()},a=Fc(r,o,i);Bc(t.get("orient"),e,t.get("itemGap"),a.width,a.height),zc(e,r,o,i)}function iG(e,t){var n=Sc(t.get("padding")),r=t.getItemStyle(["color","opacity"]);return r.fill=t.get("backgroundColor"),e=new ls({shape:{x:e.x-n[3],y:e.y-n[0],width:e.width+n[1]+n[3],height:e.height+n[0]+n[2],r:t.get("borderRadius")},style:r,silent:!0,z2:-1}),e}var oG=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.render=function(e,t,n,r){var i=this.group;if(i.removeAll(),e.get("show")){var o=+e.get("itemSize"),a="vertical"===e.get("orient"),s=e.get("feature")||{},u=this._features||(this._features={}),c=[];l["k"](s,(function(e,t){c.push(t)})),new _k(this._featureNames||[],c).add(d).update(d).remove(l["h"](d,null)).execute(),this._featureNames=c,rG(i,e,n),i.add(iG(i.getBoundingRect(),e)),a||i.eachChild((function(e){var t=e.__title,r=e.ensureState("emphasis"),a=r.textConfig||(r.textConfig={}),s=e.getTextContent(),u=s&&s.ensureState("emphasis");if(u&&!l["w"](u)&&t){var c=u.style||(u.style={}),d=nr(t,Cs.makeFont(c)),h=e.x+i.x,f=e.y+i.y+o,p=!1;f+d.height>n.getHeight()&&(a.position="top",p=!0);var m=p?-5-d.height:o+10;h+d.width/2>n.getWidth()?(a.position=["100%",m],c.align="right"):h-d.width/2<0&&(a.position=[0,m],c.align="left")}}))}function d(i,o){var a,l=c[i],d=c[o],f=s[l],p=new Tu(f,e,e.ecModel);if(r&&null!=r.newTitle&&r.featureName===l&&(f.title=r.newTitle),l&&!d){if(aG(l))a={onclick:p.option.onclick,featureName:l};else{var m=eG(l);if(!m)return;a=new m}u[l]=a}else if(a=u[d],!a)return;a.uid=Lu("toolbox-feature"),a.model=p,a.ecModel=t,a.api=n;var g=a instanceof Z$;l||!d?!p.get("show")||g&&a.unusable?g&&a.remove&&a.remove(t,n):(h(p,a,l),p.setIconStatus=function(e,t){var n=this.option,r=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[e]=t,r[e]&&("emphasis"===t?cl:dl)(r[e])},a instanceof Z$&&a.render&&a.render(p,t,n,r)):g&&a.dispose&&a.dispose(t,n)}function h(r,s,u){var c,d,h=r.getModel("iconStyle"),f=r.getModel(["emphasis","iconStyle"]),p=s instanceof Z$&&s.getIcons?s.getIcons():r.get("icon"),m=r.get("title")||{};l["C"](p)?(c={},c[u]=p):c=p,l["C"](m)?(d={},d[u]=m):d=m;var g=r.iconPaths={};l["k"](c,(function(u,c){var p=Eg(u,{},{x:-o/2,y:-o/2,width:o,height:o});p.setStyle(h.getItemStyle());var m=p.ensureState("emphasis");m.style=f.getItemStyle();var v=new Cs({style:{text:d[c],align:f.get("textAlign"),borderRadius:f.get("textBorderRadius"),padding:f.get("textPadding"),fill:null,font:du({fontStyle:f.get("textFontStyle"),fontFamily:f.get("textFontFamily"),fontSize:f.get("textFontSize"),fontWeight:f.get("textFontWeight")},t)},ignore:!0});p.setTextContent(v),Ng({el:p,componentModel:e,itemName:c,formatterParamsExtra:{title:d[c]}}),p.__title=d[c],p.on("mouseover",(function(){var t=f.getItemStyle(),r=a?null==e.get("right")&&"right"!==e.get("left")?"right":"left":null==e.get("bottom")&&"bottom"!==e.get("top")?"bottom":"top";v.setStyle({fill:f.get("textFill")||t.fill||t.stroke||"#000",backgroundColor:f.get("textBackgroundColor")}),p.setTextConfig({position:f.get("textPosition")||r}),v.ignore=!e.get("showTitle"),n.enterEmphasis(this)})).on("mouseout",(function(){"emphasis"!==r.get(["iconStatus",c])&&n.leaveEmphasis(this),v.hide()})),("emphasis"===r.get(["iconStatus",c])?cl:dl)(p),i.add(p),p.on("click",l["c"](s.onclick,s,t,n,c)),g[c]=p}))}},t.prototype.updateView=function(e,t,n,r){l["k"](this._features,(function(e){e instanceof Z$&&e.updateView&&e.updateView(e.model,t,n,r)}))},t.prototype.remove=function(e,t){l["k"](this._features,(function(n){n instanceof Z$&&n.remove&&n.remove(e,t)})),this.group.removeAll()},t.prototype.dispose=function(e,t){l["k"](this._features,(function(n){n instanceof Z$&&n.dispose&&n.dispose(e,t)}))},t.type="toolbox",t}(Tp);function aG(e){return 0===e.indexOf("my")}var sG=oG,lG=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.onclick=function(e,t){var n=this.model,r=n.get("name")||e.get("title.0.text")||"echarts",i="svg"===t.getZr().painter.getType(),o=i?"svg":n.get("type",!0)||"png",a=t.getConnectedDataURL({type:o,backgroundColor:n.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),l=s["a"].browser;if("function"!==typeof MouseEvent||!l.newEdge&&(l.ie||l.edge))if(window.navigator.msSaveOrOpenBlob||i){var u=a.split(","),c=u[0].indexOf("base64")>-1,d=i?decodeURIComponent(u[1]):u[1];c&&(d=window.atob(d));var h=r+"."+o;if(window.navigator.msSaveOrOpenBlob){var f=d.length,p=new Uint8Array(f);while(f--)p[f]=d.charCodeAt(f);var m=new Blob([p]);window.navigator.msSaveOrOpenBlob(m,h)}else{var g=document.createElement("iframe");document.body.appendChild(g);var v=g.contentWindow,y=v.document;y.open("image/svg+xml","replace"),y.write(d),y.close(),v.focus(),y.execCommand("SaveAs",!0,h),document.body.removeChild(g)}}else{var b=n.get("lang"),_='',w=window.open();w.document.write(_),w.document.title=r}else{var x=document.createElement("a");x.download=r+"."+o,x.target="_blank",x.href=a;var k=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});x.dispatchEvent(k)}},t.getDefaultOption=function(e){var t={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:e.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:e.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return t},t}(Z$),uG=lG,cG="__ec_magicType_stack__",dG=[["line","bar"],["stack"]],hG=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.getIcons=function(){var e=this.model,t=e.get("icon"),n={};return l["k"](e.get("type"),(function(e){t[e]&&(n[e]=t[e])})),n},t.getDefaultOption=function(e){var t={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:e.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return t},t.prototype.onclick=function(e,t,n){var r=this.model,i=r.get(["seriesIndex",n]);if(fG[n]){var o,a={series:[]},s=function(e){var t=e.subType,i=e.id,o=fG[n](t,i,e,r);o&&(l["i"](o,e.option),a.series.push(o));var s=e.coordinateSystem;if(s&&"cartesian2d"===s.type&&("line"===n||"bar"===n)){var u=s.getAxesByScale("ordinal")[0];if(u){var c=u.dim,d=c+"Axis",h=e.getReferringComponents(d,Ri).models[0],f=h.componentIndex;a[d]=a[d]||[];for(var p=0;p<=f;p++)a[d][f]=a[d][f]||{};a[d][f].boundaryGap="bar"===n}}};l["k"](dG,(function(e){l["r"](e,n)>=0&&l["k"](e,(function(e){r.setIconStatus(e,"normal")}))})),r.setIconStatus(n,"emphasis"),e.eachComponent({mainType:"series",query:null==i?null:{seriesIndex:i}},s);var u=n;"stack"===n&&(o=l["I"]({stack:r.option.title.tiled,tiled:r.option.title.stack},r.option.title),"emphasis"!==r.get(["iconStatus",n])&&(u="tiled")),t.dispatchAction({type:"changeMagicType",currentType:u,newOption:a,newTitle:o,featureName:"magicType"})}},t}(Z$),fG={line:function(e,t,n,r){if("bar"===e)return l["I"]({id:t,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},r.get(["option","line"])||{},!0)},bar:function(e,t,n,r){if("line"===e)return l["I"]({id:t,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},r.get(["option","bar"])||{},!0)},stack:function(e,t,n,r){var i=n.get("stack")===cG;if("line"===e||"bar"===e)return r.setIconStatus("stack",i?"normal":"emphasis"),l["I"]({id:t,stack:i?"":cG},r.get(["option","stack"])||{},!0)}};S_({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(e,t){t.mergeOption(e.newOption)}));var pG=hG,mG=new Array(60).join("-"),gG="\t";function vG(e){var t={},n=[],r=[];return e.eachRawSeries((function(e){var i=e.coordinateSystem;if(!i||"cartesian2d"!==i.type&&"polar"!==i.type)n.push(e);else{var o=i.getBaseAxis();if("category"===o.type){var a=o.dim+"_"+o.index;t[a]||(t[a]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},r.push({axisDim:o.dim,axisIndex:o.index})),t[a].series.push(e)}else n.push(e)}})),{seriesGroupByCategoryAxis:t,other:n,meta:r}}function yG(e){var t=[];return l["k"](e,(function(e,n){var r=e.categoryAxis,i=e.valueAxis,o=i.dim,a=[" "].concat(l["H"](e.series,(function(e){return e.name}))),s=[r.model.getCategories()];l["k"](e.series,(function(e){var t=e.getRawData();s.push(e.getRawData().mapArray(t.mapDimension(o),(function(e){return e})))}));for(var u=[a.join(gG)],c=0;c=0)return!0}var kG=new RegExp("["+gG+"]+","g");function MG(e){for(var t=e.split(/\n+/g),n=wG(t.shift()).split(kG),r=[],i=l["H"](n,(function(e){return{name:e,data:[]}})),o=0;o=0;i--){var o=n[i];if(o[r])break}if(i<0){var a=e.queryComponents({mainType:"dataZoom",subType:"select",id:r})[0];if(a){var s=a.getPercentRange();n[0][r]={dataZoomId:r,start:s[0],end:s[1]}}}})),n.push(t)}function IG(e){var t=RG(e),n=t[t.length-1];t.length>1&&t.pop();var r={};return AG(n,(function(e,n){for(var i=t.length-1;i>=0;i--)if(e=t[i][n],e){r[n]=e;break}})),r}function jG(e){DG(e).snapshots=null}function PG(e){return RG(e).length}function RG(e){var t=DG(e);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var NG=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.onclick=function(e,t){jG(e),t.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(e){var t={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:e.getLocaleModel().get(["toolbox","restore","title"])};return t},t}(Z$);S_({type:"restore",event:"restore",update:"prepareAndUpdate"},(function(e,t){t.resetOption("recreate")}));var BG=NG,YG=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],FG=function(){function e(e,t,n){var r=this;this._targetInfoList=[];var i=HG(t,e);Object(l["k"])(VG,(function(e,t){(!n||!n.include||Object(l["r"])(n.include,t)>=0)&&e(i,r._targetInfoList)}))}return e.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,(function(e,t,n){if((e.coordRanges||(e.coordRanges=[])).push(t),!e.coordRange){e.coordRange=t;var r=$G[e.brushType](0,n,t);e.__rangeOffset={offset:qG[e.brushType](r.values,e.range,[1,1]),xyMinMax:r.xyMinMax}}})),e},e.prototype.matchOutputRanges=function(e,t,n){Object(l["k"])(e,(function(e){var r=this.findTargetInfo(e,t);r&&!0!==r&&Object(l["k"])(r.coordSyses,(function(r){var i=$G[e.brushType](1,r,e.range,!0);n(e,i.values,r,t)}))}),this)},e.prototype.setInputRanges=function(e,t){Object(l["k"])(e,(function(e){var n=this.findTargetInfo(e,t);if(e.range=e.range||[],n&&!0!==n){e.panelId=n.panelId;var r=$G[e.brushType](0,n.coordSys,e.coordRange),i=e.__rangeOffset;e.range=i?qG[e.brushType](r.values,i.offset,KG(r.xyMinMax,i.xyMinMax)):r.values}}),this)},e.prototype.makePanelOpts=function(e,t){return Object(l["H"])(this._targetInfoList,(function(n){var r=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:t?t(n):null,clipPath:kB(r),isTargetByCursor:SB(r,e,n.coordSysModel),getLinearBrushOtherExtent:MB(r)}}))},e.prototype.controlSeries=function(e,t,n){var r=this.findTargetInfo(e,n);return!0===r||r&&Object(l["r"])(r.coordSyses,t.coordinateSystem)>=0},e.prototype.findTargetInfo=function(e,t){for(var n=this._targetInfoList,r=HG(t,e),i=0;ie[1]&&e.reverse(),e}function HG(e,t){return ji(e,t,{includeMainTypes:YG})}var VG={grid:function(e,t){var n=e.xAxisModels,r=e.yAxisModels,i=e.gridModels,o=Object(l["f"])(),a={},s={};(n||r||i)&&(Object(l["k"])(n,(function(e){var t=e.axis.grid.model;o.set(t.id,t),a[t.id]=!0})),Object(l["k"])(r,(function(e){var t=e.axis.grid.model;o.set(t.id,t),s[t.id]=!0})),Object(l["k"])(i,(function(e){o.set(e.id,e),a[e.id]=!0,s[e.id]=!0})),o.each((function(e){var i=e.coordinateSystem,o=[];Object(l["k"])(i.getCartesians(),(function(e,t){(Object(l["r"])(n,e.getAxis("x").model)>=0||Object(l["r"])(r,e.getAxis("y").model)>=0)&&o.push(e)})),t.push({panelId:"grid--"+e.id,gridModel:e,coordSysModel:e,coordSys:o[0],coordSyses:o,getPanelRect:UG.grid,xAxisDeclared:a[e.id],yAxisDeclared:s[e.id]})})))},geo:function(e,t){Object(l["k"])(e.geoModels,(function(e){var n=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:UG.geo})}))}},WG=[function(e,t){var n=e.xAxisModel,r=e.yAxisModel,i=e.gridModel;return!i&&n&&(i=n.axis.grid.model),!i&&r&&(i=r.axis.grid.model),i&&i===t.gridModel},function(e,t){var n=e.geoModel;return n&&n===t.geoModel}],UG={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(Mg(e)),t}},$G={lineX:Object(l["h"])(GG,0),lineY:Object(l["h"])(GG,1),rect:function(e,t,n,r){var i=e?t.pointToData([n[0][0],n[1][0]],r):t.dataToPoint([n[0][0],n[1][0]],r),o=e?t.pointToData([n[0][1],n[1][1]],r):t.dataToPoint([n[0][1],n[1][1]],r),a=[zG([i[0],o[0]]),zG([i[1],o[1]])];return{values:a,xyMinMax:a}},polygon:function(e,t,n,r){var i=[[1/0,-1/0],[1/0,-1/0]],o=Object(l["H"])(n,(function(n){var o=e?t.pointToData(n,r):t.dataToPoint(n,r);return i[0][0]=Math.min(i[0][0],o[0]),i[1][0]=Math.min(i[1][0],o[1]),i[0][1]=Math.max(i[0][1],o[0]),i[1][1]=Math.max(i[1][1],o[1]),o}));return{values:o,xyMinMax:i}}};function GG(e,t,n,r){var i=n.getAxis(["x","y"][e]),o=zG(Object(l["H"])([0,1],(function(e){return t?i.coordToData(i.toLocalCoord(r[e]),!0):i.toGlobalCoord(i.dataToCoord(r[e]))}))),a=[];return a[e]=o,a[1-e]=[NaN,NaN],{values:o,xyMinMax:a}}var qG={lineX:Object(l["h"])(XG,0),lineY:Object(l["h"])(XG,1),rect:function(e,t,n){return[[e[0][0]-n[0]*t[0][0],e[0][1]-n[0]*t[0][1]],[e[1][0]-n[1]*t[1][0],e[1][1]-n[1]*t[1][1]]]},polygon:function(e,t,n){return Object(l["H"])(e,(function(e,r){return[e[0]-n[0]*t[r][0],e[1]-n[1]*t[r][1]]}))}};function XG(e,t,n,r){return[t[0]-r[e]*n[0],t[1]-r[e]*n[1]]}function KG(e,t){var n=ZG(e),r=ZG(t),i=[n[0]/r[0],n[1]/r[1]];return isNaN(i[0])&&(i[0]=1),isNaN(i[1])&&(i[1]=1),i}function ZG(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}var JG=FG,QG=l["k"],eq=Ti("toolbox-dataZoom_"),tq=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.render=function(e,t,n,r){this._brushController||(this._brushController=new xB(n.getZr()),this._brushController.on("brush",l["c"](this._onBrush,this)).mount()),oq(e,t,this,r,n),iq(e,t)},t.prototype.onclick=function(e,t,n){nq[n].call(this)},t.prototype.remove=function(e,t){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,t){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var t=e.areas;if(e.isEnd&&t.length){var n={},r=this.ecModel;this._brushController.updateCovers([]);var i=new JG(rq(this.model),r,{include:["grid"]});i.matchOutputRanges(t,r,(function(e,t,n){if("cartesian2d"===n.type){var r=e.brushType;"rect"===r?(o("x",n,t[0]),o("y",n,t[1])):o({lineX:"x",lineY:"y"}[r],n,t)}})),EG(r,n),this._dispatchZoomAction(n)}function o(e,t,i){var o=t.getAxis(e),s=o.model,l=a(e,s,r),u=l.findRepresentativeAxisProxy(s).getMinMaxSpan();null==u.minValueSpan&&null==u.maxValueSpan||(i=sN(0,i.slice(),o.scale.getExtent(),0,u.minValueSpan,u.maxValueSpan)),l&&(n[l.id]={dataZoomId:l.id,startValue:i[0],endValue:i[1]})}function a(e,t,n){var r;return n.eachComponent({mainType:"dataZoom",subType:"select"},(function(n){var i=n.getAxisModel(e,t.componentIndex);i&&(r=n)})),r}},t.prototype._dispatchZoomAction=function(e){var t=[];QG(e,(function(e,n){t.push(l["d"](e))})),t.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:t})},t.getDefaultOption=function(e){var t={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:e.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return t},t}(Z$),nq={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(IG(this.ecModel))}};function rq(e){var t={xAxisIndex:e.get("xAxisIndex",!0),yAxisIndex:e.get("yAxisIndex",!0),xAxisId:e.get("xAxisId",!0),yAxisId:e.get("yAxisId",!0)};return null==t.xAxisIndex&&null==t.xAxisId&&(t.xAxisIndex="all"),null==t.yAxisIndex&&null==t.yAxisId&&(t.yAxisIndex="all"),t}function iq(e,t){e.setIconStatus("back",PG(t)>1?"emphasis":"normal")}function oq(e,t,n,r,i){var o=n._isZoomActive;r&&"takeGlobalCursor"===r.type&&(o="dataZoomSelect"===r.key&&r.dataZoomSelectActive),n._isZoomActive=o,e.setIconStatus("zoom",o?"emphasis":"normal");var a=new JG(rq(e),t,{include:["grid"]}),s=a.makePanelOpts(i,(function(e){return e.xAxisDeclared&&!e.yAxisDeclared?"lineX":!e.xAxisDeclared&&e.yAxisDeclared?"lineY":"rect"}));n._brushController.setPanels(s).enableBrush(!(!o||!s.length)&&{brushType:"auto",brushStyle:e.getModel("brushStyle").getItemStyle()})}bd("dataZoom",(function(e){var t=e.getComponent("toolbox",0),n=["feature","dataZoom"];if(t&&null!=t.get(n)){var r=t.getModel(n),i=[],o=rq(r),a=ji(e,o);return QG(a.xAxisModels,(function(e){return s(e,"xAxis","xAxisIndex")})),QG(a.yAxisModels,(function(e){return s(e,"yAxis","yAxisIndex")})),i}function s(e,t,n){var o=e.componentIndex,a={type:"select",$fromToolbox:!0,filterMode:r.get("filterMode",!0)||"filter",id:eq+t+o};a[n]=o,i.push(a)}}));var aq=tq;function sq(e){e.registerComponentModel(nG),e.registerComponentView(sG),Q$("saveAsImage",uG),Q$("magicType",pG),Q$("dataView",LG),Q$("dataZoom",aq),Q$("restore",BG),N_(K$)}var lq=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(Kc),uq=lq;function cq(e){var t=e.get("confine");return null!=t?!!t:"richText"===e.get("renderMode")}function dq(e){if(s["a"].domSupported)for(var t=document.documentElement.style,n=0,r=e.length;n-1?(u+="top:50%",c+="translateY(-50%) rotate("+(o="left"===a?-225:-45)+"deg)"):(u+="left:50%",c+="translateX(-50%) rotate("+(o="top"===a?225:45)+"deg)");var d=o*Math.PI/180,h=s+i,f=h*Math.abs(Math.cos(d))+h*Math.abs(Math.sin(d)),p=Math.round(100*((f-Math.SQRT2*i)/2+Math.SQRT2*i-(f-h)/2))/100;u+=";"+a+":-"+p+"px";var m=t+" solid "+i+"px;",g=["position:absolute;width:"+s+"px;height:"+s+"px;z-index:-1;",u+";"+c+";","border-bottom:"+m,"border-right:"+m,"background-color:"+r+";"];return'
'}function wq(e,t){var n="cubic-bezier(0.23,1,0.32,1)",r=" "+e/2+"s "+n,i="opacity"+r+",visibility"+r;return t||(r=" "+e+"s "+n,i+=s["a"].transformSupported?","+vq+r:",left"+r+",top"+r),gq+":"+i}function xq(e,t,n){var r=e.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!s["a"].transformSupported)return n?"top:"+i+";left:"+r+";":[["top",i],["left",r]];var o=s["a"].transform3dSupported,a="translate"+(o?"3d":"")+"("+r+","+i+(o?",0":"")+")";return n?"top:0;left:0;"+vq+":"+a+";":[["top",0],["left",0],[hq,a]]}function kq(e){var t=[],n=e.get("fontSize"),r=e.getTextColor();r&&t.push("color:"+r),t.push("font:"+e.getFont());var i=Object(l["P"])(e.get("lineHeight"),Math.round(3*n/2));n&&t.push("line-height:"+i+"px");var o=e.get("textShadowColor"),a=e.get("textShadowBlur")||0,s=e.get("textShadowOffsetX")||0,u=e.get("textShadowOffsetY")||0;return o&&a&&t.push("text-shadow:"+s+"px "+u+"px "+a+"px "+o),Object(l["k"])(["decoration","align"],(function(n){var r=e.get(n);r&&t.push("text-"+n+":"+r)})),t.join(";")}function Mq(e,t,n){var r=[],i=e.get("transitionDuration"),o=e.get("backgroundColor"),a=e.get("shadowBlur"),s=e.get("shadowColor"),u=e.get("shadowOffsetX"),c=e.get("shadowOffsetY"),d=e.getModel("textStyle"),h=up(e,"html"),f=u+"px "+c+"px "+a+"px "+s;return r.push("box-shadow:"+f),t&&i&&r.push(wq(i,n)),o&&r.push("background-color:"+o),Object(l["k"])(["width","color","radius"],(function(t){var n="border-"+t,i=Mc(n),o=e.get(i);null!=o&&r.push(n+":"+o+("color"===t?"":"px"))})),r.push(kq(d)),null!=h&&r.push("padding:"+Sc(h).join("px ")+"px"),r.join(";")+";"}function Sq(e,t,n,r,i){var o=t&&t.painter;if(n){var a=o&&o.getViewportRoot();a&&B(e,a,n,r,i)}else{e[0]=r,e[1]=i;var s=o&&o.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var Cq=function(){function e(e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,s["a"].wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var r=this._zr=e.getZr(),i=t.appendTo,o=i&&(Object(l["C"])(i)?document.querySelector(i):Object(l["v"])(i)?i:Object(l["w"])(i)&&i(e.getDom()));Sq(this._styleCoord,r,o,e.getWidth()/2,e.getHeight()/2),(o||e.getDom()).appendChild(n),this._api=e,this._container=o;var a=this;n.onmouseenter=function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0},n.onmousemove=function(e){if(e=e||window.event,!a._enterable){var t=r.handler,n=r.painter.getViewportRoot();J(n,e,!0),t.dispatch("mousemove",e)}},n.onmouseleave=function(){a._inContent=!1,a._enterable&&a._show&&a.hideLater(a._hideDelay)}}return e.prototype.update=function(e){if(!this._container){var t=this._api.getDom(),n=mq(t,"position"),r=t.style;"absolute"!==r.position&&"absolute"!==n&&(r.position="relative")}var i=e.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this.el.className=e.get("className")||""},e.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,r=n.style,i=this._styleCoord;n.innerHTML?r.cssText=yq+Mq(e,!this._firstShow,this._longHide)+xq(i[0],i[1],!0)+"border-color:"+Ec(t)+";"+(e.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):r.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(e,t,n,r,i){var o=this.el;if(null!=e){var a="";if(Object(l["C"])(i)&&"item"===n.get("trigger")&&!cq(n)&&(a=_q(n,r,i)),Object(l["C"])(e))o.innerHTML=e+a;else if(e){o.innerHTML="",Object(l["t"])(e)||(e=[e]);for(var s=0;s=0?this._tryShow(n,r):"leave"===e&&this._hide(r))}),this))},t.prototype._keepShow=function(){var e=this._tooltipModel,t=this._ecModel,n=this._api,r=e.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==r&&"click"!==r){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!n.isDisposed()&&i.manuallyShowTip(e,t,n,{x:i._lastX,y:i._lastY,dataByCoordSys:i._lastDataByCoordSys})}))}},t.prototype.manuallyShowTip=function(e,t,n,r){if(r.from!==this.uid&&!s["a"].node&&n.getDom()){var i=Rq(r,n);this._ticket="";var o=r.dataByCoordSys,a=zq(r,t,n);if(a){var l=a.el.getBoundingRect().clone();l.applyTransform(a.el.transform),this._tryShow({offsetX:l.x+l.width/2,offsetY:l.y+l.height/2,target:a.el,position:r.position,positionDefault:"bottom"},i)}else if(r.tooltip&&null!=r.x&&null!=r.y){var u=Iq;u.x=r.x,u.y=r.y,u.update(),Ts(u).tooltipConfig={name:null,option:r.tooltip},this._tryShow({offsetX:r.x,offsetY:r.y,target:u},i)}else if(o)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:o,tooltipOption:r.tooltipOption},i);else if(null!=r.seriesIndex){if(this._manuallyAxisShowTip(e,t,n,r))return;var c=vW(r,t),d=c.point[0],h=c.point[1];null!=d&&null!=h&&this._tryShow({offsetX:d,offsetY:h,target:c.el,position:r.position,positionDefault:"bottom"},i)}else null!=r.x&&null!=r.y&&(n.dispatchAction({type:"updateAxisPointer",x:r.x,y:r.y}),this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,target:n.getZr().findHover(r.x,r.y).target},i))}},t.prototype.manuallyHideTip=function(e,t,n,r){var i=this._tooltipContent;this._tooltipModel&&i.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,r.from!==this.uid&&this._hide(Rq(r,n))},t.prototype._manuallyAxisShowTip=function(e,t,n,r){var i=r.seriesIndex,o=r.dataIndex,a=t.getComponent("axisPointer").coordSysAxesInfo;if(null!=i&&null!=o&&null!=a){var s=t.getSeriesByIndex(i);if(s){var l=s.getData(),u=Pq([l.getItemModel(o),s,(s.coordinateSystem||{}).model],this._tooltipModel);if("axis"===u.get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:i,dataIndex:o,position:r.position}),!0}}},t.prototype._tryShow=function(e,t){var n=e.target,r=this._tooltipModel;if(r){this._lastX=e.offsetX,this._lastY=e.offsetY;var i=e.dataByCoordSys;if(i&&i.length)this._showAxisTooltip(i,e);else if(n){var o,a,s=Ts(n);if("legend"===s.ssrType)return;this._lastDataByCoordSys=null,Gv(n,(function(e){return null!=Ts(e).dataIndex?(o=e,!0):null!=Ts(e).tooltipConfig?(a=e,!0):void 0}),!0),o?this._showSeriesItemTooltip(e,o,t):a?this._showComponentItemTooltip(e,a,t):this._hide(t)}else this._lastDataByCoordSys=null,this._hide(t)}},t.prototype._showOrMove=function(e,t){var n=e.get("showDelay");t=Object(l["c"])(t,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(t,n):t()},t.prototype._showAxisTooltip=function(e,t){var n=this._ecModel,r=this._tooltipModel,i=[t.offsetX,t.offsetY],o=Pq([t.tooltipOption],r),a=this._renderMode,s=[],u=Xf("section",{blocks:[],noHeader:!0}),c=[],d=new cp;Object(l["k"])(e,(function(e){Object(l["k"])(e.dataByAxis,(function(e){var t=n.getComponent(e.axisDim+"Axis",e.axisIndex),i=e.value;if(t&&null!=i){var o=GV(i,t.axis,n,e.seriesDataIndices,e.valueLabelOpt),h=Xf("section",{header:o,noHeader:!Object(l["T"])(o),sortBlocks:!0,blocks:[]});u.blocks.push(h),Object(l["k"])(e.seriesDataIndices,(function(u){var f=n.getSeriesByIndex(u.seriesIndex),p=u.dataIndexInside,m=f.getDataParams(p);if(!(m.dataIndex<0)){m.axisDim=e.axisDim,m.axisIndex=e.axisIndex,m.axisType=e.axisType,m.axisId=e.axisId,m.axisValue=sO(t.axis,{value:i}),m.axisValueLabel=o,m.marker=d.makeTooltipMarker("item",Ec(m.color),a);var g=rf(f.formatTooltip(p,!0,null)),v=g.frag;if(v){var y=Pq([f],r).get("valueFormatter");h.blocks.push(y?Object(l["m"])({valueFormatter:y},v):v)}g.text&&c.push(g.text),s.push(m)}}))}}))})),u.blocks.reverse(),c.reverse();var h=t.position,f=o.get("order"),p=tp(u,d,a,f,n.get("useUTC"),o.get("textStyle"));p&&c.unshift(p);var m="richText"===a?"\n\n":"
",g=c.join(m);this._showOrMove(o,(function(){this._updateContentNotChangedOnAxis(e,s)?this._updatePosition(o,h,i[0],i[1],this._tooltipContent,s):this._showTooltipContent(o,g,s,Math.random()+"",i[0],i[1],h,null,d)}))},t.prototype._showSeriesItemTooltip=function(e,t,n){var r=this._ecModel,i=Ts(t),o=i.seriesIndex,a=r.getSeriesByIndex(o),s=i.dataModel||a,u=i.dataIndex,c=i.dataType,d=s.getData(c),h=this._renderMode,f=e.positionDefault,p=Pq([d.getItemModel(u),s,a&&(a.coordinateSystem||{}).model],this._tooltipModel,f?{position:f}:null),m=p.get("trigger");if(null==m||"item"===m){var g=s.getDataParams(u,c),v=new cp;g.marker=v.makeTooltipMarker("item",Ec(g.color),h);var y=rf(s.formatTooltip(u,!1,c)),b=p.get("order"),_=p.get("valueFormatter"),w=y.frag,x=w?tp(_?Object(l["m"])({valueFormatter:_},w):w,v,h,b,r.get("useUTC"),p.get("textStyle")):y.text,k="item_"+s.name+"_"+u;this._showOrMove(p,(function(){this._showTooltipContent(p,x,g,k,e.offsetX,e.offsetY,e.position,e.target,v)})),n({type:"showTip",dataIndexInside:u,dataIndex:d.getRawIndex(u),seriesIndex:o,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,t,n){var r="html"===this._renderMode,i=Ts(t),o=i.tooltipConfig,a=o.option||{},s=a.encodeHTMLContent;if(Object(l["C"])(a)){var u=a;a={content:u,formatter:u},s=!0}s&&r&&a.content&&(a=Object(l["d"])(a),a.content=U(a.content));var c=[a],d=this._ecModel.getComponent(i.componentMainType,i.componentIndex);d&&c.push(d),c.push({formatter:a.content});var h=e.positionDefault,f=Pq(c,this._tooltipModel,h?{position:h}:null),p=f.get("content"),m=Math.random()+"",g=new cp;this._showOrMove(f,(function(){var n=Object(l["d"])(f.get("formatterParams")||{});this._showTooltipContent(f,p,n,m,e.offsetX,e.offsetY,e.position,t,g)})),n({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,t,n,r,i,o,a,s,u){if(this._ticket="",e.get("showContent")&&e.get("show")){var c=this._tooltipContent;c.setEnterable(e.get("enterable"));var d=e.get("formatter");a=a||e.get("position");var h=t,f=this._getNearestPoint([i,o],n,e.get("trigger"),e.get("borderColor")),p=f.color;if(d)if(Object(l["C"])(d)){var m=e.ecModel.get("useUTC"),g=Object(l["t"])(n)?n[0]:n,v=g&&g.axisType&&g.axisType.indexOf("time")>=0;h=d,v&&(h=oc(g.axisValue,h,m)),h=Lc(h,n,!0)}else if(Object(l["w"])(d)){var y=Object(l["c"])((function(t,r){t===this._ticket&&(c.setContent(r,u,e,p,a),this._updatePosition(e,a,i,o,c,n,s))}),this);this._ticket=r,h=d(n,r,y)}else h=d;c.setContent(h,u,e,p,a),c.show(e,p),this._updatePosition(e,a,i,o,c,n,s)}},t.prototype._getNearestPoint=function(e,t,n,r){return"axis"===n||Object(l["t"])(t)?{color:r||("html"===this._renderMode?"#fff":"none")}:Object(l["t"])(t)?void 0:{color:r||t.color||t.borderColor}},t.prototype._updatePosition=function(e,t,n,r,i,o,a){var s=this._api.getWidth(),u=this._api.getHeight();t=t||e.get("position");var c=i.getSize(),d=e.get("align"),h=e.get("verticalAlign"),f=a&&a.getBoundingRect().clone();if(a&&f.applyTransform(a.transform),Object(l["w"])(t)&&(t=t([n,r],o,i.el,f,{viewSize:[s,u],contentSize:c.slice()})),Object(l["t"])(t))n=Br(t[0],s),r=Br(t[1],u);else if(Object(l["A"])(t)){var p=t;p.width=c[0],p.height=c[1];var m=Fc(p,{width:s,height:u});n=m.x,r=m.y,d=null,h=null}else if(Object(l["C"])(t)&&a){var g=Yq(t,f,c,e.get("borderWidth"));n=g[0],r=g[1]}else{g=Nq(n,r,i,s,u,d?null:20,h?null:20);n=g[0],r=g[1]}if(d&&(n-=Fq(d)?c[0]/2:"right"===d?c[0]:0),h&&(r-=Fq(h)?c[1]/2:"bottom"===h?c[1]:0),cq(e)){g=Bq(n,r,i,s,u);n=g[0],r=g[1]}i.moveTo(n,r)},t.prototype._updateContentNotChangedOnAxis=function(e,t){var n=this._lastDataByCoordSys,r=this._cbParamsList,i=!!n&&n.length===e.length;return i&&Object(l["k"])(n,(function(n,o){var a=n.dataByAxis||[],s=e[o]||{},u=s.dataByAxis||[];i=i&&a.length===u.length,i&&Object(l["k"])(a,(function(e,n){var o=u[n]||{},a=e.seriesDataIndices||[],s=o.seriesDataIndices||[];i=i&&e.value===o.value&&e.axisType===o.axisType&&e.axisId===o.axisId&&a.length===s.length,i&&Object(l["k"])(a,(function(e,t){var n=s[t];i=i&&e.seriesIndex===n.seriesIndex&&e.dataIndex===n.dataIndex})),r&&Object(l["k"])(e.seriesDataIndices,(function(e){var n=e.seriesIndex,o=t[n],a=r[n];o&&a&&a.data!==o.data&&(i=!1)}))}))})),this._lastDataByCoordSys=e,this._cbParamsList=t,!!i},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,t){!s["a"].node&&t.getDom()&&(ev(this,"_updatePosition"),this._tooltipContent.dispose(),pW("itemTooltip",t))},t.type="tooltip",t}(Tp);function Pq(e,t,n){var r,i=t.ecModel;n?(r=new Tu(n,i,i),r=new Tu(t.option,r,i)):r=t;for(var o=e.length-1;o>=0;o--){var a=e[o];a&&(a instanceof Tu&&(a=a.get("tooltip",!0)),Object(l["C"])(a)&&(a={formatter:a}),a&&(r=new Tu(a,r,i)))}return r}function Rq(e,t){return e.dispatchAction||Object(l["c"])(t.dispatchAction,t)}function Nq(e,t,n,r,i,o,a){var s=n.getSize(),l=s[0],u=s[1];return null!=o&&(e+l+o+2>r?e-=l+o:e+=o),null!=a&&(t+u+a>i?t-=u+a:t+=a),[e,t]}function Bq(e,t,n,r,i){var o=n.getSize(),a=o[0],s=o[1];return e=Math.min(e+a,r)-a,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function Yq(e,t,n,r){var i=n[0],o=n[1],a=Math.ceil(Math.SQRT2*r)+8,s=0,l=0,u=t.width,c=t.height;switch(e){case"inside":s=t.x+u/2-i/2,l=t.y+c/2-o/2;break;case"top":s=t.x+u/2-i/2,l=t.y-o-a;break;case"bottom":s=t.x+u/2-i/2,l=t.y+c+a;break;case"left":s=t.x-i-a,l=t.y+c/2-o/2;break;case"right":s=t.x+u+a,l=t.y+c/2-o/2}return[s,l]}function Fq(e){return"center"===e||"middle"===e}function zq(e,t,n){var r=Pi(e).queryOptionMap,i=r.keys()[0];if(i&&"series"!==i){var o=Bi(t,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),a=o.models[0];if(a){var s,l=n.getViewOfComponentModel(a);return l.group.traverse((function(t){var n=Ts(t).tooltipConfig;if(n&&n.name===e.name)return s=t,!0})),s?{componentMainType:i,componentIndex:a.componentIndex,el:s}:void 0}}}var Hq=jq;function Vq(e){N_(AW),e.registerComponentModel(uq),e.registerComponentView(Hq),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},l["L"]),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},l["L"])}var Wq=["rect","polygon","keep","clear"];function Uq(e,t){var n=ci(e?e.brush:[]);if(n.length){var r=[];l["k"](n,(function(e){var t=e.hasOwnProperty("toolbox")?e.toolbox:[];t instanceof Array&&(r=r.concat(t))}));var i=e&&e.toolbox;l["t"](i)&&(i=i[0]),i||(i={feature:{}},e.toolbox=[i]);var o=i.feature||(i.feature={}),a=o.brush||(o.brush={}),s=a.type||(a.type=[]);s.push.apply(s,r),$q(s),t&&!s.length&&s.push.apply(s,Wq)}}function $q(e){var t={};l["k"](e,(function(e){t[e]=1})),e.length=0,l["k"](t,(function(t,n){e.push(n)}))}var Gq=l["k"];function qq(e){if(e)for(var t in e)if(e.hasOwnProperty(t))return!0}function Xq(e,t,n){var r={};return Gq(t,(function(t){var o=r[t]=i();Gq(e[t],(function(e,r){if(pj.isValidType(r)){var i={type:r,visual:e};n&&n(i,t),o[r]=new pj(i),"opacity"===r&&(i=l["d"](i),i.type="colorAlpha",o.__hidden.__alphaForOpacity=new pj(i))}}))})),r;function i(){var e=function(){};e.prototype.__hidden=e.prototype;var t=new e;return t}}function Kq(e,t,n){var r;l["k"](n,(function(e){t.hasOwnProperty(e)&&qq(t[e])&&(r=!0)})),r&&l["k"](n,(function(n){t.hasOwnProperty(n)&&qq(t[n])?e[n]=l["d"](t[n]):delete e[n]}))}function Zq(e,t,n,r,i,o){var a,s={};function u(e){return zv(n,a,e)}function c(e,t){Vv(n,a,e,t)}function d(e,l){a=null==o?e:l;var d=n.getRawDataItem(a);if(!d||!1!==d.visualMap)for(var h=r.call(i,e),f=t[h],p=s[h],m=0,g=p.length;mt[0][1]&&(t[0][1]=o[0]),o[1]t[1][1]&&(t[1][1]=o[1])}return t&&fX(t)}};function fX(e){return new Oe(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var pX=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.init=function(e,t){this.ecModel=e,this.api=t,this.model,(this._brushController=new xB(t.getZr())).on("brush",l["c"](this._onBrush,this)).mount()},t.prototype.render=function(e,t,n,r){this.model=e,this._updateController(e,t,n,r)},t.prototype.updateTransform=function(e,t,n,r){aX(t),this._updateController(e,t,n,r)},t.prototype.updateVisual=function(e,t,n,r){this.updateTransform(e,t,n,r)},t.prototype.updateView=function(e,t,n,r){this._updateController(e,t,n,r)},t.prototype._updateController=function(e,t,n,r){(!r||r.$from!==e.id)&&this._brushController.setPanels(e.brushTargetManager.makePanelOpts(n)).enableBrush(e.brushOption).updateCovers(e.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(e){var t=this.model.id,n=this.model.brushTargetManager.setOutputRanges(e.areas,this.ecModel);(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:t,areas:l["d"](n),$from:t}),e.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:t,areas:l["d"](n),$from:t})},t.type="brush",t}(Tp),mX=pX,gX="#ddd",vX=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.areas=[],n.brushOption={},n}return a(t,e),t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&Kq(n,e,["inBrush","outOfBrush"]);var r=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:gX},r.hasOwnProperty("liftZ")||(r.liftZ=5)},t.prototype.setAreas=function(e){e&&(this.areas=l["H"](e,(function(e){return yX(this.option,e)}),this))},t.prototype.setBrushOption=function(e){this.brushOption=yX(this.option,e),this.brushType=this.brushOption.brushType},t.type="brush",t.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],t.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},t}(Kc);function yX(e,t){return l["I"]({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new Tu(e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}var bX=vX,_X=["rect","polygon","lineX","lineY","keep","clear"],wX=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.render=function(e,t,n){var r,i,o;t.eachComponent({mainType:"brush"},(function(e){r=e.brushType,i=e.brushOption.brushMode||"single",o=o||!!e.areas.length})),this._brushType=r,this._brushMode=i,l["k"](e.get("type",!0),(function(t){e.setIconStatus(t,("keep"===t?"multiple"===i:"clear"===t?o:t===r)?"emphasis":"normal")}))},t.prototype.updateView=function(e,t,n){this.render(e,t,n)},t.prototype.getIcons=function(){var e=this.model,t=e.get("icon",!0),n={};return l["k"](e.get("type",!0),(function(e){t[e]&&(n[e]=t[e])})),n},t.prototype.onclick=function(e,t,n){var r=this._brushType,i=this._brushMode;"clear"===n?(t.dispatchAction({type:"axisAreaSelect",intervals:[]}),t.dispatchAction({type:"brush",command:"clear",areas:[]})):t.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?r:r!==n&&n,brushMode:"keep"===n?"multiple"===i?"single":"multiple":i}})},t.getDefaultOption=function(e){var t={show:!0,type:_X.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:e.getLocaleModel().get(["toolbox","brush","title"])};return t},t}(Z$),xX=wX;function kX(e){e.registerComponentView(mX),e.registerComponentModel(bX),e.registerPreprocessor(Uq),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,sX),e.registerAction({type:"brush",event:"brush",update:"updateVisual"},(function(e,t){t.eachComponent({mainType:"brush",query:e},(function(t){t.setAreas(e.areas)}))})),e.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},l["L"]),e.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},l["L"]),Q$("brush",xX)}var MX=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:"box",ignoreSize:!0},n}return a(t,e),t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(Kc),SX=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.render=function(e,t,n){if(this.group.removeAll(),e.get("show")){var r=this.group,i=e.getModel("textStyle"),o=e.getModel("subtextStyle"),a=e.get("textAlign"),s=l["P"](e.get("textBaseline"),e.get("textVerticalAlign")),u=new Cs({style:ru(i,{text:e.get("text"),fill:i.getTextColor()},{disableBox:!0}),z2:10}),c=u.getBoundingRect(),d=e.get("subtext"),h=new Cs({style:ru(o,{text:d,fill:o.getTextColor(),y:c.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),f=e.get("link"),p=e.get("sublink"),m=e.get("triggerEvent",!0);u.silent=!f&&!m,h.silent=!p&&!m,f&&u.on("click",(function(){Ic(f,"_"+e.get("target"))})),p&&h.on("click",(function(){Ic(p,"_"+e.get("subtarget"))})),Ts(u).eventData=Ts(h).eventData=m?{componentType:"title",componentIndex:e.componentIndex}:null,r.add(u),d&&r.add(h);var g=r.getBoundingRect(),v=e.getBoxLayoutParams();v.width=g.width,v.height=g.height;var y=Fc(v,{width:n.getWidth(),height:n.getHeight()},e.get("padding"));a||(a=e.get("left")||e.get("right"),"middle"===a&&(a="center"),"right"===a?y.x+=y.width:"center"===a&&(y.x+=y.width/2)),s||(s=e.get("top")||e.get("bottom"),"center"===s&&(s="middle"),"bottom"===s?y.y+=y.height:"middle"===s&&(y.y+=y.height/2),s=s||"top"),r.x=y.x,r.y=y.y,r.markRedraw();var b={align:a,verticalAlign:s};u.setStyle(b),h.setStyle(b),g=r.getBoundingRect();var _=y.margin,w=e.getItemStyle(["color","opacity"]);w.fill=e.get("backgroundColor");var x=new ls({shape:{x:g.x-_[3],y:g.y-_[0],width:g.width+_[1]+_[3],height:g.height+_[0]+_[2],r:e.get("borderRadius")},style:w,subPixelOptimize:!0,silent:!0});r.add(x)}},t.type="title",t}(Tp);function CX(e){e.registerComponentModel(MX),e.registerComponentView(SX)}var TX=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode="box",n}return a(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),this._initData()},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(e){null==e&&(e=this.option.currentIndex);var t=this._data.count();this.option.loop?e=(e%t+t)%t:(e>=t&&(e=t-1),e<0&&(e=0)),this.option.currentIndex=e},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(e){this.option.autoPlay=!!e},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var e,t=this.option,n=t.data||[],r=t.axisType,i=this._names=[];"category"===r?(e=[],Object(l["k"])(n,(function(t,n){var r,o=Mi(fi(t),"");Object(l["A"])(t)?(r=Object(l["d"])(t),r.value=n):r=n,e.push(r),i.push(o)}))):e=n;var o={category:"ordinal",time:"time",value:"number"}[r]||"number",a=this._data=new Kk([{name:"value",type:o}],this);a.initData(e,i)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},t.type="timeline",t.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},t}(Kc),OX=TX,LX=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.type="timeline.slider",t.defaultOption=Eu(OX.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),t}(OX);Object(l["K"])(LX,nf.prototype);var AX=LX,DX=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.type="timeline",t}(Tp),EX=DX,IX=function(e){function t(t,n,r,i){var o=e.call(this,t,n,r)||this;return o.type=i||"value",o}return a(t,e),t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},t}(FO),jX=IX,PX=Math.PI,RX=Ei(),NX=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.init=function(e,t){this.api=t},t.prototype.render=function(e,t,n){if(this.model=e,this.api=n,this.ecModel=t,this.group.removeAll(),e.get("show",!0)){var r=this._layout(e,n),i=this._createGroup("_mainGroup"),o=this._createGroup("_labelGroup"),a=this._axis=this._createAxis(r,e);e.formatTooltip=function(e){var t=a.scale.getLabel({value:e});return Xf("nameValue",{noName:!0,value:t})},Object(l["k"])(["AxisLine","AxisTick","Control","CurrentPointer"],(function(t){this["_render"+t](r,i,a,e)}),this),this._renderAxisLabel(r,o,a,e),this._position(r,e)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(e,t){var n,r=e.get(["label","position"]),i=e.get("orient"),o=YX(e,t);n=null==r||"auto"===r?"horizontal"===i?o.y+o.height/2=0||"+"===n?"left":"right"},d={horizontal:n>=0||"+"===n?"top":"bottom",vertical:"middle"},h={horizontal:0,vertical:PX/2},f="vertical"===i?o.height:o.width,p=e.getModel("controlStyle"),m=p.get("show",!0),g=m?p.get("itemSize"):0,v=m?p.get("itemGap"):0,y=g+v,b=e.get(["label","rotate"])||0;b=b*PX/180;var _=p.get("position",!0),w=m&&p.get("showPlayBtn",!0),x=m&&p.get("showPrevBtn",!0),k=m&&p.get("showNextBtn",!0),M=0,S=f;"left"===_||"bottom"===_?(w&&(a=[0,0],M+=y),x&&(s=[M,0],M+=y),k&&(u=[S-g,0],S-=y)):(w&&(a=[S-g,0],S-=y),x&&(s=[0,0],M+=y),k&&(u=[S-g,0],S-=y));var C=[M,S];return e.get("inverse")&&C.reverse(),{viewRect:o,mainLength:f,orient:i,rotation:h[i],labelRotation:b,labelPosOpt:n,labelAlign:e.get(["label","align"])||c[i],labelBaseline:e.get(["label","verticalAlign"])||e.get(["label","baseline"])||d[i],playPosition:a,prevBtnPosition:s,nextBtnPosition:u,axisExtent:C,controlSize:g,controlGap:v}},t.prototype._position=function(e,t){var n=this._mainGroup,r=this._labelGroup,i=e.viewRect;if("vertical"===e.orient){var o=le(),a=i.x,s=i.y+i.height;he(o,o,[-a,-s]),fe(o,o,-PX/2),he(o,o,[a,s]),i=i.clone(),i.applyTransform(o)}var u=v(i),c=v(n.getBoundingRect()),d=v(r.getBoundingRect()),h=[n.x,n.y],f=[r.x,r.y];f[0]=h[0]=u[0][0];var p=e.labelPosOpt;if(null==p||Object(l["C"])(p)){var m="+"===p?0:1;y(h,c,u,1,m),y(f,d,u,1,1-m)}else{m=p>=0?0:1;y(h,c,u,1,m),f[1]=h[1]+p}function g(e){e.originX=u[0][0]-e.x,e.originY=u[1][0]-e.y}function v(e){return[[e.x,e.x+e.width],[e.y,e.y+e.height]]}function y(e,t,n,r,i){e[r]+=n[r][i]-t[r][i]}n.setPosition(h),r.setPosition(f),n.rotation=r.rotation=e.rotation,g(n),g(r)},t.prototype._createAxis=function(e,t){var n=t.getData(),r=t.get("axisType"),i=BX(t,r);i.getTicks=function(){return n.mapArray(["value"],(function(e){return{value:e}}))};var o=n.getDataExtent("value");i.setExtent(o[0],o[1]),i.calcNiceTicks();var a=new jX("value",i,e.axisExtent,r);return a.model=t,a},t.prototype._createGroup=function(e){var t=this[e]=new kr;return this.group.add(t),t},t.prototype._renderAxisLine=function(e,t,n,r){var i=n.getExtent();if(r.get(["lineStyle","show"])){var o=new Rm({shape:{x1:i[0],y1:0,x2:i[1],y2:0},style:Object(l["m"])({lineCap:"round"},r.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});t.add(o);var a=this._progressLine=new Rm({shape:{x1:i[0],x2:this._currentPointer?this._currentPointer.x:i[0],y1:0,y2:0},style:Object(l["i"])({lineCap:"round",lineWidth:o.style.lineWidth},r.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});t.add(a)}},t.prototype._renderAxisTick=function(e,t,n,r){var i=this,o=r.getData(),a=n.scale.getTicks();this._tickSymbols=[],Object(l["k"])(a,(function(e){var a=n.dataToCoord(e.value),s=o.getItemModel(e.value),u=s.getModel("itemStyle"),c=s.getModel(["emphasis","itemStyle"]),d=s.getModel(["progress","itemStyle"]),h={x:a,y:0,onclick:Object(l["c"])(i._changeTimeline,i,e.value)},f=zX(s,u,t,h);f.ensureState("emphasis").style=c.getItemStyle(),f.ensureState("progress").style=d.getItemStyle(),Tl(f);var p=Ts(f);s.get("tooltip")?(p.dataIndex=e.value,p.dataModel=r):p.dataIndex=p.dataModel=null,i._tickSymbols.push(f)}))},t.prototype._renderAxisLabel=function(e,t,n,r){var i=this,o=n.getLabelModel();if(o.get("show")){var a=r.getData(),s=n.getViewLabels();this._tickLabels=[],Object(l["k"])(s,(function(r){var o=r.tickValue,s=a.getItemModel(o),u=s.getModel("label"),c=s.getModel(["emphasis","label"]),d=s.getModel(["progress","label"]),h=n.dataToCoord(r.tickValue),f=new Cs({x:h,y:0,rotation:e.labelRotation-e.rotation,onclick:Object(l["c"])(i._changeTimeline,i,o),silent:!1,style:ru(u,{text:r.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});f.ensureState("emphasis").style=ru(c),f.ensureState("progress").style=ru(d),t.add(f),Tl(f),RX(f).dataIndex=o,i._tickLabels.push(f)}))}},t.prototype._renderControl=function(e,t,n,r){var i=e.controlSize,o=e.rotation,a=r.getModel("controlStyle").getItemStyle(),s=r.getModel(["emphasis","controlStyle"]).getItemStyle(),u=r.getPlayState(),c=r.get("inverse",!0);function d(e,n,u,c){if(e){var d=ar(Object(l["P"])(r.get(["controlStyle",n+"BtnSize"]),i),i),h=[0,-d/2,d,d],f=FX(r,n+"Icon",h,{x:e[0],y:e[1],originX:i/2,originY:0,rotation:c?-o:0,rectHover:!0,style:a,onclick:u});f.ensureState("emphasis").style=s,t.add(f),Tl(f)}}d(e.nextBtnPosition,"next",Object(l["c"])(this._changeTimeline,this,c?"-":"+")),d(e.prevBtnPosition,"prev",Object(l["c"])(this._changeTimeline,this,c?"+":"-")),d(e.playPosition,u?"stop":"play",Object(l["c"])(this._handlePlayClick,this,!u),!0)},t.prototype._renderCurrentPointer=function(e,t,n,r){var i=r.getData(),o=r.getCurrentIndex(),a=i.getItemModel(o).getModel("checkpointStyle"),s=this,u={onCreate:function(e){e.draggable=!0,e.drift=Object(l["c"])(s._handlePointerDrag,s),e.ondragend=Object(l["c"])(s._handlePointerDragend,s),HX(e,s._progressLine,o,n,r,!0)},onUpdate:function(e){HX(e,s._progressLine,o,n,r)}};this._currentPointer=zX(a,a,this._mainGroup,{},this._currentPointer,u)},t.prototype._handlePlayClick=function(e){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:e,from:this.uid})},t.prototype._handlePointerDrag=function(e,t,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},t.prototype._handlePointerDragend=function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},t.prototype._pointerChangeTimeline=function(e,t){var n=this._toAxisCoord(e)[0],r=this._axis,i=Fr(r.getExtent().slice());n>i[1]&&(n=i[1]),n=0&&(a[o]=+a[o].toFixed(h)),[a,d]}var aK={min:Object(l["h"])(oK,"min"),max:Object(l["h"])(oK,"max"),average:Object(l["h"])(oK,"average"),median:Object(l["h"])(oK,"median")};function sK(e,t){if(t){var n=e.getData(),r=e.coordinateSystem,i=r&&r.dimensions;if(!iK(t)&&!Object(l["t"])(t.coord)&&Object(l["t"])(i)){var o=lK(t,n,r,e);if(t=Object(l["d"])(t),t.type&&aK[t.type]&&o.baseAxis&&o.valueAxis){var a=Object(l["r"])(i,o.baseAxis.dim),s=Object(l["r"])(i,o.valueAxis.dim),u=aK[t.type](n,o.baseDataDim,o.valueDataDim,a,s);t.coord=u[0],t.value=u[1]}else t.coord=[null!=t.xAxis?t.xAxis:t.radiusAxis,null!=t.yAxis?t.yAxis:t.angleAxis]}if(null!=t.coord&&Object(l["t"])(i))for(var c=t.coord,d=0;d<2;d++)aK[c[d]]&&(c[d]=fK(n,n.mapDimension(i[d]),c[d]));else t.coord=[];return t}}function lK(e,t,n,r){var i={};return null!=e.valueIndex||null!=e.valueDim?(i.valueDataDim=null!=e.valueIndex?t.getDimension(e.valueIndex):e.valueDim,i.valueAxis=n.getAxis(uK(r,i.valueDataDim)),i.baseAxis=n.getOtherAxis(i.valueAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim)):(i.baseAxis=r.getBaseAxis(),i.valueAxis=n.getOtherAxis(i.baseAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim),i.valueDataDim=t.mapDimension(i.valueAxis.dim)),i}function uK(e,t){var n=e.getData().getDimensionInfo(t);return n&&n.coordDim}function cK(e,t){return!(e&&e.containData&&t.coord&&!rK(t))||e.containData(t.coord)}function dK(e,t,n){return!(e&&e.containZone&&t.coord&&n.coord&&!rK(t)&&!rK(n))||e.containZone(t.coord,n.coord)}function hK(e,t){return e?function(e,n,r,i){var o=i<2?e.coord&&e.coord[i]:e.value;return lf(o,t[i])}:function(e,n,r,i){return lf(e.value,t[i])}}function fK(e,t,n){if("average"===n){var r=0,i=0;return e.each(t,(function(e,t){isNaN(e)||(r+=e,i++)})),r/i}return"median"===n?e.getMedian(t):e.getDataExtent(t)["max"===n?1:0]}var pK=Ei(),mK=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.init=function(){this.markerGroupMap=Object(l["f"])()},t.prototype.render=function(e,t,n){var r=this,i=this.markerGroupMap;i.each((function(e){pK(e).keep=!1})),t.eachSeries((function(e){var i=eK.getMarkerModelFromSeries(e,r.type);i&&r.renderSeries(e,i,t,n)})),i.each((function(e){!pK(e).keep&&r.group.remove(e.group)}))},t.prototype.markKeep=function(e){pK(e).keep=!0},t.prototype.toggleBlurSeries=function(e,t){var n=this;Object(l["k"])(e,(function(e){var r=eK.getMarkerModelFromSeries(e,n.type);if(r){var i=r.getData();i.eachItemGraphicEl((function(e){e&&(t?hl(e):fl(e))}))}}))},t.type="marker",t}(Tp),gK=mK;function vK(e,t,n){var r=t.coordinateSystem;e.each((function(i){var o,a=e.getItemModel(i),s=Br(a.get("x"),n.getWidth()),l=Br(a.get("y"),n.getHeight());if(isNaN(s)||isNaN(l)){if(t.getMarkerPosition)o=t.getMarkerPosition(e.getValues(e.dimensions,i));else if(r){var u=e.get(r.dimensions[0],i),c=e.get(r.dimensions[1],i);o=r.dataToPoint([u,c])}}else o=[s,l];isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),e.setItemLayout(i,o)}))}var yK=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries((function(e){var t=eK.getMarkerModelFromSeries(e,"markPoint");t&&(vK(t.getData(),e,n),this.markerGroupMap.get(e.id).updateLayout())}),this)},t.prototype.renderSeries=function(e,t,n,r){var i=e.coordinateSystem,o=e.id,a=e.getData(),s=this.markerGroupMap,u=s.get(o)||s.set(o,new CM),c=bK(i,e,t);t.setData(c),vK(t.getData(),e,r),c.each((function(e){var n=c.getItemModel(e),r=n.getShallow("symbol"),i=n.getShallow("symbolSize"),o=n.getShallow("symbolRotate"),s=n.getShallow("symbolOffset"),u=n.getShallow("symbolKeepAspect");if(Object(l["w"])(r)||Object(l["w"])(i)||Object(l["w"])(o)||Object(l["w"])(s)){var d=t.getRawValue(e),h=t.getDataParams(e);Object(l["w"])(r)&&(r=r(d,h)),Object(l["w"])(i)&&(i=i(d,h)),Object(l["w"])(o)&&(o=o(d,h)),Object(l["w"])(s)&&(s=s(d,h))}var f=n.getModel("itemStyle").getItemStyle(),p=Hv(a,"color");f.fill||(f.fill=p),c.setItemVisual(e,{symbol:r,symbolSize:i,symbolRotate:o,symbolOffset:s,symbolKeepAspect:u,style:f})})),u.updateData(c),this.group.add(u.group),c.eachItemGraphicEl((function(e){e.traverse((function(e){Ts(e).dataModel=t}))})),this.markKeep(u),u.group.silent=t.get("silent")||e.get("silent")},t.type="markPoint",t}(gK);function bK(e,t,n){var r;r=e?Object(l["H"])(e&&e.dimensions,(function(e){var n=t.getData().getDimensionInfo(t.getData().mapDimension(e))||{};return Object(l["m"])(Object(l["m"])({},n),{name:e,ordinalMeta:null})})):[{name:"value",type:"float"}];var i=new Kk(r,n),o=Object(l["H"])(n.get("data"),Object(l["h"])(sK,t));e&&(o=Object(l["n"])(o,Object(l["h"])(cK,e)));var a=hK(!!e,r);return i.initData(o,null,a),i}var _K=yK;function wK(e){e.registerComponentModel(nK),e.registerComponentView(_K),e.registerPreprocessor((function(e){KX(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})}))}var xK=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.createMarkerModelFromSeries=function(e,n,r){return new t(e,n,r)},t.type="markLine",t.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},t}(eK),kK=xK,MK=Ei(),SK=function(e,t,n,r){var i,o=e.getData();if(Object(l["t"])(r))i=r;else{var a=r.type;if("min"===a||"max"===a||"average"===a||"median"===a||null!=r.xAxis||null!=r.yAxis){var s=void 0,u=void 0;if(null!=r.yAxis||null!=r.xAxis)s=t.getAxis(null!=r.yAxis?"y":"x"),u=Object(l["O"])(r.yAxis,r.xAxis);else{var c=lK(r,o,t,e);s=c.valueAxis;var d=lM(o,c.valueDataDim);u=fK(o,d,a)}var h="x"===s.dim?0:1,f=1-h,p=Object(l["d"])(r),m={coord:[]};p.type=null,p.coord=[],p.coord[f]=-1/0,m.coord[f]=1/0;var g=n.get("precision");g>=0&&Object(l["z"])(u)&&(u=+u.toFixed(Math.min(g,20))),p.coord[h]=m.coord[h]=u,i=[p,m,{type:a,valueIndex:r.valueIndex,value:u}]}else i=[]}var v=[sK(e,i[0]),sK(e,i[1]),Object(l["m"])({},i[2])];return v[2].type=v[2].type||null,Object(l["I"])(v[2],v[0]),Object(l["I"])(v[2],v[1]),v};function CK(e){return!isNaN(e)&&!isFinite(e)}function TK(e,t,n,r){var i=1-e,o=r.dimensions[e];return CK(t[i])&&CK(n[i])&&t[e]===n[e]&&r.getAxis(o).containData(t[e])}function OK(e,t){if("cartesian2d"===e.type){var n=t[0].coord,r=t[1].coord;if(n&&r&&(TK(1,n,r,e)||TK(0,n,r,e)))return!0}return cK(e,t[0])&&cK(e,t[1])}function LK(e,t,n,r,i){var o,a=r.coordinateSystem,s=e.getItemModel(t),l=Br(s.get("x"),i.getWidth()),u=Br(s.get("y"),i.getHeight());if(isNaN(l)||isNaN(u)){if(r.getMarkerPosition)o=r.getMarkerPosition(e.getValues(e.dimensions,t));else{var c=a.dimensions,d=e.get(c[0],t),h=e.get(c[1],t);o=a.dataToPoint([d,h])}if($M(a,"cartesian2d")){var f=a.getAxis("x"),p=a.getAxis("y");c=a.dimensions;CK(e.get(c[0],t))?o[0]=f.toGlobalCoord(f.getExtent()[n?0:1]):CK(e.get(c[1],t))&&(o[1]=p.toGlobalCoord(p.getExtent()[n?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];e.setItemLayout(t,o)}var AK=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries((function(e){var t=eK.getMarkerModelFromSeries(e,"markLine");if(t){var r=t.getData(),i=MK(t).from,o=MK(t).to;i.each((function(t){LK(i,t,!0,e,n),LK(o,t,!1,e,n)})),r.each((function(e){r.setItemLayout(e,[i.getItemLayout(e),o.getItemLayout(e)])})),this.markerGroupMap.get(e.id).updateLayout()}}),this)},t.prototype.renderSeries=function(e,t,n,r){var i=e.coordinateSystem,o=e.id,a=e.getData(),s=this.markerGroupMap,u=s.get(o)||s.set(o,new VP);this.group.add(u.group);var c=DK(i,e,t),d=c.from,h=c.to,f=c.line;MK(t).from=d,MK(t).to=h,t.setData(f);var p=t.get("symbol"),m=t.get("symbolSize"),g=t.get("symbolRotate"),v=t.get("symbolOffset");function y(t,n,i){var o=t.getItemModel(n);LK(t,n,i,e,r);var s=o.getModel("itemStyle").getItemStyle();null==s.fill&&(s.fill=Hv(a,"color")),t.setItemVisual(n,{symbolKeepAspect:o.get("symbolKeepAspect"),symbolOffset:Object(l["P"])(o.get("symbolOffset",!0),v[i?0:1]),symbolRotate:Object(l["P"])(o.get("symbolRotate",!0),g[i?0:1]),symbolSize:Object(l["P"])(o.get("symbolSize"),m[i?0:1]),symbol:Object(l["P"])(o.get("symbol",!0),p[i?0:1]),style:s})}Object(l["t"])(p)||(p=[p,p]),Object(l["t"])(m)||(m=[m,m]),Object(l["t"])(g)||(g=[g,g]),Object(l["t"])(v)||(v=[v,v]),c.from.each((function(e){y(d,e,!0),y(h,e,!1)})),f.each((function(e){var t=f.getItemModel(e).getModel("lineStyle").getLineStyle();f.setItemLayout(e,[d.getItemLayout(e),h.getItemLayout(e)]),null==t.stroke&&(t.stroke=d.getItemVisual(e,"style").fill),f.setItemVisual(e,{fromSymbolKeepAspect:d.getItemVisual(e,"symbolKeepAspect"),fromSymbolOffset:d.getItemVisual(e,"symbolOffset"),fromSymbolRotate:d.getItemVisual(e,"symbolRotate"),fromSymbolSize:d.getItemVisual(e,"symbolSize"),fromSymbol:d.getItemVisual(e,"symbol"),toSymbolKeepAspect:h.getItemVisual(e,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(e,"symbolOffset"),toSymbolRotate:h.getItemVisual(e,"symbolRotate"),toSymbolSize:h.getItemVisual(e,"symbolSize"),toSymbol:h.getItemVisual(e,"symbol"),style:t})})),u.updateData(f),c.line.eachItemGraphicEl((function(e){Ts(e).dataModel=t,e.traverse((function(e){Ts(e).dataModel=t}))})),this.markKeep(u),u.group.silent=t.get("silent")||e.get("silent")},t.type="markLine",t}(gK);function DK(e,t,n){var r;r=e?Object(l["H"])(e&&e.dimensions,(function(e){var n=t.getData().getDimensionInfo(t.getData().mapDimension(e))||{};return Object(l["m"])(Object(l["m"])({},n),{name:e,ordinalMeta:null})})):[{name:"value",type:"float"}];var i=new Kk(r,n),o=new Kk(r,n),a=new Kk([],n),s=Object(l["H"])(n.get("data"),Object(l["h"])(SK,t,e,n));e&&(s=Object(l["n"])(s,Object(l["h"])(OK,e)));var u=hK(!!e,r);return i.initData(Object(l["H"])(s,(function(e){return e[0]})),null,u),o.initData(Object(l["H"])(s,(function(e){return e[1]})),null,u),a.initData(Object(l["H"])(s,(function(e){return e[2]}))),a.hasItemOption=!0,{from:i,to:o,line:a}}var EK=AK;function IK(e){e.registerComponentModel(kK),e.registerComponentView(EK),e.registerPreprocessor((function(e){KX(e.series,"markLine")&&(e.markLine=e.markLine||{})}))}var jK=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.createMarkerModelFromSeries=function(e,n,r){return new t(e,n,r)},t.type="markArea",t.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},t}(eK),PK=jK,RK=Ei(),NK=function(e,t,n,r){var i=r[0],o=r[1];if(i&&o){var a=sK(e,i),s=sK(e,o),u=a.coord,c=s.coord;u[0]=Object(l["O"])(u[0],-1/0),u[1]=Object(l["O"])(u[1],-1/0),c[0]=Object(l["O"])(c[0],1/0),c[1]=Object(l["O"])(c[1],1/0);var d=Object(l["J"])([{},a,s]);return d.coord=[a.coord,s.coord],d.x0=a.x,d.y0=a.y,d.x1=s.x,d.y1=s.y,d}};function BK(e){return!isNaN(e)&&!isFinite(e)}function YK(e,t,n,r){var i=1-e;return BK(t[i])&&BK(n[i])}function FK(e,t){var n=t.coord[0],r=t.coord[1],i={coord:n,x:t.x0,y:t.y0},o={coord:r,x:t.x1,y:t.y1};return $M(e,"cartesian2d")?!(!n||!r||!YK(1,n,r,e)&&!YK(0,n,r,e))||dK(e,i,o):cK(e,i)||cK(e,o)}function zK(e,t,n,r,i){var o,a=r.coordinateSystem,s=e.getItemModel(t),l=Br(s.get(n[0]),i.getWidth()),u=Br(s.get(n[1]),i.getHeight());if(isNaN(l)||isNaN(u)){if(r.getMarkerPosition){var c=e.getValues(["x0","y0"],t),d=e.getValues(["x1","y1"],t),h=a.clampData(c),f=a.clampData(d),p=[];"x0"===n[0]?p[0]=h[0]>f[0]?d[0]:c[0]:p[0]=h[0]>f[0]?c[0]:d[0],"y0"===n[1]?p[1]=h[1]>f[1]?d[1]:c[1]:p[1]=h[1]>f[1]?c[1]:d[1],o=r.getMarkerPosition(p,n,!0)}else{var m=e.get(n[0],t),g=e.get(n[1],t),v=[m,g];a.clampData&&a.clampData(v,v),o=a.dataToPoint(v,!0)}if($M(a,"cartesian2d")){var y=a.getAxis("x"),b=a.getAxis("y");m=e.get(n[0],t),g=e.get(n[1],t);BK(m)?o[0]=y.toGlobalCoord(y.getExtent()["x0"===n[0]?0:1]):BK(g)&&(o[1]=b.toGlobalCoord(b.getExtent()["y0"===n[1]?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];return o}var HK=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],VK=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries((function(e){var t=eK.getMarkerModelFromSeries(e,"markArea");if(t){var r=t.getData();r.each((function(t){var i=Object(l["H"])(HK,(function(i){return zK(r,t,i,e,n)}));r.setItemLayout(t,i);var o=r.getItemGraphicEl(t);o.setShape("points",i)}))}}),this)},t.prototype.renderSeries=function(e,t,n,r){var i=e.coordinateSystem,o=e.id,a=e.getData(),s=this.markerGroupMap,u=s.get(o)||s.set(o,{group:new kr});this.group.add(u.group),this.markKeep(u);var c=WK(i,e,t);t.setData(c),c.each((function(t){var n=Object(l["H"])(HK,(function(n){return zK(c,t,n,e,r)})),o=i.getAxis("x").scale,s=i.getAxis("y").scale,u=o.getExtent(),d=s.getExtent(),h=[o.parse(c.get("x0",t)),o.parse(c.get("x1",t))],f=[s.parse(c.get("y0",t)),s.parse(c.get("y1",t))];Fr(h),Fr(f);var p=!(u[0]>h[1]||u[1]f[1]||d[1]=0},t.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(Kc),XK=qK,KK=l["h"],ZK=l["k"],JK=kr,QK=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return a(t,e),t.prototype.init=function(){this.group.add(this._contentGroup=new JK),this.group.add(this._selectorGroup=new JK),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,t,n){var r=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),e.get("show",!0)){var i=e.get("align"),o=e.get("orient");i&&"auto"!==i||(i="right"===e.get("left")&&"vertical"===o?"right":"left");var a=e.get("selector",!0),s=e.get("selectorPosition",!0);!a||s&&"auto"!==s||(s="horizontal"===o?"end":"start"),this.renderInner(i,e,t,n,a,o,s);var u=e.getBoxLayoutParams(),c={width:n.getWidth(),height:n.getHeight()},d=e.get("padding"),h=Fc(u,c,d),f=this.layoutInner(e,i,h,r,a,s),p=Fc(l["i"]({width:f.width,height:f.height},u),c,d);this.group.x=p.x-f.x,this.group.y=p.y-f.y,this.group.markRedraw(),this.group.add(this._backgroundEl=iG(f,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,t,n,r,i,o,a){var s=this.getContentGroup(),u=l["f"](),c=t.get("selectedMode"),d=[];n.eachRawSeries((function(e){!e.get("legendHoverLink")&&d.push(e.id)})),ZK(t.getData(),(function(i,o){var a=i.get("name");if(!this.newlineDisabled&&(""===a||"\n"===a)){var h=new JK;return h.newline=!0,void s.add(h)}var f=n.getSeriesByName(a)[0];if(!u.get(a)){if(f){var p=f.getData(),m=p.getVisual("legendLineStyle")||{},g=p.getVisual("legendIcon"),v=p.getVisual("style"),y=this._createItem(f,a,o,i,t,e,m,v,g,c,r);y.on("click",KK(nZ,a,null,r,d)).on("mouseover",KK(iZ,f.name,null,r,d)).on("mouseout",KK(oZ,f.name,null,r,d)),n.ssr&&y.eachChild((function(e){var t=Ts(e);t.seriesIndex=f.seriesIndex,t.dataIndex=o,t.ssrType="legend"})),u.set(a,!0)}else n.eachRawSeries((function(s){if(!u.get(a)&&s.legendVisualProvider){var h=s.legendVisualProvider;if(!h.containName(a))return;var f=h.indexOfName(a),p=h.getItemVisual(f,"style"),m=h.getItemVisual(f,"legendIcon"),g=Object(Bt["h"])(p.fill);g&&0===g[3]&&(g[3]=.2,p=l["m"](l["m"]({},p),{fill:Object(Bt["i"])(g,"rgba")}));var v=this._createItem(s,a,o,i,t,e,{},p,m,c,r);v.on("click",KK(nZ,null,a,r,d)).on("mouseover",KK(iZ,null,a,r,d)).on("mouseout",KK(oZ,null,a,r,d)),n.ssr&&v.eachChild((function(e){var t=Ts(e);t.seriesIndex=s.seriesIndex,t.dataIndex=o,t.ssrType="legend"})),u.set(a,!0)}}),this);0}}),this),i&&this._createSelector(i,t,r,o,a)},t.prototype._createSelector=function(e,t,n,r,i){var o=this.getSelectorGroup();ZK(e,(function(e){var r=e.type,i=new Cs({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===r?"legendAllSelect":"legendInverseSelect",legendId:t.id})}});o.add(i);var a=t.getModel("selectorLabel"),s=t.getModel(["emphasis","selectorLabel"]);tu(i,{normal:a,emphasis:s},{defaultText:e.title}),Tl(i)}))},t.prototype._createItem=function(e,t,n,r,i,o,a,s,u,c,d){var h=e.visualDrawType,f=i.get("itemWidth"),p=i.get("itemHeight"),m=i.isSelected(t),g=r.get("symbolRotate"),v=r.get("symbolKeepAspect"),y=r.get("icon");u=y||u||"roundRect";var b=eZ(u,r,a,s,h,m,d),_=new JK,w=r.getModel("textStyle");if(!l["w"](e.getLegendIcon)||y&&"inherit"!==y){var x="inherit"===y&&e.getData().getVisual("symbol")?"inherit"===g?e.getData().getVisual("symbolRotate"):g:0;_.add(tZ({itemWidth:f,itemHeight:p,icon:u,iconRotate:x,itemStyle:b.itemStyle,lineStyle:b.lineStyle,symbolKeepAspect:v}))}else _.add(e.getLegendIcon({itemWidth:f,itemHeight:p,icon:u,iconRotate:g,itemStyle:b.itemStyle,lineStyle:b.lineStyle,symbolKeepAspect:v}));var k="left"===o?f+5:-5,M=o,S=i.get("formatter"),C=t;l["C"](S)&&S?C=S.replace("{name}",null!=t?t:""):l["w"](S)&&(C=S(t));var T=m?w.getTextColor():r.get("inactiveColor");_.add(new Cs({style:ru(w,{text:C,x:k,y:p/2,fill:T,align:M,verticalAlign:"middle"},{inheritColor:T})}));var O=new ls({shape:_.getBoundingRect(),style:{fill:"transparent"}}),L=r.getModel("tooltip");return L.get("show")&&Ng({el:O,componentModel:i,itemName:t,itemTooltipOption:L.option}),_.add(O),_.eachChild((function(e){e.silent=!0})),O.silent=!c,this.getContentGroup().add(_),Tl(_),_.__legendDataIndex=n,_},t.prototype.layoutInner=function(e,t,n,r,i,o){var a=this.getContentGroup(),s=this.getSelectorGroup();Bc(e.get("orient"),a,e.get("itemGap"),n.width,n.height);var l=a.getBoundingRect(),u=[-l.x,-l.y];if(s.markRedraw(),a.markRedraw(),i){Bc("horizontal",s,e.get("selectorItemGap",!0));var c=s.getBoundingRect(),d=[-c.x,-c.y],h=e.get("selectorButtonGap",!0),f=e.getOrient().index,p=0===f?"width":"height",m=0===f?"height":"width",g=0===f?"y":"x";"end"===o?d[f]+=l[p]+h:u[f]+=c[p]+h,d[1-f]+=l[m]/2-c[m]/2,s.x=d[0],s.y=d[1],a.x=u[0],a.y=u[1];var v={x:0,y:0};return v[p]=l[p]+h+c[p],v[m]=Math.max(l[m],c[m]),v[g]=Math.min(0,c[g]+d[1-f]),v}return a.x=u[0],a.y=u[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(Tp);function eZ(e,t,n,r,i,o,a){function s(e,t){"auto"===e.lineWidth&&(e.lineWidth=t.lineWidth>0?2:0),ZK(e,(function(n,r){"inherit"===e[r]&&(e[r]=t[r])}))}var l=t.getModel("itemStyle"),u=l.getItemStyle(),c=0===e.lastIndexOf("empty",0)?"fill":"stroke",d=l.getShallow("decal");u.decal=d&&"inherit"!==d?Ky(d,a):r.decal,"inherit"===u.fill&&(u.fill=r[i]),"inherit"===u.stroke&&(u.stroke=r[c]),"inherit"===u.opacity&&(u.opacity=("fill"===i?r:n).opacity),s(u,r);var h=t.getModel("lineStyle"),f=h.getLineStyle();if(s(f,n),"auto"===u.fill&&(u.fill=r.fill),"auto"===u.stroke&&(u.stroke=r.fill),"auto"===f.stroke&&(f.stroke=r.fill),!o){var p=t.get("inactiveBorderWidth"),m=u[c];u.lineWidth="auto"===p?r.lineWidth>0&&m?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),f.stroke=h.get("inactiveColor"),f.lineWidth=h.get("inactiveWidth")}return{itemStyle:u,lineStyle:f}}function tZ(e){var t=e.icon||"roundRect",n=sy(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return n.setStyle(e.itemStyle),n.rotation=(e.iconRotate||0)*Math.PI/180,n.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n}function nZ(e,t,n,r){oZ(e,t,n,r),n.dispatchAction({type:"legendToggleSelect",name:null!=e?e:t}),iZ(e,t,n,r)}function rZ(e){var t,n=e.getZr().storage.getDisplayList(),r=0,i=n.length;while(rn[i],m=[-h.x,-h.y];t||(m[r]=u[s]);var g=[0,0],v=[-f.x,-f.y],y=l["P"](e.get("pageButtonGap",!0),e.get("itemGap",!0));if(p){var b=e.get("pageButtonPosition",!0);"end"===b?v[r]+=n[i]-f[i]:g[r]+=f[i]+y}v[1-r]+=h[o]/2-f[o]/2,u.setPosition(m),c.setPosition(g),d.setPosition(v);var _={x:0,y:0};if(_[i]=p?n[i]:h[i],_[o]=Math.max(h[o],f[o]),_[a]=Math.min(0,f[a]+v[1-r]),c.__rectSize=n[i],p){var w={x:0,y:0};w[i]=Math.max(n[i]-f[i]-y,0),w[o]=_[o],c.setClipPath(new ls({shape:w})),c.__rectSize=w[i]}else d.eachChild((function(e){e.attr({invisible:!0,silent:!0})}));var x=this._getPageInfo(e);return null!=x.pageIndex&&Wl(u,{x:x.contentPosition[0],y:x.contentPosition[1]},p?e:null),this._updatePageInfoView(e,x),_},t.prototype._pageGo=function(e,t,n){var r=this._getPageInfo(t)[e];null!=r&&n.dispatchAction({type:"legendScroll",scrollDataIndex:r,legendId:t.id})},t.prototype._updatePageInfoView=function(e,t){var n=this._controllerGroup;l["k"](["pagePrev","pageNext"],(function(r){var i=r+"DataIndex",o=null!=t[i],a=n.childOfName(r);a&&(a.setStyle("fill",o?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),a.cursor=o?"pointer":"default")}));var r=n.childOfName("pageText"),i=e.get("pageFormatter"),o=t.pageIndex,a=null!=o?o+1:0,s=t.pageCount;r&&i&&r.setStyle("text",l["C"](i)?i.replace("{current}",null==a?"":a+"").replace("{total}",null==s?"":s+""):i({current:a,total:s}))},t.prototype._getPageInfo=function(e){var t=e.get("scrollDataIndex",!0),n=this.getContentGroup(),r=this._containerGroup.__rectSize,i=e.getOrient().index,o=gZ[i],a=vZ[i],s=this._findTargetItemIndex(t),l=n.children(),u=l[s],c=l.length,d=c?1:0,h={contentPosition:[n.x,n.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!u)return h;var f=y(u);h.contentPosition[i]=-f.s;for(var p=s+1,m=f,g=f,v=null;p<=c;++p)v=y(l[p]),(!v&&g.e>m.s+r||v&&!b(v,m.s))&&(m=g.i>m.i?g:v,m&&(null==h.pageNextDataIndex&&(h.pageNextDataIndex=m.i),++h.pageCount)),g=v;for(p=s-1,m=f,g=f,v=null;p>=-1;--p)v=y(l[p]),v&&b(g,v.s)||!(m.i=t&&e.s<=t+r}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var t,n,r=this.getContentGroup();return r.eachChild((function(r,i){var o=r.__legendDataIndex;null==n&&null!=o&&(n=i),o===e&&(t=i)})),null!=t?t:n},t.type="legend.scroll",t}(aZ),bZ=yZ;function _Z(e){e.registerAction("legendScroll","legendscroll",(function(e,t){var n=e.scrollDataIndex;null!=n&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},(function(e){e.setScrollDataIndex(n)}))}))}function wZ(e){N_(dZ),e.registerComponentModel(pZ),e.registerComponentView(bZ),_Z(e)}function xZ(e){N_(dZ),N_(wZ)}var kZ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.type="dataZoom.inside",t.defaultOption=Eu(I$.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(I$),MZ=kZ,SZ=Ei();function CZ(e,t,n){SZ(e).coordSysRecordMap.each((function(e){var r=e.dataZoomInfoMap.get(t.uid);r&&(r.getRange=n)}))}function TZ(e,t){for(var n=SZ(e).coordSysRecordMap,r=n.keys(),i=0;ir[n+t]&&(t=a),i=i&&o.get("preventDefaultMouseMove",!0)})),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!i}}}function IZ(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,(function(e,t){var n=SZ(t),r=n.coordSysRecordMap||(n.coordSysRecordMap=Object(l["f"])());r.each((function(e){e.dataZoomInfoMap=null})),e.eachComponent({mainType:"dataZoom",subType:"inside"},(function(e){var n=L$(e);Object(l["k"])(n.infoList,(function(n){var i=n.model.uid,o=r.get(i)||r.set(i,LZ(t,n.model)),a=o.dataZoomInfoMap||(o.dataZoomInfoMap=Object(l["f"])());a.set(e.uid,{dzReferCoordSysInfo:n,model:e,getRange:null})}))})),r.each((function(e){var t,n=e.controller,i=e.dataZoomInfoMap;if(i){var o=i.keys()[0];null!=o&&(t=i.get(o))}if(t){var a=EZ(i);n.enable(a.controlType,a.opt),n.setPointerChecker(e.containsPoint),Qg(e,"dispatchAction",t.model.get("throttle",!0),"fixRate")}else OZ(r,e)}))}))}var jZ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return a(t,e),t.prototype.render=function(t,n,r){e.prototype.render.apply(this,arguments),t.noTarget()?this._clear():(this.range=t.getPercentRange(),CZ(r,t,{pan:Object(l["c"])(PZ.pan,this),zoom:Object(l["c"])(PZ.zoom,this),scrollMove:Object(l["c"])(PZ.scrollMove,this)}))},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){TZ(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(N$),PZ={zoom:function(e,t,n,r){var i=this.range,o=i.slice(),a=e.axisModels[0];if(a){var s=NZ[t](null,[r.originX,r.originY],a,n,e),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(o[1]-o[0])+o[0],u=Math.max(1/r.scale,0);o[0]=(o[0]-l)*u+l,o[1]=(o[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return sN(0,o,[0,100],0,c.minSpan,c.maxSpan),this.range=o,i[0]!==o[0]||i[1]!==o[1]?o:void 0}},pan:RZ((function(e,t,n,r,i,o){var a=NZ[r]([o.oldX,o.oldY],[o.newX,o.newY],t,i,n);return a.signal*(e[1]-e[0])*a.pixel/a.pixelLength})),scrollMove:RZ((function(e,t,n,r,i,o){var a=NZ[r]([0,0],[o.scrollDelta,o.scrollDelta],t,i,n);return a.signal*(e[1]-e[0])*o.scrollDelta}))};function RZ(e){return function(t,n,r,i){var o=this.range,a=o.slice(),s=t.axisModels[0];if(s){var l=e(a,s,t,n,r,i);return sN(l,a,[0,100],"all"),this.range=a,o[0]!==a[0]||o[1]!==a[1]?a:void 0}}}var NZ={grid:function(e,t,n,r,i){var o=n.axis,a={},s=i.model.coordinateSystem.getRect();return e=e||[0,0],"x"===o.dim?(a.pixel=t[0]-e[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=o.inverse?1:-1):(a.pixel=t[1]-e[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=o.inverse?-1:1),a},polar:function(e,t,n,r,i){var o=n.axis,a={},s=i.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),"radiusAxis"===n.mainType?(a.pixel=t[0]-e[0],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=o.inverse?1:-1):(a.pixel=t[1]-e[1],a.pixelLength=u[1]-u[0],a.pixelStart=u[0],a.signal=o.inverse?-1:1),a},singleAxis:function(e,t,n,r,i){var o=n.axis,a=i.model.coordinateSystem.getRect(),s={};return e=e||[0,0],"horizontal"===o.orient?(s.pixel=t[0]-e[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=o.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=o.inverse?-1:1),s}},BZ=jZ;function YZ(e){X$(e),e.registerComponentModel(MZ),e.registerComponentView(BZ),IZ(e)}var FZ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=Eu(I$.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(I$),zZ=FZ,HZ=ls,VZ=7,WZ=1,UZ=30,$Z=7,GZ="horizontal",qZ="vertical",XZ=5,KZ=["line","bar","candlestick","scatter"],ZZ={easing:"cubicOut",duration:100,delay:0},JZ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._displayables={},n}return a(t,e),t.prototype.init=function(e,t){this.api=t,this._onBrush=Object(l["c"])(this._onBrush,this),this._onBrushEnd=Object(l["c"])(this._onBrushEnd,this)},t.prototype.render=function(t,n,r,i){if(e.prototype.render.apply(this,arguments),Qg(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),!1!==t.get("show")){if(t.noTarget())return this._clear(),void this.group.removeAll();i&&"dataZoom"===i.type&&i.from===this.uid||this._buildView(),this._updateView()}else this.group.removeAll()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){ev(this,"_dispatchZoomAction");var e=this.api.getZr();e.off("mousemove",this._onBrush),e.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var t=this._displayables.sliderGroup=new kr;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(t),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,t=this.api,n=e.get("brushSelect"),r=n?$Z:0,i=this._findCoordRect(),o={width:t.getWidth(),height:t.getHeight()},a=this._orient===GZ?{right:o.width-i.x-i.width,top:o.height-UZ-VZ-r,width:i.width,height:UZ}:{right:VZ,top:i.y,width:UZ,height:i.height},s=Uc(e.option);Object(l["k"])(["right","top","width","height"],(function(e){"ph"===s[e]&&(s[e]=a[e])}));var u=Fc(s,o);this._location={x:u.x,y:u.y},this._size=[u.width,u.height],this._orient===qZ&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,t=this._location,n=this._orient,r=this.dataZoomModel.getFirstTargetAxisModel(),i=r&&r.get("inverse"),o=this._displayables.sliderGroup,a=(this._dataShadowInfo||{}).otherAxisInverse;o.attr(n!==GZ||i?n===GZ&&i?{scaleY:a?1:-1,scaleX:-1}:n!==qZ||i?{scaleY:a?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:a?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:a?1:-1,scaleX:1});var s=e.getBoundingRect([o]);e.x=t.x-s.x,e.y=t.y-s.y,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,t=this._size,n=this._displayables.sliderGroup,r=e.get("brushSelect");n.add(new HZ({silent:!0,shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var i=new HZ({shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:"transparent"},z2:0,onclick:Object(l["c"])(this._onClickPanel,this)}),o=this.api.getZr();r?(i.on("mousedown",this._onBrushStart,this),i.cursor="crosshair",o.on("mousemove",this._onBrush),o.on("mouseup",this._onBrushEnd)):(o.off("mousemove",this._onBrush),o.off("mouseup",this._onBrushEnd)),n.add(i)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],e){var t=this._size,n=this._shadowSize||[],r=e.series,i=r.getRawData(),o=r.getShadowDim&&r.getShadowDim(),a=o&&i.getDimensionInfo(o)?r.getShadowDim():e.otherDim;if(null!=a){var s=this._shadowPolygonPts,l=this._shadowPolylinePts;if(i!==this._shadowData||a!==this._shadowDim||t[0]!==n[0]||t[1]!==n[1]){var u=i.getDataExtent(a),c=.3*(u[1]-u[0]);u=[u[0]-c,u[1]+c];var d,h=[0,t[1]],f=[0,t[0]],p=[[t[0],0],[0,0]],m=[],g=f[1]/(i.count()-1),v=0,y=Math.round(i.count()/t[0]);i.each([a],(function(e,t){if(y>0&&t%y)v+=g;else{var n=null==e||isNaN(e)||""===e,r=n?0:Nr(e,u,h,!0);n&&!d&&t?(p.push([p[p.length-1][0],0]),m.push([m[m.length-1][0],0])):!n&&d&&(p.push([v,0]),m.push([v,0])),p.push([v,r]),m.push([v,r]),v+=g,d=n}})),s=this._shadowPolygonPts=p,l=this._shadowPolylinePts=m}this._shadowData=i,this._shadowDim=a,this._shadowSize=[t[0],t[1]];for(var b=this.dataZoomModel,_=0;_<3;_++){var w=x(1===_);this._displayables.sliderGroup.add(w),this._displayables.dataShadowSegs.push(w)}}}function x(e){var t=b.getModel(e?"selectedDataBackground":"dataBackground"),n=new kr,r=new Lm({shape:{points:s},segmentIgnoreThreshold:1,style:t.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),i=new Em({shape:{points:l},segmentIgnoreThreshold:1,style:t.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return n.add(r),n.add(i),n}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,t=e.get("showDataShadow");if(!1!==t){var n,r=this.ecModel;return e.eachTargetAxis((function(i,o){var a=e.getAxisProxy(i,o).getTargetSeriesModels();Object(l["k"])(a,(function(e){if(!n&&!(!0!==t&&Object(l["r"])(KZ,e.get("type"))<0)){var a,s=r.getComponent(T$(i),o).axis,u=QZ(i),c=e.coordinateSystem;null!=u&&c.getOtherAxis&&(a=c.getOtherAxis(s).inverse),u=e.getData().mapDimension(u),n={thisAxis:s,series:e,thisDim:i,otherDim:u,otherAxisInverse:a}}}),this)}),this),n}},t.prototype._renderHandle=function(){var e=this.group,t=this._displayables,n=t.handles=[null,null],r=t.handleLabels=[null,null],i=this._displayables.sliderGroup,o=this._size,a=this.dataZoomModel,s=this.api,u=a.get("borderRadius")||0,c=a.get("brushSelect"),d=t.filler=new HZ({silent:c,style:{fill:a.get("fillerColor")},textConfig:{position:"inside"}});i.add(d),i.add(new HZ({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:o[0],height:o[1],r:u},style:{stroke:a.get("dataBackgroundColor")||a.get("borderColor"),lineWidth:WZ,fill:"rgba(0,0,0,0)"}})),Object(l["k"])([0,1],(function(t){var o=a.get("handleIcon");!iy[o]&&o.indexOf("path://")<0&&o.indexOf("image://")<0&&(o="path://"+o);var s=sy(o,-1,0,2,2,null,!0);s.attr({cursor:eJ(this._orient),draggable:!0,drift:Object(l["c"])(this._onDragMove,this,t),ondragend:Object(l["c"])(this._onDragEnd,this),onmouseover:Object(l["c"])(this._showDataInfo,this,!0),onmouseout:Object(l["c"])(this._showDataInfo,this,!1),z2:5});var u=s.getBoundingRect(),c=a.get("handleSize");this._handleHeight=Br(c,this._size[1]),this._handleWidth=u.width/u.height*this._handleHeight,s.setStyle(a.getModel("handleStyle").getItemStyle()),s.style.strokeNoScale=!0,s.rectHover=!0,s.ensureState("emphasis").style=a.getModel(["emphasis","handleStyle"]).getItemStyle(),Tl(s);var d=a.get("handleColor");null!=d&&(s.style.fill=d),i.add(n[t]=s);var h=a.getModel("textStyle"),f=a.get("handleLabel")||{},p=f.show||!1;e.add(r[t]=new Cs({silent:!0,invisible:!p,style:ru(h,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:h.getTextColor(),font:h.getFont()}),z2:10}))}),this);var h=d;if(c){var f=Br(a.get("moveHandleSize"),o[1]),p=t.moveHandle=new ls({style:a.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:o[1]-.5,height:f}}),m=.8*f,g=t.moveHandleIcon=sy(a.get("moveHandleIcon"),-m/2,-m/2,m,m,"#fff",!0);g.silent=!0,g.y=o[1]+f/2-.5,p.ensureState("emphasis").style=a.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var v=Math.min(o[1]/2,Math.max(f,10));h=t.moveZone=new ls({invisible:!0,shape:{y:o[1]-v,height:f+v}}),h.on("mouseover",(function(){s.enterEmphasis(p)})).on("mouseout",(function(){s.leaveEmphasis(p)})),i.add(p),i.add(g),i.add(h)}h.attr({draggable:!0,cursor:eJ(this._orient),drift:Object(l["c"])(this._onDragMove,this,"all"),ondragstart:Object(l["c"])(this._showDataInfo,this,!0),ondragend:Object(l["c"])(this._onDragEnd,this),onmouseover:Object(l["c"])(this._showDataInfo,this,!0),onmouseout:Object(l["c"])(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),t=this._getViewExtent();this._handleEnds=[Nr(e[0],[0,100],t,!0),Nr(e[1],[0,100],t,!0)]},t.prototype._updateInterval=function(e,t){var n=this.dataZoomModel,r=this._handleEnds,i=this._getViewExtent(),o=n.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100];sN(t,r,i,n.get("zoomLock")?"all":e,null!=o.minSpan?Nr(o.minSpan,a,i,!0):null,null!=o.maxSpan?Nr(o.maxSpan,a,i,!0):null);var s=this._range,l=this._range=Fr([Nr(r[0],i,a,!0),Nr(r[1],i,a,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},t.prototype._updateView=function(e){var t=this._displayables,n=this._handleEnds,r=Fr(n.slice()),i=this._size;Object(l["k"])([0,1],(function(e){var r=t.handles[e],o=this._handleHeight;r.attr({scaleX:o/2,scaleY:o/2,x:n[e]+(e?-1:1),y:i[1]/2-o/2})}),this),t.filler.setShape({x:r[0],y:0,width:r[1]-r[0],height:i[1]});var o={x:r[0],width:r[1]-r[0]};t.moveHandle&&(t.moveHandle.setShape(o),t.moveZone.setShape(o),t.moveZone.getBoundingRect(),t.moveHandleIcon&&t.moveHandleIcon.attr("x",o.x+o.width/2));for(var a=t.dataShadowSegs,s=[0,r[0],r[1],i[0]],u=0;ut[0]||n[1]<0||n[1]>t[1])){var r=this._handleEnds,i=(r[0]+r[1])/2,o=this._updateInterval("all",n[0]-i);this._updateView(),o&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var t=e.offsetX,n=e.offsetY;this._brushStart=new ye(t,n),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(this._brushing){var t=this._displayables.brushRect;if(this._brushing=!1,t){t.attr("ignore",!0);var n=t.shape,r=+new Date;if(!(r-this._brushStartTime<200&&Math.abs(n.width)<5)){var i=this._getViewExtent(),o=[0,100];this._range=Fr([Nr(n.x,i,o,!0),Nr(n.x+n.width,i,o,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(ne(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,t){var n=this._displayables,r=this.dataZoomModel,i=n.brushRect;i||(i=n.brushRect=new HZ({silent:!0,style:r.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(i)),i.attr("ignore",!1);var o=this._brushStart,a=this._displayables.sliderGroup,s=a.transformCoordToLocal(e,t),l=a.transformCoordToLocal(o.x,o.y),u=this._size;s[0]=Math.max(Math.min(u[0],s[0]),0),i.setShape({x:l[0],y:0,width:s[0]-l[0],height:u[1]})},t.prototype._dispatchZoomAction=function(e){var t=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?ZZ:null,start:t[0],end:t[1]})},t.prototype._findCoordRect=function(){var e,t=L$(this.dataZoomModel).infoList;if(!e&&t.length){var n=t[0].model.coordinateSystem;e=n.getRect&&n.getRect()}if(!e){var r=this.api.getWidth(),i=this.api.getHeight();e={x:.2*r,y:.2*i,width:.6*r,height:.6*i}}return e},t.type="dataZoom.slider",t}(N$);function QZ(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}function eJ(e){return"vertical"===e?"ns-resize":"ew-resize"}var tJ=JZ;function nJ(e){e.registerComponentModel(zZ),e.registerComponentView(tJ),X$(e)}function rJ(e){N_(YZ),N_(nJ)}var iJ={get:function(e,t,n){var r=l["d"]((oJ[e]||{})[t]);return n&&l["t"](r)?r[r.length-1]:r}},oJ={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},aJ=iJ,sJ=pj.mapVisual,lJ=pj.eachVisual,uJ=l["t"],cJ=l["k"],dJ=Fr,hJ=Nr,fJ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.stateList=["inRange","outOfRange"],n.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],n.layoutMode={type:"box",ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return a(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&Kq(n,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var t=this.stateList;e=l["c"](e,this),this.controllerVisuals=Xq(this.option.controller,t,e),this.targetVisuals=Xq(this.option.target,t,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this.option.seriesIndex,t=[];return null==e||"all"===e?this.ecModel.eachSeries((function(e,n){t.push(n)})):t=ci(e),t},t.prototype.eachTargetSeries=function(e,t){l["k"](this.getTargetSeriesIndices(),(function(n){var r=this.ecModel.getSeriesByIndex(n);r&&e.call(t,r)}),this)},t.prototype.isTargetSeries=function(e){var t=!1;return this.eachTargetSeries((function(n){n===e&&(t=!0)})),t},t.prototype.formatValueText=function(e,t,n){var r,i=this.option,o=i.precision,a=this.dataBound,s=i.formatter;n=n||["<",">"],l["t"](e)&&(e=e.slice(),r=!0);var u=t?e:r?[c(e[0]),c(e[1])]:c(e);return l["C"](s)?s.replace("{value}",r?u[0]:u).replace("{value2}",r?u[1]:u):l["w"](s)?r?s(e[0],e[1]):s(e):r?e[0]===a[0]?n[0]+" "+u[1]:e[1]===a[1]?n[1]+" "+u[0]:u[0]+" - "+u[1]:u;function c(e){return e===a[0]?"min":e===a[1]?"max":(+e).toFixed(Math.min(o,20))}},t.prototype.resetExtent=function(){var e=this.option,t=dJ([e.min,e.max]);this._dataExtent=t},t.prototype.getDataDimensionIndex=function(e){var t=this.option.dimension;if(null!=t)return e.getDimensionIndex(t);for(var n=e.dimensions,r=n.length-1;r>=0;r--){var i=n[r],o=e.getDimensionInfo(i);if(!o.isCalculationCoord)return o.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,t=this.option,n={inRange:t.inRange,outOfRange:t.outOfRange},r=t.target||(t.target={}),i=t.controller||(t.controller={});l["I"](r,n),l["I"](i,n);var o=this.isCategory();function a(n){uJ(t.color)&&!n.inRange&&(n.inRange={color:t.color.slice().reverse()}),n.inRange=n.inRange||{color:e.get("gradientColor")}}function s(e,t,n){var r=e[t],i=e[n];r&&!i&&(i=e[n]={},cJ(r,(function(e,t){if(pj.isValidType(t)){var n=aJ.get(t,"inactive",o);null!=n&&(i[t]=n,"color"!==t||i.hasOwnProperty("opacity")||i.hasOwnProperty("colorAlpha")||(i.opacity=[0,0]))}})))}function u(e){var t=(e.inRange||{}).symbol||(e.outOfRange||{}).symbol,n=(e.inRange||{}).symbolSize||(e.outOfRange||{}).symbolSize,r=this.get("inactiveColor"),i=this.getItemSymbol(),a=i||"roundRect";cJ(this.stateList,(function(i){var s=this.itemSize,u=e[i];u||(u=e[i]={color:o?r:[r]}),null==u.symbol&&(u.symbol=t&&l["d"](t)||(o?a:[a])),null==u.symbolSize&&(u.symbolSize=n&&l["d"](n)||(o?s[0]:[s[0],s[0]])),u.symbol=sJ(u.symbol,(function(e){return"none"===e?a:e}));var c=u.symbolSize;if(null!=c){var d=-1/0;lJ(c,(function(e){e>d&&(d=e)})),u.symbolSize=sJ(c,(function(e){return hJ(e,[0,d],[0,s[0]],!0)}))}}),this)}a.call(this,r),a.call(this,i),s.call(this,r,"inRange","outOfRange"),u.call(this,i)},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},t}(Kc),pJ=fJ,mJ=[20,140],gJ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual((function(e){e.mappingMethod="linear",e.dataExtent=this.getExtent()})),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(null==t[0]||isNaN(t[0]))&&(t[0]=mJ[0]),(null==t[1]||isNaN(t[1]))&&(t[1]=mJ[1])},t.prototype._resetRange=function(){var e=this.getExtent(),t=this.option.range;!t||t.auto?(e.auto=1,this.option.range=e):l["t"](t)&&(t[0]>t[1]&&t.reverse(),t[0]=Math.max(t[0],e[0]),t[1]=Math.min(t[1],e[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),l["k"](this.stateList,(function(e){var t=this.option.controller[e].symbolSize;t&&t[0]!==t[1]&&(t[0]=t[1]/3)}),this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),t=Fr((this.get("range")||[]).slice());return t[0]>e[1]&&(t[0]=e[1]),t[1]>e[1]&&(t[1]=e[1]),t[0]=n[1]||e<=t[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var t=[];return this.eachTargetSeries((function(n){var r=[],i=n.getData();i.each(this.getDataDimensionIndex(i),(function(t,n){e[0]<=t&&t<=e[1]&&r.push(n)}),this),t.push({seriesId:n.id,dataIndex:r})}),this),t},t.prototype.getVisualMeta=function(e){var t=vJ(this,"outOfRange",this.getExtent()),n=vJ(this,"inRange",this.option.range.slice()),r=[];function i(t,n){r.push({value:t,color:e(t,n)})}for(var o=0,a=0,s=n.length,l=t.length;ae[1])break;r.push({color:this.getControllerVisual(a,"color",t),offset:o/n})}return r.push({color:this.getControllerVisual(e[1],"color",t),offset:1}),r},t.prototype._createBarPoints=function(e,t){var n=this.visualMapModel.itemSize;return[[n[0]-t[0],e[0]],[n[0],e[0]],[n[0],e[1]],[n[0]-t[1],e[1]]]},t.prototype._createBarGroup=function(e){var t=this._orient,n=this.visualMapModel.get("inverse");return new kr("horizontal"!==t||n?"horizontal"===t&&n?{scaleX:"bottom"===e?-1:1,rotation:-Math.PI/2}:"vertical"!==t||n?{scaleX:"left"===e?1:-1}:{scaleX:"left"===e?1:-1,scaleY:-1}:{scaleX:"bottom"===e?1:-1,rotation:Math.PI/2})},t.prototype._updateHandle=function(e,t){if(this._useHandle){var n=this._shapes,r=this.visualMapModel,i=n.handleThumbs,o=n.handleLabels,a=r.itemSize,s=r.getExtent(),l=this._applyTransform("left",n.mainGroup);SJ([0,1],(function(u){var c=i[u];c.setStyle("fill",t.handlesColor[u]),c.y=e[u];var d=MJ(e[u],[0,a[1]],s,!0),h=this.getControllerVisual(d,"symbolSize");c.scaleX=c.scaleY=h/a[0],c.x=a[0]-h/2;var f=Sg(n.handleLabelPoints[u],Mg(c,this.group));if("horizontal"===this._orient){var p="left"===l||"top"===l?(a[0]-h)/2:(a[0]-h)/-2;f[1]+=p}o[u].setStyle({x:f[0],y:f[1],text:r.formatValueText(this._dataInterval[u]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",n.mainGroup):"center"})}),this)}},t.prototype._showIndicator=function(e,t,n,r){var i=this.visualMapModel,o=i.getExtent(),a=i.itemSize,s=[0,a[1]],l=this._shapes,u=l.indicator;if(u){u.attr("invisible",!1);var c={convertOpacityToAlpha:!0},d=this.getControllerVisual(e,"color",c),h=this.getControllerVisual(e,"symbolSize"),f=MJ(e,o,s,!0),p=a[0]-h/2,m={x:u.x,y:u.y};u.y=f,u.x=p;var g=Sg(l.indicatorLabelPoint,Mg(u,this.group)),v=l.indicatorLabel;v.attr("invisible",!1);var y=this._applyTransform("left",l.mainGroup),b=this._orient,_="horizontal"===b;v.setStyle({text:(n||"")+i.formatValueText(t),verticalAlign:_?y:"middle",align:_?"center":y});var w={x:p,y:f,style:{fill:d}},x={style:{x:g[0],y:g[1]}};if(i.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var k={duration:100,easing:"cubicInOut",additive:!0};u.x=m.x,u.y=m.y,u.animateTo(w,k),v.animateTo(x,k)}else u.attr(w),v.attr(x);this._firstShowIndicator=!1;var M=this._shapes.handleLabels;if(M)for(var S=0;Si[1]&&(u[1]=1/0),t&&(u[0]===-1/0?this._showIndicator(l,u[1],"< ",a):u[1]===1/0?this._showIndicator(l,u[0],"> ",a):this._showIndicator(l,l,"≈ ",a));var c=this._hoverLinkDataIndices,d=[];(t||IJ(n))&&(d=this._hoverLinkDataIndices=n.findTargetDataIndices(u));var h=Ai(c,d);this._dispatchHighDown("downplay",kJ(h[0],n)),this._dispatchHighDown("highlight",kJ(h[1],n))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var t;if(Gv(e.target,(function(e){var n=Ts(e);if(null!=n.dataIndex)return t=n,!0}),!0),t){var n=this.ecModel.getSeriesByIndex(t.seriesIndex),r=this.visualMapModel;if(r.isTargetSeries(n)){var i=n.getData(t.dataType),o=i.getStore().get(r.getDataDimensionIndex(i),t.dataIndex);isNaN(o)||this._showIndicator(o,o)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr("invisible",!0),e.indicatorLabel&&e.indicatorLabel.attr("invisible",!0);var t=this._shapes.handleLabels;if(t)for(var n=0;n=0&&(i.dimension=o,r.push(i))}})),e.getData().setVisual("visualMeta",r)}}];function YJ(e,t,n,r){for(var i=t.targetVisuals[r],o=pj.prepareVisualTypes(i),a={color:Hv(e.getData(),"color")},s=0,l=o.length;s0:e.splitNumber>0)&&!e.calculable?"piecewise":"continuous"})),e.registerAction(RJ,NJ),Object(l["k"])(BJ,(function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)})),e.registerPreprocessor(zJ))}function UJ(e){e.registerComponentModel(yJ),e.registerComponentView(PJ),WJ(e)}var $J=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._pieceList=[],n}return a(t,e),t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var r=this._mode=this._determineMode();this._pieceList=[],GJ[this._mode].call(this,this._pieceList),this._resetSelected(t,n);var i=this.option.categories;this.resetVisual((function(e,t){"categories"===r?(e.mappingMethod="category",e.categories=l["d"](i)):(e.dataExtent=this.getExtent(),e.mappingMethod="piecewise",e.pieceList=l["H"](this._pieceList,(function(e){return e=l["d"](e),"inRange"!==t&&(e.visual=null),e})))}))},t.prototype.completeVisualOption=function(){var t=this.option,n={},r=pj.listVisualTypes(),i=this.isCategory();function o(e,t,n){return e&&e[t]&&e[t].hasOwnProperty(n)}l["k"](t.pieces,(function(e){l["k"](r,(function(t){e.hasOwnProperty(t)&&(n[t]=1)}))})),l["k"](n,(function(e,n){var r=!1;l["k"](this.stateList,(function(e){r=r||o(t,e,n)||o(t.target,e,n)}),this),!r&&l["k"](this.stateList,(function(e){(t[e]||(t[e]={}))[n]=aJ.get(n,"inRange"===e?"active":"inactive",i)}))}),this),e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,t){var n=this.option,r=this._pieceList,i=(t?n:e).selected||{};if(n.selected=i,l["k"](r,(function(e,t){var n=this.getSelectedMapKey(e);i.hasOwnProperty(n)||(i[n]=!0)}),this),"single"===n.selectedMode){var o=!1;l["k"](r,(function(e,t){var n=this.getSelectedMapKey(e);i[n]&&(o?i[n]=!1:o=!0)}),this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(e){return"categories"===this._mode?e.value+"":e.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(e){this.option.selected=l["d"](e)},t.prototype.getValueState=function(e){var t=pj.findPieceIndex(e,this._pieceList);return null!=t&&this.option.selected[this.getSelectedMapKey(this._pieceList[t])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var t=[],n=this._pieceList;return this.eachTargetSeries((function(r){var i=[],o=r.getData();o.each(this.getDataDimensionIndex(o),(function(t,r){var o=pj.findPieceIndex(t,n);o===e&&i.push(r)}),this),t.push({seriesId:r.id,dataIndex:i})}),this),t},t.prototype.getRepresentValue=function(e){var t;if(this.isCategory())t=e.value;else if(null!=e.value)t=e.value;else{var n=e.interval||[];t=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return t},t.prototype.getVisualMeta=function(e){if(!this.isCategory()){var t=[],n=["",""],r=this,i=this._pieceList.slice();if(i.length){var o=i[0].interval[0];o!==-1/0&&i.unshift({interval:[-1/0,o]}),o=i[i.length-1].interval[1],o!==1/0&&i.push({interval:[o,1/0]})}else i.push({interval:[-1/0,1/0]});var a=-1/0;return l["k"](i,(function(e){var t=e.interval;t&&(t[0]>a&&s([a,t[0]],"outOfRange"),s(t.slice()),a=t[1])}),this),{stops:t,outerColors:n}}function s(i,o){var a=r.getRepresentValue({interval:i});o||(o=r.getValueState(a));var s=e(a,o);i[0]===-1/0?n[0]=s:i[1]===1/0?n[1]=s:t.push({value:i[0],color:s},{value:i[1],color:s})}},t.type="visualMap.piecewise",t.defaultOption=Eu(pJ.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),t}(pJ),GJ={splitNumber:function(e){var t=this.option,n=Math.min(t.precision,20),r=this.getExtent(),i=t.splitNumber;i=Math.max(parseInt(i,10),1),t.splitNumber=i;var o=(r[1]-r[0])/i;while(+o.toFixed(n)!==o&&n<5)n++;t.precision=n,o=+o.toFixed(n),t.minOpen&&e.push({interval:[-1/0,r[0]],close:[0,0]});for(var a=0,s=r[0];a","≥"][t[0]]];e.text=e.text||this.formatValueText(null!=e.value?e.value:e.interval,!1,n)}),this)}};function qJ(e,t){var n=e.inverse;("vertical"===e.orient?!n:n)&&t.reverse()}var XJ=$J,KJ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return a(t,e),t.prototype.doRender=function(){var e=this.group;e.removeAll();var t=this.visualMapModel,n=t.get("textGap"),r=t.textStyleModel,i=r.getFont(),o=r.getTextColor(),a=this._getItemAlign(),s=t.itemSize,u=this._getViewData(),c=u.endsText,d=l["O"](t.get("showLabel",!0),!c),h=!t.get("selectedMode");c&&this._renderEndsText(e,c[0],s,d,a),l["k"](u.viewPieceList,(function(r){var u=r.piece,c=new kr;c.onclick=l["c"](this._onItemClick,this,u),this._enableHoverLink(c,r.indexInModelPieceList);var f=t.getRepresentValue(u);if(this._createItemSymbol(c,f,[0,0,s[0],s[1]],h),d){var p=this.visualMapModel.getValueState(f);c.add(new Cs({style:{x:"right"===a?-n:s[0]+n,y:s[1]/2,text:u.text,verticalAlign:"middle",align:a,font:i,fill:o,opacity:"outOfRange"===p?.5:1},silent:h}))}e.add(c)}),this),c&&this._renderEndsText(e,c[1],s,d,a),Bc(t.get("orient"),e,t.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,t){var n=this;e.on("mouseover",(function(){return r("highlight")})).on("mouseout",(function(){return r("downplay")}));var r=function(e){var r=n.visualMapModel;r.option.hoverLink&&n.api.dispatchAction({type:e,batch:kJ(r.findTargetDataIndices(t),r)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,t=e.option;if("vertical"===t.orient)return xJ(e,this.api,e.itemSize);var n=t.align;return n&&"auto"!==n||(n="left"),n},t.prototype._renderEndsText=function(e,t,n,r,i){if(t){var o=new kr,a=this.visualMapModel.textStyleModel;o.add(new Cs({style:ru(a,{x:r?"right"===i?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:r?i:"center",text:t})})),e.add(o)}},t.prototype._getViewData=function(){var e=this.visualMapModel,t=l["H"](e.getPieceList(),(function(e,t){return{piece:e,indexInModelPieceList:t}})),n=e.get("text"),r=e.get("orient"),i=e.get("inverse");return("horizontal"===r?i:!i)?t.reverse():n&&(n=n.slice().reverse()),{viewPieceList:t,endsText:n}},t.prototype._createItemSymbol=function(e,t,n,r){var i=sy(this.getControllerVisual(t,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(t,"color"));i.silent=r,e.add(i)},t.prototype._onItemClick=function(e){var t=this.visualMapModel,n=t.option,r=n.selectedMode;if(r){var i=l["d"](n.selected),o=t.getSelectedMapKey(e);"single"===r||!0===r?(i[o]=!0,l["k"](i,(function(e,t){i[t]=t===o}))):i[o]=!i[o],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:i})}},t.type="visualMap.piecewise",t}(_J),ZJ=KJ;function JJ(e){e.registerComponentModel(XJ),e.registerComponentView(ZJ),WJ(e)}function QJ(e){N_(UJ),N_(JJ)}var eQ={label:{enabled:!0},decal:{show:!1}},tQ=Ei(),nQ={};function rQ(e,t){var n=e.getModel("aria");if(n.get("enabled")){var r=l["d"](eQ);l["I"](r.label,e.getLocaleModel().get("aria"),!1),l["I"](n.option,r,!1),i(),o()}function i(){var t=n.getModel("decal"),r=t.get("show");if(r){var i=l["f"]();e.eachSeries((function(e){if(!e.isColorBySeries()){var t=i.get(e.type);t||(t={},i.set(e.type,t)),tQ(e).scope=t}})),e.eachRawSeries((function(t){if(!e.isSeriesFiltered(t))if(l["w"](t.enableAriaDecal))t.enableAriaDecal();else{var n=t.getData();if(t.isColorBySeries()){var r=Md(t.ecModel,t.name,nQ,e.getSeriesCount()),i=n.getVisual("decal");n.setVisual("decal",c(i,r))}else{var o=t.getRawData(),a={},s=tQ(t).scope;n.each((function(e){var t=n.getRawIndex(e);a[t]=e}));var u=o.count();o.each((function(e){var r=a[e],i=o.getName(e)||e+"",l=Md(t.ecModel,i,s,u),d=n.getItemVisual(r,"decal");n.setItemVisual(r,"decal",c(d,l))}))}}function c(e,t){var n=e?l["m"](l["m"]({},t),e):t;return n.dirty=!0,n}}))}}function o(){var r=t.getZr().dom;if(r){var i=e.getLocaleModel().get("aria"),o=n.getModel("label");if(o.option=l["i"](o.option,i),o.get("enabled"))if(r.setAttribute("role","img"),o.get("description"))r.setAttribute("aria-label",o.get("description"));else{var c,d=e.getSeriesCount(),h=o.get(["data","maxCount"])||10,f=o.get(["series","maxCount"])||10,p=Math.min(d,f);if(!(d<1)){var m=s();if(m){var g=o.get(["general","withTitle"]);c=a(g,{title:m})}else c=o.get(["general","withoutTitle"]);var v=[],y=d>1?o.get(["series","multiple","prefix"]):o.get(["series","single","prefix"]);c+=a(y,{seriesCount:d}),e.eachSeries((function(e,t){if(t1?o.get(["series","multiple",i]):o.get(["series","single",i]),n=a(n,{seriesId:e.seriesIndex,seriesName:e.get("name"),seriesType:u(e.subType)});var s=e.getData();if(s.count()>h){var c=o.get(["data","partialData"]);n+=a(c,{displayCnt:h})}else n+=o.get(["data","allData"]);for(var f=o.get(["data","separator","middle"]),m=o.get(["data","separator","end"]),g=o.get(["data","excludeDimensionId"]),y=[],b=0;b":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},sQ=function(){function e(e){var t=this._condVal=Object(l["C"])(e)?new RegExp(e):Object(l["B"])(e)?e:null;if(null==t){var n="";0,Ed(n)}}return e.prototype.evaluate=function(e){var t=typeof e;return Object(l["C"])(t)?this._condVal.test(e):!!Object(l["z"])(t)&&this._condVal.test(e+"")},e}(),lQ=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),uQ=function(){function e(){}return e.prototype.evaluate=function(){for(var e=this.children,t=0;t2&&l.push(t),t=[e,n]}function p(e,n,r,i){TQ(e,r)&&TQ(n,i)||t.push(e,n,r,i,r,i)}function m(e,n,r,i,o,a){var s=Math.abs(n-e),l=4*Math.tan(s/4)/3,u=nM:T2&&l.push(t),l}function LQ(e,t,n,r,i,o,a,s,l,u){if(TQ(e,n)&&TQ(t,r)&&TQ(i,a)&&TQ(o,s))l.push(a,s);else{var c=2/u,d=c*c,h=a-e,f=s-t,p=Math.sqrt(h*h+f*f);h/=p,f/=p;var m=n-e,g=r-t,v=i-a,y=o-s,b=m*m+g*g,_=v*v+y*y;if(b=0&&M=0)l.push(a,s);else{var S=[],C=[];Mt(e,n,i,a,.5,S),Mt(t,r,o,s,.5,C),LQ(S[0],C[0],S[1],C[1],S[2],C[2],S[3],C[3],l,u),LQ(S[4],C[4],S[5],C[5],S[6],C[6],S[7],C[7],l,u)}}}}function AQ(e,t){var n=OQ(e),r=[];t=t||1;for(var i=0;i0)for(u=0;uMath.abs(u),d=DQ([l,u],c?0:1,t),h=(c?s:u)/d.length,f=0;fi,a=DQ([r,i],o?0:1,t),s=o?"width":"height",l=o?"height":"width",u=o?"x":"y",c=o?"y":"x",d=e[s]/a.length,h=0;h1?null:new ye(m*l+e,m*u+t)}function RQ(e,t,n){var r=new ye;ye.sub(r,n,t),r.normalize();var i=new ye;ye.sub(i,e,t);var o=i.dot(r);return o}function NQ(e,t){var n=e[e.length-1];n&&n[0]===t[0]&&n[1]===t[1]||e.push(t)}function BQ(e,t,n){for(var r=e.length,i=[],o=0;oa?(u.x=c.x=s+o/2,u.y=l,c.y=l+a):(u.y=c.y=l+a/2,u.x=s,c.x=s+o),BQ(t,u,c)}function FQ(e,t,n,r){if(1===n)r.push(t);else{var i=Math.floor(n/2),o=e(t);FQ(e,o[0],i,r),FQ(e,o[1],n-i,r)}return r}function zQ(e,t){for(var n=[],r=0;r0)for(var w=r/n,x=-r/2;x<=r/2;x+=w){var k=Math.sin(x),M=Math.cos(x),S=0;for(b=0;b0;u/=2){var c=0,d=0;(e&u)>0&&(c=1),(t&u)>0&&(d=1),l+=u*u*(3*c^d),0===d&&(1===c&&(e=u-1-e,t=u-1-t),s=e,e=t,t=s)}return l}function a0(e){var t=1/0,n=1/0,r=-1/0,i=-1/0,o=Object(l["H"])(e,(function(e){var o=e.getBoundingRect(),a=e.getComputedTransform(),s=o.x+o.width/2+(a?a[4]:0),l=o.y+o.height/2+(a?a[5]:0);return t=Math.min(s,t),n=Math.min(l,n),r=Math.max(s,r),i=Math.max(l,i),[s,l]})),a=Object(l["H"])(o,(function(o,a){return{cp:o,z:o0(o[0],o[1],t,n,r,i),path:e[a]}}));return a.sort((function(e,t){return e.z-t.z})).map((function(e){return e.path}))}function s0(e){return WQ(e.path,e.count)}function l0(){return{fromIndividuals:[],toIndividuals:[],count:0}}function u0(e,t,n){var r=[];function i(e){for(var t=0;t=0;i--)if(!n[i].many.length){var l=n[s].many;if(l.length<=1){if(!s)return n;s=0}o=l.length;var u=Math.ceil(o/2);n[i].many=l.slice(u,o),n[s].many=l.slice(0,u),s++}return n}var f0={clone:function(e){for(var t=[],n=1-Math.pow(1-e.path.style.opacity,1/e.count),r=0;r0){var s,u,c=r.getModel("universalTransition").get("delay"),d=Object.assign({setToFinal:!0},a);d0(e)&&(s=e,u=t),d0(t)&&(s=t,u=e);for(var h=s?s===e:e.length>t.length,f=s?h0(u,s):h0(h?t:e,[h?e:t]),p=0,m=0;mg0))for(var i=n.getIndices(),o=0;o0&&i.group.traverse((function(e){e instanceof Ua&&!e.animators.length&&e.animateFrom({style:{opacity:0}},o)}))}))}function D0(e){var t=e.getModel("universalTransition").get("seriesKey");return t||e.id}function E0(e){return Object(l["t"])(e)?e.sort().join(","):e}function I0(e){if(e.hostModel)return e.hostModel.getModel("universalTransition").get("divideShape")}function j0(e,t){var n=Object(l["f"])(),r=Object(l["f"])(),i=Object(l["f"])();return Object(l["k"])(e.oldSeries,(function(t,n){var o=e.oldDataGroupIds[n],a=e.oldData[n],s=D0(t),u=E0(s);r.set(u,{dataGroupId:o,data:a}),Object(l["t"])(s)&&Object(l["k"])(s,(function(e){i.set(e,{key:u,dataGroupId:o,data:a})}))})),Object(l["k"])(t.updatedSeries,(function(e){if(e.isUniversalTransitionEnabled()&&e.isAnimationEnabled()){var t=e.get("dataGroupId"),o=e.getData(),a=D0(e),s=E0(a),u=r.get(s);if(u)n.set(s,{oldSeries:[{dataGroupId:u.dataGroupId,divide:I0(u.data),data:u.data}],newSeries:[{dataGroupId:t,divide:I0(o),data:o}]});else if(Object(l["t"])(a)){0;var c=[];Object(l["k"])(a,(function(e){var t=r.get(e);t.data&&c.push({dataGroupId:t.dataGroupId,divide:I0(t.data),data:t.data})})),c.length&&n.set(s,{oldSeries:c,newSeries:[{dataGroupId:t,data:o,divide:I0(o)}]})}else{var d=i.get(a);if(d){var h=n.get(d.key);h||(h={oldSeries:[{dataGroupId:d.dataGroupId,data:d.data,divide:I0(d.data)}],newSeries:[]},n.set(d.key,h)),h.newSeries.push({dataGroupId:t,data:o,divide:I0(o)})}}}})),n}function P0(e,t){for(var n=0;n=0&&i.push({dataGroupId:t.oldDataGroupIds[n],data:t.oldData[n],divide:I0(t.oldData[n]),groupIdDim:e.dimension})})),Object(l["k"])(ci(e.to),(function(e){var r=P0(n.updatedSeries,e);if(r>=0){var i=n.updatedSeries[r].getData();o.push({dataGroupId:t.oldDataGroupIds[r],data:i,divide:I0(i),groupIdDim:e.dimension})}})),i.length>0&&o.length>0&&A0(i,o,r)}function N0(e){e.registerUpdateLifecycle("series:beforeupdate",(function(e,t,n){Object(l["k"])(ci(n.seriesTransition),(function(e){Object(l["k"])(ci(e.to),(function(e){for(var t=n.updatedSeries,r=0;r
'};function n(e,t,n){return en?n:e}function r(e){return 100*(-1+e)}function i(e,n,i){var o;return o="translate3d"===t.positionUsing?{transform:"translate3d("+r(e)+"%,0,0)"}:"translate"===t.positionUsing?{transform:"translate("+r(e)+"%,0)"}:{"margin-left":r(e)+"%"},o.transition="all "+n+"ms "+i,o}e.configure=function(e){var n,r;for(n in e)r=e[n],void 0!==r&&e.hasOwnProperty(n)&&(t[n]=r);return this},e.status=null,e.set=function(r){var s=e.isStarted();r=n(r,t.minimum,1),e.status=1===r?null:r;var l=e.render(!s),u=l.querySelector(t.barSelector),c=t.speed,d=t.easing;return l.offsetWidth,o((function(n){""===t.positionUsing&&(t.positionUsing=e.getPositioningCSS()),a(u,i(r,c,d)),1===r?(a(l,{transition:"none",opacity:1}),l.offsetWidth,setTimeout((function(){a(l,{transition:"all "+c+"ms linear",opacity:0}),setTimeout((function(){e.remove(),n()}),c)}),c)):setTimeout(n,c)})),this},e.isStarted=function(){return"number"===typeof e.status},e.start=function(){e.status||e.set(0);var n=function(){setTimeout((function(){e.status&&(e.trickle(),n())}),t.trickleSpeed)};return t.trickle&&n(),this},e.done=function(t){return t||e.status?e.inc(.3+.5*Math.random()).set(1):this},e.inc=function(t){var r=e.status;return r?("number"!==typeof t&&(t=(1-r)*n(Math.random()*r,.1,.95)),r=n(r+t,0,.994),e.set(r)):e.start()},e.trickle=function(){return e.inc(Math.random()*t.trickleRate)},function(){var t=0,n=0;e.promise=function(r){return r&&"resolved"!==r.state()?(0===n&&e.start(),t++,n++,r.always((function(){n--,0===n?(t=0,e.done()):e.set((t-n)/t)})),this):this}}(),e.render=function(n){if(e.isRendered())return document.getElementById("nprogress");l(document.documentElement,"nprogress-busy");var i=document.createElement("div");i.id="nprogress",i.innerHTML=t.template;var o,s=i.querySelector(t.barSelector),u=n?"-100":r(e.status||0),c=document.querySelector(t.parent);return a(s,{transition:"all 0 linear",transform:"translate3d("+u+"%,0,0)"}),t.showSpinner||(o=i.querySelector(t.spinnerSelector),o&&d(o)),c!=document.body&&l(c,"nprogress-custom-parent"),c.appendChild(i),i},e.remove=function(){u(document.documentElement,"nprogress-busy"),u(document.querySelector(t.parent),"nprogress-custom-parent");var e=document.getElementById("nprogress");e&&d(e)},e.isRendered=function(){return!!document.getElementById("nprogress")},e.getPositioningCSS=function(){var e=document.body.style,t="WebkitTransform"in e?"Webkit":"MozTransform"in e?"Moz":"msTransform"in e?"ms":"OTransform"in e?"O":"";return t+"Perspective"in e?"translate3d":t+"Transform"in e?"translate":"margin"};var o=function(){var e=[];function t(){var n=e.shift();n&&n(t)}return function(n){e.push(n),1==e.length&&t()}}(),a=function(){var e=["Webkit","O","Moz","ms"],t={};function n(e){return e.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,(function(e,t){return t.toUpperCase()}))}function r(t){var n=document.body.style;if(t in n)return t;var r,i=e.length,o=t.charAt(0).toUpperCase()+t.slice(1);while(i--)if(r=e[i]+o,r in n)return r;return t}function i(e){return e=n(e),t[e]||(t[e]=r(e))}function o(e,t,n){t=i(t),e.style[t]=n}return function(e,t){var n,r,i=arguments;if(2==i.length)for(n in t)r=t[n],void 0!==r&&t.hasOwnProperty(n)&&o(e,n,r);else o(e,i[1],i[2])}}();function s(e,t){var n="string"==typeof e?e:c(e);return n.indexOf(" "+t+" ")>=0}function l(e,t){var n=c(e),r=n+t;s(n,t)||(e.className=r.substring(1))}function u(e,t){var n,r=c(e);s(e,t)&&(n=r.replace(" "+t+" "," "),e.className=n.substring(1,n.length-1))}function c(e){return(" "+(e.className||"")+" ").replace(/\s+/gi," ")}function d(e){e&&e.parentNode&&e.parentNode.removeChild(e)}return e}))},3252:function(e,t,n){(function(t,r){e.exports=r(n("21bf"))})(0,(function(e){return function(t){var n=e,r=n.lib,i=r.Base,o=r.WordArray,a=n.x64={};a.Word=i.extend({init:function(e,t){this.high=e,this.low=t}}),a.WordArray=i.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n!=t?n:8*e.length},toX32:function(){for(var e=this.words,t=e.length,n=[],r=0;r>>=0)?31-Math.floor(Math.log(e+.5)*Math.LOG2E):32}})},"32e9":function(e,t,n){var r=n("86cc"),i=n("4630");e.exports=n("9e1e")?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},"32fc":function(e,t,n){var r=n("e53d").document;e.exports=r&&r.documentElement},"335c":function(e,t,n){var r=n("6b4c");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},"335d":function(e,t,n){},"33a4":function(e,t,n){var r=n("84f2"),i=n("2b4c")("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||o[i]===e)}},3452:function(e,t,n){(function(t,r,i){e.exports=r(n("21bf"),n("3252"),n("17e1"),n("a8ce"),n("1132"),n("c1bc"),n("72fe"),n("df2f"),n("94f8"),n("191b"),n("d6e6"),n("b86b"),n("e61b"),n("10b7"),n("5980"),n("7bbcc"),n("2b79"),n("38ba"),n("00bb"),n("f4ea"),n("aaef"),n("4ba91"),n("81bf"),n("a817"),n("a11b"),n("8cef"),n("2a66"),n("b86c"),n("6d08"),n("c198"),n("a40e"),n("c3b6"),n("1382"),n("3d5a"),n("af5b"))})(0,(function(e){return e}))},"34ef":function(e,t,n){n("ec30")("Uint8",1,(function(e){return function(t,n,r){return e(this,t,n,r)}}))},3535:function(e,t,n){"use strict";var r=n("5ca1"),i=n("02f4")(!0),o=n("79e5"),a=o((function(){return"𠮷"!=="𠮷".at(0)}));r(r.P+r.F*a,"String",{at:function(e){return i(this,e)}})},"355d":function(e,t){t.f={}.propertyIsEnumerable},"357d":function(e,t,n){},"35e8":function(e,t,n){var r=n("d9f6"),i=n("aebd");e.exports=n("8e60")?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},3648:function(e,t,n){},"366e":function(e,t,n){e.exports=n("ccb9").f("toPrimitive")},"36bd":function(e,t,n){"use strict";var r=n("4bf8"),i=n("77f1"),o=n("9def");e.exports=function(e){var t=r(this),n=o(t.length),a=arguments.length,s=i(a>1?arguments[1]:void 0,n),l=a>2?arguments[2]:void 0,u=void 0===l?n:i(l,n);while(u>s)t[s++]=e;return t}},"36c3":function(e,t,n){var r=n("335c"),i=n("25eb");e.exports=function(e){return r(i(e))}},3702:function(e,t,n){var r=n("481b"),i=n("5168")("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||o[i]===e)}},"373f":function(e,t,n){"use strict";var r=n("5ca1"),i=n("6821"),o=[].join;r(r.P+r.F*(n("626a")!=Object||!n("2f21")(o)),"Array",{join:function(e){return o.call(i(this),void 0===e?",":e)}})},"37a7":function(e,t,n){var r=n("f400"),i=n("5ca1"),o=n("5537")("metadata"),a=o.store||(o.store=new(n("10ad"))),s=function(e,t,n){var i=a.get(e);if(!i){if(!n)return;a.set(e,i=new r)}var o=i.get(t);if(!o){if(!n)return;i.set(t,o=new r)}return o},l=function(e,t,n){var r=s(t,n,!1);return void 0!==r&&r.has(e)},u=function(e,t,n){var r=s(t,n,!1);return void 0===r?void 0:r.get(e)},c=function(e,t,n,r){s(n,r,!0).set(e,t)},d=function(e,t){var n=s(e,t,!1),r=[];return n&&n.forEach((function(e,t){r.push(t)})),r},h=function(e){return void 0===e||"symbol"==typeof e?e:String(e)},f=function(e){i(i.S,"Reflect",e)};e.exports={store:a,map:s,has:l,get:u,set:c,keys:d,key:h,exp:f}},"37b5":function(e,t,n){"use strict";var r=n("5ca1"),i=n("7726"),o=n("8378"),a=n("8079")(),s=n("2b4c")("observable"),l=n("d8e8"),u=n("cb7c"),c=n("f605"),d=n("dcbc"),h=n("32e9"),f=n("4a59"),p=f.RETURN,m=function(e){return null==e?void 0:l(e)},g=function(e){var t=e._c;t&&(e._c=void 0,t())},v=function(e){return void 0===e._o},y=function(e){v(e)||(e._o=void 0,g(e))},b=function(e,t){u(e),this._c=void 0,this._o=e,e=new _(this);try{var n=t(e),r=n;null!=n&&("function"===typeof n.unsubscribe?n=function(){r.unsubscribe()}:l(n),this._c=n)}catch(i){return void e.error(i)}v(this)&&g(this)};b.prototype=d({},{unsubscribe:function(){y(this)}});var _=function(e){this._s=e};_.prototype=d({},{next:function(e){var t=this._s;if(!v(t)){var n=t._o;try{var r=m(n.next);if(r)return r.call(n,e)}catch(i){try{y(t)}finally{throw i}}}},error:function(e){var t=this._s;if(v(t))throw e;var n=t._o;t._o=void 0;try{var r=m(n.error);if(!r)throw e;e=r.call(n,e)}catch(i){try{g(t)}finally{throw i}}return g(t),e},complete:function(e){var t=this._s;if(!v(t)){var n=t._o;t._o=void 0;try{var r=m(n.complete);e=r?r.call(n,e):void 0}catch(i){try{g(t)}finally{throw i}}return g(t),e}}});var w=function(e){c(this,w,"Observable","_f")._f=l(e)};d(w.prototype,{subscribe:function(e){return new b(e,this._f)},forEach:function(e){var t=this;return new(o.Promise||i.Promise)((function(n,r){l(e);var i=t.subscribe({next:function(t){try{return e(t)}catch(n){r(n),i.unsubscribe()}},error:r,complete:n})}))}}),d(w,{from:function(e){var t="function"===typeof this?this:w,n=m(u(e)[s]);if(n){var r=u(n.call(e));return r.constructor===t?r:new t((function(e){return r.subscribe(e)}))}return new t((function(t){var n=!1;return a((function(){if(!n){try{if(f(e,!1,(function(e){if(t.next(e),n)return p}))===p)return}catch(r){if(n)throw r;return void t.error(r)}t.complete()}})),function(){n=!0}}))},of:function(){for(var e=0,t=arguments.length,n=new Array(t);e"+i+""};e.exports=function(e,t){var n={};n[e]=t(s),r(r.P+r.F*i((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3})),"String",n)}},"386d":function(e,t,n){"use strict";var r=n("cb7c"),i=n("83a1"),o=n("5f1b");n("214f")("search",1,(function(e,t,n,a){return[function(n){var r=e(this),i=void 0==n?void 0:n[t];return void 0!==i?i.call(n,r):new RegExp(n)[t](String(r))},function(e){var t=a(n,e,this);if(t.done)return t.value;var s=r(e),l=String(this),u=s.lastIndex;i(u,0)||(s.lastIndex=0);var c=o(s,l);return i(s.lastIndex,u)||(s.lastIndex=u),null===c?-1:c.index}]}))},"387f":function(e,t,n){"use strict";e.exports=function(e,t,n,r,i){return e.config=t,n&&(e.code=n),e.request=r,e.response=i,e}},3886:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration var t=e.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,n=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}});return t}))},"38ba":function(e,t,n){(function(t,r,i){e.exports=r(n("21bf"),n("2b79"))})(0,(function(e){e.lib.Cipher||function(t){var n=e,r=n.lib,i=r.Base,o=r.WordArray,a=r.BufferedBlockAlgorithm,s=n.enc,l=(s.Utf8,s.Base64),u=n.algo,c=u.EvpKDF,d=r.Cipher=a.extend({cfg:i.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,n){this.cfg=this.cfg.extend(n),this._xformMode=e,this._key=t,this.reset()},reset:function(){a.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){e&&this._append(e);var t=this._doFinalize();return t},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?k:_}return function(t){return{encrypt:function(n,r,i){return e(r).encrypt(t,n,r,i)},decrypt:function(n,r,i){return e(r).decrypt(t,n,r,i)}}}}()}),h=(r.StreamCipher=d.extend({_doFinalize:function(){var e=this._process(!0);return e},blockSize:1}),n.mode={}),f=r.BlockCipherMode=i.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),p=h.CBC=function(){var e=f.extend();function n(e,n,r){var i,o=this._iv;o?(i=o,this._iv=t):i=this._prevBlock;for(var a=0;a>>2];e.sigBytes-=t}},v=(r.BlockCipher=d.extend({cfg:d.cfg.extend({mode:p,padding:g}),reset:function(){var e;d.reset.call(this);var t=this.cfg,n=t.iv,r=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=r.createEncryptor:(e=r.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,n&&n.words):(this._mode=e.call(r,this,n&&n.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4}),r.CipherParams=i.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}})),y=n.format={},b=y.OpenSSL={stringify:function(e){var t,n=e.ciphertext,r=e.salt;return t=r?o.create([1398893684,1701076831]).concat(r).concat(n):n,t.toString(l)},parse:function(e){var t,n=l.parse(e),r=n.words;return 1398893684==r[0]&&1701076831==r[1]&&(t=o.create(r.slice(2,4)),r.splice(0,4),n.sigBytes-=16),v.create({ciphertext:n,salt:t})}},_=r.SerializableCipher=i.extend({cfg:i.extend({format:b}),encrypt:function(e,t,n,r){r=this.cfg.extend(r);var i=e.createEncryptor(n,r),o=i.finalize(t),a=i.cfg;return v.create({ciphertext:o,key:n,iv:a.iv,algorithm:e,mode:a.mode,padding:a.padding,blockSize:e.blockSize,formatter:r.format})},decrypt:function(e,t,n,r){r=this.cfg.extend(r),t=this._parse(t,r.format);var i=e.createDecryptor(n,r).finalize(t.ciphertext);return i},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),w=n.kdf={},x=w.OpenSSL={execute:function(e,t,n,r,i){if(r||(r=o.random(8)),i)a=c.create({keySize:t+n,hasher:i}).compute(e,r);else var a=c.create({keySize:t+n}).compute(e,r);var s=o.create(a.words.slice(t),4*n);return a.sigBytes=4*t,v.create({key:a,iv:s,salt:r})}},k=r.PasswordBasedCipher=_.extend({cfg:_.cfg.extend({kdf:x}),encrypt:function(e,t,n,r){r=this.cfg.extend(r);var i=r.kdf.execute(n,e.keySize,e.ivSize,r.salt,r.hasher);r.iv=i.iv;var o=_.encrypt.call(this,e,t,i.key,r);return o.mixIn(i),o},decrypt:function(e,t,n,r){r=this.cfg.extend(r),t=this._parse(t,r.format);var i=r.kdf.execute(n,e.keySize,e.ivSize,t.salt,r.hasher);r.iv=i.iv;var o=_.decrypt.call(this,e,t,i.key,r);return o}})}()}))},"38fd":function(e,t,n){var r=n("69a8"),i=n("4bf8"),o=n("613b")("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},3934:function(e,t,n){"use strict";var r=n("c532");e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=i(window.location.href),function(t){var n=r.isString(t)?i(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return function(){return!0}}()},3938:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.radarConfig=void 0;var r={show:!0,name:"",data:[],radarStyle:{lineWidth:1},point:{show:!0,radius:2,style:{fill:"#fff"}},label:{show:!0,offset:[0,0],labelGap:5,formatter:null,style:{fontSize:10}},rLevel:10,animationCurve:"easeOutCubic",animationFrane:50};t.radarConfig=r},3953:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n("f921"),i=n.n(r),o=n("d8d6"),a=n.n(o),s=n("d2d5"),l=n.n(s);function u(e){if("undefined"!=typeof i.a&&null!=e[a.a]||null!=e["@@iterator"])return l()(e)}},"39a6":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration var t=e.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,n=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n},week:{dow:1,doy:4}});return t}))},"39bd":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};function r(e,t,n,r){var i="";if(t)switch(n){case"s":i="काही सेकंद";break;case"ss":i="%d सेकंद";break;case"m":i="एक मिनिट";break;case"mm":i="%d मिनिटे";break;case"h":i="एक तास";break;case"hh":i="%d तास";break;case"d":i="एक दिवस";break;case"dd":i="%d दिवस";break;case"M":i="एक महिना";break;case"MM":i="%d महिने";break;case"y":i="एक वर्ष";break;case"yy":i="%d वर्षे";break}else switch(n){case"s":i="काही सेकंदां";break;case"ss":i="%d सेकंदां";break;case"m":i="एका मिनिटा";break;case"mm":i="%d मिनिटां";break;case"h":i="एका तासा";break;case"hh":i="%d तासां";break;case"d":i="एका दिवसा";break;case"dd":i="%d दिवसां";break;case"M":i="एका महिन्या";break;case"MM":i="%d महिन्यां";break;case"y":i="एका वर्षा";break;case"yy":i="%d वर्षां";break}return i.replace(/%d/i,e)}var i=e.defineLocale("mr",{months:"जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),monthsShort:"जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm वाजता",LTS:"A h:mm:ss वाजता",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm वाजता",LLLL:"dddd, D MMMM YYYY, A h:mm वाजता"},calendar:{sameDay:"[आज] LT",nextDay:"[उद्या] LT",nextWeek:"dddd, LT",lastDay:"[काल] LT",lastWeek:"[मागील] dddd, LT",sameElse:"L"},relativeTime:{future:"%sमध्ये",past:"%sपूर्वी",s:r,ss:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/पहाटे|सकाळी|दुपारी|सायंकाळी|रात्री/,meridiemHour:function(e,t){return 12===e&&(e=0),"पहाटे"===t||"सकाळी"===t?e:"दुपारी"===t||"सायंकाळी"===t||"रात्री"===t?e>=12?e:e+12:void 0},meridiem:function(e,t,n){return e>=0&&e<6?"पहाटे":e<12?"सकाळी":e<17?"दुपारी":e<20?"सायंकाळी":"रात्री"},week:{dow:0,doy:6}});return i}))},"3a38":function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},"3a39":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"},r=e.defineLocale("ne",{months:"जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर".split("_"),monthsShort:"जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.".split("_"),monthsParseExact:!0,weekdays:"आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार".split("_"),weekdaysShort:"आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.".split("_"),weekdaysMin:"आ._सो._मं._बु._बि._शु._श.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"Aको h:mm बजे",LTS:"Aको h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, Aको h:mm बजे",LLLL:"dddd, D MMMM YYYY, Aको h:mm बजे"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/राति|बिहान|दिउँसो|साँझ/,meridiemHour:function(e,t){return 12===e&&(e=0),"राति"===t?e<4?e:e+12:"बिहान"===t?e:"दिउँसो"===t?e>=10?e:e+12:"साँझ"===t?e+12:void 0},meridiem:function(e,t,n){return e<3?"राति":e<12?"बिहान":e<16?"दिउँसो":e<20?"साँझ":"राति"},calendar:{sameDay:"[आज] LT",nextDay:"[भोलि] LT",nextWeek:"[आउँदो] dddd[,] LT",lastDay:"[हिजो] LT",lastWeek:"[गएको] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%sमा",past:"%s अगाडि",s:"केही क्षण",ss:"%d सेकेण्ड",m:"एक मिनेट",mm:"%d मिनेट",h:"एक घण्टा",hh:"%d घण्टा",d:"एक दिन",dd:"%d दिन",M:"एक महिना",MM:"%d महिना",y:"एक बर्ष",yy:"%d बर्ष"},week:{dow:0,doy:6}});return r}))},"3a6c":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration var t=e.defineLocale("zh-mo",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"D/M/YYYY",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}});return t}))},"3a72":function(e,t,n){var r=n("7726"),i=n("8378"),o=n("2d00"),a=n("37c8"),s=n("86cc").f;e.exports=function(e){var t=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},"3a9c":function(e,t,n){var r=n("37a7"),i=n("cb7c"),o=n("d8e8"),a=r.key,s=r.set;r.exp({metadata:function(e,t){return function(n,r){s(e,t,(void 0!==r?i:o)(n),a(r))}}})},"3b1b":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration var t={0:"-ум",1:"-ум",2:"-юм",3:"-юм",4:"-ум",5:"-ум",6:"-ум",7:"-ум",8:"-ум",9:"-ум",10:"-ум",12:"-ум",13:"-ум",20:"-ум",30:"-юм",40:"-ум",50:"-ум",60:"-ум",70:"-ум",80:"-ум",90:"-ум",100:"-ум"},n=e.defineLocale("tg",{months:{format:"январи_феврали_марти_апрели_майи_июни_июли_августи_сентябри_октябри_ноябри_декабри".split("_"),standalone:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_")},monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе".split("_"),weekdaysShort:"яшб_дшб_сшб_чшб_пшб_ҷум_шнб".split("_"),weekdaysMin:"яш_дш_сш_чш_пш_ҷм_шб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Имрӯз соати] LT",nextDay:"[Фардо соати] LT",lastDay:"[Дирӯз соати] LT",nextWeek:"dddd[и] [ҳафтаи оянда соати] LT",lastWeek:"dddd[и] [ҳафтаи гузашта соати] LT",sameElse:"L"},relativeTime:{future:"баъди %s",past:"%s пеш",s:"якчанд сония",m:"як дақиқа",mm:"%d дақиқа",h:"як соат",hh:"%d соат",d:"як рӯз",dd:"%d рӯз",M:"як моҳ",MM:"%d моҳ",y:"як сол",yy:"%d сол"},meridiemParse:/шаб|субҳ|рӯз|бегоҳ/,meridiemHour:function(e,t){return 12===e&&(e=0),"шаб"===t?e<4?e:e+12:"субҳ"===t?e:"рӯз"===t?e>=11?e:e+12:"бегоҳ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"шаб":e<11?"субҳ":e<16?"рӯз":e<19?"бегоҳ":"шаб"},dayOfMonthOrdinalParse:/\d{1,2}-(ум|юм)/,ordinal:function(e){var n=e%10,r=e>=100?100:null;return e+(t[e]||t[n]||t[r])},week:{dow:1,doy:7}});return n}))},"3b2b":function(e,t,n){var r=n("7726"),i=n("5dbc"),o=n("86cc").f,a=n("9093").f,s=n("aae3"),l=n("0bfb"),u=r.RegExp,c=u,d=u.prototype,h=/a/g,f=/a/g,p=new u(h)!==h;if(n("9e1e")&&(!p||n("79e5")((function(){return f[n("2b4c")("match")]=!1,u(h)!=h||u(f)==f||"/a/i"!=u(h,"i")})))){u=function(e,t){var n=this instanceof u,r=s(e),o=void 0===t;return!n&&r&&e.constructor===u&&o?e:i(p?new c(r&&!o?e.source:e,t):c((r=e instanceof u)?e.source:e,r&&o?l.call(e):t),n?this:d,u)};for(var m=function(e){e in u||o(u,e,{configurable:!0,get:function(){return c[e]},set:function(t){c[e]=t}})},g=a(c),v=0;g.length>v;)m(g[v++]);d.constructor=u,u.prototype=d,n("2aba")(r,"RegExp",u)}n("7a56")("RegExp")},"3b8d":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("696e"),i=n.n(r);function o(e,t,n,r,o,a,s){try{var l=e[a](s),u=l.value}catch(e){return void n(e)}l.done?t(u):i.a.resolve(u).then(r,o)}function a(e){return function(){var t=this,n=arguments;return new i.a((function(r,i){var a=e.apply(t,n);function s(e){o(a,r,i,s,l,"next",e)}function l(e){o(a,r,i,s,l,"throw",e)}s(void 0)}))}}},"3c0d":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration var t={standalone:"leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),format:"ledna_února_března_dubna_května_června_července_srpna_září_října_listopadu_prosince".split("_"),isFormat:/DD?[o.]?(\[[^\[\]]*\]|\s)+MMMM/},n="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_"),r=[/^led/i,/^úno/i,/^bře/i,/^dub/i,/^kvě/i,/^(čvn|červen$|června)/i,/^(čvc|červenec|července)/i,/^srp/i,/^zář/i,/^říj/i,/^lis/i,/^pro/i],i=/^(leden|únor|březen|duben|květen|červenec|července|červen|června|srpen|září|říjen|listopad|prosinec|led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i;function o(e){return e>1&&e<5&&1!==~~(e/10)}function a(e,t,n,r){var i=e+" ";switch(n){case"s":return t||r?"pár sekund":"pár sekundami";case"ss":return t||r?i+(o(e)?"sekundy":"sekund"):i+"sekundami";case"m":return t?"minuta":r?"minutu":"minutou";case"mm":return t||r?i+(o(e)?"minuty":"minut"):i+"minutami";case"h":return t?"hodina":r?"hodinu":"hodinou";case"hh":return t||r?i+(o(e)?"hodiny":"hodin"):i+"hodinami";case"d":return t||r?"den":"dnem";case"dd":return t||r?i+(o(e)?"dny":"dní"):i+"dny";case"M":return t||r?"měsíc":"měsícem";case"MM":return t||r?i+(o(e)?"měsíce":"měsíců"):i+"měsíci";case"y":return t||r?"rok":"rokem";case"yy":return t||r?i+(o(e)?"roky":"let"):i+"lety"}}var s=e.defineLocale("cs",{months:t,monthsShort:n,monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[zítra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v neděli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve středu v] LT";case 4:return"[ve čtvrtek v] LT";case 5:return"[v pátek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[včera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou neděli v] LT";case 1:case 2:return"[minulé] dddd [v] LT";case 3:return"[minulou středu v] LT";case 4:case 5:return"[minulý] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"před %s",s:a,ss:a,m:a,mm:a,h:a,hh:a,d:a,dd:a,M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return s}))},"3c0e":function(e,t,n){},"3c11":function(e,t,n){"use strict";var r=n("63b6"),i=n("584a"),o=n("e53d"),a=n("f201"),s=n("cd78");r(r.P+r.R,"Promise",{finally:function(e){var t=a(this,i.Promise||o.Promise),n="function"==typeof e;return this.then(n?function(n){return s(t,e()).then((function(){return n}))}:e,n?function(n){return s(t,e()).then((function(){throw n}))}:e)}})},"3c4e":function(e,t,n){"use strict";var r=function(e){return i(e)&&!o(e)};function i(e){return!!e&&"object"===typeof e}function o(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||l(e)}var a="function"===typeof Symbol&&Symbol.for,s=a?Symbol.for("react.element"):60103;function l(e){return e.$$typeof===s}function u(e){return Array.isArray(e)?[]:{}}function c(e,t){var n=t&&!0===t.clone;return n&&r(e)?f(u(e),e,t):e}function d(e,t,n){var i=e.slice();return t.forEach((function(t,o){"undefined"===typeof i[o]?i[o]=c(t,n):r(t)?i[o]=f(e[o],t,n):-1===e.indexOf(t)&&i.push(c(t,n))})),i}function h(e,t,n){var i={};return r(e)&&Object.keys(e).forEach((function(t){i[t]=c(e[t],n)})),Object.keys(t).forEach((function(o){r(t[o])&&e[o]?i[o]=f(e[o],t[o],n):i[o]=c(t[o],n)})),i}function f(e,t,n){var r=Array.isArray(t),i=Array.isArray(e),o=n||{arrayMerge:d},a=r===i;if(a){if(r){var s=o.arrayMerge||d;return s(e,t,n)}return h(e,t,n)}return c(t,n)}f.all=function(e,t){if(!Array.isArray(e)||e.length<2)throw new Error("first argument should be an array with at least two elements");return e.reduce((function(e,n){return f(e,n,t)}))};var p=f;e.exports=p},"3ca5":function(e,t,n){var r=n("7726").parseInt,i=n("aa77").trim,o=n("fdef"),a=/^[-+]?0[xX]/;e.exports=8!==r(o+"08")||22!==r(o+"0x16")?function(e,t){var n=i(String(e),3);return r(n,t>>>0||(a.test(n)?16:10))}:r},"3d5a":function(e,t,n){(function(t,r,i){e.exports=r(n("21bf"),n("1132"),n("72fe"),n("2b79"),n("38ba"))})(0,(function(e){return function(){var t=e,n=t.lib,r=n.StreamCipher,i=t.algo,o=[],a=[],s=[],l=i.RabbitLegacy=r.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,n=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],r=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var i=0;i<4;i++)u.call(this);for(i=0;i<8;i++)r[i]^=n[i+4&7];if(t){var o=t.words,a=o[0],s=o[1],l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),c=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=l>>>16|4294901760&c,h=c<<16|65535&l;r[0]^=l,r[1]^=d,r[2]^=c,r[3]^=h,r[4]^=l,r[5]^=d,r[6]^=c,r[7]^=h;for(i=0;i<4;i++)u.call(this)}},_doProcessBlock:function(e,t){var n=this._X;u.call(this),o[0]=n[0]^n[5]>>>16^n[3]<<16,o[1]=n[2]^n[7]>>>16^n[5]<<16,o[2]=n[4]^n[1]>>>16^n[7]<<16,o[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)o[r]=16711935&(o[r]<<8|o[r]>>>24)|4278255360&(o[r]<<24|o[r]>>>8),e[t+r]^=o[r]},blockSize:4,ivSize:2});function u(){for(var e=this._X,t=this._C,n=0;n<8;n++)a[n]=t[n];t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0>>0?1:0)|0,this._b=t[7]>>>0>>0?1:0;for(n=0;n<8;n++){var r=e[n]+t[n],i=65535&r,o=r>>>16,l=((i*i>>>17)+i*o>>>15)+o*o,u=((4294901760&r)*r|0)+((65535&r)*r|0);s[n]=l^u}e[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,e[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,e[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,e[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,e[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,e[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,e[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,e[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}t.RabbitLegacy=r._createHelper(l)}(),e.RabbitLegacy}))},"3de5":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration var t={1:"௧",2:"௨",3:"௩",4:"௪",5:"௫",6:"௬",7:"௭",8:"௮",9:"௯",0:"௦"},n={"௧":"1","௨":"2","௩":"3","௪":"4","௫":"5","௬":"6","௭":"7","௮":"8","௯":"9","௦":"0"},r=e.defineLocale("ta",{months:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),monthsShort:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),weekdays:"ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை".split("_"),weekdaysShort:"ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி".split("_"),weekdaysMin:"ஞா_தி_செ_பு_வி_வெ_ச".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[இன்று] LT",nextDay:"[நாளை] LT",nextWeek:"dddd, LT",lastDay:"[நேற்று] LT",lastWeek:"[கடந்த வாரம்] dddd, LT",sameElse:"L"},relativeTime:{future:"%s இல்",past:"%s முன்",s:"ஒரு சில விநாடிகள்",ss:"%d விநாடிகள்",m:"ஒரு நிமிடம்",mm:"%d நிமிடங்கள்",h:"ஒரு மணி நேரம்",hh:"%d மணி நேரம்",d:"ஒரு நாள்",dd:"%d நாட்கள்",M:"ஒரு மாதம்",MM:"%d மாதங்கள்",y:"ஒரு வருடம்",yy:"%d ஆண்டுகள்"},dayOfMonthOrdinalParse:/\d{1,2}வது/,ordinal:function(e){return e+"வது"},preparse:function(e){return e.replace(/[௧௨௩௪௫௬௭௮௯௦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,meridiem:function(e,t,n){return e<2?" யாமம்":e<6?" வைகறை":e<10?" காலை":e<14?" நண்பகல்":e<18?" எற்பாடு":e<22?" மாலை":" யாமம்"},meridiemHour:function(e,t){return 12===e&&(e=0),"யாமம்"===t?e<2?e:e+12:"வைகறை"===t||"காலை"===t||"நண்பகல்"===t&&e>=10?e:e+12},week:{dow:0,doy:6}});return r}))},"3e8a":function(e,t,n){},"3e92":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration var t={1:"೧",2:"೨",3:"೩",4:"೪",5:"೫",6:"೬",7:"೭",8:"೮",9:"೯",0:"೦"},n={"೧":"1","೨":"2","೩":"3","೪":"4","೫":"5","೬":"6","೭":"7","೮":"8","೯":"9","೦":"0"},r=e.defineLocale("kn",{months:"ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್".split("_"),monthsShort:"ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ".split("_"),monthsParseExact:!0,weekdays:"ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ".split("_"),weekdaysShort:"ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ".split("_"),weekdaysMin:"ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[ಇಂದು] LT",nextDay:"[ನಾಳೆ] LT",nextWeek:"dddd, LT",lastDay:"[ನಿನ್ನೆ] LT",lastWeek:"[ಕೊನೆಯ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ನಂತರ",past:"%s ಹಿಂದೆ",s:"ಕೆಲವು ಕ್ಷಣಗಳು",ss:"%d ಸೆಕೆಂಡುಗಳು",m:"ಒಂದು ನಿಮಿಷ",mm:"%d ನಿಮಿಷ",h:"ಒಂದು ಗಂಟೆ",hh:"%d ಗಂಟೆ",d:"ಒಂದು ದಿನ",dd:"%d ದಿನ",M:"ಒಂದು ತಿಂಗಳು",MM:"%d ತಿಂಗಳು",y:"ಒಂದು ವರ್ಷ",yy:"%d ವರ್ಷ"},preparse:function(e){return e.replace(/[೧೨೩೪೫೬೭೮೯೦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,meridiemHour:function(e,t){return 12===e&&(e=0),"ರಾತ್ರಿ"===t?e<4?e:e+12:"ಬೆಳಿಗ್ಗೆ"===t?e:"ಮಧ್ಯಾಹ್ನ"===t?e>=10?e:e+12:"ಸಂಜೆ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"ರಾತ್ರಿ":e<10?"ಬೆಳಿಗ್ಗೆ":e<17?"ಮಧ್ಯಾಹ್ನ":e<20?"ಸಂಜೆ":"ರಾತ್ರಿ"},dayOfMonthOrdinalParse:/\d{1,2}(ನೇ)/,ordinal:function(e){return e+"ನೇ"},week:{dow:0,doy:6}});return r}))},"3f6b":function(e,t,n){e.exports={default:n("51b6"),__esModule:!0}},"3f71":function(e,t,n){var r=n("0d58"),i=n("6821");e.exports=function(e,t){var n,o=i(e),a=r(o),s=a.length,l=0;while(s>l)if(o[n=a[l++]]===t)return n}},"40b3":function(e,t,n){(function(t,n){e.exports=n()})(0,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s="./index.js")}({"./index.js": /*!******************!*\ !*** ./index.js ***! \******************/ /*! no static exports found */function(e,t,n){var r=n(/*! ./src/cos */"./src/cos.js");e.exports=r},"./lib/base64.js": /*!***********************!*\ !*** ./lib/base64.js ***! \***********************/ /*! no static exports found */function(e,t){var n=function(e){e=e||{};var t,n=e.Base64,r="2.1.9",i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=function(e){for(var t={},n=0,r=e.length;n>>6)+a(128|63&t):a(224|t>>>12&15)+a(128|t>>>6&63)+a(128|63&t)}t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return a(240|t>>>18&7)+a(128|t>>>12&63)+a(128|t>>>6&63)+a(128|63&t)},l=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,u=function(e){return e.replace(l,s)},c=function(e){var t=[0,2,1][e.length%3],n=e.charCodeAt(0)<<16|(e.length>1?e.charCodeAt(1):0)<<8|(e.length>2?e.charCodeAt(2):0),r=[i.charAt(n>>>18),i.charAt(n>>>12&63),t>=2?"=":i.charAt(n>>>6&63),t>=1?"=":i.charAt(63&n)];return r.join("")},d=e.btoa?function(t){return e.btoa(t)}:function(e){return e.replace(/[\s\S]{1,3}/g,c)},h=t?function(e){return(e.constructor===t.constructor?e:new t(e)).toString("base64")}:function(e){return d(u(e))},f=function(e,t){return t?h(String(e)).replace(/[+\/]/g,(function(e){return"+"==e?"-":"_"})).replace(/=/g,""):h(String(e))},p=function(e){return f(e,!0)},m=new RegExp(["[À-ß][€-¿]","[à-ï][€-¿]{2}","[ð-÷][€-¿]{3}"].join("|"),"g"),g=function(e){switch(e.length){case 4:var t=(7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3),n=t-65536;return a(55296+(n>>>10))+a(56320+(1023&n));case 3:return a((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return a((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},v=function(e){return e.replace(m,g)},y=function(e){var t=e.length,n=t%4,r=(t>0?o[e.charAt(0)]<<18:0)|(t>1?o[e.charAt(1)]<<12:0)|(t>2?o[e.charAt(2)]<<6:0)|(t>3?o[e.charAt(3)]:0),i=[a(r>>>16),a(r>>>8&255),a(255&r)];return i.length-=[0,0,2,1][n],i.join("")},b=e.atob?function(t){return e.atob(t)}:function(e){return e.replace(/[\s\S]{1,4}/g,y)},_=t?function(e){return(e.constructor===t.constructor?e:new t(e,"base64")).toString()}:function(e){return v(b(e))},w=function(e){return _(String(e).replace(/[-_]/g,(function(e){return"-"==e?"+":"/"})).replace(/[^A-Za-z0-9\+\/]/g,""))},x=function(){var t=e.Base64;return e.Base64=n,t},k={VERSION:r,atob:b,btoa:d,fromBase64:w,toBase64:f,utob:u,encode:f,encodeURI:p,btou:v,decode:w,noConflict:x};return k}();e.exports=n},"./lib/crypto.js": /*!***********************!*\ !*** ./lib/crypto.js ***! \***********************/ /*! no static exports found */function(e,t,n){(function(e){var t=n(/*! @babel/runtime/helpers/typeof */"./node_modules/@babel/runtime/helpers/typeof.js"),r=r||function(e,t){var n={},r=n.lib={},i=function(){},o=r.Base={extend:function(e){i.prototype=this;var t=new i;return e&&t.mixIn(e),t.hasOwnProperty("init")||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},a=r.WordArray=o.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n!=t?n:4*e.length},toString:function(e){return(e||l).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes;if(e=e.sigBytes,this.clamp(),r%4)for(var i=0;i>>2]|=(n[i>>>2]>>>24-i%4*8&255)<<24-(r+i)%4*8;else if(65535>>2]=n[i>>>2];else t.push.apply(t,n);return this.sigBytes+=e,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=o.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var n=[],r=0;r>>2]>>>24-r%4*8&255;n.push((i>>>4).toString(16)),n.push((15&i).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new a.init(n,t/2)}},u=s.Latin1={stringify:function(e){var t=e.words;e=e.sigBytes;for(var n=[],r=0;r>>2]>>>24-r%4*8&255));return n.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new a.init(n,t)}},c=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(u.stringify(e)))}catch(t){throw Error("Malformed UTF-8 data")}},parse:function(e){return u.parse(unescape(encodeURIComponent(e)))}},d=r.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=c.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n=this._data,r=n.words,i=n.sigBytes,o=this.blockSize,s=i/(4*o);s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0);if(t=s*o,i=e.min(4*t,i),t){for(var l=0;lu;u++){if(16>u)o[u]=0|e[t+u];else{var c=o[u-3]^o[u-8]^o[u-14]^o[u-16];o[u]=c<<1|c>>>31}c=(r<<5|r>>>27)+l+o[u],c=20>u?c+(1518500249+(i&a|~i&s)):40>u?c+(1859775393+(i^a^s)):60>u?c+((i&a|i&s|a&s)-1894007588):c+((i^a^s)-899497514),l=s,s=a,a=i<<30|i>>>2,i=r,r=c}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+a|0,n[3]=n[3]+s|0,n[4]=n[4]+l|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=Math.floor(n/4294967296),t[15+(r+64>>>9<<4)]=n,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});e.SHA1=i._createHelper(t),e.HmacSHA1=i._createHmacHelper(t)})(),function(){var e=r,t=e.enc.Utf8;e.algo.HMAC=e.lib.Base.extend({init:function(e,n){e=this._hasher=new e.init,"string"==typeof n&&(n=t.parse(n));var r=e.blockSize,i=4*r;n.sigBytes>i&&(n=e.finalize(n)),n.clamp();for(var o=this._oKey=n.clone(),a=this._iKey=n.clone(),s=o.words,l=a.words,u=0;u>>2]>>>24-o%4*8&255,s=t[o+1>>>2]>>>24-(o+1)%4*8&255,l=t[o+2>>>2]>>>24-(o+2)%4*8&255,u=a<<16|s<<8|l,c=0;c<4&&o+.75*c>>6*(3-c)&63));var d=r.charAt(64);if(d)while(i.length%4)i.push(d);return i.join("")},parse:function(e){var t=e.length,r=this._map,i=r.charAt(64);if(i){var o=e.indexOf(i);-1!=o&&(t=o)}for(var a=[],s=0,l=0;l>>6-l%4*2;a[s>>>2]|=(u|c)<<24-s%4*8,s++}return n.create(a,s)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),"object"===t(e)?e.exports=r:window.CryptoJS=r}).call(this,n(/*! ./../node_modules/webpack/buildin/module.js */"./node_modules/webpack/buildin/module.js")(e))},"./lib/md5.js": /*!********************!*\ !*** ./lib/md5.js ***! \********************/ /*! no static exports found */function(e,t,n){(function(e){var t,r=n(/*! @babel/runtime/helpers/typeof */"./node_modules/@babel/runtime/helpers/typeof.js");(function(){"use strict";var i="object"===("undefined"===typeof window?"undefined":r(window)),o=i?window:{};o.JS_MD5_NO_WINDOW&&(i=!1);var a=!i&&"object"===("undefined"===typeof self?"undefined":r(self));a&&(o=self);var s,l=!o.JS_MD5_NO_COMMON_JS&&"object"===r(e)&&e.exports,u=n(/*! !webpack amd options */"./node_modules/webpack/buildin/amd-options.js"),c=!o.JS_MD5_NO_ARRAY_BUFFER&&"undefined"!==typeof ArrayBuffer,d="0123456789abcdef".split(""),h=[128,32768,8388608,-2147483648],f=[0,8,16,24],p=["hex","array","digest","buffer","arrayBuffer","base64"],m="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),g=[];if(c){var v=new ArrayBuffer(68);s=new Uint8Array(v),g=new Uint32Array(v)}!o.JS_MD5_NO_NODE_JS&&Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),!c||!o.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(e){return"object"===r(e)&&e.buffer&&e.buffer.constructor===ArrayBuffer});var y=function(e){return function(t,n){return new _(!0).update(t,n)[e]()}},b=function(){var e=y("hex");e.getCtx=e.create=function(){return new _},e.update=function(t){return e.create().update(t)};for(var t=0;t>6,s[r++]=128|63&n):n<55296||n>=57344?(s[r++]=224|n>>12,s[r++]=128|n>>6&63,s[r++]=128|63&n):(n=65536+((1023&n)<<10|1023&e.charCodeAt(++i)),s[r++]=240|n>>18,s[r++]=128|n>>12&63,s[r++]=128|n>>6&63,s[r++]=128|63&n);else for(r=this.start;i>2]|=n<>2]|=(192|n>>6)<>2]|=(128|63&n)<=57344?(a[r>>2]|=(224|n>>12)<>2]|=(128|n>>6&63)<>2]|=(128|63&n)<>2]|=(240|n>>18)<>2]|=(128|n>>12&63)<>2]|=(128|n>>6&63)<>2]|=(128|63&n)<=64?(this.start=r-64,this.hash(),this.hashed=!0):this.start=r}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},_.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[t>>2]|=h[3&t],t>=56&&(this.hashed||this.hash(),e[0]=e[16],e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.bytes<<3,e[15]=this.hBytes<<3|this.bytes>>>29,this.hash()}},_.prototype.hash=function(){var e,t,n,r,i,o,a=this.blocks;this.first?(e=a[0]-680876937,e=(e<<7|e>>>25)-271733879<<0,r=(-1732584194^2004318071&e)+a[1]-117830708,r=(r<<12|r>>>20)+e<<0,n=(-271733879^r&(-271733879^e))+a[2]-1126478375,n=(n<<17|n>>>15)+r<<0,t=(e^n&(r^e))+a[3]-1316259209,t=(t<<22|t>>>10)+n<<0):(e=this.h0,t=this.h1,n=this.h2,r=this.h3,e+=(r^t&(n^r))+a[0]-680876936,e=(e<<7|e>>>25)+t<<0,r+=(n^e&(t^n))+a[1]-389564586,r=(r<<12|r>>>20)+e<<0,n+=(t^r&(e^t))+a[2]+606105819,n=(n<<17|n>>>15)+r<<0,t+=(e^n&(r^e))+a[3]-1044525330,t=(t<<22|t>>>10)+n<<0),e+=(r^t&(n^r))+a[4]-176418897,e=(e<<7|e>>>25)+t<<0,r+=(n^e&(t^n))+a[5]+1200080426,r=(r<<12|r>>>20)+e<<0,n+=(t^r&(e^t))+a[6]-1473231341,n=(n<<17|n>>>15)+r<<0,t+=(e^n&(r^e))+a[7]-45705983,t=(t<<22|t>>>10)+n<<0,e+=(r^t&(n^r))+a[8]+1770035416,e=(e<<7|e>>>25)+t<<0,r+=(n^e&(t^n))+a[9]-1958414417,r=(r<<12|r>>>20)+e<<0,n+=(t^r&(e^t))+a[10]-42063,n=(n<<17|n>>>15)+r<<0,t+=(e^n&(r^e))+a[11]-1990404162,t=(t<<22|t>>>10)+n<<0,e+=(r^t&(n^r))+a[12]+1804603682,e=(e<<7|e>>>25)+t<<0,r+=(n^e&(t^n))+a[13]-40341101,r=(r<<12|r>>>20)+e<<0,n+=(t^r&(e^t))+a[14]-1502002290,n=(n<<17|n>>>15)+r<<0,t+=(e^n&(r^e))+a[15]+1236535329,t=(t<<22|t>>>10)+n<<0,e+=(n^r&(t^n))+a[1]-165796510,e=(e<<5|e>>>27)+t<<0,r+=(t^n&(e^t))+a[6]-1069501632,r=(r<<9|r>>>23)+e<<0,n+=(e^t&(r^e))+a[11]+643717713,n=(n<<14|n>>>18)+r<<0,t+=(r^e&(n^r))+a[0]-373897302,t=(t<<20|t>>>12)+n<<0,e+=(n^r&(t^n))+a[5]-701558691,e=(e<<5|e>>>27)+t<<0,r+=(t^n&(e^t))+a[10]+38016083,r=(r<<9|r>>>23)+e<<0,n+=(e^t&(r^e))+a[15]-660478335,n=(n<<14|n>>>18)+r<<0,t+=(r^e&(n^r))+a[4]-405537848,t=(t<<20|t>>>12)+n<<0,e+=(n^r&(t^n))+a[9]+568446438,e=(e<<5|e>>>27)+t<<0,r+=(t^n&(e^t))+a[14]-1019803690,r=(r<<9|r>>>23)+e<<0,n+=(e^t&(r^e))+a[3]-187363961,n=(n<<14|n>>>18)+r<<0,t+=(r^e&(n^r))+a[8]+1163531501,t=(t<<20|t>>>12)+n<<0,e+=(n^r&(t^n))+a[13]-1444681467,e=(e<<5|e>>>27)+t<<0,r+=(t^n&(e^t))+a[2]-51403784,r=(r<<9|r>>>23)+e<<0,n+=(e^t&(r^e))+a[7]+1735328473,n=(n<<14|n>>>18)+r<<0,t+=(r^e&(n^r))+a[12]-1926607734,t=(t<<20|t>>>12)+n<<0,i=t^n,e+=(i^r)+a[5]-378558,e=(e<<4|e>>>28)+t<<0,r+=(i^e)+a[8]-2022574463,r=(r<<11|r>>>21)+e<<0,o=r^e,n+=(o^t)+a[11]+1839030562,n=(n<<16|n>>>16)+r<<0,t+=(o^n)+a[14]-35309556,t=(t<<23|t>>>9)+n<<0,i=t^n,e+=(i^r)+a[1]-1530992060,e=(e<<4|e>>>28)+t<<0,r+=(i^e)+a[4]+1272893353,r=(r<<11|r>>>21)+e<<0,o=r^e,n+=(o^t)+a[7]-155497632,n=(n<<16|n>>>16)+r<<0,t+=(o^n)+a[10]-1094730640,t=(t<<23|t>>>9)+n<<0,i=t^n,e+=(i^r)+a[13]+681279174,e=(e<<4|e>>>28)+t<<0,r+=(i^e)+a[0]-358537222,r=(r<<11|r>>>21)+e<<0,o=r^e,n+=(o^t)+a[3]-722521979,n=(n<<16|n>>>16)+r<<0,t+=(o^n)+a[6]+76029189,t=(t<<23|t>>>9)+n<<0,i=t^n,e+=(i^r)+a[9]-640364487,e=(e<<4|e>>>28)+t<<0,r+=(i^e)+a[12]-421815835,r=(r<<11|r>>>21)+e<<0,o=r^e,n+=(o^t)+a[15]+530742520,n=(n<<16|n>>>16)+r<<0,t+=(o^n)+a[2]-995338651,t=(t<<23|t>>>9)+n<<0,e+=(n^(t|~r))+a[0]-198630844,e=(e<<6|e>>>26)+t<<0,r+=(t^(e|~n))+a[7]+1126891415,r=(r<<10|r>>>22)+e<<0,n+=(e^(r|~t))+a[14]-1416354905,n=(n<<15|n>>>17)+r<<0,t+=(r^(n|~e))+a[5]-57434055,t=(t<<21|t>>>11)+n<<0,e+=(n^(t|~r))+a[12]+1700485571,e=(e<<6|e>>>26)+t<<0,r+=(t^(e|~n))+a[3]-1894986606,r=(r<<10|r>>>22)+e<<0,n+=(e^(r|~t))+a[10]-1051523,n=(n<<15|n>>>17)+r<<0,t+=(r^(n|~e))+a[1]-2054922799,t=(t<<21|t>>>11)+n<<0,e+=(n^(t|~r))+a[8]+1873313359,e=(e<<6|e>>>26)+t<<0,r+=(t^(e|~n))+a[15]-30611744,r=(r<<10|r>>>22)+e<<0,n+=(e^(r|~t))+a[6]-1560198380,n=(n<<15|n>>>17)+r<<0,t+=(r^(n|~e))+a[13]+1309151649,t=(t<<21|t>>>11)+n<<0,e+=(n^(t|~r))+a[4]-145523070,e=(e<<6|e>>>26)+t<<0,r+=(t^(e|~n))+a[11]-1120210379,r=(r<<10|r>>>22)+e<<0,n+=(e^(r|~t))+a[2]+718787259,n=(n<<15|n>>>17)+r<<0,t+=(r^(n|~e))+a[9]-343485551,t=(t<<21|t>>>11)+n<<0,this.first?(this.h0=e+1732584193<<0,this.h1=t-271733879<<0,this.h2=n-1732584194<<0,this.h3=r+271733878<<0,this.first=!1):(this.h0=this.h0+e<<0,this.h1=this.h1+t<<0,this.h2=this.h2+n<<0,this.h3=this.h3+r<<0)},_.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3;return d[e>>4&15]+d[15&e]+d[e>>12&15]+d[e>>8&15]+d[e>>20&15]+d[e>>16&15]+d[e>>28&15]+d[e>>24&15]+d[t>>4&15]+d[15&t]+d[t>>12&15]+d[t>>8&15]+d[t>>20&15]+d[t>>16&15]+d[t>>28&15]+d[t>>24&15]+d[n>>4&15]+d[15&n]+d[n>>12&15]+d[n>>8&15]+d[n>>20&15]+d[n>>16&15]+d[n>>28&15]+d[n>>24&15]+d[r>>4&15]+d[15&r]+d[r>>12&15]+d[r>>8&15]+d[r>>20&15]+d[r>>16&15]+d[r>>28&15]+d[r>>24&15]},_.prototype.toString=_.prototype.hex,_.prototype.digest=function(e){if("hex"===e)return this.hex();this.finalize();var t=this.h0,n=this.h1,r=this.h2,i=this.h3,o=[255&t,t>>8&255,t>>16&255,t>>24&255,255&n,n>>8&255,n>>16&255,n>>24&255,255&r,r>>8&255,r>>16&255,r>>24&255,255&i,i>>8&255,i>>16&255,i>>24&255];return o},_.prototype.array=_.prototype.digest,_.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(16),t=new Uint32Array(e);return t[0]=this.h0,t[1]=this.h1,t[2]=this.h2,t[3]=this.h3,e},_.prototype.buffer=_.prototype.arrayBuffer,_.prototype.base64=function(){for(var e,t,n,r="",i=this.array(),o=0;o<15;)e=i[o++],t=i[o++],n=i[o++],r+=m[e>>>2]+m[63&(e<<4|t>>>4)]+m[63&(t<<2|n>>>6)]+m[63&n];return e=i[o],r+=m[e>>>2]+m[e<<4&63]+"==",r};var w=b();l?e.exports=w:(o.md5=w,u&&(t=function(){return w}.call(w,n,w,e),void 0===t||(e.exports=t)))})()}).call(this,n(/*! ./../node_modules/webpack/buildin/module.js */"./node_modules/webpack/buildin/module.js")(e))},"./lib/request.js": /*!************************!*\ !*** ./lib/request.js ***! \************************/ /*! no static exports found */function(e,t,n){var r=n(/*! @babel/runtime/helpers/typeof */"./node_modules/@babel/runtime/helpers/typeof.js"),i=function(e){switch(r(e)){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}},o=function(e,t,n,o){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"===r(e)?Object.keys(e).map((function(r){var o=encodeURIComponent(i(r))+n;return Array.isArray(e[r])?e[r].map((function(e){return o+encodeURIComponent(i(e))})).join(t):o+encodeURIComponent(i(e[r]))})).filter(Boolean).join(t):o?encodeURIComponent(i(o))+n+encodeURIComponent(i(e)):""},a=function(e,t,n){var r={},i=t.getAllResponseHeaders();return i&&i.length>0&&i.trim().split("\n").forEach((function(e){if(e){var t=e.indexOf(":"),n=e.substr(0,t).trim().toLowerCase(),i=e.substr(t+1).trim();r[n]=i}})),{error:e,statusCode:t.status,statusMessage:t.statusText,headers:r,body:n}},s=function(e,t){return t||"text"!==t?e.response:e.responseText},l=function(e,t){var n=(e.method||"GET").toUpperCase(),r=e.url;if(e.qs){var i=o(e.qs);i&&(r+=(-1===r.indexOf("?")?"?":"&")+i)}var l=new XMLHttpRequest;if(l.open(n,r,!0),l.responseType=e.dataType||"text",e.xhrFields)for(var u in e.xhrFields)l[u]=e.xhrFields[u];var c=e.headers;if(c)for(var d in c)c.hasOwnProperty(d)&&"content-length"!==d.toLowerCase()&&"user-agent"!==d.toLowerCase()&&"origin"!==d.toLowerCase()&&"host"!==d.toLowerCase()&&l.setRequestHeader(d,c[d]);return e.onProgress&&l.upload&&(l.upload.onprogress=e.onProgress),e.onDownloadProgress&&(l.onprogress=e.onDownloadProgress),e.timeout&&(l.timeout=e.timeout),l.ontimeout=function(e){var n=new Error("timeout");t(a(n,l))},l.onload=function(){t(a(null,l,s(l,e.dataType)))},l.onerror=function(n){var r=s(l,e.dataType);if(r)t(a(null,l,r));else{var i=l.statusText;i||0!==l.status||(i=new Error("CORS blocked or network error")),t(a(i,l,r))}},l.send(e.body||""),l};e.exports=l},"./node_modules/@babel/runtime/helpers/classCallCheck.js": /*!***************************************************************!*\ !*** ./node_modules/@babel/runtime/helpers/classCallCheck.js ***! \***************************************************************/ /*! no static exports found */function(e,t){function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},"./node_modules/@babel/runtime/helpers/createClass.js": /*!************************************************************!*\ !*** ./node_modules/@babel/runtime/helpers/createClass.js ***! \************************************************************/ /*! no static exports found */function(e,t,n){var r=n(/*! ./toPropertyKey.js */"./node_modules/@babel/runtime/helpers/toPropertyKey.js");function i(e,t){for(var n=0;n{for(const n of e){if("string"===typeof n&&t===n)return!0;if(n instanceof RegExp&&n.test(t))return!0}}:()=>!1}e.exports=n},"./node_modules/fast-xml-parser/src/util.js": /*!**************************************************!*\ !*** ./node_modules/fast-xml-parser/src/util.js ***! \**************************************************/ /*! no static exports found */function(e,t,n){"use strict";const r=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",i=r+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",o="["+r+"]["+i+"]*",a=new RegExp("^"+o+"$"),s=function(e,t){const n=[];let r=t.exec(e);while(r){const i=[];i.startIndex=t.lastIndex-r[0].length;const o=r.length;for(let e=0;e5&&"xml"===r)return m("InvalidXml","XML declaration allowed only at the start of the document.",y(e,t));if("?"==e[t]&&">"==e[t+1]){t++;break}}return t}function s(e,t){if(e.length>t+5&&"-"===e[t+1]&&"-"===e[t+2]){for(t+=3;t"===e[t+2]){t+=2;break}}else if(e.length>t+8&&"D"===e[t+1]&&"O"===e[t+2]&&"C"===e[t+3]&&"T"===e[t+4]&&"Y"===e[t+5]&&"P"===e[t+6]&&"E"===e[t+7]){let n=1;for(t+=8;t"===e[t]&&(n--,0===n))break}else if(e.length>t+9&&"["===e[t+1]&&"C"===e[t+2]&&"D"===e[t+3]&&"A"===e[t+4]&&"T"===e[t+5]&&"A"===e[t+6]&&"["===e[t+7])for(t+=8;t"===e[t+2]){t+=2;break}return t}t.validate=function(e,t){t=Object.assign({},i,t);const n=[];let r=!1,l=!1;"\ufeff"===e[0]&&(e=e.substr(1));for(let i=0;i"!==e[i]&&" "!==e[i]&&"\t"!==e[i]&&"\n"!==e[i]&&"\r"!==e[i];i++)f+=e[i];if(f=f.trim(),"/"===f[f.length-1]&&(f=f.substring(0,f.length-1),i--),!v(f)){let t;return t=0===f.trim().length?"Invalid space after '<'.":"Tag '"+f+"' is an invalid name.",m("InvalidTag",t,y(e,i))}const g=c(e,i);if(!1===g)return m("InvalidAttr","Attributes for '"+f+"' have open quote.",y(e,i));let b=g.value;if(i=g.index,"/"===b[b.length-1]){const n=i-b.length;b=b.substring(0,b.length-1);const o=h(b,t);if(!0!==o)return m(o.err.code,o.err.msg,y(e,n+o.err.line));r=!0}else if(d){if(!g.tagClosed)return m("InvalidTag","Closing tag '"+f+"' doesn't have proper closing.",y(e,i));if(b.trim().length>0)return m("InvalidTag","Closing tag '"+f+"' can't have attributes or invalid starting.",y(e,u));if(0===n.length)return m("InvalidTag","Closing tag '"+f+"' has not been opened.",y(e,u));{const t=n.pop();if(f!==t.tagName){let n=y(e,t.tagStartPos);return m("InvalidTag","Expected closing tag '"+t.tagName+"' (opened in line "+n.line+", col "+n.col+") instead of closing tag '"+f+"'.",y(e,u))}0==n.length&&(l=!0)}}else{const o=h(b,t);if(!0!==o)return m(o.err.code,o.err.msg,y(e,i-b.length+o.err.line));if(!0===l)return m("InvalidXml","Multiple possible root nodes found.",y(e,i));-1!==t.unpairedTags.indexOf(f)||n.push({tagName:f,tagStartPos:u}),r=!0}for(i++;i0)||m("InvalidXml","Invalid '"+JSON.stringify(n.map(e=>e.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):m("InvalidXml","Start tag expected.",1)};const l='"',u="'";function c(e,t){let n="",r="",i=!1;for(;t"===e[t]&&""===r){i=!0;break}n+=e[t]}return""===r&&{value:n,index:t,tagClosed:i}}const d=new RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g");function h(e,t){const n=r.getAllMatches(e,d),i={};for(let r=0;r","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("'","g"),val:"'"},{regex:new RegExp('"',"g"),val:"""}],processEntities:!0,stopNodes:[],oneListGroup:!1};function a(e){this.options=Object.assign({},o,e),!0===this.options.ignoreAttributes||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=i(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=u),this.processTextOrObjNode=s,this.options.format?(this.indentate=l,this.tagEndChar=">\n",this.newLine="\n"):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function s(e,t,n,r){const i=this.j2x(e,n+1,r.concat(t));return void 0!==e[this.options.textNodeName]&&1===Object.keys(e).length?this.buildTextValNode(e[this.options.textNodeName],t,i.attrStr,n):this.buildObjectNode(i.val,t,i.attrStr,n)}function l(e){return this.options.indentBy.repeat(e)}function u(e){return!(!e.startsWith(this.options.attributeNamePrefix)||e===this.options.textNodeName)&&e.substr(this.attrPrefixLen)}a.prototype.build=function(e){return this.options.preserveOrder?r(e,this.options):(Array.isArray(e)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(e={[this.options.arrayNodeName]:e}),this.j2x(e,0,[]).val)},a.prototype.j2x=function(e,t,n){let r="",i="";const o=n.join(".");for(let a in e)if(Object.prototype.hasOwnProperty.call(e,a))if("undefined"===typeof e[a])this.isAttribute(a)&&(i+="");else if(null===e[a])this.isAttribute(a)?i+="":"?"===a[0]?i+=this.indentate(t)+"<"+a+"?"+this.tagEndChar:i+=this.indentate(t)+"<"+a+"/"+this.tagEndChar;else if(e[a]instanceof Date)i+=this.buildTextValNode(e[a],a,"",t);else if("object"!==typeof e[a]){const n=this.isAttribute(a);if(n&&!this.ignoreAttributesFn(n,o))r+=this.buildAttrPairStr(n,""+e[a]);else if(!n)if(a===this.options.textNodeName){let t=this.options.tagValueProcessor(a,""+e[a]);i+=this.replaceEntitiesValue(t)}else i+=this.buildTextValNode(e[a],a,"",t)}else if(Array.isArray(e[a])){const r=e[a].length;let o="",s="";for(let l=0;l"+e+i}},a.prototype.closeTag=function(e){let t="";return-1!==this.options.unpairedTags.indexOf(e)?this.options.suppressUnpairedNode||(t="/"):t=this.options.suppressEmptyNode?"/":">`+this.newLine;if(!1!==this.options.commentPropName&&t===this.options.commentPropName)return this.indentate(r)+`\x3c!--${e}--\x3e`+this.newLine;if("?"===t[0])return this.indentate(r)+"<"+t+n+"?"+this.tagEndChar;{let i=this.options.tagValueProcessor(t,e);return i=this.replaceEntitiesValue(i),""===i?this.indentate(r)+"<"+t+n+this.closeTag(t)+this.tagEndChar:this.indentate(r)+"<"+t+n+">"+i+"0&&this.options.processEntities)for(let t=0;t0&&(r=n),i(e,t,"",r)}function i(e,t,n,r){let u="",c=!1;for(let d=0;d`,c=!1;continue}if(f===t.commentPropName){u+=r+`\x3c!--${h[f][0][t.textNodeName]}--\x3e`,c=!0;continue}if("?"===f[0]){const e=a(h[":@"],t),n="?xml"===f?"":r;let i=h[f][0][t.textNodeName];i=0!==i.length?" "+i:"",u+=n+`<${f}${i}${e}?>`,c=!0;continue}let m=r;""!==m&&(m+=t.indentBy);const g=a(h[":@"],t),v=r+`<${f}${g}`,y=i(h[f],t,p,m);-1!==t.unpairedTags.indexOf(f)?t.suppressUnpairedNode?u+=v+">":u+=v+"/>":y&&0!==y.length||!t.suppressEmptyNode?y&&y.endsWith(">")?u+=v+`>${y}${r}`:(u+=v+">",y&&""!==r&&(y.includes("/>")||y.includes("`):u+=v+"/>",c=!0}return u}function o(e){const t=Object.keys(e);for(let n=0;n0&&t.processEntities)for(let n=0;n"===e[t]){if(h?"-"===e[t-1]&&"-"===e[t-2]&&(h=!1,r--):r--,0===r)break}else"["===e[t]?i=!0:f+=e[t];else{if(i&&s(e,t))t+=7,[entityName,val,t]=o(e,t+1),-1===val.indexOf("&")&&(n[d(entityName)]={regx:RegExp(`&${entityName};`,"g"),val:val});else if(i&&l(e,t))t+=8;else if(i&&u(e,t))t+=8;else if(i&&c(e,t))t+=9;else{if(!a)throw new Error("Invalid DOCTYPE");h=!0}r++,f=""}if(0!==r)throw new Error("Unclosed DOCTYPE")}return{entities:n,i:t}}function o(e,t){let n="";for(;t!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(e,t,n){return e}},r=function(e){return Object.assign({},n,e)};t.buildOptions=r,t.defaultOptions=n},"./node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js": /*!************************************************************************!*\ !*** ./node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js ***! \************************************************************************/ /*! no static exports found */function(e,t,n){"use strict";const r=n(/*! ../util */"./node_modules/fast-xml-parser/src/util.js"),i=n(/*! ./xmlNode */"./node_modules/fast-xml-parser/src/xmlparser/xmlNode.js"),o=n(/*! ./DocTypeReader */"./node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js"),a=n(/*! strnum */"./node_modules/strnum/strnum.js"),s=n(/*! ../ignoreAttributes */"./node_modules/fast-xml-parser/src/ignoreAttributes.js");class l{constructor(e){this.options=e,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"¢"},pound:{regex:/&(pound|#163);/g,val:"£"},yen:{regex:/&(yen|#165);/g,val:"¥"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"©"},reg:{regex:/&(reg|#174);/g,val:"®"},inr:{regex:/&(inr|#8377);/g,val:"₹"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(e,t)=>String.fromCharCode(Number.parseInt(t,10))},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(e,t)=>String.fromCharCode(Number.parseInt(t,16))}},this.addExternalEntities=u,this.parseXml=p,this.parseTextData=c,this.resolveNameSpace=d,this.buildAttributesMap=f,this.isItStopNode=y,this.replaceEntitiesValue=g,this.readStopNodeData=x,this.saveTextToParentTag=v,this.addChild=m,this.ignoreAttributesFn=s(this.options.ignoreAttributes)}}function u(e){const t=Object.keys(e);for(let n=0;n0)){a||(e=this.replaceEntitiesValue(e));const r=this.options.tagValueProcessor(t,e,n,i,o);if(null===r||void 0===r)return e;if(typeof r!==typeof e||r!==e)return r;if(this.options.trimValues)return k(e,this.options.parseTagValue,this.options.numberParseOptions);{const t=e.trim();return t===e?k(e,this.options.parseTagValue,this.options.numberParseOptions):e}}}function d(e){if(this.options.removeNSPrefix){const t=e.split(":"),n="/"===e.charAt(0)?"/":"";if("xmlns"===t[0])return"";2===t.length&&(e=n+t[1])}return e}const h=new RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?","gm");function f(e,t,n){if(!0!==this.options.ignoreAttributes&&"string"===typeof e){const n=r.getAllMatches(e,h),i=n.length,o={};for(let e=0;e",s,"Closing Tag is not closed.");let i=e.substring(s+2,t).trim();if(this.options.removeNSPrefix){const e=i.indexOf(":");-1!==e&&(i=i.substr(e+1))}this.options.transformTagName&&(i=this.options.transformTagName(i)),n&&(r=this.saveTextToParentTag(r,n,a));const o=a.substring(a.lastIndexOf(".")+1);if(i&&-1!==this.options.unpairedTags.indexOf(i))throw new Error(`Unpaired tag can not be used as closing tag: `);let l=0;o&&-1!==this.options.unpairedTags.indexOf(o)?(l=a.lastIndexOf(".",a.lastIndexOf(".")-1),this.tagsNodeStack.pop()):l=a.lastIndexOf("."),a=a.substring(0,l),n=this.tagsNodeStack.pop(),r="",s=t}else if("?"===e[s+1]){let t=w(e,s,!1,"?>");if(!t)throw new Error("Pi Tag is not closed.");if(r=this.saveTextToParentTag(r,n,a),this.options.ignoreDeclaration&&"?xml"===t.tagName||this.options.ignorePiTags);else{const e=new i(t.tagName);e.add(this.options.textNodeName,""),t.tagName!==t.tagExp&&t.attrExpPresent&&(e[":@"]=this.buildAttributesMap(t.tagExp,a,t.tagName)),this.addChild(n,e,a)}s=t.closeIndex+1}else if("!--"===e.substr(s+1,3)){const t=_(e,"--\x3e",s+4,"Comment is not closed.");if(this.options.commentPropName){const i=e.substring(s+4,t-2);r=this.saveTextToParentTag(r,n,a),n.add(this.options.commentPropName,[{[this.options.textNodeName]:i}])}s=t}else if("!D"===e.substr(s+1,2)){const t=o(e,s);this.docTypeEntities=t.entities,s=t.i}else if("!["===e.substr(s+1,2)){const t=_(e,"]]>",s,"CDATA is not closed.")-2,i=e.substring(s+9,t);r=this.saveTextToParentTag(r,n,a);let o=this.parseTextData(i,n.tagname,a,!0,!1,!0,!0);void 0==o&&(o=""),this.options.cdataPropName?n.add(this.options.cdataPropName,[{[this.options.textNodeName]:i}]):n.add(this.options.textNodeName,o),s=t+2}else{let o=w(e,s,this.options.removeNSPrefix),l=o.tagName;const u=o.rawTagName;let c=o.tagExp,d=o.attrExpPresent,h=o.closeIndex;this.options.transformTagName&&(l=this.options.transformTagName(l)),n&&r&&"!xml"!==n.tagname&&(r=this.saveTextToParentTag(r,n,a,!1));const f=n;if(f&&-1!==this.options.unpairedTags.indexOf(f.tagname)&&(n=this.tagsNodeStack.pop(),a=a.substring(0,a.lastIndexOf("."))),l!==t.tagname&&(a+=a?"."+l:l),this.isItStopNode(this.options.stopNodes,a,l)){let t="";if(c.length>0&&c.lastIndexOf("/")===c.length-1)"/"===l[l.length-1]?(l=l.substr(0,l.length-1),a=a.substr(0,a.length-1),c=l):c=c.substr(0,c.length-1),s=o.closeIndex;else if(-1!==this.options.unpairedTags.indexOf(l))s=o.closeIndex;else{const n=this.readStopNodeData(e,u,h+1);if(!n)throw new Error("Unexpected end of "+u);s=n.i,t=n.tagContent}const r=new i(l);l!==c&&d&&(r[":@"]=this.buildAttributesMap(c,a,l)),t&&(t=this.parseTextData(t,l,a,!0,d,!0,!0)),a=a.substr(0,a.lastIndexOf(".")),r.add(this.options.textNodeName,t),this.addChild(n,r,a)}else{if(c.length>0&&c.lastIndexOf("/")===c.length-1){"/"===l[l.length-1]?(l=l.substr(0,l.length-1),a=a.substr(0,a.length-1),c=l):c=c.substr(0,c.length-1),this.options.transformTagName&&(l=this.options.transformTagName(l));const e=new i(l);l!==c&&d&&(e[":@"]=this.buildAttributesMap(c,a,l)),this.addChild(n,e,a),a=a.substr(0,a.lastIndexOf("."))}else{const e=new i(l);this.tagsNodeStack.push(n),l!==c&&d&&(e[":@"]=this.buildAttributesMap(c,a,l)),this.addChild(n,e,a),n=e}r="",s=h}}else r+=e[s]}return t.child};function m(e,t,n){const r=this.options.updateTag(t.tagname,n,t[":@"]);!1===r||("string"===typeof r?(t.tagname=r,e.addChild(t)):e.addChild(t))}const g=function(e){if(this.options.processEntities){for(let t in this.docTypeEntities){const n=this.docTypeEntities[t];e=e.replace(n.regx,n.val)}for(let t in this.lastEntities){const n=this.lastEntities[t];e=e.replace(n.regex,n.val)}if(this.options.htmlEntities)for(let t in this.htmlEntities){const n=this.htmlEntities[t];e=e.replace(n.regex,n.val)}e=e.replace(this.ampEntity.regex,this.ampEntity.val)}return e};function v(e,t,n,r){return e&&(void 0===r&&(r=0===Object.keys(t.child).length),e=this.parseTextData(e,t.tagname,n,!1,!!t[":@"]&&0!==Object.keys(t[":@"]).length,r),void 0!==e&&""!==e&&t.add(this.options.textNodeName,e),e=""),e}function y(e,t,n){const r="*."+n;for(const i in e){const n=e[i];if(r===n||t===n)return!0}return!1}function b(e,t,n=">"){let r,i="";for(let o=t;o",n,t+" is not closed");let a=e.substring(n+2,o).trim();if(a===t&&(i--,0===i))return{tagContent:e.substring(r,n),i:o};n=o}else if("?"===e[n+1]){const t=_(e,"?>",n+1,"StopNode is not closed.");n=t}else if("!--"===e.substr(n+1,3)){const t=_(e,"--\x3e",n+3,"StopNode is not closed.");n=t}else if("!["===e.substr(n+1,2)){const t=_(e,"]]>",n,"StopNode is not closed.")-2;n=t}else{const r=w(e,n,">");if(r){const e=r&&r.tagName;e===t&&"/"!==r.tagExp[r.tagExp.length-1]&&i++,n=r.closeIndex}}}function k(e,t,n){if(t&&"string"===typeof e){const t=e.trim();return"true"===t||"false"!==t&&a(e,n)}return r.isExist(e)?e:""}e.exports=l},"./node_modules/fast-xml-parser/src/xmlparser/XMLParser.js": /*!*****************************************************************!*\ !*** ./node_modules/fast-xml-parser/src/xmlparser/XMLParser.js ***! \*****************************************************************/ /*! no static exports found */function(e,t,n){const{buildOptions:r}=n(/*! ./OptionsBuilder */"./node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js"),i=n(/*! ./OrderedObjParser */"./node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js"),{prettify:o}=n(/*! ./node2json */"./node_modules/fast-xml-parser/src/xmlparser/node2json.js"),a=n(/*! ../validator */"./node_modules/fast-xml-parser/src/validator.js");class s{constructor(e){this.externalEntities={},this.options=r(e)}parse(e,t){if("string"===typeof e);else{if(!e.toString)throw new Error("XML data is accepted in String or Bytes[] form.");e=e.toString()}if(t){!0===t&&(t={});const n=a.validate(e,t);if(!0!==n)throw Error(`${n.err.msg}:${n.err.line}:${n.err.col}`)}const n=new i(this.options);n.addExternalEntities(this.externalEntities);const r=n.parseXml(e);return this.options.preserveOrder||void 0===r?r:o(r,this.options)}addEntity(e,t){if(-1!==t.indexOf("&"))throw new Error("Entity value can't have '&'");if(-1!==e.indexOf("&")||-1!==e.indexOf(";"))throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for ' '");if("&"===t)throw new Error("An entity with value '&' is not permitted");this.externalEntities[e]=t}}e.exports=s},"./node_modules/fast-xml-parser/src/xmlparser/node2json.js": /*!*****************************************************************!*\ !*** ./node_modules/fast-xml-parser/src/xmlparser/node2json.js ***! \*****************************************************************/ /*! no static exports found */function(e,t,n){"use strict";function r(e,t){return i(e,t)}function i(e,t,n){let r;const l={};for(let u=0;u0&&(l[t.textNodeName]=r):void 0!==r&&(l[t.textNodeName]=r),l}function o(e){const t=Object.keys(e);for(let n=0;n0?this.child.push({[e.tagname]:e.child,[":@"]:e[":@"]}):this.child.push({[e.tagname]:e.child})}}e.exports=r},"./node_modules/process/browser.js": /*!*****************************************!*\ !*** ./node_modules/process/browser.js ***! \*****************************************/ /*! no static exports found */function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}function l(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{return r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(function(){try{n="function"===typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"===typeof clearTimeout?clearTimeout:a}catch(e){r=a}})();var u,c=[],d=!1,h=-1;function f(){d&&u&&(d=!1,u.length?c=u.concat(c):h=-1,c.length&&p())}function p(){if(!d){var e=s(f);d=!0;var t=c.length;while(t){u=c,c=[];while(++h1)for(var n=1;n0&&r&&"."!==o[2])return e;if(!t.leadingZeros&&i.length>0&&!r&&"."!==o[1])return e;{const n=Number(o),a=""+n;return-1!==a.search(/[eE]/)||l?t.eNotation?n:e:-1!==o.indexOf(".")?"0"===a&&""===s||a===s||r&&a==="-"+s?n:e:i?s===a||r+s===a?n:e:o===a||o===r+a?n:e}}return e}}function a(e){return e&&-1!==e.indexOf(".")?(e=e.replace(/0+$/,""),"."===e?e="0":"."===e[0]?e="0"+e:"."===e[e.length-1]&&(e=e.substr(0,e.length-1)),e):e}e.exports=o},"./node_modules/webpack/buildin/amd-options.js": /*!****************************************!*\ !*** (webpack)/buildin/amd-options.js ***! \****************************************/ /*! no static exports found */function(e,t){(function(t){e.exports=t}).call(this,{})},"./node_modules/webpack/buildin/module.js": /*!***********************************!*\ !*** (webpack)/buildin/module.js ***! \***********************************/ /*! no static exports found */function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},"./package.json": /*!**********************!*\ !*** ./package.json ***! \**********************/ /*! exports provided: name, version, description, main, types, scripts, repository, keywords, author, license, bugs, homepage, dependencies, devDependencies, default */function(e){e.exports=JSON.parse('{"name":"cos-js-sdk-v5","version":"1.8.7","description":"JavaScript SDK for [腾讯云对象存储](https://cloud.tencent.com/product/cos)","main":"dist/cos-js-sdk-v5.js","types":"index.d.ts","scripts":{"prettier":"prettier --write src demo/demo.js demo/CIDemos/*.js test/test.js server/sts.js lib/request.js index.d.ts","server":"node server/sts.js","dev":"cross-env NODE_ENV=development webpack -w --mode=development","build":"cross-env NODE_ENV=production webpack --mode=production","cos-auth.min.js":"uglifyjs ./demo/common/cos-auth.js -o ./demo/common/cos-auth.min.js -c -m","test":"jest --runInBand --coverage"},"repository":{"type":"git","url":"git+https://github.com/tencentyun/cos-js-sdk-v5.git"},"keywords":[],"author":"carsonxu","license":"ISC","bugs":{"url":"https://github.com/tencentyun/cos-js-sdk-v5/issues"},"homepage":"https://github.com/tencentyun/cos-js-sdk-v5#readme","dependencies":{"fast-xml-parser":"4.5.0"},"devDependencies":{"@babel/core":"7.17.9","@babel/plugin-transform-runtime":"7.18.10","@babel/preset-env":"7.16.11","babel-loader":"8.2.5","body-parser":"^1.18.3","cross-env":"^5.2.0","express":"^4.16.4","jest":"^29.3.1","jest-environment-jsdom":"^29.3.1","prettier":"^3.0.1","qcloud-cos-sts":"^3.0.2","request":"^2.87.0","terser-webpack-plugin":"4.2.3","uglifyjs":"^2.4.11","webpack":"4.46.0","webpack-cli":"4.10.0"}}')},"./src/advance.js": /*!************************!*\ !*** ./src/advance.js ***! \************************/ /*! no static exports found */function(e,t,n){var r=n(/*! @babel/runtime/helpers/typeof */"./node_modules/@babel/runtime/helpers/typeof.js"),i=n(/*! ./session */"./src/session.js"),o=n(/*! ./async */"./src/async.js"),a=n(/*! ./event */"./src/event.js").EventProxy,s=n(/*! ./util */"./src/util.js"),l=n(/*! ./tracker */"./src/tracker.js");function u(e,t){var n,r,o=this,l=new a,u=e.TaskId,d=e.Bucket,h=e.Region,p=e.Key,g=e.Body,v=e.ChunkSize||e.SliceSize||o.options.ChunkSize,y=e.AsyncLimit,b=e.StorageClass,_=e.ServerSideEncryption,w=e.onHashProgress,x=e.tracker;x&&x.setParams({chunkSize:v}),l.on("error",(function(n){if(o._isRunningTask(u))return e.UploadData.UploadId&&i.removeUsing(e.UploadData.UploadId),n.UploadId=e.UploadData.UploadId||"",t(n)})),l.on("upload_complete",(function(n){var r=s.extend({UploadId:e.UploadData.UploadId||""},n);t(null,r)})),l.on("upload_slice_complete",(function(t){var a={};s.each(e.Headers,(function(e,t){var n=t.toLowerCase();(0===n.indexOf("x-cos-meta-")||["pic-operations","x-cos-callback","x-cos-callback-var","x-cos-return-body"].includes(n))&&(a[t]=e)})),m.call(o,{Bucket:d,Region:h,Key:p,UploadId:t.UploadId,SliceList:t.SliceList,Headers:a,tracker:x},(function(e,a){if(o._isRunningTask(u)){if(i.removeUsing(t.UploadId),e)return r(null,!0),l.emit("error",e);i.removeUploadId.call(o,t.UploadId),r({loaded:n,total:n},!0),l.emit("upload_complete",a)}}))})),l.on("get_upload_data_finish",(function(t){var a=i.getFileId(g,e.ChunkSize,d,p);a&&i.saveUploadId.call(o,a,t.UploadId,o.options.UploadIdCacheLimit),i.setUsing(t.UploadId),r(null,!0),f.call(o,{TaskId:u,Bucket:d,Region:h,Key:p,Body:g,FileSize:n,SliceSize:v,AsyncLimit:y,ServerSideEncryption:_,UploadData:t,Headers:e.Headers,onProgress:r,tracker:x},(function(e,t){if(o._isRunningTask(u))return e?(r(null,!0),l.emit("error",e)):void l.emit("upload_slice_complete",t)}))})),l.on("get_file_size_finish",(function(){if(r=s.throttleOnProgress.call(o,n,e.onProgress),e.UploadData.UploadId)l.emit("get_upload_data_finish",e.UploadData);else{var t=s.extend({TaskId:u,Bucket:d,Region:h,Key:p,Headers:e.Headers,StorageClass:b,Body:g,FileSize:n,SliceSize:v,onHashProgress:w,tracker:x},e);c.call(o,t,(function(t,n){if(o._isRunningTask(u)){if(t)return l.emit("error",t);e.UploadData.UploadId=n.UploadId,e.UploadData.PartList=n.PartList,l.emit("get_upload_data_finish",e.UploadData)}}))}})),n=e.ContentLength,delete e.ContentLength,!e.Headers&&(e.Headers={}),s.each(e.Headers,(function(t,n){"content-length"===n.toLowerCase()&&delete e.Headers[n]})),function(){for(var t=[1,2,4,8,16,32,64,128,256,512,1024,2048,4096,5120],r=1048576,i=0;iv)return t(null,!1);if(n>1){var r=Math.max(e[0].Size,e[1].Size);if(r!==g)return t(null,!1)}var i=function r(i){if(i=a.length)x.emit("has_and_check_upload_id",t);else{var d=a[c];if(!s.isInArray(t,d))return i.removeUploadId.call(f,d),void o(c+1);i.using[d]?o(c+1):h.call(f,{Bucket:r,Region:l,Key:u,UploadId:d,tracker:e.tracker},(function(e,t){f._isRunningTask(n)&&(e?(i.removeUploadId.call(f,d),o(c+1)):x.emit("upload_id_available",{UploadId:d,PartList:t.PartList}))}))}};c(0)}else x.emit("has_and_check_upload_id",t)})),x.on("get_remote_upload_id_list",(function(){d.call(f,{Bucket:r,Region:l,Key:u,tracker:e.tracker},(function(t,o){if(f._isRunningTask(n)){if(t)return x.emit("error",t);var a=s.filter(o.UploadList,(function(e){return e.Key===u&&(!c||e.StorageClass.toUpperCase()===c.toUpperCase())})).reverse().map((function(e){return e.UploadId||e.UploadID}));if(a.length)x.emit("seek_local_avail_upload_id",a);else{var l,d=i.getFileId(e.Body,e.ChunkSize,r,u);d&&(l=i.getUploadIdList.call(f,d))&&s.each(l,(function(e){i.removeUploadId.call(f,e)})),x.emit("no_available_upload_id")}}}))})),x.emit("get_remote_upload_id_list")}function d(e,t){var n=this,r=[],i={Bucket:e.Bucket,Region:e.Region,Prefix:e.Key,calledBySdk:e.calledBySdk||"sliceUploadFile",tracker:e.tracker},o=function e(){n.multipartList(i,(function(n,o){if(n)return t(n);r.push.apply(r,o.Upload||[]),"true"===o.IsTruncated?(i.KeyMarker=o.NextKeyMarker,i.UploadIdMarker=o.NextUploadIdMarker,e()):t(null,{UploadList:r})}))};o()}function h(e,t){var n=this,r=[],i={Bucket:e.Bucket,Region:e.Region,Key:e.Key,UploadId:e.UploadId,calledBySdk:"sliceUploadFile",tracker:e.tracker},o=function e(){n.multipartListPart(i,(function(n,o){if(n)return t(n);r.push.apply(r,o.Part||[]),"true"===o.IsTruncated?(i.PartNumberMarker=o.NextPartNumberMarker,e()):t(null,{PartList:r})}))};o()}function f(e,t){var n=this,r=e.TaskId,i=e.Bucket,a=e.Region,l=e.Key,u=e.UploadData,c=e.FileSize,d=e.SliceSize,h=Math.min(e.AsyncLimit||n.options.ChunkParallelLimit||1,256),f=e.Body,m=Math.ceil(c/d),g=0,v=e.ServerSideEncryption,y=e.Headers,b=s.filter(u.PartList,(function(e){return e["Uploaded"]&&(g+=e["PartNumber"]>=m&&c%d||d),!e["Uploaded"]})),_=e.onProgress;o.eachLimit(b,h,(function(t,o){if(n._isRunningTask(r)){var s=t["PartNumber"],h=Math.min(c,t["PartNumber"]*d)-(t["PartNumber"]-1)*d,m=0;p.call(n,{TaskId:r,Bucket:i,Region:a,Key:l,SliceSize:d,FileSize:c,PartNumber:s,ServerSideEncryption:v,Body:f,UploadData:u,Headers:y,onProgress:function(e){g+=e.loaded-m,m=e.loaded,_({loaded:g,total:c})},tracker:e.tracker},(function(e,i){n._isRunningTask(r)&&(e||i.ETag||(e='get ETag error, please add "ETag" to CORS ExposeHeader setting.( 获取ETag失败,请在CORS ExposeHeader设置中添加ETag,请参考文档:https://cloud.tencent.com/document/product/436/13318 )'),e?g-=m:(g+=h-m,t.ETag=i.ETag),_({loaded:g,total:c}),o(e||null,i))}))}}),(function(e){if(n._isRunningTask(r))return e?t(e):void t(null,{UploadId:u.UploadId,SliceList:u.PartList})}))}function p(e,t){var n=this,r=e.TaskId,i=e.Bucket,a=e.Region,l=e.Key,u=e.FileSize,c=e.Body,d=1*e.PartNumber,h=e.SliceSize,f=e.ServerSideEncryption,p=e.UploadData,m=e.Headers||{},g=n.options.ChunkRetryTimes+1,v=h*(d-1),y=h,b=v+h;b>u&&(b=u,y=b-v);var _=["x-cos-traffic-limit","x-cos-mime-limit"],w={};s.each(m,(function(e,t){_.indexOf(t)>-1&&(w[t]=e)}));var x=p.PartList[d-1];o.retry(g,(function(t){n._isRunningTask(r)&&s.fileSlice(c,v,b,!0,(function(o){n.multipartUpload({TaskId:r,Bucket:i,Region:a,Key:l,ContentLength:y,PartNumber:d,UploadId:p.UploadId,ServerSideEncryption:f,Body:o,Headers:w,onProgress:e.onProgress,calledBySdk:"sliceUploadFile",tracker:e.tracker},(function(e,i){if(n._isRunningTask(r))return e?t(e):(x.Uploaded=!0,t(null,i))}))}))}),(function(e,i){if(n._isRunningTask(r))return t(e,i)}))}function m(e,t){var n=e.Bucket,r=e.Region,i=e.Key,a=e.UploadId,s=e.SliceList,l=this,u=this.options.ChunkRetryTimes+1,c=e.Headers,d=s.map((function(e){return{PartNumber:e.PartNumber,ETag:e.ETag}}));o.retry(u,(function(t){l.multipartComplete({Bucket:n,Region:r,Key:i,UploadId:a,Parts:d,Headers:c,calledBySdk:"sliceUploadFile",tracker:e.tracker},t)}),(function(e,n){t(e,n)}))}function g(e,t){var n=e.Bucket,r=e.Region,i=e.Key,o=e.UploadId,l=e.Level||"task",u=e.AsyncLimit,c=this,h=new a;if(h.on("error",(function(e){return t(e)})),h.on("get_abort_array",(function(o){v.call(c,{Bucket:n,Region:r,Key:i,Headers:e.Headers,AsyncLimit:u,AbortArray:o},t)})),"bucket"===l)d.call(c,{Bucket:n,Region:r,calledBySdk:"abortUploadTask"},(function(e,n){if(e)return t(e);h.emit("get_abort_array",n.UploadList||[])}));else if("file"===l){if(!i)return t(s.error(new Error("abort_upload_task_no_key")));d.call(c,{Bucket:n,Region:r,Key:i,calledBySdk:"abortUploadTask"},(function(e,n){if(e)return t(e);h.emit("get_abort_array",n.UploadList||[])}))}else{if("task"!==l)return t(s.error(new Error("abort_unknown_level")));if(!o)return t(s.error(new Error("abort_upload_task_no_id")));if(!i)return t(s.error(new Error("abort_upload_task_no_key")));h.emit("get_abort_array",[{Key:i,UploadId:o}])}}function v(e,t){var n=e.Bucket,r=e.Region,i=e.Key,a=e.AbortArray,s=e.AsyncLimit||1,l=this,u=0,c=new Array(a.length);o.eachLimit(a,s,(function(t,o){var a=u;if(i&&i!==t.Key)return c[a]={error:{KeyNotMatch:!0}},void o(null);var s=t.UploadId||t.UploadID;l.multipartAbort({Bucket:n,Region:r,Key:t.Key,Headers:e.Headers,UploadId:s},(function(e){var i={Bucket:n,Region:r,Key:t.Key,UploadId:s};c[a]={error:e,task:i},o(null)})),u++}),(function(e){if(e)return t(e);for(var n=[],r=[],i=0,o=c.length;ii?"sliceUploadFile":"putObject";e.tracker=new l({Beacon:n.options.BeaconReporter,clsReporter:n.options.ClsReporter,bucket:e.Bucket,region:e.Region,apiName:"uploadFile",realApi:h,fileKey:e.Key,fileSize:u,accelerate:d,deepTracker:n.options.DeepTracker,customId:n.options.CustomId,delay:n.options.TrackerDelay})}s.each(e,(function(e,t){"object"!==r(e)&&"function"!==typeof e&&(c[t]=e)}));var f=e.onTaskReady,p=function(e){c.TaskId=e,f&&f(e)};e.onTaskReady=p;var m=u>i?"sliceUploadFile":"putObject",g=e.onFileFinish,v=function(n,r){e.tracker&&e.tracker.report(n,r),g&&g(n,r,c),t&&t(n,r)};o.push({api:m,params:e,callback:v}),n._addTasks(o)}function b(e,t){var n=this,i=void 0===e.SliceSize?n.options.SliceSize:e.SliceSize,o=0,a=0,u=s.throttleOnProgress.call(n,a,e.onProgress),c=e.files.length,d=e.onFileFinish,h=Array(c),f=function(e,n,r){u(null,!0),d&&d(e,n,r),h[r.Index]={options:r,error:e,data:n},--c<=0&&t&&t(null,{files:h})},p=[];s.each(e.files,(function(e,t){(function(){var c=e.Body,d=c.size||c.length||0,h={Index:t,TaskId:""};if(!n.options.UseRawKey&&e.Key&&"/"===e.Key.substr(0,1)&&(e.Key=e.Key.substr(1)),o+=d,n.options.EnableReporter){var m=n.options.UseAccelerate||"string"===typeof n.options.Domain&&n.options.Domain.includes("accelerate."),g=d>i?"sliceUploadFile":"putObject";e.tracker=new l({Beacon:n.options.BeaconReporter,clsReporter:n.options.ClsReporter,bucket:e.Bucket,region:e.Region,apiName:"uploadFiles",realApi:g,fileKey:e.Key,fileSize:d,accelerate:m,deepTracker:n.options.DeepTracker,customId:n.options.CustomId,delay:n.options.TrackerDelay})}s.each(e,(function(e,t){"object"!==r(e)&&"function"!==typeof e&&(h[t]=e)}));var v=e.onTaskReady,y=function(e){h.TaskId=e,v&&v(e)};e.onTaskReady=y;var b=0,_=e.onProgress,w=function(e){a=a-b+e.loaded,b=e.loaded,_&&_(e),u({loaded:a,total:o})};e.onProgress=w;var x=d>i?"sliceUploadFile":"putObject",k=e.onFileFinish,M=function(t,n){e.tracker&&e.tracker.report(t,n),k&&k(t,n),f&&f(t,n,h)};p.push({api:x,params:e,callback:M})})()})),n._addTasks(p)}function _(e,t){var n=new a,r=this,l=e.Bucket,u=e.Region,c=e.Key,d=e.CopySource,f=s.getSourceParams.call(this,d);if(f){var p=f.Bucket,m=f.Region,g=decodeURIComponent(f.Key),v=void 0===e.CopySliceSize?r.options.CopySliceSize:e.CopySliceSize;v=Math.max(0,v);var y,b,_=e.CopyChunkSize||this.options.CopyChunkSize,x=this.options.CopyChunkParallelLimit,k=this.options.ChunkRetryTimes+1,M=0,S=0,C={},T={},O={};n.on("copy_slice_complete",(function(n){var a={};s.each(e.Headers,(function(e,t){0===t.toLowerCase().indexOf("x-cos-meta-")&&(a[t]=e)}));var d=s.map(n.PartList,(function(e){return{PartNumber:e.PartNumber,ETag:e.ETag}}));o.retry(k,(function(t){r.multipartComplete({Bucket:l,Region:u,Key:c,UploadId:n.UploadId,Parts:d,tracker:e.tracker,calledBySdk:"sliceCopyFile"},t)}),(function(e,r){if(i.removeUsing(n.UploadId),e)return b(null,!0),t(e);i.removeUploadId(n.UploadId),b({loaded:y,total:y},!0),t(null,r)}))})),n.on("get_copy_data_finish",(function(a){var h=i.getCopyFileId(d,C,_,l,c);h&&i.saveUploadId(h,a.UploadId,r.options.UploadIdCacheLimit),i.setUsing(a.UploadId);var f=s.filter(a.PartList,(function(e){return e["Uploaded"]&&(S+=e["PartNumber"]>=M&&y%_||_),!e["Uploaded"]}));o.eachLimit(f,x,(function(t,n){var i=t.PartNumber,s=t.CopySourceRange,h=t.end-t.start;o.retry(k,(function(t){w.call(r,{Bucket:l,Region:u,Key:c,CopySource:d,UploadId:a.UploadId,PartNumber:i,CopySourceRange:s,tracker:e.tracker,calledBySdk:"sliceCopyFile"},t)}),(function(e,r){if(e)return n(e);S+=h,b({loaded:S,total:y}),t.ETag=r.ETag,n(e||null,r)}))}),(function(e){if(e)return i.removeUsing(a.UploadId),b(null,!0),t(e);n.emit("copy_slice_complete",a)}))})),n.on("get_chunk_size_finish",(function(){var o=function(){r.multipartInit({Bucket:l,Region:u,Key:c,Headers:O,tracker:e.tracker,calledBySdk:"sliceCopyFile"},(function(r,i){if(r)return t(r);e.UploadId=i.UploadId,n.emit("get_copy_data_finish",{UploadId:e.UploadId,PartList:e.PartList})}))},a=i.getCopyFileId(d,C,_,l,c),f=i.getUploadIdList(a);if(!a||!f)return o();var p=function t(a){if(a>=f.length)return o();var d=f[a];if(i.using[d])return t(a+1);h.call(r,{Bucket:l,Region:u,Key:c,UploadId:d,tracker:e.tracker,calledBySdk:"sliceCopyFile"},(function(r,o){if(r)i.removeUploadId(d),t(a+1);else{if(i.using[d])return t(a+1);var l={},u=0;s.each(o.PartList,(function(e){var t=parseInt(e.Size),n=u+t-1;l[e.PartNumber+"|"+u+"|"+n]=e.ETag,u+=t})),s.each(e.PartList,(function(e){var t=l[e.PartNumber+"|"+e.start+"|"+e.end];t&&(e.ETag=t,e.Uploaded=!0)})),n.emit("get_copy_data_finish",{UploadId:d,PartList:e.PartList})}}))};p(0)})),n.on("get_file_size_finish",(function(){if(function(){for(var t=[1,2,4,8,16,32,64,128,256,512,1024,2048,4096,5120],n=1048576,i=0;in.length&&(T[t]=e)})),n.emit("get_file_size_finish")}else t(s.error(new Error('get Content-Length error, please add "Content-Length" to CORS ExposeHeader setting.( 获取Content-Length失败,请在CORS ExposeHeader设置中添加Content-Length,请参考文档:https://cloud.tencent.com/document/product/436/13318 )')))}))}else t(s.error(new Error("CopySource format error")))}function w(e,t){var n=e.TaskId,r=e.Bucket,i=e.Region,a=e.Key,s=e.CopySource,l=e.UploadId,u=1*e.PartNumber,c=e.CopySourceRange,d=this.options.ChunkRetryTimes+1,h=this;o.retry(d,(function(t){h.uploadPartCopy({TaskId:n,Bucket:r,Region:i,Key:a,CopySource:s,UploadId:l,PartNumber:u,CopySourceRange:c,tracker:e.tracker,calledBySdk:e.calledBySdk},(function(e,n){t(e||null,n)}))}),(function(e,n){return t(e,n)}))}var x={sliceUploadFile:u,abortUploadTask:g,uploadFile:y,uploadFiles:b,sliceCopyFile:_};e.exports.init=function(e,t){t.transferToTaskMethod(x,"sliceUploadFile"),s.each(x,(function(t,n){e.prototype[n]=s.apiWrapper(n,t)}))}},"./src/async.js": /*!**********************!*\ !*** ./src/async.js ***! \**********************/ /*! no static exports found */function(e,t){var n=function(e,t,n,r){if(r=r||function(){},!e.length||t<=0)return r();var i=0,o=0,a=0;(function s(){if(i>=e.length)return r();while(a=e.length?r():s())}))})()},r=function(e,t,n){var r=function r(i){t((function(t,o){t&&i/gi,"<$1Rule>"),r=r.replace(/<(\/?)Tags>/gi,"<$1Tag>");var i=e.Headers;i["Content-Type"]="application/xml",i["Content-MD5"]=o.b64(o.md5(r)),je.call(this,{Action:"name/cos:PutBucketReplication",method:"PUT",Bucket:e.Bucket,Region:e.Region,body:r,action:"replication",headers:i,tracker:e.tracker},(function(e,n){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:n.statusCode,headers:n.headers})}))}function L(e,t){je.call(this,{Action:"name/cos:GetBucketReplication",method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"replication",tracker:e.tracker},(function(e,n){if(e)if(404!==e.statusCode||!e.error||"Not Found"!==e.error&&"ReplicationConfigurationnotFoundError"!==e.error.Code)t(e);else{var r={ReplicationConfiguration:{Rules:[]},statusCode:e.statusCode};e.headers&&(r.headers=e.headers),t(null,r)}else!n.ReplicationConfiguration&&(n.ReplicationConfiguration={}),n.ReplicationConfiguration.Rule&&(n.ReplicationConfiguration.Rules=o.makeArray(n.ReplicationConfiguration.Rule),delete n.ReplicationConfiguration.Rule),t(e,n)}))}function A(e,t){je.call(this,{Action:"name/cos:DeleteBucketReplication",method:"DELETE",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"replication",tracker:e.tracker},(function(e,n){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:n.statusCode,headers:n.headers})}))}function D(e,t){if(e["WebsiteConfiguration"]){var n=o.clone(e["WebsiteConfiguration"]||{}),r=n["RoutingRules"]||n["RoutingRule"]||[];r=o.isArray(r)?r:[r],delete n.RoutingRule,delete n.RoutingRules,r.length&&(n.RoutingRules={RoutingRule:r});var i=o.json2xml({WebsiteConfiguration:n}),a=e.Headers;a["Content-Type"]="application/xml",a["Content-MD5"]=o.b64(o.md5(i)),je.call(this,{Action:"name/cos:PutBucketWebsite",method:"PUT",Bucket:e.Bucket,Region:e.Region,body:i,action:"website",headers:a,tracker:e.tracker},(function(e,n){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:n.statusCode,headers:n.headers})}))}else t(o.error(new Error("missing param WebsiteConfiguration")))}function E(e,t){je.call(this,{Action:"name/cos:GetBucketWebsite",method:"GET",Bucket:e.Bucket,Region:e.Region,Key:e.Key,headers:e.Headers,action:"website",tracker:e.tracker},(function(e,n){if(e)if(404===e.statusCode&&"NoSuchWebsiteConfiguration"===e.error.Code){var r={WebsiteConfiguration:{},statusCode:e.statusCode};e.headers&&(r.headers=e.headers),t(null,r)}else t(e);else{var i=n.WebsiteConfiguration||{};if(i["RoutingRules"]){var a=o.clone(i["RoutingRules"].RoutingRule||[]);a=o.makeArray(a),i.RoutingRules=a}t(null,{WebsiteConfiguration:i,statusCode:n.statusCode,headers:n.headers})}}))}function I(e,t){je.call(this,{Action:"name/cos:DeleteBucketWebsite",method:"DELETE",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"website",tracker:e.tracker},(function(e,n){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:n.statusCode,headers:n.headers})}))}function j(e,t){if(e["RefererConfiguration"]){var n=o.clone(e["RefererConfiguration"]||{}),r=n["DomainList"]||{},i=r["Domains"]||r["Domain"]||[];i=o.isArray(i)?i:[i],i.length&&(n.DomainList={Domain:i});var a=o.json2xml({RefererConfiguration:n}),s=e.Headers;s["Content-Type"]="application/xml",s["Content-MD5"]=o.b64(o.md5(a)),je.call(this,{Action:"name/cos:PutBucketReferer",method:"PUT",Bucket:e.Bucket,Region:e.Region,body:a,action:"referer",headers:s,tracker:e.tracker},(function(e,n){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:n.statusCode,headers:n.headers})}))}else t(o.error(new Error("missing param RefererConfiguration")))}function P(e,t){je.call(this,{Action:"name/cos:GetBucketReferer",method:"GET",Bucket:e.Bucket,Region:e.Region,Key:e.Key,headers:e.Headers,action:"referer",tracker:e.tracker},(function(e,n){if(e)if(404===e.statusCode&&"NoSuchRefererConfiguration"===e.error.Code){var r={WebsiteConfiguration:{},statusCode:e.statusCode};e.headers&&(r.headers=e.headers),t(null,r)}else t(e);else{var i=n.RefererConfiguration||{};if(i["DomainList"]){var a=o.makeArray(i["DomainList"].Domain||[]);i.DomainList={Domains:a}}t(null,{RefererConfiguration:i,statusCode:n.statusCode,headers:n.headers})}}))}function R(e,t){var n=e["DomainConfiguration"]||{},r=n.DomainRule||e.DomainRule||[];r=o.clone(r);var i=o.json2xml({DomainConfiguration:{DomainRule:r}}),a=e.Headers;a["Content-Type"]="application/xml",a["Content-MD5"]=o.b64(o.md5(i)),je.call(this,{Action:"name/cos:PutBucketDomain",method:"PUT",Bucket:e.Bucket,Region:e.Region,body:i,action:"domain",headers:a,tracker:e.tracker},(function(e,n){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:n.statusCode,headers:n.headers})}))}function N(e,t){je.call(this,{Action:"name/cos:GetBucketDomain",method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"domain",tracker:e.tracker},(function(e,n){if(e)return t(e);var r=[];try{r=n.DomainConfiguration.DomainRule||[]}catch(i){}r=o.clone(o.isArray(r)?r:[r]),t(null,{DomainRule:r,statusCode:n.statusCode,headers:n.headers})}))}function B(e,t){je.call(this,{Action:"name/cos:DeleteBucketDomain",method:"DELETE",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"domain",tracker:e.tracker},(function(e,n){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:n.statusCode,headers:n.headers})}))}function Y(e,t){var n=e["OriginConfiguration"]||{},r=n.OriginRule||e.OriginRule||[];r=o.clone(r);var i=o.json2xml({OriginConfiguration:{OriginRule:r}}),a=e.Headers;a["Content-Type"]="application/xml",a["Content-MD5"]=o.b64(o.md5(i)),je.call(this,{Action:"name/cos:PutBucketOrigin",method:"PUT",Bucket:e.Bucket,Region:e.Region,body:i,action:"origin",headers:a,tracker:e.tracker},(function(e,n){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:n.statusCode,headers:n.headers})}))}function F(e,t){je.call(this,{Action:"name/cos:GetBucketOrigin",method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"origin",tracker:e.tracker},(function(e,n){if(e)return t(e);var r=[];try{r=n.OriginConfiguration.OriginRule||[]}catch(i){}r=o.clone(o.isArray(r)?r:[r]),t(null,{OriginRule:r,statusCode:n.statusCode,headers:n.headers})}))}function z(e,t){je.call(this,{Action:"name/cos:DeleteBucketOrigin",method:"DELETE",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"origin",tracker:e.tracker},(function(e,n){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:n.statusCode,headers:n.headers})}))}function H(e,t){var n=o.json2xml({BucketLoggingStatus:e["BucketLoggingStatus"]||""}),r=e.Headers;r["Content-Type"]="application/xml",r["Content-MD5"]=o.b64(o.md5(n)),je.call(this,{Action:"name/cos:PutBucketLogging",method:"PUT",Bucket:e.Bucket,Region:e.Region,body:n,action:"logging",headers:r,tracker:e.tracker},(function(e,n){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:n.statusCode,headers:n.headers})}))}function V(e,t){je.call(this,{Action:"name/cos:GetBucketLogging",method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"logging",tracker:e.tracker},(function(e,n){if(e)return t(e);t(null,{BucketLoggingStatus:n.BucketLoggingStatus,statusCode:n.statusCode,headers:n.headers})}))}function W(e,t,n){var r=o.clone(t["InventoryConfiguration"]);if(r.OptionalFields){var i=r.OptionalFields||[];r.OptionalFields={Field:i}}if(r.Destination&&r.Destination.COSBucketDestination&&r.Destination.COSBucketDestination.Encryption){var a=r.Destination.COSBucketDestination.Encryption;Object.keys(a).indexOf("SSECOS")>-1&&(a["SSE-COS"]=a["SSECOS"],delete a["SSECOS"])}var s=o.json2xml({InventoryConfiguration:r}),l=t.Headers;l["Content-Type"]="application/xml",l["Content-MD5"]=o.b64(o.md5(s));var u="PUT"===e?"name/cos:PutBucketInventory":"name/cos:PostBucketInventory";je.call(this,{Action:u,method:e,Bucket:t.Bucket,Region:t.Region,body:s,action:"inventory",qs:{id:t["Id"]},headers:l,tracker:t.tracker},(function(e,t){return e&&204===e.statusCode?n(null,{statusCode:e.statusCode}):e?n(e):void n(null,{statusCode:t.statusCode,headers:t.headers})}))}function U(e,t){return W.call(this,"PUT",e,t)}function $(e,t){return W.call(this,"POST",e,t)}function G(e,t){je.call(this,{Action:"name/cos:GetBucketInventory",method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"inventory",qs:{id:e["Id"]},tracker:e.tracker},(function(e,n){if(e)return t(e);var r=n["InventoryConfiguration"];if(r&&r.OptionalFields&&r.OptionalFields.Field){var i=r.OptionalFields.Field;o.isArray(i)||(i=[i]),r.OptionalFields=i}if(r.Destination&&r.Destination.COSBucketDestination&&r.Destination.COSBucketDestination.Encryption){var a=r.Destination.COSBucketDestination.Encryption;Object.keys(a).indexOf("SSE-COS")>-1&&(a["SSECOS"]=a["SSE-COS"],delete a["SSE-COS"])}t(null,{InventoryConfiguration:r,statusCode:n.statusCode,headers:n.headers})}))}function q(e,t){je.call(this,{Action:"name/cos:ListBucketInventory",method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"inventory",qs:{"continuation-token":e["ContinuationToken"]},tracker:e.tracker},(function(e,n){if(e)return t(e);var r=n["ListInventoryConfigurationResult"],i=r.InventoryConfiguration||[];i=o.isArray(i)?i:[i],delete r["InventoryConfiguration"],o.each(i,(function(e){if(e&&e.OptionalFields&&e.OptionalFields.Field){var t=e.OptionalFields.Field;o.isArray(t)||(t=[t]),e.OptionalFields=t}if(e.Destination&&e.Destination.COSBucketDestination&&e.Destination.COSBucketDestination.Encryption){var n=e.Destination.COSBucketDestination.Encryption;Object.keys(n).indexOf("SSE-COS")>-1&&(n["SSECOS"]=n["SSE-COS"],delete n["SSE-COS"])}})),r.InventoryConfigurations=i,o.extend(r,{statusCode:n.statusCode,headers:n.headers}),t(null,r)}))}function X(e,t){je.call(this,{Action:"name/cos:DeleteBucketInventory",method:"DELETE",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"inventory",qs:{id:e["Id"]},tracker:e.tracker},(function(e,n){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:n.statusCode,headers:n.headers})}))}function K(e,t){if(e["AccelerateConfiguration"]){var n={AccelerateConfiguration:e.AccelerateConfiguration||{}},r=o.json2xml(n),i={"Content-Type":"application/xml"};i["Content-MD5"]=o.b64(o.md5(r)),je.call(this,{Action:"name/cos:PutBucketAccelerate",method:"PUT",Bucket:e.Bucket,Region:e.Region,body:r,action:"accelerate",headers:i,tracker:e.tracker},(function(e,n){if(e)return t(e);t(null,{statusCode:n.statusCode,headers:n.headers})}))}else t(o.error(new Error("missing param AccelerateConfiguration")))}function Z(e,t){je.call(this,{Action:"name/cos:GetBucketAccelerate",method:"GET",Bucket:e.Bucket,Region:e.Region,action:"accelerate",tracker:e.tracker},(function(e,n){e||!n.AccelerateConfiguration&&(n.AccelerateConfiguration={}),t(e,n)}))}function J(e,t){var n=e.ServerSideEncryptionConfiguration||{},r=n.Rule||n.Rules||[],i=o.json2xml({ServerSideEncryptionConfiguration:{Rule:r}}),a=e.Headers;a["Content-Type"]="application/xml",a["Content-MD5"]=o.b64(o.md5(i)),je.call(this,{Action:"name/cos:PutBucketEncryption",method:"PUT",Bucket:e.Bucket,Region:e.Region,body:i,action:"encryption",headers:a,tracker:e.tracker},(function(e,n){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:n.statusCode,headers:n.headers})}))}function Q(e,t){je.call(this,{Action:"name/cos:GetBucketEncryption",method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"encryption",tracker:e.tracker},(function(e,n){if(e)if(404===e.statusCode&&"NoSuchEncryptionConfiguration"===e.code){var r={EncryptionConfiguration:{Rules:[]},statusCode:e.statusCode};e.headers&&(r.headers=e.headers),t(null,r)}else t(e);else{var i=o.makeArray(n.EncryptionConfiguration&&n.EncryptionConfiguration.Rule||[]);n.EncryptionConfiguration={Rules:i},t(e,n)}}))}function ee(e,t){je.call(this,{Action:"name/cos:DeleteBucketReplication",method:"DELETE",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"encryption",tracker:e.tracker},(function(e,n){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:n.statusCode,headers:n.headers})}))}function te(e,t){je.call(this,{Action:"name/cos:HeadObject",method:"HEAD",Bucket:e.Bucket,Region:e.Region,Key:e.Key,VersionId:e.VersionId,headers:e.Headers,tracker:e.tracker},(function(n,r){if(n){var i=n.statusCode;return e.Headers["If-Modified-Since"]&&i&&304===i?t(null,{NotModified:!0,statusCode:i}):t(n)}r.ETag=o.attr(r.headers,"etag",""),t(null,r)}))}function ne(e,t){var n={};n["prefix"]=e["Prefix"]||"",n["delimiter"]=e["Delimiter"],n["key-marker"]=e["KeyMarker"],n["version-id-marker"]=e["VersionIdMarker"],n["max-keys"]=e["MaxKeys"],n["encoding-type"]=e["EncodingType"],je.call(this,{Action:"name/cos:GetBucketObjectVersions",ResourceKey:n["prefix"],method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,qs:n,action:"versions",tracker:e.tracker},(function(e,n){if(e)return t(e);var r=n.ListVersionsResult||{},i=r.DeleteMarker||[];i=o.isArray(i)?i:[i];var a=r.Version||[];a=o.isArray(a)?a:[a];var s=o.clone(r);delete s.DeleteMarker,delete s.Version,o.extend(s,{DeleteMarkers:i,Versions:a,statusCode:n.statusCode,headers:n.headers}),t(null,s)}))}function re(e,t){if(this.options.ObjectKeySimplifyCheck){var n=o.simplifyPath(e.Key);if("/"===n)return void t(o.error(new Error("The Getobject Key is illegal")))}var r=e.Query||{},i=e.QueryString||"",a=o.throttleOnProgress.call(this,0,e.onProgress),s=e.tracker;s&&s.setParams({signStartTime:(new Date).getTime()}),r["response-content-type"]=e["ResponseContentType"],r["response-content-language"]=e["ResponseContentLanguage"],r["response-expires"]=e["ResponseExpires"],r["response-cache-control"]=e["ResponseCacheControl"],r["response-content-disposition"]=e["ResponseContentDisposition"],r["response-content-encoding"]=e["ResponseContentEncoding"],je.call(this,{Action:"name/cos:GetObject",method:"GET",Bucket:e.Bucket,Region:e.Region,Key:e.Key,VersionId:e.VersionId,DataType:e.DataType,headers:e.Headers,qs:r,qsStr:i,rawBody:!0,onDownloadProgress:a,tracker:s},(function(n,r){if(a(null,!0),n){var i=n.statusCode;return e.Headers["If-Modified-Since"]&&i&&304===i?t(null,{NotModified:!0}):t(n)}t(null,{Body:r.body,ETag:o.attr(r.headers,"etag",""),statusCode:r.statusCode,headers:r.headers})}))}function ie(e,t){var n=this,r=e.ContentLength,i=o.throttleOnProgress.call(n,r,e.onProgress),a=e.Headers;a["Cache-Control"]||a["cache-control"]||(a["Cache-Control"]=""),a["Content-Type"]||a["content-type"]||(a["Content-Type"]=e.Body&&e.Body.type||"");var s=e.UploadAddMetaMd5||n.options.UploadAddMetaMd5||n.options.UploadCheckContentMd5,l=e.tracker;s&&l&&l.setParams({md5StartTime:(new Date).getTime()}),o.getBodyMd5(s,e.Body,(function(s){s&&(l&&l.setParams({md5EndTime:(new Date).getTime()}),n.options.UploadCheckContentMd5&&(a["Content-MD5"]=o.b64(s)),(e.UploadAddMetaMd5||n.options.UploadAddMetaMd5)&&(a["x-cos-meta-md5"]=s)),void 0!==e.ContentLength&&(a["Content-Length"]=e.ContentLength),i(null,!0),je.call(n,{Action:"name/cos:PutObject",TaskId:e.TaskId,method:"PUT",Bucket:e.Bucket,Region:e.Region,Key:e.Key,headers:e.Headers,qs:e.Query,body:e.Body,onProgress:i,tracker:l},(function(a,s){if(a)return i(null,!0),t(a);i({loaded:r,total:r},!0);var l=Le({ForcePathStyle:n.options.ForcePathStyle,protocol:n.options.Protocol,domain:n.options.Domain,bucket:e.Bucket,region:n.options.UseAccelerate?"accelerate":e.Region,object:e.Key});l=l.substr(l.indexOf("://")+3),s.Location=l,s.ETag=o.attr(s.headers,"etag",""),t(null,s)}))}),e.onHashProgress)}function oe(e,t){je.call(this,{Action:"name/cos:DeleteObject",method:"DELETE",Bucket:e.Bucket,Region:e.Region,Key:e.Key,headers:e.Headers,VersionId:e.VersionId,action:e.Recursive?"recursive":"",tracker:e.tracker},(function(e,n){if(e){var r=e.statusCode;return r&&404===r?t(null,{BucketNotFound:!0,statusCode:r}):t(e)}t(null,{statusCode:n.statusCode,headers:n.headers})}))}function ae(e,t){var n={};e.VersionId&&(n.versionId=e.VersionId),je.call(this,{Action:"name/cos:GetObjectACL",method:"GET",Bucket:e.Bucket,Region:e.Region,Key:e.Key,headers:e.Headers,qs:n,action:"acl",tracker:e.tracker},(function(e,n){if(e)return t(e);var r=n.AccessControlPolicy||{},i=r.Owner||{},a=r.AccessControlList&&r.AccessControlList.Grant||[];a=o.isArray(a)?a:[a];var s=Te(r);delete s.GrantWrite,n.headers&&n.headers["x-cos-acl"]&&(s.ACL=n.headers["x-cos-acl"]),s=o.extend(s,{Owner:i,Grants:a,statusCode:n.statusCode,headers:n.headers}),t(null,s)}))}function se(e,t){var n=e.Headers,r="";if(e["AccessControlPolicy"]){var i=o.clone(e["AccessControlPolicy"]||{}),a=i.Grants||i.Grant;a=o.isArray(a)?a:[a],delete i.Grant,delete i.Grants,i.AccessControlList={Grant:a},r=o.json2xml({AccessControlPolicy:i}),n["Content-Type"]="application/xml",n["Content-MD5"]=o.b64(o.md5(r))}o.each(n,(function(e,t){0===t.indexOf("x-cos-grant-")&&(n[t]=Oe(n[t]))})),je.call(this,{Action:"name/cos:PutObjectACL",method:"PUT",Bucket:e.Bucket,Region:e.Region,Key:e.Key,action:"acl",headers:n,body:r,tracker:e.tracker},(function(e,n){if(e)return t(e);t(null,{statusCode:n.statusCode,headers:n.headers})}))}function le(e,t){var n=e.Headers;n["Origin"]=e["Origin"],n["Access-Control-Request-Method"]=e["AccessControlRequestMethod"],n["Access-Control-Request-Headers"]=e["AccessControlRequestHeaders"],je.call(this,{Action:"name/cos:OptionsObject",method:"OPTIONS",Bucket:e.Bucket,Region:e.Region,Key:e.Key,headers:n,tracker:e.tracker},(function(e,n){if(e)return e.statusCode&&403===e.statusCode?t(null,{OptionsForbidden:!0,statusCode:e.statusCode}):t(e);var r=n.headers||{};t(null,{AccessControlAllowOrigin:r["access-control-allow-origin"],AccessControlAllowMethods:r["access-control-allow-methods"],AccessControlAllowHeaders:r["access-control-allow-headers"],AccessControlExposeHeaders:r["access-control-expose-headers"],AccessControlMaxAge:r["access-control-max-age"],statusCode:n.statusCode,headers:n.headers})}))}function ue(e,t){var n=this,r=e.Headers;r["Cache-Control"]||r["cache-control"]||(r["Cache-Control"]="");var i=e.CopySource||"",a=o.getSourceParams.call(this,i);if(a){var s=a.Bucket,l=a.Region,u=decodeURIComponent(a.Key);je.call(this,{Scope:[{action:"name/cos:GetObject",bucket:s,region:l,prefix:u},{action:"name/cos:PutObject",bucket:e.Bucket,region:e.Region,prefix:e.Key}],method:"PUT",Bucket:e.Bucket,Region:e.Region,Key:e.Key,VersionId:e.VersionId,headers:e.Headers,tracker:e.tracker},(function(r,i){if(r)return t(r);var a=o.clone(i.CopyObjectResult||{}),s=Le({ForcePathStyle:n.options.ForcePathStyle,protocol:n.options.Protocol,domain:n.options.Domain,bucket:e.Bucket,region:e.Region,object:e.Key,isLocation:!0});o.extend(a,{Location:s,statusCode:i.statusCode,headers:i.headers}),t(null,a)}))}else t(o.error(new Error("CopySource format error")))}function ce(e,t){var n=e.CopySource||"",r=o.getSourceParams.call(this,n);if(r){var i=r.Bucket,a=r.Region,s=decodeURIComponent(r.Key);je.call(this,{Scope:[{action:"name/cos:GetObject",bucket:i,region:a,prefix:s},{action:"name/cos:PutObject",bucket:e.Bucket,region:e.Region,prefix:e.Key}],method:"PUT",Bucket:e.Bucket,Region:e.Region,Key:e.Key,VersionId:e.VersionId,qs:{partNumber:e["PartNumber"],uploadId:e["UploadId"]},headers:e.Headers,tracker:e.tracker},(function(e,n){if(e)return t(e);var r=o.clone(n.CopyPartResult||{});o.extend(r,{statusCode:n.statusCode,headers:n.headers}),t(null,r)}))}else t(o.error(new Error("CopySource format error")))}function de(e,t){var n=e.Objects||[],r=e.Quiet;n=o.isArray(n)?n:[n];var i=o.json2xml({Delete:{Object:n,Quiet:r||!1}}),a=e.Headers;a["Content-Type"]="application/xml",a["Content-MD5"]=o.b64(o.md5(i));var s=o.map(n,(function(t){return{action:"name/cos:DeleteObject",bucket:e.Bucket,region:e.Region,prefix:t.Key}}));je.call(this,{Scope:s,method:"POST",Bucket:e.Bucket,Region:e.Region,body:i,action:"delete",headers:a,tracker:e.tracker},(function(e,n){if(e)return t(e);var r=n.DeleteResult||{},i=r.Deleted||[],a=r.Error||[];i=o.isArray(i)?i:[i],a=o.isArray(a)?a:[a];var s=o.clone(r);o.extend(s,{Error:a,Deleted:i,statusCode:n.statusCode,headers:n.headers}),t(null,s)}))}function he(e,t){var n=e.Headers;if(e["RestoreRequest"]){var r=e.RestoreRequest||{},i=o.json2xml({RestoreRequest:r});n["Content-Type"]="application/xml",n["Content-MD5"]=o.b64(o.md5(i)),je.call(this,{Action:"name/cos:RestoreObject",method:"POST",Bucket:e.Bucket,Region:e.Region,Key:e.Key,VersionId:e.VersionId,body:i,action:"restore",headers:n,tracker:e.tracker},t)}else t(o.error(new Error("missing param RestoreRequest")))}function fe(e,t){var n=e["Tagging"]||{},r=n.TagSet||n.Tags||e["Tags"]||[];r=o.clone(o.isArray(r)?r:[r]);var i=o.json2xml({Tagging:{TagSet:{Tag:r}}}),a=e.Headers;a["Content-Type"]="application/xml",a["Content-MD5"]=o.b64(o.md5(i)),je.call(this,{Action:"name/cos:PutObjectTagging",method:"PUT",Bucket:e.Bucket,Key:e.Key,Region:e.Region,body:i,action:"tagging",headers:a,VersionId:e.VersionId,tracker:e.tracker},(function(e,n){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:n.statusCode,headers:n.headers})}))}function pe(e,t){je.call(this,{Action:"name/cos:GetObjectTagging",method:"GET",Key:e.Key,Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"tagging",VersionId:e.VersionId,tracker:e.tracker},(function(e,n){if(e)if(404!==e.statusCode||!e.error||"Not Found"!==e.error&&"NoSuchTagSet"!==e.error.Code)t(e);else{var r={Tags:[],statusCode:e.statusCode};e.headers&&(r.headers=e.headers),t(null,r)}else{var i=[];try{i=n.Tagging.TagSet.Tag||[]}catch(a){}i=o.clone(o.isArray(i)?i:[i]),t(null,{Tags:i,statusCode:n.statusCode,headers:n.headers})}}))}function me(e,t){je.call(this,{Action:"name/cos:DeleteObjectTagging",method:"DELETE",Bucket:e.Bucket,Region:e.Region,Key:e.Key,headers:e.Headers,action:"tagging",VersionId:e.VersionId,tracker:e.tracker},(function(e,n){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:n.statusCode,headers:n.headers})}))}function ge(e,t){var n=e["SelectType"];if(!n)return t(o.error(new Error("missing param SelectType")));var r=e["SelectRequest"]||{},i=o.json2xml({SelectRequest:r}),a=e.Headers;a["Content-Type"]="application/xml",a["Content-MD5"]=o.b64(o.md5(i)),je.call(this,{Action:"name/cos:GetObject",method:"POST",Bucket:e.Bucket,Region:e.Region,Key:e.Key,headers:e.Headers,action:"select",qs:{"select-type":e["SelectType"]},VersionId:e.VersionId,body:i,DataType:"arraybuffer",rawBody:!0,tracker:e.tracker},(function(e,n){if(e&&204===e.statusCode)return t(null,{statusCode:e.statusCode});if(e)return t(e);var r=o.parseSelectPayload(n.body);t(null,{statusCode:n.statusCode,headers:n.headers,Body:r.body,Payload:r.payload})}))}function ve(e,t){var n=this,r=e.Headers,i=e.tracker;r["Cache-Control"]||r["cache-control"]||(r["Cache-Control"]=""),r["Content-Type"]||r["content-type"]||(r["Content-Type"]=e.Body&&e.Body.type||"");var a=e.Body&&(e.UploadAddMetaMd5||n.options.UploadAddMetaMd5);a&&i&&i.setParams({md5StartTime:(new Date).getTime()}),o.getBodyMd5(a,e.Body,(function(r){r&&(e.Headers["x-cos-meta-md5"]=r),a&&i&&i.setParams({md5EndTime:(new Date).getTime()}),je.call(n,{Action:"name/cos:InitiateMultipartUpload",method:"POST",Bucket:e.Bucket,Region:e.Region,Key:e.Key,action:"uploads",headers:e.Headers,qs:e.Query,tracker:i},(function(e,n){return e?(i&&i.parent&&i.parent.setParams({errorNode:"multipartInit"}),t(e)):(n=o.clone(n||{}),n&&n.InitiateMultipartUploadResult?t(null,o.extend(n.InitiateMultipartUploadResult,{statusCode:n.statusCode,headers:n.headers})):void t(null,n))}))}),e.onHashProgress)}function ye(e,t){var n=this;o.getFileSize("multipartUpload",e,(function(){var r=e.tracker,i=n.options.UploadCheckContentMd5;i&&r&&r.setParams({md5StartTime:(new Date).getTime()}),o.getBodyMd5(i,e.Body,(function(a){a&&(e.Headers["Content-MD5"]=o.b64(a)),i&&r&&r.setParams({md5EndTime:(new Date).getTime()}),r&&r.setParams({partNumber:e.PartNumber}),je.call(n,{Action:"name/cos:UploadPart",TaskId:e.TaskId,method:"PUT",Bucket:e.Bucket,Region:e.Region,Key:e.Key,qs:{partNumber:e["PartNumber"],uploadId:e["UploadId"]},headers:e.Headers,onProgress:e.onProgress,body:e.Body||null,tracker:r},(function(e,n){if(e)return r&&r.parent&&r.parent.setParams({errorNode:"multipartUpload"}),t(e);t(null,{ETag:o.attr(n.headers,"etag",""),statusCode:n.statusCode,headers:n.headers})}))}))}))}function be(e,t){for(var n=this,r=e.UploadId,i=e["Parts"],a=e.tracker,s=0,l=i.length;s-1?r(n.Authorization):"sign="+encodeURIComponent(n.Authorization)),n.SecurityToken&&(o+="&x-cos-security-token="+n.SecurityToken),n.ClientIP&&(o+="&clientIP="+n.ClientIP),n.ClientUA&&(o+="&clientUA="+n.ClientUA),n.Token&&(o+="&token="+n.Token),a&&(o+="&"+a),setTimeout((function(){t(null,{Url:o})}))}}));return u?(s+="?"+u.Authorization+(u.SecurityToken?"&x-cos-security-token="+u.SecurityToken:""),a&&(s+="&"+a)):a&&(s+="?"+a),s}function Te(e){var t={GrantFullControl:[],GrantWrite:[],GrantRead:[],GrantReadAcp:[],GrantWriteAcp:[],ACL:""},n={FULL_CONTROL:"GrantFullControl",WRITE:"GrantWrite",READ:"GrantRead",READ_ACP:"GrantReadAcp",WRITE_ACP:"GrantWriteAcp"},r=e&&e.AccessControlList||{},i=r.Grant;i&&(i=o.isArray(i)?i:[i]);var a={READ:0,WRITE:0,FULL_CONTROL:0};return i&&i.length&&o.each(i,(function(r){var i=r.Grantee.URI&&r.Grantee.URI.endsWith("/groups/global/AllUsers");"qcs::cam::anyone:anyone"===r.Grantee.ID||i?a[r.Permission]=1:r.Grantee.ID!==e.Owner.ID&&t[n[r.Permission]].push('id="'+r.Grantee.ID+'"')})),a.FULL_CONTROL||a.WRITE&&a.READ?t.ACL="public-read-write":a.READ?t.ACL="public-read":t.ACL="private",o.each(n,(function(e){t[e]=Oe(t[e].join(","))})),t}function Oe(e){var t,n,r=e.split(","),i={};for(t=0;t-1?"{Region}.myqcloud.com":"cos.{Region}.myqcloud.com",e.ForcePathStyle||(s="{Bucket}."+s)),s=s.replace(/\{\{AppId\}\}/gi,a).replace(/\{\{Bucket\}\}/gi,i).replace(/\{\{Region\}\}/gi,t).replace(/\{\{.*?\}\}/gi,""),s=s.replace(/\{AppId\}/gi,a).replace(/\{BucketName\}/gi,i).replace(/\{Bucket\}/gi,n).replace(/\{Region\}/gi,t).replace(/\{.*?\}/gi,""),/^[a-zA-Z]+:\/\//.test(s)||(s=u+"//"+s),"/"===s.slice(-1)&&(s=s.slice(0,-1));var c=s;return e.ForcePathStyle&&(c+="/"+n),c+="/",l&&(c+=o.camSafeUrlEncode(l).replace(/%2F/g,"/")),e.isLocation&&(c=c.replace(/^https?:\/\//,"")),c}var Ae=function(e){if(!e.Bucket||!e.Region)return"";var t=void 0===e.UseAccelerate?this.options.UseAccelerate:e.UseAccelerate,n=e.Url||Le({ForcePathStyle:this.options.ForcePathStyle,protocol:this.options.Protocol,domain:this.options.Domain,bucket:e.Bucket,region:t?"accelerate":e.Region}),r=n.replace(/^https?:\/\/([^/]+)(\/.*)?$/,"$1");return r};function De(e,t){var n=o.clone(e.Headers),r="";o.each(n,(function(e,t){(""===e||["content-type","cache-control","expires"].indexOf(t.toLowerCase())>-1)&&delete n[t],"host"===t.toLowerCase()&&(r=e)}));var i=!1!==e.ForceSignHost;!r&&e.SignHost&&i&&(n.Host=e.SignHost);var a=!1,s=function(e,n){a||(a=!0,n&&n.XCosSecurityToken&&!n.SecurityToken&&(n=o.clone(n),n.SecurityToken=n.XCosSecurityToken,delete n.XCosSecurityToken),t&&t(e,n))},l=this,u=e.Bucket||"",c=e.Region||"",d=e.Key||"";l.options.ForcePathStyle&&u&&(d=u+"/"+d);var h="/"+d,f={},p=e.Scope;if(!p){var m=e.Action||"",g=e.ResourceKey||e.Key||"";p=e.Scope||[{action:m,bucket:u,region:c,prefix:g}]}var v=o.md5(JSON.stringify(p));l._StsCache=l._StsCache||[],function(){var e,t;for(e=l._StsCache.length-1;e>=0;e--){t=l._StsCache[e];var n=Math.round(o.getSkewTime(l.options.SystemClockOffset)/1e3)+30;if(t.StartTime&&n=t.ExpiredTime)l._StsCache.splice(e,1);else if(!t.ScopeLimit||t.ScopeLimit&&t.ScopeKey===v){f=t;break}}}();var y=function(){var t="";f.StartTime&&e.Expires?t=f.StartTime+";"+(f.StartTime+1*e.Expires):f.StartTime&&f.ExpiredTime&&(t=f.StartTime+";"+f.ExpiredTime);var r=o.getAuth({SecretId:f.TmpSecretId,SecretKey:f.TmpSecretKey,Method:e.Method,Pathname:h,Query:e.Query,Headers:n,Expires:e.Expires,UseRawKey:l.options.UseRawKey,SystemClockOffset:l.options.SystemClockOffset,KeyTime:t,ForceSignHost:i}),a={Authorization:r,SecurityToken:f.SecurityToken||f.XCosSecurityToken||"",Token:f.Token||"",ClientIP:f.ClientIP||"",ClientUA:f.ClientUA||"",SignFrom:"client"};s(null,a)},b=function(e){if(e.Authorization){var t=!1,n=e.Authorization;if(n)if(n.indexOf(" ")>-1)t=!1;else if(n.indexOf("q-sign-algorithm=")>-1&&n.indexOf("q-ak=")>-1&&n.indexOf("q-sign-time=")>-1&&n.indexOf("q-key-time=")>-1&&n.indexOf("q-url-param-list=")>-1)t=!0;else try{n=atob(n),n.indexOf("a=")>-1&&n.indexOf("k=")>-1&&n.indexOf("t=")>-1&&n.indexOf("r=")>-1&&n.indexOf("b=")>-1&&(t=!0)}catch(r){}if(!t)return o.error(new Error("getAuthorization callback params format error"))}else{if(!e.TmpSecretId)return o.error(new Error('getAuthorization callback params missing "TmpSecretId"'));if(!e.TmpSecretKey)return o.error(new Error('getAuthorization callback params missing "TmpSecretKey"'));if(!e.SecurityToken&&!e.XCosSecurityToken)return o.error(new Error('getAuthorization callback params missing "SecurityToken"'));if(!e.ExpiredTime)return o.error(new Error('getAuthorization callback params missing "ExpiredTime"'));if(e.ExpiredTime&&10!==e.ExpiredTime.toString().length)return o.error(new Error('getAuthorization callback params "ExpiredTime" should be 10 digits'));if(e.StartTime&&10!==e.StartTime.toString().length)return o.error(new Error('getAuthorization callback params "StartTime" should be 10 StartTime'))}return!1};if(f.ExpiredTime&&f.ExpiredTime-o.getSkewTime(l.options.SystemClockOffset)/1e3>60)y();else if(l.options.getAuthorization)l.options.getAuthorization.call(l,{Bucket:u,Region:c,Method:e.Method,Key:d,Pathname:h,Query:e.Query,Headers:n,Scope:p,SystemClockOffset:l.options.SystemClockOffset,ForceSignHost:i},(function(e){"string"===typeof e&&(e={Authorization:e});var t=b(e);if(t)return s(t);e.Authorization?s(null,e):(f=e||{},f.Scope=p,f.ScopeKey=v,l._StsCache.push(f),y())}));else{if(!l.options.getSTS)return function(){var t="";if(l.options.StartTime&&e.Expires){if(10!==l.options.StartTime.toString().length)return s(o.error(new Error('params "StartTime" should be 10 digits')));t=l.options.StartTime+";"+(l.options.StartTime+1*e.Expires)}else if(l.options.StartTime&&l.options.ExpiredTime){if(10!==l.options.StartTime.toString().length)return s(o.error(new Error('params "StartTime" should be 10 digits')));if(10!==l.options.ExpiredTime.toString().length)return s(o.error(new Error('params "ExpiredTime" should be 10 digits')));t=l.options.StartTime+";"+1*l.options.ExpiredTime}var r=o.getAuth({SecretId:e.SecretId||l.options.SecretId,SecretKey:e.SecretKey||l.options.SecretKey,Method:e.Method,Pathname:h,Query:e.Query,Headers:n,Expires:e.Expires,KeyTime:t,UseRawKey:l.options.UseRawKey,SystemClockOffset:l.options.SystemClockOffset,ForceSignHost:i}),a={Authorization:r,SecurityToken:l.options.SecurityToken||l.options.XCosSecurityToken,SignFrom:"client"};return s(null,a),a}();l.options.getSTS.call(l,{Bucket:u,Region:c},(function(e){f=e||{},f.Scope=p,f.ScopeKey=v,f.TmpSecretId||(f.TmpSecretId=f.SecretId),f.TmpSecretKey||(f.TmpSecretKey=f.SecretKey);var t=b(f);if(t)return s(t);l._StsCache.push(f),y()}))}return""}function Ee(e){var t=this,n=!1,r=!1,i=!1,a=e.headers&&(e.headers.date||e.headers.Date)||e.error&&e.error.ServerTime;try{var s=e.error.Code,l=e.error.Message;("RequestTimeTooSkewed"===s||"AccessDenied"===s&&"Request has expired"===l)&&(r=!0)}catch(c){}if(e)if(r&&a){var u=Date.parse(a);this.options.CorrectClockSkew&&Math.abs(o.getSkewTime(this.options.SystemClockOffset)-u)>=3e4&&(console.error("error: Local time is too skewed."),this.options.SystemClockOffset=u-Date.now(),n=!0)}else 5===Math.floor(e.statusCode/100)?n=!0:"CORS blocked or network error"===e.message&&(i=!0,n=t.options.AutoSwitchHost);return{canRetry:n,networkError:i}}function Ie(e){var t=e.requestUrl,n=e.clientCalcSign,r=e.networkError;if(!this.options.AutoSwitchHost)return!1;if(!t)return!1;if(!n)return!1;if(!r)return!1;var i=/^https?:\/\/[^\/]*\.cos\.[^\/]*\.myqcloud\.com(\/.*)?$/,o=/^https?:\/\/[^\/]*\.cos\.accelerate\.myqcloud\.com(\/.*)?$/,a=i.test(t)&&!o.test(t);return a}function je(e,t){var n=this;!e.headers&&(e.headers={}),!e.qs&&(e.qs={}),e.VersionId&&(e.qs.versionId=e.VersionId),e.qs=o.clearKey(e.qs),e.headers&&(e.headers=o.clearKey(e.headers)),e.qs&&(e.qs=o.clearKey(e.qs));var r=o.clone(e.qs);e.action&&(r[e.action]="");var i=e.url||e.Url,a=e.SignHost||Ae.call(this,{Bucket:e.Bucket,Region:e.Region,Url:i}),s=e.tracker,l=function i(o){var l=n.options.SystemClockOffset;s&&s.setParams({signStartTime:(new Date).getTime(),httpRetryTimes:o-1}),e.SwitchHost&&(a=a.replace(/myqcloud.com/,"tencentcos.cn")),De.call(n,{Bucket:e.Bucket||"",Region:e.Region||"",Method:e.method,Key:e.Key,Query:r,Headers:e.headers,SignHost:a,Action:e.Action,ResourceKey:e.ResourceKey,Scope:e.Scope,ForceSignHost:n.options.ForceSignHost,SwitchHost:e.SwitchHost},(function(r,a){r?t(r):(s&&s.setParams({signEndTime:(new Date).getTime(),httpStartTime:(new Date).getTime()}),e.AuthData=a,Pe.call(n,e,(function(r,u){s&&s.setParams({httpEndTime:(new Date).getTime()});var c=!1,d=!1;if(r){var h=Ee.call(n,r);c=h.canRetry||l!==n.options.SystemClockOffset,d=h.networkError}if(r&&o<2&&c){e.headers&&(delete e.headers.Authorization,delete e.headers["token"],delete e.headers["clientIP"],delete e.headers["clientUA"],e.headers["x-cos-security-token"]&&delete e.headers["x-cos-security-token"],e.headers["x-ci-security-token"]&&delete e.headers["x-ci-security-token"]);var f=Ie.call(n,{requestUrl:(null===r||void 0===r?void 0:r.url)||"",clientCalcSign:"client"===a.SignFrom,networkError:d});e.SwitchHost=f,e.retry=!0,i(o+1)}else t(r,u)})))}))};l(1)}function Pe(e,t){var n=this,r=e.TaskId;if(!r||n._isRunningTask(r)){var a=e.Bucket,s=e.Region,l=e.Key,u=e.method||"GET",c=e.Url||e.url,d=e.body,h=e.rawBody;n.options.UseAccelerate&&(s="accelerate"),c=c||Le({ForcePathStyle:n.options.ForcePathStyle,protocol:n.options.Protocol,domain:n.options.Domain,bucket:a,region:s,object:l}),e.SwitchHost&&(c=c.replace(/myqcloud.com/,"tencentcos.cn"));var f=l?c:"";e.action&&(c=c+"?"+(o.isIOS_QQ?"".concat(e.action,"="):e.action)),e.qsStr&&(c=c.indexOf("?")>-1?c+"&"+e.qsStr:c+"?"+e.qsStr);var p={method:u,url:c,headers:e.headers,qs:e.qs,body:d},m="x-cos-security-token";if(o.isCIHost(c)&&(m="x-ci-security-token"),p.headers.Authorization=e.AuthData.Authorization,e.AuthData.Token&&(p.headers["token"]=e.AuthData.Token),e.AuthData.ClientIP&&(p.headers["clientIP"]=e.AuthData.ClientIP),e.AuthData.ClientUA&&(p.headers["clientUA"]=e.AuthData.ClientUA),e.AuthData.SecurityToken&&(p.headers[m]=e.AuthData.SecurityToken),e.Action&&(p.action=e.Action),p.key=e.Key||e.ResourceKey,p.headers&&(p.headers=o.clearKey(p.headers)),e.retry&&(p.headers["x-cos-sdk-retry"]=!0),p=o.clearKey(p),e.onProgress&&"function"===typeof e.onProgress){var g=d&&(d.size||d.length)||0;p.onProgress=function(t){if(!r||n._isRunningTask(r)){var i=t?t.loaded:0;e.onProgress({loaded:i,total:g})}}}e.onDownloadProgress&&(p.onDownloadProgress=e.onDownloadProgress),e.DataType&&(p.dataType=e.DataType),this.options.Timeout&&(p.timeout=this.options.Timeout),n.options.ForcePathStyle&&(p.pathStyle=n.options.ForcePathStyle),n.emit("before-send",p);var v,y=p.url.includes("accelerate."),b=p.qs?Object.keys(p.qs).map((function(e){return"".concat(e,"=").concat(p.qs[e])})).join("&"):"",_=b?p.url+"?"+b:p.url;if(e.tracker)e.tracker.setParams({url:_,httpMethod:p.method,accelerate:y,httpSize:(null===(v=p.body)||void 0===v?void 0:v.size)||0}),e.tracker.parent&&!e.tracker.parent.params.url&&e.tracker.parent.setParams({url:f,accelerate:y});var w=(n.options.Request||i)(p,(function(i){if(!i||"abort"!==i.error){var a={options:p,error:i&&i.error,statusCode:i&&i.statusCode||0,statusMessage:i&&i.statusMessage||"",headers:i&&i.headers||{},body:i&&i.body};n.emit("after-receive",a);var s,l=a.error,u=a.body,c={statusCode:a.statusCode,statusMessage:a.statusMessage,headers:a.headers},d=function(i,a){if(r&&n.off("inner-kill-task",x),!s){s=!0;var l={};if(c&&c.statusCode&&(l.statusCode=c.statusCode),c&&c.headers&&(l.headers=c.headers),i)p.url&&(l.url=p.url),p.method&&(l.method=p.method),i=o.extend(i||{},l),t(i,null);else{if("name/cos:PutObject"===e.Action){var u={};for(var d in e.headers){var h=d.toLowerCase();u[h]=e.headers[d]}u["x-cos-callback"]?a.Error?(a.CallbackError=o.clone(a.Error),delete a.Error):a.CallbackBody=o.clone(a):u["x-cos-return-body"]&&(a.Error?(a.ReturnError=o.clone(a.Error),delete a.Error):a.ReturnBody=o.clone(a))}a=o.extend(a||{},l),t(null,a)}w=null}};if(l)return d(o.error(l));var f=c.statusCode,m=2===Math.floor(f/100);if(h){if(m)return d(null,{body:u});if(u instanceof Blob)return void o.readAsBinaryString(u,(function(e){var t=o.parseResBody(e),n=t.Error||t;return d(o.error(new Error(n.Message||"response body error"),{code:n.Code,error:n}))}))}var g=o.parseResBody(u),v=g.Error||g;m?d(null,g):v?d(o.error(new Error(v.Message),{code:v.Code,error:v})):f?d(o.error(new Error(c.statusMessage),{code:""+f})):f&&d(o.error(new Error("statusCode error")))}})),x=function e(t){t.TaskId===r&&(w&&w.abort&&w.abort(),n.off("inner-kill-task",e))};r&&n.on("inner-kill-task",x)}}var Re={getService:a,putBucket:s,headBucket:l,getBucket:u,deleteBucket:c,putBucketAcl:d,getBucketAcl:h,putBucketCors:f,getBucketCors:p,deleteBucketCors:m,getBucketLocation:g,getBucketPolicy:y,putBucketPolicy:v,deleteBucketPolicy:b,putBucketTagging:_,getBucketTagging:w,deleteBucketTagging:x,putBucketLifecycle:k,getBucketLifecycle:M,deleteBucketLifecycle:S,putBucketVersioning:C,getBucketVersioning:T,putBucketReplication:O,getBucketReplication:L,deleteBucketReplication:A,putBucketWebsite:D,getBucketWebsite:E,deleteBucketWebsite:I,putBucketReferer:j,getBucketReferer:P,putBucketDomain:R,getBucketDomain:N,deleteBucketDomain:B,putBucketOrigin:Y,getBucketOrigin:F,deleteBucketOrigin:z,putBucketLogging:H,getBucketLogging:V,putBucketInventory:U,postBucketInventory:$,getBucketInventory:G,listBucketInventory:q,deleteBucketInventory:X,putBucketAccelerate:K,getBucketAccelerate:Z,putBucketEncryption:J,getBucketEncryption:Q,deleteBucketEncryption:ee,getObject:re,headObject:te,listObjectVersions:ne,putObject:ie,deleteObject:oe,getObjectAcl:ae,putObjectAcl:se,optionsObject:le,putObjectCopy:ue,deleteMultipleObject:de,restoreObject:he,putObjectTagging:fe,getObjectTagging:pe,deleteObjectTagging:me,selectObjectContent:ge,appendObject:Me,uploadPartCopy:ce,multipartInit:ve,multipartUpload:ye,multipartComplete:be,multipartList:_e,multipartListPart:we,multipartAbort:xe,request:ke,getObjectUrl:Ce,getAuth:Se};function Ne(e,t,n){o.each(["Cors","Acl"],(function(r){if(e.slice(-r.length)===r){var i=e.slice(0,-r.length)+r.toUpperCase(),a=o.apiWrapper(e,t),s=!1;n[i]=function(){!s&&console.warn("warning: cos."+i+" has been deprecated. Please Use cos."+e+" instead."),s=!0,a.apply(this,arguments)}}}))}e.exports.init=function(e,t){t.transferToTaskMethod(Re,"putObject"),o.each(Re,(function(t,n){e.prototype[n]=o.apiWrapper(n,t),Ne(n,t,e.prototype)}))}},"./src/cos.js": /*!********************!*\ !*** ./src/cos.js ***! \********************/ /*! no static exports found */function(e,t,n){"use strict";var r=n(/*! ./util */"./src/util.js"),i=n(/*! ./event */"./src/event.js"),o=n(/*! ./task */"./src/task.js"),a=n(/*! ./base */"./src/base.js"),s=n(/*! ./advance */"./src/advance.js"),l=n(/*! ../package.json */"./package.json"),u={AppId:"",SecretId:"",SecretKey:"",SecurityToken:"",StartTime:0,ExpiredTime:0,ChunkRetryTimes:2,FileParallelLimit:3,ChunkParallelLimit:3,ChunkSize:1048576,SliceSize:1048576,CopyChunkParallelLimit:20,CopyChunkSize:10485760,CopySliceSize:10485760,MaxPartNumber:1e4,ProgressInterval:1e3,Domain:"",ServiceDomain:"",Protocol:"",CompatibilityMode:!1,ForcePathStyle:!1,UseRawKey:!1,Timeout:0,CorrectClockSkew:!0,SystemClockOffset:0,UploadCheckContentMd5:!1,UploadQueueSize:1e4,UploadAddMetaMd5:!1,UploadIdCacheLimit:50,UseAccelerate:!1,ForceSignHost:!0,AutoSwitchHost:!0,CopySourceParser:null,ObjectKeySimplifyCheck:!0,DeepTracker:!1,TrackerDelay:5e3,CustomId:"",BeaconReporter:null,ClsReporter:null},c=function(e){if(this.options=r.extend(r.clone(u),e||{}),this.options.FileParallelLimit=Math.max(1,this.options.FileParallelLimit),this.options.ChunkParallelLimit=Math.max(1,this.options.ChunkParallelLimit),this.options.ChunkRetryTimes=Math.max(0,this.options.ChunkRetryTimes),this.options.ChunkSize=Math.max(1048576,this.options.ChunkSize),this.options.CopyChunkParallelLimit=Math.max(1,this.options.CopyChunkParallelLimit),this.options.CopyChunkSize=Math.max(1048576,this.options.CopyChunkSize),this.options.CopySliceSize=Math.max(0,this.options.CopySliceSize),this.options.MaxPartNumber=Math.max(1024,Math.min(1e4,this.options.MaxPartNumber)),this.options.Timeout=Math.max(0,this.options.Timeout),this.options.EnableReporter=this.options.BeaconReporter||this.options.ClsReporter,this.options.AppId&&console.warn('warning: AppId has been deprecated, Please put it at the end of parameter Bucket(E.g: "test-1250000000").'),this.options.SecretId&&this.options.SecretId.indexOf(" ")>-1&&(console.error("error: SecretId格式错误,请检查"),console.error("error: SecretId format is incorrect. Please check")),this.options.SecretKey&&this.options.SecretKey.indexOf(" ")>-1&&(console.error("error: SecretKey格式错误,请检查"),console.error("error: SecretKey format is incorrect. Please check")),r.isNode()&&(console.log("Tip: Next.js、Nuxt.js 等服务端渲染技术可正常使用JavaScript SDK,请忽略下方 nodejs 环境警告"),console.warn("warning: cos-js-sdk-v5 不支持 nodejs 环境使用,请改用 cos-nodejs-sdk-v5,参考文档: https://cloud.tencent.com/document/product/436/8629"),console.warn("warning: cos-js-sdk-v5 does not support nodejs environment. Please use cos-nodejs-sdk-v5 instead. See: https://cloud.tencent.com/document/product/436/8629")),this.options.ForcePathStyle)throw console.warn("cos-js-sdk-v5不再支持使用path-style,仅支持使用virtual-hosted-style,参考文档:https://cloud.tencent.com/document/product/436/96243"),new Error("ForcePathStyle is not supported");i.init(this),o.init(this)};a.init(c,o),s.init(c,o),c.util={md5:r.md5,xml2json:r.xml2json,json2xml:r.json2xml,encodeBase64:r.encodeBase64},c.getAuthorization=r.getAuth,c.version=l.version,e.exports=c},"./src/event.js": /*!**********************!*\ !*** ./src/event.js ***! \**********************/ /*! no static exports found */function(e,t){var n=function(e){var t={},n=function(e){return!t[e]&&(t[e]=[]),t[e]};e.on=function(e,t){"task-list-update"===e&&console.warn('warning: Event "'+e+'" has been deprecated. Please use "list-update" instead.'),n(e).push(t)},e.off=function(e,t){for(var r=n(e),i=r.length-1;i>=0;i--)t===r[i]&&r.splice(i,1)},e.emit=function(e,t){for(var r=n(e).map((function(e){return e})),i=0;i=0;n--){var i=r[n][2];(!i||i+s=0;i--){var o=r[i];o[0]===e&&o[1]===t&&r.splice(i,1)}r.unshift([e,t,Math.round(Date.now()/1e3)]),r.length>n&&r.splice(n),d()}},removeUploadId:function(e){c.call(this),delete h.using[e];for(var t=r.length-1;t>=0;t--)r[t][1]===e&&r.splice(t,1);d()}};e.exports=h},"./src/task.js": /*!*********************!*\ !*** ./src/task.js ***! \*********************/ /*! no static exports found */function(e,t,n){var r=n(/*! ./session */"./src/session.js"),i=n(/*! ./util */"./src/util.js"),o={},a=function(e,t){o[t]=e[t],e[t]=function(e,n){e.SkipTask?o[t].call(this,e,n):this._addTask(t,e,n)}},s=function(e){var t=[],n={},a=0,s=0,l=function(e){var t={id:e.id,Bucket:e.Bucket,Region:e.Region,Key:e.Key,FilePath:e.FilePath,state:e.state,loaded:e.loaded,size:e.size,speed:e.speed,percent:e.percent,hashPercent:e.hashPercent,error:e.error};return e.FilePath&&(t.FilePath=e.FilePath),e._custom&&(t._custom=e._custom),t},u=function(){var n,r=function(){n=0,e.emit("task-list-update",{list:i.map(t,l)}),e.emit("list-update",{list:i.map(t,l)})};return function(){n||(n=setTimeout(r))}}(),c=function(){if(!(t.length<=e.options.UploadQueueSize)){for(var r=0;re.options.UploadQueueSize;){var i="waiting"===t[r].state||"checking"===t[r].state||"uploading"===t[r].state;t[r]&&i?r++:(n[t[r].id]&&delete n[t[r].id],t.splice(r,1),s--)}u()}},d=function n(){if(!(a>=e.options.FileParallelLimit)){while(t[s]&&"waiting"!==t[s].state)s++;if(!(s>=t.length)){var r=t[s];s++,a++,r.state="checking",r.params.onTaskStart&&r.params.onTaskStart(l(r)),!r.params.UploadData&&(r.params.UploadData={});var d=i.formatParams(r.api,r.params);o[r.api].call(e,d,(function(t,i){e._isRunningTask(r.id)&&("checking"!==r.state&&"uploading"!==r.state||(r.state=t?"error":"success",t&&(r.error=t),a--,u(),n(),r.callback&&r.callback(t,i),"success"===r.state&&(r.params&&(delete r.params.UploadData,delete r.params.Body,delete r.params),delete r.callback)),c())})),u(),setTimeout(n)}}},h=function(t,i){var o=n[t];if(o){var s=o&&"waiting"===o.state,l=o&&("checking"===o.state||"uploading"===o.state);if("canceled"===i&&"canceled"!==o.state||"paused"===i&&s||"paused"===i&&l){o.state=i,e.emit("inner-kill-task",{TaskId:t,toState:i});try{var h=o&&o.params&&o.params.UploadData.UploadId}catch(f){}"canceled"===i&&h&&r.removeUsing(h),u(),l&&(a--,d()),"canceled"===i&&(o.params&&(delete o.params.UploadData,delete o.params.Body,delete o.params),delete o.callback)}c()}};e._addTasks=function(t){i.each(t,(function(t){e._addTask(t.api,t.params,t.callback,!0)})),u()};var f=!0;e._addTask=function(r,o,a,s){o=i.formatParams(r,o);var l=i.uuid();o.TaskId=l,o.onTaskReady&&o.onTaskReady(l),o.TaskReady&&(o.TaskReady(l),f&&console.warn('warning: Param "TaskReady" has been deprecated. Please use "onTaskReady" instead.'),f=!1);var h={params:o,callback:a,api:r,index:t.length,id:l,Bucket:o.Bucket,Region:o.Region,Key:o.Key,FilePath:o.FilePath||"",state:"waiting",loaded:0,size:0,speed:0,percent:0,hashPercent:0,error:null,_custom:o._custom},p=o.onHashProgress;o.onHashProgress=function(t){e._isRunningTask(h.id)&&(h.hashPercent=t.percent,p&&p(t),u())};var m=o.onProgress;return o.onProgress=function(t){e._isRunningTask(h.id)&&("checking"===h.state&&(h.state="uploading"),h.loaded=t.loaded,h.speed=t.speed,h.percent=t.percent,m&&m(t),u())},i.getFileSize(r,o,(function(e,r){if(e)return a(i.error(e));n[l]=h,t.push(h),h.size=r,!s&&u(),d(),c()})),l},e._isRunningTask=function(e){var t=n[e];return!(!t||"checking"!==t.state&&"uploading"!==t.state)},e.getTaskList=function(){return i.map(t,l)},e.cancelTask=function(e){h(e,"canceled")},e.pauseTask=function(e){h(e,"paused")},e.restartTask=function(e){var t=n[e];!t||"paused"!==t.state&&"error"!==t.state||(t.state="waiting",u(),s=Math.min(s,t.index),d())},e.isUploadRunning=function(){return a||s=0||e.indexOf("wow32")>=0?"win32":e.indexOf("win64")>=0||e.indexOf("wow64")>=0?"win64":t?"mac":"unknown os"},isMobile:function(){var e=/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i;return!("object"!==("undefined"===typeof navigator?"undefined":o(navigator))||!navigator.userAgent.match(e))},isAndroid:function(){var e=/(Android|Adr|Linux)/i;return!("object"!==("undefined"===typeof navigator?"undefined":o(navigator))||!navigator.userAgent.match(e))},isIOS:function(){var e=/(iPhone|iPod|iPad|iOS)/i;return!("object"!==("undefined"===typeof navigator?"undefined":o(navigator))||!navigator.userAgent.match(e))},isOtherMobile:function(){return d&&!isAndroid&&!isIOS},getUA:function(){if("object"!==("undefined"===typeof navigator?"undefined":o(navigator)))return"unknown device";var e=navigator.userAgent;return e}},d=c.isMobile(),h=c.isAndroid()?"android":c.isIOS?"ios":"other_mobile",f=c.getOsType(),p=d?h:f,m=c.getUA(),g=c.getProtocol(),v=function(e){return["putObject","sliceUploadFile","uploadFile","uploadFiles"].includes(e)?"UploadTask":"getObject"===e?"DownloadTask":["putObjectCopy","sliceCopyFile"].includes(e)?"CopyTask":e};function y(e){return e.replace(/([A-Z])/g,"_$1").toLowerCase()}function b(e){var t={},n=["sdkVersionName","sdkVersionCode","osName","networkType","requestName","requestResult","bucket","region","appid","accelerate","url","host","requestPath","userAgent","networkProtocol","httpMethod","httpSize","httpSpeed","httpTookTime","httpMd5","httpSign","httpFullTime","httpDomain","partNumber","httpRetryTimes","customId","traceId","realApi"],r=[].concat(n,["errorNode","errorCode","errorName","errorMessage","errorRequestId","errorHttpCode","errorServiceName","errorType","fullError"]),i="Success"===e.requestResult?n:r;for(var o in e)if(i.includes(o)){var a=y(o);t[a]=e[o]}return t["request_name"]=e.realApi?v(e.realApi):e.requestName,t}var _=function(){"use strict";function e(t){r(this,e);var n=t.parent,i=t.traceId,o=t.bucket,s=t.region,u=t.apiName,d=t.realApi,h=t.httpMethod,f=t.fileKey,v=t.fileSize,y=t.accelerate,b=t.customId,_=t.delay,w=t.deepTracker,x=t.Beacon,k=t.clsReporter,M=o&&o.substr(o.lastIndexOf("-")+1)||"";this.parent=n,this.deepTracker=w,this.delay=_,k&&!this.clsReporter&&(this.clsReporter=k),this.params={sdkVersionName:"cos-js-sdk-v5",sdkVersionCode:a.version,osName:p,networkType:"",requestName:u||"",requestResult:"",realApi:d,bucket:o,region:s,accelerate:y,httpMethod:h,url:"",host:"",httpDomain:"",requestPath:f||"",userAgent:m,networkProtocol:g,errorType:"",errorCode:"",errorName:"",errorMessage:"",errorRequestId:"",errorHttpCode:0,errorServiceName:"",errorNode:"",httpTookTime:0,httpSize:v||0,httpMd5:0,httpSign:0,httpFullTime:0,httpSpeed:0,md5StartTime:0,md5EndTime:0,signStartTime:0,signEndTime:0,httpStartTime:0,httpEndTime:0,startTime:(new Date).getTime(),endTime:0,traceId:i||c.getUid(),appid:M,partNumber:0,httpRetryTimes:0,customId:b||"",partTime:0},x&&(this.beacon=l(x,_))}return i(e,[{key:"formatResult",value:function(e,t){var n,r,i,o,a,s,l=(new Date).getTime(),d=c.getNetType(),h=e?(null===e||void 0===e?void 0:e.code)||(null===e||void 0===e||null===(n=e.error)||void 0===n?void 0:n.code)||(null===e||void 0===e||null===(r=e.error)||void 0===r?void 0:r.Code):"",f=e?(null===e||void 0===e?void 0:e.message)||(null===e||void 0===e||null===(i=e.error)||void 0===i?void 0:i.message)||(null===e||void 0===e||null===(o=e.error)||void 0===o?void 0:o.Message):"",p=f,m=e?(null===e||void 0===e?void 0:e.resource)||(null===e||void 0===e||null===(a=e.error)||void 0===a?void 0:a.resource)||(null===e||void 0===e||null===(s=e.error)||void 0===s?void 0:s.Resource):"",g=e?null===e||void 0===e?void 0:e.statusCode:t.statusCode,v=e?(null===e||void 0===e?void 0:e.headers)&&(null===e||void 0===e?void 0:e.headers["x-cos-request-id"]):(null===t||void 0===t?void 0:t.headers)&&(null===t||void 0===t?void 0:t.headers["x-cos-request-id"]),y=e?v?"Server":"Client":"";"getObject"===this.params.requestName&&(this.params.httpSize=t?t.headers&&t.headers["content-length"]:0);var b="sliceUploadFile"===this.params.realApi,_="sliceCopyFile"===this.params.realApi;if(b||_){var w=this.params.httpSize/1024/this.params.partTime;Object.assign(this.params,{httpSpeed:w<0?0:w.toFixed(3)})}else{var x=l-this.params.startTime,k=this.params.httpEndTime-this.params.httpStartTime,M=this.params.httpSize/1024/(k/1e3),S=this.params.md5EndTime-this.params.md5StartTime,C=this.params.signEndTime-this.params.signStartTime;this.parent&&(this.parent.addParamValue("httpTookTime",u(k)),this.parent.addParamValue("httpFullTime",u(x)),this.parent.addParamValue("httpMd5",u(S)),this.parent.addParamValue("httpSign",u(C)),["multipartUpload","uploadPartCopy","putObjectCopy"].includes(this.params.requestName)&&this.parent.addParamValue("partTime",u(k))),Object.assign(this.params,{httpFullTime:u(x),httpMd5:u(S),httpSign:u(C),httpTookTime:u(k),httpSpeed:M<0?0:M.toFixed(3)})}if(Object.assign(this.params,{networkType:d,requestResult:e?"Failure":"Success",errorType:y,errorCode:h,errorHttpCode:g,errorName:p,errorMessage:f,errorServiceName:m,errorRequestId:v}),!e||h&&f||(this.params.fullError=e?JSON.stringify(e):""),this.params.url){try{var T=/^http(s)?:\/\/(.*?)\//.exec(this.params.url);this.params.host=T[2]}catch(O){this.params.host=this.params.url}this.params.httpDomain=this.params.host}}},{key:"report",value:function(e,t){if(this.beacon||this.clsReporter){this.formatResult(e,t);var n=b(this.params);this.beacon&&this.sendEventsToBeacon(n),this.clsReporter&&this.sendEventsToCLS(n)}}},{key:"setParams",value:function(e){Object.assign(this.params,e)}},{key:"addParamValue",value:function(e,t){this.params[e]=(+this.params[e]+ +t).toFixed(3)}},{key:"sendEventsToBeacon",value:function(e){var t="sliceUploadFile"===this.params.requestName||"sliceUploadFile"===this.params.realApi;if(!t||this.deepTracker){var n="qcloud_track_cos_sdk";0===this.delay?this.beacon&&this.beacon.onDirectUserAction(n,e):this.beacon&&this.beacon.onUserAction(n,e)}}},{key:"sendEventsToCLS",value:function(e){var t=!(0!==this.delay);this.clsReporter.log(e,t)}},{key:"generateSubTracker",value:function(t){return Object.assign(t,{parent:this,deepTracker:this.deepTracker,traceId:this.params.traceId,bucket:this.params.bucket,region:this.params.region,accelerate:this.params.accelerate,fileKey:this.params.requestPath,customId:this.params.customId,delay:this.delay,clsReporter:this.clsReporter}),new e(t)}}]),e}();e.exports=_},"./src/util.js": /*!*********************!*\ !*** ./src/util.js ***! \*********************/ /*! no static exports found */function(e,t,n){"use strict";(function(t){var r=n(/*! @babel/runtime/helpers/typeof */"./node_modules/@babel/runtime/helpers/typeof.js");function i(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=o(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){l=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw a}}}}function o(e,t){if(e){if("string"==typeof e)return a(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);nt?1:-1}))}var _=function(e,t){var n,r,i,o=[],a=b(e);for(n=0;n-1||w.indexOf(r)>-1)&&(t[n]=e[n])}return t},k=function(e){e=e||{};var t,n=e.SecretId,r=e.SecretKey,i=e.KeyTime,o=(e.method||e.Method||"get").toLowerCase(),a=R(e.Query||e.params||{}),s=x(R(e.Headers||e.headers||{})),u=e.Key||"";e.UseRawKey?t=e.Pathname||e.pathname||"/"+u:(t=e.Pathname||e.pathname||u,0!==t.indexOf("/")&&(t="/"+t));var c=!1!==e.ForceSignHost;if(!s.Host&&!s.host&&e.Bucket&&e.Region&&c&&(s.Host=e.Bucket+".cos."+e.Region+".myqcloud.com"),!n)throw new Error("missing param SecretId");if(!r)throw new Error("missing param SecretKey");var d=Math.round(J(e.SystemClockOffset)/1e3)-1,h=d,f=e.Expires||e.expires;h+=void 0===f?900:1*f||0;var p="sha1",m=n,g=i||d+";"+h,v=i||d+";"+h,y=b(s,!0).join(";").toLowerCase(),_=b(a,!0).join(";").toLowerCase(),w=l.HmacSHA1(v,r).toString(),k=[o,t,ue.obj2str(a,!0),ue.obj2str(s,!0),""].join("\n"),M=["sha1",g,l.SHA1(k).toString(),""].join("\n"),S=l.HmacSHA1(M,w).toString(),C=["q-sign-algorithm="+p,"q-ak="+m,"q-sign-time="+g,"q-key-time="+v,"q-header-list="+y,"q-url-param-list="+_,"q-signature="+S].join("&");return C},M=function(e,t,n){var r=t/8,i=e.slice(n,n+r);return new Uint8Array(i).reverse(),new{8:Uint8Array,16:Uint16Array,32:Uint32Array}[t](i)[0]},S=function(e,t,n,r){var i=e.slice(t,n),o="";return new Uint8Array(i).forEach((function(e){o+=String.fromCharCode(e)})),r&&(o=decodeURIComponent(escape(o))),o},C=function(e){var t={},n=S(e),r={records:[]};while(e.byteLength){var i,o=M(e,32,0),a=M(e,32,4),s=o-a-16,l=0;e=e.slice(12);while(lparseInt(t[n])?1:-1;return 0},t=function(t){if(!t)return!1;var n=(t.match(/Chrome\/([.\d]+)/)||[])[1],r=(t.match(/QBCore\/([.\d]+)/)||[])[1],i=(t.match(/QQBrowser\/([.\d]+)/)||[])[1],o=n&&e(n,"53.0.2785.116")<0&&r&&e(r,"3.53.991.400")<0&&i&&e(i,"9.0.2524.400")<=0||!1;return o};return t("undefined"!==typeof navigator&&navigator.userAgent)}(),E=function(e,t,n,r,i){var o;if(e.slice?o=e.slice(t,n):e.mozSlice?o=e.mozSlice(t,n):e.webkitSlice&&(o=e.webkitSlice(t,n)),r&&D){var a=new FileReader;a.onload=function(e){o=null,i(new Blob([a.result]))},a.readAsArrayBuffer(o)}else i(o)},I=function(e,t,n,r){n=n||O,e?"string"===typeof t?n(ue.md5(t,!0)):Blob&&t instanceof Blob?ue.getFileMd5(t,(function(e,t){n(t)}),r):n():n()},j=1048576,P=function(e,t,n){var r=e.size,i=0,o=s.getCtx(),a=function a(s){if(s>=r){var l=o.digest("hex");t(null,l)}else{var u=Math.min(r,s+j);ue.fileSlice(e,s,u,!1,(function(e){A(e,(function(t){e=null,o=o.update(t,!0),i+=t.length,t=null,n&&n({loaded:i,total:r,percent:Math.round(i/r*1e4)/1e4}),a(s+j)}))}))}};a(0)};function R(e){return V(e,(function(e){return"object"===r(e)&&null!==e?R(e):e}))}function N(e,t,n){return e&&t in e?e[t]:n}function B(e,t){return H(t,(function(n,r){e[r]=t[r]})),e}function Y(e){return e instanceof Array}function F(e,t){for(var n=!1,r=0;r-1,s=!o||"string"===typeof o&&o.indexOf("{Region}")>-1;if(e.indexOf("Bucket")>-1||"deleteMultipleObject"===e||"multipartList"===e||"listObjectVersions"===e){if(a&&!n)return"Bucket";if(s&&!r)return"Region"}else if(e.indexOf("Object")>-1||e.indexOf("multipart")>-1||"sliceUploadFile"===e||"abortUploadTask"===e||"uploadFile"===e){if(a&&!n)return"Bucket";if(s&&!r)return"Region";if(!i)return"Key"}return!1},q=function(e,t){if(t=B({},t),"getAuth"!==e&&"getV4Auth"!==e&&"getObjectUrl"!==e){var n=t.Headers||{};if(t&&"object"===r(t)){(function(){for(var e in t)t.hasOwnProperty(e)&&e.indexOf("x-cos-")>-1&&(n[e]=t[e])})();var i={"x-cos-mfa":"MFA","Content-MD5":"ContentMD5","Content-Length":"ContentLength","Content-Type":"ContentType",Expect:"Expect",Expires:"Expires","Cache-Control":"CacheControl","Content-Disposition":"ContentDisposition","Content-Encoding":"ContentEncoding",Range:"Range","If-Modified-Since":"IfModifiedSince","If-Unmodified-Since":"IfUnmodifiedSince","If-Match":"IfMatch","If-None-Match":"IfNoneMatch","x-cos-copy-source":"CopySource","x-cos-copy-source-Range":"CopySourceRange","x-cos-metadata-directive":"MetadataDirective","x-cos-copy-source-If-Modified-Since":"CopySourceIfModifiedSince","x-cos-copy-source-If-Unmodified-Since":"CopySourceIfUnmodifiedSince","x-cos-copy-source-If-Match":"CopySourceIfMatch","x-cos-copy-source-If-None-Match":"CopySourceIfNoneMatch","x-cos-acl":"ACL","x-cos-grant-read":"GrantRead","x-cos-grant-write":"GrantWrite","x-cos-grant-full-control":"GrantFullControl","x-cos-grant-read-acp":"GrantReadAcp","x-cos-grant-write-acp":"GrantWriteAcp","x-cos-storage-class":"StorageClass","x-cos-traffic-limit":"TrafficLimit","x-cos-mime-limit":"MimeLimit","x-cos-server-side-encryption-customer-algorithm":"SSECustomerAlgorithm","x-cos-server-side-encryption-customer-key":"SSECustomerKey","x-cos-server-side-encryption-customer-key-MD5":"SSECustomerKeyMD5","x-cos-server-side-encryption":"ServerSideEncryption","x-cos-server-side-encryption-cos-kms-key-id":"SSEKMSKeyId","x-cos-server-side-encryption-context":"SSEContext","Pic-Operations":"PicOperations","x-cos-callback":"Callback","x-cos-callback-var":"CallbackVar","x-cos-return-body":"ReturnBody"};ue.each(i,(function(e,r){void 0!==t[e]&&(n[r]=t[e])})),t.Headers=L(n)}}return t},X=function(e,t){return function(n,r){var i,o=this;if("function"===typeof n&&(r=n,n={}),n=q(e,n),o.options.EnableReporter)if("sliceUploadFile"===n.calledBySdk||"sliceCopyFile"===n.calledBySdk)i=n.tracker&&n.tracker.generateSubTracker({apiName:e});else if(["uploadFile","uploadFiles"].includes(e))i=null;else{var a=0;n.Body&&(a="string"===typeof n.Body?n.Body.length:n.Body.size||n.Body.byteLength||0);var s=o.options.UseAccelerate||"string"===typeof o.options.Domain&&o.options.Domain.includes("accelerate.");i=new m({Beacon:o.options.BeaconReporter,clsReporter:o.options.ClsReporter,bucket:n.Bucket,region:n.Region,apiName:e,realApi:e,accelerate:s,fileKey:n.Key,fileSize:a,deepTracker:o.options.DeepTracker,customId:o.options.CustomId,delay:o.options.TrackerDelay})}n.tracker=i;var l=function(e){return e&&e.headers&&(e.headers["x-cos-request-id"]&&(e.RequestId=e.headers["x-cos-request-id"]),e.headers["x-ci-request-id"]&&(e.RequestId=e.headers["x-ci-request-id"]),e.headers["x-cos-version-id"]&&(e.VersionId=e.headers["x-cos-version-id"]),e.headers["x-cos-delete-marker"]&&(e.DeleteMarker=e.headers["x-cos-delete-marker"])),e},u=function(e,t){i&&i.report(e,t),r&&r(l(e),l(t))},c=function(){if("getService"!==e&&"abortUploadTask"!==e){var t=G.call(o,e,n);if(t)return"missing param "+t;if(n.Region){if(o.options.CompatibilityMode){if(!/^([a-z\d-.]+)$/.test(n.Region))return"Region format error."}else{if(n.Region.indexOf("cos.")>-1)return'param Region should not be start with "cos."';if(!/^([a-z\d-]+)$/.test(n.Region))return"Region format error."}o.options.CompatibilityMode||-1!==n.Region.indexOf("-")||"yfb"===n.Region||"default"===n.Region||"accelerate"===n.Region||console.warn("warning: param Region format error, find help here: https://cloud.tencent.com/document/product/436/6224")}if(n.Bucket){if(!/^([a-z\d-]+)-(\d+)$/.test(n.Bucket))if(n.AppId)n.Bucket=n.Bucket+"-"+n.AppId;else{if(!o.options.AppId)return'Bucket should format as "test-1250000000".';n.Bucket=n.Bucket+"-"+o.options.AppId}n.AppId&&(console.warn('warning: AppId has been deprecated, Please put it at the end of parameter Bucket(E.g Bucket:"test-1250000000" ).'),delete n.AppId)}!o.options.UseRawKey&&n.Key&&"/"===n.Key.substr(0,1)&&(n.Key=n.Key.substr(1))}},d=c(),h=["getAuth","getObjectUrl"].includes(e);if("function"===typeof Promise&&!h&&!r)return new Promise((function(e,i){if(r=function(t,n){t?i(t):e(n)},d)return u(ue.error(new Error(d)));t.call(o,n,u)}));if(d)return u(ue.error(new Error(d)));var f=t.call(o,n,u);return h?f:void 0}},K=function(e,t){var n,r,i=this,o=0,a=0,s=Date.now();function l(){if(r=0,t&&"function"===typeof t){n=Date.now();var i,l=Math.max(0,Math.round((a-o)/((n-s)/1e3)*100)/100)||0;i=0===a&&0===e?1:Math.floor(a/e*100)/100||0,s=n,o=a;try{t({loaded:a,total:e,speed:l,percent:i})}catch(u){}}}return function(t,n){if(t&&(a=t.loaded,e=t.total),n)clearTimeout(r),l();else{if(r)return;r=setTimeout(l,i.options.ProgressInterval)}}},Z=function(e,t,n){var r;"string"===typeof t.Body?t.Body=new Blob([t.Body],{type:"text/plain"}):t.Body instanceof ArrayBuffer&&(t.Body=new Blob([t.Body])),t.Body&&(t.Body instanceof Blob||"[object File]"===t.Body.toString()||"[object Blob]"===t.Body.toString())?(r=t.Body.size,t.ContentLength=r,n(null,r)):n(ue.error(new Error("params body format error, Only allow File|Blob|String.")))},J=function(e){return Date.now()+(e||0)},Q=function(e,t){var n=e;return e.message=e.message||null,"string"===typeof t?(e.error=t,e.message=t):"object"===r(t)&&null!==t&&(B(e,t),(t.code||t.name)&&(e.code=t.code||t.name),t.message&&(e.message=t.message),t.stack&&(e.stack=t.stack)),"function"===typeof Object.defineProperty&&(Object.defineProperty(e,"name",{writable:!0,enumerable:!1}),Object.defineProperty(e,"message",{enumerable:!0})),e.name=t&&t.name||e.name||e.code||"Error",e.code||(e.code=e.name),e.error||(e.error=R(n)),e},ee=function(){return"object"===("undefined"===typeof globalThis?"undefined":r(globalThis))&&("DedicatedWorkerGlobalScope"===globalThis.constructor.name||globalThis.FileReaderSync)},te=function(){return"object"!==("undefined"===typeof window?"undefined":r(window))&&"object"===("undefined"===typeof t?"undefined":r(t))&&!ee()},ne=function(e){return/^https?:\/\/([^/]+\.)?ci\.[^/]+/.test(e)},re=function(){if("object"!==("undefined"===typeof navigator?"undefined":r(navigator)))return!1;var e=navigator.userAgent,t=!!e.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);return t}(),ie=function(){return"object"===("undefined"===typeof navigator?"undefined":r(navigator))&&/\sQQ/i.test(navigator.userAgent)}(),oe=function(e,t){var n=p.encode(e);return t&&(n=n.replaceAll("+","-").replaceAll("/","_").replaceAll("=","")),n},ae=function(e){return e?p.decode(e):""},se=function(e){var t,n=e.split("/"),r=[],o=i(n);try{for(o.s();!(t=o.n()).done;){var a=t.value;".."===a?r.length&&r.pop():a.length&&"."!==a&&r.push(a)}}catch(s){o.e(s)}finally{o.f()}return"/"+r.join("/")},le=function(e){var t;if(e&&"string"===typeof e){var n=e.trim(),r=0===n.indexOf("<"),i=0===n.indexOf("{");if(r)t=ue.xml2json(e)||{};else if(i)try{var o=e.replace(/\n/g," "),a=JSON.parse(o);t="[object Object]"===Object.prototype.toString.call(a)?a:e}catch(s){t=e}else t=e}else t=e||{};return t},ue={noop:O,formatParams:q,apiWrapper:X,xml2json:g,json2xml:v,md5:s,clearKey:L,fileSlice:E,getBodyMd5:I,getFileMd5:P,b64:U,extend:B,isArray:Y,isInArray:F,makeArray:z,each:H,map:V,filter:W,clone:R,attr:N,uuid:$,camSafeUrlEncode:y,throttleOnProgress:K,getFileSize:Z,getSkewTime:J,error:Q,obj2str:_,getAuth:k,parseSelectPayload:C,getSourceParams:T,isBrowser:!0,isNode:te,isCIHost:ne,isIOS_QQ:re&&ie,encodeBase64:oe,decodeBase64:ae,simplifyPath:se,readAsBinaryString:A,parseResBody:le};e.exports=ue}).call(this,n(/*! ./../node_modules/process/browser.js */"./node_modules/process/browser.js"))}})}))},"40c3":function(e,t,n){var r=n("6b4c"),i=n("5168")("toStringTag"),o="Arguments"==r(function(){return arguments}()),a=function(e,t){try{return e[t]}catch(n){}};e.exports=function(e){var t,n,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=a(t=Object(e),i))?n:o?r(t):"Object"==(s=r(t))&&"function"==typeof t.callee?"Arguments":s}},"416c":function(e,t,n){n("28e4")("Map")},4178:function(e,t,n){var r,i,o,a=n("d864"),s=n("3024"),l=n("32fc"),u=n("1ec9"),c=n("e53d"),d=c.process,h=c.setImmediate,f=c.clearImmediate,p=c.MessageChannel,m=c.Dispatch,g=0,v={},y="onreadystatechange",b=function(){var e=+this;if(v.hasOwnProperty(e)){var t=v[e];delete v[e],t()}},_=function(e){b.call(e.data)};h&&f||(h=function(e){var t=[],n=1;while(arguments.length>n)t.push(arguments[n++]);return v[++g]=function(){s("function"==typeof e?e:Function(e),t)},r(g),g},f=function(e){delete v[e]},"process"==n("6b4c")(d)?r=function(e){d.nextTick(a(b,e,1))}:m&&m.now?r=function(e){m.now(a(b,e,1))}:p?(i=new p,o=i.port2,i.port1.onmessage=_,r=a(o.postMessage,o,1)):c.addEventListener&&"function"==typeof postMessage&&!c.importScripts?(r=function(e){c.postMessage(e+"","*")},c.addEventListener("message",_,!1)):r=y in u("script")?function(e){l.appendChild(u("script"))[y]=function(){l.removeChild(this),b.call(e)}}:function(e){setTimeout(a(b,e,1),0)}),e.exports={set:h,clear:f}},"41a0":function(e,t,n){"use strict";var r=n("2aeb"),i=n("4630"),o=n("7f20"),a={};n("32e9")(a,n("2b4c")("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(a,{next:i(1,n)}),o(e,t+" Iterator")}},"41b2":function(e,t,n){"use strict";t.__esModule=!0;var r=n("3f6b"),i=o(r);function o(e){return e&&e.__esModule?e:{default:e}}t.default=i.default||function(e){for(var t=1;t255?255:e}function s(e){return e=Math.round(e),e<0?0:e>360?360:e}function l(e){return e<0?0:e>1?1:e}function u(e){var t=e;return t.length&&"%"===t.charAt(t.length-1)?a(parseFloat(t)/100*255):a(parseInt(t,10))}function c(e){var t=e;return t.length&&"%"===t.charAt(t.length-1)?l(parseFloat(t)/100):l(parseFloat(t))}function d(e,t,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?e+(t-e)*n*6:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}function h(e,t,n){return e+(t-e)*n}function f(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function p(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var m=new r["a"](20),g=null;function v(e,t){g&&p(g,t),g=m.put(e,g||t.slice())}function y(e,t){if(e){t=t||[];var n=m.get(e);if(n)return p(t,n);e+="";var r=e.replace(/ /g,"").toLowerCase();if(r in o)return p(t,o[r]),v(e,t),t;var i=r.length;if("#"!==r.charAt(0)){var a=r.indexOf("("),s=r.indexOf(")");if(-1!==a&&s+1===i){var l=r.substr(0,a),d=r.substr(a+1,s-(a+1)).split(","),h=1;switch(l){case"rgba":if(4!==d.length)return 3===d.length?f(t,+d[0],+d[1],+d[2],1):f(t,0,0,0,1);h=c(d.pop());case"rgb":return d.length>=3?(f(t,u(d[0]),u(d[1]),u(d[2]),3===d.length?h:c(d[3])),v(e,t),t):void f(t,0,0,0,1);case"hsla":return 4!==d.length?void f(t,0,0,0,1):(d[3]=c(d[3]),b(d,t),v(e,t),t);case"hsl":return 3!==d.length?void f(t,0,0,0,1):(b(d,t),v(e,t),t);default:return}}f(t,0,0,0,1)}else{if(4===i||5===i){var g=parseInt(r.slice(1,4),16);return g>=0&&g<=4095?(f(t,(3840&g)>>4|(3840&g)>>8,240&g|(240&g)>>4,15&g|(15&g)<<4,5===i?parseInt(r.slice(4),16)/15:1),v(e,t),t):void f(t,0,0,0,1)}if(7===i||9===i){g=parseInt(r.slice(1,7),16);return g>=0&&g<=16777215?(f(t,(16711680&g)>>16,(65280&g)>>8,255&g,9===i?parseInt(r.slice(7),16)/255:1),v(e,t),t):void f(t,0,0,0,1)}}}}function b(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=c(e[1]),i=c(e[2]),o=i<=.5?i*(r+1):i+r-i*r,s=2*i-o;return t=t||[],f(t,a(255*d(s,o,n+1/3)),a(255*d(s,o,n)),a(255*d(s,o,n-1/3)),1),4===e.length&&(t[3]=e[3]),t}function _(e){if(e){var t,n,r=e[0]/255,i=e[1]/255,o=e[2]/255,a=Math.min(r,i,o),s=Math.max(r,i,o),l=s-a,u=(s+a)/2;if(0===l)t=0,n=0;else{n=u<.5?l/(s+a):l/(2-s-a);var c=((s-r)/6+l/2)/l,d=((s-i)/6+l/2)/l,h=((s-o)/6+l/2)/l;r===s?t=h-d:i===s?t=1/3+c-h:o===s&&(t=2/3+d-c),t<0&&(t+=1),t>1&&(t-=1)}var f=[360*t,n,u];return null!=e[3]&&f.push(e[3]),f}}function w(e,t){var n=y(e);if(n){for(var r=0;r<3;r++)n[r]=t<0?n[r]*(1-t)|0:(255-n[r])*t+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return C(n,4===n.length?"rgba":"rgb")}}function x(e,t,n){if(t&&t.length&&e>=0&&e<=1){n=n||[];var r=e*(t.length-1),i=Math.floor(r),o=Math.ceil(r),s=t[i],u=t[o],c=r-i;return n[0]=a(h(s[0],u[0],c)),n[1]=a(h(s[1],u[1],c)),n[2]=a(h(s[2],u[2],c)),n[3]=l(h(s[3],u[3],c)),n}}function k(e,t,n){if(t&&t.length&&e>=0&&e<=1){var r=e*(t.length-1),i=Math.floor(r),o=Math.ceil(r),s=y(t[i]),u=y(t[o]),c=r-i,d=C([a(h(s[0],u[0],c)),a(h(s[1],u[1],c)),a(h(s[2],u[2],c)),l(h(s[3],u[3],c))],"rgba");return n?{color:d,leftIndex:i,rightIndex:o,value:r}:d}}function M(e,t,n,r){var i=y(e);if(e)return i=_(i),null!=t&&(i[0]=s(t)),null!=n&&(i[1]=c(n)),null!=r&&(i[2]=c(r)),C(b(i),"rgba")}function S(e,t){var n=y(e);if(n&&null!=t)return n[3]=l(t),C(n,"rgba")}function C(e,t){if(e&&e.length){var n=e[0]+","+e[1]+","+e[2];return"rgba"!==t&&"hsva"!==t&&"hsla"!==t||(n+=","+e[3]),t+"("+n+")"}}function T(e,t){var n=y(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}var O=new r["a"](100);function L(e){if(Object(i["C"])(e)){var t=O.get(e);return t||(t=w(e,-.1),O.put(e,t)),t}if(Object(i["x"])(e)){var n=Object(i["m"])({},e);return n.colorStops=Object(i["H"])(e.colorStops,(function(e){return{offset:e.offset,color:w(e.color,-.1)}})),n}return e}},"41f6":function(e,t,n){},"423e":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration var t=e.defineLocale("ar-kw",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:12}});return t}))},4276:function(e,t,n){var r=n("5ca1"),i=n("2d95");r(r.S,"Error",{isError:function(e){return"Error"===i(e)}})},4362:function(e,t,n){t.nextTick=function(e){var t=Array.prototype.slice.call(arguments);t.shift(),setTimeout((function(){e.apply(null,t)}),0)},t.platform=t.arch=t.execPath=t.title="browser",t.pid=1,t.browser=!0,t.env={},t.argv=[],t.binding=function(e){throw new Error("No such module. (Possibly not yet loaded)")},function(){var e,r="/";t.cwd=function(){return r},t.chdir=function(t){e||(e=n("df7c")),r=e.resolve(t,r)}}(),t.exit=t.kill=t.umask=t.dlopen=t.uptime=t.memoryUsage=t.uvCounters=function(){},t.features={}},4379:function(e,t,n){var r=n("4a59");e.exports=function(e,t){var n=[];return r(e,!1,n.push,n,t),n}},"43fc":function(e,t,n){"use strict";var r=n("63b6"),i=n("656e"),o=n("4439");r(r.S,"Promise",{try:function(e){var t=i.f(this),n=o(e);return(n.e?t.reject:t.resolve)(n.v),t.promise}})},"440c":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration function t(e,t,n,r){var i={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return t?i[n][0]:i[n][1]}function n(e){var t=e.substr(0,e.indexOf(" "));return i(t)?"a "+e:"an "+e}function r(e){var t=e.substr(0,e.indexOf(" "));return i(t)?"viru "+e:"virun "+e}function i(e){if(e=parseInt(e,10),isNaN(e))return!1;if(e<0)return!0;if(e<10)return 4<=e&&e<=7;if(e<100){var t=e%10,n=e/10;return i(0===t?n:t)}if(e<1e4){while(e>=10)e/=10;return i(e)}return e/=1e3,i(e)}var o=e.defineLocale("lb",{months:"Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._Mé._Dë._Më._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mé_Dë_Më_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[Gëschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:n,past:r,s:"e puer Sekonnen",ss:"%d Sekonnen",m:t,mm:"%d Minutten",h:t,hh:"%d Stonnen",d:t,dd:"%d Deeg",M:t,MM:"%d Méint",y:t,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return o}))},4439:function(e,t){e.exports=function(e){try{return{e:!1,v:e()}}catch(t){return{e:!0,v:t}}}},"448a":function(e,t,n){var r=n("2236"),i=n("11b0"),o=n("6613"),a=n("0676");function s(e){return r(e)||i(e)||o(e)||a()}e.exports=s,e.exports.__esModule=!0,e.exports["default"]=e.exports},"44b8":function(e,t,n){var r=n("23c6"),i=n("4379");e.exports=function(e){return function(){if(r(this)!=e)throw TypeError(e+"#toJSON isn't generic");return i(this)}}},4504:function(e,t,n){"use strict";var r=n("5ca1"),i=n("4bf8"),o=n("d8e8"),a=n("86cc");n("9e1e")&&r(r.P+n("c5b4"),"Object",{__defineGetter__:function(e,t){a.f(i(this),e,{get:o(t),enumerable:!0,configurable:!0})}})},"454f":function(e,t,n){n("46a7");var r=n("584a").Object;e.exports=function(e,t,n){return r.defineProperty(e,t,n)}},"456d":function(e,t,n){var r=n("4bf8"),i=n("0d58");n("5eda")("keys",(function(){return function(e){return i(r(e))}}))},4588:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},"45f2":function(e,t,n){var r=n("d9f6").f,i=n("07e3"),o=n("5168")("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},4630:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},4656:function(e,t,n){},"467f":function(e,t,n){"use strict";var r=n("2d83");e.exports=function(e,t,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},"46a7":function(e,t,n){var r=n("63b6");r(r.S+r.F*!n("8e60"),"Object",{defineProperty:n("d9f6").f})},"46bb":function(e,t,n){"use strict";var r=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.grid=h;var i=r(n("278c")),o=r(n("9523")),a=n("18ad"),s=n("5557"),l=n("9d85"),u=n("becb");function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},n=t.grid;n=(0,u.deepMerge)((0,s.deepClone)(l.gridConfig,!0),n||{}),(0,a.doUpdate)({chart:e,series:[n],key:"grid",getGraphConfig:f})}function f(e,t){var n=e.animationCurve,r=e.animationFrame,i=e.rLevel,o=p(e,t),a=g(e);return t.chart.gridArea=d({},o),[{name:"rect",index:i,animationCurve:n,animationFrame:r,shape:o,style:a}]}function p(e,t){var n=(0,i["default"])(t.chart.render.area,2),r=n[0],o=n[1],a=m(e.left,r),s=m(e.right,r),l=m(e.top,o),u=m(e.bottom,o),c=r-a-s,d=o-l-u;return{x:a,y:l,w:c,h:d}}function m(e,t){return"number"===typeof e?e:"string"!==typeof e?0:t*parseInt(e)/100}function g(e){var t=e.style;return t}},4704:function(e,t,n){var r=n("5ca1");r(r.P+r.R,"Map",{toJSON:n("44b8")("Map")})},"470c":function(e,t,n){},4795:function(e,t,n){var r=n("7726"),i=n("5ca1"),o=n("a25f"),a=[].slice,s=/MSIE .\./.test(o),l=function(e){return function(t,n){var r=arguments.length>2,i=!!r&&a.call(arguments,2);return e(r?function(){("function"==typeof t?t:Function(t)).apply(this,i)}:t,n)}};i(i.G+i.B+i.F*s,{setTimeout:l(r.setTimeout),setInterval:l(r.setInterval)})},"47ee":function(e,t,n){var r=n("c3a1"),i=n("9aa9"),o=n("355d");e.exports=function(e){var t=r(e),n=i.f;if(n){var a,s=n(e),l=o.f,u=0;while(s.length>u)l.call(e,a=s[u++])&&t.push(a)}return t}},"481b":function(e,t){e.exports={}},"485c":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration var t={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-üncü",4:"-üncü",100:"-üncü",6:"-ncı",9:"-uncu",10:"-uncu",30:"-uncu",60:"-ıncı",90:"-ıncı"},n=e.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə".split("_"),weekdaysShort:"Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən".split("_"),weekdaysMin:"Bz_BE_ÇA_Çə_CA_Cü_Şə".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[gələn həftə] dddd [saat] LT",lastDay:"[dünən] LT",lastWeek:"[keçən həftə] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s əvvəl",s:"bir neçə saniyə",ss:"%d saniyə",m:"bir dəqiqə",mm:"%d dəqiqə",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gecə|səhər|gündüz|axşam/,isPM:function(e){return/^(gündüz|axşam)$/.test(e)},meridiem:function(e,t,n){return e<4?"gecə":e<12?"səhər":e<17?"gündüz":"axşam"},dayOfMonthOrdinalParse:/\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,ordinal:function(e){if(0===e)return e+"-ıncı";var n=e%10,r=e%100-n,i=e>=100?100:null;return e+(t[n]||t[r]||t[i])},week:{dow:1,doy:7}});return n}))},"48c0":function(e,t,n){"use strict";n("386b")("bold",(function(e){return function(){return e(this,"b","","")}}))},"48f8":function(e,t,n){"use strict";var r=n("5ca1"),i=n("7b23");r(r.P+r.F*!n("2f21")([].reduceRight,!0),"Array",{reduceRight:function(e){return i(this,e,arguments.length,arguments[1],!0)}})},4917:function(e,t,n){"use strict";var r=n("cb7c"),i=n("9def"),o=n("0390"),a=n("5f1b");n("214f")("match",1,(function(e,t,n,s){return[function(n){var r=e(this),i=void 0==n?void 0:n[t];return void 0!==i?i.call(n,r):new RegExp(n)[t](String(r))},function(e){var t=s(n,e,this);if(t.done)return t.value;var l=r(e),u=String(this);if(!l.global)return a(l,u);var c=l.unicode;l.lastIndex=0;var d,h=[],f=0;while(null!==(d=a(l,u))){var p=String(d[0]);h[f]=p,""===p&&(l.lastIndex=o(u,i(l.lastIndex),c)),f++}return 0===f?null:h}]}))},"49ab":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration var t=e.defineLocale("zh-hk",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1200?"上午":1200===r?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}});return t}))},"49bc":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.gridConfig=void 0;var r={left:"10%",right:"10%",top:60,bottom:60,style:{fill:"rgba(0, 0, 0, 0)"},rLevel:-30,animationCurve:"easeOutCubic",animationFrame:30};t.gridConfig=r},"4a59":function(e,t,n){var r=n("9b43"),i=n("1fa8"),o=n("33a4"),a=n("cb7c"),s=n("9def"),l=n("27ee"),u={},c={};t=e.exports=function(e,t,n,d,h){var f,p,m,g,v=h?function(){return e}:l(e),y=r(n,d,t?2:1),b=0;if("function"!=typeof v)throw TypeError(e+" is not iterable!");if(o(v)){for(f=s(e.length);f>b;b++)if(g=t?y(a(p=e[b])[0],p[1]):y(e[b]),g===u||g===c)return g}else for(m=v.call(e);!(p=m.next()).done;)if(g=i(m,y,p.value,t),g===u||g===c)return g};t.BREAK=u,t.RETURN=c},"4ba9":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration function t(e,t,n){var r=e+" ";switch(n){case"ss":return r+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi",r;case"m":return t?"jedna minuta":"jedne minute";case"mm":return r+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta",r;case"h":return t?"jedan sat":"jednog sata";case"hh":return r+=1===e?"sat":2===e||3===e||4===e?"sata":"sati",r;case"dd":return r+=1===e?"dan":"dana",r;case"MM":return r+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci",r;case"yy":return r+=1===e?"godina":2===e||3===e||4===e?"godine":"godina",r}}var n=e.defineLocale("hr",{months:{format:"siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM YYYY",LLL:"Do MMMM YYYY H:mm",LLLL:"dddd, Do MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:return"[prošlu] [nedjelju] [u] LT";case 3:return"[prošlu] [srijedu] [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return n}))},"4ba91":function(e,t,n){(function(t,r,i){e.exports=r(n("21bf"),n("38ba"))})(0,(function(e){return e.mode.OFB=function(){var t=e.lib.BlockCipherMode.extend(),n=t.Encryptor=t.extend({processBlock:function(e,t){var n=this._cipher,r=n.blockSize,i=this._iv,o=this._keystream;i&&(o=this._keystream=i.slice(0),this._iv=void 0),n.encryptBlock(o,0);for(var a=0;a1&&void 0!==arguments[1]?arguments[1]:{},n=t.series;n||(n=[]);var r=(0,h.initNeedSeries)(n,u.radarConfig,"radar");r=g(r,e),r=v(r,e),r=y(r,e),(0,l.doUpdate)({chart:e,series:r,key:"radar",getGraphConfig:b,getStartGraphConfig:_,beforeChange:k}),(0,l.doUpdate)({chart:e,series:r,key:"radarPoint",getGraphConfig:M,getStartGraphConfig:S}),(0,l.doUpdate)({chart:e,series:r,key:"radarLabel",getGraphConfig:O})}function g(e,t){var n=t.radarAxis;if(!n)return[];var r=n.indicator,i=n.axisLineAngles,o=n.radius,a=n.centerPos;return e.forEach((function(e){var t=e.data;e.dataRadius=[],e.radarPosition=r.map((function(n,r){var l=n.max,u=n.min,d=t[r];"number"!==typeof l&&(l=d),"number"!==typeof u&&(u=0),"number"!==typeof d&&(d=u);var h=(d-u)/(l-u)*o;return e.dataRadius[r]=h,c.getCircleRadianPoint.apply(void 0,(0,s["default"])(a).concat([h,i[r]]))}))})),e}function v(e,t){var n=t.radarAxis;if(!n)return[];var r=n.centerPos,i=n.axisLineAngles;return e.forEach((function(e){var t=e.dataRadius,n=e.label,o=n.labelGap;e.labelPosition=t.map((function(e,t){return c.getCircleRadianPoint.apply(void 0,(0,s["default"])(r).concat([e+o,i[t]]))}))})),e}function y(e,t){var n=t.radarAxis;if(!n)return[];var r=(0,a["default"])(n.centerPos,2),i=r[0],o=r[1];return e.forEach((function(e){var t=e.labelPosition,n=t.map((function(e){var t=(0,a["default"])(e,2),n=t[0],r=t[1],s=n>i?"left":"right",l=r>o?"top":"bottom";return{textAlign:s,textBaseline:l}}));e.labelAlign=n})),e}function b(e){var t=e.animationCurve,n=e.animationFrame,r=e.rLevel;return[{name:"polyline",index:r,animationCurve:t,animationFrame:n,shape:w(e),style:x(e)}]}function _(e,t){var n=t.chart.radarAxis.centerPos,r=b(e)[0],i=r.shape.points.length,o=new Array(i).fill(0).map((function(e){return(0,s["default"])(n)}));return r.shape.points=o,[r]}function w(e){var t=e.radarPosition;return{points:t,close:!0}}function x(e){var t=e.radarStyle,n=e.color,r=(0,d.getRgbaValue)(n);r[3]=.5;var i={stroke:n,fill:(0,d.getColorFromRgbValue)(r)};return(0,h.deepMerge)(i,t)}function k(e,t){var n=t.shape,r=e.shape.points,i=r.length,o=n.points.length;if(o>i){var a=r.slice(-1)[0],l=new Array(o-i).fill(0).map((function(e){return(0,s["default"])(a)}));r.push.apply(r,(0,s["default"])(l))}else o0?arguments[0]:void 0)}}),{add:function(e){return r.def(i(this,o),e=0===e?0:e,e)}},r)},5038:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration var t=e.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"siang"===t?e>=11?e:e+12:"sore"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"siang":e<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:0,doy:6}});return t}))},"504c":function(e,t,n){var r=n("9e1e"),i=n("0d58"),o=n("6821"),a=n("52a7").f;e.exports=function(e){return function(t){var n,s=o(t),l=i(s),u=l.length,c=0,d=[];while(u>c)n=l[c++],r&&!a.call(s,n)||d.push(e?[n,s[n]]:s[n]);return d}}},"50ed":function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},5120:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration var t=["Eanáir","Feabhra","Márta","Aibreán","Bealtaine","Meitheamh","Iúil","Lúnasa","Meán Fómhair","Deireadh Fómhair","Samhain","Nollaig"],n=["Ean","Feabh","Márt","Aib","Beal","Meith","Iúil","Lún","M.F.","D.F.","Samh","Noll"],r=["Dé Domhnaigh","Dé Luain","Dé Máirt","Dé Céadaoin","Déardaoin","Dé hAoine","Dé Sathairn"],i=["Domh","Luan","Máirt","Céad","Déar","Aoine","Sath"],o=["Do","Lu","Má","Cé","Dé","A","Sa"],a=e.defineLocale("ga",{months:t,monthsShort:n,monthsParseExact:!0,weekdays:r,weekdaysShort:i,weekdaysMin:o,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Amárach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inné ag] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s ó shin",s:"cúpla soicind",ss:"%d soicind",m:"nóiméad",mm:"%d nóiméad",h:"uair an chloig",hh:"%d uair an chloig",d:"lá",dd:"%d lá",M:"mí",MM:"%d míonna",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){var t=1===e?"d":e%10===2?"na":"mh";return e+t},week:{dow:1,doy:4}});return a}))},5147:function(e,t,n){var r=n("2b4c")("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,!"/./"[e](t)}catch(i){}}return!0}},5168:function(e,t,n){var r=n("dbdb")("wks"),i=n("62a0"),o=n("e53d").Symbol,a="function"==typeof o,s=e.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?o:i)("Symbol."+e))};s.store=r},"51b6":function(e,t,n){n("a3c3"),e.exports=n("584a").Object.assign},"520a":function(e,t,n){"use strict";var r=n("0bfb"),i=RegExp.prototype.exec,o=String.prototype.replace,a=i,s="lastIndex",l=function(){var e=/a/,t=/b*/g;return i.call(e,"a"),i.call(t,"a"),0!==e[s]||0!==t[s]}(),u=void 0!==/()??/.exec("")[1],c=l||u;c&&(a=function(e){var t,n,a,c,d=this;return u&&(n=new RegExp("^"+d.source+"$(?!\\s)",r.call(d))),l&&(t=d[s]),a=i.call(d,e),l&&a&&(d[s]=d.global?a.index+a[0].length:t),u&&a&&a.length>1&&o.call(a[0],n,(function(){for(c=1;c=11?e:e+12:"entsambama"===t||"ebusuku"===t?0===e?0:e+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}});return t}))},"536b":function(e,t,n){var r=n("5ca1"),i=Math.asinh;function o(e){return isFinite(e=+e)&&0!=e?e<0?-o(-e):Math.log(e+Math.sqrt(e*e+1)):e}r(r.S+r.F*!(i&&1/i(0)>0),"Math",{asinh:o})},"53e2":function(e,t,n){var r=n("07e3"),i=n("241e"),o=n("5559")("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},"549b":function(e,t,n){"use strict";var r=n("d864"),i=n("63b6"),o=n("241e"),a=n("b0dc"),s=n("3702"),l=n("b447"),u=n("20fd"),c=n("7cd6");i(i.S+i.F*!n("4ee1")((function(e){Array.from(e)})),"Array",{from:function(e){var t,n,i,d,h=o(e),f="function"==typeof this?this:Array,p=arguments.length,m=p>1?arguments[1]:void 0,g=void 0!==m,v=0,y=c(h);if(g&&(m=r(m,p>2?arguments[2]:void 0,2)),void 0==y||f==Array&&s(y))for(t=l(h.length),n=new f(t);t>v;v++)u(n,v,g?m(h[v],v):h[v]);else for(d=y.call(h),n=new f;!(i=d.next()).done;v++)u(n,v,g?a(d,m,[i.value,v],!0):i.value);return n.length=v,n}})},"54a8":function(e,t,n){"use strict";var r=n("5ca1"),i=n("79e5"),o=n("bef9"),a=1..toPrecision;r(r.P+r.F*(i((function(){return"1"!==a.call(1,void 0)}))||!i((function(){a.call({})}))),"Number",{toPrecision:function(e){var t=o(this,"Number#toPrecision: incorrect invocation!");return void 0===e?a.call(t):a.call(t,e)}})},"551c":function(e,t,n){"use strict";var r,i,o,a,s=n("2d00"),l=n("7726"),u=n("9b43"),c=n("23c6"),d=n("5ca1"),h=n("d3f4"),f=n("d8e8"),p=n("f605"),m=n("4a59"),g=n("ebd6"),v=n("1991").set,y=n("8079")(),b=n("a5b8"),_=n("9c80"),w=n("a25f"),x=n("bcaa"),k="Promise",M=l.TypeError,S=l.process,C=S&&S.versions,T=C&&C.v8||"",O=l[k],L="process"==c(S),A=function(){},D=i=b.f,E=!!function(){try{var e=O.resolve(1),t=(e.constructor={})[n("2b4c")("species")]=function(e){e(A,A)};return(L||"function"==typeof PromiseRejectionEvent)&&e.then(A)instanceof t&&0!==T.indexOf("6.6")&&-1===w.indexOf("Chrome/66")}catch(r){}}(),I=function(e){var t;return!(!h(e)||"function"!=typeof(t=e.then))&&t},j=function(e,t){if(!e._n){e._n=!0;var n=e._c;y((function(){var r=e._v,i=1==e._s,o=0,a=function(t){var n,o,a,s=i?t.ok:t.fail,l=t.resolve,u=t.reject,c=t.domain;try{s?(i||(2==e._h&&N(e),e._h=1),!0===s?n=r:(c&&c.enter(),n=s(r),c&&(c.exit(),a=!0)),n===t.promise?u(M("Promise-chain cycle")):(o=I(n))?o.call(n,l,u):l(n)):u(r)}catch(d){c&&!a&&c.exit(),u(d)}};while(n.length>o)a(n[o++]);e._c=[],e._n=!1,t&&!e._h&&P(e)}))}},P=function(e){v.call(l,(function(){var t,n,r,i=e._v,o=R(e);if(o&&(t=_((function(){L?S.emit("unhandledRejection",i,e):(n=l.onunhandledrejection)?n({promise:e,reason:i}):(r=l.console)&&r.error&&r.error("Unhandled promise rejection",i)})),e._h=L||R(e)?2:1),e._a=void 0,o&&t.e)throw t.v}))},R=function(e){return 1!==e._h&&0===(e._a||e._c).length},N=function(e){v.call(l,(function(){var t;L?S.emit("rejectionHandled",e):(t=l.onrejectionhandled)&&t({promise:e,reason:e._v})}))},B=function(e){var t=this;t._d||(t._d=!0,t=t._w||t,t._v=e,t._s=2,t._a||(t._a=t._c.slice()),j(t,!0))},Y=function(e){var t,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw M("Promise can't be resolved itself");(t=I(e))?y((function(){var r={_w:n,_d:!1};try{t.call(e,u(Y,r,1),u(B,r,1))}catch(i){B.call(r,i)}})):(n._v=e,n._s=1,j(n,!1))}catch(r){B.call({_w:n,_d:!1},r)}}};E||(O=function(e){p(this,O,k,"_h"),f(e),r.call(this);try{e(u(Y,this,1),u(B,this,1))}catch(t){B.call(this,t)}},r=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},r.prototype=n("dcbc")(O.prototype,{then:function(e,t){var n=D(g(this,O));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=L?S.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&j(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),o=function(){var e=new r;this.promise=e,this.resolve=u(Y,e,1),this.reject=u(B,e,1)},b.f=D=function(e){return e===O||e===a?new o(e):i(e)}),d(d.G+d.W+d.F*!E,{Promise:O}),n("7f20")(O,k),n("7a56")(k),a=n("8378")[k],d(d.S+d.F*!E,k,{reject:function(e){var t=D(this),n=t.reject;return n(e),t.promise}}),d(d.S+d.F*(s||!E),k,{resolve:function(e){return x(s&&this===a?O:this,e)}}),d(d.S+d.F*!(E&&n("5cc5")((function(e){O.all(e)["catch"](A)}))),k,{all:function(e){var t=this,n=D(t),r=n.resolve,i=n.reject,o=_((function(){var n=[],o=0,a=1;m(e,!1,(function(e){var s=o++,l=!1;n.push(void 0),a++,t.resolve(e).then((function(e){l||(l=!0,n[s]=e,--a||r(n))}),i)})),--a||r(n)}));return o.e&&i(o.v),n.promise},race:function(e){var t=this,n=D(t),r=n.reject,i=_((function(){m(e,!1,(function(e){t.resolve(e).then(n.resolve,r)}))}));return i.e&&r(i.v),n.promise}})},5537:function(e,t,n){var r=n("8378"),i=n("7726"),o="__core-js_shared__",a=i[o]||(i[o]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n("2d00")?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},5557:function(e,t,n){"use strict";var r=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.deepClone=p,t.eliminateBlur=m,t.checkPointIsInCircle=g,t.getTwoPointDistance=v,t.checkPointIsInPolygon=y,t.checkPointIsInSector=b,t.checkPointIsNearPolyline=w,t.checkPointIsInRect=x,t.getRotatePointPos=k,t.getScalePointPos=M,t.getTranslatePointPos=S,t.getDistanceBetweenPointAndLine=C,t.getCircleRadianPoint=T,t.getRegularPolygonPoints=O,t["default"]=void 0;var i=r(n("448a")),o=r(n("278c")),a=r(n("7037")),s=Math.abs,l=Math.sqrt,u=Math.sin,c=Math.cos,d=Math.max,h=Math.min,f=Math.PI;function p(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e)return e;var n=JSON.parse,r=JSON.stringify;if(!t)return n(r(e));var i=e instanceof Array?[]:{};if(e&&"object"===(0,a["default"])(e))for(var o in e)e.hasOwnProperty(o)&&(e[o]&&"object"===(0,a["default"])(e[o])?i[o]=p(e[o],!0):i[o]=e[o]);return i}function m(e){return e.map((function(e){var t=(0,o["default"])(e,2),n=t[0],r=t[1];return[parseInt(n)+.5,parseInt(r)+.5]}))}function g(e,t,n,r){return v(e,[t,n])<=r}function v(e,t){var n=(0,o["default"])(e,2),r=n[0],i=n[1],a=(0,o["default"])(t,2),u=a[0],c=a[1],d=s(r-u),h=s(i-c);return l(d*d+h*h)}function y(e,t){for(var n=0,r=(0,o["default"])(e,2),i=r[0],a=r[1],s=t.length,l=1,u=t[0];l<=s;l++){var c=t[l%s];if(i>h(u[0],c[0])&&i<=d(u[0],c[0])&&a<=d(u[1],c[1])&&u[0]!==c[0]){var f=(i-u[0])*(c[1]-u[1])/(c[0]-u[0])+u[1];(u[1]===c[1]||a<=f)&&n++}u=c}return n%2===1}function b(e,t,n,r,i,a,s){if(!e)return!1;if(v(e,[t,n])>r)return!1;if(!s){var l=p([a,i]),u=(0,o["default"])(l,2);i=u[0],a=u[1]}var c=i>a;if(c){var d=[a,i];i=d[0],a=d[1]}var h=a-i;if(h>=2*f)return!0;var m=(0,o["default"])(e,2),g=m[0],y=m[1],b=T(t,n,r,i),w=(0,o["default"])(b,2),x=w[0],k=w[1],M=T(t,n,r,a),S=(0,o["default"])(M,2),C=S[0],O=S[1],L=[g-t,y-n],A=[x-t,k-n],D=[C-t,O-n],E=h>f;if(E){var I=p([D,A]),j=(0,o["default"])(I,2);A=j[0],D=j[1]}var P=_(A,L)&&!_(D,L);return E&&(P=!P),c&&(P=!P),P}function _(e,t){var n=(0,o["default"])(e,2),r=n[0],i=n[1],a=(0,o["default"])(t,2),s=a[0],l=a[1];return-i*s+r*l>0}function w(e,t,n){var r=n/2,a=t.map((function(e){var t=(0,o["default"])(e,2),n=t[0],i=t[1];return[n,i-r]})),s=t.map((function(e){var t=(0,o["default"])(e,2),n=t[0],i=t[1];return[n,i+r]})),l=[].concat((0,i["default"])(a),(0,i["default"])(s.reverse()));return y(e,l)}function x(e,t,n,r,i){var a=(0,o["default"])(e,2),s=a[0],l=a[1];return!(st+r)&&!(l>n+i)))}function k(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[0,0];if(!t)return!1;if(e%360===0)return t;var r=(0,o["default"])(t,2),i=r[0],a=r[1],s=(0,o["default"])(n,2),l=s[0],d=s[1];return e*=f/180,[(i-l)*c(e)-(a-d)*u(e)+l,(i-l)*u(e)+(a-d)*c(e)+d]}function M(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[1,1],t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[0,0];if(!t)return!1;if(1===e)return t;var r=(0,o["default"])(t,2),i=r[0],a=r[1],s=(0,o["default"])(n,2),l=s[0],u=s[1],c=(0,o["default"])(e,2),d=c[0],h=c[1],f=i-l,p=a-u;return[f*d+l,p*h+u]}function S(e,t){if(!e||!t)return!1;var n=(0,o["default"])(t,2),r=n[0],i=n[1],a=(0,o["default"])(e,2),s=a[0],l=a[1];return[r+s,i+l]}function C(e,t,n){if(!e||!t||!n)return!1;var r=(0,o["default"])(e,2),i=r[0],a=r[1],u=(0,o["default"])(t,2),c=u[0],d=u[1],h=(0,o["default"])(n,2),f=h[0],p=h[1],m=p-d,g=c-f,v=d*(f-c)-c*(p-d),y=s(m*i+g*a+v),b=l(m*m+g*g);return y/b}function T(e,t,n,r){return[e+c(r)*n,t+u(r)*n]}function O(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-.5*f,o=2*f/r,a=new Array(r).fill("").map((function(e,t){return t*o+i}));return a.map((function(r){return T(e,t,n,r)}))}var L={deepClone:p,eliminateBlur:m,checkPointIsInCircle:g,checkPointIsInPolygon:y,checkPointIsInSector:b,checkPointIsNearPolyline:w,getTwoPointDistance:v,getRotatePointPos:k,getScalePointPos:M,getTranslatePointPos:S,getCircleRadianPoint:T,getRegularPolygonPoints:O,getDistanceBetweenPointAndLine:C};t["default"]=L},5559:function(e,t,n){var r=n("dbdb")("keys"),i=n("62a0");e.exports=function(e){return r[e]||(r[e]=i(e))}},"55c9":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],i=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,o=e.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:6}});return o}))},"55dd":function(e,t,n){"use strict";var r=n("5ca1"),i=n("d8e8"),o=n("4bf8"),a=n("79e5"),s=[].sort,l=[1,2,3];r(r.P+r.F*(a((function(){l.sort(void 0)}))||!a((function(){l.sort(null)}))||!n("2f21")(s)),"Array",{sort:function(e){return void 0===e?s.call(o(this)):s.call(o(this),i(e))}})},5695:function(e,t,n){var r=n("5ca1"),i=n("77f1"),o=String.fromCharCode,a=String.fromCodePoint;r(r.S+r.F*(!!a&&1!=a.length),"String",{fromCodePoint:function(e){var t,n=[],r=arguments.length,a=0;while(r>a){if(t=+arguments[a++],i(t,1114111)!==t)throw RangeError(t+" is not a valid code point");n.push(t<65536?o(t):o(55296+((t-=65536)>>10),t%1024+56320))}return n.join("")}})},"576c":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration var t=e.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"segundu balun",ss:"segundu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,n=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n},week:{dow:1,doy:4}});return t}))},"57e7":function(e,t,n){"use strict";var r=n("5ca1"),i=n("c366")(!1),o=[].indexOf,a=!!o&&1/[1].indexOf(1,-0)<0;r(r.P+r.F*(a||!n("2f21")(o)),"Array",{indexOf:function(e){return a?o.apply(this,arguments)||0:i(this,e,arguments[1])}})},"57f0":function(e,t,n){var r=n("d3f4");n("5eda")("isSealed",(function(e){return function(t){return!r(t)||!!e&&e(t)}}))},"584a":function(e,t){var n=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},"58b2":function(e,t,n){var r=n("5ca1");r(r.S+r.F*!n("9e1e"),"Object",{defineProperties:n("1495")})},"597f":function(e,t){e.exports=function(e,t,n,r){var i,o=0;function a(){var a=this,s=Number(new Date)-o,l=arguments;function u(){o=Number(new Date),n.apply(a,l)}function c(){i=void 0}r&&!i&&u(),i&&clearTimeout(i),void 0===r&&s>e?u():!0!==t&&(i=setTimeout(r?c:u,void 0===r?e-s:e))}return"boolean"!==typeof t&&(r=n,n=t,t=void 0),a}},5980:function(e,t,n){(function(t,r){e.exports=r(n("21bf"))})(0,(function(e){(function(){var t=e,n=t.lib,r=n.Base,i=t.enc,o=i.Utf8,a=t.algo;a.HMAC=r.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=o.parse(t));var n=e.blockSize,r=4*n;t.sigBytes>r&&(t=e.finalize(t)),t.clamp();for(var i=this._oKey=t.clone(),a=this._iKey=t.clone(),s=i.words,l=a.words,u=0;ue.length)&&(t=e.length);for(var n=0,r=Array(t);n=100?100:null;return e+(t[r]||t[i]||t[o])}},week:{dow:1,doy:7}});return n}))},"5b14":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration var t="vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" ");function n(e,t,n,r){var i=e;switch(n){case"s":return r||t?"néhány másodperc":"néhány másodperce";case"ss":return i+(r||t)?" másodperc":" másodperce";case"m":return"egy"+(r||t?" perc":" perce");case"mm":return i+(r||t?" perc":" perce");case"h":return"egy"+(r||t?" óra":" órája");case"hh":return i+(r||t?" óra":" órája");case"d":return"egy"+(r||t?" nap":" napja");case"dd":return i+(r||t?" nap":" napja");case"M":return"egy"+(r||t?" hónap":" hónapja");case"MM":return i+(r||t?" hónap":" hónapja");case"y":return"egy"+(r||t?" év":" éve");case"yy":return i+(r||t?" év":" éve")}return""}function r(e){return(e?"":"[múlt] ")+"["+t[this.day()]+"] LT[-kor]"}var i=e.defineLocale("hu",{months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan._feb._márc._ápr._máj._jún._júl._aug._szept._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(e){return"u"===e.charAt(1).toLowerCase()},meridiem:function(e,t,n){return e<12?!0===n?"de":"DE":!0===n?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return r.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return r.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return i}))},"5b4e":function(e,t,n){var r=n("36c3"),i=n("b447"),o=n("0fc9");e.exports=function(e){return function(t,n,a){var s,l=r(t),u=i(l.length),c=o(a,u);if(e&&n!=n){while(u>c)if(s=l[c++],s!=s)return!0}else for(;u>c;c++)if((e||c in l)&&l[c]===n)return e||c||0;return!e&&-1}}},"5bba":function(e,t,n){n("9d98");var r=n("584a").Object;e.exports=function(e,t){return r.defineProperties(e,t)}},"5c3a":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration var t=e.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"下午"===t||"晚上"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:function(e){return e.week()!==this.week()?"[下]dddLT":"[本]dddLT"},lastDay:"[昨天]LT",lastWeek:function(e){return this.week()!==e.week()?"[上]dddLT":"[本]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"周";default:return e}},relativeTime:{future:"%s后",past:"%s前",s:"几秒",ss:"%d 秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",w:"1 周",ww:"%d 周",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}});return t}))},"5c95":function(e,t,n){var r=n("35e8");e.exports=function(e,t,n){for(var i in t)n&&e[i]?e[i]=t[i]:r(e,i,t[i]);return e}},"5ca1":function(e,t,n){var r=n("7726"),i=n("8378"),o=n("32e9"),a=n("2aba"),s=n("9b43"),l="prototype",u=function(e,t,n){var c,d,h,f,p=e&u.F,m=e&u.G,g=e&u.S,v=e&u.P,y=e&u.B,b=m?r:g?r[t]||(r[t]={}):(r[t]||{})[l],_=m?i:i[t]||(i[t]={}),w=_[l]||(_[l]={});for(c in m&&(n=t),n)d=!p&&b&&void 0!==b[c],h=(d?b:n)[c],f=y&&d?s(h,r):v&&"function"==typeof h?s(Function.call,h):h,b&&a(b,c,h,e&u.U),_[c]!=h&&o(_,c,f),v&&w[c]!=h&&(w[c]=h)};r.core=i,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},"5cbb":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration var t=e.defineLocale("te",{months:"జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్".split("_"),monthsShort:"జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జులై_ఆగ._సెప్._అక్టో._నవ._డిసె.".split("_"),monthsParseExact:!0,weekdays:"ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం".split("_"),weekdaysShort:"ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని".split("_"),weekdaysMin:"ఆ_సో_మం_బు_గు_శు_శ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[నేడు] LT",nextDay:"[రేపు] LT",nextWeek:"dddd, LT",lastDay:"[నిన్న] LT",lastWeek:"[గత] dddd, LT",sameElse:"L"},relativeTime:{future:"%s లో",past:"%s క్రితం",s:"కొన్ని క్షణాలు",ss:"%d సెకన్లు",m:"ఒక నిమిషం",mm:"%d నిమిషాలు",h:"ఒక గంట",hh:"%d గంటలు",d:"ఒక రోజు",dd:"%d రోజులు",M:"ఒక నెల",MM:"%d నెలలు",y:"ఒక సంవత్సరం",yy:"%d సంవత్సరాలు"},dayOfMonthOrdinalParse:/\d{1,2}వ/,ordinal:"%dవ",meridiemParse:/రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,meridiemHour:function(e,t){return 12===e&&(e=0),"రాత్రి"===t?e<4?e:e+12:"ఉదయం"===t?e:"మధ్యాహ్నం"===t?e>=10?e:e+12:"సాయంత్రం"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"రాత్రి":e<10?"ఉదయం":e<17?"మధ్యాహ్నం":e<20?"సాయంత్రం":"రాత్రి"},week:{dow:0,doy:6}});return t}))},"5cc5":function(e,t,n){var r=n("2b4c")("iterator"),i=!1;try{var o=[7][r]();o["return"]=function(){i=!0},Array.from(o,(function(){throw 2}))}catch(a){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var o=[7],s=o[r]();s.next=function(){return{done:n=!0}},o[r]=function(){return s},e(o)}catch(a){}return n}},"5ce3":function(e,t,n){"use strict";var r=n("5ca1"),i=n("abd7")(/[&<>"']/g,{"&":"&","<":"<",">":">",'"':""","'":"'"});r(r.P+r.F,"String",{escapeHTML:function(){return i(this)}})},"5d40":function(e,t,n){n("28e4")("WeakMap")},"5d90":function(e,t,n){n("28e4")("WeakSet")},"5dbc":function(e,t,n){var r=n("d3f4"),i=n("8b97").set;e.exports=function(e,t,n){var o,a=t.constructor;return a!==n&&"function"==typeof a&&(o=a.prototype)!==n.prototype&&r(o)&&i&&i(e,o),e}},"5df2":function(e,t,n){var r=n("5ca1"),i=n("d752");r(r.S+r.F*(Number.parseFloat!=i),"Number",{parseFloat:i})},"5df3":function(e,t,n){"use strict";var r=n("02f4")(!0);n("01f9")(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})}))},"5e07":function(e,t,n){},"5eda":function(e,t,n){var r=n("5ca1"),i=n("8378"),o=n("79e5");e.exports=function(e,t){var n=(i.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*o((function(){n(1)})),"Object",a)}},"5f1b":function(e,t,n){"use strict";var r=n("23c6"),i=RegExp.prototype.exec;e.exports=function(e,t){var n=e.exec;if("function"===typeof n){var o=n.call(e,t);if("object"!==typeof o)throw new TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==r(e))throw new TypeError("RegExp#exec called on incompatible receiver");return i.call(e,t)}},"5fbd":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration var t=e.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),weekdaysShort:"sön_mån_tis_ons_tor_fre_lör".split("_"),weekdaysMin:"sö_må_ti_on_to_fr_lö".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Igår] LT",nextWeek:"[På] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"för %s sedan",s:"några sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en månad",MM:"%d månader",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}(\:e|\:a)/,ordinal:function(e){var t=e%10,n=1===~~(e%100/10)?":e":1===t||2===t?":a":":e";return e+n},week:{dow:1,doy:4}});return t}))},6095:function(e,t,n){"use strict";var r=n("5ca1"),i=n("0a49")(4);r(r.P+r.F*!n("2f21")([].every,!0),"Array",{every:function(e){return i(this,e,arguments[1])}})},"60f1":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.legendConfig=void 0;var r={show:!0,orient:"horizontal",left:"auto",right:"auto",top:"auto",bottom:"auto",itemGap:10,iconWidth:25,iconHeight:10,selectAble:!0,data:[],textStyle:{fontFamily:"Arial",fontSize:13,fill:"#000"},iconStyle:{},textUnselectedStyle:{fontFamily:"Arial",fontSize:13,fill:"#999"},iconUnselectedStyle:{fill:"#999"},rLevel:20,animationCurve:"easeOutCubic",animationFrame:50};t.legendConfig=r},"60f7":function(e,t,n){"use strict";var r=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.legend=d;var i=r(n("9523")),o=r(n("278c")),a=r(n("7037")),s=n("18ad"),l=n("5557"),u=n("9d85"),c=n("becb");function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.legend;n?(n=(0,c.deepMerge)((0,l.deepClone)(u.legendConfig,!0),n),n=h(n),n=f(n,t,e),n=p(n,e),n=v(n,e),n=[n]):n=[],(0,s.doUpdate)({chart:e,series:n,key:"legendIcon",getGraphConfig:O}),(0,s.doUpdate)({chart:e,series:n,key:"legendText",getGraphConfig:D})}function h(e){var t=e.data;return e.data=t.map((function(e){var t=(0,a["default"])(e);return"string"===t?{name:e}:"object"===t?e:{name:""}})),e}function f(e,t,n){var r=t.series,i=n.legendStatus,o=e.data.filter((function(e){var t=e.name,n=r.find((function(e){var n=e.name;return t===n}));return!!n&&(e.color||(e.color=n.color),e.icon||(e.icon=n.type),e)}));return i&&i.length===e.data.length||(i=new Array(e.data.length).fill(!0)),o.forEach((function(e,t){return e.status=i[t]})),e.data=o,n.legendStatus=i,e}function p(e,t){var n=t.render.ctx,r=e.data,i=e.textStyle,o=e.textUnselectedStyle;return r.forEach((function(e){var t=e.status,r=e.name;e.textWidth=m(n,r,t?i:o)})),e}function m(e,t,n){return e.font=g(n),e.measureText(t).width}function g(e){var t=e.fontFamily,n=e.fontSize;return"".concat(n,"px ").concat(t)}function v(e,t){var n=e.orient;return"vertical"===n?M(e,t):y(e,t),e}function y(e,t){var n=e.iconHeight,r=e.itemGap,i=b(e,t),o=i.map((function(n){return w(n,e,t)})),a=x(e,t),s={textAlign:"left",textBaseline:"middle"};i.forEach((function(e,t){return e.forEach((function(e){var i=e.iconPosition,l=e.textPosition,u=o[t],c=a+t*(r+n);e.iconPosition=k(i,[u,c]),e.textPosition=k(l,[u,c]),e.align=s}))}))}function b(e,t){var n=e.data,r=e.iconWidth,i=t.render.area[0],o=0,a=[[]];return n.forEach((function(t,n){var s=_(o,n,e),l=s+r+5+t.textWidth;l>=i&&(o=n,s=_(o,n,e),a.push([])),t.iconPosition=[s,0],t.textPosition=[s+r+5,0],a.slice(-1)[0].push(t)})),a}function _(e,t,n){var r=n.data,i=n.iconWidth,o=n.itemGap,a=r.slice(e,t);return(0,c.mulAdd)(a.map((function(e){var t=e.textWidth;return t})))+(t-e)*(o+5+i)}function w(e,t,n){var r=t.left,i=t.right,o=t.iconWidth,a=t.itemGap,s=n.render.area[0],l=e.length,u=(0,c.mulAdd)(e.map((function(e){var t=e.textWidth;return t})))+l*(5+o)+(l-1)*a,d=[r,i].findIndex((function(e){return"auto"!==e}));return-1===d?(s-u)/2:0===d?"number"===typeof r?r:parseInt(r)/100*s:("number"!==typeof i&&(i=parseInt(i)/100*s),s-(u+i))}function x(e,t){var n=e.top,r=e.bottom,i=e.iconHeight,o=t.render.area[1],a=[n,r].findIndex((function(e){return"auto"!==e})),s=i/2;if(-1===a){var l=t.gridArea,u=l.y,c=l.h;return u+c+45-s}return 0===a?"number"===typeof n?n-s:parseInt(n)/100*o-s:("number"!==typeof r&&(r=parseInt(r)/100*o),o-r-s)}function k(e,t){var n=(0,o["default"])(e,2),r=n[0],i=n[1],a=(0,o["default"])(t,2),s=a[0],l=a[1];return[r+s,i+l]}function M(e,t){var n=S(e,t),r=(0,o["default"])(n,2),i=r[0],a=r[1],s=C(e,t);T(e,i);var l={textAlign:"left",textBaseline:"middle"};e.data.forEach((function(e){var t=e.textPosition,n=e.iconPosition;e.textPosition=k(t,[a,s]),e.iconPosition=k(n,[a,s]),e.align=l}))}function S(e,t){var n=e.left,r=e.right,i=t.render.area[0],o=[n,r].findIndex((function(e){return"auto"!==e}));if(-1===o)return[!0,i-10];var a=[n,r][o];return"number"!==typeof a&&(a=parseInt(a)/100*i),[Boolean(o),a]}function C(e,t){var n=e.iconHeight,r=e.itemGap,i=e.data,o=e.top,a=e.bottom,s=t.render.area[1],l=i.length,u=l*n+(l-1)*r,c=[o,a].findIndex((function(e){return"auto"!==e}));if(-1===c)return(s-u)/2;var d=[o,a][c];return"number"!==typeof d&&(d=parseInt(d)/100*s),1===c&&(d=s-d-u),d}function T(e,t){var n=e.data,r=e.iconWidth,i=e.iconHeight,o=e.itemGap,a=i/2;n.forEach((function(e,n){var s=e.textWidth,l=(i+o)*n+a,u=t?0-r:0,c=t?u-5-s:r+5;e.iconPosition=[u,l],e.textPosition=[c,l]}))}function O(e,t){var n=e.data,r=e.selectAble,o=e.animationCurve,a=e.animationFrame,s=e.rLevel;return n.map((function(n,l){return(0,i["default"])({name:"line"===n.icon?"lineIcon":"rect",index:s,visible:e.show,hover:r,click:r,animationCurve:o,animationFrame:a,shape:L(e,l),style:A(e,l)},"click",P(e,l,t))}))}function L(e,t){var n=e.data,r=e.iconWidth,i=e.iconHeight,a=(0,o["default"])(n[t].iconPosition,2),s=a[0],l=a[1],u=i/2;return{x:s,y:l-u,w:r,h:i}}function A(e,t){var n=e.data,r=e.iconStyle,i=e.iconUnselectedStyle,o=n[t],a=o.status,s=o.color,l=a?r:i;return(0,c.deepMerge)({fill:s},l)}function D(e,t){var n=e.data,r=e.selectAble,i=e.animationCurve,o=e.animationFrame,a=e.rLevel;return n.map((function(n,s){return{name:"text",index:a,visible:e.show,hover:r,animationCurve:i,animationFrame:o,hoverRect:j(e,s),shape:E(e,s),style:I(e,s),click:P(e,s,t)}}))}function E(e,t){var n=e.data[t],r=n.textPosition,i=n.name;return{content:i,position:r}}function I(e,t){var n=e.textStyle,r=e.textUnselectedStyle,i=e.data[t],o=i.status,a=i.align,s=o?n:r;return(0,c.deepMerge)((0,l.deepClone)(s,!0),a)}function j(e,t){var n=e.textStyle,r=e.textUnselectedStyle,i=e.data[t],a=i.status,s=(0,o["default"])(i.textPosition,2),l=s[0],u=s[1],c=i.textWidth,d=a?n:r,h=d.fontSize;return[l,u-h/2,c,h]}function P(e,t,n){var r=e.data[t].name;return function(){var e=n.chart,i=e.legendStatus,o=e.option,a=!i[t],s=o.series.find((function(e){var t=e.name;return t===r}));s.show=a,i[t]=a,n.chart.setOption(o)}}},6117:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration var t=e.defineLocale("ug-cn",{months:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),monthsShort:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),weekdays:"يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە".split("_"),weekdaysShort:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),weekdaysMin:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-يىلىM-ئاينىڭD-كۈنى",LLL:"YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm",LLLL:"dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm"},meridiemParse:/يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/,meridiemHour:function(e,t){return 12===e&&(e=0),"يېرىم كېچە"===t||"سەھەر"===t||"چۈشتىن بۇرۇن"===t?e:"چۈشتىن كېيىن"===t||"كەچ"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var r=100*e+t;return r<600?"يېرىم كېچە":r<900?"سەھەر":r<1130?"چۈشتىن بۇرۇن":r<1230?"چۈش":r<1800?"چۈشتىن كېيىن":"كەچ"},calendar:{sameDay:"[بۈگۈن سائەت] LT",nextDay:"[ئەتە سائەت] LT",nextWeek:"[كېلەركى] dddd [سائەت] LT",lastDay:"[تۆنۈگۈن] LT",lastWeek:"[ئالدىنقى] dddd [سائەت] LT",sameElse:"L"},relativeTime:{future:"%s كېيىن",past:"%s بۇرۇن",s:"نەچچە سېكونت",ss:"%d سېكونت",m:"بىر مىنۇت",mm:"%d مىنۇت",h:"بىر سائەت",hh:"%d سائەت",d:"بىر كۈن",dd:"%d كۈن",M:"بىر ئاي",MM:"%d ئاي",y:"بىر يىل",yy:"%d يىل"},dayOfMonthOrdinalParse:/\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"-كۈنى";case"w":case"W":return e+"-ھەپتە";default:return e}},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:7}});return t}))},"613b":function(e,t,n){var r=n("5537")("keys"),i=n("ca5a");e.exports=function(e){return r[e]||(r[e]=i(e))}},"626a":function(e,t,n){var r=n("2d95");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},"62a0":function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},"62fd":function(e,t,n){},"63b6":function(e,t,n){var r=n("e53d"),i=n("584a"),o=n("d864"),a=n("35e8"),s=n("07e3"),l="prototype",u=function(e,t,n){var c,d,h,f=e&u.F,p=e&u.G,m=e&u.S,g=e&u.P,v=e&u.B,y=e&u.W,b=p?i:i[t]||(i[t]={}),_=b[l],w=p?r:m?r[t]:(r[t]||{})[l];for(c in p&&(n=t),n)d=!f&&w&&void 0!==w[c],d&&s(b,c)||(h=d?w[c]:n[c],b[c]=p&&"function"!=typeof w[c]?n[c]:v&&d?o(h,r):y&&w[c]==h?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t[l]=e[l],t}(h):g&&"function"==typeof h?o(Function.call,h):h,g&&((b.virtual||(b.virtual={}))[c]=h,e&u.R&&_&&!_[c]&&a(_,c,h)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},"63d9":function(e,t,n){n("ec30")("Float32",4,(function(e){return function(t,n,r){return e(this,t,n,r)}}))},6403:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration var t=e.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}});return t}))},"643e":function(e,t,n){"use strict";var r=n("dcbc"),i=n("67ab").getWeak,o=n("cb7c"),a=n("d3f4"),s=n("f605"),l=n("4a59"),u=n("0a49"),c=n("69a8"),d=n("b39a"),h=u(5),f=u(6),p=0,m=function(e){return e._l||(e._l=new g)},g=function(){this.a=[]},v=function(e,t){return h(e.a,(function(e){return e[0]===t}))};g.prototype={get:function(e){var t=v(this,e);if(t)return t[1]},has:function(e){return!!v(this,e)},set:function(e,t){var n=v(this,e);n?n[1]=t:this.a.push([e,t])},delete:function(e){var t=f(this.a,(function(t){return t[0]===e}));return~t&&this.a.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,n,o){var u=e((function(e,r){s(e,u,t,"_i"),e._t=t,e._i=p++,e._l=void 0,void 0!=r&&l(r,n,e[o],e)}));return r(u.prototype,{delete:function(e){if(!a(e))return!1;var n=i(e);return!0===n?m(d(this,t))["delete"](e):n&&c(n,this._i)&&delete n[this._i]},has:function(e){if(!a(e))return!1;var n=i(e);return!0===n?m(d(this,t)).has(e):n&&c(n,this._i)}}),u},def:function(e,t,n){var r=i(o(t),!0);return!0===r?m(e).set(t,n):r[e._i]=n,e},ufstore:m}},"64d5":function(e,t,n){"use strict";var r=n("5ca1"),i=n("4bf8"),o=n("6a99"),a=n("38fd"),s=n("11e9").f;n("9e1e")&&r(r.P+n("c5b4"),"Object",{__lookupSetter__:function(e){var t,n=i(this),r=o(e,!0);do{if(t=s(n,r))return t.set}while(n=a(n))}})},"656e":function(e,t,n){"use strict";var r=n("79aa");function i(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)}e.exports.f=function(e){return new i(e)}},"65db":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration var t=e.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mart_apr_maj_jun_jul_aŭg_sept_okt_nov_dec".split("_"),weekdays:"dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_ĵaŭ_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_ĵa_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"[la] D[-an de] MMMM, YYYY",LLL:"[la] D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd[n], [la] D[-an de] MMMM, YYYY HH:mm",llll:"ddd, [la] D[-an de] MMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(e){return"p"===e.charAt(0).toLowerCase()},meridiem:function(e,t,n){return e>11?n?"p.t.m.":"P.T.M.":n?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodiaŭ je] LT",nextDay:"[Morgaŭ je] LT",nextWeek:"dddd[n je] LT",lastDay:"[Hieraŭ je] LT",lastWeek:"[pasintan] dddd[n je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"antaŭ %s",s:"kelkaj sekundoj",ss:"%d sekundoj",m:"unu minuto",mm:"%d minutoj",h:"unu horo",hh:"%d horoj",d:"unu tago",dd:"%d tagoj",M:"unu monato",MM:"%d monatoj",y:"unu jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}});return t}))},6613:function(e,t,n){var r=n("5a43");function i(e,t){if(e){if("string"==typeof e)return r(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}e.exports=i,e.exports.__esModule=!0,e.exports["default"]=e.exports},6625:function(e,t,n){!function(t,n){e.exports=n()}("undefined"!=typeof self&&self,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=40)}([function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){var r=n(28)("wks"),i=n(29),o=n(0).Symbol,a="function"==typeof o;(e.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?o:i)("Symbol."+e))}).store=r},function(e,t){var n=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},function(e,t,n){var r=n(7);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t,n){var r=n(0),i=n(2),o=n(11),a=n(5),s=n(9),l=function(e,t,n){var u,c,d,h=e&l.F,f=e&l.G,p=e&l.S,m=e&l.P,g=e&l.B,v=e&l.W,y=f?i:i[t]||(i[t]={}),b=y.prototype,_=f?r:p?r[t]:(r[t]||{}).prototype;for(u in f&&(n=t),n)(c=!h&&_&&void 0!==_[u])&&s(y,u)||(d=c?_[u]:n[u],y[u]=f&&"function"!=typeof _[u]?n[u]:g&&c?o(d,r):v&&_[u]==d?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(d):m&&"function"==typeof d?o(Function.call,d):d,m&&((y.virtual||(y.virtual={}))[u]=d,e&l.R&&b&&!b[u]&&a(b,u,d)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},function(e,t,n){var r=n(13),i=n(31);e.exports=n(6)?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){e.exports=!n(14)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){e.exports={}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r=n(12);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var r=n(3),i=n(50),o=n(51),a=Object.defineProperty;t.f=n(6)?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var r=n(16);e.exports=function(e){return Object(r(e))}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r=n(46),i=n(30);e.exports=Object.keys||function(e){return r(e,i)}},function(e,t,n){var r=n(26),i=n(16);e.exports=function(e){return r(i(e))}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(28)("keys"),i=n(29);e.exports=function(e){return r[e]||(r[e]=i(e))}},function(e,t){e.exports=!0},function(e,t,n){var r=n(7),i=n(0).document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},function(e,t,n){var r=n(13).f,i=n(9),o=n(1)("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},function(e,t,n){"use strict";var r=n(12);e.exports.f=function(e){return new function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)}(e)}},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0});var r=c(n(43)),i=c(n(32)),o=c(n(79)),a=c(n(86)),s=c(n(87)),l=c(n(88)),u=c(n(89));function c(e){return e&&e.__esModule?e:{default:e}}var d="UN_READY",h="PENDING",f="READY";t.default={name:"VueUeditorWrap",data:function(){return{status:d,defaultConfig:{UEDITOR_HOME_URL:void 0!==e&&e.env.BASE_URL?e.env.BASE_URL+"UEditor/":"/static/UEditor/"}}},props:{mode:{type:String,default:"observer",validator:function(e){return-1!==["observer","listener"].indexOf(e)}},value:{type:String,default:""},config:{type:Object,default:function(){return{}}},init:{type:Function,default:function(){}},destroy:{type:Boolean,default:!0},name:{type:String,default:""},observerDebounceTime:{type:Number,default:50,validator:function(e){return e>=20}},observerOptions:{type:Object,default:function(){return{attributes:!0,attributeFilter:["src","style","type","name"],characterData:!0,childList:!0,subtree:!0}}},forceInit:{type:Boolean,default:!1},editorId:{type:String},editorDependencies:Array,editorDependenciesChecker:Function},computed:{mixedConfig:function(){return(0,o.default)({},this.defaultConfig,this.config)}},methods:{registerButton:function(e){var t=e.name,n=e.icon,r=e.tip,i=e.handler,o=e.index,a=e.UE,s=void 0===a?window.UE:a;s.registerUI(t,(function(e,t){e.registerCommand(t,{execCommand:function(){i(e,t)}});var o=new s.ui.Button({name:t,title:r,cssRules:"background-image: url("+n+") !important;background-size: cover;",onclick:function(){e.execCommand(t)}});return e.addListener("selectionchange",(function(){var n=e.queryCommandState(t);-1===n?(o.setDisabled(!0),o.setChecked(!1)):(o.setDisabled(!1),o.setChecked(n))})),o}),o,this.id)},_initEditor:function(){var e=this;this.$refs.container.id=this.id=this.editorId||"editor_"+(0,u.default)(8),this.init(),this.$emit("before-init",this.id,this.mixedConfig),this.$emit("beforeInit",this.id,this.mixedConfig),this.editor=window.UE.getEditor(this.id,this.mixedConfig),this.editor.addListener("ready",(function(){e.status===f?e.editor.setContent(e.value):(e.status=f,e.$emit("ready",e.editor),e.value&&e.editor.setContent(e.value)),"observer"===e.mode&&window.MutationObserver?e._observerChangeListener():e._normalChangeListener()}))},_loadScript:function(e){return new i.default((function(t,n){if(window.$loadEventBus.on(e,t),!1===window.$loadEventBus.listeners[e].requested){window.$loadEventBus.listeners[e].requested=!0;var r=document.createElement("script");r.src=e,r.onload=function(){window.$loadEventBus.emit(e)},r.onerror=n,document.getElementsByTagName("head")[0].appendChild(r)}}))},_loadCss:function(e){return new i.default((function(t,n){if(window.$loadEventBus.on(e,t),!1===window.$loadEventBus.listeners[e].requested){window.$loadEventBus.listeners[e].requested=!0;var r=document.createElement("link");r.type="text/css",r.rel="stylesheet",r.href=e,r.onload=function(){window.$loadEventBus.emit(e)},r.onerror=n,document.getElementsByTagName("head")[0].appendChild(r)}}))},_loadEditorDependencies:function(){var e=this;window.$loadEventBus||(window.$loadEventBus=new a.default);var t=["ueditor.config.js","ueditor.all.min.js"];return new i.default((function(n,o){if(e.editorDependencies&&e.editorDependenciesChecker&&e.editorDependenciesChecker())n();else if(!e.editorDependencies&&window.UE&&window.UE.getEditor&&window.UEDITOR_CONFIG&&0!==(0,r.default)(window.UEDITOR_CONFIG).length)n();else{var a=(e.editorDependencies||t).reduce((function(t,n){return/^((https?:)?\/\/)?[-a-zA-Z0-9]+(\.[-a-zA-Z0-9]+)+\//.test(n)||(n=(e.mixedConfig.UEDITOR_HOME_URL||"")+n),".js"===n.slice(-3)?t.jsLinks.push(n):".css"===n.slice(-4)&&t.cssLinks.push(n),t}),{jsLinks:[],cssLinks:[]}),s=a.jsLinks,u=a.cssLinks;i.default.all([i.default.all(u.map((function(t){return e._loadCss(t)}))),(0,l.default)(s.map((function(t){return function(){return e._loadScript(t)}})))]).then((function(){return n()})).catch(o)}}))},_contentChangeHandler:function(){this.innerValue=this.editor.getContent(),this.$emit("input",this.innerValue)},_normalChangeListener:function(){this.editor.addListener("contentChange",this._contentChangeHandler)},_observerChangeListener:function(){var e=this;this.observer=new MutationObserver((0,s.default)((function(){e.editor.document.getElementById("baidu_pastebin")||(e.innerValue=e.editor.getContent(),e.$emit("input",e.innerValue))}),this.observerDebounceTime)),this.observer.observe(this.editor.body,this.observerOptions)}},deactivated:function(){this.editor&&this.editor.removeListener("contentChange",this._contentChangeHandler),this.observer&&this.observer.disconnect()},beforeDestroy:function(){this.destroy&&this.editor&&this.editor.destroy&&this.editor.destroy(),this.observer&&this.observer.disconnect&&this.observer.disconnect()},watch:{value:{handler:function(e){var t=this;this.status===d?(this.status=h,(this.forceInit||"undefined"!=typeof window)&&this._loadEditorDependencies().then((function(){t.$refs.container?t._initEditor():t.$nextTick((function(){return t._initEditor()}))})).catch((function(){throw new Error("[vue-ueditor-wrap] UEditor 资源加载失败!请检查资源是否存在,UEDITOR_HOME_URL 是否配置正确!")}))):this.status===f&&(e===this.innerValue||this.editor.setContent(e||""))},immediate:!0}}}}).call(t,n(42))},function(e,t,n){var r=n(10);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t,n){var r=n(19),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},function(e,t,n){var r=n(2),i=n(0),o=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(21)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){e.exports={default:n(52),__esModule:!0}},function(e,t,n){"use strict";var r=n(21),i=n(4),o=n(56),a=n(5),s=n(8),l=n(57),u=n(23),c=n(60),d=n(1)("iterator"),h=!([].keys&&"next"in[].keys()),f=function(){return this};e.exports=function(e,t,n,p,m,g,v){l(n,t,p);var y,b,_,w=function(e){if(!h&&e in S)return S[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},x=t+" Iterator",k="values"==m,M=!1,S=e.prototype,C=S[d]||S["@@iterator"]||m&&S[m],T=C||w(m),O=m?k?w("entries"):T:void 0,L="Array"==t&&S.entries||C;if(L&&(_=c(L.call(new e)))!==Object.prototype&&_.next&&(u(_,x,!0),r||"function"==typeof _[d]||a(_,d,f)),k&&C&&"values"!==C.name&&(M=!0,T=function(){return C.call(this)}),r&&!v||!h&&!M&&S[d]||a(S,d,T),s[t]=T,s[x]=f,m)if(y={values:k?T:w("values"),keys:g?T:w("keys"),entries:O},v)for(b in y)b in S||o(S,b,y[b]);else i(i.P+i.F*(h||M),t,y);return y}},function(e,t,n){var r=n(0).document;e.exports=r&&r.documentElement},function(e,t,n){var r=n(10),i=n(1)("toStringTag"),o="Arguments"==r(function(){return arguments}());e.exports=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),i))?n:o?r(t):"Object"==(a=r(t))&&"function"==typeof t.callee?"Arguments":a}},function(e,t,n){var r=n(3),i=n(12),o=n(1)("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||void 0==(n=r(a)[o])?t:i(n)}},function(e,t,n){var r,i,o,a=n(11),s=n(71),l=n(34),u=n(22),c=n(0),d=c.process,h=c.setImmediate,f=c.clearImmediate,p=c.MessageChannel,m=c.Dispatch,g=0,v={},y=function(){var e=+this;if(v.hasOwnProperty(e)){var t=v[e];delete v[e],t()}},b=function(e){y.call(e.data)};h&&f||(h=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return v[++g]=function(){s("function"==typeof e?e:Function(e),t)},r(g),g},f=function(e){delete v[e]},"process"==n(10)(d)?r=function(e){d.nextTick(a(y,e,1))}:m&&m.now?r=function(e){m.now(a(y,e,1))}:p?(o=(i=new p).port2,i.port1.onmessage=b,r=a(o.postMessage,o,1)):c.addEventListener&&"function"==typeof postMessage&&!c.importScripts?(r=function(e){c.postMessage(e+"","*")},c.addEventListener("message",b,!1)):r="onreadystatechange"in u("script")?function(e){l.appendChild(u("script")).onreadystatechange=function(){l.removeChild(this),y.call(e)}}:function(e){setTimeout(a(y,e,1),0)}),e.exports={set:h,clear:f}},function(e,t){e.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},function(e,t,n){var r=n(3),i=n(7),o=n(24);e.exports=function(e,t){if(r(e),i(t)&&t.constructor===e)return t;var n=o.f(e);return(0,n.resolve)(t),n.promise}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(25),i=n.n(r);for(var o in r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);var a=n(90),s=n(41)(i.a,a.a,!1,null,null,null);s.options.__file="src/components/vue-ueditor-wrap.vue",t.default=s.exports},function(e,t){e.exports=function(e,t,n,r,i,o){var a,s=e=e||{},l=typeof e.default;"object"!==l&&"function"!==l||(a=e,s=e.default);var u,c="function"==typeof s?s.options:s;if(t&&(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0),n&&(c.functional=!0),i&&(c._scopeId=i),o?(u=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},c._ssrRegister=u):r&&(u=r),u){var d=c.functional,h=d?c.render:c.beforeCreate;d?(c._injectStyles=u,c.render=function(e,t){return u.call(t),h(e,t)}):c.beforeCreate=h?[].concat(h,u):[u]}return{esModule:a,exports:s,options:c}}},function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var l,u=[],c=!1,d=-1;function h(){c&&l&&(c=!1,l.length?u=l.concat(u):d=-1,u.length&&f())}function f(){if(!c){var e=s(h);c=!0;for(var t=u.length;t;){for(l=u,u=[];++d1)for(var n=1;nl;)r(s,n=t[l++])&&(~o(u,n)||u.push(n));return u}},function(e,t,n){var r=n(18),i=n(27),o=n(48);e.exports=function(e){return function(t,n,a){var s,l=r(t),u=i(l.length),c=o(a,u);if(e&&n!=n){for(;u>c;)if((s=l[c++])!=s)return!0}else for(;u>c;c++)if((e||c in l)&&l[c]===n)return e||c||0;return!e&&-1}}},function(e,t,n){var r=n(19),i=Math.max,o=Math.min;e.exports=function(e,t){return(e=r(e))<0?i(e+t,0):o(e,t)}},function(e,t,n){var r=n(4),i=n(2),o=n(14);e.exports=function(e,t){var n=(i.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*o((function(){n(1)})),"Object",a)}},function(e,t,n){e.exports=!n(6)&&!n(14)((function(){return 7!=Object.defineProperty(n(22)("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){var r=n(7);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){n(53),n(54),n(61),n(65),n(77),n(78),e.exports=n(2).Promise},function(e,t){},function(e,t,n){"use strict";var r=n(55)(!0);n(33)(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})}))},function(e,t,n){var r=n(19),i=n(16);e.exports=function(e){return function(t,n){var o,a,s=String(i(t)),l=r(n),u=s.length;return l<0||l>=u?e?"":void 0:(o=s.charCodeAt(l))<55296||o>56319||l+1===u||(a=s.charCodeAt(l+1))<56320||a>57343?e?s.charAt(l):o:e?s.slice(l,l+2):a-56320+(o-55296<<10)+65536}}},function(e,t,n){e.exports=n(5)},function(e,t,n){"use strict";var r=n(58),i=n(31),o=n(23),a={};n(5)(a,n(1)("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(a,{next:i(1,n)}),o(e,t+" Iterator")}},function(e,t,n){var r=n(3),i=n(59),o=n(30),a=n(20)("IE_PROTO"),s=function(){},l=function(){var e,t=n(22)("iframe"),r=o.length;for(t.style.display="none",n(34).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("