(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-libs"],{"00bb":function(e,t,r){(function(t,n,i){e.exports=n(r("21bf"),r("38ba"))})(0,(function(e){return e.mode.CFB=function(){var t=e.lib.BlockCipherMode.extend();function r(e,t,r,n){var i,o=this._iv;o?(i=o.slice(0),this._iv=void 0):i=this._prevBlock,n.encryptBlock(i,0);for(var a=0;ai)K(e,r=n[i++],t[r]);return e},J=function(e,t){return void 0===t?S(e):Z(S(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 r=A(e,t);return!r||!i(z,t)||i(e,N)&&e[N][t]||(r.enumerable=!0),r}},te=function(e){var t,r=E(w(e)),n=[],o=0;while(r.length>o)i(z,t=r[o++])||t==N||t==l||n.push(t);return n},re=function(e){var t,r=e===V,n=E(r?H:w(e)),o=[],a=0;while(n.length>a)!i(z,t=n[a++])||r&&!i(V,t)||o.push(z[t]);return o};U||(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(r){this===V&&t.call(H,r),i(this,N)&&i(this[N],e)&&(this[N][e]=!1),G(this,e,k(1,r))};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,r("6abf").f=M.f=te,r("355d").f=Q,T.f=re,o&&!r("b8e3")&&s(V,"propertyIsEnumerable",Q,!0),p.f=function(e){return q(f(e))}),a(a.G+a.W+a.F*!U,{Symbol:I});for(var ne="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ie=0;ne.length>ie;)f(ne[ie++]);for(var oe=L(f.store),ae=0;oe.length>ae;)m(oe[ae++]);a(a.S+a.F*!U,"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*!U,"Object",{create:J,defineProperty:K,defineProperties:Z,getOwnPropertyDescriptor:ee,getOwnPropertyNames:te,getOwnPropertySymbols:re});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*(!U||u((function(){var e=I();return"[null]"!=P([e])||"{}"!=P({a:e})||"{}"!=P(Object(e))}))),"JSON",{stringify:function(e){var t,r,n=[e],i=1;while(arguments.length>i)n.push(arguments[i++]);if(r=t=n[1],(b(t)||void 0!==e)&&!X(e))return v(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!X(t))return t}),n[1]=t,P.apply(j,n)}}),I[R][B]||r("35e8")(I[R],B,I[R].valueOf),d(I,"Symbol"),d(Math,"Math",!0),d(n.JSON,"JSON",!0)},"01f9":function(e,t,r){"use strict";var n=r("2d00"),i=r("5ca1"),o=r("2aba"),a=r("32e9"),s=r("84f2"),l=r("41a0"),u=r("7f20"),c=r("38fd"),d=r("2b4c")("iterator"),h=!([].keys&&"next"in[].keys()),f="@@iterator",p="keys",m="values",g=function(){return this};e.exports=function(e,t,r,v,y,b,_){l(r,t,v);var w,x,k,S=function(e){if(!h&&e in O)return O[e];switch(e){case p:return function(){return new r(this,e)};case m:return function(){return new r(this,e)}}return function(){return new r(this,e)}},M=t+" Iterator",C=y==m,T=!1,O=e.prototype,L=O[d]||O[f]||y&&O[y],A=L||S(y),D=y?C?S("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,M,!0),n||"function"==typeof k[d]||a(k,d,g))),C&&L&&L.name!==m&&(T=!0,A=function(){return L.call(this)}),n&&!_||!h&&!T&&O[d]||a(O,d,A),s[t]=A,s[M]=g,y)if(w={values:C?A:S(m),keys:b?A:S(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,r){var n=r("241e"),i=r("53e2");r("ce7e")("getPrototypeOf",(function(){return function(e){return i(n(e))}}))},"0298":function(e,t,r){"use strict";var n=r("5ca1"),i=r("4bf8"),o=r("6a99");n(n.P+n.F*r("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),r=o(t);return"number"!=typeof r||isFinite(r)?t.toISOString():null}})},"02f4":function(e,t,r){var n=r("4588"),i=r("be13");e.exports=function(e){return function(t,r){var o,a,s=String(i(t)),l=n(r),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,r){(function(e,t){t(r("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,r){return e<4?"രാത്രി":e<12?"രാവിലെ":e<17?"ഉച്ച കഴിഞ്ഞ്":e<20?"വൈകുന്നേരം":"രാത്രി"}});return t}))},"036c":function(e,t,r){"use strict";var n=r("5ca1"),i=r("4588"),o=r("bef9"),a=r("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 r=-1,n=t;while(++r<6)n+=e*u[r],u[r]=n%1e7,n=l(n/1e7)},f=function(e){var t=6,r=0;while(--t>=0)r+=u[t],u[t]=l(r/e),r=r%e*1e7},p=function(){var e=6,t="";while(--e>=0)if(""!==t||0===e||0!==u[e]){var r=String(u[e]);t=""===t?r:t+a.call(d,7-r.length)+r}return t},m=function(e,t,r){return 0===t?r:t%2===1?m(e,t-1,r*e):m(e*e,t/2,r)},g=function(e){var t=0,r=e;while(r>=4096)t+=12,r/=4096;while(r>=2)t+=1,r/=2;return t};n(n.P+n.F*(!!s&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!r("79e5")((function(){s.call({})}))),"Number",{toFixed:function(e){var t,r,n,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,r=t<0?l*m(2,-t,1):l/m(2,t,1),r*=4503599627370496,t=52-t,t>0){h(0,r),n=u;while(n>=7)h(1e7,0),n-=7;h(m(10,n,1),0),n=t-1;while(n>=23)f(1<<23),n-=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,r){},"0390":function(e,t,r){"use strict";var n=r("02f4")(!0);e.exports=function(e,t,r){return t+(r?n(e,t).length:1)}},"0395":function(e,t,r){var n=r("36c3"),i=r("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(n(e))}},"03ec":function(e,t,r){(function(e,t){t(r("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,r){},"042e":function(e,t,r){var n=r("5ca1");n(n.S,"Math",{fround:r("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,r){var n=r("5ca1");n(n.S,"Math",{log1p:r("d6c6")})},"04fb":function(e,t,r){"use strict";var n=r("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var i=n(r("7037")),o=n(r("970b"));r("0ca1");var a=n(r("9886")),s=r("5557"),l=r("a736"),u=function e(t){if((0,o["default"])(this,e),!t)return console.error("Charts Missing parameters!"),!1;var r=t.clientWidth,n=t.clientHeight,i=document.createElement("canvas");i.setAttribute("width",r),i.setAttribute("height",n),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 r=(0,s.deepClone)(e,!0);(0,l.mergeColor)(this,r),(0,l.grid)(this,r),(0,l.axis)(this,r),(0,l.radarAxis)(this,r),(0,l.title)(this,r),(0,l.bar)(this,r),(0,l.line)(this,r),(0,l.pie)(this,r),(0,l.radar)(this,r),(0,l.gauge)(this,r),(0,l.legend)(this,r),this.option=e,this.render.launchAnimation()},u.prototype.resize=function(){var e=this.container,t=this.canvas,r=this.render,n=this.option,i=e.clientWidth,o=e.clientHeight;t.setAttribute("width",i),t.setAttribute("height",o),r.area=[i,o],this.setOption(n)}},"04ff":function(e,t,r){var n=r("5ca1"),i=r("3ca5");n(n.S+n.F*(Number.parseInt!=i),"Number",{parseInt:i})},"050c":function(e,t,r){"use strict";var n=r("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=r("2db9"),o=n(r("ae10")),a={bezierCurveToPolyline:i.bezierCurveToPolyline,getBezierCurveLength:i.getBezierCurveLength,polylineToBezierCurve:o["default"]};t["default"]=a},"0558":function(e,t,r){(function(e,t){t(r("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration function t(e){return e%100===11||e%10!==1}function r(e,r,n,i){var o=e+" ";switch(n){case"s":return r||i?"nokkrar sekúndur":"nokkrum sekúndum";case"ss":return t(e)?o+(r||i?"sekúndur":"sekúndum"):o+"sekúnda";case"m":return r?"mínúta":"mínútu";case"mm":return t(e)?o+(r||i?"mínútur":"mínútum"):r?o+"mínúta":o+"mínútu";case"hh":return t(e)?o+(r||i?"klukkustundir":"klukkustundum"):o+"klukkustund";case"d":return r?"dagur":i?"dag":"degi";case"dd":return t(e)?r?o+"dagar":o+(i?"daga":"dögum"):r?o+"dagur":o+(i?"dag":"degi");case"M":return r?"mánuður":i?"mánuð":"mánuði";case"MM":return t(e)?r?o+"mánuðir":o+(i?"mánuði":"mánuðum"):r?o+"mánuður":o+(i?"mánuð":"mánuði");case"y":return r||i?"ár":"ári";case"yy":return t(e)?o+(r||i?"ár":"árum"):o+(r||i?"ár":"ári")}}var n=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:r,ss:r,m:r,mm:r,h:"klukkustund",hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return n}))},"0676":function(e,t){function r(){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=r,e.exports.__esModule=!0,e.exports["default"]=e.exports},"0680":function(e,t,r){"use strict";var n=r("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.axis=v;var i=n(r("7037")),o=n(r("278c")),a=n(r("9523")),s=n(r("448a")),l=r("18ad"),u=r("9d85"),c=r("becb"),d=r("5557");function h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},r=t.xAxis,n=t.yAxis,i=t.series,o=[];r&&n&&i&&(o=y(r,n),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 r,n,i=[],o=[];e instanceof Array?(r=i).push.apply(r,(0,s["default"])(e)):i.push(e);t instanceof Array?(n=o).push.apply(n,(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})),r=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)})),r=r.map((function(e){return(0,c.deepMerge)((0,d.deepClone)(u.yAxisConfig),e)})),[].concat((0,s["default"])(t),(0,s["default"])(r))}function _(e){var t=e.filter((function(e){var t=e.data;return"value"===t})),r=e.filter((function(e){var t=e.data;return"value"!==t}));return t.forEach((function(e){"boolean"!==typeof e.boundaryGap&&(e.boundaryGap=!1)})),r.forEach((function(e){"boolean"!==typeof e.boundaryGap&&(e.boundaryGap=!0)})),[].concat((0,s["default"])(t),(0,s["default"])(r))}function w(e,t){var r=e.filter((function(e){var t=e.data;return"value"===t})),n=e.filter((function(e){var t=e.data;return t instanceof Array}));return r=x(r,t),n=E(n),[].concat((0,s["default"])(r),(0,s["default"])(n))}function x(e,t){return e.map((function(e){var r=k(e,t),n=C(e,r),i=(0,o["default"])(n,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,r=e.type;return!1!==t&&"pie"!==r})),0===t.length)return[0,0];var r=e.index,n=e.axis;t=M(t);var i=n+"Axis",o=t.filter((function(e){return e[i]===r}));return o.length||(o=t),S(o)}function S(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)))})))),r=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,r]}}function M(e){var t=(0,d.deepClone)(e,!0);return e.forEach((function(r,n){var i=(0,c.mergeSameStackData)(r,e);t[n].data=i})),t}function C(e,t){var r=e.min,n=e.max,a=e.axis,s=(0,o["default"])(t,2),l=s[0],u=s[1],c=(0,i["default"])(r),d=(0,i["default"])(n);if(O(r)||(r=p[a+"AxisConfig"].min,c="string"),O(n)||(n=p[a+"AxisConfig"].max,d="string"),"string"===c){r=parseInt(l-m(l*parseFloat(r)/100));var h=T(r);r=parseFloat((r/h-.1).toFixed(1))*h}if("string"===d){n=parseInt(u+m(u*parseFloat(n)/100));var f=T(n);n=parseFloat((n/f+.1).toFixed(1))*f}return[r,n]}function T(e){var t=m(e).toString(),r=t.length,n=t.replace(/0*$/g,"").indexOf("0"),i=r-1;return-1!==n&&(i-=n),g(10,i)}function O(e){var t=(0,i["default"])(e),r="string"===t&&/^\d+%$/.test(e),n="number"===t;return r||n}function L(e,t,r){var n=[],i=[],o=0,a=0;do{n.push(o-=r)}while(o>e);do{i.push(a+=r)}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})),r=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"),r[0]&&!r[0].position&&(r[0].position=u.yAxisConfig.position),r[1]&&!r[1].position&&(r[1].position="left"===r[0].position?"right":"left"),[].concat((0,s["default"])(t),(0,s["default"])(r))}function P(e,t){var r=t.gridArea,n=r.x,i=r.y,o=r.w,a=r.h;return e=e.map((function(e){var t=e.position,r=[];return"left"===t?r=[[n,i],[n,i+a]].reverse():"right"===t?r=[[n+o,i],[n+o,i+a]].reverse():"top"===t?r=[[n,i],[n+o,i]]:"bottom"===t&&(r=[[n,i+a],[n+o,i+a]]),f(f({},e),{},{linePosition:r})})),e}function R(e,t){return e.map((function(e){var t=e.axis,r=e.linePosition,n=e.position,i=e.label,a=e.boundaryGap;"boolean"!==typeof a&&(a=p[t+"AxisConfig"].boundaryGap);var s=i.length,l=(0,o["default"])(r,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,r){return"x"===t?[c+y*(a?r+.5:r),d]:[c,d+y*(a?r+.5:r)]})),_=N(t,a,n,b,y);return f(f({},e),{},{tickPosition:b,tickLinePosition:_,tickGap:y})}))}function N(e,t,r,n,i){var a="x"===e?1:0,s=5;"x"===e&&"top"===r&&(s=-5),"y"===e&&"left"===r&&(s=-5);var l=n.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),r=t[0],n=t[1];r[a]+=s,n[a]+=s})),l):l}function B(e,t){return e.map((function(e){var t=e.nameGap,r=e.nameLocation,n=e.position,i=e.linePosition,a=(0,o["default"])(i,2),l=a[0],u=a[1],c=(0,s["default"])(l);"end"===r&&(c=(0,s["default"])(u)),"center"===r&&(c[0]=(l[0]+u[0])/2,c[1]=(l[1]+u[1])/2);var d=0;"top"===n&&"center"===r&&(d=1),"bottom"===n&&"center"===r&&(d=1),"left"===n&&"center"!==r&&(d=1),"right"===n&&"center"!==r&&(d=1);var h=t;return"top"===n&&"end"!==r&&(h*=-1),"left"===n&&"start"!==r&&(h*=-1),"bottom"===n&&"start"===r&&(h*=-1),"right"===n&&"end"===r&&(h*=-1),c[d]+=h,f(f({},e),{},{namePosition:c})}))}function Y(e,t){var r=t.gridArea,n=r.w,i=r.h;return e.map((function(e){var t=e.tickLinePosition,r=e.position,a=e.boundaryGap,l=0,u=n;"top"!==r&&"bottom"!==r||(l=1),"top"!==r&&"bottom"!==r||(u=i),"right"!==r&&"bottom"!==r||(u*=-1);var c=t.map((function(e){var t=(0,o["default"])(e,1),r=t[0],n=(0,s["default"])(r);return n[l]+=u,[(0,s["default"])(r),n]}));return a||c.shift(),f(f({},e),{},{splitLinePosition:c})}))}function F(e){var t=e.animationCurve,r=e.animationFrame,n=e.rLevel;return[{name:"polyline",index:n,visible:e.axisLine.show,animationCurve:t,animationFrame:r,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,r=e.animationFrame,n=e.rLevel,i=U(e),o=W(e);return i.map((function(i){return{name:"polyline",index:n,visible:e.axisTick.show,animationCurve:t,animationFrame:r,shape:i,style:o}}))}function U(e){var t=e.tickLinePosition;return t.map((function(e){return{points:e}}))}function W(e){return e.axisTick.style}function $(e){var t=e.animationCurve,r=e.animationFrame,n=e.rLevel,i=G(e),o=X(e,i);return i.map((function(i,a){return{name:"text",index:n,visible:e.axisLabel.show,animationCurve:t,animationFrame:r,shape:i,style:o[a],setGraphCenter:function(){}}}))}function G(e){var t=e.label,r=e.tickPosition,n=e.position;return r.map((function(e,r){return{position:q(e,n),content:t[r].toString()}}))}function q(e,t){var r=0,n=10;return"top"!==t&&"bottom"!==t||(r=1),"top"!==t&&"left"!==t||(n=-10),e=(0,d.deepClone)(e),e[r]+=n,e}function X(e,t){var r=e.position,n=e.axisLabel.style,i=K(r);n=(0,c.deepMerge)(i,n);var o=t.map((function(e){var t=e.position;return f(f({},n),{},{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,r=e.animationFrame,n=e.rLevel;return[{name:"text",index:n,animationCurve:t,animationFrame:r,shape:J(e),style:Q(e)}]}function J(e){var t=e.name,r=e.namePosition;return{content:t,position:r}}function Q(e){var t=e.nameLocation,r=e.position,n=e.nameTextStyle,i=ee(r,t);return(0,c.deepMerge)(i,n)}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,r=e.animationFrame,n=e.rLevel,i=re(e),o=ne(e);return i.map((function(i){return{name:"polyline",index:n,visible:e.splitLine.show,animationCurve:t,animationFrame:r,shape:i,style:o}}))}function re(e){var t=e.splitLinePosition;return t.map((function(e){return{points:e}}))}function ne(e){return e.splitLine.style}},"06a7":function(e,t,r){var n=r("37a7"),i=r("cb7c"),o=n.get,a=n.key;n.exp({getOwnMetadata:function(e,t){return o(e,i(t),arguments.length<3?void 0:a(arguments[2]))}})},"06db":function(e,t,r){"use strict";var n=r("23c6"),i={};i[r("2b4c")("toStringTag")]="z",i+""!="[object z]"&&r("2aba")(Object.prototype,"toString",(function(){return"[object "+n(this)+"]"}),!0)},"0721":function(e,t,r){(function(e,t){t(r("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,r){(function(e,t){t(r("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,r){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 r={}.hasOwnProperty;e.exports=function(e,t){return r.call(e,t)}},"0808":function(e,t,r){},"097d":function(e,t,r){"use strict";var n=r("5ca1"),i=r("8378"),o=r("7726"),a=r("ebd6"),s=r("bcaa");n(n.P+n.R,"Promise",{finally:function(e){var t=a(this,i.Promise||o.Promise),r="function"==typeof e;return this.then(r?function(r){return s(t,e()).then((function(){return r}))}:e,r?function(r){return s(t,e()).then((function(){throw r}))}:e)}})},"09e0":function(e,t,r){var n=r("5ca1");n(n.S,"Math",{clamp:function(e,t,r){return Math.min(r,Math.max(t,e))}})},"09fa":function(e,t,r){var n=r("4588"),i=r("9def");e.exports=function(e){if(void 0===e)return 0;var t=n(e),r=i(t);if(t!==r)throw RangeError("Wrong length!");return r}},"0a06":function(e,t,r){"use strict";var n=r("2444"),i=r("c532"),o=r("f6b49"),a=r("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(n,{method:"get"},this.defaults,e),e.method=e.method.toLowerCase();var t=[a,void 0],r=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)r=r.then(t.shift(),t.shift());return r},i.forEach(["delete","get","head","options"],(function(e){s.prototype[e]=function(t,r){return this.request(i.merge(r||{},{method:e,url:t}))}})),i.forEach(["post","put","patch"],(function(e){s.prototype[e]=function(t,r,n){return this.request(i.merge(n||{},{method:e,url:t,data:r}))}})),e.exports=s},"0a3c":function(e,t,r){(function(e,t){t(r("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("_"),r="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),n=[/^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,n){return e?/-MMM-/.test(n)?r[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:n,longMonthsParse:n,shortMonthsParse:n,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,r){var n=r("9b43"),i=r("626a"),o=r("4bf8"),a=r("9def"),s=r("cd1c");e.exports=function(e,t){var r=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=n(s,p,3),_=a(y.length),w=0,x=r?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(r)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,r){(function(e,t){t(r("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,r){var n=r("5ca1");n(n.S,"Math",{sign:r("96fb")})},"0bfb":function(e,t,r){"use strict";var n=r("cb7c");e.exports=function(){var e=n(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,r){var n=r("5ca1");n(n.S,"Math",{DEG_PER_RAD:Math.PI/180})},"0c36":function(e,t,r){var n=r("5ca1");n(n.G,{global:r("7726")})},"0ca1":function(e,t,r){"use strict";var n=r("4ea4"),i=n(r("9523")),o=n(r("448a")),a=r("9886"),s=r("b06d"),l=r("5557"),u=r("a870"),c=r("becb");function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}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}));r.lineTo.apply(r,(0,o["default"])(f)),r.arc(i,a,u>0?u:0,d,c,h),r.lineTo.apply(r,(0,o["default"])(p)),r.closePath(),r.stroke(),r.fill()}},p={shape:{rx:0,ry:0,r:0,startAngle:0,endAngle:0,gradientStartAngle:null,gradientEndAngle:null},validator:function(e){var t=e.shape,r=["rx","ry","r","startAngle","endAngle"];return!r.find((function(e){return"number"!==typeof t[e]}))||(console.error("AgArc shape configuration is abnormal!"),!1)},draw:function(e,t){var r=e.ctx,n=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=n.gradientStartAngle,d=n.gradientEndAngle,h=n.startAngle,f=n.endAngle,p=n.r,m=n.rx,g=n.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,S=!0),r.arc(m,g,p,x,k),r.strokeStyle=w,r.stroke(),S)break}}},m={shape:{number:[],content:"",position:[0,0],toFixed:0,rowGap:0,formatter:null},validator:function(e){var t=e.shape,r=t.number,n=t.content,i=t.position;return r instanceof Array&&"string"===typeof n&&i instanceof Array||(console.error("NumberText shape configuration is abnormal!"),!1)},draw:function(e,t){var r=e.ctx,n=t.shape,i=n.number,o=n.content,a=n.toFixed,l=n.rowGap,u=n.formatter,c=o.split("{nt}"),d="";c.forEach((function(e,t){var r=i[t];"number"!==typeof r&&(r=""),"number"===typeof r&&(r=r.toFixed(a),"function"===typeof u&&(r=u(r))),d+=e+(r||"")})),s.text.draw({ctx:r},{shape:h(h({},n),{},{content:d,rowGap:l})})}},g={shape:{x:0,y:0,w:0,h:0},validator:function(e){var t=e.shape,r=t.x,n=t.y,i=t.w,o=t.h;return"number"===typeof r&&"number"===typeof n&&"number"===typeof i&&"number"===typeof o||(console.error("lineIcon shape configuration is abnormal!"),!1)},draw:function(e,t){var r=e.ctx,n=t.shape;r.beginPath();var i=n.x,o=n.y,a=n.w,s=n.h,l=s/2;r.strokeStyle=r.fillStyle,r.moveTo(i,o+l),r.lineTo(i+a,o+l),r.lineWidth=1,r.stroke(),r.beginPath();var u=l-10;u<=0&&(u=3),r.arc(i+a/2,o+l,u,0,2*Math.PI),r.lineWidth=5,r.stroke(),r.fillStyle="#fff",r.fill()},hoverCheck:function(e,t){var r=t.shape,n=r.x,i=r.y,o=r.w,a=r.h;return(0,l.checkPointIsInRect)(e,n,i,o,a)},setGraphCenter:function(e,t){var r=t.shape,n=t.style,i=r.x,o=r.y,a=r.w,s=r.h;n.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,r){(function(e,t){t(r("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration function t(e,t,r,n){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 n?i[r][0]:i[r][1]}var r=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,r){return e<4?"rati":e<12?"sokallim":e<16?"donparam":e<20?"sanje":"rati"}});return r}))},"0cd4":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.radarAxisConfig=void 0;var n={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=n},"0cd8":function(e,t,r){"use strict";var n=r("5ca1"),i=r("7b23");n(n.P+n.F*!r("2f21")([].reduce,!0),"Array",{reduce:function(e){return i(this,e,arguments.length,arguments[1],!1)}})},"0d25":function(e,t,r){var n=r("5ca1"),i=r("8079")(),o=r("7726").process,a="process"==r("2d95")(o);n(n.G,{asap:function(e){var t=a&&o.domain;i(t?t.bind(e):e)}})},"0d58":function(e,t,r){var n=r("ce10"),i=r("e11e");e.exports=Object.keys||function(e){return n(e,i)}},"0d6d":function(e,t,r){var n=r("d3f4"),i=r("67ab").onFreeze;r("5eda")("freeze",(function(e){return function(t){return e&&n(t)?e(i(t)):t}}))},"0df6":function(e,t,r){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},"0e15":function(e,t,r){var n=r("597f");e.exports=function(e,t,r){return void 0===r?n(e,t,!1):n(e,r,!1!==t)}},"0e49":function(e,t,r){(function(e,t){t(r("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,r){(function(e,t){t(r("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,r=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+r},week:{dow:0,doy:4}});return t}))},"0e81":function(e,t,r){(function(e,t){t(r("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ı"},r=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,r){return e<12?r?"öö":"ÖÖ":r?"ö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,r){switch(r){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'ıncı";var n=e%10,i=e%100-n,o=e>=100?100:null;return e+(t[n]||t[i]||t[o])}},week:{dow:1,doy:7}});return r}))},"0f14":function(e,t,r){(function(e,t){t(r("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,r){(function(e,t){t(r("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,r){var n,i=r("7726"),o=r("32e9"),a=r("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=r("e0b8")(p,y,b,u,!0,!0);h&&f&&(n=u.getConstructor(y,p),l(n.prototype,b),s.NEED=!0,o(["delete","has","get","set"],(function(e){var t=_.prototype,r=t[e];a(t,e,(function(t,i){if(c(t)&&!g(t)){this._f||(this._f=new n);var o=this._f[e](t,i);return"set"==e?this:o}return r.call(this,t,i)}))})))},"10b7":function(e,t,r){(function(t,n){e.exports=n(r("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 r=e,n=r.lib,i=n.WordArray,o=n.Hasher,a=r.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 r=0;r<16;r++){var n=t+r,i=e[n];e[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o,a,f,_,w,x,k,S,M,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],S=f=O[2],M=_=O[3],C=w=O[4];for(r=0;r<80;r+=1)T=o+e[t+D[r]]|0,T+=r<16?p(a,f,_)+L[0]:r<32?m(a,f,_)+L[1]:r<48?g(a,f,_)+L[2]:r<64?v(a,f,_)+L[3]:y(a,f,_)+L[4],T|=0,T=b(T,I[r]),T=T+w|0,o=w,w=_,_=b(f,10),f=a,a=T,T=x+e[t+E[r]]|0,T+=r<16?y(k,S,M)+A[0]:r<32?v(k,S,M)+A[1]:r<48?g(k,S,M)+A[2]:r<64?m(k,S,M)+A[3]:p(k,S,M)+A[4],T|=0,T=b(T,j[r]),T=T+C|0,x=C,C=M,M=b(S,10),S=k,k=T;T=O[1]+f+M|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+S|0,O[0]=T},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>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,r){return e^t^r}function m(e,t,r){return e&t|~e&r}function g(e,t,r){return(e|~t)^r}function v(e,t,r){return e&r|t&~r}function y(e,t,r){return e^(t|~r)}function b(e,t){return e<>>32-t}r.RIPEMD160=o._createHelper(f),r.HmacRIPEMD160=o._createHmacHelper(f)}(Math),e.RIPEMD160}))},"10e8":function(e,t,r){(function(e,t){t(r("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,r){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,r){(function(t,n){e.exports=n(r("21bf"))})(0,(function(e){return function(){var t=e,r=t.lib,n=r.WordArray,i=t.enc;i.Base64={stringify:function(e){var t=e.words,r=e.sigBytes,n=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=n.charAt(64);if(d)while(i.length%4)i.push(d);return i.join("")},parse:function(e){var t=e.length,r=this._map,n=this._reverseMap;if(!n){n=this._reverseMap=[];for(var i=0;i>>6-a%4*2,u=s|l;i[o>>>2]|=u<<24-o%4*8,o++}return n.create(i,o)}}(),e.enc.Base64}))},1169:function(e,t,r){var n=r("2d95");e.exports=Array.isArray||function(e){return"Array"==n(e)}},1173:function(e,t){e.exports=function(e,t,r,n){if(!(e instanceof t)||void 0!==n&&n in e)throw TypeError(r+": incorrect invocation!");return e}},"11b0":function(e,t){function r(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}e.exports=r,e.exports.__esModule=!0,e.exports["default"]=e.exports},"11b09":function(e,t,r){},"11e9":function(e,t,r){var n=r("52a7"),i=r("4630"),o=r("6821"),a=r("6a99"),s=r("69a8"),l=r("c69a"),u=Object.getOwnPropertyDescriptor;t.f=r("9e1e")?u:function(e,t){if(e=o(e),t=a(t,!0),l)try{return u(e,t)}catch(r){}if(s(e,t))return i(!n.f.call(e,t),e[t])}},"130f":function(e,t,r){var n=r("5ca1"),i=r("1991");n(n.G+n.B,{setImmediate:i.set,clearImmediate:i.clear})},1382:function(e,t,r){(function(t,n,i){e.exports=n(r("21bf"),r("1132"),r("72fe"),r("2b79"),r("38ba"))})(0,(function(e){return function(){var t=e,r=t.lib,n=r.StreamCipher,i=t.algo,o=[],a=[],s=[],l=i.Rabbit=n.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,r=0;r<4;r++)e[r]=16711935&(e[r]<<8|e[r]>>>24)|4278255360&(e[r]<<24|e[r]>>>8);var 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],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(r=0;r<4;r++)u.call(this);for(r=0;r<8;r++)i[r]^=n[r+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(r=0;r<4;r++)u.call(this)}},_doProcessBlock:function(e,t){var r=this._X;u.call(this),o[0]=r[0]^r[5]>>>16^r[3]<<16,o[1]=r[2]^r[7]>>>16^r[5]<<16,o[2]=r[4]^r[1]>>>16^r[7]<<16,o[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)o[n]=16711935&(o[n]<<8|o[n]>>>24)|4278255360&(o[n]<<24|o[n]>>>8),e[t+n]^=o[n]},blockSize:4,ivSize:2});function u(){for(var e=this._X,t=this._C,r=0;r<8;r++)a[r]=t[r];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(r=0;r<8;r++){var n=e[r]+t[r],i=65535&n,o=n>>>16,l=((i*i>>>17)+i*o>>>15)+o*o,u=((4294901760&n)*n|0)+((65535&n)*n|0);s[r]=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=n._createHelper(l)}(),e.Rabbit}))},1395:function(e,t,r){e.exports=r("7726")},"13e9":function(e,t,r){(function(e,t){t(r("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,r,n,i){var o,a=t.words[n];return 1===n.length?"y"===n&&r?"једна година":i||r?a[0]:a[1]:(o=t.correctGrammaticalCase(e,a),"yy"===n&&r&&"годину"===o?e+" година":e+" "+o)}},r=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 r}))},1448:function(e,t,r){"use strict";r("386b")("strike",(function(e){return function(){return e(this,"strike","","")}}))},1495:function(e,t,r){var n=r("86cc"),i=r("cb7c"),o=r("0d58");e.exports=r("9e1e")?Object.defineProperties:function(e,t){i(e);var r,a=o(t),s=a.length,l=0;while(s>l)n.f(e,r=a[l++],t[r]);return e}},"14b9":function(e,t,r){var n=r("5ca1");n(n.P,"String",{repeat:r("9744")})},"15ac":function(e,t,r){r("ec30")("Int16",2,(function(e){return function(t,r,n){return e(this,t,r,n)}}))},1654:function(e,t,r){"use strict";var n=r("71c1")(!0);r("30f1")(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,r=this._i;return r>=t.length?{value:void 0,done:!0}:(e=n(t,r),this._i+=e.length,{value:e,done:!1})}))},"165b":function(e,t,r){var n=r("d3f4");r("5eda")("isExtensible",(function(e){return function(t){return!!n(t)&&(!e||e(t))}}))},"167b":function(e,t,r){(function(e,t){t(r("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 r=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"è";return"w"!==t&&"W"!==t||(r="a"),e+r},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,r){"use strict";r.d(t,"a",(function(){return o}));var n=r("f410"),i=r.n(n);function o(e){if(i()(e))return e}},"17e1":function(e,t,r){(function(t,n){e.exports=n(r("21bf"))})(0,(function(e){return function(){if("function"==typeof ArrayBuffer){var t=e,r=t.lib,n=r.WordArray,i=n.init,o=n.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,r=[],n=0;n>>2]|=e[n]<<24-n%4*8;i.call(this,r,t)}else i.apply(this,arguments)};o.prototype=n}}(),e.lib.WordArray}))},"17ed":function(e,t,r){e.exports={default:r("d8d6"),__esModule:!0}},"18ad":function(e,t,r){"use strict";var n=r("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.doUpdate=f,t.Updater=void 0;var i=n(r("448a")),o=n(r("7037")),a=n(r("970b")),s=function e(t,r){(0,a["default"])(this,e);var n=t.chart,i=t.key,o=t.getGraphConfig;"function"===typeof o?(n[i]||(this.graphs=n[i]=[]),Object.assign(this,t),this.update(r)):console.warn("Updater need function getGraphConfig!")};function l(e,t){var r=e.graphs,n=e.chart.render,i=r.length,o=t.length;if(i>o){var a=r.splice(o);a.forEach((function(e){return e.forEach((function(e){return n.delGraph(e)}))}))}}function u(e,t,r,n){var i=n.getGraphConfig,o=n.chart.render,a=n.beforeChange,s=i(t,n);c(e,s,o),e.forEach((function(e,t){var r=s[t];"function"===typeof a&&a(e,r),h(e,r)}))}function c(e,t,r){var n=e.length,o=t.length;if(o>n){var a=e.slice(-1)[0],s=o-n,l=new Array(s).fill(0).map((function(e){return r.clone(a)}));e.push.apply(e,(0,i["default"])(l))}else if(o0&&void 0!==arguments[0]?arguments[0]:{},t=e.chart,r=e.series,n=e.key,i=e.getGraphConfig,o=e.getStartGraphConfig,a=e.beforeChange,l=e.beforeUpdate,u=e.afterAddGraph;t[n]?t[n].update(r):t[n]=new s({chart:t,key:n,getGraphConfig:i,getStartGraphConfig:o,beforeChange:a,beforeUpdate:l,afterAddGraph:u},r)}t.Updater=s,s.prototype.update=function(e){var t=this,r=this.graphs,n=this.beforeUpdate;if(l(this,e),e.length){var i=(0,o["default"])(n);e.forEach((function(e,o){"function"===i&&n(r,e,o,t);var a=r[o];a?u(a,e,o,t):d(r,e,o,t)}))}}},"18d0":function(e,t,r){var n=r("5ca1"),i=r("3ca5");n(n.G+n.F*(parseInt!=i),{parseInt:i})},"191b":function(e,t,r){(function(t,n,i){e.exports=n(r("21bf"),r("94f8"))})(0,(function(e){return function(){var t=e,r=t.lib,n=r.WordArray,i=t.algo,o=i.SHA256,a=i.SHA224=o.extend({_doReset:function(){this._hash=new n.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,r){var n,i,o,a=r("9b43"),s=r("31f4"),l=r("fab2"),u=r("230e"),c=r("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=[],r=1;while(arguments.length>r)t.push(arguments[r++]);return v[++g]=function(){s("function"==typeof e?e:Function(e),t)},n(g),g},f=function(e){delete v[e]},"process"==r("2d95")(d)?n=function(e){d.nextTick(a(b,e,1))}:m&&m.now?n=function(e){m.now(a(b,e,1))}:p?(i=new p,o=i.port2,i.port1.onmessage=_,n=a(o.postMessage,o,1)):c.addEventListener&&"function"==typeof postMessage&&!c.importScripts?(n=function(e){c.postMessage(e+"","*")},c.addEventListener("message",_,!1)):n=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,r){var n=r("63b6");n(n.S,"Array",{isArray:r("9003")})},"1b45":function(e,t,r){(function(e,t){t(r("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,r){var n=r("f772");e.exports=function(e,t){if(!n(e))return e;var r,i;if(t&&"function"==typeof(r=e.toString)&&!n(i=r.call(e)))return i;if("function"==typeof(r=e.valueOf)&&!n(i=r.call(e)))return i;if(!t&&"function"==typeof(r=e.toString)&&!n(i=r.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},"1c01":function(e,t,r){var n=r("5ca1");n(n.S+n.F*!r("9e1e"),"Object",{defineProperty:r("86cc").f})},"1c35":function(e,t,r){"use strict";(function(e){ /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */ var n=r("1fb5"),i=r("9152"),o=r("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 r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return K(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return Q(e).length;default:if(n)return K(e).length;t=(""+t).toLowerCase(),n=!0}}function w(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if(r>>>=0,t>>>=0,r<=t)return"";e||(e="utf8");while(1)switch(e){case"hex":return N(this,t,r);case"utf8":case"utf-8":return E(this,t,r);case"ascii":return P(this,t,r);case"latin1":case"binary":return R(this,t,r);case"base64":return D(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function x(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function k(e,t,r,n,i){if(0===e.length)return-1;if("string"===typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"===typeof t&&(t=u.from(t,n)),u.isBuffer(t))return 0===t.length?-1:S(e,t,r,n,i);if("number"===typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):S(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function S(e,t,r,n,i){var o,a=1,s=e.length,l=t.length;if(void 0!==n&&(n=String(n).toLowerCase(),"ucs2"===n||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,r/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var c=-1;for(o=r;os&&(r=s-l),o=r;o>=0;o--){for(var d=!0,h=0;hi&&(n=i)):n=i;var o=t.length;if(o%2!==0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var a=0;a239?4:u>223?3:u>191?2:1;if(i+d<=r)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,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),i+=d}return j(n)}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,r){return c(null,e,t,r)},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,r){return h(null,e,t,r)},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 r=e.length,n=t.length,i=0,o=Math.min(r,n);i0&&(e=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(e+=" ... ")),""},u.prototype.compare=function(e,t,r,n,i){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;for(var o=i-n,a=r-t,s=Math.min(o,a),l=this.slice(n,i),c=e.slice(t,r),d=0;di)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return M(this,e,t,r);case"utf8":case"utf-8":return C(this,e,t,r);case"ascii":return T(this,e,t,r);case"latin1":case"binary":return O(this,e,t,r);case"base64":return L(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).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 r="",n=0;while(nn)&&(r=n);for(var i="",o=t;or)throw new RangeError("Trying to access beyond buffer length")}function F(e,t,r,n,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,r,n){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-r,2);i>>8*(n?i:1-i)}function H(e,t,r,n){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-r,4);i>>8*(n?i:3-i)&255}function V(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function U(e,t,r,n,o){return o||V(e,t,r,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,r,n,23,4),r+4}function W(e,t,r,n,o){return o||V(e,t,r,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,r,n,52,8),r+8}u.prototype.slice=function(e,t){var r,n=this.length;if(e=~~e,t=void 0===t?n:~~t,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t0&&(i*=256))n+=this[e+--t]*i;return n},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,r){e|=0,t|=0,r||Y(e,t,this.length);var n=this[e],i=1,o=0;while(++o=i&&(n-=Math.pow(2,8*t)),n},u.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||Y(e,t,this.length);var n=t,i=1,o=this[e+--n];while(n>0&&(i*=256))o+=this[e+--n]*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 r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(e,t){t||Y(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},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,r,n){if(e=+e,t|=0,r|=0,!n){var i=Math.pow(2,8*r)-1;F(this,e,t,r,i,0)}var o=1,a=0;this[t]=255&e;while(++a=0&&(a*=256))this[t+o]=e/a&255;return t+r},u.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||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,r){return e=+e,t|=0,r||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,r){return e=+e,t|=0,r||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,r){return e=+e,t|=0,r||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,r){return e=+e,t|=0,r||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,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);F(this,e,t,r,i-1,-i)}var o=0,a=1,s=0;this[t]=255&e;while(++o>0)-s&255;return t+r},u.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);F(this,e,t,r,i-1,-i)}var o=r-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+r},u.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||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,r){return e=+e,t|=0,r||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,r){return e=+e,t|=0,r||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,r){return e=+e,t|=0,r||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,r){return e=+e,t|=0,r||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,r){return U(this,e,t,!0,r)},u.prototype.writeFloatBE=function(e,t,r){return U(this,e,t,!1,r)},u.prototype.writeDoubleLE=function(e,t,r){return W(this,e,t,!0,r)},u.prototype.writeDoubleBE=function(e,t,r){return W(this,e,t,!1,r)},u.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t=0;--i)e[i+t]=this[i+r];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"===typeof e)for(o=t;o55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function Z(e){for(var t=[],r=0;r>8,i=r%256,o.push(i),o.push(n)}return o}function Q(e){return n.toByteArray(G(e))}function ee(e,t,r,n){for(var i=0;i=t.length||i>=e.length)break;t[i+r]=e[i]}return i}function te(e){return e!==e}}).call(this,r("24aa"))},"1c4c":function(e,t,r){"use strict";var n=r("9b43"),i=r("5ca1"),o=r("4bf8"),a=r("1fa8"),s=r("33a4"),l=r("9def"),u=r("f1ae"),c=r("27ee");i(i.S+i.F*!r("5cc5")((function(e){Array.from(e)})),"Array",{from:function(e){var t,r,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=n(m,p>2?arguments[2]:void 0,2)),void 0==y||f==Array&&s(y))for(t=l(h.length),r=new f(t);t>v;v++)u(r,v,g?m(h[v],v):h[v]);else for(d=y.call(h),r=new f;!(i=d.next()).done;v++)u(r,v,g?a(d,m,[i.value,v],!0):i.value);return r.length=v,r}})},"1cfd":function(e,t,r){(function(e,t){t(r("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"},r=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},n={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=r(t),l=n[e][r(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,r){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,r){"use strict";e.exports=function(e,t){return function(){for(var r=new Array(arguments.length),n=0;n1&&void 0!==arguments[1]?arguments[1]:{},r=t.series;r||(r=[]);var n=(0,d.initNeedSeries)(r,u.gaugeConfig,"gauge");n=g(n,e),n=v(n,e),n=y(n,e),n=b(n,e),n=_(n,e),n=w(n,e),n=x(n,e),n=k(n,e),n=S(n,e),n=M(n,e),(0,l.doUpdate)({chart:e,series:n,key:"gaugeAxisTick",getGraphConfig:T}),(0,l.doUpdate)({chart:e,series:n,key:"gaugeAxisLabel",getGraphConfig:A}),(0,l.doUpdate)({chart:e,series:n,key:"gaugeBackgroundArc",getGraphConfig:I,getStartGraphConfig:R}),(0,l.doUpdate)({chart:e,series:n,key:"gaugeArc",getGraphConfig:N,getStartGraphConfig:F,beforeChange:z}),(0,l.doUpdate)({chart:e,series:n,key:"gaugePointer",getGraphConfig:H,getStartGraphConfig:$}),(0,l.doUpdate)({chart:e,series:n,key:"gaugeDetails",getGraphConfig:G})}function g(e,t){var r=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*r[t]})),e.center=t})),e}function v(e,t){var r=t.render.area,n=Math.min.apply(Math,(0,s["default"])(r))/2;return e.forEach((function(e){var t=e.radius;"number"!==typeof t&&(t=parseInt(t)/100*n),e.radius=t})),e}function y(e,t){var r=t.render.area,n=Math.min.apply(Math,(0,s["default"])(r))/2;return e.forEach((function(e){var t=e.radius,r=e.data,i=e.arcLineWidth;r.forEach((function(e){var r=e.radius,o=e.lineWidth;r||(r=t),"number"!==typeof r&&(r=parseInt(r)/100*n),e.radius=r,o||(o=i),e.lineWidth=o}))})),e}function b(e,t){return e.forEach((function(e){var t=e.startAngle,r=e.endAngle,n=e.data,i=e.min,o=e.max,a=r-t,s=o-i;n.forEach((function(e){var r=e.value,n=Math.abs((r-i)/s*a);e.startAngle=t,e.endAngle=t+n}))})),e}function _(e,t){return e.forEach((function(e){var t=e.data;t.forEach((function(e){var t=e.color,r=e.gradient;r&&r.length||(r=t),r instanceof Array||(r=[r]),e.gradient=r}))})),e}function w(e,t){return e.forEach((function(e){var t=e.startAngle,r=e.endAngle,n=e.splitNum,i=e.center,o=e.radius,a=e.arcLineWidth,l=e.axisTick,u=l.tickLength,d=l.style.lineWidth,h=r-t,f=o-a/2,p=f-u,m=h/(n-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(n).fill(0).map((function(r,o){var a=t+m*o;return 0===o&&(a+=v),o===n-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,r=e.tickInnerRadius,n=e.tickAngles,i=e.axisLabel.labelGap,o=n.map((function(e,o){return c.getCircleRadianPoint.apply(void 0,(0,s["default"])(t).concat([r[o]-i,n[o]]))})),l=o.map((function(e){var r=(0,a["default"])(e,2),n=r[0],i=r[1];return{textAlign:n>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,r=e.min,n=e.max,i=e.splitNum,a=t.data,s=t.formatter,l=(n-r)/(i-1),u=new Array(i).fill(0).map((function(e,t){return parseInt(r+l*t)})),c=(0,o["default"])(s);a=(0,d.deepMerge)(u,a).map((function(e,t){var r=e;return"string"===c&&(r=s.replace("{value}",e)),"function"===c&&(r=s({value:e,index:t})),r})),t.data=a})),e}function S(e,t){return e.forEach((function(e){var t=e.data,r=e.details,n=e.center,i=r.position,o=r.offset,a=t.map((function(e){var t=e.startAngle,r=e.endAngle,a=e.radius,l=null;return"center"===i?l=n:"start"===i?l=c.getCircleRadianPoint.apply(void 0,(0,s["default"])(n).concat([a,t])):"end"===i&&(l=c.getCircleRadianPoint.apply(void 0,(0,s["default"])(n).concat([a,r]))),C(l,o)}));e.detailsPosition=a})),e}function M(e,t){return e.forEach((function(e){var t=e.data,r=e.details,n=r.formatter,i=(0,o["default"])(n),a=t.map((function(e){var t=e.value;return"string"===i&&(t=n.replace("{value}","{nt}"),t=t.replace("{name}",e.name)),"function"===i&&(t=n(e)),t.toString()}));e.detailsContent=a})),e}function C(e,t){var r=(0,a["default"])(e,2),n=r[0],i=r[1],o=(0,a["default"])(t,2),s=o[0],l=o[1];return[n+s,i+l]}function T(e){var t=e.tickPosition,r=e.animationCurve,n=e.animationFrame,i=e.rLevel;return t.map((function(t,o){return{name:"polyline",index:i,visible:e.axisTick.show,animationCurve:r,animationFrame:n,shape:O(e,o),style:L(e,o)}}))}function O(e,t){var r=e.tickPosition;return{points:r[t]}}function L(e,t){var r=e.axisTick.style;return r}function A(e){var t=e.labelPosition,r=e.animationCurve,n=e.animationFrame,i=e.rLevel;return t.map((function(t,o){return{name:"text",index:i,visible:e.axisLabel.show,animationCurve:r,animationFrame:n,shape:D(e,o),style:E(e,o)}}))}function D(e,t){var r=e.labelPosition,n=e.axisLabel.data;return{content:n[t].toString(),position:r[t]}}function E(e,t){var r=e.labelAlign,n=e.axisLabel,i=n.style;return(0,d.deepMerge)(p({},r[t]),i)}function I(e){var t=e.animationCurve,r=e.animationFrame,n=e.rLevel;return[{name:"arc",index:n,visible:e.backgroundArc.show,animationCurve:t,animationFrame:r,shape:j(e),style:P(e)}]}function j(e){var t=e.startAngle,r=e.endAngle,n=e.center,i=e.radius;return{rx:n[0],ry:n[1],r:i,startAngle:t,endAngle:r}}function P(e){var t=e.backgroundArc,r=e.arcLineWidth,n=t.style;return(0,d.deepMerge)({lineWidth:r},n)}function R(e){var t=I(e)[0],r=p({},t.shape);return r.endAngle=t.shape.startAngle,t.shape=r,[t]}function N(e){var t=e.data,r=e.animationCurve,n=e.animationFrame,i=e.rLevel;return t.map((function(t,o){return{name:"agArc",index:i,animationCurve:r,animationFrame:n,shape:B(e,o),style:Y(e,o)}}))}function B(e,t){var r=e.data,n=e.center,i=e.endAngle,o=r[t],a=o.radius,s=o.startAngle,l=o.endAngle,u=o.localGradient;return u&&(i=l),{rx:n[0],ry:n[1],r:a,startAngle:s,endAngle:l,gradientEndAngle:i}}function Y(e,t){var r=e.data,n=e.dataItemStyle,i=r[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},n)}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 r=e.style.gradient,n=r.length,i=t.style.gradient.length;if(n>i)r.splice(i);else{var o=r.slice(-1)[0];r.push.apply(r,(0,s["default"])(new Array(i-n).fill(0).map((function(e){return(0,s["default"])(o)}))))}}function H(e){var t=e.animationCurve,r=e.animationFrame,n=e.center,i=e.rLevel;return[{name:"polyline",index:i,visible:e.pointer.show,animationCurve:t,animationFrame:r,shape:V(e),style:U(e),setGraphCenter:function(e,t){t.style.graphCenter=n}}]}function V(e){var t=e.center;return{points:W(t),close:!0}}function U(e){var t=e.startAngle,r=e.endAngle,n=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-n)/(i-n)*(r-t)+t+Math.PI/2;return(0,d.deepMerge)({rotate:(0,d.radianToAngle)(h),scale:[1,1],graphCenter:s},u)}function W(e){var t=(0,a["default"])(e,2),r=t[0],n=t[1],i=[r,n-40],o=[r+5,n],s=[r,n+10],l=[r-5,n];return[i,o,s,l]}function $(e){var t=e.startAngle,r=H(e)[0];return r.style.rotate=(0,d.radianToAngle)(t+Math.PI/2),[r]}function G(e){var t=e.detailsPosition,r=e.animationCurve,n=e.animationFrame,i=e.rLevel,o=e.details.show;return t.map((function(t,a){return{name:"numberText",index:i,visible:o,animationCurve:r,animationFrame:n,shape:q(e,a),style:X(e,a)}}))}function q(e,t){var r=e.detailsPosition,n=e.detailsContent,i=e.data,o=e.details,a=r[t],s=n[t],l=i[t].value,u=o.valueToFixed;return{number:[l],content:s,position:a,toFixed:u}}function X(e,t){var r=e.details,n=e.data,i=r.style,o=n[t].color;return(0,d.deepMerge)({fill:o},i)}},"1f91":function(e,t,r){var n=r("5ca1"),i=r("e9d2"),o=r("91ca");n(n.S,"Math",{fscale:function(e,t,r,n,a){return o(i(e,t,r,n,a))}})},"1fa8":function(e,t,r){var n=r("cb7c");e.exports=function(e,t,r,i){try{return i?t(n(r)[0],r[1]):t(r)}catch(a){var o=e["return"];throw void 0!==o&&n(o.call(e)),a}}},"1fb5":function(e,t,r){"use strict";t.byteLength=c,t.toByteArray=h,t.fromByteArray=m;for(var n=[],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 r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}function c(e){var t=u(e),r=t[0],n=t[1];return 3*(r+n)/4-n}function d(e,t,r){return 3*(t+r)/4-r}function h(e){var t,r,n=u(e),a=n[0],s=n[1],l=new o(d(e,a,s)),c=0,h=s>0?a-4:a;for(r=0;r>16&255,l[c++]=t>>8&255,l[c++]=255&t;return 2===s&&(t=i[e.charCodeAt(r)]<<2|i[e.charCodeAt(r+1)]>>4,l[c++]=255&t),1===s&&(t=i[e.charCodeAt(r)]<<10|i[e.charCodeAt(r+1)]<<4|i[e.charCodeAt(r+2)]>>2,l[c++]=t>>8&255,l[c++]=255&t),l}function f(e){return n[e>>18&63]+n[e>>12&63]+n[e>>6&63]+n[63&e]}function p(e,t,r){for(var n,i=[],o=t;ol?l:s+a));return 1===i?(t=e[r-1],o.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],o.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"=")),o.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},"1fc1":function(e,t,r){(function(e,t){t(r("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration function t(e,t){var r=e.split("_");return t%10===1&&t%100!==11?r[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?r[1]:r[2]}function r(e,r,n){var i={ss:r?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:r?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:r?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"};return"m"===n?r?"хвіліна":"хвіліну":"h"===n?r?"гадзіна":"гадзіну":e+" "+t(i[n],+e)}var n=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:r,mm:r,h:r,hh:r,d:"дзень",dd:r,M:"месяц",MM:r,y:"год",yy:r},meridiemParse:/ночы|раніцы|дня|вечара/,isPM:function(e){return/^(дня|вечара)$/.test(e)},meridiem:function(e,t,r){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 n}))},"201b":function(e,t,r){(function(e,t){t(r("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,r){return"ი"===r?t+"ში":t+r+"ში"}))},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,r){"use strict";var n=r("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.bar=p;var i=n(r("7037")),o=n(r("9523")),a=n(r("278c")),s=n(r("448a")),l=r("18ad"),u=r("9d85"),c=r("5557"),d=r("becb");function h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},r=t.xAxis,n=t.yAxis,i=t.series,o=[];r&&n&&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:W,beforeUpdate:X}),(0,l.doUpdate)({chart:e,series:o,key:"barLabel",getGraphConfig:K})}function m(e,t){var r=t.axisData;return e.forEach((function(e){var t=e.xAxisIndex,n=e.yAxisIndex;"number"!==typeof t&&(t=0),"number"!==typeof n&&(n=0);var i=r.find((function(e){var r=e.axis,n=e.index;return"".concat(r).concat(n)==="x".concat(t)})),o=r.find((function(e){var t=e.axis,r=e.index;return"".concat(t).concat(r)==="y".concat(n)})),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 r=y(e);return r.forEach((function(e){v(e),_(e),w(e,t),x(e),M(e)})),e}function v(e){var t=b(e);t=t.map((function(e){return{stack:e,index:-1}}));var r=0;e.forEach((function(e){var n=e.stack;if(n){var i=t.find((function(e){var t=e.stack;return t===n}));-1===i.index&&(i.index=r,r++),e.barIndex=i.index}else e.barIndex=r,r++}))}function y(e){var t=e.map((function(e){var t=e.labelAxis,r=t.axis,n=t.index;return r+n}));return t=(0,s["default"])(new Set(t)),t.map((function(t){return e.filter((function(e){var r=e.labelAxis,n=r.axis,i=r.index;return n+i===t}))}))}function b(e){var t=[];return e.forEach((function(e){var r=e.stack;r&&t.push(r)})),(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],r=t.barCategoryGap,n=t.labelAxis.tickGap,i=0;i="number"===typeof r?r:(1-parseInt(r)/100)*n,e.forEach((function(e){return e.barCategoryWidth=i}))}function x(e){var t=e.slice(-1)[0],r=t.barCategoryWidth,n=t.barWidth,i=t.barGap,o=t.barNum,s=[];"number"===typeof n||"auto"!==n?s=k(r,n,i,o):"auto"===n&&(s=S(r,n,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,r){var n=0,i=0;return n="number"===typeof t?t:parseInt(t)/100*e,i="number"===typeof r?r:parseInt(r)/100*n,[n,i]}function S(e,t,r,n){var i=0,o=0,a=e/n;if("number"===typeof r)o=r,i=a-o;else{var s=10+parseInt(r)/10;0===s?(i=2*a,o=-i):(i=a/s*10,o=a-i)}return[i,o]}function M(e){var t=e.slice(-1)[0],r=t.barGap,n=t.barWidth,i=t.barNum,o=(r+n)*i-r;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,r=e.barAllWidthAndGap,n=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-r)/2;return c+(o+.5)*i+o*n}));return f(f({},e),{},{barLabelAxisPos:c})}))}function O(e){return e.map((function(t){var r=(0,d.mergeSameStackData)(t,e);r=L(t,r);var n=t.valueAxis,i=n.axis,o=n.minValue,a=n.maxValue,s=n.linePosition,l=E(o,a,o<0?0:o,s,i),u=r.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 r=e.data;return t.map((function(e,t){return"number"===typeof r[t]?e:null})).filter((function(e){return null!==e}))}function A(e){return e.map((function(e){var t=e.barLabelAxisPos,r=e.data;return r.forEach((function(e,r){"number"!==typeof e&&(t[r]=null)})),f(f({},e),{},{barLabelAxisPos:t.filter((function(e){return null!==e}))})}))}function D(e){return e.forEach((function(e){var t=e.data,r=e.barLabelAxisPos,n=e.barValueAxisPos,i=t.filter((function(e){return"number"===typeof e})).length,o=r.length;o>i&&(r.splice(i),n.splice(i))})),e}function E(e,t,r,n,i){if("number"!==typeof r)return null;var o=t-e,a="x"===i?0:1,s=n[1][a]-n[0][a],l=(r-e)/o;0===o&&(l=0);var u=l*s;return u+n[0][a]}function I(e){var t=e.animationCurve,r=e.animationFrame,n=e.rLevel,i=j(e),o=R(e);return i.map((function(i){return{name:"rect",index:n,visible:e.backgroundBar.show,animationCurve:t,animationFrame:r,shape:i,style:o}}))}function j(e){var t=e.labelAxis,r=e.valueAxis,n=t.tickPosition,i=r.axis,o=r.linePosition,a=P(e),s=a/2,l="x"===i?0:1,u=n.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,r=e.barCategoryWidth,n=e.backgroundBar,i=n.width;return"number"===typeof i?i:"auto"===i?t:parseInt(i)/100*r}function R(e){return e.backgroundBar.style}function N(e){var t=e.barLabelAxisPos,r=e.animationCurve,n=e.animationFrame,i=e.rLevel,o=B(e);return t.map((function(t,a){return{name:o,index:i,animationCurve:r,animationFrame:n,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 r=e.shapeType;return"leftEchelon"===r?F(e,t):"rightEchelon"===r?z(e,t):H(e,t)}function F(e,t){var r=e.barValueAxisPos,n=e.barLabelAxisPos,i=e.barWidth,o=e.echelonOffset,s=(0,a["default"])(r[t],2),l=s[0],u=s[1],c=n[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)}}),r("9c6c")(o)},"20fc":function(e,t,r){var n=r("5ca1"),i=r("8894"),o=r("2aeb");n(n.S+n.F,"Object",{make:function(e,t){return i(o(e),t)}})},"20fd":function(e,t,r){"use strict";var n=r("d9f6"),i=r("aebd");e.exports=function(e,t,r){t in e?n.f(e,t,i(0,r)):e[t]=r}},"214f":function(e,t,r){"use strict";r("b0c5");var n=r("2aba"),i=r("32e9"),o=r("79e5"),a=r("be13"),s=r("2b4c"),l=r("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 r="ab".split(e);return 2===r.length&&"a"===r[0]&&"b"===r[1]}();e.exports=function(e,t,r){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,r=/a/;return r.exec=function(){return t=!0,null},"split"===e&&(r.constructor={},r.constructor[u]=function(){return r}),r[h](""),!t})):void 0;if(!f||!p||"replace"===e&&!c||"split"===e&&!d){var m=/./[h],g=r(a,h,""[e],(function(e,t,r,n,i){return t.exec===l?f&&!i?{done:!0,value:m.call(t,r,n)}:{done:!0,value:e.call(r,t,n)}:{done:!1}})),v=g[0],y=g[1];n(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,r){"use strict";var n=r("d3f4"),i=r("38fd"),o=r("2b4c")("hasInstance"),a=Function.prototype;o in a||r("86cc").f(a,o,{value:function(e){if("function"!=typeof this||!n(e))return!1;if(!n(this.prototype))return e instanceof this;while(e=i(e))if(this.prototype===e)return!0;return!1}})},"21a1":function(e,t,r){(function(t){(function(t,r){e.exports=r()})(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 r=e((function(e,t){(function(t,r){e.exports=r()})(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 r(r,n){var i=n&&!0===n.clone;return i&&e(r)?o(t(r),r,n):r}function n(t,n,i){var a=t.slice();return n.forEach((function(n,s){"undefined"===typeof a[s]?a[s]=r(n,i):e(n)?a[s]=o(t[s],n,i):-1===t.indexOf(n)&&a.push(r(n,i))})),a}function i(t,n,i){var a={};return e(t)&&Object.keys(t).forEach((function(e){a[e]=r(t[e],i)})),Object.keys(n).forEach((function(s){e(n[s])&&t[s]?a[s]=o(t[s],n[s],i):a[s]=r(n[s],i)})),a}function o(e,t,o){var a=Array.isArray(t),s=o||{arrayMerge:n},l=s.arrayMerge||n;return a?Array.isArray(e)?l(e,t,o):r(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,r){return o(e,r,t)}))},o}))}));function n(e){return e=e||Object.create(null),{on:function(t,r){(e[t]||(e[t]=[])).push(r)},off:function(t,r){e[t]&&e[t].splice(e[t].indexOf(r)>>>0,1)},emit:function(t,r){(e[t]||[]).map((function(e){e(r)})),(e["*"]||[]).map((function(e){e(t,r)}))}}}var i=e((function(e,t){var r={svg:{name:"xmlns",uri:"http://www.w3.org/2000/svg"},xlink:{name:"xmlns:xlink",uri:"http://www.w3.org/1999/xlink"}};t.default=r,e.exports=t.default})),o=function(e){return Object.keys(e).map((function(t){var r=e[t].toString().replace(/"/g,""");return t+'="'+r+'"'})).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 n=r(l,t||{}),i=o(n);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=r(f,e||{}),this.symbols=[]};p.prototype.add=function(e){var t=this,r=t.symbols,n=this.find(e.id);return n?(r[r.indexOf(n)]=e,!1):(r.push(e),!0)},p.prototype.remove=function(e){var t=this,r=t.symbols,n=this.find(e);return!!n&&(r.splice(r.indexOf(n),1),n.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,r=this.symbols.map((function(e){return e.stringify()})).join("");return c(r,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,r=e.viewBox,n=e.content;this.id=t,this.viewBox=r,this.content=n};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,r=(new DOMParser).parseFromString(e,"image/svg+xml").documentElement;return t?document.importNode(r,!0):r},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 r={isMounted:{}};return r.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,r=this.render();return this.node=r,t.appendChild(r),r},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,r),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 r=document.createEvent("CustomEvent");r.initCustomEvent(e,!1,!1,t),window.dispatchEvent(r)},k=function(e){var t=[];return b(e.querySelectorAll("style")).forEach((function(e){e.textContent+="",t.push(e)})),t},S=function(e){return(e||window.location.href).split("#")[0]},M=function(e){angular.module("ng").run(["$rootScope",function(t){t.$on("$locationChangeSuccess",(function(t,r,n){x(e,{oldUrl:n,newUrl:r})}))}])},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 r=b(e).reduce((function(e,r){if(!r.attributes)return e;var n=b(r.attributes),i=t?n.filter(t):n;return e.concat(i)}),[]);return r}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,r){return b(e).forEach((function(e){var n=e.getAttribute(A);if(n&&0===n.indexOf(t)){var i=n.replace(t,r);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,r,n){var i=E(r),o=E(n),a=e.querySelectorAll(R),s=O(a,(function(e){var t=e.localName,r=e.value;return-1!==P.indexOf(t)&&-1!==r.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,r(y,t));var o=n();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&&M(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,r=t.config;"undefined"===typeof e.syncUrlsWithBaseTag&&(r.syncUrlsWithBaseTag="undefined"!==typeof document.getElementsByTagName("base")[0]),"undefined"===typeof e.locationChangeAngularEmitter&&(r.locationChangeAngularEmitter="angular"in window),"undefined"===typeof e.moveGradientsOutsideSymbol&&(r.moveGradientsOutsideSymbol=w.isFirefox)},t.prototype._handleLocationChange=function(e){var t=e.detail,r=t.oldUrl,n=t.newUrl;this.updateUrls(r,n)},t.prototype.add=function(t){var r=this,n=e.prototype.add.call(this,t);return this.isMounted&&n&&(t.mount(r.node),this._emitter.emit(B.SYMBOL_MOUNT,t.node)),n},t.prototype.attach=function(e){var t=this,r=this;if(r.isMounted)return r.node;var n="string"===typeof e?document.querySelector(e):e;return r.node=n,this.symbols.forEach((function(e){e.mount(r.node),t._emitter.emit(B.SYMBOL_MOUNT,e.node)})),b(n.querySelectorAll("symbol")).forEach((function(e){var t=v.createFromExistingNode(e);t.node=e,r.add(t)})),this._emitter.emit(B.MOUNT,n),n},t.prototype.destroy=function(){var e=this,t=e.config,r=e.symbols,n=e._emitter;r.forEach((function(e){return e.destroy()})),n.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 r=this;if(r.isMounted)return r.node;var n="string"===typeof e?document.querySelector(e):e,i=r.render();return this.node=i,t&&n.childNodes[0]?n.insertBefore(i,n.childNodes[0]):n.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 r=document.querySelectorAll(this.config.usagesToUpdate);return N(this.node,r,S(e)+"#",S(t)+"#"),!0},Object.defineProperties(t.prototype,i),t}(p),F=e((function(e){ /*! * domready (c) Dustin Diaz 2014 - License MIT */ !function(t,r){e.exports=r()}(0,(function(){var e,t=[],r=document,n=r.documentElement.doScroll,i="DOMContentLoaded",o=(n?/^loaded|^c/:/^loaded|^i|^c/).test(r.readyState);return o||r.addEventListener(i,e=function(){r.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 U=function(){var e=document.getElementById(z);e?j.attach(e):j.mount(document.body,!0)};document.body?U():F(U);var W=j;return W}))}).call(this,r("24aa"))},"21a6":function(e,t,r){(function(r){var n,i,o;(function(r,a){i=[],n=a,o="function"===typeof n?n.apply(t,i):n,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 n(e,t,r){var n=new XMLHttpRequest;n.open("GET",e),n.responseType="blob",n.onload=function(){s(n.response,t,r)},n.onerror=function(){console.error("could not download file")},n.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(n){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 r&&r.global===r?r:void 0,s=a.saveAs||("object"!=typeof window||window!==a?function(){}:"download"in HTMLAnchorElement.prototype?function(e,t,r){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)?n(e,t,r):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,r,a){if(r=r||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(t(e,a),r);else if(i(e))n(e,r,a);else{var s=document.createElement("a");s.href=e,s.target="_blank",setTimeout((function(){o(s)}))}}:function(e,t,r,i){if(i=i||open("","_blank"),i&&(i.document.title=i.document.body.innerText="downloading..."),"string"==typeof e)return n(e,t,r);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,r("24aa"))},"21bf":function(e,t,r){(function(t){(function(t,r){e.exports=r()})(0,(function(){var e=e||function(e,n){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=r(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 r;return e.prototype=t,r=new e,e.prototype=null,r}}(),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!=n?t:4*e.length},toString:function(e){return(e||h).stringify(this)},concat:function(e){var t=this.words,r=e.words,n=this.sigBytes,i=e.sigBytes;if(this.clamp(),n%4)for(var o=0;o>>2]>>>24-o%4*8&255;t[n+o>>>2]|=a<<24-(n+o)%4*8}else for(var s=0;s>>2]=r[s>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,r=this.sigBytes;t[r>>>2]&=4294967295<<32-r%4*8,t.length=e.ceil(r/4)},clone:function(){var e=u.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],r=0;r>>2]>>>24-i%4*8&255;n.push((o>>>4).toString(16)),n.push((15&o).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new c.init(r,t/2)}},f=d.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i>>2]>>>24-i%4*8&255;n.push(String.fromCharCode(o))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new c.init(r,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 r,n=this._data,i=n.words,o=n.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&&(r.weChat=!0),t.svgSupported="undefined"!==typeof SVGRect,t.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,t.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11),t.domSupported="undefined"!==typeof document;var s=document.documentElement.style;t.transform3dSupported=(r.ie&&"transition"in s||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||r.ie&&+r.version>=9}"object"===typeof wx&&"function"===typeof wx.getSystemInfoSync?(o.wxa=!0,o.touchEventsSupported=!0):"undefined"===typeof document&&"undefined"!==typeof self?o.worker=!0:"undefined"===typeof navigator||0===navigator.userAgent.indexOf("Node.js")?(o.node=!0,o.svgSupported=!0):a(navigator.userAgent,o),t["a"]=o},"22f8":function(e,t,r){(function(e,t){t(r("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,r){return e<12?"오전":"오후"}});return t}))},"230e":function(e,t,r){var n=r("d3f4"),i=r("7726").document,o=n(i)&&n(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},2397:function(e,t,r){var n=r("5ca1"),i=r("2aeb"),o=r("d8e8"),a=r("cb7c"),s=r("d3f4"),l=r("79e5"),u=r("f0c1"),c=(r("7726").Reflect||{}).construct,d=l((function(){function e(){}return!(c((function(){}),[],e)instanceof e)})),h=!l((function(){c((function(){}))}));n(n.S+n.F*(d||h),"Reflect",{construct:function(e,t){o(e),a(t);var r=arguments.length<3?e:o(arguments[2]);if(h&&!d)return c(e,t,r);if(e==r){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 n=[null];return n.push.apply(n,t),new(u.apply(e,n))}var l=r.prototype,f=i(s(l)?l:Object.prototype),p=Function.apply.call(e,f,t);return s(p)?p:f}})},"23be":function(e,t,r){"use strict";r("aa77")("trimLeft",(function(e){return function(){return e(this,1)}}),"trimStart")},"23bf":function(e,t,r){"use strict";var n=r("5ca1"),i=r("fab2"),o=r("2d95"),a=r("77f1"),s=r("9def"),l=[].slice;n(n.P+n.F*r("79e5")((function(){i&&l.call(i)})),"Array",{slice:function(e,t){var r=s(this.length),n=o(this);if(t=void 0===t?r:t,"Array"==n)return l.call(this,e,t);for(var i=a(e,r),u=a(t,r),c=s(u-i),d=new Array(c),h=0;h=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};n.forEach(["delete","get","head"],(function(e){l.headers[e]={}})),n.forEach(["post","put","patch"],(function(e){l.headers[e]=n.merge(o)})),e.exports=l}).call(this,r("4362"))},"24aa":function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(n){"object"===typeof window&&(r=window)}e.exports=r},"24c5":function(e,t,r){"use strict";var n,i,o,a,s=r("b8e3"),l=r("e53d"),u=r("d864"),c=r("40c3"),d=r("63b6"),h=r("f772"),f=r("79aa"),p=r("1173"),m=r("a22a"),g=r("f201"),v=r("4178").set,y=r("aba2")(),b=r("656e"),_=r("4439"),w=r("bc13"),x=r("cd78"),k="Promise",S=l.TypeError,M=l.process,C=M&&M.versions,T=C&&C.v8||"",O=l[k],L="process"==c(M),A=function(){},D=i=b.f,E=!!function(){try{var e=O.resolve(1),t=(e.constructor={})[r("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(n){}}(),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 r=e._c;y((function(){var n=e._v,i=1==e._s,o=0,a=function(t){var r,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?r=n:(c&&c.enter(),r=s(n),c&&(c.exit(),a=!0)),r===t.promise?u(S("Promise-chain cycle")):(o=I(r))?o.call(r,l,u):l(r)):u(n)}catch(d){c&&!a&&c.exit(),u(d)}};while(r.length>o)a(r[o++]);e._c=[],e._n=!1,t&&!e._h&&P(e)}))}},P=function(e){v.call(l,(function(){var t,r,n,i=e._v,o=R(e);if(o&&(t=_((function(){L?M.emit("unhandledRejection",i,e):(r=l.onunhandledrejection)?r({promise:e,reason:i}):(n=l.console)&&n.error&&n.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?M.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,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===e)throw S("Promise can't be resolved itself");(t=I(e))?y((function(){var n={_w:r,_d:!1};try{t.call(e,u(Y,n,1),u(B,n,1))}catch(i){B.call(n,i)}})):(r._v=e,r._s=1,j(r,!1))}catch(n){B.call({_w:r,_d:!1},n)}}};E||(O=function(e){p(this,O,k,"_h"),f(e),n.call(this);try{e(u(Y,this,1),u(B,this,1))}catch(t){B.call(this,t)}},n=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},n.prototype=r("5c95")(O.prototype,{then:function(e,t){var r=D(g(this,O));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=L?M.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&j(this,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),o=function(){var e=new n;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}),r("45f2")(O,k),r("4c95")(k),a=r("584a")[k],d(d.S+d.F*!E,k,{reject:function(e){var t=D(this),r=t.reject;return r(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&&r("4ee1")((function(e){O.all(e)["catch"](A)}))),k,{all:function(e){var t=this,r=D(t),n=r.resolve,i=r.reject,o=_((function(){var r=[],o=0,a=1;m(e,!1,(function(e){var s=o++,l=!1;r.push(void 0),a++,t.resolve(e).then((function(e){l||(l=!0,r[s]=e,--a||n(r))}),i)})),--a||n(r)}));return o.e&&i(o.v),r.promise},race:function(e){var t=this,r=D(t),n=r.reject,i=_((function(){m(e,!1,(function(e){t.resolve(e).then(r.resolve,n)}))}));return i.e&&n(i.v),r.promise}})},"252f":function(e,t,r){"use strict";var n=r("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.line=g;var i=n(r("7037")),o=n(r("278c")),a=n(r("448a")),s=n(r("9523")),l=r("18ad"),u=r("9d85"),c=n(r("050c")),d=r("becb");function h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},r=t.xAxis,n=t.yAxis,i=t.series,o=[];r&&n&&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 r=t.axisData;return e.map((function(t){var n=(0,d.mergeSameStackData)(t,e);n=y(t,n);var i=b(t,r),o=_(n,i),a=w(i);return f(f({},t),{},{linePosition:o.filter((function(e){return e})),lineFillBottomPos:a})}))}function y(e,t){var r=e.data;return t.map((function(e,t){return"number"===typeof r[t]?e:null}))}function b(e,t){var r=e.xAxisIndex,n=e.yAxisIndex,i=t.find((function(e){var t=e.axis,n=e.index;return"x"===t&&n===r})),o=t.find((function(e){var t=e.axis,r=e.index;return"y"===t&&r===n}));return[i,o]}function _(e,t){var r=t.findIndex((function(e){var t=e.data;return"value"===t})),n=t[r],i=t[1-r],o=n.linePosition,a=n.axis,s=i.tickPosition,l=s.length,u="x"===a?0:1,c=o[0][u],d=o[1][u],h=d-c,f=n.maxValue,p=n.minValue,m=f-p,g=new Array(l).fill(0).map((function(t,r){var n=e[r];if("number"!==typeof n)return null;var i=(n-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 r=[e,s[t][1-u]];return 0===u||r.reverse(),r}))}function w(e){var t=e.find((function(e){var t=e.data;return"value"===t})),r=t.axis,n=t.linePosition,i=t.minValue,o=t.maxValue,a="x"===r?0:1,s=n[0][a];if(i<0&&o>0){var l=o-i,u=Math.abs(n[0][a]-n[1][a]),c=Math.abs(i)/l*u;"y"===r&&(c*=-1),s+=c}return{changeIndex:a,changeValue:s}}function x(e){var t=e.animationCurve,r=e.animationFrame,n=e.lineFillBottomPos,i=e.rLevel;return[{name:D(e),index:i,animationCurve:t,animationFrame:r,visible:e.lineArea.show,lineFillBottomPos:n,shape:k(e),style:S(e),drawed:C}]}function k(e){var t=e.linePosition;return{points:t}}function S(e){var t=e.lineArea,r=e.color,n=t.gradient,i=t.style,o=[i.fill||r],a=(0,d.deepMerge)(o,n);1===a.length&&a.push(a[0]);var s=M(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 M(e){var t=e.lineFillBottomPos,r=e.linePosition,n=t.changeIndex,i=t.changeValue,o=r.map((function(e){return e[n]})),s=Math.max.apply(Math,(0,a["default"])(o)),l=Math.min.apply(Math,(0,a["default"])(o)),u=s;return 1===n&&(u=l),1===n?[0,u,0,i]:[u,0,i,0]}function C(e,t){var r=e.lineFillBottomPos,n=e.shape,i=t.ctx,o=n.points,s=r.changeIndex,l=r.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],r=f({},t.style);return r.opacity=0,t.style=r,[t]}function O(e,t,r,n){var i=e[r];if(i){var o=D(t),a=n.chart.render,s=i[0].name,l=o!==s;l&&(i.forEach((function(e){return a.delGraph(e)})),e[r]=null)}}function L(e,t){var r=t.shape.points,n=e.shape.points,i=n.length,o=r.length;if(o>i){var s=n.slice(-1)[0],l=new Array(o-i).fill(0).map((function(e){return(0,a["default"])(s)}));n.push.apply(n,(0,a["default"])(l))}else o1&&void 0!==arguments[1]&&arguments[1];if(!t)return(0,d.getPolylineLength)(e);var r=p(e);return m(r)}function j(e){var t=e.lineStyle.lineDash,r=A(e)[0],n=r.style.lineDash;return n=t?[0,0]:(0,a["default"])(n).reverse(),r.style.lineDash=n,[r]}function P(e){var t=e.animationCurve,r=e.animationFrame,n=e.rLevel,i=R(e),o=N(e);return i.map((function(i){return{name:"circle",index:n+2,visible:e.linePoint.show,animationCurve:t,animationFrame:r,shape:i,style:o}}))}function R(e){var t=e.linePosition,r=e.linePoint.radius;return t.map((function(e){var t=(0,o["default"])(e,2),n=t[0],i=t[1];return{r:r,rx:n,ry:i}}))}function N(e){var t=e.color,r=e.linePoint.style;return(0,d.deepMerge)({stroke:t},r)}function B(e){var t=P(e);return t.forEach((function(e){e.shape.r=.1})),t}function Y(e){var t=e.animationCurve,r=e.animationFrame,n=e.rLevel,i=F(e),o=W(e);return i.map((function(i,a){return{name:"text",index:n+3,visible:e.label.show,animationCurve:t,animationFrame:r,shape:i,style:o}}))}function F(e){var t=U(e),r=z(e);return t.map((function(e,t){return{content:e,position:r[t]}}))}function z(e){var t=e.linePosition,r=e.lineFillBottomPos,n=e.label,i=n.position,o=n.offset,s=r.changeIndex,l=r.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 r=(0,o["default"])(e,2),n=r[0],i=r[1],a=(0,o["default"])(t,2),s=a[0],l=a[1];return[n+s,i+l]}function V(e,t){var r=(0,o["default"])(e,2),n=r[0],i=r[1],a=(0,o["default"])(t,2),s=a[0],l=a[1];return[(n+s)/2,(i+l)/2]}function U(e){var t=e.data,r=e.label.formatter;if(t=t.filter((function(e){return"number"===typeof e})).map((function(e){return e.toString()})),!r)return t;var n=(0,i["default"])(r);return"string"===n?t.map((function(e){return r.replace("{value}",e)})):"function"===n?t.map((function(e,t){return r({value:e,index:t})})):t}function W(e){var t=e.color,r=e.label.style;return(0,d.deepMerge)({fill:t},r)}},2554:function(e,t,r){(function(e,t){t(r("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration function t(e,t,r,n){switch(r){case"m":return t?"jedna minuta":n?"jednu minutu":"jedne minute"}}function r(e,t,r){var n=e+" ";switch(r){case"ss":return n+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi",n;case"mm":return n+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta",n;case"h":return"jedan sat";case"hh":return n+=1===e?"sat":2===e||3===e||4===e?"sata":"sati",n;case"dd":return n+=1===e?"dan":"dana",n;case"MM":return n+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci",n;case"yy":return n+=1===e?"godina":2===e||3===e||4===e?"godine":"godina",n}}var n=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:r,m:t,mm:r,h:r,hh:r,d:"dan",dd:r,M:"mjesec",MM:r,y:"godinu",yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return n}))},"25b0":function(e,t,r){r("1df8"),e.exports=r("584a").Object.setPrototypeOf},"25c9":function(e,t,r){var n=r("5ca1"),i=Math.exp;n(n.S,"Math",{cosh:function(e){return(i(e=+e)+i(-e))/2}})},"25db":function(e,t,r){r("5eda")("getOwnPropertyNames",(function(){return r("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,r){var n=r("5ca1");n(n.G+n.W+n.F*!r("0f88").ABV,{DataView:r("ed0b").DataView})},2655:function(e,t){function r(e){return!!e&&("object"===typeof e||"function"===typeof e)&&"function"===typeof e.then}e.exports=r,e.exports.default=r},"26f9":function(e,t,r){(function(e,t){t(r("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 r(e,t,r,n){return t?"kelios sekundės":n?"kelių sekundžių":"kelias sekundes"}function n(e,t,r,n){return t?o(r)[0]:n?o(r)[1]:o(r)[2]}function i(e){return e%10===0||e>10&&e<20}function o(e){return t[e].split("_")}function a(e,t,r,a){var s=e+" ";return 1===e?s+n(e,t,r[0],a):t?s+(i(e)?o(r)[1]:o(r)[0]):a?s+o(r)[1]:s+(i(e)?o(r)[1]:o(r)[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:r,ss:a,m:n,mm:a,h:n,hh:a,d:n,dd:a,M:n,MM:a,y:n,yy:a},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(e){return e+"-oji"},week:{dow:1,doy:4}});return s}))},2748:function(e,t,r){var n=r("5ca1"),i=180/Math.PI;n(n.S,"Math",{degrees:function(e){return e*i}})},"278c":function(e,t,r){var n=r("c135"),i=r("9b42"),o=r("6613"),a=r("c240");function s(e,t){return n(e)||i(e,t)||o(e,t)||a()}e.exports=s,e.exports.__esModule=!0,e.exports["default"]=e.exports},"27ee":function(e,t,r){var n=r("23c6"),i=r("2b4c")("iterator"),o=r("84f2");e.exports=r("8378").getIteratorMethod=function(e){if(void 0!=e)return e[i]||e["@@iterator"]||o[n(e)]}},2848:function(e,t,r){},2877:function(e,t,r){"use strict";function n(e,t,r,n,i,o,a,s){var l,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=r,u._compiled=!0),n&&(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}}r.d(t,"a",(function(){return n}))},"28a5":function(e,t,r){"use strict";var n=r("aae3"),i=r("cb7c"),o=r("ebd6"),a=r("0390"),s=r("9def"),l=r("5f1b"),u=r("520a"),c=r("79e5"),d=Math.min,h=[].push,f="split",p="length",m="lastIndex",g=4294967295,v=!c((function(){RegExp(g,"y")}));r("214f")("split",2,(function(e,t,r,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(!n(e))return r.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?[]:r.call(this,e,t)}:r,[function(r,n){var i=e(this),o=void 0==r?void 0:r[t];return void 0!==o?o.call(r,i,n):y.call(String(i),r,n)},function(e,t){var n=c(y,e,this,t,y!==r);if(n.done)return n.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,r,n){var i=t.words[n];return 1===n.length?r?i[0]:i[1]:e+" "+t.correctGrammaticalCase(e,i)}},r=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 r}))},"294c":function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},"2a66":function(e,t,r){(function(t,n,i){e.exports=n(r("21bf"),r("38ba"))})(0,(function(e){return e.pad.ZeroPadding={pad:function(e,t){var r=4*t;e.clamp(),e.sigBytes+=r-(e.sigBytes%r||r)},unpad:function(e){var t=e.words,r=e.sigBytes-1;for(r=e.sigBytes-1;r>=0;r--)if(t[r>>>2]>>>24-r%4*8&255){e.sigBytes=r+1;break}}},e.pad.ZeroPadding}))},"2aba":function(e,t,r){var n=r("7726"),i=r("32e9"),o=r("69a8"),a=r("ca5a")("src"),s=r("fa5b"),l="toString",u=(""+s).split(l);r("8378").inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,r,s){var l="function"==typeof r;l&&(o(r,"name")||i(r,"name",t)),e[t]!==r&&(l&&(o(r,a)||i(r,a,e[t]?""+e[t]:u.join(String(t)))),e===n?e[t]=r:s?e[t]?e[t]=r:i(e,t,r):(delete e[t],i(e,t,r)))})(Function.prototype,l,(function(){return"function"==typeof this&&this[a]||s.call(this)}))},"2aeb":function(e,t,r){var n=r("cb7c"),i=r("1495"),o=r("e11e"),a=r("613b")("IE_PROTO"),s=function(){},l="prototype",u=function(){var e,t=r("230e")("iframe"),n=o.length,i="<",a=">";t.style.display="none",r("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(n--)delete u[l][o[n]];return u()};e.exports=Object.create||function(e,t){var r;return null!==e?(s[l]=n(e),r=new s,s[l]=null,r[a]=e):r=u(),void 0===t?r:i(r,t)}},"2b0e":function(e,t,r){"use strict";r.r(t),function(e){ /*! * Vue.js v2.6.10 * (c) 2014-2019 Evan You * Released under the MIT License. */ var r=Object.freeze({});function n(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 r=Object.create(null),n=e.split(","),i=0;i-1)return e.splice(r,1)}}var b=Object.prototype.hasOwnProperty;function _(e,t){return b.call(e,t)}function w(e){var t=Object.create(null);return function(r){var n=t[r];return n||(t[r]=e(r))}}var x=/-(\w)/g,k=w((function(e){return e.replace(x,(function(e,t){return t?t.toUpperCase():""}))})),S=w((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),M=/\B([A-Z])/g,C=w((function(e){return e.replace(M,"-$1").toLowerCase()}));function T(e,t){function r(r){var n=arguments.length;return n?n>1?e.apply(t,arguments):e.call(t,r):e.call(t)}return r._length=e.length,r}function O(e,t){return e.bind(t)}var L=Function.prototype.bind?O:T;function A(e,t){t=t||0;var r=e.length-t,n=new Array(r);while(r--)n[r]=e[r+t];return n}function D(e,t){for(var r in t)e[r]=t[r];return e}function E(e){for(var t={},r=0;r0,re=Q&&Q.indexOf("edge/")>0,ne=(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,r=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||"")+"_"+r),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)&&n(a.key)&&i(t)&&(a.key="__vlist"+t+"_"+r+"__"),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(r){je(e,r,t[r])})),Le(!0))}function At(e,t){if(e){for(var r=Object.create(null),n=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&&n&&n!==r&&s===n.$key&&!o&&!n.$hasNormal)return n;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),W(i,"$stable",a),W(i,"$key",s),W(i,"$hasNormal",o),i}function jt(e,t,r){var n=function(){var e=arguments.length?r.apply(null,arguments):r({});return e=e&&"object"===typeof e&&!Array.isArray(e)?[e]:Mt(e),e&&(0===e.length||1===e.length&&e[0].isComment)?void 0:e};return r.proxy&&Object.defineProperty(e,t,{get:n,enumerable:!0,configurable:!0}),n}function Pt(e,t){return function(){return e[t]}}function Rt(e,t){var r,n,o,a,s;if(Array.isArray(e)||"string"===typeof e)for(r=new Array(e.length),n=0,o=e.length;n1?A(r):r;for(var n=A(arguments,1),i='event handler for "'+e+'"',o=0,a=r.length;odocument.createEvent("Event").timeStamp&&(Gr=function(){return qr.now()})}function Xr(){var e,t;for($r=Gr(),Vr=!0,Yr.sort((function(e,t){return e.id-t.id})),Ur=0;UrUr&&Yr[r].id>e.id)r--;Yr.splice(r+1,0,e)}else Yr.push(e);Hr||(Hr=!0,pt(Xr))}}var en=0,tn=function(e,t,r,n,i){this.vm=e,i&&(e._watcher=this),e._watchers.push(this),n?(this.deep=!!n.deep,this.user=!!n.user,this.lazy=!!n.lazy,this.sync=!!n.sync,this.before=n.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=r,this.id=++en,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()};tn.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},tn.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))},tn.prototype.cleanupDeps=function(){var e=this.deps.length;while(e--){var t=this.deps[e];this.newDepIds.has(t.id)||t.removeSub(this)}var r=this.depIds;this.depIds=this.newDepIds,this.newDepIds=r,this.newDepIds.clear(),r=this.deps,this.deps=this.newDeps,this.newDeps=r,this.newDeps.length=0},tn.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():Qr(this)},tn.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)}}},tn.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},tn.prototype.depend=function(){var e=this.deps.length;while(e--)this.deps[e].depend()},tn.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 rn={enumerable:!0,configurable:!0,get:I,set:I};function nn(e,t,r){rn.get=function(){return this[t][r]},rn.set=function(e){this[t][r]=e},Object.defineProperty(e,r,rn)}function on(e){e._watchers=[];var t=e.$options;t.props&&an(e,t.props),t.methods&&pn(e,t.methods),t.data?sn(e):Ie(e._data={},!0),t.computed&&cn(e,t.computed),t.watch&&t.watch!==oe&&mn(e,t.watch)}function an(e,t){var r=e.$options.propsData||{},n=e._props={},i=e.$options._propKeys=[],o=!e.$parent;o||Le(!1);var a=function(o){i.push(o);var a=Ke(o,t,r,e);je(n,o,a),o in e||nn(e,"_props",o)};for(var s in t)a(s);Le(!0)}function sn(e){var t=e.$options.data;t=e._data="function"===typeof t?ln(t,e):t||{},c(t)||(t={});var r=Object.keys(t),n=e.$options.props,i=(e.$options.methods,r.length);while(i--){var o=r[i];0,n&&_(n,o)||U(o)||nn(e,"_data",o)}Ie(t,!0)}function ln(e,t){ve();try{return e.call(t,t)}catch(ka){return tt(ka,t,"data()"),{}}finally{ye()}}var un={lazy:!0};function cn(e,t){var r=e._computedWatchers=Object.create(null),n=le();for(var i in t){var o=t[i],a="function"===typeof o?o:o.get;0,n||(r[i]=new tn(e,a||I,I,un)),i in e||dn(e,i,o)}}function dn(e,t,r){var n=!le();"function"===typeof r?(rn.get=n?hn(t):fn(r),rn.set=I):(rn.get=r.get?n&&!1!==r.cache?hn(t):fn(r.get):I,rn.set=r.set||I),Object.defineProperty(e,t,rn)}function hn(e){return function(){var t=this._computedWatchers&&this._computedWatchers[e];if(t)return t.dirty&&t.evaluate(),me.target&&t.depend(),t.value}}function fn(e){return function(){return e.call(this,this)}}function pn(e,t){e.$options.props;for(var r in t)e[r]="function"!==typeof t[r]?I:L(t[r],e)}function mn(e,t){for(var r in t){var n=t[r];if(Array.isArray(n))for(var i=0;i-1)return this;var r=A(arguments,1);return r.unshift(this),"function"===typeof e.install?e.install.apply(e,r):"function"===typeof e&&e.apply(null,r),t.push(e),this}}function Mn(e){e.mixin=function(e){return this.options=qe(this.options,e),this}}function Cn(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var r=this,n=r.cid,i=e._Ctor||(e._Ctor={});if(i[n])return i[n];var o=e.name||r.options.name;var a=function(e){this._init(e)};return a.prototype=Object.create(r.prototype),a.prototype.constructor=a,a.cid=t++,a.options=qe(r.options,e),a["super"]=r,a.options.props&&Tn(a),a.options.computed&&On(a),a.extend=r.extend,a.mixin=r.mixin,a.use=r.use,F.forEach((function(e){a[e]=r[e]})),o&&(a.options.components[o]=a),a.superOptions=r.options,a.extendOptions=e,a.sealedOptions=D({},a.options),i[n]=a,a}}function Tn(e){var t=e.options.props;for(var r in t)nn(e.prototype,"_props",r)}function On(e){var t=e.options.computed;for(var r in t)dn(e.prototype,r,t[r])}function Ln(e){F.forEach((function(t){e[t]=function(e,r){return r?("component"===t&&c(r)&&(r.name=r.name||e,r=this.options._base.extend(r)),"directive"===t&&"function"===typeof r&&(r={bind:r,update:r}),this.options[t+"s"][e]=r,r):this.options[t+"s"][e]}}))}function An(e){return e&&(e.Ctor.options.name||e.tag)}function Dn(e,t){return Array.isArray(e)?e.indexOf(t)>-1:"string"===typeof e?e.split(",").indexOf(t)>-1:!!d(e)&&e.test(t)}function En(e,t){var r=e.cache,n=e.keys,i=e._vnode;for(var o in r){var a=r[o];if(a){var s=An(a.componentOptions);s&&!t(s)&&In(r,o,n,i)}}}function In(e,t,r,n){var i=e[t];!i||n&&i.tag===n.tag||i.componentInstance.$destroy(),e[t]=null,y(r,t)}bn(kn),vn(kn),Or(kn),Er(kn),vr(kn);var jn=[String,RegExp,Array],Pn={name:"keep-alive",abstract:!0,props:{include:jn,exclude:jn,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)In(this.cache,e,this.keys)},mounted:function(){var e=this;this.$watch("include",(function(t){En(e,(function(e){return Dn(t,e)}))})),this.$watch("exclude",(function(t){En(e,(function(e){return!Dn(t,e)}))}))},render:function(){var e=this.$slots.default,t=xr(e),r=t&&t.componentOptions;if(r){var n=An(r),i=this,o=i.include,a=i.exclude;if(o&&(!n||!Dn(o,n))||a&&n&&Dn(a,n))return t;var s=this,l=s.cache,u=s.keys,c=null==t.key?r.Ctor.cid+(r.tag?"::"+r.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)&&In(l,u[0],u,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}},Rn={KeepAlive:Pn};function Nn(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,Rn),Sn(e),Mn(e),Cn(e),Ln(e)}Nn(kn),Object.defineProperty(kn.prototype,"$isServer",{get:le}),Object.defineProperty(kn.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(kn,"FunctionalRenderContext",{value:Zt}),kn.version="2.6.10";var Bn=g("style,class"),Yn=g("input,textarea,option,select,progress"),Fn=function(e,t,r){return"value"===r&&Yn(e)&&"button"!==t||"selected"===r&&"option"===e||"checked"===r&&"input"===e||"muted"===r&&"video"===e},zn=g("contenteditable,draggable,spellcheck"),Hn=g("events,caret,typing,plaintext-only"),Vn=function(e,t){return qn(t)||"false"===t?"false":"contenteditable"===e&&Hn(t)?t:"true"},Un=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"),Wn="http://www.w3.org/1999/xlink",$n=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},Gn=function(e){return $n(e)?e.slice(6,e.length):""},qn=function(e){return null==e||!1===e};function Xn(e){var t=e.data,r=e,n=e;while(i(n.componentInstance))n=n.componentInstance._vnode,n&&n.data&&(t=Kn(n.data,t));while(i(r=r.parent))r&&r.data&&(t=Kn(t,r.data));return Zn(t.staticClass,t.class)}function Kn(e,t){return{staticClass:Jn(e.staticClass,t.staticClass),class:i(e.class)?[e.class,t.class]:t.class}}function Zn(e,t){return i(e)||i(t)?Jn(e,Qn(t)):""}function Jn(e,t){return e?t?e+" "+t:e:t||""}function Qn(e){return Array.isArray(e)?ei(e):l(e)?ti(e):"string"===typeof e?e:""}function ei(e){for(var t,r="",n=0,o=e.length;n-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 r=document.createElement(e);return"select"!==e||t.data&&t.data.attrs&&void 0!==t.data.attrs.multiple&&r.setAttribute("multiple","multiple"),r}function hi(e,t){return document.createElementNS(ri[e],t)}function fi(e){return document.createTextNode(e)}function pi(e){return document.createComment(e)}function mi(e,t,r){e.insertBefore(t,r)}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}),Si={create:function(e,t){Mi(t)},update:function(e,t){e.data.ref!==t.data.ref&&(Mi(e,!0),Mi(t))},destroy:function(e){Mi(e,!0)}};function Mi(e,t){var r=e.data.ref;if(i(r)){var n=e.context,o=e.componentInstance||e.elm,a=n.$refs;t?Array.isArray(a[r])?y(a[r],o):a[r]===o&&(a[r]=void 0):e.data.refInFor?Array.isArray(a[r])?a[r].indexOf(o)<0&&a[r].push(o):a[r]=[o]:a[r]=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&&n(t.asyncFactory.error))}function Li(e,t){if("input"!==e.tag)return!0;var r,n=i(r=e.data)&&i(r=r.attrs)&&r.type,o=i(r=t.data)&&i(r=r.attrs)&&r.type;return n===o||ui(n)&&ui(o)}function Ai(e,t,r){var n,o,a={};for(n=t;n<=r;++n)o=e[n].key,i(o)&&(a[o]=n);return a}function Di(e){var t,r,a={},l=e.modules,u=e.nodeOps;for(t=0;tm?(d=n(r[y+1])?null:r[y+1].elm,k(e,d,r,p,y,o)):p>y&&M(e,t,h,m)}function O(e,t,r,n){for(var o=r;o-1?Hi(e,t,r):Un(t)?qn(r)?e.removeAttribute(t):(r="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,r)):zn(t)?e.setAttribute(t,Vn(t,r)):$n(t)?qn(r)?e.removeAttributeNS(Wn,Gn(t)):e.setAttributeNS(Wn,t,r):Hi(e,t,r)}function Hi(e,t,r){if(qn(r))e.removeAttribute(t);else{if(ee&&!te&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==r&&!e.__ieph){var n=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",n)};e.addEventListener("input",n),e.__ieph=!0}e.setAttribute(t,r)}}var Vi={create:Fi,update:Fi};function Ui(e,t){var r=t.elm,o=t.data,a=e.data;if(!(n(o.staticClass)&&n(o.class)&&(n(a)||n(a.staticClass)&&n(a.class)))){var s=Xn(t),l=r._transitionClasses;i(l)&&(s=Jn(s,Qn(l))),s!==r._prevClass&&(r.setAttribute("class",s),r._prevClass=s)}}var Wi,$i={create:Ui,update:Ui},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,r){var n=Wi;return function i(){var o=t.apply(null,arguments);null!==o&&Qi(e,i,r,n)}}var Zi=at&&!(ie&&Number(ie[1])<=53);function Ji(e,t,r,n){if(Zi){var i=$r,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)}}Wi.addEventListener(e,t,ae?{capture:r,passive:n}:r)}function Qi(e,t,r,n){(n||Wi).removeEventListener(e,t._wrapper||t,r)}function eo(e,t){if(!n(e.data.on)||!n(t.data.on)){var r=t.data.on||{},i=e.data.on||{};Wi=t.elm,Xi(r),_t(r,i,Ji,Qi,Ki,t.context),Wi=void 0}}var to,ro={create:eo,update:eo};function no(e,t){if(!n(e.data.domProps)||!n(t.data.domProps)){var r,o,a=t.elm,s=e.data.domProps||{},l=t.data.domProps||{};for(r in i(l.__ob__)&&(l=t.data.domProps=D({},l)),s)r in l||(a[r]="");for(r in l){if(o=l[r],"textContent"===r||"innerHTML"===r){if(t.children&&(t.children.length=0),o===s[r])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===r&&"PROGRESS"!==a.tagName){a._value=o;var u=n(o)?"":String(o);io(a,u)&&(a.value=u)}else if("innerHTML"===r&&ii(a.tagName)&&n(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[r])try{a[r]=o}catch(ka){}}}}function io(e,t){return!e.composing&&("OPTION"===e.tagName||oo(e,t)||ao(e,t))}function oo(e,t){var r=!0;try{r=document.activeElement!==e}catch(ka){}return r&&e.value!==t}function ao(e,t){var r=e.value,n=e._vModifiers;if(i(n)){if(n.number)return m(r)!==m(t);if(n.trim)return r.trim()!==t.trim()}return r!==t}var so={create:no,update:no},lo=w((function(e){var t={},r=/;(?![^(]*\))/g,n=/:(.+)/;return e.split(r).forEach((function(e){if(e){var r=e.split(n);r.length>1&&(t[r[0].trim()]=r[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 r,n={};if(t){var i=e;while(i.componentInstance)i=i.componentInstance._vnode,i&&i.data&&(r=uo(i.data))&&D(n,r)}(r=uo(e.data))&&D(n,r);var o=e;while(o=o.parent)o.data&&(r=uo(o.data))&&D(n,r);return n}var fo,po=/^--/,mo=/\s*!important$/,go=function(e,t,r){if(po.test(t))e.style.setProperty(t,r);else if(mo.test(r))e.style.setProperty(C(t),r.replace(mo,""),"important");else{var n=yo(t);if(Array.isArray(r))for(var i=0,o=r.length;i-1?t.split(wo).forEach((function(t){return e.classList.add(t)})):e.classList.add(t);else{var r=" "+(e.getAttribute("class")||"")+" ";r.indexOf(" "+t+" ")<0&&e.setAttribute("class",(r+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 r=" "+(e.getAttribute("class")||"")+" ",n=" "+t+" ";while(r.indexOf(n)>=0)r=r.replace(n," ");r=r.trim(),r?e.setAttribute("class",r):e.removeAttribute("class")}}function So(e){if(e){if("object"===typeof e){var t={};return!1!==e.css&&D(t,Mo(e.name||"v")),D(t,e),t}return"string"===typeof e?Mo(e):void 0}}var Mo=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 r=e._transitionClasses||(e._transitionClasses=[]);r.indexOf(t)<0&&(r.push(t),xo(e,t))}function Ro(e,t){e._transitionClasses&&y(e._transitionClasses,t),ko(e,t)}function No(e,t,r){var n=Yo(e,t),i=n.type,o=n.timeout,a=n.propCount;if(!i)return r();var s=i===To?Ao:Eo,l=0,u=function(){e.removeEventListener(s,c),r()},c=function(t){t.target===e&&++l>=a&&u()};setTimeout((function(){l0&&(r=To,c=a,d=o.length):t===Oo?u>0&&(r=Oo,c=u,d=l.length):(c=Math.max(a,u),r=c>0?a>u?To:Oo:null,d=r?r===To?o.length:l.length:0);var h=r===To&&Bo.test(n[Lo+"Property"]);return{type:r,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,ro,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,r,n){"select"===r.tag?(n.elm&&!n.elm._vOptions?wt(r,"postpatch",(function(){Zo.componentUpdated(e,t,r)})):Jo(e,t,r.context),e._vOptions=[].map.call(e.options,ta)):("textarea"===r.tag||ui(e.type))&&(e._vModifiers=t.modifiers,t.modifiers.lazy||(e.addEventListener("compositionstart",ra),e.addEventListener("compositionend",na),e.addEventListener("change",na),te&&(e.vmodel=!0)))},componentUpdated:function(e,t,r){if("select"===r.tag){Jo(e,t,r.context);var n=e._vOptions,i=e._vOptions=[].map.call(e.options,ta);if(i.some((function(e,t){return!R(e,n[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,r){Qo(e,t,r),(ee||re)&&setTimeout((function(){Qo(e,t,r)}),0)}function Qo(e,t,r){var n=t.value,i=e.multiple;if(!i||Array.isArray(n)){for(var o,a,s=0,l=e.options.length;s-1,a.selected!==o&&(a.selected=o);else if(R(ta(a),n))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 ra(e){e.target.composing=!0}function na(e){e.target.composing&&(e.target.composing=!1,ia(e.target,"input"))}function ia(e,t){var r=document.createEvent("HTMLEvents");r.initEvent(t,!0,!0),e.dispatchEvent(r)}function oa(e){return!e.componentInstance||e.data&&e.data.transition?e:oa(e.componentInstance._vnode)}var aa={bind:function(e,t,r){var n=t.value;r=oa(r);var i=r.data&&r.data.transition,o=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;n&&i?(r.data.show=!0,Ho(r,(function(){e.style.display=o}))):e.style.display=n?o:"none"},update:function(e,t,r){var n=t.value,i=t.oldValue;if(!n!==!i){r=oa(r);var o=r.data&&r.data.transition;o?(r.data.show=!0,n?Ho(r,(function(){e.style.display=e.__vOriginalDisplay})):Vo(r,(function(){e.style.display="none"}))):e.style.display=n?e.__vOriginalDisplay:"none"}},unbind:function(e,t,r,n,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(xr(t.children)):e}function ca(e){var t={},r=e.$options;for(var n in r.propsData)t[n]=e[n];var i=r._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||wr(e)},ma=function(e){return"show"===e.name},ga={name:"transition",props:la,abstract:!0,render:function(e){var t=this,r=this.$slots.default;if(r&&(r=r.filter(pa),r.length)){0;var n=this.mode;0;var i=r[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)&&!wr(c)&&(!c.componentInstance||!c.componentInstance._vnode.isComment)){var d=c.data.transition=D({},l);if("out-in"===n)return this._leaving=!0,wt(d,"afterLeave",(function(){t._leaving=!1,t.$forceUpdate()})),da(e,i);if("in-out"===n){if(wr(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(r,n){var i=Ar(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,i(),t.call(e,r,n)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",r=Object.create(null),n=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,r){var n=r("5ca1");n(n.S,"Array",{isArray:r("1169")})},"2d00":function(e,t){e.exports=!1},"2d34":function(e,t,r){var n=r("5ca1"),i=r("38fd"),o=r("cb7c");n(n.S,"Reflect",{getPrototypeOf:function(e){return i(o(e))}})},"2d5c":function(e,t){var r=Math.expm1;e.exports=!r||r(10)>22025.465794806718||r(10)<22025.465794806718||-2e-17!=r(-2e-17)?function(e){return 0==(e=+e)?e:e>-1e-6&&e<1e-6?e+e*e/2:Math.exp(e)-1}:r},"2d63":function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=r("f921"),i=r.n(n),o=r("d8d6"),a=r.n(o),s=r("f410"),l=r.n(s),u=r("e630");function c(e,t){var r="undefined"!==typeof i.a&&e[a.a]||e["@@iterator"];if(!r){if(l()(e)||(r=Object(u["a"])(e))||t&&e&&"number"===typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},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(){r=r.call(e)},n:function(){var e=r.next();return c=e.done,e},e:function(e){d=!0,s=e},f:function(){try{c||null==r["return"]||r["return"]()}finally{if(d)throw s}}}}},"2d83":function(e,t,r){"use strict";var n=r("387f");e.exports=function(e,t,r,i,o){var a=new Error(e);return n(a,t,r,i,o)}},"2d95":function(e,t){var r={}.toString;e.exports=function(e){return r.call(e).slice(8,-1)}},"2db9":function(e,t,r){"use strict";var n=r("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.bezierCurveToPolyline=b,t.getBezierCurveLength=_,t["default"]=void 0;var i=n(r("278c")),o=n(r("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,r=e.length-1,n=e[0],i=e[r][2],a=e.slice(1),s=a.map((function(e,t){var r=0===t?n:a[t-1][2];return h.apply(void 0,[r].concat((0,o["default"])(e)))})),l=new Array(r).fill(c),u=g(s,l),d=y(u,s,a,t);return d.segmentPoints.push(i),d}function h(e,t,r,n){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*r[0]*c*o+n[0]*u,e[1]*a+3*t[1]*i*l+3*r[1]*c*o+n[1]*u]}}function f(e,t){var r=(0,i["default"])(e,2),n=r[0],o=r[1],l=(0,i["default"])(t,2),u=l[0],c=l[1];return a(s(n-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,r){return f(e[r],e[r+1])}))}))}function g(e,t){return e.map((function(e,r){var n=1/t[r];return new Array(t[r]).fill("").map((function(t,r){return e(r*n)}))}))}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,r,n){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(r[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<=n)return"break";a=l(h/n*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(r[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,r){for(var n=y[r],o=new Array(n).fill("").map((function(e,t){return t/y[r]})),a=0;a1&&(o[c]=1),o[c]<0&&(o[c]=0),e[r][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 r=d(e,t),n=r.segmentPoints;return n}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 r=d(e,t),n=r.segmentPoints,i=m([n])[0],o=p(i);return o}var w=b;t["default"]=w},"2e08":function(e,t,r){var n=r("9def"),i=r("9744"),o=r("be13");e.exports=function(e,t,r,a){var s=String(o(e)),l=s.length,u=void 0===r?" ":String(r),c=n(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,r){var n=r("5ca1");n(n.S,"Number",{EPSILON:Math.pow(2,-52)})},"2e67":function(e,t,r){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},"2e8c":function(e,t,r){(function(e,t){t(r("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,r){(function(e,n){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,S=32,M=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",S],["partialRight",M],["rearg",T]],U="[object Arguments]",W="[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]",re="[object Object]",ne="[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,Se=/\b(__p \+=) '' \+/g,Me=/(__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,Ue=/[()=,{}\[\]\/\s]/,We=/\\(\\)?/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,rt="\\ud800-\\udfff",nt="\\u0300-\\u036f",it="\\ufe20-\\ufe2f",ot="\\u20d0-\\u20ff",at=nt+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="["+rt+"]",yt="["+mt+"]",bt="["+at+"]",_t="\\d+",wt="["+st+"]",xt="["+lt+"]",kt="[^"+rt+mt+_t+st+lt+ft+"]",St="\\ud83c[\\udffb-\\udfff]",Mt="(?:"+bt+"|"+St+")",Ct="[^"+rt+"]",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=Mt+"?",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"),Ut=RegExp(bt,"g"),Wt=RegExp(St+"(?="+St+")|"+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+rt+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[U]=Zt[W]=Zt[he]=Zt[G]=Zt[fe]=Zt[q]=Zt[K]=Zt[Z]=Zt[Q]=Zt[ee]=Zt[re]=Zt[oe]=Zt[ae]=Zt[se]=Zt[ce]=!1;var Jt={};Jt[U]=Jt[W]=Jt[he]=Jt[fe]=Jt[G]=Jt[q]=Jt[pe]=Jt[me]=Jt[ge]=Jt[ve]=Jt[ye]=Jt[Q]=Jt[ee]=Jt[re]=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"},er={"&":"&","<":"<",">":">",'"':""","'":"'"},tr={"&":"&","<":"<",">":">",""":'"',"'":"'"},rr={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},nr=parseFloat,ir=parseInt,or="object"==typeof e&&e&&e.Object===Object&&e,ar="object"==typeof self&&self&&self.Object===Object&&self,sr=or||ar||Function("return this")(),lr=t&&!t.nodeType&&t,ur=lr&&"object"==typeof n&&n&&!n.nodeType&&n,cr=ur&&ur.exports===lr,dr=cr&&or.process,hr=function(){try{var e=ur&&ur.require&&ur.require("util").types;return e||dr&&dr.binding&&dr.binding("util")}catch(t){}}(),fr=hr&&hr.isArrayBuffer,pr=hr&&hr.isDate,mr=hr&&hr.isMap,gr=hr&&hr.isRegExp,vr=hr&&hr.isSet,yr=hr&&hr.isTypedArray;function br(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function _r(e,t,r,n){var i=-1,o=null==e?0:e.length;while(++i-1}function Cr(e,t,r){var n=-1,i=null==e?0:e.length;while(++n-1);return r}function Qr(e,t){var r=e.length;while(r--&&Nr(t,e[r],0)>-1);return r}function en(e,t){var r=e.length,n=0;while(r--)e[r]===t&&++n;return n}var tn=Hr(Qt),rn=Hr(er);function nn(e){return"\\"+rr[e]}function on(e,t){return null==e?o:e[t]}function an(e){return Gt.test(e)}function sn(e){return qt.test(e)}function ln(e){var t,r=[];while(!(t=e.next()).done)r.push(t.value);return r}function un(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}function cn(e,t){return function(r){return e(t(r))}}function dn(e,t){var r=-1,n=e.length,i=0,o=[];while(++r-1}function Hn(e,t){var r=this.__data__,n=ci(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function Vn(e){var t=-1,r=null==e?0:e.length;this.clear();while(++t=t?e:t)),e}function vi(e,t,r,n,i,a){var s,l=t&p,u=t&m,c=t&g;if(r&&(s=i?r(e,n,i,a):r(e)),s!==o)return s;if(!Sc(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==re||h==U||f&&!i){if(s=u||f?{}:rs(e),!l)return u?sa(e,fi(s,e)):aa(e,hi(s,e))}else{if(!Jt[h])return i?e:{};s=ns(e,h,l)}}a||(a=new Jn);var v=a.get(e);if(v)return v;a.set(e,s),Nc(e)?e.forEach((function(n){s.add(vi(n,t,r,n,e,a))})):Cc(e)&&e.forEach((function(n,i){s.set(i,vi(n,t,r,i,e,a))}));var y=c?u?Fa:Ya:u?kd:xd,b=d?o:y(e);return wr(b||e,(function(n,i){b&&(i=n,n=e[i]),ui(s,i,vi(n,t,r,i,e,a))})),s}function yi(e){var t=xd(e);return function(r){return bi(r,e,t)}}function bi(e,t,r){var n=r.length;if(null==e)return!n;e=rt(e);while(n--){var i=r[n],a=t[i],s=e[i];if(s===o&&!(i in e)||!a(s))return!1}return!0}function _i(e,t,r){if("function"!=typeof e)throw new ot(u);return Ms((function(){e.apply(o,r)}),t)}function wi(e,t,r,n){var i=-1,o=Mr,a=!0,l=e.length,u=[],c=t.length;if(!l)return u;r&&(t=Tr(t,Xr(r))),n?(o=Cr,a=!1):t.length>=s&&(o=Zr,a=!1,t=new Xn(t));e:while(++ii?0:i+r),n=n===o||n>i?i:qc(n),n<0&&(n+=i),n=r>n?0:Xc(n);while(r0&&r(s)?t>1?Oi(s,t-1,r,n,i):Or(i,s):n||(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 Sr(t,(function(t){return wc(e[t])}))}function ji(e,t){t=Uo(t,e);var r=0,n=t.length;while(null!=e&&rt}function Bi(e,t){return null!=e&&dt.call(e,t)}function Yi(e,t){return null!=e&&t in rt(e)}function Fi(e,t,r){return e>=zt(t,r)&&e=120&&h.length>=120)?new Xn(l&&h):o}h=e[0];var f=-1,p=u[0];e:while(++f-1)s!==e&&Mt.call(s,l,1),Mt.call(e,l,1)}return e}function vo(e,t){var r=e?t.length:0,n=r-1;while(r--){var i=t[r];if(r==n||i!==o){var o=i;as(i)?Mt.call(e,i,1):Ro(e,i)}}return e}function yo(e,t){return e+jt($t()*(t-e+1))}function bo(e,t,n,i){var o=-1,a=Ft(It((t-e)/(n||1)),0),s=r(a);while(a--)s[i?a:++o]=e,e+=n;return s}function _o(e,t){var r="";if(!e||t<1||t>N)return r;do{t%2&&(r+=e),t=jt(t/2),t&&(e+=e)}while(t);return r}function wo(e,t){return Cs(_s(e,t,Ah),e+"")}function xo(e){return oi(zd(e))}function ko(e,t){var r=zd(e);return Ls(r,gi(t,0,r.length))}function So(e,t,r,n){if(!Sc(e))return e;t=Uo(t,e);var i=-1,a=t.length,s=a-1,l=e;while(null!=l&&++io?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;var a=r(o);while(++i>>1,a=e[o];null!==a&&!Yc(a)&&(r?a<=t:a=s){var c=t?null:La(e);if(c)return hn(c);a=!1,i=Zr,u=new Xn}else u=t?[]:l;e:while(++n=n?e:Oo(e,t,r)}var Go=At||function(e){return sr.clearTimeout(e)};function qo(e,t){if(t)return e.slice();var r=e.length,n=wt?wt(r):new e.constructor(r);return e.copy(n),n}function Xo(e){var t=new e.constructor(e.byteLength);return new _t(t).set(new _t(e)),t}function Ko(e,t){var r=t?Xo(e.buffer):e.buffer;return new e.constructor(r,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 pn?rt(pn.call(e)):{}}function Qo(e,t){var r=t?Xo(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function ea(e,t){if(e!==t){var r=e!==o,n=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||n&&s&&u||!r&&u||!i)return 1;if(!n&&!a&&!c&&e=s)return l;var u=r[n];return l*("desc"==u?-1:1)}}return e.index-t.index}function ra(e,t,n,i){var o=-1,a=e.length,s=n.length,l=-1,u=t.length,c=Ft(a-s,0),d=r(u+c),h=!i;while(++l1?r[i-1]:o,s=i>2?r[2]:o;a=e.length>3&&"function"==typeof a?(i--,a):o,s&&ss(r[0],r[1],s)&&(a=i<3?o:a,i=1),t=rt(t);while(++n-1?i[a?t[s]:s]:o}}function ya(e){return Ba((function(t){var r=t.length,n=r,i=Cn.prototype.thru;e&&t.reverse();while(n--){var a=t[n];if("function"!=typeof a)throw new ot(u);if(i&&!s&&"wrapper"==Ha(a))var s=new Cn([],!0)}n=s?n:r;while(++n1&&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=r&y?new Xn:o;a.set(e,t),a.set(t,e);while(++h1?"& ":"")+t[n],t=t.join(r>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 r=typeof e;return t=null==t?N:t,!!t&&("number"==r||"symbol"!=r&&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 r=-1,n=e.length,i=n-1;t=t===o?n:t;while(++r1?e[t-1]:o;return r="function"==typeof r?(e.pop(),r):o,Rl(e,r)}));function Wl(e){var t=wn(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,r=t?e[0]:0,n=this.__wrapped__,i=function(t){return mi(t,e)};return!(t>1||this.__actions__.length)&&n instanceof Tn&&as(r)?(n=n.slice(r,+r+(t?1:0)),n.__actions__.push({func:Gl,args:[i],thisArg:o}),new Cn(n,this.__chain__).thru((function(e){return t&&!e.length&&e.push(o),e}))):this.thru(i)}));function Xl(){return Wl(this)}function Kl(){return new Cn(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,r=this;while(r instanceof Mn){var n=js(r);n.__index__=0,n.__values__=o,t?i.__wrapped__=n:t=n;var i=n;r=r.__wrapped__}return i.__wrapped__=e,t}function eu(){var e=this.__wrapped__;if(e instanceof Tn){var t=e;return this.__actions__.length&&(t=new Tn(this)),t=t.reverse(),t.__actions__.push({func:Gl,args:[pl],thisArg:o}),new Cn(t,this.__chain__)}return this.thru(pl)}function tu(){return Yo(this.__wrapped__,this.__actions__)}var ru=la((function(e,t,r){dt.call(e,r)?++e[r]:pi(e,r,1)}));function nu(e,t,r){var n=lc(e)?kr:Si;return r&&ss(e,t,r)&&(t=o),n(e,Ua(t,3))}function iu(e,t){var r=lc(e)?Sr:Ti;return r(e,Ua(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,r){return r=r===o?1:qc(r),Oi(gu(e,t),r)}function cu(e,t){var r=lc(e)?wr:xi;return r(e,Ua(t,3))}function du(e,t){var r=lc(e)?xr:ki;return r(e,Ua(t,3))}var hu=la((function(e,t,r){dt.call(e,r)?e[r].push(t):pi(e,r,[t])}));function fu(e,t,r,n){e=cc(e)?e:zd(e),r=r&&!n?qc(r):0;var i=e.length;return r<0&&(r=Ft(i+r,0)),Bc(e)?r<=i&&e.indexOf(t,r)>-1:!!i&&Nr(e,t,r)>-1}var pu=wo((function(e,t,n){var i=-1,o="function"==typeof t,a=cc(e)?r(e.length):[];return xi(e,(function(e){a[++i]=o?br(t,e,n):Vi(e,t,n)})),a})),mu=la((function(e,t,r){pi(e,r,t)}));function gu(e,t){var r=lc(e)?Tr:oo;return r(e,Ua(t,3))}function vu(e,t,r,n){return null==e?[]:(lc(t)||(t=null==t?[]:[t]),r=n?o:r,lc(r)||(r=null==r?[]:[r]),ho(e,t,r))}var yu=la((function(e,t,r){e[r?0:1].push(t)}),(function(){return[[],[]]}));function bu(e,t,r){var n=lc(e)?Lr:Vr,i=arguments.length<3;return n(e,Ua(t,4),r,i,xi)}function _u(e,t,r){var n=lc(e)?Ar:Vr,i=arguments.length<3;return n(e,Ua(t,4),r,i,ki)}function wu(e,t){var r=lc(e)?Sr:Ti;return r(e,zu(Ua(t,3)))}function xu(e){var t=lc(e)?oi:xo;return t(e)}function ku(e,t,r){t=(r?ss(e,t,r):t===o)?1:qc(t);var n=lc(e)?ai:ko;return n(e,t)}function Su(e){var t=lc(e)?si:To;return t(e)}function Mu(e){if(null==e)return 0;if(cc(e))return Bc(e)?gn(e):e.length;var t=Za(e);return t==Q||t==ae?e.size:ro(e).length}function Cu(e,t,r){var n=lc(e)?Dr:Lo;return r&&ss(e,t,r)&&(t=o),n(e,Ua(t,3))}var Tu=wo((function(e,t){if(null==e)return[];var r=t.length;return r>1&&ss(e,t[0],t[1])?t=[]:r>2&&ss(t[0],t[1],t[2])&&(t=[t[0]]),ho(e,Oi(t,1),[])})),Ou=Dt||function(){return sr.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,r){return t=r?o:t,t=e&&null==t?e.length:t,Da(e,C,o,o,o,o,t)}function Du(e,t){var r;if("function"!=typeof t)throw new ot(u);return e=qc(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=o),r}}var Eu=wo((function(e,t,r){var n=b;if(r.length){var i=dn(r,Va(Eu));n|=S}return Da(e,n,t,r,i)})),Iu=wo((function(e,t,r){var n=b|_;if(r.length){var i=dn(r,Va(Iu));n|=S}return Da(t,n,e,r,i)}));function ju(e,t,r){t=r?o:t;var n=Da(e,x,o,o,o,o,o,t);return n.placeholder=ju.placeholder,n}function Pu(e,t,r){t=r?o:t;var n=Da(e,k,o,o,o,o,o,t);return n.placeholder=Pu.placeholder,n}function Ru(e,t,r){var n,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 r=n,a=i;return n=i=o,d=t,s=e.apply(a,r),s}function g(e){return d=e,l=Ms(b,t),h?m(e):s}function v(e){var r=e-c,n=e-d,i=t-r;return f?zt(i,a-n):i}function y(e){var r=e-c,n=e-d;return c===o||r>=t||r<0||f&&n>=a}function b(){var e=Ou();if(y(e))return _(e);l=Ms(b,v(e))}function _(e){return l=o,p&&n?m(e):(n=i=o,s)}function w(){l!==o&&Go(l),d=0,n=c=i=l=o}function x(){return l===o?s:_(Ou())}function k(){var e=Ou(),r=y(e);if(n=arguments,i=this,c=e,r){if(l===o)return g(c);if(f)return Go(l),l=Ms(b,t),m(c)}return l===o&&(l=Ms(b,t)),s}return t=Kc(t)||0,Sc(r)&&(h=!!r.leading,f="maxWait"in r,a=f?Ft(Kc(r.maxWait)||0,t):a,p="trailing"in r?!!r.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,r){return _i(e,Kc(t)||0,r)}));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 r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=e.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(Fu.Cache||Vn),r}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=Vn;var Vu=Wo((function(e,t){t=1==t.length&&lc(t[0])?Tr(t[0],Xr(Ua())):Tr(Oi(t,1),Xr(Ua()));var r=t.length;return wo((function(n){var i=-1,o=zt(n.length,r);while(++i=t})),sc=Ui(function(){return arguments}())?Ui:function(e){return Mc(e)&&dt.call(e,"callee")&&!St.call(e,"callee")},lc=r.isArray,uc=fr?Xr(fr):Wi;function cc(e){return null!=e&&kc(e.length)&&!wc(e)}function dc(e){return Mc(e)&&cc(e)}function hc(e){return!0===e||!1===e||Mc(e)&&Ri(e)==G}var fc=Rt||qh,pc=pr?Xr(pr):$i;function mc(e){return Mc(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!ro(e).length;for(var r in e)if(dt.call(e,r))return!1;return!0}function vc(e,t){return Gi(e,t)}function yc(e,t,r){r="function"==typeof r?r:o;var n=r?r(e,t):o;return n===o?Gi(e,t,o,r):!!n}function bc(e){if(!Mc(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(!Sc(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 Sc(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Mc(e){return null!=e&&"object"==typeof e}var Cc=mr?Xr(mr):Xi;function Tc(e,t){return e===t||Ki(e,t,$a(t))}function Oc(e,t,r){return r="function"==typeof r?r:o,Ki(e,t,$a(t),r)}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||Mc(e)&&Ri(e)==ee}function jc(e){if(!Mc(e)||Ri(e)!=re)return!1;var t=xt(e);if(null===t)return!0;var r=dt.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&ct.call(r)==mt}var Pc=gr?Xr(gr):Ji;function Rc(e){return xc(e)&&e>=-N&&e<=N}var Nc=vr?Xr(vr):Qi;function Bc(e){return"string"==typeof e||!lc(e)&&Mc(e)&&Ri(e)==se}function Yc(e){return"symbol"==typeof e||Mc(e)&&Ri(e)==le}var Fc=yr?Xr(yr):eo;function zc(e){return e===o}function Hc(e){return Mc(e)&&Za(e)==ce}function Vc(e){return Mc(e)&&Ri(e)==de}var Uc=Ca(io),Wc=Ca((function(e,t){return e<=t}));function $c(e){if(!e)return[];if(cc(e))return Bc(e)?vn(e):ia(e);if(Tt&&e[Tt])return ln(e[Tt]());var t=Za(e),r=t==Q?un:t==ae?hn:zd;return r(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),r=t%1;return t===t?r?t-r: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(Sc(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Sc(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=qr(e);var r=Xe.test(e);return r||Ze.test(e)?ir(e.slice(2),r?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 r in t)dt.call(t,r)&&ui(e,r,t[r])})),td=ua((function(e,t){oa(t,kd(t),e)})),rd=ua((function(e,t,r,n){oa(t,kd(t),e,n)})),nd=ua((function(e,t,r,n){oa(t,xd(t),e,n)})),id=Ba(mi);function od(e,t){var r=kn(e);return null==t?r:hi(r,t)}var ad=wo((function(e,t){e=rt(e);var r=-1,n=t.length,i=n>2?t[2]:o;i&&ss(t[0],t[1],i)&&(n=1);while(++r1),t})),oa(e,Fa(e),r),n&&(r=vi(r,p|m|g,ja));var i=t.length;while(i--)Ro(r,t[i]);return r}));function Ld(e,t){return Dd(e,zu(Ua(t)))}var Ad=Ba((function(e,t){return null==e?{}:fo(e,t)}));function Dd(e,t){if(null==e)return{};var r=Tr(Fa(e),(function(e){return[e]}));return t=Ua(t),po(e,r,(function(e,r){return t(e,r[0])}))}function Ed(e,t,r){t=Uo(t,e);var n=-1,i=t.length;i||(i=1,e=o);while(++nt){var n=e;e=t,t=n}if(r||e%1||t%1){var i=$t();return zt(e+i*(t-e+nr("1e-"+((i+"").length-1))),t)}return yo(e,t)}var $d=pa((function(e,t,r){return t=t.toLowerCase(),e+(r?Gd(t):t)}));function Gd(e){return _h(Qc(e).toLowerCase())}function qd(e){return e=Qc(e),e&&e.replace(Qe,tn).replace(Ut,"")}function Xd(e,t,r){e=Qc(e),t=jo(t);var n=e.length;r=r===o?n:gi(qc(r),0,n);var i=r;return r-=t.length,r>=0&&e.slice(r,i)==t}function Kd(e){return e=Qc(e),e&&Le.test(e)?e.replace(Te,rn):e}function Zd(e){return e=Qc(e),e&&Ne.test(e)?e.replace(Re,"\\$&"):e}var Jd=pa((function(e,t,r){return e+(r?"-":"")+t.toLowerCase()})),Qd=pa((function(e,t,r){return e+(r?" ":"")+t.toLowerCase()})),eh=fa("toLowerCase");function th(e,t,r){e=Qc(e),t=qc(t);var n=t?gn(e):0;if(!t||n>=t)return e;var i=(t-n)/2;return ka(jt(i),r)+e+ka(It(i),r)}function rh(e,t,r){e=Qc(e),t=qc(t);var n=t?gn(e):0;return t&&n>>0,r?(e=Qc(e),e&&("string"==typeof t||null!=t&&!Pc(t))&&(t=jo(t),!t&&an(e))?$o(vn(e),0,r):e.split(t,r)):[]}var uh=pa((function(e,t,r){return e+(r?" ":"")+_h(t)}));function ch(e,t,r){return e=Qc(e),r=null==r?0:gi(qc(r),0,e.length),t=jo(t),e.slice(r,r+t.length)==t}function dh(e,t,r){var n=wn.templateSettings;r&&ss(e,t,r)&&(t=o),e=Qc(e),t=rd({},t,n,Ea);var a,s,l=rd({},t.imports,n.imports,Ea),u=xd(l),d=Kr(l,u),h=0,f=t.interpolate||et,p="__p += '",m=nt((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,r,n,i,o,l){return n||(n=i),p+=e.slice(h,l).replace(tt,nn),r&&(a=!0,p+="' +\n__e("+r+") +\n'"),o&&(s=!0,p+="';\n"+o+";\n__p += '"),n&&(p+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),h=l+t.length,t})),p+="';\n";var v=dt.call(t,"variable")&&t.variable;if(v){if(Ue.test(v))throw new i(c)}else p="with (obj) {\n"+p+"\n}\n";p=(s?p.replace(ke,""):p).replace(Se,"$1").replace(Me,"$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,r){if(e=Qc(e),e&&(r||t===o))return qr(e);if(!e||!(t=jo(t)))return e;var n=vn(e),i=vn(t),a=Jr(n,i),s=Qr(n,i)+1;return $o(n,a,s).join("")}function mh(e,t,r){if(e=Qc(e),e&&(r||t===o))return e.slice(0,yn(e)+1);if(!e||!(t=jo(t)))return e;var n=vn(e),i=Qr(n,vn(t))+1;return $o(n,0,i).join("")}function gh(e,t,r){if(e=Qc(e),e&&(r||t===o))return e.replace(Be,"");if(!e||!(t=jo(t)))return e;var n=vn(e),i=Jr(n,vn(t));return $o(n,i).join("")}function vh(e,t){var r=L,n=A;if(Sc(t)){var i="separator"in t?t.separator:i;r="length"in t?qc(t.length):r,n="omission"in t?jo(t.omission):n}e=Qc(e);var a=e.length;if(an(e)){var s=vn(e);a=s.length}if(r>=a)return e;var l=r-gn(n);if(l<1)return n;var u=s?$o(s,0,l).join(""):e.slice(0,l);if(i===o)return u+n;if(s&&(l+=u.length-l),Pc(i)){if(e.slice(l).search(i)){var c,d=u;i.global||(i=nt(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+n}function yh(e){return e=Qc(e),e&&Oe.test(e)?e.replace(Ce,bn):e}var bh=pa((function(e,t,r){return e+(r?" ":"")+t.toUpperCase()})),_h=fa("toUpperCase");function wh(e,t,r){return e=Qc(e),t=r?o:t,t===o?sn(e)?xn(e):jr(e):e.match(t)||[]}var xh=wo((function(e,t){try{return br(e,o,t)}catch(r){return bc(r)?r:new i(r)}})),kh=Ba((function(e,t){return wr(t,(function(t){t=Ds(t),pi(e,t,Eu(e[t],e))})),e}));function Sh(e){var t=null==e?0:e.length,r=Ua();return e=t?Tr(e,(function(e){if("function"!=typeof e[1])throw new ot(u);return[r(e[0]),e[1]]})):[],wo((function(r){var n=-1;while(++nN)return[];var r=F,n=zt(e,F);t=Ua(t),e-=F;var i=$r(n,t);while(++r0||t<0)?new Tn(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==o&&(t=qc(t),r=t<0?r.dropRight(-t):r.take(t-e)),r)},Tn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Tn.prototype.toArray=function(){return this.take(F)},Di(Tn.prototype,(function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),n=/^(?:head|last)$/.test(t),i=wn[n?"take"+("last"==t?"Right":""):t],a=n||/^find/.test(t);i&&(wn.prototype[t]=function(){var t=this.__wrapped__,s=n?[1]:arguments,l=t instanceof Tn,u=s[0],c=l||lc(t),d=function(e){var t=i.apply(wn,Or([e],s));return n&&h?t[0]:t};c&&r&&"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 Tn(this);var g=e.apply(t,s);return g.__actions__.push({func:Gl,args:[d],thisArg:o}),new Cn(g,h)}return p&&m?e.apply(this,s):(g=this.thru(d),p?n?g.value()[0]:g.value():g)})})),wr(["pop","push","shift","sort","splice","unshift"],(function(e){var t=at[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);wn.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var i=this.value();return t.apply(lc(i)?i:[],e)}return this[r]((function(r){return t.apply(lc(r)?r:[],e)}))}})),Di(Tn.prototype,(function(e,t){var r=wn[t];if(r){var n=r.name+"";dt.call(lr,n)||(lr[n]=[]),lr[n].push({name:t,func:r})}})),lr[ba(o,_).name]=[{name:"wrapper",func:o}],Tn.prototype.clone=On,Tn.prototype.reverse=Ln,Tn.prototype.value=An,wn.prototype.at=ql,wn.prototype.chain=Xl,wn.prototype.commit=Kl,wn.prototype.next=Zl,wn.prototype.plant=Ql,wn.prototype.reverse=eu,wn.prototype.toJSON=wn.prototype.valueOf=wn.prototype.value=tu,wn.prototype.first=wn.prototype.head,Tt&&(wn.prototype[Tt]=Jl),wn},Sn=kn();sr._=Sn,i=function(){return Sn}.call(t,r,t,n),i===o||(n.exports=i)}).call(this)}).call(this,r("24aa"),r("7ebd")(e))},"2f21":function(e,t,r){"use strict";var n=r("79e5");e.exports=function(e,t){return!!e&&n((function(){t?e.call(null,(function(){}),1):e.call(null)}))}},"2f62":function(e,t,r){"use strict"; /** * vuex v3.1.0 * (c) 2019 Evan You * @license MIT */ function n(e){var t=Number(e.version.split(".")[0]);if(t>=2)e.mixin({beforeCreate:n});else{var r=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[n].concat(e.init):n,r.call(this,e)}}function n(){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)}}r.d(t,"d",(function(){return L})),r.d(t,"c",(function(){return A})),r.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(r){return t(e[r],r)}))}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 r=e.state;this.state=("function"===typeof r?r():r)||{}},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,r){if(t.update(r),r.modules)for(var n in r.modules){if(!t.getChild(n))return void 0;h(e.concat(n),t.getChild(n),r.modules[n])}}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,r){return t=t.getChild(r),e+(t.namespaced?r+"/":"")}),"")},d.prototype.update=function(e){h([],this.root,e)},d.prototype.register=function(e,t,r){var n=this;void 0===r&&(r=!0);var i=new u(t,r);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){n.register(e.concat(i),t,r)}))},d.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),r=e[e.length-1];t.getChild(r).runtime&&t.removeChild(r)};var f;var p=function(e){var t=this;void 0===e&&(e={}),!f&&"undefined"!==typeof window&&window.Vue&&O(window.Vue);var r=e.plugins;void 0===r&&(r=[]);var n=e.strict;void 0===n&&(n=!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,r){return l.call(i,e,t,r)},this.strict=n;var u=this._modules.root.state;b(this,u,[],this._modules.root),y(this,u),r.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 r=t.indexOf(e);r>-1&&t.splice(r,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 r=e.state;b(e,r,[],e._modules.root,!0),y(e,r,t)}function y(e,t,r){var n=e._vm;e.getters={};var i=e._wrappedGetters,o={};a(i,(function(t,r){o[r]=function(){return t(e)},Object.defineProperty(e.getters,r,{get:function(){return e._vm[r]},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&&M(e),n&&(r&&e._withCommit((function(){n._data.$$state=null})),f.nextTick((function(){return n.$destroy()})))}function b(e,t,r,n,i){var o=!r.length,a=e._modules.getNamespace(r);if(n.namespaced&&(e._modulesNamespaceMap[a]=n),!o&&!i){var s=C(t,r.slice(0,-1)),l=r[r.length-1];e._withCommit((function(){f.set(s,l,n.state)}))}var u=n.context=_(e,a,r);n.forEachMutation((function(t,r){var n=a+r;x(e,n,t,u)})),n.forEachAction((function(t,r){var n=t.root?r:a+r,i=t.handler||t;k(e,n,i,u)})),n.forEachGetter((function(t,r){var n=a+r;S(e,n,t,u)})),n.forEachChild((function(n,o){b(e,t,r.concat(o),n,i)}))}function _(e,t,r){var n=""===t,i={dispatch:n?e.dispatch:function(r,n,i){var o=T(r,n,i),a=o.payload,s=o.options,l=o.type;return s&&s.root||(l=t+l),e.dispatch(l,a)},commit:n?e.commit:function(r,n,i){var o=T(r,n,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:n?function(){return e.getters}:function(){return w(e,t)}},state:{get:function(){return C(e.state,r)}}}),i}function w(e,t){var r={},n=t.length;return Object.keys(e.getters).forEach((function(i){if(i.slice(0,n)===t){var o=i.slice(n);Object.defineProperty(r,o,{get:function(){return e.getters[i]},enumerable:!0})}})),r}function x(e,t,r,n){var i=e._mutations[t]||(e._mutations[t]=[]);i.push((function(t){r.call(e,n.state,t)}))}function k(e,t,r,n){var i=e._actions[t]||(e._actions[t]=[]);i.push((function(t,i){var o=r.call(e,{dispatch:n.dispatch,commit:n.commit,getters:n.getters,state:n.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 S(e,t,r,n){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(e){return r(n.state,n.getters,e.state,e.getters)})}function M(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,r){return s(e)&&e.type&&(r=t,t=e,e=e.type),{type:e,payload:t,options:r}}function O(e){f&&e===f||(f=e,n(f))}m.state.get=function(){return this._vm._data.$$state},m.state.set=function(e){0},p.prototype.commit=function(e,t,r){var n=this,i=T(e,t,r),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,n.state)})))},p.prototype.dispatch=function(e,t){var r=this,n=T(e,t),i=n.type,o=n.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,r.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{r._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(a,r.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,r){var n=this;return this._watcherVM.$watch((function(){return e(n.state,n.getters)}),t,r)},p.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._vm._data.$$state=e}))},p.prototype.registerModule=function(e,t,r){void 0===r&&(r={}),"string"===typeof e&&(e=[e]),this._modules.register(e,t),b(this,this.state,e,this._modules.get(e),r.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 r=C(t.state,e.slice(0,-1));f.delete(r,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 r={};return j(t).forEach((function(t){var n=t.key,i=t.val;r[n]=function(){var t=this.$store.state,r=this.$store.getters;if(e){var n=R(this.$store,"mapState",e);if(!n)return;t=n.context.state,r=n.context.getters}return"function"===typeof i?i.call(this,t,r):t[i]},r[n].vuex=!0})),r})),A=P((function(e,t){var r={};return j(t).forEach((function(t){var n=t.key,i=t.val;r[n]=function(){var t=[],r=arguments.length;while(r--)t[r]=arguments[r];var n=this.$store.commit;if(e){var o=R(this.$store,"mapMutations",e);if(!o)return;n=o.context.commit}return"function"===typeof i?i.apply(this,[n].concat(t)):n.apply(this.$store,[i].concat(t))}})),r})),D=P((function(e,t){var r={};return j(t).forEach((function(t){var n=t.key,i=t.val;i=e+i,r[n]=function(){if(!e||R(this.$store,"mapGetters",e))return this.$store.getters[i]},r[n].vuex=!0})),r})),E=P((function(e,t){var r={};return j(t).forEach((function(t){var n=t.key,i=t.val;r[n]=function(){var t=[],r=arguments.length;while(r--)t[r]=arguments[r];var n=this.$store.dispatch;if(e){var o=R(this.$store,"mapActions",e);if(!o)return;n=o.context.dispatch}return"function"===typeof i?i.apply(this,[n].concat(t)):n.apply(this.$store,[i].concat(t))}})),r})),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,r){return"string"!==typeof t?(r=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,r)}}function R(e,t,r){var n=e._modulesNamespaceMap[r];return n}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,r){var n=r("5ca1");n(n.S,"Math",{isubh:function(e,t,r,n){var i=e>>>0,o=t>>>0,a=r>>>0;return o-(n>>>0)-((~i&a|~(i^a)&i-a>>>0)>>>31)|0}})},"2fdb":function(e,t,r){"use strict";var n=r("5ca1"),i=r("d2c8"),o="includes";n(n.P+n.F*r("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,r){var n=void 0===r;switch(t.length){case 0:return n?e():e.call(r);case 1:return n?e(t[0]):e.call(r,t[0]);case 2:return n?e(t[0],t[1]):e.call(r,t[0],t[1]);case 3:return n?e(t[0],t[1],t[2]):e.call(r,t[0],t[1],t[2]);case 4:return n?e(t[0],t[1],t[2],t[3]):e.call(r,t[0],t[1],t[2],t[3])}return e.apply(r,t)}},"30b5":function(e,t,r){"use strict";var n=r("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,r){if(!t)return e;var o;if(r)o=r(t);else if(n.isURLSearchParams(t))o=t.toString();else{var a=[];n.forEach(t,(function(e,t){null!==e&&"undefined"!==typeof e&&(n.isArray(e)?t+="[]":e=[e],n.forEach(e,(function(e){n.isDate(e)?e=e.toISOString():n.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,r){ /*! * @form-create/element-ui v2.5.35 * (c) 2018-2024 xaboy * Github https://github.com/xaboy/form-create * Released under the MIT License. */ !function(e,n){n(t,r("2b0e"))}(0,(function(e,t){"use strict";function r(){return(r=Object.assign||function(e){for(var t,r=1;re.length)&&(t=e.length);for(var r=0,n=new Array(t);r-1?[]:[e]}function w(e,t){void 0===t&&(t={});var r=t.insertAt;if(e&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===r&&n.firstChild?n.insertBefore(i,n.firstChild):n.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,r={type:"text",value:this.fileList.map((function(t){return e.getSrc(t)})).toString(),readonly:!0};return t("ElInput",s([{},{props:r},{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 M(e,t){return{}.hasOwnProperty.call(e,t)}["Date","Object","String","Boolean","Array","Number"].forEach((function(e){S[e]=function(t){return S.type(t,e)}}));var C={name:"fcSelect",functional:!0,props:{formCreateInject:{type:Object,required:!0}},render:function(e,t){var r=function(t,r){var n=t.slot;return e("ElOption",s([{},{props:t},{key:r+"-"+t.value}]),[n?e("template",{slot:t.slotName||"default"},[S.Function(n)?t.slot(e):n]):null])},n=t.props.formCreateInject.options;return e("ElSelect",s([{},t.data,{ref:"el"}]),[(Array.isArray(n)?n:[]).map((function(t,n){return M(t||"","options")?function(t,n){return e("ElOptionGroup",{attrs:{label:t.label},key:n+"-"+t.label},[S.trueArray(t.options)&&t.options.map((function(e,t){return r(e,t)}))])}(t,n):r(t,n)})),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 r=this.$createElement;return"image"===this.uploadType?r("img",{attrs:{src:e.url},key:this.key("img"+t)}):r("i",{class:"el-icon-tickets",key:this.key("i"+t)})},makeRemoveIcon:function(e,t){var r=this;return(0,this.$createElement)("i",{class:"el-icon-delete",on:{click:function(){return r.onRemove(e)}},key:this.key("ri"+t)})},makeHandleIcon:function(e,t){var r=this;return(0,this.$createElement)("i",{class:!0===this.handleIcon||void 0===this.handleIcon?"el-icon-view":this.handleIcon,on:{click:function(){return r.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 r=this.$createElement,n=[];if(this.allowRemove||!1!==this.handleIcon)return("file"!==this.uploadType&&!1!==this.handleIcon||"file"===this.uploadType&&this.handleIcon)&&n.push(this.makeHandleIcon(e,t)),this.allowRemove&&n.push(this.makeRemoveIcon(e,t)),r("div",{class:"fc-upload-cover"},[n])},makeFiles:function(){var e=this,t=this.$createElement;return this.uploadList.map((function(r,n){return e.$scopedSlots.fileList?e.$scopedSlots.fileList({file:r,index:n,vm:e}):t("div",{key:e.key(n),class:"fc-files"},[void 0!==r.percentage&&"success"!==r.status?e.makeProgress(r,n):[e.makeItem(r,n),e.makeIcons(r,n)]])}))},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,r,n){t.set(e,r,n)}function E(e,r){t.delete(e,r)}function I(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,n=!1;for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var o=t[i];if((n=Array.isArray(o))||S.Object(o)){var a=void 0===e[i];if(n)n=!1,a&&D(e,i,[]);else if(o._clone&&void 0!==r){if(!r){D(e,i,o._clone());continue}o=o.getRule(),a&&D(e,i,{})}else a&&D(e,i,{});e[i]=I(e[i],o,r)}else D(e,i,o),S.Undef(o)||(S.Undef(o.__json)||(e[i].__json=o.__json),S.Undef(o.__origin)||(e[i].__origin=o.__origin))}return void 0!==r&&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,r=1;r0&&this.expandRule(t)},value:function(e,t){var r=this;e=e||[];var n=this.sort,i=n.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,r)),this.sortBtn&&t&&i.push(this.sortUpIcon(t)),this.sortBtn&&t!==e-1&&i.push(this.sortDownIcon(t)),i},emitEvent:function(e,t,r,n){this.$emit.apply(this,[e].concat(g(t),[this.cacheRule[n].$f,r]))},expandRule:function(e){for(var t=0;t0&&this.expandRule(e);for(var t=0;t1?r-1:0),i=1;i1?t-1:0),n=1;n-1}))||(this.formCreate.$handle.reloadRule(e),this._renderRule())},disabled:function(e){this.$f.disabled(!!e)}},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,r=this.formCreate.api(),n=function(){var e=Y(t,t.$pfc);if(e)if(t.isMore){var n=_(e.getSubForm()),i=n.indexOf(r);i>-1&&n.splice(i,1)}else e.subForm()};t.$on("hook:beforeDestroy",(function(){n()})),this.$watch((function(){return e.subForm}),(function(e){e?function(){if(t.$pfc){var e,n=Y(t,t.$pfc);n&&(t.isMore?(e=_(n.getSubForm())).push(r):e=r,n.subForm(e))}}():n()}),{immediate:!0})}}}var z=["attrs","props","domProps","scopedSlots"],H=["class","style","directives"],V=["on","nativeOn"],U=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=[].concat(z,g(n.normal||[])),o=[].concat(H,g(n.array||[])),a=[].concat(V,g(n.functional||[])),s=n.props||[];return t.reduce((function(t,r){for(var n in r)if(t[n])if(s.indexOf(n)>-1)t[n]=e([r[n]],t[n]);else if(i.indexOf(n)>-1)t[n]=d(d({},t[n]),r[n]);else if(o.indexOf(n)>-1){var u=t[n]instanceof Array?t[n]:[t[n]],c=r[n]instanceof Array?r[n]:[r[n]];t[n]=[].concat(g(u),g(c))}else if(a.indexOf(n)>-1)for(var h in r[n])if(t[n][h]){var f=t[n][h]instanceof Array?t[n][h]:[t[n][h]],p=r[n][h]instanceof Array?r[n][h]:[r[n][h]];t[n][h]=[].concat(g(f),g(p))}else t[n][h]=r[n][h];else if("hook"===n)for(var m in r[n])t[n][m]?t[n][m]=W(t[n][m],r[n][m]):t[n][m]=r[n][m];else t[n]=r[n];else i.indexOf(n)>-1||a.indexOf(n)>-1||s.indexOf(n)>-1?t[n]=d({},r[n]):o.indexOf(n)>-1?t[n]=r[n]instanceof Array?g(r[n]):"object"===l(r[n])?d({},r[n]):r[n]:t[n]=r[n];return t}),r)},W=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,r){return"[form-create ".concat(e,"]: ").concat(t)+(r?"\n\nrule: "+JSON.stringify(r.getRule?r.getRule():r):"")}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 re(e,t){return JSON.stringify(I([],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 ne(e){return new Function("return "+e)()}function ie(e,t){if(e&&S.String(e)&&e.length>4){var r=e.trim(),n=!1;try{if(r.indexOf(J)>0&&0===r.indexOf(Z))r=r.replace(J,"").replace(Z,""),n=!0;else if(0===r.indexOf(Q))r=r.replace(Q,""),n=!0;else{if(0===r.indexOf(ee))return(r=ne("function($inject){"+r.replace(ee,"")+"}")).__json=e,r.__inject=!0,r;t||0!==r.indexOf(te)||r===te||(n=!0)}if(!n)return e;var i=ne(-1===r.indexOf(te)&&0!==r.indexOf("(")?te+" "+r:r);return i.__json=e,i}catch(e){return void K("解析失败:".concat(r,"\n\nerr: ").concat(e))}}return e}function oe(e,t){return JSON.parse(e,(function(e,r){return S.Undef(r)||!r.indexOf?r:ie(r,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 U(Array.isArray(t)?t:[t],e,{array:G,normal:q}),e}function ce(e){var t=S.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,r){return e[r]={get:function(){return t[r]()}},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}function pe(e,t){return function(r,n,i){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=new me(e,r,n,i,o);return t&&(S.Function(t)?t(a):a.props(t)),a}}function me(e,t,r,n,i){this._data=R({props:{},on:{},options:[],children:[],effect:{},hidden:!1,display:!0,value:void 0},{type:e,title:t,field:r,value:n,props:i||{}}),this.event=this.on}function ge(e){e.forEach((function(e){me.prototype[e]=function(t){return ue(this._data,u({},e,arguments.length<2?t:u({},t,arguments[1]))),this}}))}R(me.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}}),ge([].concat($,g(z),g(H),g(V),G,q));var ve=pe("");function ye(e,t,r){var n=ve("",t);return n._data.type=e,n._data.title=r,n}function be(e,t,r,n){var i=ve("",r);return i._data.type="template",i._data.template=e,i._data.title=n,i._data.vm=t,i}function _e(){return{create:ye,createTmp:be,template:be,factory:pe}}function we(e){return j(e)}function xe(e){return ke(e.replace(/(-[a-z])/g,(function(e){return e.replace("-","").toLocaleUpperCase()})))}function ke(e){return e.replace(e[0],e[0].toLowerCase())}function Se(e){return null==e?"":"object"===l(e)?JSON.stringify(e,null,2):String(e)}function Me(e){var t=e.replace(/([A-Z])/g,"-$1").toLocaleLowerCase();return 0===t.indexOf("-")&&(t=t.substr(1)),t}var Ce=0;function Te(){var e=370+ ++Ce;return"F"+Math.random().toString(36).substr(3,3)+Number("".concat(Date.now())).toString(36)+e.toString(36)+"c"}function Oe(e,t,r){var n,i=e;return(t||"").split(".").forEach((function(e){n&&(i[n]&&"object"==l(i[n])||(i[n]={}),i=i[n]),n=e})),i[n]=r,i}function Le(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,r){this.cache[e.id]={vnode:t,use:!1,parent:r,slot:e.rule.slot}},getCache:function(e){var t=this.cache[e.id];if(t)return t.use=!0,t.vnode}})}(Le),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,r){if(!1!==e[r].parser.loadChildren){var n=e[r].rule.children;t[r]=S.trueArray(n)?g(n):[]}return t}),{})},clearOrgChildren:function(){this.orgChildren={}},getTypeSlot:function(e){return function t(r){if(r){var n=void 0;return e.rule.field&&(n=r.$scopedSlots["field-"+Me(e.rule.field)]||r.$scopedSlots["field-"+e.rule.field]),n||(n=r.$scopedSlots["type-"+Me(e.type)]||r.$scopedSlots["type-"+e.type]),n||t(r.$pfc)}}(this.vm)},render:function(){var e=this;if(this.vm.isShow){var t;this.$h=this.vm.$createElement,this.$manager.beforeRender();var r=function(){return e.renderList()};return r.renderSlot=function(t){return e.renderList(t)},r.renderName=function(t){return e.renderId(t)},r.renderField=function(t){return e.renderId(t,"field")},t=this.vm.$scopedSlots.container?[this.vm.$scopedSlots.container(r)]:r(),this.$manager.render(t)}},renderList:function(e){var t=this;return this.sort.map((function(r){return e?t.renderSlot(t.$handle.ctxs[r],e):t.renderCtx(t.$handle.ctxs[r])})).filter((function(e){return void 0!==e}))},makeVm:function(e){var t=this,r=e.vm;return r?S.Function(r)?fe((function(){return e.vm(t.$handle.getInjectData(e))})):r._isVue?r:new Ke(r):new Ke},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&&Oe(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";n.indexOf(a)>-1&&(e.$props[a]=r.value)}},renderTemp:function(e){var t=this;if(!Ke.compile)return function(e,t){console.warn(X("tip",e,t))}("当前使用的Vue构建版本不支持compile,无法使用template功能"),[];var r=e.prop,n=e.id,i=e.key;if(!this.tempList[n]){e.el||(e.el=this.makeVm(r),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(r){t.onInput(e,r)})),this.tempList[n]={vm:o,template:Ke.compile(r.template)}}var a=this.tempList[n],s=a.vm,l=a.template;this.setTempProps(s,e);var u=l.render.call(s);return S.Undef(u.data)&&(u.data={}),u.key=i,u.data.ref=e.ref,u.data.key=i,u},parseSide:function(e,t){return S.Object(e)?ue({props:{formCreateInject:t.prop.props.formCreateInject}},e):e},renderSides:function(e,t,r){var n=t[r?"rule":"prop"];return[this.renderRule(this.parseSide(n.prefix,t)),e,this.renderRule(this.parseSide(n.suffix,t))]},renderSlot:function(e,t){return e.rule.slot===t?this.renderCtx(e):void 0},renderId:function(e,t){var r=this,n=this.$handle["field"===t?"fieldCtx":"nameCtx"][e];return n?n.map((function(e){return r.renderCtx(e,e.parent)})):void 0},renderCtx:function(e,t){if("hidden"!==e.type){var r=e.rule;if(!this.cache[e.id]||this.cache[e.id].slot!==r.slot){var n,i=!1!==r.cache,o=e.trueType,a=!(S.Undef(r.display)||r.display);if("template"!==o||r.template)if("fcFragment"===o)n=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=!!(M(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)n=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);n=c?c({rule:r,prop:s,preview:l,children:u,api:this.$handle.api,model:s.model||{}}):l?e.parser.preview(u,e):e.parser.render(u,e)}n=this.renderSides(n,e),!e.input&&S.Undef(s.native)||!0===s.native||(n=this.$manager.makeWrap(e,n)),a&&(n=this.display(n)),n=this.item(e,n)}else n=this.renderSides(this.renderChildren(e),e,!0),a&&this.display(n),n=this.item(e,n);return i&&this.setCache(e,n,t),n}return this.getCache(e)}},display:function(e){var t=this;if(Array.isArray(e)){var r=[];return e.forEach((function(e){if(Array.isArray(e))return t.display(e);t.none(e)&&r.push(e)})),r}return this.none(e)},none:function(e){if(e&&e.data)return Array.isArray(e.data.style)?e.data.style.push({display:"none"}):S.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(r){t.$handle.addSubForm(e,r)},getSubForm:function(){return t.$handle.subForm[e.id]},options:[],children:[],prop:{},preview:!1,field:e.field,rule:e.rule,input:e.input});var r,n=this.vm.ctxInject[e.id];return R(n,{preview:e.prop.preview,options:e.prop.options,children:e.rule.children,prop:(r=d({},e.prop),r.on=r.on?d({},r.on):{},delete r.model,r)}),n},ctxProp:function(e,t){var r=this,n=e.ref,i=e.key,o=e.rule;this.$manager.mergeProp(e,t),e.parser.mergeProp(e,t);var a=[{ref:n,key:o.key||"".concat(i,"fc"),slot:void 0,on:{"hook:mounted":function(){r.onMounted(e)},"fc.sub-form":function(t){r.$handle.addSubForm(e,t)},"fc.el":function(t){e.exportEl=t,t&&((t.$el||t).__rule__=e.rule)}}}];return!t&&e.input&&(e.prop.model={value:this.$handle.getFormData(e),callback:function(t){r.onInput(e,t)},expression:"formData.".concat(e.id)}),U(a,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,r=e.rule.children,n=this.orgChildren[e.id],i=function(e){return!S.String(e)&&e.__fc__&&!t.$handle.ctxs[e.__fc__.id]};return!S.trueArray(r)&&n?(this.$handle.deferSyncValue((function(){n.forEach((function(e){e&&i(e)&&t.$handle.rmCtx(e.__fc__)}))})),this.orgChildren[e.id]=[],[]):(n&&this.$handle.deferSyncValue((function(){n.forEach((function(e){e&&-1===r.indexOf(e)&&i(e)&&t.$handle.rmCtx(e.__fc__)}))})),r.map((function(n){if(n)return S.String(n)?n:n.__fc__?t.renderCtx(n.__fc__,e):void(n.type&&t.vm.$nextTick((function(){t.$handle.loadChildren(r,e),t.$handle.refresh()})))})))},defaultRender:function(e,t){var r=e.prop;return r.component?this.vNode.makeComponent(r.component,r,t):this.vNode[e.type]?this.vNode[e.type](r,t):this.vNode[e.originType]?this.vNode[e.originType](r,t):this.vNode.make(ke(e.originType),r,t)},renderRule:function(e,t,r){var n=this;if(e){if(S.String(e))return e;var i;if(r)i=e.type;else if(i=e.is,e.type){i=xe(e.type);var o=this.vNode.aliasMap[i];o&&(i=xe(o))}if(i){var a=[[t]];return S.trueArray(e.children)&&a.push(e.children.map((function(e){return n.renderRule(e)}))),this.$h(i,d({},e),a)}}}})}(Le);var Ae=["hook:updated","hook:mounted"];function De(e,t,r){var n,i=Te();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(r):void 0,field:t.field||void 0}),this.updateType(),this.updateKey(),n=this,Object.defineProperties(n.origin,{__fc__:ae(n,!0)}),this.update(e,!0)}R(De.prototype,{effectData:function(e){return this.payload[e]||(this.payload[e]={}),this.payload[e]},clearEffectData:function(e){void 0===e?this.payload={}:delete this.payload[e]},updateKey:function(e){this.key=Te(),e&&this.parent&&this.parent.updateKey(e)},updateType:function(){this.originType=this.rule.type,this.type=xe(this.rule.type)},setParser:function(e){this.parser=e,e.init(this)},initProp:function(){var e=this,t=d({},this.rule);delete t.children,this.prop=ue({},[t].concat(g(Object.keys(this.payload).map((function(t){return e.payload[t]}))),[this.computed]))},check:function(e){return this.vm===e.vm},unwatch:function(){this.watch.forEach((function(e){return e()})),this.watch=[]},unlink:function(){this.linkOn.forEach((function(e){return e()})),this.linkOn=[]},link:function(){this.unlink(),this.$handle.appendLink(this)},watchTo:function(){this.$handle.watchCtx(this)},delete:function(){this.unwatch(),this.unlink(),this.rmCtrl(),R(this,{deleted:!0,prop:d({},this.rule),computed:{},el:void 0,$handle:void 0,$render:void 0,$api:void 0,vm:void 0,vNode:void 0,parent:null,cacheConfig:null})},rmCtrl:function(){this.ctrlRule.forEach((function(e){return e.__fc__&&e.__fc__.rm()})),this.ctrlRule=[]},rm:function(){var e=this,t=function(){var t=e.root.indexOf(e.origin);t>-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 Ee={"==":function(e){return function(t){return t===e}},"!=":function(e){return function(t){return t!==e}},"<>":function(e){return function(t){return t!==e}},">":function(e){return function(t){return t>e}},">=":function(e){return function(t){return t>=e}},"<":function(e){return function(t){return t-1}},on:function(e){return function(t){return t&&t.indexOf&&t.indexOf(e)>-1}},notIn:function(e){return function(t){return!Ee.in(e)(t)}},notOn:function(e){return function(t){return!Ee.on(e)(t)}},between:function(e){return function(t){return t>e[0]&&te[1]}}};function Ie(e,t){for(var r=0;r=2&&(r=u({},t,arguments[1])),e.deferSyncValue((function(){Object.keys(r).forEach((function(t){var n=e.fieldCtx[t];if(!n)return e.appendData[t]=r[t];n.forEach((function(e){e.rule.value=r[t]}))}))}))},removeField:function(t){var r=e.getCtx(t);return e.deferSyncValue((function(){e.getCtxs(t).forEach((function(e){e.rm()}))}),!0),r?r.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,r,n){var i,o=e.sort.length-1,a=e.getCtx(r);a?n?(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,r,n){var i,o=0,a=e.getCtx(r);a?n?i=a.rule.children:(o=a.root.indexOf(a.origin),i=a.root):i=e.rules,i.splice(o,0,t)},hidden:function(t,n){r(n,"hidden",!!t),e.refresh()},hiddenStatus:function(t){var r=e.getCtx(t);if(r)return!!r.rule.hidden},display:function(t,n){r(n,"display",!!t),e.refresh()},displayStatus:function(t){var r=e.getCtx(t);if(r)return!!r.rule.display},disabled:function(r,n){t(n).forEach((function(t){e.getCtxs(t).forEach((function(e){e.rule.props&&D(e.rule.props,"disabled",!!r)}))})),e.refresh()},all:function(t){return Object.keys(e.ctxs).map((function(r){var n=e.ctxs[r];return t?n.origin:n.rule}))},model:function(t){return e.fields().reduce((function(r,n){var i=e.fieldCtx[n][0];return r[n]=t?i.origin:i.rule,r}),{})},component:function(t){return Object.keys(e.nameCtx).reduce((function(r,n){var i=e.nameCtx[n].map((function(e){return t?e.origin:e.rule}));return r[n]=1===i.length?i[0]:i,r}),{})},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 r=S.Object(t)?he(t):e.getCtxs(t);r&&((r=Array.isArray(r)?r:[r]).forEach((function(t){if(!t.deleted){var r=e.subForm[t.id];r&&(Array.isArray(r)?r.forEach((function(e){e.refresh()})):r&&r.refresh()),e.$render.clearCache(t)}})),e.refresh())}},refresh:function(){n().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,r){e.getCtxs(t).forEach((function(e){R(e.rule,r)}))},updateRules:function(e){Object.keys(e).forEach((function(t){i.updateRule(t,e[t])}))},mergeRule:function(t,r){e.getCtxs(t).forEach((function(e){ue(e.rule,r)}))},mergeRules:function(e){Object.keys(e).forEach((function(t){i.mergeRule(t,e[t])}))},getRule:function(t,r){var n=e.getCtx(t);if(n)return r?n.origin:n.rule},setEffect:function(t,r,n){var i=e.getCtx(t);i&&r&&("$"===r[0]&&(r=r.substr(1)),M(i.rule,"$"+r)&&D(i.rule,"$"+r,n),M(i.rule,"effect")||D(i.rule,"effect",{}),D(i.rule.effect,r,n))},clearEffectData:function(t,r){var n=e.getCtx(t);n&&(r&&"$"===r[0]&&(r=r.substr(1)),n.clearEffectData(r),i.sync(t))},updateValidate:function(e,t,n){n?i.mergeRule(e,{validate:t}):r(e,"validate",t)},updateValidates:function(e,t){Object.keys(e).forEach((function(r){i.updateValidate(r,e[r],t)}))},refreshValidate:function(){e.vm.validate={},i.refresh()},resetFields:function(r){t(r).forEach((function(t){e.getCtxs(t).forEach((function(t){e.$render.clearCache(t),t.rule.value=we(t.defaultValue)}))}))},method:function(e,t){var r=i.el(e);if(!r||!r[t])throw new Error(X("err","".concat(t,"方法不存在")));return function(){return r[t].apply(r,arguments)}},exec:function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o2?n-2:0),a=2;a1?n-1:0),o=1;o=300)return e.onError(function(e,t,r){var n="fail to ".concat(e," ").concat(r.status,"'"),i=new Error(n);return i.status=r.status,i.url=e,i}(n,0,r),Fe(r));e.onSuccess(Fe(r))},r.open(e.method||"get",n,!0),e.data&&("json"!==(e.dataType||"").toLowerCase()?(t=new FormData,Object.keys(e.data).map((function(r){t.append(r,e.data[r])}))):(t=JSON.stringify(e.data),r.setRequestHeader("content-type","application/json"))),e.withCredentials&&"withCredentials"in r&&(r.withCredentials=!0);var i=e.headers||{};Object.keys(i).forEach((function(e){null!==i[e]&&r.setRequestHeader(e,i[e])})),r.send(t)}}R(Ye.prototype,{initData:function(e){R(this,{ctxs:{},fieldCtx:{},nameCtx:{},sort:[],rules:e})},init:function(){this.appendData=d(d(d({},this.fc.options.formData||{}),this.vm.value||{}),this.appendData),this.useProvider(),this.usePage(),this.loadRule(),this.$manager.__init(),this.vm.$set(this.vm,"formData",this.formData)}}),function(e){R(e.prototype,{parseInjectEvent:function(e,t){var r=e.inject||this.options.injectEvent;return this.parseEventLst(e,t,r)},parseEventLst:function(e,t,r,n){var i=this;return Object.keys(t).forEach((function(o){var a=i.parseEvent(e,t[o],r,n);a&&(t[o]=a)})),t},parseEvent:function(e,t,r,n){if(S.Function(t)&&(!1!==r&&!S.Undef(r)||t.__inject))return this.inject(e,t,r);if(!n&&Array.isArray(t)&&t[0]&&(S.String(t[0])||S.Function(t[0])))return this.parseEventLst(e,t,r,!0);if(S.String(t)){var i=ie(t);if(i&&t!==i)return i.__inject?this.parseEvent(e,i,r,!0):i}},parseEmit:function(e,t){var r=this,n={},i=e.rule,o=i.emitPrefix,a=i.field,s=i.name,l=i.inject,u=i[t?"emit":"nativeEmit"]||[];if(S.trueArray(u)){var c=o||a||s;c&&(t||(c="native-".concat(c)),u.forEach((function(e){if(e){var t;S.Object(e)&&(t=e.inject,e=e.name);var o=Me("".concat(c,"-").concat(e)),a=function(){for(var e,t,n=arguments.length,i=new Array(n),a=0;a0?this.$render.render():(this.vm.unique=1,[])}})}(Ye),function(e){R(e.prototype,{nextRefresh:function(e){var t=this,r=this.loadedId;this.vm.$nextTick((function(){r===t.loadedId&&(e?e():t.refresh())}))},parseRule:function(e){var t=this,r=ce(e);return Object.defineProperties(r,{__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(r){M(e,r)||D(e,r,t[r])}))}(r),this.appendValue(r),r.options=Array.isArray(r.options)?r.options:[],[r,r.prefix,r.suffix].forEach((function(e){e&&t.loadFn(e,r)})),this.loadCtrl(r),r.update&&(r.update=ie(r.update)),r},loadFn:function(e,t){var r=this;["on","props","nativeOn","deep"].forEach((function(n){e[n]&&r.parseInjectEvent(t,e[n])}))},loadCtrl:function(e){e.control&&e.control.forEach((function(e){e.handle&&(e.handle=ie(e.handle))}))},syncProp:function(e){var t=this,r=e.rule;S.trueArray(r.sync)&&U([{on:r.sync.reduce((function(e,n){return e["update:".concat(n)]=function(e){r.props[n]=e,t.vm.$emit("sync",n,e,r,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 r=this,n=function(e,t){S.trueArray(e)&&r._loadRule(e,t)};e.map((function(i,o){if((!t||S.Object(i))&&(r.pageEnd||t||!(o>=r.first))){if(i.__fc__&&i.__fc__.root===e&&r.ctxs[i.__fc__.id])return n(i.__fc__.rule.children,i.__fc__),i.__fc__;var a,s=ce(i),l=function(){return!(!s.field||!r.fieldCtx[s.field]||r.fieldCtx[s.field][0]===i.__fc__)};r.ruleEffect(s,"init",{repeat:l()}),l()&&r.vm.$emit("repeat-field",i,r.api);var u=!1,c=!!i.__fc__,d=s.value;if(c){d=(a=i.__fc__).defaultValue;var h=!a.check(r);if(a.deleted){if(h){if(je(a))return;a.update(r)}}else if(h){if(je(a))return;e[o]=i=i._clone?i._clone():se(i),a=null,u=!0}}if(a)a.originType!==a.rule.type&&(a.updateType(),r.bindParser(a)),r.appendValue(a.rule);else{var f=r.parseRule(i);a=new De(r,f,c?d:f.value),r.bindParser(a)}if([!1,!0].forEach((function(e){return r.parseEmit(a,e)})),r.syncProp(a),a.parent=t||null,a.root=e,r.setCtx(a),!u&&!c&&r.effect(a,"load"),r.effect(a,"created"),!1===a.parser.loadChildren||n(a.rule.children,a),!t){var p=function t(n){var i=e[n-1];if(!i||!i.__fc__)return n>0?t(n-1):-1;var o=r.sort.indexOf(i.__fc__.id);return o>-1?o:t(n-1)}(o);p>-1||!o?r.sort.splice(p+1,0,a.id):r.sort.push(a.id)}var m=a.rule;return a.updated||(a.updated=!0,S.Function(m.update)&&r.bus.$once("load-end",(function(){r.refreshUpdate(a,m.value,"init")})),r.effect(a,"loaded")),a.input&&Object.defineProperty(m,"value",r.valueHandle(a)),r.refreshControl(a)&&(r.cycleLoad=!0),a}}))},refreshControl:function(e){return e.input&&e.rule.control&&this.useCtrl(e)},useCtrl:function(e){var t=this,r=function(e){var t=e.rule.control||[];return S.Object(t)?[t]:t}(e),n=[],i=this.api;if(!r.length)return!1;for(var o=function(t){var o=r[t],a=o.handle||(Ee[o.condition||"=="]||Ee["=="])(o.value);if(!S.trueArray(o.rule))return"continue";var s=d(d({},o),{},{valid:fe((function(){return a(e.rule.value,i)})),ctrl:Ie(e,o.rule),isHidden:S.String(o.rule[0])});if(s.valid&&s.ctrl||!s.valid&&!s.ctrl&&!s.isHidden)return"continue";n.push(s)},a=0;a>>0,1).length>0;return i.length||delete this[n][t],o},getFieldCtx:function(e){return(this.fieldCtx[e]||[])[0]},getNameCtx:function(e){return this.nameCtx[e]||[]},setCtx:function(e){var t=e.id,r=e.field,n=e.name,i=e.rule;this.ctxs[t]=e,n&&this.setIdCtx(e,n,"name"),e.input&&(this.setIdCtx(e,r,"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[xe(e.type)]||t[e.trueType]||Ne},bindParser:function(e){e.setParser(this.getParser(e))},getType:function(e){var t=this.fc.CreateNode.aliasMap,r=t[e]||t[xe(e)]||e;return xe(r)},noWatch:function(e){this.noWatchFn||(this.noWatchFn=e),fe(e),this.noWatchFn===e&&(this.noWatchFn=null)},watchCtx:function(e){var t=this,r=this.vm;Object.keys(e.rule).filter((function(e){return"_"!==e[0]&&"$"!==e[0]&&-1===Be.indexOf(e)})).forEach((function(n){var i="children"===n;e.watch.push(r.$watch((function(){return e.rule[n]}),(function(r,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"!==n){if(["props","on","nativeOn","deep"].indexOf(n)>-1)t.parseInjectEvent(e.rule,r||{}),"props"===n&&e.input&&t.setFormData(e,e.parser.toFormValue(e.rule.value,e));else if(["emit","nativeEmit"].indexOf(n)>-1)t.parseEmit(e,"emit"===n);else if(["prefix","suffix"].indexOf(n)>-1)r&&t.loadFn(r,e.rule);else if("type"===n)e.updateType(),t.bindParser(e);else if("children"===n){var a=S.trueArray(r);t.deferSyncValue((function(){r!==o&&(t.rmSub(o,e),t.$render.initOrgChildren()),a&&t.loadChildren(r,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 r=this;S.trueArray(e)&&e.forEach((function(e){e&&e.__fc__&&e.__fc__.parent===t&&r.rmCtx(e.__fc__)}))},rmCtx:function(e){var t=this;if(!e.deleted){var r=e.id,n=e.field,i=e.input,o=e.name;e.input&&Object.defineProperty(e.rule,"value",{value:e.rule.value,writable:!0}),E(this.ctxs,r),E(this.$render.tempList,r),E(this.$render.orgChildren,r),E(this.vm.ctxInject,r),E(this.formData,r),E(this.subForm,r),E(e,"cacheValue"),i&&this.rmIdCtx(e,n,"field"),o&&this.rmIdCtx(e,o,"name"),i&&!M(this.fieldCtx,n)&&E(this.form,n),this.deferSyncValue((function(){t.reloading||(!1!==e.parser.loadChildren&&S.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(r);return a>-1&&this.sort.splice(a,1),this.$render.clearCache(e),e.delete(),this.effect(e,"deleted"),i&&!this.fieldCtx[n]&&this.vm.$emit("removeField",n,e.rule,this.api),e.rule.__ctrl||this.vm.$emit("removeRule",e.rule,this.api),e}}})}(Ye),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){var t=this,r=this.options[e];S.Function(r)&&fe((function(){return r(t.api)})),this.vm.$emit(e,this.api)}})}(Ye),function(e){R(e.prototype,{useProvider:function(){var e=this,t=this.fc.providers;Object.keys(t).forEach((function(r){var n=t[r];S.Function(n)&&(n=n(e.fc)),n._c=function(e){var t=e.components;if(Array.isArray(t)){var r=function(e){return e.filter((function(e,t,r){return r.indexOf(e,0)===t}))}(t.filter((function(e){return"*"!==e})));return!!r.length&&r}return!!S.String(t)&&[t]}(n),e.onEffect(n),e.providers[r]=n}))},onEffect:function(e){var t=this,r=[];(e._c||["*"]).forEach((function(n){var i="*"===n?"*":t.getType(n);r.indexOf(i)>-1||(r.push(i),t.bus.$on("p:".concat(e.name,":").concat(i,":").concat(e.input?1:0),(function(t,r){e[t]&&e[t].apply(e,g(r))})))})),e._used=r},watchEffect:function(e){var t=this,r=this.vm,n={required:function(){var t,r;return(M(e.rule,"$required")?e.rule.$required:null===(t=e.rule)||void 0===t||null===(r=t.effect)||void 0===r?void 0:r.required)||!1}};Object.keys(e.rule.effect||{}).forEach((function(t){n[t]=function(){return e.rule.effect[t]}})),Object.keys(e.rule).forEach((function(t){"$"===t[0]&&(n[t.substr(1)]=function(){return e.rule[t]})})),Object.keys(n||{}).forEach((function(i){e.watch.push(r.$watch(n[i],(function(r){t.effect(e,"watch",u({},i,r))}),{deep:!0}))}))},ruleEffect:function(e,t,r){this.emitEffect({rule:e,input:!!e.field,type:this.getType(e.type)},t,r)},effect:function(e,t,r){this.emitEffect({rule:e.rule,input:e.input,type:e.trueType,ctx:e,custom:r},t)},getEffect:function(e,t){return M(e,"$"+t)?e["$"+t]:M(e,"effect")&&M(e.effect,t)?e.effect[t]:void 0},emitEffect:function(e,t,r){var n=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=n.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 n.getEffect(o,e)}},r||{});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),n.bus.$emit("p:".concat(e,":").concat(c,":").concat(l.input?1:0),t,[h,o,n.api])}}))}}})}(Ye);var He={name:"fcFragment",functional:!0,props:["vnode"],render:function(e,t){return t.props.vnode?t.props.vnode:t.children}};function Ve(){var e={};function r(e){e&&this.setVm(e)}return R(r.prototype,{setVm:function(e){this.vm=e,this.$h=e.$createElement},make:function(e,r,n){return t.config.isReservedTag(e)&&r.nativeOn&&delete r.nativeOn,this.makeComponent(e,r,n)},makeComponent:function(e,t,r){var n,i=this.$h(e,(n=t,S.String(n)?{domProps:{innerHTML:n}}:n),r||[]);return i.context=this.vm,i},aliasMap:e}),R(r,{aliasMap:e,alias:function(t,r){e[t]=r},use:function(e){Object.keys(e).forEach((function(t){var n=Me(t),i=Se(t).toLocaleLowerCase(),o=e[t];[t,n,i].forEach((function(e){r.alias(t,o),r.prototype[e]=function(e,t){return this.make(o,e,t)}}))}))}}),r}function Ue(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)}(r,We);var t=m(r);function r(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),t.apply(this,arguments)}return r}();return Object.assign(t.prototype,e),t}function We(e){R(this,{$handle:e,vm:e.vm,options:{},ref:"fcForm",mergeOptionsRule:{normal:["form","row","info","submitBtn","resetBtn"]}}),this.updateKey(),this.init()}R(We.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=Te()},init:function(){},update:function(){},beforeRender:function(){},form:function(){return this.vm.$refs[this.ref]},getSlot:function(e){return function t(r){if(r){var n=r.$scopedSlots[e];return n||t(r.$pfc)}}(this.vm)},mergeOptions:function(e,t){var r=this;return U(e.map((function(e){return r.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 $e={name:"componentValidate",load:function(e,t,r){var n=e.getValue();n?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 C();if(void 0===t)return o[r]}else r=xe(e.name),t=e;r&&t&&(o[r]=t,delete p.aliasMap[r],delete a[r],t.formCreateParser&&_(r,t.formCreateParser))}function x(e){Object.keys(tt).forEach((function(t){(Array.isArray(tt[t])?tt[t]:[tt[t]]).forEach((function(t){t.bus.$emit("p.loadData."+e)}))}))}function k(e,t){f[e]=t,x(e)}function M(e){delete f[e],x(e)}function C(){return Ke.extend(F(D))}function T(){return Ke.extend(He)}function O(e,t){return S.Function(e.install)?e.install(L,t):S.Function(e)&&e(L,t),this}function L(e,t,r){var n=Qe(e,t||{}),i=n.$refs.fc.formCreate;return i.$parent=r,Je(i.options).appendChild(n.$el),i.api()}function A(t){var r=d({},e);return t?r.inherit={components:o,parsers:a,directives:s,providers:l,maker:c,loadData:f}:delete r.inherit,rt(r)}function D(t){var r=t.$options.propsData.rule;R(this,{id:et++,vm:t,create:L,manager:Ue(e.manager),parsers:a,providers:l,rules:Array.isArray(r)?r:[],name:t.$options.propsData.name||Te(),inFor:t.$options.propsData.inFor,prop:{components:o,directives:s},loadData:f,CreateNode:p,bus:new Ke,unwatch:null,options:{},extendApi:e.extendApi||function(e){return e}}),this.init(),this.initOptions(),this.name&&(this.inFor?(tt[this.name]||(tt[this.name]=[]),tt[this.name].push(this)):tt[this.name]=this)}function E(t){R(t,{version:e.version,ui:e.ui,setData:k,removeData:M,maker:c,component:w,directive:v,register:y,$vnode:T,parser:_,use:O,factory:A,componentAlias:b,copyRule:se,copyRules:le,fetch:ze,$form:C,parseFn:ie,parseJson:oe,toJson:re,getApi:m,init:function(e){var t=Qe(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),r=t.$refs.fc.formCreate;return{mount:function(e){return e&&S.Element(e)&&(r.options.el=e),Je(r.options).appendChild(t.$el),r.api()},remove:function(){t.$el.parentNode&&t.$el.parentNode.removeChild(t.$el)},destroy:function(){this.remove(),t.$destroy()},$f:r.api()}}})}if(t=e.attrs||{},r=t.key||[],n=t.array||[],i=t.normal||[],$.push.apply($,g(r)),G.push.apply(G,g(n)),q.push.apply(q,g(i)),ge([].concat(g(r),g(n),g(i))),R(D.prototype,{init:function(){var e=this,t=this.vm,r=new Ye(this);this.$handle=r,t.$f=r.api,t.$emit("input",r.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.disabled&&t.$f.disabled(!0)})),t.$on("hook:mounted",(function(){e.mounted()})),t.$on("hook:beforeDestroy",(function(){if(t.destroyed=!0,e.unwatch&&e.unwatch(),r.reloadRule([]),e.name)if(e.inFor){var n=tt[e.name].indexOf(e);tt[e.name].splice(n,1),tt[e.name].length||delete tt[e.name]}else delete tt[e.name]})),t.$on("hook:updated",(function(){r.bindNextTick((function(){return e.bus.$emit("next-tick",r.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,r){return t=j(t),r&&["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(r){t[r]&&(e[r]=ue(e[r]||{},t[r]))})),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()}}),E(L),R(L,{create:L,install:function(e,t){if(h=d(d({},h),t||{}),!0!==e._installedFormCreate){e._installedFormCreate=!0,Ke=e;var r=function(e){return L(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},this)};E(r),e.prototype.$formCreate=r,e.component("FormCreate",C()),e.component("FcFragment",T())}}}),p.use({fragment:"fcFragment"}),_(Xe),e.install&&L.use(e),e.inherit){var I=e.inherit;I.components&&R(o,I.components),I.parsers&&R(a,I.parsers),I.directives&&R(s,I.directives),I.providers&&R(l,I.providers),I.maker&&R(c,I.maker),I.loadData&&R(f,I.loadData)}return L}var nt={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"},it={name:"datePicker",maker:["year","month","date","dates","week","datetime","datetimeRange","dateRange","monthRange"].reduce((function(e,t){return e[t]=pe("datePicker",{type:t.toLowerCase()}),e}),{}),mergeProp:function(e){var t=e.prop.props;t.valueFormat||(t.valueFormat=nt[t.type]||nt.date)}},ot={name:"hidden",maker:u({},"hidden",(function(e,t){return pe("hidden")("",e,t)})),render:function(){return[]}},at=[it,ot,{name:"input",maker:function(){var e=["password","url","email","text","textarea"].reduce((function(e,t){return e[t]=pe("input",{type:t}),e}),{});return e.idate=pe("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:pe("slider",{range:!0})},toFormValue:function(e,t){var r=Array.isArray(e),n=t.prop.props,i=n.min||0;return!0===n.range?r?e:[i,parseFloat(e)||i]:r?parseFloat(e[0])||i:parseFloat(e)}},{name:"timePicker",maker:{time:pe("timePicker",(function(e){return e.props.isRange=!1})),timeRange:pe("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}}],st={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"},lt=/[A-Z]/;function ut(e,t){var r;M(e,t)&&S.String(e[t])&&(e[t]=(u(r={},t,e[t]),u(r,"show",!0),r))}function ct(e){return!1===e}var dt={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(r,n){t.validateField(e,(function(e){e?n(e):r(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){M(e,t)&&!S.Object(e[t])&&(e[t]={show:!!e[t]})}(e,t)})),e},tidyRule:function(e){var t=e.prop;return ut(t,"title"),ut(t,"info"),t},mergeProp:function(e){var t=e.prop.props;e.prop=U([{attrs:Object.keys(t).reduce((function(e,r){var n,i;return n=r,i=t[r],lt.test(n)||!S.String(i)&&!S.Number(i)||(e[r]=t[r]),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,r=this.$handle;R(this.rule,{key:e,ref:t}),R(this.rule.props,{model:r.formData,rules:r.validate()})},render:function(e){return e.length&&e.push(this.makeFormBtn()),this.$r(this.rule,ct(this.options.row.show)?e:[this.makeRow(e)])},makeWrap:function(e,t){var r=e.prop,n="".concat(this.key).concat(e.key),i=r.col,o=this.isTitle(r),a=i.labelWidth||o?i.labelWidth:0,s=this.rule.props,l=s.inline,u=s.col,c=ct(r.wrap.show)?t:this.$r(U([r.wrap,{props:d(d({labelWidth:void 0===a?a:Se(a),label:o?r.title.title:void 0},r.wrap||{}),{},{prop:e.id,rules:r.validate}),class:r.className,key:"".concat(n,"fi"),ref:e.wrapRef,type:"formItem"}]),[t,o?this.makeInfo(r,n,e):null]);return!0===l||ct(u)||ct(i.show)?c:this.makeCol(r,n,[c])},isTitle:function(e){if(!1===this.options.form.title)return!1;var t=e.title;return!(!t.title&&!t.native||ct(t.show))},makeInfo:function(e,t,r){var n=e.title,i=e.info,o="tooltip"===i.type,a=this.options.form,s=this.getSlot("title"),l=[s?s({title:n.title||"",rule:r.rule,options:this.options}):(n.title||"")+(a.labelSuffix||a["label-suffix"]||"")];if(!ct(i.show)&&(i.info||i.native)&&!ct(i.icon)){var u={type:i.type||"popover",props:d({},i),key:"".concat(t,"pop"),slot:"label"};i.info&&!M(u.props,"content")&&(u.props.content=i.info),l["left"!==i.align?"unshift":"push"](this.$r(U([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(U([n,{props:n,slot:n.slot||"label",key:"".concat(t,"tit"),type:n.type||"span"}]),l)},makeCol:function(e,t,r){var n=e.col;return this.$r({class:n.class,type:"col",props:n||{span:24},key:"".concat(t,"col")},r)},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(ct(this.options.submitBtn.show)||e.push(this.makeSubmitBtn()),ct(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 r=e.$handle.api;t.click?t.click(r):r.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 r=e.$handle.api;t.click?t.click(r):r.submit()}},key:"".concat(this.key,"b1")},[t.innerText])}},ht={};function ft(e,t){return S.Boolean(e)?e={show:e}:S.Undef(e)||S.Object(e)||(e={show:t}),e}function pt(e,t){return R(e,{formEl:function(){return t.$manager.form()},wrapEl:function(e){var r=t.getFieldCtx(e);if(r)return t.vm.$refs[r.wrapRef]},validate:function(r){return new Promise((function(n,i){var o=e.children,a=[t.$manager.validate()];o.forEach((function(e){a.push(e.validate())})),Promise.all(a).then((function(){n(!0),r&&r(!0)})).catch((function(n){i(n),r&&r(!1,n),t.vm.$emit("validate-fail",n,{api:e})}))}))},validateField:function(r,n){return new Promise((function(i,o){var a=t.getFieldCtx(r);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),n&&n(null)})).catch((function(i){o(i),n&&n(i),t.vm.$emit("validate-field-fail",i,{field:r,api:e})}))}}))},clearValidateState:function(r){var n=this,i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e.helper.tidyFields(r).forEach((function(e){i&&n.clearSubValidateState(e),t.getCtxs(e).forEach((function(e){t.$manager.clearValidateState(e)}))}))},clearSubValidateState:function(r){e.helper.tidyFields(r).forEach((function(e){t.getCtxs(e).forEach((function(e){var r=t.subForm[e.id];r&&(Array.isArray(r)?r.forEach((function(e){e.clearValidateState()})):r&&r.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 r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=ft(t.options.submitBtn,!0);R(n,r),t.options.submitBtn=n,e.refreshOptions()},resetBtnProps:function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=ft(t.options.resetBtn,!1);R(n,r),t.options.resetBtn=n,e.refreshOptions()},submit:function(r,n){var i=arguments,o=this;e.validate((function(a){if(a){var s=e.formData();S.Function(r)?fe((function(){return r(s,o)})):(S.Function(t.options.onSubmit)&&fe((function(){return t.options.onSubmit(s,o)})),t.vm.$emit("submit",s,o))}else S.Function(n)&&fe((function(){return n.apply(void 0,[o].concat(g(i)))}))}))}}),e}function mt(e){e.componentAlias(st),N.forEach((function(t){e.component(t.name,t)})),at.forEach((function(t){e.parser(t)})),Object.keys(ht).forEach((function(t){e.maker[t]=ht[t]}))}!function(e){["group","tree","switch","upload","autoComplete","checkbox","cascader","colorPicker","datePicker","frame","inputNumber","radio","rate"].forEach((function(t){e[t]=pe(t)})),e.auto=e.autoComplete,e.number=e.inputNumber,e.color=e.colorPicker}(ht),function(e){e.selectMultiple=pe("select",u({},"multiple",!0)),e.selectOne=pe("select",u({},"multiple",!1))}(ht),function(e){var t={treeSelected:"selected",treeChecked:"checked"};Object.keys(t).reduce((function(e,r){return e[r]=pe("tree",{type:t[r]}),e}),e)}(ht),function(e){var t={image:["image",0],file:["file",0],uploadFileOne:["file",1],uploadImageOne:["image",1]};Object.keys(t).reduce((function(e,r){return e[r]=pe("upload",(function(e){return e.props({uploadType:t[r][0],maxLength:t[r][1]})})),e}),e),e.uploadImage=e.image,e.uploadFile=e.file}(ht),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,r){return e[r]=pe("frame",(function(e){return e.props({type:t[r][0],maxLength:t[r][1]})})),e}),e),e.frameInput=e.frameInputs,e.frameFile=e.frameFiles,e.frameImage=e.frameImages}(ht),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 gt=rt({ui:"".concat("element-ui"),version:"".concat("2.5.35"),manager:dt,extendApi:pt,install:mt,attrs:{normal:["col","wrap"],array:["className"],key:["title","info"]}});"undefined"!=typeof window&&(window.formCreate=gt,window.Vue&>.install(window.Vue));var vt=gt.maker;e.default=gt,e.maker=vt,Object.defineProperty(e,"__esModule",{value:!0})}))},"30f1":function(e,t,r){"use strict";var n=r("b8e3"),i=r("63b6"),o=r("9138"),a=r("35e8"),s=r("481b"),l=r("8f60"),u=r("45f2"),c=r("53e2"),d=r("5168")("iterator"),h=!([].keys&&"next"in[].keys()),f="@@iterator",p="keys",m="values",g=function(){return this};e.exports=function(e,t,r,v,y,b,_){l(r,t,v);var w,x,k,S=function(e){if(!h&&e in O)return O[e];switch(e){case p:return function(){return new r(this,e)};case m:return function(){return new r(this,e)}}return function(){return new r(this,e)}},M=t+" Iterator",C=y==m,T=!1,O=e.prototype,L=O[d]||O[f]||y&&O[y],A=L||S(y),D=y?C?S("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,M,!0),n||"function"==typeof k[d]||a(k,d,g))),C&&L&&L.name!==m&&(T=!0,A=function(){return L.call(this)}),n&&!_||!h&&!T&&O[d]||a(O,d,A),s[t]=A,s[M]=g,y)if(w={values:C?A:S(m),keys:b?A:S(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,r){"use strict";var n={};r.r(n),r.d(n,"updateProps",(function(){return Ul})),r.d(n,"initProps",(function(){return Wl})),r.d(n,"removeElement",(function(){return Gl})),r.d(n,"removeElementWithFadeOut",(function(){return Xl})),r.d(n,"isElementRemoved",(function(){return $l})),r.d(n,"extendShape",(function(){return cg})),r.d(n,"extendPath",(function(){return hg})),r.d(n,"registerShape",(function(){return fg})),r.d(n,"getShapeClass",(function(){return pg})),r.d(n,"makePath",(function(){return mg})),r.d(n,"makeImage",(function(){return gg})),r.d(n,"mergePath",(function(){return yg})),r.d(n,"resizePath",(function(){return bg})),r.d(n,"subPixelOptimizeLine",(function(){return _g})),r.d(n,"subPixelOptimizeRect",(function(){return wg})),r.d(n,"subPixelOptimize",(function(){return xg})),r.d(n,"getTransform",(function(){return kg})),r.d(n,"applyTransform",(function(){return Sg})),r.d(n,"transformDirection",(function(){return Mg})),r.d(n,"groupTransition",(function(){return Og})),r.d(n,"clipPointsByRect",(function(){return Lg})),r.d(n,"clipRectByRect",(function(){return Ag})),r.d(n,"createIcon",(function(){return Dg})),r.d(n,"linePolygonIntersect",(function(){return Eg})),r.d(n,"lineLineIntersect",(function(){return Ig})),r.d(n,"setTooltipConfig",(function(){return Rg})),r.d(n,"traverseElements",(function(){return Bg})),r.d(n,"Group",(function(){return kn})),r.d(n,"Image",(function(){return Qa})),r.d(n,"Text",(function(){return Cs})),r.d(n,"Circle",(function(){return Qp})),r.d(n,"Ellipse",(function(){return rm})),r.d(n,"Sector",(function(){return _m})),r.d(n,"Ring",(function(){return km})),r.d(n,"Polygon",(function(){return Om})),r.d(n,"Polyline",(function(){return Dm})),r.d(n,"Rect",(function(){return ls})),r.d(n,"Line",(function(){return Pm})),r.d(n,"BezierCurve",(function(){return Fm})),r.d(n,"Arc",(function(){return Vm})),r.d(n,"IncrementalDisplayable",(function(){return ag})),r.d(n,"CompoundPath",(function(){return Wm})),r.d(n,"LinearGradient",(function(){return Xm})),r.d(n,"RadialGradient",(function(){return Zm})),r.d(n,"BoundingRect",(function(){return Oe})),r.d(n,"OrientedBoundingRect",(function(){return ng})),r.d(n,"Point",(function(){return ye})),r.d(n,"Path",(function(){return Wa}));var i={};r.r(i),r.d(i,"extendShape",(function(){return cg})),r.d(i,"extendPath",(function(){return hg})),r.d(i,"makePath",(function(){return mg})),r.d(i,"makeImage",(function(){return gg})),r.d(i,"mergePath",(function(){return yg})),r.d(i,"resizePath",(function(){return bg})),r.d(i,"createIcon",(function(){return Dg})),r.d(i,"updateProps",(function(){return Ul})),r.d(i,"initProps",(function(){return Wl})),r.d(i,"getTransform",(function(){return kg})),r.d(i,"clipPointsByRect",(function(){return Lg})),r.d(i,"clipRectByRect",(function(){return Ag})),r.d(i,"registerShape",(function(){return fg})),r.d(i,"getShapeClass",(function(){return pg})),r.d(i,"Group",(function(){return kn})),r.d(i,"Image",(function(){return Qa})),r.d(i,"Text",(function(){return Cs})),r.d(i,"Circle",(function(){return Qp})),r.d(i,"Ellipse",(function(){return rm})),r.d(i,"Sector",(function(){return _m})),r.d(i,"Ring",(function(){return km})),r.d(i,"Polygon",(function(){return Om})),r.d(i,"Polyline",(function(){return Dm})),r.d(i,"Rect",(function(){return ls})),r.d(i,"Line",(function(){return Pm})),r.d(i,"BezierCurve",(function(){return Fm})),r.d(i,"Arc",(function(){return Vm})),r.d(i,"IncrementalDisplayable",(function(){return ag})),r.d(i,"CompoundPath",(function(){return Wm})),r.d(i,"LinearGradient",(function(){return Xm})),r.d(i,"RadialGradient",(function(){return Zm})),r.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 r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},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 r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}Object.create;Object.create;var s=r("22d1"),l=r("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,r){return e[0]=t,e[1]=r,e}function f(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e}function p(e,t,r,n){return e[0]=t[0]+r[0]*n,e[1]=t[1]+r[1]*n,e}function m(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[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,r){return e[0]=t[0]*r,e[1]=t[1]*r,e}function b(e,t){var r=g(t);return 0===r?(e[0]=0,e[1]=0):(e[0]=t[0]/r,e[1]=t[1]/r),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 S(e,t,r,n){return e[0]=t[0]+n*(r[0]-t[0]),e[1]=t[1]+n*(r[1]-t[1]),e}function M(e,t,r){var n=t[0],i=t[1];return e[0]=r[0]*n+r[2]*i+r[4],e[1]=r[1]*n+r[3]*i+r[5],e}function C(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e}function T(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[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 r=e.offsetX,n=e.offsetY,i=r-this._x,o=n-this._y;this._x=r,this._y=n,t.drift(i,o,e),this.handler.dispatchToElement(new O(t,e),"drag",e.event);var a=this.handler.findHover(r,n,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,r,n){this._$handlers||(this._$handlers={});var i=this._$handlers;if("function"===typeof t&&(n=r,r=t,t=null),!r||!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",n[l]+":0",i[u]+":0",n[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),e.appendChild(a),r.push(a)}return r}function z(e,t,r){for(var n=r?"invTrans":"trans",i=t[n],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[n]=r?P(s,a):P(a,s))}function H(e){return"CANVAS"===e.nodeName.toUpperCase()}var V=/([&<>"'])/g,U={"&":"&","<":"<",">":">",'"':""","'":"'"};function W(e){return null==e?"":(e+"").replace(V,(function(e,t){return U[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,r,n){return r=r||{},n?K(e,t,r):q&&null!=t.layerX&&t.layerX!==t.offsetX?(r.zrX=t.layerX,r.zrY=t.layerY):null!=t.offsetX?(r.zrX=t.offsetX,r.zrY=t.offsetY):K(e,t,r),r}function K(e,t,r){if(s["a"].domSupported&&e.getBoundingClientRect){var n=t.clientX,i=t.clientY;if(H(e)){var o=e.getBoundingClientRect();return r.zrX=n-o.left,void(r.zrY=i-o.top)}if(Y(G,e,n,i))return r.zrX=G[0],void(r.zrY=G[1])}r.zrX=r.zrY=0}function Z(e){return e||window.event}function J(e,t,r){if(t=Z(t),null!=t.zrX)return t;var n=t.type,i=n&&n.indexOf("touch")>=0;if(i){var o="touchend"!==n?t.targetTouches[0]:t.changedTouches[0];o&&X(e,o,t,r)}else{X(e,t,t,r);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 r=e.deltaX,n=e.deltaY;if(null==r||null==n)return t;var i=0!==n?Math.abs(n):Math.abs(r),o=n>0?-1:n<0?1:r>0?-1:1;return 3*i*o}function ee(e,t,r,n){e.addEventListener(t,r,n)}function te(e,t,r,n){e.removeEventListener(t,r,n)}var re=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function ne(e){return 2===e.which||3===e.which}var ie=function(){function e(){this._track=[]}return e.prototype.recognize=function(e,t,r){return this._doTrack(e,t,r),this._recognize(e)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(e,t,r){var n=e.touches;if(n){for(var i={points:[],touches:[],target:t,event:e},o=0,a=n.length;o1&&n&&n.length>1){var o=oe(n)/oe(i);!isFinite(o)&&(o=1),t.pinchScale=o;var a=ae(n);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,r){var n=t[0]*r[0]+t[2]*r[1],i=t[1]*r[0]+t[3]*r[1],o=t[0]*r[2]+t[2]*r[3],a=t[1]*r[2]+t[3]*r[3],s=t[0]*r[4]+t[2]*r[5]+t[4],l=t[1]*r[4]+t[3]*r[5]+t[5];return e[0]=n,e[1]=i,e[2]=o,e[3]=a,e[4]=s,e[5]=l,e}function he(e,t,r){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+r[0],e[5]=t[5]+r[1],e}function fe(e,t,r,n){void 0===n&&(n=[0,0]);var i=t[0],o=t[2],a=t[4],s=t[1],l=t[3],u=t[5],c=Math.sin(r),d=Math.cos(r);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-n[0])+c*(u-n[1])+n[0],e[5]=d*(u-n[1])-c*(a-n[0])+n[1],e}function pe(e,t,r){var n=r[0],i=r[1];return e[0]=t[0]*n,e[1]=t[1]*i,e[2]=t[2]*n,e[3]=t[3]*i,e[4]=t[4]*n,e[5]=t[5]*i,e}function me(e,t){var r=t[0],n=t[2],i=t[4],o=t[1],a=t[3],s=t[5],l=r*a-o*n;return l?(l=1/l,e[0]=a*l,e[1]=-o*l,e[2]=-n*l,e[3]=r*l,e[4]=(n*s-a*i)*l,e[5]=(o*i-r*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,r=this.y-e.y;return Math.sqrt(t*t+r*r)},e.prototype.distanceSquare=function(e){var t=this.x-e.x,r=this.y-e.y;return t*t+r*r},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,r=this.y;return this.x=e[0]*t+e[2]*r+e[4],this.y=e[1]*t+e[3]*r+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,r){e.x=t,e.y=r},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,r){e.x=t.x+r.x,e.y=t.y+r.y},e.sub=function(e,t,r){e.x=t.x-r.x,e.y=t.y-r.y},e.scale=function(e,t,r){e.x=t.x*r,e.y=t.y*r},e.scaleAndAdd=function(e,t,r,n){e.x=t.x+r.x*n,e.y=t.y+r.y*n},e.lerp=function(e,t,r,n){var i=1-n;e.x=i*t.x+n*r.x,e.y=i*t.y+n*r.y},e}(),ye=ve,be=Math.min,_e=Math.max,we=new ye,xe=new ye,ke=new ye,Se=new ye,Me=new ye,Ce=new ye,Te=function(){function e(e,t,r,n){r<0&&(e+=r,r=-r),n<0&&(t+=n,n=-n),this.x=e,this.y=t,this.width=r,this.height=n}return e.prototype.union=function(e){var t=be(e.x,this.x),r=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)-r:this.height=e.height,this.x=t,this.y=r},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(e){var t=this,r=e.width/t.width,n=e.height/t.height,i=le();return he(i,i,[-t.x,-t.y]),pe(i,i,[r,n]),he(i,i,[e.x,e.y]),i},e.prototype.intersect=function(t,r){if(!t)return!1;t instanceof e||(t=e.create(t));var n=this,i=n.x,o=n.x+n.width,a=n.y,s=n.y+n.height,l=t.x,u=t.x+t.width,c=t.y,d=t.y+t.height,h=!(op&&(p=b,mp&&(p=_,v=r.x&&e<=r.x+r.width&&t>=r.y&&t<=r.y+r.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,r,n){if(n){if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var i=n[0],o=n[3],a=n[4],s=n[5];return t.x=r.x*i+a,t.y=r.y*o+s,t.width=r.width*i,t.height=r.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=r.x,we.y=Se.y=r.y,xe.x=Se.x=r.x+r.width,xe.y=ke.y=r.y+r.height,we.transform(n),Se.transform(n),xe.transform(n),ke.transform(n),t.x=be(we.x,xe.x,ke.x,Se.x),t.y=be(we.y,xe.y,ke.y,Se.y);var l=_e(we.x,xe.x,ke.x,Se.x),u=_e(we.y,xe.y,ke.y,Se.y);t.width=l-t.x,t.height=u-t.y}else t!==r&&e.copy(t,r)},e}(),Oe=Te,Le="silent";function Ae(e,t,r){return{type:e,event:r,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:De}}function De(){re(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,r,n,i,o){var a=e.call(this)||this;return a._hovered=new Ie(0,0),a.storage=t,a.painter=r,a.painterRoot=i,a._pointerSize=o,n=n||new Ee,a.proxy=null,a.setHandlerProxy(n),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,r=e.zrY,n=Ye(this,t,r),i=this._hovered,o=i.target;o&&!o.__zr&&(i=this.findHover(i.x,i.y),o=i.target);var a=this._hovered=n?new Ie(t,r):this.findHover(t,r),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 r=this[e];r&&r.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,r){e=e||{};var n=e.target;if(!n||!n.silent){var i="on"+t,o=Ae(t,e,r);while(n)if(n[i]&&(o.cancelBubble=!!n[i].call(n,o)),n.trigger(t,o),n=n.__hostTarget?n.__hostTarget:n.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,r){var n=this.storage.getDisplayList(),i=new Ie(e,t);if(Be(n,i,e,t,r),this._pointerSize&&!i.target){for(var o=[],a=this._pointerSize,s=a/2,l=new Oe(e-s,t-s,a,a),u=n.length-1;u>=0;u--){var c=n[u];c===r||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,r,n))&&(!t.topTarget&&(t.topTarget=a),s!==Le)){t.target=a;break}}}function Ye(e,t,r){var n=e.painter;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}l["k"](["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(e){Re.prototype[e]=function(t){var r,n,i=t.zrX,o=t.zrY,a=Ye(this,i,o);if("mouseup"===e&&a||(r=this.findHover(i,o),n=r.target),"mousedown"===e)this._downEl=n,this._downPoint=[t.zrX,t.zrY],this._upEl=n;else if("mouseup"===e)this._upEl=n;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(r,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 Ue(e,t,r,n){var i=t+1;if(i===r)return 1;if(n(e[i++],e[t])<0){while(i=0)i++;return i-t}function We(e,t,r){r--;while(t>>1,i(a,e[o])<0?l=o:s=o+1;var u=n-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,r,n,i,o){var a=0,s=0,l=1;if(o(e,t[r+i])>0){s=n-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[r+c])>0?a=c+1:l=c}return l}function qe(e,t,r,n,i,o){var a=0,s=0,l=1;if(o(e,t[r+i])<0){s=i+1;while(ls&&(l=s);var u=a;a=i-l,l=i-u}else{s=n-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[r+c])<0?l=c:a=c+1}return l}function Xe(e,t){var r,n,i=He,o=0,a=[];function s(e,t){r[o]=e,n[o]=t,o+=1}function l(){while(o>1){var e=o-2;if(e>=1&&n[e-1]<=n[e]+n[e+1]||e>=2&&n[e-2]<=n[e]+n[e-1])n[e-1]n[e+1])break;c(e)}}function u(){while(o>1){var e=o-2;e>0&&n[e-1]=He||f>=He);if(p)break;m<0&&(m=0),m+=2}if(i=m,i<1&&(i=1),1===n){for(l=0;l=0;l--)e[f+l]=e[h+l];if(0===n){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-=n,u-=n,f=d+1,h=u+1,l=n-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,r,r+l,r+o,t),o=l}a.pushRun(r,o),a.mergeRuns(),i-=o,r+=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 rt(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var nt,it=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=rt}return e.prototype.traverse=function(e,t){for(var r=0;r0&&(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,r);var d=e.getTextGuideLine();d&&this._updateAndAddDisplayable(d,t,r);var h=e.getTextContent();h&&this._updateAndAddDisplayable(h,t,r)}},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,r=e.length;t=0&&this._roots.splice(n,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;nt=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=nt,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,r=.1,n=.4;return 0===e?0:1===e?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),-r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n))},elasticOut:function(e){var t,r=.1,n=.4;return 0===e?0:1===e?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/n)+1)},elasticInOut:function(e){var t,r=.1,n=.4;return 0===e?0:1===e?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),(e*=2)<1?r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*-.5:r*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*.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,r,n,i){var o=1-i;return o*o*(o*e+3*i*t)+i*i*(i*n+3*o*r)}function wt(e,t,r,n,i){var o=1-i;return 3*(((t-e)*o+2*(r-t)*i)*o+(n-r)*i*i)}function xt(e,t,r,n,i,o){var a=n+3*(t-r)-e,s=3*(r-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),S=Math.cos(x),M=(p=(-s-2*k*S)/(3*a),v=(-s+k*(S+ft*Math.sin(x)))/(3*a),(-s+k*(S-ft*Math.sin(x)))/(3*a));p>=0&&p<=1&&(o[f++]=p),v>=0&&v<=1&&(o[f++]=v),M>=0&&M<=1&&(o[f++]=M)}}return f}function kt(e,t,r,n,i){var o=6*r-12*t+6*e,a=9*t+3*n-3*e-9*r,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 St(e,t,r,n,i,o){var a=(t-e)*i+e,s=(r-t)*i+t,l=(n-r)*i+r,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]=n}function Mt(e,t,r,n,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,r,i,a,y),gt[1]=_t(t,n,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,r){var n=e+r-2*t;return 0===n?.5:(e-t)/n}function Dt(e,t,r,n,i){var o=(t-e)*n+e,a=(r-t)*n+t,s=(a-o)*n+o;i[0]=e,i[1]=o,i[2]=s,i[3]=s,i[4]=a,i[5]=r}function Et(e,t,r,n,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,r,i,h),gt[1]=Tt(t,n,o,h);var f=k(mt,gt);f=0&&f=1?1:xt(0,n,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 r=this._life,n=e-this._startTime-this._pausedTime,i=n/r;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=n%r;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=r("41ef"),Yt=r("7a29"),Ft=Array.prototype.slice;function zt(e,t,r){return(t-e)*r+e}function Ht(e,t,r,n){for(var i=t.length,o=0;on?t:e,o=Math.min(r,n),a=i[o-1]||{color:[0,0,0,0],offset:0},s=o;sa;if(s)n.length=a;else for(var l=o;l=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(e,t,r){this._needsSort=!0;var n=this.keyframes,i=n.length,o=!1,a=nr,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=er)}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=tr:Object(Yt["o"])(t)&&(a=rr),s=d}0===i?this.valType=a:a===this.valType&&a!==nr||(o=!0),this.discrete=this.discrete||o;var h={time:e,value:s,rawValue:t,percent:0};return r&&(h.easing=r,h.easingFunc=Object(l["w"])(r)?r:lt[r]||Pt(r)),n.push(h),h},e.prototype.prepare=function(e,t){var r=this.keyframes;this._needsSort&&r.sort((function(e,t){return e.time-t.time}));for(var n=this.valType,i=r.length,o=r[i-1],a=this.discrete,s=or(n),l=ir(n),u=0;u=0;r--)if(u[r].percent<=t)break;r=p(r,c-2)}else{for(r=f;rt)break;r=p(r-1,c-2)}i=u[r+1],n=u[r]}if(n&&i){this._lastFr=r,this._lastFrP=t;var g=i.percent-n.percent,v=0===g?1:p((t-n.percent)/g,1);i.easingFunc&&(v=i.easingFunc(v));var y=o?this._additiveValue:h?ar:e[d];if(!or(s)&&!h||y||(y=this._additiveValue=[]),this.discrete)e[d]=v<1?n.rawValue:i.rawValue;else if(or(s))s===Jt?Ht(y,n[a],i[a],v):Vt(y,n[a],i[a],v);else if(ir(s)){var b=n[a],_=i[a],w=s===tr;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 r=_.colorStops[t];return{offset:zt(e.offset,r.offset,v),color:Xt(Ht([],e.color,r.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,n[a],i[a],v),o||(e[d]=Xt(y));else{var x=zt(n[a],i[a],v);o?this._additiveValue=x:e[d]=x}o&&this._addToTarget(e)}}},e.prototype._addToTarget=function(e){var t=this.valType,r=this.propName,n=this._additiveValue;t===Zt?e[r]=e[r]+n:t===er?(Bt["h"](e[r],ar),Ut(ar,ar,n,1),e[r]=Xt(ar)):t===Jt?Ut(e[r],e[r],n,1):t===Qt&&Wt(e[r],e[r],n,1)},e}(),lr=function(){function e(e,t,r,n){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&n?Object(l["G"])("Can' use additive animation on looped animation."):(this._additiveAnimators=n,this._allowDiscrete=r)}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,r){return this.whenWithKeys(e,t,Object(l["F"])(t),r)},e.prototype.whenWithKeys=function(e,t,r,n){for(var i=this._tracks,o=0;o0&&s.addKeyframe(0,qt(l),n),this._trackKeys.push(a)}s.addKeyframe(e,qt(t[a]),n)}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,r=0;r0)){this._started=1;for(var t=this,r=[],n=this._maxTime||0,i=0;i1){var a=o.pop();i.addKeyframe(a.time,e[n]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},e}(),ur=lr;function cr(){return(new Date).getTime()}var dr=function(e){function t(t){var r=e.call(this)||this;return r._running=!1,r._time=0,r._pausedTime=0,r._pauseStart=0,r._paused=!1,t=t||{},r.stage=t.stage||{},r}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,r=e.next;t?t.next=r:this._head=r,r?r.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=cr()-this._pausedTime,r=t-this._time,n=this._head;while(n){var i=n.next,o=n.step(t,r);o?(n.ondestroy(),this.removeClip(n),n=i):n=i}this._time=t,e||(this.trigger("frame",r),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=cr(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=cr(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=cr()-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 r=new ur(e,t.loop);return this.addAnimator(r),r},t}(E),hr=dr,fr=300,pr=s["a"].domSupported,mr=function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=l["H"](e,(function(e){var t=e.replace("mouse","pointer");return r.hasOwnProperty(t)?t:e}));return{mouse:e,touch:t,pointer:n}}(),gr={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},vr=!1;function yr(e){var t=e.pointerType;return"pen"===t||"touch"===t}function br(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 _r(e){e&&(e.zrByTouch=!0)}function wr(e,t){return J(e.dom,new kr(e,t),!0)}function xr(e,t){var r=t,n=!1;while(r&&9!==r.nodeType&&!(n=r.domBelongToZr||r!==t&&r===e.painterRoot))r=r.parentNode;return n}var kr=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}(),Sr={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;xr(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){vr=!0,e=J(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){vr||(e=J(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=J(this.dom,e),_r(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),Sr.mousemove.call(this,e),Sr.mousedown.call(this,e)},touchmove:function(e){e=J(this.dom,e),_r(e),this.handler.processGesture(e,"change"),Sr.mousemove.call(this,e)},touchend:function(e){e=J(this.dom,e),_r(e),this.handler.processGesture(e,"end"),Sr.mouseup.call(this,e),+new Date-+this.__lastTouchMomentFr||e<-Fr}var Hr=[],Vr=[],Ur=le(),Wr=Math.abs,$r=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 zr(this.rotation)||zr(this.x)||zr(this.y)||zr(this.scaleX-1)||zr(this.scaleY-1)||zr(this.skewX)||zr(this.skewY)},e.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),r=this.transform;t||e?(r=r||le(),t?this.getLocalTransform(r):Yr(r),e&&(t?de(r,e,r):ce(r,e)),this.transform=r,this._resolveGlobalScaleRatio(r)):r&&(Yr(r),this.invTransform=null)},e.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(null!=t&&1!==t){this.getGlobalScale(Hr);var r=Hr[0]<0?-1:1,n=Hr[1]<0?-1:1,i=((Hr[0]-r)*t+r)/Hr[0]||0,o=((Hr[1]-n)*t+n)/Hr[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],r=e[2]*e[2]+e[3]*e[3],n=Math.atan2(e[1],e[0]),i=Math.PI/2+n-Math.atan2(e[3],e[2]);r=Math.sqrt(r)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-n,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=r,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(Vr,e.invTransform,t),t=Vr);var r=this.originX,n=this.originY;(r||n)&&(Ur[4]=r,Ur[5]=n,de(Vr,t,Ur),Vr[4]-=r,Vr[5]-=n,t=Vr),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 r=[e,t],n=this.invTransform;return n&&M(r,r,n),r},e.prototype.transformCoordToGlobal=function(e,t){var r=[e,t],n=this.transform;return n&&M(r,r,n),r},e.prototype.getLineScale=function(){var e=this.transform;return e&&Wr(e[0]-1)>1e-10&&Wr(e[3]-1)>1e-10?Math.sqrt(Wr(e[0]*e[3]-e[2]*e[1])):1},e.prototype.copyTransform=function(e){qr(this,e)},e.getLocalTransform=function(e,t){t=t||[];var r=e.originX||0,n=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(r||n||a||s){var f=r+a,p=n+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]+=r+u,t[5]+=n+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}(),Gr=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function qr(e,t){for(var r=0;r=0?parseFloat(e)/100*t:parseFloat(e):e}function sn(e,t,r){var n=t.position||"inside",i=null!=t.distance?t.distance:5,o=r.height,a=r.width,s=o/2,l=r.x,u=r.y,c="left",d="top";if(n instanceof Array)l+=an(n[0],r.width),u+=an(n[1],r.height),c=null,d=null;else switch(n){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 ln="__zr_normal__",un=Gr.concat(["ignore"]),cn=Object(l["N"])(Gr,(function(e,t){return e[t]=!0,e}),{ignore:!1}),dn={},hn=new Oe(0,0,0,0),fn=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,r){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0;break}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=e,n[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 r=this.textConfig,n=r.local,i=t.innerTransformable,o=void 0,a=void 0,s=!1;i.parent=n?this:null;var l=!1;if(i.copyTransform(t),null!=r.position){var u=hn;r.layoutRect?u.copy(r.layoutRect):u.copy(this.getBoundingRect()),n||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(dn,r,u):sn(dn,r,u),i.x=dn.x,i.y=dn.y,o=dn.align,a=dn.verticalAlign;var c=r.origin;if(c&&null!=r.rotation){var d=void 0,h=void 0;"center"===c?(d=.5*u.width,h=.5*u.height):(d=an(c[0],u.width),h=an(c[1],u.height)),l=!0,i.originX=-i.x+d+(n?0:u.x),i.originY=-i.y+h+(n?0:u.y)}}null!=r.rotation&&(i.rotation=r.rotation);var f=r.offset;f&&(i.x+=f[0],i.y+=f[1],l||(i.originX=-f[0],i.originY=-f[1]));var p=null==r.inside?"string"===typeof r.position&&r.position.indexOf("inside")>=0:r.inside,m=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),g=void 0,v=void 0,y=void 0;p&&this.canBeInsideText()?(g=r.insideFill,v=r.insideStroke,null!=g&&"auto"!==g||(g=this.getInsideTextFill()),null!=v&&"auto"!==v||(v=this.getInsideTextStroke(g),y=!0)):(g=r.outsideFill,v=r.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()?Nr:Rr},e.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),r="string"===typeof t&&Object(Bt["h"])(t);r||(r=[255,255,255,1]);for(var n=r[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)r[o]=r[o]*n+(i?0:255)*(1-n);return r[3]=1,Object(Bt["i"])(r,"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 r=e,n=Object(l["F"])(r),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(ln,!1,e)},e.prototype.useState=function(e,t,r,n){var i=e===ln,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||n);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,u,this._normalState,t,!r&&!this.__inHover&&s&&s.duration>0,s);var d=this._textContent,h=this._textGuide;return d&&d.useState(e,t,r,c),h&&h.useState(e,t,r,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,r){if(e.length){var n=[],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 r=this.currentStates.slice();r.splice(t,1),this.useStates(r)}},e.prototype.replaceState=function(e,t,r){var n=this.currentStates.slice(),i=Object(l["r"])(n,e),o=Object(l["r"])(n,t)>=0;i>=0?o?n.splice(i,1):n[i]=t:r&&!o&&n.push(t),this.useStates(n)},e.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},e.prototype._mergeStates=function(e){for(var t,r={},n=0;n=0&&t.splice(r,1)})),this.animators.push(e),r&&r.animation.addAnimator(e),r&&r.wakeUp()},e.prototype.updateDuringAnimation=function(e){this.markRedraw()},e.prototype.stopAnimation=function(e,t){for(var r=this.animators,n=r.length,i=[],o=0;o0&&r.during&&o[0].during((function(e,t){r.during(t)}));for(var h=0;h0||i.force&&!a.length){var M=void 0,C=void 0,T=void 0;if(s){C={},f&&(M={});for(w=0;w<_;w++){y=g[w];C[y]=r[y],f?M[y]=n[y]:r[y]=n[y]}}else if(f){T={};for(w=0;w<_;w++){y=g[w];T[y]=qt(r[y]),vn(r,n,y)}}x=new ur(r,!1,!1,h?Object(l["n"])(m,(function(e){return e.targetName===t})):null);x.targetName=t,i.scope&&(x.scope=i.scope),f&&M&&x.whenWithKeys(0,M,g),T&&x.whenWithKeys(0,T,g),x.whenWithKeys(null==c?500:c,s?C:n,g).delay(d||0),e.addAnimator(x,t),a.push(x)}}Object(l["K"])(fn,E),Object(l["K"])(fn,Xr);var wn=fn,xn=function(e){function t(t){var r=e.call(this)||this;return r.isGroup=!0,r._children=[],r.attr(t),r}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,r=0;r=0&&(r.splice(n,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,t){var r=l["r"](this._children,e);return r>=0&&this.replaceAt(t,r),this},t.prototype.replaceAt=function(e,t){var r=this._children,n=r[t];if(e&&e!==this&&e.parent!==this&&e!==n){r[t]=e,n.parent=null;var i=this.__zr;i&&n.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,r=this._children,n=l["r"](r,e);return n<0||(r.splice(n,1),e.parent=null,t&&e.removeSelfFromZr(t),t&&t.refresh()),this},t.prototype.removeAll=function(){for(var e=this._children,t=this.__zr,r=0;r0&&(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,r){return this._disposed||this.handler.on(e,t,r),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 Bn(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)?Rn(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):null==e?NaN:+e}function Yn(e,t,r){return null==t&&(t=10),t=Math.min(Math.max(0,t),Pn),e=(+e).toFixed(t),r?e:+e}function Fn(e){return e.sort((function(e,t){return e-t})),e}function zn(e){if(e=+e,isNaN(e))return 0;if(e>1e-14)for(var t=1,r=0;r<15;r++,t*=10)if(Math.round(e*t)/t===e)return r;return Hn(e)}function Hn(e){var t=e.toString().toLowerCase(),r=t.indexOf("e"),n=r>0?+t.slice(r+1):0,i=r>0?r:t.length,o=t.indexOf("."),a=o<0?0:i-1-o;return Math.max(0,a-n)}function Vn(e,t){var r=Math.log,n=Math.LN10,i=Math.floor(r(e[1]-e[0])/n),o=Math.round(r(Math.abs(t[1]-t[0]))/n),a=Math.min(Math.max(-i+o,0),20);return isFinite(a)?a:20}function Un(e,t){var r=l["N"](e,(function(e,t){return e+(isNaN(t)?0:t)}),0);if(0===r)return[];var n=Math.pow(10,t),i=l["H"](e,(function(e){return(isNaN(e)?0:e)/r*n*100})),o=100*n,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/n}))}function Wn(e,t){var r=Math.max(zn(e),zn(t)),n=e+t;return r>Pn?n:Yn(n,r)}var $n=9007199254740991;function Gn(e){var t=2*Math.PI;return(e%t+t)%t}function qn(e){return e>-jn&&e=10&&t++,t}function Qn(e,t){var r,n=Jn(e),i=Math.pow(10,n),o=e/i;return r=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=r*i,n>=-20?+e.toFixed(n<0?-n:0):e}function ei(e,t){var r=(e.length-1)*t+1,n=Math.floor(r),i=+e[n-1],o=r-n;return o?i+o*(e[n]-i):i}function ti(e){e.sort((function(e,t){return s(e,t,0)?-1:1}));for(var t=-1/0,r=1,n=0;n=0||i&&l["r"](i,s)<0)){var u=r.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 Kr["a"](50);function uo(e){if("string"===typeof e){var t=lo.get(e);return t&&t.image}return e}function co(e,t,r,n,i){if(e){if("string"===typeof e){if(t&&t.__zrImageSrc===e||!r)return t;var o=lo.get(e),a={hostEl:r,cb:n,cbPayload:i};return o?(t=o.image,!fo(t)&&o.pending.push(a)):(t=Zr["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=Qr(r,t);return c>s&&(r="",c=0),s=e-c,i.ellipsis=r,i.ellipsisWidth=c,i.contentWidth=s,i.containerWidth=e,i}function vo(e,t){var r=t.containerWidth,n=t.font,i=t.contentWidth;if(!r)return"";var o=Qr(e,n);if(o<=r)return e;for(var a=0;;a++){if(o<=i||a>=t.maxIterations){e+=t.ellipsis;break}var s=0===a?yo(e,i,t.ascCharWidth,t.cnCharWidth):o>0?Math.floor(e.length*i/o):0;e=e.substr(0,s),o=Qr(e,n)}return""===e&&(e=t.placeholder),e}function yo(e,t,r,n){for(var i=0,o=0,a=e.length;op&&d){var m=Math.floor(p/u);r=r.slice(0,m)}if(e&&a&&null!=h)for(var g=go(h,o,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),v=0;vu&&So(r,e.substring(u,c),t,s),So(r,n[2],t,s,n[1]),u=po.lastIndex}uo){x>0?(b.tokens=b.tokens.slice(0,x),v(b,w,_),r.lines=r.lines.slice(0,y+1)):r.lines=r.lines.slice(0,y);break e}var L=S.width,A=null==L||"auto"===L;if("string"===typeof L&&"%"===L.charAt(L.length-1))k.percentWidth=L,d.push(k),k.contentWidth=Qr(k.text,T);else{if(A){var D=S.backgroundColor,E=D&&D.image;E&&(E=uo(E),fo(E)&&(k.width=Math.max(k.width,E.width*O/E.height)))}var I=m&&null!=i?i-w:null;null!=I&&I0&&p+n.accumWidth>n.width&&(o=t.split("\n"),d=!0),n.accumWidth=p}else{var m=Oo(t,c,n.width,n.breakAll,n.accumWidth);n.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!Mo(e)||!!Co[e]}function Oo(e,t,r,n,i){for(var o=[],a=[],s="",l="",u=0,c=0,d=0;dr:i+c+f>r)?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 r=Object(l["F"])(t),n=0;n1e-4)return s[0]=e-r,s[1]=t-n,l[0]=e+r,void(l[1]=t+n);if(Uo[0]=Ho(i)*r+e,Uo[1]=zo(i)*n+t,Wo[0]=Ho(o)*r+e,Wo[1]=zo(o)*n+t,u(s,Uo,Wo),c(l,Uo,Wo),i%=Vo,i<0&&(i+=Vo),o%=Vo,o<0&&(o+=Vo),i>o&&!a?o+=Vo:ii&&($o[0]=Ho(f)*r+e,$o[1]=zo(f)*n+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=[],ra=[],na=[],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 r=ga(e[0]);r<0&&(r+=fa);var n=r-e[0],i=e[1];i+=n,!t&&i-r>=fa?i=r+fa:t&&r-i>=fa?i=r-fa:!t&&r>i?i=r+(fa-ga(r-i)):t&&r0&&(this._ux=da(r/jr/e)||0,this._uy=da(r/jr/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 r=da(e-this._xi),n=da(t-this._yi),i=r>this._ux||n>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=r*r+n*n;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(e,t,r,n,i,o){return this._drawPendingPt(),this.addData(ea.C,e,t,r,n,i,o),this._ctx&&this._ctx.bezierCurveTo(e,t,r,n,i,o),this._xi=i,this._yi=o,this},e.prototype.quadraticCurveTo=function(e,t,r,n){return this._drawPendingPt(),this.addData(ea.Q,e,t,r,n),this._ctx&&this._ctx.quadraticCurveTo(e,t,r,n),this._xi=r,this._yi=n,this},e.prototype.arc=function(e,t,r,n,i,o){this._drawPendingPt(),ma[0]=n,ma[1]=i,va(ma,o),n=ma[0],i=ma[1];var a=i-n;return this.addData(ea.A,e,t,r,r,n,a,0,o?0:1),this._ctx&&this._ctx.arc(e,t,r,n,i,o),this._xi=ua(i)*r+e,this._yi=ca(i)*r+t,this},e.prototype.arcTo=function(e,t,r,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,r,n,i),this},e.prototype.rect=function(e,t,r,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,r,n),this.addData(ea.R,e,t,r,n),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(ea.Z);var e=this._ctx,t=this._x0,r=this._y0;return e&&e.closePath(),this._xi=t,this._yi=r,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 r=0;ru.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(){na[0]=na[1]=oa[0]=oa[1]=Number.MAX_VALUE,ia[0]=ia[1]=aa[0]=aa[1]=-Number.MAX_VALUE;var e,t=this.data,r=0,n=0,i=0,o=0;for(e=0;er||da(y)>n||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++],S=e[d++],M=e[d++],C=e[d++],T=e[d++],O=e[d++],L=O+T;d+=1,f&&(a=ua(T)*M+k,s=ca(T)*C+S),p=la(M,C)*sa(fa,Math.abs(O)),i=ua(L)*M+k,o=ca(L)*C+S;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 r,n,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:r=i=f[w++],n=o=f[w++],e.moveTo(i,o);break;case ea.L:a=f[w++],s=f[w++];var S=da(a-i),M=da(s-o);if(S>p||M>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=S*S+M*M;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;St(i,L,D,I,T,ta),St(o,A,E,j,T,ra),e.bezierCurveTo(ta[1],ra[1],ta[2],ra[2],ta[3],ra[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,ra),e.quadraticCurveTo(ta[1],ra[1],ta[2],ra[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,U=da(N-B)>.001,W=Y+F,$=!1;if(v){C=l[b++];y+C>c&&(W=Y+F*(c-y)/C,$=!0),y+=C}if(U&&e.ellipse?e.ellipse(P,R,N,B,z,Y,W,H):e.arc(P,R,V,Y,W,H),$)break e;k&&(r=ua(Y)*N+P,n=ca(Y)*B+R),i=ua(W)*N+P,o=ca(W)*B+R;break;case ea.R:r=i=f[w],n=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)+r*T,o*(1-T)+n*T);break e}y+=C}e.closePath(),i=r,o=n}}},e.prototype.clone=function(){var t=new e,r=this.data;return t.data=r.slice?r.slice():Array.prototype.slice.call(r),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,r,n,i,o,a){if(0===i)return!1;var s=i,l=0,u=e;if(a>t+s&&a>n+s||ae+s&&o>r+s||ot+d&&c>n+d&&c>o+d&&c>s+d||ce+d&&u>r+d&&u>i+d&&u>a+d||ut+u&&l>n+u&&l>o+u||le+u&&s>r+u&&s>i+u||sr||c+ui&&(i+=Ma);var h=Math.atan2(l,s);return h<0&&(h+=Ma),h>=n&&h<=i||h+Ma>=n&&h+Ma<=i}function Ta(e,t,r,n,i,o){if(o>t&&o>n||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>n&&u>o&&u>s||u1&&ja(),f=_t(t,n,o,s,Ia[0]),h>1&&(p=_t(t,n,o,s,Ia[1]))),2===h?gt&&s>n&&s>o||s=0&&u<=1){for(var c=0,d=Tt(t,n,o,u),h=0;hr||s<-r)return 0;var l=Math.sqrt(r*r-s*s);Ea[0]=-l,Ea[1]=l;var u=Math.abs(n-i);if(u<1e-4)return 0;if(u>=La-1e-4){n=0,i=La;var c=o?1:-1;return a>=Ea[0]+e&&a<=Ea[1]+e?c:0}if(n>i){var d=n;n=i,i=d}n<0&&(n+=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>=n&&m<=i||m+La>=n&&m+La<=i)&&(m>Math.PI/2&&m<1.5*Math.PI&&(c=-c),h+=c)}}return h}function Ba(e,t,r,n,i){for(var o,a,s=e.data,l=e.len(),u=0,c=0,d=0,h=0,f=0,p=0;p1&&(r||(u+=Ta(c,d,h,f,n,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(r){if(_a(c,d,s[p],s[p+1],t,n,i))return!0}else u+=Ta(c,d,s[p],s[p+1],n,i)||0;c=s[p++],d=s[p++];break;case Oa.C:if(r){if(wa(c,d,s[p++],s[p++],s[p++],s[p++],s[p],s[p+1],t,n,i))return!0}else u+=Pa(c,d,s[p++],s[p++],s[p++],s[p++],s[p],s[p+1],n,i)||0;c=s[p++],d=s[p++];break;case Oa.Q:if(r){if(xa(c,d,s[p++],s[p++],s[p],s[p+1],t,n,i))return!0}else u+=Ra(c,d,s[p++],s[p++],s[p],s[p+1],n,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,n,i);var S=(n-v)*_/b+v;if(r){if(Ca(v,y,_,w,w+x,k,t,S,i))return!0}else u+=Na(v,y,_,w,w+x,k,S,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 M=s[p++],C=s[p++];if(o=h+M,a=f+C,r){if(_a(h,f,o,f,t,n,i)||_a(o,f,o,a,t,n,i)||_a(o,a,h,a,t,n,i)||_a(h,a,h,f,t,n,i))return!0}else u+=Ta(o,f,o,a,n,i),u+=Ta(h,a,h,f,n,i);break;case Oa.Z:if(r){if(_a(c,d,h,f,t,n,i))return!0}else u+=Ta(c,d,h,f,n,i);c=h,d=f;break}}return r||Da(d,f)||(u+=Ta(c,d,h,f,n,i)||0),0!==u}function Ya(e,t,r){return Ba(e,0,!1,t,r)}function Fa(e,t,r,n){return Ba(e,t,!0,r,n)}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=Gr.concat(["invisible","culling","z","z2","zlevel","parent"]),Ua=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.update=function(){var r=this;e.prototype.update.call(this);var n=this.style;if(n.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(e){r.buildPath(e,r.shape)}),i.silent=!0;var o=i.style;for(var a in n)o[a]!==n[a]&&(o[a]=n[a]);o.fill=n.fill?n.decal:null,o.decal=null,o.shadowColor=null,n.strokeFirst&&(o.stroke=null);for(var s=0;s.5?Rr:t>.2?Br:Nr}if(e)return Nr}return Rr},t.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if(Object(l["C"])(t)){var r=this.__zr,n=!(!r||!r.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,r=!e;if(r){var n=!1;this.path||(n=!0,this.createPathProxy());var i=this.path;(n||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||r){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 r=this.transformCoordToLocal(e,t),n=this.getBoundingRect(),i=this.style;if(e=r[0],t=r[1],n.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,r){"shape"===t?this.setShape(r):e.prototype.attrKV.call(this,t,r)},t.prototype.setShape=function(e,t){var r=this.shape;return r||(r=this.shape={}),"string"===typeof e?r[e]=t:Object(l["m"])(r,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 r=this._normalState;t.shape&&!r.shape&&(r.shape=Object(l["m"])({},this.shape))},t.prototype._applyStateObj=function(t,r,n,i,o,a){e.prototype._applyStateObj.call(this,t,r,n,i,o,a);var s,u=!(r&&i);if(r&&r.shape?o?i?s=r.shape:(s=Object(l["m"])({},n.shape),Object(l["m"])(s,r.shape)):(s=Object(l["m"])({},i?this.shape:n.shape),Object(l["m"])(s,r.shape)):u&&(s=n.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 r=tn(t,e.font,e.textAlign,e.textBaseline);if(r.x+=e.x||0,r.y+=e.y||0,this.hasStroke()){var n=e.lineWidth;r.x-=n/2,r.y-=n/2,r.width+=n,r.height+=n}this._rect=r}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,r=t[e];if(null!=r)return r;var n=Za(t.image)?t.image:this.__image;if(!n)return 0;var i="width"===e?"height":"width",o=t[i];return null==o?n[e]:n[e]/n[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 r,n,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?r=n=i=o=d:d instanceof Array?1===d.length?r=n=i=o=d[0]:2===d.length?(r=i=d[0],n=o=d[1]):3===d.length?(r=d[0],n=o=d[1],i=d[2]):(r=d[0],n=d[1],i=d[2],o=d[3]):r=n=i=o=0,r+n>u&&(a=r+n,r*=u/a,n*=u/a),i+o>u&&(a=i+o,i*=u/a,o*=u/a),n+i>c&&(a=n+i,n*=c/a,i*=c/a),r+o>c&&(a=r+o,r*=c/a,o*=c/a),e.moveTo(s+r,l),e.lineTo(s+u-n,l),0!==n&&e.arc(s+u-n,l+n,n,-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+r),0!==r&&e.arc(s+r,l+r,r,Math.PI,1.5*Math.PI)}var ts=Math.round;function rs(e,t,r){if(t){var n=t.x1,i=t.x2,o=t.y1,a=t.y2;e.x1=n,e.x2=i,e.y1=o,e.y2=a;var s=r&&r.lineWidth;return s?(ts(2*n)===ts(2*i)&&(e.x1=e.x2=is(n,s,!0)),ts(2*o)===ts(2*a)&&(e.y1=e.y2=is(o,s,!0)),e):e}}function ns(e,t,r){if(t){var n=t.x,i=t.y,o=t.width,a=t.height;e.x=n,e.y=i,e.width=o,e.height=a;var s=r&&r.lineWidth;return s?(e.x=is(n,s,!0),e.y=is(i,s,!0),e.width=Math.max(is(n+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,r){if(!t)return e;var n=ts(2*e);return(n+ts(t))%2===0?n/2:(n+(r?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 r,n,i,o;if(this.subPixelOptimize){var a=ns(as,t,this.style);r=a.x,n=a.y,i=a.width,o=a.height,a.r=t.r,t=a}else r=t.x,n=t.y,i=t.width,o=t.height;t.r?es(e,t):e.rect(r,n,i,o)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(Wa);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 r=e.call(this)||this;return r.type="text",r._children=[],r._defaultStyle=us,r.attr(t),r}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--;M+=(n-(M-p)-(g-C)-k)/2;while(S<=T)O=_[S],this._placeToken(O,e,x,m,M+O.width/2,"center",v),M+=O.width,S++;m+=x}},t.prototype._placeToken=function(e,t,r,n,i,o,a){var s=t.rich[e.styleName]||{};s.text=e.text;var u=e.verticalAlign,c=n+r/2;"top"===u?c=n+e.height/2:"bottom"===u&&(c=n+r-e.height/2);var d=!e.isLineHolder&&Ms(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||Zr["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(rn(m.x,x,m.textAlign),nn(m.y,k,m.textBaseline),x,k))},t.prototype._renderBackground=function(e,t,r,n,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=r,g.y=n,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=r,y.y=n,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)?Zr["c"]+"px":e+"px":e}function vs(e,t){for(var r=0;r=0,o=!1;if(e instanceof Wa){var a=Ds(e),s=i&&a.selectFill||a.normalFill,u=i&&a.selectStroke||a.normalStroke;if(Ws(s)||Ws(u)){n=n||{};var c=n.style||{};"inherit"===c.fill?(o=!0,n=Object(l["m"])({},n),c=Object(l["m"])({},c),c.fill=s):!Ws(c.fill)&&Ws(s)?(o=!0,n=Object(l["m"])({},n),c=Object(l["m"])({},c),c.fill=Object(Bt["d"])(s)):!Ws(c.stroke)&&Ws(u)&&(o||(n=Object(l["m"])({},n),c=Object(l["m"])({},c)),c.stroke=Object(Bt["d"])(u)),n.style=c}}if(n&&null==n.z2){o||(n=Object(l["m"])({},n));var d=e.z2EmphasisLift;n.z2=e.z2+(null!=d?d:Bs)}return n}function il(e,t,r){if(r&&null==r.z2){r=Object(l["m"])({},r);var n=e.z2SelectLift;r.z2=e.z2+(null!=n?n:Ys)}return r}function ol(e,t,r){var n=Object(l["r"])(e.currentStates,t)>=0,i=e.style.opacity,o=n?null:rl(e,["opacity"],t,{opacity:1});r=r||{};var a=r.style||{};return null==a.opacity&&(r=Object(l["m"])({},r),a=Object(l["m"])({opacity:n?i:.1*o.opacity},a),r.style=a),r}function al(e,t){var r=this.states[e];if(this.style){if("emphasis"===e)return nl(this,e,t,r);if("blur"===e)return ol(this,e,r);if("select"===e)return il(this,e,r)}return r}function sl(e){e.stateProxy=al;var t=e.getTextContent(),r=e.getTextGuideLine();t&&(t.stateProxy=al),r&&(r.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(),r=[],n=[];t.eachComponent((function(t,i){var o=Es(i),a="series"===t,s=a?e.getViewOfSeriesModel(i):e.getViewOfComponentModel(i);!a&&n.push(s),o.isBlured&&(s.group.traverse((function(e){Ks(e)})),a&&r.push(i)),o.isBlured=!1})),Object(l["k"])(n,(function(e){e&&e.toggleBlurSeries&&e.toggleBlurSeries(r,!1,t)}))}function yl(e,t,r,n){var i=n.getModel();function o(e,t){for(var r=0;r0){var o={dataIndex:i,seriesIndex:e.seriesIndex};null!=n&&(o.dataType=n),t.push(o)}}))})),t}function Tl(e,t,r){jl(e,!0),el(e,sl),Al(e,t,r)}function Ol(e){jl(e,!1)}function Ll(e,t,r,n){n?Ol(e):Tl(e,t,r)}function Al(e,t,r){var n=Ts(e);null!=t?(n.focus=t,n.blurScope=r):n.focus&&(n.focus=null)}var Dl=["emphasis","blur","select"],El={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Il(e,t,r,n){r=r||"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(r,m):t.animateTo(r,m)}else t.stopAnimation(),!u&&t.attr(r),a&&a(1),o&&o()}function Ul(e,t,r,n,i,o){Vl("update",e,t,r,n,i,o)}function Wl(e,t,r,n,i,o){Vl("enter",e,t,r,n,i,o)}function $l(e){if(!e.__zr)return!0;for(var t=0;t=0&&r.push(e)})),r}e.topologicalTravel=function(e,t,n,i){if(e.length){var o=r(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&&(n.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 Uu(){return Yu[Nu]}zu(Ru,Iu),zu(Pu,ju);var Wu=1e3,$u=60*Wu,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 rc(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 nc(e){return e===rc(e)}function ic(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function oc(e,t,r,n){var i=Kn(e),o=i[uc(r)](),a=i[cc(r)]()+1,s=Math.floor((a-1)/3)+1,l=i[dc(r)](),u=i["get"+(r?"UTC":"")+"Day"](),c=i[hc(r)](),d=(c-1)%12+1,h=i[fc(r)](),f=i[pc(r)](),p=i[mc(r)](),m=n instanceof Tu?n:Vu(n||Fu)||Uu(),g=m.getModel("time"),v=g.get("month"),y=g.get("monthAbbr"),b=g.get("dayOfWeek"),_=g.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,tc(o%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,v[a-1]).replace(/{MMM}/g,y[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,b[u]).replace(/{ee}/g,_[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,r,n,i){var o=null;if(l["C"](r))o=r;else if(l["w"](r))o=r(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,n)}function sc(e,t){var r=Kn(e),n=r[cc(t)]()+1,i=r[dc(t)](),o=r[hc(t)](),a=r[fc(t)](),s=r[pc(t)](),l=r[mc(t)](),u=0===l,c=u&&0===s,d=c&&0===a,h=d&&0===o,f=h&&1===i,p=f&&1===n;return p?"year":f?"month":h?"day":d?"hour":c?"minute":u?"second":"millisecond"}function lc(e,t,r){var n=l["z"](e)?Kn(e):e;switch(t=t||sc(e,r),t){case"year":return n[uc(r)]();case"half-year":return n[cc(r)]()>=6?1:0;case"quarter":return Math.floor((n[cc(r)]()+1)/4);case"month":return n[cc(r)]();case"day":return n[dc(r)]();case"half-day":return n[hc(r)]()/24;case"hour":return n[hc(r)]();case"minute":return n[fc(r)]();case"second":return n[pc(r)]();case"millisecond":return n[mc(r)]()}}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(!ni(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 Sc(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 Mc=l["M"];function Cc(e,t,r){var n="{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?Kn(e):e;if(!isNaN(+u))return oc(u,n,r);if(s)return"-"}if("ordinal"===t)return l["D"](e)?i(e):l["z"](e)&&o(e)?e+"":"-";var c=ri(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,r){l["t"](t)||(t=[t]);var n=t.length;if(!n)return"";for(var i=t[0].$vars||[],o=0;o':'';var a=r.markerId||"markerX";return{renderMode:o,content:"{"+a+"|} ",style:"subItem"===i?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}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 r=window.open();r.opener=null,r.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,r,n,i){var o=0,a=0;null==n&&(n=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>n||l.newline?(o=0,c=m,a+=s+r,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+r,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+r:a=d+r)}))}var Bc=Nc;l["h"](Nc,"vertical"),l["h"](Nc,"horizontal");function Yc(e,t,r){var n=t.width,i=t.height,o=Bn(e.left,n),a=Bn(e.top,i),s=Bn(e.right,n),l=Bn(e.bottom,i);return(isNaN(o)||isNaN(parseFloat(e.left)))&&(o=0),(isNaN(s)||isNaN(parseFloat(e.right)))&&(s=n),(isNaN(a)||isNaN(parseFloat(e.top)))&&(a=0),(isNaN(l)||isNaN(parseFloat(e.bottom)))&&(l=i),r=Mc(r||0),{width:Math.max(s-o-r[1]-r[3],0),height:Math.max(l-a-r[0]-r[2],0)}}function Fc(e,t,r){r=Mc(r||0);var n=t.width,i=t.height,o=Bn(e.left,n),a=Bn(e.top,i),s=Bn(e.right,n),l=Bn(e.bottom,i),u=Bn(e.width,n),c=Bn(e.height,i),d=r[2]+r[0],h=r[1]+r[3],f=e.aspect;switch(isNaN(u)&&(u=n-s-h-o),isNaN(c)&&(c=i-l-d-a),null!=f&&(isNaN(u)&&isNaN(c)&&(f>n/i?u=.8*n:c=.8*i),isNaN(u)&&(u=f*c),isNaN(c)&&(c=u/f)),isNaN(o)&&(o=n-s-u-h),isNaN(a)&&(a=i-l-c-d),e.left||e.right){case"center":o=n/2-u/2-r[3];break;case"right":o=n-u-h;break}switch(e.top||e.bottom){case"middle":case"center":a=i/2-c/2-r[0];break;case"bottom":a=i-c-d;break}o=o||0,a=a||0,isNaN(u)&&(u=n-h-o-(s||0)),isNaN(c)&&(c=i-d-a-(l||0));var p=new Oe(o+r[3],a+r[0],u,c);return p.margin=r,p}function zc(e,t,r,n,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),r,n),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 Uc(e,t,r){var n=r&&r.ignoreSize;!l["t"](n)&&(n=[n,n]);var i=a(Rc[0],0),o=a(Rc[1],1);function a(r,i){var o={},a=0,l={},c=0,d=2;if(jc(r,(function(t){l[t]=e[t]})),jc(r,(function(e){s(t,e)&&(o[e]=l[e]=t[e]),u(o,e)&&a++,u(l,e)&&c++})),n[i])return u(t,r[1])?l[r[2]]=null:u(t,r[2])&&(l[r[1]]=null),l;if(c!==d&&a){if(a>=d)return o;for(var h=0;h=0;a--)o=l["I"](o,r[a],!0);t.defaultOption=o}return t.defaultOption},t.prototype.getReferringComponents=function(e,t){var r=e+"Index",n=e+"Id";return Bi(this.ecModel,e,{index:this.get(r,!0),id:this.get(n,!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),no(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",rd="arrayRows",nd="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,r){var n={},i=pd(t);if(!i||!e)return n;var o,a,s=[],u=[],c=t.ecModel,d=cd(c).datasetMap,h=i.uid+"_"+r.seriesLayoutBy;e=e.slice(),Object(l["k"])(e,(function(t,r){var i=Object(l["A"])(t)?t:e[r]={name:t};"ordinal"===i.type&&null==o&&(o=r,a=m(i)),n[i.name]=[]}));var f=d.get(h)||d.set(h,{categoryWayDim:a,valueWayDim:0});function p(e,t,r){for(var n=0;nt)return e[n];return e[r-1]}function Cd(e,t,r,n,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&&n?Md(n,a):r;if(c=c||r,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,r,n,i,o){n=n||{},this.option=null,this._theme=new Tu(n),this._locale=new Tu(i),this._optionManager=o},t.prototype.setOption=function(e,t,r){var n=Fd(t);this._optionManager.setOption(e,r,n),this._resetOption(null,n)},t.prototype.resetOption=function(e,t){return this._resetOption(e,Fd(t))},t.prototype._resetOption=function(e,t){var r=!1,n=this._optionManager;if(!e||"recreate"===e){var i=n.mountOption("recreate"===e);0,this.option&&"recreate"!==e?(this.restoreData(),this._mergeOption(i,t)):Ad(this,i),r=!0}if("timeline"!==e&&"media"!==e||this.restoreData(),!e||"recreate"===e||"timeline"===e){var o=n.getTimelineOption(this);o&&(r=!0,this._mergeOption(o,t))}if(!e||"recreate"===e||"media"===e){var a=n.getMediaOption(this);a.length&&Object(l["k"])(a,(function(e){r=!0,this._mergeOption(e,t)}),this)}return r},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,t){var r=this.option,n=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=n.get(t),u=a?s&&s.get(t)?"replaceMerge":"normalMerge":"replaceAll",c=mi(a,o,u);Oi(c,t,Kc),r[t]=null,n.set(t,null),i.set(t,0);var d,h=[],f=[],p=0;Object(l["k"])(c,(function(e,r){var n=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(n&&n.constructor===a)n.name=e.keyInfo.name,n.mergeOption(i,this),n.optionUpdated(i,!1);else{var s=Object(l["m"])({componentIndex:r},e.keyInfo);n=new a(i,this,this,s),Object(l["m"])(n,s),e.brandNew&&(n.__requireNewView=!0),n.init(i,this,this),n.optionUpdated(null,!0)}}else n&&(n.mergeOption({},this),n.optionUpdated({},!1));n?(h.push(n.option),f.push(n),p++):(h.push(void 0),f.push(void 0))}),this),r[t]=h,n.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)):r[t]=null==r[t]?Object(l["d"])(e):Object(l["I"])(r[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,r){if(Kc.hasClass(r)){for(var n=ci(t),i=n.length,o=!1,a=i-1;a>=0;a--)n[a]&&!Ci(n[a])?o=!0:(n[a]=null,!o&&i--);n.length=i,e[r]=n}})),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 r=this._componentsMap.get(e);if(r){var n=r[t||0];if(n)return n;if(null==t)for(var i=0;i=t:"max"===r?e<=t:e===t}function Qd(e,t){return e.join(",")===t.join(",")}var eh=Xd,th=l["k"],rh=l["A"],nh=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function ih(e){var t=e&&e.itemStyle;if(t)for(var r=0,n=nh.length;r=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=Wn(f,v),p=v;break}}}return n[0]=f,n[1]=p,n}))}))}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 r=0;ru&&(u=f)}s[0]=l,s[1]=u}},n=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,r){},e}();function nf(e){var t,r;return l["A"](e)?e.type&&(r=e):t=e,{text:t,frag:r}}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,r=this._upstream,n=e&&e.skip;if(this._dirty&&r){var i=this.context;i.data=i.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!n&&(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(n)),this._modBy=u,this._modDataCount=c;var h=e&&e.step;if(this._dueEnd=r?r._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(!n&&(o||f1&&n>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 r="";0,Ed(r)}this._opFn=df[e],this._rvalFloat=ri(t)}return e.prototype.evaluate=function(e){return Object(l["z"])(e)?this._opFn(e,this._rvalFloat):this._opFn(ri(e),this._rvalFloat)},e}(),ff=function(){function e(e,t){var r="desc"===e;this._resultLT=r?1:-1,null==t&&(t=r?"min":"max"),this._incomparable="min"===t?-1/0:1/0}return e.prototype.evaluate=function(e,t){var r=Object(l["z"])(e)?e:ri(e),n=Object(l["z"])(t)?t:ri(t),i=isNaN(r),o=isNaN(n);if(i&&(r=this._incomparable),o&&(n=this._incomparable),i&&o){var a=Object(l["C"])(e),s=Object(l["C"])(t);a&&(r=s?e:0),s&&(n=a?t:0)}return rn?-this._resultLT:0},e}(),pf=function(){function e(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=ri(t)}return e.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var r=typeof e;r===this._rvalTypeof||"number"!==r&&"number"!==this._rvalTypeof||(t=ri(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 r=new gf,n=e.data,i=r.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 r=e.name,n={index:t,name:r,displayName:e.displayName};if(s.push(n),null!=r){var i="";Object(l["q"])(u,r)&&Ed(i),u[r]=n}}));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,r,n,i){var o=If[r||"float"];if(i){var a=e[t],s=a&&a.length;if(s!==n){for(var l=new o(n),u=0;um[1]&&(m[1]=p)}return this._rawCount=this._count=s,{start:a,end:s}},e.prototype._initDataFromProvider=function(e,t,r){for(var n=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)}}!n.persistent&&n.clean&&n.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,r=t[e];if(null!=r&&re))return o;i=o-1}}return-1},e.prototype.indicesOfNearest=function(e,t,r){var n=this._chunks,i=n[e],o=[];if(!i)return o;null==r&&(r=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 r=t.constructor,n=this._count;if(r===Array){e=new r(n);for(var i=0;i=d&&y<=h||isNaN(y))&&(s[u++]=m),m++}p=!0}else if(2===i){g=f[n[0]];var b=f[n[1]],_=e[n[1]][0],w=e[n[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])&&(S=!1)}S&&(s[u++]=t.getRawIndex(v))}return ug[1]&&(g[1]=m)}}}},e.prototype.lttbDownSample=function(e,t){var r,n,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;fr&&(r=n,i=b))}C>0&&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 r=e.length,n=this._chunks,i=0,o=this.count();is&&(s=c)}return n=[a,s],this._extent[e]=n,n},e.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var r=[],n=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,r,n){return lf(e[n],this._dimensions[n])}Tf={arrayRows:e,objectRows:function(e,t,r,n){return lf(e[t],this._dimensions[n])},keyedColumns:e,original:function(e,t,r,n){var i=e&&(null==e.value?e:e.value);return lf(i instanceof Array?i[n]:i,this._dimensions[n])},typedArray:function(e,t,r,n){return e[n]}}}(),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,r=this._sourceHost,n=this._getUpstreamSourceManagers(),i=!!n.length;if(Hf(r)){var o=r,a=void 0,s=void 0,u=void 0;if(i){var c=n[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=r;if(i){var y=this._applyTransform(n);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,r=this._sourceHost,n=r.get("transform",!0),i=r.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),r="";null==i||t||Vf(r),a.push(t),s.push(e._getVersionSign())})),n?t=Sf(n,a,{datasetIndex:r.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||r>0&&!e.noHeader;return Object(l["k"])(e.blocks,(function(e){var r=Zf(e);r>=t&&(t=r+ +(n&&(!r||Xf(e)&&!e.noHeader)))})),t}return 0}function Jf(e,t,r,n){var i=t.noHeader,o=tp(Zf(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(r,i){var s=t.valueFormatter,u=Kf(r)(s?Object(l["m"])(Object(l["m"])({},e),{valueFormatter:s}):e,r,i>0?o.html:0,n);null!=u&&a.push(u)}));var h="richText"===e.renderMode?a.join(o.richText):rp(a.join(""),i?r:o.html);if(i)return h;var f=Cc(t.header,"ordinal",e.useUTC),p=Wf(n,e.renderMode).nameStyle;return"richText"===e.renderMode?op(e,f,p)+o.richText+h:rp('
'+W(f)+"
"+h,r)}function Qf(e,t,r,n){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=Wf(n,i),b=y.nameStyle,_=y.valueStyle;return"richText"===i?(s?"":h)+(o?"":op(e,f,b))+(a?"":ap(e,m,g,v,_)):rp((s?"":h)+(o?"":np(f,!s,b))+(a?"":ip(m,g,v,_)),r)}}function ep(e,t,r,n,i,o){if(e){var a=Kf(e),s={useUTC:i,renderMode:r,orderMode:n,markupStyleCreator:t,valueFormatter:e.valueFormatter};return a(s,e,0,o)}}function tp(e){return{html:$f[e],richText:Gf[e]}}function rp(e,t){var r='
',n="margin: "+t+"px 0 0";return'
'+e+r+"
"}function np(e,t,r){var n=t?"margin-left:2px":"";return''+W(e)+""}function ip(e,t,r,n){var i=r?"10px":"20px",o=t?"float:right;margin-left:"+i:"";return e=Object(l["t"])(e)?e:[e],''+Object(l["H"])(e,(function(e){return W(e)})).join("  ")+""}function op(e,t,r){return e.markupStyleCreator.wrapRichTextStyle(t,r)}function ap(e,t,r,n,i){var o=[i],a=n?10:20;return r&&o.push({padding:[0,0,0,a],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(Object(l["t"])(t)?t.join(" "):t,o)}function sp(e,t){var r=e.getData().getItemVisual(t,"style"),n=r[e.visualDrawType];return Ec(n)}function lp(e,t){var r=e.get("padding");return null!=r?r:"richText"===t?[8,10]:10}var up=function(){function e(){this.richTextStyles={},this._nextStyleNameId=ii()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(e,t,r){var n="richText"===r?this._generateStyleName():null,i=Dc({color:t,type:e,renderMode:r,markerId:n});return Object(l["C"])(i)?i:(this.richTextStyles[n]=i.style,i.content)},e.prototype.wrapRichTextStyle=function(e,t){var r={};Object(l["t"])(t)?Object(l["k"])(t,(function(e){return Object(l["m"])(r,e)})):Object(l["m"])(r,t);var n=this._generateStyleName();return this.richTextStyles[n]=r,"{"+n+"|"+e+"}"},e}();function cp(e){var t,r,n,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=sp(o,a);if(d>1||f&&!d){var m=dp(h,o,a,c,p);t=m.inlineValues,r=m.inlineValueTypes,n=m.blocks,i=m.inlineValues[0]}else if(d){var g=u.getDimensionInfo(c[0]);i=t=ef(u,a,c[0]),r=g.type}else i=t=f?h[0]:h;var v=Mi(o),y=v&&o.name||"",b=u.getName(a),_=s?y:b;return qf("section",{header:y,noHeader:s||!v,sortParam:i,blocks:[qf("nameValue",{markerType:"item",markerColor:p,name:_,noName:!Object(l["T"])(_),value:t,valueType:r,dataIndex:a})].concat(n||[])})}function dp(e,t,r,n,i){var o=t.getData(),a=Object(l["N"])(e,(function(e,t,r){var n=o.getDimensionInfo(r);return e||n&&!1!==n.tooltip&&null!=n.displayName}),!1),s=[],u=[],c=[];function d(e,t){var r=o.getDimensionInfo(t);r&&!1!==r.otherDims.tooltip&&(a?c.push(qf("nameValue",{markerType:"subItem",markerColor:i,name:r.displayName,value:e,valueType:r.type})):(s.push(e),u.push(r.type)))}return n.length?Object(l["k"])(n,(function(e){d(ef(o,r,e),e)})):Object(l["k"])(e,d),{inlineValues:s,inlineValueTypes:u,blocks:c}}var hp=Ei();function fp(e,t){return e.getName(t)||e.getId(t)}var pp="__universalTransitionEnabled",mp=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,r){this.seriesIndex=this.componentIndex,this.dataTask=of({count:yp,reset:bp}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,r);var n=hp(this).sourceManager=new Ff(this);n.prepareSource();var i=this.getInitialData(e,r);wp(i,this),this.dataTask.context.data=i,hp(this).dataBeforeProcessed=i,gp(this),this._initSelectedMapFromData(i)},t.prototype.mergeDefaultAndTheme=function(e,t){var r=Vc(this),n=r?Wc(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),r&&Uc(e,n,r)},t.prototype.mergeOption=function(e,t){e=l["I"](this.option,e,!0),this.fillDataTextStyle(e.data);var r=Vc(this);r&&Uc(this.option,e,r);var n=hp(this).sourceManager;n.dirty(),n.prepareSource();var i=this.getInitialData(e,t);wp(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,hp(this).dataBeforeProcessed=i,gp(this),this._initSelectedMapFromData(i)},t.prototype.fillDataTextStyle=function(e){if(e&&!l["E"](e))for(var t=["show"],r=0;rthis.getShallow("animationThreshold")&&(t=!1),!!t},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,t,r){var n=this.ecModel,i=kd.prototype.getColorFromPalette.call(this,e,t,r);return i||(i=n.getColorFromPalette(e,t,r)),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 r=this.option.selectedMap;if(r){var n=this.option.selectedMode,i=this.getData(t);if("series"===n||"all"===r)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var o=0;o=0&&r.push(i)}return r},t.prototype.isSelected=function(e,t){var r=this.option.selectedMap;if(!r)return!1;var n=this.getData(t);return("all"===r||r[fp(n,e)])&&!n.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[pp])return!0;var e=this.option.universalTransition;return!!e&&(!0===e||e&&e.enabled)},t.prototype._innerSelect=function(e,t){var r,n,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 gp(e){var t=e.name;Mi(e)||(e.name=vp(e)||t)}function vp(e){var t=e.getRawData(),r=t.mapDimensionsAll("seriesName"),n=[];return l["k"](r,(function(e){var r=t.getDimensionInfo(e);r.displayName&&n.push(r.displayName)})),n.join(" ")}function yp(e){return e.model.getRawData().count()}function bp(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),_p}function _p(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function wp(e,t){l["k"](l["e"](e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),(function(r){e.wrapMethod(r,l["h"](xp,t))}))}function xp(e,t){var r=kp(e);return r&&r.setOutputEnd((t||this).count()),t}function kp(e){var t=(e.ecModel||{}).scheduler,r=t&&t.getPipeline(e.uid);if(r){var n=r.currentTask;if(n){var i=n.agentStubMap;i&&(n=i.get(e.uid))}return n}}l["K"](mp,rf),l["K"](mp,kd),Ji(mp,Kc);var Sp=mp,Mp=function(){function e(){this.group=new kn,this.uid=Lu("viewComponent")}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,r,n){},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,r,n){},e.prototype.updateLayout=function(e,t,r,n){},e.prototype.updateVisual=function(e,t,r,n){},e.prototype.toggleBlurSeries=function(e,t,r){},e.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},e}();Ki(Mp),no(Mp);var Cp=Mp;function Tp(){var e=Ei();return function(t){var r=e(t),n=t.pipelineContext,i=!!r.large,o=!!r.progressiveRender,a=r.large=!(!n||!n.large),s=r.progressiveRender=!(!n||!n.progressiveRender);return!(i===a&&o===s)&&"reset"}}var Op=ba.CMD,Lp=[[],[],[]],Ap=Math.sqrt,Dp=Math.atan2;function Ep(e,t){if(t){var r,n,i,o,a,s,l=e.data,u=e.len(),c=Op.M,d=Op.C,h=Op.L,f=Op.R,p=Op.A,m=Op.Q;for(i=0,o=0;i1&&(a*=Ip(p),s*=Ip(p));var m=(i===o?-1:1)*Ip((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+r)/2+Pp(d)*g-jp(d)*v,b=(t+n)/2+jp(d)*g+Pp(d)*v,_=Yp([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=Yp(w,x);if(Bp(w,x)<=-1&&(k=Rp),Bp(w,x)>=1&&(k=0),k<0){var S=Math.round(k/Rp*1e6)/1e6;k=2*Rp+S%2*Rp}c.addData(u,y,b,a,s,_,k,d,o)}var zp=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,Hp=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Vp(e){var t=new ba;if(!e)return t;var r,n=0,i=0,o=n,a=i,s=ba.CMD,l=e.match(zp);if(!l)return t;for(var u=0;uA*A+D*D&&(S=C,M=T),{cx:S,cy:M,x0:-c,y0:-d,x1:S*(i/w-1),y1:M*(i/w-1)}}function gm(e){var t;if(Object(l["t"])(e)){var r=e.length;if(!r)return e;t=1===r?[e[0],e[0],0,0]:2===r?[e[0],e[0],e[1],e[1]]:3===r?e.concat(e[2]):e}else t=[e,e,e,e];return t}function vm(e,t){var r,n=dm(t.r,0),i=dm(t.r0||0,0),o=n>0,a=i>0;if(o||a){if(o||(n=i,i=0),i>n){var s=n;n=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=um(u-l),p=f>im&&f%im;if(p>fm&&(f=p),n>fm)if(f>im-fm)e.moveTo(c+n*am(l),d+n*om(l)),e.arc(c,d,n,l,u,!h),i>fm&&(e.moveTo(c+i*am(u),d+i*om(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,S=void 0,M=void 0,C=void 0,T=void 0,O=void 0,L=void 0,A=void 0,D=n*am(l),E=n*om(l),I=i*am(u),j=i*om(u),P=f>fm;if(P){var R=t.cornerRadius;R&&(r=gm(R),m=r[0],g=r[1],v=r[2],y=r[3]);var N=um(n-i)/2;if(b=hm(N,v),_=hm(N,y),w=hm(N,m),x=hm(N,g),M=k=dm(b,_),C=S=dm(w,x),(k>fm||S>fm)&&(T=n*am(u),O=n*om(u),L=i*am(l),A=i*om(l),ffm){var W=hm(v,M),$=hm(y,M),G=mm(L,A,D,E,n,W,h),q=mm(T,O,I,j,n,$,h);e.moveTo(c+G.cx+G.x0,d+G.cy+G.y0),M0&&e.arc(c+G.cx,d+G.cy,W,lm(G.y0,G.x0),lm(G.y1,G.x1),!h),e.arc(c,d,n,lm(G.cy+G.y1,G.cx+G.x1),lm(q.cy+q.y1,q.cx+q.x1),!h),$>0&&e.arc(c+q.cx,d+q.cy,$,lm(q.y1,q.x1),lm(q.y0,q.x0),!h))}else e.moveTo(c+D,d+E),e.arc(c,d,n,l,u,!h);else e.moveTo(c+D,d+E);if(i>fm&&P)if(C>fm){W=hm(m,C),$=hm(g,C),G=mm(I,j,T,O,i,-$,h),q=mm(D,E,L,A,i,-W,h);e.lineTo(c+G.cx+G.x0,d+G.cy+G.y0),C0&&e.arc(c+G.cx,d+G.cy,$,lm(G.y0,G.x0),lm(G.y1,G.x1),!h),e.arc(c,d,i,lm(G.cy+G.y1,G.cx+G.x1),lm(q.cy+q.y1,q.cx+q.x1),h),W>0&&e.arc(c+q.cx,d+q.cy,W,lm(q.y1,q.x1),lm(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 ym=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}(),bm=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.getDefaultShape=function(){return new ym},t.prototype.buildPath=function(e,t){vm(e,t)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(Wa);bm.prototype.type="sector";var _m=bm,wm=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),xm=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.getDefaultShape=function(){return new wm},t.prototype.buildPath=function(e,t){var r=t.cx,n=t.cy,i=2*Math.PI;e.moveTo(r+t.r,n),e.arc(r,n,t.r,0,i,!1),e.moveTo(r+t.r0,n),e.arc(r,n,t.r0,0,i,!0)},t}(Wa);xm.prototype.type="ring";var km=xm;function Sm(e,t,r,n){var i,o,a,s,l=[],u=[],c=[],h=[];if(n){a=[1/0,1/0],s=[-1/0,-1/0];for(var p=0,g=e.length;p=2){if(n){var o=Sm(i,n,r,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var a=i.length,s=0;s<(r?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;sQm[1]){if(a=!1,i)return a;var u=Math.abs(Qm[0]-Jm[1]),c=Math.abs(Jm[0]-Qm[1]);Math.min(u,c)>n.len()&&(uMath.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function Cg(e){return!e.isGroup}function Tg(e){return null!=e.shape}function Og(e,t,r){if(e&&t){var n=i(e);t.traverse((function(e){if(Cg(e)&&e.anid){var t=n[e.anid];if(t){var i=o(e);e.attr(o(t)),Ul(e,i,r,Ts(e).dataIndex)}}}))}function i(e){var t={};return e.traverse((function(e){Cg(e)&&e.anid&&(t[e.anid]=e)})),t}function o(e){var t={x:e.x,y:e.y,rotation:e.rotation};return Tg(e)&&(t.shape=Object(l["m"])({},e.shape)),t}}function Lg(e,t){return Object(l["H"])(e,(function(e){var r=e[0];r=sg(r,t.x),r=lg(r,t.x+t.width);var n=e[1];return n=sg(n,t.y),n=lg(n,t.y+t.height),[r,n]}))}function Ag(e,t){var r=sg(e.x,t.x),n=lg(e.x+e.width,t.x+t.width),i=sg(e.y,t.y),o=lg(e.y+e.height,t.y+t.height);if(n>=r&&o>=i)return{x:r,y:i,width:n-r,height:o-i}}function Dg(e,t,r){var n=Object(l["m"])({rectHover:!0},t),i=n.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},e)return 0===e.indexOf("image://")?(i.image=e.slice(8),Object(l["i"])(i,r),new Qa(n)):mg(e.replace("path://",""),n,r,"center")}function Eg(e,t,r,n,i){for(var o=0,a=i[i.length-1];o1)return!1;var g=jg(f,p,c,d)/h;return!(g<0||g>1)}function jg(e,t,r,n){return e*n-r*t}function Pg(e){return e<=1e-6&&e>=-1e-6}function Rg(e){var t=e.itemTooltipOption,r=e.componentModel,n=e.itemName,i=Object(l["C"])(t)?{formatter:t}:t,o=r.mainType,a=r.componentIndex,s={componentType:o,name:n,$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:n,option:Object(l["i"])({content:n,formatterParams:s},i)}}function Ng(e,t){var r;e.isGroup&&(r=t(e)),r||e.traverse(t)}function Bg(e,t){if(e)if(Object(l["t"])(e))for(var r=0;r=0?d():c=setTimeout(d,-i),l=n};return h.clear=function(){c&&(clearTimeout(c),c=null)},h.debounceNextCall=function(e){s=e},h}function Jg(e,t,r,n){var i=e[t];if(i){var o=i[qg]||i,a=i[Kg],s=i[Xg];if(s!==r||a!==n){if(null==r||!n)return e[t]=o;i=e[t]=Zg(o,r,"debounce"===n),i[qg]=o,i[Kg]=n,i[Xg]=r}return i}}function Qg(e,t){var r=e[t];r&&r[qg]&&(r.clear&&r.clear(),e[t]=r[qg])}var ev=Ei(),tv={itemStyle:io(ku,!0),lineStyle:io(_u,!0)},rv={lineStyle:"stroke",itemStyle:"fill"};function nv(e,t){var r=e.visualStyleMapper||tv[t];return r||(console.warn("Unknown style type '"+t+"'."),tv.itemStyle)}function iv(e,t){var r=e.visualDrawType||rv[t];return r||(console.warn("Unknown style type '"+t+"'."),"fill")}var ov={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=e.getModel(n),o=nv(e,n),a=o(i),s=i.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var u=iv(e,n),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,r.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(r.setVisual("style",a),r.setVisual("drawType",u),!t.isSeriesFiltered(e)&&d)return r.setVisual("colorFromPalette",!1),{dataEach:function(t,r){var n=e.getDataParams(r),i=Object(l["m"])({},a);i[u]=d(n),t.setItemVisual(r,"style",i)}}}},av=new Tu,sv={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.ignoreStyleOnData&&!t.isSeriesFiltered(e)){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=nv(e,n),o=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(e,t){var r=e.getRawDataItem(t);if(r&&r[n]){av.option=r[n];var a=i(av),s=e.ensureUniqueItemVisual(t,"style");Object(l["m"])(s,a),av.option.decal&&(e.setItemVisual(t,"decal",av.option.decal),av.option.decal.dirty=!0),o in a&&e.setItemVisual(t,"colorFromPalette",!1)}}:null}}}},lv={performRawSeries:!0,overallReset:function(e){var t=Object(l["f"])();e.eachSeries((function(e){var r=e.getColorBy();if(!e.isColorBySeries()){var n=e.type+"-"+r,i=t.get(n);i||(i={},t.set(n,i)),ev(e).scope=i}})),e.eachSeries((function(t){if(!t.isColorBySeries()&&!e.isSeriesFiltered(t)){var r=t.getRawData(),n={},i=t.getData(),o=ev(t).scope,a=t.visualStyleAccessPath||"itemStyle",s=iv(t,a);i.each((function(e){var t=i.getRawIndex(e);n[t]=e})),r.each((function(e){var a=n[e],l=i.getItemVisual(a,"colorFromPalette");if(l){var u=i.ensureUniqueItemVisual(a,"style"),c=r.getName(e)||e+"",d=r.count();u[s]=t.getColorFromPalette(c,o,d)}}))}}))}},uv=Math.PI;function cv(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 r=new kn,n=new ls({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});r.add(n);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 r.add(a),t.showSpinner&&(i=new Vm({shape:{startAngle:-uv/2,endAngle:-uv/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*uv/2}).start("circularInOut"),i.animateShape(!0).when(1e3,{startAngle:3*uv/2}).delay(300).start("circularInOut"),r.add(i)),r.resize=function(){var r=o.getBoundingRect().width,s=t.showSpinner?t.spinnerRadius:0,l=(e.getWidth()-2*s-(t.showSpinner&&r?10:0)-r)/2-(t.showSpinner&&r?0:5+r/2)+(t.showSpinner?0:r/2)+(r?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}),n.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},r.resize(),r}var dv=function(){function e(e,t,r,n){this._stageTaskMap=Object(l["f"])(),this.ecInstance=e,this.api=t,r=this._dataProcessorHandlers=r.slice(),n=this._visualHandlers=n.slice(),this._allHandlers=r.concat(n)}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 r=this._pipelineMap.get(e.__pipeline.id),n=r.context,i=!t&&r.progressiveEnabled&&(!n||n.progressiveRender)&&e.__idxInPipeline>r.blockIndex,o=i?r.step:null,a=n&&n.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 r=this._pipelineMap.get(e.uid),n=e.getData(),i=n.count(),o=r.progressiveEnabled&&t.incrementalPrepareRender&&i>=r.threshold,a=e.get("large")&&i>=e.get("largeThreshold"),s="mod"===e.get("progressiveChunkMode")?i:null;e.pipelineContext=r.context={progressiveRender:o,modDataCount:s,large:a}},e.prototype.restorePipelines=function(e){var t=this,r=t._pipelineMap=Object(l["f"])();e.eachSeries((function(e){var n=e.getProgressive(),i=e.uid;r.set(i,{id:i,head:null,tail:null,threshold:e.getProgressiveThreshold(),progressiveEnabled:n&&!(e.preventIncremental&&e.preventIncremental()),blockIndex:-1,step:Math.round(n||700),count:0}),t._pipe(e,e.dataTask)}))},e.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),r=this.api;Object(l["k"])(this._allHandlers,(function(n){var i=e.get(n.uid)||e.set(n.uid,{}),o="";Object(l["b"])(!(n.reset&&n.overallReset),o),n.reset&&this._createSeriesStageTask(n,i,t,r),n.overallReset&&this._createOverallStageTask(n,i,t,r)}),this)},e.prototype.prepareView=function(e,t,r,n){var i=e.renderTask,o=i.context;o.model=t,o.ecModel=r,o.api=n,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,r){this._performStageTasks(this._visualHandlers,e,t,r)},e.prototype._performStageTasks=function(e,t,r,n){n=n||{};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(!n.visualType||n.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(n,e)&&(e.dirty(),d=!0)})),d&&c.dirty(),o.updatePayload(c,r);var f=o.getPerformArgs(c,n.block);h.each((function(e){e.perform(f)})),c.perform(f)&&(i=!0)}else u&&u.each((function(s,l){a(n,s)&&s.dirty();var u=o.getPerformArgs(s,n.block);u.skip=!e.performRawSeries&&t.isSeriesFiltered(s.context.model),o.updatePayload(s,r),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,r,n){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:gv,reset:vv,count:_v}));l.context={model:t,ecModel:r,api:n,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(t,l)}e.createOnAllSeries?r.eachRawSeries(c):s?r.eachRawSeriesByType(s,c):u&&u(r,n).each(c)},e.prototype._createOverallStageTask=function(e,t,r,n){var i=this,o=t.overallTask=t.overallTask||of({reset:hv});o.context={ecModel:r,api:n,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,r=s.set(t,a&&a.get(t)||(h=!0,of({reset:fv,onDirty:mv})));r.context={model:e,overallProgress:d},r.agent=o,r.__block=d,i._pipe(e,r)}Object(l["b"])(!e.createOnAllSeries,f),u?r.eachRawSeriesByType(u,p):c?c(r,n).each(p):(d=!1,Object(l["k"])(r.getSeries(),p)),h&&o.dirty()},e.prototype._pipe=function(e,t){var r=e.uid,n=this._pipelineMap.get(r);!n.head&&(n.head=t),n.tail&&n.tail.pipe(t),n.tail=t,t.__idxInPipeline=n.count++,t.__pipeline=n},e.wrapStageHandler=function(e,t){return Object(l["w"])(e)&&(e={overallReset:e,seriesType:wv(e)}),e.uid=Lu("stageHandler"),t&&(e.visualType=t),e},e}();function hv(e){e.overallReset(e.ecModel,e.api,e.payload)}function fv(e){return e.overallProgress&&pv}function pv(){this.agent.dirty(),this.getDownstream().dirty()}function mv(){this.agent&&this.agent.dirty()}function gv(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function vv(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 bv(t)})):yv}var yv=bv(0);function bv(e){return function(t,r){var n=r.data,i=r.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)&&(r[i]=e,s=!0),s||(n[i]=e)}))}return{cptQuery:t,dataQuery:r,otherQuery:n}},e.prototype.filter=function(e,t){var r=this.eventInfo;if(!r)return!0;var n=r.targetEl,i=r.packedEvent,o=r.model,a=r.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,n,i));function u(e,t,r,n){return null==e[r]||t[n||r]===e[r]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),Rv=["symbol","symbolSize","symbolRotate","symbolOffset"],Nv=Rv.concat(["symbolKeepAspect"]),Bv={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData();if(e.legendIcon&&r.setVisual("legendIcon",e.legendIcon),e.hasSymbolVisual){for(var n={},i={},o=!1,a=0;a=0&&uy(l)?l:.5;var u=e.createRadialGradient(a,s,0,a,s,l);return u}function hy(e,t,r){for(var n="radial"===t.type?dy(e,t,r):cy(e,t,r),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 vy(e){var t=e.style,r=t.lineDash&&t.lineWidth>0&&gy(t.lineDash,t.lineWidth),n=t.lineDashOffset;if(r){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&1!==i&&(r=Object(l["H"])(r,(function(e){return e/i})),n/=i)}return[r,n]}var yy=new ba(!0);function by(e){var t=e.stroke;return!(null==t||"none"===t||!(e.lineWidth>0))}function _y(e){return"string"===typeof e&&"none"!==e}function wy(e){var t=e.fill;return null!=t&&"none"!==t}function xy(e,t){if(null!=t.fillOpacity&&1!==t.fillOpacity){var r=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=r}else e.fill()}function ky(e,t){if(null!=t.strokeOpacity&&1!==t.strokeOpacity){var r=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=r}else e.stroke()}function Sy(e,t,r){var n=co(t.image,t.__image,r);if(fo(n)){var i=e.createPattern(n,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 My(e,t,r,n){var i,o=by(r),a=wy(r),s=r.strokePercent,l=s<1,u=!t.path;t.silent&&!l||!u||t.createPathProxy();var c=t.path||yy,d=t.__dirty;if(!n){var h=r.fill,f=r.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?hy(e,h,x):t.__canvasFillGradient,t.__canvasFillGradient=y),m&&(b=d?hy(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,S,M=t.getGlobalScale();c.setScale(M[0],M[1],t.segmentIgnoreThreshold),e.setLineDash&&r.lineDash&&(i=vy(t),k=i[0],S=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,n),c.toStatic(),t.pathUpdated()),C&&c.rebuildPath(e,l?s:1),k&&(e.setLineDash(k),e.lineDashOffset=S),n||(r.strokeFirst?(o&&ky(e,r),a&&xy(e,r)):(a&&xy(e,r),o&&ky(e,r))),k&&e.setLineDash([])}function Cy(e,t,r){var n=t.__image=co(r.image,t.__image,t,t.onload);if(n&&fo(n)){var i=r.x||0,o=r.y||0,a=t.getWidth(),s=t.getHeight(),l=n.width/n.height;if(null==a&&null!=s?a=s*l:null==s&&null!=a?s=a/l:null==a&&null==s&&(a=n.width,s=n.height),r.sWidth&&r.sHeight){var u=r.sx||0,c=r.sy||0;e.drawImage(n,u,c,r.sWidth,r.sHeight,i,o,a,s)}else if(r.sx&&r.sy){u=r.sx,c=r.sy;var d=a-u,h=s-c;e.drawImage(n,u,c,d,h,i,o,a,s)}else e.drawImage(n,i,o,a,s)}}function Ty(e,t,r){var n,i=r.text;if(null!=i&&(i+=""),i){e.font=r.font||Zr["a"],e.textAlign=r.textAlign,e.textBaseline=r.textBaseline;var o=void 0,a=void 0;e.setLineDash&&r.lineDash&&(n=vy(t),o=n[0],a=n[1]),o&&(e.setLineDash(o),e.lineDashOffset=a),r.strokeFirst?(by(r)&&e.strokeText(i,r.x,r.y),wy(r)&&e.fillText(i,r.x,r.y)):(wy(r)&&e.fillText(i,r.x,r.y),by(r)&&e.strokeText(i,r.x,r.y)),o&&e.setLineDash([])}}var Oy=["shadowBlur","shadowOffsetX","shadowOffsetY"],Ly=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Ay(e,t,r,n,i){var o=!1;if(!n&&(r=r||{},t===r))return!1;if(n||t.opacity!==r.opacity){zy(e,i),o=!0;var a=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(a)?Ao.opacity:a}(n||t.blend!==r.blend)&&(o||(zy(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,r){if(!this[Sb])if(this._disposed)i_(this.id);else{var n,i,o;if(Object(l["A"])(t)&&(r=t.lazyUpdate,n=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},l_);var c={seriesTransition:o,optionChanged:!0};if(r)this[Mb]={silent:n,updateParams:c},this[Sb]=!1,this.getZr().wakeUp();else{try{Pb(this),Bb.update.call(this,null,c)}catch(d){throw this[Mb]=null,this[Sb]=!1,d}this._ssr||this._zr.flush(),this[Mb]=null,this[Sb]=!1,Hb.call(this,n),Vb.call(this,n)}}},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,r=this._model,n=[],i=this;Object(l["k"])(t,(function(e){r.eachComponent({mainType:e},(function(e){var t=i._componentsMap[e.__viewId];t.group.ignore||(n.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"])(n,(function(e){e.group.ignore=!1})),o}i_(this.id)},t.prototype.getConnectedDataURL=function(e){if(!this._disposed){var t="svg"===e.type,r=this.group,n=Math.min,i=Math.max,o=1/0;if(f_[r]){var a=o,s=o,u=-o,c=-o,d=[],h=e&&e.pixelRatio||this.getDevicePixelRatio();Object(l["k"])(h_,(function(o,h){if(o.group===r){var f=t?o.getZr().painter.getSvgDom().innerHTML:o.renderToCanvas(Object(l["d"])(e)),p=o.getDom().getBoundingClientRect();a=n(p.left,a),s=n(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=Zr["d"].createCanvas(),g=An(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,r=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)}i_(this.id)},t.prototype.convertToPixel=function(e,t){return Yb(this,"convertToPixel",e,t)},t.prototype.convertFromPixel=function(e,t){return Yb(this,"convertFromPixel",e,t)},t.prototype.containPixel=function(e,t){if(!this._disposed){var r,n=this._model,i=ji(n,e);return Object(l["k"])(i,(function(e,n){n.indexOf("Models")>=0&&Object(l["k"])(e,(function(e){var i=e.coordinateSystem;if(i&&i.containPoint)r=r||!!i.containPoint(t);else if("seriesModels"===n){var o=this._chartsMap[e.__viewId];o&&o.containPoint&&(r=r||o.containPoint(t,e))}else 0}),this)}),this),!!r}i_(this.id)},t.prototype.getVisual=function(e,t){var r=this._model,n=ji(r,e,{defaultMainType:"series"}),i=n.seriesModel;var o=i.getData(),a=n.hasOwnProperty("dataIndexInside")?n.dataIndexInside:n.hasOwnProperty("dataIndex")?o.indexOfRawIndex(n.dataIndex):null;return null!=a?Fv(o,a,t):zv(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"])(n_,(function(t){var r=function(r){var n,i=e.getModel(),o=r.target,a="globalout"===t;if(a?n={}:o&&$v(o,(function(e){var t=Ts(e);if(t&&null!=t.dataIndex){var r=t.dataModel||i.getSeriesByIndex(t.seriesIndex);return n=r&&r.getDataParams(t.dataIndex,t.dataType,o)||{},!0}if(t.eventData)return n=Object(l["m"])({},t.eventData),!0}),!0),n){var s=n.componentType,u=n.componentIndex;"markLine"!==s&&"markPoint"!==s&&"markArea"!==s||(s="series",u=n.seriesIndex);var c=s&&null!=u&&i.getComponent(s,u),d=c&&e["series"===c.mainType?"_chartsMap":"_componentsMap"][c.__viewId];0,n.event=r,n.type=t,e._$eventProcessor.eventInfo={targetEl:o,packedEvent:n,model:c,view:d},e.trigger(t,n)}};r.zrEventfulCallAtLast=!0,e._zr.on(t,r,e)})),Object(l["k"])(a_,(function(t,r){e._messageCenter.on(r,(function(e){this.trigger(r,e)}),e)})),Object(l["k"])(["selectchanged"],(function(t){e._messageCenter.on(t,(function(e){this.trigger(t,e)}),e)})),Wv(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){this._disposed?i_(this.id):this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed)i_(this.id);else{this._disposed=!0;var e=this.getDom();e&&Yi(this.getDom(),m_,"");var t=this,r=t._api,n=t._model;Object(l["k"])(t._componentsViews,(function(e){e.dispose(n,r)})),Object(l["k"])(t._chartsViews,(function(e){e.dispose(n,r)})),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 h_[t.id]}},t.prototype.resize=function(e){if(!this[Sb])if(this._disposed)i_(this.id);else{this._zr.resize(e);var t=this._model;if(this._loadingFX&&this._loadingFX.resize(),t){var r=t.resetOption("media"),n=e&&e.silent;this[Mb]&&(null==n&&(n=this[Mb].silent),r=!0,this[Mb]=null),this[Sb]=!0;try{r&&Pb(this),Bb.update.call(this,{type:"resize",animation:Object(l["m"])({duration:0},e&&e.animation)})}catch(i){throw this[Sb]=!1,i}this[Sb]=!1,Hb.call(this,n),Vb.call(this,n)}}},t.prototype.showLoading=function(e,t){if(this._disposed)i_(this.id);else if(Object(l["A"])(e)&&(t=e,e=""),e=e||"default",this.hideLoading(),d_[e]){var r=d_[e](this._api,t),n=this._zr;this._loadingFX=r,n.add(r)}},t.prototype.hideLoading=function(){this._disposed?i_(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=a_[e.type],t},t.prototype.dispatchAction=function(e,t){if(this._disposed)i_(this.id);else if(Object(l["A"])(t)||(t={silent:!!t}),o_[e.type]&&this._model)if(this[Sb])this._pendingActions.push(e);else{var r=t.silent;zb.call(this,e,r);var n=t.flush;n?this._zr.flush():!1!==n&&s["a"].browser.weChat&&this._throttledZrFlush(),Hb.call(this,r),Vb.call(this,r)}},t.prototype.updateLabelLayout=function(){nb.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed)i_(this.id);else{var t=e.seriesIndex,r=this.getModel(),n=r.getSeriesByIndex(t);0,n.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=[],r=[],n=!1;if(e.eachComponent((function(e,i){var o=i.get("zlevel")||0,a=i.get("z")||0,s=i.getZLevelKey();n=n||!!s,("series"===e?r:t).push({zlevel:o,z:a,idx:i.componentIndex,type:e,key:s})})),n){var i,o,a=t.concat(r);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 r=e.getComponent(t.type,t.idx),n=t.zlevel,a=t.key;null!=i&&(n=Math.max(i,n)),a?(n===i&&a!==o&&n++,o=a):o&&(n===i&&n++,o=""),i=n,r.setZLevel(n)}))}}function r(e){for(var t=[],r=e.currentStates,n=0;nt.get("hoverLayerThreshold")&&!s["a"].node&&!s["a"].worker&&t.eachSeries((function(t){if(!t.preventUsingHoverLayer){var r=e._chartsMap[t.__viewId];r.__alive&&r.eachRendered((function(e){e.states.emphasis&&(e.states.emphasis.hoverLayer=!0)}))}}))}function i(e,t){var r=e.get("blendMode")||null;t.eachRendered((function(e){e.isGroup||(e.style.blend=r)}))}function o(e,t){if(!e.preventAutoZ){var r=e.get("z")||0,n=e.get("zlevel")||0;t.eachRendered((function(e){return u(e,r,n,-1/0),!0}))}}function u(e,t,r,n){var i=e.getTextContent(),o=e.getTextGuideLine(),a=e.isGroup;if(a)for(var s=e.childrenRef(),l=0;l0?{duration:o,delay:n.get("delay"),easing:n.get("easing")}:null;t.eachRendered((function(e){if(e.states&&e.states.emphasis){if($l(e))return;if(e instanceof Wa&&Fl(e),e.__dirty){var t=e.prevStates;t&&e.useStates(t)}if(i){e.stateTransition=a;var n=e.getTextContent(),o=e.getTextGuideLine();n&&(n.stateTransition=a),o&&(o.stateTransition=a)}e.__dirty&&r(e)}}))}Pb=function(e){var t=e._scheduler;t.restorePipelines(e._model),t.prepareStageTasks(),Rb(e,!0),Rb(e,!1),t.plan()},Rb=function(e,t){for(var r=e._model,n=e._scheduler,i=t?e._componentsViews:e._chartsViews,o=t?e._componentsMap:e._chartsMap,a=e._zr,s=e._api,l=0;l=0)){O_.push(r);var o=Cv.wrapStageHandler(r,i);o.__prio=t,o.__raw=r,e.push(o)}}function A_(e,t){d_[e]=t}function D_(e,t,r){var n=ab("registerMap");n&&n(e,t,r)}function E_(e){var t=ab("getMap");return t&&t(e)}var I_=kf;T_(mb,ov),T_(yb,sv),T_(yb,lv),T_(mb,Bv),T_(yb,Yv),T_(xb,tb),b_(Sh),__(ub,Mh),A_("default",cv),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:Us,event:Us,update:Us},l["L"]),y_("light",Ov),y_("dark",jv);var j_=[],P_={registerPreprocessor:b_,registerProcessor:__,registerPostInit:w_,registerPostUpdate:x_,registerUpdateLifecycle:k_,registerAction:S_,registerCoordinateSystem:M_,registerLayout:C_,registerVisual:T_,registerTransform:I_,registerLoading:A_,registerMap:D_,registerImpl:ob,PRIORITY:kb,ComponentModel:Kc,ComponentView:Cp,SeriesModel:Sp,ChartView:Gg,registerComponentModel:function(e){Kc.registerClass(e)},registerComponentView:function(e){Cp.registerClass(e)},registerSeriesModel:function(e){Sp.registerClass(e)},registerChartView:function(e){Gg.registerClass(e)},registerSubTypeDefaulter:function(e,t){Kc.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){Dn(e,t)}};function R_(e){Object(l["t"])(e)?Object(l["k"])(e,(function(e){R_(e)})):Object(l["r"])(j_,e)>=0||(j_.push(e),Object(l["w"])(e)&&(e={install:e}),e.install(P_))}var N_=2*Math.PI,B_=ba.CMD,Y_=["top","right","bottom","left"];function F_(e,t,r,n,i){var o=r.width,a=r.height;switch(e){case"top":n.set(r.x+o/2,r.y-t),i.set(0,-1);break;case"bottom":n.set(r.x+o/2,r.y+a+t),i.set(0,1);break;case"left":n.set(r.x-t,r.y+a/2),i.set(-1,0);break;case"right":n.set(r.x+o+t,r.y+a/2),i.set(1,0);break}}function z_(e,t,r,n,i,o,a,s,l){a-=e,s-=t;var u=Math.sqrt(a*a+s*s);a/=u,s/=u;var c=a*r+e,d=s*r+t;if(Math.abs(n-i)%N_<1e-4)return l[0]=c,l[1]=d,u-r;if(o){var h=n;n=Sa(i),i=Sa(h)}else n=Sa(n),i=Sa(i);n>i&&(i+=N_);var f=Math.atan2(s,a);if(f<0&&(f+=N_),f>=n&&f<=i||f+N_>=n&&f+N_<=i)return l[0]=c,l[1]=d,u-r;var p=r*Math.cos(n)+e,m=r*Math.sin(n)+t,g=r*Math.cos(i)+e,v=r*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,G_.fromArray(e[0]),q_.fromArray(e[1]),X_.fromArray(e[2]),ye.sub(K_,G_,q_),ye.sub(Z_,X_,q_);var r=K_.len(),n=Z_.len();if(!(r<.001||n<.001)){K_.scale(1/r),Z_.scale(1/n);var i=K_.dot(Z_),o=Math.cos(t);if(o1&&ye.copy(ew,X_),ew.toArray(e[1])}}}}function rw(e,t,r){if(r<=180&&r>0){r=r/180*Math.PI,G_.fromArray(e[0]),q_.fromArray(e[1]),X_.fromArray(e[2]),ye.sub(K_,q_,G_),ye.sub(Z_,X_,q_);var n=K_.len(),i=Z_.len();if(!(n<.001||i<.001)){K_.scale(1/n),Z_.scale(1/i);var o=K_.dot(t),a=Math.cos(r);if(o=l)ye.copy(ew,X_);else{ew.scaleAndAdd(Z_,s/Math.tan(Math.PI/2-c));var d=X_.x!==q_.x?(ew.x-q_.x)/(X_.x-q_.x):(ew.y-q_.y)/(X_.y-q_.y);if(isNaN(d))return;d<0?ye.copy(ew,q_):d>1&&ye.copy(ew,X_)}ew.toArray(e[1])}}}}function nw(e,t,r,n){var i="normal"===r,o=i?e:e.ensureState(r);o.ignore=t;var a=n.get("smooth");a&&!0===a&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=n.getModel("lineStyle").getLineStyle();i?e.useStyle(s):o.style=s}function iw(e,t){var r=t.smooth,n=t.points;if(n)if(e.moveTo(n[0][0],n[0][1]),r>0&&n.length>=3){var i=w(n[0],n[1]),o=w(n[1],n[2]);if(!i||!o)return e.lineTo(n[1][0],n[1][1]),void e.lineTo(n[2][0],n[2][1]);var a=Math.min(i,o)*r,s=S([],n[1],n[0],a/i),l=S([],n[1],n[2],a/o),u=S([],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],n[2][0],n[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&&S(-g),v<0&&S(v),u}function _(){g=y.rect[t]-n,v=i-b.rect[t]-b.rect[r]}function w(e,t,r){if(e<0){var n=Math.min(t,-e);if(n>0){x(n*r,0,a);var i=n+e;i<0&&k(-i*r,1)}else k(-e*r,1)}}function x(r,n,i){0!==r&&(u=!0);for(var o=n;o0)for(l=0;l0;l--){h=o[l-1]*d;x(-h,l,a)}}}function S(e){var t=e<0?-1:1;e=Math.abs(e);for(var r=Math.ceil(e/(a-1)),n=0;n0?x(r,0,n+1):x(-r,a-n-1,a),e-=r,e<=0)return}}function uw(e,t,r,n){return lw(e,"x","width",t,r,n)}function cw(e,t,r,n){return lw(e,"y","height",t,r,n)}function dw(e){var t=[];e.sort((function(e,t){return t.priority-e.priority}));var r=new Oe(0,0,0,0);function n(e){if(!e.ignore){var t=e.ensureState("emphasis");null==t.ignore&&(t.ignore=!1)}e.ignore=!0}for(var i=0;i=0&&r.attr(i.oldLayoutSelect),Object(l["r"])(d,"emphasis")>=0&&r.attr(i.oldLayoutEmphasis)),Ul(r,u,t,s)}else if(r.attr(u),!hu(r).valueAnimation){var h=Object(l["P"])(r.style.opacity,1);r.style.opacity=0,Wl(r,{style:{opacity:h}},t,s)}if(i.oldLayout=u,r.states.select){var f=i.oldLayoutSelect={};yw(f,u,bw),yw(f,r.states.select,bw)}if(r.states.emphasis){var p=i.oldLayoutEmphasis={};yw(p,u,bw),yw(p,r.states.emphasis,bw)}pu(r,s,c,t,t)}if(n&&!n.ignore&&!n.invisible){i=vw(n),o=i.oldLayout;var m={points:n.shape.points};o?(n.attr({shape:o}),Ul(n,{shape:m},t)):(n.setShape(m),n.style.strokePercent=0,Wl(n,{style:{strokePercent:1}},t)),i.oldLayout=m}},e}(),ww=_w,xw=Ei();function kw(e){e.registerUpdateLifecycle("series:beforeupdate",(function(e,t,r){var n=xw(t).labelManager;n||(n=xw(t).labelManager=new ww),n.clearLabels()})),e.registerUpdateLifecycle("series:layoutlabels",(function(e,t,r){var n=xw(t).labelManager;r.updatedSeries.forEach((function(e){n.addLabelsOfSeries(t.getViewOfSeriesModel(e))})),n.updateLayoutConfig(t),n.layout(t),n.processLabelsOverall()}))}function Sw(e,t,r){var n=Zr["d"].createCanvas(),i=t.getWidth(),o=t.getHeight(),a=n.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=i+"px",a.height=o+"px",n.setAttribute("data-zr-dom-id",e)),n.width=i*r,n.height=o*r,n}R_(kw);var Mw=function(e){function t(t,r,n){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,n=n||jr,"string"===typeof t?i=Sw(t,r,n):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=r,o.dpr=n,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,r,n){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 r=!1,n=1/0,i=0,u=0;u=a)}}for(var c=this.__startIndex;c15)break}}r.prevElClipPaths&&u.restore()};if(c)if(0===c.length)s=l.__endIndex;else for(var _=p.dpr,w=0;w0&&e>n[0]){for(s=0;se)break;a=r[n[s]]}if(n.splice(s+1,0,e),r[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 r=this._zlevelList,n=0;n0?Lw: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),n.__dirty&Ze&&!n.__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 r=this._layerConfig;r[e]?l["I"](r[e],t,!0):r[e]=t;for(var n=0;n=Yw:-l>=Yw),h=l>0?l%Yw:l%Yw+Yw,f=!1;f=!!d||!Object(Yt["j"])(c)&&h>=Bw===!!u;var p=e+r*Nw(o),m=t+n*Rw(o);this._start&&this._add("M",p,m);var g=Math.round(i*Fw);if(d){var v=1/this._p,y=(u?1:-1)*(Yw-v);this._add("A",r,n,g,1,+u,e+r*Nw(o+y),t+n*Rw(o+y)),v>.01&&this._add("A",r,n,g,0,+u,p,m)}else{var b=e+r*Nw(a),_=t+n*Rw(a);this._add("A",r,n,g,+f,+u,b,_)}},e.prototype.rect=function(e,t,r,n){this._add("M",e,t),this._add("l",r,0),this._add("l",0,n),this._add("l",-r,0),this._add("Z")},e.prototype.closePath=function(){this._d.length>0&&this._add("Z")},e.prototype._add=function(e,t,r,n,i,o,a,s,l){for(var u=[],c=this._p,d=1;d"}function ix(e){return""}function ox(e,t){t=t||{};var r=t.newline?"\n":"";function n(e){var t=e.children,i=e.tag,o=e.attrs,a=e.text;return nx(i,o)+("style"!==i?W(a):a||"")+(t?""+r+Object(l["H"])(t,(function(e){return n(e)})).join(r)+r:"")+ix(i)}return n(e)}function ax(e,t,r){r=r||{};var n=r.newline?"\n":"",i=" {"+n,o=n+"}",a=Object(l["H"])(Object(l["F"])(e),(function(t){return t+i+Object(l["H"])(Object(l["F"])(e[t]),(function(r){return r+":"+e[t][r]+";"})).join(n)+o})).join(n),s=Object(l["H"])(Object(l["F"])(t),(function(e){return"@keyframes "+e+i+Object(l["H"])(Object(l["F"])(t[e]),(function(r){return r+i+Object(l["H"])(Object(l["F"])(t[e][r]),(function(n){var i=t[e][r][n];return"d"===n&&(i='path("'+i+'")'),n+":"+i+";"})).join(n)+o})).join(n)+o})).join(n);return a||s?[""].join(n):""}function sx(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function lx(e,t,r,n){return rx("svg","root",{width:e,height:t,xmlns:Kw,"xmlns:xlink":Zw,version:"1.1",baseProfile:"full",viewBox:!!n&&"0 0 "+e+" "+t},r)}var ux=0;function cx(){return ux++}var dx={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"},hx="transform-origin";function fx(e,t,r){var n=Object(l["m"])({},e.shape);Object(l["m"])(n,t),e.buildPath(r,n);var i=new Hw;return i.reset(Object(Yt["f"])(e)),r.rebuildPath(i,1),i.generateStr(),i.getStr()}function px(e,t){var r=t.originX,n=t.originY;(r||n)&&(e[hx]=r+"px "+n+"px")}var mx={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function gx(e,t){var r=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[r]=e,r}function vx(e,t,r){var n,i,o=e.shape.paths,a={};if(Object(l["k"])(o,(function(e){var t=sx(r.zrId);t.animation=!0,bx(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&&(n=m)}}})),n){t.d=!1;var s=gx(a,r);return n.replace(i,s)}}function yx(e){return Object(l["C"])(e)?dx[e]?"cubic-bezier("+dx[e]+")":Pt(e)?e:"":""}function bx(e,t,r,n){var i=e.animators,o=i.length,a=[];if(e instanceof Wm){var s=vx(e,t,r);if(s)a.push(s);else if(!o)return}else if(!o)return;for(var u={},c=0;c0})).length){var A=gx(d,r);return A+" "+i[0]+" both"}}for(var v in u){s=g(u[v]);s&&a.push(s)}if(a.length){var y=r.zrId+"-cls-"+cx();r.cssNodes["."+y]={animation:a.join(",")},t["class"]=y}}function _x(e,t,r){if(!e.ignore)if(e.isSilent()){var n={"pointer-events":"none"};wx(n,t,r,!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}n={cursor:"pointer"};o&&(n.fill=o),i.stroke&&(n.stroke=i.stroke),u&&(n["stroke-width"]=u),wx(n,t,r,!0)}}function wx(e,t,r,n){var i=JSON.stringify(e),o=r.cssStyleCache[i];o||(o=r.zrId+"-cls-"+cx(),r.cssStyleCache[i]=o,r.cssNodes["."+o+(n?":hover":"")]=e),t["class"]=t["class"]?t["class"]+" "+o:o}var xx=Math.round;function kx(e){return e&&Object(l["C"])(e.src)}function Sx(e){return e&&Object(l["w"])(e.toDataURL)}function Mx(e,t,r,n){Xw((function(i,o){var a="fill"===i||"stroke"===i;a&&Object(Yt["k"])(o)?Fx(t,e,i,n):a&&Object(Yt["n"])(o)?zx(r,e,i,n):e[i]=a&&"none"===o?"transparent":o}),t,r,!1),Yx(r,e,n)}function Cx(e,t){var r=En(t);r&&(r.each((function(t,r){null!=t&&(e[(ex+r).toLowerCase()]=t+"")})),t.isSilent()&&(e[ex+"silent"]="true"))}function Tx(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 Ox(e){return Object(Yt["j"])(e[4])&&Object(Yt["j"])(e[5])}function Lx(e,t,r){if(t&&(!Ox(t)||!Tx(t))){var n=r?10:1e4;e.transform=Tx(t)?"translate("+xx(t[4]*n)/n+" "+xx(t[5]*n)/n+")":Object(Yt["e"])(t)}}function Ax(e,t,r){for(var n=e.points,i=[],o=0;ou?(a=null==r[h+1]?null:r[h+1].elm,ik(e,a,r,l,h)):ok(e,t,s,u))}function lk(e,t){var r=t.elm=e.elm,n=e.children,i=t.children;e!==t&&(ak(e,t),Qx(t.text)?ek(n)&&ek(i)?n!==i&&sk(r,n,i):ek(i)?(ek(e.text)&&Xx(r,""),ik(r,null,i,0,i.length-1)):ek(n)?ok(r,n,0,n.length-1):ek(e.text)&&Xx(r,""):e.text!==t.text&&(ek(n)&&ok(r,n,0,n.length-1),Xx(r,t.text)))}function uk(e,t){if(rk(e,t))lk(e,t);else{var r=e.elm,n=Gx(r);nk(t),null!==n&&(Ux(n,t.elm,qx(r)),ok(n,[e],0,0))}return t}var ck=0,dk=function(){function e(e,t,r){if(this.type="svg",this.refreshHover=hk("refreshHover"),this.configLayer=hk("configLayer"),this.storage=t,this._opts=r=Object(l["m"])({},r),this.root=e,this._id="zr"+ck++,this._oldVNode=lx(r.width,r.height),e&&!r.ssr){var n=this._viewport=document.createElement("div");n.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=tx("svg");ak(null,this._oldVNode),n.appendChild(i),e.appendChild(n)}this.resize(r.width,r.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",uk(this._oldVNode,e),this._oldVNode=e}},e.prototype.renderOneToVNode=function(e){return Bx(e,sx(this._id))},e.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),r=this._width,n=this._height,i=sx(this._id);i.animation=e.animation,i.willUpdate=e.willUpdate,i.compress=e.compress,i.emphasis=e.emphasis;var o=[],a=this._bgVNode=fk(r,n,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=ax(i.cssNodes,i.cssAnims,{newline:!0});if(c){var d=rx("style","stl",{},[],c);o.push(d)}}return lx(r,n,o,e.useViewBox)},e.prototype.renderToString=function(e){return e=e||{},ox(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,r){for(var n,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--,n=a[s-1];for(var g=p+1;g1){var u=s.shift();1===s.length&&(r[a]=s[0]),this._update&&this._update(u,o)}else 1===l?(r[a]=null,this._update&&this._update(s,o)):this._remove&&this._remove(o)}this._performRestAdd(i,r)},e.prototype._executeMultiple=function(){var e=this._old,t=this._new,r={},n={},i=[],o=[];this._initIndexMap(e,r,i,"_oldKeyGetter"),this._initIndexMap(t,n,o,"_newKeyGetter");for(var a=0;a1&&1===d)this._updateManyToOne&&this._updateManyToOne(u,l),n[s]=null;else if(1===c&&d>1)this._updateOneToMany&&this._updateOneToMany(u,l),n[s]=null;else if(1===c&&1===d)this._update&&this._update(u,l),n[s]=null;else if(c>1&&d>1)this._updateManyToMany&&this._updateManyToMany(u,l),n[s]=null;else if(c>1)for(var h=0;h1)for(var a=0;a30}var jk,Pk,Rk,Nk,Bk,Yk,Fk,zk=l["A"],Hk=l["H"],Vk="undefined"===typeof Int32Array?Array:Int32Array,Uk="e\0\0",Wk=-1,$k=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],Gk=["_approximateExtent"],qk=function(){function e(e,t){var r;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","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var n=!1;Ak(e)?(r=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(n=!0,r=e),r=r||["x","y"];for(var i={},o=[],a={},s=!1,u={},c=0;c=t)){var r=this._store,n=r.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,a=n.getSource().sourceFormat,s=a===td;if(s&&!n.pure)for(var l=[],u=e;u0},e.prototype.ensureUniqueItemVisual=function(e,t){var r=this._itemVisuals,n=r[e];n||(n=r[e]={});var i=n[t];return null==i&&(i=this.getVisual(t),l["t"](i)?i=i.slice():zk(i)&&(i=l["m"]({},i)),n[t]=i),i},e.prototype.setItemVisual=function(e,t,r){var n=this._itemVisuals[e]||{};this._itemVisuals[e]=n,zk(t)?l["m"](n,t):n[t]=r},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(e,t){zk(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,r){this._itemLayouts[e]=r?l["m"](this._itemLayouts[e]||{},t):t},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(e,t){var r=this.hostModel&&this.hostModel.seriesIndex;Os(r,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(r,n){r&&e&&e.call(t,r,n)}))},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:Hk(this.dimensions,this._getDimInfo,this),this.hostModel)),Bk(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(e,t){var r=this[e];l["w"](r)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=r.apply(this,arguments);return t.apply(this,[e].concat(l["S"](arguments)))})},e.internalField=function(){jk=function(e){var t=e._invertedIndicesMap;l["k"](t,(function(r,n){var i=e._dimInfos[n],o=i.ordinalMeta,a=e._store;if(o){r=t[n]=new Vk(o.categories.length);for(var s=0;s1&&(s+="__ec__"+u),n[t]=s}}}(),e}(),Xk=qk;function Kk(e,t){Ih(e)||(e=Ph(e)),t=t||{};var r=t.coordDimensions||[],n=t.dimensionsDefine||e.dimensionsDefine||[],i=Object(l["f"])(),o=[],a=Jk(e,r,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&Ik(a),u=n===e.dimensionsDefine,c=u?Ek(e):Dk(n),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&&(n.name=i+(o-1)),o++,t.set(i,o)}}function Jk(e,t,r,n){var i=Math.max(e.dimensionsDetectedCount||1,t.length,r.length,n||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 Qk(e,t,r){if(r||t.hasKey(e)){var n=0;while(t.hasKey(e+n))n++;e+=n}return t.set(e,!0),e}var eS=function(){function e(e){this.coordSysDims=[],this.axisMap=Object(l["f"])(),this.categoryAxisMap=Object(l["f"])(),this.coordSysName=e}return e}();function tS(e){var t=e.get("coordinateSystem"),r=new eS(t),n=rS[t];if(n)return n(e,r,r.axisMap,r.categoryAxisMap),r}var rS={cartesian2d:function(e,t,r,n){var i=e.getReferringComponents("xAxis",Ri).models[0],o=e.getReferringComponents("yAxis",Ri).models[0];t.coordSysDims=["x","y"],r.set("x",i),r.set("y",o),nS(i)&&(n.set("x",i),t.firstCategoryDimIndex=0),nS(o)&&(n.set("y",o),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,r,n){var i=e.getReferringComponents("singleAxis",Ri).models[0];t.coordSysDims=["single"],r.set("single",i),nS(i)&&(n.set("single",i),t.firstCategoryDimIndex=0)},polar:function(e,t,r,n){var i=e.getReferringComponents("polar",Ri).models[0],o=i.findAxisModel("radiusAxis"),a=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],r.set("radius",o),r.set("angle",a),nS(o)&&(n.set("radius",o),t.firstCategoryDimIndex=0),nS(a)&&(n.set("angle",a),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=1))},geo:function(e,t,r,n){t.coordSysDims=["lng","lat"]},parallel:function(e,t,r,n){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];r.set(l,s),nS(s)&&(n.set(l,s),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=o))}))}};function nS(e){return"category"===e.get("type")}function iS(e,t,r){r=r||{};var n,i,o,a=r.byIndex,s=r.stackedCoordDimension;oS(t)?n=t:(i=t.schema,n=i.dimensions,o=t.store);var u,c,d,h,f=!(!e||!e.get("stack"));if(Object(l["k"])(n,(function(e,t){Object(l["C"])(e)&&(n[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"])(n,(function(e){e.coordDim===p&&g++}));var v={name:d,coordDim:p,coordDimIndex:g,type:m,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:n.length},y={name:h,coordDim:h,coordDimIndex:g+1,type:m,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:n.length+1};i?(o&&(v.storeDimIndex=o.ensureCalculationDimension(h,m),y.storeDimIndex=o.ensureCalculationDimension(d,m)),i.appendCalculationDimension(v),i.appendCalculationDimension(y)):(n.push(v),n.push(y))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:a,stackedOverDimension:h,stackResultDimension:d}}function oS(e){return!Ak(e.schema)}function aS(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function sS(e,t){return aS(e,t)?e.getCalculationInfo("stackResultDimension"):t}function lS(e,t){var r,n=e.get("coordinateSystem"),i=Gd.get(n);return t&&t.coordSysDims&&(r=l["H"](t.coordSysDims,(function(e){var r={name:e},n=t.axisMap.get(e);if(n){var i=n.get("type");r.type=kk(i)}return r}))),r||(r=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"]),r}function uS(e,t,r){var n,i;return r&&l["k"](e,(function(e,o){var a=e.coordDim,s=r.categoryAxisMap.get(a);s&&(null==n&&(n=o),e.ordinalMeta=s.getOrdinalMeta(),t&&(e.createInvertedIndices=!0)),null!=e.otherDims.itemName&&(i=!0)})),i||null==n||(e[n].otherDims.itemName=0),n}function cS(e,t,r){r=r||{};var n,i=t.getSourceManager(),o=!1;e?(o=!0,n=Ph(e)):(n=i.getSource(),o=n.sourceFormat===td);var a=tS(t),s=lS(t,a),u=r.useEncodeDefaulter,c=l["w"](u)?u:u?l["h"](hd,s,t):null,d={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:c,canOmitUnusedDimensions:!o},h=Kk(n,d),f=uS(h.dimensions,r.createInvertedIndices,a),p=o?null:i.getSharedDataStore(h),m=iS(t,{schema:h,store:p}),g=new Xk(h,t);g.setCalculationInfo(m);var v=null!=f&&dS(n)?function(e,t,r,n){return n===f?r:this.defaultDimValueGetter(e,t,r,n)}:null;return g.hasItemOption=!1,g.initData(o?n:p,null,v),g}function dS(e){if(e.sourceFormat===td){var t=hS(e.data||[]);return!l["t"](fi(t))}}function hS(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),mS=pS;function gS(e,t){var r=e.mapDimensionsAll("defaultedLabel"),n=r.length;if(1===n){var i=ef(e,t,r[0]);return null!=i?i+"":null}if(n){for(var o=[],a=0;a=0&&n.push(t[o])}return n.join(" ")}var yS=function(e){function t(t,r,n,i){var o=e.call(this)||this;return o.updateData(t,r,n,i),o}return a(t,e),t.prototype._createSymbol=function(e,t,r,n,i){this.removeAll();var o=ay(e,-1,-1,2,2,null,i);o.attr({z2:100,culling:!0,scaleX:n[0]/2,scaleY:n[1]/2}),o.drift=bS,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 r=this.childAt(0);r.zlevel=e,r.z=t},t.prototype.setDraggable=function(e,t){var r=this.childAt(0);r.draggable=e,r.cursor=!t&&e?"move":r.cursor},t.prototype.updateData=function(e,r,n,i){this.silent=!1;var o=e.getItemVisual(r,"symbol")||"circle",a=e.hostModel,s=t.getSymbolSize(e,r),l=o!==this._symbolType,u=i&&i.disableAnimation;if(l){var c=e.getItemVisual(r,"symbolKeepAspect");this._createSymbol(o,e,r,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):Ul(d,h,a,r),Kl(d)}if(this._updateCommon(e,r,s,n,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,Wl(d,h,a,r)}}u&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,t,r,n,i){var o,a,s,u,c,d,h,f,p,m=this.childAt(0),g=e.hostModel;if(n&&(o=n.emphasisItemStyle,a=n.blurItemStyle,s=n.selectItemStyle,u=n.focus,c=n.blurScope,h=n.labelStatesModels,f=n.hoverScale,p=n.cursorStyle,d=n.emphasisDisabled),!n||e.hasItemOption){var v=n&&n.itemModel?n.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=ru(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 _=ly(e.getItemVisual(t,"symbolOffset"),r);_&&(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 S=e.getItemVisual(t,"liftZ"),M=this._z2;null!=S?null==M&&(this._z2=m.z2,m.z2+=S):null!=M&&(m.z2=M,this._z2=null);var C=i&&i.useNameLabel;function T(t){return C?e.getName(t):gS(e,t)}tu(m,h,{labelFetcher:g,labelDataIndex:t,defaultText:T,inheritColor:x,defaultOpacity:w.opacity}),this._sizeX=r[0]/2,this._sizeY=r[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,r){var n=this.childAt(0),i=Ts(this).dataIndex,o=r&&r.animation;if(this.silent=n.silent=!0,r&&r.fadeLabel){var a=n.getTextContent();a&&Gl(a,{style:{opacity:0}},t,{dataIndex:i,removeOpt:o,cb:function(){n.removeTextContent()}})}else n.removeTextContent();Gl(n,{style:{opacity:0},scaleX:0,scaleY:0},t,{dataIndex:i,cb:e,removeOpt:o})},t.getSymbolSize=function(e,t){return sy(e.getItemVisual(t,"symbolSize"))},t}(kn);function bS(e,t){this.parent.drift(e,t)}var _S=yS;function wS(e,t,r,n){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(n.isIgnore&&n.isIgnore(r))&&!(n.clipShape&&!n.clipShape.contain(t[0],t[1]))&&"none"!==e.getItemVisual(r,"symbol")}function xS(e){return null==e||Object(l["A"])(e)||(e={isIgnore:e}),e||{}}function kS(e){var t=e.hostModel,r=t.getModel("emphasis");return{emphasisItemStyle:r.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:r.get("focus"),blurScope:r.get("blurScope"),emphasisDisabled:r.get("disabled"),hoverScale:r.get("scale"),labelStatesModels:ru(t),cursorStyle:t.get("cursor")}}var SS=function(){function e(e){this.group=new kn,this._SymbolCtor=e||_S}return e.prototype.updateData=function(e,t){this._progressiveEls=null,t=xS(t);var r=this.group,n=e.hostModel,i=this._data,o=this._SymbolCtor,a=t.disableAnimation,s=kS(e),l={disableAnimation:a},u=t.getSymbolPoint||function(t){return e.getItemLayout(t)};i||r.removeAll(),e.diff(i).add((function(n){var i=u(n);if(wS(e,i,n,t)){var a=new o(e,n,s,l);a.setPosition(i),e.setItemGraphicEl(n,a),r.add(a)}})).update((function(c,d){var h=i.getItemGraphicEl(d),f=u(c);if(wS(e,f,c,t)){var p=e.getItemVisual(c,"symbol")||"circle",m=h&&h.getSymbolType&&h.getSymbolType();if(!h||m&&m!==p)r.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):Ul(h,g,n)}r.add(h),e.setItemGraphicEl(c,h)}else r.remove(h)})).remove((function(e){var t=i.getItemGraphicEl(e);t&&t.fadeOut((function(){r.remove(t)}),n)})).execute(),this._getSymbolPoint=u,this._data=e},e.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl((function(t,r){var n=e._getSymbolPoint(r);t.setPosition(n),t.markRedraw()}))},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=kS(e),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t,r){function n(e){e.isGroup||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],r=xS(r);for(var i=e.start;i0?r=n[0]:n[1]<0&&(r=n[1]),r}function OS(e,t,r,n){var i=NaN;e.stacked&&(i=r.get(r.getCalculationInfo("stackedOverDimension"),n)),isNaN(i)&&(i=e.valueStart);var o=e.baseDataOffset,a=[];return a[o]=r.get(e.baseDim,n),a[1-o]=i,t.dataToPoint(a)}var LS="undefined"!==typeof Float32Array,AS=LS?Float32Array:Array;function DS(e){return Object(l["t"])(e)?LS?new Float32Array(e):e:new AS(e)}function ES(e,t){var r=[];return t.diff(e).add((function(e){r.push({cmd:"+",idx:e})})).update((function(e,t){r.push({cmd:"=",idx:t,idx1:e})})).remove((function(e){r.push({cmd:"-",idx:e})})).execute(),r}function IS(e,t,r,n,i,o,a,s){for(var l=ES(e,t),u=[],c=[],d=[],h=[],f=[],p=[],m=[],g=CS(i,t,a),v=e.getLayout("points")||[],y=t.getLayout("points")||[],b=0;b=i||m<0)break;if(RS(v,y)){if(l){m+=o;continue}break}if(m===r)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=n||RS(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),M=P/(P+j),f=v-C*a*(1-M),p=y-T*a*(1-M),O=v+C*a*M,L=y+T*a*M,O=jS(O,PS(x,v)),L=jS(L,PS(k,y)),O=PS(O,jS(x,v)),L=PS(L,jS(k,y)),C=O-v,T=L-y,f=v-C*j/P,p=y-T*j/P,f=jS(f,PS(u,v)),p=jS(p,PS(c,y)),f=PS(f,jS(u,v)),p=PS(p,jS(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 BS=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),YS=function(e){function t(t){var r=e.call(this,t)||this;return r.type="ec-polyline",r}return a(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new BS},t.prototype.buildPath=function(e,t){var r=t.points,n=0,i=r.length/2;if(t.connectNulls){for(;i>0;i--)if(!RS(r[2*i-2],r[2*i-1]))break;for(;n=0){var y=s?(h-n)*v+n:(d-r)*v+r;return s?[e,y]:[y,e]}r=d,n=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(r,d,f,m,e,l):xt(n,h,p,g,e,l);if(b>0)for(var _=0;_=0){y=s?_t(n,h,p,g,w):_t(r,d,f,m,w);return s?[e,y]:[y,e]}}r=m,n=g;break}}},t}(Wa),FS=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t}(BS),zS=function(e){function t(t){var r=e.call(this,t)||this;return r.type="ec-polygon",r}return a(t,e),t.prototype.getDefaultShape=function(){return new FS},t.prototype.buildPath=function(e,t){var r=t.points,n=t.stackedOnPoints,i=0,o=r.length/2,a=t.smoothMonotone;if(t.connectNulls){for(;o>0;o--)if(!RS(r[2*o-2],r[2*o-1]))break;for(;it){n?i.push(a(n,l,t)):r&&i.push(a(r,l,0),a(r,l,t));break}r&&(i.push(a(r,l,0)),r=null),i.push(l),n=l}}return i}function QS(e,t,r){var n=e.getVisual("visualMeta");if(n&&n.length&&e.count()&&"cartesian2d"===t.type){for(var i,o,a=n.length-1;a>=0;a--){var s=e.getDimensionInfo(n[a].dimension);if(i=s&&s.coordDim,"x"===i||"y"===i){o=n[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=JS(c,"x"===i?r.getWidth():r.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 Xm(0,0,0,0,f,!0);return b[i]=g,b[i+"2"]=v,b}}}function eM(e,t,r){var n=e.get("showAllSymbol"),i="auto"===n;if(!n||i){var o=r.getAxesByScale("ordinal")[0];if(o&&(!i||!tM(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 tM(e,t){var r=e.getExtent(),n=Math.abs(r[1]-r[0])/e.scale.count();isNaN(n)&&(n=0);for(var i=t.count(),o=Math.max(1,Math.round(i/5)),a=0;an)return!1;return!0}function rM(e,t){return isNaN(e)||isNaN(t)}function nM(e){for(var t=e.length/2;t>0;t--)if(!rM(e[2*t-2],e[2*t-1]))break;return t-1}function iM(e,t){return[e[2*t],e[2*t+1]]}function oM(e,t,r){for(var n,i,o=e.length/2,a="x"===r?0:1,s=0,l=-1,u=0;u=t||n>=t&&i<=t){l=u;break}s=u,n=i}else n=i;return{range:[s,l],t:(t-n)/(i-n)}}function aM(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t0&&"bolder"===e.get(["emphasis","lineStyle","width"])){var P=p.getState("emphasis").style;P.lineWidth=+p.style.lineWidth+1}Ts(p).seriesIndex=e.seriesIndex,Ll(p,E,I,j);var R=XS(e.get("smooth")),N=e.get("smoothMonotone");if(p.setShape({smooth:R,smoothMonotone:N,connectNulls:k}),m){var B=a.getCalculationInfo("stackedOnSeries"),Y=0;m.useStyle(l["i"](u.getAreaStyle(),{fill:O,opacity:.7,lineJoin:"bevel",decal:a.getVisual("style").decal})),B&&(Y=XS(B.get("smooth"))),m.setShape({smooth:R,stackedOnSmooth:Y,smoothMonotone:N,connectNulls:k}),Il(m,e,"areaStyle"),Ts(m).seriesIndex=e.seriesIndex,Ll(m,E,I,j)}var F=function(e){n._changePolyState(e)};a.eachItemGraphicEl((function(e){e&&(e.onHoverStateChange=F)})),this._polyline.onHoverStateChange=F,this._data=a,this._coordSys=i,this._stackedOnPoints=w,this._points=c,this._step=T,this._valueOrigin=b,e.get("triggerLineEvent")&&(this.packEventData(e,p),m&&this.packEventData(e,m))},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,r,n){var i=e.getData(),o=Di(i,n);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 _S(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 Gg.prototype.highlight.call(this,e,t,r,n)},t.prototype.downplay=function(e,t,r,n){var i=e.getData(),o=Di(i,n);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 Gg.prototype.downplay.call(this,e,t,r,n)},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 YS({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(t),this._polyline=t,t},t.prototype._newPolygon=function(e,t){var r=this._polygon;return r&&this._lineGroup.remove(r),r=new zS({shape:{points:e,stackedOnPoints:t},segmentIgnoreThreshold:2}),this._lineGroup.add(r),this._polygon=r,r},t.prototype._initSymbolLabelAnimation=function(e,t,r){var n,i,o=t.getBaseAxis(),a=o.inverse;"cartesian2d"===t.type?(n=o.isHorizontal(),i=!1):"polar"===t.type&&(n="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(r)if(i){var g=r,v=t.pointToCoord(h);n?(f=g.startAngle,p=g.endAngle,m=-v[1]/180*Math.PI):(f=g.r0,p=g.r,m=v[0])}else{var y=r;n?(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,r){var n=e.getModel("endLabel");if(aM(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=nM(a);l>=0&&(tu(o,ru(e,"endLabel"),{inheritColor:r,labelFetcher:e,labelDataIndex:l,defaultText:function(e,t,r){return null!=r?vS(i,r):gS(i,e)},enableTextSetter:!0},lM(n,t)),o.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,t,r,n,i,o,a){var s=this._endLabel,l=this._polyline;if(s){e<1&&null==n.originalX&&(n.originalX=s.x,n.originalY=s.y);var u=r.getLayout("points"),c=r.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=oM(u,y,w),k=x.range,S=k[1]-k[0],M=void 0;if(S>=1){if(S>1&&!d){var C=iM(u,k[0]);s.attr({x:C[0]+b,y:C[1]+_}),i&&(M=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&&(M=Vi(r,h,T,O,x.t))}n.lastFrameIndex=k[0]}else{var L=1===e||n.lastFrameIndex>0?k[0]:0;C=iM(u,L);i&&(M=c.getRawValue(L)),s.attr({x:C[0]+b,y:C[1]+_})}if(i){var A=hu(s);"function"===typeof A.setLabelText&&A.setLabelText(M)}}},t.prototype._doUpdateAnimation=function(e,t,r,n,i,o,a){var s=this._polyline,l=this._polygon,u=e.hostModel,c=IS(this._data,e,this._stackedOnPoints,t,this._coordSys,r,this._valueOrigin,o),d=c.current,h=c.stackedOnCurrent,f=c.next,p=c.stackedOnNext;if(i&&(d=ZS(c.current,r,i,a),h=ZS(c.stackedOnCurrent,r,i,a),f=ZS(c.next,r,i,a),p=ZS(c.stackedOnNext,r,i,a)),qS(d,f)>3e3||l&&qS(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(),Ul(s,m,u),l&&(l.setShape({points:d,stackedOnPoints:h}),l.stopAnimation(),Ul(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[r]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,r=0;rt&&(t=o,r=i)}return isFinite(r)?r:NaN},nearest:function(e){return e[0]}},fM=function(e){return Math.round(e.length/2)};function pM(e){return{seriesType:e,reset:function(e,t,r){var n=e.getData(),i=e.get("sampling"),o=e.coordinateSystem,a=n.count();if(a>10&&"cartesian2d"===o.type&&i){var s=o.getBaseAxis(),u=o.getOtherAxis(s),c=s.getExtent(),d=r.getDevicePixelRatio(),h=Math.abs(c[1]-c[0])*(d||1),f=Math.round(a/h);if(isFinite(f)&&f>1){"lttb"===i&&e.setData(n.lttbDownSample(n.mapDimension(u.dim),1/f));var p=void 0;Object(l["C"])(i)?p=hM[i]:Object(l["w"])(i)&&(p=i),p&&e.setData(n.downSample(n.mapDimension(u.dim),1/f,p,fM))}}}}}function mM(e){e.registerChartView(cM),e.registerSeriesModel(mS),e.registerLayout(dM("line",!0)),e.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),r=e.getModel("lineStyle").getLineStyle();r&&!r.stroke&&(r.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",r)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,pM("line"))}var gM="__ec_stack_";function vM(e){return e.get("stack")||gM+e.seriesIndex}function yM(e){return e.dim+e.index}function bM(e){var t=[],r=e.axis,n="axis0";if("category"===r.type){for(var i=r.getBandWidth(),o=0;o0&&(o=null===o?s:Math.min(o,s))}r[n]=o}}return r}function xM(e){var t=wM(e),r=[];return Object(l["k"])(e,(function(e){var n,i=e.coordinateSystem,o=i.getBaseAxis(),a=o.getExtent();if("category"===o.type)n=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]);n=l?u/d*l:u}else{var h=e.getData();n=Math.abs(a[1]-a[0])/h.count()}var f=Bn(e.get("barWidth"),n),p=Bn(e.get("barMaxWidth"),n),m=Bn(e.get("barMinWidth")||(OM(e)?.5:1),n),g=e.get("barGap"),v=e.get("barCategoryGap");r.push({bandWidth:n,barWidth:f,barMaxWidth:p,barMinWidth:m,barGap:g,barCategoryGap:v,axisKey:yM(o),stackId:vM(e)})})),kM(r)}function kM(e){var t={};Object(l["k"])(e,(function(e,r){var n=e.axisKey,i=e.bandWidth,o=t[n]||{bandWidth:i,remainedWidth:i,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},a=o.stacks;t[n]=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 r={};return Object(l["k"])(t,(function(e,t){r[t]={};var n=e.stacks,i=e.bandWidth,o=e.categoryGap;if(null==o){var a=Object(l["F"])(n).length;o=Math.max(35-4*a,15)+"%"}var s=Bn(o,i),u=Bn(e.gap,1),c=e.remainedWidth,d=e.autoWidthCount,h=(c-s)/(d+(d-1)*u);h=Math.max(h,0),Object(l["k"])(n,(function(e){var t=e.maxWidth,r=e.minWidth;if(e.width){n=e.width;t&&(n=Math.min(n,t)),r&&(n=Math.max(n,r)),e.width=n,c-=n+u*n,d--}else{var n=h;t&&tn&&(n=r),n!==h&&(e.width=n,c-=n+u*n,d--)}})),h=(c-s)/(d+(d-1)*u),h=Math.max(h,0);var f,p=0;Object(l["k"])(n,(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"])(n,(function(e,n){r[t][n]=r[t][n]||{bandWidth:i,offset:m,width:e.width},m+=e.width*(1+u)}))})),r}function SM(e,t,r){if(e&&t){var n=e[yM(t)];return null!=n&&null!=r?n[vM(r)]:n}}function MM(e,t){var r=_M(e,t),n=xM(r);Object(l["k"])(r,(function(e){var t=e.getData(),r=e.coordinateSystem,i=r.getBaseAxis(),o=vM(e),a=n[yM(i)][o],s=a.offset,l=a.width;t.setLayout({bandWidth:a.bandWidth,offset:s,size:l})}))}function CM(e){return{seriesType:e,plan:Tp(),reset:function(e){if(TM(e)){var t=e.getData(),r=e.coordinateSystem,n=r.getBaseAxis(),i=r.getOtherAxis(n),o=t.getDimensionIndex(t.mapDimension(i.dim)),a=t.getDimensionIndex(t.mapDimension(n.dim)),s=e.get("showBackground",!0),l=t.mapDimension(i.dim),u=t.getCalculationInfo("stackResultDimension"),c=aS(t,l)&&!!t.getCalculationInfo("stackedOnSeries"),d=i.isHorizontal(),h=LM(n,i),f=OM(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 n,i=e.count,l=f&&DS(3*i),u=f&&s&&DS(3*i),y=f&&DS(i),b=r.master.getRect(),_=d?b.width:b.height,w=t.getStore(),x=0;while(null!=(n=e.next())){var k=w.get(c?m:o,n),S=w.get(a,n),M=h,C=void 0;c&&(C=+k-w.get(o,n));var T=void 0,O=void 0,L=void 0,A=void 0;if(d){var D=r.dataToPoint([k,S]);if(c){var E=r.dataToPoint([C,S]);M=E[0]}T=M,O=D[1]+v,L=D[0]-M,A=g,Math.abs(L)s){c=(f+u)/2;break}1===h&&(d=p-n[0].tickValue)}null==c&&(u?u&&(c=n[n.length-1].coord):c=n[0].coord),o[r]=e.toGlobalCoord(c)}}));else{var a=this.getData(),s=a.getLayout("offset"),u=a.getLayout("size"),c=n.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(AM);var DM=AM,EM=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return a(t,e),t.prototype.getInitialData=function(){return fS(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,r){return r.rect(t.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=Eu(DM.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}(DM),IM=EM,jM=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}(),PM=function(e){function t(t){var r=e.call(this,t)||this;return r.type="sausage",r}return a(t,e),t.prototype.getDefaultShape=function(){return new jM},t.prototype.buildPath=function(e,t){var r=t.cx,n=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 YM(e,t,r){return t*Math.sin(e)*(r?-1:1)}function FM(e,t,r){return t*Math.cos(e)*(r?1:-1)}function zM(e,t,r){var n=e.get("borderRadius");if(null==n)return r?{cornerRadius:0}:null;Object(l["t"])(n)||(n=[n,n,n,n]);var i=Math.abs(t.r||0-t.r0||0);return{cornerRadius:Object(l["H"])(n,(function(e){return an(e,i)}))}}var HM=Math.max,VM=Math.min;function UM(e,t){var r=e.getArea&&e.getArea();if(WS(e,"cartesian2d")){var n=e.getBaseAxis();if("category"!==n.type||!n.onBand){var i=t.getLayout("bandWidth");n.isHorizontal()?(r.x-=i,r.width+=2*i):(r.y-=i,r.height+=2*i)}}return r}var WM=function(e){function t(){var r=e.call(this)||this;return r.type=t.type,r._isFirstFrame=!0,r}return a(t,e),t.prototype.render=function(e,t,r,n){this._model=e,this._removeOnRenderedListener(r),this._updateDrawMode(e);var i=e.get("coordinateSystem");("cartesian2d"===i||"polar"===i)&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,t,r):this._renderNormal(e,t,r,n))},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){Bg(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,r,n){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=qM(e,l);d&&this._enableRealtimeSort(d,a,r);var h=e.get("clip",!0)||d,f=UM(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,_=n&&n.isInitSort,w=n&&"changeAxisOrder"===n.type;function x(e){var t=eC[l.type](a,e),r=dC(l,i,t);return r.useStyle(g.getItemStyle()),"cartesian2d"===l.type?r.setShape("r",v):r.setShape("cornerRadius",v),y[e]=r,r}a.diff(s).add((function(t){var r=a.getItemModel(t),n=eC[l.type](a,t,r);if(m&&x(t),a.hasValue(t)&&QM[l.type](n)){var s=!1;h&&(s=$M[l.type](f,n));var g=GM[l.type](e,a,t,n,i,c,u.model,!1,p);d&&(g.forceLabelAnimation=!0),nC(g,a,t,r,n,e,i,"polar"===l.type),_?g.attr({shape:n}):d?XM(d,c,g,n,t,i,!1,!1):Wl(g,{shape:n},e,t),a.setItemGraphicEl(t,g),o.add(g),g.ignore=s}})).update((function(t,r){var n=a.getItemModel(t),k=eC[l.type](a,t,n);if(m){var S=void 0;0===b.length?S=x(r):(S=b[r],S.useStyle(g.getItemStyle()),"cartesian2d"===l.type?S.setShape("r",v):S.setShape("cornerRadius",v),y[t]=S);var M=eC[l.type](a,t),C=cC(i,M,l);Ul(S,{shape:C},c,t)}var T=s.getItemGraphicEl(r);if(a.hasValue(t)&&QM[l.type](k)){var O=!1;if(h&&(O=$M[l.type](f,k),O&&o.remove(T)),T?Kl(T):T=GM[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 nC(T,a,t,n,k,e,i,"polar"===l.type);_?T.attr({shape:k}):d?XM(d,c,T,k,t,i,!0,w):Ul(T,{shape:k},e,t,null),a.setItemGraphicEl(t,T),T.ignore=O,o.add(T)}else o.remove(T)})).remove((function(t){var r=s.getItemGraphicEl(t);r&&Xl(r,e,t)})).execute();var k=this._backgroundGroup||(this._backgroundGroup=new kn);k.removeAll();for(var S=0;So)return!0;o=u}return!1},t.prototype._isOrderDifferentInView=function(e,t){for(var r=t.scale,n=r.getExtent(),i=Math.max(0,n[0]),o=Math.min(n[1],r.getOrdinalMeta().categories.length-1);i<=o;++i)if(e.ordinalNumbers[i]!==r.getRawOrdinalNumber(i))return!0},t.prototype._updateSortWithinSameData=function(e,t,r,n){if(this._isOrderChangedWithinSameData(e,t,r)){var i=this._dataSort(e,r,t);this._isOrderDifferentInView(i,r)&&(this._removeOnRenderedListener(n),n.dispatchAction({type:"changeAxisOrder",componentType:r.dim+"Axis",axisId:r.index,sortInfo:i}))}},t.prototype._dispatchInitSort=function(e,t,r){var n=t.baseAxis,i=this._dataSort(e,n,(function(r){return e.get(e.mapDimension(t.otherAxis.dim),r)}));r.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",isInitSort:!0,axisId:n.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,r=this._data;e&&e.isAnimationEnabled()&&r&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],r.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}(Gg),$M={cartesian2d:function(e,t){var r=t.width<0?-1:1,n=t.height<0?-1:1;r<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height);var i=e.x+e.width,o=e.y+e.height,a=HM(t.x,e.x),s=VM(t.x+t.width,i),l=HM(t.y,e.y),u=VM(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,r<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height),c||d},polar:function(e,t){var r=t.r0<=t.r?1:-1;if(r<0){var n=t.r;t.r=t.r0,t.r0=n}var i=VM(t.r,e.r),o=HM(t.r0,e.r0);t.r=i,t.r0=o;var a=i-o<0;if(r<0){n=t.r;t.r=t.r0,t.r0=n}return a}},GM={cartesian2d:function(e,t,r,n,i,o,a,s,u){var c=new ls({shape:Object(l["m"])({},n),z2:1});if(c.__dataIndex=r,c.name="item",o){var d=c.shape,h=i?"height":"width";d[h]=0}return c},polar:function(e,t,r,n,i,o,a,s,l){var u=!i&&l?RM:_m,c=new u({shape:n,z2:1});c.name="item";var d=rC(i);if(c.calculateTextPosition=NM(d,{isRoundCap:u===RM}),o){var h=c.shape,f=i?"r":"endAngle",p={};h[f]=i?n.r0:n.startAngle,p[f]=n[f],(s?Ul:Wl)(c,{shape:p},o)}return c}};function qM(e,t){var r=e.get("realtimeSort",!0),n=t.getBaseAxis();if(r&&"category"===n.type&&"cartesian2d"===t.type)return{baseAxis:n,otherAxis:t.getOtherAxis(n)}}function XM(e,t,r,n,i,o,a,s){var l,u;o?(u={x:n.x,width:n.width},l={y:n.y,height:n.height}):(u={y:n.y,height:n.height},l={x:n.x,width:n.width}),s||(a?Ul:Wl)(r,{shape:l},t,i,null);var c=t?e.baseAxis.model:null;(a?Ul:Wl)(r,{shape:u},c,i)}function KM(e,t){for(var r=0;r0?1:-1,a=n.height>0?1:-1;return{x:n.x+o*i/2,y:n.y+a*i/2,width:n.width-o*i,height:n.height-a*i}},polar:function(e,t,r){var n=e.getItemLayout(t);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function tC(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 nC(e,t,r,n,i,o,a,s){var u=t.getItemVisual(r,"style");if(s){if(!o.get("roundCap")){var c=e.shape,d=zM(n.getModel("itemStyle"),c,!0);Object(l["m"])(c,d),e.setShape(c)}}else{var h=n.get(["itemStyle","borderRadius"])||0;e.setShape("r",h)}e.useStyle(u);var f=n.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=ru(n);tu(e,m,{labelFetcher:o,labelDataIndex:r,defaultText:gS(o.getData(),r),inheritColor:u.fill,defaultOpacity:u.opacity,defaultOutsidePosition:p});var g=e.getTextContent();if(s&&g){var v=n.get(["label","position"]);e.textConfig.inside="middle"===v||null,BM(e,"outside"===v?p:v,rC(a),n.get(["label","rotate"]))}fu(g,m,o.getRawValue(r),(function(e){return vS(t,e)}));var y=n.getModel(["emphasis"]);Ll(e,y.get("focus"),y.get("blurScope"),y.get("disabled")),Il(e,n),tC(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 iC(e,t){var r=e.get(["itemStyle","borderColor"]);if(!r||"none"===r)return 0;var n=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(n,i,o)}var oC=function(){function e(){}return e}(),aC=function(e){function t(t){var r=e.call(this,t)||this;return r.type="largeBar",r}return a(t,e),t.prototype.getDefaultShape=function(){return new oC},t.prototype.buildPath=function(e,t){for(var r=t.points,n=this.baseDimIdx,i=1-this.baseDimIdx,o=[],a=[],s=this.barWidth,l=0;l=0?r:null}),30,!1);function uC(e,t,r){for(var n=e.baseDimIdx,i=1-n,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]&&r>=s[1]&&r<=s[1]+l[1])return a[c]}return-1}function cC(e,t,r){if(WS(r,"cartesian2d")){var n=t,i=r.getArea();return{x:e?n.x:i.x,y:e?i.y:n.y,width:e?n.width:i.width,height:e?i.height:n.height}}i=r.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 dC(e,t,r){var n="polar"===e.type?_m:ls;return new n({shape:cC(t,r,e),silent:!0,z2:0})}var hC=WM;function fC(e){e.registerChartView(hC),e.registerSeriesModel(IM),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,l["h"](MM,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,CM("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,pM("bar")),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},(function(e,t){var r=e.componentType||"series";t.eachComponent({mainType:r,query:e},(function(t){e.sortInfo&&t.axis.setCategorySortInfo(e.sortInfo)}))}))}var pC=2*Math.PI,mC=Math.PI/180;function gC(e,t){return Fc(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function vC(e,t){var r=gC(e,t),n=e.get("center"),i=e.get("radius");l["t"](i)||(i=[0,i]);var o,a,s=Bn(r.width,t.getWidth()),u=Bn(r.height,t.getHeight()),c=Math.min(s,u),d=Bn(i[0],c/2),h=Bn(i[1],c/2),f=e.coordinateSystem;if(f){var p=f.dataToPoint(n);o=p[0]||0,a=p[1]||0}else l["t"](n)||(n=[n,n]),o=Bn(n[0],s)+r.x,a=Bn(n[1],u)+r.y;return{cx:o,cy:a,r0:d,r:h}}function yC(e,t,r){t.eachSeriesByType(e,(function(e){var t=e.getData(),n=t.mapDimension("value"),i=gC(e,r),o=vC(e,r),a=o.cx,s=o.cy,l=o.r,u=o.r0,c=-e.get("startAngle")*mC,d=e.get("endAngle"),h=e.get("padAngle")*mC;d="auto"===d?c-pC:-d*mC;var f=e.get("minAngle")*mC,p=f+h,m=0;t.each(n,(function(e){!isNaN(e)&&m++}));var g=t.getSum(n),v=Math.PI/(g||m)*2,y=e.get("clockwise"),b=e.get("roseType"),_=e.get("stillShowZeroSum"),w=t.getDataExtent(n);w[0]=0;var x=y?1:-1,k=[c,d],S=x*h/2;va(k,!y),c=k[0],d=k[1];var M=Math.abs(d-c),C=M,T=0,O=c;if(t.setLayout({viewRect:i,r:l}),t.each(n,(function(e,r){var n;if(isNaN(e))t.setItemLayout(r,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:y,cx:a,cy:s,r0:u,r:b?NaN:l});else{n="area"!==b?0===g&&_?v:e*v:M/m,nn?(o=O+x*n/2,c=o):(o=O+S,c=i-S),t.setItemLayout(r,{angle:n,startAngle:o,endAngle:c,clockwise:y,cx:a,cy:s,r0:u,r:b?Nn(e,w,[u,l]):l}),O=i}})),Cr?a:o,c=Math.abs(l.label.y-r);if(c>=u.maxY){var d=l.label.x-t-l.len2*i,h=n+l.len,p=Math.abs(d)e.unconstrainedWidth?null:f:null;n.setStyle("width",p)}var m=n.getBoundingRect();o.width=m.width;var g=(n.style.margin||0)+2.1;o.height=m.height+g,o.y-=(o.height-d)/2}}}function SC(e){return"center"===e.position}function MC(e){var t,r,n=e.getData(),i=[],o=!1,a=(e.get("minShowLabelAngle")||0)*_C,s=n.getLayout("viewRect"),u=n.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}n.each((function(e){var s=n.getItemGraphicEl(e),h=s.shape,f=s.getTextContent(),g=s.getTextGuideLine(),v=n.getItemModel(e),y=v.getModel("label"),b=y.get("position")||v.get(["emphasis","label","position"]),_=y.get("distanceToLabelLine"),w=y.get("alignTo"),x=Bn(y.get("edgeDistance"),c),k=y.get("bleedMargin"),S=v.getModel("labelLine"),M=S.get("length");M=Bn(M,c);var C=S.get("length2");if(C=Bn(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 U=E<0?-D+z:-D;H=U}else if("tangential"===V&&"outside"!==b&&"outer"!==b){var W=Math.atan2(E,I);W<0&&(W=2*z+W);var $=I>0;$&&(W=z+W),H=W-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:M,len2:C,minTurnAngle:S.get("minTurnAngle"),maxSurfaceAngle:S.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")&&xC(i,t,r,u,c,f,d,h);for(var g=0;g0){for(var l=o.getItemLayout(0),u=1;isNaN(l&&l.startAngle)&&u=n.r0}},t.type="pie",t}(Gg),OC=TC;function LC(e,t,r){t=Object(l["t"])(t)&&{coordDimensions:t}||Object(l["m"])({encodeDefine:e.getEncode()},t);var n=e.getSource(),i=Kk(n,t).dimensions,o=new Xk(i,e);return o.initData(n,r),o}var AC=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 r=this._getDataWithEncodedVisual();return r.getItemVisual(e,t)},e}(),DC=AC,EC=Ei(),IC=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 DC(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 LC(this,{coordDimensions:["value"],encodeDefaulter:l["h"](fd,this)})},t.prototype.getDataParams=function(t){var r=this.getData(),n=EC(r),i=n.seats;if(!i){var o=[];r.each(r.mapDimension("value"),(function(e){o.push(e)})),i=n.seats=Un(o,r.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,r=e.emphasis.labelLine;t.show=t.show&&e.label.show,r.show=r.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),jC=IC;function PC(e){return{seriesType:e,reset:function(e,t){var r=e.getData();r.filterSelf((function(e){var t=r.mapDimension("value"),n=r.get(t,e);return!(Object(l["z"])(n)&&!isNaN(n)&&n<0)}))}}}function RC(e){e.registerChartView(OC),e.registerSeriesModel(jC),Vv("pie",e.registerAction),e.registerLayout(Object(l["h"])(yC,"pie")),e.registerProcessor(bC("pie")),e.registerProcessor(PC("pie"))}var NC=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}return a(t,e),t.prototype.getInitialData=function(e,t){return fS(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,r){return r.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),BC=NC,YC=4,FC=function(){function e(){}return e}(),zC=function(e){function t(t){var r=e.call(this,t)||this;return r._off=0,r.hoverDataIdx=-1,r}return a(t,e),t.prototype.getDefaultShape=function(){return new FC},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(e,t){var r,n=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=n[l]-o/2,c=n[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 r=this.transformCoordToLocal(e,t),n=this.getBoundingRect();if(e=r[0],t=r[1],n.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,r=t.points,n=t.size,i=n[0],o=n[1],a=1/0,s=1/0,l=-1/0,u=-1/0,c=0;c=0&&(l.dataIndex=r+(e.startIndex||0))}))},e.prototype.remove=function(){this._clear()},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),VC=HC,UC=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return a(t,e),t.prototype.render=function(e,t,r){var n=e.getData(),i=this._updateSymbolDraw(n,e);i.updateData(n,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,r){var n=e.getData(),i=this._updateSymbolDraw(n,e);i.incrementalPrepareUpdate(n),this._finished=!1},t.prototype.incrementalRender=function(e,t,r){this._symbolDraw.incrementalUpdate(e,t.getData(),{clipShape:this._getClipShape(t)}),this._finished=e.end===t.getData().count()},t.prototype.updateTransform=function(e,t,r){var n=e.getData();if(this.group.dirty(),!this._finished||n.count()>1e4)return{update:!0};var i=dM("").reset(e,t,r);i.progress&&i.progress({start:0,end:n.count(),count:n.count()},n),this._symbolDraw.updateLayout(n)},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 r=this._symbolDraw,n=t.pipelineContext,i=n.large;return r&&i===this._isLargeDraw||(r&&r.remove(),r=this._symbolDraw=i?new VC:new MS,this._isLargeDraw=i,this.group.removeAll()),this.group.add(r.group),r},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(Gg),WC=UC,$C=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),GC=$C,qC=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},e.prototype.getCoordSysModel=function(){},e}(),XC=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"](XC,qC);var KC={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,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},ZC=l["I"]({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},KC),JC=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}}},KC),QC=l["I"]({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},JC),eT=l["i"]({logBase:10},JC),tT={category:ZC,value:JC,time:QC,log:eT},rT=0,nT=function(){function e(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++rT}return e.createByAxisModel=function(t){var r=t.option,n=r.data,i=n&&Object(l["H"])(n,iT);return new e({categories:i,needCollect:!i,deduplication:!1!==r.dedplication})},e.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},e.prototype.parseAndCollect=function(e){var t,r=this._needCollect;if(!Object(l["C"])(e)&&!r)return e;if(r&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var n=this._getOrCreateMap();return t=n.get(e),null==t&&(r?(t=this.categories.length,this.categories[t]=e,n.set(e,t)):t=NaN),t},e.prototype._getOrCreateMap=function(){return this._map||(this._map=Object(l["f"])(this.categories))},e}();function iT(e){return Object(l["A"])(e)&&null!=e.value?e.value:e+""}var oT=nT,aT={value:1,category:1,time:1,log:1};function sT(e,t,r,n){Object(l["k"])(aT,(function(i,o){var s=Object(l["I"])(Object(l["I"])({},tT[o],!0),n,!0),u=function(e){function r(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t+"Axis."+o,r}return a(r,e),r.prototype.mergeDefaultAndTheme=function(e,t){var r=Vc(this),n=r?Wc(e):{},i=t.getTheme();Object(l["I"])(e,i.get(o+"Axis")),Object(l["I"])(e,this.getDefaultOption()),e.type=lT(e),r&&Uc(e,n,r)},r.prototype.optionUpdated=function(){var e=this.option;"category"===e.type&&(this.__ordinalMeta=oT.createByAxisModel(this))},r.prototype.getCategories=function(e){var t=this.option;if("category"===t.type)return e?t.data:this.__ordinalMeta.categories},r.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},r.type=t+"Axis."+o,r.defaultOption=s,r}(r);e.registerComponentModel(u)})),e.registerSubTypeDefaulter(t+"Axis",lT)}function lT(e){return e.type||(e.data?"category":"value")}var uT=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 r=this._extent;isNaN(e)||(r[0]=e),isNaN(t)||(r[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}();no(uT);var cT=uT;function dT(e){return"interval"===e.type||"log"===e.type}function hT(e,t,r,n){var i={},o=e[1]-e[0],a=i.interval=Qn(o/t,!0);null!=r&&an&&(a=i.interval=n);var s=i.intervalPrecision=pT(a),l=i.niceTickExtent=[Yn(Math.ceil(e[0]/a)*a,s),Yn(Math.floor(e[1]/a)*a,s)];return gT(l,e),i}function fT(e){var t=Math.pow(10,Jn(e)),r=e/t;return r?2===r?r=3:3===r?r=5:r*=2:r=1,Yn(r*t)}function pT(e){return zn(e)+2}function mT(e,t,r){e[t]=Math.max(Math.min(e[t],r[1]),r[0])}function gT(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),mT(e,0,t),mT(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function vT(e,t){return e>=t[0]&&e<=t[1]}function yT(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function bT(e,t){return e*(t[1]-t[0])+t[0]}var _T=function(e){function t(t){var r=e.call(this,t)||this;r.type="ordinal";var n=r.getSetting("ordinalMeta");return n||(n=new oT({})),Object(l["t"])(n)&&(n=new oT({categories:Object(l["H"])(n,(function(e){return Object(l["A"])(e)?e.value:e}))})),r._ordinalMeta=n,r._extent=r.getSetting("extent")||[0,n.categories.length-1],r}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),vT(e,this._extent)&&null!=this._ordinalMeta.categories[e]},t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),yT(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(bT(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){var e=[],t=this._extent,r=t[0];while(r<=t[1])e.push({value:r}),r++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(null!=e){for(var t=e.ordinalNumbers,r=this._ordinalNumbersByTick=[],n=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}(cT);cT.registerClass(_T);var wT=_T,xT=Yn,kT=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 vT(e,this._extent)},t.prototype.normalize=function(e){return yT(e,this._extent)},t.prototype.scale=function(e){return bT(e,this._extent)},t.prototype.setExtent=function(e,t){var r=this._extent;isNaN(e)||(r[0]=parseFloat(e)),isNaN(t)||(r[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=pT(e)},t.prototype.getTicks=function(e){var t=this._interval,r=this._extent,n=this._niceExtent,i=this._intervalPrecision,o=[];if(!t)return o;var a=1e4;r[0]a)return[]}var l=o.length?o[o.length-1].value:n[1];return r[1]>l&&(e?o.push({value:xT(l+t,i)}):o.push({value:r[1]})),o},t.prototype.getMinorTicks=function(e){for(var t=this.getTicks(!0),r=[],n=this.getExtent(),i=1;in[0]&&d>>1;e[i][1]r&&(this._approxInterval=r);var o=TT.length,a=Math.min(MT(TT,this._approxInterval,0,o),o-1);this._interval=TT[a][1],this._minLevelUnit=TT[Math.max(a-1,0)][0]},t.prototype.parse=function(e){return Object(l["z"])(e)?e:+Kn(e)},t.prototype.contain=function(e){return vT(this.parse(e),this._extent)},t.prototype.normalize=function(e){return yT(this.parse(e),this._extent)},t.prototype.scale=function(e){return bT(e,this._extent)},t.type="time",t}(ST),TT=[["second",Wu],["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 OT(e,t,r,n){var i=Kn(t),o=Kn(r),a=function(e){return lc(i,e,n)===lc(o,e,n)},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 LT(e,t){return e/=qu,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function AT(e){var t=30*qu;return e/=t,e>6?6:e>3?3:e>2?2:1}function DT(e){return e/=Gu,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function ET(e,t){return e/=t?$u:Wu,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function IT(e){return Qn(e,!0)}function jT(e,t,r){var n=new Date(e);switch(rc(t)){case"year":case"month":n[vc(r)](0);case"day":n[yc(r)](1);case"hour":n[bc(r)](0);case"minute":n[_c(r)](0);case"second":n[wc(r)](0),n[xc(r)](0)}return n.getTime()}function PT(e,t,r,n){var i=1e4,o=ec,a=0;function s(e,t,r,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=n[0]&&b<=n[1]&&h++)}var _=(n[1]-n[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>=n[0]&&e.value<=n[1]&&!e.notAdd}))})),(function(e){return e.length>0})),x=[],k=w.length-1;for(p=0;p0)n*=10;var o=[Yn(zT(t[0]/n)*n),Yn(FT(t[1]/n)*n)];this._interval=n,this._niceExtent=o}},t.prototype.calcNiceExtent=function(e){BT.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=VT(e)/VT(this.base),vT(e,this._extent)},t.prototype.normalize=function(e){return e=VT(e)/VT(this.base),yT(e,this._extent)},t.prototype.scale=function(e){return e=bT(e,this._extent),HT(this.base,e)},t.type="log",t}(cT),WT=UT.prototype;function $T(e,t){return YT(e,zn(t))}WT.getMinorTicks=BT.getMinorTicks,WT.getLabel=BT.getLabel,cT.registerClass(UT);var GT=UT,qT=function(){function e(e,t,r){this._prepareParams(e,t,r)}return e.prototype._prepareParams=function(e,t,r){r[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[KT[e]]=t},e.prototype.setDeterminedMinMax=function(e,t){var r=XT[e];this[r]=t},e.prototype.freeze=function(){this.frozen=!0},e}(),XT={min:"_determinedMin",max:"_determinedMax"},KT={min:"_dataMin",max:"_dataMax"};function ZT(e,t,r){var n=e.rawExtentInfo;return n||(n=new qT(e,t,r),e.rawExtentInfo=n,n)}function JT(e,t){return null==t?null:Object(l["l"])(t)?NaN:e.parse(t)}function QT(e,t){var r=e.type,n=ZT(e,t,e.getExtent()).calculate();e.setBlank(n.isBlank);var i=n.min,o=n.max,a=t.ecModel;if(a&&"time"===r){var s=_M("bar",a),u=!1;if(l["k"](s,(function(e){u=u||e.getBaseAxis()===t.axis})),u){var c=xM(s),d=eO(i,o,t,c);i=d.min,o=d.max}}return{extent:[i,o],fixMin:n.minFixed,fixMax:n.maxFixed}}function eO(e,t,r,n){var i=r.axis.getExtent(),o=i[1]-i[0],a=SM(n,r.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 tO(e,t){var r=t,n=QT(e,r),i=n.extent,o=r.get("splitNumber");e instanceof GT&&(e.base=r.get("logBase"));var a=e.type,s=r.get("interval"),l="interval"===a||"time"===a;e.setExtent(i[0],i[1]),e.calcNiceExtent({splitNumber:o,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?r.get("minInterval"):null,maxInterval:l?r.get("maxInterval"):null}),null!=s&&e.setInterval&&e.setInterval(s)}function rO(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new wT({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new RT({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(cT.getClass(t)||ST)}}function nO(e){var t=e.scale.getExtent(),r=t[0],n=t[1];return!(r>0&&n>0||r<0&&n<0)}function iO(e){var t=e.getLabelModel().get("formatter"),r="category"===e.type?e.scale.getExtent()[0]:null;return"time"===e.scale.type?function(t){return function(r,n){return e.scale.getFormattedLabel(r,n,t)}}(t):l["C"](t)?function(t){return function(r){var n=e.scale.getLabel(r),i=t.replace("{value}",null!=n?n:"");return i}}(t):l["w"](t)?function(t){return function(n,i){return null!=r&&(i=n.value-r),t(oO(e,n),i,null!=n.level?{level:n.level}:null)}}(t):function(t){return e.scale.getLabel(t)}}function oO(e,t){return"category"===e.type?e.scale.getLabel(t):t.value}function aO(e){var t=e.model,r=e.scale;if(t.get(["axisLabel","show"])&&!r.isBlank()){var n,i,o=r.getExtent();r instanceof wT?i=r.count():(n=r.getTicks(),i=n.length);var a,s=e.getLabelModel(),l=iO(e),u=1;i>40&&(u=Math.ceil(i/40));for(var c=0;ce[1]&&(e[1]=n[1])}))}var hO=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}(),fO=hO,pO=["x","y"];function mO(e){return"interval"===e.type||"time"===e.type}var gO=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=pO,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(mO(e)&&mO(t)){var r=e.getExtent(),n=t.getExtent(),i=this.dataToPoint([r[0],n[0]]),o=this.dataToPoint([r[1],n[1]]),a=r[1]-r[0],s=n[1]-n[0];if(a&&s){var l=(o[0]-i[0])/a,u=(o[1]-i[1])/s,c=i[0]-r[0]*l,d=i[1]-n[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"),r=this.getAxis("y");return t.contain(t.toLocalCoord(e[0]))&&r.contain(r.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 r=this.dataToPoint(e),n=this.dataToPoint(t),i=this.getArea(),o=new Oe(r[0],r[1],n[0]-r[0],n[1]-r[1]);return i.intersect(o)},t.prototype.dataToPoint=function(e,t,r){r=r||[];var n=e[0],i=e[1];if(this._transform&&null!=n&&isFinite(n)&&null!=i&&isFinite(i))return M(r,e,this._transform);var o=this.getAxis("x"),a=this.getAxis("y");return r[0]=o.toGlobalCoord(o.dataToCoord(n,t)),r[1]=a.toGlobalCoord(a.dataToCoord(i,t)),r},t.prototype.clampData=function(e,t){var r=this.getAxis("x").scale,n=this.getAxis("y").scale,i=r.getExtent(),o=n.getExtent(),a=r.parse(e[0]),s=n.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 r=[];if(this._invTransform)return M(r,e,this._invTransform);var n=this.getAxis("x"),i=this.getAxis("y");return r[0]=n.coordToData(n.toLocalCoord(e[0]),t),r[1]=i.coordToData(i.toLocalCoord(e[1]),t),r},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(),r=this.getAxis("y").getGlobalExtent(),n=Math.min(t[0],t[1])-e,i=Math.min(r[0],r[1])-e,o=Math.max(t[0],t[1])-n+e,a=Math.max(r[0],r[1])-i+e;return new Oe(n,i,o,a)},t}(fO),vO=gO,yO=Ei();function bO(e){return"category"===e.type?wO(e):SO(e)}function _O(e,t){return"category"===e.type?kO(e,t):{ticks:l["H"](e.scale.getTicks(),(function(e){return e.value}))}}function wO(e){var t=e.getLabelModel(),r=xO(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r}function xO(e,t){var r,n,i=MO(e,"labels"),o=lO(t),a=CO(i,o);return a||(l["w"](o)?r=EO(e,o):(n="auto"===o?OO(e):o,r=DO(e,n)),TO(i,o,{labels:r,labelCategoryInterval:n}))}function kO(e,t){var r,n,i=MO(e,"ticks"),o=lO(t),a=CO(i,o);if(a)return a;if(t.get("show")&&!e.scale.isBlank()||(r=[]),l["w"](o))r=EO(e,o,!0);else if("auto"===o){var s=xO(e,e.getLabelModel());n=s.labelCategoryInterval,r=l["H"](s.labels,(function(e){return e.tickValue}))}else n=o,r=DO(e,n,!0);return TO(i,o,{ticks:r,tickCategoryInterval:n})}function SO(e){var t=e.scale.getTicks(),r=iO(e);return{labels:l["H"](t,(function(t,n){return{level:t.level,formattedLabel:r(t,n),rawLabel:e.scale.getLabel(t),tickValue:t.value}}))}}function MO(e,t){return yO(e)[t]||(yO(e)[t]=[])}function CO(e,t){for(var r=0;r40&&(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(n)),d=Math.abs(u*Math.sin(n)),h=0,f=0;l<=o[1];l+=s){var p=0,m=0,g=tn(r({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))),_=yO(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 AO(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 DO(e,t,r){var n=iO(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=uO(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(r?e:{formattedLabel:n(t),rawLabel:i.getLabel(t),tickValue:e})}return f&&p-l!==o[1]&&m(o[1]),s}function EO(e,t,r){var n=e.scale,i=iO(e),o=[];return l["k"](n.getTicks(),(function(e){var a=n.getLabel(e),s=e.value;t(e.value,a)&&o.push(r?s:{formattedLabel:i(e),rawLabel:a,tickValue:s})})),o}var IO=[0,1],jO=function(){function e(e,t,r){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=r||[0,0]}return e.prototype.contain=function(e){var t=this._extent,r=Math.min(t[0],t[1]),n=Math.max(t[0],t[1]);return e>=r&&e<=n},e.prototype.containData=function(e){return this.scale.contain(e)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(e){return Vn(e||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(e,t){var r=this._extent;r[0]=e,r[1]=t},e.prototype.dataToCoord=function(e,t){var r=this._extent,n=this.scale;return e=n.normalize(e),this.onBand&&"ordinal"===n.type&&(r=r.slice(),PO(r,n.count())),Nn(e,IO,r,t)},e.prototype.coordToData=function(e,t){var r=this._extent,n=this.scale;this.onBand&&"ordinal"===n.type&&(r=r.slice(),PO(r,n.count()));var i=Nn(e,r,IO,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(),r=_O(this,t),n=r.ticks,i=Object(l["H"])(n,(function(e){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(e):e),tickValue:e}}),this),o=t.get("alignWithLabel");return RO(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 r=this.scale.getMinorTicks(t),n=Object(l["H"])(r,(function(e){return Object(l["H"])(e,(function(e){return{coord:this.dataToCoord(e),tickValue:e}}),this)}),this);return n},e.prototype.getViewLabels=function(){return bO(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(),r=t[1]-t[0]+(this.onBand?1:0);0===r&&(r=1);var n=Math.abs(e[1]-e[0]);return Math.abs(n)/r},e.prototype.calculateCategoryInterval=function(){return LO(this)},e}();function PO(e,t){var r=e[1]-e[0],n=t,i=r/n/2;e[0]+=i,e[1]-=i}function RO(e,t,r,n){var i=t.length;if(e.onBand&&!r&&i){var o,a,s=e.getExtent();if(1===i)t[0].coord=s[0],o=t[1]={coord:s[1]};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},t.push(o)}var h=s[0]>s[1];f(t[0].coord,s[0])&&(n?t[0].coord=s[0]:t.shift()),n&&f(s[0],t[0].coord)&&t.unshift({coord:s[0]}),f(s[1],o.coord)&&(n?o.coord=s[1]:t.pop()),n&&f(o.coord,s[1])&&t.push({coord:s[1]})}function f(e,t){return e=Yn(e),t=Yn(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}(NO),YO=BO;function FO(e,t,r){r=r||{};var n=e.coordinateSystem,i=t.axis,o={},a=i.getAxesOnZeroOf()[0],s=i.position,u=a?"onZero":s,c=i.dim,d=n.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"](r.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 zO(e){return"cartesian2d"===e.get("coordinateSystem")}function HO(e){var t={xAxisModel:null,yAxisModel:null};return l["k"](t,(function(r,n){var i=n.replace(/Model$/,""),o=e.getReferringComponents(i,Ri).models[0];t[n]=o})),t}var VO=Math.log;function UO(e,t,r){var n=ST.prototype,i=n.getTicks.call(r),o=n.getTicks.call(r,!0),a=i.length-1,s=n.getInterval.call(r),l=QT(e,t),u=l.extent,c=l.fixMin,d=l.fixMax;if("log"===e.type){var h=VO(e.base);u=[VO(u[0])/h,VO(u[1])/h]}e.setExtent(u[0],u[1]),e.calcNiceExtent({splitNumber:a,fixMin:c,fixMax:d});var f=n.getExtent.call(e);c&&(u[0]=f[0]),d&&(u[1]=f[1]);var p=n.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=fT(p),m=u[1]-p*a}else{var v=e.getTicks().length-1;v>a&&(p=fT(p));var y=p*a;g=Math.ceil(u[1]/p)*p,m=Yn(g-y),m<0&&u[0]>=0?(m=0,g=Yn(y)):g>0&&u[1]<=0&&(g=0,m=-Yn(y))}var b=(i[0].value-o[0].value)/s,_=(i[a].value-o[a].value)/s;n.setExtent.call(e,m+p*b,g+p*_),n.setInterval.call(e,p),(b||_)&&n.setNiceExtent.call(e,m+p,g-p)}var WO=function(){function e(e,t,r){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=pO,this._initCartesian(e,t,r),this.model=e}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(e,t){var r=this._axesMap;function n(e){var t,r=Object(l["F"])(e),n=r.length;if(n){for(var i=[],o=n-1;o>=0;o--){var a=+r[o],s=e[a],u=s.model,c=s.scale;dT(c)&&u.get("alignTicks")&&null==u.get("interval")?i.push(s):(tO(c,u),dT(c)&&(t=s))}i.length&&(t||(t=i.pop(),tO(t.scale,t.model)),Object(l["k"])(i,(function(e){UO(e.scale,e.model,t.scale)})))}}this._updateScale(e,this.model),n(r.x),n(r.y);var i={};Object(l["k"])(r.x,(function(e){GO(r,"y",e,i)})),Object(l["k"])(r.y,(function(e){GO(r,"x",e,i)})),this.resize(this.model,t)},e.prototype.resize=function(e,t,r){var n=e.getBoxLayoutParams(),i=!r&&e.get("containLabel"),o=Fc(n,{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(),r=t?[0,o.width]:[0,o.height],n=e.inverse?1:0;e.setExtent(r[n],r[1-n]),XO(e,t?o.x:o.y)}))}s(),i&&(Object(l["k"])(a,(function(e){if(!e.model.get(["axisLabel","inside"])){var t=aO(e);if(t){var r=e.isHorizontal()?"height":"width",n=e.model.get(["axisLabel","margin"]);o[r]-=t[r]+n,"top"===e.position?o.y+=t.height+n:"left"===e.position&&(o.x+=t.width+n)}}})),s()),Object(l["k"])(this._coordsList,(function(e){e.calcAffineTransform()}))},e.prototype.getAxis=function(e,t){var r=this._axesMap[e];if(null!=r)return r[t||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(e,t){if(null!=e&&null!=t){var r="x"+e+"y"+t;return this._coordsMap[r]}Object(l["A"])(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var n=0,i=this._coordsList;n0?"top":"bottom",n="center"):qn(o-ZO)?(i=r>0?"bottom":"top",n="center"):(i="middle",n=o>0&&o0?"right":"left":r>0?"left":"right"),{rotation:o,textAlign:n,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}(),QO={axisLine:function(e,t,r,n){var i=t.get(["axisLine","show"]);if("auto"===i&&e.handleAutoShown&&(i=e.handleAutoShown("axisLine")),i){var o=t.axis.getExtent(),a=n.transform,s=[o[0],0],u=[o[1],0],c=s[0]>u[0];a&&(M(s,s,a),M(u,u,a));var d=Object(l["m"])({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new Pm({shape:{x1:s[0],y1:s[1],x2:u[0],y2:u[1]},style:d,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});_g(h.shape,h.style.lineWidth),h.anid="line",r.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=ly(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,n){if("none"!==f[n]&&null!=f[n]){var i=ay(f[n],-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}),r.add(i)}}))}}},axisTickLabel:function(e,t,r,n){var i=aL(r,n,t,e),o=lL(r,n,t,e);if(tL(t,o,i),sL(r,n,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var a=sw(Object(l["H"])(o,(function(e){return{label:e,priority:e.z2,defaultAttr:{ignore:e.ignore}}})));dw(a)}},axisName:function(e,t,r,n){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,iL(s)?e.labelOffset+u*d:0],m=t.get("nameRotate");null!=m&&(m=m*ZO/180),iL(s)?o=JO.innerTextLayout(e.rotation,null!=m?m:e.rotation,u):(o=eL(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:JO.isLabelSilent(t),style:nu(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(Rg({el:_,componentModel:t,itemName:i}),_.__fullText=i,_.anid="name",t.get("triggerEvent")){var w=JO.makeAxisEventDataBase(t);w.targetType="axisName",w.name=i,Ts(_).eventData=w}n.add(_),_.updateTransform(),r.add(_),_.decomposeTransform()}}};function eL(e,t,r,n){var i,o,a=Gn(r-e),s=n[0]>n[1],l="start"===t&&!s||"start"!==t&&s;return qn(a-ZO/2)?(o=l?"bottom":"top",i="center"):qn(a-1.5*ZO)?(o=l?"top":"bottom",i="center"):(o="middle",i=a<1.5*ZO&&a>ZO/2?l?"left":"right":l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function tL(e,t,r){if(!uO(e.axis)){var n=e.get(["axisLabel","showMinLabel"]),i=e.get(["axisLabel","showMaxLabel"]);t=t||[],r=r||[];var o=t[0],a=t[1],s=t[t.length-1],l=t[t.length-2],u=r[0],c=r[1],d=r[r.length-1],h=r[r.length-2];!1===n?(rL(o),rL(u)):nL(o,a)&&(n?(rL(a),rL(c)):(rL(o),rL(u))),!1===i?(rL(s),rL(d)):nL(l,s)&&(i?(rL(l),rL(h)):(rL(s),rL(d)))}}function rL(e){e&&(e.ignore=!0)}function nL(e,t){var r=e&&e.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(r&&n){var i=ue([]);return fe(i,i,-e.rotation),r.applyTransform(de([],i,e.getLocalTransform())),n.applyTransform(de([],i,t.getLocalTransform())),r.intersect(n)}}function iL(e){return"middle"===e||"center"===e}function oL(e,t,r,n,i){for(var o=[],a=[],s=[],l=0;l=0||e===t}function gL(e){var t=vL(e);if(t){var r=t.axisPointerModel,n=t.axis.scale,i=r.option,o=r.get("status"),a=r.get("value");null!=a&&(a=n.parse(a));var s=bL(r);null==o&&(i.status=s?"show":"hide");var l=n.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:r,axisLine:n,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,qC.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"}},WL.axisLine),axisLabel:$L(WL.axisLabel,!1),axisTick:$L(WL.axisTick,!1),splitLine:$L(WL.splitLine,!0),splitArea:$L(WL.splitArea,!0),indicator:[]},t}(Kc),qL=GL,XL=["axisLine","axisTickLabel","axisName"],KL=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return a(t,e),t.prototype.render=function(e,t,r){var n=this.group;n.removeAll(),this._buildAxes(e),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e){var t=e.coordinateSystem,r=t.getIndicatorAxes(),n=l["H"](r,(function(e){var r=e.model.get("showName")?e.name:"",n=new uL(e.model,{axisName:r,position:[t.cx,t.cy],rotation:e.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return n}));l["k"](n,(function(e){l["k"](XL,e.add,e),this.group.add(e.getGroup())}),this)},t.prototype._buildSplitLineAndArea=function(e){var t=e.coordinateSystem,r=t.getIndicatorAxes();if(r.length){var n=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"===n)for(var v=r[0].getTicksCoords(),y=t.cx,b=t.cy,_=0;_3?1.4:i>1?1.2:1.1,l=n>0?s:1/s;cA(this,"zoom","zoomOnMouseWheel",e,{scale:l,originX:o,originY:a,isAvailableBehavior:null})}if(r){var u=Math.abs(n),c=(n>0?1:-1)*(u>3?.4:u>1?.15:.05);cA(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:c,originX:o,originY:a,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(e){if(!sA(this._zr,"globalPan")){var t=e.pinchScale>1?1.1:1/1.1;cA(this,"zoom",null,e,{scale:t,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t}(E);function cA(e,t,r,n,i){e.pointerChecker&&e.pointerChecker(n,i.originX,i.originY)&&(re(n.event),dA(e,t,r,n,i))}function dA(e,t,r,n,i){i.isAvailableBehavior=Object(l["c"])(hA,null,r,n),e.trigger(t,i)}function hA(e,t,r){var n=r[e];return!e||n&&(!Object(l["C"])(n)||t.event[n+"Key"])}var fA=uA;function pA(e,t,r){var n=e.target;n.x+=t,n.y+=r,n.dirty()}function mA(e,t,r,n){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-=(r-i.x)*(u-1),i.y-=(n-i.y)*(u-1),i.scaleX*=u,i.scaleY*=u,i.dirty()}var gA,vA={axisPointer:1,tooltip:1,brush:1};function yA(e,t,r){var n=t.getComponentByElement(e.topTarget),i=n&&n.coordinateSystem;return n&&n!==r&&!vA.hasOwnProperty(n.mainType)&&i&&i.model!==r}function bA(e){if(Object(l["C"])(e)){var t=new DOMParser;e=t.parseFromString(e,"text/xml")}var r=e;9===r.nodeType&&(r=r.firstChild);while("svg"!==r.nodeName.toLowerCase()||1!==r.nodeType)r=r.nextSibling;return r}var _A={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"},wA=Object(l["F"])(_A),xA={"alignment-baseline":"textBaseline","stop-color":"stopColor"},kA=Object(l["F"])(xA),SA=function(){function e(){this._defs={},this._root=null}return e.prototype.parse=function(e,t){t=t||{};var r=bA(e);this._defsUsePending=[];var n=new kn;this._root=n;var i=[],o=r.getAttribute("viewBox")||"",a=parseFloat(r.getAttribute("width")||t.width),s=parseFloat(r.getAttribute("height")||t.height);isNaN(a)&&(a=null),isNaN(s)&&(s=null),AA(r,n,null,!0,!1);var l,u,c=r.firstChild;while(c)this._parseNode(c,n,i,null,!1,!1),c=c.nextSibling;if(jA(this._defs,this._defsUsePending),this._defsUsePending=[],o){var d=RA(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=VA(l,{x:0,y:0,width:a,height:s}),!t.ignoreViewBox)){var h=n;n=new kn,n.add(h),h.scaleX=h.scaleY=u.scale,h.x=u.x,h.y=u.y}return t.ignoreRootClip||null==a||null==s||n.setClipPath(new ls({shape:{x:0,y:0,width:a,height:s}})),{root:n,width:a,height:s,viewBoxRect:l,viewBoxTransform:u,named:i}},e.prototype._parseNode=function(e,t,r,n,i,o){var a,s=e.nodeName.toLowerCase(),u=n;if("defs"===s&&(i=!0),"text"===s&&(o=!0),"defs"===s||"switch"===s)a=t;else{if(!i){var c=gA[s];if(c&&Object(l["q"])(gA,s)){a=c.call(this,e,t);var d=e.getAttribute("name");if(d){var h={name:d,namedFrom:null,svgNodeTagLower:s,el:a};r.push(h),"g"===s&&(u=h)}else n&&r.push({name:n.name,namedFrom:n,svgNodeTagLower:s,el:a});t.add(a)}}var f=MA[s];if(f&&Object(l["q"])(MA,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,r,u,i,o):3===g.nodeType&&o&&this._parseText(g,a),g=g.nextSibling}},e.prototype._parseText=function(e,t){var r=new qa({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});OA(t,r),AA(e,r,this._defsUsePending,!1,!1),DA(r,t);var n=r.style,i=n.fontSize;i&&i<9&&(n.fontSize=9,r.scaleX*=i/9,r.scaleY*=i/9);var o=(n.fontSize||n.fontFamily)&&[n.fontStyle,n.fontWeight,(n.fontSize||12)+"px",n.fontFamily||"sans-serif"].join(" ");n.font=o;var a=r.getBoundingRect();return this._textX+=a.width,t.add(r),r},e.internalField=function(){gA={g:function(e,t){var r=new kn;return OA(t,r),AA(e,r,this._defsUsePending,!1,!1),r},rect:function(e,t){var r=new ls;return OA(t,r),AA(e,r,this._defsUsePending,!1,!1),r.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")}),r.silent=!0,r},circle:function(e,t){var r=new Qp;return OA(t,r),AA(e,r,this._defsUsePending,!1,!1),r.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),r.silent=!0,r},line:function(e,t){var r=new Pm;return OA(t,r),AA(e,r,this._defsUsePending,!1,!1),r.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")}),r.silent=!0,r},ellipse:function(e,t){var r=new rm;return OA(t,r),AA(e,r,this._defsUsePending,!1,!1),r.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")}),r.silent=!0,r},polygon:function(e,t){var r,n=e.getAttribute("points");n&&(r=LA(n));var i=new Om({shape:{points:r||[]},silent:!0});return OA(t,i),AA(e,i,this._defsUsePending,!1,!1),i},polyline:function(e,t){var r,n=e.getAttribute("points");n&&(r=LA(n));var i=new Dm({shape:{points:r||[]},silent:!0});return OA(t,i),AA(e,i,this._defsUsePending,!1,!1),i},image:function(e,t){var r=new Qa;return OA(t,r),AA(e,r,this._defsUsePending,!1,!1),r.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")}),r.silent=!0,r},text:function(e,t){var r=e.getAttribute("x")||"0",n=e.getAttribute("y")||"0",i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(r)+parseFloat(i),this._textY=parseFloat(n)+parseFloat(o);var a=new kn;return OA(t,a),AA(e,a,this._defsUsePending,!1,!0),a},tspan:function(e,t){var r=e.getAttribute("x"),n=e.getAttribute("y");null!=r&&(this._textX=parseFloat(r)),null!=n&&(this._textY=parseFloat(n));var i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",a=new kn;return OA(t,a),AA(e,a,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),a},path:function(e,t){var r=e.getAttribute("d")||"",n=Gp(r);return OA(t,n),AA(e,n,this._defsUsePending,!1,!1),n.silent=!0,n}}}(),e}(),MA={lineargradient:function(e){var t=parseInt(e.getAttribute("x1")||"0",10),r=parseInt(e.getAttribute("y1")||"0",10),n=parseInt(e.getAttribute("x2")||"10",10),i=parseInt(e.getAttribute("y2")||"0",10),o=new Xm(t,r,n,i);return CA(e,o),TA(e,o),o},radialgradient:function(e){var t=parseInt(e.getAttribute("cx")||"0",10),r=parseInt(e.getAttribute("cy")||"0",10),n=parseInt(e.getAttribute("r")||"0",10),i=new Zm(t,r,n);return CA(e,i),TA(e,i),i}};function CA(e,t){var r=e.getAttribute("gradientUnits");"userSpaceOnUse"===r&&(t.global=!0)}function TA(e,t){var r=e.firstChild;while(r){if(1===r.nodeType&&"stop"===r.nodeName.toLocaleLowerCase()){var n=r.getAttribute("offset"),i=void 0;i=n&&n.indexOf("%")>0?parseInt(n,10)/100:n?parseFloat(n):0;var o={};zA(r,o,o);var a=o.stopColor||r.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:i,color:a})}r=r.nextSibling}}function OA(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),Object(l["i"])(t.__inheritedStyle,e.__inheritedStyle))}function LA(e){for(var t=RA(e),r=[],n=0;n0;o-=2){var a=n[o],s=n[o-1],l=RA(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])*BA,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*BA);de(i,[1,0,u,1,0,0],i);break;case"skewY":var c=Math.tan(parseFloat(l[0])*BA);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 FA=/([^\s:;]+)\s*:\s*([^:;]+)/g;function zA(e,t,r){var n=e.getAttribute("style");if(n){var i;FA.lastIndex=0;while(null!=(i=FA.exec(n))){var o=i[1],a=Object(l["q"])(_A,o)?_A[o]:null;a&&(t[a]=i[2]);var s=Object(l["q"])(xA,o)?xA[o]:null;s&&(r[s]=i[2])}}}function HA(e,t,r){for(var n=0;nr&&(e=i,r=a)}if(e)return ZA(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 r=[1/0,1/0],n=[-1/0,-1/0],i=this.geometries;return Object(l["k"])(i,(function(t){"polygon"===t.type?KA(t.exterior,r,n,e):Object(l["k"])(t.points,(function(t){KA(t,r,n,e)}))})),isFinite(r[0])&&isFinite(r[1])&&isFinite(n[0])&&isFinite(n[1])||(r[0]=r[1]=n[0]=n[1]=0),t=new Oe(r[0],r[1],n[0]-r[0],n[1]-r[1]),e||(this._rect=t),t},t.prototype.contain=function(e){var t=this.getBoundingRect(),r=this.geometries;if(!t.contain(e[0],e[1]))return!1;e:for(var n=0,i=r.length;n>1^-(1&s),l=l>>1^-(1&l),s+=i,l+=o,i=s,o=l,n.push([s/r,l/r])}return n}function cD(e,t){return e=sD(e),l["H"](l["n"](e.features,(function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0})),(function(e){var r=e.properties,n=e.geometry,i=[];switch(n.type){case"Polygon":var o=n.coordinates;i.push(new QA(o[0],o.slice(1)));break;case"MultiPolygon":l["k"](n.coordinates,(function(e){e[0]&&i.push(new QA(e[0],e.slice(1)))}));break;case"LineString":i.push(new eD([n.coordinates]));break;case"MultiLineString":i.push(new eD(n.coordinates))}var a=new tD(r[t||"name"],i,r.cp);return a.properties=r,a}))}for(var dD=[126,25],hD="南海诸岛",fD=[[[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]]],pD=0;pD0,m={api:r,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,r),this._updateMapSelectHandler(e,l,r,n)},e.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=l["f"](),r=l["f"](),n=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=[],r=!u&&s&&s.project,n=0;n=0)&&(h=i);var f=a?{normal:{align:"center",verticalAlign:"middle"}}:null;tu(t,ru(n),{labelFetcher:h,labelDataIndex:d,defaultText:r},f);var p=t.getTextContent();if(p&&(DD(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 ND(e,t,r,n,i,o){e.data?e.data.setItemGraphicEl(o,t):Ts(t).eventData={componentType:"geo",componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:r,region:n&&n.option||{}}}function BD(e,t,r,n,i){e.data||Rg({el:t,componentModel:i,itemName:r,itemTooltipOption:n.get("tooltip")})}function YD(e,t,r,n,i){t.highDownSilentOnTouch=!!i.get("selectedMode");var o=n.getModel("emphasis"),a=o.get("focus");return Ll(t,a,o.get("blurScope"),o.get("disabled")),e.isGeo&&Rl(t,i,r),a}function FD(e,t,r){var n,i=[];function o(){n=[]}function a(){n.length&&(i.push(n),n=[])}var s=t({polygonStart:o,polygonEnd:a,lineStart:o,lineEnd:a,point:function(e,t){isFinite(e)&&isFinite(t)&&n.push([e,t])},sphere:function(){}});return!r&&s.polygonStart(),l["k"](e,(function(e){s.lineStart();for(var t=0;t-1&&(r.style.stroke=r.style.fill,r.style.fill="#fff",r.style.lineWidth=2),r},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),WD=UD;function $D(e,t){var r={};return l["k"](e,(function(e){e.each(e.mapDimension("value"),(function(t,n){var i="ec-"+e.getName(n);r[i]=r[i]||[],isNaN(t)||r[i].push(t)}))})),e[0].map(e[0].mapDimension("value"),(function(n,i){for(var o,a="ec-"+e[0].getName(i),s=0,l=1/0,u=-1/0,c=r[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 oE(e,t){l["k"](t.get("geoCoord"),(function(t,r){e.addGeoCoord(r,t)}))}var aE=function(){function e(){this.dimensions=eE}return e.prototype.create=function(e,t){var r=[];function n(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 nE(o+i,o,l["m"]({nameMap:e.get("nameMap")},n(e)));a.zoomLimit=e.get("scaleLimit"),r.push(a),e.coordinateSystem=a,a.model=e,a.resize=iE,a.resize(e,t)})),e.eachSeries((function(e){var t=e.get("coordinateSystem");if("geo"===t){var n=e.get("geoIndex")||0;e.coordinateSystem=r[n]}}));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 nE(i,i,l["m"]({nameMap:l["J"](o)},n(e[0])));a.zoomLimit=l["O"].apply(null,l["H"](e,(function(e){return e.get("scaleLimit")}))),r.push(a),a.resize=iE,a.resize(e[0],t),l["k"](e,(function(e){e.coordinateSystem=a,oE(a,e)}))})),r},e.prototype.getFilledRegions=function(e,t,r,n){for(var i=(e||[]).slice(),o=l["f"](),a=0;a=0;a--){var s=n[a];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:a,thread:null},i.push(s)}}function bE(e,t){var r=e.isExpand?e.children:[],n=e.parentNode.children,i=e.hierNode.i?n[e.hierNode.i-1]:null;if(r.length){SE(e);var o=(r[0].hierNode.prelim+r[r.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=ME(e,i,e.parentNode.hierNode.defaultAncestor||n[0],t)}function _E(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function wE(e){return arguments.length?e:AE}function xE(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function kE(e,t){return Fc(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function SE(e){var t=e.children,r=t.length,n=0,i=0;while(--r>=0){var o=t[r];o.hierNode.prelim+=n,o.hierNode.modifier+=n,i+=o.hierNode.change,n+=o.hierNode.shift+i}}function ME(e,t,r,n){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=CE(s),o=TE(o),s&&o){i=CE(i),a=TE(a),i.hierNode.ancestor=e;var h=s.hierNode.prelim+d-o.hierNode.prelim-u+n(s,o);h>0&&(LE(OE(s,e,r),e,h),u+=h,l+=h),d+=s.hierNode.modifier,u+=o.hierNode.modifier,l+=i.hierNode.modifier,c+=a.hierNode.modifier}s&&!CE(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=d-l),o&&!TE(a)&&(a.hierNode.thread=o,a.hierNode.modifier+=u-c,r=e)}return r}function CE(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function TE(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function OE(e,t,r){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:r}function LE(e,t,r){var n=r/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=n,t.hierNode.shift+=r,t.hierNode.modifier+=r,t.hierNode.prelim+=r,e.hierNode.change+=n}function AE(e,t){return e.parentNode===t.parentNode?1:2}var DE=function(){function e(){this.parentPoint=[],this.childPoints=[]}return e}(),EE=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 DE},t.prototype.buildPath=function(e,t){var r=t.childPoints,n=r.length,i=t.parentPoint,o=r[0],a=r[n-1];if(1===n)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=Bn(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 S=x?"left":"right",M=s.getModel("label"),C=M.get("rotate"),T=C*(Math.PI/180),O=v.getTextContent();O&&(v.setTextConfig({position:M.get("position")||S,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(r).focus=A),RE(i,a,d,r,m,p,g,n),r.__edge&&(r.onHoverStateChange=function(t){if("blur"!==t){var n=a.parentNode&&e.getItemGraphicEl(a.parentNode.dataIndex);n&&n.hoverState===js||tl(r.__edge,t)}})}function RE(e,t,r,n,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=n.__edge;if("curve"===c)t.parentNode&&t.parentNode!==r&&(g||(g=n.__edge=new Fm({shape:FE(d,h,f,i,i)})),Ul(g,{shape:FE(d,h,f,o,a)},e));else if("polyline"===c)if("orthogonal"===d){if(t!==r&&t.children&&0!==t.children.length&&!0===t.isExpand){for(var v=t.children,y=[],b=0;bt&&(t=n.height)}this.height=t+1},e.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,r=this.children,n=r.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,r=t.data.getItemModel(this.dataIndex);return r.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 n=r.getData().tree.root,i=e.targetNode;if(l["C"](i)&&(i=n.getNodeById(i)),i&&n.contains(i))return{node:i};var o=e.targetNodeId;if(null!=o&&(i=n.getNodeById(o)))return{node:i}}}function iI(e){var t=[];while(e)e=e.parentNode,e&&t.push(e);return t.reverse()}function oI(e,t){var r=iI(e);return l["r"](r,t)>=0}function aI(e,t){var r=[];while(e){var n=e.dataIndex;r.push({name:e.name,dataIndex:n,value:t.getRawValue(n)}),e=e.parentNode}return r.reverse(),r}var sI=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},r=e.leaves||{},n=new Tu(r,this,this.ecModel),i=rI.createTree(t,this,o);function o(e){e.wrapMethod("getItemModel",(function(e,t){var r=i.getNodeByDataIndex(t);return r&&r.children.length&&r.isExpand||(e.parentModel=n),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,r){var n=this.getData().tree,i=n.root.children[0],o=n.getNodeByDataIndex(e),a=o.getValue(),s=o.name;while(o&&o!==i)s=o.parentNode.name+"."+s,o=o.parentNode;return qf("nameValue",{name:s,value:a,noValue:isNaN(a)||null==a})},t.prototype.getDataParams=function(t){var r=e.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(t);return r.treeAncestors=aI(n,this),r.collapsed=!n.isExpand,r},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),lI=sI;function uI(e,t,r){var n,i=[e],o=[];while(n=i.pop())if(o.push(n),n.isExpand){var a=n.children;if(a.length)for(var s=0;s=0;o--)n.push(i[o])}}function dI(e,t){e.eachSeriesByType("tree",(function(e){hI(e,t)}))}function hI(e,t){var r=kE(e,t);e.layoutInfo=r;var n=e.get("layout"),i=0,o=0,a=null;"radial"===n?(i=2*Math.PI,o=Math.min(r.height,r.width)/2,a=wE((function(e,t){return(e.parentNode===t.parentNode?1:2)/e.depth}))):(i=r.width,o=r.height,a=wE());var s=e.getData().tree.root,l=s.children[0];if(l){yE(s),uI(l,bE,a),s.hierNode.modifier=-l.hierNode.prelim,cI(l,_E);var u=l,c=l,d=l;cI(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"===n)p=i/(c.getLayout().x+h+f),m=o/(d.depth-1||1),cI(l,(function(e){g=(e.getLayout().x+f)*p,v=(e.depth-1)*m;var t=xE(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),cI(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),cI(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 fI(e){e.eachSeriesByType("tree",(function(e){var t=e.getData(),r=t.tree;r.eachNode((function(e){var r=e.getModel(),n=r.getModel("itemStyle").getItemStyle(),i=t.ensureUniqueItemVisual(e.dataIndex,"style");Object(l["m"])(i,n)}))}))}function pI(e){e.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},(function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},(function(t){var r=e.dataIndex,n=t.getData().tree,i=n.getNodeByDataIndex(r);i.isExpand=!i.isExpand}))})),e.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},(function(e,t,r){t.eachComponent({mainType:"series",subType:"tree",query:e},(function(t){var n=t.coordinateSystem,i=hE(n,e,void 0,r);t.setCenter&&t.setCenter(i.center),t.setZoom&&t.setZoom(i.zoom)}))}))}function mI(e){e.registerChartView(zE),e.registerSeriesModel(lI),e.registerLayout(dI),e.registerVisual(fI),pI(e)}var gI=["treemapZoomToNode","treemapRender","treemapMove"];function vI(e){for(var t=0;t1)r=r.parentNode;var i=Sd(e.ecModel,r.name||r.dataIndex+"",n);t.setVisual("decal",i)}))}var bI=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r.preventUsingHoverLayer=!0,r}return a(t,e),t.prototype.getInitialData=function(e,t){var r={name:e.name,children:e.data};_I(r);var n=e.levels||[],i=this.designatedVisualItemStyle={},o=new Tu({itemStyle:i},this,t);n=e.levels=wI(n,t);var a=l["H"](n||[],(function(e){return new Tu(e,o,t)}),this),s=rI.createTree(r,this,u);function u(e){e.wrapMethod("getItemModel",(function(e,t){var r=s.getNodeByDataIndex(t),n=r?a[r.depth]:null;return e.parentModel=n||o,e}))}return s.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(e,t,r){var n=this.getData(),i=this.getRawValue(e),o=n.getName(e);return qf("nameValue",{name:o,value:i})},t.prototype.getDataParams=function(t){var r=e.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(t);return r.treeAncestors=aI(n,this),r.treePathInfo=r.treeAncestors,r},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 r=t.get(e);return null==r&&t.set(e,r=this._idIndexMapCount++),r},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(){yI(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,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 _I(e){var t=0;l["k"](e.children,(function(e){_I(e);var r=e.value;l["t"](r)&&(r=r[0]),t+=r}));var r=e.value;l["t"](r)&&(r=r[0]),(null==r||isNaN(r))&&(r=t),r<0&&(r=0),l["t"](e.value)?e.value[0]=r:e.value=r}function wI(e,t){var r=ci(t.get("color")),n=ci(t.get(["aria","decal","decals"]));if(r){var i,o;e=e||[],l["k"](e,(function(e){var t=new Tu(e),r=t.get("color"),n=t.get("decal");(t.get(["itemStyle","color"])||r&&"none"!==r)&&(i=!0),(t.get(["itemStyle","decal"])||n&&"none"!==n)&&(o=!0)}));var a=e[0]||(e[0]={});return i||(a.color=r.slice()),!o&&n&&(a.decal=n.slice()),e}}var xI=bI,kI=8,SI=8,MI=5,CI=function(){function e(e){this.group=new kn,e.add(this.group)}return e.prototype.render=function(e,t,r,n){var i=e.getModel("breadcrumb"),o=this.group;if(o.removeAll(),i.get("show")&&r){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(r,c,l),this._renderContent(e,c,a,s,l,u,n),zc(o,c.pos,c.box)}},e.prototype._prepare=function(e,t,r){for(var n=e;n;n=n.parentNode){var i=Si(n.getModel().get("name"),""),o=r.getTextRect(i),a=Math.max(o.width+2*kI,t.emptyItemWidth);t.totalWidth+=a+SI,t.renderList.push({node:n,text:i,width:a})}},e.prototype._renderContent=function(e,t,r,n,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=n.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 Om({shape:{points:TI(s,0,y,c,m===f.length-1,0===m)},style:Object(l["i"])(r.getItemStyle(),{lineJoin:"bevel"}),textContent:new Cs({style:nu(i,{text:b})}),textConfig:{position:"inside"},z2:1e4*Bs,onclick:Object(l["h"])(a,v)});_.disableLabelAnimation=!0,_.getTextContent().ensureState("emphasis").style=nu(o,{text:b}),_.ensureState("emphasis").style=p,Ll(_,n.get("focus"),n.get("blurScope"),n.get("disabled")),this.group.add(_),OI(_,e,v),s+=y+SI}},e.prototype.remove=function(){this.group.removeAll()},e}();function TI(e,t,r,n,i,o){var a=[[i?e:e-MI,t],[e+r,t],[e+r,t+n],[i?e:e-MI,t+n]];return!o&&a.splice(2,0,[e+r+MI,t+n/2]),!i&&a.push([e,t+n/2]),a}function OI(e,t,r){Ts(e).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:r&&r.dataIndex,name:r&&r.name},treePathInfo:r&&aI(r,t)}}var LI=CI,AI=function(){function e(){this._storage=[],this._elExistsMap={}}return e.prototype.add=function(e,t,r,n,i){return!this._elExistsMap[e.id]&&(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:r,delay:n,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,r=function(){t--,t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},n=0,i=this._storage.length;njI||Math.abs(e.dy)>jI)){var t=this.seriesModel.getData().tree.root;if(!t)return;var r=t.getLayout();if(!r)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:r.x+e.dx,y:r.y+e.dy,width:r.width,height:r.height}})}},t.prototype._onZoom=function(e){var t=e.originX,r=e.originY;if("animating"!==this._state){var n=this.seriesModel.getData().tree.root;if(!n)return;var i=n.getLayout();if(!i)return;var o=new Oe(i.x,i.y,i.width,i.height),a=this.seriesModel.layoutInfo;t-=a.x,r-=a.y;var s=le();he(s,s,[-t,-r]),pe(s,s,[e.scale,e.scale]),he(s,s,[t,r]),o.applyTransform(s),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:o.x,y:o.y,width:o.width,height:o.height}})}},t.prototype._initEvents=function(e){var t=this;e.on("click",(function(e){if("ready"===t._state){var r=t.seriesModel.get("nodeClick",!0);if(r){var n=t.findTarget(e.offsetX,e.offsetY);if(n){var i=n.node;if(i.getLayout().isLeafRoot)t._rootToNode(n);else if("zoomToNode"===r)t._zoomToNode(n);else if("link"===r){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,r){var n=this;r||(r=null!=e.get("leafDepth",!0)?{node:e.getViewRoot()}:this.findTarget(t.getWidth()/2,t.getHeight()/2),r||(r={node:e.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new LI(this.group))).render(e,t,r.node,(function(t){"animating"!==n._state&&(oI(e.getViewRoot(),t)?n._rootToNode({node:t}):n._zoomToNode({node:t}))}))},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=UI(),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 r,n=this.seriesModel.getViewRoot();return n.eachNode({attr:"viewChildren",order:"preorder"},(function(n){var i=this._storage.background[n.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;r={node:n,offsetX:o[0],offsetY:o[1]}}}),this),r},t.type="treemap",t}(Gg);function UI(){return{nodeGroup:[],background:[],content:[]}}function WI(e,t,r,n,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"),S=f.getModel(["emphasis","itemStyle"]),M=f.getModel(["blur","itemStyle"]),C=f.getModel(["select","itemStyle"]),T=k.get("borderRadius")||0,O=z("nodeGroup",EI);if(O){if(u.add(O),O.x=d.x||0,O.y=d.y||0,O.markRedraw(),HI(O).nodeWidth=p,HI(O).nodeHeight=m,d.isAboveViewRoot)return O;var L=z("background",II,c,BI);L&&R(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=z("content",II,c,YI);P&&N(O,P),L.disableMorphing=!0,L&&Pl(L)&&jl(L,!1),jl(O,!I),h.setItemGraphicEl(a.dataIndex,O),Al(O,j,E)}return O}}}function R(t,r,n){var i=Ts(r);if(i.dataIndex=a.dataIndex,i.seriesIndex=e.seriesIndex,r.setShape({x:0,y:0,width:p,height:m,r:T}),v)B(r);else{r.invisible=!1;var o=a.getVisual("style"),s=o.stroke,l=zI(k);l.fill=s;var u=FI(S);u.fill=S.get("borderColor");var c=FI(M);c.fill=M.get("borderColor");var d=FI(C);if(d.fill=C.get("borderColor"),n){var h=p-2*g;Y(r,s,o.opacity,{x:g,y:0,width:h,height:w})}else r.removeTextContent();r.setStyle(l),r.ensureState("emphasis").style=u,r.ensureState("blur").style=c,r.ensureState("select").style=d,sl(r)}t.add(r)}function N(t,r){var n=Ts(r);n.dataIndex=a.dataIndex,n.seriesIndex=e.seriesIndex;var i=Math.max(p-2*g,0),o=Math.max(m-2*g,0);if(r.culling=!0,r.setShape({x:g,y:g,width:i,height:o,r:T}),v)B(r);else{r.invisible=!1;var s=a.getVisual("style"),l=s.fill,u=zI(k);u.fill=l,u.decal=s.decal;var c=FI(S),d=FI(M),h=FI(C);Y(r,l,s.opacity,null),r.setStyle(u),r.ensureState("emphasis").style=c,r.ensureState("blur").style=d,r.ensureState("select").style=h,sl(r)}t.add(r)}function B(e){!e.invisible&&o.push(e)}function Y(t,r,n,i){var o=f.getModel(i?RI:PI),s=Si(f.get("name"),null),u=o.getShallow("show");tu(t,ru(f,i?RI:PI),{defaultText:u?s:null,inheritColor:r,defaultOpacity:n,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),r=Math.max((i?i.height:t.shape.height)-p[0]-p[2],0);h.width===e&&h.height===r||c.setStyle({width:e,height:r})},h.truncateMinChar=2,h.lineOverflow="truncate",F(h,i,d);var m=c.getState("emphasis");F(m?m.style:null,i,d)}}function F(t,r,n){var i=t?t.text:null;if(!r&&n.isLeafRoot&&null!=i){var o=e.get("drillDownIcon",!0);t.text=o?o+" "+i:i}}function z(e,n,o,a){var s=null!=b&&r[e][b],l=i[e];return s?(r[e][b]=null,H(l,s)):v||(s=new n,s instanceof Bo&&(s.z2=$I(o,a)),V(l,s)),t[e][y]=s}function H(e,t){var r=e[y]={};t instanceof EI?(r.oldX=t.x,r.oldY=t.y):r.oldShape=Object(l["m"])({},t.shape)}function V(e,t){var r=e[y]={},o=a.parentNode,s=t instanceof kn;if(o&&(!n||"drillDown"===n.direction)){var l=0,u=0,c=i.background[o.getRawIndex()];!n&&c&&c.oldShape&&(l=c.oldShape.width,u=c.oldShape.height),s?(r.oldX=0,r.oldY=u):r.oldShape={x:l,y:u,width:0,height:0}}r.fadein=!s}}function $I(e,t){return e*NI+t}var GI=VI,qI=l["k"],XI=l["A"],KI=-1,ZI=function(){function e(t){var r=t.mappingMethod,n=t.type,i=this.option=l["d"](t);this.type=n,this.mappingMethod=r,this._normalizeData=uj[r];var o=e.visualHandlers[n];this.applyVisual=o.applyVisual,this.getColorMapper=o.getColorMapper,this._normalizedToVisual=o._normalizedToVisual[r],"piecewise"===r?(ej(i),JI(i)):"category"===r?i.categories?QI(i):ej(i,!0):(l["b"]("linear"!==r||i.dataExtent),ej(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,r){l["A"](e)?l["k"](e,t,r):t.call(r,e)},e.mapVisual=function(t,r,n){var i,o=l["t"](t)?[]:l["A"](t)?{}:(i=!0,null);return e.eachVisual(t,(function(e,t){var a=r.call(n,e,t);i?o=a:o[t]=a})),o},e.retrieveVisuals=function(t){var r,n={};return t&&qI(e.visualHandlers,(function(e,i){t.hasOwnProperty(i)&&(n[i]=t[i],r=!0)})),r?n:null},e.prepareVisualTypes=function(e){if(l["t"](e))e=e.slice();else{if(!XI(e))return[];var t=[];qI(e,(function(e,r){t.push(r)})),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,r){for(var n,i=1/0,o=0,a=t.length;o=0;o--)null==n[o]&&(delete r[t[o]],t.pop())}function ej(e,t){var r=e.visual,n=[];l["A"](r)?qI(r,(function(e){n.push(e)})):null!=r&&n.push(r);var i={color:1,symbol:1};t||1!==n.length||i.hasOwnProperty(e.type)||(n[1]=n[0]),lj(e,n)}function tj(e){return{applyVisual:function(t,r,n){var i=this.mapValueToVisual(t);n("color",e(r("color"),i))},_normalizedToVisual:aj([0,1])}}function rj(e){var t=this.option.visual;return t[Math.round(Nn(e,[0,1],[0,t.length-1],!0))]||{}}function nj(e){return function(t,r,n){n(e,this.mapValueToVisual(t))}}function ij(e){var t=this.option.visual;return t[this.option.loop&&e!==KI?e%t.length:e]}function oj(){return this.option.visual[0]}function aj(e){return{linear:function(t){return Nn(t,e,this.option.visual,!0)},category:ij,piecewise:function(t,r){var n=sj.call(this,r);return null==n&&(n=Nn(t,e,this.option.visual,!0)),n},fixed:oj}}function sj(e){var t=this.option,r=t.pieceList;if(t.hasSpecialVisual){var n=ZI.findPieceIndex(e,r),i=r[n];if(i&&i.visual)return i.visual[this.type]}}function lj(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 uj={linear:function(e){return Nn(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,r=ZI.findPieceIndex(e,t,!0);if(null!=r)return Nn(r,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return null==t?KI:t},fixed:l["L"]};function cj(e,t,r){return e?t<=r:t=r.length||e===r[e.depth]){var o=xj(i,c,e,t,m,n);mj(e,o,r,n)}}))}else s=vj(c),d.fill=s}}function gj(e,t,r){var n=Object(l["m"])({},t),i=r.designatedVisualItemStyle;return Object(l["k"])(["color","colorAlpha","colorSaturation"],(function(r){i[r]=t[r];var o=e.get(r);i[r]=null,null!=o&&(n[r]=o)})),n}function vj(e){var t=bj(e,"color");if(t){var r=bj(e,"colorAlpha"),n=bj(e,"colorSaturation");return n&&(t=Object(Bt["g"])(t,null,null,n)),r&&(t=Object(Bt["f"])(t,r)),t}}function yj(e,t){return null!=t?Object(Bt["g"])(t,null,null,e):null}function bj(e,t){var r=e[t];if(null!=r&&"none"!==r)return r}function _j(e,t,r,n,i,o){if(o&&o.length){var a=wj(t,"color")||null!=i.color&&"none"!==i.color&&(wj(t,"colorAlpha")||wj(t,"colorSaturation"));if(a){var s=t.get("visualMin"),l=t.get("visualMax"),u=r.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 dj(d);return fj(h).drColorMappingBy=c,h}}}function wj(e,t){var r=e.get(t);return Object(l["t"])(r)&&r.length?{name:t,range:r}:null}function xj(e,t,r,n,i,o){var a=Object(l["m"])({},t);if(i){var s=i.type,u="color"===s&&fj(i).drColorMappingBy,c="index"===u?n:"id"===u?o.mapIdToIndex(r.getId()):r.getValue(e.get("visualDimension"));a[s]=i.mapValueToVisual(c)}return a}var kj=Math.max,Sj=Math.min,Mj=l["O"],Cj=l["k"],Tj=["itemStyle","borderWidth"],Oj=["itemStyle","gapWidth"],Lj=["upperLabel","show"],Aj=["upperLabel","height"],Dj={seriesType:"treemap",reset:function(e,t,r,n){var i=r.getWidth(),o=r.getHeight(),a=e.option,s=Fc(e.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()}),u=a.size||[],c=Bn(Mj(s.width,u[0]),i),d=Bn(Mj(s.height,u[1]),o),h=n&&n.type,f=["treemapZoomToNode","treemapRootToNode"],p=nI(n,f,e),m="treemapRender"===h||"treemapMove"===h?n.rootRect:null,g=e.getViewRoot(),v=iI(g);if("treemapMove"!==h){var y="treemapZoomToNode"===h?Yj(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),Ej(g,_,!1,0),w=g.getLayout(),Cj(v,(function(e,t){var r=(v[t+1]||g).getValue();e.setLayout(l["m"]({dataExtent:[r,r],borderWidth:0,upperHeight:0},w))}))}var x=e.getData().tree.root;x.setLayout(Fj(s,m,p),!0),e.setLayoutInfo(s),zj(x,new Oe(-s.x,-s.y,i,o),v,g,0)}};function Ej(e,t,r,n){var i,o;if(!e.isRemoved()){var a=e.getLayout();i=a.width,o=a.height;var s=e.getModel(),l=s.get(Tj),u=s.get(Oj)/2,c=Hj(s),d=Math.max(l,c),h=l-u,f=d-u;e.setLayout({borderWidth:l,upperHeight:d,upperLabelHeight:c},!0),i=kj(i-2*h,0),o=kj(o-h-f,0);var p=i*o,m=Ij(e,s,p,t,r,n);if(m.length){var g={x:h,y:f,width:i,height:o},v=Sj(i,o),y=1/0,b=[];b.area=0;for(var _=0,w=m.length;_=0;l--){var u=i["asc"===n?a-l-1:l].getValue();u/r*ta[1]&&(a[1]=t)}))):a=[NaN,NaN],{sum:n,dataExtent:a}}function Nj(e,t,r){for(var n=0,i=1/0,o=0,a=void 0,s=e.length;on&&(n=a));var l=e.area*e.area,u=t*t*r;return l?kj(u*n/l,l/(u*i)):1/0}function Bj(e,t,r,n,i){var o=t===r.width?0:1,a=1-o,s=["x","y"],l=["width","height"],u=r[s[o]],c=t?e.area/t:0;(i||c>r[l[a]])&&(c=r[l[a]]);for(var d=0,h=e.length;d$n&&(u=$n),a=o}un&&(n=t);var o=n%2?n+2:n+3;i=[];for(var a=0;a0&&(_[0]=-_[0],_[1]=-_[1]);var x=y[0]<0?-1:1;if("start"!==n.__position&&"end"!==n.__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":n.x=-c[0]*p+l[0],n.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":n.x=p*x+l[0],n.y=l[1]+S,d=y[0]<0?"right":"left",n.originX=-p*x,n.originY=-S;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":n.x=w[0],n.y=w[1]+S,d="center",n.originY=-S;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":n.x=-p*x+u[0],n.y=u[1]+S,d=y[0]>=0?"right":"left",n.originX=p*x,n.originY=-S;break}n.scaleX=n.scaleY=i,n.setStyle({verticalAlign:n.__verticalAlign||h,align:n.__align||d})}}}function M(e,t){var r=e.__specifiedRotation;if(null==r){var n=a.tangentAt(t);e.attr("rotation",(1===t?-1:1)*Math.PI/2-Math.atan2(n[1],n[0]))}else e.attr("rotation",r)}},t}(kn),jP=IP,PP=function(){function e(e){this.group=new kn,this._LineCtor=e||jP}return e.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var r=this,n=r.group,i=r._lineData;r._lineData=e,i||n.removeAll();var o=NP(e);e.diff(i).add((function(r){t._doAdd(e,r,o)})).update((function(r,n){t._doUpdate(i,e,n,r,o)})).remove((function(e){n.remove(i.getItemGraphicEl(e))})).execute()},e.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl((function(t,r){t.updateLayout(e,r)}),this)},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=NP(e),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t){function r(e){e.isGroup||RP(e)||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[];for(var n=e.start;n0}function NP(e){var t=e.hostModel,r=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:r.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:r.get("disabled"),blurScope:r.get("blurScope"),focus:r.get("focus"),labelStatesModels:ru(t)}}function BP(e){return isNaN(e[0])||isNaN(e[1])}function YP(e){return e&&!BP(e[0])&&!BP(e[1])}var FP=PP,zP=[],HP=[],VP=[],UP=Tt,WP=k,$P=Math.abs;function GP(e,t,r){for(var n,i=e[0],o=e[1],a=e[2],s=1/0,l=r*r,u=.1,c=.1;c<=.9;c+=.1){zP[0]=UP(i[0],o[0],a[0],c),zP[1]=UP(i[1],o[1],a[1],c);var d=$P(WP(zP,t)-l);d=0?n+=u:n-=u:p>=0?n-=u:n+=u}return n}function qP(e,t){var r=[],n=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=uP(e.node1),v=GP(i,f[0],g*t);n(i[0][0],i[1][0],i[2][0],v,r),i[0][0]=r[3],i[1][0]=r[4],n(i[0][1],i[1][1],i[2][1],v,r),i[0][1]=r[3],i[1][1]=r[4]}if(h&&"none"!==h){g=uP(e.node2),v=GP(i,f[1],g*t);n(i[0][0],i[1][0],i[2][0],v,r),i[1][0]=r[1],i[2][0]=r[2],n(i[0][1],i[1][1],i[2][1],v,r),i[1][1]=r[1],i[2][1]=r[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=uP(e.node1);p(o[0],o[0],a,g*t)}if(h&&"none"!==h){g=uP(e.node2);p(o[1],o[1],a,-g*t)}c(l[0],o[0]),c(l[1],o[1])}}))}function XP(e){return"view"===e.type}var KP=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return a(t,e),t.prototype.init=function(e,t){var r=new MS,n=new FP,i=this.group;this._controller=new fA(t.getZr()),this._controllerHost={target:i},i.add(r.group),i.add(n.group),this._symbolDraw=r,this._lineDraw=n,this._firstRender=!0},t.prototype.render=function(e,t,r){var n=this,i=e.coordinateSystem;this._model=e;var o=this._symbolDraw,a=this._lineDraw,s=this.group;if(XP(i)){var l={x:i.x,y:i.y,scaleX:i.scaleX,scaleY:i.scaleY};this._firstRender?s.attr(l):Ul(s,l,e)}qP(e.getGraph(),lP(e));var u=e.getData();o.updateData(u);var c=e.getEdgeData();a.updateData(c),this._updateNodeAndLinkScale(),this._updateController(e,t,r),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 r=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(),!n._layouting&&n._startForceLayoutIteration(d,h),d.setFixed(r),u.setItemLayout(r,[i.x,i.y]);break;case"circular":u.setItemLayout(r,[i.x,i.y]),t.setLayout({fixed:!0},!0),hP(e,"symbolSize",t,[o.offsetX,o.offsetY]),n.updateLayout(e);break;case"none":default:u.setItemLayout(r,[i.x,i.y]),aP(e.getGraph(),e),n.updateLayout(e);break}})).on("dragend",(function(){d&&d.setUnfixed(r)})),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(),r=e.getModel().get(["emphasis","focus"]);t&&"adjacency"===r&&(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){pP(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 r=this;(function n(){e.step((function(e){r.updateLayout(r._model),(r._layouting=!e)&&(t?r._layoutTimeout=setTimeout(n,16):n())}))})()},t.prototype._updateController=function(e,t,r){var n=this,i=this._controller,o=this._controllerHost,a=this.group;i.setPointerChecker((function(t,n,i){var o=a.getBoundingRect();return o.applyTransform(a.transform),o.contain(n,i)&&!yA(t,r,e)})),XP(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){pA(o,t.dx,t.dy),r.dispatchAction({seriesId:e.id,type:"graphRoam",dx:t.dx,dy:t.dy})})).on("zoom",(function(t){mA(o,t.scale,t.originX,t.originY),r.dispatchAction({seriesId:e.id,type:"graphRoam",zoom:t.scale,originX:t.originX,originY:t.originY}),n._updateNodeAndLinkScale(),qP(e.getGraph(),lP(e)),n._lineDraw.updateLayout(),r.updateLabelLayout()}))):i.disable()},t.prototype._updateNodeAndLinkScale=function(){var e=this._model,t=e.getData(),r=lP(e);t.eachItemGraphicEl((function(e,t){e&&e.setSymbolScale(r)}))},t.prototype.updateLayout=function(e){qP(e.getGraph(),lP(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}(Gg),ZP=KP;function JP(e){return"_EC_"+e}var QP=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 r=this._nodesMap;if(!r[JP(e)]){var n=new eR(e,t);return n.hostGraph=this,this.nodes.push(n),r[JP(e)]=n,n}},e.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},e.prototype.getNodeById=function(e){return this._nodesMap[JP(e)]},e.prototype.addEdge=function(e,t,r){var n=this._nodesMap,i=this._edgesMap;if(l["z"](e)&&(e=this.nodes[e]),l["z"](t)&&(t=this.nodes[t]),e instanceof eR||(e=n[JP(e)]),t instanceof eR||(t=n[JP(t)]),e&&t){var o=e.id+"-"+t.id,a=new tR(e,t,r);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 eR&&(e=e.id),t instanceof eR&&(t=t.id);var r=this._edgesMap;return this._directed?r[e+"-"+t]:r[e+"-"+t]||r[t+"-"+e]},e.prototype.eachNode=function(e,t){for(var r=this.nodes,n=r.length,i=0;i=0&&e.call(t,r[i],i)},e.prototype.eachEdge=function(e,t){for(var r=this.edges,n=r.length,i=0;i=0&&r[i].node1.dataIndex>=0&&r[i].node2.dataIndex>=0&&e.call(t,r[i],i)},e.prototype.breadthFirstTraverse=function(e,t,r,n){if(t instanceof eR||(t=this._nodesMap[JP(t)]),t){for(var i="out"===r?"outEdges":"in"===r?"inEdges":"edges",o=0;o=0&&r.node2.dataIndex>=0}));for(i=0,o=n.length;i=0&&this[e][t].setItemVisual(this.dataIndex,r,n)},getVisual:function(r){return this[e][t].getItemVisual(this.dataIndex,r)},setLayout:function(r,n){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,r,n)},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"](eR,rR("hostGraph","data")),l["K"](tR,rR("hostGraph","edgeData"));var nR=QP;function iR(e,t,r,n,i){for(var o=new nR(n),a=0;a "+f)),c++)}var p,m=r.get("coordinateSystem");if("cartesian2d"===m||"polar"===m)p=fS(e,r);else{var g=Gd.get(m),v=g&&g.dimensions||[];l["r"](v,"value")<0&&v.concat(["value"]);var y=Kk(e,{coordDimensions:v,encodeDefine:r.getEncode()}).dimensions;p=new Xk(y,r),p.initData(e)}var b=new Xk(["value"],r);return b.initData(u,s),i&&i(p,b),JE({mainData:p,struct:o,structAttr:"graph",datas:{node:p,edge:b},datasAttr:{node:"data",edge:"edgeData"}}),o.update(),o}var oR=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}return a(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments);var r=this;function n(){return r._categoriesData}this.legendVisualProvider=new DC(n,n),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 r=e.edges||e.links||[],n=e.data||e.nodes||[],i=this;if(n&&r){rP(this);var o=iR(n,r,this,!0,a);return l["k"](o.edges,(function(e){nP(e.node1,e.node2,this,e.dataIndex)}),this),o.data}function a(e,t){e.wrapMethod("getItemModel",(function(e){var t=i._categoriesModels,r=e.getShallow("category"),n=t[r];return n&&(n.parentModel=e.parentModel,e.parentModel=n),e}));var r=Tu.prototype.getModel;function n(e,t){var n=r.call(this,e,t);return n.resolveParentPath=o,n}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=n,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,r){if("edge"===r){var n=this.getData(),i=this.getDataParams(e,r),o=n.graph.getEdgeByIndex(e),a=n.getName(o.node1.dataIndex),s=n.getName(o.node2.dataIndex),l=[];return null!=a&&l.push(a),null!=s&&l.push(s),qf("nameValue",{name:l.join(" > "),value:i.value,noValue:null==i.value})}var u=cp({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 Xk(["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),aR=oR,sR={type:"graphRoam",event:"graphRoam",update:"none"};function lR(e){e.registerChartView(ZP),e.registerSeriesModel(aR),e.registerProcessor(Uj),e.registerVisual(Wj),e.registerVisual(Gj),e.registerLayout(sP),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,mP),e.registerLayout(yP),e.registerCoordinateSystem("graphView",{dimensions:JD.dimensions,create:_P}),e.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},l["L"]),e.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},l["L"]),e.registerAction(sR,(function(e,t,r){t.eachComponent({mainType:"series",query:e},(function(t){var n=t.coordinateSystem,i=hE(n,e,void 0,r);t.setCenter&&t.setCenter(i.center),t.setZoom&&t.setZoom(i.zoom)}))}))}var uR=function(){function e(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return e}(),cR=function(e){function t(t){var r=e.call(this,t)||this;return r.type="pointer",r}return a(t,e),t.prototype.getDefaultShape=function(){return new uR},t.prototype.buildPath=function(e,t){var r=Math.cos,n=Math.sin,i=t.r,o=t.width,a=t.angle,s=t.x-r(a)*o*(o>=i/3?1:2),l=t.y-n(a)*o*(o>=i/3?1:2);a=t.angle-Math.PI/2,e.moveTo(s,l),e.lineTo(t.x+r(a)*o,t.y+n(a)*o),e.lineTo(t.x+r(t.angle)*i,t.y+n(t.angle)*i),e.lineTo(t.x-r(a)*o,t.y-n(a)*o),e.lineTo(s,l)},t}(Wa),dR=cR;function hR(e,t){var r=e.get("center"),n=t.getWidth(),i=t.getHeight(),o=Math.min(n,i),a=Bn(r[0],t.getWidth()),s=Bn(r[1],t.getHeight()),l=Bn(e.get("radius"),o/2);return{cx:a,cy:s,r:l}}function fR(e,t){var r=null==e?"":e+"";return t&&(Object(l["C"])(t)?r=t.replace("{value}",r):Object(l["w"])(t)&&(r=t(e))),r}var pR=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return a(t,e),t.prototype.render=function(e,t,r){this.group.removeAll();var n=e.get(["axisLine","lineStyle","color"]),i=hR(e,r);this._renderMain(e,t,r,n,i),this._data=e.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(e,t,r,n,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?RM:_m,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:n[t-1][0])Math.PI/2&&(Y+=Math.PI)):"tangential"===B?Y=-M-Math.PI/2:Object(l["z"])(B)&&(Y=B*Math.PI/180),0===Y?h.add(new Cs({style:nu(_,{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:nu(_,{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(M),d=Math.sin(M);var z=new Pm({shape:{x1:c*(m-E)+f,y1:d*(m-E)+p,x2:c*(m-S-E)+f,y2:d*(m-S-E)+p},silent:!0,style:L});"auto"===L.stroke&&z.setStyle({stroke:n((D+F/x)/w)}),h.add(z),M+=T}M-=T}else M+=C}},t.prototype._renderPointer=function(e,t,r,n,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,r){var n,o=v.getItemModel(t),a=o.getModel("pointer"),s=Bn(a.get("width"),i.r),l=Bn(a.get("length"),i.r),u=e.get(["pointer","icon"]),c=a.get("offsetCenter"),d=Bn(c[0],i.r),h=Bn(c[1],i.r),f=a.get("keepAspect");return n=u?ay(u,d-s/2,h-l,s,l,null,f):new dR({shape:{angle:-Math.PI/2,width:s,r:l,x:d,y:h}}),n.rotation=-(r+Math.PI/2),n.x=i.cx,n.y=i.cy,n}function S(e,t){var r=m.get("roundCap"),n=r?RM:_m,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 n({shape:{startAngle:o,endAngle:t,cx:i.cx,cy:i.cy,clockwise:s,r0:c,r:d}});return a&&(h.z2=_-v.get(y,e)%_),h}(g||p)&&(v.diff(d).add((function(t){var r=v.get(y,t);if(p){var n=k(t,o);Wl(n,{rotation:-((isNaN(+r)?x[0]:Nn(r,w,x,!0))+Math.PI/2)},e),c.add(n),v.setItemGraphicEl(t,n)}if(g){var i=S(t,o),a=m.get("clip");Wl(i,{shape:{endAngle:Nn(r,w,x,a)}},e),c.add(i),Os(e.seriesIndex,v.dataType,t,i),f[t]=i}})).update((function(t,r){var n=v.get(y,t);if(p){var i=d.getItemGraphicEl(r),a=i?i.rotation:o,s=k(t,a);s.rotation=a,Ul(s,{rotation:-((isNaN(+n)?x[0]:Nn(n,w,x,!0))+Math.PI/2)},e),c.add(s),v.setItemGraphicEl(t,s)}if(g){var l=h[r],u=l?l.shape.endAngle:o,b=S(t,u),_=m.get("clip");Ul(b,{shape:{endAngle:Nn(n,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),r=t.getModel("emphasis"),i=r.get("focus"),o=r.get("blurScope"),a=r.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",n(Nn(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 r=e.getModel("anchor"),n=r.get("show");if(n){var i=r.get("size"),o=r.get("icon"),a=r.get("offsetCenter"),s=r.get("keepAspect"),l=ay(o,t.cx-i/2+Bn(a[0],t.r),t.cy-i/2+Bn(a[1],t.r),i,i,null,s);l.z2=r.get("showAbove")?1:0,l.setStyle(r.getModel("itemStyle").getItemStyle()),this.group.add(l)}},t.prototype._renderTitleAndDetail=function(e,t,r,n,i){var o=this,a=e.getData(),s=a.mapDimension("value"),l=+e.get("min"),u=+e.get("max"),c=new kn,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 r=a.getItemModel(t),o=a.get(s,t),m=new kn,g=n(Nn(o,[l,u],[0,1],!0)),v=r.getModel("title");if(v.get("show")){var y=v.get("offsetCenter"),b=i.cx+Bn(y[0],i.r),_=i.cy+Bn(y[1],i.r),w=d[t];w.attr({z2:p?0:2,style:nu(v,{x:b,y:_,text:a.getName(t),align:"center",verticalAlign:"middle"},{inheritColor:g})}),m.add(w)}var x=r.getModel("detail");if(x.get("show")){var k=x.get("offsetCenter"),S=i.cx+Bn(k[0],i.r),M=i.cy+Bn(k[1],i.r),C=Bn(x.get("width"),i.r),T=Bn(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:nu(x,{x:S,y:M,text:fR(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 fR(e,L)})),f&&pu(w,t,a,e,{getFormattedLabel:function(e,t,r,n,i,a){return fR(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}(Gg),mR=pR,gR=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r.visualStyleAccessPath="itemStyle",r}return a(t,e),t.prototype.getInitialData=function(e,t){return LC(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),vR=gR;function yR(e){e.registerChartView(mR),e.registerSeriesModel(vR)}var bR=["itemStyle","opacity"],_R=function(e){function t(t,r){var n=e.call(this)||this,i=n,o=new Dm,a=new Cs;return i.setTextContent(a),n.setTextGuideLine(o),n.updateData(t,r,!0),n}return a(t,e),t.prototype.updateData=function(e,t,r){var n=this,i=e.hostModel,o=e.getItemModel(t),a=e.getItemLayout(t),s=o.getModel("emphasis"),l=o.get(bR);l=null==l?1:l,r||Kl(n),n.useStyle(e.getItemVisual(t,"style")),n.style.lineJoin="round",r?(n.setShape({points:a.points}),n.style.opacity=0,Wl(n,{style:{opacity:l}},i,t)):Ul(n,{style:{opacity:l},shape:{points:a.points}},i,t),Il(n,o),this._updateLabel(e,t),Ll(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))},t.prototype._updateLabel=function(e,t){var r=this,n=this.getTextGuideLine(),i=r.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,ru(a),{labelFetcher:e.hostModel,labelDataIndex:t,defaultOpacity:u.opacity,defaultText:e.getName(t)},{normal:{align:l.textAlign,verticalAlign:l.verticalAlign}}),r.setTextConfig({local:!0,inside:!!l.inside,insideStroke:c,outsideFill:c});var d=l.linePoints;n.setShape({points:d}),r.textGuideLineConfig={anchor:d?new ye(d[0][0],d[0][1]):null},Ul(i,{style:{x:l.x,y:l.y}},o,t),i.attr({rotation:l.rotation,originX:l.x,originY:l.y,z2:10}),ow(r,aw(a),{stroke:c})},t}(Om),wR=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r.ignoreLabelLineUpdate=!0,r}return a(t,e),t.prototype.render=function(e,t,r){var n=e.getData(),i=this._data,o=this.group;n.diff(i).add((function(e){var t=new _R(n,e);n.setItemGraphicEl(e,t),o.add(t)})).update((function(e,t){var r=i.getItemGraphicEl(t);r.updateData(n,e),o.add(r),n.setItemGraphicEl(e,r)})).remove((function(t){var r=i.getItemGraphicEl(t);Xl(r,e,t)})).execute(),this._data=n},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(Gg),xR=wR,kR=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return a(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new DC(l["c"](this.getData,this),l["c"](this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.getInitialData=function(e,t){return LC(this,{coordDimensions:["value"],encodeDefaulter:l["h"](fd,this)})},t.prototype._defaultLabelLine=function(e){di(e,"labelLine",["show"]);var t=e.labelLine,r=e.emphasis.labelLine;t.show=t.show&&e.label.show,r.show=r.show&&e.emphasis.label.show},t.prototype.getDataParams=function(t){var r=this.getData(),n=e.prototype.getDataParams.call(this,t),i=r.mapDimension("value"),o=r.getSum(i);return n.percent=o?+(r.get(i,t)/o*100).toFixed(2):0,n.$vars.push("percent"),n},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),SR=kR;function MR(e,t){return Fc(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function CR(e,t){for(var r=e.mapDimension("value"),n=e.mapArray(r,(function(e){return e})),i=[],o="ascending"===t,a=0,s=e.count();aXR)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&&JR(this,"mousemove")){var t=this._model,r=t.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]),n=r.behavior;"jump"===n&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===n?null:{axisExpandWindow:r.axisExpandWindow,animation:"jump"===n?null:{duration:0}})}}};function JR(e,t){var r=e._model;return r.get("axisExpandable")&&r.get("axisExpandTriggerOn")===t}var QR=KR,eN=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}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 r=e.get("parallelIndex");return null!=r&&t.getComponent("parallel",r)===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=[],r=l["n"](this.ecModel.queryComponents({mainType:"parallelAxis"}),(function(e){return(e.get("parallelIndex")||0)===this.componentIndex}),this);l["k"](r,(function(r){e.push("dim"+r.get("dim")),t.push(r.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),tN=eN,rN=function(e){function t(t,r,n,i,o){var a=e.call(this,t,r,n)||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}(NO),nN=rN;function iN(e,t,r,n,i,o){e=e||0;var a=r[1]-r[0];if(null!=i&&(i=aN(i,[0,a])),null!=o&&(o=Math.max(o,null!=i?i:0)),"all"===n){var s=Math.abs(t[1]-t[0]);s=aN(s,[0,a]),i=o=aN(s,[i,o]),n=0}t[0]=aN(t[0],r),t[1]=aN(t[1],r);var l=oN(t,n);t[n]+=e;var u,c=i||0,d=r.slice();return l.sign<0?d[0]+=c:d[1]-=c,t[n]=aN(t[n],d),u=oN(t,n),null!=i&&(u.sign!==l.sign||u.spano&&(t[1-n]=t[n]+u.sign*o),t}function oN(e,t){var r=e[t]-e[1-t];return{span:Math.abs(r),sign:r>0?-1:r<0?1:t?-1:1}}function aN(e,t){return Math.min(null!=t[1]?t[1]:1/0,Math.max(null!=t[0]?t[0]:-1/0,e))}var sN=l["k"],lN=Math.min,uN=Math.max,cN=Math.floor,dN=Math.ceil,hN=Yn,fN=Math.PI,pN=function(){function e(e,t,r){this.type="parallel",this._axesMap=l["f"](),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,r)}return e.prototype._init=function(e,t,r){var n=e.dimensions,i=e.parallelAxisIndex;sN(n,(function(e,r){var n=i[r],o=t.getComponent("parallelAxis",n),a=this._axesMap.set(e,new nN(e,rO(o),[0,0],o.get("type"),n)),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(),r=t.axisBase,n=t.layoutBase,i=t.pixelDimIndex,o=e[1-i],a=e[i];return o>=r&&o<=r+t.axisLength&&a>=n&&a<=n+t.layoutLength},e.prototype.getModel=function(){return this._model},e.prototype._updateAxesFromSeries=function(e,t){t.eachSeries((function(r){if(e.contains(r,t)){var n=r.getData();sN(this.dimensions,(function(e){var t=this._axesMap.get(e);t.scale.unionExtentFromData(n,n.mapDimension(e)),tO(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,r=this._rect,n=["x","y"],i=["width","height"],o=t.get("layout"),a="horizontal"===o?0:1,s=r[i[a]],l=[0,s],u=this.dimensions.length,c=mN(t.get("axisExpandWidth"),l),d=mN(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=mN(f[1]-f[0],l),f[1]=f[0]+e;else{e=mN(c*(d-1),l);var p=t.get("axisExpandCenter")||cN(u/2);f=[c*p-e/2],f[1]=f[0]+e}var m=(s-e)/(u-d);m<3&&(m=0);var g=[cN(hN(f[0]/c,1))+1,dN(hN(f[1]/c,1))-1],v=m/c*f[0];return{layout:o,pixelDimIndex:a,layoutBase:r[n[a]],layoutLength:s,axisBase:r[n[1-a]],axisLength:r[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,r=this.dimensions,n=this._makeLayoutInfo(),i=n.layout;t.each((function(e){var t=[0,n.axisLength],r=e.inverse?1:0;e.setExtent(t[r],t[1-r])})),sN(r,(function(t,r){var o=(n.axisExpandable?vN:gN)(r,n),a={horizontal:{x:o.position,y:n.axisLength},vertical:{x:0,y:o.position}},s={horizontal:fN/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,r,n){null==r&&(r=0),null==n&&(n=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=r;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?iN(a,n,o,"all"):l="none";else{var h=n[1]-n[0],f=o[1]*s/h;n=[uN(0,f-h/2)],n[1]=lN(o[1],n[0]+h),n[0]=n[1]-h}return{axisExpandWindow:n,behavior:l}},e}();function mN(e,t){return lN(uN(e,t[0]),t[1])}function gN(e,t){var r=t.layoutLength/(t.axisCount-1);return{position:r*e,axisNameAvailableWidth:r,axisLabelShow:!0}}function vN(e,t){var r,n,i=t.layoutLength,o=t.axisExpandWidth,a=t.axisCount,s=t.axisCollapseWidth,l=t.winInnerIndices,u=s,c=!1;return e=0;r--)Fn(t[r])},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 r=t[0];if(r[0]<=e&&e<=r[1])return"active"}else for(var n=0,i=t.length;nLN}function qN(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function XN(e,t,r,n){var i=new kn;return i.add(new ls({name:"main",style:QN(r),silent:!0,draggable:!0,cursor:"move",drift:Object(l["h"])(iB,e,t,i,["n","s","w","e"]),ondragend:Object(l["h"])($N,t,{isEnd:!0})})),Object(l["k"])(n,(function(r){i.add(new ls({name:r.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Object(l["h"])(iB,e,t,i,r),ondragend:Object(l["h"])($N,t,{isEnd:!0})}))})),i}function KN(e,t,r,n){var i=n.brushStyle.lineWidth||0,o=CN(i,AN),a=r[0][0],s=r[1][0],l=a-i/2,u=s-i/2,c=r[0][1],d=r[1][1],h=c-o+i/2,f=d-o+i/2,p=c-a,m=d-s,g=p+i,v=m+i;JN(e,t,"main",a,s,p,m),n.transformable&&(JN(e,t,"w",l,u,o,v),JN(e,t,"e",h,u,o,v),JN(e,t,"n",l,u,g,o),JN(e,t,"s",l,f,g,o),JN(e,t,"nw",l,u,o,o),JN(e,t,"ne",h,u,o,o),JN(e,t,"sw",l,f,o,o),JN(e,t,"se",h,f,o,o))}function ZN(e,t){var r=t.__brushOption,n=r.transformable,i=t.childAt(0);i.useStyle(QN(r)),i.attr({silent:!n,cursor:n?"move":"default"}),Object(l["k"])([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],(function(r){var i=t.childOfName(r.join("")),o=1===r.length?rB(e,r[0]):nB(e,r);i&&i.attr({silent:!n,invisible:!n,cursor:n?IN[o]+"-resize":null})}))}function JN(e,t,r,n,i,o,a){var s=t.childOfName(r);s&&s.setShape(lB(sB(e,t,[[n,i],[n+o,i+a]])))}function QN(e){return Object(l["i"])({strokeNoScale:!0},e.brushStyle)}function eB(e,t,r,n){var i=[MN(e,r),MN(t,n)],o=[CN(e,r),CN(t,n)];return[[i[0],o[0]],[i[1],o[1]]]}function tB(e){return kg(e.group)}function rB(e,t){var r={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},i=Mg(r[t],tB(e));return n[i]}function nB(e,t){var r=[rB(e,t[0]),rB(e,t[1])];return("e"===r[0]||"w"===r[0])&&r.reverse(),r.join("")}function iB(e,t,r,n,i,o){var a=r.__brushOption,s=e.toRectRange(a.range),u=aB(t,i,o);Object(l["k"])(n,(function(e){var t=EN[e];s[t[0]][t[1]]+=u[t[0]]})),a.range=e.fromRectRange(eB(s[0][0],s[1][0],s[0][1],s[1][1])),zN(t,r),$N(t,{isEnd:!1})}function oB(e,t,r,n){var i=t.__brushOption.range,o=aB(e,r,n);Object(l["k"])(i,(function(e){e[0]+=o[0],e[1]+=o[1]})),zN(e,t),$N(e,{isEnd:!1})}function aB(e,t,r){var n=e.group,i=n.transformCoordToLocal(t,r),o=n.transformCoordToLocal(0,0);return[i[0]-o[0],i[1]-o[1]]}function sB(e,t,r){var n=UN(e,t);return n&&n!==SN?n.clipPath(r,e._transform):Object(l["d"])(r)}function lB(e){var t=MN(e[0][0],e[1][0]),r=MN(e[0][1],e[1][1]),n=CN(e[0][0],e[1][0]),i=CN(e[0][1],e[1][1]);return{x:t,y:r,width:n-t,height:i-r}}function uB(e,t,r){if(e._brushType&&!gB(e,t.offsetX,t.offsetY)){var n=e._zr,i=e._covers,o=VN(e,t,r);if(!e._dragging)for(var a=0;an.getWidth()||r<0||r>n.getHeight()}var vB={lineX:yB(0),lineY:yB(1),rect:{createCover:function(e,t){function r(e){return e}return XN({toRectRange:r,fromRectRange:r},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=qN(e);return eB(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,r,n){KN(e,t,r,n)},updateCommon:ZN,contain:dB},polygon:{createCover:function(e,t){var r=new kn;return r.add(new Dm({name:"main",style:QN(t),silent:!0})),r},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new Om({name:"main",draggable:!0,drift:Object(l["h"])(oB,e,t),ondragend:Object(l["h"])($N,e,{isEnd:!0})}))},updateCoverShape:function(e,t,r,n){t.childAt(0).setShape({points:sB(e,t,r)})},updateCommon:ZN,contain:dB}};function yB(e){return{createCover:function(t,r){return XN({toRectRange:function(t){var r=[t,[0,100]];return e&&r.reverse(),r},fromRectRange:function(t){return t[e]}},t,r,[[["w"],["e"]],[["n"],["s"]]][e])},getCreatingRange:function(t){var r=qN(t),n=MN(r[0][e],r[1][e]),i=CN(r[0][e],r[1][e]);return[n,i]},updateCoverShape:function(t,r,n,i){var o,a=UN(t,r);if(a!==SN&&a.getLinearBrushOtherExtent)o=a.getLinearBrushOtherExtent(e);else{var s=t._zr;o=[0,[s.getWidth(),s.getHeight()][1-e]]}var l=[n,o];e&&l.reverse(),KN(t,r,l,i)},updateCommon:ZN,contain:dB}}var bB=RN;function _B(e){return e=kB(e),function(t){return Lg(t,e)}}function wB(e,t){return e=kB(e),function(r){var n=null!=t?t:r,i=n?e.width:e.height,o=n?e.x:e.y;return[o,o+(i||0)]}}function xB(e,t,r){var n=kB(e);return function(e,i){return n.contain(i[0],i[1])&&!yA(e,t,r)}}function kB(e){return Oe.create(e)}var SB=["axisLine","axisTickLabel","axisName"],MB=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return a(t,e),t.prototype.init=function(t,r){e.prototype.init.apply(this,arguments),(this._brushController=new bB(r.getZr())).on("brush",l["c"](this._onBrush,this))},t.prototype.render=function(e,t,r,n){if(!CB(e,t,n)){this.axisModel=e,this.api=r,this.group.removeAll();var i=this._axisGroup;if(this._axisGroup=new kn,this.group.add(this._axisGroup),e.get("show")){var o=OB(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 uL(e,h);l["k"](SB,f.add,f),this._axisGroup.add(f.getGroup()),this._refreshBrushController(h,s,e,o,u,r),Og(i,this._axisGroup,e)}}},t.prototype._refreshBrushController=function(e,t,r,n,i,o){var a=r.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:_B(u),isTargetByCursor:xB(u,o,n),getLinearBrushOtherExtent:wB(u,0)}]).enableBrush({brushType:"lineX",brushStyle:t,removeOnClick:!0}).updateCovers(TB(r))},t.prototype._onBrush=function(e){var t=e.areas,r=this.axisModel,n=r.axis,i=l["H"](t,(function(e){return[n.coordToData(e.range[0],!0),n.coordToData(e.range[1],!0)]}));(!r.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:r.id,intervals:i})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(Cp);function CB(e,t,r){return r&&"axisAreaSelect"===r.type&&t.findComponents({mainType:"parallelAxis",query:r})[0]===e}function TB(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 OB(e,t){return t.getComponent("parallel",e.get("parallelIndex"))}var LB=MB,AB={type:"axisAreaSelect",event:"axisAreaSelected"};function DB(e){e.registerAction(AB,(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 EB={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function IB(e){e.registerComponentView(QR),e.registerComponentModel(tN),e.registerCoordinateSystem("parallel",wN),e.registerPreprocessor($R),e.registerComponentModel(kN),e.registerComponentView(LB),sT(e,"parallel",kN,EB),DB(e)}function jB(e){R_(IB),e.registerChartView(BR),e.registerSeriesModel(HR),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,WR)}var PB=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}(),RB=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.getDefaultShape=function(){return new PB},t.prototype.buildPath=function(e,t){var r=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+r,t.y2),e.bezierCurveTo(t.cpx2+r,t.cpy2,t.cpx1+r,t.cpy1,t.x1+r,t.y1)):(e.lineTo(t.x2,t.y2+r),e.bezierCurveTo(t.cpx2,t.cpy2+r,t.cpx1,t.cpy1+r,t.x1,t.y1+r)),e.closePath()},t.prototype.highlight=function(){cl(this)},t.prototype.downplay=function(){dl(this)},t}(Wa),NB=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r._focusAdjacencyDisabled=!1,r}return a(t,e),t.prototype.render=function(e,t,r){var n=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 r=new RB,n=Ts(r);n.dataIndex=t.dataIndex,n.seriesIndex=e.seriesIndex,n.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"),S=x.get("localY"),M=t.node2.getLayout(),C=t.node2.getModel(),T=C.get("localX"),O=C.get("localY"),L=t.getLayout();r.shape.extent=Math.max(1,L.dy),r.shape.orient=h,"vertical"===h?(i=(null!=k?k*s:w.x)+L.sy,a=(null!=S?S*u:w.y)+w.dy,c=(null!=T?T*s:M.x)+L.ty,f=null!=O?O*u:M.y,p=i,m=a*(1-_)+f*_,g=c,v=a*_+f*(1-_)):(i=(null!=k?k*s:w.x)+w.dx,a=(null!=S?S*u:w.y)+L.sy,c=null!=T?T*s:M.x,f=(null!=O?O*u:M.y)+L.ty,p=i*(1-_)+c*_,m=a,g=i*_+c*(1-_),v=f),r.setShape({x1:i,y1:a,x2:c,y2:f,cpx1:p,cpy1:m,cpx2:g,cpy2:v}),r.useStyle(b.getItemStyle()),BB(r.style,h,t);var A=""+y.get("value"),D=ru(y,"edgeLabel");tu(r,D,{labelFetcher:{getFormattedLabel:function(t,r,n,i,o,a){return e.getFormattedLabel(t,r,"edge",i,Object(l["Q"])(o,D.normal&&D.normal.get("formatter"),A),a)}},labelDataIndex:t.dataIndex,defaultText:A}),r.setTextConfig({position:"inside"});var E=y.getModel("emphasis");Il(r,y,"lineStyle",(function(e){var r=e.getItemStyle();return BB(r,h,t),r})),o.add(r),d.setItemGraphicEl(t.dataIndex,r);var I=E.get("focus");Ll(r,"adjacency"===I?t.getAdjacentDataIndices():"trajectory"===I?t.getTrajectoryDataIndices():I,E.get("blurScope"),E.get("disabled"))})),i.eachNode((function(t){var r=t.getLayout(),n=t.getModel(),i=n.get("localX"),a=n.get("localY"),l=n.getModel("emphasis"),d=new ls({shape:{x:null!=i?i*s:r.x,y:null!=a?a*u:r.y,width:r.dx,height:r.dy},style:n.getModel("itemStyle").getItemStyle(),z2:10});tu(d,ru(n),{labelFetcher:{getFormattedLabel:function(t,r){return e.getFormattedLabel(t,r,"node")}},labelDataIndex:t.dataIndex,defaultText:t.id}),d.disableLabelAnimation=!0,d.setStyle("fill",t.getVisual("color")),d.setStyle("decal",t.getVisual("style").decal),Il(d,n),o.add(d),c.setItemGraphicEl(t.dataIndex,d),Ts(d).dataType="node";var h=l.get("focus");Ll(d,"adjacency"===h?t.getAdjacentDataIndices():"trajectory"===h?t.getTrajectoryDataIndices():h,l.get("blurScope"),l.get("disabled"))})),c.eachItemGraphicEl((function(t,i){var o=c.getItemModel(i);o.get("draggable")&&(t.drift=function(t,o){n._focusAdjacencyDisabled=!0,this.shape.x+=t,this.shape.y+=o,this.dirty(),r.dispatchAction({type:"dragNode",seriesId:e.id,dataIndex:c.getRawIndex(i),localX:this.shape.x/s,localY:this.shape.y/u})},t.ondragend=function(){n._focusAdjacencyDisabled=!1},t.draggable=!0,t.cursor="move")})),!this._data&&e.isAnimationEnabled()&&o.setClipPath(YB(o.getBoundingRect(),e,(function(){o.removeClipPath()}))),this._data=e.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(Gg);function BB(e,t,r){switch(e.fill){case"source":e.fill=r.node1.getVisual("color"),e.decal=r.node1.getVisual("style").decal;break;case"target":e.fill=r.node2.getVisual("color"),e.decal=r.node2.getVisual("style").decal;break;case"gradient":var n=r.node1.getVisual("color"),i=r.node2.getVisual("color");Object(l["C"])(n)&&Object(l["C"])(i)&&(e.fill=new Xm(0,0,+("horizontal"===t),+("vertical"===t),[{color:n,offset:0},{color:i,offset:1}]))}}function YB(e,t,r){var n=new ls({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return Wl(n,{shape:{width:e.width+20}},t,r),n}var FB=NB,zB=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return a(t,e),t.prototype.getInitialData=function(e,t){var r=e.edges||e.links,n=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));if(n&&r){var s=iR(n,r,this,!0,l);return s.data}function l(e,t){e.wrapMethod("getItemModel",(function(e,t){var r=e.parentModel,n=r.getData().getItemLayout(t);if(n){var i=n.depth,o=r.levelModels[i];o&&(e.parentModel=o)}return e})),t.wrapMethod("getItemModel",(function(e,t){var r=e.parentModel,n=r.getGraph().getEdgeByIndex(t),i=n.node1.getLayout();if(i){var o=i.depth,a=r.levelModels[o];a&&(e.parentModel=a)}return e}))}},t.prototype.setNodePosition=function(e,t){var r=this.option.data||this.option.nodes,n=r[e];n.localX=t[0],n.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,r){function n(e){return isNaN(e)||null==e}if("edge"===r){var i=this.getDataParams(e,r),o=i.data,a=i.value,s=o.source+" -- "+o.target;return qf("nameValue",{name:s,value:a,noValue:n(a)})}var l=this.getGraph().getNodeByIndex(e),u=l.getLayout().value,c=this.getDataParams(e,r).data.name;return qf("nameValue",{name:null!=c?c+"":null,value:u,noValue:n(u)})},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(t,r){var n=e.prototype.getDataParams.call(this,t,r);if(null==n.value&&"node"===r){var i=this.getGraph().getNodeByIndex(t),o=i.getLayout().value;n.value=o}return n},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),HB=zB;function VB(e,t){e.eachSeriesByType("sankey",(function(e){var r=e.get("nodeWidth"),n=e.get("nodeGap"),i=UB(e,t);e.layoutInfo=i;var o=i.width,a=i.height,s=e.getGraph(),u=s.nodes,c=s.edges;$B(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");WB(u,c,r,n,o,a,h,f,p)}))}function UB(e,t){return Fc(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function WB(e,t,r,n,i,o,a,s,l){GB(e,t,r,i,o,s,l),JB(e,t,o,i,n,a,s),dY(e,s)}function $B(e){l["k"](e,(function(e){var t=uY(e.outEdges,lY),r=uY(e.inEdges,lY),n=e.getValue()||0,i=Math.max(t,r,n);e.setLayout({value:i},!0)}))}function GB(e,t,r,n,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:r},!0):m.setLayout({dx:r},!0);for(var y=0;yd-1?f:d-1;a&&"left"!==a&&XB(e,a,o,k);var S="vertical"===o?(i-r)/k:(n-r)/k;ZB(e,S,o)}function qB(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return null!=t.depth&&t.depth>=0}function XB(e,t,r,n){if("right"===t){var i=[],o=e,a=0;while(o.length){for(var s=0;s0;o--)l*=.99,rY(s,l,a),tY(s,i,r,n,a),cY(s,l,a),tY(s,i,r,n,a)}function QB(e,t){var r=[],n="vertical"===t?"y":"x",i=Hi(e,(function(e){return e.getLayout()[n]}));return i.keys.sort((function(e,t){return e-t})),l["k"](i.keys,(function(e){r.push(i.buckets.get(e))})),r}function eY(e,t,r,n,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?(n-(t-1)*i)/s:(r-(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?n:r;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 rY(e,t,r){l["k"](e.slice().reverse(),(function(e){l["k"](e,(function(e){if(e.outEdges.length){var n=uY(e.outEdges,nY,r)/uY(e.outEdges,lY);if(isNaN(n)){var i=e.outEdges.length;n=i?uY(e.outEdges,iY,r)/i:0}if("vertical"===r){var o=e.getLayout().x+(n-sY(e,r))*t;e.setLayout({x:o},!0)}else{var a=e.getLayout().y+(n-sY(e,r))*t;e.setLayout({y:a},!0)}}}))}))}function nY(e,t){return sY(e.node2,t)*e.getValue()}function iY(e,t){return sY(e.node2,t)}function oY(e,t){return sY(e.node1,t)*e.getValue()}function aY(e,t){return sY(e.node1,t)}function sY(e,t){return"vertical"===t?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function lY(e){return e.getValue()}function uY(e,t,r){var n=0,i=e.length,o=-1;while(++oo&&(o=t)})),l["k"](r,(function(t){var r=new dj({type:"color",mappingMethod:"linear",dataExtent:[i,o],visual:e.get("color")}),n=r.mapValueToVisual(t.getLayout().value),a=t.getModel().get(["itemStyle","color"]);null!=a?(t.setVisual("color",a),t.setVisual("style",{fill:a})):(t.setVisual("color",n),t.setVisual("style",{fill:n}))}))}n.length&&l["k"](n,(function(e){var t=e.getModel().get("lineStyle");e.setVisual("style",t)}))}))}function fY(e){e.registerChartView(FB),e.registerSeriesModel(HB),e.registerLayout(VB),e.registerVisual(hY),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 pY=function(){function e(){}return e.prototype.getInitialData=function(e,t){var r,n,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",r=i.getOrdinalMeta(),n=!0):"category"===s?(e.layout="vertical",r=o.getOrdinalMeta(),n=!0):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&&n){var v=[];l["k"](g,(function(e,t){var r;l["t"](e)?(r=e.slice(),e.unshift(t)):l["t"](e.value)?(r=l["m"]({},e),r.value=r.value.slice(),e.value.unshift(t)):r=e,v.push(r)})),e.data=v}var y=this.defaultValueDimensions,b=[{name:d,type:kk(p),ordinalMeta:r,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:kk(m),dimsDef:y.slice()}];return LC(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}(),mY=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],r.visualDrawType="stroke",r}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"])(mY,pY,!0);var gY=mY,vY=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return a(t,e),t.prototype.render=function(e,t,r){var n=e.getData(),i=this.group,o=this._data;this._data||i.removeAll();var a="horizontal"===e.get("layout")?1:0;n.diff(o).add((function(e){if(n.hasValue(e)){var t=n.getItemLayout(e),r=_Y(t,n,e,a,!0);n.setItemGraphicEl(e,r),i.add(r)}})).update((function(e,t){var r=o.getItemGraphicEl(t);if(n.hasValue(e)){var s=n.getItemLayout(e);r?(Kl(r),wY(s,r,n,e)):r=_Y(s,n,e,a),i.add(r),n.setItemGraphicEl(e,r)}else i.remove(r)})).remove((function(e){var t=o.getItemGraphicEl(e);t&&i.remove(t)})).execute(),this._data=n},t.prototype.remove=function(e){var t=this.group,r=this._data;this._data=null,r&&r.eachItemGraphicEl((function(e){e&&t.remove(e)}))},t.type="boxplot",t}(Gg),yY=function(){function e(){}return e}(),bY=function(e){function t(t){var r=e.call(this,t)||this;return r.type="boxplotBoxPath",r}return a(t,e),t.prototype.getDefaultShape=function(){return new yY},t.prototype.buildPath=function(e,t){var r=t.points,n=0;for(e.moveTo(r[n][0],r[n][1]),n++;n<4;n++)e.lineTo(r[n][0],r[n][1]);for(e.closePath();ng){var w=[y,_];n.push(w)}}}return{boxData:r,outliers:n}}var AY={type:"echarts:boxplot",transform:function(e){var t=e.upstream;if(t.sourceFormat!==rd){var r="";0,Ed(r)}var n=LY(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:n.boxData},{data:n.outliers}]}};function DY(e){e.registerSeriesModel(gY),e.registerChartView(kY),e.registerLayout(MY),e.registerTransform(AY)}var EY=["color","borderColor"],IY=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return a(t,e),t.prototype.render=function(e,t,r){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,t,r){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,t,r,n){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(e,t):this._incrementalRenderNormal(e,t)},t.prototype.eachRendered=function(e){Bg(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(),r=this._data,n=this.group,i=t.getLayout("isSimpleBox"),o=e.get("clip",!0),a=e.coordinateSystem,s=a.getArea&&a.getArea();this._data||n.removeAll(),t.diff(r).add((function(r){if(t.hasValue(r)){var a=t.getItemLayout(r);if(o&&NY(s,a))return;var l=RY(a,r,!0);Wl(l,{shape:{points:a.ends}},e,r),BY(l,t,r,i),n.add(l),t.setItemGraphicEl(r,l)}})).update((function(a,l){var u=r.getItemGraphicEl(l);if(t.hasValue(a)){var c=t.getItemLayout(a);o&&NY(s,c)?n.remove(u):(u?(Ul(u,{shape:{points:c.ends}},e,a),Kl(u)):u=RY(c,a),BY(u,t,a,i),n.add(u),t.setItemGraphicEl(a,u))}else n.remove(u)})).remove((function(e){var t=r.getItemGraphicEl(e);t&&n.remove(t)})).execute(),this._data=t},t.prototype._renderLarge=function(e){this._clear(),HY(e,this.group);var t=e.get("clip",!0)?US(e.coordinateSystem,!1,e):null;t?this.group.setClipPath(t):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(e,t){var r,n=t.getData(),i=n.getLayout("isSimpleBox");while(null!=(r=e.next())){var o=n.getItemLayout(r),a=RY(o,r);BY(a,n,r,i),a.incremental=!0,this.group.add(a),this._progressiveEls.push(a)}},t.prototype._incrementalRenderLarge=function(e,t){HY(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}(Gg),jY=function(){function e(){}return e}(),PY=function(e){function t(t){var r=e.call(this,t)||this;return r.type="normalCandlestickBox",r}return a(t,e),t.prototype.getDefaultShape=function(){return new jY},t.prototype.buildPath=function(e,t){var r=t.points;this.__simpleBox?(e.moveTo(r[4][0],r[4][1]),e.lineTo(r[6][0],r[6][1])):(e.moveTo(r[0][0],r[0][1]),e.lineTo(r[1][0],r[1][1]),e.lineTo(r[2][0],r[2][1]),e.lineTo(r[3][0],r[3][1]),e.closePath(),e.moveTo(r[4][0],r[4][1]),e.lineTo(r[5][0],r[5][1]),e.moveTo(r[6][0],r[6][1]),e.lineTo(r[7][0],r[7][1]))},t}(Wa);function RY(e,t,r){var n=e.ends;return new PY({shape:{points:r?YY(n,e):n},z2:100})}function NY(e,t){for(var r=!0,n=0;n0?"borderColor":"borderColor0"])||r.get(["itemStyle",e>0?"color":"color0"]);0===e&&(i=r.get(["itemStyle","borderColorDoji"]));var o=r.getModel("itemStyle").getItemStyle(EY);t.useStyle(o),t.style.fill=null,t.style.stroke=i}var UY=IY,WY=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],r}return a(t,e),t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(e,t,r){var n=t.getItemLayout(e);return n&&r.rect(n.brushRect)},t.type="series.candlestick",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},t}(Sp);Object(l["K"])(WY,pY,!0);var $Y=WY;function GY(e){e&&l["t"](e.series)&&l["k"](e.series,(function(e){l["A"](e)&&"k"===e.type&&(e.type="candlestick")}))}var qY=["itemStyle","borderColor"],XY=["itemStyle","borderColor0"],KY=["itemStyle","borderColorDoji"],ZY=["itemStyle","color"],JY=["itemStyle","color0"],QY={seriesType:"candlestick",plan:Tp(),performRawSeries:!0,reset:function(e,t){function r(e,t){return t.get(e>0?ZY:JY)}function n(e,t){return t.get(0===e?KY:e>0?qY:XY)}if(!t.isSeriesFiltered(e)){var i=e.pipelineContext.large;return!i&&{progress:function(e,t){var i;while(null!=(i=e.next())){var o=t.getItemModel(i),a=t.getItemLayout(i).sign,s=o.getItemStyle();s.fill=r(a,o),s.stroke=n(a,o)||s.fill;var u=t.ensureUniqueItemVisual(i,"style");Object(l["m"])(u,s)}}}}}},eF=QY,tF={seriesType:"candlestick",plan:Tp(),reset:function(e){var t=e.coordinateSystem,r=e.getData(),n=nF(e,r),i=0,o=1,a=["x","y"],s=r.getDimensionIndex(r.mapDimension(a[i])),u=Object(l["H"])(r.mapDimensionsAll(a[o]),r.getDimensionIndex,r),c=u[0],d=u[1],h=u[2],f=u[3];if(r.setLayout({candleWidth:n,isSimpleBox:n<=1.3}),!(s<0||u.length<4))return{progress:e.pipelineContext.large?m:p};function p(e,r){var a,l=r.getStore();while(null!=(a=e.next())){var u=l.get(s,a),p=l.get(c,a),m=l.get(d,a),g=l.get(h,a),v=l.get(f,a),y=Math.min(p,m),b=Math.max(p,m),_=T(y,u),w=T(b,u),x=T(g,u),k=T(v,u),S=[];O(S,w,0),O(S,_,1),S.push(A(k),A(w),A(x),A(_));var M=r.getItemModel(a),C=!!M.get(["itemStyle","borderColorDoji"]);r.setItemLayout(a,{sign:rF(l,a,p,m,d,C),initBaseline:p>m?w[o]:_[o],ends:S,brushRect:L(g,v,u)})}function T(e,r){var n=[];return n[i]=r,n[o]=e,isNaN(r)||isNaN(e)?[NaN,NaN]:t.dataToPoint(n)}function O(e,t,r){var o=t.slice(),a=t.slice();o[i]=xg(o[i]+n/2,1,!1),a[i]=xg(a[i]-n/2,1,!0),r?e.push(o,a):e.push(a,o)}function L(e,t,r){var a=T(e,r),s=T(t,r);return a[i]-=n/2,s[i]-=n/2,{x:a[0],y:a[1],width:o?n:s[0]-a[0],height:o?s[1]-a[1]:n}}function A(e){return e[i]=xg(e[i],1),e}}function m(r,n){var a,l,u=DS(4*r.count),p=0,m=[],g=[],v=n.getStore(),y=!!e.get(["itemStyle","borderColorDoji"]);while(null!=(l=r.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++]=rF(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)}n.setLayout("largePoints",u)}}};function rF(e,t,r,n,i,o){var a;return a=r>n?-1:r0?e.get(i,t-1)<=n?1:-1:1,a}function nF(e,t){var r,n=e.getBaseAxis(),i="category"===n.type?n.getBandWidth():(r=n.getExtent(),Math.abs(r[1]-r[0])/t.count()),o=Bn(Object(l["P"])(e.get("barMaxWidth"),i),i),a=Bn(Object(l["P"])(e.get("barMinWidth"),1),i),s=e.get("barWidth");return null!=s?Bn(s,i):Math.max(Math.min(i/2,o),a)}var iF=tF;function oF(e){e.registerChartView(UY),e.registerSeriesModel($Y),e.registerPreprocessor(GY),e.registerVisual(eF),e.registerLayout(iF)}function aF(e,t){var r=t.rippleEffectColor||t.color;e.eachChild((function(e){e.attr({z:t.z,zlevel:t.zlevel,style:{stroke:"stroke"===t.brushType?r:null,fill:"fill"===t.brushType?r:null}})}))}var sF=function(e){function t(t,r){var n=e.call(this)||this,i=new _S(t,r),o=new kn;return n.add(i),n.add(o),n.updateData(t,r),n}return a(t,e),t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(e){for(var t=e.symbolType,r=e.color,n=e.rippleNumber,i=this.childAt(1),o=0;o0&&(o=this._getLineLength(n)/u*1e3),o!==this._period||a!==this._loop||s!==this._roundTrip){n.stopAnimation();var d=void 0;d=l["w"](c)?c(r):c,n.__t>0&&(d=-o*n.__t),this._animateSymbol(n,o,d,a,s)}this._period=o,this._loop=a,this._roundTrip=s}},t.prototype._animateSymbol=function(e,t,r,n,i){if(t>0){e.__t=0;var o=this,a=e.animate("",n).when(i?2*t:t,{__t:i?2:1}).delay(r).during((function(){o._updateSymbolPosition(e)}));n||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,r){this.childAt(0).updateData(e,t,r),this._updateEffectSymbol(e,t)},t.prototype._updateSymbolPosition=function(e){var t=e.__p1,r=e.__p2,n=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],n[0],r[0],i),o[1]=s(t[1],n[1],r[1],i);var u=e.__t<1?l(t[0],n[0],r[0],i):l(r[0],n[0],t[0],1-i),c=e.__t<1?l(t[1],n[1],r[1],i):l(r[1],n[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(n[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-n[o])/(n[o+1]-n[o]),u=r[o],c=r[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}(mF),bF=yF,_F=function(){function e(){this.polyline=!1,this.curveness=0,this.segs=[]}return e}(),wF=function(e){function t(t){var r=e.call(this,t)||this;return r._off=0,r.hoverDataIdx=-1,r}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 _F},t.prototype.buildPath=function(e,t){var r,n=t.segs,i=t.curveness;if(t.polyline)for(r=this._off;r0){e.moveTo(n[r++],n[r++]);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=r,this.notClear=!0)},t.prototype.findDataIndex=function(e,t){var r=this.shape,n=r.segs,i=r.curveness,o=this.style.lineWidth;if(r.polyline)for(var a=0,s=0;s0)for(var u=n[s++],c=n[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 r=this.transformCoordToLocal(e,t),n=this.getBoundingRect();if(e=r[0],t=r[1],n.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,r=t.segs,n=1/0,i=1/0,o=-1/0,a=-1/0,s=0;s0&&(o.dataIndex=r+e.__startIndex)}))},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),kF=xF,SF={seriesType:"lines",plan:Tp(),reset:function(e){var t=e.coordinateSystem;if(t){var r=e.get("polyline"),n=e.pipelineContext.large;return{progress:function(i,o){var a=[];if(n){var s=void 0,l=i.end-i.start;if(r){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(n);var u=e.get("clip",!0)&&US(e.coordinateSystem,!1,e);u?this.group.setClipPath(u):this.group.removeClipPath(),this._lastZlevel=o,this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,r){var n=e.getData(),i=this._updateLineDraw(n,e);i.incrementalPrepareUpdate(n),this._clearLayer(r),this._finished=!1},t.prototype.incrementalRender=function(e,t,r){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,r){var n=e.getData(),i=e.pipelineContext;if(!this._finished||i.large||i.progressiveRender)return{update:!0};var o=MF.reset(e,t,r);o.progress&&o.progress({start:0,end:n.count(),count:n.count()},n),this._lineDraw.updateLayout(),this._clearLayer(r)},t.prototype._updateLineDraw=function(e,t){var r=this._lineDraw,n=this._showEffect(t),i=!!t.get("polyline"),o=t.pipelineContext,a=o.large;return r&&n===this._hasEffet&&i===this._isPolyline&&a===this._isLargeDraw||(r&&r.remove(),r=this._lineDraw=a?new kF:new FP(i?n?bF:vF:n?mF:jP),this._hasEffet=n,this._isPolyline=i,this._isLargeDraw=a),this.group.add(r.group),r},t.prototype._showEffect=function(e){return!!e.get(["effect","show"])},t.prototype._clearLayer=function(e){var t=e.getZr(),r="svg"===t.painter.getType();r||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}(Gg),TF=CF,OF="undefined"===typeof Uint32Array?Array:Uint32Array,LF="undefined"===typeof Float64Array?Array:Float64Array;function AF(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],r={coords:t};return e[0].name&&(r.fromName=e[0].name),e[1].name&&(r.toName=e[1].name),Object(l["J"])([r,e[0],e[1]])})))}var DF=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r.visualStyleAccessPath="lineStyle",r.visualDrawType="stroke",r}return a(t,e),t.prototype.init=function(t){t.data=t.data||[],AF(t);var r=this._processFlatCoordsArray(t.data);this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset,r.flatCoords&&(t.data=new Float32Array(r.count)),e.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(t){if(AF(t),t.data){var r=this._processFlatCoordsArray(t.data);this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset,r.flatCoords&&(t.data=new Float32Array(r.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),r=t.option instanceof Array?t.option:t.getShallow("coords");return r},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 r=this._flatCoordsOffset[2*e],n=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),EF=DF;function IF(e){return e instanceof Array||(e=[e,e]),e}var jF={seriesType:"lines",reset:function(e){var t=IF(e.get("symbol")),r=IF(e.get("symbolSize")),n=e.getData();function i(e,t){var r=e.getItemModel(t),n=IF(r.getShallow("symbol",!0)),i=IF(r.getShallow("symbolSize",!0));n[0]&&e.setItemVisual(t,"fromSymbol",n[0]),n[1]&&e.setItemVisual(t,"toSymbol",n[1]),i[0]&&e.setItemVisual(t,"fromSymbolSize",i[0]),i[1]&&e.setItemVisual(t,"toSymbolSize",i[1])}return n.setVisual("fromSymbol",t&&t[0]),n.setVisual("toSymbol",t&&t[1]),n.setVisual("fromSymbolSize",r&&r[0]),n.setVisual("toSymbolSize",r&&r[1]),{dataEach:n.hasItemOption?i:null}}},PF=jF;function RF(e){e.registerChartView(TF),e.registerSeriesModel(EF),e.registerLayout(MF),e.registerVisual(PF)}var NF=256,BF=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=Zr["d"].createCanvas();this.canvas=e}return e.prototype.update=function(e,t,r,n,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=r;for(var f=0;f0){var T=o(y)?s:l;y>0&&(y=y*M+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=Zr["d"].createCanvas()),t=this.pointSize+this.blurSize,r=2*t;e.width=r,e.height=r;var n=e.getContext("2d");return n.clearRect(0,0,r,r),n.shadowOffsetX=r,n.shadowBlur=this.blurSize,n.shadowColor="#000",n.beginPath(),n.arc(-t,t,this.pointSize,0,2*Math.PI,!0),n.closePath(),n.fill(),e},e.prototype._getGradient=function(e,t){for(var r=this._gradientPixels,n=r[t]||(r[t]=new Uint8ClampedArray(1024)),i=[0,0,0,0],o=0,a=0;a<256;a++)e[t](a/255,!0,i),n[o++]=i[0],n[o++]=i[1],n[o++]=i[2],n[o++]=i[3];return n},e}(),YF=BF;function FF(e,t,r){var n=e[1]-e[0];t=l["H"](t,(function(t){return{interval:[(t.interval[0]-e[0])/n,(t.interval[1]-e[0])/n]}}));var i=t.length,o=0;return function(e){var n;for(n=o;n=0;n--){a=t[n].interval;if(a[0]<=e&&e<=a[1]){o=n;break}}return n>=0&&n=t[0]&&e<=t[1]}}function HF(e){var t=e.dimensions;return"lng"===t[0]&&"lat"===t[1]}var VF=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return a(t,e),t.prototype.render=function(e,t,r){var n;t.eachComponent("visualMap",(function(t){t.eachTargetSeries((function(r){r===e&&(n=t)}))})),this._progressiveEls=null,this.group.removeAll();var i=e.coordinateSystem;"cartesian2d"===i.type||"calendar"===i.type?this._renderOnCartesianAndCalendar(e,r,0,e.getData().count()):HF(i)&&this._renderOnGeo(i,e,n,r)},t.prototype.incrementalPrepareRender=function(e,t,r){this.group.removeAll()},t.prototype.incrementalRender=function(e,t,r,n){var i=t.coordinateSystem;i&&(HF(i)?this.render(t,r,n):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(t,n,e.start,e.end,!0)))},t.prototype.eachRendered=function(e){Bg(this._progressiveEls||this.group,e)},t.prototype._renderOnCartesianAndCalendar=function(e,t,r,n,i){var o,a,s,l,u=e.coordinateSystem,c=WS(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=ru(e),_=e.getModel("emphasis"),w=_.get("focus"),x=_.get("blurScope"),k=_.get("disabled"),S=c?[p.mapDimension("x"),p.mapDimension("y"),p.mapDimension("value")]:[p.mapDimension("time"),p.mapDimension("value")],M=r;Ms[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(S[1],M)))continue;C=new ls({z2:1,shape:u.dataToRect([p.get(S[0],M)]).contentShape,style:T})}if(p.hasItemOption){var D=p.getItemModel(M),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=ru(D)}C.shape.r=y;var I=e.getRawValue(M),j="-";I&&null!=I[2]&&(j=I[2]+""),tu(C,b,{labelFetcher:e,labelDataIndex:M,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(M,C),this._progressiveEls&&this._progressiveEls.push(C)}},t.prototype._renderOnGeo=function(e,t,r,n){var i=r.targetVisuals.inRange,o=r.targetVisuals.outOfRange,a=t.getData(),s=this._hmLayer||this._hmLayer||new YF;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,n.getWidth()),f=Math.min(l.height+l.y,n.getHeight()),p=h-c,m=f-d,g=[a.mapDimension("lng"),a.mapDimension("lat"),a.mapDimension("value")],v=a.mapArray(g,(function(t,r,n){var i=e.dataToPoint([t,r]);return i[0]-=c,i[1]-=d,i.push(n),i})),y=r.getExtent(),b="visualMap.continuous"===r.type?zF(y,r.option.range):FF(y,r.getPieceList(),r.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}(Gg),UF=VF,WF=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return a(t,e),t.prototype.getInitialData=function(e,t){return fS(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),$F=WF;function GF(e){e.registerChartView(UF),e.registerSeriesModel($F)}var qF=["itemStyle","borderWidth"],XF=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],KF=new Qp,ZF=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return a(t,e),t.prototype.render=function(e,t,r){var n=this.group,i=e.getData(),o=this._data,a=e.coordinateSystem,s=a.getBaseAxis(),l=s.isHorizontal(),u=a.master.getRect(),c={ecSize:{width:r.getWidth(),height:r.getHeight()},seriesModel:e,coordSys:a,coordSysExtent:[[u.x,u.x+u.width],[u.y,u.y+u.height]],isHorizontal:l,valueDim:XF[+l],categoryDim:XF[1-+l]};i.diff(o).add((function(e){if(i.hasValue(e)){var t=uz(i,e),r=JF(i,e,t,c),o=hz(i,c,r);i.setItemGraphicEl(e,o),n.add(o),yz(o,c,r)}})).update((function(e,t){var r=o.getItemGraphicEl(t);if(i.hasValue(e)){var a=uz(i,e),s=JF(i,e,a,c),l=mz(i,s);r&&l!==r.__pictorialShapeStr&&(n.remove(r),i.setItemGraphicEl(e,null),r=null),r?fz(r,c,s):r=hz(i,c,s,!0),i.setItemGraphicEl(e,r),r.__pictorialSymbolMeta=s,n.add(r),yz(r,c,s)}else n.remove(r)})).remove((function(e){var t=o.getItemGraphicEl(e);t&&pz(o,e,t.__pictorialSymbolMeta.animationModel,t)})).execute();var d=e.get("clip",!0)?US(e.coordinateSystem,!1,e):null;return d?n.setClipPath(d):n.removeClipPath(),this._data=i,this.group},t.prototype.remove=function(e,t){var r=this.group,n=this._data;e.get("animation")?n&&n.eachItemGraphicEl((function(t){pz(n,Ts(t).dataIndex,e,t)})):r.removeAll()},t.type="pictorialBar",t}(Gg);function JF(e,t,r,n){var i=e.getItemLayout(t),o=r.get("symbolRepeat"),a=r.get("symbolClip"),s=r.get("symbolPosition")||"start",l=r.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=r.get("symbolPatternSize")||2,d=r.isAnimationEnabled(),h={dataIndex:t,layout:i,itemModel:r,symbolType:e.getItemVisual(t,"symbol")||"circle",style:e.getItemVisual(t,"style"),symbolClip:a,symbolRepeat:o,symbolRepeatDirection:r.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:d?r:null,hoverScale:d&&r.get(["emphasis","scale"]),z2:r.getShallow("z",!0)||0};QF(r,o,i,n,h),tz(e,t,i,o,a,h.boundingLength,h.pxSign,c,n,h),rz(r,h.symbolScale,u,n,h);var f=h.symbolSize,p=ly(r.get("symbolOffset"),f);return nz(r,f,i,o,a,p,s,h.valueLineWidth,h.boundingLength,h.repeatCutLength,n,h),h}function QF(e,t,r,n,i){var o,a=n.valueDim,s=e.get("symbolBoundingData"),u=n.coordSys.getOtherAxis(n.coordSys.getBaseAxis()),c=u.toGlobalCoord(u.dataToCoord(0)),d=1-+(r[a.wh]<=0);if(l["t"](s)){var h=[ez(u,s[0])-c,ez(u,s[1])-c];h[1]0?1:-1}function ez(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function tz(e,t,r,n,i,o,a,s,u,c){var d,h=u.valueDim,f=u.categoryDim,p=Math.abs(r[f.wh]),m=e.getItemVisual(t,"symbolSize");d=l["t"](m)?m.slice():null==m?["100%","100%"]:[m,m],d[f.index]=Bn(d[f.index],p),d[h.index]=Bn(d[h.index],n?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 rz(e,t,r,n,i){var o=e.get(qF)||0;o&&(KF.attr({scaleX:t[0],scaleY:t[1],rotation:r}),KF.updateTransform(),o/=KF.getLineScale(),o*=t[n.valueDim.index]),i.valueLineWidth=o||0}function nz(e,t,r,n,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(n){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=Bn(b,t[p.index]),x=Math.max(g+2*w,0),k=_?0:2*w,S=ni(n),M=S?n:bz((y+k)/x),C=y-M*g;w=C/2/(_?M:Math.max(M-1,1)),x=g+2*w,k=_?0:2*w,S||"fixed"===n||(M=c?bz((Math.abs(c)+k)/x):0),v=M*x-k,h.repeatTimes=M,h.symbolMargin=w}var T=m*(v/2),O=h.pathPosition=[];O[f.index]=r[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]=r[f.xy],L[p.index]=r[p.xy];var A=h.barRectShape=l["m"]({},r);A[p.wh]=m*Math.max(Math.abs(r[p.wh]),Math.abs(O[p.index]+T)),A[f.wh]=r[f.wh];var D=h.clipShape={};D[f.xy]=-r[f.xy],D[f.wh]=d.ecSize[f.wh],D[p.xy]=0,D[p.wh]=r[p.wh]}function iz(e){var t=e.symbolPatternSize,r=ay(e.symbolType,-t/2,-t/2,t,t);return r.attr({culling:!0}),"image"!==r.type&&r.setStyle({strokeNoScale:!0}),r}function oz(e,t,r,n){var i=e.__pictorialBundle,o=r.symbolSize,a=r.valueLineWidth,s=r.pathPosition,l=t.valueDim,u=r.repeatTimes||0,c=0,d=o[t.valueDim.index]+a+2*r.symbolMargin;for(gz(e,(function(e){e.__pictorialAnimationIndex=c,e.__pictorialRepeatTimes=u,c0:n<0)&&(i=u-1-e),t[l.index]=d*(i-u/2+.5)+s[l.index],{x:t[0],y:t[1],scaleX:r.symbolScale[0],scaleY:r.symbolScale[1],rotation:r.rotation}}}function az(e,t,r,n){var i=e.__pictorialBundle,o=e.__pictorialMainPath;o?vz(o,null,{x:r.pathPosition[0],y:r.pathPosition[1],scaleX:r.symbolScale[0],scaleY:r.symbolScale[1],rotation:r.rotation},r,n):(o=e.__pictorialMainPath=iz(r),i.add(o),vz(o,{x:r.pathPosition[0],y:r.pathPosition[1],scaleX:0,scaleY:0,rotation:r.rotation},{scaleX:r.symbolScale[0],scaleY:r.symbolScale[1]},r,n))}function sz(e,t,r){var n=l["m"]({},t.barRectShape),i=e.__pictorialBarRect;i?vz(i,null,{shape:n},t,r):(i=e.__pictorialBarRect=new ls({z2:2,shape:n,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),i.disableMorphing=!0,e.add(i))}function lz(e,t,r,i){if(r.symbolClip){var o=e.__pictorialClipPath,a=l["m"]({},r.clipShape),s=t.valueDim,u=r.animationModel,c=r.dataIndex;if(o)Ul(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]=r.clipShape[s.wh],n[i?"updateProps":"initProps"](o,{shape:d},u,c)}}}function uz(e,t){var r=e.getItemModel(t);return r.getAnimationDelayParams=cz,r.isAnimationEnabled=dz,r}function cz(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function dz(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function hz(e,t,r,n){var i=new kn,o=new kn;return i.add(o),i.__pictorialBundle=o,o.x=r.bundlePosition[0],o.y=r.bundlePosition[1],r.symbolRepeat?oz(i,t,r):az(i,t,r),sz(i,r,n),lz(i,t,r,n),i.__pictorialShapeStr=mz(e,r),i.__pictorialSymbolMeta=r,i}function fz(e,t,r){var n=r.animationModel,i=r.dataIndex,o=e.__pictorialBundle;Ul(o,{x:r.bundlePosition[0],y:r.bundlePosition[1]},n,i),r.symbolRepeat?oz(e,t,r,!0):az(e,t,r,!0),sz(e,r,!0),lz(e,t,r,!0)}function pz(e,t,r,n){var i=n.__pictorialBarRect;i&&i.removeTextContent();var o=[];gz(n,(function(e){o.push(e)})),n.__pictorialMainPath&&o.push(n.__pictorialMainPath),n.__pictorialClipPath&&(r=null),l["k"](o,(function(e){Gl(e,{scaleX:0,scaleY:0},r,t,(function(){n.parent&&n.parent.remove(n)}))})),e.setItemGraphicEl(t,null)}function mz(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function gz(e,t,r){l["k"](e.__pictorialBundle.children(),(function(n){n!==e.__pictorialBarRect&&t.call(r,n)}))}function vz(e,t,r,i,o,a){t&&e.attr(t),i.symbolClip&&!o?r&&e.attr(r):r&&n[o?"updateProps":"initProps"](e,r,i.animationModel,i.dataIndex,a)}function yz(e,t,r){var n=r.dataIndex,i=r.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");gz(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},r.style))}else e.useStyle(r.style);var n=e.ensureState("emphasis");n.style=a,f&&(n.scaleX=1.1*e.scaleX,n.scaleY=1.1*e.scaleY),e.ensureState("blur").style=s,e.ensureState("select").style=u,c&&(e.cursor=c),e.z2=r.z2}));var p=t.valueDim.posDesc[+(r.boundingLength>0)],m=e.__pictorialBarRect;m.ignoreClip=!0,tu(m,ru(i),{labelFetcher:t.seriesModel,labelDataIndex:n,defaultText:gS(t.seriesModel.getData(),n),inheritColor:r.style.fill,defaultOpacity:r.style.opacity,defaultOutsidePosition:p}),Ll(e,d,h,o.get("disabled"))}function bz(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}var _z=ZF,wz=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r.defaultSymbol="roundRect",r}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(DM.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}(DM),xz=wz;function kz(e){e.registerChartView(_z),e.registerSeriesModel(xz),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Object(l["h"])(MM,"pictorialBar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,CM("pictorialBar"))}var Sz=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r._layers=[],r}return a(t,e),t.prototype.render=function(e,t,r){var n=e.getData(),i=this,o=this.group,a=e.getLayerSeries(),s=n.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 bk(this._layersSeries||[],a,d,d),f=[];function p(t,r,s){var l=i._layers;if("remove"!==t){for(var u,c,d=[],h=[],p=a[r].indices,m=0;mo&&(o=s),n.push(s)}for(var u=0;uo&&(o=d)}return{y0:i,max:o}}function Iz(e){e.registerChartView(Cz),e.registerSeriesModel(Lz),e.registerLayout(Az),e.registerProcessor(bC("themeRiver"))}var jz=2,Pz=4,Rz=function(e){function t(t,r,n,i){var o=e.call(this)||this;o.z2=jz,o.textConfig={inside:!0},Ts(o).seriesIndex=r.seriesIndex;var a=new Cs({z2:Pz,silent:t.getModel().get(["label","silent"])});return o.setTextContent(a),o.updateData(!0,t,r,n,i),o}return a(t,e),t.prototype.updateData=function(e,t,r,n,i){this.node=t,t.piece=this,r=r||this._seriesModel,n=n||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=Xy(h,i));var f=zM(a.getModel("itemStyle"),c,!0);l["m"](c,f),l["k"](Rs,(function(e){var t=o.ensureState(e),r=a.getModel([e,"itemStyle"]);t.style=r.getItemStyle();var n=zM(r,c);n&&(t.shape=n)})),e?(o.setShape(c),o.shape.r=u.r0,Wl(o,{shape:{r:u.r}},r,t.dataIndex)):(Ul(o,{shape:c},r),Kl(o)),o.useStyle(d),this._updateLabel(r);var p=a.getShallow("cursor");p&&o.attr("cursor",p),this._seriesModel=r||this._seriesModel,this._ecModel=n||this._ecModel;var m=s.get("focus"),g="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,r=this.node.getModel(),n=r.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=n.get("minAngle")/180*Math.PI,p=n.get("show")&&!(null!=f&&Math.abs(o)C&&!qn(O-C)&&O0?(i.virtualPiece?i.virtualPiece.updateData(!1,n,e,t,r):(i.virtualPiece=new Nz(n,e,t,r),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 r=!1,n=e.seriesModel.getViewRoot();n.eachNode((function(n){if(!r&&n.piece&&n.piece===t.target){var i=n.getModel().get("nodeClick");if("rootToNode"===i)e._rootToNode(n);else if("link"===i){var o=n.getModel(),a=o.get("link");if(a){var s=o.get("target",!0)||"_blank";Ic(a,s)}}r=!0}}))}))},t.prototype._rootToNode=function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:Bz,from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},t.prototype.containPoint=function(e,t){var r=t.getData(),n=r.getItemLayout(0);if(n){var i=e[0]-n.cx,o=e[1]-n.cy,a=Math.sqrt(i*i+o*o);return a<=n.r&&a>=n.r0}},t.type="sunburst",t}(Gg),Vz=Hz,Uz=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r.ignoreStyleOnData=!0,r}return a(t,e),t.prototype.getInitialData=function(e,t){var r={name:e.name,children:e.data};Wz(r);var n=this._levelModels=l["H"](e.levels||[],(function(e){return new Tu(e,this,t)}),this),i=rI.createTree(r,this,o);function o(e){e.wrapMethod("getItemModel",(function(e,t){var r=i.getNodeByDataIndex(t),o=n[r.depth];return o&&(e.parentModel=o),e}))}return i.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(t){var r=e.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(t);return r.treePathInfo=aI(n,this),r},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(){yI(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 Wz(e){var t=0;l["k"](e.children,(function(e){Wz(e);var r=e.value;l["t"](r)&&(r=r[0]),t+=r}));var r=e.value;l["t"](r)&&(r=r[0]),(null==r||isNaN(r))&&(r=t),r<0&&(r=0),l["t"](e.value)?e.value[0]=r:e.value=r}var $z=Uz,Gz=Math.PI/180;function qz(e,t,r){t.eachSeriesByType(e,(function(e){var t=e.get("center"),n=e.get("radius");l["t"](n)||(n=[0,n]),l["t"](t)||(t=[t,t]);var i=r.getWidth(),o=r.getHeight(),a=Math.min(i,o),s=Bn(t[0],i),u=Bn(t[1],o),c=Bn(n[0],a/2),d=Bn(n[1],a/2),h=-e.get("startAngle")*Gz,f=e.get("minAngle")*Gz,p=e.getData().tree.root,m=e.getViewRoot(),g=m.depth,v=e.get("sort");null!=v&&Xz(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),S=e.get("clockwise"),M=e.get("stillShowZeroSum"),C=S?1:-1,T=function(t,r){if(t){var n=r;if(t!==p){var i=t.getValue(),o=0===b&&M?_:i*_;o1)i=i.parentNode;var o=r.getColorFromPalette(i.name||i.dataIndex+"",t);return e.depth>1&&Object(l["C"])(o)&&(o=Object(Bt["c"])(o,(e.depth-1)/(n-1)*.5)),o}e.eachSeriesByType("sunburst",(function(e){var t=e.getData(),n=t.tree;n.eachNode((function(i){var o=i.getModel(),a=o.getModel("itemStyle").getItemStyle();a.fill||(a.fill=r(i,e,n.root.height));var s=t.ensureUniqueItemVisual(i.dataIndex,"style");Object(l["m"])(s,a)}))}))}function Jz(e){e.registerChartView(Vz),e.registerSeriesModel($z),e.registerLayout(Object(l["h"])(qz,"sunburst")),e.registerProcessor(Object(l["h"])(bC,"sunburst")),e.registerVisual(Zz),zz(e)}var Qz={color:"fill",borderColor:"stroke"},eH={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},tH=Ei(),rH=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}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 fS(null,this)},t.prototype.getDataParams=function(t,r,n){var i=e.prototype.getDataParams.call(this,t,r);return n&&(i.info=tH(n).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),nH=rH;function iH(e,t){return t=t||[0,0],l["H"](["x","y"],(function(r,n){var i=this.getAxis(r),o=t[n],a=e[n]/2;return"category"===i.type?i.getBandWidth():Math.abs(i.dataToCoord(o-a)-i.dataToCoord(o+a))}),this)}function oH(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"](iH,e)}}}function aH(e,t){return t=t||[0,0],l["H"]([0,1],(function(r){var n=t[r],i=e[r]/2,o=[],a=[];return o[r]=n-i,a[r]=n+i,o[1-r]=a[1-r]=t[1-r],Math.abs(this.dataToPoint(o)[r]-this.dataToPoint(a)[r])}),this)}function sH(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"](aH,e)}}}function lH(e,t){var r=this.getAxis(),n=t instanceof Array?t[0]:t,i=(e instanceof Array?e[0]:e)/2;return"category"===r.type?r.getBandWidth():Math.abs(r.dataToCoord(n-i)-r.dataToCoord(n+i))}function uH(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"])(lH,e)}}}function cH(e,t){return t=t||[0,0],l["H"](["Radius","Angle"],(function(r,n){var i="get"+r+"Axis",o=this[i](),a=t[n],s=e[n]/2,l="category"===o.type?o.getBandWidth():Math.abs(o.dataToCoord(a-s)-o.dataToCoord(a+s));return"Angle"===r&&(l=l*Math.PI/180),l}),this)}function dH(e){var t=e.getRadiusAxis(),r=e.getAngleAxis(),n=t.getExtent();return n[0]>n[1]&&n.reverse(),{coordSys:{type:"polar",cx:e.cx,cy:e.cy,r:n[1],r0:n[0]},api:{coord:function(n){var i=t.dataToRadius(n[0]),o=r.dataToAngle(n[1]),a=e.coordToPoint([i,o]);return a.push(i,o*Math.PI/180),a},size:l["c"](cH,e)}}}function hH(e){var t=e.getRect(),r=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:r.start,end:r.end,weeks:r.weeks,dayCount:r.allDay}},api:{coord:function(t,r){return e.dataToPoint(t,r)}}}}function fH(e,t,r,n){return e&&(e.legacy||!1!==e.legacy&&!r&&!n&&"tspan"!==t&&("text"===t||Object(l["q"])(e,"text")))}function pH(e,t,r){var n,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},n={};var s=Object(l["q"])(a,"textPosition");r?n.position=s?a.textPosition:"inside":s&&(n.position=a.textPosition),Object(l["q"])(a,"textPosition")&&(n.position=a.textPosition),Object(l["q"])(a,"textOffset")&&(n.offset=a.textOffset),Object(l["q"])(a,"textRotation")&&(n.rotation=a.textRotation),Object(l["q"])(a,"textDistance")&&(n.distance=a.textDistance)}return mH(o,e),Object(l["k"])(o.rich,(function(e){mH(e,e)})),{textConfig:n,textContent:i}}function mH(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 gH(e,t,r){var n=e;n.textPosition=n.textPosition||r.position||"inside",null!=r.offset&&(n.textOffset=r.offset),null!=r.rotation&&(n.textRotation=r.rotation),null!=r.distance&&(n.textDistance=r.distance);var i=n.textPosition.indexOf("inside")>=0,o=e.fill||"#000";vH(n,t);var a=null==n.textFill;return i?a&&(n.textFill=r.insideFill||"#fff",!n.textStroke&&r.insideStroke&&(n.textStroke=r.insideStroke),!n.textStroke&&(n.textStroke=o),null==n.textStrokeWidth&&(n.textStrokeWidth=2)):(a&&(n.textFill=e.fill||r.outsideFill||"#000"),!n.textStroke&&r.outsideStroke&&(n.textStroke=r.outsideStroke)),n.text=t.text,n.rich=t.rich,Object(l["k"])(t.rich,(function(e){vH(e,e)})),n}function vH(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 yH={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},bH=Object(l["F"])(yH),_H=(Object(l["N"])(Gr,(function(e,t){return e[t]=1,e}),{}),Gr.join(", "),["","style","shape","extra"]),wH=Ei();function xH(e,t,r,n,i){var o=e+"Animation",a=Hl(e,n,i)||{},s=wH(t).userDuring;return a.duration>0&&(a.during=s?Object(l["c"])(EH,{el:t,userDuring:s}):null,a.setToFinal=!0,a.scope=e),Object(l["m"])(a,r[o]),a}function kH(e,t,r,n){n=n||{};var i=n.dataIndex,o=n.isInit,a=n.clearStyle,s=r.isAnimationEnabled(),u=wH(e),c=t.style;u.userDuring=t.during;var d={},h={};if(RH(e,t,h),jH("shape",t,h),jH("extra",t,h),!o&&s&&(PH(e,t,d),IH("shape",e,t,d),IH("extra",e,t,d),NH(e,t,c,d)),h.style=c,TH(e,h,a),LH(e,t),s)if(o){var f={};Object(l["k"])(_H,(function(e){var r=e?t[e]:t;r&&r.enterFrom&&(e&&(f[e]=f[e]||{}),Object(l["m"])(e?f[e]:f,r.enterFrom))}));var p=xH("enter",e,t,r,i);p.duration>0&&e.animateFrom(f,p)}else OH(e,t,i||0,r,d);SH(e,t),c?e.dirty():e.markRedraw()}function SH(e,t){for(var r=wH(e).leaveToProps,n=0;n<_H.length;n++){var i=_H[n],o=i?t[i]:t;o&&o.leaveTo&&(r||(r=wH(e).leaveToProps={}),i&&(r[i]=r[i]||{}),Object(l["m"])(i?r[i]:r,o.leaveTo))}}function MH(e,t,r,n){if(e){var i=e.parent,o=wH(e).leaveToProps;if(o){var a=xH("update",e,t,r,0);a.done=function(){i.remove(e),n&&n()},e.animateTo(o,a)}else i.remove(e),n&&n()}}function CH(e){return"all"===e}function TH(e,t,r){var n=t.style;if(!e.isGroup&&n){if(r){e.useStyle({});for(var i=e.animators,o=0;o0&&e.animateFrom(i,o)}}function LH(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 Wa&&Object(l["q"])(t,"autoBatch")&&(e.autoBatch=t.autoBatch)}var AH={},DH={setTransform:function(e,t){return AH.el[e]=t,this},getTransform:function(e){return AH.el[e]},setShape:function(e,t){var r=AH.el,n=r.shape||(r.shape={});return n[e]=t,r.dirtyShape&&r.dirtyShape(),this},getShape:function(e){var t=AH.el.shape;if(t)return t[e]},setStyle:function(e,t){var r=AH.el,n=r.style;return n&&(n[e]=t,r.dirtyStyle&&r.dirtyStyle()),this},getStyle:function(e){var t=AH.el.style;if(t)return t[e]},setExtra:function(e,t){var r=AH.el.extra||(AH.el.extra={});return r[e]=t,this},getExtra:function(e){var t=AH.el.extra;if(t)return t[e]}};function EH(){var e=this,t=e.el;if(t){var r=wH(t).userDuring,n=e.userDuring;r===n?(AH.el=t,n(DH)):e.el=e.userDuring=null}}function IH(e,t,r,n){var i=r[e];if(i){var o,a=t[e];if(a){var s=r.transition,u=i.transition;if(u)if(!o&&(o=n[e]={}),CH(u))Object(l["m"])(o,a);else for(var c=ci(u),d=0;d=0){!o&&(o=n[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=n.style={});var m=Object(l["F"])(r);for(c=0;c=0?t.getStore().get(i,r):void 0}var o=t.get(n.name,r),a=n&&n.ordinalMeta;return a?a.categories[o]:o}function k(r,n){null==n&&(n=s);var i=t.getItemVisual(n,"style"),o=i&&i.fill,a=i&&i.opacity,u=b(n,UH).getItemStyle();null!=o&&(u.fill=o),null!=a&&(u.opacity=a);var c={inheritColor:Object(l["C"])(o)?o:"#000"},d=_(n,UH),h=nu(d,null,c,!1,!0);h.text=d.getShallow("show")?Object(l["P"])(e.getFormattedLabel(n,UH),gS(t,n)):null;var f=iu(d,c,!1);return C(r,u),u=gH(u,h,f),r&&M(u,r),u.legacy=!0,u}function S(r,n){null==n&&(n=s);var i=b(n,VH).getItemStyle(),o=_(n,VH),a=nu(o,null,null,!0,!0);a.text=o.getShallow("show")?Object(l["Q"])(e.getFormattedLabel(n,VH),e.getFormattedLabel(n,UH),gS(t,n)):null;var u=iu(o,null,!0);return C(r,i),i=gH(i,a,u),r&&M(i,r),i.legacy=!0,i}function M(e,t){for(var r in t)Object(l["q"])(t,r)&&(e[r]=t[r])}function C(e,t){e&&(e.textFill&&(t.textFill=e.textFill),e.textPosition&&(t.textPosition=e.textPosition))}function T(e,r){if(null==r&&(r=s),Object(l["q"])(Qz,e)){var n=t.getItemVisual(r,"style");return n?n[Qz[e]]:null}if(Object(l["q"])(eH,e))return t.getItemVisual(r,e)}function O(e){if("cartesian2d"===o.type){var t=o.getBaseAxis();return bM(Object(l["i"])({axis:t},e))}}function L(){return r.getCurrentSeriesIndices()}function A(e){return du(e,r)}}function dV(e){var t={};return Object(l["k"])(e.dimensions,(function(r){var n=e.getDimensionInfo(r);if(!n.isExtraCoord){var i=n.coordDim,o=t[i]=t[i]||[];o[n.coordDimIndex]=e.getDimensionIndex(r)}})),t}function hV(e,t,r,n,i,o,a){if(n){var s=fV(e,t,r,n,i,o);return s&&a.setItemGraphicEl(r,s),s&&Ll(s,n.focus,n.blurScope,n.emphasisDisabled),s}o.remove(t)}function fV(e,t,r,n,i,o){var a=-1,s=t;t&&pV(t,n,i)&&(a=Object(l["r"])(o.childrenRef(),t),t=null);var u=!t,c=t;c?c.clearStates():(c=oV(n),s&&rV(s,c)),!1===n.morph?c.disableMorphing=!0:c.disableMorphing&&(c.disableMorphing=!1),JH.normal.cfg=JH.normal.conOpt=JH.emphasis.cfg=JH.emphasis.conOpt=JH.blur.cfg=JH.blur.conOpt=JH.select.cfg=JH.select.conOpt=null,JH.isLegacy=!1,gV(c,r,n,i,u,JH),mV(c,r,n,i,u),aV(e,c,r,n,JH,i,u),Object(l["q"])(n,"info")&&(tH(c).info=n.info);for(var d=0;d=0?o.replaceAt(c,a):o.add(c),c}function pV(e,t,r){var n=tH(e),i=t.type,o=t.shape,a=t.style;return r.isUniversalTransitionEnabled()||null!=i&&i!==n.customGraphicType||"path"===i&&TV(o)&&CV(o)!==n.customPathData||"image"===i&&Object(l["q"])(a,"image")&&a.image!==n.customImagePath}function mV(e,t,r,n,i){var o=r.clipPath;if(!1===o)e&&e.getClipPath()&&e.removeClipPath();else if(o){var a=e.getClipPath();a&&pV(a,o,n)&&(a=null),a||(a=oV(o),e.setClipPath(a)),aV(null,a,t,o,null,n,i)}}function gV(e,t,r,n,i,o){if(!e.isGroup){vV(r,null,o),vV(r,VH,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=oV(a),e.setTextContent(c)),aV(null,c,t,a,null,n,i);for(var d=a&&a.style,h=0;h=c;f--){var p=t.childAt(f);wV(t,p,i)}}}function wV(e,t,r){t&&MH(t,tH(e).option,r)}function xV(e){new bk(e.oldChildren,e.newChildren,kV,kV,e).add(SV).update(SV).remove(MV).execute()}function kV(e,t){var r=e&&e.name;return null!=r?r:ZH+t}function SV(e,t){var r=this.context,n=null!=e?r.newChildren[e]:null,i=null!=t?r.oldChildren[t]:null;fV(r.api,i,r.dataIndex,n,r.seriesModel,r.group)}function MV(e){var t=this.context,r=t.oldChildren[e];r&&MH(r,tH(r).option,t.seriesModel)}function CV(e){return e&&(e.pathData||e.d)}function TV(e){return e&&(Object(l["q"])(e,"pathData")||Object(l["q"])(e,"d"))}function OV(e){e.registerChartView(iV),e.registerSeriesModel(nH)}var LV=Ei(),AV=l["d"],DV=l["c"],EV=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(e,t,r,n){var i=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=r,n||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,r);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(r),this._lastGraphicKey=c;var d=this._moveAnimation=this.determineAnimation(e,t);if(a){var h=l["h"](IV,t,d);this.updatePointerEl(a,u,h),this.updateLabelEl(a,u,h,t)}else a=this._group=new kn,this.createPointerEl(a,u,e,t),this.createLabelEl(a,u,e,t),r.getZr().add(a);NV(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 r=t.get("animation"),n=e.axis,i="category"===n.type,o=t.get("snap");if(!o&&!i)return!1;if("auto"===r||null==r){var a=this.animationThreshold;if(i&&n.getBandWidth()>a)return!0;if(o){var s=vL(e).seriesDataCount,l=n.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===r},e.prototype.makeElOption=function(e,t,r,n,i){},e.prototype.createPointerEl=function(e,t,r,i){var o=t.pointer;if(o){var a=LV(e).pointerEl=new n[o.type](AV(t.pointer));e.add(a)}},e.prototype.createLabelEl=function(e,t,r,n){if(t.label){var i=LV(e).labelEl=new Cs(AV(t.label));e.add(i),PV(i,n)}},e.prototype.updatePointerEl=function(e,t,r){var n=LV(e).pointerEl;n&&t.pointer&&(n.setStyle(t.pointer.style),r(n,{shape:t.pointer.shape}))},e.prototype.updateLabelEl=function(e,t,r,n){var i=LV(e).labelEl;i&&(i.setStyle(t.label.style),r(i,{x:t.label.x,y:t.label.y}),PV(i,n))},e.prototype._renderHandle=function(e){if(!this._dragging&&this.updateHandleTransform){var t,r=this._axisPointerModel,n=this._api.getZr(),i=this._handle,o=r.getModel("handle"),a=r.get("status");if(!o.get("show")||!a||"hide"===a)return i&&n.remove(i),void(this._handle=null);this._handle||(t=!0,i=this._handle=Dg(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(e){re(e.event)},onmousedown:DV(this._onHandleDragMove,this,0,0),drift:DV(this._onHandleDragMove,this),ondragend:DV(this._onHandleDragEnd,this)}),n.add(i)),NV(i,r,!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,Jg(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,t)}},e.prototype._moveHandleToValue=function(e,t){IV(this._axisPointerModel,!t&&this._moveAnimation,this._handle,RV(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(e,t){var r=this._handle;if(r){this._dragging=!0;var n=this.updateHandleTransform(RV(r),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=n,r.stopAnimation(),r.attr(RV(n)),LV(r).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var t=this._payloadInfo,r=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:r.axis.dim,axisIndex:r.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(),r=this._group,n=this._handle;t&&r&&(this._lastGraphicKey=null,r&&t.remove(r),n&&t.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),Qg(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}},e}();function IV(e,t,r,n){jV(LV(r).lastProp,n)||(LV(r).lastProp=n,t?Ul(r,n,e):(r.stopAnimation(),r.attr(n)))}function jV(e,t){if(l["A"](e)&&l["A"](t)){var r=!0;return l["k"](t,(function(t,n){r=r&&jV(e[n],t)})),!!r}return e===t}function PV(e,t){e[t.get(["label","show"])?"show":"hide"]()}function RV(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function NV(e,t,r){var n=t.get("z"),i=t.get("zlevel");e&&e.traverse((function(e){"group"!==e.type&&(null!=n&&(e.z=n),null!=i&&(e.zlevel=i),e.silent=r)}))}var BV=EV;function YV(e){var t,r=e.get("type"),n=e.getModel(r+"Style");return"line"===r?(t=n.getLineStyle(),t.fill=null):"shadow"===r&&(t=n.getAreaStyle(),t.stroke=null),t}function FV(e,t,r,n,i){var o=r.get("value"),a=HV(o,t.axis,t.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=Mc(s.get("padding")||0),u=s.getFont(),c=tn(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),zV(d,h,f,n);var g=s.get("backgroundColor");g&&"auto"!==g||(g=t.get(["axisLine","lineStyle","color"])),e.label={x:d[0],y:d[1],style:nu(s,{text:a,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function zV(e,t,r,n){var i=n.getWidth(),o=n.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+r,o)-r,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function HV(e,t,r,n,i){e=t.scale.parse(e);var o=t.scale.getLabel({value:e},{precision:i.precision}),a=i.formatter;if(a){var s={value:oO(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};l["k"](n,(function(e){var t=r.getSeriesByIndex(e.seriesIndex),n=e.dataIndexInside,i=t&&t.getDataParams(n);i&&s.seriesData.push(i)})),l["C"](a)?o=a.replace("{value}",o):l["w"](a)&&(o=a(s))}return o}function VV(e,t,r){var n=le();return fe(n,n,r.rotation),he(n,n,r.position),Sg([e.dataToCoord(t),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function UV(e,t,r,n,i,o){var a=uL.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=i.get(["label","margin"]),FV(t,n,i,o,{position:VV(n.axis,e,r),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function WV(e,t,r){return r=r||0,{x1:e[r],y1:e[1-r],x2:t[r],y2:t[1-r]}}function $V(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}}function GV(e,t,r,n,i,o){return{cx:e,cy:t,r0:r,r:n,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,r,n,i){var o=r.axis,a=o.grid,s=n.get("type"),l=XV(a,o).getOtherAxis(o).getGlobalExtent(),u=o.toGlobalCoord(o.dataToCoord(t,!0));if(s&&"none"!==s){var c=YV(n),d=KV[s](o,u,l);d.style=c,e.graphicKey=d.type,e.pointer=d}var h=FO(a.model,r);UV(t,e,h,r,n,i)},t.prototype.getHandleTransform=function(e,t,r){var n=FO(t.axis.grid.model,t,{labelInside:!1});n.labelMargin=r.get(["handle","margin"]);var i=VV(t.axis,e,n);return{x:i[0],y:i[1],rotation:n.rotation+(n.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,r,n){var i=r.axis,o=i.grid,a=i.getGlobalExtent(!0),s=XV(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}(BV);function XV(e,t){var r={};return r[t.dim+"AxisIndex"]=t.index,e.getCartesian(r)}var KV={line:function(e,t,r){var n=WV([t,r[0]],[t,r[1]],ZV(e));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(e,t,r){var n=Math.max(1,e.getBandWidth()),i=r[1]-r[0];return{type:"Rect",shape:$V([t-n/2,r[0]],[n,i],ZV(e))}}};function ZV(e){return"x"===e.dim?0:1}var JV=qV,QV=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}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),eU=QV,tU=Ei(),rU=l["k"];function nU(e,t,r){if(!s["a"].node){var n=t.getZr();tU(n).records||(tU(n).records={}),iU(n,t);var i=tU(n).records[e]||(tU(n).records[e]={});i.handler=r}}function iU(e,t){function r(r,n){e.on(r,(function(r){var i=lU(t);rU(tU(e).records,(function(e){e&&n(e,r,i.dispatchAction)})),oU(i.pendings,t)}))}tU(e).initialized||(tU(e).initialized=!0,r("click",l["h"](sU,"click")),r("mousemove",l["h"](sU,"mousemove")),r("globalout",aU))}function oU(e,t){var r,n=e.showTip.length,i=e.hideTip.length;n?r=e.showTip[n-1]:i&&(r=e.hideTip[i-1]),r&&(r.dispatchAction=null,t.dispatchAction(r))}function aU(e,t,r){e.handler("leave",null,r)}function sU(e,t,r,n){t.handler(e,r,n)}function lU(e){var t={showTip:[],hideTip:[]},r=function(n){var i=t[n.type];i?i.push(n):(n.dispatchAction=r,e.dispatchAction(n))};return{dispatchAction:r,pendings:t}}function uU(e,t){if(!s["a"].node){var r=t.getZr(),n=(tU(r).records||{})[e];n&&(tU(r).records[e]=null)}}var cU=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return a(t,e),t.prototype.render=function(e,t,r){var n=t.getComponent("tooltip"),i=e.get("triggerOn")||n&&n.get("triggerOn")||"mousemove|click";nU("axisPointer",r,(function(e,t,r){"none"!==i&&("leave"===e||i.indexOf(e)>=0)&&r({type:"updateAxisPointer",currTrigger:e,x:t&&t.offsetX,y:t&&t.offsetY})}))},t.prototype.remove=function(e,t){uU("axisPointer",t)},t.prototype.dispose=function(e,t){uU("axisPointer",t)},t.type="axisPointer",t}(Cp),dU=cU;function hU(e,t){var r,n=[],i=e.seriesIndex;if(null==i||!(r=t.getSeriesByIndex(i)))return{point:[]};var o=r.getData(),a=Di(o,e);if(null==a||a<0||l["t"](a))return{point:[]};var s=o.getItemGraphicEl(a),u=r.coordinateSystem;if(r.getTooltipPosition)n=r.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),n=u.dataToPoint(g)||[]}else n=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),n=[v.x+v.width/2,v.y+v.height/2]}return{point:n,el:s}}var fU=Ei();function pU(e,t,r){var n=e.currTrigger,i=[e.x,e.y],o=e,a=e.dispatchAction||Object(l["c"])(r.dispatchAction,r),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){SU(i)&&(i=hU({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},t).point);var u=SU(i),c=o.axesInfo,d=s.axesInfo,h="leave"===n||SU(i),f={},p={},m={list:[],map:{}},g={showPointer:Object(l["h"])(vU,p),showTooltip:Object(l["h"])(yU,m)};Object(l["k"])(s.coordSysMap,(function(e,t){var r=u||e.containPoint(i);Object(l["k"])(s.coordSysAxesInfo[t],(function(e,t){var n=e.axis,o=xU(c,e);if(!h&&r&&(!c||o)){var a=o&&o.value;null!=a||u||(a=n.pointToData(i)),null!=a&&mU(e,a,g,!1,f)}}))}));var v={};return Object(l["k"])(d,(function(e,t){var r=e.linkGroup;r&&!p[t]&&Object(l["k"])(r.axesInfo,(function(t,n){var i=p[n];if(t!==e&&i){var o=i.value;r.mapper&&(o=e.axis.scale.parse(r.mapper(o,kU(t),kU(e)))),v[e.key]=o}}))})),Object(l["k"])(v,(function(e,t){mU(d[t],e,g,!0,f)})),bU(p,d,f),_U(m,i,e,a),wU(d,a,r),f}}function mU(e,t,r,n,i){var o=e.axis;if(!o.scale.isBlank()&&o.containData(t))if(e.involveSeries){var a=gU(t,e),s=a.payloadBatch,u=a.snapToValue;s[0]&&null==i.seriesIndex&&Object(l["m"])(i,s[0]),!n&&e.snap&&o.containData(u)&&null!=u&&(t=u),r.showPointer(e,t,s),r.showTooltip(e,a,u)}else r.showPointer(e,t)}function gU(e,t){var r=t.axis,n=r.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(n);if(t.getAxisTooltipData){var f=t.getAxisTooltipData(h,e,r);d=f.dataIndices,c=f.nestestValue}else{if(d=t.getData().indicesOfNearest(h[0],e,"category"===r.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 vU(e,t,r,n){e[t.key]={value:r,payloadBatch:n}}function yU(e,t,r,n){var i=r.payloadBatch,o=t.axis,a=o.model,s=t.axisPointerModel;if(t.triggerTooltip&&i.length){var l=t.coordSys.model,u=_L(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:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function bU(e,t,r){var n=r.axesInfo=[];Object(l["k"])(t,(function(t,r){var i=t.axisPointerModel.option,o=e[r];o?(!t.useHandle&&(i.status="show"),i.value=o.value,i.seriesDataIndices=(o.payloadBatch||[]).slice()):!t.useHandle&&(i.status="hide"),"show"===i.status&&n.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:i.value})}))}function _U(e,t,r,n){if(!SU(t)&&e.list.length){var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}else n({type:"hideTip"})}function wU(e,t,r){var n=r.getZr(),i="axisPointerLastHighlights",o=fU(n)[i]||{},a=fU(n)[i]={};Object(l["k"])(e,(function(e,t){var r=e.axisPointerModel.option;"show"===r.status&&e.triggerEmphasis&&Object(l["k"])(r.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&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:u}),s.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function xU(e,t){for(var r=0;r<(e||[]).length;r++){var n=e[r];if(t.axis.dim===n.axisDim&&t.axis.model.componentIndex===n.axisIndex)return n}}function kU(e){var t=e.axis.model,r={},n=r.axisDim=e.axis.dim;return r.axisIndex=r[n+"AxisIndex"]=t.componentIndex,r.axisName=r[n+"AxisName"]=t.name,r.axisId=r[n+"AxisId"]=t.id,r}function SU(e){return!e||null==e[0]||isNaN(e[0])||null==e[1]||isNaN(e[1])}function MU(e){kL.registerAxisPointerClass("CartesianAxisPointer",JV),e.registerComponentModel(eU),e.registerComponentView(dU),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=cL(e,t)})),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},pU)}function CU(e){R_(PL),R_(MU)}var TU=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.makeElOption=function(e,t,r,n,i){var o=r.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=n.get("type");if(c&&"none"!==c){var d=YV(n),h=LU[c](o,a,u,l);h.style=d,e.graphicKey=h.type,e.pointer=h}var f=n.get(["label","margin"]),p=OU(t,r,n,a,f);FV(e,r,n,i,p)},t}(BV);function OU(e,t,r,n,i){var o=t.axis,a=o.dataToCoord(e),s=n.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l,u,c,d=n.getRadiusAxis().getExtent();if("radius"===o.dim){var h=le();fe(h,h,s),he(h,h,[n.cx,n.cy]),l=Sg([a,-i],h);var f=t.getModel("axisLabel").get("rotate")||0,p=uL.innerTextLayout(s,f*Math.PI/180,-1);u=p.textAlign,c=p.textVerticalAlign}else{var m=d[1];l=n.coordToPoint([m+i,a]);var g=n.cx,v=n.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 LU={line:function(e,t,r,n){return"angle"===e.dim?{type:"Line",shape:WV(t.coordToPoint([n[0],r]),t.coordToPoint([n[1],r]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:r}}},shadow:function(e,t,r,n){var i=Math.max(1,e.getBandWidth()),o=Math.PI/180;return"angle"===e.dim?{type:"Sector",shape:GV(t.cx,t.cy,n[0],n[1],(-r-i/2)*o,(i/2-r)*o)}:{type:"Sector",shape:GV(t.cx,t.cy,r-i/2,r+i/2,0,2*Math.PI)}}},AU=TU,DU=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return a(t,e),t.prototype.findAxisModel=function(e){var t,r=this.ecModel;return r.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),EU=DU,IU=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"](IU,qC);var jU=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return a(t,e),t.type="angleAxis",t}(IU),PU=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return a(t,e),t.type="radiusAxis",t}(IU),RU=function(e){function t(t,r){return e.call(this,"radius",t,r)||this}return a(t,e),t.prototype.pointToData=function(e,t){return this.polar.pointToData(e,t)["radius"===this.dim?0:1]},t}(NO);RU.prototype.dataToRadius=NO.prototype.dataToCoord,RU.prototype.radiusToData=NO.prototype.coordToData;var NU=RU,BU=Ei(),YU=function(e){function t(t,r){return e.call(this,"angle",t,r||[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(),r=e.scale,n=r.getExtent(),i=r.count();if(n[1]-n[0]<1)return 0;var o=n[0],a=e.dataToCoord(o+1)-e.dataToCoord(o),s=Math.abs(a),l=tn(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=BU(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}(NO);YU.prototype.dataToAngle=NO.prototype.dataToCoord,YU.prototype.angleToData=NO.prototype.coordToData;var FU=YU,zU=["radius","angle"],HU=function(){function e(e){this.dimensions=zU,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new NU,this._angleAxis=new FU,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=[],r=this._angleAxis,n=this._radiusAxis;return r.scale.type===e&&t.push(r),n.scale.type===e&&t.push(n),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 r=this.pointToCoord(e);return[this._radiusAxis.radiusToData(r[0],t),this._angleAxis.angleToData(r[1],t)]},e.prototype.pointToCoord=function(e){var t=e[0]-this.cx,r=e[1]-this.cy,n=this.getAngleAxis(),i=n.getExtent(),o=Math.min(i[0],i[1]),a=Math.max(i[0],i[1]);n.inverse?o=a-360:a=o+360;var s=Math.sqrt(t*t+r*r);t/=s,r/=s;var l=Math.atan2(-r,t)/Math.PI*180,u=la)l+=360*u;return[s,l]},e.prototype.coordToPoint=function(e){var t=e[0],r=e[1]/180*Math.PI,n=Math.cos(r)*t+this.cx,i=-Math.sin(r)*t+this.cy;return[n,i]},e.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),r=t.getExtent().slice();r[0]>r[1]&&r.reverse();var n=e.getExtent(),i=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:r[0],r:r[1],startAngle:-n[0]*i,endAngle:-n[1]*i,clockwise:e.inverse,contain:function(e,t){var r=e-this.cx,n=t-this.cy,i=r*r+n*n-1e-4,o=this.r,a=this.r0;return i<=o*o&&i>=a*a}}},e.prototype.convertToPixel=function(e,t,r){var n=VU(t);return n===this?this.dataToPoint(r):null},e.prototype.convertFromPixel=function(e,t,r){var n=VU(t);return n===this?this.pointToData(r):null},e}();function VU(e){var t=e.seriesModel,r=e.polarModel;return r&&r.coordinateSystem||t&&t.coordinateSystem}var UU=HU;function WU(e,t,r){var n=t.get("center"),i=r.getWidth(),o=r.getHeight();e.cx=Bn(n[0],i),e.cy=Bn(n[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=[Bn(u[0],s),Bn(u[1],s)];a.inverse?a.setExtent(c[1],c[0]):a.setExtent(c[0],c[1])}function $U(e,t){var r=this,n=r.getAngleAxis(),i=r.getRadiusAxis();if(n.scale.setExtent(1/0,-1/0),i.scale.setExtent(1/0,-1/0),e.eachSeries((function(e){if(e.coordinateSystem===r){var t=e.getData();l["k"](cO(t,"radius"),(function(e){i.scale.unionExtentFromData(t,e)})),l["k"](cO(t,"angle"),(function(e){n.scale.unionExtentFromData(t,e)}))}})),tO(n.scale,n.model),tO(i.scale,i.model),"category"===n.type&&!n.onBand){var o=n.getExtent(),a=360/n.scale.count();n.inverse?o[1]+=a:o[1]-=a,n.setExtent(o[0],o[1])}}function GU(e){return"angleAxis"===e.mainType}function qU(e,t){var r;if(e.type=t.get("type"),e.scale=rO(t),e.onBand=t.get("boundaryGap")&&"category"===e.type,e.inverse=t.get("inverse"),GU(t)){e.inverse=e.inverse!==t.get("clockwise");var n=t.get("startAngle"),i=null!==(r=t.get("endAngle"))&&void 0!==r?r:n+(e.inverse?-360:360);e.setExtent(n,i)}t.axis=e,e.model=t}var XU={dimensions:zU,create:function(e,t){var r=[];return e.eachComponent("polar",(function(e,n){var i=new UU(n+"");i.update=$U;var o=i.getRadiusAxis(),a=i.getAngleAxis(),s=e.findAxisModel("radiusAxis"),l=e.findAxisModel("angleAxis");qU(o,s),qU(a,l),WU(i,e,t),r.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}})),r}},KU=XU,ZU=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function JU(e,t,r){t[1]>t[0]&&(t=t.slice().reverse());var n=e.coordToPoint([t[0],r]),i=e.coordToPoint([t[1],r]);return{x1:n[0],y1:n[1],x2:i[0],y2:i[1]}}function QU(e){var t=e.getRadiusAxis();return t.inverse?0:1}function eW(e){var t=e[0],r=e[e.length-1];t&&r&&Math.abs(Math.abs(t.coord-r.coord)-360)<1e-4&&e.pop()}var tW=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r.axisPointerClass="PolarAxisPointer",r}return a(t,e),t.prototype.render=function(e,t){if(this.group.removeAll(),e.get("show")){var r=e.axis,n=r.polar,i=n.getRadiusAxis().getExtent(),o=r.getTicksCoords(),a=r.getMinorTicksCoords(),s=l["H"](r.getViewLabels(),(function(e){e=l["d"](e);var t=r.scale,n="ordinal"===t.type?t.getRawOrdinalNumber(e.tickValue):e.tickValue;return e.coord=r.dataToCoord(n),e}));eW(s),eW(o),l["k"](ZU,(function(t){!e.get([t,"show"])||r.scale.isBlank()&&"axisLine"!==t||rW[t](this.group,e,n,o,a,i,s)}),this)}},t.type="angleAxis",t}(kL),rW={axisLine:function(e,t,r,i,o,a){var s,l=t.getModel(["axisLine","lineStyle"]),u=r.getAngleAxis(),c=Math.PI/180,d=u.getExtent(),h=QU(r),f=h?0:1,p=360===Math.abs(d[1]-d[0])?"Circle":"Arc";s=0===a[f]?new n[p]({shape:{cx:r.cx,cy:r.cy,r:a[h],startAngle:-d[0]*c,endAngle:-d[1]*c,clockwise:u.inverse},style:l.getLineStyle(),z2:1,silent:!0}):new km({shape:{cx:r.cx,cy:r.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,r,n,i,o){var a=t.getModel("axisTick"),s=(a.get("inside")?-1:1)*a.get("length"),u=o[QU(r)],c=l["H"](n,(function(e){return new Pm({shape:JU(r,[u,u+s],e.coord)})}));e.add(yg(c,{style:l["i"](a.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(e,t,r,n,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[QU(r)],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:uL.isLabelSilent(t),style:nu(a,{x:p[0],y:p[1],fill:a.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:n.formattedLabel,align:v,verticalAlign:y})});if(e.add(_),d){var w=uL.makeAxisEventDataBase(t);w.targetType="axisLabel",w.value=n.rawLabel,Ts(_).eventData=w}}),this)},splitLine:function(e,t,r,n,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",C=_;y&&(n[s][S]||(n[s][S]={p:_,n:_}),C=n[s][S][M]);var T=void 0,O=void 0,L=void 0,A=void 0;if("radius"===d.dim){var D=d.dataToCoord(k)-_,E=o.dataToCoord(S);Math.abs(D)=A})}}}))}function fW(e){var t={};l["k"](e,(function(e,r){var n=e.getData(),i=e.coordinateSystem,o=i.getBaseAxis(),a=dW(i,o),s=o.getExtent(),l="category"===o.type?o.getBandWidth():Math.abs(s[1]-s[0])/n.count(),u=t[a]||{bandWidth:l,remainedWidth:l,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},c=u.stacks;t[a]=u;var d=cW(e);c[d]||u.autoWidthCount++,c[d]=c[d]||{width:0,maxWidth:0};var h=Bn(e.get("barWidth"),l),f=Bn(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 r={};return l["k"](t,(function(e,t){r[t]={};var n=e.stacks,i=e.bandWidth,o=Bn(e.categoryGap,i),a=Bn(e.gap,1),s=e.remainedWidth,u=e.autoWidthCount,c=(s-o)/(u+(u-1)*a);c=Math.max(c,0),l["k"](n,(function(e,t){var r=e.maxWidth;r&&r=t.y&&e[1]<=t.y+t.height:r.contain(r.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(),r=this.getRect(),n=[],i="horizontal"===t.orient?0:1;return e instanceof Array&&(e=e[0]),n[i]=t.toGlobalCoord(t.dataToCoord(+e)),n[1-i]=0===i?r.y+r.height/2:r.x+r.width/2,n},e.prototype.convertToPixel=function(e,t,r){var n=DW(t);return n===this?this.dataToPoint(r):null},e.prototype.convertFromPixel=function(e,t,r){var n=DW(t);return n===this?this.pointToData(r):null},e}();function DW(e){var t=e.seriesModel,r=e.singleAxisModel;return r&&r.coordinateSystem||t&&t.coordinateSystem}var EW=AW;function IW(e,t){var r=[];return e.eachComponent("singleAxis",(function(n,i){var o=new EW(n,e,t);o.name="single_"+i,o.resize(n,t),n.coordinateSystem=o,r.push(o)})),e.eachSeries((function(e){if("singleAxis"===e.get("coordinateSystem")){var t=e.getReferringComponents("singleAxis",Ri).models[0];e.coordinateSystem=t&&t.coordinateSystem}})),r}var jW={create:IW,dimensions:LW},PW=jW,RW=["x","y"],NW=["width","height"],BW=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.makeElOption=function(e,t,r,n,i){var o=r.axis,a=o.coordinateSystem,s=zW(a,1-FW(o)),l=a.dataToPoint(t)[0],u=n.get("type");if(u&&"none"!==u){var c=YV(n),d=YW[u](o,l,s);d.style=c,e.graphicKey=d.type,e.pointer=d}var h=bW(r);UV(t,e,h,r,n,i)},t.prototype.getHandleTransform=function(e,t,r){var n=bW(t,{labelInside:!1});n.labelMargin=r.get(["handle","margin"]);var i=VV(t.axis,e,n);return{x:i[0],y:i[1],rotation:n.rotation+(n.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,r,n){var i=r.axis,o=i.coordinateSystem,a=FW(i),s=zW(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=zW(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}(BV),YW={line:function(e,t,r){var n=WV([t,r[0]],[t,r[1]],FW(e));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(e,t,r){var n=e.getBandWidth(),i=r[1]-r[0];return{type:"Rect",shape:$V([t-n/2,r[0]],[n,i],FW(e))}}};function FW(e){return e.isHorizontal()?0:1}function zW(e,t){var r=e.getRect();return[r[RW[t]],r[RW[t]]+r[NW[t]]]}var HW=BW,VW=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return a(t,e),t.type="single",t}(Cp);function UW(e){R_(MU),kL.registerAxisPointerClass("SingleAxisPointer",HW),e.registerComponentView(VW),e.registerComponentView(SW),e.registerComponentModel(CW),sT(e,"single",CW,CW.defaultOption),e.registerCoordinateSystem("single",PW)}var WW=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return a(t,e),t.prototype.init=function(t,r,n){var i=Wc(t);e.prototype.init.apply(this,arguments),$W(t,i)},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),$W(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 $W(e,t){var r,n=e.cellSize;r=l["t"](n)?n:e.cellSize=[n,n],1===r.length&&(r[1]=r[0]);var i=l["H"]([0,1],(function(e){return Hc(t,e)&&(r[e]="auto"),null!=r[e]&&"auto"!==r[e]}));Uc(e,t,{type:"box",ignoreSize:i})}var GW=WW,qW=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return a(t,e),t.prototype.render=function(e,t,r){var n=this.group;n.removeAll();var i=e.coordinateSystem,o=i.getRangeInfo(),a=i.getOrient(),s=t.getLocaleModel();this._renderDayRect(e,o,n),this._renderLines(e,o,a,n),this._renderYearText(e,o,a,n),this._renderMonthText(e,s,a,n),this._renderWeekText(e,s,o,a,n)},t.prototype._renderDayRect=function(e,t,r){for(var n=e.coordinateSystem,i=e.getModel("itemStyle").getItemStyle(),o=n.getCellWidth(),a=n.getCellHeight(),s=t.start.time;s<=t.end.time;s=n.getNextNDay(s,1).time){var l=n.dataToRect([s],!1).tl,u=new ls({shape:{x:l[0],y:l[1],width:o,height:a},cursor:"default",style:i});r.add(u)}},t.prototype._renderLines=function(e,t,r,n){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,r);i._tlpoints.push(l[0]),i._blpoints.push(l[l.length-1]),s&&i._drawSplitline(l,a,n)}h(o.getNextNDay(t.end.time,1).formatedDate),s&&this._drawSplitline(i._getEdgesPoints(i._tlpoints,l,r),a,n),s&&this._drawSplitline(i._getEdgesPoints(i._blpoints,l,r),a,n)},t.prototype._getEdgesPoints=function(e,t,r){var n=[e[0].slice(),e[e.length-1].slice()],i="horizontal"===r?0:1;return n[0][i]=n[0][i]-t/2,n[1][i]=n[1][i]+t/2,n},t.prototype._drawSplitline=function(e,t,r){var n=new Dm({z2:20,shape:{points:e},style:t});r.add(n)},t.prototype._getLinePointsOfOneWeek=function(e,t,r){for(var n=e.coordinateSystem,i=n.getDateInfo(t),o=[],a=0;a<7;a++){var s=n.getNextNDay(i.time,a),l=n.dataToRect([s.time],!1);o[2*s.day]=l.tl,o[2*s.day+1]=l["horizontal"===r?"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,r,n,i){var o=t[0],a=t[1],s=["center","bottom"];"bottom"===n?(a+=i,s=["center","top"]):"left"===n?o-=i:"right"===n?(o+=i,s=["center","top"]):a-=i;var l=0;return"left"!==n&&"right"!==n||(l=Math.PI/2),{rotation:l,x:o,y:a,style:{align:s[0],verticalAlign:s[1]}}},t.prototype._renderYearText=function(e,t,r,n){var i=e.getModel("yearLabel");if(i.get("show")){var o=i.get("margin"),a=i.get("position");a||(a="horizontal"!==r?"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"===r?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:nu(i,{text:m})});g.attr(this._yearTextPositionControl(g,d[a],r,a,o)),n.add(g)}},t.prototype._monthTextPositionControl=function(e,t,r,n,i){var o="left",a="top",s=e[0],l=e[1];return"horizontal"===r?(l+=i,t&&(o="center"),"start"===n&&(a="bottom")):(s+=i,t&&(a="middle"),"start"===n&&(o="right")),{x:s,y:l,align:o,verticalAlign:a}},t.prototype._renderMonthText=function(e,t,r,n){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"===r?0:1;a="start"===s?-a:a;for(var f="center"===u,p=0;p=n.start.time&&r.timea.end.time&&e.reverse(),e},e.prototype._getRangeInfo=function(e){var t,r=[this.getDateInfo(e[0]),this.getDateInfo(e[1])];r[0].time>r[1].time&&(t=!0,r.reverse());var n=Math.floor(r[1].time/KW)-Math.floor(r[0].time/KW)+1,i=new Date(r[0].time),o=i.getDate(),a=r[1].date.getDate();i.setDate(o+n-1);var s=i.getDate();if(s!==a){var l=i.getTime()-r[1].time>0?1:-1;while((s=i.getDate())!==a&&(i.getTime()-r[1].time)*l>0)n-=l,i.setDate(s-l)}var u=Math.floor((n+r[0].day+6)/7),c=t?1-u:u-1;return t&&r.reverse(),{range:[r[0].formatedDate,r[1].formatedDate],start:r[0],end:r[1],allDay:n,weeks:u,nthWeek:c,fweek:r[0].day,lweek:r[1].day}},e.prototype._getDateByWeeksAndDay=function(e,t,r){var n=this._getRangeInfo(r);if(e>n.weeks||0===e&&tn.lweek)return null;var i=7*(e-1)-n.fweek+t,o=new Date(n.start.time);return o.setDate(+n.start.d+i),this.getDateInfo(o)},e.create=function(t,r){var n=[];return t.eachComponent("calendar",(function(i){var o=new e(i,t,r);n.push(o),i.coordinateSystem=o})),t.eachSeries((function(e){"calendar"===e.get("coordinateSystem")&&(e.coordinateSystem=n[e.get("calendarIndex")||0])})),n},e.dimensions=["time","value"],e}();function JW(e){var t=e.calendarModel,r=e.seriesModel,n=t?t.coordinateSystem:r?r.coordinateSystem:null;return n}var QW=ZW;function e$(e){e.registerComponentModel(GW),e.registerComponentView(XW),e.registerCoordinateSystem("calendar",QW)}function t$(e,t){var r=e.existing;if(t.id=e.keyInfo.id,!t.type&&r&&(t.type=r.type),null==t.parentId){var n=t.parentOption;n?t.parentId=n.id:r&&(t.parentId=r.parentId)}t.parentOption=null}function r$(e,t){var r;return l["k"](t,(function(t){null!=e[t]&&"auto"!==e[t]&&(r=!0)})),r}function n$(e,t,r){var n=l["m"]({},r),i=e[t],o=r.$action||"merge";"merge"===o?i?(l["I"](i,n,!0),Uc(i,n,{ignoreSize:!0}),$c(r,i),a$(r,i),a$(r,i,"shape"),a$(r,i,"style"),a$(r,i,"extra"),r.clipPath=i.clipPath):e[t]=n:"replace"===o?e[t]=n:"remove"===o&&i&&(e[t]=null)}var i$=["transition","enterFrom","leaveTo"],o$=i$.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function a$(e,t,r){if(r&&(!e[r]&&t[r]&&(e[r]={}),e=e[r],t=t[r]),e&&t)for(var n=r?i$:o$,i=0;i=0;u--){c=r[u],d=Si(c.id,null),h=null!=d?i.get(d):null;if(h){f=h.parent,g=c$(f);var v=f===n?{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(!c$(h).isNew&&b){for(var _=c.transition,w={},x=0;x=0)?w[k]=S:h[k]=S}Ul(h,w,e,0)}else h.attr(y)}}},t.prototype._clear=function(){var e=this,t=this._elMap;t.each((function(r){p$(r,c$(r).option,t,e._lastGraphicModel)})),this._elMap=l["f"]()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(Cp);function h$(e){var t=l["q"](u$,e)?u$[e]:pg(e);var r=new t({});return c$(r).type=e,r}function f$(e,t,r,n){var i=h$(r);return t.add(i),n.set(e,i),c$(i).id=e,c$(i).isNew=!0,i}function p$(e,t,r,n){var i=e&&e.parent;i&&("group"===e.type&&e.traverse((function(e){p$(e,t,r,n)})),MH(e,t,n),r.removeKey(c$(e).id))}function m$(e,t,r,n){e.isGroup||l["k"]([["cursor",Bo.prototype.cursor],["zlevel",n||0],["z",r||0],["z2",0]],(function(r){var n=r[0];l["q"](t,n)?e[n]=l["P"](t[n],r[1]):null==e[n]&&(e[n]=r[1])})),l["k"](l["F"](t),(function(r){if(0===r.indexOf("on")){var n=t[r];e[r]=l["w"](n)?n:null}})),l["q"](t,"draggable")&&(e.draggable=t.draggable),null!=t.name&&(e.name=t.name),null!=t.id&&(e.id=t.id)}function g$(e){return e=l["m"]({},e),l["k"](["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(Pc),(function(t){delete e[t]})),e}function v$(e,t,r){var n=Ts(e).eventData;e.silent||e.ignore||n||(n=Ts(e).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name}),n&&(n.info=r.info)}function y$(e){e.registerComponentModel(l$),e.registerComponentView(d$),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 b$=["x","y","radius","angle","single"],_$=["cartesian2d","polar","singleAxis"];function w$(e){var t=e.get("coordinateSystem");return Object(l["r"])(_$,t)>=0}function x$(e){return e+"Axis"}function k$(e,t){var r,n=Object(l["f"])(),i=[],o=Object(l["f"])();e.eachComponent({mainType:"dataZoom",query:t},(function(e){o.get(e.uid)||s(e)}));do{r=!1,e.eachComponent("dataZoom",a)}while(r);function a(e){!o.get(e.uid)&&u(e)&&(s(e),r=!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,r){var i=n.get(e);i&&i[r]&&(t=!0)})),t}function c(e){e.eachTargetAxis((function(e,t){(n.get(e)||n.set(e,[]))[t]=!0}))}return i}function S$(e){var t=e.ecModel,r={infoList:[],infoMap:Object(l["f"])()};return e.eachTargetAxis((function(e,n){var i=t.getComponent(x$(e),n);if(i){var o=i.getCoordSysModel();if(o){var a=o.uid,s=r.infoMap.get(a);s||(s={model:o,axisModels:[]},r.infoList.push(s),r.infoMap.set(a,s)),s.axisModels.push(i)}}})),r}var M$=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}(),C$=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r._autoThrottle=!0,r._noTarget=!0,r._rangePropMode=["percent","percent"],r}return a(t,e),t.prototype.init=function(e,t,r){var n=T$(e);this.settledOption=n,this.mergeDefaultAndTheme(e,r),this._doInit(n)},t.prototype.mergeOption=function(e){var t=T$(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 r=this.settledOption;Object(l["k"])([["start","startValue"],["end","endValue"]],(function(e,n){"value"===this._rangePropMode[n]&&(t[e[0]]=r[e[0]]=null)}),this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),t=this._targetAxisInfoMap=Object(l["f"])(),r=this._fillSpecifiedTargetAxis(t);r?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"])(b$,(function(r){var n=this.getReferringComponents(x$(r),Ni);if(n.specified){t=!0;var i=new M$;Object(l["k"])(n.models,(function(e){i.add(e.componentIndex)})),e.set(r,i)}}),this),t},t.prototype._fillAutoTargetAxisByOrient=function(e,t){var r=this.ecModel,n=!0;if(n){var i="vertical"===t?"y":"x",o=r.findComponents({mainType:i+"Axis"});a(o,i)}if(n){o=r.findComponents({mainType:"singleAxis",filter:function(e){return e.get("orient",!0)===t}});a(o,"single")}function a(t,r){var i=t[0];if(i){var o=new M$;if(o.add(i.componentIndex),e.set(r,o),n=!1,"x"===r||"y"===r){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)}))}}}n&&Object(l["k"])(b$,(function(t){if(n){var i=r.findComponents({mainType:x$(t),filter:function(e){return"category"===e.get("type",!0)}});if(i[0]){var o=new M$;o.add(i[0].componentIndex),e.set(t,o),n=!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,r=this.get("rangeMode");Object(l["k"])([["start","startValue"],["end","endValue"]],(function(n,i){var o=null!=e[n[0]],a=null!=e[n[1]];o&&!a?t[i]="percent":!o&&a?t[i]="value":r?t[i]=r[i]:o&&(t[i]="percent")}))},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis((function(t,r){null==e&&(e=this.ecModel.getComponent(x$(t),r))}),this),e},t.prototype.eachTargetAxis=function(e,t){this._targetAxisInfoMap.each((function(r,n){Object(l["k"])(r.indexList,(function(r){e.call(t,n,r)}))}))},t.prototype.getAxisProxy=function(e,t){var r=this.getAxisModel(e,t);if(r)return r.__dzAxisProxy},t.prototype.getAxisModel=function(e,t){var r=this._targetAxisInfoMap.get(e);if(r&&r.indexMap[t])return this.ecModel.getComponent(x$(e),t)},t.prototype.setRawRange=function(e){var t=this.option,r=this.settledOption;Object(l["k"])([["start","startValue"],["end","endValue"]],(function(n){null==e[n[0]]&&null==e[n[1]]||(t[n[0]]=r[n[0]]=e[n[0]],t[n[1]]=r[n[1]]=e[n[1]])}),this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var t=this.option;Object(l["k"])(["start","startValue","end","endValue"],(function(r){t[r]=e[r]}))},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 r=this.findRepresentativeAxisProxy();return r?r.getDataValueWindow():void 0},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var t,r=this._targetAxisInfoMap.keys(),n=0;no[1];if(c&&!d&&!h)return!0;c&&(i=!0),d&&(t=!0),h&&(r=!0)}return i&&t&&r}))}else P$(n,(function(r){if("empty"===i)e.setData(t=t.map(r,(function(e){return a(e)?e:NaN})));else{var n={};n[r]=o,t.selectRange(n)}}));P$(n,(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,r=this._dataExtent;P$(["min","max"],(function(n){var i=t.get(n+"Span"),o=t.get(n+"ValueSpan");null!=o&&(o=this.getAxisModel().axis.scale.parse(o)),null!=o?i=Nn(r[0]+o,r,[0,100],!0):null!=i&&(o=Nn(i,[0,100],r,!0)-r[0]),e[n+"Span"]=i,e[n+"ValueSpan"]=o}),this)},e.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,r=this._valueWindow;if(t){var n=Vn(r,[0,500]);n=Math.min(n,20);var i=e.axis.scale.rawExtentInfo;0!==t[0]&&i.setDeterminedMinMax("min",+r[0].toFixed(n)),100!==t[1]&&i.setDeterminedMinMax("max",+r[1].toFixed(n)),i.freeze()}},e}();function B$(e,t,r){var n=[1/0,-1/0];P$(r,(function(e){dO(n,e.getData(),t)}));var i=e.getAxisModel(),o=ZT(i.axis.scale,i,n).calculate();return[o.min,o.max]}var Y$=N$,F$={getTargetSeries:function(e){function t(t){e.eachComponent("dataZoom",(function(r){r.eachTargetAxis((function(n,i){var o=e.getComponent(x$(n),i);t(n,i,o,r)}))}))}t((function(e,t,r,n){r.__dzAxisProxy=null}));var r=[];t((function(t,n,i,o){i.__dzAxisProxy||(i.__dzAxisProxy=new Y$(t,n,o,e),r.push(i.__dzAxisProxy))}));var n=Object(l["f"])();return Object(l["k"])(r,(function(e){Object(l["k"])(e.getTargetSeriesModels(),(function(e){n.set(e.uid,e)}))})),n},overallReset:function(e,t){e.eachComponent("dataZoom",(function(e){e.eachTargetAxis((function(t,r){e.getAxisProxy(t,r).reset(e)})),e.eachTargetAxis((function(r,n){e.getAxisProxy(r,n).filterData(e,t)}))})),e.eachComponent("dataZoom",(function(e){var t=e.findRepresentativeAxisProxy();if(t){var r=t.getDataPercentWindow(),n=t.getDataValueWindow();e.setCalculatedRange({start:r[0],end:r[1],startValue:n[0],endValue:n[1]})}}))}},z$=F$;function H$(e){e.registerAction("dataZoom",(function(e,t){var r=k$(t,e);Object(l["k"])(r,(function(t){t.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})}))}))}var V$=!1;function U$(e){V$||(V$=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,z$),H$(e),e.registerSubTypeDefaulter("dataZoom",(function(){return"slider"})))}function W$(e){e.registerComponentModel(A$),e.registerComponentView(j$),U$(e)}var $$=function(){function e(){}return e}(),G$={};function q$(e,t){G$[e]=t}function X$(e){return G$[e]}var K$=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}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,r){var n=X$(r);n&&(n.getDefaultOption&&(n.defaultOption=n.getDefaultOption(t)),l["I"](e,n.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),Z$=K$;function J$(e,t,r){var n=t.getBoxLayoutParams(),i=t.get("padding"),o={width:r.getWidth(),height:r.getHeight()},a=Fc(n,o,i);Bc(t.get("orient"),e,t.get("itemGap"),a.width,a.height),zc(e,n,o,i)}function Q$(e,t){var r=Mc(t.get("padding")),n=t.getItemStyle(["color","opacity"]);return n.fill=t.get("backgroundColor"),e=new ls({shape:{x:e.x-r[3],y:e.y-r[0],width:e.width+r[1]+r[3],height:e.height+r[0]+r[2],r:t.get("borderRadius")},style:n,silent:!0,z2:-1}),e}var eG=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.render=function(e,t,r,n){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 bk(this._featureNames||[],c).add(d).update(d).remove(l["h"](d,null)).execute(),this._featureNames=c,J$(i,e,r),i.add(Q$(i.getBoundingRect(),e)),a||i.eachChild((function(e){var t=e.__title,n=e.ensureState("emphasis"),a=n.textConfig||(n.textConfig={}),s=e.getTextContent(),u=s&&s.ensureState("emphasis");if(u&&!l["w"](u)&&t){var c=u.style||(u.style={}),d=tn(t,Cs.makeFont(c)),h=e.x+i.x,f=e.y+i.y+o,p=!1;f+d.height>r.getHeight()&&(a.position="top",p=!0);var m=p?-5-d.height:o+10;h+d.width/2>r.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(n&&null!=n.newTitle&&n.featureName===l&&(f.title=n.newTitle),l&&!d){if(tG(l))a={onclick:p.option.onclick,featureName:l};else{var m=X$(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=r;var g=a instanceof $$;l||!d?!p.get("show")||g&&a.unusable?g&&a.remove&&a.remove(t,r):(h(p,a,l),p.setIconStatus=function(e,t){var r=this.option,n=this.iconPaths;r.iconStatus=r.iconStatus||{},r.iconStatus[e]=t,n[e]&&("emphasis"===t?cl:dl)(n[e])},a instanceof $$&&a.render&&a.render(p,t,r,n)):g&&a.dispose&&a.dispose(t,r)}function h(n,s,u){var c,d,h=n.getModel("iconStyle"),f=n.getModel(["emphasis","iconStyle"]),p=s instanceof $$&&s.getIcons?s.getIcons():n.get("icon"),m=n.get("title")||{};l["C"](p)?(c={},c[u]=p):c=p,l["C"](m)?(d={},d[u]=m):d=m;var g=n.iconPaths={};l["k"](c,(function(u,c){var p=Dg(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),Rg({el:p,componentModel:e,itemName:c,formatterParamsExtra:{title:d[c]}}),p.__title=d[c],p.on("mouseover",(function(){var t=f.getItemStyle(),n=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")||n}),v.ignore=!e.get("showTitle"),r.enterEmphasis(this)})).on("mouseout",(function(){"emphasis"!==n.get(["iconStatus",c])&&r.leaveEmphasis(this),v.hide()})),("emphasis"===n.get(["iconStatus",c])?cl:dl)(p),i.add(p),p.on("click",l["c"](s.onclick,s,t,r,c)),g[c]=p}))}},t.prototype.updateView=function(e,t,r,n){l["k"](this._features,(function(e){e instanceof $$&&e.updateView&&e.updateView(e.model,t,r,n)}))},t.prototype.remove=function(e,t){l["k"](this._features,(function(r){r instanceof $$&&r.remove&&r.remove(e,t)})),this.group.removeAll()},t.prototype.dispose=function(e,t){l["k"](this._features,(function(r){r instanceof $$&&r.dispose&&r.dispose(e,t)}))},t.type="toolbox",t}(Cp);function tG(e){return 0===e.indexOf("my")}var rG=eG,nG=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.onclick=function(e,t){var r=this.model,n=r.get("name")||e.get("title.0.text")||"echarts",i="svg"===t.getZr().painter.getType(),o=i?"svg":r.get("type",!0)||"png",a=t.getConnectedDataURL({type:o,backgroundColor:r.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:r.get("connectedBackgroundColor"),excludeComponents:r.get("excludeComponents"),pixelRatio:r.get("pixelRatio")}),u=s["a"].browser;if(Object(l["w"])(MouseEvent)&&(u.newEdge||!u.ie&&!u.edge)){var c=document.createElement("a");c.download=n+"."+o,c.target="_blank",c.href=a;var d=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(d)}else if(window.navigator.msSaveOrOpenBlob||i){var h=a.split(","),f=h[0].indexOf("base64")>-1,p=i?decodeURIComponent(h[1]):h[1];f&&(p=window.atob(p));var m=n+"."+o;if(window.navigator.msSaveOrOpenBlob){var g=p.length,v=new Uint8Array(g);while(g--)v[g]=p.charCodeAt(g);var y=new Blob([v]);window.navigator.msSaveOrOpenBlob(y,m)}else{var b=document.createElement("iframe");document.body.appendChild(b);var _=b.contentWindow,w=_.document;w.open("image/svg+xml","replace"),w.write(p),w.close(),_.focus(),w.execCommand("SaveAs",!0,m),document.body.removeChild(b)}}else{var x=r.get("lang"),k='',S=window.open();S.document.write(k),S.document.title=n}},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}($$),iG=nG,oG="__ec_magicType_stack__",aG=[["line","bar"],["stack"]],sG=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"),r={};return l["k"](e.get("type"),(function(e){t[e]&&(r[e]=t[e])})),r},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,r){var n=this.model,i=n.get(["seriesIndex",r]);if(lG[r]){var o,a={series:[]},s=function(e){var t=e.subType,i=e.id,o=lG[r](t,i,e,n);o&&(l["i"](o,e.option),a.series.push(o));var s=e.coordinateSystem;if(s&&"cartesian2d"===s.type&&("line"===r||"bar"===r)){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"===r}}};l["k"](aG,(function(e){l["r"](e,r)>=0&&l["k"](e,(function(e){n.setIconStatus(e,"normal")}))})),n.setIconStatus(r,"emphasis"),e.eachComponent({mainType:"series",query:null==i?null:{seriesIndex:i}},s);var u=r;"stack"===r&&(o=l["I"]({stack:n.option.title.tiled,tiled:n.option.title.stack},n.option.title),"emphasis"!==n.get(["iconStatus",r])&&(u="tiled")),t.dispatchAction({type:"changeMagicType",currentType:u,newOption:a,newTitle:o,featureName:"magicType"})}},t}($$),lG={line:function(e,t,r,n){if("bar"===e)return l["I"]({id:t,type:"line",data:r.get("data"),stack:r.get("stack"),markPoint:r.get("markPoint"),markLine:r.get("markLine")},n.get(["option","line"])||{},!0)},bar:function(e,t,r,n){if("line"===e)return l["I"]({id:t,type:"bar",data:r.get("data"),stack:r.get("stack"),markPoint:r.get("markPoint"),markLine:r.get("markLine")},n.get(["option","bar"])||{},!0)},stack:function(e,t,r,n){var i=r.get("stack")===oG;if("line"===e||"bar"===e)return n.setIconStatus("stack",i?"normal":"emphasis"),l["I"]({id:t,stack:i?"":oG},n.get(["option","stack"])||{},!0)}};S_({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(e,t){t.mergeOption(e.newOption)}));var uG=sG,cG=new Array(60).join("-"),dG="\t";function hG(e){var t={},r=[],n=[];return e.eachRawSeries((function(e){var i=e.coordinateSystem;if(!i||"cartesian2d"!==i.type&&"polar"!==i.type)r.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:[]},n.push({axisDim:o.dim,axisIndex:o.index})),t[a].series.push(e)}else r.push(e)}})),{seriesGroupByCategoryAxis:t,other:r,meta:n}}function fG(e){var t=[];return l["k"](e,(function(e,r){var n=e.categoryAxis,i=e.valueAxis,o=i.dim,a=[" "].concat(l["H"](e.series,(function(e){return e.name}))),s=[n.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(dG)],c=0;c=0)return!0}var yG=new RegExp("["+dG+"]+","g");function bG(e){for(var t=e.split(/\n+/g),r=gG(t.shift()).split(yG),n=[],i=l["H"](r,(function(e){return{name:e,data:[]}})),o=0;o=0;i--){var o=r[i];if(o[n])break}if(i<0){var a=e.queryComponents({mainType:"dataZoom",subType:"select",id:n})[0];if(a){var s=a.getPercentRange();r[0][n]={dataZoomId:n,start:s[0],end:s[1]}}}})),r.push(t)}function OG(e){var t=DG(e),r=t[t.length-1];t.length>1&&t.pop();var n={};return MG(r,(function(e,r){for(var i=t.length-1;i>=0;i--)if(e=t[i][r],e){n[r]=e;break}})),n}function LG(e){CG(e).snapshots=null}function AG(e){return DG(e).length}function DG(e){var t=CG(e);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var EG=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.onclick=function(e,t){LG(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}($$);S_({type:"restore",event:"restore",update:"prepareAndUpdate"},(function(e,t){t.resetOption("recreate")}));var IG=EG,jG=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],PG=function(){function e(e,t,r){var n=this;this._targetInfoList=[];var i=NG(t,e);Object(l["k"])(BG,(function(e,t){(!r||!r.include||Object(l["r"])(r.include,t)>=0)&&e(i,n._targetInfoList)}))}return e.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,(function(e,t,r){if((e.coordRanges||(e.coordRanges=[])).push(t),!e.coordRange){e.coordRange=t;var n=zG[e.brushType](0,r,t);e.__rangeOffset={offset:VG[e.brushType](n.values,e.range,[1,1]),xyMinMax:n.xyMinMax}}})),e},e.prototype.matchOutputRanges=function(e,t,r){Object(l["k"])(e,(function(e){var n=this.findTargetInfo(e,t);n&&!0!==n&&Object(l["k"])(n.coordSyses,(function(n){var i=zG[e.brushType](1,n,e.range,!0);r(e,i.values,n,t)}))}),this)},e.prototype.setInputRanges=function(e,t){Object(l["k"])(e,(function(e){var r=this.findTargetInfo(e,t);if(e.range=e.range||[],r&&!0!==r){e.panelId=r.panelId;var n=zG[e.brushType](0,r.coordSys,e.coordRange),i=e.__rangeOffset;e.range=i?VG[e.brushType](n.values,i.offset,WG(n.xyMinMax,i.xyMinMax)):n.values}}),this)},e.prototype.makePanelOpts=function(e,t){return Object(l["H"])(this._targetInfoList,(function(r){var n=r.getPanelRect();return{panelId:r.panelId,defaultBrushType:t?t(r):null,clipPath:_B(n),isTargetByCursor:xB(n,e,r.coordSysModel),getLinearBrushOtherExtent:wB(n)}}))},e.prototype.controlSeries=function(e,t,r){var n=this.findTargetInfo(e,r);return!0===n||n&&Object(l["r"])(n.coordSyses,t.coordinateSystem)>=0},e.prototype.findTargetInfo=function(e,t){for(var r=this._targetInfoList,n=NG(t,e),i=0;ie[1]&&e.reverse(),e}function NG(e,t){return ji(e,t,{includeMainTypes:jG})}var BG={grid:function(e,t){var r=e.xAxisModels,n=e.yAxisModels,i=e.gridModels,o=Object(l["f"])(),a={},s={};(r||n||i)&&(Object(l["k"])(r,(function(e){var t=e.axis.grid.model;o.set(t.id,t),a[t.id]=!0})),Object(l["k"])(n,(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"])(r,e.getAxis("x").model)>=0||Object(l["r"])(n,e.getAxis("y").model)>=0)&&o.push(e)})),t.push({panelId:"grid--"+e.id,gridModel:e,coordSysModel:e,coordSys:o[0],coordSyses:o,getPanelRect:FG.grid,xAxisDeclared:a[e.id],yAxisDeclared:s[e.id]})})))},geo:function(e,t){Object(l["k"])(e.geoModels,(function(e){var r=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:r,coordSyses:[r],getPanelRect:FG.geo})}))}},YG=[function(e,t){var r=e.xAxisModel,n=e.yAxisModel,i=e.gridModel;return!i&&r&&(i=r.axis.grid.model),!i&&n&&(i=n.axis.grid.model),i&&i===t.gridModel},function(e,t){var r=e.geoModel;return r&&r===t.geoModel}],FG={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(kg(e)),t}},zG={lineX:Object(l["h"])(HG,0),lineY:Object(l["h"])(HG,1),rect:function(e,t,r,n){var i=e?t.pointToData([r[0][0],r[1][0]],n):t.dataToPoint([r[0][0],r[1][0]],n),o=e?t.pointToData([r[0][1],r[1][1]],n):t.dataToPoint([r[0][1],r[1][1]],n),a=[RG([i[0],o[0]]),RG([i[1],o[1]])];return{values:a,xyMinMax:a}},polygon:function(e,t,r,n){var i=[[1/0,-1/0],[1/0,-1/0]],o=Object(l["H"])(r,(function(r){var o=e?t.pointToData(r,n):t.dataToPoint(r,n);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 HG(e,t,r,n){var i=r.getAxis(["x","y"][e]),o=RG(Object(l["H"])([0,1],(function(e){return t?i.coordToData(i.toLocalCoord(n[e]),!0):i.toGlobalCoord(i.dataToCoord(n[e]))}))),a=[];return a[e]=o,a[1-e]=[NaN,NaN],{values:o,xyMinMax:a}}var VG={lineX:Object(l["h"])(UG,0),lineY:Object(l["h"])(UG,1),rect:function(e,t,r){return[[e[0][0]-r[0]*t[0][0],e[0][1]-r[0]*t[0][1]],[e[1][0]-r[1]*t[1][0],e[1][1]-r[1]*t[1][1]]]},polygon:function(e,t,r){return Object(l["H"])(e,(function(e,n){return[e[0]-r[0]*t[n][0],e[1]-r[1]*t[n][1]]}))}};function UG(e,t,r,n){return[t[0]-n[e]*r[0],t[1]-n[e]*r[1]]}function WG(e,t){var r=$G(e),n=$G(t),i=[r[0]/n[0],r[1]/n[1]];return isNaN(i[0])&&(i[0]=1),isNaN(i[1])&&(i[1]=1),i}function $G(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}var GG=PG,qG=l["k"],XG=Ti("toolbox-dataZoom_"),KG=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.render=function(e,t,r,n){this._brushController||(this._brushController=new bB(r.getZr()),this._brushController.on("brush",l["c"](this._onBrush,this)).mount()),eq(e,t,this,n,r),QG(e,t)},t.prototype.onclick=function(e,t,r){ZG[r].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 r={},n=this.ecModel;this._brushController.updateCovers([]);var i=new GG(JG(this.model),n,{include:["grid"]});i.matchOutputRanges(t,n,(function(e,t,r){if("cartesian2d"===r.type){var n=e.brushType;"rect"===n?(o("x",r,t[0]),o("y",r,t[1])):o({lineX:"x",lineY:"y"}[n],r,t)}})),TG(n,r),this._dispatchZoomAction(r)}function o(e,t,i){var o=t.getAxis(e),s=o.model,l=a(e,s,n),u=l.findRepresentativeAxisProxy(s).getMinMaxSpan();null==u.minValueSpan&&null==u.maxValueSpan||(i=iN(0,i.slice(),o.scale.getExtent(),0,u.minValueSpan,u.maxValueSpan)),l&&(r[l.id]={dataZoomId:l.id,startValue:i[0],endValue:i[1]})}function a(e,t,r){var n;return r.eachComponent({mainType:"dataZoom",subType:"select"},(function(r){var i=r.getAxisModel(e,t.componentIndex);i&&(n=r)})),n}},t.prototype._dispatchZoomAction=function(e){var t=[];qG(e,(function(e,r){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}($$),ZG={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(OG(this.ecModel))}};function JG(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 QG(e,t){e.setIconStatus("back",AG(t)>1?"emphasis":"normal")}function eq(e,t,r,n,i){var o=r._isZoomActive;n&&"takeGlobalCursor"===n.type&&(o="dataZoomSelect"===n.key&&n.dataZoomSelectActive),r._isZoomActive=o,e.setIconStatus("zoom",o?"emphasis":"normal");var a=new GG(JG(e),t,{include:["grid"]}),s=a.makePanelOpts(i,(function(e){return e.xAxisDeclared&&!e.yAxisDeclared?"lineX":!e.xAxisDeclared&&e.yAxisDeclared?"lineY":"rect"}));r._brushController.setPanels(s).enableBrush(!(!o||!s.length)&&{brushType:"auto",brushStyle:e.getModel("brushStyle").getItemStyle()})}bd("dataZoom",(function(e){var t=e.getComponent("toolbox",0),r=["feature","dataZoom"];if(t&&null!=t.get(r)){var n=t.getModel(r),i=[],o=JG(n),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,r){var o=e.componentIndex,a={type:"select",$fromToolbox:!0,filterMode:n.get("filterMode",!0)||"filter",id:XG+t+o};a[r]=o,i.push(a)}}));var tq=KG;function rq(e){e.registerComponentModel(Z$),e.registerComponentView(rG),q$("saveAsImage",iG),q$("magicType",uG),q$("dataView",SG),q$("dataZoom",tq),q$("restore",IG),R_(W$)}var nq=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}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),iq=nq;function oq(e){var t=e.get("confine");return null!=t?!!t:"richText"===e.get("renderMode")}function aq(e){if(s["a"].domSupported)for(var t=document.documentElement.style,r=0,n=e.length;r-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:"+n+";"];return'
'}function gq(e,t){var r="cubic-bezier(0.23,1,0.32,1)",n=" "+e/2+"s "+r,i="opacity"+n+",visibility"+n;return t||(n=" "+e+"s "+r,i+=s["a"].transformSupported?","+hq+n:",left"+n+",top"+n),dq+":"+i}function vq(e,t,r){var n=e.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!s["a"].transformSupported)return r?"top:"+i+";left:"+n+";":[["top",i],["left",n]];var o=s["a"].transform3dSupported,a="translate"+(o?"3d":"")+"("+n+","+i+(o?",0":"")+")";return r?"top:0;left:0;"+hq+":"+a+";":[["top",0],["left",0],[sq,a]]}function yq(e){var t=[],r=e.get("fontSize"),n=e.getTextColor();n&&t.push("color:"+n),t.push("font:"+e.getFont()),r&&t.push("line-height:"+Math.round(3*r/2)+"px");var i=e.get("textShadowColor"),o=e.get("textShadowBlur")||0,a=e.get("textShadowOffsetX")||0,s=e.get("textShadowOffsetY")||0;return i&&o&&t.push("text-shadow:"+a+"px "+s+"px "+o+"px "+i),Object(l["k"])(["decoration","align"],(function(r){var n=e.get(r);n&&t.push("text-"+r+":"+n)})),t.join(";")}function bq(e,t,r){var n=[],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=lp(e,"html"),f=u+"px "+c+"px "+a+"px "+s;return n.push("box-shadow:"+f),t&&i&&n.push(gq(i,r)),o&&n.push("background-color:"+o),Object(l["k"])(["width","color","radius"],(function(t){var r="border-"+t,i=Sc(r),o=e.get(i);null!=o&&n.push(r+":"+o+("color"===t?"":"px"))})),n.push(yq(d)),null!=h&&n.push("padding:"+Mc(h).join("px ")+"px"),n.join(";")+";"}function _q(e,t,r,n,i){var o=t&&t.painter;if(r){var a=o&&o.getViewportRoot();a&&B(e,a,r,n,i)}else{e[0]=n,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 wq=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 r=document.createElement("div");r.domBelongToZr=!0,this.el=r;var n=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()));_q(this._styleCoord,n,o,e.getWidth()/2,e.getHeight()/2),(o||e.getDom()).appendChild(r),this._api=e,this._container=o;var a=this;r.onmouseenter=function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0},r.onmousemove=function(e){if(e=e||window.event,!a._enterable){var t=n.handler,r=n.painter.getViewportRoot();J(r,e,!0),t.dispatch("mousemove",e)}},r.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(),r=cq(t,"position"),n=t.style;"absolute"!==n.position&&"absolute"!==r&&(n.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 r=this.el,n=r.style,i=this._styleCoord;r.innerHTML?n.cssText=fq+bq(e,!this._firstShow,this._longHide)+vq(i[0],i[1],!0)+"border-color:"+Ec(t)+";"+(e.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):n.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(e,t,r,n,i){var o=this.el;if(null!=e){var a="";if(Object(l["C"])(i)&&"item"===r.get("trigger")&&!oq(r)&&(a=mq(r,n,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(r,n):"leave"===e&&this._hide(n))}),this))},t.prototype._keepShow=function(){var e=this._tooltipModel,t=this._ecModel,r=this._api,n=e.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==n&&"click"!==n){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!r.isDisposed()&&i.manuallyShowTip(e,t,r,{x:i._lastX,y:i._lastY,dataByCoordSys:i._lastDataByCoordSys})}))}},t.prototype.manuallyShowTip=function(e,t,r,n){if(n.from!==this.uid&&!s["a"].node&&r.getDom()){var i=Dq(n,r);this._ticket="";var o=n.dataByCoordSys,a=Rq(n,t,r);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:n.position,positionDefault:"bottom"},i)}else if(n.tooltip&&null!=n.x&&null!=n.y){var u=Oq;u.x=n.x,u.y=n.y,u.update(),Ts(u).tooltipConfig={name:null,option:n.tooltip},this._tryShow({offsetX:n.x,offsetY:n.y,target:u},i)}else if(o)this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,dataByCoordSys:o,tooltipOption:n.tooltipOption},i);else if(null!=n.seriesIndex){if(this._manuallyAxisShowTip(e,t,r,n))return;var c=hU(n,t),d=c.point[0],h=c.point[1];null!=d&&null!=h&&this._tryShow({offsetX:d,offsetY:h,target:c.el,position:n.position,positionDefault:"bottom"},i)}else null!=n.x&&null!=n.y&&(r.dispatchAction({type:"updateAxisPointer",x:n.x,y:n.y}),this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,target:r.getZr().findHover(n.x,n.y).target},i))}},t.prototype.manuallyHideTip=function(e,t,r,n){var i=this._tooltipContent;this._tooltipModel&&i.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,n.from!==this.uid&&this._hide(Dq(n,r))},t.prototype._manuallyAxisShowTip=function(e,t,r,n){var i=n.seriesIndex,o=n.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=Aq([l.getItemModel(o),s,(s.coordinateSystem||{}).model],this._tooltipModel);if("axis"===u.get("trigger"))return r.dispatchAction({type:"updateAxisPointer",seriesIndex:i,dataIndex:o,position:n.position}),!0}}},t.prototype._tryShow=function(e,t){var r=e.target,n=this._tooltipModel;if(n){this._lastX=e.offsetX,this._lastY=e.offsetY;var i=e.dataByCoordSys;if(i&&i.length)this._showAxisTooltip(i,e);else if(r){var o,a,s=Ts(r);if("legend"===s.ssrType)return;this._lastDataByCoordSys=null,$v(r,(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 r=e.get("showDelay");t=Object(l["c"])(t,this),clearTimeout(this._showTimout),r>0?this._showTimout=setTimeout(t,r):t()},t.prototype._showAxisTooltip=function(e,t){var r=this._ecModel,n=this._tooltipModel,i=[t.offsetX,t.offsetY],o=Aq([t.tooltipOption],n),a=this._renderMode,s=[],u=qf("section",{blocks:[],noHeader:!0}),c=[],d=new up;Object(l["k"])(e,(function(e){Object(l["k"])(e.dataByAxis,(function(e){var t=r.getComponent(e.axisDim+"Axis",e.axisIndex),i=e.value;if(t&&null!=i){var o=HV(i,t.axis,r,e.seriesDataIndices,e.valueLabelOpt),h=qf("section",{header:o,noHeader:!Object(l["T"])(o),sortBlocks:!0,blocks:[]});u.blocks.push(h),Object(l["k"])(e.seriesDataIndices,(function(u){var f=r.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=oO(t.axis,{value:i}),m.axisValueLabel=o,m.marker=d.makeTooltipMarker("item",Ec(m.color),a);var g=nf(f.formatTooltip(p,!0,null)),v=g.frag;if(v){var y=Aq([f],n).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=ep(u,d,a,f,r.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,r){var n=this._ecModel,i=Ts(t),o=i.seriesIndex,a=n.getSeriesByIndex(o),s=i.dataModel||a,u=i.dataIndex,c=i.dataType,d=s.getData(c),h=this._renderMode,f=e.positionDefault,p=Aq([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 up;g.marker=v.makeTooltipMarker("item",Ec(g.color),h);var y=nf(s.formatTooltip(u,!1,c)),b=p.get("order"),_=p.get("valueFormatter"),w=y.frag,x=w?ep(_?Object(l["m"])({valueFormatter:_},w):w,v,h,b,n.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)})),r({type:"showTip",dataIndexInside:u,dataIndex:d.getRawIndex(u),seriesIndex:o,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,t,r){var n=Ts(t),i=n.tooltipConfig,o=i.option||{};if(Object(l["C"])(o)){var a=o;o={content:a,formatter:a}}var s=[o],u=this._ecModel.getComponent(n.componentMainType,n.componentIndex);u&&s.push(u),s.push({formatter:o.content});var c=e.positionDefault,d=Aq(s,this._tooltipModel,c?{position:c}:null),h=d.get("content"),f=Math.random()+"",p=new up;this._showOrMove(d,(function(){var r=Object(l["d"])(d.get("formatterParams")||{});this._showTooltipContent(d,h,r,f,e.offsetX,e.offsetY,e.position,t,p)})),r({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,t,r,n,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],r,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"])(r)?r[0]:r,v=g&&g.axisType&&g.axisType.indexOf("time")>=0;h=d,v&&(h=oc(g.axisValue,h,m)),h=Lc(h,r,!0)}else if(Object(l["w"])(d)){var y=Object(l["c"])((function(t,n){t===this._ticket&&(c.setContent(n,u,e,p,a),this._updatePosition(e,a,i,o,c,r,s))}),this);this._ticket=n,h=d(r,n,y)}else h=d;c.setContent(h,u,e,p,a),c.show(e,p),this._updatePosition(e,a,i,o,c,r,s)}},t.prototype._getNearestPoint=function(e,t,r,n){return"axis"===r||Object(l["t"])(t)?{color:n||("html"===this._renderMode?"#fff":"none")}:Object(l["t"])(t)?void 0:{color:n||t.color||t.borderColor}},t.prototype._updatePosition=function(e,t,r,n,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([r,n],o,i.el,f,{viewSize:[s,u],contentSize:c.slice()})),Object(l["t"])(t))r=Bn(t[0],s),n=Bn(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});r=m.x,n=m.y,d=null,h=null}else if(Object(l["C"])(t)&&a){var g=jq(t,f,c,e.get("borderWidth"));r=g[0],n=g[1]}else{g=Eq(r,n,i,s,u,d?null:20,h?null:20);r=g[0],n=g[1]}if(d&&(r-=Pq(d)?c[0]/2:"right"===d?c[0]:0),h&&(n-=Pq(h)?c[1]/2:"bottom"===h?c[1]:0),oq(e)){g=Iq(r,n,i,s,u);r=g[0],n=g[1]}i.moveTo(r,n)},t.prototype._updateContentNotChangedOnAxis=function(e,t){var r=this._lastDataByCoordSys,n=this._cbParamsList,i=!!r&&r.length===e.length;return i&&Object(l["k"])(r,(function(r,o){var a=r.dataByAxis||[],s=e[o]||{},u=s.dataByAxis||[];i=i&&a.length===u.length,i&&Object(l["k"])(a,(function(e,r){var o=u[r]||{},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 r=s[t];i=i&&e.seriesIndex===r.seriesIndex&&e.dataIndex===r.dataIndex})),n&&Object(l["k"])(e.seriesDataIndices,(function(e){var r=e.seriesIndex,o=t[r],a=n[r];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()&&(Qg(this,"_updatePosition"),this._tooltipContent.dispose(),uU("itemTooltip",t))},t.type="tooltip",t}(Cp);function Aq(e,t,r){var n,i=t.ecModel;r?(n=new Tu(r,i,i),n=new Tu(t.option,n,i)):n=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&&(n=new Tu(a,n,i)))}return n}function Dq(e,t){return e.dispatchAction||Object(l["c"])(t.dispatchAction,t)}function Eq(e,t,r,n,i,o,a){var s=r.getSize(),l=s[0],u=s[1];return null!=o&&(e+l+o+2>n?e-=l+o:e+=o),null!=a&&(t+u+a>i?t-=u+a:t+=a),[e,t]}function Iq(e,t,r,n,i){var o=r.getSize(),a=o[0],s=o[1];return e=Math.min(e+a,n)-a,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function jq(e,t,r,n){var i=r[0],o=r[1],a=Math.ceil(Math.SQRT2*n)+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 Pq(e){return"center"===e||"middle"===e}function Rq(e,t,r){var n=Pi(e).queryOptionMap,i=n.keys()[0];if(i&&"series"!==i){var o=Bi(t,i,n.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),a=o.models[0];if(a){var s,l=r.getViewOfComponentModel(a);return l.group.traverse((function(t){var r=Ts(t).tooltipConfig;if(r&&r.name===e.name)return s=t,!0})),s?{componentMainType:i,componentIndex:a.componentIndex,el:s}:void 0}}}var Nq=Lq;function Bq(e){R_(MU),e.registerComponentModel(iq),e.registerComponentView(Nq),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},l["L"]),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},l["L"])}var Yq=["rect","polygon","keep","clear"];function Fq(e,t){var r=ci(e?e.brush:[]);if(r.length){var n=[];l["k"](r,(function(e){var t=e.hasOwnProperty("toolbox")?e.toolbox:[];t instanceof Array&&(n=n.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,n),zq(s),t&&!s.length&&s.push.apply(s,Yq)}}function zq(e){var t={};l["k"](e,(function(e){t[e]=1})),e.length=0,l["k"](t,(function(t,r){e.push(r)}))}var Hq=l["k"];function Vq(e){if(e)for(var t in e)if(e.hasOwnProperty(t))return!0}function Uq(e,t,r){var n={};return Hq(t,(function(t){var o=n[t]=i();Hq(e[t],(function(e,n){if(dj.isValidType(n)){var i={type:n,visual:e};r&&r(i,t),o[n]=new dj(i),"opacity"===n&&(i=l["d"](i),i.type="colorAlpha",o.__hidden.__alphaForOpacity=new dj(i))}}))})),n;function i(){var e=function(){};e.prototype.__hidden=e.prototype;var t=new e;return t}}function Wq(e,t,r){var n;l["k"](r,(function(e){t.hasOwnProperty(e)&&Vq(t[e])&&(n=!0)})),n&&l["k"](r,(function(r){t.hasOwnProperty(r)&&Vq(t[r])?e[r]=l["d"](t[r]):delete e[r]}))}function $q(e,t,r,n,i,o){var a,s={};function u(e){return Fv(r,a,e)}function c(e,t){Hv(r,a,e,t)}function d(e,l){a=null==o?e:l;var d=r.getRawDataItem(a);if(!d||!1!==d.visualMap)for(var h=n.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&&lX(t)}};function lX(e){return new Oe(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var uX=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return a(t,e),t.prototype.init=function(e,t){this.ecModel=e,this.api=t,this.model,(this._brushController=new bB(t.getZr())).on("brush",l["c"](this._onBrush,this)).mount()},t.prototype.render=function(e,t,r,n){this.model=e,this._updateController(e,t,r,n)},t.prototype.updateTransform=function(e,t,r,n){tX(t),this._updateController(e,t,r,n)},t.prototype.updateVisual=function(e,t,r,n){this.updateTransform(e,t,r,n)},t.prototype.updateView=function(e,t,r,n){this._updateController(e,t,r,n)},t.prototype._updateController=function(e,t,r,n){(!n||n.$from!==e.id)&&this._brushController.setPanels(e.brushTargetManager.makePanelOpts(r)).enableBrush(e.brushOption).updateCovers(e.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(e){var t=this.model.id,r=this.model.brushTargetManager.setOutputRanges(e.areas,this.ecModel);(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:t,areas:l["d"](r),$from:t}),e.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:t,areas:l["d"](r),$from:t})},t.type="brush",t}(Cp),cX=uX,dX="#ddd",hX=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r.areas=[],r.brushOption={},r}return a(t,e),t.prototype.optionUpdated=function(e,t){var r=this.option;!t&&Wq(r,e,["inBrush","outOfBrush"]);var n=r.inBrush=r.inBrush||{};r.outOfBrush=r.outOfBrush||{color:dX},n.hasOwnProperty("liftZ")||(n.liftZ=5)},t.prototype.setAreas=function(e){e&&(this.areas=l["H"](e,(function(e){return fX(this.option,e)}),this))},t.prototype.setBrushOption=function(e){this.brushOption=fX(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 fX(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 pX=hX,mX=["rect","polygon","lineX","lineY","keep","clear"],gX=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.render=function(e,t,r){var n,i,o;t.eachComponent({mainType:"brush"},(function(e){n=e.brushType,i=e.brushOption.brushMode||"single",o=o||!!e.areas.length})),this._brushType=n,this._brushMode=i,l["k"](e.get("type",!0),(function(t){e.setIconStatus(t,("keep"===t?"multiple"===i:"clear"===t?o:t===n)?"emphasis":"normal")}))},t.prototype.updateView=function(e,t,r){this.render(e,t,r)},t.prototype.getIcons=function(){var e=this.model,t=e.get("icon",!0),r={};return l["k"](e.get("type",!0),(function(e){t[e]&&(r[e]=t[e])})),r},t.prototype.onclick=function(e,t,r){var n=this._brushType,i=this._brushMode;"clear"===r?(t.dispatchAction({type:"axisAreaSelect",intervals:[]}),t.dispatchAction({type:"brush",command:"clear",areas:[]})):t.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===r?n:n!==r&&r,brushMode:"keep"===r?"multiple"===i?"single":"multiple":i}})},t.getDefaultOption=function(e){var t={show:!0,type:mX.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}($$),vX=gX;function yX(e){e.registerComponentView(cX),e.registerComponentModel(pX),e.registerPreprocessor(Fq),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,rX),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",vX)}var bX=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:"box",ignoreSize:!0},r}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),_X=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return a(t,e),t.prototype.render=function(e,t,r){if(this.group.removeAll(),e.get("show")){var n=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:nu(i,{text:e.get("text"),fill:i.getTextColor()},{disableBox:!0}),z2:10}),c=u.getBoundingRect(),d=e.get("subtext"),h=new Cs({style:nu(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,n.add(u),d&&n.add(h);var g=n.getBoundingRect(),v=e.getBoxLayoutParams();v.width=g.width,v.height=g.height;var y=Fc(v,{width:r.getWidth(),height:r.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"),n.x=y.x,n.y=y.y,n.markRedraw();var b={align:a,verticalAlign:s};u.setStyle(b),h.setStyle(b),g=n.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});n.add(x)}},t.type="title",t}(Cp);function wX(e){e.registerComponentModel(bX),e.registerComponentView(_X)}var xX=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode="box",r}return a(t,e),t.prototype.init=function(e,t,r){this.mergeDefaultAndTheme(e,r),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,r=t.data||[],n=t.axisType,i=this._names=[];"category"===n?(e=[],Object(l["k"])(r,(function(t,r){var n,o=Si(fi(t),"");Object(l["A"])(t)?(n=Object(l["d"])(t),n.value=r):n=r,e.push(n),i.push(o)}))):e=r;var o={category:"ordinal",time:"time",value:"number"}[n]||"number",a=this._data=new Xk([{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),kX=xX,SX=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return a(t,e),t.type="timeline.slider",t.defaultOption=Eu(kX.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}(kX);Object(l["K"])(SX,rf.prototype);var MX=SX,CX=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return a(t,e),t.type="timeline",t}(Cp),TX=CX,OX=function(e){function t(t,r,n,i){var o=e.call(this,t,r,n)||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}(NO),LX=OX,AX=Math.PI,DX=Ei(),EX=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return a(t,e),t.prototype.init=function(e,t){this.api=t},t.prototype.render=function(e,t,r){if(this.model=e,this.api=r,this.ecModel=t,this.group.removeAll(),e.get("show",!0)){var n=this._layout(e,r),i=this._createGroup("_mainGroup"),o=this._createGroup("_labelGroup"),a=this._axis=this._createAxis(n,e);e.formatTooltip=function(e){var t=a.scale.getLabel({value:e});return qf("nameValue",{noName:!0,value:t})},Object(l["k"])(["AxisLine","AxisTick","Control","CurrentPointer"],(function(t){this["_render"+t](n,i,a,e)}),this),this._renderAxisLabel(n,o,a,e),this._position(n,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 r,n=e.get(["label","position"]),i=e.get("orient"),o=jX(e,t);r=null==n||"auto"===n?"horizontal"===i?o.y+o.height/2=0||"+"===r?"left":"right"},d={horizontal:r>=0||"+"===r?"top":"bottom",vertical:"middle"},h={horizontal:0,vertical:AX/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*AX/180;var _=p.get("position",!0),w=m&&p.get("showPlayBtn",!0),x=m&&p.get("showPrevBtn",!0),k=m&&p.get("showNextBtn",!0),S=0,M=f;"left"===_||"bottom"===_?(w&&(a=[0,0],S+=y),x&&(s=[S,0],S+=y),k&&(u=[M-g,0],M-=y)):(w&&(a=[M-g,0],M-=y),x&&(s=[0,0],S+=y),k&&(u=[M-g,0],M-=y));var C=[S,M];return e.get("inverse")&&C.reverse(),{viewRect:o,mainLength:f,orient:i,rotation:h[i],labelRotation:b,labelPosOpt:r,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 r=this._mainGroup,n=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,-AX/2),he(o,o,[a,s]),i=i.clone(),i.applyTransform(o)}var u=v(i),c=v(r.getBoundingRect()),d=v(n.getBoundingRect()),h=[r.x,r.y],f=[n.x,n.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,r,n,i){e[n]+=r[n][i]-t[n][i]}r.setPosition(h),n.setPosition(f),r.rotation=n.rotation=e.rotation,g(r),g(n)},t.prototype._createAxis=function(e,t){var r=t.getData(),n=t.get("axisType"),i=IX(t,n);i.getTicks=function(){return r.mapArray(["value"],(function(e){return{value:e}}))};var o=r.getDataExtent("value");i.setExtent(o[0],o[1]),i.calcNiceTicks();var a=new LX("value",i,e.axisExtent,n);return a.model=t,a},t.prototype._createGroup=function(e){var t=this[e]=new kn;return this.group.add(t),t},t.prototype._renderAxisLine=function(e,t,r,n){var i=r.getExtent();if(n.get(["lineStyle","show"])){var o=new Pm({shape:{x1:i[0],y1:0,x2:i[1],y2:0},style:Object(l["m"])({lineCap:"round"},n.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});t.add(o);var a=this._progressLine=new Pm({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},n.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});t.add(a)}},t.prototype._renderAxisTick=function(e,t,r,n){var i=this,o=n.getData(),a=r.scale.getTicks();this._tickSymbols=[],Object(l["k"])(a,(function(e){var a=r.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=RX(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=n):p.dataIndex=p.dataModel=null,i._tickSymbols.push(f)}))},t.prototype._renderAxisLabel=function(e,t,r,n){var i=this,o=r.getLabelModel();if(o.get("show")){var a=n.getData(),s=r.getViewLabels();this._tickLabels=[],Object(l["k"])(s,(function(n){var o=n.tickValue,s=a.getItemModel(o),u=s.getModel("label"),c=s.getModel(["emphasis","label"]),d=s.getModel(["progress","label"]),h=r.dataToCoord(n.tickValue),f=new Cs({x:h,y:0,rotation:e.labelRotation-e.rotation,onclick:Object(l["c"])(i._changeTimeline,i,o),silent:!1,style:nu(u,{text:n.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});f.ensureState("emphasis").style=nu(c),f.ensureState("progress").style=nu(d),t.add(f),Tl(f),DX(f).dataIndex=o,i._tickLabels.push(f)}))}},t.prototype._renderControl=function(e,t,r,n){var i=e.controlSize,o=e.rotation,a=n.getModel("controlStyle").getItemStyle(),s=n.getModel(["emphasis","controlStyle"]).getItemStyle(),u=n.getPlayState(),c=n.get("inverse",!0);function d(e,r,u,c){if(e){var d=an(Object(l["P"])(n.get(["controlStyle",r+"BtnSize"]),i),i),h=[0,-d/2,d,d],f=PX(n,r+"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,r,n){var i=n.getData(),o=n.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),NX(e,s._progressLine,o,r,n,!0)},onUpdate:function(e){NX(e,s._progressLine,o,r,n)}};this._currentPointer=RX(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,r){this._clearTimer(),this._pointerChangeTimeline([r.offsetX,r.offsetY])},t.prototype._handlePointerDragend=function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},t.prototype._pointerChangeTimeline=function(e,t){var r=this._toAxisCoord(e)[0],n=this._axis,i=Fn(n.getExtent().slice());r>i[1]&&(r=i[1]),r=0&&(a[o]=+a[o].toFixed(h)),[a,d]}var tK={min:Object(l["h"])(eK,"min"),max:Object(l["h"])(eK,"max"),average:Object(l["h"])(eK,"average"),median:Object(l["h"])(eK,"median")};function rK(e,t){if(t){var r=e.getData(),n=e.coordinateSystem,i=n&&n.dimensions;if(!QX(t)&&!Object(l["t"])(t.coord)&&Object(l["t"])(i)){var o=nK(t,r,n,e);if(t=Object(l["d"])(t),t.type&&tK[t.type]&&o.baseAxis&&o.valueAxis){var a=Object(l["r"])(i,o.baseAxis.dim),s=Object(l["r"])(i,o.valueAxis.dim),u=tK[t.type](r,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++)tK[c[d]]&&(c[d]=lK(r,r.mapDimension(i[d]),c[d]));else t.coord=[];return t}}function nK(e,t,r,n){var i={};return null!=e.valueIndex||null!=e.valueDim?(i.valueDataDim=null!=e.valueIndex?t.getDimension(e.valueIndex):e.valueDim,i.valueAxis=r.getAxis(iK(n,i.valueDataDim)),i.baseAxis=r.getOtherAxis(i.valueAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim)):(i.baseAxis=n.getBaseAxis(),i.valueAxis=r.getOtherAxis(i.baseAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim),i.valueDataDim=t.mapDimension(i.valueAxis.dim)),i}function iK(e,t){var r=e.getData().getDimensionInfo(t);return r&&r.coordDim}function oK(e,t){return!(e&&e.containData&&t.coord&&!JX(t))||e.containData(t.coord)}function aK(e,t,r){return!(e&&e.containZone&&t.coord&&r.coord&&!JX(t)&&!JX(r))||e.containZone(t.coord,r.coord)}function sK(e,t){return e?function(e,r,n,i){var o=i<2?e.coord&&e.coord[i]:e.value;return lf(o,t[i])}:function(e,r,n,i){return lf(e.value,t[i])}}function lK(e,t,r){if("average"===r){var n=0,i=0;return e.each(t,(function(e,t){isNaN(e)||(n+=e,i++)})),n/i}return"median"===r?e.getMedian(t):e.getDataExtent(t)["max"===r?1:0]}var uK=Ei(),cK=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return a(t,e),t.prototype.init=function(){this.markerGroupMap=Object(l["f"])()},t.prototype.render=function(e,t,r){var n=this,i=this.markerGroupMap;i.each((function(e){uK(e).keep=!1})),t.eachSeries((function(e){var i=XX.getMarkerModelFromSeries(e,n.type);i&&n.renderSeries(e,i,t,r)})),i.each((function(e){!uK(e).keep&&n.group.remove(e.group)}))},t.prototype.markKeep=function(e){uK(e).keep=!0},t.prototype.toggleBlurSeries=function(e,t){var r=this;Object(l["k"])(e,(function(e){var n=XX.getMarkerModelFromSeries(e,r.type);if(n){var i=n.getData();i.eachItemGraphicEl((function(e){e&&(t?hl(e):fl(e))}))}}))},t.type="marker",t}(Cp),dK=cK;function hK(e,t,r){var n=t.coordinateSystem;e.each((function(i){var o,a=e.getItemModel(i),s=Bn(a.get("x"),r.getWidth()),l=Bn(a.get("y"),r.getHeight());if(isNaN(s)||isNaN(l)){if(t.getMarkerPosition)o=t.getMarkerPosition(e.getValues(e.dimensions,i));else if(n){var u=e.get(n.dimensions[0],i),c=e.get(n.dimensions[1],i);o=n.dataToPoint([u,c])}}else o=[s,l];isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),e.setItemLayout(i,o)}))}var fK=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return a(t,e),t.prototype.updateTransform=function(e,t,r){t.eachSeries((function(e){var t=XX.getMarkerModelFromSeries(e,"markPoint");t&&(hK(t.getData(),e,r),this.markerGroupMap.get(e.id).updateLayout())}),this)},t.prototype.renderSeries=function(e,t,r,n){var i=e.coordinateSystem,o=e.id,a=e.getData(),s=this.markerGroupMap,u=s.get(o)||s.set(o,new MS),c=pK(i,e,t);t.setData(c),hK(t.getData(),e,n),c.each((function(e){var r=c.getItemModel(e),n=r.getShallow("symbol"),i=r.getShallow("symbolSize"),o=r.getShallow("symbolRotate"),s=r.getShallow("symbolOffset"),u=r.getShallow("symbolKeepAspect");if(Object(l["w"])(n)||Object(l["w"])(i)||Object(l["w"])(o)||Object(l["w"])(s)){var d=t.getRawValue(e),h=t.getDataParams(e);Object(l["w"])(n)&&(n=n(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=r.getModel("itemStyle").getItemStyle(),p=zv(a,"color");f.fill||(f.fill=p),c.setItemVisual(e,{symbol:n,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}(dK);function pK(e,t,r){var n;n=e?Object(l["H"])(e&&e.dimensions,(function(e){var r=t.getData().getDimensionInfo(t.getData().mapDimension(e))||{};return Object(l["m"])(Object(l["m"])({},r),{name:e,ordinalMeta:null})})):[{name:"value",type:"float"}];var i=new Xk(n,r),o=Object(l["H"])(r.get("data"),Object(l["h"])(rK,t));e&&(o=Object(l["n"])(o,Object(l["h"])(oK,e)));var a=sK(!!e,n);return i.initData(o,null,a),i}var mK=fK;function gK(e){e.registerComponentModel(ZX),e.registerComponentView(mK),e.registerPreprocessor((function(e){WX(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})}))}var vK=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return a(t,e),t.prototype.createMarkerModelFromSeries=function(e,r,n){return new t(e,r,n)},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}(XX),yK=vK,bK=Ei(),_K=function(e,t,r,n){var i,o=e.getData();if(Object(l["t"])(n))i=n;else{var a=n.type;if("min"===a||"max"===a||"average"===a||"median"===a||null!=n.xAxis||null!=n.yAxis){var s=void 0,u=void 0;if(null!=n.yAxis||null!=n.xAxis)s=t.getAxis(null!=n.yAxis?"y":"x"),u=Object(l["O"])(n.yAxis,n.xAxis);else{var c=nK(n,o,t,e);s=c.valueAxis;var d=sS(o,c.valueDataDim);u=lK(o,d,a)}var h="x"===s.dim?0:1,f=1-h,p=Object(l["d"])(n),m={coord:[]};p.type=null,p.coord=[],p.coord[f]=-1/0,m.coord[f]=1/0;var g=r.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:n.valueIndex,value:u}]}else i=[]}var v=[rK(e,i[0]),rK(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 wK(e){return!isNaN(e)&&!isFinite(e)}function xK(e,t,r,n){var i=1-e,o=n.dimensions[e];return wK(t[i])&&wK(r[i])&&t[e]===r[e]&&n.getAxis(o).containData(t[e])}function kK(e,t){if("cartesian2d"===e.type){var r=t[0].coord,n=t[1].coord;if(r&&n&&(xK(1,r,n,e)||xK(0,r,n,e)))return!0}return oK(e,t[0])&&oK(e,t[1])}function SK(e,t,r,n,i){var o,a=n.coordinateSystem,s=e.getItemModel(t),l=Bn(s.get("x"),i.getWidth()),u=Bn(s.get("y"),i.getHeight());if(isNaN(l)||isNaN(u)){if(n.getMarkerPosition)o=n.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(WS(a,"cartesian2d")){var f=a.getAxis("x"),p=a.getAxis("y");c=a.dimensions;wK(e.get(c[0],t))?o[0]=f.toGlobalCoord(f.getExtent()[r?0:1]):wK(e.get(c[1],t))&&(o[1]=p.toGlobalCoord(p.getExtent()[r?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];e.setItemLayout(t,o)}var MK=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return a(t,e),t.prototype.updateTransform=function(e,t,r){t.eachSeries((function(e){var t=XX.getMarkerModelFromSeries(e,"markLine");if(t){var n=t.getData(),i=bK(t).from,o=bK(t).to;i.each((function(t){SK(i,t,!0,e,r),SK(o,t,!1,e,r)})),n.each((function(e){n.setItemLayout(e,[i.getItemLayout(e),o.getItemLayout(e)])})),this.markerGroupMap.get(e.id).updateLayout()}}),this)},t.prototype.renderSeries=function(e,t,r,n){var i=e.coordinateSystem,o=e.id,a=e.getData(),s=this.markerGroupMap,u=s.get(o)||s.set(o,new FP);this.group.add(u.group);var c=CK(i,e,t),d=c.from,h=c.to,f=c.line;bK(t).from=d,bK(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,r,i){var o=t.getItemModel(r);SK(t,r,i,e,n);var s=o.getModel("itemStyle").getItemStyle();null==s.fill&&(s.fill=zv(a,"color")),t.setItemVisual(r,{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}(dK);function CK(e,t,r){var n;n=e?Object(l["H"])(e&&e.dimensions,(function(e){var r=t.getData().getDimensionInfo(t.getData().mapDimension(e))||{};return Object(l["m"])(Object(l["m"])({},r),{name:e,ordinalMeta:null})})):[{name:"value",type:"float"}];var i=new Xk(n,r),o=new Xk(n,r),a=new Xk([],r),s=Object(l["H"])(r.get("data"),Object(l["h"])(_K,t,e,r));e&&(s=Object(l["n"])(s,Object(l["h"])(kK,e)));var u=sK(!!e,n);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 TK=MK;function OK(e){e.registerComponentModel(yK),e.registerComponentView(TK),e.registerPreprocessor((function(e){WX(e.series,"markLine")&&(e.markLine=e.markLine||{})}))}var LK=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return a(t,e),t.prototype.createMarkerModelFromSeries=function(e,r,n){return new t(e,r,n)},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}(XX),AK=LK,DK=Ei(),EK=function(e,t,r,n){var i=n[0],o=n[1];if(i&&o){var a=rK(e,i),s=rK(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 IK(e){return!isNaN(e)&&!isFinite(e)}function jK(e,t,r,n){var i=1-e;return IK(t[i])&&IK(r[i])}function PK(e,t){var r=t.coord[0],n=t.coord[1],i={coord:r,x:t.x0,y:t.y0},o={coord:n,x:t.x1,y:t.y1};return WS(e,"cartesian2d")?!(!r||!n||!jK(1,r,n,e)&&!jK(0,r,n,e))||aK(e,i,o):oK(e,i)||oK(e,o)}function RK(e,t,r,n,i){var o,a=n.coordinateSystem,s=e.getItemModel(t),l=Bn(s.get(r[0]),i.getWidth()),u=Bn(s.get(r[1]),i.getHeight());if(isNaN(l)||isNaN(u)){if(n.getMarkerPosition){var c=e.getValues(["x0","y0"],t),d=e.getValues(["x1","y1"],t),h=a.clampData(c),f=a.clampData(d),p=[];"x0"===r[0]?p[0]=h[0]>f[0]?d[0]:c[0]:p[0]=h[0]>f[0]?c[0]:d[0],"y0"===r[1]?p[1]=h[1]>f[1]?d[1]:c[1]:p[1]=h[1]>f[1]?c[1]:d[1],o=n.getMarkerPosition(p,r,!0)}else{var m=e.get(r[0],t),g=e.get(r[1],t),v=[m,g];a.clampData&&a.clampData(v,v),o=a.dataToPoint(v,!0)}if(WS(a,"cartesian2d")){var y=a.getAxis("x"),b=a.getAxis("y");m=e.get(r[0],t),g=e.get(r[1],t);IK(m)?o[0]=y.toGlobalCoord(y.getExtent()["x0"===r[0]?0:1]):IK(g)&&(o[1]=b.toGlobalCoord(b.getExtent()["y0"===r[1]?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];return o}var NK=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],BK=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return a(t,e),t.prototype.updateTransform=function(e,t,r){t.eachSeries((function(e){var t=XX.getMarkerModelFromSeries(e,"markArea");if(t){var n=t.getData();n.each((function(t){var i=Object(l["H"])(NK,(function(i){return RK(n,t,i,e,r)}));n.setItemLayout(t,i);var o=n.getItemGraphicEl(t);o.setShape("points",i)}))}}),this)},t.prototype.renderSeries=function(e,t,r,n){var i=e.coordinateSystem,o=e.id,a=e.getData(),s=this.markerGroupMap,u=s.get(o)||s.set(o,{group:new kn});this.group.add(u.group),this.markKeep(u);var c=YK(i,e,t);t.setData(c),c.each((function(t){var r=Object(l["H"])(NK,(function(r){return RK(c,t,r,e,n)})),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))];Fn(h),Fn(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),UK=VK,WK=l["h"],$K=l["k"],GK=kn,qK=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r.newlineDisabled=!1,r}return a(t,e),t.prototype.init=function(){this.group.add(this._contentGroup=new GK),this.group.add(this._selectorGroup=new GK),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,t,r){var n=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,r,a,o,s);var u=e.getBoxLayoutParams(),c={width:r.getWidth(),height:r.getHeight()},d=e.get("padding"),h=Fc(u,c,d),f=this.layoutInner(e,i,h,n,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=Q$(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,r,n,i,o,a){var s=this.getContentGroup(),u=l["f"](),c=t.get("selectedMode"),d=[];r.eachRawSeries((function(e){!e.get("legendHoverLink")&&d.push(e.id)})),$K(t.getData(),(function(i,o){var a=i.get("name");if(!this.newlineDisabled&&(""===a||"\n"===a)){var h=new GK;return h.newline=!0,void s.add(h)}var f=r.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,n);y.on("click",WK(ZK,a,null,n,d)).on("mouseover",WK(QK,f.name,null,n,d)).on("mouseout",WK(eZ,f.name,null,n,d)),r.ssr&&y.eachChild((function(e){var t=Ts(e);t.seriesIndex=f.seriesIndex,t.dataIndex=o,t.ssrType="legend"})),u.set(a,!0)}else r.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,n);v.on("click",WK(ZK,null,a,n,d)).on("mouseover",WK(QK,null,a,n,d)).on("mouseout",WK(eZ,null,a,n,d)),r.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,n,o,a)},t.prototype._createSelector=function(e,t,r,n,i){var o=this.getSelectorGroup();$K(e,(function(e){var n=e.type,i=new Cs({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){r.dispatchAction({type:"all"===n?"legendAllSelect":"legendInverseSelect"})}});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,r,n,i,o,a,s,u,c,d){var h=e.visualDrawType,f=i.get("itemWidth"),p=i.get("itemHeight"),m=i.isSelected(t),g=n.get("symbolRotate"),v=n.get("symbolKeepAspect"),y=n.get("icon");u=y||u||"roundRect";var b=XK(u,n,a,s,h,m,d),_=new GK,w=n.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(KK({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,S=o,M=i.get("formatter"),C=t;l["C"](M)&&M?C=M.replace("{name}",null!=t?t:""):l["w"](M)&&(C=M(t));var T=m?w.getTextColor():n.get("inactiveColor");_.add(new Cs({style:nu(w,{text:C,x:k,y:p/2,fill:T,align:S,verticalAlign:"middle"},{inheritColor:T})}));var O=new ls({shape:_.getBoundingRect(),style:{fill:"transparent"}}),L=n.getModel("tooltip");return L.get("show")&&Rg({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=r,_},t.prototype.layoutInner=function(e,t,r,n,i,o){var a=this.getContentGroup(),s=this.getSelectorGroup();Bc(e.get("orient"),a,e.get("itemGap"),r.width,r.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}(Cp);function XK(e,t,r,n,i,o,a){function s(e,t){"auto"===e.lineWidth&&(e.lineWidth=t.lineWidth>0?2:0),$K(e,(function(r,n){"inherit"===e[n]&&(e[n]=t[n])}))}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?Xy(d,a):n.decal,"inherit"===u.fill&&(u.fill=n[i]),"inherit"===u.stroke&&(u.stroke=n[c]),"inherit"===u.opacity&&(u.opacity=("fill"===i?n:r).opacity),s(u,n);var h=t.getModel("lineStyle"),f=h.getLineStyle();if(s(f,r),"auto"===u.fill&&(u.fill=n.fill),"auto"===u.stroke&&(u.stroke=n.fill),"auto"===f.stroke&&(f.stroke=n.fill),!o){var p=t.get("inactiveBorderWidth"),m=u[c];u.lineWidth="auto"===p?n.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 KK(e){var t=e.icon||"roundRect",r=ay(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return r.setStyle(e.itemStyle),r.rotation=(e.iconRotate||0)*Math.PI/180,r.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill="#fff",r.style.lineWidth=2),r}function ZK(e,t,r,n){eZ(e,t,r,n),r.dispatchAction({type:"legendToggleSelect",name:null!=e?e:t}),QK(e,t,r,n)}function JK(e){var t,r=e.getZr().storage.getDisplayList(),n=0,i=r.length;while(nr[i],m=[-h.x,-h.y];t||(m[n]=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[n]+=r[i]-f[i]:g[n]+=f[i]+y}v[1-n]+=h[o]/2-f[o]/2,u.setPosition(m),c.setPosition(g),d.setPosition(v);var _={x:0,y:0};if(_[i]=p?r[i]:h[i],_[o]=Math.max(h[o],f[o]),_[a]=Math.min(0,f[a]+v[1-n]),c.__rectSize=r[i],p){var w={x:0,y:0};w[i]=Math.max(r[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&&Ul(u,{x:x.contentPosition[0],y:x.contentPosition[1]},p?e:null),this._updatePageInfoView(e,x),_},t.prototype._pageGo=function(e,t,r){var n=this._getPageInfo(t)[e];null!=n&&r.dispatchAction({type:"legendScroll",scrollDataIndex:n,legendId:t.id})},t.prototype._updatePageInfoView=function(e,t){var r=this._controllerGroup;l["k"](["pagePrev","pageNext"],(function(n){var i=n+"DataIndex",o=null!=t[i],a=r.childOfName(n);a&&(a.setStyle("fill",o?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),a.cursor=o?"pointer":"default")}));var n=r.childOfName("pageText"),i=e.get("pageFormatter"),o=t.pageIndex,a=null!=o?o+1:0,s=t.pageCount;n&&i&&n.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),r=this.getContentGroup(),n=this._containerGroup.__rectSize,i=e.getOrient().index,o=cZ[i],a=dZ[i],s=this._findTargetItemIndex(t),l=r.children(),u=l[s],c=l.length,d=c?1:0,h={contentPosition:[r.x,r.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+n||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+n}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var t,r,n=this.getContentGroup();return n.eachChild((function(n,i){var o=n.__legendDataIndex;null==r&&null!=o&&(r=i),o===e&&(t=i)})),null!=t?t:r},t.type="legend.scroll",t}(tZ),fZ=hZ;function pZ(e){e.registerAction("legendScroll","legendscroll",(function(e,t){var r=e.scrollDataIndex;null!=r&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},(function(e){e.setScrollDataIndex(r)}))}))}function mZ(e){R_(oZ),e.registerComponentModel(lZ),e.registerComponentView(fZ),pZ(e)}function gZ(e){R_(oZ),R_(mZ)}var vZ=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return a(t,e),t.type="dataZoom.inside",t.defaultOption=Eu(O$.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(O$),yZ=vZ,bZ=Ei();function _Z(e,t,r){bZ(e).coordSysRecordMap.each((function(e){var n=e.dataZoomInfoMap.get(t.uid);n&&(n.getRange=r)}))}function wZ(e,t){for(var r=bZ(e).coordSysRecordMap,n=r.keys(),i=0;in[r+t]&&(t=a),i=i&&o.get("preventDefaultMouseMove",!0)})),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!i}}}function TZ(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,(function(e,t){var r=bZ(t),n=r.coordSysRecordMap||(r.coordSysRecordMap=Object(l["f"])());n.each((function(e){e.dataZoomInfoMap=null})),e.eachComponent({mainType:"dataZoom",subType:"inside"},(function(e){var r=S$(e);Object(l["k"])(r.infoList,(function(r){var i=r.model.uid,o=n.get(i)||n.set(i,kZ(t,r.model)),a=o.dataZoomInfoMap||(o.dataZoomInfoMap=Object(l["f"])());a.set(e.uid,{dzReferCoordSysInfo:r,model:e,getRange:null})}))})),n.each((function(e){var t,r=e.controller,i=e.dataZoomInfoMap;if(i){var o=i.keys()[0];null!=o&&(t=i.get(o))}if(t){var a=CZ(i);r.enable(a.controlType,a.opt),r.setPointerChecker(e.containsPoint),Jg(e,"dispatchAction",t.model.get("throttle",!0),"fixRate")}else xZ(n,e)}))}))}var OZ=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,r,n){e.prototype.render.apply(this,arguments),t.noTarget()?this._clear():(this.range=t.getPercentRange(),_Z(n,t,{pan:Object(l["c"])(LZ.pan,this),zoom:Object(l["c"])(LZ.zoom,this),scrollMove:Object(l["c"])(LZ.scrollMove,this)}))},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){wZ(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(E$),LZ={zoom:function(e,t,r,n){var i=this.range,o=i.slice(),a=e.axisModels[0];if(a){var s=DZ[t](null,[n.originX,n.originY],a,r,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/n.scale,0);o[0]=(o[0]-l)*u+l,o[1]=(o[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return iN(0,o,[0,100],0,c.minSpan,c.maxSpan),this.range=o,i[0]!==o[0]||i[1]!==o[1]?o:void 0}},pan:AZ((function(e,t,r,n,i,o){var a=DZ[n]([o.oldX,o.oldY],[o.newX,o.newY],t,i,r);return a.signal*(e[1]-e[0])*a.pixel/a.pixelLength})),scrollMove:AZ((function(e,t,r,n,i,o){var a=DZ[n]([0,0],[o.scrollDelta,o.scrollDelta],t,i,r);return a.signal*(e[1]-e[0])*o.scrollDelta}))};function AZ(e){return function(t,r,n,i){var o=this.range,a=o.slice(),s=t.axisModels[0];if(s){var l=e(a,s,t,r,n,i);return iN(l,a,[0,100],"all"),this.range=a,o[0]!==a[0]||o[1]!==a[1]?a:void 0}}}var DZ={grid:function(e,t,r,n,i){var o=r.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,r,n,i){var o=r.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"===r.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,r,n,i){var o=r.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}},EZ=OZ;function IZ(e){U$(e),e.registerComponentModel(yZ),e.registerComponentView(EZ),TZ(e)}var jZ=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return a(t,e),t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=Eu(O$.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:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(O$),PZ=jZ,RZ=ls,NZ=7,BZ=1,YZ=30,FZ=7,zZ="horizontal",HZ="vertical",VZ=5,UZ=["line","bar","candlestick","scatter"],WZ={easing:"cubicOut",duration:100,delay:0},$Z=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r._displayables={},r}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,r,n,i){if(e.prototype.render.apply(this,arguments),Jg(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(){Qg(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 kn;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(t),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,t=this.api,r=e.get("brushSelect"),n=r?FZ:0,i=this._findCoordRect(),o={width:t.getWidth(),height:t.getHeight()},a=this._orient===zZ?{right:o.width-i.x-i.width,top:o.height-YZ-NZ-n,width:i.width,height:YZ}:{right:NZ,top:i.y,width:YZ,height:i.height},s=Wc(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===HZ&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,t=this._location,r=this._orient,n=this.dataZoomModel.getFirstTargetAxisModel(),i=n&&n.get("inverse"),o=this._displayables.sliderGroup,a=(this._dataShadowInfo||{}).otherAxisInverse;o.attr(r!==zZ||i?r===zZ&&i?{scaleY:a?1:-1,scaleX:-1}:r!==HZ||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,r=this._displayables.sliderGroup,n=e.get("brushSelect");r.add(new RZ({silent:!0,shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var i=new RZ({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();n?(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)),r.add(i)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],e){var t=this._size,r=this._shadowSize||[],n=e.series,i=n.getRawData(),o=n.getShadowDim&&n.getShadowDim(),a=o&&i.getDimensionInfo(o)?n.getShadowDim():e.otherDim;if(null!=a){var s=this._shadowPolygonPts,l=this._shadowPolylinePts;if(i!==this._shadowData||a!==this._shadowDim||t[0]!==r[0]||t[1]!==r[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 r=null==e||isNaN(e)||""===e,n=r?0:Nn(e,u,h,!0);r&&!d&&t?(p.push([p[p.length-1][0],0]),m.push([m[m.length-1][0],0])):!r&&d&&(p.push([v,0]),m.push([v,0])),p.push([v,n]),m.push([v,n]),v+=g,d=r}})),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"),r=new kn,n=new Om({shape:{points:s},segmentIgnoreThreshold:1,style:t.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),i=new Dm({shape:{points:l},segmentIgnoreThreshold:1,style:t.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return r.add(n),r.add(i),r}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,t=e.get("showDataShadow");if(!1!==t){var r,n=this.ecModel;return e.eachTargetAxis((function(i,o){var a=e.getAxisProxy(i,o).getTargetSeriesModels();Object(l["k"])(a,(function(e){if(!r&&!(!0!==t&&Object(l["r"])(UZ,e.get("type"))<0)){var a,s=n.getComponent(x$(i),o).axis,u=GZ(i),c=e.coordinateSystem;null!=u&&c.getOtherAxis&&(a=c.getOtherAxis(s).inverse),u=e.getData().mapDimension(u),r={thisAxis:s,series:e,thisDim:i,otherDim:u,otherAxisInverse:a}}}),this)}),this),r}},t.prototype._renderHandle=function(){var e=this.group,t=this._displayables,r=t.handles=[null,null],n=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 RZ({silent:c,style:{fill:a.get("fillerColor")},textConfig:{position:"inside"}});i.add(d),i.add(new RZ({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:BZ,fill:"rgba(0,0,0,0)"}})),Object(l["k"])([0,1],(function(t){var o=a.get("handleIcon");!ny[o]&&o.indexOf("path://")<0&&o.indexOf("image://")<0&&(o="path://"+o);var s=ay(o,-1,0,2,2,null,!0);s.attr({cursor:qZ(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=Bn(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(r[t]=s);var h=a.getModel("textStyle");e.add(n[t]=new Cs({silent:!0,invisible:!0,style:nu(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=Bn(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=ay(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:qZ(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=[Nn(e[0],[0,100],t,!0),Nn(e[1],[0,100],t,!0)]},t.prototype._updateInterval=function(e,t){var r=this.dataZoomModel,n=this._handleEnds,i=this._getViewExtent(),o=r.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100];iN(t,n,i,r.get("zoomLock")?"all":e,null!=o.minSpan?Nn(o.minSpan,a,i,!0):null,null!=o.maxSpan?Nn(o.maxSpan,a,i,!0):null);var s=this._range,l=this._range=Fn([Nn(n[0],i,a,!0),Nn(n[1],i,a,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},t.prototype._updateView=function(e){var t=this._displayables,r=this._handleEnds,n=Fn(r.slice()),i=this._size;Object(l["k"])([0,1],(function(e){var n=t.handles[e],o=this._handleHeight;n.attr({scaleX:o/2,scaleY:o/2,x:r[e]+(e?-1:1),y:i[1]/2-o/2})}),this),t.filler.setShape({x:n[0],y:0,width:n[1]-n[0],height:i[1]});var o={x:n[0],width:n[1]-n[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,n[0],n[1],i[0]],u=0;ut[0]||r[1]<0||r[1]>t[1])){var n=this._handleEnds,i=(n[0]+n[1])/2,o=this._updateInterval("all",r[0]-i);this._updateView(),o&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var t=e.offsetX,r=e.offsetY;this._brushStart=new ye(t,r),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 r=t.shape,n=+new Date;if(!(n-this._brushStartTime<200&&Math.abs(r.width)<5)){var i=this._getViewExtent(),o=[0,100];this._range=Fn([Nn(r.x,i,o,!0),Nn(r.x+r.width,i,o,!0)]),this._handleEnds=[r.x,r.x+r.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(re(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,t){var r=this._displayables,n=this.dataZoomModel,i=r.brushRect;i||(i=r.brushRect=new RZ({silent:!0,style:n.getModel("brushStyle").getItemStyle()}),r.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?WZ:null,start:t[0],end:t[1]})},t.prototype._findCoordRect=function(){var e,t=S$(this.dataZoomModel).infoList;if(!e&&t.length){var r=t[0].model.coordinateSystem;e=r.getRect&&r.getRect()}if(!e){var n=this.api.getWidth(),i=this.api.getHeight();e={x:.2*n,y:.2*i,width:.6*n,height:.6*i}}return e},t.type="dataZoom.slider",t}(E$);function GZ(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}function qZ(e){return"vertical"===e?"ns-resize":"ew-resize"}var XZ=$Z;function KZ(e){e.registerComponentModel(PZ),e.registerComponentView(XZ),U$(e)}function ZZ(e){R_(IZ),R_(KZ)}var JZ={get:function(e,t,r){var n=l["d"]((QZ[e]||{})[t]);return r&&l["t"](n)?n[n.length-1]:n}},QZ={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]}},eJ=JZ,tJ=dj.mapVisual,rJ=dj.eachVisual,nJ=l["t"],iJ=l["k"],oJ=Fn,aJ=Nn,sJ=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r.stateList=["inRange","outOfRange"],r.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],r.layoutMode={type:"box",ignoreSize:!0},r.dataBound=[-1/0,1/0],r.targetVisuals={},r.controllerVisuals={},r}return a(t,e),t.prototype.init=function(e,t,r){this.mergeDefaultAndTheme(e,r)},t.prototype.optionUpdated=function(e,t){var r=this.option;!t&&Wq(r,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=Uq(this.option.controller,t,e),this.targetVisuals=Uq(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,r){t.push(r)})):t=ci(e),t},t.prototype.eachTargetSeries=function(e,t){l["k"](this.getTargetSeriesIndices(),(function(r){var n=this.ecModel.getSeriesByIndex(r);n&&e.call(t,n)}),this)},t.prototype.isTargetSeries=function(e){var t=!1;return this.eachTargetSeries((function(r){r===e&&(t=!0)})),t},t.prototype.formatValueText=function(e,t,r){var n,i=this.option,o=i.precision,a=this.dataBound,s=i.formatter;r=r||["<",">"],l["t"](e)&&(e=e.slice(),n=!0);var u=t?e:n?[c(e[0]),c(e[1])]:c(e);return l["C"](s)?s.replace("{value}",n?u[0]:u).replace("{value2}",n?u[1]:u):l["w"](s)?n?s(e[0],e[1]):s(e):n?e[0]===a[0]?r[0]+" "+u[1]:e[1]===a[1]?r[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=oJ([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 r=e.dimensions,n=r.length-1;n>=0;n--){var i=r[n],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,r={inRange:t.inRange,outOfRange:t.outOfRange},n=t.target||(t.target={}),i=t.controller||(t.controller={});l["I"](n,r),l["I"](i,r);var o=this.isCategory();function a(r){nJ(t.color)&&!r.inRange&&(r.inRange={color:t.color.slice().reverse()}),r.inRange=r.inRange||{color:e.get("gradientColor")}}function s(e,t,r){var n=e[t],i=e[r];n&&!i&&(i=e[r]={},iJ(n,(function(e,t){if(dj.isValidType(t)){var r=eJ.get(t,"inactive",o);null!=r&&(i[t]=r,"color"!==t||i.hasOwnProperty("opacity")||i.hasOwnProperty("colorAlpha")||(i.opacity=[0,0]))}})))}function u(e){var t=(e.inRange||{}).symbol||(e.outOfRange||{}).symbol,r=(e.inRange||{}).symbolSize||(e.outOfRange||{}).symbolSize,n=this.get("inactiveColor"),i=this.getItemSymbol(),a=i||"roundRect";iJ(this.stateList,(function(i){var s=this.itemSize,u=e[i];u||(u=e[i]={color:o?n:[n]}),null==u.symbol&&(u.symbol=t&&l["d"](t)||(o?a:[a])),null==u.symbolSize&&(u.symbolSize=r&&l["d"](r)||(o?s[0]:[s[0],s[0]])),u.symbol=tJ(u.symbol,(function(e){return"none"===e?a:e}));var c=u.symbolSize;if(null!=c){var d=-1/0;rJ(c,(function(e){e>d&&(d=e)})),u.symbolSize=tJ(c,(function(e){return aJ(e,[0,d],[0,s[0]],!0)}))}}),this)}a.call(this,n),a.call(this,i),s.call(this,n,"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),lJ=sJ,uJ=[20,140],cJ=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return a(t,e),t.prototype.optionUpdated=function(t,r){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]=uJ[0]),(null==t[1]||isNaN(t[1]))&&(t[1]=uJ[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=Fn((this.get("range")||[]).slice());return t[0]>e[1]&&(t[0]=e[1]),t[1]>e[1]&&(t[1]=e[1]),t[0]=r[1]||e<=t[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var t=[];return this.eachTargetSeries((function(r){var n=[],i=r.getData();i.each(this.getDataDimensionIndex(i),(function(t,r){e[0]<=t&&t<=e[1]&&n.push(r)}),this),t.push({seriesId:r.id,dataIndex:n})}),this),t},t.prototype.getVisualMeta=function(e){var t=dJ(this,"outOfRange",this.getExtent()),r=dJ(this,"inRange",this.option.range.slice()),n=[];function i(t,r){n.push({value:t,color:e(t,r)})}for(var o=0,a=0,s=r.length,l=t.length;ae[1])break;n.push({color:this.getControllerVisual(a,"color",t),offset:o/r})}return n.push({color:this.getControllerVisual(e[1],"color",t),offset:1}),n},t.prototype._createBarPoints=function(e,t){var r=this.visualMapModel.itemSize;return[[r[0]-t[0],e[0]],[r[0],e[0]],[r[0],e[1]],[r[0]-t[1],e[1]]]},t.prototype._createBarGroup=function(e){var t=this._orient,r=this.visualMapModel.get("inverse");return new kn("horizontal"!==t||r?"horizontal"===t&&r?{scaleX:"bottom"===e?-1:1,rotation:-Math.PI/2}:"vertical"!==t||r?{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 r=this._shapes,n=this.visualMapModel,i=r.handleThumbs,o=r.handleLabels,a=n.itemSize,s=n.getExtent();bJ([0,1],(function(l){var u=i[l];u.setStyle("fill",t.handlesColor[l]),u.y=e[l];var c=yJ(e[l],[0,a[1]],s,!0),d=this.getControllerVisual(c,"symbolSize");u.scaleX=u.scaleY=d/a[0],u.x=a[0]-d/2;var h=Sg(r.handleLabelPoints[l],kg(u,this.group));o[l].setStyle({x:h[0],y:h[1],text:n.formatValueText(this._dataInterval[l]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",r.mainGroup):"center"})}),this)}},t.prototype._showIndicator=function(e,t,r,n){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=yJ(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,kg(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:(r||"")+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 S=this._shapes.handleLabels;if(S)for(var M=0;Mi[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||TJ(r))&&(d=this._hoverLinkDataIndices=r.findTargetDataIndices(u));var h=Ai(c,d);this._dispatchHighDown("downplay",vJ(h[0],r)),this._dispatchHighDown("highlight",vJ(h[1],r))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var t;if($v(e.target,(function(e){var r=Ts(e);if(null!=r.dataIndex)return t=r,!0}),!0),t){var r=this.ecModel.getSeriesByIndex(t.seriesIndex),n=this.visualMapModel;if(n.isTargetSeries(r)){var i=r.getData(t.dataType),o=i.getStore().get(n.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 r=0;r=0&&(i.dimension=o,n.push(i))}})),e.getData().setVisual("visualMeta",n)}}];function IJ(e,t,r,n){for(var i=t.targetVisuals[n],o=dj.prepareVisualTypes(i),a={color:zv(e.getData(),"color")},s=0,l=o.length;s0:e.splitNumber>0)&&!e.calculable?"piecewise":"continuous"})),e.registerAction(AJ,DJ),Object(l["k"])(EJ,(function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)})),e.registerPreprocessor(PJ))}function YJ(e){e.registerComponentModel(hJ),e.registerComponentView(LJ),BJ(e)}var FJ=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r._pieceList=[],r}return a(t,e),t.prototype.optionUpdated=function(t,r){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var n=this._mode=this._determineMode();this._pieceList=[],zJ[this._mode].call(this,this._pieceList),this._resetSelected(t,r);var i=this.option.categories;this.resetVisual((function(e,t){"categories"===n?(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,r={},n=dj.listVisualTypes(),i=this.isCategory();function o(e,t,r){return e&&e[t]&&e[t].hasOwnProperty(r)}l["k"](t.pieces,(function(e){l["k"](n,(function(t){e.hasOwnProperty(t)&&(r[t]=1)}))})),l["k"](r,(function(e,r){var n=!1;l["k"](this.stateList,(function(e){n=n||o(t,e,r)||o(t.target,e,r)}),this),!n&&l["k"](this.stateList,(function(e){(t[e]||(t[e]={}))[r]=eJ.get(r,"inRange"===e?"active":"inactive",i)}))}),this),e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,t){var r=this.option,n=this._pieceList,i=(t?r:e).selected||{};if(r.selected=i,l["k"](n,(function(e,t){var r=this.getSelectedMapKey(e);i.hasOwnProperty(r)||(i[r]=!0)}),this),"single"===r.selectedMode){var o=!1;l["k"](n,(function(e,t){var r=this.getSelectedMapKey(e);i[r]&&(o?i[r]=!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=dj.findPieceIndex(e,this._pieceList);return null!=t&&this.option.selected[this.getSelectedMapKey(this._pieceList[t])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var t=[],r=this._pieceList;return this.eachTargetSeries((function(n){var i=[],o=n.getData();o.each(this.getDataDimensionIndex(o),(function(t,n){var o=dj.findPieceIndex(t,r);o===e&&i.push(n)}),this),t.push({seriesId:n.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 r=e.interval||[];t=r[0]===-1/0&&r[1]===1/0?0:(r[0]+r[1])/2}return t},t.prototype.getVisualMeta=function(e){if(!this.isCategory()){var t=[],r=["",""],n=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:r}}function s(i,o){var a=n.getRepresentValue({interval:i});o||(o=n.getValueState(a));var s=e(a,o);i[0]===-1/0?r[0]=s:i[1]===1/0?r[1]=s:t.push({value:i[0],color:s},{value:i[1],color:s})}},t.type="visualMap.piecewise",t.defaultOption=Eu(lJ.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}(lJ),zJ={splitNumber:function(e){var t=this.option,r=Math.min(t.precision,20),n=this.getExtent(),i=t.splitNumber;i=Math.max(parseInt(i,10),1),t.splitNumber=i;var o=(n[1]-n[0])/i;while(+o.toFixed(r)!==o&&r<5)r++;t.precision=r,o=+o.toFixed(r),t.minOpen&&e.push({interval:[-1/0,n[0]],close:[0,0]});for(var a=0,s=n[0];a","≥"][t[0]]];e.text=e.text||this.formatValueText(null!=e.value?e.value:e.interval,!1,r)}),this)}};function HJ(e,t){var r=e.inverse;("vertical"===e.orient?!r:r)&&t.reverse()}var VJ=FJ,UJ=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return a(t,e),t.prototype.doRender=function(){var e=this.group;e.removeAll();var t=this.visualMapModel,r=t.get("textGap"),n=t.textStyleModel,i=n.getFont(),o=n.getTextColor(),a=this._getItemAlign(),s=t.itemSize,u=this._getViewData(),c=u.endsText,d=l["O"](t.get("showLabel",!0),!c);c&&this._renderEndsText(e,c[0],s,d,a),l["k"](u.viewPieceList,(function(n){var u=n.piece,c=new kn;c.onclick=l["c"](this._onItemClick,this,u),this._enableHoverLink(c,n.indexInModelPieceList);var h=t.getRepresentValue(u);if(this._createItemSymbol(c,h,[0,0,s[0],s[1]]),d){var f=this.visualMapModel.getValueState(h);c.add(new Cs({style:{x:"right"===a?-r:s[0]+r,y:s[1]/2,text:u.text,verticalAlign:"middle",align:a,font:i,fill:o,opacity:"outOfRange"===f?.5:1}}))}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 r=this;e.on("mouseover",(function(){return n("highlight")})).on("mouseout",(function(){return n("downplay")}));var n=function(e){var n=r.visualMapModel;n.option.hoverLink&&r.api.dispatchAction({type:e,batch:vJ(n.findTargetDataIndices(t),n)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,t=e.option;if("vertical"===t.orient)return gJ(e,this.api,e.itemSize);var r=t.align;return r&&"auto"!==r||(r="left"),r},t.prototype._renderEndsText=function(e,t,r,n,i){if(t){var o=new kn,a=this.visualMapModel.textStyleModel;o.add(new Cs({style:nu(a,{x:n?"right"===i?r[0]:0:r[0]/2,y:r[1]/2,verticalAlign:"middle",align:n?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}})),r=e.get("text"),n=e.get("orient"),i=e.get("inverse");return("horizontal"===n?i:!i)?t.reverse():r&&(r=r.slice().reverse()),{viewPieceList:t,endsText:r}},t.prototype._createItemSymbol=function(e,t,r){e.add(ay(this.getControllerVisual(t,"symbol"),r[0],r[1],r[2],r[3],this.getControllerVisual(t,"color")))},t.prototype._onItemClick=function(e){var t=this.visualMapModel,r=t.option,n=r.selectedMode;if(n){var i=l["d"](r.selected),o=t.getSelectedMapKey(e);"single"===n||!0===n?(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}(pJ),WJ=UJ;function $J(e){e.registerComponentModel(VJ),e.registerComponentView(WJ),BJ(e)}function GJ(e){R_(YJ),R_($J)}var qJ={label:{enabled:!0},decal:{show:!1}},XJ=Ei(),KJ={};function ZJ(e,t){var r=e.getModel("aria");if(r.get("enabled")){var n=l["d"](qJ);l["I"](n.label,e.getLocaleModel().get("aria"),!1),l["I"](r.option,n,!1),i(),o()}function i(){var t=r.getModel("decal"),n=t.get("show");if(n){var i=l["f"]();e.eachSeries((function(e){if(!e.isColorBySeries()){var t=i.get(e.type);t||(t={},i.set(e.type,t)),XJ(e).scope=t}})),e.eachRawSeries((function(t){if(!e.isSeriesFiltered(t))if(l["w"](t.enableAriaDecal))t.enableAriaDecal();else{var r=t.getData();if(t.isColorBySeries()){var n=Sd(t.ecModel,t.name,KJ,e.getSeriesCount()),i=r.getVisual("decal");r.setVisual("decal",c(i,n))}else{var o=t.getRawData(),a={},s=XJ(t).scope;r.each((function(e){var t=r.getRawIndex(e);a[t]=e}));var u=o.count();o.each((function(e){var n=a[e],i=o.getName(e)||e+"",l=Sd(t.ecModel,i,s,u),d=r.getItemVisual(n,"decal");r.setItemVisual(n,"decal",c(d,l))}))}}function c(e,t){var r=e?l["m"](l["m"]({},t),e):t;return r.dirty=!0,r}}))}}function o(){var n=e.getLocaleModel().get("aria"),i=r.getModel("label");if(i.option=l["i"](i.option,n),i.get("enabled")){var o=t.getZr().dom;if(i.get("description"))o.setAttribute("aria-label",i.get("description"));else{var c,d=e.getSeriesCount(),h=i.get(["data","maxCount"])||10,f=i.get(["series","maxCount"])||10,p=Math.min(d,f);if(!(d<1)){var m=s();if(m){var g=i.get(["general","withTitle"]);c=a(g,{title:m})}else c=i.get(["general","withoutTitle"]);var v=[],y=d>1?i.get(["series","multiple","prefix"]):i.get(["series","single","prefix"]);c+=a(y,{seriesCount:d}),e.eachSeries((function(e,t){if(t1?i.get(["series","multiple",o]):i.get(["series","single",o]),r=a(r,{seriesId:e.seriesIndex,seriesName:e.get("name"),seriesType:u(e.subType)});var s=e.getData();if(s.count()>h){var l=i.get(["data","partialData"]);r+=a(l,{displayCnt:h})}else r+=i.get(["data","allData"]);for(var c=i.get(["data","separator","middle"]),f=i.get(["data","separator","end"]),m=[],g=0;g":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},tQ=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 r="";0,Ed(r)}}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}(),rQ=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),nQ=function(){function e(){}return e.prototype.evaluate=function(){for(var e=this.children,t=0;t2&&l.push(t),t=[e,r]}function p(e,r,n,i){wQ(e,n)&&wQ(r,i)||t.push(e,r,n,i,n,i)}function m(e,r,n,i,o,a){var s=Math.abs(r-e),l=4*Math.tan(s/4)/3,u=rS:T2&&l.push(t),l}function kQ(e,t,r,n,i,o,a,s,l,u){if(wQ(e,r)&&wQ(t,n)&&wQ(i,a)&&wQ(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=r-e,g=n-t,v=i-a,y=o-s,b=m*m+g*g,_=v*v+y*y;if(b=0&&S=0)l.push(a,s);else{var M=[],C=[];St(e,r,i,a,.5,M),St(t,n,o,s,.5,C),kQ(M[0],C[0],M[1],C[1],M[2],C[2],M[3],C[3],l,u),kQ(M[4],C[4],M[5],C[5],M[6],C[6],M[7],C[7],l,u)}}}}function SQ(e,t){var r=xQ(e),n=[];t=t||1;for(var i=0;i0)for(u=0;uMath.abs(u),d=MQ([l,u],c?0:1,t),h=(c?s:u)/d.length,f=0;fi,a=MQ([n,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 AQ(e,t,r){var n=new ye;ye.sub(n,r,t),n.normalize();var i=new ye;ye.sub(i,e,t);var o=i.dot(n);return o}function DQ(e,t){var r=e[e.length-1];r&&r[0]===t[0]&&r[1]===t[1]||e.push(t)}function EQ(e,t,r){for(var n=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),EQ(t,u,c)}function jQ(e,t,r,n){if(1===r)n.push(t);else{var i=Math.floor(r/2),o=e(t);jQ(e,o[0],i,n),jQ(e,o[1],r-i,n)}return n}function PQ(e,t){for(var r=[],n=0;n0)for(var w=n/r,x=-n/2;x<=n/2;x+=w){var k=Math.sin(x),S=Math.cos(x),M=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 e0(e){var t=1/0,r=1/0,n=-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),r=Math.min(l,r),n=Math.max(s,n),i=Math.max(l,i),[s,l]})),a=Object(l["H"])(o,(function(o,a){return{cp:o,z:QQ(o[0],o[1],t,r,n,i),path:e[a]}}));return a.sort((function(e,t){return e.z-t.z})).map((function(e){return e.path}))}function t0(e){return BQ(e.path,e.count)}function r0(){return{fromIndividuals:[],toIndividuals:[],count:0}}function n0(e,t,r){var n=[];function i(e){for(var t=0;t=0;i--)if(!r[i].many.length){var l=r[s].many;if(l.length<=1){if(!s)return r;s=0}o=l.length;var u=Math.ceil(o/2);r[i].many=l.slice(u,o),r[s].many=l.slice(0,u),s++}return r}var s0={clone:function(e){for(var t=[],r=1-Math.pow(1-e.path.style.opacity,1/e.count),n=0;n0){var s,u,c=n.getModel("universalTransition").get("delay"),d=Object.assign({setToFinal:!0},a);o0(e)&&(s=e,u=t),o0(t)&&(s=t,u=e);for(var h=s?s===e:e.length>t.length,f=s?a0(u,s):a0(h?t:e,[h?e:t]),p=0,m=0;mc0))for(var i=r.getIndices(),o=0;o0&&i.group.traverse((function(e){e instanceof Wa&&!e.animators.length&&e.animateFrom({style:{opacity:0}},o)}))}))}function M0(e){var t=e.getModel("universalTransition").get("seriesKey");return t||e.id}function C0(e){return Object(l["t"])(e)?e.sort().join(","):e}function T0(e){if(e.hostModel)return e.hostModel.getModel("universalTransition").get("divideShape")}function O0(e,t){var r=Object(l["f"])(),n=Object(l["f"])(),i=Object(l["f"])();return Object(l["k"])(e.oldSeries,(function(t,r){var o=e.oldDataGroupIds[r],a=e.oldData[r],s=M0(t),u=C0(s);n.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=M0(e),s=C0(a),u=n.get(s);if(u)r.set(s,{oldSeries:[{dataGroupId:u.dataGroupId,divide:T0(u.data),data:u.data}],newSeries:[{dataGroupId:t,divide:T0(o),data:o}]});else if(Object(l["t"])(a)){0;var c=[];Object(l["k"])(a,(function(e){var t=n.get(e);t.data&&c.push({dataGroupId:t.dataGroupId,divide:T0(t.data),data:t.data})})),c.length&&r.set(s,{oldSeries:c,newSeries:[{dataGroupId:t,data:o,divide:T0(o)}]})}else{var d=i.get(a);if(d){var h=r.get(d.key);h||(h={oldSeries:[{dataGroupId:d.dataGroupId,data:d.data,divide:T0(d.data)}],newSeries:[]},r.set(d.key,h)),h.newSeries.push({dataGroupId:t,data:o,divide:T0(o)})}}}})),r}function L0(e,t){for(var r=0;r=0&&i.push({dataGroupId:t.oldDataGroupIds[r],data:t.oldData[r],divide:T0(t.oldData[r]),groupIdDim:e.dimension})})),Object(l["k"])(ci(e.to),(function(e){var n=L0(r.updatedSeries,e);if(n>=0){var i=r.updatedSeries[n].getData();o.push({dataGroupId:t.oldDataGroupIds[n],data:i,divide:T0(i),groupIdDim:e.dimension})}})),i.length>0&&o.length>0&&S0(i,o,n)}function D0(e){e.registerUpdateLifecycle("series:beforeupdate",(function(e,t,r){Object(l["k"])(ci(r.seriesTransition),(function(e){Object(l["k"])(ci(e.to),(function(e){for(var t=r.updatedSeries,n=0;n
'};function r(e,t,r){return er?r:e}function n(e){return 100*(-1+e)}function i(e,r,i){var o;return o="translate3d"===t.positionUsing?{transform:"translate3d("+n(e)+"%,0,0)"}:"translate"===t.positionUsing?{transform:"translate("+n(e)+"%,0)"}:{"margin-left":n(e)+"%"},o.transition="all "+r+"ms "+i,o}e.configure=function(e){var r,n;for(r in e)n=e[r],void 0!==n&&e.hasOwnProperty(r)&&(t[r]=n);return this},e.status=null,e.set=function(n){var s=e.isStarted();n=r(n,t.minimum,1),e.status=1===n?null:n;var l=e.render(!s),u=l.querySelector(t.barSelector),c=t.speed,d=t.easing;return l.offsetWidth,o((function(r){""===t.positionUsing&&(t.positionUsing=e.getPositioningCSS()),a(u,i(n,c,d)),1===n?(a(l,{transition:"none",opacity:1}),l.offsetWidth,setTimeout((function(){a(l,{transition:"all "+c+"ms linear",opacity:0}),setTimeout((function(){e.remove(),r()}),c)}),c)):setTimeout(r,c)})),this},e.isStarted=function(){return"number"===typeof e.status},e.start=function(){e.status||e.set(0);var r=function(){setTimeout((function(){e.status&&(e.trickle(),r())}),t.trickleSpeed)};return t.trickle&&r(),this},e.done=function(t){return t||e.status?e.inc(.3+.5*Math.random()).set(1):this},e.inc=function(t){var n=e.status;return n?("number"!==typeof t&&(t=(1-n)*r(Math.random()*n,.1,.95)),n=r(n+t,0,.994),e.set(n)):e.start()},e.trickle=function(){return e.inc(Math.random()*t.trickleRate)},function(){var t=0,r=0;e.promise=function(n){return n&&"resolved"!==n.state()?(0===r&&e.start(),t++,r++,n.always((function(){r--,0===r?(t=0,e.done()):e.set((t-r)/t)})),this):this}}(),e.render=function(r){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=r?"-100":n(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 r=e.shift();r&&r(t)}return function(r){e.push(r),1==e.length&&t()}}(),a=function(){var e=["Webkit","O","Moz","ms"],t={};function r(e){return e.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,(function(e,t){return t.toUpperCase()}))}function n(t){var r=document.body.style;if(t in r)return t;var n,i=e.length,o=t.charAt(0).toUpperCase()+t.slice(1);while(i--)if(n=e[i]+o,n in r)return n;return t}function i(e){return e=r(e),t[e]||(t[e]=n(e))}function o(e,t,r){t=i(t),e.style[t]=r}return function(e,t){var r,n,i=arguments;if(2==i.length)for(r in t)n=t[r],void 0!==n&&t.hasOwnProperty(r)&&o(e,r,n);else o(e,i[1],i[2])}}();function s(e,t){var r="string"==typeof e?e:c(e);return r.indexOf(" "+t+" ")>=0}function l(e,t){var r=c(e),n=r+t;s(r,t)||(e.className=n.substring(1))}function u(e,t){var r,n=c(e);s(e,t)&&(r=n.replace(" "+t+" "," "),e.className=r.substring(1,r.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,r){(function(t,n){e.exports=n(r("21bf"))})(0,(function(e){return function(t){var r=e,n=r.lib,i=n.Base,o=n.WordArray,a=r.x64={};a.Word=i.extend({init:function(e,t){this.high=e,this.low=t}}),a.WordArray=i.extend({init:function(e,r){e=this.words=e||[],this.sigBytes=r!=t?r:8*e.length},toX32:function(){for(var e=this.words,t=e.length,r=[],n=0;n>>=0)?31-Math.floor(Math.log(e+.5)*Math.LOG2E):32}})},"32e9":function(e,t,r){var n=r("86cc"),i=r("4630");e.exports=r("9e1e")?function(e,t,r){return n.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},"32fc":function(e,t,r){var n=r("e53d").document;e.exports=n&&n.documentElement},"335c":function(e,t,r){var n=r("6b4c");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==n(e)?e.split(""):Object(e)}},"335d":function(e,t,r){},"33a4":function(e,t,r){var n=r("84f2"),i=r("2b4c")("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(n.Array===e||o[i]===e)}},3452:function(e,t,r){(function(t,n,i){e.exports=n(r("21bf"),r("3252"),r("17e1"),r("a8ce"),r("1132"),r("c1bc"),r("72fe"),r("df2f"),r("94f8"),r("191b"),r("d6e6"),r("b86b"),r("e61b"),r("10b7"),r("5980"),r("7bbcc"),r("2b79"),r("38ba"),r("00bb"),r("f4ea"),r("aaef"),r("4ba91"),r("81bf"),r("a817"),r("a11b"),r("8cef"),r("2a66"),r("b86c"),r("6d08"),r("c198"),r("a40e"),r("c3b6"),r("1382"),r("3d5a"),r("af5b"))})(0,(function(e){return e}))},"34ef":function(e,t,r){r("ec30")("Uint8",1,(function(e){return function(t,r,n){return e(this,t,r,n)}}))},3535:function(e,t,r){"use strict";var n=r("5ca1"),i=r("02f4")(!0),o=r("79e5"),a=o((function(){return"𠮷"!=="𠮷".at(0)}));n(n.P+n.F*a,"String",{at:function(e){return i(this,e)}})},"355d":function(e,t){t.f={}.propertyIsEnumerable},"357d":function(e,t,r){},"35e8":function(e,t,r){var n=r("d9f6"),i=r("aebd");e.exports=r("8e60")?function(e,t,r){return n.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},3648:function(e,t,r){},"366e":function(e,t,r){e.exports=r("ccb9").f("toPrimitive")},"36bd":function(e,t,r){"use strict";var n=r("4bf8"),i=r("77f1"),o=r("9def");e.exports=function(e){var t=n(this),r=o(t.length),a=arguments.length,s=i(a>1?arguments[1]:void 0,r),l=a>2?arguments[2]:void 0,u=void 0===l?r:i(l,r);while(u>s)t[s++]=e;return t}},"36c3":function(e,t,r){var n=r("335c"),i=r("25eb");e.exports=function(e){return n(i(e))}},3702:function(e,t,r){var n=r("481b"),i=r("5168")("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(n.Array===e||o[i]===e)}},"373f":function(e,t,r){"use strict";var n=r("5ca1"),i=r("6821"),o=[].join;n(n.P+n.F*(r("626a")!=Object||!r("2f21")(o)),"Array",{join:function(e){return o.call(i(this),void 0===e?",":e)}})},"37a7":function(e,t,r){var n=r("f400"),i=r("5ca1"),o=r("5537")("metadata"),a=o.store||(o.store=new(r("10ad"))),s=function(e,t,r){var i=a.get(e);if(!i){if(!r)return;a.set(e,i=new n)}var o=i.get(t);if(!o){if(!r)return;i.set(t,o=new n)}return o},l=function(e,t,r){var n=s(t,r,!1);return void 0!==n&&n.has(e)},u=function(e,t,r){var n=s(t,r,!1);return void 0===n?void 0:n.get(e)},c=function(e,t,r,n){s(r,n,!0).set(e,t)},d=function(e,t){var r=s(e,t,!1),n=[];return r&&r.forEach((function(e,t){n.push(t)})),n},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,r){"use strict";var n=r("5ca1"),i=r("7726"),o=r("8378"),a=r("8079")(),s=r("2b4c")("observable"),l=r("d8e8"),u=r("cb7c"),c=r("f605"),d=r("dcbc"),h=r("32e9"),f=r("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 r=t(e),n=r;null!=r&&("function"===typeof r.unsubscribe?r=function(){n.unsubscribe()}:l(r),this._c=r)}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 r=t._o;try{var n=m(r.next);if(n)return n.call(r,e)}catch(i){try{y(t)}finally{throw i}}}},error:function(e){var t=this._s;if(v(t))throw e;var r=t._o;t._o=void 0;try{var n=m(r.error);if(!n)throw e;e=n.call(r,e)}catch(i){try{g(t)}finally{throw i}}return g(t),e},complete:function(e){var t=this._s;if(!v(t)){var r=t._o;t._o=void 0;try{var n=m(r.complete);e=n?n.call(r,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(r,n){l(e);var i=t.subscribe({next:function(t){try{return e(t)}catch(r){n(r),i.unsubscribe()}},error:n,complete:r})}))}}),d(w,{from:function(e){var t="function"===typeof this?this:w,r=m(u(e)[s]);if(r){var n=u(r.call(e));return n.constructor===t?n:new t((function(e){return n.subscribe(e)}))}return new t((function(t){var r=!1;return a((function(){if(!r){try{if(f(e,!1,(function(e){if(t.next(e),r)return p}))===p)return}catch(n){if(r)throw n;return void t.error(n)}t.complete()}})),function(){r=!0}}))},of:function(){for(var e=0,t=arguments.length,r=new Array(t);e"+i+""};e.exports=function(e,t){var r={};r[e]=t(s),n(n.P+n.F*i((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3})),"String",r)}},"386d":function(e,t,r){"use strict";var n=r("cb7c"),i=r("83a1"),o=r("5f1b");r("214f")("search",1,(function(e,t,r,a){return[function(r){var n=e(this),i=void 0==r?void 0:r[t];return void 0!==i?i.call(r,n):new RegExp(r)[t](String(n))},function(e){var t=a(r,e,this);if(t.done)return t.value;var s=n(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,r){"use strict";e.exports=function(e,t,r,n,i){return e.config=t,r&&(e.code=r),e.request=n,e.response=i,e}},3886:function(e,t,r){(function(e,t){t(r("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,r=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+r}});return t}))},"38ba":function(e,t,r){(function(t,n,i){e.exports=n(r("21bf"),r("2b79"))})(0,(function(e){e.lib.Cipher||function(t){var r=e,n=r.lib,i=n.Base,o=n.WordArray,a=n.BufferedBlockAlgorithm,s=r.enc,l=(s.Utf8,s.Base64),u=r.algo,c=u.EvpKDF,d=n.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,r){this.cfg=this.cfg.extend(r),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(r,n,i){return e(n).encrypt(t,r,n,i)},decrypt:function(r,n,i){return e(n).decrypt(t,r,n,i)}}}}()}),h=(n.StreamCipher=d.extend({_doFinalize:function(){var e=this._process(!0);return e},blockSize:1}),r.mode={}),f=n.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 r(e,r,n){var i,o=this._iv;o?(i=o,this._iv=t):i=this._prevBlock;for(var a=0;a>>2];e.sigBytes-=t}},v=(n.BlockCipher=d.extend({cfg:d.cfg.extend({mode:p,padding:g}),reset:function(){var e;d.reset.call(this);var t=this.cfg,r=t.iv,n=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=n.createEncryptor:(e=n.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,r&&r.words):(this._mode=e.call(n,this,r&&r.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}),n.CipherParams=i.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}})),y=r.format={},b=y.OpenSSL={stringify:function(e){var t,r=e.ciphertext,n=e.salt;return t=n?o.create([1398893684,1701076831]).concat(n).concat(r):r,t.toString(l)},parse:function(e){var t,r=l.parse(e),n=r.words;return 1398893684==n[0]&&1701076831==n[1]&&(t=o.create(n.slice(2,4)),n.splice(0,4),r.sigBytes-=16),v.create({ciphertext:r,salt:t})}},_=n.SerializableCipher=i.extend({cfg:i.extend({format:b}),encrypt:function(e,t,r,n){n=this.cfg.extend(n);var i=e.createEncryptor(r,n),o=i.finalize(t),a=i.cfg;return v.create({ciphertext:o,key:r,iv:a.iv,algorithm:e,mode:a.mode,padding:a.padding,blockSize:e.blockSize,formatter:n.format})},decrypt:function(e,t,r,n){n=this.cfg.extend(n),t=this._parse(t,n.format);var i=e.createDecryptor(r,n).finalize(t.ciphertext);return i},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),w=r.kdf={},x=w.OpenSSL={execute:function(e,t,r,n,i){if(n||(n=o.random(8)),i)a=c.create({keySize:t+r,hasher:i}).compute(e,n);else var a=c.create({keySize:t+r}).compute(e,n);var s=o.create(a.words.slice(t),4*r);return a.sigBytes=4*t,v.create({key:a,iv:s,salt:n})}},k=n.PasswordBasedCipher=_.extend({cfg:_.cfg.extend({kdf:x}),encrypt:function(e,t,r,n){n=this.cfg.extend(n);var i=n.kdf.execute(r,e.keySize,e.ivSize,n.salt,n.hasher);n.iv=i.iv;var o=_.encrypt.call(this,e,t,i.key,n);return o.mixIn(i),o},decrypt:function(e,t,r,n){n=this.cfg.extend(n),t=this._parse(t,n.format);var i=n.kdf.execute(r,e.keySize,e.ivSize,t.salt,n.hasher);n.iv=i.iv;var o=_.decrypt.call(this,e,t,i.key,n);return o}})}()}))},"38fd":function(e,t,r){var n=r("69a8"),i=r("4bf8"),o=r("613b")("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),n(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},3934:function(e,t,r){"use strict";var n=r("c532");e.exports=n.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function i(e){var n=e;return t&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=i(window.location.href),function(t){var r=n.isString(t)?i(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return function(){return!0}}()},3938:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.radarConfig=void 0;var n={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=n},3953:function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var n=r("f921"),i=r.n(n),o=r("d8d6"),a=r.n(o),s=r("d2d5"),l=r.n(s);function u(e){if("undefined"!==typeof i.a&&null!=e[a.a]||null!=e["@@iterator"])return l()(e)}},"39a6":function(e,t,r){(function(e,t){t(r("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,r=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+r},week:{dow:1,doy:4}});return t}))},"39bd":function(e,t,r){(function(e,t){t(r("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},r={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};function n(e,t,r,n){var i="";if(t)switch(r){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(r){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:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return r[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,r){return e>=0&&e<6?"पहाटे":e<12?"सकाळी":e<17?"दुपारी":e<20?"सायंकाळी":"रात्री"},week:{dow:0,doy:6}});return i}))},"3a38":function(e,t){var r=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:r)(e)}},"3a39":function(e,t,r){(function(e,t){t(r("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},r={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"},n=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 r[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,r){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 n}))},"3a6c":function(e,t,r){(function(e,t){t(r("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,r){var n=100*e+t;return n<600?"凌晨":n<900?"早上":n<1130?"上午":n<1230?"中午":n<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,r){var n=r("7726"),i=r("8378"),o=r("2d00"),a=r("37c8"),s=r("86cc").f;e.exports=function(e){var t=i.Symbol||(i.Symbol=o?{}:n.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},"3a9c":function(e,t,r){var n=r("37a7"),i=r("cb7c"),o=r("d8e8"),a=n.key,s=n.set;n.exp({metadata:function(e,t){return function(r,n){s(e,t,(void 0!==n?i:o)(r),a(n))}}})},"3b1b":function(e,t,r){(function(e,t){t(r("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:"-ум"},r=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,r){return e<4?"шаб":e<11?"субҳ":e<16?"рӯз":e<19?"бегоҳ":"шаб"},dayOfMonthOrdinalParse:/\d{1,2}-(ум|юм)/,ordinal:function(e){var r=e%10,n=e>=100?100:null;return e+(t[e]||t[r]||t[n])},week:{dow:1,doy:7}});return r}))},"3b2b":function(e,t,r){var n=r("7726"),i=r("5dbc"),o=r("86cc").f,a=r("9093").f,s=r("aae3"),l=r("0bfb"),u=n.RegExp,c=u,d=u.prototype,h=/a/g,f=/a/g,p=new u(h)!==h;if(r("9e1e")&&(!p||r("79e5")((function(){return f[r("2b4c")("match")]=!1,u(h)!=h||u(f)==f||"/a/i"!=u(h,"i")})))){u=function(e,t){var r=this instanceof u,n=s(e),o=void 0===t;return!r&&n&&e.constructor===u&&o?e:i(p?new c(n&&!o?e.source:e,t):c((n=e instanceof u)?e.source:e,n&&o?l.call(e):t),r?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,r("2aba")(n,"RegExp",u)}r("7a56")("RegExp")},"3b8d":function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r("696e"),i=r.n(n);function o(e,t,r,n,o,a,s){try{var l=e[a](s),u=l.value}catch(c){return void r(c)}l.done?t(u):i.a.resolve(u).then(n,o)}function a(e){return function(){var t=this,r=arguments;return new i.a((function(n,i){var a=e.apply(t,r);function s(e){o(a,n,i,s,l,"next",e)}function l(e){o(a,n,i,s,l,"throw",e)}s(void 0)}))}}},"3c0d":function(e,t,r){(function(e,t){t(r("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/},r="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_"),n=[/^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,r,n){var i=e+" ";switch(r){case"s":return t||n?"pár sekund":"pár sekundami";case"ss":return t||n?i+(o(e)?"sekundy":"sekund"):i+"sekundami";case"m":return t?"minuta":n?"minutu":"minutou";case"mm":return t||n?i+(o(e)?"minuty":"minut"):i+"minutami";case"h":return t?"hodina":n?"hodinu":"hodinou";case"hh":return t||n?i+(o(e)?"hodiny":"hodin"):i+"hodinami";case"d":return t||n?"den":"dnem";case"dd":return t||n?i+(o(e)?"dny":"dní"):i+"dny";case"M":return t||n?"měsíc":"měsícem";case"MM":return t||n?i+(o(e)?"měsíce":"měsíců"):i+"měsíci";case"y":return t||n?"rok":"rokem";case"yy":return t||n?i+(o(e)?"roky":"let"):i+"lety"}}var s=e.defineLocale("cs",{months:t,monthsShort:r,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:n,longMonthsParse:n,shortMonthsParse:n,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,r){},"3c11":function(e,t,r){"use strict";var n=r("63b6"),i=r("584a"),o=r("e53d"),a=r("f201"),s=r("cd78");n(n.P+n.R,"Promise",{finally:function(e){var t=a(this,i.Promise||o.Promise),r="function"==typeof e;return this.then(r?function(r){return s(t,e()).then((function(){return r}))}:e,r?function(r){return s(t,e()).then((function(){throw r}))}:e)}})},"3c4e":function(e,t,r){"use strict";var n=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 r=t&&!0===t.clone;return r&&n(e)?f(u(e),e,t):e}function d(e,t,r){var i=e.slice();return t.forEach((function(t,o){"undefined"===typeof i[o]?i[o]=c(t,r):n(t)?i[o]=f(e[o],t,r):-1===e.indexOf(t)&&i.push(c(t,r))})),i}function h(e,t,r){var i={};return n(e)&&Object.keys(e).forEach((function(t){i[t]=c(e[t],r)})),Object.keys(t).forEach((function(o){n(t[o])&&e[o]?i[o]=f(e[o],t[o],r):i[o]=c(t[o],r)})),i}function f(e,t,r){var n=Array.isArray(t),i=Array.isArray(e),o=r||{arrayMerge:d},a=n===i;if(a){if(n){var s=o.arrayMerge||d;return s(e,t,r)}return h(e,t,r)}return c(t,r)}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,r){return f(e,r,t)}))};var p=f;e.exports=p},"3ca5":function(e,t,r){var n=r("7726").parseInt,i=r("aa77").trim,o=r("fdef"),a=/^[-+]?0[xX]/;e.exports=8!==n(o+"08")||22!==n(o+"0x16")?function(e,t){var r=i(String(e),3);return n(r,t>>>0||(a.test(r)?16:10))}:n},"3d5a":function(e,t,r){(function(t,n,i){e.exports=n(r("21bf"),r("1132"),r("72fe"),r("2b79"),r("38ba"))})(0,(function(e){return function(){var t=e,r=t.lib,n=r.StreamCipher,i=t.algo,o=[],a=[],s=[],l=i.RabbitLegacy=n.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,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],n=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++)n[i]^=r[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;n[0]^=l,n[1]^=d,n[2]^=c,n[3]^=h,n[4]^=l,n[5]^=d,n[6]^=c,n[7]^=h;for(i=0;i<4;i++)u.call(this)}},_doProcessBlock:function(e,t){var r=this._X;u.call(this),o[0]=r[0]^r[5]>>>16^r[3]<<16,o[1]=r[2]^r[7]>>>16^r[5]<<16,o[2]=r[4]^r[1]>>>16^r[7]<<16,o[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)o[n]=16711935&(o[n]<<8|o[n]>>>24)|4278255360&(o[n]<<24|o[n]>>>8),e[t+n]^=o[n]},blockSize:4,ivSize:2});function u(){for(var e=this._X,t=this._C,r=0;r<8;r++)a[r]=t[r];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(r=0;r<8;r++){var n=e[r]+t[r],i=65535&n,o=n>>>16,l=((i*i>>>17)+i*o>>>15)+o*o,u=((4294901760&n)*n|0)+((65535&n)*n|0);s[r]=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=n._createHelper(l)}(),e.RabbitLegacy}))},"3de5":function(e,t,r){(function(e,t){t(r("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration var t={1:"௧",2:"௨",3:"௩",4:"௪",5:"௫",6:"௬",7:"௭",8:"௮",9:"௯",0:"௦"},r={"௧":"1","௨":"2","௩":"3","௪":"4","௫":"5","௬":"6","௭":"7","௮":"8","௯":"9","௦":"0"},n=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 r[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,meridiem:function(e,t,r){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 n}))},"3e8a":function(e,t,r){},"3e92":function(e,t,r){(function(e,t){t(r("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration var t={1:"೧",2:"೨",3:"೩",4:"೪",5:"೫",6:"೬",7:"೭",8:"೮",9:"೯",0:"೦"},r={"೧":"1","೨":"2","೩":"3","೪":"4","೫":"5","೬":"6","೭":"7","೮":"8","೯":"9","೦":"0"},n=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 r[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,r){return e<4?"ರಾತ್ರಿ":e<10?"ಬೆಳಿಗ್ಗೆ":e<17?"ಮಧ್ಯಾಹ್ನ":e<20?"ಸಂಜೆ":"ರಾತ್ರಿ"},dayOfMonthOrdinalParse:/\d{1,2}(ನೇ)/,ordinal:function(e){return e+"ನೇ"},week:{dow:0,doy:6}});return n}))},"3f6b":function(e,t,r){e.exports={default:r("51b6"),__esModule:!0}},"3f71":function(e,t,r){var n=r("0d58"),i=r("6821");e.exports=function(e,t){var r,o=i(e),a=n(o),s=a.length,l=0;while(s>l)if(o[r=a[l++]]===t)return r}},"40b3":function(e,t,r){(function(t,r){e.exports=r()})(0,(function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/dist/",r(r.s="./index.js")}({"./index.js": /*!******************!*\ !*** ./index.js ***! \******************/ /*! no static exports found */function(e,t,r){var n=r(/*! ./src/cos */"./src/cos.js");e.exports=n},"./lib/base64.js": /*!***********************!*\ !*** ./lib/base64.js ***! \***********************/ /*! no static exports found */function(e,t){var r=function(e){e=e||{};var t,r=e.Base64,n="2.1.9",i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=function(e){for(var t={},r=0,n=e.length;r>>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],r=e.charCodeAt(0)<<16|(e.length>1?e.charCodeAt(1):0)<<8|(e.length>2?e.charCodeAt(2):0),n=[i.charAt(r>>>18),i.charAt(r>>>12&63),t>=2?"=":i.charAt(r>>>6&63),t>=1?"=":i.charAt(63&r)];return n.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),r=t-65536;return a(55296+(r>>>10))+a(56320+(1023&r));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,r=t%4,n=(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(n>>>16),a(n>>>8&255),a(255&n)];return i.length-=[0,0,2,1][r],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=r,t},k={VERSION:n,atob:b,btoa:d,fromBase64:w,toBase64:f,utob:u,encode:f,encodeURI:p,btou:v,decode:w,noConflict:x};return k}();e.exports=r},"./lib/crypto.js": /*!***********************!*\ !*** ./lib/crypto.js ***! \***********************/ /*! no static exports found */function(e,t,r){(function(e){var t=r(/*! @babel/runtime/helpers/typeof */"./node_modules/@babel/runtime/helpers/typeof.js"),n=n||function(e,t){var r={},n=r.lib={},i=function(){},o=n.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=n.WordArray=o.extend({init:function(e,r){e=this.words=e||[],this.sigBytes=r!=t?r:4*e.length},toString:function(e){return(e||l).stringify(this)},concat:function(e){var t=this.words,r=e.words,n=this.sigBytes;if(e=e.sigBytes,this.clamp(),n%4)for(var i=0;i>>2]|=(r[i>>>2]>>>24-i%4*8&255)<<24-(n+i)%4*8;else if(65535>>2]=r[i>>>2];else t.push.apply(t,r);return this.sigBytes+=e,this},clamp:function(){var t=this.words,r=this.sigBytes;t[r>>>2]&=4294967295<<32-r%4*8,t.length=e.ceil(r/4)},clone:function(){var e=o.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var r=[],n=0;n>>2]>>>24-n%4*8&255;r.push((i>>>4).toString(16)),r.push((15&i).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new a.init(r,t/2)}},u=s.Latin1={stringify:function(e){var t=e.words;e=e.sigBytes;for(var r=[],n=0;n>>2]>>>24-n%4*8&255));return r.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new a.init(r,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=n.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 r=this._data,n=r.words,i=r.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=(n<<5|n>>>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=n,n=c}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+a|0,r[3]=r[3]+s|0,r[4]=r[4]+l|0},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=Math.floor(r/4294967296),t[15+(n+64>>>9<<4)]=r,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=n,t=e.enc.Utf8;e.algo.HMAC=e.lib.Base.extend({init:function(e,r){e=this._hasher=new e.init,"string"==typeof r&&(r=t.parse(r));var n=e.blockSize,i=4*n;r.sigBytes>i&&(r=e.finalize(r)),r.clamp();for(var o=this._oKey=r.clone(),a=this._iKey=r.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=n.charAt(64);if(d)while(i.length%4)i.push(d);return i.join("")},parse:function(e){var t=e.length,n=this._map,i=n.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 r.create(a,s)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),"object"===t(e)?e.exports=n:window.CryptoJS=n}).call(this,r(/*! ./../node_modules/webpack/buildin/module.js */"./node_modules/webpack/buildin/module.js")(e))},"./lib/json2xml.js": /*!*************************!*\ !*** ./lib/json2xml.js ***! \*************************/ /*! no static exports found */function(e,t,r){var n=r(/*! @babel/runtime/helpers/typeof */"./node_modules/@babel/runtime/helpers/typeof.js"),i="a-zA-Z_À-ÖØ-öø-ÿͰ-ͽͿ-῿‌-‍⁰-↏Ⰰ-⿿、-퟿豈-﷏ﷰ-�",o="-.0-9·̀-ͯ‿⁀",a=new RegExp("^([^"+i+"])|^((x|X)(m|M)(l|L))|([^"+i+o+"])","g"),s=/[^\x09\x0A\x0D\x20-\xFF\x85\xA0-\uD7FF\uE000-\uFDCF\uFDE0-\uFFFD]/gm,l=function(e){var t=[];if(e instanceof Object)for(var r in e)e.hasOwnProperty(r)&&t.push(r);return t},u=function(e,t){var r=function(e,r,n,i,o){var s=void 0!==t.indent?t.indent:"\t",l=t.prettyPrint?"\n"+new Array(i).join(s):"";t.removeIllegalNameCharacters&&(e=e.replace(a,"_"));var u=[l,"<",e,n||""];return r&&r.length>0?(u.push(">"),u.push(r),o&&u.push(l),u.push("")):u.push("/>"),u.join("")};return function e(i,o,a){var s=n(i);switch((Array.isArray?Array.isArray(i):i instanceof Array)?s="array":i instanceof Date&&(s="date"),s){case"array":var u=[];return i.map((function(t){u.push(e(t,1,a+1))})),t.prettyPrint&&u.push("\n"),u.join("");case"date":return i.toJSON?i.toJSON():i+"";case"object":var c=[];for(var h in i)if(i.hasOwnProperty(h))if(i[h]instanceof Array)for(var f=0;f0&&c.push("\n"),c.join("");case"function":return i();default:return t.escape?d(i):""+i}}(e,0,0)},c=function(e){var t=['"),t.join("")};function d(e){return(""+e).replace(/&/g,"&").replace(//g,">").replace(/'/g,"'").replace(/"/g,""").replace(s,"")}e.exports=function(e,t){if(t||(t={xmlHeader:{standalone:!0},prettyPrint:!0,indent:" ",escape:!0}),"string"==typeof e)try{e=JSON.parse(e.toString())}catch(a){return!1}var r="",i="";t&&("object"==n(t)?(t.xmlHeader&&(r=c(!!t.xmlHeader.standalone)),"undefined"!=typeof t.docType&&(i="")):r=c()),t=t||{};var o=[r,t.prettyPrint&&i?"\n":"",i,u(e,t)];return o.join("").replace(/\n{2,}/g,"\n").replace(/\s+$/g,"")}},"./lib/md5.js": /*!********************!*\ !*** ./lib/md5.js ***! \********************/ /*! no static exports found */function(e,t,r){(function(e){var t,n=r(/*! @babel/runtime/helpers/typeof */"./node_modules/@babel/runtime/helpers/typeof.js");(function(){"use strict";var i="object"===("undefined"===typeof window?"undefined":n(window)),o=i?window:{};o.JS_MD5_NO_WINDOW&&(i=!1);var a=!i&&"object"===("undefined"===typeof self?"undefined":n(self));a&&(o=self);var s,l=!o.JS_MD5_NO_COMMON_JS&&"object"===n(e)&&e.exports,u=r(/*! !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"===n(e)&&e.buffer&&e.buffer.constructor===ArrayBuffer});var y=function(e){return function(t,r){return new _(!0).update(t,r)[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[n++]=128|63&r):r<55296||r>=57344?(s[n++]=224|r>>12,s[n++]=128|r>>6&63,s[n++]=128|63&r):(r=65536+((1023&r)<<10|1023&e.charCodeAt(++i)),s[n++]=240|r>>18,s[n++]=128|r>>12&63,s[n++]=128|r>>6&63,s[n++]=128|63&r);else for(n=this.start;i>2]|=r<>2]|=(192|r>>6)<>2]|=(128|63&r)<=57344?(a[n>>2]|=(224|r>>12)<>2]|=(128|r>>6&63)<>2]|=(128|63&r)<>2]|=(240|r>>18)<>2]|=(128|r>>12&63)<>2]|=(128|r>>6&63)<>2]|=(128|63&r)<=64?(this.start=n-64,this.hash(),this.hashed=!0):this.start=n}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,r,n,i,o,a=this.blocks;this.first?(e=a[0]-680876937,e=(e<<7|e>>>25)-271733879<<0,n=(-1732584194^2004318071&e)+a[1]-117830708,n=(n<<12|n>>>20)+e<<0,r=(-271733879^n&(-271733879^e))+a[2]-1126478375,r=(r<<17|r>>>15)+n<<0,t=(e^r&(n^e))+a[3]-1316259209,t=(t<<22|t>>>10)+r<<0):(e=this.h0,t=this.h1,r=this.h2,n=this.h3,e+=(n^t&(r^n))+a[0]-680876936,e=(e<<7|e>>>25)+t<<0,n+=(r^e&(t^r))+a[1]-389564586,n=(n<<12|n>>>20)+e<<0,r+=(t^n&(e^t))+a[2]+606105819,r=(r<<17|r>>>15)+n<<0,t+=(e^r&(n^e))+a[3]-1044525330,t=(t<<22|t>>>10)+r<<0),e+=(n^t&(r^n))+a[4]-176418897,e=(e<<7|e>>>25)+t<<0,n+=(r^e&(t^r))+a[5]+1200080426,n=(n<<12|n>>>20)+e<<0,r+=(t^n&(e^t))+a[6]-1473231341,r=(r<<17|r>>>15)+n<<0,t+=(e^r&(n^e))+a[7]-45705983,t=(t<<22|t>>>10)+r<<0,e+=(n^t&(r^n))+a[8]+1770035416,e=(e<<7|e>>>25)+t<<0,n+=(r^e&(t^r))+a[9]-1958414417,n=(n<<12|n>>>20)+e<<0,r+=(t^n&(e^t))+a[10]-42063,r=(r<<17|r>>>15)+n<<0,t+=(e^r&(n^e))+a[11]-1990404162,t=(t<<22|t>>>10)+r<<0,e+=(n^t&(r^n))+a[12]+1804603682,e=(e<<7|e>>>25)+t<<0,n+=(r^e&(t^r))+a[13]-40341101,n=(n<<12|n>>>20)+e<<0,r+=(t^n&(e^t))+a[14]-1502002290,r=(r<<17|r>>>15)+n<<0,t+=(e^r&(n^e))+a[15]+1236535329,t=(t<<22|t>>>10)+r<<0,e+=(r^n&(t^r))+a[1]-165796510,e=(e<<5|e>>>27)+t<<0,n+=(t^r&(e^t))+a[6]-1069501632,n=(n<<9|n>>>23)+e<<0,r+=(e^t&(n^e))+a[11]+643717713,r=(r<<14|r>>>18)+n<<0,t+=(n^e&(r^n))+a[0]-373897302,t=(t<<20|t>>>12)+r<<0,e+=(r^n&(t^r))+a[5]-701558691,e=(e<<5|e>>>27)+t<<0,n+=(t^r&(e^t))+a[10]+38016083,n=(n<<9|n>>>23)+e<<0,r+=(e^t&(n^e))+a[15]-660478335,r=(r<<14|r>>>18)+n<<0,t+=(n^e&(r^n))+a[4]-405537848,t=(t<<20|t>>>12)+r<<0,e+=(r^n&(t^r))+a[9]+568446438,e=(e<<5|e>>>27)+t<<0,n+=(t^r&(e^t))+a[14]-1019803690,n=(n<<9|n>>>23)+e<<0,r+=(e^t&(n^e))+a[3]-187363961,r=(r<<14|r>>>18)+n<<0,t+=(n^e&(r^n))+a[8]+1163531501,t=(t<<20|t>>>12)+r<<0,e+=(r^n&(t^r))+a[13]-1444681467,e=(e<<5|e>>>27)+t<<0,n+=(t^r&(e^t))+a[2]-51403784,n=(n<<9|n>>>23)+e<<0,r+=(e^t&(n^e))+a[7]+1735328473,r=(r<<14|r>>>18)+n<<0,t+=(n^e&(r^n))+a[12]-1926607734,t=(t<<20|t>>>12)+r<<0,i=t^r,e+=(i^n)+a[5]-378558,e=(e<<4|e>>>28)+t<<0,n+=(i^e)+a[8]-2022574463,n=(n<<11|n>>>21)+e<<0,o=n^e,r+=(o^t)+a[11]+1839030562,r=(r<<16|r>>>16)+n<<0,t+=(o^r)+a[14]-35309556,t=(t<<23|t>>>9)+r<<0,i=t^r,e+=(i^n)+a[1]-1530992060,e=(e<<4|e>>>28)+t<<0,n+=(i^e)+a[4]+1272893353,n=(n<<11|n>>>21)+e<<0,o=n^e,r+=(o^t)+a[7]-155497632,r=(r<<16|r>>>16)+n<<0,t+=(o^r)+a[10]-1094730640,t=(t<<23|t>>>9)+r<<0,i=t^r,e+=(i^n)+a[13]+681279174,e=(e<<4|e>>>28)+t<<0,n+=(i^e)+a[0]-358537222,n=(n<<11|n>>>21)+e<<0,o=n^e,r+=(o^t)+a[3]-722521979,r=(r<<16|r>>>16)+n<<0,t+=(o^r)+a[6]+76029189,t=(t<<23|t>>>9)+r<<0,i=t^r,e+=(i^n)+a[9]-640364487,e=(e<<4|e>>>28)+t<<0,n+=(i^e)+a[12]-421815835,n=(n<<11|n>>>21)+e<<0,o=n^e,r+=(o^t)+a[15]+530742520,r=(r<<16|r>>>16)+n<<0,t+=(o^r)+a[2]-995338651,t=(t<<23|t>>>9)+r<<0,e+=(r^(t|~n))+a[0]-198630844,e=(e<<6|e>>>26)+t<<0,n+=(t^(e|~r))+a[7]+1126891415,n=(n<<10|n>>>22)+e<<0,r+=(e^(n|~t))+a[14]-1416354905,r=(r<<15|r>>>17)+n<<0,t+=(n^(r|~e))+a[5]-57434055,t=(t<<21|t>>>11)+r<<0,e+=(r^(t|~n))+a[12]+1700485571,e=(e<<6|e>>>26)+t<<0,n+=(t^(e|~r))+a[3]-1894986606,n=(n<<10|n>>>22)+e<<0,r+=(e^(n|~t))+a[10]-1051523,r=(r<<15|r>>>17)+n<<0,t+=(n^(r|~e))+a[1]-2054922799,t=(t<<21|t>>>11)+r<<0,e+=(r^(t|~n))+a[8]+1873313359,e=(e<<6|e>>>26)+t<<0,n+=(t^(e|~r))+a[15]-30611744,n=(n<<10|n>>>22)+e<<0,r+=(e^(n|~t))+a[6]-1560198380,r=(r<<15|r>>>17)+n<<0,t+=(n^(r|~e))+a[13]+1309151649,t=(t<<21|t>>>11)+r<<0,e+=(r^(t|~n))+a[4]-145523070,e=(e<<6|e>>>26)+t<<0,n+=(t^(e|~r))+a[11]-1120210379,n=(n<<10|n>>>22)+e<<0,r+=(e^(n|~t))+a[2]+718787259,r=(r<<15|r>>>17)+n<<0,t+=(n^(r|~e))+a[9]-343485551,t=(t<<21|t>>>11)+r<<0,this.first?(this.h0=e+1732584193<<0,this.h1=t-271733879<<0,this.h2=r-1732584194<<0,this.h3=n+271733878<<0,this.first=!1):(this.h0=this.h0+e<<0,this.h1=this.h1+t<<0,this.h2=this.h2+r<<0,this.h3=this.h3+n<<0)},_.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,r=this.h2,n=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[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]+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]},_.prototype.toString=_.prototype.hex,_.prototype.digest=function(e){if("hex"===e)return this.hex();this.finalize();var t=this.h0,r=this.h1,n=this.h2,i=this.h3,o=[255&t,t>>8&255,t>>16&255,t>>24&255,255&r,r>>8&255,r>>16&255,r>>24&255,255&n,n>>8&255,n>>16&255,n>>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,r,n="",i=this.array(),o=0;o<15;)e=i[o++],t=i[o++],r=i[o++],n+=m[e>>>2]+m[63&(e<<4|t>>>4)]+m[63&(t<<2|r>>>6)]+m[63&r];return e=i[o],n+=m[e>>>2]+m[e<<4&63]+"==",n};var w=b();l?e.exports=w:(o.md5=w,u&&(t=function(){return w}.call(w,r,w,e),void 0===t||(e.exports=t)))})()}).call(this,r(/*! ./../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,r){var n=r(/*! @babel/runtime/helpers/typeof */"./node_modules/@babel/runtime/helpers/typeof.js"),i=function(e){switch(n(e)){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}},o=function(e,t,r,o){return t=t||"&",r=r||"=",null===e&&(e=void 0),"object"===n(e)?Object.keys(e).map((function(n){var o=encodeURIComponent(i(n))+r;return Array.isArray(e[n])?e[n].map((function(e){return o+encodeURIComponent(i(e))})).join(t):o+encodeURIComponent(i(e[n]))})).filter(Boolean).join(t):o?encodeURIComponent(i(o))+r+encodeURIComponent(i(e)):""},a=function(e,t,r){var n={},i=t.getAllResponseHeaders();return i&&i.length>0&&i.trim().split("\n").forEach((function(e){if(e){var t=e.indexOf(":"),r=e.substr(0,t).trim().toLowerCase(),i=e.substr(t+1).trim();n[r]=i}})),{error:e,statusCode:t.status,statusMessage:t.statusText,headers:n,body:r}},s=function(e,t){return t||"text"!==t?e.response:e.responseText},l=function(e,t){var r=(e.method||"GET").toUpperCase(),n=e.url;if(e.qs){var i=o(e.qs);i&&(n+=(-1===n.indexOf("?")?"?":"&")+i)}var l=new XMLHttpRequest;if(l.open(r,n,!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 r=new Error("timeout");t(a(r,l))},l.onload=function(){t(a(null,l,s(l,e.dataType)))},l.onerror=function(r){var n=s(l,e.dataType);if(n)t(a(null,l,n));else{var i=l.statusText;i||0!==l.status||(i=new Error("CORS blocked or network error")),t(a(i,l,n))}},l.send(e.body||""),l};e.exports=l},"./lib/xml2json.js": /*!*************************!*\ !*** ./lib/xml2json.js ***! \*************************/ /*! no static exports found */function(e,t,r){var n=r(/*! @xmldom/xmldom */"./node_modules/@xmldom/xmldom/lib/index.js").DOMParser,i=function(){this.version="1.3.5";var e={mergeCDATA:!0,normalize:!0,stripElemPrefix:!0},t=new RegExp(/(?!xmlns)^.*:/);new RegExp(/^\s+|\s+$/g);return this.grokType=function(e){return/^\s*$/.test(e)?null:/^(?:true|false)$/i.test(e)?"true"===e.toLowerCase():isFinite(e)?parseFloat(e):e},this.parseString=function(e,t){if(e){var r=this.stringToXML(e);return r.getElementsByTagName("parsererror").length?null:this.parseXML(r,t)}return null},this.parseXML=function(r,n){for(var o in n)e[o]=n[o];var a={},s=0,l="",u=r.childNodes.length;if(u)for(var c,d,h,f=0;f=t+r||t?new java.lang.String(e,t,r)+"":e}function y(e,t){e.currentElement?e.currentElement.appendChild(t):e.doc.appendChild(t)}h.prototype.parseFromString=function(e,t){var r=this.options,n=new c,i=r.domBuilder||new p,a=r.errorHandler,s=r.locator,u=r.xmlns||{},h=/\/x?html?$/.test(t),m=h?o.HTML_ENTITIES:o.XML_ENTITIES;s&&i.setDocumentLocator(s),n.errorHandler=f(a,i,s),n.domBuilder=r.domBuilder||i,h&&(u[""]=l.HTML),u.xml=u.xml||l.XML;var g=r.normalizeLineEndings||d;return e&&"string"===typeof e?n.parse(g(e),u,m):n.errorHandler.error("invalid doc source"),i.doc},p.prototype={startDocument:function(){this.doc=(new s).createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(e,t,r,n){var i=this.doc,o=i.createElementNS(e,r||t),a=n.length;y(this,o),this.currentElement=o,this.locator&&m(this.locator,o);for(var s=0;s=0))throw new D(L,new Error(e.tagName+"@"+r));var i=t.length-1;while(n"==e&&">")||"&"==e&&"&"||'"'==e&&"""||"&#"+e.charCodeAt()+";"}function H(e,t){if(t(e))return!0;if(e=e.firstChild)do{if(H(e,t))return!0}while(e=e.nextSibling)}function V(){this.ownerDocument=this}function U(e,t,r){e&&e._inc++;var n=r.namespaceURI;n===o.XMLNS&&(t._nsMap[r.prefix?r.localName:""]=r.value)}function W(e,t,r,n){e&&e._inc++;var i=r.namespaceURI;i===o.XMLNS&&delete t._nsMap[r.prefix?r.localName:""]}function $(e,t,r){if(e&&e._inc){e._inc++;var n=t.childNodes;if(r)n[n.length++]=r;else{var i=t.firstChild,o=0;while(i)n[o++]=i,i=i.nextSibling;n.length=o,delete n[n.length]}}}function G(e,t){var r=t.previousSibling,n=t.nextSibling;return r?r.nextSibling=n:e.firstChild=n,n?n.previousSibling=r:e.lastChild=r,t.parentNode=null,t.previousSibling=null,t.nextSibling=null,$(e.ownerDocument,e),t}function q(e){return e&&(e.nodeType===F.DOCUMENT_NODE||e.nodeType===F.DOCUMENT_FRAGMENT_NODE||e.nodeType===F.ELEMENT_NODE)}function X(e){return e&&(Z(e)||J(e)||K(e)||e.nodeType===F.DOCUMENT_FRAGMENT_NODE||e.nodeType===F.COMMENT_NODE||e.nodeType===F.PROCESSING_INSTRUCTION_NODE)}function K(e){return e&&e.nodeType===F.DOCUMENT_TYPE_NODE}function Z(e){return e&&e.nodeType===F.ELEMENT_NODE}function J(e){return e&&e.nodeType===F.TEXT_NODE}function Q(e,t){var r=e.childNodes||[];if(i(r,Z)||K(t))return!1;var n=i(r,K);return!(t&&n&&r.indexOf(n)>r.indexOf(t))}function ee(e,t){var r=e.childNodes||[];function n(e){return Z(e)&&e!==t}if(i(r,n))return!1;var o=i(r,K);return!(t&&o&&r.indexOf(o)>r.indexOf(t))}function te(e,t,r){if(!q(e))throw new D(O,"Unexpected parent node type "+e.nodeType);if(r&&r.parentNode!==e)throw new D(L,"child not in parent");if(!X(t)||K(t)&&e.nodeType!==F.DOCUMENT_NODE)throw new D(O,"Unexpected node type "+t.nodeType+" for parent node type "+e.nodeType)}function re(e,t,r){var n=e.childNodes||[],o=t.childNodes||[];if(t.nodeType===F.DOCUMENT_FRAGMENT_NODE){var a=o.filter(Z);if(a.length>1||i(o,J))throw new D(O,"More than one element or text in fragment");if(1===a.length&&!Q(e,r))throw new D(O,"Element in fragment can not be inserted before doctype")}if(Z(t)&&!Q(e,r))throw new D(O,"Only one element can be added and only after doctype");if(K(t)){if(i(n,K))throw new D(O,"Only one doctype is allowed");var s=i(n,Z);if(r&&n.indexOf(s)1||i(o,J))throw new D(O,"More than one element or text in fragment");if(1===a.length&&!ee(e,r))throw new D(O,"Element in fragment can not be inserted before doctype")}if(Z(t)&&!ee(e,r))throw new D(O,"Only one element can be added and only after doctype");if(K(t)){function s(e){return K(e)&&e!==r}if(i(n,s))throw new D(O,"Only one doctype is allowed");var l=i(n,Z);if(r&&n.indexOf(l)=0;f--){var b=i[f];if(""===b.prefix&&b.namespace===e.namespaceURI){d=b.namespace;break}}if(d!==e.namespaceURI)for(f=i.length-1;f>=0;f--){b=i[f];if(b.namespace===e.namespaceURI){b.prefix&&(c=b.prefix+":"+u);break}}}t.push("<",c);for(var M=0;M"),r&&/^script$/i.test(u))while(l)l.data?t.push(l.data):xe(l,t,r,n,i.slice()),l=l.nextSibling;else while(l)xe(l,t,r,n,i.slice()),l=l.nextSibling;t.push("")}else t.push("/>");return;case x:case S:l=e.firstChild;while(l)xe(l,t,r,n,i.slice()),l=l.nextSibling;return;case m:return we(t,e.name,e.value);case g:return t.push(e.data.replace(/[<&>]/g,z));case v:return t.push("");case w:return t.push("\x3c!--",e.data,"--\x3e");case k:var L=e.publicId,A=e.systemId;if(t.push("");else if(A&&"."!=A)t.push(" SYSTEM ",A,">");else{var D=e.internalSubset;D&&t.push(" [",D,"]"),t.push(">")}return;case _:return t.push("");case y:return t.push("&",e.nodeName,";");default:t.push("??",e.nodeName)}}function ke(e,t,r){var n;switch(t.nodeType){case p:n=t.cloneNode(!1),n.ownerDocument=e;case S:break;case m:r=!0;break}if(n||(n=t.cloneNode(!1)),n.ownerDocument=e,n.parentNode=null,r){var i=t.firstChild;while(i)n.appendChild(ke(e,i,r)),i=i.nextSibling}return n}function Se(e,t,r){var n=new t.constructor;for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var o=t[i];"object"!=typeof o&&o!=n[i]&&(n[i]=o)}switch(t.childNodes&&(n.childNodes=new E),n.ownerDocument=e,n.nodeType){case p:var a=t.attributes,s=n.attributes=new P,l=a.length;s._ownerElement=n;for(var u=0;u=0&&e0},lookupPrefix:function(e){var t=this;while(t){var r=t._nsMap;if(r)for(var n in r)if(Object.prototype.hasOwnProperty.call(r,n)&&r[n]===e)return n;t=t.nodeType==m?t.ownerDocument:t.parentNode}return null},lookupNamespaceURI:function(e){var t=this;while(t){var r=t._nsMap;if(r&&Object.prototype.hasOwnProperty.call(r,e))return r[e];t=t.nodeType==m?t.ownerDocument:t.parentNode}return null},isDefaultNamespace:function(e){var t=this.lookupPrefix(e);return null==t}},d(f,F),d(f,F.prototype),V.prototype={nodeName:"#document",nodeType:x,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,t){if(e.nodeType==S){var r=e.firstChild;while(r){var n=r.nextSibling;this.insertBefore(r,t),r=n}return e}return ie(this,e,t),e.ownerDocument=this,null===this.documentElement&&e.nodeType===p&&(this.documentElement=e),e},removeChild:function(e){return this.documentElement==e&&(this.documentElement=null),G(this,e)},replaceChild:function(e,t){ie(this,e,t,ne),e.ownerDocument=this,t&&this.removeChild(t),Z(e)&&(this.documentElement=e)},importNode:function(e,t){return ke(this,e,t)},getElementById:function(e){var t=null;return H(this.documentElement,(function(r){if(r.nodeType==p&&r.getAttribute("id")==e)return t=r,!0})),t},getElementsByClassName:function(e){var t=u(e);return new I(this,(function(r){var n=[];return t.length>0&&H(r.documentElement,(function(i){if(i!==r&&i.nodeType===p){var o=i.getAttribute("class");if(o){var a=e===o;if(!a){var s=u(o);a=t.every(c(s))}a&&n.push(i)}}})),n}))},createElement:function(e){var t=new ae;t.ownerDocument=this,t.nodeName=e,t.tagName=e,t.localName=e,t.childNodes=new E;var r=t.attributes=new P;return r._ownerElement=t,t},createDocumentFragment:function(){var e=new ge;return e.ownerDocument=this,e.childNodes=new E,e},createTextNode:function(e){var t=new ue;return t.ownerDocument=this,t.appendData(e),t},createComment:function(e){var t=new ce;return t.ownerDocument=this,t.appendData(e),t},createCDATASection:function(e){var t=new de;return t.ownerDocument=this,t.appendData(e),t},createProcessingInstruction:function(e,t){var r=new ve;return r.ownerDocument=this,r.tagName=r.nodeName=r.target=e,r.nodeValue=r.data=t,r},createAttribute:function(e){var t=new se;return t.ownerDocument=this,t.name=e,t.nodeName=e,t.localName=e,t.specified=!0,t},createEntityReference:function(e){var t=new me;return t.ownerDocument=this,t.nodeName=e,t},createElementNS:function(e,t){var r=new ae,n=t.split(":"),i=r.attributes=new P;return r.childNodes=new E,r.ownerDocument=this,r.nodeName=t,r.tagName=t,r.namespaceURI=e,2==n.length?(r.prefix=n[0],r.localName=n[1]):r.localName=t,i._ownerElement=r,r},createAttributeNS:function(e,t){var r=new se,n=t.split(":");return r.ownerDocument=this,r.nodeName=t,r.name=t,r.namespaceURI=e,r.specified=!0,2==n.length?(r.prefix=n[0],r.localName=n[1]):r.localName=t,r}},h(V,F),ae.prototype={nodeType:p,hasAttribute:function(e){return null!=this.getAttributeNode(e)},getAttribute:function(e){var t=this.getAttributeNode(e);return t&&t.value||""},getAttributeNode:function(e){return this.attributes.getNamedItem(e)},setAttribute:function(e,t){var r=this.ownerDocument.createAttribute(e);r.value=r.nodeValue=""+t,this.setAttributeNode(r)},removeAttribute:function(e){var t=this.getAttributeNode(e);t&&this.removeAttributeNode(t)},appendChild:function(e){return e.nodeType===S?this.insertBefore(e,null):oe(this,e)},setAttributeNode:function(e){return this.attributes.setNamedItem(e)},setAttributeNodeNS:function(e){return this.attributes.setNamedItemNS(e)},removeAttributeNode:function(e){return this.attributes.removeNamedItem(e.nodeName)},removeAttributeNS:function(e,t){var r=this.getAttributeNodeNS(e,t);r&&this.removeAttributeNode(r)},hasAttributeNS:function(e,t){return null!=this.getAttributeNodeNS(e,t)},getAttributeNS:function(e,t){var r=this.getAttributeNodeNS(e,t);return r&&r.value||""},setAttributeNS:function(e,t,r){var n=this.ownerDocument.createAttributeNS(e,t);n.value=n.nodeValue=""+r,this.setAttributeNode(n)},getAttributeNodeNS:function(e,t){return this.attributes.getNamedItemNS(e,t)},getElementsByTagName:function(e){return new I(this,(function(t){var r=[];return H(t,(function(n){n===t||n.nodeType!=p||"*"!==e&&n.tagName!=e||r.push(n)})),r}))},getElementsByTagNameNS:function(e,t){return new I(this,(function(r){var n=[];return H(r,(function(i){i===r||i.nodeType!==p||"*"!==e&&i.namespaceURI!==e||"*"!==t&&i.localName!=t||n.push(i)})),n}))}},V.prototype.getElementsByTagName=ae.prototype.getElementsByTagName,V.prototype.getElementsByTagNameNS=ae.prototype.getElementsByTagNameNS,h(ae,F),se.prototype.nodeType=m,h(se,F),le.prototype={data:"",substringData:function(e,t){return this.data.substring(e,e+t)},appendData:function(e){e=this.data+e,this.nodeValue=this.data=e,this.length=e.length},insertData:function(e,t){this.replaceData(e,0,t)},appendChild:function(e){throw new Error(T[O])},deleteData:function(e,t){this.replaceData(e,t,"")},replaceData:function(e,t,r){var n=this.data.substring(0,e),i=this.data.substring(e+t);r=n+r+i,this.nodeValue=this.data=r,this.length=r.length}},h(le,F),ue.prototype={nodeName:"#text",nodeType:g,splitText:function(e){var t=this.data,r=t.substring(e);t=t.substring(0,e),this.data=this.nodeValue=t,this.length=t.length;var n=this.ownerDocument.createTextNode(r);return this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling),n}},h(ue,le),ce.prototype={nodeName:"#comment",nodeType:w},h(ce,le),de.prototype={nodeName:"#cdata-section",nodeType:v},h(de,le),he.prototype.nodeType=k,h(he,F),fe.prototype.nodeType=M,h(fe,F),pe.prototype.nodeType=b,h(pe,F),me.prototype.nodeType=y,h(me,F),ge.prototype.nodeName="#document-fragment",ge.prototype.nodeType=S,h(ge,F),ve.prototype.nodeType=_,h(ve,F),ye.prototype.serializeToString=function(e,t,r){return be.call(e,t,r)},F.prototype.toString=be;try{if(Object.defineProperty){function Ce(e){switch(e.nodeType){case p:case S:var t=[];e=e.firstChild;while(e)7!==e.nodeType&&8!==e.nodeType&&t.push(Ce(e)),e=e.nextSibling;return t.join("");default:return e.nodeValue}}Object.defineProperty(I.prototype,"length",{get:function(){return j(this),this.$$length}}),Object.defineProperty(F.prototype,"textContent",{get:function(){return Ce(this)},set:function(e){switch(this.nodeType){case p:case S:while(this.firstChild)this.removeChild(this.firstChild);(e||String(e))&&this.appendChild(this.ownerDocument.createTextNode(e));break;default:this.data=e,this.value=e,this.nodeValue=e}}}),Me=function(e,t,r){e["$$"+t]=r}}}catch(Te){}t.DocumentType=he,t.DOMException=D,t.DOMImplementation=Y,t.Element=ae,t.Node=F,t.NodeList=E,t.XMLSerializer=ye},"./node_modules/@xmldom/xmldom/lib/entities.js": /*!*****************************************************!*\ !*** ./node_modules/@xmldom/xmldom/lib/entities.js ***! \*****************************************************/ /*! no static exports found */function(e,t,r){"use strict";var n=r(/*! ./conventions */"./node_modules/@xmldom/xmldom/lib/conventions.js").freeze;t.XML_ENTITIES=n({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),t.HTML_ENTITIES=n({Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"⁡",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",AMP:"&",amp:"&",And:"⩓",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",ap:"≈",apacir:"⩯",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",Barwed:"⌆",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",Because:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxDL:"╗",boxDl:"╖",boxdL:"╕",boxdl:"┐",boxDR:"╔",boxDr:"╓",boxdR:"╒",boxdr:"┌",boxH:"═",boxh:"─",boxHD:"╦",boxHd:"╤",boxhD:"╥",boxhd:"┬",boxHU:"╩",boxHu:"╧",boxhU:"╨",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxUL:"╝",boxUl:"╜",boxuL:"╛",boxul:"┘",boxUR:"╚",boxUr:"╙",boxuR:"╘",boxur:"└",boxV:"║",boxv:"│",boxVH:"╬",boxVh:"╫",boxvH:"╪",boxvh:"┼",boxVL:"╣",boxVl:"╢",boxvL:"╡",boxvl:"┤",boxVR:"╠",boxVr:"╟",boxvR:"╞",boxvr:"├",bprime:"‵",Breve:"˘",breve:"˘",brvbar:"¦",Bscr:"ℬ",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",Cap:"⋒",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",CenterDot:"·",centerdot:"·",Cfr:"ℭ",cfr:"𝔠",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",Colon:"∷",colon:":",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",Conint:"∯",conint:"∮",ContourIntegral:"∮",Copf:"ℂ",copf:"𝕔",coprod:"∐",Coproduct:"∐",COPY:"©",copy:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",Cross:"⨯",cross:"✗",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",Cup:"⋓",cup:"∪",cupbrcap:"⩈",CupCap:"≍",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",Dagger:"‡",dagger:"†",daleth:"ℸ",Darr:"↡",dArr:"⇓",darr:"↓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",DD:"ⅅ",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",Diamond:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",Downarrow:"⇓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",ecir:"≖",Ecirc:"Ê",ecirc:"ê",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",eDot:"≑",edot:"ė",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",Escr:"ℰ",escr:"ℯ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",ExponentialE:"ⅇ",exponentiale:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",ForAll:"∀",forall:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",Fscr:"ℱ",fscr:"𝒻",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",gE:"≧",ge:"≥",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",Gg:"⋙",gg:"≫",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gnE:"≩",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",Gt:"≫",GT:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",hArr:"⇔",harr:"↔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",Hfr:"ℌ",hfr:"𝔥",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",Hopf:"ℍ",hopf:"𝕙",horbar:"―",HorizontalLine:"─",Hscr:"ℋ",hscr:"𝒽",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"⁣",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",Ifr:"ℑ",ifr:"𝔦",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Im:"ℑ",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",Int:"∬",int:"∫",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",Iscr:"ℐ",iscr:"𝒾",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",Lang:"⟪",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",Larr:"↞",lArr:"⇐",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",lAtail:"⤛",latail:"⤙",late:"⪭",lates:"⪭︀",lBarr:"⤎",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",lE:"≦",le:"≤",LeftAngleBracket:"⟨",LeftArrow:"←",Leftarrow:"⇐",leftarrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",Ll:"⋘",ll:"≪",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lnE:"≨",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftarrow:"⟵",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",LongRightArrow:"⟶",Longrightarrow:"⟹",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",Lscr:"ℒ",lscr:"𝓁",Lsh:"↰",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",Lt:"≪",LT:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",Mscr:"ℳ",mscr:"𝓂",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",ne:"≠",nearhk:"⤤",neArr:"⇗",nearr:"↗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlArr:"⇍",nlarr:"↚",nldr:"‥",nlE:"≦̸",nle:"≰",nLeftarrow:"⇍",nleftarrow:"↚",nLeftrightarrow:"⇎",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",Nopf:"ℕ",nopf:"𝕟",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nRightarrow:"⇏",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nVDash:"⊯",nVdash:"⊮",nvDash:"⊭",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwArr:"⇖",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",ocir:"⊚",Ocirc:"Ô",ocirc:"ô",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",Or:"⩔",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",Otimes:"⨷",otimes:"⊗",otimesas:"⨶",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",Popf:"ℙ",popf:"𝕡",pound:"£",Pr:"⪻",pr:"≺",prap:"⪷",prcue:"≼",prE:"⪳",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",Prime:"″",prime:"′",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",Qopf:"ℚ",qopf:"𝕢",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",QUOT:'"',quot:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",Rang:"⟫",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",Rarr:"↠",rArr:"⇒",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",rAtail:"⤜",ratail:"⤚",ratio:"∶",rationals:"ℚ",RBarr:"⤐",rBarr:"⤏",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",REG:"®",reg:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",Rfr:"ℜ",rfr:"𝔯",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrow:"→",Rightarrow:"⇒",rightarrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",Ropf:"ℝ",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",Rscr:"ℛ",rscr:"𝓇",Rsh:"↱",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",Sc:"⪼",sc:"≻",scap:"⪸",Scaron:"Š",scaron:"š",sccue:"≽",scE:"⪴",sce:"⪰",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",seArr:"⇘",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",Square:"□",square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",Sub:"⋐",sub:"⊂",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",Subset:"⋐",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",Sum:"∑",sum:"∑",sung:"♪",Sup:"⋑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",Supset:"⋑",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swArr:"⇙",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",Therefore:"∴",therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",Tilde:"∼",tilde:"˜",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",TRADE:"™",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",Uarr:"↟",uArr:"⇑",uarr:"↑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrow:"↑",Uparrow:"⇑",uparrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",Updownarrow:"⇕",updownarrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",upsi:"υ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",vArr:"⇕",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",Vbar:"⫫",vBar:"⫨",vBarv:"⫩",Vcy:"В",vcy:"в",VDash:"⊫",Vdash:"⊩",vDash:"⊨",vdash:"⊢",Vdashl:"⫦",Vee:"⋁",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",Verbar:"‖",verbar:"|",Vert:"‖",vert:"|",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",Wedge:"⋀",wedge:"∧",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",Xi:"Ξ",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",Yuml:"Ÿ",yuml:"ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",Zfr:"ℨ",zfr:"𝔷",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",Zopf:"ℤ",zopf:"𝕫",Zscr:"𝒵",zscr:"𝓏",zwj:"‍",zwnj:"‌"}),t.entityMap=t.HTML_ENTITIES},"./node_modules/@xmldom/xmldom/lib/index.js": /*!**************************************************!*\ !*** ./node_modules/@xmldom/xmldom/lib/index.js ***! \**************************************************/ /*! no static exports found */function(e,t,r){var n=r(/*! ./dom */"./node_modules/@xmldom/xmldom/lib/dom.js");t.DOMImplementation=n.DOMImplementation,t.XMLSerializer=n.XMLSerializer,t.DOMParser=r(/*! ./dom-parser */"./node_modules/@xmldom/xmldom/lib/dom-parser.js").DOMParser},"./node_modules/@xmldom/xmldom/lib/sax.js": /*!************************************************!*\ !*** ./node_modules/@xmldom/xmldom/lib/sax.js ***! \************************************************/ /*! no static exports found */function(e,t,r){var n=r(/*! ./conventions */"./node_modules/@xmldom/xmldom/lib/conventions.js").NAMESPACE,i=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,o=new RegExp("[\\-\\.0-9"+i.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),a=new RegExp("^"+i.source+o.source+"*(?::"+i.source+o.source+"*)?$"),s=0,l=1,u=2,c=3,d=4,h=5,f=6,p=7;function m(e,t){this.message=e,this.locator=t,Error.captureStackTrace&&Error.captureStackTrace(this,m)}function g(){}function v(e,t,r,i,o){function a(e){if(e>65535){e-=65536;var t=55296+(e>>10),r=56320+(1023&e);return String.fromCharCode(t,r)}return String.fromCharCode(e)}function s(e){var t=e.slice(1,-1);return Object.hasOwnProperty.call(r,t)?r[t]:"#"===t.charAt(0)?a(parseInt(t.substr(1).replace("x","0x"))):(o.error("entity not found:"+e),e)}function l(t){if(t>v){var r=e.substring(v,t).replace(/&#?\w+;/g,s);f&&u(v),i.characters(r,0,t-v),v=t}}function u(t,r){while(t>=d&&(r=h.exec(e)))c=r.index,d=c+r[0].length,f.lineNumber++;f.columnNumber=t-c+1}var c=0,d=0,h=/.*(?:\r\n?|\n)|.*$/g,f=i.locator,p=[{currentNSMap:t}],g={},v=0;while(1){try{var k=e.indexOf("<",v);if(k<0){if(!e.substr(v).match(/^\s*$/)){var T=i.doc,O=T.createTextNode(e.substr(v));T.appendChild(O),i.currentElement=O}return}switch(k>v&&l(k),e.charAt(k+1)){case"/":var L=e.indexOf(">",k+3),A=e.substring(k+2,L).replace(/[ \t\n\r]+$/g,""),D=p.pop();L<0?(A=e.substring(k+2).replace(/[\s<].*/,""),o.error("end tag name: "+A+" is not complete:"+D.tagName),L=k+1+A.length):A.match(/\sv?v=L:l(Math.max(k,v)+1)}}function y(e,t){return t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber,t}function b(e,t,r,i,o,a){function m(e,t,n){r.attributeNames.hasOwnProperty(e)&&a.fatalError("Attribute "+e+" redefined"),r.addValue(e,t.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,o),n)}var g,v=++t,y=s;while(1){var b=e.charAt(v);switch(b){case"=":if(y===l)g=e.slice(t,v),y=c;else{if(y!==u)throw new Error("attribute equal must after attrName");y=c}break;case"'":case'"':if(y===c||y===l){if(y===l&&(a.warning('attribute value must after "="'),g=e.slice(t,v)),t=v+1,v=e.indexOf(b,t),!(v>0))throw new Error("attribute value no end '"+b+"' match");_=e.slice(t,v),m(g,_,t-1),y=h}else{if(y!=d)throw new Error('attribute value must after "="');_=e.slice(t,v),m(g,_,t),a.warning('attribute "'+g+'" missed start quot('+b+")!!"),t=v+1,y=h}break;case"/":switch(y){case s:r.setTagName(e.slice(t,v));case h:case f:case p:y=p,r.closed=!0;case d:case l:break;case u:r.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return a.error("unexpected end of input"),y==s&&r.setTagName(e.slice(t,v)),v;case">":switch(y){case s:r.setTagName(e.slice(t,v));case h:case f:case p:break;case d:case l:_=e.slice(t,v),"/"===_.slice(-1)&&(r.closed=!0,_=_.slice(0,-1));case u:y===u&&(_=g),y==d?(a.warning('attribute "'+_+'" missed quot(")!'),m(g,_,t)):(n.isHTML(i[""])&&_.match(/^(?:disabled|checked|selected)$/i)||a.warning('attribute "'+_+'" missed value!! "'+_+'" instead!!'),m(_,_,t));break;case c:throw new Error("attribute value missed!!")}return v;case"€":b=" ";default:if(b<=" ")switch(y){case s:r.setTagName(e.slice(t,v)),y=f;break;case l:g=e.slice(t,v),y=u;break;case d:var _=e.slice(t,v);a.warning('attribute "'+_+'" missed quot(")!!'),m(g,_,t);case h:y=f;break}else switch(y){case u:r.tagName;n.isHTML(i[""])&&g.match(/^(?:disabled|checked|selected)$/i)||a.warning('attribute "'+g+'" missed value!! "'+g+'" instead2!!'),m(g,g,t),t=v,y=l;break;case h:a.warning('attribute space is required"'+g+'"!!');case f:y=l,t=v;break;case c:y=d,t=v;break;case p:throw new Error("elements closed character '/' and '>' must be connected to")}}v++}}function _(e,t,r){var i=e.tagName,o=null,a=e.length;while(a--){var s=e[a],l=s.qName,u=s.value,c=l.indexOf(":");if(c>0)var d=s.prefix=l.slice(0,c),h=l.slice(c+1),f="xmlns"===d&&h;else h=l,d=null,f="xmlns"===l&&"";s.localName=h,!1!==f&&(null==o&&(o={},k(r,r={})),r[f]=o[f]=u,s.uri=n.XMLNS,t.startPrefixMapping(f,u))}a=e.length;while(a--){s=e[a];d=s.prefix;d&&("xml"===d&&(s.uri=n.XML),"xmlns"!==d&&(s.uri=r[d||""]))}c=i.indexOf(":");c>0?(d=e.prefix=i.slice(0,c),h=e.localName=i.slice(c+1)):(d=null,h=e.localName=i);var p=e.uri=r[d||""];if(t.startElement(p,h,i,e),!e.closed)return e.currentNSMap=r,e.localNSMap=o,!0;if(t.endElement(p,h,i),o)for(d in o)Object.prototype.hasOwnProperty.call(o,d)&&t.endPrefixMapping(d)}function w(e,t,r,n,i){if(/^(?:script|textarea)$/i.test(r)){var o=e.indexOf("",t),a=e.substring(t+1,o);if(/[&<]/.test(a))return/^script$/i.test(r)?(i.characters(a,0,a.length),o):(a=a.replace(/&#?\w+;/g,n),i.characters(a,0,a.length),o)}return t+1}function x(e,t,r,n){var i=n[r];return null==i&&(i=e.lastIndexOf(""),it?(r.comment(e,t+4,o-t-4),o+3):(n.error("Unclosed comment"),-1)}return-1;default:if("CDATA["==e.substr(t+3,6)){o=e.indexOf("]]>",t+9);return r.startCDATA(),r.characters(e,t+9,o-t-9),r.endCDATA(),o+3}var a=T(e,t),s=a.length;if(s>1&&/!doctype/i.test(a[0][0])){var l=a[1][0],u=!1,c=!1;s>3&&(/^public$/i.test(a[2][0])?(u=a[3][0],c=s>4&&a[4][0]):/^system$/i.test(a[2][0])&&(c=a[3][0]));var d=a[s-1];return r.startDTD(l,u,c),r.endDTD(),d.index+d[0].length}}return-1}function M(e,t,r){var n=e.indexOf("?>",t);if(n){var i=e.substring(t,n).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);if(i){i[0].length;return r.processingInstruction(i[1],i[2]),n+2}return-1}return-1}function C(){this.attributeNames={}}function T(e,t){var r,n=[],i=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;i.lastIndex=t,i.exec(e);while(r=i.exec(e))if(n.push(r),r[1])return n}m.prototype=new Error,m.prototype.name=m.name,g.prototype={parse:function(e,t,r){var n=this.domBuilder;n.startDocument(),k(t,t={}),v(e,t,r,n,this.errorHandler),n.endDocument()}},C.prototype={setTagName:function(e){if(!a.test(e))throw new Error("invalid tagName:"+e);this.tagName=e},addValue:function(e,t,r){if(!a.test(e))throw new Error("invalid attribute:"+e);this.attributeNames[e]=this.length,this[this.length++]={qName:e,value:t,offset:r}},length:0,getLocalName:function(e){return this[e].localName},getLocator:function(e){return this[e].locator},getQName:function(e){return this[e].qName},getURI:function(e){return this[e].uri},getValue:function(e){return this[e].value}},t.XMLReader=g,t.ParseError=m},"./node_modules/process/browser.js": /*!*****************************************!*\ !*** ./node_modules/process/browser.js ***! \*****************************************/ /*! no static exports found */function(e,t){var r,n,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(r===setTimeout)return setTimeout(e,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}function l(e){if(n===clearTimeout)return clearTimeout(e);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{return n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(function(){try{r="function"===typeof setTimeout?setTimeout:o}catch(e){r=o}try{n="function"===typeof clearTimeout?clearTimeout:a}catch(e){n=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 r=1;rv)return t(null,!1);if(r>1){var n=Math.max(e[0].Size,e[1].Size);if(n!==g)return t(null,!1)}var i=function n(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:n,Region:l,Key:u,UploadId:d,tracker:e.tracker},(function(e,t){f._isRunningTask(r)&&(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:n,Region:l,Key:u,tracker:e.tracker},(function(t,o){if(f._isRunningTask(r)){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,n,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 r=this,n=[],i={Bucket:e.Bucket,Region:e.Region,Prefix:e.Key,calledBySdk:e.calledBySdk||"sliceUploadFile",tracker:e.tracker},o=function e(){r.multipartList(i,(function(r,o){if(r)return t(r);n.push.apply(n,o.Upload||[]),"true"===o.IsTruncated?(i.KeyMarker=o.NextKeyMarker,i.UploadIdMarker=o.NextUploadIdMarker,e()):t(null,{UploadList:n})}))};o()}function h(e,t){var r=this,n=[],i={Bucket:e.Bucket,Region:e.Region,Key:e.Key,UploadId:e.UploadId,calledBySdk:"sliceUploadFile",tracker:e.tracker},o=function e(){r.multipartListPart(i,(function(r,o){if(r)return t(r);n.push.apply(n,o.Part||[]),"true"===o.IsTruncated?(i.PartNumberMarker=o.NextPartNumberMarker,e()):t(null,{PartList:n})}))};o()}function f(e,t){var r=this,n=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||r.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(r._isRunningTask(n)){var s=t["PartNumber"],h=Math.min(c,t["PartNumber"]*d)-(t["PartNumber"]-1)*d,m=0;p.call(r,{TaskId:n,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){r._isRunningTask(n)&&(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(r._isRunningTask(n))return e?t(e):void t(null,{UploadId:u.UploadId,SliceList:u.PartList})}))}function p(e,t){var r=this,n=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=r.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){r._isRunningTask(n)&&s.fileSlice(c,v,b,!0,(function(o){r.multipartUpload({TaskId:n,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(r._isRunningTask(n))return e?t(e):(x.Uploaded=!0,t(null,i))}))}))}),(function(e,i){if(r._isRunningTask(n))return t(e,i)}))}function m(e,t){var r=e.Bucket,n=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:r,Region:n,Key:i,UploadId:a,Parts:d,Headers:c,calledBySdk:"sliceUploadFile",tracker:e.tracker},t)}),(function(e,r){t(e,r)}))}function g(e,t){var r=e.Bucket,n=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:r,Region:n,Key:i,Headers:e.Headers,AsyncLimit:u,AbortArray:o},t)})),"bucket"===l)d.call(c,{Bucket:r,Region:n,calledBySdk:"abortUploadTask"},(function(e,r){if(e)return t(e);h.emit("get_abort_array",r.UploadList||[])}));else if("file"===l){if(!i)return t(s.error(new Error("abort_upload_task_no_key")));d.call(c,{Bucket:r,Region:n,Key:i,calledBySdk:"abortUploadTask"},(function(e,r){if(e)return t(e);h.emit("get_abort_array",r.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 r=e.Bucket,n=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:r,Region:n,Key:t.Key,Headers:e.Headers,UploadId:s},(function(e){var i={Bucket:r,Region:n,Key:t.Key,UploadId:s};c[a]={error:e,task:i},o(null)})),u++}),(function(e){if(e)return t(e);for(var r=[],n=[],i=0,o=c.length;ii?"sliceUploadFile":"putObject";e.tracker=new l({Beacon:r.options.BeaconReporter,clsReporter:r.options.ClsReporter,bucket:e.Bucket,region:e.Region,apiName:"uploadFile",realApi:h,fileKey:e.Key,fileSize:u,accelerate:d,deepTracker:r.options.DeepTracker,customId:r.options.CustomId,delay:r.options.TrackerDelay})}s.each(e,(function(e,t){"object"!==n(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(r,n){e.tracker&&e.tracker.report(r,n),g&&g(r,n,c),t&&t(r,n)};o.push({api:m,params:e,callback:v}),r._addTasks(o)}function b(e,t){var r=this,i=void 0===e.SliceSize?r.options.SliceSize:e.SliceSize,o=0,a=0,u=s.throttleOnProgress.call(r,a,e.onProgress),c=e.files.length,d=e.onFileFinish,h=Array(c),f=function(e,r,n){u(null,!0),d&&d(e,r,n),h[n.Index]={options:n,error:e,data:r},--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(!r.options.UseRawKey&&e.Key&&"/"===e.Key.substr(0,1)&&(e.Key=e.Key.substr(1)),o+=d,r.options.EnableReporter){var m=r.options.UseAccelerate||"string"===typeof r.options.Domain&&r.options.Domain.includes("accelerate."),g=d>i?"sliceUploadFile":"putObject";e.tracker=new l({Beacon:r.options.BeaconReporter,clsReporter:r.options.ClsReporter,bucket:e.Bucket,region:e.Region,apiName:"uploadFiles",realApi:g,fileKey:e.Key,fileSize:d,accelerate:m,deepTracker:r.options.DeepTracker,customId:r.options.CustomId,delay:r.options.TrackerDelay})}s.each(e,(function(e,t){"object"!==n(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,S=function(t,r){e.tracker&&e.tracker.report(t,r),k&&k(t,r),f&&f(t,r,h)};p.push({api:x,params:e,callback:S})})()})),r._addTasks(p)}function _(e,t){var r=new a,n=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?n.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,S=0,M=0,C={},T={},O={};r.on("copy_slice_complete",(function(r){var a={};s.each(e.Headers,(function(e,t){0===t.toLowerCase().indexOf("x-cos-meta-")&&(a[t]=e)}));var d=s.map(r.PartList,(function(e){return{PartNumber:e.PartNumber,ETag:e.ETag}}));o.retry(k,(function(t){n.multipartComplete({Bucket:l,Region:u,Key:c,UploadId:r.UploadId,Parts:d,tracker:e.tracker,calledBySdk:"sliceCopyFile"},t)}),(function(e,n){if(i.removeUsing(r.UploadId),e)return b(null,!0),t(e);i.removeUploadId(r.UploadId),b({loaded:y,total:y},!0),t(null,n)}))})),r.on("get_copy_data_finish",(function(a){var h=i.getCopyFileId(d,C,_,l,c);h&&i.saveUploadId(h,a.UploadId,n.options.UploadIdCacheLimit),i.setUsing(a.UploadId);var f=s.filter(a.PartList,(function(e){return e["Uploaded"]&&(M+=e["PartNumber"]>=S&&y%_||_),!e["Uploaded"]}));o.eachLimit(f,x,(function(t,r){var i=t.PartNumber,s=t.CopySourceRange,h=t.end-t.start;o.retry(k,(function(t){w.call(n,{Bucket:l,Region:u,Key:c,CopySource:d,UploadId:a.UploadId,PartNumber:i,CopySourceRange:s,tracker:e.tracker,calledBySdk:"sliceCopyFile"},t)}),(function(e,n){if(e)return r(e);M+=h,b({loaded:M,total:y}),t.ETag=n.ETag,r(e||null,n)}))}),(function(e){if(e)return i.removeUsing(a.UploadId),b(null,!0),t(e);r.emit("copy_slice_complete",a)}))})),r.on("get_chunk_size_finish",(function(){var o=function(){n.multipartInit({Bucket:l,Region:u,Key:c,Headers:O,tracker:e.tracker,calledBySdk:"sliceCopyFile"},(function(n,i){if(n)return t(n);e.UploadId=i.UploadId,r.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(n,{Bucket:l,Region:u,Key:c,UploadId:d,tracker:e.tracker,calledBySdk:"sliceCopyFile"},(function(n,o){if(n)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),r=u+t-1;l[e.PartNumber+"|"+u+"|"+r]=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)})),r.emit("get_copy_data_finish",{UploadId:d,PartList:e.PartList})}}))};p(0)})),r.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],r=1048576,i=0;ir.length&&(T[t]=e)})),r.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 r=e.TaskId,n=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:r,Bucket:n,Region:i,Key:a,CopySource:s,UploadId:l,PartNumber:u,CopySourceRange:c,tracker:e.tracker,calledBySdk:e.calledBySdk},(function(e,r){t(e||null,r)}))}),(function(e,r){return t(e,r)}))}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,r){e.prototype[r]=s.apiWrapper(r,t)}))}},"./src/async.js": /*!**********************!*\ !*** ./src/async.js ***! \**********************/ /*! no static exports found */function(e,t){var r=function(e,t,r,n){if(n=n||function(){},!e.length||t<=0)return n();var i=0,o=0,a=0;(function s(){if(i>=e.length)return n();while(a=e.length?n():s())}))})()},n=function(e,t,r){var n=function n(i){t((function(t,o){t&&i/gi,"<$1Rule>"),n=n.replace(/<(\/?)Tags>/gi,"<$1Tag>");var i=e.Headers;i["Content-Type"]="application/xml",i["Content-MD5"]=o.b64(o.md5(n)),je.call(this,{Action:"name/cos:PutBucketReplication",method:"PUT",Bucket:e.Bucket,Region:e.Region,body:n,action:"replication",headers:i,tracker:e.tracker},(function(e,r){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:r.statusCode,headers:r.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,r){if(e)if(404!==e.statusCode||!e.error||"Not Found"!==e.error&&"ReplicationConfigurationnotFoundError"!==e.error.Code)t(e);else{var n={ReplicationConfiguration:{Rules:[]},statusCode:e.statusCode};e.headers&&(n.headers=e.headers),t(null,n)}else!r.ReplicationConfiguration&&(r.ReplicationConfiguration={}),r.ReplicationConfiguration.Rule&&(r.ReplicationConfiguration.Rules=o.makeArray(r.ReplicationConfiguration.Rule),delete r.ReplicationConfiguration.Rule),t(e,r)}))}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,r){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:r.statusCode,headers:r.headers})}))}function D(e,t){if(e["WebsiteConfiguration"]){var r=o.clone(e["WebsiteConfiguration"]||{}),n=r["RoutingRules"]||r["RoutingRule"]||[];n=o.isArray(n)?n:[n],delete r.RoutingRule,delete r.RoutingRules,n.length&&(r.RoutingRules={RoutingRule:n});var i=o.json2xml({WebsiteConfiguration:r}),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,r){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:r.statusCode,headers:r.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,r){if(e)if(404===e.statusCode&&"NoSuchWebsiteConfiguration"===e.error.Code){var n={WebsiteConfiguration:{},statusCode:e.statusCode};e.headers&&(n.headers=e.headers),t(null,n)}else t(e);else{var i=r.WebsiteConfiguration||{};if(i["RoutingRules"]){var a=o.clone(i["RoutingRules"].RoutingRule||[]);a=o.makeArray(a),i.RoutingRules=a}t(null,{WebsiteConfiguration:i,statusCode:r.statusCode,headers:r.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,r){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:r.statusCode,headers:r.headers})}))}function j(e,t){if(e["RefererConfiguration"]){var r=o.clone(e["RefererConfiguration"]||{}),n=r["DomainList"]||{},i=n["Domains"]||n["Domain"]||[];i=o.isArray(i)?i:[i],i.length&&(r.DomainList={Domain:i});var a=o.json2xml({RefererConfiguration:r}),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,r){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:r.statusCode,headers:r.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,r){if(e)if(404===e.statusCode&&"NoSuchRefererConfiguration"===e.error.Code){var n={WebsiteConfiguration:{},statusCode:e.statusCode};e.headers&&(n.headers=e.headers),t(null,n)}else t(e);else{var i=r.RefererConfiguration||{};if(i["DomainList"]){var a=o.makeArray(i["DomainList"].Domain||[]);i.DomainList={Domains:a}}t(null,{RefererConfiguration:i,statusCode:r.statusCode,headers:r.headers})}}))}function R(e,t){var r=e["DomainConfiguration"]||{},n=r.DomainRule||e.DomainRule||[];n=o.clone(n);var i=o.json2xml({DomainConfiguration:{DomainRule:n}}),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,r){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:r.statusCode,headers:r.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,r){if(e)return t(e);var n=[];try{n=r.DomainConfiguration.DomainRule||[]}catch(i){}n=o.clone(o.isArray(n)?n:[n]),t(null,{DomainRule:n,statusCode:r.statusCode,headers:r.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,r){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:r.statusCode,headers:r.headers})}))}function Y(e,t){var r=e["OriginConfiguration"]||{},n=r.OriginRule||e.OriginRule||[];n=o.clone(n);var i=o.json2xml({OriginConfiguration:{OriginRule:n}}),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,r){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:r.statusCode,headers:r.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,r){if(e)return t(e);var n=[];try{n=r.OriginConfiguration.OriginRule||[]}catch(i){}n=o.clone(o.isArray(n)?n:[n]),t(null,{OriginRule:n,statusCode:r.statusCode,headers:r.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,r){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:r.statusCode,headers:r.headers})}))}function H(e,t){var r=o.json2xml({BucketLoggingStatus:e["BucketLoggingStatus"]||""}),n=e.Headers;n["Content-Type"]="application/xml",n["Content-MD5"]=o.b64(o.md5(r)),je.call(this,{Action:"name/cos:PutBucketLogging",method:"PUT",Bucket:e.Bucket,Region:e.Region,body:r,action:"logging",headers:n,tracker:e.tracker},(function(e,r){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:r.statusCode,headers:r.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,r){if(e)return t(e);t(null,{BucketLoggingStatus:r.BucketLoggingStatus,statusCode:r.statusCode,headers:r.headers})}))}function U(e,t,r){var n=o.clone(t["InventoryConfiguration"]);if(n.OptionalFields){var i=n.OptionalFields||[];n.OptionalFields={Field:i}}if(n.Destination&&n.Destination.COSBucketDestination&&n.Destination.COSBucketDestination.Encryption){var a=n.Destination.COSBucketDestination.Encryption;Object.keys(a).indexOf("SSECOS")>-1&&(a["SSE-COS"]=a["SSECOS"],delete a["SSECOS"])}var s=o.json2xml({InventoryConfiguration:n}),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?r(null,{statusCode:e.statusCode}):e?r(e):void r(null,{statusCode:t.statusCode,headers:t.headers})}))}function W(e,t){return U.call(this,"PUT",e,t)}function $(e,t){return U.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,r){if(e)return t(e);var n=r["InventoryConfiguration"];if(n&&n.OptionalFields&&n.OptionalFields.Field){var i=n.OptionalFields.Field;o.isArray(i)||(i=[i]),n.OptionalFields=i}if(n.Destination&&n.Destination.COSBucketDestination&&n.Destination.COSBucketDestination.Encryption){var a=n.Destination.COSBucketDestination.Encryption;Object.keys(a).indexOf("SSE-COS")>-1&&(a["SSECOS"]=a["SSE-COS"],delete a["SSE-COS"])}t(null,{InventoryConfiguration:n,statusCode:r.statusCode,headers:r.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,r){if(e)return t(e);var n=r["ListInventoryConfigurationResult"],i=n.InventoryConfiguration||[];i=o.isArray(i)?i:[i],delete n["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 r=e.Destination.COSBucketDestination.Encryption;Object.keys(r).indexOf("SSE-COS")>-1&&(r["SSECOS"]=r["SSE-COS"],delete r["SSE-COS"])}})),n.InventoryConfigurations=i,o.extend(n,{statusCode:r.statusCode,headers:r.headers}),t(null,n)}))}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,r){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:r.statusCode,headers:r.headers})}))}function K(e,t){if(e["AccelerateConfiguration"]){var r={AccelerateConfiguration:e.AccelerateConfiguration||{}},n=o.json2xml(r),i={"Content-Type":"application/xml"};i["Content-MD5"]=o.b64(o.md5(n)),je.call(this,{Action:"name/cos:PutBucketAccelerate",method:"PUT",Bucket:e.Bucket,Region:e.Region,body:n,action:"accelerate",headers:i,tracker:e.tracker},(function(e,r){if(e)return t(e);t(null,{statusCode:r.statusCode,headers:r.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,r){e||!r.AccelerateConfiguration&&(r.AccelerateConfiguration={}),t(e,r)}))}function J(e,t){var r=e.ServerSideEncryptionConfiguration||{},n=r.Rule||r.Rules||[],i=o.json2xml({ServerSideEncryptionConfiguration:{Rule:n}}),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,r){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:r.statusCode,headers:r.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,r){if(e)if(404===e.statusCode&&"NoSuchEncryptionConfiguration"===e.code){var n={EncryptionConfiguration:{Rules:[]},statusCode:e.statusCode};e.headers&&(n.headers=e.headers),t(null,n)}else t(e);else{var i=o.makeArray(r.EncryptionConfiguration&&r.EncryptionConfiguration.Rule||[]);r.EncryptionConfiguration={Rules:i},t(e,r)}}))}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,r){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:r.statusCode,headers:r.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(r,n){if(r){var i=r.statusCode;return e.Headers["If-Modified-Since"]&&i&&304===i?t(null,{NotModified:!0,statusCode:i}):t(r)}n.ETag=o.attr(n.headers,"etag",""),t(null,n)}))}function re(e,t){var r={};r["prefix"]=e["Prefix"]||"",r["delimiter"]=e["Delimiter"],r["key-marker"]=e["KeyMarker"],r["version-id-marker"]=e["VersionIdMarker"],r["max-keys"]=e["MaxKeys"],r["encoding-type"]=e["EncodingType"],je.call(this,{Action:"name/cos:GetBucketObjectVersions",ResourceKey:r["prefix"],method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,qs:r,action:"versions",tracker:e.tracker},(function(e,r){if(e)return t(e);var n=r.ListVersionsResult||{},i=n.DeleteMarker||[];i=o.isArray(i)?i:[i];var a=n.Version||[];a=o.isArray(a)?a:[a];var s=o.clone(n);delete s.DeleteMarker,delete s.Version,o.extend(s,{DeleteMarkers:i,Versions:a,statusCode:r.statusCode,headers:r.headers}),t(null,s)}))}function ne(e,t){var r=e.Query||{},n=e.QueryString||"",i=o.throttleOnProgress.call(this,0,e.onProgress),a=e.tracker;a&&a.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:n,rawBody:!0,onDownloadProgress:i,tracker:a},(function(r,n){if(i(null,!0),r){var a=r.statusCode;return e.Headers["If-Modified-Since"]&&a&&304===a?t(null,{NotModified:!0}):t(r)}t(null,{Body:n.body,ETag:o.attr(n.headers,"etag",""),statusCode:n.statusCode,headers:n.headers})}))}function ie(e,t){var r=this,n=e.ContentLength,i=o.throttleOnProgress.call(r,n,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||r.options.UploadAddMetaMd5||r.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()}),r.options.UploadCheckContentMd5&&(a["Content-MD5"]=o.b64(s)),(e.UploadAddMetaMd5||r.options.UploadAddMetaMd5)&&(a["x-cos-meta-md5"]=s)),void 0!==e.ContentLength&&(a["Content-Length"]=e.ContentLength),i(null,!0),je.call(r,{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:n,total:n},!0);var l=Le({ForcePathStyle:r.options.ForcePathStyle,protocol:r.options.Protocol,domain:r.options.Domain,bucket:e.Bucket,region:r.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,r){if(e){var n=e.statusCode;return n&&404===n?t(null,{BucketNotFound:!0,statusCode:n}):t(e)}t(null,{statusCode:r.statusCode,headers:r.headers})}))}function ae(e,t){var r={};e.VersionId&&(r.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:r,action:"acl",tracker:e.tracker},(function(e,r){if(e)return t(e);var n=r.AccessControlPolicy||{},i=n.Owner||{},a=n.AccessControlList&&n.AccessControlList.Grant||[];a=o.isArray(a)?a:[a];var s=Te(n);delete s.GrantWrite,r.headers&&r.headers["x-cos-acl"]&&(s.ACL=r.headers["x-cos-acl"]),s=o.extend(s,{Owner:i,Grants:a,statusCode:r.statusCode,headers:r.headers}),t(null,s)}))}function se(e,t){var r=e.Headers,n="";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},n=o.json2xml({AccessControlPolicy:i}),r["Content-Type"]="application/xml",r["Content-MD5"]=o.b64(o.md5(n))}o.each(r,(function(e,t){0===t.indexOf("x-cos-grant-")&&(r[t]=Oe(r[t]))})),je.call(this,{Action:"name/cos:PutObjectACL",method:"PUT",Bucket:e.Bucket,Region:e.Region,Key:e.Key,action:"acl",headers:r,body:n,tracker:e.tracker},(function(e,r){if(e)return t(e);t(null,{statusCode:r.statusCode,headers:r.headers})}))}function le(e,t){var r=e.Headers;r["Origin"]=e["Origin"],r["Access-Control-Request-Method"]=e["AccessControlRequestMethod"],r["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:r,tracker:e.tracker},(function(e,r){if(e)return e.statusCode&&403===e.statusCode?t(null,{OptionsForbidden:!0,statusCode:e.statusCode}):t(e);var n=r.headers||{};t(null,{AccessControlAllowOrigin:n["access-control-allow-origin"],AccessControlAllowMethods:n["access-control-allow-methods"],AccessControlAllowHeaders:n["access-control-allow-headers"],AccessControlExposeHeaders:n["access-control-expose-headers"],AccessControlMaxAge:n["access-control-max-age"],statusCode:r.statusCode,headers:r.headers})}))}function ue(e,t){var r=this,n=e.Headers;n["Cache-Control"]||n["cache-control"]||(n["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(n,i){if(n)return t(n);var a=o.clone(i.CopyObjectResult||{}),s=Le({ForcePathStyle:r.options.ForcePathStyle,protocol:r.options.Protocol,domain:r.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 r=e.CopySource||"",n=o.getSourceParams.call(this,r);if(n){var i=n.Bucket,a=n.Region,s=decodeURIComponent(n.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,r){if(e)return t(e);var n=o.clone(r.CopyPartResult||{});o.extend(n,{statusCode:r.statusCode,headers:r.headers}),t(null,n)}))}else t(o.error(new Error("CopySource format error")))}function de(e,t){var r=e.Objects||[],n=e.Quiet;r=o.isArray(r)?r:[r];var i=o.json2xml({Delete:{Object:r,Quiet:n||!1}}),a=e.Headers;a["Content-Type"]="application/xml",a["Content-MD5"]=o.b64(o.md5(i));var s=o.map(r,(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,r){if(e)return t(e);var n=r.DeleteResult||{},i=n.Deleted||[],a=n.Error||[];i=o.isArray(i)?i:[i],a=o.isArray(a)?a:[a];var s=o.clone(n);o.extend(s,{Error:a,Deleted:i,statusCode:r.statusCode,headers:r.headers}),t(null,s)}))}function he(e,t){var r=e.Headers;if(e["RestoreRequest"]){var n=e.RestoreRequest||{},i=o.json2xml({RestoreRequest:n});r["Content-Type"]="application/xml",r["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:r,tracker:e.tracker},t)}else t(o.error(new Error("missing param RestoreRequest")))}function fe(e,t){var r=e["Tagging"]||{},n=r.TagSet||r.Tags||e["Tags"]||[];n=o.clone(o.isArray(n)?n:[n]);var i=o.json2xml({Tagging:{TagSet:{Tag:n}}}),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,r){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:r.statusCode,headers:r.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,r){if(e)if(404!==e.statusCode||!e.error||"Not Found"!==e.error&&"NoSuchTagSet"!==e.error.Code)t(e);else{var n={Tags:[],statusCode:e.statusCode};e.headers&&(n.headers=e.headers),t(null,n)}else{var i=[];try{i=r.Tagging.TagSet.Tag||[]}catch(a){}i=o.clone(o.isArray(i)?i:[i]),t(null,{Tags:i,statusCode:r.statusCode,headers:r.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,r){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:r.statusCode,headers:r.headers})}))}function ge(e,t){var r=e["SelectType"];if(!r)return t(o.error(new Error("missing param SelectType")));var n=e["SelectRequest"]||{},i=o.json2xml({SelectRequest:n}),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,r){if(e&&204===e.statusCode)return t(null,{statusCode:e.statusCode});if(e)return t(e);var n=o.parseSelectPayload(r.body);t(null,{statusCode:r.statusCode,headers:r.headers,Body:n.body,Payload:n.payload})}))}function ve(e,t){var r=this,n=e.Headers,i=e.tracker;n["Cache-Control"]||n["cache-control"]||(n["Cache-Control"]=""),n["Content-Type"]||n["content-type"]||(n["Content-Type"]=e.Body&&e.Body.type||"");var a=e.Body&&(e.UploadAddMetaMd5||r.options.UploadAddMetaMd5);a&&i&&i.setParams({md5StartTime:(new Date).getTime()}),o.getBodyMd5(a,e.Body,(function(n){n&&(e.Headers["x-cos-meta-md5"]=n),a&&i&&i.setParams({md5EndTime:(new Date).getTime()}),je.call(r,{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,r){return e?(i&&i.parent&&i.parent.setParams({errorNode:"multipartInit"}),t(e)):(r=o.clone(r||{}),r&&r.InitiateMultipartUploadResult?t(null,o.extend(r.InitiateMultipartUploadResult,{statusCode:r.statusCode,headers:r.headers})):void t(null,r))}))}),e.onHashProgress)}function ye(e,t){var r=this;o.getFileSize("multipartUpload",e,(function(){var n=e.tracker,i=r.options.UploadCheckContentMd5;i&&n&&n.setParams({md5StartTime:(new Date).getTime()}),o.getBodyMd5(i,e.Body,(function(a){a&&(e.Headers["Content-MD5"]=o.b64(a)),i&&n&&n.setParams({md5EndTime:(new Date).getTime()}),n&&n.setParams({partNumber:e.PartNumber}),je.call(r,{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:n},(function(e,r){if(e)return n&&n.parent&&n.parent.setParams({errorNode:"multipartUpload"}),t(e);t(null,{ETag:o.attr(r.headers,"etag",""),statusCode:r.statusCode,headers:r.headers})}))}))}))}function be(e,t){for(var r=this,n=e.UploadId,i=e["Parts"],a=e.tracker,s=0,l=i.length;s-1?n(r.Authorization):"sign="+encodeURIComponent(r.Authorization)),r.SecurityToken&&(o+="&x-cos-security-token="+r.SecurityToken),r.ClientIP&&(o+="&clientIP="+r.ClientIP),r.ClientUA&&(o+="&clientUA="+r.ClientUA),r.Token&&(o+="&token="+r.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:""},r={FULL_CONTROL:"GrantFullControl",WRITE:"GrantWrite",READ:"GrantRead",READ_ACP:"GrantReadAcp",WRITE_ACP:"GrantWriteAcp"},n=e&&e.AccessControlList||{},i=n.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(n){"qcs::cam::anyone:anyone"===n.Grantee.ID||"http://cam.qcloud.com/groups/global/AllUsers"===n.Grantee.URI?a[n.Permission]=1:n.Grantee.ID!==e.Owner.ID&&t[r[n.Permission]].push('id="'+n.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(r,(function(e){t[e]=Oe(t[e].join(","))})),t}function Oe(e){var t,r,n=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,r).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+="/"+r),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,r=e.Url||Le({ForcePathStyle:this.options.ForcePathStyle,protocol:this.options.Protocol,domain:this.options.Domain,bucket:e.Bucket,region:t?"accelerate":e.Region}),n=r.replace(/^https?:\/\/([^/]+)(\/.*)?$/,"$1");return n};function De(e,t){var r=o.clone(e.Headers),n="";o.each(r,(function(e,t){(""===e||["content-type","cache-control","expires"].indexOf(t.toLowerCase())>-1)&&delete r[t],"host"===t.toLowerCase()&&(n=e)}));var i=!1!==e.ForceSignHost;!n&&e.SignHost&&i&&(r.Host=e.SignHost);var a=!1,s=function(e,r){a||(a=!0,r&&r.XCosSecurityToken&&!r.SecurityToken&&(r=o.clone(r),r.SecurityToken=r.XCosSecurityToken,delete r.XCosSecurityToken),t&&t(e,r))},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 r=Math.round(o.getSkewTime(l.options.SystemClockOffset)/1e3)+30;if(t.StartTime&&r=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 n=o.getAuth({SecretId:f.TmpSecretId,SecretKey:f.TmpSecretKey,Method:e.Method,Pathname:h,Query:e.Query,Headers:r,Expires:e.Expires,UseRawKey:l.options.UseRawKey,SystemClockOffset:l.options.SystemClockOffset,KeyTime:t,ForceSignHost:i}),a={Authorization:n,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,r=e.Authorization;if(r)if(r.indexOf(" ")>-1)t=!1;else if(r.indexOf("q-sign-algorithm=")>-1&&r.indexOf("q-ak=")>-1&&r.indexOf("q-sign-time=")>-1&&r.indexOf("q-key-time=")>-1&&r.indexOf("q-url-param-list=")>-1)t=!0;else try{r=atob(r),r.indexOf("a=")>-1&&r.indexOf("k=")>-1&&r.indexOf("t=")>-1&&r.indexOf("r=")>-1&&r.indexOf("b=")>-1&&(t=!0)}catch(n){}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:r,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=o.getAuth({SecretId:e.SecretId||l.options.SecretId,SecretKey:e.SecretKey||l.options.SecretKey,Method:e.Method,Pathname:h,Query:e.Query,Headers:r,Expires:e.Expires,UseRawKey:l.options.UseRawKey,SystemClockOffset:l.options.SystemClockOffset,ForceSignHost:i}),n={Authorization:t,SecurityToken:l.options.SecurityToken||l.options.XCosSecurityToken,SignFrom:"client"};return s(null,n),n}();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,r=!1,n=!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)&&(n=!0)}catch(c){}if(e)if(n&&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(),r=!0)}else 5===Math.floor(e.statusCode/100)?r=!0:"CORS blocked or network error"===e.message&&(i=!0,r=t.options.AutoSwitchHost);return{canRetry:r,networkError:i}}function Ie(e){var t=e.requestUrl,r=e.clientCalcSign,n=e.networkError;if(!this.options.AutoSwitchHost)return!1;if(!t)return!1;if(!r)return!1;if(!n)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 r=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 n=o.clone(e.qs);e.action&&(n[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=r.options.SystemClockOffset;s&&s.setParams({signStartTime:(new Date).getTime(),httpRetryTimes:o-1}),e.SwitchHost&&(a=a.replace(/myqcloud.com/,"tencentcos.cn")),De.call(r,{Bucket:e.Bucket||"",Region:e.Region||"",Method:e.method,Key:e.Key,Query:n,Headers:e.headers,SignHost:a,Action:e.Action,ResourceKey:e.ResourceKey,Scope:e.Scope,ForceSignHost:r.options.ForceSignHost,SwitchHost:e.SwitchHost},(function(n,a){n?t(n):(s&&s.setParams({signEndTime:(new Date).getTime(),httpStartTime:(new Date).getTime()}),e.AuthData=a,Pe.call(r,e,(function(n,u){s&&s.setParams({httpEndTime:(new Date).getTime()});var c=!1,d=!1;if(n){var h=Ee.call(r,n);c=h.canRetry||l!==r.options.SystemClockOffset,d=h.networkError}if(n&&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(r,{requestUrl:(null===n||void 0===n?void 0:n.url)||"",clientCalcSign:"client"===a.SignFrom,networkError:d});e.SwitchHost=f,i(o+1)}else t(n,u)})))}))};l(1)}function Pe(e,t){var r=this,n=e.TaskId;if(!n||r._isRunningTask(n)){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;r.options.UseAccelerate&&(s="accelerate"),c=c||Le({ForcePathStyle:r.options.ForcePathStyle,protocol:r.options.Protocol,domain:r.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),p.headers&&(p.headers=o.clearKey(p.headers)),p=o.clearKey(p),e.onProgress&&"function"===typeof e.onProgress){var g=d&&(d.size||d.length)||0;p.onProgress=function(t){if(!n||r._isRunningTask(n)){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),r.options.ForcePathStyle&&(p.pathStyle=r.options.ForcePathStyle),r.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=(r.options.Request||i)(p,(function(e){if(!e||"abort"!==e.error){var i={options:p,error:e&&e.error,statusCode:e&&e.statusCode||0,statusMessage:e&&e.statusMessage||"",headers:e&&e.headers||{},body:e&&e.body};r.emit("after-receive",i);var a,s=i.error,l=i.body,u={statusCode:i.statusCode,statusMessage:i.statusMessage,headers:i.headers},c=function(e,i){if(n&&r.off("inner-kill-task",x),!a){a=!0;var s={};u&&u.statusCode&&(s.statusCode=u.statusCode),u&&u.headers&&(s.headers=u.headers),e?(p.url&&(s.url=p.url),p.method&&(s.method=p.method),e=o.extend(e||{},s),t(e,null)):(i=o.extend(i||{},s),t(null,i)),w=null}};if(s)return c(o.error(s));var d,f=u.statusCode,m=2===Math.floor(f/100);if(h&&m)return c(null,{body:l});try{d=l&&l.indexOf("<")>-1&&l.indexOf(">")>-1&&o.xml2json(l)||{}}catch(v){d={}}var g=d&&d.Error;m?c(null,d):g?c(o.error(new Error(g.Message),{code:g.Code,error:g})):f?c(o.error(new Error(u.statusMessage),{code:""+f})):f&&c(o.error(new Error("statusCode error")))}})),x=function e(t){t.TaskId===n&&(w&&w.abort&&w.abort(),r.off("inner-kill-task",e))};n&&r.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:S,deleteBucketLifecycle:M,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:W,postBucketInventory:$,getBucketInventory:G,listBucketInventory:q,deleteBucketInventory:X,putBucketAccelerate:K,getBucketAccelerate:Z,putBucketEncryption:J,getBucketEncryption:Q,deleteBucketEncryption:ee,getObject:ne,headObject:te,listObjectVersions:re,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:Se,uploadPartCopy:ce,multipartInit:ve,multipartUpload:ye,multipartComplete:be,multipartList:_e,multipartListPart:we,multipartAbort:xe,request:ke,getObjectUrl:Ce,getAuth:Me};function Ne(e,t,r){o.each(["Cors","Acl"],(function(n){if(e.slice(-n.length)===n){var i=e.slice(0,-n.length)+n.toUpperCase(),a=o.apiWrapper(e,t),s=!1;r[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,r){e.prototype[r]=o.apiWrapper(r,t),Ne(r,t,e.prototype)}))}},"./src/cos.js": /*!********************!*\ !*** ./src/cos.js ***! \********************/ /*! no static exports found */function(e,t,r){"use strict";var n=r(/*! ./util */"./src/util.js"),i=r(/*! ./event */"./src/event.js"),o=r(/*! ./task */"./src/task.js"),a=r(/*! ./base */"./src/base.js"),s=r(/*! ./advance */"./src/advance.js"),l=r(/*! ../package.json */"./package.json"),u={AppId:"",SecretId:"",SecretKey:"",SecurityToken:"",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,DeepTracker:!1,TrackerDelay:5e3,CustomId:"",BeaconReporter:null,ClsReporter:null},c=function(e){if(this.options=n.extend(n.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")),n.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:n.md5,xml2json:n.xml2json,json2xml:n.json2xml,encodeBase64:n.encodeBase64},c.getAuthorization=n.getAuth,c.version=l.version,e.exports=c},"./src/event.js": /*!**********************!*\ !*** ./src/event.js ***! \**********************/ /*! no static exports found */function(e,t){var r=function(e){var t={},r=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.'),r(e).push(t)},e.off=function(e,t){for(var n=r(e),i=n.length-1;i>=0;i--)t===n[i]&&n.splice(i,1)},e.emit=function(e,t){for(var n=r(e).map((function(e){return e})),i=0;i=0;r--){var i=n[r][2];(!i||i+s=0;i--){var o=n[i];o[0]===e&&o[1]===t&&n.splice(i,1)}n.unshift([e,t,Math.round(Date.now()/1e3)]),n.length>r&&n.splice(r),d()}},removeUploadId:function(e){c.call(this),delete h.using[e];for(var t=n.length-1;t>=0;t--)n[t][1]===e&&n.splice(t,1);d()}};e.exports=h},"./src/task.js": /*!*********************!*\ !*** ./src/task.js ***! \*********************/ /*! no static exports found */function(e,t,r){var n=r(/*! ./session */"./src/session.js"),i=r(/*! ./util */"./src/util.js"),o={},a=function(e,t){o[t]=e[t],e[t]=function(e,r){e.SkipTask?o[t].call(this,e,r):this._addTask(t,e,r)}},s=function(e){var t=[],r={},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 r,n=function(){r=0,e.emit("task-list-update",{list:i.map(t,l)}),e.emit("list-update",{list:i.map(t,l)})};return function(){r||(r=setTimeout(n))}}(),c=function(){if(!(t.length<=e.options.UploadQueueSize)){for(var n=0;ne.options.UploadQueueSize;){var i="waiting"===t[n].state||"checking"===t[n].state||"uploading"===t[n].state;t[n]&&i?n++:(r[t[n].id]&&delete r[t[n].id],t.splice(n,1),s--)}u()}},d=function r(){if(!(a>=e.options.FileParallelLimit)){while(t[s]&&"waiting"!==t[s].state)s++;if(!(s>=t.length)){var n=t[s];s++,a++,n.state="checking",n.params.onTaskStart&&n.params.onTaskStart(l(n)),!n.params.UploadData&&(n.params.UploadData={});var d=i.formatParams(n.api,n.params);o[n.api].call(e,d,(function(t,i){e._isRunningTask(n.id)&&("checking"!==n.state&&"uploading"!==n.state||(n.state=t?"error":"success",t&&(n.error=t),a--,u(),r(),n.callback&&n.callback(t,i),"success"===n.state&&(n.params&&(delete n.params.UploadData,delete n.params.Body,delete n.params),delete n.callback)),c())})),u(),setTimeout(r)}}},h=function(t,i){var o=r[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){if("paused"===i&&o.params.Body&&"function"===typeof o.params.Body.pipe)return void console.error("stream not support pause");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&&n.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(n,o,a,s){o=i.formatParams(n,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:n,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(n,o,(function(e,n){if(e)return a(i.error(e));r[l]=h,t.push(h),h.size=n,!s&&u(),d(),c()})),l},e._isRunningTask=function(e){var t=r[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=r[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={},r=["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"],n=[].concat(r,["errorNode","errorCode","errorName","errorMessage","errorRequestId","errorHttpCode","errorServiceName","errorType","fullError"]),i="Success"===e.requestResult?r:n;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){n(this,e);var r=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,S=o&&o.substr(o.lastIndexOf("-")+1)||"";this.parent=r,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:S,partNumber:0,httpRetryTimes:0,customId:b||"",partTime:0},x&&(this.beacon=l(x,_))}return i(e,[{key:"formatResult",value:function(e,t){var r,n,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===(r=e.error)||void 0===r?void 0:r.code)||(null===e||void 0===e||null===(n=e.error)||void 0===n?void 0:n.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,S=this.params.httpSize/1024/(k/1e3),M=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(M)),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(M),httpSign:u(C),httpTookTime:u(k),httpSpeed:S<0?0:S.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 r=b(this.params);console.log(r),this.beacon&&this.sendEventsToBeacon(r),this.clsReporter&&this.sendEventsToCLS(r)}}},{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 r="qcloud_track_cos_sdk";0===this.delay?this.beacon&&this.beacon.onDirectUserAction(r,e):this.beacon&&this.beacon.onUserAction(r,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,r){"use strict";(function(t){var n=r(/*! @babel/runtime/helpers/typeof */"./node_modules/@babel/runtime/helpers/typeof.js"),i=r(/*! ../lib/md5 */"./lib/md5.js"),o=r(/*! ../lib/crypto */"./lib/crypto.js"),a=r(/*! ../lib/xml2json */"./lib/xml2json.js"),s=r(/*! ../lib/json2xml */"./lib/json2xml.js"),l=r(/*! ../lib/base64 */"./lib/base64.js"),u=r(/*! ./tracker */"./src/tracker.js");function c(e){return encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")}function d(e,t){var r=[];for(var n in e)e.hasOwnProperty(n)&&r.push(t?c(n).toLowerCase():n);return r.sort((function(e,t){return e=e.toLowerCase(),t=t.toLowerCase(),e===t?0:e>t?1:-1}))}var h=function(e,t){var r,n,i,o=[],a=d(e);for(r=0;r-1||f.indexOf(n)>-1)&&(t[r]=e[r])}return t},m=function(e){e=e||{};var t,r=e.SecretId,n=e.SecretKey,i=e.KeyTime,a=(e.method||e.Method||"get").toLowerCase(),s=O(e.Query||e.params||{}),l=p(O(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(!l.Host&&!l.host&&e.Bucket&&e.Region&&c&&(l.Host=e.Bucket+".cos."+e.Region+".myqcloud.com"),!r)throw new Error("missing param SecretId");if(!n)throw new Error("missing param SecretKey");var h=Math.round(U(e.SystemClockOffset)/1e3)-1,f=h,m=e.Expires||e.expires;f+=void 0===m?900:1*m||0;var g="sha1",v=r,y=i||h+";"+f,b=i||h+";"+f,_=d(l,!0).join(";").toLowerCase(),w=d(s,!0).join(";").toLowerCase(),x=o.HmacSHA1(b,n).toString(),k=[a,t,J.obj2str(s,!0),J.obj2str(l,!0),""].join("\n"),S=["sha1",y,o.SHA1(k).toString(),""].join("\n"),M=o.HmacSHA1(S,x).toString(),C=["q-sign-algorithm="+g,"q-ak="+v,"q-sign-time="+y,"q-key-time="+b,"q-header-list="+_,"q-url-param-list="+w,"q-signature="+M].join("&");return C},g=function(e,t,r){var n=t/8,i=e.slice(r,r+n);return new Uint8Array(i).reverse(),new{8:Uint8Array,16:Uint16Array,32:Uint32Array}[t](i)[0]},v=function(e,t,r,n){var i=e.slice(t,r),o="";return new Uint8Array(i).forEach((function(e){o+=String.fromCharCode(e)})),n&&(o=decodeURIComponent(escape(o))),o},y=function(e){var t={},r=v(e),n={records:[]};while(e.byteLength){var i,o=g(e,32,0),a=g(e,32,4),s=o-a-16,l=0;e=e.slice(12);while(lparseInt(t[r])?1:-1;return 0},t=function(t){if(!t)return!1;var r=(t.match(/Chrome\/([.\d]+)/)||[])[1],n=(t.match(/QBCore\/([.\d]+)/)||[])[1],i=(t.match(/QQBrowser\/([.\d]+)/)||[])[1],o=r&&e(r,"53.0.2785.116")<0&&n&&e(n,"3.53.991.400")<0&&i&&e(i,"9.0.2524.400")<=0||!1;return o};return t("undefined"!==typeof navigator&&navigator.userAgent)}(),S=function(e,t,r,n,i){var o;if(e.slice?o=e.slice(t,r):e.mozSlice?o=e.mozSlice(t,r):e.webkitSlice&&(o=e.webkitSlice(t,r)),n&&k){var a=new FileReader;a.onload=function(e){o=null,i(new Blob([a.result]))},a.readAsArrayBuffer(o)}else i(o)},M=function(e,t,r,n){r=r||_,e?"string"===typeof t?r(J.md5(t,!0)):Blob&&t instanceof Blob?J.getFileMd5(t,(function(e,t){r(t)}),n):r():r()},C=1048576,T=function(e,t,r){var n=e.size,o=0,a=i.getCtx(),s=function i(s){if(s>=n){var l=a.digest("hex");t(null,l)}else{var u=Math.min(n,s+C);J.fileSlice(e,s,u,!1,(function(e){x(e,(function(t){e=null,a=a.update(t,!0),o+=t.length,t=null,r&&r({loaded:o,total:n,percent:Math.round(o/n*1e4)/1e4}),i(s+C)}))}))}};s(0)};function O(e){return P(e,(function(e){return"object"===n(e)&&null!==e?O(e):e}))}function L(e,t,r){return e&&t in e?e[t]:r}function A(e,t){return j(t,(function(r,n){e[n]=t[n]})),e}function D(e){return e instanceof Array}function E(e,t){for(var r=!1,n=0;n-1,s=!o||"string"===typeof o&&o.indexOf("{Region}")>-1;if(e.indexOf("Bucket")>-1||"deleteMultipleObject"===e||"multipartList"===e||"listObjectVersions"===e){if(a&&!r)return"Bucket";if(s&&!n)return"Region"}else if(e.indexOf("Object")>-1||e.indexOf("multipart")>-1||"sliceUploadFile"===e||"abortUploadTask"===e||"uploadFile"===e){if(a&&!r)return"Bucket";if(s&&!n)return"Region";if(!i)return"Key"}return!1},F=function(e,t){if(t=A({},t),"getAuth"!==e&&"getV4Auth"!==e&&"getObjectUrl"!==e){var r=t.Headers||{};if(t&&"object"===n(t)){(function(){for(var e in t)t.hasOwnProperty(e)&&e.indexOf("x-cos-")>-1&&(r[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"};J.each(i,(function(e,n){void 0!==t[e]&&(r[n]=t[e])})),t.Headers=w(r)}}return t},z=function(e,t){return function(r,n){var i,o=this;if("function"===typeof r&&(n=r,r={}),r=F(e,r),o.options.EnableReporter)if("sliceUploadFile"===r.calledBySdk||"sliceCopyFile"===r.calledBySdk)i=r.tracker&&r.tracker.generateSubTracker({apiName:e});else if(["uploadFile","uploadFiles"].includes(e))i=null;else{var a=0;r.Body&&(a="string"===typeof r.Body?r.Body.length:r.Body.size||r.Body.byteLength||0);var s=o.options.UseAccelerate||"string"===typeof o.options.Domain&&o.options.Domain.includes("accelerate.");i=new u({Beacon:o.options.BeaconReporter,clsReporter:o.options.ClsReporter,bucket:r.Bucket,region:r.Region,apiName:e,realApi:e,accelerate:s,fileKey:r.Key,fileSize:a,deepTracker:o.options.DeepTracker,customId:o.options.CustomId,delay:o.options.TrackerDelay})}r.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},c=function(e,t){i&&i.report(e,t),n&&n(l(e),l(t))},d=function(){if("getService"!==e&&"abortUploadTask"!==e){var t=Y.call(o,e,r);if(t)return"missing param "+t;if(r.Region){if(o.options.CompatibilityMode){if(!/^([a-z\d-.]+)$/.test(r.Region))return"Region format error."}else{if(r.Region.indexOf("cos.")>-1)return'param Region should not be start with "cos."';if(!/^([a-z\d-]+)$/.test(r.Region))return"Region format error."}o.options.CompatibilityMode||-1!==r.Region.indexOf("-")||"yfb"===r.Region||"default"===r.Region||"accelerate"===r.Region||console.warn("warning: param Region format error, find help here: https://cloud.tencent.com/document/product/436/6224")}if(r.Bucket){if(!/^([a-z\d-]+)-(\d+)$/.test(r.Bucket))if(r.AppId)r.Bucket=r.Bucket+"-"+r.AppId;else{if(!o.options.AppId)return'Bucket should format as "test-1250000000".';r.Bucket=r.Bucket+"-"+o.options.AppId}r.AppId&&(console.warn('warning: AppId has been deprecated, Please put it at the end of parameter Bucket(E.g Bucket:"test-1250000000" ).'),delete r.AppId)}!o.options.UseRawKey&&r.Key&&"/"===r.Key.substr(0,1)&&(r.Key=r.Key.substr(1))}},h=d(),f=["getAuth","getObjectUrl"].includes(e);if("function"===typeof Promise&&!f&&!n)return new Promise((function(e,i){if(n=function(t,r){t?i(t):e(r)},h)return c(J.error(new Error(h)));t.call(o,r,c)}));if(h)return c(J.error(new Error(h)));var p=t.call(o,r,c);return f?p:void 0}},H=function(e,t){var r,n,i=this,o=0,a=0,s=Date.now();function l(){if(n=0,t&&"function"===typeof t){r=Date.now();var i,l=Math.max(0,Math.round((a-o)/((r-s)/1e3)*100)/100)||0;i=0===a&&0===e?1:Math.floor(a/e*100)/100||0,s=r,o=a;try{t({loaded:a,total:e,speed:l,percent:i})}catch(u){}}}return function(t,r){if(t&&(a=t.loaded,e=t.total),r)clearTimeout(n),l();else{if(n)return;n=setTimeout(l,i.options.ProgressInterval)}}},V=function(e,t,r){var n;"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())?(n=t.Body.size,t.ContentLength=n,r(null,n)):r(J.error(new Error("params body format error, Only allow File|Blob|String.")))},U=function(e){return Date.now()+(e||0)},W=function(e,t){var r=e;return e.message=e.message||null,"string"===typeof t?(e.error=t,e.message=t):"object"===n(t)&&null!==t&&(A(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=O(r)),e},$=function(){return"object"===("undefined"===typeof globalThis?"undefined":n(globalThis))&&("DedicatedWorkerGlobalScope"===globalThis.constructor.name||globalThis.FileReaderSync)},G=function(){return"object"!==("undefined"===typeof window?"undefined":n(window))&&"object"===("undefined"===typeof t?"undefined":n(t))&&!$()},q=function(e){return/^https?:\/\/([^/]+\.)?ci\.[^/]+/.test(e)},X=function(){if("object"!==("undefined"===typeof navigator?"undefined":n(navigator)))return!1;var e=navigator.userAgent,t=!!e.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);return t}(),K=function(){return"object"===("undefined"===typeof navigator?"undefined":n(navigator))&&/\sQQ/i.test(navigator.userAgent)}(),Z=function(e,t){var r=l.encode(e);return t&&(r=r.replaceAll("+","-").replaceAll("/","_").replaceAll("=","")),r},J={noop:_,formatParams:F,apiWrapper:z,xml2json:a,json2xml:s,md5:i,clearKey:w,fileSlice:S,getBodyMd5:M,getFileMd5:T,b64:N,extend:A,isArray:D,isInArray:E,makeArray:I,each:j,map:P,filter:R,clone:O,attr:L,uuid:B,camSafeUrlEncode:c,throttleOnProgress:H,getFileSize:V,getSkewTime:U,error:W,obj2str:h,getAuth:m,parseSelectPayload:y,getSourceParams:b,isBrowser:!0,isNode:G,isCIHost:q,isIOS_QQ:X&&K,encodeBase64:Z};e.exports=J}).call(this,r(/*! ./../node_modules/process/browser.js */"./node_modules/process/browser.js"))}})}))},"40c3":function(e,t,r){var n=r("6b4c"),i=r("5168")("toStringTag"),o="Arguments"==n(function(){return arguments}()),a=function(e,t){try{return e[t]}catch(r){}};e.exports=function(e){var t,r,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=a(t=Object(e),i))?r:o?n(t):"Object"==(s=n(t))&&"function"==typeof t.callee?"Arguments":s}},"416c":function(e,t,r){r("28e4")("Map")},4178:function(e,t,r){var n,i,o,a=r("d864"),s=r("3024"),l=r("32fc"),u=r("1ec9"),c=r("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=[],r=1;while(arguments.length>r)t.push(arguments[r++]);return v[++g]=function(){s("function"==typeof e?e:Function(e),t)},n(g),g},f=function(e){delete v[e]},"process"==r("6b4c")(d)?n=function(e){d.nextTick(a(b,e,1))}:m&&m.now?n=function(e){m.now(a(b,e,1))}:p?(i=new p,o=i.port2,i.port1.onmessage=_,n=a(o.postMessage,o,1)):c.addEventListener&&"function"==typeof postMessage&&!c.importScripts?(n=function(e){c.postMessage(e+"","*")},c.addEventListener("message",_,!1)):n=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,r){"use strict";var n=r("2aeb"),i=r("4630"),o=r("7f20"),a={};r("32e9")(a,r("2b4c")("iterator"),(function(){return this})),e.exports=function(e,t,r){e.prototype=n(a,{next:i(1,r)}),o(e,t+" Iterator")}},"41b2":function(e,t,r){"use strict";t.__esModule=!0;var n=r("3f6b"),i=o(n);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,r){return r<0?r+=1:r>1&&(r-=1),6*r<1?e+(t-e)*r*6:2*r<1?t:3*r<2?e+(t-e)*(2/3-r)*6:e}function h(e,t,r){return e+(t-e)*r}function f(e,t,r,n,i){return e[0]=t,e[1]=r,e[2]=n,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 n["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 r=m.get(e);if(r)return p(t,r);e+="";var n=e.replace(/ /g,"").toLowerCase();if(n in o)return p(t,o[n]),v(e,t),t;var i=n.length;if("#"!==n.charAt(0)){var a=n.indexOf("("),s=n.indexOf(")");if(-1!==a&&s+1===i){var l=n.substr(0,a),d=n.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(n.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(n.slice(4),16)/15:1),v(e,t),t):void f(t,0,0,0,1)}if(7===i||9===i){g=parseInt(n.slice(1,7),16);return g>=0&&g<=16777215?(f(t,(16711680&g)>>16,(65280&g)>>8,255&g,9===i?parseInt(n.slice(7),16)/255:1),v(e,t),t):void f(t,0,0,0,1)}}}}function b(e,t){var r=(parseFloat(e[0])%360+360)%360/360,n=c(e[1]),i=c(e[2]),o=i<=.5?i*(n+1):i+n-i*n,s=2*i-o;return t=t||[],f(t,a(255*d(s,o,r+1/3)),a(255*d(s,o,r)),a(255*d(s,o,r-1/3)),1),4===e.length&&(t[3]=e[3]),t}function _(e){if(e){var t,r,n=e[0]/255,i=e[1]/255,o=e[2]/255,a=Math.min(n,i,o),s=Math.max(n,i,o),l=s-a,u=(s+a)/2;if(0===l)t=0,r=0;else{r=u<.5?l/(s+a):l/(2-s-a);var c=((s-n)/6+l/2)/l,d=((s-i)/6+l/2)/l,h=((s-o)/6+l/2)/l;n===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,r,u];return null!=e[3]&&f.push(e[3]),f}}function w(e,t){var r=y(e);if(r){for(var n=0;n<3;n++)r[n]=t<0?r[n]*(1-t)|0:(255-r[n])*t+r[n]|0,r[n]>255?r[n]=255:r[n]<0&&(r[n]=0);return C(r,4===r.length?"rgba":"rgb")}}function x(e,t,r){if(t&&t.length&&e>=0&&e<=1){r=r||[];var n=e*(t.length-1),i=Math.floor(n),o=Math.ceil(n),s=t[i],u=t[o],c=n-i;return r[0]=a(h(s[0],u[0],c)),r[1]=a(h(s[1],u[1],c)),r[2]=a(h(s[2],u[2],c)),r[3]=l(h(s[3],u[3],c)),r}}function k(e,t,r){if(t&&t.length&&e>=0&&e<=1){var n=e*(t.length-1),i=Math.floor(n),o=Math.ceil(n),s=y(t[i]),u=y(t[o]),c=n-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 r?{color:d,leftIndex:i,rightIndex:o,value:n}:d}}function S(e,t,r,n){var i=y(e);if(e)return i=_(i),null!=t&&(i[0]=s(t)),null!=r&&(i[1]=c(r)),null!=n&&(i[2]=c(n)),C(b(i),"rgba")}function M(e,t){var r=y(e);if(r&&null!=t)return r[3]=l(t),C(r,"rgba")}function C(e,t){if(e&&e.length){var r=e[0]+","+e[1]+","+e[2];return"rgba"!==t&&"hsva"!==t&&"hsla"!==t||(r+=","+e[3]),t+"("+r+")"}}function T(e,t){var r=y(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}var O=new n["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 r=Object(i["m"])({},e);return r.colorStops=Object(i["H"])(e.colorStops,(function(e){return{offset:e.offset,color:w(e.color,-.1)}})),r}return e}},"41f6":function(e,t,r){},"423e":function(e,t,r){(function(e,t){t(r("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,r){var n=r("5ca1"),i=r("2d95");n(n.S,"Error",{isError:function(e){return"Error"===i(e)}})},4362:function(e,t,r){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,n="/";t.cwd=function(){return n},t.chdir=function(t){e||(e=r("df7c")),n=e.resolve(t,n)}}(),t.exit=t.kill=t.umask=t.dlopen=t.uptime=t.memoryUsage=t.uvCounters=function(){},t.features={}},4379:function(e,t,r){var n=r("4a59");e.exports=function(e,t){var r=[];return n(e,!1,r.push,r,t),r}},"43fc":function(e,t,r){"use strict";var n=r("63b6"),i=r("656e"),o=r("4439");n(n.S,"Promise",{try:function(e){var t=i.f(this),r=o(e);return(r.e?t.reject:t.resolve)(r.v),t.promise}})},"440c":function(e,t,r){(function(e,t){t(r("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration function t(e,t,r,n){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[r][0]:i[r][1]}function r(e){var t=e.substr(0,e.indexOf(" "));return i(t)?"a "+e:"an "+e}function n(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,r=e/10;return i(0===t?r: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:r,past:n,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,r){var n=r("2236"),i=r("11b0"),o=r("6613"),a=r("0676");function s(e){return n(e)||i(e)||o(e)||a()}e.exports=s,e.exports.__esModule=!0,e.exports["default"]=e.exports},"44b8":function(e,t,r){var n=r("23c6"),i=r("4379");e.exports=function(e){return function(){if(n(this)!=e)throw TypeError(e+"#toJSON isn't generic");return i(this)}}},4504:function(e,t,r){"use strict";var n=r("5ca1"),i=r("4bf8"),o=r("d8e8"),a=r("86cc");r("9e1e")&&n(n.P+r("c5b4"),"Object",{__defineGetter__:function(e,t){a.f(i(this),e,{get:o(t),enumerable:!0,configurable:!0})}})},"454f":function(e,t,r){r("46a7");var n=r("584a").Object;e.exports=function(e,t,r){return n.defineProperty(e,t,r)}},"456d":function(e,t,r){var n=r("4bf8"),i=r("0d58");r("5eda")("keys",(function(){return function(e){return i(n(e))}}))},4588:function(e,t){var r=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:r)(e)}},"45f2":function(e,t,r){var n=r("d9f6").f,i=r("07e3"),o=r("5168")("toStringTag");e.exports=function(e,t,r){e&&!i(e=r?e:e.prototype,o)&&n(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,r){},"467f":function(e,t,r){"use strict";var n=r("2d83");e.exports=function(e,t,r){var i=r.config.validateStatus;r.status&&i&&!i(r.status)?t(n("Request failed with status code "+r.status,r.config,null,r.request,r)):e(r)}},"46a7":function(e,t,r){var n=r("63b6");n(n.S+n.F*!r("8e60"),"Object",{defineProperty:r("d9f6").f})},"46bb":function(e,t,r){"use strict";var n=r("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.grid=h;var i=n(r("278c")),o=n(r("9523")),a=r("18ad"),s=r("5557"),l=r("9d85"),u=r("becb");function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function d(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},r=t.grid;r=(0,u.deepMerge)((0,s.deepClone)(l.gridConfig,!0),r||{}),(0,a.doUpdate)({chart:e,series:[r],key:"grid",getGraphConfig:f})}function f(e,t){var r=e.animationCurve,n=e.animationFrame,i=e.rLevel,o=p(e,t),a=g(e);return t.chart.gridArea=d({},o),[{name:"rect",index:i,animationCurve:r,animationFrame:n,shape:o,style:a}]}function p(e,t){var r=(0,i["default"])(t.chart.render.area,2),n=r[0],o=r[1],a=m(e.left,n),s=m(e.right,n),l=m(e.top,o),u=m(e.bottom,o),c=n-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,r){var n=r("5ca1");n(n.P+n.R,"Map",{toJSON:r("44b8")("Map")})},"470c":function(e,t,r){},4795:function(e,t,r){var n=r("7726"),i=r("5ca1"),o=r("a25f"),a=[].slice,s=/MSIE .\./.test(o),l=function(e){return function(t,r){var n=arguments.length>2,i=!!n&&a.call(arguments,2);return e(n?function(){("function"==typeof t?t:Function(t)).apply(this,i)}:t,r)}};i(i.G+i.B+i.F*s,{setTimeout:l(n.setTimeout),setInterval:l(n.setInterval)})},"47ee":function(e,t,r){var n=r("c3a1"),i=r("9aa9"),o=r("355d");e.exports=function(e){var t=n(e),r=i.f;if(r){var a,s=r(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,r){(function(e,t){t(r("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ı"},r=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,r){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 r=e%10,n=e%100-r,i=e>=100?100:null;return e+(t[r]||t[n]||t[i])},week:{dow:1,doy:7}});return r}))},"48c0":function(e,t,r){"use strict";r("386b")("bold",(function(e){return function(){return e(this,"b","","")}}))},"48f8":function(e,t,r){"use strict";var n=r("5ca1"),i=r("7b23");n(n.P+n.F*!r("2f21")([].reduceRight,!0),"Array",{reduceRight:function(e){return i(this,e,arguments.length,arguments[1],!0)}})},4917:function(e,t,r){"use strict";var n=r("cb7c"),i=r("9def"),o=r("0390"),a=r("5f1b");r("214f")("match",1,(function(e,t,r,s){return[function(r){var n=e(this),i=void 0==r?void 0:r[t];return void 0!==i?i.call(r,n):new RegExp(r)[t](String(n))},function(e){var t=s(r,e,this);if(t.done)return t.value;var l=n(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,r){(function(e,t){t(r("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,r){var n=100*e+t;return n<600?"凌晨":n<900?"早上":n<1200?"上午":1200===n?"中午":n<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,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.gridConfig=void 0;var n={left:"10%",right:"10%",top:60,bottom:60,style:{fill:"rgba(0, 0, 0, 0)"},rLevel:-30,animationCurve:"easeOutCubic",animationFrame:30};t.gridConfig=n},"4a59":function(e,t,r){var n=r("9b43"),i=r("1fa8"),o=r("33a4"),a=r("cb7c"),s=r("9def"),l=r("27ee"),u={},c={};t=e.exports=function(e,t,r,d,h){var f,p,m,g,v=h?function(){return e}:l(e),y=n(r,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,r){(function(e,t){t(r("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration function t(e,t,r){var n=e+" ";switch(r){case"ss":return n+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi",n;case"m":return t?"jedna minuta":"jedne minute";case"mm":return n+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta",n;case"h":return t?"jedan sat":"jednog sata";case"hh":return n+=1===e?"sat":2===e||3===e||4===e?"sata":"sati",n;case"dd":return n+=1===e?"dan":"dana",n;case"MM":return n+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci",n;case"yy":return n+=1===e?"godina":2===e||3===e||4===e?"godine":"godina",n}}var r=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 r}))},"4ba91":function(e,t,r){(function(t,n,i){e.exports=n(r("21bf"),r("38ba"))})(0,(function(e){return e.mode.OFB=function(){var t=e.lib.BlockCipherMode.extend(),r=t.Encryptor=t.extend({processBlock:function(e,t){var r=this._cipher,n=r.blockSize,i=this._iv,o=this._keystream;i&&(o=this._keystream=i.slice(0),this._iv=void 0),r.encryptBlock(o,0);for(var a=0;a1&&void 0!==arguments[1]?arguments[1]:{},r=t.series;r||(r=[]);var n=(0,h.initNeedSeries)(r,u.radarConfig,"radar");n=g(n,e),n=v(n,e),n=y(n,e),(0,l.doUpdate)({chart:e,series:n,key:"radar",getGraphConfig:b,getStartGraphConfig:_,beforeChange:k}),(0,l.doUpdate)({chart:e,series:n,key:"radarPoint",getGraphConfig:S,getStartGraphConfig:M}),(0,l.doUpdate)({chart:e,series:n,key:"radarLabel",getGraphConfig:O})}function g(e,t){var r=t.radarAxis;if(!r)return[];var n=r.indicator,i=r.axisLineAngles,o=r.radius,a=r.centerPos;return e.forEach((function(e){var t=e.data;e.dataRadius=[],e.radarPosition=n.map((function(r,n){var l=r.max,u=r.min,d=t[n];"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[n]=h,c.getCircleRadianPoint.apply(void 0,(0,s["default"])(a).concat([h,i[n]]))}))})),e}function v(e,t){var r=t.radarAxis;if(!r)return[];var n=r.centerPos,i=r.axisLineAngles;return e.forEach((function(e){var t=e.dataRadius,r=e.label,o=r.labelGap;e.labelPosition=t.map((function(e,t){return c.getCircleRadianPoint.apply(void 0,(0,s["default"])(n).concat([e+o,i[t]]))}))})),e}function y(e,t){var r=t.radarAxis;if(!r)return[];var n=(0,a["default"])(r.centerPos,2),i=n[0],o=n[1];return e.forEach((function(e){var t=e.labelPosition,r=t.map((function(e){var t=(0,a["default"])(e,2),r=t[0],n=t[1],s=r>i?"left":"right",l=n>o?"top":"bottom";return{textAlign:s,textBaseline:l}}));e.labelAlign=r})),e}function b(e){var t=e.animationCurve,r=e.animationFrame,n=e.rLevel;return[{name:"polyline",index:n,animationCurve:t,animationFrame:r,shape:w(e),style:x(e)}]}function _(e,t){var r=t.chart.radarAxis.centerPos,n=b(e)[0],i=n.shape.points.length,o=new Array(i).fill(0).map((function(e){return(0,s["default"])(r)}));return n.shape.points=o,[n]}function w(e){var t=e.radarPosition;return{points:t,close:!0}}function x(e){var t=e.radarStyle,r=e.color,n=(0,d.getRgbaValue)(r);n[3]=.5;var i={stroke:r,fill:(0,d.getColorFromRgbValue)(n)};return(0,h.deepMerge)(i,t)}function k(e,t){var r=t.shape,n=e.shape.points,i=n.length,o=r.points.length;if(o>i){var a=n.slice(-1)[0],l=new Array(o-i).fill(0).map((function(e){return(0,s["default"])(a)}));n.push.apply(n,(0,s["default"])(l))}else o0?arguments[0]:void 0)}}),{add:function(e){return n.def(i(this,o),e=0===e?0:e,e)}},n)},5038:function(e,t,r){(function(e,t){t(r("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,r){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,r){var n=r("9e1e"),i=r("0d58"),o=r("6821"),a=r("52a7").f;e.exports=function(e){return function(t){var r,s=o(t),l=i(s),u=l.length,c=0,d=[];while(u>c)r=l[c++],n&&!a.call(s,r)||d.push(e?[r,s[r]]:s[r]);return d}}},"50ed":function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},5120:function(e,t,r){(function(e,t){t(r("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"],r=["Ean","Feabh","Márt","Aib","Beal","Meith","Iúil","Lún","M.F.","D.F.","Samh","Noll"],n=["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:r,monthsParseExact:!0,weekdays:n,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,r){var n=r("2b4c")("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[n]=!1,!"/./"[e](t)}catch(i){}}return!0}},5168:function(e,t,r){var n=r("dbdb")("wks"),i=r("62a0"),o=r("e53d").Symbol,a="function"==typeof o,s=e.exports=function(e){return n[e]||(n[e]=a&&o[e]||(a?o:i)("Symbol."+e))};s.store=n},"51b6":function(e,t,r){r("a3c3"),e.exports=r("584a").Object.assign},"520a":function(e,t,r){"use strict";var n=r("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,r,a,c,d=this;return u&&(r=new RegExp("^"+d.source+"$(?!\\s)",n.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],r,(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,r){var n=r("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}n(n.S+n.F*!(i&&1/i(0)>0),"Math",{asinh:o})},"53e2":function(e,t,r){var n=r("07e3"),i=r("241e"),o=r("5559")("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),n(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},"549b":function(e,t,r){"use strict";var n=r("d864"),i=r("63b6"),o=r("241e"),a=r("b0dc"),s=r("3702"),l=r("b447"),u=r("20fd"),c=r("7cd6");i(i.S+i.F*!r("4ee1")((function(e){Array.from(e)})),"Array",{from:function(e){var t,r,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=n(m,p>2?arguments[2]:void 0,2)),void 0==y||f==Array&&s(y))for(t=l(h.length),r=new f(t);t>v;v++)u(r,v,g?m(h[v],v):h[v]);else for(d=y.call(h),r=new f;!(i=d.next()).done;v++)u(r,v,g?a(d,m,[i.value,v],!0):i.value);return r.length=v,r}})},"54a8":function(e,t,r){"use strict";var n=r("5ca1"),i=r("79e5"),o=r("bef9"),a=1..toPrecision;n(n.P+n.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,r){"use strict";var n,i,o,a,s=r("2d00"),l=r("7726"),u=r("9b43"),c=r("23c6"),d=r("5ca1"),h=r("d3f4"),f=r("d8e8"),p=r("f605"),m=r("4a59"),g=r("ebd6"),v=r("1991").set,y=r("8079")(),b=r("a5b8"),_=r("9c80"),w=r("a25f"),x=r("bcaa"),k="Promise",S=l.TypeError,M=l.process,C=M&&M.versions,T=C&&C.v8||"",O=l[k],L="process"==c(M),A=function(){},D=i=b.f,E=!!function(){try{var e=O.resolve(1),t=(e.constructor={})[r("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(n){}}(),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 r=e._c;y((function(){var n=e._v,i=1==e._s,o=0,a=function(t){var r,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?r=n:(c&&c.enter(),r=s(n),c&&(c.exit(),a=!0)),r===t.promise?u(S("Promise-chain cycle")):(o=I(r))?o.call(r,l,u):l(r)):u(n)}catch(d){c&&!a&&c.exit(),u(d)}};while(r.length>o)a(r[o++]);e._c=[],e._n=!1,t&&!e._h&&P(e)}))}},P=function(e){v.call(l,(function(){var t,r,n,i=e._v,o=R(e);if(o&&(t=_((function(){L?M.emit("unhandledRejection",i,e):(r=l.onunhandledrejection)?r({promise:e,reason:i}):(n=l.console)&&n.error&&n.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?M.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,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===e)throw S("Promise can't be resolved itself");(t=I(e))?y((function(){var n={_w:r,_d:!1};try{t.call(e,u(Y,n,1),u(B,n,1))}catch(i){B.call(n,i)}})):(r._v=e,r._s=1,j(r,!1))}catch(n){B.call({_w:r,_d:!1},n)}}};E||(O=function(e){p(this,O,k,"_h"),f(e),n.call(this);try{e(u(Y,this,1),u(B,this,1))}catch(t){B.call(this,t)}},n=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},n.prototype=r("dcbc")(O.prototype,{then:function(e,t){var r=D(g(this,O));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=L?M.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&j(this,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),o=function(){var e=new n;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}),r("7f20")(O,k),r("7a56")(k),a=r("8378")[k],d(d.S+d.F*!E,k,{reject:function(e){var t=D(this),r=t.reject;return r(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&&r("5cc5")((function(e){O.all(e)["catch"](A)}))),k,{all:function(e){var t=this,r=D(t),n=r.resolve,i=r.reject,o=_((function(){var r=[],o=0,a=1;m(e,!1,(function(e){var s=o++,l=!1;r.push(void 0),a++,t.resolve(e).then((function(e){l||(l=!0,r[s]=e,--a||n(r))}),i)})),--a||n(r)}));return o.e&&i(o.v),r.promise},race:function(e){var t=this,r=D(t),n=r.reject,i=_((function(){m(e,!1,(function(e){t.resolve(e).then(r.resolve,n)}))}));return i.e&&n(i.v),r.promise}})},5537:function(e,t,r){var n=r("8378"),i=r("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:n.version,mode:r("2d00")?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},5557:function(e,t,r){"use strict";var n=r("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=S,t.getTranslatePointPos=M,t.getDistanceBetweenPointAndLine=C,t.getCircleRadianPoint=T,t.getRegularPolygonPoints=O,t["default"]=void 0;var i=n(r("448a")),o=n(r("278c")),a=n(r("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 r=JSON.parse,n=JSON.stringify;if(!t)return r(n(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),r=t[0],n=t[1];return[parseInt(r)+.5,parseInt(n)+.5]}))}function g(e,t,r,n){return v(e,[t,r])<=n}function v(e,t){var r=(0,o["default"])(e,2),n=r[0],i=r[1],a=(0,o["default"])(t,2),u=a[0],c=a[1],d=s(n-u),h=s(i-c);return l(d*d+h*h)}function y(e,t){for(var r=0,n=(0,o["default"])(e,2),i=n[0],a=n[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)&&r++}u=c}return r%2===1}function b(e,t,r,n,i,a,s){if(!e)return!1;if(v(e,[t,r])>n)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,r,n,i),w=(0,o["default"])(b,2),x=w[0],k=w[1],S=T(t,r,n,a),M=(0,o["default"])(S,2),C=M[0],O=M[1],L=[g-t,y-r],A=[x-t,k-r],D=[C-t,O-r],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 r=(0,o["default"])(e,2),n=r[0],i=r[1],a=(0,o["default"])(t,2),s=a[0],l=a[1];return-i*s+n*l>0}function w(e,t,r){var n=r/2,a=t.map((function(e){var t=(0,o["default"])(e,2),r=t[0],i=t[1];return[r,i-n]})),s=t.map((function(e){var t=(0,o["default"])(e,2),r=t[0],i=t[1];return[r,i+n]})),l=[].concat((0,i["default"])(a),(0,i["default"])(s.reverse()));return y(e,l)}function x(e,t,r,n,i){var a=(0,o["default"])(e,2),s=a[0],l=a[1];return!(st+n)&&!(l>r+i)))}function k(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[0,0];if(!t)return!1;if(e%360===0)return t;var n=(0,o["default"])(t,2),i=n[0],a=n[1],s=(0,o["default"])(r,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 S(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[1,1],t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[0,0];if(!t)return!1;if(1===e)return t;var n=(0,o["default"])(t,2),i=n[0],a=n[1],s=(0,o["default"])(r,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 M(e,t){if(!e||!t)return!1;var r=(0,o["default"])(t,2),n=r[0],i=r[1],a=(0,o["default"])(e,2),s=a[0],l=a[1];return[n+s,i+l]}function C(e,t,r){if(!e||!t||!r)return!1;var n=(0,o["default"])(e,2),i=n[0],a=n[1],u=(0,o["default"])(t,2),c=u[0],d=u[1],h=(0,o["default"])(r,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,r,n){return[e+c(n)*r,t+u(n)*r]}function O(e,t,r,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-.5*f,o=2*f/n,a=new Array(n).fill("").map((function(e,t){return t*o+i}));return a.map((function(n){return T(e,t,r,n)}))}var L={deepClone:p,eliminateBlur:m,checkPointIsInCircle:g,checkPointIsInPolygon:y,checkPointIsInSector:b,checkPointIsNearPolyline:w,getTwoPointDistance:v,getRotatePointPos:k,getScalePointPos:S,getTranslatePointPos:M,getCircleRadianPoint:T,getRegularPolygonPoints:O,getDistanceBetweenPointAndLine:C};t["default"]=L},5559:function(e,t,r){var n=r("dbdb")("keys"),i=r("62a0");e.exports=function(e){return n[e]||(n[e]=i(e))}},"55c9":function(e,t,r){(function(e,t){t(r("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("_"),r="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),n=[/^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,n){return e?/-MMM-/.test(n)?r[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:n,longMonthsParse:n,shortMonthsParse:n,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,r){"use strict";var n=r("5ca1"),i=r("d8e8"),o=r("4bf8"),a=r("79e5"),s=[].sort,l=[1,2,3];n(n.P+n.F*(a((function(){l.sort(void 0)}))||!a((function(){l.sort(null)}))||!r("2f21")(s)),"Array",{sort:function(e){return void 0===e?s.call(o(this)):s.call(o(this),i(e))}})},5695:function(e,t,r){var n=r("5ca1"),i=r("77f1"),o=String.fromCharCode,a=String.fromCodePoint;n(n.S+n.F*(!!a&&1!=a.length),"String",{fromCodePoint:function(e){var t,r=[],n=arguments.length,a=0;while(n>a){if(t=+arguments[a++],i(t,1114111)!==t)throw RangeError(t+" is not a valid code point");r.push(t<65536?o(t):o(55296+((t-=65536)>>10),t%1024+56320))}return r.join("")}})},"576c":function(e,t,r){(function(e,t){t(r("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,r=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+r},week:{dow:1,doy:4}});return t}))},"57e7":function(e,t,r){"use strict";var n=r("5ca1"),i=r("c366")(!1),o=[].indexOf,a=!!o&&1/[1].indexOf(1,-0)<0;n(n.P+n.F*(a||!r("2f21")(o)),"Array",{indexOf:function(e){return a?o.apply(this,arguments)||0:i(this,e,arguments[1])}})},"57f0":function(e,t,r){var n=r("d3f4");r("5eda")("isSealed",(function(e){return function(t){return!n(t)||!!e&&e(t)}}))},"584a":function(e,t){var r=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=r)},"58b2":function(e,t,r){var n=r("5ca1");n(n.S+n.F*!r("9e1e"),"Object",{defineProperties:r("1495")})},"597f":function(e,t){e.exports=function(e,t,r,n){var i,o=0;function a(){var a=this,s=Number(new Date)-o,l=arguments;function u(){o=Number(new Date),r.apply(a,l)}function c(){i=void 0}n&&!i&&u(),i&&clearTimeout(i),void 0===n&&s>e?u():!0!==t&&(i=setTimeout(n?c:u,void 0===n?e-s:e))}return"boolean"!==typeof t&&(n=r,r=t,t=void 0),a}},5980:function(e,t,r){(function(t,n){e.exports=n(r("21bf"))})(0,(function(e){(function(){var t=e,r=t.lib,n=r.Base,i=t.enc,o=i.Utf8,a=t.algo;a.HMAC=n.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=o.parse(t));var r=e.blockSize,n=4*r;t.sigBytes>n&&(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 r=0,n=new Array(t);r=100?100:null;return e+(t[n]||t[i]||t[o])}},week:{dow:1,doy:7}});return r}))},"5b14":function(e,t,r){(function(e,t){t(r("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 r(e,t,r,n){var i=e;switch(r){case"s":return n||t?"néhány másodperc":"néhány másodperce";case"ss":return i+(n||t)?" másodperc":" másodperce";case"m":return"egy"+(n||t?" perc":" perce");case"mm":return i+(n||t?" perc":" perce");case"h":return"egy"+(n||t?" óra":" órája");case"hh":return i+(n||t?" óra":" órája");case"d":return"egy"+(n||t?" nap":" napja");case"dd":return i+(n||t?" nap":" napja");case"M":return"egy"+(n||t?" hónap":" hónapja");case"MM":return i+(n||t?" hónap":" hónapja");case"y":return"egy"+(n||t?" év":" éve");case"yy":return i+(n||t?" év":" éve")}return""}function n(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,r){return e<12?!0===r?"de":"DE":!0===r?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return n.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return n.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",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},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return i}))},"5b4e":function(e,t,r){var n=r("36c3"),i=r("b447"),o=r("0fc9");e.exports=function(e){return function(t,r,a){var s,l=n(t),u=i(l.length),c=o(a,u);if(e&&r!=r){while(u>c)if(s=l[c++],s!=s)return!0}else for(;u>c;c++)if((e||c in l)&&l[c]===r)return e||c||0;return!e&&-1}}},"5bba":function(e,t,r){r("9d98");var n=r("584a").Object;e.exports=function(e,t){return n.defineProperties(e,t)}},"5c3a":function(e,t,r){(function(e,t){t(r("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,r){var n=100*e+t;return n<600?"凌晨":n<900?"早上":n<1130?"上午":n<1230?"中午":n<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,r){var n=r("35e8");e.exports=function(e,t,r){for(var i in t)r&&e[i]?e[i]=t[i]:n(e,i,t[i]);return e}},"5ca1":function(e,t,r){var n=r("7726"),i=r("8378"),o=r("32e9"),a=r("2aba"),s=r("9b43"),l="prototype",u=function(e,t,r){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?n:g?n[t]||(n[t]={}):(n[t]||{})[l],_=m?i:i[t]||(i[t]={}),w=_[l]||(_[l]={});for(c in m&&(r=t),r)d=!p&&b&&void 0!==b[c],h=(d?b:r)[c],f=y&&d?s(h,n):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)};n.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,r){(function(e,t){t(r("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,r){return e<4?"రాత్రి":e<10?"ఉదయం":e<17?"మధ్యాహ్నం":e<20?"సాయంత్రం":"రాత్రి"},week:{dow:0,doy:6}});return t}))},"5cc5":function(e,t,r){var n=r("2b4c")("iterator"),i=!1;try{var o=[7][n]();o["return"]=function(){i=!0},Array.from(o,(function(){throw 2}))}catch(a){}e.exports=function(e,t){if(!t&&!i)return!1;var r=!1;try{var o=[7],s=o[n]();s.next=function(){return{done:r=!0}},o[n]=function(){return s},e(o)}catch(a){}return r}},"5ce3":function(e,t,r){"use strict";var n=r("5ca1"),i=r("abd7")(/[&<>"']/g,{"&":"&","<":"<",">":">",'"':""","'":"'"});n(n.P+n.F,"String",{escapeHTML:function(){return i(this)}})},"5d40":function(e,t,r){r("28e4")("WeakMap")},"5d90":function(e,t,r){r("28e4")("WeakSet")},"5dbc":function(e,t,r){var n=r("d3f4"),i=r("8b97").set;e.exports=function(e,t,r){var o,a=t.constructor;return a!==r&&"function"==typeof a&&(o=a.prototype)!==r.prototype&&n(o)&&i&&i(e,o),e}},"5df2":function(e,t,r){var n=r("5ca1"),i=r("d752");n(n.S+n.F*(Number.parseFloat!=i),"Number",{parseFloat:i})},"5df3":function(e,t,r){"use strict";var n=r("02f4")(!0);r("01f9")(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,r=this._i;return r>=t.length?{value:void 0,done:!0}:(e=n(t,r),this._i+=e.length,{value:e,done:!1})}))},"5e07":function(e,t,r){},"5eda":function(e,t,r){var n=r("5ca1"),i=r("8378"),o=r("79e5");e.exports=function(e,t){var r=(i.Object||{})[e]||Object[e],a={};a[e]=t(r),n(n.S+n.F*o((function(){r(1)})),"Object",a)}},"5f1b":function(e,t,r){"use strict";var n=r("23c6"),i=RegExp.prototype.exec;e.exports=function(e,t){var r=e.exec;if("function"===typeof r){var o=r.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"!==n(e))throw new TypeError("RegExp#exec called on incompatible receiver");return i.call(e,t)}},"5fbd":function(e,t,r){(function(e,t){t(r("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,r=1===~~(e%100/10)?":e":1===t||2===t?":a":":e";return e+r},week:{dow:1,doy:4}});return t}))},6095:function(e,t,r){"use strict";var n=r("5ca1"),i=r("0a49")(4);n(n.P+n.F*!r("2f21")([].every,!0),"Array",{every:function(e){return i(this,e,arguments[1])}})},"60f1":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.legendConfig=void 0;var n={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=n},"60f7":function(e,t,r){"use strict";var n=r("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.legend=d;var i=n(r("9523")),o=n(r("278c")),a=n(r("7037")),s=r("18ad"),l=r("5557"),u=r("9d85"),c=r("becb");function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.legend;r?(r=(0,c.deepMerge)((0,l.deepClone)(u.legendConfig,!0),r),r=h(r),r=f(r,t,e),r=p(r,e),r=v(r,e),r=[r]):r=[],(0,s.doUpdate)({chart:e,series:r,key:"legendIcon",getGraphConfig:O}),(0,s.doUpdate)({chart:e,series:r,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,r){var n=t.series,i=r.legendStatus,o=e.data.filter((function(e){var t=e.name,r=n.find((function(e){var r=e.name;return t===r}));return!!r&&(e.color||(e.color=r.color),e.icon||(e.icon=r.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,r.legendStatus=i,e}function p(e,t){var r=t.render.ctx,n=e.data,i=e.textStyle,o=e.textUnselectedStyle;return n.forEach((function(e){var t=e.status,n=e.name;e.textWidth=m(r,n,t?i:o)})),e}function m(e,t,r){return e.font=g(r),e.measureText(t).width}function g(e){var t=e.fontFamily,r=e.fontSize;return"".concat(r,"px ").concat(t)}function v(e,t){var r=e.orient;return"vertical"===r?S(e,t):y(e,t),e}function y(e,t){var r=e.iconHeight,n=e.itemGap,i=b(e,t),o=i.map((function(r){return w(r,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*(n+r);e.iconPosition=k(i,[u,c]),e.textPosition=k(l,[u,c]),e.align=s}))}))}function b(e,t){var r=e.data,n=e.iconWidth,i=t.render.area[0],o=0,a=[[]];return r.forEach((function(t,r){var s=_(o,r,e),l=s+n+5+t.textWidth;l>=i&&(o=r,s=_(o,r,e),a.push([])),t.iconPosition=[s,0],t.textPosition=[s+n+5,0],a.slice(-1)[0].push(t)})),a}function _(e,t,r){var n=r.data,i=r.iconWidth,o=r.itemGap,a=n.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,r){var n=t.left,i=t.right,o=t.iconWidth,a=t.itemGap,s=r.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=[n,i].findIndex((function(e){return"auto"!==e}));return-1===d?(s-u)/2:0===d?"number"===typeof n?n:parseInt(n)/100*s:("number"!==typeof i&&(i=parseInt(i)/100*s),s-(u+i))}function x(e,t){var r=e.top,n=e.bottom,i=e.iconHeight,o=t.render.area[1],a=[r,n].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 r?r-s:parseInt(r)/100*o-s:("number"!==typeof n&&(n=parseInt(n)/100*o),o-n-s)}function k(e,t){var r=(0,o["default"])(e,2),n=r[0],i=r[1],a=(0,o["default"])(t,2),s=a[0],l=a[1];return[n+s,i+l]}function S(e,t){var r=M(e,t),n=(0,o["default"])(r,2),i=n[0],a=n[1],s=C(e,t);T(e,i);var l={textAlign:"left",textBaseline:"middle"};e.data.forEach((function(e){var t=e.textPosition,r=e.iconPosition;e.textPosition=k(t,[a,s]),e.iconPosition=k(r,[a,s]),e.align=l}))}function M(e,t){var r=e.left,n=e.right,i=t.render.area[0],o=[r,n].findIndex((function(e){return"auto"!==e}));if(-1===o)return[!0,i-10];var a=[r,n][o];return"number"!==typeof a&&(a=parseInt(a)/100*i),[Boolean(o),a]}function C(e,t){var r=e.iconHeight,n=e.itemGap,i=e.data,o=e.top,a=e.bottom,s=t.render.area[1],l=i.length,u=l*r+(l-1)*n,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 r=e.data,n=e.iconWidth,i=e.iconHeight,o=e.itemGap,a=i/2;r.forEach((function(e,r){var s=e.textWidth,l=(i+o)*r+a,u=t?0-n:0,c=t?u-5-s:n+5;e.iconPosition=[u,l],e.textPosition=[c,l]}))}function O(e,t){var r=e.data,n=e.selectAble,o=e.animationCurve,a=e.animationFrame,s=e.rLevel;return r.map((function(r,l){return(0,i["default"])({name:"line"===r.icon?"lineIcon":"rect",index:s,visible:e.show,hover:n,click:n,animationCurve:o,animationFrame:a,shape:L(e,l),style:A(e,l)},"click",P(e,l,t))}))}function L(e,t){var r=e.data,n=e.iconWidth,i=e.iconHeight,a=(0,o["default"])(r[t].iconPosition,2),s=a[0],l=a[1],u=i/2;return{x:s,y:l-u,w:n,h:i}}function A(e,t){var r=e.data,n=e.iconStyle,i=e.iconUnselectedStyle,o=r[t],a=o.status,s=o.color,l=a?n:i;return(0,c.deepMerge)({fill:s},l)}function D(e,t){var r=e.data,n=e.selectAble,i=e.animationCurve,o=e.animationFrame,a=e.rLevel;return r.map((function(r,s){return{name:"text",index:a,visible:e.show,hover:n,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 r=e.data[t],n=r.textPosition,i=r.name;return{content:i,position:n}}function I(e,t){var r=e.textStyle,n=e.textUnselectedStyle,i=e.data[t],o=i.status,a=i.align,s=o?r:n;return(0,c.deepMerge)((0,l.deepClone)(s,!0),a)}function j(e,t){var r=e.textStyle,n=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?r:n,h=d.fontSize;return[l,u-h/2,c,h]}function P(e,t,r){var n=e.data[t].name;return function(){var e=r.chart,i=e.legendStatus,o=e.option,a=!i[t],s=o.series.find((function(e){var t=e.name;return t===n}));s.show=a,i[t]=a,r.chart.setOption(o)}}},6117:function(e,t,r){(function(e,t){t(r("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,r){var n=100*e+t;return n<600?"يېرىم كېچە":n<900?"سەھەر":n<1130?"چۈشتىن بۇرۇن":n<1230?"چۈش":n<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,r){var n=r("5537")("keys"),i=r("ca5a");e.exports=function(e){return n[e]||(n[e]=i(e))}},"626a":function(e,t,r){var n=r("2d95");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==n(e)?e.split(""):Object(e)}},"62a0":function(e,t){var r=0,n=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++r+n).toString(36))}},"62fd":function(e,t,r){},"63b6":function(e,t,r){var n=r("e53d"),i=r("584a"),o=r("d864"),a=r("35e8"),s=r("07e3"),l="prototype",u=function(e,t,r){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?n:m?n[t]:(n[t]||{})[l];for(c in p&&(r=t),r)d=!f&&w&&void 0!==w[c],d&&s(b,c)||(h=d?w[c]:r[c],b[c]=p&&"function"!=typeof w[c]?r[c]:v&&d?o(h,n):y&&w[c]==h?function(e){var t=function(t,r,n){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,r)}return new e(t,r,n)}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,r){r("ec30")("Float32",4,(function(e){return function(t,r,n){return e(this,t,r,n)}}))},6403:function(e,t,r){(function(e,t){t(r("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,r){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,r){"use strict";var n=r("dcbc"),i=r("67ab").getWeak,o=r("cb7c"),a=r("d3f4"),s=r("f605"),l=r("4a59"),u=r("0a49"),c=r("69a8"),d=r("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 r=v(this,e);r?r[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,r,o){var u=e((function(e,n){s(e,u,t,"_i"),e._t=t,e._i=p++,e._l=void 0,void 0!=n&&l(n,r,e[o],e)}));return n(u.prototype,{delete:function(e){if(!a(e))return!1;var r=i(e);return!0===r?m(d(this,t))["delete"](e):r&&c(r,this._i)&&delete r[this._i]},has:function(e){if(!a(e))return!1;var r=i(e);return!0===r?m(d(this,t)).has(e):r&&c(r,this._i)}}),u},def:function(e,t,r){var n=i(o(t),!0);return!0===n?m(e).set(t,r):n[e._i]=r,e},ufstore:m}},"64d5":function(e,t,r){"use strict";var n=r("5ca1"),i=r("4bf8"),o=r("6a99"),a=r("38fd"),s=r("11e9").f;r("9e1e")&&n(n.P+r("c5b4"),"Object",{__lookupSetter__:function(e){var t,r=i(this),n=o(e,!0);do{if(t=s(r,n))return t.set}while(r=a(r))}})},"656e":function(e,t,r){"use strict";var n=r("79aa");function i(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw TypeError("Bad Promise constructor");t=e,r=n})),this.resolve=n(t),this.reject=n(r)}e.exports.f=function(e){return new i(e)}},"65db":function(e,t,r){(function(e,t){t(r("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,r){return e>11?r?"p.t.m.":"P.T.M.":r?"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,r){var n=r("5a43");function i(e,t){if(e){if("string"===typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}}e.exports=i,e.exports.__esModule=!0,e.exports["default"]=e.exports},6625:function(e,t,r){!function(t,r){e.exports=r()}("undefined"!=typeof self&&self,(function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=40)}([function(e,t){var r=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},function(e,t,r){var n=r(28)("wks"),i=r(29),o=r(0).Symbol,a="function"==typeof o;(e.exports=function(e){return n[e]||(n[e]=a&&o[e]||(a?o:i)("Symbol."+e))}).store=n},function(e,t){var r=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=r)},function(e,t,r){var n=r(7);e.exports=function(e){if(!n(e))throw TypeError(e+" is not an object!");return e}},function(e,t,r){var n=r(0),i=r(2),o=r(11),a=r(5),s=r(9),l=function(e,t,r){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?n:p?n[t]:(n[t]||{}).prototype;for(u in f&&(r=t),r)(c=!h&&_&&void 0!==_[u])&&s(y,u)||(d=c?_[u]:r[u],y[u]=f&&"function"!=typeof _[u]?r[u]:g&&c?o(d,n):v&&_[u]==d?function(e){var t=function(t,r,n){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,r)}return new e(t,r,n)}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,r){var n=r(13),i=r(31);e.exports=r(6)?function(e,t,r){return n.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},function(e,t,r){e.exports=!r(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 r={}.hasOwnProperty;e.exports=function(e,t){return r.call(e,t)}},function(e,t){var r={}.toString;e.exports=function(e){return r.call(e).slice(8,-1)}},function(e,t,r){var n=r(12);e.exports=function(e,t,r){if(n(e),void 0===t)return e;switch(r){case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,i){return e.call(t,r,n,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,r){var n=r(3),i=r(50),o=r(51),a=Object.defineProperty;t.f=r(6)?Object.defineProperty:function(e,t,r){if(n(e),t=o(t,!0),n(r),i)try{return a(e,t,r)}catch(e){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(e[t]=r.value),e}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,r){var n=r(16);e.exports=function(e){return Object(n(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,r){var n=r(46),i=r(30);e.exports=Object.keys||function(e){return n(e,i)}},function(e,t,r){var n=r(26),i=r(16);e.exports=function(e){return n(i(e))}},function(e,t){var r=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:r)(e)}},function(e,t,r){var n=r(28)("keys"),i=r(29);e.exports=function(e){return n[e]||(n[e]=i(e))}},function(e,t){e.exports=!0},function(e,t,r){var n=r(7),i=r(0).document,o=n(i)&&n(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},function(e,t,r){var n=r(13).f,i=r(9),o=r(1)("toStringTag");e.exports=function(e,t,r){e&&!i(e=r?e:e.prototype,o)&&n(e,o,{configurable:!0,value:t})}},function(e,t,r){"use strict";var n=r(12);e.exports.f=function(e){return new function(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw TypeError("Bad Promise constructor");t=e,r=n})),this.resolve=n(t),this.reject=n(r)}(e)}},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0});var n=c(r(43)),i=c(r(32)),o=c(r(79)),a=c(r(86)),s=c(r(87)),l=c(r(88)),u=c(r(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,r=e.icon,n=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:n,cssRules:"background-image: url("+r+") !important;background-size: cover;",onclick:function(){e.execCommand(t)}});return e.addListener("selectionchange",(function(){var r=e.queryCommandState(t);-1===r?(o.setDisabled(!0),o.setChecked(!1)):(o.setDisabled(!1),o.setChecked(r))})),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,r){if(window.$loadEventBus.on(e,t),!1===window.$loadEventBus.listeners[e].requested){window.$loadEventBus.listeners[e].requested=!0;var n=document.createElement("script");n.src=e,n.onload=function(){window.$loadEventBus.emit(e)},n.onerror=r,document.getElementsByTagName("head")[0].appendChild(n)}}))},_loadCss:function(e){return new i.default((function(t,r){if(window.$loadEventBus.on(e,t),!1===window.$loadEventBus.listeners[e].requested){window.$loadEventBus.listeners[e].requested=!0;var n=document.createElement("link");n.type="text/css",n.rel="stylesheet",n.href=e,n.onload=function(){window.$loadEventBus.emit(e)},n.onerror=r,document.getElementsByTagName("head")[0].appendChild(n)}}))},_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(r,o){if(e.editorDependencies&&e.editorDependenciesChecker&&e.editorDependenciesChecker())r();else if(!e.editorDependencies&&window.UE&&window.UE.getEditor&&window.UEDITOR_CONFIG&&0!==(0,n.default)(window.UEDITOR_CONFIG).length)r();else{var a=(e.editorDependencies||t).reduce((function(t,r){return/^((https?:)?\/\/)?[-a-zA-Z0-9]+(\.[-a-zA-Z0-9]+)+\//.test(r)||(r=(e.mixedConfig.UEDITOR_HOME_URL||"")+r),".js"===r.slice(-3)?t.jsLinks.push(r):".css"===r.slice(-4)&&t.cssLinks.push(r),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 r()})).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,r(42))},function(e,t,r){var n=r(10);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==n(e)?e.split(""):Object(e)}},function(e,t,r){var n=r(19),i=Math.min;e.exports=function(e){return e>0?i(n(e),9007199254740991):0}},function(e,t,r){var n=r(2),i=r(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:n.version,mode:r(21)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(e,t){var r=0,n=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++r+n).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,r){e.exports={default:r(52),__esModule:!0}},function(e,t,r){"use strict";var n=r(21),i=r(4),o=r(56),a=r(5),s=r(8),l=r(57),u=r(23),c=r(60),d=r(1)("iterator"),h=!([].keys&&"next"in[].keys()),f=function(){return this};e.exports=function(e,t,r,p,m,g,v){l(r,t,p);var y,b,_,w=function(e){if(!h&&e in M)return M[e];switch(e){case"keys":case"values":return function(){return new r(this,e)}}return function(){return new r(this,e)}},x=t+" Iterator",k="values"==m,S=!1,M=e.prototype,C=M[d]||M["@@iterator"]||m&&M[m],T=C||w(m),O=m?k?w("entries"):T:void 0,L="Array"==t&&M.entries||C;if(L&&(_=c(L.call(new e)))!==Object.prototype&&_.next&&(u(_,x,!0),n||"function"==typeof _[d]||a(_,d,f)),k&&C&&"values"!==C.name&&(S=!0,T=function(){return C.call(this)}),n&&!v||!h&&!S&&M[d]||a(M,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 M||o(M,b,y[b]);else i(i.P+i.F*(h||S),t,y);return y}},function(e,t,r){var n=r(0).document;e.exports=n&&n.documentElement},function(e,t,r){var n=r(10),i=r(1)("toStringTag"),o="Arguments"==n(function(){return arguments}());e.exports=function(e){var t,r,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),i))?r:o?n(t):"Object"==(a=n(t))&&"function"==typeof t.callee?"Arguments":a}},function(e,t,r){var n=r(3),i=r(12),o=r(1)("species");e.exports=function(e,t){var r,a=n(e).constructor;return void 0===a||void 0==(r=n(a)[o])?t:i(r)}},function(e,t,r){var n,i,o,a=r(11),s=r(71),l=r(34),u=r(22),c=r(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=[],r=1;arguments.length>r;)t.push(arguments[r++]);return v[++g]=function(){s("function"==typeof e?e:Function(e),t)},n(g),g},f=function(e){delete v[e]},"process"==r(10)(d)?n=function(e){d.nextTick(a(y,e,1))}:m&&m.now?n=function(e){m.now(a(y,e,1))}:p?(o=(i=new p).port2,i.port1.onmessage=b,n=a(o.postMessage,o,1)):c.addEventListener&&"function"==typeof postMessage&&!c.importScripts?(n=function(e){c.postMessage(e+"","*")},c.addEventListener("message",b,!1)):n="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,r){var n=r(3),i=r(7),o=r(24);e.exports=function(e,t){if(n(e),i(t)&&t.constructor===e)return t;var r=o.f(e);return(0,r.resolve)(t),r.promise}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(25),i=r.n(n);for(var o in n)"default"!==o&&function(e){r.d(t,e,(function(){return n[e]}))}(o);var a=r(90),s=r(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,r,n,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),r&&(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__),n&&n.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},c._ssrRegister=u):n&&(u=n),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 r,n,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(r===setTimeout)return setTimeout(e,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:o}catch(e){r=o}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=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 r=1;rl;)n(s,r=t[l++])&&(~o(u,r)||u.push(r));return u}},function(e,t,r){var n=r(18),i=r(27),o=r(48);e.exports=function(e){return function(t,r,a){var s,l=n(t),u=i(l.length),c=o(a,u);if(e&&r!=r){for(;u>c;)if((s=l[c++])!=s)return!0}else for(;u>c;c++)if((e||c in l)&&l[c]===r)return e||c||0;return!e&&-1}}},function(e,t,r){var n=r(19),i=Math.max,o=Math.min;e.exports=function(e,t){return(e=n(e))<0?i(e+t,0):o(e,t)}},function(e,t,r){var n=r(4),i=r(2),o=r(14);e.exports=function(e,t){var r=(i.Object||{})[e]||Object[e],a={};a[e]=t(r),n(n.S+n.F*o((function(){r(1)})),"Object",a)}},function(e,t,r){e.exports=!r(6)&&!r(14)((function(){return 7!=Object.defineProperty(r(22)("div"),"a",{get:function(){return 7}}).a}))},function(e,t,r){var n=r(7);e.exports=function(e,t){if(!n(e))return e;var r,i;if(t&&"function"==typeof(r=e.toString)&&!n(i=r.call(e)))return i;if("function"==typeof(r=e.valueOf)&&!n(i=r.call(e)))return i;if(!t&&"function"==typeof(r=e.toString)&&!n(i=r.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t,r){r(53),r(54),r(61),r(65),r(77),r(78),e.exports=r(2).Promise},function(e,t){},function(e,t,r){"use strict";var n=r(55)(!0);r(33)(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,r=this._i;return r>=t.length?{value:void 0,done:!0}:(e=n(t,r),this._i+=e.length,{value:e,done:!1})}))},function(e,t,r){var n=r(19),i=r(16);e.exports=function(e){return function(t,r){var o,a,s=String(i(t)),l=n(r),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,r){e.exports=r(5)},function(e,t,r){"use strict";var n=r(58),i=r(31),o=r(23),a={};r(5)(a,r(1)("iterator"),(function(){return this})),e.exports=function(e,t,r){e.prototype=n(a,{next:i(1,r)}),o(e,t+" Iterator")}},function(e,t,r){var n=r(3),i=r(59),o=r(30),a=r(20)("IE_PROTO"),s=function(){},l=function(){var e,t=r(22)("iframe"),n=o.length;for(t.style.display="none",r(34).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("