realchart 1.1.9 → 1.1.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +392 -140
- package/dist/index.esm.js +2 -2
- package/dist/index.ie.js +2 -2
- package/dist/index.js +2 -2
- package/dist/realchart-style.css +11 -4
- package/dist/realchart-style.ie.css +11 -4
- package/package.json +1 -1
package/dist/index.ie.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* RealChart v1.1.
|
|
3
|
+
* RealChart v1.1.12
|
|
4
4
|
* Copyright (C) 2023-2024 WooriTech Inc.
|
|
5
5
|
* All Rights Reserved.
|
|
6
6
|
*/
|
|
7
|
-
var RealChart=function(t){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},i={exports:{}},n=i.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n);var r=i.exports,o={}.hasOwnProperty,s=function(t,e){return o.call(t,e)},a=function(t){try{return!!t()}catch(t){return!0}},u=!a((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})),l={exports:{}},h=l.exports={version:"2.6.12"};"number"==typeof __e&&(__e=h);var p,c,f=l.exports,_={},d=function(t){return"object"==typeof t?null!==t:"function"==typeof t},y=d,g=function(t){if(!y(t))throw TypeError(t+" is not an object!");return t};function v(){if(c)return p;c=1;var t=d,e=r.document,i=t(e)&&t(e.createElement);return p=function(t){return i?e.createElement(t):{}}}var m=!u&&!a((function(){return 7!=Object.defineProperty(v()("div"),"a",{get:function(){return 7}}).a})),b=d,w=function(t,e){if(!b(t))return t;var i,n;if(e&&"function"==typeof(i=t.toString)&&!b(n=i.call(t)))return n;if("function"==typeof(i=t.valueOf)&&!b(n=i.call(t)))return n;if(!e&&"function"==typeof(i=t.toString)&&!b(n=i.call(t)))return n;throw TypeError("Can't convert object to primitive value")},x=g,S=m,P=w,V=Object.defineProperty;_.f=u?Object.defineProperty:function(t,e,i){if(x(t),e=P(e,!0),x(i),S)try{return V(t,e,i)}catch(t){}if("get"in i||"set"in i)throw TypeError("Accessors not supported!");return"value"in i&&(t[e]=i.value),t};var k,A,C=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}};function E(){if(A)return k;A=1;var t=_,e=C;return k=u?function(i,n,r){return t.f(i,n,e(1,r))}:function(t,e,i){return t[e]=i,t},k}var L={exports:{}},N=0,M=Math.random(),T=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++N+M).toString(36))},O={exports:{}},R=f,B=r,D="__core-js_shared__",F=B[D]||(B[D]={});(O.exports=function(t,e){return F[t]||(F[t]=void 0!==e?e:{})})("versions",[]).push({version:R.version,mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"});var I=O.exports,j=I("native-function-to-string",Function.toString),z=r,$=E(),H=s,G=T("src"),W=j,Y="toString",X=(""+W).split(Y);f.inspectSource=function(t){return W.call(t)},(L.exports=function(t,e,i,n){var r="function"==typeof i;r&&(H(i,"name")||$(i,"name",e)),t[e]!==i&&(r&&(H(i,G)||$(i,G,t[e]?""+t[e]:X.join(String(e)))),t===z?t[e]=i:n?t[e]?t[e]=i:$(t,e,i):(delete t[e],$(t,e,i)))})(Function.prototype,Y,(function(){return"function"==typeof this&&this[G]||W.call(this)}));var U=L.exports,q=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t},Z=q,K=function(t,e,i){if(Z(t),void 0===e)return t;switch(i){case 1:return function(i){return t.call(e,i)};case 2:return function(i,n){return t.call(e,i,n)};case 3:return function(i,n,r){return t.call(e,i,n,r)}}return function(){return t.apply(e,arguments)}},J=r,Q=f,tt=E(),et=U,it=K,nt="prototype",rt=function(t,e,i){var n,r,o,s,a=t&rt.F,u=t&rt.G,l=t&rt.S,h=t&rt.P,p=t&rt.B,c=u?J:l?J[e]||(J[e]={}):(J[e]||{})[nt],f=u?Q:Q[e]||(Q[e]={}),_=f[nt]||(f[nt]={});for(n in u&&(i=e),i)o=((r=!a&&c&&void 0!==c[n])?c:i)[n],s=p&&r?it(o,J):h&&"function"==typeof o?it(Function.call,o):o,c&&et(c,n,o,t&rt.U),f[n]!=o&&tt(f,n,s),h&&_[n]!=o&&(_[n]=o)};J.core=Q,rt.F=1,rt.G=2,rt.S=4,rt.P=8,rt.B=16,rt.W=32,rt.U=64,rt.R=128;var ot=rt,st={exports:{}},at=T("meta"),ut=d,lt=s,ht=_.f,pt=0,ct=Object.isExtensible||function(){return!0},ft=!a((function(){return ct(Object.preventExtensions({}))})),_t=function(t){ht(t,at,{value:{i:"O"+ ++pt,w:{}}})},dt=st.exports={KEY:at,NEED:!1,fastKey:function(t,e){if(!ut(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!lt(t,at)){if(!ct(t))return"F";if(!e)return"E";_t(t)}return t[at].i},getWeak:function(t,e){if(!lt(t,at)){if(!ct(t))return!0;if(!e)return!1;_t(t)}return t[at].w},onFreeze:function(t){return ft&&dt.NEED&&ct(t)&&!lt(t,at)&&_t(t),t}},yt=st.exports,gt={exports:{}},vt=I("wks"),mt=T,bt=r.Symbol,wt="function"==typeof bt;(gt.exports=function(t){return vt[t]||(vt[t]=wt&&bt[t]||(wt?bt:mt)("Symbol."+t))}).store=vt;var xt=gt.exports,St=_.f,Pt=s,Vt=xt("toStringTag"),kt=function(t,e,i){t&&!Pt(t=i?t:t.prototype,Vt)&&St(t,Vt,{configurable:!0,value:e})},At={};At.f=xt;var Ct,Et,Lt=r,Nt=f,Mt=At,Tt=_.f,Ot=function(t){var e=Nt.Symbol||(Nt.Symbol=Lt.Symbol||{});"_"==t.charAt(0)||t in e||Tt(e,t,{value:Mt.f(t)})},Rt={}.toString,Bt=function(t){return Rt.call(t).slice(8,-1)};function Dt(){if(Et)return Ct;Et=1;var t=Bt;return Ct=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==t(e)?e.split(""):Object(e)}}var Ft=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},It=Dt(),jt=Ft,zt=function(t){return It(jt(t))},$t=Math.ceil,Ht=Math.floor,Gt=function(t){return isNaN(t=+t)?0:(t>0?Ht:$t)(t)},Wt=Gt,Yt=Math.min,Xt=function(t){return t>0?Yt(Wt(t),9007199254740991):0},Ut=Gt,qt=Math.max,Zt=Math.min,Kt=function(t,e){return(t=Ut(t))<0?qt(t+e,0):Zt(t,e)},Jt=zt,Qt=Xt,te=Kt,ee=function(t){return function(e,i,n){var r,o=Jt(e),s=Qt(o.length),a=te(n,s);if(t&&i!=i){for(;s>a;)if((r=o[a++])!=r)return!0}else for(;s>a;a++)if((t||a in o)&&o[a]===i)return t||a||0;return!t&&-1}},ie=I("keys"),ne=T,re=function(t){return ie[t]||(ie[t]=ne(t))},oe=s,se=zt,ae=ee(!1),ue=re("IE_PROTO"),le=function(t,e){var i,n=se(t),r=0,o=[];for(i in n)i!=ue&&oe(n,i)&&o.push(i);for(;e.length>r;)oe(n,i=e[r++])&&(~ae(o,i)||o.push(i));return o},he="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),pe=le,ce=he,fe=Object.keys||function(t){return pe(t,ce)},_e={};_e.f=Object.getOwnPropertySymbols;var de,ye={};function ge(){return de||(de=1,ye.f={}.propertyIsEnumerable),ye}var ve,me,be=fe,we=_e,xe=ge(),Se=Bt,Pe=Array.isArray||function(t){return"Array"==Se(t)},Ve=Ft,ke=function(t){return Object(Ve(t))};function Ae(){if(me)return ve;me=1;var t=_,e=g,i=fe;return ve=u?Object.defineProperties:function(n,r){e(n);for(var o,s=i(r),a=s.length,u=0;a>u;)t.f(n,o=s[u++],r[o]);return n},ve}var Ce=r.document,Ee=Ce&&Ce.documentElement,Le=g,Ne=Ae(),Me=he,Te=re("IE_PROTO"),Oe=function(){},Re="prototype",Be=function(){var t,e=v()("iframe"),i=Me.length;for(e.style.display="none",Ee.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),Be=t.F;i--;)delete Be[Re][Me[i]];return Be()},De=Object.create||function(t,e){var i;return null!==t?(Oe[Re]=Le(t),i=new Oe,Oe[Re]=null,i[Te]=t):i=Be(),void 0===e?i:Ne(i,e)},Fe={},Ie={},je=le,ze=he.concat("length","prototype");Ie.f=Object.getOwnPropertyNames||function(t){return je(t,ze)};var $e=zt,He=Ie.f,Ge={}.toString,We="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];Fe.f=function(t){return We&&"[object Window]"==Ge.call(t)?function(t){try{return He(t)}catch(t){return We.slice()}}(t):He($e(t))};var Ye={},Xe=ge(),Ue=C,qe=zt,Ze=w,Ke=s,Je=m,Qe=Object.getOwnPropertyDescriptor;Ye.f=u?Qe:function(t,e){if(t=qe(t),e=Ze(e,!0),Je)try{return Qe(t,e)}catch(t){}if(Ke(t,e))return Ue(!Xe.f.call(t,e),t[e])};var ti=r,ei=s,ii=u,ni=ot,ri=U,oi=yt.KEY,si=a,ai=I,ui=kt,li=T,hi=xt,pi=At,ci=Ot,fi=function(t){var e=be(t),i=we.f;if(i)for(var n,r=i(t),o=xe.f,s=0;r.length>s;)o.call(t,n=r[s++])&&e.push(n);return e},_i=Pe,di=g,yi=d,gi=ke,vi=zt,mi=w,bi=C,wi=De,xi=Fe,Si=Ye,Pi=_e,Vi=_,ki=fe,Ai=Si.f,Ci=Vi.f,Ei=xi.f,Li=ti.Symbol,Ni=ti.JSON,Mi=Ni&&Ni.stringify,Ti="prototype",Oi=hi("_hidden"),Ri=hi("toPrimitive"),Bi={}.propertyIsEnumerable,Di=ai("symbol-registry"),Fi=ai("symbols"),Ii=ai("op-symbols"),ji=Object[Ti],zi="function"==typeof Li&&!!Pi.f,$i=ti.QObject,Hi=!$i||!$i[Ti]||!$i[Ti].findChild,Gi=ii&&si((function(){return 7!=wi(Ci({},"a",{get:function(){return Ci(this,"a",{value:7}).a}})).a}))?function(t,e,i){var n=Ai(ji,e);n&&delete ji[e],Ci(t,e,i),n&&t!==ji&&Ci(ji,e,n)}:Ci,Wi=function(t){var e=Fi[t]=wi(Li[Ti]);return e._k=t,e},Yi=zi&&"symbol"==typeof Li.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof Li},Xi=function(t,e,i){return t===ji&&Xi(Ii,e,i),di(t),e=mi(e,!0),di(i),ei(Fi,e)?(i.enumerable?(ei(t,Oi)&&t[Oi][e]&&(t[Oi][e]=!1),i=wi(i,{enumerable:bi(0,!1)})):(ei(t,Oi)||Ci(t,Oi,bi(1,{})),t[Oi][e]=!0),Gi(t,e,i)):Ci(t,e,i)},Ui=function(t,e){di(t);for(var i,n=fi(e=vi(e)),r=0,o=n.length;o>r;)Xi(t,i=n[r++],e[i]);return t},qi=function(t){var e=Bi.call(this,t=mi(t,!0));return!(this===ji&&ei(Fi,t)&&!ei(Ii,t))&&(!(e||!ei(this,t)||!ei(Fi,t)||ei(this,Oi)&&this[Oi][t])||e)},Zi=function(t,e){if(t=vi(t),e=mi(e,!0),t!==ji||!ei(Fi,e)||ei(Ii,e)){var i=Ai(t,e);return!i||!ei(Fi,e)||ei(t,Oi)&&t[Oi][e]||(i.enumerable=!0),i}},Ki=function(t){for(var e,i=Ei(vi(t)),n=[],r=0;i.length>r;)ei(Fi,e=i[r++])||e==Oi||e==oi||n.push(e);return n},Ji=function(t){for(var e,i=t===ji,n=Ei(i?Ii:vi(t)),r=[],o=0;n.length>o;)!ei(Fi,e=n[o++])||i&&!ei(ji,e)||r.push(Fi[e]);return r};zi||(Li=function(){if(this instanceof Li)throw TypeError("Symbol is not a constructor!");var t=li(arguments.length>0?arguments[0]:void 0),e=function(i){this===ji&&e.call(Ii,i),ei(this,Oi)&&ei(this[Oi],t)&&(this[Oi][t]=!1),Gi(this,t,bi(1,i))};return ii&&Hi&&Gi(ji,t,{configurable:!0,set:e}),Wi(t)},ri(Li[Ti],"toString",(function(){return this._k})),Si.f=Zi,Vi.f=Xi,Ie.f=xi.f=Ki,ge().f=qi,Pi.f=Ji,ii&&ri(ji,"propertyIsEnumerable",qi,!0),pi.f=function(t){return Wi(hi(t))}),ni(ni.G+ni.W+ni.F*!zi,{Symbol:Li});for(var Qi="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),tn=0;Qi.length>tn;)hi(Qi[tn++]);for(var en=ki(hi.store),nn=0;en.length>nn;)ci(en[nn++]);ni(ni.S+ni.F*!zi,"Symbol",{for:function(t){return ei(Di,t+="")?Di[t]:Di[t]=Li(t)},keyFor:function(t){if(!Yi(t))throw TypeError(t+" is not a symbol!");for(var e in Di)if(Di[e]===t)return e},useSetter:function(){Hi=!0},useSimple:function(){Hi=!1}}),ni(ni.S+ni.F*!zi,"Object",{create:function(t,e){return void 0===e?wi(t):Ui(wi(t),e)},defineProperty:Xi,defineProperties:Ui,getOwnPropertyDescriptor:Zi,getOwnPropertyNames:Ki,getOwnPropertySymbols:Ji});var rn=si((function(){Pi.f(1)}));ni(ni.S+ni.F*rn,"Object",{getOwnPropertySymbols:function(t){return Pi.f(gi(t))}}),Ni&&ni(ni.S+ni.F*(!zi||si((function(){var t=Li();return"[null]"!=Mi([t])||"{}"!=Mi({a:t})||"{}"!=Mi(Object(t))}))),"JSON",{stringify:function(t){for(var e,i,n=[t],r=1;arguments.length>r;)n.push(arguments[r++]);if(i=e=n[1],(yi(e)||void 0!==t)&&!Yi(t))return _i(e)||(e=function(t,e){if("function"==typeof i&&(e=i.call(this,t,e)),!Yi(e))return e}),n[1]=e,Mi.apply(Ni,n)}}),Li[Ti][Ri]||E()(Li[Ti],Ri,Li[Ti].valueOf),ui(Li,"Symbol"),ui(Math,"Math",!0),ui(ti.JSON,"JSON",!0);ot(ot.S,"Object",{create:De});var on=ot;on(on.S+on.F*!u,"Object",{defineProperty:_.f});var sn=ot;sn(sn.S+sn.F*!u,"Object",{defineProperties:Ae()});var an=ot,un=f,ln=a,hn=function(t,e){var i=(un.Object||{})[t]||Object[t],n={};n[t]=e(i),an(an.S+an.F*ln((function(){i(1)})),"Object",n)},pn=zt,cn=Ye.f;hn("getOwnPropertyDescriptor",(function(){return function(t,e){return cn(pn(t),e)}}));var fn=s,_n=ke,dn=re("IE_PROTO"),yn=Object.prototype,gn=Object.getPrototypeOf||function(t){return t=_n(t),fn(t,dn)?t[dn]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?yn:null},vn=ke,mn=gn;hn("getPrototypeOf",(function(){return function(t){return mn(vn(t))}}));var bn=ke,wn=fe;hn("keys",(function(){return function(t){return wn(bn(t))}})),hn("getOwnPropertyNames",(function(){return Fe.f}));var xn=d,Sn=yt.onFreeze;hn("freeze",(function(t){return function(e){return t&&xn(e)?t(Sn(e)):e}}));var Pn=d,Vn=yt.onFreeze;hn("seal",(function(t){return function(e){return t&&Pn(e)?t(Vn(e)):e}}));var kn=d,An=yt.onFreeze;hn("preventExtensions",(function(t){return function(e){return t&&kn(e)?t(An(e)):e}}));var Cn=d;hn("isFrozen",(function(t){return function(e){return!Cn(e)||!!t&&t(e)}}));var En=d;hn("isSealed",(function(t){return function(e){return!En(e)||!!t&&t(e)}}));var Ln=d;hn("isExtensible",(function(t){return function(e){return!!Ln(e)&&(!t||t(e))}}));var Nn=u,Mn=fe,Tn=_e,On=ge(),Rn=ke,Bn=Dt(),Dn=Object.assign,Fn=!Dn||a((function(){var t={},e={},i=Symbol(),n="abcdefghijklmnopqrst";return t[i]=7,n.split("").forEach((function(t){e[t]=t})),7!=Dn({},t)[i]||Object.keys(Dn({},e)).join("")!=n}))?function(t,e){for(var i=Rn(t),n=arguments.length,r=1,o=Tn.f,s=On.f;n>r;)for(var a,u=Bn(arguments[r++]),l=o?Mn(u).concat(o(u)):Mn(u),h=l.length,p=0;h>p;)a=l[p++],Nn&&!s.call(u,a)||(i[a]=u[a]);return i}:Dn,In=ot;In(In.S+In.F,"Object",{assign:Fn});var jn=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e};ot(ot.S,"Object",{is:jn});var zn=d,$n=g,Hn=function(t,e){if($n(t),!zn(e)&&null!==e)throw TypeError(e+": can't set as prototype!")},Gn={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,i){try{(i=K(Function.call,Ye.f(Object.prototype,"__proto__").set,2))(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return Hn(t,n),e?t.__proto__=n:i(t,n),t}}({},!1):void 0),check:Hn};ot(ot.S,"Object",{setPrototypeOf:Gn.set});var Wn=Bt,Yn=xt("toStringTag"),Xn="Arguments"==Wn(function(){return arguments}()),Un=function(t){var e,i,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),Yn))?i:Xn?Wn(e):"Object"==(n=Wn(e))&&"function"==typeof e.callee?"Arguments":n},qn=Un,Zn={};Zn[xt("toStringTag")]="z",Zn+""!="[object z]"&&U(Object.prototype,"toString",(function(){return"[object "+qn(this)+"]"}),!0);var Kn=function(t,e,i){var n=void 0===i;switch(e.length){case 0:return n?t():t.call(i);case 1:return n?t(e[0]):t.call(i,e[0]);case 2:return n?t(e[0],e[1]):t.call(i,e[0],e[1]);case 3:return n?t(e[0],e[1],e[2]):t.call(i,e[0],e[1],e[2]);case 4:return n?t(e[0],e[1],e[2],e[3]):t.call(i,e[0],e[1],e[2],e[3])}return t.apply(i,e)},Jn=q,Qn=d,tr=Kn,er=[].slice,ir={},nr=Function.bind||function(t){var e=Jn(this),i=er.call(arguments,1),n=function(){var r=i.concat(er.call(arguments));return this instanceof n?function(t,e,i){if(!(e in ir)){for(var n=[],r=0;r<e;r++)n[r]="a["+r+"]";ir[e]=Function("F,a","return new F("+n.join(",")+")")}return ir[e](t,i)}(e,r.length,r):tr(e,r,t)};return Qn(e.prototype)&&(n.prototype=e.prototype),n};ot(ot.P,"Function",{bind:nr});var rr=_.f,or=Function.prototype,sr=/^\s*function ([^ (]*)/,ar="name";ar in or||u&&rr(or,ar,{configurable:!0,get:function(){try{return(""+this).match(sr)[1]}catch(t){return""}}});var ur=d,lr=gn,hr=xt("hasInstance"),pr=Function.prototype;hr in pr||_.f(pr,hr,{value:function(t){if("function"!=typeof this||!ur(t))return!1;if(!ur(this.prototype))return t instanceof this;for(;t=lr(t);)if(this.prototype===t)return!0;return!1}});var cr="\t\n\v\f\r \u2028\u2029\ufeff",fr=ot,_r=Ft,dr=a,yr=cr,gr="["+yr+"]",vr=RegExp("^"+gr+gr+"*"),mr=RegExp(gr+gr+"*$"),br=function(t,e,i){var n={},r=dr((function(){return!!yr[t]()||"
"!="
"[t]()})),o=n[t]=r?e(wr):yr[t];i&&(n[i]=o),fr(fr.P+fr.F*r,"String",n)},wr=br.trim=function(t,e){return t=String(_r(t)),1&e&&(t=t.replace(vr,"")),2&e&&(t=t.replace(mr,"")),t},xr=br,Sr=r.parseInt,Pr=xr.trim,Vr=cr,kr=/^[-+]?0[xX]/,Ar=8!==Sr(Vr+"08")||22!==Sr(Vr+"0x16")?function(t,e){var i=Pr(String(t),3);return Sr(i,e>>>0||(kr.test(i)?16:10))}:Sr,Cr=ot,Er=Ar;Cr(Cr.G+Cr.F*(parseInt!=Er),{parseInt:Er});var Lr=r.parseFloat,Nr=xr.trim,Mr=1/Lr(cr+"-0")!=-1/0?function(t){var e=Nr(String(t),3),i=Lr(e);return 0===i&&"-"==e.charAt(0)?-0:i}:Lr,Tr=ot,Or=Mr;Tr(Tr.G+Tr.F*(parseFloat!=Or),{parseFloat:Or});var Rr=d,Br=Gn.set,Dr=function(t,e,i){var n,r=e.constructor;return r!==i&&"function"==typeof r&&(n=r.prototype)!==i.prototype&&Rr(n)&&Br&&Br(t,n),t},Fr=r,Ir=s,jr=Bt,zr=Dr,$r=w,Hr=a,Gr=Ie.f,Wr=Ye.f,Yr=_.f,Xr=xr.trim,Ur="Number",qr=Fr[Ur],Zr=qr,Kr=qr.prototype,Jr=jr(De(Kr))==Ur,Qr="trim"in String.prototype,to=function(t){var e=$r(t,!1);if("string"==typeof e&&e.length>2){var i,n,r,o=(e=Qr?e.trim():Xr(e,3)).charCodeAt(0);if(43===o||45===o){if(88===(i=e.charCodeAt(2))||120===i)return NaN}else if(48===o){switch(e.charCodeAt(1)){case 66:case 98:n=2,r=49;break;case 79:case 111:n=8,r=55;break;default:return+e}for(var s,a=e.slice(2),u=0,l=a.length;u<l;u++)if((s=a.charCodeAt(u))<48||s>r)return NaN;return parseInt(a,n)}}return+e};if(!qr(" 0o1")||!qr("0b1")||qr("+0x1")){qr=function(t){var e=arguments.length<1?0:t,i=this;return i instanceof qr&&(Jr?Hr((function(){Kr.valueOf.call(i)})):jr(i)!=Ur)?zr(new Zr(to(e)),i,qr):to(e)};for(var eo,io=u?Gr(Zr):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),no=0;io.length>no;no++)Ir(Zr,eo=io[no])&&!Ir(qr,eo)&&Yr(qr,eo,Wr(Zr,eo));qr.prototype=Kr,Kr.constructor=qr,U(Fr,Ur,qr)}var ro=Bt,oo=function(t,e){if("number"!=typeof t&&"Number"!=ro(t))throw TypeError(e);return+t},so=Gt,ao=Ft,uo=function(t){var e=String(ao(this)),i="",n=so(t);if(n<0||n==1/0)throw RangeError("Count can't be negative");for(;n>0;(n>>>=1)&&(e+=e))1&n&&(i+=e);return i},lo=ot,ho=Gt,po=oo,co=uo,fo=1..toFixed,_o=Math.floor,yo=[0,0,0,0,0,0],go="Number.toFixed: incorrect invocation!",vo="0",mo=function(t,e){for(var i=-1,n=e;++i<6;)n+=t*yo[i],yo[i]=n%1e7,n=_o(n/1e7)},bo=function(t){for(var e=6,i=0;--e>=0;)i+=yo[e],yo[e]=_o(i/t),i=i%t*1e7},wo=function(){for(var t=6,e="";--t>=0;)if(""!==e||0===t||0!==yo[t]){var i=String(yo[t]);e=""===e?i:e+co.call(vo,7-i.length)+i}return e},xo=function(t,e,i){return 0===e?i:e%2==1?xo(t,e-1,i*t):xo(t*t,e/2,i)};lo(lo.P+lo.F*(!!fo&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!a((function(){fo.call({})}))),"Number",{toFixed:function(t){var e,i,n,r,o=po(this,go),s=ho(t),a="",u=vo;if(s<0||s>20)throw RangeError(go);if(o!=o)return"NaN";if(o<=-1e21||o>=1e21)return String(o);if(o<0&&(a="-",o=-o),o>1e-21)if(e=function(t){for(var e=0,i=t;i>=4096;)e+=12,i/=4096;for(;i>=2;)e+=1,i/=2;return e}(o*xo(2,69,1))-69,i=e<0?o*xo(2,-e,1):o/xo(2,e,1),i*=4503599627370496,(e=52-e)>0){for(mo(0,i),n=s;n>=7;)mo(1e7,0),n-=7;for(mo(xo(10,n,1),0),n=e-1;n>=23;)bo(1<<23),n-=23;bo(1<<n),mo(1,1),bo(2),u=wo()}else mo(0,i),mo(1<<-e,0),u=wo()+co.call(vo,s);return u=s>0?a+((r=u.length)<=s?"0."+co.call(vo,s-r)+u:u.slice(0,r-s)+"."+u.slice(r-s)):a+u}});var So=ot,Po=a,Vo=oo,ko=1..toPrecision;So(So.P+So.F*(Po((function(){return"1"!==ko.call(1,void 0)}))||!Po((function(){ko.call({})}))),"Number",{toPrecision:function(t){var e=Vo(this,"Number#toPrecision: incorrect invocation!");return void 0===t?ko.call(e):ko.call(e,t)}});ot(ot.S,"Number",{EPSILON:Math.pow(2,-52)});var Ao=ot,Co=r.isFinite;Ao(Ao.S,"Number",{isFinite:function(t){return"number"==typeof t&&Co(t)}});var Eo=d,Lo=Math.floor,No=function(t){return!Eo(t)&&isFinite(t)&&Lo(t)===t};ot(ot.S,"Number",{isInteger:No});ot(ot.S,"Number",{isNaN:function(t){return t!=t}});var Mo=ot,To=No,Oo=Math.abs;Mo(Mo.S,"Number",{isSafeInteger:function(t){return To(t)&&Oo(t)<=9007199254740991}});ot(ot.S,"Number",{MAX_SAFE_INTEGER:9007199254740991});ot(ot.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991});var Ro=ot,Bo=Mr;Ro(Ro.S+Ro.F*(Number.parseFloat!=Bo),"Number",{parseFloat:Bo});var Do=ot,Fo=Ar;Do(Do.S+Do.F*(Number.parseInt!=Fo),"Number",{parseInt:Fo});var Io=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:Math.log(1+t)},jo=ot,zo=Io,$o=Math.sqrt,Ho=Math.acosh;jo(jo.S+jo.F*!(Ho&&710==Math.floor(Ho(Number.MAX_VALUE))&&Ho(1/0)==1/0),"Math",{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?Math.log(t)+Math.LN2:zo(t-1+$o(t-1)*$o(t+1))}});var Go=ot,Wo=Math.asinh;Go(Go.S+Go.F*!(Wo&&1/Wo(0)>0),"Math",{asinh:function t(e){return isFinite(e=+e)&&0!=e?e<0?-t(-e):Math.log(e+Math.sqrt(e*e+1)):e}});var Yo=ot,Xo=Math.atanh;Yo(Yo.S+Yo.F*!(Xo&&1/Xo(-0)<0),"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}});var Uo=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1},qo=Uo;ot(ot.S,"Math",{cbrt:function(t){return qo(t=+t)*Math.pow(Math.abs(t),1/3)}});ot(ot.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}});var Zo=ot,Ko=Math.exp;Zo(Zo.S,"Math",{cosh:function(t){return(Ko(t=+t)+Ko(-t))/2}});var Jo,Qo,ts=Math.expm1,es=!ts||ts(10)>22025.465794806718||ts(10)<22025.465794806718||-2e-17!=ts(-2e-17)?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:Math.exp(t)-1}:ts,is=ot,ns=es;function rs(){if(Qo)return Jo;Qo=1;var t=Uo,e=Math.pow,i=e(2,-52),n=e(2,-23),r=e(2,127)*(2-n),o=e(2,-126);return Jo=Math.fround||function(e){var s,a,u=Math.abs(e),l=t(e);return u<o?l*(u/o/n+1/i-1/i)*o*n:(a=(s=(1+n/i)*u)-(s-u))>r||a!=a?l*(1/0):l*a}}is(is.S+is.F*(ns!=Math.expm1),"Math",{expm1:ns});ot(ot.S,"Math",{fround:rs()});var os=ot,ss=Math.abs;os(os.S,"Math",{hypot:function(t,e){for(var i,n,r=0,o=0,s=arguments.length,a=0;o<s;)a<(i=ss(arguments[o++]))?(r=r*(n=a/i)*n+1,a=i):r+=i>0?(n=i/a)*n:i;return a===1/0?1/0:a*Math.sqrt(r)}});var as=ot,us=Math.imul;as(as.S+as.F*a((function(){return-5!=us(4294967295,5)||2!=us.length})),"Math",{imul:function(t,e){var i=65535,n=+t,r=+e,o=i&n,s=i&r;return 0|o*s+((i&n>>>16)*s+o*(i&r>>>16)<<16>>>0)}});ot(ot.S,"Math",{log10:function(t){return Math.log(t)*Math.LOG10E}});ot(ot.S,"Math",{log1p:Io});ot(ot.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}});ot(ot.S,"Math",{sign:Uo});var ls=ot,hs=es,ps=Math.exp;ls(ls.S+ls.F*a((function(){return-2e-17!=!Math.sinh(-2e-17)})),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(hs(t)-hs(-t))/2:(ps(t-1)-ps(-t-1))*(Math.E/2)}});var cs=ot,fs=es,_s=Math.exp;cs(cs.S,"Math",{tanh:function(t){var e=fs(t=+t),i=fs(-t);return e==1/0?1:i==1/0?-1:(e-i)/(_s(t)+_s(-t))}});ot(ot.S,"Math",{trunc:function(t){return(t>0?Math.floor:Math.ceil)(t)}});var ds=ot,ys=Kt,gs=String.fromCharCode,vs=String.fromCodePoint;ds(ds.S+ds.F*(!!vs&&1!=vs.length),"String",{fromCodePoint:function(t){for(var e,i=[],n=arguments.length,r=0;n>r;){if(e=+arguments[r++],ys(e,1114111)!==e)throw RangeError(e+" is not a valid code point");i.push(e<65536?gs(e):gs(55296+((e-=65536)>>10),e%1024+56320))}return i.join("")}});var ms=zt,bs=Xt;ot(ot.S,"String",{raw:function(t){for(var e=ms(t.raw),i=bs(e.length),n=arguments.length,r=[],o=0;i>o;)r.push(String(e[o++])),o<n&&r.push(String(arguments[o]));return r.join("")}}),xr("trim",(function(t){return function(){return t(this,3)}}));var ws=Gt,xs=Ft,Ss=function(t){return function(e,i){var n,r,o=String(xs(e)),s=ws(i),a=o.length;return s<0||s>=a?t?"":void 0:(n=o.charCodeAt(s))<55296||n>56319||s+1===a||(r=o.charCodeAt(s+1))<56320||r>57343?t?o.charAt(s):n:t?o.slice(s,s+2):r-56320+(n-55296<<10)+65536}},Ps={},Vs=De,ks=C,As=kt,Cs={};E()(Cs,xt("iterator"),(function(){return this}));var Es=function(t,e,i){t.prototype=Vs(Cs,{next:ks(1,i)}),As(t,e+" Iterator")},Ls=ot,Ns=U,Ms=E(),Ts=Ps,Os=Es,Rs=kt,Bs=gn,Ds=xt("iterator"),Fs=!([].keys&&"next"in[].keys()),Is="keys",js="values",zs=function(){return this},$s=function(t,e,i,n,r,o,s){Os(i,e,n);var a,u,l,h=function(t){if(!Fs&&t in _)return _[t];switch(t){case Is:case js:return function(){return new i(this,t)}}return function(){return new i(this,t)}},p=e+" Iterator",c=r==js,f=!1,_=t.prototype,d=_[Ds]||_["@@iterator"]||r&&_[r],y=d||h(r),g=r?c?h("entries"):y:void 0,v="Array"==e&&_.entries||d;if(v&&(l=Bs(v.call(new t)))!==Object.prototype&&l.next&&(Rs(l,p,!0),"function"!=typeof l[Ds]&&Ms(l,Ds,zs)),c&&d&&d.name!==js&&(f=!0,y=function(){return d.call(this)}),(Fs||f||!_[Ds])&&Ms(_,Ds,y),Ts[e]=y,Ts[p]=zs,r)if(a={values:c?y:h(js),keys:o?y:h(Is),entries:g},s)for(u in a)u in _||Ns(_,u,a[u]);else Ls(Ls.P+Ls.F*(Fs||f),e,a);return a},Hs=Ss(!0);$s(String,"String",(function(t){this._t=String(t),this._i=0}),(function(){var t,e=this._t,i=this._i;return i>=e.length?{value:void 0,done:!0}:(t=Hs(e,i),this._i+=t.length,{value:t,done:!1})}));var Gs=ot,Ws=Ss(!1);Gs(Gs.P,"String",{codePointAt:function(t){return Ws(this,t)}});var Ys,Xs,Us=d,qs=Bt,Zs=xt("match"),Ks=function(t){var e;return Us(t)&&(void 0!==(e=t[Zs])?!!e:"RegExp"==qs(t))},Js=Ks,Qs=Ft,ta=function(t,e,i){if(Js(e))throw TypeError("String#"+i+" doesn't accept regex!");return String(Qs(t))};function ea(){if(Xs)return Ys;Xs=1;var t=xt("match");return Ys=function(e){var i=/./;try{"/./"[e](i)}catch(n){try{return i[t]=!1,!"/./"[e](i)}catch(t){}}return!0},Ys}var ia=ot,na=Xt,ra=ta,oa="endsWith",sa=""[oa];ia(ia.P+ia.F*ea()(oa),"String",{endsWith:function(t){var e=ra(this,t,oa),i=arguments.length>1?arguments[1]:void 0,n=na(e.length),r=void 0===i?n:Math.min(na(i),n),o=String(t);return sa?sa.call(e,o,r):e.slice(r-o.length,r)===o}});var aa=ot,ua=ta,la="includes";aa(aa.P+aa.F*ea()(la),"String",{includes:function(t){return!!~ua(this,t,la).indexOf(t,arguments.length>1?arguments[1]:void 0)}});ot(ot.P,"String",{repeat:uo});var ha=ot,pa=Xt,ca=ta,fa="startsWith",_a=""[fa];ha(ha.P+ha.F*ea()(fa),"String",{startsWith:function(t){var e=ca(this,t,fa),i=pa(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),n=String(t);return _a?_a.call(e,n,i):e.slice(i,i+n.length)===n}});var da=ot,ya=a,ga=Ft,va=/"/g,ma=function(t,e,i,n){var r=String(ga(t)),o="<"+e;return""!==i&&(o+=" "+i+'="'+String(n).replace(va,""")+'"'),o+">"+r+"</"+e+">"},ba=function(t,e){var i={};i[t]=e(ma),da(da.P+da.F*ya((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3})),"String",i)};ba("anchor",(function(t){return function(e){return t(this,"a","name",e)}})),ba("big",(function(t){return function(){return t(this,"big","","")}})),ba("blink",(function(t){return function(){return t(this,"blink","","")}})),ba("bold",(function(t){return function(){return t(this,"b","","")}})),ba("fixed",(function(t){return function(){return t(this,"tt","","")}})),ba("fontcolor",(function(t){return function(e){return t(this,"font","color",e)}})),ba("fontsize",(function(t){return function(e){return t(this,"font","size",e)}})),ba("italics",(function(t){return function(){return t(this,"i","","")}})),ba("link",(function(t){return function(e){return t(this,"a","href",e)}})),ba("small",(function(t){return function(){return t(this,"small","","")}})),ba("strike",(function(t){return function(){return t(this,"strike","","")}})),ba("sub",(function(t){return function(){return t(this,"sub","","")}})),ba("sup",(function(t){return function(){return t(this,"sup","","")}}));ot(ot.S,"Date",{now:function(){return(new Date).getTime()}});var wa=ot,xa=ke,Sa=w;wa(wa.P+wa.F*a((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})})),"Date",{toJSON:function(t){var e=xa(this),i=Sa(e);return"number"!=typeof i||isFinite(i)?e.toISOString():null}});var Pa=a,Va=Date.prototype.getTime,ka=Date.prototype.toISOString,Aa=function(t){return t>9?t:"0"+t},Ca=ot,Ea=Pa((function(){return"0385-07-25T07:06:39.999Z"!=ka.call(new Date(-50000000000001))}))||!Pa((function(){ka.call(new Date(NaN))}))?function(){if(!isFinite(Va.call(this)))throw RangeError("Invalid time value");var t=this,e=t.getUTCFullYear(),i=t.getUTCMilliseconds(),n=e<0?"-":e>9999?"+":"";return n+("00000"+Math.abs(e)).slice(n?-6:-4)+"-"+Aa(t.getUTCMonth()+1)+"-"+Aa(t.getUTCDate())+"T"+Aa(t.getUTCHours())+":"+Aa(t.getUTCMinutes())+":"+Aa(t.getUTCSeconds())+"."+(i>99?i:"0"+Aa(i))+"Z"}:ka;Ca(Ca.P+Ca.F*(Date.prototype.toISOString!==Ea),"Date",{toISOString:Ea});var La,Na,Ma=Date.prototype,Ta="Invalid Date",Oa="toString",Ra=Ma[Oa],Ba=Ma.getTime;new Date(NaN)+""!=Ta&&U(Ma,Oa,(function(){var t=Ba.call(this);return t==t?Ra.call(this):Ta}));var Da=xt("toPrimitive"),Fa=Date.prototype;Da in Fa||E()(Fa,Da,function(){if(Na)return La;Na=1;var t=g,e=w,i="number";return La=function(n){if("string"!==n&&n!==i&&"default"!==n)throw TypeError("Incorrect hint");return e(t(this),n!=i)}}());ot(ot.S,"Array",{isArray:Pe});var Ia,ja,za=g,$a=function(t,e,i,n){try{return n?e(za(i)[0],i[1]):e(i)}catch(e){var r=t.return;throw void 0!==r&&za(r.call(t)),e}},Ha=Ps,Ga=xt("iterator"),Wa=Array.prototype,Ya=function(t){return void 0!==t&&(Ha.Array===t||Wa[Ga]===t)},Xa=_,Ua=C,qa=function(t,e,i){e in t?Xa.f(t,e,Ua(0,i)):t[e]=i},Za=Un,Ka=xt("iterator"),Ja=Ps,Qa=f.getIteratorMethod=function(t){if(null!=t)return t[Ka]||t["@@iterator"]||Ja[Za(t)]};function tu(){if(ja)return Ia;ja=1;var t=xt("iterator"),e=!1;try{var i=[7][t]();i.return=function(){e=!0},Array.from(i,(function(){throw 2}))}catch(t){}return Ia=function(i,n){if(!n&&!e)return!1;var r=!1;try{var o=[7],s=o[t]();s.next=function(){return{done:r=!0}},o[t]=function(){return s},i(o)}catch(t){}return r}}var eu=K,iu=ot,nu=ke,ru=$a,ou=Ya,su=Xt,au=qa,uu=Qa;iu(iu.S+iu.F*!tu()((function(t){Array.from(t)})),"Array",{from:function(t){var e,i,n,r,o=nu(t),s="function"==typeof this?this:Array,a=arguments.length,u=a>1?arguments[1]:void 0,l=void 0!==u,h=0,p=uu(o);if(l&&(u=eu(u,a>2?arguments[2]:void 0,2)),null==p||s==Array&&ou(p))for(i=new s(e=su(o.length));e>h;h++)au(i,h,l?u(o[h],h):o[h]);else for(r=p.call(o),i=new s;!(n=r.next()).done;h++)au(i,h,l?ru(r,u,[n.value,h],!0):n.value);return i.length=h,i}});var lu=ot,hu=qa;lu(lu.S+lu.F*a((function(){function t(){}return!(Array.of.call(t)instanceof t)})),"Array",{of:function(){for(var t=0,e=arguments.length,i=new("function"==typeof this?this:Array)(e);e>t;)hu(i,t,arguments[t++]);return i.length=e,i}});var pu=a,cu=function(t,e){return!!t&&pu((function(){e?t.call(null,(function(){}),1):t.call(null)}))},fu=ot,_u=zt,du=[].join;fu(fu.P+fu.F*(Dt()!=Object||!cu(du)),"Array",{join:function(t){return du.call(_u(this),void 0===t?",":t)}});var yu=ot,gu=Ee,vu=Bt,mu=Kt,bu=Xt,wu=[].slice;yu(yu.P+yu.F*a((function(){gu&&wu.call(gu)})),"Array",{slice:function(t,e){var i=bu(this.length),n=vu(this);if(e=void 0===e?i:e,"Array"==n)return wu.call(this,t,e);for(var r=mu(t,i),o=mu(e,i),s=bu(o-r),a=new Array(s),u=0;u<s;u++)a[u]="String"==n?this.charAt(r+u):this[r+u];return a}});var xu=ot,Su=q,Pu=ke,Vu=a,ku=[].sort,Au=[1,2,3];xu(xu.P+xu.F*(Vu((function(){Au.sort(void 0)}))||!Vu((function(){Au.sort(null)}))||!cu(ku)),"Array",{sort:function(t){return void 0===t?ku.call(Pu(this)):ku.call(Pu(this),Su(t))}});var Cu=d,Eu=Pe,Lu=xt("species"),Nu=function(t){var e;return Eu(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!Eu(e.prototype)||(e=void 0),Cu(e)&&null===(e=e[Lu])&&(e=void 0)),void 0===e?Array:e},Mu=function(t,e){return new(Nu(t))(e)},Tu=K,Ou=Dt(),Ru=ke,Bu=Xt,Du=Mu,Fu=function(t,e){var i=1==t,n=2==t,r=3==t,o=4==t,s=6==t,a=5==t||s,u=e||Du;return function(e,l,h){for(var p,c,f=Ru(e),_=Ou(f),d=Tu(l,h,3),y=Bu(_.length),g=0,v=i?u(e,y):n?u(e,0):void 0;y>g;g++)if((a||g in _)&&(c=d(p=_[g],g,f),t))if(i)v[g]=c;else if(c)switch(t){case 3:return!0;case 5:return p;case 6:return g;case 2:v.push(p)}else if(o)return!1;return s?-1:r||o?o:v}},Iu=ot,ju=Fu(0),zu=cu([].forEach,!0);Iu(Iu.P+Iu.F*!zu,"Array",{forEach:function(t){return ju(this,t,arguments[1])}});var $u=ot,Hu=Fu(1);$u($u.P+$u.F*!cu([].map,!0),"Array",{map:function(t){return Hu(this,t,arguments[1])}});var Gu=ot,Wu=Fu(2);Gu(Gu.P+Gu.F*!cu([].filter,!0),"Array",{filter:function(t){return Wu(this,t,arguments[1])}});var Yu=ot,Xu=Fu(3);Yu(Yu.P+Yu.F*!cu([].some,!0),"Array",{some:function(t){return Xu(this,t,arguments[1])}});var Uu=ot,qu=Fu(4);Uu(Uu.P+Uu.F*!cu([].every,!0),"Array",{every:function(t){return qu(this,t,arguments[1])}});var Zu=q,Ku=ke,Ju=Dt(),Qu=Xt,tl=function(t,e,i,n,r){Zu(e);var o=Ku(t),s=Ju(o),a=Qu(o.length),u=r?a-1:0,l=r?-1:1;if(i<2)for(;;){if(u in s){n=s[u],u+=l;break}if(u+=l,r?u<0:a<=u)throw TypeError("Reduce of empty array with no initial value")}for(;r?u>=0:a>u;u+=l)u in s&&(n=e(n,s[u],u,o));return n},el=ot,il=tl;el(el.P+el.F*!cu([].reduce,!0),"Array",{reduce:function(t){return il(this,t,arguments.length,arguments[1],!1)}});var nl=ot,rl=tl;nl(nl.P+nl.F*!cu([].reduceRight,!0),"Array",{reduceRight:function(t){return rl(this,t,arguments.length,arguments[1],!0)}});var ol=ot,sl=ee(!1),al=[].indexOf,ul=!!al&&1/[1].indexOf(1,-0)<0;ol(ol.P+ol.F*(ul||!cu(al)),"Array",{indexOf:function(t){return ul?al.apply(this,arguments)||0:sl(this,t,arguments[1])}});var ll,hl,pl=ot,cl=zt,fl=Gt,_l=Xt,dl=[].lastIndexOf,yl=!!dl&&1/[1].lastIndexOf(1,-0)<0;function gl(){if(hl)return ll;hl=1;var t=ke,e=Kt,i=Xt;return ll=[].copyWithin||function(n,r){var o=t(this),s=i(o.length),a=e(n,s),u=e(r,s),l=arguments.length>2?arguments[2]:void 0,h=Math.min((void 0===l?s:e(l,s))-u,s-a),p=1;for(u<a&&a<u+h&&(p=-1,u+=h-1,a+=h-1);h-- >0;)u in o?o[a]=o[u]:delete o[a],a+=p,u+=p;return o},ll}pl(pl.P+pl.F*(yl||!cu(dl)),"Array",{lastIndexOf:function(t){if(yl)return dl.apply(this,arguments)||0;var e=cl(this),i=_l(e.length),n=i-1;for(arguments.length>1&&(n=Math.min(n,fl(arguments[1]))),n<0&&(n=i+n);n>=0;n--)if(n in e&&e[n]===t)return n||0;return-1}});var vl=xt("unscopables"),ml=Array.prototype;null==ml[vl]&&E()(ml,vl,{});var bl,wl,xl=function(t){ml[vl][t]=!0};function Sl(){if(wl)return bl;wl=1;var t=ke,e=Kt,i=Xt;return bl=function(n){for(var r=t(this),o=i(r.length),s=arguments.length,a=e(s>1?arguments[1]:void 0,o),u=s>2?arguments[2]:void 0,l=void 0===u?o:e(u,o);l>a;)r[a++]=n;return r},bl}ot(ot.P,"Array",{copyWithin:gl()}),xl("copyWithin");ot(ot.P,"Array",{fill:Sl()}),xl("fill");var Pl=ot,Vl=Fu(5),kl="find",Al=!0;kl in[]&&Array(1)[kl]((function(){Al=!1})),Pl(Pl.P+Pl.F*Al,"Array",{find:function(t){return Vl(this,t,arguments.length>1?arguments[1]:void 0)}}),xl(kl);var Cl=ot,El=Fu(6),Ll="findIndex",Nl=!0;Ll in[]&&Array(1)[Ll]((function(){Nl=!1})),Cl(Cl.P+Cl.F*Nl,"Array",{findIndex:function(t){return El(this,t,arguments.length>1?arguments[1]:void 0)}}),xl(Ll);var Ml=r,Tl=_,Ol=u,Rl=xt("species"),Bl=function(t){var e=Ml[t];Ol&&e&&!e[Rl]&&Tl.f(e,Rl,{configurable:!0,get:function(){return this}})};Bl("Array");var Dl=function(t,e){return{value:e,done:!!t}},Fl=xl,Il=Dl,jl=Ps,zl=zt,$l=$s(Array,"Array",(function(t,e){this._t=zl(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,i=this._i++;return!t||i>=t.length?(this._t=void 0,Il(1)):Il(0,"keys"==e?i:"values"==e?t[i]:[i,t[i]])}),"values");jl.Arguments=jl.Array,Fl("keys"),Fl("values"),Fl("entries");var Hl=g,Gl=function(){var t=Hl(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},Wl=r,Yl=Dr,Xl=_.f,Ul=Ie.f,ql=Ks,Zl=Gl,Kl=Wl.RegExp,Jl=Kl,Ql=Kl.prototype,th=/a/g,eh=/a/g,ih=new Kl(th)!==th;if(u&&(!ih||a((function(){return eh[xt("match")]=!1,Kl(th)!=th||Kl(eh)==eh||"/a/i"!=Kl(th,"i")})))){Kl=function(t,e){var i=this instanceof Kl,n=ql(t),r=void 0===e;return!i&&n&&t.constructor===Kl&&r?t:Yl(ih?new Jl(n&&!r?t.source:t,e):Jl((n=t instanceof Kl)?t.source:t,n&&r?Zl.call(t):e),i?this:Ql,Kl)};for(var nh=function(t){t in Kl||Xl(Kl,t,{configurable:!0,get:function(){return Jl[t]},set:function(e){Jl[t]=e}})},rh=Ul(Jl),oh=0;rh.length>oh;)nh(rh[oh++]);Ql.constructor=Kl,Kl.prototype=Ql,U(Wl,"RegExp",Kl)}Bl("RegExp");var sh=Gl,ah=RegExp.prototype.exec,uh=String.prototype.replace,lh=ah,hh="lastIndex",ph=function(){var t=/a/,e=/b*/g;return ah.call(t,"a"),ah.call(e,"a"),0!==t[hh]||0!==e[hh]}(),ch=void 0!==/()??/.exec("")[1];(ph||ch)&&(lh=function(t){var e,i,n,r,o=this;return ch&&(i=new RegExp("^"+o.source+"$(?!\\s)",sh.call(o))),ph&&(e=o[hh]),n=ah.call(o,t),ph&&n&&(o[hh]=o.global?n.index+n[0].length:e),ch&&n&&n.length>1&&uh.call(n[0],i,(function(){for(r=1;r<arguments.length-2;r++)void 0===arguments[r]&&(n[r]=void 0)})),n});var fh=lh;ot({target:"RegExp",proto:!0,forced:fh!==/./.exec},{exec:fh}),u&&"g"!=/./g.flags&&_.f(RegExp.prototype,"flags",{configurable:!0,get:Gl});var _h=g,dh=Gl,yh=u,gh="toString",vh=/./[gh],mh=function(t){U(RegExp.prototype,gh,t,!0)};a((function(){return"/a/b"!=vh.call({source:"a",flags:"b"})}))?mh((function(){var t=_h(this);return"/".concat(t.source,"/","flags"in t?t.flags:!yh&&t instanceof RegExp?dh.call(t):void 0)})):vh.name!=gh&&mh((function(){return vh.call(this)}));var bh=Ss(!0),wh=function(t,e,i){return e+(i?bh(t,e).length:1)},xh=Un,Sh=RegExp.prototype.exec,Ph=function(t,e){var i=t.exec;if("function"==typeof i){var n=i.call(t,e);if("object"!=typeof n)throw new TypeError("RegExp exec method returned something other than an Object or null");return n}if("RegExp"!==xh(t))throw new TypeError("RegExp#exec called on incompatible receiver");return Sh.call(t,e)},Vh=U,kh=E(),Ah=a,Ch=Ft,Eh=xt,Lh=fh,Nh=Eh("species"),Mh=!Ah((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),Th=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var i="ab".split(t);return 2===i.length&&"a"===i[0]&&"b"===i[1]}(),Oh=function(t,e,i){var n=Eh(t),r=!Ah((function(){var e={};return e[n]=function(){return 7},7!=""[t](e)})),o=r?!Ah((function(){var e=!1,i=/a/;return i.exec=function(){return e=!0,null},"split"===t&&(i.constructor={},i.constructor[Nh]=function(){return i}),i[n](""),!e})):void 0;if(!r||!o||"replace"===t&&!Mh||"split"===t&&!Th){var s=/./[n],a=i(Ch,n,""[t],(function(t,e,i,n,o){return e.exec===Lh?r&&!o?{done:!0,value:s.call(e,i,n)}:{done:!0,value:t.call(i,e,n)}:{done:!1}})),u=a[0],l=a[1];Vh(String.prototype,t,u),kh(RegExp.prototype,n,2==e?function(t,e){return l.call(t,this,e)}:function(t){return l.call(t,this)})}},Rh=g,Bh=Xt,Dh=wh,Fh=Ph;Oh("match",1,(function(t,e,i,n){return[function(i){var n=t(this),r=null==i?void 0:i[e];return void 0!==r?r.call(i,n):new RegExp(i)[e](String(n))},function(t){var e=n(i,t,this);if(e.done)return e.value;var r=Rh(t),o=String(this);if(!r.global)return Fh(r,o);var s=r.unicode;r.lastIndex=0;for(var a,u=[],l=0;null!==(a=Fh(r,o));){var h=String(a[0]);u[l]=h,""===h&&(r.lastIndex=Dh(o,Bh(r.lastIndex),s)),l++}return 0===l?null:u}]}));var Ih=g,jh=ke,zh=Xt,$h=Gt,Hh=wh,Gh=Ph,Wh=Math.max,Yh=Math.min,Xh=Math.floor,Uh=/\$([$&`']|\d\d?|<[^>]*>)/g,qh=/\$([$&`']|\d\d?)/g;Oh("replace",2,(function(t,e,i,n){return[function(n,r){var o=t(this),s=null==n?void 0:n[e];return void 0!==s?s.call(n,o,r):i.call(String(o),n,r)},function(t,e){var o=n(i,t,this,e);if(o.done)return o.value;var s=Ih(t),a=String(this),u="function"==typeof e;u||(e=String(e));var l=s.global;if(l){var h=s.unicode;s.lastIndex=0}for(var p=[];;){var c=Gh(s,a);if(null===c)break;if(p.push(c),!l)break;""===String(c[0])&&(s.lastIndex=Hh(a,zh(s.lastIndex),h))}for(var f,_="",d=0,y=0;y<p.length;y++){c=p[y];for(var g=String(c[0]),v=Wh(Yh($h(c.index),a.length),0),m=[],b=1;b<c.length;b++)m.push(void 0===(f=c[b])?f:String(f));var w=c.groups;if(u){var x=[g].concat(m,v,a);void 0!==w&&x.push(w);var S=String(e.apply(void 0,x))}else S=r(g,a,v,m,w,e);v>=d&&(_+=a.slice(d,v)+S,d=v+g.length)}return _+a.slice(d)}];function r(t,e,n,r,o,s){var a=n+t.length,u=r.length,l=qh;return void 0!==o&&(o=jh(o),l=Uh),i.call(s,l,(function(i,s){var l;switch(s.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,n);case"'":return e.slice(a);case"<":l=o[s.slice(1,-1)];break;default:var h=+s;if(0===h)return i;if(h>u){var p=Xh(h/10);return 0===p?i:p<=u?void 0===r[p-1]?s.charAt(1):r[p-1]+s.charAt(1):i}l=r[h-1]}return void 0===l?"":l}))}}));var Zh=g,Kh=jn,Jh=Ph;Oh("search",1,(function(t,e,i,n){return[function(i){var n=t(this),r=null==i?void 0:i[e];return void 0!==r?r.call(i,n):new RegExp(i)[e](String(n))},function(t){var e=n(i,t,this);if(e.done)return e.value;var r=Zh(t),o=String(this),s=r.lastIndex;Kh(s,0)||(r.lastIndex=0);var a=Jh(r,o);return Kh(r.lastIndex,s)||(r.lastIndex=s),null===a?-1:a.index}]}));var Qh=g,tp=q,ep=xt("species"),ip=function(t,e){var i,n=Qh(t).constructor;return void 0===n||null==(i=Qh(n)[ep])?e:tp(i)},np=Ks,rp=g,op=ip,sp=wh,ap=Xt,up=Ph,lp=fh,hp=a,pp=Math.min,cp=[].push,fp="split",_p="length",dp="lastIndex",yp=4294967295,gp=!hp((function(){RegExp(yp,"y")}));Oh("split",2,(function(t,e,i,n){var r;return r="c"=="abbc"[fp](/(b)*/)[1]||4!="test"[fp](/(?:)/,-1)[_p]||2!="ab"[fp](/(?:ab)*/)[_p]||4!="."[fp](/(.?)(.?)/)[_p]||"."[fp](/()()/)[_p]>1||""[fp](/.?/)[_p]?function(t,e){var n=String(this);if(void 0===t&&0===e)return[];if(!np(t))return i.call(n,t,e);for(var r,o,s,a=[],u=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),l=0,h=void 0===e?yp:e>>>0,p=new RegExp(t.source,u+"g");(r=lp.call(p,n))&&!((o=p[dp])>l&&(a.push(n.slice(l,r.index)),r[_p]>1&&r.index<n[_p]&&cp.apply(a,r.slice(1)),s=r[0][_p],l=o,a[_p]>=h));)p[dp]===r.index&&p[dp]++;return l===n[_p]?!s&&p.test("")||a.push(""):a.push(n.slice(l)),a[_p]>h?a.slice(0,h):a}:"0"[fp](void 0,0)[_p]?function(t,e){return void 0===t&&0===e?[]:i.call(this,t,e)}:i,[function(i,n){var o=t(this),s=null==i?void 0:i[e];return void 0!==s?s.call(i,o,n):r.call(String(o),i,n)},function(t,e){var o=n(r,t,this,e,r!==i);if(o.done)return o.value;var s=rp(t),a=String(this),u=op(s,RegExp),l=s.unicode,h=(s.ignoreCase?"i":"")+(s.multiline?"m":"")+(s.unicode?"u":"")+(gp?"y":"g"),p=new u(gp?s:"^(?:"+s.source+")",h),c=void 0===e?yp:e>>>0;if(0===c)return[];if(0===a.length)return null===up(p,a)?[a]:[];for(var f=0,_=0,d=[];_<a.length;){p.lastIndex=gp?_:0;var y,g=up(p,gp?a:a.slice(_));if(null===g||(y=pp(ap(p.lastIndex+(gp?0:_)),a.length))===f)_=sp(a,_,l);else{if(d.push(a.slice(f,_)),d.length===c)return d;for(var v=1;v<=g.length-1;v++)if(d.push(g[v]),d.length===c)return d;_=f=y}}return d.push(a.slice(f)),d}]}));var vp=function(t,e,i,n){if(!(t instanceof e)||void 0!==n&&n in t)throw TypeError(i+": incorrect invocation!");return t},mp={exports:{}},bp=K,wp=$a,xp=Ya,Sp=g,Pp=Xt,Vp=Qa,kp={},Ap={},Cp=mp.exports=function(t,e,i,n,r){var o,s,a,u,l=r?function(){return t}:Vp(t),h=bp(i,n,e?2:1),p=0;if("function"!=typeof l)throw TypeError(t+" is not iterable!");if(xp(l)){for(o=Pp(t.length);o>p;p++)if((u=e?h(Sp(s=t[p])[0],s[1]):h(t[p]))===kp||u===Ap)return u}else for(a=l.call(t);!(s=a.next()).done;)if((u=wp(a,h,s.value,e))===kp||u===Ap)return u};Cp.BREAK=kp,Cp.RETURN=Ap;var Ep,Lp,Np,Mp=mp.exports,Tp=K,Op=Kn,Rp=Ee,Bp=v(),Dp=r,Fp=Dp.process,Ip=Dp.setImmediate,jp=Dp.clearImmediate,zp=Dp.MessageChannel,$p=Dp.Dispatch,Hp=0,Gp={},Wp="onreadystatechange",Yp=function(){var t=+this;if(Gp.hasOwnProperty(t)){var e=Gp[t];delete Gp[t],e()}},Xp=function(t){Yp.call(t.data)};Ip&&jp||(Ip=function(t){for(var e=[],i=1;arguments.length>i;)e.push(arguments[i++]);return Gp[++Hp]=function(){Op("function"==typeof t?t:Function(t),e)},Ep(Hp),Hp},jp=function(t){delete Gp[t]},"process"==Bt(Fp)?Ep=function(t){Fp.nextTick(Tp(Yp,t,1))}:$p&&$p.now?Ep=function(t){$p.now(Tp(Yp,t,1))}:zp?(Np=(Lp=new zp).port2,Lp.port1.onmessage=Xp,Ep=Tp(Np.postMessage,Np,1)):Dp.addEventListener&&"function"==typeof postMessage&&!Dp.importScripts?(Ep=function(t){Dp.postMessage(t+"","*")},Dp.addEventListener("message",Xp,!1)):Ep=Wp in Bp("script")?function(t){Rp.appendChild(Bp("script"))[Wp]=function(){Rp.removeChild(this),Yp.call(t)}}:function(t){setTimeout(Tp(Yp,t,1),0)});var Up={set:Ip,clear:jp},qp=r,Zp=Up.set,Kp=qp.MutationObserver||qp.WebKitMutationObserver,Jp=qp.process,Qp=qp.Promise,tc="process"==Bt(Jp),ec=function(){var t,e,i,n=function(){var n,r;for(tc&&(n=Jp.domain)&&n.exit();t;){r=t.fn,t=t.next;try{r()}catch(n){throw t?i():e=void 0,n}}e=void 0,n&&n.enter()};if(tc)i=function(){Jp.nextTick(n)};else if(!Kp||qp.navigator&&qp.navigator.standalone)if(Qp&&Qp.resolve){var r=Qp.resolve(void 0);i=function(){r.then(n)}}else i=function(){Zp.call(qp,n)};else{var o=!0,s=document.createTextNode("");new Kp(n).observe(s,{characterData:!0}),i=function(){s.data=o=!o}}return function(n){var r={fn:n,next:void 0};e&&(e.next=r),t||(t=r,i()),e=r}},ic={},nc=q;function rc(t){var e,i;this.promise=new t((function(t,n){if(void 0!==e||void 0!==i)throw TypeError("Bad Promise constructor");e=t,i=n})),this.resolve=nc(e),this.reject=nc(i)}ic.f=function(t){return new rc(t)};var oc,sc,ac=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}},uc=r.navigator,lc=uc&&uc.userAgent||"",hc=g,pc=d,cc=ic,fc=function(t,e){if(hc(t),pc(e)&&e.constructor===t)return e;var i=cc.f(t);return(0,i.resolve)(e),i.promise};function _c(){if(sc)return oc;sc=1;var t=U;return oc=function(e,i,n){for(var r in i)t(e,r,i[r],n);return e},oc}var dc,yc,gc,vc,mc=r,bc=K,wc=Un,xc=ot,Sc=d,Pc=q,Vc=vp,kc=Mp,Ac=ip,Cc=Up.set,Ec=ec(),Lc=ic,Nc=ac,Mc=lc,Tc=fc,Oc="Promise",Rc=mc.TypeError,Bc=mc.process,Dc=Bc&&Bc.versions,Fc=Dc&&Dc.v8||"",Ic=mc[Oc],jc="process"==wc(Bc),zc=function(){},$c=yc=Lc.f,Hc=!!function(){try{var t=Ic.resolve(1),e=(t.constructor={})[xt("species")]=function(t){t(zc,zc)};return(jc||"function"==typeof PromiseRejectionEvent)&&t.then(zc)instanceof e&&0!==Fc.indexOf("6.6")&&-1===Mc.indexOf("Chrome/66")}catch(t){}}(),Gc=function(t){var e;return!(!Sc(t)||"function"!=typeof(e=t.then))&&e},Wc=function(t,e){if(!t._n){t._n=!0;var i=t._c;Ec((function(){for(var n=t._v,r=1==t._s,o=0,s=function(e){var i,o,s,a=r?e.ok:e.fail,u=e.resolve,l=e.reject,h=e.domain;try{a?(r||(2==t._h&&Uc(t),t._h=1),!0===a?i=n:(h&&h.enter(),i=a(n),h&&(h.exit(),s=!0)),i===e.promise?l(Rc("Promise-chain cycle")):(o=Gc(i))?o.call(i,u,l):u(i)):l(n)}catch(t){h&&!s&&h.exit(),l(t)}};i.length>o;)s(i[o++]);t._c=[],t._n=!1,e&&!t._h&&Yc(t)}))}},Yc=function(t){Cc.call(mc,(function(){var e,i,n,r=t._v,o=Xc(t);if(o&&(e=Nc((function(){jc?Bc.emit("unhandledRejection",r,t):(i=mc.onunhandledrejection)?i({promise:t,reason:r}):(n=mc.console)&&n.error&&n.error("Unhandled promise rejection",r)})),t._h=jc||Xc(t)?2:1),t._a=void 0,o&&e.e)throw e.v}))},Xc=function(t){return 1!==t._h&&0===(t._a||t._c).length},Uc=function(t){Cc.call(mc,(function(){var e;jc?Bc.emit("rejectionHandled",t):(e=mc.onrejectionhandled)&&e({promise:t,reason:t._v})}))},qc=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),Wc(e,!0))},Zc=function(t){var e,i=this;if(!i._d){i._d=!0,i=i._w||i;try{if(i===t)throw Rc("Promise can't be resolved itself");(e=Gc(t))?Ec((function(){var n={_w:i,_d:!1};try{e.call(t,bc(Zc,n,1),bc(qc,n,1))}catch(t){qc.call(n,t)}})):(i._v=t,i._s=1,Wc(i,!1))}catch(t){qc.call({_w:i,_d:!1},t)}}};Hc||(Ic=function(t){Vc(this,Ic,Oc,"_h"),Pc(t),dc.call(this);try{t(bc(Zc,this,1),bc(qc,this,1))}catch(t){qc.call(this,t)}},(dc=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=_c()(Ic.prototype,{then:function(t,e){var i=$c(Ac(this,Ic));return i.ok="function"!=typeof t||t,i.fail="function"==typeof e&&e,i.domain=jc?Bc.domain:void 0,this._c.push(i),this._a&&this._a.push(i),this._s&&Wc(this,!1),i.promise},catch:function(t){return this.then(void 0,t)}}),gc=function(){var t=new dc;this.promise=t,this.resolve=bc(Zc,t,1),this.reject=bc(qc,t,1)},Lc.f=$c=function(t){return t===Ic||t===vc?new gc(t):yc(t)}),xc(xc.G+xc.W+xc.F*!Hc,{Promise:Ic}),kt(Ic,Oc),Bl(Oc),vc=f[Oc],xc(xc.S+xc.F*!Hc,Oc,{reject:function(t){var e=$c(this);return(0,e.reject)(t),e.promise}}),xc(xc.S+xc.F*!Hc,Oc,{resolve:function(t){return Tc(this,t)}}),xc(xc.S+xc.F*!(Hc&&tu()((function(t){Ic.all(t).catch(zc)}))),Oc,{all:function(t){var e=this,i=$c(e),n=i.resolve,r=i.reject,o=Nc((function(){var i=[],o=0,s=1;kc(t,!1,(function(t){var a=o++,u=!1;i.push(void 0),s++,e.resolve(t).then((function(t){u||(u=!0,i[a]=t,--s||n(i))}),r)})),--s||n(i)}));return o.e&&r(o.v),i.promise},race:function(t){var e=this,i=$c(e),n=i.reject,r=Nc((function(){kc(t,!1,(function(t){e.resolve(t).then(i.resolve,n)}))}));return r.e&&n(r.v),i.promise}});var Kc=d,Jc=function(t,e){if(!Kc(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t},Qc=_.f,tf=De,ef=_c(),nf=K,rf=vp,of=Mp,sf=$s,af=Dl,uf=Bl,lf=u,hf=yt.fastKey,pf=Jc,cf=lf?"_s":"size",ff=function(t,e){var i,n=hf(e);if("F"!==n)return t._i[n];for(i=t._f;i;i=i.n)if(i.k==e)return i},_f={getConstructor:function(t,e,i,n){var r=t((function(t,o){rf(t,r,e,"_i"),t._t=e,t._i=tf(null),t._f=void 0,t._l=void 0,t[cf]=0,null!=o&&of(o,i,t[n],t)}));return ef(r.prototype,{clear:function(){for(var t=pf(this,e),i=t._i,n=t._f;n;n=n.n)n.r=!0,n.p&&(n.p=n.p.n=void 0),delete i[n.i];t._f=t._l=void 0,t[cf]=0},delete:function(t){var i=pf(this,e),n=ff(i,t);if(n){var r=n.n,o=n.p;delete i._i[n.i],n.r=!0,o&&(o.n=r),r&&(r.p=o),i._f==n&&(i._f=r),i._l==n&&(i._l=o),i[cf]--}return!!n},forEach:function(t){pf(this,e);for(var i,n=nf(t,arguments.length>1?arguments[1]:void 0,3);i=i?i.n:this._f;)for(n(i.v,i.k,this);i&&i.r;)i=i.p},has:function(t){return!!ff(pf(this,e),t)}}),lf&&Qc(r.prototype,"size",{get:function(){return pf(this,e)[cf]}}),r},def:function(t,e,i){var n,r,o=ff(t,e);return o?o.v=i:(t._l=o={i:r=hf(e,!0),k:e,v:i,p:n=t._l,n:void 0,r:!1},t._f||(t._f=o),n&&(n.n=o),t[cf]++,"F"!==r&&(t._i[r]=o)),t},getEntry:ff,setStrong:function(t,e,i){sf(t,e,(function(t,i){this._t=pf(t,e),this._k=i,this._l=void 0}),(function(){for(var t=this,e=t._k,i=t._l;i&&i.r;)i=i.p;return t._t&&(t._l=i=i?i.n:t._t._f)?af(0,"keys"==e?i.k:"values"==e?i.v:[i.k,i.v]):(t._t=void 0,af(1))}),i?"entries":"values",!i,!0),uf(e)}},df=r,yf=ot,gf=U,vf=_c(),mf=yt,bf=Mp,wf=vp,xf=d,Sf=a,Pf=tu(),Vf=kt,kf=Dr,Af=function(t,e,i,n,r,o){var s=df[t],a=s,u=r?"set":"add",l=a&&a.prototype,h={},p=function(t){var e=l[t];gf(l,t,"delete"==t||"has"==t?function(t){return!(o&&!xf(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return o&&!xf(t)?void 0:e.call(this,0===t?0:t)}:"add"==t?function(t){return e.call(this,0===t?0:t),this}:function(t,i){return e.call(this,0===t?0:t,i),this})};if("function"==typeof a&&(o||l.forEach&&!Sf((function(){(new a).entries().next()})))){var c=new a,f=c[u](o?{}:-0,1)!=c,_=Sf((function(){c.has(1)})),d=Pf((function(t){new a(t)})),y=!o&&Sf((function(){for(var t=new a,e=5;e--;)t[u](e,e);return!t.has(-0)}));d||((a=e((function(e,i){wf(e,a,t);var n=kf(new s,e,a);return null!=i&&bf(i,r,n[u],n),n}))).prototype=l,l.constructor=a),(_||y)&&(p("delete"),p("has"),r&&p("get")),(y||f)&&p(u),o&&l.clear&&delete l.clear}else a=n.getConstructor(e,t,r,u),vf(a.prototype,i),mf.NEED=!0;return Vf(a,t),h[t]=a,yf(yf.G+yf.W+yf.F*(a!=s),h),o||n.setStrong(a,t,r),a},Cf=_f,Ef=Jc,Lf="Map",Nf=Af(Lf,(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{get:function(t){var e=Cf.getEntry(Ef(this,Lf),t);return e&&e.v},set:function(t,e){return Cf.def(Ef(this,Lf),0===t?0:t,e)}},Cf,!0),Mf=_f,Tf=Jc,Of=Af("Set",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(t){return Mf.def(Tf(this,"Set"),t=0===t?0:t,t)}},Mf),Rf={exports:{}},Bf=_c(),Df=yt.getWeak,Ff=g,If=d,jf=vp,zf=Mp,$f=Fu,Hf=s,Gf=Jc,Wf=$f(5),Yf=$f(6),Xf=0,Uf=function(t){return t._l||(t._l=new qf)},qf=function(){this.a=[]},Zf=function(t,e){return Wf(t.a,(function(t){return t[0]===e}))};qf.prototype={get:function(t){var e=Zf(this,t);if(e)return e[1]},has:function(t){return!!Zf(this,t)},set:function(t,e){var i=Zf(this,t);i?i[1]=e:this.a.push([t,e])},delete:function(t){var e=Yf(this.a,(function(e){return e[0]===t}));return~e&&this.a.splice(e,1),!!~e}};var Kf,Jf={getConstructor:function(t,e,i,n){var r=t((function(t,o){jf(t,r,e,"_i"),t._t=e,t._i=Xf++,t._l=void 0,null!=o&&zf(o,i,t[n],t)}));return Bf(r.prototype,{delete:function(t){if(!If(t))return!1;var i=Df(t);return!0===i?Uf(Gf(this,e)).delete(t):i&&Hf(i,this._i)&&delete i[this._i]},has:function(t){if(!If(t))return!1;var i=Df(t);return!0===i?Uf(Gf(this,e)).has(t):i&&Hf(i,this._i)}}),r},def:function(t,e,i){var n=Df(Ff(e),!0);return!0===n?Uf(t).set(e,i):n[t._i]=i,t},ufstore:Uf},Qf=r,t_=Fu(0),e_=U,i_=yt,n_=Fn,r_=Jf,o_=d,s_=Jc,a_=Jc,u_=!Qf.ActiveXObject&&"ActiveXObject"in Qf,l_="WeakMap",h_=i_.getWeak,p_=Object.isExtensible,c_=r_.ufstore,f_=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},__={get:function(t){if(o_(t)){var e=h_(t);return!0===e?c_(s_(this,l_)).get(t):e?e[this._i]:void 0}},set:function(t,e){return r_.def(s_(this,l_),t,e)}},d_=Rf.exports=Af(l_,f_,__,r_,!0,!0);a_&&u_&&(n_((Kf=r_.getConstructor(f_,l_)).prototype,__),i_.NEED=!0,t_(["delete","has","get","set"],(function(t){var e=d_.prototype,i=e[t];e_(e,t,(function(e,n){if(o_(e)&&!p_(e)){this._f||(this._f=new Kf);var r=this._f[t](e,n);return"set"==t?this:r}return i.call(this,e,n)}))})));var y_=Rf.exports,g_=Jf,v_=Jc,m_="WeakSet";Af(m_,(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(t){return g_.def(v_(this,m_),t,!0)}},g_,!1,!0);for(var b_,w_=r,x_=E(),S_=T,P_=S_("typed_array"),V_=S_("view"),k_=!(!w_.ArrayBuffer||!w_.DataView),A_=k_,C_=0,E_="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");C_<9;)(b_=w_[E_[C_++]])?(x_(b_.prototype,P_,!0),x_(b_.prototype,V_,!0)):A_=!1;var L_={ABV:k_,CONSTR:A_,TYPED:P_,VIEW:V_},N_={},M_=Gt,T_=Xt,O_=function(t){if(void 0===t)return 0;var e=M_(t),i=T_(e);if(e!==i)throw RangeError("Wrong length!");return i};!function(t){var e=r,i=u,n=L_,o=E(),s=_c(),l=a,h=vp,p=Gt,c=Xt,f=O_,d=Ie.f,y=_.f,g=Sl(),v=kt,m="ArrayBuffer",b="DataView",w="prototype",x="Wrong index!",S=e[m],P=e[b],V=e.Math,k=e.RangeError,A=e.Infinity,C=S,L=V.abs,N=V.pow,M=V.floor,T=V.log,O=V.LN2,R="buffer",B="byteLength",D="byteOffset",F=i?"_b":R,I=i?"_l":B,j=i?"_o":D;function z(t,e,i){var n,r,o,s=new Array(i),a=8*i-e-1,u=(1<<a)-1,l=u>>1,h=23===e?N(2,-24)-N(2,-77):0,p=0,c=t<0||0===t&&1/t<0?1:0;for((t=L(t))!=t||t===A?(r=t!=t?1:0,n=u):(n=M(T(t)/O),t*(o=N(2,-n))<1&&(n--,o*=2),(t+=n+l>=1?h/o:h*N(2,1-l))*o>=2&&(n++,o/=2),n+l>=u?(r=0,n=u):n+l>=1?(r=(t*o-1)*N(2,e),n+=l):(r=t*N(2,l-1)*N(2,e),n=0));e>=8;s[p++]=255&r,r/=256,e-=8);for(n=n<<e|r,a+=e;a>0;s[p++]=255&n,n/=256,a-=8);return s[--p]|=128*c,s}function $(t,e,i){var n,r=8*i-e-1,o=(1<<r)-1,s=o>>1,a=r-7,u=i-1,l=t[u--],h=127&l;for(l>>=7;a>0;h=256*h+t[u],u--,a-=8);for(n=h&(1<<-a)-1,h>>=-a,a+=e;a>0;n=256*n+t[u],u--,a-=8);if(0===h)h=1-s;else{if(h===o)return n?NaN:l?-A:A;n+=N(2,e),h-=s}return(l?-1:1)*n*N(2,h-e)}function H(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}function G(t){return[255&t]}function W(t){return[255&t,t>>8&255]}function Y(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function X(t){return z(t,52,8)}function U(t){return z(t,23,4)}function q(t,e,i){y(t[w],e,{get:function(){return this[i]}})}function Z(t,e,i,n){var r=f(+i);if(r+e>t[I])throw k(x);var o=t[F]._b,s=r+t[j],a=o.slice(s,s+e);return n?a:a.reverse()}function K(t,e,i,n,r,o){var s=f(+i);if(s+e>t[I])throw k(x);for(var a=t[F]._b,u=s+t[j],l=n(+r),h=0;h<e;h++)a[u+h]=l[o?h:e-h-1]}if(n.ABV){if(!l((function(){S(1)}))||!l((function(){new S(-1)}))||l((function(){return new S,new S(1.5),new S(NaN),S.name!=m}))){for(var J,Q=(S=function(t){return h(this,S),new C(f(t))})[w]=C[w],tt=d(C),et=0;tt.length>et;)(J=tt[et++])in S||o(S,J,C[J]);Q.constructor=S}var it=new P(new S(2)),nt=P[w].setInt8;it.setInt8(0,2147483648),it.setInt8(1,2147483649),!it.getInt8(0)&&it.getInt8(1)||s(P[w],{setInt8:function(t,e){nt.call(this,t,e<<24>>24)},setUint8:function(t,e){nt.call(this,t,e<<24>>24)}},!0)}else S=function(t){h(this,S,m);var e=f(t);this._b=g.call(new Array(e),0),this[I]=e},P=function(t,e,i){h(this,P,b),h(t,S,b);var n=t[I],r=p(e);if(r<0||r>n)throw k("Wrong offset!");if(r+(i=void 0===i?n-r:c(i))>n)throw k("Wrong length!");this[F]=t,this[j]=r,this[I]=i},i&&(q(S,B,"_l"),q(P,R,"_b"),q(P,B,"_l"),q(P,D,"_o")),s(P[w],{getInt8:function(t){return Z(this,1,t)[0]<<24>>24},getUint8:function(t){return Z(this,1,t)[0]},getInt16:function(t){var e=Z(this,2,t,arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=Z(this,2,t,arguments[1]);return e[1]<<8|e[0]},getInt32:function(t){return H(Z(this,4,t,arguments[1]))},getUint32:function(t){return H(Z(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return $(Z(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return $(Z(this,8,t,arguments[1]),52,8)},setInt8:function(t,e){K(this,1,t,G,e)},setUint8:function(t,e){K(this,1,t,G,e)},setInt16:function(t,e){K(this,2,t,W,e,arguments[2])},setUint16:function(t,e){K(this,2,t,W,e,arguments[2])},setInt32:function(t,e){K(this,4,t,Y,e,arguments[2])},setUint32:function(t,e){K(this,4,t,Y,e,arguments[2])},setFloat32:function(t,e){K(this,4,t,U,e,arguments[2])},setFloat64:function(t,e){K(this,8,t,X,e,arguments[2])}});v(S,m),v(P,b),o(P[w],n.VIEW,!0),t[m]=S,t[b]=P}(N_);var R_=ot,B_=L_,D_=N_,F_=g,I_=Kt,j_=Xt,z_=d,$_=r.ArrayBuffer,H_=ip,G_=D_.ArrayBuffer,W_=D_.DataView,Y_=B_.ABV&&$_.isView,X_=G_.prototype.slice,U_=B_.VIEW,q_="ArrayBuffer";R_(R_.G+R_.W+R_.F*($_!==G_),{ArrayBuffer:G_}),R_(R_.S+R_.F*!B_.CONSTR,q_,{isView:function(t){return Y_&&Y_(t)||z_(t)&&U_ in t}}),R_(R_.P+R_.U+R_.F*a((function(){return!new G_(2).slice(1,void 0).byteLength})),q_,{slice:function(t,e){if(void 0!==X_&&void 0===e)return X_.call(F_(this),t);for(var i=F_(this).byteLength,n=I_(t,i),r=I_(void 0===e?i:e,i),o=new(H_(this,G_))(j_(r-n)),s=new W_(this),a=new W_(o),u=0;n<r;)a.setUint8(u++,s.getUint8(n++));return o}}),Bl(q_);var Z_=ot;Z_(Z_.G+Z_.W+Z_.F*!L_.ABV,{DataView:N_.DataView});var K_={exports:{}};if(u){var J_=r,Q_=a,td=ot,ed=L_,id=N_,nd=K,rd=vp,od=C,sd=E(),ad=_c(),ud=Gt,ld=Xt,hd=O_,pd=Kt,cd=w,fd=s,_d=Un,dd=d,yd=ke,gd=Ya,vd=De,md=gn,bd=Ie.f,wd=Qa,xd=T,Sd=xt,Pd=Fu,Vd=ee,kd=ip,Ad=$l,Cd=Ps,Ed=tu(),Ld=Bl,Nd=Sl(),Md=gl(),Td=_,Od=Ye,Rd=Td.f,Bd=Od.f,Dd=J_.RangeError,Fd=J_.TypeError,Id=J_.Uint8Array,jd="ArrayBuffer",zd="Shared"+jd,$d="BYTES_PER_ELEMENT",Hd="prototype",Gd=Array[Hd],Wd=id.ArrayBuffer,Yd=id.DataView,Xd=Pd(0),Ud=Pd(2),qd=Pd(3),Zd=Pd(4),Kd=Pd(5),Jd=Pd(6),Qd=Vd(!0),ty=Vd(!1),ey=Ad.values,iy=Ad.keys,ny=Ad.entries,ry=Gd.lastIndexOf,oy=Gd.reduce,sy=Gd.reduceRight,ay=Gd.join,uy=Gd.sort,ly=Gd.slice,hy=Gd.toString,py=Gd.toLocaleString,cy=Sd("iterator"),fy=Sd("toStringTag"),_y=xd("typed_constructor"),dy=xd("def_constructor"),yy=ed.CONSTR,gy=ed.TYPED,vy=ed.VIEW,my="Wrong length!",by=Pd(1,(function(t,e){return Vy(kd(t,t[dy]),e)})),wy=Q_((function(){return 1===new Id(new Uint16Array([1]).buffer)[0]})),xy=!!Id&&!!Id[Hd].set&&Q_((function(){new Id(1).set({})})),Sy=function(t,e){var i=ud(t);if(i<0||i%e)throw Dd("Wrong offset!");return i},Py=function(t){if(dd(t)&&gy in t)return t;throw Fd(t+" is not a typed array!")},Vy=function(t,e){if(!dd(t)||!(_y in t))throw Fd("It is not a typed array constructor!");return new t(e)},ky=function(t,e){return Ay(kd(t,t[dy]),e)},Ay=function(t,e){for(var i=0,n=e.length,r=Vy(t,n);n>i;)r[i]=e[i++];return r},Cy=function(t,e,i){Rd(t,e,{get:function(){return this._d[i]}})},Ey=function(t){var e,i,n,r,o,s,a=yd(t),u=arguments.length,l=u>1?arguments[1]:void 0,h=void 0!==l,p=wd(a);if(null!=p&&!gd(p)){for(s=p.call(a),n=[],e=0;!(o=s.next()).done;e++)n.push(o.value);a=n}for(h&&u>2&&(l=nd(l,arguments[2],2)),e=0,i=ld(a.length),r=Vy(this,i);i>e;e++)r[e]=h?l(a[e],e):a[e];return r},Ly=function(){for(var t=0,e=arguments.length,i=Vy(this,e);e>t;)i[t]=arguments[t++];return i},Ny=!!Id&&Q_((function(){py.call(new Id(1))})),My=function(){return py.apply(Ny?ly.call(Py(this)):Py(this),arguments)},Ty={copyWithin:function(t,e){return Md.call(Py(this),t,e,arguments.length>2?arguments[2]:void 0)},every:function(t){return Zd(Py(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return Nd.apply(Py(this),arguments)},filter:function(t){return ky(this,Ud(Py(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return Kd(Py(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return Jd(Py(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){Xd(Py(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return ty(Py(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return Qd(Py(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return ay.apply(Py(this),arguments)},lastIndexOf:function(t){return ry.apply(Py(this),arguments)},map:function(t){return by(Py(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return oy.apply(Py(this),arguments)},reduceRight:function(t){return sy.apply(Py(this),arguments)},reverse:function(){for(var t,e=this,i=Py(e).length,n=Math.floor(i/2),r=0;r<n;)t=e[r],e[r++]=e[--i],e[i]=t;return e},some:function(t){return qd(Py(this),t,arguments.length>1?arguments[1]:void 0)},sort:function(t){return uy.call(Py(this),t)},subarray:function(t,e){var i=Py(this),n=i.length,r=pd(t,n);return new(kd(i,i[dy]))(i.buffer,i.byteOffset+r*i.BYTES_PER_ELEMENT,ld((void 0===e?n:pd(e,n))-r))}},Oy=function(t,e){return ky(this,ly.call(Py(this),t,e))},Ry=function(t){Py(this);var e=Sy(arguments[1],1),i=this.length,n=yd(t),r=ld(n.length),o=0;if(r+e>i)throw Dd(my);for(;o<r;)this[e+o]=n[o++]},By={entries:function(){return ny.call(Py(this))},keys:function(){return iy.call(Py(this))},values:function(){return ey.call(Py(this))}},Dy=function(t,e){return dd(t)&&t[gy]&&"symbol"!=typeof e&&e in t&&String(+e)==String(e)},Fy=function(t,e){return Dy(t,e=cd(e,!0))?od(2,t[e]):Bd(t,e)},Iy=function(t,e,i){return!(Dy(t,e=cd(e,!0))&&dd(i)&&fd(i,"value"))||fd(i,"get")||fd(i,"set")||i.configurable||fd(i,"writable")&&!i.writable||fd(i,"enumerable")&&!i.enumerable?Rd(t,e,i):(t[e]=i.value,t)};yy||(Od.f=Fy,Td.f=Iy),td(td.S+td.F*!yy,"Object",{getOwnPropertyDescriptor:Fy,defineProperty:Iy}),Q_((function(){hy.call({})}))&&(hy=py=function(){return ay.call(this)});var jy=ad({},Ty);ad(jy,By),sd(jy,cy,By.values),ad(jy,{slice:Oy,set:Ry,constructor:function(){},toString:hy,toLocaleString:My}),Cy(jy,"buffer","b"),Cy(jy,"byteOffset","o"),Cy(jy,"byteLength","l"),Cy(jy,"length","e"),Rd(jy,fy,{get:function(){return this[gy]}}),K_.exports=function(t,e,i,n){var r=t+((n=!!n)?"Clamped":"")+"Array",o="get"+t,s="set"+t,a=J_[r],u=a||{},l=a&&md(a),h=!a||!ed.ABV,p={},c=a&&a[Hd],f=function(t,i){Rd(t,i,{get:function(){return function(t,i){var n=t._d;return n.v[o](i*e+n.o,wy)}(this,i)},set:function(t){return function(t,i,r){var o=t._d;n&&(r=(r=Math.round(r))<0?0:r>255?255:255&r),o.v[s](i*e+o.o,r,wy)}(this,i,t)},enumerable:!0})};h?(a=i((function(t,i,n,o){rd(t,a,r,"_d");var s,u,l,h,p=0,c=0;if(dd(i)){if(!(i instanceof Wd||(h=_d(i))==jd||h==zd))return gy in i?Ay(a,i):Ey.call(a,i);s=i,c=Sy(n,e);var _=i.byteLength;if(void 0===o){if(_%e)throw Dd(my);if((u=_-c)<0)throw Dd(my)}else if((u=ld(o)*e)+c>_)throw Dd(my);l=u/e}else l=hd(i),s=new Wd(u=l*e);for(sd(t,"_d",{b:s,o:c,l:u,e:l,v:new Yd(s)});p<l;)f(t,p++)})),c=a[Hd]=vd(jy),sd(c,"constructor",a)):Q_((function(){a(1)}))&&Q_((function(){new a(-1)}))&&Ed((function(t){new a,new a(null),new a(1.5),new a(t)}),!0)||(a=i((function(t,i,n,o){var s;return rd(t,a,r),dd(i)?i instanceof Wd||(s=_d(i))==jd||s==zd?void 0!==o?new u(i,Sy(n,e),o):void 0!==n?new u(i,Sy(n,e)):new u(i):gy in i?Ay(a,i):Ey.call(a,i):new u(hd(i))})),Xd(l!==Function.prototype?bd(u).concat(bd(l)):bd(u),(function(t){t in a||sd(a,t,u[t])})),a[Hd]=c,c.constructor=a);var _=c[cy],d=!!_&&("values"==_.name||null==_.name),y=By.values;sd(a,_y,!0),sd(c,gy,r),sd(c,vy,!0),sd(c,dy,a),(n?new a(1)[fy]==r:fy in c)||Rd(c,fy,{get:function(){return r}}),p[r]=a,td(td.G+td.W+td.F*(a!=u),p),td(td.S,r,{BYTES_PER_ELEMENT:e}),td(td.S+td.F*Q_((function(){u.of.call(a,1)})),r,{from:Ey,of:Ly}),$d in c||sd(c,$d,e),td(td.P,r,Ty),Ld(r),td(td.P+td.F*xy,r,{set:Ry}),td(td.P+td.F*!d,r,By),c.toString!=hy&&(c.toString=hy),td(td.P+td.F*Q_((function(){new a(1).slice()})),r,{slice:Oy}),td(td.P+td.F*(Q_((function(){return[1,2].toLocaleString()!=new a([1,2]).toLocaleString()}))||!Q_((function(){c.toLocaleString.call([1,2])}))),r,{toLocaleString:My}),Cd[r]=d?_:y,d||sd(c,cy,y)}}else K_.exports=function(){};var zy=K_.exports;zy("Int8",1,(function(t){return function(e,i,n){return t(this,e,i,n)}})),zy("Uint8",1,(function(t){return function(e,i,n){return t(this,e,i,n)}})),zy("Uint8",1,(function(t){return function(e,i,n){return t(this,e,i,n)}}),!0),zy("Int16",2,(function(t){return function(e,i,n){return t(this,e,i,n)}})),zy("Uint16",2,(function(t){return function(e,i,n){return t(this,e,i,n)}})),zy("Int32",4,(function(t){return function(e,i,n){return t(this,e,i,n)}})),zy("Uint32",4,(function(t){return function(e,i,n){return t(this,e,i,n)}})),zy("Float32",4,(function(t){return function(e,i,n){return t(this,e,i,n)}})),zy("Float64",8,(function(t){return function(e,i,n){return t(this,e,i,n)}}));var $y=ot,Hy=q,Gy=g,Wy=(r.Reflect||{}).apply,Yy=Function.apply;$y($y.S+$y.F*!a((function(){Wy((function(){}))})),"Reflect",{apply:function(t,e,i){var n=Hy(t),r=Gy(i);return Wy?Wy(n,e,r):Yy.call(n,e,r)}});var Xy=ot,Uy=De,qy=q,Zy=g,Ky=d,Jy=a,Qy=nr,tg=(r.Reflect||{}).construct,eg=Jy((function(){function t(){}return!(tg((function(){}),[],t)instanceof t)})),ig=!Jy((function(){tg((function(){}))}));Xy(Xy.S+Xy.F*(eg||ig),"Reflect",{construct:function(t,e){qy(t),Zy(e);var i=arguments.length<3?t:qy(arguments[2]);if(ig&&!eg)return tg(t,e,i);if(t==i){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var n=[null];return n.push.apply(n,e),new(Qy.apply(t,n))}var r=i.prototype,o=Uy(Ky(r)?r:Object.prototype),s=Function.apply.call(t,o,e);return Ky(s)?s:o}});var ng=_,rg=ot,og=g,sg=w;rg(rg.S+rg.F*a((function(){Reflect.defineProperty(ng.f({},1,{value:1}),1,{value:2})})),"Reflect",{defineProperty:function(t,e,i){og(t),e=sg(e,!0),og(i);try{return ng.f(t,e,i),!0}catch(t){return!1}}});var ag=ot,ug=Ye.f,lg=g;ag(ag.S,"Reflect",{deleteProperty:function(t,e){var i=ug(lg(t),e);return!(i&&!i.configurable)&&delete t[e]}});var hg=ot,pg=g,cg=function(t){this._t=pg(t),this._i=0;var e,i=this._k=[];for(e in t)i.push(e)};Es(cg,"Object",(function(){var t,e=this,i=e._k;do{if(e._i>=i.length)return{value:void 0,done:!0}}while(!((t=i[e._i++])in e._t));return{value:t,done:!1}})),hg(hg.S,"Reflect",{enumerate:function(t){return new cg(t)}});var fg=Ye,_g=gn,dg=s,yg=d,gg=g;ot(ot.S,"Reflect",{get:function t(e,i){var n,r,o=arguments.length<3?e:arguments[2];return gg(e)===o?e[i]:(n=fg.f(e,i))?dg(n,"value")?n.value:void 0!==n.get?n.get.call(o):void 0:yg(r=_g(e))?t(r,i,o):void 0}});var vg=Ye,mg=g;ot(ot.S,"Reflect",{getOwnPropertyDescriptor:function(t,e){return vg.f(mg(t),e)}});var bg=gn,wg=g;ot(ot.S,"Reflect",{getPrototypeOf:function(t){return bg(wg(t))}});ot(ot.S,"Reflect",{has:function(t,e){return e in t}});var xg=ot,Sg=g,Pg=Object.isExtensible;xg(xg.S,"Reflect",{isExtensible:function(t){return Sg(t),!Pg||Pg(t)}});var Vg=Ie,kg=_e,Ag=g,Cg=r.Reflect,Eg=Cg&&Cg.ownKeys||function(t){var e=Vg.f(Ag(t)),i=kg.f;return i?e.concat(i(t)):e};ot(ot.S,"Reflect",{ownKeys:Eg});var Lg=ot,Ng=g,Mg=Object.preventExtensions;Lg(Lg.S,"Reflect",{preventExtensions:function(t){Ng(t);try{return Mg&&Mg(t),!0}catch(t){return!1}}});var Tg=_,Og=Ye,Rg=gn,Bg=s,Dg=C,Fg=g,Ig=d;ot(ot.S,"Reflect",{set:function t(e,i,n){var r,o,s=arguments.length<4?e:arguments[3],a=Og.f(Fg(e),i);if(!a){if(Ig(o=Rg(e)))return t(o,i,n,s);a=Dg(0)}if(Bg(a,"value")){if(!1===a.writable||!Ig(s))return!1;if(r=Og.f(s,i)){if(r.get||r.set||!1===r.writable)return!1;r.value=n,Tg.f(s,i,r)}else Tg.f(s,i,Dg(0,n));return!0}return void 0!==a.set&&(a.set.call(s,n),!0)}});var jg=Gn;jg&&ot(ot.S,"Reflect",{setPrototypeOf:function(t,e){jg.check(t,e);try{return jg.set(t,e),!0}catch(t){return!1}}});var zg=ot,$g=ee(!0);zg(zg.P,"Array",{includes:function(t){return $g(this,t,arguments.length>1?arguments[1]:void 0)}}),xl("includes");var Hg=Pe,Gg=d,Wg=Xt,Yg=K,Xg=xt("isConcatSpreadable");var Ug=function t(e,i,n,r,o,s,a,u){for(var l,h,p=o,c=0,f=!!a&&Yg(a,u,3);c<r;){if(c in n){if(l=f?f(n[c],c,i):n[c],h=!1,Gg(l)&&(h=void 0!==(h=l[Xg])?!!h:Hg(l)),h&&s>0)p=t(e,i,l,Wg(l.length),p,s-1)-1;else{if(p>=9007199254740991)throw TypeError();e[p]=l}p++}c++}return p},qg=Ug,Zg=ke,Kg=Xt,Jg=q,Qg=Mu;ot(ot.P,"Array",{flatMap:function(t){var e,i,n=Zg(this);return Jg(t),e=Kg(n.length),i=Qg(n,0),qg(i,n,n,e,0,1,t,arguments[1]),i}}),xl("flatMap");var tv=Ug,ev=ke,iv=Xt,nv=Gt,rv=Mu;ot(ot.P,"Array",{flatten:function(){var t=arguments[0],e=ev(this),i=iv(e.length),n=rv(e,0);return tv(n,e,e,i,0,void 0===t?1:nv(t)),n}}),xl("flatten");var ov=ot,sv=Ss(!0),av=a((function(){return"𠮷"!=="𠮷".at(0)}));ov(ov.P+ov.F*av,"String",{at:function(t){return sv(this,t)}});var uv=Xt,lv=uo,hv=Ft,pv=function(t,e,i,n){var r=String(hv(t)),o=r.length,s=void 0===i?" ":String(i),a=uv(e);if(a<=o||""==s)return r;var u=a-o,l=lv.call(s,Math.ceil(u/s.length));return l.length>u&&(l=l.slice(0,u)),n?l+r:r+l},cv=ot,fv=pv,_v=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(lc);cv(cv.P+cv.F*_v,"String",{padStart:function(t){return fv(this,t,arguments.length>1?arguments[1]:void 0,!0)}});var dv=ot,yv=pv,gv=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(lc);dv(dv.P+dv.F*gv,"String",{padEnd:function(t){return yv(this,t,arguments.length>1?arguments[1]:void 0,!1)}}),xr("trimLeft",(function(t){return function(){return t(this,1)}}),"trimStart"),xr("trimRight",(function(t){return function(){return t(this,2)}}),"trimEnd");var vv=ot,mv=Ft,bv=Xt,wv=Ks,xv=Gl,Sv=RegExp.prototype,Pv=function(t,e){this._r=t,this._s=e};Es(Pv,"RegExp String",(function(){var t=this._r.exec(this._s);return{value:t,done:null===t}})),vv(vv.P,"String",{matchAll:function(t){if(mv(this),!wv(t))throw TypeError(t+" is not a regexp!");var e=String(this),i="flags"in Sv?String(t.flags):xv.call(t),n=new RegExp(t.source,~i.indexOf("g")?i:"g"+i);return n.lastIndex=bv(t.lastIndex),new Pv(n,e)}}),Ot("asyncIterator"),Ot("observable");var Vv=Eg,kv=zt,Av=Ye,Cv=qa;ot(ot.S,"Object",{getOwnPropertyDescriptors:function(t){for(var e,i,n=kv(t),r=Av.f,o=Vv(n),s={},a=0;o.length>a;)void 0!==(i=r(n,e=o[a++]))&&Cv(s,e,i);return s}});var Ev=u,Lv=fe,Nv=zt,Mv=ge().f,Tv=function(t){return function(e){for(var i,n=Nv(e),r=Lv(n),o=r.length,s=0,a=[];o>s;)i=r[s++],Ev&&!Mv.call(n,i)||a.push(t?[i,n[i]]:n[i]);return a}},Ov=ot,Rv=Tv(!1);Ov(Ov.S,"Object",{values:function(t){return Rv(t)}});var Bv,Dv,Fv=ot,Iv=Tv(!0);function jv(){return Dv?Bv:(Dv=1,Bv=!a((function(){var t=Math.random();__defineSetter__.call(null,t,(function(){})),delete r[t]})))}Fv(Fv.S,"Object",{entries:function(t){return Iv(t)}});var zv=ke,$v=q,Hv=_;u&&ot(ot.P+jv(),"Object",{__defineGetter__:function(t,e){Hv.f(zv(this),t,{get:$v(e),enumerable:!0,configurable:!0})}});var Gv=ke,Wv=q,Yv=_;u&&ot(ot.P+jv(),"Object",{__defineSetter__:function(t,e){Yv.f(Gv(this),t,{set:Wv(e),enumerable:!0,configurable:!0})}});var Xv=ot,Uv=ke,qv=w,Zv=gn,Kv=Ye.f;u&&Xv(Xv.P+jv(),"Object",{__lookupGetter__:function(t){var e,i=Uv(this),n=qv(t,!0);do{if(e=Kv(i,n))return e.get}while(i=Zv(i))}});var Jv=ot,Qv=ke,tm=w,em=gn,im=Ye.f;u&&Jv(Jv.P+jv(),"Object",{__lookupSetter__:function(t){var e,i=Qv(this),n=tm(t,!0);do{if(e=im(i,n))return e.set}while(i=em(i))}});var nm,rm,om=Mp,sm=function(t,e){var i=[];return om(t,!1,i.push,i,e),i};function am(){if(rm)return nm;rm=1;var t=Un,e=sm;return nm=function(i){return function(){if(t(this)!=i)throw TypeError(i+"#toJSON isn't generic");return e(this)}},nm}var um=ot;um(um.P+um.R,"Map",{toJSON:am()("Map")});var lm=ot;lm(lm.P+lm.R,"Set",{toJSON:am()("Set")});var hm=ot,pm=function(t){hm(hm.S,t,{of:function(){for(var t=arguments.length,e=new Array(t);t--;)e[t]=arguments[t];return new this(e)}})};pm("Map"),pm("Set"),pm("WeakMap"),pm("WeakSet");var cm=ot,fm=q,_m=K,dm=Mp,ym=function(t){cm(cm.S,t,{from:function(t){var e,i,n,r,o=arguments[1];return fm(this),(e=void 0!==o)&&fm(o),null==t?new this:(i=[],e?(n=0,r=_m(o,arguments[2],2),dm(t,!1,(function(t){i.push(r(t,n++))}))):dm(t,!1,i.push,i),new this(i))}})};ym("Map"),ym("Set"),ym("WeakMap"),ym("WeakSet");ot(ot.G,{global:r});ot(ot.S,"System",{global:r});var gm=Bt;ot(ot.S,"Error",{isError:function(t){return"Error"===gm(t)}});ot(ot.S,"Math",{clamp:function(t,e,i){return Math.min(i,Math.max(e,t))}});ot(ot.S,"Math",{DEG_PER_RAD:Math.PI/180});var vm=ot,mm=180/Math.PI;vm(vm.S,"Math",{degrees:function(t){return t*mm}});var bm=Math.scale||function(t,e,i,n,r){return 0===arguments.length||t!=t||e!=e||i!=i||n!=n||r!=r?NaN:t===1/0||t===-1/0?t:(t-e)*(r-n)/(i-e)+n},wm=ot,xm=bm,Sm=rs();wm(wm.S,"Math",{fscale:function(t,e,i,n,r){return Sm(xm(t,e,i,n,r))}});ot(ot.S,"Math",{iaddh:function(t,e,i,n){var r=t>>>0,o=i>>>0;return(e>>>0)+(n>>>0)+((r&o|(r|o)&~(r+o>>>0))>>>31)|0}});ot(ot.S,"Math",{isubh:function(t,e,i,n){var r=t>>>0,o=i>>>0;return(e>>>0)-(n>>>0)-((~r&o|(r^~o)&r-o>>>0)>>>31)|0}});ot(ot.S,"Math",{imulh:function(t,e){var i=65535,n=+t,r=+e,o=n&i,s=r&i,a=n>>16,u=r>>16,l=(a*s>>>0)+(o*s>>>16);return a*u+(l>>16)+((o*u>>>0)+(l&i)>>16)}});ot(ot.S,"Math",{RAD_PER_DEG:180/Math.PI});var Pm=ot,Vm=Math.PI/180;Pm(Pm.S,"Math",{radians:function(t){return t*Vm}});ot(ot.S,"Math",{scale:bm});ot(ot.S,"Math",{umulh:function(t,e){var i=65535,n=+t,r=+e,o=n&i,s=r&i,a=n>>>16,u=r>>>16,l=(a*s>>>0)+(o*s>>>16);return a*u+(l>>>16)+((o*u>>>0)+(l&i)>>>16)}});ot(ot.S,"Math",{signbit:function(t){return(t=+t)!=t?t:0==t?1/t==1/0:t>0}});var km=ot,Am=f,Cm=r,Em=ip,Lm=fc;km(km.P+km.R,"Promise",{finally:function(t){var e=Em(this,Am.Promise||Cm.Promise),i="function"==typeof t;return this.then(i?function(i){return Lm(e,t()).then((function(){return i}))}:t,i?function(i){return Lm(e,t()).then((function(){throw i}))}:t)}});var Nm=ic,Mm=ac;ot(ot.S,"Promise",{try:function(t){var e=Nm.f(this),i=Mm(t);return(i.e?e.reject:e.resolve)(i.v),e.promise}});var Tm=Nf,Om=ot,Rm=I("metadata"),Bm=Rm.store||(Rm.store=new y_),Dm=function(t,e,i){var n=Bm.get(t);if(!n){if(!i)return;Bm.set(t,n=new Tm)}var r=n.get(e);if(!r){if(!i)return;n.set(e,r=new Tm)}return r},Fm={store:Bm,map:Dm,has:function(t,e,i){var n=Dm(e,i,!1);return void 0!==n&&n.has(t)},get:function(t,e,i){var n=Dm(e,i,!1);return void 0===n?void 0:n.get(t)},set:function(t,e,i,n){Dm(i,n,!0).set(t,e)},keys:function(t,e){var i=Dm(t,e,!1),n=[];return i&&i.forEach((function(t,e){n.push(e)})),n},key:function(t){return void 0===t||"symbol"==typeof t?t:String(t)},exp:function(t){Om(Om.S,"Reflect",t)}},Im=Fm,jm=g,zm=Im.key,$m=Im.set;Im.exp({defineMetadata:function(t,e,i,n){$m(t,e,jm(i),zm(n))}});var Hm=Fm,Gm=g,Wm=Hm.key,Ym=Hm.map,Xm=Hm.store;Hm.exp({deleteMetadata:function(t,e){var i=arguments.length<3?void 0:Wm(arguments[2]),n=Ym(Gm(e),i,!1);if(void 0===n||!n.delete(t))return!1;if(n.size)return!0;var r=Xm.get(e);return r.delete(i),!!r.size||Xm.delete(e)}});var Um=Fm,qm=g,Zm=gn,Km=Um.has,Jm=Um.get,Qm=Um.key,tb=function(t,e,i){if(Km(t,e,i))return Jm(t,e,i);var n=Zm(e);return null!==n?tb(t,n,i):void 0};Um.exp({getMetadata:function(t,e){return tb(t,qm(e),arguments.length<3?void 0:Qm(arguments[2]))}});var eb=Of,ib=sm,nb=Fm,rb=g,ob=gn,sb=nb.keys,ab=nb.key,ub=function(t,e){var i=sb(t,e),n=ob(t);if(null===n)return i;var r=ub(n,e);return r.length?i.length?ib(new eb(i.concat(r))):r:i};nb.exp({getMetadataKeys:function(t){return ub(rb(t),arguments.length<2?void 0:ab(arguments[1]))}});var lb=Fm,hb=g,pb=lb.get,cb=lb.key;lb.exp({getOwnMetadata:function(t,e){return pb(t,hb(e),arguments.length<3?void 0:cb(arguments[2]))}});var fb=Fm,_b=g,db=fb.keys,yb=fb.key;fb.exp({getOwnMetadataKeys:function(t){return db(_b(t),arguments.length<2?void 0:yb(arguments[1]))}});var gb=Fm,vb=g,mb=gn,bb=gb.has,wb=gb.key,xb=function(t,e,i){if(bb(t,e,i))return!0;var n=mb(e);return null!==n&&xb(t,n,i)};gb.exp({hasMetadata:function(t,e){return xb(t,vb(e),arguments.length<3?void 0:wb(arguments[2]))}});var Sb=Fm,Pb=g,Vb=Sb.has,kb=Sb.key;Sb.exp({hasOwnMetadata:function(t,e){return Vb(t,Pb(e),arguments.length<3?void 0:kb(arguments[2]))}});var Ab=Fm,Cb=g,Eb=q,Lb=Ab.key,Nb=Ab.set;Ab.exp({metadata:function(t,e){return function(i,n){Nb(t,e,(void 0!==n?Cb:Eb)(i),Lb(n))}}});var Mb=ot,Tb=ec(),Ob=r.process,Rb="process"==Bt(Ob);Mb(Mb.G,{asap:function(t){var e=Rb&&Ob.domain;Tb(e?e.bind(t):t)}});var Bb=ot,Db=r,Fb=f,Ib=ec(),jb=xt("observable"),zb=q,$b=g,Hb=vp,Gb=_c(),Wb=E(),Yb=Mp,Xb=Yb.RETURN,Ub=function(t){return null==t?void 0:zb(t)},qb=function(t){var e=t._c;e&&(t._c=void 0,e())},Zb=function(t){return void 0===t._o},Kb=function(t){Zb(t)||(t._o=void 0,qb(t))},Jb=function(t,e){$b(t),this._c=void 0,this._o=t,t=new Qb(this);try{var i=e(t),n=i;null!=i&&("function"==typeof i.unsubscribe?i=function(){n.unsubscribe()}:zb(i),this._c=i)}catch(e){return void t.error(e)}Zb(this)&&qb(this)};Jb.prototype=Gb({},{unsubscribe:function(){Kb(this)}});var Qb=function(t){this._s=t};Qb.prototype=Gb({},{next:function(t){var e=this._s;if(!Zb(e)){var i=e._o;try{var n=Ub(i.next);if(n)return n.call(i,t)}catch(t){try{Kb(e)}finally{throw t}}}},error:function(t){var e=this._s;if(Zb(e))throw t;var i=e._o;e._o=void 0;try{var n=Ub(i.error);if(!n)throw t;t=n.call(i,t)}catch(t){try{qb(e)}finally{throw t}}return qb(e),t},complete:function(t){var e=this._s;if(!Zb(e)){var i=e._o;e._o=void 0;try{var n=Ub(i.complete);t=n?n.call(i,t):void 0}catch(t){try{qb(e)}finally{throw t}}return qb(e),t}}});var tw=function(t){Hb(this,tw,"Observable","_f")._f=zb(t)};Gb(tw.prototype,{subscribe:function(t){return new Jb(t,this._f)},forEach:function(t){var e=this;return new(Fb.Promise||Db.Promise)((function(i,n){zb(t);var r=e.subscribe({next:function(e){try{return t(e)}catch(t){n(t),r.unsubscribe()}},error:n,complete:i})}))}}),Gb(tw,{from:function(t){var e="function"==typeof this?this:tw,i=Ub($b(t)[jb]);if(i){var n=$b(i.call(t));return n.constructor===e?n:new e((function(t){return n.subscribe(t)}))}return new e((function(e){var i=!1;return Ib((function(){if(!i){try{if(Yb(t,!1,(function(t){if(e.next(t),i)return Xb}))===Xb)return}catch(t){if(i)throw t;return void e.error(t)}e.complete()}})),function(){i=!0}}))},of:function(){for(var t=0,e=arguments.length,i=new Array(e);t<e;)i[t]=arguments[t++];return new("function"==typeof this?this:tw)((function(t){var e=!1;return Ib((function(){if(!e){for(var n=0;n<i.length;++n)if(t.next(i[n]),e)return;t.complete()}})),function(){e=!0}}))}}),Wb(tw.prototype,jb,(function(){return this})),Bb(Bb.G,{Observable:tw}),Bl("Observable");var ew=r,iw=ot,nw=[].slice,rw=/MSIE .\./.test(lc),ow=function(t){return function(e,i){var n=arguments.length>2,r=!!n&&nw.call(arguments,2);return t(n?function(){("function"==typeof e?e:Function(e)).apply(this,r)}:e,i)}};iw(iw.G+iw.B+iw.F*rw,{setTimeout:ow(ew.setTimeout),setInterval:ow(ew.setInterval)});var sw=ot,aw=Up;sw(sw.G+sw.B,{setImmediate:aw.set,clearImmediate:aw.clear});for(var uw=$l,lw=fe,hw=U,pw=r,cw=E(),fw=Ps,_w=xt,dw=_w("iterator"),yw=_w("toStringTag"),gw=fw.Array,vw={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},mw=lw(vw),bw=0;bw<mw.length;bw++){var ww,xw=mw[bw],Sw=vw[xw],Pw=pw[xw],Vw=Pw&&Pw.prototype;if(Vw&&(Vw[dw]||cw(Vw,dw,gw),Vw[yw]||cw(Vw,yw,xw),fw[xw]=gw,Sw))for(ww in uw)Vw[ww]||hw(Vw,ww,uw[ww],!0)}var kw=fe,Aw=zt,Cw=Un,Ew=xt("iterator"),Lw=Ps,Nw=f.isIterable=function(t){var e=Object(t);return void 0!==e[Ew]||"@@iterator"in e||Lw.hasOwnProperty(Cw(e))},Mw=K,Tw=ot,Ow=C,Rw=Fn,Bw=De,Dw=gn,Fw=fe,Iw=_,jw=function(t,e){for(var i,n=Aw(t),r=kw(n),o=r.length,s=0;o>s;)if(n[i=r[s++]]===e)return i},zw=q,$w=Mp,Hw=Nw,Gw=Es,Ww=Dl,Yw=d,Xw=zt,Uw=u,qw=s,Zw=function(t){var e=1==t,i=4==t;return function(n,r,o){var s,a,u,l=Mw(r,o,3),h=Xw(n),p=e||7==t||2==t?new("function"==typeof this?this:tx):void 0;for(s in h)if(qw(h,s)&&(u=l(a=h[s],s,n),t))if(e)p[s]=u;else if(u)switch(t){case 2:p[s]=a;break;case 3:return!0;case 5:return a;case 6:return s;case 7:p[u[0]]=u[1]}else if(i)return!1;return 3==t||i?i:p}},Kw=Zw(6),Jw=function(t){return function(e){return new Qw(e,t)}},Qw=function(t,e){this._t=Xw(t),this._a=Fw(t),this._i=0,this._k=e};function tx(t){var e=Bw(null);return null!=t&&(Hw(t)?$w(t,!0,(function(t,i){e[t]=i})):Rw(e,t)),e}Gw(Qw,"Dict",(function(){var t,e=this,i=e._t,n=e._a,r=e._k;do{if(e._i>=n.length)return e._t=void 0,Ww(1)}while(!qw(i,t=n[e._i++]));return Ww(0,"keys"==r?t:"values"==r?i[t]:[t,i[t]])})),tx.prototype=null,Tw(Tw.G+Tw.F,{Dict:tx}),Tw(Tw.S,"Dict",{keys:Jw("keys"),values:Jw("values"),entries:Jw("entries"),forEach:Zw(0),map:Zw(1),filter:Zw(2),some:Zw(3),every:Zw(4),find:Zw(5),findKey:Kw,mapPairs:Zw(7),reduce:function(t,e,i){zw(e);var n,r,o=Xw(t),s=Fw(o),a=s.length,u=0;if(arguments.length<3){if(!a)throw TypeError("Reduce of empty object with no initial value");n=o[s[u++]]}else n=Object(i);for(;a>u;)qw(o,r=s[u++])&&(n=e(n,o[r],r,t));return n},keyOf:jw,includes:function(t,e){return void 0!==(e==e?jw(t,e):Kw(t,(function(t){return t!=t})))},has:qw,get:function(t,e){if(qw(t,e))return t[e]},set:function(t,e,i){return Uw&&e in Object?Iw.f(t,e,Ow(0,i)):t[e]=i,t},isDict:function(t){return Yw(t)&&Dw(t)===tx.prototype}});var ex=g,ix=Qa;f.getIterator=function(t){var e=ix(t);if("function"!=typeof e)throw TypeError(t+" is not iterable!");return ex(e.call(t))};var nx=r,rx=nx,ox=Kn,sx=q,ax=function(){for(var t=sx(this),e=arguments.length,i=new Array(e),n=0,r=rx._,o=!1;e>n;)(i[n]=arguments[n++])===r&&(o=!0);return function(){var n,s=arguments.length,a=0,u=0;if(!o&&!s)return ox(t,i,this);if(n=i.slice(),o)for(;e>a;a++)n[a]===r&&(n[a]=arguments[u++]);for(;s>u;)n.push(arguments[u++]);return ox(t,n,this)}},ux=r,lx=f,hx=ot,px=ax;hx(hx.G+hx.F,{delay:function(t){return new(lx.Promise||ux.Promise)((function(e){setTimeout(px.call(e,!0),t)}))}});var cx=nx,fx=ot;f._=cx._=cx._||{},fx(fx.P+fx.F,"Function",{part:ax});var _x=ot;_x(_x.S+_x.F,"Object",{isObject:d});var dx=ot;dx(dx.S+dx.F,"Object",{classof:Un});var yx=_,gx=Ye,vx=Eg,mx=zt,bx=function(t,e){for(var i,n=vx(mx(e)),r=n.length,o=0;r>o;)yx.f(t,i=n[o++],gx.f(e,i));return t},wx=ot,xx=bx;wx(wx.S+wx.F,"Object",{define:xx});var Sx=ot,Px=bx,Vx=De;Sx(Sx.S+Sx.F,"Object",{make:function(t,e){return Px(Vx(t),e)}}),$s(Number,"Number",(function(t){this._l=+t,this._i=0}),(function(){var t=this._i++,e=!(t<this._l);return{done:e,value:e?void 0:t}}));var kx=function(t,e){var i=e===Object(e)?function(t){return e[t]}:e;return function(e){return String(e).replace(t,i)}},Ax=ot,Cx=kx(/[\\^$*+?.()|[\]{}]/g,"\\$&");Ax(Ax.S,"RegExp",{escape:function(t){return Cx(t)}});var Ex=ot,Lx=kx(/[&<>"']/g,{"&":"&","<":"<",">":">",'"':""","'":"'"});Ex(Ex.P+Ex.F,"String",{escapeHTML:function(){return Lx(this)}});var Nx,Mx,Tx,Ox=ot,Rx=kx(/&(?:amp|lt|gt|quot|apos);/g,{"&":"&","<":"<",">":">",""":'"',"'":"'"});Ox(Ox.P+Ox.F,"String",{unescapeHTML:function(){return Rx(this)}}),function(){function t(t){if(!(0 in arguments))throw new TypeError("1 argument is required");do{if(this===t)return!0}while(t=t&&t.parentNode);return!1}if("HTMLElement"in self&&"contains"in HTMLElement.prototype)try{delete HTMLElement.prototype.contains}catch(t){}"Node"in self?Node.prototype.contains=t:document.contains=Element.prototype.contains=t}(),function(t){Document.prototype.remove=Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)},"Text"in t&&(Text.prototype.remove=Element.prototype.remove)}("object"==typeof window&&window||"object"==typeof self&&self||"object"==typeof e&&e||{}),Nx=function(){function t(t){return"function"==typeof Node?t instanceof Node:t&&"object"==typeof t&&t.nodeName&&t.nodeType>=1&&t.nodeType<=12}return function(e){if(1===e.length)return t(e[0])?e[0]:document.createTextNode(e[0]+"");for(var i=document.createDocumentFragment(),n=0;n<e.length;n++)i.appendChild(t(e[n])?e[n]:document.createTextNode(e[n]+""));return i}}(),Document.prototype.append=Element.prototype.append=function(){this.appendChild(Nx(arguments))},function(t,e){var i,n=function(){var t=!0,i=function(e,i,n,r){Object.defineProperty?Object.defineProperty(e,i,{configurable:!1===t||!!r,get:n}):e.__defineGetter__(i,n)};try{i({},"support")}catch(e){t=!1}return function(t,n){var r=this,o=[],s={},a=0,u=0,l=function(t){i(r,t,(function(){return p(),o[t]}),!1)},h=function(){if(a>=u)for(;u<a;++u)l(u)},p=function(){var e,i,r=arguments,u=/\s+/;if(r.length)for(i=0;i<r.length;++i)if(u.test(r[i]))throw(e=new SyntaxError('String "'+r[i]+'" contains an invalid character')).code=5,e.name="InvalidCharacterError",e;for(""===(o="object"==typeof t[n]?(""+t[n].baseVal).replace(/^\s+|\s+$/g,"").split(u):(""+t[n]).replace(/^\s+|\s+$/g,"").split(u))[0]&&(o=[]),s={},i=0;i<o.length;++i)s[o[i]]=!0;a=o.length,h()};return p(),i(r,"length",(function(){return p(),a})),r.toLocaleString=r.toString=function(){return p(),o.join(" ")},r.item=function(t){return p(),o[t]},r.contains=function(t){return p(),!!s[t]},r.add=function(){p.apply(r,e=arguments);for(var e,i,u=0,l=e.length;u<l;++u)s[i=e[u]]||(o.push(i),s[i]=!0);a!==o.length&&(a=o.length>>>0,"object"==typeof t[n]?t[n].baseVal=o.join(" "):t[n]=o.join(" "),h())},r.remove=function(){p.apply(r,e=arguments);for(var e,i={},u=0,l=[];u<e.length;++u)i[e[u]]=!0,delete s[e[u]];for(u=0;u<o.length;++u)i[o[u]]||l.push(o[u]);o=l,a=l.length>>>0,"object"==typeof t[n]?t[n].baseVal=o.join(" "):t[n]=o.join(" "),h()},r.toggle=function(t,i){return p.apply(r,[t]),e!==i?i?(r.add(t),!0):(r.remove(t),!1):s[t]?(r.remove(t),!1):(r.add(t),!0)},r.forEach=Array.prototype.forEach,r}}();"DOMTokenList"in(i=t)&&i.DOMTokenList&&(!document.createElementNS||!document.createElementNS("http://www.w3.org/2000/svg","svg")||document.createElementNS("http://www.w3.org/2000/svg","svg").classList instanceof DOMTokenList)||(i.DOMTokenList=n),function(){var t=document.createElement("span");"classList"in t&&(t.classList.toggle("x",!1),t.classList.contains("x")&&(t.classList.constructor.prototype.toggle=function(t){var i=arguments[1];if(i===e){var n=!this.contains(t);return this[n?"add":"remove"](t),n}return i=!!i,this[i?"add":"remove"](t),i}))}(),function(){var t=document.createElement("span");if("classList"in t&&(t.classList.add("a","b"),!t.classList.contains("b"))){var e=t.classList.constructor.prototype.add;t.classList.constructor.prototype.add=function(){for(var t=arguments,i=arguments.length,n=0;n<i;n++)e.call(this,t[n])}}}(),function(){var t=document.createElement("span");if("classList"in t&&(t.classList.add("a"),t.classList.add("b"),t.classList.remove("a","b"),t.classList.contains("b"))){var e=t.classList.constructor.prototype.remove;t.classList.constructor.prototype.remove=function(){for(var t=arguments,i=arguments.length,n=0;n<i;n++)e.call(this,t[n])}}}(),function(t){var e=!0,i=function(t,i,n,r){Object.defineProperty?Object.defineProperty(t,i,{configurable:!1===e||!!r,get:n}):t.__defineGetter__(i,n)};try{i({},"support")}catch(t){e=!1}var r=function(t,o,s){i(t.prototype,o,(function(){var t,a=this,u="__defineGetter__DEFINE_PROPERTY"+o;if(a[u])return t;if(a[u]=!0,!1===e){for(var l,h=r.mirror||document.createElement("div"),p=h.childNodes,c=p.length,f=0;f<c;++f)if(p[f]._R===a){l=p[f];break}l||(l=h.appendChild(document.createElement("div"))),t=DOMTokenList.call(l,a,s)}else t=new n(a,s);return i(a,o,(function(){return t})),delete a[u],t}),!0)};r(t.Element,"classList","className"),r(t.HTMLElement,"classList","className"),r(t.HTMLLinkElement,"relList","rel"),r(t.HTMLAnchorElement,"relList","rel"),r(t.HTMLAreaElement,"relList","rel")}(t)}("object"==typeof window&&window||"object"==typeof self&&self||"object"==typeof e&&e||{}),Tx={},function(t){function e(){this._delay=0,this._endDelay=0,this._fill="none",this._iterationStart=0,this._iterations=1,this._duration=0,this._playbackRate=1,this._direction="normal",this._easing="linear",this._easingFunction=p}function i(){return t.isDeprecated("Invalid timing inputs","2016-03-02","TypeError exceptions will be thrown instead.",!0)}function n(i,n,r){var o=new e;return n&&(o.fill="both",o.duration="auto"),"number"!=typeof i||isNaN(i)?void 0!==i&&Object.getOwnPropertyNames(i).forEach((function(e){if("auto"!=i[e]){if(("number"==typeof o[e]||"duration"==e)&&("number"!=typeof i[e]||isNaN(i[e])))return;if("fill"==e&&-1==l.indexOf(i[e]))return;if("direction"==e&&-1==h.indexOf(i[e]))return;if("playbackRate"==e&&1!==i[e]&&t.isDeprecated("AnimationEffectTiming.playbackRate","2014-11-28","Use Animation.playbackRate instead."))return;o[e]=i[e]}})):o.duration=i,o}function r(t,e,i,n){return t<0||t>1||i<0||i>1?p:function(r){function o(t,e,i){return 3*t*(1-i)*(1-i)*i+3*e*(1-i)*i*i+i*i*i}if(r<=0){var s=0;return t>0?s=e/t:!e&&i>0&&(s=n/i),s*r}if(r>=1){var a=0;return i<1?a=(n-1)/(i-1):1==i&&t<1&&(a=(e-1)/(t-1)),1+a*(r-1)}for(var u=0,l=1;u<l;){var h=(u+l)/2,p=o(t,i,h);if(Math.abs(r-p)<1e-5)return o(e,n,h);p<r?u=h:l=h}return o(e,n,h)}}function o(t,e){return function(i){if(i>=1)return 1;var n=1/t;return(i+=e*n)-i%n}}function s(t){y||(y=document.createElement("div").style),y.animationTimingFunction="",y.animationTimingFunction=t;var e=y.animationTimingFunction;if(""==e&&i())throw new TypeError(t+" is not a valid value for easing");return e}function a(t){if("linear"==t)return p;var e=v.exec(t);if(e)return r.apply(this,e.slice(1).map(Number));var i=m.exec(t);if(i)return o(Number(i[1]),_);var n=b.exec(t);return n?o(Number(n[1]),{start:c,middle:f,end:_}[n[2]]):d[t]||p}function u(t,e,i){if(null==e)return w;var n=i.delay+t+i.endDelay;return e<Math.min(i.delay,n)?x:e>=Math.min(i.delay+t,n)?S:P}var l="backwards|forwards|both|none".split("|"),h="reverse|alternate|alternate-reverse".split("|"),p=function(t){return t};e.prototype={_setMember:function(e,i){this["_"+e]=i,this._effect&&(this._effect._timingInput[e]=i,this._effect._timing=t.normalizeTimingInput(this._effect._timingInput),this._effect.activeDuration=t.calculateActiveDuration(this._effect._timing),this._effect._animation&&this._effect._animation._rebuildUnderlyingAnimation())},get playbackRate(){return this._playbackRate},set delay(t){this._setMember("delay",t)},get delay(){return this._delay},set endDelay(t){this._setMember("endDelay",t)},get endDelay(){return this._endDelay},set fill(t){this._setMember("fill",t)},get fill(){return this._fill},set iterationStart(t){if((isNaN(t)||t<0)&&i())throw new TypeError("iterationStart must be a non-negative number, received: "+t);this._setMember("iterationStart",t)},get iterationStart(){return this._iterationStart},set duration(t){if("auto"!=t&&(isNaN(t)||t<0)&&i())throw new TypeError("duration must be non-negative or auto, received: "+t);this._setMember("duration",t)},get duration(){return this._duration},set direction(t){this._setMember("direction",t)},get direction(){return this._direction},set easing(t){this._easingFunction=a(s(t)),this._setMember("easing",t)},get easing(){return this._easing},set iterations(t){if((isNaN(t)||t<0)&&i())throw new TypeError("iterations must be non-negative, received: "+t);this._setMember("iterations",t)},get iterations(){return this._iterations}};var c=1,f=.5,_=0,d={ease:r(.25,.1,.25,1),"ease-in":r(.42,0,1,1),"ease-out":r(0,0,.58,1),"ease-in-out":r(.42,0,.58,1),"step-start":o(1,c),"step-middle":o(1,f),"step-end":o(1,_)},y=null,g="\\s*(-?\\d+\\.?\\d*|-?\\.\\d+)\\s*",v=new RegExp("cubic-bezier\\("+g+","+g+","+g+","+g+"\\)"),m=/steps\(\s*(\d+)\s*\)/,b=/steps\(\s*(\d+)\s*,\s*(start|middle|end)\s*\)/,w=0,x=1,S=2,P=3;t.cloneTimingInput=function(t){if("number"==typeof t)return t;var e={};for(var i in t)e[i]=t[i];return e},t.makeTiming=n,t.numericTimingToObject=function(t){return"number"==typeof t&&(t=isNaN(t)?{duration:0}:{duration:t}),t},t.normalizeTimingInput=function(e,i){return n(e=t.numericTimingToObject(e),i)},t.calculateActiveDuration=function(t){return Math.abs(function(t){return 0===t.duration||0===t.iterations?0:t.duration*t.iterations}(t)/t.playbackRate)},t.calculateIterationProgress=function(t,e,i){var n=u(t,e,i),r=function(t,e,i,n,r){switch(n){case x:return"backwards"==e||"both"==e?0:null;case P:return i-r;case S:return"forwards"==e||"both"==e?t:null;case w:return null}}(t,i.fill,e,n,i.delay);if(null===r)return null;var o=function(t,e,i,n,r){var o=r;return 0===t?e!==x&&(o+=i):o+=n/t,o}(i.duration,n,i.iterations,r,i.iterationStart),s=function(t,e,i,n,r,o){var s=t===1/0?e%1:t%1;return 0!==s||i!==S||0===n||0===r&&0!==o||(s=1),s}(o,i.iterationStart,n,i.iterations,r,i.duration),a=function(t,e,i,n){return t===S&&e===1/0?1/0:1===i?Math.floor(n)-1:Math.floor(n)}(n,i.iterations,s,o),l=function(t,e,i){var n=t;if("normal"!==t&&"reverse"!==t){var r=e;"alternate-reverse"===t&&(r+=1),n="normal",r!==1/0&&r%2!=0&&(n="reverse")}return"normal"===n?i:1-i}(i.direction,a,s);return i._easingFunction(l)},t.calculatePhase=u,t.normalizeEasing=s,t.parseEasingFunction=a}(Mx={}),function(t){function e(t,e){return t in a&&a[t][e]||e}function i(t,i,n){if(!function(t){return"display"===t||0===t.lastIndexOf("animation",0)||0===t.lastIndexOf("transition",0)}(t)){var s=r[t];if(s)for(var a in o.style[t]=i,s){var u=s[a],l=o.style[u];n[u]=e(u,l)}else n[t]=e(t,i)}}function n(t){var e=[];for(var i in t)if(!(i in["easing","offset","composite"])){var n=t[i];Array.isArray(n)||(n=[n]);for(var r,o=n.length,s=0;s<o;s++)(r={}).offset="offset"in t?t.offset:1==o?1:s/(o-1),"easing"in t&&(r.easing=t.easing),"composite"in t&&(r.composite=t.composite),r[i]=n[s],e.push(r)}return e.sort((function(t,e){return t.offset-e.offset})),e}var r={background:["backgroundImage","backgroundPosition","backgroundSize","backgroundRepeat","backgroundAttachment","backgroundOrigin","backgroundClip","backgroundColor"],border:["borderTopColor","borderTopStyle","borderTopWidth","borderRightColor","borderRightStyle","borderRightWidth","borderBottomColor","borderBottomStyle","borderBottomWidth","borderLeftColor","borderLeftStyle","borderLeftWidth"],borderBottom:["borderBottomWidth","borderBottomStyle","borderBottomColor"],borderColor:["borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"],borderLeft:["borderLeftWidth","borderLeftStyle","borderLeftColor"],borderRadius:["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],borderRight:["borderRightWidth","borderRightStyle","borderRightColor"],borderTop:["borderTopWidth","borderTopStyle","borderTopColor"],borderWidth:["borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth"],flex:["flexGrow","flexShrink","flexBasis"],font:["fontFamily","fontSize","fontStyle","fontVariant","fontWeight","lineHeight"],margin:["marginTop","marginRight","marginBottom","marginLeft"],outline:["outlineColor","outlineStyle","outlineWidth"],padding:["paddingTop","paddingRight","paddingBottom","paddingLeft"]},o=document.createElementNS("http://www.w3.org/1999/xhtml","div"),s={thin:"1px",medium:"3px",thick:"5px"},a={borderBottomWidth:s,borderLeftWidth:s,borderRightWidth:s,borderTopWidth:s,fontSize:{"xx-small":"60%","x-small":"75%",small:"89%",medium:"100%",large:"120%","x-large":"150%","xx-large":"200%"},fontWeight:{normal:"400",bold:"700"},outlineWidth:s,textShadow:{none:"0px 0px 0px transparent"},boxShadow:{none:"0px 0px 0px 0px transparent"}};t.convertToArrayForm=n,t.normalizeKeyframes=function(e){if(null==e)return[];window.Symbol&&Symbol.iterator&&Array.prototype.from&&e[Symbol.iterator]&&(e=Array.from(e)),Array.isArray(e)||(e=n(e));for(var r=e.map((function(e){var n={};for(var r in e){var o=e[r];if("offset"==r){if(null!=o){if(o=Number(o),!isFinite(o))throw new TypeError("Keyframe offsets must be numbers.");if(o<0||o>1)throw new TypeError("Keyframe offsets must be between 0 and 1.")}}else if("composite"==r){if("add"==o||"accumulate"==o)throw{type:DOMException.NOT_SUPPORTED_ERR,name:"NotSupportedError",message:"add compositing is not supported"};if("replace"!=o)throw new TypeError("Invalid composite mode "+o+".")}else o="easing"==r?t.normalizeEasing(o):""+o;i(r,o,n)}return null==n.offset&&(n.offset=null),null==n.easing&&(n.easing="linear"),n})),o=!0,s=-1/0,a=0;a<r.length;a++){var u=r[a].offset;if(null!=u){if(u<s)throw new TypeError("Keyframes are not loosely sorted by offset. Sort or specify offsets.");s=u}else o=!1}return r=r.filter((function(t){return t.offset>=0&&t.offset<=1})),o||function(){var t=r.length;null==r[t-1].offset&&(r[t-1].offset=1),t>1&&null==r[0].offset&&(r[0].offset=0);for(var e=0,i=r[0].offset,n=1;n<t;n++){var o=r[n].offset;if(null!=o){for(var s=1;s<n-e;s++)r[e+s].offset=i+(o-i)*s/(n-e);e=n,i=o}}}(),r}}(Mx),function(t){var e={};t.isDeprecated=function(t,i,n,r){var o=r?"are":"is",s=new Date,a=new Date(i);return a.setMonth(a.getMonth()+3),!(s<a&&(t in e||console.warn("Web Animations: "+t+" "+o+" deprecated and will stop working on "+a.toDateString()+". "+n),e[t]=!0,1))},t.deprecated=function(e,i,n,r){var o=r?"are":"is";if(t.isDeprecated(e,i,n,r))throw new Error(e+" "+o+" no longer supported. "+n)}}(Mx),function(){if(document.documentElement.animate){var t=document.documentElement.animate([],0),e=!0;if(t&&(e=!1,"play|currentTime|pause|reverse|playbackRate|cancel|finish|startTime|playState".split("|").forEach((function(i){void 0===t[i]&&(e=!0)}))),!e)return}!function(t,e){e.convertEffectInput=function(i){var n=function(t){for(var e={},i=0;i<t.length;i++)for(var n in t[i])if("offset"!=n&&"easing"!=n&&"composite"!=n){var r={offset:t[i].offset,easing:t[i].easing,value:t[i][n]};e[n]=e[n]||[],e[n].push(r)}for(var o in e){var s=e[o];if(0!=s[0].offset||1!=s[s.length-1].offset)throw{type:DOMException.NOT_SUPPORTED_ERR,name:"NotSupportedError",message:"Partial keyframes are not supported"}}return e}(t.normalizeKeyframes(i)),r=function(i){var n=[];for(var r in i)for(var o=i[r],s=0;s<o.length-1;s++){var a=s,u=s+1,l=o[a].offset,h=o[u].offset,p=l,c=h;0==s&&(p=-1/0,0==h&&(u=a)),s==o.length-2&&(c=1/0,1==l&&(a=u)),n.push({applyFrom:p,applyTo:c,startOffset:o[a].offset,endOffset:o[u].offset,easingFunction:t.parseEasingFunction(o[a].easing),property:r,interpolation:e.propertyInterpolation(r,o[a].value,o[u].value)})}return n.sort((function(t,e){return t.startOffset-e.startOffset})),n}(n);return function(t,i){if(null!=i)r.filter((function(t){return i>=t.applyFrom&&i<t.applyTo})).forEach((function(n){var r=i-n.startOffset,o=n.endOffset-n.startOffset,s=0==o?0:n.easingFunction(r/o);e.apply(t,n.property,n.interpolation(s))}));else for(var o in n)"offset"!=o&&"easing"!=o&&"composite"!=o&&e.clear(t,o)}}}(Mx,Tx),function(t,e){function i(t){return t.replace(/-(.)/g,(function(t,e){return e.toUpperCase()}))}function n(t,e,i){r[i]=r[i]||[],r[i].push([t,e])}var r={};e.addPropertiesHandler=function(t,e,r){for(var o=0;o<r.length;o++)n(t,e,i(r[o]))};var o={backgroundColor:"transparent",backgroundPosition:"0% 0%",borderBottomColor:"currentColor",borderBottomLeftRadius:"0px",borderBottomRightRadius:"0px",borderBottomWidth:"3px",borderLeftColor:"currentColor",borderLeftWidth:"3px",borderRightColor:"currentColor",borderRightWidth:"3px",borderSpacing:"2px",borderTopColor:"currentColor",borderTopLeftRadius:"0px",borderTopRightRadius:"0px",borderTopWidth:"3px",bottom:"auto",clip:"rect(0px, 0px, 0px, 0px)",color:"black",fontSize:"100%",fontWeight:"400",height:"auto",left:"auto",letterSpacing:"normal",lineHeight:"120%",marginBottom:"0px",marginLeft:"0px",marginRight:"0px",marginTop:"0px",maxHeight:"none",maxWidth:"none",minHeight:"0px",minWidth:"0px",opacity:"1.0",outlineColor:"invert",outlineOffset:"0px",outlineWidth:"3px",paddingBottom:"0px",paddingLeft:"0px",paddingRight:"0px",paddingTop:"0px",right:"auto",strokeDasharray:"none",strokeDashoffset:"0px",textIndent:"0px",textShadow:"0px 0px 0px transparent",top:"auto",transform:"",verticalAlign:"0px",visibility:"visible",width:"auto",wordSpacing:"normal",zIndex:"auto"};e.propertyInterpolation=function(n,s,a){var u=n;/-/.test(n)&&!t.isDeprecated("Hyphenated property names","2016-03-22","Use camelCase instead.",!0)&&(u=i(n)),"initial"!=s&&"initial"!=a||("initial"==s&&(s=o[u]),"initial"==a&&(a=o[u]));for(var l=s==a?[]:r[u],h=0;l&&h<l.length;h++){var p=l[h][0](s),c=l[h][0](a);if(void 0!==p&&void 0!==c){var f=l[h][1](p,c);if(f){var _=e.Interpolation.apply(null,f);return function(t){return 0==t?s:1==t?a:_(t)}}}}return e.Interpolation(!1,!0,(function(t){return t?a:s}))}}(Mx,Tx),function(t,e){e.KeyframeEffect=function(i,n,r,o){var s,a=function(e){var i=t.calculateActiveDuration(e),n=function(n){return t.calculateIterationProgress(i,n,e)};return n._totalDuration=e.delay+i+e.endDelay,n}(t.normalizeTimingInput(r)),u=e.convertEffectInput(n),l=function(){u(i,s)};return l._update=function(t){return null!==(s=a(t))},l._clear=function(){u(i,null)},l._hasSameTarget=function(t){return i===t},l._target=i,l._totalDuration=a._totalDuration,l._id=o,l}}(Mx,Tx),function(t){function e(t,e,i){i.enumerable=!0,i.configurable=!0,Object.defineProperty(t,e,i)}function i(t){this._element=t,this._surrogateStyle=document.createElementNS("http://www.w3.org/1999/xhtml","div").style,this._style=t.style,this._length=0,this._isAnimatedProperty={},this._updateSvgTransformAttr=function(t,e){return!(!e.namespaceURI||-1==e.namespaceURI.indexOf("/svg"))&&(r in t||(t[r]=/Trident|MSIE|IEMobile|Edge|Android 4/i.test(t.navigator.userAgent)),t[r])}(window,t),this._savedTransformAttr=null;for(var e=0;e<this._style.length;e++){var i=this._style[e];this._surrogateStyle[i]=this._style[i]}this._updateIndices()}function n(t){if(!t._webAnimationsPatchedStyle){var n=new i(t);try{e(t,"style",{get:function(){return n}})}catch(n){t.style._set=function(e,i){t.style[e]=i},t.style._clear=function(e){t.style[e]=""}}t._webAnimationsPatchedStyle=t.style}}var r="_webAnimationsUpdateSvgTransformAttr",o={cssText:1,length:1,parentRule:1},s={getPropertyCSSValue:1,getPropertyPriority:1,getPropertyValue:1,item:1,removeProperty:1,setProperty:1},a={removeProperty:1,setProperty:1};for(var u in i.prototype={get cssText(){return this._surrogateStyle.cssText},set cssText(t){for(var e={},i=0;i<this._surrogateStyle.length;i++)e[this._surrogateStyle[i]]=!0;for(this._surrogateStyle.cssText=t,this._updateIndices(),i=0;i<this._surrogateStyle.length;i++)e[this._surrogateStyle[i]]=!0;for(var n in e)this._isAnimatedProperty[n]||this._style.setProperty(n,this._surrogateStyle.getPropertyValue(n))},get length(){return this._surrogateStyle.length},get parentRule(){return this._style.parentRule},_updateIndices:function(){for(;this._length<this._surrogateStyle.length;)Object.defineProperty(this,this._length,{configurable:!0,enumerable:!1,get:function(t){return function(){return this._surrogateStyle[t]}}(this._length)}),this._length++;for(;this._length>this._surrogateStyle.length;)this._length--,Object.defineProperty(this,this._length,{configurable:!0,enumerable:!1,value:void 0})},_set:function(e,i){this._style[e]=i,this._isAnimatedProperty[e]=!0,this._updateSvgTransformAttr&&"transform"==t.unprefixedPropertyName(e)&&(null==this._savedTransformAttr&&(this._savedTransformAttr=this._element.getAttribute("transform")),this._element.setAttribute("transform",t.transformToSvgMatrix(i)))},_clear:function(e){this._style[e]=this._surrogateStyle[e],this._updateSvgTransformAttr&&"transform"==t.unprefixedPropertyName(e)&&(this._savedTransformAttr?this._element.setAttribute("transform",this._savedTransformAttr):this._element.removeAttribute("transform"),this._savedTransformAttr=null),delete this._isAnimatedProperty[e]}},s)i.prototype[u]=function(t,e){return function(){var i=this._surrogateStyle[t].apply(this._surrogateStyle,arguments);return e&&(this._isAnimatedProperty[arguments[0]]||this._style[t].apply(this._style,arguments),this._updateIndices()),i}}(u,u in a);for(var l in document.documentElement.style)l in o||l in s||function(t){e(i.prototype,t,{get:function(){return this._surrogateStyle[t]},set:function(e){this._surrogateStyle[t]=e,this._updateIndices(),this._isAnimatedProperty[t]||(this._style[t]=e)}})}(l);t.apply=function(e,i,r){n(e),e.style._set(t.propertyName(i),r)},t.clear=function(e,i){e._webAnimationsPatchedStyle&&e.style._clear(t.propertyName(i))}}(Tx),function(t){window.Element.prototype.animate=function(e,i){var n="";return i&&i.id&&(n=i.id),t.timeline._play(t.KeyframeEffect(this,e,i,n))}}(Tx),function(t){function e(t,i,n){if("number"==typeof t&&"number"==typeof i)return t*(1-n)+i*n;if("boolean"==typeof t&&"boolean"==typeof i)return n<.5?t:i;if(t.length==i.length){for(var r=[],o=0;o<t.length;o++)r.push(e(t[o],i[o],n));return r}throw"Mismatched interpolation arguments "+t+":"+i}t.Interpolation=function(t,i,n){return function(r){return n(e(t,i,r))}}}(Tx),function(t){var e=function(){function t(t,e){for(var i=[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]],n=0;n<4;n++)for(var r=0;r<4;r++)for(var o=0;o<4;o++)i[n][r]+=e[n][o]*t[o][r];return i}return function(e,i,n,r,o){for(var s=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]],a=0;a<4;a++)s[a][3]=o[a];for(a=0;a<3;a++)for(var u=0;u<3;u++)s[3][a]+=e[u]*s[u][a];var l=r[0],h=r[1],p=r[2],c=r[3],f=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]];f[0][0]=1-2*(h*h+p*p),f[0][1]=2*(l*h-p*c),f[0][2]=2*(l*p+h*c),f[1][0]=2*(l*h+p*c),f[1][1]=1-2*(l*l+p*p),f[1][2]=2*(h*p-l*c),f[2][0]=2*(l*p-h*c),f[2][1]=2*(h*p+l*c),f[2][2]=1-2*(l*l+h*h),s=t(s,f);var _=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]];for(n[2]&&(_[2][1]=n[2],s=t(s,_)),n[1]&&(_[2][1]=0,_[2][0]=n[0],s=t(s,_)),n[0]&&(_[2][0]=0,_[1][0]=n[0],s=t(s,_)),a=0;a<3;a++)for(u=0;u<3;u++)s[a][u]*=i[a];return function(t){return 0==t[0][2]&&0==t[0][3]&&0==t[1][2]&&0==t[1][3]&&0==t[2][0]&&0==t[2][1]&&1==t[2][2]&&0==t[2][3]&&0==t[3][2]&&1==t[3][3]}(s)?[s[0][0],s[0][1],s[1][0],s[1][1],s[3][0],s[3][1]]:s[0].concat(s[1],s[2],s[3])}}();t.composeMatrix=e,t.quat=function(e,i,n){var r=t.dot(e,i);r=function(t,e,i){return Math.max(Math.min(t,i),e)}(r,-1,1);var o=[];if(1===r)o=e;else for(var s=Math.acos(r),a=1*Math.sin(n*s)/Math.sqrt(1-r*r),u=0;u<4;u++)o.push(e[u]*(Math.cos(n*s)-r*a)+i[u]*a);return o}}(Tx),function(t,e){t.sequenceNumber=0;var i=function(t,e,i){this.target=t,this.currentTime=e,this.timelineTime=i,this.type="finish",this.bubbles=!1,this.cancelable=!1,this.currentTarget=t,this.defaultPrevented=!1,this.eventPhase=Event.AT_TARGET,this.timeStamp=Date.now()};e.Animation=function(e){this.id="",e&&e._id&&(this.id=e._id),this._sequenceNumber=t.sequenceNumber++,this._currentTime=0,this._startTime=null,this._paused=!1,this._playbackRate=1,this._inTimeline=!0,this._finishedFlag=!0,this.onfinish=null,this._finishHandlers=[],this._effect=e,this._inEffect=this._effect._update(0),this._idle=!0,this._currentTimePending=!1},e.Animation.prototype={_ensureAlive:function(){this.playbackRate<0&&0===this.currentTime?this._inEffect=this._effect._update(-1):this._inEffect=this._effect._update(this.currentTime),this._inTimeline||!this._inEffect&&this._finishedFlag||(this._inTimeline=!0,e.timeline._animations.push(this))},_tickCurrentTime:function(t,e){t!=this._currentTime&&(this._currentTime=t,this._isFinished&&!e&&(this._currentTime=this._playbackRate>0?this._totalDuration:0),this._ensureAlive())},get currentTime(){return this._idle||this._currentTimePending?null:this._currentTime},set currentTime(t){t=+t,isNaN(t)||(e.restart(),this._paused||null==this._startTime||(this._startTime=this._timeline.currentTime-t/this._playbackRate),this._currentTimePending=!1,this._currentTime!=t&&(this._idle&&(this._idle=!1,this._paused=!0),this._tickCurrentTime(t,!0),e.applyDirtiedAnimation(this)))},get startTime(){return this._startTime},set startTime(t){t=+t,isNaN(t)||this._paused||this._idle||(this._startTime=t,this._tickCurrentTime((this._timeline.currentTime-this._startTime)*this.playbackRate),e.applyDirtiedAnimation(this))},get playbackRate(){return this._playbackRate},set playbackRate(t){if(t!=this._playbackRate){var i=this.currentTime;this._playbackRate=t,this._startTime=null,"paused"!=this.playState&&"idle"!=this.playState&&(this._finishedFlag=!1,this._idle=!1,this._ensureAlive(),e.applyDirtiedAnimation(this)),null!=i&&(this.currentTime=i)}},get _isFinished(){return!this._idle&&(this._playbackRate>0&&this._currentTime>=this._totalDuration||this._playbackRate<0&&this._currentTime<=0)},get _totalDuration(){return this._effect._totalDuration},get playState(){return this._idle?"idle":null==this._startTime&&!this._paused&&0!=this.playbackRate||this._currentTimePending?"pending":this._paused?"paused":this._isFinished?"finished":"running"},_rewind:function(){if(this._playbackRate>=0)this._currentTime=0;else{if(!(this._totalDuration<1/0))throw new DOMException("Unable to rewind negative playback rate animation with infinite duration","InvalidStateError");this._currentTime=this._totalDuration}},play:function(){this._paused=!1,(this._isFinished||this._idle)&&(this._rewind(),this._startTime=null),this._finishedFlag=!1,this._idle=!1,this._ensureAlive(),e.applyDirtiedAnimation(this)},pause:function(){this._isFinished||this._paused||this._idle?this._idle&&(this._rewind(),this._idle=!1):this._currentTimePending=!0,this._startTime=null,this._paused=!0},finish:function(){this._idle||(this.currentTime=this._playbackRate>0?this._totalDuration:0,this._startTime=this._totalDuration-this.currentTime,this._currentTimePending=!1,e.applyDirtiedAnimation(this))},cancel:function(){this._inEffect&&(this._inEffect=!1,this._idle=!0,this._paused=!1,this._finishedFlag=!0,this._currentTime=0,this._startTime=null,this._effect._update(null),e.applyDirtiedAnimation(this))},reverse:function(){this.playbackRate*=-1,this.play()},addEventListener:function(t,e){"function"==typeof e&&"finish"==t&&this._finishHandlers.push(e)},removeEventListener:function(t,e){if("finish"==t){var i=this._finishHandlers.indexOf(e);i>=0&&this._finishHandlers.splice(i,1)}},_fireEvents:function(t){if(this._isFinished){if(!this._finishedFlag){var e=new i(this,this._currentTime,t),n=this._finishHandlers.concat(this.onfinish?[this.onfinish]:[]);setTimeout((function(){n.forEach((function(t){t.call(e.target,e)}))}),0),this._finishedFlag=!0}}else this._finishedFlag=!1},_tick:function(t,e){this._idle||this._paused||(null==this._startTime?e&&(this.startTime=t-this._currentTime/this.playbackRate):this._isFinished||this._tickCurrentTime((t-this._startTime)*this.playbackRate)),e&&(this._currentTimePending=!1,this._fireEvents(t))},get _needsTick(){return this.playState in{pending:1,running:1}||!this._finishedFlag},_targetAnimations:function(){var t=this._effect._target;return t._activeAnimations||(t._activeAnimations=[]),t._activeAnimations},_markTarget:function(){var t=this._targetAnimations();-1===t.indexOf(this)&&t.push(this)},_unmarkTarget:function(){var t=this._targetAnimations(),e=t.indexOf(this);-1!==e&&t.splice(e,1)}}}(Mx,Tx),function(t,e){function i(t){var e=u;u=[],t<_.currentTime&&(t=_.currentTime),_._animations.sort(n),_._animations=s(t,!0,_._animations)[0],e.forEach((function(e){e[1](t)})),o()}function n(t,e){return t._sequenceNumber-e._sequenceNumber}function r(){this._animations=[],this.currentTime=window.performance&&performance.now?performance.now():0}function o(){c.forEach((function(t){t()})),c.length=0}function s(t,i,n){f=!0,p=!1,e.timeline.currentTime=t,h=!1;var r=[],o=[],s=[],a=[];return n.forEach((function(e){e._tick(t,i),e._inEffect?(o.push(e._effect),e._markTarget()):(r.push(e._effect),e._unmarkTarget()),e._needsTick&&(h=!0);var n=e._inEffect||e._needsTick;e._inTimeline=n,n?s.push(e):a.push(e)})),c.push.apply(c,r),c.push.apply(c,o),h&&requestAnimationFrame((function(){})),f=!1,[s,a]}var a=window.requestAnimationFrame,u=[],l=0;window.requestAnimationFrame=function(t){var e=l++;return 0==u.length&&a(i),u.push([e,t]),e},window.cancelAnimationFrame=function(t){u.forEach((function(e){e[0]==t&&(e[1]=function(){})}))},r.prototype={_play:function(i){i._timing=t.normalizeTimingInput(i.timing);var n=new e.Animation(i);return n._idle=!1,n._timeline=this,this._animations.push(n),e.restart(),e.applyDirtiedAnimation(n),n}};var h=!1,p=!1;e.restart=function(){return h||(h=!0,requestAnimationFrame((function(){})),p=!0),p},e.applyDirtiedAnimation=function(t){if(!f){t._markTarget();var i=t._targetAnimations();i.sort(n),s(e.timeline.currentTime,!1,i.slice())[1].forEach((function(t){var e=_._animations.indexOf(t);-1!==e&&_._animations.splice(e,1)})),o()}};var c=[],f=!1,_=new r;e.timeline=_}(Mx,Tx),function(t){function e(t,e){for(var i=0,n=0;n<t.length;n++)i+=t[n]*e[n];return i}function i(t,e){return[t[0]*e[0]+t[4]*e[1]+t[8]*e[2]+t[12]*e[3],t[1]*e[0]+t[5]*e[1]+t[9]*e[2]+t[13]*e[3],t[2]*e[0]+t[6]*e[1]+t[10]*e[2]+t[14]*e[3],t[3]*e[0]+t[7]*e[1]+t[11]*e[2]+t[15]*e[3],t[0]*e[4]+t[4]*e[5]+t[8]*e[6]+t[12]*e[7],t[1]*e[4]+t[5]*e[5]+t[9]*e[6]+t[13]*e[7],t[2]*e[4]+t[6]*e[5]+t[10]*e[6]+t[14]*e[7],t[3]*e[4]+t[7]*e[5]+t[11]*e[6]+t[15]*e[7],t[0]*e[8]+t[4]*e[9]+t[8]*e[10]+t[12]*e[11],t[1]*e[8]+t[5]*e[9]+t[9]*e[10]+t[13]*e[11],t[2]*e[8]+t[6]*e[9]+t[10]*e[10]+t[14]*e[11],t[3]*e[8]+t[7]*e[9]+t[11]*e[10]+t[15]*e[11],t[0]*e[12]+t[4]*e[13]+t[8]*e[14]+t[12]*e[15],t[1]*e[12]+t[5]*e[13]+t[9]*e[14]+t[13]*e[15],t[2]*e[12]+t[6]*e[13]+t[10]*e[14]+t[14]*e[15],t[3]*e[12]+t[7]*e[13]+t[11]*e[14]+t[15]*e[15]]}function n(t){var e=t.rad||0;return((t.deg||0)/360+(t.grad||0)/400+(t.turn||0))*(2*Math.PI)+e}function r(t){switch(t.t){case"rotatex":var e=n(t.d[0]);return[1,0,0,0,0,Math.cos(e),Math.sin(e),0,0,-Math.sin(e),Math.cos(e),0,0,0,0,1];case"rotatey":return e=n(t.d[0]),[Math.cos(e),0,-Math.sin(e),0,0,1,0,0,Math.sin(e),0,Math.cos(e),0,0,0,0,1];case"rotate":case"rotatez":return e=n(t.d[0]),[Math.cos(e),Math.sin(e),0,0,-Math.sin(e),Math.cos(e),0,0,0,0,1,0,0,0,0,1];case"rotate3d":var i=t.d[0],r=t.d[1],o=t.d[2],s=(e=n(t.d[3]),i*i+r*r+o*o);if(0===s)i=1,r=0,o=0;else if(1!==s){var a=Math.sqrt(s);i/=a,r/=a,o/=a}var u=Math.sin(e/2),l=u*Math.cos(e/2),h=u*u;return[1-2*(r*r+o*o)*h,2*(i*r*h+o*l),2*(i*o*h-r*l),0,2*(i*r*h-o*l),1-2*(i*i+o*o)*h,2*(r*o*h+i*l),0,2*(i*o*h+r*l),2*(r*o*h-i*l),1-2*(i*i+r*r)*h,0,0,0,0,1];case"scale":return[t.d[0],0,0,0,0,t.d[1],0,0,0,0,1,0,0,0,0,1];case"scalex":return[t.d[0],0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];case"scaley":return[1,0,0,0,0,t.d[0],0,0,0,0,1,0,0,0,0,1];case"scalez":return[1,0,0,0,0,1,0,0,0,0,t.d[0],0,0,0,0,1];case"scale3d":return[t.d[0],0,0,0,0,t.d[1],0,0,0,0,t.d[2],0,0,0,0,1];case"skew":var p=n(t.d[0]),c=n(t.d[1]);return[1,Math.tan(c),0,0,Math.tan(p),1,0,0,0,0,1,0,0,0,0,1];case"skewx":return e=n(t.d[0]),[1,0,0,0,Math.tan(e),1,0,0,0,0,1,0,0,0,0,1];case"skewy":return e=n(t.d[0]),[1,Math.tan(e),0,0,0,1,0,0,0,0,1,0,0,0,0,1];case"translate":return[1,0,0,0,0,1,0,0,0,0,1,0,i=t.d[0].px||0,r=t.d[1].px||0,0,1];case"translatex":return[1,0,0,0,0,1,0,0,0,0,1,0,i=t.d[0].px||0,0,0,1];case"translatey":return[1,0,0,0,0,1,0,0,0,0,1,0,0,r=t.d[0].px||0,0,1];case"translatez":return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,o=t.d[0].px||0,1];case"translate3d":return[1,0,0,0,0,1,0,0,0,0,1,0,i=t.d[0].px||0,r=t.d[1].px||0,o=t.d[2].px||0,1];case"perspective":return[1,0,0,0,0,1,0,0,0,0,1,t.d[0].px?-1/t.d[0].px:0,0,0,0,1];case"matrix":return[t.d[0],t.d[1],0,0,t.d[2],t.d[3],0,0,0,0,1,0,t.d[4],t.d[5],0,1];case"matrix3d":return t.d}}function o(t){return 0===t.length?[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]:t.map(r).reduce(i)}var s=function(){function t(t){return t[0][0]*t[1][1]*t[2][2]+t[1][0]*t[2][1]*t[0][2]+t[2][0]*t[0][1]*t[1][2]-t[0][2]*t[1][1]*t[2][0]-t[1][2]*t[2][1]*t[0][0]-t[2][2]*t[0][1]*t[1][0]}function i(t){var e=n(t);return[t[0]/e,t[1]/e,t[2]/e]}function n(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1]+t[2]*t[2])}function r(t,e,i,n){return[i*t[0]+n*e[0],i*t[1]+n*e[1],i*t[2]+n*e[2]]}return function(o){var s=[o.slice(0,4),o.slice(4,8),o.slice(8,12),o.slice(12,16)];if(1!==s[3][3])return null;for(var a=[],u=0;u<4;u++)a.push(s[u].slice());for(u=0;u<3;u++)a[u][3]=0;if(0===t(a))return null;var l,h=[];s[0][3]||s[1][3]||s[2][3]?(h.push(s[0][3]),h.push(s[1][3]),h.push(s[2][3]),h.push(s[3][3]),l=function(t,e){for(var i=[],n=0;n<4;n++){for(var r=0,o=0;o<4;o++)r+=t[o]*e[o][n];i.push(r)}return i}(h,function(t){return[[t[0][0],t[1][0],t[2][0],t[3][0]],[t[0][1],t[1][1],t[2][1],t[3][1]],[t[0][2],t[1][2],t[2][2],t[3][2]],[t[0][3],t[1][3],t[2][3],t[3][3]]]}(function(e){for(var i=1/t(e),n=e[0][0],r=e[0][1],o=e[0][2],s=e[1][0],a=e[1][1],u=e[1][2],l=e[2][0],h=e[2][1],p=e[2][2],c=[[(a*p-u*h)*i,(o*h-r*p)*i,(r*u-o*a)*i,0],[(u*l-s*p)*i,(n*p-o*l)*i,(o*s-n*u)*i,0],[(s*h-a*l)*i,(l*r-n*h)*i,(n*a-r*s)*i,0]],f=[],_=0;_<3;_++){for(var d=0,y=0;y<3;y++)d+=e[3][y]*c[y][_];f.push(d)}return f.push(1),c.push(f),c}(a)))):l=[0,0,0,1];var p=s[3].slice(0,3),c=[];c.push(s[0].slice(0,3));var f=[];f.push(n(c[0])),c[0]=i(c[0]);var _=[];c.push(s[1].slice(0,3)),_.push(e(c[0],c[1])),c[1]=r(c[1],c[0],1,-_[0]),f.push(n(c[1])),c[1]=i(c[1]),_[0]/=f[1],c.push(s[2].slice(0,3)),_.push(e(c[0],c[2])),c[2]=r(c[2],c[0],1,-_[1]),_.push(e(c[1],c[2])),c[2]=r(c[2],c[1],1,-_[2]),f.push(n(c[2])),c[2]=i(c[2]),_[1]/=f[2],_[2]/=f[2];var d=function(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}(c[1],c[2]);if(e(c[0],d)<0)for(u=0;u<3;u++)f[u]*=-1,c[u][0]*=-1,c[u][1]*=-1,c[u][2]*=-1;var y,g,v=c[0][0]+c[1][1]+c[2][2]+1;return v>1e-4?(y=.5/Math.sqrt(v),g=[(c[2][1]-c[1][2])*y,(c[0][2]-c[2][0])*y,(c[1][0]-c[0][1])*y,.25/y]):c[0][0]>c[1][1]&&c[0][0]>c[2][2]?g=[.25*(y=2*Math.sqrt(1+c[0][0]-c[1][1]-c[2][2])),(c[0][1]+c[1][0])/y,(c[0][2]+c[2][0])/y,(c[2][1]-c[1][2])/y]:c[1][1]>c[2][2]?(y=2*Math.sqrt(1+c[1][1]-c[0][0]-c[2][2]),g=[(c[0][1]+c[1][0])/y,.25*y,(c[1][2]+c[2][1])/y,(c[0][2]-c[2][0])/y]):(y=2*Math.sqrt(1+c[2][2]-c[0][0]-c[1][1]),g=[(c[0][2]+c[2][0])/y,(c[1][2]+c[2][1])/y,.25*y,(c[1][0]-c[0][1])/y]),[p,f,_,g,l]}}();t.dot=e,t.makeMatrixDecomposition=function(t){return[s(o(t))]},t.transformListToMatrix=o}(Tx),function(t){function e(t,e){var i=t.exec(e);if(i)return[i=t.ignoreCase?i[0].toLowerCase():i[0],e.substr(i.length)]}function i(t,e){var i=t(e=e.replace(/^\s*/,""));if(i)return[i[0],i[1].replace(/^\s*/,"")]}function n(t,e,i,n,r){for(var o=[],s=[],a=[],u=function(t,e){for(var i=t,n=e;i&&n;)i>n?i%=n:n%=i;return t*e/(i+n)}(n.length,r.length),l=0;l<u;l++){var h=e(n[l%n.length],r[l%r.length]);if(!h)return;o.push(h[0]),s.push(h[1]),a.push(h[2])}return[o,s,function(e){var n=e.map((function(t,e){return a[e](t)})).join(i);return t?t(n):n}]}t.consumeToken=e,t.consumeTrimmed=i,t.consumeRepeated=function(t,n,r){t=i.bind(null,t);for(var o=[];;){var s=t(r);if(!s)return[o,r];if(o.push(s[0]),!(s=e(n,r=s[1]))||""==s[1])return[o,r];r=s[1]}},t.consumeParenthesised=function(t,e){for(var i=0,n=0;n<e.length&&(!/\s|,/.test(e[n])||0!=i);n++)if("("==e[n])i++;else if(")"==e[n]&&(0==--i&&n++,i<=0))break;var r=t(e.substr(0,n));return null==r?void 0:[r,e.substr(n)]},t.ignore=function(t){return function(e){var i=t(e);return i&&(i[0]=void 0),i}},t.optional=function(t,e){return function(i){return t(i)||[e,i]}},t.consumeList=function(e,i){for(var n=[],r=0;r<e.length;r++){var o=t.consumeTrimmed(e[r],i);if(!o||""==o[0])return;void 0!==o[0]&&n.push(o[0]),i=o[1]}if(""==i)return n},t.mergeNestedRepeated=n.bind(null,null),t.mergeWrappedNestedRepeated=n,t.mergeList=function(t,e,i){for(var n=[],r=[],o=[],s=0,a=0;a<i.length;a++)if("function"==typeof i[a]){var u=i[a](t[s],e[s++]);n.push(u[0]),r.push(u[1]),o.push(u[2])}else!function(t){n.push(!1),r.push(!1),o.push((function(){return i[t]}))}(a);return[n,r,function(t){for(var e="",i=0;i<t.length;i++)e+=o[i](t[i]);return e}]}}(Tx),function(t){function e(e){var i={inset:!1,lengths:[],color:null},n=t.consumeRepeated((function(e){var n=t.consumeToken(/^inset/i,e);return n?(i.inset=!0,n):(n=t.consumeLengthOrPercent(e))?(i.lengths.push(n[0]),n):(n=t.consumeColor(e))?(i.color=n[0],n):void 0}),/^/,e);if(n&&n[0].length)return[i,n[1]]}var i=function(e,i,n,r){function o(t){return{inset:t,color:[0,0,0,0],lengths:[{px:0},{px:0},{px:0},{px:0}]}}for(var s=[],a=[],u=0;u<n.length||u<r.length;u++){var l=n[u]||o(r[u].inset),h=r[u]||o(n[u].inset);s.push(l),a.push(h)}return t.mergeNestedRepeated(e,i,s,a)}.bind(null,(function(e,i){for(;e.lengths.length<Math.max(e.lengths.length,i.lengths.length);)e.lengths.push({px:0});for(;i.lengths.length<Math.max(e.lengths.length,i.lengths.length);)i.lengths.push({px:0});if(e.inset==i.inset&&!!e.color==!!i.color){for(var n,r=[],o=[[],0],s=[[],0],a=0;a<e.lengths.length;a++){var u=t.mergeDimensions(e.lengths[a],i.lengths[a],2==a);o[0].push(u[0]),s[0].push(u[1]),r.push(u[2])}if(e.color&&i.color){var l=t.mergeColors(e.color,i.color);o[1]=l[0],s[1]=l[1],n=l[2]}return[o,s,function(t){for(var i=e.inset?"inset ":" ",o=0;o<r.length;o++)i+=r[o](t[0][o])+" ";return n&&(i+=n(t[1])),i}]}}),", ");t.addPropertiesHandler((function(i){var n=t.consumeRepeated(e,/^,/,i);if(n&&""==n[1])return n[0]}),i,["box-shadow","text-shadow"])}(Tx),function(t){function e(t){return t.toFixed(3).replace(/0+$/,"").replace(/\.$/,"")}function i(t,e,i){return Math.min(e,Math.max(t,i))}function n(t){if(/^\s*[-+]?(\d*\.)?\d+\s*$/.test(t))return Number(t)}function r(t,n){return function(r,o){return[r,o,function(r){return e(i(t,n,r))}]}}function o(t){var e=t.trim().split(/\s*[\s,]\s*/);if(0!==e.length){for(var i=[],r=0;r<e.length;r++){var o=n(e[r]);if(void 0===o)return;i.push(o)}return i}}t.clamp=i,t.addPropertiesHandler(o,(function(t,i){if(t.length==i.length)return[t,i,function(t){return t.map(e).join(" ")}]}),["stroke-dasharray"]),t.addPropertiesHandler(n,r(0,1/0),["border-image-width","line-height"]),t.addPropertiesHandler(n,r(0,1),["opacity","shape-image-threshold"]),t.addPropertiesHandler(n,(function(t,e){if(0!=t)return r(0,1/0)(t,e)}),["flex-grow","flex-shrink"]),t.addPropertiesHandler(n,(function(t,e){return[t,e,function(t){return Math.round(i(1,1/0,t))}]}),["orphans","widows"]),t.addPropertiesHandler(n,(function(t,e){return[t,e,Math.round]}),["z-index"]),t.parseNumber=n,t.parseNumberList=o,t.mergeNumbers=function(t,i){return[t,i,e]},t.numberToString=e}(Tx),function(t){t.addPropertiesHandler(String,(function(t,e){if("visible"==t||"visible"==e)return[0,1,function(i){return i<=0?t:i>=1?e:"visible"}]}),["visibility"])}(Tx),function(t){function e(t){t=t.trim(),r.fillStyle="#000",r.fillStyle=t;var e=r.fillStyle;if(r.fillStyle="#fff",r.fillStyle=t,e==r.fillStyle){r.fillRect(0,0,1,1);var i=r.getImageData(0,0,1,1).data;r.clearRect(0,0,1,1);var n=i[3]/255;return[i[0]*n,i[1]*n,i[2]*n,n]}}function i(e,i){return[e,i,function(e){if(e[3])for(var i=0;i<3;i++)e[i]=Math.round(function(t){return Math.max(0,Math.min(255,t))}(e[i]/e[3]));return e[3]=t.numberToString(t.clamp(0,1,e[3])),"rgba("+e.join(",")+")"}]}var n=document.createElementNS("http://www.w3.org/1999/xhtml","canvas");n.width=n.height=1;var r=n.getContext("2d");t.addPropertiesHandler(e,i,["background-color","border-bottom-color","border-left-color","border-right-color","border-top-color","color","fill","flood-color","lighting-color","outline-color","stop-color","stroke","text-decoration-color"]),t.consumeColor=t.consumeParenthesised.bind(null,e),t.mergeColors=i}(Tx),function(t){function e(t){function e(){var e=s.exec(t);o=e?e[0]:void 0}function i(){if("("!==o)return function(){var t=Number(o);return e(),t}();e();var t=r();return")"!==o?NaN:(e(),t)}function n(){for(var t=i();"*"===o||"/"===o;){var n=o;e();var r=i();"*"===n?t*=r:t/=r}return t}function r(){for(var t=n();"+"===o||"-"===o;){var i=o;e();var r=n();"+"===i?t+=r:t-=r}return t}var o,s=/([\+\-\w\.]+|[\(\)\*\/])/g;return e(),r()}function i(t,i){if("0"==(i=i.trim().toLowerCase())&&"px".search(t)>=0)return{px:0};if(/^[^(]*$|^calc/.test(i)){i=i.replace(/calc\(/g,"(");var n={};i=i.replace(t,(function(t){return n[t]=null,"U"+t}));for(var r="U("+t.source+")",o=i.replace(/[-+]?(\d*\.)?\d+([Ee][-+]?\d+)?/g,"N").replace(new RegExp("N"+r,"g"),"D").replace(/\s[+-]\s/g,"O").replace(/\s/g,""),s=[/N\*(D)/g,/(N|D)[*\/]N/g,/(N|D)O\1/g,/\((N|D)\)/g],a=0;a<s.length;)s[a].test(o)?(o=o.replace(s[a],"$1"),a=0):a++;if("D"==o){for(var u in n){var l=e(i.replace(new RegExp("U"+u,"g"),"").replace(new RegExp(r,"g"),"*0"));if(!isFinite(l))return;n[u]=l}return n}}}function n(t,e){return r(t,e,!0)}function r(e,i,n){var r,o=[];for(r in e)o.push(r);for(r in i)o.indexOf(r)<0&&o.push(r);return e=o.map((function(t){return e[t]||0})),i=o.map((function(t){return i[t]||0})),[e,i,function(e){var i=e.map((function(i,r){return 1==e.length&&n&&(i=Math.max(i,0)),t.numberToString(i)+o[r]})).join(" + ");return e.length>1?"calc("+i+")":i}]}var o="px|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc",s=i.bind(null,new RegExp(o,"g")),a=i.bind(null,new RegExp(o+"|%","g")),u=i.bind(null,/deg|rad|grad|turn/g);t.parseLength=s,t.parseLengthOrPercent=a,t.consumeLengthOrPercent=t.consumeParenthesised.bind(null,a),t.parseAngle=u,t.mergeDimensions=r;var l=t.consumeParenthesised.bind(null,s),h=t.consumeRepeated.bind(void 0,l,/^/),p=t.consumeRepeated.bind(void 0,h,/^,/);t.consumeSizePairList=p;var c=t.mergeNestedRepeated.bind(void 0,n," "),f=t.mergeNestedRepeated.bind(void 0,c,",");t.mergeNonNegativeSizePair=c,t.addPropertiesHandler((function(t){var e=p(t);if(e&&""==e[1])return e[0]}),f,["background-size"]),t.addPropertiesHandler(a,n,["border-bottom-width","border-image-width","border-left-width","border-right-width","border-top-width","flex-basis","font-size","height","line-height","max-height","max-width","outline-width","width"]),t.addPropertiesHandler(a,r,["border-bottom-left-radius","border-bottom-right-radius","border-top-left-radius","border-top-right-radius","bottom","left","letter-spacing","margin-bottom","margin-left","margin-right","margin-top","min-height","min-width","outline-offset","padding-bottom","padding-left","padding-right","padding-top","perspective","right","shape-margin","stroke-dashoffset","text-indent","top","vertical-align","word-spacing"])}(Tx),function(t){function e(e){return t.consumeLengthOrPercent(e)||t.consumeToken(/^auto/,e)}function i(i){var n=t.consumeList([t.ignore(t.consumeToken.bind(null,/^rect/)),t.ignore(t.consumeToken.bind(null,/^\(/)),t.consumeRepeated.bind(null,e,/^,/),t.ignore(t.consumeToken.bind(null,/^\)/))],i);if(n&&4==n[0].length)return n[0]}var n=t.mergeWrappedNestedRepeated.bind(null,(function(t){return"rect("+t+")"}),(function(e,i){return"auto"==e||"auto"==i?[!0,!1,function(n){var r=n?e:i;if("auto"==r)return"auto";var o=t.mergeDimensions(r,r);return o[2](o[0])}]:t.mergeDimensions(e,i)}),", ");t.parseBox=i,t.mergeBoxes=n,t.addPropertiesHandler(i,n,["clip"])}(Tx),function(t){function e(t){return function(e){var i=0;return t.map((function(t){return t===u?e[i++]:t}))}}function i(t){return t}function n(e){if("none"==(e=e.toLowerCase().trim()))return[];for(var i,n=/\s*(\w+)\(([^)]*)\)/g,r=[],o=0;i=n.exec(e);){if(i.index!=o)return;o=i.index+i[0].length;var s=i[1],a=p[s];if(!a)return;var u=i[2].split(","),c=a[0];if(c.length<u.length)return;for(var f=[],_=0;_<c.length;_++){var d,y=u[_],g=c[_];if(void 0===(d=y?{A:function(e){return"0"==e.trim()?h:t.parseAngle(e)},N:t.parseNumber,T:t.parseLengthOrPercent,L:t.parseLength}[g.toUpperCase()](y):{a:h,n:f[0],t:l}[g]))return;f.push(d)}if(r.push({t:s,d:f}),n.lastIndex==e.length)return r}}function r(t){return t.toFixed(6).replace(".000000","")}function o(e,i){if(e.decompositionPair!==i){e.decompositionPair=i;var n=t.makeMatrixDecomposition(e)}if(i.decompositionPair!==e){i.decompositionPair=e;var o=t.makeMatrixDecomposition(i)}return null==n[0]||null==o[0]?[[!1],[!0],function(t){return t?i[0].d:e[0].d}]:(n[0].push(0),o[0].push(1),[n,o,function(e){var i=t.quat(n[0][3],o[0][3],e[5]);return t.composeMatrix(e[0],e[1],e[2],i,e[4]).map(r).join(",")}])}function s(t){return t.replace(/[xy]/,"")}function a(t){return t.replace(/(x|y|z|3d)?$/,"3d")}var u=null,l={px:0},h={deg:0},p={matrix:["NNNNNN",[u,u,0,0,u,u,0,0,0,0,1,0,u,u,0,1],i],matrix3d:["NNNNNNNNNNNNNNNN",i],rotate:["A"],rotatex:["A"],rotatey:["A"],rotatez:["A"],rotate3d:["NNNA"],perspective:["L"],scale:["Nn",e([u,u,1]),i],scalex:["N",e([u,1,1]),e([u,1])],scaley:["N",e([1,u,1]),e([1,u])],scalez:["N",e([1,1,u])],scale3d:["NNN",i],skew:["Aa",null,i],skewx:["A",null,e([u,h])],skewy:["A",null,e([h,u])],translate:["Tt",e([u,u,l]),i],translatex:["T",e([u,l,l]),e([u,l])],translatey:["T",e([l,u,l]),e([l,u])],translatez:["L",e([l,l,u])],translate3d:["TTL",i]};t.addPropertiesHandler(n,(function(e,i){var n=t.makeMatrixDecomposition&&!0,r=!1;if(!e.length||!i.length){e.length||(r=!0,e=i,i=[]);for(var u=0;u<e.length;u++){var l=e[u].t,h=e[u].d,c="scale"==l.substr(0,5)?1:0;i.push({t:l,d:h.map((function(t){if("number"==typeof t)return c;var e={};for(var i in t)e[i]=c;return e}))})}}var f=[],_=[],d=[];if(e.length!=i.length){if(!n)return;f=[(x=o(e,i))[0]],_=[x[1]],d=[["matrix",[x[2]]]]}else for(u=0;u<e.length;u++){var y=e[u].t,g=i[u].t,v=e[u].d,m=i[u].d,b=p[y],w=p[g];if(function(t,e){return"perspective"==t&&"perspective"==e||("matrix"==t||"matrix3d"==t)&&("matrix"==e||"matrix3d"==e)}(y,g)){if(!n)return;var x=o([e[u]],[i[u]]);f.push(x[0]),_.push(x[1]),d.push(["matrix",[x[2]]])}else{if(y==g)l=y;else if(b[2]&&w[2]&&s(y)==s(g))l=s(y),v=b[2](v),m=w[2](m);else{if(!b[1]||!w[1]||a(y)!=a(g)){if(!n)return;f=[(x=o(e,i))[0]],_=[x[1]],d=[["matrix",[x[2]]]];break}l=a(y),v=b[1](v),m=w[1](m)}for(var S=[],P=[],V=[],k=0;k<v.length;k++)x=("number"==typeof v[k]?t.mergeNumbers:t.mergeDimensions)(v[k],m[k]),S[k]=x[0],P[k]=x[1],V.push(x[2]);f.push(S),_.push(P),d.push([l,V])}}if(r){var A=f;f=_,_=A}return[f,_,function(t){return t.map((function(t,e){var i=t.map((function(t,i){return d[e][1][i](t)})).join(",");return"matrix"==d[e][0]&&16==i.split(",").length&&(d[e][0]="matrix3d"),d[e][0]+"("+i+")"})).join(" ")}]}),["transform"]),t.transformToSvgMatrix=function(e){var i=t.transformListToMatrix(n(e));return"matrix("+r(i[0])+" "+r(i[1])+" "+r(i[4])+" "+r(i[5])+" "+r(i[12])+" "+r(i[13])+")"}}(Tx),function(t){function e(e){return e=100*Math.round(e/100),400===(e=t.clamp(100,900,e))?"normal":700===e?"bold":String(e)}t.addPropertiesHandler((function(t){var e=Number(t);if(!(isNaN(e)||e<100||e>900||e%100!=0))return e}),(function(t,i){return[t,i,e]}),["font-weight"])}(Tx),function(t){function e(t){var e={};for(var i in t)e[i]=-t[i];return e}function i(e){return t.consumeToken(/^(left|center|right|top|bottom)\b/i,e)||t.consumeLengthOrPercent(e)}function n(e,n){var r=t.consumeRepeated(i,/^/,n);if(r&&""==r[1]){var s=r[0];if(s[0]=s[0]||"center",s[1]=s[1]||"center",3==e&&(s[2]=s[2]||{px:0}),s.length==e){if(/top|bottom/.test(s[0])||/left|right/.test(s[1])){var a=s[0];s[0]=s[1],s[1]=a}if(/left|right|center|Object/.test(s[0])&&/top|bottom|center|Object/.test(s[1]))return s.map((function(t){return"object"==typeof t?t:o[t]}))}}}function r(n){var r=t.consumeRepeated(i,/^/,n);if(r){for(var s=r[0],a=[{"%":50},{"%":50}],u=0,l=!1,h=0;h<s.length;h++){var p=s[h];"string"==typeof p?(l=/bottom|right/.test(p),a[u={left:0,right:0,center:u,top:1,bottom:1}[p]]=o[p],"center"==p&&u++):(l&&((p=e(p))["%"]=(p["%"]||0)+100),a[u]=p,u++,l=!1)}return[a,r[1]]}}var o={left:{"%":0},center:{"%":50},right:{"%":100},top:{"%":0},bottom:{"%":100}},s=t.mergeNestedRepeated.bind(null,t.mergeDimensions," ");t.addPropertiesHandler(n.bind(null,3),s,["transform-origin"]),t.addPropertiesHandler(n.bind(null,2),s,["perspective-origin"]),t.consumePosition=r,t.mergeOffsetList=s;var a=t.mergeNestedRepeated.bind(null,s,", ");t.addPropertiesHandler((function(e){var i=t.consumeRepeated(r,/^,/,e);if(i&&""==i[1])return i[0]}),a,["background-position","object-position"])}(Tx),function(t){var e=t.consumeParenthesised.bind(null,t.parseLengthOrPercent),i=t.consumeRepeated.bind(void 0,e,/^/),n=t.mergeNestedRepeated.bind(void 0,t.mergeDimensions," "),r=t.mergeNestedRepeated.bind(void 0,n,",");t.addPropertiesHandler((function(n){var r=t.consumeToken(/^circle/,n);if(r&&r[0])return["circle"].concat(t.consumeList([t.ignore(t.consumeToken.bind(void 0,/^\(/)),e,t.ignore(t.consumeToken.bind(void 0,/^at/)),t.consumePosition,t.ignore(t.consumeToken.bind(void 0,/^\)/))],r[1]));var o=t.consumeToken(/^ellipse/,n);if(o&&o[0])return["ellipse"].concat(t.consumeList([t.ignore(t.consumeToken.bind(void 0,/^\(/)),i,t.ignore(t.consumeToken.bind(void 0,/^at/)),t.consumePosition,t.ignore(t.consumeToken.bind(void 0,/^\)/))],o[1]));var s=t.consumeToken(/^polygon/,n);return s&&s[0]?["polygon"].concat(t.consumeList([t.ignore(t.consumeToken.bind(void 0,/^\(/)),t.optional(t.consumeToken.bind(void 0,/^nonzero\s*,|^evenodd\s*,/),"nonzero,"),t.consumeSizePairList,t.ignore(t.consumeToken.bind(void 0,/^\)/))],s[1])):void 0}),(function(e,i){if(e[0]===i[0])return"circle"==e[0]?t.mergeList(e.slice(1),i.slice(1),["circle(",t.mergeDimensions," at ",t.mergeOffsetList,")"]):"ellipse"==e[0]?t.mergeList(e.slice(1),i.slice(1),["ellipse(",t.mergeNonNegativeSizePair," at ",t.mergeOffsetList,")"]):"polygon"==e[0]&&e[1]==i[1]?t.mergeList(e.slice(2),i.slice(2),["polygon(",e[1],r,")"]):void 0}),["shape-outside"])}(Tx),function(t){function e(t,e){e.concat([t]).forEach((function(e){e in document.documentElement.style&&(i[t]=e),n[e]=t}))}var i={},n={};e("transform",["webkitTransform","msTransform"]),e("transformOrigin",["webkitTransformOrigin"]),e("perspective",["webkitPerspective"]),e("perspectiveOrigin",["webkitPerspectiveOrigin"]),t.propertyName=function(t){return i[t]||t},t.unprefixedPropertyName=function(t){return n[t]||t}}(Tx)}(),function(){if(void 0===document.createElement("div").animate([]).oncancel){if(window.performance&&performance.now)var t=function(){return performance.now()};else t=function(){return Date.now()};var e=function(t,e,i){this.target=t,this.currentTime=e,this.timelineTime=i,this.type="cancel",this.bubbles=!1,this.cancelable=!1,this.currentTarget=t,this.defaultPrevented=!1,this.eventPhase=Event.AT_TARGET,this.timeStamp=Date.now()},i=window.Element.prototype.animate;window.Element.prototype.animate=function(n,r){var o=i.call(this,n,r);o._cancelHandlers=[],o.oncancel=null;var s=o.cancel;o.cancel=function(){s.call(this);var i=new e(this,null,t()),n=this._cancelHandlers.concat(this.oncancel?[this.oncancel]:[]);setTimeout((function(){n.forEach((function(t){t.call(i.target,i)}))}),0)};var a=o.addEventListener;o.addEventListener=function(t,e){"function"==typeof e&&"cancel"==t?this._cancelHandlers.push(e):a.call(this,t,e)};var u=o.removeEventListener;return o.removeEventListener=function(t,e){if("cancel"==t){var i=this._cancelHandlers.indexOf(e);i>=0&&this._cancelHandlers.splice(i,1)}else u.call(this,t,e)},o}}}(),function(t){var e=document.documentElement,i=null,n=!1;try{var r="0"==getComputedStyle(e).getPropertyValue("opacity")?"1":"0";(i=e.animate({opacity:[r,r]},{duration:1})).currentTime=0,n=getComputedStyle(e).getPropertyValue("opacity")==r}catch(t){}finally{i&&i.cancel()}if(!n){var o=window.Element.prototype.animate;window.Element.prototype.animate=function(e,i){return window.Symbol&&Symbol.iterator&&Array.prototype.from&&e[Symbol.iterator]&&(e=Array.from(e)),Array.isArray(e)||null===e||(e=t.convertToArrayForm(e)),o.call(this,e,i)}}}(Mx),Object.defineProperty(window.SVGElement.prototype,"parentElement",{get:function(){return this.parentNode}}),Element.prototype._getBoundingClientRect=Element.prototype.getBoundingClientRect,Element.prototype.getBoundingClientRect=function(){const t=Element.prototype._getBoundingClientRect.call(this);return t.x=t.left,t.y=t.top,t},function(){function t(t){var e=t&&t.getBoundingClientRect()||{x:0,y:0,width:0,height:0};return[e.left,e.top]}SVGElement.prototype.getBBox=function(){return"tspan"===this.nodeName?function(e){try{var i=e.ownerSVGElement,n=e.parentNode,[r,o]=t(i),[s,a]=t(n),u={x:0,y:0,width:0,height:0};e.viewportElement&&e.textContent.trim()&&(u=e.getExtentOfChar(0))}catch(t){console.error(t.message),console.log(e.textContent,e.textContent.trim().length,{tspanElement:e})}finally{return{x:r+s+u.x,y:o+a+u.y,width:u.width,height:u.height}}}(this):this.getBoundingClientRect()}}();var Bx=function(t,e){return Bx=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},Bx(t,e)};function Dx(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}Bx(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}var Fx=function(){return Fx=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},Fx.apply(this,arguments)};function Ix(t){var e="function"==typeof Symbol&&Symbol.iterator,i=e&&t[e],n=0;if(i)return i.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function jx(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var n,r,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){r={error:t}}finally{try{n&&!n.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return s}function zx(t,e,i){if(i||2===arguments.length)for(var n,r=0,o=e.length;r<o;r++)!n&&r in e||(n||(n=Array.prototype.slice.call(e,0,r)),n[r]=e[r]);return t.concat(n||Array.prototype.slice.call(e))}"function"==typeof SuppressedError&&SuppressedError;var $x="http://www.w3.org/2000/svg",Hx=Object.prototype.hasOwnProperty,Gx=function(t){return t&&"object"==typeof t&&!Array.isArray(t)},Wx=Array.isArray,Yx=function(t){return"function"==typeof t},Xx=function(t){return"string"==typeof t},Ux=function(t){return"string"==typeof t&&t.length>0},qx=function(t){return"number"==typeof t},Zx=function(t){return"boolean"==typeof t},Kx=Object.assign,Jx=Math.floor,Qx=Math.ceil,tS=Math.cos,eS=Math.sin,iS=function(t){return Math.pow(10,t)},nS=Math.log10,rS=Math.min,oS=Math.max,sS=Math.abs,aS=function(t,e){return t=parseFloat(t),isNaN(t)?parseFloat(e):t},uS=function(t,e,i){var n=parseFloat(t);return isNaN(n)?(n=parseFloat(e),isNaN(n)?parseFloat(i):n):n},lS=function(t,e){return void 0!==t?t:e},hS=function(t,e,i){return void 0!==t?t:void 0!==e?e:i},pS=function(t,e,i){return t+(e-t)*i},cS=(new Date).getTime();"undefined"==typeof window||Element.prototype.animate||(Element.prototype.animate=function(t){});var fS=function(){function t(){}return t.log=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.LOGGING&&console.log.apply(console,zx([],jx(t),!1))},t.now=function(){return+new Date},t.parseDate=function(t,e){var i=new Date(t);return isNaN(i.getTime())?e||new Date:i},t.isLeapYear=function(t){return t%4==0&&t%100!=0||t%400==0},t.dateOfYear=function(e){var i=e.getMonth(),n=e.getDate(),r=[0,31,59,90,120,151,181,212,243,273,304,334][i]+n;return i>1&&t.isLeapYear(e.getFullYear())&&r++,r},t.incMonth=function(e,i){var n=e.getDate();return e.setDate(1),e.setMonth(e.getMonth()+i),e.setDate(rS(n,t.month_days[t.isLeapYear(e.getFullYear())?1:0][e.getMonth()])),e},t.minDate=function(t,e){return null!==t?t:null!==e?e:t.getTime()<e.getTime()?t:e},t.maxDate=function(t,e){return null!==t?e:null!==e||t.getTime()>e.getTime()?t:e},t.weekOfMonth=function(t,e,i){var n=t.getMonth(),r=t.getFullYear(),o=new Date(r,n,1).getDay(),s=new Date(r,n+1,0).getDate(),a=t.getDate()+o-1,u=e+Math.ceil((s+o-7)/7),l=e+Math.floor(a/7);return i||l<2+e?l:l===u?e+5:l},t.weekOfYear=function(t,e){var i=t.getFullYear(),n=new Date(i,0,1).getDay(),r=this.dateOfYear(t)+n-1;return e+Math.floor(r/7)},t.isObject=function(t){return t&&"object"==typeof t&&!Wx(t)},t.isValidObject=function(t){if(this.isObject(t))for(var e in t)if(t.hasOwnProperty(e))return!0},t.copyObject=function(t){if(t&&"object"==typeof t&&!Wx(t))return Kx({},t)},t.checkArray=function(t){return Wx(t)?t:void 0},t.makeArray=function(t,e){return void 0===e&&(e=!1),null!=t?Wx(t)?t:[t]:e?[]:void 0},t.makeNumArray=function(t){return Wx(t)?t.map((function(t){return+t})):null!=t?[+t]:[]},t.getIntArray=function(t,e){void 0===e&&(e=0);for(var i=[],n=e,r=e+t;n<r;n++)i.push(n);return i},t.isValueArray=function(t){if(Wx(t)){for(var e=t.length-1;e>=0;e--)if(null!=t[e]&&"object"==typeof t[e])return!1;return!0}return!1},t.toArray=function(t){return Wx(t)?t:null!=t?[t]:null},t.copyArray=function(t){return Wx(t)?t.slice(0):null!=t?[t]:void 0},t.push=function(t,e){if(e&&e.length>0)for(var i=0,n=e.length;i<n;i++)t.push(e[i])},t.isDefined=function(t){return null!=t},t.isNotDefined=function(t){return null==t},t.isNumber=function(t){return"number"==typeof t},t.canNumber=function(t){return!isNaN(t)&&!isNaN(parseFloat(t))},t.isValidNum=function(t){return"number"==typeof t&&!isNaN(t)&&isFinite(t)},t.getNumber=function(t,e){void 0===e&&(e=0);var i=parseFloat(t);return isFinite(i)?i:e},t.toNumber=function(t,e){return void 0===e&&(e=0),isNaN(t)||null===t||""===t?e:+t},t.compareText=function(t,e,i){return void 0===i&&(i=!1),t=t||"",e=e||"",i&&(t=t.toLocaleLowerCase(),e=e.toLocaleLowerCase()),t>e?1:t<e?-1:0},t.getTimeF=function(){return(new Date).getTime()/1e3},t.getTimer=function(){return(new Date).getTime()-cS},t.isWhiteSpace=function(t){return!t||!t.trim()},t.pad=function(t,e,i){return e=oS(e||2,1),i=i||"0",new Array(e-String(t).length+1).join(i)+t},t.pad16=function(t,e,i){return e=oS(e||2,1),i=i||"0",new Array(e-t.toString(16).length+1).join(i)+t.toString(16)},t.pick=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var i,n=t.length,r=0;r<n;r++)if(null!=(i=t[r]))return i},t.toStr=function(t){return Number.isNaN(t)||null==t?"":String(t)},t.extend=function(t,e){for(var i in t=t||{},e)t[i]=e[i];return t},t.equalNumbers=function(t,e){return isNaN(t)==isNaN(e)&&!isNaN(t)&&t==e},t.equalArrays=function(t,e){if(t===e)return!0;if(null==t||null==e)return!1;var i=t.length;if(i!=e.length)return!1;for(var n=0;n<i;++n)if(t[n]!==e[n])return!1;return!0},t.isEmpty=function(t){if(t)for(var e in t)return!1;return!0},t.isNotEmpty=function(t){if(t)for(var e in t)return!0;return!1},t.setter=function(t){return"set"+t[0].toUpperCase()+t.slice(1)},t.deepClone=function(e){var i,n;if(e instanceof Date)return new Date(e);if(null==e||"object"!=typeof e)return e;var r=Wx(e)?[]:{};try{for(var o=Ix(Object.keys(e)),s=o.next();!s.done;s=o.next()){var a=s.value;r[a]=t.deepClone(e[a])}}catch(t){i={error:t}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return r},t.getArray=function(t,e){for(var i=[],n=0;n<t;n++)i.push(e);return i},t.getNumArray=function(t,e){void 0===e&&(e=0);for(var i=[],n=0;n<t;n++)i.push(e);return i},t.dedupe=function(t,e){for(var i=(t=t.sort(e||function(t,e){return t>e?1:t<e?-1:0})).length-1;i>0;i--)t[i]===t[i-1]&&t.splice(i,1);return t},t.sortNum=function(t){return t.sort((function(t,e){return t-e}))},t.logElapsed=function(e,i){var n=+new Date;i(),t.log(e,+new Date-n+"ms")},t.clamp=function(t,e,i){return oS(e,rS(i,t))},t.makeIntArray=function(t,e){for(var i=new Array(oS(0,e-t)),n=t;n<e;n++)i[n-t]=n;return i},t.shuffle=function(t){for(var e,i=t.length-1;i>0;i--){var n=Math.floor(Math.random()*(i+1));e=jx([t[n],t[i]],2),t[i]=e[0],t[n]=e[1]}},t.isDate=function(t){return"[object Date]"===Object.prototype.toString.call(t)},t.isValidDate=function(t){return t.getTime()==t.getTime()},t.asFunction=function(t){return"function"==typeof t?t:void 0},t.getFieldProp=function(t){var e=t.indexOf(".");if(e>=0)return{field:t.substring(0,e),props:t.substring(e+1).split(".")}},t.startsWith=function(t,e){if(t&&e)return 0===t.indexOf(e)},t.endsWith=function(t,e){if(t&&e)return t.indexOf(e,-t.length)===t.length-e.length},t.scaleNumber=function(t,e,i){var n=sS(t);if(n>=1e3)for(var r=e.length;r>0;){var o=Math.pow(1e3,r--);if(o<=Math.pow(10,Math.log(n)*Math.LOG10E)&&(i||10*n%o==0))return{value:t/o,symbol:e[r]}}},t.jitter=function(t,e){return t+(2*Math.random()-1)*e},t.LOGGING=!1,t.week_days=["일","월","화","수","목","금","토"],t.long_week_days=["일요일","월요일","화요일","수요일","목요일","금요일","토요일"],t.month_days=[[31,28,31,30,31,30,31,31,30,31,30,31],[31,29,31,30,31,30,31,31,30,31,30,31]],t.uniqueKey=function(){var t=Math.random().toString(36).substring(2,9)+"-",e=0;return function(){return"rr-chart-"+t+e++}}(),t}(),_S={ko:{dateFormat:"yyyy.MM.dd",am:"오전",pm:"오후",notExistsDataField:"존재하지 않는 필드입니다: %1",notSpecifiedDataField:"하나 이상의 데이터필드가 설정돼야 합니다.",invalidFieldName:"잘못된 데이터필드 이름입니다: %1",invalidRowIndex:"잘못된 데이터행 index입니다: %1",invalidToIndex:"잘못된 'to' index입니다.: %1",requireSourceData:"원본 data가 반드시 지정돼야 합니다.",requireFilterName:"필터 이름이 반드시 지정돼야 합니다.",invalidDateFormat:"잘못된 시간 날짜 형식입니다: %1",invalidSizeValue:"잘못된 Size 값입니다: %1",invalidOuterDiv:"잘못된 외부 div 입니다: %1",dataMustSet:"데이터가 먼저 설정돼야 합니다.",requireTableName:"테이블모델의 이름이 지정돼야 합니다.",alreadyTableExists:"이미 존재하는 테이블모델입니다: %1"},en:{dateFormat:"M/d/yyyy",am:"AM",pm:"PM",notExistsDataField:"A data field is not exists: %1",notSpecifiedDataField:"At least one datafield must be set.",invalidFieldName:"Invalid field name: %1",invalidRowIndex:"Invalid row index: %1",invalidToIndex:"Invalid 'to' index: %1",requireSourceData:"A source data must be set.",requireFilterName:"A filter name must be set.",invalidDateFormat:"Invalid datetime format: %1",invalidSizeValue:"Invalid size value: %1",invalidOuterDiv:"Invalid outer div element: %1",dataMustSet:"A data must be set first.",requireTableName:"The name of table model is required.",alreadyTableExists:"A table model is already exists: %1"}},dS="ko",yS=_S[dS]||_S[dS="ko"],gS=function(t,e){t&&Gx(e)&&(yS=_S[t.substring(0,2)]=Object.assign(_S.ko,_S.en,e))},vS=0,mS=function(){function t(t){this.$_destroyed=!1,this.$_destroying=!1,t||(this.$_hash=String(vS++))}return t.destroy=function(t){return t&&t.destroy()},t.prototype.destroy=function(){return this.$_destroyed||this.$_destroying||(this.$_destroying=!0,this._doDestroy(),this.$_destroyed=!0),null},t.prototype._doDestroy=function(){},Object.defineProperty(t.prototype,"destroying",{get:function(){return this.$_destroying},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"orphaned",{get:function(){return this.$_destroying||this.$_destroyed},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hash",{get:function(){return this.$_hash},enumerable:!1,configurable:!0}),t.prototype.isMe=function(t){return t===this.$_hash},t.prototype.toString=function(){return this.constructor.name},t.prototype.toBool=function(t){return"string"==typeof t?"true"===t:t},t.prototype.toNum=function(t,e){return void 0===e&&(e=NaN),t=parseFloat(t),isNaN(t)?e:t},t}(),bS=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._listeners=[],e}return Dx(e,t),e.prototype._addListener=function(t){t&&this._listeners.indexOf(t)<0&&this._listeners.push(t)},e.prototype._removeListener=function(t){var e=this._listeners.indexOf(t);e>=0&&this._listeners.splice(e,1)},e.prototype._fireEvent=function(t){var e,i,n=Array.prototype.slice.call(arguments,0);n[0]=this;try{for(var r=Ix(this._listeners),o=r.next();!o.done;o=r.next()){var s=o.value,a=s[t];if(a){var u=a.apply(s,n);if(void 0!==u)return u}}}catch(t){e={error:t}}finally{try{o&&!o.done&&(i=r.return)&&i.call(r)}finally{if(e)throw e.error}}},e}(mS),wS=void 0,xS=Math.PI,SS=2*xS,PS=-xS/2,VS=2*xS/360,kS=360/xS/2,AS="%".charCodeAt(0);function CS(t){return t>SS?t%SS:t}function ES(t){return parseFloat(t.toPrecision(12))}function LS(t){return Math.floor(1e6*t)/1e6}function NS(t){return null==t?null:String(t)}function MS(t){return t+"px"}function TS(t){return null==t||Number.isNaN(t)||""===t}function OS(t){return t<10?"0"+t:String(t)}function RS(t){return t<10?"00"+t:t<100?"0"+t:String(t)}function BS(t,e){var i={};return i[t]=e,i}function DS(t,e,i){var n,r=!1;if(null==t){if(e)return null;n=i||0,r=!0}else if("string"==typeof t){var o=t.trim();if(0===o.length?n=NaN:o.charCodeAt(o.length-1)===AS?n=1===o.length?NaN:parseFloat(o):(n=parseFloat(o),r=!0),isNaN(n)){if(e)return null;YS(yS.invalidSizeValue,t)}}else if(n=+t,isNaN(n)){if(e)return null;n=i||0,r=!0}else r=!0;return{size:n,fixed:r}}function FS(t,e){return DS(t,!0)||DS(e,!1)}function IS(t,e,i){return void 0===i&&(i=NaN),t?t.fixed?t.size:t.size*e/100:i}var jS="fill",zS={fill:"fill",fillOpacity:"fill-opacity",stroke:"stroke",strokeWidth:"stroke-width",strokeDasharray:"stroke-dasharray",fontFamily:"font-family",fontSize:"font-size",fontWeight:"font-weight",fontStyle:"font-style",padding:"padding",margin:"margin"},$S=function(t){var e=zS[t];if(!e){var i=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();return zS[t]=i,i}return e};!function(t){function e(){return null!==t&&t.apply(this,arguments)||this}Dx(e,t),e.check=function(t){if(t instanceof e)return!0;throw t}}(Error);var HS=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e}(Error),GS=function(t,e){if(!t)throw new HS(e)};!function(t){function e(){return null!==t&&t.apply(this,arguments)||this}Dx(e,t)}(Error);var WS,YS=function(t,e){throw new Error(function(t,e){return t.replace("%1",e)}(t,e))},XS=function(t,e,i,n,r,o,s){var a,u;if(void 0===n&&(n=!0),void 0===r&&(r=!0),void 0===o&&(o=!1),n&&(e=-Number.MAX_VALUE,i=Number.MAX_VALUE),Wx(t))a=[],t.forEach((function(t){if(Gx(t)&&Xx(t.color)){var n={fromValue:aS(t.fromValue,u?u.toValue:e),toValue:aS(t.toValue,i),color:t.color,style:t.style?Kx({},t.style):wS};n.fromValue<n.toValue&&(a.push(n),u=n)}})),a=a.sort((function(t,e){return t.fromValue-e.fromValue})).filter((function(t){return t.toValue>=e&&t.fromValue<i})),r&&a.forEach((function(t){t.fromValue=oS(t.fromValue,e),t.toValue=rS(t.toValue,i)}));else if(Gx(t)&&Wx(t.colors)&&t.colors.length>0){var l=t.colors,h=Wx(t.styles)?t.styles:null;if(a=[],Wx(t.steps)&&t.steps.length>0){var p=Wx(t.steps)?t.steps:null;e<p[0]&&p.unshift(e),i>p[p.length-1]&&p.push(i);for(var c=0;c<p.length-1;c++)a.push({fromValue:p[c],toValue:p[c+1],color:l[rS(c,l.length-1)],style:h?h[rS(c,h.length-1)]:wS})}else{var f=aS(t.fromValue,e),_=aS(t.toValue,i),d=(_-f)/l.length;for(c=0;f<_;)a.push({fromValue:f,toValue:f+=d,color:l[rS(c,l.length-1)],style:h?h[rS(c,h.length-1)]:wS}),c++}}if(o&&a&&a.length>0){c=0;for(var y=e;c<a.length;)a[c].fromValue>y&&a.splice(c,0,{fromValue:y,toValue:a[c].fromValue,color:s}),y=a[c].toValue,c++;a[c-1].toValue<i&&a.push({fromValue:a[c-1].toValue,toValue:i,color:s})}return a},US="vertical-lr",qS="vertical-rl",ZS=function(t){return t&&"object"==typeof t},KS=function(t){function e(e,i){var n=t.call(this)||this;return n._rows=[],n.$_buildOptions(e||{}),Wx(i)&&i.forEach((function(t){return n._rows.push(n.$_readRow(t))})),n}return Dx(e,t),e.prototype.$_buildOptions=function(t){var e,i=t.fields;e=Wx(i)?i.slice():Xx(i)?[i]:["x","y","z"],this._fields=e,this._field=t.field||"y",this._fieldMap={};for(var n=0;n<e.length;n++)this._fieldMap[e[n]]=n},Object.defineProperty(e.prototype,"rowCount",{get:function(){return this._rows.length},enumerable:!1,configurable:!0}),e.prototype._internalValues=function(){return this._rows},e.prototype.$_readRow=function(t){var e={};if(Wx(t))for(var i=0;i<this._fields.length;i++)e[this._fields[i]]=t[i];else ZS(t)?Object.assign(e,t):e[this._field]=t;return e},e.prototype.getValue=function(t,e){return this._checkRow(t),this._rows[t][e]},e.prototype.setValue=function(t,e,i){this._checkRow(t);var n=this._rows[t],r=n[e];i!==r&&(n[e]=i,this._rows[t]=n,this._fireEvent("onDataValueChanged",t,e,i,r),this._changed())},e.prototype.getValues=function(t,e,i){void 0===e&&(e=0),void 0===i&&(i=-1);var n=this._rows,r=[];(isNaN(e)||e<0)&&(e=0),(isNaN(i)||i<0||i>n.length)&&(i=n.length);for(var o=e;o<i;o++)r.push(n[o][t]);return r},e.prototype.getRow=function(t){return this._checkRow(t),Object.assign({},this._rows[t])},e.prototype.addRow=function(t,e){isNaN(e)||e<0?e=this._rows.length:this._checkRow(e),this._rows.splice(e,0,t),this._fireEvent("onDataRowAdded",e),this._changed()},e.prototype.deleteRow=function(t){(isNaN(t)||t<0)&&(t=this._rows.length-1),this._checkRow(t);var e=this._rows[t];this._rows.splice(t,1),this._fireEvent("onDataRowDeleted",t,e),this._changed()},e.prototype._checkRow=function(t){(t<0||t>this._rows.length)&&YS(yS.invalidRowIndex,t)},e.prototype._changed=function(){this._fireEvent("onDataChanged")},e}(bS),JS=function(){function t(){this._map={}}return t.prototype.get=function(t){return this._map[t]},t.prototype.load=function(t){for(var e in t){var i=t[e],n=void 0;Wx(i)?n=new KS({},i):ZS(i)&&Wx(i.values)&&(n=new KS(i.options,i.values)),this._map[e]=n}},t}(),QS="0".charCodeAt(0),tP="#".charCodeAt(0),eP=",".charCodeAt(0),iP="s".charCodeAt(0),nP="a".charCodeAt(0),rP=function(){function t(t){t=t.trim(),this._options=t?this.$_parse(this._format=t):{useGrouping:!1}}return t.getFormatter=function(e){var i=t.Formatters[e];return i||(t.Formatters[e]=i=new t(e)),i},Object.defineProperty(t,"Default",{get:function(){return t.getFormatter(t.DEFAULT_FORMAT)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"format",{get:function(){return this._format},enumerable:!1,configurable:!0}),t.prototype.toStr=function(t){return t.toLocaleString(void 0,this._options)},t.prototype.$_parse=function(t){var e=t.length;if(e>0){var i={useGrouping:!1,minimumIntegerDigits:0,minimumFractionDigits:0,maximumFractionDigits:0},n=t.indexOf(".");if(n>=0){for(var r=n+1;r<e&&t.charCodeAt(r)===QS;)i.minimumFractionDigits++,r++;for(i.maximumFractionDigits=i.minimumFractionDigits;r<e&&t.charCodeAt(r)===tP;)i.maximumFractionDigits++,r++;n-=1}else n=e-1;for(var o=n;o>=0&&t.charCodeAt(o)===QS;)i.minimumIntegerDigits++,o--;for(;o>=0;){if(t.charCodeAt(o--)===eP){i.useGrouping=!0;break}}for(o=n;o>=0;){if(t.charCodeAt(o--)===iP){i.signDisplay="always";break}}if(!i.signDisplay)for(o=n;o>=0;){if(t.charCodeAt(o--)===nP){i.signDisplay="never";break}}return i.minimumIntegerDigits=oS(1,i.minimumIntegerDigits),i}},t.DEFAULT_FORMAT="",t.Formatters={},t}(),oP=["yy","yyyy","M","MM","d","dd","WW","W","w","ww","a","H","HH","h","hh","m","mm","s","ss","S","SS","SSS"],sP=[".","/","-",":"],aP="Z".charCodeAt(0),uP="z".charCodeAt(0),lP="A".charCodeAt(0),hP="a".charCodeAt(0),pP="y".charCodeAt(0),cP="M".charCodeAt(0),fP="m".charCodeAt(0),_P="W".charCodeAt(0),dP="w".charCodeAt(0),yP="d".charCodeAt(0),gP="H".charCodeAt(0),vP="h".charCodeAt(0),mP="S".charCodeAt(0),bP="s".charCodeAt(0),wP=function(){function t(t){this._baseYear=2e3,this._preserveTime=!1,this._hasAmPm=!1,this._formatString="",this.formatString=t}return t.getFormatter=function(e){var i=t.Formatters[e];return i||(t.Formatters[e]=i=new t(e)),i},Object.defineProperty(t,"Default",{get:function(){return t.getFormatter(yS.dateFormat)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"format",{get:function(){return this._format},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"formatString",{get:function(){return this._formatString},set:function(t){(t=t||yS.dateFormat)!=this._formatString&&(this._tokens=[],this.parse(t),this._formatString=t)},enumerable:!1,configurable:!0}),t.prototype.toStr=function(t,e){if(!this._tokens)return"";for(var i=this._tokens,n="",r=0,o=i.length;r<o;r++){var s=i[r],a=s.length;switch(s.charCodeAt(0)){case pP:n+=a>2?t.getFullYear():OS(t.getFullYear()%100);break;case cP:n+=a>1?OS(t.getMonth()+1):t.getMonth()+1;break;case yP:n+=a>1?OS(t.getDate()):t.getDate();break;case _P:n+=a>1?OS(fS.weekOfYear(t,e)+1):fS.weekOfMonth(t,e,!0)+1;break;case dP:n+=a>1?fS.long_week_days[t.getDay()]:fS.week_days[t.getDay()];break;case gP:n+=a>1?OS(t.getHours()):t.getHours();break;case vP:if(this._hasAmPm){var u=t.getHours();0==u?u=12:u>12&&(u-=12),n+=a>1?OS(u):u}else n+=a>1?OS(t.getHours()):t.getHours();break;case fP:n+=a>1?OS(t.getMinutes()):t.getMinutes();break;case bP:n+=a>1?OS(t.getSeconds()):t.getSeconds();break;case hP:case lP:t.getHours()<12?n+=yS.am:n+=yS.pm;break;case mP:var l=t.getMilliseconds();n+=3==a?RS(l):2==a?OS(l):l.toString().substring(0,a);break;default:n+=s}}return n},t.prototype.parseDateFormatTokens=function(t){var e=[];if(t)for(var i=t.trim(),n=i.length,r=0;r<n;){var o=i.charAt(r);if(sP.indexOf(o)>=0)e.push(o),r++;else{for(var s=r++;r<n&&i.charAt(r)==o;)r++;if(o=i.substring(s,r),oP.indexOf(o)<0){var a=o.charCodeAt(0);(a>=lP&&a<=aP||a>=hP&&a<=uP)&&YS(yS.invalidDateFormat,t)}e.push(o)}if(r<n&&fS.isWhiteSpace(o=i.charAt(r)))for(e.push(o);r<n&&fS.isWhiteSpace(i.charAt(r));)r++}return e},t.prototype.parse=function(t){t&&(this._format=t||yS.dateFormat,this._tokens=this.parseDateFormatTokens(this._format),this._hasAmPm=this._tokens.indexOf("a")>=0||this._tokens.indexOf("A")>=0)},t.Formatters={},t}(),xP=function(){function t(t){this.r=0,this.g=0,this.b=0,this.a=1,(t=t&&t.trim())&&(fS.startsWith(t,"rgb(")&&fS.endsWith(t,")")?this.$_parseRgb(t.substring(4,t.length-1)):fS.startsWith(t,"rgba(")&&fS.endsWith(t,")")?this.$_parseRgb(t.substring(5,t.length-1)):fS.startsWith(t,"#")&&this.$_parseNumber(t.substr(1)))}return t.isBright=function(e){return new t(e).isBright()},t.getContrast=function(e,i,n){return new t(e).getContrast(i,n)},Object.defineProperty(t.prototype,"rgba",{get:function(){return"rgba("+[this.r,this.g,this.b,this.a].join(",")+")"},enumerable:!1,configurable:!0}),t.prototype.isBright=function(){return.299*this.r+.587*this.g+.114*this.b>140},t.prototype.getContrast=function(t,e){return this.isBright()?t||"#000000":e||"#FFFFFF"},t.prototype.brighten=function(e,i){return void 0===i&&(i=null),(i=i||new t(null)).r=Math.ceil(this.r+(255-this.r)*e),i.g=Math.ceil(this.g+(255-this.g)*e),i.b=Math.ceil(this.b+(255-this.b)*e),i.a=this.a,i},t.prototype.toString=function(){return this.rgba},t.prototype.$_parseRgb=function(t){var e=t.split(/\,\s*/);e.length>=3&&(this.r=+e[0],this.g=+e[1],this.b=+e[2],e.length>=4?this.a=+e[3]:this.a=1)},t.prototype.$_parseNumber=function(t){var e,i=t.length;i>6?(e=parseInt(t.substr(0,6),16),this.a=parseInt(t.substring(6),16)/255):i>0&&(3===i&&(t=t.charAt(0)+t.charAt(0)+t.charAt(1)+t.charAt(1)+t.charAt(2)+t.charAt(2)),e=parseInt(t,16)),this.r=(16711680&e)>>16,this.g=(65280&e)>>8,this.b=255&e},t}(),SP=function(){function t(){}return t.clearChildren=function(t){for(var e;e=t.lastChild;)t.removeChild(e)},t.remove=function(t){var e=t&&t.parentElement;return e&&e.removeChild(t),null},t.htmlEncode=function(t){return document.createElement("a").appendChild(document.createTextNode(t)).parentNode.innerHTML},t.setImportantStyle=function(t,e,i){t.setProperty(e,i,"important")},t.getPadding=function(t){var e=getComputedStyle(t);return{left:parseFloat(e.paddingLeft)||0,right:parseFloat(e.paddingRight)||0,top:parseFloat(e.paddingTop)||0,bottom:parseFloat(e.paddingBottom)||0}},t}();!function(t){t.Developer="developer",t.Evaluation="evaluation",t.Limited="limited",t.Enterprise="enterprise"}(WS||(WS={}));var PP={name:"RealChart",version:"1.1.9",license:"enterprise",code:""},VP=function(){function t(){}return t.decode=function(e){for(var i=t.CHARS,n=t.PAD,r=e.split(""),o=[],s=r.length;r[--s]==n;);for(var a=0;a<s;){var u=i.indexOf(r[a++])<<18;a<=s&&(u|=i.indexOf(r[a++])<<12),a<=s&&(u|=i.indexOf(r[a++])<<6),a<=s&&(u|=i.indexOf(r[a++])),o.push(u>>>16&255),o.push(u>>>8&255),o.push(255&u)}for(;0==o[o.length-1];)o.pop();return o},t.PAD="=",t.CHARS="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t}(),kP=function(){function t(){}return t.union=function(t,e){var i=e.s3[255&t];t>>=8;var n=e.s2[255&t];t>>=8;var r=e.s1[255&t];t>>=8;var o=e.s0[255&t],s=(o>>16)+(r>>16)+((65535&o)+(65535&r)>>16)<<16|(65535&o)+(65535&r)&65535;return((s=(s>>16^n>>16)<<16|65535&(65535&s^65535&n))>>16)+(i>>16)+((65535&s)+(65535&i)>>16)<<16|(65535&s)+(65535&i)&65535},t.xor=function(t,e){return(t>>16^e>>16)<<16|65535&(65535&t^65535&e)},t._encryptBlock=function(e,i){var n=t.xor,r=t.union,o=e.left,s=e.right;o=n(o,i.p[0]),s=n(s,n(r(o,i),i.p[1])),o=n(o,n(r(s,i),i.p[2])),s=n(s,n(r(o,i),i.p[3])),o=n(o,n(r(s,i),i.p[4])),s=n(s,n(r(o,i),i.p[5])),o=n(o,n(r(s,i),i.p[6])),s=n(s,n(r(o,i),i.p[7])),o=n(o,n(r(s,i),i.p[8])),s=n(s,n(r(o,i),i.p[9])),o=n(o,n(r(s,i),i.p[10])),s=n(s,n(r(o,i),i.p[11])),o=n(o,n(r(s,i),i.p[12])),s=n(s,n(r(o,i),i.p[13])),o=n(o,n(r(s,i),i.p[14])),s=n(s,n(r(o,i),i.p[15])),o=n(o,n(r(s,i),i.p[16])),e.right=o,e.left=n(s,i.p[17])},t._decryptBlock=function(e,i){var n=t.xor,r=t.union,o=e.left,s=e.right;o=n(o,i.p[17]),s=n(s,n(r(o,i),i.p[16])),o=n(o,n(r(s,i),i.p[15])),s=n(s,n(r(o,i),i.p[14])),o=n(o,n(r(s,i),i.p[13])),s=n(s,n(r(o,i),i.p[12])),o=n(o,n(r(s,i),i.p[11])),s=n(s,n(r(o,i),i.p[10])),o=n(o,n(r(s,i),i.p[9])),s=n(s,n(r(o,i),i.p[8])),o=n(o,n(r(s,i),i.p[7])),s=n(s,n(r(o,i),i.p[6])),o=n(o,n(r(s,i),i.p[5])),s=n(s,n(r(o,i),i.p[4])),o=n(o,n(r(s,i),i.p[3])),s=n(s,n(r(o,i),i.p[2])),o=n(o,n(r(s,i),i.p[1])),e.right=o,e.left=n(s,i.p[0])},t._init=function(e){var i,n,r,o=e.split("").map((function(t){return 255&t.charCodeAt(0)})),s=t.kb,a=t._encryptBlock,u=0,l=0,h={left:0,right:0},p={p:s.p.slice(0).map((function(e){var i,n=o.length;for(i=0;i<4;i++)l=l*t.POW8|o[u++%n];return(e>>16^l>>16)<<16|65535&(65535&e^65535&l)})),s0:s.s0.slice(0),s1:s.s1.slice(0),s2:s.s2.slice(0),s3:s.s3.slice(0)};for(i=0,r=p.p.length;i<r;)a(h,p),p.p[i++]=h.left,p.p[i++]=h.right;for(i=0;i<4;i++)for(n=0,r=p["s"+i].length;n<r;)a(h,p),p["s"+i][n++]=h.left,p["s"+i][n++]=h.right;return p},t.decrypt=function(e,i){for(var n=t._decryptBlock,r=t._init(i),o=[],s=VP.decode(e),a=s.length>>3,u=0,l={left:null,right:null},h=0;h<a;h++){l.left=s[u]*t.POW24|s[u+1]*t.POW16|s[u+2]*t.POW8|s[u+3],l.right=s[u+4]*t.POW24|s[u+5]*t.POW16|s[u+6]*t.POW8|s[u+7],n(l,r);var p=l.left,c=l.right;o.push(p>>24&255),o.push(p>>16&255),o.push(p>>8&255),o.push(255&p),o.push(c>>24&255),o.push(c>>16&255),o.push(c>>8&255),o.push(255&c),u+=8}if(o[o.length-1]==o[o.length-2]||1==o[o.length-1]){var f=o[o.length-1];o.splice(o.length-f,f)}return String.fromCharCode.apply(null,o)},t.POW2=Math.pow(2,2),t.POW3=Math.pow(2,3),t.POW4=Math.pow(2,4),t.POW8=Math.pow(2,8),t.POW16=Math.pow(2,16),t.POW24=Math.pow(2,24),t.kb={p:[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],s0:[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],s1:[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],s2:[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],s3:[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462],k:[202,218,204,100]},t}(),AP=function(){function t(){}return t.eqaulsUpperDomain=function(t,e){return t==e||0===t.indexOf("*")&&(t=t.substr(1,t.length-1),e.substr(e.indexOf(t),t.length)==t)},t._getLDKey=function(t){for(var e="",i=0,n=t.length;i<n;i++)e+=String.fromCharCode(t[i]>>1);return e},t.includedDomains=function(t,e,i){for(var n=t.split(","),r=0,o=n.length;r<o;r++){var s=n[r];if(this.eqaulsUpperDomain(s,e))return!0;if(i&&s&&"*"===s[0]&&"*."!==s.substring(0,2))if(new RegExp("^/"+s.substring(1)+"/").exec(i))return!0}return!1},t.decrypt=function(t){for(var e={},i=kP.decrypt(t,"dkdl"+this._getLDKey(kP.kb.k)).split(";"),n=0,r=i.length;n<r;n++){var o=i[n].split("="),s=o[0],a=o[1];a&&a.length>0&&(e[s]=a)}return e},t}(),CP=function(t){function e(i,n,r){var o=t.call(this)||this;return o._inited=!1,o._testing=!1,o._dirty=!0,o._toAnimation=0,o._invalidateLock=!1,o._lockDirty=!1,o._cssVars={},o.loaded=!1,o._windowResizeHandler=function(t){o._windowResized()},o._clickHandler=function(t){o._pointerHandler&&o._pointerHandler.handleClick(o.toOffset(t))},o._dblClickHandler=function(t){o._pointerHandler&&o._pointerHandler.handleDblClick(o.toOffset(t))},o._touchMoveHandler=function(t){},o._pointerDownHandler=function(t){o._pointerHandler&&o._pointerHandler.handleDown(o.toOffset(t))},o._pointerMoveHandler=function(t){o._pointerHandler&&o._pointerHandler.handleMove(o.toOffset(t))},o._pointerUpHandler=function(t){o._pointerHandler&&o._pointerHandler.handleUp(o.toOffset(t))},o._pointerCancelHandler=function(t){},o._pointerLeaveHandler=function(t){},o._keyPressHandler=function(t){},o._wheelHandler=function(t){},function(){var t,e=location.hostname,i="RealChart를 사용하려면 도움말을 참조하세요.\nhttps://www.realchart.co.kr/";try{if(!(t=window.realChartLic))throw new Error(i)}catch(t){throw new Error(i)}var n=AP.decrypt(t);if("RealChart"!==n.name||"RealChart"!==PP.name)throw new Error(i);try{var r=n.server.toLowerCase(),o=location.pathname.toLowerCase();if(PP.license!=WS.Developer&&!AP.includedDomains(r,e.toLowerCase(),o))throw new Error(i);var s=n.lic.toLowerCase();if(!Object.values(WS).includes(s))throw new Error(i);if(PP.code=n.code,PP.license=n.lic,s==WS.Evaluation||s==WS.Limited){var a=n.expire.split(".").map((function(t){return parseInt(t)})),u=new Date(a[0],a[1],a[2],23,59,59,999);if(new Date>u)throw new Error("라이선스가 만료되었습니다.")}}catch(t){throw new Error(i)}}(),!i&&n instanceof HTMLDivElement&&(i=n.ownerDocument),o._initControl(i||document,n,r||e.CLASS_NAME),o._resigterEventHandlers(o._dom),o._inited=!0,o.invalidate(!0),o}return Dx(e,t),e.prototype._doDestroy=function(){this._requestTimer&&(window.requestAnimationFrame?cancelAnimationFrame(this._requestTimer):clearTimeout(this._requestTimer)),this._unresigterEventHandlers(this._dom),SP.remove(this._dom),this._dom=null,this._container=null},e.prototype.isInited=function(){return this._inited},e.prototype.isTesting=function(){return this._testing},e.prototype.doc=function(){return this._dom.ownerDocument},e.prototype.dom=function(){return this._dom},e.prototype.svg=function(){return this._svg},e.prototype.width=function(){return this._container.offsetWidth},e.prototype.height=function(){return this._container.offsetHeight},e.prototype.contentWidth=function(){return this.width()-this._padding.left-this._padding.right},e.prototype.contentHeight=function(){return this.height()-this._padding.top-this._padding.bottom},e.prototype.contentRight=function(){return this.width()-this._padding.right},e.prototype.clipContainer=function(){return this._defs},e.prototype.setData=function(t,e,i){TS(e)?(this._root.dom.removeAttribute("data-"+t),i&&this._dom.removeAttribute("data-"+t)):(this._root.dom.setAttribute("data-"+t,e),i&&this._dom.setAttribute("data-"+t,e))},e.prototype.clearDefs=function(){SP.clearChildren(this._defs)},e.prototype.$_clearDefs=function(t){for(var e=this._defs.children||[],i=e.length-1;i>=0;i--)e[i].hasAttribute(t)&&e[i].remove()},e.prototype.clearAssetDefs=function(){this.$_clearDefs(EP.ASSET_KEY)},e.prototype.clearTemporaryDefs=function(){this.$_clearDefs(EP.TEMP_KEY)},e.prototype.appendDom=function(t){return t&&this._htmlRoot.append(t),t},e.prototype.addElement=function(t){return t&&this._root.add(t)},e.prototype.setPointerHandler=function(t){this._pointerHandler=t},e.prototype.invalidate=function(t){void 0===t&&(t=!1),t||!this._invalidateLock&&!this._dirty&&this._inited?(this._dirty=!0,this._requestTimer||this._testing||this.$_requestRender()):this._invalidateLock&&(this._lockDirty=!0)},e.prototype.invalidateLayout=function(t){void 0===t&&(t=!1),this.invalidate(t)},e.prototype.setLock=function(){this._invalidateLock=!0},e.prototype.releaseLock=function(t){void 0===t&&(t=!0),this._invalidateLock&&(this._invalidateLock=!1),this._lockDirty&&t&&this.invalidate(),this._lockDirty=!1},e.prototype.lock=function(t){this.setLock();try{t(this)}finally{this.releaseLock()}},e.prototype.silentLock=function(t){this.setLock();try{t(this)}finally{this.releaseLock(!1)}},e.prototype.getBounds=function(){return this._dom.getBoundingClientRect()},e.prototype.setAnimation=function(t){this._toAnimation=t||0},e.prototype.fling=function(t,e){},e.prototype.getCssVar=function(t){var e=this._cssVars[t];return t in this._cssVars?this._cssVars[t]:(e=getComputedStyle(this._root.dom).getPropertyValue(t),this._cssVars[t]=e,e)},e.prototype.clipBounds=function(t,e,i,n,r){void 0===t&&(t=NaN),void 0===e&&(e=NaN),void 0===i&&(i=NaN),void 0===n&&(n=NaN),void 0===r&&(r=0);var o=new TP(this.doc(),t,e,i,n,r,r);return this._defs.appendChild(o.dom),o},e.prototype.clipCircle=function(){var t=new FP(this.doc());return this._defs.appendChild(t.dom),t},e.prototype.addDef=function(t){this._defs.appendChild(t)},e.prototype.removeDef=function(t){if(Xx(t))for(var e in this._defs.children)if(e instanceof Element&&e.id===t){t=e;break}t instanceof Element&&this._defs.removeChild(t)},e.prototype.containerToElement=function(t,e,i){var n=this._container.getBoundingClientRect(),r=t.getBounds();return{x:e-r.x+n.x,y:i-r.y+n.y}},e.prototype.svgToElement=function(t,e,i){var n=this._svg.getBoundingClientRect(),r=t.getBounds();return{x:e-r.left+n.left,y:i-r.top+n.top}},e.prototype.elementToSvg=function(t,e,i){var n=this._svg.getBoundingClientRect(),r=t.getBounds();return{x:e+r.left-n.left,y:i+r.top-n.top}},e.prototype._setTesting=function(){this._testing=!0,EP.TESTING=!0},e.prototype._setSize=function(t,e){isNaN(t)||(this._container.style.width=t+"px"),isNaN(e)||(this._container.style.height=e+"px")},e.prototype.$_addListener=function(t,e,i,n){n?t.addEventListener(e,i,{passive:!0}):t.addEventListener(e,i)},e.prototype._resigterEventHandlers=function(t){window.addEventListener("resize",this._windowResizeHandler),this.$_addListener(t,"click",this._clickHandler),this.$_addListener(t,"dblclick",this._dblClickHandler),this.$_addListener(t,"touchmove",this._touchMoveHandler,!0),this.$_addListener(t,"pointerdown",this._pointerDownHandler),this.$_addListener(t,"pointermove",this._pointerMoveHandler),this.$_addListener(t,"pointerup",this._pointerUpHandler),this.$_addListener(t,"pointercancel",this._pointerCancelHandler),this.$_addListener(t,"pointerleave",this._pointerLeaveHandler),this.$_addListener(t,"keypress",this._keyPressHandler),this.$_addListener(t,"wheel",this._wheelHandler,!0)},e.prototype._unresigterEventHandlers=function(t){window.removeEventListener("resize",this._windowResizeHandler),t.removeEventListener("click",this._clickHandler),t.removeEventListener("dblclick",this._dblClickHandler),t.removeEventListener("touchmove",this._touchMoveHandler),t.removeEventListener("pointerdown",this._pointerDownHandler),t.removeEventListener("pointermove",this._pointerMoveHandler),t.removeEventListener("pointerup",this._pointerUpHandler),t.removeEventListener("pointercancel",this._pointerCancelHandler),t.removeEventListener("pointerleave",this._pointerLeaveHandler),t.removeEventListener("keypress",this._keyPressHandler),t.removeEventListener("wheel",this._wheelHandler)},e.prototype._prepareRenderers=function(t){},e.prototype._initControl=function(t,e,i){if(!this._inited){e instanceof HTMLDivElement?this._container=e:this._container=t.getElementById(e),this._container instanceof HTMLDivElement||YS(yS.invalidOuterDiv,e);var n=this._container.ownerDocument,r=this._dom=n.createElement("div");Kx(r.style,{position:"relative",width:"100%",height:"100%",boxSizing:"border-box",overflow:"hidden","-webkit-touch-callout":"none","-webkit-user-select":"none","user-select":"none","-webkit-tap-highlight-color":"rgba(0, 0, 0, 0)"}),r.className=i,this._container.appendChild(r);var o=this._svg=n.createElementNS($x,"svg");o.classList.add("rct-svg"),o.style.setProperty("overflow","visible","important"),o.setAttribute("width","100%"),o.setAttribute("height","100%");var s=n.createElement("desc");s.textContent="Created by RealChart v1.1.9",o.appendChild(s);var a=this._defs=n.createElementNS($x,"defs");this._initDefs(n,a),o.appendChild(a),r.appendChild(o),this._root=new NP(this),o.appendChild(this._root._dom),this._htmlRoot=n.createElement("div"),r.appendChild(this._htmlRoot),Kx(this._htmlRoot.style,{position:"absolute"})}},e.prototype._initDefs=function(t,i){var n=t.createElementNS($x,"filter");n.setAttribute("id",e.SHADOW_FILTER);var r=t.createElementNS($x,"feGaussianBlur");r.setAttribute("stdDeviation","1.5"),r.setAttribute("in","SourceAlpha"),n.appendChild(r);var o=t.createElementNS($x,"feOffset");o.setAttribute("dx","1"),o.setAttribute("dy","1"),o.setAttribute("result","offsetblur"),n.appendChild(o);var s=t.createElementNS($x,"feFlood");s.setAttribute("flood-color","#000"),n.appendChild(s);var a=t.createElementNS($x,"feComposite");a.setAttribute("in2","offsetblur"),a.setAttribute("operator","in"),n.appendChild(a);var u=t.createElementNS($x,"feMerge"),l=t.createElementNS($x,"feMergeNode"),h=t.createElementNS($x,"feMergeNode");h.setAttribute("in","SourceGraphic"),u.appendChild(l),u.appendChild(h),n.appendChild(u),i.appendChild(n)},e.prototype._render=function(){this.$_render()},e.prototype.$_requestRender=function(){var t=this;this.orphaned||(window.requestAnimationFrame?this._requestTimer=window.requestAnimationFrame((function(){return t.$_render()})):this._requestTimer=setTimeout((function(){t.$_render()}),0))},e.prototype.updateNow=function(){this.$_render()},e.prototype.$_render=function(){if(!this.orphaned)if(+new Date<=this._toAnimation)this.$_requestRender();else{fS.LOGGING&&console.time("render chart");try{this._doBeforeRender();var t=this._dom.getBoundingClientRect(),e=this._svg.getBoundingClientRect(),i=this._svg.clientWidth,n=this._svg.clientHeight;Kx(this._htmlRoot.style,{left:MS(e.left-t.left),top:MS(e.top-t.top)}),this._doRenderBackground(this._container.firstElementChild,this._root,i,n);var r=this._padding=SP.getPadding(this._root.dom);this._doRender({x:r.left,y:r.top,width:i-r.left-r.right,height:n-r.top-r.bottom})}finally{this.loaded=!0,this._dirty=!1,this._requestTimer=null,this._doAfterRender(),fS.LOGGING&&console.timeEnd("render chart")}}},e.prototype._doBeforeRender=function(){},e.prototype._doAfterRender=function(){},e.prototype._doRenderBackground=function(t,e,i,n){},e.prototype._windowResized=function(){this.invalidateLayout()},e.prototype.toOffset=function(t){var e=this._container.getBoundingClientRect();return t.pointX=t.clientX-e.left,t.pointY=t.clientY-e.top,t},e.prototype.setPointerCapture=function(t){this._dom.setPointerCapture(t.pointerId)},e.prototype.releasePointerCapture=function(t){this._dom.releasePointerCapture(t.pointerId)},e.CLASS_NAME="rct-control",e.SHADOW_FILTER="rr-chart-shadow-filter",e._animatable=!0,e}(mS),EP=function(t){function e(e,i,n){void 0===n&&(n=wS);var r=t.call(this)||this;return r._visible=!0,r._zIndex=0,r._scaleX=1,r._scaleY=1,r._rotation=0,r._styles={},r._styleDirty=!1,r._dom=e.createElementNS($x,n||"g"),(r._styleName=i||"")&&r.setAttr("class",r._styleName),r}return Dx(e,t),e.prototype._doDestroy=function(){this.remove()},Object.defineProperty(e.prototype,"doc",{get:function(){return this._dom.ownerDocument},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dom",{get:function(){return this._dom},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return this._parent},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"control",{get:function(){return this._parent&&this._parent.control},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"zIndex",{get:function(){return this._zIndex},set:function(t){t!==this._zIndex&&(this._zIndex=t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"x",{get:function(){return this._x},set:function(t){t!==this._x&&(this._x=t,this.setAttr("x",this._x))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tx",{get:function(){return this._tx},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"y",{get:function(){return this._y},set:function(t){t!==this._y&&(this._y=t,this.setAttr("y",this._y))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ty",{get:function(){return this._ty},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return this._width},set:function(t){t!==this._width&&(this._width=t,this.setAttr("width",isNaN(t)?"":t))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this._height},set:function(t){t!==this._height&&(this._height=t,this.setAttr("height",isNaN(t)?"":t))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"visible",{get:function(){return this._visible},set:function(t){this.setVis(t)},enumerable:!1,configurable:!0}),e.prototype.setVis=function(t){return t!==this._visible&&(this._visible=t,this._dom&&(this._dom.style.display=this._visible?"":"none")),this._visible},Object.defineProperty(e.prototype,"rotation",{get:function(){return this._rotation},set:function(t){t!=this._rotation&&(this._rotation=t,this._updateTransform())},enumerable:!1,configurable:!0}),e.prototype.setRotation=function(t,e,i){return t===this._originX&&e===this._originY&&i===this._rotation||(this._originX=t,this._originY=e,this._rotation=i,this._updateTransform()),this},e.prototype.getStyle=function(t){return window.getComputedStyle(this._dom).getPropertyValue(t)},e.prototype.hasStyle=function(t){return this.dom.classList.contains(t)},e.prototype.add=function(t){return t&&t._parent!==this&&(t._parent=this,this._dom.appendChild(t._dom),t._doAttached(this)),t},e.prototype.insertChild=function(t,e){return t&&t._parent!==this&&(t._parent=this,this._dom.insertBefore(t._dom,e._dom),t._doAttached(this)),t},e.prototype.insertAfter=function(t,e){return t&&t._parent!==this&&(t._parent=this,e._dom.nextSibling?this._dom.insertBefore(t._dom,e._dom.nextSibling):this._dom.appendChild(t._dom),t._doAttached(this)),t},e.prototype.insertFirst=function(t){return t&&t._parent!==this&&(t._parent=this,this._dom.insertBefore(t._dom,this._dom.firstChild),t._doAttached(this)),t},e.prototype.appendElement=function(t,e){var i=t.createElementNS($x,e);return this._dom.appendChild(i),i},e.prototype.insertElement=function(t,e,i){var n=t.createElementNS($x,e);return this._dom.insertBefore(n,i),n},e.prototype.remove=function(){return this._parent&&(this._parent._dom.removeChild(this._dom),this._parent=null,this._doDetached(this)),this},e.prototype.getAttr=function(t){return this._dom.getAttribute(t)},e.prototype.setAttr=function(t,e){return this._dom.setAttribute(t,e),this},e.prototype.setAttrEx=function(t,e){return TS(e)?this._dom.removeAttribute(t):this._dom.setAttribute(t,e),this},e.prototype.setAttrs=function(t){for(var e in t)this._dom.setAttribute(e,t[e]);return this},e.prototype.unsetAttr=function(t){return this._dom.removeAttribute(t),this},e.prototype.getBounds=function(){return this._dom.getBoundingClientRect()},e.prototype.setBounds=function(t,e,i,n){return this.trans(t,e),this.resize(i,n),this},e.prototype.setRect=function(t){return this.trans(t.x,t.y),this.resize(t.width,t.height),this},e.prototype.getRect=function(){return{x:this._tx,y:this._ty,width:this.width,height:this.height}},e.prototype.getSize=function(){return{width:this.width,height:this.height}},e.prototype.getBBox=function(){return this._dom.getBBox()},e.prototype.controlToElement=function(t,e){return this.control.containerToElement(this,t,e)},e.prototype.svgToElement=function(t,e){return this.control.svgToElement(this,t,e)},e.prototype.elementToSvg=function(t,e){return this.control.elementToSvg(this,t,e)},e.prototype.move=function(t,e){return this.x=t,this.y=e,this},e.prototype.setPos=function(t,e){this._x=t,this._y=e},e.prototype.isDomAnimating=function(){return!!this._dom.getAnimations&&this._dom.getAnimations().length>0},e.prototype.rotate=function(t){return t!==this._rotation&&(this._rotation=t,this._updateTransform()),this},e.prototype.internalRotate=function(t){this._rotation=t},e.prototype.scale=function(t){return this._scaleX===t&&this._scaleY===t||(this._scaleX=this._scaleY=t,this._updateTransform()),this},e.prototype.trans=function(t,e){return t=fS.isValidNum(t)?t:this._tx,e=fS.isValidNum(e)?e:this._ty,t===this._tx&&e===this._ty||(this._tx=t,this._ty=e,this._updateTransform()),this},e.prototype.transp=function(t){return this.trans(t.x,t.y)},e.prototype.transEx=function(t,e,i,n){var r=this;if(void 0===i&&(i=0),void 0===n&&(n=!0),t=fS.isValidNum(t)?t:this._tx,e=fS.isValidNum(e)?e:this._ty,t!==this._tx||e!==this._ty){if(i>0){var o=this._dom.animate([{transform:"translate(".concat(this._tx||0,"px,").concat(this._ty||0,"px)")},{transform:"translate(".concat(t,"px,").concat(e,"px)")}],{duration:i,fill:"none"});n&&(null==o||o.addEventListener("finish",(function(){var t;return null===(t=r.control)||void 0===t?void 0:t.invalidateLayout()})))}this._tx=t,this._ty=e,this._updateTransform()}return this},e.prototype.transEx2=function(t,e,i,n){var r=this;void 0===i&&(i=0),void 0===n&&(n=!0);var o=fS.isValidNum(t)?t:this._tx,s=fS.isValidNum(e)?e:this._ty;if(o===this._tx&&s===this._ty)return this;if(i>0){var a=this._rotation||0,u="translate(".concat(this._tx||0,"px, ").concat(this._ty||0,"px)")+(a?" rotate(".concat(a,"deg)"):""),l="translate(".concat(o,"px, ").concat(s,"px)")+(a?" rotate(".concat(a,"deg)"):"");this._dom.style.transformOrigin="".concat(this._originX||0,"px ").concat(this._originY||0,"px");var h=this._dom.animate([{transform:u},{transform:l}],{duration:i,fill:"none"});n&&h.addEventListener("finish",(function(){var t;r._dom.style.transformOrigin="",null===(t=r.control)||void 0===t||t.invalidateLayout()}))}return this._tx=o,this._ty=s,this._updateTransform(),this},e.prototype.transX=function(t){return t!==this._tx&&fS.isValidNum(t)&&(this._tx=t,this._updateTransform()),this},e.prototype.transY=function(t){return t!==this._ty&&fS.isValidNum(t)&&(this._ty=t,this._updateTransform()),this},e.prototype.resize=function(t,e,i){void 0===i&&(i=!0);var n=!1;return t!==this._width&&(this._width=Math.max(0,t),i&&this.setAttrEx("width",this._width),n=!0),e!==this._height&&(this._height=Math.max(0,e),i&&this.setAttrEx("height",this._height),n=!0),n},e.prototype.appendDom=function(t){return t&&this._dom.appendChild(t),t},e.prototype.insertDom=function(t,e){return t&&this._dom.insertBefore(t,e),t},e.prototype.clearDom=function(){for(var t,e=this._dom;t=e.lastChild;)e.removeChild(t)},e.prototype.containsClass=function(t){return this._dom.classList.contains(t)},e.prototype.addClass=function(t){return this._dom.classList.add(t),this},e.prototype.removeClass=function(t){return this._dom.classList.remove(t),this},e.prototype.saveStyles=function(){this._saveStyle=this._dom.getAttribute("style")||null,this._saveClass=this._dom.getAttribute("class")},e.prototype.restoreStyles=function(){this._saveStyle!==wS&&(this._dom.setAttribute("style",this._saveStyle),delete this._saveStyle),this._saveClass&&(this._dom.setAttribute("class",this._saveClass),delete this._saveClass)},e.prototype.internalClearStyles=function(){var t=this.dom.style;for(var e in this._styles)t.removeProperty($S(e));this._styles={}},e.prototype.clearStyles=function(){var t=this.dom.style,e=!1;for(var i in this._styles)t.removeProperty($S(i)),e=!0;return this._styles={},e&&(this._styleDirty=!0),e},e.prototype.clearStyle=function(t){var e,i,n=!1;if(t){var r=this.dom.style;try{for(var o=Ix(t),s=o.next();!s.done;s=o.next()){var a=s.value;a in this._styles&&(r.removeProperty($S(a)),delete this._styles[a],n=!0)}}catch(t){e={error:t}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(e)throw e.error}}n&&(this._styleDirty=!0)}return n},e.prototype.internalSetStyles=function(t){if(t){var e=this.dom.style;for(var i in t)e[i]=this._styles[i]=t[i]}},e.prototype.internalImportantStylesOrClass=function(t){if(Xx(t))t&&this._dom.classList.add(t);else if(Gx(t)){var e=this.dom.style;for(var i in t)e.setProperty($S(i),this._styles[i]=t[i],"important")}},e.prototype.setStyles=function(t){var e=!1;if(t){var i=this.dom.style;for(var n in t){var r=t[n];this._styles[n]!==r&&(this._styles[n]=r,"rx"==n?this._dom.setAttribute(n,r):i[n]=r,e=!0)}e&&(this._styleDirty=!0)}return e},e.prototype.resetStyles=function(t){var e=this.clearStyles();return this.setStyles(t)||e},e.prototype._resetClass=function(){this._styleName?this.setAttr("class",this._styleName):this.unsetAttr("class")},e.prototype.clearStyleAndClass=function(){this.clearStyles(),this._resetClass()},e.prototype.internalClearStyleAndClass=function(){this.internalClearStyles(),this._resetClass()},e.prototype.setStyleOrClass=function(t){Xx(t)?(this._resetClass(),t&&this._dom.classList.add(t)):this.resetStyles(t)},e.prototype.internalSetStyleOrClass=function(t){Xx(t)?t&&this._dom.classList.add(t):this.internalSetStyles(t)},e.prototype.addStyleOrClass=function(t){Xx(t)?t&&this._dom.classList.add(t):Gx(t)&&this.setStyles(t)},e.prototype.setClass=function(t){this.setAttr("class",t)},e.prototype.setStyle=function(t,e){var i=!1;return e!==this._styles[t]&&(i=this._styleDirty=!0,this._styles[t]=e,this.dom.style[t]=e),i},e.prototype.internalSetStyle=function(t,e){e!==this._styles[t]&&(this._styles[t]=e,this.dom.style[t]=e)},e.prototype.setColor=function(t){this.dom.style.fill=this.dom.style.stroke=this._styles.fill=this._styles.stroke=t},e.prototype.setFill=function(t){this.dom.style.fill=this._styles.fill=t},e.prototype.setStroke=function(t){this.dom.style.stroke=this._styles.stroke=t},e.prototype.setTransparent=function(t){this.dom.style.setProperty("fill","transparent",t?"important":""),this.dom.style.setProperty("stroke","none",t?"important":"")},e.prototype.textAlign=function(){return this._styles.textAlign},e.prototype.setData=function(t,e){null==e?this.dom.removeAttribute("data-"+t):this.dom.setAttribute("data-"+t,lS(e,""))},e.prototype.unsetData=function(t){this.dom.removeAttribute("data-"+t)},e.prototype.setBoolData=function(t,e){e?this.dom.setAttribute("data-"+t,""):this.dom.removeAttribute("data-"+t)},e.prototype.hasData=function(t){return null!=this.dom.getAttribute("data-"+t)},e.prototype.removeLater=function(t,e){var i=this;if(this._parent)if(t>0){var n=this._dom.animate([{},{opacity:0}],{duration:t,fill:"none"});null==n||n.addEventListener("finish",(function(){i.remove(),null==e||e(i)}))}else this.remove();return this},e.prototype.hide=function(t){var e=this;if(this._parent)if(t>0){var i=this._dom.animate([{},{opacity:0}],{duration:t,fill:"none"});null==i||i.addEventListener("finish",(function(){e.setVis(!1)}))}else this.setVis(!1);return this},e.prototype.clipRect=function(t,e,i,n,r){void 0===r&&(r=0);var o=this.control.clipBounds(t,e,i,n,r);return this.setClip(o),o},e.prototype.setClip=function(t){t?this.setAttr("clip-path","url(#"+(t.id||t)+")"):this.unsetAttr("clip-path")},e.prototype.setTemporary=function(){return this.setAttr(e.TEMP_KEY,1),this},e.prototype.setCursor=function(t){this._dom.style.cursor=t},e.prototype.ignorePointer=function(){this._dom.style.pointerEvents="none"},e.prototype.contains=function(t){return this._dom.contains(t)},e.prototype.front=function(t,e){if(this.parent){var i=this.parent._dom,n=this._dom,r=t.length;if(e){var o=e.sort((function(e,i){return t.indexOf(e)-t.indexOf(i)}))[e.length-1];this!==o&&(n.remove(),o===t[r-1]?i.appendChild(n):i.insertBefore(n,t[t.indexOf(o)+1].dom))}else r>1&&n!==i.lastElementChild&&(n.remove(),i.appendChild(n))}},e.prototype.back=function(t){if(this.parent&&t.length>1){var e=t.indexOf(this);this._dom.remove(),e<t.length-1?this.parent.dom.insertBefore(this._dom,t[e+1].dom):this.parent.dom.appendChild(this._dom)}},e.prototype.invalidate=function(){var t;null===(t=this.control)||void 0===t||t.invalidateLayout()},e.prototype.sort=function(t){var e=this;t.forEach((function(t){return e._dom.appendChild(t._dom)}))},e.prototype.getParent=function(t){for(var e=this._parent;e;){if(e instanceof t)return e;e=e._parent}},e.prototype._testing=function(){return e.TESTING},e.prototype._doAttached=function(t){},e.prototype._doDetached=function(t){},e.prototype._updateTransform=function(){this._dom.setAttribute("transform",this.getTransform())},e.prototype.getTransform=function(){var t=this._dom,e=this._tx,i=this._ty,n=[];(fS.isValidNum(e)||fS.isValidNum(i))&&(n=["translate("+(e=e||0)+","+(i=i||0)+")"]),fS.isNotEmpty(this._matrix)&&n.push("matrix("+this._matrix.join(",")+")"),this._rotation&&n.push("rotate("+this._rotation+" "+fS.pick(this._originX,t.getAttribute("x"),0)+" "+fS.pick(this._originY,t.getAttribute("y")||0)+")");var r=fS.getNumber(this._scaleX,1),o=fS.getNumber(this._scaleY,1);return 1===r&&1===o||n.push("scale("+r+" "+o+")"),n.length?n.join(" "):""},e.DEBUGGING=!1,e.TESTING=!1,e.ASSET_KEY="_asset_",e.TEMP_KEY="_temp_",e}(mS),LP=function(t){function e(e,i){return t.call(this,e,i,"g")||this}return Dx(e,t),e}(EP),NP=function(t){function e(e){var i=t.call(this,e.doc(),"rct-root")||this;return i._control=e,i}return Dx(e,t),Object.defineProperty(e.prototype,"control",{get:function(){return this._control},enumerable:!1,configurable:!0}),e}(EP),MP=function(t){function e(e){var i=t.call(this,e,wS,"clipPath")||this,n=i._id=fS.uniqueKey()+"-";return i.setAttr("id",n),i}return Dx(e,t),Object.defineProperty(e.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),e}(EP),TP=function(t){function e(e,i,n,r,o,s,a){void 0===i&&(i=NaN),void 0===n&&(n=NaN),void 0===r&&(r=NaN),void 0===o&&(o=NaN),void 0===s&&(s=0),void 0===a&&(a=0);var u=t.call(this,e)||this,l=u._rect=new EP(e,null,"rect");return l.setAttr("fill","none"),s>0&&l.setAttr("rx",String(s)),a>0&&l.setAttr("ry",String(a)),isNaN(i)||l.setBounds(i,n,r,o),u.add(l),u}return Dx(e,t),e.prototype.setBounds=function(t,e,i,n){return this._rect.move(t,e),this._rect.resize(i,n),this},e.prototype.resize=function(t,e,i){return this._rect.resize(t,e)},Object.defineProperty(e.prototype,"x",{get:function(){return this._rect.x},set:function(t){this._rect.x=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"y",{get:function(){return this._rect.y},set:function(t){this._rect.y=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return this._rect.width},set:function(t){this._rect.width=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this._rect.height},set:function(t){this._rect.height=t},enumerable:!1,configurable:!0}),e}(MP),OP=function(t){function e(e,i,n){void 0===i&&(i=void 0),void 0===n&&(n=void 0);var r=t.call(this,e,i,"path")||this;return n&&r.setPath(n),r}return Dx(e,t),e.prototype.path=function(){return this._path},e.prototype.setPath=function(t){var e=Xx(t)?t:t.join(" ");return e!==this._path&&this.setAttr("d",this._path=e),this},e}(EP);!function(t){function e(e){var i=t.call(this,e)||this;return i._path=new OP(e),i.add(i._path),i}Dx(e,t),e.prototype.setPath=function(t){this._path.setPath(t)}}(MP);var RP,BP,DP,FP=function(t){function e(e){var i=t.call(this,e)||this;return i.add(i._circle=new EP(e,null,"circle")),i}return Dx(e,t),e.prototype.setCircle=function(t,e,i){this._circle.setAttrs({cx:t,cy:e,r:i})},e}(MP),IP=function(){function t(){this.dragging=!1}return t.prototype.start=function(t,e,i,n,r){return this.cancel(),!!this._doStart(t,e,i,n,r)&&(this.dragging=!0,this._showFeedback(n,r),!0)},t.prototype.drag=function(t,e,i,n,r){return!(!this.dragging||!this._doDrag(t,e,i,n,r))&&(this._moveFeedback(n,r),!0)},t.prototype.cancel=function(){if(this.dragging)try{this.dragging=!1,this._doCanceled()}finally{this.end(-1,-1)}},t.prototype.drop=function(t,e,i){if(this.dragging)try{this.dragging=!1,this._canAccept(t,e,i)?this._doCompleted(t,e,i):this._doCanceled()}finally{this.end(e,i)}},t.prototype.end=function(t,e){try{this.dragging=!1,this._hideFeedback()}finally{this._doEnded(t,e)}},t.prototype._canAccept=function(t,e,i){return!0},t.prototype._showFeedback=function(t,e){},t.prototype._moveFeedback=function(t,e){},t.prototype._hideFeedback=function(){},t.prototype._doStart=function(t,e,i,n,r){return!0},t.prototype._doCanceled=function(){},t.prototype._doCompleted=function(t,e,i){},t.prototype._doEnded=function(t,e){},t}();!function(t){t.START="start",t.MIDDLE="middle",t.END="end"}(RP||(RP={})),function(t){t.TOP="top",t.MIDDLE="middle",t.BOTTOM="bottom"}(BP||(BP={})),function(t){t.TRUNCATE="truncate",t.WRAP="wrap",t.ELLIPSIS="ellipsis"}(DP||(DP={}));var jP=function(t){function e(e,i){void 0===i&&(i=void 0);var n=t.call(this,e,i,"text")||this;return n._layout=BP.TOP,n._overflow=DP.WRAP,n._dirty=!0,n._text="",n.anchor=RP.MIDDLE,n}return Dx(e,t),Object.defineProperty(e.prototype,"text",{get:function(){return this._text},set:function(t){(t=t||"")!==this._text&&(this._dirty=!0,this.dom.textContent=this._text=t,this.layoutText())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"anchor",{get:function(){return this.getAttr("text-anchor")},set:function(t){t!==this.anchor&&this.setAttr("text-anchor",t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"layout",{get:function(){return this._layout},set:function(t){t!==this._layout&&(this._layout=t,this.layoutText())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"overflow",{get:function(){return this._overflow},set:function(t){t!==this._overflow&&(this._overflow=t,this.layoutText())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"opacity",{get:function(){return this.getAttr("fill-opacity")},set:function(t){this.setAttr("fill-opacity",t)},enumerable:!1,configurable:!0}),e.prototype.getAscent=function(t){return.75*t},e.prototype.layoutText=function(t){var e,i=this.getBBox(),n=this.getAscent(isNaN(t)?i.height:t);switch(this._layout){case BP.MIDDLE:e=Math.floor(n/2);break;case BP.BOTTOM:e=0;break;default:e=Math.ceil(n)}this.y=e},e.prototype.isFitIn=function(t){return this.calcWidth()>=t},e.prototype.calcWidth=function(){var t=this._text.length;return t&&this.dom.getSubStringLength(0,t)},e.prototype.calcRangeWidth=function(t,e){return void 0===t&&(t=0),void 0===e&&(e=Number.MAX_SAFE_INTEGER),t=oS(0,t),(e=rS(this._text.length,e))>t?this.dom.getSubStringLength(t,e-t):0},e.prototype.truncate=function(t,e){var i=this._text;if(i){var n,r=this.dom,o=0,s=i.length;do{n=Math.ceil((o+s)/2),r.getSubStringLength(0,n)>t?s=n-1:o=n}while(o<s);for(this.text=i.substring(0,o)+"…";o>0&&this.calcWidth()>t;)this.text=i.substring(0,--o)+"…"}},e.prototype.setContrast=function(t,e,i){return this.setStyleOrClass(xP.isBright(getComputedStyle(t).fill)?e:i),this},e.prototype.clearDom=function(){t.prototype.clearDom.call(this),this._dirty=!0},e.prototype.setStyles=function(e){var i=t.prototype.setStyles.call(this,e);return i&&this.layoutText(),i},e.prototype.applyStyles=function(e){t.prototype.setStyles.call(this,e)},e.prototype.setStyle=function(e,i){var n=t.prototype.setStyle.call(this,e,i);return n&&this.layoutText(),n},e.prototype.getBBox=function(){return(this._dirty||this._styleDirty)&&(this._bounds=this.dom.getBBox(),this._dirty=this._styleDirty=!1),this._bounds},e.prototype.getBBoundsTest=function(){return(this._dirty||this._styleDirty)&&(this._bounds={x:this.x,y:this.y,width:100,height:30},this._dirty=this._styleDirty=!1),this._bounds},e.prototype.stain=function(){this._dirty=!0},e}(EP),zP="$_TH",$P="$_TW",HP=function(){function t(){}return t.prototype.tag=function(){return""},t.prototype.parse=function(t){return this.text=t,this._doParse(t),this},t.prototype.getText=function(t,e){var i=this._literals,n=this.text;if(i&&e.callback)for(var r=0;r<i.length;r+=4){var o=e.callback(t,i[r+1]);if("number"==typeof o&&!isNaN(o)||"bigint"==typeof o)(s=i[3]?rP.getFormatter(i[3]):e.numberFormatter)&&(o=s.toStr(o));else if(o instanceof Date){var s;(s=i[3]?wP.getFormatter(i[3]):e.timeFormatter)&&(o=s.toStr(o,e.startOfWeek||0))}else null==o&&(o=i[r+2]||"");n=n.replace(i[r],o)}return n},t.prototype.prepareSpan=function(t,e,i){var n=this.getText(e,i);return t.textContent=n,t},t.prototype._doParse=function(t){this._literals=[];for(var e=0;e<t.length;){var i=t.indexOf("${",e);if(i<0&&(i=t.indexOf("%{",e)),i<0)break;var n=t.indexOf("}",i+2);if(n<0)break;var r=t.substring(i,n+1),o=r.substring(2,r.length-1),s=o.indexOf(";");if(s>0){var a=o.indexOf(";",s+1);a>=s?this._literals.push(r,o.substring(0,s),o.substring(s+1,a),o.substring(a+1)):this._literals.push(r,o.substring(0,s),o.substring(s+1),wS),0===this._literals[2].length&&(this._literals[2]=wS)}else this._literals.push(r,o,wS,wS);e=n+1}return 0==this._literals.length&&(this._literals=null),this},t}(),GP=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.prepareSpan=function(t,e,i){var n=this.getText(e,i),r=n.indexOf(">")+1,o=n.indexOf(this.tag(),r);return this._doPrepare(t,n,r,o),t},e.prototype._doPrepare=function(t,e,i,n){t.textContent=e.substring(i,n);var r=e.indexOf("style=");if(r>0&&r<i){var o=e[r+6],s=e.indexOf(o,r+7);s>0&&s<i&&t.setAttribute("style",e.substring(r+7,s))}},e}(HP),WP=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.tag=function(){return"</t>"},e}(GP),YP=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.tag=function(){return"</b>"},e.prototype._doPrepare=function(e,i,n,r){t.prototype._doPrepare.call(this,e,i,n,r),e.setAttribute("class","rct-text-bold")},e}(GP),XP=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.tag=function(){return"</i>"},e.prototype._doPrepare=function(e,i,n,r){t.prototype._doPrepare.call(this,e,i,n,r),e.setAttribute("class","rct-text-italic")},e}(GP),UP=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.target="_blank",e}return Dx(e,t),e.prototype.tag=function(){return"</a>"},e.prototype._doPrepare=function(e,i,n,r){var o=this;i.substring(2,n-1).trim().split(/\s+/g).forEach((function(t){var e=t.indexOf("=");if(e>0){var i=t.substring(0,e),n=t.substring(e+1,t.length),r=n.substring(1,n.length-1);switch(i){case"href":o.url=r;break;case"target":o.target=r}}})),t.prototype._doPrepare.call(this,e,i,n,r),e.setAttribute("class","rct-text-link")},e}(GP),qP={t:WP,b:YP,i:XP,a:UP},ZP=function(){function t(){}return Object.defineProperty(t.prototype,"words",{get:function(){return this._words.slice()},enumerable:!1,configurable:!0}),t.prototype.parse=function(t){function e(t){var e=i.length;e>0&&""===i[e-1].type?i[e-1].text+=t:i.push((new HP).parse(t))}for(var i=this._words=[],n=0;n<t.length;){if("<"==t[n]){var r=t[n+1],o=void 0;if(r in qP)if((l=t.indexOf(">",n+2))>=0){var s="</"+r+">",a=t.indexOf(s,l+1);if(a>=0){var u=t.substring(n,a+s.length);o=(new qP[r]).parse(u),n+=u.length}}if(!o){e(t.substring(n));break}this._words.push(o)}else{var l;if(!((l=t.indexOf("<",n+1))>=0)){e(t.substring(n));break}e(t.substring(n,l)),n=l}}return this},t}(),KP=/<br.*?>|\r\n|\n/,JP=function(){function t(t){this.setFormat(t)}return t.prototype.setFormat=function(t){t!==this._format&&this.$_parse(this._format=null!=t?String(t):t)},t.prototype.lines=function(){return this._lines.slice()},t.prototype.build=function(t,e,i,n,r){var o,s,a=t.doc,u=aS(this.lineHeight,1),l=this._lines,h=l.length,p=[],c=[];t.clearDom(),n=n||t;for(var f=t.getStyle("writing-mode"),_=f===US||f===qS,d=0;d<h;d++){var y=l[d],g=0,v=0,m=null;try{for(var b=(o=void 0,Ix(y.words)),w=b.next();!w.done;w=b.next()){var x=w.value,S=(k=x.prepareSpan(t.appendElement(a,"tspan"),n,r)).getBBox();if(k[$P]=S.width,k[zP]=S.height,_?(g=oS(g,k[$P]),v+=k[zP]):(g+=k[$P],v=oS(v,k[zP])),m||(m=k),x instanceof UP){var P=a.createElementNS($x,"a");P.setAttribute("href",x.url),P.setAttribute("target",x.target),P.appendChild(k),t.appendDom(P)}}}catch(t){o={error:t}}finally{try{w&&!w.done&&(s=b.return)&&s.call(b)}finally{if(o)throw o.error}}c.push(m),y[zP]=v*u,y[$P]=g*u,p.push(0==d?y[$P]/2:y[$P])}if(h>0){var V=l[0];for(d=1;d<c.length;d++)if(c[d]){var k;g=0,v=0;if(_?null!=c[d-1]&&(g=Math.floor(V[$P]-t.getAscent(V[$P]))+t.getAscent(l[d][$P])):v=Math.floor(V[zP]-t.getAscent(V[zP]))+t.getAscent(l[d][zP]),c[d]==c.find((function(t){return null!=t}))&&null==c[0])(k=t.insertElement(a,"tspan",c[d])).textContent=".",k.style.fill="transparent",g+=(S=k.getBBox()).width,k[$P]=S.width,k[zP]=V[zP]=S.height,c[0]=k;switch(f){case US:c[d].setAttribute("dx",String(g)),c[d].setAttribute("y","0");break;case qS:c[d].setAttribute("dx",String(-g)),c[d].setAttribute("y","0");break;default:c[d].setAttribute("x","0"),c[d].setAttribute("dy",String(v))}V=l[d]}if(_){var A=t.parent.dom.classList.contains("rct-annotation"),C=t.getBBox().width;g=(m=jx(c,1)[0])[$P];if(A)m.setAttribute("dx",String(f===qS?C-g/2:g/2));else switch(f){case US:m.setAttribute("x",String((C-g)/-2));break;case qS:m.setAttribute("x",String((C-g)/2))}}else t.layoutText(l[0][zP])}},t.prototype.layout=function(t,e,i,n,r){var o=t.getBBox(),s=0,a=0,u=t.getStyle("writing-mode");if(u===US||u===qS)switch(s=r.left+(i-r.left-r.right-o.width),e){case"center":t.anchor=RP.MIDDLE,a=r.top+(n-r.top-r.bottom)/2;break;case"right":t.anchor=RP.END,a=o.height-r.bottom;break;default:t.anchor=RP.START,a=r.top}else switch(a=r.top+(n-r.top-r.bottom-o.height)/2,e){case"center":t.anchor=RP.MIDDLE,s=r.left+(i-r.left-r.right)/2;break;case"right":t.anchor=RP.END,s=o.width-r.right;break;default:t.anchor=RP.START,s=r.left}t.trans(s,a)},t.prototype.$_parse=function(t){var e,i,n=this._lines=[];if(t){var r=t.split(KP);try{for(var o=Ix(r),s=o.next();!s.done;s=o.next()){var a=s.value;n.push((new ZP).parse(a))}}catch(t){e={error:t}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(e)throw e.error}}}},t}(),QP=function(){function t(t){this.source=t}return t.prototype.hasDef=function(){return!0},t}(),tV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._setStops=function(t,e){e.setAttribute("id",this.source.id);var i=this.source.color,n=null==this.source.opacity?1:this.source.opacity,r=Wx(i)?zx([],jx(i),!1):[i,"white"],o=Wx(n)?zx([],jx(n),!1):Array(r.length).fill(n);1===r.length&&r.push("white"),r.forEach((function(i,n){!function(t,e,i,n,r){var o=t.createElementNS($x,"stop");o.setAttribute("offset",String(i)),o.setAttribute("stop-color",n),o.setAttribute("stop-opacity",String(r)),e.appendChild(o)}(t,e,n/(r.length-1),i,null==o[n]?1:o[n])}))},e}(QP),eV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.getEelement=function(t,e){var i=t.createElementNS($x,"linearGradient"),n=0,r=0,o=0,s=0;switch(this._setStops(t,i),e.dir){case"up":o=1;break;case"right":r=1;break;case"left":n=1;break;default:s=1}return i.setAttribute("x1",n),i.setAttribute("y1",o),i.setAttribute("x2",r),i.setAttribute("y2",s),i},e.TYPE="lineargradient",e}(tV),iV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.getEelement=function(t,e){var i=t.createElementNS($x,"radialGradient");return TS(e.cx)||i.setAttribute("cx",e.cx),TS(e.cy)||i.setAttribute("cy",e.cy),TS(e.r)||i.setAttribute("r",e.r),this._setStops(t,i),i},e.TYPE="radialgradient",e}(tV),nV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.getEelement=function(t,i){var n,r,o,s,a=t.createElementNS($x,"pattern"),u=t.createElementNS($x,"path"),l=!1;if(a.setAttribute("id",i.id),a.setAttribute("patternUnits","userSpaceOnUse"),u.classList.add("rct-pattern"),+i.pattern>=0){var h=e.STOCK[+i.pattern%e.STOCK.length];n=h.path,r=h.style,l=!h.fill,o=h.width||20,s=h.height||20}else Xx(i.pattern)&&(n=i.pattern,o=i.width||i.height||20,s=i.height||i.width||20);a.setAttribute("width",String(o)),a.setAttribute("height",String(s)),u.setAttribute("d",n),r&&Kx(u.style,r),i.style&&Kx(u.style,i.style),l&&(u.style.fill="none");var p=i.backgroundStyle;if(Xx(p)||Gx(p)){var c=t.createElementNS($x,"rect");a.append(c),c.style.fill=Xx(p)?p:p.fill,c.setAttribute("width",String(o)),c.setAttribute("height",String(s))}return a.append(u),a},e.TYPE="pattern",e.STOCK=[{path:"M 0 10 L 10 0 M -1 1 L 1 -1 M 9 11 L 11 9",width:10,height:10,style:{strokeWidth:"0.3px"}},{path:"M0 0 L0 3 L5.2 6 L10.4 3 L10.4 0 M5.2 6 L5.2 12 L0 15 L0 18 M5.2 12 L10.4 15 L10.4 18",width:10.4,height:18,style:{strokeWidth:"0.3px"}},{path:"M0 0h5v5H0zM5 5h5v5H5z",fill:!0,width:10,height:10},{path:"m5 .037 4.957 4.957L5 9.951.043 4.994z",fill:!0,width:10,height:10},{path:"M0 2.8 L5 0 L10 2.8 L10 14 L5 16.8 L0 14 L0 2.8 M5 0 L5 5.6 L0 8.4 L5 11.2 L5 16.8 M5 5.6 L10 8.4 L5 11.2",style:{strokeWidth:"0.3px"},width:10,height:16.8},{path:"m5 .037 4.957 4.957L5 9.951.043 4.994z",fill:!1,width:10,height:10,style:{strokeWidth:"0.3px"}},{path:"M 0 0 L 12 12 L 24 0 M 4 0 L 12 8 L 20 0 M 8 0 L 12 4 L 16 0 M 0 4 L 8 12 L 0 20 M 0 8 L 4 12 L 0 16 M 0 24 L 12 12 L 24 24 M 4 24 L 12 16 L 20 24 M 8 24 L 12 20 L 16 24 M 24 20 L 16 12 L 24 4 M 24 16 L 20 12 L 24 8",width:24,height:24,fill:!1,style:{strokeWidth:"0.4px"}},{path:"M10 2.52H0M0 7.48h10M7.48 10V0M2.52 0v10",style:{strokeWidth:"0.3px"},width:5,height:5},{path:"M-2.5 1.25l5 2.5L7.5 1.25l5 2.5 M-2.5 6.25l5 2.5 5-2.5 5 2.5 M-2.5 11.25l5 2.5 5-2.5 5 2.5 M-2.5 16.25l5 2.5 5-2.5 5 2.5",width:10,height:10,style:{strokeWidth:"0.3px"}},{path:"M25 1.95v.26c-.79 0-1.43.64-1.43 1.43 0 .25.15.62.33.8l.31.31c.25.27.31.65.16.98l-.06.11c-.18.32-.5.52-.87.54h-4.56v4.56c.02.26.17.5.39.63l.11.06c.21.1.52.05.68-.11l.31-.31c.27-.24.61-.39.98-.4.93 0 1.69.76 1.69 1.69 0 .93-.76 1.69-1.69 1.69-.36-.02-.71-.16-.98-.4l-.31-.31a.63.63 0 0 0-.68-.11l-.11.06c-.23.13-.38.37-.39.63v4.56h4.56c.36.02.69.22.87.54l.06.11c.15.33.09.72-.16.98l-.31.31c-.2.22-.31.5-.33.8 0 .79.64 1.43 1.43 1.43v.26c-.93 0-1.69-.76-1.69-1.69.02-.36.16-.71.4-.98l.31-.31a.63.63 0 0 0 .11-.68l-.06-.11a.764.764 0 0 0-.63-.39h-4.56v4.56c-.02.36-.22.69-.54.87l-.11.06c-.33.15-.72.09-.98-.16l-.31-.31c-.22-.2-.5-.31-.8-.33-.79 0-1.43.64-1.43 1.43h-.26c0-.93.76-1.69 1.69-1.69.32 0 .75.18.98.4l.31.31c.19.17.45.21.68.11l.11-.06c.23-.13.38-.37.39-.63v-4.56h-4.56c-.36-.02-.69-.22-.87-.54l-.06-.11a.886.886 0 0 1 .16-.98l.31-.31c.2-.22.31-.5.33-.8a1.43 1.43 0 1 0-2.86 0c0 .25.15.62.33.8l.31.31c.25.27.31.65.16.98l-.06.11c-.18.32-.5.52-.87.54H6.38v4.56c.02.26.17.5.39.63l.11.06c.21.1.52.05.68-.11l.31-.31c.27-.24.61-.39.98-.4.93 0 1.69.76 1.7 1.69h-.26c0-.79-.64-1.43-1.43-1.43-.25 0-.62.15-.8.33l-.31.31c-.27.25-.65.31-.98.16l-.11-.06c-.32-.18-.52-.5-.54-.87v-4.56H1.56c-.26.02-.5.17-.63.39l-.06.11c-.1.21-.05.52.11.68l.31.31c.24.27.39.61.4.98 0 .93-.76 1.69-1.69 1.7v-.26c.79 0 1.43-.64 1.43-1.43 0-.25-.15-.62-.33-.8l-.31-.31a.888.888 0 0 1-.16-.98l.06-.11c.18-.32.5-.52.87-.54h4.56v-4.56a.812.812 0 0 0-.39-.63l-.11-.06a.647.647 0 0 0-.68.11l-.31.31c-.27.25-.62.39-.98.4-.93 0-1.69-.76-1.69-1.69s.76-1.69 1.69-1.69c.32 0 .75.18.98.4l.31.31c.19.17.45.21.68.11l.11-.06c.23-.13.38-.37.39-.63V6.38H1.56c-.36-.02-.69-.22-.87-.54l-.06-.11a.886.886 0 0 1 .16-.98l.31-.31c.2-.22.31-.5.33-.8 0-.79-.64-1.43-1.43-1.43v-.26c.93 0 1.69.76 1.69 1.69 0 .32-.18.75-.4.98l-.31.31a.63.63 0 0 0-.11.68l.06.11c.13.23.37.38.63.39h4.56V1.56c.02-.36.22-.69.54-.87l.11-.06c.33-.15.72-.09.98.16l.31.31c.22.2.5.31.8.33.79 0 1.43-.64 1.43-1.43h.26c0 .93-.76 1.69-1.69 1.69-.36-.02-.71-.16-.98-.4L7.57.98a.63.63 0 0 0-.68-.11l-.11.06c-.23.13-.38.37-.39.63v4.56h4.56c.36.02.69.22.87.54l.06.11c.15.33.09.72-.16.98l-.31.31c-.2.22-.31.5-.33.8a1.43 1.43 0 1 0 2.86 0c0-.25-.15-.62-.33-.8l-.31-.31a.888.888 0 0 1-.16-.98l.06-.11c.18-.32.5-.52.87-.54h4.56V1.56a.812.812 0 0 0-.39-.63l-.11-.06a.647.647 0 0 0-.68.11l-.31.31c-.27.25-.62.39-.98.4-.95 0-1.71-.76-1.71-1.69h.26c0 .79.64 1.43 1.43 1.43.25 0 .62-.15.8-.33l.31-.31c.27-.25.65-.31.98-.16l.11.06c.32.18.52.5.54.87v4.56h4.56c.26-.02.5-.17.63-.39l.06-.11c.1-.21.05-.52-.11-.68l-.31-.31c-.25-.27-.39-.62-.4-.98 0-.93.76-1.69 1.69-1.69ZM10.94 18.62c.26-.02.5-.17.63-.39l.06-.11c.1-.21.05-.52-.11-.68l-.31-.31c-.25-.27-.39-.62-.4-.98 0-.93.76-1.69 1.69-1.69s1.69.76 1.69 1.69c0 .32-.18.75-.4.98l-.31.31a.63.63 0 0 0-.11.68l.06.11c.13.23.37.38.63.39h4.56v-4.56c.02-.36.22-.69.54-.87l.11-.06c.33-.15.72-.09.98.16l.31.31c.22.2.5.31.8.33a1.43 1.43 0 1 0 0-2.86c-.25 0-.62.15-.8.33l-.31.31c-.27.25-.65.31-.98.16l-.11-.06c-.32-.18-.52-.5-.54-.87V6.38h-4.56c-.26.02-.5.17-.63.39l-.06.11c-.1.21-.05.52.11.68l.31.31c.24.27.39.61.4.98 0 .93-.76 1.69-1.69 1.69s-1.69-.76-1.69-1.69c.02-.36.16-.71.4-.98l.31-.31a.63.63 0 0 0 .11-.68l-.06-.11a.764.764 0 0 0-.63-.39H6.38v4.56c-.02.36-.22.69-.54.87l-.11.06c-.33.15-.72.09-.98-.16l-.31-.31c-.22-.2-.5-.31-.8-.33a1.43 1.43 0 1 0 0 2.86c.25 0 .62-.15.8-.33l.31-.31c.27-.25.65-.31.98-.16l.11.06c.32.18.52.5.54.87v4.56h4.56Z",width:25,height:25,fill:!1,style:{strokeWidth:"0.3px"}},{path:"M 0 8 L 8 0 L 12 4 L 4 12 Z M -2 2 L 2 6 M 2 -2 L 6 2 M 6 10 L 10 14 M 10 6 L 14 10",width:12,height:12,style:{strokeWidth:"0.5px"}},{path:"M0 13.66 6.34 10 10 16.34 3.66 20zM0 6.34 3.66 0 10 3.66 6.34 10zM10 16.34 13.66 10 20 13.66 16.34 20zM10 3.66 16.34 0 20 6.34 13.66 10zM0 6.34v7.32M20 6.36v7.3M6.34 10h7.32",width:20,height:20,style:{strokeWidth:"0.3px"},fill:!1}],e}(QP),rV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.prepare=function(){var t=this.source;return this._colors=Wx(t.colors)?t.colors.slice():[],"random"===t.mode?this._index=-1:("shuffle"===t.mode&&fS.shuffle(this._colors),this._index=0),this},e.prototype.getNext=function(){return this._index<0?this._colors[Math.floor(Math.random()*this._colors.length)]:this._colors[this._index++%this._colors.length]},e.prototype.hasDef=function(){return!1},e.prototype.getEelement=function(t,e){this._colors=Wx(e.colors)?e.colors:[]},e.TYPE="colors",e}(QP),oV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.prepare=function(){var t=this,e=this.source.rootUrl||"";this._images=[],this._map={},this.source.images.forEach((function(i){if(Xx(i))t._images.push(i);else{var n=e+i.url;i.name&&(t._map[i.name]=n),t._images.push(n)}}))},e.prototype.getImage=function(t){return Xx(t)?this._map[t]:this._images[t]},e.prototype.hasDef=function(){return!1},e.prototype.getEelement=function(t,i){this.size=Object.freeze({width:i.width||i.height||e.SIZE,height:i.height||i.width||e.SIZE})},e.TYPE="images",e.SIZE=20,e}(QP),sV=function(){function t(){this._items=[],this._map={}}return t.prototype.load=function(t){var e=this;if(this._items=[],Wx(t))t.forEach((function(t){var i=e.$_loadItem(t);i&&(i.hasDef()?e._items.push(i):e._map[t.id]=i)}));else if(Gx(t)){var i=this.$_loadItem(t);i&&(i.hasDef()?this._items.push(i):this._map[t.id]=i)}},t.prototype.updateOptions=function(t,e){},t.prototype.register=function(t,e){this._items.forEach((function(i){var n=i.getEelement(t,i.source);n.setAttribute(EP.ASSET_KEY,"1"),e.addDef(n)}))},t.prototype.unregister=function(t){this._items.forEach((function(e){t.removeDef(e.source.id)}))},t.prototype.get=function(t){return this._map[t]},t.prototype.$_loadItem=function(t){if(Gx(t)&&t.id){var e=t.type;if(e||(null!=t.pattern?e=nV.TYPE:Wx(t.colors)?e=rV.TYPE:Wx(t.images)&&(e=oV.TYPE)),e)switch(e.toLowerCase()){case eV.TYPE:return new eV(t);case iV.TYPE:return new iV(t);case nV.TYPE:return new nV(t);case rV.TYPE:return new rV(t);case oV.TYPE:return new oV(t)}}},t}(),aV=0,uV=function(t,e){var i={};for(var n in t)i[n]=t[n];for(var n in e)i[n]=e[n];return i},lV=function(t,e){var i=Gx(t)?t:{};for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];Wx(r)?i[n]=r.slice(0):r instanceof Date?i[n]=new Date(r):Gx(r)?i[n]=lV(i[n],r):i[n]=r}return i},hV=function(t){function e(e){var i=t.call(this)||this;return i.chart=e,aV++,i}return Dx(e,t),e.prototype.init=function(){var t=this._op=lV({},this.constructor.defaults);this._doInit(t),this._doApply(t);var e={};return this._doInitChildren(e),this._children=Object.keys(e),this._children.length>0&&Kx(t,e),t},e.prototype._doInit=function(t){},e.prototype._doInitChildren=function(t){},e.prototype._initObject=function(){return this.init(),this},Object.defineProperty(e.prototype,"options",{get:function(){return this._op},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"visible",{get:function(){return this._isVisible()},set:function(t){this.updateOption("visible",t)},enumerable:!1,configurable:!0}),e.prototype._isVisible=function(){return this._op.visible},e.prototype._load=function(t){var e=this._op;if(this._config=t,void 0!==t&&!this._doSetSimple(t)){if(null!==t&&null!=t.template){var i=this.chart&&this.chart.assignTemplates;i&&(t=i(t))}this._doLoad(e,t)}return this._doApply(e),e},e.prototype.loadOptions=function(t){return this.clearOptions(),this._load(t),this},e.prototype.saveOptions=function(t){void 0===t&&(t=!0);var e={};return this._doSave(e,this.constructor.defaults,t),e},e.prototype.updateOptions=function(t,e){void 0===e&&(e=!0);var i=function(t,e){var n=t._op,r={};for(var o in void 0===e||t._doSetSimple(e)||(t._children.forEach((function(t){e.hasOwnProperty(t)&&(r[t]=e[t],delete e[t])})),lV(n,e)),t.$_applyOptions(n),r)i(t[o],r[o])};return i(this,void 0!==t?Object.assign({},t):void 0),e&&this._changed(),this},e.prototype.updateOption=function(t,i,n){if(void 0===n&&(n=!0),this[t]instanceof e)this[t]._doSetSimple(i);else{var r=this._op;i!==r[t]&&(r[t]=i,this.$_applyOptions(r),n&&this._changed())}return this},e.prototype.toggleOption=function(t,i){void 0===i&&(i=!0);var n=this._op,r=n[t];return n.hasOwnProperty(t)&&(this[t]instanceof e?this[t]._doSetSimple(!Zx(r)||!r):(n[t]=!Zx(r)||!r,this.$_applyOptions(n),i&&this._changed())),this},e.prototype.removeOption=function(t,i){void 0===i&&(i=!0);var n=this._op;if(n.hasOwnProperty(t))if(this[t]instanceof e)this[t].clearOptions();else{delete n[t];var r=self.constructor.defaults;Hx.call(r,t)&&(n[t]=r[t]),this.$_applyOptions(n),i&&this._changed()}return this},e.prototype.clearOptions=function(t){void 0===t&&(t=!0);var e=function(t){if(t){var i=t._op=lV({},t.constructor.defaults);return t.$_applyOptions(i),t._children.forEach((function(n){i[n]=e(t[n])})),i}};return e(this),t&&this._changed(),this},e.prototype._prepareRender=function(){this._doPrepareRender(this.chart)},e.prototype._changed=function(t){var e;null===(e=this.chart)||void 0===e||e._modelChanged(this,t)},e.prototype._doLoad=function(t,i){for(var n in i)if(i.hasOwnProperty(n)){var r=i[n];this._doLoadProp(n,r)||(this[n]instanceof e?t[n]=this[n]._load(r):Wx(r)?t[n]=r.slice(0):r instanceof Date?t[n]=new Date(r):Gx(r)?t[n]=Kx({},r):t[n]=r)}},e.prototype._doSave=function(t,i,n){var r=this._op;for(var o in r)if(r.hasOwnProperty(o))if(n&&this[o]instanceof e)t[o]=this[o].saveOptions(!0);else{var s=r[o];Wx(s)?t[o]=this._doSaveArray(o,s)||s.slice():s!==i[o]&&(t[o]=s)}},e.prototype._doSaveArray=function(t,e){},e.prototype._doSetSimple=function(t){if(Zx(t))return this._op.visible=t,!0},e.prototype._doLoadProp=function(t,e){if("visible"===t)return this._op.visible=e,!0},e.prototype.$_applyOptions=function(t){var e,i=this.visible;this._doApply(t),this.visible!==i&&(null===(e=this.chart)||void 0===e||e._visibleChanged(this))},e.prototype._setDim=function(t,e){var i="_".concat(e);t[e]!==this[i]&&(this["".concat(i,"Dim")]=DS(this[i]=t[e],!0))},e.prototype._setDims=function(t){for(var e=this,i=[],n=1;n<arguments.length;n++)i[n-1]=arguments[n];i.forEach((function(i){return e._setDim(t,i)}))},e.prototype._doApply=function(t){this._style=t.style},e.prototype._doUpdate=function(t){for(var i in t)if(t.hasOwnProperty(i)){var n=t[i];this._doLoadProp(i,n)||(this[i]instanceof e?this[i].updateOptions(n):Wx(n)?this[i]=n.slice(0):n instanceof Date?this[i]=new Date(n):Gx(n)?this[i]=Kx({},n):this[i]=n)}},e.prototype._doPrepareRender=function(t){},e.REFRESHED="refreshed",e.defaults={visible:!0},e}(mS),pV=function(){function t(t){this._items=[],this.chart=t}return Object.defineProperty(t.prototype,"count",{get:function(){return this._items.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"first",{get:function(){return this._items[0]},enumerable:!1,configurable:!0}),t.prototype.items=function(){return this._items.slice(0)},t.prototype._internalItems=function(){return this._items},t.prototype.updateOptions=function(t,e){},t}(),cV=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._outlineThickness=2,e._outlineWidth="2px",e}return Dx(e,t),e.prototype._setOutlineThickness=function(t){t!==this._outlineThickness&&(this._outlineThickness=t,this._outlineWidth=aS(t,2)+"px")},e.prototype._setNumberSymbols=function(t){t!==this._numberSymbols&&(this._numberSymbols=t,this._numSymbols=t&&t.split(","))},e.prototype._setNumberFormat=function(t){t!==this._numberFormat&&(this._numberFormat=t,this._numberFormatter=t?rP.getFormatter(t):null)},e.prototype._setText=function(t){return t!==this._text&&this.prepareRich(this._text=t),!isNaN(this._op.lineHeight)&&this._richTextImpl&&(this._richTextImpl.lineHeight=this._op.lineHeight),this},e.prototype.setText=function(t){this._setText(t)},e.prototype.buildSvg=function(t,e,i,n,r,o){this._richTextImpl&&(this._richTextImpl.build(t,i,n,r,o),e&&this._richTextImpl.build(e,i,n,r,o))},e.prototype.prepareRich=function(t){t?(this._richTextImpl||(this._richTextImpl=new JP),this._richTextImpl.setFormat(t)):this._richTextImpl=null},e.prototype._doSetSimple=function(e){return Xx(e)?(this._op.text=e,!0):t.prototype._doSetSimple.call(this,e)},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),this._setOutlineThickness(e.outlineThickness),this._setNumberSymbols(e.numberSymbols),this._setNumberFormat(e.numberFormat),this._setText(e.text)},e.prototype.$_getNumberText=function(t,e,i){if(fS.isValidNum(t)){var n=this._numSymbols&&e&&fS.scaleNumber(t,this._numSymbols,i);return this._numberFormatter?n?this._numberFormatter.toStr(n.value)+n.symbol:this._numberFormatter.toStr(t):n?n.value+n.symbol:String(t)}return"NaN"},e.prototype._getText=function(t,e,i,n){var r=Xx(t)?t:this.$_getNumberText(e,i,n)||e;return this._op.prefix&&(r=this._op.prefix+r),this._op.suffix&&(r+=this._op.suffix),r},e.defaults=uV(hV.defaults,{effect:"none",autoContrast:!0,outlineThickness:2,numberSymbols:"k,M,G,T,P,E",numberFormat:"#,##0.#"}),e}(hV),fV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.getIconPos=function(){return"default"===this._op.iconPosition?this.getDefaultIconPos():this._op.iconPosition},e.prototype._doPrepareRender=function(t){if(this._images=null,this._op.imageList){var e=t._assets.get(this._op.imageList);e instanceof oV&&(this._images=e)}this._root=this._images?"":this._op.iconRoot||""},e.prototype.getUrl=function(t){if(t){var e=t.indexOf("::");if(0===e)return t=t.substring(2),this._images?this._images.getImage(t):t;if(e>0){var i=this.chart._assets.get(t.substring(0,e)),n=t.substring(e+2);return i instanceof oV?i.getImage(n):n}return this._root+t}},e.defaults=uV(cV.defaults,{iconPosition:"default",iconGap:2}),e}(cV),_V=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e}(hV),dV={},yV=function(t){function e(e,i){var n=t.call(this,e)||this;return n.inBody=i,n._offsetX=0,n._offsetY=0,n.index=-1,n}return Dx(e,t),e.register=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];t.forEach((function(t){dV[t.type]=t}))},e.prototype._type=function(){return this.constructor.type},Object.defineProperty(e.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),e.prototype.getOffset=function(t,e){var i=function(t,e,i){return i.size*("h"===i.suffix?e:t)};return{x:this._offsetXDim?i(t,e,this._offsetXDim):+this._offsetX,y:this._offsetYDim?i(t,e,this._offsetYDim):+this._offsetY}},e.prototype.getSize=function(t,e){var i,n,r=this.chart.isInverted(),o=this._op;if(this.inBody){var s=+o.x1,a=+o.x2,u=+o.y1,l=+o.y2;if(this._x=this._y=this._w=this._h=NaN,!isNaN(s)){var h=this.chart.xAxis;r?this._y=e-h.getPos(e,s):this._x=h.getPos(t,s),isNaN(a)||(r?n=this._h=e-h.getPos(e,a)-this._y:i=this._w=h.getPos(t,a)-this._x)}if(!isNaN(u)){h=this.chart.yAxis;r?this._x=h.getPos(t,u):this._y=e-h.getPos(e,u),isNaN(l)||(r?i=this._w=h.getPos(t,l)-this._x:n=this._h=e-h.getPos(e,l)-this._y)}}return isNaN(i)?i=IS(this._widthDim,t):i<0&&(this._x+=i,i=-i),isNaN(n)?n=IS(this._heightDim,e):n<0&&(this._y+=n,n=-n),{width:i,height:n}},e.prototype.getPosition=function(t,e,i,n,r,o,s){var a,u,l;if(isNaN(u=this._x))switch(a=this.getOffset(o,s),u=e,this._op.align){case"center":u+=(n-o)/2+a.x;break;case"right":u+=n-a.x-o;break;default:this._anchorObj?u+=(n-o)/2+a.x:u+=a.x}else a=a||this.getOffset(o,s),u=this._x+a.x;if(isNaN(l=this._y))switch(a=a||this.getOffset(o,s),l=i,this._op.verticalAlign){case"middle":l+=(r-s)/2-a.y;break;case"bottom":l+=r-a.y-s;break;default:l+=a.y}else a=a||this.getOffset(o,s),l=this._y+a.y;return{x:u,y:l}},e.prototype.refresh=function(){this._changed(hV.REFRESHED)},e.prototype._load=function(e){return this.chart?t.prototype._load.call(this,this.chart.loadBase(e,"annotation",this._type())):t.prototype._load.call(this,e)},e.prototype._doApply=function(e){var i,n=this,r=function(t){if(Xx(t)){var e=t[t.length-1];if("h"===e||"w"===e){var i=parseFloat(t);if(i===parseFloat(t.substring(0,t.length-1)))return{size:i,suffix:e}}}};t.prototype._doApply.call(this,e),this._name=e.name||"annotation ".concat(this.index+1),(i=e.offsetX)!=n._offsetX&&(n._offsetXDim=r(n._offsetX=i)),function(t){t!=n._offsetY&&(n._offsetYDim=r(n._offsetY=t))}(e.offsetY),this._setDims(e,"width","height")},e.prototype._doPrepareRender=function(t){},e.defaults=uV(hV.defaults,{front:!1,verticalAlign:"top",offsetX:0,offsetY:0,scope:"chart"}),e}(hV),gV=function(t){function e(e){var i=t.call(this,e.chart)||this;return i.owner=e,i._map={},i._visibles=[],i}return Dx(e,t),e.prototype.getVisibles=function(){return this._visibles.slice(0)},e.prototype.getAnnotation=function(t){var e=this._map[t];if(e instanceof yV)return e},e.prototype.get=function(t){return Xx(t)?this._map[t]:this._items[t]},e.prototype.load=function(t,e){var i=this,n=this.owner.chart,r=this._items=[],o=this._map={};Wx(t)?t.forEach((function(t,o){r.push(i.$_loadItem(n,t,o,e))})):Gx(t)&&r.push(this.$_loadItem(n,t,0,e)),r.forEach((function(t){t.name&&(o[t.name]=t)})),this.owner.options.annotation=this._items.map((function(t){return t.options}))},e.prototype.prepareRender=function(){var t=this;this._visibles=this._items.filter((function(t){return t.visible})),this._visibles.forEach((function(e){e._prepareRender(),e._anchorObj=e.options.anchor?t.owner.anchorByName(e.options.anchor):wS}))},e.prototype.$_loadItem=function(t,e,i,n){var r=e.type;r||(r=Xx(e.imageUrl)?"image":Xx(e.shape)?"shape":"text");var o=t._getAnnotationType(r);if(!o)throw new Error("Invalid annotation type: "+e.type);var s=new o(t,n);return s.init(),s.index=i,s._load(e),s},e}(pV),vV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.defaults=uV(hV.defaults,{minWidth:50}),e}(hV),mV=function(t){function e(e){var i=t.call(this,e.chart)||this;return i.axis=e,i}return Dx(e,t),e.prototype._doInit=function(t){this.flag=new vV(this.axis.chart).init(),this._args={axis:void 0,pos:void 0,flag:void 0,points:void 0}},e.prototype.isBar=function(){return!this.axis.continuous()&&"line"!==this._op.type},e.prototype.getFlag=function(t,e){var i=this.axis.axisValueAt(t,e);return i instanceof Date?wP.getFormatter(this._op.timeFormat).toStr(new Date(i),this.chart.startOfWeek):rP.getFormatter(this._op.numberFormat).toStr(i)},e.prototype.moved=function(t,e,i){this._op.onChange&&(this._args.pos=t,this._args.flag=e,this._args.points=i.slice(0),this._op.onChange(this._args))},e.prototype._setAxis=function(t){this._args.axis=t},e.prototype._doSetSimple=function(e){return Yx(e)?(this._op.visible=!0,this._op.onChange=e,!0):t.prototype._doSetSimple.call(this,e)},e.defaults=uV(hV.defaults,{visible:!1,type:"auto",showAlways:!0,followPointer:!0,numberFormat:"#,##0.#",timeFormat:"yyyy-MM-dd HH:mm",markerHovering:!1}),e}(hV),bV={},wV=function(t){function e(e){var i=t.call(this,null==e?void 0:e.chart)||this;return i.axis=e,i}return Dx(e,t),e}(hV),xV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._isVisible=function(){return null==this._op.visible?this.axis._isX:this._op.visible},e.prototype._doSetSimple=function(e){return Xx(e)?(this._op.visible=!0,this._op.style={stroke:e},!0):t.prototype._doSetSimple.call(this,e)},e.defaults=uV(wV.defaults,{visible:void 0}),e}(wV),SV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.getRotation=function(){return this.axis._isHorz?0:isNaN(this._rotation)?"opposite"===this.axis.options.position?90:270:this._rotation},e.prototype._isVisible=function(){return this._op.visible&&!TS(this._op.text)},e.prototype._doSetSimple=function(e){return Xx(e)?(this._op.text=e,!0):t.prototype._doSetSimple.call(this,e)},e.prototype._doApply=function(e){var i,n,r=this;t.prototype._doApply.call(this,e),i=e.rotation,n=+i,Number.isNaN(n)||90===n||270===n||-90===n||-270===n||(n=0),r._rotation=n},e.defaults=uV(wV.defaults,{align:"middle",offset:0,gap:5}),e}(wV),PV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.getRows=function(){var t=this.axis,e=this._op.colors,i=e?e.length:0,n=[];if(this._op.belowColor&&t.isBaseVisible()&&n.push({axis:t,from:t.axisMin(),to:t.getBaseValue(),color:this._op.belowColor}),i>0){var r=t._ticks,o=0;r[0].value>t.axisMin()&&(e[o%i]&&n.push({axis:t,from:t.axisMin(),to:r[0].value,color:e[o%i]}),o++);for(var s=1;s<r.length;s++,o++)e[o%i]&&n.push({axis:t,from:r[s-1].value,to:r[s].value,color:e[o%i]});r[r.length-1].value<t.axisMax()&&e[o%i]&&n.push({axis:t,from:r[r.length-1].value,to:t.axisMax(),color:e[o%i]})}return n},e.prototype._doSetSimple=function(e){return Xx(e)?(this._op.colors=[e,null],!0):Wx(e)?(this._op.colors=e,!0):t.prototype._doSetSimple.call(this,e)},e}(wV),VV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._doInitChildren=function(t){t.rows=(this._rows=new PV(this.axis)).init()},Object.defineProperty(e.prototype,"rows",{get:function(){return this._rows},enumerable:!1,configurable:!0}),e.prototype._isVisible=function(){return this.axis._isPolar?!1!==this._op.visible:null==this._op.visible?!this.axis._isX:this._op.visible},e.defaults=uV(wV.defaults,{visible:void 0}),e}(wV),kV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.getDefaultIconPos=function(){return"left"},e.defaults=uV(fV.defaults,{position:"inside",align:"left",verticalAlign:"top",offsetX:3,offsetY:3}),e}(fV),AV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._doInitChildren=function(t){t.label=(this._label=new kV(this.axis.chart)).init()},Object.defineProperty(e.prototype,"label",{get:function(){return this._label},enumerable:!1,configurable:!0}),e.prototype.canConstainedTo=function(t,e){var i,n,r,o,s=this._op;if(Wx(s.col)){try{for(var a=Ix(s.col),u=a.next();!u.done;u=a.next()){if(e==u.value)return!0}}catch(t){i={error:t}}finally{try{u&&!u.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return!1}if(!isNaN(s.col)&&e!=s.col)return!1;if(Wx(s.row)){try{for(var l=Ix(s.row),h=l.next();!h.done;h=l.next()){if(t==h.value)return!0}}catch(t){r={error:t}}finally{try{h&&!h.done&&(o=l.return)&&o.call(l)}finally{if(r)throw r.error}}return!1}return!(!isNaN(s.row)&&t!=s.row)},e.defaults=uV(wV.defaults,{front:!1,zindex:0}),e}(wV),CV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e}(AV),EV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e}(AV),LV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.canUseNumSymbols=function(){return!0},e.prototype._doSetSimple=function(e){return fS.canNumber(e)?(this._op.length=+e,!0):t.prototype._doSetSimple.call(this,e)},e.defaults=uV(wV.defaults,{visible:!1,length:7,gap:3}),e}(wV),NV=function(t){function e(e){var i=t.call(this,e&&e.chart)||this;return i.axis=e,i._domain={callback:function(t,e){return i._getParamValue(i._paramTick,e)}},i}return Dx(e,t),e.prototype._getParamValue=function(t,e){return e.startsWith("axis.")?this.axis[e.substring(5)]:t[e]},e.prototype.getLabelText=function(t,e){var i,n=this._op,r=t.index;if(n.textCallback){var o=n.textCallback(this.axis.getTickLabelArgs(r,t.value));if(null!=o)return o}return 1==e?lS(null!==(i=n.lastText)&&void 0!==i?i:n.firstText,n.text):0==r?lS(n.firstText,n.text):r==e-1?lS(n.lastText,n.text):n.text},e.prototype.getLabelStyle=function(t,e){var i=this._op,n=t.index;if(i.styleCallback){var r=i.styleCallback(this.axis.getTickLabelArgs(n,t.value));if(Gx(r))return r}return 1==e?i.lastStyle||i.firstStyle:0==n?i.firstStyle:n==e-1?i.lastStyle:void 0},e.prototype.getIcon=function(t){},e.prototype.getDefaultIconPos=function(){return this.axis._isHorz?"top":"right"},e.prototype._doPrepareRender=function(e){t.prototype._doPrepareRender.call(this,e),this._domain.numberFormatter=this._numberFormatter},e.defaults=uV(fV.defaults,{step:0,startStep:0,rows:0,maxRows:3,autoArrange:"rotate",overflow:"clip",firstOverflow:"pull",lastOverflow:"pull",overflowGap:12}),e}(fV),MV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.getThickness=function(){return Math.max(0,this._op.thickness)},e.prototype.getMinThumbSize=function(){return Math.max(0,this._op.minThumbSize)},e.prototype.getGap=function(){return Math.max(0,this._op.gap)},e.prototype.getGapFar=function(){return Math.max(0,this._op.gapFar)},e.defaults=uV(wV.defaults,{visible:!1,thickness:10,minThumbSize:32,gap:3,gapFar:3}),e}(wV),TV=function(){function t(t){this.axis=t}return t.prototype.total=function(){return this.max-this.min},t.prototype.length=function(){return this.end-this.start},t.prototype.isFull=function(){return this.start===this.min&&this.end===this.max},t.prototype.resize=function(t,e,i){if((t=isNaN(t)?this.start:oS(this.min,rS(this.max,t)))>(e=isNaN(e)?this.end:oS(t,rS(this.max,e)))){var n=t;t=e,e=n}var r=this.max-this.min;if((t!==this.start||e!==this.end)&&e>t&&(isNaN(i)||(e-t)/r>=i)&&r/(e-t)>1)return this.start=t,this.end=e,!0},t}(),OV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e}(xV),RV=function(t){function e(e,i){var n=t.call(this,e)||this;return n._series=[],n._minPad=0,n._maxPad=0,n._values=[],n._labelArgs={},n._seriesChanged=!1,n.guides=[],n._isX=i,n}return Dx(e,t),e.register=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];t.forEach((function(t){bV[t.type]=t,t.subtype&&(bV[t.subtype]=t)}))},e.prototype._animating=function(){return!isNaN(this._prevRate)},e.prototype._doInitChildren=function(t){t.title=(this._title=new SV(this)).init(),t.line=(this._line=new xV(this)).init(),t.sectorLine=(this._sectorLine=new OV(this)).init(),t.tick=(this._tick=this._createTickModel()).init(),t.label=(this._label=this._createLabel()).init(),t.grid=(this._grid=this._createGrid()).init(),t.crosshair=(this._crosshair=new mV(this)).init(),t.scrollBar=(this._scrollBar=new MV(this)).init()},e.prototype._type=function(){return this.constructor.type},Object.defineProperty(e.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"title",{get:function(){return this._title},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"line",{get:function(){return this._line},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sectorLine",{get:function(){return this._sectorLine},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tick",{get:function(){return this._tick},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"label",{get:function(){return this._label},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"grid",{get:function(){return this._grid},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"crosshair",{get:function(){return this._crosshair},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scrollBar",{get:function(){return this._scrollBar},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"xy",{get:function(){return this._isX?"x":"y"},enumerable:!1,configurable:!0}),e.prototype.isEmpty=function(){return this._isEmpty},e.prototype._checkEmpty=function(){var t,e;if(this._series.length>0)try{for(var i=Ix(this._series),n=i.next();!n.done;n=i.next()){if(!n.value.isEmpty(!0))return!1}}catch(e){t={error:e}}finally{try{n&&!n.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}return!0},e.prototype.getBaseValue=function(){return NaN},e.prototype.length=function(){return this._max-this._min},e.prototype.axisMin=function(){return this._min},e.prototype.axisMax=function(){return this._max},e.prototype.axisValueAt=function(t,e){return this.valueAt(t,e)},e.prototype.getStartAngle=function(){return PS+VS*this._op.startAngle},e.prototype.getTotalAngle=function(){return VS*oS(0,rS(360,aS(this._op.totalAngle,360)))},e.prototype.isArced=function(){return this._op.totalAngle>0&&this._op.totalAngle<360},e.prototype.getVisibleSeries=function(){var t=[];return this._series.forEach((function(e){e.visible&&t.push.apply(t,zx([],jx(e.getVisibleSeries()),!1))})),t},e.prototype.unitPad=function(){return 0},e.prototype.labelsVisible=function(){return this._label.visible&&this._ticks.length>0},e.prototype.value2Tooltip=function(t){return isNaN(t)?this.chart._tooltip.options.nanText:t},e.prototype.isBased=function(){return!1},e.prototype.isBaseVisible=function(){return this.axisMin()<this.getBaseValue()},e.prototype.disconnect=function(){this._series=[]},e.prototype.getSeries=function(){var t=[];return this._series.forEach((function(e){t.push.apply(t,zx([],jx(e.getVisibleSeries()),!1))})),t},e.prototype.collectValues=function(){var t=this;this._values=[],this._series.forEach((function(e){e.collectValues(t,e.needAxes()?t._values:null)}))},e.prototype.collectRanges=function(){var t=this;this._series.forEach((function(e){e.needAxes()&&e.collectRanges(t._values)}))},e.prototype.collectReferentsValues=function(){var t=this;this._series.forEach((function(e){e.pointValuesPrepared(t)}))},e.prototype._prepare=function(){this._isEmpty=this._checkEmpty()},e.prototype._prepareRender=function(){var t,e,i,n=this._op.position;this._isHorz=this.chart.isInverted()?!this._isX:this._isX,this._isBetween=this.chart.isSplitted()&&"between"===n&&this._isX,this._isOpposite="opposite"===n,this._runPos=n,this._crosshair._setAxis(this._labelArgs.axis=this),this._doPrepareRender(),null===(i=this._label)||void 0===i||i._prepareRender();var r=this._series,o=this._values;if(this._isX&&this._prevSeries){if(!(this._seriesChanged=!fS.equalArrays(r,this._prevSeries)))try{for(var s=Ix(r),a=s.next();!a.done;a=s.next()){if(a.value.seriesChanged()){this._seriesChanged=!0;break}}}catch(e){t={error:e}}finally{try{a&&!a.done&&(e=s.return)&&e.call(s)}finally{if(t)throw t.error}}}else this._seriesChanged=!1;if(this._zoom?this._range={min:this._zoom.start,max:this._zoom.end}:this._range=this._doCalculateRange(o),this._isX&&r.length>0)if(this.chart.isSplitted()){for(var u=[r[0]._row],l=1;l<r.length;l++)u.indexOf(r[l]._row)<0&&u.push(r[l]._row);u.forEach((function(t){var e=0,i=0;r.forEach((function(i){i._row==t&&i.isClusterable()&&(e+=aS(i.groupWidth(),1))})),r.forEach((function(n){if(n._row==t&&n.isClusterable()){var r=aS(n.groupWidth(),1)/e;n.setCluster(r,i),i+=r}}))}))}else{var h=0,p=0;r.forEach((function(t){t.isClusterable()&&(h+=aS(t.groupWidth(),1))})),r.forEach((function(t){if(t.isClusterable()){var e=aS(t.groupWidth(),1)/h;t.setCluster(e,p),p+=e}}))}},e.prototype.afterRender=function(){this._seriesChanged=!1,this._prevSeries=this._series,this._zooming=!1},e.prototype._buildTicks=function(t){this._ticks=this._doBuildTicks(this._range.min,this._range.max,this._vlen=t),this._labelArgs.count=this._ticks.length},e.prototype._calcPoints=function(t,e){var i=this;this._ticks.forEach((function(e){return e.pos=i.getPos(t,e.value)}))},e.prototype.getLabelLength=function(t,e){return this.getUnitLen(t,e)},e.prototype.getValue=function(t){return null==t?NaN:parseFloat(t)},e.prototype.incStep=function(t,e){return t+e},e.prototype.contains=function(t){return t>=this._min&&t<=this._max},e.prototype.trimRange=function(t,e){return[oS(t,this._min),rS(e,this._max)]},e.prototype.resetZoom=function(){this._zoom&&(this._zoom=null,this._zooming=!0,this._changed())},e.prototype._prepareZoom=function(){return this._zoom||(this._zoom=new TV(this),this._buildTicks(this._vlen),this._zoom.start=this._zoom.min=this._min,this._zoom.end=this._zoom.max=this._max),this._zoom},e.prototype.zoom=function(t,e,i){void 0===i&&(i=NaN);var n=this._prepareZoom(),r=n.resize(t,e,i);return n.isFull()&&(this._zoom=null),this._zooming=!0,this._changed(),r},e.prototype.isZoomed=function(){return!!this._zoom},e.prototype.hasBreak=function(){return!1},e.prototype.isBreak=function(t){return!1},e.prototype.getTickLabelArgs=function(t,e){return this._labelArgs.index=t,this._labelArgs.value=e,this._labelArgs},e.prototype.getXValue=function(t){return t},e.prototype.setPrevRate=function(t){this._prevRate=t},e.prototype.prev=function(t){return isNaN(this._prevRate)?t:this._op.reversed?t+(this._vlen-t)*(this._prevRate-1):t*this._prevRate},e.prototype._load=function(e){return this.chart?t.prototype._load.call(this,this.chart.loadBase(e,this._isX?"xAxis":"yAxis",this._type())):t.prototype._load.call(this,e)},e.prototype._doApply=function(e){var i=this,n=this.guides,r=function(t){var e;t!==i._guides&&(i._guides=t,e=Wx(t)?t:[t],n.length=0,e.forEach((function(t){var e;(e="range"===t.type?new EV(i):"line"===t.type||isNaN(t.startValue)||isNaN(t.endValue)?new CV(i):new EV(i)).init(),e._load(t),n.push(e)})))};t.prototype._doApply.call(this,e),this._name=e.name||"Axis ".concat(this._index+1),Hx.call(e,"guide")?r(e.guide):Hx.call(e,"guides")&&r(e.guides)},e.prototype._setMinMax=function(t,e){this._min=t,this._max=e,this._single=t===e},e.prototype._connect=function(t){t&&!this._series.includes(t)&&this._series.push(t)},e.prototype._doCalculateRange=function(t){return{min:t.length>0?ES(rS.apply(void 0,zx([],jx(t),!1))||0):NaN,max:t.length>0?ES(oS.apply(void 0,zx([],jx(t),!1))||0):NaN}},e.defaults=uV(hV.defaults,{row:0,col:0,startAngle:0,totalAngle:360,position:"normal",reversed:!1,marginNear:0,marginFar:0,tooltipHeader:"<b>${name}</b>",tooltipRow:"${series}:<b> ${yValue}</b>",animatable:!0,fixedSize:!1}),e}(hV),BV=function(t){function e(e,i){var n=t.call(this,e)||this;return n._map=new Map,n.isX=i,n}return Dx(e,t),e.prototype._clear=function(){},e.prototype.load=function(t){var e=this,i=this.chart;Wx(t)?t.forEach((function(t,n){return e._items.push(e.$_loadAxis(i,t,n))})):this._items.push(this.$_loadAxis(i,t,0)),i.options[this.isX?"xAxis":"yAxis"]=this._items.map((function(t){return t.options}))},e.prototype.contains=function(t){return this._items.indexOf(t)>=0},e.prototype.get=function(t){return Xx(t)?this._map.get(t):this._items[t]},e.prototype.disconnect=function(){this._items.forEach((function(t){return t.disconnect()}))},e.prototype.prepare=function(){this._items.forEach((function(t){return t._prepare()}))},e.prototype.collectValues=function(){this._items.forEach((function(t){return t.collectValues()}))},e.prototype.collectRanges=function(){this._items.forEach((function(t){return t.collectRanges()}))},e.prototype.collectReferentsValues=function(){this._items.forEach((function(t){return t.collectReferentsValues()}))},e.prototype.prepareRender=function(){this._items.forEach((function(t){return t._prepareRender()}))},e.prototype.afterRender=function(){this._items.forEach((function(t){return t.afterRender()}))},e.prototype._buildTicks=function(t){this._items.sort((function(t,e){return t.isBased()?1:e.isBased()?-1:0})).forEach((function(e){return e._buildTicks(t)}))},e.prototype.connect=function(t){var e,i=this._items,n=t.options,r=this.isX?n.xAxis:n.yAxis;return qx(r)&&r>=0&&r<i.length?e=i[r]:Xx(r)&&(e=i.find((function(t){return t.options.name===r}))),e||(e=i[0]),e&&(e._connect(t),this.isX?t.setCol(aS(n.col,e.options.col)):t.setRow(aS(n.row,e.options.row))),e},e.prototype.forEach=function(t){for(var e=0,i=this._items.length;e<i&&!0!==t(this._items[e],e);e++);},e.prototype.isZoomed=function(){var t,e;try{for(var i=Ix(this._items),n=i.next();!n.done;n=i.next()){if(n.value.isZoomed())return!0}}catch(e){t={error:e}}finally{try{n&&!n.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}},e.prototype.resetZoom=function(){this._items.forEach((function(t){return t.resetZoom()}))},e.prototype.$_loadAxis=function(t,e,i){var n,r,o,s=t._getAxisType(e.type);if(!s){var a=void 0;if(Wx(e.categories))a="category";else if(this.isX){var u=t._getSeries()._internalItems();if(u.length>0){a="category";try{for(var l=Ix(u),h=l.next();!h.done;h=l.next()){var p=h.value;if(!p.canCategorized()){if(e.name&&p.options.xAxis===e.name){a=void 0;break}if(p.options.xAxis===i){a=void 0;break}if(TS(p.options.xAxis)&&0===i){a=void 0;break}}}}catch(t){n={error:t}}finally{try{h&&!h.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}}}else a=null===(o=t._getSeries().first)||void 0===o?void 0:o.defYAxisType();a&&(s=t._getAxisType(a))}s||(s=t._getAxisType("linear"));var c=new s(t,this.isX);return c.init(),c._load(e),c._index=i,c._isPolar=t.isPolar(),c},e}(pV),DV=function(){this._axes=[]},FV=function(){function t(t,e){this.chart=t,this.isX=e}return t.prototype.rows=function(){return this._matrix.length},t.prototype.cols=function(){return this._matrix[0].length},t.prototype.get=function(t,e){return this._matrix[t][e]},t.prototype.getRow=function(t){return this._matrix[t]},t.prototype.getColumn=function(t){return this._matrix.map((function(e){return e[t]}))},t.prototype._buildTicks=function(t){var e=this.isX;this._matrix.forEach((function(i,n){i.forEach((function(i,n){i._axes.forEach((function(i){i.isBased()||i._buildTicks(t[e?i.options.col:i.options.row])}))}))})),this._matrix.forEach((function(i,n){i.forEach((function(i,n){i._axes.forEach((function(i){i.isBased()&&i._buildTicks(t[e?i.options.col:i.options.row])}))}))}))},t.prototype._calcPoints=function(t,e){var i=this.isX;this._matrix.forEach((function(n){n.forEach((function(n,r){n._axes.forEach((function(n){var r=i?n.options.col:n.options.row;n._calcPoints(t[r],e)}))}))}))},t}(),IV=function(t){function e(e){return t.call(this,e,!0)||this}return Dx(e,t),e.prototype._prepare=function(t,e,i){for(var n=this._matrix=new Array(e+1),r=0;r<n.length;r++){n[r]=[];for(var o=0;o<i;o++)n[r].push(new DV)}t.forEach((function(t){var i=t.options.position,r=t._row;"opposite"===i?(r++,t._runPos=i):r<e-1&&"between"===i?(r++,t._runPos="normal"):t._runPos=i,n[r][t._col]._axes.push(t)}))},e}(FV),jV=function(t){function e(e){return t.call(this,e,!1)||this}return Dx(e,t),e.prototype._prepare=function(t,e,i){for(var n=this._matrix=new Array(e),r=0;r<n.length;r++){n[r]=[];for(var o=0;o<=i;o++)n[r].push(new DV)}t.forEach((function(t){var e=t.options.position,r=t._col;"opposite"===e?(r++,t._runPos=e):t._col<i-1&&"between"===e?(r++,t._runPos="normal"):t._runPos=e,n[t._row][r]._axes.push(t)}))},e}(FV),zV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._doPrepareRender=function(t){},e}(hV),$V={},HV={},GV=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.index=-1,e}return Dx(e,t),e.prototype._type=function(){return this.constructor.type},Object.defineProperty(e.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),e.prototype.getSize=function(t,e){return{width:IS(this._widthDim||this._sizeDim,t,t),height:IS(this._heightDim||this._sizeDim,e,e)}},e.prototype.getLeft=function(t){return IS(this._leftDim,t)},e.prototype.getRight=function(t){return IS(this._rightDim,t)},e.prototype.getTop=function(t){return IS(this._topDim,t)},e.prototype.getBottom=function(t){return IS(this._bottomDim,t)},e.prototype._load=function(e){return this.chart?t.prototype._load.call(this,this.chart.loadBase(e,"gauge",this._type())):t.prototype._load.call(this,e)},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),this._name=e.name||"Gauge ".concat(this.index+1),this._setDims(e,"left","right","top","bottom","width","height","siz")},e.defaults=uV(zV.defaults,{size:"100%"}),e}(zV),WV=function(t){function e(e){return t.call(this,e.chart)||this}return Dx(e,t),e}(hV),YV=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._gindex=-1,e}return Dx(e,t),e.register=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];t.forEach((function(t){$V[t.type]=t}))},e._loadGauge=function(t,e,i){var n=t._getGaugeType(e.type);n||(n=t._getGaugeType(i||t.gaugeType));var r=new n(t);return r.init(),r._load(e),r},e.prototype.setGroup=function(t,e){this._group=t,this._gindex=e},e.defaults=uV(GV.defaults,{duration:500}),e}(GV),XV=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._gauges=[],e._visibles=[],e}return Dx(e,t),e.register=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];t.forEach((function(t){HV[t.type]=t,HV[t.gaugeType]=t}))},Object.defineProperty(e.prototype,"gauges",{get:function(){return this._gauges.slice(0)},enumerable:!1,configurable:!0}),e.prototype.count=function(){return this._gauges.length},e.prototype.isEmpty=function(){return this._gauges.length<1},e.prototype.visibles=function(){return this._visibles.slice(0)},e.prototype.get=function(t){return this._gauges[t]},e.prototype.getVisible=function(t){return this._visibles[t]},e.prototype.calcedMinMax=function(){return{min:this._op.minValue,max:this._op.maxValue}},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),Hx.call(e,"children")&&this.$_loadGauges(this.chart,e.children)},e.prototype._doSaveArray=function(t,e){if("children"===t)return this._gauges.map((function(t){return t.saveOptions()}))},e.prototype._prepareRender=function(){var e=this;this._visibles=this._gauges.filter((function(t){return t.visible})),t.prototype._prepareRender.call(this),this._visibles.forEach((function(t,i){e._setGroup(t,i),t._prepareRender()}))},e.prototype.$_loadGauges=function(t,e){var i=this,n=this._gaugesType();Wx(e)?e.forEach((function(e,r){return i.$_add(YV._loadGauge(t,e,n))})):Gx(e)&&this.$_add(YV._loadGauge(t,e,n))},e.prototype.$_add=function(t){if(t._type()!==this._gaugesType())throw new Error("이 그룹에 포함될 수 없는 게이지입니다: "+t);this._gauges.push(t),t.index=this._gauges.length-1},e.prototype._setGroup=function(t,e){t.setGroup(this,e)},e.defaults=uV(GV.defaults,{minValue:0}),e}(GV),UV=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._map={},e._visibles=[],e._gauges=[],e}return Dx(e,t),Object.defineProperty(e.prototype,"firstGauge",{get:function(){return this._gauges[0]},enumerable:!1,configurable:!0}),e.prototype.isEmpty=function(t){return(t?this._visibles:this._items).length<1},e.prototype.getVisibles=function(){return this._visibles.slice(0)},e.prototype.getPaneVisibles=function(t,e){return this._visibles.filter((function(i){var n=i.options.row||0,r=i.options.col||0;return t===n&&e===r}))},e.prototype.getGauge=function(t){var e=this._map[t];if(e instanceof YV)return e},e.prototype.get=function(t){return Xx(t)?this._map[t]:this._items[t]},e.prototype.load=function(t){var e=this,i=this.chart,n=this._items=[],r=this._map={};Wx(t)?t.forEach((function(t,r){n.push(e.$_loadItem(i,t,r))})):Gx(t)&&n.push(this.$_loadItem(i,t,0)),n.forEach((function(t){if(t.name&&(r[t.name]=t),t instanceof XV)for(var i=0;i<t.count();i++){var n=t.get(i);n.name&&(r[n.name]=n),e._gauges.push(n)}else e._gauges.push(t)})),i.options.gauge=this._gauges.map((function(t){return t.options}))},e.prototype.prepareRender=function(){this._visibles=this._items.filter((function(t){return t.visible})),this._visibles.forEach((function(t){return t._prepareRender()}))},e.prototype.$_loadItem=function(t,e,i){var n=Wx(e.children)&&t._getGaugeGroupType(e.type||t.gaugeType);if(n||(n=t._getGaugeType(e.type||t.gaugeType)),!n)throw new Error("Invalid gauge type: "+e.type);var r=new n(t);return r.init(),r._load(e),r.index=i,r},e}(pV),qV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.updateValue=function(t){t!==this._op.value&&(this._op.value=t,this._changed())},e.prototype.getLabel=function(t,e){return this._runValue=e,t.options.text||(t.options.prefix||"")+"${value}"+(t.options.suffix||"")},e.prototype.getParam=function(t){switch(t){case"value":return this._runValue;case"min":return this._op.minValue;case"max":return this._op.maxValue}},e.prototype.calcedMinMax=function(){return{min:this._op.minValue,max:this._op.maxValue}},e.defaults=uV(YV.defaults,{minValue:0,maxValue:100,value:0,animatable:!0}),e}(YV),ZV=function(t){function e(e){var i=t.call(this,e.chart)||this;return i.scale=e,i}return Dx(e,t),e.defaults=uV(hV.defaults,{reversed:!1,length:7}),e}(hV),KV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.getText=function(t){return fS.isValidNum(t)?this._getText(null,t,sS(t)>1e3,!0):t},e.prototype.getDefaultIconPos=function(){return"left"},e}(fV),JV=function(t){function e(e){var i=t.call(this,e.chart)||this;return i.gauge=e,i}return Dx(e,t),e.prototype._doInitChildren=function(t){var e=this.chart;t.line=(this._line=new hV(e)).init(),t.tick=(this._tick=new ZV(this)).init(),t.label=(this._label=new KV(e)).init()},Object.defineProperty(e.prototype,"line",{get:function(){return this._line},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tick",{get:function(){return this._tick},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"label",{get:function(){return this._label},enumerable:!1,configurable:!0}),e.prototype.range=function(){return{min:this._min,max:this._max}},e.prototype.isEmpty=function(){return this._max<=this._min},e.prototype.buildSteps=function(t,e,i){void 0===i&&(i=NaN),i=aS(i,e);var n=this._adjustMinMax(rS(e,i),oS(e,i)),r=n.min,o=n.max;return this._steps=this._buildSteps(t,r,o)},e.prototype.buildGroupSteps=function(t,e){var i=this._adjustGroupMinMax(e),n=i.min,r=i.max;return this._steps=this._buildSteps(t,n,r)},e.prototype.getRate=function(t){return(oS(this._min,t)-this._min)/(this._max-this._min)},e.prototype._adjustMinMax=function(t,e){var i=this.gauge;return t=aS(i.options.minValue,t),e=aS(i.options.maxValue,e),this._min=rS(t,e),this._max=oS(e,t),{min:this._min,max:this._max}},e.prototype._adjustGroupMinMax=function(t){var e=this.gauge,i=e.options.minValue,n=e.options.maxValue;return isNaN(i)&&(i=rS.apply(void 0,zx([],jx(t),!1))),isNaN(n)&&(n=oS.apply(void 0,zx([],jx(t),!1))),this._min=rS(i,n),this._max=oS(n,i),{min:this._min,max:this._max}},e.prototype._buildSteps=function(t,e,i){var n,r=this._op;return n=Array.isArray(r.steps)?r.steps.slice(0):r.stepCount>0?this._getStepsByCount(r.stepCount,e,i):r.stepInterval>0?this._getStepsByInterval(r.stepInterval,e,i):r.stepPixels>0?this._getStepsByPixels(t,r.stepPixels,e,i):[e,i],this._min=n[0],this._max=n[n.length-1],n},e.prototype._getStepsByCount=function(t,e,i){var n=(i-e)/(t-1),r=Math.pow(10,Math.floor(Math.log10(n))),o=[];n=this._step=Math.ceil(n/r)*r,o.push(ES(e));for(var s=1;s<t;s++)o.push(ES(o[s-1]+n));return o},e.prototype._getStepsByInterval=function(t,e,i){var n,r=[];for(r.push(n=e);n<i;)r.push(n+=t);return this._step=t,r},e.prototype._getStepMultiples=function(t){return[1,2,2.5,5,10]},e.prototype._getStepsByPixels=function(t,e,i,n){var r=[],o=n-i;if(0===o)return r;var s,a=o/(Math.floor(t/e)+1-1),u=Math.pow(10,Math.floor(Math.log10(a))),l=this._getStepMultiples(u),h=0;if(a/=u,l)if(a>l[h]){for(;h<l.length-1;h++)if(a>l[h]&&a<l[h+1]){a=l[++h];break}}else a=l[h];for(a*=u,this._step=a,r.push(ES(s=i));;){if((s+=a)>=n){r.push(ES(n));break}r.push(ES(s))}return r},e.defaults=uV(hV.defaults,{position:"default",stepPixels:48,gap:8}),e}(hV),QV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.defaults=uV(hV.defaults,{visible:!1}),e}(hV),tk=function(t){function e(e){var i=t.call(this,e.chart)||this;return i.gauge=e,i}return Dx(e,t),e.prototype._doInitChildren=function(t){var e=this.chart;t.rangeLabel=(this._rangeLabel=new QV(e)).init(),t.tickLabel=(this._tickLabel=new hV(e)).init()},Object.defineProperty(e.prototype,"rangeLabel",{get:function(){return this._rangeLabel},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tickLabel",{get:function(){return this._tickLabel},enumerable:!1,configurable:!0}),e.prototype.getThickness=function(t){return this._thicknessDim?IS(this._thicknessDim,t,0):"inside"===this._op.position?t:e.defaults.thickness},e.prototype.getRanges=function(){return this.$_internalRanges().slice(0)},e.prototype._doApply=function(e){var i,n=this;t.prototype._doApply.call(this,e),(i=e.ranges)!==n._ranges&&(n._ranges=i,n._runRanges=null),this._setDim(e,"thickness")},e.prototype.$_internalRanges=function(){if(!this._runRanges){var t=this.gauge.calcedMinMax();this._runRanges=XS(this._ranges,t.min,t.max,!1,!0)||[]}return this._runRanges},e.defaults=uV(hV.defaults,{visible:!1,position:"default",thickness:7,gap:5,itemGap:0}),e}(hV),ek=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._domain={callback:function(t,e){return t.getParam(e)}},e}return Dx(e,t),e.prototype._doPrepareRender=function(t){this._domain.numberFormatter=this._numberFormatter},e.defaults=uV(cV.defaults,{animatable:!0}),e}(cV),ik=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e}(JV),nk=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._offsetX=0,e._offsetY=0,e}return Dx(e,t),e.prototype.getOffset=function(t,e){return{x:IS(this._offsetXDim,t,0),y:IS(this._offsetYDim,e,0)}},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),this._setDims(e,"offsetX","offsetY")},e.defaults=uV(ek.defaults,{offsetX:0,offsetY:0}),e}(ek),rk=function(){function t(t){void 0===t&&(t=!1),t?(this.setCenterX("50%"),this.setCenterY("50%"),this.setValueRadius("100%")):(this.setCenterX(ok.DEF_CENTER),this.setCenterY(ok.DEF_CENTER),this.setRadius(ok.DEF_RADIUS),this.setInnerRadius(ok.DEF_INNER))}return t.prototype.centerX=function(){return this._centerX},t.prototype.setCenterX=function(t){t!==this._centerX&&(this._centerX=t,this._centerXDim=DS(lS(t,ok.DEF_CENTER),!0))},t.prototype.centerY=function(){return this._centerY},t.prototype.setCenterY=function(t){t!==this._centerY&&(this._centerY=t,this._centerYDim=DS(lS(t,ok.DEF_CENTER),!0))},t.prototype.radius=function(){return this._radius},t.prototype.setRadius=function(t){t!==this._radius&&(this._radius=t,this._radiusDim=DS(lS(t,ok.DEF_RADIUS),!0))},t.prototype.innerRadius=function(){return this._innerRadius},t.prototype.setInnerRadius=function(t){t!==this._innerRadius&&(this._innerRadius=t,this._innerDim=DS(lS(t,ok.DEF_INNER),!0))},t.prototype.valueRadius=function(){return this._valueRadius},t.prototype.setValueRadius=function(t){t!==this._valueRadius&&(this._valueRadius=t,this._valueDim=DS(t,!0))},t.prototype.getCenter=function(t,e){return{x:IS(this._centerXDim,t,t/2),y:IS(this._centerYDim,e,e/2)}},t.prototype.getExtents=function(t){var e=IS(this._radiusDim,t,t/2),i=rS(e,this._innerDim?IS(this._innerDim,e):0),n=i+(e-i)/2;return{radius:e,inner:i,value:this._valueDim?IS(this._valueDim,n):n,radiusThick:e-i}},t.prototype.prepareAngles=function(t,e){var i=aS(t%360,0),n=oS(0,rS(360,aS(e,360)));this._startRad=PS+VS*i,this._handRad=VS*i,this._sweepRad=VS*n},t}(),ok=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._doInit=function(t){this._props=new rk},e.prototype._doInitChildren=function(t){t.label=(this._label=new nk(this.chart)).init()},Object.defineProperty(e.prototype,"label",{get:function(){return this._label},enumerable:!1,configurable:!0}),e.prototype.getProps=function(){return this._childProps||this._props},e.prototype.getCenter=function(t,e){return this._group?this._childProps.getCenter(t,e):this._props.getCenter(t,e)},e.prototype.getExtents=function(t){return this._group?this._childProps.getExtents(t):this._props.getExtents(t)},e.prototype.labelVisible=function(){return this._label.visible},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e);var i=this._props;i.setCenterX(e.centerX),i.setCenterY(e.centerY),i.setRadius(e.radius),i.setInnerRadius(e.innerRadius),i.setValueRadius(e.valueRadius)},e.prototype.setGroup=function(e,i){t.prototype.setGroup.call(this,e,i),e&&!this._childProps&&(this._childProps=new rk)},e.prototype._doPrepareRender=function(e){t.prototype._doPrepareRender.call(this,e),this._label._prepareRender();var i=this._group;i?this._childProps.prepareAngles(i.options.startAngle,i.options.sweepAngle):this._props.prepareAngles(this._op.startAngle,this._op.sweepAngle)},e.DEF_CENTER="50%",e.DEF_RADIUS="40%",e.DEF_INNER="80%",e.defaults=uV(qV.defaults,{startAngle:0,sweepAngle:360,clockwise:!0}),e}(qV),sk=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._doInit=function(t){this.props=new rk},e.prototype._doInitChildren=function(t){t.label=(this._label=new nk(this.chart)).init()},Object.defineProperty(e.prototype,"label",{get:function(){return this._label},enumerable:!1,configurable:!0}),e.prototype.setChildExtents=function(t){var e=this._visibles.length;if(e>0){var i=+this._op.itemGap||0,n=t.radius,r=(n-t.inner-i*(e-1))/e;this._visibles.forEach((function(t,e){var o=t._childProps;o.setRadius(n),o.setInnerRadius(n-r),n-=r+i}))}},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e);var i=this.props;i.setCenterX(e.centerX),i.setCenterY(e.centerY),i.setRadius(e.radius),i.setInnerRadius(e.innerRadius),i.setValueRadius(e.valueRadius)},e.defaults=uV(XV.defaults,{startAngle:0,sweepAngle:360,clockwise:!0,itemGap:4,labelGap:10}),e}(XV),ak=function(t){function e(e){var i=t.call(this,e.chart)||this;return i.body=e,i}return Dx(e,t),e.prototype._isVisible=function(){return!1!==this._op.visible&&this.body.isZoomed()&&this.body.canZoom()},e.defaults=uV(hV.defaults,{visible:void 0}),e}(hV),uk=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._doPrepareRender=function(t){this.setText(this._getMessage())},e.prototype._getMessage=function(){return this._op.text||this.chart._body.emptyView._op.text||e.DEF_TEXT},e.DEF_TEXT="표시할 데이터가 없습니다.",e.defaults=uV(hV.defaults,{visible:void 0}),e}(cV),lk=function(t){function e(e){var i=t.call(this,e)||this;return i._annotations=new gV(i),i}return Dx(e,t),e.prototype._doInitChildren=function(t){t.image=(this._image=new _V(null)).init(),t.emptyView=(this._emptyView=new uk(this.chart)).init(),t.zoomButton=(this._zoomButton=new ak(this)).init()},e.prototype.anchorByName=function(t){var e=this.chart._getGauges().get(t);return e instanceof GV&&this.contains(e)?e:this._annotations.get(t)},Object.defineProperty(e.prototype,"image",{get:function(){return this._image},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"emptyView",{get:function(){return this._emptyView},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"zoomButton",{get:function(){return this._zoomButton},enumerable:!1,configurable:!0}),e.prototype.base=function(){return this},e.prototype.canZoom=function(){return!this.chart.isEmpty(!0)&&("x"===this._op.zoomType||"y"===this._op.zoomType||"both"===this._op.zoomType)},e.prototype.isEmpty=function(){return this.chart.isEmpty(!0)},e.prototype.getRadius=function(t,e){return IS(this._radiusDim,rS(t,e))},e.prototype.setPolar=function(t,e){return this._cx=IS(this._centerXDim,t),this._cy=IS(this._centerYDim,e),this._rd=IS(this._radiusDim,rS(t,e)),this},e.prototype.getPolar=function(t){return this.chart.isPolar()?{start:t?t.getStartAngle():0,total:t?t.getTotalAngle():0,cx:this._cx,cy:this._cy,rd:this._rd}:void 0},e.prototype.isZoomed=function(){return this.chart._getXAxes().isZoomed()||this.chart._getYAxes().isZoomed()},e.prototype.getAnnotations=function(){return this._annotations.getVisibles()},e.prototype.getAnnotation=function(t){return this._annotations.getAnnotation(t)},e.prototype.contains=function(t){return!0},e.prototype._doApply=function(e){var i=this,n=function(t){t!==i._anns&&(i._anns=t,i._annotations.load(t,!0))};t.prototype._doApply.call(this,e),this._setDims(e,"radius","centerX","centerY"),Hx.call(e,"annotation")?n(e.annotation):Hx.call(e,"annotations")&&n(e.annotations)},e.prototype._doPrepareRender=function(t){this._annotations.prepareRender()},e.defaults=uV(hV.defaults,{circular:!0,zoomType:"none",radius:"45%",centerX:"50%",centerY:"50%"}),e}(hV),hk=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.defaults=uV(hV.defaults,{useLibrary:!1,menus:["png","jpeg","svg"],fileName:"realchart",scale:1,hideNavigator:!1,hideScrollbar:!1,hideZoomButton:!1}),e}(hV),pk=function(t){function e(e,i){var n=t.call(this,e.chart)||this;return n.legend=e,n.source=i,n}return Dx(e,t),e.prototype.text=function(){return this.source.legendLabel()},e}(hV),ck=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._items=[],e}return Dx(e,t),e.prototype.items=function(){return this._items.slice(0)},e.prototype.getLayout=function(){if("auto"!==this._op.layout||"body"===this._location)return this._op.layout;switch(this._location){case"bottom":case"top":return"horizontal";default:return"vertical"}},e.prototype.getMaxWidth=function(t){return IS(this._maxWidthDim,t,t)},e.prototype.getMaxHeight=function(t){return IS(this._maxHeightDim,t,t)},e.prototype.getMarkerSize=function(){return aS(this._op.markerSize,10)},e.prototype._isVisible=function(){return!0===this._op.visible&&this._items.length>0||!1!==this._op.visible&&this._items.length>1},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),this._setDims(e,"maxWidth","maxHeight")},e.prototype._doPrepareRender=function(e){var i=this;t.prototype._doPrepareRender.call(this,e),this._location=lS(this._op.location,"bottom"),this._items=this.chart._getLegendSources().map((function(t){return new pk(i,t)})),this._op.reversed&&(this._items=this._items.reverse())},e.defaults=uV(zV.defaults,{visible:void 0,location:"bottom",layout:"auto",alignBase:"body",gap:6,itemGap:8,markerVisible:!0,markerSize:10,markerGap:4,lineGap:4,offsetX:0,offsetY:0,itemsAlign:"center",seriesHovering:!0,pointHovering:!0}),e}(zV),fk={inOutSine:function(t){return-(tS(xS*t)-1)/2}},_k=function(t,e,i,n,r,o){var s=BS(e,null!=i?i:"initial"),a=BS(e,n),u=t.animate([s,a],{duration:r,fill:"none"});return o&&(u?u.addEventListener("finish",o):setTimeout(o,0)),u},dk=function(){function t(){var e=this;this.delay=0,this.duration=t.DURATION,this.easing="inOutSine",this._handler=function(){var t=+new Date-e._started-e.delay,i=rS(1,oS(0,ES(t/e.duration)));e._easing&&(i=e._easing(i));try{e._timer&&e._canUpdate()&&!1!==e._doUpdate(i)||e._stop()}finally{t>=e.duration?e._stop():e._started&&e._timer&&(e._ani=window.requestAnimationFrame(e._handler))}}}return t.prototype.start=function(t){return t&&(this.endHandler=t),this._start(this.duration,this.delay,this.easing),this},t.prototype.stop=function(){this._stop()},t.prototype._start=function(e,i,n){var r=this;void 0===i&&(i=0),void 0===n&&(n=null),this._started&&this._stop(),this.duration=aS(e,t.DURATION),this.delay=i||0,this._easing=fk[n],this._doStart(),this._started=+new Date,this._timer=setTimeout((function(){return r._stop()}),1.2*this.duration),this._handler()},t.prototype._stop=function(){var t;this._started&&(cancelAnimationFrame(this._ani),clearTimeout(this._timer),this._timer=null,this._started=null,this._doStop(),null===(t=this.endHandler)||void 0===t||t.call(this,this))},t.prototype._doStart=function(){},t.prototype._doStop=function(){},t.prototype._canUpdate=function(){return!0},t.DURATION=700,t.SHORT_DURATION=300,t}(),yk=Object.values({CIRCLE:"circle",DIAMOND:"diamond",SQUARE:"square",TRIANGLE:"triangle",STAR:"star",ITRIANGLE:"itriangle",RECTANGLE:"rectangle"}),gk=.001,vk=Math.PI,mk=function(){function t(){}return t.line=function(t,e,i,n){return["M",t,e,"L",i,n]},t.lines=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var i=0,n=["M",t[i],t[i+1]];i<t.length;i+=2)n.push("L",t[i],t[i+1]);return n.push("Z"),n},t.box=function(t,e,i,n){return["M",t,e,"L",i,e,"L",i,n,"L",t,n,"Z"]},t.rect=function(t){return this.rectangle(t.x,t.y,t.width,t.height)},t.rectangle=function(t,e,i,n){return["M",t,e,"h",i,"v",n,"h",-i,"Z"]},t.bar=function(t,e,i,n,r,o){var s=n>0,a=s?0:1;return r>0?o>0?(r=rS(sS(n)/2,i/2,r),o=rS(sS(n)/2,i/2,o),["M",t,e+(s?o:-o),"v",n+(s?-o-r:o+r),"a",r,r,0,0,a,r,s?r:-r,"h",i-2*r,"a",r,r,0,0,a,r,s?-r:r,"v",-n+(s?r+o:-r-o),"a",o,o,0,0,a,-o,s?-o:o,"h",2*o-i,"a",o,o,0,0,a,-o,s?o:-o,"Z"]):(r=rS(sS(n)/2,i/2,r),["M",t,e,"v",n+(s?-r:r),"a",r,r,0,0,a,r,s?r:-r,"h",i-2*r,"a",r,r,0,0,a,r,s?-r:r,"v",-n-r,"Z"]):o>0?(o=rS(sS(n)/2,i/2,o),["M",t,e+(s?o:-o),"v",n+(s?-o:+o),"h",i,"v",-n+(s?o:-o),"a",o,o,0,0,a,-o,s?-o:o,"h",2*o-i,"a",o,o,0,0,a,-o,s?o:-o,"Z"]):["M",t,e,"h",i,"v",n,"h",-i,"v",-n,"Z"]},t.square=function(t,e,i,n){var r=rS(i,n);return["M",t+=(i-r)/2,e+=(n-r)/2,"h",r,"v",r,"h",-r,"Z"]},t.circle=function(t,e,i){return["M",t,e,"m",i,0,"a",i,i,0,1,1,2*-i,0,"a",i,i,0,1,1,2*i,0]},t.arc=function(t,e,i,n,r,o,s,a){void 0===a&&(a=!1);var u=CS(sS(o-r)),l=2*vk-u<.01,h=u-vk<.01?0:1,p=s?1:0,c=tS(r),f=eS(r),_=tS(o-=l?p?gk:-.001:0),d=eS(o),y=[];return y.push("M",t+i*c,e+n*f,"A",i,n,0,h,p,t+i*_,e+n*d),l&&y.push("M",t,e),a&&y.push("Z"),y},t.sector=function(t,e,i,n,r,o,s,a){var u=CS(sS(s-o)),l=2*vk-u<gk,h=u-vk<gk?0:1,p=a?1:0,c=tS(o),f=eS(o),_=tS(s-=l?p?gk:-.001:0),d=eS(s),y=i*r,g=n*r,v=[];return v.push("M",t+i*c,e+n*f,"A",i,n,0,h,p,t+i*_,e+n*d),l?v.push("M",t+y*_,e+g*d):v.push("L",t+y*_,e+g*d),isNaN(y)||v.push("A",y,g,0,h,1-p,t+y*c,e+g*f),v.push("Z"),v},t.diamond=function(t,e,i,n){return["M",t+i/2,e,"L",t+i,e+n/2,"L",t+i/2,e+n,"L",t,e+n/2,"Z"]},t.triangle=function(t,e,i,n){return["M",t+i/2,e,"L",t+i,e+n,"L",t,e+n,"Z"]},t.itriangle=function(t,e,i,n){return["M",t,e,"L",t+i,e,"L",t+i/2,e+n,"Z"]},t.star=function(t,e,i,n){var r=-Math.PI/2,o=t+i/2,s=e+n/2+(n/2-n/2*eS(r+6*Math.PI/5))/2,a=i/2,u=n/2,l=i/4,h=n/4,p=2*Math.PI/5,c=p/2,f=[];f.push("M",o+a*tS(r),s+u*eS(r));for(var _=0;_<5;_++)f.push("L",o+a*tS(r),s+u*eS(r),"L",o+l*tS(r+c),s+h*eS(r+c)),r+=p;return f.push("Z"),f},t.setShape=function(e,i,n,r){var o;switch(i){case"square":case"diamond":case"triangle":case"itriangle":case"star":case"rectangle":o=t[i](0,0,2*n,2*r);break;default:o=t.circle(n,r,rS(n,r))}e.setPath(o)},t}(),bk=function(t){function e(e,i,n){void 0===i&&(i=wS),void 0===n&&(n=wS);var r=t.call(this,e,i,"rect")||this;return r.rect=n,r}return Dx(e,t),e.create=function(t,i,n,r,o,s,a){return void 0===a&&(a=0),new e(t,i,{x:n,y:r,width:o,height:s,r:a})},Object.defineProperty(e.prototype,"rect",{get:function(){return this._rect&&Fx({},this._rect)},set:function(t){if(t!==this._rect&&(this._rect=t&&Fx({},t),t)){this.setRect(t);var e=t.rx||t.r,i=t.ry||t.r;e>0&&this.dom.setAttribute("rx",String(e)),i>0&&this.dom.setAttribute("rx",String(i))}},enumerable:!1,configurable:!0}),e.prototype.resizeRect=function(t,e){var i=this.getStyle("border-radius");return this.resize(t,e),i&&this.dom.setAttribute("rx",i),this},e.prototype.setBounds=function(t,e,i,n,r){return void 0===r&&(r=0),this.rect={x:t,y:e,width:i,height:n,r:r},this},e.prototype.setBox=function(t,e,i,n){this.rect=n<0?{x:t,y:e+n,width:i,height:-n}:{x:t,y:e,width:i,height:n}},e.prototype.setRadius=function(t){t>0&&(this._rect&&(this._rect.rx=this._rect.ry=t),this.dom.setAttribute("rx",String(t)),this.dom.setAttribute("ry",String(t)))},e}(EP),wk=function(t){function e(e,i){return void 0===i&&(i=wS),t.call(this,e,i)||this}return Dx(e,t),e.prototype.setBox=function(t,e,i,n){return this.setPath(mk.box(t,e,i,n)),this},e}(OP);!function(t){function e(e,i){return void 0===i&&(i=wS),t.call(this,e,"dlchart-point-back",i)||this}Dx(e,t)}(bk);var xk=0,Sk=function(){function t(t){this.pid=xk++,this.visible=!0,this.source=t}return t.prototype.ariaHint=function(){return(this.x||this.xValue)+", "+this.yValue},t.prototype.labelCount=function(){return 1},t.prototype.getValue=function(){return this.yValue},t.prototype.copy=function(){return Fx({},this)},t.prototype.assignTo=function(t){return t||(t={}),this._assignTo(t),t},t.prototype.getProp=function(t){return null!==this.source&&this.source[t]},t.prototype.parse=function(t){var e=this.source;null==e?this.isNull=!0:Wx(e)?0===e.length?this.isNull=!0:this._readArray(t,e):Gx(e)?(this._readObject(t,e),(Wx(e.drillDown)||Gx(e.drillDown))&&(this.drillDown=e.drillDown)):this._readSingle(e),this.initValues()},t.prototype.getPointLabel=function(t){return this.yValue},t.prototype.getPointText=function(t){return this.yLabel},t.prototype.swap=function(){var t=this.xPos;this.xPos=this.yPos,this.yPos=t},t.prototype.updateValues=function(t,e){if(this._prev=this.copy(),Gx(e)?this.source=Object.assign(Gx(this.source)?this.source:{},e):Wx(e)?this.source=e.slice(0):this.source=e,this.parse(t),this._valuesChangd(this._prev))return this._prev;this._prev=wS},t.prototype.getTooltip=function(t){var e;return t in this?this[t]:null===(e=this.source)||void 0===e?void 0:e[t]},t.prototype.initValues=function(){},t.prototype.initPrev=function(t,e){e.yValue=t.axisMin()},t.prototype.applyValueRate=function(t,e){},t.prototype._assignTo=function(t){return Kx(t,{index:this.index,vindex:this.vindex,x:this.x,y:this.y,xValue:this.xValue,yValue:this.yValue,color:this.color,yLabel:this.yLabel,source:this.source})},t.prototype._readArray=function(t,e){var i=+t.options.colorField;e.length>1?(this.x=e[aS(t.options.xField,0)],this.y=e[aS(t.options.yField,1)]):this.y=e[0],isNaN(i)||(this.color=e[i])},t.prototype._readObject=function(t,e){var i,n,r,o;this.x=(i=t._xFielder(e),n=e.x,r=e.name,o=e.label,void 0!==i?i:void 0!==n?n:null!=r?r:o),this.y=hS(t._yFielder(e),e.y,e.value),this.color=lS(t._colorFielder(e),e.color),this.yLabel=e.yLabel},t.prototype._readSingle=function(t){this.y=t},t.prototype._valuesChangd=function(t){return this.x!==t.x||this.y!==t.y},t}(),Pk=function(){function t(t){this._points=[],this._owner=t}return Object.defineProperty(t.prototype,"count",{get:function(){return this._points.length},enumerable:!1,configurable:!0}),t.prototype.isEmpty=function(){return this._points.length<1},t.prototype.get=function(t){return this._points[t]},t.prototype.pointAt=function(t,e){function i(t,e,i){return Gx(t)?t.pid===e:t===i}return this._points.find((function(n){return i(t,n.pid,n.xValue)&&(void 0===e||i(e,n.pid,n.yValue))}))},t.prototype.contains=function(t){return this._points.indexOf(t)>=0},t.prototype.load=function(t){Wx(t)?this._points=this._owner.initPoints(t):this._points=[]},t.prototype.clear=function(){this._points=[]},t.prototype.add=function(t){this._points.push(t)},t.prototype.remove=function(t){var e=this._points.indexOf(t);if(e>=0)return this._points.splice(e,1),!0},t.prototype.getProps=function(t){return this._points.map((function(e){return e.getProp(t)}))},t.prototype.getCategories=function(t){return this._points.map((function(e){return e[t]}))},t.prototype.forEach=function(t){for(var e=0,i=this._points.length;e<i&&!0!==t(this._points[e],e);e++);},t.prototype.getPoints=function(t,e){var i=t._zoom;if(i){var n=this._points,r=n.length,o=i.start,s=i.end;if(t.continuous()){var a=0,u=void 0,l=void 0;for(l=Number.MIN_VALUE;a<r-1;a++){if(u=n[a],o>=l&&o<u.xValue+(n[a+1].xValue-u.xValue)/2){o=a;break}l=u.xValue}for(o!==a&&(o=r-1),l=Number.MAX_VALUE,a=r-1;a>0;a--){if(u=n[a],s<l&&s>u.xValue-(u.xValue-n[a-1].xValue)/2){s=a;break}l=u.xValue}s!==a&&(s=0),o=oS(o-1,0),s=rS(s+1,r-1)}else o=oS(0,Math.floor(o)),s=rS(Math.ceil(s),r-1);return this._points.slice(o,s+1)}return this._points},t}(),Vk=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.getPointLabel=function(t){return this.zValue},e.prototype.getPointText=function(t){return this.zLabel},e.prototype.getValue=function(){return this.zValue},e.prototype.getZValue=function(){return this.zValue},e.prototype._assignTo=function(e){return Kx(t.prototype._assignTo.call(this,e),{z:this.z,zValue:this.zValue})},e.prototype._valuesChangd=function(e){return this.z!==e.z||t.prototype._valuesChangd.call(this,e)},e.prototype._readArray=function(t,e){if(e.length<=1)this.isNull=!0;else{var i=e.length>2?1:0;i>0&&(this.x=e[aS(t.options.xField,0)]),this.y=e[aS(t.options.yField,0+i)],this.z=e[aS(t.options.zField,1+i)]}},e.prototype._readObject=function(e,i){t.prototype._readObject.call(this,e,i),this.isNull||(this.z=lS(e._zFielder(i),i.z),this.zLabel=i.zLabel)},e.prototype._readSingle=function(e){t.prototype._readSingle.call(this,e),this.z=this.y},e.prototype.parse=function(e){t.prototype.parse.call(this,e),this.isNull||(this.isNull=isNaN(this.zValue))},e.prototype.initValues=function(){this.zValue=parseFloat(this.z)},e.prototype.initPrev=function(t,e){e.yValue=e.zValue=this.yValue},e.prototype.applyValueRate=function(t,e){this.zValue=pS(t.zValue,this.zValue,e)},e}(Sk),kk=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),Object.defineProperty(e.prototype,"high",{get:function(){return this.y},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"highValue",{get:function(){return this.yValue},enumerable:!1,configurable:!0}),e.prototype.labelCount=function(){return 2},e.prototype.getPointLabel=function(e){return 1===e?this.lowValue:t.prototype.getPointLabel.call(this,0)},e.prototype.getPointText=function(e){return 1===e?this.lowLabel:t.prototype.getPointText.call(this,0)},e.prototype._assignTo=function(e){return Kx(t.prototype._assignTo.call(this,e),{low:this.low,high:this.high,lowValue:this.lowValue,highValue:this.yValue})},e.prototype._valuesChangd=function(e){return this.low!==e.low||t.prototype._valuesChangd.call(this,e)},e.prototype._readArray=function(t,e){var i=t.options,n=e.length>2?1:0;this.low=e[aS(i.lowField,0+n)],this.y=e[uS(i.highField,i.yField,1+n)],n>0&&(this.x=e[aS(i.xField,0)])},e.prototype._readObject=function(e,i){t.prototype._readObject.call(this,e,i),this.isNull||(this.low=lS(i[e.options.lowField],i.low),this.y=hS(i[e.options.highField],i.high,this.y),this.lowLabel=i.lowLabel)},e.prototype._readSingle=function(e){t.prototype._readSingle.call(this,e),this.low=this.y},e.prototype.parse=function(e){t.prototype.parse.call(this,e),this.isNull||(this.isNull=isNaN(this.lowValue))},e.prototype.initValues=function(){this.lowValue=parseFloat(this.low)},e.prototype.initPrev=function(t,e){e.yValue=e.lowValue=this.lowValue},e.prototype.applyValueRate=function(t,e){this.lowValue=pS(t.lowValue,this.lowValue,e)},e}(Sk),Ak=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.getPosition=function(){var t=this._op.position;return"point"===t||"edge"===t?t:this.axis._isX?"point":"edge"},e.defaults=uV(LV.defaults,{step:1}),e}(LV),Ck=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.getTick=function(t,e){return null!=e?this._getText(e,e,!1,!1):""},e.prototype.getIcon=function(t){var e;return null===(e=this.axis._categories[t.index])||void 0===e?void 0:e.i},e}(NV),Ek=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.getPoints=function(t){var e=t._pts,i=t._ticks.length,n=[];if(i>0){var r=Math.max(1,t.tick.options.step||1);if(r>1)for(var o=0,s=1,a=e.length;o<=i&&s<a;o++,s+=r)n.push(e[s]);else for(o=0;o<=i;o++)n.push(e[o+1])}return n},e}(VV),Lk=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._map={},e._catPad=0,e._tstep=1,e}return Dx(e,t),Object.defineProperty(e.prototype,"tick",{get:function(){return this._tick},enumerable:!1,configurable:!0}),e.prototype.getCategories=function(){return this._cats},e.prototype.xValueAt=function(t){for(var e=2;e<this._pts.length-1;e++)if(t>=this._pts[e-1]&&t<this._pts[e])return this._catMin+e-2;return-1},e.prototype.getWdith=function(t,e){return 0},e.prototype._type=function(){return"category"},e.prototype.unitPad=function(){return this._catPad},e.prototype.continuous=function(){return!1},e.prototype._createGrid=function(){return new Ek(this)},e.prototype._createTickModel=function(){return new Ak(this)},e.prototype._createLabel=function(){return new Ck(this)},e.prototype.collectValues=function(){this.$_collectCategories(this._series),this._isEmpty,this._isEmpty?this._values=fS.makeIntArray(0,this._categories.length):t.prototype.collectValues.call(this)},e.prototype.getStartAngle=function(){var e=t.prototype.getStartAngle.call(this),i=+this._op.startOffset;return i>0&&(e-=rS(i,1)*this._categories[0].w*SS/this._len),e},e.prototype._doPrepareRender=function(){var t=this._op;this._cats=[],this._weights=[],this._isPolar||this._zoom?this._minPad=this._maxPad=this._catPad=0:(this._minPad=uS(t.minPadding,t.padding,0),this._maxPad=uS(t.maxPadding,t.padding,0),this._catPad=Math.max(0,Math.min(.5,aS(t.categoryPadding,0))))},e.prototype._doBuildTicks=function(t,e,i){var n=this._label,r=this._cats=this._categories.map((function(t){return t.c})),o=this._weights=this._categories.map((function(t){return t.w})),s=this._tick.options.step||1,a=[],u=t,l=e;t=this._catMin=Math.floor(t+.5),e=this._catMax=Math.ceil(e-.5);var h=this._catLen=e-t+1;this._tstep=Math.max(1,Math.min(h,this._tick.options.step||1));for(var p=-1;p>=t;p--)r.unshift(String(p)),o.unshift(1);h=this._len=this._minPad+this._maxPad+o.reduce((function(t,e){return t+e}),0),h+=this._catLen-r.length,o.length=r.length=this._catLen||0;var c=this._pts=[];if(h>0){var f=this._minPad;c.push(0);for(p=t;p<=e;p++)c.push(f/h),f+=o[p-t]||1;c.push(f/h),c.push((f+this._maxPad)/h)}for(p=1;p<c.length-2;p+=s){var _=t+p-1,d=this._categories[t+p-1];a.push({index:p-1,pos:NaN,value:_,label:n.getTick(p-1,d?d.t:_)})}return this._setMinMax(u,l),a},e.prototype._calcPoints=function(e,i){t.prototype._calcPoints.call(this,e,i);var n=this._pts;if(i>0)for(var r=0;r<n.length;r++)n[r]/=this._vlen;for(r=0;r<n.length;r++)n[r]*=e;if(this._isPolar){if(i>0){var o=this._op.totalAngle*VS;this._pts=n.map((function(t){return t/e*o}))}}else{var s=void 0;s="edge"===this._tick.getPosition()?n.slice(1,n.length-1):this._ticks.map((function(t){return t.pos})),this._markPoints=s}},e.prototype.getPos=function(t,e){var i=this._pts,n=Math.floor(e-this._catMin+.5),r=i[n+1]+(i[n+2]-i[n+1])*(e-Math.floor(e+.5)+.5);return this._op.reversed?t-r:r},e.prototype.valueAt=function(t,e){this._op.reversed&&(e=t-e);for(var i=1;i<this._pts.length-1;i++)if(e>=this._pts[i]&&e<this._pts[i+1])return this._catMin+i-.5},e.prototype.getUnitLen=function(t,e){var i=Math.floor(e-this._catMin+.5);return this._pts[i+2]-this._pts[i+2-1]},e.prototype.getLabelLength=function(t,e){var i=Math.floor(e-this._catMin+.5);return i>this._tstep?this._pts[i+2]-this._pts[i+2-this._tstep]:this._pts[i+2+this._tstep-1]-this._pts[i+2-1]},e.prototype.getValue=function(t){return qx(t)?t:this._map[t]},e.prototype.getXValue=function(t){return this._cats[t-this._catMin]||t},e.prototype.$_collectCategories=function(t){var e,i,n,r,o=this,s=this._op.categories,a=this._categories=[];if(Wx(s)&&s.length>0)this._len=0,s.forEach((function(t){var e,i,n=null==t?1:aS(t.weight,1),r=t&&t.icon;null==t?i=e=null:Gx(t)?(e=lS(t.name,t.label),i=lS(t.label,t.name)):i=e=String(t),o._len+=n,a.push({c:e,t:i,w:n,i:r})}));else if(Wx(t))try{for(var u=Ix(t),l=u.next();!l.done;l=u.next()){var h=l.value.collectCategories(this),p=function(t){a.find((function(e){return e.c===t}))||a.push({c:t,w:1,t:t})};try{for(var c=(n=void 0,Ix(h)),f=c.next();!f.done;f=c.next()){p(f.value)}}catch(t){n={error:t}}finally{try{f&&!f.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}}}catch(t){e={error:t}}finally{try{l&&!l.done&&(i=u.return)&&i.call(u)}finally{if(e)throw e.error}}this._map={},a.forEach((function(t,e){null!=t.c&&(o._map[t.c]=e)}))},e.type="category",e.defaults=uV(RV.defaults,{padding:0,categoryPadding:.1,startOffset:0}),e}(RV),Nk={},Mk={},Tk=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._doInit=function(e){var i=this;t.prototype._doInit.call(this,e),this._domain={callback:function(t,e){return i._point[e]||i._point.source[e]}}},e.prototype.getValue=function(t,e){if(this._op.textField){var i=t.getProp(this._op.textField);if(null!=i)return i}return t.getPointLabel(e)},e.prototype.getTextDomain=function(t){return this._point=t,this._domain},e.prototype.getText=function(t){return fS.isValidNum(t)?this._getText(null,t,sS(t)>1e3,!0):t},e.prototype.getOffset=function(){var t=+this._op.offset;return isNaN(t)?"inside"===this._op.position?0:e.OFFSET:t},e.prototype.getDefaultIconPos=function(){return"top"},e.prototype._isVisible=function(){return this._op.visible||Yx(this._op.visibleCallback)},e.prototype._doSetSimple=function(e){return Yx(e)?(this._op.visibleCallback=e,this._op.visible=!0):t.prototype._doSetSimple.call(this,e)},e.prototype._doPrepareRender=function(e){t.prototype._doPrepareRender.call(this,e),this._domain.numberFormatter=this._numberFormatter},e.OFFSET=4,e.defaults=uV(fV.defaults,{visible:void 0,position:"auto",textAlign:"center",distance:25}),e}(fV),Ok=function(t){function e(e){var i=t.call(this,e.chart)||this;return i.series=e,i}return Dx(e,t),e.prototype._doPrepareRender=function(t){var e=this.series,i=this._res=(e._runPoints.length-1)*Math.max(1,+this._op.resolution||5),n=e._minX>0?0:(e._maxX-e._minX)/i-e._minX,r=e._minY>0?0:(e._maxY-e._minY)/i-e._minY,o=e._runPoints.filter((function(t){return!t.isNull})).map((function(t){return{x:t.xValue+n,y:t.yValue+r}}));(this["_"+this._op.type]||this._linear).call(this,o,this._points=[]),this._points.forEach((function(t){t.x-=n,t.y-=r}))},e.prototype.isCurved=function(){var t=this._op.type;return!0===this._op.curved||null==this._op.curved&&("exponential"===t||"logarithmic"===t||"power"===t)},e.prototype._calcLine=function(t){var e=t.length,i=0,n=0,r=0,o=0;t.forEach((function(t){i+=t.x,n+=t.y,r+=t.x*t.y,o+=t.x*t.x}));var s=e*o-i*i,a=0===s?0:(e*r-i*n)/s;return{m:a,a:(n-a*i)/e}},e.prototype._linear=function(t,e){var i=t.length;if(i>1){var n=this._calcLine(t),r=n.m,o=n.a;e.push({x:t[0].x,y:r*t[0].x+o}),e.push({x:t[i-1].x,y:r*t[i-1].x+o})}},e.prototype._logarithmic=function(t,e){var i=t.length;if(i>1)for(var n=t.map((function(t){return{x:Math.log(t.x),y:aS(t.y,0)}})),r=this._calcLine(n),o=r.m,s=r.a,a=t[0].x,u=t[i-1].x,l=(u-a)/this._res,h=a;h<=u;h+=l){var p=s+Math.log(h)*o;e.push({x:h,y:p})}},e.prototype._power=function(t,e){var i=t.length;if(i>1)for(var n=t.map((function(t){return{x:Math.log(t.x),y:Math.log(t.y)}})),r=this._calcLine(n),o=r.m,s=r.a,a=Math.exp(s),u=t[0].x,l=t[i-1].x,h=(l-u)/this._res,p=u;p<=l;p+=h){var c=a*Math.pow(p,o);e.push({x:p,y:c})}},e.prototype._calcLine2=function(t){t.length;var e=0,i=0,n=0,r=0,o=0;t.forEach((function(t){t.x,e+=t.y,i+=t.x*t.x*t.y,n+=t.y*Math.log(t.y),r+=t.x*t.y*Math.log(t.y),o+=t.x*t.y}));var s=e*i-o*o,a=Math.exp((i*n-o*r)/s);return{m:(e*r-o*n)/s,a:a}},e.prototype._exponential=function(t,e){var i=t.length;if(i>1)for(var n=t.map((function(t){return{x:t.x,y:t.y}})),r=this._calcLine2(n),o=r.m,s=r.a,a=t[0].x,u=t[i-1].x,l=(u-a)/this._res,h=a;h<=u;h+=l){var p=s*Math.exp(o*h);e.push({x:h,y:p})}},e.prototype._polynomial=function(t,e){var i=t.length;if(i>1){for(var n=[],r=[],o=0,s=0,a=0;a<3;a++){for(var u=0;u<i;u++)o+=Math.pow(t[u].x,a)*t[u].y;n.push(o),o=0;for(var l=[],h=0;h<3;h++){for(u=0;u<i;u++)s+=Math.pow(t[u].x,a+h);l.push(s),s=0}r.push(l)}r.push(n);for(var p=function(t,e){for(var i=t,n=t.length-1,r=[e],o=0;o<n;o++){for(var s=o,a=o+1;a<n;a++)sS(i[o][a])>sS(i[o][s])&&(s=a);for(var u=o;u<n+1;u++){var l=i[u][o];i[u][o]=i[u][s],i[u][s]=l}for(a=o+1;a<n;a++)for(u=n;u>=o;u--)i[u][a]-=i[u][o]*i[o][a]/i[o][o]}for(a=n-1;a>=0;a--){var h=0;for(u=a+1;u<n;u++)h+=i[u][a]*r[u];r[a]=(i[n][a]-h)/i[a][a]}return r}(r,3),c=t[0].x,f=t[i-1].x,_=(f-c)/this._res,d=function(t){var i=p.reduce((function(e,i,n){return e+i*Math.pow(t,n)}),0);e.push({x:t,y:i})},y=c;y<=f;y+=_)d(y)}},e.prototype._movingAverage=function(t,e){for(var i=t.length,n=oS(1,rS(i-1,this._op.movingInterval)),r=n;r<=i;){var o=t.slice(r-n,r).reduce((function(t,e){return t+aS(e.y,0)}),0);e.push({x:t[r-1].x,y:o/n}),r++}},e.defaults=uV(hV.defaults,{visible:!1,type:"linear",resolution:5,movingInterval:2}),e}(hV),Rk={x:"xValue",y:"yValue",z:"zValue"},Bk=function(t){function e(e,i){var n=t.call(this)||this;return n.series=e,n.point=i,n.duration=500,n.endHandler=function(){delete n.point._vr,n.series._changed(),n.series=n.point=null},n}return Dx(e,t),e.prototype._doUpdate=function(t){return this.point._vr=t,this.series._changed(),!0},e}(dk),Dk=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e}(Sk),Fk=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._row=0,e._col=0,e.index=-1,e.seriesIndex=0,e._simpleMode=!1,e}return Dx(e,t),e.register=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];t.forEach((function(t){Nk[t.type]=t}))},e._loadSeries=function(t,e,i,n){var r=t._getSeriesType(i.type)||t._getSeriesType(n||t.type);if(!r)throw new Error("Invalid series type: "+i.type+", "+t.type);var o=new r(t);return o.init(),o.index=e,o.seriesIndex=t._seriesIndex++,o._load(i),o},e.getPointTooltipParam=function(t,e,i){switch(i){case"series":return t.displayName();case"name":return e.getTooltip(i)||t._xAxisObj.getXValue(e.xValue);case"xValue":return t._xAxisObj.value2Tooltip(e.xValue);case"yValue":return t._yAxisObj.value2Tooltip(e[i]);default:return e.getTooltip(i)}},e.prototype._doInit=function(t){this._points=new Pk(this),this._pointArgs={}},e.prototype._doInitChildren=function(t){t.pointLabel=(this._pointLabel=this._createLabel(this.chart)).init()},e.prototype.onDataValueChanged=function(t,e,i,n,r){fS.log("onDataValueChanged",e,i,n,r);var o=this._runPoints[e];if(o){var s={};s[i]=n,this.updatePoint(o,s)}},e.prototype.onDataRowUpdated=function(t,e,i){},e.prototype.onDataRowAdded=function(t,e){fS.log("onDataRowAdded",e),this.addPoint(t.getRow(e))},e.prototype.onDataRowDeleted=function(t,e){fS.log("onDataRowDeleted",e);var i=this._runPoints[e];i&&this.removePoint(i)},e.prototype.onDataChanged=function(t){fS.log("onDataChanged")},e.prototype.getTooltipText=function(t,e){return this._op.tooltipCallback?(this._getPointCallbackArgs(this._pointArgs,e),this._op.tooltipCallback(this._pointArgs)):this._op.tooltipText},e.prototype.getTooltipParam=function(t,i,n){return e.getPointTooltipParam(t,i,n)},e.prototype._type=function(){return this.constructor.type},e.prototype._viewType=function(){return this._type()},Object.defineProperty(e.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pointLabel",{get:function(){return this._pointLabel},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"data",{get:function(){return this._data},enumerable:!1,configurable:!0}),e.prototype._setData=function(t){t!==this._data&&(this._op.data=this._data=t,this._dataSourceDirty=!0,this._changed())},Object.defineProperty(e.prototype,"pointCount",{get:function(){return this._runPoints.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"visiblePointCount",{get:function(){return this._visPoints.length},enumerable:!1,configurable:!0}),e.prototype.contains=function(t){return this._points.contains(t)},e.prototype.getPoints=function(){return this._points},e.prototype._getLabeledPoints=function(){return this._points.getPoints(this._xAxisObj,this._yAxisObj)},e.prototype._getVisiblePoints=function(){return this._points.getPoints(this._xAxisObj,this._yAxisObj)},e.prototype.pointLabelCount=function(){return 1},e.prototype.isEmpty=function(){return this._points.isEmpty()},e.prototype.needAxes=function(){return!0},e.prototype.canCategorized=function(){return!1},e.prototype.hasZ=function(){return!1},e.prototype.defYAxisType=function(){return"linear"},e.prototype.isClusterable=function(){return!1},e.prototype.isMarker=function(){return!1},e.prototype.displayName=function(){return this._op.label||this.name},e.prototype.legendMarker=function(t,e){return this._legendMarker||(this._legendMarker=this._createLegendMarker(t,e)),this._legendMarker},e.prototype.legendColor=function(){return this._calcedColor},e.prototype.legendLabel=function(){return this._op.label||this.name},e.prototype.styleLegendMarker=function(t){},e.prototype.canMixWith=function(t){return!0},e.prototype.getBaseValue=function(t){return NaN},e.prototype.isBased=function(t){return!1},e.prototype.canMinPadding=function(t,e){var i=this.getBaseValue(t);return isNaN(i)||!this.isBased(t)||e<i},e.prototype.canMaxPadding=function(t,e){var i=this.getBaseValue(t);return isNaN(i)||!this.isBased(t)||e>i},e.prototype.hasShape=function(){return!1},e.prototype.setShape=function(t){},e.prototype.seriesChanged=function(){return this._pointsChanged},e.prototype.getMinPointWidth=function(){return NaN},e.prototype.getVisibleSeries=function(){return[this]},e.prototype._getNoClip=function(t){return this._group?this._group.options.noClip:this._op.noClip},e.prototype.needClip=function(t){var e=this._getNoClip(t);return t?!1===e:!0!==e},e.prototype.setCol=function(t){this._col=t},e.prototype.setRow=function(t){this._row=t},e.prototype.initPoints=function(t){var e=this;return this._containsNull=!1,t.map((function(t,i){return e.$_addPoint(t,i)}))},e.prototype.$_getXStart=function(t){var e=t.getValue(this._op.xStart),i=isNaN(e)?t.getValue(this.chart._chartOptions.getXStart(t)):e;return t._zoom?Math.floor(t._zoom.start):i||0},e.prototype.$_getXStep=function(t){return lS(this._op.xStep,this.chart._chartOptions.options.xStep)||1},e.prototype._prepareRender=function(){if(this._xAxisObj=this._group?this._group._xAxisObj:this.chart._connectSeries(this,!0),this._yAxisObj=this._group?this._group._yAxisObj:this.chart._connectSeries(this,!1),this._calcedColor=void 0,this._dataSourceDirty){var e=this._doLoadData(this._data);this._loadPoints(e),this._dataSourceDirty=!1}this._runPoints=this._points.getPoints(this._xAxisObj,this._yAxisObj),this._pointLabel._prepareRender(),t.prototype._prepareRender.call(this)},e.prototype.prepareAfter=function(){this._pointsChanged=!1},e.prototype.collectCategories=function(t){if(t instanceof Lk){var e=t.options.categoryField;return null!=e?this._points.getProps(e):this._points.getCategories(t===this._xAxisObj?"x":"y").filter((function(t){return Xx(t)}))}},e.prototype.collectValues=function(t,e){if(t===this._xAxisObj){var i=this.$_getXStart(t),n=this.$_getXStep(t);Xx(n)&&(n=n.trim()),this._runPoints.forEach((function(r,o){var s=t.getValue(r.x);isNaN(s)&&(s=i,i=t.incStep(i,n)),isNaN(s)?r.isNull=!0:(r.xValue=s,e&&e.push(s))}))}else this._runPoints.forEach((function(i,n){if(i.isNull)i.y=i.yGroup=i.yValue=NaN;else{var r=null==i.y?NaN:t.getValue(i.y);isNaN(r)&&(r=t.getValue(i.y)),i.initValues(),isNaN(i._vr)||(isNaN(i._prev.yValue)&&i.initPrev(t,i._prev),r=i._prev.yValue+(r-i._prev.yValue)*i._vr,i.applyValueRate(i._prev,i._vr)),isNaN(r)?i.yGroup=0:(i.yGroup=i.yValue=r,e&&e.push(r)),i.isNull=isNaN(i.yValue)}}))},e.prototype.collectRanges=function(t){var e,i=this._visPoints,n=i.length;if(n>0){var r=this._pointArgs,o=i[0],s=o.xValue,a=s,u=o.yValue,l=u,h=o.zValue,p=h,c=this.hasZ();o.vindex=0;for(var f=1;f<n;f++)(o=i[f]).vindex=f,isNaN(l)&&!isNaN(o.yValue)?u=l=o.yValue:o.yValue>l?l=o.yValue:o.yValue<u&&(u=o.yValue),isNaN(a)&&!isNaN(o.xValue)?s=a=o.xValue:o.xValue>a?a=o.xValue:o.xValue<s&&(s=o.xValue);if(c)for(f=1;f<n;f++){var _=i[f].zValue;isNaN(p)&&!isNaN(_)?h=p=_:_>p?p=_:_<h&&(h=_)}if(this._minY=u,this._maxY=l,this._minX=s,this._maxX=a,null===(e=this._trendline)||void 0===e?void 0:e.visible){this._trendline._prepareRender();var d=this._trendline._points.map((function(t){return t.y})).sort((function(t,e){return t-e}));this._minY=Math.min(this._minY,d[0]),this._maxY=Math.max(this._maxY,d[d.length-1])}r.yMin=this._minY,r.yMax=this._maxY,r.xMin=this._minX,r.xMax=this._maxX,c&&(r.zMin=this._minZ=h,r.zMax=this._maxZ=p)}this.$_prepareViewRanges(i),isNaN(this._minY)||t.push(this._minY,this._maxY)},e.prototype._getRangeMinMax=function(t){var e,i;return"x"===t?(e=this._minX,i=this._maxX):"z"===t?(e=this._minZ,i=this._maxZ):(e=this._minY,i=this._maxY),{min:e,max:i}},e.prototype.$_prepareViewRanges=function(t){var e=this,i=this._runRangeValue=this.getViewRangeAxis(),n=this._getRangeMinMax(i),r=n.min,o=n.max;(this._runRanges=XS(this._op.viewRanges,r,o,!1,!1,!0,this._runColor))?t.forEach((function(t,n){e._setViewRange(t,i)})):t.forEach((function(t,e){t.range=wS}))},e.prototype.pointValuesPrepared=function(t){var e=this;this._referents&&this._referents.forEach((function(i){return i.reference(e,t)})),this.visible&&(this._visPoints=this._runPoints.filter((function(t){return t.visible})))},e.prototype.reference=function(t,e){},e.prototype.getLegendSources=function(t){!1!==this._op.visibleInLegend&&t.push(this)},e.prototype.getLabelPosition=function(t){return t},e.prototype.getLabelOff=function(t){return t},e.prototype.referBy=function(t){t&&(this._referents?this._referents.indexOf(t)<0&&this._referents.push(t):this._referents=[t])},e.prototype.setPointVisible=function(t,e){t&&e!==t.visible&&(t.visible=e,this.chart._pointVisibleChanged(this,t))},e.prototype._preparePointArgs=function(t){this._pointLabelCallback=this._pointLabel.options.textCallback,this._argsPoint=null,t.series=this,t.count=this._points.count},e.prototype._getPointCallbackArgs=function(t,e){e!==this._argsPoint&&(this._argsPoint=e).assignTo(t)},e.prototype.getPointText=function(t,e,i){var n;return this._pointLabelCallback&&(this._pointArgs.labelIndex=e,this._getPointCallbackArgs(this._pointArgs,t),null!=(n=this._pointLabelCallback(this._pointArgs)))||null!=(n=t.getPointText(e))?n:i},e.prototype.getPointStyle=function(t){if(this._op.pointStyleCallback)return this._getPointCallbackArgs(this._pointArgs,t),this._op.pointStyleCallback(this._pointArgs)},e.prototype.getPointLabelStyle=function(t){if(this._pointLabel.options.styleCallback)return this._getPointCallbackArgs(this._pointArgs,t),this._pointLabel.options.styleCallback(this._pointArgs)},e.prototype.pointClicked=function(t){if(this._op.onPointClick)return this._getPointCallbackArgs(this._pointArgs,t),this._op.onPointClick(this._pointArgs)},e.prototype.pointHovered=function(t){this._op.onPointHover&&(t&&this._getPointCallbackArgs(this._pointArgs,t),this._op.onPointHover(t?this._pointArgs:null))},e.prototype.getViewRangeAxis=function(){return this._op.viewRangeValue||this._defViewRangeValue()},e.prototype.isPointLabelVisible=function(t){var e=this._pointLabel;return!1!==e.visible&&(e.options.visibleCallback?(this._getPointCallbackArgs(this._pointArgs,t),e.options.visibleCallback(this._pointArgs)):!0===e.visible)},e.prototype.getPointAt=function(t){return Xx(t)&&(t=this._xAxisObj.getValue(t)),this._points.pointAt(t)},e.prototype.getValueAt=function(t,e){void 0===e&&(e="yValue");var i=this.getPointAt(t);return i?i[e]:wS},e.prototype.updatePoint=function(t,e){if(t instanceof Sk||(t=this.getPointAt(t)),t){var i=t._prev;return i&&i.ani&&i.ani.stop(),(i=t.updateValues(this,e))&&(this.chart._dataChanged(),this.chart.animatable()&&(i.ani=new Bk(this,t),i.ani.start())),this._changed(),!!i}return!1},e.prototype.updateData=function(t){this._setData(t),this.chart._dataChanged()},e.prototype.addPoint=function(t){var e=this._doAddPoint(t);if(e){if(this._points.add(e),this.chart._dataChanged(),this.chart.animatable()){this._pointsChanged=!0;var i=e._prev=e.copy();i.ani=new Bk(this,e),i.ani.start()}this._changed()}return e},e.prototype.addPoints=function(t){var e=this,i=[];return Wx(t)&&t.forEach((function(t){var n=e._doAddPoint(t);n&&i.push(n)&&e._points.add(n)})),i.length>0&&(this._pointsChanged=!0,this.chart._dataChanged(),this.chart.animatable()&&i.forEach((function(t){var i=t._prev=t.copy();i.ani=new Bk(e,t),i.ani.start()})),this._changed()),i},e.prototype.removePoint=function(t){if(t instanceof Sk||(t=this.getPointAt(t)),t&&this._points.remove(t))return this._doPointRemoved(t),this._pointsChanged=!0,this.chart._dataChanged(),this._changed(),!0},e.prototype.removePoints=function(t){var e=this;if(Wx(t)){var i=[];t.forEach((function(t){t instanceof Sk||(t=e.getPointAt(t)),t&&e._points.remove(t)&&i.push(t)})),i.length>0&&(this._doPointsRemoved(i),this._pointsChanged=!0,this.chart._dataChanged(),this._changed())}return 0},e.prototype.followPointer=function(){return!1},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),this._name=e.name||"Series ".concat(this.index+1),this._setData(e.data),this._createFielders()},e.prototype._createLabel=function(t){return new Tk(t)},e.prototype._createPoint=function(t){return new Dk(t)},e.prototype.$_addPoint=function(t,e){var i=this._createPoint(t);return i.index=e,i.parse(this),(i.isNull||(i.isNull=null==t||null==i.y))&&(this._containsNull=!0),i},e.prototype._doAddPoint=function(t){return this.$_addPoint(t,this._points.count)},e.prototype._doPointRemoved=function(t){},e.prototype._doPointsRemoved=function(t){},e.prototype._createLegendMarker=function(t,i){return bk.create(t,e.LEGEND_MARKER,0,0,i,i,i/2)},e.prototype._referOtherSeries=function(t){return!0},e.prototype._colorByPoint=function(){return!1},e.prototype._getFielderProps=function(){return["xField","yField","zField","colorField"]},e.prototype._createFielder=function(t){return Yx(t)?function(e){return t(e)}:Xx(t)?function(e){return e[t]}:function(t){}},e.prototype._createFielders=function(){var t=this,e=this._op;this._getFielderProps().forEach((function(i){var n="_".concat(i,"er");(!t[n]||i in e&&t["_".concat(i)]!==e[i])&&(t[n]=t._createFielder(e[i]),t["_".concat(i)]=e[i])}))},e.prototype._defaultLoadAnimation=function(){return"reveal"},e.prototype._load=function(e){return this.chart?t.prototype._load.call(this,this.chart.loadBase(e,"series",this._type())):t.prototype._load.call(this,e)},e.prototype._doLoadData=function(t){if(Wx(t))return t;if(t){var e=void 0;if(t._obj instanceof KS?e=t._obj:t instanceof KS&&(e=t),e)return e!==this._cdata&&(this._cdata&&this._cdata._removeListener(this),this._cdata=e,this._cdata&&this._cdata._addListener(this)),e._internalValues()}},e.prototype._loadPoints=function(t){var e,i;this._doLoadPoints(t),null===(i=(e=this._op).onPointsLoaded)||void 0===i||i.call(e,this,!this._loaded),this._loaded=!0},e.prototype._doLoadPoints=function(t){this._points.load(t)},e.prototype._doPrepareRender=function(){var t,e,i=this._op,n=this._runColor=qx(i.color)?"var(--color-".concat((Math.floor(i.color)-1)%12+1,")"):i.color;Wx(i.pointColors)?t=i.pointColors:Xx(i.pointColors)?e=this.chart._assets.get(i.pointColors):this._colorByPoint()&&(t=this.chart.options.options.colors),e instanceof rV?(e.prepare(),this._runPoints.forEach((function(t,i){t.color=t.color||e.getNext()||n}))):Wx(t)?this._runPoints.forEach((function(e,i){e.color=e.color||t[i%t.length]||n})):this._runPoints.forEach((function(t,e){t.color=t.color||n})),this._preparePointArgs(this._pointArgs)},e.prototype._setViewRange=function(t,e){var i,n,r=t[Rk[e]];try{for(var o=Ix(this._runRanges),s=o.next();!s.done;s=o.next()){var a=s.value;if(r>=a.fromValue&&r<=a.toValue)return void(t.range=a)}}catch(t){i={error:t}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}t.range=wS},e.prototype._defViewRangeValue=function(){return"y"},e.prototype._canSort=function(){return!0},e.LEGEND_MARKER="rct-legend-item-marker",e.defaults=uV(hV.defaults,{zOrder:0,visibleInLegend:!0,visibleInNavigator:!1,tooltipText:"<b>${name}</b><br>${series}:<b> ${yValue}</b>",loadAnimation:"default",hoverEffect:"default"}),e}(hV),Ik=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._map={},e._visibles=[],e._series=[],e._visibleSeries=[],e}return Dx(e,t),Object.defineProperty(e.prototype,"firstSeries",{get:function(){return this._series[0]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"firstVisible",{get:function(){return this._visibles[0]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"firstVisibleSeries",{get:function(){return this._visibleSeries[0]},enumerable:!1,configurable:!0}),e.prototype.isWidget=function(){return this._widget},e.prototype.isEmpty=function(t){return!(t?this._visibles:this._items).find((function(e){return!e.isEmpty(t)}))},e.prototype.visibles=function(){return this._visibles.slice(0)},e.prototype.series=function(){return this._series.slice(0)},e.prototype.seriesCount=function(){return this._series.length},e.prototype.needAxes=function(){return!!this._visibles.find((function(t){return t.needAxes()}))||0===this._visibleSeries.length},e.prototype._clear=function(){},e.prototype.get=function(t){return this._items[t]},e.prototype.getSeries=function(t){return this._map[t]},e.prototype.getVisibleSeries=function(){return this._visibleSeries.slice(0)},e.prototype.getPaneSeries=function(t,e){return this._visibleSeries.filter((function(i){return t===i._row&&e===i._col}))},e.prototype.seriesByPoint=function(t){var e,i;try{for(var n=Ix(this._series),r=n.next();!r.done;r=n.next()){var o=r.value;if(o.contains(t))return o}}catch(t){e={error:t}}finally{try{r&&!r.done&&(i=n.return)&&i.call(n)}finally{if(e)throw e.error}}},e.prototype.getLegendSources=function(){var t=[];return this._items.forEach((function(e){return e.getLegendSources(t)})),t},e.prototype.load=function(t){var e=this,i=this.chart,n=this._items=[],r=this._series=[];Wx(t)?t.forEach((function(t,r){n.push(e.$_loadItem(i,t,r))})):Gx(t)&&n.push(this.$_loadItem(i,t,0)),n.forEach((function(t){t instanceof qk?r.push.apply(r,zx([],jx(t.series),!1)):t instanceof Fk&&r.push(t)})),this._map={},this._widget=!0,r.forEach((function(t){return e.$_add(t)})),i.options.series=this._items.map((function(t){return t.options}))},e.prototype.add=function(t){var e=this.$_loadItem(this.chart,t,this._series.length);if(e)return this._items.push(e),this._series.push(e),this.$_add(e),e},e.prototype.remove=function(t){var e;if(t instanceof Fk?e=t:Xx(t)&&(e=this._map[t]),e){if(!e._group)return this._items.splice(this._items.indexOf(e),1),this._series.splice(this._series.indexOf(e),1),e.name&&delete this._map[e.name],e;if(e._group.remove(e))return e}},e.prototype.updateData=function(t){},e.prototype.prepareRender=function(){var t=[],e=0;this._visibles=this._items.filter((function(t){return t.visible})).sort((function(t,e){return(+t.options.zOrder||0)-(+e.options.zOrder||0)})),this._series.forEach((function(i){i.visible&&(!i._group||i._group.visible)&&t.push(i),i.hasShape()&&i.setShape(yk[e++%yk.length])})),this._visibleSeries=t.sort((function(t,e){var i=+(t.group?t.group.zOrder:t.zOrder)||0,n=+(e.group?e.group.zOrder:e.zOrder)||0;return i===n&&t.group&&t.group===e.group?(+t.zOrder||0)-(+e.zOrder||0):i-n}));var i=this._visibleSeries.filter((function(t){return t.isClusterable()})).length;this._visibleSeries.forEach((function(t,e){t instanceof Wk&&(t._single=1===i)})),this._visibles.forEach((function(t){return t._prepareRender()}))},e.prototype.prepareAfter=function(){this._visibles.forEach((function(t){return t.prepareAfter()}))},e.prototype.$_loadItem=function(t,e,i){var n=Wx(e.children||e.series)&&t._getGroupType(e.type||t.type);if(n){var r=new n(t);return r.init(),r._load(e),r.index=i,r}return Fk._loadSeries(t,i,e)},e.prototype.$_add=function(t){var e,i;!this._widget||t instanceof Hk||(this._widget=!1),t.name&&(this._map[t.name]=t);try{for(var n=Ix(this._series),r=n.next();!r.done;r=n.next()){var o=r.value;if(o!==t){if(!t.canMixWith(o))throw new Error("동시에 표시할 수 없는 시리즈들입니다: "+t._type()+", "+o._type());if(t._referOtherSeries(o))break}}}catch(t){e={error:t}}finally{try{r&&!r.done&&(i=n.return)&&i.call(n)}finally{if(e)throw e.error}}},e}(pV),jk=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._doInitChildren=function(e){t.prototype._doInitChildren.call(this,e),e.trendline=(this._trendline=new Ok(this)).init()},Object.defineProperty(e.prototype,"trendline",{get:function(){return this._trendline},enumerable:!1,configurable:!0}),e.defaults=uV(Fk.defaults,{}),e}(Fk),zk=function(t){function e(e){var i=t.call(this,e.chart)||this;return i.series=e,i._args={},i}return Dx(e,t),e.prototype.getMarkerStyle=function(t){if(this._op.styleCallback)return this.series._getPointCallbackArgs(this._args,t),this._op.styleCallback(this._args)},e.defaults=uV(hV.defaults,{radius:3}),e}(hV),$k=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.legendMarker=function(){return this._legendMarker},e.prototype.setLegendMarker=function(t){this._legendMarker=t},e.prototype.legendColor=function(){return this._calcedColor},e.prototype.legendLabel=function(){return lS(this.x,this.y)},e.prototype.styleLegendMarker=function(t){},e}(Sk),Hk=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.getCenter=function(t,e){return{x:IS(this._centerXDim,t),y:IS(this._centerYDim,e)}},e.prototype.getLabelPosition=function(){var t=this._pointLabel.options.position;return"auto"===t?"inside":t},e.prototype.needAxes=function(){return!1},e.prototype._colorByPoint=function(){return!0},e.prototype.getLegendSources=function(e){this._op.legendByPoint?!1!==this._op.visibleInLegend&&this._runPoints.forEach((function(t){e.push(t)})):t.prototype.getLegendSources.call(this,e)},e.prototype._doApply=function(i){var n,r,o=this;t.prototype._doApply.call(this,i),n=i.centerX,r=i.centerY,n!==o._centerX&&(o._centerX=n,o._centerXDim=DS(hS(n,o._op.center,e.CENTER),!0)),r!==o._centerY&&(o._centerY=r,o._centerYDim=DS(hS(r,o._op.center,e.CENTER),!0))},e.prototype.canMinPadding=function(t,e){return!1},e.prototype.canMaxPadding=function(t,e){return!1},e.CENTER="50%",e.defaults=uV(Fk.defaults,{legendByPoint:!1,centerX:"50%",centerY:"50%"}),e}(Fk),Gk=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.getRadius=function(t,e){return IS(this._radiusDim,rS(t,e))},e.prototype._doApply=function(i){var n,r=this;t.prototype._doApply.call(this,i),(n=i.radius)!==r._radius&&(r._radiusDim=DS(lS(r._radius=n,e.defaults.radius),!0))},e.defaults=uV(Hk.defaults,{radius:"40%",startAngle:0,totalAngle:360,clockwise:!0}),e}(Hk),Wk=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._clusterWidth=1,e._clusterPos=0,e._childWidth=1,e._childPos=0,e._pointPad=0,e._minPointWidth=0,e}return Dx(e,t),e.prototype.groupWidth=function(){return this._op.pointWidth},e.prototype.getMinPointWidth=function(){return this._minPointWidth},e.prototype.getPointWidth=function(t){var e=this._group,i=t;return e?(i*=e._clusterWidth,i*=1-2*e.options.groupPadding,i*=this._childWidth):i*=this._clusterWidth,i*=1-2*this._pointPad,oS(this._minPointWidth,i)},e.prototype.getPointPos=function(t){var e=this._group,i=t,n=0;return e?(n=i*e._clusterPos,n+=(i*=e._clusterWidth)*e.options.groupPadding,n+=(i-=i*e.options.groupPadding*2)*this._childPos,i*=this._childWidth):(n=i*this._clusterPos,i*=this._clusterWidth),n+=i*this._pointPad},e.prototype.getLabelPosition=function(t){return"auto"===t?"outsideFirst":t},e.prototype.isClusterable=function(){return!1!==this._op.clusterable},e.prototype.setCluster=function(t,e){this._clusterWidth=t,this._clusterPos=e},e.prototype._doPrepareRender=function(){t.prototype._doPrepareRender.call(this),this._pointPad=isNaN(this._op.pointPadding)?this._single?.25:this._group?.1:.2:Math.max(0,Math.min(.5,this._op.pointPadding)),this._minPointWidth=aS(this.getMinPointWidth(),0)},e.defaults=uV(Fk.defaults,{pointWidth:1}),e}(jk),Yk=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._doPrepareRender=function(){t.prototype._doPrepareRender.call(this),this._base=aS(this._getGroupBase(),this._yAxisObj.getBaseValue())},e.prototype.getBaseValue=function(t){return t===this._yAxisObj?this._base:NaN},e.prototype._getGroupBase=function(){return this._op.baseValue},e.prototype.isBased=function(t){return t===this._yAxisObj},e.defaults=uV(Wk.defaults,{baseValue:0,nullAsBase:!1}),e}(Wk),Xk=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.collectValues=function(e,i){var n=this;t.prototype.collectValues.call(this,e,i),e===this._yAxisObj&&this._runPoints.forEach((function(t){var e=n._getBottomValue(t);i&&!isNaN(e)&&i.push(e)}))},e}(Wk),Uk=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e}(Xk),qk=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.index=-1,e._series=[],e._visibles=[],e._seriesChanged=!1,e}return Dx(e,t),e.register=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];t.forEach((function(t){Mk[t.type]=t}))},e.registerSeries=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];t.forEach((function(t){Mk[t.seriesType]=t}))},e.collectTooltipText=function(t,e,i){var n=t.tooltipHeader||"";return t.tooltipRow&&e.forEach((function(e,r){i.vindex>=e._visPoints.length||(n&&(n+="<br>"),n+=t.tooltipRow.replace("series","series."+r).replace(/\$\{/g,"${"+r+"."))})),n+=t.tooltipFooter?"<br>"+t.tooltipFooter:""},e.inflateTooltipParam=function(t,e,i,n){var r=n.indexOf("."),o=parseInt(n.substring(0,r));if(!isNaN(o)){var s=t[o]._visPoints[i.vindex];s&&(e=t[o],i=s,n=n.substring(r+1))}return n.startsWith("series.")&&(e=t[+n.substring(7)]||e,n="series"),Fk.getPointTooltipParam(e,i,n)},e.prototype.getTooltipText=function(t,i){return e.collectTooltipText(this._op,this._visibles,i)},e.prototype.getTooltipParam=function(t,i,n){return e.inflateTooltipParam(this._visibles,t,i,n)},Object.defineProperty(e.prototype,"series",{get:function(){return this._series.slice(0)},enumerable:!1,configurable:!0}),e.prototype.needAxes=function(){return!0},e.prototype.isEmpty=function(t){return(t?this._visibles:this._series).length<1},e.prototype.canCategorized=function(){return!1},e.prototype.defYAxisType=function(){return"linear"},e.prototype.isClusterable=function(){return!1},e.prototype.getBaseValue=function(t){return NaN},e.prototype.getVisibleSeries=function(){return this._visibles},e.prototype._type=function(){return this.constructor.type},e.prototype._seriesType=function(){return this.constructor.seriesType},e.prototype.setCol=function(t){this._col=t,this._series.forEach((function(e){return e.setCol(t)}))},e.prototype.setRow=function(t){this._row=t,this._series.forEach((function(e){return e.setRow(t)}))},e.prototype.isFirstVisible=function(t){return t===this._visibles[0]},e.prototype.isLastVisible=function(t){return t===this._visibles[this._visibles.length-1]},e.prototype.collectValues=function(t,e){if(this._visibles.length>0)if(t===this._visibles[0]._yAxisObj)switch(this._op.layout){case"stack":this.$_collectStack(t,e);break;case"fill":this.$_collectFill(t,e);break;default:this.$_collectValues(t,e)}else this.$_collectValues(t,e)},e.prototype.collectRanges=function(t){this._visibles.forEach((function(e){e.collectRanges(t)}))},e.prototype.pointValuesPrepared=function(t){this._series.forEach((function(e){return e.pointValuesPrepared(t)}))},e.prototype.collectCategories=function(t){var e=[];return this._visibles.forEach((function(i){return e=e.concat(i.collectCategories(t))})),e},e.prototype.getLegendSources=function(t){var e,i=this._op;if(!1!==i.visibleInLegend&&this.visible){var n=this._series;if((null===(e=this._yAxisObj)||void 0===e?void 0:e.options.reversed)||"fill"!==i.layout&&"stack"!==i.layout)n.forEach((function(e){return e.getLegendSources(t)}));else for(var r=n.length-1;r>=0;r--)n[r].getLegendSources(t)}},e.prototype.isBased=function(t){return this._visibles[0]&&this._visibles[0].isBased(t)},e.prototype.canMinPadding=function(t,e){var i=this.getBaseValue(t);return isNaN(i)||!this.isBased(t)||e<i},e.prototype.canMaxPadding=function(t,e){var i=this.getBaseValue(t);return(isNaN(i)||e>i||!this.isBased(t))&&"fill"!==this._op.layout},e.prototype.getVisPoints=function(t){return this._visibles.map((function(e){return e._visPoints[t.vindex]}))},e.prototype.seriesChanged=function(){return this._seriesChanged},e.prototype.remove=function(t){var e=this._series.indexOf(t);if(e>=0)return this._series.splice(e,1),!0},e.prototype._getVisiblePoints=function(){var t=[];return this._visibles.forEach((function(e){return t.push.apply(t,zx([],jx(e._getVisiblePoints()),!1))})),t},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),Hx.call(e,"children")&&this.$_loadSeries(this.chart,e.children)},e.prototype._doSaveArray=function(t,e){if("children"===t)return this._series.map((function(t){return t.saveOptions()}))},e.prototype._prepareRender=function(){var e=this._visibles;if(this._stacked="stack"===this._op.layout||"fill"===this._op.layout,this._visibles=this._series.filter((function(t){return t.visible})).sort((function(t,e){return(+t.options.zOrder||0)-(+e.options.zOrder||0)})),!(this._seriesChanged=!fS.equalArrays(e,this._visibles)))for(var i=this._visibles.length-1;i>=0;i--)if(this._visibles[i].seriesChanged()){this._seriesChanged=!0;break}t.prototype._prepareRender.call(this)},e.prototype._doPrepareRender=function(t){this._xAxisObj=this.chart._connectSeries(this,!0),this._yAxisObj=this.chart._connectSeries(this,!1),this._visibles.length>0&&(this._visibles.forEach((function(t){return t._prepareRender()})),this._doPrepareSeries(this._visibles))},e.prototype.prepareAfter=function(){this._visibles.forEach((function(t){return t.prepareAfter()}))},e.prototype._doPrepareSeries=function(t){},e.prototype.$_loadSeries=function(t,e){var i=this,n=this._seriesType();Wx(e)?e.forEach((function(e,r){return i.$_add(Fk._loadSeries(t,i._series.length,e,n))})):Gx(e)&&this.$_add(Fk._loadSeries(t,this._series.length,e,n))},e.prototype.$_add=function(t){if(!this._canContain(t))throw new Error("이 그룹에 포함될 수 없는 시리즈입니다: "+t);this._series.push(t),t._group=this},e.prototype.$_collectValues=function(t,e){this._visibles.forEach((function(i){i.collectValues(t,e)}))},e.prototype.$_collectPoints=function(t){var e=this._visibles,i=this._stackPoints=new Map;e.forEach((function(e){e.collectValues(t,null)})),e[0]._runPoints.forEach((function(t){i.set(t.xValue,[t])}));for(var n=1;n<e.length;n++)e[n]._runPoints.forEach((function(t){var e=i.get(t.xValue);e?e.push(t):i.set(t.xValue,[t])}));return i},e.prototype.$_collectStack=function(t,e){var i,n,r,o,s=this.getBaseValue(t),a=this.$_collectPoints(t);if(isNaN(s))try{for(var u=Ix(a.values()),l=u.next();!l.done;l=u.next()){(c=l.value)[0].yGroup=c[0].yValue||0;for(y=1;y<c.length;y++)c[y].yGroup=c[y-1].yGroup+(c[y].yValue||0);e.push(c[c.length-1].yGroup)}}catch(t){r={error:t}}finally{try{l&&!l.done&&(o=u.return)&&o.call(u)}finally{if(r)throw r.error}}else try{for(var h=Ix(a.values()),p=h.next();!p.done;p=h.next()){var c,f=(c=p.value)[0].yValue||0,_=f>=s?0:-1,d=f<s?0:-1;c[0].yGroup=c[0].yValue||0;for(var y=1;y<c.length;y++)(f=c[y].yValue||0)>=s?(_>=0&&(c[y].yGroup=c[_].yGroup+f*(f<0?-1:1)),_=y):(d>=0&&(c[y].yGroup=c[d].yGroup+f*(f>=0?-1:1)),d=y);_>=0&&e.push(c[_].yGroup),d>=0&&e.push(c[d].yGroup)}}catch(t){i={error:t}}finally{try{p&&!p.done&&(n=h.return)&&n.call(h)}finally{if(i)throw i.error}}},e.prototype.$_collectFill=function(t,e){var i,n,r,o,s,a,u,l,h,p,c,f,_=this.getBaseValue(t),d=this.options.layoutMax||100,y=this.$_collectPoints(t);if(isNaN(_))try{for(var g=Ix(y.values()),v=g.next();!v.done;v=g.next()){k=(V=v.value).reduce((function(t,e){return t+(e.yValue||0)}),0);if(0===k){try{for(var m=(h=void 0,Ix(V)),b=m.next();!b.done;b=m.next()){(T=b.value).yValue=T.yGroup=0}}catch(t){h={error:t}}finally{try{b&&!b.done&&(p=m.return)&&p.call(m)}finally{if(h)throw h.error}}e.push(0)}else{E=0;try{for(var w=(c=void 0,Ix(V)),x=w.next();!x.done;x=w.next()){E=(T=x.value).yGroup=(T.yValue||0)/k*d+E}}catch(t){c={error:t}}finally{try{x&&!x.done&&(f=w.return)&&f.call(w)}finally{if(c)throw c.error}}e.push(d)}}}catch(t){u={error:t}}finally{try{v&&!v.done&&(l=g.return)&&l.call(g)}finally{if(u)throw u.error}}else try{for(var S=Ix(y.values()),P=S.next();!P.done;P=S.next()){var V,k=(V=P.value).reduce((function(t,e){return t+(sS(e.yValue)||0)}),0);if(0===k){try{for(var A=(r=void 0,Ix(V)),C=A.next();!C.done;C=A.next()){(T=C.value).yValue=T.yGroup=0}}catch(t){r={error:t}}finally{try{C&&!C.done&&(o=A.return)&&o.call(A)}finally{if(r)throw r.error}}e.push(0,0)}else{var E=0,L=0;try{for(var N=(s=void 0,Ix(V)),M=N.next();!M.done;M=N.next()){var T;(T=M.value).yValue=(T.yValue||0)/k*d,T.yValue<_?L=T.yGroup=(T.yValue||0)+L:E=T.yGroup=(T.yValue||0)+E}}catch(t){s={error:t}}finally{try{M&&!M.done&&(a=N.return)&&a.call(N)}finally{if(s)throw s.error}}e.push(L,E)}}}catch(t){i={error:t}}finally{try{P&&!P.done&&(n=S.return)&&n.call(S)}finally{if(i)throw i.error}}},e.defaults=uV(hV.defaults,{layout:"default",layoutMax:100,visibleInLegend:!0,zOrder:0,tooltipHeader:"<b>${name}</b>",tooltipRow:"${series}:<b> ${yValue}</b>"}),e}(hV),Zk=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.collectValues=function(e,i){if(t.prototype.collectValues.call(this,e,i),e===this._yAxisObj){var n=this._doConstraintYValues(this._visibles);i.length=0,i.push.apply(i,zx([],jx(n),!1))}},e}(qk),Kk=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._clusterWidth=1,e._clusterPos=0,e}return Dx(e,t),e.prototype.groupWidth=function(){return this._op.groupWidth},e.prototype.isClusterable=function(){return!1!==this._op.clusterable},e.prototype.setCluster=function(t,e){this._clusterWidth=t,this._clusterPos=e},e.defaults=uV(qk.defaults,{groupWidth:1,groupPadding:.1}),e}(qk),Jk=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.isMarker=function(){return!0},e.defaults=uV(Fk.defaults,{colorByPoint:!1}),e}(jk),Qk=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e}(hV),tA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e}(hV),eA={area:function(){return{type:"area"}},line:function(){return{type:"line"}},bar:function(){return{type:"bar"}}},iA={category:function(){return{type:"category"}},linear:function(){return{type:"linear"}},time:function(){return{type:"time"}},log:function(){return{type:"log"}}},nA={minPadding:0,maxPadding:0},rA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._dataChanged=!0,e}return Dx(e,t),e.prototype._doInitChildren=function(t){var e=this.chart;t.handle=(this._handle=new Qk(e)).init(),t.mask=(this._mask=new tA(e)).init(),t.borderLine=(this._borderLine=new hV(e)).init()},Object.defineProperty(e.prototype,"handle",{get:function(){return this._handle},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mask",{get:function(){return this._mask},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"borderLine",{get:function(){return this._borderLine},enumerable:!1,configurable:!0}),e.prototype.getThickness=function(){return aS(this._op.thickness,e.defaults.thickness)},e.prototype.getGap=function(){return aS(this._op.gap,e.defaults.gap)},e.prototype.getGapFar=function(){return aS(this._op.gapFar,e.defaults.gapFar)},e.prototype.getSize=function(){return this.getThickness()+this.getGap()+this.getGapFar()},e.prototype.axisLen=function(){return this._naviChart.xAxis.length()},e.prototype.axis=function(){return this._source._xAxisObj},e.prototype._doLoad=function(e,i){t.prototype._doLoad.call(this,e,i);var n={};if(Gx(i.series)){var r=i.series.type;"area"!==r&&"line"!==r&&"bar"!==r&&(r="area"),n.series=Kx({},i.series,eA[r]())}else n.series=eA.area();Gx(i.xAxis)?n.xAxis=Kx({},i.xAxis,(iA[i.xAxis.type]||iA.linear)(),nA):n.xAxis=Kx({},nA),Gx(i.yAxis)?n.yAxis=Kx({},i.yAxis,(iA[i.yAxis.type]||iA.linear)(),nA):n.yAxis=Kx(iA.linear(),nA),this._chartConfig=n,this._axisType=n.xAxis.type},e.prototype._doPrepareRender=function(t){var e=t._getSeries().getSeries(this._op.source)||t.firstSeries;e!==this._source&&(this._source=e,this._axisType||(this._chartConfig.xAxis.type=this._source._xAxisObj._type()),this._naviChart=this.chart._createChart(this._chartConfig),this._op.usePointSource?this._naviChart.firstSeries._loadPoints(this._source.getPoints()._points.map((function(t){return t.source}))):this._naviChart.firstSeries._loadPoints(this._source.getPoints()._points)),this._vertical=!1,this._naviChart._prepareRender()},e.defaults=uV(hV.defaults,{visible:!1,usePointSource:!1,liveScroll:!0,minSize:.05,thickness:45,gap:8,gapFar:3}),e}(hV),oA=function(t){function e(e){var i=t.call(this,e.chart)||this;return i.pane=e,i}return Dx(e,t),e.prototype.base=function(){return this.chart._body},e.prototype.contains=function(t){return t.options.col===this.pane.col||t.options.row===this.pane.row},e.defaults=uV(lk.defaults,{radius:void 0,centerX:void 0,centerY:void 0}),e}(lk),sA=function(t){function e(e,i,n){var r=t.call(this,e)||this;return r.row=i,r.col=n,r}return Dx(e,t),e.prototype._doInitChildren=function(t){t.body=(this._body=new oA(this)).init()},Object.defineProperty(e.prototype,"body",{get:function(){return this._body},enumerable:!1,configurable:!0}),e.prototype._prepareRender=function(){this.body._prepareRender()},e}(hV),aA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._cols=1,e._rows=1,e._panes={},e._vcols=1,e._vrows=1,e._vpanes=[],e}return Dx(e,t),e.prototype.count=function(){return this._vrows*this._vcols},e.prototype.rowCount=function(){return this._vrows},e.prototype.colCount=function(){return this._vcols},e.prototype.paneCount=function(){return this._vrows*this._vcols},e.prototype.getPane=function(t,e){return this._vpanes[t][e]},e.prototype.getRow=function(t){return this._vpanes[t]},e.prototype.getColumn=function(t){return this._vpanes.map((function(e){return e[t]}))},e.prototype._doLoadProp=function(e,i){return["panes","cols","rows"].indexOf(e)>=0||t.prototype._doLoadProp.call(this,e,i)},e.prototype._doSetSimple=function(e){if(Wx(e)&&e.length>0){var i=this._op;return i.rows=oS(1,+e[0]),i.cols=oS(1,aS(+e[1],i.rows)),i.rows>0&&i.cols>0&&(this.$_parsePanes(i.rows,i.cols),this.visible=!0),!0}return t.prototype._doSetSimple.call(this,e)},e.prototype._load=function(e){return t.prototype._load.call(this,e),Gx(e)&&(this.$_parsePanes(this._op.rows=e.rows,this._op.cols=e.cols),this._panes=this.$_loadPanes(e.panes)),this},e.prototype._doPrepareRender=function(t){this._xAxes=t._xPaneAxes,this._yAxes=t._yPaneAxes,this._vpanes=this.$_collectPanes(t),this._vpanes.forEach((function(t){return t.forEach((function(t){return t._prepareRender()}))}))},e.prototype.getXLens=function(t){return new Array(this._vcols).fill(t/this._vcols)},e.prototype.getYLens=function(t){return new Array(this._vrows).fill(t/this._vrows)},e.prototype.layoutAxes=function(t,e,i,n){var r=this.getXLens(i?e:t),o=this.getYLens(i?t:e);this._xAxes._buildTicks(r),this._yAxes._buildTicks(o),this.$_calcAxesPoints(r,o,0)},e.prototype.$_calcAxesPoints=function(t,e,i){this._xAxes._calcPoints(t,i),this._yAxes._calcPoints(e,i)},e.prototype.calcAxesPoints=function(t,e){this.$_calcAxesPoints(t,e,101)},e.prototype.calcSizes=function(t,e){this._widths=this.$_calcSizes(t,this._widths),this._heights=this.$_calcSizes(e,this._heights)},e.prototype.getAnnotation=function(t){for(var e in this._panes){var i=this._panes[e].body.getAnnotation(t);if(i)return i}},e.prototype.$_parseSizes=function(t){return(Wx(t)&&t.length>0?t.slice(0):t>0?new Array(t).fill("*"):["*"]).map((function(t){if(Xx(t)){var e=t.trim();return{size:"*"===e?1:parseFloat(e)}}return+t||{size:1}}))},e.prototype.$_parsePanes=function(t,e){this._widths=this.$_parseSizes(e),this._heights=this.$_parseSizes(t),this._cols=this._widths.length,this._rows=this._heights.length},e.prototype.$_loadPanes=function(t){var e=this,i={};return t=Wx(t)?t:Gx(t)?[t]:null,Wx(t)&&t.forEach((function(t){var n=+t.row||0,r=+t.col||0;if(r>=0&&r<e._cols&&n>=0&&n<e._rows){var o=new sA(e.chart,n,r);o.init(),o._load(t),i[n+","+r]=o}})),i},e.prototype.$_collectPanes=function(t){var e=this,i=t._getXAxes()._internalItems(),n=t._getYAxes()._internalItems(),r=[],o=[],s=[];i.concat(n).forEach((function(t){var i=t.options.row||0,n=t.options.col||0;t._row=i,t._col=n,n>=0&&n<e._cols&&r.indexOf(n)<0&&r.push(n),i>=0&&i<e._rows&&o.indexOf(i)<0&&o.push(i)})),r.sort(),o.sort();for(var a=0;a<o.length;a++){for(var u=[],l=0;l<r.length;l++){var h=this._panes[a+","+l]||new sA(t,a,l)._initObject();u.push(h)}s.push(u)}return this._vrows=s.length,this._vcols=s[0].length,s},e.prototype.$_calcSizes=function(t,e){},e.defaults=uV(hV.defaults,{visible:!1,gap:0}),e}(hV),uA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._isVisible=function(){return this._op.visible&&!TS(this._op.text)},e.prototype._doSetSimple=function(e){return Xx(e)?(this._op.text=e,!0):t.prototype._doSetSimple.call(this,e)},e.defaults=uV(hV.defaults,{text:"Title",alignBase:"body",align:"center",verticalAlign:"middle",gap:10}),e}(hV),lA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.defaults=uV(uA.defaults,{position:"bottom",text:"",titleGap:2,verticalAlign:"bottom"}),e}(uA),hA=function(t){function e(e){var i=t.call(this,e.chart)||this;return i.owner=e,i}return Dx(e,t),e.prototype._doInit=function(e){var i=this;t.prototype._doInit.call(this,e),this._domain={callback:function(t,e){return i._ctx.getTooltipParam(i._series,i._point,e)}}},e.prototype.setTarget=function(t,e,i){var n=lS(this._op.scope,"hover");return this._ctx=this.visible&&this.owner.getTooltipContext(n,this._series=t,this._point=e)},e.prototype.getTextDomain=function(){return this._domain},e.prototype.isFollowPointer=function(t){return this._op.followPointer||!1!==this._op.followPointer&&(null==t?void 0:t.followPointer())},e.prototype._doSetSimple=function(e){return Xx(e)?(this._op.text=e,!0):t.prototype._doSetSimple.call(this,e)},e.prototype._doApply=function(e){var i,n=this;t.prototype._doApply.call(this,e),(i=e.numberFormat)!=n._numberFormat&&(n._numberFormat=i,n._domain.numberFormatter=n._numberFormat?rP.getFormatter(n._numberFormat):void 0),function(t){t!=n._timeFormat&&(n._timeFormat=t,n._domain.timeFormatter=n._timeFormat?wP.getFormatter(n._timeFormat):void 0)}(e.timeFormat)},e.defaults=uV(hV.defaults,{scope:"hover",offset:8,hideDelay:700,minWidth:100,minHeight:40,nanText:"",numberFormat:",#.##",timeFormat:"yyyy-MM-dd"}),e}(hV),pA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._isVisible=function(){return this._op.visible&&!TS(this._op.imageUrl)},e.prototype._doSetSimple=function(e){return Xx(e)?(this._op.imageUrl=e,!0):t.prototype._doSetSimple.call(this,e)},e.type="image",e}(yV),cA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.getSeries=function(){if(this._xRange&&this._yRange){var t=this.chart.seriesByName(this._op.series);if(t&&t.visible)return{series:t,xRange:this._xRange,yRange:this._yRange}}},e.prototype.getShape=function(){return this._op.shape||e.defaults.shape},e.prototype._doSetSimple=function(e){return Xx(e)?(this._op.shape=e,!0):t.prototype._doSetSimple.call(this,e)},e.type="shape",e.defaults=uV(yV.defaults,{width:64,height:64,shape:"square"}),e}(yV),fA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._domain={callback:function(t,i){return e.chart.getParam(t,i)}},e}return Dx(e,t),e.prototype._isVisible=function(){return this._op.visible&&!TS(this._op.text)},e.prototype._doSetSimple=function(e){return Xx(e)?(this._op.text=e,!0):t.prototype._doSetSimple.call(this,e)},e.prototype._doApply=function(e){var i,n=this;t.prototype._doApply.call(this,e),(i=e.numberFormat)!==n._numberFormat&&(n._numberFormat=i,n._domain.numberFormatter=i?rP.getFormatter(i):wS),function(t){t!==n._timeFormat&&(n._timeFormat=t,n._domain.timeFormatter=t?wP.getFormatter(t):wS)}(e.timeFormat)},e.type="text",e.defaults=uV(yV.defaults,{text:"Text"}),e}(yV),_A=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.getPoints=function(t,e){return t.hasBreak()?t._ticks.filter((function(e){return!t.isBreak(e.value)})).map((function(i){return t.getPos(e,i.value)})):t._ticks.map((function(i){return t.getPos(e,i.value)}))},e}(VV),dA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._strictEnds=!1,e._strictTicks=!1,e}return Dx(e,t),e.prototype._isValidInterval=function(t){return t>0},e.prototype._normalizeSteps=function(t,e,i){return t},e.prototype.buildSteps=function(t,e,i,n,r){var o,s;void 0===r&&(r=!1);var a,u=this._op;return this._strictTicks=this._strictEnds=!1,this._step=NaN,r?a=this._getStepsByPixels(t,aS(.85*u.stepPixels,60),e,i,n):Wx(u.steps)||Yx(u.stepCallback)?((a=u.stepCallback?u.stepCallback.call(wS,{length:t,minValue:i,maxValue:n}):u.steps.slice(0)).length>0&&isNaN(a[0])&&(a[0]=i),a.length>1&&isNaN(a[a.length-1])&&(a[a.length-1]=n),this._strictTicks=this._strictEnds=!0):a=this._baseAxis instanceof bA&&this._baseAxis._ticks.length>0?this._getStepsByCount(this._baseAxis._ticks.length,e,i,n,!0):u.stepCount>0?this._getStepsByCount(u.stepCount,e,i,n,!1):this._isValidInterval(u.stepInterval)?this._getStepsByInterval(u.stepInterval,e,i,n):u.stepPixels>0?this._getStepsByPixels(t,((null===(o=this.axis)||void 0===o?void 0:o._isPolar)&&!(null===(s=this.axis)||void 0===s?void 0:s._isX)?.5:1)*u.stepPixels,e,i,n):i!==n?[i,n]:[i],a},e.prototype.getNextStep=function(t,e){return t+e*this._step},e.prototype.canUseNumSymbols=function(){return isNaN(this._step)||this._step>=500},e.prototype._findBaseAxis=function(){if(null!=this._op.baseAxis){var t=this.axis,e=(t._isX?this.chart._getXAxes():this.chart._getYAxes()).get(this._op.baseAxis);e!==t&&e instanceof bA&&(this._baseAxis=e,e.tick._baseAxis=null)}},e.prototype.$_normalizeMin=function(t,e){return t>Jx(t/e)*e?t=Jx(t/e)*e:t<Qx(t/e)*e&&(t=Qx(t/e)*e),ES(t)},e.prototype._getStepsByCount=function(t,e,i,n,r){i>e?(i=e,e=NaN):n<e&&(n=e,e=NaN),this._strictEnds=!0;var o=this.axis,s=n-i,a=s/(t-1),u=Math.pow(10,Math.floor(Math.log10(a))),l=[];if(isNaN(o._fixedMin)||isNaN(o._fixedMax)?r&&a/u==2.5&&Jx(t*s/a)==t*s/a?this._step=a:a=this._step=Qx(a/u)*u:a=s/(t-1),isNaN(o._fixedMin))if(isNaN(e))i=this.$_normalizeMin(i,u);else{for(GS(i<e&&n>e,"base error"),t=oS(3,t);;){if(!(Qx((e-i)/a)+Qx((n-e)/a)+1>t))break;a+=u}i=e-Qx((e-i)/a)*a}else i=o._fixedMin;l.push(i);for(var h=1;h<t;h++)l.push(ES(l[h-1]+a));return l},e.prototype._getStepsByInterval=function(t,e,i,n){var r,o=[];if(i=this.$_normalizeMin(i,t),isNaN(e))for(o.push(r=i);r<n;)o.push(r=ES(r+t));else{for(o.push(r=e);r>i;)o.unshift(r=ES(r-t));for(r=e;r<n;)o.push(r=ES(r+t))}return this._step=t,o},e.prototype._getStepMultiples=function(t){return[1,2,2.5,5,10]},e.prototype._getStepsByPixels=function(t,e,i,n,r){n>=i?n=i:r<=i&&(r=i);var o=r-n,s=[];if(0===o)return isNaN(n)?[]:[n];var a,u=t>250?5:t>200?4:t>150?3:t>80?2:1,l=oS(this.axis._isX?1:u,Jx(t/e))+1,h=o/(l-1),p=Math.pow(10,Math.floor(nS(h))),c=this._getStepMultiples(p),f=0;if(h/=p,c)if(h>c[f]){for(;f<c.length-1;f++)if(h>c[f]&&h<c[f+1]){h=c[++f];break}}else h=c[f];if(h*=p,isNaN(i))n=this.$_normalizeMin(n,h);else{for(GS(n<=i&&r>=i,"base error"),l=oS(3,l);f<c.length;){if(!(Qx((i-n)/h)+Qx((r-i)/h)+1>l))break;h=f<c.length-1?c[f+1]*p:2*h,f++}n=i-Qx((i-n)/h)*h}for(this._step=h,s.push(ES(a=n));a<r;)s.push(ES(a+=h));return s},e.defaults=uV(LV.defaults,{stepPixels:72,baseRange:!1}),e}(LV),yA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.defaults=uV(NV.defaults,{numberFormat:"0.##"}),e}(NV),gA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.getTick=function(t,e){return this._getText(null,e,"*"===this._op.useSymbols||this._op.useSymbols&&this.axis.tick.canUseNumSymbols(),!0)},e.defaults=uV(yA.defaults,{useSymbols:!0}),e}(yA),vA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.getSize=function(t){return IS(this._sizeDim,t)},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),this._op.space=aS(this._op.space,0),this._sizeDim=DS(this._op.size,!1)},e.defaults=uV(wV.defaults,{enabled:!0,size:"30%",space:16,gridVisible:!0}),e}(wV),mA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.defaults=uV(xV.defaults,{visible:!1}),e}(xV),bA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._breaks=[],e}return Dx(e,t),e.prototype._doInitChildren=function(e){t.prototype._doInitChildren.call(this,e),e.baseLine=(this._baseLine=new mA(this)).init()},Object.defineProperty(e.prototype,"baseLine",{get:function(){return this._baseLine},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tick",{get:function(){return this._tick},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"grid",{get:function(){return this._grid},enumerable:!1,configurable:!0}),e.prototype.getBaseValue=function(){return this._op.baseValue},e.prototype.hasBreak=function(){return null!=this._runBreaks},e.prototype._getBreaks=function(){return this._runBreaks?this._runBreaks.slice(0,1):[]},e.prototype.isBreak=function(t){if(this._runBreaks){var e=this._runBreaks[0];return!e.options.gridVisible&&(t===e.options.from||t===e.options.to)}},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),Hx.call(e,"break")&&this.$_loadBreaks(e.break)},e.prototype.continuous=function(){return!0},e.prototype.isBased=function(){return!!this._tick._baseAxis},e.prototype._createGrid=function(){return new _A(this)},e.prototype._createTickModel=function(){return new dA(this)},e.prototype._doPrepareRender=function(){this._baseVal=parseFloat(this._op.baseValue),this._tick._findBaseAxis()},e.prototype._doBuildTicks=function(t,i,n){if(isNaN(t)||isNaN(i))return[];var r,o=this._tick,s=o._baseAxis instanceof e&&o._baseAxis._ticks.length>0,a=this._adjustMinMax(n,this._calcedMin=t,this._calcedMax=i),u=a.min,l=a.max,h=this._baseVal;if(isNaN(h)&&u<0&&l>0&&(h=0),isNaN(h)?u<0&&l>0&&(h=0):(u=Math.min(u,h),l=Math.max(l,h)),s&&o.options.baseRange&&(u=o._baseAxis.axisMin(),l=o._baseAxis.axisMax()),u===l)r=[u];else if((r=o.buildSteps(n,h,u,l,!1)).length>0){if(o._strictTicks||(r=o._normalizeSteps(r,u,l)),!isNaN(this._fixedMin)||!o._strictEnds&&"tick"!==this._getStartFit())for(;r.length>2&&r[0]<u;)r.shift();else if(!o._strictEnds&&!s){for(;r.length>2&&r[1]<=u;)r.shift();if(!isNaN(o._step))for(;r[0]>u;)r.unshift(o.getNextStep(r[0],-1))}if(u=Math.min(u,r[0]),!isNaN(this._op.strictMax)||!o._strictEnds&&"tick"!==this._getEndFit())for(;r.length>2&&l<r[r.length-1];)r.pop();else if(!o._strictEnds&&!s){for(;r.length>2&&r[r.length-2]>=l;)r.pop();if(!isNaN(o._step))for(;r[r.length-1]<l;)r.push(o.getNextStep(r[r.length-1],1))}l=Math.max(l,r[r.length-1])}else r.push(u+(l-u)/2);this._setMinMax(u,l);var p=[];this._runBreaks&&(r=this.$_getBrokenSteps(this._runBreaks,n,u,l));for(var c=NaN,f=0;f<r.length;f++){var _=this._createTick(n,f,r[f]);_.value!==c&&(p.push(_),c=_.value)}return p},e.prototype._createTick=function(t,e,i){return{index:e,pos:NaN,value:ES(i),label:this.label.getTick(e,i)||String(i)}},e.prototype._calcPoints=function(e,i){if(i>100&&this._isX)if(this._min===this._max)this._unitLen=e/4;else{var n=this.$_calcUnitLength(this._isPolar?this.getTotalAngle():e);n&&(this._unitLen=n.len,this._isPolar||this._zoom||(this._min-=n.min/2,this._max+=n.min/2))}t.prototype._calcPoints.call(this,e,i),this._markPoints=this._ticks.map((function(t){return t.pos}))},e.prototype.$_buildBrokenSteps=function(t){return this._tick.buildSteps(t.len,void 0,t.from,t.to,!0)},e.prototype.$_getBrokenSteps=function(t,e,i,n){var r=this,o=0,s=i,a=[s],u=this._sects=[];e-=t.reduce((function(t,e){return t+e.options.space}),0),t.forEach((function(t){var i=t.options,n=t.getSize(e),l={from:s,to:t.options.from,pos:o,len:n};o+=n,u.push(l,t._sect={from:i.from,to:i.to,pos:o,len:i.space}),o+=i.space,r.$_buildBrokenSteps(l).forEach((function(t){t>l.from&&t<=l.to&&a.push(t)})),i.space>0&&a.push(i.to)}));var l=t[t.length-1];if(n>l.options.to){var h={from:l.options.to,to:n,pos:o,len:this._vlen-o};u.push(h),this.$_buildBrokenSteps(h).forEach((function(t){t>h.from&&t<=h.to&&a.push(t)}))}return this._lastSect=u[u.length-1],a},e.prototype.getPos=function(t,e){if(this._runBreaks){var i=this._sects.find((function(t){return e<t.to}))||this._lastSect,n=i.len*(e-i.from)/(i.to-i.from);return this._op.reversed?LS(t-n-i.pos):LS(n+i.pos)}n=this._single?.5*t:t*(e-this._min)/(this._max-this._min);return LS(this._op.reversed?t-n:n)},e.prototype.valueAt=function(t,e){var i,n;if(this._isHorz?this._op.reversed&&(e=t-e):this._op.reversed||(e=t-e),this._runBreaks){var r=0;try{for(var o=Ix(this._sects),s=o.next();!s.done;s=o.next()){var a=s.value;if(e>=r&&e<r+a.len)return(a.to-a.from)*(e-r)/a.len+a.from;r+=a.len}}catch(t){i={error:t}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return this._max}return(this._max-this._min)*e/t+this._min},e.prototype.xValueAt=function(t){return this.valueAt(this._vlen,t)},e.prototype.getUnitLen=function(t,e){return this._unitLen},e.prototype.getLabelLength=function(t,e){return Math.floor(t/this._ticks.length)},e.prototype._getStartFit=function(){return"default"===this._op.startFit?this._isX?"value":"tick":this._op.startFit},e.prototype._getEndFit=function(){return"default"===this._op.endFit?this._isX?"value":"tick":this._op.endFit},e.prototype._adjustMinMax=function(t,e,i){var n=this,r=this._op,o=this.isZoomed(),s=this.isZoomed(),a=!0,u=!0,l=NaN,h=NaN;this._series.forEach((function(t){var p=t.getBaseValue(n);isNaN(p)||(isNaN(r.minValue)&&p<=e?t.isBased(n)?e=p:l=aS(rS(l,p),p):isNaN(r.maxValue)&&p>=i&&(t.isBased(n)?i=p:h=aS(oS(h,p),p))),!o&&a&&t.canMinPadding(n,e)&&(a=!1),!s&&u&&t.canMaxPadding(n,i)&&(u=!1)})),o||(o=a),s||(s=u),this._fixedMin=this._fixedMax=NaN;var p=0,c=0;isNaN(r.strictMin)?r.minValue<e?e=r.minValue:o?this._fixedMin=e:p=uS(r.minPadding,r.padding,0):this._fixedMin=e=r.strictMin,isNaN(r.strictMax)?r.maxValue>i?i=r.maxValue:s?this._fixedMax=i:c=uS(r.maxPadding,r.padding,0):this._fixedMax=i=r.strictMax;var f=oS(0,i-e),_=e-f*(this._minPad=p),d=i+f*(this._maxPad=c);return!isNaN(l)&&l<=e&&_<l&&(_=this._fixedMin=l),!isNaN(h)&&h>=i&&d>h&&(d=this._fixedMax=h),{min:_,max:d}},e.prototype.$_calcUnitLength=function(t){var e=[];if(this._series.forEach((function(t){t.visible&&t.isClusterable()&&e.push.apply(e,zx([],jx(t._getVisiblePoints()),!1))})),e.length>0){for(var i=this._isX,n=e.map((function(t){return i?t.xValue:t.yValue})).sort((function(t,e){return t-e})),r=n.length-1;r>0;r--)n[r]===n[r-1]&&n.splice(r,1);return this._calcUnitLen(n,t,this._min,this._max)}},e.prototype._calcUnitLen=function(t,e,i,n){if(t.length<2){if(this._ticks.length>0){var r=(n-i)/this._ticks.length;return{len:aS(e*=r/(n-i+r),1),min:r}}return{len:e,min:0}}r=t[1]-t[0];for(var o=2;o<t.length;o++)r=rS(r,t[o]-t[o-1]);return{len:aS(e*=r/(n-i+r),1),min:r}},e.prototype.$_loadBreak=function(t){if(Gx(t)&&"from"in t&&"to"in t){var e=new vA(this);return e.init(),e._load(t),e}},e.prototype.$_loadBreaks=function(t){var e,i;if(Wx(t))try{for(var n=Ix(t),r=n.next();!r.done;r=n.next()){var o=r.value;(s=this.$_loadBreak(o))&&this._breaks.push(s)}}catch(t){e={error:t}}finally{try{r&&!r.done&&(i=n.return)&&i.call(n)}finally{if(e)throw e.error}}else if(t){var s;(s=this.$_loadBreak(t))&&this._breaks.push(s)}this.$_mergeBreaks()},e.prototype.$_mergeBreaks=function(){function t(t,e){t.options.to=e.options.to}var e,i=this._breaks.sort((function(t,e){return t.options.from-e.options.from})).filter((function(t){return t.options.to>t.options.from}));if(this._runBreaks=null,i.length>0){var n=this._runBreaks=[];n.push(Kx(new vA(this)._initObject(),i[0]));for(var r=1;r<i.length;r++){var o=n[n.length-1],s=i[r];e=o,s.options.from<e.options.to?t(o,s):n.push(Kx(new vA(this)._initObject(),s))}}},e.defaults=uV(RV.defaults,{nullable:!0,padding:.04,startFit:"default",endFit:"default"}),e}(RV),wA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),Object.defineProperty(e.prototype,"label",{get:function(){return this._label},enumerable:!1,configurable:!0}),e.prototype._createLabel=function(){return new gA(this)},e.prototype._adjustMinMax=function(e,i,n){var r=t.prototype._adjustMinMax.call(this,e,i,n),o=this._series;return!this._isX&&1===o.length&&o[0]instanceof qk&&"fill"===o[0].options.layout&&(r.max=o[0].options.layoutMax),r},e.type="linear",e}(bA),xA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.canUseNumSymbols=function(){return this.axis.axisMax()>nS(500)},e.prototype._getStepMultiples=function(t){return[1,2,5,10]},e.prototype._normalizeSteps=function(t,e,i){if(!this._op.arrangeDecimals)return t;for(var n=[],r=i-e,o=0;o<t.length;o++){var s=n.length,a=t[o],u=Jx(a);if(a===u){var l=n[s-1];o>1&&a-l<r&&(l=Math.pow(10,l),Jx(l)!==ES(l)&&n.pop()),n.push(a)}else if(a>0&&a>u){if((a=u+nS(10*(a-u)))<=i)(0===s||a>n[s-1])&&n.push(a);else if(s>0){if(n[o-1]>=i)break;var h=iS(Jx(nS(t[o]-t[o-1]))),p=(l=t[o])-Jx(l);if(h<1)for(var c=1;c<10;c++)if(p>nS(c)&&p<nS(c+1)){var f=Jx(l)+nS(c);if(f>=i){a=f;break}}n.push(a)}}else if(o>0&&a<=i&&a>n[s-1])n.push(a);else if(a>i)break;n.length>1&&(r=Math.min(.5,r,n[n.length-1]-n[n.length-2]))}return n},e.defaults=uV(dA.defaults,{arrangeDecimals:!0}),e}(dA),SA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._createLabel=function(){return new gA(this)},e.prototype._createTickModel=function(){return new xA(this)},e.prototype.collectValues=function(){t.prototype.collectValues.call(this),this._values=this._values.filter((function(t){return t>0}))},e.prototype.getPos=function(e,i){return i=i>0?nS(i):-1,t.prototype.getPos.call(this,e,i)},e.prototype._doCalculateRange=function(e){var i=t.prototype._doCalculateRange.call(this,e);return i.min=nS(i.min),i.max=nS(i.max),i},e.prototype._createTick=function(e,i,n){return t.prototype._createTick.call(this,e,i,ES(iS(n)))},e.prototype._calcUnitLen=function(t,e,i,n){for(var r=nS(t[1])-nS(t[0]),o=2;o<t.length;o++)r=rS(r,nS(t[o])-nS(t[o-1]));var s=n-i,a=r/s;return{len:aS(e*=a,1),min:s*a}},e.type="log",e}(bA),PA=[1,1e3,6e4,36e5,864e5,6048e5,24192e5,314496e5],VA=[[1,2,5,10,20,25,50,100,200,250,500],[1,2,5,10,15,30],[1,2,3,4,6,8,12],[1,2,3,4,6,12],[1,2],[1,2],[1,2,3,4,6]],kA={s:1,n:2,h:3,d:4,w:5,m:6,y:7},AA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.getNextStep=function(t,e){var i=new Date(t);switch(e*=this._step,this._scale){case 7:i.setFullYear(i.getFullYear()+e);break;case 6:i.setMonth(i.getMonth()+e);break;case 5:i.setDate(i.getDate()+7*e);break;case 4:i.setDate(i.getDate()+e);break;case 3:i.setHours(i.getHours()+e);break;case 2:i.setMinutes(i.getMinutes()+e);break;case 1:i.setSeconds(i.getSeconds()+e);break;case 0:i.setMilliseconds(i.getMilliseconds()+e)}return+i},e.prototype._isValidInterval=function(t){return isNaN(t)?Xx(t)&&kA.hasOwnProperty(t.charAt(t.length-1))?(t=parseFloat(t),!isNaN(t)&&(t<=-1||t>=1)):void 0:0!=+t},e.prototype._getStepMultiples=function(t){for(var e=0;e<7;e++)if(t>=PA[e]/2&&t<PA[e+1]/2)return this._scale=e,VA[e];this._scale=7},e.prototype._getStepsByPixels=function(t,e,i,n,r){var o=[],s=r-n;if(0===s)return o;var a=this.axis,u=new Date(a._calcedMin),l=Math.floor(t/this._op.stepPixels)+1,h=oS(1,Math.floor(s/(l-1))),p=this._getStepMultiples(h),c=PA[this._scale];if(h/=c,p)if(h>p[0]){for(var f=0;f<p.length-1;f++)if(h>p[f]&&h<p[f+1]){h=p[f+1];break}}else h=p[0];var _,d=a.date(n),y=a.date(r),g=d;if(7===this._scale){var v=u.getFullYear(),m=g.getFullYear();this._step=h=Math.ceil(h),g=new Date(m,0),m<v&&m+h>v&&(m=v,g=new Date(m,0));do{o.push(+g),m+=h,g=new Date(m,0)}while(g<=y)}else if(6===this._scale){m=g.getFullYear();var b=g.getMonth();this._step=h=Math.ceil(h),(g=new Date(m,b))<u&&new Date(m,b+h)>u&&(b=u.getMonth(),g=new Date(u.getFullYear(),b));do{o.push(+g),g.setMonth(g.getMonth()+h)}while(g<=y)}else if(4===this._scale||5===this._scale){m=g.getFullYear(),b=g.getMonth();var w=g.getDate(),x=5===this._scale?7:1;this._step=h=Math.ceil(h),(g=new Date(m,b,w))<u&&new Date(m,b,w+x*h)>u&&(w=u.getDate(),g=new Date(u.getFullYear(),u.getMonth(),w));do{o.push(+g),g.setDate(g.getDate()+h*x)}while(g<=y)}else{switch(this._step=h,h*=c,this._scale){case 3:g.setMinutes(0);case 2:g.setSeconds(0);case 1:g.setMilliseconds(0)}_=g.getTime();var S=u.getTime();_<S&&_+h>S&&(_=S);do{o.push(_),_+=h}while(_<=r)}return o},e.prototype._getStepsByInterval=function(e,i,n,r){if(Xx(e)){var o=this.axis,s=new Date(o._calcedMin),a=[],u=e.charAt(e.length-1),l=parseFloat(e),h=void 0,p=void 0;this._scale=kA[u],e=PA[this._scale];var c=new Date(n);switch(this._scale){case 7:var f=s.getFullYear(),_=c.getFullYear();c.setMonth(0,1),_<f&&f<_+l&&(c=new Date(f,0));break;case 6:c.setDate(1),c.setHours(0,0,0,0),(p=new Date(c)).setMonth(p.getMonth()+l),c<s&&s<p&&((c=new Date(s)).setDate(1),c.setHours(0,0,0,0));break;case 5:case 4:var d=5===this._scale?7:1;c.setHours(0,0,0,0),(p=new Date(c)).setDate(p.getDate()+l*d),c<s&&p>s&&(c=new Date(s)).setHours(0,0,0,0);break;case 3:c.setMinutes(0);case 2:c.setSeconds(0);case 1:c.setMilliseconds(0)}if(this._step=l,n=+c,isNaN(i))for(a.push(h=n);h<r;)a.push(h=this.getNextStep(h,1));else{for(a.push(h=i);h>n;)a.unshift(h=this.getNextStep(h,-1));for(h=i;h<r;)a.push(h=this.getNextStep(h,1))}return this._step=e,a}return t.prototype._getStepsByInterval.call(this,e,i,n,r)},e}(dA),CA=[{format:"SSS",beginningFormat:"mm:ss"},{format:"ss",beginningFormat:"mm:ss"},{format:"mm:ss",beginningFormat:"HH:mm:ss"},{format:"HH:mm",beginningFormat:"MM-dd HH:mm"},{format:"MM-dd",beginningFormat:"yyyy-MM-dd"},{format:"MM W주",beginningFormat:"yyyy-MM-dd"},{format:"yyyy-MM",beginningFormat:"yyyy-MM"},{format:"yyyy",beginningFormat:"yyyy"}],EA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._doApply=function(e){t.prototype._doApply.call(this,e);var i=Xx(e.timeFormat)?e.timeFormat:void 0,n=Xx(e.beginningFormat)?e.beginningFormat:void 0,r=e.timeFormats,o=e.useBeginningFormat;if(this._formats=CA.map((function(t){return Kx(t)})),i&&this._formats.forEach((function(t){t.format=t.beginningFormat=i})),o&&n&&this._formats.forEach((function(t){t.beginningFormat=n})),Wx(r))for(var s=0;s<r.length;s++){var a=this._formats[s],u=r[s];Ux(u)?a.format=u:Gx(u)&&(Ux(u.format)&&(a.format=u.format),o&&Ux(u.beginningFormat)&&(a.beginningFormat=u.beginningFormat))}},e.prototype.getTick=function(t,e){var i=this.chart,n=this.axis,r=n.date(e);if(this._formatter)return this._formatter.toStr(r,i.startOfWeek);var o=this._formats,s=n.tick._scale,a=wP.getFormatter;switch(s){case 7:return a(o[s].format).toStr(r,i.startOfWeek);case 6:return 0===t||0===r.getMonth()?a(o[s].beginningFormat).toStr(r,i.startOfWeek):a(o[s].format).toStr(r,i.startOfWeek);case 5:case 4:return 0===t||1===r.getDate()?a(o[s].beginningFormat).toStr(r,i.startOfWeek):a(o[s].format).toStr(r,i.startOfWeek);case 3:return 0===t||0===r.getHours()?a(o[s].beginningFormat).toStr(r,i.startOfWeek):a(o[s].format).toStr(r,i.startOfWeek);case 2:return 0===t||0===r.getMinutes()?a(o[s].beginningFormat).toStr(r,i.startOfWeek):a(o[s].format).toStr(r,i.startOfWeek);case 1:return 0===t||0===r.getSeconds()?a(o[s].beginningFormat).toStr(r,i.startOfWeek):a(o[s].format).toStr(r,i.startOfWeek);case 0:return 0===t||0===r.getMilliseconds()?a(o[s].beginningFormat).toStr(r,i.startOfWeek):a(o[s].format).toStr(r,i.startOfWeek)}},e.defaults=uV(yA.defaults,{useBeginningFormat:!0}),e}(yA),LA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),Object.defineProperty(e.prototype,"label",{get:function(){return this._label},enumerable:!1,configurable:!0}),e.prototype._createTickModel=function(){return new AA(this)},e.prototype._createLabel=function(){return new EA(this)},e.prototype.collectValues=function(){this._offset=60*aS(this.chart.timeOffset,0)*1e3,t.prototype.collectValues.call(this)},e.prototype.getValue=function(t){return qx(t)?t:t instanceof Date?t.getTime():Xx(t)?new Date(t).getTime()+this._offset:void 0},e.prototype.incStep=function(t,e){if(Xx(e)){var i=parseFloat(e);if(0!=i){var n=new Date(t);switch(e.charAt(e.length-1)){case"y":n.setFullYear(n.getFullYear()+i);break;case"m":n.setMonth(n.getMonth()+i);break;case"d":n.setDate(n.getDate()+i);break;case"w":n.setDate(n.getDate()+7*i);break;case"h":n.setHours(n.getHours()+i);break;case"n":n.setMinutes(n.getMinutes()+i);break;case"s":n.setSeconds(n.getSeconds()+i)}return+n}return t}return t+e},e.prototype.date=function(t){return new Date(t)},e.prototype.axisValueAt=function(t,e){return new Date(this.valueAt(t,e))},e.prototype.value2Tooltip=function(t){return isNaN(t)?this.chart._tooltip.options.nanText:new Date(t)},e.prototype.getXValue=function(t){return isNaN(t)?NaN:new Date(t)},e.type="time",e.subtype="date",e.defaults=uV(bA.defaults,{baseValue:NaN}),e}(bA),NA="bullet",MA="circle",TA="linear",OA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.getWidth=function(t){return IS(this._widthDim,t)},e.prototype.getHeight=function(t){return IS(this._heightDim,t)},e.prototype.getMaxWidth=function(t){return IS(this._maxWidthDim,t)},e.prototype.getMaxHeight=function(t){return IS(this._maxHeightDim,t)},e.prototype.getGap=function(t){return IS(this._gapDim,t,0)},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),this._setDims(e,"width","height","maxWidth","maxHeight","gap")},e.defaults=uV(ek.defaults,{maxWidth:"30%",maxHeight:"30%",gap:10}),e}(ek),RA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._doInitChildren=function(e){t.prototype._doInitChildren.call(this,e),e.label=(this._label=new OA(this.chart)).init(),e.scale=(this._scale=new ik(this)).init()},Object.defineProperty(e.prototype,"label",{get:function(){return this._label},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scale",{get:function(){return this._scale},enumerable:!1,configurable:!0}),e.prototype.isVertical=function(){return this._group?this._group.options.vertical:this._op.vertical},e.prototype.scaleVisible=function(){return!this._group&&this._scale.visible},e.prototype.calcedMinMax=function(){return this._scale.range()},e.prototype._doPrepareRender=function(e){t.prototype._doPrepareRender.call(this,e),this._label._prepareRender()},e.defaults=uV(qV.defaults,{reversed:!1}),e}(qV),BA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._args={gauge:null,value:NaN},e}return Dx(e,t),e.prototype.getStyle=function(t,e){if(this._op.styleCallback)return this._args.gauge=t,this._args.value=e,this._op.styleCallback(this._args)},e}(WV),DA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._doInitChildren=function(e){t.prototype._doInitChildren.call(this,e),e.valueBar=(this._valueBar=new BA(this)).init(),e.band=(this._band=new tk(this)).init()},Object.defineProperty(e.prototype,"valueBar",{get:function(){return this._valueBar},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"band",{get:function(){return this._band},enumerable:!1,configurable:!0}),e.type=TA,e}(RA),FA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.defaults=uV(hV.defaults,{opposite:!1,gap:10}),e}(hV),IA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.defaults=uV(OA.defaults,{gap:10}),e}(OA),jA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._doInitChildren=function(e){t.prototype._doInitChildren.call(this,e),e.label=(this._label=new IA(this.chart)).init(),e.itemLabel=(this._itemLabel=new FA(this.chart)).init(),e.scale=(this._scale=new ik(this)).init()},Object.defineProperty(e.prototype,"label",{get:function(){return this._label},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"itemLabel",{get:function(){return this._itemLabel},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scale",{get:function(){return this._scale},enumerable:!1,configurable:!0}),e.prototype.calcedMinMax=function(){return this.scale.range()},e.defaults=uV(XV.defaults,{vertical:!1,itemGap:10}),e}(XV),zA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._doInitChildren=function(e){t.prototype._doInitChildren.call(this,e),e.band=(this._band=new tk(this)).init()},Object.defineProperty(e.prototype,"band",{get:function(){return this._band},enumerable:!1,configurable:!0}),e.prototype._gaugesType=function(){return"linear"},e.prototype._doPrepareRender=function(e){t.prototype._doPrepareRender.call(this,e),this.band.visible&&this.band._prepareRender()},e.type="lineargroup",e.gaugeType=TA,e}(jA),$A=function(t){function e(e){var i=t.call(this,e.chart)||this;return i.gauge=e,i}return Dx(e,t),e.prototype.getRanges=function(){var t;return null===(t=this.$_internalRanges())||void 0===t?void 0:t.slice(0)},e.prototype._doApply=function(e){var i,n=this;t.prototype._doApply.call(this,e),(i=e.ranges)!==n._ranges&&(n._ranges=i,n._runRanges=null)},e.prototype.$_internalRanges=function(){if(!this._runRanges){var t=this.gauge.options;this._runRanges=XS(this._ranges,t.minValue,t.maxValue,this._op.rangeInclusive)}return this._runRanges},e.defaults=uV(hV.defaults,{vertical:!0,rangeInclusive:!0}),e}(hV),HA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.defaults=uV(hV.defaults,{visible:!0}),e}(WV),GA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e}(BA),WA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._doInitChildren=function(e){t.prototype._doInitChildren.call(this,e),e.band=(this._band=new $A(this)).init(),e.targetBar=(this._targetBar=new HA(this)).init(),e.valueBar=(this._valueBar=new GA(this)).init()},Object.defineProperty(e.prototype,"band",{get:function(){return this._band},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"targetBar",{get:function(){return this._targetBar},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"valueBar",{get:function(){return this._valueBar},enumerable:!1,configurable:!0}),e.prototype.getRanges=function(t,e,i){return XS(this._op.ranges,t,e,lS(i,this._op.rangeInclusive))},e.type=NA,e.defaults=uV(RA.defaults,{rangeInclusive:!0}),e}(RA),YA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.getRanges=function(t,e,i){return XS(this._op.ranges,t,e,lS(i,this._op.rangeInclusive))},e.prototype._gaugesType=function(){return"bullet"},e.type="bulletgroup",e.gaugeType=NA,e.defaults=uV(jA.defaults,{rangeInclusive:!0}),e}(jA),XA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.getRange=function(t,e){var i,n,r=this.$_internalRanges(t);if(r)try{for(var o=Ix(r),s=o.next();!s.done;s=o.next()){var a=s.value;if(e>=a.fromValue&&e<a.toValue)return a}}catch(t){i={error:t}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}},e.prototype._doApply=function(e){var i,n=this;t.prototype._doApply.call(this,e),(i=e.ranges)!==n._ranges&&(n._ranges=i,n._runRanges=null)},e.prototype.$_internalRanges=function(t){return this._runRanges||(this._runRanges=XS(this._ranges,t.minValue,t.maxValue,this._op.rangeInclusive)),this._runRanges},e.defaults=uV(hV.defaults,{rangeInclusive:!0}),e}(WV),UA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.getSegmentThickness=function(t){return IS(this._segmentThicknessDim,t,t)},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),this._setDim(e,"segmentThickness")},e.defaults=uV(XA.defaults,{segmentGap:0}),e}(XA),qA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.getThickness=function(t){return IS(this._thicknessDim,t,t)},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),this._setDim(e,"thickness")},e.defaults=uV(XA.defaults,{thickness:"100%",stroked:!1}),e}(XA);!function(t){function e(){return null!==t&&t.apply(this,arguments)||this}Dx(e,t),e.defaults=uV(hV.defaults,{visible:!1})}(WV);var ZA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.getExtents=function(t){return{radius:IS(this._radiusDim,t,0),length:IS(this._lengthDim,t,0),offset:IS(this._offsetDim,t,0)}},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),this._setDims(e,"radius","length","offset")},e.defaults=uV(hV.defaults,{visible:!1,radius:3,length:"100%",offset:0}),e}(WV),KA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.getRadius=function(t){return IS(this._radiusDim,t,0)},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),this._setDim(e,"radius")},e.defaults=uV(hV.defaults,{visible:!1,radius:5}),e}(WV),JA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._getStepMultiples=function(t){return[1,2,2.5,5,10]},e.defaults=uV(JV.defaults,{visible:!1,stepPixels:72}),e}(JV),QA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._doInitChildren=function(e){t.prototype._doInitChildren.call(this,e),e.band=(this._band=new tk(this)).init(),e.scale=(this._scale=new JA(this)).init(),e.rim=(this._rim=new UA(this)).init(),e.valueRim=(this._valueRim=new qA(this)).init(),e.hand=(this._hand=new ZA(this)).init(),e.pin=(this._pin=new KA(this)).init()},Object.defineProperty(e.prototype,"band",{get:function(){return this._band},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scale",{get:function(){return this._scale},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rim",{get:function(){return this._rim},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"valueRim",{get:function(){return this._valueRim},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hand",{get:function(){return this._hand},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pin",{get:function(){return this._pin},enumerable:!1,configurable:!0}),e.prototype.getExtents=function(e){var i=t.prototype.getExtents.call(this,e),n=this.scale,r=this.band,o=i.radius,s=o-i.inner;if(r.visible)switch(i.bandThick=r.getThickness(s),r.options.position){case"inside":i.band=o-(s-i.bandThick)/2;break;case"opposite":i.band=i.inner-r.options.gap,i.inner=i.band-i.bandThick;break;default:i.band=o+=i.bandThick+r.options.gap}if(i.scaleTick=oS(1,n.tick.options.length||0),i.scaleLabel=16,"opposite"===n.options.position)i.scale=i.inner-n.options.gap,i.inner=i.scale-i.scaleTick-i.scaleLabel;else i.scale=o+n.options.gap;return i},e.type=MA,e}(ok),tC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._gaugesType=function(){return"circle"},e.type="circlegroup",e.gaugeType=MA,e.defaults=uV(sk.defaults,{innerRadius:"50%"}),e}(sk),eC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.getThickness=function(t){return IS(this._thicknessDim,t,t)},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),this._setDim(e,"thickness")},e.defaults=uV(hV.defaults,{thickness:7}),e}(WV),iC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.getLength=function(t){return IS(this._lengthDim,t,t)},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),this._setDim(e,"length")},e.defaults=uV(hV.defaults,{thickness:7,length:"60%"}),e}(WV),nC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.defaults=uV(iC.defaults,{thickness:5,length:"85%"}),e}(iC),rC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.defaults=uV(iC.defaults,{thickness:2,length:"95%",animatable:!1,duration:200}),e}(iC),oC=function(t){function e(e,i){var n=t.call(this,e)||this;return n.length=i,n}return Dx(e,t),e}(WV),sC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.defaults=uV(hV.defaults,{step:1,offset:1}),e}(WV),aC=function(t){function e(e,i){var n=t.call(this,e)||this;return n.raidus=i,n}return Dx(e,t),e}(WV),uC=function(t){function e(e){return t.call(this,e.chart)||this}return Dx(e,t),e.defaults=uV(cV.defaults,{text:"RealChart Clock<br>ver1.0",position:"top"}),e}(cV),lC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._doInitChildren=function(e){t.prototype._doInitChildren.call(this,e),e.rim=(this.rim=new eC(this)).init(),e.hourHand=(this.hourHand=new iC(this)).init(),e.minuteHand=(this.minuteHand=new nC(this)).init(),e.secondHand=(this.secondHand=new rC(this)).init(),e.tick=(this.tick=new oC(this,10)).init(),e.minorTick=(this.minorTick=new oC(this,5)).init(),e.tickLabel=(this.tickLabel=new sC(this)).init(),e.pin=(this.pin=new aC(this,5)).init(),e.label=(this.label=new uC(this)).init()},e.prototype.getTime=function(){var t=this._op;return t.time instanceof Date?t.time:Xx(t.time)?new Date(t.time):isNaN(t.time)?void 0:new Date(t.time)},e.prototype.getExtents=function(t,e){var i=rS(t,e);return{cx:IS(this._centerXDim,t,t/2),cy:IS(this._centerYDim,e,e/3),rd:IS(this._radiusDim,i,i/2)}},e.prototype._doApply=function(e){var i,n,r,o=this;t.prototype._doApply.call(this,e),i=e.centerX,n=e.centerY,r=e.radius,(o._centerXDim||i!==o._centerX)&&(o._centerXDim=DS(lS(o._centerX=i,ok.DEF_CENTER),!0)),o._centerYDim&&n===o._centerY||(o._centerYDim=DS(lS(o._centerY=n,ok.DEF_CENTER),!0)),o._radiusDim&&r===o._radius||(o._radiusDim=DS(lS(o._radius=r,ok.DEF_RADIUS),!0))},e.type="clock",e.defaults=uV(YV.defaults,{centerX:"50%",centerY:"50%",radius:"40%",active:!0}),e}(YV),hC="line",pC="area",cC="circlebar",fC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.pointLabelCount=function(){return 2},e.prototype._createLegendMarker=function(t,e){return bk.create(t,Fk.LEGEND_MARKER,0,0,e,e,2)},e.prototype._getFielderProps=function(){return["lowField"].concat(t.prototype._getFielderProps.call(this))},e.prototype._createPoint=function(t){return new kk(t)},e.prototype._getBottomValue=function(t){return t.lowValue},e.type="barrange",e.defaults=uV(Uk.defaults,{tooltipText:"<b>${name}</b><br>${series}: <b>${lowValue}</b> ~ <b>${highValue}</b>"}),e}(Uk),_C=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e}(Sk),dC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.canCategorized=function(){return!0},e.prototype._colorByPoint=function(){return this._op.colorByPoint},e.prototype._createPoint=function(t){return new _C(t)},e.prototype._getGroupBase=function(){return this._group?this._group.options.baseValue:this._op.baseValue},e.defaults=uV(Yk.defaults,{colorByPoint:!1}),e}(Yk),yC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._createLegendMarker=function(t,e){return bk.create(t,Fk.LEGEND_MARKER,0,0,e,e,2)},e.type="bar",e}(dC),gC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.canCategorized=function(){return!0},e.prototype.getBaseValue=function(t){return t._isX?NaN:aS(this._op.baseValue,t.getBaseValue())},e.prototype._doPrepareSeries=function(t){if("default"===this._op.layout){var e=t.length>1?t.map((function(t){return t.options.pointWidth})).reduce((function(t,e){return t+e}),0):t[0].options.pointWidth,i=0;t.forEach((function(t){t._childWidth=t.options.pointWidth/e,t._childPos=i,i+=t._childWidth}))}else this._op.layout},e.defaults=uV(Kk.defaults,{baseValue:0}),e}(Kk),vC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._canContain=function(t){return t instanceof yC},e.type="bargroup",e.seriesType="bar",e}(gC),mC=function(t){function e(e,i){var n=t.call(this,e,Fk.LEGEND_MARKER)||this;return n._size=i,n.add(n._marker=new OP(e)),n.setShape("circle",12),n}return Dx(e,t),e.prototype.setShape=function(t,e){t===this._shape&&e===this._size||(this._shape=t,this._size=e,this._renderShape(e))},e.prototype._renderShape=function(t){mk.setShape(this._marker,this._shape,t/2,t/2),this._marker.trans(this._markerOffset(t),0)},e.prototype._markerOffset=function(t){return 0},e}(EP),bC=function(t){function e(e,i){var n=t.call(this,e,i)||this;return n.insertFirst(n._line=new OP(e)),n.insertFirst(n._area=new OP(e)),n._area.setBoolData("fill",!0),n}return Dx(e,t),e.prototype._renderShape=function(e){t.prototype._renderShape.call(this,e);var i=["M",0,.5*e,"L",2*e,0],n=["M",0,.5*e,"L",2*e,0,"L",2*e,e,"L",0,e,"Z"];this._marker.setStyle("visibility",this._shape?"visible":"hidden"),this._line&&(this._line.setPath(i.join(" ")),this._area.setPath(n.join(" ")))},e.prototype._markerOffset=function(t){return t/2},e}(mC),wC=function(t){function e(e,i){var n=t.call(this,e,i)||this;return n.insertFirst(n._line=new OP(e)),n._line.setFill("none"),n.insertFirst(n._line2=new OP(e)),n._line2.setFill("none"),n.insertFirst(n._area=new OP(e)),n._area.setBoolData("fill",!0),n}return Dx(e,t),e.prototype._renderShape=function(e){t.prototype._renderShape.call(this,e);var i=["M",0,.3*e,"L",.7*e,0,"L",2*e,.4*e],n=["M",0,e,"L",e,.7*e,"L",2*e,e],r=["M",0,.3*e,"L",.7*e,0,"L",2*e,.4*e,"L",2*e,e,"L",e,.7*e,"L",0,e,"Z"];this._marker.setStyle("visibility",this._shape?"visible":"hidden"),this._line&&(this._line.setPath(i.join(" ")),this._line2.setPath(n.join(" ")),this._area.setPath(r.join(" ")))},e.prototype._markerOffset=function(t){return t/2},e}(mC),xC=function(t,e){return t==e||!(!t||!e)&&(t.x1===e.x1&&t.x2===e.x2&&t.y1===e.y1&&t.y2===e.y2)},SC=function(t){function e(e,i,n){void 0===i&&(i=wS),void 0===n&&(n=wS);var r=t.call(this,e,i)||this;return n&&r.setLine(n),r}return Dx(e,t),e.prototype.setLine=function(t,e,i,n){fS.isNumber(t)?this.setPath(mk.line(t,e,i,n)):t&&this.setPath(mk.line(t.x1,t.y1,t.x2,t.y2))},e.prototype.setVLine=function(t,e,i){this.setPath(mk.line(t,e,t,i))},e.prototype.setVLineC=function(t,e,i){var n=parseFloat(this.getStyle("stroke-width"));isNaN(n)||(t=Math.round(t)-n%2/2),this.setPath(mk.line(t,e,t,i))},e.prototype.setHLine=function(t,e,i){this.setPath(mk.line(e,t,i,t))},e.prototype.setHLineC=function(t,e,i){var n=parseFloat(this.getStyle("stroke-width"));isNaN(n)||(t=Math.round(t)-n%2/2),this.setPath(mk.line(e,t,i,t))},e}(OP);!function(t){function e(e,i,n){void 0===i&&(i=wS),void 0===n&&(n=wS);var r=t.call(this,e,null,i)||this;return r.setLine(n),r}Dx(e,t),Object.defineProperty(e.prototype,"line",{get:function(){return this._line},set:function(t){xC(t,this._line)||(this._line=t,this.$_render())},enumerable:!1,configurable:!0}),e.prototype.updateLine=function(t){xC(t,this._line)||(this.line=t)},e.prototype.updateVLine=function(t,e,i){this.updateLine({x1:t,y1:e,x2:t,y2:i})},e.prototype.updateHLine=function(t,e,i){this.updateLine({x1:e,y1:t,x2:i,y2:t})},e.prototype.updateVLineC=function(t,e,i){this.updateLine({x1:t,y1:e,x2:t,y2:i})},e.prototype.updateHLineC=function(t,e,i,n){this.updateLine({x1:e,y1:t,x2:i,y2:t})},e.prototype.setLine=function(t,e,i,n){fS.isNumber(t)?this.$_update(t,e,i,n):t&&this.updateLine(t)},e.prototype.setVLine=function(t,e,i){this.$_update(t,e,t,i)},e.prototype.setVLineC=function(t,e,i){this.$_update(t,e,t,i)},e.prototype.setHLine=function(t,e,i){this.$_update(e,t,i,t)},e.prototype.setHLineC=function(t,e,i){this.$_update(e,t,i,t)},e.prototype.$_update=function(t,e,i,n){this.line={x1:t,y1:e,x2:i,y2:n}},e.prototype.$_render=function(){var t=this._line;t&&this.setPath(mk.line(t.x1,t.y1,t.x2,t.y2))}}(OP),function(t){function e(){return null!==t&&t.apply(this,arguments)||this}Dx(e,t),e.prototype.setPoints=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.setPath(mk.lines.apply(mk,zx([],jx(t),!1)))}}(OP),function(t){function e(e,i){var n=t.call(this,e,i)||this;return n.setFill("none"),n}Dx(e,t),e.prototype.setPoints=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.setPath(mk.lines.apply(mk,zx([],jx(t),!1)))},e.prototype.resetStyles=function(e){var i=t.prototype.resetStyles.call(this,e);return this.setFill("none"),i}}(OP);var PC=function(t){function e(e,i){var n=t.call(this,e,i)||this;return n.insertFirst(n._line=new SC(e)),n}return Dx(e,t),e.prototype._renderShape=function(e){t.prototype._renderShape.call(this,e),this._marker.setStyle("visibility",this._shape?"visible":"hidden"),this._line&&(this._line.setHLine(e/2,0,2*e),this._shape&&this._line.setStyle("strokeDasharray",""))},e.prototype._markerOffset=function(t){return t/2},e}(mC),VC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.toPoint=function(){return{px:this.px,py:this.py,isNull:this.isNull,range:this.range}},e}(Sk),kC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.defaults=uV(zk.defaults,{radius:4,hoverScale:1.75}),e}(zk),AC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.getAlignOffset=function(){var t=+this._op.alignOffset;return isNaN(t)?"left"===this._op.align||"right"===this._op.align?e.ALIGN_GAP:0:t},e.ALIGN_GAP=4,e.defaults=uV(Tk.defaults,{position:"auto",align:"center"}),e}(Tk),CC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._doInitChildren=function(e){t.prototype._doInitChildren.call(this,e),e.marker=(this._marker=new kC(this)).init()},Object.defineProperty(e.prototype,"marker",{get:function(){return this._marker},enumerable:!1,configurable:!0}),e.prototype.getShape=function(t){return this.marker.visible?t&&t.shape||this.marker.options.shape||this._shape:null},e.prototype.getRadius=function(t){return aS(t.radius,this.marker.options.radius)},e.prototype.prepareLines=function(t){this._lines=this._doPrepareLines(t)},Object.defineProperty(e.prototype,"pointLabel",{get:function(){return this._pointLabel},enumerable:!1,configurable:!0}),e.prototype._createLabel=function(t){return new AC(t)},e.prototype._createPoint=function(t){return new VC(t)},e.prototype.hasShape=function(){return!0},e.prototype.setShape=function(t){this._shape=t},e.prototype._defViewRangeValue=function(){return"x"},e.prototype._createLegendMarker=function(t,e){return new PC(t,e)},e.prototype.legendMarker=function(e,i){var n=t.prototype.legendMarker.call(this,e,i);return n.setShape(this.getShape(null),rS(i,2*this.marker.options.radius)),n},e.prototype._doPrepareLines=function(t){var e=t.length,i=[];if(this._containsNull)for(var n=0;n<e;){for(var r=[];t[n].isNull&&n<e;)n++;for(;n<e&&!t[n].isNull;)r.push(t[n++]);r.length>0&&i.push(r)}else i.push(t.slice());return i},e.defaults=uV(Fk.defaults,{nullAsBase:!1}),e}(jk),EC=function(t){function e(e){var i=t.call(this,e.chart)||this;return i.series=e,i}return Dx(e,t),e.prototype.label=function(){return this._op.text||this.series.displayName()},e.prototype.getDefaultIconPos=function(){return"left"},e.defaults=uV(fV.defaults,{visible:!1,offset:8}),e}(fV),LC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._doInitChildren=function(e){t.prototype._doInitChildren.call(this,e),e.flag=(this._flag=new EC(this)).init()},Object.defineProperty(e.prototype,"flag",{get:function(){return this._flag},enumerable:!1,configurable:!0}),e.prototype.backDir=function(){return"backward"===this._op.stepDir?"forward":"backward"},e.prototype.isMarker=function(){return!0},e.prototype.getLineType=function(){return this._group instanceof BC||this._group instanceof DC?this._group.options.lineType:this._op.lineType},e.prototype.getBaseValue=function(t){return t._isX?NaN:this._base},e.prototype._doPrepareRender=function(){t.prototype._doPrepareRender.call(this),this._base=uS(this._group?this._group.getBaseValue(this._yAxisObj):this._op.baseValue,this._yAxisObj.getBaseValue(),0)},e.type=hC,e.defaults=uV(CC.defaults,{lineType:"default",stepDir:"forward",connectNullPoints:!1}),e}(CC),NC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._viewType=function(){return"line"},e.prototype.getLineType=function(){return"spline"},e.type="spline",e}(LC),MC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e}(VC),TC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._doInitChildren=function(e){t.prototype._doInitChildren.call(this,e);var i=this.chart;this.marker.visible=i&&i.isPolar()},e.prototype.prepareAreas=function(){function t(t){var e=[];if(t.length>0){var i=t[t.length-1].toPoint();i.py=t[t.length-1].yLow,e.push(i),(i=t[0].toPoint()).py=aS(t[0].yLow,t[0].py),e.push(i)}return e}var e=this._group,i=this._lines,n=this._areas=[];if(e&&e._stacked){var r=[].concat.apply([],zx([],jx(i),!1));n.push(r),n.push(t(r))}else i.forEach((function(e){var i=e.slice(0);n.push(i),n.push(t(i))}))},e.prototype.isBased=function(t){return t===this._yAxisObj},e.prototype._createLegendMarker=function(t,e){return new bC(t,e)},e.prototype._createPoint=function(t){return new MC(t)},e.prototype._doPrepareLines=function(e){if(this._containsNull&&this._group&&this._group._stacked){for(var i=e.length,n=[],r=0;r<i;){var o=e[r].isNull,s=[];do{s.push(e[r++])}while(r<i&&e[r].isNull==o);n.push(s)}return n}return t.prototype._doPrepareLines.call(this,e)},e.type=pC,e}(LC),OC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),Object.defineProperty(e.prototype,"high",{get:function(){return this.y},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"highValue",{get:function(){return this.yValue},enumerable:!1,configurable:!0}),e.prototype._assignTo=function(e){return Kx(t.prototype._assignTo.call(this,e),{low:this.low,high:this.high,lowValue:this.lowValue,highValue:this.yValue})},e.prototype._valuesChangd=function(e){return this.low!==e.low||t.prototype._valuesChangd.call(this,e)},e.prototype._readArray=function(t,e){var i=e.length>2?1:0;this.low=e[aS(t.options.lowField,0+i)],this.y=e[aS(t.options.yField,1+i)],i>0&&(this.x=e[aS(t.options.xField,0)])},e.prototype._readObject=function(e,i){t.prototype._readObject.call(this,e,i),this.isNull||(this.low=lS(i[e.options.lowField],i.low),this.y=hS(e._yFielder(i),i.y,i.value))},e.prototype._readSingle=function(e){t.prototype._readSingle.call(this,e),this.low=this.y},e.prototype.parse=function(e){t.prototype.parse.call(this,e),this.isNull||(this.isNull=isNaN(this.lowValue))},e.prototype.initValues=function(){this.lowValue=parseFloat(this.low)},e.prototype.initPrev=function(t,e){e.yValue=e.lowValue=this.lowValue},e.prototype.applyValueRate=function(t,e){this.lowValue=pS(t.lowValue,this.lowValue,e)},e}(MC),RC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._createLegendMarker=function(t,e){return new wC(t,e)},e.prototype._createPoint=function(t){return new OC(t)},e.prototype.getLineType=function(){return this._op.curved?"spline":"default"},e.prototype.collectValues=function(e,i){t.prototype.collectValues.call(this,e,i),i&&e===this._yAxisObj&&this._runPoints.forEach((function(t){return!t.isNull&&i.push(t.lowValue)}))},e.prototype._doPrepareLines=function(e){var i=t.prototype._doPrepareLines.call(this,e),n=[];return i.forEach((function(t){for(var e=[],i=t.length-1;i>=0;i--){var r=t[i],o=r.toPoint();o.py=r.yLow,e.push(o)}n.push(t,e)})),n},e.type="arearange",e.defaults=uV(CC.defaults,{curved:!1,tooltipText:"<b>${name}</b><br>${series}: <b>${lowValue}</b> ~ <b>${highValue}</b>"}),e}(CC),BC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._canContain=function(t){return t instanceof LC},e.prototype.getBaseValue=function(t){return t===this._yAxisObj?uS(this._op.baseValue,t.getBaseValue(),0):NaN},e.type="linegroup",e.seriesType=hC,e.defaults=uV(qk.defaults,{lineType:"default"}),e}(qk),DC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.prepareLines=function(t){if(this._stacked){var e=this._visibles.indexOf(t);if(e>0){for(var i=this._visibles[e-1],n=t._areas,r=i._areas,o=0;o<n.length;o+=2)n[o+1]=r[o].reverse();this._op.layout}}},e.prototype._canContain=function(t){return t instanceof TC},e.prototype.getBaseValue=function(t){return t===this._yAxisObj?uS(this._op.baseValue,t.getBaseValue(),0):NaN},e.type="areagroup",e.seriesType=pC,e.defaults=uV(qk.defaults,{lineType:"default"}),e}(qk),FC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e}(MC),IC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.getLineType=function(){return this._op.curved?"spline":"default"},e.prototype._createPoint=function(t){return new FC(t)},e.prototype._doLoadData=function(e){var i=t.prototype._doLoadData.call(this,e);if(Wx(i))return this._loadTable(i)},e.prototype._referOtherSeries=function(t){if(this._points.isEmpty()&&(t.options.name===this._op.source||t.index===this._op.source))return t.referBy(this),!0},e.prototype.reference=function(t,e){if(!e._isX){var i=t._runPoints.map((function(t){return t.yValue})).filter((function(t){return!isNaN(t)})),n=this._loadTable(i);this._doLoadPoints(n),this._runPoints=this._points.getPoints(this._xAxisObj,this._yAxisObj),this.collectValues(this._xAxisObj,this._xAxisObj._values),this.collectValues(this._yAxisObj,this._yAxisObj._values)}},e.prototype._loadTable=function(t){var e=function(t,e,i){var n=i-t;return{x:i,y:Math.exp(-n*n/(2*e*e))/(e*Math.sqrt(2*Math.PI))}},i=t.length;if(!(i<1)){var n=this._op,r=t.reduce((function(t,e){return t+e}),0)/i,o=Math.sqrt(t.reduce((function(t,e){return t+Math.pow(e-r,2)}))/(i-1)),s=o/n.pointsInSigma,a=r-n.sigmas*o,u=r+n.sigmas*o,l=r,h=[];for(h.push(e(r,o,l));l>a;)l-=s,h.unshift(e(r,o,l));for(l=r;l<u;)l+=s,h.push(e(r,o,l));return h}},e.type="bellcurve",e.defaults=uV(TC.defaults,{sigmas:3,pointsInSigma:5,curved:!0}),e}(TC),jC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),Object.defineProperty(e.prototype,"max",{get:function(){return this.y},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxValue",{get:function(){return this.yValue},enumerable:!1,configurable:!0}),e.prototype.labelCount=function(){return 2},e.prototype.getPointLabel=function(e){return 0===e?t.prototype.getPointLabel.call(this,e):this.minValue},e.prototype.getPointText=function(e){return 0===e?t.prototype.getPointText.call(this,e):this.minLabel},e.prototype._assignTo=function(e){return Kx(t.prototype._assignTo.call(this,e),{min:this.min,low:this.low,mid:this.mid,high:this.high,max:this.max,minValue:this.minValue,lowValue:this.lowValue,midValue:this.midValue,highValue:this.highValue,maxValue:this.maxValue})},e.prototype._valuesChangd=function(e){return!!t.prototype._valuesChangd.call(this,e)||(this.min!==e.min||this.low!==e.low||this.mid!==e.mid||this.high!==e.high)},e.prototype._readArray=function(t,e){if(e.length<=4)this.isNull=!0;else{var i=t.options,n=e.length>5?1:0;n>0&&(this.x=e[aS(i.xField,0)]),this.min=e[aS(i.minField,0+n)],this.low=e[aS(i.lowField,1+n)],this.mid=e[aS(i.midField,2+n)],this.high=e[aS(i.highField,3+n)],this.y=e[uS(i.maxField,t.options.yField,4+n)]}},e.prototype._readObject=function(e,i){t.prototype._readObject.call(this,e,i);var n=e.options;this.min=lS(i[n.minField],i.min),this.low=lS(i[n.lowField],i.low),this.mid=lS(i[n.midField],i.mid),this.y=hS(i[n.highField],i.high,this.y),this.minLabel=i.minLabel},e.prototype._readSingle=function(e){t.prototype._readSingle.call(this,e),this.min=this.low=this.mid=this.high=this.y},e.prototype.parse=function(e){t.prototype.parse.call(this,e),this.isNull||(this.isNull=isNaN(this.minValue)||isNaN(this.lowValue)||isNaN(this.midValue))},e.prototype.initValues=function(){this.minValue=parseFloat(this.min),this.lowValue=parseFloat(this.low),this.midValue=parseFloat(this.mid),this.highValue=parseFloat(this.high)},e.prototype.initPrev=function(t,e){e.yValue=e.highValue=e.midValue=e.lowValue=e.minValue=this.minValue},e.prototype.applyValueRate=function(t,e){this.minValue=pS(t.minValue,this.minValue,e),this.lowValue=pS(t.lowValue,this.lowValue,e),this.midValue=pS(t.midValue,this.midValue,e),this.highValue=pS(t.highValue,this.highValue,e)},e}(Sk),zC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.pointLabelCount=function(){return 2},e.prototype.canCategorized=function(){return!0},e.prototype._getFielderProps=function(){return["minField","lowField","midField","highField"].concat(t.prototype._getFielderProps.call(this))},e.prototype._createPoint=function(t){return new jC(t)},e.prototype._getBottomValue=function(t){return t.minValue},e.prototype._createLegendMarker=function(t,e){return bk.create(t,Fk.LEGEND_MARKER,0,0,e,e,2)},e.type="boxplot",e.defaults=uV(Uk.defaults,{tooltipText:"<b>${name}</b><br>min: <b>${minValue}</b><br>low: <b>${lowValue}</b><br>mid: <b>${midValue}</b><br>high: <b>${highValue}</b><br>max: <b>${maxValue}</b>"}),e}(Uk),$C=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e}(Vk),HC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.getShape=function(){return this._op.shape||"circle"},e.prototype.getPixelMinMax=function(t){return{min:IS(this._minSizeDim,t),max:IS(this._maxSizeDim,t)}},e.prototype.getRadius=function(t,e,i){var n=this._noSize?1:(t-this._zMin)/(this._zMax-this._zMin);return"area"==this._op.sizeMode&&(n=Math.sqrt(n)),n=Math.ceil(e+n*(i-e))/2},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),this._setDims(e,"minSize","maxSize")},e.prototype._createPoint=function(t){return new $C(t)},e.prototype._getNoClip=function(e){var i=t.prototype._getNoClip.call(this,e);return!Zx(i)||i},e.prototype.hasZ=function(){return!0},e.prototype._colorByPoint=function(){return this._op.colorByPoint},e.prototype._doPrepareRender=function(){t.prototype._doPrepareRender.call(this);var e=Number.MAX_VALUE,i=Number.MIN_VALUE;this._runPoints.forEach((function(t){t.isNull||isNaN(t.zValue)||(e=rS(e,t.zValue),i=oS(i,t.zValue))})),this._noSize=(this._zMin=e)===(this._zMax=i)},e.prototype._getRangeMinMax=function(e){return"z"===e?{min:this._zMin,max:this._zMax}:t.prototype._getRangeMinMax.call(this,e)},e.type="bubble",e.defaults=uV(Jk.defaults,{sizeMode:"area",minSize:10,maxSize:"20%",tooltipText:"x: <b>${x}</b><br>y: <b>${y}</b><br>volume: <b>${z}</b>"}),e}(Jk),GC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._canContain=function(t){return t instanceof LC},e.prototype._doConstraintYValues=function(t){var e={};for(var i in t.forEach((function(t){t._runPoints.forEach((function(t){var i=t.xValue,n=e[i];n?n.push(t):e[i]=[t]}))})),e)e[i].sort((function(t,e){return t.yValue-e.yValue})).forEach((function(t,e){t.yLabel=lS(t.yLabel,t.yValue),t.yValue=t.yGroup=e}));return fS.makeIntArray(0,t.length)},e.type="bump",e.seriesType=hC,e}(Zk),WC=function(t){return isNaN(t)?0:t},YC=function(){function t(){this._path=[]}return t.prototype.length=function(){return this._path.length},t.prototype.isEmpty=function(){return 0===this._path.length},t.prototype.clear=function(){return this._path=[],this},t.prototype.end=function(t){return void 0===t&&(t=!1),this._path.length>0?(t&&this._path.push("Z"),this._path.join(" ")):""},t.prototype.close=function(t){var e=this.end(!0);return t&&this.clear(),e},t.prototype.move=function(t,e){return qx(t)?this._path.push("M",t,e):this._path.push("M",t.x,t.y),this},t.prototype.moveBy=function(t,e){return qx(t)?this._path.push("m",t,e):this._path.push("m",t.x,t.y),this},t.prototype.line=function(t,e){return qx(t)?this._path.push("L",t,e):this._path.push("L",t.x,t.y),this},t.prototype.moveOrLine=function(t,e,i){return t?this._path.push("L",e,i):this._path.push("M",e,i),this},t.prototype.vline=function(t,e,i){return this._path.push("M",t,e,"L",t,i),this},t.prototype.hline=function(t,e,i){return this._path.push("M",e,t,"L",i,t),this},t.prototype.curve=function(t,e,i,n,r,o){return this._path.push("C",t,e,i,n,r,o),this},t.prototype.quad=function(t,e,i,n){return qx(t)?this._path.push("Q",t,e,i,n):this._path.push("Q",t.x1,t.y1,t.x2,t.y2),this},t.prototype.rect=function(t,e,i,n){return this._path.push("M",t,e,"l",i,0,"l",0,n,"l",-i,0),this},t.prototype.lines=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(qx(t[0]))for(var i=0;i<t.length;i+=2)this._path.push("L",WC(t[i]),WC(t[i+1]));else for(i=0;i<t.length;i++)this._path.push("L",WC(t[i].x),WC(t[i].y));return this},t.prototype.polygon=function(){for(var t,e,i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];return qx(i[0])?(t=this.move(i[0],i[1])).lines.apply(t,zx([],jx(i.slice(2)),!1)):(e=this.move(i[0])).lines.apply(e,zx([],jx(i.slice(1)),!1)),this._path.push("Z"),this},t.prototype.circle=function(t,e,i){return this._path.push("M ".concat(t-i,", ").concat(e," a ").concat(i,",").concat(i," 0 1,0 ").concat(2*i,",0 a ").concat(i,",").concat(i," 0 1,0 ").concat(2*-i,",0")),this},t.prototype.getMove=function(t,e){if(void 0===t&&(t=0),void 0===e&&(e=!0),t<this._path.length&&"M"===this._path[t]){var i={x:this._path[t+1],y:this._path[t+2]};return e&&this._path.splice(t,3),i}},t.prototype.getLine=function(t,e){if(void 0===t&&(t=0),void 0===e&&(e=!0),t<this._path.length&&"L"===this._path[t]){var i={x:this._path[t+1],y:this._path[t+2]};return e&&this._path.splice(t,3),i}},t.prototype.getQuad=function(t,e){if(void 0===t&&(t=0),void 0===e&&(e=!0),t<this._path.length&&"Q"===this._path[t]){var i={x1:this._path[t+1],y1:this._path[t+2],x2:this._path[t+3],y2:this._path[t+4]};return e&&this._path.splice(t,5),i}},t.prototype.getPoints=function(t,e,i){void 0===i&&(i=!0);for(var n=[];t<this._path.length&&n.length<e&&t<this._path.length&&("M"===this._path[t]||"L"===this._path[t]);)n.push({x:this._path[t+1],y:this._path[t+2]}),i&&this._path.splice(t,3);return n},t}(),XC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),Object.defineProperty(e.prototype,"high",{get:function(){return this.y},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"highValue",{get:function(){return this.yValue},enumerable:!1,configurable:!0}),e.prototype._assignTo=function(e){return Kx(t.prototype._assignTo.call(this,e),{low:this.low,close:this.close,open:this.open,high:this.high,lowValue:this.lowValue,closeValue:this.closeValue,openValue:this.openValue,highValue:this.highValue})},e.prototype._valuesChangd=function(e){return!!t.prototype._valuesChangd.call(this,e)||(this.low!==e.low||this.close!==e.close||this.open!==e.open)},e.prototype._readArray=function(t,e){if(e.length<=3)this.isNull=!0;else{var i=t.options,n=e.length>4?1:0;n>0&&(this.x=e[aS(i.xField,0)]),this.low=e[aS(i.lowField,0+n)],this.close=e[aS(i.closeField,1+n)],this.open=e[aS(i.openField,2+n)],this.y=e[uS(i.highField,t.options.yField,3+n)]}},e.prototype._readObject=function(e,i){t.prototype._readObject.call(this,e,i);var n=e.options;this.low=lS(i[n.lowField],i.low),this.open=lS(i[n.openField],i.open),this.close=lS(i[n.closeField],i.close),this.y=hS(i[n.highField],i.high,this.y)},e.prototype._readSingle=function(e){t.prototype._readSingle.call(this,e),this.low=this.close=this.open=this.y},e.prototype.parse=function(e){t.prototype.parse.call(this,e),this.isNull||(this.isNull=isNaN(this.lowValue)||isNaN(this.openValue)||isNaN(this.closeValue))},e.prototype.initValues=function(){this.lowValue=parseFloat(this.low),this.openValue=parseFloat(this.open),this.closeValue=parseFloat(this.close)},e.prototype.initPrev=function(t,e){e.yValue=e.lowValue=e.openValue=e.closeValue=this.lowValue},e.prototype.applyValueRate=function(t,e){this.lowValue=pS(t.lowValue,this.lowValue,e),this.openValue=pS(t.openValue,this.openValue,e),this.closeValue=pS(t.closeValue,this.closeValue,e)},e}(Sk),UC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.canCategorized=function(){return!0},e.prototype._createPoint=function(t){return new XC(t)},e.prototype._getBottomValue=function(t){return t.lowValue},e.prototype._createLegendMarker=function(t,e){var i=new YC;return i.rect(0,.2*e,e,.6*e),i.vline(e/2,0,e),new OP(t,Fk.LEGEND_MARKER,i.end())},e.type="candlestick",e.defaults=uV(Uk.defaults,{tooltipText:"<b>${name}</b><br>최저: <b>${lowValue}</b><br>시가: <b>${openValue}</b><br>종가: <b>${closeValue}</b><br>고가: <b>${highValue}</b>"}),e}(Uk),qC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.defaults=uV(Tk.defaults,{position:"inside"}),e}(Tk),ZC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),Object.defineProperty(e.prototype,"pointLabel",{get:function(){return this._pointLabel},enumerable:!1,configurable:!0}),e.prototype._createLabel=function(t){return new qC(t)},e.type=cC,e}(dC),KC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._canContain=function(t){return t instanceof ZC},e.type="circlebargroup",e.seriesType=cC,e}(gC),JC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e}(kk),QC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.defaults=uV(zk.defaults,{radius:4,shape:"circle"}),e}(zk),tE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._doInitChildren=function(e){t.prototype._doInitChildren.call(this,e),e.marker=(this._marker=new QC(this)).init(),e.lowMarker=(this._lowMarker=new QC(this)).init()},Object.defineProperty(e.prototype,"marker",{get:function(){return this._marker},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lowMarker",{get:function(){return this._lowMarker},enumerable:!1,configurable:!0}),e.prototype.canCategorized=function(){return!0},e.prototype._getBottomValue=function(t){return t.lowValue},e.prototype.pointLabelCount=function(){return 2},e.prototype.getLabelOff=function(e){return t.prototype.getLabelOff.call(this,e)+oS(0,this.marker.options.radius)},e.prototype._createPoint=function(t){return new JC(t)},e.prototype._doPrepareRender=function(){t.prototype._doPrepareRender.call(this);var e=this.marker.options,i=this.lowMarker.options,n=e.radius,r=e.shape,o=aS(i.radius,n),s=i.shape||r;this._runPoints.forEach((function(t){t.radius=n,t.shape=r,t.lowRadius=o,t.lowShape=s}))},e.type="dumbbell",e}(Uk),eE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e}(Sk),iE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.getSegmentSize=function(t){return IS(this._segmentSizeDim,t)},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),this._setDim(e,"segmentSize")},e.prototype.canCategorized=function(){return!0},e.prototype._createPoint=function(t){return new eE(t)},e.prototype._createLegendMarker=function(t,e){var i=new YC;return i.rect(0,0,e,.4*e),i.rect(0,.6*e,e,.4*e),new OP(t,Fk.LEGEND_MARKER,i.end())},e.type="equalizer",e.defaults=uV(Yk.defaults,{segmentSize:10,segmentGap:4,segmented:!1}),e}(Yk),nE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.isClusterable=function(){return!1},e.prototype.pointLabelCount=function(){return 2},e.prototype._createPoint=function(t){return new kk(t)},e.prototype.getBaseValue=function(t){return t===this._yAxisObj?0:NaN},e.prototype._createLegendMarker=function(t,e){var i=(new YC).vline(e/2,.1,.8*e).hline(.1,0,e).hline(.9*e,0,e),n=new OP(t,Fk.LEGEND_MARKER,i.end());return n.setStyle("strokeWidth","2px"),n},e.prototype._getBottomValue=function(t){return t.lowValue},e.type="errorbar",e.defaults=uV(Uk.defaults,{pointPadding:.3,tooltipText:"<b>${name}</b><br>${series}: <b>${lowValue}</b> ~ <b>${highValue}</b>"}),e}(Uk),rE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e}($k),oE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.getSize=function(t,e){return{width:oS(.1*t,IS(this._widthDim,t)),height:oS(.1*e,IS(this._heightDim,e))}},e.prototype.getNeckSize=function(t,e){return{width:fS.clamp(IS(this._neckWidthDim,t),.1*t,t),height:fS.clamp(IS(this._neckHeightDim,e),.1*e,e)}},e.prototype._createPoint=function(t){return new rE(t)},e.prototype._doApply=function(i){var n,r=this;t.prototype._doApply.call(this,i),(n=i.width)!==r._width&&(r._width=n,r._widthDim=FS(r._width,e.defaults.width)),function(t){t!==r._height&&(r._height=t,r._heightDim=FS(r._height,e.defaults.height))}(i.height),function(t){t!==r._neckWidth&&(r._neckWidth=t,r._neckWidthDim=FS(r._neckWidth,e.defaults.neckWidth))}(i.neckWidth),function(t){t!==r._neckHeight&&(r._neckHeight=t,r._neckHeightDim=FS(r._neckHeight,e.defaults.neckHeight))}(i.neckHeight)},e.type="funnel",e.defaults=uV(Hk.defaults,{width:"85%",height:"90%",neckWidth:"30%",neckHeight:"30%",legendByPoint:!1}),e}(Hk),sE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e}(Vk),aE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.getColor=function(t){},e.prototype.canMixWith=function(t){return!1},e.prototype.canCategorized=function(){return!0},e.prototype.hasZ=function(){return!0},e.prototype.defYAxisType=function(){return"category"},e.prototype._createPoint=function(t){return new sE(t)},e.prototype._doPrepareRender=function(){t.prototype._doPrepareRender.call(this);var e=Number.MAX_VALUE,i=Number.MIN_VALUE;this._runPoints.forEach((function(t){isNaN(t.zValue)||(e=rS(e,t.zValue),i=oS(i,t.zValue))})),this._heatMin=e,this._heatMax=i},e.type="heatmap",e.defaults=uV(Fk.defaults,{tooltipText:"x: <b>${x}</b><br>y: <b>${y}</b><br>heat: <b>${z}</b>"}),e}(jk),uE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.parse=function(e){t.prototype.parse.call(this,e);var i=this.source;this.min=i.min,this.max=i.max},e.prototype._assignTo=function(e){return Kx(t.prototype._assignTo.call(this,e),{min:this.min,max:this.max})},e}(Sk),lE={squreRoot:function(t){return Math.ceil(Math.sqrt(t))},struges:function(t){return Math.ceil(Math.log(t)*Math.LOG2E)},rice:function(t){return Math.ceil(2*Math.pow(t,1/3))}},hE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.getBinCount=function(t){var e=aS(this._op.binWidth,0);return e>0?t/e:aS(this._op.binsNumber,0)<1?lE[this._op.binsNumber||"squreRoot"](t):void 0},e.prototype._createPoint=function(t){return new uE(t)},e.prototype._doLoadPoints=function(e){function i(t){var e;return e=Wx(t)?t[aS(this.yField,0)]:Gx(t)?hS(t[this.yField],t.y,t.value):t,parseFloat(e)}for(var n=this._op,r=[],o=[],s=0;s<e.length;s++){var a=i(e[s]);isNaN(a)||o.push(a)}if(o.length>0){o=o.sort((function(t,e){return t-e})),n.minValue<o[0]&&o.unshift(n.minValue),n.maxValue>o[o.length-1]&&o.push(n.maxValue);var u=o.length,l=o[0],h=o[u-1],p=this.getBinCount(u),c=this._binInterval=(h-l)/p,f=0,_=l,d=_+c;for(s=0;s<p;s++){var y=0;if(s==p-1)y=u-f;else for(;f<u&&o[f]<d;)y++,f++;r.push({x:_,y:y,min:_,max:s===p-1?h:d}),d=(_=d)+c}}t.prototype._doLoadPoints.call(this,r)},e.prototype.collectValues=function(e,i){t.prototype.collectValues.call(this,e,i),i&&(e===this._xAxisObj?i.push(this._runPoints[this._runPoints.length-1].max):e===this._yAxisObj&&i.push(this._base))},e.prototype._doPrepareRender=function(){t.prototype._doPrepareRender.call(this),this._base=aS(this._op.baseValue,this._yAxisObj.getBaseValue())},e.prototype.getBaseValue=function(t){return t===this._yAxisObj?this._base:NaN},e.prototype.isBased=function(t){return t===this._yAxisObj},e.prototype._createLegendMarker=function(t,e){return bk.create(t,Fk.LEGEND_MARKER,0,0,e,e,2)},e.type="histogram",e.defaults=uV(Fk.defaults,{baseValue:0,binsNumber:"squreRoot"}),e}(jk),pE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.defaults=uV(zk.defaults,{radius:4,shape:"circle"}),e}(zk),cE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e}(Sk),fE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._doInitChildren=function(e){t.prototype._doInitChildren.call(this,e),e.marker=(this._marker=new pE(this)).init()},Object.defineProperty(e.prototype,"marker",{get:function(){return this._marker},enumerable:!1,configurable:!0}),e.prototype.canCategorized=function(){return!0},e.prototype.getLabelOff=function(e){return t.prototype.getLabelOff.call(this,e)+this.marker.options.radius},e.prototype._createPoint=function(t){return new cE(t)},e.prototype._doPrepareRender=function(){t.prototype._doPrepareRender.call(this);var e=this.marker.options.radius,i=this.marker.options.shape;this._runPoints.forEach((function(t){t.radius=e,t.shape=i}))},e.type="lollipop",e}(Yk),_E=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e}(XC),dE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._createPoint=function(t){return new _E(t)},e.prototype._createLegendMarker=function(t,e){var i=new YC;i.vline(e/2,0,e),i.hline(.4*e,e/2,e),i.hline(.7*e,0,e/2);var n=new OP(t,Fk.LEGEND_MARKER,i.end());return n.setStyle("strokeWidth","2px"),n},e.type="ohlc",e}(UC),yE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e}(VC),gE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.getLineType=function(){return this._op.curved?"spline":"default"},e.prototype._createPoint=function(t){return new yE(t)},e.prototype._referOtherSeries=function(t){if(t.options.name===this._op.source||t.index===this._op.source)return t.referBy(this),!0},e.prototype.reference=function(t,e){if(!e._isX){var i=this;n=t._runPoints,r=[],o=n.reduce((function(t,e){return t+aS(e.yValue,0)}),0),s=0,n.forEach((function(t){t.isNull||r.push({x:t.xValue,y:s+=100*t.yValue/o})})),i._doLoadPoints(r),i._runPoints=i._points.getPoints(i._xAxisObj,i._yAxisObj),this.collectValues(this._xAxisObj,this._xAxisObj._values),this.collectValues(this._yAxisObj,this._yAxisObj._values)}var n,r,o,s},e.type="pareto",e.defaults=uV(CC.defaults,{curved:!1}),e}(CC),vE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.sliced=!1,e.startAngle=0,e.angle=0,e}return Dx(e,t),Object.defineProperty(e.prototype,"thickness",{get:function(){return this._thickness},set:function(t){t!==this._thickness&&(this._thickness=t,this._thickDim=DS(t,!0))},enumerable:!1,configurable:!0}),e.prototype.parse=function(e){t.prototype.parse.call(this,e),this.sliced=this.source.sliced,this.isNull=this.isNull||this.y<0},e.prototype._assignTo=function(e){return Kx(t.prototype._assignTo.call(this,e),{sliced:this.sliced})},e}($k),mE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.getDefaultIconPos=function(){return"left"},e}(fV),bE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.defaults=uV(Tk.defaults,{visible:!0}),e}(Tk);!function(t){function e(){return null!==t&&t.apply(this,arguments)||this}Dx(e,t)}(hV);var wE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._doInitChildren=function(e){t.prototype._doInitChildren.call(this,e),e.innerText=(this._innerText=new mE(this.chart)).init()},Object.defineProperty(e.prototype,"innerText",{get:function(){return this._innerText},enumerable:!1,configurable:!0}),e.prototype.followPointer=function(){return!0},e.prototype.hasInner=function(){return this._innerRadiusDim&&this._innerRadiusDim.size>0},e.prototype.getInnerRadius=function(t){var e=this._innerRadiusDim;return e?e.size/(e.fixed?t:100):0},e.prototype.getSliceOffset=function(t){return!this._group&&this._sliceOffsetDim?IS(this._sliceOffsetDim,t):0},Object.defineProperty(e.prototype,"pointLabel",{get:function(){return this._pointLabel},enumerable:!1,configurable:!0}),e.prototype._createLabel=function(t){return new bE(t)},e.prototype._createPoint=function(t){return new vE(t)},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),this._setDims(e,"innerRadius","sliceOffset")},e.prototype._doPrepareRender=function(){t.prototype._doPrepareRender.call(this);var e=aS(this._op.startAngle%360,0),i=oS(0,rS(360,aS(this._op.totalAngle,360)));this._startRad=PS+VS*e,this._totalRad=VS*i,this._groupPos=NaN},e.type="pie",e.defaults=uV(Gk.defaults,{groupSize:1,labelDistance:25,sliceOffset:"7%",autoSlice:!0,sliceDuration:300,borderRadius:0}),e}(Gk),xE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.getPolarSize=function(t,e){return IS(this._polarDim,rS(t,e))},e.prototype.getInnerRadius=function(t){var e=this._innerDim;return e?e.size/(e.fixed?t:100):0},e.prototype._doApply=function(e){var i,n=this;t.prototype._doApply.call(this,e),(i=e.polarSize)!==n._polarSize&&(n._polarSize=i,n._polarDim=DS(i,!0)||{size:80,fixed:!1}),function(t){t!==n._innerSize&&(n._innerSize=t,n._innerDim=DS(t,!0))}(e.innerSize)},e.prototype.needAxes=function(){return!1},e.prototype._canContain=function(t){return t instanceof wE},e.prototype._doPrepareSeries=function(t){var e=t.map((function(t){return t.options.groupSize})).reduce((function(t,e){return t+aS(e,1)}),0),i=0;t.forEach((function(t){t._groupPos=i,i+=t._groupSize=aS(t.options.groupSize,1)/e}))},e.type="piegroup",e.seriesType="pie",e.defaults=uV(qk.defaults,{polarSize:"80%",innerSize:0}),e}(qk),SE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e}(Sk),PE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._createPoint=function(t){return new SE(t)},e.prototype._createLegendMarker=function(t,e){return new mC(t,e)},e.prototype._colorByPoint=function(){return this._op.colorByPoint},e.prototype.setShape=function(t){this._defShape=t},e.prototype.getShape=function(t){return this._op.shape||this._defShape},e.prototype.hasShape=function(){return!0},e.prototype.legendMarker=function(e,i){var n=t.prototype.legendMarker.call(this,e,i);return n.setShape(this.getShape(null),rS(i,2*this._op.radius)),n},e.type="scatter",e.defaults=uV(Jk.defaults,{jitterX:0,jitterY:0,radius:5,hoverScale:1.8}),e}(Jk),VE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._assignTo=function(e){return Kx(t.prototype._assignTo.call(this,e),{id:this.id,group:this.group})},e.prototype._readArray=function(t,e){if(e.length<=2)this.isNull=!0;else{var i=e.length>3?1:0;i>0&&(this.x=e[aS(t.options.xField,0)]),this.y=e[aS(t.options.yField,0+i)],this.id=NS(e[aS(t.options.idField,1+i)]),this.group=NS(e[aS(t.options.groupField,2+i)])}},e.prototype._readObject=function(e,i){t.prototype._readObject.call(this,e,i),this.id=NS(i[e.options.idField]),this.group=NS(i[e.options.groupField])},e}(Sk),kE=function(t){function e(e){var i=t.call(this,e.chart)||this;return i.level=e,i.floating=!0,i}return Dx(e,t),e.defaults=uV(hV.defaults,{visible:!1}),e}(hV);!function(t){function e(e,i){var n=t.call(this,e.chart)||this;return n.series=e,n.level=i,n.head=new kE(n),n}Dx(e,t)}(hV);var AE,CE=function(){function t(t){this.point=t}return t.prototype.level=function(){return this.parent?this.parent.level()+1:0},t.prototype.getArea=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.setArea=function(t,e,i,n){this.x=t,this.y=e,this.width=i,this.height=n},t.prototype.getTotal=function(){return this.children.reduce((function(t,e){return t+e.value}),0)},t}(),EE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._map={},e._levels=1,e}return Dx(e,t),e.prototype.buildMap=function(t,e){function i(t){if(t.children){var e=0;t.children.forEach((function(t,n){i(t),e+=t.value})),t.value=e,t.children=t.children.sort((function(t,e){return e.value-t.value})),t.children.forEach((function(t,e){t.index=e})),o=oS(o,t.level()+1+1)}else r.push(t),t.value=t.point?t.point.yValue:0}var n="vertical"===this._op.startDir||e>t,r=this._leafs=[],o=1;return this._roots.forEach((function(t,e){i(t)})),this._roots=this._roots.sort((function(t,e){return e.value-t.value})),this._roots.forEach((function(t,e){t.index=e})),(this[this._op.algorithm]||this.squarify).call(this,this._roots,t,e,n),this._levels=o,{roots:this._roots,leafs:this._leafs}},e.prototype.needAxes=function(){return!1},e.prototype.canMixWith=function(t){return!1},e.prototype._createPoint=function(t){return new VE(t)},e.prototype._getLabeledPoints=function(){return this._leafs.map((function(t){return t.point}))},e.prototype._doPrepareRender=function(){t.prototype._doPrepareRender.call(this),this._roots=this.$_buildTree(this._runPoints)},e.prototype.$_buildTree=function(t){var e=[],i=[],n=this._map;t.forEach((function(t){if(t.id||!t.isNull){var r=new CE(t);t.id&&(n[t.id]=r),t.group?i.push(r):e.push(r)}}));for(var r=i.length-1;r>=0;r--){var o=i[r],s=n[o.point.group];(o.parent=s)?(s.children||(s.children=[]),s.children.push(o),o.children&&i.splice(r,1)):(e.push(o),i.splice(r,1))}return e},e.prototype.$_squarifyRow=function(t,e,i,n){var r=e.width*e.height,o=e.width,s=e.height,a=e.x,u=e.y,l=Number.MAX_VALUE,h=0,p=[];if(2===t.length)return(1===i?o>s:o>=s)?t.forEach((function(t){t.setArea(a,u,o*t.value/n,s),a+=t.width})):t.forEach((function(t){t.setArea(a,u,o,s*t.value/n),u+=t.height})),0;for(var c=function(){var c,f,_,d,y=void 0;return c=t.shift(),y=(h+=c.value)*r/n,1===i?(f=y/s,_=s*c.value/h):(_=y/o,f=o*c.value/h),d=oS(f/_,_/f),t.length>0&&d>l?(t.unshift(c),h-=c.value,y=r*h/n,1===i?f=y/(_=s):_=y/(f=o),p.forEach((function(t){1===i?(t.setArea(a,u,f,s*t.value/h),u+=t.height):(t.setArea(a,u,o*t.value/h,_),a+=t.width)})),1===i?(e.x+=f,e.width-=f):(e.y+=_,e.height-=_),{value:n-h}):0===t.length?(y=r*h/n,1===i?f=y/(_=s):_=y/(f=o),p.push(c),p.forEach((function(t){1===i?(t.setArea(a,u,f,s*t.value/h),u+=t.height):(t.setArea(a,u,o*t.value/h,_),a+=t.width)})),{value:0}):(l=d,void p.push(c))};t.length>0;){var f=c();if("object"==typeof f)return f.value}},e.prototype.$_squarify=function(t,e,i,n){var r=this,o=t.slice(0),s=i?1:0,a=t.reduce((function(t,e){return t+e.value}),0);do{a=this.$_squarifyRow(o,e,s,a),n&&(s=1-s)}while(a>0);t.forEach((function(t){t.children&&r.$_squarify(t.children,t.getArea(),!i,!0)}))},e.prototype.squarify=function(t,e,i,n){this.$_squarify(t,{x:0,y:0,width:e,height:i},n,!0)},e.prototype.strip=function(t,e,i,n){this.$_squarify(t,{x:0,y:0,width:e,height:i},n,!1)},e.prototype.$_sliceNext=function(t,e,i,n){if(t.x=e.x,t.y=e.y,1===i){var r=e.height*t.value/n;t.width=e.width,t.height=r,e.y+=r,e.height-=r}else{var o=e.width*t.value/n;t.height=e.height,t.width=o,e.x+=o,e.width-=o}t.children&&this.$_slice(t.children,t.getArea(),0===i,!0)},e.prototype.$_slice=function(t,e,i,n){var r=this,o=t.reduce((function(t,e){return t+e.value}),0),s=i?1:0;t.forEach((function(t){r.$_sliceNext(t,e,s,o),o-=t.value,n&&(s=1-s)}))},e.prototype.slice=function(t,e,i,n){this.$_slice(t,{x:0,y:0,width:e,height:i},n,!1)},e.prototype.sliceDice=function(t,e,i,n){this.$_slice(t,{x:0,y:0,width:e,height:i},n,!0)},e.type="treemap",e.defaults=uV(hV.defaults,{idField:"id",groupField:"group",algorithm:"squarify",alternate:!0,groupMode:!0}),e}(Fk),LE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._assignTo=function(e){return Kx(t.prototype._assignTo.call(this,e),{length:this.length,angle:this.angle,lengthValue:this.lengthValue,angleValue:this.angleValue})},e.prototype._valuesChangd=function(e){return this.length!==e.length||this.angle!==e.angle||t.prototype._valuesChangd.call(this,e)},e.prototype._readArray=function(t,e){if(e.length<=2)this.isNull=!0;else{var i=e.length>3?1:0;i>0&&(this.x=e[aS(t.options.xField,0)]),this.y=e[aS(t.options.yField,0+i)],this.length=e[aS(t.options.lengthField,1+i)],this.angle=e[aS(t.options.angleField,2+i)]}},e.prototype._readObject=function(e,i){t.prototype._readObject.call(this,e,i),this.length=lS(i[e.options.lengthField],i.length),this.angle=lS(i[e.options.angleField],i.angle),this.y=hS(e._yFielder(i),i.y,i.value)},e.prototype._readSingle=function(e){t.prototype._readSingle.call(this,e),this.length=this.angle=this.y},e.prototype.parse=function(e){t.prototype.parse.call(this,e),this.isNull||(this.isNull=isNaN(this.lengthValue)||isNaN(this.angleValue))},e.prototype.initValues=function(){this.lengthValue=parseFloat(this.length),this.angleValue=parseFloat(this.angle)},e.prototype.initPrev=function(t,e){e.yValue=this.yValue,e.lengthValue=.001},e.prototype.applyValueRate=function(t,e){this.lengthValue=pS(t.lengthValue,this.lengthValue,e)},e}(Sk),NE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._createPoint=function(t){return new LE(t)},e.prototype._doPrepareRender=function(){t.prototype._doPrepareRender.call(this);var e=this._runPoints;if(e.length>0){var i=this._op.maxLength,n=this._op.origin,r=e.map((function(t){return t.length})).reduce((function(t,e){return oS(t,e)}));e.forEach((function(t){var e=t.length/r;switch(t._len=e*i,n){case"start":t._off=-t._len/2;break;case"end":t._off=t._len/2;break;default:t._off=0}}))}},e.prototype._createLegendMarker=function(t,e){for(var i=.3,n=.7*e,r=[0,-i*e,-.2*e,-i*e,0,-.6*e,.2*e,-i*e,0,-i*e,0,.6*e],o=["M",r[0],r[1]+n],s=2;s<r.length;s+=2)o.push("L",r[s],r[s+1]+n);var a=new OP(t,Fk.LEGEND_MARKER,o);return a.setStyle("strokeWidth","2px"),a.rotation=30,a},e.type="vector",e.defaults=uV(Fk.defaults,{origin:"center",maxLength:20,startAngle:0,arrowHead:"close"}),e}(jk),ME=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.low=0,e}return Dx(e,t),e.prototype.parse=function(e){t.prototype.parse.call(this,e),this._isSum=!0===this.source.isSum,this._intermediate=this.source.intermediate,this._isSum&&(this.y=0),this.save=this.y},e}(Sk),TE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.canCategorized=function(){return!0},e.prototype._createPoint=function(t){return new ME(t)},e.prototype._createLegendMarker=function(t,e){return bk.create(t,Fk.LEGEND_MARKER,0,0,e,e,2)},e.prototype._doPrepareRender=function(){t.prototype._doPrepareRender.call(this);var e=this._runPoints;if(!(e.length<1))for(var i,n,r=e[0],o=r.y=r._isSum?0:r.y,s=o,a=o,u=o,l=0,h=1,p=e.length;h<p;h++){if((r=e[h])._isSum){var c=e[h-1],f=!0===r._intermediate||h<p-1&&!1!==r._intermediate,_=r.save=r.y=f?u:a;r.yGroup=r.yValue=r.y,f?u<0?n=(l=c.low)-_:l=(n=c.y)-_:n=(l=e[0].low)+_,u=0}else(i=r.y)<0?l=s<0?(n=o+s)+i:(n=o)+i:n=(l=o)+i,u+=i,a+=i;s=r.y,r.y=o=n,r.low=l}},e.prototype._getBottomValue=function(t){return t.y=t.save,NaN},e.type="waterfall",e}(Xk),OE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.isFloating=function(){return this._op.floating||"middle"===this._op.verticalAlign&&"center"===this._op.align},e.defaults=uV(hV.defaults,{text:"RealChart v1.0",url:"https://realchart.co.kr",floating:!1,align:"right",verticalAlign:"bottom",offsetX:2,offsetY:1,gap:4}),e}(hV),RE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.getHintDistance=function(t){return isNaN(this._op.hintDistance)?this.chart._tooltip.visible&&this.chart._tooltip.isFollowPointer(t)?Number.MAX_SAFE_INTEGER:30:this._op.hintDistance},e.prototype.getScope=function(t,e){return"auto"!==lS(this._op.scope,"auto")?this._op.scope:this.chart._chartOptions.options.seriesHovering?"point":t._xAxisObj.crosshair.visible?"axis":t.isMarker()&&t._group?"group":"point"},e.defaults=uV(hV.defaults,{scope:"auto"}),e}(hV),BE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._doInitChildren=function(t){t.credits=(this._credits=new OE(null)).init(),t.pointHovering=(this._pointHovering=new RE(this.chart)).init()},Object.defineProperty(e.prototype,"credits",{get:function(){return this._credits},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pointHovering",{get:function(){return this._pointHovering},enumerable:!1,configurable:!0}),e.prototype.getXStart=function(t){return t instanceof SA&&isNaN(this._op.xStart)?1:this._op.xStart||0},e.defaults=uV(hV.defaults,{paletteMode:"normal",animatable:!0,xStep:1,axisGap:8,seriesHovering:!1,timeOffset:(new Date).getTimezoneOffset(),startOfWeek:0}),e}(hV);!function(t){t.LEFT="left",t.TOP="top",t.BOTTOM="bottom",t.RIGHT="right",t.CENTER="center",t.MIDDLE="middle"}(AE||(AE={}));var DE=function(t){function e(e){var i=t.call(this)||this;return i._data=new JS,i._params={},i._seriesIndex=0,i._dataDirty=!1,i._loadAnimatable=!0,i._assets=new sV,(i._chartOptions=new BE(i)).init(),(i._title=new uA(i)).init(),(i._subtitle=new lA(i)).init(),(i._legend=new ck(i)).init(),(i._tooltip=new hA(i)).init(),(i._split=new aA(i)).init(),(i._body=new lk(i)).init(),(i._navigator=new rA(i)).init(),(i._exporter=new hk(i)).init(),i._series=new Ik(i),i._xAxes=new BV(i,!0),i._yAxes=new BV(i,!1),i._xPaneAxes=new IV(i),i._yPaneAxes=new jV(i),i._gauges=new UV(i),i._annotations=new gV(i),Gx(e)?i._load(e):i._initOptions(),i}return Dx(e,t),e.prototype._initOptions=function(){return this.options=Object.assign({},e.defaults)},e.prototype._createChart=function(t){return new e(t)},e.prototype.animatable=function(){return!1!==this._chartOptions.options.animatable},e.prototype.loadAnimatable=function(){return this._loadAnimatable},e.prototype.getTooltipContext=function(t,e,i){var n=function(){function t(t){this.axis=t,this.series=t.getVisibleSeries()}return t.prototype.getTooltipText=function(t,e){return qk.collectTooltipText(this.axis.options,this.series,e)},t.prototype.getTooltipParam=function(t,e,i){return qk.inflateTooltipParam(this.series,t,e,i)},t}();switch("point"!==t&&"axis"!==t&&"group"!==t&&(t=this._chartOptions.pointHovering.getScope(e,i)),t){case"axis":return new n(e._xAxisObj);case"group":return e._group;default:return e}},Object.defineProperty(e.prototype,"chart",{get:function(){return this},enumerable:!1,configurable:!0}),e.prototype.anchorByName=function(t){},Object.defineProperty(e.prototype,"type",{get:function(){return this.options.type},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"gaugeType",{get:function(){return this.options.gaugeType},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"polar",{get:function(){return this.options.polar},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"inverted",{get:function(){return this.options.inverted},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"timeOffset",{get:function(){return this.options.options.timeOffset},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"startOfWeek",{get:function(){return this.options.options.startOfWeek},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"first",{get:function(){return this._series.first},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"firstSeries",{get:function(){return this._series.firstSeries},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"firstGauge",{get:function(){return this._gauges.firstGauge},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"xAxis",{get:function(){return this._xAxes.first},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"yAxis",{get:function(){return this._yAxes.first},enumerable:!1,configurable:!0}),e.prototype._needAxes=function(){return this._series.needAxes()},e.prototype._getSeries=function(){return this._series},e.prototype._getGauges=function(){return this._gauges},e.prototype._getXAxes=function(){return this._xAxes},e.prototype._getYAxes=function(){return this._yAxes},e.prototype.getAnnotations=function(){return this._annotations.getVisibles()},e.prototype.isGauge=function(){return this._gaugeOnly},e.prototype.isPolar=function(){return this._polar&&this._series.seriesCount()>0},e.prototype.isWidget=function(){return this._series.isWidget()},e.prototype.isInverted=function(){return this._inverted},e.prototype.isSplitted=function(){return this._splitted},e.prototype.isEmpty=function(t){return this._series.isEmpty(t)&&this._gauges.isEmpty(t)},e.prototype.seriesByName=function(t){return this._series.getSeries(t)},e.prototype.seriesAt=function(t){return this._series.get(t)},e.prototype.seriesByPoint=function(t){return this._series.seriesByPoint(t)},e.prototype.gaugeByName=function(t){return this._gauges.getGauge(t)},e.prototype.gaugeAt=function(t){return this._gauges.get(t)},e.prototype.annotationByName=function(t){return this._annotations.getAnnotation(t)||(this._splitted?this._split.getAnnotation(t):this._body.getAnnotation(t))},e.prototype.axisByName=function(t){return this._xAxes.get(t)||this._yAxes.get(t)},e.prototype.containsAxis=function(t){return this._xAxes.contains(t)||this._yAxes.contains(t)},e.prototype.getXAxis=function(t){return this._xAxes.get(t)},e.prototype.getYAxis=function(t){return this._yAxes.get(t)},e.prototype.getAxes=function(t,e){var i,n=this._xAxes.items(),r=this._yAxes.items();if(this.isInverted())switch(t){case AE.LEFT:i=n.filter((function(t){return!t._isOpposite&&!t._isBetween}));break;case AE.RIGHT:i=n.filter((function(t){return t._isOpposite}));break;case AE.BOTTOM:i=r.filter((function(t){return!t._isOpposite&&!t._isBetween}));break;case AE.TOP:i=r.filter((function(t){return t._isOpposite}));break;case AE.CENTER:i=n.filter((function(t){return t._isBetween}))}else switch(t){case AE.LEFT:i=r.filter((function(t){return!t._isOpposite&&!t._isBetween}));break;case AE.RIGHT:i=r.filter((function(t){return t._isOpposite}));break;case AE.BOTTOM:i=n.filter((function(t){return!t._isOpposite&&!t._isBetween}));break;case AE.TOP:i=n.filter((function(t){return t._isOpposite}));break;case AE.MIDDLE:i=n.filter((function(t){return t._isBetween}))}return i?e?i.filter((function(t){return t.visible})):i:[]},e.prototype._getLegendSources=function(){return this._series.getLegendSources()},e.prototype._setProperties=function(t,i){var n=this.options;for(var r in e.defaults)t.hasOwnProperty(r)&&(n[r]=t[r]);n.type=n.type||"bar",n.gaugeType=n.gaugeType||"circle",this._polar=!0===this.polar},e.prototype.loadBase=function(t,e,i){var n,r=this._bases[e];return Gx(r.base)&&lV(n={},r.base),Gx(r[i])&&(n||(n={}),lV(n,r[i])),n?lV(n,t):t},e.prototype._load=function(t){var e=this._initOptions();return this.$_loadTemplates(t.templates),this._setProperties(t),this._assets.load(lS(t.asset,t.assets)),e.options=this._chartOptions._load(t.options),e.title=this._title._load(t.title),e.subtitle=this._subtitle._load(t.subtitle),e.legend=this._legend._load(t.legend),e.tooltip=this._tooltip._load(t.tooltip),this._split._load(t.split),this._seriesIndex=0,this._series.load(t.series),this._gauges.load(lS(t.gauge,t.gauges)),this._gaugeOnly=0===this._series.count&&!this._gauges.isEmpty(!1),this._gaugeOnly||(this._xAxes.load(hS(t.xAxis,t.xAxes,{})),this._yAxes.load(hS(t.yAxis,t.yAxes,{}))),e.body=this._body._load(t.body||t.plot),this._annotations.load(lS(t.annotation,t.annotations),!1),e.seriesNavigator=this._navigator._load(t.seriesNavigator),e.exporting=this._exporter._load(t.exporting),this},e.prototype.update=function(t,e){for(var i in this._setProperties(t,!1),this){var n=this[i];(n instanceof hV||n instanceof pV||n instanceof sV)&&n.updateOptions(t[i],!1)}e&&this._modelChanged(null)},e.prototype.export=function(t){this._fireEvent("onExportRequest",t)},e.prototype._connectSeries=function(t,e){return e?this._xAxes.connect(t):this._yAxes.connect(t)},e.prototype._dataChanged=function(){this._dataDirty=!0},e.prototype._isDataChanged=function(){return this._dataDirty},e.prototype._prepareRender=function(){var t=this,e=this._xAxes,i=this._yAxes,n=this._split;[e,i].forEach((function(e){e.count<1&&!t._gaugeOnly&&e.load({})})),this._inverted=!this._polar&&this.inverted,this._splitted=n.visible,e.disconnect(),i.disconnect(),this._series.prepareRender(),e.prepare(),i.prepare(),e.collectValues(),i.collectValues(),e.collectReferentsValues(),i.collectReferentsValues(),i.collectRanges(),e.prepareRender(),i.prepareRender(),this._splitted&&!this._gaugeOnly&&(n._prepareRender(),this._xPaneAxes._prepare(e,n._vrows,n._vcols),this._yPaneAxes._prepare(i,n._vrows,n._vcols)),this._series.prepareAfter(),this._legend._prepareRender(),this._gauges.prepareRender(),this._body._prepareRender(),this._annotations.prepareRender(),this._navigator.visible&&this._navigator._prepareRender()},e.prototype.afterRender=function(){this._dataDirty=!1,this._xAxes.afterRender(),this._yAxes.afterRender()},e.prototype.layoutAxes=function(t,e,i,n){this._xAxes._buildTicks(i?e:t),this._yAxes._buildTicks(i?t:e),this.$_calcAxesPoints(t,e,i,0)},e.prototype.$_calcAxesPoints=function(t,e,i,n){var r=i?e:t;this._xAxes.forEach((function(t){t._calcPoints(r,n)})),r=i?t:e,this._yAxes.forEach((function(t){t._calcPoints(r,n)}))},e.prototype.axesLayouted=function(t,e,i){this.$_calcAxesPoints(t,e,i,101)},e.prototype.getParam=function(t,e){return this._params[e]},e.prototype.setParam=function(t,e,i){return i&&e!==this._params[t]?(this._params[t]=e,this._modelChanged(null)):this._params[t]=e,this},e.prototype.addSeries=function(t,e){var i=this._series.add(t);return i&&(this._dataChanged(),this._modelChanged(i)),i},e.prototype.removeSeries=function(t,e){var i=this._series.remove(t);if(i)return this._dataChanged(),this._modelChanged(null),i},e.prototype.render=function(){this._fireEvent("onRefreshRequest")},e.prototype.$_loadTemplates=function(t){var e=this,i=this._bases={xAxis:{},yAxis:{},series:{},gauge:{},annotation:{}};if(Gx(t)){var n=this._templates={};for(var r in t){var o=t[r];Gx(o)&&(n[r]=Kx({},o))}["@xAxis","@yAxis","@series","@gauge","@annotation"].forEach((function(e){t.hasOwnProperty(e)&&Gx(t[e])&&(i[e.substring(1)]=t[e])})),this.assignTemplates=function(t){var i=t.template;if(Xx(i)){var n=e._templates[i];if(n)return lV(lV({},n),t)}else Wx(i)&&i.forEach((function(i){var n=e._templates[i];return n?lV(lV({},n),t):n}));return t}}else this.assignTemplates=void 0},e.prototype._getGroupType=function(t){return Xx(t)&&Mk[t.toLowerCase()]},e.prototype._getSeriesType=function(t){return Xx(t)&&Nk[t.toLowerCase()]},e.prototype._getAxisType=function(t){return Xx(t)&&bV[t.toLowerCase()]},e.prototype._getGaugeType=function(t){return Xx(t)&&$V[t.toLowerCase()]},e.prototype._getGaugeGroupType=function(t){return Xx(t)&&HV[t.toLowerCase()]},e.prototype._getAnnotationType=function(t){return Xx(t)&&dV[t.toLowerCase()]},e.prototype.getAxesGap=function(){return this._chartOptions.options.axisGap||0},e.prototype._modelChanged=function(t,e){this._fireEvent("onModelChanged",t,e)},e.prototype._visibleChanged=function(t){this._fireEvent("onVisibleChanged",t)},e.prototype._pointVisibleChanged=function(t,e){this._fireEvent("onPointVisibleChanged",t,e)},e.defaults={type:"bar",gaugeType:"circle",polar:!1,inverted:!1},e}(bS);RV.register(Lk,wA,SA,LA),Fk.register(TC,RC,fC,yC,IC,zC,HC,UC,ZC,tE,iE,nE,oE,aE,hE,LC,NC,fE,dE,gE,wE,PE,EE,NE,TE),qk.register(DC,vC,GC,KC,BC,xE),qk.registerSeries(DC,vC,KC,BC,xE),YV.register(WA,QA,lC,DA),XV.register(YA,tC,zA),yV.register(pA,cA,fA);var FE="$ctrl",IE=function(){function t(t,e){this._loaded=!1,this._modelCallback=e,this._obj=new DE(t),null==e||e(this._obj,null)}return t.prototype.destroy=function(){var t;this.$_destroyed||this.$_destroying||(this.$_destroying=!0,this[FE]=null===(t=this[FE])||void 0===t?void 0:t.destroy(),this._obj=null,this.$_destroyed=!0)},Object.defineProperty(t.prototype,"options",{get:function(){return this._obj.options},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"data",{get:function(){return this._obj._data},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"type",{get:function(){return this._obj.type},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"gaugeType",{get:function(){return this._obj.gaugeType},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inverted",{get:function(){return this._obj.inverted},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"polar",{get:function(){return this._obj.polar},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"chartOptions",{get:function(){return this._obj._chartOptions},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this._obj._title},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"subtitle",{get:function(){return this._obj._subtitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"first",{get:function(){return this._obj.first},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"series",{get:function(){return this._obj.firstSeries},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"gauge",{get:function(){return this._obj.firstGauge},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"legend",{get:function(){return this._obj._legend},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tooltip",{get:function(){return this._obj._tooltip},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"xAxis",{get:function(){return this._obj.xAxis},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"yAxis",{get:function(){return this._obj.yAxis},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"body",{get:function(){return this._obj._body},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"split",{get:function(){return this._obj._split},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"seriesNavigator",{get:function(){return this._obj._navigator},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"exporter",{get:function(){return this._obj._exporter},enumerable:!1,configurable:!0}),t.prototype.getXAxis=function(t){return this._obj.getXAxis(t)},t.prototype.getYAxis=function(t){return this._obj.getYAxis(t)},t.prototype.getSeries=function(t){return Xx(t)?this._obj.seriesByName(t):this._obj.seriesAt(t)},t.prototype.getGauge=function(t){return this._obj.gaugeAt(t)},t.prototype.getAnnotation=function(t){return this._obj.annotationByName(t)},t.prototype.load=function(t,e,i){var n;if(void 0===e&&(e=!1),Gx(t)){var r="load chart";fS.LOGGING&&console.time(r);var o=this._obj,s=o;this._loaded?(o.destroy(),s=this._obj=new DE):(this._loaded=!0,o=null),s._load(t),s._loadAnimatable=e,this._loadCallback=i,fS.log("chart-items:",aV),fS.LOGGING&&console.timeEnd(r),null===(n=this._modelCallback)||void 0===n||n.call(this,s,o)}return this},t.prototype.updateOptions=function(t,e){void 0===e&&(e=!0),this._obj.update(t,e)},t.prototype.export=function(t){this._obj.export(t)},t.prototype.render=function(){this._obj.render()},t.prototype.setParam=function(t,e,i){this._obj.setParam(t,e,i)},t.prototype.addSeries=function(t,e){return void 0===e&&(e=!0),this._obj.addSeries(t,e)},t.prototype.removeSeries=function(t,e){void 0===e&&(e=!0),this._obj.removeSeries(t,e)},t}(),jE=function(){function t(t,e){this._obj=new KS(t||{},e)}return Object.defineProperty(t.prototype,"rowCount",{get:function(){return this._obj.rowCount},enumerable:!1,configurable:!0}),t.prototype.getValue=function(t,e){return this._obj.getValue(t,e)},t.prototype.setValue=function(t,e,i){this._obj.setValue(t,e,i)},t.prototype.getValues=function(t,e,i){return void 0===e&&(e=0),void 0===i&&(i=-1),this._obj.getValues(t,e,i)},t.prototype.getRow=function(t){return this._obj.getRow(t)},t.prototype.addRow=function(t,e){void 0===e&&(e=-1),this._obj.addRow(t,e)},t.prototype.deleteRow=function(t){void 0===t&&(t=-1),this._obj.deleteRow(t)},t}(),zE=function(t){function e(e,i,n,r){void 0===r&&(r=0);var o=t.call(this)||this;return o.removeDelay=0,o._pool=[],o._views=[],o._removes=[],o._owner=e,o._creator=i,o._styleName=n,o.removeDelay=r,o}return Dx(e,t),e.prototype._doDestroy=function(){this.freeAll(),this._owner=null,this._creator=null,t.prototype._doDestroy.call(this)},Object.defineProperty(e.prototype,"isEmpty",{get:function(){return 0===this._views.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"count",{get:function(){return this._views.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"first",{get:function(){return this._views[0]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"last",{get:function(){return this._views[this._views.length-1]},enumerable:!1,configurable:!0}),e.prototype.get=function(t){return this._views[t]},e.prototype.getAll=function(){return this._views.slice()},e.prototype.pull=function(t){var e=this._views[t];return e||(e=this._pool.pop()||new this._creator(this._owner.doc,this._styleName),this._owner.add(e),this._views.push(e)),e},e.prototype._internalItems=function(){return this._views},e.prototype.elementOf=function(t){var e,i;try{for(var n=Ix(this._views),r=n.next();!r.done;r=n.next()){var o=r.value;if(o.dom.contains(t))return o}}catch(t){e={error:t}}finally{try{r&&!r.done&&(i=n.return)&&i.call(n)}finally{if(e)throw e.error}}},e.prototype.find=function(t){return this._views.find(t)},e.prototype.setRemoveDelay=function(t){return this.removeDelay=t,this},e.prototype.removeLater=function(t,e){var i=this,n=this._views.indexOf(t);n>=0&&(t.removeLater(e,(function(t){i._pool.push(t)})),this._views.splice(n,1))},e.prototype.$_create=function(t,e,i){var n=this._pool.pop();return n||(n=new this._creator(t,this._styleName)),n},e.prototype.prepare=function(t,e,i){for(var n=this._owner.doc,r=this._owner,o=this._pool,s=this._views;s.length>t;)o.push(s.pop().remove());for(;s.length<t;){var a=this.$_create(n);s.push(a),null==i||i(a,s.length-1,t),r.add(a)}return e&&this.forEach(e),this},e.prototype.borrow=function(){var t=this._pool.pop()||new this._creator(this._owner.doc,this._styleName);return this._owner.add(t),t},e.prototype.free=function(t,e){if(void 0===e&&(e=0),t){e>0?t.removeLater(e):t.remove(),this._pool.push(t);var i=this._views.indexOf(t);i>=0&&this._views.splice(i,1)}},e.prototype.freeAll=function(t,e){void 0===e&&(e=0);for(var i=(t=t||this._views).length-1;i>=0;i--)this.free(t[i],e)},e.prototype.freeHiddens=function(){for(var t=this._views,e=t.length-1;e>=0;e--)!t[e].visible&&this.free(t[e],0)},e.prototype.freeFrom=function(t){for(var e=this._views,i=e.length-1;i>=t;i--)this.free(e[i],0)},e.prototype.forEach=function(t){for(var e=this._views,i=0,n=e.length;i<n;i++)t(e[i],i,n)},e.prototype.visit=function(t){for(var e=this._views.length,i=0;i<e&&!1!==t(this._views[i],i,e);i++);return i===e},e.prototype.sort=function(t){return this._views=this._views.sort(t),this},e.prototype.map=function(t){return this._views.map(t)},e.prototype.front=function(t){t.front(this._views)},e.prototype.back=function(t){t.back(this._views)},e}(mS),$E=Object.freeze({x:0,y:0,width:0,height:0}),HE=function(t,e,i,n){return{x:t,y:e,width:i,height:n}};function GE(t){return{width:t.width,height:t.height}}function WE(t){return t.width<=0||t.height<=0}var YE=function(){function t(t,e,i,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=0),this.top=t,this.bottom=e,this.left=i,this.right=n}return t.create=function(e,i,n,r){return isNaN(n)?isNaN(i)?new t(e,e,e,e):new t(e,e,i,i):new t(e,i,n,r)},t.createFrom=function(t){var e,i=t.split(/\s*[\s,]+\s*/g);return(e=this.create).call.apply(e,zx([null],jx(i.map((function(t){return+t}))),!1))},t.prototype.clone=function(){return new t(this.top,this.bottom,this.left,this.right)},t.prototype.applyPadding=function(t){return this.left=aS(t.paddingLeft,0),this.right=aS(t.paddingRight,0),this.top=aS(t.paddingTop,0),this.bottom=aS(t.paddingBottom,0),this},t.prototype.applyMargin=function(t){return this.left=aS(t.marginLeft,0),this.right=aS(t.marginRight,0),this.top=aS(t.marginTop,0),this.bottom=aS(t.marginBottom,0),this},t.prototype.shrink=function(t){return{x:t.x+this.left,y:t.y+this.top,width:t.width-this.left-this.right,height:t.height-this.top-this.bottom}},t.Empty=Object.freeze(new t),t.Temp=new t,t}(),XE=function(t){function e(e,i){void 0===i&&(i=wS);var n=t.call(this,e,i,"g")||this;return n._doInitChildren(e),n}return Dx(e,t),e.prototype.setAttr=function(i,n){return e.IGNORE_ATTRS.hasOwnProperty(i)||t.prototype.setAttr.call(this,i,n),this},e.prototype._doInitChildren=function(t){},e.IGNORE_ATTRS={width:"",height:""},e}(EP),UE=function(t){function e(e,i){void 0===i&&(i=wS);var n=t.call(this,e,i,"g")||this;return EP.DEBUGGING&&(n.add(n._debugRect=new bk(e,"rct-debug")),n._debugRect.setAttr("pointerEvents","none")),n}return Dx(e,t),e.prototype.chart=function(){return this.model.chart},e.prototype._prepareStyleOrClass=function(t){this.setStyleOrClass(t._style)},e.prototype.setModel=function(t){t!==this.model&&(this.model=t,this.options=t._op)},e.prototype.measure=function(t,e,i,n,r){this._prepareStyleOrClass(e),this.setModel(e);var o=this._doMeasure(t,this.model,i,n,r);return this.mw=o.width,this.mh=o.height,o},e.prototype.layout=function(t){return this._doLayout(t),EP.DEBUGGING?(this._debugRect||this.insertFirst(this._debugRect=new bk(this.doc,"rct-debug")),this.width>1&&this.height>1&&this._debugRect.setRect(this._getDebugRect())):this._debugRect&&(this._debugRect.remove(),this._debugRect=null),this},e.prototype.resizeByMeasured=function(){return this.resize(this.mw,this.mh),this},e.prototype._getDebugRect=function(){return{x:0,y:0,width:this.width,height:this.height}},e.prototype._doMeasure=function(t,e,i,n,r){return{width:i,height:n}},e.prototype._doLayout=function(t){},e.prototype._invalidate=function(){var t;null===(t=this.control)||void 0===t||t.invalidateLayout()},e}(EP),qE=function(t){function e(e,i,n){var r=t.call(this,e,i)||this;return r._margins=new YE,r._paddings=new YE,r.add(r._background=new bk(e,n)),r}return Dx(e,t),e.prototype._getDebugRect=function(){return this._margins.shrink(t.prototype._getDebugRect.call(this))},e.prototype.measure=function(t,e,i,n,r){this._prepareStyleOrClass(e),this.setModel(e),this._setBackgroundStyle(this._background);var o=getComputedStyle(this._background.dom),s=this._paddings;s.applyPadding(o);var a=this._doMeasure(t,e,i,n,r);if(a.width+=s.left+s.right,a.height+=s.top+s.bottom,this._marginable()){var u=this._margins;o=getComputedStyle(this.dom),u.applyMargin(o),this.mw=a.width+=u.left+u.right,this.mh=a.height+=u.top+u.bottom}return this.mw=a.width,this.mh=a.height,a},e.prototype.layout=function(e){if(t.prototype.layout.call(this,e),this._marginable()){var i=this._margins;this._background.setBounds(i.left+this._getBackOffset(),i.top,this.width-i.left-i.right,this.height-i.top-i.bottom)}else this._resetBackBounds()&&this._background.setBounds(0,0,this.width,this.height);return this},e.prototype._marginable=function(){return!0},e.prototype._resetBackBounds=function(){return!0},e.prototype._getBackOffset=function(){return 0},e.prototype._deflatePaddings=function(t){var e=this._paddings;t.width-=e.left+e.right,t.height-=e.top+e.bottom},e}(UE),ZE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.measure=function(t,e,i,n,r){this._setInverted(e.isInverted());var o=this._doMeasure(t,e,i,n,r);return this.mw=o.width,this.mh=o.height,o},e.prototype.resizeByMeasured=function(){return this.resize(this.mw,this.mh),this},e.prototype.layout=function(t){return this._doLayout(t),this},e.prototype._setInverted=function(t){this._inverted=t},e}(XE),KE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._inverted=!1,e._animatable=!0,e._loadAnimatable=!0,e}return Dx(e,t),e.prototype._setChartOptions=function(t,e,i){this._inverted=t,this._animatable=e,this._loadAnimatable=i},e}(UE),JE=function(t){function e(e,i,n){var r=t.call(this,e,n,"image")||this;return r._dirty=!0,r._bounds=$E,r.onloadProxy=function(){var t=r.getBBox();r.resize(t.width,t.height)},i&&r.setAttr("preserveAspectRatio","xMidYMid slice"),r.dom.onload=function(){r._dirty=!0,r.invalidate(),r._dirty=!1},window.SVGGraphicsElement||(r._proxy=new Image,r._proxy.onload=function(){r._dirty=!0,r.invalidate(),setTimeout((function(){r.onloadProxy(),r._dirty=!1}),0)}),r}return Dx(e,t),Object.defineProperty(e.prototype,"url",{get:function(){return this.getAttr("href")},set:function(t){t!==this.url&&(this._dirty=!0,t?this.setAttr("href",t):this.unsetAttr("href"),this._proxy&&(this._proxy.src=t))},enumerable:!1,configurable:!0}),e.prototype.setImage=function(t,e,i){return!!t&&(this.url=t,this.resize(e,i)&&(this._dirty=!0),!0)},e.prototype.getBBox=function(){if(this._bounds=this.dom.getBBox(),this._proxy){var t=this._bounds.width,e=this._bounds.height;0==t||e?0==e||t||(t=e/this._proxy.height*this._proxy.width):e=t/this._proxy.width*this._proxy.height,this._bounds={x:this._bounds.x,y:this._bounds.y,width:t,height:e}}return this._bounds},e.prototype.resize=function(e,i,n){return void 0===n&&(n=!0),this._dirty&&t.prototype.resize.call(this,e,i,n)},e}(EP),QE=function(t){function e(e,i){void 0===i&&(i=wS);var n=t.call(this,e)||this;return n.add(n._text=new jP(e,i)),n._text.anchor=RP.START,n}return Dx(e,t),e.prototype.setText=function(t){return this._outline&&(this._outline.text=t),this._text.text=t,this},e.prototype.setModel=function(t,e,i,n){var r=e.options.effect;return this._model=e,this._text.setStyleOrClass(e._style),"background"===r?(this._outline&&this._outline.remove(),this._back||(this._back=new bk(t,"rct-label-background")),this.insertFirst(this._back),this._back.setStyleOrClass(e.options.backgroundStyle)):"outline"===r?(this._back&&this._back.remove(),this._outline||(this._outline=new jP(t)),this.insertFirst(this._outline),this._outline.anchor=this._text.anchor,this._outline.setStyleOrClass(e._style)):(this._back&&this._back.remove(),this._outline&&this._outline.remove()),i?this._icon||(this.add(this._icon=new JE(t,!1)),this._icon.url=i,this._icon.width=e.options.iconWidth,this._icon.height=e.options.iconHeight||16):this._icon&&(this._icon.remove(),this._icon=null),this},e.prototype.setContrast=function(t){var e,i=null===(e=this._model)||void 0===e?void 0:e.options;if(t&&(null==i?void 0:i.autoContrast)&&this._text.setContrast(t,i.darkStyle||"rct-label-dark",i.lightStyle||"rct-label-light"),this._outline&&this._outline.parent){var n=xP.getContrast(getComputedStyle(this._text.dom).fill);this._outline.applyStyles({fill:n,stroke:n,strokeWidth:this._model._outlineWidth})}return this},e.prototype.layout=function(t){var e=this._icon,i=0,n=this._text.getBBox(),r=n.width,o=n.height,s=r,a=o,u=0,l=0,h=0,p=0;if(e){var c=e.getBBox();switch(i=aS(this._model.options.iconGap,0),u=c.width,l=c.height,this._model.getIconPos()){case"left":case"right":s+=i+u,a=Math.max(l,o);break;default:a+=i+l,s=Math.max(u,r)}}if(this._back&&this._back.parent){var f=getComputedStyle(this._back.dom);h=parseFloat(f.paddingLeft)||0,p=parseFloat(f.paddingTop)||0,this._back.setBounds(0,0,s+h+(parseFloat(f.paddingRight)||0),a+p+(parseFloat(f.paddingBottom)||0),f.rx)}if(e)switch(this._model.getIconPos()){case"left":e.trans(h,(a-l)/2),h+=u+i,s-=u+i;break;case"right":e.trans(h+s-u,(a-l)/2),s-=u+i;break;case"top":e.transX((s-u)/2),p+=l+i;break;case"bottom":e.trans((s-u)/2,p+o+i)}switch(t){case"center":h+=s/2,this._text.anchor=RP.MIDDLE;break;case"right":h+=s,this._text.anchor=RP.END;break;default:this._text.anchor=RP.START}return this._text.trans(h,p),this},e.prototype.trans=function(e,i){return t.prototype.trans.call(this,e,i),this._outline&&(this._outline.anchor=this._text.anchor,this._outline.setAttr("y",this._text.getAttr("y")),this._outline.trans(this._text.tx,this._text.ty)),this},e}(XE),tL=function(t){function e(e,i,n,r){var o=t.call(this)||this;return o._axis=e,o._prevMin=i,o._prevMax=n,o.start(r),o}return Dx(e,t),e.prototype._doUpdate=function(t){if(this._axis.parent){var e=this._axis.model,i=this._prevMax-this._prevMin,n=(e.axisMax()-e.axisMin())/i;return t=n+(1-n)*t,e.setPrevRate(t),this._axis.invalidate(),!0}return!1},e.prototype._doStop=function(){this._axis.model.setPrevRate(NaN),this._axis=null},e}(dk),eL=function(t){function e(i){var n=t.call(this,i,e.TITLE_CLASS,"rct-axis-title-background")||this;return n.add(n._textView=new jP(i)),n._richText=new JP,n}return Dx(e,t),e.prototype._setBackgroundStyle=function(t){t.setStyleOrClass(this.model.options.backgroundStyle)},e.prototype._getBackOffset=function(){return-this.width/2},e.prototype._doMeasure=function(t,e,i,n,r){this._angle=e.getRotation();var o=e.options;o.writingMode&&this._textView.setStyle("writingMode",o.writingMode),o.textOrientation&&this._textView.setStyle("textOrientation",o.textOrientation),this._richText.setFormat(e.options.text),this._richText.build(this._textView,i,n,null,null);var s=GE(this._textView.getBBox());if(!e.axis._isHorz&&0!==this._angle){var a=s.width;s.width=s.height,s.height=a}return s},e.prototype._doLayout=function(t){var e=this._textView,i=e.getStyle("writing-mode"),n=i===US||i===qS;t?this.rotation=0:this.setRotation(0,(n?this.width:this.height)/2,this._angle);var r=this._margins.top+this._paddings.top,o=0;switch(this.textAlign()){case"left":this._textView.anchor=RP.START,n||(o-=this.width/2);break;case"right":this._textView.anchor=RP.END,n?r+=this.height:o+=this.width/2;break;default:this._textView.anchor=RP.MIDDLE,n&&(r+=this.height/2)}e.trans(o,r)},e.prototype.resizeByMeasured=function(){return 0===this._angle?this.resize(this.mw,this.mh):this.resize(this.mh,this.mw),this},e.prototype.layout=function(e){return t.prototype.layout.call(this,e),this._debugRect&&this._debugRect.setBounds(-this.width/2,0,this.width,this.height),this},e.TITLE_CLASS="rct-axis-title",e}(qE),iL=function(t){function e(e){var i=t.call(this,e,aL.TICK_CLASS)||this;return i.add(i._lineView=new SC(e)),i}return Dx(e,t),e.prototype._doLayout=function(t){this.model.axis._isHorz?this._lineView.setVLine(0,0,this.height):this._lineView.setHLine(0,0,this.width)},e}(UE),nL=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.index=-1,e.col=0,e.row=0,e.tickWidth=0,e}return Dx(e,t),e.prototype.setLabel=function(t,e,i,n,r){if(i){this._richText?this._richText._format!==i&&this._richText.setFormat(i):this._richText=new JP(i);var o=t.getIcon(e);this.setModel(this.doc,t,o&&t.getUrl(o),null),this._richText.build(this._text,n,r,t,t._domain),this._outline&&this._richText.build(this._outline,n,r,t,t._domain)}else this._richText&&(this._richText=null,this._text.text="")},e.prototype.rotatedWidth=function(){var t=this.rotation*VS,e=this.getBBox();return sS(eS(t)*e.height)+sS(tS(t)*e.width)},e.prototype.rotatedHeight=function(){var t=this.rotation*VS,e=this.getBBox();return sS(tS(t)*e.height)+sS(eS(t)*e.width)},e}(QE),rL=function(t){function e(e){var i=t.call(this,e,void 0)||this;return i.add(i._back=new OP(e,"rct-crosshair-flag")),i.add(i._text=new jP(e,"rct-crosshair-flag-text")),i}return Dx(e,t),e.prototype.setText=function(t,e){if(e!==this._text.text){this._text.text=e;var i=this._text.getBBox(),n=new YC,r=oS(t.flag.minWidth||0,i.width+8);n.rect(0,0,r,i.height+4),this._back.setPath(n.end()),this._text.trans(r/2,2)}},e}(EP),oL=function(t){function e(i){var n=t.call(this,i,"rct-axis-scrollbar")||this;return n._len=0,n._page=0,n._pos=0,n.add(n._trackView=new bk(i,e.TRACK_CLASS)),n.add(n._thumbView=new bk(i,e.THUMB_CLASS)),n}return Dx(e,t),e.isThumb=function(t){return t.classList.contains(e.THUMB_CLASS)},e.prototype.setScroll=function(t,e){if(this._reversed=e,t){var i=t.max-t.min,n=t.end-t.start;this._len=oS(0,i),this._page=rS(n,i),this._pos=rS(t.min+i-n,oS(0,t.start))}else this._len=0},e.prototype.getZoomPos=function(t){var e=this.model.axis._zoom,i=(this._vertical?this.height:this.width)-(this._vertical?this._thumbView.height:this._thumbView.width);return this.model.axis.options.reversed,(t=oS(0,rS(t,i)))*(e.max-e.min-(e.end-e.start))/i+e.min},e.prototype._doMeasure=function(t,e,i,n,r){return this.setStyleOrClass(e._style),(this._vertical=!e.axis._isHorz)?{width:e.getThickness()+e.getGap()+e.getGapFar(),height:n}:{width:i,height:e.getThickness()+e.getGap()+e.getGapFar()}},e.prototype._doLayout=function(t){var e=this.model,i=e.axis._zoom,n=this._szThumb=aS(e.getMinThumbSize(),32),r=this._len,o=0===this._len,s=this._page,a=o?0:this._pos-i.min,u=e.getGap(),l=u+e.getGapFar(),h=this.width,p=this.height;if(this._vertical){h-=l,this._trackView.setBounds(u,0,h,p),p-=n;var c=(o||s===r?p:p*s/r)+n;this._reversed,this._thumbView.setBounds(u+1,o?0:this.height-p*a/r-c,h-2,c)}else{p-=u+e.getGapFar(),this._trackView.setBounds(0,u,h,p),h-=n;var f=(o||s===r?h:h*s/r)+n;this._reversed,this._thumbView.setBounds(o?0:h*a/r,u+1,f,p-2)}},e.CLASS_NAME="rct-axis-scrollbar",e.TRACK_CLASS="rct-axis-scrollbar-track",e.THUMB_CLASS="rct-axis-scrollbar-thumb",e}(UE),sL=/\${label}.*?/g,aL=function(t){function e(i){var n=t.call(this,i,e.AXIS_CLASS)||this;return n._simpleMode=!1,n._markViews=[],n._edgeStart=0,n._marginStart=0,n._marginEnd=0,n._edgeEnd=0,n.add(n._lineView=new SC(i,e.LINE_CLASS)),n.add(n._titleView=new eL(i)),n.add(n._markContainer=new EP(i,"rct-axis-ticks")),n.add(n._labelContainer=new EP(i,"rct-axis-labels")),n._labelViews=new zE(n._labelContainer,nL,"rct-axis-label"),n}return Dx(e,t),e.prototype.$_checkScrollView=function(t,e,i,n,r){return e.visible&&!this.model._isBetween?(this._scrollView||this.add(this._scrollView=new oL(t)),this._scrollView.setVis(!0),this._scrollView.measure(t,e,n,r,1)[i]):(this._scrollView&&this._scrollView.setVis(!1),0)},e.prototype.checkHeight=function(t,e,i){var n=this.model,r=n.title,o=n.tick.visible?n.tick.options.length:0;return this.$_prepareLabels(n,e)&&(o+=this.$_measureLabelsHorz(n,e,!0)),this._titleView.setVis(r.visible)&&(o+=this._titleView.measure(t,r,e,i,1).height,o+=r.options.gap),o+=this.$_checkScrollView(t,n.scrollBar,"height",e,i)},e.prototype.checkWidth=function(t,e,i){var n=this.model,r=n.title,o=n.tick.visible?n.tick.options.length:0;return this.$_prepareLabels(n,e)&&(o+=this.$_measureLabelsVert(n,i,!0)),(this._titleView.visible=r.visible)&&(o+=this._titleView.measure(t,r,e,i,1).width,o+=r.options.gap),o+=this.$_checkScrollView(t,n.scrollBar,"width",e,i)},e.prototype.prepareGuides=function(t,e,i,n,r){var o=this;[n,r].forEach((function(n,r){if(n.setVis(!o._empty)){var s=o.model.guides.filter((function(t){return t.options.front==(1===r)&&t.canConstainedTo(e,i)}));n.setAll(t,s,!1)}}))},e.prototype.showCrosshair=function(t,e){var i,n=this.model,r=this._crosshairView;r||this.add(r=this._crosshairView=new rL(this.doc)),r.setVis(!0),r.setText(n.crosshair,e);var o=r.getBBox();n._isHorz?r.trans(t-o.width/2,n.tick.options.length):(i="opposite"===n._runPos?rS(0,this.width-o.width):oS(0,this.width-n.tick.options.length-o.width),r.trans(i,t-o.height/2))},e.prototype.setMargins=function(t,e,i,n){this._edgeStart=t,this._marginStart=e,this._marginEnd=i,this._edgeEnd=n},e.prototype.hideCrosshiar=function(){this._crosshairView&&this._crosshairView.setVis(!1)},e.prototype.scroll=function(t){},e.prototype.prepare=function(t){this.model=t,this._chartEmpty=t.chart.isEmpty(!0),this._empty=this._chartEmpty||t.isEmpty()},e.prototype.checkExtents=function(t){var e=this,i=this._prevModel,n=this._prevModel=this.model;if((!i||i===n)&&t){var r=this._prevMin,o=this._prevMax;this._prevMin=n.axisMin(),this._prevMax=n.axisMax(),(!isNaN(o)&&this._prevMax!==o||!isNaN(r)&&this._prevMin!==r)&&!n._zooming&&n.options.animatable&&new tL(this,r,o,(function(){e.invalidate()}))}},e.prototype.clean=function(){this._prevMax=this._prevMin=NaN,this._prevModel=null},e.prototype._doMeasure=function(t,i,n,r,o){var s,a=i.line,u=i.tick,l=i._isHorz,h=i._isBetween,p=this._titleView,c=0;return(this._lineView.visible=a.visible)?(this._lineView.setStyleOrClass(a._style),h&&(this._lineView2?this._lineView2.setVis(!0):this.insertChild(this._lineView2=new SC(t,e.LINE_CLASS),this._lineView),this._lineView.setStyleOrClass(a._style))):this._lineView2&&this._lineView2.setVis(!1),this._markLen=u.options.length||0,this._markLen>0&&(c+=i.tick.options.gap||0),c+=this._markLen,this.$_prepareTickMarks(t,i)&&this._markViews.forEach((function(e){return e.measure(t,i.tick,n,r,o)})),h&&(c*=2),this.$_prepareLabels(i,l?n:r)?c+=this._labelSize=l?this.$_measureLabelsHorz(i,n):this.$_measureLabelsVert(i,r):this._labelSize=0,this._simpleMode?p.setVis(!1):(p.visible&&(c+=l?p.mh:p.mw,c+=+i.title.options.gap||0),(null===(s=this._scrollView)||void 0===s?void 0:s.visible)&&(c+=l?this._scrollView.mh:this._scrollView.mw)),{width:l?n:c,height:l?c:r}},e.prototype._doLayout=function(){var t=this.model,e=t._isHorz,i=t._isOpposite,n=t._isBetween,r=t._ticks,o=t._markPoints,s=this._labelViews,a=this._markLen,u=this.width,l=this.height;this._lineView.visible&&(e?this._lineView.setHLine(i?l:0,0,u):this._lineView.setVLine(i?0:u,0,l),this._lineView2&&(e?this._lineView2.setHLine(l,0,u):this._lineView2.setVLine(0,0,l))),this._markContainer.visible&&(e?this._markViews.forEach((function(e,n){e.resize(1,a),e.layout().trans(t.prev(o[n]),i?l-a:0)})):this._markViews.forEach((function(e,n){e.resize(a,1),e.layout().trans(i?0:u-a,l-t.prev(o[n]))})));var h=a+(t.tick.options.gap||0);if(this._labelContainer.visible&&s.count>0&&(e?this.$_layoutLabelsHorz(s,r,n,i,u,l,h):this.$_layoutLabelsVert(s,r,n,i,u,l,h)),!this._simpleMode){var p=t.title.options,c=this._titleView,f=this._scrollView,_=this._labelSize,d=0,y=0;if(c.visible){var g=+p.offset||0,v=+p.gap||0;if(c.resizeByMeasured().layout(e),e){if(y+=i?0:h+_+v,t.options.reversed)switch(p.align){case"start":d=u-c.width/2-g;break;case"end":d=c.width/2+g;break;default:d=u/2-g}else switch(p.align){case"start":d=c.width/2+g;break;case"end":d=u-c.width/2-g;break;default:d=u/2+g}c.trans(d,y),y+=c.height}else{var m=0===c._angle?c.width:c.height;if(d=i?h+_+v+m/2:u-h-_-v-m/2,t.options.reversed)if(0===c._angle)switch(p.align){case"start":y=0+g;break;case"end":y=l-c.height-g;break;default:y=(l-c.height)/2+g}else switch(p.align){case"start":y=c.width/2-c.height/2+g;break;case"end":y=l-c.width/2-c.height/2-g;break;default:y=(l-c.height)/2+g}else if(0===c._angle)switch(p.align){case"start":y=l-c.height-g;break;case"end":y=0+g;break;default:y=(l-c.height)/2-g}else switch(p.align){case"start":y=l-c.width/2-c.height/2-g;break;case"end":y=c.width/2-c.height/2+g;break;default:y=(l-c.height)/2-g}c.trans(d,y)}}else y+=i?0:h+_;(null==f?void 0:f.visible)&&(e?(f.trans(0,y).resize(this.width,f.mh),f.setScroll(t._zoom,t.options.reversed)):(f.trans(0,0).resize(f.mw,this.height),f.setScroll(t._zoom,t.options.reversed)),f.layout())}},e.prototype.$_prepareTickMarks=function(t,e){var i=this._markContainer;if(i.visible=e.tick.visible){for(var n=e._markPoints.length,r=this._markViews;r.length<n;){var o=new iL(t);i.add(o),r.push(o)}for(;r.length>n;)r.pop().remove();return!0}},e.prototype._prepareLabel=function(t,e,i,n,r){if(r||t.value!==e.value){var o=i.getLabelText(e,n),s=e.label;if(t.value=e.value,t.internalClearStyleAndClass(),t.internalSetStyleOrClass(i._style),t.internalSetStyleOrClass(i.getLabelStyle(e,n)),null!=o)s&&o.match(sL)?t.setLabel(i,e,o.replace(sL,s),1e3,1e3):(i.prepareRich(o),i._paramTick=e,t.setModel(this.doc,i,null,null),i.buildSvg(t._text,t._outline,NaN,NaN,i,i._domain));else t.setLabel(i,e,s,1e3,1e3)}},e.prototype.$_prepareLabels=function(t,e){if(this._labelContainer.setVis(!this._chartEmpty&&t.labelsVisible())){var i=t._ticks.length;return this._labelContainer.setStyleOrClass(t.label._style),i}return 0},e.prototype.$_getRows=function(t){return 2},e.prototype.$_getStep=function(t){return 2},e.prototype.$_checkOverlappedHorz2=function(t,e,i,n,r,o,s,a){for(var u,l=t.label,h=oS(0,rS(n-1,l.options.startStep||0)),p=t._ticks,c=p.length,f=(n=oS(1,n))*(r=rS(oS(1,r),p.length)),_=o||0,d=sS(_)*VS,y=d<35*VS,g=!1,v=0,m=0;m<r;m++){for(var b=m*n+h;b<c;b+=f){for(var w=0,x=b;x<b+f&&x<c;x++)w+=t.getLabelLength(i,p[x].value);if(b+f<c){(u=e.pull(v++)).rotation=_,u.row=m,u.index=b,this._prepareLabel(u,p[b],l,c,a),u.setVis(!0);var S=w;if(0===_&&u.getBBox().width>=S){g=!0;break}if(y&&u.getBBox().width*tS(d)>=S){g=!0;break}if(0!==_&&u.getBBox().height>=S){g=!0;break}}}if(g)return!0;b-f<c&&((u=e.pull(v++)).row=m,u.rotation=_,u.index=b-f,this._prepareLabel(u,p[b-f],l,c,a),u.setVis(!0))}!s&&e.freeFrom(v)},e.prototype.$_applyStep=function(t,e,i){var n=t.label,r=oS(0,rS(i-1,n.options.startStep||0));e.forEach((function(t){return t.index=-1}));for(var o=r;o<e.length;o+=i)e[o].index=o;return e.forEach((function(t){return t.setVis(t.index>=0)})),e.filter((function(t){return t.visible}))},e.prototype.$_measureLabelsHorz=function(t,e,i){var n=this;void 0===i&&(i=!1);var r,o=t.label,s=o.options,a=+s.step|0,u=+s.rows|0,l=+s.rotation%360,h=this.$_checkOverlappedHorz2(t,this._labelViews,e,a,u,l,!1,i),p=this._labelViews._internalItems();if(this._labelRowPts=[0],h)if("none"===s.autoArrange)this._labelViews.prepare(t._ticks.length,(function(e,r,s){e.rotation=l,e.row=0,e.index=r,n._prepareLabel(e,t._ticks[r],o,s,i),e.setVis(!0)})),p=this.$_applyStep(t,p,a||1);else{switch(a=u=0,o.options.autoArrange){case"rows":u=this.$_getRows(p);break;case"step":a=this.$_getStep(p)}if(a>1)for(;this.$_checkOverlappedHorz2(t,this._labelViews,e,a,1,0,!1,i);)a++;else if(u>1){for(;t._ticks.length>u&&(p.forEach((function(t,e){t.row=e%u,t.index=e})),this.$_checkOverlappedHorz2(t,this._labelViews,e,1,u,0,!1,i));)u++;this._labelRowPts=[]}else if((isNaN(l)||Math.abs(Math.tan(l*VS))<1)&&(l=-45),this.$_checkOverlappedHorz2(t,this._labelViews,e,a,u,l,!1,i))for(a=2;;){if(!this.$_checkOverlappedHorz2(t,this._labelViews,e,a,u,l,!1,i)){this.$_checkOverlappedHorz2(t,this._labelViews,e,a,u,0,!0,i)&&p.forEach((function(t,e){t.rotation=l}));break}a++}}else;if(p.length>0){if(u>1){for(var c=!isNaN(l)&&0!=l,f=this._labelRowPts,_=0;_<u;_++)f.push(0);p.forEach((function(t){f[t.row]=oS(f[t.row],c?t.rotatedHeight():t.getBBox().height)})),f.unshift(0);for(_=2;_<f.length;_++)f[_]+=f[_-1];return f[f.length-1]}if(isNaN(l)||0==l){r=p[0].getBBox().height;for(_=1;_<p.length;_++)r=oS(r,p[_].getBBox().height)}else{r=p[0].rotatedHeight();for(var _=1;_<p.length;_++)r=oS(r,p[_].rotatedHeight())}return r}return 0},e.prototype.$_checkOverlappedVert=function(t,e,i,n){var r=e.length,o=oS(1,n);e.forEach((function(t){return t.rotation=0}));for(var s=0;s<r-1;s+=o){for(var a=0,u=s;u<s+o&&u<r-1;u++)a+=t.getLabelLength(i,e[s].value);if(e[s].getBBox().height>=a)return!0}},e.prototype.$_checkOverlappedVert2=function(t,e,i,n,r){for(var o,s=t.label,a=t._ticks,u=a.length,l=oS(1,n),h=0,p=0;h<u;h+=l){for(var c=0,f=h;f<h+l&&f<u;f++)c+=t.getLabelLength(i,a[f].value);if(h+l<u&&((o=e.pull(p++)).rotation=0,o.index=h,this._prepareLabel(o,a[h],s,u,r),o.setVis(!0),o.getBBox().height>=c))return!0}h-l<u&&((o=e.pull(p++)).rotation=0,o.index=h-l,this._prepareLabel(o,a[h-l],s,u,r),o.setVis(!0)),e.freeFrom(p)},e.prototype.$_measureLabelsVert=function(t,e,i){var n=this;void 0===i&&(i=!1);var r=t.label,o=oS(1,+r.options.step|0),s=this.$_checkOverlappedVert2(t,this._labelViews,e,o,i),a=this._labelViews._internalItems();if(s)if("none"===r.options.autoArrange)this._labelViews.prepare(t._ticks.length,(function(e,o,s){e.rotation=0,e.index=o,n._prepareLabel(e,t._ticks[o],r,s,i),e.setVis(!0)})),a=this.$_applyStep(t,a,o||1);else for(;this.$_checkOverlappedVert2(t,this._labelViews,e,++o,i););else;if(a.length>0){for(var u=a[0].getBBox().width,l=1;l<a.length;l++)u=oS(u,a[l].getBBox().width);return u}return 0},e.prototype.$_layoutLabelsHorz=function(t,e,i,n,r,o,s){var a,u,l=this.model,h=l.label,p=l.options.reversed,c=this._labelRowPts,f=t.get(0).rotation,_=f*VS,d=f<-15&&f>=-90||f>15&&f<=90,y=t.count;t.freeHiddens(),t.forEach((function(t,i){t.setContrast(null).layout("center");var r=t.getBBox();a=l.prev(e[t.index].pos),u=n?o-s-r.height-c[t.row]:s+c[t.row],f<-15&&f>=-90?n?(a-=r.width,u-=eS(_)*r.height/2,t.setRotation(r.width,r.height/2,-f)):(a-=r.width,u+=eS(_)*r.height/2,t.setRotation(r.width,r.height/2,f)):f>15&&f<=90?n?(u+=eS(_)*r.height/2,t.setRotation(0,r.height/2,-f)):(u-=eS(_)*r.height/2,t.setRotation(0,r.height/2,f)):(a-=r.width/2,t.setRotation(r.width/2,0,n?-f:f)),t.trans(a,u)})),!d&&y>1&&(function(e,i,n){var r=!0,o=i.rotatedWidth(),s=i.tx;if(s<-e._marginStart-e._edgeStart)if("pull"===(p?h.options.lastOverflow:h.options.firstOverflow))if(s=-e._marginStart-e._edgeStart+2,t.count>0){var a=n.tx;s+o+(+h.options.overflowGap||12)>a&&(r=!1)}else r=!1;else r=!1;r?i.transX(s):i.setVis(!1)}(this,t.get(p?y-1:0),t.get(p?y-2:1)),function(t,e,i){var n=!0,o=e.tx,s=e.rotatedWidth();if(o+s>(r+=t._marginEnd+t._edgeEnd)){var a=h.options;"pull"===(p?a.firstOverflow:a.lastOverflow)?(o=r-s,i?o<i.tx+i.rotatedWidth()+(+a.overflowGap||12)&&(n=!1):n=!1):n=!1}n?e.transX(o):e.setVis(!1)}(this,t.get(p?0:y-1),t.get(p?1:y-2)))},e.prototype.$_layoutLabelsVert=function(t,e,i,n,r,o,s){var a=this.model,u=n?"left":i?"center":"right",l=n?s:r-s;t.freeHiddens(),t.forEach((function(t,s){t.setContrast(null).layout(u);var h=t.getBBox(),p=n?l:i?(r-h.width)/2:l-h.width;t.trans(p,o-a.prev(e[t.index].pos)-h.height/2)}))},e.AXIS_CLASS="rct-axis",e.LINE_CLASS="rct-axis-line",e.TICK_CLASS="rct-axis-tick",e}(UE),uL=function(t){function e(i,n,r){var o=t.call(this,i,e.STYLE)||this;return o.add(o._back=new bk(i,e.BACK_STYLE)),o.add(o._textView=new jP(i)),r&&o.dom.classList.add(r),n&&o.setText(n),o}return Dx(e,t),e.prototype.setText=function(t){this._textView.text=t},e.prototype.layout=function(t){this.setStyleOrClass(t),this._textView.layoutText();var e=getComputedStyle(this._back.dom),i=(new YE).applyPadding(e),n=this._textView.getBBox();this._back.rect={x:0,y:0,width:n.width+i.left+i.right,height:n.height+i.top+i.bottom},this._textView.trans(n.width/2+i.left,i.top)},e.prototype.click=function(){return!1},e.prototype.setVis=function(e){if(t.prototype.setVis.call(this,e))return e&&this._textView.stain(),!0},e.STYLE="rct-button",e.BACK_STYLE="rct-button-background",e}(EP),lL=function(t){function e(e,i){return t.call(this,e,i,"circle")||this}return Dx(e,t),e.prototype.setCircle=function(t,e,i){this.setAttrs({cx:t,cy:e,r:i})},e}(EP);!function(t){function e(e,i){var n=t.call(this,e,i)||this;return n.setFill("none"),n}Dx(e,t),e.prototype.resetStyles=function(e){var i=t.prototype.resetStyles.call(this,e);return this.setFill("none"),i}}(lL);var hL=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.setArc=function(t,e,i,n,r,o){this.setPath(mk.arc(t,e,i,i,n,close?n+r:n-r,o))},e}(OP),pL=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.setPolyline=function(t){this.setPath(mk.lines.apply(mk,zx([],jx(t),!1)))},e}(hL),cL=function(t){function e(e,i,n){void 0===i&&(i=wS),void 0===n&&(n=wS);var r=t.call(this,e,i)||this;return r.cx=0,r.cy=0,r.rx=0,r.ry=0,r.innerRadius=0,r.start=0,r.angle=0,r.clockwise=!0,r.rate=1,n&&r._assignShape(n,!1),r.setAttr("role","img"),r}return Dx(e,t),e.create=function(t,i,n,r,o,s,a,u,l){return void 0===l&&(l=!0),new e(t,i,{cx:n,cy:r,rx:o,ry:s,innerRadius:0,start:a,angle:u,clockwise:l})},e.createInner=function(t,i,n,r,o,s,a,u,l,h){return void 0===i&&(i=""),void 0===h&&(h=!0),new e(t,i,{cx:n,cy:r,rx:o,ry:s,innerRadius:a,start:u,angle:l,clockwise:h})},e.prototype.equals=function(t){return t.cx===this.cx&&t.cy===this.cy&&t.rx===this.rx&&t.ry===this.ry&&t.innerRadius===this.innerRadius&&t.start===this.start&&t.angle===this.angle&&t.clockwise===this.clockwise},e.prototype.setSector=function(t){this._assignShape(t,!1)},e.prototype.setSectorEx=function(t,e){this._assignShape(t,e)},e.prototype._getShape=function(){return{cx:this.cx,cy:this.cy,rx:this.rx,ry:this.ry,innerRadius:this.innerRadius,start:this.start,angle:this.angle,clockwise:this.clockwise}},e.prototype._assignShape=function(t,e){this.cx=t.cx,this.cy=t.cy,this.rx=t.rx,this.ry=t.ry,this.innerRadius=t.innerRadius,this.start=t.start,this.angle=t.angle,this.clockwise=t.clockwise,this.setPath(e?this.$_renderArc():this.$_renderSector())},e.prototype.$_renderSector=function(){return mk.sector(this.cx,this.cy,this.rx*this.rate,this.ry*this.rate,this.innerRadius||0,this.start,this.clockwise?this.start+this.angle:this.start-this.angle,this.clockwise)},e.prototype.$_renderArc=function(){return mk.arc(this.cx,this.cy,this.rx*this.rate,this.ry*this.rate,this.start,this.clockwise?this.start+this.angle:this.start-this.angle,this.clockwise)},e}(OP),fL={},_L=function(t){function e(i,n){return t.call(this,i,e.CLASS_NAME+" "+n,"rct-annotation-background")||this}return Dx(e,t),e.register=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];t.forEach((function(t){fL[t[0].type]=t[1]}))},e.prototype.update=function(t,e,i){this.measure(this.doc,this.model,e,i,0),this._layoutView(this.chart().isInverted(),t,0,0,e,i)},e.prototype._layoutView=function(t,e,i,n,r,o){this.resizeByMeasured(),this.layout(this._posByAnchor(e)||this.model.getPosition(this.chart().isInverted(),i,n,r,o,this.width,this.height))},e.prototype._posByAnchor=function(t){var e=this.model,i=e._anchorObj;if(i){var n=t.getAnnotationAnchor(i);if(n){var r=e.getOffset(this.width,this.height),o=n.width,s=n.height,a=n.tx,u=n.ty;switch(this.options.align){case"left":a-=this.width+r.x;break;case"right":a+=o+r.x;break;default:a+=(o-this.width)/2+r.x}switch(this.options.verticalAlign){case"middle":u+=(s-this.height)/2+r.y;break;case"bottom":u+=s+r.y;break;default:u-=this.height+r.y}return{x:a,y:u}}}},e.prototype._marginable=function(){return!1},e.prototype._resetBackBounds=function(){return!1},e.prototype._setBackgroundStyle=function(t){t.setStyleOrClass(this.model.options.backgroundStyle)},e.prototype._doLayout=function(t){var e=this.model.options.rotation;this._background.setBounds(t.x,t.y,this.width,this.height),isNaN(e)||0===e?this.rotation=0:this.setRotation(this.width/2,this.height/2,e)},e.prototype.setRotation=function(t,e,i){return this._background.setRotation(t,e,i),this._setRotation(t,e,i),this},e.prototype._setRotation=function(t,e,i){},e.CLASS_NAME="rct-annotation",e}(qE),dL={},yL=function(t){function e(i,n){var r=t.call(this,i,n)||this;return r.dom.classList.add(r._defaultCalss()),r.add(r._paneElement=new bk(i,e.PANE_CLASS)),r.add(r._contentContainer=new LP(i,null)),r._doInitContents(i,r._contentContainer),r}return Dx(e,t),e.register=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];t.forEach((function(t){dL[t[0].type]=t[1]}))},e.prototype._defaultCalss=function(){return e.GAUGE_CLASS},e.prototype.clicked=function(t){},e.prototype.prepareGauge=function(t,e){this._prepareGauge(t,e)},e.prototype.getPosition=function(t,e){var i=this.model,n=i.getLeft(t),r=i.getTop(e);return isNaN(n)&&(n=i.getRight(t)-this.width,isNaN(n)&&(n=(t-this.width)/2)),isNaN(r)&&(r=i.getBottom(e)-this.height,isNaN(r)&&(r=(e-this.height)/2)),{x:n,y:r}},e.prototype._prepareStyleOrClass=function(t){this._paneElement.setStyleOrClass(t.options.backgroundStyle)},e.prototype._doMeasure=function(t,e,i,n,r){return e.getSize(i,n)},e.prototype._doLayout=function(){var t=this.width,e=this.height;this._paneElement.resizeRect(t,e);var i=Kx(SP.getPadding(this.dom));t-=i.left+i.right,e-=i.top+i.bottom,this._renderGauge(t,e),this._contentContainer.trans(i.left,i.top)},e.prototype._getGroupView=function(){for(var t=this.parent;t;){if(t instanceof PL)return t;t=t.parent}},e.GAUGE_CLASS="rct-gauge",e.PANE_CLASS="rct-gauge-pane",e}(KE),gL=function(t){function e(e,i,n){var r=t.call(this)||this;return r.view=e,r.from=i,r.to=n,r}return Dx(e,t),e.prototype._doUpdate=function(t){return this.view._runValue=this.from+(this.to-this.from)*t,this.view._renderValue(),!0},e}(dk),vL=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.valueOf=function(t,e,i){var n=t.getParam(e);return qx(n)?rP.getFormatter(i||t.label.numberFormat).toStr(n):n},e._prevValue=0,e}return Dx(e,t),e.prototype._prepareStyleOrClass=function(e){t.prototype._prepareStyleOrClass.call(this,e),this._backgroundView().setStyleOrClass(e._style)},e.prototype._doLayout=function(){this._ani&&(this._ani.stop(),this._ani=null,this._prevValue=0),t.prototype._doLayout.call(this),this._checkValueAnimation()},e.prototype._getValue=function(t){return oS(t.options.minValue,rS(t.options.maxValue,aS(this._runValue,t.options.value)))},e.prototype._checkValueAnimation=function(){var t=this,e=this.model;this._animatable&&e.options.animatable&&e.options.value!==this._prevValue&&(this._ani=new gL(this,this._prevValue,e.options.value).start((function(){return t._runValue=NaN})),this._prevValue=e.options.value)},e}(yL),mL=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e}(QE),bL=function(t){function e(e){var i=t.call(this,e,"rct-gauge-scale")||this;return i.add(i._line=i._createLine(e,"rct-gauge-scale-line")),i.add(i._tickContainer=new LP(e,"rct-gauge-scale-ticks")),i._ticks=new zE(i._tickContainer,SC),i.add(i._labelContainer=new LP(e,"rct-gauge-scale-tick-labels")),i._labels=new zE(i._labelContainer,mL),i}return Dx(e,t),e}(UE),wL=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._createLine=function(t,e){return new SC(t,e)},e.prototype._doMeasure=function(t,e,i,n,r){var o=e._reversed,s=e._vertical,a=e.label,u=e.tick,l=e._steps,h=l.length,p=s?e.options.gap:i,c=s?n:e.options.gap;if(this._tickContainer.setVis(u.visible)&&(this._tickContainer.setStyleOrClass(u._style),this._ticks.prepare(h)),s?p+=u.options.length:c+=u.options.length,this._labelContainer.setVis(a.visible)&&(this._labelContainer.setStyleOrClass(a._style),this._labels.prepare(h,(function(e){e.setModel(t,a,null,null)})),h>0))if(s){var f=0;this._labels.forEach((function(t,e){t.setText(a.getText(l[o?e:h-1-e])),f=oS(t.getBBox().width)})),p+=f}else{var _=0;this._labels.forEach((function(t,e){t.setText(a.getText(l[o?h-1-e:e])),_=oS(t.getBBox().height)})),c+=_}return{width:p,height:c}},e.prototype._doLayout=function(){var t=this.model;t._vertical?this.$_layoutVert(t,this.width,this.height):this.$_layoutHorz(t,this.width,this.height)},e.prototype.$_layoutHorz=function(t,e,i){var n=t.options,r=this._line,o=t.tick,s=t._steps;s.length;var a,u="opposite"===n.position,l=u?-o.options.length:o.options.length,h=u?i-n.gap:n.gap;if(r.setVis(t.line.visible)&&(r.setStyleOrClass(t.line._style),r.setHLine(h,0,e)),this._tickContainer.setVis(o.visible)&&this._ticks.forEach((function(i,n){a=t.getRate(s[n])*e,i.setVLine(a,h,h+l)})),this._labelContainer.visible){var p=Number.MIN_SAFE_INTEGER;h=u?0:h+l,this._labels.forEach((function(i,n){i.layout("center");var r=i.getBBox();a=t.getRate(s[n])*e,i.setVis(a-r.width/2>p)&&(i.trans(a-r.width/2,h),p=a+r.width/2)}))}},e.prototype.$_layoutVert=function(t,e,i){var n=t.options,r=this._line,o=t.tick,s=t._steps;this.height,s.length;var a,u="opposite"===n.position,l=u?o.options.length:-o.options.length,h=u?n.gap:e-n.gap;if(r.setVis(t.line.visible)&&(r.setStyleOrClass(t.line._style),r.setVLine(h,0,i)),this._tickContainer.setVis(o.visible)&&this._ticks.forEach((function(e,n){a=t.getRate(s[n])*i,e.setHLine(a,h,h+l)})),this._labelContainer.visible){u?RP.START:RP.END;var p=u?"left":"right";h=u?h+l:e-n.gap+l,this._labels.forEach((function(e,n){e.layout(p);var r=e.getBBox(),o=u?h:h-r.width;a=t.getRate(s[n])*i,e.trans(o,a-r.height/2)}))}},e}(bL),xL=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._measureLabelSize=function(t,e,i){var n=t.label,r=this.labelView();return n.setText(t.getLabel(n,t.options.value)),r.text=n.options.text,n.buildSvg(r,null,e,i,t,n._domain),GE(r.getBBox())},e.prototype._renderGauge=function(t,e){var i=this.model,n=aS(this._runValue,i.options.value);this._measureGauge(i,i.label,this.labelView(),n,i.isVertical(),t,e),this._renderValue()},e.prototype._renderValue=function(){var t=this.model,e=t.label,i=t.scale,n=this.labelView(),r=aS(this._runValue,t.options.value),o=Kx({},this._rBand);if(this._renderScale(o),this.background().setRect(o),o.height>0&&this._renderBand(t,o,r),"top"!==e._runPos&&"bottom"!==e._runPos||(this._rLabel.height=o.height),this._renderLabel(t,e,n,r),!this._vertical&&("left"===e._runPos||"right"===e._runPos)&&i.visible&&"opposite"===i.options.position){var s=n.getBBox();n.ty+s.height>this.height&&n.transY(oS(0,this.height-s.height))}},e.prototype._measureGauge=function(t,e,i,n,r,o,s){var a=this._rBand=HE(0,0,o,s);if(this._vertical=t._group instanceof jA?t._group.options.vertical:r,e.visible){var u=e._runPos=lS(e.options.position,this._vertical?"top":"left"),l=e._runVert="top"===u||"bottom"===u,h=t._group?t._group.itemLabel.options.gap:e._runGap=e.getGap(l?s:o),p=l?o:e.getWidth(o),c=l?e.getHeight(s):s,f=l?o:e.getMaxWidth(o),_=l?e.getMaxHeight(s):s,d=this._rLabel=HE(0,0,o,s);i.setStyleOrClass(e._style),e.setText(t.getLabel(e,e.options.animatable?n:t.options.value)),i.text=e.options.text,e.buildSvg(i,null,aS(p,f),aS(c,_),t,e._domain);var y=i.getBBox();switch(l?(d.height=aS(c,y.height),a.height=oS(0,a.height-(d.height+h))):(d.width=aS(p,y.width),this._wLabel=t._group?t._group._labelWidth:d.width,a.width=oS(0,a.width-(this._wLabel+h))),u){case"top":a.y=d.height+h;break;case"bottom":d.y=a.height+h;break;case"right":d.x=a.width+h;break;default:a.x=this._wLabel+h}}else this._rLabel=null},e.prototype._renderLabel=function(t,e,i,n){if(i.visible){var r=this._rLabel,o=i.getBBox(),s=r.x,a=r.y;switch(e._runPos){case"top":case"bottom":s+=r.width/2;break;case"right":s=this.width-r.width,i.anchor=RP.START,a+=oS(0,(r.height-o.height)/2);break;default:i.anchor=RP.END,s+=this._wLabel,a+=oS(0,(r.height-o.height)/2)}i.trans(s,a)}},e.prototype._renderScale=function(t){var e,i,n=this.model,r=n.label,o=n.scale,s=this.scaleView(),a=this._vertical?t.height:t.width;if(o._vertical=this._vertical,o._reversed=n.options.reversed,isNaN(this._runValue)&&o.buildSteps(a,n.options.value),s.setVis(n.scaleVisible())){var u=s.measure(this.doc,o,t.width,t.height,1);this._vertical?(e=0,i=t.y,t.width=oS(0,t.width-u.width),"opposite"===o.options.position?e=t.x+t.width:(r._runVert||(e=t.x),t.x+=u.width)):(e=t.x,t.height=oS(0,t.height-u.height),"opposite"===o.options.position?r._runVert?(i=t.y,t.y+=u.height):(this._rLabel.y=t.y+=u.height,i=t.y-u.height):i=t.y+t.height),s.resizeByMeasured().layout().trans(e,i)}},e}(vL),SL=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e}(vL),PL=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._defaultCalss=function(){return e.GAUGE_GROUP_CLASS},e.prototype._doInitContents=function(t,e){e.add(this._gaugeContainer=new LP(t,"rct-gauge-group-container")),this._gaugeViews=this._createPool(this._gaugeContainer)},e.prototype._setChartOptions=function(e,i,n){t.prototype._setChartOptions.call(this,e,i,n),this._gaugeViews.forEach((function(t){return t._setChartOptions(e,i,n)}))},e.prototype._prepareGauge=function(t,e){this._gaugeViews.prepare(e.count()),this._doPrepareGauges(t,e,this._gaugeViews)},e.prototype._renderGauge=function(t,e){this._doRenderGauges(this._gaugeContainer,this._gaugeViews,t,e)},e.prototype._doPrepareGauges=function(t,e,i){i.forEach((function(i,n){i.prepareGauge(t,e.getVisible(n))}))},e.GAUGE_GROUP_CLASS="rct-gauge-group",e}(yL),VL=function(){function t(t,e){var i=this._createAnimation(t,e);window.Animation&&i instanceof Animation&&(i.addEventListener("finish",(function(){t._animationFinished(i)})),t._animationStarted(i))}return t.reveal=function(t,e){new AL(t,e)},t.grow=function(t,e){new EL(t,e)},t.spread=function(t,e){new LL(t,e)},t.fadeIn=function(t){new kL(t,{prop:"opacity",start:"0",end:"1"})},t}(),kL=function(t){function e(e,i){return t.call(this,e,i)||this}return Dx(e,t),e.prototype._createAnimation=function(t,e){var i={},n={};return i[e.prop]=e.start,n[e.prop]=e.end,t.dom.animate([i,n],{duration:dk.DURATION,fill:"none"})},e}(VL),AL=function(t){function e(e,i){return t.call(this,e,i)||this}return Dx(e,t),e.prototype._createAnimation=function(t,e){var i,n=this.$_clipRect(t);switch(e&&e.from){case"top":i=this.$_top(t,n,e);break;case"bottom":i=this.$_bottom(t,n,e);break;case"right":i=this.$_right(t,n,e);break;default:i=this.$_left(t,n,e)}return null==i||i.addEventListener("finish",(function(){n.dom.remove()})),i},e.prototype.$_aniOptions=function(t){return{duration:dk.DURATION,fill:"none"}},e.prototype.$_clipRect=function(t){var e;if(t.model.needClip(!1))e=t.clipRect(.1*-t.width,.1*-t.height,1.2*t.width,1.2*t.height);else{var i=t.control;e=t.model.chart.isInverted()?t.clipRect(-i.width(),.1*-t.height,2*i.width(),1.2*t.height):t.clipRect(.1*-t.width,-i.height(),1.2*t.width,2*i.height())}return e},e.prototype.$_left=function(t,e,i){return e.dom.firstElementChild.animate([{width:"0"},{width:MS(t.width)}],this.$_aniOptions(i))},e.prototype.$_right=function(t,e,i){return e.dom.firstElementChild.animate([{transform:"translateX(".concat(t.width,"px)")},{transform:""}],this.$_aniOptions(i))},e.prototype.$_top=function(t,e,i){return e.dom.firstElementChild.animate([{height:"0"},{height:MS(t.height)}],this.$_aniOptions(i))},e.prototype.$_bottom=function(t,e,i){return e.dom.firstElementChild.animate([{transform:"translateY(".concat(t.height,"px)")},{transform:""}],this.$_aniOptions(i))},e}(VL),CL=function(t){function e(e,i){var n=t.call(this)||this;return n._series=e,n.endHandler=i,n.start(),n}return Dx(e,t),e.prototype._canUpdate=function(){return this._series.parent instanceof EP},e.prototype._stop=function(){t.prototype._stop.call(this),this._series=null},e}(dk),EL=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._doUpdate=function(t){return this._series.setGrowRate(t),!0},e.prototype._doStop=function(){this._series.setGrowRate(NaN)},e}(CL),LL=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._doUpdate=function(t){return this._series.setPosRate(t),!0},e.prototype._doStop=function(){this._series.setPosRate(NaN)},e}(CL),NL=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.duration=500,e}return Dx(e,t),e.prototype._doUpdate=function(t){return this._series.setPrevRate(t),!0},e.prototype._doStop=function(){this._series.setPrevRate(NaN)},e}(CL),ML=function(t){function e(e,i,n,r){var o=t.call(this)||this;return o.duration=n?200:100,o._sv=e,o._focused=n,o._marker=i,n||(o._marker.setBoolData(zL.DATA_UNFOCUS,!0),o._marker.saveStyles(),e.setHoverStyle(o._marker)),o.start(r),o}return Dx(e,t),e.prototype._doStart=function(){this._marker.beginHover(this._sv,this._focused)},e.prototype._doUpdate=function(t){return!!this._marker.parent&&(this._marker.setHoverRate(this._sv,this._focused,t),!0)},e.prototype._doStop=function(){this._marker.setBoolData(zL.DATA_UNFOCUS,!1),!this._focused&&this._marker.restoreStyles(),this._marker.setHoverRate(this._sv,this._focused,NaN),this._marker=null},e}(dk),TL=function(t){function e(e){return t.call(this,e,"rct-point-label")||this}return Dx(e,t),e}(QE),OL=function(t){function e(e){var i=t.call(this,e,"rct-point-labels")||this;return i._labels=[new zE(i,TL),new zE(i,TL)],i._maps=[],i.ignorePointer(),i}return Dx(e,t),e.prototype.clear=function(){this._labels[0].prepare(0),this._labels[1].prepare(0)},e.prototype.prepareLabel=function(t,e,i,n,r,o){var s=r.getPointText(n,i,o.options.text),a=o._style;e.point=n,e.setModel(t,o,null,null),e._text.internalClearStyleAndClass(),e._text.internalSetStyleOrClass(a),e._text.internalSetStyleOrClass(r.getPointLabelStyle(n)),s?(o.prepareRich(s),o.buildSvg(e._text,e._outline,NaN,NaN,o,o.getTextDomain(n))):e.setText(o.getText(o.getValue(n,i)))},e.prototype.prepare=function(t,e){var i=this,n=e.model,r=n.pointLabel;if(r.visible){this.setVis(!0);var o=n.pointLabelCount(),s=this._labels,a=n._getLabeledPoints(),u=this._maps,l=r._style;s[0].prepare(a.length),u[0]={},s[1].prepare(o>1?a.length:0),u[1]={},a.forEach((function(o,a){for(var l=0;l<o.labelCount();l++){var h=s[l].get(a);h.setVis(e.isPointVisible(o))&&(i.prepareLabel(t,h,l,o,n,r),u[l][o.pid]=h)}})),this.setStyleOrClass(l)}else this.clear()},e.prototype.get=function(t,e){var i=this._maps[e];return i&&i[t.pid]},e.prototype.removePoint=function(t,e){for(var i=0;i<2;i++){var n=this.get(t,i);if(n)return void this._labels[i].removeLater(n,e)}},e}(LP),RL=function(t){function e(e){var i=t.call(this,e)||this;return i.add(i._line=new OP(e)),i}return Dx(e,t),e.prototype.setLine=function(t){this._line.setPath(t)},e}(XE),BL=function(t){function e(e){var i=t.call(this,e,"rct-point-label-lines")||this;return i._lines=new zE(i,RL),i}return Dx(e,t),e.prototype.prepare=function(t){var e=this._lines,i=t.getPoints(),n=t.pointLabel,r=this._map={};n.visible?e.prepare(i.count).forEach((function(t,e){var n=i.get(e);t.visible=n.visible,r[n.pid]=t})):e.prepare(0)},e.prototype.get=function(t){return this._map[t.pid]},e}(XE),DL=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.inverted=!1,e}return Dx(e,t),e.prototype.invert=function(t,e){return t!==this.inverted&&((this.inverted=t)?this.setAttr("transform","translate(0,".concat(e,") rotate(90) scale(-1,1)")):this.setAttr("transform","")),this.inverted},e}(LP),FL={},IL="rct-point-hover",jL="rct-point-unhover",zL=function(t){function e(e,i){var n=t.call(this,e,"rct-series "+i)||this;return n._simpleMode=!1,n._growRate=NaN,n._posRate=NaN,n._prevRate=NaN,n._animations=[],n._hoverAnis=[],n._hoverPts=[],n.add(n._pointContainer=new DL(e,"rct-series-points")),n._labelContainer=new OL(e),n}return Dx(e,t),e.register=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];t.forEach((function(t){FL[t[0].type]=t[1]}))},e.prototype.clipInvertable=function(){return!0},e.prototype.getClipContainer=function(){return this._pointContainer},e.prototype.getClipContainer2=function(){return null},e.prototype.defaultAnimation=function(){return"reveal"},e.prototype.setGrowRate=function(t){isNaN(t)&&isNaN(this._growRate)||t===this._growRate||(this._growRate=t,isNaN(t)&&isNaN(this._posRate)&&isNaN(this._prevRate)?this.invalidate():this._doViewRateChanged(t))},e.prototype.setPosRate=function(t){isNaN(t)&&isNaN(this._posRate)||t===this._posRate||(this._posRate=t,isNaN(t)&&isNaN(this._growRate)&&isNaN(this._prevRate)?this.invalidate():this._doPosRateChanged(t))},e.prototype.setPrevRate=function(t){isNaN(t)&&isNaN(this._prevRate)||t===this._prevRate||(this._prevRate=t,isNaN(t)&&isNaN(this._growRate)&&isNaN(this._prevRate)?this.invalidate():this._doPrevRateChanged(t))},e.prototype.isPointVisible=function(t){return t.visible&&!t.isNull&&this.model.isPointLabelVisible(t)},e.prototype._doViewRateChanged=function(t){},e.prototype._doPosRateChanged=function(t){},e.prototype._doPrevRateChanged=function(t){},e.prototype._animationStarted=function(t){this._animations.push(t),this._labelContainer&&this._labelContainer.setVis(!1)},e.prototype._animationFinished=function(t){var e=this._animations.indexOf(t);e>=0&&this._animations.splice(e,1),this._invalidate()},e.prototype.pointByDom=function(t){return this._getPointPool().elementOf(t)},e.prototype.getPointView=function(t){return this._getPointPool().find((function(e){return e.point===t}))},e.prototype.clicked=function(t){var e=this.pointByDom(t);e&&(this._clearHoverClasses(e),!0!==this.model.pointClicked(e.point)&&this._doPointClicked(e))},e.prototype._doPointClicked=function(t){},e.prototype.prepareSeries=function(t,e){this.setModel(e),this.setData("index",e.seriesIndex%12),this.setData("pointcolors",e._colorByPoint()?"a":wS),this.internalClearStyleAndClass(),this.internalSetStyleOrClass(e._style),e._runColor&&this._setModelColor(e._runColor),e._calcedColor=getComputedStyle(this.dom)[this._legendColorProp()],this._visPoints=this._collectVisPoints(e),this._prepareSeries(t,e)},e.prototype._setModelColor=function(t){this.setColor(t)},e.prototype._legendColorProp=function(){return"fill"},e.prototype.needDecoreateLegend=function(){return!1},e.prototype.decoreateLegend=function(t){},e.prototype.afterLayout=function(){this._doAfterLayout()},e.prototype.setHoverStyle=function(t){t.internalImportantStylesOrClass(this.model.options.hoverStyle)},e.prototype.hoverPoint=function(t){var e=t&&this.getPointView(t);e&&e.visible?(this._clearHoverClasses(e),this._getPointPool().forEach((function(t){t!==e&&t.removeClass(IL).addClass(jL)}))):this._getPointPool().forEach((function(t){t.containsClass(jL)&&t.removeClass(jL).addClass(IL)}))},e.prototype._clearHoverClasses=function(t){t instanceof EP&&t.removeClass(IL).removeClass(jL)},e.prototype.focusPoints=function(t){var i=this,n="none"!==this.model.options.hoverEffect,r=this._hoverAnis,o=this._hoverPts,s=[],a=[];n&&(o.forEach((function(n){if(n instanceof EP&&(!t||t.indexOf(n)<0)){var o=r.find((function(t){return t._marker===n}));o&&o.stop(),n.setBoolData(e.DATA_FOCUS,!1),n.restoreStyles(),n instanceof qL&&s.push(new ML(i,n,!1,(function(){n.endHover(i,!1)})))}})),t&&t.forEach((function(t){if(t&&!t.point.isNull){var n=r.find((function(e){return e._marker===t}));n&&n.stop(),t instanceof EP&&(t.setBoolData(e.DATA_FOCUS,!0),a.push(t),t.restoreStyles(),t.saveStyles(),i.setHoverStyle(t),t instanceof qL?s.push(new ML(i,t,!0,(function(){t.endHover(i,!0)}))):i instanceof JL&&i._getPointPool().front(t))}}))),r&&r.forEach((function(t,e){t._started&&s.push(t)})),this._hoverAnis=s,this._hoverPts=a,this.model.pointHovered(a&&a.length>0?a[0].point:null)},e.prototype._needFocusOrder=function(){return!0},e.prototype.getPointsAt=function(t,e){},e.prototype.getSiblings=function(t){return[t]},e.prototype.getSibling=function(t){},e.prototype.applyAutoRotation=function(t,e,i,n){if(this.model.pointLabel.options.autoRotation){var r=t.getBBox(),o=r.width,s=r.height,a=e/i*(n||360)+90;0!==a&&t.setRotation(o/2,s/2,a)}},e.prototype._doAttached=function(t){this.control.loaded&&_k(this.dom,"opacity",0,1,500,null)},e.prototype._prepareStyleOrClass=function(t){},e.prototype._prepareViewRanges=function(t){},e.prototype._doMeasure=function(t,e,i,n,r){return this._animating()||this.setClip(),this.model._xAxisObj._seriesChanged&&this._savePrevs(),this._prepareViewRanges(e),!this._lazyPrepareLabels()&&this._labelContainer.prepare(t,this),e instanceof jk&&e.trendline.visible?(this._trendLineView||this.add(this._trendLineView=new OP(t,"rct-series-trendline")),this._trendLineView.setVis(!0)):this._trendLineView&&this._trendLineView.setVis(!1),{width:i,height:n}},e.prototype._doLayout=function(){this._labelViews(),this._renderSeries(this.width,this.height),this._trendLineView&&this._trendLineView.visible&&this.$_renderTrendline(this._inverted),this._animatable&&!this._simpleMode&&this._runShowEffect(!this.control.loaded&&this.chart().loadAnimatable())},e.prototype._doAfterLayout=function(){var t=this;this.model._xAxisObj._seriesChanged&&new NL(this,(function(){t.invalidate()}))},e.prototype._collectVisPoints=function(t){return t._visPoints},e.prototype.$_setColorIndex=function(t,e){t.setData("index",e.index%12)},e.prototype._setPointColor=function(t,e){t.setColor(e)},e.prototype._setPointStyle=function(t,e,i,n){t.setAttrEx("aria-label",i.ariaHint()),this.$_setColorIndex(t,i),t.internalClearStyleAndClass(),e.options.pointStyle&&t.internalSetStyleOrClass(e.options.pointStyle),n&&n.forEach((function(e){return e&&t.internalSetStyleOrClass(e)})),i.color&&this._setPointColor(t,i.color),i.range&&(i.range.color&&this._setPointColor(t,i.range.color),i.range.style&&t.internalSetStyleOrClass(i.range.style));var r=e.getPointStyle(i);r&&t.internalSetStyleOrClass(r)},e.prototype._labelViews=function(){return this._labelContainer.setVis(this.model.pointLabel.visible&&!this._animating()),this._labelContainer.visible?this._labelContainer:wS},e.prototype._getGrowRate=function(){return aS(this._growRate,1)},e.prototype._animating=function(){return!isNaN(this._growRate)||!isNaN(this._posRate)||!isNaN(this._prevRate)||this._animations.length>0},e.prototype._lazyPrepareLabels=function(){return!1},e.prototype._getShowAnimation=function(){},e.prototype._runShowEffect=function(t){},e.prototype._drawSpline=function(t,e,i,n){var r=e;if(i<0&&(i=t.length-1),1!==Math.abs(i-e)){var o=.35,s={x:0,y:0},a={x:0,y:0},u={x:0,y:0},l={x:t[r+1].px-t[r].px,y:t[r+1].py-t[r].py},h={x:0,y:0},p=Math.sqrt(l.x*l.x+l.y*l.y);l.x/=p,l.y/=p;var c=t[r+1].px-t[r].px,f=t[r].px,_=t[r].py;for(++r;r!=i;r++){u.x=-l.x,u.y=-l.y,l.x=t[r+1].px-t[r].px,l.y=t[r+1].py-t[r].py,p=Math.sqrt(l.x*l.x+l.y*l.y),l.x/=p,l.y/=p,l.x<u.x?(h.x=u.x-l.x,h.y=u.y-l.y):(h.x=l.x-u.x,h.y=l.y-u.y);var d=Math.sqrt(h.x*h.x+h.y*h.y);h.x/=d,h.y/=d,u.y*l.y>=0&&(h={x:1,y:0}),s.x=-h.x*c*o,s.y=-h.y*c*o;var y=f+a.x,g=_+a.y,v=t[r].px+s.x,m=t[r].py+s.y;n.curve(y,g,v,m,t[r].px,t[r].py),c=t[r+1].px-t[r].px,a.x=h.x*c*o,a.y=h.y*c*o,f=t[r].px,_=t[r].py}n.curve(f+a.x,_+a.y,t[r].px,t[r].py,t[r].px,t[r].py)}else n.line(t[r+1].px,t[r+1].py)},e.prototype.$_renderTrendline=function(t){var e=this.model;if(e instanceof jk){var i=e.trendline,n=e._xAxisObj,r=e._yAxisObj,o=r._vlen,s=n._vlen,a=i._points.map((function(e){var i,a;return t?(a=s-n.getPos(s,e.x),i=r.getPos(o,e.y)):(i=n.getPos(s,e.x),a=o-r.getPos(o,e.y)),{x:i,y:a}}));if(this._trendLineView.setVis(a.length>1)){var u=new YC;u.move(a[0].x,a[0].y),i.isCurved()?this._drawSpline(a.map((function(t){return{px:t.x,py:t.y}})),0,-1,u):u.lines.apply(u,zx([],jx(a),!1)),this._trendLineView.setPath(u.end(!1))}}},e.prototype._layoutLabel=function(t,e,i){var n=t.inverted,r=t.x,o=t.y,s=t.hPoint,a=t.labelView,u=t.labelOff;if(a.setVis(r>=0&&r<=e&&o>=0&&o<=i)){a.layout(a.textAlign());var l=t.reversed?s<=0:s<0,h=a.getBBox(),p=!0;switch(n?o-=h.height/2:r-=h.width/2,t.labelPos){case"inside":n?r-=(s+h.width)/2+(t.reversed?u:-u):o+=(s-h.height)/2+(t.reversed?u:-u);break;case"head":n?l?r+=h.width-u:r-=h.width+u:l?o-=h.height+u:o+=u;break;case"foot":n?r-=l?s+h.width+u:s-u:o+=l?s+u:s-h.height-u;break;default:n?l?r-=h.width+u:r+=u:l?o+=u:o-=h.height+u,p=!1}a.setContrast(p&&t.pointView.dom),a.trans(r,o)}},e.prototype._clipRange=function(t,e,i,n,r,o){if(o){var s=t;t=e,e=s}var a="x"===i,u=a?this.model._xAxisObj:this.model._yAxisObj,l=u.options.reversed,h=u.getPos(a?t:e,oS(u.axisMin(),n.fromValue)),p=u.getPos(a?t:e,rS(u.axisMax(),n.toValue));o?a?l?r.setBounds(p,-e,sS(p-h),e):r.setBounds(h,-e,sS(p-h),e):r.setBounds(0,-oS(h,p),t,sS(p-h)):a?l?r.setBounds(p,0,sS(p-h),e):r.setBounds(h,0,sS(p-h),e):r.setBounds(0,e-oS(h,p),t,sS(p-h))},e.prototype._setFill=function(t,e){Gx(e)&&e[jS]?t.internalSetStyle(jS,e[jS]):Xx(e)&&t.dom.classList.add(e)},e.prototype._savePrevs=function(){},e.POINT_CLASS="rct-point",e.DATA_FOCUS="focus",e.DATA_UNFOCUS="unfocus",e.DATA_UNHOVER="unhover",e.LEGEND_MARKER="rct-legend-item-marker",e}(KE),$L=function(t){function e(e){return t.call(this,e,zL.POINT_CLASS)||this}return Dx(e,t),e.prototype.savePrevs=function(){},e}(OP),HL=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.labelViews=[],e}return Dx(e,t),e.prototype.savePrevs=function(){this.wSave=this.wPoint,this.xSave=this.x},e}($L),GL=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.layout=function(t,e,i,n){this.x=t,this.setPath(mk.bar(t-this.wPoint/2,e,this.wPoint,-this.hPoint,i,n))},e}(HL),WL=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.savePrevs=function(){this.wSave=this.width,this.xSave=this.x},e}(XE),YL=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._labelInfo={},e}return Dx(e,t),e.prototype._prepareSeries=function(t,e){this._preparePoints(t,e,this._visPoints)},e.prototype._renderSeries=function(t,e){this._pointContainer.invert(this._inverted,e),this._layoutPoints(t,e)},e.prototype._runShowEffect=function(t){t&&VL.grow(this)},e.prototype._doViewRateChanged=function(t){this._layoutPoints(this.width,this.height)},e.prototype._savePrevs=function(){this._getPointPool().forEach((function(t){return t.savePrevs()}))},e.prototype.getPointsAt=function(t,e){return[]},e}(zL),XL=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._doPrevRateChanged=function(t){0==t&&this._layoutPoints(this.width,this.height),this.invalidate()},e.prototype._layoutPoints=function(t,e){var i=this,n=this.model,r=this._inverted,o=this._getGrowRate(),s=this._prevRate,a=n.pointLabel,u=this._labelViews(),l=n._xAxisObj,h=n._yAxisObj,p=h.options.reversed,c=2*l.unitPad(),f=h.prev(r?t:e),_=l.prev(r?e:t),d=r?0:e,y=h.axisMin(),g=h.getPos(f,y),v=n.getBaseValue(h)||0,m=aS(h.getPos(f,oS(y,v)),g),b=!isNaN(v),w=function(t){return h.getPos(f,t)},x=function(t){return l.getPos(_,t)},S=u&&Kx(this._labelInfo,{inverted:r,reversed:p,labelPos:n.getLabelPosition(a.options.position),labelOff:n.getLabelOff(a.getOffset())});this._getPointPool().forEach((function(a,h){var p=a.point;if(a.setVis(!p.isNull)){var f=l.getUnitLen(_,p.xValue)*(1-c),y=n.getPointWidth(f),g=w(p.yGroup),P=m;if(p.yGroup!=p.yValue){var V=v>p.yGroup,k=p.yGroup<0,A=p.yValue<0,C=V&&k&&!A||V&&!k&&!A||!V&&k&&A||!V&&!k&&A,E=p.yGroup-p.yValue*(C?-1:1);P=w(E)}var L=(g-P)*o,N=x(p.xValue)-f/2;if(isNaN(N)){var M=l.getUnitLen(_,p.xValue)*(1-c);N=x(p.xValue)-M/2}var T=d-g;isNaN(s+a.wSave)||(y=a.wSave+(y-a.wSave)*s),N+=n.getPointPos(f)+y/2,isNaN(s+a.xSave)||(N=a.xSave+(N-a.xSave)*s),p.xPos=N,p.yPos=T,i._layoutPoint(a,h,N,d-m*(1-o)-P*o,y,L),r&&(T=_-x(p.xValue)+f/2,N=d,p.yPos=T-=n.getPointPos(f)+y/2,p.xPos=N+=b?w(p.yGroup)*o:w(p.yGroup*o)),S&&(S.labelView=u.get(p,0))&&(S.pointView=a,S.x=N,S.y=T,S.wPoint=y,S.hPoint=L,i._layoutLabel(S,t,e))}}))},e}(YL),UL=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._doPrevRateChanged=function(t){0==t&&this._layoutPoints(this.width,this.height),this.invalidate()},e.prototype._layoutPoints=function(t,e){var i=this,n=this.model,r=n.chart.isInverted(),o=this._getGrowRate(),s=this._prevRate,a=n.pointLabel,u=this._labelViews(),l=n._xAxisObj,h=n._yAxisObj,p=2*l.unitPad(),c=r?t:e,f=r?e:t,_=r?0:e,d=u&&Kx(this._labelInfo,{inverted:r,labelPos:n.getLabelPosition(a.options.position),labelOff:n.getLabelOff(a.getOffset())});this._getPointPool().forEach((function(a,y){var g=a.point;if(a.setVis(!g.isNull)){var v=l.getUnitLen(f,g.xValue)*(1-p),m=n.getPointWidth(v),b=(h.getPos(c,g.yValue)-h.getPos(c,i._getLowValue(g)))*o,w=l.getPos(f,g.xValue)-v/2,x=_-h.getPos(c,g.yGroup)*o;isNaN(s+a.wSave)||(m=a.wSave+(m-a.wSave)*s),w+=n.getPointPos(v)+m/2,isNaN(s+a.xSave)||(w=a.xSave+(w-a.xSave)*s),g.xPos=w,g.yPos=x,i._layoutPoint(a,y,w,x,m,b),r&&(x=f-l.getPos(f,g.xValue)+v/2,w=_,g.yPos=x-=n.getPointPos(v)+m/2,g.xPos=w+=h.getPos(c,g.yGroup)*o),u&&(d.pointView=a,d.hPoint=b,d.x=w,d.y=x,(d.labelView=u.get(g,0))&&(d.hPoint=b,i._layoutLabel(d,t,e)),(d.labelView=u.get(g,1))&&(r?d.x-=b:d.y+=b,d.hPoint=-b,i._layoutLabel(d,t,e)))}}))},e}(YL),qL=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.beginHover=function(t,e){},e.prototype.setHoverRate=function(t,e,i){},e.prototype.endHover=function(t,e){},e.prototype.distance=function(t,e,i){return this.point.isNull?Number.MAX_VALUE:Math.sqrt(Math.pow(this.point.xPos-e,2)+Math.pow(this.point.yPos-i,2))-t},e}($L),ZL=function(t){function e(e,i){var n=t.call(this,e,i)||this;return n._markers=n._createMarkers(n._pointContainer),n}var i;return Dx(e,t),e._createDrawers=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var i={};return t.forEach((function(t){i[t]=function(e){return mk[t](0-e,0-e,2*e,2*e)}})),i},e.prototype.getHintDistance=function(){return this.model.options.hintDistance},e.prototype._getPointPool=function(){return this._markers},e.prototype.clipInvertable=function(){return!1},e.prototype.getPointsAt=function(t,e){return[]},e.prototype._getDrawer=function(t){return e._drawers[t]||e._drawers.circle},e.prototype._layoutLabelView=function(t,e,i,n,r,o){var s=t.getBBox();"auto"===e&&(e=this._getAutoPos(s.width>=2*n*.9)),t.setVis(null!=e)&&(r-=s.width/2,"inside"===e?t.trans(r,o-s.height/2):e&&t.trans(r,o-n-s.height-i))},i=e,e._drawers=Object.assign({circle:function(t){return mk.circle(0,0,t)}},i._createDrawers("square","diamond","triangle","itriangle","star","rectangle")),e}(zL),KL=function(t){function e(e){var i=t.call(this)||this;return i.series=e,i.duration=300,i}return Dx(e,t),e.prototype._doUpdate=function(t){return!!this.series&&(this.series._zombieRate=this.series._zombie.visible?t:1-t,this.series._resizeZombie(),!0)},e.prototype._doStop=function(){this.series&&(this.series._zombie=null,this.series._zombieAni=null,this.series.invalidate(),this.series=null)},e}(dk),JL=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.togglePointVisible=function(t){var e;this._willZombie=t,t.visible||null===(e=this._labelContainer.get(t,0))||void 0===e||e.hide(200)},e.prototype.isPointVisible=function(e){return e===this._zombie||t.prototype.isPointVisible.call(this,e)},e.prototype._collectVisPoints=function(e){var i=t.prototype._collectVisPoints.call(this,e);return this._willZombie&&!this._willZombie.visible&&(i.push(this._willZombie),i=i.sort((function(t,e){return t.index-e.index}))),i},e.prototype._prepareSeries=function(t,e){var i;this._zombie&&(this._zombie=null,null===(i=this._zombieAni)||void 0===i||i.stop(),this._zombieAni=null),this._willZombie&&(this._zombie=this._willZombie,this._willZombie=null,this._zombieAni=new KL(this),this._zombieAni.start()),this.setData("pointcolors","f")},e.prototype._createPointLegendMarker=function(t,e,i){return bk.create(t,"rct-legend-item-marker",0,0,i,i,i/2)},e.prototype._preparePoint=function(t,e,i,n){this._clearHoverClasses(n),i._legendMarker||i.setLegendMarker(this._createPointLegendMarker(t,i,this.chart()._legend.getMarkerSize())),this._setPointStyle(n,e,i),i._calcedColor=getComputedStyle(n.dom).fill},e}(zL),QL=function(t){function e(i){var n=t.call(this,i,e.CLASS_NAME)||this;return n.add(n._imageView=new JE(i,!1)),n._imageView.onloadProxy=function(){var t=n._imageView.getBBox();n._deflatePaddings(t),n._imageView.resize(t.width,t.height)},n}return Dx(e,t),e.prototype._doMeasure=function(t,e,i,n,r){var o=e.getSize(i,n);return this._deflatePaddings(o),this._imageView.url=this.model.options.imageUrl,this._imageView.resize(o.width,o.height),GE(this._imageView.getBBox())},e.prototype._doLayout=function(e){this._imageView.trans(e.x+this._paddings.left,e.y+this._paddings.top),t.prototype._doLayout.call(this,e)},e.prototype._setRotation=function(t,e,i){this._imageView.setRotation(t,e,i)},e.CLASS_NAME="rct-image-annotation",e}(_L),tN=function(t){function e(i){var n=t.call(this,i,e.CLASS_NAME)||this;return n.add(n._shapeView=new OP(i)),n}return Dx(e,t),e.prototype._doMeasure=function(t,e,i,n,r){var o=e.getSize(i,n);return this._deflatePaddings(o),mk.setShape(this._shapeView,e.getShape(),o.width/2,o.height/2),o},e.prototype._doLayout=function(e){this._shapeView.trans(this._paddings.left+e.x,this._paddings.top+e.y),t.prototype._doLayout.call(this,e)},e.prototype._setRotation=function(t,e,i){this._shapeView.setRotation(t,e,i)},e.CLASS_NAME="rct-shape-annotation",e}(_L),eN=function(t){function e(i){var n=t.call(this,i,e.CLASS_NAME)||this;return n.add(n._textView=new jP(i)),n._textView.anchor=RP.START,n._richText=new JP,n}return Dx(e,t),e.prototype._doMeasure=function(t,e,i,n,r){var o=e.options,s=e.getSize(i,n),a=this._textView;o.writingMode&&this._textView.setStyle("writingMode",o.writingMode),o.textOrientation&&this._textView.setStyle("textOrientation",o.textOrientation),this._deflatePaddings(s),this._richText.setFormat(o.text),this._richText.build(a,i,n,null,e._domain);var u=GE(this._textView.getBBox());return{width:aS(s.width,u.width),height:aS(s.height,u.height)}},e.prototype._doLayout=function(e){this._richText.layout(this._textView,this.textAlign(),this.width,this.height,this._paddings),this._textView.trans(e.x+this._textView.tx,e.y+this._textView.ty),t.prototype._doLayout.call(this,e)},e.prototype._setRotation=function(t,e,i){this._textView.setRotation(t,e,i)},e.CLASS_NAME="rct-text-annotation",e}(_L),iN=function(t){function e(e){var i=t.call(this,e,"rct-linear-gauge-band")||this;return i._thick=0,i._gap=0,i._labelGap=3,i._barViews=new zE(i,bk),i.add(i._labelContainer=new LP(e,"rct-linear-gauge-band-tick-labels")),i._labels=new zE(i._labelContainer,jP),i}return Dx(e,t),e.prototype._doMeasure=function(t,e,i,n,r){var o=e.gauge,s=this._vertical=o instanceof DA?o.isVertical():o.options.vertical,a=e.options.position,u=this._thick=e.getThickness(s?i:n)+("inside"===a?0:this._gap=aS(e.options.gap,0)),l=s?u:i,h=s?n:u,p=this._ranges=e.getRanges();if(this._labelContainer.setVis(e.tickLabel.visible&&p.length>0)){var c=[p[0].fromValue].concat(p.map((function(t){return t.toValue})));if(this._labelContainer.setStyleOrClass(e.tickLabel._style),this._labels.prepare(p.length+1),s){var f=0;this._labels.forEach((function(t,e){t.text=String(c[e]),f=oS(t.getBBox().width)})),l+=f+this._labelGap}else{var _=0;this._labels.forEach((function(t,e){t.text=String(c[e]),_=oS(t.getBBox().height)})),h+=_}}return{width:l,height:h}},e.prototype._doLayout=function(t){var e=this.model,i=e.gauge,n=i.scale,r=n._max-n._min;this._labelContainer.setVis(this.$_layoutBars(i,r,this._ranges)&&this._labelContainer.visible&&"inside"!==e.options.position)&&this.$_layoutLabels(i,r,this._ranges)},e.prototype.$_layoutBars=function(t,e,i){var n=this;if(this._barViews.prepare(i.length),!this._barViews.isEmpty&&e>0){var r=this._vertical,o="inside"===this.model.options.position,s="opposite"===this.model.options.position,a=this.width,u=this.height,l=r?u:a,h=this._thick,p=0;return this._barViews.prepare(i.length).forEach((function(t,c){var f=i[c],_=l*(f.toValue-f.fromValue)/e;if(r){var d=o||s?0:a-h;t.setBounds(d,u-p-_,h,_)}else{var y=s?u-h:0;t.setBounds(p,y,_,n._thick)}t.internalClearStyleAndClass(),t.setFill(f.color),f.style&&t.addStyleOrClass(f.style),p+=_})),!0}},e.prototype.$_layoutLabels=function(t,e,i){var n="opposite"===this.model.options.position;if(this._vertical){var r=this.height,o=n?RP.START:RP.END,s=n?this._thick+this._labelGap:this.width-this._thick-this._labelGap;(l=this._labels.get(0)).anchor=o,l.trans(s,r-l.getBBox().height/2);for(var a=1;a<=i.length;a++){var u=r-r*i[a-1].toValue/e;(l=this._labels.get(a)).anchor=o,l.trans(s,u-l.getBBox().height/2)}}else{var l;r=this.width,s=n?0:this._thick;(l=this._labels.get(0)).trans(0,s);for(a=1;a<=i.length;a++){var h=r*i[a-1].toValue/e;this._labels.get(a).trans(h,s)}}},e}(UE),nN=function(t){function e(e){return t.call(this,e,"rct-linear-gauge")||this}return Dx(e,t),e.prototype._doInitContents=function(t,e){e.add(this._background=new bk(t,"rct-linear-gauge-background")),e.add(this._bandView=new iN(t)),e.add(this._scaleView=new wL(t)),e.add(this._valueView=new bk(t,"rct-linear-gauge-value")),e.add(this._labelView=new jP(t))},e.prototype._backgroundView=function(){return this._background},e.prototype.labelView=function(){return this._labelView},e.prototype.scaleView=function(){return this._scaleView},e.prototype.background=function(){return this._background},e.prototype._prepareGauge=function(t,e){},e.prototype._renderScale=function(e){var i=this.model.band,n=this._bandView;if(t.prototype._renderScale.call(this,e),n.setVis(i.visible)){var r=+i.options.gap||0,o=n.measure(this.doc,i,e.width,e.height,1);n.resizeByMeasured().layout(),this._vertical?"inside"===i.options.position?n.trans(e.x,e.y):"opposite"===i.options.position?(n.trans(e.x+e.width-o.width,e.y),e.width-=o.width+r):(n.trans(e.x,e.y),e.width-=o.width+r,e.x+=o.width+r):"inside"===i.options.position?n.trans(e.x,e.y):"opposite"===i.options.position?(n.trans(e.x,e.y),e.height-=o.height+r,e.y+=o.height+r):(n.trans(e.x,e.y+e.height-o.height),e.height-=o.height+r)}},e.prototype._renderBand=function(t,e,i){var n=this._valueView,r=t.options.reversed,o=t.valueBar,s=t._group?t._group.scale:t.scale;if(n.setVis(!WE(e)&&o.visible&&!s.isEmpty()&&!isNaN(t.options.value)))if(n.setStyleOrClass(o._style),n.internalSetStyleOrClass(o.getStyle(t,i)),this._vertical){var a=e.height*s.getRate(i),u=r?e.y:e.y+e.height-a;n.setBounds(e.x,u,e.width,a)}else{var l=e.width*s.getRate(i),h=r?e.x+e.width-l:e.x;n.setBounds(h,e.y,l,e.height)}},e}(xL),rN=function(t){function e(e,i){return t.call(this,e,i)||this}return Dx(e,t),e.prototype._doInitContents=function(e,i){t.prototype._doInitContents.call(this,e,i),i.insertFirst(this._scaleView=new wL(e)),i.insertFirst(this._textView=new jP(e,"rct-linear-gauge-group-label"))},e.prototype._prepareGauge=function(e,i){this._textView.setVis(i.label.visible)&&this._textView.setStyleOrClass(i.label._style),this._scaleView.setVis(i.scale.visible)&&this._scaleView.setStyleOrClass(i.scale._style),t.prototype._prepareGauge.call(this,e,i)},e.prototype._doRenderGauges=function(t,e,i,n){var r=this.model,o=r.options,s=this._textView,a=HE(0,0,i,n);if(s.visible){s.text=r.label.options.text,r.label.buildSvg(s,null,NaN,NaN,r,null);var u=this._textView.getBBox().height+r.label.getGap(n);a.y+=u,a.height-=u,s.trans(this.width/2,0)}r._labelWidth=r._labelHeight=0,this._gaugeViews.forEach((function(t,e){var o=t._measureLabelSize(r.get(e),i,n);r._labelWidth=oS(r._labelWidth,o.width),r._labelHeight=oS(r._labelHeight,o.height)}));var l,h=(l=a)&&Kx({},l),p=r.itemLabel.options.gap;o.vertical?(h.height-=r._labelHeight+p,r.itemLabel.options.opposite||(h.y+=r._labelHeight+p)):(h.width-=r._labelWidth+p,r.itemLabel.options.opposite||(h.x+=r._labelWidth+p)),this._renderScale(r,a,h),o.vertical?this.$_layoutVert(this.doc,r,e,a):this.$_layoutHorz(this.doc,r,e,a)},e.prototype._renderScale=function(t,e,i){var n,r,o=this._scaleView,s=t.scale,a=t.options.vertical,u=a?e.height:e.width,l=[];if(this._gaugeViews.forEach((function(e,i){l.push(aS(e._runValue,t.get(i).options.value))})),s.buildGroupSteps(u,l),s._vertical=a,o.setVis(s.visible)){var h=o.measure(this.doc,s,i.width,i.height,1);if(a){var p=h.width;i.width-=p,e.width-=p,r=i.y,"opposite"===s.options.position?n=i.x+i.width:(n=i.x,i.x+=p,e.x+=p)}else{var c=h.height;i.height-=c,e.height-=c,n=i.x,"opposite"===s.options.position?(r=i.y,i.y+=c,e.y+=c):r=i.y+i.height}o.resizeByMeasured().layout().trans(n,r)}},e.prototype.$_layoutVert=function(t,e,i,n){var r=n.height,o=(n.width-e.options.itemGap*(i.count-1))/i.count,s=n.y,a=n.x;i.forEach((function(i,n){i.measure(t,e.get(n),o,r,0),i.resize(o,r),i.layout(),i.trans(a,s),a+=o+e.options.itemGap}))},e.prototype.$_layoutHorz=function(t,e,i,n){var r=e.options.itemGap,o=n.width,s=(n.height-r*(i.count-1))/i.count,a=n.x,u=n.y;i.forEach((function(i,n){i.measure(t,e.get(n),o,s,0),i.resize(o,s),i.layout(),i.trans(a,u),u+=s+r}))},e}(PL),oN=function(t){function e(e){return t.call(this,e,"rct-linear-gauge-group")||this}return Dx(e,t),e.prototype._doInitContents=function(e,i){t.prototype._doInitContents.call(this,e,i),i.insertChild(this._bandView=new iN(e),this._scaleView)},e.prototype._createPool=function(t){return new zE(t,nN)},e.prototype._renderScale=function(e,i,n){t.prototype._renderScale.call(this,e,i,n);var r,o,s=this._bandView,a=e.band;if(s.setVis(a.visible)){var u=+a.options.gap||0,l=s.measure(this.doc,a,n.width,n.height,1);if(e.options.vertical){var h=l.width+u;n.width-=h,i.width-=h,o=n.y,"opposite"===a.options.position?r=n.x+n.width+u:(r=n.x,n.x+=h,i.x+=h)}else{var p=l.height+u;n.height-=p,i.height-=p,r=n.x,"opposite"===a.options.position?(o=n.y,n.y+=p,i.y+=p):o=n.y+n.height+u}s.resizeByMeasured().layout().trans(r,o)}},e}(rN),sN=function(t){function e(e){return t.call(this,e,"rct-bullet-gage")||this}return Dx(e,t),e.prototype._doInitContents=function(t,e){e.add(this._background=new bk(t,"rct-bullet-gauge-background")),e.add(this._barContainer=new LP(t,void 0)),this._barViews=new zE(this._barContainer,bk),e.add(this._valueView=new bk(t,"rct-bullet-gauge-value")),e.add(this._targetView=new bk(t,"rct-bullet-gauge-target")),e.add(this._scaleView=new wL(t)),e.add(this._labelView=new jP(t))},e.prototype._backgroundView=function(){return this._background},e.prototype.labelView=function(){return this._labelView},e.prototype.scaleView=function(){return this._scaleView},e.prototype.background=function(){return this._background},e.prototype._prepareGauge=function(t,e){},e.prototype._renderBand=function(t,e,i){var n=t.options,r=t._group,o=t.options.reversed,s=this._vertical,a=r?r.scale:t.scale,u=this._valueView,l=this._targetView;if(this._barContainer.setVis(!WE(e)&&!a.isEmpty())){var h=t.getRanges(a._min,a._max,!1)||(null==r?void 0:r.getRanges(a._min,a._max,!1));h&&(this._barContainer.setRect(e),this._barViews.prepare(h.length),s?this._barViews.forEach((function(t,i){var n=h[i],r=e.height*a.getRate(n.toValue-n.fromValue),s=e.height*a.getRate(n.fromValue);t.setBounds(0,o?s:e.height-s-r,e.width,r),t.internalClearStyleAndClass(),t.setFill(n.color),n.style&&t.addStyleOrClass(n.style)})):this._barViews.forEach((function(t,i){var n=h[i],r=e.width*a.getRate(n.toValue-n.fromValue),s=e.width*a.getRate(n.fromValue);t.setBounds(o?e.width-r-s:s,0,r,e.height),t.internalClearStyleAndClass(),t.setFill(n.color),n.style&&t.addStyleOrClass(n.style)})))}if(u.setVis(!a.isEmpty()&&!isNaN(i)))if(u.setStyleOrClass(t.valueBar._style),i<n.targetValue&&t.valueBar.options.belowStyle&&u.internalSetStyleOrClass(t.valueBar.options.belowStyle),u.internalSetStyleOrClass(t.valueBar.getStyle(t,i)),s){var p=e.height*a.getRate(i),c=o?e.y:e.y+e.height-p;u.setBounds(e.x+e.width/3,c,e.width/3,p)}else{var f=e.width*a.getRate(i),_=o?e.x+e.width-f:e.x;u.setBounds(_,e.y+e.height/3,f,e.height/3)}if(l.setVis(!a.isEmpty()&&!isNaN(n.targetValue)))if(l.setStyleOrClass(t.targetBar._style),s&&e.width>10){c=e.height*a.getRate(n.targetValue);c=o?e.y+c:e.y+e.height-c,l.setBounds(e.x+5,c-1,e.width-10,3)}else if(!s&&e.height>10){_=e.width*a.getRate(n.targetValue);_=o?e.x+e.width-_:e.x+_,l.setBounds(_-1,e.y+5,3,e.height-10)}},e}(xL),aN=function(t){function e(e){return t.call(this,e,"rct-bullet-gauge-group")||this}return Dx(e,t),e.prototype._createPool=function(t){return new zE(t,sN)},e}(rN),uN=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.setExtents=function(t,e){this._center=t,this._exts=e},e.prototype._createLine=function(t,e){return new hL(t,e)},e.prototype._doMeasure=function(t,e,i,n,r){var o=e._steps.length-(360===e.gauge.options.sweepAngle?1:0);return this._line.setVis(e.line.visible)&&this._line.internalSetStyleOrClass(e.line._style),this._tickContainer.setVis(e.tick.visible)&&(this._tickContainer.internalSetStyleOrClass(e.tick._style),this._ticks.prepare(o)),this._labelContainer.setVis(e.label.visible)&&(this._labelContainer.internalSetStyleOrClass(e.label._style),this._labels.prepare(o,(function(t){}))),{width:i,height:n}},e.prototype._doLayout=function(t){var e,i,n,r,o=this.model,s=o._steps,a=o.gauge,u=a.options,l="opposite"===o.options.position?-1:1,h=a._props,p=this._center.x,c=this._center.y,f=this._exts.scale,_=f+this.model.tick.options.length*l,d=h._sweepRad,y=h._startRad,g=u.maxValue-u.minValue,v=u.clockwise;if(this._line.visible&&this._line.setArc(p,c,f,y,v?d:-d,v),this._tickContainer.visible&&this._ticks.forEach((function(t,a,u){var l=o.getRate(s[a])*(v?d:-d)+y;e=p+tS(l)*f,i=c+eS(l)*f,n=p+tS(l)*_,r=c+eS(l)*_,t.setLine(e,i,n,r)})),this._labelContainer.visible){this._labels.get(0).setText(String(u.maxValue));var m=_+.2*this._labels.get(0).getBBox().height*l;this._labels.forEach((function(t,e,i){var a=o.getRate(s[e])*(v?d:-d)+y;t.setText(String(ES(u.minValue+o.getRate(s[e])*g)));var h=t.getBBox();n=p+tS(a)*(m+h.width/2*l)-h.width/2,r=c+eS(a)*(m+h.height/2*l)-h.height/2,t.trans(n,r)}))}},e}(bL),lN=function(t){function e(e){var i=t.call(this,e,"rct-circle-gauge-band")||this;return i._sectorViews=new zE(i,cL),i.add(i._labelContainer=new LP(e,"rct-circle-gauge-band-tick-labels")),i._labels=new zE(i._labelContainer,jP),i}return Dx(e,t),e.prototype.setExtends=function(t,e){this._center=t,this._exts=e},e.prototype._doLayout=function(t){var e=this.model,i=e.gauge,n=i.scale,r=i._props,o=this._center.x,s=this._center.y,a=this._exts.band,u=i.options.clockwise,l=1-this._exts.bandThick/a,h=e.getRanges(),p=r._sweepRad;i.options.maxValue,i.options.minValue;var c=r._startRad;this._sectorViews.prepare(h.length).forEach((function(t,e){var i=n.getRate(h[e].toValue-h[e].fromValue)*p;t.setSector({cx:o,cy:s,rx:a,ry:a,innerRadius:l,start:c,angle:i,clockwise:u}),t.internalClearStyleAndClass(),t.setFill(h[e].color),h[e].style&&t.addStyleOrClass(h[e].style),c+=u?i:-i}))},e}(UE),hN=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.render=function(t,e){var i=t.getRadius(e);return i!==this._radius&&(this._radius=i,this.setPath((new YC).circle(0,0,i).end())),this.internalSetStyleOrClass(t._style),this},e}(OP),pN=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.render=function(t,e){var i=t.getExtents(e);if(i.radius!==this._radius||i.length!==this._length||i.offset!==this._offset){var n=this._radius=i.radius,r=this._offset=i.offset;if(this._length=i.length,this._radius>0&&this._length>0){var o=new YC;o.move(-n,r).line(0,-this._length+r).line(n,r),this.setPath(o.end())}else this.setPath("")}return this.internalSetStyleOrClass(t._style),this},e}(OP),cN=function(t){function e(e){return t.call(this,e,"rct-circle-gauge")||this}return Dx(e,t),e.prototype._doInitContents=function(t,e){e.add(this._rimView=new cL(t,"rct-circle-gauge-rim")),e.add(this._valueView=new cL(t,"rct-circle-gauge-value")),e.add(this._innerView=new cL(t,"rct-circle-gauge-inner")),e.add(this._textView=new jP(t,"rct-circle-gauge-label")),e.add(this._handContainer=new LP(t,void 0)),e.add(this._scaleView=new uN(t)),e.add(this._bandView=new lN(t))},e.prototype._backgroundView=function(){return this._rimView},e.prototype._prepareGauge=function(t,e){this._rimView.setVis(e.rim.visible),this._scaleView.setVis(e.scale.visible),this._bandView.setVis(e.band.visible),this._valueView.setVis(e.valueRim.visible),e.hand.visible?(this._handView||this._handContainer.add(this._handView=new pN(t,"rct-circle-gauge-hand")),this._handView.visible=!0):this._handView&&(this._handView.visible=!1),e.pin.visible?(this._pinView||this._handContainer.add(this._pinView=new hN(t,"rct-circle-gauge-pin")),this._pinView.visible=!0):this._pinView&&(this._pinView.visible=!1),this._textView.setVis(e.labelVisible())&&this._textView.setStyleOrClass(e.label._style)},e.prototype._renderGauge=function(t,e){var i=this.model,n=i.getCenter(t,e),r=i.getExtents(rS(t,e));this.$_renderBackground(i,n,r),this._renderValue()},e.prototype._renderValue=function(){var t=this.model,e=t.options,i=t.scale,n=t.getProps(),r=this._getValue(t),o=i.getRate(aS(r,0)),s=this._center,a=this._exts,u=t.valueRim.getThickness(a.radiusThick),l=this._textView;if(this._valueView.visible){var h=t.valueRim,p=h.options,c=h.getRange(e,r),f=a.value+(p.stroked?0:u/2),_=this._valueView;_.setStyleOrClass(h._style),c&&(_.setStyle(p.stroked?"stroke":"fill",c.color),c.style&&_.addStyleOrClass(c.style)),p.stroked&&(_.setFill("none"),_.setStyle("strokeWidth",MS(u))),_.setBoolData("stroked",p.stroked),_.setSectorEx({cx:s.x,cy:s.y,rx:f,ry:f,innerRadius:(f-u)/f,start:n._startRad,angle:n._sweepRad*o,clockwise:e.clockwise},p.stroked)}if(this._handView){var d=(n._handRad+n._sweepRad*o)*kS;this._handView.render(t.hand,a.radius).transp(s).rotate(t.options.clockwise?d:-d)}if(l.visible){var y=t.label;if(y.setText(t.getLabel(y,y.options.animatable?r:e.value)),l.text=y.options.text,y.buildSvg(l,null,NaN,NaN,t,y._domain),l.setBoolData("grouped",!!t._group),t._group)this.$_layoutGroupedLabel(t,l,a);else{var g=l.getBBox(),v=y.getOffset(this.width,this.height);l.trans(s.x+v.x,s.y-g.height/2+v.y)}}},e.prototype.$_renderBackground=function(t,e,i){var n=t.getProps(),r=n._startRad;this._center=e,this._exts=i,t.scale.buildSteps(i.scale*n._sweepRad,NaN),this._rimView.visible&&(this._rimView.internalSetStyleOrClass(t.rim._style),this._rimView.setSector({cx:e.x,cy:e.y,rx:i.radius,ry:i.radius,innerRadius:1-i.radiusThick/i.radius,start:r,angle:n._sweepRad,clockwise:t.options.clockwise})),this._scaleView.visible&&(this._scaleView.setStyleOrClass(t.scale._style),this._scaleView.measure(this.doc,t.scale,this.width,this.height,0),this._scaleView.setExtents(e,i),this._scaleView.layout()),this._bandView.visible&&(this._bandView.setStyleOrClass(t.band._style),this._bandView.measure(this.doc,t.band,this.width,this.height,0),this._bandView.setExtends(e,i),this._bandView.layout()),this._innerView.setStyleOrClass(t.options.innerStyle);var o=i.inner,s=getComputedStyle(this._innerView.dom),a=parseFloat(s.strokeWidth);a>1&&(o-=a/2),this._innerView.setSector({cx:e.x,cy:e.y,rx:o,ry:o,innerRadius:0,start:0,angle:2*Math.PI,clockwise:!0}),this._pinView&&this._pinView.render(t.pin,o).trans(e.x,e.y)},e.prototype.$_layoutGroupedLabel=function(t,e,i){var n=e.getBBox(),r=this._rimView.getBBox(),o=+t._group.options.labelGap||0;e.anchor=RP.END,e.trans(r.x+r.width/2-o,r.y+(i.radius-i.inner-n.height)/2)},e}(SL),fN=function(t){function e(e){return t.call(this,e,"rct-circle-gauge-group")||this}return Dx(e,t),e.prototype._createPool=function(t){return new zE(t,cN)},e.prototype._doRenderGauges=function(t,e,i,n){var r=this.doc,o=this.model,s=o.props.getCenter(i,n),a=o.props.getExtents(rS(i,n));o.setChildExtents(a),i=n=2*a.radius,e.forEach((function(t,e){t.measure(r,o.getVisible(e),i,n,0),t.resize(i,n),t.layout()})),t.trans(s.x-a.radius,s.y-a.radius)},e}(PL),_N=function(t){function e(e){var i=t.call(this)||this;return i.view=e,i}return Dx(e,t),e.prototype._doUpdate=function(t){return this.view._secRate=t,this.view.$_renderHands(this.view.model,this.view._exts),!0},e}(dk),dN=function(t){function e(e){var i=t.call(this,e,"rct-clock-gauge")||this;return i._rimThick=0,i._secRate=1,i}return Dx(e,t),e.prototype._doInitContents=function(t,e){e.add(this._faceView=new lL(t,"rct-clock-gauge-face")),e.add(this._rimView=new cL(t,"rct-clock-gauge-rim")),e.add(this._labelView=new jP(t,"rct-clock-gauge-label")),this._labelView.layout=BP.MIDDLE,e.add(this._tickContainer=new LP(t,"rct-clock-gauge-ticks")),e.add(this._tickLabelContainer=new LP(t,"rct-clock-gauge-tick-labels")),e.add(this._hourView=new OP(t,"rct-clock-gauge-hour")),e.add(this._minuteView=new OP(t,"rct-clock-gauge-minute")),e.add(this._secondView=new OP(t,"rct-clock-gauge-second")),e.add(this._pinView=new lL(t,"rct-clock-gauge-pin")),this._tickViews=new zE(this._tickContainer,SC,"rct-clock-gauge-tick"),this._minorTickViews=new zE(this._tickContainer,SC,"rct-clock-gauge-minor-tick"),this._tickLabelViews=new zE(this._tickLabelContainer,jP,"rct-clock-gauge-tick-label")},e.prototype._prepareGauge=function(t,e){this._tickViews.prepare(e.tick.visible?12:0),this._minorTickViews.prepare(e.minorTick.visible?48:0);var i=Math.round(12/oS(1,Math.floor(e.tickLabel.options.step)||1));this._tickLabelViews.prepare(e.tickLabel.visible?i:0,(function(t){t.layout=BP.MIDDLE}))},e.prototype._renderGauge=function(t,e){var i=this,n=this.model,r=this._exts=n.getExtents(t,e);this._secRate=1,this.$_renderFace(n,r),this.$_renderHands(n,r),n.options.active&&!n.getTime()?this._runner||(this._runner=setInterval((function(){var t=i._prevSec;i.$_renderHands(i.model,i._exts),sS(t-i._prevSec)>=1&&i._secondView.visible&&n.chart.animatable()&&n.secondHand.options.animatable&&i.$_moveSecond(t)}),1e3)):this._runner&&(clearInterval(this._runner),this._runner=void 0)},e.prototype.$_renderFace=function(t,e){var i=this._labelView,n=e.cx,r=e.cy,o=e.rd,s=this._rimThick=this._rimView.visible?this.model.rim.getThickness(o):0;this._faceView.setCircle(n,r,o),this._rimView.visible&&(this._rimView.internalSetStyleOrClass(t.rim._style),this._rimView.setSector({cx:n,cy:r,rx:o,ry:o,innerRadius:1-s/o,start:0,angle:2*Math.PI,clockwise:!0}));var a=o-s,u=a-this.model.tick.length,l=PS,h=SS/12;if(this._tickViews.forEach((function(t,e){t.setLine(n+tS(l)*a,r+eS(l)*a,n+tS(l)*u,r+eS(l)*u),l+=h})),!this._minorTickViews.isEmpty){var p=0;u=a-this.model.minorTick.length,l=PS,h=SS/60,this._minorTickViews.forEach((function(t){p%5==0&&(l+=h,p++),t.setLine(n+tS(l)*a,r+eS(l)*a,n+tS(l)*u,r+eS(l)*u),l+=h,p++}))}if(!this._tickLabelViews.isEmpty){var c=12/this._tickLabelViews.count,f=SS/12*c;l=PS,this._tickLabelViews.get(0).text="12",u=a-(this.model.tick.length+this.model.tickLabel.options.offset||0),u-=.5*this._tickLabelViews.get(0).getBBox().height,this._tickLabelViews.forEach((function(t,e,i){t.text=String(0===e?12:e*c),t.trans(n+tS(l)*u,r+eS(l)*u),l+=f}))}this._pinView.setCircle(n,r,t.pin.raidus),i.setVis(t.label.visible)&&(i.internalSetStyleOrClass(t.label._style),t.label.buildSvg(i,null,NaN,NaN,null,null),"bottom"===t.label.options.position?i.trans(n,r+u/2):i.trans(n,r-u/2))},e.prototype.$_getNow=function(){var t=this.model.options.timezone,e=this.model.getTime()||new Date;if(!isNaN(t)){var i=e.getMinutes()+(e.getTimezoneOffset()+t);e.setMinutes(i)}return e},e.prototype.$_renderHands=function(t,e){var i,n,r,o,s=this.$_getNow(),a=s.getHours(),u=s.getMinutes(),l=s.getSeconds(),h=e.cx,p=e.cy,c=e.rd,f=new YC;i=t.hourHand,(n=this._hourView).setVis(i.visible)&&(o=SS*(a/12+u/60/12+l/60/60/12),r=i.getLength(c-this._rimThick),f.rect(-i.options.thickness/2,-r,i.options.thickness,r),n.internalSetStyleOrClass(i._style),n.setPath(f.close(!0)).trans(h,p).rotate(o*kS)),i=t.minuteHand,(n=this._minuteView).setVis(i.visible)&&(o=SS*(u/60+l/60/60),r=i.getLength(c-this._rimThick),f.rect(-i.options.thickness/2,-r,i.options.thickness,r),n.internalSetStyleOrClass(i._style),n.setPath(f.close(!0)).trans(h,p).rotate(o*kS)),i=t.secondHand,(n=this._secondView).setVis(i.visible)&&(o=this._secRate<1?SS*(this._aniSec+this._secRate)/60:SS*l/60,r=i.getLength(c-this._rimThick),f.rect(-i.options.thickness/2,-r,i.options.thickness,r),n.internalSetStyleOrClass(i._style),n.setPath(f.close(!0)).trans(h,p).rotate(o*kS),this._prevSec=l)},e.prototype.$_moveSecond=function(t){if(!isNaN(t)){this._aniSec=t;var e=new _N(this);e.duration=this.model.secondHand.options.duration||200,e.start()}},e}(yL),yN=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.getTooltipPos=function(){return{x:this.point.xPos,y:this.point.yPos}},e.prototype.beginHover=function(t,e){this._saveRadius=this._radius},e.prototype.setHoverRate=function(t,e,i){var n=this.point,r=(+t.model.marker.options.hoverScale||1.8)-1,o=this._radius;e?isNaN(i)||(o=this._radius=this._saveRadius*(1+i*r)):o=this._radius=this._saveRadius*(1+r-(isNaN(i)?r:r*i)),mk.setShape(this,t.model.getShape(n),o,o),this.index>0?this.trans(n.px2-o,n.py2-o):this.trans(n.xPos-o,n.yPos-o)},e.prototype.endHover=function(t,e){this._radius=this._saveRadius},e.prototype.distance=function(t,e,i){var n=0===this.index?this.point.xPos:this.point.px2,r=0===this.index?this.point.yPos:this.point.py2;return this.point.isNull?Number.MAX_VALUE:Math.sqrt(Math.pow(n-e,2)+Math.pow(r-i,2))-t},e.prototype.distance2=function(t,e,i,n){var r=0===this.index?this.point.xPos:this.point.px2,o=0===this.index?this.point.yPos:this.point.py2;return this.point.isNull?Number.MAX_VALUE:n?Math.abs(o-i):Math.abs(r-e)},e}(qL),gN=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e}(DL),vN=function(t){function e(e,i){var n=t.call(this,e,i)||this;return n._needBelow=!1,n._rangeClips=[],n.insertFirst(n._lineContainer=new gN(e,"rct-line-series-lines")),n._lineContainer.add(n._line=new OP(e,"rct-line-series-line")),n._markers=new zE(n._pointContainer,yN),n}return Dx(e,t),e.prototype.getClipContainer=function(){return this._lineContainer},e.prototype._getPointPool=function(){return this._markers},e.prototype.needDecoreateLegend=function(){return!0},e.prototype.decoreateLegend=function(t){var e=getComputedStyle(this._line.dom),i=t._marker;i._line.setStyle("strokeWidth",e.strokeWidth),i._shape?(i._marker.internalSetStyles(this.model.marker._style),i._line.setStyle("strokeDasharray","")):i._line.setStyle("strokeDasharray",e.strokeDasharray)},e.prototype._prepareSeries=function(t,e){e instanceof LC&&this._prepareBelow(e),!this._simpleMode&&this.$_prepareMarkers(e,this._visPoints)},e.prototype._prepareViewRanges=function(e){t.prototype._prepareViewRanges.call(this,e),this._prepareRanges(e,e._runRanges)},e.prototype._renderSeries=function(t,e){this._lineContainer.invert(this._inverted,e),this._layoutMarkers(this._visPoints,t,e),this.model.prepareLines(this._visPoints)},e.prototype._doAfterLayout=function(){this._layoutLines()},e.prototype._runShowEffect=function(t){this._polar?t&&VL.grow(this):t&&VL.reveal(this,{from:function(t){var e=t.model._xAxisObj.reversed;return t._inverted?e?"top":"bottom":e?"right":"left"}(this)})},e.prototype._doViewRateChanged=function(t){this._layoutMarkers(this._visPoints,this.width,this.height),this._layoutLines()},e.prototype.getPointsAt=function(t,e){return[]},e.prototype.getNearest=function(t,e){var i=this.model.marker.options.radius,n=this._markers._internalItems();if(n&&n.length>0){var r=n.reduce((function(n,r){return n.distance(i,t,e)<r.distance(i,t,e)?n:r}));return{pv:r,dist:r.distance(i,t,e)}}},e.prototype.getNearest2=function(t,e,i){var n=this.model.marker.options.radius,r=this._markers._internalItems();if(r&&r.length>0){var o=r.reduce((function(r,o){return r.distance2(n,t,e,i)<o.distance2(n,t,e,i)?r:o}));return{pv:o,dist:o.distance2(n,t,e,i)}}},e.prototype.getHintDistance=function(){return this.model.marker.options.hintDistance},e.prototype.canHover=function(t,e,i){return t<=this.model.marker.options.radius+i},e.prototype._markersPerPoint=function(){return 1},e.prototype._prepareBelow=function(t){var e,i,n=this.control,r=this._lowLine;if(this._needBelow=t.options.belowStyle&&t._minY<t.getBaseValue(t._yAxisObj),this._needBelow)return r||(this._lineContainer.insertChild(r=this._lowLine=new OP(this.doc,"rct-line-series-line rct-line-series-line-below"),this._line),this._upperClip=n.clipBounds(),this._lowerClip=n.clipBounds(),this._upperClip.setAttr(EP.ASSET_KEY,"1"),this._lowerClip.setAttr(EP.ASSET_KEY,"1")),this._line.setClip(this._upperClip),r.setClip(this._lowerClip),!0;null==r||r.setClip(),this._line.setClip(),null===(e=this._upperClip)||void 0===e||e.remove(),null===(i=this._lowerClip)||void 0===i||i.remove()},e.prototype._prepareRanges=function(t,e){var i=this._rangeClips,n=this._rangeLines;if(e){for(n||(n=this._rangeLines=new zE(this._lineContainer,OP)),n.prepare(e.length);i.length<e.length;){var r=new TP(this.doc);r.setAttr(EP.ASSET_KEY,"1"),this.control.clipContainer().append(r.dom),i.push(r)}for(;i.length>e.length;)i.pop().remove()}else n&&(n.freeAll(),i.forEach((function(t){return t.remove()})),i.length=0)},e.prototype.$_resetClips=function(t,e,i,n){var r,o=this.model._yAxisObj.options.reversed;(r=this._upperClip)&&(n?o?r.setBounds(0,-i,e,t):r.setBounds(0,-t,e,t-i):o?r.setBounds(0,0+i,t,e-i):r.setBounds(0,0,t,i)),(r=this._lowerClip)&&(this._inverted?o?r.setBounds(0,-t,e,t):r.setBounds(0,-i,e,t-i):o?r.setBounds(0,0,t,i):r.setBounds(0,0+i,t,e-i))},e.prototype.$_prepareMarkers=function(t,e){var i=this,n=t instanceof LC&&this._needBelow,r=n?t.getBaseValue(t._yAxisObj):NaN,o=[t.marker._style,null];if(this._pointContainer.setVis(!t._simpleMode)){var s=this._markersPerPoint(),a=n&&t.options.belowStyle,u=e.length;this._markers.prepare(u*s,(function(s,l){var h=e[l%u];h.isNull||(s.point=h,o[1]=n&&h.yValue<r?a:null,i._setPointStyle(s,t,h,o)),s.point=h,s.index=l<u?0:1}))}else this._markers.prepare(0)},e.prototype._layoutMarker=function(t,e,i,n){var r=this.model,o=t.point,s=t._radius=r.getRadius(o);e&&t.internalSetStyleOrClass(e),mk.setShape(t,r.getShape(o),s,s),t.setPos(i,n),t.trans(i-=s,n-=s)},e.prototype._layoutMarkers=function(t,e,i){var n=this,r=this.model,o=r.marker,s=o._style,a=this._inverted,u=r.needClip(!1),l=this._getGrowRate(),h=o.visible,p=o.options.firstVisible,c=o.options.lastVisible,f=r.pointLabel,_=f.options.position,d=f.options.align,y=f.getAlignOffset(),g=f.options.textAlign,v=f.getOffset(),m=this._labelViews(),b=r._xAxisObj,w=r._yAxisObj,x=this._polar=r.chart._body.getPolar(b),S=!!x,P=w.prev(a?e:i),V=b.prev(x?x.rd*SS:a?i:e),k=a?0:i,A=t.length;t.forEach((function(t,r){var o,f,C,E;x?(C=x.start+b.getPos(V,t.xValue),E=w.getPos(x.rd,t.yGroup)*l,o=t.px=x.cx+E*tS(C),f=t.py=x.cy+E*eS(C)):(o=t.px=b.getPos(V,t.xValue),f=t.py=k-w.getPos(P,t.yGroup),a&&(o=w.getPos(P,t.yGroup),f=i-b.getPos(V,t.xValue))),t.xPos=o,t.yPos=f;var L=n._markers.get(r),N=m&&m.get(t,0);if(L&&L.setVis(!t.isNull&&(S||!u||o>=0&&o<=e&&f>=0&&f<=i))){n._layoutMarker(L,s,o,f);var M=0==r&&null!=p?p:r==A-1&&null!=c?c:h;if(L.setStyle("opacity",M?"1":"0"),N){N.setContrast(null).layout(g);var T=N.getBBox(),O=L._radius;if(N.visible=!0,x){switch(_){case"inside":E-=v;break;case"foot":E-=T.height/2+v;break;default:E+=T.height+v}o=x.cx+E*tS(C),f=x.cy+E*eS(C)-T.height/2,n.applyAutoRotation(N,C,x.total,b.options.totalAngle)}else switch(_){case"inside":f-=T.height/2+v;break;case"foot":f+=v+(h?O:0);break;default:f-=T.height+v+(h?O:0)}switch(d){case"left":o-=T.width+(h?O:0)+y;break;case"right":o+=(h?O:0)+y;break;default:o-=T.width/2+y}N.trans(o,f)}}else N&&N.setVis(!1)}))},e.prototype._layoutLines=function(){var t=this,e=this.model;if(this._lineContainer.setVis(e._lines.length>0)){var i=this.width,n=this.height,r=this._inverted,o=e instanceof LC&&this._needBelow,s=this._buildLines2(e._lines,this._polar);if(e._runRanges)this._rangeLines.forEach((function(o,a){var u=e._runRanges[a];o.setPath(s),o.internalClearStyleAndClass(),o.internalSetStyle("stroke",u.color),o.internalSetStyleOrClass(u.style),SP.setImportantStyle(o.dom.style,jS,"none"),o.setClip(t._rangeClips[a]),t._clipRange(i,n,e._runRangeValue,u,t._rangeClips[a],r)}));else{var a=this._line;a.setPath(s),a.internalClearStyleAndClass(),a.internalSetStyle("stroke",e._runColor),a.internalSetStyleOrClass(e._style),SP.setImportantStyle(a.dom.style,jS,"none")}if(o){var u=this._lowLine,l=e._yAxisObj,h=e.getBaseValue(l);r?this.$_resetClips(i,n,l.getPos(i,h),!0):this.$_resetClips(i,n,n-l.getPos(n,h),!1),u.setPath(s),u.internalClearStyleAndClass(),u.internalSetStyle("stroke",e._runColor),u.internalSetStyleOrClass(e._style),u.internalSetStyleOrClass(e.options.belowStyle),SP.setImportantStyle(u.dom.style,jS,"none")}}},e.prototype._buildLine2=function(t,e,i,n){var r=this.model;"spline"===e?this._drawCurve2(t,i,n):r instanceof LC&&"step"===e?this._drawStep2(t,i,n,i?r.backDir():r.options.stepDir):this._drawLine2(t,i,n)},e.prototype._buildLines2=function(t,e){var i=this.model,n=i.getLineType(),r=new YC;return"spline"===n?this._drawCurves(t,r):i instanceof LC&&"step"===n?this._drawSteps(t,r,i.options.stepDir):this._drawLines(t,r),r.end(e)},e.prototype._drawLine2=function(t,e,i){if(t.length>1){i.moveOrLine(e,t[0].px,t[0].py);for(var n=1;n<t.length;n++)this.model instanceof LC&&this.model.options.connectNullPoints&&t[n].isNull||i.line(t[n].px,t[n].py)}},e.prototype._drawLines=function(t,e){var i=this;t.forEach((function(t){return i._drawLine2(t,!1,e)}))},e.prototype._drawStep2=function(t,e,i,n){if(t.length>1){i.moveOrLine(e,t[0].px,t[0].py);for(var r=1;r<t.length;r++)switch(n){case"backward":i.line(t[r-1].px,t[r].py),i.line(t[r].px,t[r].py);break;case"center":i.line((t[r].px+t[r-1].px)/2,t[r-1].py),i.line((t[r].px+t[r-1].px)/2,t[r].py),r+1===t.length&&i.line(t[r].px,t[r].py);break;default:i.line(t[r].px,t[r-1].py),i.line(t[r].px,t[r].py)}}},e.prototype._drawSteps=function(t,e,i){var n=this;t.forEach((function(t){return n._drawStep2(t,!1,e,i)}))},e.prototype._drawCurve2=function(t,e,i){t.length>1&&(i.moveOrLine(e,t[0].px,t[0].py),this._drawSpline(t,0,t.length-1,i))},e.prototype._drawCurves=function(t,e){var i=this;t.forEach((function(t){return i._drawCurve2(t,!1,e)}))},e.prototype._drawCurve=function(t,e,i){var n,r=t.length;if(t&&t.length>1){var o=e;for(n=e;n<r;)if(t[n].isNull){n-1>o&&this._drawSpline(t,o,n-1,i);do{n++}while(n<r&&t[n].isNull);o=n,n<r&&(i.move(t[n].px,t[n].py),n++)}else n++;n-1>o&&this._drawSpline(t,o,n-1,i)}},e.prototype._buildAreas=function(t,e,i){var n=new YC;i=i||e;for(var r=0;r<t.length;r+=2){var o=t[r],s=t[r+1];this._buildLine2(o,e,!1,n),this._buildLine2(s,i,!0,n)}return n.end(!0)},e.prototype.setHoverStyle=function(e){t.prototype.setHoverStyle.call(this,e),e.internalImportantStylesOrClass(this.model.marker.options.hoverStyle)},e}(zL),mN=function(t){function e(i){var n=t.call(this,i,e.CLASS)||this;return n._flagView=new QE(i,"rct-line-series-flag"),n._pointContainer.add(n._flagView),n}return Dx(e,t),e.prototype._legendColorProp=function(){return"stroke"},e.prototype._doLayout=function(){t.prototype._doLayout.call(this);var e,i=this.model,n=i.flag,r=this._flagView;if(r.setVis(n.visible&&!!(e=n.label()))){r.setText(e),r.setModel(this.doc,n,null,null),r.layout("left");var o=n.options.offset,s=r.getBBox(),a=void 0,u=void 0;a=this._markers.last.x,u=this._markers.last.y,this._inverted?(i._xAxisObj.options.reversed?u+=o:u-=o+s.height,a-=s.width/2):(i._xAxisObj.options.reversed?a-=o+s.width:a+=o,u-=s.height/2),r.trans(a,u)}},e.CLASS="rct-line-series",e}(vN),bN=function(t){function e(e){var i=t.call(this,e,"rct-arearange-series")||this;return i.insertFirst(i._areaContainer=new gN(e,"rct-arearange-series-areas")),i._areaContainer.add(i._area=new OP(e,"rct-arearange-series-area")),i._lineContainer.add(i._lowerLine=new OP(e,"rct-areanrange-series-line")),SP.setImportantStyle(i._lowerLine.dom.style,"fill","none"),i}return Dx(e,t),e.prototype._markersPerPoint=function(){return 2},e.prototype.getSiblings=function(t){return[t,this._markers.find((function(e){return e!==t&&e.point===t.point}))]},e.prototype.getSibling=function(t){return t&&this._markers.find((function(e){return e!==t&&e.point===t.point}))},e.prototype.decoreateLegend=function(e){t.prototype.decoreateLegend.call(this,e);var i=getComputedStyle(this._area.dom);e._marker._area.setStroke("none"),e._marker._area.setFill(i.fill),e._marker._area.setStyle("fillOpacity",i.fillOpacity)},e.prototype._renderSeries=function(e,i){this._areaContainer.invert(this.model.chart.isInverted(),i),t.prototype._renderSeries.call(this,e,i)},e.prototype._layoutMarkers=function(e,i,n){t.prototype._layoutMarkers.call(this,e,i,n);var r=this.model,o=r.marker,s=o._style,a=o.visible,u=this._inverted;r._xAxisObj;for(var l=r._yAxisObj,h=u?i:n,p=u?0:n,c=0,f=e.length;c<f;c++){(d=e[c]).yLow=p-l.getPos(h,d.lowValue)}var _=this._markers;for(c=0,f=e.length;c<f;c++){var d=e[c],y=_.get(f+c),g=void 0,v=void 0;u?(g=d.px2=l.getPos(h,d.lowValue),v=d.py2=_.get(c).ty+r.getRadius(d)):(g=d.px2=d.xPos,v=d.py2=d.yLow),y&&y.setVis(!d.isNull&&g>=0&&g<=i&&v>=0&&v<=n)&&(this._layoutMarker(y,s,g,v),y.setStyle("opacity",a||0==c&&!0===o.options.firstVisible||c===f-1&&!0===o.options.lastVisible?"1":"0"))}},e.prototype._layoutLines=function(){t.prototype._layoutLines.call(this);var e=this._area,i=this.model;if(this._areaContainer.setVis(i._lines.length>0)){var n=this._buildAreas(i._lines,i.getLineType());e.setPath(n),e.unsetData("polar"),e.setBoolData("simple",this._simpleMode),e.internalClearStyleAndClass(),i._runColor&&e.setFill(i._runColor),this._setFill(e,i._style),i.options.areaStyle&&e.internalSetStyleOrClass(i.options.areaStyle)}},e}(vN),wN=function(t){function e(e,i){var n=t.call(this,e,i||"rct-area-series")||this;return n._rangeAreaClips=[],n.insertFirst(n._areaContainer=new gN(e,"rct-area-series-areas")),n._areaContainer.insertFirst(n._area=new OP(e,"rct-area-series-area")),n}return Dx(e,t),e.prototype.decoreateLegend=function(e){t.prototype.decoreateLegend.call(this,e);var i=getComputedStyle(this._area.dom);e._marker._area.setStroke("none"),e._marker._area.setFill(i.fill),e._marker._area.setStyle("fillOpacity",i.fillOpacity)},e.prototype.getClipContainer2=function(){return this._areaContainer},e.prototype._prepareBelow=function(e){var i=this._lowArea;if(t.prototype._prepareBelow.call(this,e))return i||this._areaContainer.add(i=this._lowArea=new OP(this.doc,"rct-area-series-area")),this._area.setClip(this._upperClip),i.setClip(this._lowerClip),!0;null==i||i.setClip(),this._area.setClip()},e.prototype._prepareRanges=function(e,i){t.prototype._prepareRanges.call(this,e,i);var n=this._rangeAreas,r=this._rangeAreaClips;if(i){for(n||(n=this._rangeAreas=new zE(this._areaContainer,OP,"rct-area-series-area")),n.prepare(i.length);r.length<i.length;){var o=new TP(this.doc);o.setAttr(EP.ASSET_KEY,"1"),this.control.clipContainer().append(o.dom),r.push(o)}for(;r.length>i.length;)r.pop().remove()}else n&&(n.freeAll(),r.forEach((function(t){return t.remove()})),r.length=0)},e.prototype._renderSeries=function(e,i){t.prototype._renderSeries.call(this,e,i),this.model.prepareAreas(),this._areaContainer.invert(this._inverted,i)},e.prototype._layoutMarkers=function(e,i,n){t.prototype._layoutMarkers.call(this,e,i,n);for(var r=this._inverted,o=this.model._yAxisObj,s=r?i:n,a=r?0:n,u=0,l=e.length;u<l;u++){var h=e[u];h.yLow=a-o.getPos(s,h.yGroup-h.yValue)}},e.prototype._doAfterLayout=function(){var e;null===(e=this.model._group)||void 0===e||e.prepareLines(this.model),t.prototype._doAfterLayout.call(this),this._polar?this._layoutPolar(this._area,this._visPoints):this.$_layoutArea(this._area)},e.prototype.$_layoutArea=function(t){var e=this,i=this.model,n=i.options;if(this._areaContainer.setVis(i._areas.length>0)){var r=this.width,o=this.height,s=i.chart.isInverted(),a=this._needBelow?this._lowArea:void 0,u=this._buildAreas(i._areas,i.getLineType());i._runRanges?this._rangeAreas.forEach((function(t,n){var a=i._runRanges[n];t.setBoolData("simple",e._simpleMode),t.setPath(u),t.internalClearStyleAndClass(),t.setFill(a.color),e._setFill(t,a.style),a.areaStyle&&t.internalSetStyleOrClass(a.areaStyle),t.setClip(e._rangeAreaClips[n]),e._clipRange(r,o,i._runRangeValue,a,e._rangeAreaClips[n],s)})):(t.setPath(u),t.unsetData("polar"),t.setBoolData("simple",this._simpleMode),t.internalClearStyleAndClass(),i._runColor&&t.internalSetStyle(jS,i._runColor),this._setFill(t,n.style),i.options.areaStyle&&t.internalSetStyleOrClass(n.areaStyle)),a&&(a.setBoolData("simple",this._simpleMode),a.setPath(u),a.internalClearStyleAndClass(),i._runColor&&a.internalSetStyle(jS,i._runColor),n.areaStyle&&a.internalSetStyleOrClass(n.areaStyle),this._setFill(a,i.options.belowStyle),n.belowAreaStyle&&a.internalSetStyleOrClass(n.belowAreaStyle))}},e.prototype._layoutPolar=function(t,e){var i=this.model,n=i._group,r=i._yAxisObj,o=r instanceof wA?i.getBaseValue(r):NaN,s=this.height;r.getPos(s,fS.isNotEmpty(o)?o:r.axisMax());var a=new YC;if(!n||"stack"!==n.options.layout&&"fill"!==n.options.layout){a.move(e[0].xPos,e[0].yPos);for(u=1;u<e.length;u++)a.line(e[u].xPos,e[u].yPos);t.setPath(a.end())}else{a.move(e[0].xPos,e[0].yLow),a.line(e[0].xPos,e[0].yPos);for(var u=1;u<e.length;u++)a.line(e[u].xPos,e[u].yPos);a.line(e[e.length-1].xPos,e[e.length-1].yLow);for(var u=e.length-1;u>=0;u--)a.line(e[u].xPos,e[u].yLow);t.setPath(a.end())}t.setBoolData("polar",!0),t.clearStyleAndClass(),t.setFill(i._runColor),t.addStyleOrClass(i._style)},e}(vN),xN=function(t){function e(e){var i=t.call(this,e,"rct-barrange-series")||this;return i._bars=new zE(i._pointContainer,GL),i}return Dx(e,t),e.prototype._getPointPool=function(){return this._bars},e.prototype._prepareSeries=function(e,i){t.prototype._prepareSeries.call(this,e,i),this._rd=+i.options.cornerRadius||0},e.prototype._preparePoints=function(t,e,i){var n=this;this._bars.prepare(i.length,(function(t,r){var o=t.point=i[r];n._setPointStyle(t,e,o)}))},e.prototype._getLowValue=function(t){return t.lowValue},e.prototype._layoutPoint=function(t,e,i,n,r,o){t.wPoint=r,t.hPoint=o,t.layout(i,n+o,this._rd,this._rd)},e}(UL),SN=function(t){function e(e){return t.call(this,e,zL.POINT_CLASS)||this}return Dx(e,t),e.prototype.savePrevs=function(){},e}(cL),PN=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._labelInfo={},e}return Dx(e,t),e.prototype._getPointPool=function(){return this.chart().isPolar()?this._sectors:this._bars},e.prototype._preparePoints=function(t,e,i){e.chart.isPolar()?this.$_parepareSectors(t,e,this._visPoints):this.$_parepareBars(t,e,this._visPoints)},e.prototype._setPointStyle=function(e,i,n){t.prototype._setPointStyle.call(this,e,i,n),n.yValue<i.options.baseValue&&i.options.belowStyle&&e.addStyleOrClass(i.options.belowStyle)},e.prototype._layoutPoints=function(e,i){this.model.chart.isPolar()?this.$_layoutSectors():t.prototype._layoutPoints.call(this,e,i)},e.prototype.$_parepareBars=function(t,e,i){var n=this;this._bars||(this._bars=this._createBarPool(this._pointContainer)),this._bars.prepare(i.length,(function(t,r){var o=t.point=i[r];n._setPointStyle(t,e,o)}))},e.prototype.$_parepareSectors=function(t,e,i){var n=this;this._sectors||(this._sectors=new zE(this._pointContainer,SN)),this._sectors.prepare(i.length,(function(t,r){var o=t.point=i[r];n._setPointStyle(t,e,o)}))},e.prototype.$_layoutSectors=function(){var t,e,i,n=this,r=this.model,o=this._getGrowRate(),s=r.pointLabel,a=this._labelViews(),u=r.chart._body,l=r._xAxisObj,h=r._yAxisObj,p=u.getPolar(l),c=l.getTotalAngle(),f=p.cx,_=p.cy;a&&(t=this._labelInfo,e=r.getLabelPosition(s.options.position),i=r.getLabelOff(s.getOffset())),this._sectors.forEach((function(s,u){var d=s.point,y=h.getPos(p.rd,d.yValue)*o,g=h.getPos(p.rd,d.yGroup)*o,v=l.getUnitLen(c,d.xValue),m=r.getPointWidth(v),b=p.start+l.getPos(c,d.xValue);if(b+=r.getPointPos(v),s.setSector({cx:f,cy:_,rx:g,ry:g,innerRadius:(g-y)/g,start:b-m/2,angle:m,clockwise:!0}),b=s.start+s.angle/2,d.xPos=f+s.rx*tS(b),d.yPos=_+s.ry*eS(b),a&&(t.labelView=a.get(d,0))){t.labelView.layout("center");var w=t.labelView.getBBox(),x=void 0;"outside"===e?(g=_+(s.ry+w.height+i)*eS(b),x=f+(s.rx+w.width+i)*tS(b)):"head"===e?(g=_+(s.ry-w.height/2-i)*eS(b)-w.height/2,x=f+(s.rx-w.height/2-i)*tS(b)):(g=_+.7*s.ry*eS(b)-w.height/2,x=f+.7*s.rx*tS(b)),n.applyAutoRotation(t.labelView,b,p.total,l.options.totalAngle),t.labelView.trans(x-w.width/2,g)}}))},e}(XL),VN=function(t){function e(e){return t.call(this,e,"rct-bar-series")||this}return Dx(e,t),e.prototype._createBarPool=function(t){return new zE(t,GL)},e.prototype._prepareSeries=function(e,i){t.prototype._prepareSeries.call(this,e,i),this._rdTop=+i.options.topRadius||0,this._rdBottom=+i.options.bottomRadius||0},e.prototype._layoutPoint=function(t,e,i,n,r,o){t.wPoint=r,t.hPoint=o,t.layout(i,n,this._rdTop,this._rdBottom)},e}(PN),kN=function(t){function e(e){return t.call(this,e,"rct-bellcurve-series")||this}return Dx(e,t),e}(wN),AN=function(t){function e(e){return t.call(this,e,zL.POINT_CLASS+" rct-boxplot-point")||this}return Dx(e,t),e.prototype.layout=function(t,e){var i=this.point,n=i.yValue-i.minValue,r=t/2,o=0+e-e*(i.lowValue-i.minValue)/n,s=0+e-e*(i.highValue-i.minValue)/n,a=e*(i.highValue-i.lowValue)/n;i.color&&this._box.setFill(i.color),this.x=this.tx+r,this._stemUp.setVLine(r,0,s),this._stemDown.setVLine(r,o,e),this._min.setHLine(0,t/4,3*t/4),this._max.setHLine(0+e,t/4,3*t/4),this._box.setBox(0,s,t,a),this._mid.setHLine(0+e-e*(i.midValue-i.minValue)/n,0,t)},e.prototype._doInitChildren=function(t){this.add(this._stemUp=new SC(t,"rct-boxplot-point-stem")),this.add(this._stemDown=new SC(t,"rct-boxplot-point-stem")),this.add(this._box=new bk(t,"rct-boxplot-point-box")),this.add(this._mid=new SC(t,"rct-boxplot-point-mid")),this.add(this._min=new SC(t,"rct-boxplot-point-min")),this.add(this._max=new SC(t,"rct-boxplot-point-max"))},e}(WL),CN=function(t){function e(e){var i=t.call(this,e,"rct-boxplot-series")||this;return i._boxes=new zE(i._pointContainer,AN),i}return Dx(e,t),e.prototype._getPointPool=function(){return this._boxes},e.prototype._getLowValue=function(t){return t.minValue},e.prototype._preparePoints=function(t,e,i){var n=this;this._boxes.prepare(i.length,(function(t,r){var o=t.point=i[r];n._setPointStyle(t,e,o)}))},e.prototype._layoutPoint=function(t,e,i,n,r,o){t.trans(i-r/2,n),t.layout(r,o)},e}(UL),EN=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e}(qL),LN=function(t){function e(e){return t.call(this,e,"rct-bubble-series")||this}return Dx(e,t),e.prototype._createMarkers=function(t){return new zE(t,EN)},e.prototype._prepareSeries=function(t,e){this.$_prepareMarkers(e,this._visPoints)},e.prototype._renderSeries=function(t,e){this.$_layoutMarkers(t,e)},e.prototype._runShowEffect=function(t){t&&VL.grow(this)},e.prototype._doViewRateChanged=function(t){this.$_layoutMarkers(this.width,this.height)},e.prototype.$_prepareMarkers=function(t,e){var i=this;t.getShape();var n=e.length;this._markers.prepare(n,(function(n,r){var o=n.point=e[r];i._setPointStyle(n,t,o)}))},e.prototype._getAutoPos=function(t){return t?"outside":"inside"},e.prototype.$_layoutMarkers=function(t,e){var i,n=this,r=this.model,o=r.options,s=this._inverted,a=r.needClip(!1),u=this._getGrowRate(),l=+o.rotation||0,h=r.pointLabel,p=h.options.position,c=h.getOffset(),f=this._labelViews(),_=r._xAxisObj,d=r._yAxisObj,y=this._polar=r.chart._body.getPolar(_),g=d.prev(s?t:e),v=_.prev(y?y.rd*SS:s?e:t),m=(r._xAxisObj._vlen<r._yAxisObj._vlen?r._xAxisObj:r._yAxisObj)._vlen,b=r.getPixelMinMax(m),w=b.min,x=b.max,S=s?0:e,P=this._getDrawer(o.shape);this._markers.forEach((function(o,h){var m=o.point,b=f&&(i=f.get(m,0));if(o.setVis(!m.isNull&&!isNaN(m.zValue))){var V=(o._radius=r.getRadius(m.zValue,w,x))*u,k=void 0,A=void 0;if(y){var C=y.start+_.getPos(SS,m.xValue),E=d.getPos(y.rd,m.yValue);k=y.cx+E*tS(C),A=y.cy+E*eS(C)}else k=_.getPos(v,m.xValue),A=S-d.getPos(g,m.yValue),s&&(k=d.getPos(g,m.yValue),A=e-_.getPos(v,m.xValue));m.xPos=k,m.yPos=A,o.setVis(!a||k>=0&&k<=t&&A>=0&&A<=e)?(o.setPath(P(V)).trans(k,A).rotate(l),b&&(i.setContrast(o.dom).layout("center"),n._layoutLabelView(i,p,c,V,k,A))):b&&b.setVis(!1)}else b&&b.setVis(!1)}))},e.prototype.getNearest=function(t,e){var i=this._markers._internalItems().reduce((function(i,n){return i.distance(i._radius,t,e)<n.distance(n._radius,t,e)?i:n}));return{pv:i,dist:i.distance(i._radius,t,e)}},e.prototype.canHover=function(t,e,i){return t<=e._radius+i},e}(ZL),NN=function(t){function e(e){return t.call(this,e,zL.POINT_CLASS)||this}return Dx(e,t),e.prototype.layout=function(t,e){var i=this.point,n=i.yValue-i.lowValue,r=0+e-e*(0===n?1:(rS(i.openValue,i.closeValue)-i.lowValue)/n),o=0+e-e*(0===n?1:(oS(i.openValue,i.closeValue)-i.lowValue)/n),s=rS(o,r),a=oS(1,sS(r-o)),u=i.close<i.open;this.x=this.tx+0,this._wickUpper.setVLine(0,0,o),this._wickLower.setVLine(0,r,e),this._body.setBox(-t/2,s,t,a),this.setBoolData("decline",u)},e.prototype._doInitChildren=function(t){this.add(this._wickUpper=new SC(t,"rct-candlestick-point-wick")),this.add(this._wickLower=new SC(t,"rct-candlestick-point-wick")),this.add(this._body=new bk(t))},e}(WL),MN=function(t){function e(e){var i=t.call(this,e,"rct-candlestick-series")||this;return i._sticks=new zE(i._pointContainer,NN),i}return Dx(e,t),e.prototype._getPointPool=function(){return this._sticks},e.prototype._getLowValue=function(t){return t.lowValue},e.prototype._preparePoints=function(t,e,i){var n=this;this._sticks.prepare(i.length,(function(t,r){var o=t.point=i[r];n._setPointStyle(t,e,o)}))},e.prototype._setPointColor=function(t,e){t._body.setColor(e)},e.prototype._setPointStyle=function(e,i,n,r){t.prototype._setPointStyle.call(this,e,i,n,r),n.closeValue<n.openValue&&i.options.declineStyle&&e.addStyleOrClass(i.options.declineStyle)},e.prototype._layoutPoint=function(t,e,i,n,r,o){t.trans(i,n),t.layout(r,o)},e}(UL),TN=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.layout=function(t,e,i){var n=new YC;n.circle(t,e,i),this.setPath(n.end())},e}($L),ON=function(t){function e(e){return t.call(this,e,"rct-circlebar-series")||this}return Dx(e,t),e.prototype._createBarPool=function(t){return new zE(t,TN)},e.prototype._layoutPoint=function(t,e,i,n,r,o){t.layout(i,n-o/2,o/2-1)},e}(PN),RN=function(t){function e(e){var i=t.call(this,e,zL.POINT_CLASS)||this;return i.add(i._line=new SC(e,"rct-dumbbell-point-bar")),i.add(i._hmarker=new OP(e,"rct-dumbbell-point-marker")),i.add(i._lmarker=new OP(e,"rct-dumbbell-point-marker")),i}return Dx(e,t),e.prototype.layout=function(t,e,i,n){var r=this._hmarker,o=this._lmarker,s=this.point,a=s.radius,u=s.lowRadius,l=i/2;t._style&&r.setStyleOrClass(t._style),t._style&&o.setStyleOrClass(t._style),e._style&&o.internalSetStyleOrClass(e._style);var h=t.getMarkerStyle(s);h&&r.internalSetStyleOrClass(h),(h=e.getMarkerStyle(s))&&o.internalSetStyleOrClass(h),this.x=this.tx+l,this._line.setVLine(l,0,n),mk.setShape(r,s.shape,a,a),mk.setShape(o,s.lowShape,u,u),r.trans(l-a,0-a),o.trans(l-u,n-a)},e}(WL),BN=function(t){function e(e){var i=t.call(this,e,"rct-dumbbell-series")||this;return i._bars=new zE(i._pointContainer,RN),i}return Dx(e,t),e.prototype._getPointPool=function(){return this._bars},e.prototype._getLowValue=function(t){return t.lowValue},e.prototype._preparePoints=function(t,e,i){var n=this;this._bars.prepare(i.length,(function(t,r){var o=t.point=i[r];n._setPointStyle(t,e,o)}))},e.prototype._layoutPoint=function(t,e,i,n,r,o){t.trans(i-r/2,n),t.layout(this.model.marker,this.model.lowMarker,r,o)},e.prototype._setPointColor=function(t,e){t._line.setStyle("stroke",e),t._hmarker.setFill(e),t._lmarker.setFill(e)},e}(UL),DN=function(t){function e(e){var i=t.call(this,e,zL.POINT_CLASS)||this;return i._segments=new zE(i,OP),i._decimal=0,i.add(i._back=new bk(e)),i._back.setTransparent(!0),i}return Dx(e,t),e.prototype.prepareSegments=function(t,e,i,n){this._decimal=i,this._segments.prepare(Math.round(e)).forEach((function(t,e){}))},e.prototype.layout=function(t,e,i){var n=this,r=this.wPoint,o=this.hPoint,s=o<0?Math.max:Math.min;e-=r/2,o<0&&(t=t.map((function(t){return-t}))),this._back.setBounds(e,i-o,r,o),this._segments.forEach((function(a,u,l){u===l-1&&n._decimal>0?a.setPath(mk.rectangle(e,i-t[2*u],r,o<0?s(1,n._decimal):s(-1,-n._decimal))):a.setPath(mk.rectangle(e,i-t[2*u],r,s(-1,t[2*u]-t[2*u+1])))}))},e.prototype.savePrevs=function(){this.wSave=this.wPoint,this.xSave=this.x},e}(XE),FN=function(t){function e(e){var i=t.call(this,e,"rct-equalizer-series")||this;return i._bars=new zE(i._pointContainer,DN),i}return Dx(e,t),e.prototype._getPointPool=function(){return this._bars},e.prototype._preparePoints=function(t,e,i){this.$_parepareBars(e,i)},e.prototype._layoutPoints=function(e,i){var n=this.model._yAxisObj.prev(this._inverted?e:i)*this._getGrowRate();this.$_buildSegments(this.model,n),t.prototype._layoutPoints.call(this,e,i)},e.prototype._layoutPoint=function(t,e,i,n,r,o){var s=this._prevRate;isNaN(s+t.wSave)||(r=t.wSave+(r-t.wSave)*s),isNaN(s+t.xSave)||(i=t.xSave+(i-t.xSave)*s),t.wPoint=r,t.hPoint=o,t.layout(this._pts,i,n)},e.prototype.$_parepareBars=function(t,e){var i=this;this._bars.prepare(e.length,(function(n,r){var o=n.point=e[r];i._setPointStyle(n,t,o)}))},e.prototype.$_buildSegments=function(t,e){var i,n,r=t.options,o=t._yAxisObj.axisMax(),s=r.segmented,a=r.segmentGap||0,u=this._pts=[],l=0;for(n=r.maxCount>0?r.maxCount:Math.round(e/(t.getSegmentSize(e)+a/2)),i=(e-a*(n-1))/n;u.length<2*n;)u.push(l,l+i),l+=i+a;u[u.length-1]=e;var h=u.length/2;this._bars.forEach((function(t){var n=t.point;if(t.setVis(!n.isNull)){for(var a=n.yValue/o,l=-1,p=0,c=0;c<h-1;c++)if(a>=u[2*c]/e&&a<u[2*(c+1)]/e){l=c+1,p=!s&&a<u[2*c+1]/e?a*e-u[2*c]:i;break}l<0&&(l=h,p=i),t.prepareSegments(h,l,p,r.backStyle)}}))},e}(XL),IN=function(t){function e(e){return t.call(this,e,zL.POINT_CLASS)||this}return Dx(e,t),e.prototype._doInitChildren=function(t){this.add(this._stem=new SC(t)),this.add(this._whiskerUp=new SC(t)),this.add(this._whiskerDown=new SC(t)),this.add(this._back=new bk(t,"rct-errorbar-point-back")),this._back.setTransparent(!1)},e.prototype.layout=function(t,e){var i=t/2;this.x=this.tx+i,this._stem.setVLine(i,0,e),this._whiskerUp.setHLine(0,0,t),this._whiskerDown.setHLine(e,0,t),this._back.setBox(0,0,t,e)},e}(WL),jN=function(t){function e(e){var i=t.call(this,e,"rct-errorbar-series")||this;return i._bars=new zE(i._pointContainer,IN),i}return Dx(e,t),e.prototype._getPointPool=function(){return this._bars},e.prototype._getLowValue=function(t){return t.lowValue},e.prototype._preparePoints=function(t,e,i){var n=this;this._bars.prepare(i.length,(function(t,r){var o=t.point=i[r];n._setPointStyle(t,e,o)}))},e.prototype._layoutPoint=function(t,e,i,n,r,o){t.trans(i-r/2,n),t.layout(r,o)},e}(UL),zN=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e}($L),$N=function(t){function e(e){var i=t.call(this,e,"rct-funnel-series")||this;return i._segments=new zE(i._pointContainer,zN),i.add(i._lineContainer=new BL(e)),i}return Dx(e,t),e.prototype._getPointPool=function(){return this._segments},e.prototype._prepareSeries=function(e,i){t.prototype._prepareSeries.call(this,e,i),this.$_prepareSegments(e,i,this._visPoints),this._lineContainer.prepare(i)},e.prototype._renderSeries=function(t,e){this.$_calcRates(this._visPoints),this.$_layoutSegments(t,e)},e.prototype._runShowEffect=function(t){t&&VL.reveal(this,{from:this.model.options.reversed?"bottom":"top"})},e.prototype._resizeZombie=function(){this._renderSeries(this.width,this.height)},e.prototype._animationStarted=function(e){t.prototype._animationStarted.call(this,e),this._lineContainer.setVis(this._labelContainer.visible)},e.prototype.$_prepareSegments=function(t,e,i){var n=this;this._segments.prepare(i.length,(function(r,o){var s=r.point=i[o];n._preparePoint(t,e,s,r)}))},e.prototype.$_calcRates=function(t){var e=this,i=t.length,n=0,r=0;if(t.forEach((function(t){n+=t.yValue*(t===e._zombie?e._zombieRate:1)})),i>1||i>0&&!this._zombie){for(var o=0;o<i-1;o++){var s=ES((a=t[o]).yValue*(a===this._zombie?this._zombieRate:1)/n)||0;a.yRate=100*s,a.yPos=r,a.height=s,r+=s}t[o].yPos=r,t[o].height=1-r}else if(1==i){var a=t[0];r=1-(s=ES(this._zombieRate)),a.yRate=100*s,a.yPos=r,a.height=s,a.yPos=r,a.height=1-r}},e.prototype.$_layoutSegments=function(t,e){var i=this;function n(t){return c?g+(x-g)*(m-t)/(m-S):g+(x-g)*(t-v)/(S-v)}var r,o=this.model,s=this._labelViews(),a="inside"===o.getLabelPosition(),u=o.pointLabel,l=u.getOffset(),h=s&&u.options.distance||0,p=this._lineContainer,c=o.options.reversed,f=o.getSize(t,e),_=o.getNeckSize(f.width,f.height),d=new YC,y=o.getCenter(t,e),g=y.x-f.width/2,v=y.y-f.height/2,m=v+f.height,b=g+f.width/2,w=f.height-_.height,x=g+(f.width-_.width)/2,S=c?m-w:v+w;this._lineContainer.setVis(s&&!a),this._segments.forEach((function(t){var e,o=t.point;if(t.setVis(!o.isNull)){var u=o.yPos*f.height,y=(o.yPos+o.height)*f.height,g=c?m-u:v+u,P=c?m-y:v+y,V=void 0,k=void 0,A=void 0,C=void 0;if(u>=w?(k=(V=x)+_.width,d.move(V,g).lines(k,g,k,P,V,P),t.ny=t.nx1=NaN):y<w?(k=(V=n(g))+2*(b-V),C=(A=n(P))+2*(b-A),d.move(V,g).lines(k,g,C,P,A,P),t.ny=NaN,t.nx1=A-V,t.nx2=C-V):(k=(V=n(g))+2*(b-V),C=(A=x)+_.width,d.move(V,g).lines(k,g,C,S,C,P,A,P,A,S),t.ny=S-g,t.nx1=A-V,t.nx2=C-V),t.setPath(d.close(!0)),o.xPos=b,o.yPos=g+(P-g)/2,s&&(r=s.get(o,0))){var E=p.get(o);if(E.setVis(!a)){var L=t.getBBox(),N=o.xPos,M=o.yPos;isNaN(t.ny)?isNaN(t.nx1)||(N-=t.nx1*L.height/2/L.height):sS(t.ny)>L.height/2&&(N-=t.nx1*L.height/2/sS(t.ny)),i.$_layoutLabel(r,L,E,l,h,N,M)}else i.$_layoutLabelInner(r,o.xPos,o.yPos);r.setContrast(a&&t.dom)}else null===(e=p.get(o))||void 0===e||e.setVis(!1)}}))},e.prototype.$_layoutLabel=function(t,e,i,n,r,o,s){var a=t.getBBox();o+=e.width/2,i.setLine((new YC).move(0,0).line(r,0).end()),i.trans(o,s),o+=r+n,t.trans(o,s-a.height/2)},e.prototype.$_layoutLabelInner=function(t,e,i){var n=t.getBBox();t.trans(e-n.width/2,i-n.height/2)},e}(JL),HN=function(t){function e(e){return t.call(this,e,zL.POINT_CLASS)||this}return Dx(e,t),e}(bk),GN=function(t){function e(e){var i=t.call(this,e,"rct-heatmap-series")||this;return i._cells=new zE(i._pointContainer,HN),i}return Dx(e,t),e.prototype._getPointPool=function(){return this._cells},e.prototype._prepareSeries=function(t,e){this.$_parepareCells(e,this._visPoints)},e.prototype._renderSeries=function(t,e){this._pointContainer.invert(this._inverted,e),this.$_layoutCells(t,e)},e.prototype._runShowEffect=function(t){t&&VL.grow(this)},e.prototype._doViewRateChanged=function(t){this.$_layoutCells(this.width,this.height)},e.prototype.$_parepareCells=function(t,e){var i=this,n=new xP(t._calcedColor),r=[{fill:void 0}],o=t._heatMin,s=t._heatMax-o;this._cells.prepare(e.length,(function(a,u){var l=a.point=e[u];r[0].fill=n.brighten(1-(l.zValue-o)/s).toString(),i._setPointStyle(a,t,l,r)}))},e.prototype.$_layoutCells=function(t,e){var i=this.model,n=this._inverted,r=this._getGrowRate(),o=this._labelViews(),s=i._xAxisObj,a=i._yAxisObj,u=n?t:e,l=n?e:t,h=n?0:e;this._cells.forEach((function(t){var e=t.point;if(t.setVis(!e.isNull)){var i=s.getUnitLen(l,e.xValue)*r,p=a.getUnitLen(u,e.yValue)*r,c=s.getPos(l,e.xValue)-i/2,f=h-a.getPos(u,e.yValue)-p/2,_=void 0;if(e.xPos=n?h+a.getPos(u,e.yValue):c+i/2,e.yPos=n?l-s.getPos(l,e.xValue)+i/2:f+p/2,t.setBounds(c,f,i,p),o&&(_=o.get(e,0))){_.layout("center");var d=_.getBBox();n?(f=l-s.getPos(l,e.xValue)-d.height/2,c=h+a.getPos(u,e.yValue)):(c+=i/2,f+=(p-d.height)/2),c-=d.width/2,_.trans(c,f)}}}))},e}(zL),WN=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.layout=function(t,e){this.setPath(mk.rect({x:t-this.wPoint/2,y:e,width:this.wPoint,height:-this.hPoint}))},e}(HL),YN=function(t){function e(e){var i=t.call(this,e,"rct-histogram-series")||this;return i._bars=new zE(i._pointContainer,WN),i}return Dx(e,t),e.prototype._getPointPool=function(){return this._bars},e.prototype._preparePoints=function(t,e,i){this.$_parepareBars(t,e,i)},e.prototype._layoutPoint=function(t,e,i,n,r,o){t.wPoint=r,t.hPoint=o,t.layout(i,n)},e.prototype._layoutPoints=function(t,e){var i=this,n=this.model,r=this._inverted,o=this._getGrowRate(),s=n.pointLabel,a=this._labelViews(),u=n._xAxisObj,l=n._yAxisObj,h=r?t:e,p=r?e:t,c=l.getPos(h,n.getBaseValue(l)),f=r?0:e,_=a&&Kx(this._labelInfo,{inverted:r,labelPos:n.getLabelPosition(s.options.position),labelOff:n.getLabelOff(s.getOffset())});this._getPointPool().forEach((function(n,s){var d=n.point,y=u.getPos(p,d.min),g=u.getPos(p,d.max),v=l.getPos(h,d.yValue),m=g-y+(g>y?-1:1),b=v-c,w=y+(g-y)/2,x=f;d.xPos=w,d.yPos=x-=v,i._layoutPoint(n,s,w,x+b,m,b*o),_&&(_.labelView=a.get(d,0))&&(r&&(x=p-w,w=f,d.yPos=x,d.xPos=w+=l.getPos(h,d.yGroup)),_.pointView=n,_.x=w,_.y=x,_.wPoint=m,_.hPoint=b,i._layoutLabel(_,t,e))}))},e.prototype.$_parepareBars=function(t,e,i){var n=this;this._bars.prepare(i.length,(function(t,r){var o=t.point=i[r];n._setPointStyle(t,e,o)}))},e.prototype.$_layoutBars=function(t,e){var i=this.model._xAxisObj,n=this.model._yAxisObj,r=this.height,o=this._getGrowRate();this._bars.forEach((function(s,a){var u=s.point,l=i.getPos(t,u.min),h=i.getPos(t,u.max),p=l+(h-l)/2,c=n.getPos(e,s.point.yValue)*o,f=oS(1,h-l-1);u.xPos=p,u.yPos=r-c,s.wPoint=f,s.hPoint=c,s.layout(p,r)}))},e}(YL),XN=function(t){function e(e){var i=t.call(this,e,zL.POINT_CLASS)||this;return i.add(i._line=new SC(e,"rct-lollipop-point-bar")),i.add(i._marker=new OP(e,"rct-lollipop-point-marker")),i}return Dx(e,t),e.prototype.layout=function(t){var e=this.point.radius;this._line.setVLine(0,0,t),mk.setShape(this._marker,this.point.shape,e,e),this._marker.trans(-e,-e)},e.prototype.savePrevs=function(){this.xSave=this.tx},e}(XE),UN=function(t){function e(e){return t.call(this,e,"rct-lollipop-series")||this}return Dx(e,t),e.prototype._getPointPool=function(){return this._bars},e.prototype._preparePoints=function(t,e,i){this.$_parepareBars(t,e,i)},e.prototype._layoutPoint=function(t,e,i,n,r,o){t.trans(i,n-o),t.layout(o)},e.prototype._setPointColor=function(t,e){t._line.setStyle("stroke",e),t._marker.setFill(e)},e.prototype.$_parepareBars=function(t,e,i){var n=this,r=e.marker,o=r._style;r.options.styleCallback,this._bars||(this._bars=new zE(this._pointContainer,XN)),this._bars.prepare(i.length,(function(t,s){var a=t.point=i[s];n._setPointStyle(t,e,a),o&&t._marker.setStyleOrClass(o);var u=r.getMarkerStyle(a);u&&t.internalSetStyleOrClass(u)}))},e}(XL),qN=function(t){function e(e){return t.call(this,e,zL.POINT_CLASS)||this}return Dx(e,t),e.prototype.layout=function(t,e){var i=this.point,n=i.yValue-i.lowValue,r=-t/2,o=0+e-e*(rS(i.openValue,i.closeValue)-i.lowValue)/n,s=0+e-e*(oS(i.openValue,i.closeValue)-i.lowValue)/n,a=i.close<i.open;this.x=this.tx+0,this._back.setBox(r,0,t,e),this._tickOpen.setHLine(o,r,0),this._tickClose.setHLine(s,0,t/2),this._bar.setVLine(0,0,0+e),this.setBoolData("decline",a)},e.prototype._doInitChildren=function(t){this.add(this._tickOpen=new SC(t,"rct-ohlc-point-tick")),this.add(this._tickClose=new SC(t,"rct-ohlc-point-tick")),this.add(this._bar=new SC(t)),this.add(this._back=new bk(t,"rct-ohlc-point-back")),this._back.setTransparent(!1)},e}(WL),ZN=function(t){function e(e){var i=t.call(this,e,"rct-ohlc-series")||this;return i._sticks=new zE(i._pointContainer,qN),i}return Dx(e,t),e.prototype._getPointPool=function(){return this._sticks},e.prototype._getLowValue=function(t){return t.lowValue},e.prototype._preparePoints=function(t,e,i){this.$_prepareSticks(e,i)},e.prototype._layoutPoint=function(t,e,i,n,r,o){t.trans(i,n),t.layout(r,o)},e.prototype._setPointStyle=function(e,i,n,r){t.prototype._setPointStyle.call(this,e,i,n,r),n.closeValue<n.openValue&&i.options.declineStyle&&e.addStyleOrClass(i.options.declineStyle)},e.prototype.$_prepareSticks=function(t,e){var i=this;this._sticks.prepare(e.length,(function(n,r){var o=n.point=e[r];i._setPointStyle(n,t,o)}))},e}(UL),KN=function(t){function e(e){return t.call(this,e,"rct-pareto-series")||this}return Dx(e,t),e}(vN),JN=function(t){function e(e){return t.call(this,e,zL.POINT_CLASS)||this}return Dx(e,t),e.prototype.setPieSector=function(t,e,i){this._assignShape(i,!1)},e}(cL),QN=function(t){function e(e){var i=t.call(this,e,"rct-pie-series")||this;return i._sectors=new zE(i._pointContainer,JN,null,.5),i._cx=0,i._cy=0,i._rd=0,i._rdInner=0,i._slicedOff=0,i.add(i._circle=new lL(e)),i._circle.setStyles({stroke:"#aaa",fill:"none",strokeDasharray:"2"}),i.add(i._textView=new QE(e,"rct-pie-series-inner")),i._textView._text.anchor=RP.MIDDLE,i._labelContainer.add(i._lineContainer=new BL(e)),i}return Dx(e,t),e.prototype._getPointPool=function(){return this._sectors},e.prototype._setPointColor=function(t,e){t.setFill(e)},e.prototype._prepareSeries=function(e,i){t.prototype._prepareSeries.call(this,e,i);var n=i.innerText;this.$_prepareSectors(e,i,this._visPoints),this._lineContainer.prepare(i),this._textView.setVis(i.hasInner()&&n.visible)&&(this._textView.setModel(e,n,null,null),n.buildSvg(this._textView._text,this._textView._outline,NaN,NaN,i,null))},e.prototype._renderSeries=function(t,e){isNaN(this.model._groupPos)?this.$_calcNormal(t,e):this.$_calcGroup(t,e),this.$_layoutSectors(this._visPoints,t,e)},e.prototype.$_calcNormal=function(t,e){this._rd=this.model.getRadius(t,e),this._rdInner=this.model.getInnerRadius(this._rd)},e.prototype.$_calcGroup=function(t,e){var i=this.model,n=i._group,r=Math.floor(n.getPolarSize(t,e)/2),o=n.getInnerRadius(r)*r,s=r-o;this._rd=o+(i._groupPos+i._groupSize)*s,this._rdInner=(o+i._groupPos*s)/this._rd},e.prototype._runShowEffect=function(t){var e=this;t&&VL.grow(this,(function(t){var i=e._sectors.find((function(t){return t.point.sliced}));i&&(i.trans(0,0),e.$_slice(i,e.model.options.autoSlice,!1))}))},e.prototype._doPointClicked=function(t){if(t instanceof JN&&this.model.options.autoSlice){var e=this._sectors.find((function(t){return t.point.sliced}));e&&this.$_slice(e,!1,!0),t!==e&&this.$_slice(t,!0,!0)}else this.invalidate()},e.prototype._doViewRateChanged=function(t){this.$_layoutSectors(this._visPoints,this.width,this.height)},e.prototype._resizeZombie=function(){this._renderSeries(this.width,this.height)},e.prototype.getClipContainer=function(){return null},e.prototype.$_prepareSectors=function(t,e,i){var n=this;this._sectors.prepare(i.length,(function(r,o){var s=r.point=i[o];n._preparePoint(t,e,s,r)}))},e.prototype.$_calcAngles=function(t){var e=this,i=t.length,n=this.model.options.clockwise?1:-1,r=t.filter((function(t){return(t.visible||t===e._zombie)&&!t.isNull})).map((function(t){return t===e._zombie?t.yValue*e._zombieRate:t.yValue})).reduce((function(t,e){return t+e}),0),o=this.model._totalRad*this._getGrowRate(),s=this.model._startRad;if(i>1||i>0&&!this._zombie)t.forEach((function(t){t.isNull||(t.yRate=ES(t===e._zombie?t.yValue*e._zombieRate:t.yValue)/r||0,t.startAngle=s,s+=t.angle=n*t.yRate*o)}));else if(1==i){var a=t[0];a.startAngle=s,a.angle=n*this._zombieRate*o}},e.prototype.$_layoutSectors=function(t,e,i){var n,r=this,o=this.model,s=o.options.clockwise,a=this._getGrowRate(),u=o.getCenter(e,i),l=this._cx=u.x,h=this._cy=u.y,p=this._rd,c=this._rdInner,f=o.pointLabel,_=this._labelViews(),d="inside"===o.getLabelPosition(),y=f.getOffset(),g=f.options.distance||0,v=this._lineContainer,m=this._slicedOff=o.getSliceOffset(p)*a;if(this._textView.visible){var b=this._textView.getBBox();this._textView.trans(l,h-b.height/2)}this._circle.setVis(this._sectors.isEmpty)&&this._circle.setCircle(this._cx,this._cy,this._rd),this.$_calcAngles(t),this._sectors.forEach((function(t){var e,i,o=t.point;if(o.isNull)t.setVis(!1),_&&(n=_.get(o,0))&&n.setVis(!1),null===(i=v.get(o))||void 0===i||i.setVis(!1);else{var u=o.startAngle,f=0,b=0;if(o.sliced&&a>=1&&!t.isDomAnimating()){var w=u+o.angle/2;f+=tS(w)*m,b+=eS(w)*m}t.trans(f,b).setVis(!0);var x=o.startAngle+o.angle/2;if(o.xPos=l+tS(x)*(m+.7*p),o.yPos=h+eS(x)*(m+.7*p),t.setPieSector(_,null,{cx:l,cy:h,rx:p,ry:p,innerRadius:c,start:u,angle:sS(o.angle),clockwise:s}),_&&(n=_.get(o,0))){var S=v.get(o);S.setVis(!d)?r.$_layoutLabel(o,n,S,y,g,o.sliced?m:0,s):(S.visible=!1,r.$_layoutLabelInside(o,n,y,0,o.sliced?m:0)),n.setContrast(d&&t.dom).setVis(!0)}else null===(e=v.get(o))||void 0===e||e.setVis(!1)}}))},e.prototype.$_layoutLabel=function(t,e,i,n,r,o,s){var a=e.isDomAnimating();!a&&e.layout("center");var u,l=e.getBBox(),h=t.startAngle+t.angle/2,p=this._cx,c=this._cy,f=this._rd+.8*r,_=tS(h)*o,d=eS(h)*o,y=p+tS(h)*this._rd,g=c+eS(h)*this._rd,v=p+tS(h)*f,m=c+eS(h)*f,b=v<p;u=b?v-.2*r:v+.2*r,i&&i.setVis(f>0)&&(i.setLine((new YC).move(0,0).quad(v-y,m-g,u-y,m-g).end()),i.setPos(y,g),!a&&i.trans(y+_,g+d)),b?(u-=l.width+n,m-=l.height/2):(u+=n,m-=l.height/2),e.setPos(u,m),!a&&e.trans(u+_,m+d)},e.prototype.$_layoutLabelInside=function(t,e,i,n,r){e.layout("center");var o=this.model,s=o.pointLabel.options.autoRotation,a=e.getBBox(),u=this._rd*this._rdInner,l=(u>0?u+(this._rd-u)/2:this._rd*(s?.8:.7))+i,h=t.startAngle+t.angle/2,p=this._cx+tS(h)*l,c=this._cy+eS(h)*l;e.move(p-a.width/2,c-a.height/2),p=this._cx+tS(h)*(r+l),c=this._cy+eS(h)*(r+l),this.applyAutoRotation(e,h,o._totalRad,o.options.totalAngle),e.trans(p-a.width/2,c-a.height/2)},e.prototype.$_slice=function(t,e,i){var n=this.model,r=n.options.autoSlice?n.options.sliceDuration:0,o=t.point,s=o.startAngle+o.angle/2;(o.sliced=e)?t.transEx(tS(s)*this._slicedOff,eS(s)*this._slicedOff,r):t.transEx(0,0,r);var a=this._labelViews();if(a){var u=n.pointLabel,l=this._lineContainer,h="inside"===n.getLabelPosition(),p=a.get(o,0);if(p){var c=!h&&l.get(o);if(i&&(h?this.$_layoutLabelInside(o,p,u.getOffset(),u.options.distance,this._slicedOff):this.$_layoutLabel(o,p,c,u.getOffset(),u.options.distance,this._slicedOff,n.options.clockwise)),e){var f=p.tx,_=p.ty;p.trans(p.x,p.y),p.transEx2(f,_,r),c&&(f=c.tx,_=c.ty,c.trans(c.x,c.y),c.transEx(f,_,r))}else p.trans(p.tx,p.ty),p.transEx2(p.x,p.y,r),c&&(c.trans(c.tx,c.ty),c.transEx(c.x,c.y,r))}}},e}(JL),tM=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.setHoverRate=function(t,e,i){var n=this.point,r=t._getDrawer(t.model.getShape(this.point)),o=(+t.model.options.hoverScale||1.8)-1,s=t._radius;e?this._radius=s=t._radius*(1+(isNaN(i)?1:i)*o):s=t._radius*(1+o-(isNaN(i)?o:o*i)),this.setPath(r(s)),this.trans(n.xPos,n.yPos)},e.prototype.endHover=function(t,e){delete this._radius},e}(qL),eM=function(t){function e(e){return t.call(this,e,"rct-scatter-series")||this}return Dx(e,t),e.prototype._createMarkers=function(t){return new zE(t,tM)},e.prototype._prepareSeries=function(t,e){this.$_prepareMarkers(e,this._visPoints)},e.prototype._renderSeries=function(t,e){this.$_layoutMarkers(t,e)},e.prototype._runShowEffect=function(t){t&&(this._polar,VL.grow(this))},e.prototype.$_prepareMarkers=function(t,e){var i=this,n=e.length;this._pointContainer.setFill(t._runColor),this._markers.prepare(n,(function(n,r){var o=n.point=e[r];i._setPointStyle(n,t,o)}))},e.prototype._getAutoPos=function(t){return"outside"},e.prototype._doViewRateChanged=function(t){this.$_layoutMarkers(this.width,this.height)},e.prototype.$_layoutMarkers=function(t,e){var i,n=this,r=this.model,o=r.options,s=this._inverted,a=r.needClip(!1),u=r._xAxisObj,l=r._yAxisObj,h=this._polar=r.chart._body.getPolar(u),p=this._getGrowRate(),c=this._radius=Math.max(0,+r.options.radius||0)*p,f=+o.rotation||0,_=+o.jitterX||0,d=+o.jitterY||0,y=r.pointLabel,g=y.options.position,v=y.getOffset(),m=this._labelViews(),b=l.prev(s?t:e),w=u.prev(h?h.rd*SS:s?e:t),x=s?0:e;this._markers.forEach((function(o,y){var S=o.point,P=m&&(i=m.get(S,0));if(o.setVis(!S.isNull)){var V=n._getDrawer(r.getShape(S)),k=fS.jitter(S.xValue,_),A=fS.jitter(S.yGroup,d),C=void 0,E=void 0;if(h){var L=h.start+u.getPos(SS,k),N=l.getPos(h.rd,A)*p;C=h.cx+N*tS(L),E=h.cy+N*eS(L)}else C=u.getPos(w,k),E=x-l.getPos(b,A),s&&(C=l.getPos(b,A),E=e-u.getPos(w,k));S.xPos=C,S.yPos=E,o.setVis(!!h||!a||C>=0&&C<=t&&E>=0&&E<=e)?(o.setPath(V(o._radius||c)),o.trans(C,E).rotate(f),P&&n._layoutLabelView(i,g,v,c,C,E)):P&&P.setVis(!1)}else P&&P.setVis(!1)}))},e.prototype.getNearest=function(t,e){var i=this.model.options.radius,n=this._markers._internalItems().reduce((function(n,r){return n.distance(i,t,e)<r.distance(i,t,e)?n:r}));return{pv:n,dist:n.distance(i,t,e)}},e.prototype.canHover=function(t,e,i){return t<=this.model.options.radius+i},e}(ZL),iM=function(t){function e(e){return t.call(this,e,zL.POINT_CLASS)||this}return Dx(e,t),Object.defineProperty(e.prototype,"point",{get:function(){return this.node.point},enumerable:!1,configurable:!0}),e.prototype.render=function(t){if(1!==t){var e=Object.assign({},this.node);e.width*=t,e.height*=t,e.x+=(this.node.width-e.width)/2,e.y+=(this.node.height-e.height)/2,this.setRect(e)}else this.setRect(this.node)},e}(bk);!function(t){function e(){return null!==t&&t.apply(this,arguments)||this}Dx(e,t)}(iM);var nM=function(t){function e(e){var i=t.call(this,e,"rct-treemap-series")||this;return i._nodeViews=new zE(i._pointContainer,iM),i}return Dx(e,t),e.prototype._lazyPrepareLabels=function(){return!0},e.prototype._getPointPool=function(){return this._nodeViews},e.prototype._prepareSeries=function(t,e){},e.prototype._renderSeries=function(t,e){this._pointContainer.invert(this._inverted,e),this._rootView?this.$_renderGroups(t,e):this.$_renderLeafs(t,e)},e.prototype._runShowEffect=function(t){t&&VL.grow(this)},e.prototype._doViewRateChanged=function(t){this._rootView?this.$_renderGroups(this.width,this.height):this.$_renderLeafs(this.width,this.height)},e.prototype.$_renderLeafs=function(t,e){var i=this,n=this.model,r=n._xAxisObj,o=n._yAxisObj,s=this._inverted,a=this._getGrowRate(),u=this._labelViews(),l=s?t:e,h=s?e:t,p=n.buildMap(h,l);p.roots;var c,f=p.leafs,_=new xP(n._calcedColor),d=[{fill:""}];null==u||u.prepare(this.doc,this),this._nodeViews.prepare(f.length,(function(t,e,p){var y=f[e],g=y.point,v=y.parent,m=_;v&&(!v._color&&v.point.color?m=v._color=new xP(v.point.color):v._color&&(m=v._color)),t.node=y,d[0].fill=m.brighten(y.index/p).toString(),i._setPointStyle(t,n,g,d),r.options.reversed&&(y.x=h-y.x-y.width),o.options.reversed&&(y.y=l-y.y-y.height),s&&(y.y=y.y-l),t.render(a);var b=y.x+y.width/2,w=y.y+y.height/2;if(g.xPos=s?-y.y-y.height/2:b,g.yPos=s?h-y.x-y.width/2:w,u&&(c=u.get(g,0))){c.setContrast(t.dom).layout("center");var x=c.getBBox();c.setVis(y.width>=x.height&&y.height>=x.height)&&(s?(b=-y.y-y.height/2-x.width/2,w=h-y.x-(y.width+x.height)/2):(b-=x.width/2,w-=x.height/2),c.trans(b,w))}}))},e.prototype.$_renderGroups=function(t,e){},e}(zL),rM=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.layout=function(t,e,i,n){var r,o=this.point._len,s=o*n,a=.5,u=(o-s)/2;switch(t){case"none":r=[0,u-a*s,0,u+a*s];break;case"open":r=[0,u-.45*s,0-.15*s,u-.2*s,0,u-a*s,0+.15*s,u-.2*s,0,u-.45*s,0,u+a*s];break;default:var l=.3;r=[0,u-l*s,0-.1*s,u-l*s,0,u-a*s,0+.1*s,u-l*s,0,u-l*s,0,u+a*s]}for(var h=this.point._off*n,p=["M",r[0],r[1]+h],c=2;c<r.length;c+=2)p.push("L",r[c],r[c+1]+h);this.rotation=e,this.setPath(p)},e}($L),oM=function(t){function e(e){var i=t.call(this,e,"rct-vector-series")||this;return i._arrows=new zE(i._pointContainer,rM),i}return Dx(e,t),e.prototype._getPointPool=function(){return this._arrows},e.prototype._prepareSeries=function(t,e){this.$_prepareArrows(e,this._visPoints)},e.prototype._renderSeries=function(t,e){var i=this.model,n=i.options.startAngle,r=i.options.arrowHead,o=i._xAxisObj,s=i._yAxisObj,a=this._inverted,u=a?t:e,l=a?e:t,h=this._getGrowRate(),p=a?0:e,c=o.options.reversed?-1:1,f=s.options.reversed;this._pointContainer.invert(a,e),this._arrows.forEach((function(t){var e=t.point;if(t.setVis(!e.isNull)){var i=o.getPos(l,e.xValue),_=p-s.getPos(u,e.yValue),d=n+e.angleValue*c;f&&(d=180-d),e.xPos=a?p+s.getPos(u,e.yValue):i,e.yPos=a?l-o.getPos(l,e.xValue):_,t.trans(i,_),t.layout(r,d,!1,h)}}))},e.prototype._runShowEffect=function(t){t&&VL.grow(this)},e.prototype._doViewRateChanged=function(t){this._renderSeries(this.width,this.height)},e.prototype.getPointsAt=function(t,e){return[]},e.prototype.$_prepareArrows=function(t,e){var i=this;this._arrows.prepare(e.length,(function(n,r){var o=n.point=e[r];i._setPointStyle(n,t,o)}))},e}(zL),sM=function(t){function e(e){var i=t.call(this,e,"rct-waterfall-series")||this;return i._bars=new zE(i._pointContainer,GL),i.add(i._lineContainer=new LP(e,"rct-waterfall-series-lines")),i._lines=new zE(i._lineContainer,SC),i}return Dx(e,t),e.prototype._getPointPool=function(){return this._bars},e.prototype._getLowValue=function(t){return t.low},e.prototype._prepareSeries=function(e,i){t.prototype._prepareSeries.call(this,e,i),this._rd=+i.options.cornerRadius||0},e.prototype._preparePoints=function(t,e,i){this.$_parepareBars(t,e,i)},e.prototype._layoutPoint=function(t,e,i,n,r,o){var s=t.point;if(t.wPoint=r,t.hPoint=o,n+=o,t.layout(i,n,this._rd,this._rd),e>0){var a=this._lines.get(e-1),u=s._isSum?n-o:s.y>=0?n:n-o;a.setHLine(u,this._xPrev+this._wPrev/2,i-r/2)}this._xPrev=i,this._wPrev=r},e.prototype._layoutPoints=function(e,i){this._inverted?this._lineContainer.dom.style.transform="translate(0px, ".concat(i,"px) rotate(90deg) scale(-1, 1)"):this._lineContainer.dom.style.transform="",t.prototype._layoutPoints.call(this,e,i)},e.prototype.$_parepareBars=function(t,e,i){var n=this;this._bars.prepare(i.length,(function(t,r){var o=t.point=i[r];n._setPointStyle(t,e,o),t.setStyleOrClass(o._isSum?"rct-waterfall-point-sum":o.y<0?"rct-waterfall-point-negative":"")})),this._lines.prepare(i.length-1,(function(t,e){t.visible=!i[e].isNull&&!i[e+1].isNull}))},e}(UL);function aM(t,e){return new(fL[e._type()])(t)}function uM(t,e){return new(FL[e._viewType()])(t)}zL.register([TC,wN],[RC,bN],[yC,VN],[fC,xN],[IC,kN],[zC,CN],[HC,LN],[UC,MN],[ZC,ON],[tE,BN],[iE,FN],[nE,jN],[oE,$N],[aE,GN],[hE,YN],[LC,mN],[fE,UN],[dE,ZN],[gE,KN],[wE,QN],[PE,eM],[EE,nM],[NE,oM],[TE,sM]),yL.register([QA,cN],[DA,nN],[WA,sN],[lC,dN],[tC,fN],[zA,oN],[YA,aN]),_L.register([fA,eN],[pA,QL],[cA,tN]);var lM,hM=function(t){function e(e){var i=t.call(this,e,"rct-axis-grid")||this;return i._lines=new zE(i,SC),i}return Dx(e,t),e.prototype._doMeasure=function(t,e,i,n,r){return{width:i,height:n}},e.prototype._doLayout=function(){var t,e=this.model,i=e.options,n=e.axis,r=this.width,o=this.height,s=n.isEmpty()?[]:e.getPoints(n,n._isHorz?r:o),a=this._lines.prepare(s.length,(function(t){t.internalClearStyleAndClass(),t.internalSetStyleOrClass(e._style),t.setClass("rct-axis-grid-line")})),u=a.count-1;a.forEach((function(t,e){t.setBoolData("first",0===e),t.setBoolData("last",s[e]===(n._isHorz?r:o))}));var l=null==i.firstVisible?e.visible:i.firstVisible,h=null==i.lastVisible?e.visible:i.lastVisible;n._isHorz?a.forEach((function(i,r){t=0===r?l:r===u?h:e.visible,i.setVis(t)&&i.setVLine(n.prev(s[r]),0,o)})):a.forEach((function(i,a){s[a],t=0===a?l:a===u?h:e.visible,i.setVis(t)&&i.setHLine(o-n.prev(s[a]),0,r)}))},e}(UE),pM=function(t){function e(e){var i=t.call(this,e,"rct-axis-break")||this;return i.add(i._mask=new OP(e)),i._mask.setStroke("none"),i.add(i._upLine=new OP(e)),i._upLine.setFill("none"),i.add(i._downLine=new OP(e)),i._downLine.setFill("none"),i}return Dx(e,t),e.prototype.setModel=function(t){this._model=t},e.prototype.layout=function(t,e,i){this._clip?this._clip.resize(t,e):this._clip=this.control.clipBounds(0,0,t,e),this.setClip(this._clip);var n=this._model._sect.len,r=new YC;if(i){var o=0,s=n/2,a=n;for(r.move(0,o);o<e;)o+=20,r.line(s,o),o+=20,r.line(0,o);for(this._downLine.setPath(r.end(!1)),o=0,r.clear().move(s,o);o<e;)o+=20,r.line(a,o),o+=20,r.line(s,o);for(this._upLine.setPath(r.end(!1)),o=0,r.clear().move(0,o);o<e;)o+=20,r.line(s,o),o+=20,r.line(0,o);for(r.line(s,o);o>=0;)o-=20,r.line(a,o),o-=20,r.line(s,o);this._mask.setPath(r.end())}else{var u=0,l=n/2,h=n;for(r.move(u,l);u<t;)u+=20,r.line(u,0),u+=20,r.line(u,l);for(this._upLine.setPath(r.end(!1)),u=0,r.clear().move(u,h);u<t;)u+=20,r.line(u,l),u+=20,r.line(u,h);for(this._downLine.setPath(r.end(!1)),u=0,r.clear().move(u,l);u<t;)u+=20,r.line(u,0),u+=20,r.line(u,l);for(r.line(u,h);u>=0;)u-=20,r.line(u,l),u-=20,r.line(u,h);this._mask.setPath(r.end())}},e}(EP),cM=function(t){function e(e){var i=t.call(this,e,"rct-axis-guide")||this;return i.add(i._labelView=new QE(e,"rct-axis-guide-label")),i}return Dx(e,t),e.prototype.vertical=function(){return this.model.axis._isHorz},e.prototype.prepare=function(t,e){this.model=e,this._labelView.setVis(!!e.label.options.text)&&(this._labelView.setModel(t,e.label,null,null),this._labelView.setStyles(e.label._style))},e.prototype.layout=function(t,e,i){this._labelView.visible&&(this.model.label.buildSvg(this._labelView._text,this._labelView._outline,t,e,null,null),this._labelView.layout("center")),i?this._doLayoutPolar(t,e,i):this._doLayout(t,e)},e}(EP),fM=function(t){function e(e,i){var n=t.call(this,e)||this;return n.insertFirst(n._line=new(i?pL:SC)(e,"rct-axis-guide-line")),n}return Dx(e,t),e.prototype.prepare=function(e,i){t.prototype.prepare.call(this,e,i),this.setVis(i.visible&&i.axis.contains(i.options.value))&&this._line.setStyles(i._style)},e.prototype._doLayout=function(t,e){var i,n,r=this.model,o=r.options.value,s=r.label,a=s.options,u=this._line,l=this._labelView.setVis(s.visible)&&this._labelView,h=l.getBBox(),p=aS(a.offsetX,0),c=aS(a.offsetY,0);if(this.vertical()){var f=r.axis.getPos(t,o);if(l.setVis(u.setVis(!isNaN(f)))&&(u.setVLine(f,0,e),l)){switch(a.align){case"center":i=f-h.width/2+p;break;case"right":i=f+p;break;default:i=f-h.width-p}switch(a.verticalAlign){case"bottom":n="inside"===a.position?e-h.height-c:e+c;break;case"middle":n=(e-h.height)/2-c;break;default:n="inside"===a.position?c:-1*(h.height+c)}}}else{f=e-r.axis.getPos(e,o);if(l.setVis(u.setVis(!isNaN(f)))&&(u.setHLine(f,0,t),l)){switch(a.align){case"center":i=(t-h.width)/2-p;break;case"right":i="inside"===a.position?t-h.width-p:t+p;break;default:i="inside"===a.position?p:-1*(h.width+p)}switch(a.verticalAlign){case"bottom":n=f+c;break;case"middle":n=f-h.height/2-c;break;default:n=f-h.height-c}}}l.visible&&l.trans(i,n)},e.prototype._doLayoutPolar=function(t,e,i){var n=this.model,r=this._line,o=this._labelView.setVis(n.axis.contains(n.options.value)&&n.label.visible)&&this._labelView,s=n.axis.getStartAngle(),a=n.axis.getPos(i.rd,n.options.value);r.setArc(i.cx,i.cy,a,s,n.axis.getTotalAngle(),!1),r.setStyle(jS,"none"),o&&o.trans(i.cx+a*tS(i.start),i.cy+a*eS(i.start))},e}(cM),_M=function(t){function e(e,i){var n=t.call(this,e)||this;return n.insertFirst(n._box=new(i?cL:wk)(e,"rct-axis-guide-range")),n}return Dx(e,t),e.prototype.prepare=function(e,i){t.prototype.prepare.call(this,e,i);var n=i.options,r=rS(n.startValue,n.endValue),o=oS(n.startValue,n.endValue);this._range=i.axis.trimRange(r,o),this.setVis(i.visible&&this._range[1]>this._range[0])&&this._box.setStyleOrClass(i._style)},e.prototype._doLayout=function(t,e){var i=this.model;i.options;var n=i.label,r=n.options,o=this._box,s=jx(this._range,2),a=s[0],u=s[1],l=this._labelView.setVis(n.visible)&&this._labelView,h=l.getBBox(),p=aS(r.offsetX,0),c=aS(r.offsetY,0);if(this.vertical()){var f=i.axis.getPos(t,a),_=i.axis.getPos(t,u);if(!isNaN(f)&&!isNaN(_)&&l.setVis(o.setVis(_!==f))){var d=void 0,y=void 0;switch(r.align){case"center":d=f+(_-f-h.width)/2+p;break;case"right":d=_-h.width-p;break;default:d=f+p}switch(r.verticalAlign){case"bottom":y="inside"===r.position?e-h.height-c:e+c;break;case"middle":y=(e-h.height)/2-c;break;default:y="inside"===r.position?c:-1*(h.height+c)}o.setBox(f,0,_,e),l&&l.trans(oS(0,rS(t,d)),y)}}else{var g=e-i.axis.getPos(e,a),v=e-i.axis.getPos(e,u);if(!isNaN(g)&&!isNaN(v)&&l.setVis(o.setVis(g!==v))){d=void 0,y=void 0;switch(r.align){case"center":d=(t-h.width)/2-p;break;case"right":d="inside"===r.position?t-h.width-p:t+p;break;default:d="inside"===r.position?p:-1*(h.width+p)}switch(r.verticalAlign){case"bottom":y=g-h.height-c;break;case"middle":y=v+(g-v-h.height)/2-c;break;default:y=v+c}l&&l.trans(d,y),o.setBox(0,v,t,g)}}},e.prototype._doLayoutPolar=function(t,e,i){var n=this.model,r=this._box,o=this._labelView.setVis(n.label.visible)&&this._labelView,s=n.axis.getStartAngle(),a=n.axis.getPos(i.rd,n.options.startValue),u=n.axis.getPos(i.rd,n.options.endValue);if(r.setSector({cx:i.cx,cy:i.cy,rx:u,ry:u,innerRadius:a/u,start:s,angle:SS,clockwise:!0}),o){var l=a+(u-a)/2;o.trans(i.cx+l*tS(i.start),i.cy+l*eS(i.start))}},e}(cM),dM=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._views=new zE(e,OP),e}return Dx(e,t),e.prototype.prepare=function(){this._rows=[]},e.prototype.addAll=function(t,e){var i=this._rows;e.forEach((function(t){i.push.apply(i,zx([],jx(t.grid.rows.getRows()),!1))}))},e.prototype.layout=function(t,e,i){var n=this._rows;this._views.prepare(n.length),this._views.forEach((function(i,r){var o=n[r];if(o.axis._isHorz){var s=o.axis.getPos(t,o.from),a=o.axis.getPos(t,o.to);i.setPath(mk.rectangle(s,0,a-s,e))}else{var u=o.axis.getPos(e,o.from),l=o.axis.getPos(e,o.to);i.setPath(mk.rectangle(0,e-u,t,u-l))}i.setFill(o.color)}))},e}(LP),yM=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._linePool=[],e._rangePool=[],e._views=[],e}return Dx(e,t),e.prototype.prepare=function(){for(var t=this._views;t.length;){var e=t.pop().remove();e instanceof _M?this._rangePool.push(e):this._linePool.push(e)}},e.prototype.setAll=function(t,e,i){var n=this;e.forEach((function(e){var r;e instanceof EV?r=n._rangePool.pop()||new _M(t,i):e instanceof CV&&(r=n._linePool.pop()||new fM(t,i)),n.add(r),r.prepare(t,e)}))},e.prototype.add=function(e){return this._views.push(e),t.prototype.add.call(this,e)},e}(LP),gM=function(t){function e(e){var i=t.call(this,e)||this;return i.ignorePointer(),i}return Dx(e,t),e.prototype.setModel=function(t){t!=this.model&&(this.model=t,this._bar=t.isBar(),this.setClass(this._bar?"rct-crosshair-bar":"rct-crosshair-line"))},e.prototype.layout=function(t,e,i,n,r){var o=this.model.axis,s=o._isHorz,a=new YC;if(this._bar){var u=o._isHorz?n:r,l=void 0;if(t?l=t.point.xValue:this.model.options.showAlways&&(l=o.options.reversed?o.xValueAt(s?n-e:i):o.xValueAt(s?e:r-i)),o instanceof Lk&&(l=Jx(l)),!isNaN(l)){var h=o.getPos(u,l),p=o.getUnitLen(u,l);s?a.rect(h-p/2,0,p,r):a.rect(0,r-h-p/2,n,p)}}else(t||this.model.options.showAlways)&&(s?a.vline(e,0,r):a.hline(i,0,n));this.setPath(a.end())},e}(OP),vM=function(t){function e(i){var n=t.call(this,i,"Reset Zoom",e.CLASS_NAME)||this;return n.setVis(!1),n}return Dx(e,t),e.CLASS_NAME="rct-reset-zoom",e}(uL),mM=function(t){function e(e){var i=t.call(this,e,"rct-empty-view")||this;return i.add(i._backView=new bk(e)),i.add(i._labelView=new QE(e,"rct-empty-view-label")),i}return Dx(e,t),e.prototype.layout=function(t,e,i){this.setStyleOrClass(t._style),this._backView.resize(e,i);var n=this._labelView;t.buildSvg(n._text,n._outline,e,i,null,null),n.layout("center");var r=n.getBBox();n.trans((e-r.width)/2,(i-r.height)/2)},e}(LP),bM=function(t){function e(i,n){var r=t.call(this,i,e.BODY_CLASS)||this;return r._gridViews=new Map,r._baseViews=new Map,r._breakViews=[],r._seriesViews=[],r._seriesMap=new Map,r._annotationViews=[],r._annotationMap=new Map,r._gaugeViews=[],r._gaugeMap=new Map,r._owner=n,r.add(r._hitTester=new bk(i)),r._hitTester.setFill("transparent"),r.add(r._background=new bk(i,"rct-body-background")),r.add(r._image=new JE(i,!0,"rct-body-image")),r.add(r._emptyView=new mM(i)),r.add(r._gridRowContainer=new dM(i,"rct-axis-grid-rows")),r.add(r._gridContainer=new LP(i,"rct-axis-grids")),r.add(r._baseContainer=new LP(i,"rct-axis-bases")),r.add(r._guideContainer=new yM(i,"rct-axis-guides")),r.add(r._annotationContainer=new LP(i,"rct-annotations")),r.add(r._seriesContainer=new LP(i,"rct-series-container")),r.add(r._axisBreakContainer=new LP(i,"rct-axis-breaks")),r.add(r._labelContainer=new LP(i,"rct-label-container")),r.add(r._frontGuideContainer=new yM(i,"rct-front-axis-guides")),r.add(r._frontAnnotationContainer=new LP(i,"rct-front-annotations")),r.add(r._feedbackContainer=new LP(i,"rct-feedbacks")),r.add(r._zoomButton=new vM(i)),r._crosshairViews=new zE(r._feedbackContainer,gM),r}return Dx(e,t),e.prototype.getAnnotationAnchor=function(t){return this._gaugeMap.get(t)||this._annotationMap.get(t)},e.prototype.prepareRender=function(t,e){this._animatable=CP._animatable&&e.animatable(),this._prepareSeries(t,e,e._getSeries().getVisibleSeries()),this._prepareGauges(t,e,e._getGauges().getVisibles()),this._prepareAnnotations(t,e._body.getAnnotations())},e.prototype.prepareGuideContainers=function(){this._guideContainer.prepare(),this._frontGuideContainer.prepare()},e.prototype.pointerMoved=function(t,e){var i,n,r,o,s=this.width,a=this.height,u=this._inverted,l=this._polar,h=this._seriesViews,p=h.length,c=t.x>=0&&t.x<s&&t.y>=0&&t.y<a;if(e instanceof SVGElement&&(e.classList.contains(zL.POINT_CLASS)||e.parentElement instanceof SVGElement&&e.parentElement.classList.contains(zL.POINT_CLASS)))for(var f=p-1;f>=0;f--)if(o=h[f].pointByDom(e)){r=h[f];break}var _=null==e?void 0:e.classList,d=(null==_?void 0:_.value)&&(_.contains("rct-contextmenu-item")||_.contains("rct-contextmenu-list")),y=c&&!this._zoomRequested&&!this.chart().isEmpty(!0)&&!d;if(this._crosshairViews.forEach((function(e){e.setVis(y)&&e.layout(o,t.x,t.y,s,a)})),o)this.$_setFocused(r,o,t);else if(p>0){var g,v,m=this.chart()._chartOptions.pointHovering.getHintDistance(null==r?void 0:r.model),b=!l;try{for(var w=Ix(h),x=w.next();!x.done;x=w.next()){if(!(x.value.model instanceof CC)){b=!1;break}}}catch(t){i={error:t}}finally{try{x&&!x.done&&(n=w.return)&&n.call(w)}finally{if(i)throw i.error}}if(r=null,b)if(p>1){var S=[];h.forEach((function(e){g=aS(e.getHintDistance(),m),v=e.getNearest2(t.x,t.y,u),S.push({hint:g,sv:e,pv:v})}));var P=S.reduce((function(e,i){return e.pv&&i.pv?u?sS(e.pv.pv.point.xPos-t.x)<sS(i.pv.pv.point.xPos-t.x)?e:i:sS(e.pv.pv.point.yPos-t.y)<sS(i.pv.pv.point.yPos-t.y)?e:i:e||i}));r=P.sv,v=P.pv,g=P.hint}else r=h[0],g=aS(r.getHintDistance(),m),v=r.getNearest2(t.x,t.y,u);else h.forEach((function(e){if(e.getHintDistance&&(g=aS(e.getHintDistance(),m))>0){var i=e.getNearest(t.x,t.y);(!v||i.dist<v.dist)&&(r=e,v=i)}}));c&&v&&r.canHover(v.dist,v.pv,g)?this.$_setFocused(r,v.pv,t):this.$_setFocused(null,null,t)}return c},e.prototype.hoverSeries=function(t){this.$_hoverSeries(this._seriesMap.get(t))},e.prototype.$_setFocused=function(t,e,i){var n,r,o,s=this,a=this._focused,u=this._siblings,l=this._siblingSeries;if(t&&e)switch(this.chart()._chartOptions.pointHovering.getScope(t.model,e.point)){case"axis":o=t.model._xAxisObj.getSeries();case"group":o||(o=t.model._group.getVisibleSeries());var h=o.map((function(t){if(t instanceof Jk){for(var n=void 0,r=Number.MAX_SAFE_INTEGER,o=0;o<t.getPoints().count;o++){var s=t.getPoints().get(o),a=void 0;if(t instanceof HC){var u=(t._xAxisObj._vlen<t._yAxisObj._vlen?t._xAxisObj:t._yAxisObj)._vlen,l=t.getPixelMinMax(u),h=l.min,p=l.max,c=t.getRadius(s.zValue,h,p);a=Math.sqrt(Math.pow(s.xPos-i.x,2)+Math.pow(s.yPos-i.y,2))-c}else a=Math.sqrt(Math.pow(s.xPos-i.x,2)+Math.pow(s.yPos-i.y,2));a<r&&(r=a,n=s)}return n}return t.getPoints().pointAt(e.point.xValue)}));n=o.map((function(t){return s._owner.getSeriesView(t)})),r=[],h.forEach((function(t,e){r.push(n[e].getPointView(t))}));break;default:n=[t],r=[e]}var p=[];if(n&&n.forEach((function(t,e){p.push.apply(p,zx([],jx(t.getSiblings(r[e])),!1))})),p=p.length>1?p.sort((function(t,e){return t.hash-e.hash})):p.length>0?p:null,fS.equalArrays(u,p)||(n&&n.forEach((function(t,e){t.focusPoints(t.getSiblings(r[e]))})),l&&l.forEach((function(t){(!n||n.indexOf(t)<0)&&t.focusPoints(null)})),this._siblingSeries=n,this._siblings=p),e!==a){var c=this._focusedSeries;this._focused=e,t!==c&&(c&&this.$_focusSeries(c,!1),this._focusedSeries=t,t&&this.$_focusSeries(t,!0),this.chart()._chartOptions.options.seriesHovering&&this.$_hoverSeries(t))}!this._focused||this._focused===a&&this._owner.tooltipVisible()&&!this.model.chart._tooltip.isFollowPointer(t.model)?!this._focused&&this._owner.tooltipVisible()&&this._owner.hideTooltip():i.x>0&&i.x<this.width&&i.y>0&&i.y<this.height?this._owner.showTooltip(t.model,e,[],this,i):this._owner.hideTooltip()},e.prototype.$_focusSeries=function(t,e){e?t.model._group?t.front(this._seriesViews,this._seriesViews.filter((function(e){return e.model._group===t.model._group}))):t.front(this._seriesViews):t&&t.parent&&t.back(this._seriesViews)},e.prototype.$_hoverSeries=function(t){this._seriesViews.forEach((function(e){e.setBoolData(zL.DATA_UNHOVER,t&&e!==t),e._labelContainer.setBoolData(zL.DATA_UNHOVER,t&&e!==t)}))},e.prototype.hoverPoint=function(t){var e=this.chart().seriesByPoint(t),i=this.getSeries(e);i?(this._hoverPointSeries=i).hoverPoint(t):this._hoverPointSeries&&(this._hoverPointSeries.hoverPoint(null),this._hoverPointSeries=null)},e.prototype.seriesByDom=function(t){return this._seriesViews.find((function(e){return e.dom.contains(t)}))},e.prototype.findSeries=function(t){return this._seriesMap.get(t)},e.prototype.isConnected=function(t){return!!this._seriesViews.find((function(e){return e.model._xAxisObj==t||e.model._yAxisObj==t}))},e.prototype.getButton=function(t){if(this._zoomButton.contains(t))return this._zoomButton},e.prototype.buttonClicked=function(t){t===this._zoomButton&&(this.model.chart._getXAxes().resetZoom(),this.model.chart._getYAxes().resetZoom())},e.prototype.addFeedback=function(t){t&&this._feedbackContainer.add(t)},e.prototype.setZoom=function(t,e,i,n){var r=this.chart(),o=r.isInverted(),s=r.xAxis,a=o?this.height:this.width,u=s.valueAt(a,o?a-n:t),l=s.valueAt(a,o?a-e:i);s.zoom(u,l)&&(this._zoomRequested=!0)},e.prototype.animating=function(){var t,e,i=!1;try{for(var n=Ix(this._seriesViews),r=n.next();!r.done;r=n.next()){var o=r.value;if(o.visible&&o._animating()){i=!0;break}}}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}return i},e.prototype.getTooltipPos=function(){return{x:this.tx,y:this.ty}},e.prototype.getFocusPointView=function(){return this._focused},e.prototype.getSeries=function(t){return this._seriesViews.find((function(e){return e.model===t}))},e.prototype.removeFocus=function(){this._seriesViews.forEach((function(t){t._hoverPts.forEach((function(e){e instanceof qL&&e.endHover(t,!1),e.setBoolData(zL.DATA_FOCUS,!1)})),t._hoverPts=[],t._hoverAnis.forEach((function(t){t.stop()})),t._hoverAnis=[]})),this._owner.hideTooltip(),this._focused=null,this._siblings=null,this._siblingSeries=null},e.prototype.getBounds=function(){return this._hitTester.getBounds()},e.prototype._doMeasure=function(t,e,i,n,r){var o,s,a=this,u=e.chart,l=e.base();if(this._polar=u.isPolar(),this._zoomRequested=!1,this._seriesClip||(this._seriesClip=this.control.clipBounds(),this._seriesClip2=this.control.clipBounds(),this._bodyClip=this.control.clipBounds()),this._background.setStyleOrClass(l._style),l!==e&&this._background.internalSetStyleOrClass(e._style),this._background.setBoolData("polar",this._polar||u.isWidget()),this._emptyView.setVis(!1!==e.emptyView.visible&&e.isEmpty()),this._seriesViews.forEach((function(e,o){e.measure(t,a._series[o],i,n,r)})),!this._polar){this.$_prepareGrids(t,u);try{for(var h=Ix(this._gridViews.keys()),p=h.next();!p.done;p=h.next()){var c=p.value;this._gridViews.get(c).measure(t,c.grid,i,n,r)}}catch(t){o={error:t}}finally{try{p&&!p.done&&(s=h.return)&&s.call(h)}finally{if(o)throw o.error}}this.$_prepareAxisBreaks(t,u)}return this._gaugeViews.forEach((function(e,o){e.measure(t,a._gauges[o],i,n,r)})),this._annotationViews.forEach((function(e,o){e.measure(t,a._annotations[o],i,n,r)})),this._zoomButton.setVis(e.zoomButton.visible)&&this._zoomButton.layout(),{width:i,height:n}},e.prototype._clipSeries=function(t,e,i){var n=i?this._seriesClip:this._seriesClip2;t&&t.setClip(n),e&&e.setClip(n)},e.prototype._doLayout=function(){var t,e,i,n,r=this,o=this.width,s=this.height,a=this._image;if(this._inverted?(this._seriesClip.setBounds(0,-o,s,o),this._seriesClip2.setBounds(0,0,o,s)):(this._seriesClip.setBounds(0,0,o,s),this._seriesClip2.setBounds(0,0,o,s)),this._bodyClip.setBounds(0,0,o,s),this._hitTester.resize(o,s),this._background.resize(o,s),a.setVis(a.setImage(this.model.image.options.url,o,s))&&a.setStyleOrClass(this.model.image._style),this._emptyView.visible&&(this.model.emptyView._prepareRender(),this._emptyView.layout(this.model.emptyView,o,s)),this._seriesViews.forEach((function(t){t.model.needClip(!1)&&r._clipSeries(t.getClipContainer(),t.getClipContainer2(),t.clipInvertable()),t.resize(o,s),t.trans(0,0),t.layout()})),this._seriesViews.forEach((function(t){t.afterLayout()})),!this._polar){try{for(var u=Ix(this._gridViews.values()),l=u.next();!l.done;l=u.next()){(c=l.value).resize(o,s),c.layout()}}catch(e){t={error:e}}finally{try{l&&!l.done&&(e=u.return)&&e.call(u)}finally{if(t)throw t.error}}try{for(var h=Ix(this._baseViews.values()),p=h.next();!p.done;p=h.next()){var c,f=(c=p.value).tag;c.setStyleOrClass(f.baseLine._style),f._isHorz?c.setVLine(f.getPos(o,f.getBaseValue()),0,s):c.setHLine(f.getPos(s,f.getBaseValue()),0,o)}}catch(t){i={error:t}}finally{try{p&&!p.done&&(n=h.return)&&n.call(h)}finally{if(i)throw i.error}}this._breakViews.forEach((function(t){var e=t._model,i=e.axis;i._isHorz?i.options.reversed?t.trans(o-e._sect.pos,0):t.trans(e._sect.pos,0):i.options.reversed?t.trans(0,e._sect.pos):t.trans(0,s-e._sect.pos-e._sect.len),t.layout(o,s,e.axis._isHorz)}));var _=this.control;if(this._guideClip)this._guideClip.resize(_.width(),_.height());else{var d=_._padding;this._guideClip=_.clipBounds(-1*(d.left+this.tx),-1*(d.top+this.ty),_.width(),_.height())}[this._guideContainer,this._frontGuideContainer].forEach((function(t){t._views.forEach((function(t){return t.visible&&t.layout(o,s)})),t.setClip(r._guideClip)})),this._gridRowContainer.layout(o,s,!1)}this.$_prepareCrosshairs(this.chart()),this._gaugeViews.forEach((function(t){t.resizeByMeasured(),t.layout().transp(t.getPosition(o,s))})),this._layoutAnnotations(this._inverted,this,o,s),this._zoomButton.visible&&this._zoomButton.trans(o-this._zoomButton.getBBox().width-10,10)},e.prototype.$_createGaugeView=function(t,e){return new(dL[e._type()])(t)},e.prototype.$_prepareGrids=function(t,e){var i,n,r,o,s=e._needAxes(),a=this._gridContainer,u=this._gridViews,l=this._baseContainer,h=this._baseViews;try{for(var p=Ix(u.keys()),c=p.next();!c.done;c=p.next()){var f=c.value;s&&e.containsAxis(f)&&f.grid.visible||(u.get(f).remove(),u.delete(f))}}catch(t){i={error:t}}finally{try{c&&!c.done&&(n=p.return)&&n.call(p)}finally{if(i)throw i.error}}try{for(var _=Ix(h.keys()),d=_.next();!d.done;d=_.next()){f=d.value;(!s||!e.containsAxis(f)||f instanceof bA&&!f.baseLine.visible||!f.isBaseVisible())&&(h.get(f).remove(),h.delete(f))}}catch(t){r={error:t}}finally{try{d&&!d.done&&(o=_.return)&&o.call(_)}finally{if(r)throw r.error}}s&&[e._getXAxes(),e._getYAxes()].forEach((function(e){return e.forEach((function(e){var i=e.grid;if(!u.has(e)&&(i.visible||i.options.firstVisible||i.options.lastVisible)){var n=new hM(t);u.set(e,n),a.add(n)}if(e instanceof bA&&e.baseLine.visible&&e.isBaseVisible()&&!h.has(e)){n=new SC(t,"rct-axis-baseline");h.set(e,n),l.add(n),n.tag=e}}))}))},e.prototype._prepareSeries=function(t,e,i){var n,r,o=this,s=this._inverted=e.isInverted(),a=this._seriesMap,u=this._seriesViews;try{for(var l=Ix(a.keys()),h=l.next();!h.done;h=l.next()){var p=h.value;i.indexOf(p)<0&&(a.get(p).remove(),a.delete(p))}}catch(t){n={error:t}}finally{try{h&&!h.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}this._series=i,u.forEach((function(t){i.indexOf(t.model)<0&&(o.control.loaded?t.removeLater(200):t.remove(),t._labelContainer.remove())})),u.length=0,i.forEach((function(i){var n=a.get(i)||uM(t,i);n._setChartOptions(s,o._animatable,e.loadAnimatable()),n.parent||(o._seriesContainer.add(n),o._labelContainer.add(n._labelContainer)),a.set(i,n),u.push(n),n.prepareSeries(t,i)})),this._seriesContainer.sort(u),u.forEach((function(t){return o._labelContainer.dom.appendChild(t._labelContainer.dom)}))},e.prototype._prepareGauges=function(t,e,i){var n,r,o=this,s=this._seriesContainer,a=e.isInverted(),u=this._gaugeMap,l=this._gaugeViews;try{for(var h=Ix(u.keys()),p=h.next();!p.done;p=h.next()){var c=p.value;i.indexOf(c)<0&&(u.get(c).remove(),u.delete(c))}}catch(t){n={error:t}}finally{try{p&&!p.done&&(r=h.return)&&r.call(h)}finally{if(n)throw n.error}}this._gauges=i,l.forEach((function(t){return t.remove()})),l.length=0,i.forEach((function(i){var n=u.get(i)||o.$_createGaugeView(t,i);s.add(n),u.set(i,n),l.push(n),n.prepareGauge(t,i),n._setChartOptions(a,o._animatable,e.loadAnimatable())}))},e.prototype._prepareAnnotations=function(t,e){var i,n,r=this._annotationContainer,o=this._frontAnnotationContainer,s=this._annotationMap,a=this._annotationViews;try{for(var u=Ix(s.keys()),l=u.next();!l.done;l=u.next()){var h=l.value;e.indexOf(h)<0&&(s.get(h).remove(),s.delete(h))}}catch(t){i={error:t}}finally{try{l&&!l.done&&(n=u.return)&&n.call(u)}finally{if(i)throw i.error}}a.forEach((function(t){return t.remove()})),a.length=0,(this._annotations=e).forEach((function(e){var i=s.get(e)||aM(t,e);(e.options.front?o:r).add(i),s.set(e,i),a.push(i)}))},e.prototype.$_prepareAxisBreaks=function(t,e){var i=this._axisBreakContainer,n=this._breakViews,r=[];for([e._getXAxes(),e._getYAxes()].forEach((function(t){return t.forEach((function(t){t instanceof wA&&r.push.apply(r,zx([],jx(t._getBreaks()),!1))}))}));n.length<r.length;){var o=new pM(t);i.add(o),n.push(o)}for(;n.length>r.length;)n.pop().remove();n.forEach((function(t,e){return t.setModel(r[e])}))},e.prototype.$_prepareCrosshairs=function(t){var e=this,i=this._crosshairViews,n=[];[t._getXAxes(),t._getYAxes()].forEach((function(t){return t.forEach((function(t){t.crosshair.visible&&n.push(t.crosshair)}))})),i.prepare(n.length,(function(t,i){t.setModel(n[i]),t.setClip(e._bodyClip)}))},e.prototype._layoutAnnotations=function(t,e,i,n){var r=this;this._annotationViews.length>0&&this._annotationViews.forEach((function(o){o._layoutView(t,e,0,0,i,n),o.setClip(r._polar||o.model.options.noClip?wS:r._bodyClip)}))},e.BODY_CLASS="rct-body",e}(UE),wM=function(t){function e(e){var i=t.call(this,e,xM.HANDLE_STYLE)||this;return i.add(i._back=new bk(e)),i.add(i._shape=new OP(e)),i._shape.setFill("white"),i}return Dx(e,t),e.prototype.layout=function(t,e,i){if(t!==this._w||e!==this._h||i!==this._vertical){var n=1.3*rS(t,e),r=new YC;this._back.rect={x:-n/2,y:-n/2,width:n,height:n,rx:n/2},n/=3,r.polygon(-n-1,0,-1,-n,-1,n),r.polygon(n+1,0,1,-n,1,n),this._shape.setPath(r.end()),this._w=this.width=t,this._h=this.height=e,this._vertical=i}},e}(EP),xM=function(t){function e(i){var n=t.call(this,i,e.CLASS_NAME)||this;return n.add(n._back=new bk(i,e.BACK_STYLE)),n.add(n._container=new LP(i,null)),n.add(n._mask=new bk(i,e.MASK_STYLE)),n.add(n._trackView=new bk(i,e.TRACK_CLASS)),n.add(n._thumbView=new bk(i,e.THUMB_CLASS)),n.add(n._startHandle=new wM(i)),n.add(n._endHandle=new wM(i)),n._startHandle.setStyle("cursor","ew-resize"),n._endHandle.setStyle("cursor","ew-resize"),n._mask.setStyle("cursor","ew-resize"),n._mask.dom.addEventListener("dblclick",(function(){n.model.axis()._zoom&&n.model.axis().resetZoom()})),n}return Dx(e,t),e.isHandle=function(t){var i;return null===(i=t.parentElement)||void 0===i?void 0:i.classList.contains(e.HANDLE_STYLE)},e.isMask=function(t){return t.classList.contains(e.MASK_STYLE)},e.prototype.dblClick=function(t){var e=this.model.axis();return this._startHandle.contains(t)?(e.zoom(e._zoom.min,e._zoom.end),!0):this._endHandle.contains(t)?(e.zoom(e._zoom.start,e._zoom.max),!0):void(this.contains(t)&&e.resetZoom())},e.prototype.svgToElement=function(t,e){return this.control.svgToElement(this._back,t,e)},e.prototype._doMeasure=function(t,e,i,n,r){var o=e._naviChart;o.firstSeries;var s=i,a=n;return e._vertical?s=e.getSize():a=e.getSize(),e._naviChart.layoutAxes(s,a,!1,1),this.$_prepareSeriesView(t,o),this.$_prepareXAxisView(t,o),this.$_prepareYAxisView(t,o),e._naviChart.xAxis._calcPoints(s,101),e._naviChart.yAxis._calcPoints(a,1),{width:s,height:a}},e.prototype._doLayout=function(t){var e=this.model,i=e.axis()._zoom,n=this.width,r=this.height;if(this._back.resize(n,r),e._vertical);else{var o=i?(i.start-i.min)*n/i.total():0,s=i?(i.end-i.min)*n/i.total():n;this._mask.setBounds(o,0,s-o,r),this._trackView.setBounds(-2,r,n+4,6),this._trackView.setRadius(4),this._thumbView.setBounds(o,r,s-o,6),this._startHandle.layout(r/3,r/3,!1),this._startHandle.trans(o,r+3),this._endHandle.layout(r/3,r/3,!1),this._endHandle.trans(s,r+3)}this._seriesView&&(this._seriesView.measure(this.doc,e._naviChart.firstSeries,n,r,1),this._seriesView.resize(n,r),this._seriesView.layout(),this._seriesView.afterLayout()),this._xAxisView&&(this._xAxisView.measure(this.doc,e._naviChart.xAxis,n,r,1),this._xAxisView.resize(n,r),this._xAxisView.layout()),this._yAxisView.setVis(!1)},e.prototype.$_prepareSeriesView=function(t,e){var i=e.firstSeries,n=this._seriesView;n&&n.model!==i&&(n.remove(),n=this._seriesView=null),n||(this._container.add(n=this._seriesView=uM(t,i)),n._simpleMode=!0),n&&n.prepareSeries(t,i)},e.prototype.$_prepareXAxisView=function(t,e){var i=e.xAxis,n=this._xAxisView;n&&n.model!==i&&(n.remove(),n=this._xAxisView=null),n||(this._container.add(n=this._xAxisView=new aL(t)),n._simpleMode=!0)},e.prototype.$_prepareYAxisView=function(t,e){var i=e.yAxis,n=this._yAxisView;n&&n.model!==i&&(n.remove(),n=this._yAxisView=null),n||(this._container.add(n=this._yAxisView=new aL(t)),n._simpleMode=!0)},e.CLASS_NAME="rct-navigator",e.BACK_STYLE="rct-navigator-back",e.MASK_STYLE="rct-navigator-mask",e.HANDLE_STYLE="rct-navigator-handle",e.HANDLE_BACK_STYLE="rct-navigator-handle-back",e.TRACK_CLASS="rct-navigator-track",e.THUMB_CLASS="rct-navigator-thumb",e}(UE),SM=function(t){function e(e){var i=t.call(this)||this;return i.chart=e,i}return Dx(e,t),e}(IP),PM=function(t){function e(e,i,n){var r=t.call(this,e)||this;return r._body=i,r._vertical=n,r}return Dx(e,t),e.prototype._doStart=function(t,e,i,n,r){var o=this.chart.getBounds(),s=this._body.getBounds();return this._xStart=e-(s.x-o.x),this._yStart=i-(s.y-o.y),this._body.addFeedback(this._feedback=new bk(this.chart.doc(),"rct-zoom-tracker")),!0},e.prototype._doEnded=function(t,e){var i=this.chart.getBounds(),n=this._body.getBounds();this._vertical?(e-=n.y-i.y,this._body.setZoom(0,rS(this._yStart,e),this._body.width,oS(this._yStart,e))):(t-=n.x-i.x,this._body.setZoom(rS(this._xStart,t),0,oS(this._xStart,t),this._body.height)),this._feedback.remove()},e.prototype._doDrag=function(t,e,i,n,r){var o=this.chart.getBounds(),s=this._body.getBounds();return this._vertical?(r=Math.max(0,Math.min(s.height,r-(s.y-o.y))),this._feedback.setBounds(0,rS(this._yStart,r),this._body.width,sS(this._yStart-r))):(n=Math.max(0,Math.min(s.width,n-(s.x-o.x))),this._feedback.setBounds(rS(this._xStart,n),0,sS(this._xStart-n),this._body.height)),!0},e}(SM),VM=function(t){function e(e,i){var n=t.call(this,e)||this;return n._view=i,n}return Dx(e,t),e.prototype._doStart=function(t,e,i,n,r){var o=this._view,s=o.model.axis._zoom;if(s){var a=o._thumbView.elementToSvg(0,0);return this._startOff=o._vertical?i-a.y:e-a.x,this._zoomLen=s.length(),!0}return!1},e.prototype._doDrag=function(t,e,i,n,r){var o,s=this._view;return s._vertical?(o=s.svgToElement(n,r).y-this._startOff,o=s.getZoomPos(s.height-o-s._thumbView.height),s.model.axis.zoom(o,o+this._zoomLen)):(o=s.svgToElement(n,r).x-this._startOff,o=s.getZoomPos(o),s.model.axis.zoom(o,o+this._zoomLen),console.log(o)),!0},e}(SM),kM=function(t){function e(e,i,n){var r=t.call(this,e)||this;return r._view=i,(r._isStart=i._startHandle.contains(n))?r._handleView=i._startHandle:r._handleView=i._endHandle,r}return Dx(e,t),e.prototype._doStart=function(t,e,i,n,r){var o=this._handleView,s=o.elementToSvg(0,0);return this._startOff=o._vertical?i-s.y-o.height/2:e-s.x-o.width/2,this._handleView.setBoolData("select",!0),!0},e.prototype._doEnded=function(t,e){this._handleView.setBoolData("select",!1)},e.prototype._doDrag=function(t,e,i,n,r){var o=this._view,s=o.model.axis();s._prepareZoom();var a=o.svgToElement(n,r).x-this._startOff,u=s._zoom.total(),l=s._zoom.min,h=o.model.options.minSize;return this._handleView._vertical?this._isStart:this._isStart?a>0?s.zoom(a*u/o.width+l,NaN,h):s.zoom(l,NaN,h):a>0&&a<o.width?s.zoom(NaN,a*u/o.width+l,h):a>=o.width&&s.zoom(NaN,s._zoom.max,h),!0},e}(SM),AM=function(t){function e(e,i,n){var r=t.call(this,e)||this;return r._view=i,r._maskView=i._mask,r}return Dx(e,t),e.prototype._doStart=function(t,e,i,n,r){var o=this._view.model.axis(),s=this._maskView.elementToSvg(0,0);return this._startOff=this._view.model._vertical?i-s.y:e-s.x,this._totalLen=o._zoom.total(),this._zoomLen=o._zoom.length(),!0},e.prototype._doEnded=function(t,e){},e.prototype._doDrag=function(t,e,i,n,r){var o=this._view,s=o.svgToElement(n,r).x-this._startOff;return o.model._vertical?this.$_moveZoom(s*this._totalLen/o.height):this.$_moveZoom(s*this._totalLen/o.width),!0},e.prototype.$_moveZoom=function(t){var e=this._view.model;t=oS(0,rS(t,this._totalLen-this._zoomLen))+e.axis()._zoom.min,e.axis().zoom(t,t+this._zoomLen)},e}(SM),CM=function(){function t(t){this._chart=t}return t.prototype.handleDown=function(t){if(t.isPrimary){var e=this._clickElement=t.target;if(e){var i=this.$_pointerToPoint(t);this._dragTracker&&this.$_stopDragTracker(t,e,i.x,i.y),this._prevX=this._clickX=i.x,this._prevY=this._clickY=i.y}}},t.prototype.handleUp=function(t){this.isDragging()&&this.$_stopDragTracker(t,t.target,this._prevX,this._prevY)},t.prototype.handleMove=function(t){var e=this._chart.chartView(),i=this.$_pointerToPoint(t),n=i.x,r=i.y;if(t.buttons>=1||0===t.buttons&&0===t.button){var o=this.isDragging(),s=this._clickElement;n<0||n>=e.control.dom().offsetWidth||r<0||r>=e.control.dom().offsetHeight||(o?this.$_doDrag(t,s,n,r):(!this._dragTracker&&(sS(this._clickX-n)>3||sS(this._clickY-r)>3)||this._dragTracker&&!o)&&this.$_startMove(t,s,n,r))}this._prevX=n,this._prevY=r,this.isDragging()?(e.pointerMoved(-1,-1,null),this._stopEvent(t)):e.getButton(t.target)||e.pointerMoved(t.pointX,t.pointY,t.target)},t.prototype.handleClick=function(t){var e,i,n,r=this._chart.chartView(),o=this._clickElement,s=r.getButton(o);if(s)!0!==s.click()&&r.buttonClicked(s);else if(i=r.legendByDom(o))if(i.source instanceof Sk){var a=i.source,u=this._chart.model.seriesByPoint(a);if(u){u.setPointVisible(a,!a.visible);var l=this._chart.chartView().findSeriesView(u);l instanceof JL&&l.togglePointVisible(a)}}else i.source.visible=!i.source.visible,r.bodyView().hoverSeries(i.source.visible?i.source:null);else(n=r.seriesByDom(o))?n.clicked(o):(e=r.creditByDom(o))&&e.clicked(o)},t.prototype.handleDblClick=function(t){var e=this._chart.chartView()._navigatorView,i=this._clickElement;!e.visible||e.dblClick(i)},t.prototype.handleWheel=function(t){},Object.defineProperty(t.prototype,"dragTracker",{get:function(){return this._dragTracker},enumerable:!1,configurable:!0}),t.prototype.setDragTracker=function(t){t!=this._dragTracker&&(this._dragTracker&&this._dragTracker.cancel(),this._dragTracker=t)},t.prototype.isDragging=function(){return this._dragTracker&&this._dragTracker.dragging},t.prototype._stopEvent=function(t){t.cancelable&&t.preventDefault(),t.stopImmediatePropagation()},t.prototype.$_pointerToPoint=function(t){var e=this._chart.svg().getBoundingClientRect();return{x:t.clientX-e.left,y:t.clientY-e.top}},t.prototype._getDragTracker=function(t,e,i){var n=this._chart.chartView(),r=n.bodyOf(t);return oL.isThumb(t)?new VM(this._chart,n.getScrollView(t)):xM.isHandle(t)?new kM(this._chart,n._navigatorView,t):xM.isMask(t)&&r&&r.model.isZoomed()?new AM(this._chart,n._navigatorView,t):r&&r.model.canZoom()&&r.contains(t)?new PM(this._chart,r,n._inverted):void 0},t.prototype.$_doDrag=function(t,e,i,n){if(!this.$_drag(e,this._prevX,this._prevY,i,n))return this.$_stopDragTracker(t,e,i,n,!0),this._stopEvent(t),!0},t.prototype.$_startMove=function(t,e,i,n){this.$_startDrag(e,this._prevX,this._prevY,i,n)&&(i!==this._prevX||n!==this._prevY?this.$_doDrag(t,e,i,n):this._stopEvent(t),this._chart.setPointerCapture(t))},t.prototype.$_startDrag=function(t,e,i,n,r){if(this._dragTracker||this.setDragTracker(this._getDragTracker(t,n-e,r-i)),this._dragTracker){if(this._dragTracker.start(t,e,i,n,r))return!0;this._dragTracker=null}return!1},t.prototype.$_drag=function(t,e,i,n,r){return this._dragTracker.drag(t,e,i,n,r)},t.prototype.$_stopDragTracker=function(t,e,i,n,r){void 0===r&&(r=!1),this.isDragging()&&(this._chart.releasePointerCapture(t),r?this._dragTracker.cancel():this._dragTracker.drop(null,i,n),this._dragTracker=null)},t}(),EM=function(t){function e(i){var n=t.call(this,i,e.TITLE_CLASS)||this;return n._itemViews=[],n._separators=[],n.itemGap=8,n.setVis(!1),n}return Dx(e,t),e.prototype.setHistory=function(t,e){if(this.setVis(e&&e.length>0)){for(var i=this._itemViews,n=this._separators;i.length<e.length;){(r=new jP(t,"rct-history-item")).anchor=RP.START,i.push(r)}for(;i.length>e.length;)i.pop().remove();for(;n.length<e.length-1;){var r;(r=new jP(t)).anchor=RP.START,r.text=">",n.push(r)}for(;n.length>e.length-1;)n.pop().remove();this.$_layout(e)}},e.prototype.$_layout=function(t){for(var e=this._itemViews,i=this._separators,n=this.itemGap,r=t.length,o=0,s=0;s<r;s++)e[s].text=t[s].name,e[s].transX(o),s<r-1&&(o+=e[s].width+n,i[s].transX(o),o+=i[s].width+n)},e.TITLE_CLASS="rct-history",e}(LP),LM=function(t){function e(e){var i=t.call(this,e,"rct-legend-item")||this;return i.add(i._back=new bk(e)),i._back.setFill("transparent"),i._back.setStroke("none"),i.add(i._label=new jP(e,"rct-legend-item-label")),i._label.anchor=RP.START,i}return Dx(e,t),e.prototype.setMarker=function(t){t!==this._marker&&(this._marker&&this._marker.remove(),this.insertFirst(this._marker=t))},e.prototype._doMeasure=function(t,e,i,n,r){this._label.setBoolData("hidden",!e.source.visible),this._marker.setBoolData("hidden",!e.source.visible),this._label.text=e.text()||"…";var o=this._rMarker=this._marker.setVis(e.legend.options.markerVisible)?this._marker.getBBox():$E,s=GE(this._label.getBBox());return this._gap=aS(e.legend.options.markerGap,0),{width:o.width+this._gap+s.width,height:oS(o.height,s.height)}},e.prototype._doLayout=function(t){var e=this._rMarker,i=aS(t,e.width);this._back.setBounds(0,0,this.width,this.height),this._marker.visible&&this._marker.trans((i-e.width)/2,(this.height-e.height)/2),this._label.trans(i+this._gap,(this.height-this._label.getBBox().height)/2)},e}(UE),NM=function(t){function e(i){var n=t.call(this,i,e.LEGEND_CLASS,"rct-legend-background")||this;return n._itemViews=new zE(n,LM),n}return Dx(e,t),e.prototype.legendByDom=function(t){var e=this._itemViews.elementOf(t);return e&&e.model},e.prototype.legendOfSeries=function(t){return this._itemViews.find((function(e){return e.model.source===t}))},e.prototype._setBackgroundStyle=function(t){t.setStyleOrClass(this.model.options.backgroundStyle)},e.prototype._doMeasure=function(t,e,i,n,r){var o=e.options,s=e.items(),a=this._vertical="vertical"===e.getLayout();return this._ipr=aS(o.itemsPerLine,Number.MAX_SAFE_INTEGER),this._gap="body"!==e._location?aS(o.gap,0):0,a?n=e.getMaxHeight(n):i=e.getMaxWidth(i),this.$_prepareItems(t,s),this.$_measure(t,e,a,this._ipr,i,n)},e.prototype._doLayout=function(){var t,e=this,i=this.model.options,n=this._rowViews,r=i.useTextColor,o=this._sizes,s=i.itemsAlign,a=i.lineGap||0,u=i.itemGap||0,l=this._margins,h=this._paddings,p=this._vertical,c=l.left+h.left,f=l.top+h.top,_=c,d=f;this._itemViews.forEach((function(t){var e=t.model.source,i=e.legendColor();t._marker.setColor(i),r&&e.visible?t._label.setFill(i):t._label.setFill("")})),n.forEach((function(i,n){p?(i.forEach((function(t){t.mw=o[n],t.resizeByMeasured().layout(e._wMarkers[n])})),d=f,"center"!==s&&"end"!==s||(t=i.map((function(t){return t.height})).reduce((function(t,e){return t+e}))+u*(i.length-1)+l.top+l.bottom+h.top+h.bottom,d+="center"===s?(e.height-t)/2:e.height-t),i.forEach((function(t){t.trans(_,d),d+=t.height+u})),_+=o[n]+a):(i.forEach((function(t){t.resizeByMeasured().layout(NaN)})),_=c,"center"!==s&&"end"!==s||(t=i.map((function(t){return t.width})).reduce((function(t,e){return t+e}))+u*(i.length-1)+l.left+l.right+h.left+h.right,_+="center"===s?(e.width-t)/2:e.width-t),i.forEach((function(t){t.trans(_,d),_+=t.width+u})),d+=o[n]+a)}))},e.prototype.$_prepareItems=function(t,e){this._itemViews.prepare(e.length)},e.prototype.$_measure=function(t,e,i,n,r,o){var s,a,u,l,h=this,p=e.options,c=e.items(),f=this._itemViews,_=p.itemGap||0,d=p.lineGap||0,y=e.getMarkerSize(),g=f.count,v=this._rowViews=[],m=this._sizes=[];f.forEach((function(e,i){e.setMarker(c[i].source.legendMarker(t,y)),e.measure(t,c[i],r,o,1)}));var b=0,w=0;if(i){for(;b<g;)l=f.get(b),w%n==0?(v.push(u=[l]),a=l.mh,w++,b++):(a+=_+l.mh)<=o?(u.push(l),w++,b++):w=0;this._wMarkers=[],s=a=0,v.forEach((function(t,e){var i=0,n=0,r=0;t.forEach((function(t){n+=t.mh,i=oS(i,t.mw),r=oS(r,t._rMarker.width),t._col=e})),n+=_*(t.length-1),a=oS(a,n),s+=i,m.push(i),h._wMarkers.push(r)})),s+=d*(v.length-1)}else{for(;b<g;)l=f.get(b),w%n==0?(v.push(u=[l]),s=l.mw,w++,b++):(s+=_+l.mw)<=r?(u.push(l),w++,b++):w=0;s=a=0,v.forEach((function(t){var e=0,i=0;t.forEach((function(t){e+=t.mw,i=oS(i,t.mh)})),e+=_*(t.length-1),s=oS(s,e),a+=i,m.push(i)})),a+=d*(v.length-1)}return{width:s,height:a}},e.LEGEND_CLASS="rct-legend",e}(qE),MM=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.views=[],e._gap=0,e}return Dx(e,t),e.prototype.isEmpty=function(){return 0===this.views.length},e.prototype.prepare=function(t,e,i,n,r){var o=this.views,s=[];for(this.isX=e,i&&i._axes.forEach((function(t){s.push(t)}));o.length<s.length;){var a=new aL(t);this.add(a),o.push(a)}for(;o.length>s.length;)o.pop().remove();if(o.forEach((function(t,e){s[e]._runPos,t.model=s[e]})),this.axes=s,this.setVis(o.length>0)){var u=o[0].model;this._gap=u.chart.getAxesGap()}},e.prototype.prepareGuides=function(t,e,i){var n=this,r=this.views,o=this.axes;r.forEach((function(i,r){var s=o[r];e.forEach((function(e){e.forEach((function(e){e.isConnected(s)&&i.setVis(n.visible)&&i.prepareGuides(t,e.row,e.col,e._guideContainer,e._frontGuideContainer)}))}))}))},e.prototype.checkHeights=function(t,e,i){return this.views.length>0?this.$_checkHeights(this.views,t,e,i):0},e.prototype.$_checkHeights=function(t,e,i,n){var r=0;return t&&(t.forEach((function(t){r+=t.checkHeight(e,i,n)})),r+=(this.views.length-1)*this._gap),r},e.prototype.checkWidths=function(t,e,i){return this.views.length>0?this.$_checkWidths(this.views,t,e,i):0},e.prototype.$_checkWidths=function(t,e,i,n){var r=0;return t&&(t.forEach((function(t){r+=t.checkWidth(e,i,n)})),r+=(this.views.length-1)*this._gap),r},e.prototype.getScrollView=function(t){var e,i,n;try{for(var r=Ix(this.views),o=r.next();!o.done;o=r.next()){var s=o.value;if(null===(n=s._scrollView)||void 0===n?void 0:n.contains(t))return s._scrollView}}catch(t){e={error:t}}finally{try{o&&!o.done&&(i=r.return)&&i.call(r)}finally{if(e)throw e.error}}},e.prototype.setMargins=function(t,e,i,n){this.views.forEach((function(r){return r.setMargins(t,e,i,n)}))},e.prototype._setInverted=function(e){t.prototype._setInverted.call(this,e),this.isHorz=e&&!this.isX||!e&&this.isX},e.prototype._doMeasure=function(t,e,i,n,r){var o=this.axes;if(this.isHorz){var s=0;return this.views.forEach((function(e,a){s+=e.measure(t,o[a],i,n,r).height})),{width:i,height:s}}var a=0;return this.views.forEach((function(e,s){a+=e.measure(t,o[s],i,n,r).width})),{width:a,height:n}},e.prototype._doLayout=function(t){var e=this;this.isHorz?this.views.forEach((function(t){t.resize(e.width,t.mh),t.layout()})):this.views.forEach((function(t){t.resize(t.mw,e.height),t.transX(e.width-t.mw),t.layout()}))},e}(ZE),TM=function(t){function e(e,i){var n=t.call(this,e,"rct-axis-container")||this;return n.isX=i,n.sections=[],n}return Dx(e,t),e.prototype.prepare=function(t,e,i,n){for(var r=this,o=this.isX?i.getRow(n):i.getColumn(n);this.sections.length<o.length;){var s=new MM(t);this.add(s),this.sections.push(s)}for(;this.sections.length>o.length;)this.sections.pop().remove();this.sections.forEach((function(s,a){r.isX?(s.row=n,s.col=a):(s.col=n,s.row=a),s.prepare(t,r.isX,o[a],e,i)}))},e.prototype.prepareGuides=function(t,e,i,n){for(var r=this,o=this.isX?i.getRow(n):i.getColumn(n);this.sections.length<o.length;){var s=new MM(t);this.add(s),this.sections.push(s)}for(;this.sections.length>o.length;)this.sections.pop().remove();this.sections.forEach((function(o,s){r.isX?(o.row=n,o.col=s):(o.col=n,o.row=s),o.prepareGuides(t,e,i)}))},e.prototype.checkWidths=function(t,e,i){return this.sections.length>0?this.sections.reduce((function(n,r){return n+r.checkWidths(t,e,i)}),0):0},e.prototype.checkHeights=function(t,e,i){return this.sections.length>0?this.sections.reduce((function(n,r){return n+r.checkHeights(t,e,i)}),0):0},e.prototype._setInverted=function(e){t.prototype._setInverted.call(this,e),this._isHorz=e&&!this.isX||!e&&this.isX},e.prototype._doMeasure=function(t,e,i,n,r){var o=0,s=0;return this._isHorz?this.sections.forEach((function(o){s=oS(s,o.measure(t,e,i,n,r).height)})):this.sections.forEach((function(s){o=oS(o,s.measure(t,e,i,n,r).width)})),{width:o,height:s}},e.prototype._doLayout=function(t){var e=this;this._isHorz?this.height>0&&this.sections.forEach((function(i,n){i.resize(t[2*(n+1)]-t[2*(n+1)-1],e.height),i.trans(t[2*n+1]-t[1],0),i.layout()})):this.width>0&&this.sections.forEach((function(i,n){i.resize(e.width,t[2*(n+1)]-t[2*(n+1)-1]),i.trans(0,e.height-(t[2*(n+1)]-t[1])),i.layout()}))},e}(ZE),OM=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.row=0,e.col=0,e}return Dx(e,t),e.prototype.prepareRender=function(t,e){var i=this.row,n=this.col,r=e._split.getPane(i,n).body,o=e._getSeries().getPaneSeries(i,n),s=e._getGauges().getPaneVisibles(i,n);this._animatable=CP._animatable&&e.animatable(),this._prepareSeries(t,e,o),this._prepareGauges(t,e,s),this._prepareAnnotations(t,r.getAnnotations())},e.prototype.getTooltipPos=function(){return{x:this.parent.parent.tx+this.tx,y:this.parent.parent.ty+this.ty}},e}(bM),RM=function(t){function e(i,n){var r=t.call(this,i,e.STYLE_NAME)||this;return r._bodies=[],r._xContainers=[],r._yContainers=[],r._owner=n,r}return Dx(e,t),Object.defineProperty(e.prototype,"bodies",{get:function(){return this._bodies},enumerable:!1,configurable:!0}),e.prototype.bodyViewOf=function(t){return this._bodies.find((function(e){return e.contains(t)}))},e.prototype.prepare=function(t,e){e.chart,this.$_init(t),this._model=e,this.$_prepareBodies(t,e)},e.prototype.measure=function(t,e,i,n,r,o,s){var a=e.chart,u=this._inverted=e.chart.isInverted(),l=r,h=o;this.$_prepareAxes(t,i,!0),this.$_prepareAxes(t,n,!1),e.layoutAxes(r,o,u,s),u?(r-=this._xContainers.reduce((function(e,i){return e+i.checkWidths(t,r,o)}),0),o-=this._yContainers.reduce((function(e,i){return e+i.checkHeights(t,r,o)}),0)):(o-=this._xContainers.reduce((function(e,i){return e+i.checkHeights(t,r,o)}),0),r-=this._yContainers.reduce((function(e,i){return e+i.checkWidths(t,r,o)}),0)),e.layoutAxes(r,o,u,s),this._xContainers.forEach((function(e){return e.measure(t,a,r,o,s)})),this._yContainers.forEach((function(e){return e.measure(t,a,r,o,s)})),r=l,o=h,u?(r-=this._xContainers.reduce((function(t,e){return t+e.mw}),0),o-=this._yContainers.reduce((function(t,e){return t+e.mh}),0)):(o-=this._xContainers.reduce((function(t,e){return t+e.mh}),0),r-=this._yContainers.reduce((function(t,e){return t+e.mw}),0)),e.layoutAxes(r,o,u,s),this.$_prepareAxisGuides(t,i,!0),this.$_prepareAxisGuides(t,i,!1),this._xContainers.forEach((function(e){return e.measure(t,a,r,o,s)})),this._yContainers.forEach((function(e){return e.measure(t,a,r,o,s)}));var p=e.getXLens(u?o:r),c=e.getYLens(u?r:o);e.calcAxesPoints(p,c)},e.prototype.layout=function(){var t=this._model,e=this.width,i=this.height;this._back.resize(e,i),this.$_calcExtents(t,e,i),this.$_layoutAxes(t,!0,e,i),this.$_layoutAxes(t,!1,e,i),this.$_layoutBodies(t,e,i)},e.prototype.seriesByDom=function(t){var e,i;try{for(var n=Ix(this._bodies),r=n.next();!r.done;r=n.next()){var o=r.value.seriesByDom(t);if(o)return o}}catch(t){e={error:t}}finally{try{r&&!r.done&&(i=n.return)&&i.call(n)}finally{if(e)throw e.error}}},e.prototype.getSeries=function(t){var e,i;try{for(var n=Ix(this.bodies),r=n.next();!r.done;r=n.next()){var o=r.value.findSeries(t);if(o)return o}}catch(t){e={error:t}}finally{try{r&&!r.done&&(i=n.return)&&i.call(n)}finally{if(e)throw e.error}}},e.prototype.$_init=function(t){this._back||(this.add(this._back=new bk(t)),this._back.setStyles({fill:"none"}),this.add(this._bodyContainer=new LP(t,wS)),this.add(this._axisContainer=new LP(t,wS)))},e.prototype.$_prepareBodies=function(t,e){for(var i=e.chart,n=e.paneCount(),r=this._bodies,o=this._bodyMap=[];r.length<n;){var s=new OM(t,this._owner);this._bodyContainer.add(s),r.push(s)}for(;r.length>n;)r.pop().remove();for(var a=0;a<e.rowCount();a++){for(var u=[],l=0;l<e.colCount();l++){var h=r[a*e.colCount()+l];u.push(h),h.row=a,h.col=l}o.push(u)}r.forEach((function(e){e.prepareRender(t,i),e.prepareGuideContainers(),e._gridRowContainer.prepare()}))},e.prototype.$_prepareAxes=function(t,e,i){for(var n=this,r=i?this._xContainers:this._yContainers,o=i?e.rows():e.cols();r.length<o;){var s=new TM(t,i);this._axisContainer.add(s),r.push(s)}for(;r.length>o;)r.pop().remove();r.forEach((function(i,r){i.prepare(t,n._bodyMap,e,r)}))},e.prototype.$_prepareAxisGuides=function(t,e,i){var n=this;(i?this._xContainers:this._yContainers).forEach((function(i,r){i.prepareGuides(t,n._bodyMap,e,r)}))},e.prototype.$_calc=function(t,e,i,n){var r=new Array(2*(e+1)),o=i-t.reduce((function(t,e){return t+e[n]}),0),s=new Array(e),a=0,u=0;for(u=0;u<e;u++)s[u]=o/e;for(u=0;u<e;u++)r[2*u]=a,r[2*u+1]=a+=t[u][n],a+=s[u];return r[2*u]=a,r[2*u+1]=a+t[u][n],r},e.prototype.$_calcExtents=function(t,e,i){this._inverted?(this._rowPoints=this.$_calc(this._xContainers,t.rowCount(),e,"mw"),this._colPoints=this.$_calc(this._yContainers,t.colCount(),i,"mh")):(this._rowPoints=this.$_calc(this._xContainers,t.rowCount(),i,"mh"),this._colPoints=this.$_calc(this._yContainers,t.colCount(),e,"mw"))},e.prototype.$_layoutAxes=function(t,e,i,n){var r=this.control._padding,o=this._rowPoints,s=this._colPoints,a=e?this._xContainers:this._yContainers;if(this._inverted)if(e){var u=s[1],l=s[s.length-2]-u;a.forEach((function(t,e){t.resize(t.mw,l),t.trans(o[2*e],n-s[s.length-2]),t.layout(s)}))}else{var h=o[1],p=o[o.length-2]-h;a.forEach((function(t,e){for(var i=t.sections,a=0,u=i.length;a<u;a++){var l=i[a],c=0===a?r.left:0,f=a===u-1?r.right:0,_=0,d=0;u>1&&(_=o[2*a+1]-o[2*a],d=o[2*(a+1)+1]-o[2*(a+1)],0===a?i[a+1].isEmpty()?d=o[2*(a+1)]-o[2*(a+1)-1]:d/=2:a===u-1?i[a-1].isEmpty()?_=o[2*(a-1)]-o[2*(a-1)-1]:_/=2:(i[a-1].isEmpty()?_=o[2*(a-1)]-o[2*(a-1)-1]:_/=2,i[a+1].isEmpty()?d=o[2*(a+1)]-o[2*(a+1)-1]:d/=2)),l.setMargins(c,_,d,f)}t.resize(p,t.mh),t.trans(h,n-s[2*e+1]),t.layout(o)}))}else if(e){var c=s[1];i=s[s.length-2]-c,a.forEach((function(t,e){for(var u=t.sections,l=0,h=u.length;l<h;l++){var p=u[l],f=0===e?r.left:0,_=e===a.length-1?r.right:0,d=0,y=0;h>1&&(d=s[2*l+1]-s[2*l],y=s[2*(l+1)+1]-s[2*(l+1)],0===l?u[l+1].isEmpty()?y=s[2*(l+1)]-s[2*(l+1)-1]:y/=2:l===h-1?u[l-1].isEmpty()?d=s[2*(l-1)]-s[2*(l-1)-1]:d/=2:(u[l-1].isEmpty()?d=s[2*(l-1)]-s[2*(l-1)-1]:d/=2,u[l+1].isEmpty()?y=s[2*(l+1)]-o[2*(l+1)-1]:y/=2)),p.setMargins(f,d,y,_)}t.resize(i,t.mh),t.trans(c,n-o[2*e+1]),t.layout(s)}))}else{var f=o[o.length-2],_=f-o[1];a.forEach((function(t,e){t.resize(t.mw,_),t.trans(s[2*e],n-f),t.layout(o)}))}},e.prototype.$_layoutBodies=function(t,e,i){t.chart._body;var n=t.rowCount(),r=t.colCount(),o=this._rowPoints,s=this._colPoints,a=this._bodies;if(this._inverted)for(var u=0;u<n;u++)for(var l=o[2*(u+1)-1],h=o[2*(u+1)],p=0;p<r;p++){var c=a[u*r+p],f=s[2*p+1],_=s[2*(p+1)];c.measure(this.doc,t.getPane(u,p).body,h-l,_-f,1),c.resize(h-l,_-f),c.trans(l,this.height-_),c.layout()}else for(u=0;u<n;u++)for(f=o[2*(u+1)-1],_=o[2*(u+1)],p=0;p<r;p++){c=a[u*r+p],l=s[2*(p+1)-1],h=s[2*(p+1)];c.measure(this.doc,t.getPane(u,p).body,h-l,_-f,1),c.resize(h-l,_-f),c.trans(l,i-_),c.layout()}},e.STYLE_NAME="rct-panes",e}(LP),BM=function(t){function e(e){var i=t.call(this,e,"rct-polar-axis-tick-mark")||this;return i.add(i._lineView=new lL(e)),i}return Dx(e,t),e.prototype.layout=function(){},e}(EP),DM=function(t){function e(e,i,n,r){var o=t.call(this,e,i)||this;return o.add(o._markContainer=new LP(e,"rct-polar-axis-markers")),o._markViews=new zE(o._markContainer,BM),o.add(o._gridContainer=new EP(e,"rct-polar-axis-grids")),o._labelViews=new zE(o._labelContainer=n,nL,r?"rct-polar-xaxis-label":"rct-polar-yaxis-label"),o}return Dx(e,t),e.prototype.prepare=function(t,e,i,n){this._model=e,this._circular=i,this._markLen=e.tick.options.length,this.$_prepareTickMarks(t,e),this.$_prepareLabels(t,e),this._doPrepare(e,e._ticks,i,n)},e.prototype.layout=function(t,e,i,n){var r=this._model._ticks;return this._doLayout(this._model,e,i,n,r,t),this},e.prototype.$_prepareTickMarks=function(t,e){this._markViews.prepare(e._ticks.length)},e.prototype._prepareLabel=function(t,e,i,n){var r=i.getLabelText(e,n),o=e.label;(t.value=e.value,t.internalClearStyleAndClass(),t.internalSetStyleOrClass(i._style),t.internalSetStyleOrClass(i.getLabelStyle(e,n)),null!=r)?o&&r.match(sL)?t.setLabel(i,e,r.replace(sL,o),1e3,1e3):(i.prepareRich(r),i._paramTick=e,i.buildSvg(t._text,t._outline,NaN,NaN,i,i._domain)):t.setLabel(i,e,o,1e3,1e3)},e.prototype.$_prepareLabels=function(t,e){var i=this,n=e.label;if(this._labelContainer.setVis(n.visible)){var r=e._ticks;this._labelContainer.setStyleOrClass(n._style);var o=n.chart._body.getPolar(e),s=o.start,a=o.total,u="auto"===n.options.rotation,l=r.length;this._labelViews.prepare(l,(function(t,o,h){t.setVis(!0),i._prepareLabel(t,r[o],n,h);var p=u?(s+e.getPos(l,r[o].value))/a*360+90:0,c=t.getBBox(),f=c.width,_=c.height;t.setRotation(f/2,_/2,p)}))}},e.prototype.prepareGuides=function(t,e,i){var n=this._model.guides.filter((function(t){return!t.options.front}));e.setAll(t,n,!0),n=this._model.guides.filter((function(t){return t.options.front})),i.setAll(t,n,!0)},e}(EP),FM=function(t){function e(i,n,r){var o=t.call(this,i,"rct-polar-xaxis",r,!0)||this;return o._gridLines=new zE(o._gridContainer,SC,e.GRID_CLASS),n.insertFirst(o._startView=new SC(i,e.SECTOR_LINE_CLASS)),n.insertFirst(o._endView=new SC(i,e.SECTOR_LINE_CLASS)),n.insertFirst(o._lineView=new pL(i,e.LINE_CLASS)),o}return Dx(e,t),e.prototype._doPrepare=function(t,e,i){var n=t.line,r=t.sectorLine,o=this._lineView;this._gridContainer.setVis(t.grid.visible)&&this._gridLines.prepare(e.length),o.setVis(n.visible)&&(o.setStyleOrClass(n._style),o.setFill("none")),this._startView.setVis(i&&t.isArced()&&r.visible)?(this._startView.setStyleOrClass(r._style),this._endView.setVis(!0),this._endView.setStyleOrClass(r._style)):this._endView.setVis(!1)},e.prototype._doLayout=function(t,e,i,n,r,o){var s=t.getStartAngle(),a=t.getTotalAngle();if(r.forEach((function(t){return t.pos=t.pos/n*a/SS})),this._gridContainer.visible&&this._gridLines.forEach((function(t,o){var a=r[o].pos,u=e+tS(s+a)*n,l=i+eS(s+a)*n;t.setFill("none"),t.setLine(e,i,u,l)})),this._labelContainer.visible){var u=this._labelViews.count,l=Math.ceil(9/(360/u)),h=n+t.tick.options.length;this._labelViews.forEach((function(t,n){if(t.setVis(n%l==0)){t.layout("center");var o=r[n],a=t.getBBox(),u=s+o.pos,p=e+tS(u)*(h+a.width/2)-a.width/2,c=i+eS(u)*(h+a.height/2)-a.height/2;t.trans(p,c)}})),u>2&&sS(r[u-1].pos-r[u-2].pos)<SS/24&&this._labelViews.get(u-1).setVis(!1)}if(this._lineView.visible)if(this._circular)this._lineView.setArc(e,i,n,s,t.getTotalAngle(),!0);else{var p=[];r.map((function(t){var r=t.pos;p.push(e+tS(s+r)*n,i+eS(s+r)*n)})),this._lineView.setPolyline(p)}this._startView.visible&&(this._startView.setLine(e,i,e+tS(s)*n,i+eS(s)*n),this._endView.setLine(e,i,e+tS(s+a)*n,i+eS(s+a)*n))},e.LINE_CLASS="rct-polar-xaxis-line",e.SECTOR_LINE_CLASS="rct-polar-xaxis-sector-line",e.GRID_CLASS="rct-polar-xaxis-grid-line",e}(DM),IM=function(t){function e(i,n,r){var o=t.call(this,i,"rct-polar-yaxis",r,!1)||this;return o._gridLines=new zE(o._gridContainer,pL,e.GRID_LINE_STYLE),n.add(o._lineView=new SC(i,"rct-polar-yaxis-line")),o}return Dx(e,t),e.prototype._doPrepare=function(t,e,i,n){var r=t.line;this._gridContainer.setVis(!1!==t.grid.visible)&&this._gridLines.prepare(e.length,null),(this._lineView.visible=r.visible)&&this._lineView.setStyleOrClass(r._style)},e.prototype._doLayout=function(t,e,i,n,r,o){var s=o.getStartAngle(),a=o.getTotalAngle();if(this._gridContainer.visible){var u=this._circular;this._gridLines.forEach((function(t,n){var l=r[n].pos;if(t.setFill("none"),u)t.setArc(e,i,l,s,a,!0);else{var h=[];o._ticks.forEach((function(t){var n=t.pos;h.push(e+tS(s+n)*l,i+eS(s+n)*l)})),t.setPolyline(h)}}))}if(this._labelContainer.visible)if(o.isArced()){var l=o.getStartAngle();this._labelViews.forEach((function(t,n){var o=e+tS(l)*r[n].pos-t.getBBox().width/2,s=i+eS(l)*r[n].pos-t.getBBox().height/2;t.setContrast(null).trans(o,s)}))}else this._labelViews.forEach((function(t,n){t.setContrast(null).trans(e+2,i-r[n].pos-t.getBBox().height/2)}));this._lineView.visible&&this._lineView.setVLine(e,i,i-n)},e.GRID_LINE_STYLE="rct-polar-yaxis-grid-line",e}(DM),jM=function(t){function e(e,i){var n=t.call(this,e,i)||this;return n._yAxisViews=[],n}return Dx(e,t),e.prototype._doMeasure=function(e,i,n,r,o){var s=i.chart,a=t.prototype._doMeasure.call(this,e,i,n,r,o);return this._prepareAxes(e,s.xAxis,s._getYAxes().items(),this.model.options.circular,s.xAxis.isArced()),a},e.prototype._doLayout=function(){var t=this,e=this.model.setPolar(this.width,this.height),i=e.getPolar(null),n=i.cx,r=i.cy,o=i.rd;this._seriesViews.forEach((function(e){var i;e.model.needClip(!0)&&(t._polarClip||(t._polarClip=t.control.clipCircle()),t._polarClip.setCircle(n,r,o),e.getClipContainer().setClip(t._polarClip),null===(i=e.getClipContainer2())||void 0===i||i.setClip(t._polarClip)),e.resize(2*o,2*o),e.layout()})),this._seriesViews.forEach((function(t){t.afterLayout()})),this._xAxisView.layout(e.chart.yAxis,n,r,o),this._yAxisViews.forEach((function(t){t.layout(e.chart.xAxis,n,r,o)})),[this._guideContainer,this._frontGuideContainer].forEach((function(i){i._views.forEach((function(i){return i.visible&&i.layout(t.width,t.height,e.getPolar(i.model.axis))}))})),this._layoutAnnotations(!1,this,this.width,this.height)},e.prototype._prepareAxes=function(t,e,i,n,r){var o=this;this._axisContainer||(this.insertFirst(this._axisLabelContainer=new LP(t,"rct-polar-axis-labels")),this.insertFirst(this._lineContainer=new LP(t,"rct_axis-lines")),this.insertFirst(this._axisContainer=new LP(t,"rct-polar-axes")));for(var s=this._yAxisViews;s.length<i.length;){var a=new IM(t,this._lineContainer,this._axisLabelContainer);this._axisContainer.add(a),s.push(a)}for(;s.length>i.length;)s.pop().remove();s.forEach((function(e,s){e.prepare(t,i[s],n,r),e.prepareGuides(t,o._guideContainer,o._frontGuideContainer)})),this._xAxisView||this._axisContainer.add(this._xAxisView=new FM(t,this._lineContainer,this._axisLabelContainer)),this._xAxisView.prepare(t,e,n,r)},e}(bM),zM=function(t){function e(i,n){var r=t.call(this,i,n?e.SUBTITLE_CLASS:e.TITLE_CLASS,n?"rct-subtitle-background":"rct-title-background")||this;return r.isSub=n,r.add(r._textView=new jP(i)),r._richText=new JP,r}return Dx(e,t),e.prototype._marginable=function(){return!1},e.prototype._setBackgroundStyle=function(t){t.setStyleOrClass(this.model.options.backgroundStyle)},e.prototype._doMeasure=function(t,e,i,n,r){return this._richText.setFormat(e.options.text),this._richText.build(this._textView,i,n,null,null),GE(this._textView.getBBox())},e.prototype._doLayout=function(){this._richText.layout(this._textView,this.textAlign(),this.width,this.height,this._paddings)},e.TITLE_CLASS="rct-title",e.SUBTITLE_CLASS="rct-subtitle",e}(qE);!function(t){t.TOP="top",t.BOTTOM="bottom",t.LEFT="left",t.RIGHT="right"}(lM||(lM={}));var $M,HM=function(t){function e(i){var n=t.call(this,i,e.CLASS_NAME)||this;return n._topHeight=7,n._tailSize=10,n._radius=5,n._tailVisible=!0,n._hideHandler=function(){n.$_hide(),n._hideTimer=void 0},n.add(n._back=new OP(i,"rct-tooltip-back")),n.add(n._top=new OP(i,"rct-tooltip-top")),n.add(n._textView=new jP(i,"rct-tooltip-text")),n._back.setAttr("filter","url(#"+CP.SHADOW_FILTER+")"),n._textView.anchor=RP.START,n._richText=new JP,n.close(!0,!1),n}return Dx(e,t),e.prototype.show=function(t,e,i,n,r,o,s){var a=e.point,u=this._model=t.chart._tooltip,l=u.setTarget(t,a,i&&i.map((function(t){return t.point})));if(l){var h=u.options,p=h.text||l.getTooltipText(t,a);if(p&&p.trim()){this.setStyleOrClass(u._style);var c=this.control,f=c.contentWidth(),_=c.contentHeight(),d=this._textView,y=t.chart.isInverted(),g=t._yAxisObj.options.reversed;this._richText.setFormat(p),this._richText.build(d,NaN,NaN,null,u.getTextDomain());var v=d.getBBox(),m=oS(h.minWidth||0,v.width+16),b=oS(h.minHeight||0,v.height+12)+this._topHeight;t instanceof wE&&t.options.legendByPoint?this._top.setFill(a._calcedColor):this._top.setFill(t._calcedColor);var w,x="visible"===this.getStyle("visibility")?300:0,S=h.offset+this._tailSize,P=o.getFocusPointView().getBounds(),V=c.getBounds();if(y){w=r-b/2-oS(0,rS(r-b/2,_-b)),this._tailVisible=Math.abs(b/2-this._radius-this._tailSize/2)>Math.abs(w),(u.isFollowPointer(t)?g?m+S>n:n+m+S>f:g?m+S>P.x-V.x+P.width:P.x-V.x-S>f-m)&&(g=!g);var k=g?lM.LEFT:lM.RIGHT;this.drawTooltip(0,0,m,b,k,w),g?n-=m+S:n+=S,r-=b/2}else{w=n-m/2-oS(0,rS(n-m/2,f-m)),this._tailVisible=Math.abs(m/2-this._radius-this._tailSize/2)>Math.abs(w),(u.isFollowPointer(t)?g?r+b+S>_:r-(b+S)<0:g?_-(P.y-V.y-c._padding.top)<b+S:V.bottom-P.bottom+S>_-b)&&(g=!g);k=g?lM.BOTTOM:lM.TOP;this.drawTooltip(0,0,m,b,k,w),n-=m/2,g?r+=S:r-=b+S}n=oS(0,rS(n,f-m)),r=oS(0,rS(r,_-b)),this.transEx(n,r,x,!1),0===x&&this.setStyle("visibility","visible"),this._hideTimer&&(clearTimeout(this._hideTimer),this._hideTimer=void 0)}}},e.prototype.close=function(t,e){t?(this._hideTimer&&(clearTimeout(this._hideTimer),this._hideTimer=void 0),this.$_hide()):this._hideTimer||(this._hideTimer=setTimeout(this._hideHandler,this._model?this._model.options.hideDelay:hA.defaults.hideDelay))},e.prototype.isVisible=function(){return"visible"===this.getStyle("visibility")},e.prototype.$_hide=function(){var t=this;_k(this.dom,"opacity",void 0,0,200,(function(){t.setStyle("visibility","hidden")}))},e.prototype.drawTooltip=function(t,e,i,n,r,o){var s=this._tailSize,a=this._radius,u=this._topHeight,l=["M",t+a,e,"L",t+i-a,e,"Q",t+i,e,t+i,e+a,"L",t+i,e+n-a,"Q",t+i,e+n,t+i-a,e+n,"L",t+a,e+n,"Q",t,e+n,t,e+n-a,"L",t,e+a,"Q",t,e,t+a,e];if(this._tailVisible)switch(r){case lM.TOP:l=l.concat(["M",t+i/2-s/2+o,e+n,"L",t+i/2+o,e+n+s,"L",t+i/2+s/2+o,e+n]);break;case lM.BOTTOM:l=l.concat(["M",t+i/2-s/2+o,e,"L",t+i/2+o,e-s,"L",t+i/2+s/2+o,e]);break;case lM.LEFT:l=l.concat(["M",t+i,e+n/2-s/2+o,"L",t+i+s,e+n/2+o,"L",t+i,e+n/2+s/2+o]);break;case lM.RIGHT:l=l.concat(["M",t,e+n/2-s/2+o,"L",t-s,e+n/2+o,"L",t,e+n/2+s/2+o])}var h=r===lM.BOTTOM,p=h?["M",t,e+n-u,"l",i,0,"l",0,u-a,"q",0,a,-a,a,"l",2*a-i,0,"q",-a,0,-a,-a]:["M",t+a,e,"l",i-2*a,0,"q",a,0,a,a,"l",0,u-a,"l",-i,0,"l",0,a-u,"q",0,-a,a,-a],c=this._textView,f=c.getBBox();t+=(i-f.width)/2,e+=(n-f.height+(h?-u:u))/2,c.trans(t,e),this._top.setPath(p),this._back.setPath(l)},e.CLASS_NAME="rct-tooltip",e}(EP),GM=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._hTitle=0,e._wTitle=0,e._hSub=0,e._wSub=0,e}return Dx(e,t),e.prototype._doInitChildren=function(t){this.add(this.titleView=new zM(t,!1)),this.add(this.subtitleView=new zM(t,!0))},e.prototype._doMeasure=function(t,e,i,n,r){var o,s=e._title,a=e._subtitle,u=0,l=0,h=0,p=0,c=this.titleView,f=i,_=0,d=0;switch(c.setVis(s.visible)?(o=c.measure(t,s,i,n,r),l=this._hTitle=o.height,u=this._wTitle=o.width):c.setModel(s),(c=this.subtitleView).setVis(a.visible)?(o=c.measure(t,a,i,n,r),p=this._hSub=o.height,h=this._wSub=o.width,d=+a.options.titleGap||0):c.setModel(a),a.options.position){case"left":case"right":_=oS(l,p),f=u+d+h;break;default:_=l+d+p,f=oS(f,u+h)}return _>0&&(_+=this.titleView.visible?aS(s.options.gap,0):aS(a.options.gap,0)),{width:f,height:_}},e.prototype._doLayout=function(t){var e=this,i=this.titleView,n=this.subtitleView,r=i.model,o=n.model,s=r&&r.options,a=o&&o.options,u=r&&r.visible?this._wTitle>t.wPlot||"chart"===s.alignBase?t.wChart:t.wPlot:0,l=o&&o.visible?this._wSub>t.wPlot||"chart"===a.alignBase?t.wChart:t.wPlot:0,h=this._wTitle>t.wPlot||r&&"chart"===s.alignBase?0:t.xPlot,p=this._wSub>t.wPlot||o&&"chart"===a.alignBase?0:t.xPlot;if(u>0&&l>0){var c=function(t,e,i){switch(t.options.verticalAlign){case"top":return 0;case"bottom":return e-i;default:return(e-i)/2}},f=function(){var t=oS(e._hTitle,e._hSub);g=oS(g,g+c(r,t,e._hTitle)),m=oS(m,m+c(o,t,e._hSub))},_=function(t,e,i){switch(t.options.align){case"left":return 0;case"right":return e-i;default:return(e-i)/2}},d=function(){if(v=oS(v,v+_(r,u,e._wTitle)),"parent"===o.options.alignBase)switch(o.options.align){case"left":b=v;break;case"right":b=v+e._wTitle-e._wSub;break;default:b=v+(e._wTitle-e._wSub)/2}else b=oS(b,b+_(o,l,e._wSub))},y=aS(a.titleGap,0),g=0,v=h,m=0,b=p;switch(s.align){case"left":switch(a.position){case"left":v=b+this._wSub+y,f();break;case"right":switch(b=v+this._wTitle+y,a.align){case"center":b=oS(b,b+(l-this._wTitle-this._wSub)/2);break;case"right":b=oS(b,p+l-this._wSub)}f();break;case"top":d(),g=m+this._hSub+y;break;default:d(),m=g+this._hTitle+y}break;case"right":switch(a.position){case"left":switch(v+=u-this._wTitle,a.align){case"center":b+=(u-this._wTitle-this._wSub)/2;break;case"right":b=v-y-this._wSub}f();break;case"right":b+=l-this._wSub,v=b-y-this._wTitle,f();break;case"top":d(),g=m+this._hSub+y;break;default:d(),m=g+this._hTitle+y}break;default:switch(a.position){case"left":switch(v+=(u-this._wTitle)/2,a.align){case"left":break;case"center":b+=(v-b-this._wSub)/2;break;case"right":b=v-y-this._wSub}f();break;case"right":switch(v+=(u-this._wTitle)/2,a.align){case"left":b=v+this._wTitle+y;break;case"center":b=v+this._wTitle+y,b+=(l-b-this._wSub)/2;break;case"right":b+=l-y-this._wSub}f();break;case"top":d(),g=m+this._hSub+y;break;default:d(),m=g+this._hTitle+y}}i.resizeByMeasured().layout().trans(v,g),n.resizeByMeasured().layout().trans(b,m)}else if(u>0||l>0){var w=u?r:o,x=u?i:n,S=u||l,P=u?this._wTitle:this._wSub,V=u?h:p;switch(x.resizeByMeasured().layout(),w.options.align){case"left":break;case"right":V+=S-P;break;default:V+=(S-P)/2}x.trans(V,0)}},e}(ZE),WM=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._doInitChildren=function(t){this.add(this._legendView=new NM(t))},e.prototype._doMeasure=function(t,e,i,n,r){var o=e._legend,s=this._legendView.measure(t,o,i,n,r),a=this._pos=o._location;return"left"===a||"right"===a?s.width+=this._legendView._gap:s.height+=this._legendView._gap,s},e.prototype._doLayout=function(){var t=this._legendView,e=t._gap,i=this.width,n=this.height,r=0,o=0;switch(this._pos){case"left":i-=e;break;case"right":i-=e,r+=e;break;case"top":n-=e;break;default:o+=e,n-=e}t.trans(r,o).resize(i,n),t.layout()},e}(ZE),YM=function(t){function e(e,i){var n=t.call(this,e)||this;return n.dir=i,n.views=[],n.visibles=[],n._gap=0,n}return Dx(e,t),e.prototype.prepare=function(t,e,i,n,r){for(var o,s=this.views,a=s.length;s.length<i.length;)o=new aL(t),i[a++].visible&&this.add(o),s.push(o);for(;s.length>i.length;)(o=s.pop()).parent&&o.remove();if(s.forEach((function(t,e){t.prepare(i[e])})),this.setVis(s.filter((function(t){return t.model.visible})).length>0)){var u=s[0].model;this.isX=u._isX,this.isHorz=u._isHorz,this._gap=u.chart.getAxesGap()}},e.prototype.prepareGuides=function(t,e,i){this.views.forEach((function(n,r){n.prepareGuides(t,NaN,NaN,e,i)}))},e.prototype.checkHeights=function(t,e,i){return this.views.length>0?this.$_checkHeights(this.views,t,e,i):0},e.prototype.$_checkHeights=function(t,e,i,n){var r=0;return t&&(t.forEach((function(t){r+=t.checkHeight(e,i,n)})),r+=(this.views.length-1)*this._gap),r},e.prototype.checkWidths=function(t,e,i){return this.views.length>0?this.$_checkWidths(this.views,t,e,i):0},e.prototype.$_checkWidths=function(t,e,i,n){var r=0;return t&&(t.forEach((function(t){r+=t.checkWidth(e,i,n)})),r+=(this.views.length-1)*this._gap),r},e.prototype.getScrollView=function(t){var e,i,n;try{for(var r=Ix(this.views),o=r.next();!o.done;o=r.next()){var s=o.value;if(null===(n=s._scrollView)||void 0===n?void 0:n.contains(t))return s._scrollView}}catch(t){e={error:t}}finally{try{o&&!o.done&&(i=r.return)&&i.call(r)}finally{if(e)throw e.error}}},e.prototype.prepareGridRows=function(t,e){e.addAll(t,this.views.map((function(t){return t.model})))},e.prototype.clean=function(){this.views.forEach((function(t){return t.clean()}))},e.prototype.setMargins=function(t,e,i,n){this.views.forEach((function(r){return r.setMargins(t,e,i,n)}))},e.prototype._doMeasure=function(t,e,i,n,r){var o=this,s=(this._inverted,0),a=0;return[this.views].forEach((function(e){if(e){var u=(o.isX,i),l=(o.isX,n),h=0,p=0;e.forEach((function(e){if(e.visible){var i=e.measure(t,e.model,u,l,r);e.setAttr("xy",e.model._isX?"x":"y"),h+=i.width,p+=i.height}})),o.isHorz?p+=(e.length-1)*o._gap:h+=(e.length-1)*o._gap,s=oS(s,h),a=oS(a,p)}})),{width:s,height:a}},e.prototype._doLayout=function(t){var e=this,i=this.control.loaded,n=this.width,r=this.height,o=0,s=0;t=+t||0,[this.views].forEach((function(a){if(a){var u=0;a.forEach((function(t){t.visible&&(t.checkExtents(i),e.isHorz?t.resize(n,t.mh):t.resize(t.mw,r),t.layout(),e.isHorz?(t.trans(o,e.dir===AE.TOP?r-u-t.mh:u),u+=t.mh+e._gap):(t.trans(e.dir===AE.RIGHT?u:n-u-t.mw,s),u+=t.mw+e._gap))})),e.isHorz?o+=n+t:s+=r+t}}))},e}(ZE),XM=function(t){function e(e){var i=t.call(this,e,"rct-credits")||this;return i.add(i._textView=new jP(e)),i._textView.anchor=RP.START,i}return Dx(e,t),e.prototype.clicked=function(t){this.model.options.url&&window.open(this.model.options.url,"new")},e.prototype._doMeasure=function(t,e,i,n,r){return this._textView.text=e.options.text,this.setCursor(e.options.url?"pointer":""),this._textView.getBBox()},e}(UE),UM=function(t){function e(e){var i=t.call(this,e,"rct-chart")||this;for(var n in i._inverted=!1,i._axisSectionMap={},i._annotationViews=[],i._annotationMap=new Map,i.add(i._annotationContainer=new LP(e,"rct-annotations")),i.add(i._plotContainer=new LP(e,"rct-plot-container")),i._plotContainer.add(i._currBody=i._bodyView=new bM(e,i)),AE){var r=new YM(e,AE[n]);i._plotContainer.add(r),i._axisSectionMap[AE[n]]=r}return i.add(i._paneContainer=new RM(e,i)),i.add(i._titleSectionView=new GM(e)),i.add(i._legendSectionView=new WM(e)),i.add(i._frontAnnotationContainer=new LP(e,"rct-front-annotations")),i.add(i._creditView=new XM(e)),i.add(i._navigatorView=new xM(e)),i.add(i._historyView=new EM(e)),i.add(i._tooltipView=new HM(e)),i}return Dx(e,t),e.prototype.getAnnotationAnchor=function(t){return this._annotationMap.get(t)},e.prototype.titleView=function(){return this._titleSectionView.titleView},e.prototype.subtitleView=function(){return this._titleSectionView.subtitleView},e.prototype.bodyView=function(){return this._bodyView},e.prototype.clean=function(){for(var t in this._axisSectionMap)this._axisSectionMap[t].clean()},e.prototype.measure=function(t,e,i,n,r){var o,s=this,a=this._model=e,u=a.isPolar(),l=a._chartOptions.credits,h=a._legend,p=a._navigator,c=i,f=n;if(this._inverted=a.isInverted(),a.isSplitted()?(this._plotContainer.setVis(!1),this._paneContainer.setVis(!0),this.$_preparePanes(t,a._split)):(this._plotContainer.setVis(!0),this._paneContainer.setVis(!1),this.$_prepareBody(t,u)),this._creditView.setVis(l.visible)&&(o=this._creditView.measure(t,l,c,f,r),l.isFloating()||("middle"!==l.options.verticalAlign?f-=o.height+(+l.options.offsetY||0)+(+l.options.gap||0):"center"!==l.options.align&&(c-=o.width+(+l.options.offsetX||0)+(+l.options.gap||0)))),f-=(o=this._titleSectionView.measure(t,a,c,f,r)).height,this._legendSectionView.setVis(h.visible))switch(o=this._legendSectionView.measure(t,a,c,f,r),h._location){case"top":case"bottom":f-=o.height;break;case"right":case"left":c-=o.width}this._navigatorView.setVis(p.visible),this._paneContainer.visible?this._paneContainer.measure(t,a._split,a._xPaneAxes,a._yPaneAxes,c,f,1):u?this.$_measurePolar(t,a,c,f,1):this.$_measurePlot(t,a,c,f,1),this._navigatorView.visible&&(a._navigator._vertical?f=this._bodyView.mh:c=this._bodyView.mw,this._navigatorView.measure(t,p,c,f,r)),this.$_prepareAnnotations(t,e.getAnnotations()),this._annotationViews.forEach((function(e,o){e.measure(t,s._annotations[o],i,n,r)}))},e.prototype.layout=function(){var t=this,e=this.width,i=this.height,n=e,r=i,o=this._model,s=o.isPolar(),a=o._legend,u=this._creditView,l=o._chartOptions.credits,h=l.options,p=+h.gap||0,c=0,f=0,_=0,d=0,y=0,g=0,v=0,m=0;u.visible&&(u.resizeByMeasured(),l.isFloating()||("middle"!==h.verticalAlign?(c=+h.offsetY||0,"top"===h.verticalAlign?r-=_=u.height+c+p:r-=d=u.height+c+p):(f=+h.offsetX||0,"left"===h.align?n-=y=u.width+f+p:n-=g=u.width+f+p)));var b=this._titleSectionView,w=0,x=m+_;b.visible&&(b.resizeByMeasured(),r-=w=b.height),v=y,m=i-d;var S=this._navigatorView,P=0;S.visible&&(S.model._vertical||(S.resize(S.mw,S.mh-S.model.getGap()-S.model.getGapFar()),r-=P=S.mh));var V,k,A=this._legendSectionView,C=0,E=0;if(A.visible)switch(A.resizeByMeasured().layout(),C=A.height,E=A.width,a._location){case"top":V=w+_,r-=C;break;case"bottom":r-=C,V=m-C,m-=C;break;case"right":n-=E,k=e-E;break;case"left":n-=E,v+=E,k=0}S.visible&&(m-=P,S.layout().transY(m+S.model.getGap()));var L,N=0,M=0,T=0,O=0;if(this._paneContainer.visible)this._paneContainer.trans(v,x+w).resize(n,r),this._paneContainer.layout(),T=r,O=n,L=this._paneContainer.getRect();else{var R,B=this._axisSectionMap,D=B[AE.CENTER],F=B[AE.MIDDLE];if(!s){var I=this.control._padding;D&&D.visible&&(N=D.mw),F&&F.visible&&(M=F.mh),[AE.LEFT,AE.RIGHT].forEach((function(t){(R=B[t])&&R.visible&&(n-=R.mw)})),[AE.TOP,AE.BOTTOM].forEach((function(t){(R=B[t])&&R.visible&&(r-=R.mh)})),(R=B[AE.LEFT])&&R.visible&&(R.resize(R.mw,r),R.layout(M),v+=R.mw),(R=B[AE.RIGHT])&&R.visible&&(R.resize(R.mw,r),R.layout(M)),N>0&&(D.resize(R.mw,r),D.layout()),(R=B[AE.BOTTOM])&&R.visible&&(R.setMargins(I.left,v,this.width-v-n,Math.max(0,I.right-2)),R.resize(n,R.mh),R.layout(N),m-=R.mh),(R=B[AE.TOP])&&R.visible&&(R.setMargins(I.left,v,this.width-v-n,Math.max(0,I.right-1)),R.resize(n,R.mh),R.layout(N)),M>0&&(F.resize(n,R.mh),F.layout())}S.visible&&S.layout().transX(v);var j=this._org={x:v,y:m};this._plotWidth=n,this._plotHeight=r,s||((R=B[AE.LEFT])&&R.visible&&R.trans(j.x-R.mw,j.y-R.height),(R=B[AE.RIGHT])&&R.visible&&R.trans(j.x+n,j.y-R.height),N>0&&D.trans(j.x+(n-N)/2,j.y-D.height),(R=B[AE.BOTTOM])&&R.visible&&R.trans(j.x,j.y),(R=B[AE.TOP])&&R.visible&&R.trans(j.x,j.y-r-R.height),M>0&&F.trans(j.x,j.y-(r-M)/2-M));var z=this._currBody;T=this._plotHeight-M,O=this._plotWidth-N,v=j.x,m=j.y-this._plotHeight,z.resize(O,T),z.trans(v,m),z.layout(),L=z.getRect(),z._seriesViews.forEach((function(e){if(e.needDecoreateLegend()){var i=t._legendSectionView._legendView.legendOfSeries(e.model);i&&e.decoreateLegend(i)}}))}if(u.visible){var $=void 0,H=void 0;switch(u.layout(),h.verticalAlign){case"top":H=c;break;case"middle":H=(i-u.height)/2+c;break;default:H=d>0?i-d+p:i-u.height-c}switch(h.align){case"left":$=f;break;case"center":$=(e-u.width)/2+f;break;default:$=g>0?e-g+p:e-u.width-f}u.trans($,H)}if(O+=N,b.visible&&b.layout({xPlot:v,wPlot:O,wChart:e}).trans(0,x),A.visible){var G=a.options,W=G.align,Y=G.verticalAlign;if("body"===a._location){var X=+G.offsetX||0;switch(W){case"right":v+=O-E-X;break;case"center":v+=(O-E)/2+X;break;default:v+=X}switch(X=+G.offsetY||0,Y){case"bottom":m+=T-C-X;break;case"middle":m+=(T-C)/2+X;break;default:m+=X}}else if(isNaN(V)){X=+G.offsetY||0;if(v=k,"chart"===G.alignBase){switch(Y){case"top":m=X;break;case"bottom":m=i-C-X;break;default:m=(i-C)/2+X}m+C>i&&(m=(i-C)/2)}else switch(Y){case"top":m+=X;break;case"bottom":m=m+r-C-X;break;default:m=m+(r-C)/2+X}m+C>i&&(m=(i-C)/2),m<0&&(m=0)}else{var X=+G.offsetX||0;if(m=V,"chart"===G.alignBase)switch(W){case"left":v=X;break;case"right":v=e-E-X;break;default:v=(e-E)/2+X}else switch(W){case"left":v+=X;break;case"right":v=v+n-E-X;break;default:v+=(n-E)/2+X}v+E>e&&(v=(e-E)/2),v<0&&(v=0)}A.trans(v,m)}this.$_layoutAnnotations(this._inverted,e,i,L),this._tooltipView.close(!0,!1)},e.prototype.showTooltip=function(t,e,i,n,r){var o=e.getTooltipPos?e.getTooltipPos():{x:e.point.xPos,y:e.point.yPos},s=o.x,a=o.y,u=this._model.chart._tooltip.isFollowPointer(t),l=n.getTooltipPos(),h=u?r.x+l.x:s+l.x,p=u?r.y+l.y:a+l.y;this._tooltipView.show(t,e,i,h,p,n,!0)},e.prototype.tooltipVisible=function(){return this._tooltipView.isVisible()},e.prototype.hideTooltip=function(){this._tooltipView.close(!1,!0)},e.prototype.getSeriesView=function(t){return this._model.isSplitted()?this._paneContainer.getSeries(t):this._currBody.getSeries(t)},e.prototype.legendByDom=function(t){return this._legendSectionView._legendView.legendByDom(t)},e.prototype.seriesByDom=function(t){return this._paneContainer.visible?this._paneContainer.seriesByDom(t):this._currBody.seriesByDom(t)},e.prototype.findSeriesView=function(t){return this._currBody.findSeries(t)},e.prototype.creditByDom=function(t){return this._creditView.dom.contains(t)?this._creditView:null},e.prototype.bodyOf=function(t){return this._model.isSplitted()?this._paneContainer.bodyViewOf(t):this._currBody},e.prototype.pointerMoved=function(t,e,i){var n,r=this,o=i,s=this._model&&this.bodyOf(i),a=null==o?void 0:o.classList,u=(null==a?void 0:a.value)&&(a.contains("rct-contextmenu-item")||a.contains("rct-contextmenu-list")),l=this._hoverItem;if(this._hoverItem=null,s){var h=s.controlToElement(t,e),p=s.pointerMoved(h,i);if(!this._hoverItem&&this._legendSectionView._legendView.contains(o)){var c=this._hoverItem=this._legendSectionView._legendView.legendByDom(o);c&&(c.legend.options.seriesHovering&&c.source instanceof Fk?s.hoverSeries(c.source):c.legend.options.pointHovering&&c.source instanceof Sk&&s.hoverPoint(c.source))}if(l instanceof pk&&!(this._hoverItem instanceof pk)&&(s.hoverSeries(null),s.hoverPoint(null)),!p)return void s.removeFocus();for(var f in this._axisSectionMap)this._axisSectionMap[f].views.forEach((function(t){var e=t.model,i=e.crosshair,n=e._isHorz?s.width:s.height,o=e._isHorz?h.x:h.y,a=p&&i.visible&&!u&&i.flag.visible&&!i.isBar()&&i.getFlag(n,o);if(a){t.showCrosshair(o,a);var l=[];s._seriesViews.forEach((function(t){var i,n=Number.MAX_SAFE_INTEGER,o=r._model.inverted;t.model._visPoints.forEach((function(t){var r=t.xPos,s=t instanceof OC&&!o?t.yPos-(t.yPos-t.yLow)/2:t.yPos,a=e._isX?Math.abs(h.x-r):Math.abs(h.y-s);a<n&&(n=a,i=t)})),l.push(i)})),i.moved(o,a,l)}else t.hideCrosshiar()}))}else(null===(n=this._model)||void 0===n?void 0:n.isSplitted())?this._paneContainer.bodies.forEach((function(t){t.removeFocus()})):this._currBody.removeFocus()},e.prototype.getAxis=function(t){for(var e in this._axisSectionMap){var i=this._axisSectionMap[e].views.find((function(e){return e.model===t}));if(i)return i}},e.prototype.getButton=function(t){return this._currBody.getButton(t)},e.prototype.buttonClicked=function(t){this._currBody.buttonClicked(t)},e.prototype.getScrollView=function(t){for(var e in AE){var i=this._axisSectionMap[AE[e]].getScrollView(t);if(i)return i}},e.prototype.updateAnnotation=function(t){var e=this._annotationViews.find((function(e){return e.model===t}));e?e.update(this,this.width,this.height):this._model.isSplitted()||(e=this._currBody._annotationViews.find((function(e){return e.model===t})))&&e.update(this._currBody,this._currBody.width,this._currBody.height)},e.prototype.isAnimating=function(){return this._bodyView.animating()},e.prototype._doAttached=function(t){},e.prototype.$_preparePanes=function(t,e){this._paneContainer.prepare(t,e)},e.prototype.$_prepareBody=function(t,e){var i,n;e?(this._polarView||(this._polarView=new jM(t,this),this._plotContainer.insertChild(this._polarView,this._bodyView)),this._currBody=this._polarView,null===(i=this._bodyView)||void 0===i||i.setVis(!1),this._polarView.setVis(!0)):(null===(n=this._polarView)||void 0===n||n.setVis(!1),this._bodyView.setVis(!0),this._currBody=this._bodyView),this._currBody.prepareRender(t,this._model)},e.prototype.$_prepareAxes=function(t,e){var i=this._currBody._gridRowContainer,n=this._currBody._guideContainer,r=this._currBody._frontGuideContainer,o=!e.isPolar()&&e._needAxes(),s=this._axisSectionMap;for(var a in s){var u=s[a];o?u.prepare(t,e,e.getAxes(a,!1),n,r):u.visible=!1}i.prepare()},e.prototype.$_prepareAxisGuides=function(t,e){var i=this._currBody._guideContainer,n=this._currBody._frontGuideContainer,r=!e.isPolar()&&e._needAxes(),o=this._axisSectionMap;for(var s in o){var a=o[s];r&&a.visible&&a.prepareGuides(t,i,n)}},e.prototype.$_measurePlot=function(t,e,i,n,r){var o=this._axisSectionMap;if(this._navigatorView.visible){var s=e._navigator;s._vertical?i-=s.getSize():n-=s.getSize()}var a=i,u=n,l=0,h=0;for(var p in this._bodyView.prepareGuideContainers(),this.$_prepareAxes(t,e),e.layoutAxes(i,n,this._inverted,r),i-=o[AE.LEFT].checkWidths(t,i,n),i-=o[AE.RIGHT].checkWidths(t,i,n),n-=o[AE.BOTTOM].checkHeights(t,i,n),n-=o[AE.TOP].checkHeights(t,i,n),this._inverted?i-=l=o[AE.CENTER].checkWidths(t,i,n):n-=h=o[AE.MIDDLE].checkHeights(t,i,n),i-=l,n-=h,e.layoutAxes(i,n,this._inverted,r),o){(c=o[p]).visible&&c.measure(t,e,i,n,r)}for(var p in i=a,n=u,l=0,h=0,o){(c=o[p]).visible&&(p===AE.LEFT||p===AE.RIGHT?i-=c.mw:p!==AE.BOTTOM&&p!==AE.TOP||(n-=c.mh),this._inverted?p===AE.CENTER&&(i-=l=c.mw):p===AE.MIDDLE&&(n-=h=c.mh))}for(var p in e.layoutAxes(i,n,this._inverted,r),this.$_prepareAxisGuides(t,e),o){(c=o[p]).visible&&(c.measure(t,e,i,n,r),c.prepareGridRows(t,this._bodyView._gridRowContainer))}for(var p in i=a,n=u,l=0,h=0,o){var c;(c=o[p]).visible&&(p===AE.LEFT||p===AE.RIGHT?i-=c.mw:p!==AE.BOTTOM&&p!==AE.TOP||(n-=c.mh),this._inverted?p===AE.CENTER&&(i-=l=c.mw):p===AE.MIDDLE&&(n-=h=c.mh))}e.axesLayouted(i,n,this._inverted),this._bodyView.measure(t,e._body,i,n,r)},e.prototype.$_measurePolar=function(t,e,i,n,r){var o=e._body.getRadius(i,n),s=2*Math.PI*o,a=o;this._polarView.prepareGuideContainers(),this.$_prepareAxes(t,e),e.layoutAxes(s,a,!1,r),this.$_prepareAxisGuides(t,e),e.axesLayouted(s,a,!1),this._polarView.measure(t,e._body,i,n,r)},e.prototype.$_prepareAnnotations=function(t,e){var i,n,r=this._annotationContainer,o=this._frontAnnotationContainer,s=this._annotationMap,a=this._annotationViews;try{for(var u=Ix(s.keys()),l=u.next();!l.done;l=u.next()){var h=l.value;e.indexOf(h)<0&&s.delete(h)}}catch(t){i={error:t}}finally{try{l&&!l.done&&(n=u.return)&&n.call(u)}finally{if(i)throw i.error}}a.forEach((function(t){return t.remove()})),a.length=0,(this._annotations=e).forEach((function(e){var i=s.get(e)||aM(t,e);(e.options.front?o:r).add(i),s.set(e,i),a.push(i)}))},e.prototype.$_layoutAnnotations=function(t,e,i,n){var r,o,s,a,u=this,l=this.control._padding;this._annotationViews.forEach((function(n){if("container"===n.model.options.scope)r=-l.left,o=-l.top,s=e+l.left+l.right,a=i+l.top+l.bottom;else r=o=0,s=e,a=i;n._layoutView(t,u,r,o,s,a)}))},e}(LP);!function(t){t.EXPORT="$$realchart_export"}($M||($M={}));var qM=function(t){function e(e,i){var n=t.call(this,e,i)||this;return n.addElement(n._chartView=new UM(e)),n.setPointerHandler(new CM(n)),n}return Dx(e,t),e.prototype._initControl=function(e,i,n){var r=this;t.prototype._initControl.call(this,e,i,n),this._chart=new IE(null,(function(t,e){r.changeModel(t,e)}))},e.prototype._doDestroy=function(){this.setPointerHandler(null),this._chart=null,t.prototype._doDestroy.call(this)},e.prototype.onModelChanged=function(t,e,i){e instanceof yV&&i===hV.REFRESHED?this._chartView.updateAnnotation(e):this.invalidateLayout()},e.prototype.onVisibleChanged=function(t,e){this.invalidateLayout()},e.prototype.onPointVisibleChanged=function(t,e,i){this.invalidateLayout()},e.prototype.onExportRequest=function(t,e){this._export(e)},e.prototype.onRefreshRequest=function(t){this.refresh()},Object.defineProperty(e.prototype,"chart",{get:function(){return this._chart},set:function(t){t!==this._chart&&(this._chart=t,this.changeModel(t._obj,this.model))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"model",{get:function(){return this._chart._obj},enumerable:!1,configurable:!0}),e.prototype.changeModel=function(t,e){t!==e&&(this.clearAssetDefs(),e&&(e._assets.unregister(this),e._removeListener(this)),t&&(t._addListener(this),t._assets.register(this.doc(),this)),this.loaded=!1,this.invalidateLayout(!0))},e.prototype.chartView=function(){return this._chartView},e.prototype.refresh=function(){this._render()},e.prototype.scroll=function(t,e){var i;null===(i=this._chartView.getAxis(t))||void 0===i||i.scroll(e)},e.prototype.use=function(t){if(t.MODULE_NAME&&t.MODULE_NAME===$M.EXPORT)this._exporter=t},e.prototype._doRender=function(t){var e,i=this.model,n=this._chartView;this.clearTemporaryDefs(),i&&(this.setData("theme",i._chartOptions.options.theme,!0),this.setData("palette",i._chartOptions.options.palette),i._prepareRender(),this._loadModules(),this._prepareModules()),this.loaded||n.clean(),n.measure(this.doc(),i,t.width,t.height,1),n.setRect(t),n.layout(),i&&i.afterRender(),(null===(e=this._chart)||void 0===e?void 0:e._loadCallback)&&(setTimeout(this._chart._loadCallback,0),this._chart._loadCallback=void 0)},e.prototype._doRenderBackground=function(t,e,i,n){if(this.model){var r=this.model._chartOptions._style;if(Gx(r))for(var o in r)o.startsWith("padding")?e.setStyle(o,r[o]):t.style[o]=r[o]}},e.prototype._loadModules=function(){if(!this._exporter){var t=null===window||void 0===window?void 0:window.$$_RealChartExporter;t&&t.RealchartExport(this)}},e.prototype._prepareModules=function(){this._exporter&&this._exporter.render(this.doc(),this.dom(),this.model._exporter.options)},e.prototype._export=function(t){if(this.model&&this._exporter){var e=this.dom();switch(t.type){case"png":case"jpeg":case"svg":this._exporter.exportToImage(e,t)}}},e}(CP),ZM=function(){function t(){}return t.getVersion=function(){return"1.1.9"},t.setLocale=function(t,e){e&&gS(t,e),function(t){t&&(yS=_S[dS=t.substring(0,2)]),yS||(yS=_S[dS="ko"])}(t)},t.registerLocale=function(t,e){gS(t,e)},t.setDebugging=function(t){EP.DEBUGGING=t},t.setLogging=function(t){fS.LOGGING=t},t.setAnimatable=function(t){CP._animatable=t},t.configure=function(t){return t},t.createChart=function(t,e,i,n,r){void 0===n&&(n=!0);var o=new qM(t,e);return Gx(i)&&o.chart.load(i,n,r),o.chart[FE]=o,o.chart},t.createData=function(t,e){return new jE(t||{},e)},t}(),KM=ZM.getVersion,JM=ZM.setDebugging,QM=ZM.setLogging,tT=ZM.setAnimatable,eT=ZM.createChart,iT=ZM.createData;return t.Chart=IE,t.ChartData=jE,t.createChart=eT,t.createData=iT,t.getVersion=KM,t.setAnimatable=tT,t.setDebugging=JM,t.setLogging=QM,t}({});
|
|
7
|
+
var RealChart=function(t){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},i={exports:{}},n=i.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n);var r=i.exports,o={}.hasOwnProperty,s=function(t,e){return o.call(t,e)},a=function(t){try{return!!t()}catch(t){return!0}},l=!a((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})),u={exports:{}},h=u.exports={version:"2.6.12"};"number"==typeof __e&&(__e=h);var p,c,f=u.exports,_={},d=function(t){return"object"==typeof t?null!==t:"function"==typeof t},y=d,g=function(t){if(!y(t))throw TypeError(t+" is not an object!");return t};function v(){if(c)return p;c=1;var t=d,e=r.document,i=t(e)&&t(e.createElement);return p=function(t){return i?e.createElement(t):{}}}var m=!l&&!a((function(){return 7!=Object.defineProperty(v()("div"),"a",{get:function(){return 7}}).a})),b=d,w=function(t,e){if(!b(t))return t;var i,n;if(e&&"function"==typeof(i=t.toString)&&!b(n=i.call(t)))return n;if("function"==typeof(i=t.valueOf)&&!b(n=i.call(t)))return n;if(!e&&"function"==typeof(i=t.toString)&&!b(n=i.call(t)))return n;throw TypeError("Can't convert object to primitive value")},x=g,S=m,P=w,V=Object.defineProperty;_.f=l?Object.defineProperty:function(t,e,i){if(x(t),e=P(e,!0),x(i),S)try{return V(t,e,i)}catch(t){}if("get"in i||"set"in i)throw TypeError("Accessors not supported!");return"value"in i&&(t[e]=i.value),t};var k,A,C=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}};function E(){if(A)return k;A=1;var t=_,e=C;return k=l?function(i,n,r){return t.f(i,n,e(1,r))}:function(t,e,i){return t[e]=i,t},k}var L={exports:{}},N=0,O=Math.random(),M=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++N+O).toString(36))},T={exports:{}},R=f,B=r,D="__core-js_shared__",F=B[D]||(B[D]={});(T.exports=function(t,e){return F[t]||(F[t]=void 0!==e?e:{})})("versions",[]).push({version:R.version,mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"});var I=T.exports,j=I("native-function-to-string",Function.toString),$=r,z=E(),H=s,G=M("src"),W=j,Y="toString",X=(""+W).split(Y);f.inspectSource=function(t){return W.call(t)},(L.exports=function(t,e,i,n){var r="function"==typeof i;r&&(H(i,"name")||z(i,"name",e)),t[e]!==i&&(r&&(H(i,G)||z(i,G,t[e]?""+t[e]:X.join(String(e)))),t===$?t[e]=i:n?t[e]?t[e]=i:z(t,e,i):(delete t[e],z(t,e,i)))})(Function.prototype,Y,(function(){return"function"==typeof this&&this[G]||W.call(this)}));var U=L.exports,q=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t},Z=q,K=function(t,e,i){if(Z(t),void 0===e)return t;switch(i){case 1:return function(i){return t.call(e,i)};case 2:return function(i,n){return t.call(e,i,n)};case 3:return function(i,n,r){return t.call(e,i,n,r)}}return function(){return t.apply(e,arguments)}},J=r,Q=f,tt=E(),et=U,it=K,nt="prototype",rt=function(t,e,i){var n,r,o,s,a=t&rt.F,l=t&rt.G,u=t&rt.S,h=t&rt.P,p=t&rt.B,c=l?J:u?J[e]||(J[e]={}):(J[e]||{})[nt],f=l?Q:Q[e]||(Q[e]={}),_=f[nt]||(f[nt]={});for(n in l&&(i=e),i)o=((r=!a&&c&&void 0!==c[n])?c:i)[n],s=p&&r?it(o,J):h&&"function"==typeof o?it(Function.call,o):o,c&&et(c,n,o,t&rt.U),f[n]!=o&&tt(f,n,s),h&&_[n]!=o&&(_[n]=o)};J.core=Q,rt.F=1,rt.G=2,rt.S=4,rt.P=8,rt.B=16,rt.W=32,rt.U=64,rt.R=128;var ot=rt,st={exports:{}},at=M("meta"),lt=d,ut=s,ht=_.f,pt=0,ct=Object.isExtensible||function(){return!0},ft=!a((function(){return ct(Object.preventExtensions({}))})),_t=function(t){ht(t,at,{value:{i:"O"+ ++pt,w:{}}})},dt=st.exports={KEY:at,NEED:!1,fastKey:function(t,e){if(!lt(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!ut(t,at)){if(!ct(t))return"F";if(!e)return"E";_t(t)}return t[at].i},getWeak:function(t,e){if(!ut(t,at)){if(!ct(t))return!0;if(!e)return!1;_t(t)}return t[at].w},onFreeze:function(t){return ft&&dt.NEED&&ct(t)&&!ut(t,at)&&_t(t),t}},yt=st.exports,gt={exports:{}},vt=I("wks"),mt=M,bt=r.Symbol,wt="function"==typeof bt;(gt.exports=function(t){return vt[t]||(vt[t]=wt&&bt[t]||(wt?bt:mt)("Symbol."+t))}).store=vt;var xt=gt.exports,St=_.f,Pt=s,Vt=xt("toStringTag"),kt=function(t,e,i){t&&!Pt(t=i?t:t.prototype,Vt)&&St(t,Vt,{configurable:!0,value:e})},At={};At.f=xt;var Ct,Et,Lt=r,Nt=f,Ot=At,Mt=_.f,Tt=function(t){var e=Nt.Symbol||(Nt.Symbol=Lt.Symbol||{});"_"==t.charAt(0)||t in e||Mt(e,t,{value:Ot.f(t)})},Rt={}.toString,Bt=function(t){return Rt.call(t).slice(8,-1)};function Dt(){if(Et)return Ct;Et=1;var t=Bt;return Ct=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==t(e)?e.split(""):Object(e)}}var Ft=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},It=Dt(),jt=Ft,$t=function(t){return It(jt(t))},zt=Math.ceil,Ht=Math.floor,Gt=function(t){return isNaN(t=+t)?0:(t>0?Ht:zt)(t)},Wt=Gt,Yt=Math.min,Xt=function(t){return t>0?Yt(Wt(t),9007199254740991):0},Ut=Gt,qt=Math.max,Zt=Math.min,Kt=function(t,e){return(t=Ut(t))<0?qt(t+e,0):Zt(t,e)},Jt=$t,Qt=Xt,te=Kt,ee=function(t){return function(e,i,n){var r,o=Jt(e),s=Qt(o.length),a=te(n,s);if(t&&i!=i){for(;s>a;)if((r=o[a++])!=r)return!0}else for(;s>a;a++)if((t||a in o)&&o[a]===i)return t||a||0;return!t&&-1}},ie=I("keys"),ne=M,re=function(t){return ie[t]||(ie[t]=ne(t))},oe=s,se=$t,ae=ee(!1),le=re("IE_PROTO"),ue=function(t,e){var i,n=se(t),r=0,o=[];for(i in n)i!=le&&oe(n,i)&&o.push(i);for(;e.length>r;)oe(n,i=e[r++])&&(~ae(o,i)||o.push(i));return o},he="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),pe=ue,ce=he,fe=Object.keys||function(t){return pe(t,ce)},_e={};_e.f=Object.getOwnPropertySymbols;var de,ye={};function ge(){return de||(de=1,ye.f={}.propertyIsEnumerable),ye}var ve,me,be=fe,we=_e,xe=ge(),Se=Bt,Pe=Array.isArray||function(t){return"Array"==Se(t)},Ve=Ft,ke=function(t){return Object(Ve(t))};function Ae(){if(me)return ve;me=1;var t=_,e=g,i=fe;return ve=l?Object.defineProperties:function(n,r){e(n);for(var o,s=i(r),a=s.length,l=0;a>l;)t.f(n,o=s[l++],r[o]);return n},ve}var Ce=r.document,Ee=Ce&&Ce.documentElement,Le=g,Ne=Ae(),Oe=he,Me=re("IE_PROTO"),Te=function(){},Re="prototype",Be=function(){var t,e=v()("iframe"),i=Oe.length;for(e.style.display="none",Ee.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),Be=t.F;i--;)delete Be[Re][Oe[i]];return Be()},De=Object.create||function(t,e){var i;return null!==t?(Te[Re]=Le(t),i=new Te,Te[Re]=null,i[Me]=t):i=Be(),void 0===e?i:Ne(i,e)},Fe={},Ie={},je=ue,$e=he.concat("length","prototype");Ie.f=Object.getOwnPropertyNames||function(t){return je(t,$e)};var ze=$t,He=Ie.f,Ge={}.toString,We="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];Fe.f=function(t){return We&&"[object Window]"==Ge.call(t)?function(t){try{return He(t)}catch(t){return We.slice()}}(t):He(ze(t))};var Ye={},Xe=ge(),Ue=C,qe=$t,Ze=w,Ke=s,Je=m,Qe=Object.getOwnPropertyDescriptor;Ye.f=l?Qe:function(t,e){if(t=qe(t),e=Ze(e,!0),Je)try{return Qe(t,e)}catch(t){}if(Ke(t,e))return Ue(!Xe.f.call(t,e),t[e])};var ti=r,ei=s,ii=l,ni=ot,ri=U,oi=yt.KEY,si=a,ai=I,li=kt,ui=M,hi=xt,pi=At,ci=Tt,fi=function(t){var e=be(t),i=we.f;if(i)for(var n,r=i(t),o=xe.f,s=0;r.length>s;)o.call(t,n=r[s++])&&e.push(n);return e},_i=Pe,di=g,yi=d,gi=ke,vi=$t,mi=w,bi=C,wi=De,xi=Fe,Si=Ye,Pi=_e,Vi=_,ki=fe,Ai=Si.f,Ci=Vi.f,Ei=xi.f,Li=ti.Symbol,Ni=ti.JSON,Oi=Ni&&Ni.stringify,Mi="prototype",Ti=hi("_hidden"),Ri=hi("toPrimitive"),Bi={}.propertyIsEnumerable,Di=ai("symbol-registry"),Fi=ai("symbols"),Ii=ai("op-symbols"),ji=Object[Mi],$i="function"==typeof Li&&!!Pi.f,zi=ti.QObject,Hi=!zi||!zi[Mi]||!zi[Mi].findChild,Gi=ii&&si((function(){return 7!=wi(Ci({},"a",{get:function(){return Ci(this,"a",{value:7}).a}})).a}))?function(t,e,i){var n=Ai(ji,e);n&&delete ji[e],Ci(t,e,i),n&&t!==ji&&Ci(ji,e,n)}:Ci,Wi=function(t){var e=Fi[t]=wi(Li[Mi]);return e._k=t,e},Yi=$i&&"symbol"==typeof Li.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof Li},Xi=function(t,e,i){return t===ji&&Xi(Ii,e,i),di(t),e=mi(e,!0),di(i),ei(Fi,e)?(i.enumerable?(ei(t,Ti)&&t[Ti][e]&&(t[Ti][e]=!1),i=wi(i,{enumerable:bi(0,!1)})):(ei(t,Ti)||Ci(t,Ti,bi(1,{})),t[Ti][e]=!0),Gi(t,e,i)):Ci(t,e,i)},Ui=function(t,e){di(t);for(var i,n=fi(e=vi(e)),r=0,o=n.length;o>r;)Xi(t,i=n[r++],e[i]);return t},qi=function(t){var e=Bi.call(this,t=mi(t,!0));return!(this===ji&&ei(Fi,t)&&!ei(Ii,t))&&(!(e||!ei(this,t)||!ei(Fi,t)||ei(this,Ti)&&this[Ti][t])||e)},Zi=function(t,e){if(t=vi(t),e=mi(e,!0),t!==ji||!ei(Fi,e)||ei(Ii,e)){var i=Ai(t,e);return!i||!ei(Fi,e)||ei(t,Ti)&&t[Ti][e]||(i.enumerable=!0),i}},Ki=function(t){for(var e,i=Ei(vi(t)),n=[],r=0;i.length>r;)ei(Fi,e=i[r++])||e==Ti||e==oi||n.push(e);return n},Ji=function(t){for(var e,i=t===ji,n=Ei(i?Ii:vi(t)),r=[],o=0;n.length>o;)!ei(Fi,e=n[o++])||i&&!ei(ji,e)||r.push(Fi[e]);return r};$i||(Li=function(){if(this instanceof Li)throw TypeError("Symbol is not a constructor!");var t=ui(arguments.length>0?arguments[0]:void 0),e=function(i){this===ji&&e.call(Ii,i),ei(this,Ti)&&ei(this[Ti],t)&&(this[Ti][t]=!1),Gi(this,t,bi(1,i))};return ii&&Hi&&Gi(ji,t,{configurable:!0,set:e}),Wi(t)},ri(Li[Mi],"toString",(function(){return this._k})),Si.f=Zi,Vi.f=Xi,Ie.f=xi.f=Ki,ge().f=qi,Pi.f=Ji,ii&&ri(ji,"propertyIsEnumerable",qi,!0),pi.f=function(t){return Wi(hi(t))}),ni(ni.G+ni.W+ni.F*!$i,{Symbol:Li});for(var Qi="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),tn=0;Qi.length>tn;)hi(Qi[tn++]);for(var en=ki(hi.store),nn=0;en.length>nn;)ci(en[nn++]);ni(ni.S+ni.F*!$i,"Symbol",{for:function(t){return ei(Di,t+="")?Di[t]:Di[t]=Li(t)},keyFor:function(t){if(!Yi(t))throw TypeError(t+" is not a symbol!");for(var e in Di)if(Di[e]===t)return e},useSetter:function(){Hi=!0},useSimple:function(){Hi=!1}}),ni(ni.S+ni.F*!$i,"Object",{create:function(t,e){return void 0===e?wi(t):Ui(wi(t),e)},defineProperty:Xi,defineProperties:Ui,getOwnPropertyDescriptor:Zi,getOwnPropertyNames:Ki,getOwnPropertySymbols:Ji});var rn=si((function(){Pi.f(1)}));ni(ni.S+ni.F*rn,"Object",{getOwnPropertySymbols:function(t){return Pi.f(gi(t))}}),Ni&&ni(ni.S+ni.F*(!$i||si((function(){var t=Li();return"[null]"!=Oi([t])||"{}"!=Oi({a:t})||"{}"!=Oi(Object(t))}))),"JSON",{stringify:function(t){for(var e,i,n=[t],r=1;arguments.length>r;)n.push(arguments[r++]);if(i=e=n[1],(yi(e)||void 0!==t)&&!Yi(t))return _i(e)||(e=function(t,e){if("function"==typeof i&&(e=i.call(this,t,e)),!Yi(e))return e}),n[1]=e,Oi.apply(Ni,n)}}),Li[Mi][Ri]||E()(Li[Mi],Ri,Li[Mi].valueOf),li(Li,"Symbol"),li(Math,"Math",!0),li(ti.JSON,"JSON",!0);ot(ot.S,"Object",{create:De});var on=ot;on(on.S+on.F*!l,"Object",{defineProperty:_.f});var sn=ot;sn(sn.S+sn.F*!l,"Object",{defineProperties:Ae()});var an=ot,ln=f,un=a,hn=function(t,e){var i=(ln.Object||{})[t]||Object[t],n={};n[t]=e(i),an(an.S+an.F*un((function(){i(1)})),"Object",n)},pn=$t,cn=Ye.f;hn("getOwnPropertyDescriptor",(function(){return function(t,e){return cn(pn(t),e)}}));var fn=s,_n=ke,dn=re("IE_PROTO"),yn=Object.prototype,gn=Object.getPrototypeOf||function(t){return t=_n(t),fn(t,dn)?t[dn]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?yn:null},vn=ke,mn=gn;hn("getPrototypeOf",(function(){return function(t){return mn(vn(t))}}));var bn=ke,wn=fe;hn("keys",(function(){return function(t){return wn(bn(t))}})),hn("getOwnPropertyNames",(function(){return Fe.f}));var xn=d,Sn=yt.onFreeze;hn("freeze",(function(t){return function(e){return t&&xn(e)?t(Sn(e)):e}}));var Pn=d,Vn=yt.onFreeze;hn("seal",(function(t){return function(e){return t&&Pn(e)?t(Vn(e)):e}}));var kn=d,An=yt.onFreeze;hn("preventExtensions",(function(t){return function(e){return t&&kn(e)?t(An(e)):e}}));var Cn=d;hn("isFrozen",(function(t){return function(e){return!Cn(e)||!!t&&t(e)}}));var En=d;hn("isSealed",(function(t){return function(e){return!En(e)||!!t&&t(e)}}));var Ln=d;hn("isExtensible",(function(t){return function(e){return!!Ln(e)&&(!t||t(e))}}));var Nn=l,On=fe,Mn=_e,Tn=ge(),Rn=ke,Bn=Dt(),Dn=Object.assign,Fn=!Dn||a((function(){var t={},e={},i=Symbol(),n="abcdefghijklmnopqrst";return t[i]=7,n.split("").forEach((function(t){e[t]=t})),7!=Dn({},t)[i]||Object.keys(Dn({},e)).join("")!=n}))?function(t,e){for(var i=Rn(t),n=arguments.length,r=1,o=Mn.f,s=Tn.f;n>r;)for(var a,l=Bn(arguments[r++]),u=o?On(l).concat(o(l)):On(l),h=u.length,p=0;h>p;)a=u[p++],Nn&&!s.call(l,a)||(i[a]=l[a]);return i}:Dn,In=ot;In(In.S+In.F,"Object",{assign:Fn});var jn=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e};ot(ot.S,"Object",{is:jn});var $n=d,zn=g,Hn=function(t,e){if(zn(t),!$n(e)&&null!==e)throw TypeError(e+": can't set as prototype!")},Gn={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,i){try{(i=K(Function.call,Ye.f(Object.prototype,"__proto__").set,2))(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return Hn(t,n),e?t.__proto__=n:i(t,n),t}}({},!1):void 0),check:Hn};ot(ot.S,"Object",{setPrototypeOf:Gn.set});var Wn=Bt,Yn=xt("toStringTag"),Xn="Arguments"==Wn(function(){return arguments}()),Un=function(t){var e,i,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),Yn))?i:Xn?Wn(e):"Object"==(n=Wn(e))&&"function"==typeof e.callee?"Arguments":n},qn=Un,Zn={};Zn[xt("toStringTag")]="z",Zn+""!="[object z]"&&U(Object.prototype,"toString",(function(){return"[object "+qn(this)+"]"}),!0);var Kn=function(t,e,i){var n=void 0===i;switch(e.length){case 0:return n?t():t.call(i);case 1:return n?t(e[0]):t.call(i,e[0]);case 2:return n?t(e[0],e[1]):t.call(i,e[0],e[1]);case 3:return n?t(e[0],e[1],e[2]):t.call(i,e[0],e[1],e[2]);case 4:return n?t(e[0],e[1],e[2],e[3]):t.call(i,e[0],e[1],e[2],e[3])}return t.apply(i,e)},Jn=q,Qn=d,tr=Kn,er=[].slice,ir={},nr=Function.bind||function(t){var e=Jn(this),i=er.call(arguments,1),n=function(){var r=i.concat(er.call(arguments));return this instanceof n?function(t,e,i){if(!(e in ir)){for(var n=[],r=0;r<e;r++)n[r]="a["+r+"]";ir[e]=Function("F,a","return new F("+n.join(",")+")")}return ir[e](t,i)}(e,r.length,r):tr(e,r,t)};return Qn(e.prototype)&&(n.prototype=e.prototype),n};ot(ot.P,"Function",{bind:nr});var rr=_.f,or=Function.prototype,sr=/^\s*function ([^ (]*)/,ar="name";ar in or||l&&rr(or,ar,{configurable:!0,get:function(){try{return(""+this).match(sr)[1]}catch(t){return""}}});var lr=d,ur=gn,hr=xt("hasInstance"),pr=Function.prototype;hr in pr||_.f(pr,hr,{value:function(t){if("function"!=typeof this||!lr(t))return!1;if(!lr(this.prototype))return t instanceof this;for(;t=ur(t);)if(this.prototype===t)return!0;return!1}});var cr="\t\n\v\f\r \u2028\u2029\ufeff",fr=ot,_r=Ft,dr=a,yr=cr,gr="["+yr+"]",vr=RegExp("^"+gr+gr+"*"),mr=RegExp(gr+gr+"*$"),br=function(t,e,i){var n={},r=dr((function(){return!!yr[t]()||"
"!="
"[t]()})),o=n[t]=r?e(wr):yr[t];i&&(n[i]=o),fr(fr.P+fr.F*r,"String",n)},wr=br.trim=function(t,e){return t=String(_r(t)),1&e&&(t=t.replace(vr,"")),2&e&&(t=t.replace(mr,"")),t},xr=br,Sr=r.parseInt,Pr=xr.trim,Vr=cr,kr=/^[-+]?0[xX]/,Ar=8!==Sr(Vr+"08")||22!==Sr(Vr+"0x16")?function(t,e){var i=Pr(String(t),3);return Sr(i,e>>>0||(kr.test(i)?16:10))}:Sr,Cr=ot,Er=Ar;Cr(Cr.G+Cr.F*(parseInt!=Er),{parseInt:Er});var Lr=r.parseFloat,Nr=xr.trim,Or=1/Lr(cr+"-0")!=-1/0?function(t){var e=Nr(String(t),3),i=Lr(e);return 0===i&&"-"==e.charAt(0)?-0:i}:Lr,Mr=ot,Tr=Or;Mr(Mr.G+Mr.F*(parseFloat!=Tr),{parseFloat:Tr});var Rr=d,Br=Gn.set,Dr=function(t,e,i){var n,r=e.constructor;return r!==i&&"function"==typeof r&&(n=r.prototype)!==i.prototype&&Rr(n)&&Br&&Br(t,n),t},Fr=r,Ir=s,jr=Bt,$r=Dr,zr=w,Hr=a,Gr=Ie.f,Wr=Ye.f,Yr=_.f,Xr=xr.trim,Ur="Number",qr=Fr[Ur],Zr=qr,Kr=qr.prototype,Jr=jr(De(Kr))==Ur,Qr="trim"in String.prototype,to=function(t){var e=zr(t,!1);if("string"==typeof e&&e.length>2){var i,n,r,o=(e=Qr?e.trim():Xr(e,3)).charCodeAt(0);if(43===o||45===o){if(88===(i=e.charCodeAt(2))||120===i)return NaN}else if(48===o){switch(e.charCodeAt(1)){case 66:case 98:n=2,r=49;break;case 79:case 111:n=8,r=55;break;default:return+e}for(var s,a=e.slice(2),l=0,u=a.length;l<u;l++)if((s=a.charCodeAt(l))<48||s>r)return NaN;return parseInt(a,n)}}return+e};if(!qr(" 0o1")||!qr("0b1")||qr("+0x1")){qr=function(t){var e=arguments.length<1?0:t,i=this;return i instanceof qr&&(Jr?Hr((function(){Kr.valueOf.call(i)})):jr(i)!=Ur)?$r(new Zr(to(e)),i,qr):to(e)};for(var eo,io=l?Gr(Zr):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),no=0;io.length>no;no++)Ir(Zr,eo=io[no])&&!Ir(qr,eo)&&Yr(qr,eo,Wr(Zr,eo));qr.prototype=Kr,Kr.constructor=qr,U(Fr,Ur,qr)}var ro=Bt,oo=function(t,e){if("number"!=typeof t&&"Number"!=ro(t))throw TypeError(e);return+t},so=Gt,ao=Ft,lo=function(t){var e=String(ao(this)),i="",n=so(t);if(n<0||n==1/0)throw RangeError("Count can't be negative");for(;n>0;(n>>>=1)&&(e+=e))1&n&&(i+=e);return i},uo=ot,ho=Gt,po=oo,co=lo,fo=1..toFixed,_o=Math.floor,yo=[0,0,0,0,0,0],go="Number.toFixed: incorrect invocation!",vo="0",mo=function(t,e){for(var i=-1,n=e;++i<6;)n+=t*yo[i],yo[i]=n%1e7,n=_o(n/1e7)},bo=function(t){for(var e=6,i=0;--e>=0;)i+=yo[e],yo[e]=_o(i/t),i=i%t*1e7},wo=function(){for(var t=6,e="";--t>=0;)if(""!==e||0===t||0!==yo[t]){var i=String(yo[t]);e=""===e?i:e+co.call(vo,7-i.length)+i}return e},xo=function(t,e,i){return 0===e?i:e%2==1?xo(t,e-1,i*t):xo(t*t,e/2,i)};uo(uo.P+uo.F*(!!fo&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!a((function(){fo.call({})}))),"Number",{toFixed:function(t){var e,i,n,r,o=po(this,go),s=ho(t),a="",l=vo;if(s<0||s>20)throw RangeError(go);if(o!=o)return"NaN";if(o<=-1e21||o>=1e21)return String(o);if(o<0&&(a="-",o=-o),o>1e-21)if(e=function(t){for(var e=0,i=t;i>=4096;)e+=12,i/=4096;for(;i>=2;)e+=1,i/=2;return e}(o*xo(2,69,1))-69,i=e<0?o*xo(2,-e,1):o/xo(2,e,1),i*=4503599627370496,(e=52-e)>0){for(mo(0,i),n=s;n>=7;)mo(1e7,0),n-=7;for(mo(xo(10,n,1),0),n=e-1;n>=23;)bo(1<<23),n-=23;bo(1<<n),mo(1,1),bo(2),l=wo()}else mo(0,i),mo(1<<-e,0),l=wo()+co.call(vo,s);return l=s>0?a+((r=l.length)<=s?"0."+co.call(vo,s-r)+l:l.slice(0,r-s)+"."+l.slice(r-s)):a+l}});var So=ot,Po=a,Vo=oo,ko=1..toPrecision;So(So.P+So.F*(Po((function(){return"1"!==ko.call(1,void 0)}))||!Po((function(){ko.call({})}))),"Number",{toPrecision:function(t){var e=Vo(this,"Number#toPrecision: incorrect invocation!");return void 0===t?ko.call(e):ko.call(e,t)}});ot(ot.S,"Number",{EPSILON:Math.pow(2,-52)});var Ao=ot,Co=r.isFinite;Ao(Ao.S,"Number",{isFinite:function(t){return"number"==typeof t&&Co(t)}});var Eo=d,Lo=Math.floor,No=function(t){return!Eo(t)&&isFinite(t)&&Lo(t)===t};ot(ot.S,"Number",{isInteger:No});ot(ot.S,"Number",{isNaN:function(t){return t!=t}});var Oo=ot,Mo=No,To=Math.abs;Oo(Oo.S,"Number",{isSafeInteger:function(t){return Mo(t)&&To(t)<=9007199254740991}});ot(ot.S,"Number",{MAX_SAFE_INTEGER:9007199254740991});ot(ot.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991});var Ro=ot,Bo=Or;Ro(Ro.S+Ro.F*(Number.parseFloat!=Bo),"Number",{parseFloat:Bo});var Do=ot,Fo=Ar;Do(Do.S+Do.F*(Number.parseInt!=Fo),"Number",{parseInt:Fo});var Io=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:Math.log(1+t)},jo=ot,$o=Io,zo=Math.sqrt,Ho=Math.acosh;jo(jo.S+jo.F*!(Ho&&710==Math.floor(Ho(Number.MAX_VALUE))&&Ho(1/0)==1/0),"Math",{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?Math.log(t)+Math.LN2:$o(t-1+zo(t-1)*zo(t+1))}});var Go=ot,Wo=Math.asinh;Go(Go.S+Go.F*!(Wo&&1/Wo(0)>0),"Math",{asinh:function t(e){return isFinite(e=+e)&&0!=e?e<0?-t(-e):Math.log(e+Math.sqrt(e*e+1)):e}});var Yo=ot,Xo=Math.atanh;Yo(Yo.S+Yo.F*!(Xo&&1/Xo(-0)<0),"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}});var Uo=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1},qo=Uo;ot(ot.S,"Math",{cbrt:function(t){return qo(t=+t)*Math.pow(Math.abs(t),1/3)}});ot(ot.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}});var Zo=ot,Ko=Math.exp;Zo(Zo.S,"Math",{cosh:function(t){return(Ko(t=+t)+Ko(-t))/2}});var Jo,Qo,ts=Math.expm1,es=!ts||ts(10)>22025.465794806718||ts(10)<22025.465794806718||-2e-17!=ts(-2e-17)?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:Math.exp(t)-1}:ts,is=ot,ns=es;function rs(){if(Qo)return Jo;Qo=1;var t=Uo,e=Math.pow,i=e(2,-52),n=e(2,-23),r=e(2,127)*(2-n),o=e(2,-126);return Jo=Math.fround||function(e){var s,a,l=Math.abs(e),u=t(e);return l<o?u*(l/o/n+1/i-1/i)*o*n:(a=(s=(1+n/i)*l)-(s-l))>r||a!=a?u*(1/0):u*a}}is(is.S+is.F*(ns!=Math.expm1),"Math",{expm1:ns});ot(ot.S,"Math",{fround:rs()});var os=ot,ss=Math.abs;os(os.S,"Math",{hypot:function(t,e){for(var i,n,r=0,o=0,s=arguments.length,a=0;o<s;)a<(i=ss(arguments[o++]))?(r=r*(n=a/i)*n+1,a=i):r+=i>0?(n=i/a)*n:i;return a===1/0?1/0:a*Math.sqrt(r)}});var as=ot,ls=Math.imul;as(as.S+as.F*a((function(){return-5!=ls(4294967295,5)||2!=ls.length})),"Math",{imul:function(t,e){var i=65535,n=+t,r=+e,o=i&n,s=i&r;return 0|o*s+((i&n>>>16)*s+o*(i&r>>>16)<<16>>>0)}});ot(ot.S,"Math",{log10:function(t){return Math.log(t)*Math.LOG10E}});ot(ot.S,"Math",{log1p:Io});ot(ot.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}});ot(ot.S,"Math",{sign:Uo});var us=ot,hs=es,ps=Math.exp;us(us.S+us.F*a((function(){return-2e-17!=!Math.sinh(-2e-17)})),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(hs(t)-hs(-t))/2:(ps(t-1)-ps(-t-1))*(Math.E/2)}});var cs=ot,fs=es,_s=Math.exp;cs(cs.S,"Math",{tanh:function(t){var e=fs(t=+t),i=fs(-t);return e==1/0?1:i==1/0?-1:(e-i)/(_s(t)+_s(-t))}});ot(ot.S,"Math",{trunc:function(t){return(t>0?Math.floor:Math.ceil)(t)}});var ds=ot,ys=Kt,gs=String.fromCharCode,vs=String.fromCodePoint;ds(ds.S+ds.F*(!!vs&&1!=vs.length),"String",{fromCodePoint:function(t){for(var e,i=[],n=arguments.length,r=0;n>r;){if(e=+arguments[r++],ys(e,1114111)!==e)throw RangeError(e+" is not a valid code point");i.push(e<65536?gs(e):gs(55296+((e-=65536)>>10),e%1024+56320))}return i.join("")}});var ms=$t,bs=Xt;ot(ot.S,"String",{raw:function(t){for(var e=ms(t.raw),i=bs(e.length),n=arguments.length,r=[],o=0;i>o;)r.push(String(e[o++])),o<n&&r.push(String(arguments[o]));return r.join("")}}),xr("trim",(function(t){return function(){return t(this,3)}}));var ws=Gt,xs=Ft,Ss=function(t){return function(e,i){var n,r,o=String(xs(e)),s=ws(i),a=o.length;return s<0||s>=a?t?"":void 0:(n=o.charCodeAt(s))<55296||n>56319||s+1===a||(r=o.charCodeAt(s+1))<56320||r>57343?t?o.charAt(s):n:t?o.slice(s,s+2):r-56320+(n-55296<<10)+65536}},Ps={},Vs=De,ks=C,As=kt,Cs={};E()(Cs,xt("iterator"),(function(){return this}));var Es=function(t,e,i){t.prototype=Vs(Cs,{next:ks(1,i)}),As(t,e+" Iterator")},Ls=ot,Ns=U,Os=E(),Ms=Ps,Ts=Es,Rs=kt,Bs=gn,Ds=xt("iterator"),Fs=!([].keys&&"next"in[].keys()),Is="keys",js="values",$s=function(){return this},zs=function(t,e,i,n,r,o,s){Ts(i,e,n);var a,l,u,h=function(t){if(!Fs&&t in _)return _[t];switch(t){case Is:case js:return function(){return new i(this,t)}}return function(){return new i(this,t)}},p=e+" Iterator",c=r==js,f=!1,_=t.prototype,d=_[Ds]||_["@@iterator"]||r&&_[r],y=d||h(r),g=r?c?h("entries"):y:void 0,v="Array"==e&&_.entries||d;if(v&&(u=Bs(v.call(new t)))!==Object.prototype&&u.next&&(Rs(u,p,!0),"function"!=typeof u[Ds]&&Os(u,Ds,$s)),c&&d&&d.name!==js&&(f=!0,y=function(){return d.call(this)}),(Fs||f||!_[Ds])&&Os(_,Ds,y),Ms[e]=y,Ms[p]=$s,r)if(a={values:c?y:h(js),keys:o?y:h(Is),entries:g},s)for(l in a)l in _||Ns(_,l,a[l]);else Ls(Ls.P+Ls.F*(Fs||f),e,a);return a},Hs=Ss(!0);zs(String,"String",(function(t){this._t=String(t),this._i=0}),(function(){var t,e=this._t,i=this._i;return i>=e.length?{value:void 0,done:!0}:(t=Hs(e,i),this._i+=t.length,{value:t,done:!1})}));var Gs=ot,Ws=Ss(!1);Gs(Gs.P,"String",{codePointAt:function(t){return Ws(this,t)}});var Ys,Xs,Us=d,qs=Bt,Zs=xt("match"),Ks=function(t){var e;return Us(t)&&(void 0!==(e=t[Zs])?!!e:"RegExp"==qs(t))},Js=Ks,Qs=Ft,ta=function(t,e,i){if(Js(e))throw TypeError("String#"+i+" doesn't accept regex!");return String(Qs(t))};function ea(){if(Xs)return Ys;Xs=1;var t=xt("match");return Ys=function(e){var i=/./;try{"/./"[e](i)}catch(n){try{return i[t]=!1,!"/./"[e](i)}catch(t){}}return!0},Ys}var ia=ot,na=Xt,ra=ta,oa="endsWith",sa=""[oa];ia(ia.P+ia.F*ea()(oa),"String",{endsWith:function(t){var e=ra(this,t,oa),i=arguments.length>1?arguments[1]:void 0,n=na(e.length),r=void 0===i?n:Math.min(na(i),n),o=String(t);return sa?sa.call(e,o,r):e.slice(r-o.length,r)===o}});var aa=ot,la=ta,ua="includes";aa(aa.P+aa.F*ea()(ua),"String",{includes:function(t){return!!~la(this,t,ua).indexOf(t,arguments.length>1?arguments[1]:void 0)}});ot(ot.P,"String",{repeat:lo});var ha=ot,pa=Xt,ca=ta,fa="startsWith",_a=""[fa];ha(ha.P+ha.F*ea()(fa),"String",{startsWith:function(t){var e=ca(this,t,fa),i=pa(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),n=String(t);return _a?_a.call(e,n,i):e.slice(i,i+n.length)===n}});var da=ot,ya=a,ga=Ft,va=/"/g,ma=function(t,e,i,n){var r=String(ga(t)),o="<"+e;return""!==i&&(o+=" "+i+'="'+String(n).replace(va,""")+'"'),o+">"+r+"</"+e+">"},ba=function(t,e){var i={};i[t]=e(ma),da(da.P+da.F*ya((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3})),"String",i)};ba("anchor",(function(t){return function(e){return t(this,"a","name",e)}})),ba("big",(function(t){return function(){return t(this,"big","","")}})),ba("blink",(function(t){return function(){return t(this,"blink","","")}})),ba("bold",(function(t){return function(){return t(this,"b","","")}})),ba("fixed",(function(t){return function(){return t(this,"tt","","")}})),ba("fontcolor",(function(t){return function(e){return t(this,"font","color",e)}})),ba("fontsize",(function(t){return function(e){return t(this,"font","size",e)}})),ba("italics",(function(t){return function(){return t(this,"i","","")}})),ba("link",(function(t){return function(e){return t(this,"a","href",e)}})),ba("small",(function(t){return function(){return t(this,"small","","")}})),ba("strike",(function(t){return function(){return t(this,"strike","","")}})),ba("sub",(function(t){return function(){return t(this,"sub","","")}})),ba("sup",(function(t){return function(){return t(this,"sup","","")}}));ot(ot.S,"Date",{now:function(){return(new Date).getTime()}});var wa=ot,xa=ke,Sa=w;wa(wa.P+wa.F*a((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})})),"Date",{toJSON:function(t){var e=xa(this),i=Sa(e);return"number"!=typeof i||isFinite(i)?e.toISOString():null}});var Pa=a,Va=Date.prototype.getTime,ka=Date.prototype.toISOString,Aa=function(t){return t>9?t:"0"+t},Ca=ot,Ea=Pa((function(){return"0385-07-25T07:06:39.999Z"!=ka.call(new Date(-50000000000001))}))||!Pa((function(){ka.call(new Date(NaN))}))?function(){if(!isFinite(Va.call(this)))throw RangeError("Invalid time value");var t=this,e=t.getUTCFullYear(),i=t.getUTCMilliseconds(),n=e<0?"-":e>9999?"+":"";return n+("00000"+Math.abs(e)).slice(n?-6:-4)+"-"+Aa(t.getUTCMonth()+1)+"-"+Aa(t.getUTCDate())+"T"+Aa(t.getUTCHours())+":"+Aa(t.getUTCMinutes())+":"+Aa(t.getUTCSeconds())+"."+(i>99?i:"0"+Aa(i))+"Z"}:ka;Ca(Ca.P+Ca.F*(Date.prototype.toISOString!==Ea),"Date",{toISOString:Ea});var La,Na,Oa=Date.prototype,Ma="Invalid Date",Ta="toString",Ra=Oa[Ta],Ba=Oa.getTime;new Date(NaN)+""!=Ma&&U(Oa,Ta,(function(){var t=Ba.call(this);return t==t?Ra.call(this):Ma}));var Da=xt("toPrimitive"),Fa=Date.prototype;Da in Fa||E()(Fa,Da,function(){if(Na)return La;Na=1;var t=g,e=w,i="number";return La=function(n){if("string"!==n&&n!==i&&"default"!==n)throw TypeError("Incorrect hint");return e(t(this),n!=i)}}());ot(ot.S,"Array",{isArray:Pe});var Ia,ja,$a=g,za=function(t,e,i,n){try{return n?e($a(i)[0],i[1]):e(i)}catch(e){var r=t.return;throw void 0!==r&&$a(r.call(t)),e}},Ha=Ps,Ga=xt("iterator"),Wa=Array.prototype,Ya=function(t){return void 0!==t&&(Ha.Array===t||Wa[Ga]===t)},Xa=_,Ua=C,qa=function(t,e,i){e in t?Xa.f(t,e,Ua(0,i)):t[e]=i},Za=Un,Ka=xt("iterator"),Ja=Ps,Qa=f.getIteratorMethod=function(t){if(null!=t)return t[Ka]||t["@@iterator"]||Ja[Za(t)]};function tl(){if(ja)return Ia;ja=1;var t=xt("iterator"),e=!1;try{var i=[7][t]();i.return=function(){e=!0},Array.from(i,(function(){throw 2}))}catch(t){}return Ia=function(i,n){if(!n&&!e)return!1;var r=!1;try{var o=[7],s=o[t]();s.next=function(){return{done:r=!0}},o[t]=function(){return s},i(o)}catch(t){}return r}}var el=K,il=ot,nl=ke,rl=za,ol=Ya,sl=Xt,al=qa,ll=Qa;il(il.S+il.F*!tl()((function(t){Array.from(t)})),"Array",{from:function(t){var e,i,n,r,o=nl(t),s="function"==typeof this?this:Array,a=arguments.length,l=a>1?arguments[1]:void 0,u=void 0!==l,h=0,p=ll(o);if(u&&(l=el(l,a>2?arguments[2]:void 0,2)),null==p||s==Array&&ol(p))for(i=new s(e=sl(o.length));e>h;h++)al(i,h,u?l(o[h],h):o[h]);else for(r=p.call(o),i=new s;!(n=r.next()).done;h++)al(i,h,u?rl(r,l,[n.value,h],!0):n.value);return i.length=h,i}});var ul=ot,hl=qa;ul(ul.S+ul.F*a((function(){function t(){}return!(Array.of.call(t)instanceof t)})),"Array",{of:function(){for(var t=0,e=arguments.length,i=new("function"==typeof this?this:Array)(e);e>t;)hl(i,t,arguments[t++]);return i.length=e,i}});var pl=a,cl=function(t,e){return!!t&&pl((function(){e?t.call(null,(function(){}),1):t.call(null)}))},fl=ot,_l=$t,dl=[].join;fl(fl.P+fl.F*(Dt()!=Object||!cl(dl)),"Array",{join:function(t){return dl.call(_l(this),void 0===t?",":t)}});var yl=ot,gl=Ee,vl=Bt,ml=Kt,bl=Xt,wl=[].slice;yl(yl.P+yl.F*a((function(){gl&&wl.call(gl)})),"Array",{slice:function(t,e){var i=bl(this.length),n=vl(this);if(e=void 0===e?i:e,"Array"==n)return wl.call(this,t,e);for(var r=ml(t,i),o=ml(e,i),s=bl(o-r),a=new Array(s),l=0;l<s;l++)a[l]="String"==n?this.charAt(r+l):this[r+l];return a}});var xl=ot,Sl=q,Pl=ke,Vl=a,kl=[].sort,Al=[1,2,3];xl(xl.P+xl.F*(Vl((function(){Al.sort(void 0)}))||!Vl((function(){Al.sort(null)}))||!cl(kl)),"Array",{sort:function(t){return void 0===t?kl.call(Pl(this)):kl.call(Pl(this),Sl(t))}});var Cl=d,El=Pe,Ll=xt("species"),Nl=function(t){var e;return El(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!El(e.prototype)||(e=void 0),Cl(e)&&null===(e=e[Ll])&&(e=void 0)),void 0===e?Array:e},Ol=function(t,e){return new(Nl(t))(e)},Ml=K,Tl=Dt(),Rl=ke,Bl=Xt,Dl=Ol,Fl=function(t,e){var i=1==t,n=2==t,r=3==t,o=4==t,s=6==t,a=5==t||s,l=e||Dl;return function(e,u,h){for(var p,c,f=Rl(e),_=Tl(f),d=Ml(u,h,3),y=Bl(_.length),g=0,v=i?l(e,y):n?l(e,0):void 0;y>g;g++)if((a||g in _)&&(c=d(p=_[g],g,f),t))if(i)v[g]=c;else if(c)switch(t){case 3:return!0;case 5:return p;case 6:return g;case 2:v.push(p)}else if(o)return!1;return s?-1:r||o?o:v}},Il=ot,jl=Fl(0),$l=cl([].forEach,!0);Il(Il.P+Il.F*!$l,"Array",{forEach:function(t){return jl(this,t,arguments[1])}});var zl=ot,Hl=Fl(1);zl(zl.P+zl.F*!cl([].map,!0),"Array",{map:function(t){return Hl(this,t,arguments[1])}});var Gl=ot,Wl=Fl(2);Gl(Gl.P+Gl.F*!cl([].filter,!0),"Array",{filter:function(t){return Wl(this,t,arguments[1])}});var Yl=ot,Xl=Fl(3);Yl(Yl.P+Yl.F*!cl([].some,!0),"Array",{some:function(t){return Xl(this,t,arguments[1])}});var Ul=ot,ql=Fl(4);Ul(Ul.P+Ul.F*!cl([].every,!0),"Array",{every:function(t){return ql(this,t,arguments[1])}});var Zl=q,Kl=ke,Jl=Dt(),Ql=Xt,tu=function(t,e,i,n,r){Zl(e);var o=Kl(t),s=Jl(o),a=Ql(o.length),l=r?a-1:0,u=r?-1:1;if(i<2)for(;;){if(l in s){n=s[l],l+=u;break}if(l+=u,r?l<0:a<=l)throw TypeError("Reduce of empty array with no initial value")}for(;r?l>=0:a>l;l+=u)l in s&&(n=e(n,s[l],l,o));return n},eu=ot,iu=tu;eu(eu.P+eu.F*!cl([].reduce,!0),"Array",{reduce:function(t){return iu(this,t,arguments.length,arguments[1],!1)}});var nu=ot,ru=tu;nu(nu.P+nu.F*!cl([].reduceRight,!0),"Array",{reduceRight:function(t){return ru(this,t,arguments.length,arguments[1],!0)}});var ou=ot,su=ee(!1),au=[].indexOf,lu=!!au&&1/[1].indexOf(1,-0)<0;ou(ou.P+ou.F*(lu||!cl(au)),"Array",{indexOf:function(t){return lu?au.apply(this,arguments)||0:su(this,t,arguments[1])}});var uu,hu,pu=ot,cu=$t,fu=Gt,_u=Xt,du=[].lastIndexOf,yu=!!du&&1/[1].lastIndexOf(1,-0)<0;function gu(){if(hu)return uu;hu=1;var t=ke,e=Kt,i=Xt;return uu=[].copyWithin||function(n,r){var o=t(this),s=i(o.length),a=e(n,s),l=e(r,s),u=arguments.length>2?arguments[2]:void 0,h=Math.min((void 0===u?s:e(u,s))-l,s-a),p=1;for(l<a&&a<l+h&&(p=-1,l+=h-1,a+=h-1);h-- >0;)l in o?o[a]=o[l]:delete o[a],a+=p,l+=p;return o},uu}pu(pu.P+pu.F*(yu||!cl(du)),"Array",{lastIndexOf:function(t){if(yu)return du.apply(this,arguments)||0;var e=cu(this),i=_u(e.length),n=i-1;for(arguments.length>1&&(n=Math.min(n,fu(arguments[1]))),n<0&&(n=i+n);n>=0;n--)if(n in e&&e[n]===t)return n||0;return-1}});var vu=xt("unscopables"),mu=Array.prototype;null==mu[vu]&&E()(mu,vu,{});var bu,wu,xu=function(t){mu[vu][t]=!0};function Su(){if(wu)return bu;wu=1;var t=ke,e=Kt,i=Xt;return bu=function(n){for(var r=t(this),o=i(r.length),s=arguments.length,a=e(s>1?arguments[1]:void 0,o),l=s>2?arguments[2]:void 0,u=void 0===l?o:e(l,o);u>a;)r[a++]=n;return r},bu}ot(ot.P,"Array",{copyWithin:gu()}),xu("copyWithin");ot(ot.P,"Array",{fill:Su()}),xu("fill");var Pu=ot,Vu=Fl(5),ku="find",Au=!0;ku in[]&&Array(1)[ku]((function(){Au=!1})),Pu(Pu.P+Pu.F*Au,"Array",{find:function(t){return Vu(this,t,arguments.length>1?arguments[1]:void 0)}}),xu(ku);var Cu=ot,Eu=Fl(6),Lu="findIndex",Nu=!0;Lu in[]&&Array(1)[Lu]((function(){Nu=!1})),Cu(Cu.P+Cu.F*Nu,"Array",{findIndex:function(t){return Eu(this,t,arguments.length>1?arguments[1]:void 0)}}),xu(Lu);var Ou=r,Mu=_,Tu=l,Ru=xt("species"),Bu=function(t){var e=Ou[t];Tu&&e&&!e[Ru]&&Mu.f(e,Ru,{configurable:!0,get:function(){return this}})};Bu("Array");var Du=function(t,e){return{value:e,done:!!t}},Fu=xu,Iu=Du,ju=Ps,$u=$t,zu=zs(Array,"Array",(function(t,e){this._t=$u(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,i=this._i++;return!t||i>=t.length?(this._t=void 0,Iu(1)):Iu(0,"keys"==e?i:"values"==e?t[i]:[i,t[i]])}),"values");ju.Arguments=ju.Array,Fu("keys"),Fu("values"),Fu("entries");var Hu=g,Gu=function(){var t=Hu(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},Wu=r,Yu=Dr,Xu=_.f,Uu=Ie.f,qu=Ks,Zu=Gu,Ku=Wu.RegExp,Ju=Ku,Qu=Ku.prototype,th=/a/g,eh=/a/g,ih=new Ku(th)!==th;if(l&&(!ih||a((function(){return eh[xt("match")]=!1,Ku(th)!=th||Ku(eh)==eh||"/a/i"!=Ku(th,"i")})))){Ku=function(t,e){var i=this instanceof Ku,n=qu(t),r=void 0===e;return!i&&n&&t.constructor===Ku&&r?t:Yu(ih?new Ju(n&&!r?t.source:t,e):Ju((n=t instanceof Ku)?t.source:t,n&&r?Zu.call(t):e),i?this:Qu,Ku)};for(var nh=function(t){t in Ku||Xu(Ku,t,{configurable:!0,get:function(){return Ju[t]},set:function(e){Ju[t]=e}})},rh=Uu(Ju),oh=0;rh.length>oh;)nh(rh[oh++]);Qu.constructor=Ku,Ku.prototype=Qu,U(Wu,"RegExp",Ku)}Bu("RegExp");var sh=Gu,ah=RegExp.prototype.exec,lh=String.prototype.replace,uh=ah,hh="lastIndex",ph=function(){var t=/a/,e=/b*/g;return ah.call(t,"a"),ah.call(e,"a"),0!==t[hh]||0!==e[hh]}(),ch=void 0!==/()??/.exec("")[1];(ph||ch)&&(uh=function(t){var e,i,n,r,o=this;return ch&&(i=new RegExp("^"+o.source+"$(?!\\s)",sh.call(o))),ph&&(e=o[hh]),n=ah.call(o,t),ph&&n&&(o[hh]=o.global?n.index+n[0].length:e),ch&&n&&n.length>1&&lh.call(n[0],i,(function(){for(r=1;r<arguments.length-2;r++)void 0===arguments[r]&&(n[r]=void 0)})),n});var fh=uh;ot({target:"RegExp",proto:!0,forced:fh!==/./.exec},{exec:fh}),l&&"g"!=/./g.flags&&_.f(RegExp.prototype,"flags",{configurable:!0,get:Gu});var _h=g,dh=Gu,yh=l,gh="toString",vh=/./[gh],mh=function(t){U(RegExp.prototype,gh,t,!0)};a((function(){return"/a/b"!=vh.call({source:"a",flags:"b"})}))?mh((function(){var t=_h(this);return"/".concat(t.source,"/","flags"in t?t.flags:!yh&&t instanceof RegExp?dh.call(t):void 0)})):vh.name!=gh&&mh((function(){return vh.call(this)}));var bh=Ss(!0),wh=function(t,e,i){return e+(i?bh(t,e).length:1)},xh=Un,Sh=RegExp.prototype.exec,Ph=function(t,e){var i=t.exec;if("function"==typeof i){var n=i.call(t,e);if("object"!=typeof n)throw new TypeError("RegExp exec method returned something other than an Object or null");return n}if("RegExp"!==xh(t))throw new TypeError("RegExp#exec called on incompatible receiver");return Sh.call(t,e)},Vh=U,kh=E(),Ah=a,Ch=Ft,Eh=xt,Lh=fh,Nh=Eh("species"),Oh=!Ah((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),Mh=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var i="ab".split(t);return 2===i.length&&"a"===i[0]&&"b"===i[1]}(),Th=function(t,e,i){var n=Eh(t),r=!Ah((function(){var e={};return e[n]=function(){return 7},7!=""[t](e)})),o=r?!Ah((function(){var e=!1,i=/a/;return i.exec=function(){return e=!0,null},"split"===t&&(i.constructor={},i.constructor[Nh]=function(){return i}),i[n](""),!e})):void 0;if(!r||!o||"replace"===t&&!Oh||"split"===t&&!Mh){var s=/./[n],a=i(Ch,n,""[t],(function(t,e,i,n,o){return e.exec===Lh?r&&!o?{done:!0,value:s.call(e,i,n)}:{done:!0,value:t.call(i,e,n)}:{done:!1}})),l=a[0],u=a[1];Vh(String.prototype,t,l),kh(RegExp.prototype,n,2==e?function(t,e){return u.call(t,this,e)}:function(t){return u.call(t,this)})}},Rh=g,Bh=Xt,Dh=wh,Fh=Ph;Th("match",1,(function(t,e,i,n){return[function(i){var n=t(this),r=null==i?void 0:i[e];return void 0!==r?r.call(i,n):new RegExp(i)[e](String(n))},function(t){var e=n(i,t,this);if(e.done)return e.value;var r=Rh(t),o=String(this);if(!r.global)return Fh(r,o);var s=r.unicode;r.lastIndex=0;for(var a,l=[],u=0;null!==(a=Fh(r,o));){var h=String(a[0]);l[u]=h,""===h&&(r.lastIndex=Dh(o,Bh(r.lastIndex),s)),u++}return 0===u?null:l}]}));var Ih=g,jh=ke,$h=Xt,zh=Gt,Hh=wh,Gh=Ph,Wh=Math.max,Yh=Math.min,Xh=Math.floor,Uh=/\$([$&`']|\d\d?|<[^>]*>)/g,qh=/\$([$&`']|\d\d?)/g;Th("replace",2,(function(t,e,i,n){return[function(n,r){var o=t(this),s=null==n?void 0:n[e];return void 0!==s?s.call(n,o,r):i.call(String(o),n,r)},function(t,e){var o=n(i,t,this,e);if(o.done)return o.value;var s=Ih(t),a=String(this),l="function"==typeof e;l||(e=String(e));var u=s.global;if(u){var h=s.unicode;s.lastIndex=0}for(var p=[];;){var c=Gh(s,a);if(null===c)break;if(p.push(c),!u)break;""===String(c[0])&&(s.lastIndex=Hh(a,$h(s.lastIndex),h))}for(var f,_="",d=0,y=0;y<p.length;y++){c=p[y];for(var g=String(c[0]),v=Wh(Yh(zh(c.index),a.length),0),m=[],b=1;b<c.length;b++)m.push(void 0===(f=c[b])?f:String(f));var w=c.groups;if(l){var x=[g].concat(m,v,a);void 0!==w&&x.push(w);var S=String(e.apply(void 0,x))}else S=r(g,a,v,m,w,e);v>=d&&(_+=a.slice(d,v)+S,d=v+g.length)}return _+a.slice(d)}];function r(t,e,n,r,o,s){var a=n+t.length,l=r.length,u=qh;return void 0!==o&&(o=jh(o),u=Uh),i.call(s,u,(function(i,s){var u;switch(s.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,n);case"'":return e.slice(a);case"<":u=o[s.slice(1,-1)];break;default:var h=+s;if(0===h)return i;if(h>l){var p=Xh(h/10);return 0===p?i:p<=l?void 0===r[p-1]?s.charAt(1):r[p-1]+s.charAt(1):i}u=r[h-1]}return void 0===u?"":u}))}}));var Zh=g,Kh=jn,Jh=Ph;Th("search",1,(function(t,e,i,n){return[function(i){var n=t(this),r=null==i?void 0:i[e];return void 0!==r?r.call(i,n):new RegExp(i)[e](String(n))},function(t){var e=n(i,t,this);if(e.done)return e.value;var r=Zh(t),o=String(this),s=r.lastIndex;Kh(s,0)||(r.lastIndex=0);var a=Jh(r,o);return Kh(r.lastIndex,s)||(r.lastIndex=s),null===a?-1:a.index}]}));var Qh=g,tp=q,ep=xt("species"),ip=function(t,e){var i,n=Qh(t).constructor;return void 0===n||null==(i=Qh(n)[ep])?e:tp(i)},np=Ks,rp=g,op=ip,sp=wh,ap=Xt,lp=Ph,up=fh,hp=a,pp=Math.min,cp=[].push,fp="split",_p="length",dp="lastIndex",yp=4294967295,gp=!hp((function(){RegExp(yp,"y")}));Th("split",2,(function(t,e,i,n){var r;return r="c"=="abbc"[fp](/(b)*/)[1]||4!="test"[fp](/(?:)/,-1)[_p]||2!="ab"[fp](/(?:ab)*/)[_p]||4!="."[fp](/(.?)(.?)/)[_p]||"."[fp](/()()/)[_p]>1||""[fp](/.?/)[_p]?function(t,e){var n=String(this);if(void 0===t&&0===e)return[];if(!np(t))return i.call(n,t,e);for(var r,o,s,a=[],l=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),u=0,h=void 0===e?yp:e>>>0,p=new RegExp(t.source,l+"g");(r=up.call(p,n))&&!((o=p[dp])>u&&(a.push(n.slice(u,r.index)),r[_p]>1&&r.index<n[_p]&&cp.apply(a,r.slice(1)),s=r[0][_p],u=o,a[_p]>=h));)p[dp]===r.index&&p[dp]++;return u===n[_p]?!s&&p.test("")||a.push(""):a.push(n.slice(u)),a[_p]>h?a.slice(0,h):a}:"0"[fp](void 0,0)[_p]?function(t,e){return void 0===t&&0===e?[]:i.call(this,t,e)}:i,[function(i,n){var o=t(this),s=null==i?void 0:i[e];return void 0!==s?s.call(i,o,n):r.call(String(o),i,n)},function(t,e){var o=n(r,t,this,e,r!==i);if(o.done)return o.value;var s=rp(t),a=String(this),l=op(s,RegExp),u=s.unicode,h=(s.ignoreCase?"i":"")+(s.multiline?"m":"")+(s.unicode?"u":"")+(gp?"y":"g"),p=new l(gp?s:"^(?:"+s.source+")",h),c=void 0===e?yp:e>>>0;if(0===c)return[];if(0===a.length)return null===lp(p,a)?[a]:[];for(var f=0,_=0,d=[];_<a.length;){p.lastIndex=gp?_:0;var y,g=lp(p,gp?a:a.slice(_));if(null===g||(y=pp(ap(p.lastIndex+(gp?0:_)),a.length))===f)_=sp(a,_,u);else{if(d.push(a.slice(f,_)),d.length===c)return d;for(var v=1;v<=g.length-1;v++)if(d.push(g[v]),d.length===c)return d;_=f=y}}return d.push(a.slice(f)),d}]}));var vp=function(t,e,i,n){if(!(t instanceof e)||void 0!==n&&n in t)throw TypeError(i+": incorrect invocation!");return t},mp={exports:{}},bp=K,wp=za,xp=Ya,Sp=g,Pp=Xt,Vp=Qa,kp={},Ap={},Cp=mp.exports=function(t,e,i,n,r){var o,s,a,l,u=r?function(){return t}:Vp(t),h=bp(i,n,e?2:1),p=0;if("function"!=typeof u)throw TypeError(t+" is not iterable!");if(xp(u)){for(o=Pp(t.length);o>p;p++)if((l=e?h(Sp(s=t[p])[0],s[1]):h(t[p]))===kp||l===Ap)return l}else for(a=u.call(t);!(s=a.next()).done;)if((l=wp(a,h,s.value,e))===kp||l===Ap)return l};Cp.BREAK=kp,Cp.RETURN=Ap;var Ep,Lp,Np,Op=mp.exports,Mp=K,Tp=Kn,Rp=Ee,Bp=v(),Dp=r,Fp=Dp.process,Ip=Dp.setImmediate,jp=Dp.clearImmediate,$p=Dp.MessageChannel,zp=Dp.Dispatch,Hp=0,Gp={},Wp="onreadystatechange",Yp=function(){var t=+this;if(Gp.hasOwnProperty(t)){var e=Gp[t];delete Gp[t],e()}},Xp=function(t){Yp.call(t.data)};Ip&&jp||(Ip=function(t){for(var e=[],i=1;arguments.length>i;)e.push(arguments[i++]);return Gp[++Hp]=function(){Tp("function"==typeof t?t:Function(t),e)},Ep(Hp),Hp},jp=function(t){delete Gp[t]},"process"==Bt(Fp)?Ep=function(t){Fp.nextTick(Mp(Yp,t,1))}:zp&&zp.now?Ep=function(t){zp.now(Mp(Yp,t,1))}:$p?(Np=(Lp=new $p).port2,Lp.port1.onmessage=Xp,Ep=Mp(Np.postMessage,Np,1)):Dp.addEventListener&&"function"==typeof postMessage&&!Dp.importScripts?(Ep=function(t){Dp.postMessage(t+"","*")},Dp.addEventListener("message",Xp,!1)):Ep=Wp in Bp("script")?function(t){Rp.appendChild(Bp("script"))[Wp]=function(){Rp.removeChild(this),Yp.call(t)}}:function(t){setTimeout(Mp(Yp,t,1),0)});var Up={set:Ip,clear:jp},qp=r,Zp=Up.set,Kp=qp.MutationObserver||qp.WebKitMutationObserver,Jp=qp.process,Qp=qp.Promise,tc="process"==Bt(Jp),ec=function(){var t,e,i,n=function(){var n,r;for(tc&&(n=Jp.domain)&&n.exit();t;){r=t.fn,t=t.next;try{r()}catch(n){throw t?i():e=void 0,n}}e=void 0,n&&n.enter()};if(tc)i=function(){Jp.nextTick(n)};else if(!Kp||qp.navigator&&qp.navigator.standalone)if(Qp&&Qp.resolve){var r=Qp.resolve(void 0);i=function(){r.then(n)}}else i=function(){Zp.call(qp,n)};else{var o=!0,s=document.createTextNode("");new Kp(n).observe(s,{characterData:!0}),i=function(){s.data=o=!o}}return function(n){var r={fn:n,next:void 0};e&&(e.next=r),t||(t=r,i()),e=r}},ic={},nc=q;function rc(t){var e,i;this.promise=new t((function(t,n){if(void 0!==e||void 0!==i)throw TypeError("Bad Promise constructor");e=t,i=n})),this.resolve=nc(e),this.reject=nc(i)}ic.f=function(t){return new rc(t)};var oc,sc,ac=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}},lc=r.navigator,uc=lc&&lc.userAgent||"",hc=g,pc=d,cc=ic,fc=function(t,e){if(hc(t),pc(e)&&e.constructor===t)return e;var i=cc.f(t);return(0,i.resolve)(e),i.promise};function _c(){if(sc)return oc;sc=1;var t=U;return oc=function(e,i,n){for(var r in i)t(e,r,i[r],n);return e},oc}var dc,yc,gc,vc,mc=r,bc=K,wc=Un,xc=ot,Sc=d,Pc=q,Vc=vp,kc=Op,Ac=ip,Cc=Up.set,Ec=ec(),Lc=ic,Nc=ac,Oc=uc,Mc=fc,Tc="Promise",Rc=mc.TypeError,Bc=mc.process,Dc=Bc&&Bc.versions,Fc=Dc&&Dc.v8||"",Ic=mc[Tc],jc="process"==wc(Bc),$c=function(){},zc=yc=Lc.f,Hc=!!function(){try{var t=Ic.resolve(1),e=(t.constructor={})[xt("species")]=function(t){t($c,$c)};return(jc||"function"==typeof PromiseRejectionEvent)&&t.then($c)instanceof e&&0!==Fc.indexOf("6.6")&&-1===Oc.indexOf("Chrome/66")}catch(t){}}(),Gc=function(t){var e;return!(!Sc(t)||"function"!=typeof(e=t.then))&&e},Wc=function(t,e){if(!t._n){t._n=!0;var i=t._c;Ec((function(){for(var n=t._v,r=1==t._s,o=0,s=function(e){var i,o,s,a=r?e.ok:e.fail,l=e.resolve,u=e.reject,h=e.domain;try{a?(r||(2==t._h&&Uc(t),t._h=1),!0===a?i=n:(h&&h.enter(),i=a(n),h&&(h.exit(),s=!0)),i===e.promise?u(Rc("Promise-chain cycle")):(o=Gc(i))?o.call(i,l,u):l(i)):u(n)}catch(t){h&&!s&&h.exit(),u(t)}};i.length>o;)s(i[o++]);t._c=[],t._n=!1,e&&!t._h&&Yc(t)}))}},Yc=function(t){Cc.call(mc,(function(){var e,i,n,r=t._v,o=Xc(t);if(o&&(e=Nc((function(){jc?Bc.emit("unhandledRejection",r,t):(i=mc.onunhandledrejection)?i({promise:t,reason:r}):(n=mc.console)&&n.error&&n.error("Unhandled promise rejection",r)})),t._h=jc||Xc(t)?2:1),t._a=void 0,o&&e.e)throw e.v}))},Xc=function(t){return 1!==t._h&&0===(t._a||t._c).length},Uc=function(t){Cc.call(mc,(function(){var e;jc?Bc.emit("rejectionHandled",t):(e=mc.onrejectionhandled)&&e({promise:t,reason:t._v})}))},qc=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),Wc(e,!0))},Zc=function(t){var e,i=this;if(!i._d){i._d=!0,i=i._w||i;try{if(i===t)throw Rc("Promise can't be resolved itself");(e=Gc(t))?Ec((function(){var n={_w:i,_d:!1};try{e.call(t,bc(Zc,n,1),bc(qc,n,1))}catch(t){qc.call(n,t)}})):(i._v=t,i._s=1,Wc(i,!1))}catch(t){qc.call({_w:i,_d:!1},t)}}};Hc||(Ic=function(t){Vc(this,Ic,Tc,"_h"),Pc(t),dc.call(this);try{t(bc(Zc,this,1),bc(qc,this,1))}catch(t){qc.call(this,t)}},(dc=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=_c()(Ic.prototype,{then:function(t,e){var i=zc(Ac(this,Ic));return i.ok="function"!=typeof t||t,i.fail="function"==typeof e&&e,i.domain=jc?Bc.domain:void 0,this._c.push(i),this._a&&this._a.push(i),this._s&&Wc(this,!1),i.promise},catch:function(t){return this.then(void 0,t)}}),gc=function(){var t=new dc;this.promise=t,this.resolve=bc(Zc,t,1),this.reject=bc(qc,t,1)},Lc.f=zc=function(t){return t===Ic||t===vc?new gc(t):yc(t)}),xc(xc.G+xc.W+xc.F*!Hc,{Promise:Ic}),kt(Ic,Tc),Bu(Tc),vc=f[Tc],xc(xc.S+xc.F*!Hc,Tc,{reject:function(t){var e=zc(this);return(0,e.reject)(t),e.promise}}),xc(xc.S+xc.F*!Hc,Tc,{resolve:function(t){return Mc(this,t)}}),xc(xc.S+xc.F*!(Hc&&tl()((function(t){Ic.all(t).catch($c)}))),Tc,{all:function(t){var e=this,i=zc(e),n=i.resolve,r=i.reject,o=Nc((function(){var i=[],o=0,s=1;kc(t,!1,(function(t){var a=o++,l=!1;i.push(void 0),s++,e.resolve(t).then((function(t){l||(l=!0,i[a]=t,--s||n(i))}),r)})),--s||n(i)}));return o.e&&r(o.v),i.promise},race:function(t){var e=this,i=zc(e),n=i.reject,r=Nc((function(){kc(t,!1,(function(t){e.resolve(t).then(i.resolve,n)}))}));return r.e&&n(r.v),i.promise}});var Kc=d,Jc=function(t,e){if(!Kc(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t},Qc=_.f,tf=De,ef=_c(),nf=K,rf=vp,of=Op,sf=zs,af=Du,lf=Bu,uf=l,hf=yt.fastKey,pf=Jc,cf=uf?"_s":"size",ff=function(t,e){var i,n=hf(e);if("F"!==n)return t._i[n];for(i=t._f;i;i=i.n)if(i.k==e)return i},_f={getConstructor:function(t,e,i,n){var r=t((function(t,o){rf(t,r,e,"_i"),t._t=e,t._i=tf(null),t._f=void 0,t._l=void 0,t[cf]=0,null!=o&&of(o,i,t[n],t)}));return ef(r.prototype,{clear:function(){for(var t=pf(this,e),i=t._i,n=t._f;n;n=n.n)n.r=!0,n.p&&(n.p=n.p.n=void 0),delete i[n.i];t._f=t._l=void 0,t[cf]=0},delete:function(t){var i=pf(this,e),n=ff(i,t);if(n){var r=n.n,o=n.p;delete i._i[n.i],n.r=!0,o&&(o.n=r),r&&(r.p=o),i._f==n&&(i._f=r),i._l==n&&(i._l=o),i[cf]--}return!!n},forEach:function(t){pf(this,e);for(var i,n=nf(t,arguments.length>1?arguments[1]:void 0,3);i=i?i.n:this._f;)for(n(i.v,i.k,this);i&&i.r;)i=i.p},has:function(t){return!!ff(pf(this,e),t)}}),uf&&Qc(r.prototype,"size",{get:function(){return pf(this,e)[cf]}}),r},def:function(t,e,i){var n,r,o=ff(t,e);return o?o.v=i:(t._l=o={i:r=hf(e,!0),k:e,v:i,p:n=t._l,n:void 0,r:!1},t._f||(t._f=o),n&&(n.n=o),t[cf]++,"F"!==r&&(t._i[r]=o)),t},getEntry:ff,setStrong:function(t,e,i){sf(t,e,(function(t,i){this._t=pf(t,e),this._k=i,this._l=void 0}),(function(){for(var t=this,e=t._k,i=t._l;i&&i.r;)i=i.p;return t._t&&(t._l=i=i?i.n:t._t._f)?af(0,"keys"==e?i.k:"values"==e?i.v:[i.k,i.v]):(t._t=void 0,af(1))}),i?"entries":"values",!i,!0),lf(e)}},df=r,yf=ot,gf=U,vf=_c(),mf=yt,bf=Op,wf=vp,xf=d,Sf=a,Pf=tl(),Vf=kt,kf=Dr,Af=function(t,e,i,n,r,o){var s=df[t],a=s,l=r?"set":"add",u=a&&a.prototype,h={},p=function(t){var e=u[t];gf(u,t,"delete"==t||"has"==t?function(t){return!(o&&!xf(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return o&&!xf(t)?void 0:e.call(this,0===t?0:t)}:"add"==t?function(t){return e.call(this,0===t?0:t),this}:function(t,i){return e.call(this,0===t?0:t,i),this})};if("function"==typeof a&&(o||u.forEach&&!Sf((function(){(new a).entries().next()})))){var c=new a,f=c[l](o?{}:-0,1)!=c,_=Sf((function(){c.has(1)})),d=Pf((function(t){new a(t)})),y=!o&&Sf((function(){for(var t=new a,e=5;e--;)t[l](e,e);return!t.has(-0)}));d||((a=e((function(e,i){wf(e,a,t);var n=kf(new s,e,a);return null!=i&&bf(i,r,n[l],n),n}))).prototype=u,u.constructor=a),(_||y)&&(p("delete"),p("has"),r&&p("get")),(y||f)&&p(l),o&&u.clear&&delete u.clear}else a=n.getConstructor(e,t,r,l),vf(a.prototype,i),mf.NEED=!0;return Vf(a,t),h[t]=a,yf(yf.G+yf.W+yf.F*(a!=s),h),o||n.setStrong(a,t,r),a},Cf=_f,Ef=Jc,Lf="Map",Nf=Af(Lf,(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{get:function(t){var e=Cf.getEntry(Ef(this,Lf),t);return e&&e.v},set:function(t,e){return Cf.def(Ef(this,Lf),0===t?0:t,e)}},Cf,!0),Of=_f,Mf=Jc,Tf=Af("Set",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(t){return Of.def(Mf(this,"Set"),t=0===t?0:t,t)}},Of),Rf={exports:{}},Bf=_c(),Df=yt.getWeak,Ff=g,If=d,jf=vp,$f=Op,zf=Fl,Hf=s,Gf=Jc,Wf=zf(5),Yf=zf(6),Xf=0,Uf=function(t){return t._l||(t._l=new qf)},qf=function(){this.a=[]},Zf=function(t,e){return Wf(t.a,(function(t){return t[0]===e}))};qf.prototype={get:function(t){var e=Zf(this,t);if(e)return e[1]},has:function(t){return!!Zf(this,t)},set:function(t,e){var i=Zf(this,t);i?i[1]=e:this.a.push([t,e])},delete:function(t){var e=Yf(this.a,(function(e){return e[0]===t}));return~e&&this.a.splice(e,1),!!~e}};var Kf,Jf={getConstructor:function(t,e,i,n){var r=t((function(t,o){jf(t,r,e,"_i"),t._t=e,t._i=Xf++,t._l=void 0,null!=o&&$f(o,i,t[n],t)}));return Bf(r.prototype,{delete:function(t){if(!If(t))return!1;var i=Df(t);return!0===i?Uf(Gf(this,e)).delete(t):i&&Hf(i,this._i)&&delete i[this._i]},has:function(t){if(!If(t))return!1;var i=Df(t);return!0===i?Uf(Gf(this,e)).has(t):i&&Hf(i,this._i)}}),r},def:function(t,e,i){var n=Df(Ff(e),!0);return!0===n?Uf(t).set(e,i):n[t._i]=i,t},ufstore:Uf},Qf=r,t_=Fl(0),e_=U,i_=yt,n_=Fn,r_=Jf,o_=d,s_=Jc,a_=Jc,l_=!Qf.ActiveXObject&&"ActiveXObject"in Qf,u_="WeakMap",h_=i_.getWeak,p_=Object.isExtensible,c_=r_.ufstore,f_=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},__={get:function(t){if(o_(t)){var e=h_(t);return!0===e?c_(s_(this,u_)).get(t):e?e[this._i]:void 0}},set:function(t,e){return r_.def(s_(this,u_),t,e)}},d_=Rf.exports=Af(u_,f_,__,r_,!0,!0);a_&&l_&&(n_((Kf=r_.getConstructor(f_,u_)).prototype,__),i_.NEED=!0,t_(["delete","has","get","set"],(function(t){var e=d_.prototype,i=e[t];e_(e,t,(function(e,n){if(o_(e)&&!p_(e)){this._f||(this._f=new Kf);var r=this._f[t](e,n);return"set"==t?this:r}return i.call(this,e,n)}))})));var y_=Rf.exports,g_=Jf,v_=Jc,m_="WeakSet";Af(m_,(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(t){return g_.def(v_(this,m_),t,!0)}},g_,!1,!0);for(var b_,w_=r,x_=E(),S_=M,P_=S_("typed_array"),V_=S_("view"),k_=!(!w_.ArrayBuffer||!w_.DataView),A_=k_,C_=0,E_="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");C_<9;)(b_=w_[E_[C_++]])?(x_(b_.prototype,P_,!0),x_(b_.prototype,V_,!0)):A_=!1;var L_={ABV:k_,CONSTR:A_,TYPED:P_,VIEW:V_},N_={},O_=Gt,M_=Xt,T_=function(t){if(void 0===t)return 0;var e=O_(t),i=M_(e);if(e!==i)throw RangeError("Wrong length!");return i};!function(t){var e=r,i=l,n=L_,o=E(),s=_c(),u=a,h=vp,p=Gt,c=Xt,f=T_,d=Ie.f,y=_.f,g=Su(),v=kt,m="ArrayBuffer",b="DataView",w="prototype",x="Wrong index!",S=e[m],P=e[b],V=e.Math,k=e.RangeError,A=e.Infinity,C=S,L=V.abs,N=V.pow,O=V.floor,M=V.log,T=V.LN2,R="buffer",B="byteLength",D="byteOffset",F=i?"_b":R,I=i?"_l":B,j=i?"_o":D;function $(t,e,i){var n,r,o,s=new Array(i),a=8*i-e-1,l=(1<<a)-1,u=l>>1,h=23===e?N(2,-24)-N(2,-77):0,p=0,c=t<0||0===t&&1/t<0?1:0;for((t=L(t))!=t||t===A?(r=t!=t?1:0,n=l):(n=O(M(t)/T),t*(o=N(2,-n))<1&&(n--,o*=2),(t+=n+u>=1?h/o:h*N(2,1-u))*o>=2&&(n++,o/=2),n+u>=l?(r=0,n=l):n+u>=1?(r=(t*o-1)*N(2,e),n+=u):(r=t*N(2,u-1)*N(2,e),n=0));e>=8;s[p++]=255&r,r/=256,e-=8);for(n=n<<e|r,a+=e;a>0;s[p++]=255&n,n/=256,a-=8);return s[--p]|=128*c,s}function z(t,e,i){var n,r=8*i-e-1,o=(1<<r)-1,s=o>>1,a=r-7,l=i-1,u=t[l--],h=127&u;for(u>>=7;a>0;h=256*h+t[l],l--,a-=8);for(n=h&(1<<-a)-1,h>>=-a,a+=e;a>0;n=256*n+t[l],l--,a-=8);if(0===h)h=1-s;else{if(h===o)return n?NaN:u?-A:A;n+=N(2,e),h-=s}return(u?-1:1)*n*N(2,h-e)}function H(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}function G(t){return[255&t]}function W(t){return[255&t,t>>8&255]}function Y(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function X(t){return $(t,52,8)}function U(t){return $(t,23,4)}function q(t,e,i){y(t[w],e,{get:function(){return this[i]}})}function Z(t,e,i,n){var r=f(+i);if(r+e>t[I])throw k(x);var o=t[F]._b,s=r+t[j],a=o.slice(s,s+e);return n?a:a.reverse()}function K(t,e,i,n,r,o){var s=f(+i);if(s+e>t[I])throw k(x);for(var a=t[F]._b,l=s+t[j],u=n(+r),h=0;h<e;h++)a[l+h]=u[o?h:e-h-1]}if(n.ABV){if(!u((function(){S(1)}))||!u((function(){new S(-1)}))||u((function(){return new S,new S(1.5),new S(NaN),S.name!=m}))){for(var J,Q=(S=function(t){return h(this,S),new C(f(t))})[w]=C[w],tt=d(C),et=0;tt.length>et;)(J=tt[et++])in S||o(S,J,C[J]);Q.constructor=S}var it=new P(new S(2)),nt=P[w].setInt8;it.setInt8(0,2147483648),it.setInt8(1,2147483649),!it.getInt8(0)&&it.getInt8(1)||s(P[w],{setInt8:function(t,e){nt.call(this,t,e<<24>>24)},setUint8:function(t,e){nt.call(this,t,e<<24>>24)}},!0)}else S=function(t){h(this,S,m);var e=f(t);this._b=g.call(new Array(e),0),this[I]=e},P=function(t,e,i){h(this,P,b),h(t,S,b);var n=t[I],r=p(e);if(r<0||r>n)throw k("Wrong offset!");if(r+(i=void 0===i?n-r:c(i))>n)throw k("Wrong length!");this[F]=t,this[j]=r,this[I]=i},i&&(q(S,B,"_l"),q(P,R,"_b"),q(P,B,"_l"),q(P,D,"_o")),s(P[w],{getInt8:function(t){return Z(this,1,t)[0]<<24>>24},getUint8:function(t){return Z(this,1,t)[0]},getInt16:function(t){var e=Z(this,2,t,arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=Z(this,2,t,arguments[1]);return e[1]<<8|e[0]},getInt32:function(t){return H(Z(this,4,t,arguments[1]))},getUint32:function(t){return H(Z(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return z(Z(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return z(Z(this,8,t,arguments[1]),52,8)},setInt8:function(t,e){K(this,1,t,G,e)},setUint8:function(t,e){K(this,1,t,G,e)},setInt16:function(t,e){K(this,2,t,W,e,arguments[2])},setUint16:function(t,e){K(this,2,t,W,e,arguments[2])},setInt32:function(t,e){K(this,4,t,Y,e,arguments[2])},setUint32:function(t,e){K(this,4,t,Y,e,arguments[2])},setFloat32:function(t,e){K(this,4,t,U,e,arguments[2])},setFloat64:function(t,e){K(this,8,t,X,e,arguments[2])}});v(S,m),v(P,b),o(P[w],n.VIEW,!0),t[m]=S,t[b]=P}(N_);var R_=ot,B_=L_,D_=N_,F_=g,I_=Kt,j_=Xt,$_=d,z_=r.ArrayBuffer,H_=ip,G_=D_.ArrayBuffer,W_=D_.DataView,Y_=B_.ABV&&z_.isView,X_=G_.prototype.slice,U_=B_.VIEW,q_="ArrayBuffer";R_(R_.G+R_.W+R_.F*(z_!==G_),{ArrayBuffer:G_}),R_(R_.S+R_.F*!B_.CONSTR,q_,{isView:function(t){return Y_&&Y_(t)||$_(t)&&U_ in t}}),R_(R_.P+R_.U+R_.F*a((function(){return!new G_(2).slice(1,void 0).byteLength})),q_,{slice:function(t,e){if(void 0!==X_&&void 0===e)return X_.call(F_(this),t);for(var i=F_(this).byteLength,n=I_(t,i),r=I_(void 0===e?i:e,i),o=new(H_(this,G_))(j_(r-n)),s=new W_(this),a=new W_(o),l=0;n<r;)a.setUint8(l++,s.getUint8(n++));return o}}),Bu(q_);var Z_=ot;Z_(Z_.G+Z_.W+Z_.F*!L_.ABV,{DataView:N_.DataView});var K_={exports:{}};if(l){var J_=r,Q_=a,td=ot,ed=L_,id=N_,nd=K,rd=vp,od=C,sd=E(),ad=_c(),ld=Gt,ud=Xt,hd=T_,pd=Kt,cd=w,fd=s,_d=Un,dd=d,yd=ke,gd=Ya,vd=De,md=gn,bd=Ie.f,wd=Qa,xd=M,Sd=xt,Pd=Fl,Vd=ee,kd=ip,Ad=zu,Cd=Ps,Ed=tl(),Ld=Bu,Nd=Su(),Od=gu(),Md=_,Td=Ye,Rd=Md.f,Bd=Td.f,Dd=J_.RangeError,Fd=J_.TypeError,Id=J_.Uint8Array,jd="ArrayBuffer",$d="Shared"+jd,zd="BYTES_PER_ELEMENT",Hd="prototype",Gd=Array[Hd],Wd=id.ArrayBuffer,Yd=id.DataView,Xd=Pd(0),Ud=Pd(2),qd=Pd(3),Zd=Pd(4),Kd=Pd(5),Jd=Pd(6),Qd=Vd(!0),ty=Vd(!1),ey=Ad.values,iy=Ad.keys,ny=Ad.entries,ry=Gd.lastIndexOf,oy=Gd.reduce,sy=Gd.reduceRight,ay=Gd.join,ly=Gd.sort,uy=Gd.slice,hy=Gd.toString,py=Gd.toLocaleString,cy=Sd("iterator"),fy=Sd("toStringTag"),_y=xd("typed_constructor"),dy=xd("def_constructor"),yy=ed.CONSTR,gy=ed.TYPED,vy=ed.VIEW,my="Wrong length!",by=Pd(1,(function(t,e){return Vy(kd(t,t[dy]),e)})),wy=Q_((function(){return 1===new Id(new Uint16Array([1]).buffer)[0]})),xy=!!Id&&!!Id[Hd].set&&Q_((function(){new Id(1).set({})})),Sy=function(t,e){var i=ld(t);if(i<0||i%e)throw Dd("Wrong offset!");return i},Py=function(t){if(dd(t)&&gy in t)return t;throw Fd(t+" is not a typed array!")},Vy=function(t,e){if(!dd(t)||!(_y in t))throw Fd("It is not a typed array constructor!");return new t(e)},ky=function(t,e){return Ay(kd(t,t[dy]),e)},Ay=function(t,e){for(var i=0,n=e.length,r=Vy(t,n);n>i;)r[i]=e[i++];return r},Cy=function(t,e,i){Rd(t,e,{get:function(){return this._d[i]}})},Ey=function(t){var e,i,n,r,o,s,a=yd(t),l=arguments.length,u=l>1?arguments[1]:void 0,h=void 0!==u,p=wd(a);if(null!=p&&!gd(p)){for(s=p.call(a),n=[],e=0;!(o=s.next()).done;e++)n.push(o.value);a=n}for(h&&l>2&&(u=nd(u,arguments[2],2)),e=0,i=ud(a.length),r=Vy(this,i);i>e;e++)r[e]=h?u(a[e],e):a[e];return r},Ly=function(){for(var t=0,e=arguments.length,i=Vy(this,e);e>t;)i[t]=arguments[t++];return i},Ny=!!Id&&Q_((function(){py.call(new Id(1))})),Oy=function(){return py.apply(Ny?uy.call(Py(this)):Py(this),arguments)},My={copyWithin:function(t,e){return Od.call(Py(this),t,e,arguments.length>2?arguments[2]:void 0)},every:function(t){return Zd(Py(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return Nd.apply(Py(this),arguments)},filter:function(t){return ky(this,Ud(Py(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return Kd(Py(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return Jd(Py(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){Xd(Py(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return ty(Py(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return Qd(Py(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return ay.apply(Py(this),arguments)},lastIndexOf:function(t){return ry.apply(Py(this),arguments)},map:function(t){return by(Py(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return oy.apply(Py(this),arguments)},reduceRight:function(t){return sy.apply(Py(this),arguments)},reverse:function(){for(var t,e=this,i=Py(e).length,n=Math.floor(i/2),r=0;r<n;)t=e[r],e[r++]=e[--i],e[i]=t;return e},some:function(t){return qd(Py(this),t,arguments.length>1?arguments[1]:void 0)},sort:function(t){return ly.call(Py(this),t)},subarray:function(t,e){var i=Py(this),n=i.length,r=pd(t,n);return new(kd(i,i[dy]))(i.buffer,i.byteOffset+r*i.BYTES_PER_ELEMENT,ud((void 0===e?n:pd(e,n))-r))}},Ty=function(t,e){return ky(this,uy.call(Py(this),t,e))},Ry=function(t){Py(this);var e=Sy(arguments[1],1),i=this.length,n=yd(t),r=ud(n.length),o=0;if(r+e>i)throw Dd(my);for(;o<r;)this[e+o]=n[o++]},By={entries:function(){return ny.call(Py(this))},keys:function(){return iy.call(Py(this))},values:function(){return ey.call(Py(this))}},Dy=function(t,e){return dd(t)&&t[gy]&&"symbol"!=typeof e&&e in t&&String(+e)==String(e)},Fy=function(t,e){return Dy(t,e=cd(e,!0))?od(2,t[e]):Bd(t,e)},Iy=function(t,e,i){return!(Dy(t,e=cd(e,!0))&&dd(i)&&fd(i,"value"))||fd(i,"get")||fd(i,"set")||i.configurable||fd(i,"writable")&&!i.writable||fd(i,"enumerable")&&!i.enumerable?Rd(t,e,i):(t[e]=i.value,t)};yy||(Td.f=Fy,Md.f=Iy),td(td.S+td.F*!yy,"Object",{getOwnPropertyDescriptor:Fy,defineProperty:Iy}),Q_((function(){hy.call({})}))&&(hy=py=function(){return ay.call(this)});var jy=ad({},My);ad(jy,By),sd(jy,cy,By.values),ad(jy,{slice:Ty,set:Ry,constructor:function(){},toString:hy,toLocaleString:Oy}),Cy(jy,"buffer","b"),Cy(jy,"byteOffset","o"),Cy(jy,"byteLength","l"),Cy(jy,"length","e"),Rd(jy,fy,{get:function(){return this[gy]}}),K_.exports=function(t,e,i,n){var r=t+((n=!!n)?"Clamped":"")+"Array",o="get"+t,s="set"+t,a=J_[r],l=a||{},u=a&&md(a),h=!a||!ed.ABV,p={},c=a&&a[Hd],f=function(t,i){Rd(t,i,{get:function(){return function(t,i){var n=t._d;return n.v[o](i*e+n.o,wy)}(this,i)},set:function(t){return function(t,i,r){var o=t._d;n&&(r=(r=Math.round(r))<0?0:r>255?255:255&r),o.v[s](i*e+o.o,r,wy)}(this,i,t)},enumerable:!0})};h?(a=i((function(t,i,n,o){rd(t,a,r,"_d");var s,l,u,h,p=0,c=0;if(dd(i)){if(!(i instanceof Wd||(h=_d(i))==jd||h==$d))return gy in i?Ay(a,i):Ey.call(a,i);s=i,c=Sy(n,e);var _=i.byteLength;if(void 0===o){if(_%e)throw Dd(my);if((l=_-c)<0)throw Dd(my)}else if((l=ud(o)*e)+c>_)throw Dd(my);u=l/e}else u=hd(i),s=new Wd(l=u*e);for(sd(t,"_d",{b:s,o:c,l:l,e:u,v:new Yd(s)});p<u;)f(t,p++)})),c=a[Hd]=vd(jy),sd(c,"constructor",a)):Q_((function(){a(1)}))&&Q_((function(){new a(-1)}))&&Ed((function(t){new a,new a(null),new a(1.5),new a(t)}),!0)||(a=i((function(t,i,n,o){var s;return rd(t,a,r),dd(i)?i instanceof Wd||(s=_d(i))==jd||s==$d?void 0!==o?new l(i,Sy(n,e),o):void 0!==n?new l(i,Sy(n,e)):new l(i):gy in i?Ay(a,i):Ey.call(a,i):new l(hd(i))})),Xd(u!==Function.prototype?bd(l).concat(bd(u)):bd(l),(function(t){t in a||sd(a,t,l[t])})),a[Hd]=c,c.constructor=a);var _=c[cy],d=!!_&&("values"==_.name||null==_.name),y=By.values;sd(a,_y,!0),sd(c,gy,r),sd(c,vy,!0),sd(c,dy,a),(n?new a(1)[fy]==r:fy in c)||Rd(c,fy,{get:function(){return r}}),p[r]=a,td(td.G+td.W+td.F*(a!=l),p),td(td.S,r,{BYTES_PER_ELEMENT:e}),td(td.S+td.F*Q_((function(){l.of.call(a,1)})),r,{from:Ey,of:Ly}),zd in c||sd(c,zd,e),td(td.P,r,My),Ld(r),td(td.P+td.F*xy,r,{set:Ry}),td(td.P+td.F*!d,r,By),c.toString!=hy&&(c.toString=hy),td(td.P+td.F*Q_((function(){new a(1).slice()})),r,{slice:Ty}),td(td.P+td.F*(Q_((function(){return[1,2].toLocaleString()!=new a([1,2]).toLocaleString()}))||!Q_((function(){c.toLocaleString.call([1,2])}))),r,{toLocaleString:Oy}),Cd[r]=d?_:y,d||sd(c,cy,y)}}else K_.exports=function(){};var $y=K_.exports;$y("Int8",1,(function(t){return function(e,i,n){return t(this,e,i,n)}})),$y("Uint8",1,(function(t){return function(e,i,n){return t(this,e,i,n)}})),$y("Uint8",1,(function(t){return function(e,i,n){return t(this,e,i,n)}}),!0),$y("Int16",2,(function(t){return function(e,i,n){return t(this,e,i,n)}})),$y("Uint16",2,(function(t){return function(e,i,n){return t(this,e,i,n)}})),$y("Int32",4,(function(t){return function(e,i,n){return t(this,e,i,n)}})),$y("Uint32",4,(function(t){return function(e,i,n){return t(this,e,i,n)}})),$y("Float32",4,(function(t){return function(e,i,n){return t(this,e,i,n)}})),$y("Float64",8,(function(t){return function(e,i,n){return t(this,e,i,n)}}));var zy=ot,Hy=q,Gy=g,Wy=(r.Reflect||{}).apply,Yy=Function.apply;zy(zy.S+zy.F*!a((function(){Wy((function(){}))})),"Reflect",{apply:function(t,e,i){var n=Hy(t),r=Gy(i);return Wy?Wy(n,e,r):Yy.call(n,e,r)}});var Xy=ot,Uy=De,qy=q,Zy=g,Ky=d,Jy=a,Qy=nr,tg=(r.Reflect||{}).construct,eg=Jy((function(){function t(){}return!(tg((function(){}),[],t)instanceof t)})),ig=!Jy((function(){tg((function(){}))}));Xy(Xy.S+Xy.F*(eg||ig),"Reflect",{construct:function(t,e){qy(t),Zy(e);var i=arguments.length<3?t:qy(arguments[2]);if(ig&&!eg)return tg(t,e,i);if(t==i){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var n=[null];return n.push.apply(n,e),new(Qy.apply(t,n))}var r=i.prototype,o=Uy(Ky(r)?r:Object.prototype),s=Function.apply.call(t,o,e);return Ky(s)?s:o}});var ng=_,rg=ot,og=g,sg=w;rg(rg.S+rg.F*a((function(){Reflect.defineProperty(ng.f({},1,{value:1}),1,{value:2})})),"Reflect",{defineProperty:function(t,e,i){og(t),e=sg(e,!0),og(i);try{return ng.f(t,e,i),!0}catch(t){return!1}}});var ag=ot,lg=Ye.f,ug=g;ag(ag.S,"Reflect",{deleteProperty:function(t,e){var i=lg(ug(t),e);return!(i&&!i.configurable)&&delete t[e]}});var hg=ot,pg=g,cg=function(t){this._t=pg(t),this._i=0;var e,i=this._k=[];for(e in t)i.push(e)};Es(cg,"Object",(function(){var t,e=this,i=e._k;do{if(e._i>=i.length)return{value:void 0,done:!0}}while(!((t=i[e._i++])in e._t));return{value:t,done:!1}})),hg(hg.S,"Reflect",{enumerate:function(t){return new cg(t)}});var fg=Ye,_g=gn,dg=s,yg=d,gg=g;ot(ot.S,"Reflect",{get:function t(e,i){var n,r,o=arguments.length<3?e:arguments[2];return gg(e)===o?e[i]:(n=fg.f(e,i))?dg(n,"value")?n.value:void 0!==n.get?n.get.call(o):void 0:yg(r=_g(e))?t(r,i,o):void 0}});var vg=Ye,mg=g;ot(ot.S,"Reflect",{getOwnPropertyDescriptor:function(t,e){return vg.f(mg(t),e)}});var bg=gn,wg=g;ot(ot.S,"Reflect",{getPrototypeOf:function(t){return bg(wg(t))}});ot(ot.S,"Reflect",{has:function(t,e){return e in t}});var xg=ot,Sg=g,Pg=Object.isExtensible;xg(xg.S,"Reflect",{isExtensible:function(t){return Sg(t),!Pg||Pg(t)}});var Vg=Ie,kg=_e,Ag=g,Cg=r.Reflect,Eg=Cg&&Cg.ownKeys||function(t){var e=Vg.f(Ag(t)),i=kg.f;return i?e.concat(i(t)):e};ot(ot.S,"Reflect",{ownKeys:Eg});var Lg=ot,Ng=g,Og=Object.preventExtensions;Lg(Lg.S,"Reflect",{preventExtensions:function(t){Ng(t);try{return Og&&Og(t),!0}catch(t){return!1}}});var Mg=_,Tg=Ye,Rg=gn,Bg=s,Dg=C,Fg=g,Ig=d;ot(ot.S,"Reflect",{set:function t(e,i,n){var r,o,s=arguments.length<4?e:arguments[3],a=Tg.f(Fg(e),i);if(!a){if(Ig(o=Rg(e)))return t(o,i,n,s);a=Dg(0)}if(Bg(a,"value")){if(!1===a.writable||!Ig(s))return!1;if(r=Tg.f(s,i)){if(r.get||r.set||!1===r.writable)return!1;r.value=n,Mg.f(s,i,r)}else Mg.f(s,i,Dg(0,n));return!0}return void 0!==a.set&&(a.set.call(s,n),!0)}});var jg=Gn;jg&&ot(ot.S,"Reflect",{setPrototypeOf:function(t,e){jg.check(t,e);try{return jg.set(t,e),!0}catch(t){return!1}}});var $g=ot,zg=ee(!0);$g($g.P,"Array",{includes:function(t){return zg(this,t,arguments.length>1?arguments[1]:void 0)}}),xu("includes");var Hg=Pe,Gg=d,Wg=Xt,Yg=K,Xg=xt("isConcatSpreadable");var Ug=function t(e,i,n,r,o,s,a,l){for(var u,h,p=o,c=0,f=!!a&&Yg(a,l,3);c<r;){if(c in n){if(u=f?f(n[c],c,i):n[c],h=!1,Gg(u)&&(h=void 0!==(h=u[Xg])?!!h:Hg(u)),h&&s>0)p=t(e,i,u,Wg(u.length),p,s-1)-1;else{if(p>=9007199254740991)throw TypeError();e[p]=u}p++}c++}return p},qg=Ug,Zg=ke,Kg=Xt,Jg=q,Qg=Ol;ot(ot.P,"Array",{flatMap:function(t){var e,i,n=Zg(this);return Jg(t),e=Kg(n.length),i=Qg(n,0),qg(i,n,n,e,0,1,t,arguments[1]),i}}),xu("flatMap");var tv=Ug,ev=ke,iv=Xt,nv=Gt,rv=Ol;ot(ot.P,"Array",{flatten:function(){var t=arguments[0],e=ev(this),i=iv(e.length),n=rv(e,0);return tv(n,e,e,i,0,void 0===t?1:nv(t)),n}}),xu("flatten");var ov=ot,sv=Ss(!0),av=a((function(){return"𠮷"!=="𠮷".at(0)}));ov(ov.P+ov.F*av,"String",{at:function(t){return sv(this,t)}});var lv=Xt,uv=lo,hv=Ft,pv=function(t,e,i,n){var r=String(hv(t)),o=r.length,s=void 0===i?" ":String(i),a=lv(e);if(a<=o||""==s)return r;var l=a-o,u=uv.call(s,Math.ceil(l/s.length));return u.length>l&&(u=u.slice(0,l)),n?u+r:r+u},cv=ot,fv=pv,_v=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(uc);cv(cv.P+cv.F*_v,"String",{padStart:function(t){return fv(this,t,arguments.length>1?arguments[1]:void 0,!0)}});var dv=ot,yv=pv,gv=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(uc);dv(dv.P+dv.F*gv,"String",{padEnd:function(t){return yv(this,t,arguments.length>1?arguments[1]:void 0,!1)}}),xr("trimLeft",(function(t){return function(){return t(this,1)}}),"trimStart"),xr("trimRight",(function(t){return function(){return t(this,2)}}),"trimEnd");var vv=ot,mv=Ft,bv=Xt,wv=Ks,xv=Gu,Sv=RegExp.prototype,Pv=function(t,e){this._r=t,this._s=e};Es(Pv,"RegExp String",(function(){var t=this._r.exec(this._s);return{value:t,done:null===t}})),vv(vv.P,"String",{matchAll:function(t){if(mv(this),!wv(t))throw TypeError(t+" is not a regexp!");var e=String(this),i="flags"in Sv?String(t.flags):xv.call(t),n=new RegExp(t.source,~i.indexOf("g")?i:"g"+i);return n.lastIndex=bv(t.lastIndex),new Pv(n,e)}}),Tt("asyncIterator"),Tt("observable");var Vv=Eg,kv=$t,Av=Ye,Cv=qa;ot(ot.S,"Object",{getOwnPropertyDescriptors:function(t){for(var e,i,n=kv(t),r=Av.f,o=Vv(n),s={},a=0;o.length>a;)void 0!==(i=r(n,e=o[a++]))&&Cv(s,e,i);return s}});var Ev=l,Lv=fe,Nv=$t,Ov=ge().f,Mv=function(t){return function(e){for(var i,n=Nv(e),r=Lv(n),o=r.length,s=0,a=[];o>s;)i=r[s++],Ev&&!Ov.call(n,i)||a.push(t?[i,n[i]]:n[i]);return a}},Tv=ot,Rv=Mv(!1);Tv(Tv.S,"Object",{values:function(t){return Rv(t)}});var Bv,Dv,Fv=ot,Iv=Mv(!0);function jv(){return Dv?Bv:(Dv=1,Bv=!a((function(){var t=Math.random();__defineSetter__.call(null,t,(function(){})),delete r[t]})))}Fv(Fv.S,"Object",{entries:function(t){return Iv(t)}});var $v=ke,zv=q,Hv=_;l&&ot(ot.P+jv(),"Object",{__defineGetter__:function(t,e){Hv.f($v(this),t,{get:zv(e),enumerable:!0,configurable:!0})}});var Gv=ke,Wv=q,Yv=_;l&&ot(ot.P+jv(),"Object",{__defineSetter__:function(t,e){Yv.f(Gv(this),t,{set:Wv(e),enumerable:!0,configurable:!0})}});var Xv=ot,Uv=ke,qv=w,Zv=gn,Kv=Ye.f;l&&Xv(Xv.P+jv(),"Object",{__lookupGetter__:function(t){var e,i=Uv(this),n=qv(t,!0);do{if(e=Kv(i,n))return e.get}while(i=Zv(i))}});var Jv=ot,Qv=ke,tm=w,em=gn,im=Ye.f;l&&Jv(Jv.P+jv(),"Object",{__lookupSetter__:function(t){var e,i=Qv(this),n=tm(t,!0);do{if(e=im(i,n))return e.set}while(i=em(i))}});var nm,rm,om=Op,sm=function(t,e){var i=[];return om(t,!1,i.push,i,e),i};function am(){if(rm)return nm;rm=1;var t=Un,e=sm;return nm=function(i){return function(){if(t(this)!=i)throw TypeError(i+"#toJSON isn't generic");return e(this)}},nm}var lm=ot;lm(lm.P+lm.R,"Map",{toJSON:am()("Map")});var um=ot;um(um.P+um.R,"Set",{toJSON:am()("Set")});var hm=ot,pm=function(t){hm(hm.S,t,{of:function(){for(var t=arguments.length,e=new Array(t);t--;)e[t]=arguments[t];return new this(e)}})};pm("Map"),pm("Set"),pm("WeakMap"),pm("WeakSet");var cm=ot,fm=q,_m=K,dm=Op,ym=function(t){cm(cm.S,t,{from:function(t){var e,i,n,r,o=arguments[1];return fm(this),(e=void 0!==o)&&fm(o),null==t?new this:(i=[],e?(n=0,r=_m(o,arguments[2],2),dm(t,!1,(function(t){i.push(r(t,n++))}))):dm(t,!1,i.push,i),new this(i))}})};ym("Map"),ym("Set"),ym("WeakMap"),ym("WeakSet");ot(ot.G,{global:r});ot(ot.S,"System",{global:r});var gm=Bt;ot(ot.S,"Error",{isError:function(t){return"Error"===gm(t)}});ot(ot.S,"Math",{clamp:function(t,e,i){return Math.min(i,Math.max(e,t))}});ot(ot.S,"Math",{DEG_PER_RAD:Math.PI/180});var vm=ot,mm=180/Math.PI;vm(vm.S,"Math",{degrees:function(t){return t*mm}});var bm=Math.scale||function(t,e,i,n,r){return 0===arguments.length||t!=t||e!=e||i!=i||n!=n||r!=r?NaN:t===1/0||t===-1/0?t:(t-e)*(r-n)/(i-e)+n},wm=ot,xm=bm,Sm=rs();wm(wm.S,"Math",{fscale:function(t,e,i,n,r){return Sm(xm(t,e,i,n,r))}});ot(ot.S,"Math",{iaddh:function(t,e,i,n){var r=t>>>0,o=i>>>0;return(e>>>0)+(n>>>0)+((r&o|(r|o)&~(r+o>>>0))>>>31)|0}});ot(ot.S,"Math",{isubh:function(t,e,i,n){var r=t>>>0,o=i>>>0;return(e>>>0)-(n>>>0)-((~r&o|(r^~o)&r-o>>>0)>>>31)|0}});ot(ot.S,"Math",{imulh:function(t,e){var i=65535,n=+t,r=+e,o=n&i,s=r&i,a=n>>16,l=r>>16,u=(a*s>>>0)+(o*s>>>16);return a*l+(u>>16)+((o*l>>>0)+(u&i)>>16)}});ot(ot.S,"Math",{RAD_PER_DEG:180/Math.PI});var Pm=ot,Vm=Math.PI/180;Pm(Pm.S,"Math",{radians:function(t){return t*Vm}});ot(ot.S,"Math",{scale:bm});ot(ot.S,"Math",{umulh:function(t,e){var i=65535,n=+t,r=+e,o=n&i,s=r&i,a=n>>>16,l=r>>>16,u=(a*s>>>0)+(o*s>>>16);return a*l+(u>>>16)+((o*l>>>0)+(u&i)>>>16)}});ot(ot.S,"Math",{signbit:function(t){return(t=+t)!=t?t:0==t?1/t==1/0:t>0}});var km=ot,Am=f,Cm=r,Em=ip,Lm=fc;km(km.P+km.R,"Promise",{finally:function(t){var e=Em(this,Am.Promise||Cm.Promise),i="function"==typeof t;return this.then(i?function(i){return Lm(e,t()).then((function(){return i}))}:t,i?function(i){return Lm(e,t()).then((function(){throw i}))}:t)}});var Nm=ic,Om=ac;ot(ot.S,"Promise",{try:function(t){var e=Nm.f(this),i=Om(t);return(i.e?e.reject:e.resolve)(i.v),e.promise}});var Mm=Nf,Tm=ot,Rm=I("metadata"),Bm=Rm.store||(Rm.store=new y_),Dm=function(t,e,i){var n=Bm.get(t);if(!n){if(!i)return;Bm.set(t,n=new Mm)}var r=n.get(e);if(!r){if(!i)return;n.set(e,r=new Mm)}return r},Fm={store:Bm,map:Dm,has:function(t,e,i){var n=Dm(e,i,!1);return void 0!==n&&n.has(t)},get:function(t,e,i){var n=Dm(e,i,!1);return void 0===n?void 0:n.get(t)},set:function(t,e,i,n){Dm(i,n,!0).set(t,e)},keys:function(t,e){var i=Dm(t,e,!1),n=[];return i&&i.forEach((function(t,e){n.push(e)})),n},key:function(t){return void 0===t||"symbol"==typeof t?t:String(t)},exp:function(t){Tm(Tm.S,"Reflect",t)}},Im=Fm,jm=g,$m=Im.key,zm=Im.set;Im.exp({defineMetadata:function(t,e,i,n){zm(t,e,jm(i),$m(n))}});var Hm=Fm,Gm=g,Wm=Hm.key,Ym=Hm.map,Xm=Hm.store;Hm.exp({deleteMetadata:function(t,e){var i=arguments.length<3?void 0:Wm(arguments[2]),n=Ym(Gm(e),i,!1);if(void 0===n||!n.delete(t))return!1;if(n.size)return!0;var r=Xm.get(e);return r.delete(i),!!r.size||Xm.delete(e)}});var Um=Fm,qm=g,Zm=gn,Km=Um.has,Jm=Um.get,Qm=Um.key,tb=function(t,e,i){if(Km(t,e,i))return Jm(t,e,i);var n=Zm(e);return null!==n?tb(t,n,i):void 0};Um.exp({getMetadata:function(t,e){return tb(t,qm(e),arguments.length<3?void 0:Qm(arguments[2]))}});var eb=Tf,ib=sm,nb=Fm,rb=g,ob=gn,sb=nb.keys,ab=nb.key,lb=function(t,e){var i=sb(t,e),n=ob(t);if(null===n)return i;var r=lb(n,e);return r.length?i.length?ib(new eb(i.concat(r))):r:i};nb.exp({getMetadataKeys:function(t){return lb(rb(t),arguments.length<2?void 0:ab(arguments[1]))}});var ub=Fm,hb=g,pb=ub.get,cb=ub.key;ub.exp({getOwnMetadata:function(t,e){return pb(t,hb(e),arguments.length<3?void 0:cb(arguments[2]))}});var fb=Fm,_b=g,db=fb.keys,yb=fb.key;fb.exp({getOwnMetadataKeys:function(t){return db(_b(t),arguments.length<2?void 0:yb(arguments[1]))}});var gb=Fm,vb=g,mb=gn,bb=gb.has,wb=gb.key,xb=function(t,e,i){if(bb(t,e,i))return!0;var n=mb(e);return null!==n&&xb(t,n,i)};gb.exp({hasMetadata:function(t,e){return xb(t,vb(e),arguments.length<3?void 0:wb(arguments[2]))}});var Sb=Fm,Pb=g,Vb=Sb.has,kb=Sb.key;Sb.exp({hasOwnMetadata:function(t,e){return Vb(t,Pb(e),arguments.length<3?void 0:kb(arguments[2]))}});var Ab=Fm,Cb=g,Eb=q,Lb=Ab.key,Nb=Ab.set;Ab.exp({metadata:function(t,e){return function(i,n){Nb(t,e,(void 0!==n?Cb:Eb)(i),Lb(n))}}});var Ob=ot,Mb=ec(),Tb=r.process,Rb="process"==Bt(Tb);Ob(Ob.G,{asap:function(t){var e=Rb&&Tb.domain;Mb(e?e.bind(t):t)}});var Bb=ot,Db=r,Fb=f,Ib=ec(),jb=xt("observable"),$b=q,zb=g,Hb=vp,Gb=_c(),Wb=E(),Yb=Op,Xb=Yb.RETURN,Ub=function(t){return null==t?void 0:$b(t)},qb=function(t){var e=t._c;e&&(t._c=void 0,e())},Zb=function(t){return void 0===t._o},Kb=function(t){Zb(t)||(t._o=void 0,qb(t))},Jb=function(t,e){zb(t),this._c=void 0,this._o=t,t=new Qb(this);try{var i=e(t),n=i;null!=i&&("function"==typeof i.unsubscribe?i=function(){n.unsubscribe()}:$b(i),this._c=i)}catch(e){return void t.error(e)}Zb(this)&&qb(this)};Jb.prototype=Gb({},{unsubscribe:function(){Kb(this)}});var Qb=function(t){this._s=t};Qb.prototype=Gb({},{next:function(t){var e=this._s;if(!Zb(e)){var i=e._o;try{var n=Ub(i.next);if(n)return n.call(i,t)}catch(t){try{Kb(e)}finally{throw t}}}},error:function(t){var e=this._s;if(Zb(e))throw t;var i=e._o;e._o=void 0;try{var n=Ub(i.error);if(!n)throw t;t=n.call(i,t)}catch(t){try{qb(e)}finally{throw t}}return qb(e),t},complete:function(t){var e=this._s;if(!Zb(e)){var i=e._o;e._o=void 0;try{var n=Ub(i.complete);t=n?n.call(i,t):void 0}catch(t){try{qb(e)}finally{throw t}}return qb(e),t}}});var tw=function(t){Hb(this,tw,"Observable","_f")._f=$b(t)};Gb(tw.prototype,{subscribe:function(t){return new Jb(t,this._f)},forEach:function(t){var e=this;return new(Fb.Promise||Db.Promise)((function(i,n){$b(t);var r=e.subscribe({next:function(e){try{return t(e)}catch(t){n(t),r.unsubscribe()}},error:n,complete:i})}))}}),Gb(tw,{from:function(t){var e="function"==typeof this?this:tw,i=Ub(zb(t)[jb]);if(i){var n=zb(i.call(t));return n.constructor===e?n:new e((function(t){return n.subscribe(t)}))}return new e((function(e){var i=!1;return Ib((function(){if(!i){try{if(Yb(t,!1,(function(t){if(e.next(t),i)return Xb}))===Xb)return}catch(t){if(i)throw t;return void e.error(t)}e.complete()}})),function(){i=!0}}))},of:function(){for(var t=0,e=arguments.length,i=new Array(e);t<e;)i[t]=arguments[t++];return new("function"==typeof this?this:tw)((function(t){var e=!1;return Ib((function(){if(!e){for(var n=0;n<i.length;++n)if(t.next(i[n]),e)return;t.complete()}})),function(){e=!0}}))}}),Wb(tw.prototype,jb,(function(){return this})),Bb(Bb.G,{Observable:tw}),Bu("Observable");var ew=r,iw=ot,nw=[].slice,rw=/MSIE .\./.test(uc),ow=function(t){return function(e,i){var n=arguments.length>2,r=!!n&&nw.call(arguments,2);return t(n?function(){("function"==typeof e?e:Function(e)).apply(this,r)}:e,i)}};iw(iw.G+iw.B+iw.F*rw,{setTimeout:ow(ew.setTimeout),setInterval:ow(ew.setInterval)});var sw=ot,aw=Up;sw(sw.G+sw.B,{setImmediate:aw.set,clearImmediate:aw.clear});for(var lw=zu,uw=fe,hw=U,pw=r,cw=E(),fw=Ps,_w=xt,dw=_w("iterator"),yw=_w("toStringTag"),gw=fw.Array,vw={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},mw=uw(vw),bw=0;bw<mw.length;bw++){var ww,xw=mw[bw],Sw=vw[xw],Pw=pw[xw],Vw=Pw&&Pw.prototype;if(Vw&&(Vw[dw]||cw(Vw,dw,gw),Vw[yw]||cw(Vw,yw,xw),fw[xw]=gw,Sw))for(ww in lw)Vw[ww]||hw(Vw,ww,lw[ww],!0)}var kw=fe,Aw=$t,Cw=Un,Ew=xt("iterator"),Lw=Ps,Nw=f.isIterable=function(t){var e=Object(t);return void 0!==e[Ew]||"@@iterator"in e||Lw.hasOwnProperty(Cw(e))},Ow=K,Mw=ot,Tw=C,Rw=Fn,Bw=De,Dw=gn,Fw=fe,Iw=_,jw=function(t,e){for(var i,n=Aw(t),r=kw(n),o=r.length,s=0;o>s;)if(n[i=r[s++]]===e)return i},$w=q,zw=Op,Hw=Nw,Gw=Es,Ww=Du,Yw=d,Xw=$t,Uw=l,qw=s,Zw=function(t){var e=1==t,i=4==t;return function(n,r,o){var s,a,l,u=Ow(r,o,3),h=Xw(n),p=e||7==t||2==t?new("function"==typeof this?this:tx):void 0;for(s in h)if(qw(h,s)&&(l=u(a=h[s],s,n),t))if(e)p[s]=l;else if(l)switch(t){case 2:p[s]=a;break;case 3:return!0;case 5:return a;case 6:return s;case 7:p[l[0]]=l[1]}else if(i)return!1;return 3==t||i?i:p}},Kw=Zw(6),Jw=function(t){return function(e){return new Qw(e,t)}},Qw=function(t,e){this._t=Xw(t),this._a=Fw(t),this._i=0,this._k=e};function tx(t){var e=Bw(null);return null!=t&&(Hw(t)?zw(t,!0,(function(t,i){e[t]=i})):Rw(e,t)),e}Gw(Qw,"Dict",(function(){var t,e=this,i=e._t,n=e._a,r=e._k;do{if(e._i>=n.length)return e._t=void 0,Ww(1)}while(!qw(i,t=n[e._i++]));return Ww(0,"keys"==r?t:"values"==r?i[t]:[t,i[t]])})),tx.prototype=null,Mw(Mw.G+Mw.F,{Dict:tx}),Mw(Mw.S,"Dict",{keys:Jw("keys"),values:Jw("values"),entries:Jw("entries"),forEach:Zw(0),map:Zw(1),filter:Zw(2),some:Zw(3),every:Zw(4),find:Zw(5),findKey:Kw,mapPairs:Zw(7),reduce:function(t,e,i){$w(e);var n,r,o=Xw(t),s=Fw(o),a=s.length,l=0;if(arguments.length<3){if(!a)throw TypeError("Reduce of empty object with no initial value");n=o[s[l++]]}else n=Object(i);for(;a>l;)qw(o,r=s[l++])&&(n=e(n,o[r],r,t));return n},keyOf:jw,includes:function(t,e){return void 0!==(e==e?jw(t,e):Kw(t,(function(t){return t!=t})))},has:qw,get:function(t,e){if(qw(t,e))return t[e]},set:function(t,e,i){return Uw&&e in Object?Iw.f(t,e,Tw(0,i)):t[e]=i,t},isDict:function(t){return Yw(t)&&Dw(t)===tx.prototype}});var ex=g,ix=Qa;f.getIterator=function(t){var e=ix(t);if("function"!=typeof e)throw TypeError(t+" is not iterable!");return ex(e.call(t))};var nx=r,rx=nx,ox=Kn,sx=q,ax=function(){for(var t=sx(this),e=arguments.length,i=new Array(e),n=0,r=rx._,o=!1;e>n;)(i[n]=arguments[n++])===r&&(o=!0);return function(){var n,s=arguments.length,a=0,l=0;if(!o&&!s)return ox(t,i,this);if(n=i.slice(),o)for(;e>a;a++)n[a]===r&&(n[a]=arguments[l++]);for(;s>l;)n.push(arguments[l++]);return ox(t,n,this)}},lx=r,ux=f,hx=ot,px=ax;hx(hx.G+hx.F,{delay:function(t){return new(ux.Promise||lx.Promise)((function(e){setTimeout(px.call(e,!0),t)}))}});var cx=nx,fx=ot;f._=cx._=cx._||{},fx(fx.P+fx.F,"Function",{part:ax});var _x=ot;_x(_x.S+_x.F,"Object",{isObject:d});var dx=ot;dx(dx.S+dx.F,"Object",{classof:Un});var yx=_,gx=Ye,vx=Eg,mx=$t,bx=function(t,e){for(var i,n=vx(mx(e)),r=n.length,o=0;r>o;)yx.f(t,i=n[o++],gx.f(e,i));return t},wx=ot,xx=bx;wx(wx.S+wx.F,"Object",{define:xx});var Sx=ot,Px=bx,Vx=De;Sx(Sx.S+Sx.F,"Object",{make:function(t,e){return Px(Vx(t),e)}}),zs(Number,"Number",(function(t){this._l=+t,this._i=0}),(function(){var t=this._i++,e=!(t<this._l);return{done:e,value:e?void 0:t}}));var kx=function(t,e){var i=e===Object(e)?function(t){return e[t]}:e;return function(e){return String(e).replace(t,i)}},Ax=ot,Cx=kx(/[\\^$*+?.()|[\]{}]/g,"\\$&");Ax(Ax.S,"RegExp",{escape:function(t){return Cx(t)}});var Ex=ot,Lx=kx(/[&<>"']/g,{"&":"&","<":"<",">":">",'"':""","'":"'"});Ex(Ex.P+Ex.F,"String",{escapeHTML:function(){return Lx(this)}});var Nx,Ox,Mx,Tx=ot,Rx=kx(/&(?:amp|lt|gt|quot|apos);/g,{"&":"&","<":"<",">":">",""":'"',"'":"'"});Tx(Tx.P+Tx.F,"String",{unescapeHTML:function(){return Rx(this)}}),function(){function t(t){if(!(0 in arguments))throw new TypeError("1 argument is required");do{if(this===t)return!0}while(t=t&&t.parentNode);return!1}if("HTMLElement"in self&&"contains"in HTMLElement.prototype)try{delete HTMLElement.prototype.contains}catch(t){}"Node"in self?Node.prototype.contains=t:document.contains=Element.prototype.contains=t}(),function(t){Document.prototype.remove=Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)},"Text"in t&&(Text.prototype.remove=Element.prototype.remove)}("object"==typeof window&&window||"object"==typeof self&&self||"object"==typeof e&&e||{}),Nx=function(){function t(t){return"function"==typeof Node?t instanceof Node:t&&"object"==typeof t&&t.nodeName&&t.nodeType>=1&&t.nodeType<=12}return function(e){if(1===e.length)return t(e[0])?e[0]:document.createTextNode(e[0]+"");for(var i=document.createDocumentFragment(),n=0;n<e.length;n++)i.appendChild(t(e[n])?e[n]:document.createTextNode(e[n]+""));return i}}(),Document.prototype.append=Element.prototype.append=function(){this.appendChild(Nx(arguments))},function(t,e){var i,n=function(){var t=!0,i=function(e,i,n,r){Object.defineProperty?Object.defineProperty(e,i,{configurable:!1===t||!!r,get:n}):e.__defineGetter__(i,n)};try{i({},"support")}catch(e){t=!1}return function(t,n){var r=this,o=[],s={},a=0,l=0,u=function(t){i(r,t,(function(){return p(),o[t]}),!1)},h=function(){if(a>=l)for(;l<a;++l)u(l)},p=function(){var e,i,r=arguments,l=/\s+/;if(r.length)for(i=0;i<r.length;++i)if(l.test(r[i]))throw(e=new SyntaxError('String "'+r[i]+'" contains an invalid character')).code=5,e.name="InvalidCharacterError",e;for(""===(o="object"==typeof t[n]?(""+t[n].baseVal).replace(/^\s+|\s+$/g,"").split(l):(""+t[n]).replace(/^\s+|\s+$/g,"").split(l))[0]&&(o=[]),s={},i=0;i<o.length;++i)s[o[i]]=!0;a=o.length,h()};return p(),i(r,"length",(function(){return p(),a})),r.toLocaleString=r.toString=function(){return p(),o.join(" ")},r.item=function(t){return p(),o[t]},r.contains=function(t){return p(),!!s[t]},r.add=function(){p.apply(r,e=arguments);for(var e,i,l=0,u=e.length;l<u;++l)s[i=e[l]]||(o.push(i),s[i]=!0);a!==o.length&&(a=o.length>>>0,"object"==typeof t[n]?t[n].baseVal=o.join(" "):t[n]=o.join(" "),h())},r.remove=function(){p.apply(r,e=arguments);for(var e,i={},l=0,u=[];l<e.length;++l)i[e[l]]=!0,delete s[e[l]];for(l=0;l<o.length;++l)i[o[l]]||u.push(o[l]);o=u,a=u.length>>>0,"object"==typeof t[n]?t[n].baseVal=o.join(" "):t[n]=o.join(" "),h()},r.toggle=function(t,i){return p.apply(r,[t]),e!==i?i?(r.add(t),!0):(r.remove(t),!1):s[t]?(r.remove(t),!1):(r.add(t),!0)},r.forEach=Array.prototype.forEach,r}}();"DOMTokenList"in(i=t)&&i.DOMTokenList&&(!document.createElementNS||!document.createElementNS("http://www.w3.org/2000/svg","svg")||document.createElementNS("http://www.w3.org/2000/svg","svg").classList instanceof DOMTokenList)||(i.DOMTokenList=n),function(){var t=document.createElement("span");"classList"in t&&(t.classList.toggle("x",!1),t.classList.contains("x")&&(t.classList.constructor.prototype.toggle=function(t){var i=arguments[1];if(i===e){var n=!this.contains(t);return this[n?"add":"remove"](t),n}return i=!!i,this[i?"add":"remove"](t),i}))}(),function(){var t=document.createElement("span");if("classList"in t&&(t.classList.add("a","b"),!t.classList.contains("b"))){var e=t.classList.constructor.prototype.add;t.classList.constructor.prototype.add=function(){for(var t=arguments,i=arguments.length,n=0;n<i;n++)e.call(this,t[n])}}}(),function(){var t=document.createElement("span");if("classList"in t&&(t.classList.add("a"),t.classList.add("b"),t.classList.remove("a","b"),t.classList.contains("b"))){var e=t.classList.constructor.prototype.remove;t.classList.constructor.prototype.remove=function(){for(var t=arguments,i=arguments.length,n=0;n<i;n++)e.call(this,t[n])}}}(),function(t){var e=!0,i=function(t,i,n,r){Object.defineProperty?Object.defineProperty(t,i,{configurable:!1===e||!!r,get:n}):t.__defineGetter__(i,n)};try{i({},"support")}catch(t){e=!1}var r=function(t,o,s){i(t.prototype,o,(function(){var t,a=this,l="__defineGetter__DEFINE_PROPERTY"+o;if(a[l])return t;if(a[l]=!0,!1===e){for(var u,h=r.mirror||document.createElement("div"),p=h.childNodes,c=p.length,f=0;f<c;++f)if(p[f]._R===a){u=p[f];break}u||(u=h.appendChild(document.createElement("div"))),t=DOMTokenList.call(u,a,s)}else t=new n(a,s);return i(a,o,(function(){return t})),delete a[l],t}),!0)};r(t.Element,"classList","className"),r(t.HTMLElement,"classList","className"),r(t.HTMLLinkElement,"relList","rel"),r(t.HTMLAnchorElement,"relList","rel"),r(t.HTMLAreaElement,"relList","rel")}(t)}("object"==typeof window&&window||"object"==typeof self&&self||"object"==typeof e&&e||{}),Mx={},function(t){function e(){this._delay=0,this._endDelay=0,this._fill="none",this._iterationStart=0,this._iterations=1,this._duration=0,this._playbackRate=1,this._direction="normal",this._easing="linear",this._easingFunction=p}function i(){return t.isDeprecated("Invalid timing inputs","2016-03-02","TypeError exceptions will be thrown instead.",!0)}function n(i,n,r){var o=new e;return n&&(o.fill="both",o.duration="auto"),"number"!=typeof i||isNaN(i)?void 0!==i&&Object.getOwnPropertyNames(i).forEach((function(e){if("auto"!=i[e]){if(("number"==typeof o[e]||"duration"==e)&&("number"!=typeof i[e]||isNaN(i[e])))return;if("fill"==e&&-1==u.indexOf(i[e]))return;if("direction"==e&&-1==h.indexOf(i[e]))return;if("playbackRate"==e&&1!==i[e]&&t.isDeprecated("AnimationEffectTiming.playbackRate","2014-11-28","Use Animation.playbackRate instead."))return;o[e]=i[e]}})):o.duration=i,o}function r(t,e,i,n){return t<0||t>1||i<0||i>1?p:function(r){function o(t,e,i){return 3*t*(1-i)*(1-i)*i+3*e*(1-i)*i*i+i*i*i}if(r<=0){var s=0;return t>0?s=e/t:!e&&i>0&&(s=n/i),s*r}if(r>=1){var a=0;return i<1?a=(n-1)/(i-1):1==i&&t<1&&(a=(e-1)/(t-1)),1+a*(r-1)}for(var l=0,u=1;l<u;){var h=(l+u)/2,p=o(t,i,h);if(Math.abs(r-p)<1e-5)return o(e,n,h);p<r?l=h:u=h}return o(e,n,h)}}function o(t,e){return function(i){if(i>=1)return 1;var n=1/t;return(i+=e*n)-i%n}}function s(t){y||(y=document.createElement("div").style),y.animationTimingFunction="",y.animationTimingFunction=t;var e=y.animationTimingFunction;if(""==e&&i())throw new TypeError(t+" is not a valid value for easing");return e}function a(t){if("linear"==t)return p;var e=v.exec(t);if(e)return r.apply(this,e.slice(1).map(Number));var i=m.exec(t);if(i)return o(Number(i[1]),_);var n=b.exec(t);return n?o(Number(n[1]),{start:c,middle:f,end:_}[n[2]]):d[t]||p}function l(t,e,i){if(null==e)return w;var n=i.delay+t+i.endDelay;return e<Math.min(i.delay,n)?x:e>=Math.min(i.delay+t,n)?S:P}var u="backwards|forwards|both|none".split("|"),h="reverse|alternate|alternate-reverse".split("|"),p=function(t){return t};e.prototype={_setMember:function(e,i){this["_"+e]=i,this._effect&&(this._effect._timingInput[e]=i,this._effect._timing=t.normalizeTimingInput(this._effect._timingInput),this._effect.activeDuration=t.calculateActiveDuration(this._effect._timing),this._effect._animation&&this._effect._animation._rebuildUnderlyingAnimation())},get playbackRate(){return this._playbackRate},set delay(t){this._setMember("delay",t)},get delay(){return this._delay},set endDelay(t){this._setMember("endDelay",t)},get endDelay(){return this._endDelay},set fill(t){this._setMember("fill",t)},get fill(){return this._fill},set iterationStart(t){if((isNaN(t)||t<0)&&i())throw new TypeError("iterationStart must be a non-negative number, received: "+t);this._setMember("iterationStart",t)},get iterationStart(){return this._iterationStart},set duration(t){if("auto"!=t&&(isNaN(t)||t<0)&&i())throw new TypeError("duration must be non-negative or auto, received: "+t);this._setMember("duration",t)},get duration(){return this._duration},set direction(t){this._setMember("direction",t)},get direction(){return this._direction},set easing(t){this._easingFunction=a(s(t)),this._setMember("easing",t)},get easing(){return this._easing},set iterations(t){if((isNaN(t)||t<0)&&i())throw new TypeError("iterations must be non-negative, received: "+t);this._setMember("iterations",t)},get iterations(){return this._iterations}};var c=1,f=.5,_=0,d={ease:r(.25,.1,.25,1),"ease-in":r(.42,0,1,1),"ease-out":r(0,0,.58,1),"ease-in-out":r(.42,0,.58,1),"step-start":o(1,c),"step-middle":o(1,f),"step-end":o(1,_)},y=null,g="\\s*(-?\\d+\\.?\\d*|-?\\.\\d+)\\s*",v=new RegExp("cubic-bezier\\("+g+","+g+","+g+","+g+"\\)"),m=/steps\(\s*(\d+)\s*\)/,b=/steps\(\s*(\d+)\s*,\s*(start|middle|end)\s*\)/,w=0,x=1,S=2,P=3;t.cloneTimingInput=function(t){if("number"==typeof t)return t;var e={};for(var i in t)e[i]=t[i];return e},t.makeTiming=n,t.numericTimingToObject=function(t){return"number"==typeof t&&(t=isNaN(t)?{duration:0}:{duration:t}),t},t.normalizeTimingInput=function(e,i){return n(e=t.numericTimingToObject(e),i)},t.calculateActiveDuration=function(t){return Math.abs(function(t){return 0===t.duration||0===t.iterations?0:t.duration*t.iterations}(t)/t.playbackRate)},t.calculateIterationProgress=function(t,e,i){var n=l(t,e,i),r=function(t,e,i,n,r){switch(n){case x:return"backwards"==e||"both"==e?0:null;case P:return i-r;case S:return"forwards"==e||"both"==e?t:null;case w:return null}}(t,i.fill,e,n,i.delay);if(null===r)return null;var o=function(t,e,i,n,r){var o=r;return 0===t?e!==x&&(o+=i):o+=n/t,o}(i.duration,n,i.iterations,r,i.iterationStart),s=function(t,e,i,n,r,o){var s=t===1/0?e%1:t%1;return 0!==s||i!==S||0===n||0===r&&0!==o||(s=1),s}(o,i.iterationStart,n,i.iterations,r,i.duration),a=function(t,e,i,n){return t===S&&e===1/0?1/0:1===i?Math.floor(n)-1:Math.floor(n)}(n,i.iterations,s,o),u=function(t,e,i){var n=t;if("normal"!==t&&"reverse"!==t){var r=e;"alternate-reverse"===t&&(r+=1),n="normal",r!==1/0&&r%2!=0&&(n="reverse")}return"normal"===n?i:1-i}(i.direction,a,s);return i._easingFunction(u)},t.calculatePhase=l,t.normalizeEasing=s,t.parseEasingFunction=a}(Ox={}),function(t){function e(t,e){return t in a&&a[t][e]||e}function i(t,i,n){if(!function(t){return"display"===t||0===t.lastIndexOf("animation",0)||0===t.lastIndexOf("transition",0)}(t)){var s=r[t];if(s)for(var a in o.style[t]=i,s){var l=s[a],u=o.style[l];n[l]=e(l,u)}else n[t]=e(t,i)}}function n(t){var e=[];for(var i in t)if(!(i in["easing","offset","composite"])){var n=t[i];Array.isArray(n)||(n=[n]);for(var r,o=n.length,s=0;s<o;s++)(r={}).offset="offset"in t?t.offset:1==o?1:s/(o-1),"easing"in t&&(r.easing=t.easing),"composite"in t&&(r.composite=t.composite),r[i]=n[s],e.push(r)}return e.sort((function(t,e){return t.offset-e.offset})),e}var r={background:["backgroundImage","backgroundPosition","backgroundSize","backgroundRepeat","backgroundAttachment","backgroundOrigin","backgroundClip","backgroundColor"],border:["borderTopColor","borderTopStyle","borderTopWidth","borderRightColor","borderRightStyle","borderRightWidth","borderBottomColor","borderBottomStyle","borderBottomWidth","borderLeftColor","borderLeftStyle","borderLeftWidth"],borderBottom:["borderBottomWidth","borderBottomStyle","borderBottomColor"],borderColor:["borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"],borderLeft:["borderLeftWidth","borderLeftStyle","borderLeftColor"],borderRadius:["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],borderRight:["borderRightWidth","borderRightStyle","borderRightColor"],borderTop:["borderTopWidth","borderTopStyle","borderTopColor"],borderWidth:["borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth"],flex:["flexGrow","flexShrink","flexBasis"],font:["fontFamily","fontSize","fontStyle","fontVariant","fontWeight","lineHeight"],margin:["marginTop","marginRight","marginBottom","marginLeft"],outline:["outlineColor","outlineStyle","outlineWidth"],padding:["paddingTop","paddingRight","paddingBottom","paddingLeft"]},o=document.createElementNS("http://www.w3.org/1999/xhtml","div"),s={thin:"1px",medium:"3px",thick:"5px"},a={borderBottomWidth:s,borderLeftWidth:s,borderRightWidth:s,borderTopWidth:s,fontSize:{"xx-small":"60%","x-small":"75%",small:"89%",medium:"100%",large:"120%","x-large":"150%","xx-large":"200%"},fontWeight:{normal:"400",bold:"700"},outlineWidth:s,textShadow:{none:"0px 0px 0px transparent"},boxShadow:{none:"0px 0px 0px 0px transparent"}};t.convertToArrayForm=n,t.normalizeKeyframes=function(e){if(null==e)return[];window.Symbol&&Symbol.iterator&&Array.prototype.from&&e[Symbol.iterator]&&(e=Array.from(e)),Array.isArray(e)||(e=n(e));for(var r=e.map((function(e){var n={};for(var r in e){var o=e[r];if("offset"==r){if(null!=o){if(o=Number(o),!isFinite(o))throw new TypeError("Keyframe offsets must be numbers.");if(o<0||o>1)throw new TypeError("Keyframe offsets must be between 0 and 1.")}}else if("composite"==r){if("add"==o||"accumulate"==o)throw{type:DOMException.NOT_SUPPORTED_ERR,name:"NotSupportedError",message:"add compositing is not supported"};if("replace"!=o)throw new TypeError("Invalid composite mode "+o+".")}else o="easing"==r?t.normalizeEasing(o):""+o;i(r,o,n)}return null==n.offset&&(n.offset=null),null==n.easing&&(n.easing="linear"),n})),o=!0,s=-1/0,a=0;a<r.length;a++){var l=r[a].offset;if(null!=l){if(l<s)throw new TypeError("Keyframes are not loosely sorted by offset. Sort or specify offsets.");s=l}else o=!1}return r=r.filter((function(t){return t.offset>=0&&t.offset<=1})),o||function(){var t=r.length;null==r[t-1].offset&&(r[t-1].offset=1),t>1&&null==r[0].offset&&(r[0].offset=0);for(var e=0,i=r[0].offset,n=1;n<t;n++){var o=r[n].offset;if(null!=o){for(var s=1;s<n-e;s++)r[e+s].offset=i+(o-i)*s/(n-e);e=n,i=o}}}(),r}}(Ox),function(t){var e={};t.isDeprecated=function(t,i,n,r){var o=r?"are":"is",s=new Date,a=new Date(i);return a.setMonth(a.getMonth()+3),!(s<a&&(t in e||console.warn("Web Animations: "+t+" "+o+" deprecated and will stop working on "+a.toDateString()+". "+n),e[t]=!0,1))},t.deprecated=function(e,i,n,r){var o=r?"are":"is";if(t.isDeprecated(e,i,n,r))throw new Error(e+" "+o+" no longer supported. "+n)}}(Ox),function(){if(document.documentElement.animate){var t=document.documentElement.animate([],0),e=!0;if(t&&(e=!1,"play|currentTime|pause|reverse|playbackRate|cancel|finish|startTime|playState".split("|").forEach((function(i){void 0===t[i]&&(e=!0)}))),!e)return}!function(t,e){e.convertEffectInput=function(i){var n=function(t){for(var e={},i=0;i<t.length;i++)for(var n in t[i])if("offset"!=n&&"easing"!=n&&"composite"!=n){var r={offset:t[i].offset,easing:t[i].easing,value:t[i][n]};e[n]=e[n]||[],e[n].push(r)}for(var o in e){var s=e[o];if(0!=s[0].offset||1!=s[s.length-1].offset)throw{type:DOMException.NOT_SUPPORTED_ERR,name:"NotSupportedError",message:"Partial keyframes are not supported"}}return e}(t.normalizeKeyframes(i)),r=function(i){var n=[];for(var r in i)for(var o=i[r],s=0;s<o.length-1;s++){var a=s,l=s+1,u=o[a].offset,h=o[l].offset,p=u,c=h;0==s&&(p=-1/0,0==h&&(l=a)),s==o.length-2&&(c=1/0,1==u&&(a=l)),n.push({applyFrom:p,applyTo:c,startOffset:o[a].offset,endOffset:o[l].offset,easingFunction:t.parseEasingFunction(o[a].easing),property:r,interpolation:e.propertyInterpolation(r,o[a].value,o[l].value)})}return n.sort((function(t,e){return t.startOffset-e.startOffset})),n}(n);return function(t,i){if(null!=i)r.filter((function(t){return i>=t.applyFrom&&i<t.applyTo})).forEach((function(n){var r=i-n.startOffset,o=n.endOffset-n.startOffset,s=0==o?0:n.easingFunction(r/o);e.apply(t,n.property,n.interpolation(s))}));else for(var o in n)"offset"!=o&&"easing"!=o&&"composite"!=o&&e.clear(t,o)}}}(Ox,Mx),function(t,e){function i(t){return t.replace(/-(.)/g,(function(t,e){return e.toUpperCase()}))}function n(t,e,i){r[i]=r[i]||[],r[i].push([t,e])}var r={};e.addPropertiesHandler=function(t,e,r){for(var o=0;o<r.length;o++)n(t,e,i(r[o]))};var o={backgroundColor:"transparent",backgroundPosition:"0% 0%",borderBottomColor:"currentColor",borderBottomLeftRadius:"0px",borderBottomRightRadius:"0px",borderBottomWidth:"3px",borderLeftColor:"currentColor",borderLeftWidth:"3px",borderRightColor:"currentColor",borderRightWidth:"3px",borderSpacing:"2px",borderTopColor:"currentColor",borderTopLeftRadius:"0px",borderTopRightRadius:"0px",borderTopWidth:"3px",bottom:"auto",clip:"rect(0px, 0px, 0px, 0px)",color:"black",fontSize:"100%",fontWeight:"400",height:"auto",left:"auto",letterSpacing:"normal",lineHeight:"120%",marginBottom:"0px",marginLeft:"0px",marginRight:"0px",marginTop:"0px",maxHeight:"none",maxWidth:"none",minHeight:"0px",minWidth:"0px",opacity:"1.0",outlineColor:"invert",outlineOffset:"0px",outlineWidth:"3px",paddingBottom:"0px",paddingLeft:"0px",paddingRight:"0px",paddingTop:"0px",right:"auto",strokeDasharray:"none",strokeDashoffset:"0px",textIndent:"0px",textShadow:"0px 0px 0px transparent",top:"auto",transform:"",verticalAlign:"0px",visibility:"visible",width:"auto",wordSpacing:"normal",zIndex:"auto"};e.propertyInterpolation=function(n,s,a){var l=n;/-/.test(n)&&!t.isDeprecated("Hyphenated property names","2016-03-22","Use camelCase instead.",!0)&&(l=i(n)),"initial"!=s&&"initial"!=a||("initial"==s&&(s=o[l]),"initial"==a&&(a=o[l]));for(var u=s==a?[]:r[l],h=0;u&&h<u.length;h++){var p=u[h][0](s),c=u[h][0](a);if(void 0!==p&&void 0!==c){var f=u[h][1](p,c);if(f){var _=e.Interpolation.apply(null,f);return function(t){return 0==t?s:1==t?a:_(t)}}}}return e.Interpolation(!1,!0,(function(t){return t?a:s}))}}(Ox,Mx),function(t,e){e.KeyframeEffect=function(i,n,r,o){var s,a=function(e){var i=t.calculateActiveDuration(e),n=function(n){return t.calculateIterationProgress(i,n,e)};return n._totalDuration=e.delay+i+e.endDelay,n}(t.normalizeTimingInput(r)),l=e.convertEffectInput(n),u=function(){l(i,s)};return u._update=function(t){return null!==(s=a(t))},u._clear=function(){l(i,null)},u._hasSameTarget=function(t){return i===t},u._target=i,u._totalDuration=a._totalDuration,u._id=o,u}}(Ox,Mx),function(t){function e(t,e,i){i.enumerable=!0,i.configurable=!0,Object.defineProperty(t,e,i)}function i(t){this._element=t,this._surrogateStyle=document.createElementNS("http://www.w3.org/1999/xhtml","div").style,this._style=t.style,this._length=0,this._isAnimatedProperty={},this._updateSvgTransformAttr=function(t,e){return!(!e.namespaceURI||-1==e.namespaceURI.indexOf("/svg"))&&(r in t||(t[r]=/Trident|MSIE|IEMobile|Edge|Android 4/i.test(t.navigator.userAgent)),t[r])}(window,t),this._savedTransformAttr=null;for(var e=0;e<this._style.length;e++){var i=this._style[e];this._surrogateStyle[i]=this._style[i]}this._updateIndices()}function n(t){if(!t._webAnimationsPatchedStyle){var n=new i(t);try{e(t,"style",{get:function(){return n}})}catch(n){t.style._set=function(e,i){t.style[e]=i},t.style._clear=function(e){t.style[e]=""}}t._webAnimationsPatchedStyle=t.style}}var r="_webAnimationsUpdateSvgTransformAttr",o={cssText:1,length:1,parentRule:1},s={getPropertyCSSValue:1,getPropertyPriority:1,getPropertyValue:1,item:1,removeProperty:1,setProperty:1},a={removeProperty:1,setProperty:1};for(var l in i.prototype={get cssText(){return this._surrogateStyle.cssText},set cssText(t){for(var e={},i=0;i<this._surrogateStyle.length;i++)e[this._surrogateStyle[i]]=!0;for(this._surrogateStyle.cssText=t,this._updateIndices(),i=0;i<this._surrogateStyle.length;i++)e[this._surrogateStyle[i]]=!0;for(var n in e)this._isAnimatedProperty[n]||this._style.setProperty(n,this._surrogateStyle.getPropertyValue(n))},get length(){return this._surrogateStyle.length},get parentRule(){return this._style.parentRule},_updateIndices:function(){for(;this._length<this._surrogateStyle.length;)Object.defineProperty(this,this._length,{configurable:!0,enumerable:!1,get:function(t){return function(){return this._surrogateStyle[t]}}(this._length)}),this._length++;for(;this._length>this._surrogateStyle.length;)this._length--,Object.defineProperty(this,this._length,{configurable:!0,enumerable:!1,value:void 0})},_set:function(e,i){this._style[e]=i,this._isAnimatedProperty[e]=!0,this._updateSvgTransformAttr&&"transform"==t.unprefixedPropertyName(e)&&(null==this._savedTransformAttr&&(this._savedTransformAttr=this._element.getAttribute("transform")),this._element.setAttribute("transform",t.transformToSvgMatrix(i)))},_clear:function(e){this._style[e]=this._surrogateStyle[e],this._updateSvgTransformAttr&&"transform"==t.unprefixedPropertyName(e)&&(this._savedTransformAttr?this._element.setAttribute("transform",this._savedTransformAttr):this._element.removeAttribute("transform"),this._savedTransformAttr=null),delete this._isAnimatedProperty[e]}},s)i.prototype[l]=function(t,e){return function(){var i=this._surrogateStyle[t].apply(this._surrogateStyle,arguments);return e&&(this._isAnimatedProperty[arguments[0]]||this._style[t].apply(this._style,arguments),this._updateIndices()),i}}(l,l in a);for(var u in document.documentElement.style)u in o||u in s||function(t){e(i.prototype,t,{get:function(){return this._surrogateStyle[t]},set:function(e){this._surrogateStyle[t]=e,this._updateIndices(),this._isAnimatedProperty[t]||(this._style[t]=e)}})}(u);t.apply=function(e,i,r){n(e),e.style._set(t.propertyName(i),r)},t.clear=function(e,i){e._webAnimationsPatchedStyle&&e.style._clear(t.propertyName(i))}}(Mx),function(t){window.Element.prototype.animate=function(e,i){var n="";return i&&i.id&&(n=i.id),t.timeline._play(t.KeyframeEffect(this,e,i,n))}}(Mx),function(t){function e(t,i,n){if("number"==typeof t&&"number"==typeof i)return t*(1-n)+i*n;if("boolean"==typeof t&&"boolean"==typeof i)return n<.5?t:i;if(t.length==i.length){for(var r=[],o=0;o<t.length;o++)r.push(e(t[o],i[o],n));return r}throw"Mismatched interpolation arguments "+t+":"+i}t.Interpolation=function(t,i,n){return function(r){return n(e(t,i,r))}}}(Mx),function(t){var e=function(){function t(t,e){for(var i=[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]],n=0;n<4;n++)for(var r=0;r<4;r++)for(var o=0;o<4;o++)i[n][r]+=e[n][o]*t[o][r];return i}return function(e,i,n,r,o){for(var s=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]],a=0;a<4;a++)s[a][3]=o[a];for(a=0;a<3;a++)for(var l=0;l<3;l++)s[3][a]+=e[l]*s[l][a];var u=r[0],h=r[1],p=r[2],c=r[3],f=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]];f[0][0]=1-2*(h*h+p*p),f[0][1]=2*(u*h-p*c),f[0][2]=2*(u*p+h*c),f[1][0]=2*(u*h+p*c),f[1][1]=1-2*(u*u+p*p),f[1][2]=2*(h*p-u*c),f[2][0]=2*(u*p-h*c),f[2][1]=2*(h*p+u*c),f[2][2]=1-2*(u*u+h*h),s=t(s,f);var _=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]];for(n[2]&&(_[2][1]=n[2],s=t(s,_)),n[1]&&(_[2][1]=0,_[2][0]=n[0],s=t(s,_)),n[0]&&(_[2][0]=0,_[1][0]=n[0],s=t(s,_)),a=0;a<3;a++)for(l=0;l<3;l++)s[a][l]*=i[a];return function(t){return 0==t[0][2]&&0==t[0][3]&&0==t[1][2]&&0==t[1][3]&&0==t[2][0]&&0==t[2][1]&&1==t[2][2]&&0==t[2][3]&&0==t[3][2]&&1==t[3][3]}(s)?[s[0][0],s[0][1],s[1][0],s[1][1],s[3][0],s[3][1]]:s[0].concat(s[1],s[2],s[3])}}();t.composeMatrix=e,t.quat=function(e,i,n){var r=t.dot(e,i);r=function(t,e,i){return Math.max(Math.min(t,i),e)}(r,-1,1);var o=[];if(1===r)o=e;else for(var s=Math.acos(r),a=1*Math.sin(n*s)/Math.sqrt(1-r*r),l=0;l<4;l++)o.push(e[l]*(Math.cos(n*s)-r*a)+i[l]*a);return o}}(Mx),function(t,e){t.sequenceNumber=0;var i=function(t,e,i){this.target=t,this.currentTime=e,this.timelineTime=i,this.type="finish",this.bubbles=!1,this.cancelable=!1,this.currentTarget=t,this.defaultPrevented=!1,this.eventPhase=Event.AT_TARGET,this.timeStamp=Date.now()};e.Animation=function(e){this.id="",e&&e._id&&(this.id=e._id),this._sequenceNumber=t.sequenceNumber++,this._currentTime=0,this._startTime=null,this._paused=!1,this._playbackRate=1,this._inTimeline=!0,this._finishedFlag=!0,this.onfinish=null,this._finishHandlers=[],this._effect=e,this._inEffect=this._effect._update(0),this._idle=!0,this._currentTimePending=!1},e.Animation.prototype={_ensureAlive:function(){this.playbackRate<0&&0===this.currentTime?this._inEffect=this._effect._update(-1):this._inEffect=this._effect._update(this.currentTime),this._inTimeline||!this._inEffect&&this._finishedFlag||(this._inTimeline=!0,e.timeline._animations.push(this))},_tickCurrentTime:function(t,e){t!=this._currentTime&&(this._currentTime=t,this._isFinished&&!e&&(this._currentTime=this._playbackRate>0?this._totalDuration:0),this._ensureAlive())},get currentTime(){return this._idle||this._currentTimePending?null:this._currentTime},set currentTime(t){t=+t,isNaN(t)||(e.restart(),this._paused||null==this._startTime||(this._startTime=this._timeline.currentTime-t/this._playbackRate),this._currentTimePending=!1,this._currentTime!=t&&(this._idle&&(this._idle=!1,this._paused=!0),this._tickCurrentTime(t,!0),e.applyDirtiedAnimation(this)))},get startTime(){return this._startTime},set startTime(t){t=+t,isNaN(t)||this._paused||this._idle||(this._startTime=t,this._tickCurrentTime((this._timeline.currentTime-this._startTime)*this.playbackRate),e.applyDirtiedAnimation(this))},get playbackRate(){return this._playbackRate},set playbackRate(t){if(t!=this._playbackRate){var i=this.currentTime;this._playbackRate=t,this._startTime=null,"paused"!=this.playState&&"idle"!=this.playState&&(this._finishedFlag=!1,this._idle=!1,this._ensureAlive(),e.applyDirtiedAnimation(this)),null!=i&&(this.currentTime=i)}},get _isFinished(){return!this._idle&&(this._playbackRate>0&&this._currentTime>=this._totalDuration||this._playbackRate<0&&this._currentTime<=0)},get _totalDuration(){return this._effect._totalDuration},get playState(){return this._idle?"idle":null==this._startTime&&!this._paused&&0!=this.playbackRate||this._currentTimePending?"pending":this._paused?"paused":this._isFinished?"finished":"running"},_rewind:function(){if(this._playbackRate>=0)this._currentTime=0;else{if(!(this._totalDuration<1/0))throw new DOMException("Unable to rewind negative playback rate animation with infinite duration","InvalidStateError");this._currentTime=this._totalDuration}},play:function(){this._paused=!1,(this._isFinished||this._idle)&&(this._rewind(),this._startTime=null),this._finishedFlag=!1,this._idle=!1,this._ensureAlive(),e.applyDirtiedAnimation(this)},pause:function(){this._isFinished||this._paused||this._idle?this._idle&&(this._rewind(),this._idle=!1):this._currentTimePending=!0,this._startTime=null,this._paused=!0},finish:function(){this._idle||(this.currentTime=this._playbackRate>0?this._totalDuration:0,this._startTime=this._totalDuration-this.currentTime,this._currentTimePending=!1,e.applyDirtiedAnimation(this))},cancel:function(){this._inEffect&&(this._inEffect=!1,this._idle=!0,this._paused=!1,this._finishedFlag=!0,this._currentTime=0,this._startTime=null,this._effect._update(null),e.applyDirtiedAnimation(this))},reverse:function(){this.playbackRate*=-1,this.play()},addEventListener:function(t,e){"function"==typeof e&&"finish"==t&&this._finishHandlers.push(e)},removeEventListener:function(t,e){if("finish"==t){var i=this._finishHandlers.indexOf(e);i>=0&&this._finishHandlers.splice(i,1)}},_fireEvents:function(t){if(this._isFinished){if(!this._finishedFlag){var e=new i(this,this._currentTime,t),n=this._finishHandlers.concat(this.onfinish?[this.onfinish]:[]);setTimeout((function(){n.forEach((function(t){t.call(e.target,e)}))}),0),this._finishedFlag=!0}}else this._finishedFlag=!1},_tick:function(t,e){this._idle||this._paused||(null==this._startTime?e&&(this.startTime=t-this._currentTime/this.playbackRate):this._isFinished||this._tickCurrentTime((t-this._startTime)*this.playbackRate)),e&&(this._currentTimePending=!1,this._fireEvents(t))},get _needsTick(){return this.playState in{pending:1,running:1}||!this._finishedFlag},_targetAnimations:function(){var t=this._effect._target;return t._activeAnimations||(t._activeAnimations=[]),t._activeAnimations},_markTarget:function(){var t=this._targetAnimations();-1===t.indexOf(this)&&t.push(this)},_unmarkTarget:function(){var t=this._targetAnimations(),e=t.indexOf(this);-1!==e&&t.splice(e,1)}}}(Ox,Mx),function(t,e){function i(t){var e=l;l=[],t<_.currentTime&&(t=_.currentTime),_._animations.sort(n),_._animations=s(t,!0,_._animations)[0],e.forEach((function(e){e[1](t)})),o()}function n(t,e){return t._sequenceNumber-e._sequenceNumber}function r(){this._animations=[],this.currentTime=window.performance&&performance.now?performance.now():0}function o(){c.forEach((function(t){t()})),c.length=0}function s(t,i,n){f=!0,p=!1,e.timeline.currentTime=t,h=!1;var r=[],o=[],s=[],a=[];return n.forEach((function(e){e._tick(t,i),e._inEffect?(o.push(e._effect),e._markTarget()):(r.push(e._effect),e._unmarkTarget()),e._needsTick&&(h=!0);var n=e._inEffect||e._needsTick;e._inTimeline=n,n?s.push(e):a.push(e)})),c.push.apply(c,r),c.push.apply(c,o),h&&requestAnimationFrame((function(){})),f=!1,[s,a]}var a=window.requestAnimationFrame,l=[],u=0;window.requestAnimationFrame=function(t){var e=u++;return 0==l.length&&a(i),l.push([e,t]),e},window.cancelAnimationFrame=function(t){l.forEach((function(e){e[0]==t&&(e[1]=function(){})}))},r.prototype={_play:function(i){i._timing=t.normalizeTimingInput(i.timing);var n=new e.Animation(i);return n._idle=!1,n._timeline=this,this._animations.push(n),e.restart(),e.applyDirtiedAnimation(n),n}};var h=!1,p=!1;e.restart=function(){return h||(h=!0,requestAnimationFrame((function(){})),p=!0),p},e.applyDirtiedAnimation=function(t){if(!f){t._markTarget();var i=t._targetAnimations();i.sort(n),s(e.timeline.currentTime,!1,i.slice())[1].forEach((function(t){var e=_._animations.indexOf(t);-1!==e&&_._animations.splice(e,1)})),o()}};var c=[],f=!1,_=new r;e.timeline=_}(Ox,Mx),function(t){function e(t,e){for(var i=0,n=0;n<t.length;n++)i+=t[n]*e[n];return i}function i(t,e){return[t[0]*e[0]+t[4]*e[1]+t[8]*e[2]+t[12]*e[3],t[1]*e[0]+t[5]*e[1]+t[9]*e[2]+t[13]*e[3],t[2]*e[0]+t[6]*e[1]+t[10]*e[2]+t[14]*e[3],t[3]*e[0]+t[7]*e[1]+t[11]*e[2]+t[15]*e[3],t[0]*e[4]+t[4]*e[5]+t[8]*e[6]+t[12]*e[7],t[1]*e[4]+t[5]*e[5]+t[9]*e[6]+t[13]*e[7],t[2]*e[4]+t[6]*e[5]+t[10]*e[6]+t[14]*e[7],t[3]*e[4]+t[7]*e[5]+t[11]*e[6]+t[15]*e[7],t[0]*e[8]+t[4]*e[9]+t[8]*e[10]+t[12]*e[11],t[1]*e[8]+t[5]*e[9]+t[9]*e[10]+t[13]*e[11],t[2]*e[8]+t[6]*e[9]+t[10]*e[10]+t[14]*e[11],t[3]*e[8]+t[7]*e[9]+t[11]*e[10]+t[15]*e[11],t[0]*e[12]+t[4]*e[13]+t[8]*e[14]+t[12]*e[15],t[1]*e[12]+t[5]*e[13]+t[9]*e[14]+t[13]*e[15],t[2]*e[12]+t[6]*e[13]+t[10]*e[14]+t[14]*e[15],t[3]*e[12]+t[7]*e[13]+t[11]*e[14]+t[15]*e[15]]}function n(t){var e=t.rad||0;return((t.deg||0)/360+(t.grad||0)/400+(t.turn||0))*(2*Math.PI)+e}function r(t){switch(t.t){case"rotatex":var e=n(t.d[0]);return[1,0,0,0,0,Math.cos(e),Math.sin(e),0,0,-Math.sin(e),Math.cos(e),0,0,0,0,1];case"rotatey":return e=n(t.d[0]),[Math.cos(e),0,-Math.sin(e),0,0,1,0,0,Math.sin(e),0,Math.cos(e),0,0,0,0,1];case"rotate":case"rotatez":return e=n(t.d[0]),[Math.cos(e),Math.sin(e),0,0,-Math.sin(e),Math.cos(e),0,0,0,0,1,0,0,0,0,1];case"rotate3d":var i=t.d[0],r=t.d[1],o=t.d[2],s=(e=n(t.d[3]),i*i+r*r+o*o);if(0===s)i=1,r=0,o=0;else if(1!==s){var a=Math.sqrt(s);i/=a,r/=a,o/=a}var l=Math.sin(e/2),u=l*Math.cos(e/2),h=l*l;return[1-2*(r*r+o*o)*h,2*(i*r*h+o*u),2*(i*o*h-r*u),0,2*(i*r*h-o*u),1-2*(i*i+o*o)*h,2*(r*o*h+i*u),0,2*(i*o*h+r*u),2*(r*o*h-i*u),1-2*(i*i+r*r)*h,0,0,0,0,1];case"scale":return[t.d[0],0,0,0,0,t.d[1],0,0,0,0,1,0,0,0,0,1];case"scalex":return[t.d[0],0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];case"scaley":return[1,0,0,0,0,t.d[0],0,0,0,0,1,0,0,0,0,1];case"scalez":return[1,0,0,0,0,1,0,0,0,0,t.d[0],0,0,0,0,1];case"scale3d":return[t.d[0],0,0,0,0,t.d[1],0,0,0,0,t.d[2],0,0,0,0,1];case"skew":var p=n(t.d[0]),c=n(t.d[1]);return[1,Math.tan(c),0,0,Math.tan(p),1,0,0,0,0,1,0,0,0,0,1];case"skewx":return e=n(t.d[0]),[1,0,0,0,Math.tan(e),1,0,0,0,0,1,0,0,0,0,1];case"skewy":return e=n(t.d[0]),[1,Math.tan(e),0,0,0,1,0,0,0,0,1,0,0,0,0,1];case"translate":return[1,0,0,0,0,1,0,0,0,0,1,0,i=t.d[0].px||0,r=t.d[1].px||0,0,1];case"translatex":return[1,0,0,0,0,1,0,0,0,0,1,0,i=t.d[0].px||0,0,0,1];case"translatey":return[1,0,0,0,0,1,0,0,0,0,1,0,0,r=t.d[0].px||0,0,1];case"translatez":return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,o=t.d[0].px||0,1];case"translate3d":return[1,0,0,0,0,1,0,0,0,0,1,0,i=t.d[0].px||0,r=t.d[1].px||0,o=t.d[2].px||0,1];case"perspective":return[1,0,0,0,0,1,0,0,0,0,1,t.d[0].px?-1/t.d[0].px:0,0,0,0,1];case"matrix":return[t.d[0],t.d[1],0,0,t.d[2],t.d[3],0,0,0,0,1,0,t.d[4],t.d[5],0,1];case"matrix3d":return t.d}}function o(t){return 0===t.length?[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]:t.map(r).reduce(i)}var s=function(){function t(t){return t[0][0]*t[1][1]*t[2][2]+t[1][0]*t[2][1]*t[0][2]+t[2][0]*t[0][1]*t[1][2]-t[0][2]*t[1][1]*t[2][0]-t[1][2]*t[2][1]*t[0][0]-t[2][2]*t[0][1]*t[1][0]}function i(t){var e=n(t);return[t[0]/e,t[1]/e,t[2]/e]}function n(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1]+t[2]*t[2])}function r(t,e,i,n){return[i*t[0]+n*e[0],i*t[1]+n*e[1],i*t[2]+n*e[2]]}return function(o){var s=[o.slice(0,4),o.slice(4,8),o.slice(8,12),o.slice(12,16)];if(1!==s[3][3])return null;for(var a=[],l=0;l<4;l++)a.push(s[l].slice());for(l=0;l<3;l++)a[l][3]=0;if(0===t(a))return null;var u,h=[];s[0][3]||s[1][3]||s[2][3]?(h.push(s[0][3]),h.push(s[1][3]),h.push(s[2][3]),h.push(s[3][3]),u=function(t,e){for(var i=[],n=0;n<4;n++){for(var r=0,o=0;o<4;o++)r+=t[o]*e[o][n];i.push(r)}return i}(h,function(t){return[[t[0][0],t[1][0],t[2][0],t[3][0]],[t[0][1],t[1][1],t[2][1],t[3][1]],[t[0][2],t[1][2],t[2][2],t[3][2]],[t[0][3],t[1][3],t[2][3],t[3][3]]]}(function(e){for(var i=1/t(e),n=e[0][0],r=e[0][1],o=e[0][2],s=e[1][0],a=e[1][1],l=e[1][2],u=e[2][0],h=e[2][1],p=e[2][2],c=[[(a*p-l*h)*i,(o*h-r*p)*i,(r*l-o*a)*i,0],[(l*u-s*p)*i,(n*p-o*u)*i,(o*s-n*l)*i,0],[(s*h-a*u)*i,(u*r-n*h)*i,(n*a-r*s)*i,0]],f=[],_=0;_<3;_++){for(var d=0,y=0;y<3;y++)d+=e[3][y]*c[y][_];f.push(d)}return f.push(1),c.push(f),c}(a)))):u=[0,0,0,1];var p=s[3].slice(0,3),c=[];c.push(s[0].slice(0,3));var f=[];f.push(n(c[0])),c[0]=i(c[0]);var _=[];c.push(s[1].slice(0,3)),_.push(e(c[0],c[1])),c[1]=r(c[1],c[0],1,-_[0]),f.push(n(c[1])),c[1]=i(c[1]),_[0]/=f[1],c.push(s[2].slice(0,3)),_.push(e(c[0],c[2])),c[2]=r(c[2],c[0],1,-_[1]),_.push(e(c[1],c[2])),c[2]=r(c[2],c[1],1,-_[2]),f.push(n(c[2])),c[2]=i(c[2]),_[1]/=f[2],_[2]/=f[2];var d=function(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}(c[1],c[2]);if(e(c[0],d)<0)for(l=0;l<3;l++)f[l]*=-1,c[l][0]*=-1,c[l][1]*=-1,c[l][2]*=-1;var y,g,v=c[0][0]+c[1][1]+c[2][2]+1;return v>1e-4?(y=.5/Math.sqrt(v),g=[(c[2][1]-c[1][2])*y,(c[0][2]-c[2][0])*y,(c[1][0]-c[0][1])*y,.25/y]):c[0][0]>c[1][1]&&c[0][0]>c[2][2]?g=[.25*(y=2*Math.sqrt(1+c[0][0]-c[1][1]-c[2][2])),(c[0][1]+c[1][0])/y,(c[0][2]+c[2][0])/y,(c[2][1]-c[1][2])/y]:c[1][1]>c[2][2]?(y=2*Math.sqrt(1+c[1][1]-c[0][0]-c[2][2]),g=[(c[0][1]+c[1][0])/y,.25*y,(c[1][2]+c[2][1])/y,(c[0][2]-c[2][0])/y]):(y=2*Math.sqrt(1+c[2][2]-c[0][0]-c[1][1]),g=[(c[0][2]+c[2][0])/y,(c[1][2]+c[2][1])/y,.25*y,(c[1][0]-c[0][1])/y]),[p,f,_,g,u]}}();t.dot=e,t.makeMatrixDecomposition=function(t){return[s(o(t))]},t.transformListToMatrix=o}(Mx),function(t){function e(t,e){var i=t.exec(e);if(i)return[i=t.ignoreCase?i[0].toLowerCase():i[0],e.substr(i.length)]}function i(t,e){var i=t(e=e.replace(/^\s*/,""));if(i)return[i[0],i[1].replace(/^\s*/,"")]}function n(t,e,i,n,r){for(var o=[],s=[],a=[],l=function(t,e){for(var i=t,n=e;i&&n;)i>n?i%=n:n%=i;return t*e/(i+n)}(n.length,r.length),u=0;u<l;u++){var h=e(n[u%n.length],r[u%r.length]);if(!h)return;o.push(h[0]),s.push(h[1]),a.push(h[2])}return[o,s,function(e){var n=e.map((function(t,e){return a[e](t)})).join(i);return t?t(n):n}]}t.consumeToken=e,t.consumeTrimmed=i,t.consumeRepeated=function(t,n,r){t=i.bind(null,t);for(var o=[];;){var s=t(r);if(!s)return[o,r];if(o.push(s[0]),!(s=e(n,r=s[1]))||""==s[1])return[o,r];r=s[1]}},t.consumeParenthesised=function(t,e){for(var i=0,n=0;n<e.length&&(!/\s|,/.test(e[n])||0!=i);n++)if("("==e[n])i++;else if(")"==e[n]&&(0==--i&&n++,i<=0))break;var r=t(e.substr(0,n));return null==r?void 0:[r,e.substr(n)]},t.ignore=function(t){return function(e){var i=t(e);return i&&(i[0]=void 0),i}},t.optional=function(t,e){return function(i){return t(i)||[e,i]}},t.consumeList=function(e,i){for(var n=[],r=0;r<e.length;r++){var o=t.consumeTrimmed(e[r],i);if(!o||""==o[0])return;void 0!==o[0]&&n.push(o[0]),i=o[1]}if(""==i)return n},t.mergeNestedRepeated=n.bind(null,null),t.mergeWrappedNestedRepeated=n,t.mergeList=function(t,e,i){for(var n=[],r=[],o=[],s=0,a=0;a<i.length;a++)if("function"==typeof i[a]){var l=i[a](t[s],e[s++]);n.push(l[0]),r.push(l[1]),o.push(l[2])}else!function(t){n.push(!1),r.push(!1),o.push((function(){return i[t]}))}(a);return[n,r,function(t){for(var e="",i=0;i<t.length;i++)e+=o[i](t[i]);return e}]}}(Mx),function(t){function e(e){var i={inset:!1,lengths:[],color:null},n=t.consumeRepeated((function(e){var n=t.consumeToken(/^inset/i,e);return n?(i.inset=!0,n):(n=t.consumeLengthOrPercent(e))?(i.lengths.push(n[0]),n):(n=t.consumeColor(e))?(i.color=n[0],n):void 0}),/^/,e);if(n&&n[0].length)return[i,n[1]]}var i=function(e,i,n,r){function o(t){return{inset:t,color:[0,0,0,0],lengths:[{px:0},{px:0},{px:0},{px:0}]}}for(var s=[],a=[],l=0;l<n.length||l<r.length;l++){var u=n[l]||o(r[l].inset),h=r[l]||o(n[l].inset);s.push(u),a.push(h)}return t.mergeNestedRepeated(e,i,s,a)}.bind(null,(function(e,i){for(;e.lengths.length<Math.max(e.lengths.length,i.lengths.length);)e.lengths.push({px:0});for(;i.lengths.length<Math.max(e.lengths.length,i.lengths.length);)i.lengths.push({px:0});if(e.inset==i.inset&&!!e.color==!!i.color){for(var n,r=[],o=[[],0],s=[[],0],a=0;a<e.lengths.length;a++){var l=t.mergeDimensions(e.lengths[a],i.lengths[a],2==a);o[0].push(l[0]),s[0].push(l[1]),r.push(l[2])}if(e.color&&i.color){var u=t.mergeColors(e.color,i.color);o[1]=u[0],s[1]=u[1],n=u[2]}return[o,s,function(t){for(var i=e.inset?"inset ":" ",o=0;o<r.length;o++)i+=r[o](t[0][o])+" ";return n&&(i+=n(t[1])),i}]}}),", ");t.addPropertiesHandler((function(i){var n=t.consumeRepeated(e,/^,/,i);if(n&&""==n[1])return n[0]}),i,["box-shadow","text-shadow"])}(Mx),function(t){function e(t){return t.toFixed(3).replace(/0+$/,"").replace(/\.$/,"")}function i(t,e,i){return Math.min(e,Math.max(t,i))}function n(t){if(/^\s*[-+]?(\d*\.)?\d+\s*$/.test(t))return Number(t)}function r(t,n){return function(r,o){return[r,o,function(r){return e(i(t,n,r))}]}}function o(t){var e=t.trim().split(/\s*[\s,]\s*/);if(0!==e.length){for(var i=[],r=0;r<e.length;r++){var o=n(e[r]);if(void 0===o)return;i.push(o)}return i}}t.clamp=i,t.addPropertiesHandler(o,(function(t,i){if(t.length==i.length)return[t,i,function(t){return t.map(e).join(" ")}]}),["stroke-dasharray"]),t.addPropertiesHandler(n,r(0,1/0),["border-image-width","line-height"]),t.addPropertiesHandler(n,r(0,1),["opacity","shape-image-threshold"]),t.addPropertiesHandler(n,(function(t,e){if(0!=t)return r(0,1/0)(t,e)}),["flex-grow","flex-shrink"]),t.addPropertiesHandler(n,(function(t,e){return[t,e,function(t){return Math.round(i(1,1/0,t))}]}),["orphans","widows"]),t.addPropertiesHandler(n,(function(t,e){return[t,e,Math.round]}),["z-index"]),t.parseNumber=n,t.parseNumberList=o,t.mergeNumbers=function(t,i){return[t,i,e]},t.numberToString=e}(Mx),function(t){t.addPropertiesHandler(String,(function(t,e){if("visible"==t||"visible"==e)return[0,1,function(i){return i<=0?t:i>=1?e:"visible"}]}),["visibility"])}(Mx),function(t){function e(t){t=t.trim(),r.fillStyle="#000",r.fillStyle=t;var e=r.fillStyle;if(r.fillStyle="#fff",r.fillStyle=t,e==r.fillStyle){r.fillRect(0,0,1,1);var i=r.getImageData(0,0,1,1).data;r.clearRect(0,0,1,1);var n=i[3]/255;return[i[0]*n,i[1]*n,i[2]*n,n]}}function i(e,i){return[e,i,function(e){if(e[3])for(var i=0;i<3;i++)e[i]=Math.round(function(t){return Math.max(0,Math.min(255,t))}(e[i]/e[3]));return e[3]=t.numberToString(t.clamp(0,1,e[3])),"rgba("+e.join(",")+")"}]}var n=document.createElementNS("http://www.w3.org/1999/xhtml","canvas");n.width=n.height=1;var r=n.getContext("2d");t.addPropertiesHandler(e,i,["background-color","border-bottom-color","border-left-color","border-right-color","border-top-color","color","fill","flood-color","lighting-color","outline-color","stop-color","stroke","text-decoration-color"]),t.consumeColor=t.consumeParenthesised.bind(null,e),t.mergeColors=i}(Mx),function(t){function e(t){function e(){var e=s.exec(t);o=e?e[0]:void 0}function i(){if("("!==o)return function(){var t=Number(o);return e(),t}();e();var t=r();return")"!==o?NaN:(e(),t)}function n(){for(var t=i();"*"===o||"/"===o;){var n=o;e();var r=i();"*"===n?t*=r:t/=r}return t}function r(){for(var t=n();"+"===o||"-"===o;){var i=o;e();var r=n();"+"===i?t+=r:t-=r}return t}var o,s=/([\+\-\w\.]+|[\(\)\*\/])/g;return e(),r()}function i(t,i){if("0"==(i=i.trim().toLowerCase())&&"px".search(t)>=0)return{px:0};if(/^[^(]*$|^calc/.test(i)){i=i.replace(/calc\(/g,"(");var n={};i=i.replace(t,(function(t){return n[t]=null,"U"+t}));for(var r="U("+t.source+")",o=i.replace(/[-+]?(\d*\.)?\d+([Ee][-+]?\d+)?/g,"N").replace(new RegExp("N"+r,"g"),"D").replace(/\s[+-]\s/g,"O").replace(/\s/g,""),s=[/N\*(D)/g,/(N|D)[*\/]N/g,/(N|D)O\1/g,/\((N|D)\)/g],a=0;a<s.length;)s[a].test(o)?(o=o.replace(s[a],"$1"),a=0):a++;if("D"==o){for(var l in n){var u=e(i.replace(new RegExp("U"+l,"g"),"").replace(new RegExp(r,"g"),"*0"));if(!isFinite(u))return;n[l]=u}return n}}}function n(t,e){return r(t,e,!0)}function r(e,i,n){var r,o=[];for(r in e)o.push(r);for(r in i)o.indexOf(r)<0&&o.push(r);return e=o.map((function(t){return e[t]||0})),i=o.map((function(t){return i[t]||0})),[e,i,function(e){var i=e.map((function(i,r){return 1==e.length&&n&&(i=Math.max(i,0)),t.numberToString(i)+o[r]})).join(" + ");return e.length>1?"calc("+i+")":i}]}var o="px|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc",s=i.bind(null,new RegExp(o,"g")),a=i.bind(null,new RegExp(o+"|%","g")),l=i.bind(null,/deg|rad|grad|turn/g);t.parseLength=s,t.parseLengthOrPercent=a,t.consumeLengthOrPercent=t.consumeParenthesised.bind(null,a),t.parseAngle=l,t.mergeDimensions=r;var u=t.consumeParenthesised.bind(null,s),h=t.consumeRepeated.bind(void 0,u,/^/),p=t.consumeRepeated.bind(void 0,h,/^,/);t.consumeSizePairList=p;var c=t.mergeNestedRepeated.bind(void 0,n," "),f=t.mergeNestedRepeated.bind(void 0,c,",");t.mergeNonNegativeSizePair=c,t.addPropertiesHandler((function(t){var e=p(t);if(e&&""==e[1])return e[0]}),f,["background-size"]),t.addPropertiesHandler(a,n,["border-bottom-width","border-image-width","border-left-width","border-right-width","border-top-width","flex-basis","font-size","height","line-height","max-height","max-width","outline-width","width"]),t.addPropertiesHandler(a,r,["border-bottom-left-radius","border-bottom-right-radius","border-top-left-radius","border-top-right-radius","bottom","left","letter-spacing","margin-bottom","margin-left","margin-right","margin-top","min-height","min-width","outline-offset","padding-bottom","padding-left","padding-right","padding-top","perspective","right","shape-margin","stroke-dashoffset","text-indent","top","vertical-align","word-spacing"])}(Mx),function(t){function e(e){return t.consumeLengthOrPercent(e)||t.consumeToken(/^auto/,e)}function i(i){var n=t.consumeList([t.ignore(t.consumeToken.bind(null,/^rect/)),t.ignore(t.consumeToken.bind(null,/^\(/)),t.consumeRepeated.bind(null,e,/^,/),t.ignore(t.consumeToken.bind(null,/^\)/))],i);if(n&&4==n[0].length)return n[0]}var n=t.mergeWrappedNestedRepeated.bind(null,(function(t){return"rect("+t+")"}),(function(e,i){return"auto"==e||"auto"==i?[!0,!1,function(n){var r=n?e:i;if("auto"==r)return"auto";var o=t.mergeDimensions(r,r);return o[2](o[0])}]:t.mergeDimensions(e,i)}),", ");t.parseBox=i,t.mergeBoxes=n,t.addPropertiesHandler(i,n,["clip"])}(Mx),function(t){function e(t){return function(e){var i=0;return t.map((function(t){return t===l?e[i++]:t}))}}function i(t){return t}function n(e){if("none"==(e=e.toLowerCase().trim()))return[];for(var i,n=/\s*(\w+)\(([^)]*)\)/g,r=[],o=0;i=n.exec(e);){if(i.index!=o)return;o=i.index+i[0].length;var s=i[1],a=p[s];if(!a)return;var l=i[2].split(","),c=a[0];if(c.length<l.length)return;for(var f=[],_=0;_<c.length;_++){var d,y=l[_],g=c[_];if(void 0===(d=y?{A:function(e){return"0"==e.trim()?h:t.parseAngle(e)},N:t.parseNumber,T:t.parseLengthOrPercent,L:t.parseLength}[g.toUpperCase()](y):{a:h,n:f[0],t:u}[g]))return;f.push(d)}if(r.push({t:s,d:f}),n.lastIndex==e.length)return r}}function r(t){return t.toFixed(6).replace(".000000","")}function o(e,i){if(e.decompositionPair!==i){e.decompositionPair=i;var n=t.makeMatrixDecomposition(e)}if(i.decompositionPair!==e){i.decompositionPair=e;var o=t.makeMatrixDecomposition(i)}return null==n[0]||null==o[0]?[[!1],[!0],function(t){return t?i[0].d:e[0].d}]:(n[0].push(0),o[0].push(1),[n,o,function(e){var i=t.quat(n[0][3],o[0][3],e[5]);return t.composeMatrix(e[0],e[1],e[2],i,e[4]).map(r).join(",")}])}function s(t){return t.replace(/[xy]/,"")}function a(t){return t.replace(/(x|y|z|3d)?$/,"3d")}var l=null,u={px:0},h={deg:0},p={matrix:["NNNNNN",[l,l,0,0,l,l,0,0,0,0,1,0,l,l,0,1],i],matrix3d:["NNNNNNNNNNNNNNNN",i],rotate:["A"],rotatex:["A"],rotatey:["A"],rotatez:["A"],rotate3d:["NNNA"],perspective:["L"],scale:["Nn",e([l,l,1]),i],scalex:["N",e([l,1,1]),e([l,1])],scaley:["N",e([1,l,1]),e([1,l])],scalez:["N",e([1,1,l])],scale3d:["NNN",i],skew:["Aa",null,i],skewx:["A",null,e([l,h])],skewy:["A",null,e([h,l])],translate:["Tt",e([l,l,u]),i],translatex:["T",e([l,u,u]),e([l,u])],translatey:["T",e([u,l,u]),e([u,l])],translatez:["L",e([u,u,l])],translate3d:["TTL",i]};t.addPropertiesHandler(n,(function(e,i){var n=t.makeMatrixDecomposition&&!0,r=!1;if(!e.length||!i.length){e.length||(r=!0,e=i,i=[]);for(var l=0;l<e.length;l++){var u=e[l].t,h=e[l].d,c="scale"==u.substr(0,5)?1:0;i.push({t:u,d:h.map((function(t){if("number"==typeof t)return c;var e={};for(var i in t)e[i]=c;return e}))})}}var f=[],_=[],d=[];if(e.length!=i.length){if(!n)return;f=[(x=o(e,i))[0]],_=[x[1]],d=[["matrix",[x[2]]]]}else for(l=0;l<e.length;l++){var y=e[l].t,g=i[l].t,v=e[l].d,m=i[l].d,b=p[y],w=p[g];if(function(t,e){return"perspective"==t&&"perspective"==e||("matrix"==t||"matrix3d"==t)&&("matrix"==e||"matrix3d"==e)}(y,g)){if(!n)return;var x=o([e[l]],[i[l]]);f.push(x[0]),_.push(x[1]),d.push(["matrix",[x[2]]])}else{if(y==g)u=y;else if(b[2]&&w[2]&&s(y)==s(g))u=s(y),v=b[2](v),m=w[2](m);else{if(!b[1]||!w[1]||a(y)!=a(g)){if(!n)return;f=[(x=o(e,i))[0]],_=[x[1]],d=[["matrix",[x[2]]]];break}u=a(y),v=b[1](v),m=w[1](m)}for(var S=[],P=[],V=[],k=0;k<v.length;k++)x=("number"==typeof v[k]?t.mergeNumbers:t.mergeDimensions)(v[k],m[k]),S[k]=x[0],P[k]=x[1],V.push(x[2]);f.push(S),_.push(P),d.push([u,V])}}if(r){var A=f;f=_,_=A}return[f,_,function(t){return t.map((function(t,e){var i=t.map((function(t,i){return d[e][1][i](t)})).join(",");return"matrix"==d[e][0]&&16==i.split(",").length&&(d[e][0]="matrix3d"),d[e][0]+"("+i+")"})).join(" ")}]}),["transform"]),t.transformToSvgMatrix=function(e){var i=t.transformListToMatrix(n(e));return"matrix("+r(i[0])+" "+r(i[1])+" "+r(i[4])+" "+r(i[5])+" "+r(i[12])+" "+r(i[13])+")"}}(Mx),function(t){function e(e){return e=100*Math.round(e/100),400===(e=t.clamp(100,900,e))?"normal":700===e?"bold":String(e)}t.addPropertiesHandler((function(t){var e=Number(t);if(!(isNaN(e)||e<100||e>900||e%100!=0))return e}),(function(t,i){return[t,i,e]}),["font-weight"])}(Mx),function(t){function e(t){var e={};for(var i in t)e[i]=-t[i];return e}function i(e){return t.consumeToken(/^(left|center|right|top|bottom)\b/i,e)||t.consumeLengthOrPercent(e)}function n(e,n){var r=t.consumeRepeated(i,/^/,n);if(r&&""==r[1]){var s=r[0];if(s[0]=s[0]||"center",s[1]=s[1]||"center",3==e&&(s[2]=s[2]||{px:0}),s.length==e){if(/top|bottom/.test(s[0])||/left|right/.test(s[1])){var a=s[0];s[0]=s[1],s[1]=a}if(/left|right|center|Object/.test(s[0])&&/top|bottom|center|Object/.test(s[1]))return s.map((function(t){return"object"==typeof t?t:o[t]}))}}}function r(n){var r=t.consumeRepeated(i,/^/,n);if(r){for(var s=r[0],a=[{"%":50},{"%":50}],l=0,u=!1,h=0;h<s.length;h++){var p=s[h];"string"==typeof p?(u=/bottom|right/.test(p),a[l={left:0,right:0,center:l,top:1,bottom:1}[p]]=o[p],"center"==p&&l++):(u&&((p=e(p))["%"]=(p["%"]||0)+100),a[l]=p,l++,u=!1)}return[a,r[1]]}}var o={left:{"%":0},center:{"%":50},right:{"%":100},top:{"%":0},bottom:{"%":100}},s=t.mergeNestedRepeated.bind(null,t.mergeDimensions," ");t.addPropertiesHandler(n.bind(null,3),s,["transform-origin"]),t.addPropertiesHandler(n.bind(null,2),s,["perspective-origin"]),t.consumePosition=r,t.mergeOffsetList=s;var a=t.mergeNestedRepeated.bind(null,s,", ");t.addPropertiesHandler((function(e){var i=t.consumeRepeated(r,/^,/,e);if(i&&""==i[1])return i[0]}),a,["background-position","object-position"])}(Mx),function(t){var e=t.consumeParenthesised.bind(null,t.parseLengthOrPercent),i=t.consumeRepeated.bind(void 0,e,/^/),n=t.mergeNestedRepeated.bind(void 0,t.mergeDimensions," "),r=t.mergeNestedRepeated.bind(void 0,n,",");t.addPropertiesHandler((function(n){var r=t.consumeToken(/^circle/,n);if(r&&r[0])return["circle"].concat(t.consumeList([t.ignore(t.consumeToken.bind(void 0,/^\(/)),e,t.ignore(t.consumeToken.bind(void 0,/^at/)),t.consumePosition,t.ignore(t.consumeToken.bind(void 0,/^\)/))],r[1]));var o=t.consumeToken(/^ellipse/,n);if(o&&o[0])return["ellipse"].concat(t.consumeList([t.ignore(t.consumeToken.bind(void 0,/^\(/)),i,t.ignore(t.consumeToken.bind(void 0,/^at/)),t.consumePosition,t.ignore(t.consumeToken.bind(void 0,/^\)/))],o[1]));var s=t.consumeToken(/^polygon/,n);return s&&s[0]?["polygon"].concat(t.consumeList([t.ignore(t.consumeToken.bind(void 0,/^\(/)),t.optional(t.consumeToken.bind(void 0,/^nonzero\s*,|^evenodd\s*,/),"nonzero,"),t.consumeSizePairList,t.ignore(t.consumeToken.bind(void 0,/^\)/))],s[1])):void 0}),(function(e,i){if(e[0]===i[0])return"circle"==e[0]?t.mergeList(e.slice(1),i.slice(1),["circle(",t.mergeDimensions," at ",t.mergeOffsetList,")"]):"ellipse"==e[0]?t.mergeList(e.slice(1),i.slice(1),["ellipse(",t.mergeNonNegativeSizePair," at ",t.mergeOffsetList,")"]):"polygon"==e[0]&&e[1]==i[1]?t.mergeList(e.slice(2),i.slice(2),["polygon(",e[1],r,")"]):void 0}),["shape-outside"])}(Mx),function(t){function e(t,e){e.concat([t]).forEach((function(e){e in document.documentElement.style&&(i[t]=e),n[e]=t}))}var i={},n={};e("transform",["webkitTransform","msTransform"]),e("transformOrigin",["webkitTransformOrigin"]),e("perspective",["webkitPerspective"]),e("perspectiveOrigin",["webkitPerspectiveOrigin"]),t.propertyName=function(t){return i[t]||t},t.unprefixedPropertyName=function(t){return n[t]||t}}(Mx)}(),function(){if(void 0===document.createElement("div").animate([]).oncancel){if(window.performance&&performance.now)var t=function(){return performance.now()};else t=function(){return Date.now()};var e=function(t,e,i){this.target=t,this.currentTime=e,this.timelineTime=i,this.type="cancel",this.bubbles=!1,this.cancelable=!1,this.currentTarget=t,this.defaultPrevented=!1,this.eventPhase=Event.AT_TARGET,this.timeStamp=Date.now()},i=window.Element.prototype.animate;window.Element.prototype.animate=function(n,r){var o=i.call(this,n,r);o._cancelHandlers=[],o.oncancel=null;var s=o.cancel;o.cancel=function(){s.call(this);var i=new e(this,null,t()),n=this._cancelHandlers.concat(this.oncancel?[this.oncancel]:[]);setTimeout((function(){n.forEach((function(t){t.call(i.target,i)}))}),0)};var a=o.addEventListener;o.addEventListener=function(t,e){"function"==typeof e&&"cancel"==t?this._cancelHandlers.push(e):a.call(this,t,e)};var l=o.removeEventListener;return o.removeEventListener=function(t,e){if("cancel"==t){var i=this._cancelHandlers.indexOf(e);i>=0&&this._cancelHandlers.splice(i,1)}else l.call(this,t,e)},o}}}(),function(t){var e=document.documentElement,i=null,n=!1;try{var r="0"==getComputedStyle(e).getPropertyValue("opacity")?"1":"0";(i=e.animate({opacity:[r,r]},{duration:1})).currentTime=0,n=getComputedStyle(e).getPropertyValue("opacity")==r}catch(t){}finally{i&&i.cancel()}if(!n){var o=window.Element.prototype.animate;window.Element.prototype.animate=function(e,i){return window.Symbol&&Symbol.iterator&&Array.prototype.from&&e[Symbol.iterator]&&(e=Array.from(e)),Array.isArray(e)||null===e||(e=t.convertToArrayForm(e)),o.call(this,e,i)}}}(Ox),Object.defineProperty(window.SVGElement.prototype,"parentElement",{get:function(){return this.parentNode}}),Element.prototype._getBoundingClientRect=Element.prototype.getBoundingClientRect,Element.prototype.getBoundingClientRect=function(){const t=Element.prototype._getBoundingClientRect.call(this);return t.x=t.left,t.y=t.top,t},function(){function t(t){var e=t&&t.getBoundingClientRect()||{x:0,y:0,width:0,height:0};return[e.left,e.top]}SVGElement.prototype.getBBox=function(){return"tspan"===this.nodeName?function(e){try{var i=e.ownerSVGElement,n=e.parentNode,[r,o]=t(i),[s,a]=t(n),l={x:0,y:0,width:0,height:0};e.viewportElement&&e.textContent.trim()&&(l=e.getExtentOfChar(0))}catch(t){console.error(t.message),console.log(e.textContent,e.textContent.trim().length,{tspanElement:e})}finally{return{x:r+s+l.x,y:o+a+l.y,width:l.width,height:l.height}}}(this):this.getBoundingClientRect()}}();var Bx=function(t,e){return Bx=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},Bx(t,e)};function Dx(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}Bx(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}var Fx=function(){return Fx=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},Fx.apply(this,arguments)};function Ix(t){var e="function"==typeof Symbol&&Symbol.iterator,i=e&&t[e],n=0;if(i)return i.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function jx(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var n,r,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){r={error:t}}finally{try{n&&!n.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return s}function $x(t,e,i){if(i||2===arguments.length)for(var n,r=0,o=e.length;r<o;r++)!n&&r in e||(n||(n=Array.prototype.slice.call(e,0,r)),n[r]=e[r]);return t.concat(n||Array.prototype.slice.call(e))}"function"==typeof SuppressedError&&SuppressedError;var zx="http://www.w3.org/2000/svg",Hx=Object.prototype.hasOwnProperty,Gx=function(t){return t&&"object"==typeof t&&!Array.isArray(t)},Wx=Array.isArray,Yx=function(t){return"function"==typeof t},Xx=function(t){return"string"==typeof t},Ux=function(t){return"string"==typeof t&&t.length>0},qx=function(t){return"number"==typeof t},Zx=function(t){return"boolean"==typeof t},Kx=Object.assign,Jx=Math.floor,Qx=Math.ceil,tS=Math.cos,eS=Math.sin,iS=function(t){return Math.pow(10,t)},nS=Math.log10,rS=Math.min,oS=Math.max,sS=Math.abs,aS=function(t,e){return t=parseFloat(t),isNaN(t)?parseFloat(e):t},lS=function(t,e,i){var n=parseFloat(t);return isNaN(n)?(n=parseFloat(e),isNaN(n)?parseFloat(i):n):n},uS=function(t,e){return void 0!==t?t:e},hS=function(t,e,i){return void 0!==t?t:void 0!==e?e:i},pS=function(t,e,i){return t+(e-t)*i},cS=function(t){return"function"==typeof t?t:null},fS=(new Date).getTime();"undefined"==typeof window||Element.prototype.animate||(Element.prototype.animate=function(t){});var _S=function(){function t(){}return t.log=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.LOGGING&&console.log.apply(console,$x([],jx(t),!1))},t.now=function(){return+new Date},t.parseDate=function(t,e){var i=new Date(t);return isNaN(i.getTime())?e||new Date:i},t.isLeapYear=function(t){return t%4==0&&t%100!=0||t%400==0},t.dateOfYear=function(e){var i=e.getMonth(),n=e.getDate(),r=[0,31,59,90,120,151,181,212,243,273,304,334][i]+n;return i>1&&t.isLeapYear(e.getFullYear())&&r++,r},t.incMonth=function(e,i){var n=e.getDate();return e.setDate(1),e.setMonth(e.getMonth()+i),e.setDate(rS(n,t.month_days[t.isLeapYear(e.getFullYear())?1:0][e.getMonth()])),e},t.minDate=function(t,e){return null!==t?t:null!==e?e:t.getTime()<e.getTime()?t:e},t.maxDate=function(t,e){return null!==t?e:null!==e||t.getTime()>e.getTime()?t:e},t.weekOfMonth=function(t,e,i){var n=t.getMonth(),r=t.getFullYear(),o=new Date(r,n,1).getDay(),s=new Date(r,n+1,0).getDate(),a=t.getDate()+o-1,l=e+Math.ceil((s+o-7)/7),u=e+Math.floor(a/7);return i||u<2+e?u:u===l?e+5:u},t.weekOfYear=function(t,e){var i=t.getFullYear(),n=new Date(i,0,1).getDay(),r=this.dateOfYear(t)+n-1;return e+Math.floor(r/7)},t.isObject=function(t){return t&&"object"==typeof t&&!Wx(t)},t.isValidObject=function(t){if(this.isObject(t))for(var e in t)if(t.hasOwnProperty(e))return!0},t.copyObject=function(t){if(t&&"object"==typeof t&&!Wx(t))return Kx({},t)},t.checkArray=function(t){return Wx(t)?t:void 0},t.makeArray=function(t,e){return void 0===e&&(e=!1),null!=t?Wx(t)?t:[t]:e?[]:void 0},t.makeNumArray=function(t){return Wx(t)?t.map((function(t){return+t})):null!=t?[+t]:[]},t.getIntArray=function(t,e){void 0===e&&(e=0);for(var i=[],n=e,r=e+t;n<r;n++)i.push(n);return i},t.isValueArray=function(t){if(Wx(t)){for(var e=t.length-1;e>=0;e--)if(null!=t[e]&&"object"==typeof t[e])return!1;return!0}return!1},t.toArray=function(t){return Wx(t)?t:null!=t?[t]:null},t.copyArray=function(t){return Wx(t)?t.slice(0):null!=t?[t]:void 0},t.push=function(t,e){if(e&&e.length>0)for(var i=0,n=e.length;i<n;i++)t.push(e[i])},t.isDefined=function(t){return null!=t},t.isNotDefined=function(t){return null==t},t.isNumber=function(t){return"number"==typeof t},t.canNumber=function(t){return!isNaN(t)&&!isNaN(parseFloat(t))},t.isValidNum=function(t){return"number"==typeof t&&!isNaN(t)&&isFinite(t)},t.getNumber=function(t,e){void 0===e&&(e=0);var i=parseFloat(t);return isFinite(i)?i:e},t.toNumber=function(t,e){return void 0===e&&(e=0),isNaN(t)||null===t||""===t?e:+t},t.compareText=function(t,e,i){return void 0===i&&(i=!1),t=t||"",e=e||"",i&&(t=t.toLocaleLowerCase(),e=e.toLocaleLowerCase()),t>e?1:t<e?-1:0},t.getTimeF=function(){return(new Date).getTime()/1e3},t.getTimer=function(){return(new Date).getTime()-fS},t.isWhiteSpace=function(t){return!t||!t.trim()},t.pad=function(t,e,i){return e=oS(e||2,1),i=i||"0",new Array(e-String(t).length+1).join(i)+t},t.pad16=function(t,e,i){return e=oS(e||2,1),i=i||"0",new Array(e-t.toString(16).length+1).join(i)+t.toString(16)},t.pick=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var i,n=t.length,r=0;r<n;r++)if(null!=(i=t[r]))return i},t.toStr=function(t){return Number.isNaN(t)||null==t?"":String(t)},t.extend=function(t,e){for(var i in t=t||{},e)t[i]=e[i];return t},t.equalNumbers=function(t,e){return isNaN(t)==isNaN(e)&&!isNaN(t)&&t==e},t.equalArrays=function(t,e){if(t===e)return!0;if(null==t||null==e)return!1;var i=t.length;if(i!=e.length)return!1;for(var n=0;n<i;++n)if(t[n]!==e[n])return!1;return!0},t.isEmpty=function(t){if(t)for(var e in t)return!1;return!0},t.isNotEmpty=function(t){if(t)for(var e in t)return!0;return!1},t.setter=function(t){return"set"+t[0].toUpperCase()+t.slice(1)},t.deepClone=function(e){var i,n;if(e instanceof Date)return new Date(e);if(null==e||"object"!=typeof e)return e;var r=Wx(e)?[]:{};try{for(var o=Ix(Object.keys(e)),s=o.next();!s.done;s=o.next()){var a=s.value;r[a]=t.deepClone(e[a])}}catch(t){i={error:t}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return r},t.getArray=function(t,e){for(var i=[],n=0;n<t;n++)i.push(e);return i},t.getNumArray=function(t,e){void 0===e&&(e=0);for(var i=[],n=0;n<t;n++)i.push(e);return i},t.dedupe=function(t,e){for(var i=(t=t.sort(e||function(t,e){return t>e?1:t<e?-1:0})).length-1;i>0;i--)t[i]===t[i-1]&&t.splice(i,1);return t},t.sortNum=function(t){return t.sort((function(t,e){return t-e}))},t.logElapsed=function(e,i){var n=+new Date;i(),t.log(e,+new Date-n+"ms")},t.clamp=function(t,e,i){return oS(e,rS(i,t))},t.makeIntArray=function(t,e){for(var i=new Array(oS(0,e-t)),n=t;n<e;n++)i[n-t]=n;return i},t.shuffle=function(t){for(var e,i=t.length-1;i>0;i--){var n=Math.floor(Math.random()*(i+1));e=jx([t[n],t[i]],2),t[i]=e[0],t[n]=e[1]}},t.isDate=function(t){return"[object Date]"===Object.prototype.toString.call(t)},t.isValidDate=function(t){return t.getTime()==t.getTime()},t.asFunction=function(t){return"function"==typeof t?t:void 0},t.getFieldProp=function(t){var e=t.indexOf(".");if(e>=0)return{field:t.substring(0,e),props:t.substring(e+1).split(".")}},t.startsWith=function(t,e){if(t&&e)return 0===t.indexOf(e)},t.endsWith=function(t,e){if(t&&e)return t.indexOf(e,-t.length)===t.length-e.length},t.scaleNumber=function(t,e,i){var n=sS(t);if(n>=1e3)for(var r=e.length;r>0;){var o=Math.pow(1e3,r--);if(o<=Math.pow(10,Math.log(n)*Math.LOG10E)&&(i||10*n%o==0))return{value:t/o,symbol:e[r]}}},t.jitter=function(t,e){return t+(2*Math.random()-1)*e},t.LOGGING=!1,t.week_days=["일","월","화","수","목","금","토"],t.long_week_days=["일요일","월요일","화요일","수요일","목요일","금요일","토요일"],t.month_days=[[31,28,31,30,31,30,31,31,30,31,30,31],[31,29,31,30,31,30,31,31,30,31,30,31]],t.uniqueKey=function(){var t=Math.random().toString(36).substring(2,9)+"-",e=0;return function(){return"rr-chart-"+t+e++}}(),t}(),dS={ko:{dateFormat:"yyyy.MM.dd",am:"오전",pm:"오후",notExistsDataField:"존재하지 않는 필드입니다: %1",notSpecifiedDataField:"하나 이상의 데이터필드가 설정돼야 합니다.",invalidFieldName:"잘못된 데이터필드 이름입니다: %1",invalidRowIndex:"잘못된 데이터행 index입니다: %1",invalidToIndex:"잘못된 'to' index입니다.: %1",requireSourceData:"원본 data가 반드시 지정돼야 합니다.",requireFilterName:"필터 이름이 반드시 지정돼야 합니다.",invalidDateFormat:"잘못된 시간 날짜 형식입니다: %1",invalidSizeValue:"잘못된 Size 값입니다: %1",invalidOuterDiv:"잘못된 외부 div 입니다: %1",dataMustSet:"데이터가 먼저 설정돼야 합니다.",requireTableName:"테이블모델의 이름이 지정돼야 합니다.",alreadyTableExists:"이미 존재하는 테이블모델입니다: %1"},en:{dateFormat:"M/d/yyyy",am:"AM",pm:"PM",notExistsDataField:"A data field is not exists: %1",notSpecifiedDataField:"At least one datafield must be set.",invalidFieldName:"Invalid field name: %1",invalidRowIndex:"Invalid row index: %1",invalidToIndex:"Invalid 'to' index: %1",requireSourceData:"A source data must be set.",requireFilterName:"A filter name must be set.",invalidDateFormat:"Invalid datetime format: %1",invalidSizeValue:"Invalid size value: %1",invalidOuterDiv:"Invalid outer div element: %1",dataMustSet:"A data must be set first.",requireTableName:"The name of table model is required.",alreadyTableExists:"A table model is already exists: %1"}},yS="ko",gS=dS[yS]||dS[yS="ko"],vS=function(t,e){t&&Gx(e)&&(gS=dS[t.substring(0,2)]=Object.assign(dS.ko,dS.en,e))},mS=0,bS=function(){function t(t){this.$_destroyed=!1,this.$_destroying=!1,t||(this.$_hash=String(mS++))}return t.destroy=function(t){return t&&t.destroy()},t.prototype.destroy=function(){return this.$_destroyed||this.$_destroying||(this.$_destroying=!0,this._doDestroy(),this.$_destroyed=!0),null},t.prototype._doDestroy=function(){},Object.defineProperty(t.prototype,"destroying",{get:function(){return this.$_destroying},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"orphaned",{get:function(){return this.$_destroying||this.$_destroyed},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hash",{get:function(){return this.$_hash},enumerable:!1,configurable:!0}),t.prototype.isMe=function(t){return t===this.$_hash},t.prototype.toString=function(){return this.constructor.name},t.prototype.toBool=function(t){return"string"==typeof t?"true"===t:t},t.prototype.toNum=function(t,e){return void 0===e&&(e=NaN),t=parseFloat(t),isNaN(t)?e:t},t}(),wS=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._listeners=[],e}return Dx(e,t),e.prototype._addListener=function(t){t&&this._listeners.indexOf(t)<0&&this._listeners.push(t)},e.prototype._removeListener=function(t){var e=this._listeners.indexOf(t);e>=0&&this._listeners.splice(e,1)},e.prototype._fireEvent=function(t){var e,i,n=Array.prototype.slice.call(arguments,0);n[0]=this;try{for(var r=Ix(this._listeners),o=r.next();!o.done;o=r.next()){var s=o.value,a=s[t];if(a){var l=a.apply(s,n);if(void 0!==l)return l}}}catch(t){e={error:t}}finally{try{o&&!o.done&&(i=r.return)&&i.call(r)}finally{if(e)throw e.error}}},e}(bS),xS=void 0,SS=Math.PI,PS=2*SS,VS=-SS/2,kS=2*SS/360,AS=360/SS/2,CS="%".charCodeAt(0);function ES(t){return t>PS?t%PS:t}function LS(t){return parseFloat(t.toPrecision(12))}function NS(t){return Math.floor(1e6*t)/1e6}function OS(t){return null==t?null:String(t)}function MS(t){return t+"px"}function TS(t){return null==t||Number.isNaN(t)||""===t}function RS(t){return t<10?"0"+t:String(t)}function BS(t){return t<10?"00"+t:t<100?"0"+t:String(t)}function DS(t,e){var i={};return i[t]=e,i}function FS(t,e,i){var n,r=!1;if(null==t){if(e)return null;n=i||0,r=!0}else if("string"==typeof t){var o=t.trim();if(0===o.length?n=NaN:o.charCodeAt(o.length-1)===CS?n=1===o.length?NaN:parseFloat(o):(n=parseFloat(o),r=!0),isNaN(n)){if(e)return null;XS(gS.invalidSizeValue,t)}}else if(n=+t,isNaN(n)){if(e)return null;n=i||0,r=!0}else r=!0;return{size:n,fixed:r}}function IS(t,e){return FS(t,!0)||FS(e,!1)}function jS(t,e,i){return void 0===i&&(i=NaN),t?t.fixed?t.size:t.size*e/100:i}var $S="fill",zS={fill:"fill",fillOpacity:"fill-opacity",stroke:"stroke",strokeWidth:"stroke-width",strokeDasharray:"stroke-dasharray",fontFamily:"font-family",fontSize:"font-size",fontWeight:"font-weight",fontStyle:"font-style",padding:"padding",margin:"margin"},HS=function(t){var e=zS[t];if(!e){var i=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();return zS[t]=i,i}return e};!function(t){function e(){return null!==t&&t.apply(this,arguments)||this}Dx(e,t),e.check=function(t){if(t instanceof e)return!0;throw t}}(Error);var GS=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e}(Error),WS=function(t,e){if(!t)throw new GS(e)};!function(t){function e(){return null!==t&&t.apply(this,arguments)||this}Dx(e,t)}(Error);var YS,XS=function(t,e){throw new Error(function(t,e){return t.replace("%1",e)}(t,e))},US=function(t,e,i,n,r,o,s){var a,l;if(void 0===n&&(n=!0),void 0===r&&(r=!0),void 0===o&&(o=!1),n&&(e=-Number.MAX_VALUE,i=Number.MAX_VALUE),Wx(t))a=[],t.forEach((function(t){if(Gx(t)&&Xx(t.color)){var n={fromValue:aS(t.fromValue,l?l.toValue:e),toValue:aS(t.toValue,i),color:t.color,style:t.style?Kx({},t.style):xS};n.fromValue<n.toValue&&(a.push(n),l=n)}})),a=a.sort((function(t,e){return t.fromValue-e.fromValue})).filter((function(t){return t.toValue>=e&&t.fromValue<i})),r&&a.forEach((function(t){t.fromValue=oS(t.fromValue,e),t.toValue=rS(t.toValue,i)}));else if(Gx(t)&&Wx(t.colors)&&t.colors.length>0){var u=t.colors,h=Wx(t.styles)?t.styles:null;if(a=[],Wx(t.steps)&&t.steps.length>0){var p=Wx(t.steps)?t.steps:null;e<p[0]&&p.unshift(e),i>p[p.length-1]&&p.push(i);for(var c=0;c<p.length-1;c++)a.push({fromValue:p[c],toValue:p[c+1],color:u[rS(c,u.length-1)],style:h?h[rS(c,h.length-1)]:xS})}else{var f=aS(t.fromValue,e),_=aS(t.toValue,i),d=(_-f)/u.length;for(c=0;f<_;)a.push({fromValue:f,toValue:f+=d,color:u[rS(c,u.length-1)],style:h?h[rS(c,h.length-1)]:xS}),c++}}if(o&&a&&a.length>0){c=0;for(var y=e;c<a.length;)a[c].fromValue>y&&a.splice(c,0,{fromValue:y,toValue:a[c].fromValue,color:s}),y=a[c].toValue,c++;a[c-1].toValue<i&&a.push({fromValue:a[c-1].toValue,toValue:i,color:s})}return a},qS="vertical-lr",ZS="vertical-rl",KS=function(t){return t&&"object"==typeof t},JS=function(t){function e(e,i){var n=t.call(this)||this;return n._rows=[],n.$_buildOptions(e||{}),Wx(i)&&i.forEach((function(t){return n._rows.push(n.$_readRow(t))})),n}return Dx(e,t),e.prototype.$_buildOptions=function(t){var e,i=t.fields;e=Wx(i)?i.slice():Xx(i)?[i]:["x","y","z"],this._fields=e,this._field=t.field||"y",this._fieldMap={};for(var n=0;n<e.length;n++)this._fieldMap[e[n]]=n},Object.defineProperty(e.prototype,"rowCount",{get:function(){return this._rows.length},enumerable:!1,configurable:!0}),e.prototype._internalValues=function(){return this._rows},e.prototype.$_readRow=function(t){var e={};if(Wx(t))for(var i=0;i<this._fields.length;i++)e[this._fields[i]]=t[i];else KS(t)?Object.assign(e,t):e[this._field]=t;return e},e.prototype.getValue=function(t,e){return this._checkRow(t),this._rows[t][e]},e.prototype.setValue=function(t,e,i){this._checkRow(t);var n=this._rows[t],r=n[e];i!==r&&(n[e]=i,this._rows[t]=n,this._fireEvent("onDataValueChanged",t,e,i,r),this._changed())},e.prototype.getValues=function(t,e,i){void 0===e&&(e=0),void 0===i&&(i=-1);var n=this._rows,r=[];(isNaN(e)||e<0)&&(e=0),(isNaN(i)||i<0||i>n.length)&&(i=n.length);for(var o=e;o<i;o++)r.push(n[o][t]);return r},e.prototype.getRow=function(t){return this._checkRow(t),Object.assign({},this._rows[t])},e.prototype.addRow=function(t,e){isNaN(e)||e<0?e=this._rows.length:this._checkRow(e),this._rows.splice(e,0,t),this._fireEvent("onDataRowAdded",e),this._changed()},e.prototype.deleteRow=function(t){(isNaN(t)||t<0)&&(t=this._rows.length-1),this._checkRow(t);var e=this._rows[t];this._rows.splice(t,1),this._fireEvent("onDataRowDeleted",t,e),this._changed()},e.prototype._checkRow=function(t){(t<0||t>this._rows.length)&&XS(gS.invalidRowIndex,t)},e.prototype._changed=function(){this._fireEvent("onDataChanged")},e}(wS),QS=function(){function t(){this._map={}}return t.prototype.get=function(t){return this._map[t]},t.prototype.load=function(t){for(var e in t){var i=t[e],n=void 0;Wx(i)?n=new JS({},i):KS(i)&&Wx(i.values)&&(n=new JS(i.options,i.values)),this._map[e]=n}},t}(),tP="0".charCodeAt(0),eP="#".charCodeAt(0),iP=",".charCodeAt(0),nP="s".charCodeAt(0),rP="a".charCodeAt(0),oP=function(){function t(t){t=t.trim(),this._options=t?this.$_parse(this._format=t):{useGrouping:!1}}return t.getFormatter=function(e){var i=t.Formatters[e];return i||(t.Formatters[e]=i=new t(e)),i},Object.defineProperty(t,"Default",{get:function(){return t.getFormatter(t.DEFAULT_FORMAT)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"format",{get:function(){return this._format},enumerable:!1,configurable:!0}),t.prototype.toStr=function(t){return t.toLocaleString(void 0,this._options)},t.prototype.$_parse=function(t){var e=t.length;if(e>0){var i={useGrouping:!1,minimumIntegerDigits:0,minimumFractionDigits:0,maximumFractionDigits:0},n=t.indexOf(".");if(n>=0){for(var r=n+1;r<e&&t.charCodeAt(r)===tP;)i.minimumFractionDigits++,r++;for(i.maximumFractionDigits=i.minimumFractionDigits;r<e&&t.charCodeAt(r)===eP;)i.maximumFractionDigits++,r++;n-=1}else n=e-1;for(var o=n;o>=0&&t.charCodeAt(o)===tP;)i.minimumIntegerDigits++,o--;for(;o>=0;){if(t.charCodeAt(o--)===iP){i.useGrouping=!0;break}}for(o=n;o>=0;){if(t.charCodeAt(o--)===nP){i.signDisplay="always";break}}if(!i.signDisplay)for(o=n;o>=0;){if(t.charCodeAt(o--)===rP){i.signDisplay="never";break}}return i.minimumIntegerDigits=oS(1,i.minimumIntegerDigits),i}},t.DEFAULT_FORMAT="",t.Formatters={},t}(),sP=["yy","yyyy","M","MM","d","dd","WW","W","w","ww","a","H","HH","h","hh","m","mm","s","ss","S","SS","SSS"],aP=[".","/","-",":"],lP="Z".charCodeAt(0),uP="z".charCodeAt(0),hP="A".charCodeAt(0),pP="a".charCodeAt(0),cP="y".charCodeAt(0),fP="M".charCodeAt(0),_P="m".charCodeAt(0),dP="W".charCodeAt(0),yP="w".charCodeAt(0),gP="d".charCodeAt(0),vP="H".charCodeAt(0),mP="h".charCodeAt(0),bP="S".charCodeAt(0),wP="s".charCodeAt(0),xP=function(){function t(t){this._baseYear=2e3,this._preserveTime=!1,this._hasAmPm=!1,this._formatString="",this.formatString=t}return t.getFormatter=function(e){var i=t.Formatters[e];return i||(t.Formatters[e]=i=new t(e)),i},Object.defineProperty(t,"Default",{get:function(){return t.getFormatter(gS.dateFormat)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"format",{get:function(){return this._format},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"formatString",{get:function(){return this._formatString},set:function(t){(t=t||gS.dateFormat)!=this._formatString&&(this._tokens=[],this.parse(t),this._formatString=t)},enumerable:!1,configurable:!0}),t.prototype.toStr=function(t,e){if(!this._tokens)return"";for(var i=this._tokens,n="",r=0,o=i.length;r<o;r++){var s=i[r],a=s.length;switch(s.charCodeAt(0)){case cP:n+=a>2?t.getFullYear():RS(t.getFullYear()%100);break;case fP:n+=a>1?RS(t.getMonth()+1):t.getMonth()+1;break;case gP:n+=a>1?RS(t.getDate()):t.getDate();break;case dP:n+=a>1?RS(_S.weekOfYear(t,e)+1):_S.weekOfMonth(t,e,!0)+1;break;case yP:n+=a>1?_S.long_week_days[t.getDay()]:_S.week_days[t.getDay()];break;case vP:n+=a>1?RS(t.getHours()):t.getHours();break;case mP:if(this._hasAmPm){var l=t.getHours();0==l?l=12:l>12&&(l-=12),n+=a>1?RS(l):l}else n+=a>1?RS(t.getHours()):t.getHours();break;case _P:n+=a>1?RS(t.getMinutes()):t.getMinutes();break;case wP:n+=a>1?RS(t.getSeconds()):t.getSeconds();break;case pP:case hP:t.getHours()<12?n+=gS.am:n+=gS.pm;break;case bP:var u=t.getMilliseconds();n+=3==a?BS(u):2==a?RS(u):u.toString().substring(0,a);break;default:n+=s}}return n},t.prototype.parseDateFormatTokens=function(t){var e=[];if(t)for(var i=t.trim(),n=i.length,r=0;r<n;){var o=i.charAt(r);if(aP.indexOf(o)>=0)e.push(o),r++;else{for(var s=r++;r<n&&i.charAt(r)==o;)r++;if(o=i.substring(s,r),sP.indexOf(o)<0){var a=o.charCodeAt(0);(a>=hP&&a<=lP||a>=pP&&a<=uP)&&XS(gS.invalidDateFormat,t)}e.push(o)}if(r<n&&_S.isWhiteSpace(o=i.charAt(r)))for(e.push(o);r<n&&_S.isWhiteSpace(i.charAt(r));)r++}return e},t.prototype.parse=function(t){t&&(this._format=t||gS.dateFormat,this._tokens=this.parseDateFormatTokens(this._format),this._hasAmPm=this._tokens.indexOf("a")>=0||this._tokens.indexOf("A")>=0)},t.Formatters={},t}(),SP=function(){function t(t){this.r=0,this.g=0,this.b=0,this.a=1,(t=t&&t.trim())&&(_S.startsWith(t,"rgb(")&&_S.endsWith(t,")")?this.$_parseRgb(t.substring(4,t.length-1)):_S.startsWith(t,"rgba(")&&_S.endsWith(t,")")?this.$_parseRgb(t.substring(5,t.length-1)):_S.startsWith(t,"#")&&this.$_parseNumber(t.substr(1)))}return t.isBright=function(e){return new t(e).isBright()},t.getContrast=function(e,i,n){return new t(e).getContrast(i,n)},Object.defineProperty(t.prototype,"rgba",{get:function(){return"rgba("+[this.r,this.g,this.b,this.a].join(",")+")"},enumerable:!1,configurable:!0}),t.prototype.isBright=function(){return.299*this.r+.587*this.g+.114*this.b>140},t.prototype.getContrast=function(t,e){return this.isBright()?t||"#000000":e||"#FFFFFF"},t.prototype.brighten=function(e,i){return void 0===i&&(i=null),(i=i||new t(null)).r=Math.ceil(this.r+(255-this.r)*e),i.g=Math.ceil(this.g+(255-this.g)*e),i.b=Math.ceil(this.b+(255-this.b)*e),i.a=this.a,i},t.prototype.toString=function(){return this.rgba},t.prototype.$_parseRgb=function(t){var e=t.split(/\,\s*/);e.length>=3&&(this.r=+e[0],this.g=+e[1],this.b=+e[2],e.length>=4?this.a=+e[3]:this.a=1)},t.prototype.$_parseNumber=function(t){var e,i=t.length;i>6?(e=parseInt(t.substr(0,6),16),this.a=parseInt(t.substring(6),16)/255):i>0&&(3===i&&(t=t.charAt(0)+t.charAt(0)+t.charAt(1)+t.charAt(1)+t.charAt(2)+t.charAt(2)),e=parseInt(t,16)),this.r=(16711680&e)>>16,this.g=(65280&e)>>8,this.b=255&e},t}(),PP=function(){function t(){}return t.clearChildren=function(t){for(var e;e=t.lastChild;)t.removeChild(e)},t.remove=function(t){var e=t&&t.parentElement;return e&&e.removeChild(t),null},t.htmlEncode=function(t){return document.createElement("a").appendChild(document.createTextNode(t)).parentNode.innerHTML},t.setImportantStyle=function(t,e,i){t.setProperty(e,i,"important")},t.getPadding=function(t){var e=getComputedStyle(t);return{left:parseFloat(e.paddingLeft)||0,right:parseFloat(e.paddingRight)||0,top:parseFloat(e.paddingTop)||0,bottom:parseFloat(e.paddingBottom)||0}},t}();!function(t){t.Developer="developer",t.Evaluation="evaluation",t.Limited="limited",t.Enterprise="enterprise"}(YS||(YS={}));var VP={name:"RealChart",version:"1.1.12",license:"enterprise",code:""},kP=function(){function t(){}return t.decode=function(e){for(var i=t.CHARS,n=t.PAD,r=e.split(""),o=[],s=r.length;r[--s]==n;);for(var a=0;a<s;){var l=i.indexOf(r[a++])<<18;a<=s&&(l|=i.indexOf(r[a++])<<12),a<=s&&(l|=i.indexOf(r[a++])<<6),a<=s&&(l|=i.indexOf(r[a++])),o.push(l>>>16&255),o.push(l>>>8&255),o.push(255&l)}for(;0==o[o.length-1];)o.pop();return o},t.PAD="=",t.CHARS="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t}(),AP=function(){function t(){}return t.union=function(t,e){var i=e.s3[255&t];t>>=8;var n=e.s2[255&t];t>>=8;var r=e.s1[255&t];t>>=8;var o=e.s0[255&t],s=(o>>16)+(r>>16)+((65535&o)+(65535&r)>>16)<<16|(65535&o)+(65535&r)&65535;return((s=(s>>16^n>>16)<<16|65535&(65535&s^65535&n))>>16)+(i>>16)+((65535&s)+(65535&i)>>16)<<16|(65535&s)+(65535&i)&65535},t.xor=function(t,e){return(t>>16^e>>16)<<16|65535&(65535&t^65535&e)},t._encryptBlock=function(e,i){var n=t.xor,r=t.union,o=e.left,s=e.right;o=n(o,i.p[0]),s=n(s,n(r(o,i),i.p[1])),o=n(o,n(r(s,i),i.p[2])),s=n(s,n(r(o,i),i.p[3])),o=n(o,n(r(s,i),i.p[4])),s=n(s,n(r(o,i),i.p[5])),o=n(o,n(r(s,i),i.p[6])),s=n(s,n(r(o,i),i.p[7])),o=n(o,n(r(s,i),i.p[8])),s=n(s,n(r(o,i),i.p[9])),o=n(o,n(r(s,i),i.p[10])),s=n(s,n(r(o,i),i.p[11])),o=n(o,n(r(s,i),i.p[12])),s=n(s,n(r(o,i),i.p[13])),o=n(o,n(r(s,i),i.p[14])),s=n(s,n(r(o,i),i.p[15])),o=n(o,n(r(s,i),i.p[16])),e.right=o,e.left=n(s,i.p[17])},t._decryptBlock=function(e,i){var n=t.xor,r=t.union,o=e.left,s=e.right;o=n(o,i.p[17]),s=n(s,n(r(o,i),i.p[16])),o=n(o,n(r(s,i),i.p[15])),s=n(s,n(r(o,i),i.p[14])),o=n(o,n(r(s,i),i.p[13])),s=n(s,n(r(o,i),i.p[12])),o=n(o,n(r(s,i),i.p[11])),s=n(s,n(r(o,i),i.p[10])),o=n(o,n(r(s,i),i.p[9])),s=n(s,n(r(o,i),i.p[8])),o=n(o,n(r(s,i),i.p[7])),s=n(s,n(r(o,i),i.p[6])),o=n(o,n(r(s,i),i.p[5])),s=n(s,n(r(o,i),i.p[4])),o=n(o,n(r(s,i),i.p[3])),s=n(s,n(r(o,i),i.p[2])),o=n(o,n(r(s,i),i.p[1])),e.right=o,e.left=n(s,i.p[0])},t._init=function(e){var i,n,r,o=e.split("").map((function(t){return 255&t.charCodeAt(0)})),s=t.kb,a=t._encryptBlock,l=0,u=0,h={left:0,right:0},p={p:s.p.slice(0).map((function(e){var i,n=o.length;for(i=0;i<4;i++)u=u*t.POW8|o[l++%n];return(e>>16^u>>16)<<16|65535&(65535&e^65535&u)})),s0:s.s0.slice(0),s1:s.s1.slice(0),s2:s.s2.slice(0),s3:s.s3.slice(0)};for(i=0,r=p.p.length;i<r;)a(h,p),p.p[i++]=h.left,p.p[i++]=h.right;for(i=0;i<4;i++)for(n=0,r=p["s"+i].length;n<r;)a(h,p),p["s"+i][n++]=h.left,p["s"+i][n++]=h.right;return p},t.decrypt=function(e,i){for(var n=t._decryptBlock,r=t._init(i),o=[],s=kP.decode(e),a=s.length>>3,l=0,u={left:null,right:null},h=0;h<a;h++){u.left=s[l]*t.POW24|s[l+1]*t.POW16|s[l+2]*t.POW8|s[l+3],u.right=s[l+4]*t.POW24|s[l+5]*t.POW16|s[l+6]*t.POW8|s[l+7],n(u,r);var p=u.left,c=u.right;o.push(p>>24&255),o.push(p>>16&255),o.push(p>>8&255),o.push(255&p),o.push(c>>24&255),o.push(c>>16&255),o.push(c>>8&255),o.push(255&c),l+=8}if(o[o.length-1]==o[o.length-2]||1==o[o.length-1]){var f=o[o.length-1];o.splice(o.length-f,f)}return String.fromCharCode.apply(null,o)},t.POW2=Math.pow(2,2),t.POW3=Math.pow(2,3),t.POW4=Math.pow(2,4),t.POW8=Math.pow(2,8),t.POW16=Math.pow(2,16),t.POW24=Math.pow(2,24),t.kb={p:[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],s0:[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],s1:[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],s2:[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],s3:[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462],k:[202,218,204,100]},t}(),CP=function(){function t(){}return t.eqaulsUpperDomain=function(t,e){return t==e||0===t.indexOf("*")&&(t=t.substr(1,t.length-1),e.substr(e.indexOf(t),t.length)==t)},t._getLDKey=function(t){for(var e="",i=0,n=t.length;i<n;i++)e+=String.fromCharCode(t[i]>>1);return e},t.includedDomains=function(t,e,i){for(var n=t.split(","),r=0,o=n.length;r<o;r++){var s=n[r];if(this.eqaulsUpperDomain(s,e))return!0;if(i&&s&&"*"===s[0]&&"*."!==s.substring(0,2))if(new RegExp("^/"+s.substring(1)+"/").exec(i))return!0}return!1},t.decrypt=function(t){for(var e={},i=AP.decrypt(t,"dkdl"+this._getLDKey(AP.kb.k)).split(";"),n=0,r=i.length;n<r;n++){var o=i[n].split("="),s=o[0],a=o[1];a&&a.length>0&&(e[s]=a)}return e},t}(),EP=function(t){function e(i,n,r){var o=t.call(this)||this;return o._inited=!1,o._testing=!1,o._dirty=!0,o._toAnimation=0,o._invalidateLock=!1,o._lockDirty=!1,o._cssVars={},o.loaded=!1,o._windowResizeHandler=function(t){o._windowResized()},o._clickHandler=function(t){o._pointerHandler&&o._pointerHandler.handleClick(o.toOffset(t))},o._dblClickHandler=function(t){o._pointerHandler&&o._pointerHandler.handleDblClick(o.toOffset(t))},o._touchMoveHandler=function(t){},o._pointerDownHandler=function(t){o._pointerHandler&&o._pointerHandler.handleDown(o.toOffset(t))},o._pointerMoveHandler=function(t){o._pointerHandler&&o._pointerHandler.handleMove(o.toOffset(t))},o._pointerUpHandler=function(t){o._pointerHandler&&o._pointerHandler.handleUp(o.toOffset(t))},o._pointerCancelHandler=function(t){},o._pointerLeaveHandler=function(t){},o._keyPressHandler=function(t){},o._wheelHandler=function(t){},function(){var t,e=location.hostname,i="RealChart를 사용하려면 도움말을 참조하세요.\nhttps://www.realchart.co.kr/";try{if(!(t=window.realChartLic))throw new Error(i)}catch(t){throw new Error(i)}var n=CP.decrypt(t);if("RealChart"!==n.name||"RealChart"!==VP.name)throw new Error(i);try{var r=n.server.toLowerCase(),o=location.pathname.toLowerCase();if(VP.license!=YS.Developer&&!CP.includedDomains(r,e.toLowerCase(),o))throw new Error(i);var s=n.lic.toLowerCase();if(!Object.values(YS).includes(s))throw new Error(i);if(VP.code=n.code,VP.license=n.lic,s==YS.Evaluation||s==YS.Limited){var a=n.expire.split(".").map((function(t){return parseInt(t)})),l=new Date(a[0],a[1],a[2],23,59,59,999);if(new Date>l)throw new Error("라이선스가 만료되었습니다.")}}catch(t){throw new Error(i)}}(),!i&&n instanceof HTMLDivElement&&(i=n.ownerDocument),o._initControl(i||document,n,r||e.CLASS_NAME),o._resigterEventHandlers(o._dom),o._inited=!0,o.invalidate(!0),o}return Dx(e,t),e.prototype._doDestroy=function(){this._requestTimer&&(window.requestAnimationFrame?cancelAnimationFrame(this._requestTimer):clearTimeout(this._requestTimer)),this._unresigterEventHandlers(this._dom),PP.remove(this._dom),this._dom=null,this._container=null},e.prototype.isInited=function(){return this._inited},e.prototype.isTesting=function(){return this._testing},e.prototype.doc=function(){return this._dom.ownerDocument},e.prototype.dom=function(){return this._dom},e.prototype.svg=function(){return this._svg},e.prototype.width=function(){return this._container.offsetWidth},e.prototype.height=function(){return this._container.offsetHeight},e.prototype.contentWidth=function(){return this.width()-this._padding.left-this._padding.right},e.prototype.contentHeight=function(){return this.height()-this._padding.top-this._padding.bottom},e.prototype.contentRight=function(){return this.width()-this._padding.right},e.prototype.clipContainer=function(){return this._defs},e.prototype.setData=function(t,e,i){TS(e)?(this._root.dom.removeAttribute("data-"+t),i&&this._dom.removeAttribute("data-"+t)):(this._root.dom.setAttribute("data-"+t,e),i&&this._dom.setAttribute("data-"+t,e))},e.prototype.clearDefs=function(){PP.clearChildren(this._defs)},e.prototype.$_clearDefs=function(t){for(var e=this._defs.children||[],i=e.length-1;i>=0;i--)e[i].hasAttribute(t)&&e[i].remove()},e.prototype.clearAssetDefs=function(){this.$_clearDefs(LP.ASSET_KEY)},e.prototype.clearTemporaryDefs=function(){this.$_clearDefs(LP.TEMP_KEY)},e.prototype.appendDom=function(t){return t&&this._htmlRoot.append(t),t},e.prototype.addElement=function(t){return t&&this._root.add(t)},e.prototype.setPointerHandler=function(t){this._pointerHandler=t},e.prototype.invalidate=function(t){void 0===t&&(t=!1),t||!this._invalidateLock&&!this._dirty&&this._inited?(this._dirty=!0,this._requestTimer||this._testing||this.$_requestRender()):this._invalidateLock&&(this._lockDirty=!0)},e.prototype.invalidateLayout=function(t){void 0===t&&(t=!1),this.invalidate(t)},e.prototype.setLock=function(){this._invalidateLock=!0},e.prototype.releaseLock=function(t){void 0===t&&(t=!0),this._invalidateLock&&(this._invalidateLock=!1),this._lockDirty&&t&&this.invalidate(),this._lockDirty=!1},e.prototype.lock=function(t){this.setLock();try{t(this)}finally{this.releaseLock()}},e.prototype.silentLock=function(t){this.setLock();try{t(this)}finally{this.releaseLock(!1)}},e.prototype.getBounds=function(){return this._dom.getBoundingClientRect()},e.prototype.setAnimation=function(t){this._toAnimation=t||0},e.prototype.fling=function(t,e){},e.prototype.getCssVar=function(t){var e=this._cssVars[t];return t in this._cssVars?this._cssVars[t]:(e=getComputedStyle(this._root.dom).getPropertyValue(t),this._cssVars[t]=e,e)},e.prototype.clipBounds=function(t,e,i,n,r){void 0===t&&(t=NaN),void 0===e&&(e=NaN),void 0===i&&(i=NaN),void 0===n&&(n=NaN),void 0===r&&(r=0);var o=new TP(this.doc(),t,e,i,n,r,r);return this._defs.appendChild(o.dom),o},e.prototype.clipCircle=function(){var t=new IP(this.doc());return this._defs.appendChild(t.dom),t},e.prototype.addDef=function(t){this._defs.appendChild(t)},e.prototype.removeDef=function(t){if(Xx(t))for(var e in this._defs.children)if(e instanceof Element&&e.id===t){t=e;break}t instanceof Element&&this._defs.removeChild(t)},e.prototype.containerToElement=function(t,e,i){var n=this._container.getBoundingClientRect(),r=t.getBounds();return{x:e-r.x+n.x,y:i-r.y+n.y}},e.prototype.svgToElement=function(t,e,i){var n=this._svg.getBoundingClientRect(),r=t.getBounds();return{x:e-r.left+n.left,y:i-r.top+n.top}},e.prototype.elementToSvg=function(t,e,i){var n=this._svg.getBoundingClientRect(),r=t.getBounds();return{x:e+r.left-n.left,y:i+r.top-n.top}},e.prototype._setTesting=function(){this._testing=!0,LP.TESTING=!0},e.prototype._setSize=function(t,e){isNaN(t)||(this._container.style.width=t+"px"),isNaN(e)||(this._container.style.height=e+"px")},e.prototype.$_addListener=function(t,e,i,n){n?t.addEventListener(e,i,{passive:!0}):t.addEventListener(e,i)},e.prototype._resigterEventHandlers=function(t){window.addEventListener("resize",this._windowResizeHandler),this.$_addListener(t,"click",this._clickHandler),this.$_addListener(t,"dblclick",this._dblClickHandler),this.$_addListener(t,"touchmove",this._touchMoveHandler,!0),this.$_addListener(t,"pointerdown",this._pointerDownHandler),this.$_addListener(t,"pointermove",this._pointerMoveHandler),this.$_addListener(t,"pointerup",this._pointerUpHandler),this.$_addListener(t,"pointercancel",this._pointerCancelHandler),this.$_addListener(t,"pointerleave",this._pointerLeaveHandler),this.$_addListener(t,"keypress",this._keyPressHandler),this.$_addListener(t,"wheel",this._wheelHandler,!0)},e.prototype._unresigterEventHandlers=function(t){window.removeEventListener("resize",this._windowResizeHandler),t.removeEventListener("click",this._clickHandler),t.removeEventListener("dblclick",this._dblClickHandler),t.removeEventListener("touchmove",this._touchMoveHandler),t.removeEventListener("pointerdown",this._pointerDownHandler),t.removeEventListener("pointermove",this._pointerMoveHandler),t.removeEventListener("pointerup",this._pointerUpHandler),t.removeEventListener("pointercancel",this._pointerCancelHandler),t.removeEventListener("pointerleave",this._pointerLeaveHandler),t.removeEventListener("keypress",this._keyPressHandler),t.removeEventListener("wheel",this._wheelHandler)},e.prototype._prepareRenderers=function(t){},e.prototype._initControl=function(t,e,i){if(!this._inited){e instanceof HTMLDivElement?this._container=e:this._container=t.getElementById(e),this._container instanceof HTMLDivElement||XS(gS.invalidOuterDiv,e);var n=this._container.ownerDocument,r=this._dom=n.createElement("div");Kx(r.style,{position:"relative",width:"100%",height:"100%",boxSizing:"border-box",overflow:"hidden","-webkit-touch-callout":"none","-webkit-user-select":"none","user-select":"none","-webkit-tap-highlight-color":"rgba(0, 0, 0, 0)"}),r.className=i,this._container.appendChild(r);var o=this._svg=n.createElementNS(zx,"svg");o.classList.add("rct-svg"),o.style.setProperty("overflow","visible","important"),o.setAttribute("width","100%"),o.setAttribute("height","100%");var s=n.createElement("desc");s.textContent="Created by RealChart v1.1.12",o.appendChild(s);var a=this._defs=n.createElementNS(zx,"defs");this._initDefs(n,a),o.appendChild(a),r.appendChild(o),this._root=new OP(this),o.appendChild(this._root._dom),this._htmlRoot=n.createElement("div"),r.appendChild(this._htmlRoot),Kx(this._htmlRoot.style,{position:"absolute"})}},e.prototype._initDefs=function(t,i){var n=t.createElementNS(zx,"filter");n.setAttribute("id",e.SHADOW_FILTER);var r=t.createElementNS(zx,"feGaussianBlur");r.setAttribute("stdDeviation","1.5"),r.setAttribute("in","SourceAlpha"),n.appendChild(r);var o=t.createElementNS(zx,"feOffset");o.setAttribute("dx","1"),o.setAttribute("dy","1"),o.setAttribute("result","offsetblur"),n.appendChild(o);var s=t.createElementNS(zx,"feFlood");s.setAttribute("flood-color","#000"),n.appendChild(s);var a=t.createElementNS(zx,"feComposite");a.setAttribute("in2","offsetblur"),a.setAttribute("operator","in"),n.appendChild(a);var l=t.createElementNS(zx,"feMerge"),u=t.createElementNS(zx,"feMergeNode"),h=t.createElementNS(zx,"feMergeNode");h.setAttribute("in","SourceGraphic"),l.appendChild(u),l.appendChild(h),n.appendChild(l),i.appendChild(n)},e.prototype._render=function(){this.$_render()},e.prototype.$_requestRender=function(){var t=this;this.orphaned||(window.requestAnimationFrame?this._requestTimer=window.requestAnimationFrame((function(){return t.$_render()})):this._requestTimer=setTimeout((function(){t.$_render()}),0))},e.prototype.updateNow=function(){this.$_render()},e.prototype.$_render=function(){if(!this.orphaned)if(+new Date<=this._toAnimation)this.$_requestRender();else{_S.LOGGING&&console.time("render chart");try{this._doBeforeRender();var t=this._dom.getBoundingClientRect(),e=this._svg.getBoundingClientRect(),i=this._svg.clientWidth,n=this._svg.clientHeight;Kx(this._htmlRoot.style,{left:MS(e.left-t.left),top:MS(e.top-t.top)}),this._doRenderBackground(this._container.firstElementChild,this._root,i,n);var r=this._padding=PP.getPadding(this._root.dom);this._doRender({x:r.left,y:r.top,width:i-r.left-r.right,height:n-r.top-r.bottom})}finally{this.loaded=!0,this._dirty=!1,this._requestTimer=null,this._doAfterRender(),_S.LOGGING&&console.timeEnd("render chart")}}},e.prototype._doBeforeRender=function(){},e.prototype._doAfterRender=function(){},e.prototype._doRenderBackground=function(t,e,i,n){},e.prototype._windowResized=function(){this.invalidateLayout()},e.prototype.toOffset=function(t){var e=this._container.getBoundingClientRect();return t.pointX=t.clientX-e.left,t.pointY=t.clientY-e.top,t},e.prototype.setPointerCapture=function(t){this._dom.setPointerCapture(t.pointerId)},e.prototype.releasePointerCapture=function(t){this._dom.releasePointerCapture(t.pointerId)},e.CLASS_NAME="rct-control",e.SHADOW_FILTER="rr-chart-shadow-filter",e._animatable=!0,e}(bS),LP=function(t){function e(e,i,n){void 0===n&&(n=xS);var r=t.call(this)||this;return r._visible=!0,r._zIndex=0,r._scaleX=1,r._scaleY=1,r._rotation=0,r._styles={},r._styleDirty=!1,r._dom=e.createElementNS(zx,n||"g"),(r._styleName=i||"")&&r.setAttr("class",r._styleName),r}return Dx(e,t),e.prototype._doDestroy=function(){this.remove()},Object.defineProperty(e.prototype,"doc",{get:function(){return this._dom.ownerDocument},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dom",{get:function(){return this._dom},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return this._parent},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"control",{get:function(){return this._parent&&this._parent.control},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"zIndex",{get:function(){return this._zIndex},set:function(t){t!==this._zIndex&&(this._zIndex=t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"x",{get:function(){return this._x},set:function(t){t!==this._x&&(this._x=t,this.setAttr("x",this._x))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tx",{get:function(){return this._tx},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"y",{get:function(){return this._y},set:function(t){t!==this._y&&(this._y=t,this.setAttr("y",this._y))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ty",{get:function(){return this._ty},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return this._width},set:function(t){t!==this._width&&(this._width=t,this.setAttr("width",isNaN(t)?"":t))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this._height},set:function(t){t!==this._height&&(this._height=t,this.setAttr("height",isNaN(t)?"":t))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tright",{get:function(){return this._tx+this._dom.getBBox().width},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tbottom",{get:function(){return this._ty+this._dom.getBBox().height},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"visible",{get:function(){return this._visible},set:function(t){this.setVis(t)},enumerable:!1,configurable:!0}),e.prototype.setVis=function(t){return t!==this._visible&&(this._visible=t,this._dom&&(this._dom.style.display=t?"":"none")),this._visible},Object.defineProperty(e.prototype,"rotation",{get:function(){return this._rotation},set:function(t){t!=this._rotation&&(this._rotation=t,this._updateTransform())},enumerable:!1,configurable:!0}),e.prototype.setRotation=function(t,e,i){return t===this._originX&&e===this._originY&&i===this._rotation||(this._originX=t,this._originY=e,this._rotation=i,this._updateTransform()),this},e.prototype.getStyle=function(t){return window.getComputedStyle(this._dom).getPropertyValue(t)},e.prototype.hasStyle=function(t){return this.dom.classList.contains(t)},e.prototype.add=function(t){return t&&t._parent!==this&&(t._parent=this,this._dom.appendChild(t._dom),t._doAttached(this)),t},e.prototype.insertChild=function(t,e){return t&&t._parent!==this&&(t._parent=this,this._dom.insertBefore(t._dom,e._dom),t._doAttached(this)),t},e.prototype.insertAfter=function(t,e){return t&&t._parent!==this&&(t._parent=this,e._dom.nextSibling?this._dom.insertBefore(t._dom,e._dom.nextSibling):this._dom.appendChild(t._dom),t._doAttached(this)),t},e.prototype.insertFirst=function(t){return t&&t._parent!==this&&(t._parent=this,this._dom.insertBefore(t._dom,this._dom.firstChild),t._doAttached(this)),t},e.prototype.appendElement=function(t,e){var i=t.createElementNS(zx,e);return this._dom.appendChild(i),i},e.prototype.insertElement=function(t,e,i){var n=t.createElementNS(zx,e);return this._dom.insertBefore(n,i),n},e.prototype.remove=function(){return this._parent&&(this._parent._dom.removeChild(this._dom),this._parent=null,this._doDetached(this)),this},e.prototype.getAttr=function(t){return this._dom.getAttribute(t)},e.prototype.setAttr=function(t,e){return this._dom.setAttribute(t,e),this},e.prototype.setAttrEx=function(t,e){return TS(e)?this._dom.removeAttribute(t):this._dom.setAttribute(t,e),this},e.prototype.setAttrs=function(t){for(var e in t)this._dom.setAttribute(e,t[e]);return this},e.prototype.unsetAttr=function(t){return this._dom.removeAttribute(t),this},e.prototype.getBounds=function(){return this._dom.getBoundingClientRect()},e.prototype.setBounds=function(t,e,i,n){return this.trans(t,e),this.resize(i,n),this},e.prototype.setRect=function(t){return this.trans(t.x,t.y),this.resize(t.width,t.height),this},e.prototype.getRect=function(){return{x:this._tx,y:this._ty,width:this.width,height:this.height}},e.prototype.getSize=function(){return{width:this.width,height:this.height}},e.prototype.getBBox=function(){return this._dom.getBBox()},e.prototype.getBBoxEx=function(){var t=this._dom.getBBox();return t.x+=this._tx,t.y+=this._ty,t},e.prototype.inflateBBox=function(t,e){var i=this._dom.getBBox();return i.x+=this._tx,i.y+=this._ty,i.x-=t,i.width+=2*t,i.y-=e,i.height+=2*e,i},e.prototype.controlToElement=function(t,e){return this.control.containerToElement(this,t,e)},e.prototype.svgToElement=function(t,e){return this.control.svgToElement(this,t,e)},e.prototype.elementToSvg=function(t,e){return this.control.elementToSvg(this,t,e)},e.prototype.move=function(t,e){return this.x=t,this.y=e,this},e.prototype.setPos=function(t,e){this._x=t,this._y=e},e.prototype.setPosY=function(t){this._y=t},e.prototype.isDomAnimating=function(){return!!this._dom.getAnimations&&this._dom.getAnimations().length>0},e.prototype.rotate=function(t){return t!==this._rotation&&(this._rotation=t,this._updateTransform()),this},e.prototype.internalRotate=function(t){this._rotation=t},e.prototype.scale=function(t){return this._scaleX===t&&this._scaleY===t||(this._scaleX=this._scaleY=t,this._updateTransform()),this},e.prototype.trans=function(t,e){return t=_S.isValidNum(t)?t:this._tx,e=_S.isValidNum(e)?e:this._ty,t===this._tx&&e===this._ty||(this._tx=t,this._ty=e,this._updateTransform()),this},e.prototype.transp=function(t){return this.trans(t.x,t.y)},e.prototype.transEx=function(t,e,i,n){var r=this;if(void 0===i&&(i=0),void 0===n&&(n=!0),t=_S.isValidNum(t)?t:this._tx,e=_S.isValidNum(e)?e:this._ty,t!==this._tx||e!==this._ty){if(i>0){var o=this._dom.animate([{transform:"translate(".concat(this._tx||0,"px,").concat(this._ty||0,"px)")},{transform:"translate(".concat(t,"px,").concat(e,"px)")}],{duration:i,fill:"none"});n&&(null==o||o.addEventListener("finish",(function(){var t;return null===(t=r.control)||void 0===t?void 0:t.invalidateLayout()})))}this._tx=t,this._ty=e,this._updateTransform()}return this},e.prototype.transEx2=function(t,e,i,n){var r=this;void 0===i&&(i=0),void 0===n&&(n=!0);var o=_S.isValidNum(t)?t:this._tx,s=_S.isValidNum(e)?e:this._ty;if(o===this._tx&&s===this._ty)return this;if(i>0){var a=this._rotation||0,l="translate(".concat(this._tx||0,"px, ").concat(this._ty||0,"px)")+(a?" rotate(".concat(a,"deg)"):""),u="translate(".concat(o,"px, ").concat(s,"px)")+(a?" rotate(".concat(a,"deg)"):"");this._dom.style.transformOrigin="".concat(this._originX||0,"px ").concat(this._originY||0,"px");var h=this._dom.animate([{transform:l},{transform:u}],{duration:i,fill:"none"});n&&h.addEventListener("finish",(function(){var t;r._dom.style.transformOrigin="",null===(t=r.control)||void 0===t||t.invalidateLayout()}))}return this._tx=o,this._ty=s,this._updateTransform(),this},e.prototype.transX=function(t){return t!==this._tx&&_S.isValidNum(t)&&(this._tx=t,this._updateTransform()),this},e.prototype.transY=function(t){return t!==this._ty&&_S.isValidNum(t)&&(this._ty=t,this._updateTransform()),this},e.prototype.shiftY=function(t){return this.transY(this._ty+t)},e.prototype.resize=function(t,e,i){void 0===i&&(i=!0);var n=!1;return t!==this._width&&(this._width=Math.max(0,t),i&&this.setAttrEx("width",this._width),n=!0),e!==this._height&&(this._height=Math.max(0,e),i&&this.setAttrEx("height",this._height),n=!0),n},e.prototype.appendDom=function(t){return t&&this._dom.appendChild(t),t},e.prototype.insertDom=function(t,e){return t&&this._dom.insertBefore(t,e),t},e.prototype.clearDom=function(){for(var t,e=this._dom;t=e.lastChild;)e.removeChild(t)},e.prototype.containsClass=function(t){return this._dom.classList.contains(t)},e.prototype.addClass=function(t){return this._dom.classList.add(t),this},e.prototype.removeClass=function(t){return this._dom.classList.remove(t),this},e.prototype.saveStyles=function(){this._saveStyle=this._dom.getAttribute("style")||null,this._saveClass=this._dom.getAttribute("class")},e.prototype.restoreStyles=function(){this._saveStyle!==xS&&(this._dom.setAttribute("style",this._saveStyle),delete this._saveStyle),this._saveClass&&(this._dom.setAttribute("class",this._saveClass),delete this._saveClass)},e.prototype.internalClearStyles=function(){var t=this.dom.style;for(var e in this._styles)t.removeProperty(HS(e));this._styles={}},e.prototype.clearStyles=function(){var t=this.dom.style,e=!1;for(var i in this._styles)t.removeProperty(HS(i)),e=!0;return this._styles={},e&&(this._styleDirty=!0),e},e.prototype.clearStyle=function(t){var e,i,n=!1;if(t){var r=this.dom.style;try{for(var o=Ix(t),s=o.next();!s.done;s=o.next()){var a=s.value;a in this._styles&&(r.removeProperty(HS(a)),delete this._styles[a],n=!0)}}catch(t){e={error:t}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(e)throw e.error}}n&&(this._styleDirty=!0)}return n},e.prototype.internalSetStyles=function(t){if(t){var e=this.dom.style;for(var i in t)e[i]=this._styles[i]=t[i]}},e.prototype.internalImportantStylesOrClass=function(t){if(Xx(t))t&&this._dom.classList.add(t);else if(Gx(t)){var e=this.dom.style;for(var i in t)e.setProperty(HS(i),this._styles[i]=t[i],"important")}},e.prototype.setStyles=function(t){var e=!1;if(t){var i=this.dom.style;for(var n in t){var r=t[n];this._styles[n]!==r&&(this._styles[n]=r,"rx"==n?this._dom.setAttribute(n,r):i[n]=r,e=!0)}e&&(this._styleDirty=!0)}return e},e.prototype.resetStyles=function(t){var e=this.clearStyles();return this.setStyles(t)||e},e.prototype._resetClass=function(){this._styleName?this.setAttr("class",this._styleName):this.unsetAttr("class")},e.prototype.clearStyleAndClass=function(){this.clearStyles(),this._resetClass()},e.prototype.internalClearStyleAndClass=function(){this.internalClearStyles(),this._resetClass()},e.prototype.setStyleOrClass=function(t){Xx(t)?(this._resetClass(),t&&this._dom.classList.add(t)):this.resetStyles(t)},e.prototype.internalSetStyleOrClass=function(t){Xx(t)?t&&this._dom.classList.add(t):this.internalSetStyles(t)},e.prototype.addStyleOrClass=function(t){Xx(t)?t&&this._dom.classList.add(t):Gx(t)&&this.setStyles(t)},e.prototype.setClass=function(t){this.setAttr("class",t)},e.prototype.setStyle=function(t,e){var i=!1;return e!==this._styles[t]&&(i=this._styleDirty=!0,this._styles[t]=e,this.dom.style[t]=e),i},e.prototype.internalSetStyle=function(t,e){e!==this._styles[t]&&(this._styles[t]=e,this.dom.style[t]=e)},e.prototype.setColor=function(t){this.dom.style.fill=this.dom.style.stroke=this._styles.fill=this._styles.stroke=t},e.prototype.setFill=function(t){this.dom.style.fill=this._styles.fill=t},e.prototype.setStroke=function(t){this.dom.style.stroke=this._styles.stroke=t},e.prototype.setTransparent=function(t){this.dom.style.setProperty("fill","transparent",t?"important":""),this.dom.style.setProperty("stroke","none",t?"important":"")},e.prototype.textAlign=function(){return this._styles.textAlign},e.prototype.setData=function(t,e){null==e?this.dom.removeAttribute("data-"+t):this.dom.setAttribute("data-"+t,uS(e,""))},e.prototype.unsetData=function(t){this.dom.removeAttribute("data-"+t)},e.prototype.setBoolData=function(t,e){e?this.dom.setAttribute("data-"+t,""):this.dom.removeAttribute("data-"+t)},e.prototype.hasData=function(t){return null!=this.dom.getAttribute("data-"+t)},e.prototype.removeLater=function(t,e){var i=this;if(this._parent)if(t>0){var n=this._dom.animate([{},{opacity:0}],{duration:t,fill:"none"});null==n||n.addEventListener("finish",(function(){i.remove(),null==e||e(i)}))}else this.remove();return this},e.prototype.hide=function(t){var e=this;if(this._parent)if(t>0){var i=this._dom.animate([{},{opacity:0}],{duration:t,fill:"none"});null==i||i.addEventListener("finish",(function(){delete e.hiding,e.setVis(!1)})),this.hiding=!0}else this.setVis(!1);return this},e.prototype.clipRect=function(t,e,i,n,r){void 0===r&&(r=0);var o=this.control.clipBounds(t,e,i,n,r);return this.setClip(o),o},e.prototype.setClip=function(t){t?this.setAttr("clip-path","url(#"+(t.id||t)+")"):this.unsetAttr("clip-path")},e.prototype.setTemporary=function(){return this.setAttr(e.TEMP_KEY,1),this},e.prototype.setCursor=function(t){this._dom.style.cursor=t},e.prototype.ignorePointer=function(){this._dom.style.pointerEvents="none"},e.prototype.contains=function(t){return this._dom.contains(t)},e.prototype.front=function(t,e){if(this.parent){var i=this.parent._dom,n=this._dom,r=t.length;if(e){var o=e.sort((function(e,i){return t.indexOf(e)-t.indexOf(i)}))[e.length-1];this!==o&&(n.remove(),o===t[r-1]?i.appendChild(n):i.insertBefore(n,t[t.indexOf(o)+1].dom))}else r>1&&n!==i.lastElementChild&&(n.remove(),i.appendChild(n))}},e.prototype.back=function(t){if(this.parent&&t.length>1){var e=t.indexOf(this);this._dom.remove(),e<t.length-1?this.parent.dom.insertBefore(this._dom,t[e+1].dom):this.parent.dom.appendChild(this._dom)}},e.prototype.invalidate=function(){var t;null===(t=this.control)||void 0===t||t.invalidateLayout()},e.prototype.sort=function(t){var e=this;t.forEach((function(t){return e._dom.appendChild(t._dom)}))},e.prototype.getParent=function(t){for(var e=this._parent;e;){if(e instanceof t)return e;e=e._parent}},e.prototype._testing=function(){return e.TESTING},e.prototype._doAttached=function(t){},e.prototype._doDetached=function(t){},e.prototype._updateTransform=function(){this._dom.setAttribute("transform",this.getTransform())},e.prototype.getTransform=function(){var t=this._dom,e=this._tx,i=this._ty,n=[];(_S.isValidNum(e)||_S.isValidNum(i))&&(n=["translate("+(e=e||0)+","+(i=i||0)+")"]),_S.isNotEmpty(this._matrix)&&n.push("matrix("+this._matrix.join(",")+")"),this._rotation&&n.push("rotate("+this._rotation+" "+_S.pick(this._originX,t.getAttribute("x"),0)+" "+_S.pick(this._originY,t.getAttribute("y")||0)+")");var r=_S.getNumber(this._scaleX,1),o=_S.getNumber(this._scaleY,1);return 1===r&&1===o||n.push("scale("+r+" "+o+")"),n.length?n.join(" "):""},e.DEBUGGING=!1,e.TESTING=!1,e.ASSET_KEY="_asset_",e.TEMP_KEY="_temp_",e}(bS),NP=function(t){function e(e,i){return t.call(this,e,i,"g")||this}return Dx(e,t),e}(LP),OP=function(t){function e(e){var i=t.call(this,e.doc(),"rct-root")||this;return i._control=e,i}return Dx(e,t),Object.defineProperty(e.prototype,"control",{get:function(){return this._control},enumerable:!1,configurable:!0}),e}(LP),MP=function(t){function e(e){var i=t.call(this,e,xS,"clipPath")||this,n=i._id=_S.uniqueKey()+"-";return i.setAttr("id",n),i}return Dx(e,t),Object.defineProperty(e.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),e}(LP),TP=function(t){function e(e,i,n,r,o,s,a){void 0===i&&(i=NaN),void 0===n&&(n=NaN),void 0===r&&(r=NaN),void 0===o&&(o=NaN),void 0===s&&(s=0),void 0===a&&(a=0);var l=t.call(this,e)||this,u=l._rect=new LP(e,null,"rect");return u.setAttr("fill","none"),s>0&&u.setAttr("rx",String(s)),a>0&&u.setAttr("ry",String(a)),isNaN(i)||u.setBounds(i,n,r,o),l.add(u),l}return Dx(e,t),e.prototype.setBounds=function(t,e,i,n){return this._rect.move(t,e),this._rect.resize(i,n),this},e.prototype.resize=function(t,e,i){return this._rect.resize(t,e)},Object.defineProperty(e.prototype,"x",{get:function(){return this._rect.x},set:function(t){this._rect.x=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"y",{get:function(){return this._rect.y},set:function(t){this._rect.y=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return this._rect.width},set:function(t){this._rect.width=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this._rect.height},set:function(t){this._rect.height=t},enumerable:!1,configurable:!0}),e}(MP),RP=function(t){function e(e,i,n){void 0===i&&(i=void 0),void 0===n&&(n=void 0);var r=t.call(this,e,i,"path")||this;return n&&r.setPath(n),r}return Dx(e,t),e.prototype.path=function(){return this._path},e.prototype.setPath=function(t){var e=Xx(t)?t:t.join(" ");return e!==this._path&&this.setAttr("d",this._path=e),this},e}(LP);!function(t){function e(e){var i=t.call(this,e)||this;return i._path=new RP(e),i.add(i._path),i}Dx(e,t),e.prototype.setPath=function(t){this._path.setPath(t)}}(MP);var BP,DP,FP,IP=function(t){function e(e){var i=t.call(this,e)||this;return i.add(i._circle=new LP(e,null,"circle")),i}return Dx(e,t),e.prototype.setCircle=function(t,e,i){this._circle.setAttrs({cx:t,cy:e,r:i})},e}(MP),jP=function(){function t(){this.dragging=!1}return t.prototype.start=function(t,e,i,n,r){return this.cancel(),!!this._doStart(t,e,i,n,r)&&(this.dragging=!0,this._showFeedback(n,r),!0)},t.prototype.drag=function(t,e,i,n,r){return!(!this.dragging||!this._doDrag(t,e,i,n,r))&&(this._moveFeedback(n,r),!0)},t.prototype.cancel=function(){if(this.dragging)try{this.dragging=!1,this._doCanceled()}finally{this.end(-1,-1)}},t.prototype.drop=function(t,e,i){if(this.dragging)try{this.dragging=!1,this._canAccept(t,e,i)?this._doCompleted(t,e,i):this._doCanceled()}finally{this.end(e,i)}},t.prototype.end=function(t,e){try{this.dragging=!1,this._hideFeedback()}finally{this._doEnded(t,e)}},t.prototype._canAccept=function(t,e,i){return!0},t.prototype._showFeedback=function(t,e){},t.prototype._moveFeedback=function(t,e){},t.prototype._hideFeedback=function(){},t.prototype._doStart=function(t,e,i,n,r){return!0},t.prototype._doCanceled=function(){},t.prototype._doCompleted=function(t,e,i){},t.prototype._doEnded=function(t,e){},t}();!function(t){t.START="start",t.MIDDLE="middle",t.END="end"}(BP||(BP={})),function(t){t.TOP="top",t.MIDDLE="middle",t.BOTTOM="bottom"}(DP||(DP={})),function(t){t.TRUNCATE="truncate",t.WRAP="wrap",t.ELLIPSIS="ellipsis"}(FP||(FP={}));var $P=function(t){function e(e,i){void 0===i&&(i=void 0);var n=t.call(this,e,i,"text")||this;return n._layout=DP.TOP,n._overflow=FP.WRAP,n._dirty=!0,n._text="",n.anchor=BP.MIDDLE,n}return Dx(e,t),Object.defineProperty(e.prototype,"text",{get:function(){return this._text},set:function(t){(t=t||"")!==this._text&&(this._dirty=!0,this.dom.textContent=this._text=t,this.layoutText())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"anchor",{get:function(){return this.getAttr("text-anchor")},set:function(t){t!==this.anchor&&this.setAttr("text-anchor",t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"layout",{get:function(){return this._layout},set:function(t){t!==this._layout&&(this._layout=t,this.layoutText())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"overflow",{get:function(){return this._overflow},set:function(t){t!==this._overflow&&(this._overflow=t,this.layoutText())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"opacity",{get:function(){return this.getAttr("fill-opacity")},set:function(t){this.setAttr("fill-opacity",t)},enumerable:!1,configurable:!0}),e.prototype.getAscent=function(t){return.72*t},e.prototype.layoutText=function(t){var e,i=this.getBBox(),n=this.getAscent(isNaN(t)?i.height:t);switch(this._layout){case DP.MIDDLE:e=Math.floor(n/2);break;case DP.BOTTOM:e=0;break;default:e=Math.ceil(n)}this.y=e},e.prototype.isFitIn=function(t){return this.calcWidth()>=t},e.prototype.calcWidth=function(){var t=this._text.length;return t&&this.dom.getSubStringLength(0,t)},e.prototype.calcRangeWidth=function(t,e){return void 0===t&&(t=0),void 0===e&&(e=Number.MAX_SAFE_INTEGER),t=oS(0,t),(e=rS(this._text.length,e))>t?this.dom.getSubStringLength(t,e-t):0},e.prototype.truncate=function(t,e){var i=this._text;if(i){var n,r=this.dom,o=0,s=i.length;do{n=Math.ceil((o+s)/2),r.getSubStringLength(0,n)>t?s=n-1:o=n}while(o<s);for(this.text=i.substring(0,o)+"…";o>0&&this.calcWidth()>t;)this.text=i.substring(0,--o)+"…"}},e.prototype.setContrast=function(t,e,i){return this.setStyleOrClass(SP.isBright(getComputedStyle(t).fill)?e:i),this},e.prototype.clearDom=function(){t.prototype.clearDom.call(this),this._dirty=!0},e.prototype.setStyles=function(e){var i=t.prototype.setStyles.call(this,e);return i&&this.layoutText(),i},e.prototype.applyStyles=function(e){t.prototype.setStyles.call(this,e)},e.prototype.setStyle=function(e,i){var n=t.prototype.setStyle.call(this,e,i);return n&&this.layoutText(),n},e.prototype.getBBox=function(){return(this._dirty||this._styleDirty)&&(this._bounds=this.dom.getBBox(),this._dirty=this._styleDirty=!1),this._bounds},e.prototype.getBBoundsTest=function(){return(this._dirty||this._styleDirty)&&(this._bounds={x:this.x,y:this.y,width:100,height:30},this._dirty=this._styleDirty=!1),this._bounds},e.prototype.stain=function(){this._dirty=!0},e}(LP),zP="$_TH",HP="$_TW",GP=function(){function t(){}return t.prototype.tag=function(){return""},t.prototype.parse=function(t){return this.text=t,this._doParse(t),this},t.prototype.getText=function(t,e){var i=this._literals,n=this.text;if(i&&e.callback)for(var r=0;r<i.length;r+=4){var o=e.callback(t,i[r+1]);if("number"==typeof o&&!isNaN(o)||"bigint"==typeof o)(s=i[3]?oP.getFormatter(i[3]):e.numberFormatter)&&(o=s.toStr(o));else if(o instanceof Date){var s;(s=i[3]?xP.getFormatter(i[3]):e.timeFormatter)&&(o=s.toStr(o,e.startOfWeek||0))}else null==o&&(o=i[r+2]||"");n=n.replace(i[r],o)}return n},t.prototype.prepareSpan=function(t,e,i){var n=this.getText(e,i);return t.textContent=n,t},t.prototype._doParse=function(t){this._literals=[];for(var e=0;e<t.length;){var i=t.indexOf("${",e);if(i<0&&(i=t.indexOf("%{",e)),i<0)break;var n=t.indexOf("}",i+2);if(n<0)break;var r=t.substring(i,n+1),o=r.substring(2,r.length-1),s=o.indexOf(";");if(s>0){var a=o.indexOf(";",s+1);a>=s?this._literals.push(r,o.substring(0,s),o.substring(s+1,a),o.substring(a+1)):this._literals.push(r,o.substring(0,s),o.substring(s+1),xS),0===this._literals[2].length&&(this._literals[2]=xS)}else this._literals.push(r,o,xS,xS);e=n+1}return 0==this._literals.length&&(this._literals=null),this},t}(),WP=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.prepareSpan=function(t,e,i){var n=this.getText(e,i),r=n.indexOf(">")+1,o=n.indexOf(this.tag(),r);return this._doPrepare(t,n,r,o),t},e.prototype._doPrepare=function(t,e,i,n){t.textContent=e.substring(i,n);var r=e.indexOf("style=");if(r>0&&r<i){var o=e[r+6],s=e.indexOf(o,r+7);s>0&&s<i&&t.setAttribute("style",e.substring(r+7,s))}},e}(GP),YP=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.tag=function(){return"</t>"},e}(WP),XP=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.tag=function(){return"</b>"},e.prototype._doPrepare=function(e,i,n,r){t.prototype._doPrepare.call(this,e,i,n,r),e.setAttribute("class","rct-text-bold")},e}(WP),UP=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.tag=function(){return"</i>"},e.prototype._doPrepare=function(e,i,n,r){t.prototype._doPrepare.call(this,e,i,n,r),e.setAttribute("class","rct-text-italic")},e}(WP),qP=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.target="_blank",e}return Dx(e,t),e.prototype.tag=function(){return"</a>"},e.prototype._doPrepare=function(e,i,n,r){var o=this;i.substring(2,n-1).trim().split(/\s+/g).forEach((function(t){var e=t.indexOf("=");if(e>0){var i=t.substring(0,e),n=t.substring(e+1,t.length),r=n.substring(1,n.length-1);switch(i){case"href":o.url=r;break;case"target":o.target=r}}})),t.prototype._doPrepare.call(this,e,i,n,r),e.setAttribute("class","rct-text-link")},e}(WP),ZP={t:YP,b:XP,i:UP,a:qP},KP=function(){function t(){}return Object.defineProperty(t.prototype,"words",{get:function(){return this._words.slice()},enumerable:!1,configurable:!0}),t.prototype.parse=function(t){function e(t){var e=i.length;e>0&&""===i[e-1].type?i[e-1].text+=t:i.push((new GP).parse(t))}for(var i=this._words=[],n=0;n<t.length;){if("<"==t[n]){var r=t[n+1],o=void 0;if(r in ZP)if((u=t.indexOf(">",n+2))>=0){var s="</"+r+">",a=t.indexOf(s,u+1);if(a>=0){var l=t.substring(n,a+s.length);o=(new ZP[r]).parse(l),n+=l.length}}if(!o){e(t.substring(n));break}this._words.push(o)}else{var u;if(!((u=t.indexOf("<",n+1))>=0)){e(t.substring(n));break}e(t.substring(n,u)),n=u}}return this},t}(),JP=/<br.*?>|\r\n|\n/,QP=function(){function t(t){this.setFormat(t)}return t.prototype.setFormat=function(t){t!==this._format&&this.$_parse(this._format=null!=t?String(t):t)},t.prototype.lines=function(){return this._lines.slice()},t.prototype.build=function(t,e,i,n,r){var o,s,a=t.doc,l=aS(this.lineHeight,1),u=this._lines,h=u.length,p=[],c=[];t.clearDom(),n=n||t;for(var f=t.getStyle("writing-mode"),_=f===qS||f===ZS,d=0;d<h;d++){var y=u[d],g=0,v=0,m=null;try{for(var b=(o=void 0,Ix(y.words)),w=b.next();!w.done;w=b.next()){var x=w.value,S=(k=x.prepareSpan(t.appendElement(a,"tspan"),n,r)).getBBox();if(k[HP]=S.width,k[zP]=S.height,_?(g=oS(g,k[HP]),v+=k[zP]):(g+=k[HP],v=oS(v,k[zP])),m||(m=k),x instanceof qP){var P=a.createElementNS(zx,"a");P.setAttribute("href",x.url),P.setAttribute("target",x.target),P.appendChild(k),t.appendDom(P)}}}catch(t){o={error:t}}finally{try{w&&!w.done&&(s=b.return)&&s.call(b)}finally{if(o)throw o.error}}c.push(m),y[zP]=v*l,y[HP]=g*l,p.push(0==d?y[HP]/2:y[HP])}if(h>0){var V=u[0];for(d=1;d<c.length;d++)if(c[d]){var k;g=0,v=0;if(_?null!=c[d-1]&&(g=Math.floor(V[HP]-t.getAscent(V[HP]))+t.getAscent(u[d][HP])):v=V[zP]-t.getAscent(V[zP])+t.getAscent(u[d][zP]),null==c[0]&&c[d]==c.find((function(t){return null!=t})))(k=t.insertElement(a,"tspan",c[d])).textContent=".",k.style.fill="transparent",g+=(S=k.getBBox()).width,k[HP]=S.width,k[zP]=V[zP]=S.height,c[0]=k;switch(f){case qS:c[d].setAttribute("dx",String(g)),c[d].setAttribute("y","0");break;case ZS:c[d].setAttribute("dx",String(-g)),c[d].setAttribute("y","0");break;default:c[d].setAttribute("x","0"),c[d].setAttribute("dy",String(v))}V=u[d]}if(_){var A=t.parent.dom.classList.contains("rct-annotation"),C=t.getBBox().width;g=(m=jx(c,1)[0])[HP];if(A)m.setAttribute("dx",String(f===ZS?C-g/2:g/2));else switch(f){case qS:m.setAttribute("x",String((C-g)/-2));break;case ZS:m.setAttribute("x",String((C-g)/2))}}else t.layoutText(u[0][zP])}},t.prototype.layout=function(t,e,i,n,r){var o=t.getBBox(),s=0,a=0,l=t.getStyle("writing-mode");if(l===qS||l===ZS)switch(s=r.left+(i-r.left-r.right-o.width),e){case"center":t.anchor=BP.MIDDLE,a=r.top+(n-r.top-r.bottom)/2;break;case"right":t.anchor=BP.END,a=o.height-r.bottom;break;default:t.anchor=BP.START,a=r.top}else switch(a=r.top+(n-r.top-r.bottom-o.height)/2,e){case"center":t.anchor=BP.MIDDLE,s=r.left+(i-r.left-r.right)/2;break;case"right":t.anchor=BP.END,s=o.width-r.right;break;default:t.anchor=BP.START,s=r.left}t.trans(s,a)},t.prototype.$_parse=function(t){var e,i,n=this._lines=[];if(t){var r=t.split(JP);try{for(var o=Ix(r),s=o.next();!s.done;s=o.next()){var a=s.value;n.push((new KP).parse(a))}}catch(t){e={error:t}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(e)throw e.error}}}},t}(),tV=function(){function t(t){this.source=t}return t.prototype.hasDef=function(){return!0},t}(),eV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._setStops=function(t,e){e.setAttribute("id",this.source.id);var i=this.source.color,n=null==this.source.opacity?1:this.source.opacity,r=Wx(i)?$x([],jx(i),!1):[i,"white"],o=Wx(n)?$x([],jx(n),!1):Array(r.length).fill(n);1===r.length&&r.push("white"),r.forEach((function(i,n){!function(t,e,i,n,r){var o=t.createElementNS(zx,"stop");o.setAttribute("offset",String(i)),o.setAttribute("stop-color",n),o.setAttribute("stop-opacity",String(r)),e.appendChild(o)}(t,e,n/(r.length-1),i,null==o[n]?1:o[n])}))},e}(tV),iV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.getEelement=function(t,e){var i=t.createElementNS(zx,"linearGradient"),n=0,r=0,o=0,s=0;switch(this._setStops(t,i),e.dir){case"up":o=1;break;case"right":r=1;break;case"left":n=1;break;default:s=1}return i.setAttribute("x1",n),i.setAttribute("y1",o),i.setAttribute("x2",r),i.setAttribute("y2",s),i},e.TYPE="lineargradient",e}(eV),nV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.getEelement=function(t,e){var i=t.createElementNS(zx,"radialGradient");return TS(e.cx)||i.setAttribute("cx",e.cx),TS(e.cy)||i.setAttribute("cy",e.cy),TS(e.r)||i.setAttribute("r",e.r),this._setStops(t,i),i},e.TYPE="radialgradient",e}(eV),rV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.getEelement=function(t,i){var n,r,o,s,a=t.createElementNS(zx,"pattern"),l=t.createElementNS(zx,"path"),u=!1;if(a.setAttribute("id",i.id),a.setAttribute("patternUnits","userSpaceOnUse"),l.classList.add("rct-pattern"),+i.pattern>=0){var h=e.STOCK[+i.pattern%e.STOCK.length];n=h.path,r=h.style,u=!h.fill,o=h.width||20,s=h.height||20}else Xx(i.pattern)&&(n=i.pattern,o=i.width||i.height||20,s=i.height||i.width||20);a.setAttribute("width",String(o)),a.setAttribute("height",String(s)),l.setAttribute("d",n),r&&Kx(l.style,r),i.style&&Kx(l.style,i.style),u&&(l.style.fill="none");var p=i.backgroundStyle;if(Xx(p)||Gx(p)){var c=t.createElementNS(zx,"rect");a.append(c),c.style.fill=Xx(p)?p:p.fill,c.setAttribute("width",String(o)),c.setAttribute("height",String(s))}return a.append(l),a},e.TYPE="pattern",e.STOCK=[{path:"M 0 10 L 10 0 M -1 1 L 1 -1 M 9 11 L 11 9",width:10,height:10,style:{strokeWidth:"0.3px"}},{path:"M0 0 L0 3 L5.2 6 L10.4 3 L10.4 0 M5.2 6 L5.2 12 L0 15 L0 18 M5.2 12 L10.4 15 L10.4 18",width:10.4,height:18,style:{strokeWidth:"0.3px"}},{path:"M0 0h5v5H0zM5 5h5v5H5z",fill:!0,width:10,height:10},{path:"m5 .037 4.957 4.957L5 9.951.043 4.994z",fill:!0,width:10,height:10},{path:"M0 2.8 L5 0 L10 2.8 L10 14 L5 16.8 L0 14 L0 2.8 M5 0 L5 5.6 L0 8.4 L5 11.2 L5 16.8 M5 5.6 L10 8.4 L5 11.2",style:{strokeWidth:"0.3px"},width:10,height:16.8},{path:"m5 .037 4.957 4.957L5 9.951.043 4.994z",fill:!1,width:10,height:10,style:{strokeWidth:"0.3px"}},{path:"M 0 0 L 12 12 L 24 0 M 4 0 L 12 8 L 20 0 M 8 0 L 12 4 L 16 0 M 0 4 L 8 12 L 0 20 M 0 8 L 4 12 L 0 16 M 0 24 L 12 12 L 24 24 M 4 24 L 12 16 L 20 24 M 8 24 L 12 20 L 16 24 M 24 20 L 16 12 L 24 4 M 24 16 L 20 12 L 24 8",width:24,height:24,fill:!1,style:{strokeWidth:"0.4px"}},{path:"M10 2.52H0M0 7.48h10M7.48 10V0M2.52 0v10",style:{strokeWidth:"0.3px"},width:5,height:5},{path:"M-2.5 1.25l5 2.5L7.5 1.25l5 2.5 M-2.5 6.25l5 2.5 5-2.5 5 2.5 M-2.5 11.25l5 2.5 5-2.5 5 2.5 M-2.5 16.25l5 2.5 5-2.5 5 2.5",width:10,height:10,style:{strokeWidth:"0.3px"}},{path:"M25 1.95v.26c-.79 0-1.43.64-1.43 1.43 0 .25.15.62.33.8l.31.31c.25.27.31.65.16.98l-.06.11c-.18.32-.5.52-.87.54h-4.56v4.56c.02.26.17.5.39.63l.11.06c.21.1.52.05.68-.11l.31-.31c.27-.24.61-.39.98-.4.93 0 1.69.76 1.69 1.69 0 .93-.76 1.69-1.69 1.69-.36-.02-.71-.16-.98-.4l-.31-.31a.63.63 0 0 0-.68-.11l-.11.06c-.23.13-.38.37-.39.63v4.56h4.56c.36.02.69.22.87.54l.06.11c.15.33.09.72-.16.98l-.31.31c-.2.22-.31.5-.33.8 0 .79.64 1.43 1.43 1.43v.26c-.93 0-1.69-.76-1.69-1.69.02-.36.16-.71.4-.98l.31-.31a.63.63 0 0 0 .11-.68l-.06-.11a.764.764 0 0 0-.63-.39h-4.56v4.56c-.02.36-.22.69-.54.87l-.11.06c-.33.15-.72.09-.98-.16l-.31-.31c-.22-.2-.5-.31-.8-.33-.79 0-1.43.64-1.43 1.43h-.26c0-.93.76-1.69 1.69-1.69.32 0 .75.18.98.4l.31.31c.19.17.45.21.68.11l.11-.06c.23-.13.38-.37.39-.63v-4.56h-4.56c-.36-.02-.69-.22-.87-.54l-.06-.11a.886.886 0 0 1 .16-.98l.31-.31c.2-.22.31-.5.33-.8a1.43 1.43 0 1 0-2.86 0c0 .25.15.62.33.8l.31.31c.25.27.31.65.16.98l-.06.11c-.18.32-.5.52-.87.54H6.38v4.56c.02.26.17.5.39.63l.11.06c.21.1.52.05.68-.11l.31-.31c.27-.24.61-.39.98-.4.93 0 1.69.76 1.7 1.69h-.26c0-.79-.64-1.43-1.43-1.43-.25 0-.62.15-.8.33l-.31.31c-.27.25-.65.31-.98.16l-.11-.06c-.32-.18-.52-.5-.54-.87v-4.56H1.56c-.26.02-.5.17-.63.39l-.06.11c-.1.21-.05.52.11.68l.31.31c.24.27.39.61.4.98 0 .93-.76 1.69-1.69 1.7v-.26c.79 0 1.43-.64 1.43-1.43 0-.25-.15-.62-.33-.8l-.31-.31a.888.888 0 0 1-.16-.98l.06-.11c.18-.32.5-.52.87-.54h4.56v-4.56a.812.812 0 0 0-.39-.63l-.11-.06a.647.647 0 0 0-.68.11l-.31.31c-.27.25-.62.39-.98.4-.93 0-1.69-.76-1.69-1.69s.76-1.69 1.69-1.69c.32 0 .75.18.98.4l.31.31c.19.17.45.21.68.11l.11-.06c.23-.13.38-.37.39-.63V6.38H1.56c-.36-.02-.69-.22-.87-.54l-.06-.11a.886.886 0 0 1 .16-.98l.31-.31c.2-.22.31-.5.33-.8 0-.79-.64-1.43-1.43-1.43v-.26c.93 0 1.69.76 1.69 1.69 0 .32-.18.75-.4.98l-.31.31a.63.63 0 0 0-.11.68l.06.11c.13.23.37.38.63.39h4.56V1.56c.02-.36.22-.69.54-.87l.11-.06c.33-.15.72-.09.98.16l.31.31c.22.2.5.31.8.33.79 0 1.43-.64 1.43-1.43h.26c0 .93-.76 1.69-1.69 1.69-.36-.02-.71-.16-.98-.4L7.57.98a.63.63 0 0 0-.68-.11l-.11.06c-.23.13-.38.37-.39.63v4.56h4.56c.36.02.69.22.87.54l.06.11c.15.33.09.72-.16.98l-.31.31c-.2.22-.31.5-.33.8a1.43 1.43 0 1 0 2.86 0c0-.25-.15-.62-.33-.8l-.31-.31a.888.888 0 0 1-.16-.98l.06-.11c.18-.32.5-.52.87-.54h4.56V1.56a.812.812 0 0 0-.39-.63l-.11-.06a.647.647 0 0 0-.68.11l-.31.31c-.27.25-.62.39-.98.4-.95 0-1.71-.76-1.71-1.69h.26c0 .79.64 1.43 1.43 1.43.25 0 .62-.15.8-.33l.31-.31c.27-.25.65-.31.98-.16l.11.06c.32.18.52.5.54.87v4.56h4.56c.26-.02.5-.17.63-.39l.06-.11c.1-.21.05-.52-.11-.68l-.31-.31c-.25-.27-.39-.62-.4-.98 0-.93.76-1.69 1.69-1.69ZM10.94 18.62c.26-.02.5-.17.63-.39l.06-.11c.1-.21.05-.52-.11-.68l-.31-.31c-.25-.27-.39-.62-.4-.98 0-.93.76-1.69 1.69-1.69s1.69.76 1.69 1.69c0 .32-.18.75-.4.98l-.31.31a.63.63 0 0 0-.11.68l.06.11c.13.23.37.38.63.39h4.56v-4.56c.02-.36.22-.69.54-.87l.11-.06c.33-.15.72-.09.98.16l.31.31c.22.2.5.31.8.33a1.43 1.43 0 1 0 0-2.86c-.25 0-.62.15-.8.33l-.31.31c-.27.25-.65.31-.98.16l-.11-.06c-.32-.18-.52-.5-.54-.87V6.38h-4.56c-.26.02-.5.17-.63.39l-.06.11c-.1.21-.05.52.11.68l.31.31c.24.27.39.61.4.98 0 .93-.76 1.69-1.69 1.69s-1.69-.76-1.69-1.69c.02-.36.16-.71.4-.98l.31-.31a.63.63 0 0 0 .11-.68l-.06-.11a.764.764 0 0 0-.63-.39H6.38v4.56c-.02.36-.22.69-.54.87l-.11.06c-.33.15-.72.09-.98-.16l-.31-.31c-.22-.2-.5-.31-.8-.33a1.43 1.43 0 1 0 0 2.86c.25 0 .62-.15.8-.33l.31-.31c.27-.25.65-.31.98-.16l.11.06c.32.18.52.5.54.87v4.56h4.56Z",width:25,height:25,fill:!1,style:{strokeWidth:"0.3px"}},{path:"M 0 8 L 8 0 L 12 4 L 4 12 Z M -2 2 L 2 6 M 2 -2 L 6 2 M 6 10 L 10 14 M 10 6 L 14 10",width:12,height:12,style:{strokeWidth:"0.5px"}},{path:"M0 13.66 6.34 10 10 16.34 3.66 20zM0 6.34 3.66 0 10 3.66 6.34 10zM10 16.34 13.66 10 20 13.66 16.34 20zM10 3.66 16.34 0 20 6.34 13.66 10zM0 6.34v7.32M20 6.36v7.3M6.34 10h7.32",width:20,height:20,style:{strokeWidth:"0.3px"},fill:!1}],e}(tV),oV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.prepare=function(){var t=this.source;return this._colors=Wx(t.colors)?t.colors.slice():[],"random"===t.mode?this._index=-1:("shuffle"===t.mode&&_S.shuffle(this._colors),this._index=0),this},e.prototype.getNext=function(){return this._index<0?this._colors[Math.floor(Math.random()*this._colors.length)]:this._colors[this._index++%this._colors.length]},e.prototype.hasDef=function(){return!1},e.prototype.getEelement=function(t,e){this._colors=Wx(e.colors)?e.colors:[]},e.TYPE="colors",e}(tV),sV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.prepare=function(){var t=this,e=this.source.rootUrl||"";this._images=[],this._map={},this.source.images.forEach((function(i){if(Xx(i))t._images.push(i);else{var n=e+i.url;i.name&&(t._map[i.name]=n),t._images.push(n)}}))},e.prototype.getImage=function(t){return Xx(t)?this._map[t]:this._images[t]},e.prototype.hasDef=function(){return!1},e.prototype.getEelement=function(t,i){this.size=Object.freeze({width:i.width||i.height||e.SIZE,height:i.height||i.width||e.SIZE})},e.TYPE="images",e.SIZE=20,e}(tV),aV=function(){function t(){this._items=[],this._map={}}return t.prototype.load=function(t){var e=this;if(this._items=[],Wx(t))t.forEach((function(t){var i=e.$_loadItem(t);i&&(i.hasDef()?e._items.push(i):e._map[t.id]=i)}));else if(Gx(t)){var i=this.$_loadItem(t);i&&(i.hasDef()?this._items.push(i):this._map[t.id]=i)}},t.prototype.updateOptions=function(t,e){},t.prototype.register=function(t,e){this._items.forEach((function(i){var n=i.getEelement(t,i.source);n.setAttribute(LP.ASSET_KEY,"1"),e.addDef(n)}))},t.prototype.unregister=function(t){this._items.forEach((function(e){t.removeDef(e.source.id)}))},t.prototype.get=function(t){return this._map[t]},t.prototype.$_loadItem=function(t){if(Gx(t)&&t.id){var e=t.type;if(e||(null!=t.pattern?e=rV.TYPE:Wx(t.colors)?e=oV.TYPE:Wx(t.images)&&(e=sV.TYPE)),e)switch(e.toLowerCase()){case iV.TYPE:return new iV(t);case nV.TYPE:return new nV(t);case rV.TYPE:return new rV(t);case oV.TYPE:return new oV(t);case sV.TYPE:return new sV(t)}}},t}(),lV=0,uV=function(t,e){var i={};for(var n in t)i[n]=t[n];for(var n in e)i[n]=e[n];return i},hV=function(t,e){var i=Gx(t)?t:{};for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];Wx(r)?i[n]=r.slice(0):r instanceof Date?i[n]=new Date(r):Gx(r)?i[n]=hV(i[n],r):i[n]=r}return i},pV=function(t){function e(e){var i=t.call(this)||this;return i.chart=e,lV++,i}return Dx(e,t),e.prototype.init=function(){var t=this._op=hV({},this.constructor.defaults);this._doInit(t),this._doApply(t);var e={};return this._doInitChildren(e),this._children=Object.keys(e),this._children.length>0&&Kx(t,e),t},e.prototype._doInit=function(t){},e.prototype._doInitChildren=function(t){},e.prototype._initObject=function(){return this.init(),this},Object.defineProperty(e.prototype,"options",{get:function(){return this._op},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"visible",{get:function(){return this._isVisible()},set:function(t){this.updateOption("visible",t)},enumerable:!1,configurable:!0}),e.prototype._isVisible=function(){return this._op.visible},e.prototype._load=function(t){var e=this._op;if(this._config=t,void 0!==t&&!this._doSetSimple(t)){if(null!==t&&null!=t.template){var i=this.chart&&this.chart.assignTemplates;i&&(t=i(t))}this._doLoad(e,t)}return this._doApply(e),e},e.prototype.loadOptions=function(t){return this.clearOptions(),this._load(t),this},e.prototype.saveOptions=function(t){void 0===t&&(t=!0);var e={};return this._doSave(e,this.constructor.defaults,t),e},e.prototype.updateOptions=function(t,e){void 0===e&&(e=!0);var i=function(t,e){var n=t._op,r={};for(var o in void 0===e||t._doSetSimple(e)||(t._children.forEach((function(t){e.hasOwnProperty(t)&&(r[t]=e[t],delete e[t])})),hV(n,e)),t.$_applyOptions(n),r)i(t[o],r[o])};return i(this,void 0!==t?Object.assign({},t):void 0),e&&this._changed(),this},e.prototype.updateOption=function(t,i,n){if(void 0===n&&(n=!0),this[t]instanceof e)this[t]._doSetSimple(i);else{var r=this._op;i!==r[t]&&(r[t]=i,this.$_applyOptions(r),n&&this._changed())}return this},e.prototype.toggleOption=function(t,i){void 0===i&&(i=!0);var n=this._op,r=n[t];return n.hasOwnProperty(t)&&(this[t]instanceof e?this[t]._doSetSimple(!Zx(r)||!r):(n[t]=!Zx(r)||!r,this.$_applyOptions(n),i&&this._changed())),this},e.prototype.removeOption=function(t,i){void 0===i&&(i=!0);var n=this._op;if(n.hasOwnProperty(t))if(this[t]instanceof e)this[t].clearOptions();else{delete n[t];var r=self.constructor.defaults;Hx.call(r,t)&&(n[t]=r[t]),this.$_applyOptions(n),i&&this._changed()}return this},e.prototype.clearOptions=function(t){void 0===t&&(t=!0);var e=function(t){if(t){var i=t._op=hV({},t.constructor.defaults);return t.$_applyOptions(i),t._children.forEach((function(n){i[n]=e(t[n])})),i}};return e(this),t&&this._changed(),this},e.prototype._prepareRender=function(){this._doPrepareRender(this.chart)},e.prototype._changed=function(t){var e;null===(e=this.chart)||void 0===e||e._modelChanged(this,t)},e.prototype._doLoad=function(t,i){for(var n in i)if(i.hasOwnProperty(n)){var r=i[n];this._doLoadProp(n,r)||(this[n]instanceof e?t[n]=this[n]._load(r):Wx(r)?t[n]=r.slice(0):r instanceof Date?t[n]=new Date(r):Gx(r)?t[n]=Kx({},r):t[n]=r)}},e.prototype._doSave=function(t,i,n){var r=this._op;for(var o in r)if(r.hasOwnProperty(o))if(n&&this[o]instanceof e)t[o]=this[o].saveOptions(!0);else{var s=r[o];Wx(s)?t[o]=this._doSaveArray(o,s)||s.slice():s!==i[o]&&(t[o]=s)}},e.prototype._doSaveArray=function(t,e){},e.prototype._doSetSimple=function(t){if(Zx(t))return this._op.visible=t,!0},e.prototype._doLoadProp=function(t,e){if("visible"===t)return this._op.visible=e,!0},e.prototype.$_applyOptions=function(t){var e,i=this.visible;this._doApply(t),this.visible!==i&&(null===(e=this.chart)||void 0===e||e._visibleChanged(this))},e.prototype._setDim=function(t,e){var i="_".concat(e);t[e]!==this[i]&&(this["".concat(i,"Dim")]=FS(this[i]=t[e],!0))},e.prototype._setDims=function(t){for(var e=this,i=[],n=1;n<arguments.length;n++)i[n-1]=arguments[n];i.forEach((function(i){return e._setDim(t,i)}))},e.prototype._doApply=function(t){this._style=t.style},e.prototype._doUpdate=function(t){for(var i in t)if(t.hasOwnProperty(i)){var n=t[i];this._doLoadProp(i,n)||(this[i]instanceof e?this[i].updateOptions(n):Wx(n)?this[i]=n.slice(0):n instanceof Date?this[i]=new Date(n):Gx(n)?this[i]=Kx({},n):this[i]=n)}},e.prototype._doPrepareRender=function(t){},e.REFRESHED="refreshed",e.defaults={visible:!0},e}(bS),cV=function(){function t(t){this._items=[],this.chart=t}return Object.defineProperty(t.prototype,"count",{get:function(){return this._items.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"first",{get:function(){return this._items[0]},enumerable:!1,configurable:!0}),t.prototype.items=function(){return this._items.slice(0)},t.prototype._internalItems=function(){return this._items},t.prototype.updateOptions=function(t,e){},t}(),fV=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._outlineThickness=2,e._outlineWidth="2px",e}return Dx(e,t),e.prototype._setOutlineThickness=function(t){t!==this._outlineThickness&&(this._outlineThickness=t,this._outlineWidth=aS(t,2)+"px")},e.prototype._setNumberSymbols=function(t){t!==this._numberSymbols&&(this._numberSymbols=t,this._numSymbols=t&&t.split(","))},e.prototype._setNumberFormat=function(t){t!==this._numberFormat&&(this._numberFormat=t,this._numberFormatter=t?oP.getFormatter(t):null)},e.prototype._setText=function(t){return t!==this._text&&this.prepareRich(this._text=t),!isNaN(this._op.lineHeight)&&this._richTextImpl&&(this._richTextImpl.lineHeight=this._op.lineHeight),this},e.prototype.setText=function(t){this._setText(t)},e.prototype.buildSvg=function(t,e,i,n,r,o){this._richTextImpl&&(this._richTextImpl.build(t,i,n,r,o),e&&this._richTextImpl.build(e,i,n,r,o))},e.prototype.prepareRich=function(t){t?(this._richTextImpl||(this._richTextImpl=new QP),this._richTextImpl.setFormat(t)):this._richTextImpl=null},e.prototype._doSetSimple=function(e){return Xx(e)?(this._op.text=e,!0):t.prototype._doSetSimple.call(this,e)},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),this._setOutlineThickness(e.outlineThickness),this._setNumberSymbols(e.numberSymbols),this._setNumberFormat(e.numberFormat),this._setText(e.text)},e.prototype.$_getNumberText=function(t,e,i){if(_S.isValidNum(t)){var n=this._numSymbols&&e&&_S.scaleNumber(t,this._numSymbols,i);return this._numberFormatter?n?this._numberFormatter.toStr(n.value)+n.symbol:this._numberFormatter.toStr(t):n?n.value+n.symbol:String(t)}return"NaN"},e.prototype._getText=function(t,e,i,n){var r=Xx(t)?t:this.$_getNumberText(e,i,n)||e;return this._op.prefix&&(r=this._op.prefix+r),this._op.suffix&&(r+=this._op.suffix),r},e.defaults=uV(pV.defaults,{effect:"none",autoContrast:!0,outlineThickness:2,numberSymbols:"k,M,G,T,P,E",numberFormat:"#,##0.#"}),e}(pV),_V=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.getIconPos=function(){return"default"===this._op.iconPosition?this.getDefaultIconPos():this._op.iconPosition},e.prototype._doPrepareRender=function(t){if(this._images=null,this._op.imageList){var e=t._assets.get(this._op.imageList);e instanceof sV&&(this._images=e)}this._root=this._images?"":this._op.iconRoot||""},e.prototype.getUrl=function(t){if(t){var e=t.indexOf("::");if(0===e)return t=t.substring(2),this._images?this._images.getImage(t):t;if(e>0){var i=this.chart._assets.get(t.substring(0,e)),n=t.substring(e+2);return i instanceof sV?i.getImage(n):n}return this._root+t}},e.defaults=uV(fV.defaults,{iconPosition:"default",iconGap:2}),e}(fV),dV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e}(pV),yV={},gV=function(t){function e(e,i){var n=t.call(this,e)||this;return n.inBody=i,n._offsetX=0,n._offsetY=0,n.index=-1,n}return Dx(e,t),e.register=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];t.forEach((function(t){yV[t.type]=t}))},e.prototype._type=function(){return this.constructor.type},Object.defineProperty(e.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),e.prototype.getOffset=function(t,e){var i=function(t,e,i){return i.size*("h"===i.suffix?e:t)};return{x:this._offsetXDim?i(t,e,this._offsetXDim):+this._offsetX,y:this._offsetYDim?i(t,e,this._offsetYDim):+this._offsetY}},e.prototype.getSize=function(t,e){var i,n,r=this.chart.isInverted(),o=this._op;if(this.inBody){var s=+o.x1,a=+o.x2,l=+o.y1,u=+o.y2;if(this._x=this._y=this._w=this._h=NaN,!isNaN(s)){var h=this.chart.xAxis;r?this._y=e-h.getPos(e,s):this._x=h.getPos(t,s),isNaN(a)||(r?n=this._h=e-h.getPos(e,a)-this._y:i=this._w=h.getPos(t,a)-this._x)}if(!isNaN(l)){h=this.chart.yAxis;r?this._x=h.getPos(t,l):this._y=e-h.getPos(e,l),isNaN(u)||(r?i=this._w=h.getPos(t,u)-this._x:n=this._h=e-h.getPos(e,u)-this._y)}}return isNaN(i)?i=jS(this._widthDim,t):i<0&&(this._x+=i,i=-i),isNaN(n)?n=jS(this._heightDim,e):n<0&&(this._y+=n,n=-n),{width:i,height:n}},e.prototype.getPosition=function(t,e,i,n,r,o,s){var a,l,u;if(isNaN(l=this._x))switch(a=this.getOffset(o,s),l=e,this._op.align){case"center":l+=(n-o)/2+a.x;break;case"right":l+=n-a.x-o;break;default:this._anchorObj?l+=(n-o)/2+a.x:l+=a.x}else a=a||this.getOffset(o,s),l=this._x+a.x;if(isNaN(u=this._y))switch(a=a||this.getOffset(o,s),u=i,this._op.verticalAlign){case"middle":u+=(r-s)/2-a.y;break;case"bottom":u+=r-a.y-s;break;default:u+=a.y}else a=a||this.getOffset(o,s),u=this._y+a.y;return{x:l,y:u}},e.prototype.refresh=function(){this._changed(pV.REFRESHED)},e.prototype._load=function(e){return this.chart?t.prototype._load.call(this,this.chart.loadBase(e,"annotation",this._type())):t.prototype._load.call(this,e)},e.prototype._doApply=function(e){var i,n=this,r=function(t){if(Xx(t)){var e=t[t.length-1];if("h"===e||"w"===e){var i=parseFloat(t);if(i===parseFloat(t.substring(0,t.length-1)))return{size:i,suffix:e}}}};t.prototype._doApply.call(this,e),this._name=e.name||"annotation ".concat(this.index+1),(i=e.offsetX)!=n._offsetX&&(n._offsetXDim=r(n._offsetX=i)),function(t){t!=n._offsetY&&(n._offsetYDim=r(n._offsetY=t))}(e.offsetY),this._setDims(e,"width","height")},e.prototype._doPrepareRender=function(t){},e.defaults=uV(pV.defaults,{front:!1,verticalAlign:"top",offsetX:0,offsetY:0,scope:"chart"}),e}(pV),vV=function(t){function e(e){var i=t.call(this,e.chart)||this;return i.owner=e,i._map={},i._visibles=[],i}return Dx(e,t),e.prototype.getVisibles=function(){return this._visibles.slice(0)},e.prototype.getAnnotation=function(t){var e=this._map[t];if(e instanceof gV)return e},e.prototype.get=function(t){return Xx(t)?this._map[t]:this._items[t]},e.prototype.load=function(t,e){var i=this,n=this.owner.chart,r=this._items=[],o=this._map={};Wx(t)?t.forEach((function(t,o){r.push(i.$_loadItem(n,t,o,e))})):Gx(t)&&r.push(this.$_loadItem(n,t,0,e)),r.forEach((function(t){t.name&&(o[t.name]=t)})),this.owner.options.annotation=this._items.map((function(t){return t.options}))},e.prototype.prepareRender=function(){var t=this;this._visibles=this._items.filter((function(t){return t.visible})),this._visibles.forEach((function(e){e._prepareRender(),e._anchorObj=e.options.anchor?t.owner.anchorByName(e.options.anchor):xS}))},e.prototype.$_loadItem=function(t,e,i,n){var r=e.type;r||(r=Xx(e.imageUrl)?"image":Xx(e.shape)?"shape":"text");var o=t._getAnnotationType(r);if(!o)throw new Error("Invalid annotation type: "+e.type);var s=new o(t,n);return s.init(),s.index=i,s._load(e),s},e}(cV),mV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.defaults=uV(pV.defaults,{minWidth:50}),e}(pV),bV=function(t){function e(e){var i=t.call(this,e.chart)||this;return i.axis=e,i}return Dx(e,t),e.prototype._doInit=function(t){this.flag=new mV(this.axis.chart).init(),this._args={axis:void 0,pos:void 0,flag:void 0,points:void 0}},e.prototype.isBar=function(){return!this.axis.continuous()&&"line"!==this._op.type},e.prototype.getFlag=function(t,e){var i=this.axis.axisValueAt(t,e);return i instanceof Date?xP.getFormatter(this._op.timeFormat).toStr(new Date(i),this.chart.startOfWeek):oP.getFormatter(this._op.numberFormat).toStr(i)},e.prototype.moved=function(t,e,i){this._op.onChange&&(this._args.pos=t,this._args.flag=e,this._args.points=i.slice(0),this._op.onChange(this._args))},e.prototype._setAxis=function(t){this._args.axis=t},e.prototype._doSetSimple=function(e){return Yx(e)?(this._op.visible=!0,this._op.onChange=e,!0):t.prototype._doSetSimple.call(this,e)},e.defaults=uV(pV.defaults,{visible:!1,type:"auto",showAlways:!0,followPointer:!0,numberFormat:"#,##0.#",timeFormat:"yyyy-MM-dd HH:mm",markerHovering:!1}),e}(pV),wV={},xV=function(t){function e(e){var i=t.call(this,null==e?void 0:e.chart)||this;return i.axis=e,i}return Dx(e,t),e}(pV),SV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._isVisible=function(){return null==this._op.visible?this.axis._isX:this._op.visible},e.prototype._doSetSimple=function(e){return Xx(e)?(this._op.visible=!0,this._op.style={stroke:e},!0):t.prototype._doSetSimple.call(this,e)},e.defaults=uV(xV.defaults,{visible:void 0}),e}(xV),PV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.getRotation=function(){return this.axis._isHorz?0:isNaN(this._rotation)?"opposite"===this.axis.options.position?90:270:this._rotation},e.prototype._isVisible=function(){return this._op.visible&&!TS(this._op.text)},e.prototype._doSetSimple=function(e){return Xx(e)?(this._op.text=e,!0):t.prototype._doSetSimple.call(this,e)},e.prototype._doApply=function(e){var i,n,r=this;t.prototype._doApply.call(this,e),i=e.rotation,n=+i,Number.isNaN(n)||90===n||270===n||-90===n||-270===n||(n=0),r._rotation=n},e.defaults=uV(xV.defaults,{align:"middle",offset:0,gap:5}),e}(xV),VV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.getRows=function(){var t=this.axis,e=this._op.colors,i=e?e.length:0,n=[];if(this._op.belowColor&&t.isBaseVisible()&&n.push({axis:t,from:t.axisMin(),to:t.getBaseValue(),color:this._op.belowColor}),i>0){var r=t._ticks,o=0;r[0].value>t.axisMin()&&(e[o%i]&&n.push({axis:t,from:t.axisMin(),to:r[0].value,color:e[o%i]}),o++);for(var s=1;s<r.length;s++,o++)e[o%i]&&n.push({axis:t,from:r[s-1].value,to:r[s].value,color:e[o%i]});r[r.length-1].value<t.axisMax()&&e[o%i]&&n.push({axis:t,from:r[r.length-1].value,to:t.axisMax(),color:e[o%i]})}return n},e.prototype._doSetSimple=function(e){return Xx(e)?(this._op.colors=[e,null],!0):Wx(e)?(this._op.colors=e,!0):t.prototype._doSetSimple.call(this,e)},e}(xV),kV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._doInitChildren=function(t){t.rows=(this._rows=new VV(this.axis)).init()},Object.defineProperty(e.prototype,"rows",{get:function(){return this._rows},enumerable:!1,configurable:!0}),e.prototype._isVisible=function(){return this.axis._isPolar?!1!==this._op.visible:null==this._op.visible?!this.axis._isX:this._op.visible},e.defaults=uV(xV.defaults,{visible:void 0}),e}(xV),AV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.getDefaultIconPos=function(){return"left"},e.defaults=uV(_V.defaults,{position:"inside",align:"left",verticalAlign:"top",offsetX:3,offsetY:3}),e}(_V),CV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._doInitChildren=function(t){t.label=(this._label=new AV(this.axis.chart)).init()},Object.defineProperty(e.prototype,"label",{get:function(){return this._label},enumerable:!1,configurable:!0}),e.prototype.canConstainedTo=function(t,e){var i,n,r,o,s=this._op;if(Wx(s.col)){try{for(var a=Ix(s.col),l=a.next();!l.done;l=a.next()){if(e==l.value)return!0}}catch(t){i={error:t}}finally{try{l&&!l.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return!1}if(!isNaN(s.col)&&e!=s.col)return!1;if(Wx(s.row)){try{for(var u=Ix(s.row),h=u.next();!h.done;h=u.next()){if(t==h.value)return!0}}catch(t){r={error:t}}finally{try{h&&!h.done&&(o=u.return)&&o.call(u)}finally{if(r)throw r.error}}return!1}return!(!isNaN(s.row)&&t!=s.row)},e.defaults=uV(xV.defaults,{front:!1,zindex:0}),e}(xV),EV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e}(CV),LV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e}(CV),NV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.canUseNumSymbols=function(){return!0},e.prototype._doSetSimple=function(e){return _S.canNumber(e)?(this._op.length=+e,!0):t.prototype._doSetSimple.call(this,e)},e.defaults=uV(xV.defaults,{visible:!1,length:7,gap:3}),e}(xV),OV=function(t){function e(e){var i=t.call(this,e&&e.chart)||this;return i.axis=e,i._domain={callback:function(t,e){return i._getParamValue(i._paramTick,e)}},i}return Dx(e,t),e.prototype._getParamValue=function(t,e){return e.startsWith("axis.")?this.axis[e.substring(5)]:t[e]},e.prototype.getLabelText=function(t,e){var i,n=this._op,r=t.index;if(n.textCallback){var o=n.textCallback(this.axis.getTickLabelArgs(r,t.value));if(null!=o)return o}return 1==e?uS(null!==(i=n.lastText)&&void 0!==i?i:n.firstText,n.text):0==r?uS(n.firstText,n.text):r==e-1?uS(n.lastText,n.text):n.text},e.prototype.getLabelStyle=function(t,e){var i=this._op,n=t.index;if(i.styleCallback){var r=i.styleCallback(this.axis.getTickLabelArgs(n,t.value));if(Gx(r))return r}return 1==e?i.lastStyle||i.firstStyle:0==n?i.firstStyle:n==e-1?i.lastStyle:void 0},e.prototype.getIcon=function(t){},e.prototype.getDefaultIconPos=function(){return this.axis._isHorz?"top":"right"},e.prototype._doPrepareRender=function(e){t.prototype._doPrepareRender.call(this,e),this._domain.numberFormatter=this._numberFormatter},e.defaults=uV(_V.defaults,{step:0,startStep:0,rows:0,maxRows:3,autoArrange:"rotate",overflow:"clip",firstOverflow:"pull",lastOverflow:"pull",overflowGap:12}),e}(_V),MV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.getThickness=function(){return Math.max(0,this._op.thickness)},e.prototype.getMinThumbSize=function(){return Math.max(0,this._op.minThumbSize)},e.prototype.getGap=function(){return Math.max(0,this._op.gap)},e.prototype.getGapFar=function(){return Math.max(0,this._op.gapFar)},e.defaults=uV(xV.defaults,{visible:!1,thickness:10,minThumbSize:32,gap:3,gapFar:3}),e}(xV),TV=function(){function t(t){this.axis=t}return t.prototype.total=function(){return this.max-this.min},t.prototype.length=function(){return this.end-this.start},t.prototype.isFull=function(){return this.start===this.min&&this.end===this.max},t.prototype.resize=function(t,e,i){if((t=isNaN(t)?this.start:oS(this.min,rS(this.max,t)))>(e=isNaN(e)?this.end:oS(t,rS(this.max,e)))){var n=t;t=e,e=n}var r=this.max-this.min;if((t!==this.start||e!==this.end)&&e>t&&(isNaN(i)||(e-t)/r>=i)&&r/(e-t)>1)return this.start=t,this.end=e,!0},t}(),RV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e}(SV),BV=function(t){function e(e,i){var n=t.call(this,e)||this;return n._series=[],n._minPad=0,n._maxPad=0,n._values=[],n._labelArgs={},n._seriesChanged=!1,n.guides=[],n._isX=i,n}return Dx(e,t),e.register=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];t.forEach((function(t){wV[t.type]=t,t.subtype&&(wV[t.subtype]=t)}))},e.prototype._animating=function(){return!isNaN(this._prevRate)},e.prototype._doInitChildren=function(t){t.title=(this._title=new PV(this)).init(),t.line=(this._line=new SV(this)).init(),t.sectorLine=(this._sectorLine=new RV(this)).init(),t.tick=(this._tick=this._createTickModel()).init(),t.label=(this._label=this._createLabel()).init(),t.grid=(this._grid=this._createGrid()).init(),t.crosshair=(this._crosshair=new bV(this)).init(),t.scrollBar=(this._scrollBar=new MV(this)).init()},e.prototype._type=function(){return this.constructor.type},Object.defineProperty(e.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"title",{get:function(){return this._title},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"line",{get:function(){return this._line},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sectorLine",{get:function(){return this._sectorLine},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tick",{get:function(){return this._tick},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"label",{get:function(){return this._label},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"grid",{get:function(){return this._grid},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"crosshair",{get:function(){return this._crosshair},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scrollBar",{get:function(){return this._scrollBar},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"xy",{get:function(){return this._isX?"x":"y"},enumerable:!1,configurable:!0}),e.prototype.isEmpty=function(){return this._isEmpty},e.prototype._checkEmpty=function(){var t,e;if(this._series.length>0)try{for(var i=Ix(this._series),n=i.next();!n.done;n=i.next()){if(!n.value.isEmpty(!0))return!1}}catch(e){t={error:e}}finally{try{n&&!n.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}return!0},e.prototype.getBaseValue=function(){return NaN},e.prototype.length=function(){return this._max-this._min},e.prototype.axisMin=function(){return this._min},e.prototype.axisMax=function(){return this._max},e.prototype.axisValueAt=function(t,e){return this.valueAt(t,e)},e.prototype.getStartAngle=function(){return VS+kS*aS(this._op.startAngle,0)},e.prototype.getTotalAngle=function(){return kS*oS(0,rS(360,aS(this._op.totalAngle,360)))},e.prototype.isArced=function(){return this._op.totalAngle>0&&this._op.totalAngle<360},e.prototype.getVisibleSeries=function(){var t=[];return this._series.forEach((function(e){e.visible&&t.push.apply(t,$x([],jx(e.getVisibleSeries()),!1))})),t},e.prototype.unitPad=function(){return 0},e.prototype.labelsVisible=function(){return this._label.visible&&this._ticks.length>0},e.prototype.value2Tooltip=function(t){return isNaN(t)?this.chart._tooltip.options.nanText:t},e.prototype.isBased=function(){return!1},e.prototype.isBaseVisible=function(){return this.axisMin()<this.getBaseValue()},e.prototype.disconnect=function(){this._series=[]},e.prototype.getSeries=function(){var t=[];return this._series.forEach((function(e){t.push.apply(t,$x([],jx(e.getVisibleSeries()),!1))})),t},e.prototype.collectValues=function(){var t=this;this._values=[],this._series.forEach((function(e){e.collectValues(t,e.needAxes()?t._values:null)}))},e.prototype.collectRanges=function(){var t=this;this._series.forEach((function(e){e.needAxes()&&e.collectRanges(t._values)}))},e.prototype.collectReferentsValues=function(){var t=this;this._series.forEach((function(e){e.pointValuesPrepared(t)}))},e.prototype._prepare=function(){this._isEmpty=this._checkEmpty()},e.prototype._prepareRender=function(){var t,e,i,n=this._op.position;this._isHorz=this.chart.isInverted()?!this._isX:this._isX,this._isBetween=this.chart.isSplitted()&&"between"===n&&this._isX,this._isOpposite="opposite"===n,this._runPos=n,this._crosshair._setAxis(this._labelArgs.axis=this),this._doPrepareRender(),null===(i=this._label)||void 0===i||i._prepareRender();var r=this._series,o=this._values;if(this._isX&&this._prevSeries){if(!(this._seriesChanged=!_S.equalArrays(r,this._prevSeries)))try{for(var s=Ix(r),a=s.next();!a.done;a=s.next()){if(a.value.seriesChanged()){this._seriesChanged=!0;break}}}catch(e){t={error:e}}finally{try{a&&!a.done&&(e=s.return)&&e.call(s)}finally{if(t)throw t.error}}}else this._seriesChanged=!1;if(this._zoom?this._range={min:this._zoom.start,max:this._zoom.end}:this._range=this._doCalculateRange(o),this._isX&&r.length>0)if(this.chart.isSplitted()){for(var l=[r[0]._row],u=1;u<r.length;u++)l.indexOf(r[u]._row)<0&&l.push(r[u]._row);l.forEach((function(t){var e=0,i=0;r.forEach((function(i){i._row==t&&i.isClusterable()&&(e+=aS(i.groupWidth(),1))})),r.forEach((function(n){if(n._row==t&&n.isClusterable()){var r=aS(n.groupWidth(),1)/e;n.setCluster(r,i),i+=r}}))}))}else{var h=0,p=0;r.forEach((function(t){t.isClusterable()&&(h+=aS(t.groupWidth(),1))})),r.forEach((function(t){if(t.isClusterable()){var e=aS(t.groupWidth(),1)/h;t.setCluster(e,p),p+=e}}))}},e.prototype.afterRender=function(){this._seriesChanged=!1,this._prevSeries=this._series,this._zooming=!1},e.prototype._buildTicks=function(t){this._ticks=this._doBuildTicks(this._range.min,this._range.max,this._vlen=t),this._labelArgs.count=this._ticks.length},e.prototype._calcPoints=function(t,e){var i=this;this._ticks.forEach((function(e){return e.pos=i.getPos(t,e.value)}))},e.prototype.getLabelLength=function(t,e){return this.getUnitLen(t,e)},e.prototype.getValue=function(t){return null==t?NaN:parseFloat(t)},e.prototype.incStep=function(t,e){return t+e},e.prototype.contains=function(t){return t>=this._min&&t<=this._max},e.prototype.trimRange=function(t,e){return[oS(t,this._min),rS(e,this._max)]},e.prototype.resetZoom=function(){this._zoom&&(this._zoom=null,this._zooming=!0,this._changed())},e.prototype._prepareZoom=function(){return this._zoom||(this._zoom=new TV(this),this._buildTicks(this._vlen),this._zoom.start=this._zoom.min=this._min,this._zoom.end=this._zoom.max=this._max),this._zoom},e.prototype.zoom=function(t,e,i){void 0===i&&(i=NaN);var n=this._prepareZoom(),r=n.resize(t,e,i);return n.isFull()&&(this._zoom=null),this._zooming=!0,this._changed(),r},e.prototype.isZoomed=function(){return!!this._zoom},e.prototype.hasBreak=function(){return!1},e.prototype.isBreak=function(t){return!1},e.prototype.getTickLabelArgs=function(t,e){return this._labelArgs.index=t,this._labelArgs.value=e,this._labelArgs},e.prototype.getXValue=function(t){return t},e.prototype.setPrevRate=function(t){this._prevRate=t},e.prototype.prev=function(t){return isNaN(this._prevRate)?t:this._op.reversed?t+(this._vlen-t)*(this._prevRate-1):t*this._prevRate},e.prototype._load=function(e){return this.chart?t.prototype._load.call(this,this.chart.loadBase(e,this._isX?"xAxis":"yAxis",this._type())):t.prototype._load.call(this,e)},e.prototype._doApply=function(e){var i=this,n=this.guides,r=function(t){var e;t!==i._guides&&(i._guides=t,e=Wx(t)?t:[t],n.length=0,e.forEach((function(t){var e;(e="range"===t.type?new LV(i):"line"===t.type||isNaN(t.startValue)||isNaN(t.endValue)?new EV(i):new LV(i)).init(),e._load(t),n.push(e)})))};t.prototype._doApply.call(this,e),this._name=e.name||"Axis ".concat(this._index+1),Hx.call(e,"guide")?r(e.guide):Hx.call(e,"guides")&&r(e.guides)},e.prototype._setMinMax=function(t,e){this._min=t,this._max=e,this._single=t===e},e.prototype._connect=function(t){t&&!this._series.includes(t)&&this._series.push(t)},e.prototype._doCalculateRange=function(t){return{min:t.length>0?LS(rS.apply(void 0,$x([],jx(t),!1))||0):NaN,max:t.length>0?LS(oS.apply(void 0,$x([],jx(t),!1))||0):NaN}},e.defaults=uV(pV.defaults,{row:0,col:0,startAngle:0,totalAngle:360,position:"normal",reversed:!1,marginNear:0,marginFar:0,tooltipHeader:"<b>${name}</b>",tooltipRow:"${series}:<b> ${yValue}</b>",animatable:!0,fixedSize:!1}),e}(pV),DV=function(t){function e(e,i){var n=t.call(this,e)||this;return n._map=new Map,n.isX=i,n}return Dx(e,t),e.prototype._clear=function(){},e.prototype.load=function(t){var e=this,i=this.chart;Wx(t)?t.forEach((function(t,n){return e._items.push(e.$_loadAxis(i,t,n))})):this._items.push(this.$_loadAxis(i,t,0)),i.options[this.isX?"xAxis":"yAxis"]=this._items.map((function(t){return t.options}))},e.prototype.contains=function(t){return this._items.indexOf(t)>=0},e.prototype.get=function(t){return Xx(t)?this._map.get(t):this._items[t]},e.prototype.disconnect=function(){this._items.forEach((function(t){return t.disconnect()}))},e.prototype.prepare=function(){this._items.forEach((function(t){return t._prepare()}))},e.prototype.collectValues=function(){this._items.forEach((function(t){return t.collectValues()}))},e.prototype.collectRanges=function(){this._items.forEach((function(t){return t.collectRanges()}))},e.prototype.collectReferentsValues=function(){this._items.forEach((function(t){return t.collectReferentsValues()}))},e.prototype.prepareRender=function(){this._items.forEach((function(t){return t._prepareRender()}))},e.prototype.afterRender=function(){this._items.forEach((function(t){return t.afterRender()}))},e.prototype._buildTicks=function(t){this._items.sort((function(t,e){return t.isBased()?1:e.isBased()?-1:0})).forEach((function(e){return e._buildTicks(t)}))},e.prototype.connect=function(t){var e,i=this._items,n=t.options,r=this.isX?n.xAxis:n.yAxis;return qx(r)&&r>=0&&r<i.length?e=i[r]:Xx(r)&&(e=i.find((function(t){return t.options.name===r}))),e||(e=i[0]),e&&(e._connect(t),this.isX?t.setCol(aS(n.col,e.options.col)):t.setRow(aS(n.row,e.options.row))),e},e.prototype.forEach=function(t){for(var e=0,i=this._items.length;e<i&&!0!==t(this._items[e],e);e++);},e.prototype.isZoomed=function(){var t,e;try{for(var i=Ix(this._items),n=i.next();!n.done;n=i.next()){if(n.value.isZoomed())return!0}}catch(e){t={error:e}}finally{try{n&&!n.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}},e.prototype.resetZoom=function(){this._items.forEach((function(t){return t.resetZoom()}))},e.prototype.$_loadAxis=function(t,e,i){var n,r,o,s=t._getAxisType(e.type);if(!s){var a=void 0;if(Wx(e.categories))a="category";else if(this.isX){var l=t._getSeries()._internalItems();if(l.length>0){a="category";try{for(var u=Ix(l),h=u.next();!h.done;h=u.next()){var p=h.value;if(!p.canCategorized()){if(e.name&&p.options.xAxis===e.name){a=void 0;break}if(p.options.xAxis===i){a=void 0;break}if(TS(p.options.xAxis)&&0===i){a=void 0;break}}}}catch(t){n={error:t}}finally{try{h&&!h.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}}}else a=null===(o=t._getSeries().first)||void 0===o?void 0:o.defYAxisType();a&&(s=t._getAxisType(a))}s||(s=t._getAxisType("linear"));var c=new s(t,this.isX);return c.init(),c._load(e),c._index=i,c._isPolar=t.isPolar(),c},e}(cV),FV=function(){this._axes=[]},IV=function(){function t(t,e){this.chart=t,this.isX=e}return t.prototype.rows=function(){return this._matrix.length},t.prototype.cols=function(){return this._matrix[0].length},t.prototype.get=function(t,e){return this._matrix[t][e]},t.prototype.getRow=function(t){return this._matrix[t]},t.prototype.getColumn=function(t){return this._matrix.map((function(e){return e[t]}))},t.prototype._buildTicks=function(t){var e=this.isX;this._matrix.forEach((function(i,n){i.forEach((function(i,n){i._axes.forEach((function(i){i.isBased()||i._buildTicks(t[e?i.options.col:i.options.row])}))}))})),this._matrix.forEach((function(i,n){i.forEach((function(i,n){i._axes.forEach((function(i){i.isBased()&&i._buildTicks(t[e?i.options.col:i.options.row])}))}))}))},t.prototype._calcPoints=function(t,e){var i=this.isX;this._matrix.forEach((function(n){n.forEach((function(n,r){n._axes.forEach((function(n){var r=i?n.options.col:n.options.row;n._calcPoints(t[r],e)}))}))}))},t}(),jV=function(t){function e(e){return t.call(this,e,!0)||this}return Dx(e,t),e.prototype._prepare=function(t,e,i){for(var n=this._matrix=new Array(e+1),r=0;r<n.length;r++){n[r]=[];for(var o=0;o<i;o++)n[r].push(new FV)}t.forEach((function(t){var i=t.options.position,r=t._row;"opposite"===i?(r++,t._runPos=i):r<e-1&&"between"===i?(r++,t._runPos="normal"):t._runPos=i,n[r][t._col]._axes.push(t)}))},e}(IV),$V=function(t){function e(e){return t.call(this,e,!1)||this}return Dx(e,t),e.prototype._prepare=function(t,e,i){for(var n=this._matrix=new Array(e),r=0;r<n.length;r++){n[r]=[];for(var o=0;o<=i;o++)n[r].push(new FV)}t.forEach((function(t){var e=t.options.position,r=t._col;"opposite"===e?(r++,t._runPos=e):t._col<i-1&&"between"===e?(r++,t._runPos="normal"):t._runPos=e,n[t._row][r]._axes.push(t)}))},e}(IV),zV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._doPrepareRender=function(t){},e}(pV),HV={},GV={},WV=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.index=-1,e}return Dx(e,t),e.prototype._type=function(){return this.constructor.type},Object.defineProperty(e.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),e.prototype.getSize=function(t,e){return{width:jS(this._widthDim||this._sizeDim,t,t),height:jS(this._heightDim||this._sizeDim,e,e)}},e.prototype.getLeft=function(t){return jS(this._leftDim,t)},e.prototype.getRight=function(t){return jS(this._rightDim,t)},e.prototype.getTop=function(t){return jS(this._topDim,t)},e.prototype.getBottom=function(t){return jS(this._bottomDim,t)},e.prototype._load=function(e){return this.chart?t.prototype._load.call(this,this.chart.loadBase(e,"gauge",this._type())):t.prototype._load.call(this,e)},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),this._name=e.name||"Gauge ".concat(this.index+1),this._setDims(e,"left","right","top","bottom","width","height","siz")},e.defaults=uV(zV.defaults,{size:"100%"}),e}(zV),YV=function(t){function e(e){return t.call(this,e.chart)||this}return Dx(e,t),e}(pV),XV=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._gindex=-1,e}return Dx(e,t),e.register=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];t.forEach((function(t){HV[t.type]=t}))},e._loadGauge=function(t,e,i){var n=t._getGaugeType(e.type);n||(n=t._getGaugeType(i||t.gaugeType));var r=new n(t);return r.init(),r._load(e),r},e.prototype.setGroup=function(t,e){this._group=t,this._gindex=e},e.defaults=uV(WV.defaults,{duration:500}),e}(WV),UV=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._gauges=[],e._visibles=[],e}return Dx(e,t),e.register=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];t.forEach((function(t){GV[t.type]=t,GV[t.gaugeType]=t}))},Object.defineProperty(e.prototype,"gauges",{get:function(){return this._gauges.slice(0)},enumerable:!1,configurable:!0}),e.prototype.count=function(){return this._gauges.length},e.prototype.isEmpty=function(){return this._gauges.length<1},e.prototype.visibles=function(){return this._visibles.slice(0)},e.prototype.get=function(t){return this._gauges[t]},e.prototype.getVisible=function(t){return this._visibles[t]},e.prototype.calcedMinMax=function(){return{min:this._op.minValue,max:this._op.maxValue}},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),Hx.call(e,"children")&&this.$_loadGauges(this.chart,e.children)},e.prototype._doSaveArray=function(t,e){if("children"===t)return this._gauges.map((function(t){return t.saveOptions()}))},e.prototype._prepareRender=function(){var e=this;this._visibles=this._gauges.filter((function(t){return t.visible})),t.prototype._prepareRender.call(this),this._visibles.forEach((function(t,i){e._setGroup(t,i),t._prepareRender()}))},e.prototype.$_loadGauges=function(t,e){var i=this,n=this._gaugesType();Wx(e)?e.forEach((function(e,r){return i.$_add(XV._loadGauge(t,e,n))})):Gx(e)&&this.$_add(XV._loadGauge(t,e,n))},e.prototype.$_add=function(t){if(t._type()!==this._gaugesType())throw new Error("이 그룹에 포함될 수 없는 게이지입니다: "+t);this._gauges.push(t),t.index=this._gauges.length-1},e.prototype._setGroup=function(t,e){t.setGroup(this,e)},e.defaults=uV(WV.defaults,{minValue:0}),e}(WV),qV=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._map={},e._visibles=[],e._gauges=[],e}return Dx(e,t),Object.defineProperty(e.prototype,"firstGauge",{get:function(){return this._gauges[0]},enumerable:!1,configurable:!0}),e.prototype.isEmpty=function(t){return(t?this._visibles:this._items).length<1},e.prototype.getVisibles=function(){return this._visibles.slice(0)},e.prototype.getPaneVisibles=function(t,e){return this._visibles.filter((function(i){var n=i.options.row||0,r=i.options.col||0;return t===n&&e===r}))},e.prototype.getGauge=function(t){var e=this._map[t];if(e instanceof XV)return e},e.prototype.get=function(t){return Xx(t)?this._map[t]:this._items[t]},e.prototype.load=function(t){var e=this,i=this.chart,n=this._items=[],r=this._map={};Wx(t)?t.forEach((function(t,r){n.push(e.$_loadItem(i,t,r))})):Gx(t)&&n.push(this.$_loadItem(i,t,0)),n.forEach((function(t){if(t.name&&(r[t.name]=t),t instanceof UV)for(var i=0;i<t.count();i++){var n=t.get(i);n.name&&(r[n.name]=n),e._gauges.push(n)}else e._gauges.push(t)})),i.options.gauge=this._gauges.map((function(t){return t.options}))},e.prototype.prepareRender=function(){this._visibles=this._items.filter((function(t){return t.visible})),this._visibles.forEach((function(t){return t._prepareRender()}))},e.prototype.$_loadItem=function(t,e,i){var n=Wx(e.children)&&t._getGaugeGroupType(e.type||t.gaugeType);if(n||(n=t._getGaugeType(e.type||t.gaugeType)),!n)throw new Error("Invalid gauge type: "+e.type);var r=new n(t);return r.init(),r._load(e),r.index=i,r},e}(cV),ZV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.updateValue=function(t){t!==this._op.value&&(this._op.value=t,this._changed())},e.prototype.getLabel=function(t,e){return this._runValue=e,t.options.text||(t.options.prefix||"")+"${value}"+(t.options.suffix||"")},e.prototype.getParam=function(t){switch(t){case"value":return this._runValue;case"min":return this._op.minValue;case"max":return this._op.maxValue}},e.prototype.calcedMinMax=function(){return{min:this._op.minValue,max:this._op.maxValue}},e.defaults=uV(XV.defaults,{minValue:0,maxValue:100,value:0,animatable:!0}),e}(XV),KV=function(t){function e(e){var i=t.call(this,e.chart)||this;return i.scale=e,i}return Dx(e,t),e.defaults=uV(pV.defaults,{reversed:!1,length:7}),e}(pV),JV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.getText=function(t){return _S.isValidNum(t)?this._getText(null,t,sS(t)>1e3,!0):t},e.prototype.getDefaultIconPos=function(){return"left"},e}(_V),QV=function(t){function e(e){var i=t.call(this,e.chart)||this;return i.gauge=e,i}return Dx(e,t),e.prototype._doInitChildren=function(t){var e=this.chart;t.line=(this._line=new pV(e)).init(),t.tick=(this._tick=new KV(this)).init(),t.label=(this._label=new JV(e)).init()},Object.defineProperty(e.prototype,"line",{get:function(){return this._line},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tick",{get:function(){return this._tick},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"label",{get:function(){return this._label},enumerable:!1,configurable:!0}),e.prototype.range=function(){return{min:this._min,max:this._max}},e.prototype.isEmpty=function(){return this._max<=this._min},e.prototype.buildSteps=function(t,e,i){void 0===i&&(i=NaN),i=aS(i,e);var n=this._adjustMinMax(rS(e,i),oS(e,i)),r=n.min,o=n.max;return this._steps=this._buildSteps(t,r,o)},e.prototype.buildGroupSteps=function(t,e){var i=this._adjustGroupMinMax(e),n=i.min,r=i.max;return this._steps=this._buildSteps(t,n,r)},e.prototype.getRate=function(t){return(oS(this._min,t)-this._min)/(this._max-this._min)},e.prototype._adjustMinMax=function(t,e){var i=this.gauge;return t=aS(i.options.minValue,t),e=aS(i.options.maxValue,e),this._min=rS(t,e),this._max=oS(e,t),{min:this._min,max:this._max}},e.prototype._adjustGroupMinMax=function(t){var e=this.gauge,i=e.options.minValue,n=e.options.maxValue;return isNaN(i)&&(i=rS.apply(void 0,$x([],jx(t),!1))),isNaN(n)&&(n=oS.apply(void 0,$x([],jx(t),!1))),this._min=rS(i,n),this._max=oS(n,i),{min:this._min,max:this._max}},e.prototype._buildSteps=function(t,e,i){var n,r=this._op;return n=Array.isArray(r.steps)?r.steps.slice(0):r.stepCount>0?this._getStepsByCount(r.stepCount,e,i):r.stepInterval>0?this._getStepsByInterval(r.stepInterval,e,i):r.stepPixels>0?this._getStepsByPixels(t,r.stepPixels,e,i):[e,i],this._min=n[0],this._max=n[n.length-1],n},e.prototype._getStepsByCount=function(t,e,i){var n=(i-e)/(t-1),r=Math.pow(10,Math.floor(Math.log10(n))),o=[];n=this._step=Math.ceil(n/r)*r,o.push(LS(e));for(var s=1;s<t;s++)o.push(LS(o[s-1]+n));return o},e.prototype._getStepsByInterval=function(t,e,i){var n,r=[];for(r.push(n=e);n<i;)r.push(n+=t);return this._step=t,r},e.prototype._getStepMultiples=function(t){return[1,2,2.5,5,10]},e.prototype._getStepsByPixels=function(t,e,i,n){var r=[],o=n-i;if(0===o)return r;var s,a=o/(Math.floor(t/e)+1-1),l=Math.pow(10,Math.floor(Math.log10(a))),u=this._getStepMultiples(l),h=0;if(a/=l,u)if(a>u[h]){for(;h<u.length-1;h++)if(a>u[h]&&a<u[h+1]){a=u[++h];break}}else a=u[h];for(a*=l,this._step=a,r.push(LS(s=i));;){if((s+=a)>=n){r.push(LS(n));break}r.push(LS(s))}return r},e.defaults=uV(pV.defaults,{position:"default",stepPixels:48,gap:8}),e}(pV),tk=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.defaults=uV(pV.defaults,{visible:!1}),e}(pV),ek=function(t){function e(e){var i=t.call(this,e.chart)||this;return i.gauge=e,i}return Dx(e,t),e.prototype._doInitChildren=function(t){var e=this.chart;t.rangeLabel=(this._rangeLabel=new tk(e)).init(),t.tickLabel=(this._tickLabel=new pV(e)).init()},Object.defineProperty(e.prototype,"rangeLabel",{get:function(){return this._rangeLabel},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tickLabel",{get:function(){return this._tickLabel},enumerable:!1,configurable:!0}),e.prototype.getThickness=function(t){return this._thicknessDim?jS(this._thicknessDim,t,0):"inside"===this._op.position?t:e.defaults.thickness},e.prototype.getRanges=function(){return this.$_internalRanges().slice(0)},e.prototype._doApply=function(e){var i,n=this;t.prototype._doApply.call(this,e),(i=e.ranges)!==n._ranges&&(n._ranges=i,n._runRanges=null),this._setDim(e,"thickness")},e.prototype.$_internalRanges=function(){if(!this._runRanges){var t=this.gauge.calcedMinMax();this._runRanges=US(this._ranges,t.min,t.max,!1,!0)||[]}return this._runRanges},e.defaults=uV(pV.defaults,{visible:!1,position:"default",thickness:7,gap:5,itemGap:0}),e}(pV),ik=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._domain={callback:function(t,e){return t.getParam(e)}},e}return Dx(e,t),e.prototype._doPrepareRender=function(t){this._domain.numberFormatter=this._numberFormatter},e.defaults=uV(fV.defaults,{animatable:!0}),e}(fV),nk=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e}(QV),rk=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._offsetX=0,e._offsetY=0,e}return Dx(e,t),e.prototype.getOffset=function(t,e){return{x:jS(this._offsetXDim,t,0),y:jS(this._offsetYDim,e,0)}},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),this._setDims(e,"offsetX","offsetY")},e.defaults=uV(ik.defaults,{offsetX:0,offsetY:0}),e}(ik),ok=function(){function t(t){void 0===t&&(t=!1),t?(this.setCenterX("50%"),this.setCenterY("50%"),this.setValueRadius("100%")):(this.setCenterX(sk.DEF_CENTER),this.setCenterY(sk.DEF_CENTER),this.setRadius(sk.DEF_RADIUS),this.setInnerRadius(sk.DEF_INNER))}return t.prototype.centerX=function(){return this._centerX},t.prototype.setCenterX=function(t){t!==this._centerX&&(this._centerX=t,this._centerXDim=FS(uS(t,sk.DEF_CENTER),!0))},t.prototype.centerY=function(){return this._centerY},t.prototype.setCenterY=function(t){t!==this._centerY&&(this._centerY=t,this._centerYDim=FS(uS(t,sk.DEF_CENTER),!0))},t.prototype.radius=function(){return this._radius},t.prototype.setRadius=function(t){t!==this._radius&&(this._radius=t,this._radiusDim=FS(uS(t,sk.DEF_RADIUS),!0))},t.prototype.innerRadius=function(){return this._innerRadius},t.prototype.setInnerRadius=function(t){t!==this._innerRadius&&(this._innerRadius=t,this._innerDim=FS(uS(t,sk.DEF_INNER),!0))},t.prototype.valueRadius=function(){return this._valueRadius},t.prototype.setValueRadius=function(t){t!==this._valueRadius&&(this._valueRadius=t,this._valueDim=FS(t,!0))},t.prototype.getCenter=function(t,e){return{x:jS(this._centerXDim,t,t/2),y:jS(this._centerYDim,e,e/2)}},t.prototype.getExtents=function(t){var e=jS(this._radiusDim,t,t/2),i=rS(e,this._innerDim?jS(this._innerDim,e):0),n=i+(e-i)/2;return{radius:e,inner:i,value:this._valueDim?jS(this._valueDim,n):n,radiusThick:e-i}},t.prototype.prepareAngles=function(t,e){var i=aS(t%360,0),n=oS(0,rS(360,aS(e,360)));this._startRad=VS+kS*i,this._handRad=kS*i,this._sweepRad=kS*n},t}(),sk=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._doInit=function(t){this._props=new ok},e.prototype._doInitChildren=function(t){t.label=(this._label=new rk(this.chart)).init()},Object.defineProperty(e.prototype,"label",{get:function(){return this._label},enumerable:!1,configurable:!0}),e.prototype.getProps=function(){return this._childProps||this._props},e.prototype.getCenter=function(t,e){return this._group?this._childProps.getCenter(t,e):this._props.getCenter(t,e)},e.prototype.getExtents=function(t){return this._group?this._childProps.getExtents(t):this._props.getExtents(t)},e.prototype.labelVisible=function(){return this._label.visible},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e);var i=this._props;i.setCenterX(e.centerX),i.setCenterY(e.centerY),i.setRadius(e.radius),i.setInnerRadius(e.innerRadius),i.setValueRadius(e.valueRadius)},e.prototype.setGroup=function(e,i){t.prototype.setGroup.call(this,e,i),e&&!this._childProps&&(this._childProps=new ok)},e.prototype._doPrepareRender=function(e){t.prototype._doPrepareRender.call(this,e),this._label._prepareRender();var i=this._group;i?this._childProps.prepareAngles(i.options.startAngle,i.options.sweepAngle):this._props.prepareAngles(this._op.startAngle,this._op.sweepAngle)},e.DEF_CENTER="50%",e.DEF_RADIUS="40%",e.DEF_INNER="80%",e.defaults=uV(ZV.defaults,{startAngle:0,sweepAngle:360,clockwise:!0}),e}(ZV),ak=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._doInit=function(t){this.props=new ok},e.prototype._doInitChildren=function(t){t.label=(this._label=new rk(this.chart)).init()},Object.defineProperty(e.prototype,"label",{get:function(){return this._label},enumerable:!1,configurable:!0}),e.prototype.setChildExtents=function(t){var e=this._visibles.length;if(e>0){var i=+this._op.itemGap||0,n=t.radius,r=(n-t.inner-i*(e-1))/e;this._visibles.forEach((function(t,e){var o=t._childProps;o.setRadius(n),o.setInnerRadius(n-r),n-=r+i}))}},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e);var i=this.props;i.setCenterX(e.centerX),i.setCenterY(e.centerY),i.setRadius(e.radius),i.setInnerRadius(e.innerRadius),i.setValueRadius(e.valueRadius)},e.defaults=uV(UV.defaults,{startAngle:0,sweepAngle:360,clockwise:!0,itemGap:4,labelGap:10}),e}(UV),lk=function(t){function e(e){var i=t.call(this,e.chart)||this;return i.body=e,i}return Dx(e,t),e.prototype._isVisible=function(){return!1!==this._op.visible&&this.body.isZoomed()&&this.body.canZoom()},e.defaults=uV(pV.defaults,{visible:void 0}),e}(pV),uk=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._doPrepareRender=function(t){this.setText(this._getMessage())},e.prototype._getMessage=function(){return this._op.text||this.chart._body.emptyView._op.text||e.DEF_TEXT},e.DEF_TEXT="표시할 데이터가 없습니다.",e.defaults=uV(pV.defaults,{visible:void 0}),e}(fV),hk=function(t){function e(e){var i=t.call(this,e)||this;return i._annotations=new vV(i),i}return Dx(e,t),e.prototype._doInitChildren=function(t){t.image=(this._image=new dV(null)).init(),t.emptyView=(this._emptyView=new uk(this.chart)).init(),t.zoomButton=(this._zoomButton=new lk(this)).init()},e.prototype.anchorByName=function(t){var e=this.chart._getGauges().get(t);return e instanceof WV&&this.contains(e)?e:this._annotations.get(t)},Object.defineProperty(e.prototype,"image",{get:function(){return this._image},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"emptyView",{get:function(){return this._emptyView},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"zoomButton",{get:function(){return this._zoomButton},enumerable:!1,configurable:!0}),e.prototype.base=function(){return this},e.prototype.canZoom=function(){return!this.chart.isEmpty(!0)&&("x"===this._op.zoomType||"y"===this._op.zoomType||"both"===this._op.zoomType)},e.prototype.isEmpty=function(){return this.chart.isEmpty(!0)},e.prototype.getRadius=function(t,e){return jS(this._radiusDim,rS(t,e))},e.prototype.setPolar=function(t,e){return this._cx=jS(this._centerXDim,t),this._cy=jS(this._centerYDim,e),this._rd=jS(this._radiusDim,rS(t,e)),this},e.prototype.getPolar=function(t){return this.chart.isPolar()?{start:t?t.getStartAngle():0,total:t?t.getTotalAngle():0,cx:this._cx,cy:this._cy,rd:this._rd}:void 0},e.prototype.isZoomed=function(){return this.chart._getXAxes().isZoomed()||this.chart._getYAxes().isZoomed()},e.prototype.getAnnotations=function(){return this._annotations.getVisibles()},e.prototype.getAnnotation=function(t){return this._annotations.getAnnotation(t)},e.prototype.contains=function(t){return!0},e.prototype._doApply=function(e){var i=this,n=function(t){t!==i._anns&&(i._anns=t,i._annotations.load(t,!0))};t.prototype._doApply.call(this,e),this._setDims(e,"radius","centerX","centerY"),Hx.call(e,"annotation")?n(e.annotation):Hx.call(e,"annotations")&&n(e.annotations)},e.prototype._doPrepareRender=function(t){this._annotations.prepareRender()},e.defaults=uV(pV.defaults,{circular:!0,zoomType:"none",radius:"45%",centerX:"50%",centerY:"50%"}),e}(pV),pk=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._isCompose=!1,e}return Dx(e,t),e.prototype.isCompose=function(){return this._isCompose},e.prototype.compose=function(t){this._isCompose||(this._module=t,this._isCompose=!0)},e.prototype.isContextMenuVisible=function(){return this._module&&this._module.isContextMenuVisible()},e.prototype.toggleContextMenu=function(){this._module&&this._module.toggleContextMenu()},e.prototype.exportToImage=function(t,e,i){this._module&&this._module.exportToImage(t,e,i)},e.defaults=uV(pV.defaults,{useLibrary:!1,menus:["png","jpeg","svg"],fileName:"realchart",scale:1,hideNavigator:!1,hideScrollbar:!1,hideZoomButton:!1}),e}(pV),ck=function(t){function e(e,i){var n=t.call(this,e.chart)||this;return n.legend=e,n.source=i,n}return Dx(e,t),e.prototype.text=function(){return this.source.legendLabel()},e}(pV),fk=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._items=[],e}return Dx(e,t),e.prototype.items=function(){return this._items.slice(0)},e.prototype.getLayout=function(){if("auto"!==this._op.layout||"body"===this._location)return this._op.layout;switch(this._location){case"bottom":case"top":return"horizontal";default:return"vertical"}},e.prototype.getMaxWidth=function(t){return jS(this._maxWidthDim,t,t)},e.prototype.getMaxHeight=function(t){return jS(this._maxHeightDim,t,t)},e.prototype.getMarkerSize=function(){return aS(this._op.markerSize,10)},e.prototype._isVisible=function(){return!0===this._op.visible&&this._items.length>0||!1!==this._op.visible&&this._items.length>1},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),this._setDims(e,"maxWidth","maxHeight")},e.prototype._doPrepareRender=function(e){var i=this;t.prototype._doPrepareRender.call(this,e),this._location=uS(this._op.location,"bottom"),this._items=this.chart._getLegendSources().map((function(t){return new ck(i,t)})),this._op.reversed&&(this._items=this._items.reverse())},e.defaults=uV(zV.defaults,{visible:void 0,location:"bottom",layout:"auto",alignBase:"body",gap:6,itemGap:8,markerVisible:!0,markerSize:10,markerGap:4,lineGap:4,offsetX:0,offsetY:0,itemsAlign:"center",seriesHovering:!0,pointHovering:!0}),e}(zV),_k={inOutSine:function(t){return-(tS(SS*t)-1)/2}},dk=function(t,e,i,n,r,o){var s=DS(e,null!=i?i:"initial"),a=DS(e,n),l=t.animate([s,a],{duration:r,fill:"none"});return o&&(l?l.addEventListener("finish",o):setTimeout(o,0)),l},yk=function(){function t(){var e=this;this.delay=0,this.duration=t.DURATION,this.easing="inOutSine",this._handler=function(){var t=+new Date-e._started-e.delay,i=rS(1,oS(0,LS(t/e.duration)));e._easing&&(i=e._easing(i));try{e._timer&&e._canUpdate()&&!1!==e._doUpdate(i)||e._stop()}finally{t>=e.duration?e._stop():e._started&&e._timer&&(e._ani=window.requestAnimationFrame(e._handler))}}}return t.prototype.start=function(t){return t&&(this.endHandler=t),this._start(this.duration,this.delay,this.easing),this},t.prototype.stop=function(){this._stop()},t.prototype._start=function(e,i,n){var r=this;void 0===i&&(i=0),void 0===n&&(n=null),this._started&&this._stop(),this.duration=aS(e,t.DURATION),this.delay=i||0,this._easing=_k[n],this._doStart(),this._started=+new Date,this._timer=setTimeout((function(){return r._stop()}),1.2*this.duration),this._handler()},t.prototype._stop=function(){var t;this._started&&(cancelAnimationFrame(this._ani),clearTimeout(this._timer),this._timer=null,this._started=null,this._doStop(),null===(t=this.endHandler)||void 0===t||t.call(this,this))},t.prototype._doStart=function(){},t.prototype._doStop=function(){},t.prototype._canUpdate=function(){return!0},t.DURATION=700,t.SHORT_DURATION=300,t}(),gk=Object.values({CIRCLE:"circle",DIAMOND:"diamond",SQUARE:"square",TRIANGLE:"triangle",STAR:"star",ITRIANGLE:"itriangle",RECTANGLE:"rectangle"}),vk=.001,mk=Math.PI,bk=function(){function t(){}return t.line=function(t,e,i,n){return["M",t,e,"L",i,n]},t.lines=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var i=0,n=["M",t[i],t[i+1]];i<t.length;i+=2)n.push("L",t[i],t[i+1]);return n.push("Z"),n},t.box=function(t,e,i,n){return["M",t,e,"L",i,e,"L",i,n,"L",t,n,"Z"]},t.rect=function(t){return this.rectangle(t.x,t.y,t.width,t.height)},t.rectangle=function(t,e,i,n){return["M",t,e,"h",i,"v",n,"h",-i,"Z"]},t.bar=function(t,e,i,n,r,o){var s=n>0,a=s?0:1;return r>0?o>0?(r=rS(sS(n)/2,i/2,r),o=rS(sS(n)/2,i/2,o),["M",t,e+(s?o:-o),"v",n+(s?-o-r:o+r),"a",r,r,0,0,a,r,s?r:-r,"h",i-2*r,"a",r,r,0,0,a,r,s?-r:r,"v",-n+(s?r+o:-r-o),"a",o,o,0,0,a,-o,s?-o:o,"h",2*o-i,"a",o,o,0,0,a,-o,s?o:-o,"Z"]):(r=rS(sS(n)/2,i/2,r),["M",t,e,"v",n+(s?-r:r),"a",r,r,0,0,a,r,s?r:-r,"h",i-2*r,"a",r,r,0,0,a,r,s?-r:r,"v",-n-r,"Z"]):o>0?(o=rS(sS(n)/2,i/2,o),["M",t,e+(s?o:-o),"v",n+(s?-o:+o),"h",i,"v",-n+(s?o:-o),"a",o,o,0,0,a,-o,s?-o:o,"h",2*o-i,"a",o,o,0,0,a,-o,s?o:-o,"Z"]):["M",t,e,"h",i,"v",n,"h",-i,"v",-n,"Z"]},t.square=function(t,e,i,n){var r=rS(i,n);return["M",t+=(i-r)/2,e+=(n-r)/2,"h",r,"v",r,"h",-r,"Z"]},t.circle=function(t,e,i){return["M",t,e,"m",i,0,"a",i,i,0,1,1,2*-i,0,"a",i,i,0,1,1,2*i,0]},t.arc=function(t,e,i,n,r,o,s,a){void 0===a&&(a=!1);var l=ES(sS(o-r)),u=2*mk-l<.01,h=l-mk<.01?0:1,p=s?1:0,c=tS(r),f=eS(r),_=tS(o-=u?p?vk:-.001:0),d=eS(o),y=[];return y.push("M",t+i*c,e+n*f,"A",i,n,0,h,p,t+i*_,e+n*d),u&&y.push("M",t,e),a&&y.push("Z"),y},t.sector=function(t,e,i,n,r,o,s,a){var l=ES(sS(s-o)),u=2*mk-l<vk,h=l-mk<vk?0:1,p=a?1:0,c=tS(o),f=eS(o),_=tS(s-=u?p?vk:-.001:0),d=eS(s),y=i*r,g=n*r,v=[];return v.push("M",t+i*c,e+n*f,"A",i,n,0,h,p,t+i*_,e+n*d),u?v.push("M",t+y*_,e+g*d):v.push("L",t+y*_,e+g*d),isNaN(y)||v.push("A",y,g,0,h,1-p,t+y*c,e+g*f),v.push("Z"),v},t.sectorPolygon=function(t,e,i,n,r,o,s,a){var l=[],u=ES(sS(s-o)),h=2*mk-u<vk,p=a?1:0,c=tS(o),f=eS(o),_=tS(s-=h?p?vk:-.001:0),d=eS(s),y=i*r,g=n*r;return l.push([t+i*c,e+n*f]),l.push([t+i*_,e+n*d]),l.push([t+y*_,e+g*d]),l.push([t+y*c,e+g*f]),l},t.diamond=function(t,e,i,n){return["M",t+i/2,e,"L",t+i,e+n/2,"L",t+i/2,e+n,"L",t,e+n/2,"Z"]},t.triangle=function(t,e,i,n){return["M",t+i/2,e,"L",t+i,e+n,"L",t,e+n,"Z"]},t.itriangle=function(t,e,i,n){return["M",t,e,"L",t+i,e,"L",t+i/2,e+n,"Z"]},t.star=function(t,e,i,n){var r=-Math.PI/2,o=t+i/2,s=e+n/2+(n/2-n/2*eS(r+6*Math.PI/5))/2,a=i/2,l=n/2,u=i/4,h=n/4,p=2*Math.PI/5,c=p/2,f=[];f.push("M",o+a*tS(r),s+l*eS(r));for(var _=0;_<5;_++)f.push("L",o+a*tS(r),s+l*eS(r),"L",o+u*tS(r+c),s+h*eS(r+c)),r+=p;return f.push("Z"),f},t.setShape=function(e,i,n,r){var o;switch(i){case"square":case"diamond":case"triangle":case"itriangle":case"star":case"rectangle":o=t[i](0,0,2*n,2*r);break;default:o=t.circle(n,r,rS(n,r))}e.setPath(o)},t}(),wk=function(t){function e(e,i,n){void 0===i&&(i=xS),void 0===n&&(n=xS);var r=t.call(this,e,i,"rect")||this;return r.rect=n,r}return Dx(e,t),e.create=function(t,i,n,r,o,s,a){return void 0===a&&(a=0),new e(t,i,{x:n,y:r,width:o,height:s,r:a})},Object.defineProperty(e.prototype,"rect",{get:function(){return this._rect&&Fx({},this._rect)},set:function(t){if(t!==this._rect&&(this._rect=t&&Fx({},t),t)){this.setRect(t);var e=t.rx||t.r,i=t.ry||t.r;e>0&&this.dom.setAttribute("rx",String(e)),i>0&&this.dom.setAttribute("rx",String(i))}},enumerable:!1,configurable:!0}),e.prototype.resizeRect=function(t,e){var i=this.getStyle("border-radius");return this.resize(t,e),i&&this.dom.setAttribute("rx",i),this},e.prototype.setBounds=function(t,e,i,n,r){return void 0===r&&(r=0),this.rect={x:t,y:e,width:i,height:n,r:r},this},e.prototype.setBox=function(t,e,i,n){this.rect=n<0?{x:t,y:e+n,width:i,height:-n}:{x:t,y:e,width:i,height:n}},e.prototype.setRadius=function(t){t>0&&(this._rect&&(this._rect.rx=this._rect.ry=t),this.dom.setAttribute("rx",String(t)),this.dom.setAttribute("ry",String(t)))},e}(LP),xk=function(t){function e(e,i){return void 0===i&&(i=xS),t.call(this,e,i)||this}return Dx(e,t),e.prototype.setBox=function(t,e,i,n){return this.setPath(bk.box(t,e,i,n)),this},e}(RP);!function(t){function e(e,i){return void 0===i&&(i=xS),t.call(this,e,"dlchart-point-back",i)||this}Dx(e,t)}(wk);var Sk="none",Pk="near",Vk="displayAll",kk="LargestFirst",Ak="hidden",Ck="line",Ek="area",Lk="circlebar",Nk="arc",Ok=0,Mk=function(){function t(t){this.pid=Ok++,this.visible=!0,this.source=t}return t.prototype.ariaHint=function(){return(this.x||this.xValue)+", "+this.yValue},t.prototype.labelCount=function(){return 1},t.prototype.getValue=function(){return this.yValue},t.prototype.isEmpty=function(){return!1},t.prototype.copy=function(){return Fx({},this)},t.prototype.assignTo=function(t){return t||(t={}),this._assignTo(t),t},t.prototype.getProp=function(t){return null!==this.source&&this.source[t]},t.prototype.parse=function(t){var e=this.source;null==e?this.isNull=!0:Wx(e)?0===e.length?this.isNull=!0:this._readArray(t,e):Gx(e)?(this._readObject(t,e),(Wx(e.drillDown)||Gx(e.drillDown))&&(this.drillDown=e.drillDown)):this._readSingle(e),this.initValues()},t.prototype.getPointLabel=function(t){return this.yValue},t.prototype.getPointText=function(t){return this.yLabel},t.prototype.swap=function(){var t=this.xPos;this.xPos=this.yPos,this.yPos=t},t.prototype.updateValues=function(t,e){if(this._prev=this.copy(),Gx(e)?this.source=Object.assign(Gx(this.source)?this.source:{},e):Wx(e)?this.source=e.slice(0):this.source=e,this.parse(t),this._valuesChangd(this._prev))return this._prev;this._prev=xS},t.prototype.getTooltip=function(t){var e;return t in this?this[t]:null===(e=this.source)||void 0===e?void 0:e[t]},t.prototype.initValues=function(){},t.prototype.initPrev=function(t,e){e.yValue=t.axisMin()},t.prototype.applyValueRate=function(t,e){},t.prototype._assignTo=function(t){return Kx(t,{index:this.index,vindex:this.vindex,x:this.x,y:this.y,xValue:this.xValue,yValue:this.yValue,color:this.color,yLabel:this.yLabel,source:this.source})},t.prototype._readArray=function(t,e){var i=+t.options.colorField;e.length>1?(this.x=e[aS(t.options.xField,0)],this.y=e[aS(t.options.yField,1)]):this.y=e[0],isNaN(i)||(this.color=e[i])},t.prototype._readObject=function(t,e){var i,n,r,o;this.x=(i=t._xFielder(e),n=e.x,r=e.name,o=e.label,void 0!==i?i:void 0!==n?n:null!=r?r:o),this.y=hS(t._yFielder(e),e.y,e.value),this.color=uS(t._colorFielder(e),e.color),this.yLabel=e.yLabel,this.labelOptions=e.labelOptions},t.prototype._readSingle=function(t){this.y=t},t.prototype._valuesChangd=function(t){return this.x!==t.x||this.y!==t.y},t}(),Tk=function(){function t(t){this._points=[],this._owner=t}return Object.defineProperty(t.prototype,"count",{get:function(){return this._points.length},enumerable:!1,configurable:!0}),t.prototype.isEmpty=function(){return this._points.length<1},t.prototype.get=function(t){return this._points[t]},t.prototype.pointAt=function(t,e){function i(t,e,i){return Gx(t)?t.pid===e:t===i}return this._points.find((function(n){return i(t,n.pid,n.xValue)&&(void 0===e||i(e,n.pid,n.yValue))}))},t.prototype.contains=function(t){return this._points.indexOf(t)>=0},t.prototype.load=function(t){Wx(t)?this._points=this._owner.initPoints(t):this._points=[]},t.prototype.clear=function(){this._points=[]},t.prototype.add=function(t){this._points.push(t)},t.prototype.remove=function(t){var e=this._points.indexOf(t);if(e>=0)return this._points.splice(e,1),!0},t.prototype.getProps=function(t){return this._points.map((function(e){return e.getProp(t)}))},t.prototype.getCategories=function(t){return this._points.map((function(e){return e[t]}))},t.prototype.forEach=function(t){for(var e=0,i=this._points.length;e<i&&!0!==t(this._points[e],e);e++);},t.prototype.getPoints=function(t,e){var i=t._zoom;if(i){var n=this._points,r=n.length,o=i.start,s=i.end;if(t.continuous()){var a=0,l=void 0,u=void 0;for(u=Number.MIN_VALUE;a<r-1;a++){if(l=n[a],o>=u&&o<l.xValue+(n[a+1].xValue-l.xValue)/2){o=a;break}u=l.xValue}for(o!==a&&(o=r-1),u=Number.MAX_VALUE,a=r-1;a>0;a--){if(l=n[a],s<u&&s>l.xValue-(l.xValue-n[a-1].xValue)/2){s=a;break}u=l.xValue}s!==a&&(s=0),o=oS(o-1,0),s=rS(s+1,r-1)}else o=oS(0,Math.floor(o)),s=rS(Math.ceil(s),r-1);return this._points.slice(o,s+1)}return this._points},t}(),Rk=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.getPointLabel=function(t){return this.zValue},e.prototype.getPointText=function(t){return this.zLabel},e.prototype.getValue=function(){return this.zValue},e.prototype.getZValue=function(){return this.zValue},e.prototype._assignTo=function(e){return Kx(t.prototype._assignTo.call(this,e),{z:this.z,zValue:this.zValue})},e.prototype._valuesChangd=function(e){return this.z!==e.z||t.prototype._valuesChangd.call(this,e)},e.prototype._readArray=function(t,e){if(e.length<=1)this.isNull=!0;else{var i=e.length>2?1:0;i>0&&(this.x=e[aS(t.options.xField,0)]),this.y=e[aS(t.options.yField,0+i)],this.z=e[aS(t.options.zField,1+i)]}},e.prototype._readObject=function(e,i){t.prototype._readObject.call(this,e,i),this.isNull||(this.z=uS(e._zFielder(i),i.z),this.zLabel=i.zLabel)},e.prototype._readSingle=function(e){t.prototype._readSingle.call(this,e),this.z=this.y},e.prototype.parse=function(e){t.prototype.parse.call(this,e),this.isNull||(this.isNull=isNaN(this.zValue))},e.prototype.initValues=function(){this.zValue=parseFloat(this.z)},e.prototype.initPrev=function(t,e){e.yValue=e.zValue=this.yValue},e.prototype.applyValueRate=function(t,e){this.zValue=pS(t.zValue,this.zValue,e)},e}(Mk),Bk=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),Object.defineProperty(e.prototype,"high",{get:function(){return this.y},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"highValue",{get:function(){return this.yValue},enumerable:!1,configurable:!0}),e.prototype.labelCount=function(){return 2},e.prototype.getPointLabel=function(e){return 1===e?this.lowValue:t.prototype.getPointLabel.call(this,0)},e.prototype.getPointText=function(e){return 1===e?this.lowLabel:t.prototype.getPointText.call(this,0)},e.prototype._assignTo=function(e){return Kx(t.prototype._assignTo.call(this,e),{low:this.low,high:this.high,lowValue:this.lowValue,highValue:this.yValue})},e.prototype._valuesChangd=function(e){return this.low!==e.low||t.prototype._valuesChangd.call(this,e)},e.prototype._readArray=function(t,e){var i=t.options,n=e.length>2?1:0;this.low=e[aS(i.lowField,0+n)],this.y=e[lS(i.highField,i.yField,1+n)],n>0&&(this.x=e[aS(i.xField,0)])},e.prototype._readObject=function(e,i){t.prototype._readObject.call(this,e,i),this.isNull||(this.low=uS(i[e.options.lowField],i.low),this.y=hS(i[e.options.highField],i.high,this.y),this.lowLabel=i.lowLabel)},e.prototype._readSingle=function(e){t.prototype._readSingle.call(this,e),this.low=this.y},e.prototype.parse=function(e){t.prototype.parse.call(this,e),this.isNull||(this.isNull=isNaN(this.lowValue))},e.prototype.initValues=function(){this.lowValue=parseFloat(this.low)},e.prototype.initPrev=function(t,e){e.yValue=e.lowValue=this.lowValue},e.prototype.applyValueRate=function(t,e){this.lowValue=pS(t.lowValue,this.lowValue,e)},e}(Mk),Dk=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.getPosition=function(){var t=this._op.position;return"point"===t||"edge"===t?t:this.axis._isX?"point":"edge"},e.defaults=uV(NV.defaults,{step:1}),e}(NV),Fk=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.getTick=function(t,e){return null!=e?this._getText(e,e,!1,!1):""},e.prototype.getIcon=function(t){var e;return null===(e=this.axis._categories[t.index])||void 0===e?void 0:e.i},e}(OV),Ik=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.getPoints=function(t){var e=t._pts,i=t._ticks.length,n=[];if(i>0){var r=Math.max(1,t.tick.options.step||1);if(r>1)for(var o=0,s=1,a=e.length;o<=i&&s<a;o++,s+=r)n.push(e[s]);else for(o=0;o<=i;o++)n.push(e[o+1])}return n},e}(kV),jk=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._map={},e._catPad=0,e._tstep=1,e}return Dx(e,t),Object.defineProperty(e.prototype,"tick",{get:function(){return this._tick},enumerable:!1,configurable:!0}),e.prototype.getCategories=function(){return this._cats},e.prototype.xValueAt=function(t){for(var e=2;e<this._pts.length-1;e++)if(t>=this._pts[e-1]&&t<this._pts[e])return this._catMin+e-2;return-1},e.prototype.getWdith=function(t,e){return 0},e.prototype._type=function(){return"category"},e.prototype.unitPad=function(){return this._catPad},e.prototype.continuous=function(){return!1},e.prototype._createGrid=function(){return new Ik(this)},e.prototype._createTickModel=function(){return new Dk(this)},e.prototype._createLabel=function(){return new Fk(this)},e.prototype.collectValues=function(){this.$_collectCategories(this._series),this._isEmpty,this._isEmpty?this._values=_S.makeIntArray(0,this._categories.length):t.prototype.collectValues.call(this)},e.prototype.getStartAngle=function(){var e=t.prototype.getStartAngle.call(this),i=+this._op.startOffset;return i>0&&(e-=rS(i,1)*this._categories[0].w*PS/this._len),e},e.prototype._doPrepareRender=function(){var t=this._op;this._cats=[],this._weights=[],this._isPolar||this._zoom?this._minPad=this._maxPad=this._catPad=0:(this._minPad=lS(t.minPadding,t.padding,0),this._maxPad=lS(t.maxPadding,t.padding,0),this._catPad=Math.max(0,Math.min(.5,aS(t.categoryPadding,0))))},e.prototype._doBuildTicks=function(t,e,i){var n=this._label,r=this._cats=this._categories.map((function(t){return t.c})),o=this._weights=this._categories.map((function(t){return t.w})),s=this._tick.options.step||1,a=[],l=t,u=e;t=this._catMin=Math.floor(t+.5),e=this._catMax=Math.ceil(e-.5);var h=this._catLen=e-t+1;this._tstep=Math.max(1,Math.min(h,this._tick.options.step||1));for(var p=-1;p>=t;p--)r.unshift(String(p)),o.unshift(1);h=this._len=this._minPad+this._maxPad+o.reduce((function(t,e){return t+e}),0),h+=this._catLen-r.length,o.length=r.length=this._catLen||0;var c=this._pts=[];if(h>0){var f=this._minPad;c.push(0);for(p=t;p<=e;p++)c.push(f/h),f+=o[p-t]||1;c.push(f/h),c.push((f+this._maxPad)/h)}for(p=1;p<c.length-2;p+=s){var _=t+p-1,d=this._categories[t+p-1];a.push({index:p-1,pos:NaN,value:_,label:n.getTick(p-1,d?d.t:_)})}return this._setMinMax(l,u),a},e.prototype._calcPoints=function(e,i){t.prototype._calcPoints.call(this,e,i);var n=this._pts;if(i>0)for(var r=0;r<n.length;r++)n[r]/=this._vlen;for(r=0;r<n.length;r++)n[r]*=e;if(this._isPolar){if(i>0){var o=this._op.totalAngle*kS;this._pts=n.map((function(t){return t/e*o}))}}else{var s=void 0;s="edge"===this._tick.getPosition()?n.slice(1,n.length-1):this._ticks.map((function(t){return t.pos})),this._markPoints=s}},e.prototype.getPos=function(t,e){var i=this._pts,n=Math.floor(e-this._catMin+.5),r=i[n+1]+(i[n+2]-i[n+1])*(e-Math.floor(e+.5)+.5);return this._op.reversed?t-r:r},e.prototype.valueAt=function(t,e){this._op.reversed&&(e=t-e);for(var i=1;i<this._pts.length-1;i++)if(e>=this._pts[i]&&e<this._pts[i+1])return this._catMin+i-.5},e.prototype.getUnitLen=function(t,e){var i=Math.floor(e-this._catMin+.5);return this._pts[i+2]-this._pts[i+2-1]},e.prototype.getLabelLength=function(t,e){var i=Math.floor(e-this._catMin+.5);return i>this._tstep?this._pts[i+2]-this._pts[i+2-this._tstep]:this._pts[i+2+this._tstep-1]-this._pts[i+2-1]},e.prototype.getValue=function(t){return qx(t)?t:this._map[t]},e.prototype.getXValue=function(t){return this._cats[t-this._catMin]||t},e.prototype.$_collectCategories=function(t){var e,i,n,r,o=this,s=this._op.categories,a=this._categories=[];if(Wx(s)&&s.length>0)this._len=0,s.forEach((function(t){var e,i,n=null==t?1:aS(t.weight,1),r=t&&t.icon;null==t?i=e=null:Gx(t)?(e=uS(t.name,t.label),i=uS(t.label,t.name)):i=e=String(t),o._len+=n,a.push({c:e,t:i,w:n,i:r})}));else if(Wx(t))try{for(var l=Ix(t),u=l.next();!u.done;u=l.next()){var h=u.value.collectCategories(this),p=function(t){a.find((function(e){return e.c===t}))||a.push({c:t,w:1,t:t})};try{for(var c=(n=void 0,Ix(h)),f=c.next();!f.done;f=c.next()){p(f.value)}}catch(t){n={error:t}}finally{try{f&&!f.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}}}catch(t){e={error:t}}finally{try{u&&!u.done&&(i=l.return)&&i.call(l)}finally{if(e)throw e.error}}this._map={},a.forEach((function(t,e){null!=t.c&&(o._map[t.c]=e)}))},e.type="category",e.defaults=uV(BV.defaults,{padding:0,categoryPadding:.1,startOffset:0}),e}(BV),$k={},zk={},Hk=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}var i;return Dx(e,t),e.prototype._doInit=function(e){var i=this;t.prototype._doInit.call(this,e),this._domain={callback:function(t,e){return i._point[e]||i._point.source[e]}}},e.prototype.getValue=function(t,e){if(this._op.textField){var i=t.getProp(this._op.textField);if(null!=i)return i}return t.getPointLabel(e)},e.prototype.getTextDomain=function(t){return this._point=t,this._domain},e.prototype.getText=function(t){return _S.isValidNum(t)?this._getText(null,t,sS(t)>1e3,!0):t},e.prototype.getOffset=function(){return aS(this._op.offset,0)},e.prototype.getDefaultIconPos=function(){return"top"},e.prototype._isVisible=function(){return this._op.visible||Yx(this._op.visibleCallback)},e.prototype._doSetSimple=function(e){return Yx(e)?(this._op.visibleCallback=e,this._op.visible=!0):t.prototype._doSetSimple.call(this,e)},e.prototype._doPrepareRender=function(e){t.prototype._doPrepareRender.call(this,e),this._domain.numberFormatter=this._numberFormatter},i=e,e.OFFSET=5,e.defaults=uV(_V.defaults,{visible:void 0,position:"auto",offset:i.OFFSET}),e}(_V),Gk=function(t){function e(e){var i=t.call(this,e.chart)||this;return i.series=e,i}return Dx(e,t),e.prototype._doPrepareRender=function(t){var e=this.series,i=this._res=(e._runPoints.length-1)*Math.max(1,+this._op.resolution||5),n=e._minX>0?0:(e._maxX-e._minX)/i-e._minX,r=e._minY>0?0:(e._maxY-e._minY)/i-e._minY,o=e._runPoints.filter((function(t){return!t.isNull})).map((function(t){return{x:t.xValue+n,y:t.yValue+r}}));(this["_"+this._op.type]||this._linear).call(this,o,this._points=[]),this._points.forEach((function(t){t.x-=n,t.y-=r}))},e.prototype.isCurved=function(){var t=this._op.type;return!0===this._op.curved||null==this._op.curved&&("exponential"===t||"logarithmic"===t||"power"===t)},e.prototype._calcLine=function(t){var e=t.length,i=0,n=0,r=0,o=0;t.forEach((function(t){i+=t.x,n+=t.y,r+=t.x*t.y,o+=t.x*t.x}));var s=e*o-i*i,a=0===s?0:(e*r-i*n)/s;return{m:a,a:(n-a*i)/e}},e.prototype._linear=function(t,e){var i=t.length;if(i>1){var n=this._calcLine(t),r=n.m,o=n.a;e.push({x:t[0].x,y:r*t[0].x+o}),e.push({x:t[i-1].x,y:r*t[i-1].x+o})}},e.prototype._logarithmic=function(t,e){var i=t.length;if(i>1)for(var n=t.map((function(t){return{x:Math.log(t.x),y:aS(t.y,0)}})),r=this._calcLine(n),o=r.m,s=r.a,a=t[0].x,l=t[i-1].x,u=(l-a)/this._res,h=a;h<=l;h+=u){var p=s+Math.log(h)*o;e.push({x:h,y:p})}},e.prototype._power=function(t,e){var i=t.length;if(i>1)for(var n=t.map((function(t){return{x:Math.log(t.x),y:Math.log(t.y)}})),r=this._calcLine(n),o=r.m,s=r.a,a=Math.exp(s),l=t[0].x,u=t[i-1].x,h=(u-l)/this._res,p=l;p<=u;p+=h){var c=a*Math.pow(p,o);e.push({x:p,y:c})}},e.prototype._calcLine2=function(t){t.length;var e=0,i=0,n=0,r=0,o=0;t.forEach((function(t){t.x,e+=t.y,i+=t.x*t.x*t.y,n+=t.y*Math.log(t.y),r+=t.x*t.y*Math.log(t.y),o+=t.x*t.y}));var s=e*i-o*o,a=Math.exp((i*n-o*r)/s);return{m:(e*r-o*n)/s,a:a}},e.prototype._exponential=function(t,e){var i=t.length;if(i>1)for(var n=t.map((function(t){return{x:t.x,y:t.y}})),r=this._calcLine2(n),o=r.m,s=r.a,a=t[0].x,l=t[i-1].x,u=(l-a)/this._res,h=a;h<=l;h+=u){var p=s*Math.exp(o*h);e.push({x:h,y:p})}},e.prototype._polynomial=function(t,e){var i=t.length;if(i>1){for(var n=[],r=[],o=0,s=0,a=0;a<3;a++){for(var l=0;l<i;l++)o+=Math.pow(t[l].x,a)*t[l].y;n.push(o),o=0;for(var u=[],h=0;h<3;h++){for(l=0;l<i;l++)s+=Math.pow(t[l].x,a+h);u.push(s),s=0}r.push(u)}r.push(n);for(var p=function(t,e){for(var i=t,n=t.length-1,r=[e],o=0;o<n;o++){for(var s=o,a=o+1;a<n;a++)sS(i[o][a])>sS(i[o][s])&&(s=a);for(var l=o;l<n+1;l++){var u=i[l][o];i[l][o]=i[l][s],i[l][s]=u}for(a=o+1;a<n;a++)for(l=n;l>=o;l--)i[l][a]-=i[l][o]*i[o][a]/i[o][o]}for(a=n-1;a>=0;a--){var h=0;for(l=a+1;l<n;l++)h+=i[l][a]*r[l];r[a]=(i[n][a]-h)/i[a][a]}return r}(r,3),c=t[0].x,f=t[i-1].x,_=(f-c)/this._res,d=function(t){var i=p.reduce((function(e,i,n){return e+i*Math.pow(t,n)}),0);e.push({x:t,y:i})},y=c;y<=f;y+=_)d(y)}},e.prototype._movingAverage=function(t,e){for(var i=t.length,n=oS(1,rS(i-1,this._op.movingInterval)),r=n;r<=i;){var o=t.slice(r-n,r).reduce((function(t,e){return t+aS(e.y,0)}),0);e.push({x:t[r-1].x,y:o/n}),r++}},e.defaults=uV(pV.defaults,{visible:!1,type:"linear",resolution:5,movingInterval:2}),e}(pV),Wk={x:"xValue",y:"yValue",z:"zValue"},Yk=function(t){function e(e,i){var n=t.call(this)||this;return n.series=e,n.point=i,n.duration=500,n.endHandler=function(){delete n.point._vr,n.series._changed(),n.series=n.point=null},n}return Dx(e,t),e.prototype._doUpdate=function(t){return this.point._vr=t,this.series._changed(),!0},e}(yk),Xk=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e}(Mk),Uk=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._row=0,e._col=0,e.index=-1,e.seriesIndex=0,e._simpleMode=!1,e}return Dx(e,t),e.register=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];t.forEach((function(t){$k[t.type]=t}))},e._loadSeries=function(t,e,i,n){var r=t._getSeriesType(i.type)||t._getSeriesType(n||t.type);if(!r)throw new Error("Invalid series type: "+i.type+", "+t.type);var o=new r(t);return o.init(),o.index=e,o.seriesIndex=t._seriesIndex++,o._load(i),o},e.getPointTooltipParam=function(t,e,i){switch(i){case"series":return t.displayName();case"name":return e.getTooltip(i)||t._xAxisObj.getXValue(e.xValue);case"xValue":return t._xAxisObj.value2Tooltip(e.xValue);case"yValue":return t._yAxisObj.value2Tooltip(e[i]);default:return e.getTooltip(i)}},e.prototype._doInit=function(t){this._points=new Tk(this),this._pointArgs={}},e.prototype._doInitChildren=function(t){t.pointLabel=(this._pointLabel=this._createLabel(this.chart)).init()},e.prototype.onDataValueChanged=function(t,e,i,n,r){_S.log("onDataValueChanged",e,i,n,r);var o=this._runPoints[e];if(o){var s={};s[i]=n,this.updatePoint(o,s)}},e.prototype.onDataRowUpdated=function(t,e,i){},e.prototype.onDataRowAdded=function(t,e){_S.log("onDataRowAdded",e),this.addPoint(t.getRow(e))},e.prototype.onDataRowDeleted=function(t,e){_S.log("onDataRowDeleted",e);var i=this._runPoints[e];i&&this.removePoint(i)},e.prototype.onDataChanged=function(t){_S.log("onDataChanged")},e.prototype.getTooltipText=function(t,e){return this._op.tooltipCallback?(this._getPointCallbackArgs(this._pointArgs,e),this._op.tooltipCallback(this._pointArgs)):this._op.tooltipText},e.prototype.getTooltipParam=function(t,i,n){return e.getPointTooltipParam(t,i,n)},e.prototype._type=function(){return this.constructor.type},e.prototype._viewType=function(){return this._type()},Object.defineProperty(e.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pointLabel",{get:function(){return this._pointLabel},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"data",{get:function(){return this._data},enumerable:!1,configurable:!0}),e.prototype._setData=function(t){t!==this._data&&(this._op.data=this._data=t,this._dataSourceDirty=!0,this._changed())},Object.defineProperty(e.prototype,"pointCount",{get:function(){return this._runPoints.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"points",{get:function(){return this._runPoints.slice(0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"visiblePointCount",{get:function(){return this._visPoints.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"visiblePoints",{get:function(){return this._visPoints.slice(0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"canPolar",{get:function(){return!1},enumerable:!1,configurable:!0}),e.prototype.getVisiblePoint=function(t){return this._visPoints[t]},e.prototype.contains=function(t){return this._points.contains(t)},e.prototype.getPoints=function(){return this._points},e.prototype._getLabeledPoints=function(){return this._points.getPoints(this._xAxisObj,this._yAxisObj)},e.prototype._getVisiblePoints=function(){return this._points.getPoints(this._xAxisObj,this._yAxisObj)},e.prototype.pointLabelCount=function(){return 1},e.prototype.isEmpty=function(){return this._points.isEmpty()},e.prototype.needAxes=function(){return!0},e.prototype.canCategorized=function(){return!1},e.prototype.hasZ=function(){return!1},e.prototype.defYAxisType=function(){return"linear"},e.prototype.isClusterable=function(){return!1},e.prototype.isMarker=function(){return!1},e.prototype.displayName=function(){return this._op.label||this.name},e.prototype.legendMarker=function(t,e){return this._legendMarker||(this._legendMarker=this._createLegendMarker(t,e)),this._legendMarker},e.prototype.legendColor=function(){return this._calcedColor},e.prototype.legendLabel=function(){return this._op.label||this.name},e.prototype.styleLegendMarker=function(t){},e.prototype.canMixWith=function(t){return!0},e.prototype.getBaseValue=function(t){return NaN},e.prototype.isBased=function(t){return!1},e.prototype.canMinPadding=function(t,e){var i=this.getBaseValue(t);return isNaN(i)||!this.isBased(t)||e<i},e.prototype.canMaxPadding=function(t,e){var i=this.getBaseValue(t);return isNaN(i)||!this.isBased(t)||e>i},e.prototype.hasShape=function(){return!1},e.prototype.setShape=function(t){},e.prototype.seriesChanged=function(){return this._pointsChanged},e.prototype.getMinPointWidth=function(){return NaN},e.prototype.getVisibleSeries=function(){return[this]},e.prototype._getNoClip=function(t){return this._group?this._group.options.noClip:this._op.noClip},e.prototype.needClip=function(t){var e=this._getNoClip(t);return t?!1===e:!0!==e},e.prototype.setCol=function(t){this._col=t},e.prototype.setRow=function(t){this._row=t},e.prototype.initPoints=function(t){var e=this;return this._containsNull=!1,t.map((function(t,i){return e.$_addPoint(t,i)}))},e.prototype.$_getXStart=function(t){var e=t.getValue(this._op.xStart),i=isNaN(e)?t.getValue(this.chart._chartOptions.getXStart(t)):e;return t._zoom?Math.floor(t._zoom.start):i||0},e.prototype.$_getXStep=function(t){return uS(this._op.xStep,this.chart._chartOptions.options.xStep)||1},e.prototype._prepareRender=function(){if(this._xAxisObj=this._group?this._group._xAxisObj:this.chart._connectSeries(this,!0),this._yAxisObj=this._group?this._group._yAxisObj:this.chart._connectSeries(this,!1),this._calcedColor=void 0,this._dataSourceDirty){var e=this._doLoadData(this._data);this._loadPoints(e),this._dataSourceDirty=!1}this._runPoints=this._points.getPoints(this._xAxisObj,this._yAxisObj),this._pointLabel._prepareRender(),t.prototype._prepareRender.call(this)},e.prototype.prepareAfter=function(){this._pointsChanged=!1},e.prototype.collectCategories=function(t){if(t instanceof jk){var e=t.options.categoryField;return null!=e?this._points.getProps(e):this._points.getCategories(t===this._xAxisObj?"x":"y").filter((function(t){return Xx(t)}))}},e.prototype.collectValues=function(t,e){if(t===this._xAxisObj){var i=this.$_getXStart(t),n=this.$_getXStep(t);Xx(n)&&(n=n.trim()),this._runPoints.forEach((function(r,o){var s=t.getValue(r.x);isNaN(s)&&(s=i,i=t.incStep(i,n)),isNaN(s)?r.isNull=!0:(r.xValue=s,e&&e.push(s))}))}else this._runPoints.forEach((function(i,n){if(i.isNull)i.y=i.yGroup=i.yValue=NaN;else{var r=null==i.y?NaN:t.getValue(i.y);isNaN(r)&&(r=t.getValue(i.y)),i.initValues(),isNaN(i._vr)||(isNaN(i._prev.yValue)&&i.initPrev(t,i._prev),r=i._prev.yValue+(r-i._prev.yValue)*i._vr,i.applyValueRate(i._prev,i._vr)),isNaN(r)?i.yGroup=0:(i.yGroup=i.yValue=r,e&&e.push(r)),i.isNull=isNaN(i.yValue)}}))},e.prototype.collectRanges=function(t){var e,i=this._visPoints,n=i.length;if(n>0){var r=this._pointArgs,o=i[0],s=o.xValue,a=s,l=o.yValue,u=l,h=o.zValue,p=h,c=this.hasZ();o.vindex=0;for(var f=1;f<n;f++)(o=i[f]).vindex=f,isNaN(u)&&!isNaN(o.yValue)?l=u=o.yValue:o.yValue>u?u=o.yValue:o.yValue<l&&(l=o.yValue),isNaN(a)&&!isNaN(o.xValue)?s=a=o.xValue:o.xValue>a?a=o.xValue:o.xValue<s&&(s=o.xValue);if(c)for(f=1;f<n;f++){var _=i[f].zValue;isNaN(p)&&!isNaN(_)?h=p=_:_>p?p=_:_<h&&(h=_)}if(this._minY=l,this._maxY=u,this._minX=s,this._maxX=a,null===(e=this._trendline)||void 0===e?void 0:e.visible){this._trendline._prepareRender();var d=this._trendline._points.map((function(t){return t.y})).sort((function(t,e){return t-e}));this._minY=Math.min(this._minY,d[0]),this._maxY=Math.max(this._maxY,d[d.length-1])}r.yMin=this._minY,r.yMax=this._maxY,r.xMin=this._minX,r.xMax=this._maxX,c&&(r.zMin=this._minZ=h,r.zMax=this._maxZ=p)}this.$_prepareViewRanges(i),isNaN(this._minY)||t.push(this._minY,this._maxY)},e.prototype._getRangeMinMax=function(t){var e,i;return"x"===t?(e=this._minX,i=this._maxX):"z"===t?(e=this._minZ,i=this._maxZ):(e=this._minY,i=this._maxY),{min:e,max:i}},e.prototype.$_prepareViewRanges=function(t){var e=this,i=this._runRangeValue=this.getViewRangeAxis(),n=this._getRangeMinMax(i),r=n.min,o=n.max;(this._runRanges=US(this._op.viewRanges,r,o,!1,!1,!0,this._runColor))?t.forEach((function(t,n){e._setViewRange(t,i)})):t.forEach((function(t,e){t.range=xS}))},e.prototype.pointValuesPrepared=function(t){var e=this;this._referents&&this._referents.forEach((function(i){return i.reference(e,t)})),this.visible&&(this._visPoints=this._runPoints.filter((function(t){return t.visible})))},e.prototype.reference=function(t,e){},e.prototype.getLegendSources=function(t){!1!==this._op.visibleInLegend&&t.push(this)},e.prototype.getLabelPos=function(t){return this._getLabelAutoPos(t,t.options.position)},e.prototype._getLabelAutoPos=function(t,e){return e},e.prototype.getLabelPos2=function(t,e){return this._labelPosCallback?this._getLabelAutoPos(t,this._labelPosCallback(this._getPointCallbackArgs(this._pointArgs,e))):this._labelPos},e.prototype.getLabelOff=function(t){return t},e.prototype.getLabelOff2=function(t){return this._labelOffCallback?aS(this._labelOffCallback(this._getPointCallbackArgs(this._pointArgs,t)),Hk.OFFSET):this._labelOff},e.prototype.referBy=function(t){t&&(this._referents?this._referents.indexOf(t)<0&&this._referents.push(t):this._referents=[t])},e.prototype.setPointVisible=function(t,e){t&&e!==t.visible&&(t.visible=e,this.chart._pointVisibleChanged(this,t))},e.prototype._preparePointArgs=function(t){this._pointLabelCallback=this._pointLabel.options.textCallback,this._argsPoint=null,t.series=this,t.count=this._points.count},e.prototype._getPointCallbackArgs=function(t,e){return e!==this._argsPoint&&(this._argsPoint=e).assignTo(t),t},e.prototype.getPointText=function(t,e,i){var n;return this._pointLabelCallback&&(this._pointArgs.labelIndex=e,this._getPointCallbackArgs(this._pointArgs,t),null!=(n=this._pointLabelCallback(this._pointArgs)))||null!=(n=t.getPointText(e))?n:i},e.prototype.getPointStyle=function(t){if(this._op.pointStyleCallback)return this._getPointCallbackArgs(this._pointArgs,t),this._op.pointStyleCallback(this._pointArgs)},e.prototype.getPointLabelStyle=function(t){if(this._pointLabel.options.styleCallback)return this._getPointCallbackArgs(this._pointArgs,t),this._pointLabel.options.styleCallback(this._pointArgs)},e.prototype.pointClicked=function(t){if(this._op.onPointClick)return this._getPointCallbackArgs(this._pointArgs,t),this._op.onPointClick(this._pointArgs)},e.prototype.pointHovered=function(t){this._op.onPointHover&&(t&&this._getPointCallbackArgs(this._pointArgs,t),this._op.onPointHover(t?this._pointArgs:null))},e.prototype.getViewRangeAxis=function(){return this._op.viewRangeValue||this._defViewRangeValue()},e.prototype.isPointLabelVisible=function(t){var e=this._pointLabel;return!1!==e.visible&&(e.options.visibleCallback?(this._getPointCallbackArgs(this._pointArgs,t),e.options.visibleCallback(this._pointArgs)):!0===e.visible)},e.prototype.getPointAt=function(t){return Xx(t)&&(t=this._xAxisObj.getValue(t)),this._points.pointAt(t)},e.prototype.getValueAt=function(t,e){void 0===e&&(e="yValue");var i=this.getPointAt(t);return i?i[e]:xS},e.prototype.updatePoint=function(t,e){if(t instanceof Mk||(t=this.getPointAt(t)),t){var i=t._prev;return i&&i.ani&&i.ani.stop(),(i=t.updateValues(this,e))&&(this.chart._dataChanged(),this.chart.animatable()&&(i.ani=new Yk(this,t),i.ani.start())),this._changed(),!!i}return!1},e.prototype.updateData=function(t){this._setData(t),this.chart._dataChanged()},e.prototype.addPoint=function(t){var e=this._doAddPoint(t);if(e){if(this._points.add(e),this.chart._dataChanged(),this.chart.animatable()){this._pointsChanged=!0;var i=e._prev=e.copy();i.ani=new Yk(this,e),i.ani.start()}this._changed()}return e},e.prototype.addPoints=function(t){var e=this,i=[];return Wx(t)&&t.forEach((function(t){var n=e._doAddPoint(t);n&&i.push(n)&&e._points.add(n)})),i.length>0&&(this._pointsChanged=!0,this.chart._dataChanged(),this.chart.animatable()&&i.forEach((function(t){var i=t._prev=t.copy();i.ani=new Yk(e,t),i.ani.start()})),this._changed()),i},e.prototype.removePoint=function(t){if(t instanceof Mk||(t=this.getPointAt(t)),t&&this._points.remove(t))return this._doPointRemoved(t),this._pointsChanged=!0,this.chart._dataChanged(),this._changed(),!0},e.prototype.removePoints=function(t){var e=this;if(Wx(t)){var i=[];t.forEach((function(t){t instanceof Mk||(t=e.getPointAt(t)),t&&e._points.remove(t)&&i.push(t)})),i.length>0&&(this._doPointsRemoved(i),this._pointsChanged=!0,this.chart._dataChanged(),this._changed())}return 0},e.prototype.followPointer=function(){return!1},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),this._name=e.name||"Series ".concat(this.index+1),this._setData(e.data),this._createFielders()},e.prototype._createLabel=function(t){return new Hk(t)},e.prototype._createPoint=function(t){return new Xk(t)},e.prototype.$_addPoint=function(t,e){var i=this._createPoint(t);return i.index=e,i.parse(this),(i.isNull||(i.isNull=null==t||null==i.y))&&(this._containsNull=!0),i},e.prototype._doAddPoint=function(t){return this.$_addPoint(t,this._points.count)},e.prototype._doPointRemoved=function(t){},e.prototype._doPointsRemoved=function(t){},e.prototype._createLegendMarker=function(t,i){return wk.create(t,e.LEGEND_MARKER,0,0,i,i,i/2)},e.prototype._referOtherSeries=function(t){return!0},e.prototype._colorByPoint=function(){return!1},e.prototype._getFielderProps=function(){return["xField","yField","zField","colorField"]},e.prototype._createFielder=function(t){return Yx(t)?function(e){return t(e)}:Xx(t)?function(e){return e[t]}:function(t){}},e.prototype._createFielders=function(){var t=this,e=this._op;this._getFielderProps().forEach((function(i){var n="_".concat(i,"er");(!t[n]||i in e&&t["_".concat(i)]!==e[i])&&(t[n]=t._createFielder(e[i]),t["_".concat(i)]=e[i])}))},e.prototype._defaultLoadAnimation=function(){return"reveal"},e.prototype._load=function(e){return this.chart?t.prototype._load.call(this,this.chart.loadBase(e,"series",this._type())):t.prototype._load.call(this,e)},e.prototype._doLoadData=function(t){if(Wx(t))return t;if(t){var e=void 0;if(t._obj instanceof JS?e=t._obj:t instanceof JS&&(e=t),e)return e!==this._cdata&&(this._cdata&&this._cdata._removeListener(this),this._cdata=e,this._cdata&&this._cdata._addListener(this)),e._internalValues()}},e.prototype._loadPoints=function(t){var e,i;this._doLoadPoints(t),null===(i=(e=this._op).onPointsLoaded)||void 0===i||i.call(e,this,!this._loaded),this._loaded=!0},e.prototype._doLoadPoints=function(t){this._points.load(t)},e.prototype._doPrepareRender=function(){var t,e,i=this._op,n=this._runColor=qx(i.color)?"var(--color-".concat((Math.floor(i.color)-1)%12+1,")"):i.color;Wx(i.pointColors)?t=i.pointColors:Xx(i.pointColors)?e=this.chart._assets.get(i.pointColors):this._colorByPoint()&&(t=this.chart.options.options.colors),e instanceof oV?(e.prepare(),this._runPoints.forEach((function(t,i){t.color=t.color||e.getNext()||n}))):Wx(t)?this._runPoints.forEach((function(e,i){e.color=e.color||t[i%t.length]||n})):this._runPoints.forEach((function(t,e){t.color=t.color||n})),this._preparePointArgs(this._pointArgs),this._labelPosCallback=cS(i.pointLabel.position),this._labelPos=this.getLabelPos(this._pointLabel),this._labelOffCallback=cS(i.pointLabel.offset),this._labelOff=this.getLabelOff(this._pointLabel.getOffset())},e.prototype._setViewRange=function(t,e){var i,n,r=t[Wk[e]];try{for(var o=Ix(this._runRanges),s=o.next();!s.done;s=o.next()){var a=s.value;if(r>=a.fromValue&&r<=a.toValue)return void(t.range=a)}}catch(t){i={error:t}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}t.range=xS},e.prototype._defViewRangeValue=function(){return"y"},e.prototype._canSort=function(){return!0},e.LEGEND_MARKER="rct-legend-item-marker",e.defaults=uV(pV.defaults,{zOrder:0,visibleInLegend:!0,visibleInNavigator:!1,tooltipText:"<b>${name}</b><br>${series}:<b> ${yValue}</b>",loadAnimation:"default",hoverEffect:"default"}),e}(pV),qk=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._map={},e._visibles=[],e._series=[],e._visibleSeries=[],e}return Dx(e,t),Object.defineProperty(e.prototype,"firstSeries",{get:function(){return this._series[0]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"firstVisible",{get:function(){return this._visibles[0]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"firstVisibleSeries",{get:function(){return this._visibleSeries[0]},enumerable:!1,configurable:!0}),e.prototype.isWidget=function(){return this._widget},e.prototype.isEmpty=function(t){return!(t?this._visibles:this._items).find((function(e){return!e.isEmpty(t)}))},e.prototype.visibles=function(){return this._visibles.slice(0)},e.prototype.series=function(){return this._series.slice(0)},e.prototype.seriesCount=function(){return this._series.length},e.prototype.needAxes=function(){return!!this._visibles.find((function(t){return t.needAxes()}))||0===this._visibleSeries.length},e.prototype._clear=function(){},e.prototype.get=function(t){return this._items[t]},e.prototype.getSeries=function(t){return this._map[t]},e.prototype.getVisibleSeries=function(){return this._visibleSeries.slice(0)},e.prototype.getPaneSeries=function(t,e){return this._visibleSeries.filter((function(i){return t===i._row&&e===i._col}))},e.prototype.seriesByPoint=function(t){var e,i;try{for(var n=Ix(this._series),r=n.next();!r.done;r=n.next()){var o=r.value;if(o.contains(t))return o}}catch(t){e={error:t}}finally{try{r&&!r.done&&(i=n.return)&&i.call(n)}finally{if(e)throw e.error}}},e.prototype.getLegendSources=function(){var t=[];return this._items.forEach((function(e){return e.getLegendSources(t)})),t},e.prototype.load=function(t){var e=this,i=this.chart,n=this._items=[],r=this._series=[];Wx(t)?t.forEach((function(t,r){n.push(e.$_loadItem(i,t,r))})):Gx(t)&&n.push(this.$_loadItem(i,t,0)),n.forEach((function(t){t instanceof aA?r.push.apply(r,$x([],jx(t.series),!1)):t instanceof Uk&&r.push(t)})),this._map={},this._widget=!0,r.forEach((function(t){return e.$_add(t)})),i.options.series=this._items.map((function(t){return t.options}))},e.prototype.add=function(t){var e=this.$_loadItem(this.chart,t,this._series.length);if(e)return this._items.push(e),this._series.push(e),this.$_add(e),e},e.prototype.remove=function(t){var e;if(t instanceof Uk?e=t:Xx(t)&&(e=this._map[t]),e){if(!e._group)return this._items.splice(this._items.indexOf(e),1),this._series.splice(this._series.indexOf(e),1),e.name&&delete this._map[e.name],e;if(e._group.remove(e))return e}},e.prototype.updateData=function(t){},e.prototype.prepareRender=function(){var t=[],e=0;this._visibles=this._items.filter((function(t){return t.visible})).sort((function(t,e){return(+t.options.zOrder||0)-(+e.options.zOrder||0)})),this._series.forEach((function(i){i.visible&&(!i._group||i._group.visible)&&t.push(i),i.hasShape()&&i.setShape(gk[e++%gk.length])})),this._visibleSeries=t.sort((function(t,e){var i=+(t.group?t.group.zOrder:t.zOrder)||0,n=+(e.group?e.group.zOrder:e.zOrder)||0;return i===n&&t.group&&t.group===e.group?(+t.zOrder||0)-(+e.zOrder||0):i-n}));var i=this._visibleSeries.filter((function(t){return t.isClusterable()})).length;this._visibleSeries.forEach((function(t,e){t instanceof nA&&(t._single=1===i)})),this._visibles.forEach((function(t){return t._prepareRender()}))},e.prototype.prepareAfter=function(){this._visibles.forEach((function(t){return t.prepareAfter()}))},e.prototype.$_loadItem=function(t,e,i){var n=Wx(e.children||e.series)&&t._getGroupType(e.type||t.type);if(n){var r=new n(t);return r.init(),r._load(e),r.index=i,r}return Uk._loadSeries(t,i,e)},e.prototype.$_add=function(t){var e,i;!this._widget||t instanceof eA||(this._widget=!1),t.name&&(this._map[t.name]=t);try{for(var n=Ix(this._series),r=n.next();!r.done;r=n.next()){var o=r.value;if(o!==t){if(!t.canMixWith(o))throw new Error("동시에 표시할 수 없는 시리즈들입니다: "+t._type()+", "+o._type());if(t._referOtherSeries(o))break}}}catch(t){e={error:t}}finally{try{r&&!r.done&&(i=n.return)&&i.call(n)}finally{if(e)throw e.error}}},e}(cV),Zk=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._doInitChildren=function(e){t.prototype._doInitChildren.call(this,e),e.trendline=(this._trendline=new Gk(this)).init()},Object.defineProperty(e.prototype,"trendline",{get:function(){return this._trendline},enumerable:!1,configurable:!0}),e.defaults=uV(Uk.defaults,{}),e}(Uk),Kk=function(t){function e(e){var i=t.call(this,e.chart)||this;return i.series=e,i._args={},i}return Dx(e,t),e.prototype.getMarkerStyle=function(t){if(this._op.styleCallback)return this.series._getPointCallbackArgs(this._args,t),this._op.styleCallback(this._args)},e.defaults=uV(pV.defaults,{radius:3}),e}(pV),Jk=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.legendMarker=function(){return this._legendMarker},e.prototype.setLegendMarker=function(t){this._legendMarker=t},e.prototype.legendColor=function(){return this._calcedColor},e.prototype.legendLabel=function(){return uS(this.x,this.y)},e.prototype.styleLegendMarker=function(t){},e.prototype.isEmpty=function(){return 0===this.yValue},e.prototype.initPrev=function(t,e){e.yValue=0},e}(Mk),Qk=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.defaults=uV(pV.defaults,{curved:!0}),e}(pV),tA=function(t){function e(e,i){void 0===i&&(i=!1);var n=t.call(this,e)||this;return n.isSub=i,n}return Dx(e,t),e.prototype._doInitChildren=function(e){t.prototype._doInitChildren.call(this,e),e.connector=(this._connector=new Qk(this.chart)).init()},Object.defineProperty(e.prototype,"connector",{get:function(){return this._connector},enumerable:!1,configurable:!0}),e.prototype.getAlign=function(){return"near"===this._op.align?-1:"far"===this._op.align?1:0},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),this._setDims(e,"distance")},e.defaults=uV(Hk.defaults,{visible:!0,convergable:!0,align:Sk,dedupeMode:Vk}),e}(Hk),eA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._doInitChildren=function(e){t.prototype._doInitChildren.call(this,e),e.subLabel=(this._subLabel=this._createLabel(this.chart)).init()},Object.defineProperty(e.prototype,"subLabel",{get:function(){return this._subLabel},enumerable:!1,configurable:!0}),e.prototype.getCenter=function(t,e){return{x:jS(this._centerXDim,t),y:jS(this._centerYDim,e)}},e.prototype._getLabelAutoPos=function(e,i){return"auto"===i?e.isSub&&"inside"===t.prototype.getLabelPos.call(this,this._pointLabel)?"outside":"inside":i},e.prototype.needAxes=function(){return!1},e.prototype._colorByPoint=function(){return!0},e.prototype.getLegendSources=function(e){var i=this;this._op.legendByPoint?!1!==this._op.visibleInLegend&&this._runPoints.forEach((function(t){i._isVisibleInLegend(t)&&e.push(t)})):t.prototype.getLegendSources.call(this,e)},e.prototype._isVisibleInLegend=function(t){return t.yValue>=0&&(t.yValue>0||this._op.zeroInLegend)},e.prototype._doApply=function(i){var n,r,o=this;t.prototype._doApply.call(this,i),n=i.centerX,r=i.centerY,n!==o._centerX&&(o._centerX=n,o._centerXDim=FS(hS(n,o._op.center,e.CENTER),!0)),r!==o._centerY&&(o._centerY=r,o._centerYDim=FS(hS(r,o._op.center,e.CENTER),!0))},e.prototype.canMinPadding=function(t,e){return!1},e.prototype.canMaxPadding=function(t,e){return!1},e.CENTER="50%",e.defaults=uV(Uk.defaults,{legendByPoint:!1,zeroInLegend:!0,centerX:"50%",centerY:"50%"}),e}(Uk),iA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.getRadius=function(t,e){return jS(this._radiusDim,rS(t,e))},e.prototype._doApply=function(i){t.prototype._doApply.call(this,i),function(t,i){i!==t._radius&&(t._radiusDim=FS(uS(t._radius=i,e.defaults.radius),!0))}(this,i.radius)},e.defaults=uV(eA.defaults,{radius:"40%",startAngle:0,totalAngle:360,clockwise:!0}),e}(eA),nA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._clusterWidth=1,e._clusterPos=0,e._childWidth=1,e._childPos=0,e._pointPad=0,e._minPointWidth=0,e}return Dx(e,t),e.prototype.groupWidth=function(){return this._op.pointWidth},e.prototype.getMinPointWidth=function(){return this._minPointWidth},e.prototype.getPointWidth=function(t){var e=this._group,i=t;return e?(i*=e._clusterWidth,i*=1-2*e.options.groupPadding,i*=this._childWidth):i*=this._clusterWidth,i*=1-2*this._pointPad,oS(this._minPointWidth,i)},e.prototype.getPointPos=function(t){var e=this._group,i=t,n=0;return e?(n=i*e._clusterPos,n+=(i*=e._clusterWidth)*e.options.groupPadding,n+=(i-=i*e.options.groupPadding*2)*this._childPos,i*=this._childWidth):(n=i*this._clusterPos,i*=this._clusterWidth),n+=i*this._pointPad},e.prototype.isClusterable=function(){return!1!==this._op.clusterable},e.prototype.setCluster=function(t,e){this._clusterWidth=t,this._clusterPos=e},e.prototype._doPrepareRender=function(){t.prototype._doPrepareRender.call(this),this._pointPad=isNaN(this._op.pointPadding)?this._single?.25:this._group?.1:.2:Math.max(0,Math.min(.5,this._op.pointPadding)),this._minPointWidth=aS(this.getMinPointWidth(),0)},e.defaults=uV(Uk.defaults,{pointWidth:1}),e}(Zk),rA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._doPrepareRender=function(){t.prototype._doPrepareRender.call(this),this._base=aS(this._getGroupBase(),this._yAxisObj.getBaseValue())},e.prototype.getBaseValue=function(t){return t===this._yAxisObj?this._base:NaN},e.prototype._getGroupBase=function(){return this._op.baseValue},e.prototype.isBased=function(t){return t===this._yAxisObj},e.defaults=uV(nA.defaults,{baseValue:0,nullAsBase:!1}),e}(nA),oA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.collectValues=function(e,i){var n=this;t.prototype.collectValues.call(this,e,i),e===this._yAxisObj&&this._runPoints.forEach((function(t){var e=n._getBottomValue(t);i&&!isNaN(e)&&i.push(e)}))},e}(nA),sA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e}(oA),aA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.index=-1,e._series=[],e._visibles=[],e._seriesChanged=!1,e}return Dx(e,t),e.register=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];t.forEach((function(t){zk[t.type]=t}))},e.registerSeries=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];t.forEach((function(t){zk[t.seriesType]=t}))},e.collectTooltipText=function(t,e,i){var n=t.tooltipHeader||"";return t.tooltipRow&&e.forEach((function(e,r){i.vindex>=e._visPoints.length||(n&&(n+="<br>"),n+=t.tooltipRow.replace("series","series."+r).replace(/\$\{/g,"${"+r+"."))})),n+=t.tooltipFooter?"<br>"+t.tooltipFooter:""},e.inflateTooltipParam=function(t,e,i,n){var r=n.indexOf("."),o=parseInt(n.substring(0,r));if(!isNaN(o)){var s=t[o]._visPoints[i.vindex];s&&(e=t[o],i=s,n=n.substring(r+1))}return n.startsWith("series.")&&(e=t[+n.substring(7)]||e,n="series"),Uk.getPointTooltipParam(e,i,n)},e.prototype.getTooltipText=function(t,i){return e.collectTooltipText(this._op,this._visibles,i)},e.prototype.getTooltipParam=function(t,i,n){return e.inflateTooltipParam(this._visibles,t,i,n)},Object.defineProperty(e.prototype,"series",{get:function(){return this._series.slice(0)},enumerable:!1,configurable:!0}),e.prototype.needAxes=function(){return!0},e.prototype.isEmpty=function(t){return(t?this._visibles:this._series).length<1},e.prototype.canCategorized=function(){return!1},e.prototype.defYAxisType=function(){return"linear"},e.prototype.isClusterable=function(){return!1},e.prototype.getBaseValue=function(t){return NaN},e.prototype.getVisibleSeries=function(){return this._visibles},Object.defineProperty(e.prototype,"visCount",{get:function(){return this._visibles.length},enumerable:!1,configurable:!0}),e.prototype._type=function(){return this.constructor.type},e.prototype._seriesType=function(){return this.constructor.seriesType},e.prototype.setCol=function(t){this._col=t,this._series.forEach((function(e){return e.setCol(t)}))},e.prototype.setRow=function(t){this._row=t,this._series.forEach((function(e){return e.setRow(t)}))},e.prototype.isFirstVisible=function(t){return t===this._visibles[0]},e.prototype.isLastVisible=function(t){return t===this._visibles[this._visibles.length-1]},e.prototype.collectValues=function(t,e){if(this._visibles.length>0)if(t===this._visibles[0]._yAxisObj)switch(this._op.layout){case"stack":this.$_collectStack(t,e);break;case"fill":this.$_collectFill(t,e);break;default:this.$_collectValues(t,e)}else this.$_collectValues(t,e)},e.prototype.collectRanges=function(t){this._visibles.forEach((function(e){e.collectRanges(t)}))},e.prototype.pointValuesPrepared=function(t){this._series.forEach((function(e){return e.pointValuesPrepared(t)}))},e.prototype.collectCategories=function(t){var e=[];return this._visibles.forEach((function(i){return e=e.concat(i.collectCategories(t))})),e},e.prototype.getLegendSources=function(t){var e,i=this._op;if(!1!==i.visibleInLegend&&this.visible){var n=this._series;if((null===(e=this._yAxisObj)||void 0===e?void 0:e.options.reversed)||"fill"!==i.layout&&"stack"!==i.layout)n.forEach((function(e){return e.getLegendSources(t)}));else for(var r=n.length-1;r>=0;r--)n[r].getLegendSources(t)}},e.prototype.isBased=function(t){return this._visibles[0]&&this._visibles[0].isBased(t)},e.prototype.canMinPadding=function(t,e){var i=this.getBaseValue(t);return isNaN(i)||!this.isBased(t)||e<i},e.prototype.canMaxPadding=function(t,e){var i=this.getBaseValue(t);return(isNaN(i)||e>i||!this.isBased(t))&&"fill"!==this._op.layout},e.prototype.getVisPoints=function(t){return this._visibles.map((function(e){return e._visPoints[t.vindex]}))},e.prototype.seriesChanged=function(){return this._seriesChanged},e.prototype.remove=function(t){var e=this._series.indexOf(t);if(e>=0)return this._series.splice(e,1),!0},e.prototype._getVisiblePoints=function(){var t=[];return this._visibles.forEach((function(e){return t.push.apply(t,$x([],jx(e._getVisiblePoints()),!1))})),t},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),Hx.call(e,"children")&&this.$_loadSeries(this.chart,e.children)},e.prototype._doSaveArray=function(t,e){if("children"===t)return this._series.map((function(t){return t.saveOptions()}))},e.prototype._prepareRender=function(){var e=this._visibles;if(this._stacked="stack"===this._op.layout||"fill"===this._op.layout,this._visibles=this._series.filter((function(t){return t.visible})).sort((function(t,e){return(+t.options.zOrder||0)-(+e.options.zOrder||0)})),!(this._seriesChanged=!_S.equalArrays(e,this._visibles)))for(var i=this._visibles.length-1;i>=0;i--)if(this._visibles[i].seriesChanged()){this._seriesChanged=!0;break}t.prototype._prepareRender.call(this)},e.prototype._doPrepareRender=function(t){this._xAxisObj=this.chart._connectSeries(this,!0),this._yAxisObj=this.chart._connectSeries(this,!1),this._visibles.length>0&&(this._visibles.forEach((function(t){return t._prepareRender()})),this._doPrepareSeries(this._visibles))},e.prototype.prepareAfter=function(){this._visibles.forEach((function(t){return t.prepareAfter()}))},e.prototype._doPrepareSeries=function(t){},e.prototype.$_loadSeries=function(t,e){var i=this,n=this._seriesType();Wx(e)?e.forEach((function(e,r){return i.$_add(Uk._loadSeries(t,i._series.length,e,n))})):Gx(e)&&this.$_add(Uk._loadSeries(t,this._series.length,e,n))},e.prototype.$_add=function(t){if(!this._canContain(t))throw new Error("이 그룹에 포함될 수 없는 시리즈입니다: "+t);this._series.push(t),t._group=this},e.prototype.$_collectValues=function(t,e){this._visibles.forEach((function(i){i.collectValues(t,e)}))},e.prototype.$_collectPoints=function(t){var e=this._visibles,i=this._stackPoints=new Map;e.forEach((function(e){e.collectValues(t,null)})),e[0]._runPoints.forEach((function(t){i.set(t.xValue,[t])}));for(var n=1;n<e.length;n++)e[n]._runPoints.forEach((function(t){var e=i.get(t.xValue);e?e.push(t):i.set(t.xValue,[t])}));return i},e.prototype.$_collectStack=function(t,e){var i,n,r,o,s=this.getBaseValue(t),a=this.$_collectPoints(t);if(isNaN(s))try{for(var l=Ix(a.values()),u=l.next();!u.done;u=l.next()){(c=u.value)[0].yGroup=c[0].yValue||0;for(y=1;y<c.length;y++)c[y].yGroup=c[y-1].yGroup+(c[y].yValue||0);e.push(c[c.length-1].yGroup)}}catch(t){r={error:t}}finally{try{u&&!u.done&&(o=l.return)&&o.call(l)}finally{if(r)throw r.error}}else try{for(var h=Ix(a.values()),p=h.next();!p.done;p=h.next()){var c,f=(c=p.value)[0].yValue||0,_=f>=s?0:-1,d=f<s?0:-1;c[0].yGroup=c[0].yValue||0;for(var y=1;y<c.length;y++)(f=c[y].yValue||0)>=s?(_>=0&&(c[y].yGroup=c[_].yGroup+f*(f<0?-1:1)),_=y):(d>=0&&(c[y].yGroup=c[d].yGroup+f*(f>=0?-1:1)),d=y);_>=0&&e.push(c[_].yGroup),d>=0&&e.push(c[d].yGroup)}}catch(t){i={error:t}}finally{try{p&&!p.done&&(n=h.return)&&n.call(h)}finally{if(i)throw i.error}}},e.prototype.$_collectFill=function(t,e){var i,n,r,o,s,a,l,u,h,p,c,f,_=this.getBaseValue(t),d=this.options.layoutMax||100,y=this.$_collectPoints(t);if(isNaN(_))try{for(var g=Ix(y.values()),v=g.next();!v.done;v=g.next()){k=(V=v.value).reduce((function(t,e){return t+(e.yValue||0)}),0);if(0===k){try{for(var m=(h=void 0,Ix(V)),b=m.next();!b.done;b=m.next()){(M=b.value).yValue=M.yGroup=0}}catch(t){h={error:t}}finally{try{b&&!b.done&&(p=m.return)&&p.call(m)}finally{if(h)throw h.error}}e.push(0)}else{E=0;try{for(var w=(c=void 0,Ix(V)),x=w.next();!x.done;x=w.next()){E=(M=x.value).yGroup=(M.yValue||0)/k*d+E}}catch(t){c={error:t}}finally{try{x&&!x.done&&(f=w.return)&&f.call(w)}finally{if(c)throw c.error}}e.push(d)}}}catch(t){l={error:t}}finally{try{v&&!v.done&&(u=g.return)&&u.call(g)}finally{if(l)throw l.error}}else try{for(var S=Ix(y.values()),P=S.next();!P.done;P=S.next()){var V,k=(V=P.value).reduce((function(t,e){return t+(sS(e.yValue)||0)}),0);if(0===k){try{for(var A=(r=void 0,Ix(V)),C=A.next();!C.done;C=A.next()){(M=C.value).yValue=M.yGroup=0}}catch(t){r={error:t}}finally{try{C&&!C.done&&(o=A.return)&&o.call(A)}finally{if(r)throw r.error}}e.push(0,0)}else{var E=0,L=0;try{for(var N=(s=void 0,Ix(V)),O=N.next();!O.done;O=N.next()){var M;(M=O.value).yValue=(M.yValue||0)/k*d,M.yValue<_?L=M.yGroup=(M.yValue||0)+L:E=M.yGroup=(M.yValue||0)+E}}catch(t){s={error:t}}finally{try{O&&!O.done&&(a=N.return)&&a.call(N)}finally{if(s)throw s.error}}e.push(L,E)}}}catch(t){i={error:t}}finally{try{P&&!P.done&&(n=S.return)&&n.call(S)}finally{if(i)throw i.error}}},e.defaults=uV(pV.defaults,{layout:"default",layoutMax:100,visibleInLegend:!0,zOrder:0,tooltipHeader:"<b>${name}</b>",tooltipRow:"${series}:<b> ${yValue}</b>"}),e}(pV),lA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.collectValues=function(e,i){if(t.prototype.collectValues.call(this,e,i),e===this._yAxisObj){var n=this._doConstraintYValues(this._visibles);i.length=0,i.push.apply(i,$x([],jx(n),!1))}},e}(aA),uA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._clusterWidth=1,e._clusterPos=0,e}return Dx(e,t),e.prototype.groupWidth=function(){return this._op.groupWidth},e.prototype.isClusterable=function(){return!1!==this._op.clusterable},e.prototype.setCluster=function(t,e){this._clusterWidth=t,this._clusterPos=e},e.defaults=uV(aA.defaults,{groupWidth:1,groupPadding:.1}),e}(aA),hA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.isMarker=function(){return!0},e.defaults=uV(Uk.defaults,{colorByPoint:!1}),e}(Zk),pA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e}(pV),cA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e}(pV),fA={area:function(){return{type:"area"}},line:function(){return{type:"line"}},bar:function(){return{type:"bar"}}},_A={category:function(){return{type:"category"}},linear:function(){return{type:"linear"}},time:function(){return{type:"time"}},log:function(){return{type:"log"}}},dA={minPadding:0,maxPadding:0},yA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._dataChanged=!0,e}return Dx(e,t),e.prototype._doInitChildren=function(t){var e=this.chart;t.handle=(this._handle=new pA(e)).init(),t.mask=(this._mask=new cA(e)).init(),t.borderLine=(this._borderLine=new pV(e)).init()},Object.defineProperty(e.prototype,"handle",{get:function(){return this._handle},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mask",{get:function(){return this._mask},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"borderLine",{get:function(){return this._borderLine},enumerable:!1,configurable:!0}),e.prototype.getThickness=function(){return aS(this._op.thickness,e.defaults.thickness)},e.prototype.getGap=function(){return aS(this._op.gap,e.defaults.gap)},e.prototype.getGapFar=function(){return aS(this._op.gapFar,e.defaults.gapFar)},e.prototype.getSize=function(){return this.getThickness()+this.getGap()+this.getGapFar()},e.prototype.axisLen=function(){return this._naviChart.xAxis.length()},e.prototype.axis=function(){return this._source._xAxisObj},e.prototype._doLoad=function(e,i){t.prototype._doLoad.call(this,e,i);var n={};if(Gx(i.series)){var r=i.series.type;"area"!==r&&"line"!==r&&"bar"!==r&&(r="area"),n.series=Kx({},i.series,fA[r]())}else n.series=fA.area();Gx(i.xAxis)?n.xAxis=Kx({},i.xAxis,(_A[i.xAxis.type]||_A.linear)(),dA):n.xAxis=Kx({},dA),Gx(i.yAxis)?n.yAxis=Kx({},i.yAxis,(_A[i.yAxis.type]||_A.linear)(),dA):n.yAxis=Kx(_A.linear(),dA),this._chartConfig=n,this._axisType=n.xAxis.type},e.prototype._doPrepareRender=function(t){var e=t._getSeries().getSeries(this._op.source)||t.firstSeries;e!==this._source&&(this._source=e,this._axisType||(this._chartConfig.xAxis.type=this._source._xAxisObj._type()),this._naviChart=this.chart._createChart(this._chartConfig),this._op.usePointSource?this._naviChart.firstSeries._loadPoints(this._source.getPoints()._points.map((function(t){return t.source}))):this._naviChart.firstSeries._loadPoints(this._source.getPoints()._points)),this._vertical=!1,this._naviChart._prepareRender()},e.defaults=uV(pV.defaults,{visible:!1,usePointSource:!1,liveScroll:!0,minSize:.05,thickness:45,gap:8,gapFar:3}),e}(pV),gA=function(t){function e(e){var i=t.call(this,e.chart)||this;return i.pane=e,i}return Dx(e,t),e.prototype.base=function(){return this.chart._body},e.prototype.contains=function(t){return t.options.col===this.pane.col||t.options.row===this.pane.row},e.defaults=uV(hk.defaults,{radius:void 0,centerX:void 0,centerY:void 0}),e}(hk),vA=function(t){function e(e,i,n){var r=t.call(this,e)||this;return r.row=i,r.col=n,r}return Dx(e,t),e.prototype._doInitChildren=function(t){t.body=(this._body=new gA(this)).init()},Object.defineProperty(e.prototype,"body",{get:function(){return this._body},enumerable:!1,configurable:!0}),e.prototype._prepareRender=function(){this.body._prepareRender()},e}(pV),mA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._cols=1,e._rows=1,e._panes={},e._vcols=1,e._vrows=1,e._vpanes=[],e}return Dx(e,t),e.prototype.count=function(){return this._vrows*this._vcols},e.prototype.rowCount=function(){return this._vrows},e.prototype.colCount=function(){return this._vcols},e.prototype.paneCount=function(){return this._vrows*this._vcols},e.prototype.getPane=function(t,e){return this._vpanes[t][e]},e.prototype.getRow=function(t){return this._vpanes[t]},e.prototype.getColumn=function(t){return this._vpanes.map((function(e){return e[t]}))},e.prototype._doLoadProp=function(e,i){return["panes","cols","rows"].indexOf(e)>=0||t.prototype._doLoadProp.call(this,e,i)},e.prototype._doSetSimple=function(e){if(Wx(e)&&e.length>0){var i=this._op;return i.rows=oS(1,+e[0]),i.cols=oS(1,aS(+e[1],i.rows)),i.rows>0&&i.cols>0&&(this.$_parsePanes(i.rows,i.cols),this.visible=!0),!0}return t.prototype._doSetSimple.call(this,e)},e.prototype._load=function(e){return t.prototype._load.call(this,e),Gx(e)&&(this.$_parsePanes(this._op.rows=e.rows,this._op.cols=e.cols),this._panes=this.$_loadPanes(e.panes)),this},e.prototype._doPrepareRender=function(t){this._xAxes=t._xPaneAxes,this._yAxes=t._yPaneAxes,this._vpanes=this.$_collectPanes(t),this._vpanes.forEach((function(t){return t.forEach((function(t){return t._prepareRender()}))}))},e.prototype.getXLens=function(t){return new Array(this._vcols).fill(t/this._vcols)},e.prototype.getYLens=function(t){return new Array(this._vrows).fill(t/this._vrows)},e.prototype.layoutAxes=function(t,e,i,n){var r=this.getXLens(i?e:t),o=this.getYLens(i?t:e);this._xAxes._buildTicks(r),this._yAxes._buildTicks(o),this.$_calcAxesPoints(r,o,0)},e.prototype.$_calcAxesPoints=function(t,e,i){this._xAxes._calcPoints(t,i),this._yAxes._calcPoints(e,i)},e.prototype.calcAxesPoints=function(t,e){this.$_calcAxesPoints(t,e,101)},e.prototype.calcSizes=function(t,e){this._widths=this.$_calcSizes(t,this._widths),this._heights=this.$_calcSizes(e,this._heights)},e.prototype.getAnnotation=function(t){for(var e in this._panes){var i=this._panes[e].body.getAnnotation(t);if(i)return i}},e.prototype.$_parseSizes=function(t){return(Wx(t)&&t.length>0?t.slice(0):t>0?new Array(t).fill("*"):["*"]).map((function(t){if(Xx(t)){var e=t.trim();return{size:"*"===e?1:parseFloat(e)}}return+t||{size:1}}))},e.prototype.$_parsePanes=function(t,e){this._widths=this.$_parseSizes(e),this._heights=this.$_parseSizes(t),this._cols=this._widths.length,this._rows=this._heights.length},e.prototype.$_loadPanes=function(t){var e=this,i={};return t=Wx(t)?t:Gx(t)?[t]:null,Wx(t)&&t.forEach((function(t){var n=+t.row||0,r=+t.col||0;if(r>=0&&r<e._cols&&n>=0&&n<e._rows){var o=new vA(e.chart,n,r);o.init(),o._load(t),i[n+","+r]=o}})),i},e.prototype.$_collectPanes=function(t){var e=this,i=t._getXAxes()._internalItems(),n=t._getYAxes()._internalItems(),r=[],o=[],s=[];i.concat(n).forEach((function(t){var i=t.options.row||0,n=t.options.col||0;t._row=i,t._col=n,n>=0&&n<e._cols&&r.indexOf(n)<0&&r.push(n),i>=0&&i<e._rows&&o.indexOf(i)<0&&o.push(i)})),r.sort(),o.sort();for(var a=0;a<o.length;a++){for(var l=[],u=0;u<r.length;u++){var h=this._panes[a+","+u]||new vA(t,a,u)._initObject();l.push(h)}s.push(l)}return this._vrows=s.length,this._vcols=s[0].length,s},e.prototype.$_calcSizes=function(t,e){},e.defaults=uV(pV.defaults,{visible:!1,gap:0}),e}(pV),bA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._isVisible=function(){return this._op.visible&&!TS(this._op.text)},e.prototype._doSetSimple=function(e){return Xx(e)?(this._op.text=e,!0):t.prototype._doSetSimple.call(this,e)},e.defaults=uV(pV.defaults,{text:"Title",alignBase:"body",align:"center",verticalAlign:"middle",gap:10}),e}(pV),wA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.defaults=uV(bA.defaults,{position:"bottom",text:"",titleGap:2,verticalAlign:"bottom"}),e}(bA),xA=function(t){function e(e){var i=t.call(this,e.chart)||this;return i.owner=e,i}return Dx(e,t),e.prototype._doInit=function(e){var i=this;t.prototype._doInit.call(this,e),this._domain={callback:function(t,e){return i._ctx.getTooltipParam(i._series,i._point,e)}}},e.prototype.setTarget=function(t,e,i){var n=uS(this._op.scope,"hover");return this._ctx=this.visible&&this.owner.getTooltipContext(n,this._series=t,this._point=e)},e.prototype.getTextDomain=function(){return this._domain},e.prototype.isFollowPointer=function(t){return this._op.followPointer||!1!==this._op.followPointer&&(null==t?void 0:t.followPointer())},e.prototype._doSetSimple=function(e){return Xx(e)?(this._op.text=e,!0):t.prototype._doSetSimple.call(this,e)},e.prototype._doApply=function(e){var i,n=this;t.prototype._doApply.call(this,e),(i=e.numberFormat)!=n._numberFormat&&(n._numberFormat=i,n._domain.numberFormatter=n._numberFormat?oP.getFormatter(n._numberFormat):void 0),function(t){t!=n._timeFormat&&(n._timeFormat=t,n._domain.timeFormatter=n._timeFormat?xP.getFormatter(n._timeFormat):void 0)}(e.timeFormat)},e.defaults=uV(pV.defaults,{scope:"hover",offset:8,hideDelay:700,minWidth:100,minHeight:40,nanText:"",numberFormat:",#.##",timeFormat:"yyyy-MM-dd"}),e}(pV),SA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._isVisible=function(){return this._op.visible&&!TS(this._op.imageUrl)},e.prototype._doSetSimple=function(e){return Xx(e)?(this._op.imageUrl=e,!0):t.prototype._doSetSimple.call(this,e)},e.type="image",e}(gV),PA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.getSeries=function(){if(this._xRange&&this._yRange){var t=this.chart.seriesByName(this._op.series);if(t&&t.visible)return{series:t,xRange:this._xRange,yRange:this._yRange}}},e.prototype.getShape=function(){return this._op.shape||e.defaults.shape},e.prototype._doSetSimple=function(e){return Xx(e)?(this._op.shape=e,!0):t.prototype._doSetSimple.call(this,e)},e.type="shape",e.defaults=uV(gV.defaults,{width:64,height:64,shape:"square"}),e}(gV),VA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._domain={callback:function(t,i){return e.chart.getParam(t,i)}},e}return Dx(e,t),e.prototype._isVisible=function(){return this._op.visible&&!TS(this._op.text)},e.prototype._doSetSimple=function(e){return Xx(e)?(this._op.text=e,!0):t.prototype._doSetSimple.call(this,e)},e.prototype._doApply=function(e){var i,n=this;t.prototype._doApply.call(this,e),(i=e.numberFormat)!==n._numberFormat&&(n._numberFormat=i,n._domain.numberFormatter=i?oP.getFormatter(i):xS),function(t){t!==n._timeFormat&&(n._timeFormat=t,n._domain.timeFormatter=t?xP.getFormatter(t):xS)}(e.timeFormat)},e.type="text",e.defaults=uV(gV.defaults,{text:"Text"}),e}(gV),kA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.getPoints=function(t,e){return t.hasBreak()?t._ticks.filter((function(e){return!t.isBreak(e.value)})).map((function(i){return t.getPos(e,i.value)})):t._ticks.map((function(i){return t.getPos(e,i.value)}))},e}(kV),AA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._strictEnds=!1,e._strictTicks=!1,e}return Dx(e,t),e.prototype._isValidInterval=function(t){return t>0},e.prototype._normalizeSteps=function(t,e,i){return t},e.prototype.buildSteps=function(t,e,i,n,r){var o,s;void 0===r&&(r=!1);var a,l=this._op;return this._strictTicks=this._strictEnds=!1,this._step=NaN,r?a=this._getStepsByPixels(t,aS(.85*l.stepPixels,60),e,i,n):Wx(l.steps)||Yx(l.stepCallback)?((a=l.stepCallback?l.stepCallback.call(xS,{length:t,minValue:i,maxValue:n}):l.steps.slice(0)).length>0&&isNaN(a[0])&&(a[0]=i),a.length>1&&isNaN(a[a.length-1])&&(a[a.length-1]=n),this._strictTicks=this._strictEnds=!0):a=this._baseAxis instanceof OA&&this._baseAxis._ticks.length>0?this._getStepsByCount(this._baseAxis._ticks.length,e,i,n,!0):l.stepCount>0?this._getStepsByCount(l.stepCount,e,i,n,!1):this._isValidInterval(l.stepInterval)?this._getStepsByInterval(l.stepInterval,e,i,n):l.stepPixels>0?this._getStepsByPixels(t,((null===(o=this.axis)||void 0===o?void 0:o._isPolar)&&!(null===(s=this.axis)||void 0===s?void 0:s._isX)?.5:1)*l.stepPixels,e,i,n):i!==n?[i,n]:[i],a},e.prototype.getNextStep=function(t,e){return t+e*this._step},e.prototype.canUseNumSymbols=function(){return isNaN(this._step)||this._step>=500},e.prototype._findBaseAxis=function(){if(null!=this._op.baseAxis){var t=this.axis,e=(t._isX?this.chart._getXAxes():this.chart._getYAxes()).get(this._op.baseAxis);e!==t&&e instanceof OA&&(this._baseAxis=e,e.tick._baseAxis=null)}},e.prototype.$_normalizeMin=function(t,e){return t>Jx(t/e)*e?t=Jx(t/e)*e:t<Qx(t/e)*e&&(t=Qx(t/e)*e),LS(t)},e.prototype._getStepsByCount=function(t,e,i,n,r){i>e?(i=e,e=NaN):n<e&&(n=e,e=NaN),this._strictEnds=!0;var o=this.axis,s=n-i,a=s/(t-1),l=Math.pow(10,Math.floor(Math.log10(a))),u=[];if(isNaN(o._fixedMin)||isNaN(o._fixedMax)?r&&a/l==2.5&&Jx(t*s/a)==t*s/a?this._step=a:a=this._step=Qx(a/l)*l:a=s/(t-1),isNaN(o._fixedMin))if(isNaN(e))i=this.$_normalizeMin(i,l);else{for(WS(i<e&&n>e,"base error"),t=oS(3,t);;){if(!(Qx((e-i)/a)+Qx((n-e)/a)+1>t))break;a+=l}i=e-Qx((e-i)/a)*a}else i=o._fixedMin;u.push(i);for(var h=1;h<t;h++)u.push(LS(u[h-1]+a));return u},e.prototype._getStepsByInterval=function(t,e,i,n){var r,o=[];if(i=this.$_normalizeMin(i,t),isNaN(e))for(o.push(r=i);r<n;)o.push(r=LS(r+t));else{for(o.push(r=e);r>i;)o.unshift(r=LS(r-t));for(r=e;r<n;)o.push(r=LS(r+t))}return this._step=t,o},e.prototype._getStepMultiples=function(t){return[1,2,2.5,5,10]},e.prototype._getStepsByPixels=function(t,e,i,n,r){n>=i?n=i:r<=i&&(r=i);var o=r-n,s=[];if(0===o)return isNaN(n)?[]:[n];var a,l=t>250?5:t>200?4:t>150?3:t>80?2:1,u=oS(this.axis._isX?1:l,Jx(t/e))+1,h=o/(u-1),p=Math.pow(10,Math.floor(nS(h))),c=this._getStepMultiples(p),f=0;if(h/=p,c)if(h>c[f]){for(;f<c.length-1;f++)if(h>c[f]&&h<c[f+1]){h=c[++f];break}}else h=c[f];if(h*=p,isNaN(i))n=this.$_normalizeMin(n,h);else{for(WS(n<=i&&r>=i,"base error"),u=oS(3,u);f<c.length;){if(!(Qx((i-n)/h)+Qx((r-i)/h)+1>u))break;h=f<c.length-1?c[f+1]*p:2*h,f++}n=i-Qx((i-n)/h)*h}for(this._step=h,s.push(LS(a=n));a<r;)s.push(LS(a+=h));return s},e.defaults=uV(NV.defaults,{stepPixels:72,baseRange:!1}),e}(NV),CA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.defaults=uV(OV.defaults,{numberFormat:"0.##"}),e}(OV),EA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.getTick=function(t,e){return this._getText(null,e,"*"===this._op.useSymbols||this._op.useSymbols&&this.axis.tick.canUseNumSymbols(),!0)},e.defaults=uV(CA.defaults,{useSymbols:!0}),e}(CA),LA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.getSize=function(t){return jS(this._sizeDim,t)},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),this._op.space=aS(this._op.space,0),this._sizeDim=FS(this._op.size,!1)},e.defaults=uV(xV.defaults,{enabled:!0,size:"30%",space:16,gridVisible:!0}),e}(xV),NA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.defaults=uV(SV.defaults,{visible:!1}),e}(SV),OA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._breaks=[],e}return Dx(e,t),e.prototype._doInitChildren=function(e){t.prototype._doInitChildren.call(this,e),e.baseLine=(this._baseLine=new NA(this)).init()},Object.defineProperty(e.prototype,"baseLine",{get:function(){return this._baseLine},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tick",{get:function(){return this._tick},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"grid",{get:function(){return this._grid},enumerable:!1,configurable:!0}),e.prototype.getBaseValue=function(){return this._op.baseValue},e.prototype.hasBreak=function(){return null!=this._runBreaks},e.prototype._getBreaks=function(){return this._runBreaks?this._runBreaks.slice(0,1):[]},e.prototype.isBreak=function(t){if(this._runBreaks){var e=this._runBreaks[0];return!e.options.gridVisible&&(t===e.options.from||t===e.options.to)}},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),Hx.call(e,"break")&&this.$_loadBreaks(e.break)},e.prototype.continuous=function(){return!0},e.prototype.isBased=function(){return!!this._tick._baseAxis},e.prototype._createGrid=function(){return new kA(this)},e.prototype._createTickModel=function(){return new AA(this)},e.prototype._doPrepareRender=function(){this._baseVal=parseFloat(this._op.baseValue),this._tick._findBaseAxis()},e.prototype._doBuildTicks=function(t,i,n){if(isNaN(t)||isNaN(i))return[];var r,o=this._tick,s=o._baseAxis instanceof e&&o._baseAxis._ticks.length>0,a=this._adjustMinMax(n,this._calcedMin=t,this._calcedMax=i),l=a.min,u=a.max,h=this._baseVal;if(isNaN(h)&&l<0&&u>0&&(h=0),isNaN(h)?l<0&&u>0&&(h=0):(l=Math.min(l,h),u=Math.max(u,h)),s&&o.options.baseRange&&(l=o._baseAxis.axisMin(),u=o._baseAxis.axisMax()),l===u)r=[l];else if((r=o.buildSteps(n,h,l,u,!1)).length>0){if(o._strictTicks||(r=o._normalizeSteps(r,l,u)),!isNaN(this._fixedMin)||!o._strictEnds&&"tick"!==this._getStartFit())for(;r.length>2&&r[0]<l;)r.shift();else if(!o._strictEnds&&!s){for(;r.length>2&&r[1]<=l;)r.shift();if(!isNaN(o._step))for(;r[0]>l;)r.unshift(o.getNextStep(r[0],-1))}if(l=Math.min(l,r[0]),!isNaN(this._op.strictMax)||!o._strictEnds&&"tick"!==this._getEndFit())for(;r.length>2&&u<r[r.length-1];)r.pop();else if(!o._strictEnds&&!s){for(;r.length>2&&r[r.length-2]>=u;)r.pop();if(!isNaN(o._step))for(;r[r.length-1]<u;)r.push(o.getNextStep(r[r.length-1],1))}u=Math.max(u,r[r.length-1])}else r.push(l+(u-l)/2);this._setMinMax(l,u);var p=[];this._runBreaks&&(r=this.$_getBrokenSteps(this._runBreaks,n,l,u));for(var c=NaN,f=0;f<r.length;f++){var _=this._createTick(n,f,r[f]);_.value!==c&&(p.push(_),c=_.value)}return p},e.prototype._createTick=function(t,e,i){return{index:e,pos:NaN,value:LS(i),label:this.label.getTick(e,i)||String(i)}},e.prototype._calcPoints=function(e,i){if(i>100&&this._isX)if(this._min===this._max)this._unitLen=e/4;else{var n=this.$_calcUnitLength(this._isPolar?this.getTotalAngle():e);n&&(this._unitLen=n.len,this._isPolar||this._zoom||(this._min-=n.min/2,this._max+=n.min/2))}t.prototype._calcPoints.call(this,e,i),this._markPoints=this._ticks.map((function(t){return t.pos}))},e.prototype.$_buildBrokenSteps=function(t){return this._tick.buildSteps(t.len,void 0,t.from,t.to,!0)},e.prototype.$_getBrokenSteps=function(t,e,i,n){var r=this,o=0,s=i,a=[s],l=this._sects=[];e-=t.reduce((function(t,e){return t+e.options.space}),0),t.forEach((function(t){var i=t.options,n=t.getSize(e),u={from:s,to:t.options.from,pos:o,len:n};o+=n,l.push(u,t._sect={from:i.from,to:i.to,pos:o,len:i.space}),o+=i.space,r.$_buildBrokenSteps(u).forEach((function(t){t>u.from&&t<=u.to&&a.push(t)})),i.space>0&&a.push(i.to)}));var u=t[t.length-1];if(n>u.options.to){var h={from:u.options.to,to:n,pos:o,len:this._vlen-o};l.push(h),this.$_buildBrokenSteps(h).forEach((function(t){t>h.from&&t<=h.to&&a.push(t)}))}return this._lastSect=l[l.length-1],a},e.prototype.getPos=function(t,e){if(this._runBreaks){var i=this._sects.find((function(t){return e<t.to}))||this._lastSect,n=i.len*(e-i.from)/(i.to-i.from);return this._op.reversed?NS(t-n-i.pos):NS(n+i.pos)}n=this._single?.5*t:t*(e-this._min)/(this._max-this._min);return NS(this._op.reversed?t-n:n)},e.prototype.valueAt=function(t,e){var i,n;if(this._isHorz?this._op.reversed&&(e=t-e):this._op.reversed||(e=t-e),this._runBreaks){var r=0;try{for(var o=Ix(this._sects),s=o.next();!s.done;s=o.next()){var a=s.value;if(e>=r&&e<r+a.len)return(a.to-a.from)*(e-r)/a.len+a.from;r+=a.len}}catch(t){i={error:t}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return this._max}return(this._max-this._min)*e/t+this._min},e.prototype.xValueAt=function(t){return this.valueAt(this._vlen,t)},e.prototype.getUnitLen=function(t,e){return this._unitLen},e.prototype.getLabelLength=function(t,e){return Math.floor(t/this._ticks.length)},e.prototype._getStartFit=function(){return"default"===this._op.startFit?this._isX?"value":"tick":this._op.startFit},e.prototype._getEndFit=function(){return"default"===this._op.endFit?this._isX?"value":"tick":this._op.endFit},e.prototype._adjustMinMax=function(t,e,i){var n=this,r=this._op,o=this.isZoomed(),s=this.isZoomed(),a=!0,l=!0,u=NaN,h=NaN;this._series.forEach((function(t){var p=t.getBaseValue(n);isNaN(p)||(isNaN(r.minValue)&&p<=e?t.isBased(n)?e=p:u=aS(rS(u,p),p):isNaN(r.maxValue)&&p>=i&&(t.isBased(n)?i=p:h=aS(oS(h,p),p))),!o&&a&&t.canMinPadding(n,e)&&(a=!1),!s&&l&&t.canMaxPadding(n,i)&&(l=!1)})),o||(o=a),s||(s=l),this._fixedMin=this._fixedMax=NaN;var p=0,c=0;isNaN(r.strictMin)?r.minValue<e?e=r.minValue:o?this._fixedMin=e:p=lS(r.minPadding,r.padding,0):this._fixedMin=e=r.strictMin,isNaN(r.strictMax)?r.maxValue>i?i=r.maxValue:s?this._fixedMax=i:c=lS(r.maxPadding,r.padding,0):this._fixedMax=i=r.strictMax;var f=oS(0,i-e),_=e-f*(this._minPad=p),d=i+f*(this._maxPad=c);return!isNaN(u)&&u<=e&&_<u&&(_=this._fixedMin=u),!isNaN(h)&&h>=i&&d>h&&(d=this._fixedMax=h),{min:_,max:d}},e.prototype.$_calcUnitLength=function(t){var e=[];if(this._series.forEach((function(t){t.visible&&t.isClusterable()&&e.push.apply(e,$x([],jx(t._getVisiblePoints()),!1))})),e.length>0){for(var i=this._isX,n=e.map((function(t){return i?t.xValue:t.yValue})).sort((function(t,e){return t-e})),r=n.length-1;r>0;r--)n[r]===n[r-1]&&n.splice(r,1);return this._calcUnitLen(n,t,this._min,this._max)}},e.prototype._calcUnitLen=function(t,e,i,n){if(t.length<2){if(this._ticks.length>0){var r=(n-i)/this._ticks.length;return{len:aS(e*=r/(n-i+r),1),min:r}}return{len:e,min:0}}r=t[1]-t[0];for(var o=2;o<t.length;o++)r=rS(r,t[o]-t[o-1]);return{len:aS(e*=r/(n-i+r),1),min:r}},e.prototype.$_loadBreak=function(t){if(Gx(t)&&"from"in t&&"to"in t){var e=new LA(this);return e.init(),e._load(t),e}},e.prototype.$_loadBreaks=function(t){var e,i;if(Wx(t))try{for(var n=Ix(t),r=n.next();!r.done;r=n.next()){var o=r.value;(s=this.$_loadBreak(o))&&this._breaks.push(s)}}catch(t){e={error:t}}finally{try{r&&!r.done&&(i=n.return)&&i.call(n)}finally{if(e)throw e.error}}else if(t){var s;(s=this.$_loadBreak(t))&&this._breaks.push(s)}this.$_mergeBreaks()},e.prototype.$_mergeBreaks=function(){function t(t,e){t.options.to=e.options.to}var e,i=this._breaks.sort((function(t,e){return t.options.from-e.options.from})).filter((function(t){return t.options.to>t.options.from}));if(this._runBreaks=null,i.length>0){var n=this._runBreaks=[];n.push(Kx(new LA(this)._initObject(),i[0]));for(var r=1;r<i.length;r++){var o=n[n.length-1],s=i[r];e=o,s.options.from<e.options.to?t(o,s):n.push(Kx(new LA(this)._initObject(),s))}}},e.defaults=uV(BV.defaults,{nullable:!0,padding:.04,startFit:"default",endFit:"default"}),e}(BV),MA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),Object.defineProperty(e.prototype,"label",{get:function(){return this._label},enumerable:!1,configurable:!0}),e.prototype._createLabel=function(){return new EA(this)},e.prototype._adjustMinMax=function(e,i,n){var r=t.prototype._adjustMinMax.call(this,e,i,n),o=this._series;return!this._isX&&1===o.length&&o[0]instanceof aA&&"fill"===o[0].options.layout&&(r.max=o[0].options.layoutMax),r},e.type="linear",e}(OA),TA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.canUseNumSymbols=function(){return this.axis.axisMax()>nS(500)},e.prototype._getStepMultiples=function(t){return[1,2,5,10]},e.prototype._normalizeSteps=function(t,e,i){if(!this._op.arrangeDecimals)return t;for(var n=[],r=i-e,o=0;o<t.length;o++){var s=n.length,a=t[o],l=Jx(a);if(a===l){var u=n[s-1];o>1&&a-u<r&&(u=Math.pow(10,u),Jx(u)!==LS(u)&&n.pop()),n.push(a)}else if(a>0&&a>l){if((a=l+nS(10*(a-l)))<=i)(0===s||a>n[s-1])&&n.push(a);else if(s>0){if(n[o-1]>=i)break;var h=iS(Jx(nS(t[o]-t[o-1]))),p=(u=t[o])-Jx(u);if(h<1)for(var c=1;c<10;c++)if(p>nS(c)&&p<nS(c+1)){var f=Jx(u)+nS(c);if(f>=i){a=f;break}}n.push(a)}}else if(o>0&&a<=i&&a>n[s-1])n.push(a);else if(a>i)break;n.length>1&&(r=Math.min(.5,r,n[n.length-1]-n[n.length-2]))}return n},e.defaults=uV(AA.defaults,{arrangeDecimals:!0}),e}(AA),RA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._createLabel=function(){return new EA(this)},e.prototype._createTickModel=function(){return new TA(this)},e.prototype.collectValues=function(){t.prototype.collectValues.call(this),this._values=this._values.filter((function(t){return t>0}))},e.prototype.getPos=function(e,i){return i=i>0?nS(i):-1,t.prototype.getPos.call(this,e,i)},e.prototype._doCalculateRange=function(e){var i=t.prototype._doCalculateRange.call(this,e);return i.min=nS(i.min),i.max=nS(i.max),i},e.prototype._createTick=function(e,i,n){return t.prototype._createTick.call(this,e,i,LS(iS(n)))},e.prototype._calcUnitLen=function(t,e,i,n){for(var r=nS(t[1])-nS(t[0]),o=2;o<t.length;o++)r=rS(r,nS(t[o])-nS(t[o-1]));var s=n-i,a=r/s;return{len:aS(e*=a,1),min:s*a}},e.type="log",e}(OA),BA=[1,1e3,6e4,36e5,864e5,6048e5,24192e5,314496e5],DA=[[1,2,5,10,20,25,50,100,200,250,500],[1,2,5,10,15,30],[1,2,3,4,6,8,12],[1,2,3,4,6,12],[1,2],[1,2],[1,2,3,4,6]],FA={s:1,n:2,h:3,d:4,w:5,m:6,y:7},IA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.getNextStep=function(t,e){var i=new Date(t);switch(e*=this._step,this._scale){case 7:i.setFullYear(i.getFullYear()+e);break;case 6:i.setMonth(i.getMonth()+e);break;case 5:i.setDate(i.getDate()+7*e);break;case 4:i.setDate(i.getDate()+e);break;case 3:i.setHours(i.getHours()+e);break;case 2:i.setMinutes(i.getMinutes()+e);break;case 1:i.setSeconds(i.getSeconds()+e);break;case 0:i.setMilliseconds(i.getMilliseconds()+e)}return+i},e.prototype._isValidInterval=function(t){return isNaN(t)?Xx(t)&&FA.hasOwnProperty(t.charAt(t.length-1))?(t=parseFloat(t),!isNaN(t)&&(t<=-1||t>=1)):void 0:0!=+t},e.prototype._getStepMultiples=function(t){for(var e=0;e<7;e++)if(t>=BA[e]/2&&t<BA[e+1]/2)return this._scale=e,DA[e];this._scale=7},e.prototype._getStepsByPixels=function(t,e,i,n,r){var o=[],s=r-n;if(0===s)return o;var a=this.axis,l=new Date(a._calcedMin),u=Math.floor(t/this._op.stepPixels)+1,h=oS(1,Math.floor(s/(u-1))),p=this._getStepMultiples(h),c=BA[this._scale];if(h/=c,p)if(h>p[0]){for(var f=0;f<p.length-1;f++)if(h>p[f]&&h<p[f+1]){h=p[f+1];break}}else h=p[0];var _,d=a.date(n),y=a.date(r),g=d;if(7===this._scale){var v=l.getFullYear(),m=g.getFullYear();this._step=h=Math.ceil(h),g=new Date(m,0),m<v&&m+h>v&&(m=v,g=new Date(m,0));do{o.push(+g),m+=h,g=new Date(m,0)}while(g<=y)}else if(6===this._scale){m=g.getFullYear();var b=g.getMonth();this._step=h=Math.ceil(h),(g=new Date(m,b))<l&&new Date(m,b+h)>l&&(b=l.getMonth(),g=new Date(l.getFullYear(),b));do{o.push(+g),g.setMonth(g.getMonth()+h)}while(g<=y)}else if(4===this._scale||5===this._scale){m=g.getFullYear(),b=g.getMonth();var w=g.getDate(),x=5===this._scale?7:1;this._step=h=Math.ceil(h),(g=new Date(m,b,w))<l&&new Date(m,b,w+x*h)>l&&(w=l.getDate(),g=new Date(l.getFullYear(),l.getMonth(),w));do{o.push(+g),g.setDate(g.getDate()+h*x)}while(g<=y)}else{switch(this._step=h,h*=c,this._scale){case 3:g.setMinutes(0);case 2:g.setSeconds(0);case 1:g.setMilliseconds(0)}_=g.getTime();var S=l.getTime();_<S&&_+h>S&&(_=S);do{o.push(_),_+=h}while(_<=r)}return o},e.prototype._getStepsByInterval=function(e,i,n,r){if(Xx(e)){var o=this.axis,s=new Date(o._calcedMin),a=[],l=e.charAt(e.length-1),u=parseFloat(e),h=void 0,p=void 0;this._scale=FA[l],e=BA[this._scale];var c=new Date(n);switch(this._scale){case 7:var f=s.getFullYear(),_=c.getFullYear();c.setMonth(0,1),_<f&&f<_+u&&(c=new Date(f,0));break;case 6:c.setDate(1),c.setHours(0,0,0,0),(p=new Date(c)).setMonth(p.getMonth()+u),c<s&&s<p&&((c=new Date(s)).setDate(1),c.setHours(0,0,0,0));break;case 5:case 4:var d=5===this._scale?7:1;c.setHours(0,0,0,0),(p=new Date(c)).setDate(p.getDate()+u*d),c<s&&p>s&&(c=new Date(s)).setHours(0,0,0,0);break;case 3:c.setMinutes(0);case 2:c.setSeconds(0);case 1:c.setMilliseconds(0)}if(this._step=u,n=+c,isNaN(i))for(a.push(h=n);h<r;)a.push(h=this.getNextStep(h,1));else{for(a.push(h=i);h>n;)a.unshift(h=this.getNextStep(h,-1));for(h=i;h<r;)a.push(h=this.getNextStep(h,1))}return this._step=e,a}return t.prototype._getStepsByInterval.call(this,e,i,n,r)},e}(AA),jA=[{format:"SSS",beginningFormat:"mm:ss"},{format:"ss",beginningFormat:"mm:ss"},{format:"mm:ss",beginningFormat:"HH:mm:ss"},{format:"HH:mm",beginningFormat:"MM-dd HH:mm"},{format:"MM-dd",beginningFormat:"yyyy-MM-dd"},{format:"MM W주",beginningFormat:"yyyy-MM-dd"},{format:"yyyy-MM",beginningFormat:"yyyy-MM"},{format:"yyyy",beginningFormat:"yyyy"}],$A=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._doApply=function(e){t.prototype._doApply.call(this,e);var i=Xx(e.timeFormat)?e.timeFormat:void 0,n=Xx(e.beginningFormat)?e.beginningFormat:void 0,r=e.timeFormats,o=e.useBeginningFormat;if(this._formats=jA.map((function(t){return Kx(t)})),i&&this._formats.forEach((function(t){t.format=t.beginningFormat=i})),o&&n&&this._formats.forEach((function(t){t.beginningFormat=n})),Wx(r))for(var s=0;s<r.length;s++){var a=this._formats[s],l=r[s];Ux(l)?a.format=l:Gx(l)&&(Ux(l.format)&&(a.format=l.format),o&&Ux(l.beginningFormat)&&(a.beginningFormat=l.beginningFormat))}},e.prototype.getTick=function(t,e){var i=this.chart,n=this.axis,r=n.date(e);if(this._formatter)return this._formatter.toStr(r,i.startOfWeek);var o=this._formats,s=n.tick._scale,a=xP.getFormatter;switch(s){case 7:return a(o[s].format).toStr(r,i.startOfWeek);case 6:return 0===t||0===r.getMonth()?a(o[s].beginningFormat).toStr(r,i.startOfWeek):a(o[s].format).toStr(r,i.startOfWeek);case 5:case 4:return 0===t||1===r.getDate()?a(o[s].beginningFormat).toStr(r,i.startOfWeek):a(o[s].format).toStr(r,i.startOfWeek);case 3:return 0===t||0===r.getHours()?a(o[s].beginningFormat).toStr(r,i.startOfWeek):a(o[s].format).toStr(r,i.startOfWeek);case 2:return 0===t||0===r.getMinutes()?a(o[s].beginningFormat).toStr(r,i.startOfWeek):a(o[s].format).toStr(r,i.startOfWeek);case 1:return 0===t||0===r.getSeconds()?a(o[s].beginningFormat).toStr(r,i.startOfWeek):a(o[s].format).toStr(r,i.startOfWeek);case 0:return 0===t||0===r.getMilliseconds()?a(o[s].beginningFormat).toStr(r,i.startOfWeek):a(o[s].format).toStr(r,i.startOfWeek)}},e.defaults=uV(CA.defaults,{useBeginningFormat:!0}),e}(CA),zA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),Object.defineProperty(e.prototype,"label",{get:function(){return this._label},enumerable:!1,configurable:!0}),e.prototype._createTickModel=function(){return new IA(this)},e.prototype._createLabel=function(){return new $A(this)},e.prototype.collectValues=function(){this._offset=60*aS(this.chart.timeOffset,0)*1e3,t.prototype.collectValues.call(this)},e.prototype.getValue=function(t){return qx(t)?t:t instanceof Date?t.getTime():Xx(t)?new Date(t).getTime()+this._offset:void 0},e.prototype.incStep=function(t,e){if(Xx(e)){var i=parseFloat(e);if(0!=i){var n=new Date(t);switch(e.charAt(e.length-1)){case"y":n.setFullYear(n.getFullYear()+i);break;case"m":n.setMonth(n.getMonth()+i);break;case"d":n.setDate(n.getDate()+i);break;case"w":n.setDate(n.getDate()+7*i);break;case"h":n.setHours(n.getHours()+i);break;case"n":n.setMinutes(n.getMinutes()+i);break;case"s":n.setSeconds(n.getSeconds()+i)}return+n}return t}return t+e},e.prototype.date=function(t){return new Date(t)},e.prototype.axisValueAt=function(t,e){return new Date(this.valueAt(t,e))},e.prototype.value2Tooltip=function(t){return isNaN(t)?this.chart._tooltip.options.nanText:new Date(t)},e.prototype.getXValue=function(t){return isNaN(t)?NaN:new Date(t)},e.type="time",e.subtype="date",e.defaults=uV(OA.defaults,{baseValue:NaN}),e}(OA),HA="bullet",GA="circle",WA="linear",YA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.getWidth=function(t){return jS(this._widthDim,t)},e.prototype.getHeight=function(t){return jS(this._heightDim,t)},e.prototype.getMaxWidth=function(t){return jS(this._maxWidthDim,t)},e.prototype.getMaxHeight=function(t){return jS(this._maxHeightDim,t)},e.prototype.getGap=function(t){return jS(this._gapDim,t,0)},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),this._setDims(e,"width","height","maxWidth","maxHeight","gap")},e.defaults=uV(ik.defaults,{maxWidth:"30%",maxHeight:"30%",gap:10}),e}(ik),XA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._doInitChildren=function(e){t.prototype._doInitChildren.call(this,e),e.label=(this._label=new YA(this.chart)).init(),e.scale=(this._scale=new nk(this)).init()},Object.defineProperty(e.prototype,"label",{get:function(){return this._label},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scale",{get:function(){return this._scale},enumerable:!1,configurable:!0}),e.prototype.isVertical=function(){return this._group?this._group.options.vertical:this._op.vertical},e.prototype.scaleVisible=function(){return!this._group&&this._scale.visible},e.prototype.calcedMinMax=function(){return this._scale.range()},e.prototype._doPrepareRender=function(e){t.prototype._doPrepareRender.call(this,e),this._label._prepareRender()},e.defaults=uV(ZV.defaults,{reversed:!1}),e}(ZV),UA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._args={gauge:null,value:NaN},e}return Dx(e,t),e.prototype.getStyle=function(t,e){if(this._op.styleCallback)return this._args.gauge=t,this._args.value=e,this._op.styleCallback(this._args)},e}(YV),qA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._doInitChildren=function(e){t.prototype._doInitChildren.call(this,e),e.valueBar=(this._valueBar=new UA(this)).init(),e.band=(this._band=new ek(this)).init()},Object.defineProperty(e.prototype,"valueBar",{get:function(){return this._valueBar},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"band",{get:function(){return this._band},enumerable:!1,configurable:!0}),e.type=WA,e}(XA),ZA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.defaults=uV(pV.defaults,{opposite:!1,gap:10}),e}(pV),KA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.defaults=uV(YA.defaults,{gap:10}),e}(YA),JA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._doInitChildren=function(e){t.prototype._doInitChildren.call(this,e),e.label=(this._label=new KA(this.chart)).init(),e.itemLabel=(this._itemLabel=new ZA(this.chart)).init(),e.scale=(this._scale=new nk(this)).init()},Object.defineProperty(e.prototype,"label",{get:function(){return this._label},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"itemLabel",{get:function(){return this._itemLabel},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scale",{get:function(){return this._scale},enumerable:!1,configurable:!0}),e.prototype.calcedMinMax=function(){return this.scale.range()},e.defaults=uV(UV.defaults,{vertical:!1,itemGap:10}),e}(UV),QA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._doInitChildren=function(e){t.prototype._doInitChildren.call(this,e),e.band=(this._band=new ek(this)).init()},Object.defineProperty(e.prototype,"band",{get:function(){return this._band},enumerable:!1,configurable:!0}),e.prototype._gaugesType=function(){return"linear"},e.prototype._doPrepareRender=function(e){t.prototype._doPrepareRender.call(this,e),this.band.visible&&this.band._prepareRender()},e.type="lineargroup",e.gaugeType=WA,e}(JA),tC=function(t){function e(e){var i=t.call(this,e.chart)||this;return i.gauge=e,i}return Dx(e,t),e.prototype.getRanges=function(){var t;return null===(t=this.$_internalRanges())||void 0===t?void 0:t.slice(0)},e.prototype._doApply=function(e){var i,n=this;t.prototype._doApply.call(this,e),(i=e.ranges)!==n._ranges&&(n._ranges=i,n._runRanges=null)},e.prototype.$_internalRanges=function(){if(!this._runRanges){var t=this.gauge.options;this._runRanges=US(this._ranges,t.minValue,t.maxValue,this._op.rangeInclusive)}return this._runRanges},e.defaults=uV(pV.defaults,{vertical:!0,rangeInclusive:!0}),e}(pV),eC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.defaults=uV(pV.defaults,{visible:!0}),e}(YV),iC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e}(UA),nC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._doInitChildren=function(e){t.prototype._doInitChildren.call(this,e),e.band=(this._band=new tC(this)).init(),e.targetBar=(this._targetBar=new eC(this)).init(),e.valueBar=(this._valueBar=new iC(this)).init()},Object.defineProperty(e.prototype,"band",{get:function(){return this._band},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"targetBar",{get:function(){return this._targetBar},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"valueBar",{get:function(){return this._valueBar},enumerable:!1,configurable:!0}),e.prototype.getRanges=function(t,e,i){return US(this._op.ranges,t,e,uS(i,this._op.rangeInclusive))},e.type=HA,e.defaults=uV(XA.defaults,{rangeInclusive:!0}),e}(XA),rC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.getRanges=function(t,e,i){return US(this._op.ranges,t,e,uS(i,this._op.rangeInclusive))},e.prototype._gaugesType=function(){return"bullet"},e.type="bulletgroup",e.gaugeType=HA,e.defaults=uV(JA.defaults,{rangeInclusive:!0}),e}(JA),oC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.getRange=function(t,e){var i,n,r=this.$_internalRanges(t);if(r)try{for(var o=Ix(r),s=o.next();!s.done;s=o.next()){var a=s.value;if(e>=a.fromValue&&e<a.toValue)return a}}catch(t){i={error:t}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}},e.prototype._doApply=function(e){var i,n=this;t.prototype._doApply.call(this,e),(i=e.ranges)!==n._ranges&&(n._ranges=i,n._runRanges=null)},e.prototype.$_internalRanges=function(t){return this._runRanges||(this._runRanges=US(this._ranges,t.minValue,t.maxValue,this._op.rangeInclusive)),this._runRanges},e.defaults=uV(pV.defaults,{rangeInclusive:!0}),e}(YV),sC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.getSegmentThickness=function(t){return jS(this._segmentThicknessDim,t,t)},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),this._setDim(e,"segmentThickness")},e.defaults=uV(oC.defaults,{segmentGap:0}),e}(oC),aC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.getThickness=function(t){return jS(this._thicknessDim,t,t)},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),this._setDim(e,"thickness")},e.defaults=uV(oC.defaults,{thickness:"100%",stroked:!1}),e}(oC);!function(t){function e(){return null!==t&&t.apply(this,arguments)||this}Dx(e,t),e.defaults=uV(pV.defaults,{visible:!1})}(YV);var lC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.getExtents=function(t){return{radius:jS(this._radiusDim,t,0),length:jS(this._lengthDim,t,0),offset:jS(this._offsetDim,t,0)}},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),this._setDims(e,"radius","length","offset")},e.defaults=uV(pV.defaults,{visible:!1,radius:3,length:"100%",offset:0}),e}(YV),uC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.getRadius=function(t){return jS(this._radiusDim,t,0)},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),this._setDim(e,"radius")},e.defaults=uV(pV.defaults,{visible:!1,radius:5}),e}(YV),hC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._getStepMultiples=function(t){return[1,2,2.5,5,10]},e.defaults=uV(QV.defaults,{visible:!1,stepPixels:72}),e}(QV),pC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._doInitChildren=function(e){t.prototype._doInitChildren.call(this,e),e.band=(this._band=new ek(this)).init(),e.scale=(this._scale=new hC(this)).init(),e.rim=(this._rim=new sC(this)).init(),e.valueRim=(this._valueRim=new aC(this)).init(),e.hand=(this._hand=new lC(this)).init(),e.pin=(this._pin=new uC(this)).init()},Object.defineProperty(e.prototype,"band",{get:function(){return this._band},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scale",{get:function(){return this._scale},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rim",{get:function(){return this._rim},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"valueRim",{get:function(){return this._valueRim},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hand",{get:function(){return this._hand},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pin",{get:function(){return this._pin},enumerable:!1,configurable:!0}),e.prototype.getExtents=function(e){var i=t.prototype.getExtents.call(this,e),n=this.scale,r=this.band,o=i.radius,s=o-i.inner;if(r.visible)switch(i.bandThick=r.getThickness(s),r.options.position){case"inside":i.band=o-(s-i.bandThick)/2;break;case"opposite":i.band=i.inner-r.options.gap,i.inner=i.band-i.bandThick;break;default:i.band=o+=i.bandThick+r.options.gap}if(i.scaleTick=oS(1,n.tick.options.length||0),i.scaleLabel=16,"opposite"===n.options.position)i.scale=i.inner-n.options.gap,i.inner=i.scale-i.scaleTick-i.scaleLabel;else i.scale=o+n.options.gap;return i},e.type=GA,e}(sk),cC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._gaugesType=function(){return"circle"},e.type="circlegroup",e.gaugeType=GA,e.defaults=uV(ak.defaults,{innerRadius:"50%"}),e}(ak),fC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.getThickness=function(t){return jS(this._thicknessDim,t,t)},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),this._setDim(e,"thickness")},e.defaults=uV(pV.defaults,{thickness:7}),e}(YV),_C=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.getLength=function(t){return jS(this._lengthDim,t,t)},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),this._setDim(e,"length")},e.defaults=uV(pV.defaults,{thickness:7,length:"60%"}),e}(YV),dC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.defaults=uV(_C.defaults,{thickness:5,length:"85%"}),e}(_C),yC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.defaults=uV(_C.defaults,{thickness:2,length:"95%",animatable:!1,duration:200}),e}(_C),gC=function(t){function e(e,i){var n=t.call(this,e)||this;return n.length=i,n}return Dx(e,t),e}(YV),vC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.defaults=uV(pV.defaults,{step:1,offset:1}),e}(YV),mC=function(t){function e(e,i){var n=t.call(this,e)||this;return n.raidus=i,n}return Dx(e,t),e}(YV),bC=function(t){function e(e){return t.call(this,e.chart)||this}return Dx(e,t),e.defaults=uV(fV.defaults,{text:"RealChart Clock<br>ver1.0",position:"top"}),e}(fV),wC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._doInitChildren=function(e){t.prototype._doInitChildren.call(this,e),e.rim=(this.rim=new fC(this)).init(),e.hourHand=(this.hourHand=new _C(this)).init(),e.minuteHand=(this.minuteHand=new dC(this)).init(),e.secondHand=(this.secondHand=new yC(this)).init(),e.tick=(this.tick=new gC(this,10)).init(),e.minorTick=(this.minorTick=new gC(this,5)).init(),e.tickLabel=(this.tickLabel=new vC(this)).init(),e.pin=(this.pin=new mC(this,5)).init(),e.label=(this.label=new bC(this)).init()},e.prototype.getTime=function(){var t=this._op;return t.time instanceof Date?t.time:Xx(t.time)?new Date(t.time):isNaN(t.time)?void 0:new Date(t.time)},e.prototype.getExtents=function(t,e){var i=rS(t,e);return{cx:jS(this._centerXDim,t,t/2),cy:jS(this._centerYDim,e,e/3),rd:jS(this._radiusDim,i,i/2)}},e.prototype._doApply=function(e){var i,n,r,o=this;t.prototype._doApply.call(this,e),i=e.centerX,n=e.centerY,r=e.radius,(o._centerXDim||i!==o._centerX)&&(o._centerXDim=FS(uS(o._centerX=i,sk.DEF_CENTER),!0)),o._centerYDim&&n===o._centerY||(o._centerYDim=FS(uS(o._centerY=n,sk.DEF_CENTER),!0)),o._radiusDim&&r===o._radius||(o._radiusDim=FS(uS(o._radius=r,sk.DEF_RADIUS),!0))},e.type="clock",e.defaults=uV(XV.defaults,{centerX:"50%",centerY:"50%",radius:"40%",active:!0}),e}(XV),xC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.pointLabelCount=function(){return 2},e.prototype._createLegendMarker=function(t,e){return wk.create(t,Uk.LEGEND_MARKER,0,0,e,e,2)},e.prototype._getFielderProps=function(){return["lowField"].concat(t.prototype._getFielderProps.call(this))},e.prototype._createPoint=function(t){return new Bk(t)},e.prototype._getBottomValue=function(t){return t.lowValue},e.type="barrange",e.defaults=uV(sA.defaults,{tooltipText:"<b>${name}</b><br>${series}: <b>${lowValue}</b> ~ <b>${highValue}</b>"}),e}(sA),SC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e}(Mk),PC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.canCategorized=function(){return!0},e.prototype._colorByPoint=function(){return this._op.colorByPoint},e.prototype._createPoint=function(t){return new SC(t)},e.prototype._getGroupBase=function(){return this._group?this._group.options.baseValue:this._op.baseValue},e.defaults=uV(rA.defaults,{colorByPoint:!1}),e}(rA),VC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._createLegendMarker=function(t,e){return wk.create(t,Uk.LEGEND_MARKER,0,0,e,e,2)},Object.defineProperty(e.prototype,"canPolar",{get:function(){return!0},enumerable:!1,configurable:!0}),e.type="bar",e}(PC),kC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.canCategorized=function(){return!0},e.prototype.getBaseValue=function(t){return t._isX?NaN:aS(this._op.baseValue,t.getBaseValue())},e.prototype._doPrepareSeries=function(t){if("default"===this._op.layout){var e=t.length>1?t.map((function(t){return t.options.pointWidth})).reduce((function(t,e){return t+e}),0):t[0].options.pointWidth,i=0;t.forEach((function(t){t._childWidth=t.options.pointWidth/e,t._childPos=i,i+=t._childWidth}))}else this._op.layout},e.defaults=uV(uA.defaults,{baseValue:0}),e}(uA),AC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._canContain=function(t){return t instanceof VC},e.type="bargroup",e.seriesType="bar",e}(kC),CC=function(t){function e(e,i){var n=t.call(this,e,Uk.LEGEND_MARKER)||this;return n._size=i,n.add(n._marker=new RP(e)),n.setShape("circle",12),n}return Dx(e,t),e.prototype.setShape=function(t,e){t===this._shape&&e===this._size||(this._shape=t,this._size=e,this._renderShape(e))},e.prototype._renderShape=function(t){bk.setShape(this._marker,this._shape,t/2,t/2),this._marker.trans(this._markerOffset(t),0)},e.prototype._markerOffset=function(t){return 0},e}(LP),EC=function(t){function e(e,i){var n=t.call(this,e,i)||this;return n.insertFirst(n._line=new RP(e)),n.insertFirst(n._area=new RP(e)),n._area.setBoolData("fill",!0),n}return Dx(e,t),e.prototype._renderShape=function(e){t.prototype._renderShape.call(this,e);var i=["M",0,.5*e,"L",2*e,0],n=["M",0,.5*e,"L",2*e,0,"L",2*e,e,"L",0,e,"Z"];this._marker.setStyle("visibility",this._shape?"visible":"hidden"),this._line&&(this._line.setPath(i.join(" ")),this._area.setPath(n.join(" ")))},e.prototype._markerOffset=function(t){return t/2},e}(CC),LC=function(t){function e(e,i){var n=t.call(this,e,i)||this;return n.insertFirst(n._line=new RP(e)),n._line.setFill("none"),n.insertFirst(n._line2=new RP(e)),n._line2.setFill("none"),n.insertFirst(n._area=new RP(e)),n._area.setBoolData("fill",!0),n}return Dx(e,t),e.prototype._renderShape=function(e){t.prototype._renderShape.call(this,e);var i=["M",0,.3*e,"L",.7*e,0,"L",2*e,.4*e],n=["M",0,e,"L",e,.7*e,"L",2*e,e],r=["M",0,.3*e,"L",.7*e,0,"L",2*e,.4*e,"L",2*e,e,"L",e,.7*e,"L",0,e,"Z"];this._marker.setStyle("visibility",this._shape?"visible":"hidden"),this._line&&(this._line.setPath(i.join(" ")),this._line2.setPath(n.join(" ")),this._area.setPath(r.join(" ")))},e.prototype._markerOffset=function(t){return t/2},e}(CC),NC=function(t,e){return t==e||!(!t||!e)&&(t.x1===e.x1&&t.x2===e.x2&&t.y1===e.y1&&t.y2===e.y2)},OC=function(t){function e(e,i,n){void 0===i&&(i=xS),void 0===n&&(n=xS);var r=t.call(this,e,i)||this;return n&&r.setLine(n),r}return Dx(e,t),e.prototype.setLine=function(t,e,i,n){_S.isNumber(t)?this.setPath(bk.line(t,e,i,n)):t&&this.setPath(bk.line(t.x1,t.y1,t.x2,t.y2))},e.prototype.setVLine=function(t,e,i){this.setPath(bk.line(t,e,t,i))},e.prototype.setVLineC=function(t,e,i){var n=parseFloat(this.getStyle("stroke-width"));isNaN(n)||(t=Math.round(t)-n%2/2),this.setPath(bk.line(t,e,t,i))},e.prototype.setHLine=function(t,e,i){this.setPath(bk.line(e,t,i,t))},e.prototype.setHLineC=function(t,e,i){var n=parseFloat(this.getStyle("stroke-width"));isNaN(n)||(t=Math.round(t)-n%2/2),this.setPath(bk.line(e,t,i,t))},e}(RP);!function(t){function e(e,i,n){void 0===i&&(i=xS),void 0===n&&(n=xS);var r=t.call(this,e,null,i)||this;return r.setLine(n),r}Dx(e,t),Object.defineProperty(e.prototype,"line",{get:function(){return this._line},set:function(t){NC(t,this._line)||(this._line=t,this.$_render())},enumerable:!1,configurable:!0}),e.prototype.updateLine=function(t){NC(t,this._line)||(this.line=t)},e.prototype.updateVLine=function(t,e,i){this.updateLine({x1:t,y1:e,x2:t,y2:i})},e.prototype.updateHLine=function(t,e,i){this.updateLine({x1:e,y1:t,x2:i,y2:t})},e.prototype.updateVLineC=function(t,e,i){this.updateLine({x1:t,y1:e,x2:t,y2:i})},e.prototype.updateHLineC=function(t,e,i,n){this.updateLine({x1:e,y1:t,x2:i,y2:t})},e.prototype.setLine=function(t,e,i,n){_S.isNumber(t)?this.$_update(t,e,i,n):t&&this.updateLine(t)},e.prototype.setVLine=function(t,e,i){this.$_update(t,e,t,i)},e.prototype.setVLineC=function(t,e,i){this.$_update(t,e,t,i)},e.prototype.setHLine=function(t,e,i){this.$_update(e,t,i,t)},e.prototype.setHLineC=function(t,e,i){this.$_update(e,t,i,t)},e.prototype.$_update=function(t,e,i,n){this.line={x1:t,y1:e,x2:i,y2:n}},e.prototype.$_render=function(){var t=this._line;t&&this.setPath(bk.line(t.x1,t.y1,t.x2,t.y2))}}(RP),function(t){function e(){return null!==t&&t.apply(this,arguments)||this}Dx(e,t),e.prototype.setPoints=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.setPath(bk.lines.apply(bk,$x([],jx(t),!1)))}}(RP),function(t){function e(e,i){var n=t.call(this,e,i)||this;return n.setFill("none"),n}Dx(e,t),e.prototype.setPoints=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.setPath(bk.lines.apply(bk,$x([],jx(t),!1)))},e.prototype.resetStyles=function(e){var i=t.prototype.resetStyles.call(this,e);return this.setFill("none"),i}}(RP);var MC=function(t){function e(e,i){var n=t.call(this,e,i)||this;return n.insertFirst(n._line=new OC(e)),n}return Dx(e,t),e.prototype._renderShape=function(e){t.prototype._renderShape.call(this,e),this._marker.setStyle("visibility",this._shape?"visible":"hidden"),this._line&&(this._line.setHLine(e/2,0,2*e),this._shape&&this._line.setStyle("strokeDasharray",""))},e.prototype._markerOffset=function(t){return t/2},e}(CC),TC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.toPoint=function(){return{px:this.px,py:this.py,isNull:this.isNull,range:this.range}},e}(Mk),RC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.defaults=uV(Kk.defaults,{radius:4,hoverScale:1.75}),e}(Kk),BC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.getAlignOffset=function(){var t=+this._op.alignOffset;return isNaN(t)?"left"===this._op.align||"right"===this._op.align?e.ALIGN_GAP:0:t},e.ALIGN_GAP=4,e.defaults=uV(Hk.defaults,{position:"auto",align:"center"}),e}(Hk),DC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._doInitChildren=function(e){t.prototype._doInitChildren.call(this,e),e.marker=(this._marker=new RC(this)).init()},Object.defineProperty(e.prototype,"marker",{get:function(){return this._marker},enumerable:!1,configurable:!0}),e.prototype.getShape=function(t){return this.marker.visible?t&&t.shape||this.marker.options.shape||this._shape:null},e.prototype.getRadius=function(t){return aS(t.radius,this.marker.options.radius)},e.prototype.prepareLines=function(t){this._lines=this._doPrepareLines(t)},Object.defineProperty(e.prototype,"pointLabel",{get:function(){return this._pointLabel},enumerable:!1,configurable:!0}),e.prototype._createLabel=function(t){return new BC(t)},e.prototype._createPoint=function(t){return new TC(t)},e.prototype.hasShape=function(){return!0},e.prototype.setShape=function(t){this._shape=t},e.prototype._defViewRangeValue=function(){return"x"},e.prototype._createLegendMarker=function(t,e){return new MC(t,e)},e.prototype.legendMarker=function(e,i){var n=t.prototype.legendMarker.call(this,e,i);return n.setShape(this.getShape(null),rS(i,2*this.marker.options.radius)),n},e.prototype._doPrepareLines=function(t){var e=t.length,i=[];if(this._containsNull)for(var n=0;n<e;){for(var r=[];t[n].isNull&&n<e;)n++;for(;n<e&&!t[n].isNull;)r.push(t[n++]);r.length>0&&i.push(r)}else i.push(t.slice());return i},e.defaults=uV(Uk.defaults,{nullAsBase:!1}),e}(Zk),FC=function(t){function e(e){var i=t.call(this,e.chart)||this;return i.series=e,i}return Dx(e,t),e.prototype.label=function(){return this._op.text||this.series.displayName()},e.prototype.getDefaultIconPos=function(){return"left"},e.defaults=uV(_V.defaults,{visible:!1,offset:8}),e}(_V),IC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._doInitChildren=function(e){t.prototype._doInitChildren.call(this,e),e.flag=(this._flag=new FC(this)).init()},Object.defineProperty(e.prototype,"flag",{get:function(){return this._flag},enumerable:!1,configurable:!0}),e.prototype.backDir=function(){return"backward"===this._op.stepDir?"forward":"backward"},e.prototype.isMarker=function(){return!0},Object.defineProperty(e.prototype,"canPolar",{get:function(){return!0},enumerable:!1,configurable:!0}),e.prototype.getLineType=function(){return this._group instanceof WC||this._group instanceof YC?this._group.options.lineType:this._op.lineType},e.prototype.getBaseValue=function(t){return t._isX?NaN:this._base},e.prototype._doPrepareRender=function(){t.prototype._doPrepareRender.call(this),this._base=lS(this._group?this._group.getBaseValue(this._yAxisObj):this._op.baseValue,this._yAxisObj.getBaseValue(),0)},e.type=Ck,e.defaults=uV(DC.defaults,{lineType:"default",stepDir:"forward",connectNullPoints:!1}),e}(DC),jC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),Object.defineProperty(e.prototype,"canPolar",{get:function(){return!1},enumerable:!1,configurable:!0}),e.prototype._viewType=function(){return"line"},e.prototype.getLineType=function(){return"spline"},e.type="spline",e}(IC),$C=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e}(TC),zC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._doInitChildren=function(e){t.prototype._doInitChildren.call(this,e);var i=this.chart;this.marker.visible=i&&i.isPolar()},e.prototype.prepareAreas=function(){function t(t){var e=[];if(t.length>0){var i=t[t.length-1].toPoint();i.py=t[t.length-1].yLow,e.push(i),(i=t[0].toPoint()).py=aS(t[0].yLow,t[0].py),e.push(i)}return e}var e=this._group,i=this._lines,n=this._areas=[];if(e&&e._stacked){var r=[].concat.apply([],$x([],jx(i),!1));n.push(r),n.push(t(r))}else i.forEach((function(e){var i=e.slice(0);n.push(i),n.push(t(i))}))},e.prototype.isBased=function(t){return t===this._yAxisObj},e.prototype._createLegendMarker=function(t,e){return new EC(t,e)},e.prototype._createPoint=function(t){return new $C(t)},e.prototype._doPrepareLines=function(e){if(this._containsNull&&this._group&&this._group._stacked){for(var i=e.length,n=[],r=0;r<i;){var o=e[r].isNull,s=[];do{s.push(e[r++])}while(r<i&&e[r].isNull==o);n.push(s)}return n}return t.prototype._doPrepareLines.call(this,e)},e.type=Ek,e}(IC),HC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),Object.defineProperty(e.prototype,"high",{get:function(){return this.y},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"highValue",{get:function(){return this.yValue},enumerable:!1,configurable:!0}),e.prototype._assignTo=function(e){return Kx(t.prototype._assignTo.call(this,e),{low:this.low,high:this.high,lowValue:this.lowValue,highValue:this.yValue})},e.prototype._valuesChangd=function(e){return this.low!==e.low||t.prototype._valuesChangd.call(this,e)},e.prototype._readArray=function(t,e){var i=e.length>2?1:0;this.low=e[aS(t.options.lowField,0+i)],this.y=e[aS(t.options.yField,1+i)],i>0&&(this.x=e[aS(t.options.xField,0)])},e.prototype._readObject=function(e,i){t.prototype._readObject.call(this,e,i),this.isNull||(this.low=uS(i[e.options.lowField],i.low),this.y=hS(e._yFielder(i),i.y,i.value))},e.prototype._readSingle=function(e){t.prototype._readSingle.call(this,e),this.low=this.y},e.prototype.parse=function(e){t.prototype.parse.call(this,e),this.isNull||(this.isNull=isNaN(this.lowValue))},e.prototype.initValues=function(){this.lowValue=parseFloat(this.low)},e.prototype.initPrev=function(t,e){e.yValue=e.lowValue=this.lowValue},e.prototype.applyValueRate=function(t,e){this.lowValue=pS(t.lowValue,this.lowValue,e)},e}($C),GC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._createLegendMarker=function(t,e){return new LC(t,e)},e.prototype._createPoint=function(t){return new HC(t)},e.prototype.getLineType=function(){return this._op.curved?"spline":"default"},e.prototype.collectValues=function(e,i){t.prototype.collectValues.call(this,e,i),i&&e===this._yAxisObj&&this._runPoints.forEach((function(t){return!t.isNull&&i.push(t.lowValue)}))},e.prototype._doPrepareLines=function(e){var i=t.prototype._doPrepareLines.call(this,e),n=[];return i.forEach((function(t){for(var e=[],i=t.length-1;i>=0;i--){var r=t[i],o=r.toPoint();o.py=r.yLow,e.push(o)}n.push(t,e)})),n},e.type="arearange",e.defaults=uV(DC.defaults,{curved:!1,tooltipText:"<b>${name}</b><br>${series}: <b>${lowValue}</b> ~ <b>${highValue}</b>"}),e}(DC),WC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._canContain=function(t){return t instanceof IC},e.prototype.getBaseValue=function(t){return t===this._yAxisObj?lS(this._op.baseValue,t.getBaseValue(),0):NaN},e.type="linegroup",e.seriesType=Ck,e.defaults=uV(aA.defaults,{lineType:"default"}),e}(aA),YC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.prepareLines=function(t){if(this._stacked){var e=this._visibles.indexOf(t);if(e>0){for(var i=this._visibles[e-1],n=t._areas,r=i._areas,o=0;o<n.length;o+=2)n[o+1]=r[o].reverse();this._op.layout}}},e.prototype._canContain=function(t){return t instanceof zC},e.prototype.getBaseValue=function(t){return t===this._yAxisObj?lS(this._op.baseValue,t.getBaseValue(),0):NaN},e.type="areagroup",e.seriesType=Ek,e.defaults=uV(aA.defaults,{lineType:"default"}),e}(aA),XC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e}($C),UC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.getLineType=function(){return this._op.curved?"spline":"default"},e.prototype._createPoint=function(t){return new XC(t)},e.prototype._doLoadData=function(e){var i=t.prototype._doLoadData.call(this,e);if(Wx(i))return this._loadTable(i)},e.prototype._referOtherSeries=function(t){if(this._points.isEmpty()&&(t.options.name===this._op.source||t.index===this._op.source))return t.referBy(this),!0},e.prototype.reference=function(t,e){if(!e._isX){var i=t._runPoints.map((function(t){return t.yValue})).filter((function(t){return!isNaN(t)})),n=this._loadTable(i);this._doLoadPoints(n),this._runPoints=this._points.getPoints(this._xAxisObj,this._yAxisObj),this.collectValues(this._xAxisObj,this._xAxisObj._values),this.collectValues(this._yAxisObj,this._yAxisObj._values)}},e.prototype._loadTable=function(t){var e=function(t,e,i){var n=i-t;return{x:i,y:Math.exp(-n*n/(2*e*e))/(e*Math.sqrt(2*Math.PI))}},i=t.length;if(!(i<1)){var n=this._op,r=t.reduce((function(t,e){return t+e}),0)/i,o=Math.sqrt(t.reduce((function(t,e){return t+Math.pow(e-r,2)}))/(i-1)),s=o/n.pointsInSigma,a=r-n.sigmas*o,l=r+n.sigmas*o,u=r,h=[];for(h.push(e(r,o,u));u>a;)u-=s,h.unshift(e(r,o,u));for(u=r;u<l;)u+=s,h.push(e(r,o,u));return h}},e.type="bellcurve",e.defaults=uV(zC.defaults,{sigmas:3,pointsInSigma:5,curved:!0}),e}(zC),qC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),Object.defineProperty(e.prototype,"max",{get:function(){return this.y},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxValue",{get:function(){return this.yValue},enumerable:!1,configurable:!0}),e.prototype.labelCount=function(){return 2},e.prototype.getPointLabel=function(e){return 0===e?t.prototype.getPointLabel.call(this,e):this.minValue},e.prototype.getPointText=function(e){return 0===e?t.prototype.getPointText.call(this,e):this.minLabel},e.prototype._assignTo=function(e){return Kx(t.prototype._assignTo.call(this,e),{min:this.min,low:this.low,mid:this.mid,high:this.high,max:this.max,minValue:this.minValue,lowValue:this.lowValue,midValue:this.midValue,highValue:this.highValue,maxValue:this.maxValue})},e.prototype._valuesChangd=function(e){return!!t.prototype._valuesChangd.call(this,e)||(this.min!==e.min||this.low!==e.low||this.mid!==e.mid||this.high!==e.high)},e.prototype._readArray=function(t,e){if(e.length<=4)this.isNull=!0;else{var i=t.options,n=e.length>5?1:0;n>0&&(this.x=e[aS(i.xField,0)]),this.min=e[aS(i.minField,0+n)],this.low=e[aS(i.lowField,1+n)],this.mid=e[aS(i.midField,2+n)],this.high=e[aS(i.highField,3+n)],this.y=e[lS(i.maxField,t.options.yField,4+n)]}},e.prototype._readObject=function(e,i){t.prototype._readObject.call(this,e,i);var n=e.options;this.min=uS(i[n.minField],i.min),this.low=uS(i[n.lowField],i.low),this.mid=uS(i[n.midField],i.mid),this.y=hS(i[n.highField],i.high,this.y),this.minLabel=i.minLabel},e.prototype._readSingle=function(e){t.prototype._readSingle.call(this,e),this.min=this.low=this.mid=this.high=this.y},e.prototype.parse=function(e){t.prototype.parse.call(this,e),this.isNull||(this.isNull=isNaN(this.minValue)||isNaN(this.lowValue)||isNaN(this.midValue))},e.prototype.initValues=function(){this.minValue=parseFloat(this.min),this.lowValue=parseFloat(this.low),this.midValue=parseFloat(this.mid),this.highValue=parseFloat(this.high)},e.prototype.initPrev=function(t,e){e.yValue=e.highValue=e.midValue=e.lowValue=e.minValue=this.minValue},e.prototype.applyValueRate=function(t,e){this.minValue=pS(t.minValue,this.minValue,e),this.lowValue=pS(t.lowValue,this.lowValue,e),this.midValue=pS(t.midValue,this.midValue,e),this.highValue=pS(t.highValue,this.highValue,e)},e}(Mk),ZC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.pointLabelCount=function(){return 2},e.prototype.canCategorized=function(){return!0},e.prototype._getFielderProps=function(){return["minField","lowField","midField","highField"].concat(t.prototype._getFielderProps.call(this))},e.prototype._createPoint=function(t){return new qC(t)},e.prototype._getBottomValue=function(t){return t.minValue},e.prototype._createLegendMarker=function(t,e){return wk.create(t,Uk.LEGEND_MARKER,0,0,e,e,2)},e.type="boxplot",e.defaults=uV(sA.defaults,{tooltipText:"<b>${name}</b><br>min: <b>${minValue}</b><br>low: <b>${lowValue}</b><br>mid: <b>${midValue}</b><br>high: <b>${highValue}</b><br>max: <b>${maxValue}</b>"}),e}(sA),KC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e}(Rk),JC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.getShape=function(){return this._op.shape||"circle"},e.prototype.getPixelMinMax=function(t){return{min:jS(this._minSizeDim,t),max:jS(this._maxSizeDim,t)}},e.prototype.getRadius=function(t,e,i){var n=this._noSize?1:(t-this._zMin)/(this._zMax-this._zMin);return"area"==this._op.sizeMode&&(n=Math.sqrt(n)),n=Math.ceil(e+n*(i-e))/2},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),this._setDims(e,"minSize","maxSize")},e.prototype._createPoint=function(t){return new KC(t)},e.prototype._getNoClip=function(e){var i=t.prototype._getNoClip.call(this,e);return!Zx(i)||i},Object.defineProperty(e.prototype,"canPolar",{get:function(){return!0},enumerable:!1,configurable:!0}),e.prototype.hasZ=function(){return!0},e.prototype._colorByPoint=function(){return this._op.colorByPoint},e.prototype._doPrepareRender=function(){t.prototype._doPrepareRender.call(this);var e=Number.MAX_VALUE,i=Number.MIN_VALUE;this._runPoints.forEach((function(t){t.isNull||isNaN(t.zValue)||(e=rS(e,t.zValue),i=oS(i,t.zValue))})),this._noSize=(this._zMin=e)===(this._zMax=i)},e.prototype._getRangeMinMax=function(e){return"z"===e?{min:this._zMin,max:this._zMax}:t.prototype._getRangeMinMax.call(this,e)},e.type="bubble",e.defaults=uV(hA.defaults,{sizeMode:"area",minSize:10,maxSize:"20%",tooltipText:"x: <b>${x}</b><br>y: <b>${y}</b><br>volume: <b>${z}</b>"}),e}(hA),QC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._canContain=function(t){return t instanceof IC},e.prototype._doConstraintYValues=function(t){var e={};for(var i in t.forEach((function(t){t._runPoints.forEach((function(t){var i=t.xValue,n=e[i];n?n.push(t):e[i]=[t]}))})),e)e[i].sort((function(t,e){return t.yValue-e.yValue})).forEach((function(t,e){t.yLabel=uS(t.yLabel,t.yValue),t.yValue=t.yGroup=e}));return _S.makeIntArray(0,t.length)},e.type="bump",e.seriesType=Ck,e}(lA),tE=function(t){return isNaN(t)?0:t},eE=function(){function t(){this._path=[]}return t.prototype.length=function(){return this._path.length},t.prototype.isEmpty=function(){return 0===this._path.length},t.prototype.clear=function(){return this._path=[],this},t.prototype.reset=function(t,e){return this._path=[],this.move(t,e),this},t.prototype.end=function(t){return void 0===t&&(t=!1),this._path.length>0?(t&&this._path.push("Z"),this._path.join(" ")):""},t.prototype.close=function(t){var e=this.end(!0);return t&&this.clear(),e},t.prototype.move=function(t,e){return qx(t)?this._path.push("M",t,e):this._path.push("M",t.x,t.y),this},t.prototype.moveBy=function(t,e){return qx(t)?this._path.push("m",t,e):this._path.push("m",t.x,t.y),this},t.prototype.line=function(t,e){return qx(t)?this._path.push("L",t,e):this._path.push("L",t.x,t.y),this},t.prototype.moveOrLine=function(t,e,i){return t?this._path.push("L",e,i):this._path.push("M",e,i),this},t.prototype.vline=function(t,e,i){return this._path.push("M",t,e,"L",t,i),this},t.prototype.hline=function(t,e,i){return this._path.push("M",e,t,"L",i,t),this},t.prototype.curve=function(t,e,i,n,r,o){return this._path.push("C",t,e,i,n,r,o),this},t.prototype.quad=function(t,e,i,n){return qx(t)?this._path.push("Q",t,e,i,n):this._path.push("Q",t.x1,t.y1,t.x2,t.y2),this},t.prototype.rect=function(t,e,i,n){return this._path.push("M",t,e,"l",i,0,"l",0,n,"l",-i,0),this},t.prototype.lines=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(qx(t[0]))for(var i=0;i<t.length;i+=2)this._path.push("L",tE(t[i]),tE(t[i+1]));else for(i=0;i<t.length;i++)this._path.push("L",tE(t[i].x),tE(t[i].y));return this},t.prototype.polygon=function(){for(var t,e,i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];return qx(i[0])?(t=this.move(i[0],i[1])).lines.apply(t,$x([],jx(i.slice(2)),!1)):(e=this.move(i[0])).lines.apply(e,$x([],jx(i.slice(1)),!1)),this._path.push("Z"),this},t.prototype.circle=function(t,e,i){return this._path.push("M ".concat(t-i,", ").concat(e," a ").concat(i,",").concat(i," 0 1,0 ").concat(2*i,",0 a ").concat(i,",").concat(i," 0 1,0 ").concat(2*-i,",0")),this},t.prototype.getMove=function(t,e){if(void 0===t&&(t=0),void 0===e&&(e=!0),t<this._path.length&&"M"===this._path[t]){var i={x:this._path[t+1],y:this._path[t+2]};return e&&this._path.splice(t,3),i}},t.prototype.getLine=function(t,e){if(void 0===t&&(t=0),void 0===e&&(e=!0),t<this._path.length&&"L"===this._path[t]){var i={x:this._path[t+1],y:this._path[t+2]};return e&&this._path.splice(t,3),i}},t.prototype.getQuad=function(t,e){if(void 0===t&&(t=0),void 0===e&&(e=!0),t<this._path.length&&"Q"===this._path[t]){var i={x1:this._path[t+1],y1:this._path[t+2],x2:this._path[t+3],y2:this._path[t+4]};return e&&this._path.splice(t,5),i}},t.prototype.getPoints=function(t,e,i){void 0===i&&(i=!0);for(var n=[];t<this._path.length&&n.length<e&&t<this._path.length&&("M"===this._path[t]||"L"===this._path[t]);)n.push({x:this._path[t+1],y:this._path[t+2]}),i&&this._path.splice(t,3);return n},t}(),iE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),Object.defineProperty(e.prototype,"high",{get:function(){return this.y},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"highValue",{get:function(){return this.yValue},enumerable:!1,configurable:!0}),e.prototype._assignTo=function(e){return Kx(t.prototype._assignTo.call(this,e),{low:this.low,close:this.close,open:this.open,high:this.high,lowValue:this.lowValue,closeValue:this.closeValue,openValue:this.openValue,highValue:this.highValue})},e.prototype._valuesChangd=function(e){return!!t.prototype._valuesChangd.call(this,e)||(this.low!==e.low||this.close!==e.close||this.open!==e.open)},e.prototype._readArray=function(t,e){if(e.length<=3)this.isNull=!0;else{var i=t.options,n=e.length>4?1:0;n>0&&(this.x=e[aS(i.xField,0)]),this.low=e[aS(i.lowField,0+n)],this.close=e[aS(i.closeField,1+n)],this.open=e[aS(i.openField,2+n)],this.y=e[lS(i.highField,t.options.yField,3+n)]}},e.prototype._readObject=function(e,i){t.prototype._readObject.call(this,e,i);var n=e.options;this.low=uS(i[n.lowField],i.low),this.open=uS(i[n.openField],i.open),this.close=uS(i[n.closeField],i.close),this.y=hS(i[n.highField],i.high,this.y)},e.prototype._readSingle=function(e){t.prototype._readSingle.call(this,e),this.low=this.close=this.open=this.y},e.prototype.parse=function(e){t.prototype.parse.call(this,e),this.isNull||(this.isNull=isNaN(this.lowValue)||isNaN(this.openValue)||isNaN(this.closeValue))},e.prototype.initValues=function(){this.lowValue=parseFloat(this.low),this.openValue=parseFloat(this.open),this.closeValue=parseFloat(this.close)},e.prototype.initPrev=function(t,e){e.yValue=e.lowValue=e.openValue=e.closeValue=this.lowValue},e.prototype.applyValueRate=function(t,e){this.lowValue=pS(t.lowValue,this.lowValue,e),this.openValue=pS(t.openValue,this.openValue,e),this.closeValue=pS(t.closeValue,this.closeValue,e)},e}(Mk),nE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.canCategorized=function(){return!0},e.prototype._createPoint=function(t){return new iE(t)},e.prototype._getBottomValue=function(t){return t.lowValue},e.prototype._createLegendMarker=function(t,e){var i=new eE;return i.rect(0,.2*e,e,.6*e),i.vline(e/2,0,e),new RP(t,Uk.LEGEND_MARKER,i.end())},e.type="candlestick",e.defaults=uV(sA.defaults,{tooltipText:"<b>${name}</b><br>최저: <b>${lowValue}</b><br>시가: <b>${openValue}</b><br>종가: <b>${closeValue}</b><br>고가: <b>${highValue}</b>"}),e}(sA),rE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.defaults=uV(Hk.defaults,{position:"inside"}),e}(Hk),oE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),Object.defineProperty(e.prototype,"pointLabel",{get:function(){return this._pointLabel},enumerable:!1,configurable:!0}),e.prototype._createLabel=function(t){return new rE(t)},e.type=Lk,e}(PC),sE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._canContain=function(t){return t instanceof oE},e.type="circlebargroup",e.seriesType=Lk,e}(kC),aE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e}(Bk),lE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.defaults=uV(Kk.defaults,{radius:4,shape:"circle"}),e}(Kk),uE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._doInitChildren=function(e){t.prototype._doInitChildren.call(this,e),e.marker=(this._marker=new lE(this)).init(),e.lowMarker=(this._lowMarker=new lE(this)).init()},Object.defineProperty(e.prototype,"marker",{get:function(){return this._marker},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lowMarker",{get:function(){return this._lowMarker},enumerable:!1,configurable:!0}),e.prototype.canCategorized=function(){return!0},e.prototype._getBottomValue=function(t){return t.lowValue},e.prototype.pointLabelCount=function(){return 2},e.prototype.getLabelOff=function(e){return t.prototype.getLabelOff.call(this,e)+oS(0,this.marker.options.radius)},e.prototype._createPoint=function(t){return new aE(t)},e.prototype._doPrepareRender=function(){t.prototype._doPrepareRender.call(this);var e=this.marker.options,i=this.lowMarker.options,n=e.radius,r=e.shape,o=aS(i.radius,n),s=i.shape||r;this._runPoints.forEach((function(t){t.radius=n,t.shape=r,t.lowRadius=o,t.lowShape=s}))},e.type="dumbbell",e}(sA),hE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e}(Mk),pE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.getSegmentSize=function(t){return jS(this._segmentSizeDim,t)},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),this._setDim(e,"segmentSize")},e.prototype.canCategorized=function(){return!0},e.prototype._createPoint=function(t){return new hE(t)},e.prototype._createLegendMarker=function(t,e){var i=new eE;return i.rect(0,0,e,.4*e),i.rect(0,.6*e,e,.4*e),new RP(t,Uk.LEGEND_MARKER,i.end())},e.type="equalizer",e.defaults=uV(rA.defaults,{segmentSize:10,segmentGap:4,segmented:!1}),e}(rA),cE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.isClusterable=function(){return!1},e.prototype.pointLabelCount=function(){return 2},e.prototype._createPoint=function(t){return new Bk(t)},e.prototype.getBaseValue=function(t){return t===this._yAxisObj?0:NaN},e.prototype._createLegendMarker=function(t,e){var i=(new eE).vline(e/2,.1,.8*e).hline(.1,0,e).hline(.9*e,0,e),n=new RP(t,Uk.LEGEND_MARKER,i.end());return n.setStyle("strokeWidth","2px"),n},e.prototype._getBottomValue=function(t){return t.lowValue},e.type="errorbar",e.defaults=uV(sA.defaults,{pointPadding:.3,tooltipText:"<b>${name}</b><br>${series}: <b>${lowValue}</b> ~ <b>${highValue}</b>"}),e}(sA),fE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e}(Jk),_E=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.getDistance=function(){return isNaN(this._op.distance)?"far"===this._op.align?e.ENDED_DIST:e.OUTSIDE_DIST:this._op.distance||0},e.OUTSIDE_DIST=25,e.ENDED_DIST=10,e}(tA),dE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.getSize=function(t,e){return{width:oS(.1*t,jS(this._widthDim,t)),height:oS(.1*e,jS(this._heightDim,e))}},e.prototype.getNeckSize=function(t,e){return{width:_S.clamp(jS(this._neckWidthDim,t),.1*t,t),height:_S.clamp(jS(this._neckHeightDim,e),.1*e,e)}},Object.defineProperty(e.prototype,"pointLabel",{get:function(){return this._pointLabel},enumerable:!1,configurable:!0}),e.prototype._createLabel=function(t){return new _E(t)},e.prototype._createPoint=function(t){return new fE(t)},e.prototype._doApply=function(i){var n,r=this;t.prototype._doApply.call(this,i),(n=i.width)!==r._width&&(r._width=n,r._widthDim=IS(r._width,e.defaults.width)),function(t){t!==r._height&&(r._height=t,r._heightDim=IS(r._height,e.defaults.height))}(i.height),function(t){t!==r._neckWidth&&(r._neckWidth=t,r._neckWidthDim=IS(r._neckWidth,e.defaults.neckWidth))}(i.neckWidth),function(t){t!==r._neckHeight&&(r._neckHeight=t,r._neckHeightDim=IS(r._neckHeight,e.defaults.neckHeight))}(i.neckHeight)},e.type="funnel",e.defaults=uV(eA.defaults,{width:"85%",height:"90%",neckWidth:"30%",neckHeight:"30%",legendByPoint:!1}),e}(eA),yE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e}(Rk),gE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.getColor=function(t){},e.prototype.canMixWith=function(t){return!1},e.prototype.canCategorized=function(){return!0},e.prototype.hasZ=function(){return!0},e.prototype.defYAxisType=function(){return"category"},e.prototype._createPoint=function(t){return new yE(t)},e.prototype._doPrepareRender=function(){t.prototype._doPrepareRender.call(this);var e=Number.MAX_VALUE,i=Number.MIN_VALUE;this._runPoints.forEach((function(t){isNaN(t.zValue)||(e=rS(e,t.zValue),i=oS(i,t.zValue))})),this._heatMin=e,this._heatMax=i},e.type="heatmap",e.defaults=uV(Uk.defaults,{tooltipText:"x: <b>${x}</b><br>y: <b>${y}</b><br>heat: <b>${z}</b>"}),e}(Zk),vE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.parse=function(e){t.prototype.parse.call(this,e);var i=this.source;this.min=i.min,this.max=i.max},e.prototype._assignTo=function(e){return Kx(t.prototype._assignTo.call(this,e),{min:this.min,max:this.max})},e}(Mk),mE={squreRoot:function(t){return Math.ceil(Math.sqrt(t))},struges:function(t){return Math.ceil(Math.log(t)*Math.LOG2E)},rice:function(t){return Math.ceil(2*Math.pow(t,1/3))}},bE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.getBinCount=function(t){var e=aS(this._op.binWidth,0);return e>0?t/e:aS(this._op.binsNumber,0)<1?mE[this._op.binsNumber||"squreRoot"](t):void 0},e.prototype._createPoint=function(t){return new vE(t)},e.prototype._doLoadPoints=function(e){function i(t){var e;return e=Wx(t)?t[aS(this.yField,0)]:Gx(t)?hS(t[this.yField],t.y,t.value):t,parseFloat(e)}for(var n=this._op,r=[],o=[],s=0;s<e.length;s++){var a=i(e[s]);isNaN(a)||o.push(a)}if(o.length>0){o=o.sort((function(t,e){return t-e})),n.minValue<o[0]&&o.unshift(n.minValue),n.maxValue>o[o.length-1]&&o.push(n.maxValue);var l=o.length,u=o[0],h=o[l-1],p=this.getBinCount(l),c=this._binInterval=(h-u)/p,f=0,_=u,d=_+c;for(s=0;s<p;s++){var y=0;if(s==p-1)y=l-f;else for(;f<l&&o[f]<d;)y++,f++;r.push({x:_,y:y,min:_,max:s===p-1?h:d}),d=(_=d)+c}}t.prototype._doLoadPoints.call(this,r)},e.prototype.collectValues=function(e,i){t.prototype.collectValues.call(this,e,i),i&&(e===this._xAxisObj?i.push(this._runPoints[this._runPoints.length-1].max):e===this._yAxisObj&&i.push(this._base))},e.prototype._doPrepareRender=function(){t.prototype._doPrepareRender.call(this),this._base=aS(this._op.baseValue,this._yAxisObj.getBaseValue())},e.prototype.getBaseValue=function(t){return t===this._yAxisObj?this._base:NaN},e.prototype.isBased=function(t){return t===this._yAxisObj},e.prototype._createLegendMarker=function(t,e){return wk.create(t,Uk.LEGEND_MARKER,0,0,e,e,2)},e.type="histogram",e.defaults=uV(Uk.defaults,{baseValue:0,binsNumber:"squreRoot"}),e}(Zk),wE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.defaults=uV(Kk.defaults,{radius:4,shape:"circle"}),e}(Kk),xE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e}(Mk),SE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._doInitChildren=function(e){t.prototype._doInitChildren.call(this,e),e.marker=(this._marker=new wE(this)).init()},Object.defineProperty(e.prototype,"marker",{get:function(){return this._marker},enumerable:!1,configurable:!0}),e.prototype.canCategorized=function(){return!0},e.prototype.getLabelOff=function(e){return t.prototype.getLabelOff.call(this,e)+this.marker.options.radius},e.prototype._createPoint=function(t){return new xE(t)},e.prototype._doPrepareRender=function(){t.prototype._doPrepareRender.call(this);var e=this.marker.options.radius,i=this.marker.options.shape;this._runPoints.forEach((function(t){t.radius=e,t.shape=i}))},e.type="lollipop",e}(rA),PE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e}(iE),VE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._createPoint=function(t){return new PE(t)},e.prototype._createLegendMarker=function(t,e){var i=new eE;i.vline(e/2,0,e),i.hline(.4*e,e/2,e),i.hline(.7*e,0,e/2);var n=new RP(t,Uk.LEGEND_MARKER,i.end());return n.setStyle("strokeWidth","2px"),n},e.type="ohlc",e}(nE),kE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e}(TC),AE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.getLineType=function(){return this._op.curved?"spline":"default"},e.prototype._createPoint=function(t){return new kE(t)},e.prototype._referOtherSeries=function(t){if(t.options.name===this._op.source||t.index===this._op.source)return t.referBy(this),!0},e.prototype.reference=function(t,e){if(!e._isX){var i=this;n=t._runPoints,r=[],o=n.reduce((function(t,e){return t+aS(e.yValue,0)}),0),s=0,n.forEach((function(t){t.isNull||r.push({x:t.xValue,y:s+=100*t.yValue/o})})),i._doLoadPoints(r),i._runPoints=i._points.getPoints(i._xAxisObj,i._yAxisObj),this.collectValues(this._xAxisObj,this._xAxisObj._values),this.collectValues(this._yAxisObj,this._yAxisObj._values)}var n,r,o,s},e.type="pareto",e.defaults=uV(DC.defaults,{curved:!1}),e}(DC),CE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.sliced=!1,e.startAngle=0,e.angle=0,e}return Dx(e,t),Object.defineProperty(e.prototype,"thickness",{get:function(){return this._thickness},set:function(t){t!==this._thickness&&(this._thickness=t,this._thickDim=FS(t,!0))},enumerable:!1,configurable:!0}),e.prototype.parse=function(e){t.prototype.parse.call(this,e),this.sliced=this.source.sliced,this.isNull=this.isNull||this.y<0},e.prototype._assignTo=function(e){return Kx(t.prototype._assignTo.call(this,e),{sliced:this.sliced})},e}(Jk),EE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.getDefaultIconPos=function(){return"left"},e}(_V),LE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.getDistance=function(t,i,n){return n>0&&(i-=i*n),this._distanceDim?jS(this._distanceDim,i,0):t?jS(n?e.INNER_DIST:e.INSIDE_DIST,i):"far"===this._op.align?e.ENDED_DIST:e.OUTSIDE_DIST},e.INSIDE_DIST=FS("30%",!1),e.INNER_DIST=FS("50%",!1),e.OUTSIDE_DIST=25,e.ENDED_DIST=10,e.defaults=uV(tA.defaults,{radius:.7,rotationMode:Nk}),e}(tA),NE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._doInitChildren=function(e){t.prototype._doInitChildren.call(this,e),e.innerText=(this._innerText=new EE(this.chart)).init()},Object.defineProperty(e.prototype,"innerText",{get:function(){return this._innerText},enumerable:!1,configurable:!0}),e.prototype.followPointer=function(){return!0},e.prototype.hasInner=function(){return this._innerRadiusDim&&this._innerRadiusDim.size>0},e.prototype.getInnerRadius=function(t){var e=this._innerRadiusDim;return e?e.size/(e.fixed?t:100):0},e.prototype.getSliceOffset=function(t){return!this._group&&this._sliceOffsetDim?jS(this._sliceOffsetDim,t):0},Object.defineProperty(e.prototype,"pointLabel",{get:function(){return this._pointLabel},enumerable:!1,configurable:!0}),e.prototype._createLabel=function(t){return new LE(t)},e.prototype._createPoint=function(t){return new CE(t)},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),this._setDims(e,"innerRadius","labelDistance","sliceOffset")},e.prototype._doPrepareRender=function(){t.prototype._doPrepareRender.call(this),this._startRad=VS+kS*aS(this._op.startAngle%360,0),this._totalRad=kS*oS(0,rS(360,aS(this._op.totalAngle,360))),this._groupPos=NaN},e.type="pie",e.defaults=uV(iA.defaults,{groupSize:1,sliceOffset:"7%",autoSlice:!0,sliceDuration:300}),e}(iA),OE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.getPolarSize=function(t,e){return jS(this._polarDim,rS(t,e))},e.prototype.getInnerRadius=function(t){var e=this._innerDim;return e?e.size/(e.fixed?t:100):0},e.prototype._doApply=function(e){var i,n=this;t.prototype._doApply.call(this,e),(i=e.polarSize)!==n._polarSize&&(n._polarSize=i,n._polarDim=FS(i,!0)||{size:80,fixed:!1}),function(t){t!==n._innerSize&&(n._innerSize=t,n._innerDim=FS(t,!0))}(e.innerSize)},e.prototype.needAxes=function(){return!1},e.prototype._canContain=function(t){return t instanceof NE},e.prototype._doPrepareSeries=function(t){var e=t.map((function(t){return t.options.groupSize})).reduce((function(t,e){return t+aS(e,1)}),0),i=0;t.forEach((function(t){t._groupPos=i,i+=t._groupSize=aS(t.options.groupSize,1)/e}))},e.type="piegroup",e.seriesType="pie",e.defaults=uV(aA.defaults,{polarSize:"80%",innerSize:0}),e}(aA),ME=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e}(Mk),TE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._createPoint=function(t){return new ME(t)},e.prototype._createLegendMarker=function(t,e){return new CC(t,e)},e.prototype._colorByPoint=function(){return this._op.colorByPoint},e.prototype.setShape=function(t){this._defShape=t},Object.defineProperty(e.prototype,"canPolar",{get:function(){return!0},enumerable:!1,configurable:!0}),e.prototype.getShape=function(t){return this._op.shape||this._defShape},e.prototype.hasShape=function(){return!0},e.prototype.legendMarker=function(e,i){var n=t.prototype.legendMarker.call(this,e,i);return n.setShape(this.getShape(null),rS(i,2*this._op.radius)),n},e.type="scatter",e.defaults=uV(hA.defaults,{jitterX:0,jitterY:0,radius:5,hoverScale:1.8}),e}(hA),RE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._assignTo=function(e){return Kx(t.prototype._assignTo.call(this,e),{id:this.id,group:this.group})},e.prototype._readArray=function(t,e){if(e.length<=2)this.isNull=!0;else{var i=e.length>3?1:0;i>0&&(this.x=e[aS(t.options.xField,0)]),this.y=e[aS(t.options.yField,0+i)],this.id=OS(e[aS(t.options.idField,1+i)]),this.group=OS(e[aS(t.options.groupField,2+i)])}},e.prototype._readObject=function(e,i){t.prototype._readObject.call(this,e,i),this.id=OS(i[e.options.idField]),this.group=OS(i[e.options.groupField])},e}(Mk),BE=function(t){function e(e){var i=t.call(this,e.chart)||this;return i.level=e,i.floating=!0,i}return Dx(e,t),e.defaults=uV(pV.defaults,{visible:!1}),e}(pV);!function(t){function e(e,i){var n=t.call(this,e.chart)||this;return n.series=e,n.level=i,n.head=new BE(n),n}Dx(e,t)}(pV);var DE,FE=function(){function t(t){this.point=t}return t.prototype.level=function(){return this.parent?this.parent.level()+1:0},t.prototype.getArea=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.setArea=function(t,e,i,n){this.x=t,this.y=e,this.width=i,this.height=n},t.prototype.getTotal=function(){return this.children.reduce((function(t,e){return t+e.value}),0)},t}(),IE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._map={},e._levels=1,e}return Dx(e,t),e.prototype.buildMap=function(t,e){function i(t){if(t.children){var e=0;t.children.forEach((function(t,n){i(t),e+=t.value})),t.value=e,t.children=t.children.sort((function(t,e){return e.value-t.value})),t.children.forEach((function(t,e){t.index=e})),o=oS(o,t.level()+1+1)}else r.push(t),t.value=t.point?t.point.yValue:0}var n="vertical"===this._op.startDir||e>t,r=this._leafs=[],o=1;return this._roots.forEach((function(t,e){i(t)})),this._roots=this._roots.sort((function(t,e){return e.value-t.value})),this._roots.forEach((function(t,e){t.index=e})),(this[this._op.algorithm]||this.squarify).call(this,this._roots,t,e,n),this._levels=o,{roots:this._roots,leafs:this._leafs}},e.prototype.needAxes=function(){return!1},e.prototype.canMixWith=function(t){return!1},e.prototype._createPoint=function(t){return new RE(t)},e.prototype._getLabeledPoints=function(){return this._leafs.map((function(t){return t.point}))},e.prototype._doPrepareRender=function(){t.prototype._doPrepareRender.call(this),this._roots=this.$_buildTree(this._runPoints)},e.prototype.$_buildTree=function(t){var e=[],i=[],n=this._map;t.forEach((function(t){if(t.id||!t.isNull){var r=new FE(t);t.id&&(n[t.id]=r),t.group?i.push(r):e.push(r)}}));for(var r=i.length-1;r>=0;r--){var o=i[r],s=n[o.point.group];(o.parent=s)?(s.children||(s.children=[]),s.children.push(o),o.children&&i.splice(r,1)):(e.push(o),i.splice(r,1))}return e},e.prototype.$_squarifyRow=function(t,e,i,n){var r=e.width*e.height,o=e.width,s=e.height,a=e.x,l=e.y,u=Number.MAX_VALUE,h=0,p=[];if(2===t.length)return(1===i?o>s:o>=s)?t.forEach((function(t){t.setArea(a,l,o*t.value/n,s),a+=t.width})):t.forEach((function(t){t.setArea(a,l,o,s*t.value/n),l+=t.height})),0;for(var c=function(){var c,f,_,d,y=void 0;return c=t.shift(),y=(h+=c.value)*r/n,1===i?(f=y/s,_=s*c.value/h):(_=y/o,f=o*c.value/h),d=oS(f/_,_/f),t.length>0&&d>u?(t.unshift(c),h-=c.value,y=r*h/n,1===i?f=y/(_=s):_=y/(f=o),p.forEach((function(t){1===i?(t.setArea(a,l,f,s*t.value/h),l+=t.height):(t.setArea(a,l,o*t.value/h,_),a+=t.width)})),1===i?(e.x+=f,e.width-=f):(e.y+=_,e.height-=_),{value:n-h}):0===t.length?(y=r*h/n,1===i?f=y/(_=s):_=y/(f=o),p.push(c),p.forEach((function(t){1===i?(t.setArea(a,l,f,s*t.value/h),l+=t.height):(t.setArea(a,l,o*t.value/h,_),a+=t.width)})),{value:0}):(u=d,void p.push(c))};t.length>0;){var f=c();if("object"==typeof f)return f.value}},e.prototype.$_squarify=function(t,e,i,n){var r=this,o=t.slice(0),s=i?1:0,a=t.reduce((function(t,e){return t+e.value}),0);do{a=this.$_squarifyRow(o,e,s,a),n&&(s=1-s)}while(a>0);t.forEach((function(t){t.children&&r.$_squarify(t.children,t.getArea(),!i,!0)}))},e.prototype.squarify=function(t,e,i,n){this.$_squarify(t,{x:0,y:0,width:e,height:i},n,!0)},e.prototype.strip=function(t,e,i,n){this.$_squarify(t,{x:0,y:0,width:e,height:i},n,!1)},e.prototype.$_sliceNext=function(t,e,i,n){if(t.x=e.x,t.y=e.y,1===i){var r=e.height*t.value/n;t.width=e.width,t.height=r,e.y+=r,e.height-=r}else{var o=e.width*t.value/n;t.height=e.height,t.width=o,e.x+=o,e.width-=o}t.children&&this.$_slice(t.children,t.getArea(),0===i,!0)},e.prototype.$_slice=function(t,e,i,n){var r=this,o=t.reduce((function(t,e){return t+e.value}),0),s=i?1:0;t.forEach((function(t){r.$_sliceNext(t,e,s,o),o-=t.value,n&&(s=1-s)}))},e.prototype.slice=function(t,e,i,n){this.$_slice(t,{x:0,y:0,width:e,height:i},n,!1)},e.prototype.sliceDice=function(t,e,i,n){this.$_slice(t,{x:0,y:0,width:e,height:i},n,!0)},e.type="treemap",e.defaults=uV(pV.defaults,{idField:"id",groupField:"group",algorithm:"squarify",alternate:!0,groupMode:!0}),e}(Uk),jE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._assignTo=function(e){return Kx(t.prototype._assignTo.call(this,e),{length:this.length,angle:this.angle,lengthValue:this.lengthValue,angleValue:this.angleValue})},e.prototype._valuesChangd=function(e){return this.length!==e.length||this.angle!==e.angle||t.prototype._valuesChangd.call(this,e)},e.prototype._readArray=function(t,e){if(e.length<=2)this.isNull=!0;else{var i=e.length>3?1:0;i>0&&(this.x=e[aS(t.options.xField,0)]),this.y=e[aS(t.options.yField,0+i)],this.length=e[aS(t.options.lengthField,1+i)],this.angle=e[aS(t.options.angleField,2+i)]}},e.prototype._readObject=function(e,i){t.prototype._readObject.call(this,e,i),this.length=uS(i[e.options.lengthField],i.length),this.angle=uS(i[e.options.angleField],i.angle),this.y=hS(e._yFielder(i),i.y,i.value)},e.prototype._readSingle=function(e){t.prototype._readSingle.call(this,e),this.length=this.angle=this.y},e.prototype.parse=function(e){t.prototype.parse.call(this,e),this.isNull||(this.isNull=isNaN(this.lengthValue)||isNaN(this.angleValue))},e.prototype.initValues=function(){this.lengthValue=parseFloat(this.length),this.angleValue=parseFloat(this.angle)},e.prototype.initPrev=function(t,e){e.yValue=this.yValue,e.lengthValue=.001},e.prototype.applyValueRate=function(t,e){this.lengthValue=pS(t.lengthValue,this.lengthValue,e)},e}(Mk),$E=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._createPoint=function(t){return new jE(t)},e.prototype._doPrepareRender=function(){t.prototype._doPrepareRender.call(this);var e=this._runPoints;if(e.length>0){var i=this._op.maxLength,n=this._op.origin,r=e.map((function(t){return t.length})).reduce((function(t,e){return oS(t,e)}));e.forEach((function(t){var e=t.length/r;switch(t._len=e*i,n){case"start":t._off=-t._len/2;break;case"end":t._off=t._len/2;break;default:t._off=0}}))}},e.prototype._createLegendMarker=function(t,e){for(var i=.3,n=.7*e,r=[0,-i*e,-.2*e,-i*e,0,-.6*e,.2*e,-i*e,0,-i*e,0,.6*e],o=["M",r[0],r[1]+n],s=2;s<r.length;s+=2)o.push("L",r[s],r[s+1]+n);var a=new RP(t,Uk.LEGEND_MARKER,o);return a.setStyle("strokeWidth","2px"),a.rotation=30,a},e.type="vector",e.defaults=uV(Uk.defaults,{origin:"center",maxLength:20,startAngle:0,arrowHead:"close"}),e}(Zk),zE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.low=0,e}return Dx(e,t),e.prototype.parse=function(e){t.prototype.parse.call(this,e),this._isSum=!0===this.source.isSum,this._intermediate=this.source.intermediate,this._isSum&&(this.y=0),this.save=this.y},e}(Mk),HE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.canCategorized=function(){return!0},e.prototype._createPoint=function(t){return new zE(t)},e.prototype._createLegendMarker=function(t,e){return wk.create(t,Uk.LEGEND_MARKER,0,0,e,e,2)},e.prototype._doPrepareRender=function(){t.prototype._doPrepareRender.call(this);var e=this._runPoints;if(!(e.length<1))for(var i,n,r=e[0],o=r.y=r._isSum?0:r.y,s=o,a=o,l=o,u=0,h=1,p=e.length;h<p;h++){if((r=e[h])._isSum){var c=e[h-1],f=!0===r._intermediate||h<p-1&&!1!==r._intermediate,_=r.save=r.y=f?l:a;r.yGroup=r.yValue=r.y,f?l<0?n=(u=c.low)-_:u=(n=c.y)-_:n=(u=e[0].low)+_,l=0}else(i=r.y)<0?u=s<0?(n=o+s)+i:(n=o)+i:n=(u=o)+i,l+=i,a+=i;s=r.y,r.y=o=n,r.low=u}},e.prototype._getBottomValue=function(t){return t.y=t.save,NaN},e.type="waterfall",e}(oA),GE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.isFloating=function(){return this._op.floating||"middle"===this._op.verticalAlign&&"center"===this._op.align},e.defaults=uV(pV.defaults,{text:"RealChart v1.0",url:"https://realchart.co.kr",floating:!1,align:"right",verticalAlign:"bottom",offsetX:2,offsetY:1,gap:4}),e}(pV),WE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.getHintDistance=function(t){return isNaN(this._op.hintDistance)?this.chart._tooltip.visible&&this.chart._tooltip.isFollowPointer(t)?Number.MAX_SAFE_INTEGER:30:this._op.hintDistance},e.prototype.getScope=function(t,e){return"auto"!==uS(this._op.scope,"auto")?this._op.scope:this.chart._chartOptions.options.seriesHovering?"point":t._xAxisObj.crosshair.visible?"axis":t.isMarker()&&t._group?"group":"point"},e.defaults=uV(pV.defaults,{scope:"auto"}),e}(pV),YE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._doInitChildren=function(t){t.credits=(this._credits=new GE(null)).init(),t.pointHovering=(this._pointHovering=new WE(this.chart)).init()},Object.defineProperty(e.prototype,"credits",{get:function(){return this._credits},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pointHovering",{get:function(){return this._pointHovering},enumerable:!1,configurable:!0}),e.prototype.getXStart=function(t){return t instanceof RA&&isNaN(this._op.xStart)?1:this._op.xStart||0},e.defaults=uV(pV.defaults,{paletteMode:"normal",animatable:!0,xStep:1,axisGap:8,seriesHovering:!1,timeOffset:(new Date).getTimezoneOffset(),startOfWeek:0}),e}(pV);!function(t){t.LEFT="left",t.TOP="top",t.BOTTOM="bottom",t.RIGHT="right",t.CENTER="center",t.MIDDLE="middle"}(DE||(DE={}));var XE=function(t){function e(e){var i=t.call(this)||this;return i._data=new QS,i._params={},i._seriesIndex=0,i._dataDirty=!1,i._loadAnimatable=!0,i._assets=new aV,(i._chartOptions=new YE(i)).init(),(i._title=new bA(i)).init(),(i._subtitle=new wA(i)).init(),(i._legend=new fk(i)).init(),(i._tooltip=new xA(i)).init(),(i._split=new mA(i)).init(),(i._body=new hk(i)).init(),(i._navigator=new yA(i)).init(),(i._exporter=new pk(i)).init(),i._series=new qk(i),i._xAxes=new DV(i,!0),i._yAxes=new DV(i,!1),i._xPaneAxes=new jV(i),i._yPaneAxes=new $V(i),i._gauges=new qV(i),i._annotations=new vV(i),Gx(e)?i._load(e):i._initOptions(),i}return Dx(e,t),e.prototype._initOptions=function(){return this.options=Object.assign({},e.defaults)},e.prototype._createChart=function(t){return new e(t)},e.prototype.animatable=function(){return!1!==this._chartOptions.options.animatable},e.prototype.loadAnimatable=function(){return this._loadAnimatable},e.prototype.getTooltipContext=function(t,e,i){var n=function(){function t(t){this.axis=t,this.series=t.getVisibleSeries()}return t.prototype.getTooltipText=function(t,e){return aA.collectTooltipText(this.axis.options,this.series,e)},t.prototype.getTooltipParam=function(t,e,i){return aA.inflateTooltipParam(this.series,t,e,i)},t}();switch("point"!==t&&"axis"!==t&&"group"!==t&&(t=this._chartOptions.pointHovering.getScope(e,i)),t){case"axis":return new n(e._xAxisObj);case"group":return e._group;default:return e}},Object.defineProperty(e.prototype,"chart",{get:function(){return this},enumerable:!1,configurable:!0}),e.prototype.anchorByName=function(t){},Object.defineProperty(e.prototype,"type",{get:function(){return this.options.type},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"gaugeType",{get:function(){return this.options.gaugeType},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"polar",{get:function(){return this.options.polar},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"inverted",{get:function(){return this.options.inverted},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"timeOffset",{get:function(){return this.options.options.timeOffset},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"startOfWeek",{get:function(){return this.options.options.startOfWeek},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"first",{get:function(){return this._series.first},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"firstSeries",{get:function(){return this._series.firstSeries},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"firstGauge",{get:function(){return this._gauges.firstGauge},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"xAxis",{get:function(){return this._xAxes.first},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"yAxis",{get:function(){return this._yAxes.first},enumerable:!1,configurable:!0}),e.prototype._needAxes=function(){return this._series.needAxes()},e.prototype._getSeries=function(){return this._series},e.prototype._getGauges=function(){return this._gauges},e.prototype._getXAxes=function(){return this._xAxes},e.prototype._getYAxes=function(){return this._yAxes},e.prototype.getAnnotations=function(){return this._annotations.getVisibles()},e.prototype.isGauge=function(){return this._gaugeOnly},e.prototype.isPolar=function(){return this._series.series().length>0&&this._series.series().every((function(t){return t&&t.canPolar}))&&this._polar&&this._series.seriesCount()>0},e.prototype.isWidget=function(){return this._series.isWidget()},e.prototype.isInverted=function(){return this._inverted},e.prototype.isSplitted=function(){return this._splitted},e.prototype.isEmpty=function(t){return this._series.isEmpty(t)&&this._gauges.isEmpty(t)},e.prototype.seriesByName=function(t){return this._series.getSeries(t)},e.prototype.seriesAt=function(t){return this._series.get(t)},e.prototype.seriesByPoint=function(t){return this._series.seriesByPoint(t)},e.prototype.gaugeByName=function(t){return this._gauges.getGauge(t)},e.prototype.gaugeAt=function(t){return this._gauges.get(t)},e.prototype.annotationByName=function(t){return this._annotations.getAnnotation(t)||(this._splitted?this._split.getAnnotation(t):this._body.getAnnotation(t))},e.prototype.axisByName=function(t){return this._xAxes.get(t)||this._yAxes.get(t)},e.prototype.containsAxis=function(t){return this._xAxes.contains(t)||this._yAxes.contains(t)},e.prototype.getXAxis=function(t){return this._xAxes.get(t)},e.prototype.getYAxis=function(t){return this._yAxes.get(t)},e.prototype.getAxes=function(t,e){var i,n=this._xAxes.items(),r=this._yAxes.items();if(this.isInverted())switch(t){case DE.LEFT:i=n.filter((function(t){return!t._isOpposite&&!t._isBetween}));break;case DE.RIGHT:i=n.filter((function(t){return t._isOpposite}));break;case DE.BOTTOM:i=r.filter((function(t){return!t._isOpposite&&!t._isBetween}));break;case DE.TOP:i=r.filter((function(t){return t._isOpposite}));break;case DE.CENTER:i=n.filter((function(t){return t._isBetween}))}else switch(t){case DE.LEFT:i=r.filter((function(t){return!t._isOpposite&&!t._isBetween}));break;case DE.RIGHT:i=r.filter((function(t){return t._isOpposite}));break;case DE.BOTTOM:i=n.filter((function(t){return!t._isOpposite&&!t._isBetween}));break;case DE.TOP:i=n.filter((function(t){return t._isOpposite}));break;case DE.MIDDLE:i=n.filter((function(t){return t._isBetween}))}return i?e?i.filter((function(t){return t.visible})):i:[]},e.prototype._getLegendSources=function(){return this._series.getLegendSources()},e.prototype._setProperties=function(t,i){var n=this.options;for(var r in e.defaults)t.hasOwnProperty(r)&&(n[r]=t[r]);n.type=n.type||"bar",n.gaugeType=n.gaugeType||"circle",this._polar=!0===this.polar},e.prototype.loadBase=function(t,e,i){var n,r=this._bases[e];return Gx(r.base)&&hV(n={},r.base),Gx(r[i])&&(n||(n={}),hV(n,r[i])),n?hV(n,t):t},e.prototype._load=function(t){var e=this._initOptions();return this.$_loadTemplates(t.templates),this._setProperties(t),this._assets.load(uS(t.asset,t.assets)),e.options=this._chartOptions._load(t.options),e.title=this._title._load(t.title),e.subtitle=this._subtitle._load(t.subtitle),e.legend=this._legend._load(t.legend),e.tooltip=this._tooltip._load(t.tooltip),this._split._load(t.split),this._seriesIndex=0,this._series.load(t.series),this._gauges.load(uS(t.gauge,t.gauges)),this._gaugeOnly=0===this._series.count&&!this._gauges.isEmpty(!1),this._gaugeOnly||(this._xAxes.load(hS(t.xAxis,t.xAxes,{})),this._yAxes.load(hS(t.yAxis,t.yAxes,{}))),e.body=this._body._load(t.body||t.plot),this._annotations.load(uS(t.annotation,t.annotations),!1),e.seriesNavigator=this._navigator._load(t.seriesNavigator),e.exporting=this._exporter._load(t.exporting),this},e.prototype.update=function(t,e){for(var i in this._setProperties(t,!1),this){var n=this[i];(n instanceof pV||n instanceof cV||n instanceof aV)&&n.updateOptions(t[i],!1)}e&&this._modelChanged(null)},e.prototype.export=function(t){this._fireEvent("onExportRequest",t)},e.prototype._connectSeries=function(t,e){return e?this._xAxes.connect(t):this._yAxes.connect(t)},e.prototype._dataChanged=function(){this._dataDirty=!0},e.prototype._isDataChanged=function(){return this._dataDirty},e.prototype._prepareRender=function(){var t=this,e=this._xAxes,i=this._yAxes,n=this._split;[e,i].forEach((function(e){e.count<1&&!t._gaugeOnly&&e.load({})})),this._inverted=!this._polar&&this.inverted,this._splitted=n.visible,e.disconnect(),i.disconnect(),this._series.prepareRender(),e.prepare(),i.prepare(),e.collectValues(),i.collectValues(),e.collectReferentsValues(),i.collectReferentsValues(),i.collectRanges(),e.prepareRender(),i.prepareRender(),this._splitted&&!this._gaugeOnly&&(n._prepareRender(),this._xPaneAxes._prepare(e,n._vrows,n._vcols),this._yPaneAxes._prepare(i,n._vrows,n._vcols)),this._series.prepareAfter(),this._legend._prepareRender(),this._gauges.prepareRender(),this._body._prepareRender(),this._annotations.prepareRender(),this._navigator.visible&&this._navigator._prepareRender()},e.prototype.afterRender=function(){this._dataDirty=!1,this._xAxes.afterRender(),this._yAxes.afterRender()},e.prototype.layoutAxes=function(t,e,i,n){this._xAxes._buildTicks(i?e:t),this._yAxes._buildTicks(i?t:e),this.$_calcAxesPoints(t,e,i,0)},e.prototype.$_calcAxesPoints=function(t,e,i,n){var r=i?e:t;this._xAxes.forEach((function(t){t._calcPoints(r,n)})),r=i?t:e,this._yAxes.forEach((function(t){t._calcPoints(r,n)}))},e.prototype.axesLayouted=function(t,e,i){this.$_calcAxesPoints(t,e,i,101)},e.prototype.getParam=function(t,e){return this._params[e]},e.prototype.setParam=function(t,e,i){return i&&e!==this._params[t]?(this._params[t]=e,this._modelChanged(null)):this._params[t]=e,this},e.prototype.addSeries=function(t,e){var i=this._series.add(t);return i&&(this._dataChanged(),this._modelChanged(i)),i},e.prototype.removeSeries=function(t,e){var i=this._series.remove(t);if(i)return this._dataChanged(),this._modelChanged(null),i},e.prototype.render=function(){this._fireEvent("onRefreshRequest")},e.prototype.$_loadTemplates=function(t){var e=this,i=this._bases={xAxis:{},yAxis:{},series:{},gauge:{},annotation:{}};if(Gx(t)){var n=this._templates={};for(var r in t){var o=t[r];Gx(o)&&(n[r]=Kx({},o))}["@xAxis","@yAxis","@series","@gauge","@annotation"].forEach((function(e){t.hasOwnProperty(e)&&Gx(t[e])&&(i[e.substring(1)]=t[e])})),this.assignTemplates=function(t){var i=t.template;if(Xx(i)){var n=e._templates[i];if(n)return hV(hV({},n),t)}else Wx(i)&&i.forEach((function(i){var n=e._templates[i];return n?hV(hV({},n),t):n}));return t}}else this.assignTemplates=void 0},e.prototype._getGroupType=function(t){return Xx(t)&&zk[t.toLowerCase()]},e.prototype._getSeriesType=function(t){return Xx(t)&&$k[t.toLowerCase()]},e.prototype._getAxisType=function(t){return Xx(t)&&wV[t.toLowerCase()]},e.prototype._getGaugeType=function(t){return Xx(t)&&HV[t.toLowerCase()]},e.prototype._getGaugeGroupType=function(t){return Xx(t)&&GV[t.toLowerCase()]},e.prototype._getAnnotationType=function(t){return Xx(t)&&yV[t.toLowerCase()]},e.prototype.getAxesGap=function(){return this._chartOptions.options.axisGap||0},e.prototype._modelChanged=function(t,e){this._fireEvent("onModelChanged",t,e)},e.prototype._visibleChanged=function(t){this._fireEvent("onVisibleChanged",t)},e.prototype._pointVisibleChanged=function(t,e){this._fireEvent("onPointVisibleChanged",t,e)},e.defaults={type:"bar",gaugeType:"circle",polar:!1,inverted:!1},e}(wS);BV.register(jk,MA,RA,zA),Uk.register(zC,GC,xC,VC,UC,ZC,JC,nE,oE,uE,pE,cE,dE,gE,bE,IC,jC,SE,VE,AE,NE,TE,IE,$E,HE),aA.register(YC,AC,QC,sE,WC,OE),aA.registerSeries(YC,AC,sE,WC,OE),XV.register(nC,pC,wC,qA),UV.register(rC,cC,QA),gV.register(SA,PA,VA);var UE="$ctrl",qE=function(){function t(t,e){this._loaded=!1,this._modelCallback=e,this._obj=new XE(t),null==e||e(this._obj,null)}return t.prototype.destroy=function(){var t;this.$_destroyed||this.$_destroying||(this.$_destroying=!0,this[UE]=null===(t=this[UE])||void 0===t?void 0:t.destroy(),this._obj=null,this.$_destroyed=!0)},Object.defineProperty(t.prototype,"options",{get:function(){return this._obj.options},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"data",{get:function(){return this._obj._data},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"type",{get:function(){return this._obj.type},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"gaugeType",{get:function(){return this._obj.gaugeType},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inverted",{get:function(){return this._obj.inverted},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"polar",{get:function(){return this._obj.polar},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"chartOptions",{get:function(){return this._obj._chartOptions},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this._obj._title},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"subtitle",{get:function(){return this._obj._subtitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"first",{get:function(){return this._obj.first},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"series",{get:function(){return this._obj.firstSeries},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"gauge",{get:function(){return this._obj.firstGauge},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"legend",{get:function(){return this._obj._legend},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tooltip",{get:function(){return this._obj._tooltip},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"xAxis",{get:function(){return this._obj.xAxis},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"yAxis",{get:function(){return this._obj.yAxis},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"body",{get:function(){return this._obj._body},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"split",{get:function(){return this._obj._split},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"seriesNavigator",{get:function(){return this._obj._navigator},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"exporter",{get:function(){return this._obj._exporter},enumerable:!1,configurable:!0}),t.prototype.getXAxis=function(t){return this._obj.getXAxis(t)},t.prototype.getYAxis=function(t){return this._obj.getYAxis(t)},t.prototype.getSeries=function(t){return Xx(t)?this._obj.seriesByName(t):this._obj.seriesAt(t)},t.prototype.getGauge=function(t){return this._obj.gaugeAt(t)},t.prototype.getAnnotation=function(t){return this._obj.annotationByName(t)},t.prototype.load=function(t,e,i){var n;if(void 0===e&&(e=!1),Gx(t)){var r="load chart";_S.LOGGING&&console.time(r);var o=this._obj,s=o;this._loaded?(o.destroy(),s=this._obj=new XE):(this._loaded=!0,o=null),s._load(t),s._loadAnimatable=e,this._loadCallback=i,_S.log("chart-items:",lV),_S.LOGGING&&console.timeEnd(r),null===(n=this._modelCallback)||void 0===n||n.call(this,s,o)}return this},t.prototype.updateOptions=function(t,e){void 0===e&&(e=!0),this._obj.update(t,e)},t.prototype.export=function(t){this._obj.export(t)},t.prototype.render=function(){this._obj.render()},t.prototype.setParam=function(t,e,i){this._obj.setParam(t,e,i)},t.prototype.addSeries=function(t,e){return void 0===e&&(e=!0),this._obj.addSeries(t,e)},t.prototype.removeSeries=function(t,e){void 0===e&&(e=!0),this._obj.removeSeries(t,e)},t}(),ZE=function(){function t(t,e){this._obj=new JS(t||{},e)}return Object.defineProperty(t.prototype,"rowCount",{get:function(){return this._obj.rowCount},enumerable:!1,configurable:!0}),t.prototype.getValue=function(t,e){return this._obj.getValue(t,e)},t.prototype.setValue=function(t,e,i){this._obj.setValue(t,e,i)},t.prototype.getValues=function(t,e,i){return void 0===e&&(e=0),void 0===i&&(i=-1),this._obj.getValues(t,e,i)},t.prototype.getRow=function(t){return this._obj.getRow(t)},t.prototype.addRow=function(t,e){void 0===e&&(e=-1),this._obj.addRow(t,e)},t.prototype.deleteRow=function(t){void 0===t&&(t=-1),this._obj.deleteRow(t)},t}(),KE=function(t){function e(e,i,n,r){void 0===r&&(r=0);var o=t.call(this)||this;return o.removeDelay=0,o._pool=[],o._views=[],o._removes=[],o._owner=e,o._creator=i,o._styleName=n,o.removeDelay=r,o}return Dx(e,t),e.prototype._doDestroy=function(){this.freeAll(),this._owner=null,this._creator=null,t.prototype._doDestroy.call(this)},Object.defineProperty(e.prototype,"isEmpty",{get:function(){return 0===this._views.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"count",{get:function(){return this._views.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"first",{get:function(){return this._views[0]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"last",{get:function(){return this._views[this._views.length-1]},enumerable:!1,configurable:!0}),e.prototype.get=function(t){return this._views[t]},e.prototype.getAll=function(){return this._views.slice()},e.prototype.pull=function(t){var e=this._views[t];return e||(e=this._pool.pop()||new this._creator(this._owner.doc,this._styleName),this._owner.add(e),this._views.push(e)),e},e.prototype._internalItems=function(){return this._views},e.prototype.elementOf=function(t){var e,i;try{for(var n=Ix(this._views),r=n.next();!r.done;r=n.next()){var o=r.value;if(o.dom.contains(t))return o}}catch(t){e={error:t}}finally{try{r&&!r.done&&(i=n.return)&&i.call(n)}finally{if(e)throw e.error}}},e.prototype.find=function(t){return this._views.find(t)},e.prototype.setRemoveDelay=function(t){return this.removeDelay=t,this},e.prototype.removeLater=function(t,e){var i=this,n=this._views.indexOf(t);n>=0&&(t.removeLater(e,(function(t){i._pool.push(t)})),this._views.splice(n,1))},e.prototype.$_create=function(t,e,i){var n=this._pool.pop();return n||(n=new this._creator(t,this._styleName)),n},e.prototype.prepare=function(t,e,i){for(var n=this._owner.doc,r=this._owner,o=this._pool,s=this._views;s.length>t;)o.push(s.pop().remove());for(;s.length<t;){var a=this.$_create(n);s.push(a),null==i||i(a,s.length-1,t),r.add(a)}return e&&this.forEach(e),this},e.prototype.borrow=function(){var t=this._pool.pop()||new this._creator(this._owner.doc,this._styleName);return this._owner.add(t),t},e.prototype.free=function(t,e){if(void 0===e&&(e=0),t){e>0?t.removeLater(e):t.remove(),this._pool.push(t);var i=this._views.indexOf(t);i>=0&&this._views.splice(i,1)}},e.prototype.freeAll=function(t,e){void 0===e&&(e=0);for(var i=(t=t||this._views).length-1;i>=0;i--)this.free(t[i],e)},e.prototype.freeHiddens=function(){for(var t=this._views,e=t.length-1;e>=0;e--)!t[e].visible&&this.free(t[e],0)},e.prototype.freeFrom=function(t){for(var e=this._views,i=e.length-1;i>=t;i--)this.free(e[i],0)},e.prototype.forEach=function(t){for(var e=this._views,i=0,n=e.length;i<n;i++)t(e[i],i,n)},e.prototype.visit=function(t){for(var e=this._views.length,i=0;i<e&&!1!==t(this._views[i],i,e);i++);return i===e},e.prototype.sort=function(t){return this._views=this._views.sort(t),this},e.prototype.map=function(t){return this._views.map(t)},e.prototype.front=function(t){t.front(this._views)},e.prototype.back=function(t){t.back(this._views)},e}(bS),JE=Object.freeze({x:0,y:0,width:0,height:0}),QE=function(t,e,i,n){return{x:t,y:e,width:i,height:n}};function tL(t){return{width:t.width,height:t.height}}function eL(t){return t.width<=0||t.height<=0}var iL=function(t){var e=t.x+t.width/2,i=t.y+t.height/2,n=t.rotation*Math.PI/180,r=t.width/2,o=t.height/2;return[[-r,-o],[r,-o],[r,o],[-r,o]].map((function(t){var r=jx(t,2),o=r[0],s=r[1];return[e+(o*Math.cos(n)-s*Math.sin(n)),i+(o*Math.sin(n)+s*Math.cos(n))]}))},nL=function(t){for(var e=[],i=0;i<t.length;i++){var n=t[i],r=t[(i+1)%t.length],o=[r[0]-n[0],r[1]-n[1]],s=[-o[1],o[0]],a=Math.sqrt(s[0]*s[0]+s[1]*s[1]);e.push([s[0]/a,s[1]/a])}return e},rL=function(t,e){var i=t.map((function(t){var i=jx(t,2),n=i[0],r=i[1];return n*e[0]+r*e[1]}));return[Math.min.apply(Math,$x([],jx(i),!1)),Math.max.apply(Math,$x([],jx(i),!1))]},oL=function(t,e){return t[1]>=e[0]&&e[1]>=t[0]},sL=function(t,e){var i,n,r=iL(t),o=iL(e),s=nL(r),a=nL(o);try{for(var l=Ix($x($x([],jx(s),!1),jx(a),!1)),u=l.next();!u.done;u=l.next()){var h=u.value,p=rL(r,h),c=rL(o,h);if(!oL(p,c))return!1}}catch(t){i={error:t}}finally{try{u&&!u.done&&(n=l.return)&&n.call(l)}finally{if(i)throw i.error}}return!0},aL=function(t,e){return!(t.y>=e.y+e.height||e.y>=t.y+t.height||t.x>=e.x+t.width||e.x>=t.x+t.width)},lL=function(){function t(t,e,i,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=0),this.top=t,this.bottom=e,this.left=i,this.right=n}return t.create=function(e,i,n,r){return isNaN(n)?isNaN(i)?new t(e,e,e,e):new t(e,e,i,i):new t(e,i,n,r)},t.createFrom=function(t){var e,i=t.split(/\s*[\s,]+\s*/g);return(e=this.create).call.apply(e,$x([null],jx(i.map((function(t){return+t}))),!1))},t.prototype.clone=function(){return new t(this.top,this.bottom,this.left,this.right)},t.prototype.applyPadding=function(t){return this.left=aS(t.paddingLeft,0),this.right=aS(t.paddingRight,0),this.top=aS(t.paddingTop,0),this.bottom=aS(t.paddingBottom,0),this},t.prototype.applyMargin=function(t){return this.left=aS(t.marginLeft,0),this.right=aS(t.marginRight,0),this.top=aS(t.marginTop,0),this.bottom=aS(t.marginBottom,0),this},t.prototype.shrink=function(t){return{x:t.x+this.left,y:t.y+this.top,width:t.width-this.left-this.right,height:t.height-this.top-this.bottom}},t.Empty=Object.freeze(new t),t.Temp=new t,t}(),uL=function(t){function e(e,i){void 0===i&&(i=xS);var n=t.call(this,e,i,"g")||this;return n._doInitChildren(e),n}return Dx(e,t),e.prototype.setAttr=function(i,n){return e.IGNORE_ATTRS.hasOwnProperty(i)||t.prototype.setAttr.call(this,i,n),this},e.prototype._doInitChildren=function(t){},e.IGNORE_ATTRS={width:"",height:""},e}(LP),hL=function(t){function e(e,i){void 0===i&&(i=xS);var n=t.call(this,e,i,"g")||this;return LP.DEBUGGING&&(n.add(n._debugRect=new wk(e,"rct-debug")),n._debugRect.setAttr("pointerEvents","none")),n}return Dx(e,t),e.prototype.chart=function(){return this.model.chart},e.prototype._prepareStyleOrClass=function(t){this.setStyleOrClass(t._style)},e.prototype.setModel=function(t){t!==this.model&&(this.model=t,this.options=t._op)},e.prototype.measure=function(t,e,i,n,r){this._prepareStyleOrClass(e),this.setModel(e);var o=this._doMeasure(t,this.model,i,n,r);return this.mw=o.width,this.mh=o.height,o},e.prototype.layout=function(t){return this._doLayout(t),LP.DEBUGGING?(this._debugRect||this.insertFirst(this._debugRect=new wk(this.doc,"rct-debug")),this.width>1&&this.height>1&&this._debugRect.setRect(this._getDebugRect())):this._debugRect&&(this._debugRect.remove(),this._debugRect=null),this},e.prototype.resizeByMeasured=function(){return this.resize(this.mw,this.mh),this},e.prototype._getDebugRect=function(){return{x:0,y:0,width:this.width,height:this.height}},e.prototype._doMeasure=function(t,e,i,n,r){return{width:i,height:n}},e.prototype._doLayout=function(t){},e.prototype._invalidate=function(){var t;null===(t=this.control)||void 0===t||t.invalidateLayout()},e}(LP),pL=function(t){function e(e,i,n){var r=t.call(this,e,i)||this;return r._margins=new lL,r._paddings=new lL,r.add(r._background=new wk(e,n)),r}return Dx(e,t),e.prototype._getDebugRect=function(){return this._margins.shrink(t.prototype._getDebugRect.call(this))},e.prototype.measure=function(t,e,i,n,r){this._prepareStyleOrClass(e),this.setModel(e),this._setBackgroundStyle(this._background);var o=getComputedStyle(this._background.dom),s=this._paddings;s.applyPadding(o);var a=this._doMeasure(t,e,i,n,r);if(a.width+=s.left+s.right,a.height+=s.top+s.bottom,this._marginable()){var l=this._margins;o=getComputedStyle(this.dom),l.applyMargin(o),this.mw=a.width+=l.left+l.right,this.mh=a.height+=l.top+l.bottom}return this.mw=a.width,this.mh=a.height,a},e.prototype.layout=function(e){if(t.prototype.layout.call(this,e),this._marginable()){var i=this._margins;this._background.setBounds(i.left+this._getBackOffset(),i.top,this.width-i.left-i.right,this.height-i.top-i.bottom)}else this._resetBackBounds()&&this._background.setBounds(0,0,this.width,this.height);return this},e.prototype._marginable=function(){return!0},e.prototype._resetBackBounds=function(){return!0},e.prototype._getBackOffset=function(){return 0},e.prototype._deflatePaddings=function(t){var e=this._paddings;t.width-=e.left+e.right,t.height-=e.top+e.bottom},e}(hL),cL=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.measure=function(t,e,i,n,r){this._setInverted(e.isInverted());var o=this._doMeasure(t,e,i,n,r);return this.mw=o.width,this.mh=o.height,o},e.prototype.resizeByMeasured=function(){return this.resize(this.mw,this.mh),this},e.prototype.layout=function(t){return this._doLayout(t),this},e.prototype._setInverted=function(t){this._inverted=t},e}(uL),fL=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._inverted=!1,e._animatable=!0,e._loadAnimatable=!0,e}return Dx(e,t),e.prototype._setChartOptions=function(t,e,i){this._inverted=t,this._animatable=e,this._loadAnimatable=i},e}(hL),_L=function(t){function e(e,i,n){var r=t.call(this,e,n,"image")||this;return r._dirty=!0,r._bounds=JE,r._isImageLoaded=!1,r.onloadProxy=function(){var t=r.getBBox();r.resize(t.width,t.height)},i&&r.setAttr("preserveAspectRatio","xMidYMid slice"),r.dom.onload=function(){r._dirty=!0,r._isImageLoaded=!0,r.invalidate(),r._dirty=!1},r.dom.onerror=function(){r._dirty=!0,r._isImageLoaded=!1,r.invalidate(),r._dirty=!1},window.SVGGraphicsElement||(r._proxy=new Image,r._proxy.onload=function(){r._dirty=!0,r.invalidate(),setTimeout((function(){r.onloadProxy(),r._dirty=!1}),0)}),r}return Dx(e,t),Object.defineProperty(e.prototype,"url",{get:function(){return this.getAttr("href")},set:function(t){t!==this.url&&(this._dirty=!0,t?this.setAttr("href",t):this.unsetAttr("href"),this._proxy&&(this._proxy.src=t))},enumerable:!1,configurable:!0}),e.prototype.setImage=function(t,e,i){return!!t&&(this.url=t,this.resize(e,i)&&(this._dirty=!0),this._isImageLoaded&&!0)},e.prototype.getBBox=function(){if(this._bounds=this.dom.getBBox(),this._proxy){var t=this._bounds.width,e=this._bounds.height;0==t||e?0==e||t||(t=e/this._proxy.height*this._proxy.width):e=t/this._proxy.width*this._proxy.height,this._bounds={x:this._bounds.x,y:this._bounds.y,width:t,height:e}}return this._bounds},e.prototype.resize=function(e,i,n){return void 0===n&&(n=!0),this._dirty&&t.prototype.resize.call(this,e,i,n)},e}(LP),dL=function(t){function e(e,i){void 0===i&&(i=xS);var n=t.call(this,e)||this;return n.add(n._text=new $P(e,i)),n._text.anchor=BP.START,n}return Dx(e,t),Object.defineProperty(e.prototype,"text",{get:function(){return this._text.text},enumerable:!1,configurable:!0}),e.prototype.setText=function(t){return this._outline&&(this._outline.text=t),this._text.text=t,this},e.prototype.setModel=function(t,e,i,n){var r=e.options.effect;return this._model=e,this._text.setStyleOrClass(e._style),"background"===r?(this._outline&&this._outline.remove(),this._back||(this._back=new wk(t,"rct-label-background")),this.insertFirst(this._back),this._back.setStyleOrClass(e.options.backgroundStyle)):"outline"===r?(this._back&&this._back.remove(),this._outline||(this._outline=new $P(t)),this.insertFirst(this._outline),this._outline.anchor=this._text.anchor,this._outline.setStyleOrClass(e._style)):(this._back&&this._back.remove(),this._outline&&this._outline.remove()),i?this._icon||(this.add(this._icon=new _L(t,!1)),this._icon.url=i,this._icon.width=e.options.iconWidth,this._icon.height=e.options.iconHeight||16):this._icon&&(this._icon.remove(),this._icon=null),this},e.prototype.setContrast=function(t){var e,i=null===(e=this._model)||void 0===e?void 0:e.options;if(t&&(null==i?void 0:i.autoContrast)&&this._text.setContrast(t,i.darkStyle||"rct-label-dark",i.lightStyle||"rct-label-light"),this._outline&&this._outline.parent){var n=SP.getContrast(getComputedStyle(this._text.dom).fill);this._outline.applyStyles({fill:n,stroke:n,strokeWidth:this._model._outlineWidth})}return this},e.prototype.layout=function(t){var e=this._icon,i=0,n=this._text.getBBox(),r=n.width,o=n.height,s=r,a=o,l=0,u=0,h=0,p=0;if(e){var c=e.getBBox();switch(i=aS(this._model.options.iconGap,0),l=c.width,u=c.height,this._model.getIconPos()){case"left":case"right":s+=i+l,a=Math.max(u,o);break;default:a+=i+u,s=Math.max(l,r)}}if(this._back&&this._back.parent){var f=getComputedStyle(this._back.dom);h=parseFloat(f.paddingLeft)||0,p=parseFloat(f.paddingTop)||0,this._back.setBounds(0,0,s+h+(parseFloat(f.paddingRight)||0),a+p+(parseFloat(f.paddingBottom)||0),f.rx)}if(e)switch(this._model.getIconPos()){case"left":e.trans(h,(a-u)/2),h+=l+i,s-=l+i;break;case"right":e.trans(h+s-l,(a-u)/2),s-=l+i;break;case"top":e.transX((s-l)/2),p+=u+i;break;case"bottom":e.trans((s-l)/2,p+o+i)}switch(t){case"center":h+=s/2,this._text.anchor=BP.MIDDLE;break;case"right":h+=s,this._text.anchor=BP.END;break;default:this._text.anchor=BP.START}return this._text.trans(h,p),this},e.prototype.trans=function(e,i){return t.prototype.trans.call(this,e,i),this._outline&&(this._outline.anchor=this._text.anchor,this._outline.setAttr("y",this._text.getAttr("y")),this._outline.trans(this._text.tx,this._text.ty)),this},e}(uL),yL=function(t){function e(e,i,n,r){var o=t.call(this)||this;return o._axis=e,o._prevMin=i,o._prevMax=n,o.start(r),o}return Dx(e,t),e.prototype._doUpdate=function(t){if(this._axis.parent){var e=this._axis.model,i=this._prevMax-this._prevMin,n=(e.axisMax()-e.axisMin())/i;return t=n+(1-n)*t,e.setPrevRate(t),this._axis.invalidate(),!0}return!1},e.prototype._doStop=function(){this._axis.model.setPrevRate(NaN),this._axis=null},e}(yk),gL=function(t){function e(i){var n=t.call(this,i,e.TITLE_CLASS,"rct-axis-title-background")||this;return n.add(n._textView=new $P(i)),n._richText=new QP,n}return Dx(e,t),e.prototype._setBackgroundStyle=function(t){t.setStyleOrClass(this.model.options.backgroundStyle)},e.prototype._getBackOffset=function(){return-this.width/2},e.prototype._doMeasure=function(t,e,i,n,r){this._angle=e.getRotation();var o=e.options;o.writingMode&&this._textView.setStyle("writingMode",o.writingMode),o.textOrientation&&this._textView.setStyle("textOrientation",o.textOrientation),this._richText.setFormat(e.options.text),this._richText.build(this._textView,i,n,null,null);var s=tL(this._textView.getBBox());if(!e.axis._isHorz&&0!==this._angle){var a=s.width;s.width=s.height,s.height=a}return s},e.prototype._doLayout=function(t){var e=this._textView,i=e.getStyle("writing-mode"),n=i===qS||i===ZS;t?this.rotation=0:this.setRotation(0,(n?this.width:this.height)/2,this._angle);var r=this._margins.top+this._paddings.top,o=0;switch(this.textAlign()){case"left":this._textView.anchor=BP.START,n||(o-=this.width/2);break;case"right":this._textView.anchor=BP.END,n?r+=this.height:o+=this.width/2;break;default:this._textView.anchor=BP.MIDDLE,n&&(r+=this.height/2)}e.trans(o,r)},e.prototype.resizeByMeasured=function(){return 0===this._angle?this.resize(this.mw,this.mh):this.resize(this.mh,this.mw),this},e.prototype.layout=function(e){return t.prototype.layout.call(this,e),this._debugRect&&this._debugRect.setBounds(-this.width/2,0,this.width,this.height),this},e.TITLE_CLASS="rct-axis-title",e}(pL),vL=function(t){function e(e){var i=t.call(this,e,SL.TICK_CLASS)||this;return i.add(i._lineView=new OC(e)),i}return Dx(e,t),e.prototype._doLayout=function(t){this.model.axis._isHorz?this._lineView.setVLine(0,0,this.height):this._lineView.setHLine(0,0,this.width)},e}(hL),mL=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.index=-1,e.col=0,e.row=0,e.tickWidth=0,e}return Dx(e,t),e.prototype.setLabel=function(t,e,i,n,r){if(i){this._richText?this._richText._format!==i&&this._richText.setFormat(i):this._richText=new QP(i);var o=t.getIcon(e);this.setModel(this.doc,t,o&&t.getUrl(o),null),this._richText.build(this._text,n,r,t,t._domain),this._outline&&this._richText.build(this._outline,n,r,t,t._domain)}else this._richText&&(this._richText=null,this._text.text="")},e.prototype.rotatedWidth=function(){var t=this.rotation*kS,e=this.getBBox();return sS(eS(t)*e.height)+sS(tS(t)*e.width)},e.prototype.rotatedHeight=function(){var t=this.rotation*kS,e=this.getBBox();return sS(tS(t)*e.height)+sS(eS(t)*e.width)},e}(dL),bL=function(t){function e(e){var i=t.call(this,e,void 0)||this;return i.add(i._back=new RP(e,"rct-crosshair-flag")),i.add(i._text=new $P(e,"rct-crosshair-flag-text")),i}return Dx(e,t),e.prototype.setText=function(t,e){if(e!==this._text.text){this._text.text=e;var i=this._text.getBBox(),n=new eE,r=oS(t.flag.minWidth||0,i.width+8);n.rect(0,0,r,i.height+4),this._back.setPath(n.end()),this._text.trans(r/2,2)}},e}(LP),wL=function(t){function e(i){var n=t.call(this,i,"rct-axis-scrollbar")||this;return n._len=0,n._page=0,n._pos=0,n.add(n._trackView=new wk(i,e.TRACK_CLASS)),n.add(n._thumbView=new wk(i,e.THUMB_CLASS)),n}return Dx(e,t),e.isThumb=function(t){return t.classList.contains(e.THUMB_CLASS)},e.prototype.setScroll=function(t,e){if(this._reversed=e,t){var i=t.max-t.min,n=t.end-t.start;this._len=oS(0,i),this._page=rS(n,i),this._pos=rS(t.min+i-n,oS(0,t.start))}else this._len=0},e.prototype.getZoomPos=function(t){var e=this.model.axis._zoom,i=(this._vertical?this.height:this.width)-(this._vertical?this._thumbView.height:this._thumbView.width);return this.model.axis.options.reversed,(t=oS(0,rS(t,i)))*(e.max-e.min-(e.end-e.start))/i+e.min},e.prototype._doMeasure=function(t,e,i,n,r){return this.setStyleOrClass(e._style),(this._vertical=!e.axis._isHorz)?{width:e.getThickness()+e.getGap()+e.getGapFar(),height:n}:{width:i,height:e.getThickness()+e.getGap()+e.getGapFar()}},e.prototype._doLayout=function(t){var e=this.model,i=e.axis._zoom,n=this._szThumb=aS(e.getMinThumbSize(),32),r=this._len,o=0===this._len,s=this._page,a=o?0:this._pos-i.min,l=e.getGap(),u=l+e.getGapFar(),h=this.width,p=this.height;if(this._vertical){h-=u,this._trackView.setBounds(l,0,h,p),p-=n;var c=(o||s===r?p:p*s/r)+n;this._reversed,this._thumbView.setBounds(l+1,o?0:this.height-p*a/r-c,h-2,c)}else{p-=l+e.getGapFar(),this._trackView.setBounds(0,l,h,p),h-=n;var f=(o||s===r?h:h*s/r)+n;this._reversed,this._thumbView.setBounds(o?0:h*a/r,l+1,f,p-2)}},e.CLASS_NAME="rct-axis-scrollbar",e.TRACK_CLASS="rct-axis-scrollbar-track",e.THUMB_CLASS="rct-axis-scrollbar-thumb",e}(hL),xL=/\${label}.*?/g,SL=function(t){function e(i){var n=t.call(this,i,e.AXIS_CLASS)||this;return n._simpleMode=!1,n._markViews=[],n._edgeStart=0,n._marginStart=0,n._marginEnd=0,n._edgeEnd=0,n.add(n._lineView=new OC(i,e.LINE_CLASS)),n.add(n._titleView=new gL(i)),n.add(n._markContainer=new LP(i,"rct-axis-ticks")),n.add(n._labelContainer=new LP(i,"rct-axis-labels")),n._labelViews=new KE(n._labelContainer,mL,"rct-axis-label"),n}return Dx(e,t),e.prototype.$_checkScrollView=function(t,e,i,n,r){return e.visible&&!this.model._isBetween?(this._scrollView||this.add(this._scrollView=new wL(t)),this._scrollView.setVis(!0),this._scrollView.measure(t,e,n,r,1)[i]):(this._scrollView&&this._scrollView.setVis(!1),0)},e.prototype.checkHeight=function(t,e,i){var n=this.model,r=n.title,o=n.tick.visible?n.tick.options.length:0;return this.$_prepareLabels(n,e)&&(o+=this.$_measureLabelsHorz(n,e,!0)),this._titleView.setVis(r.visible)&&(o+=this._titleView.measure(t,r,e,i,1).height,o+=r.options.gap),o+=this.$_checkScrollView(t,n.scrollBar,"height",e,i)},e.prototype.checkWidth=function(t,e,i){var n=this.model,r=n.title,o=n.tick.visible?n.tick.options.length:0;return this.$_prepareLabels(n,e)&&(o+=this.$_measureLabelsVert(n,i,!0)),(this._titleView.visible=r.visible)&&(o+=this._titleView.measure(t,r,e,i,1).width,o+=r.options.gap),o+=this.$_checkScrollView(t,n.scrollBar,"width",e,i)},e.prototype.prepareGuides=function(t,e,i,n,r){var o=this;[n,r].forEach((function(n,r){if(n.setVis(!o._empty)){var s=o.model.guides.filter((function(t){return t.options.front==(1===r)&&t.canConstainedTo(e,i)}));n.setAll(t,s,!1)}}))},e.prototype.showCrosshair=function(t,e){var i,n=this.model,r=this._crosshairView;r||this.add(r=this._crosshairView=new bL(this.doc)),r.setVis(!0),r.setText(n.crosshair,e);var o=r.getBBox();n._isHorz?r.trans(t-o.width/2,n.tick.options.length):(i="opposite"===n._runPos?rS(0,this.width-o.width):oS(0,this.width-n.tick.options.length-o.width),r.trans(i,t-o.height/2))},e.prototype.setMargins=function(t,e,i,n){this._edgeStart=t,this._marginStart=e,this._marginEnd=i,this._edgeEnd=n},e.prototype.hideCrosshiar=function(){this._crosshairView&&this._crosshairView.setVis(!1)},e.prototype.scroll=function(t){},e.prototype.prepare=function(t){this.model=t,this._chartEmpty=t.chart.isEmpty(!0),this._empty=this._chartEmpty||t.isEmpty()},e.prototype.checkExtents=function(t){var e=this,i=this._prevModel,n=this._prevModel=this.model;if((!i||i===n)&&t){var r=this._prevMin,o=this._prevMax;this._prevMin=n.axisMin(),this._prevMax=n.axisMax(),(!isNaN(o)&&this._prevMax!==o||!isNaN(r)&&this._prevMin!==r)&&!n._zooming&&n.options.animatable&&new yL(this,r,o,(function(){e.invalidate()}))}},e.prototype.clean=function(){this._prevMax=this._prevMin=NaN,this._prevModel=null},e.prototype._doMeasure=function(t,i,n,r,o){var s,a=i.line,l=i.tick,u=i._isHorz,h=i._isBetween,p=this._titleView,c=0;return(this._lineView.visible=a.visible)?(this._lineView.setStyleOrClass(a._style),h&&(this._lineView2?this._lineView2.setVis(!0):this.insertChild(this._lineView2=new OC(t,e.LINE_CLASS),this._lineView),this._lineView.setStyleOrClass(a._style))):this._lineView2&&this._lineView2.setVis(!1),this._markLen=l.options.length||0,this._markLen>0&&(c+=i.tick.options.gap||0),c+=this._markLen,this.$_prepareTickMarks(t,i)&&this._markViews.forEach((function(e){return e.measure(t,i.tick,n,r,o)})),h&&(c*=2),this.$_prepareLabels(i,u?n:r)?c+=this._labelSize=u?this.$_measureLabelsHorz(i,n):this.$_measureLabelsVert(i,r):this._labelSize=0,this._simpleMode?p.setVis(!1):(p.visible&&(c+=u?p.mh:p.mw,c+=+i.title.options.gap||0),(null===(s=this._scrollView)||void 0===s?void 0:s.visible)&&(c+=u?this._scrollView.mh:this._scrollView.mw)),{width:u?n:c,height:u?c:r}},e.prototype._doLayout=function(){var t=this.model,e=t._isHorz,i=t._isOpposite,n=t._isBetween,r=t._ticks,o=t._markPoints,s=this._labelViews,a=this._markLen,l=this.width,u=this.height;this._lineView.visible&&(e?this._lineView.setHLine(i?u:0,0,l):this._lineView.setVLine(i?0:l,0,u),this._lineView2&&(e?this._lineView2.setHLine(u,0,l):this._lineView2.setVLine(0,0,u))),this._markContainer.visible&&(e?this._markViews.forEach((function(e,n){e.resize(1,a),e.layout().trans(t.prev(o[n]),i?u-a:0)})):this._markViews.forEach((function(e,n){e.resize(a,1),e.layout().trans(i?0:l-a,u-t.prev(o[n]))})));var h=a+(t.tick.options.gap||0);if(this._labelContainer.visible&&s.count>0&&(e?this.$_layoutLabelsHorz(s,r,n,i,l,u,h):this.$_layoutLabelsVert(s,r,n,i,l,u,h)),!this._simpleMode){var p=t.title.options,c=this._titleView,f=this._scrollView,_=this._labelSize,d=0,y=0;if(c.visible){var g=+p.offset||0,v=+p.gap||0;if(c.resizeByMeasured().layout(e),e){if(y+=i?0:h+_+v,t.options.reversed)switch(p.align){case"start":d=l-c.width/2-g;break;case"end":d=c.width/2+g;break;default:d=l/2-g}else switch(p.align){case"start":d=c.width/2+g;break;case"end":d=l-c.width/2-g;break;default:d=l/2+g}c.trans(d,y),y+=c.height}else{var m=0===c._angle?c.width:c.height;if(d=i?h+_+v+m/2:l-h-_-v-m/2,t.options.reversed)if(0===c._angle)switch(p.align){case"start":y=0+g;break;case"end":y=u-c.height-g;break;default:y=(u-c.height)/2+g}else switch(p.align){case"start":y=c.width/2-c.height/2+g;break;case"end":y=u-c.width/2-c.height/2-g;break;default:y=(u-c.height)/2+g}else if(0===c._angle)switch(p.align){case"start":y=u-c.height-g;break;case"end":y=0+g;break;default:y=(u-c.height)/2-g}else switch(p.align){case"start":y=u-c.width/2-c.height/2-g;break;case"end":y=c.width/2-c.height/2+g;break;default:y=(u-c.height)/2-g}c.trans(d,y)}}else y+=i?0:h+_;(null==f?void 0:f.visible)&&(e?(f.trans(0,y).resize(this.width,f.mh),f.setScroll(t._zoom,t.options.reversed)):(f.trans(0,0).resize(f.mw,this.height),f.setScroll(t._zoom,t.options.reversed)),f.layout())}},e.prototype.$_prepareTickMarks=function(t,e){var i=this._markContainer;if(i.visible=e.tick.visible){for(var n=e._markPoints.length,r=this._markViews;r.length<n;){var o=new vL(t);i.add(o),r.push(o)}for(;r.length>n;)r.pop().remove();return!0}},e.prototype._prepareLabel=function(t,e,i,n,r){if(r||t.value!==e.value){var o=i.getLabelText(e,n),s=e.label;if(t.value=e.value,t.internalClearStyleAndClass(),t.internalSetStyleOrClass(i._style),t.internalSetStyleOrClass(i.getLabelStyle(e,n)),null!=o)s&&o.match(xL)?t.setLabel(i,e,o.replace(xL,s),1e3,1e3):(i.prepareRich(o),i._paramTick=e,t.setModel(this.doc,i,null,null),i.buildSvg(t._text,t._outline,NaN,NaN,i,i._domain));else t.setLabel(i,e,s,1e3,1e3)}},e.prototype.$_prepareLabels=function(t,e){if(this._labelContainer.setVis(!this._chartEmpty&&t.labelsVisible())){var i=t._ticks.length;return this._labelContainer.setStyleOrClass(t.label._style),i}return 0},e.prototype.$_getRows=function(t){return 2},e.prototype.$_getStep=function(t){return 2},e.prototype.$_checkOverlappedHorz2=function(t,e,i,n,r,o,s,a){for(var l,u=t.label,h=oS(0,rS(n-1,u.options.startStep||0)),p=t._ticks,c=p.length,f=(n=oS(1,n))*(r=rS(oS(1,r),p.length)),_=o||0,d=sS(_)*kS,y=d<35*kS,g=!1,v=0,m=0;m<r;m++){for(var b=m*n+h;b<c;b+=f){for(var w=0,x=b;x<b+f&&x<c;x++)w+=t.getLabelLength(i,p[x].value);if(b+f<c){(l=e.pull(v++)).rotation=_,l.row=m,l.index=b,this._prepareLabel(l,p[b],u,c,a),l.setVis(!0);var S=w;if(0===_&&l.getBBox().width>=S){g=!0;break}if(y&&l.getBBox().width*tS(d)>=S){g=!0;break}if(0!==_&&l.getBBox().height>=S){g=!0;break}}}if(g)return!0;b-f<c&&((l=e.pull(v++)).row=m,l.rotation=_,l.index=b-f,this._prepareLabel(l,p[b-f],u,c,a),l.setVis(!0))}!s&&e.freeFrom(v)},e.prototype.$_applyStep=function(t,e,i){var n=t.label,r=oS(0,rS(i-1,n.options.startStep||0));e.forEach((function(t){return t.index=-1}));for(var o=r;o<e.length;o+=i)e[o].index=o;return e.forEach((function(t){return t.setVis(t.index>=0)})),e.filter((function(t){return t.visible}))},e.prototype.$_measureLabelsHorz=function(t,e,i){var n=this;void 0===i&&(i=!1);var r,o=t.label,s=o.options,a=+s.step|0,l=+s.rows|0,u=+s.rotation%360,h=this.$_checkOverlappedHorz2(t,this._labelViews,e,a,l,u,!1,i),p=this._labelViews._internalItems();if(this._labelRowPts=[0],h)if("none"===s.autoArrange)this._labelViews.prepare(t._ticks.length,(function(e,r,s){e.rotation=u,e.row=0,e.index=r,n._prepareLabel(e,t._ticks[r],o,s,i),e.setVis(!0)})),p=this.$_applyStep(t,p,a||1);else{switch(a=l=0,o.options.autoArrange){case"rows":l=this.$_getRows(p);break;case"step":a=this.$_getStep(p)}if(a>1)for(;this.$_checkOverlappedHorz2(t,this._labelViews,e,a,1,0,!1,i);)a++;else if(l>1){for(;t._ticks.length>l&&(p.forEach((function(t,e){t.row=e%l,t.index=e})),this.$_checkOverlappedHorz2(t,this._labelViews,e,1,l,0,!1,i));)l++;this._labelRowPts=[]}else if((isNaN(u)||Math.abs(Math.tan(u*kS))<1)&&(u=-45),this.$_checkOverlappedHorz2(t,this._labelViews,e,a,l,u,!1,i))for(a=2;;){if(!this.$_checkOverlappedHorz2(t,this._labelViews,e,a,l,u,!1,i)){this.$_checkOverlappedHorz2(t,this._labelViews,e,a,l,0,!0,i)&&p.forEach((function(t,e){t.rotation=u}));break}a++}}else;if(p.length>0){if(l>1){for(var c=!isNaN(u)&&0!=u,f=this._labelRowPts,_=0;_<l;_++)f.push(0);p.forEach((function(t){f[t.row]=oS(f[t.row],c?t.rotatedHeight():t.getBBox().height)})),f.unshift(0);for(_=2;_<f.length;_++)f[_]+=f[_-1];return f[f.length-1]}if(isNaN(u)||0==u){r=p[0].getBBox().height;for(_=1;_<p.length;_++)r=oS(r,p[_].getBBox().height)}else{r=p[0].rotatedHeight();for(var _=1;_<p.length;_++)r=oS(r,p[_].rotatedHeight())}return r}return 0},e.prototype.$_checkOverlappedVert=function(t,e,i,n){var r=e.length,o=oS(1,n);e.forEach((function(t){return t.rotation=0}));for(var s=0;s<r-1;s+=o){for(var a=0,l=s;l<s+o&&l<r-1;l++)a+=t.getLabelLength(i,e[s].value);if(e[s].getBBox().height>=a)return!0}},e.prototype.$_checkOverlappedVert2=function(t,e,i,n,r){for(var o,s=t.label,a=t._ticks,l=a.length,u=oS(1,n),h=0,p=0;h<l;h+=u){for(var c=0,f=h;f<h+u&&f<l;f++)c+=t.getLabelLength(i,a[f].value);if(h+u<l&&((o=e.pull(p++)).rotation=0,o.index=h,this._prepareLabel(o,a[h],s,l,r),o.setVis(!0),o.getBBox().height>=c))return!0}h-u<l&&((o=e.pull(p++)).rotation=0,o.index=h-u,this._prepareLabel(o,a[h-u],s,l,r),o.setVis(!0)),e.freeFrom(p)},e.prototype.$_measureLabelsVert=function(t,e,i){var n=this;void 0===i&&(i=!1);var r=t.label,o=oS(1,+r.options.step|0),s=this.$_checkOverlappedVert2(t,this._labelViews,e,o,i),a=this._labelViews._internalItems();if(s)if("none"===r.options.autoArrange)this._labelViews.prepare(t._ticks.length,(function(e,o,s){e.rotation=0,e.index=o,n._prepareLabel(e,t._ticks[o],r,s,i),e.setVis(!0)})),a=this.$_applyStep(t,a,o||1);else for(;this.$_checkOverlappedVert2(t,this._labelViews,e,++o,i););else;if(a.length>0){for(var l=a[0].getBBox().width,u=1;u<a.length;u++)l=oS(l,a[u].getBBox().width);return l}return 0},e.prototype.$_layoutLabelsHorz=function(t,e,i,n,r,o,s){var a,l,u=this.model,h=u.label,p=u.options.reversed,c=this._labelContainer.textAlign()||"center",f=this._labelRowPts,_=t.get(0).rotation,d=_*kS,y=_<-15&&_>=-90||_>15&&_<=90,g=t.count;t.freeHiddens(),t.forEach((function(t,i){t.setContrast(null).layout(c);var r=t.getBBox();a=u.prev(e[t.index].pos),l=n?o-s-r.height-f[t.row]:s+f[t.row],_<-15&&_>=-90?n?(a-=r.width,l-=eS(d)*r.height/2,t.setRotation(r.width,r.height/2,-_)):(a-=r.width,l+=eS(d)*r.height/2,t.setRotation(r.width,r.height/2,_)):_>15&&_<=90?n?(l+=eS(d)*r.height/2,t.setRotation(0,r.height/2,-_)):(l-=eS(d)*r.height/2,t.setRotation(0,r.height/2,_)):(a-=r.width/2,t.setRotation(r.width/2,0,n?-_:_)),t.trans(a,l)})),!y&&g>1&&(function(e,i,n){var r=!0,o=i.rotatedWidth(),s=i.tx;if(s<-e._marginStart-e._edgeStart)if("pull"===(p?h.options.lastOverflow:h.options.firstOverflow))if(s=-e._marginStart-e._edgeStart+2,t.count>0){var a=n.tx;s+o+(+h.options.overflowGap||12)>a&&(r=!1)}else r=!1;else r=!1;r?i.transX(s):i.setVis(!1)}(this,t.get(p?g-1:0),t.get(p?g-2:1)),function(t,e,i){var n=!0,o=e.tx,s=e.rotatedWidth();if(o+s>(r+=t._marginEnd+t._edgeEnd)){var a=h.options;"pull"===(p?a.firstOverflow:a.lastOverflow)?(o=r-s,i?o<i.tx+i.rotatedWidth()+(+a.overflowGap||12)&&(n=!1):n=!1):n=!1}n?e.transX(o):e.setVis(!1)}(this,t.get(p?0:g-1),t.get(p?1:g-2)))},e.prototype.$_layoutLabelsVert=function(t,e,i,n,r,o,s){var a=this.model,l=this._labelContainer.textAlign()||(n?"left":i?"center":"right"),u=n?s:r-s;t.freeHiddens(),t.forEach((function(t,s){t.setContrast(null).layout(l);var h=t.getBBox(),p=n?u:i?(r-h.width)/2:u-h.width;t.trans(p,o-a.prev(e[t.index].pos)-h.height/2)}))},e.AXIS_CLASS="rct-axis",e.LINE_CLASS="rct-axis-line",e.TICK_CLASS="rct-axis-tick",e}(hL),PL=function(t){function e(i,n,r){var o=t.call(this,i,e.STYLE)||this;return o.add(o._back=new wk(i,e.BACK_STYLE)),o.add(o._textView=new $P(i)),r&&o.dom.classList.add(r),n&&o.setText(n),o}return Dx(e,t),e.prototype.setText=function(t){this._textView.text=t},e.prototype.layout=function(t){this.setStyleOrClass(t),this._textView.layoutText();var e=getComputedStyle(this._back.dom),i=(new lL).applyPadding(e),n=this._textView.getBBox();this._back.rect={x:0,y:0,width:n.width+i.left+i.right,height:n.height+i.top+i.bottom},this._textView.trans(n.width/2+i.left,i.top)},e.prototype.click=function(){return!1},e.prototype.setVis=function(e){if(t.prototype.setVis.call(this,e))return e&&this._textView.stain(),!0},e.STYLE="rct-button",e.BACK_STYLE="rct-button-background",e}(LP),VL=function(t){function e(e,i){return t.call(this,e,i,"circle")||this}return Dx(e,t),e.prototype.setCircle=function(t,e,i){this.setAttrs({cx:t,cy:e,r:i})},e}(LP);!function(t){function e(e,i){var n=t.call(this,e,i)||this;return n.setFill("none"),n}Dx(e,t),e.prototype.resetStyles=function(e){var i=t.prototype.resetStyles.call(this,e);return this.setFill("none"),i}}(VL);var kL=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.setArc=function(t,e,i,n,r,o){this.setPath(bk.arc(t,e,i,i,n,close?n+r:n-r,o))},e}(RP),AL=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.setPolyline=function(t){this.setPath(bk.lines.apply(bk,$x([],jx(t),!1)))},e}(kL),CL=function(t){function e(e,i,n){void 0===i&&(i=xS),void 0===n&&(n=xS);var r=t.call(this,e,i)||this;return r.cx=0,r.cy=0,r.rx=0,r.ry=0,r.innerRadius=0,r.start=0,r.angle=0,r.clockwise=!0,r.rate=1,n&&r._assignShape(n,!1),r.setAttr("role","img"),r}return Dx(e,t),e.create=function(t,i,n,r,o,s,a,l,u){return void 0===u&&(u=!0),new e(t,i,{cx:n,cy:r,rx:o,ry:s,innerRadius:0,start:a,angle:l,clockwise:u})},e.createInner=function(t,i,n,r,o,s,a,l,u,h){return void 0===i&&(i=""),void 0===h&&(h=!0),new e(t,i,{cx:n,cy:r,rx:o,ry:s,innerRadius:a,start:l,angle:u,clockwise:h})},e.prototype.equals=function(t){return t.cx===this.cx&&t.cy===this.cy&&t.rx===this.rx&&t.ry===this.ry&&t.innerRadius===this.innerRadius&&t.start===this.start&&t.angle===this.angle&&t.clockwise===this.clockwise},e.prototype.setSector=function(t){this._assignShape(t,!1)},e.prototype.setSectorEx=function(t,e){this._assignShape(t,e)},e.prototype._getShape=function(){return{cx:this.cx,cy:this.cy,rx:this.rx,ry:this.ry,innerRadius:this.innerRadius,start:this.start,angle:this.angle,clockwise:this.clockwise}},e.prototype._assignShape=function(t,e){this.cx=t.cx,this.cy=t.cy,this.rx=t.rx,this.ry=t.ry,this.innerRadius=t.innerRadius,this.start=t.start,this.angle=t.angle,this.clockwise=t.clockwise,this.setPath(e?this.$_renderArc():this.$_renderSector())},e.prototype.$_renderSector=function(){return bk.sector(this.cx,this.cy,this.rx*this.rate,this.ry*this.rate,this.innerRadius||0,this.start,this.clockwise?this.start+this.angle:this.start-this.angle,this.clockwise)},e.prototype.$_renderArc=function(){return bk.arc(this.cx,this.cy,this.rx*this.rate,this.ry*this.rate,this.start,this.clockwise?this.start+this.angle:this.start-this.angle,this.clockwise)},e}(RP),EL={},LL=function(t){function e(i,n){return t.call(this,i,e.CLASS_NAME+" "+n,"rct-annotation-background")||this}return Dx(e,t),e.register=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];t.forEach((function(t){EL[t[0].type]=t[1]}))},e.prototype.update=function(t,e,i){this.measure(this.doc,this.model,e,i,0),this._layoutView(this.chart().isInverted(),t,0,0,e,i)},e.prototype._layoutView=function(t,e,i,n,r,o){this.resizeByMeasured(),this.layout(this._posByAnchor(e)||this.model.getPosition(this.chart().isInverted(),i,n,r,o,this.width,this.height))},e.prototype._posByAnchor=function(t){var e=this.model,i=e._anchorObj;if(i){var n=t.getAnnotationAnchor(i);if(n){var r=e.getOffset(this.width,this.height),o=n.width,s=n.height,a=n.tx,l=n.ty;switch(this.options.align){case"left":a-=this.width+r.x;break;case"right":a+=o+r.x;break;default:a+=(o-this.width)/2+r.x}switch(this.options.verticalAlign){case"middle":l+=(s-this.height)/2+r.y;break;case"bottom":l+=s+r.y;break;default:l-=this.height+r.y}return{x:a,y:l}}}},e.prototype._marginable=function(){return!1},e.prototype._resetBackBounds=function(){return!1},e.prototype._setBackgroundStyle=function(t){t.setStyleOrClass(this.model.options.backgroundStyle)},e.prototype._doLayout=function(t){var e=this.model.options.rotation;this._background.setBounds(t.x,t.y,this.width,this.height),isNaN(e)||0===e?this.rotation=0:this.setRotation(this.width/2,this.height/2,e)},e.prototype.setRotation=function(t,e,i){return this._background.setRotation(t,e,i),this._setRotation(t,e,i),this},e.prototype._setRotation=function(t,e,i){},e.CLASS_NAME="rct-annotation",e}(pL),NL={},OL=function(t){function e(i,n){var r=t.call(this,i,n)||this;return r.dom.classList.add(r._defaultCalss()),r.add(r._paneElement=new wk(i,e.PANE_CLASS)),r.add(r._contentContainer=new NP(i,null)),r._doInitContents(i,r._contentContainer),r}return Dx(e,t),e.register=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];t.forEach((function(t){NL[t[0].type]=t[1]}))},e.prototype._defaultCalss=function(){return e.GAUGE_CLASS},e.prototype.clicked=function(t){},e.prototype.prepareGauge=function(t,e){this._prepareGauge(t,e)},e.prototype.getPosition=function(t,e){var i=this.model,n=i.getLeft(t),r=i.getTop(e);return isNaN(n)&&(n=i.getRight(t)-this.width,isNaN(n)&&(n=(t-this.width)/2)),isNaN(r)&&(r=i.getBottom(e)-this.height,isNaN(r)&&(r=(e-this.height)/2)),{x:n,y:r}},e.prototype._prepareStyleOrClass=function(t){this._paneElement.setStyleOrClass(t.options.backgroundStyle)},e.prototype._doMeasure=function(t,e,i,n,r){return e.getSize(i,n)},e.prototype._doLayout=function(){var t=this.width,e=this.height;this._paneElement.resizeRect(t,e);var i=Kx(PP.getPadding(this.dom));t-=i.left+i.right,e-=i.top+i.bottom,this._renderGauge(t,e),this._contentContainer.trans(i.left,i.top)},e.prototype._getGroupView=function(){for(var t=this.parent;t;){if(t instanceof jL)return t;t=t.parent}},e.GAUGE_CLASS="rct-gauge",e.PANE_CLASS="rct-gauge-pane",e}(fL),ML=function(t){function e(e,i,n){var r=t.call(this)||this;return r.view=e,r.from=i,r.to=n,r}return Dx(e,t),e.prototype._doUpdate=function(t){return this.view._runValue=this.from+(this.to-this.from)*t,this.view._renderValue(),!0},e}(yk),TL=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.valueOf=function(t,e,i){var n=t.getParam(e);return qx(n)?oP.getFormatter(i||t.label.numberFormat).toStr(n):n},e._prevValue=0,e}return Dx(e,t),e.prototype._prepareStyleOrClass=function(e){t.prototype._prepareStyleOrClass.call(this,e),this._backgroundView().setStyleOrClass(e._style)},e.prototype._doLayout=function(){this._ani&&(this._ani.stop(),this._ani=null,this._prevValue=0),t.prototype._doLayout.call(this),this._checkValueAnimation()},e.prototype._getValue=function(t){return oS(t.options.minValue,rS(t.options.maxValue,aS(this._runValue,t.options.value)))},e.prototype._checkValueAnimation=function(){var t=this,e=this.model;this._animatable&&e.options.animatable&&e.options.value!==this._prevValue&&(this._ani=new ML(this,this._prevValue,e.options.value).start((function(){return t._runValue=NaN})),this._prevValue=e.options.value)},e}(OL),RL=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e}(dL),BL=function(t){function e(e){var i=t.call(this,e,"rct-gauge-scale")||this;return i.add(i._line=i._createLine(e,"rct-gauge-scale-line")),i.add(i._tickContainer=new NP(e,"rct-gauge-scale-ticks")),i._ticks=new KE(i._tickContainer,OC),i.add(i._labelContainer=new NP(e,"rct-gauge-scale-tick-labels")),i._labels=new KE(i._labelContainer,RL),i}return Dx(e,t),e}(hL),DL=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._createLine=function(t,e){return new OC(t,e)},e.prototype._doMeasure=function(t,e,i,n,r){var o=e._reversed,s=e._vertical,a=e.label,l=e.tick,u=e._steps,h=u.length,p=s?e.options.gap:i,c=s?n:e.options.gap;if(this._tickContainer.setVis(l.visible)&&(this._tickContainer.setStyleOrClass(l._style),this._ticks.prepare(h)),s?p+=l.options.length:c+=l.options.length,this._labelContainer.setVis(a.visible)&&(this._labelContainer.setStyleOrClass(a._style),this._labels.prepare(h,(function(e){e.setModel(t,a,null,null)})),h>0))if(s){var f=0;this._labels.forEach((function(t,e){t.setText(a.getText(u[o?e:h-1-e])),f=oS(t.getBBox().width)})),p+=f}else{var _=0;this._labels.forEach((function(t,e){t.setText(a.getText(u[o?h-1-e:e])),_=oS(t.getBBox().height)})),c+=_}return{width:p,height:c}},e.prototype._doLayout=function(){var t=this.model;t._vertical?this.$_layoutVert(t,this.width,this.height):this.$_layoutHorz(t,this.width,this.height)},e.prototype.$_layoutHorz=function(t,e,i){var n=t.options,r=this._line,o=t.tick,s=t._steps;s.length;var a,l="opposite"===n.position,u=l?-o.options.length:o.options.length,h=l?i-n.gap:n.gap;if(r.setVis(t.line.visible)&&(r.setStyleOrClass(t.line._style),r.setHLine(h,0,e)),this._tickContainer.setVis(o.visible)&&this._ticks.forEach((function(i,n){a=t.getRate(s[n])*e,i.setVLine(a,h,h+u)})),this._labelContainer.visible){var p=this._labelContainer.textAlign()||"center",c=Number.MIN_SAFE_INTEGER;h=l?0:h+u,this._labels.forEach((function(i,n){i.layout(p);var r=i.getBBox();a=t.getRate(s[n])*e,i.setVis(a-r.width/2>c)&&(i.trans(a-r.width/2,h),c=a+r.width/2)}))}},e.prototype.$_layoutVert=function(t,e,i){var n=t.options,r=this._line,o=t.tick,s=t._steps;this.height,s.length;var a,l="opposite"===n.position,u=l?o.options.length:-o.options.length,h=l?n.gap:e-n.gap;if(r.setVis(t.line.visible)&&(r.setStyleOrClass(t.line._style),r.setVLine(h,0,i)),this._tickContainer.setVis(o.visible)&&this._ticks.forEach((function(e,n){a=t.getRate(s[n])*i,e.setHLine(a,h,h+u)})),this._labelContainer.visible){var p=this._labelContainer.textAlign()||(l?"left":"right");h=l?h+u:e-n.gap+u,this._labels.forEach((function(e,n){e.layout(p);var r=e.getBBox(),o=l?h:h-r.width;a=t.getRate(s[n])*i,e.trans(o,a-r.height/2)}))}},e}(BL),FL=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._measureLabelSize=function(t,e,i){var n=t.label,r=this.labelView();return n.setText(t.getLabel(n,t.options.value)),r.text=n.options.text,n.buildSvg(r,null,e,i,t,n._domain),tL(r.getBBox())},e.prototype._renderGauge=function(t,e){var i=this.model,n=aS(this._runValue,i.options.value);this._measureGauge(i,i.label,this.labelView(),n,i.isVertical(),t,e),this._renderValue()},e.prototype._renderValue=function(){var t=this.model,e=t.label,i=t.scale,n=this.labelView(),r=aS(this._runValue,t.options.value),o=Kx({},this._rBand);if(this._renderScale(o),this.background().setRect(o),o.height>0&&this._renderBand(t,o,r),"top"!==e._runPos&&"bottom"!==e._runPos||(this._rLabel.height=o.height),this._renderLabel(t,e,n,r),!this._vertical&&("left"===e._runPos||"right"===e._runPos)&&i.visible&&"opposite"===i.options.position){var s=n.getBBox();n.ty+s.height>this.height&&n.transY(oS(0,this.height-s.height))}},e.prototype._measureGauge=function(t,e,i,n,r,o,s){var a=this._rBand=QE(0,0,o,s);if(this._vertical=t._group instanceof JA?t._group.options.vertical:r,e.visible){var l=e._runPos=uS(e.options.position,this._vertical?"top":"left"),u=e._runVert="top"===l||"bottom"===l,h=t._group?t._group.itemLabel.options.gap:e._runGap=e.getGap(u?s:o),p=u?o:e.getWidth(o),c=u?e.getHeight(s):s,f=u?o:e.getMaxWidth(o),_=u?e.getMaxHeight(s):s,d=this._rLabel=QE(0,0,o,s);i.setStyleOrClass(e._style),e.setText(t.getLabel(e,e.options.animatable?n:t.options.value)),i.text=e.options.text,e.buildSvg(i,null,aS(p,f),aS(c,_),t,e._domain);var y=i.getBBox();switch(u?(d.height=aS(c,y.height),a.height=oS(0,a.height-(d.height+h))):(d.width=aS(p,y.width),this._wLabel=t._group?t._group._labelWidth:d.width,a.width=oS(0,a.width-(this._wLabel+h))),l){case"top":a.y=d.height+h;break;case"bottom":d.y=a.height+h;break;case"right":d.x=a.width+h;break;default:a.x=this._wLabel+h}}else this._rLabel=null},e.prototype._renderLabel=function(t,e,i,n){if(i.visible){var r=this._rLabel,o=i.getBBox(),s=r.x,a=r.y;switch(e._runPos){case"top":case"bottom":s+=r.width/2;break;case"right":s=this.width-r.width,i.anchor=BP.START,a+=oS(0,(r.height-o.height)/2);break;default:i.anchor=BP.END,s+=this._wLabel,a+=oS(0,(r.height-o.height)/2)}i.trans(s,a)}},e.prototype._renderScale=function(t){var e,i,n=this.model,r=n.label,o=n.scale,s=this.scaleView(),a=this._vertical?t.height:t.width;if(o._vertical=this._vertical,o._reversed=n.options.reversed,isNaN(this._runValue)&&o.buildSteps(a,n.options.value),s.setVis(n.scaleVisible())){var l=s.measure(this.doc,o,t.width,t.height,1);this._vertical?(e=0,i=t.y,t.width=oS(0,t.width-l.width),"opposite"===o.options.position?e=t.x+t.width:(r._runVert||(e=t.x),t.x+=l.width)):(e=t.x,t.height=oS(0,t.height-l.height),"opposite"===o.options.position?r._runVert?(i=t.y,t.y+=l.height):(this._rLabel.y=t.y+=l.height,i=t.y-l.height):i=t.y+t.height),s.resizeByMeasured().layout().trans(e,i)}},e}(TL),IL=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e}(TL),jL=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._defaultCalss=function(){return e.GAUGE_GROUP_CLASS},e.prototype._doInitContents=function(t,e){e.add(this._gaugeContainer=new NP(t,"rct-gauge-group-container")),this._gaugeViews=this._createPool(this._gaugeContainer)},e.prototype._setChartOptions=function(e,i,n){t.prototype._setChartOptions.call(this,e,i,n),this._gaugeViews.forEach((function(t){return t._setChartOptions(e,i,n)}))},e.prototype._prepareGauge=function(t,e){this._gaugeViews.prepare(e.count()),this._doPrepareGauges(t,e,this._gaugeViews)},e.prototype._renderGauge=function(t,e){this._doRenderGauges(this._gaugeContainer,this._gaugeViews,t,e)},e.prototype._doPrepareGauges=function(t,e,i){i.forEach((function(i,n){i.prepareGauge(t,e.getVisible(n))}))},e.GAUGE_GROUP_CLASS="rct-gauge-group",e}(OL),$L=function(){function t(t,e){var i=this._createAnimation(t,e);window.Animation&&i instanceof Animation&&(i.addEventListener("finish",(function(){t._animationFinished(i)})),t._animationStarted(i))}return t.reveal=function(t,e){new HL(t,e)},t.grow=function(t,e){new WL(t,e)},t.spread=function(t,e){new YL(t,e)},t.fadeIn=function(t){new zL(t,{prop:"opacity",start:"0",end:"1"})},t}(),zL=function(t){function e(e,i){return t.call(this,e,i)||this}return Dx(e,t),e.prototype._createAnimation=function(t,e){var i={},n={};return i[e.prop]=e.start,n[e.prop]=e.end,t.dom.animate([i,n],{duration:yk.DURATION,fill:"none"})},e}($L),HL=function(t){function e(e,i){return t.call(this,e,i)||this}return Dx(e,t),e.prototype._createAnimation=function(t,e){var i,n=this.$_clipRect(t);switch(e&&e.from){case"top":i=this.$_top(t,n,e);break;case"bottom":i=this.$_bottom(t,n,e);break;case"right":i=this.$_right(t,n,e);break;default:i=this.$_left(t,n,e)}return null==i||i.addEventListener("finish",(function(){n.dom.remove()})),i},e.prototype.$_aniOptions=function(t){return{duration:yk.DURATION,fill:"none"}},e.prototype.$_clipRect=function(t){var e;if(t.model.needClip(!1))e=t.clipRect(.1*-t.width,.1*-t.height,1.2*t.width,1.2*t.height);else{var i=t.control;e=t.model.chart.isInverted()?t.clipRect(-i.width(),.1*-t.height,2*i.width(),1.2*t.height):t.clipRect(.1*-t.width,-i.height(),1.2*t.width,2*i.height())}return e},e.prototype.$_left=function(t,e,i){return e.dom.firstElementChild.animate([{width:"0"},{width:MS(t.width)}],this.$_aniOptions(i))},e.prototype.$_right=function(t,e,i){return e.dom.firstElementChild.animate([{transform:"translateX(".concat(t.width,"px)")},{transform:""}],this.$_aniOptions(i))},e.prototype.$_top=function(t,e,i){return e.dom.firstElementChild.animate([{height:"0"},{height:MS(t.height)}],this.$_aniOptions(i))},e.prototype.$_bottom=function(t,e,i){return e.dom.firstElementChild.animate([{transform:"translateY(".concat(t.height,"px)")},{transform:""}],this.$_aniOptions(i))},e}($L),GL=function(t){function e(e,i){var n=t.call(this)||this;return n._series=e,n.endHandler=i,n.start(),n}return Dx(e,t),e.prototype._canUpdate=function(){return this._series.parent instanceof LP},e.prototype._stop=function(){t.prototype._stop.call(this),this._series=null},e}(yk),WL=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._doUpdate=function(t){return this._series.setGrowRate(t),!0},e.prototype._doStop=function(){this._series.setGrowRate(NaN)},e}(GL),YL=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._doUpdate=function(t){return this._series.setPosRate(t),!0},e.prototype._doStop=function(){this._series.setPosRate(NaN)},e}(GL),XL=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.duration=500,e}return Dx(e,t),e.prototype._doUpdate=function(t){return this._series.setPrevRate(t),!0},e.prototype._doStop=function(){this._series.setPrevRate(NaN)},e}(GL),UL=function(t){function e(e,i,n,r){var o=t.call(this)||this;return o.duration=n?200:100,o._sv=e,o._focused=n,o._marker=i,n||(o._marker.setBoolData(nN.DATA_UNFOCUS,!0),o._marker.saveStyles(),e.setHoverStyle(o._marker)),o.start(r),o}return Dx(e,t),e.prototype._doStart=function(){this._marker.beginHover(this._sv,this._focused)},e.prototype._doUpdate=function(t){return!!this._marker.parent&&(this._marker.setHoverRate(this._sv,this._focused,t),!0)},e.prototype._doStop=function(){this._marker.setBoolData(nN.DATA_UNFOCUS,!1),!this._focused&&this._marker.restoreStyles(),this._marker.setHoverRate(this._sv,this._focused,NaN),this._marker=null},e}(yk),qL=function(t){function e(e){return t.call(this,e,"rct-point-label")||this}return Dx(e,t),e}(dL),ZL=function(t){function e(e){var i=t.call(this,e,"rct-point-labels")||this;return i._labels=[new KE(i,qL),new KE(i,qL)],i._maps=[],i.ignorePointer(),i}return Dx(e,t),e.prototype.clear=function(){this._labels[0].prepare(0),this._labels[1].prepare(0)},e.prototype.getWidth=function(t){var e=0;return this._labels[t].forEach((function(t){return e=oS(e,t.getBBox().width)})),e},e.prototype.prepareLabel=function(t,e,i,n,r,o){var s=r.getPointText(n,i,o.options.text),a=o._style;e.point=n,e.setModel(t,o,null,null),e._text.internalClearStyleAndClass(),e._text.internalSetStyleOrClass(a),e._text.internalSetStyleOrClass(r.getPointLabelStyle(n)),s?(o.prepareRich(s),o.buildSvg(e._text,e._outline,NaN,NaN,o,o.getTextDomain(n))):e.setText(o.getText(o.getValue(n,i)))},e.prototype.prepare=function(t,e){var i=this,n=e.model,r=n.pointLabel;if(r.visible){this.setVis(!0);var o=n.pointLabelCount(),s=this._labels,a=n._getLabeledPoints(),l=this._maps,u=r._style;s[0].prepare(a.length),l[0]={},s[1].prepare(o>1?a.length:0),l[1]={},a.forEach((function(o,a){for(var u=0;u<o.labelCount();u++){var h=s[u].get(a);h.setVis(e.isPointLabelVisible(o))&&(i.prepareLabel(t,h,u,o,n,r),l[u][o.pid]=h)}})),this.setStyleOrClass(u),this._textAlign=this.textAlign()||"center"}else this.clear(),this.setVis(!1)},e.prototype.get=function(t,e){var i=this._maps[e];return i&&i[t.pid]},e.prototype.removePoint=function(t,e){for(var i=0;i<2;i++){var n=this.get(t,i);if(n)return void this._labels[i].removeLater(n,e)}},e.prototype.$_checkIntersects=function(t){if(t.length>1)for(var e=t.length-1;e>0;e--){var i=t[e].inflateBBox(-1,-1),n=t[e-1].inflateBBox(-1,-1);if(aL(i,n))return t}},e.prototype.dedupe=function(t,e,i){var n=0,r=t[n];if(i===kk)for(var o=1;o<t.length;o++){var s=t[o],a=r.inflateBBox(-1,-1),l=s.inflateBBox(-1,-1),u=Object.assign(a,{rotation:r.rotation}),h=Object.assign(l,{rotation:s.rotation});if(sL(u,h)?(r.point.yValue<t[o].point.yValue?(e.get(r.point).setVis(!1),r.setVis(!1),t.splice(n,1),r=s,n=o):(e.get(s.point).setVis(!1),s.setVis(!1),t.splice(o,1)),--o):(r=s,n=o),o===t.length-1){var p=Object.assign(t[0].inflateBBox(-1,-1),{rotation:t[0].rotation}),c=Object.assign(r.inflateBBox(-1,-1),{rotation:r.rotation});sL(p,c)&&(e.get(r.point).setVis(!1),r.setVis(!1),t.splice(n,1),t[0].point.yValue<r.point.yValue?(e.get(t[0].point).setVis(!1),t[0].setVis(!1),t.splice(0,1)):(e.get(r.point).setVis(!1),r.setVis(!1),t.splice(n,1)))}}else for(o=1;o<t.length;o++){s=t[o],a=r.inflateBBox(-1,-1),l=s.inflateBBox(-1,-1),u=Object.assign(a,{rotation:r.rotation}),h=Object.assign(l,{rotation:s.rotation});if(sL(u,h)?(e.get(s.point).setVis(!1),s.setVis(!1),t.splice(o,1),--o):(r=s,n=o),o===t.length-1){p=Object.assign(t[0].inflateBBox(-1,-1),{rotation:t[0].rotation}),c=Object.assign(r.inflateBBox(-1,-1),{rotation:r.rotation});sL(p,c)&&(e.get(r.point).setVis(!1),r.setVis(!1),t.splice(n,1))}}},e.prototype.arrangeVertical=function(t,e,i,n,r,o){var s=t.length,a=this.control.chartView().bodyView();if(s<2)return 0;var l=s/2|0,u=0,h=0,p=0;for(t=t.sort((function(t,e){return t.ty-e.ty}));p<l;){var c=t[p],f=t[p+1],_=c.inflateBBox(0,-1);if((g=(y=f.inflateBBox(0,-1)).y-(_.y+_.height))<0){for(var d=p;d>=0;d--)t[d].shiftY(g);u-=g}p++}for(p=s-1;p>l;){var y,g;c=t[p],f=t[p-1],_=c.inflateBBox(0,-1);if((g=(y=f.inflateBBox(0,-1)).y+y.height-_.y)>0){for(d=p;d<s;d++)t[d].shiftY(g);h+=g}p--}if(n){for(var v=void 0,m=0;m<s;m++)m<l?(v=t[m+1].ty-t[m].tbottom)>0&&t[m].shiftY(Math.min(t[m].y-t[m].ty,v)):(v=t[m].ty-t[m-1].tbottom)>0&&t[m].shiftY(-Math.min(t[m].ty-t[m].y,v));for(var b=[],w=0;w<s-1;w++)(v=t[w+1].ty-t[w].tbottom)>0&&(b[w]=v);if(u>0)for(var x=0;x<b.length&&!(t[0].ty>=t[0].y);x++){if(b[x]>0)for(d=0;d<=x&&(t[d].shiftY(b[x]),!(t[d+1].ty>=t[d].tbottom));d++);b[x]=void 0}if(h>0)for(var S=b.length-1;S>=0&&!(t[s-1].ty<=t[s-1].y);S--)if(b[S]>0){for(d=s-1;d>S&&(t[d].shiftY(-b[S]),!(t[d-1].tbottom<=t[d].ty));d--);b[S]=void 0}u=t[0].y-t[0].ty,h=t[s-1].ty-t[s-1].y,u+h>0&&t.forEach((function(t){return t.shiftY((u-h)/2)}))}if(o===Ak)for(var P=0;P<t.length;P++){var V=t[P];(V.ty<0||V.ty+V.getBBox().height>a.height)&&(e.get(V.point).setVis(!1),V.setVis(!1))}return 1},e}(NP),KL=function(t){function e(e){var i=t.call(this,e)||this;return i.add(i._line=new RP(e)),i}return Dx(e,t),e.prototype.setLine=function(t){this._line.setPath(t)},e}(uL),JL=function(t){function e(e){var i=t.call(this,e,"rct-point-label-lines")||this;return i._lines=new KE(i,KL),i}return Dx(e,t),e.prototype.prepare=function(t){var e=this._lines,i=t.getPoints(),n=t.pointLabel,r=this._map={};n.visible?e.prepare(i.count).forEach((function(t,e){var n=i.get(e);t.visible=n.visible,r[n.pid]=t})):e.prepare(0)},e.prototype.get=function(t){return this._map[t.pid]},e}(uL),QL=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.inverted=!1,e}return Dx(e,t),e.prototype.invert=function(t,e){return t!==this.inverted&&((this.inverted=t)?this.setAttr("transform","translate(0,".concat(e,") rotate(90) scale(-1,1)")):this.setAttr("transform","")),this.inverted},e}(NP),tN={},eN="rct-point-hover",iN="rct-point-unhover",nN=function(t){function e(e,i){var n=t.call(this,e,"rct-series "+i)||this;return n._simpleMode=!1,n._growRate=NaN,n._posRate=NaN,n._prevRate=NaN,n._animations=[],n._hoverAnis=[],n._hoverPts=[],n.add(n._pointContainer=new QL(e,"rct-series-points")),n._labelContainer=new ZL(e),n}return Dx(e,t),e.register=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];t.forEach((function(t){tN[t[0].type]=t[1]}))},e.prototype.clipInvertable=function(){return!0},e.prototype.getClipContainer=function(){return this._pointContainer},e.prototype.getClipContainer2=function(){return null},e.prototype.defaultAnimation=function(){return"reveal"},e.prototype.setGrowRate=function(t){isNaN(t)&&isNaN(this._growRate)||t===this._growRate||(this._growRate=t,isNaN(t)&&isNaN(this._posRate)&&isNaN(this._prevRate)?this.invalidate():this._doViewRateChanged(t))},e.prototype.setPosRate=function(t){isNaN(t)&&isNaN(this._posRate)||t===this._posRate||(this._posRate=t,isNaN(t)&&isNaN(this._growRate)&&isNaN(this._prevRate)?this.invalidate():this._doPosRateChanged(t))},e.prototype.setPrevRate=function(t){isNaN(t)&&isNaN(this._prevRate)||t===this._prevRate||(this._prevRate=t,isNaN(t)&&isNaN(this._growRate)&&isNaN(this._prevRate)?this.invalidate():this._doPrevRateChanged(t))},e.prototype.isPointLabelVisible=function(t){return t.visible&&!t.isNull&&!t.isEmpty()&&this.model.isPointLabelVisible(t)},e.prototype._doViewRateChanged=function(t){},e.prototype._doPosRateChanged=function(t){},e.prototype._doPrevRateChanged=function(t){},e.prototype._animationStarted=function(t){this._animations.push(t),this._labelContainer&&this._labelContainer.setVis(!1)},e.prototype._animationFinished=function(t){var e=this._animations.indexOf(t);e>=0&&this._animations.splice(e,1),this._invalidate()},e.prototype.pointByDom=function(t){return this._getPointPool().elementOf(t)},e.prototype.getPointView=function(t){return this._getPointPool().find((function(e){return e.point===t}))},e.prototype.clicked=function(t){var e=this.pointByDom(t);e&&(this._clearHoverClasses(e),!0!==this.model.pointClicked(e.point)&&this._doPointClicked(e))},e.prototype._doPointClicked=function(t){},e.prototype.prepareSeries=function(t,e){this.setModel(e),this.setData("index",e.seriesIndex%12),this.setData("pointcolors",e._colorByPoint()?"a":xS),this.internalClearStyleAndClass(),this.internalSetStyleOrClass(e._style),e._runColor&&this._setModelColor(e._runColor),e._calcedColor=getComputedStyle(this.dom)[this._legendColorProp()],this._visPoints=this._collectVisPoints(e),this._prepareSeries(t,e)},e.prototype._setModelColor=function(t){this.setColor(t)},e.prototype._legendColorProp=function(){return"fill"},e.prototype.needDecoreateLegend=function(){return!1},e.prototype.decoreateLegend=function(t){},e.prototype.afterLayout=function(){this._doAfterLayout()},e.prototype.setHoverStyle=function(t){t.internalImportantStylesOrClass(this.model.options.hoverStyle)},e.prototype.hoverPoint=function(t){var e=t&&this.getPointView(t);e&&e.visible?(this._clearHoverClasses(e),this._getPointPool().forEach((function(t){t!==e&&t.removeClass(eN).addClass(iN)}))):this._getPointPool().forEach((function(t){t.containsClass(iN)&&t.removeClass(iN).addClass(eN)}))},e.prototype._clearHoverClasses=function(t){t instanceof LP&&t.removeClass(eN).removeClass(iN)},e.prototype.focusPoints=function(t){var i=this,n="none"!==this.model.options.hoverEffect,r=this._hoverAnis,o=this._hoverPts,s=[],a=[];n&&(o.forEach((function(n){if(n instanceof LP&&(!t||t.indexOf(n)<0)){var o=r.find((function(t){return t._marker===n}));o&&o.stop(),n.setBoolData(e.DATA_FOCUS,!1),n.restoreStyles(),n instanceof pN&&s.push(new UL(i,n,!1,(function(){n.endHover(i,!1)})))}})),t&&t.forEach((function(t){if(t&&!t.point.isNull){var n=r.find((function(e){return e._marker===t}));n&&n.stop(),t instanceof LP&&(t.setBoolData(e.DATA_FOCUS,!0),a.push(t),t.restoreStyles(),t.saveStyles(),i.setHoverStyle(t),t instanceof pN?s.push(new UL(i,t,!0,(function(){t.endHover(i,!0)}))):i instanceof _N&&i._getPointPool().front(t))}}))),r&&r.forEach((function(t,e){t._started&&s.push(t)})),this._hoverAnis=s,this._hoverPts=a,this.model.pointHovered(a&&a.length>0?a[0].point:null)},e.prototype._needFocusOrder=function(){return!0},e.prototype.getPointsAt=function(t,e){},e.prototype.getSiblings=function(t){return[t]},e.prototype.getSibling=function(t){},e.prototype.applyAutoRotation=function(t,e,i,n){if(this.model.pointLabel.options.autoRotation){var r=t.getBBox(),o=r.width,s=r.height,a=e/i*(n||360)+90;0!==a&&t.setRotation(o/2,s/2,a)}},e.prototype._doAttached=function(t){this.control.loaded&&dk(this.dom,"opacity",0,1,500,null)},e.prototype._prepareStyleOrClass=function(t){},e.prototype._prepareViewRanges=function(t){},e.prototype._doMeasure=function(t,e,i,n,r){return this._animating()||this.setClip(),this.model._xAxisObj._seriesChanged&&this._savePrevs(),this._prepareViewRanges(e),!this._lazyPrepareLabels()&&this._labelContainer.prepare(t,this),e instanceof Zk&&e.trendline.visible?(this._trendLineView||this.add(this._trendLineView=new RP(t,"rct-series-trendline")),this._trendLineView.setVis(!0)):this._trendLineView&&this._trendLineView.setVis(!1),{width:i,height:n}},e.prototype._doLayout=function(){this._labelViews(),this._renderSeries(this.width,this.height),this._trendLineView&&this._trendLineView.visible&&this.$_renderTrendline(this._inverted),this._animatable&&!this._simpleMode&&this._runShowEffect(!this.control.loaded&&this.chart().loadAnimatable())},e.prototype._doAfterLayout=function(){var t=this;this.model._xAxisObj._seriesChanged&&new XL(this,(function(){t.invalidate()}))},e.prototype._collectVisPoints=function(t){return t._visPoints},e.prototype.$_setColorIndex=function(t,e){t.setData("index",e.index%12)},e.prototype._setPointColor=function(t,e){t.setColor(e)},e.prototype._setPointStyle=function(t,e,i,n){t.setAttrEx("aria-label",i.ariaHint()),this.$_setColorIndex(t,i),t.internalClearStyleAndClass(),e.options.pointStyle&&t.internalSetStyleOrClass(e.options.pointStyle),n&&n.forEach((function(e){return e&&t.internalSetStyleOrClass(e)})),i.color&&this._setPointColor(t,i.color),i.range&&(i.range.color&&this._setPointColor(t,i.range.color),i.range.style&&t.internalSetStyleOrClass(i.range.style));var r=e.getPointStyle(i);r&&t.internalSetStyleOrClass(r)},e.prototype._labelViews=function(){return this._labelContainer.setVis(this.model.pointLabel.visible&&!this._animating()),this._labelContainer.visible?this._labelContainer:void 0},e.prototype._getGrowRate=function(){return aS(this._growRate,1)},e.prototype._animating=function(){return!isNaN(this._growRate)||!isNaN(this._posRate)||!isNaN(this._prevRate)||this._animations.length>0},e.prototype._lazyPrepareLabels=function(){return!1},e.prototype._getShowAnimation=function(){},e.prototype._runShowEffect=function(t){},e.prototype._drawSpline=function(t,e,i,n){var r=e;if(i<0&&(i=t.length-1),1!==Math.abs(i-e)){var o=.35,s={x:0,y:0},a={x:0,y:0},l={x:0,y:0},u={x:t[r+1].px-t[r].px,y:t[r+1].py-t[r].py},h={x:0,y:0},p=Math.sqrt(u.x*u.x+u.y*u.y);u.x/=p,u.y/=p;var c=t[r+1].px-t[r].px,f=t[r].px,_=t[r].py;for(++r;r!=i;r++){l.x=-u.x,l.y=-u.y,u.x=t[r+1].px-t[r].px,u.y=t[r+1].py-t[r].py,p=Math.sqrt(u.x*u.x+u.y*u.y),u.x/=p,u.y/=p,u.x<l.x?(h.x=l.x-u.x,h.y=l.y-u.y):(h.x=u.x-l.x,h.y=u.y-l.y);var d=Math.sqrt(h.x*h.x+h.y*h.y);h.x/=d,h.y/=d,l.y*u.y>=0&&(h={x:1,y:0}),s.x=-h.x*c*o,s.y=-h.y*c*o;var y=f+a.x,g=_+a.y,v=t[r].px+s.x,m=t[r].py+s.y;n.curve(y,g,v,m,t[r].px,t[r].py),c=t[r+1].px-t[r].px,a.x=h.x*c*o,a.y=h.y*c*o,f=t[r].px,_=t[r].py}n.curve(f+a.x,_+a.y,t[r].px,t[r].py,t[r].px,t[r].py)}else n.line(t[r+1].px,t[r+1].py)},e.prototype.$_renderTrendline=function(t){var e=this.model;if(e instanceof Zk){var i=e.trendline,n=e._xAxisObj,r=e._yAxisObj,o=r._vlen,s=n._vlen,a=i._points.map((function(e){var i,a;return t?(a=s-n.getPos(s,e.x),i=r.getPos(o,e.y)):(i=n.getPos(s,e.x),a=o-r.getPos(o,e.y)),{x:i,y:a}}));if(this._trendLineView.setVis(a.length>1)){var l=new eE;l.move(a[0].x,a[0].y),i.isCurved()?this._drawSpline(a.map((function(t){return{px:t.x,py:t.y}})),0,-1,l):l.lines.apply(l,$x([],jx(a),!1)),this._trendLineView.setPath(l.end(!1))}}},e.prototype._layoutLabel=function(t,e,i){var n=t.inverted,r=t.x,o=t.y,s=t.hPoint,a=t.labelView,l=t.labelOff;if(a.setVis(r>=0&&r<=e&&o>=0&&o<=i)){a.layout(t.textAlign);var u=t.reversed?s<=0:s<0,h=a.getBBox(),p=!0;switch(n?o-=h.height/2:r-=h.width/2,t.labelPos){case"inside":n?r-=(s+h.width)/2+(t.reversed?l:-l):o+=(s-h.height)/2+(t.reversed?l:-l);break;case"head":n?u?r+=h.width-l:r-=h.width+l:u?o-=h.height+l:o+=l;break;case"foot":n?r-=u?s+h.width+l:s-l:o+=u?s+l:s-h.height-l;break;default:n?u?r-=h.width+l:r+=l:u?o+=l:o-=h.height+l,p=!1}a.setContrast(p&&t.pointView.dom),a.trans(r,o)}},e.prototype._clipRange=function(t,e,i,n,r,o){if(o){var s=t;t=e,e=s}var a="x"===i,l=a?this.model._xAxisObj:this.model._yAxisObj,u=l.options.reversed,h=l.getPos(a?t:e,oS(l.axisMin(),n.fromValue)),p=l.getPos(a?t:e,rS(l.axisMax(),n.toValue));o?a?u?r.setBounds(p,-e,sS(p-h),e):r.setBounds(h,-e,sS(p-h),e):r.setBounds(0,-oS(h,p),t,sS(p-h)):a?u?r.setBounds(p,0,sS(p-h),e):r.setBounds(h,0,sS(p-h),e):r.setBounds(0,e-oS(h,p),t,sS(p-h))},e.prototype._setFill=function(t,e){Gx(e)&&e[$S]?t.internalSetStyle($S,e[$S]):Xx(e)&&t.dom.classList.add(e)},e.prototype._savePrevs=function(){},e.POINT_CLASS="rct-point",e.DATA_FOCUS="focus",e.DATA_UNFOCUS="unfocus",e.DATA_UNHOVER="unhover",e.LEGEND_MARKER="rct-legend-item-marker",e}(fL),rN=function(t){function e(e){return t.call(this,e,nN.POINT_CLASS)||this}return Dx(e,t),e.prototype.savePrevs=function(){},e}(RP),oN=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.labelViews=[],e}return Dx(e,t),e.prototype.savePrevs=function(){this.wSave=this.wPoint,this.xSave=this.x},e}(rN),sN=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.layout=function(t,e,i,n){this.x=t,this.setPath(bk.bar(t-this.wPoint/2,e,this.wPoint,-this.hPoint,i,n))},e}(oN),aN=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.savePrevs=function(){this.wSave=this.width,this.xSave=this.x},e}(uL),lN=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._labelInfo={},e}return Dx(e,t),e.prototype._prepareSeries=function(t,e){this._preparePoints(t,e,this._visPoints)},e.prototype._renderSeries=function(t,e){this._pointContainer.invert(this._inverted,e),this._layoutPoints(t,e)},e.prototype._runShowEffect=function(t){t&&$L.grow(this)},e.prototype._doViewRateChanged=function(t){this._layoutPoints(this.width,this.height)},e.prototype._savePrevs=function(){this._getPointPool().forEach((function(t){return t.savePrevs()}))},e.prototype.getPointsAt=function(t,e){return[]},e}(nN),uN=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._doPrevRateChanged=function(t){0==t&&this._layoutPoints(this.width,this.height),this.invalidate()},e.prototype._layoutPoints=function(t,e){var i=this,n=this.model,r=this._inverted,o=this._getGrowRate(),s=this._prevRate,a=n.pointLabel,l=this._labelViews(),u=n._xAxisObj,h=n._yAxisObj,p=h.options.reversed,c=2*u.unitPad(),f=h.prev(r?t:e),_=u.prev(r?e:t),d=r?0:e,y=h.axisMin(),g=h.getPos(f,y),v=n.getBaseValue(h)||0,m=aS(h.getPos(f,oS(y,v)),g),b=!isNaN(v),w=function(t){return h.getPos(f,t)},x=function(t){return u.getPos(_,t)},S=l&&Kx(this._labelInfo,{inverted:r,reversed:p,labelPos:n.getLabelPos(a),labelOff:n.getLabelOff(a.getOffset()),textAlign:this._labelContainer._textAlign});this._getPointPool().forEach((function(a,h){var p=a.point;if(a.setVis(!p.isNull)){var f=u.getUnitLen(_,p.xValue)*(1-c),y=n.getPointWidth(f),g=w(p.yGroup),P=m;if(p.yGroup!=p.yValue){var V=v>p.yGroup,k=p.yGroup<0,A=p.yValue<0,C=V&&k&&!A||V&&!k&&!A||!V&&k&&A||!V&&!k&&A,E=p.yGroup-p.yValue*(C?-1:1);P=w(E)}var L=(g-P)*o,N=x(p.xValue)-f/2;if(isNaN(N)){var O=u.getUnitLen(_,p.xValue)*(1-c);N=x(p.xValue)-O/2}var M=d-g;isNaN(s+a.wSave)||(y=a.wSave+(y-a.wSave)*s),N+=n.getPointPos(f)+y/2,isNaN(s+a.xSave)||(N=a.xSave+(N-a.xSave)*s),p.xPos=N,p.yPos=M,i._layoutPoint(a,h,N,d-m*(1-o)-P*o,y,L),r&&(M=_-x(p.xValue)+f/2,N=d,p.yPos=M-=n.getPointPos(f)+y/2,p.xPos=N+=b?w(p.yGroup)*o:w(p.yGroup*o)),S&&(S.labelView=l.get(p,0))&&(S.pointView=a,S.x=N,S.y=M,S.wPoint=y,S.hPoint=L,i._layoutLabel(S,t,e))}}))},e}(lN),hN=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._doPrevRateChanged=function(t){0==t&&this._layoutPoints(this.width,this.height),this.invalidate()},e.prototype._layoutPoints=function(t,e){var i=this,n=this.model,r=n.chart.isInverted(),o=this._getGrowRate(),s=this._prevRate,a=n.pointLabel,l=this._labelViews(),u=n._xAxisObj,h=n._yAxisObj,p=2*u.unitPad(),c=r?t:e,f=r?e:t,_=r?0:e,d=l&&Kx(this._labelInfo,{inverted:r,labelPos:n.getLabelPos(a),labelOff:n.getLabelOff(a.getOffset()),textAlign:this._labelContainer._textAlign});this._getPointPool().forEach((function(a,y){var g=a.point;if(a.setVis(!g.isNull)){var v=u.getUnitLen(f,g.xValue)*(1-p),m=n.getPointWidth(v),b=(h.getPos(c,g.yValue)-h.getPos(c,i._getLowValue(g)))*o,w=u.getPos(f,g.xValue)-v/2,x=_-h.getPos(c,g.yGroup)*o;isNaN(s+a.wSave)||(m=a.wSave+(m-a.wSave)*s),w+=n.getPointPos(v)+m/2,isNaN(s+a.xSave)||(w=a.xSave+(w-a.xSave)*s),g.xPos=w,g.yPos=x,i._layoutPoint(a,y,w,x,m,b),r&&(x=f-u.getPos(f,g.xValue)+v/2,w=_,g.yPos=x-=n.getPointPos(v)+m/2,g.xPos=w+=h.getPos(c,g.yGroup)*o),l&&(d.pointView=a,d.hPoint=b,d.x=w,d.y=x,(d.labelView=l.get(g,0))&&(d.hPoint=b,i._layoutLabel(d,t,e)),(d.labelView=l.get(g,1))&&(r?d.x-=b:d.y+=b,d.hPoint=-b,i._layoutLabel(d,t,e)))}}))},e}(lN),pN=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.beginHover=function(t,e){},e.prototype.setHoverRate=function(t,e,i){},e.prototype.endHover=function(t,e){},e.prototype.distance=function(t,e,i){return this.point.isNull?Number.MAX_VALUE:Math.sqrt(Math.pow(this.point.xPos-e,2)+Math.pow(this.point.yPos-i,2))-t},e}(rN),cN=function(t){function e(e,i){var n=t.call(this,e,i)||this;return n._markers=n._createMarkers(n._pointContainer),n}var i;return Dx(e,t),e._createDrawers=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var i={};return t.forEach((function(t){i[t]=function(e){return bk[t](0-e,0-e,2*e,2*e)}})),i},e.prototype.getHintDistance=function(){return this.model.options.hintDistance},e.prototype._getPointPool=function(){return this._markers},e.prototype.clipInvertable=function(){return!1},e.prototype.getPointsAt=function(t,e){return[]},e.prototype._getDrawer=function(t){return e._drawers[t]||e._drawers.circle},e.prototype._layoutLabelView=function(t,e,i,n,r,o){var s=t.getBBox();"auto"===e&&(e=this._getAutoPos(s.width>=2*n*.9)),t.setVis(null!=e)&&(r-=s.width/2,"inside"===e?t.trans(r,o-s.height/2):e&&t.trans(r,o-n-s.height-i))},i=e,e._drawers=Object.assign({circle:function(t){return bk.circle(0,0,t)}},i._createDrawers("square","diamond","triangle","itriangle","star","rectangle")),e}(nN),fN=function(t){function e(e,i){var n=t.call(this)||this;return n.series=e,n.duration=i,n}return Dx(e,t),e.prototype._doUpdate=function(t){return!!this.series&&(this.series._zombieRate=this.series._zombie.visible?t:1-t,this.series._resizeZombie(),!0)},e.prototype._doStop=function(){this.series&&(this.series._zombie=null,this.series._zombieAni=null,this.series.invalidate(),this.series=null)},e}(yk),_N=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.togglePointVisible=function(t){var e;t.yValue<0||(this._willZombie=t,t.visible||null===(e=this._labelContainer.get(t,0))||void 0===e||e.hide(250))},e.prototype.isPointLabelVisible=function(e){return e===this._zombie||t.prototype.isPointLabelVisible.call(this,e)},e.prototype._collectVisPoints=function(e){var i=t.prototype._collectVisPoints.call(this,e);return this._willZombie&&!this._willZombie.visible&&(i.push(this._willZombie),i=i.sort((function(t,e){return t.index-e.index}))),i},e.prototype._prepareSeries=function(t,e){var i;this._zombie&&(this._zombie=null,this._zombie=null,null===(i=this._zombieAni)||void 0===i||i.stop(),this._zombieAni=null),this._willZombie&&(this._zombie=this._willZombie,this._willZombie=null,this._zombieAni=new fN(this,300),this._zombieAni.start()),this.setData("pointcolors","f")},e.prototype._resizeZombie=function(){},e.prototype._createPointLegendMarker=function(t,e,i){return wk.create(t,"rct-legend-item-marker",0,0,i,i,i/2)},e.prototype._preparePoint=function(t,e,i,n){this._clearHoverClasses(n),i._legendMarker||i.setLegendMarker(this._createPointLegendMarker(t,i,this.chart()._legend.getMarkerSize())),this._setPointStyle(n,e,i),i._calcedColor=getComputedStyle(n.dom).fill},e}(nN),dN=function(t){function e(i){var n=t.call(this,i,e.CLASS_NAME)||this;return n.add(n._imageView=new _L(i,!1)),n._imageView.onloadProxy=function(){var t=n._imageView.getBBox();n._deflatePaddings(t),n._imageView.resize(t.width,t.height)},n}return Dx(e,t),e.prototype._doMeasure=function(t,e,i,n,r){var o=e.getSize(i,n);return this._deflatePaddings(o),this._imageView.url=this.model.options.imageUrl,this._imageView.resize(o.width,o.height),tL(this._imageView.getBBox())},e.prototype._doLayout=function(e){this._imageView.trans(e.x+this._paddings.left,e.y+this._paddings.top),t.prototype._doLayout.call(this,e)},e.prototype._setRotation=function(t,e,i){this._imageView.setRotation(t,e,i)},e.CLASS_NAME="rct-image-annotation",e}(LL),yN=function(t){function e(i){var n=t.call(this,i,e.CLASS_NAME)||this;return n.add(n._shapeView=new RP(i)),n}return Dx(e,t),e.prototype._doMeasure=function(t,e,i,n,r){var o=e.getSize(i,n);return this._deflatePaddings(o),bk.setShape(this._shapeView,e.getShape(),o.width/2,o.height/2),o},e.prototype._doLayout=function(e){this._shapeView.trans(this._paddings.left+e.x,this._paddings.top+e.y),t.prototype._doLayout.call(this,e)},e.prototype._setRotation=function(t,e,i){this._shapeView.setRotation(t,e,i)},e.CLASS_NAME="rct-shape-annotation",e}(LL),gN=function(t){function e(i){var n=t.call(this,i,e.CLASS_NAME)||this;return n.add(n._textView=new $P(i)),n._textView.anchor=BP.START,n._richText=new QP,n}return Dx(e,t),e.prototype._doMeasure=function(t,e,i,n,r){var o=e.options,s=e.getSize(i,n),a=this._textView;o.writingMode&&this._textView.setStyle("writingMode",o.writingMode),o.textOrientation&&this._textView.setStyle("textOrientation",o.textOrientation),this._deflatePaddings(s),this._richText.setFormat(o.text),this._richText.build(a,i,n,null,e._domain);var l=tL(this._textView.getBBox());return{width:aS(s.width,l.width),height:aS(s.height,l.height)}},e.prototype._doLayout=function(e){this._richText.layout(this._textView,this.textAlign(),this.width,this.height,this._paddings),this._textView.trans(e.x+this._textView.tx,e.y+this._textView.ty),t.prototype._doLayout.call(this,e)},e.prototype._setRotation=function(t,e,i){this._textView.setRotation(t,e,i)},e.CLASS_NAME="rct-text-annotation",e}(LL),vN=function(t){function e(e){var i=t.call(this,e,"rct-linear-gauge-band")||this;return i._thick=0,i._gap=0,i._labelGap=3,i._barViews=new KE(i,wk),i.add(i._labelContainer=new NP(e,"rct-linear-gauge-band-tick-labels")),i._labels=new KE(i._labelContainer,$P),i}return Dx(e,t),e.prototype._doMeasure=function(t,e,i,n,r){var o=e.gauge,s=this._vertical=o instanceof qA?o.isVertical():o.options.vertical,a=e.options.position,l=this._thick=e.getThickness(s?i:n)+("inside"===a?0:this._gap=aS(e.options.gap,0)),u=s?l:i,h=s?n:l,p=this._ranges=e.getRanges();if(this._labelContainer.setVis(e.tickLabel.visible&&p.length>0)){var c=[p[0].fromValue].concat(p.map((function(t){return t.toValue})));if(this._labelContainer.setStyleOrClass(e.tickLabel._style),this._labels.prepare(p.length+1),s){var f=0;this._labels.forEach((function(t,e){t.text=String(c[e]),f=oS(t.getBBox().width)})),u+=f+this._labelGap}else{var _=0;this._labels.forEach((function(t,e){t.text=String(c[e]),_=oS(t.getBBox().height)})),h+=_}}return{width:u,height:h}},e.prototype._doLayout=function(t){var e=this.model,i=e.gauge,n=i.scale,r=n._max-n._min;this._labelContainer.setVis(this.$_layoutBars(i,r,this._ranges)&&this._labelContainer.visible&&"inside"!==e.options.position)&&this.$_layoutLabels(i,r,this._ranges)},e.prototype.$_layoutBars=function(t,e,i){var n=this;if(this._barViews.prepare(i.length),!this._barViews.isEmpty&&e>0){var r=this._vertical,o="inside"===this.model.options.position,s="opposite"===this.model.options.position,a=this.width,l=this.height,u=r?l:a,h=this._thick,p=0;return this._barViews.prepare(i.length).forEach((function(t,c){var f=i[c],_=u*(f.toValue-f.fromValue)/e;if(r){var d=o||s?0:a-h;t.setBounds(d,l-p-_,h,_)}else{var y=s?l-h:0;t.setBounds(p,y,_,n._thick)}t.internalClearStyleAndClass(),t.setFill(f.color),f.style&&t.addStyleOrClass(f.style),p+=_})),!0}},e.prototype.$_layoutLabels=function(t,e,i){var n="opposite"===this.model.options.position;if(this._vertical){var r=this.height,o=n?BP.START:BP.END,s=n?this._thick+this._labelGap:this.width-this._thick-this._labelGap;(u=this._labels.get(0)).anchor=o,u.trans(s,r-u.getBBox().height/2);for(var a=1;a<=i.length;a++){var l=r-r*i[a-1].toValue/e;(u=this._labels.get(a)).anchor=o,u.trans(s,l-u.getBBox().height/2)}}else{var u;r=this.width,s=n?0:this._thick;(u=this._labels.get(0)).trans(0,s);for(a=1;a<=i.length;a++){var h=r*i[a-1].toValue/e;this._labels.get(a).trans(h,s)}}},e}(hL),mN=function(t){function e(e){return t.call(this,e,"rct-linear-gauge")||this}return Dx(e,t),e.prototype._doInitContents=function(t,e){e.add(this._background=new wk(t,"rct-linear-gauge-background")),e.add(this._bandView=new vN(t)),e.add(this._scaleView=new DL(t)),e.add(this._valueView=new wk(t,"rct-linear-gauge-value")),e.add(this._labelView=new $P(t))},e.prototype._backgroundView=function(){return this._background},e.prototype.labelView=function(){return this._labelView},e.prototype.scaleView=function(){return this._scaleView},e.prototype.background=function(){return this._background},e.prototype._prepareGauge=function(t,e){},e.prototype._renderScale=function(e){var i=this.model.band,n=this._bandView;if(t.prototype._renderScale.call(this,e),n.setVis(i.visible)){var r=+i.options.gap||0,o=n.measure(this.doc,i,e.width,e.height,1);n.resizeByMeasured().layout(),this._vertical?"inside"===i.options.position?n.trans(e.x,e.y):"opposite"===i.options.position?(n.trans(e.x+e.width-o.width,e.y),e.width-=o.width+r):(n.trans(e.x,e.y),e.width-=o.width+r,e.x+=o.width+r):"inside"===i.options.position?n.trans(e.x,e.y):"opposite"===i.options.position?(n.trans(e.x,e.y),e.height-=o.height+r,e.y+=o.height+r):(n.trans(e.x,e.y+e.height-o.height),e.height-=o.height+r)}},e.prototype._renderBand=function(t,e,i){var n=this._valueView,r=t.options.reversed,o=t.valueBar,s=t._group?t._group.scale:t.scale;if(n.setVis(!eL(e)&&o.visible&&!s.isEmpty()&&!isNaN(t.options.value)))if(n.setStyleOrClass(o._style),n.internalSetStyleOrClass(o.getStyle(t,i)),this._vertical){var a=e.height*s.getRate(i),l=r?e.y:e.y+e.height-a;n.setBounds(e.x,l,e.width,a)}else{var u=e.width*s.getRate(i),h=r?e.x+e.width-u:e.x;n.setBounds(h,e.y,u,e.height)}},e}(FL),bN=function(t){function e(e,i){return t.call(this,e,i)||this}return Dx(e,t),e.prototype._doInitContents=function(e,i){t.prototype._doInitContents.call(this,e,i),i.insertFirst(this._scaleView=new DL(e)),i.insertFirst(this._textView=new $P(e,"rct-linear-gauge-group-label"))},e.prototype._prepareGauge=function(e,i){this._textView.setVis(i.label.visible)&&this._textView.setStyleOrClass(i.label._style),this._scaleView.setVis(i.scale.visible)&&this._scaleView.setStyleOrClass(i.scale._style),t.prototype._prepareGauge.call(this,e,i)},e.prototype._doRenderGauges=function(t,e,i,n){var r=this.model,o=r.options,s=this._textView,a=QE(0,0,i,n);if(s.visible){s.text=r.label.options.text,r.label.buildSvg(s,null,NaN,NaN,r,null);var l=this._textView.getBBox().height+r.label.getGap(n);a.y+=l,a.height-=l,s.trans(this.width/2,0)}r._labelWidth=r._labelHeight=0,this._gaugeViews.forEach((function(t,e){var o=t._measureLabelSize(r.get(e),i,n);r._labelWidth=oS(r._labelWidth,o.width),r._labelHeight=oS(r._labelHeight,o.height)}));var u,h=(u=a)&&Kx({},u),p=r.itemLabel.options.gap;o.vertical?(h.height-=r._labelHeight+p,r.itemLabel.options.opposite||(h.y+=r._labelHeight+p)):(h.width-=r._labelWidth+p,r.itemLabel.options.opposite||(h.x+=r._labelWidth+p)),this._renderScale(r,a,h),o.vertical?this.$_layoutVert(this.doc,r,e,a):this.$_layoutHorz(this.doc,r,e,a)},e.prototype._renderScale=function(t,e,i){var n,r,o=this._scaleView,s=t.scale,a=t.options.vertical,l=a?e.height:e.width,u=[];if(this._gaugeViews.forEach((function(e,i){u.push(aS(e._runValue,t.get(i).options.value))})),s.buildGroupSteps(l,u),s._vertical=a,o.setVis(s.visible)){var h=o.measure(this.doc,s,i.width,i.height,1);if(a){var p=h.width;i.width-=p,e.width-=p,r=i.y,"opposite"===s.options.position?n=i.x+i.width:(n=i.x,i.x+=p,e.x+=p)}else{var c=h.height;i.height-=c,e.height-=c,n=i.x,"opposite"===s.options.position?(r=i.y,i.y+=c,e.y+=c):r=i.y+i.height}o.resizeByMeasured().layout().trans(n,r)}},e.prototype.$_layoutVert=function(t,e,i,n){var r=n.height,o=(n.width-e.options.itemGap*(i.count-1))/i.count,s=n.y,a=n.x;i.forEach((function(i,n){i.measure(t,e.get(n),o,r,0),i.resize(o,r),i.layout(),i.trans(a,s),a+=o+e.options.itemGap}))},e.prototype.$_layoutHorz=function(t,e,i,n){var r=e.options.itemGap,o=n.width,s=(n.height-r*(i.count-1))/i.count,a=n.x,l=n.y;i.forEach((function(i,n){i.measure(t,e.get(n),o,s,0),i.resize(o,s),i.layout(),i.trans(a,l),l+=s+r}))},e}(jL),wN=function(t){function e(e){return t.call(this,e,"rct-linear-gauge-group")||this}return Dx(e,t),e.prototype._doInitContents=function(e,i){t.prototype._doInitContents.call(this,e,i),i.insertChild(this._bandView=new vN(e),this._scaleView)},e.prototype._createPool=function(t){return new KE(t,mN)},e.prototype._renderScale=function(e,i,n){t.prototype._renderScale.call(this,e,i,n);var r,o,s=this._bandView,a=e.band;if(s.setVis(a.visible)){var l=+a.options.gap||0,u=s.measure(this.doc,a,n.width,n.height,1);if(e.options.vertical){var h=u.width+l;n.width-=h,i.width-=h,o=n.y,"opposite"===a.options.position?r=n.x+n.width+l:(r=n.x,n.x+=h,i.x+=h)}else{var p=u.height+l;n.height-=p,i.height-=p,r=n.x,"opposite"===a.options.position?(o=n.y,n.y+=p,i.y+=p):o=n.y+n.height+l}s.resizeByMeasured().layout().trans(r,o)}},e}(bN),xN=function(t){function e(e){return t.call(this,e,"rct-bullet-gage")||this}return Dx(e,t),e.prototype._doInitContents=function(t,e){e.add(this._background=new wk(t,"rct-bullet-gauge-background")),e.add(this._barContainer=new NP(t,void 0)),this._barViews=new KE(this._barContainer,wk),e.add(this._valueView=new wk(t,"rct-bullet-gauge-value")),e.add(this._targetView=new wk(t,"rct-bullet-gauge-target")),e.add(this._scaleView=new DL(t)),e.add(this._labelView=new $P(t))},e.prototype._backgroundView=function(){return this._background},e.prototype.labelView=function(){return this._labelView},e.prototype.scaleView=function(){return this._scaleView},e.prototype.background=function(){return this._background},e.prototype._prepareGauge=function(t,e){},e.prototype._renderBand=function(t,e,i){var n=t.options,r=t._group,o=t.options.reversed,s=this._vertical,a=r?r.scale:t.scale,l=this._valueView,u=this._targetView;if(this._barContainer.setVis(!eL(e)&&!a.isEmpty())){var h=t.getRanges(a._min,a._max,!1)||(null==r?void 0:r.getRanges(a._min,a._max,!1));h&&(this._barContainer.setRect(e),this._barViews.prepare(h.length),s?this._barViews.forEach((function(t,i){var n=h[i],r=e.height*a.getRate(n.toValue-n.fromValue),s=e.height*a.getRate(n.fromValue);t.setBounds(0,o?s:e.height-s-r,e.width,r),t.internalClearStyleAndClass(),t.setFill(n.color),n.style&&t.addStyleOrClass(n.style)})):this._barViews.forEach((function(t,i){var n=h[i],r=e.width*a.getRate(n.toValue-n.fromValue),s=e.width*a.getRate(n.fromValue);t.setBounds(o?e.width-r-s:s,0,r,e.height),t.internalClearStyleAndClass(),t.setFill(n.color),n.style&&t.addStyleOrClass(n.style)})))}if(l.setVis(!a.isEmpty()&&!isNaN(i)))if(l.setStyleOrClass(t.valueBar._style),i<n.targetValue&&t.valueBar.options.belowStyle&&l.internalSetStyleOrClass(t.valueBar.options.belowStyle),l.internalSetStyleOrClass(t.valueBar.getStyle(t,i)),s){var p=e.height*a.getRate(i),c=o?e.y:e.y+e.height-p;l.setBounds(e.x+e.width/3,c,e.width/3,p)}else{var f=e.width*a.getRate(i),_=o?e.x+e.width-f:e.x;l.setBounds(_,e.y+e.height/3,f,e.height/3)}if(u.setVis(!a.isEmpty()&&!isNaN(n.targetValue)))if(u.setStyleOrClass(t.targetBar._style),s&&e.width>10){c=e.height*a.getRate(n.targetValue);c=o?e.y+c:e.y+e.height-c,u.setBounds(e.x+5,c-1,e.width-10,3)}else if(!s&&e.height>10){_=e.width*a.getRate(n.targetValue);_=o?e.x+e.width-_:e.x+_,u.setBounds(_-1,e.y+5,3,e.height-10)}},e}(FL),SN=function(t){function e(e){return t.call(this,e,"rct-bullet-gauge-group")||this}return Dx(e,t),e.prototype._createPool=function(t){return new KE(t,xN)},e}(bN),PN=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.setExtents=function(t,e){this._center=t,this._exts=e},e.prototype._createLine=function(t,e){return new kL(t,e)},e.prototype._doMeasure=function(t,e,i,n,r){var o=e._steps.length-(360===e.gauge.options.sweepAngle?1:0);return this._line.setVis(e.line.visible)&&this._line.internalSetStyleOrClass(e.line._style),this._tickContainer.setVis(e.tick.visible)&&(this._tickContainer.internalSetStyleOrClass(e.tick._style),this._ticks.prepare(o)),this._labelContainer.setVis(e.label.visible)&&(this._labelContainer.internalSetStyleOrClass(e.label._style),this._labels.prepare(o,(function(t){}))),{width:i,height:n}},e.prototype._doLayout=function(t){var e,i,n,r,o=this.model,s=o._steps,a=o.gauge,l=a.options,u="opposite"===o.options.position?-1:1,h=a._props,p=this._center.x,c=this._center.y,f=this._exts.scale,_=f+this.model.tick.options.length*u,d=h._sweepRad,y=h._startRad,g=l.maxValue-l.minValue,v=l.clockwise;if(this._line.visible&&this._line.setArc(p,c,f,y,v?d:-d,v),this._tickContainer.visible&&this._ticks.forEach((function(t,a,l){var u=o.getRate(s[a])*(v?d:-d)+y;e=p+tS(u)*f,i=c+eS(u)*f,n=p+tS(u)*_,r=c+eS(u)*_,t.setLine(e,i,n,r)})),this._labelContainer.visible){this._labels.get(0).setText(String(l.maxValue));var m=_+.2*this._labels.get(0).getBBox().height*u;this._labels.forEach((function(t,e,i){var a=o.getRate(s[e])*(v?d:-d)+y;t.setText(String(LS(l.minValue+o.getRate(s[e])*g)));var h=t.getBBox();n=p+tS(a)*(m+h.width/2*u)-h.width/2,r=c+eS(a)*(m+h.height/2*u)-h.height/2,t.trans(n,r)}))}},e}(BL),VN=function(t){function e(e){var i=t.call(this,e,"rct-circle-gauge-band")||this;return i._sectorViews=new KE(i,CL),i.add(i._labelContainer=new NP(e,"rct-circle-gauge-band-tick-labels")),i._labels=new KE(i._labelContainer,$P),i}return Dx(e,t),e.prototype.setExtends=function(t,e){this._center=t,this._exts=e},e.prototype._doLayout=function(t){var e=this.model,i=e.gauge,n=i.scale,r=i._props,o=this._center.x,s=this._center.y,a=this._exts.band,l=i.options.clockwise,u=1-this._exts.bandThick/a,h=e.getRanges(),p=r._sweepRad;i.options.maxValue,i.options.minValue;var c=r._startRad;this._sectorViews.prepare(h.length).forEach((function(t,e){var i=n.getRate(h[e].toValue-h[e].fromValue)*p;t.setSector({cx:o,cy:s,rx:a,ry:a,innerRadius:u,start:c,angle:i,clockwise:l}),t.internalClearStyleAndClass(),t.setFill(h[e].color),h[e].style&&t.addStyleOrClass(h[e].style),c+=l?i:-i}))},e}(hL),kN=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.render=function(t,e){var i=t.getRadius(e);return i!==this._radius&&(this._radius=i,this.setPath((new eE).circle(0,0,i).end())),this.internalSetStyleOrClass(t._style),this},e}(RP),AN=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.render=function(t,e){var i=t.getExtents(e);if(i.radius!==this._radius||i.length!==this._length||i.offset!==this._offset){var n=this._radius=i.radius,r=this._offset=i.offset;if(this._length=i.length,this._radius>0&&this._length>0){var o=new eE;o.move(-n,r).line(0,-this._length+r).line(n,r),this.setPath(o.end())}else this.setPath("")}return this.internalSetStyleOrClass(t._style),this},e}(RP),CN=function(t){function e(e){return t.call(this,e,"rct-circle-gauge")||this}return Dx(e,t),e.prototype._doInitContents=function(t,e){e.add(this._rimView=new CL(t,"rct-circle-gauge-rim")),e.add(this._valueView=new CL(t,"rct-circle-gauge-value")),e.add(this._innerView=new CL(t,"rct-circle-gauge-inner")),e.add(this._textView=new $P(t,"rct-circle-gauge-label")),e.add(this._handContainer=new NP(t,void 0)),e.add(this._scaleView=new PN(t)),e.add(this._bandView=new VN(t))},e.prototype._backgroundView=function(){return this._rimView},e.prototype._prepareGauge=function(t,e){this._rimView.setVis(e.rim.visible),this._scaleView.setVis(e.scale.visible),this._bandView.setVis(e.band.visible),this._valueView.setVis(e.valueRim.visible),e.hand.visible?(this._handView||this._handContainer.add(this._handView=new AN(t,"rct-circle-gauge-hand")),this._handView.visible=!0):this._handView&&(this._handView.visible=!1),e.pin.visible?(this._pinView||this._handContainer.add(this._pinView=new kN(t,"rct-circle-gauge-pin")),this._pinView.visible=!0):this._pinView&&(this._pinView.visible=!1),this._textView.setVis(e.labelVisible())&&this._textView.setStyleOrClass(e.label._style)},e.prototype._renderGauge=function(t,e){var i=this.model,n=i.getCenter(t,e),r=i.getExtents(rS(t,e));this.$_renderBackground(i,n,r),this._renderValue()},e.prototype._renderValue=function(){var t=this.model,e=t.options,i=t.scale,n=t.getProps(),r=this._getValue(t),o=i.getRate(aS(r,0)),s=this._center,a=this._exts,l=t.valueRim.getThickness(a.radiusThick),u=this._textView;if(this._valueView.visible){var h=t.valueRim,p=h.options,c=h.getRange(e,r),f=a.value+(p.stroked?0:l/2),_=this._valueView;_.setStyleOrClass(h._style),c&&(_.setStyle(p.stroked?"stroke":"fill",c.color),c.style&&_.addStyleOrClass(c.style)),p.stroked&&(_.setFill("none"),_.setStyle("strokeWidth",MS(l))),_.setBoolData("stroked",p.stroked),_.setSectorEx({cx:s.x,cy:s.y,rx:f,ry:f,innerRadius:(f-l)/f,start:n._startRad,angle:n._sweepRad*o,clockwise:e.clockwise},p.stroked)}if(this._handView){var d=(n._handRad+n._sweepRad*o)*AS;this._handView.render(t.hand,a.radius).transp(s).rotate(t.options.clockwise?d:-d)}if(u.visible){var y=t.label;if(y.setText(t.getLabel(y,y.options.animatable?r:e.value)),u.text=y.options.text,y.buildSvg(u,null,NaN,NaN,t,y._domain),u.setBoolData("grouped",!!t._group),t._group)this.$_layoutGroupedLabel(t,u,a);else{var g=u.getBBox(),v=y.getOffset(this.width,this.height);u.trans(s.x+v.x,s.y-g.height/2+v.y)}}},e.prototype.$_renderBackground=function(t,e,i){var n=t.getProps(),r=n._startRad;this._center=e,this._exts=i,t.scale.buildSteps(i.scale*n._sweepRad,NaN),this._rimView.visible&&(this._rimView.internalSetStyleOrClass(t.rim._style),this._rimView.setSector({cx:e.x,cy:e.y,rx:i.radius,ry:i.radius,innerRadius:1-i.radiusThick/i.radius,start:r,angle:n._sweepRad,clockwise:t.options.clockwise})),this._scaleView.visible&&(this._scaleView.setStyleOrClass(t.scale._style),this._scaleView.measure(this.doc,t.scale,this.width,this.height,0),this._scaleView.setExtents(e,i),this._scaleView.layout()),this._bandView.visible&&(this._bandView.setStyleOrClass(t.band._style),this._bandView.measure(this.doc,t.band,this.width,this.height,0),this._bandView.setExtends(e,i),this._bandView.layout()),this._innerView.setStyleOrClass(t.options.innerStyle);var o=i.inner,s=getComputedStyle(this._innerView.dom),a=parseFloat(s.strokeWidth);a>1&&(o-=a/2),this._innerView.setSector({cx:e.x,cy:e.y,rx:o,ry:o,innerRadius:0,start:0,angle:2*Math.PI,clockwise:!0}),this._pinView&&this._pinView.render(t.pin,o).trans(e.x,e.y)},e.prototype.$_layoutGroupedLabel=function(t,e,i){var n=e.getBBox(),r=this._rimView.getBBox(),o=+t._group.options.labelGap||0;e.anchor=BP.END,e.trans(r.x+r.width/2-o,r.y+(i.radius-i.inner-n.height)/2)},e}(IL),EN=function(t){function e(e){return t.call(this,e,"rct-circle-gauge-group")||this}return Dx(e,t),e.prototype._createPool=function(t){return new KE(t,CN)},e.prototype._doRenderGauges=function(t,e,i,n){var r=this.doc,o=this.model,s=o.props.getCenter(i,n),a=o.props.getExtents(rS(i,n));o.setChildExtents(a),i=n=2*a.radius,e.forEach((function(t,e){t.measure(r,o.getVisible(e),i,n,0),t.resize(i,n),t.layout()})),t.trans(s.x-a.radius,s.y-a.radius)},e}(jL),LN=function(t){function e(e){var i=t.call(this)||this;return i.view=e,i}return Dx(e,t),e.prototype._doUpdate=function(t){return this.view._secRate=t,this.view.$_renderHands(this.view.model,this.view._exts),!0},e}(yk),NN=function(t){function e(e){var i=t.call(this,e,"rct-clock-gauge")||this;return i._rimThick=0,i._secRate=1,i}return Dx(e,t),e.prototype._doInitContents=function(t,e){e.add(this._faceView=new VL(t,"rct-clock-gauge-face")),e.add(this._rimView=new CL(t,"rct-clock-gauge-rim")),e.add(this._labelView=new $P(t,"rct-clock-gauge-label")),this._labelView.layout=DP.MIDDLE,e.add(this._tickContainer=new NP(t,"rct-clock-gauge-ticks")),e.add(this._tickLabelContainer=new NP(t,"rct-clock-gauge-tick-labels")),e.add(this._hourView=new RP(t,"rct-clock-gauge-hour")),e.add(this._minuteView=new RP(t,"rct-clock-gauge-minute")),e.add(this._secondView=new RP(t,"rct-clock-gauge-second")),e.add(this._pinView=new VL(t,"rct-clock-gauge-pin")),this._tickViews=new KE(this._tickContainer,OC,"rct-clock-gauge-tick"),this._minorTickViews=new KE(this._tickContainer,OC,"rct-clock-gauge-minor-tick"),this._tickLabelViews=new KE(this._tickLabelContainer,$P,"rct-clock-gauge-tick-label")},e.prototype._prepareGauge=function(t,e){this._tickViews.prepare(e.tick.visible?12:0),this._minorTickViews.prepare(e.minorTick.visible?48:0);var i=Math.round(12/oS(1,Math.floor(e.tickLabel.options.step)||1));this._tickLabelViews.prepare(e.tickLabel.visible?i:0,(function(t){t.layout=DP.MIDDLE}))},e.prototype._renderGauge=function(t,e){var i=this,n=this.model,r=this._exts=n.getExtents(t,e);this._secRate=1,this.$_renderFace(n,r),this.$_renderHands(n,r),n.options.active&&!n.getTime()?this._runner||(this._runner=setInterval((function(){var t=i._prevSec;i.$_renderHands(i.model,i._exts),sS(t-i._prevSec)>=1&&i._secondView.visible&&n.chart.animatable()&&n.secondHand.options.animatable&&i.$_moveSecond(t)}),1e3)):this._runner&&(clearInterval(this._runner),this._runner=void 0)},e.prototype.$_renderFace=function(t,e){var i=this._labelView,n=e.cx,r=e.cy,o=e.rd,s=this._rimThick=this._rimView.visible?this.model.rim.getThickness(o):0;this._faceView.setCircle(n,r,o),this._rimView.visible&&(this._rimView.internalSetStyleOrClass(t.rim._style),this._rimView.setSector({cx:n,cy:r,rx:o,ry:o,innerRadius:1-s/o,start:0,angle:2*Math.PI,clockwise:!0}));var a=o-s,l=a-this.model.tick.length,u=VS,h=PS/12;if(this._tickViews.forEach((function(t,e){t.setLine(n+tS(u)*a,r+eS(u)*a,n+tS(u)*l,r+eS(u)*l),u+=h})),!this._minorTickViews.isEmpty){var p=0;l=a-this.model.minorTick.length,u=VS,h=PS/60,this._minorTickViews.forEach((function(t){p%5==0&&(u+=h,p++),t.setLine(n+tS(u)*a,r+eS(u)*a,n+tS(u)*l,r+eS(u)*l),u+=h,p++}))}if(!this._tickLabelViews.isEmpty){var c=12/this._tickLabelViews.count,f=PS/12*c;u=VS,this._tickLabelViews.get(0).text="12",l=a-(this.model.tick.length+this.model.tickLabel.options.offset||0),l-=.5*this._tickLabelViews.get(0).getBBox().height,this._tickLabelViews.forEach((function(t,e,i){t.text=String(0===e?12:e*c),t.trans(n+tS(u)*l,r+eS(u)*l),u+=f}))}this._pinView.setCircle(n,r,t.pin.raidus),i.setVis(t.label.visible)&&(i.internalSetStyleOrClass(t.label._style),t.label.buildSvg(i,null,NaN,NaN,null,null),"bottom"===t.label.options.position?i.trans(n,r+l/2):i.trans(n,r-l/2))},e.prototype.$_getNow=function(){var t=this.model.options.timezone,e=this.model.getTime()||new Date;if(!isNaN(t)){var i=e.getMinutes()+(e.getTimezoneOffset()+t);e.setMinutes(i)}return e},e.prototype.$_renderHands=function(t,e){var i,n,r,o,s=this.$_getNow(),a=s.getHours(),l=s.getMinutes(),u=s.getSeconds(),h=e.cx,p=e.cy,c=e.rd,f=new eE;i=t.hourHand,(n=this._hourView).setVis(i.visible)&&(o=PS*(a/12+l/60/12+u/60/60/12),r=i.getLength(c-this._rimThick),f.rect(-i.options.thickness/2,-r,i.options.thickness,r),n.internalSetStyleOrClass(i._style),n.setPath(f.close(!0)).trans(h,p).rotate(o*AS)),i=t.minuteHand,(n=this._minuteView).setVis(i.visible)&&(o=PS*(l/60+u/60/60),r=i.getLength(c-this._rimThick),f.rect(-i.options.thickness/2,-r,i.options.thickness,r),n.internalSetStyleOrClass(i._style),n.setPath(f.close(!0)).trans(h,p).rotate(o*AS)),i=t.secondHand,(n=this._secondView).setVis(i.visible)&&(o=this._secRate<1?PS*(this._aniSec+this._secRate)/60:PS*u/60,r=i.getLength(c-this._rimThick),f.rect(-i.options.thickness/2,-r,i.options.thickness,r),n.internalSetStyleOrClass(i._style),n.setPath(f.close(!0)).trans(h,p).rotate(o*AS),this._prevSec=u)},e.prototype.$_moveSecond=function(t){if(!isNaN(t)){this._aniSec=t;var e=new LN(this);e.duration=this.model.secondHand.options.duration||200,e.start()}},e}(OL),ON=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.getTooltipPos=function(){return{x:this.point.xPos,y:this.point.yPos}},e.prototype.beginHover=function(t,e){this._saveRadius=this._radius},e.prototype.setHoverRate=function(t,e,i){var n=this.point,r=(+t.model.marker.options.hoverScale||1.8)-1,o=this._radius;e?isNaN(i)||(o=this._radius=this._saveRadius*(1+i*r)):o=this._radius=this._saveRadius*(1+r-(isNaN(i)?r:r*i)),bk.setShape(this,t.model.getShape(n),o,o),this.index>0?this.trans(n.px2-o,n.py2-o):this.trans(n.xPos-o,n.yPos-o)},e.prototype.endHover=function(t,e){this._radius=this._saveRadius},e.prototype.distance=function(t,e,i){var n=0===this.index?this.point.xPos:this.point.px2,r=0===this.index?this.point.yPos:this.point.py2;return this.point.isNull?Number.MAX_VALUE:Math.sqrt(Math.pow(n-e,2)+Math.pow(r-i,2))-t},e.prototype.distance2=function(t,e,i,n){var r=0===this.index?this.point.xPos:this.point.px2,o=0===this.index?this.point.yPos:this.point.py2;return this.point.isNull?Number.MAX_VALUE:n?Math.abs(o-i):Math.abs(r-e)},e}(pN),MN=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e}(QL),TN=function(t){function e(e,i){var n=t.call(this,e,i)||this;return n._needBelow=!1,n._rangeClips=[],n.insertFirst(n._lineContainer=new MN(e,"rct-line-series-lines")),n._lineContainer.add(n._line=new RP(e,"rct-line-series-line")),n._markers=new KE(n._pointContainer,ON),n}return Dx(e,t),e.prototype.getClipContainer=function(){return this._lineContainer},e.prototype._getPointPool=function(){return this._markers},e.prototype.needDecoreateLegend=function(){return!0},e.prototype.decoreateLegend=function(t){var e=getComputedStyle(this._line.dom),i=t._marker;i._line.setStyle("strokeWidth",e.strokeWidth),i._shape?(i._marker.internalSetStyles(this.model.marker._style),i._line.setStyle("strokeDasharray","")):i._line.setStyle("strokeDasharray",e.strokeDasharray)},e.prototype._prepareSeries=function(t,e){e instanceof IC&&this._prepareBelow(e),!this._simpleMode&&this.$_prepareMarkers(e,this._visPoints)},e.prototype._prepareViewRanges=function(e){t.prototype._prepareViewRanges.call(this,e),this._prepareRanges(e,e._runRanges)},e.prototype._renderSeries=function(t,e){this._lineContainer.invert(this._inverted,e),this._layoutMarkers(this._visPoints,t,e),this.model.prepareLines(this._visPoints)},e.prototype._doAfterLayout=function(){this._layoutLines()},e.prototype._runShowEffect=function(t){this._polar?t&&$L.grow(this):t&&$L.reveal(this,{from:function(t){var e=t.model._xAxisObj.reversed;return t._inverted?e?"top":"bottom":e?"right":"left"}(this)})},e.prototype._doViewRateChanged=function(t){this._layoutMarkers(this._visPoints,this.width,this.height),this._layoutLines()},e.prototype.getPointsAt=function(t,e){return[]},e.prototype.getNearest=function(t,e){var i=this.model.marker.options.radius,n=this._markers._internalItems();if(n&&n.length>0){var r=n.reduce((function(n,r){return n.distance(i,t,e)<r.distance(i,t,e)?n:r}));return{pv:r,dist:r.distance(i,t,e)}}},e.prototype.getNearest2=function(t,e,i){var n=this.model.marker.options.radius,r=this._markers._internalItems();if(r&&r.length>0){var o=r.reduce((function(r,o){return r.distance2(n,t,e,i)<o.distance2(n,t,e,i)?r:o}));return{pv:o,dist:o.distance2(n,t,e,i)}}},e.prototype.getHintDistance=function(){return this.model.marker.options.hintDistance},e.prototype.canHover=function(t,e,i){return t<=this.model.marker.options.radius+i},e.prototype._markersPerPoint=function(){return 1},e.prototype._prepareBelow=function(t){var e,i,n=this.control,r=this._lowLine;if(this._needBelow=t.options.belowStyle&&t._minY<t.getBaseValue(t._yAxisObj),this._needBelow)return r||(this._lineContainer.insertChild(r=this._lowLine=new RP(this.doc,"rct-line-series-line rct-line-series-line-below"),this._line),this._upperClip=n.clipBounds(),this._lowerClip=n.clipBounds(),this._upperClip.setAttr(LP.ASSET_KEY,"1"),this._lowerClip.setAttr(LP.ASSET_KEY,"1")),this._line.setClip(this._upperClip),r.setClip(this._lowerClip),!0;null==r||r.setClip(),this._line.setClip(),null===(e=this._upperClip)||void 0===e||e.remove(),null===(i=this._lowerClip)||void 0===i||i.remove()},e.prototype._prepareRanges=function(t,e){var i=this._rangeClips,n=this._rangeLines;if(e){for(n||(n=this._rangeLines=new KE(this._lineContainer,RP)),n.prepare(e.length);i.length<e.length;){var r=new TP(this.doc);r.setAttr(LP.ASSET_KEY,"1"),this.control.clipContainer().append(r.dom),i.push(r)}for(;i.length>e.length;)i.pop().remove()}else n&&(n.freeAll(),i.forEach((function(t){return t.remove()})),i.length=0)},e.prototype.$_resetClips=function(t,e,i,n){var r,o=this.model._yAxisObj.options.reversed;(r=this._upperClip)&&(n?o?r.setBounds(0,-i,e,t):r.setBounds(0,-t,e,t-i):o?r.setBounds(0,0+i,t,e-i):r.setBounds(0,0,t,i)),(r=this._lowerClip)&&(this._inverted?o?r.setBounds(0,-t,e,t):r.setBounds(0,-i,e,t-i):o?r.setBounds(0,0,t,i):r.setBounds(0,0+i,t,e-i))},e.prototype.$_prepareMarkers=function(t,e){var i=this,n=t instanceof IC&&this._needBelow,r=n?t.getBaseValue(t._yAxisObj):NaN,o=[t.marker._style,null];if(this._pointContainer.setVis(!t._simpleMode)){var s=this._markersPerPoint(),a=n&&t.options.belowStyle,l=e.length;this._markers.prepare(l*s,(function(s,u){var h=e[u%l];h.isNull||(s.point=h,o[1]=n&&h.yValue<r?a:null,i._setPointStyle(s,t,h,o)),s.point=h,s.index=u<l?0:1}))}else this._markers.prepare(0)},e.prototype._layoutMarker=function(t,e,i,n){var r=this.model,o=t.point,s=t._radius=r.getRadius(o);e&&t.internalSetStyleOrClass(e),bk.setShape(t,r.getShape(o),s,s),t.setPos(i,n),t.trans(i-=s,n-=s)},e.prototype._layoutMarkers=function(t,e,i){var n=this,r=this.model,o=r.marker,s=o._style,a=this._inverted,l=r.needClip(!1),u=this._getGrowRate(),h=o.visible,p=o.options.firstVisible,c=o.options.lastVisible,f=r.pointLabel,_=f.options.position,d=f.options.align,y=f.getAlignOffset(),g=f.getOffset(),v=this._labelContainer._textAlign,m=this._labelViews(),b=r._xAxisObj,w=r._yAxisObj,x=this._polar=r.chart._body.getPolar(b),S=!!x,P=w.prev(a?e:i),V=b.prev(x?x.rd*PS:a?i:e),k=a?0:i,A=t.length;t.forEach((function(t,r){var o,f,C,E;x?(C=x.start+b.getPos(V,t.xValue),E=w.getPos(x.rd,t.yGroup)*u,o=t.px=x.cx+E*tS(C),f=t.py=x.cy+E*eS(C)):(o=t.px=b.getPos(V,t.xValue),f=t.py=k-w.getPos(P,t.yGroup),a&&(o=w.getPos(P,t.yGroup),f=i-b.getPos(V,t.xValue))),t.xPos=o,t.yPos=f;var L=n._markers.get(r),N=m&&m.get(t,0);if(L&&L.setVis(!t.isNull&&(S||!l||o>=0&&o<=e&&f>=0&&f<=i))){n._layoutMarker(L,s,o,f);var O=0==r&&null!=p?p:r==A-1&&null!=c?c:h;if(L.setStyle("opacity",O?"1":"0"),N){N.setContrast(null).layout(v);var M=N.getBBox(),T=L._radius;if(N.visible=!0,x){switch(_){case"inside":E-=g;break;case"foot":E-=M.height/2+g;break;default:E+=M.height+g}o=x.cx+E*tS(C),f=x.cy+E*eS(C)-M.height/2,n.applyAutoRotation(N,C,x.total,b.options.totalAngle)}else switch(_){case"inside":f-=M.height/2+g;break;case"foot":f+=g+(h?T:0);break;default:f-=M.height+g+(h?T:0)}switch(d){case"left":o-=M.width+(h?T:0)+y;break;case"right":o+=(h?T:0)+y;break;default:o-=M.width/2+y}N.trans(o,f)}}else N&&N.setVis(!1)}))},e.prototype._layoutLines=function(){var t=this,e=this.model;if(this._lineContainer.setVis(e._lines.length>0)){var i=this.width,n=this.height,r=this._inverted,o=e instanceof IC&&this._needBelow,s=this._buildLines2(e._lines,this._polar);if(e._runRanges)this._rangeLines.forEach((function(o,a){var l=e._runRanges[a];o.setPath(s),o.internalClearStyleAndClass(),o.internalSetStyle("stroke",l.color),o.internalSetStyleOrClass(l.style),PP.setImportantStyle(o.dom.style,$S,"none"),o.setClip(t._rangeClips[a]),t._clipRange(i,n,e._runRangeValue,l,t._rangeClips[a],r)}));else{var a=this._line;a.setPath(s),a.internalClearStyleAndClass(),a.internalSetStyle("stroke",e._runColor),a.internalSetStyleOrClass(e._style),PP.setImportantStyle(a.dom.style,$S,"none")}if(o){var l=this._lowLine,u=e._yAxisObj,h=e.getBaseValue(u);r?this.$_resetClips(i,n,u.getPos(i,h),!0):this.$_resetClips(i,n,n-u.getPos(n,h),!1),l.setPath(s),l.internalClearStyleAndClass(),l.internalSetStyle("stroke",e._runColor),l.internalSetStyleOrClass(e._style),l.internalSetStyleOrClass(e.options.belowStyle),PP.setImportantStyle(l.dom.style,$S,"none")}}},e.prototype._buildLine2=function(t,e,i,n){var r=this.model;"spline"===e?this._drawCurve2(t,i,n):r instanceof IC&&"step"===e?this._drawStep2(t,i,n,i?r.backDir():r.options.stepDir):this._drawLine2(t,i,n)},e.prototype._buildLines2=function(t,e){var i=this.model,n=i.getLineType(),r=new eE;return"spline"===n?this._drawCurves(t,r):i instanceof IC&&"step"===n?this._drawSteps(t,r,i.options.stepDir):this._drawLines(t,r),r.end(e)},e.prototype._drawLine2=function(t,e,i){if(t.length>1){i.moveOrLine(e,t[0].px,t[0].py);for(var n=1;n<t.length;n++)this.model instanceof IC&&this.model.options.connectNullPoints&&t[n].isNull||i.line(t[n].px,t[n].py)}},e.prototype._drawLines=function(t,e){var i=this;t.forEach((function(t){return i._drawLine2(t,!1,e)}))},e.prototype._drawStep2=function(t,e,i,n){if(t.length>1){i.moveOrLine(e,t[0].px,t[0].py);for(var r=1;r<t.length;r++)switch(n){case"backward":i.line(t[r-1].px,t[r].py),i.line(t[r].px,t[r].py);break;case"center":i.line((t[r].px+t[r-1].px)/2,t[r-1].py),i.line((t[r].px+t[r-1].px)/2,t[r].py),r+1===t.length&&i.line(t[r].px,t[r].py);break;default:i.line(t[r].px,t[r-1].py),i.line(t[r].px,t[r].py)}}},e.prototype._drawSteps=function(t,e,i){var n=this;t.forEach((function(t){return n._drawStep2(t,!1,e,i)}))},e.prototype._drawCurve2=function(t,e,i){t.length>1&&(i.moveOrLine(e,t[0].px,t[0].py),this._drawSpline(t,0,t.length-1,i))},e.prototype._drawCurves=function(t,e){var i=this;t.forEach((function(t){return i._drawCurve2(t,!1,e)}))},e.prototype._drawCurve=function(t,e,i){var n,r=t.length;if(t&&t.length>1){var o=e;for(n=e;n<r;)if(t[n].isNull){n-1>o&&this._drawSpline(t,o,n-1,i);do{n++}while(n<r&&t[n].isNull);o=n,n<r&&(i.move(t[n].px,t[n].py),n++)}else n++;n-1>o&&this._drawSpline(t,o,n-1,i)}},e.prototype._buildAreas=function(t,e,i){var n=new eE;i=i||e;for(var r=0;r<t.length;r+=2){var o=t[r],s=t[r+1];this._buildLine2(o,e,!1,n),this._buildLine2(s,i,!0,n)}return n.end(!0)},e.prototype.setHoverStyle=function(e){t.prototype.setHoverStyle.call(this,e),e.internalImportantStylesOrClass(this.model.marker.options.hoverStyle)},e}(nN),RN=function(t){function e(i){var n=t.call(this,i,e.CLASS)||this;return n._flagView=new dL(i,"rct-line-series-flag"),n._pointContainer.add(n._flagView),n}return Dx(e,t),e.prototype._legendColorProp=function(){return"stroke"},e.prototype._doLayout=function(){t.prototype._doLayout.call(this);var e,i=this.model,n=i.flag,r=this._flagView;if(r.setVis(n.visible&&!!(e=n.label()))){r.setText(e),r.setModel(this.doc,n,null,null),r.layout("left");var o=n.options.offset,s=r.getBBox(),a=void 0,l=void 0;a=this._markers.last.x,l=this._markers.last.y,this._inverted?(i._xAxisObj.options.reversed?l+=o:l-=o+s.height,a-=s.width/2):(i._xAxisObj.options.reversed?a-=o+s.width:a+=o,l-=s.height/2),r.trans(a,l)}},e.CLASS="rct-line-series",e}(TN),BN=function(t){function e(e){var i=t.call(this,e,"rct-arearange-series")||this;return i.insertFirst(i._areaContainer=new MN(e,"rct-arearange-series-areas")),i._areaContainer.add(i._area=new RP(e,"rct-arearange-series-area")),i._lineContainer.add(i._lowerLine=new RP(e,"rct-areanrange-series-line")),PP.setImportantStyle(i._lowerLine.dom.style,"fill","none"),i}return Dx(e,t),e.prototype._markersPerPoint=function(){return 2},e.prototype.getSiblings=function(t){return[t,this._markers.find((function(e){return e!==t&&e.point===t.point}))]},e.prototype.getSibling=function(t){return t&&this._markers.find((function(e){return e!==t&&e.point===t.point}))},e.prototype.decoreateLegend=function(e){t.prototype.decoreateLegend.call(this,e);var i=getComputedStyle(this._area.dom);e._marker._area.setStroke("none"),e._marker._area.setFill(i.fill),e._marker._area.setStyle("fillOpacity",i.fillOpacity)},e.prototype._renderSeries=function(e,i){this._areaContainer.invert(this.model.chart.isInverted(),i),t.prototype._renderSeries.call(this,e,i)},e.prototype._layoutMarkers=function(e,i,n){t.prototype._layoutMarkers.call(this,e,i,n);var r=this.model,o=r.marker,s=o._style,a=o.visible,l=this._inverted;r._xAxisObj;for(var u=r._yAxisObj,h=l?i:n,p=l?0:n,c=0,f=e.length;c<f;c++){(d=e[c]).yLow=p-u.getPos(h,d.lowValue)}var _=this._markers;for(c=0,f=e.length;c<f;c++){var d=e[c],y=_.get(f+c),g=void 0,v=void 0;l?(g=d.px2=u.getPos(h,d.lowValue),v=d.py2=_.get(c).ty+r.getRadius(d)):(g=d.px2=d.xPos,v=d.py2=d.yLow),y&&y.setVis(!d.isNull&&g>=0&&g<=i&&v>=0&&v<=n)&&(this._layoutMarker(y,s,g,v),y.setStyle("opacity",a||0==c&&!0===o.options.firstVisible||c===f-1&&!0===o.options.lastVisible?"1":"0"))}},e.prototype._layoutLines=function(){t.prototype._layoutLines.call(this);var e=this._area,i=this.model;if(this._areaContainer.setVis(i._lines.length>0)){var n=this._buildAreas(i._lines,i.getLineType());e.setPath(n),e.unsetData("polar"),e.setBoolData("simple",this._simpleMode),e.internalClearStyleAndClass(),i._runColor&&e.setFill(i._runColor),this._setFill(e,i._style),i.options.areaStyle&&e.internalSetStyleOrClass(i.options.areaStyle)}},e}(TN),DN=function(t){function e(e,i){var n=t.call(this,e,i||"rct-area-series")||this;return n._rangeAreaClips=[],n.insertFirst(n._areaContainer=new MN(e,"rct-area-series-areas")),n._areaContainer.insertFirst(n._area=new RP(e,"rct-area-series-area")),n}return Dx(e,t),e.prototype.decoreateLegend=function(e){t.prototype.decoreateLegend.call(this,e);var i=getComputedStyle(this._area.dom);e._marker._area.setStroke("none"),e._marker._area.setFill(i.fill),e._marker._area.setStyle("fillOpacity",i.fillOpacity)},e.prototype.getClipContainer2=function(){return this._areaContainer},e.prototype._prepareBelow=function(e){var i=this._lowArea;if(t.prototype._prepareBelow.call(this,e))return i||this._areaContainer.add(i=this._lowArea=new RP(this.doc,"rct-area-series-area")),this._area.setClip(this._upperClip),i.setClip(this._lowerClip),!0;null==i||i.setClip(),this._area.setClip()},e.prototype._prepareRanges=function(e,i){t.prototype._prepareRanges.call(this,e,i);var n=this._rangeAreas,r=this._rangeAreaClips;if(i){for(n||(n=this._rangeAreas=new KE(this._areaContainer,RP,"rct-area-series-area")),n.prepare(i.length);r.length<i.length;){var o=new TP(this.doc);o.setAttr(LP.ASSET_KEY,"1"),this.control.clipContainer().append(o.dom),r.push(o)}for(;r.length>i.length;)r.pop().remove()}else n&&(n.freeAll(),r.forEach((function(t){return t.remove()})),r.length=0)},e.prototype._renderSeries=function(e,i){t.prototype._renderSeries.call(this,e,i),this.model.prepareAreas(),this._areaContainer.invert(this._inverted,i)},e.prototype._layoutMarkers=function(e,i,n){t.prototype._layoutMarkers.call(this,e,i,n);for(var r=this._inverted,o=this.model._yAxisObj,s=r?i:n,a=r?0:n,l=0,u=e.length;l<u;l++){var h=e[l];h.yLow=a-o.getPos(s,h.yGroup-h.yValue)}},e.prototype._doAfterLayout=function(){var e;null===(e=this.model._group)||void 0===e||e.prepareLines(this.model),t.prototype._doAfterLayout.call(this),this._polar?this._layoutPolar(this._area,this._visPoints):this.$_layoutArea(this._area)},e.prototype.$_layoutArea=function(t){var e=this,i=this.model,n=i.options;if(this._areaContainer.setVis(i._areas.length>0)){var r=this.width,o=this.height,s=i.chart.isInverted(),a=this._needBelow?this._lowArea:void 0,l=this._buildAreas(i._areas,i.getLineType());i._runRanges?this._rangeAreas.forEach((function(t,n){var a=i._runRanges[n];t.setBoolData("simple",e._simpleMode),t.setPath(l),t.internalClearStyleAndClass(),t.setFill(a.color),e._setFill(t,a.style),a.areaStyle&&t.internalSetStyleOrClass(a.areaStyle),t.setClip(e._rangeAreaClips[n]),e._clipRange(r,o,i._runRangeValue,a,e._rangeAreaClips[n],s)})):(t.setPath(l),t.unsetData("polar"),t.setBoolData("simple",this._simpleMode),t.internalClearStyleAndClass(),i._runColor&&t.internalSetStyle($S,i._runColor),this._setFill(t,n.style),i.options.areaStyle&&t.internalSetStyleOrClass(n.areaStyle)),a&&(a.setBoolData("simple",this._simpleMode),a.setPath(l),a.internalClearStyleAndClass(),i._runColor&&a.internalSetStyle($S,i._runColor),n.areaStyle&&a.internalSetStyleOrClass(n.areaStyle),this._setFill(a,i.options.belowStyle),n.belowAreaStyle&&a.internalSetStyleOrClass(n.belowAreaStyle))}},e.prototype._layoutPolar=function(t,e){var i=this.model,n=i._group,r=i._yAxisObj,o=r instanceof MA?i.getBaseValue(r):NaN,s=this.height;r.getPos(s,_S.isNotEmpty(o)?o:r.axisMax());var a=new eE;if(!n||"stack"!==n.options.layout&&"fill"!==n.options.layout){a.move(e[0].xPos,e[0].yPos);for(l=1;l<e.length;l++)a.line(e[l].xPos,e[l].yPos);t.setPath(a.end())}else{a.move(e[0].xPos,e[0].yLow),a.line(e[0].xPos,e[0].yPos);for(var l=1;l<e.length;l++)a.line(e[l].xPos,e[l].yPos);a.line(e[e.length-1].xPos,e[e.length-1].yLow);for(var l=e.length-1;l>=0;l--)a.line(e[l].xPos,e[l].yLow);t.setPath(a.end())}t.setBoolData("polar",!0),t.clearStyleAndClass(),t.setFill(i._runColor),t.addStyleOrClass(i._style)},e}(TN),FN=function(t){function e(e){var i=t.call(this,e,"rct-barrange-series")||this;return i._bars=new KE(i._pointContainer,sN),i}return Dx(e,t),e.prototype._getPointPool=function(){return this._bars},e.prototype._prepareSeries=function(e,i){t.prototype._prepareSeries.call(this,e,i),this._rd=+i.options.cornerRadius||0},e.prototype._preparePoints=function(t,e,i){var n=this;this._bars.prepare(i.length,(function(t,r){var o=t.point=i[r];n._setPointStyle(t,e,o)}))},e.prototype._getLowValue=function(t){return t.lowValue},e.prototype._layoutPoint=function(t,e,i,n,r,o){t.wPoint=r,t.hPoint=o,t.layout(i,n+o,this._rd,this._rd)},e}(hN),IN=function(t){function e(e){return t.call(this,e,nN.POINT_CLASS)||this}return Dx(e,t),e.prototype.savePrevs=function(){},e}(CL),jN=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._labelInfo={},e}return Dx(e,t),e.prototype._getPointPool=function(){return this.chart().isPolar()?this._sectors:this._bars},e.prototype._preparePoints=function(t,e,i){e.chart.isPolar()?this.$_parepareSectors(t,e,this._visPoints):this.$_parepareBars(t,e,this._visPoints)},e.prototype._setPointStyle=function(e,i,n){t.prototype._setPointStyle.call(this,e,i,n),n.yValue<i.options.baseValue&&i.options.belowStyle&&e.addStyleOrClass(i.options.belowStyle)},e.prototype._layoutPoints=function(e,i){this.model.chart.isPolar()?this.$_layoutSectors():t.prototype._layoutPoints.call(this,e,i)},e.prototype.$_parepareBars=function(t,e,i){var n=this;this._bars||(this._bars=this._createBarPool(this._pointContainer)),this._bars.prepare(i.length,(function(t,r){var o=t.point=i[r];n._setPointStyle(t,e,o)}))},e.prototype.$_parepareSectors=function(t,e,i){var n=this;this._sectors||(this._sectors=new KE(this._pointContainer,IN)),this._sectors.prepare(i.length,(function(t,r){var o=t.point=i[r];n._setPointStyle(t,e,o)}))},e.prototype.$_layoutSectors=function(){var t,e,i,n,r=this,o=this.model,s=this._getGrowRate(),a=o.pointLabel,l=this._labelViews(),u=o.chart._body,h=o._xAxisObj,p=o._yAxisObj,c=u.getPolar(h),f=h.getTotalAngle(),_=c.cx,d=c.cy;l&&(t=this._labelInfo,e=o.getLabelPos(a),i=o.getLabelOff(a.getOffset()),n=this._labelContainer._textAlign),this._sectors.forEach((function(a,u){var y=a.point,g=p.getPos(c.rd,y.yValue)*s,v=p.getPos(c.rd,y.yGroup)*s,m=h.getUnitLen(f,y.xValue),b=o.getPointWidth(m),w=c.start+h.getPos(f,y.xValue);if(w+=o.getPointPos(m),a.setSector({cx:_,cy:d,rx:v,ry:v,innerRadius:(v-g)/v,start:w-b/2,angle:b,clockwise:!0}),w=a.start+a.angle/2,y.xPos=_+a.rx*tS(w),y.yPos=d+a.ry*eS(w),l&&(t.labelView=l.get(y,0))){t.labelView.layout(n);var x=t.labelView.getBBox(),S=void 0;"outside"===e?(v=d+(a.ry+x.height+i)*eS(w),S=_+(a.rx+x.width+i)*tS(w)):"head"===e?(v=d+(a.ry-x.height/2-i)*eS(w)-x.height/2,S=_+(a.rx-x.height/2-i)*tS(w)):(v=d+.7*a.ry*eS(w)-x.height/2,S=_+.7*a.rx*tS(w)),r.applyAutoRotation(t.labelView,w,c.total,h.options.totalAngle),t.labelView.trans(S-x.width/2,v)}}))},e}(uN),$N=function(t){function e(e){return t.call(this,e,"rct-bar-series")||this}return Dx(e,t),e.prototype._createBarPool=function(t){return new KE(t,sN)},e.prototype._prepareSeries=function(e,i){t.prototype._prepareSeries.call(this,e,i),this._rdTop=+i.options.topRadius||0,this._rdBottom=+i.options.bottomRadius||0},e.prototype._layoutPoint=function(t,e,i,n,r,o){t.wPoint=r,t.hPoint=o,t.layout(i,n,this._rdTop,this._rdBottom)},e}(jN),zN=function(t){function e(e){return t.call(this,e,"rct-bellcurve-series")||this}return Dx(e,t),e}(DN),HN=function(t){function e(e){return t.call(this,e,nN.POINT_CLASS+" rct-boxplot-point")||this}return Dx(e,t),e.prototype.layout=function(t,e){var i=this.point,n=i.yValue-i.minValue,r=t/2,o=0+e-e*(i.lowValue-i.minValue)/n,s=0+e-e*(i.highValue-i.minValue)/n,a=e*(i.highValue-i.lowValue)/n;i.color&&this._box.setFill(i.color),this.x=this.tx+r,this._stemUp.setVLine(r,0,s),this._stemDown.setVLine(r,o,e),this._min.setHLine(0,t/4,3*t/4),this._max.setHLine(0+e,t/4,3*t/4),this._box.setBox(0,s,t,a),this._mid.setHLine(0+e-e*(i.midValue-i.minValue)/n,0,t)},e.prototype._doInitChildren=function(t){this.add(this._stemUp=new OC(t,"rct-boxplot-point-stem")),this.add(this._stemDown=new OC(t,"rct-boxplot-point-stem")),this.add(this._box=new wk(t,"rct-boxplot-point-box")),this.add(this._mid=new OC(t,"rct-boxplot-point-mid")),this.add(this._min=new OC(t,"rct-boxplot-point-min")),this.add(this._max=new OC(t,"rct-boxplot-point-max"))},e}(aN),GN=function(t){function e(e){var i=t.call(this,e,"rct-boxplot-series")||this;return i._boxes=new KE(i._pointContainer,HN),i}return Dx(e,t),e.prototype._getPointPool=function(){return this._boxes},e.prototype._getLowValue=function(t){return t.minValue},e.prototype._preparePoints=function(t,e,i){var n=this;this._boxes.prepare(i.length,(function(t,r){var o=t.point=i[r];n._setPointStyle(t,e,o)}))},e.prototype._layoutPoint=function(t,e,i,n,r,o){t.trans(i-r/2,n),t.layout(r,o)},e}(hN),WN=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e}(pN),YN=function(t){function e(e){return t.call(this,e,"rct-bubble-series")||this}return Dx(e,t),e.prototype._createMarkers=function(t){return new KE(t,WN)},e.prototype._prepareSeries=function(t,e){this.$_prepareMarkers(e,this._visPoints)},e.prototype._renderSeries=function(t,e){this.$_layoutMarkers(t,e)},e.prototype._runShowEffect=function(t){t&&$L.grow(this)},e.prototype._doViewRateChanged=function(t){this.$_layoutMarkers(this.width,this.height)},e.prototype.$_prepareMarkers=function(t,e){var i=this;t.getShape();var n=e.length;this._markers.prepare(n,(function(n,r){var o=n.point=e[r];i._setPointStyle(n,t,o)}))},e.prototype._getAutoPos=function(t){return t?"outside":"inside"},e.prototype.$_layoutMarkers=function(t,e){var i,n=this,r=this.model,o=r.options,s=this._inverted,a=r.needClip(!1),l=this._getGrowRate(),u=+o.rotation||0,h=r.pointLabel,p=h.options.position,c=h.getOffset(),f=this._labelContainer._textAlign,_=this._labelViews(),d=r._xAxisObj,y=r._yAxisObj,g=this._polar=r.chart._body.getPolar(d),v=y.prev(s?t:e),m=d.prev(g?g.rd*PS:s?e:t),b=(r._xAxisObj._vlen<r._yAxisObj._vlen?r._xAxisObj:r._yAxisObj)._vlen,w=r.getPixelMinMax(b),x=w.min,S=w.max,P=s?0:e,V=this._getDrawer(o.shape);this._markers.forEach((function(o,h){var b=o.point,w=_&&(i=_.get(b,0));if(o.setVis(!b.isNull&&!isNaN(b.zValue))){var k=(o._radius=r.getRadius(b.zValue,x,S))*l,A=void 0,C=void 0;if(g){var E=g.start+d.getPos(PS,b.xValue),L=y.getPos(g.rd,b.yValue);A=g.cx+L*tS(E),C=g.cy+L*eS(E)}else A=d.getPos(m,b.xValue),C=P-y.getPos(v,b.yValue),s&&(A=y.getPos(v,b.yValue),C=e-d.getPos(m,b.xValue));b.xPos=A,b.yPos=C,o.setVis(!a||A>=0&&A<=t&&C>=0&&C<=e)?(o.setPath(V(k)).trans(A,C).rotate(u),w&&(i.setContrast(o.dom).layout(f),n._layoutLabelView(i,p,c,k,A,C))):w&&w.setVis(!1)}else w&&w.setVis(!1)}))},e.prototype.getNearest=function(t,e){var i=this._markers._internalItems().reduce((function(i,n){return i.distance(i._radius,t,e)<n.distance(n._radius,t,e)?i:n}));return{pv:i,dist:i.distance(i._radius,t,e)}},e.prototype.canHover=function(t,e,i){return t<=e._radius+i},e}(cN),XN=function(t){function e(e){return t.call(this,e,nN.POINT_CLASS)||this}return Dx(e,t),e.prototype.layout=function(t,e){var i=this.point,n=i.yValue-i.lowValue,r=0+e-e*(0===n?1:(rS(i.openValue,i.closeValue)-i.lowValue)/n),o=0+e-e*(0===n?1:(oS(i.openValue,i.closeValue)-i.lowValue)/n),s=rS(o,r),a=oS(1,sS(r-o)),l=i.close<i.open;this.x=this.tx+0,this._wickUpper.setVLine(0,0,o),this._wickLower.setVLine(0,r,e),this._body.setBox(-t/2,s,t,a),this.setBoolData("decline",l)},e.prototype._doInitChildren=function(t){this.add(this._wickUpper=new OC(t,"rct-candlestick-point-wick")),this.add(this._wickLower=new OC(t,"rct-candlestick-point-wick")),this.add(this._body=new wk(t))},e}(aN),UN=function(t){function e(e){var i=t.call(this,e,"rct-candlestick-series")||this;return i._sticks=new KE(i._pointContainer,XN),i}return Dx(e,t),e.prototype._getPointPool=function(){return this._sticks},e.prototype._getLowValue=function(t){return t.lowValue},e.prototype._preparePoints=function(t,e,i){var n=this;this._sticks.prepare(i.length,(function(t,r){var o=t.point=i[r];n._setPointStyle(t,e,o)}))},e.prototype._setPointColor=function(t,e){t._body.setColor(e)},e.prototype._setPointStyle=function(e,i,n,r){t.prototype._setPointStyle.call(this,e,i,n,r),n.closeValue<n.openValue&&i.options.declineStyle&&e.addStyleOrClass(i.options.declineStyle)},e.prototype._layoutPoint=function(t,e,i,n,r,o){t.trans(i,n),t.layout(r,o)},e}(hN),qN=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.layout=function(t,e,i){var n=new eE;n.circle(t,e,i),this.setPath(n.end())},e}(rN),ZN=function(t){function e(e){return t.call(this,e,"rct-circlebar-series")||this}return Dx(e,t),e.prototype._createBarPool=function(t){return new KE(t,qN)},e.prototype._layoutPoint=function(t,e,i,n,r,o){t.layout(i,n-o/2,o/2-1)},e}(jN),KN=function(t){function e(e){var i=t.call(this,e,nN.POINT_CLASS)||this;return i.add(i._line=new OC(e,"rct-dumbbell-point-bar")),i.add(i._hmarker=new RP(e,"rct-dumbbell-point-marker")),i.add(i._lmarker=new RP(e,"rct-dumbbell-point-marker")),i}return Dx(e,t),e.prototype.layout=function(t,e,i,n){var r=this._hmarker,o=this._lmarker,s=this.point,a=s.radius,l=s.lowRadius,u=i/2;t._style&&r.setStyleOrClass(t._style),t._style&&o.setStyleOrClass(t._style),e._style&&o.internalSetStyleOrClass(e._style);var h=t.getMarkerStyle(s);h&&r.internalSetStyleOrClass(h),(h=e.getMarkerStyle(s))&&o.internalSetStyleOrClass(h),this.x=this.tx+u,this._line.setVLine(u,0,n),bk.setShape(r,s.shape,a,a),bk.setShape(o,s.lowShape,l,l),r.trans(u-a,0-a),o.trans(u-l,n-a)},e}(aN),JN=function(t){function e(e){var i=t.call(this,e,"rct-dumbbell-series")||this;return i._bars=new KE(i._pointContainer,KN),i}return Dx(e,t),e.prototype._getPointPool=function(){return this._bars},e.prototype._getLowValue=function(t){return t.lowValue},e.prototype._preparePoints=function(t,e,i){var n=this;this._bars.prepare(i.length,(function(t,r){var o=t.point=i[r];n._setPointStyle(t,e,o)}))},e.prototype._layoutPoint=function(t,e,i,n,r,o){t.trans(i-r/2,n),t.layout(this.model.marker,this.model.lowMarker,r,o)},e.prototype._setPointColor=function(t,e){t._line.setStyle("stroke",e),t._hmarker.setFill(e),t._lmarker.setFill(e)},e}(hN),QN=function(t){function e(e){var i=t.call(this,e,nN.POINT_CLASS)||this;return i._segments=new KE(i,RP),i._decimal=0,i.add(i._back=new wk(e)),i._back.setTransparent(!0),i}return Dx(e,t),e.prototype.prepareSegments=function(t,e,i,n){this._decimal=i,this._segments.prepare(Math.round(e)).forEach((function(t,e){}))},e.prototype.layout=function(t,e,i){var n=this,r=this.wPoint,o=this.hPoint,s=o<0?Math.max:Math.min;e-=r/2,o<0&&(t=t.map((function(t){return-t}))),this._back.setBounds(e,i-o,r,o),this._segments.forEach((function(a,l,u){l===u-1&&n._decimal>0?a.setPath(bk.rectangle(e,i-t[2*l],r,o<0?s(1,n._decimal):s(-1,-n._decimal))):a.setPath(bk.rectangle(e,i-t[2*l],r,s(-1,t[2*l]-t[2*l+1])))}))},e.prototype.savePrevs=function(){this.wSave=this.wPoint,this.xSave=this.x},e}(uL),tO=function(t){function e(e){var i=t.call(this,e,"rct-equalizer-series")||this;return i._bars=new KE(i._pointContainer,QN),i}return Dx(e,t),e.prototype._getPointPool=function(){return this._bars},e.prototype._preparePoints=function(t,e,i){this.$_parepareBars(e,i)},e.prototype._layoutPoints=function(e,i){var n=this.model._yAxisObj.prev(this._inverted?e:i)*this._getGrowRate();this.$_buildSegments(this.model,n),t.prototype._layoutPoints.call(this,e,i)},e.prototype._layoutPoint=function(t,e,i,n,r,o){var s=this._prevRate;isNaN(s+t.wSave)||(r=t.wSave+(r-t.wSave)*s),isNaN(s+t.xSave)||(i=t.xSave+(i-t.xSave)*s),t.wPoint=r,t.hPoint=o,t.layout(this._pts,i,n)},e.prototype.$_parepareBars=function(t,e){var i=this;this._bars.prepare(e.length,(function(n,r){var o=n.point=e[r];i._setPointStyle(n,t,o)}))},e.prototype.$_buildSegments=function(t,e){var i,n,r=t.options,o=t._yAxisObj.axisMax(),s=r.segmented,a=r.segmentGap||0,l=this._pts=[],u=0;for(n=r.maxCount>0?r.maxCount:Math.round(e/(t.getSegmentSize(e)+a/2)),i=(e-a*(n-1))/n;l.length<2*n;)l.push(u,u+i),u+=i+a;l[l.length-1]=e;var h=l.length/2;this._bars.forEach((function(t){var n=t.point;if(t.setVis(!n.isNull)){for(var a=n.yValue/o,u=-1,p=0,c=0;c<h-1;c++)if(a>=l[2*c]/e&&a<l[2*(c+1)]/e){u=c+1,p=!s&&a<l[2*c+1]/e?a*e-l[2*c]:i;break}u<0&&(u=h,p=i),t.prepareSegments(h,u,p,r.backStyle)}}))},e}(uN),eO=function(t){function e(e){return t.call(this,e,nN.POINT_CLASS)||this}return Dx(e,t),e.prototype._doInitChildren=function(t){this.add(this._stem=new OC(t)),this.add(this._whiskerUp=new OC(t)),this.add(this._whiskerDown=new OC(t)),this.add(this._back=new wk(t,"rct-errorbar-point-back")),this._back.setTransparent(!1)},e.prototype.layout=function(t,e){var i=t/2;this.x=this.tx+i,this._stem.setVLine(i,0,e),this._whiskerUp.setHLine(0,0,t),this._whiskerDown.setHLine(e,0,t),this._back.setBox(0,0,t,e)},e}(aN),iO=function(t){function e(e){var i=t.call(this,e,"rct-errorbar-series")||this;return i._bars=new KE(i._pointContainer,eO),i}return Dx(e,t),e.prototype._getPointPool=function(){return this._bars},e.prototype._getLowValue=function(t){return t.lowValue},e.prototype._preparePoints=function(t,e,i){var n=this;this._bars.prepare(i.length,(function(t,r){var o=t.point=i[r];n._setPointStyle(t,e,o)}))},e.prototype._layoutPoint=function(t,e,i,n,r,o){t.trans(i-r/2,n),t.layout(r,o)},e}(hN),nO=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e}(rN),rO=function(t){function e(e){var i=t.call(this,e,"rct-funnel-series")||this;return i._segments=new KE(i._pointContainer,nO),i.add(i._lineContainer=new JL(e)),i}return Dx(e,t),e.prototype._getPointPool=function(){return this._segments},e.prototype._prepareSeries=function(e,i){t.prototype._prepareSeries.call(this,e,i),this.$_prepareSegments(e,i,this._visPoints),this._lineContainer.prepare(i)},e.prototype._renderSeries=function(t,e){this.$_calcRates(this._visPoints),this.$_layoutSegments(t,e)},e.prototype._runShowEffect=function(t){t&&$L.reveal(this,{from:this.model.options.reversed?"bottom":"top"})},e.prototype._resizeZombie=function(){t.prototype._resizeZombie.call(this),this._renderSeries(this.width,this.height)},e.prototype._animationStarted=function(e){t.prototype._animationStarted.call(this,e),this._lineContainer.setVis(this._labelContainer.visible)},e.prototype.$_prepareSegments=function(t,e,i){var n=this;this._segments.prepare(i.length,(function(r,o){var s=r.point=i[o];n._preparePoint(t,e,s,r)}))},e.prototype.$_calcRates=function(t){var e=this,i=t.length,n=0,r=0;if(t.forEach((function(t){n+=t.yValue*(t===e._zombie?e._zombieRate:1)})),i>1||i>0&&!this._zombie){for(var o=0;o<i-1;o++){var s=LS((a=t[o]).yValue*(a===this._zombie?this._zombieRate:1)/n)||0;a.yRate=100*s,a.yPos=r,a.height=s,r+=s}t[o].yPos=r,t[o].height=1-r}else if(1==i){var a=t[0];r=1-(s=LS(this._zombieRate)),a.yRate=100*s,a.yPos=r,a.height=s,a.yPos=r,a.height=1-r}},e.prototype.$_layoutSegments=function(t,e){var i,n,r=this,o=function(t){return d?w+(k-w)*(S-t)/(S-A):w+(k-w)*(t-x)/(A-x)},s=this.model,a=this._labelViews(),l=s.pointLabel,u="inside"===s.getLabelPos(l),h=l.getOffset(),p=l.getDistance(),c=l.getAlign(),f=null==a?void 0:a.textAlign(),_=this._lineContainer.setVis(l.connector.visible)?this._lineContainer:null,d=s.options.reversed,y=l.options.opposite,g=s.getSize(t,e),v=s.getNeckSize(g.width,g.height),m=new eE,b=s.getCenter(t,e),w=b.x-g.width/2,x=b.y-g.height/2,S=x+g.height,P=w+g.width/2,V=g.height-v.height,k=w+(g.width-v.width)/2,A=this._yNeck=d?S-V:x+V,C=[],E=new eE,L=(null==a?void 0:a.getWidth(0))||0;this._lineContainer.setVis(a&&!u),this._segments.forEach((function(s){var l=s.point;if(s.setVis(!l.isNull)){var b=l.yPos*g.height,w=(l.yPos+l.height)*g.height,N=d?S-b:x+b,O=d?S-w:x+w,M=void 0,T=void 0,R=void 0,B=void 0;n=null==_?void 0:_.get(l),b>=V?(T=(M=k)+v.width,m.move(M,N).lines(T,N,T,O,M,O),s.ny=s.nx1=NaN):w<V?(T=(M=o(N))+2*(P-M),B=(R=o(O))+2*(P-R),m.move(M,N).lines(T,N,B,O,R,O),s.ny=NaN,s.nx1=R-M,s.nx2=B-M):(T=(M=o(N))+2*(P-M),B=(R=k)+v.width,m.move(M,N).lines(T,N,B,A,B,O,R,O,R,A),s.nx1=R-M,s.nx2=B-M,s.ny=sS(A-N),s.nx3=R,s.nx4=B),s.setPath(m.close(!0)),l.xPos=P,l.yPos=N+(O-N)/2,a&&(i=a.get(l,0))&&i.visible?(u?(null==n||n.setVis(!1),r.$_layoutLabelInner(i,l.xPos,l.yPos,f)):-1===c?r.$_layoutLabelAligned(!1,l,s,i,f,y,n,E,g,P,h,p):1==c?r.$_layoutLabelEnded(!1,l,s,i,f,y,n,E,P,h,p,L,t,e):r.$_layoutLabelOutside(!1,l,s,i,f,y,n,E,P,h,p),i.setContrast(u&&s.dom),C.push(i),i.setPosY(i.ty)):null==n||n.setVis(!1)}}));var N=l.options.convergable,O=l.options.dedupeMode,M=l.options.overflow;a&&(u||0===c?"preserveOrder"!==O&&"LargestFirst"!==O||a.dedupe(C,_,O):(null==a?void 0:a.arrangeVertical(C,_,e,N,O,M))&&this._segments.forEach((function(o){var s=o.point;s.isNull||(i=a.get(s,0),n=null==_?void 0:_.get(s),(null==i?void 0:i.visible)&&(-1===c?r.$_layoutLabelAligned(!0,s,o,i,f,y,n,E,g,P,h,p):1==c?r.$_layoutLabelEnded(!0,s,o,i,f,y,n,E,P,h,p,L,t,e):r.$_layoutLabelOutside(!0,s,o,i,f,y,n,E,P,h,p)))})))},e.prototype.$_calcX=function(t,e,i,n){var r=e.getBBox(),o=n?-1:1,s=i+o*r.width/2;return isNaN(e.ny)?isNaN(e.nx1)||(s-=o*(e.nx1*r.height/2)/r.height):e.ny>r.height/2?s-=o*(e.nx1*r.height/2)/e.ny:s=n?e.nx3:e.nx4,s},e.prototype.$_layoutLabelAligned=function(t,e,i,n,r,o,s,a,l,u,h,p){var c=n.isDomAnimating(),f=t?n.getBBoxEx():n.getBBox(),_=e.yPos;!t&&!c&&n.layout(r||(o?"right":"left"));var d=e.xPos=this.$_calcX(e,i,u,o),y=u;o?y-=l.width/2:y+=l.width/2;var g=t?f.y+f.height/2-_:0;o?s.setLine(a.reset(0,0).line(y-d-p,g).end()):s.setLine(a.reset(0,0).line(y+p-d,g).end()),s.trans(d,_),t||(o?y-=h+p+f.width:y+=p+h,n.trans(y,_-f.height/2))},e.prototype.$_layoutLabelEnded=function(t,e,i,n,r,o,s,a,l,u,h,p,c,f){var _=n.isDomAnimating(),d=t?n.getBBoxEx():n.getBBox(),y=e.yPos;!t&&!_&&n.layout(r||(o?"right":"left")),!t&&!_&&n.layout(r||(o?"right":"left"));var g,v=this.$_calcX(e,i,l,o);g=o?h+u+p:c-h-p-u;var m=t?d.y+d.height/2-y:0;o?s.setLine(a.reset(0,0).line(g-v-h,m).end()):s.setLine(a.reset(0,0).line(g+h-v,m).end()),s.trans(v,y),t||(o?g-=u+h+d.width:g+=h+u,n.trans(g,y-d.height/2))},e.prototype.$_layoutLabelOutside=function(t,e,i,n,r,o,s,a,l,u,h){var p=n.isDomAnimating(),c=t?n.getBBoxEx():n.getBBox(),f=e.yPos;!t&&!p&&n.layout(r||(o?"right":"left"));var _=this.$_calcX(e,i,l,o),d=t?c.y+c.height/2-f:0;o?s.setLine(a.reset(0,0).line(-h,d).end()):s.setLine(a.reset(0,0).line(h,d).end()),s.trans(_,f),t||(o?_-=h+u+c.width:_+=h+u,n.trans(_,f-c.height/2))},e.prototype.$_layoutLabelInner=function(t,e,i,n){var r=t.isDomAnimating(),o=t.getBBox();!r&&t.layout(n||"center"),t.trans(e-o.width/2,i-o.height/2)},e}(_N),oO=function(t){function e(e){return t.call(this,e,nN.POINT_CLASS)||this}return Dx(e,t),e}(wk),sO=function(t){function e(e){var i=t.call(this,e,"rct-heatmap-series")||this;return i._cells=new KE(i._pointContainer,oO),i}return Dx(e,t),e.prototype._getPointPool=function(){return this._cells},e.prototype._prepareSeries=function(t,e){this.$_parepareCells(e,this._visPoints)},e.prototype._renderSeries=function(t,e){this._pointContainer.invert(this._inverted,e),this.$_layoutCells(t,e)},e.prototype._runShowEffect=function(t){t&&$L.grow(this)},e.prototype._doViewRateChanged=function(t){this.$_layoutCells(this.width,this.height)},e.prototype.$_parepareCells=function(t,e){var i=this,n=new SP(t._calcedColor),r=[{fill:void 0}],o=t._heatMin,s=t._heatMax-o;this._cells.prepare(e.length,(function(a,l){var u=a.point=e[l];r[0].fill=n.brighten(1-(u.zValue-o)/s).toString(),i._setPointStyle(a,t,u,r)}))},e.prototype.$_layoutCells=function(t,e){var i=this.model,n=this._inverted,r=this._getGrowRate();i.pointLabel;var o=this._labelViews(),s=this._labelContainer._textAlign,a=i._xAxisObj,l=i._yAxisObj,u=n?t:e,h=n?e:t,p=n?0:e;this._cells.forEach((function(t){var e=t.point;if(t.setVis(!e.isNull)){var i=a.getUnitLen(h,e.xValue)*r,c=l.getUnitLen(u,e.yValue)*r,f=a.getPos(h,e.xValue)-i/2,_=p-l.getPos(u,e.yValue)-c/2,d=void 0;if(e.xPos=n?p+l.getPos(u,e.yValue):f+i/2,e.yPos=n?h-a.getPos(h,e.xValue)+i/2:_+c/2,t.setBounds(f,_,i,c),o&&(d=o.get(e,0))){d.layout(s);var y=d.getBBox();n?(_=h-a.getPos(h,e.xValue)-y.height/2,f=p+l.getPos(u,e.yValue)):(f+=i/2,_+=(c-y.height)/2),f-=y.width/2,d.trans(f,_)}}}))},e}(nN),aO=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.layout=function(t,e){this.setPath(bk.rect({x:t-this.wPoint/2,y:e,width:this.wPoint,height:-this.hPoint}))},e}(oN),lO=function(t){function e(e){var i=t.call(this,e,"rct-histogram-series")||this;return i._bars=new KE(i._pointContainer,aO),i}return Dx(e,t),e.prototype._getPointPool=function(){return this._bars},e.prototype._preparePoints=function(t,e,i){this.$_parepareBars(t,e,i)},e.prototype._layoutPoint=function(t,e,i,n,r,o){t.wPoint=r,t.hPoint=o,t.layout(i,n)},e.prototype._layoutPoints=function(t,e){var i=this,n=this.model,r=this._inverted,o=this._getGrowRate(),s=n.pointLabel,a=this._labelViews(),l=n._xAxisObj,u=n._yAxisObj,h=r?t:e,p=r?e:t,c=u.getPos(h,n.getBaseValue(u)),f=r?0:e,_=a&&Kx(this._labelInfo,{inverted:r,labelPos:n.getLabelPos(s),labelOff:n.getLabelOff(s.getOffset()),textAlign:this._labelContainer._textAlign});this._getPointPool().forEach((function(n,s){var d=n.point,y=l.getPos(p,d.min),g=l.getPos(p,d.max),v=u.getPos(h,d.yValue),m=g-y+(g>y?-1:1),b=v-c,w=y+(g-y)/2,x=f;d.xPos=w,d.yPos=x-=v,i._layoutPoint(n,s,w,x+b,m,b*o),_&&(_.labelView=a.get(d,0))&&(r&&(x=p-w,w=f,d.yPos=x,d.xPos=w+=u.getPos(h,d.yGroup)),_.pointView=n,_.x=w,_.y=x,_.wPoint=m,_.hPoint=b,i._layoutLabel(_,t,e))}))},e.prototype.$_parepareBars=function(t,e,i){var n=this;this._bars.prepare(i.length,(function(t,r){var o=t.point=i[r];n._setPointStyle(t,e,o)}))},e.prototype.$_layoutBars=function(t,e){var i=this.model._xAxisObj,n=this.model._yAxisObj,r=this.height,o=this._getGrowRate();this._bars.forEach((function(s,a){var l=s.point,u=i.getPos(t,l.min),h=i.getPos(t,l.max),p=u+(h-u)/2,c=n.getPos(e,s.point.yValue)*o,f=oS(1,h-u-1);l.xPos=p,l.yPos=r-c,s.wPoint=f,s.hPoint=c,s.layout(p,r)}))},e}(lN),uO=function(t){function e(e){var i=t.call(this,e,nN.POINT_CLASS)||this;return i.add(i._line=new OC(e,"rct-lollipop-point-bar")),i.add(i._marker=new RP(e,"rct-lollipop-point-marker")),i}return Dx(e,t),e.prototype.layout=function(t){var e=this.point.radius;this._line.setVLine(0,0,t),bk.setShape(this._marker,this.point.shape,e,e),this._marker.trans(-e,-e)},e.prototype.savePrevs=function(){this.xSave=this.tx},e}(uL),hO=function(t){function e(e){return t.call(this,e,"rct-lollipop-series")||this}return Dx(e,t),e.prototype._getPointPool=function(){return this._bars},e.prototype._preparePoints=function(t,e,i){this.$_parepareBars(t,e,i)},e.prototype._layoutPoint=function(t,e,i,n,r,o){t.trans(i,n-o),t.layout(o)},e.prototype._setPointColor=function(t,e){t._line.setStyle("stroke",e),t._marker.setFill(e)},e.prototype.$_parepareBars=function(t,e,i){var n=this,r=e.marker,o=r._style;r.options.styleCallback,this._bars||(this._bars=new KE(this._pointContainer,uO)),this._bars.prepare(i.length,(function(t,s){var a=t.point=i[s];n._setPointStyle(t,e,a),o&&t._marker.setStyleOrClass(o);var l=r.getMarkerStyle(a);l&&t.internalSetStyleOrClass(l)}))},e}(uN),pO=function(t){function e(e){return t.call(this,e,nN.POINT_CLASS)||this}return Dx(e,t),e.prototype.layout=function(t,e){var i=this.point,n=i.yValue-i.lowValue,r=-t/2,o=0+e-e*(rS(i.openValue,i.closeValue)-i.lowValue)/n,s=0+e-e*(oS(i.openValue,i.closeValue)-i.lowValue)/n,a=i.close<i.open;this.x=this.tx+0,this._back.setBox(r,0,t,e),this._tickOpen.setHLine(o,r,0),this._tickClose.setHLine(s,0,t/2),this._bar.setVLine(0,0,0+e),this.setBoolData("decline",a)},e.prototype._doInitChildren=function(t){this.add(this._tickOpen=new OC(t,"rct-ohlc-point-tick")),this.add(this._tickClose=new OC(t,"rct-ohlc-point-tick")),this.add(this._bar=new OC(t)),this.add(this._back=new wk(t,"rct-ohlc-point-back")),this._back.setTransparent(!1)},e}(aN),cO=function(t){function e(e){var i=t.call(this,e,"rct-ohlc-series")||this;return i._sticks=new KE(i._pointContainer,pO),i}return Dx(e,t),e.prototype._getPointPool=function(){return this._sticks},e.prototype._getLowValue=function(t){return t.lowValue},e.prototype._preparePoints=function(t,e,i){this.$_prepareSticks(e,i)},e.prototype._layoutPoint=function(t,e,i,n,r,o){t.trans(i,n),t.layout(r,o)},e.prototype._setPointStyle=function(e,i,n,r){t.prototype._setPointStyle.call(this,e,i,n,r),n.closeValue<n.openValue&&i.options.declineStyle&&e.addStyleOrClass(i.options.declineStyle)},e.prototype.$_prepareSticks=function(t,e){var i=this;this._sticks.prepare(e.length,(function(n,r){var o=n.point=e[r];i._setPointStyle(n,t,o)}))},e}(hN),fO=function(t){function e(e){return t.call(this,e,"rct-pareto-series")||this}return Dx(e,t),e}(TN),_O=function(t){function e(e){return t.call(this,e,nN.POINT_CLASS)||this}return Dx(e,t),e.prototype.setPieSector=function(t,e,i){this._assignShape(i,!1),this.polygon=bk.sectorPolygon(i.cx,i.cy,i.rx,i.ry,i.innerRadius,i.start,i.start+i.angle,i.clockwise)},e}(CL),dO=function(t){function e(e){var i=t.call(this,e,"rct-pie-series")||this;return i._sectors=new KE(i._pointContainer,_O,null,.5),i._pb=new eE,i._cx=0,i._cy=0,i._rd=0,i._rdInner=0,i._slicedOff=0,i.add(i._circle=new VL(e)),i._circle.setStyles({stroke:"#aaa",fill:"none",strokeDasharray:"2"}),i.add(i._textView=new dL(e,"rct-pie-series-inner")),i._textView._text.anchor=BP.MIDDLE,i._labelContainer.add(i._lineContainer=new JL(e)),i}return Dx(e,t),e.prototype._getPointPool=function(){return this._sectors},e.prototype._setPointColor=function(t,e){t.setFill(e)},e.prototype._prepareSeries=function(e,i){t.prototype._prepareSeries.call(this,e,i);var n=i.innerText;this.$_prepareSectors(e,i,this._visPoints),this._lineContainer.prepare(i),this._textView.setVis(i.hasInner()&&n.visible)&&(this._textView.setModel(e,n,null,null),n.buildSvg(this._textView._text,this._textView._outline,NaN,NaN,i,null))},e.prototype._renderSeries=function(t,e){isNaN(this.model._groupPos)?this.$_calcNormal(t,e):this.$_calcGroup(t,e),this.$_layoutSectors(this._visPoints,t,e)},e.prototype.$_calcNormal=function(t,e){this._rd=this.model.getRadius(t,e),this._rdInner=this.model.getInnerRadius(this._rd)},e.prototype.$_calcGroup=function(t,e){var i=this.model,n=i._group,r=Math.floor(n.getPolarSize(t,e)/2),o=n.getInnerRadius(r)*r,s=r-o;this._rd=o+(i._groupPos+i._groupSize)*s,this._rdInner=(o+i._groupPos*s)/this._rd},e.prototype._runShowEffect=function(t){var e=this;t&&$L.grow(this,(function(t){var i=e._sectors.find((function(t){return t.point.sliced}));i&&(i.trans(0,0),e.$_slice(i,e.model.options.autoSlice,!1))}))},e.prototype._doPointClicked=function(t){if(t instanceof _O&&this.model.options.autoSlice){var e=this._sectors.find((function(t){return t.point.sliced}));e&&this.$_slice(e,!1,!0),t!==e&&this.$_slice(t,!0,!0)}else this.invalidate()},e.prototype._doViewRateChanged=function(t){this.$_layoutSectors(this._visPoints,this.width,this.height)},e.prototype._resizeZombie=function(){t.prototype._resizeZombie.call(this),this._renderSeries(this.width,this.height)},e.prototype.getClipContainer=function(){return null},e.prototype.$_prepareSectors=function(t,e,i){var n=this;this._sectors.prepare(i.length,(function(r,o){var s=r.point=i[o];n._preparePoint(t,e,s,r)}))},e.prototype.$_calcAngles=function(t){var e=this,i=t.length,n=this.model.options.clockwise?1:-1,r=t.filter((function(t){return(t.visible||t===e._zombie)&&!t.isNull})).map((function(t){return t===e._zombie?t.yValue*e._zombieRate:t.yValue})).reduce((function(t,e){return t+e}),0),o=this.model._totalRad*this._getGrowRate(),s=this.model._startRad;if(i>1||i>0&&!this._zombie)t.forEach((function(t){t.isNull||(t.yRate=LS(t===e._zombie?t.yValue*e._zombieRate:t.yValue)/r||0,t.startAngle=s,s+=t.angle=n*t.yRate*o)}));else if(1==i){var a=t[0];a.startAngle=s,a.angle=n*this._zombieRate*o}},e.prototype.$_layoutSectors=function(t,e,i){var n,r,o=this,s=this.model,a=s.options.clockwise,l=this._getGrowRate(),u=s.getCenter(e,i),h=this._cx=u.x,p=this._cy=u.y,c=this._rd,f=this._rdInner,_=s.pointLabel,d=this._labelViews(),y="inside"===s.getLabelPos(_),g=aS(_.options.radius,.7),v=this._pb,m=_.getDistance(y,c,f),b=_.getAlign(),w=null==d?void 0:d.textAlign(),x=this._lineContainer.setVis(_.connector.visible)?this._lineContainer:null,S=this._slicedOff=s.getSliceOffset(c)*l,P=[],V=[],k=[],A=(null==d?void 0:d.getWidth(0))||0;if(this._wPlot=e,this._hPlot=i,!d||w||b||(w="center"),this._textView.visible){var C=this._textView.getBBox();this._textView.trans(h,p-C.height/2)}this._circle.setVis(this._sectors.isEmpty)&&this._circle.setCircle(this._cx,this._cy,this._rd),this.$_calcAngles(t),this._sectors.forEach((function(t){var u=t.point;if(r=null==x?void 0:x.get(u),u.isNull)t.setVis(!1),d&&(n=d.get(u,0))&&n.setVis(!1),null==r||r.setVis(!1);else{var _=u.startAngle+u.angle/2,C=u.startAngle,E=0,L=0;if(u.sliced&&l>=1&&!t.isDomAnimating()){var N=C+u.angle/2;E+=tS(N)*S,L+=eS(N)*S}if(t.trans(E,L).setVis(!0),u.xPos=h+tS(_)*(S+c*g),u.yPos=p+eS(_)*(S+c*g),t.setPieSector(d,null,{cx:h,cy:p,rx:c,ry:c,innerRadius:f,start:C,angle:sS(u.angle),clockwise:a}),d&&(n=d.get(u,0))){var O=s.getLabelOff2(u);y?(null==r||r.setVis(!1),o.$_layoutLabelInside(u,n,w,O,m,u.sliced?S:0)):(-1===b?o.$_layoutLabelAligned(!1,u,n,w,r,v,O,m,u.sliced?S:0):1==b?o.$_layoutLabelEnded(!1,u,n,w,r,v,O,m,u.sliced?S:0,A,e,i):o.$_layoutLabelOutside(!1,u,n,w,r,v,O,m,u.sliced?S:0))?P.push(n):V.push(n),n.setContrast(y&&t.dom).setVis(!0),k.push(n)}else null==r||r.setVis(!1)}}));var E=_.options.convergable,L=_.options.dedupeMode,N=_.options.overflow;d&&(y||0===b?"preserveOrder"!==L&&"LargestFirst"!==L||d.dedupe(k,x,L):(null==d?void 0:d.arrangeVertical(P,x,i,E,L,N))+(null==d?void 0:d.arrangeVertical(V,x,i,E,L,N))>0&&this._sectors.forEach((function(t){var a=t.point;if(!a.isNull){var l=s.getLabelOff2(a);n=d.get(a,0),r=null==x?void 0:x.get(a),(null==n?void 0:n.visible)&&(-1===b?o.$_layoutLabelAligned(!0,a,n,w,r,v,l,m,a.sliced?S:0):1==b?o.$_layoutLabelEnded(!0,a,n,w,r,v,l,m,a.sliced?S:0,A,e,i):o.$_layoutLabelOutside(!0,a,n,w,r,v,l,m,a.sliced?S:0))}})))},e.prototype.$_layoutLabelAligned=function(t,e,i,n,r,o,s,a,l){var u=i.isDomAnimating(),h=this.model.pointLabel.connector.options.curved,p=e.startAngle+e.angle/2,c=this._cx,f=this._cy,_=this._rd,d=_+l,y=c+tS(p)*d,g=f+eS(p)*d,v=y<c;!t&&!u&&i.layout(n||(v?"right":"left"));var m,b,w=i.getBBox(),x=g-w.height/2,S=f+eS(p)*_;if(v?(b=(m=c+tS(Math.PI)*_-a)-w.width-s,c+tS(Math.PI)*d-a,w.width):(b=(m=c+tS(0)*_+a)+s,c+tS(0)*d+a),r&&r.setVis(d>0)){var P=t?i.ty-x:0;h?r.setLine(o.reset(0,P).quad(.7*(y-m),P,y-m,0).end()):r.setLine(o.reset(0,P).line(y-m,0).end()),r.setPos(m,S),!u&&r.trans(m,g)}return t||(i.setPos(b,S-w.height/2),!u&&i.trans(b,S-w.height/2)),v},e.prototype.$_layoutLabelEnded=function(t,e,i,n,r,o,s,a,l,u,h,p){var c=i.isDomAnimating(),f=this.model.pointLabel.connector.options.curved,_=e.startAngle+e.angle/2,d=this._cx,y=this._cy,g=this._rd,v=g+l,m=d+tS(_)*v,b=y+eS(_)*v,w=m<d;!t&&!c&&i.layout(n||(w?"right":"left"));var x,S,P,V=i.getBBox(),k=b-V.height/2,A=y+eS(_)*g;if(w?(x=a+u+s,S=a+u-V.width,P=x):(S=h-a-u,P=x=h-a-u-s),r&&r.setVis(v>0)){var C=t?i.ty-k:0;f?r.setLine(o.reset(0,C).quad(0,C,m-P,0).end()):r.setLine(o.reset(0,C).line(m-P,0).end()),r.setPos(x,A),!c&&r.trans(P,b)}return t||(i.setPos(S,A-V.height/2),!c&&i.trans(S,A-V.height/2)),w},e.prototype.$_layoutLabelOutside=function(t,e,i,n,r,o,s,a,l){var u=i.isDomAnimating();!t&&!u&&i.layout(n);var h,p,c=this.model.pointLabel.connector.options.curved,f=i.getBBox(),_=e.startAngle+e.angle/2,d=this._cx,y=this._cy,g=this._rd+.5*a,v=tS(_)*l,m=eS(_)*l,b=d+tS(_)*this._rd,w=y+eS(_)*this._rd,x=d+tS(_)*g,S=y+eS(_)*g,P=x<d;return p=h=P?x-.2*a:x+.2*a,r&&r.setVis(g>0)&&(t&&i.ty,c?r.setLine(o.reset(0,0).quad(x-b,S-w,h-b,S-w).end()):r.setLine(o.reset(0,0).lines(x-b,S-w,h-b,S-w).end()),r.setPos(b,w),!u&&r.trans(b+v,w+m)),t||(P?p-=f.width+s:p+=s,S-=f.height/2,i.setPos(p,S),!u&&i.trans(p+v,S+m)),P},e.prototype.$_layoutLabelInside=function(t,e,i,n,r,o){!e.isDomAnimating()&&e.layout(i||"center");var s=this.model,a=s.pointLabel,l=a.options.autoRotation,u=a.options.rotationMode,h=s.options.clockwise,p=e.getBBox(),c=this._rd*this._rdInner,f=t.startAngle+t.angle/2;if(l){var _=s._totalRad,d=s.options.totalAngle||360;if("angle"===u){var y=f/_*d+90,g=(y+s.options.startAngle)%360;y+=(g+=h?0:360)>180?90:-90,e.setRotation(p.width/2,p.height/2,y)}else this.applyAutoRotation(e,f,_,d)}var v=a.options.align===Pk?.3:a.options.align===Sk?.5:.7,m=c>0?c+(this._rd-c)/2:l?"angle"===u?this._rd*v+n:.8*this._rd+n:.7*this._rd+n,b=Math.cos(f),w=Math.sin(f),x=this._cx+b*m,S=this._cy+w*m;e.move(x-p.width/2,S-p.height/2),x=this._cx+b*(o+m),S=this._cy+w*(o+m),e.trans(x-p.width/2,S-p.height/2)},e.prototype.$_slice=function(t,e,i){var n=this.model,r=this._labelViews(),o=n.pointLabel.getAlign(),s=this._slicedOff,a=n.options.autoSlice?n.options.sliceDuration:0,l=t.point,u=l.startAngle+l.angle/2;if((l.sliced=e)?t.transEx(tS(u)*s,eS(u)*s,a):t.transEx(0,0,a),r){var h=n.pointLabel,p=this._lineContainer,c="inside"===n.getLabelPos(h),f=r.get(l,0),_=n.pointLabel.getDistance(c,this._rd,this._rdInner);if(f){var d=!c&&p.get(l);if(i){var y=r.textAlign();!r||y||o||(y="center"),c?this.$_layoutLabelInside(l,f,y,h.getOffset(),_,s):0===o&&this.$_layoutLabelOutside(!1,l,f,y,d,this._pb,h.getOffset(),_,s)}if(e){var g=f.tx,v=f.ty,m=d.tx,b=d.ty;(c||0===o)&&(f.trans(f.x,f.y).transEx2(g,v,a),d&&d.trans(d.x,d.y).transEx(m,b,a))}else(c||0===o)&&(f.trans(f.tx,f.ty).transEx2(f.x,f.y,a),d&&d.trans(d.tx,d.ty).transEx(d.x,d.y,a))}}},e}(_N),yO=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.setHoverRate=function(t,e,i){var n=this.point,r=t._getDrawer(t.model.getShape(this.point)),o=(+t.model.options.hoverScale||1.8)-1,s=t._radius;e?this._radius=s=t._radius*(1+(isNaN(i)?1:i)*o):s=t._radius*(1+o-(isNaN(i)?o:o*i)),this.setPath(r(s)),this.trans(n.xPos,n.yPos)},e.prototype.endHover=function(t,e){delete this._radius},e}(pN),gO=function(t){function e(e){return t.call(this,e,"rct-scatter-series")||this}return Dx(e,t),e.prototype._createMarkers=function(t){return new KE(t,yO)},e.prototype._prepareSeries=function(t,e){this.$_prepareMarkers(e,this._visPoints)},e.prototype._renderSeries=function(t,e){this.$_layoutMarkers(t,e)},e.prototype._runShowEffect=function(t){t&&(this._polar,$L.grow(this))},e.prototype.$_prepareMarkers=function(t,e){var i=this,n=e.length;this._pointContainer.setFill(t._runColor),this._markers.prepare(n,(function(n,r){var o=n.point=e[r];i._setPointStyle(n,t,o)}))},e.prototype._getAutoPos=function(t){return"outside"},e.prototype._doViewRateChanged=function(t){this.$_layoutMarkers(this.width,this.height)},e.prototype.$_layoutMarkers=function(t,e){var i,n=this,r=this.model,o=r.options,s=this._inverted,a=r.needClip(!1),l=r._xAxisObj,u=r._yAxisObj,h=this._polar=r.chart._body.getPolar(l),p=this._getGrowRate(),c=this._radius=Math.max(0,+r.options.radius||0)*p,f=+o.rotation||0,_=+o.jitterX||0,d=+o.jitterY||0,y=r.pointLabel,g=y.options.position,v=y.getOffset(),m=this._labelViews(),b=u.prev(s?t:e),w=l.prev(h?h.rd*PS:s?e:t),x=s?0:e;this._markers.forEach((function(o,y){var S=o.point,P=m&&(i=m.get(S,0));if(o.setVis(!S.isNull)){var V=n._getDrawer(r.getShape(S)),k=_S.jitter(S.xValue,_),A=_S.jitter(S.yGroup,d),C=void 0,E=void 0;if(h){var L=h.start+l.getPos(PS,k),N=u.getPos(h.rd,A)*p;C=h.cx+N*tS(L),E=h.cy+N*eS(L)}else C=l.getPos(w,k),E=x-u.getPos(b,A),s&&(C=u.getPos(b,A),E=e-l.getPos(w,k));S.xPos=C,S.yPos=E,o.setVis(!!h||!a||C>=0&&C<=t&&E>=0&&E<=e)?(o.setPath(V(o._radius||c)),o.trans(C,E).rotate(f),P&&n._layoutLabelView(i,g,v,c,C,E)):P&&P.setVis(!1)}else P&&P.setVis(!1)}))},e.prototype.getNearest=function(t,e){var i=this.model.options.radius,n=this._markers._internalItems().reduce((function(n,r){return n.distance(i,t,e)<r.distance(i,t,e)?n:r}));return{pv:n,dist:n.distance(i,t,e)}},e.prototype.canHover=function(t,e,i){return t<=this.model.options.radius+i},e}(cN),vO=function(t){function e(e){return t.call(this,e,nN.POINT_CLASS)||this}return Dx(e,t),Object.defineProperty(e.prototype,"point",{get:function(){return this.node.point},enumerable:!1,configurable:!0}),e.prototype.render=function(t){if(1!==t){var e=Object.assign({},this.node);e.width*=t,e.height*=t,e.x+=(this.node.width-e.width)/2,e.y+=(this.node.height-e.height)/2,this.setRect(e)}else this.setRect(this.node)},e}(wk);!function(t){function e(){return null!==t&&t.apply(this,arguments)||this}Dx(e,t)}(vO);var mO=function(t){function e(e){var i=t.call(this,e,"rct-treemap-series")||this;return i._nodeViews=new KE(i._pointContainer,vO),i}return Dx(e,t),e.prototype._lazyPrepareLabels=function(){return!0},e.prototype._getPointPool=function(){return this._nodeViews},e.prototype._prepareSeries=function(t,e){},e.prototype._renderSeries=function(t,e){this._pointContainer.invert(this._inverted,e),this._rootView?this.$_renderGroups(t,e):this.$_renderLeafs(t,e)},e.prototype._runShowEffect=function(t){t&&$L.grow(this)},e.prototype._doViewRateChanged=function(t){this._rootView?this.$_renderGroups(this.width,this.height):this.$_renderLeafs(this.width,this.height)},e.prototype.$_renderLeafs=function(t,e){var i=this,n=this.model,r=n._xAxisObj,o=n._yAxisObj,s=this._inverted;n.pointLabel;var a=this._getGrowRate(),l=this._labelViews(),u=s?t:e,h=s?e:t,p=n.buildMap(h,u);p.roots;var c,f=p.leafs,_=new SP(n._calcedColor),d=[{fill:""}];null==l||l.prepare(this.doc,this);var y=this._labelContainer._textAlign;this._nodeViews.prepare(f.length,(function(t,e,p){var g=f[e],v=g.point,m=g.parent,b=_;m&&(!m._color&&m.point.color?b=m._color=new SP(m.point.color):m._color&&(b=m._color)),t.node=g,d[0].fill=b.brighten(g.index/p).toString(),i._setPointStyle(t,n,v,d),r.options.reversed&&(g.x=h-g.x-g.width),o.options.reversed&&(g.y=u-g.y-g.height),s&&(g.y=g.y-u),t.render(a);var w=g.x+g.width/2,x=g.y+g.height/2;if(v.xPos=s?-g.y-g.height/2:w,v.yPos=s?h-g.x-g.width/2:x,l&&(c=l.get(v,0))){c.setContrast(t.dom).layout(y);var S=c.getBBox();c.setVis(g.width>=S.height&&g.height>=S.height)&&(s?(w=-g.y-g.height/2-S.width/2,x=h-g.x-(g.width+S.height)/2):(w-=S.width/2,x-=S.height/2),c.trans(w,x))}}))},e.prototype.$_renderGroups=function(t,e){},e}(nN),bO=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype.layout=function(t,e,i,n){var r,o=this.point._len,s=o*n,a=.5,l=(o-s)/2;switch(t){case"none":r=[0,l-a*s,0,l+a*s];break;case"open":r=[0,l-.45*s,0-.15*s,l-.2*s,0,l-a*s,0+.15*s,l-.2*s,0,l-.45*s,0,l+a*s];break;default:var u=.3;r=[0,l-u*s,0-.1*s,l-u*s,0,l-a*s,0+.1*s,l-u*s,0,l-u*s,0,l+a*s]}for(var h=this.point._off*n,p=["M",r[0],r[1]+h],c=2;c<r.length;c+=2)p.push("L",r[c],r[c+1]+h);this.rotation=e,this.setPath(p)},e}(rN),wO=function(t){function e(e){var i=t.call(this,e,"rct-vector-series")||this;return i._arrows=new KE(i._pointContainer,bO),i}return Dx(e,t),e.prototype._getPointPool=function(){return this._arrows},e.prototype._prepareSeries=function(t,e){this.$_prepareArrows(e,this._visPoints)},e.prototype._renderSeries=function(t,e){var i=this.model,n=i.options.startAngle,r=i.options.arrowHead,o=i._xAxisObj,s=i._yAxisObj,a=this._inverted,l=a?t:e,u=a?e:t,h=this._getGrowRate(),p=a?0:e,c=o.options.reversed?-1:1,f=s.options.reversed;this._pointContainer.invert(a,e),this._arrows.forEach((function(t){var e=t.point;if(t.setVis(!e.isNull)){var i=o.getPos(u,e.xValue),_=p-s.getPos(l,e.yValue),d=n+e.angleValue*c;f&&(d=180-d),e.xPos=a?p+s.getPos(l,e.yValue):i,e.yPos=a?u-o.getPos(u,e.xValue):_,t.trans(i,_),t.layout(r,d,!1,h)}}))},e.prototype._runShowEffect=function(t){t&&$L.grow(this)},e.prototype._doViewRateChanged=function(t){this._renderSeries(this.width,this.height)},e.prototype.getPointsAt=function(t,e){return[]},e.prototype.$_prepareArrows=function(t,e){var i=this;this._arrows.prepare(e.length,(function(n,r){var o=n.point=e[r];i._setPointStyle(n,t,o)}))},e}(nN),xO=function(t){function e(e){var i=t.call(this,e,"rct-waterfall-series")||this;return i._bars=new KE(i._pointContainer,sN),i.add(i._lineContainer=new NP(e,"rct-waterfall-series-lines")),i._lines=new KE(i._lineContainer,OC),i}return Dx(e,t),e.prototype._getPointPool=function(){return this._bars},e.prototype._getLowValue=function(t){return t.low},e.prototype._prepareSeries=function(e,i){t.prototype._prepareSeries.call(this,e,i),this._rd=+i.options.cornerRadius||0},e.prototype._preparePoints=function(t,e,i){this.$_parepareBars(t,e,i)},e.prototype._layoutPoint=function(t,e,i,n,r,o){var s=t.point;if(t.wPoint=r,t.hPoint=o,n+=o,t.layout(i,n,this._rd,this._rd),e>0){var a=this._lines.get(e-1),l=s._isSum?n-o:s.y>=0?n:n-o;a.setHLine(l,this._xPrev+this._wPrev/2,i-r/2)}this._xPrev=i,this._wPrev=r},e.prototype._layoutPoints=function(e,i){this._inverted?this._lineContainer.dom.style.transform="translate(0px, ".concat(i,"px) rotate(90deg) scale(-1, 1)"):this._lineContainer.dom.style.transform="",t.prototype._layoutPoints.call(this,e,i)},e.prototype.$_parepareBars=function(t,e,i){var n=this;this._bars.prepare(i.length,(function(t,r){var o=t.point=i[r];n._setPointStyle(t,e,o),t.setStyleOrClass(o._isSum?"rct-waterfall-point-sum":o.y<0?"rct-waterfall-point-negative":"")})),this._lines.prepare(i.length-1,(function(t,e){t.visible=!i[e].isNull&&!i[e+1].isNull}))},e}(hN);function SO(t,e){return new(EL[e._type()])(t)}function PO(t,e){return new(tN[e._viewType()])(t)}nN.register([zC,DN],[GC,BN],[VC,$N],[xC,FN],[UC,zN],[ZC,GN],[JC,YN],[nE,UN],[oE,ZN],[uE,JN],[pE,tO],[cE,iO],[dE,rO],[gE,sO],[bE,lO],[IC,RN],[SE,hO],[VE,cO],[AE,fO],[NE,dO],[TE,gO],[IE,mO],[$E,wO],[HE,xO]),OL.register([pC,CN],[qA,mN],[nC,xN],[wC,NN],[cC,EN],[QA,wN],[rC,SN]),LL.register([VA,gN],[SA,dN],[PA,yN]);var VO,kO=function(t){function e(e){var i=t.call(this,e,"rct-axis-grid")||this;return i._lines=new KE(i,OC),i}return Dx(e,t),e.prototype._doMeasure=function(t,e,i,n,r){return{width:i,height:n}},e.prototype._doLayout=function(){var t,e=this.model,i=e.options,n=e.axis,r=this.width,o=this.height,s=n.isEmpty()?[]:e.getPoints(n,n._isHorz?r:o),a=this._lines.prepare(s.length,(function(t){t.internalClearStyleAndClass(),t.internalSetStyleOrClass(e._style),t.setClass("rct-axis-grid-line")})),l=a.count-1;a.forEach((function(t,e){t.setBoolData("first",0===e),t.setBoolData("last",s[e]===(n._isHorz?r:o))}));var u=null==i.firstVisible?e.visible:i.firstVisible,h=null==i.lastVisible?e.visible:i.lastVisible;n._isHorz?a.forEach((function(i,r){t=0===r?u:r===l?h:e.visible,i.setVis(t)&&i.setVLine(n.prev(s[r]),0,o)})):a.forEach((function(i,a){s[a],t=0===a?u:a===l?h:e.visible,i.setVis(t)&&i.setHLine(o-n.prev(s[a]),0,r)}))},e}(hL),AO=function(t){function e(e){var i=t.call(this,e,"rct-axis-break")||this;return i.add(i._mask=new RP(e)),i._mask.setStroke("none"),i.add(i._upLine=new RP(e)),i._upLine.setFill("none"),i.add(i._downLine=new RP(e)),i._downLine.setFill("none"),i}return Dx(e,t),e.prototype.setModel=function(t){this._model=t},e.prototype.layout=function(t,e,i){this._clip?this._clip.resize(t,e):this._clip=this.control.clipBounds(0,0,t,e),this.setClip(this._clip);var n=this._model._sect.len,r=new eE;if(i){var o=0,s=n/2,a=n;for(r.move(0,o);o<e;)o+=20,r.line(s,o),o+=20,r.line(0,o);for(this._downLine.setPath(r.end(!1)),o=0,r.clear().move(s,o);o<e;)o+=20,r.line(a,o),o+=20,r.line(s,o);for(this._upLine.setPath(r.end(!1)),o=0,r.clear().move(0,o);o<e;)o+=20,r.line(s,o),o+=20,r.line(0,o);for(r.line(s,o);o>=0;)o-=20,r.line(a,o),o-=20,r.line(s,o);this._mask.setPath(r.end())}else{var l=0,u=n/2,h=n;for(r.move(l,u);l<t;)l+=20,r.line(l,0),l+=20,r.line(l,u);for(this._upLine.setPath(r.end(!1)),l=0,r.clear().move(l,h);l<t;)l+=20,r.line(l,u),l+=20,r.line(l,h);for(this._downLine.setPath(r.end(!1)),l=0,r.clear().move(l,u);l<t;)l+=20,r.line(l,0),l+=20,r.line(l,u);for(r.line(l,h);l>=0;)l-=20,r.line(l,u),l-=20,r.line(l,h);this._mask.setPath(r.end())}},e}(LP),CO=function(t){function e(e){var i=t.call(this,e,"rct-axis-guide")||this;return i.add(i._labelView=new dL(e,"rct-axis-guide-label")),i}return Dx(e,t),e.prototype.vertical=function(){return this.model.axis._isHorz},e.prototype.prepare=function(t,e){this.model=e,this._labelView.setVis(!!e.label.options.text)&&(this._labelView.setModel(t,e.label,null,null),this._labelView.setStyles(e.label._style))},e.prototype.layout=function(t,e,i){this._labelView.visible&&(this.model.label.buildSvg(this._labelView._text,this._labelView._outline,t,e,null,null),this._labelView.layout(this.textAlign()||"center")),i?this._doLayoutPolar(t,e,i):this._doLayout(t,e)},e}(LP),EO=function(t){function e(e,i){var n=t.call(this,e)||this;return n.insertFirst(n._line=new(i?AL:OC)(e,"rct-axis-guide-line")),n}return Dx(e,t),e.prototype.prepare=function(e,i){t.prototype.prepare.call(this,e,i),this.setVis(i.visible&&i.axis.contains(i.options.value))&&this._line.setStyles(i._style)},e.prototype._doLayout=function(t,e){var i,n,r=this.model,o=r.options.value,s=r.label,a=s.options,l=this._line,u=this._labelView.setVis(s.visible)&&this._labelView,h=u.getBBox(),p=aS(a.offsetX,0),c=aS(a.offsetY,0);if(this.vertical()){var f=r.axis.getPos(t,o);if(u.setVis(l.setVis(!isNaN(f)))&&(l.setVLine(f,0,e),u)){switch(a.align){case"center":i=f-h.width/2+p;break;case"right":i=f+p;break;default:i=f-h.width-p}switch(a.verticalAlign){case"bottom":n="inside"===a.position?e-h.height-c:e+c;break;case"middle":n=(e-h.height)/2-c;break;default:n="inside"===a.position?c:-1*(h.height+c)}}}else{f=e-r.axis.getPos(e,o);if(u.setVis(l.setVis(!isNaN(f)))&&(l.setHLine(f,0,t),u)){switch(a.align){case"center":i=(t-h.width)/2-p;break;case"right":i="inside"===a.position?t-h.width-p:t+p;break;default:i="inside"===a.position?p:-1*(h.width+p)}switch(a.verticalAlign){case"bottom":n=f+c;break;case"middle":n=f-h.height/2-c;break;default:n=f-h.height-c}}}u.visible&&u.trans(i,n)},e.prototype._doLayoutPolar=function(t,e,i){var n=this.model,r=this._line,o=this._labelView.setVis(n.axis.contains(n.options.value)&&n.label.visible)&&this._labelView,s=n.axis.getStartAngle(),a=n.axis.getPos(i.rd,n.options.value);r.setArc(i.cx,i.cy,a,s,n.axis.getTotalAngle(),!1),r.setStyle($S,"none"),o&&o.trans(i.cx+a*tS(i.start),i.cy+a*eS(i.start))},e}(CO),LO=function(t){function e(e,i){var n=t.call(this,e)||this;return n.insertFirst(n._box=new(i?CL:xk)(e,"rct-axis-guide-range")),n}return Dx(e,t),e.prototype.prepare=function(e,i){t.prototype.prepare.call(this,e,i);var n=i.options,r=rS(n.startValue,n.endValue),o=oS(n.startValue,n.endValue);this._range=i.axis.trimRange(r,o),this.setVis(i.visible&&this._range[1]>this._range[0])&&this._box.setStyleOrClass(i._style)},e.prototype._doLayout=function(t,e){var i=this.model;i.options;var n=i.label,r=n.options,o=this._box,s=jx(this._range,2),a=s[0],l=s[1],u=this._labelView.setVis(n.visible)&&this._labelView,h=u.getBBox(),p=aS(r.offsetX,0),c=aS(r.offsetY,0);if(this.vertical()){var f=i.axis.getPos(t,a),_=i.axis.getPos(t,l);if(!isNaN(f)&&!isNaN(_)&&u.setVis(o.setVis(_!==f))){var d=void 0,y=void 0;switch(r.align){case"center":d=f+(_-f-h.width)/2+p;break;case"right":d=_-h.width-p;break;default:d=f+p}switch(r.verticalAlign){case"bottom":y="inside"===r.position?e-h.height-c:e+c;break;case"middle":y=(e-h.height)/2-c;break;default:y="inside"===r.position?c:-1*(h.height+c)}o.setBox(f,0,_,e),u&&u.trans(oS(0,rS(t,d)),y)}}else{var g=e-i.axis.getPos(e,a),v=e-i.axis.getPos(e,l);if(!isNaN(g)&&!isNaN(v)&&u.setVis(o.setVis(g!==v))){d=void 0,y=void 0;switch(r.align){case"center":d=(t-h.width)/2-p;break;case"right":d="inside"===r.position?t-h.width-p:t+p;break;default:d="inside"===r.position?p:-1*(h.width+p)}switch(r.verticalAlign){case"bottom":y=g-h.height-c;break;case"middle":y=v+(g-v-h.height)/2-c;break;default:y=v+c}u&&u.trans(d,y),o.setBox(0,v,t,g)}}},e.prototype._doLayoutPolar=function(t,e,i){var n=this.model,r=this._box,o=this._labelView.setVis(n.label.visible)&&this._labelView,s=n.axis.getStartAngle(),a=n.axis.getPos(i.rd,n.options.startValue),l=n.axis.getPos(i.rd,n.options.endValue);if(r.setSector({cx:i.cx,cy:i.cy,rx:l,ry:l,innerRadius:a/l,start:s,angle:PS,clockwise:!0}),o){var u=a+(l-a)/2;o.trans(i.cx+u*tS(i.start),i.cy+u*eS(i.start))}},e}(CO),NO=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._views=new KE(e,RP),e}return Dx(e,t),e.prototype.prepare=function(){this._rows=[]},e.prototype.addAll=function(t,e){var i=this._rows;e.forEach((function(t){i.push.apply(i,$x([],jx(t.grid.rows.getRows()),!1))}))},e.prototype.layout=function(t,e,i){var n=this._rows;this._views.prepare(n.length),this._views.forEach((function(i,r){var o=n[r];if(o.axis._isHorz){var s=o.axis.getPos(t,o.from),a=o.axis.getPos(t,o.to);i.setPath(bk.rectangle(s,0,a-s,e))}else{var l=o.axis.getPos(e,o.from),u=o.axis.getPos(e,o.to);i.setPath(bk.rectangle(0,e-l,t,l-u))}i.setFill(o.color)}))},e}(NP),OO=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._linePool=[],e._rangePool=[],e._views=[],e}return Dx(e,t),e.prototype.prepare=function(){for(var t=this._views;t.length;){var e=t.pop().remove();e instanceof LO?this._rangePool.push(e):this._linePool.push(e)}},e.prototype.setAll=function(t,e,i){var n=this;e.forEach((function(e){var r;e instanceof LV?r=n._rangePool.pop()||new LO(t,i):e instanceof EV&&(r=n._linePool.pop()||new EO(t,i)),n.add(r),r.prepare(t,e)}))},e.prototype.add=function(e){return this._views.push(e),t.prototype.add.call(this,e)},e}(NP),MO=function(t){function e(e){var i=t.call(this,e)||this;return i.ignorePointer(),i}return Dx(e,t),e.prototype.setModel=function(t){t!=this.model&&(this.model=t,this._bar=t.isBar(),this.setClass(this._bar?"rct-crosshair-bar":"rct-crosshair-line"))},e.prototype.layout=function(t,e,i,n,r){var o=this.model.axis,s=o._isHorz,a=new eE;if(this._bar){var l=o._isHorz?n:r,u=void 0;if(t?u=t.point.xValue:this.model.options.showAlways&&(u=o.options.reversed?o.xValueAt(s?n-e:i):o.xValueAt(s?e:r-i)),o instanceof jk&&(u=Jx(u)),!isNaN(u)){var h=o.getPos(l,u),p=o.getUnitLen(l,u);s?a.rect(h-p/2,0,p,r):a.rect(0,r-h-p/2,n,p)}}else(t||this.model.options.showAlways)&&(s?a.vline(e,0,r):a.hline(i,0,n));this.setPath(a.end())},e}(RP),TO=function(t){function e(i){var n=t.call(this,i,"Reset Zoom",e.CLASS_NAME)||this;return n.setVis(!1),n}return Dx(e,t),e.CLASS_NAME="rct-reset-zoom",e}(PL),RO=function(t){function e(e){var i=t.call(this,e,"rct-empty-view")||this;return i.add(i._backView=new wk(e)),i.add(i._labelView=new dL(e,"rct-empty-view-label")),i}return Dx(e,t),e.prototype.layout=function(t,e,i){this.setStyleOrClass(t._style),this._backView.resize(e,i);var n=this._labelView;t.buildSvg(n._text,n._outline,e,i,null,null),n.layout("center");var r=n.getBBox();n.trans((e-r.width)/2,(i-r.height)/2)},e}(NP),BO=function(t){function e(i,n){var r=t.call(this,i,e.BODY_CLASS)||this;return r._gridViews=new Map,r._baseViews=new Map,r._breakViews=[],r._seriesViews=[],r._seriesMap=new Map,r._annotationViews=[],r._annotationMap=new Map,r._gaugeViews=[],r._gaugeMap=new Map,r._owner=n,r.add(r._hitTester=new wk(i)),r._hitTester.setFill("transparent"),r.add(r._background=new wk(i,"rct-body-background")),r.add(r._image=new _L(i,!0,"rct-body-image")),r.add(r._emptyView=new RO(i)),r.add(r._gridRowContainer=new NO(i,"rct-axis-grid-rows")),r.add(r._gridContainer=new NP(i,"rct-axis-grids")),r.add(r._baseContainer=new NP(i,"rct-axis-bases")),r.add(r._guideContainer=new OO(i,"rct-axis-guides")),r.add(r._annotationContainer=new NP(i,"rct-annotations")),r.add(r._seriesContainer=new NP(i,"rct-series-container")),r.add(r._axisBreakContainer=new NP(i,"rct-axis-breaks")),r.add(r._labelContainer=new NP(i,"rct-label-container")),r.add(r._frontGuideContainer=new OO(i,"rct-front-axis-guides")),r.add(r._frontAnnotationContainer=new NP(i,"rct-front-annotations")),r.add(r._feedbackContainer=new NP(i,"rct-feedbacks")),r.add(r._zoomButton=new TO(i)),r._crosshairViews=new KE(r._feedbackContainer,MO),r}return Dx(e,t),e.prototype.getAnnotationAnchor=function(t){return this._gaugeMap.get(t)||this._annotationMap.get(t)},e.prototype.prepareRender=function(t,e){this._animatable=EP._animatable&&e.animatable(),this._prepareSeries(t,e,e._getSeries().getVisibleSeries()),this._prepareGauges(t,e,e._getGauges().getVisibles()),this._prepareAnnotations(t,e._body.getAnnotations())},e.prototype.prepareGuideContainers=function(){this._guideContainer.prepare(),this._frontGuideContainer.prepare()},e.prototype.pointerMoved=function(t,e){var i,n,r,o,s=this.width,a=this.height,l=this._inverted,u=this._polar,h=this._seriesViews,p=h.length,c=t.x>=0&&t.x<s&&t.y>=0&&t.y<a;if(e instanceof SVGElement&&(e.classList.contains(nN.POINT_CLASS)||e.parentElement instanceof SVGElement&&e.parentElement.classList.contains(nN.POINT_CLASS)))for(var f=p-1;f>=0;f--)if(o=h[f].pointByDom(e)){r=h[f];break}var _=null==e?void 0:e.classList,d=(null==_?void 0:_.value)&&(_.contains("rct-contextmenu-item")||_.contains("rct-contextmenu-list")),y=c&&!this._zoomRequested&&!this.chart().isEmpty(!0)&&!d;if(this._crosshairViews.forEach((function(e){e.setVis(y)&&e.layout(o,t.x,t.y,s,a)})),o)this.$_setFocused(r,o,t);else if(p>0){var g,v,m=this.chart()._chartOptions.pointHovering.getHintDistance(null==r?void 0:r.model),b=!u;try{for(var w=Ix(h),x=w.next();!x.done;x=w.next()){if(!(x.value.model instanceof DC)){b=!1;break}}}catch(t){i={error:t}}finally{try{x&&!x.done&&(n=w.return)&&n.call(w)}finally{if(i)throw i.error}}if(r=null,b)if(p>1){var S=[];h.forEach((function(e){g=aS(e.getHintDistance(),m),v=e.getNearest2(t.x,t.y,l),S.push({hint:g,sv:e,pv:v})}));var P=S.reduce((function(e,i){return e.pv&&i.pv?l?sS(e.pv.pv.point.xPos-t.x)<sS(i.pv.pv.point.xPos-t.x)?e:i:sS(e.pv.pv.point.yPos-t.y)<sS(i.pv.pv.point.yPos-t.y)?e:i:e||i}));r=P.sv,v=P.pv,g=P.hint}else r=h[0],g=aS(r.getHintDistance(),m),v=r.getNearest2(t.x,t.y,l);else h.forEach((function(e){if(e.getHintDistance&&(g=aS(e.getHintDistance(),m))>0){var i=e.getNearest(t.x,t.y);(!v||i.dist<v.dist)&&(r=e,v=i)}}));c&&v&&r.canHover(v.dist,v.pv,g)?this.$_setFocused(r,v.pv,t):this.$_setFocused(null,null,t)}return c},e.prototype.hoverSeries=function(t){this.$_hoverSeries(this._seriesMap.get(t))},e.prototype.$_setFocused=function(t,e,i){var n,r,o,s=this,a=this._focused,l=this._siblings,u=this._siblingSeries;if(t&&e)switch(this.chart()._chartOptions.pointHovering.getScope(t.model,e.point)){case"axis":o=t.model._xAxisObj.getSeries();case"group":o||(o=t.model._group.getVisibleSeries());var h=o.map((function(t){if(t instanceof hA){for(var n=void 0,r=Number.MAX_SAFE_INTEGER,o=0;o<t.getPoints().count;o++){var s=t.getPoints().get(o),a=void 0;if(t instanceof JC){var l=(t._xAxisObj._vlen<t._yAxisObj._vlen?t._xAxisObj:t._yAxisObj)._vlen,u=t.getPixelMinMax(l),h=u.min,p=u.max,c=t.getRadius(s.zValue,h,p);a=Math.sqrt(Math.pow(s.xPos-i.x,2)+Math.pow(s.yPos-i.y,2))-c}else a=Math.sqrt(Math.pow(s.xPos-i.x,2)+Math.pow(s.yPos-i.y,2));a<r&&(r=a,n=s)}return n}return t.getPoints().pointAt(e.point.xValue)}));n=o.map((function(t){return s._owner.getSeriesView(t)})),r=[],h.forEach((function(t,e){r.push(n[e].getPointView(t))}));break;default:n=[t],r=[e]}var p=[];if(n&&n.forEach((function(t,e){p.push.apply(p,$x([],jx(t.getSiblings(r[e])),!1))})),p=p.length>1?p.sort((function(t,e){return t.hash-e.hash})):p.length>0?p:null,_S.equalArrays(l,p)||(n&&n.forEach((function(t,e){t.focusPoints(t.getSiblings(r[e]))})),u&&u.forEach((function(t){(!n||n.indexOf(t)<0)&&t.focusPoints(null)})),this._siblingSeries=n,this._siblings=p),e!==a){var c=this._focusedSeries;this._focused=e,t!==c&&(c&&this.$_focusSeries(c,!1),this._focusedSeries=t,t&&this.$_focusSeries(t,!0),this.chart()._chartOptions.options.seriesHovering&&this.$_hoverSeries(t))}!this._focused||this._focused===a&&this._owner.tooltipVisible()&&!this.model.chart._tooltip.isFollowPointer(t.model)?!this._focused&&this._owner.tooltipVisible()&&this._owner.hideTooltip():i.x>0&&i.x<this.width&&i.y>0&&i.y<this.height?this._owner.showTooltip(t.model,e,[],this,i):this._owner.hideTooltip()},e.prototype.$_focusSeries=function(t,e){e?t.model._group?t.front(this._seriesViews,this._seriesViews.filter((function(e){return e.model._group===t.model._group}))):t.front(this._seriesViews):t&&t.parent&&t.back(this._seriesViews)},e.prototype.$_hoverSeries=function(t){this._seriesViews.forEach((function(e){e.setBoolData(nN.DATA_UNHOVER,t&&e!==t),e._labelContainer.setBoolData(nN.DATA_UNHOVER,t&&e!==t)}))},e.prototype.hoverPoint=function(t){var e=this.chart().seriesByPoint(t),i=this.getSeries(e);i?(this._hoverPointSeries=i).hoverPoint(t):this._hoverPointSeries&&(this._hoverPointSeries.hoverPoint(null),this._hoverPointSeries=null)},e.prototype.seriesByDom=function(t){return this._seriesViews.find((function(e){return e.dom.contains(t)}))},e.prototype.findSeries=function(t){return this._seriesMap.get(t)},e.prototype.isConnected=function(t){return!!this._seriesViews.find((function(e){return e.model._xAxisObj==t||e.model._yAxisObj==t}))},e.prototype.getButton=function(t){if(this._zoomButton.contains(t))return this._zoomButton},e.prototype.buttonClicked=function(t){t===this._zoomButton&&(this.model.chart._getXAxes().resetZoom(),this.model.chart._getYAxes().resetZoom())},e.prototype.addFeedback=function(t){t&&this._feedbackContainer.add(t)},e.prototype.setZoom=function(t,e,i,n){var r=this.chart(),o=r.isInverted(),s=r.xAxis,a=o?this.height:this.width,l=s.valueAt(a,o?a-n:t),u=s.valueAt(a,o?a-e:i);s.zoom(l,u)&&(this._zoomRequested=!0)},e.prototype.animating=function(){var t,e,i=!1;try{for(var n=Ix(this._seriesViews),r=n.next();!r.done;r=n.next()){var o=r.value;if(o.visible&&o._animating()){i=!0;break}}}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}return i},e.prototype.getTooltipPos=function(){return{x:this.tx,y:this.ty}},e.prototype.getFocusPointView=function(){return this._focused},e.prototype.getSeries=function(t){return this._seriesViews.find((function(e){return e.model===t}))},e.prototype.removeFocus=function(){this._seriesViews.forEach((function(t){t._hoverPts.forEach((function(e){e instanceof pN&&e.endHover(t,!1),e.setBoolData(nN.DATA_FOCUS,!1)})),t._hoverPts=[],t._hoverAnis.forEach((function(t){t.stop()})),t._hoverAnis=[]})),this._owner.hideTooltip(),this._focused=null,this._siblings=null,this._siblingSeries=null},e.prototype.getBounds=function(){return this._hitTester.getBounds()},e.prototype._doMeasure=function(t,e,i,n,r){var o,s,a=this,l=e.chart,u=e.base();if(this._polar=l.isPolar(),this._zoomRequested=!1,this._seriesClip||(this._seriesClip=this.control.clipBounds(),this._seriesClip2=this.control.clipBounds(),this._bodyClip=this.control.clipBounds()),this._background.setStyleOrClass(u._style),u!==e&&this._background.internalSetStyleOrClass(e._style),this._background.setBoolData("polar",this._polar||l.isWidget()),this._emptyView.setVis(!1!==e.emptyView.visible&&e.isEmpty()),this._seriesViews.forEach((function(e,o){e.measure(t,a._series[o],i,n,r)})),!this._polar){this.$_prepareGrids(t,l);try{for(var h=Ix(this._gridViews.keys()),p=h.next();!p.done;p=h.next()){var c=p.value;this._gridViews.get(c).measure(t,c.grid,i,n,r)}}catch(t){o={error:t}}finally{try{p&&!p.done&&(s=h.return)&&s.call(h)}finally{if(o)throw o.error}}this.$_prepareAxisBreaks(t,l)}return this._gaugeViews.forEach((function(e,o){e.measure(t,a._gauges[o],i,n,r)})),this._annotationViews.forEach((function(e,o){e.measure(t,a._annotations[o],i,n,r)})),this._zoomButton.setVis(e.zoomButton.visible)&&this._zoomButton.layout(),{width:i,height:n}},e.prototype._clipSeries=function(t,e,i){var n=i?this._seriesClip:this._seriesClip2;t&&t.setClip(n),e&&e.setClip(n)},e.prototype._setImage=function(t,e){var i=this._image;i.setVis(i.setImage(this.model.image.options.url,t,e))&&i.setStyleOrClass(this.model.image._style)},e.prototype._doLayout=function(){var t,e,i,n,r=this,o=this.width,s=this.height;if(this._image,this._inverted?(this._seriesClip.setBounds(0,-o,s,o),this._seriesClip2.setBounds(0,0,o,s)):(this._seriesClip.setBounds(0,0,o,s),this._seriesClip2.setBounds(0,0,o,s)),this._bodyClip.setBounds(0,0,o,s),this._hitTester.resize(o,s),this._background.resize(o,s),this._setImage(o,s),this._emptyView.visible&&(this.model.emptyView._prepareRender(),this._emptyView.layout(this.model.emptyView,o,s)),this._seriesViews.forEach((function(t){t.model.needClip(!1)&&r._clipSeries(t.getClipContainer(),t.getClipContainer2(),t.clipInvertable()),t.resize(o,s),t.trans(0,0),t.layout()})),this._seriesViews.forEach((function(t){t.afterLayout()})),!this._polar){try{for(var a=Ix(this._gridViews.values()),l=a.next();!l.done;l=a.next()){(p=l.value).resize(o,s),p.layout()}}catch(e){t={error:e}}finally{try{l&&!l.done&&(e=a.return)&&e.call(a)}finally{if(t)throw t.error}}try{for(var u=Ix(this._baseViews.values()),h=u.next();!h.done;h=u.next()){var p,c=(p=h.value).tag;p.setStyleOrClass(c.baseLine._style),c._isHorz?p.setVLine(c.getPos(o,c.getBaseValue()),0,s):p.setHLine(c.getPos(s,c.getBaseValue()),0,o)}}catch(t){i={error:t}}finally{try{h&&!h.done&&(n=u.return)&&n.call(u)}finally{if(i)throw i.error}}this._breakViews.forEach((function(t){var e=t._model,i=e.axis;i._isHorz?i.options.reversed?t.trans(o-e._sect.pos,0):t.trans(e._sect.pos,0):i.options.reversed?t.trans(0,e._sect.pos):t.trans(0,s-e._sect.pos-e._sect.len),t.layout(o,s,e.axis._isHorz)}));var f=this.control;if(this._guideClip)this._guideClip.resize(f.width(),f.height());else{var _=f._padding;this._guideClip=f.clipBounds(-1*(_.left+this.tx),-1*(_.top+this.ty),f.width(),f.height())}[this._guideContainer,this._frontGuideContainer].forEach((function(t){t._views.forEach((function(t){return t.visible&&t.layout(o,s)})),t.setClip(r._guideClip)})),this._gridRowContainer.layout(o,s,!1)}this.$_prepareCrosshairs(this.chart()),this._gaugeViews.forEach((function(t){t.resizeByMeasured(),t.layout().transp(t.getPosition(o,s))})),this._layoutAnnotations(this._inverted,this,o,s),this._zoomButton.visible&&this._zoomButton.trans(o-this._zoomButton.getBBox().width-10,10)},e.prototype.$_createGaugeView=function(t,e){return new(NL[e._type()])(t)},e.prototype.$_prepareGrids=function(t,e){var i,n,r,o,s=e._needAxes(),a=this._gridContainer,l=this._gridViews,u=this._baseContainer,h=this._baseViews;try{for(var p=Ix(l.keys()),c=p.next();!c.done;c=p.next()){var f=c.value;s&&e.containsAxis(f)&&f.grid.visible||(l.get(f).remove(),l.delete(f))}}catch(t){i={error:t}}finally{try{c&&!c.done&&(n=p.return)&&n.call(p)}finally{if(i)throw i.error}}try{for(var _=Ix(h.keys()),d=_.next();!d.done;d=_.next()){f=d.value;(!s||!e.containsAxis(f)||f instanceof OA&&!f.baseLine.visible||!f.isBaseVisible())&&(h.get(f).remove(),h.delete(f))}}catch(t){r={error:t}}finally{try{d&&!d.done&&(o=_.return)&&o.call(_)}finally{if(r)throw r.error}}s&&[e._getXAxes(),e._getYAxes()].forEach((function(e){return e.forEach((function(e){var i=e.grid;if(!l.has(e)&&(i.visible||i.options.firstVisible||i.options.lastVisible)){var n=new kO(t);l.set(e,n),a.add(n)}if(e instanceof OA&&e.baseLine.visible&&e.isBaseVisible()&&!h.has(e)){n=new OC(t,"rct-axis-baseline");h.set(e,n),u.add(n),n.tag=e}}))}))},e.prototype._prepareSeries=function(t,e,i){var n,r,o=this,s=this._inverted=e.isInverted(),a=this._seriesMap,l=this._seriesViews;try{for(var u=Ix(a.keys()),h=u.next();!h.done;h=u.next()){var p=h.value;i.indexOf(p)<0&&(a.get(p).remove(),a.delete(p))}}catch(t){n={error:t}}finally{try{h&&!h.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}this._series=i,l.forEach((function(t){i.indexOf(t.model)<0&&(o.control.loaded?t.removeLater(200):t.remove(),t._labelContainer.remove())})),l.length=0,i.forEach((function(i){var n=a.get(i)||PO(t,i);n._setChartOptions(s,o._animatable,e.loadAnimatable()),n.parent||(o._seriesContainer.add(n),o._labelContainer.add(n._labelContainer)),a.set(i,n),l.push(n),n.prepareSeries(t,i)})),this._seriesContainer.sort(l),l.forEach((function(t){return o._labelContainer.dom.appendChild(t._labelContainer.dom)}))},e.prototype._prepareGauges=function(t,e,i){var n,r,o=this,s=this._seriesContainer,a=e.isInverted(),l=this._gaugeMap,u=this._gaugeViews;try{for(var h=Ix(l.keys()),p=h.next();!p.done;p=h.next()){var c=p.value;i.indexOf(c)<0&&(l.get(c).remove(),l.delete(c))}}catch(t){n={error:t}}finally{try{p&&!p.done&&(r=h.return)&&r.call(h)}finally{if(n)throw n.error}}this._gauges=i,u.forEach((function(t){return t.remove()})),u.length=0,i.forEach((function(i){var n=l.get(i)||o.$_createGaugeView(t,i);s.add(n),l.set(i,n),u.push(n),n.prepareGauge(t,i),n._setChartOptions(a,o._animatable,e.loadAnimatable())}))},e.prototype._prepareAnnotations=function(t,e){var i,n,r=this._annotationContainer,o=this._frontAnnotationContainer,s=this._annotationMap,a=this._annotationViews;try{for(var l=Ix(s.keys()),u=l.next();!u.done;u=l.next()){var h=u.value;e.indexOf(h)<0&&(s.get(h).remove(),s.delete(h))}}catch(t){i={error:t}}finally{try{u&&!u.done&&(n=l.return)&&n.call(l)}finally{if(i)throw i.error}}a.forEach((function(t){return t.remove()})),a.length=0,(this._annotations=e).forEach((function(e){var i=s.get(e)||SO(t,e);(e.options.front?o:r).add(i),s.set(e,i),a.push(i)}))},e.prototype.$_prepareAxisBreaks=function(t,e){var i=this._axisBreakContainer,n=this._breakViews,r=[];for([e._getXAxes(),e._getYAxes()].forEach((function(t){return t.forEach((function(t){t instanceof MA&&r.push.apply(r,$x([],jx(t._getBreaks()),!1))}))}));n.length<r.length;){var o=new AO(t);i.add(o),n.push(o)}for(;n.length>r.length;)n.pop().remove();n.forEach((function(t,e){return t.setModel(r[e])}))},e.prototype.$_prepareCrosshairs=function(t){var e=this,i=this._crosshairViews,n=[];[t._getXAxes(),t._getYAxes()].forEach((function(t){return t.forEach((function(t){t.crosshair.visible&&n.push(t.crosshair)}))})),i.prepare(n.length,(function(t,i){t.setModel(n[i]),t.setClip(e._bodyClip)}))},e.prototype._layoutAnnotations=function(t,e,i,n){var r=this;this._annotationViews.length>0&&this._annotationViews.forEach((function(o){o._layoutView(t,e,0,0,i,n),o.setClip(r._polar||o.model.options.noClip?xS:r._bodyClip)}))},e.BODY_CLASS="rct-body",e}(hL),DO=function(t){function e(e){var i=t.call(this,e,FO.HANDLE_STYLE)||this;return i.add(i._back=new wk(e)),i.add(i._shape=new RP(e)),i._shape.setFill("white"),i}return Dx(e,t),e.prototype.layout=function(t,e,i){if(t!==this._w||e!==this._h||i!==this._vertical){var n=1.3*rS(t,e),r=new eE;this._back.rect={x:-n/2,y:-n/2,width:n,height:n,rx:n/2},n/=3,r.polygon(-n-1,0,-1,-n,-1,n),r.polygon(n+1,0,1,-n,1,n),this._shape.setPath(r.end()),this._w=this.width=t,this._h=this.height=e,this._vertical=i}},e}(LP),FO=function(t){function e(i){var n=t.call(this,i,e.CLASS_NAME)||this;return n.add(n._back=new wk(i,e.BACK_STYLE)),n.add(n._container=new NP(i,null)),n.add(n._mask=new wk(i,e.MASK_STYLE)),n.add(n._trackView=new wk(i,e.TRACK_CLASS)),n.add(n._thumbView=new wk(i,e.THUMB_CLASS)),n.add(n._startHandle=new DO(i)),n.add(n._endHandle=new DO(i)),n._startHandle.setStyle("cursor","ew-resize"),n._endHandle.setStyle("cursor","ew-resize"),n._mask.setStyle("cursor","ew-resize"),n._mask.dom.addEventListener("dblclick",(function(){n.model.axis()._zoom&&n.model.axis().resetZoom()})),n}return Dx(e,t),e.isHandle=function(t){var i;return null===(i=t.parentElement)||void 0===i?void 0:i.classList.contains(e.HANDLE_STYLE)},e.isMask=function(t){return t.classList.contains(e.MASK_STYLE)},e.prototype.dblClick=function(t){var e=this.model.axis();return this._startHandle.contains(t)?(e.zoom(e._zoom.min,e._zoom.end),!0):this._endHandle.contains(t)?(e.zoom(e._zoom.start,e._zoom.max),!0):void(this.contains(t)&&e.resetZoom())},e.prototype.svgToElement=function(t,e){return this.control.svgToElement(this._back,t,e)},e.prototype._doMeasure=function(t,e,i,n,r){var o=e._naviChart;o.firstSeries;var s=i,a=n;return e._vertical?s=e.getSize():a=e.getSize(),e._naviChart.layoutAxes(s,a,!1,1),this.$_prepareSeriesView(t,o),this.$_prepareXAxisView(t,o),this.$_prepareYAxisView(t,o),e._naviChart.xAxis._calcPoints(s,101),e._naviChart.yAxis._calcPoints(a,1),{width:s,height:a}},e.prototype._doLayout=function(t){var e=this.model,i=e.axis()._zoom,n=this.width,r=this.height;if(this._back.resize(n,r),e._vertical);else{var o=i?(i.start-i.min)*n/i.total():0,s=i?(i.end-i.min)*n/i.total():n;this._mask.setBounds(o,0,s-o,r),this._trackView.setBounds(-2,r,n+4,6),this._trackView.setRadius(4),this._thumbView.setBounds(o,r,s-o,6),this._startHandle.layout(r/3,r/3,!1),this._startHandle.trans(o,r+3),this._endHandle.layout(r/3,r/3,!1),this._endHandle.trans(s,r+3)}this._seriesView&&(this._seriesView.measure(this.doc,e._naviChart.firstSeries,n,r,1),this._seriesView.resize(n,r),this._seriesView.layout(),this._seriesView.afterLayout()),this._xAxisView&&(this._xAxisView.measure(this.doc,e._naviChart.xAxis,n,r,1),this._xAxisView.resize(n,r),this._xAxisView.layout()),this._yAxisView.setVis(!1)},e.prototype.$_prepareSeriesView=function(t,e){var i=e.firstSeries,n=this._seriesView;n&&n.model!==i&&(n.remove(),n=this._seriesView=null),n||(this._container.add(n=this._seriesView=PO(t,i)),n._simpleMode=!0),n&&n.prepareSeries(t,i)},e.prototype.$_prepareXAxisView=function(t,e){var i=e.xAxis,n=this._xAxisView;n&&n.model!==i&&(n.remove(),n=this._xAxisView=null),n||(this._container.add(n=this._xAxisView=new SL(t)),n._simpleMode=!0)},e.prototype.$_prepareYAxisView=function(t,e){var i=e.yAxis,n=this._yAxisView;n&&n.model!==i&&(n.remove(),n=this._yAxisView=null),n||(this._container.add(n=this._yAxisView=new SL(t)),n._simpleMode=!0)},e.CLASS_NAME="rct-navigator",e.BACK_STYLE="rct-navigator-back",e.MASK_STYLE="rct-navigator-mask",e.HANDLE_STYLE="rct-navigator-handle",e.HANDLE_BACK_STYLE="rct-navigator-handle-back",e.TRACK_CLASS="rct-navigator-track",e.THUMB_CLASS="rct-navigator-thumb",e}(hL),IO=function(t){function e(e){var i=t.call(this)||this;return i.chart=e,i}return Dx(e,t),e}(jP),jO=function(t){function e(e,i,n){var r=t.call(this,e)||this;return r._body=i,r._vertical=n,r}return Dx(e,t),e.prototype._doStart=function(t,e,i,n,r){var o=this.chart.getBounds(),s=this._body.getBounds();return this._xStart=e-(s.x-o.x),this._yStart=i-(s.y-o.y),this._body.addFeedback(this._feedback=new wk(this.chart.doc(),"rct-zoom-tracker")),!0},e.prototype._doEnded=function(t,e){var i=this.chart.getBounds(),n=this._body.getBounds();this._vertical?(e-=n.y-i.y,this._body.setZoom(0,rS(this._yStart,e),this._body.width,oS(this._yStart,e))):(t-=n.x-i.x,this._body.setZoom(rS(this._xStart,t),0,oS(this._xStart,t),this._body.height)),this._feedback.remove()},e.prototype._doDrag=function(t,e,i,n,r){var o=this.chart.getBounds(),s=this._body.getBounds();return this._vertical?(r=Math.max(0,Math.min(s.height,r-(s.y-o.y))),this._feedback.setBounds(0,rS(this._yStart,r),this._body.width,sS(this._yStart-r))):(n=Math.max(0,Math.min(s.width,n-(s.x-o.x))),this._feedback.setBounds(rS(this._xStart,n),0,sS(this._xStart-n),this._body.height)),!0},e}(IO),$O=function(t){function e(e,i){var n=t.call(this,e)||this;return n._view=i,n}return Dx(e,t),e.prototype._doStart=function(t,e,i,n,r){var o=this._view,s=o.model.axis._zoom;if(s){var a=o._thumbView.elementToSvg(0,0);return this._startOff=o._vertical?i-a.y:e-a.x,this._zoomLen=s.length(),!0}return!1},e.prototype._doDrag=function(t,e,i,n,r){var o,s=this._view;return s._vertical?(o=s.svgToElement(n,r).y-this._startOff,o=s.getZoomPos(s.height-o-s._thumbView.height),s.model.axis.zoom(o,o+this._zoomLen)):(o=s.svgToElement(n,r).x-this._startOff,o=s.getZoomPos(o),s.model.axis.zoom(o,o+this._zoomLen),console.log(o)),!0},e}(IO),zO=function(t){function e(e,i,n){var r=t.call(this,e)||this;return r._view=i,(r._isStart=i._startHandle.contains(n))?r._handleView=i._startHandle:r._handleView=i._endHandle,r}return Dx(e,t),e.prototype._doStart=function(t,e,i,n,r){var o=this._handleView,s=o.elementToSvg(0,0);return this._startOff=o._vertical?i-s.y-o.height/2:e-s.x-o.width/2,this._handleView.setBoolData("select",!0),!0},e.prototype._doEnded=function(t,e){this._handleView.setBoolData("select",!1)},e.prototype._doDrag=function(t,e,i,n,r){var o=this._view,s=o.model.axis();s._prepareZoom();var a=o.svgToElement(n,r).x-this._startOff,l=s._zoom.total(),u=s._zoom.min,h=o.model.options.minSize;return this._handleView._vertical?this._isStart:this._isStart?a>0?s.zoom(a*l/o.width+u,NaN,h):s.zoom(u,NaN,h):a>0&&a<o.width?s.zoom(NaN,a*l/o.width+u,h):a>=o.width&&s.zoom(NaN,s._zoom.max,h),!0},e}(IO),HO=function(t){function e(e,i,n){var r=t.call(this,e)||this;return r._view=i,r._maskView=i._mask,r}return Dx(e,t),e.prototype._doStart=function(t,e,i,n,r){var o=this._view.model.axis(),s=this._maskView.elementToSvg(0,0);return this._startOff=this._view.model._vertical?i-s.y:e-s.x,this._totalLen=o._zoom.total(),this._zoomLen=o._zoom.length(),!0},e.prototype._doEnded=function(t,e){},e.prototype._doDrag=function(t,e,i,n,r){var o=this._view,s=o.svgToElement(n,r).x-this._startOff;return o.model._vertical?this.$_moveZoom(s*this._totalLen/o.height):this.$_moveZoom(s*this._totalLen/o.width),!0},e.prototype.$_moveZoom=function(t){var e=this._view.model;t=oS(0,rS(t,this._totalLen-this._zoomLen))+e.axis()._zoom.min,e.axis().zoom(t,t+this._zoomLen)},e}(IO),GO=function(){function t(t){this._chart=t}return t.prototype.handleDown=function(t){if(t.isPrimary){var e=this._clickElement=t.target;if(e){var i=this.$_pointerToPoint(t);this._dragTracker&&this.$_stopDragTracker(t,e,i.x,i.y),this._prevX=this._clickX=i.x,this._prevY=this._clickY=i.y}}},t.prototype.handleUp=function(t){this.isDragging()&&this.$_stopDragTracker(t,t.target,this._prevX,this._prevY)},t.prototype.handleMove=function(t){var e=this._chart.chartView(),i=t.target,n=this.$_pointerToPoint(t),r=n.x,o=n.y;if(t.buttons>=1||0===t.buttons&&0===t.button){var s=this.isDragging(),a=this._clickElement;r<0||r>=e.control.dom().offsetWidth||o<0||o>=e.control.dom().offsetHeight||(s?this.$_doDrag(t,a,r,o):(!this._dragTracker&&(sS(this._clickX-r)>3||sS(this._clickY-o)>3)||this._dragTracker&&!s)&&this.$_startMove(t,a,r,o))}else this.$_stopDragTracker(t,i,r,o,!0);this._prevX=r,this._prevY=o,this.isDragging()?(e.pointerMoved(-1,-1,null),this._stopEvent(t)):e.getButton(i)||e.pointerMoved(t.pointX,t.pointY,t.target)},t.prototype.handleClick=function(t){var e,i,n,r=this._chart.chartView(),o=this._clickElement,s=r.getButton(o),a=this._chart.chart.exporter;if(a.isContextMenuVisible()&&a.toggleContextMenu(),s)!0!==s.click()&&r.buttonClicked(s);else if(i=r.legendByDom(o))if(i.source instanceof Mk){var l=i.source,u=this._chart.model.seriesByPoint(l);if(u){u.setPointVisible(l,!l.visible);var h=this._chart.chartView().findSeriesView(u);h instanceof _N&&h.togglePointVisible(l)}}else i.source.visible=!i.source.visible,r.bodyView().hoverSeries(i.source.visible?i.source:null);else(n=r.seriesByDom(o))?n.clicked(o):(e=r.creditByDom(o))&&e.clicked(o)},t.prototype.handleDblClick=function(t){var e=this._chart.chartView()._navigatorView,i=this._clickElement;!e.visible||e.dblClick(i)},t.prototype.handleWheel=function(t){},Object.defineProperty(t.prototype,"dragTracker",{get:function(){return this._dragTracker},enumerable:!1,configurable:!0}),t.prototype.setDragTracker=function(t){t!=this._dragTracker&&(this._dragTracker&&this._dragTracker.cancel(),this._dragTracker=t)},t.prototype.isDragging=function(){return this._dragTracker&&this._dragTracker.dragging},t.prototype._stopEvent=function(t){t.cancelable&&t.preventDefault(),t.stopImmediatePropagation()},t.prototype.$_pointerToPoint=function(t){var e=this._chart.svg().getBoundingClientRect();return{x:t.clientX-e.left,y:t.clientY-e.top}},t.prototype._getDragTracker=function(t,e,i){var n=this._chart.chartView(),r=n.bodyOf(t);return wL.isThumb(t)?new $O(this._chart,n.getScrollView(t)):FO.isHandle(t)?new zO(this._chart,n._navigatorView,t):FO.isMask(t)&&r&&r.model.isZoomed()?new HO(this._chart,n._navigatorView,t):r&&r.model.canZoom()&&r.contains(t)?new jO(this._chart,r,n._inverted):void 0},t.prototype.$_doDrag=function(t,e,i,n){if(!this.$_drag(e,this._prevX,this._prevY,i,n))return this.$_stopDragTracker(t,e,i,n,!0),this._stopEvent(t),!0},t.prototype.$_startMove=function(t,e,i,n){this.$_startDrag(e,this._prevX,this._prevY,i,n)&&(i!==this._prevX||n!==this._prevY?this.$_doDrag(t,e,i,n):this._stopEvent(t),this._chart.setPointerCapture(t))},t.prototype.$_startDrag=function(t,e,i,n,r){if(this._dragTracker||this.setDragTracker(this._getDragTracker(t,n-e,r-i)),this._dragTracker){if(this._dragTracker.start(t,e,i,n,r))return!0;this._dragTracker=null}return!1},t.prototype.$_drag=function(t,e,i,n,r){return this._dragTracker.drag(t,e,i,n,r)},t.prototype.$_stopDragTracker=function(t,e,i,n,r){void 0===r&&(r=!1),this.isDragging()&&(this._chart.releasePointerCapture(t),r?this._dragTracker.cancel():this._dragTracker.drop(null,i,n),this._dragTracker=null)},t}(),WO=function(t){function e(i){var n=t.call(this,i,e.TITLE_CLASS)||this;return n._itemViews=[],n._separators=[],n.itemGap=8,n.setVis(!1),n}return Dx(e,t),e.prototype.setHistory=function(t,e){if(this.setVis(e&&e.length>0)){for(var i=this._itemViews,n=this._separators;i.length<e.length;){(r=new $P(t,"rct-history-item")).anchor=BP.START,i.push(r)}for(;i.length>e.length;)i.pop().remove();for(;n.length<e.length-1;){var r;(r=new $P(t)).anchor=BP.START,r.text=">",n.push(r)}for(;n.length>e.length-1;)n.pop().remove();this.$_layout(e)}},e.prototype.$_layout=function(t){for(var e=this._itemViews,i=this._separators,n=this.itemGap,r=t.length,o=0,s=0;s<r;s++)e[s].text=t[s].name,e[s].transX(o),s<r-1&&(o+=e[s].width+n,i[s].transX(o),o+=i[s].width+n)},e.TITLE_CLASS="rct-history",e}(NP),YO=function(t){function e(e){var i=t.call(this,e,"rct-legend-item")||this;return i.add(i._back=new wk(e)),i._back.setFill("transparent"),i._back.setStroke("none"),i.add(i._label=new $P(e,"rct-legend-item-label")),i._label.anchor=BP.START,i}return Dx(e,t),e.prototype.setMarker=function(t){t!==this._marker&&(this._marker&&this._marker.remove(),this.insertFirst(this._marker=t))},e.prototype._doMeasure=function(t,e,i,n,r){var o,s,a=e.source;this._label.setBoolData("hidden",!a.visible),this._marker.setBoolData("hidden",!a.visible),this._label.setBoolData("empty",null===(o=a.isEmpty)||void 0===o?void 0:o.call(a)),this._marker.setBoolData("empty",null===(s=a.isEmpty)||void 0===s?void 0:s.call(a)),this._label.text=e.text()||"…";var l=this._rMarker=this._marker.setVis(e.legend.options.markerVisible)?this._marker.getBBox():JE,u=tL(this._label.getBBox());return this._gap=aS(e.legend.options.markerGap,0),{width:l.width+this._gap+u.width,height:oS(l.height,u.height)}},e.prototype._doLayout=function(t){var e=this._rMarker,i=aS(t,e.width);this._back.setBounds(0,0,this.width,this.height),this._marker.visible&&this._marker.trans((i-e.width)/2,(this.height-e.height)/2),this._label.trans(i+this._gap,(this.height-this._label.getBBox().height)/2)},e}(hL),XO=function(t){function e(i){var n=t.call(this,i,e.LEGEND_CLASS,"rct-legend-background")||this;return n._itemViews=new KE(n,YO),n}return Dx(e,t),e.prototype.legendByDom=function(t){var e=this._itemViews.elementOf(t);return e&&e.model},e.prototype.legendOfSeries=function(t){return this._itemViews.find((function(e){return e.model.source===t}))},e.prototype._setBackgroundStyle=function(t){t.setStyleOrClass(this.model.options.backgroundStyle)},e.prototype._doMeasure=function(t,e,i,n,r){var o=e.options,s=e.items(),a=this._vertical="vertical"===e.getLayout();return this._ipr=aS(o.itemsPerLine,Number.MAX_SAFE_INTEGER),this._gap="body"!==e._location?aS(o.gap,0):0,a?n=e.getMaxHeight(n):i=e.getMaxWidth(i),this.$_prepareItems(t,s),this.$_measure(t,e,a,this._ipr,i,n)},e.prototype._doLayout=function(){var t,e=this,i=this.model.options,n=this._rowViews,r=i.useTextColor,o=this._sizes,s=i.itemsAlign,a=i.lineGap||0,l=i.itemGap||0,u=this._margins,h=this._paddings,p=this._vertical,c=u.left+h.left,f=u.top+h.top,_=c,d=f;this._itemViews.forEach((function(t){var e=t.model.source,i=e.legendColor();t._marker.setColor(i),r&&e.visible?t._label.setFill(i):t._label.setFill("")})),n.forEach((function(i,n){p?(i.forEach((function(t){t.mw=o[n],t.resizeByMeasured().layout(e._wMarkers[n])})),d=f,"center"!==s&&"end"!==s||(t=i.map((function(t){return t.height})).reduce((function(t,e){return t+e}))+l*(i.length-1)+u.top+u.bottom+h.top+h.bottom,d+="center"===s?(e.height-t)/2:e.height-t),i.forEach((function(t){t.trans(_,d),d+=t.height+l})),_+=o[n]+a):(i.forEach((function(t){t.resizeByMeasured().layout(NaN)})),_=c,"center"!==s&&"end"!==s||(t=i.map((function(t){return t.width})).reduce((function(t,e){return t+e}))+l*(i.length-1)+u.left+u.right+h.left+h.right,_+="center"===s?(e.width-t)/2:e.width-t),i.forEach((function(t){t.trans(_,d),_+=t.width+l})),d+=o[n]+a)}))},e.prototype.$_prepareItems=function(t,e){this._itemViews.prepare(e.length)},e.prototype.$_measure=function(t,e,i,n,r,o){var s,a,l,u,h=this,p=e.options,c=e.items(),f=this._itemViews,_=p.itemGap||0,d=p.lineGap||0,y=e.getMarkerSize(),g=f.count,v=this._rowViews=[],m=this._sizes=[];f.forEach((function(e,i){e.setMarker(c[i].source.legendMarker(t,y)),e.measure(t,c[i],r,o,1)}));var b=0,w=0;if(i){for(;b<g;)u=f.get(b),w%n==0?(v.push(l=[u]),a=u.mh,w++,b++):(a+=_+u.mh)<=o?(l.push(u),w++,b++):w=0;this._wMarkers=[],s=a=0,v.forEach((function(t,e){var i=0,n=0,r=0;t.forEach((function(t){n+=t.mh,i=oS(i,t.mw),r=oS(r,t._rMarker.width),t._col=e})),n+=_*(t.length-1),a=oS(a,n),s+=i,m.push(i),h._wMarkers.push(r)})),s+=d*(v.length-1)}else{for(;b<g;)u=f.get(b),w%n==0?(v.push(l=[u]),s=u.mw,w++,b++):(s+=_+u.mw)<=r?(l.push(u),w++,b++):w=0;s=a=0,v.forEach((function(t){var e=0,i=0;t.forEach((function(t){e+=t.mw,i=oS(i,t.mh)})),e+=_*(t.length-1),s=oS(s,e),a+=i,m.push(i)})),a+=d*(v.length-1)}return{width:s,height:a}},e.LEGEND_CLASS="rct-legend",e}(pL),UO=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.views=[],e._gap=0,e}return Dx(e,t),e.prototype.isEmpty=function(){return 0===this.views.length},e.prototype.prepare=function(t,e,i,n,r){var o=this.views,s=[];for(this.isX=e,i&&i._axes.forEach((function(t){s.push(t)}));o.length<s.length;){var a=new SL(t);this.add(a),o.push(a)}for(;o.length>s.length;)o.pop().remove();if(o.forEach((function(t,e){s[e]._runPos,t.model=s[e]})),this.axes=s,this.setVis(o.length>0)){var l=o[0].model;this._gap=l.chart.getAxesGap()}},e.prototype.prepareGuides=function(t,e,i){var n=this,r=this.views,o=this.axes;r.forEach((function(i,r){var s=o[r];e.forEach((function(e){e.forEach((function(e){e.isConnected(s)&&i.setVis(n.visible)&&i.prepareGuides(t,e.row,e.col,e._guideContainer,e._frontGuideContainer)}))}))}))},e.prototype.checkHeights=function(t,e,i){return this.views.length>0?this.$_checkHeights(this.views,t,e,i):0},e.prototype.$_checkHeights=function(t,e,i,n){var r=0;return t&&(t.forEach((function(t){r+=t.checkHeight(e,i,n)})),r+=(this.views.length-1)*this._gap),r},e.prototype.checkWidths=function(t,e,i){return this.views.length>0?this.$_checkWidths(this.views,t,e,i):0},e.prototype.$_checkWidths=function(t,e,i,n){var r=0;return t&&(t.forEach((function(t){r+=t.checkWidth(e,i,n)})),r+=(this.views.length-1)*this._gap),r},e.prototype.getScrollView=function(t){var e,i,n;try{for(var r=Ix(this.views),o=r.next();!o.done;o=r.next()){var s=o.value;if(null===(n=s._scrollView)||void 0===n?void 0:n.contains(t))return s._scrollView}}catch(t){e={error:t}}finally{try{o&&!o.done&&(i=r.return)&&i.call(r)}finally{if(e)throw e.error}}},e.prototype.setMargins=function(t,e,i,n){this.views.forEach((function(r){return r.setMargins(t,e,i,n)}))},e.prototype._setInverted=function(e){t.prototype._setInverted.call(this,e),this.isHorz=e&&!this.isX||!e&&this.isX},e.prototype._doMeasure=function(t,e,i,n,r){var o=this.axes;if(this.isHorz){var s=0;return this.views.forEach((function(e,a){s+=e.measure(t,o[a],i,n,r).height})),{width:i,height:s}}var a=0;return this.views.forEach((function(e,s){a+=e.measure(t,o[s],i,n,r).width})),{width:a,height:n}},e.prototype._doLayout=function(t){var e=this;this.isHorz?this.views.forEach((function(t){t.resize(e.width,t.mh),t.layout()})):this.views.forEach((function(t){t.resize(t.mw,e.height),t.transX(e.width-t.mw),t.layout()}))},e}(cL),qO=function(t){function e(e,i){var n=t.call(this,e,"rct-axis-container")||this;return n.isX=i,n.sections=[],n}return Dx(e,t),e.prototype.prepare=function(t,e,i,n){for(var r=this,o=this.isX?i.getRow(n):i.getColumn(n);this.sections.length<o.length;){var s=new UO(t);this.add(s),this.sections.push(s)}for(;this.sections.length>o.length;)this.sections.pop().remove();this.sections.forEach((function(s,a){r.isX?(s.row=n,s.col=a):(s.col=n,s.row=a),s.prepare(t,r.isX,o[a],e,i)}))},e.prototype.prepareGuides=function(t,e,i,n){for(var r=this,o=this.isX?i.getRow(n):i.getColumn(n);this.sections.length<o.length;){var s=new UO(t);this.add(s),this.sections.push(s)}for(;this.sections.length>o.length;)this.sections.pop().remove();this.sections.forEach((function(o,s){r.isX?(o.row=n,o.col=s):(o.col=n,o.row=s),o.prepareGuides(t,e,i)}))},e.prototype.checkWidths=function(t,e,i){return this.sections.length>0?this.sections.reduce((function(n,r){return n+r.checkWidths(t,e,i)}),0):0},e.prototype.checkHeights=function(t,e,i){return this.sections.length>0?this.sections.reduce((function(n,r){return n+r.checkHeights(t,e,i)}),0):0},e.prototype._setInverted=function(e){t.prototype._setInverted.call(this,e),this._isHorz=e&&!this.isX||!e&&this.isX},e.prototype._doMeasure=function(t,e,i,n,r){var o=0,s=0;return this._isHorz?this.sections.forEach((function(o){s=oS(s,o.measure(t,e,i,n,r).height)})):this.sections.forEach((function(s){o=oS(o,s.measure(t,e,i,n,r).width)})),{width:o,height:s}},e.prototype._doLayout=function(t){var e=this;this._isHorz?this.height>0&&this.sections.forEach((function(i,n){i.resize(t[2*(n+1)]-t[2*(n+1)-1],e.height),i.trans(t[2*n+1]-t[1],0),i.layout()})):this.width>0&&this.sections.forEach((function(i,n){i.resize(e.width,t[2*(n+1)]-t[2*(n+1)-1]),i.trans(0,e.height-(t[2*(n+1)]-t[1])),i.layout()}))},e}(cL),ZO=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.row=0,e.col=0,e}return Dx(e,t),e.prototype.prepareRender=function(t,e){var i=this.row,n=this.col,r=e._split.getPane(i,n).body,o=e._getSeries().getPaneSeries(i,n),s=e._getGauges().getPaneVisibles(i,n);this._animatable=EP._animatable&&e.animatable(),this._prepareSeries(t,e,o),this._prepareGauges(t,e,s),this._prepareAnnotations(t,r.getAnnotations())},e.prototype.getTooltipPos=function(){return{x:this.parent.parent.tx+this.tx,y:this.parent.parent.ty+this.ty}},e}(BO),KO=function(t){function e(i,n){var r=t.call(this,i,e.STYLE_NAME)||this;return r._bodies=[],r._xContainers=[],r._yContainers=[],r._owner=n,r}return Dx(e,t),Object.defineProperty(e.prototype,"bodies",{get:function(){return this._bodies},enumerable:!1,configurable:!0}),e.prototype.bodyViewOf=function(t){return this._bodies.find((function(e){return e.contains(t)}))},e.prototype.prepare=function(t,e){e.chart,this.$_init(t),this._model=e,this.$_prepareBodies(t,e)},e.prototype.measure=function(t,e,i,n,r,o,s){var a=e.chart,l=this._inverted=e.chart.isInverted(),u=r,h=o;this.$_prepareAxes(t,i,!0),this.$_prepareAxes(t,n,!1),e.layoutAxes(r,o,l,s),l?(r-=this._xContainers.reduce((function(e,i){return e+i.checkWidths(t,r,o)}),0),o-=this._yContainers.reduce((function(e,i){return e+i.checkHeights(t,r,o)}),0)):(o-=this._xContainers.reduce((function(e,i){return e+i.checkHeights(t,r,o)}),0),r-=this._yContainers.reduce((function(e,i){return e+i.checkWidths(t,r,o)}),0)),e.layoutAxes(r,o,l,s),this._xContainers.forEach((function(e){return e.measure(t,a,r,o,s)})),this._yContainers.forEach((function(e){return e.measure(t,a,r,o,s)})),r=u,o=h,l?(r-=this._xContainers.reduce((function(t,e){return t+e.mw}),0),o-=this._yContainers.reduce((function(t,e){return t+e.mh}),0)):(o-=this._xContainers.reduce((function(t,e){return t+e.mh}),0),r-=this._yContainers.reduce((function(t,e){return t+e.mw}),0)),e.layoutAxes(r,o,l,s),this.$_prepareAxisGuides(t,i,!0),this.$_prepareAxisGuides(t,i,!1),this._xContainers.forEach((function(e){return e.measure(t,a,r,o,s)})),this._yContainers.forEach((function(e){return e.measure(t,a,r,o,s)}));var p=e.getXLens(l?o:r),c=e.getYLens(l?r:o);e.calcAxesPoints(p,c)},e.prototype.layout=function(){var t=this._model,e=this.width,i=this.height;this._back.resize(e,i),this.$_calcExtents(t,e,i),this.$_layoutAxes(t,!0,e,i),this.$_layoutAxes(t,!1,e,i),this.$_layoutBodies(t,e,i)},e.prototype.seriesByDom=function(t){var e,i;try{for(var n=Ix(this._bodies),r=n.next();!r.done;r=n.next()){var o=r.value.seriesByDom(t);if(o)return o}}catch(t){e={error:t}}finally{try{r&&!r.done&&(i=n.return)&&i.call(n)}finally{if(e)throw e.error}}},e.prototype.getSeries=function(t){var e,i;try{for(var n=Ix(this.bodies),r=n.next();!r.done;r=n.next()){var o=r.value.findSeries(t);if(o)return o}}catch(t){e={error:t}}finally{try{r&&!r.done&&(i=n.return)&&i.call(n)}finally{if(e)throw e.error}}},e.prototype.$_init=function(t){this._back||(this.add(this._back=new wk(t)),this._back.setStyles({fill:"none"}),this.add(this._bodyContainer=new NP(t,xS)),this.add(this._axisContainer=new NP(t,xS)))},e.prototype.$_prepareBodies=function(t,e){for(var i=e.chart,n=e.paneCount(),r=this._bodies,o=this._bodyMap=[];r.length<n;){var s=new ZO(t,this._owner);this._bodyContainer.add(s),r.push(s)}for(;r.length>n;)r.pop().remove();for(var a=0;a<e.rowCount();a++){for(var l=[],u=0;u<e.colCount();u++){var h=r[a*e.colCount()+u];l.push(h),h.row=a,h.col=u}o.push(l)}r.forEach((function(e){e.prepareRender(t,i),e.prepareGuideContainers(),e._gridRowContainer.prepare()}))},e.prototype.$_prepareAxes=function(t,e,i){for(var n=this,r=i?this._xContainers:this._yContainers,o=i?e.rows():e.cols();r.length<o;){var s=new qO(t,i);this._axisContainer.add(s),r.push(s)}for(;r.length>o;)r.pop().remove();r.forEach((function(i,r){i.prepare(t,n._bodyMap,e,r)}))},e.prototype.$_prepareAxisGuides=function(t,e,i){var n=this;(i?this._xContainers:this._yContainers).forEach((function(i,r){i.prepareGuides(t,n._bodyMap,e,r)}))},e.prototype.$_calc=function(t,e,i,n){var r=new Array(2*(e+1)),o=i-t.reduce((function(t,e){return t+e[n]}),0),s=new Array(e),a=0,l=0;for(l=0;l<e;l++)s[l]=o/e;for(l=0;l<e;l++)r[2*l]=a,r[2*l+1]=a+=t[l][n],a+=s[l];return r[2*l]=a,r[2*l+1]=a+t[l][n],r},e.prototype.$_calcExtents=function(t,e,i){this._inverted?(this._rowPoints=this.$_calc(this._xContainers,t.rowCount(),e,"mw"),this._colPoints=this.$_calc(this._yContainers,t.colCount(),i,"mh")):(this._rowPoints=this.$_calc(this._xContainers,t.rowCount(),i,"mh"),this._colPoints=this.$_calc(this._yContainers,t.colCount(),e,"mw"))},e.prototype.$_layoutAxes=function(t,e,i,n){var r=this.control._padding,o=this._rowPoints,s=this._colPoints,a=e?this._xContainers:this._yContainers;if(this._inverted)if(e){var l=s[1],u=s[s.length-2]-l;a.forEach((function(t,e){t.resize(t.mw,u),t.trans(o[2*e],n-s[s.length-2]),t.layout(s)}))}else{var h=o[1],p=o[o.length-2]-h;a.forEach((function(t,e){for(var i=t.sections,a=0,l=i.length;a<l;a++){var u=i[a],c=0===a?r.left:0,f=a===l-1?r.right:0,_=0,d=0;l>1&&(_=o[2*a+1]-o[2*a],d=o[2*(a+1)+1]-o[2*(a+1)],0===a?i[a+1].isEmpty()?d=o[2*(a+1)]-o[2*(a+1)-1]:d/=2:a===l-1?i[a-1].isEmpty()?_=o[2*(a-1)]-o[2*(a-1)-1]:_/=2:(i[a-1].isEmpty()?_=o[2*(a-1)]-o[2*(a-1)-1]:_/=2,i[a+1].isEmpty()?d=o[2*(a+1)]-o[2*(a+1)-1]:d/=2)),u.setMargins(c,_,d,f)}t.resize(p,t.mh),t.trans(h,n-s[2*e+1]),t.layout(o)}))}else if(e){var c=s[1];i=s[s.length-2]-c,a.forEach((function(t,e){for(var l=t.sections,u=0,h=l.length;u<h;u++){var p=l[u],f=0===e?r.left:0,_=e===a.length-1?r.right:0,d=0,y=0;h>1&&(d=s[2*u+1]-s[2*u],y=s[2*(u+1)+1]-s[2*(u+1)],0===u?l[u+1].isEmpty()?y=s[2*(u+1)]-s[2*(u+1)-1]:y/=2:u===h-1?l[u-1].isEmpty()?d=s[2*(u-1)]-s[2*(u-1)-1]:d/=2:(l[u-1].isEmpty()?d=s[2*(u-1)]-s[2*(u-1)-1]:d/=2,l[u+1].isEmpty()?y=s[2*(u+1)]-o[2*(u+1)-1]:y/=2)),p.setMargins(f,d,y,_)}t.resize(i,t.mh),t.trans(c,n-o[2*e+1]),t.layout(s)}))}else{var f=o[o.length-2],_=f-o[1];a.forEach((function(t,e){t.resize(t.mw,_),t.trans(s[2*e],n-f),t.layout(o)}))}},e.prototype.$_layoutBodies=function(t,e,i){t.chart._body;var n=t.rowCount(),r=t.colCount(),o=this._rowPoints,s=this._colPoints,a=this._bodies;if(this._inverted)for(var l=0;l<n;l++)for(var u=o[2*(l+1)-1],h=o[2*(l+1)],p=0;p<r;p++){var c=a[l*r+p],f=s[2*p+1],_=s[2*(p+1)];c.measure(this.doc,t.getPane(l,p).body,h-u,_-f,1),c.resize(h-u,_-f),c.trans(u,this.height-_),c.layout()}else for(l=0;l<n;l++)for(f=o[2*(l+1)-1],_=o[2*(l+1)],p=0;p<r;p++){c=a[l*r+p],u=s[2*(p+1)-1],h=s[2*(p+1)];c.measure(this.doc,t.getPane(l,p).body,h-u,_-f,1),c.resize(h-u,_-f),c.trans(u,i-_),c.layout()}},e.STYLE_NAME="rct-panes",e}(NP),JO=function(t){function e(e){var i=t.call(this,e,"rct-polar-axis-tick-mark")||this;return i.add(i._lineView=new VL(e)),i}return Dx(e,t),e.prototype.layout=function(){},e}(LP),QO=function(t){function e(e,i,n,r){var o=t.call(this,e,i)||this;return o.add(o._markContainer=new NP(e,"rct-polar-axis-markers")),o._markViews=new KE(o._markContainer,JO),o.add(o._gridContainer=new LP(e,"rct-polar-axis-grids")),o._labelViews=new KE(o._labelContainer=n,mL,r?"rct-polar-xaxis-label":"rct-polar-yaxis-label"),o}return Dx(e,t),e.prototype.prepare=function(t,e,i,n){this._model=e,this._circular=i,this._markLen=e.tick.options.length,this.$_prepareTickMarks(t,e),this.$_prepareLabels(t,e),this._doPrepare(e,e._ticks,i,n)},e.prototype.layout=function(t,e,i,n){var r=this._model._ticks;return this._doLayout(this._model,e,i,n,r,t),this},e.prototype.$_prepareTickMarks=function(t,e){this._markViews.prepare(e._ticks.length)},e.prototype._prepareLabel=function(t,e,i,n){var r=i.getLabelText(e,n),o=e.label;(t.value=e.value,t.internalClearStyleAndClass(),t.internalSetStyleOrClass(i._style),t.internalSetStyleOrClass(i.getLabelStyle(e,n)),null!=r)?o&&r.match(xL)?t.setLabel(i,e,r.replace(xL,o),1e3,1e3):(i.prepareRich(r),i._paramTick=e,i.buildSvg(t._text,t._outline,NaN,NaN,i,i._domain)):t.setLabel(i,e,o,1e3,1e3)},e.prototype.$_prepareLabels=function(t,e){var i=this,n=e.label;if(this._labelContainer.setVis(n.visible)){var r=e._ticks;this._labelContainer.setStyleOrClass(n._style);var o=n.chart._body.getPolar(e),s=o.start,a=o.total,l="auto"===n.options.rotation,u=r.length;this._labelViews.prepare(u,(function(t,o,h){t.setVis(!0),i._prepareLabel(t,r[o],n,h);var p=l?(s+e.getPos(u,r[o].value))/a*360+90:0,c=t.getBBox(),f=c.width,_=c.height;t.setRotation(f/2,_/2,p)}))}},e.prototype.prepareGuides=function(t,e,i){var n=this._model.guides.filter((function(t){return!t.options.front}));e.setAll(t,n,!0),n=this._model.guides.filter((function(t){return t.options.front})),i.setAll(t,n,!0)},e}(LP),tM=function(t){function e(i,n,r){var o=t.call(this,i,"rct-polar-xaxis",r,!0)||this;return o._gridLines=new KE(o._gridContainer,OC,e.GRID_CLASS),n.insertFirst(o._startView=new OC(i,e.SECTOR_LINE_CLASS)),n.insertFirst(o._endView=new OC(i,e.SECTOR_LINE_CLASS)),n.insertFirst(o._lineView=new AL(i,e.LINE_CLASS)),o}return Dx(e,t),e.prototype._doPrepare=function(t,e,i){var n=t.line,r=t.sectorLine,o=this._lineView;this._gridContainer.setVis(t.grid.visible)&&this._gridLines.prepare(e.length),o.setVis(n.visible)&&(o.setStyleOrClass(n._style),o.setFill("none")),this._startView.setVis(i&&t.isArced()&&r.visible)?(this._startView.setStyleOrClass(r._style),this._endView.setVis(!0),this._endView.setStyleOrClass(r._style)):this._endView.setVis(!1)},e.prototype._doLayout=function(t,e,i,n,r,o){var s=t.getStartAngle(),a=t.getTotalAngle();if(r.forEach((function(t){return t.pos=t.pos/n*a/PS})),this._gridContainer.visible&&this._gridLines.forEach((function(o,a){var l=r[a].pos,u=e+tS(s+l)*n,h=i+eS(s+l)*n;o.setFill("none"),o.setLine(e,i,u,h),o.setStyleOrClass(t.grid.options.style)})),this._labelContainer.visible){var l=this._labelViews.count,u=Math.ceil(9/(360/l)),h=n+t.tick.options.length,p=this._labelContainer.textAlign()||"center";this._labelViews.forEach((function(t,n){if(t.setVis(n%u==0)){t.layout(p);var o=r[n],a=t.getBBox(),l=s+o.pos,c=e+tS(l)*(h+a.width/2)-a.width/2,f=i+eS(l)*(h+a.height/2)-a.height/2;t.trans(c,f)}})),l>2&&sS(r[l-1].pos-r[l-2].pos)<PS/24&&this._labelViews.get(l-1).setVis(!1)}if(this._lineView.visible)if(this._circular)this._lineView.setArc(e,i,n,s,t.getTotalAngle(),!0);else{var c=[];r.map((function(t){var r=t.pos;c.push(e+tS(s+r)*n,i+eS(s+r)*n)})),this._lineView.setPolyline(c)}this._startView.visible&&(this._startView.setLine(e,i,e+tS(s)*n,i+eS(s)*n),this._endView.setLine(e,i,e+tS(s+a)*n,i+eS(s+a)*n))},e.LINE_CLASS="rct-polar-xaxis-line",e.SECTOR_LINE_CLASS="rct-polar-xaxis-sector-line",e.GRID_CLASS="rct-polar-xaxis-grid-line",e}(QO),eM=function(t){function e(i,n,r){var o=t.call(this,i,"rct-polar-yaxis",r,!1)||this;return o._gridLines=new KE(o._gridContainer,AL,e.GRID_LINE_STYLE),n.add(o._lineView=new OC(i,"rct-polar-yaxis-line")),o}return Dx(e,t),e.prototype._doPrepare=function(t,e,i,n){var r=t.line;this._gridContainer.setVis(!1!==t.grid.visible)&&this._gridLines.prepare(e.length,null),(this._lineView.visible=r.visible)&&this._lineView.setStyleOrClass(r._style)},e.prototype._doLayout=function(t,e,i,n,r,o){var s=o.getStartAngle(),a=o.getTotalAngle();if(this._gridContainer.visible){var l=this._circular;this._gridLines.forEach((function(n,u){var h=r[u].pos;if(n.setFill("none"),l)n.setArc(e,i,h,s,a,!0);else{var p=[];o._ticks.forEach((function(t){var n=t.pos;p.push(e+tS(s+n)*h,i+eS(s+n)*h)})),n.setPolyline(p)}n.setStyleOrClass(t.grid.options.style)}))}if(this._labelContainer.visible)if(o.isArced()){var u=o.getStartAngle();this._labelViews.forEach((function(t,n){var o=e+tS(u)*r[n].pos-t.getBBox().width/2,s=i+eS(u)*r[n].pos-t.getBBox().height/2;t.setContrast(null).trans(o,s)}))}else this._labelViews.forEach((function(t,n){t.setContrast(null).trans(e+2,i-r[n].pos-t.getBBox().height/2)}));this._lineView.visible&&this._lineView.setVLine(e,i,i-n)},e.GRID_LINE_STYLE="rct-polar-yaxis-grid-line",e}(QO),iM=function(t){function e(e,i){var n=t.call(this,e,i)||this;return n._yAxisViews=[],n}return Dx(e,t),e.prototype._doMeasure=function(e,i,n,r,o){var s=i.chart,a=t.prototype._doMeasure.call(this,e,i,n,r,o);return this._prepareAxes(e,s.xAxis,s._getYAxes().items(),this.model.options.circular,s.xAxis.isArced()),a},e.prototype._doLayout=function(){var t=this,e=this.model.setPolar(this.width,this.height),i=e.getPolar(null),n=i.cx,r=i.cy,o=i.rd;this._setImage(this.width,this.height),this._seriesViews.forEach((function(e){var i;e.model.needClip(!0)&&(t._polarClip||(t._polarClip=t.control.clipCircle()),t._polarClip.setCircle(n,r,o),e.getClipContainer().setClip(t._polarClip),null===(i=e.getClipContainer2())||void 0===i||i.setClip(t._polarClip)),e.resize(2*o,2*o),e.layout()})),this._seriesViews.forEach((function(t){t.afterLayout()})),this._xAxisView.layout(e.chart.yAxis,n,r,o),this._yAxisViews.forEach((function(t){t.layout(e.chart.xAxis,n,r,o)})),[this._guideContainer,this._frontGuideContainer].forEach((function(i){i._views.forEach((function(i){return i.visible&&i.layout(t.width,t.height,e.getPolar(i.model.axis))}))})),this._layoutAnnotations(!1,this,this.width,this.height)},e.prototype._prepareAxes=function(t,e,i,n,r){var o=this;this._axisContainer||(this.insertFirst(this._axisLabelContainer=new NP(t,"rct-polar-axis-labels")),this.insertFirst(this._lineContainer=new NP(t,"rct_axis-lines")),this.insertFirst(this._axisContainer=new NP(t,"rct-polar-axes")));for(var s=this._yAxisViews;s.length<i.length;){var a=new eM(t,this._lineContainer,this._axisLabelContainer);this._axisContainer.add(a),s.push(a)}for(;s.length>i.length;)s.pop().remove();s.forEach((function(e,s){e.prepare(t,i[s],n,r),e.prepareGuides(t,o._guideContainer,o._frontGuideContainer)})),this._xAxisView||this._axisContainer.add(this._xAxisView=new tM(t,this._lineContainer,this._axisLabelContainer)),this._xAxisView.prepare(t,e,n,r)},e}(BO),nM=function(t){function e(i,n){var r=t.call(this,i,n?e.SUBTITLE_CLASS:e.TITLE_CLASS,n?"rct-subtitle-background":"rct-title-background")||this;return r.isSub=n,r.add(r._textView=new $P(i)),r._richText=new QP,r}return Dx(e,t),e.prototype._marginable=function(){return!1},e.prototype._setBackgroundStyle=function(t){t.setStyleOrClass(this.model.options.backgroundStyle)},e.prototype._doMeasure=function(t,e,i,n,r){return this._richText.setFormat(e.options.text),this._richText.build(this._textView,i,n,null,null),tL(this._textView.getBBox())},e.prototype._doLayout=function(){this._richText.layout(this._textView,this.textAlign(),this.width,this.height,this._paddings)},e.TITLE_CLASS="rct-title",e.SUBTITLE_CLASS="rct-subtitle",e}(pL);!function(t){t.TOP="top",t.BOTTOM="bottom",t.LEFT="left",t.RIGHT="right"}(VO||(VO={}));var rM,oM=function(t){function e(i){var n=t.call(this,i,e.CLASS_NAME)||this;return n._topHeight=7,n._tailSize=10,n._radius=5,n._tailVisible=!0,n._hideHandler=function(){n.$_hide(),n._hideTimer=void 0},n.add(n._back=new RP(i,"rct-tooltip-back")),n.add(n._top=new RP(i,"rct-tooltip-top")),n.add(n._textView=new $P(i,"rct-tooltip-text")),n._back.setAttr("filter","url(#"+EP.SHADOW_FILTER+")"),n._textView.anchor=BP.START,n._richText=new QP,n.close(!0,!1),n}return Dx(e,t),e.prototype.show=function(t,e,i,n,r,o,s){var a=e.point,l=this._model=t.chart._tooltip,u=l.setTarget(t,a,i&&i.map((function(t){return t.point})));if(u){var h=l.options,p=h.text||u.getTooltipText(t,a);if(p&&p.trim()){this.setStyleOrClass(l._style);var c=this.control,f=c.contentWidth(),_=c.contentHeight(),d=this._textView,y=t.chart.isInverted(),g=t._yAxisObj.options.reversed;this._richText.setFormat(p),this._richText.build(d,NaN,NaN,null,l.getTextDomain());var v=d.getBBox(),m=oS(h.minWidth||0,v.width+16),b=oS(h.minHeight||0,v.height+12)+this._topHeight;t instanceof eA&&t.options.legendByPoint?this._top.setFill(a._calcedColor):this._top.setFill(t._calcedColor);var w,x="visible"===this.getStyle("visibility")?300:0,S=h.offset+this._tailSize,P=o.getFocusPointView().getBounds(),V=c.getBounds();if(y){w=r-b/2-oS(0,rS(r-b/2,_-b)),this._tailVisible=Math.abs(b/2-this._radius-this._tailSize/2)>Math.abs(w),(l.isFollowPointer(t)?g?m+S>n:n+m+S>f:g?m+S>P.x-V.x+P.width:P.x-V.x-S>f-m)&&(g=!g);var k=g?VO.LEFT:VO.RIGHT;this.drawTooltip(0,0,m,b,k,w),g?n-=m+S:n+=S,r-=b/2}else{w=n-m/2-oS(0,rS(n-m/2,f-m)),this._tailVisible=Math.abs(m/2-this._radius-this._tailSize/2)>Math.abs(w),(l.isFollowPointer(t)?g?r+b+S>_:r-(b+S)<0:g?_-(P.y-V.y-c._padding.top)<b+S:V.bottom-P.bottom+S>_-b)&&(g=!g);k=g?VO.BOTTOM:VO.TOP;this.drawTooltip(0,0,m,b,k,w),n-=m/2,g?r+=S:r-=b+S}n=oS(0,rS(n,f-m)),r=oS(0,rS(r,_-b)),this.transEx(n,r,x,!1),0===x&&this.setStyle("visibility","visible"),this._hideTimer&&(clearTimeout(this._hideTimer),this._hideTimer=void 0)}}},e.prototype.close=function(t,e){t?(this._hideTimer&&(clearTimeout(this._hideTimer),this._hideTimer=void 0),this.$_hide()):this._hideTimer||(this._hideTimer=setTimeout(this._hideHandler,this._model?this._model.options.hideDelay:xA.defaults.hideDelay))},e.prototype.isVisible=function(){return"visible"===this.getStyle("visibility")},e.prototype.$_hide=function(){var t=this;dk(this.dom,"opacity",void 0,0,200,(function(){t.setStyle("visibility","hidden")}))},e.prototype.drawTooltip=function(t,e,i,n,r,o){var s=this._tailSize,a=this._radius,l=this._topHeight,u=["M",t+a,e,"L",t+i-a,e,"Q",t+i,e,t+i,e+a,"L",t+i,e+n-a,"Q",t+i,e+n,t+i-a,e+n,"L",t+a,e+n,"Q",t,e+n,t,e+n-a,"L",t,e+a,"Q",t,e,t+a,e];if(this._tailVisible)switch(r){case VO.TOP:u=u.concat(["M",t+i/2-s/2+o,e+n,"L",t+i/2+o,e+n+s,"L",t+i/2+s/2+o,e+n]);break;case VO.BOTTOM:u=u.concat(["M",t+i/2-s/2+o,e,"L",t+i/2+o,e-s,"L",t+i/2+s/2+o,e]);break;case VO.LEFT:u=u.concat(["M",t+i,e+n/2-s/2+o,"L",t+i+s,e+n/2+o,"L",t+i,e+n/2+s/2+o]);break;case VO.RIGHT:u=u.concat(["M",t,e+n/2-s/2+o,"L",t-s,e+n/2+o,"L",t,e+n/2+s/2+o])}var h=r===VO.BOTTOM,p=h?["M",t,e+n-l,"l",i,0,"l",0,l-a,"q",0,a,-a,a,"l",2*a-i,0,"q",-a,0,-a,-a]:["M",t+a,e,"l",i-2*a,0,"q",a,0,a,a,"l",0,l-a,"l",-i,0,"l",0,a-l,"q",0,-a,a,-a],c=this._textView,f=c.getBBox();t+=(i-f.width)/2,e+=(n-f.height+(h?-l:l))/2,c.trans(t,e),this._top.setPath(p),this._back.setPath(u)},e.CLASS_NAME="rct-tooltip",e}(LP),sM=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._hTitle=0,e._wTitle=0,e._hSub=0,e._wSub=0,e}return Dx(e,t),e.prototype._doInitChildren=function(t){this.add(this.titleView=new nM(t,!1)),this.add(this.subtitleView=new nM(t,!0))},e.prototype._doMeasure=function(t,e,i,n,r){var o,s=e._title,a=e._subtitle,l=0,u=0,h=0,p=0,c=this.titleView,f=i,_=0,d=0;switch(c.setVis(s.visible)?(o=c.measure(t,s,i,n,r),u=this._hTitle=o.height,l=this._wTitle=o.width):c.setModel(s),(c=this.subtitleView).setVis(a.visible)?(o=c.measure(t,a,i,n,r),p=this._hSub=o.height,h=this._wSub=o.width,d=+a.options.titleGap||0):c.setModel(a),a.options.position){case"left":case"right":_=oS(u,p),f=l+d+h;break;default:_=u+d+p,f=oS(f,l+h)}return _>0&&(_+=this.titleView.visible?aS(s.options.gap,0):aS(a.options.gap,0)),{width:f,height:_}},e.prototype._doLayout=function(t){var e=this,i=this.titleView,n=this.subtitleView,r=i.model,o=n.model,s=r&&r.options,a=o&&o.options,l=r&&r.visible?this._wTitle>t.wPlot||"chart"===s.alignBase?t.wChart:t.wPlot:0,u=o&&o.visible?this._wSub>t.wPlot||"chart"===a.alignBase?t.wChart:t.wPlot:0,h=this._wTitle>t.wPlot||r&&"chart"===s.alignBase?0:t.xPlot,p=this._wSub>t.wPlot||o&&"chart"===a.alignBase?0:t.xPlot;if(l>0&&u>0){var c=function(t,e,i){switch(t.options.verticalAlign){case"top":return 0;case"bottom":return e-i;default:return(e-i)/2}},f=function(){var t=oS(e._hTitle,e._hSub);g=oS(g,g+c(r,t,e._hTitle)),m=oS(m,m+c(o,t,e._hSub))},_=function(t,e,i){switch(t.options.align){case"left":return 0;case"right":return e-i;default:return(e-i)/2}},d=function(){if(v=oS(v,v+_(r,l,e._wTitle)),"parent"===o.options.alignBase)switch(o.options.align){case"left":b=v;break;case"right":b=v+e._wTitle-e._wSub;break;default:b=v+(e._wTitle-e._wSub)/2}else b=oS(b,b+_(o,u,e._wSub))},y=aS(a.titleGap,0),g=0,v=h,m=0,b=p;switch(s.align){case"left":switch(a.position){case"left":v=b+this._wSub+y,f();break;case"right":switch(b=v+this._wTitle+y,a.align){case"center":b=oS(b,b+(u-this._wTitle-this._wSub)/2);break;case"right":b=oS(b,p+u-this._wSub)}f();break;case"top":d(),g=m+this._hSub+y;break;default:d(),m=g+this._hTitle+y}break;case"right":switch(a.position){case"left":switch(v+=l-this._wTitle,a.align){case"center":b+=(l-this._wTitle-this._wSub)/2;break;case"right":b=v-y-this._wSub}f();break;case"right":b+=u-this._wSub,v=b-y-this._wTitle,f();break;case"top":d(),g=m+this._hSub+y;break;default:d(),m=g+this._hTitle+y}break;default:switch(a.position){case"left":switch(v+=(l-this._wTitle)/2,a.align){case"left":break;case"center":b+=(v-b-this._wSub)/2;break;case"right":b=v-y-this._wSub}f();break;case"right":switch(v+=(l-this._wTitle)/2,a.align){case"left":b=v+this._wTitle+y;break;case"center":b=v+this._wTitle+y,b+=(u-b-this._wSub)/2;break;case"right":b+=u-y-this._wSub}f();break;case"top":d(),g=m+this._hSub+y;break;default:d(),m=g+this._hTitle+y}}i.resizeByMeasured().layout().trans(v,g),n.resizeByMeasured().layout().trans(b,m)}else if(l>0||u>0){var w=l?r:o,x=l?i:n,S=l||u,P=l?this._wTitle:this._wSub,V=l?h:p;switch(x.resizeByMeasured().layout(),w.options.align){case"left":break;case"right":V+=S-P;break;default:V+=(S-P)/2}x.trans(V,0)}},e}(cL),aM=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dx(e,t),e.prototype._doInitChildren=function(t){this.add(this._legendView=new XO(t))},e.prototype._doMeasure=function(t,e,i,n,r){var o=e._legend,s=this._legendView.measure(t,o,i,n,r),a=this._pos=o._location;return"left"===a||"right"===a?s.width+=this._legendView._gap:s.height+=this._legendView._gap,s},e.prototype._doLayout=function(){var t=this._legendView,e=t._gap,i=this.width,n=this.height,r=0,o=0;switch(this._pos){case"left":i-=e;break;case"right":i-=e,r+=e;break;case"top":n-=e;break;default:o+=e,n-=e}t.trans(r,o).resize(i,n),t.layout()},e}(cL),lM=function(t){function e(e,i){var n=t.call(this,e)||this;return n.dir=i,n.views=[],n.visibles=[],n._gap=0,n}return Dx(e,t),e.prototype.prepare=function(t,e,i,n,r){for(var o,s=this.views,a=s.length;s.length<i.length;)o=new SL(t),i[a++].visible&&this.add(o),s.push(o);for(;s.length>i.length;)(o=s.pop()).parent&&o.remove();if(s.forEach((function(t,e){t.prepare(i[e])})),this.setVis(s.filter((function(t){return t.model.visible})).length>0)){var l=s[0].model;this.isX=l._isX,this.isHorz=l._isHorz,this._gap=l.chart.getAxesGap()}},e.prototype.prepareGuides=function(t,e,i){this.views.forEach((function(n,r){n.prepareGuides(t,NaN,NaN,e,i)}))},e.prototype.checkHeights=function(t,e,i){return this.views.length>0?this.$_checkHeights(this.views,t,e,i):0},e.prototype.$_checkHeights=function(t,e,i,n){var r=0;return t&&(t.forEach((function(t){r+=t.checkHeight(e,i,n)})),r+=(this.views.length-1)*this._gap),r},e.prototype.checkWidths=function(t,e,i){return this.views.length>0?this.$_checkWidths(this.views,t,e,i):0},e.prototype.$_checkWidths=function(t,e,i,n){var r=0;return t&&(t.forEach((function(t){r+=t.checkWidth(e,i,n)})),r+=(this.views.length-1)*this._gap),r},e.prototype.getScrollView=function(t){var e,i,n;try{for(var r=Ix(this.views),o=r.next();!o.done;o=r.next()){var s=o.value;if(null===(n=s._scrollView)||void 0===n?void 0:n.contains(t))return s._scrollView}}catch(t){e={error:t}}finally{try{o&&!o.done&&(i=r.return)&&i.call(r)}finally{if(e)throw e.error}}},e.prototype.prepareGridRows=function(t,e){e.addAll(t,this.views.map((function(t){return t.model})))},e.prototype.clean=function(){this.views.forEach((function(t){return t.clean()}))},e.prototype.setMargins=function(t,e,i,n){this.views.forEach((function(r){return r.setMargins(t,e,i,n)}))},e.prototype._doMeasure=function(t,e,i,n,r){var o=this,s=(this._inverted,0),a=0;return[this.views].forEach((function(e){if(e){var l=(o.isX,i),u=(o.isX,n),h=0,p=0;e.forEach((function(e){if(e.visible){var i=e.measure(t,e.model,l,u,r);e.setAttr("xy",e.model._isX?"x":"y"),h+=i.width,p+=i.height}})),o.isHorz?p+=(e.length-1)*o._gap:h+=(e.length-1)*o._gap,s=oS(s,h),a=oS(a,p)}})),{width:s,height:a}},e.prototype._doLayout=function(t){var e=this,i=this.control.loaded,n=this.width,r=this.height,o=0,s=0;t=+t||0,[this.views].forEach((function(a){if(a){var l=0;a.forEach((function(t){t.visible&&(t.checkExtents(i),e.isHorz?t.resize(n,t.mh):t.resize(t.mw,r),t.layout(),e.isHorz?(t.trans(o,e.dir===DE.TOP?r-l-t.mh:l),l+=t.mh+e._gap):(t.trans(e.dir===DE.RIGHT?l:n-l-t.mw,s),l+=t.mw+e._gap))})),e.isHorz?o+=n+t:s+=r+t}}))},e}(cL),uM=function(t){function e(e){var i=t.call(this,e,"rct-credits")||this;return i.add(i._textView=new $P(e)),i._textView.anchor=BP.START,i}return Dx(e,t),e.prototype.clicked=function(t){this.model.options.url&&window.open(this.model.options.url,"new")},e.prototype._doMeasure=function(t,e,i,n,r){return this._textView.text=e.options.text,this.setCursor(e.options.url?"pointer":""),this._textView.getBBox()},e}(hL),hM=function(t){function e(e){var i=t.call(this,e,"rct-chart")||this;for(var n in i._inverted=!1,i._axisSectionMap={},i._annotationViews=[],i._annotationMap=new Map,i.add(i._annotationContainer=new NP(e,"rct-annotations")),i.add(i._plotContainer=new NP(e,"rct-plot-container")),i._plotContainer.add(i._currBody=i._bodyView=new BO(e,i)),DE){var r=new lM(e,DE[n]);i._plotContainer.add(r),i._axisSectionMap[DE[n]]=r}return i.add(i._paneContainer=new KO(e,i)),i.add(i._titleSectionView=new sM(e)),i.add(i._legendSectionView=new aM(e)),i.add(i._frontAnnotationContainer=new NP(e,"rct-front-annotations")),i.add(i._creditView=new uM(e)),i.add(i._navigatorView=new FO(e)),i.add(i._historyView=new WO(e)),i.add(i._tooltipView=new oM(e)),i}return Dx(e,t),e.prototype.getAnnotationAnchor=function(t){return this._annotationMap.get(t)},e.prototype.titleView=function(){return this._titleSectionView.titleView},e.prototype.subtitleView=function(){return this._titleSectionView.subtitleView},e.prototype.bodyView=function(){return this._bodyView},e.prototype.clean=function(){for(var t in this._axisSectionMap)this._axisSectionMap[t].clean()},e.prototype.measure=function(t,e,i,n,r){var o,s=this,a=this._model=e,l=a.isPolar(),u=a._chartOptions.credits,h=a._legend,p=a._navigator,c=i,f=n;if(this._inverted=a.isInverted(),a.isSplitted()?(this._plotContainer.setVis(!1),this._paneContainer.setVis(!0),this.$_preparePanes(t,a._split)):(this._plotContainer.setVis(!0),this._paneContainer.setVis(!1),this.$_prepareBody(t,l)),this._creditView.setVis(u.visible)&&(o=this._creditView.measure(t,u,c,f,r),u.isFloating()||("middle"!==u.options.verticalAlign?f-=o.height+(+u.options.offsetY||0)+(+u.options.gap||0):"center"!==u.options.align&&(c-=o.width+(+u.options.offsetX||0)+(+u.options.gap||0)))),f-=(o=this._titleSectionView.measure(t,a,c,f,r)).height,this._legendSectionView.setVis(h.visible))switch(o=this._legendSectionView.measure(t,a,c,f,r),h._location){case"top":case"bottom":f-=o.height;break;case"right":case"left":c-=o.width}this._navigatorView.setVis(p.visible),this._paneContainer.visible?this._paneContainer.measure(t,a._split,a._xPaneAxes,a._yPaneAxes,c,f,1):l?this.$_measurePolar(t,a,c,f,1):this.$_measurePlot(t,a,c,f,1),this._navigatorView.visible&&(a._navigator._vertical?f=this._bodyView.mh:c=this._bodyView.mw,this._navigatorView.measure(t,p,c,f,r)),this.$_prepareAnnotations(t,e.getAnnotations()),this._annotationViews.forEach((function(e,o){e.measure(t,s._annotations[o],i,n,r)}))},e.prototype.layout=function(){var t=this,e=this.width,i=this.height,n=e,r=i,o=this._model,s=o.isPolar(),a=o._legend,l=this._creditView,u=o._chartOptions.credits,h=u.options,p=+h.gap||0,c=0,f=0,_=0,d=0,y=0,g=0,v=0,m=0;l.visible&&(l.resizeByMeasured(),u.isFloating()||("middle"!==h.verticalAlign?(c=+h.offsetY||0,"top"===h.verticalAlign?r-=_=l.height+c+p:r-=d=l.height+c+p):(f=+h.offsetX||0,"left"===h.align?n-=y=l.width+f+p:n-=g=l.width+f+p)));var b=this._titleSectionView,w=0,x=m+_;b.visible&&(b.resizeByMeasured(),r-=w=b.height),v=y,m=i-d;var S=this._navigatorView,P=0;S.visible&&(S.model._vertical||(S.resize(S.mw,S.mh-S.model.getGap()-S.model.getGapFar()),r-=P=S.mh));var V,k,A=this._legendSectionView,C=0,E=0;if(A.visible)switch(A.resizeByMeasured().layout(),C=A.height,E=A.width,a._location){case"top":V=w+_,r-=C;break;case"bottom":r-=C,V=m-C,m-=C;break;case"right":n-=E,k=e-E;break;case"left":n-=E,v+=E,k=0}S.visible&&(m-=P,S.layout().transY(m+S.model.getGap()));var L,N=0,O=0,M=0,T=0;if(this._paneContainer.visible)this._paneContainer.trans(v,x+w).resize(n,r),this._paneContainer.layout(),M=r,T=n,L=this._paneContainer.getRect();else{var R,B=this._axisSectionMap,D=B[DE.CENTER],F=B[DE.MIDDLE];if(!s){var I=this.control._padding;D&&D.visible&&(N=D.mw),F&&F.visible&&(O=F.mh),[DE.LEFT,DE.RIGHT].forEach((function(t){(R=B[t])&&R.visible&&(n-=R.mw)})),[DE.TOP,DE.BOTTOM].forEach((function(t){(R=B[t])&&R.visible&&(r-=R.mh)})),(R=B[DE.LEFT])&&R.visible&&(R.resize(R.mw,r),R.layout(O),v+=R.mw),(R=B[DE.RIGHT])&&R.visible&&(R.resize(R.mw,r),R.layout(O)),N>0&&(D.resize(R.mw,r),D.layout()),(R=B[DE.BOTTOM])&&R.visible&&(R.setMargins(I.left,v,this.width-v-n,Math.max(0,I.right-2)),R.resize(n,R.mh),R.layout(N),m-=R.mh),(R=B[DE.TOP])&&R.visible&&(R.setMargins(I.left,v,this.width-v-n,Math.max(0,I.right-1)),R.resize(n,R.mh),R.layout(N)),O>0&&(F.resize(n,R.mh),F.layout())}S.visible&&S.layout().transX(v);var j=this._org={x:v,y:m};this._plotWidth=n,this._plotHeight=r,s||((R=B[DE.LEFT])&&R.visible&&R.trans(j.x-R.mw,j.y-R.height),(R=B[DE.RIGHT])&&R.visible&&R.trans(j.x+n,j.y-R.height),N>0&&D.trans(j.x+(n-N)/2,j.y-D.height),(R=B[DE.BOTTOM])&&R.visible&&R.trans(j.x,j.y),(R=B[DE.TOP])&&R.visible&&R.trans(j.x,j.y-r-R.height),O>0&&F.trans(j.x,j.y-(r-O)/2-O));var $=this._currBody;M=this._plotHeight-O,T=this._plotWidth-N,v=j.x,m=j.y-this._plotHeight,$.resize(T,M),$.trans(v,m),$.layout(),L=$.getRect(),$._seriesViews.forEach((function(e){if(e.needDecoreateLegend()){var i=t._legendSectionView._legendView.legendOfSeries(e.model);i&&e.decoreateLegend(i)}}))}if(l.visible){var z=void 0,H=void 0;switch(l.layout(),h.verticalAlign){case"top":H=c;break;case"middle":H=(i-l.height)/2+c;break;default:H=d>0?i-d+p:i-l.height-c}switch(h.align){case"left":z=f;break;case"center":z=(e-l.width)/2+f;break;default:z=g>0?e-g+p:e-l.width-f}l.trans(z,H)}if(T+=N,b.visible&&b.layout({xPlot:v,wPlot:T,wChart:e}).trans(0,x),A.visible){var G=a.options,W=G.align,Y=G.verticalAlign;if("body"===a._location){var X=+G.offsetX||0;switch(W){case"right":v+=T-E-X;break;case"center":v+=(T-E)/2+X;break;default:v+=X}switch(X=+G.offsetY||0,Y){case"bottom":m+=M-C-X;break;case"middle":m+=(M-C)/2+X;break;default:m+=X}}else if(isNaN(V)){X=+G.offsetY||0;if(v=k,"chart"===G.alignBase){switch(Y){case"top":m=X;break;case"bottom":m=i-C-X;break;default:m=(i-C)/2+X}m+C>i&&(m=(i-C)/2)}else switch(Y){case"top":m+=X;break;case"bottom":m=m+r-C-X;break;default:m=m+(r-C)/2+X}m+C>i&&(m=(i-C)/2),m<0&&(m=0)}else{var X=+G.offsetX||0;if(m=V,"chart"===G.alignBase)switch(W){case"left":v=X;break;case"right":v=e-E-X;break;default:v=(e-E)/2+X}else switch(W){case"left":v+=X;break;case"right":v=v+n-E-X;break;default:v+=(n-E)/2+X}v+E>e&&(v=(e-E)/2),v<0&&(v=0)}A.trans(v,m)}this.$_layoutAnnotations(this._inverted,e,i,L),this._tooltipView.close(!0,!1)},e.prototype.showTooltip=function(t,e,i,n,r){var o=e.getTooltipPos?e.getTooltipPos():{x:e.point.xPos,y:e.point.yPos},s=o.x,a=o.y,l=this._model.chart._tooltip.isFollowPointer(t),u=n.getTooltipPos(),h=l?r.x+u.x:s+u.x,p=l?r.y+u.y:a+u.y;this._tooltipView.show(t,e,i,h,p,n,!0)},e.prototype.tooltipVisible=function(){return this._tooltipView.isVisible()},e.prototype.hideTooltip=function(){this._tooltipView.close(!1,!0)},e.prototype.getSeriesView=function(t){return this._model.isSplitted()?this._paneContainer.getSeries(t):this._currBody.getSeries(t)},e.prototype.legendByDom=function(t){return this._legendSectionView._legendView.legendByDom(t)},e.prototype.seriesByDom=function(t){return this._paneContainer.visible?this._paneContainer.seriesByDom(t):this._currBody.seriesByDom(t)},e.prototype.findSeriesView=function(t){return this._currBody.findSeries(t)},e.prototype.creditByDom=function(t){return this._creditView.dom.contains(t)?this._creditView:null},e.prototype.bodyOf=function(t){return this._model.isSplitted()?this._paneContainer.bodyViewOf(t):this._currBody},e.prototype.pointerMoved=function(t,e,i){var n,r=this,o=i,s=this._model&&this.bodyOf(i),a=null==o?void 0:o.classList,l=(null==a?void 0:a.value)&&(a.contains("rct-contextmenu-item")||a.contains("rct-contextmenu-list")),u=this._hoverItem;if(this._hoverItem=null,s){var h=s.controlToElement(t,e),p=s.pointerMoved(h,i);if(!this._hoverItem&&this._legendSectionView._legendView.contains(o)){var c=this._hoverItem=this._legendSectionView._legendView.legendByDom(o);c&&(c.legend.options.seriesHovering&&c.source instanceof Uk?s.hoverSeries(c.source):c.legend.options.pointHovering&&c.source instanceof Mk&&s.hoverPoint(c.source))}if(u instanceof ck&&!(this._hoverItem instanceof ck)&&(s.hoverSeries(null),s.hoverPoint(null)),!p)return void s.removeFocus();for(var f in this._axisSectionMap)this._axisSectionMap[f].views.forEach((function(t){var e=t.model,i=e.crosshair,n=e._isHorz?s.width:s.height,o=e._isHorz?h.x:h.y,a=p&&i.visible&&!l&&i.flag.visible&&!i.isBar()&&i.getFlag(n,o);if(a){t.showCrosshair(o,a);var u=[];s._seriesViews.forEach((function(t){var i,n=Number.MAX_SAFE_INTEGER,o=r._model.inverted;t.model._visPoints.forEach((function(t){var r=t.xPos,s=t instanceof HC&&!o?t.yPos-(t.yPos-t.yLow)/2:t.yPos,a=e._isX?Math.abs(h.x-r):Math.abs(h.y-s);a<n&&(n=a,i=t)})),u.push(i)})),i.moved(o,a,u)}else t.hideCrosshiar()}))}else(null===(n=this._model)||void 0===n?void 0:n.isSplitted())?this._paneContainer.bodies.forEach((function(t){t.removeFocus()})):this._currBody.removeFocus()},e.prototype.getAxis=function(t){for(var e in this._axisSectionMap){var i=this._axisSectionMap[e].views.find((function(e){return e.model===t}));if(i)return i}},e.prototype.getButton=function(t){return this._currBody.getButton(t)},e.prototype.buttonClicked=function(t){this._currBody.buttonClicked(t)},e.prototype.getScrollView=function(t){for(var e in DE){var i=this._axisSectionMap[DE[e]].getScrollView(t);if(i)return i}},e.prototype.updateAnnotation=function(t){var e=this._annotationViews.find((function(e){return e.model===t}));e?e.update(this,this.width,this.height):this._model.isSplitted()||(e=this._currBody._annotationViews.find((function(e){return e.model===t})))&&e.update(this._currBody,this._currBody.width,this._currBody.height)},e.prototype.isAnimating=function(){return this._bodyView.animating()},e.prototype._doAttached=function(t){},e.prototype.$_preparePanes=function(t,e){this._paneContainer.prepare(t,e)},e.prototype.$_prepareBody=function(t,e){var i,n;e?(this._polarView||(this._polarView=new iM(t,this),this._plotContainer.insertChild(this._polarView,this._bodyView)),this._currBody=this._polarView,null===(i=this._bodyView)||void 0===i||i.setVis(!1),this._polarView.setVis(!0)):(null===(n=this._polarView)||void 0===n||n.setVis(!1),this._bodyView.setVis(!0),this._currBody=this._bodyView),this._currBody.prepareRender(t,this._model)},e.prototype.$_prepareAxes=function(t,e){var i=this._currBody._gridRowContainer,n=this._currBody._guideContainer,r=this._currBody._frontGuideContainer,o=!e.isPolar()&&e._needAxes(),s=this._axisSectionMap;for(var a in s){var l=s[a];o?l.prepare(t,e,e.getAxes(a,!1),n,r):l.visible=!1}i.prepare()},e.prototype.$_prepareAxisGuides=function(t,e){var i=this._currBody._guideContainer,n=this._currBody._frontGuideContainer,r=!e.isPolar()&&e._needAxes(),o=this._axisSectionMap;for(var s in o){var a=o[s];r&&a.visible&&a.prepareGuides(t,i,n)}},e.prototype.$_measurePlot=function(t,e,i,n,r){var o=this._axisSectionMap;if(this._navigatorView.visible){var s=e._navigator;s._vertical?i-=s.getSize():n-=s.getSize()}var a=i,l=n,u=0,h=0;for(var p in this._bodyView.prepareGuideContainers(),this.$_prepareAxes(t,e),e.layoutAxes(i,n,this._inverted,r),i-=o[DE.LEFT].checkWidths(t,i,n),i-=o[DE.RIGHT].checkWidths(t,i,n),n-=o[DE.BOTTOM].checkHeights(t,i,n),n-=o[DE.TOP].checkHeights(t,i,n),this._inverted?i-=u=o[DE.CENTER].checkWidths(t,i,n):n-=h=o[DE.MIDDLE].checkHeights(t,i,n),i-=u,n-=h,e.layoutAxes(i,n,this._inverted,r),o){(c=o[p]).visible&&c.measure(t,e,i,n,r)}for(var p in i=a,n=l,u=0,h=0,o){(c=o[p]).visible&&(p===DE.LEFT||p===DE.RIGHT?i-=c.mw:p!==DE.BOTTOM&&p!==DE.TOP||(n-=c.mh),this._inverted?p===DE.CENTER&&(i-=u=c.mw):p===DE.MIDDLE&&(n-=h=c.mh))}for(var p in e.layoutAxes(i,n,this._inverted,r),this.$_prepareAxisGuides(t,e),o){(c=o[p]).visible&&(c.measure(t,e,i,n,r),c.prepareGridRows(t,this._bodyView._gridRowContainer))}for(var p in i=a,n=l,u=0,h=0,o){var c;(c=o[p]).visible&&(p===DE.LEFT||p===DE.RIGHT?i-=c.mw:p!==DE.BOTTOM&&p!==DE.TOP||(n-=c.mh),this._inverted?p===DE.CENTER&&(i-=u=c.mw):p===DE.MIDDLE&&(n-=h=c.mh))}e.axesLayouted(i,n,this._inverted),this._bodyView.measure(t,e._body,i,n,r)},e.prototype.$_measurePolar=function(t,e,i,n,r){var o=e._body.getRadius(i,n),s=2*Math.PI*o,a=o;this._polarView.prepareGuideContainers(),this.$_prepareAxes(t,e),e.layoutAxes(s,a,!1,r),this.$_prepareAxisGuides(t,e),e.axesLayouted(s,a,!1),this._polarView.measure(t,e._body,i,n,r)},e.prototype.$_prepareAnnotations=function(t,e){var i,n,r=this._annotationContainer,o=this._frontAnnotationContainer,s=this._annotationMap,a=this._annotationViews;try{for(var l=Ix(s.keys()),u=l.next();!u.done;u=l.next()){var h=u.value;e.indexOf(h)<0&&s.delete(h)}}catch(t){i={error:t}}finally{try{u&&!u.done&&(n=l.return)&&n.call(l)}finally{if(i)throw i.error}}a.forEach((function(t){return t.remove()})),a.length=0,(this._annotations=e).forEach((function(e){var i=s.get(e)||SO(t,e);(e.options.front?o:r).add(i),s.set(e,i),a.push(i)}))},e.prototype.$_layoutAnnotations=function(t,e,i,n){var r,o,s,a,l=this,u=this.control._padding;this._annotationViews.forEach((function(n){if("container"===n.model.options.scope)r=-u.left,o=-u.top,s=e+u.left+u.right,a=i+u.top+u.bottom;else r=o=0,s=e,a=i;n._layoutView(t,l,r,o,s,a)}))},e}(NP);!function(t){t.EXPORT="$$realchart_export"}(rM||(rM={}));var pM=function(t){function e(e,i){var n=t.call(this,e,i)||this;return n.addElement(n._chartView=new hM(e)),n.setPointerHandler(new GO(n)),n}return Dx(e,t),e.prototype._initControl=function(e,i,n){var r=this;t.prototype._initControl.call(this,e,i,n),this._chart=new qE(null,(function(t,e){r.changeModel(t,e)}))},e.prototype._doDestroy=function(){this.setPointerHandler(null),this._chart=null,t.prototype._doDestroy.call(this)},e.prototype.onModelChanged=function(t,e,i){e instanceof gV&&i===pV.REFRESHED?this._chartView.updateAnnotation(e):this.invalidateLayout()},e.prototype.onVisibleChanged=function(t,e){this.invalidateLayout()},e.prototype.onPointVisibleChanged=function(t,e,i){this.invalidateLayout()},e.prototype.onExportRequest=function(t,e){this._export(e)},e.prototype.onRefreshRequest=function(t){this.refresh()},Object.defineProperty(e.prototype,"chart",{get:function(){return this._chart},set:function(t){t!==this._chart&&(this._chart=t,this.changeModel(t._obj,this.model))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"model",{get:function(){return this._chart._obj},enumerable:!1,configurable:!0}),e.prototype.changeModel=function(t,e){t!==e&&(this.clearAssetDefs(),e&&(e._assets.unregister(this),e._removeListener(this)),t&&(t._addListener(this),t._assets.register(this.doc(),this)),this.loaded=!1,this.invalidateLayout(!0))},e.prototype.chartView=function(){return this._chartView},e.prototype.refresh=function(){this._render()},e.prototype.scroll=function(t,e){var i;null===(i=this._chartView.getAxis(t))||void 0===i||i.scroll(e)},e.prototype.use=function(t){if(t.MODULE_NAME&&t.MODULE_NAME===rM.EXPORT){var e=t.createExporter(this.doc(),this.dom(),this.model.options.exporting);this.chart.exporter.compose(e)}},e.prototype._doRender=function(t){var e,i=this.model,n=this._chartView;this.clearTemporaryDefs(),i&&(this.setData("theme",i._chartOptions.options.theme,!0),this.setData("palette",i._chartOptions.options.palette),i._prepareRender(),this._loadModules()),this.loaded||n.clean(),n.measure(this.doc(),i,t.width,t.height,1),n.setRect(t),n.layout(),i&&i.afterRender(),(null===(e=this._chart)||void 0===e?void 0:e._loadCallback)&&(setTimeout(this._chart._loadCallback,0),this._chart._loadCallback=void 0)},e.prototype._doRenderBackground=function(t,e,i,n){if(this.model){var r=this.model._chartOptions._style;if(Gx(r))for(var o in r)o.startsWith("padding")?e.setStyle(o,r[o]):t.style[o]=r[o]}},e.prototype._loadModules=function(){if(!this.chart.exporter.isCompose()){var t=null===window||void 0===window?void 0:window.$$_RealChartExporter;t&&t.RealchartExport(this)}},e.prototype._export=function(t){var e=this.model;if(e&&this.chart.exporter.isCompose()){var i=this.dom();switch(t.type){case"png":case"jpeg":case"svg":this.chart.exporter.exportToImage(i,t,e.options.exporting)}}},e}(EP),cM=function(){function t(){}return t.getVersion=function(){return"1.1.12"},t.setLocale=function(t,e){e&&vS(t,e),function(t){t&&(gS=dS[yS=t.substring(0,2)]),gS||(gS=dS[yS="ko"])}(t)},t.registerLocale=function(t,e){vS(t,e)},t.setDebugging=function(t){LP.DEBUGGING=t},t.setLogging=function(t){_S.LOGGING=t},t.setAnimatable=function(t){EP._animatable=t},t.configure=function(t){return t},t.createChart=function(t,e,i,n,r){void 0===n&&(n=!0);var o=new pM(t,e);return Gx(i)&&o.chart.load(i,n,r),o.chart[UE]=o,o.chart},t.createData=function(t,e){return new ZE(t||{},e)},t}(),fM=cM.getVersion,_M=cM.setDebugging,dM=cM.setLogging,yM=cM.setAnimatable,gM=cM.createChart,vM=cM.createData;return t.Chart=qE,t.ChartData=ZE,t.createChart=gM,t.createData=vM,t.getVersion=fM,t.setAnimatable=yM,t.setDebugging=_M,t.setLogging=dM,t}({});
|