realchart 1.4.6 → 1.4.7
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/gauge.js +2 -2
- package/gauge.mjs +2 -2
- package/heatmap.js +1 -1
- package/heatmap.mjs +1 -1
- package/ie/gauge.ie.js +7 -0
- package/ie/heatmap.ie.js +7 -0
- package/ie/index.ie.js +7 -0
- package/ie/pictogram.ie.js +7 -0
- package/ie/realchart-style.ie.css +2294 -0
- package/ie/split.ie.js +7 -0
- package/ie/treemap.ie.js +7 -0
- package/ie/vector.ie.js +7 -0
- package/ie/wordcloud.ie.js +7 -0
- package/index.d.ts +116 -56
- package/index.js +2 -2
- package/index.mjs +2 -2
- package/package.json +4 -13
- package/pictogram.js +2 -2
- package/pictogram.mjs +2 -2
- package/realchart-style.css +31 -38
- package/split.d.ts +1 -2
- package/split.js +2 -2
- package/split.mjs +2 -2
- package/treemap.js +1 -1
- package/treemap.mjs +1 -1
- package/vector.js +1 -1
- package/vector.mjs +1 -1
- package/wordcloud.js +2 -2
- package/wordcloud.mjs +2 -2
package/ie/index.ie.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
|
|
2
|
+
/**
|
|
3
|
+
* RealChart v1.4.7
|
|
4
|
+
* Copyright (C) 2023-2025 WooriTech Inc.
|
|
5
|
+
* All Rights Reserved.
|
|
6
|
+
*/
|
|
7
|
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).RealChart=e()}(this,(function(){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var i={},r=function(t){return t&&t.Math===Math&&t},n=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof t&&t)||r("object"==typeof t&&t)||function(){return this}()||Function("return this")(),o={},s=function(t){try{return!!t()}catch(t){return!0}},a=!s((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),l=!s((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),u=l,c=Function.prototype.call,p=u?c.bind(c):function(){return c.apply(c,arguments)},h={},f={}.propertyIsEnumerable,d=Object.getOwnPropertyDescriptor,_=d&&!f.call({1:2},1);h.f=_?function(t){var e=d(this,t);return!!e&&e.enumerable}:f;var y,g,v=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},m=l,b=Function.prototype,w=b.call,x=m&&b.bind.bind(w,w),S=m?x:function(t){return function(){return w.apply(t,arguments)}},P=S,A=P({}.toString),O=P("".slice),C=function(t){return O(A(t),8,-1)},E=s,V=C,L=Object,T=S("".split),k=E((function(){return!L("z").propertyIsEnumerable(0)}))?function(t){return"String"===V(t)?T(t,""):L(t)}:L,N=function(t){return null==t},M=N,j=TypeError,R=function(t){if(M(t))throw new j("Can't call method on "+t);return t},B=k,D=R,I=function(t){return B(D(t))},G="object"==typeof document&&document.all,F=void 0===G&&void 0!==G?function(t){return"function"==typeof t||t===G}:function(t){return"function"==typeof t},z=F,$=function(t){return"object"==typeof t?null!==t:z(t)},H=n,W=F,U=function(t,e){return arguments.length<2?(i=H[t],W(i)?i:void 0):H[t]&&H[t][e];var i},Y=S({}.isPrototypeOf),X=n.navigator,q=X&&X.userAgent,Z=q?String(q):"",K=n,J=Z,Q=K.process,tt=K.Deno,et=Q&&Q.versions||tt&&tt.version,it=et&&et.v8;it&&(g=(y=it.split("."))[0]>0&&y[0]<4?1:+(y[0]+y[1])),!g&&J&&(!(y=J.match(/Edge\/(\d+)/))||y[1]>=74)&&(y=J.match(/Chrome\/(\d+)/))&&(g=+y[1]);var rt=g,nt=rt,ot=s,st=n.String,at=!!Object.getOwnPropertySymbols&&!ot((function(){var t=Symbol("symbol detection");return!st(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&nt&&nt<41})),lt=at&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ut=U,ct=F,pt=Y,ht=Object,ft=lt?function(t){return"symbol"==typeof t}:function(t){var e=ut("Symbol");return ct(e)&&pt(e.prototype,ht(t))},dt=String,_t=function(t){try{return dt(t)}catch(t){return"Object"}},yt=F,gt=_t,vt=TypeError,mt=function(t){if(yt(t))return t;throw new vt(gt(t)+" is not a function")},bt=mt,wt=N,xt=function(t,e){var i=t[e];return wt(i)?void 0:bt(i)},St=p,Pt=F,At=$,Ot=TypeError,Ct={exports:{}},Et=n,Vt=Object.defineProperty,Lt=function(t,e){try{Vt(Et,t,{value:e,configurable:!0,writable:!0})}catch(i){Et[t]=e}return e},Tt=n,kt=Lt,Nt="__core-js_shared__",Mt=Ct.exports=Tt[Nt]||kt(Nt,{});(Mt.versions||(Mt.versions=[])).push({version:"3.47.0",mode:"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru), 2025 CoreJS Company (core-js.io)",license:"https://github.com/zloirock/core-js/blob/v3.47.0/LICENSE",source:"https://github.com/zloirock/core-js"});var jt=Ct.exports,Rt=jt,Bt=function(t,e){return Rt[t]||(Rt[t]=e||{})},Dt=R,It=Object,Gt=function(t){return It(Dt(t))},Ft=Gt,zt=S({}.hasOwnProperty),$t=Object.hasOwn||function(t,e){return zt(Ft(t),e)},Ht=S,Wt=0,Ut=Math.random(),Yt=Ht(1.1.toString),Xt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+Yt(++Wt+Ut,36)},qt=Bt,Zt=$t,Kt=Xt,Jt=at,Qt=lt,te=n.Symbol,ee=qt("wks"),ie=Qt?te.for||te:te&&te.withoutSetter||Kt,re=function(t){return Zt(ee,t)||(ee[t]=Jt&&Zt(te,t)?te[t]:ie("Symbol."+t)),ee[t]},ne=p,oe=$,se=ft,ae=xt,le=function(t,e){var i,r;if("string"===e&&Pt(i=t.toString)&&!At(r=St(i,t)))return r;if(Pt(i=t.valueOf)&&!At(r=St(i,t)))return r;if("string"!==e&&Pt(i=t.toString)&&!At(r=St(i,t)))return r;throw new Ot("Can't convert object to primitive value")},ue=TypeError,ce=re("toPrimitive"),pe=function(t,e){if(!oe(t)||se(t))return t;var i,r=ae(t,ce);if(r){if(void 0===e&&(e="default"),i=ne(r,t,e),!oe(i)||se(i))return i;throw new ue("Can't convert object to primitive value")}return void 0===e&&(e="number"),le(t,e)},he=pe,fe=ft,de=function(t){var e=he(t,"string");return fe(e)?e:e+""},_e=$,ye=n.document,ge=_e(ye)&&_e(ye.createElement),ve=function(t){return ge?ye.createElement(t):{}},me=ve,be=!a&&!s((function(){return 7!==Object.defineProperty(me("div"),"a",{get:function(){return 7}}).a})),we=a,xe=p,Se=h,Pe=v,Ae=I,Oe=de,Ce=$t,Ee=be,Ve=Object.getOwnPropertyDescriptor;o.f=we?Ve:function(t,e){if(t=Ae(t),e=Oe(e),Ee)try{return Ve(t,e)}catch(t){}if(Ce(t,e))return Pe(!xe(Se.f,t,e),t[e])};var Le={},Te=a&&s((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),ke=$,Ne=String,Me=TypeError,je=function(t){if(ke(t))return t;throw new Me(Ne(t)+" is not an object")},Re=a,Be=be,De=Te,Ie=je,Ge=de,Fe=TypeError,ze=Object.defineProperty,$e=Object.getOwnPropertyDescriptor,He="enumerable",We="configurable",Ue="writable";Le.f=Re?De?function(t,e,i){if(Ie(t),e=Ge(e),Ie(i),"function"==typeof t&&"prototype"===e&&"value"in i&&Ue in i&&!i[Ue]){var r=$e(t,e);r&&r[Ue]&&(t[e]=i.value,i={configurable:We in i?i[We]:r[We],enumerable:He in i?i[He]:r[He],writable:!1})}return ze(t,e,i)}:ze:function(t,e,i){if(Ie(t),e=Ge(e),Ie(i),Be)try{return ze(t,e,i)}catch(t){}if("get"in i||"set"in i)throw new Fe("Accessors not supported");return"value"in i&&(t[e]=i.value),t};var Ye=Le,Xe=v,qe=a?function(t,e,i){return Ye.f(t,e,Xe(1,i))}:function(t,e,i){return t[e]=i,t},Ze={exports:{}},Ke=a,Je=$t,Qe=Function.prototype,ti=Ke&&Object.getOwnPropertyDescriptor,ei=Je(Qe,"name"),ii={EXISTS:ei,PROPER:ei&&"something"===function(){}.name,CONFIGURABLE:ei&&(!Ke||Ke&&ti(Qe,"name").configurable)},ri=F,ni=jt,oi=S(Function.toString);ri(ni.inspectSource)||(ni.inspectSource=function(t){return oi(t)});var si,ai,li,ui=ni.inspectSource,ci=F,pi=n.WeakMap,hi=ci(pi)&&/native code/.test(String(pi)),fi=Xt,di=Bt("keys"),_i=function(t){return di[t]||(di[t]=fi(t))},yi={},gi=hi,vi=n,mi=$,bi=qe,wi=$t,xi=jt,Si=_i,Pi=yi,Ai="Object already initialized",Oi=vi.TypeError,Ci=vi.WeakMap;if(gi||xi.state){var Ei=xi.state||(xi.state=new Ci);Ei.get=Ei.get,Ei.has=Ei.has,Ei.set=Ei.set,si=function(t,e){if(Ei.has(t))throw new Oi(Ai);return e.facade=t,Ei.set(t,e),e},ai=function(t){return Ei.get(t)||{}},li=function(t){return Ei.has(t)}}else{var Vi=Si("state");Pi[Vi]=!0,si=function(t,e){if(wi(t,Vi))throw new Oi(Ai);return e.facade=t,bi(t,Vi,e),e},ai=function(t){return wi(t,Vi)?t[Vi]:{}},li=function(t){return wi(t,Vi)}}var Li={set:si,get:ai,has:li,enforce:function(t){return li(t)?ai(t):si(t,{})},getterFor:function(t){return function(e){var i;if(!mi(e)||(i=ai(e)).type!==t)throw new Oi("Incompatible receiver, "+t+" required");return i}}},Ti=S,ki=s,Ni=F,Mi=$t,ji=a,Ri=ii.CONFIGURABLE,Bi=ui,Di=Li.enforce,Ii=Li.get,Gi=String,Fi=Object.defineProperty,zi=Ti("".slice),$i=Ti("".replace),Hi=Ti([].join),Wi=ji&&!ki((function(){return 8!==Fi((function(){}),"length",{value:8}).length})),Ui=String(String).split("String"),Yi=Ze.exports=function(t,e,i){"Symbol("===zi(Gi(e),0,7)&&(e="["+$i(Gi(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),i&&i.getter&&(e="get "+e),i&&i.setter&&(e="set "+e),(!Mi(t,"name")||Ri&&t.name!==e)&&(ji?Fi(t,"name",{value:e,configurable:!0}):t.name=e),Wi&&i&&Mi(i,"arity")&&t.length!==i.arity&&Fi(t,"length",{value:i.arity});try{i&&Mi(i,"constructor")&&i.constructor?ji&&Fi(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var r=Di(t);return Mi(r,"source")||(r.source=Hi(Ui,"string"==typeof e?e:"")),t};Function.prototype.toString=Yi((function(){return Ni(this)&&Ii(this).source||Bi(this)}),"toString");var Xi=Ze.exports,qi=F,Zi=Le,Ki=Xi,Ji=Lt,Qi=function(t,e,i,r){r||(r={});var n=r.enumerable,o=void 0!==r.name?r.name:e;if(qi(i)&&Ki(i,o,r),r.global)n?t[e]=i:Ji(e,i);else{try{r.unsafe?t[e]&&(n=!0):delete t[e]}catch(t){}n?t[e]=i:Zi.f(t,e,{value:i,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t},tr={},er=Math.ceil,ir=Math.floor,rr=Math.trunc||function(t){var e=+t;return(e>0?ir:er)(e)},nr=rr,or=function(t){var e=+t;return e!=e||0===e?0:nr(e)},sr=or,ar=Math.max,lr=Math.min,ur=function(t,e){var i=sr(t);return i<0?ar(i+e,0):lr(i,e)},cr=or,pr=Math.min,hr=function(t){var e=cr(t);return e>0?pr(e,9007199254740991):0},fr=hr,dr=function(t){return fr(t.length)},_r=I,yr=ur,gr=dr,vr=function(t){return function(e,i,r){var n=_r(e),o=gr(n);if(0===o)return!t&&-1;var s,a=yr(r,o);if(t&&i!=i){for(;o>a;)if((s=n[a++])!=s)return!0}else for(;o>a;a++)if((t||a in n)&&n[a]===i)return t||a||0;return!t&&-1}},mr={includes:vr(!0),indexOf:vr(!1)},br=$t,wr=I,xr=mr.indexOf,Sr=yi,Pr=S([].push),Ar=function(t,e){var i,r=wr(t),n=0,o=[];for(i in r)!br(Sr,i)&&br(r,i)&&Pr(o,i);for(;e.length>n;)br(r,i=e[n++])&&(~xr(o,i)||Pr(o,i));return o},Or=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Cr=Ar,Er=Or.concat("length","prototype");tr.f=Object.getOwnPropertyNames||function(t){return Cr(t,Er)};var Vr={};Vr.f=Object.getOwnPropertySymbols;var Lr=U,Tr=tr,kr=Vr,Nr=je,Mr=S([].concat),jr=Lr("Reflect","ownKeys")||function(t){var e=Tr.f(Nr(t)),i=kr.f;return i?Mr(e,i(t)):e},Rr=$t,Br=jr,Dr=o,Ir=Le,Gr=function(t,e,i){for(var r=Br(e),n=Ir.f,o=Dr.f,s=0;s<r.length;s++){var a=r[s];Rr(t,a)||i&&Rr(i,a)||n(t,a,o(e,a))}},Fr=s,zr=F,$r=/#|\.prototype\./,Hr=function(t,e){var i=Ur[Wr(t)];return i===Xr||i!==Yr&&(zr(e)?Fr(e):!!e)},Wr=Hr.normalize=function(t){return String(t).replace($r,".").toLowerCase()},Ur=Hr.data={},Yr=Hr.NATIVE="N",Xr=Hr.POLYFILL="P",qr=Hr,Zr=n,Kr=o.f,Jr=qe,Qr=Qi,tn=Lt,en=Gr,rn=qr,nn=function(t,e){var i,r,n,o,s,a=t.target,l=t.global,u=t.stat;if(i=l?Zr:u?Zr[a]||tn(a,{}):Zr[a]&&Zr[a].prototype)for(r in e){if(o=e[r],n=t.dontCallGetSet?(s=Kr(i,r))&&s.value:i[r],!rn(l?r:a+(u?".":"#")+r,t.forced)&&void 0!==n){if(typeof o==typeof n)continue;en(o,n)}(t.sham||n&&n.sham)&&Jr(o,"sham",!0),Qr(i,r,o,t)}},on=C,sn=Array.isArray||function(t){return"Array"===on(t)},an=TypeError,ln=function(t){if(t>9007199254740991)throw an("Maximum allowed index exceeded");return t},un=a,cn=Le,pn=v,hn=function(t,e,i){un?cn.f(t,e,pn(0,i)):t[e]=i},fn={};fn[re("toStringTag")]="z";var dn="[object z]"===String(fn),_n=dn,yn=F,gn=C,vn=re("toStringTag"),mn=Object,bn="Arguments"===gn(function(){return arguments}()),wn=_n?gn:function(t){var e,i,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=function(t,e){try{return t[e]}catch(t){}}(e=mn(t),vn))?i:bn?gn(e):"Object"===(r=gn(e))&&yn(e.callee)?"Arguments":r},xn=S,Sn=s,Pn=F,An=wn,On=ui,Cn=function(){},En=U("Reflect","construct"),Vn=/^\s*(?:class|function)\b/,Ln=xn(Vn.exec),Tn=!Vn.test(Cn),kn=function(t){if(!Pn(t))return!1;try{return En(Cn,[],t),!0}catch(t){return!1}},Nn=function(t){if(!Pn(t))return!1;switch(An(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Tn||!!Ln(Vn,On(t))}catch(t){return!0}};Nn.sham=!0;var Mn=!En||Sn((function(){var t;return kn(kn.call)||!kn(Object)||!kn((function(){t=!0}))||t}))?Nn:kn,jn=sn,Rn=Mn,Bn=$,Dn=re("species"),In=Array,Gn=function(t){var e;return jn(t)&&(e=t.constructor,(Rn(e)&&(e===In||jn(e.prototype))||Bn(e)&&null===(e=e[Dn]))&&(e=void 0)),void 0===e?In:e},Fn=function(t,e){return new(Gn(t))(0===e?0:e)},zn=s,$n=rt,Hn=re("species"),Wn=function(t){return $n>=51||!zn((function(){var e=[];return(e.constructor={})[Hn]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},Un=nn,Yn=s,Xn=sn,qn=$,Zn=Gt,Kn=dr,Jn=ln,Qn=hn,to=Fn,eo=Wn,io=rt,ro=re("isConcatSpreadable"),no=io>=51||!Yn((function(){var t=[];return t[ro]=!1,t.concat()[0]!==t})),oo=function(t){if(!qn(t))return!1;var e=t[ro];return void 0!==e?!!e:Xn(t)};Un({target:"Array",proto:!0,arity:1,forced:!no||!eo("concat")},{concat:function(t){var e,i,r,n,o,s=Zn(this),a=to(s,0),l=0;for(e=-1,r=arguments.length;e<r;e++)if(oo(o=-1===e?s:arguments[e]))for(n=Kn(o),Jn(l+n),i=0;i<n;i++,l++)i in o&&Qn(a,l,o[i]);else Jn(l+1),Qn(a,l++,o);return a.length=l,a}});var so=wn,ao=dn?{}.toString:function(){return"[object "+so(this)+"]"};dn||Qi(Object.prototype,"toString",ao,{unsafe:!0});var lo=wn,uo=String,co=function(t){if("Symbol"===lo(t))throw new TypeError("Cannot convert a Symbol value to a string");return uo(t)},po={},ho=Ar,fo=Or,_o=Object.keys||function(t){return ho(t,fo)},yo=a,go=Te,vo=Le,mo=je,bo=I,wo=_o;po.f=yo&&!go?Object.defineProperties:function(t,e){mo(t);for(var i,r=bo(e),n=wo(e),o=n.length,s=0;o>s;)vo.f(t,i=n[s++],r[i]);return t};var xo,So=U("document","documentElement"),Po=je,Ao=po,Oo=Or,Co=yi,Eo=So,Vo=ve,Lo="prototype",To="script",ko=_i("IE_PROTO"),No=function(){},Mo=function(t){return"<"+To+">"+t+"</"+To+">"},jo=function(t){t.write(Mo("")),t.close();var e=t.parentWindow.Object;return t=null,e},Ro=function(){try{xo=new ActiveXObject("htmlfile")}catch(t){}var t,e,i;Ro="undefined"!=typeof document?document.domain&&xo?jo(xo):(e=Vo("iframe"),i="java"+To+":",e.style.display="none",Eo.appendChild(e),e.src=String(i),(t=e.contentWindow.document).open(),t.write(Mo("document.F=Object")),t.close(),t.F):jo(xo);for(var r=Oo.length;r--;)delete Ro[Lo][Oo[r]];return Ro()};Co[ko]=!0;var Bo=Object.create||function(t,e){var i;return null!==t?(No[Lo]=Po(t),i=new No,No[Lo]=null,i[ko]=t):i=Ro(),void 0===e?i:Ao.f(i,e)},Do={},Io=S([].slice),Go=C,Fo=I,zo=tr.f,$o=Io,Ho="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];Do.f=function(t){return Ho&&"Window"===Go(t)?function(t){try{return zo(t)}catch(t){return $o(Ho)}}(t):zo(Fo(t))};var Wo=Xi,Uo=Le,Yo=function(t,e,i){return i.get&&Wo(i.get,e,{getter:!0}),i.set&&Wo(i.set,e,{setter:!0}),Uo.f(t,e,i)},Xo={},qo=re;Xo.f=qo;var Zo=n,Ko=Zo,Jo=$t,Qo=Xo,ts=Le.f,es=function(t){var e=Ko.Symbol||(Ko.Symbol={});Jo(e,t)||ts(e,t,{value:Qo.f(t)})},is=p,rs=U,ns=re,os=Qi,ss=function(){var t=rs("Symbol"),e=t&&t.prototype,i=e&&e.valueOf,r=ns("toPrimitive");e&&!e[r]&&os(e,r,(function(t){return is(i,this)}),{arity:1})},as=Le.f,ls=$t,us=re("toStringTag"),cs=function(t,e,i){t&&!i&&(t=t.prototype),t&&!ls(t,us)&&as(t,us,{configurable:!0,value:e})},ps=C,hs=S,fs=function(t){if("Function"===ps(t))return hs(t)},ds=mt,_s=l,ys=fs(fs.bind),gs=function(t,e){return ds(t),void 0===e?t:_s?ys(t,e):function(){return t.apply(e,arguments)}},vs=gs,ms=k,bs=Gt,ws=dr,xs=Fn,Ss=S([].push),Ps=function(t){var e=1===t,i=2===t,r=3===t,n=4===t,o=6===t,s=7===t,a=5===t||o;return function(l,u,c,p){for(var h,f,d=bs(l),_=ms(d),y=ws(_),g=vs(u,c),v=0,m=p||xs,b=e?m(l,y):i||s?m(l,0):void 0;y>v;v++)if((a||v in _)&&(f=g(h=_[v],v,d),t))if(e)b[v]=f;else if(f)switch(t){case 3:return!0;case 5:return h;case 6:return v;case 2:Ss(b,h)}else switch(t){case 4:return!1;case 7:Ss(b,h)}return o?-1:r||n?n:b}},As={forEach:Ps(0),map:Ps(1),filter:Ps(2),some:Ps(3),every:Ps(4),find:Ps(5),findIndex:Ps(6),filterReject:Ps(7)},Os=nn,Cs=n,Es=p,Vs=S,Ls=a,Ts=at,ks=s,Ns=$t,Ms=Y,js=je,Rs=I,Bs=de,Ds=co,Is=v,Gs=Bo,Fs=_o,zs=tr,$s=Do,Hs=Vr,Ws=o,Us=Le,Ys=po,Xs=h,qs=Qi,Zs=Yo,Ks=Bt,Js=yi,Qs=Xt,ta=re,ea=Xo,ia=es,ra=ss,na=cs,oa=Li,sa=As.forEach,aa=_i("hidden"),la="Symbol",ua="prototype",ca=oa.set,pa=oa.getterFor(la),ha=Object[ua],fa=Cs.Symbol,da=fa&&fa[ua],_a=Cs.RangeError,ya=Cs.TypeError,ga=Cs.QObject,va=Ws.f,ma=Us.f,ba=$s.f,wa=Xs.f,xa=Vs([].push),Sa=Ks("symbols"),Pa=Ks("op-symbols"),Aa=Ks("wks"),Oa=!ga||!ga[ua]||!ga[ua].findChild,Ca=function(t,e,i){var r=va(ha,e);r&&delete ha[e],ma(t,e,i),r&&t!==ha&&ma(ha,e,r)},Ea=Ls&&ks((function(){return 7!==Gs(ma({},"a",{get:function(){return ma(this,"a",{value:7}).a}})).a}))?Ca:ma,Va=function(t,e){var i=Sa[t]=Gs(da);return ca(i,{type:la,tag:t,description:e}),Ls||(i.description=e),i},La=function(t,e,i){t===ha&&La(Pa,e,i),js(t);var r=Bs(e);return js(i),Ns(Sa,r)?(i.enumerable?(Ns(t,aa)&&t[aa][r]&&(t[aa][r]=!1),i=Gs(i,{enumerable:Is(0,!1)})):(Ns(t,aa)||ma(t,aa,Is(1,Gs(null))),t[aa][r]=!0),Ea(t,r,i)):ma(t,r,i)},Ta=function(t,e){js(t);var i=Rs(e),r=Fs(i).concat(ja(i));return sa(r,(function(e){Ls&&!Es(ka,i,e)||La(t,e,i[e])})),t},ka=function(t){var e=Bs(t),i=Es(wa,this,e);return!(this===ha&&Ns(Sa,e)&&!Ns(Pa,e))&&(!(i||!Ns(this,e)||!Ns(Sa,e)||Ns(this,aa)&&this[aa][e])||i)},Na=function(t,e){var i=Rs(t),r=Bs(e);if(i!==ha||!Ns(Sa,r)||Ns(Pa,r)){var n=va(i,r);return!n||!Ns(Sa,r)||Ns(i,aa)&&i[aa][r]||(n.enumerable=!0),n}},Ma=function(t){var e=ba(Rs(t)),i=[];return sa(e,(function(t){Ns(Sa,t)||Ns(Js,t)||xa(i,t)})),i},ja=function(t){var e=t===ha,i=ba(e?Pa:Rs(t)),r=[];return sa(i,(function(t){!Ns(Sa,t)||e&&!Ns(ha,t)||xa(r,Sa[t])})),r};Ts||(fa=function(){if(Ms(da,this))throw new ya("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?Ds(arguments[0]):void 0,e=Qs(t),i=function(t){var r=void 0===this?Cs:this;r===ha&&Es(i,Pa,t),Ns(r,aa)&&Ns(r[aa],e)&&(r[aa][e]=!1);var n=Is(1,t);try{Ea(r,e,n)}catch(t){if(!(t instanceof _a))throw t;Ca(r,e,n)}};return Ls&&Oa&&Ea(ha,e,{configurable:!0,set:i}),Va(e,t)},qs(da=fa[ua],"toString",(function(){return pa(this).tag})),qs(fa,"withoutSetter",(function(t){return Va(Qs(t),t)})),Xs.f=ka,Us.f=La,Ys.f=Ta,Ws.f=Na,zs.f=$s.f=Ma,Hs.f=ja,ea.f=function(t){return Va(ta(t),t)},Ls&&(Zs(da,"description",{configurable:!0,get:function(){return pa(this).description}}),qs(ha,"propertyIsEnumerable",ka,{unsafe:!0}))),Os({global:!0,constructor:!0,wrap:!0,forced:!Ts,sham:!Ts},{Symbol:fa}),sa(Fs(Aa),(function(t){ia(t)})),Os({target:la,stat:!0,forced:!Ts},{useSetter:function(){Oa=!0},useSimple:function(){Oa=!1}}),Os({target:"Object",stat:!0,forced:!Ts,sham:!Ls},{create:function(t,e){return void 0===e?Gs(t):Ta(Gs(t),e)},defineProperty:La,defineProperties:Ta,getOwnPropertyDescriptor:Na}),Os({target:"Object",stat:!0,forced:!Ts},{getOwnPropertyNames:Ma}),ra(),na(fa,la),Js[aa]=!0;var Ra=at&&!!Symbol.for&&!!Symbol.keyFor,Ba=nn,Da=U,Ia=$t,Ga=co,Fa=Bt,za=Ra,$a=Fa("string-to-symbol-registry"),Ha=Fa("symbol-to-string-registry");Ba({target:"Symbol",stat:!0,forced:!za},{for:function(t){var e=Ga(t);if(Ia($a,e))return $a[e];var i=Da("Symbol")(e);return $a[e]=i,Ha[i]=e,i}});var Wa=nn,Ua=$t,Ya=ft,Xa=_t,qa=Ra,Za=Bt("symbol-to-string-registry");Wa({target:"Symbol",stat:!0,forced:!qa},{keyFor:function(t){if(!Ya(t))throw new TypeError(Xa(t)+" is not a symbol");if(Ua(Za,t))return Za[t]}});var Ka=l,Ja=Function.prototype,Qa=Ja.apply,tl=Ja.call,el="object"==typeof Reflect&&Reflect.apply||(Ka?tl.bind(Qa):function(){return tl.apply(Qa,arguments)}),il=$,rl=Li.get,nl=S,ol=$t,sl=SyntaxError,al=parseInt,ll=String.fromCharCode,ul=nl("".charAt),cl=nl("".slice),pl=nl(/./.exec),hl={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t"},fl=/^[\da-f]{4}$/i,dl=/^[\u0000-\u001F]$/,_l=!s((function(){var t="9007199254740993",e=JSON.rawJSON(t);return!JSON.isRawJSON(e)||JSON.stringify(e)!==t})),yl=nn,gl=U,vl=el,ml=p,bl=S,wl=s,xl=sn,Sl=F,Pl=function(t){if(!il(t))return!1;var e=rl(t);return!!e&&"RawJSON"===e.type},Al=ft,Ol=C,Cl=co,El=Io,Vl=function(t,e){for(var i=!0,r="";e<t.length;){var n=ul(t,e);if("\\"===n){var o=cl(t,e,e+2);if(ol(hl,o))r+=hl[o],e+=2;else{if("\\u"!==o)throw new sl('Unknown escape sequence: "'+o+'"');var s=cl(t,e+=2,e+4);if(!pl(fl,s))throw new sl("Bad Unicode escape at: "+e);r+=ll(al(s,16)),e+=4}}else{if('"'===n){i=!1,e++;break}if(pl(dl,n))throw new sl("Bad control character in string literal at: "+e);r+=n,e++}}if(i)throw new sl("Unterminated string at: "+e);return{value:r,end:e}},Ll=Xt,Tl=at,kl=_l,Nl=String,Ml=gl("JSON","stringify"),jl=bl(/./.exec),Rl=bl("".charAt),Bl=bl("".charCodeAt),Dl=bl("".replace),Il=bl("".slice),Gl=bl([].push),Fl=bl(1.1.toString),zl=/[\uD800-\uDFFF]/g,$l=/^[\uD800-\uDBFF]$/,Hl=/^[\uDC00-\uDFFF]$/,Wl=Ll(),Ul=Wl.length,Yl=!Tl||wl((function(){var t=gl("Symbol")("stringify detection");return"[null]"!==Ml([t])||"{}"!==Ml({a:t})||"{}"!==Ml(Object(t))})),Xl=wl((function(){return'"\\udf06\\ud834"'!==Ml("\udf06\ud834")||'"\\udead"'!==Ml("\udead")})),ql=Yl?function(t,e){var i=El(arguments),r=Kl(e);if(Sl(r)||void 0!==t&&!Al(t))return i[1]=function(t,e){if(Sl(r)&&(e=ml(r,this,Nl(t),e)),!Al(e))return e},vl(Ml,null,i)}:Ml,Zl=function(t,e,i){var r=Rl(i,e-1),n=Rl(i,e+1);return jl($l,t)&&!jl(Hl,n)||jl(Hl,t)&&!jl($l,r)?"\\u"+Fl(Bl(t,0),16):t},Kl=function(t){if(Sl(t))return t;if(xl(t)){for(var e=t.length,i=[],r=0;r<e;r++){var n=t[r];"string"==typeof n?Gl(i,n):"number"!=typeof n&&"Number"!==Ol(n)&&"String"!==Ol(n)||Gl(i,Cl(n))}var o=i.length,s=!0;return function(t,e){if(s)return s=!1,e;if(xl(this))return e;for(var r=0;r<o;r++)if(i[r]===t)return e}}};Ml&&yl({target:"JSON",stat:!0,arity:3,forced:Yl||Xl||!kl},{stringify:function(t,e,i){var r=Kl(e),n=[],o=ql(t,(function(t,e){var i=Sl(r)?ml(r,this,Nl(t),e):e;return!kl&&Pl(i)?Wl+(Gl(n,i.rawJSON)-1):i}),i);if("string"!=typeof o)return o;if(Xl&&(o=Dl(o,zl,Zl)),kl)return o;for(var s="",a=o.length,l=0;l<a;l++){var u=Rl(o,l);if('"'===u){var c=Vl(o,++l).end-1,p=Il(o,l,c);s+=Il(p,0,Ul)===Wl?n[Il(p,Ul)]:'"'+p+'"',l=c}else s+=u}return s}});var Jl=Vr,Ql=Gt;nn({target:"Object",stat:!0,forced:!at||s((function(){Jl.f(1)}))},{getOwnPropertySymbols:function(t){var e=Jl.f;return e?e(Ql(t)):[]}});var tu=n,eu=es,iu=Le.f,ru=o.f,nu=tu.Symbol;if(eu("asyncDispose"),nu){var ou=ru(nu,"asyncDispose");ou.enumerable&&ou.configurable&&ou.writable&&iu(nu,"asyncDispose",{value:ou.value,enumerable:!1,configurable:!1,writable:!1})}es("asyncIterator");var su=nn,au=a,lu=S,uu=$t,cu=F,pu=Y,hu=co,fu=Yo,du=Gr,_u=n.Symbol,yu=_u&&_u.prototype;if(au&&cu(_u)&&(!("description"in yu)||void 0!==_u().description)){var gu={},vu=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:hu(arguments[0]),e=pu(yu,this)?new _u(t):void 0===t?_u():_u(t);return""===t&&(gu[e]=!0),e};du(vu,_u),vu.prototype=yu,yu.constructor=vu;var mu="Symbol(description detection)"===String(_u("description detection")),bu=lu(yu.valueOf),wu=lu(yu.toString),xu=/^Symbol\((.*)\)[^)]+$/,Su=lu("".replace),Pu=lu("".slice);fu(yu,"description",{configurable:!0,get:function(){var t=bu(this);if(uu(gu,t))return"";var e=wu(t),i=mu?Pu(e,7,-1):Su(e,xu,"$1");return""===i?void 0:i}}),su({global:!0,constructor:!0,forced:!0},{Symbol:vu})}var Au=n,Ou=es,Cu=Le.f,Eu=o.f,Vu=Au.Symbol;if(Ou("dispose"),Vu){var Lu=Eu(Vu,"dispose");Lu.enumerable&&Lu.configurable&&Lu.writable&&Cu(Vu,"dispose",{value:Lu.value,enumerable:!1,configurable:!1,writable:!1})}es("hasInstance"),es("isConcatSpreadable"),es("iterator"),es("match"),es("matchAll"),es("replace"),es("search"),es("species"),es("split");var Tu=ss;es("toPrimitive"),Tu();var ku=U,Nu=cs;es("toStringTag"),Nu(ku("Symbol"),"Symbol"),es("unscopables"),cs(n.JSON,"JSON",!0),cs(Math,"Math",!0);var Mu=n,ju=cs;nn({global:!0},{Reflect:{}}),ju(Mu.Reflect,"Reflect",!0),Zo.Symbol;var Ru=re,Bu=Bo,Du=Le.f,Iu=Ru("unscopables"),Gu=Array.prototype;void 0===Gu[Iu]&&Du(Gu,Iu,{configurable:!0,value:Bu(null)});var Fu,zu,$u,Hu=function(t){Gu[Iu][t]=!0},Wu={},Uu=!s((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Yu=$t,Xu=F,qu=Gt,Zu=Uu,Ku=_i("IE_PROTO"),Ju=Object,Qu=Ju.prototype,tc=Zu?Ju.getPrototypeOf:function(t){var e=qu(t);if(Yu(e,Ku))return e[Ku];var i=e.constructor;return Xu(i)&&e instanceof i?i.prototype:e instanceof Ju?Qu:null},ec=s,ic=F,rc=$,nc=tc,oc=Qi,sc=re("iterator"),ac=!1;[].keys&&("next"in($u=[].keys())?(zu=nc(nc($u)))!==Object.prototype&&(Fu=zu):ac=!0);var lc=!rc(Fu)||ec((function(){var t={};return Fu[sc].call(t)!==t}));lc&&(Fu={}),ic(Fu[sc])||oc(Fu,sc,(function(){return this}));var uc={IteratorPrototype:Fu,BUGGY_SAFARI_ITERATORS:ac},cc=uc.IteratorPrototype,pc=Bo,hc=v,fc=cs,dc=Wu,_c=function(){return this},yc=function(t,e,i,r){var n=e+" Iterator";return t.prototype=pc(cc,{next:hc(+!r,i)}),fc(t,n,!1),dc[n]=_c,t},gc=S,vc=mt,mc=$,bc=function(t){return mc(t)||null===t},wc=bc,xc=String,Sc=TypeError,Pc=function(t,e,i){try{return gc(vc(Object.getOwnPropertyDescriptor(t,e)[i]))}catch(t){}},Ac=$,Oc=R,Cc=function(t){if(wc(t))return t;throw new Sc("Can't set "+xc(t)+" as a prototype")},Ec=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,i={};try{(t=Pc(Object.prototype,"__proto__","set"))(i,[]),e=i instanceof Array}catch(t){}return function(i,r){return Oc(i),Cc(r),Ac(i)?(e?t(i,r):i.__proto__=r,i):i}}():void 0),Vc=nn,Lc=p,Tc=F,kc=yc,Nc=tc,Mc=Ec,jc=cs,Rc=qe,Bc=Qi,Dc=Wu,Ic=ii.PROPER,Gc=ii.CONFIGURABLE,Fc=uc.IteratorPrototype,zc=uc.BUGGY_SAFARI_ITERATORS,$c=re("iterator"),Hc="keys",Wc="values",Uc="entries",Yc=function(){return this},Xc=function(t,e,i,r,n,o,s){kc(i,e,r);var a,l,u,c=function(t){if(t===n&&_)return _;if(!zc&&t&&t in f)return f[t];switch(t){case Hc:case Wc:case Uc:return function(){return new i(this,t)}}return function(){return new i(this)}},p=e+" Iterator",h=!1,f=t.prototype,d=f[$c]||f["@@iterator"]||n&&f[n],_=!zc&&d||c(n),y="Array"===e&&f.entries||d;if(y&&(a=Nc(y.call(new t)))!==Object.prototype&&a.next&&(Nc(a)!==Fc&&(Mc?Mc(a,Fc):Tc(a[$c])||Bc(a,$c,Yc)),jc(a,p,!0)),Ic&&n===Wc&&d&&d.name!==Wc&&(Gc?Rc(f,"name",Wc):(h=!0,_=function(){return Lc(d,this)})),n)if(l={values:c(Wc),keys:o?_:c(Hc),entries:c(Uc)},s)for(u in l)(zc||h||!(u in f))&&Bc(f,u,l[u]);else Vc({target:e,proto:!0,forced:zc||h},l);return f[$c]!==_&&Bc(f,$c,_,{name:n}),Dc[e]=_,l},qc=function(t,e){return{value:t,done:e}},Zc=I,Kc=Hu,Jc=Wu,Qc=Li,tp=Le.f,ep=Xc,ip=qc,rp=a,np="Array Iterator",op=Qc.set,sp=Qc.getterFor(np);ep(Array,"Array",(function(t,e){op(this,{type:np,target:Zc(t),index:0,kind:e})}),(function(){var t=sp(this),e=t.target,i=t.index++;if(!e||i>=e.length)return t.target=null,ip(void 0,!0);switch(t.kind){case"keys":return ip(i,!1);case"values":return ip(e[i],!1)}return ip([i,e[i]],!1)}),"values");var ap=Jc.Arguments=Jc.Array;if(Kc("keys"),Kc("values"),Kc("entries"),rp&&"values"!==ap.name)try{tp(ap,"name",{value:"values"})}catch(t){}var lp={exports:{}},up=s((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})),cp=s,pp=$,hp=C,fp=up,dp=Object.isExtensible,_p=cp((function(){dp(1)}))||fp?function(t){return!!pp(t)&&((!fp||"ArrayBuffer"!==hp(t))&&(!dp||dp(t)))}:dp,yp=!s((function(){return Object.isExtensible(Object.preventExtensions({}))})),gp=nn,vp=S,mp=yi,bp=$,wp=$t,xp=Le.f,Sp=tr,Pp=Do,Ap=_p,Op=yp,Cp=!1,Ep=Xt("meta"),Vp=0,Lp=function(t){xp(t,Ep,{value:{objectID:"O"+Vp++,weakData:{}}})},Tp=lp.exports={enable:function(){Tp.enable=function(){},Cp=!0;var t=Sp.f,e=vp([].splice),i={};i[Ep]=1,t(i).length&&(Sp.f=function(i){for(var r=t(i),n=0,o=r.length;n<o;n++)if(r[n]===Ep){e(r,n,1);break}return r},gp({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Pp.f}))},fastKey:function(t,e){if(!bp(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!wp(t,Ep)){if(!Ap(t))return"F";if(!e)return"E";Lp(t)}return t[Ep].objectID},getWeakData:function(t,e){if(!wp(t,Ep)){if(!Ap(t))return!0;if(!e)return!1;Lp(t)}return t[Ep].weakData},onFreeze:function(t){return Op&&Cp&&Ap(t)&&!wp(t,Ep)&&Lp(t),t}};mp[Ep]=!0;var kp=lp.exports,Np=Wu,Mp=re("iterator"),jp=Array.prototype,Rp=function(t){return void 0!==t&&(Np.Array===t||jp[Mp]===t)},Bp=wn,Dp=xt,Ip=N,Gp=Wu,Fp=re("iterator"),zp=function(t){if(!Ip(t))return Dp(t,Fp)||Dp(t,"@@iterator")||Gp[Bp(t)]},$p=p,Hp=mt,Wp=je,Up=_t,Yp=zp,Xp=TypeError,qp=function(t,e){var i=arguments.length<2?Yp(t):e;if(Hp(i))return Wp($p(i,t));throw new Xp(Up(t)+" is not iterable")},Zp=p,Kp=je,Jp=xt,Qp=function(t,e,i){var r,n;Kp(t);try{if(!(r=Jp(t,"return"))){if("throw"===e)throw i;return i}r=Zp(r,t)}catch(t){n=!0,r=t}if("throw"===e)throw i;if(n)throw r;return Kp(r),i},th=gs,eh=p,ih=je,rh=_t,nh=Rp,oh=dr,sh=Y,ah=qp,lh=zp,uh=Qp,ch=TypeError,ph=function(t,e){this.stopped=t,this.result=e},hh=ph.prototype,fh=function(t,e,i){var r,n,o,s,a,l,u,c=i&&i.that,p=!(!i||!i.AS_ENTRIES),h=!(!i||!i.IS_RECORD),f=!(!i||!i.IS_ITERATOR),d=!(!i||!i.INTERRUPTED),_=th(e,c),y=function(t){return r&&uh(r,"normal"),new ph(!0,t)},g=function(t){return p?(ih(t),d?_(t[0],t[1],y):_(t[0],t[1])):d?_(t,y):_(t)};if(h)r=t.iterator;else if(f)r=t;else{if(!(n=lh(t)))throw new ch(rh(t)+" is not iterable");if(nh(n)){for(o=0,s=oh(t);s>o;o++)if((a=g(t[o]))&&sh(hh,a))return a;return new ph(!1)}r=ah(t,n)}for(l=h?t.next:r.next;!(u=eh(l,r)).done;){try{a=g(u.value)}catch(t){uh(r,"throw",t)}if("object"==typeof a&&a&&sh(hh,a))return a}return new ph(!1)},dh=Y,_h=TypeError,yh=function(t,e){if(dh(e,t))return t;throw new _h("Incorrect invocation")},gh=re("iterator"),vh=!1;try{var mh=0,bh={next:function(){return{done:!!mh++}},return:function(){vh=!0}};bh[gh]=function(){return this},Array.from(bh,(function(){throw 2}))}catch(t){}var wh=function(t,e){try{if(!e&&!vh)return!1}catch(t){return!1}var i=!1;try{var r={};r[gh]=function(){return{next:function(){return{done:i=!0}}}},t(r)}catch(t){}return i},xh=F,Sh=$,Ph=Ec,Ah=function(t,e,i){var r,n;return Ph&&xh(r=e.constructor)&&r!==i&&Sh(n=r.prototype)&&n!==i.prototype&&Ph(t,n),t},Oh=nn,Ch=n,Eh=S,Vh=qr,Lh=Qi,Th=kp,kh=fh,Nh=yh,Mh=F,jh=N,Rh=$,Bh=s,Dh=wh,Ih=cs,Gh=Ah,Fh=Qi,zh=function(t,e,i){for(var r in e)Fh(t,r,e[r],i);return t},$h=U,Hh=Yo,Wh=a,Uh=re("species"),Yh=function(t){var e=$h(t);Wh&&e&&!e[Uh]&&Hh(e,Uh,{configurable:!0,get:function(){return this}})},Xh=Bo,qh=Yo,Zh=zh,Kh=gs,Jh=yh,Qh=N,tf=fh,ef=Xc,rf=qc,nf=Yh,of=a,sf=kp.fastKey,af=Li.set,lf=Li.getterFor,uf={getConstructor:function(t,e,i,r){var n=t((function(t,n){Jh(t,o),af(t,{type:e,index:Xh(null),first:null,last:null,size:0}),of||(t.size=0),Qh(n)||tf(n,t[r],{that:t,AS_ENTRIES:i})})),o=n.prototype,s=lf(e),a=function(t,e,i){var r,n,o=s(t),a=l(t,e);return a?a.value=i:(o.last=a={index:n=sf(e,!0),key:e,value:i,previous:r=o.last,next:null,removed:!1},o.first||(o.first=a),r&&(r.next=a),of?o.size++:t.size++,"F"!==n&&(o.index[n]=a)),t},l=function(t,e){var i,r=s(t),n=sf(e);if("F"!==n)return r.index[n];for(i=r.first;i;i=i.next)if(i.key===e)return i};return Zh(o,{clear:function(){for(var t=s(this),e=t.first;e;)e.removed=!0,e.previous&&(e.previous=e.previous.next=null),e=e.next;t.first=t.last=null,t.index=Xh(null),of?t.size=0:this.size=0},delete:function(t){var e=this,i=s(e),r=l(e,t);if(r){var n=r.next,o=r.previous;delete i.index[r.index],r.removed=!0,o&&(o.next=n),n&&(n.previous=o),i.first===r&&(i.first=n),i.last===r&&(i.last=o),of?i.size--:e.size--}return!!r},forEach:function(t){for(var e,i=s(this),r=Kh(t,arguments.length>1?arguments[1]:void 0);e=e?e.next:i.first;)for(r(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!l(this,t)}}),Zh(o,i?{get:function(t){var e=l(this,t);return e&&e.value},set:function(t,e){return a(this,0===t?0:t,e)}}:{add:function(t){return a(this,t=0===t?0:t,t)}}),of&&qh(o,"size",{configurable:!0,get:function(){return s(this).size}}),n},setStrong:function(t,e,i){var r=e+" Iterator",n=lf(e),o=lf(r);ef(t,e,(function(t,e){af(this,{type:r,target:t,state:n(t),kind:e,last:null})}),(function(){for(var t=o(this),e=t.kind,i=t.last;i&&i.removed;)i=i.previous;return t.target&&(t.last=i=i?i.next:t.state.first)?rf("keys"===e?i.key:"values"===e?i.value:[i.key,i.value],!1):(t.target=null,rf(void 0,!0))}),i?"entries":"values",!i,!0),nf(e)}};(function(t,e,i){var r=-1!==t.indexOf("Map"),n=-1!==t.indexOf("Weak"),o=r?"set":"add",s=Ch[t],a=s&&s.prototype,l=s,u={},c=function(t){var e=Eh(a[t]);Lh(a,t,"add"===t?function(t){return e(this,0===t?0:t),this}:"delete"===t?function(t){return!(n&&!Rh(t))&&e(this,0===t?0:t)}:"get"===t?function(t){return n&&!Rh(t)?void 0:e(this,0===t?0:t)}:"has"===t?function(t){return!(n&&!Rh(t))&&e(this,0===t?0:t)}:function(t,i){return e(this,0===t?0:t,i),this})};if(Vh(t,!Mh(s)||!(n||a.forEach&&!Bh((function(){(new s).entries().next()})))))l=i.getConstructor(e,t,r,o),Th.enable();else if(Vh(t,!0)){var p=new l,h=p[o](n?{}:-0,1)!==p,f=Bh((function(){p.has(1)})),d=Dh((function(t){new s(t)})),_=!n&&Bh((function(){for(var t=new s,e=5;e--;)t[o](e,e);return!t.has(-0)}));d||((l=e((function(t,e){Nh(t,a);var i=Gh(new s,t,l);return jh(e)||kh(e,i[o],{that:i,AS_ENTRIES:r}),i}))).prototype=a,a.constructor=l),(f||_)&&(c("delete"),c("has"),r&&c("get")),(_||h)&&c(o),n&&a.clear&&delete a.clear}u[t]=l,Oh({global:!0,constructor:!0,forced:l!==s},u),Ih(l,t),n||i.setStrong(l,t,r)})("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),uf);var cf=S,pf=Map.prototype,hf={Map:Map,set:cf(pf.set),get:cf(pf.get),has:cf(pf.has),remove:cf(pf.delete),proto:pf},ff=nn,df=mt,_f=R,yf=fh,gf=s,vf=hf.Map,mf=hf.has,bf=hf.get,wf=hf.set,xf=S([].push);ff({target:"Map",stat:!0,forced:gf((function(){return 1!==vf.groupBy("ab",(function(t){return t})).get("a").length}))},{groupBy:function(t,e){_f(t),df(e);var i=new vf,r=0;return yf(t,(function(t){var n=e(t,r++);mf(i,n)?xf(bf(i,n),t):wf(i,n,[t])})),i}});var Sf=S,Pf=or,Af=co,Of=R,Cf=Sf("".charAt),Ef=Sf("".charCodeAt),Vf=Sf("".slice),Lf=function(t){return function(e,i){var r,n,o=Af(Of(e)),s=Pf(i),a=o.length;return s<0||s>=a?t?"":void 0:(r=Ef(o,s))<55296||r>56319||s+1===a||(n=Ef(o,s+1))<56320||n>57343?t?Cf(o,s):r:t?Vf(o,s,s+2):n-56320+(r-55296<<10)+65536}},Tf={codeAt:Lf(!1),charAt:Lf(!0)},kf=Tf.charAt,Nf=co,Mf=Li,jf=Xc,Rf=qc,Bf="String Iterator",Df=Mf.set,If=Mf.getterFor(Bf);jf(String,"String",(function(t){Df(this,{type:Bf,string:Nf(t),index:0})}),(function(){var t,e=If(this),i=e.string,r=e.index;return r>=i.length?Rf(void 0,!0):(t=kf(i,r),e.index+=t.length,Rf(t,!1))})),Zo.Map;var Gf=je,Ff=Qp,zf=gs,$f=p,Hf=Gt,Wf=function(t,e,i,r){try{return r?e(Gf(i)[0],i[1]):e(i)}catch(e){Ff(t,"throw",e)}},Uf=Rp,Yf=Mn,Xf=dr,qf=hn,Zf=qp,Kf=zp,Jf=Array,Qf=function(t){var e=Hf(t),i=Yf(this),r=arguments.length,n=r>1?arguments[1]:void 0,o=void 0!==n;o&&(n=zf(n,r>2?arguments[2]:void 0));var s,a,l,u,c,p,h=Kf(e),f=0;if(!h||this===Jf&&Uf(h))for(s=Xf(e),a=i?new this(s):Jf(s);s>f;f++)p=o?n(e[f],f):e[f],qf(a,f,p);else for(a=i?new this:[],c=(u=Zf(e,h)).next;!(l=$f(c,u)).done;f++)p=o?Wf(u,n,[l.value,f],!0):l.value,qf(a,f,p);return a.length=f,a};nn({target:"Array",stat:!0,forced:!wh((function(t){Array.from(t)}))},{from:Qf}),nn({target:"Array",stat:!0},{isArray:sn});var td=Mn,ed=hn,id=Array;nn({target:"Array",stat:!0,forced:s((function(){function t(){}return!(id.of.call(t)instanceof t)}))},{of:function(){for(var t=0,e=arguments.length,i=new(td(this)?this:id)(e);e>t;)ed(i,t,arguments[t++]);return i.length=e,i}});var rd=Gt,nd=dr,od=or,sd=Hu;nn({target:"Array",proto:!0},{at:function(t){var e=rd(this),i=nd(e),r=od(t),n=r>=0?r:i+r;return n<0||n>=i?void 0:e[n]}}),sd("at");var ad=_t,ld=TypeError,ud=function(t,e){if(!delete t[e])throw new ld("Cannot delete property "+ad(e)+" of "+ad(t))},cd=Gt,pd=ur,hd=dr,fd=ud,dd=Math.min,_d=[].copyWithin||function(t,e){var i=cd(this),r=hd(i),n=pd(t,r),o=pd(e,r),s=arguments.length>2?arguments[2]:void 0,a=dd((void 0===s?r:pd(s,r))-o,r-n),l=1;for(o<n&&n<o+a&&(l=-1,o+=a-1,n+=a-1);a-- >0;)o in i?i[n]=i[o]:fd(i,n),n+=l,o+=l;return i},yd=Hu;nn({target:"Array",proto:!0},{copyWithin:_d}),yd("copyWithin");var gd=s,vd=function(t,e){var i=[][t];return!!i&&gd((function(){i.call(null,e||function(){return 1},1)}))},md=As.every;nn({target:"Array",proto:!0,forced:!vd("every")},{every:function(t){return md(this,t,arguments.length>1?arguments[1]:void 0)}});var bd=Gt,wd=ur,xd=dr,Sd=function(t){for(var e=bd(this),i=xd(e),r=arguments.length,n=wd(r>1?arguments[1]:void 0,i),o=r>2?arguments[2]:void 0,s=void 0===o?i:wd(o,i);s>n;)e[n++]=t;return e},Pd=Hu;nn({target:"Array",proto:!0},{fill:Sd}),Pd("fill");var Ad=As.filter;nn({target:"Array",proto:!0,forced:!Wn("filter")},{filter:function(t){return Ad(this,t,arguments.length>1?arguments[1]:void 0)}});var Od=nn,Cd=As.find,Ed=Hu,Vd="find",Ld=!0;Vd in[]&&Array(1)[Vd]((function(){Ld=!1})),Od({target:"Array",proto:!0,forced:Ld},{find:function(t){return Cd(this,t,arguments.length>1?arguments[1]:void 0)}}),Ed(Vd);var Td=nn,kd=As.findIndex,Nd=Hu,Md="findIndex",jd=!0;Md in[]&&Array(1)[Md]((function(){jd=!1})),Td({target:"Array",proto:!0,forced:jd},{findIndex:function(t){return kd(this,t,arguments.length>1?arguments[1]:void 0)}}),Nd(Md);var Rd=gs,Bd=k,Dd=Gt,Id=dr,Gd=function(t){var e=1===t;return function(i,r,n){for(var o,s=Dd(i),a=Bd(s),l=Id(a),u=Rd(r,n);l-- >0;)if(u(o=a[l],l,s))switch(t){case 0:return o;case 1:return l}return e?-1:void 0}},Fd={findLast:Gd(0),findLastIndex:Gd(1)},zd=Fd.findLast,$d=Hu;nn({target:"Array",proto:!0},{findLast:function(t){return zd(this,t,arguments.length>1?arguments[1]:void 0)}}),$d("findLast");var Hd=Fd.findLastIndex,Wd=Hu;nn({target:"Array",proto:!0},{findLastIndex:function(t){return Hd(this,t,arguments.length>1?arguments[1]:void 0)}}),Wd("findLastIndex");var Ud=sn,Yd=dr,Xd=ln,qd=gs,Zd=function(t,e,i,r,n,o,s,a){for(var l,u,c=n,p=0,h=!!s&&qd(s,a);p<r;)p in i&&(l=h?h(i[p],p,e):i[p],o>0&&Ud(l)?(u=Yd(l),c=Zd(t,e,l,u,c,o-1)-1):(Xd(c+1),t[c]=l),c++),p++;return c},Kd=Zd,Jd=Kd,Qd=Gt,t_=dr,e_=or,i_=Fn;nn({target:"Array",proto:!0},{flat:function(){var t=arguments.length?arguments[0]:void 0,e=Qd(this),i=t_(e),r=i_(e,0);return r.length=Jd(r,e,e,i,0,void 0===t?1:e_(t)),r}});var r_=Kd,n_=mt,o_=Gt,s_=dr,a_=Fn;nn({target:"Array",proto:!0},{flatMap:function(t){var e,i=o_(this),r=s_(i);return n_(t),(e=a_(i,0)).length=r_(e,i,i,r,0,1,t,arguments.length>1?arguments[1]:void 0),e}});var l_=As.forEach,u_=vd("forEach")?[].forEach:function(t){return l_(this,t,arguments.length>1?arguments[1]:void 0)};nn({target:"Array",proto:!0,forced:[].forEach!==u_},{forEach:u_});var c_=mr.includes,p_=Hu;nn({target:"Array",proto:!0,forced:s((function(){return!Array(1).includes()}))},{includes:function(t){return c_(this,t,arguments.length>1?arguments[1]:void 0)}}),p_("includes");var h_=nn,f_=mr.indexOf,d_=vd,__=fs([].indexOf),y_=!!__&&1/__([1],1,-0)<0;h_({target:"Array",proto:!0,forced:y_||!d_("indexOf")},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return y_?__(this,t,e)||0:f_(this,t,e)}});var g_,v_,m_=n,b_=jt,w_=F,x_=tc,S_=Qi,P_="USE_FUNCTION_CONSTRUCTOR",A_=re("asyncIterator"),O_=m_.AsyncIterator,C_=b_.AsyncIteratorPrototype;if(C_)g_=C_;else if(w_(O_))g_=O_.prototype;else if(b_[P_]||m_[P_])try{v_=x_(x_(x_(Function("return async function*(){}()")()))),x_(v_)===Object.prototype&&(g_=v_)}catch(t){}g_||(g_={}),w_(g_[A_])||S_(g_,A_,(function(){return this}));var E_=p,V_=je,L_=Bo,T_=xt,k_=zh,N_=Li,M_=Qp,j_=g_,R_=qc,B_=U("Promise"),D_="AsyncFromSyncIterator",I_=N_.set,G_=N_.getterFor(D_),F_=function(t,e,i,r,n){var o=t.done;B_.resolve(t.value).then((function(t){e(R_(t,o))}),(function(t){if(!o&&n)try{M_(r,"throw",t)}catch(e){t=e}i(t)}))},z_=function(t){t.type=D_,I_(this,t)};z_.prototype=k_(L_(j_),{next:function(){var t=G_(this);return new B_((function(e,i){var r=V_(E_(t.next,t.iterator));F_(r,e,i,t.iterator,!0)}))},return:function(){var t=G_(this).iterator;return new B_((function(e,i){var r=T_(t,"return");if(void 0===r)return e(R_(void 0,!0));var n=V_(E_(r,t));F_(n,e,i,t)}))}});var $_=z_,H_=function(t){return{iterator:t,next:t.next,done:!1}},W_=p,U_=$_,Y_=je,X_=qp,q_=H_,Z_=xt,K_=re("asyncIterator"),J_=n,Q_=function(t,e){var i=J_[t],r=i&&i.prototype;return r&&r[e]},ty=p,ey=U,iy=xt,ry=p,ny=mt,oy=je,sy=$,ay=ln,ly=U,uy=H_,cy=function(t,e,i,r){try{var n=iy(t,"return");if(n)return ey("Promise").resolve(ty(n,t)).then((function(){e(i)}),(function(t){r(t)}))}catch(t){return r(t)}e(i)},py=function(t){var e=0===t,i=1===t,r=2===t,n=3===t;return function(t,o,s){oy(t);var a=void 0!==o;!a&&e||ny(o);var l=uy(t),u=ly("Promise"),c=l.iterator,p=l.next,h=0;return new u((function(t,l){var f=function(t){cy(c,l,t,l)},d=function(){try{if(a)try{ay(h)}catch(t){f(t)}u.resolve(oy(ry(p,c))).then((function(p){try{if(oy(p).done)e?(s.length=h,t(s)):t(!n&&(r||void 0));else{var _=p.value;try{if(a){var y=o(_,h),g=function(o){if(i)d();else if(r)o?d():cy(c,t,!1,l);else if(e)try{s[h++]=o,d()}catch(t){f(t)}else o?cy(c,t,n||_,l):d()};sy(y)?u.resolve(y).then(g,f):g(y)}else s[h++]=_,d()}catch(t){f(t)}}}catch(t){l(t)}}),l)}catch(t){l(t)}};d()}))}},hy={toArray:py(0),forEach:py(1),every:py(2),some:py(3),find:py(4)},fy=gs,dy=S,_y=Gt,yy=Mn,gy=function(t,e){var i=arguments.length<2?Z_(t,K_):e;return i?Y_(W_(i,t)):new U_(q_(X_(t)))},vy=qp,my=H_,by=zp,wy=xt,xy=U,Sy=Q_,Py=$_,Ay=hy.toArray,Oy=re("asyncIterator"),Cy=dy(Sy("Array","values")),Ey=dy(Cy([]).next),Vy=function(){return new Ly(this)},Ly=function(t){this.iterator=Cy(t)};Ly.prototype.next=function(){return Ey(this.iterator)};var Ty=nn,ky=function(t){var e=this,i=arguments.length,r=i>1?arguments[1]:void 0,n=i>2?arguments[2]:void 0;return new(xy("Promise"))((function(i){var o=_y(t);void 0!==r&&(r=fy(r,n));var s=wy(o,Oy),a=s?void 0:by(o)||Vy,l=yy(e)?new e:[],u=s?gy(o,s):new Py(my(vy(o,a)));i(Ay(u,r,l))}))},Ny=s,My=Array.fromAsync,jy=!My||Ny((function(){var t=0;return My.call((function(){return t++,[]}),{length:0}),1!==t}));Ty({target:"Array",stat:!0,forced:jy},{fromAsync:ky});var Ry=nn,By=k,Dy=I,Iy=vd,Gy=S([].join);Ry({target:"Array",proto:!0,forced:By!==Object||!Iy("join",",")},{join:function(t){return Gy(Dy(this),void 0===t?",":t)}});var Fy=el,zy=I,$y=or,Hy=dr,Wy=vd,Uy=Math.min,Yy=[].lastIndexOf,Xy=!!Yy&&1/[1].lastIndexOf(1,-0)<0,qy=Wy("lastIndexOf"),Zy=Xy||!qy?function(t){if(Xy)return Fy(Yy,this,arguments)||0;var e=zy(this),i=Hy(e);if(0===i)return-1;var r=i-1;for(arguments.length>1&&(r=Uy(r,$y(arguments[1]))),r<0&&(r=i+r);r>=0;r--)if(r in e&&e[r]===t)return r||0;return-1}:Yy;nn({target:"Array",proto:!0,forced:Zy!==[].lastIndexOf},{lastIndexOf:Zy});var Ky=As.map;nn({target:"Array",proto:!0,forced:!Wn("map")},{map:function(t){return Ky(this,t,arguments.length>1?arguments[1]:void 0)}});var Jy=a,Qy=sn,tg=TypeError,eg=Object.getOwnPropertyDescriptor,ig=Jy&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}()?function(t,e){if(Qy(t)&&!eg(t,"length").writable)throw new tg("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e},rg=Gt,ng=dr,og=ig,sg=ln;nn({target:"Array",proto:!0,arity:1,forced:s((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}}()},{push:function(t){var e=rg(this),i=ng(e),r=arguments.length;sg(i+r);for(var n=0;n<r;n++)e[i]=arguments[n],i++;return og(e,i),i}});var ag=mt,lg=Gt,ug=k,cg=dr,pg=TypeError,hg="Reduce of empty array with no initial value",fg=function(t){return function(e,i,r,n){var o=lg(e),s=ug(o),a=cg(o);if(ag(i),0===a&&r<2)throw new pg(hg);var l=t?a-1:0,u=t?-1:1;if(r<2)for(;;){if(l in s){n=s[l],l+=u;break}if(l+=u,t?l<0:a<=l)throw new pg(hg)}for(;t?l>=0:a>l;l+=u)l in s&&(n=i(n,s[l],l,o));return n}},dg={left:fg(!1),right:fg(!0)},_g=n,yg=Z,gg=C,vg=function(t){return yg.slice(0,t.length)===t},mg=vg("Bun/")?"BUN":vg("Cloudflare-Workers")?"CLOUDFLARE":vg("Deno/")?"DENO":vg("Node.js/")?"NODE":_g.Bun&&"string"==typeof Bun.version?"BUN":_g.Deno&&"object"==typeof Deno.version?"DENO":"process"===gg(_g.process)?"NODE":_g.window&&_g.document?"BROWSER":"REST",bg="NODE"===mg,wg=dg.left;nn({target:"Array",proto:!0,forced:!bg&&rt>79&&rt<83||!vd("reduce")},{reduce:function(t){var e=arguments.length;return wg(this,t,e,e>1?arguments[1]:void 0)}});var xg=dg.right;nn({target:"Array",proto:!0,forced:!bg&&rt>79&&rt<83||!vd("reduceRight")},{reduceRight:function(t){return xg(this,t,arguments.length,arguments.length>1?arguments[1]:void 0)}});var Sg=nn,Pg=sn,Ag=S([].reverse),Og=[1,2];Sg({target:"Array",proto:!0,forced:String(Og)===String(Og.reverse())},{reverse:function(){return Pg(this)&&(this.length=this.length),Ag(this)}});var Cg=nn,Eg=sn,Vg=Mn,Lg=$,Tg=ur,kg=dr,Ng=I,Mg=hn,jg=re,Rg=Io,Bg=Wn("slice"),Dg=jg("species"),Ig=Array,Gg=Math.max;Cg({target:"Array",proto:!0,forced:!Bg},{slice:function(t,e){var i,r,n,o=Ng(this),s=kg(o),a=Tg(t,s),l=Tg(void 0===e?s:e,s);if(Eg(o)&&(i=o.constructor,(Vg(i)&&(i===Ig||Eg(i.prototype))||Lg(i)&&null===(i=i[Dg]))&&(i=void 0),i===Ig||void 0===i))return Rg(o,a,l);for(r=new(void 0===i?Ig:i)(Gg(l-a,0)),n=0;a<l;a++,n++)a in o&&Mg(r,n,o[a]);return r.length=n,r}});var Fg=As.some;nn({target:"Array",proto:!0,forced:!vd("some")},{some:function(t){return Fg(this,t,arguments.length>1?arguments[1]:void 0)}});var zg=Io,$g=Math.floor,Hg=function(t,e){var i=t.length;if(i<8)for(var r,n,o=1;o<i;){for(n=o,r=t[o];n&&e(t[n-1],r)>0;)t[n]=t[--n];n!==o++&&(t[n]=r)}else for(var s=$g(i/2),a=Hg(zg(t,0,s),e),l=Hg(zg(t,s),e),u=a.length,c=l.length,p=0,h=0;p<u||h<c;)t[p+h]=p<u&&h<c?e(a[p],l[h])<=0?a[p++]:l[h++]:p<u?a[p++]:l[h++];return t},Wg=Hg,Ug=Z.match(/firefox\/(\d+)/i),Yg=!!Ug&&+Ug[1],Xg=/MSIE|Trident/.test(Z),qg=Z.match(/AppleWebKit\/(\d+)\./),Zg=!!qg&&+qg[1],Kg=nn,Jg=S,Qg=mt,tv=Gt,ev=dr,iv=ud,rv=co,nv=s,ov=Wg,sv=vd,av=Yg,lv=Xg,uv=rt,cv=Zg,pv=[],hv=Jg(pv.sort),fv=Jg(pv.push),dv=nv((function(){pv.sort(void 0)})),_v=nv((function(){pv.sort(null)})),yv=sv("sort"),gv=!nv((function(){if(uv)return uv<70;if(!(av&&av>3)){if(lv)return!0;if(cv)return cv<603;var t,e,i,r,n="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:i=3;break;case 68:case 71:i=4;break;default:i=2}for(r=0;r<47;r++)pv.push({k:e+r,v:i})}for(pv.sort((function(t,e){return e.v-t.v})),r=0;r<pv.length;r++)e=pv[r].k.charAt(0),n.charAt(n.length-1)!==e&&(n+=e);return"DGBEFHACIJK"!==n}}));Kg({target:"Array",proto:!0,forced:dv||!_v||!yv||!gv},{sort:function(t){void 0!==t&&Qg(t);var e=tv(this);if(gv)return void 0===t?hv(e):hv(e,t);var i,r,n=[],o=ev(e);for(r=0;r<o;r++)r in e&&fv(n,e[r]);for(ov(n,function(t){return function(e,i){return void 0===i?-1:void 0===e?1:void 0!==t?+t(e,i)||0:rv(e)>rv(i)?1:-1}}(t)),i=ev(n),r=0;r<i;)e[r]=n[r++];for(;r<o;)iv(e,r++);return e}}),Yh("Array");var vv=nn,mv=Gt,bv=ur,wv=or,xv=dr,Sv=ig,Pv=ln,Av=Fn,Ov=hn,Cv=ud,Ev=Wn("splice"),Vv=Math.max,Lv=Math.min;vv({target:"Array",proto:!0,forced:!Ev},{splice:function(t,e){var i,r,n,o,s,a,l=mv(this),u=xv(l),c=bv(t,u),p=arguments.length;for(0===p?i=r=0:1===p?(i=0,r=u-c):(i=p-2,r=Lv(Vv(wv(e),0),u-c)),Pv(u+i-r),n=Av(l,r),o=0;o<r;o++)(s=c+o)in l&&Ov(n,o,l[s]);if(n.length=r,i<r){for(o=c;o<u-r;o++)a=o+i,(s=o+r)in l?l[a]=l[s]:Cv(l,a);for(o=u;o>u-r+i;o--)Cv(l,o-1)}else if(i>r)for(o=u-r;o>c;o--)a=o+i-1,(s=o+r-1)in l?l[a]=l[s]:Cv(l,a);for(o=0;o<i;o++)l[o+c]=arguments[o+2];return Sv(l,u-r+i),n}});var Tv=dr,kv=function(t,e){for(var i=Tv(t),r=new e(i),n=0;n<i;n++)r[n]=t[i-n-1];return r},Nv=I,Mv=Hu,jv=Array;nn({target:"Array",proto:!0},{toReversed:function(){return kv(Nv(this),jv)}}),Mv("toReversed");var Rv=dr,Bv=nn,Dv=mt,Iv=I,Gv=function(t,e,i){for(var r=0,n=arguments.length>2?i:Rv(e),o=new t(n);n>r;)o[r]=e[r++];return o},Fv=Hu,zv=Array,$v=S(Q_("Array","sort"));Bv({target:"Array",proto:!0},{toSorted:function(t){void 0!==t&&Dv(t);var e=Iv(this),i=Gv(zv,e);return $v(i,t)}}),Fv("toSorted");var Hv=nn,Wv=Hu,Uv=ln,Yv=dr,Xv=ur,qv=I,Zv=or,Kv=Array,Jv=Math.max,Qv=Math.min;Hv({target:"Array",proto:!0},{toSpliced:function(t,e){var i,r,n,o,s=qv(this),a=Yv(s),l=Xv(t,a),u=arguments.length,c=0;for(0===u?i=r=0:1===u?(i=0,r=a-l):(i=u-2,r=Qv(Jv(Zv(e),0),a-l)),n=Uv(a+i-r),o=Kv(n);c<l;c++)o[c]=s[c];for(;c<l+i;c++)o[c]=arguments[c-l+2];for(;c<n;c++)o[c]=s[c+r-i];return o}}),Wv("toSpliced"),Hu("flat"),Hu("flatMap");var tm=Gt,em=dr,im=ig,rm=ud,nm=ln;nn({target:"Array",proto:!0,arity:1,forced:1!==[].unshift(0)||!function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(t){return t instanceof TypeError}}()},{unshift:function(t){var e=tm(this),i=em(e),r=arguments.length;if(r){nm(i+r);for(var n=i;n--;){var o=n+r;n in e?e[o]=e[n]:rm(e,o)}for(var s=0;s<r;s++)e[s]=arguments[s]}return im(e,i+r)}});var om=dr,sm=or,am=RangeError,lm=function(t,e,i,r){var n=om(t),o=sm(i),s=o<0?n+o:o;if(s>=n||s<0)throw new am("Incorrect index");for(var a=new e(n),l=0;l<n;l++)a[l]=l===s?r:t[l];return a},um=I,cm=Array;nn({target:"Array",proto:!0,forced:function(){try{[].with({valueOf:function(){throw 4}},null)}catch(t){return 4!==t}}()},{with:function(t,e){return lm(um(this),cm,t,e)}});var pm,hm,fm,dm,_m=Mn,ym=_t,gm=TypeError,vm=je,mm=function(t){if(_m(t))return t;throw new gm(ym(t)+" is not a constructor")},bm=N,wm=re("species"),xm=function(t,e){var i,r=vm(t).constructor;return void 0===r||bm(i=vm(r)[wm])?e:mm(i)},Sm=TypeError,Pm=/(?:ipad|iphone|ipod).*applewebkit/i.test(Z),Am=n,Om=el,Cm=gs,Em=F,Vm=$t,Lm=s,Tm=So,km=Io,Nm=ve,Mm=function(t,e){if(t<e)throw new Sm("Not enough arguments");return t},jm=Pm,Rm=bg,Bm=Am.setImmediate,Dm=Am.clearImmediate,Im=Am.process,Gm=Am.Dispatch,Fm=Am.Function,zm=Am.MessageChannel,$m=Am.String,Hm=0,Wm={},Um="onreadystatechange";Lm((function(){pm=Am.location}));var Ym=function(t){if(Vm(Wm,t)){var e=Wm[t];delete Wm[t],e()}},Xm=function(t){return function(){Ym(t)}},qm=function(t){Ym(t.data)},Zm=function(t){Am.postMessage($m(t),pm.protocol+"//"+pm.host)};Bm&&Dm||(Bm=function(t){Mm(arguments.length,1);var e=Em(t)?t:Fm(t),i=km(arguments,1);return Wm[++Hm]=function(){Om(e,void 0,i)},hm(Hm),Hm},Dm=function(t){delete Wm[t]},Rm?hm=function(t){Im.nextTick(Xm(t))}:Gm&&Gm.now?hm=function(t){Gm.now(Xm(t))}:zm&&!jm?(dm=(fm=new zm).port2,fm.port1.onmessage=qm,hm=Cm(dm.postMessage,dm)):Am.addEventListener&&Em(Am.postMessage)&&!Am.importScripts&&pm&&"file:"!==pm.protocol&&!Lm(Zm)?(hm=Zm,Am.addEventListener("message",qm,!1)):hm=Um in Nm("script")?function(t){Tm.appendChild(Nm("script"))[Um]=function(){Tm.removeChild(this),Ym(t)}}:function(t){setTimeout(Xm(t),0)});var Km={set:Bm,clear:Dm},Jm=n,Qm=a,tb=Object.getOwnPropertyDescriptor,eb=function(){this.head=null,this.tail=null};eb.prototype={add:function(t){var e={item:t,next:null},i=this.tail;i?i.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}};var ib,rb,nb,ob,sb,ab=eb,lb=/ipad|iphone|ipod/i.test(Z)&&"undefined"!=typeof Pebble,ub=/web0s(?!.*chrome)/i.test(Z),cb=n,pb=function(t){if(!Qm)return Jm[t];var e=tb(Jm,t);return e&&e.value},hb=gs,fb=Km.set,db=ab,_b=Pm,yb=lb,gb=ub,vb=bg,mb=cb.MutationObserver||cb.WebKitMutationObserver,bb=cb.document,wb=cb.process,xb=cb.Promise,Sb=pb("queueMicrotask");if(!Sb){var Pb=new db,Ab=function(){var t,e;for(vb&&(t=wb.domain)&&t.exit();e=Pb.get();)try{e()}catch(t){throw Pb.head&&ib(),t}t&&t.enter()};_b||vb||gb||!mb||!bb?!yb&&xb&&xb.resolve?((ob=xb.resolve(void 0)).constructor=xb,sb=hb(ob.then,ob),ib=function(){sb(Ab)}):vb?ib=function(){wb.nextTick(Ab)}:(fb=hb(fb,cb),ib=function(){fb(Ab)}):(rb=!0,nb=bb.createTextNode(""),new mb(Ab).observe(nb,{characterData:!0}),ib=function(){nb.data=rb=!rb}),Sb=function(t){Pb.head||ib(),Pb.add(t)}}var Ob=Sb,Cb=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},Eb=n.Promise,Vb=n,Lb=Eb,Tb=F,kb=qr,Nb=ui,Mb=re,jb=mg,Rb=rt;Lb&&Lb.prototype;var Bb=Mb("species"),Db=!1,Ib=Tb(Vb.PromiseRejectionEvent),Gb=kb("Promise",(function(){var t=Nb(Lb),e=t!==String(Lb);if(!e&&66===Rb)return!0;if(!Rb||Rb<51||!/native code/.test(t)){var i=new Lb((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};if((i.constructor={})[Bb]=r,!(Db=i.then((function(){}))instanceof r))return!0}return!(e||"BROWSER"!==jb&&"DENO"!==jb||Ib)})),Fb={CONSTRUCTOR:Gb,REJECTION_EVENT:Ib,SUBCLASSING:Db},zb={},$b=mt,Hb=TypeError,Wb=function(t){var e,i;this.promise=new t((function(t,r){if(void 0!==e||void 0!==i)throw new Hb("Bad Promise constructor");e=t,i=r})),this.resolve=$b(e),this.reject=$b(i)};zb.f=function(t){return new Wb(t)};var Ub,Yb,Xb,qb,Zb=nn,Kb=bg,Jb=n,Qb=Zo,tw=p,ew=Qi,iw=Ec,rw=cs,nw=Yh,ow=mt,sw=F,aw=$,lw=yh,uw=xm,cw=Km.set,pw=Ob,hw=function(t,e){try{1===arguments.length?console.error(t):console.error(t,e)}catch(t){}},fw=Cb,dw=ab,_w=Li,yw=Eb,gw=zb,vw="Promise",mw=Fb.CONSTRUCTOR,bw=Fb.REJECTION_EVENT,ww=Fb.SUBCLASSING,xw=_w.getterFor(vw),Sw=_w.set,Pw=yw&&yw.prototype,Aw=yw,Ow=Pw,Cw=Jb.TypeError,Ew=Jb.document,Vw=Jb.process,Lw=gw.f,Tw=Lw,kw=!!(Ew&&Ew.createEvent&&Jb.dispatchEvent),Nw="unhandledrejection",Mw=function(t){var e;return!(!aw(t)||!sw(e=t.then))&&e},jw=function(t,e){var i,r,n,o=e.value,s=1===e.state,a=s?t.ok:t.fail,l=t.resolve,u=t.reject,c=t.domain;try{a?(s||(2===e.rejection&&Gw(e),e.rejection=1),!0===a?i=o:(c&&c.enter(),i=a(o),c&&(c.exit(),n=!0)),i===t.promise?u(new Cw("Promise-chain cycle")):(r=Mw(i))?tw(r,i,l,u):l(i)):u(o)}catch(t){c&&!n&&c.exit(),u(t)}},Rw=function(t,e){t.notified||(t.notified=!0,pw((function(){for(var i,r=t.reactions;i=r.get();)jw(i,t);t.notified=!1,e&&!t.rejection&&Dw(t)})))},Bw=function(t,e,i){var r,n;kw?((r=Ew.createEvent("Event")).promise=e,r.reason=i,r.initEvent(t,!1,!0),Jb.dispatchEvent(r)):r={promise:e,reason:i},!bw&&(n=Jb["on"+t])?n(r):t===Nw&&hw("Unhandled promise rejection",i)},Dw=function(t){tw(cw,Jb,(function(){var e,i=t.facade,r=t.value;if(Iw(t)&&(e=fw((function(){Kb?Vw.emit("unhandledRejection",r,i):Bw(Nw,i,r)})),t.rejection=Kb||Iw(t)?2:1,e.error))throw e.value}))},Iw=function(t){return 1!==t.rejection&&!t.parent},Gw=function(t){tw(cw,Jb,(function(){var e=t.facade;Kb?Vw.emit("rejectionHandled",e):Bw("rejectionhandled",e,t.value)}))},Fw=function(t,e,i){return function(r){t(e,r,i)}},zw=function(t,e,i){t.done||(t.done=!0,i&&(t=i),t.value=e,t.state=2,Rw(t,!0))},$w=function(t,e,i){if(!t.done){t.done=!0,i&&(t=i);try{if(t.facade===e)throw new Cw("Promise can't be resolved itself");var r=Mw(e);r?pw((function(){var i={done:!1};try{tw(r,e,Fw($w,i,t),Fw(zw,i,t))}catch(e){zw(i,e,t)}})):(t.value=e,t.state=1,Rw(t,!1))}catch(e){zw({done:!1},e,t)}}};if(mw&&(Ow=(Aw=function(t){lw(this,Ow),ow(t),tw(Ub,this);var e=xw(this);try{t(Fw($w,e),Fw(zw,e))}catch(t){zw(e,t)}}).prototype,(Ub=function(t){Sw(this,{type:vw,done:!1,notified:!1,parent:!1,reactions:new dw,rejection:!1,state:0,value:null})}).prototype=ew(Ow,"then",(function(t,e){var i=xw(this),r=Lw(uw(this,Aw));return i.parent=!0,r.ok=!sw(t)||t,r.fail=sw(e)&&e,r.domain=Kb?Vw.domain:void 0,0===i.state?i.reactions.add(r):pw((function(){jw(r,i)})),r.promise})),Yb=function(){var t=new Ub,e=xw(t);this.promise=t,this.resolve=Fw($w,e),this.reject=Fw(zw,e)},gw.f=Lw=function(t){return t===Aw||t===Xb?new Yb(t):Tw(t)},sw(yw)&&Pw!==Object.prototype)){qb=Pw.then,ww||ew(Pw,"then",(function(t,e){var i=this;return new Aw((function(t,e){tw(qb,i,t,e)})).then(t,e)}),{unsafe:!0});try{delete Pw.constructor}catch(t){}iw&&iw(Pw,Ow)}Zb({global:!0,constructor:!0,wrap:!0,forced:mw},{Promise:Aw}),Xb=Qb.Promise,rw(Aw,vw,!1),nw(vw);var Hw=Eb,Ww=Fb.CONSTRUCTOR||!wh((function(t){Hw.all(t).then(void 0,(function(){}))})),Uw=p,Yw=mt,Xw=zb,qw=Cb,Zw=fh;nn({target:"Promise",stat:!0,forced:Ww},{all:function(t){var e=this,i=Xw.f(e),r=i.resolve,n=i.reject,o=qw((function(){var i=Yw(e.resolve),o=[],s=0,a=1;Zw(t,(function(t){var l=s++,u=!1;a++,Uw(i,e,t).then((function(t){u||(u=!0,o[l]=t,--a||r(o))}),n)})),--a||r(o)}));return o.error&&n(o.value),i.promise}});var Kw=nn,Jw=Fb.CONSTRUCTOR,Qw=Eb,tx=U,ex=F,ix=Qi,rx=Qw&&Qw.prototype;if(Kw({target:"Promise",proto:!0,forced:Jw,real:!0},{catch:function(t){return this.then(void 0,t)}}),ex(Qw)){var nx=tx("Promise").prototype.catch;rx.catch!==nx&&ix(rx,"catch",nx,{unsafe:!0})}var ox=p,sx=mt,ax=zb,lx=Cb,ux=fh;nn({target:"Promise",stat:!0,forced:Ww},{race:function(t){var e=this,i=ax.f(e),r=i.reject,n=lx((function(){var n=sx(e.resolve);ux(t,(function(t){ox(n,e,t).then(i.resolve,r)}))}));return n.error&&r(n.value),i.promise}});var cx=zb;nn({target:"Promise",stat:!0,forced:Fb.CONSTRUCTOR},{reject:function(t){var e=cx.f(this);return(0,e.reject)(t),e.promise}});var px=je,hx=$,fx=zb,dx=nn,_x=Fb.CONSTRUCTOR,yx=function(t,e){if(px(t),hx(e)&&e.constructor===t)return e;var i=fx.f(t);return(0,i.resolve)(e),i.promise};U("Promise"),dx({target:"Promise",stat:!0,forced:_x},{resolve:function(t){return yx(this,t)}}),Zo.Array;var gx=a,vx=S,mx=p,bx=s,wx=_o,xx=Vr,Sx=h,Px=Gt,Ax=k,Ox=Object.assign,Cx=Object.defineProperty,Ex=vx([].concat),Vx=!Ox||bx((function(){if(gx&&1!==Ox({b:1},Ox(Cx({},"a",{enumerable:!0,get:function(){Cx(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},i=Symbol("assign detection"),r="abcdefghijklmnopqrst";return t[i]=7,r.split("").forEach((function(t){e[t]=t})),7!==Ox({},t)[i]||wx(Ox({},e)).join("")!==r}))?function(t,e){for(var i=Px(t),r=arguments.length,n=1,o=xx.f,s=Sx.f;r>n;)for(var a,l=Ax(arguments[n++]),u=o?Ex(wx(l),o(l)):wx(l),c=u.length,p=0;c>p;)a=u[p++],gx&&!mx(s,l,a)||(i[a]=l[a]);return i}:Ox,Lx=Vx;nn({target:"Object",stat:!0,arity:2,forced:Object.assign!==Lx},{assign:Lx}),nn({target:"Object",stat:!0,sham:!a},{create:Bo});var Tx=nn,kx=a,Nx=Le.f;Tx({target:"Object",stat:!0,forced:Object.defineProperty!==Nx,sham:!kx},{defineProperty:Nx});var Mx=nn,jx=a,Rx=po.f;Mx({target:"Object",stat:!0,forced:Object.defineProperties!==Rx,sham:!jx},{defineProperties:Rx});var Bx=a,Dx=s,Ix=S,Gx=tc,Fx=_o,zx=I,$x=Ix(h.f),Hx=Ix([].push),Wx=Bx&&Dx((function(){var t=Object.create(null);return t[2]=2,!$x(t,2)})),Ux=function(t){return function(e){for(var i,r=zx(e),n=Fx(r),o=Wx&&null===Gx(r),s=n.length,a=0,l=[];s>a;)i=n[a++],Bx&&!(o?i in r:$x(r,i))||Hx(l,t?[i,r[i]]:r[i]);return l}},Yx={entries:Ux(!0),values:Ux(!1)},Xx=Yx.entries;nn({target:"Object",stat:!0},{entries:function(t){return Xx(t)}});var qx=nn,Zx=yp,Kx=s,Jx=$,Qx=kp.onFreeze,tS=Object.freeze;qx({target:"Object",stat:!0,forced:Kx((function(){tS(1)})),sham:!Zx},{freeze:function(t){return tS&&Jx(t)?tS(Qx(t)):t}});var eS=fh,iS=hn;nn({target:"Object",stat:!0},{fromEntries:function(t){var e={};return eS(t,(function(t,i){iS(e,t,i)}),{AS_ENTRIES:!0}),e}});var rS=nn,nS=s,oS=I,sS=o.f,aS=a;rS({target:"Object",stat:!0,forced:!aS||nS((function(){sS(1)})),sham:!aS},{getOwnPropertyDescriptor:function(t,e){return sS(oS(t),e)}});var lS=jr,uS=I,cS=o,pS=hn;nn({target:"Object",stat:!0,sham:!a},{getOwnPropertyDescriptors:function(t){for(var e,i,r=uS(t),n=cS.f,o=lS(r),s={},a=0;o.length>a;)void 0!==(i=n(r,e=o[a++]))&&pS(s,e,i);return s}});var hS=nn,fS=s,dS=Do.f;hS({target:"Object",stat:!0,forced:fS((function(){return!Object.getOwnPropertyNames(1)}))},{getOwnPropertyNames:dS});var _S=Gt,yS=tc,gS=Uu;nn({target:"Object",stat:!0,forced:s((function(){yS(1)})),sham:!gS},{getPrototypeOf:function(t){return yS(_S(t))}});var vS=nn,mS=hn,bS=U,wS=S,xS=mt,SS=R,PS=de,AS=fh,OS=s,CS=Object.groupBy,ES=bS("Object","create"),VS=wS([].push);vS({target:"Object",stat:!0,forced:!CS||OS((function(){return 1!==CS("ab",(function(t){return t})).a.length}))},{groupBy:function(t,e){SS(t),xS(e);var i=ES(null),r=0;return AS(t,(function(t){var n=PS(e(t,r++));n in i?VS(i[n],t):mS(i,n,[t])})),i}}),nn({target:"Object",stat:!0},{hasOwn:$t});var LS=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e};nn({target:"Object",stat:!0},{is:LS});var TS=_p;nn({target:"Object",stat:!0,forced:Object.isExtensible!==TS},{isExtensible:TS});var kS=nn,NS=s,MS=$,jS=C,RS=up,BS=Object.isFrozen;kS({target:"Object",stat:!0,forced:RS||NS((function(){BS(1)}))},{isFrozen:function(t){return!MS(t)||(!(!RS||"ArrayBuffer"!==jS(t))||!!BS&&BS(t))}});var DS=nn,IS=s,GS=$,FS=C,zS=up,$S=Object.isSealed;DS({target:"Object",stat:!0,forced:zS||IS((function(){$S(1)}))},{isSealed:function(t){return!GS(t)||(!(!zS||"ArrayBuffer"!==FS(t))||!!$S&&$S(t))}});var HS=Gt,WS=_o;nn({target:"Object",stat:!0,forced:s((function(){WS(1)}))},{keys:function(t){return WS(HS(t))}});var US=nn,YS=$,XS=kp.onFreeze,qS=yp,ZS=s,KS=Object.preventExtensions;US({target:"Object",stat:!0,forced:ZS((function(){KS(1)})),sham:!qS},{preventExtensions:function(t){return KS&&YS(t)?KS(XS(t)):t}});var JS=a,QS=Yo,tP=$,eP=bc,iP=Gt,rP=R,nP=Object.getPrototypeOf,oP=Object.setPrototypeOf,sP=Object.prototype,aP="__proto__";if(JS&&nP&&oP&&!(aP in sP))try{QS(sP,aP,{configurable:!0,get:function(){return nP(iP(this))},set:function(t){var e=rP(this);eP(t)&&tP(e)&&oP(e,t)}})}catch(t){}var lP=nn,uP=$,cP=kp.onFreeze,pP=yp,hP=s,fP=Object.seal;lP({target:"Object",stat:!0,forced:hP((function(){fP(1)})),sham:!pP},{seal:function(t){return fP&&uP(t)?fP(cP(t)):t}}),nn({target:"Object",stat:!0},{setPrototypeOf:Ec});var dP=Yx.values;nn({target:"Object",stat:!0},{values:function(t){return dP(t)}});var _P=n,yP=Zg,gP=!s((function(){if(!(yP&&yP<535)){var t=Math.random();__defineSetter__.call(null,t,(function(){})),delete _P[t]}})),vP=mt,mP=Gt,bP=Le;a&&nn({target:"Object",proto:!0,forced:gP},{__defineGetter__:function(t,e){bP.f(mP(this),t,{get:vP(e),enumerable:!0,configurable:!0})}});var wP=mt,xP=Gt,SP=Le;a&&nn({target:"Object",proto:!0,forced:gP},{__defineSetter__:function(t,e){SP.f(xP(this),t,{set:wP(e),enumerable:!0,configurable:!0})}});var PP=nn,AP=a,OP=gP,CP=Gt,EP=de,VP=tc,LP=o.f;AP&&PP({target:"Object",proto:!0,forced:OP},{__lookupGetter__:function(t){var e,i=CP(this),r=EP(t);do{if(e=LP(i,r))return e.get}while(i=VP(i))}});var TP=nn,kP=a,NP=gP,MP=Gt,jP=de,RP=tc,BP=o.f;kP&&TP({target:"Object",proto:!0,forced:NP},{__lookupSetter__:function(t){var e,i=MP(this),r=jP(t);do{if(e=BP(i,r))return e.set}while(i=RP(i))}}),Zo.Object;var DP=S(1.1.valueOf),IP="\t\n\v\f\r \u2028\u2029\ufeff",GP=R,FP=co,zP=IP,$P=S("".replace),HP=RegExp("^["+zP+"]+"),WP=RegExp("(^|[^"+zP+"])["+zP+"]+$"),UP=function(t){return function(e){var i=FP(GP(e));return 1&t&&(i=$P(i,HP,"")),2&t&&(i=$P(i,WP,"$1")),i}},YP={start:UP(1),end:UP(2),trim:UP(3)},XP=nn,qP=a,ZP=n,KP=Zo,JP=S,QP=qr,tA=$t,eA=Ah,iA=Y,rA=ft,nA=pe,oA=s,sA=tr.f,aA=o.f,lA=Le.f,uA=DP,cA=YP.trim,pA="Number",hA=ZP[pA];KP[pA];var fA=hA.prototype,dA=ZP.TypeError,_A=JP("".slice),yA=JP("".charCodeAt),gA=function(t){var e,i,r,n,o,s,a,l,u=nA(t,"number");if(rA(u))throw new dA("Cannot convert a Symbol value to a number");if("string"==typeof u&&u.length>2)if(u=cA(u),43===(e=yA(u,0))||45===e){if(88===(i=yA(u,2))||120===i)return NaN}else if(48===e){switch(yA(u,1)){case 66:case 98:r=2,n=49;break;case 79:case 111:r=8,n=55;break;default:return+u}for(s=(o=_A(u,2)).length,a=0;a<s;a++)if((l=yA(o,a))<48||l>n)return NaN;return parseInt(o,r)}return+u},vA=QP(pA,!hA(" 0o1")||!hA("0b1")||hA("+0x1")),mA=function(t){var e,i=arguments.length<1?0:hA(function(t){var e=nA(t,"number");return"bigint"==typeof e?e:gA(e)}(t));return iA(fA,e=this)&&oA((function(){uA(e)}))?eA(Object(i),this,mA):i};mA.prototype=fA,vA&&(fA.constructor=mA),XP({global:!0,constructor:!0,wrap:!0,forced:vA},{Number:mA});vA&&function(t,e){for(var i,r=qP?sA(e):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),n=0;r.length>n;n++)tA(e,i=r[n])&&!tA(t,i)&&lA(t,i,aA(e,i))}(KP[pA],hA),nn({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{EPSILON:Math.pow(2,-52)});var bA=n.isFinite;nn({target:"Number",stat:!0},{isFinite:Number.isFinite||function(t){return"number"==typeof t&&bA(t)}});var wA=$,xA=Math.floor,SA=Number.isInteger||function(t){return!wA(t)&&isFinite(t)&&xA(t)===t};nn({target:"Number",stat:!0},{isInteger:SA}),nn({target:"Number",stat:!0},{isNaN:function(t){return t!=t}});var PA=nn,AA=SA,OA=Math.abs;PA({target:"Number",stat:!0},{isSafeInteger:function(t){return AA(t)&&OA(t)<=9007199254740991}}),nn({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991}),nn({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-9007199254740991});var CA=n,EA=s,VA=co,LA=YP.trim,TA=IP,kA=S("".charAt),NA=CA.parseFloat,MA=CA.Symbol,jA=MA&&MA.iterator,RA=1/NA(TA+"-0")!=-1/0||jA&&!EA((function(){NA(Object(jA))}))?function(t){var e=LA(VA(t)),i=NA(e);return 0===i&&"-"===kA(e,0)?-0:i}:NA;nn({target:"Number",stat:!0,forced:Number.parseFloat!==RA},{parseFloat:RA});var BA=n,DA=s,IA=S,GA=co,FA=YP.trim,zA=IP,$A=BA.parseInt,HA=BA.Symbol,WA=HA&&HA.iterator,UA=/^[+-]?0x/i,YA=IA(UA.exec),XA=8!==$A(zA+"08")||22!==$A(zA+"0x16")||WA&&!DA((function(){$A(Object(WA))}))?function(t,e){var i=FA(GA(t));return $A(i,e>>>0||(YA(UA,i)?16:10))}:$A;nn({target:"Number",stat:!0,forced:Number.parseInt!==XA},{parseInt:XA});var qA=or,ZA=co,KA=R,JA=RangeError,QA=function(t){var e=ZA(KA(this)),i="",r=qA(t);if(r<0||r===1/0)throw new JA("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(e+=e))1&r&&(i+=e);return i},tO=Math.log,eO=Math.LOG10E,iO=Math.log10||function(t){return tO(t)*eO},rO=nn,nO=S,oO=or,sO=DP,aO=QA,lO=iO,uO=s,cO=RangeError,pO=String,hO=isFinite,fO=Math.abs,dO=Math.floor,_O=Math.pow,yO=Math.round,gO=nO(1.1.toExponential),vO=nO(aO),mO=nO("".slice),bO="-6.9000e-11"===gO(-69e-12,4)&&"1.25e+0"===gO(1.255,2)&&"1.235e+4"===gO(12345,3)&&"3e+1"===gO(25,0);rO({target:"Number",proto:!0,forced:!bO||!(uO((function(){gO(1,1/0)}))&&uO((function(){gO(1,-1/0)})))||!!uO((function(){gO(1/0,1/0),gO(NaN,1/0)}))},{toExponential:function(t){var e=sO(this);if(void 0===t)return gO(e);var i=oO(t);if(!hO(e))return String(e);if(i<0||i>20)throw new cO("Incorrect fraction digits");if(bO)return gO(e,i);var r,n,o,s,a="";if(e<0&&(a="-",e=-e),0===e)n=0,r=vO("0",i+1);else{var l=lO(e);n=dO(l);var u=_O(10,n-i),c=yO(e/u);2*e>=(2*c+1)*u&&(c+=1),c>=_O(10,i+1)&&(c/=10,n+=1),r=pO(c)}return 0!==i&&(r=mO(r,0,1)+"."+mO(r,1)),0===n?(o="+",s="0"):(o=n>0?"+":"-",s=pO(fO(n))),a+(r+="e"+o+s)}});var wO=nn,xO=S,SO=or,PO=DP,AO=QA,OO=s,CO=RangeError,EO=String,VO=Math.floor,LO=xO(AO),TO=xO("".slice),kO=xO(1.1.toFixed),NO=function(t,e,i){return 0===e?i:e%2==1?NO(t,e-1,i*t):NO(t*t,e/2,i)},MO=function(t,e,i){for(var r=-1,n=i;++r<6;)n+=e*t[r],t[r]=n%1e7,n=VO(n/1e7)},jO=function(t,e){for(var i=6,r=0;--i>=0;)r+=t[i],t[i]=VO(r/e),r=r%e*1e7},RO=function(t){for(var e=6,i="";--e>=0;)if(""!==i||0===e||0!==t[e]){var r=EO(t[e]);i=""===i?r:i+LO("0",7-r.length)+r}return i};wO({target:"Number",proto:!0,forced:OO((function(){return"0.000"!==kO(8e-5,3)||"1"!==kO(.9,0)||"1.25"!==kO(1.255,2)||"1000000000000000128"!==kO(0xde0b6b3a7640080,0)}))||!OO((function(){kO({})}))},{toFixed:function(t){var e,i,r,n,o=PO(this),s=SO(t),a=[0,0,0,0,0,0],l="",u="0";if(s<0||s>20)throw new CO("Incorrect fraction digits");if(o!=o)return"NaN";if(o<=-1e21||o>=1e21)return EO(o);if(o<0&&(l="-",o=-o),o>1e-21)if(i=(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*NO(2,69,1))-69)<0?o*NO(2,-e,1):o/NO(2,e,1),i*=4503599627370496,(e=52-e)>0){for(MO(a,0,i),r=s;r>=7;)MO(a,1e7,0),r-=7;for(MO(a,NO(10,r,1),0),r=e-1;r>=23;)jO(a,1<<23),r-=23;jO(a,1<<r),MO(a,1,1),jO(a,2),u=RO(a)}else MO(a,0,i),MO(a,1<<-e,0),u=RO(a)+LO("0",s);return u=s>0?l+((n=u.length)<=s?"0."+LO("0",s-n)+u:TO(u,0,n-s)+"."+TO(u,n-s)):l+u}});var BO=nn,DO=s,IO=DP,GO=S(1.1.toPrecision);BO({target:"Number",proto:!0,forced:DO((function(){return"1"!==GO(1,void 0)}))||!DO((function(){GO({})}))},{toPrecision:function(t){return void 0===t?GO(IO(this)):GO(IO(this),t)}}),Zo.Number;var FO,zO,$O=je,HO=function(){var t=$O(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e},WO=s,UO=n.RegExp,YO=WO((function(){var t=UO("a","y");return t.lastIndex=2,null!==t.exec("abcd")})),XO=YO||WO((function(){return!UO("a","y").sticky})),qO={BROKEN_CARET:YO||WO((function(){var t=UO("^r","gy");return t.lastIndex=2,null!==t.exec("str")})),MISSED_STICKY:XO,UNSUPPORTED_Y:YO},ZO=s,KO=n.RegExp,JO=ZO((function(){var t=KO(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)})),QO=s,tC=n.RegExp,eC=QO((function(){var t=tC("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),iC=p,rC=S,nC=co,oC=HO,sC=qO,aC=Bo,lC=Li.get,uC=JO,cC=eC,pC=Bt("native-string-replace",String.prototype.replace),hC=RegExp.prototype.exec,fC=hC,dC=rC("".charAt),_C=rC("".indexOf),yC=rC("".replace),gC=rC("".slice),vC=(zO=/b*/g,iC(hC,FO=/a/,"a"),iC(hC,zO,"a"),0!==FO.lastIndex||0!==zO.lastIndex),mC=sC.BROKEN_CARET,bC=void 0!==/()??/.exec("")[1];(vC||bC||mC||uC||cC)&&(fC=function(t){var e,i,r,n,o,s,a,l=this,u=lC(l),c=nC(t),p=u.raw;if(p)return p.lastIndex=l.lastIndex,e=iC(fC,p,c),l.lastIndex=p.lastIndex,e;var h=u.groups,f=mC&&l.sticky,d=iC(oC,l),_=l.source,y=0,g=c;if(f&&(d=yC(d,"y",""),-1===_C(d,"g")&&(d+="g"),g=gC(c,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&"\n"!==dC(c,l.lastIndex-1))&&(_="(?: "+_+")",g=" "+g,y++),i=new RegExp("^(?:"+_+")",d)),bC&&(i=new RegExp("^"+_+"$(?!\\s)",d)),vC&&(r=l.lastIndex),n=iC(hC,f?i:l,g),f?n?(n.input=gC(n.input,y),n[0]=gC(n[0],y),n.index=l.lastIndex,l.lastIndex+=n[0].length):l.lastIndex=0:vC&&n&&(l.lastIndex=l.global?n.index+n[0].length:r),bC&&n&&n.length>1&&iC(pC,n[0],i,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(n[o]=void 0)})),n&&h)for(n.groups=s=aC(null),o=0;o<h.length;o++)s[(a=h[o])[0]]=n[a[1]];return n});var wC=fC;nn({target:"RegExp",proto:!0,forced:/./.exec!==wC},{exec:wC});var xC=nn,SC=S,PC=ur,AC=RangeError,OC=String.fromCharCode,CC=String.fromCodePoint,EC=SC([].join);xC({target:"String",stat:!0,arity:1,forced:!!CC&&1!==CC.length},{fromCodePoint:function(t){for(var e,i=[],r=arguments.length,n=0;r>n;){if(e=+arguments[n++],PC(e,1114111)!==e)throw new AC(e+" is not a valid code point");i[n]=e<65536?OC(e):OC(55296+((e-=65536)>>10),e%1024+56320)}return EC(i,"")}});var VC=nn,LC=S,TC=I,kC=Gt,NC=co,MC=dr,jC=LC([].push),RC=LC([].join);VC({target:"String",stat:!0},{raw:function(t){var e=TC(kC(t).raw),i=MC(e);if(!i)return"";for(var r=arguments.length,n=[],o=0;;){if(jC(n,NC(e[o++])),o===i)return RC(n,"");o<r&&jC(n,NC(arguments[o]))}}});var BC=Tf.codeAt;nn({target:"String",proto:!0},{codePointAt:function(t){return BC(this,t)}});var DC=nn,IC=R,GC=or,FC=co,zC=s,$C=S("".charAt);DC({target:"String",proto:!0,forced:zC((function(){return"\ud842"!=="𠮷".at(-2)}))},{at:function(t){var e=FC(IC(this)),i=e.length,r=GC(t),n=r>=0?r:i+r;return n<0||n>=i?void 0:$C(e,n)}});var HC=$,WC=C,UC=re("match"),YC=function(t){var e;return HC(t)&&(void 0!==(e=t[UC])?!!e:"RegExp"===WC(t))},XC=YC,qC=TypeError,ZC=function(t){if(XC(t))throw new qC("The method doesn't accept regular expressions");return t},KC=re("match"),JC=function(t){var e=/./;try{"/./"[t](e)}catch(i){try{return e[KC]=!1,"/./"[t](e)}catch(t){}}return!1},QC=nn,tE=fs,eE=o.f,iE=hr,rE=co,nE=ZC,oE=R,sE=JC,aE=tE("".slice),lE=Math.min,uE=sE("endsWith"),cE=!uE&&!!function(){var t=eE(String.prototype,"endsWith");return t&&!t.writable}();QC({target:"String",proto:!0,forced:!cE&&!uE},{endsWith:function(t){var e=rE(oE(this));nE(t);var i=arguments.length>1?arguments[1]:void 0,r=e.length,n=void 0===i?r:lE(iE(i),r),o=rE(t);return aE(e,n-o.length,n)===o}});var pE=nn,hE=ZC,fE=R,dE=co,_E=JC,yE=S("".indexOf);pE({target:"String",proto:!0,forced:!_E("includes")},{includes:function(t){return!!~yE(dE(fE(this)),dE(hE(t)),arguments.length>1?arguments[1]:void 0)}});var gE=nn,vE=R,mE=co,bE=S("".charCodeAt);gE({target:"String",proto:!0},{isWellFormed:function(){for(var t=mE(vE(this)),e=t.length,i=0;i<e;i++){var r=bE(t,i);if(55296==(63488&r)&&(r>=56320||++i>=e||56320!=(64512&bE(t,i))))return!1}return!0}});var wE=p,xE=Qi,SE=wC,PE=s,AE=re,OE=qe,CE=AE("species"),EE=RegExp.prototype,VE=function(t,e,i,r){var n=AE(t),o=!PE((function(){var e={};return e[n]=function(){return 7},7!==""[t](e)})),s=o&&!PE((function(){var e=!1,i=/a/;if("split"===t){var r={};r[CE]=function(){return i},(i={constructor:r,flags:""})[n]=/./[n]}return i.exec=function(){return e=!0,null},i[n](""),!e}));if(!o||!s||i){var a=/./[n],l=e(n,""[t],(function(t,e,i,r,n){var s=e.exec;return s===SE||s===EE.exec?o&&!n?{done:!0,value:wE(a,e,i,r)}:{done:!0,value:wE(t,i,e,r)}:{done:!1}}));xE(String.prototype,t,l[0]),xE(EE,n,l[1])}r&&OE(EE[n],"sham",!0)},LE=Tf.charAt,TE=function(t,e,i){return e+(i?LE(t,e).length:1)},kE=s,NE=n.RegExp,ME=!kE((function(){var t=!0;try{NE(".","d")}catch(e){t=!1}var e={},i="",r=t?"dgimsy":"gimsy",n=function(t,r){Object.defineProperty(e,t,{get:function(){return i+=r,!0}})},o={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var s in t&&(o.hasIndices="d"),o)n(s,o[s]);return Object.getOwnPropertyDescriptor(NE.prototype,"flags").get.call(e)!==r||i!==r})),jE=p,RE=$t,BE=Y,DE={correct:ME},IE=HO,GE=RegExp.prototype,FE=DE.correct?function(t){return t.flags}:function(t){return DE.correct||!BE(GE,t)||RE(t,"flags")?t.flags:jE(IE,t)},zE=p,$E=je,HE=F,WE=C,UE=wC,YE=TypeError,XE=function(t,e){var i=t.exec;if(HE(i)){var r=zE(i,t,e);return null!==r&&$E(r),r}if("RegExp"===WE(t))return zE(UE,t,e);throw new YE("RegExp#exec called on incompatible receiver")},qE=p,ZE=VE,KE=je,JE=$,QE=hr,tV=co,eV=R,iV=xt,rV=TE,nV=FE,oV=XE,sV=S("".indexOf);ZE("match",(function(t,e,i){return[function(e){var i=eV(this),r=JE(e)?iV(e,t):void 0;return r?qE(r,e,i):new RegExp(e)[t](tV(i))},function(t){var r=KE(this),n=tV(t),o=i(e,r,n);if(o.done)return o.value;var s=tV(nV(r));if(-1===sV(s,"g"))return oV(r,n);var a=-1!==sV(s,"u");r.lastIndex=0;for(var l,u=[],c=0;null!==(l=oV(r,n));){var p=tV(l[0]);u[c]=p,""===p&&(r.lastIndex=rV(n,QE(r.lastIndex),a)),c++}return 0===c?null:u}]}));var aV=nn,lV=p,uV=fs,cV=yc,pV=qc,hV=R,fV=hr,dV=co,_V=je,yV=$,gV=YC,vV=FE,mV=xt,bV=Qi,wV=s,xV=xm,SV=TE,PV=XE,AV=Li,OV=re("matchAll"),CV="RegExp String",EV=CV+" Iterator",VV=AV.set,LV=AV.getterFor(EV),TV=RegExp.prototype,kV=TypeError,NV=uV("".indexOf),MV=uV("".matchAll),jV=!!MV&&!wV((function(){MV("a",/./)})),RV=cV((function(t,e,i,r){VV(this,{type:EV,regexp:t,string:e,global:i,unicode:r,done:!1})}),CV,(function(){var t=LV(this);if(t.done)return pV(void 0,!0);var e=t.regexp,i=t.string,r=PV(e,i);return null===r?(t.done=!0,pV(void 0,!0)):t.global?(""===dV(r[0])&&(e.lastIndex=SV(i,fV(e.lastIndex),t.unicode)),pV(r,!1)):(t.done=!0,pV(r,!1))})),BV=function(t){var e,i,r,n=_V(this),o=dV(t),s=xV(n,RegExp),a=dV(vV(n));return e=new s(s===RegExp?n.source:n,a),i=!!~NV(a,"g"),r=!!~NV(a,"u"),e.lastIndex=fV(n.lastIndex),new RV(e,o,i,r)};aV({target:"String",proto:!0,forced:jV},{matchAll:function(t){var e,i,r,n=hV(this);if(yV(t)){if(gV(t)&&(e=dV(hV(vV(t))),!~NV(e,"g")))throw new kV("`.matchAll` does not allow non-global regexes");if(jV)return MV(n,t);if(r=mV(t,OV))return lV(r,t,n)}else if(jV)return MV(n,t);return i=dV(n),new RegExp(t,"g")[OV](i)}}),OV in TV||bV(TV,OV,BV);var DV=S,IV=hr,GV=co,FV=R,zV=DV(QA),$V=DV("".slice),HV=Math.ceil,WV=function(t){return function(e,i,r){var n,o,s=GV(FV(e)),a=IV(i),l=s.length,u=void 0===r?" ":GV(r);return a<=l||""===u?s:((o=zV(u,HV((n=a-l)/u.length))).length>n&&(o=$V(o,0,n)),t?s+o:o+s)}},UV={start:WV(!1),end:WV(!0)},YV=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(Z),XV=UV.end;nn({target:"String",proto:!0,forced:YV},{padEnd:function(t){return XV(this,t,arguments.length>1?arguments[1]:void 0)}});var qV=UV.start;nn({target:"String",proto:!0,forced:YV},{padStart:function(t){return qV(this,t,arguments.length>1?arguments[1]:void 0)}}),nn({target:"String",proto:!0},{repeat:QA});var ZV=S,KV=Gt,JV=Math.floor,QV=ZV("".charAt),tL=ZV("".replace),eL=ZV("".slice),iL=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,rL=/\$([$&'`]|\d{1,2})/g,nL=function(t,e,i,r,n,o){var s=i+t.length,a=r.length,l=rL;return void 0!==n&&(n=KV(n),l=iL),tL(o,l,(function(o,l){var u;switch(QV(l,0)){case"$":return"$";case"&":return t;case"`":return eL(e,0,i);case"'":return eL(e,s);case"<":u=n[eL(l,1,-1)];break;default:var c=+l;if(0===c)return o;if(c>a){var p=JV(c/10);return 0===p?o:p<=a?void 0===r[p-1]?QV(l,1):r[p-1]+QV(l,1):o}u=r[c-1]}return void 0===u?"":u}))},oL=el,sL=p,aL=S,lL=VE,uL=s,cL=je,pL=F,hL=$,fL=or,dL=hr,_L=co,yL=R,gL=TE,vL=xt,mL=nL,bL=FE,wL=XE,xL=re("replace"),SL=Math.max,PL=Math.min,AL=aL([].concat),OL=aL([].push),CL=aL("".indexOf),EL=aL("".slice),VL="$0"==="a".replace(/./,"$0"),LL=!!/./[xL]&&""===/./[xL]("a","$0");lL("replace",(function(t,e,i){var r=LL?"$":"$0";return[function(t,i){var r=yL(this),n=hL(t)?vL(t,xL):void 0;return n?sL(n,t,r,i):sL(e,_L(r),t,i)},function(t,n){var o=cL(this),s=_L(t);if("string"==typeof n&&-1===CL(n,r)&&-1===CL(n,"$<")){var a=i(e,o,s,n);if(a.done)return a.value}var l=pL(n);l||(n=_L(n));var u,c=_L(bL(o)),p=-1!==CL(c,"g");p&&(u=-1!==CL(c,"u"),o.lastIndex=0);for(var h,f=[];null!==(h=wL(o,s))&&(OL(f,h),p);){""===_L(h[0])&&(o.lastIndex=gL(s,dL(o.lastIndex),u))}for(var d,_="",y=0,g=0;g<f.length;g++){for(var v,m=_L((h=f[g])[0]),b=SL(PL(fL(h.index),s.length),0),w=[],x=1;x<h.length;x++)OL(w,void 0===(d=h[x])?d:String(d));var S=h.groups;if(l){var P=AL([m],w,b,s);void 0!==S&&OL(P,S),v=_L(oL(n,void 0,P))}else v=mL(m,s,b,w,S,n);b>=y&&(_+=EL(s,y,b)+v,y=b+m.length)}return _+EL(s,y)}]}),!!uL((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!VL||LL);var TL=nn,kL=p,NL=S,ML=R,jL=F,RL=$,BL=YC,DL=co,IL=xt,GL=FE,FL=nL,zL=re("replace"),$L=TypeError,HL=NL("".indexOf);NL("".replace);var WL=NL("".slice),UL=Math.max;TL({target:"String",proto:!0},{replaceAll:function(t,e){var i,r,n,o,s,a,l,u,c,p=ML(this),h=0,f="";if(RL(t)){if(BL(t)&&(i=DL(ML(GL(t))),!~HL(i,"g")))throw new $L("`.replaceAll` does not allow non-global regexes");if(r=IL(t,zL))return kL(r,t,p,e)}for(n=DL(p),o=DL(t),(s=jL(e))||(e=DL(e)),a=o.length,l=UL(1,a),u=HL(n,o);-1!==u;)c=s?DL(e(o,u,n)):FL(o,n,u,[],void 0,e),f+=WL(n,h,u)+c,h=u+a,u=u+l>n.length?-1:HL(n,o,u+l);return h<n.length&&(f+=WL(n,h)),f}});var YL=p,XL=je,qL=$,ZL=R,KL=LS,JL=co,QL=xt,tT=XE;VE("search",(function(t,e,i){return[function(e){var i=ZL(this),r=qL(e)?QL(e,t):void 0;return r?YL(r,e,i):new RegExp(e)[t](JL(i))},function(t){var r=XL(this),n=JL(t),o=i(e,r,n);if(o.done)return o.value;var s=r.lastIndex;KL(s,0)||(r.lastIndex=0);var a=tT(r,n);return KL(r.lastIndex,s)||(r.lastIndex=s),null===a?-1:a.index}]}));var eT=p,iT=S,rT=VE,nT=je,oT=$,sT=R,aT=xm,lT=TE,uT=hr,cT=co,pT=xt,hT=XE,fT=s,dT=qO.UNSUPPORTED_Y,_T=Math.min,yT=iT([].push),gT=iT("".slice),vT=!fT((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]})),mT="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length;rT("split",(function(t,e,i){var r="0".split(void 0,0).length?function(t,i){return void 0===t&&0===i?[]:eT(e,this,t,i)}:e;return[function(e,i){var n=sT(this),o=oT(e)?pT(e,t):void 0;return o?eT(o,e,n,i):eT(r,cT(n),e,i)},function(t,n){var o=nT(this),s=cT(t);if(!mT){var a=i(r,o,s,n,r!==e);if(a.done)return a.value}var l=aT(o,RegExp),u=o.unicode,c=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(dT?"g":"y"),p=new l(dT?"^(?:"+o.source+")":o,c),h=void 0===n?4294967295:n>>>0;if(0===h)return[];if(0===s.length)return null===hT(p,s)?[s]:[];for(var f=0,d=0,_=[];d<s.length;){p.lastIndex=dT?0:d;var y,g=hT(p,dT?gT(s,d):s);if(null===g||(y=_T(uT(p.lastIndex+(dT?d:0)),s.length))===f)d=lT(s,d,u);else{if(yT(_,gT(s,f,d)),_.length===h)return _;for(var v=1;v<=g.length-1;v++)if(yT(_,g[v]),_.length===h)return _;d=f=y}}return yT(_,gT(s,f)),_}]}),mT||!vT,dT);var bT=nn,wT=fs,xT=o.f,ST=hr,PT=co,AT=ZC,OT=R,CT=JC,ET=wT("".slice),VT=Math.min,LT=CT("startsWith"),TT=!LT&&!!function(){var t=xT(String.prototype,"startsWith");return t&&!t.writable}();bT({target:"String",proto:!0,forced:!TT&&!LT},{startsWith:function(t){var e=PT(OT(this));AT(t);var i=ST(VT(arguments.length>1?arguments[1]:void 0,e.length)),r=PT(t);return ET(e,i,i+r.length)===r}});var kT=nn,NT=R,MT=or,jT=co,RT=S("".slice),BT=Math.max,DT=Math.min;kT({target:"String",proto:!0,forced:!"".substr||"b"!=="ab".substr(-1)},{substr:function(t,e){var i,r,n=jT(NT(this)),o=n.length,s=MT(t);return s===1/0&&(s=0),s<0&&(s=BT(o+s,0)),(i=void 0===e?o:MT(e))<=0||i===1/0||s>=(r=DT(s+i,o))?"":RT(n,s,r)}});var IT=nn,GT=p,FT=S,zT=R,$T=co,HT=s,WT=Array,UT=FT("".charAt),YT=FT("".charCodeAt),XT=FT([].join),qT="".toWellFormed,ZT=qT&&HT((function(){return"1"!==GT(qT,1)}));IT({target:"String",proto:!0,forced:ZT},{toWellFormed:function(){var t=$T(zT(this));if(ZT)return GT(qT,t);for(var e=t.length,i=WT(e),r=0;r<e;r++){var n=YT(t,r);55296!=(63488&n)?i[r]=UT(t,r):n>=56320||r+1>=e||56320!=(64512&YT(t,r+1))?i[r]="�":(i[r]=UT(t,r),i[++r]=UT(t,r))}return XT(i,"")}});var KT=ii.PROPER,JT=s,QT=IP,tk=function(t){return JT((function(){return!!QT[t]()||"
"!=="
"[t]()||KT&&QT[t].name!==t}))},ek=YP.trim;nn({target:"String",proto:!0,forced:tk("trim")},{trim:function(){return ek(this)}});var ik=YP.start,rk=tk("trimStart")?function(){return ik(this)}:"".trimStart;nn({target:"String",proto:!0,name:"trimStart",forced:"".trimLeft!==rk},{trimLeft:rk});nn({target:"String",proto:!0,name:"trimStart",forced:"".trimStart!==rk},{trimStart:rk});var nk=YP.end,ok=tk("trimEnd")?function(){return nk(this)}:"".trimEnd;nn({target:"String",proto:!0,name:"trimEnd",forced:"".trimRight!==ok},{trimRight:ok});nn({target:"String",proto:!0,name:"trimEnd",forced:"".trimEnd!==ok},{trimEnd:ok});var sk=R,ak=co,lk=/"/g,uk=S("".replace),ck=function(t,e,i,r){var n=ak(sk(t)),o="<"+e;return""!==i&&(o+=" "+i+'="'+uk(ak(r),lk,""")+'"'),o+">"+n+"</"+e+">"},pk=s,hk=function(t){return pk((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}))},fk=ck;nn({target:"String",proto:!0,forced:hk("anchor")},{anchor:function(t){return fk(this,"a","name",t)}});var dk=ck;nn({target:"String",proto:!0,forced:hk("big")},{big:function(){return dk(this,"big","","")}});var _k=ck;nn({target:"String",proto:!0,forced:hk("blink")},{blink:function(){return _k(this,"blink","","")}});var yk=ck;nn({target:"String",proto:!0,forced:hk("bold")},{bold:function(){return yk(this,"b","","")}});var gk=ck;nn({target:"String",proto:!0,forced:hk("fixed")},{fixed:function(){return gk(this,"tt","","")}});var vk=ck;nn({target:"String",proto:!0,forced:hk("fontcolor")},{fontcolor:function(t){return vk(this,"font","color",t)}});var mk=ck;nn({target:"String",proto:!0,forced:hk("fontsize")},{fontsize:function(t){return mk(this,"font","size",t)}});var bk=ck;nn({target:"String",proto:!0,forced:hk("italics")},{italics:function(){return bk(this,"i","","")}});var wk=ck;nn({target:"String",proto:!0,forced:hk("link")},{link:function(t){return wk(this,"a","href",t)}});var xk=ck;nn({target:"String",proto:!0,forced:hk("small")},{small:function(){return xk(this,"small","","")}});var Sk=ck;nn({target:"String",proto:!0,forced:hk("strike")},{strike:function(){return Sk(this,"strike","","")}});var Pk=ck;nn({target:"String",proto:!0,forced:hk("sub")},{sub:function(){return Pk(this,"sub","","")}});var Ak=ck;nn({target:"String",proto:!0,forced:hk("sup")},{sup:function(){return Ak(this,"sup","","")}}),Zo.String;var Ok=Math.log,Ck=Math.log1p||function(t){var e=+t;return e>-1e-8&&e<1e-8?e-e*e/2:Ok(1+e)},Ek=nn,Vk=Ck,Lk=Math.acosh,Tk=Math.log,kk=Math.sqrt,Nk=Math.LN2;Ek({target:"Math",stat:!0,forced:!Lk||710!==Math.floor(Lk(Number.MAX_VALUE))||Lk(1/0)!==1/0},{acosh:function(t){var e=+t;return e<1?NaN:e>94906265.62425156?Tk(e)+Nk:Vk(e-1+kk(e-1)*kk(e+1))}});var Mk=nn,jk=Math.asinh,Rk=Math.log,Bk=Math.sqrt;Mk({target:"Math",stat:!0,forced:!(jk&&1/jk(0)>0)},{asinh:function t(e){var i=+e;return isFinite(i)&&0!==i?i<0?-t(-i):Rk(i+Bk(i*i+1)):i}});var Dk=nn,Ik=Math.atanh,Gk=Math.log;Dk({target:"Math",stat:!0,forced:!(Ik&&1/Ik(-0)<0)},{atanh:function(t){var e=+t;return 0===e?e:Gk((1+e)/(1-e))/2}});var Fk=Math.sign||function(t){var e=+t;return 0===e||e!=e?e:e<0?-1:1},zk=nn,$k=Fk,Hk=Math.abs,Wk=Math.pow;zk({target:"Math",stat:!0},{cbrt:function(t){var e=+t;return $k(e)*Wk(Hk(e),1/3)}});var Uk=nn,Yk=Math.floor,Xk=Math.log,qk=Math.LOG2E;Uk({target:"Math",stat:!0},{clz32:function(t){var e=t>>>0;return e?31-Yk(Xk(e+.5)*qk):32}});var Zk=Math.expm1,Kk=Math.exp,Jk=!Zk||Zk(10)>22025.465794806718||Zk(10)<22025.465794806718||-2e-17!==Zk(-2e-17)?function(t){var e=+t;return 0===e?e:e>-1e-6&&e<1e-6?e+e*e/2:Kk(e)-1}:Zk,Qk=nn,tN=Jk,eN=Math.cosh,iN=Math.abs,rN=Math.E;Qk({target:"Math",stat:!0,forced:!eN||eN(710)===1/0},{cosh:function(t){var e=tN(iN(t)-1)+1;return(e+1/(e*rN*rN))*(rN/2)}});var nN=Jk;nn({target:"Math",stat:!0,forced:nN!==Math.expm1},{expm1:nN});var oN=4503599627370496,sN=Fk,aN=function(t){return t+oN-oN},lN=Math.abs,uN=function(t,e,i,r){var n=+t,o=lN(n),s=sN(n);if(o<r)return s*aN(o/r/e)*r*e;var a=(1+e/2220446049250313e-31)*o,l=a-(a-o);return l>i||l!=l?s*(1/0):s*l},cN=uN;nn({target:"Math",stat:!0},{fround:Math.fround||function(t){return cN(t,1.1920928955078125e-7,34028234663852886e22,11754943508222875e-54)}});var pN=uN;nn({target:"Math",stat:!0},{f16round:function(t){return pN(t,.0009765625,65504,6103515625e-14)}});var hN=nn,fN=Math.hypot,dN=Math.abs,_N=Math.sqrt;hN({target:"Math",stat:!0,arity:2,forced:!!fN&&fN(1/0,NaN)!==1/0},{hypot:function(t,e){for(var i,r,n=0,o=0,s=arguments.length,a=0;o<s;)a<(i=dN(arguments[o++]))?(n=n*(r=a/i)*r+1,a=i):n+=i>0?(r=i/a)*r:i;return a===1/0?1/0:a*_N(n)}});var yN=nn,gN=s,vN=Math.imul;yN({target:"Math",stat:!0,forced:gN((function(){return-5!==vN(4294967295,5)||2!==vN.length}))},{imul:function(t,e){var i=65535,r=+t,n=+e,o=i&r,s=i&n;return 0|o*s+((i&r>>>16)*s+o*(i&n>>>16)<<16>>>0)}}),nn({target:"Math",stat:!0},{log10:iO}),nn({target:"Math",stat:!0},{log1p:Ck});var mN=Math.log,bN=Math.LN2;nn({target:"Math",stat:!0},{log2:Math.log2||function(t){return mN(t)/bN}}),nn({target:"Math",stat:!0},{sign:Fk});var wN=nn,xN=s,SN=Jk,PN=Math.abs,AN=Math.exp,ON=Math.E;wN({target:"Math",stat:!0,forced:xN((function(){return-2e-17!==Math.sinh(-2e-17)}))},{sinh:function(t){var e=+t;return PN(e)<1?(SN(e)-SN(-e))/2:(AN(e-1)-AN(-e-1))*(ON/2)}});var CN=nn,EN=S,VN=fh,LN=RangeError,TN=TypeError,kN=1/0,NN=Math.abs,MN=Math.pow,jN=EN([].push),RN=MN(2,1023),BN=MN(2,53)-1,DN=Number.MAX_VALUE,IN=MN(2,971),GN={},FN={},zN={},$N={},HN={},WN=function(t,e){var i=t+e;return{hi:i,lo:e-(i-t)}};CN({target:"Math",stat:!0},{sumPrecise:function(t){var e=[],i=0,r=$N;switch(VN(t,(function(t){if(++i>=BN)throw new LN("Maximum allowed index exceeded");if("number"!=typeof t)throw new TN("Value is not a number");r!==GN&&(t!=t?r=GN:t===kN?r=r===FN?GN:zN:t===-1/0?r=r===zN?GN:FN:0===t&&1/t!==kN||r!==$N&&r!==HN||(r=HN,jN(e,t)))})),r){case GN:return NaN;case FN:return-1/0;case zN:return kN;case $N:return-0}for(var n,o,s,a,l,u,c=[],p=0,h=0;h<e.length;h++){n=e[h];for(var f=0,d=0;d<c.length;d++){if(o=c[d],NN(n)<NN(o)&&(u=n,n=o,o=u),a=(s=WN(n,o)).hi,l=s.lo,NN(a)===kN){var _=a===kN?1:-1;p+=_,NN(n=n-_*RN-_*RN)<NN(o)&&(u=n,n=o,o=u),a=(s=WN(n,o)).hi,l=s.lo}0!==l&&(c[f++]=l),n=a}c.length=f,0!==n&&jN(c,n)}var y=c.length-1;if(a=0,l=0,0!==p){var g=y>=0?c[y]:0;if(y--,NN(p)>1||p>0&&g>0||p<0&&g<0)return p>0?kN:-1/0;if(a=(s=WN(p*RN,g/2)).hi,l=s.lo,l*=2,NN(2*a)===kN)return a>0?a===RN&&l===-IN/2&&y>=0&&c[y]<0?DN:kN:a===-RN&&l===IN/2&&y>=0&&c[y]>0?-DN:-1/0;0!==l&&(c[++y]=l,l=0),a*=2}for(;y>=0&&(a=(s=WN(a,c[y--])).hi,0===(l=s.lo)););return y>=0&&(l<0&&c[y]<0||l>0&&c[y]>0)&&(o=2*l)===(n=a+o)-a&&(a=n),a}});var UN,YN,XN,qN,ZN=nn,KN=Jk,JN=Math.exp;ZN({target:"Math",stat:!0},{tanh:function(t){var e=+t,i=KN(e),r=KN(-e);return i===1/0?1:r===1/0?-1:(i-r)/(JN(e)+JN(-e))}}),nn({target:"Math",stat:!0},{trunc:rr}),Zo.Math,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 t&&t||{}),UN=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(),r=0;r<e.length;r++)i.appendChild(t(e[r])?e[r]:document.createTextNode(e[r]+""));return i}}(),Document.prototype.append=Element.prototype.append=function(){this.appendChild(UN(arguments))},function(t,e){var i,r=function(){var t=!0,i=function(e,i,r,n){Object.defineProperty?Object.defineProperty(e,i,{configurable:!1===t||!!n,get:r}):e.__defineGetter__(i,r)};try{i({},"support")}catch(e){t=!1}return function(t,r){var n=this,o=[],s={},a=0,l=0,u=function(t){i(n,t,(function(){return p(),o[t]}),!1)},c=function(){if(a>=l)for(;l<a;++l)u(l)},p=function(){var e,i,n=arguments,l=/\s+/;if(n.length)for(i=0;i<n.length;++i)if(l.test(n[i]))throw(e=new SyntaxError('String "'+n[i]+'" contains an invalid character')).code=5,e.name="InvalidCharacterError",e;for(""===(o="object"==typeof t[r]?(""+t[r].baseVal).replace(/^\s+|\s+$/g,"").split(l):(""+t[r]).replace(/^\s+|\s+$/g,"").split(l))[0]&&(o=[]),s={},i=0;i<o.length;++i)s[o[i]]=!0;a=o.length,c()};return p(),i(n,"length",(function(){return p(),a})),n.toLocaleString=n.toString=function(){return p(),o.join(" ")},n.item=function(t){return p(),o[t]},n.contains=function(t){return p(),!!s[t]},n.add=function(){p.apply(n,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[r]?t[r].baseVal=o.join(" "):t[r]=o.join(" "),c())},n.remove=function(){p.apply(n,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[r]?t[r].baseVal=o.join(" "):t[r]=o.join(" "),c()},n.toggle=function(t,i){return p.apply(n,[t]),e!==i?i?(n.add(t),!0):(n.remove(t),!1):s[t]?(n.remove(t),!1):(n.add(t),!0)},n.forEach=Array.prototype.forEach,n}}();"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=r),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 r=!this.contains(t);return this[r?"add":"remove"](t),r}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,r=0;r<i;r++)e.call(this,t[r])}}}(),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,r=0;r<i;r++)e.call(this,t[r])}}}(),function(t){var e=!0,i=function(t,i,r,n){Object.defineProperty?Object.defineProperty(t,i,{configurable:!1===e||!!n,get:r}):t.__defineGetter__(i,r)};try{i({},"support")}catch(t){e=!1}var n=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,c=n.mirror||document.createElement("div"),p=c.childNodes,h=p.length,f=0;f<h;++f)if(p[f]._R===a){u=p[f];break}u||(u=c.appendChild(document.createElement("div"))),t=DOMTokenList.call(u,a,s)}else t=new r(a,s);return i(a,o,(function(){return t})),delete a[l],t}),!0)};n(t.Element,"classList","className"),n(t.HTMLElement,"classList","className"),n(t.HTMLLinkElement,"relList","rel"),n(t.HTMLAnchorElement,"relList","rel"),n(t.HTMLAreaElement,"relList","rel")}(t)}("object"==typeof window&&window||"object"==typeof self&&self||"object"==typeof t&&t||{}),XN={},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 r(i,r,n){var o=new e;return r&&(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==c.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 n(t,e,i,r){return t<0||t>1||i<0||i>1?p:function(n){function o(t,e,i){return 3*t*(1-i)*(1-i)*i+3*e*(1-i)*i*i+i*i*i}if(n<=0){var s=0;return t>0?s=e/t:!e&&i>0&&(s=r/i),s*n}if(n>=1){var a=0;return i<1?a=(r-1)/(i-1):1==i&&t<1&&(a=(e-1)/(t-1)),1+a*(n-1)}for(var l=0,u=1;l<u;){var c=(l+u)/2,p=o(t,i,c);if(Math.abs(n-p)<1e-5)return o(e,r,c);p<n?l=c:u=c}return o(e,r,c)}}function o(t,e){return function(i){if(i>=1)return 1;var r=1/t;return(i+=e*r)-i%r}}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 n.apply(this,e.slice(1).map(Number));var i=m.exec(t);if(i)return o(Number(i[1]),d);var r=b.exec(t);return r?o(Number(r[1]),{start:h,middle:f,end:d}[r[2]]):_[t]||p}function l(t,e,i){if(null==e)return w;var r=i.delay+t+i.endDelay;return e<Math.min(i.delay,r)?x:e>=Math.min(i.delay+t,r)?S:P}var u="backwards|forwards|both|none".split("|"),c="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 h=1,f=.5,d=0,_={ease:n(.25,.1,.25,1),"ease-in":n(.42,0,1,1),"ease-out":n(0,0,.58,1),"ease-in-out":n(.42,0,.58,1),"step-start":o(1,h),"step-middle":o(1,f),"step-end":o(1,d)},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=r,t.numericTimingToObject=function(t){return"number"==typeof t&&(t=isNaN(t)?{duration:0}:{duration:t}),t},t.normalizeTimingInput=function(e,i){return r(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 r=l(t,e,i),n=function(t,e,i,r,n){switch(r){case x:return"backwards"==e||"both"==e?0:null;case P:return i-n;case S:return"forwards"==e||"both"==e?t:null;case w:return null}}(t,i.fill,e,r,i.delay);if(null===n)return null;var o=function(t,e,i,r,n){var o=n;return 0===t?e!==x&&(o+=i):o+=r/t,o}(i.duration,r,i.iterations,n,i.iterationStart),s=function(t,e,i,r,n,o){var s=t===1/0?e%1:t%1;return 0!==s||i!==S||0===r||0===n&&0!==o||(s=1),s}(o,i.iterationStart,r,i.iterations,n,i.duration),a=function(t,e,i,r){return t===S&&e===1/0?1/0:1===i?Math.floor(r)-1:Math.floor(r)}(r,i.iterations,s,o),u=function(t,e,i){var r=t;if("normal"!==t&&"reverse"!==t){var n=e;"alternate-reverse"===t&&(n+=1),r="normal",n!==1/0&&n%2!=0&&(r="reverse")}return"normal"===r?i:1-i}(i.direction,a,s);return i._easingFunction(u)},t.calculatePhase=l,t.normalizeEasing=s,t.parseEasingFunction=a}(YN={}),function(t){function e(t,e){return t in a&&a[t][e]||e}function i(t,i,r){if(!function(t){return"display"===t||0===t.lastIndexOf("animation",0)||0===t.lastIndexOf("transition",0)}(t)){var s=n[t];if(s)for(var a in o.style[t]=i,s){var l=s[a],u=o.style[l];r[l]=e(l,u)}else r[t]=e(t,i)}}function r(t){var e=[];for(var i in t)if(!(i in["easing","offset","composite"])){var r=t[i];Array.isArray(r)||(r=[r]);for(var n,o=r.length,s=0;s<o;s++)(n={}).offset="offset"in t?t.offset:1==o?1:s/(o-1),"easing"in t&&(n.easing=t.easing),"composite"in t&&(n.composite=t.composite),n[i]=r[s],e.push(n)}return e.sort((function(t,e){return t.offset-e.offset})),e}var n={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=r,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=r(e));for(var n=e.map((function(e){var r={};for(var n in e){var o=e[n];if("offset"==n){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"==n){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"==n?t.normalizeEasing(o):""+o;i(n,o,r)}return null==r.offset&&(r.offset=null),null==r.easing&&(r.easing="linear"),r})),o=!0,s=-1/0,a=0;a<n.length;a++){var l=n[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 n=n.filter((function(t){return t.offset>=0&&t.offset<=1})),o||function(){var t=n.length;null==n[t-1].offset&&(n[t-1].offset=1),t>1&&null==n[0].offset&&(n[0].offset=0);for(var e=0,i=n[0].offset,r=1;r<t;r++){var o=n[r].offset;if(null!=o){for(var s=1;s<r-e;s++)n[e+s].offset=i+(o-i)*s/(r-e);e=r,i=o}}}(),n}}(YN),function(t){var e={};t.isDeprecated=function(t,i,r,n){var o=n?"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()+". "+r),e[t]=!0,1))},t.deprecated=function(e,i,r,n){var o=n?"are":"is";if(t.isDeprecated(e,i,r,n))throw new Error(e+" "+o+" no longer supported. "+r)}}(YN),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 r=function(t){for(var e={},i=0;i<t.length;i++)for(var r in t[i])if("offset"!=r&&"easing"!=r&&"composite"!=r){var n={offset:t[i].offset,easing:t[i].easing,value:t[i][r]};e[r]=e[r]||[],e[r].push(n)}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)),n=function(i){var r=[];for(var n in i)for(var o=i[n],s=0;s<o.length-1;s++){var a=s,l=s+1,u=o[a].offset,c=o[l].offset,p=u,h=c;0==s&&(p=-1/0,0==c&&(l=a)),s==o.length-2&&(h=1/0,1==u&&(a=l)),r.push({applyFrom:p,applyTo:h,startOffset:o[a].offset,endOffset:o[l].offset,easingFunction:t.parseEasingFunction(o[a].easing),property:n,interpolation:e.propertyInterpolation(n,o[a].value,o[l].value)})}return r.sort((function(t,e){return t.startOffset-e.startOffset})),r}(r);return function(t,i){if(null!=i)n.filter((function(t){return i>=t.applyFrom&&i<t.applyTo})).forEach((function(r){var n=i-r.startOffset,o=r.endOffset-r.startOffset,s=0==o?0:r.easingFunction(n/o);e.apply(t,r.property,r.interpolation(s))}));else for(var o in r)"offset"!=o&&"easing"!=o&&"composite"!=o&&e.clear(t,o)}}}(YN,XN),function(t,e){function i(t){return t.replace(/-(.)/g,(function(t,e){return e.toUpperCase()}))}function r(t,e,i){n[i]=n[i]||[],n[i].push([t,e])}var n={};e.addPropertiesHandler=function(t,e,n){for(var o=0;o<n.length;o++)r(t,e,i(n[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(r,s,a){var l=r;/-/.test(r)&&!t.isDeprecated("Hyphenated property names","2016-03-22","Use camelCase instead.",!0)&&(l=i(r)),"initial"!=s&&"initial"!=a||("initial"==s&&(s=o[l]),"initial"==a&&(a=o[l]));for(var u=s==a?[]:n[l],c=0;u&&c<u.length;c++){var p=u[c][0](s),h=u[c][0](a);if(void 0!==p&&void 0!==h){var f=u[c][1](p,h);if(f){var d=e.Interpolation.apply(null,f);return function(t){return 0==t?s:1==t?a:d(t)}}}}return e.Interpolation(!1,!0,(function(t){return t?a:s}))}}(YN,XN),function(t,e){e.KeyframeEffect=function(i,r,n,o){var s,a=function(e){var i=t.calculateActiveDuration(e),r=function(r){return t.calculateIterationProgress(i,r,e)};return r._totalDuration=e.delay+i+e.endDelay,r}(t.normalizeTimingInput(n)),l=e.convertEffectInput(r),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}}(YN,XN),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"))&&(n in t||(t[n]=/Trident|MSIE|IEMobile|Edge|Android 4/i.test(t.navigator.userAgent)),t[n])}(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 r(t){if(!t._webAnimationsPatchedStyle){var r=new i(t);try{e(t,"style",{get:function(){return r}})}catch(r){t.style._set=function(e,i){t.style[e]=i},t.style._clear=function(e){t.style[e]=""}}t._webAnimationsPatchedStyle=t.style}}var n="_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 r in e)this._isAnimatedProperty[r]||this._style.setProperty(r,this._surrogateStyle.getPropertyValue(r))},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,n){r(e),e.style._set(t.propertyName(i),n)},t.clear=function(e,i){e._webAnimationsPatchedStyle&&e.style._clear(t.propertyName(i))}}(XN),function(t){window.Element.prototype.animate=function(e,i){var r="";return i&&i.id&&(r=i.id),t.timeline._play(t.KeyframeEffect(this,e,i,r))}}(XN),function(t){function e(t,i,r){if("number"==typeof t&&"number"==typeof i)return t*(1-r)+i*r;if("boolean"==typeof t&&"boolean"==typeof i)return r<.5?t:i;if(t.length==i.length){for(var n=[],o=0;o<t.length;o++)n.push(e(t[o],i[o],r));return n}throw"Mismatched interpolation arguments "+t+":"+i}t.Interpolation=function(t,i,r){return function(n){return r(e(t,i,n))}}}(XN),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]],r=0;r<4;r++)for(var n=0;n<4;n++)for(var o=0;o<4;o++)i[r][n]+=e[r][o]*t[o][n];return i}return function(e,i,r,n,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=n[0],c=n[1],p=n[2],h=n[3],f=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]];f[0][0]=1-2*(c*c+p*p),f[0][1]=2*(u*c-p*h),f[0][2]=2*(u*p+c*h),f[1][0]=2*(u*c+p*h),f[1][1]=1-2*(u*u+p*p),f[1][2]=2*(c*p-u*h),f[2][0]=2*(u*p-c*h),f[2][1]=2*(c*p+u*h),f[2][2]=1-2*(u*u+c*c),s=t(s,f);var d=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]];for(r[2]&&(d[2][1]=r[2],s=t(s,d)),r[1]&&(d[2][1]=0,d[2][0]=r[0],s=t(s,d)),r[0]&&(d[2][0]=0,d[1][0]=r[0],s=t(s,d)),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,r){var n=t.dot(e,i);n=function(t,e,i){return Math.max(Math.min(t,i),e)}(n,-1,1);var o=[];if(1===n)o=e;else for(var s=Math.acos(n),a=1*Math.sin(r*s)/Math.sqrt(1-n*n),l=0;l<4;l++)o.push(e[l]*(Math.cos(r*s)-n*a)+i[l]*a);return o}}(XN),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),r=this._finishHandlers.concat(this.onfinish?[this.onfinish]:[]);setTimeout((function(){r.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)}}}(YN,XN),function(t,e){function i(t){var e=l;l=[],t<d.currentTime&&(t=d.currentTime),d._animations.sort(r),d._animations=s(t,!0,d._animations)[0],e.forEach((function(e){e[1](t)})),o()}function r(t,e){return t._sequenceNumber-e._sequenceNumber}function n(){this._animations=[],this.currentTime=window.performance&&performance.now?performance.now():0}function o(){h.forEach((function(t){t()})),h.length=0}function s(t,i,r){f=!0,p=!1,e.timeline.currentTime=t,c=!1;var n=[],o=[],s=[],a=[];return r.forEach((function(e){e._tick(t,i),e._inEffect?(o.push(e._effect),e._markTarget()):(n.push(e._effect),e._unmarkTarget()),e._needsTick&&(c=!0);var r=e._inEffect||e._needsTick;e._inTimeline=r,r?s.push(e):a.push(e)})),h.push.apply(h,n),h.push.apply(h,o),c&&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(){})}))},n.prototype={_play:function(i){i._timing=t.normalizeTimingInput(i.timing);var r=new e.Animation(i);return r._idle=!1,r._timeline=this,this._animations.push(r),e.restart(),e.applyDirtiedAnimation(r),r}};var c=!1,p=!1;e.restart=function(){return c||(c=!0,requestAnimationFrame((function(){})),p=!0),p},e.applyDirtiedAnimation=function(t){if(!f){t._markTarget();var i=t._targetAnimations();i.sort(r),s(e.timeline.currentTime,!1,i.slice())[1].forEach((function(t){var e=d._animations.indexOf(t);-1!==e&&d._animations.splice(e,1)})),o()}};var h=[],f=!1,d=new n;e.timeline=d}(YN,XN),function(t){function e(t,e){for(var i=0,r=0;r<t.length;r++)i+=t[r]*e[r];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 r(t){var e=t.rad||0;return((t.deg||0)/360+(t.grad||0)/400+(t.turn||0))*(2*Math.PI)+e}function n(t){switch(t.t){case"rotatex":var e=r(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=r(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=r(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],n=t.d[1],o=t.d[2],s=(e=r(t.d[3]),i*i+n*n+o*o);if(0===s)i=1,n=0,o=0;else if(1!==s){var a=Math.sqrt(s);i/=a,n/=a,o/=a}var l=Math.sin(e/2),u=l*Math.cos(e/2),c=l*l;return[1-2*(n*n+o*o)*c,2*(i*n*c+o*u),2*(i*o*c-n*u),0,2*(i*n*c-o*u),1-2*(i*i+o*o)*c,2*(n*o*c+i*u),0,2*(i*o*c+n*u),2*(n*o*c-i*u),1-2*(i*i+n*n)*c,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=r(t.d[0]),h=r(t.d[1]);return[1,Math.tan(h),0,0,Math.tan(p),1,0,0,0,0,1,0,0,0,0,1];case"skewx":return e=r(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=r(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,n=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,n=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,n=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(n).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=r(t);return[t[0]/e,t[1]/e,t[2]/e]}function r(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1]+t[2]*t[2])}function n(t,e,i,r){return[i*t[0]+r*e[0],i*t[1]+r*e[1],i*t[2]+r*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,c=[];s[0][3]||s[1][3]||s[2][3]?(c.push(s[0][3]),c.push(s[1][3]),c.push(s[2][3]),c.push(s[3][3]),u=function(t,e){for(var i=[],r=0;r<4;r++){for(var n=0,o=0;o<4;o++)n+=t[o]*e[o][r];i.push(n)}return i}(c,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),r=e[0][0],n=e[0][1],o=e[0][2],s=e[1][0],a=e[1][1],l=e[1][2],u=e[2][0],c=e[2][1],p=e[2][2],h=[[(a*p-l*c)*i,(o*c-n*p)*i,(n*l-o*a)*i,0],[(l*u-s*p)*i,(r*p-o*u)*i,(o*s-r*l)*i,0],[(s*c-a*u)*i,(u*n-r*c)*i,(r*a-n*s)*i,0]],f=[],d=0;d<3;d++){for(var _=0,y=0;y<3;y++)_+=e[3][y]*h[y][d];f.push(_)}return f.push(1),h.push(f),h}(a)))):u=[0,0,0,1];var p=s[3].slice(0,3),h=[];h.push(s[0].slice(0,3));var f=[];f.push(r(h[0])),h[0]=i(h[0]);var d=[];h.push(s[1].slice(0,3)),d.push(e(h[0],h[1])),h[1]=n(h[1],h[0],1,-d[0]),f.push(r(h[1])),h[1]=i(h[1]),d[0]/=f[1],h.push(s[2].slice(0,3)),d.push(e(h[0],h[2])),h[2]=n(h[2],h[0],1,-d[1]),d.push(e(h[1],h[2])),h[2]=n(h[2],h[1],1,-d[2]),f.push(r(h[2])),h[2]=i(h[2]),d[1]/=f[2],d[2]/=f[2];var _=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]]}(h[1],h[2]);if(e(h[0],_)<0)for(l=0;l<3;l++)f[l]*=-1,h[l][0]*=-1,h[l][1]*=-1,h[l][2]*=-1;var y,g,v=h[0][0]+h[1][1]+h[2][2]+1;return v>1e-4?(y=.5/Math.sqrt(v),g=[(h[2][1]-h[1][2])*y,(h[0][2]-h[2][0])*y,(h[1][0]-h[0][1])*y,.25/y]):h[0][0]>h[1][1]&&h[0][0]>h[2][2]?g=[.25*(y=2*Math.sqrt(1+h[0][0]-h[1][1]-h[2][2])),(h[0][1]+h[1][0])/y,(h[0][2]+h[2][0])/y,(h[2][1]-h[1][2])/y]:h[1][1]>h[2][2]?(y=2*Math.sqrt(1+h[1][1]-h[0][0]-h[2][2]),g=[(h[0][1]+h[1][0])/y,.25*y,(h[1][2]+h[2][1])/y,(h[0][2]-h[2][0])/y]):(y=2*Math.sqrt(1+h[2][2]-h[0][0]-h[1][1]),g=[(h[0][2]+h[2][0])/y,(h[1][2]+h[2][1])/y,.25*y,(h[1][0]-h[0][1])/y]),[p,f,d,g,u]}}();t.dot=e,t.makeMatrixDecomposition=function(t){return[s(o(t))]},t.transformListToMatrix=o}(XN),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 r(t,e,i,r,n){for(var o=[],s=[],a=[],l=function(t,e){for(var i=t,r=e;i&&r;)i>r?i%=r:r%=i;return t*e/(i+r)}(r.length,n.length),u=0;u<l;u++){var c=e(r[u%r.length],n[u%n.length]);if(!c)return;o.push(c[0]),s.push(c[1]),a.push(c[2])}return[o,s,function(e){var r=e.map((function(t,e){return a[e](t)})).join(i);return t?t(r):r}]}t.consumeToken=e,t.consumeTrimmed=i,t.consumeRepeated=function(t,r,n){t=i.bind(null,t);for(var o=[];;){var s=t(n);if(!s)return[o,n];if(o.push(s[0]),!(s=e(r,n=s[1]))||""==s[1])return[o,n];n=s[1]}},t.consumeParenthesised=function(t,e){for(var i=0,r=0;r<e.length&&(!/\s|,/.test(e[r])||0!=i);r++)if("("==e[r])i++;else if(")"==e[r]&&(0==--i&&r++,i<=0))break;var n=t(e.substr(0,r));return null==n?void 0:[n,e.substr(r)]},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 r=[],n=0;n<e.length;n++){var o=t.consumeTrimmed(e[n],i);if(!o||""==o[0])return;void 0!==o[0]&&r.push(o[0]),i=o[1]}if(""==i)return r},t.mergeNestedRepeated=r.bind(null,null),t.mergeWrappedNestedRepeated=r,t.mergeList=function(t,e,i){for(var r=[],n=[],o=[],s=0,a=0;a<i.length;a++)if("function"==typeof i[a]){var l=i[a](t[s],e[s++]);r.push(l[0]),n.push(l[1]),o.push(l[2])}else!function(t){r.push(!1),n.push(!1),o.push((function(){return i[t]}))}(a);return[r,n,function(t){for(var e="",i=0;i<t.length;i++)e+=o[i](t[i]);return e}]}}(XN),function(t){function e(e){var i={inset:!1,lengths:[],color:null},r=t.consumeRepeated((function(e){var r=t.consumeToken(/^inset/i,e);return r?(i.inset=!0,r):(r=t.consumeLengthOrPercent(e))?(i.lengths.push(r[0]),r):(r=t.consumeColor(e))?(i.color=r[0],r):void 0}),/^/,e);if(r&&r[0].length)return[i,r[1]]}var i=function(e,i,r,n){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<r.length||l<n.length;l++){var u=r[l]||o(n[l].inset),c=n[l]||o(r[l].inset);s.push(u),a.push(c)}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 r,n=[],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]),n.push(l[2])}if(e.color&&i.color){var u=t.mergeColors(e.color,i.color);o[1]=u[0],s[1]=u[1],r=u[2]}return[o,s,function(t){for(var i=e.inset?"inset ":" ",o=0;o<n.length;o++)i+=n[o](t[0][o])+" ";return r&&(i+=r(t[1])),i}]}}),", ");t.addPropertiesHandler((function(i){var r=t.consumeRepeated(e,/^,/,i);if(r&&""==r[1])return r[0]}),i,["box-shadow","text-shadow"])}(XN),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 r(t){if(/^\s*[-+]?(\d*\.)?\d+\s*$/.test(t))return Number(t)}function n(t,r){return function(n,o){return[n,o,function(n){return e(i(t,r,n))}]}}function o(t){var e=t.trim().split(/\s*[\s,]\s*/);if(0!==e.length){for(var i=[],n=0;n<e.length;n++){var o=r(e[n]);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(r,n(0,1/0),["border-image-width","line-height"]),t.addPropertiesHandler(r,n(0,1),["opacity","shape-image-threshold"]),t.addPropertiesHandler(r,(function(t,e){if(0!=t)return n(0,1/0)(t,e)}),["flex-grow","flex-shrink"]),t.addPropertiesHandler(r,(function(t,e){return[t,e,function(t){return Math.round(i(1,1/0,t))}]}),["orphans","widows"]),t.addPropertiesHandler(r,(function(t,e){return[t,e,Math.round]}),["z-index"]),t.parseNumber=r,t.parseNumberList=o,t.mergeNumbers=function(t,i){return[t,i,e]},t.numberToString=e}(XN),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"])}(XN),function(t){function e(t){t=t.trim(),n.fillStyle="#000",n.fillStyle=t;var e=n.fillStyle;if(n.fillStyle="#fff",n.fillStyle=t,e==n.fillStyle){n.fillRect(0,0,1,1);var i=n.getImageData(0,0,1,1).data;n.clearRect(0,0,1,1);var r=i[3]/255;return[i[0]*r,i[1]*r,i[2]*r,r]}}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 r=document.createElementNS("http://www.w3.org/1999/xhtml","canvas");r.width=r.height=1;var n=r.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}(XN),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=n();return")"!==o?NaN:(e(),t)}function r(){for(var t=i();"*"===o||"/"===o;){var r=o;e();var n=i();"*"===r?t*=n:t/=n}return t}function n(){for(var t=r();"+"===o||"-"===o;){var i=o;e();var n=r();"+"===i?t+=n:t-=n}return t}var o,s=/([\+\-\w\.]+|[\(\)\*\/])/g;return e(),n()}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 r={};i=i.replace(t,(function(t){return r[t]=null,"U"+t}));for(var n="U("+t.source+")",o=i.replace(/[-+]?(\d*\.)?\d+([Ee][-+]?\d+)?/g,"N").replace(new RegExp("N"+n,"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 r){var u=e(i.replace(new RegExp("U"+l,"g"),"").replace(new RegExp(n,"g"),"*0"));if(!isFinite(u))return;r[l]=u}return r}}}function r(t,e){return n(t,e,!0)}function n(e,i,r){var n,o=[];for(n in e)o.push(n);for(n in i)o.indexOf(n)<0&&o.push(n);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,n){return 1==e.length&&r&&(i=Math.max(i,0)),t.numberToString(i)+o[n]})).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=n;var u=t.consumeParenthesised.bind(null,s),c=t.consumeRepeated.bind(void 0,u,/^/),p=t.consumeRepeated.bind(void 0,c,/^,/);t.consumeSizePairList=p;var h=t.mergeNestedRepeated.bind(void 0,r," "),f=t.mergeNestedRepeated.bind(void 0,h,",");t.mergeNonNegativeSizePair=h,t.addPropertiesHandler((function(t){var e=p(t);if(e&&""==e[1])return e[0]}),f,["background-size"]),t.addPropertiesHandler(a,r,["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,n,["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"])}(XN),function(t){function e(e){return t.consumeLengthOrPercent(e)||t.consumeToken(/^auto/,e)}function i(i){var r=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(r&&4==r[0].length)return r[0]}var r=t.mergeWrappedNestedRepeated.bind(null,(function(t){return"rect("+t+")"}),(function(e,i){return"auto"==e||"auto"==i?[!0,!1,function(r){var n=r?e:i;if("auto"==n)return"auto";var o=t.mergeDimensions(n,n);return o[2](o[0])}]:t.mergeDimensions(e,i)}),", ");t.parseBox=i,t.mergeBoxes=r,t.addPropertiesHandler(i,r,["clip"])}(XN),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 r(e){if("none"==(e=e.toLowerCase().trim()))return[];for(var i,r=/\s*(\w+)\(([^)]*)\)/g,n=[],o=0;i=r.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(","),h=a[0];if(h.length<l.length)return;for(var f=[],d=0;d<h.length;d++){var _,y=l[d],g=h[d];if(void 0===(_=y?{A:function(e){return"0"==e.trim()?c:t.parseAngle(e)},N:t.parseNumber,T:t.parseLengthOrPercent,L:t.parseLength}[g.toUpperCase()](y):{a:c,n:f[0],t:u}[g]))return;f.push(_)}if(n.push({t:s,d:f}),r.lastIndex==e.length)return n}}function n(t){return t.toFixed(6).replace(".000000","")}function o(e,i){if(e.decompositionPair!==i){e.decompositionPair=i;var r=t.makeMatrixDecomposition(e)}if(i.decompositionPair!==e){i.decompositionPair=e;var o=t.makeMatrixDecomposition(i)}return null==r[0]||null==o[0]?[[!1],[!0],function(t){return t?i[0].d:e[0].d}]:(r[0].push(0),o[0].push(1),[r,o,function(e){var i=t.quat(r[0][3],o[0][3],e[5]);return t.composeMatrix(e[0],e[1],e[2],i,e[4]).map(n).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},c={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,c])],skewy:["A",null,e([c,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(r,(function(e,i){var r=t.makeMatrixDecomposition&&!0,n=!1;if(!e.length||!i.length){e.length||(n=!0,e=i,i=[]);for(var l=0;l<e.length;l++){var u=e[l].t,c=e[l].d,h="scale"==u.substr(0,5)?1:0;i.push({t:u,d:c.map((function(t){if("number"==typeof t)return h;var e={};for(var i in t)e[i]=h;return e}))})}}var f=[],d=[],_=[];if(e.length!=i.length){if(!r)return;f=[(x=o(e,i))[0]],d=[x[1]],_=[["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(!r)return;var x=o([e[l]],[i[l]]);f.push(x[0]),d.push(x[1]),_.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(!r)return;f=[(x=o(e,i))[0]],d=[x[1]],_=[["matrix",[x[2]]]];break}u=a(y),v=b[1](v),m=w[1](m)}for(var S=[],P=[],A=[],O=0;O<v.length;O++)x=("number"==typeof v[O]?t.mergeNumbers:t.mergeDimensions)(v[O],m[O]),S[O]=x[0],P[O]=x[1],A.push(x[2]);f.push(S),d.push(P),_.push([u,A])}}if(n){var C=f;f=d,d=C}return[f,d,function(t){return t.map((function(t,e){var i=t.map((function(t,i){return _[e][1][i](t)})).join(",");return"matrix"==_[e][0]&&16==i.split(",").length&&(_[e][0]="matrix3d"),_[e][0]+"("+i+")"})).join(" ")}]}),["transform"]),t.transformToSvgMatrix=function(e){var i=t.transformListToMatrix(r(e));return"matrix("+n(i[0])+" "+n(i[1])+" "+n(i[4])+" "+n(i[5])+" "+n(i[12])+" "+n(i[13])+")"}}(XN),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"])}(XN),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 r(e,r){var n=t.consumeRepeated(i,/^/,r);if(n&&""==n[1]){var s=n[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 n(r){var n=t.consumeRepeated(i,/^/,r);if(n){for(var s=n[0],a=[{"%":50},{"%":50}],l=0,u=!1,c=0;c<s.length;c++){var p=s[c];"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,n[1]]}}var o={left:{"%":0},center:{"%":50},right:{"%":100},top:{"%":0},bottom:{"%":100}},s=t.mergeNestedRepeated.bind(null,t.mergeDimensions," ");t.addPropertiesHandler(r.bind(null,3),s,["transform-origin"]),t.addPropertiesHandler(r.bind(null,2),s,["perspective-origin"]),t.consumePosition=n,t.mergeOffsetList=s;var a=t.mergeNestedRepeated.bind(null,s,", ");t.addPropertiesHandler((function(e){var i=t.consumeRepeated(n,/^,/,e);if(i&&""==i[1])return i[0]}),a,["background-position","object-position"])}(XN),function(t){var e=t.consumeParenthesised.bind(null,t.parseLengthOrPercent),i=t.consumeRepeated.bind(void 0,e,/^/),r=t.mergeNestedRepeated.bind(void 0,t.mergeDimensions," "),n=t.mergeNestedRepeated.bind(void 0,r,",");t.addPropertiesHandler((function(r){var n=t.consumeToken(/^circle/,r);if(n&&n[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,/^\)/))],n[1]));var o=t.consumeToken(/^ellipse/,r);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/,r);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],n,")"]):void 0}),["shape-outside"])}(XN),function(t){function e(t,e){e.concat([t]).forEach((function(e){e in document.documentElement.style&&(i[t]=e),r[e]=t}))}var i={},r={};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 r[t]||t}}(XN)}(),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(r,n){var o=i.call(this,r,n);o._cancelHandlers=[],o.oncancel=null;var s=o.cancel;o.cancel=function(){s.call(this);var i=new e(this,null,t()),r=this._cancelHandlers.concat(this.oncancel?[this.oncancel]:[]);setTimeout((function(){r.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,r=!1;try{var n="0"==getComputedStyle(e).getPropertyValue("opacity")?"1":"0";(i=e.animate({opacity:[n,n]},{duration:1})).currentTime=0,r=getComputedStyle(e).getPropertyValue("opacity")==n}catch(t){}finally{i&&i.cancel()}if(!r){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)}}}(YN),Object.defineProperty(window.SVGElement.prototype,"parentElement",{get:function(){return this.parentNode}}),Element.prototype._getBoundingClientRect=Element.prototype.getBoundingClientRect,Element.prototype.getBoundingClientRect=function(){var 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,r=e.parentNode,n=t(i),o=n[0],s=n[1],a=t(r),l=a[0],u=a[1],c={x:0,y:0,width:0,height:0};e.viewportElement&&e.textContent.trim()&&(c=e.getExtentOfChar(0))}catch(t){console.error(t.message),console.log(e.textContent,e.textContent.trim().length,{tspanElement:e})}finally{return{x:o+l+c.x,y:s+u+c.y,width:c.width,height:c.height}}}(this):this.getBoundingClientRect()}}(),qN=CanvasRenderingContext2D.prototype.measureText,CanvasRenderingContext2D.prototype.measureText=function(t){var e=qN.call(this,t);if(void 0!==e.actualBoundingBoxAscent)return e;var i=this.font||"10px sans-serif",r=parseFloat(i);isNaN(r)&&(r=10);var n=.75*r,o=.25*r,s=.8*r;return e.actualBoundingBoxAscent=n,e.actualBoundingBoxDescent=o,e.fontBoundingBoxAscent=s,e};var QN={},tM={},eM={},iM={};!function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.RcDebug=t.getCallback=t.checkEnum=t.enumValues=t.incv=t.copyObj=t.pickProp4=t.pickProp3=t.pickProp=t.pickNum3=t.pickNum=t.distance=t.absv=t.maxv=t.minv=t.log10=t.pow10=t.sin=t.cos=t.round=t.ceil=t.floor=t.assignObj=t.isNone=t.isBoolean=t.isNumber=t.isStringL=t.isString=t.isFunc=t.isArrayEx=t.isArray=t.isObject=t.hasOwnProperty=t.SVGNS=void 0,t.SVGNS="http://www.w3.org/2000/svg",t.hasOwnProperty=Object.prototype.hasOwnProperty;t.isObject=function(t){return t&&"object"==typeof t&&!Array.isArray(t)},t.isArray=Array.isArray;t.isArrayEx=function(t,e){return Array.isArray(t)&&t.length>=e};t.isFunc=function(t){return"function"==typeof t};t.isString=function(t){return"string"==typeof t};t.isStringL=function(t){return"string"==typeof t&&t.length>0};t.isNumber=function(t){return"number"==typeof t};t.isBoolean=function(t){return"boolean"==typeof t};t.isNone=function(t){return null==t||isNaN(t)},t.assignObj=Object.assign,t.floor=Math.floor,t.ceil=Math.ceil,t.round=Math.round,t.cos=Math.cos,t.sin=Math.sin;t.pow10=function(t){return Math.pow(10,t)},t.log10=Math.log10,t.minv=Math.min,t.maxv=Math.max,t.absv=Math.abs;t.distance=function(t,e,i,r){return Math.sqrt(Math.pow(t-i,2)+Math.pow(e-r,2))};t.pickNum=function(t,e){return t=parseFloat(t),isNaN(t)?parseFloat(e):t};t.pickNum3=function(t,e,i){var r=parseFloat(t);return isNaN(r)?(r=parseFloat(e),isNaN(r)?parseFloat(i):r):r};t.pickProp=function(t,e){return void 0!==t?t:e};t.pickProp3=function(t,e,i){return void 0!==t?t:void 0!==e?e:i};t.pickProp4=function(t,e,i,r){return void 0!==t?t:void 0!==e?e:null!=i?i:r};t.copyObj=function(e){return e&&(0,t.assignObj)({},e)};t.incv=function(t,e,i){return t+(e-t)*i};t.enumValues=function(t){return Object.keys(t).map((function(e){return t[e]}))};t.checkEnum=function(t,e,i){for(var r=Object.keys(t),n=r.length-1;n>=0;n--)if(t[r[n]]===e)return e;return i};t.getCallback=function(t){return"function"==typeof t?t:null};var e=function(){function t(){}return t.debug=function(){this._debugging},t._debugging=!1,t}();t.RcDebug=e}(iM);var rM={},nM=t&&t.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s},oM=t&&t.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))},sM=t&&t.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,i=e&&t[e],r=0;if(i)return i.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(rM,"__esModule",{value:!0}),rM.Utils=rM.isIE=void 0;var aM=iM,lM=(new Date).getTime();"undefined"==typeof window||Element.prototype.animate||(Element.prototype.animate=function(t){}),rM.isIE="undefined"!=typeof window&&"undefined"!=typeof document&&!!document.documentMode&&!!window.MSInputMethodContext;var uM=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,oM([],nM(t),!1))},t.warn=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.LOGGING&&console.warn.apply(console,oM([],nM(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(),r=e.getDate(),n=[0,31,59,90,120,151,181,212,243,273,304,334][i]+r;return i>1&&t.isLeapYear(e.getFullYear())&&n++,n},t.incMonth=function(e,i){var r=e.getDate();return e.setDate(1),e.setMonth(e.getMonth()+i),e.setDate((0,aM.minv)(r,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 r=t.getMonth(),n=t.getFullYear(),o=new Date(n,r,1).getDay(),s=new Date(n,r+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(),r=new Date(i,0,1).getDay(),n=this.dateOfYear(t)+r-1;return e+Math.floor(n/7)},t.isObject=function(t){return t&&"object"==typeof t&&!(0,aM.isArray)(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&&!(0,aM.isArray)(t))return(0,aM.assignObj)({},t)},t.checkArray=function(t){return(0,aM.isArray)(t)?t:void 0},t.makeArray=function(t,e){return void 0===e&&(e=!1),null!=t?(0,aM.isArray)(t)?t:[t]:e?[]:void 0},t.makeNumArray=function(t){return(0,aM.isArray)(t)?t.map((function(t){return+t})):null!=t?[+t]:[]},t.getIntArray=function(t,e){void 0===e&&(e=0);for(var i=[],r=e,n=e+t;r<n;r++)i.push(r);return i},t.isValueArray=function(t){if((0,aM.isArray)(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(0,aM.isArray)(t)?t:null!=t?[t]:null},t.copyArray=function(t){return(0,aM.isArray)(t)?t.slice(0):null!=t?[t]:void 0},t.push=function(t,e){if(e&&e.length>0)for(var i=0,r=e.length;i<r;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()-lM},t.isWhiteSpace=function(t){return!t||!t.trim()},t.pad=function(t,e,i){return e=(0,aM.maxv)(e||2,1),i=i||"0",new Array(e-String(t).length+1).join(i)+t},t.pad16=function(t,e,i){return e=(0,aM.maxv)(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,r=t.length,n=0;n<r;n++)if(null!=(i=t[n]))return i},t.toStr=function(t){return Number.isNaN(t)||null==t?"":String(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 r=0;r<i;++r)if(t[r]!==e[r])return!1;return!0},t.parseTuples=function(t){if((0,aM.isArray)(t)){var e=[],i=-1/0;return t.forEach((function(r,n){(0,aM.isArray)(r)?!isNaN(r[0])&&!isNaN(r[1])&&r[0]>i&&(e.push([+r[0],+r[1]]),i=r[0]):isNaN(r)||n!==t.length-1||e.push([1/0,+r])})),e.length>0?e:void 0}if(!isNaN(t))return[[1/0,+t]]},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,r;if(e instanceof Date)return new Date(e);if(null==e||"object"!=typeof e)return e;var n=(0,aM.isArray)(e)?[]:{};try{for(var o=sM(Object.keys(e)),s=o.next();!s.done;s=o.next()){var a=s.value;n[a]=t.deepClone(e[a])}}catch(t){i={error:t}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return n},t.getArray=function(t,e){for(var i=[],r=0;r<t;r++)i.push(e);return i},t.getNumArray=function(t,e){void 0===e&&(e=0);for(var i=[],r=0;r<t;r++)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 r=+new Date;i(),t.log(e,+new Date-r+"ms")},t.clamp=function(t,e,i){return(0,aM.maxv)(e,(0,aM.minv)(i,t))},t.makeIntArray=function(t,e){for(var i=new Array((0,aM.maxv)(0,e-t)),r=t;r<e;r++)i[r-t]=r;return i},t.shuffle=function(t){for(var e=t.length;e;){var i=Math.floor(Math.random()*e),r=t[--e];t[e]=t[i],t[i]=r}return t},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 r=(0,aM.absv)(t);if(r>=1e3)for(var n=e.length;n>0;){var o=Math.pow(1e3,n--);if(o<=Math.pow(10,Math.log(r)*Math.LOG10E)&&(i||10*r%o==0))return{value:t/o,symbol:e[n]}}},t.jitter=function(t,e){return t+(2*Math.random()-1)*e},t.randomLike=function(t){return(2654435761*(123456789^t)>>>16)/65536},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}();rM.Utils=uM;var cM={},pM={};!function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.$_registerLocale=t.$_setLocale=t.locale=t.Locales=void 0;var e=iM;t.Locales={},t.Locales.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"},t.Locales.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"};var i="ko";t.locale=t.Locales[i]||t.Locales[i="ko"];t.$_setLocale=function(e){return e&&(t.locale=t.Locales[i=e.substring(0,2)]),t.locale||(t.locale=t.Locales[i="ko"])};t.$_registerLocale=function(i,r){i&&(0,e.isObject)(r)&&(t.locale=t.Locales[i.substring(0,2)]=Object.assign(t.Locales.ko,t.Locales.en,r))}}(pM);var hM,fM={},dM=t&&t.__extends||(hM=function(t,e){return hM=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])},hM(t,e)},function(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}hM(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),_M=t&&t.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s},yM=t&&t.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))},gM=t&&t.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,i=e&&t[e],r=0;if(i)return i.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(fM,"__esModule",{value:!0}),fM.EventProvider=fM.RcObject=void 0;var vM=0,mM=function(){function t(t){this.$_destroyed=!1,this.$_destroying=!1,t||(this.$_hash=String(vM++))}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}();fM.RcObject=mM;var bM=function(t){function e(){var e=t.apply(this,yM([],_M(arguments),!1))||this;return e._listeners=[],e}return dM(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,r=Array.prototype.slice.call(arguments,0);r[0]=this;try{for(var n=gM(this._listeners),o=n.next();!o.done;o=n.next()){var s=o.value,a=s[t];if(a){var l=a.apply(s,r);if(void 0!==l)return l}}}catch(t){e={error:t}}finally{try{o&&!o.done&&(i=n.return)&&i.call(n)}finally{if(e)throw e.error}}},e}(mM);fM.EventProvider=bM;var wM={};!function(e){var i=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0}),e._TextOrientation=e._WritingMode=e._SeriesLoadAnimation=e._PaletteMode=e._TextOverflow=e.buildValueRanges=e._AlignBase=e.throwFormat2=e.throwFormat=e.throwError=e.formatMessage2=e.formatMessage=e.ZERO_SIDES=e.AlertError=e.checkNull=e.assert=e.AssertionError=e.RtAbortError=e.getCssProp=e.CAMEL2KEBAB=e.STROKE=e.FILL=e._ChartTextOverflow=e._ChartTextEffect=e._VerticalAlign=e._Align=e.sizeToCssEx=e.sizeToCss=e.NUMBER_FORMAT=e.NUMBER_SYMBOLS=e.RAD_DEG=e.DEG_RAD=e.ORG_ANGLE=e.PI_2=e.PI=e.ELLIPSIS=e.ZWSP=e.ONE_CHAR=e._undef=void 0,e.fixAngle=function(t){return t>e.PI_2?t%e.PI_2:t},e.fixnum=function(t){return parseFloat(t.toPrecision(12))},e.fixpos=function(t){return Math.floor(1e6*t)/1e6},e.toStr=function(t){return null==t?null:String(t)},e.pixel=function(t){return t+"px"},e.isNull=function(t){return null==t||Number.isNaN(t)||""===t},e.pad2=function(t){return t<10?"0"+t:String(t)},e.pad3=function(t){return t<10?"00"+t:t<100?"0"+t:String(t)},e.newObject=function(t,e){var i={};return i[t]=e,i},e.utc=function(t,e,i,r,n,o,s){void 0===e&&(e=0);void 0===i&&(i=1);void 0===r&&(r=0);void 0===n&&(n=0);void 0===o&&(o=0);void 0===s&&(s=0);return new Date(Date.UTC(t,e,i,r,n,o,s))},e.isValidPercentSize=function(t){return!isNaN(t)||!("string"!=typeof t||!t.trimEnd().endsWith("%")||isNaN(parseFloat(t)))},e.parsePercentSize=s,e.parsePercentSize2=function(t,e){return s(t,!0)||s(e,!1)},e.getPercent=function(t){return t&&!t.fixed?t.size:NaN},e.calcPercent=function(t,e,i){void 0===i&&(i=NaN);return t?t.fixed?t.size:t.size*e/100:i},e.calcPercentF=function(t,e){return t.fixed?t.size:t.size*e/100};var r=iM,n=pM;e._undef=void 0,e.ONE_CHAR="①".charCodeAt(0),e.ZWSP="",e.ELLIPSIS="…",e.PI=Math.PI,e.PI_2=2*e.PI,e.ORG_ANGLE=-e.PI/2,e.DEG_RAD=2*e.PI/360,e.RAD_DEG=360/e.PI/2,e.NUMBER_SYMBOLS="k,M,G,T,P,E",e.NUMBER_FORMAT="#,##0.#";var o="%".charCodeAt(0);e.sizeToCss=function(t){return t.fixed?t.size+"px":t.size+"%"};function s(t,i,r){var s,a=!1;if(null==t){if(i)return null;s=r||0,a=!0}else if("string"==typeof t){var l=t.trim();if(0===l.length?s=NaN:l.charCodeAt(l.length-1)===o?s=1===l.length?NaN:parseFloat(l):(s=parseFloat(l),a=!0),isNaN(s)){if(i)return null;(0,e.throwFormat)(n.locale.invalidSizeValue,t)}}else if(s=+t,isNaN(s)){if(i)return null;s=r||0,a=!0}else a=!0;return{size:s,fixed:a}}e.sizeToCssEx=function(t){return t?t.fixed?t.size+"px":t.size+"%":""},e._Align={LEFT:"left",CENTER:"center",RIGHT:"right"},e._VerticalAlign={TOP:"top",MIDDLE:"middle",BOTTOM:"bottom"},e._ChartTextEffect={NONE:"none",OUTLINE:"outline",BACKGROUND:"background"},e._ChartTextOverflow={CLIP:"clip",ELLIPSIS:"ellipsis",WRAP:"wrap"},e.FILL="fill",e.STROKE="stroke",e.CAMEL2KEBAB={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"};e.getCssProp=function(t){var i=e.CAMEL2KEBAB[t];if(!i){var r=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();return e.CAMEL2KEBAB[t]=r,r}return i};var a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.check=function(t){if(t instanceof e)return!0;throw t},e}(Error);e.RtAbortError=a;var l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(Error);e.AssertionError=l;e.assert=function(t,e){if(!t)throw new l(e)};e.checkNull=function(t,e){if(!t)throw new Error(e||t+" is null.")};var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(Error);e.AlertError=u,e.ZERO_SIDES=Object.freeze({left:0,right:0,top:0,bottom:0,horz:0,vert:0});e.formatMessage=function(t,e){return t.replace("%1",e)};e.formatMessage2=function(t,e,i){return t.replace("%1",e).replace("%2",i)};e.throwError=function(t){throw new Error(t)};e.throwFormat=function(t,i){throw new Error((0,e.formatMessage)(t,i))};e.throwFormat2=function(t,i,r){throw new Error((0,e.formatMessage2)(t,i,r))},e._AlignBase={CHART:"chart",BODY:"body",PARENT:"parent"};e.buildValueRanges=function(t,i,n,o,s,a,l){var u,c;if(void 0===o&&(o=!0),void 0===s&&(s=!0),void 0===a&&(a=!1),o&&(i=-Number.MAX_VALUE,n=Number.MAX_VALUE),(0,r.isArray)(t))u=[],t.forEach((function(t){if((0,r.isObject)(t)&&(0,r.isString)(t.color)){var o={fromValue:(0,r.pickNum)(t.fromValue,c?c.toValue:i),toValue:(0,r.pickNum)(t.toValue,n),color:t.color,style:t.style?(0,r.assignObj)({},t.style):e._undef};o.fromValue<o.toValue&&(u.push(o),c=o)}})),u=u.sort((function(t,e){return t.fromValue-e.fromValue})).filter((function(t){return t.toValue>=i&&t.fromValue<n})),s&&u.forEach((function(t){t.fromValue=(0,r.maxv)(t.fromValue,i),t.toValue=(0,r.minv)(t.toValue,n)}));else if((0,r.isObject)(t)&&(0,r.isArray)(t.colors)&&t.colors.length>0){var p=t.colors,h=(0,r.isArray)(t.styles)?t.styles:null;if(u=[],(0,r.isArray)(t.steps)&&t.steps.length>0){var f=(0,r.isArray)(t.steps)?t.steps:null;i<f[0]&&f.unshift(i),n>f[f.length-1]&&f.push(n);for(var d=0;d<f.length-1;d++)u.push({fromValue:f[d],toValue:f[d+1],color:p[(0,r.minv)(d,p.length-1)],style:h?h[(0,r.minv)(d,h.length-1)]:e._undef})}else{var _=(0,r.pickNum)(t.fromValue,i),y=(0,r.pickNum)(t.toValue,n),g=(y-_)/p.length;for(d=0;_<y;)u.push({fromValue:_,toValue:_+=g,color:p[(0,r.minv)(d,p.length-1)],style:h?h[(0,r.minv)(d,h.length-1)]:e._undef}),d++}}if(a&&u&&u.length>0){d=0;for(var v=i;d<u.length;)u[d].fromValue>v&&u.splice(d,0,{fromValue:v,toValue:u[d].fromValue,color:l}),v=u[d].toValue,d++;u[d-1].toValue<n&&u.push({fromValue:u[d-1].toValue,toValue:n,color:l})}return u},e._TextOverflow={CLIP:"clip",ELLIPSIS:"ellipsis",WRAP:"wrap"},e._PaletteMode={NORMAL:"normal",SHUFFLE:"shuffle",RANDOM:"random"},e._SeriesLoadAnimation={DEFAULT:"default",REVEAL:"reveal",GROW:"grow",SPREAD:"spread",FADEIN:"fadein"},e._WritingMode={HORIZONTAL_TB:"horizontal-tb",VERTICAL_LR:"vertical-lr",VERTICAL_RL:"vertical-rl",VERTICAL:"vertical"},e._TextOrientation={MIXED:"mixed",UPRIGHT:"upright"}}(wM);var xM=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(cM,"__esModule",{value:!0}),cM.ChartDataCollection=cM.DataObject=void 0;var SM=iM,PM=pM,AM=wM,OM=function(t){return t&&"object"==typeof t},CM=function(t){function e(e,i){var r=t.call(this)||this;return r._rows=[],r.$_buildOptions(e||{}),(0,SM.isArray)(i)&&i.forEach((function(t){return r._rows.push(r.$_readRow(t))})),r}return xM(e,t),e.prototype.$_buildOptions=function(t){var e,i=t.fields;e=(0,SM.isArray)(i)?i.slice():(0,SM.isString)(i)?[i]:["x","y","z"],this._fields=e,this._field=t.field||"y",this._fieldMap={};for(var r=0;r<e.length;r++)this._fieldMap[e[r]]=r},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((0,SM.isArray)(t))for(var i=0;i<this._fields.length;i++)e[this._fields[i]]=t[i];else OM(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 r=this._rows[t],n=r[e];i!==n&&(r[e]=i,this._rows[t]=r,this._fireEvent("onDataValueChanged",t,e,i,n),this._changed())},e.prototype.getValues=function(t,e,i){void 0===e&&(e=0),void 0===i&&(i=-1);var r=this._rows,n=[];(isNaN(e)||e<0)&&(e=0),(isNaN(i)||i<0||i>r.length)&&(i=r.length);for(var o=e;o<i;o++)n.push(r[o][t]);return n},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)&&(0,AM.throwFormat)(PM.locale.invalidRowIndex,t)},e.prototype._changed=function(){this._fireEvent("onDataChanged")},e}(fM.EventProvider);cM.DataObject=CM;var EM=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],r=void 0;(0,SM.isArray)(i)?r=new CM({},i):OM(i)&&(0,SM.isArray)(i.values)&&(r=new CM(i.options,i.values)),this._map[e]=r}},t}();cM.ChartDataCollection=EM;var VM={},LM={},TM={},kM={};Object.defineProperty(kM,"__esModule",{value:!0}),kM.NumberFormatter=void 0;var NM=iM,MM="0".charCodeAt(0),jM="#".charCodeAt(0),RM=",".charCodeAt(0),BM="s".charCodeAt(0),DM="a".charCodeAt(0),IM=function(){function t(t){t=t.trim(),this._options=t?this.$_parse(this._format=t):{useGrouping:!1},this._options2=Object.assign({},this._options),this._options2.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.toNum=function(t){return+t.toLocaleString(void 0,this._options2)},t.prototype.$_parse=function(t){var e=t.length;if(e>0){var i={useGrouping:!1,minimumIntegerDigits:0,minimumFractionDigits:0,maximumFractionDigits:0},r=t.indexOf(".");if(r>=0){for(var n=r+1;n<e&&t.charCodeAt(n)===MM;)i.minimumFractionDigits++,n++;for(i.maximumFractionDigits=i.minimumFractionDigits;n<e&&t.charCodeAt(n)===jM;)i.maximumFractionDigits++,n++;r-=1}else r=e-1;for(var o=r;o>=0&&t.charCodeAt(o)===MM;)i.minimumIntegerDigits++,o--;for(;o>=0;){if(t.charCodeAt(o--)===RM){i.useGrouping=!0;break}}for(o=r;o>=0;){if(t.charCodeAt(o--)===BM){i.signDisplay="always";break}}if(!i.signDisplay)for(o=r;o>=0;){if(t.charCodeAt(o--)===DM){i.signDisplay="never";break}}return i.minimumIntegerDigits=(0,NM.maxv)(1,i.minimumIntegerDigits),i}},t.DEFAULT_FORMAT="",t.Formatters={},t}();kM.NumberFormatter=IM;var GM={},FM={};Object.defineProperty(FM,"__esModule",{value:!0}),FM.DatetimeFormatter=void 0;var zM=pM,$M=wM,HM=rM,WM=["yy","yyyy","M","MM","d","dd","WW","W","w","ww","a","H","HH","h","hh","m","mm","s","ss","S","SS","SSS"],UM=[".","/","-",":"],YM="Z".charCodeAt(0),XM="z".charCodeAt(0),qM="A".charCodeAt(0),ZM="a".charCodeAt(0),KM="y".charCodeAt(0),JM="M".charCodeAt(0),QM="m".charCodeAt(0),tj="W".charCodeAt(0),ej="w".charCodeAt(0),ij="d".charCodeAt(0),rj="H".charCodeAt(0),nj="h".charCodeAt(0),oj="S".charCodeAt(0),sj="s".charCodeAt(0),aj=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(zM.locale.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||zM.locale.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,r="",n=0,o=i.length;n<o;n++){var s=i[n],a=s.length;switch(s.charCodeAt(0)){case KM:r+=a>2?t.getFullYear():(0,$M.pad2)(t.getFullYear()%100);break;case JM:r+=a>1?(0,$M.pad2)(t.getMonth()+1):t.getMonth()+1;break;case ij:r+=a>1?(0,$M.pad2)(t.getDate()):t.getDate();break;case tj:r+=a>1?(0,$M.pad2)(HM.Utils.weekOfYear(t,e)+1):HM.Utils.weekOfMonth(t,e,!0)+1;break;case ej:r+=a>1?HM.Utils.long_week_days[t.getDay()]:HM.Utils.week_days[t.getDay()];break;case rj:r+=a>1?(0,$M.pad2)(t.getHours()):t.getHours();break;case nj:if(this._hasAmPm){var l=t.getHours();0==l?l=12:l>12&&(l-=12),r+=a>1?(0,$M.pad2)(l):l}else r+=a>1?(0,$M.pad2)(t.getHours()):t.getHours();break;case QM:r+=a>1?(0,$M.pad2)(t.getMinutes()):t.getMinutes();break;case sj:r+=a>1?(0,$M.pad2)(t.getSeconds()):t.getSeconds();break;case ZM:case qM:t.getHours()<12?r+=zM.locale.am:r+=zM.locale.pm;break;case oj:var u=t.getMilliseconds();r+=3==a?(0,$M.pad3)(u):2==a?(0,$M.pad2)(u):u.toString().substring(0,a);break;default:r+=s}}return r},t.prototype.parseDateFormatTokens=function(t){var e=[];if(t)for(var i=t.trim(),r=i.length,n=0;n<r;){var o=i.charAt(n);if(UM.indexOf(o)>=0)e.push(o),n++;else{for(var s=n++;n<r&&i.charAt(n)==o;)n++;if(o=i.substring(s,n),WM.indexOf(o)<0){var a=o.charCodeAt(0);(a>=qM&&a<=YM||a>=ZM&&a<=XM)&&(0,$M.throwFormat)(zM.locale.invalidDateFormat,t)}e.push(o)}if(n<r&&HM.Utils.isWhiteSpace(o=i.charAt(n)))for(e.push(o);n<r&&HM.Utils.isWhiteSpace(i.charAt(n));)n++}return e},t.prototype.parse=function(t){t&&(this._format=t||zM.locale.dateFormat,this._tokens=this.parseDateFormatTokens(this._format),this._hasAmPm=this._tokens.indexOf("a")>=0||this._tokens.indexOf("A")>=0)},t.Formatters={},t}();FM.DatetimeFormatter=aj;var lj={},uj={};Object.defineProperty(uj,"__esModule",{value:!0}),uj.Color=void 0;var cj=rM,pj=function(){function t(t){this.r=0,this.g=0,this.b=0,this.a=1,(t=t&&t.trim())&&(cj.Utils.startsWith(t,"rgb(")&&cj.Utils.endsWith(t,")")?this.$_parseRgb(t.substring(4,t.length-1)):cj.Utils.startsWith(t,"rgba(")&&cj.Utils.endsWith(t,")")?this.$_parseRgb(t.substring(5,t.length-1)):cj.Utils.startsWith(t,"#")&&this.$_parseNumber(t.substr(1)))}return t.isBright=function(e){return new t(e).isBright()},t.getContrast=function(e,i,r){return new t(e).getContrast(i,r)},t.interpolate=function(e,i,r){var n=new t(e),o=new t(i),s=1-r,a=Math.round(n.r*r+o.r*s),l=Math.round(n.g*r+o.g*s),u=Math.round(n.b*r+o.b*s),c=n.a*r+o.a*(1-r);return c<1?"rgba(".concat(a,",").concat(l,",").concat(u,",").concat(c,")"):"rgb(".concat(a,",").concat(l,",").concat(u,")")},t.toColor=function(e){return cj.isIE?new t(e).toString():e},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.BLACK="#000",t.WHITE="#fff",t}();uj.Color=pj;var hj={},fj={};Object.defineProperty(fj,"__esModule",{value:!0}),fj.Dom=void 0;var dj=iM,_j=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.setAttrs=function(t,e){for(var i in e)t.setAttribute(i,e[i])},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.hasFill=function(t){var e=window.getComputedStyle(t).fill;return e&&"none"!==e},t.setVisible=function(t,e,i){return void 0===i&&(i=""),t.style.display=e?i:"none",e},t.setClipPath=function(t,e){t.setAttribute("clip-path","url(#".concat(e instanceof SVGClipPathElement?e.id:e,")"))},t.createClipRect=function(t,e){var i=t.createElementNS(dj.SVGNS,"clipPath");return i.id=e,i.append(t.createElementNS(dj.SVGNS,"rect")),i},t.setRect=function(t,e){return this.setBounds(t,e.x,e.y,e.width,e.height)},t.setBounds=function(t,e,i,r,n){return t.setAttribute("x",e),t.setAttribute("y",i),t.setAttribute("width",r),t.setAttribute("height",n),t},t}();fj.Dom=_j;var yj,gj={},vj={};Object.defineProperty(vj,"__esModule",{value:!0}),vj.globalRealChartInfo=vj.LicType=void 0,function(t){t.Developer="developer",t.Evaluation="evaluation",t.Limited="limited",t.Enterprise="enterprise"}(yj||(vj.LicType=yj={})),vj.globalRealChartInfo={name:"RealChart",version:"1.4.7",license:"enterprise",code:null},Object.defineProperty(gj,"__esModule",{value:!0}),gj.$_lc=gj.Cryptor=void 0;var mj=vj,bj=function(){function t(){}return t.decode=function(e){for(var i=t.CHARS,r=t.PAD,n=e.split(""),o=[],s=n.length;n[--s]==r;);for(var a=0;a<s;){var l=i.indexOf(n[a++])<<18;a<=s&&(l|=i.indexOf(n[a++])<<12),a<=s&&(l|=i.indexOf(n[a++])<<6),a<=s&&(l|=i.indexOf(n[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}(),wj=function(){function t(){}return t.union=function(t,e){var i=e.s3[255&t];t>>=8;var r=e.s2[255&t];t>>=8;var n=e.s1[255&t];t>>=8;var o=e.s0[255&t],s=(o>>16)+(n>>16)+((65535&o)+(65535&n)>>16)<<16|(65535&o)+(65535&n)&65535;return((s=(s>>16^r>>16)<<16|65535&(65535&s^65535&r))>>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 r=t.xor,n=t.union,o=e.left,s=e.right;o=r(o,i.p[0]),s=r(s,r(n(o,i),i.p[1])),o=r(o,r(n(s,i),i.p[2])),s=r(s,r(n(o,i),i.p[3])),o=r(o,r(n(s,i),i.p[4])),s=r(s,r(n(o,i),i.p[5])),o=r(o,r(n(s,i),i.p[6])),s=r(s,r(n(o,i),i.p[7])),o=r(o,r(n(s,i),i.p[8])),s=r(s,r(n(o,i),i.p[9])),o=r(o,r(n(s,i),i.p[10])),s=r(s,r(n(o,i),i.p[11])),o=r(o,r(n(s,i),i.p[12])),s=r(s,r(n(o,i),i.p[13])),o=r(o,r(n(s,i),i.p[14])),s=r(s,r(n(o,i),i.p[15])),o=r(o,r(n(s,i),i.p[16])),e.right=o,e.left=r(s,i.p[17])},t._decryptBlock=function(e,i){var r=t.xor,n=t.union,o=e.left,s=e.right;o=r(o,i.p[17]),s=r(s,r(n(o,i),i.p[16])),o=r(o,r(n(s,i),i.p[15])),s=r(s,r(n(o,i),i.p[14])),o=r(o,r(n(s,i),i.p[13])),s=r(s,r(n(o,i),i.p[12])),o=r(o,r(n(s,i),i.p[11])),s=r(s,r(n(o,i),i.p[10])),o=r(o,r(n(s,i),i.p[9])),s=r(s,r(n(o,i),i.p[8])),o=r(o,r(n(s,i),i.p[7])),s=r(s,r(n(o,i),i.p[6])),o=r(o,r(n(s,i),i.p[5])),s=r(s,r(n(o,i),i.p[4])),o=r(o,r(n(s,i),i.p[3])),s=r(s,r(n(o,i),i.p[2])),o=r(o,r(n(s,i),i.p[1])),e.right=o,e.left=r(s,i.p[0])},t._init=function(e){var i,r,n,o=e.split("").map((function(t){return 255&t.charCodeAt(0)})),s=t.kb,a=t._encryptBlock,l=0,u=0,c={left:0,right:0},p={p:s.p.slice(0).map((function(e){var i,r=o.length;for(i=0;i<4;i++)u=u*t.POW8|o[l++%r];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,n=p.p.length;i<n;)a(c,p),p.p[i++]=c.left,p.p[i++]=c.right;for(i=0;i<4;i++)for(r=0,n=p["s"+i].length;r<n;)a(c,p),p["s"+i][r++]=c.left,p["s"+i][r++]=c.right;return p},t.decrypt=function(e,i){for(var r=t._decryptBlock,n=t._init(i),o=[],s=bj.decode(e),a=s.length>>3,l=0,u={left:null,right:null},c=0;c<a;c++){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],r(u,n);var p=u.left,h=u.right;o.push(p>>24&255),o.push(p>>16&255),o.push(p>>8&255),o.push(255&p),o.push(h>>24&255),o.push(h>>16&255),o.push(h>>8&255),o.push(255&h),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}();gj.Cryptor=wj;var xj=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,r=t.length;i<r;i++)e+=String.fromCharCode(t[i]>>1);return e},t.includedDomains=function(t,e,i){for(var r=t.split(","),n=0,o=r.length;n<o;n++){var s=r[n];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=wj.decrypt(t,"dkdl"+this._getLDKey(wj.kb.k)).split(";"),r=0,n=i.length;r<n;r++){var o=i[r].split("="),s=o[0],a=o[1];a&&a.length>0&&(e[s]=a)}return e},t}();gj.$_lc=function(){var t,e=location.hostname,i="RealChart를 사용하려면 도움말을 참조하세요.\nhttps://www.realchart.co.kr/";try{if(!(t=mj.globalRealChartInfo.code||window.realChartLic))throw new Error(i)}catch(t){throw new Error(i)}var r=xj.decrypt(t);if("RealChart"!==r.name||"RealChart"!==mj.globalRealChartInfo.name)throw new Error(i);try{var n=r.server.toLowerCase(),o=location.pathname.toLowerCase();if(mj.globalRealChartInfo.license!=mj.LicType.Developer&&!xj.includedDomains(n,e.toLowerCase(),o))throw new Error(i);var s=r.lic.toLowerCase();if(!Object.values(mj.LicType).includes(s))throw new Error(i);if(mj.globalRealChartInfo.license=r.lic,s==mj.LicType.Evaluation||s==mj.LicType.Limited){var a=r.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)}return!0};var Sj={},Pj=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(Sj,"__esModule",{value:!0}),Sj.createDomAnimation=Sj.DomAnimation=Sj.RcAnimation=Sj.createAnimation=void 0;var Aj=iM,Oj=wM,Cj={inOutSine:function(t){return-((0,Aj.cos)(Oj.PI*t)-1)/2}};Sj.createAnimation=function(t,e,i,r,n,o){var s=(0,Oj.newObject)(e,null!=i?i:"initial"),a=(0,Oj.newObject)(e,r),l=t.animate([s,a],{duration:n,fill:"none"});return o&&(l?l.addEventListener("finish",o):setTimeout(o,0)),l};var Ej=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=(0,Aj.minv)(1,(0,Aj.maxv)(0,(0,Oj.fixnum)(t/e.duration)));e._easing&&(i=e._easing(i));try{e._timer&&e._canUpdate()&&!1!==e._doUpdate(i)||e._stop(!0)}finally{t>=e.duration?e._stop(!1):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(!0)},t.prototype._start=function(e,i,r){var n=this;void 0===i&&(i=0),void 0===r&&(r=null),this._started&&this._stop(!0),this.duration=(0,Aj.pickNum)(e,t.DURATION),this.delay=i||0,this._easing=Cj[r],this._doStart(),this._started=+new Date,this._timer=setTimeout((function(){return n._stop(!1)}),1.2*this.duration),this._handler()},t.prototype._stop=function(t){var e;this._started&&(cancelAnimationFrame(this._ani),clearTimeout(this._timer),this._timer=null,this._started=null,this._doStop(),null===(e=this.endHandler)||void 0===e||e.call(this,this,t))},t.prototype._doStart=function(){},t.prototype._doStop=function(){},t.prototype._canUpdate=function(){return!0},t.DURATION=700,t.SHORT_DURATION=300,t}();Sj.RcAnimation=Ej;var Vj=function(t){function e(e){var i=t.call(this)||this;return i.props=e,e.duration>0&&(i.duration=e.duration),i.endHandler=function(t,e){var r,n;null===(n=(r=i.props).endHandler)||void 0===n||n.call(r,i,e),i.props.dom=null,i.props=null},i}return Pj(e,t),e.prototype._canUpdate=function(){return this.props.dom&&!!this.props.dom.parentElement},e.prototype._doUpdate=function(t){return!1!==this.props.update(this.props,t)},e}(Ej);Sj.DomAnimation=Vj;Sj.createDomAnimation=function(t){return new Vj(t).start()};var Lj=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),Tj=t&&t.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s},kj=t&&t.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))},Nj=t&&t.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,i=e&&t[e],r=0;if(i)return i.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(hj,"__esModule",{value:!0}),hj.DragTracker=hj.ClipCircleElement=hj.ClipPathElement=hj.PathElement=hj.ClipRectElement=hj.ClipElement=hj.LayerElement=hj.RcElement=hj.RcControl=void 0;var Mj=fM,jj=wM,Rj=fj,Bj=pM,Dj=iM,Ij=rM,Gj=gj,Fj=vj,zj=Sj,$j=function(t){function e(i,r,n){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._wSave=NaN,o._hSave=NaN,o.loaded=!1,o._windowResizeHandler=function(t){o._domResized()},o._domResizeHandler=function(t){o._domResized()},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._pointerHandler&&o._pointerHandler.handleLeave(o.toOffset(t))},o._keyPressHandler=function(t){},o._wheelHandler=function(t){},(0,Gj.$_lc)(),!i&&r instanceof HTMLDivElement&&(i=r.ownerDocument),o._initControl(i||document,r,n||e.CLASS_NAME),"undefined"!=typeof window&&window.ResizeObserver&&(o._resizeObserver=new ResizeObserver(o._domResizeHandler)),o._resigterEventHandlers(o._dom),o._inited=!0,o.invalidate(!0),o}return Lj(e,t),e.prototype._doDestroy=function(){this._requestTimer&&(window.requestAnimationFrame?cancelAnimationFrame(this._requestTimer):clearTimeout(this._requestTimer)),this._unresigterEventHandlers(this._dom),Rj.Dom.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.canvasCtx=function(){return this._canvas.getContext("2d")},e.prototype.setData=function(t,e,i){(0,jj.isNull)(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(){Rj.Dom.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(Hj.ASSET_KEY)},e.prototype.clearTemporaryDefs=function(){this.$_clearDefs(Hj.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.setResizeDelay=function(t){this._resizeDelay=t},e.prototype.getBounds=function(){return this._bounds},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,r,n){void 0===t&&(t=NaN),void 0===e&&(e=NaN),void 0===i&&(i=NaN),void 0===r&&(r=NaN),void 0===n&&(n=0);var o=new Xj(this.doc(),t,e,i,r,n,n);return this._defs.appendChild(o.dom),o},e.prototype.clipCircle=function(){var t=new Kj(this.doc());return this._defs.appendChild(t.dom),t},e.prototype.addDef=function(t){this._defs.appendChild(t)},e.prototype.removeDef=function(t){if((0,Dj.isString)(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 r=this._container.getBoundingClientRect(),n=t.getBounds();return{x:e-n.x+r.x,y:i-n.y+r.y}},e.prototype.svgToElement=function(t,e,i){var r=this._svg.getBoundingClientRect(),n=t.getBounds();return{x:e-n.left+r.left,y:i-n.top+r.top}},e.prototype.elementToSvg=function(t,e,i){var r=this._svg.getBoundingClientRect(),n=t.getBounds();return{x:e+n.left-r.left,y:i+n.top-r.top}},e.prototype.getIEColor=function(t){return!t||t.startsWith("#")||t.startsWith("rgb")||(this._tester.style.color=t,t=getComputedStyle(this._tester).color),t},e.prototype._setTesting=function(){this._testing=!0,Hj.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,r){r?t.addEventListener(e,i,{passive:!0}):t.addEventListener(e,i)},e.prototype._resigterEventHandlers=function(t){var e;window.addEventListener("resize",this._windowResizeHandler),null===(e=this._resizeObserver)||void 0===e||e.observe(t),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){var e,i;window.removeEventListener("resize",this._windowResizeHandler),null===(e=this._resizeObserver)||void 0===e||e.unobserve(t),null===(i=this._resizeObserver)||void 0===i||i.disconnect(),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||(0,jj.throwFormat)(Bj.locale.invalidOuterDiv,e);var r=this._container.ownerDocument,n=this._dom=r.createElement("div");(0,Dj.assignObj)(n.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)"}),n.className=i,this._container.appendChild(n);var o=this._svg=r.createElementNS(Dj.SVGNS,"svg");o.classList.add("rct-svg"),o.style.setProperty("overflow","visible","important"),o.setAttribute("width","100%"),o.setAttribute("height","100%");var s=r.createElement("desc");s.textContent="Created by RealChart v"+Fj.globalRealChartInfo.version,o.appendChild(s);var a=this._defs=r.createElementNS(Dj.SVGNS,"defs");this._initDefs(r,a),o.appendChild(a),n.appendChild(o),this._root=new Uj(this),o.appendChild(this._root._dom),this._htmlRoot=r.createElement("div"),n.appendChild(this._htmlRoot),(0,Dj.assignObj)(this._htmlRoot.style,{position:"absolute"}),this._tester=r.createElement("div"),n.appendChild(this._tester),Ij.isIE&&(this._canvas=r.createElement("canvas"))}},e.prototype._initDefs=function(t,i){var r=t.createElementNS(Dj.SVGNS,"filter");r.setAttribute("id",e.SHADOW_FILTER);var n=t.createElementNS(Dj.SVGNS,"feGaussianBlur");n.setAttribute("stdDeviation","1.5"),n.setAttribute("in","SourceAlpha"),r.appendChild(n);var o=t.createElementNS(Dj.SVGNS,"feOffset");o.setAttribute("dx","1"),o.setAttribute("dy","1"),o.setAttribute("result","offsetblur"),r.appendChild(o);var s=t.createElementNS(Dj.SVGNS,"feFlood");s.setAttribute("flood-color","#000"),r.appendChild(s);var a=t.createElementNS(Dj.SVGNS,"feComposite");a.setAttribute("in2","offsetblur"),a.setAttribute("operator","in"),r.appendChild(a);var l=t.createElementNS(Dj.SVGNS,"feMerge"),u=t.createElementNS(Dj.SVGNS,"feMergeNode"),c=t.createElementNS(Dj.SVGNS,"feMergeNode");c.setAttribute("in","SourceGraphic"),l.appendChild(u),l.appendChild(c),r.appendChild(l),i.appendChild(r)},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(this._bounds=this._dom.getBoundingClientRect(),+new Date<=this._toAnimation)this.$_requestRender();else{Ij.Utils.LOGGING&&console.time("render chart");try{this._doBeforeRender();var t=this._dom.getBoundingClientRect(),e=this._svg.getBoundingClientRect(),i=this._svg.clientWidth,r=this._svg.clientHeight,n=this._canvas;!n||n.width===i&&n.height==r||(n.width=i,n.height=r,n.style.width=(0,jj.pixel)(i),n.style.height=(0,jj.pixel)(r)),(0,Dj.assignObj)(this._htmlRoot.style,{left:(0,jj.pixel)(e.left-t.left),top:(0,jj.pixel)(e.top-t.top)});var o=this._container.firstElementChild;o.removeAttribute("style"),(0,Dj.assignObj)(o.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)"}),this._doRenderBackground(o,this._root,i,r);var s=this._padding=Rj.Dom.getPadding(this._root.dom);this._doRender({x:s.left,y:s.top,width:i-s.left-s.right,height:r-s.top-s.bottom})}finally{this.loaded=!0,this._dirty=!1,this._requestTimer=null,this._doAfterRender(),Ij.Utils.LOGGING&&console.timeEnd("render chart")}}},e.prototype._doBeforeRender=function(){},e.prototype._doAfterRender=function(){},e.prototype._doRenderBackground=function(t,e,i,r){},e.prototype._domResized=function(){var t=this,e=this.width(),i=this.height(),r=this._resizeDelay;if(e!==this._wSave||i!==this._hSave){var n=!isNaN(this._wSave)&&!isNaN(this._hSave);this._wSave=e,this._hSave=i,this._resizeTimer&&clearTimeout(this._resizeTimer),r>0?this._resizeTimer=setTimeout((function(){n&&t.invalidateLayout(),t._resizeTimer=null}),r):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}(Mj.RcObject);hj.RcControl=$j;var Hj=function(t){function e(e,i,r){void 0===r&&(r=jj._undef);var n=t.call(this)||this;return n._visible=!0,n._scaleX=1,n._scaleY=1,n._rotation=0,n._styles={},n._styleDirty=!1,n._dom=e.createElementNS(Dj.SVGNS,r||"g"),(n._styleName=i||"")&&n.setAttr("class",n._styleName),n}return Lj(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,"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,isNaN(t)?this.removeAttr("width"):this.setAttr("width",t))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this._height},set:function(t){t!==this._height&&(this._height=t,isNaN(t)?this.removeAttr("height"):this.setAttr("height",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(Dj.SVGNS,e);return this._dom.appendChild(i),i},e.prototype.insertElement=function(t,e,i){var r=t.createElementNS(Dj.SVGNS,e);return this._dom.insertBefore(r,i),r},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.removeAttr=function(t){return this._dom.removeAttribute(t),this},e.prototype.setAttr=function(t,e){return this._dom.setAttribute(t,e),this},e.prototype.setAttrEx=function(t,e){return(0,jj.isNull)(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,r){return this.trans(t,e),this.resize(i,r),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 Ij.isIE&&(t={x:t.x,y:t.y,width:t.width,height:t.height}),t.x+=this._tx,t.y+=this._ty,t},e.prototype.inflateBBox=function(t,e){var i=this._dom.getBBox();return Ij.isIE&&(i={x:i.x,y:i.y,width:i.width,height:i.height}),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._ani instanceof zj.DomAnimation||!!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,e){return void 0===e&&(e=NaN),e=isNaN(e)?t:e,this._scaleX===t&&this._scaleY===e||(this._scaleX=t,this._scaleY=e,this._updateTransform()),this},e.prototype.trans=function(t,e){return t=Ij.Utils.isValidNum(t)?t:this._tx,e=Ij.Utils.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.$_cleanMove=function(t,e){var i;this._updateTransform(),e&&(null===(i=this.control)||void 0===i||i.invalidateLayout()),t===this._moveAni&&(this._moveAni=null)},e.prototype.transEx=function(t,e,i,r){var n=this;if(void 0===i&&(i=0),void 0===r&&(r=!0),t=Ij.Utils.isValidNum(t)?t:this._tx,e=Ij.Utils.isValidNum(e)?e:this._ty,this._moveAni&&(this._moveAni.cancel(),this._moveAni=null),t!==this._tx||e!==this._ty)if(i>0){var o=this._moveAni=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"});this._tx=t,this._ty=e,o?(o.addEventListener("finish",(function(){n.$_cleanMove(o,r)})),o.addEventListener("cancel",(function(){n.$_cleanMove(o,r)}))):this.$_cleanMove(o,r)}else this._tx=t,this._ty=e,this._updateTransform();return this},e.prototype.transEx2=function(t,e,i,r){var n=this;if(void 0===i&&(i=0),void 0===r&&(r=!0),t=Ij.Utils.isValidNum(t)?t:this._tx,e=Ij.Utils.isValidNum(e)?e:this._ty,this._moveAni&&(this._moveAni.cancel(),this._moveAni=null),t!==this._tx||e!==this._ty)if(i>0){var o=this._rotation||0,s="translate(".concat(this._tx||0,"px, ").concat(this._ty||0,"px)")+(o?" rotate(".concat(o,"deg)"):""),a="translate(".concat(t,"px, ").concat(e,"px)")+(o?" rotate(".concat(o,"deg)"):"");this._dom.style.transformOrigin="".concat(this._originX||0,"px ").concat(this._originY||0,"px");var l=this._moveAni=this._dom.animate([{transform:s},{transform:a}],{duration:i,fill:"none"});this._tx=t,this._ty=e,l?(l.addEventListener("finish",(function(){n._dom.style.transformOrigin="",n.$_cleanMove(l,r)})),l.addEventListener("cancel",(function(){n._dom.style.transformOrigin="",n.$_cleanMove(l,r)}))):(this._dom.style.transformOrigin="",this.$_cleanMove(l,r))}else this._tx=t,this._ty=e,this._updateTransform();return this},e.prototype.transX=function(t){return t!==this._tx&&Ij.Utils.isValidNum(t)&&(this._tx=t,this._updateTransform()),this},e.prototype.transY=function(t){return t!==this._ty&&Ij.Utils.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 r=!1;return t!==this._width&&(this._width=Math.max(0,t),i&&this.setAttrEx("width",this._width),r=!0),e!==this._height&&(this._height=Math.max(0,e),i&&this.setAttrEx("height",this._height),r=!0),r},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){var e;return(e=this._dom.classList).add.apply(e,kj([],Tj(t.split(" ").filter((function(t){return t.length>0}))),!1)),this},e.prototype.removeClass=function(t){return this._dom.classList.remove(t),this},e.prototype.saveStyles=function(){this._saveStyle=this._dom.getAttribute("style")||"",this._saveClass=this._dom.getAttribute("class")},e.prototype.restoreStyles=function(){void 0!==this._saveStyle&&(this._dom.setAttribute("style",this._saveStyle),this._dom.style.display=this._visible?"":"none",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((0,jj.getCssProp)(e));this._styles={}},e.prototype.clearStyles=function(){var t=this.dom.style,e=!1;for(var i in this._styles)t.removeProperty((0,jj.getCssProp)(i)),e=!0;return this._styles={},e&&(this._styleDirty=!0),e},e.prototype.clearStyle=function(t){var e,i,r=!1;if(t){var n=this.dom.style;try{for(var o=Nj(t),s=o.next();!s.done;s=o.next()){var a=s.value;a in this._styles&&(n.removeProperty((0,jj.getCssProp)(a)),delete this._styles[a],r=!0)}}catch(t){e={error:t}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(e)throw e.error}}r&&(this._styleDirty=!0)}return r},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((0,Dj.isString)(t))t&&this._dom.classList.add(t);else if((0,Dj.isObject)(t)){var e=this.dom.style;for(var i in t)e.setProperty((0,jj.getCssProp)(i),this._styles[i]=t[i],"important")}},e.prototype.setStyles=function(t){var e=!1;if(t){var i=this.dom.style;for(var r in t){var n=t[r];this._styles[r]!==n&&(this._styles[r]=n,"rx"==r&&this._dom.setAttribute(r,n),i[r]=n,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){(0,Dj.isString)(t)?(this._resetClass(),t&&this.addClass(t)):this.resetStyles(t)},e.prototype.internalSetStyleOrClass=function(t){(0,Dj.isString)(t)?t&&this.addClass(t):this.internalSetStyles(t)},e.prototype.addStyleOrClass=function(t){(0,Dj.isString)(t)?t&&this.addClass(t):(0,Dj.isObject)(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,(0,Dj.pickProp)(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.getData=function(t){return this.dom.getAttribute("data-"+t)},e.prototype.hasData=function(t){return null!=this.getData(t)},e.prototype.stopAni=function(){return this._ani&&(this._ani.stop(),this._ani=null),this},e.prototype.removeLater=function(t,e){var i=this;return this._parent&&(t>0?this._ani=(0,zj.createDomAnimation)({dom:this._dom,delay:t,update:function(t,e){return t.dom.style.opacity=(0,Dj.maxv)(0,t.from*(1-e)),!0},endHandler:function(t,r){t.props.dom.style.opacity=t.props.from>=1?"":t.props.from,i._ani=null,!r&&i.remove(),null==e||e(i)},from:(0,Dj.pickNum)(getComputedStyle(this._dom).opacity,1)}):this.remove()),this},e.prototype.hide=function(t){var e=this;return this._parent&&(t>0?this._ani=(0,zj.createDomAnimation)({dom:this._dom,delay:t,update:function(t,e){return t.dom.style.opacity=(0,Dj.maxv)(0,t.from*(1-e)),!0},endHandler:function(t,i){t.props.dom.style.opacity=t.props.from>=1?"":t.props.from,e._ani=null,!i&&e.setVis(!1)},from:(0,Dj.pickNum)(getComputedStyle(this._dom).opacity,1)}):this.setVis(!1)),this},e.prototype.clipRect=function(t,e,i,r,n){void 0===n&&(n=0);var o=this.control.clipBounds(t,e,i,r,n);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,r=this._dom,n=t.length;if(e){var o=e.sort((function(e,i){return t.indexOf(e)-t.indexOf(i)}))[e.length-1];this!==o&&(r.remove(),o===t[n-1]?i.appendChild(r):i.insertBefore(r,t[t.indexOf(o)+1].dom))}else n>1&&r!==i.lastElementChild&&(r.remove(),i.appendChild(r))}},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,r=[];(Ij.Utils.isValidNum(e)||Ij.Utils.isValidNum(i))&&(e=e||0,i=i||0,r.push("translate("+e+","+i+")")),this._rotation&&r.push("rotate("+this._rotation+" "+Ij.Utils.pick(this._originX,t.getAttribute("x"),0)+" "+Ij.Utils.pick(this._originY,t.getAttribute("y")||0)+")"),Ij.Utils.isNotEmpty(this._matrix)&&r.push("matrix("+this._matrix.join(",")+")");var n=Ij.Utils.getNumber(this._scaleX,1),o=Ij.Utils.getNumber(this._scaleY,1);return 1===n&&1===o||r.push("scale("+n+" "+o+")"),r.length?r.join(" "):""},e.DEBUGGING=!1,e.TESTING=!1,e.ASSET_KEY="_asset_",e.TEMP_KEY="_temp_",e}(Mj.RcObject);hj.RcElement=Hj;var Wj=function(t){function e(e,i){return t.call(this,e,i,"g")||this}return Lj(e,t),e}(Hj);hj.LayerElement=Wj;var Uj=function(t){function e(e){var i=t.call(this,e.doc(),"rct-root")||this;return i._control=e,i}return Lj(e,t),Object.defineProperty(e.prototype,"control",{get:function(){return this._control},enumerable:!1,configurable:!0}),e}(Hj),Yj=function(t){function e(e){var i=t.call(this,e,jj._undef,"clipPath")||this,r=i._id=Ij.Utils.uniqueKey()+"-";return i.setAttr("id",r),i}return Lj(e,t),Object.defineProperty(e.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),e}(Hj);hj.ClipElement=Yj;var Xj=function(t){function e(e,i,r,n,o,s,a){void 0===i&&(i=NaN),void 0===r&&(r=NaN),void 0===n&&(n=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 Hj(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,r,n,o),l.add(u),l}return Lj(e,t),e.prototype.setBounds=function(t,e,i,r){return this._rect.x=t,this._rect.y=e,this._rect.resize(i,r),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}(Yj);hj.ClipRectElement=Xj;var qj=function(t){function e(e,i){return t.call(this,e,i,"path")||this}return Lj(e,t),Object.defineProperty(e.prototype,"path",{get:function(){return this._path},enumerable:!1,configurable:!0}),e.prototype.setPath=function(t){var e=(0,Dj.isString)(t)?t:t.join(" ");return e!==this._path&&this.setAttr("d",this._path=e),this},e}(Hj);hj.PathElement=qj;var Zj=function(t){function e(e){var i=t.call(this,e)||this;return i._path=new qj(e),i.add(i._path),i}return Lj(e,t),e.prototype.setPath=function(t){this._path.setPath(t)},e}(Yj);hj.ClipPathElement=Zj;var Kj=function(t){function e(e){var i=t.call(this,e)||this;return i.add(i._circle=new Hj(e,null,"circle")),i}return Lj(e,t),e.prototype.setCircle=function(t,e,i){this._circle.setAttrs({cx:t,cy:e,r:i})},e}(Yj);hj.ClipCircleElement=Kj;var Jj=function(){function t(){this.dragging=!1}return t.prototype.start=function(t,e,i,r,n){return this.cancel(),!!this._doStart(t,e,i,r,n)&&(this.dragging=!0,this._showFeedback(r,n),!0)},t.prototype.drag=function(t,e,i,r,n){return!(!this.dragging||!this._doDrag(t,e,i,r,n))&&(this._moveFeedback(r,n),!0)},t.prototype.cancel=function(){if(this.dragging)try{this.dragging=!1,this._hideFeedback()}finally{this._doCanceled()}},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,r,n){return!0},t.prototype._doCanceled=function(){},t.prototype._doCompleted=function(t,e,i){},t.prototype._doEnded=function(t,e){},t}();hj.DragTracker=Jj;var Qj=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(lj,"__esModule",{value:!0}),lj.TextElement=lj.TextOverflow=lj.TextLayout=lj.TextAnchor=void 0;var tR,eR,iR,rR=uj,nR=iM,oR=hj,sR=wM;!function(t){t.START="start",t.MIDDLE="middle",t.END="end"}(tR||(lj.TextAnchor=tR={})),function(t){t.TOP="top",t.MIDDLE="middle",t.BOTTOM="bottom"}(eR||(lj.TextLayout=eR={})),function(t){t.TRUNCATE="truncate",t.WRAP="wrap",t.ELLIPSIS="ellipsis"}(iR||(lj.TextOverflow=iR={}));var aR=function(t){function e(e,i){void 0===i&&(i=void 0);var r=t.call(this,e,i,"text")||this;return r._layout=eR.TOP,r._overflow=iR.WRAP,r._dirty=!0,r._text="",r.anchor=tR.MIDDLE,r}return Qj(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(),r=this.getAscent(isNaN(t)?i.height:t);switch(this._layout){case eR.MIDDLE:e=Math.floor(r/2);break;case eR.BOTTOM:e=0;break;default:e=Math.ceil(r)}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=(0,nR.maxv)(0,t),(e=(0,nR.minv)(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 r,n=this.dom,o=0,s=i.length;do{r=Math.ceil((o+s)/2),n.getSubStringLength(0,r)>t?s=r-1:o=r}while(o<s);for(this.text=i.substring(0,o)+sR.ELLIPSIS;o>0&&this.calcWidth()>t;)this.text=i.substring(0,--o)+sR.ELLIPSIS}},e.prototype.setContrast=function(t,e,i){return this.setStyleOrClass(rR.Color.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.setStyle=function(e,i){var r=t.prototype.setStyle.call(this,e,i);return r&&this.layoutText(),r},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}(oR.RcElement);lj.TextElement=aR;var lR=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),uR=t&&t.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s},cR=t&&t.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))},pR=t&&t.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,i=e&&t[e],r=0;if(i)return i.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(GM,"__esModule",{value:!0}),GM.SvgRichText=void 0;var hR=iM,fR=FM,dR=kM,_R=wM,yR=lj,gR="$_TH",vR="$_TW",mR=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,r=this.text;if(i&&e.callback)for(var n=0;n<i.length;n+=4){var o=e.callback(t,i[n+1]);if("number"==typeof o&&!isNaN(o)||"bigint"==typeof o)(s=i[3]?dR.NumberFormatter.getFormatter(i[3]):e.numberFormatter)&&(o=s.toStr(o));else if(o instanceof Date){var s;(s=i[3]?fR.DatetimeFormatter.getFormatter(i[3]):e.timeFormatter)&&(o=s.toStr(o,e.startOfWeek||0))}else null==o&&(o=i[n+2]||"");r=r.replace(i[n],o)}return r},t.prototype.prepareSpan=function(t,e,i){var r=this.getText(e,i);return t.textContent=r,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 r=t.indexOf("}",i+2);if(r<0)break;var n=t.substring(i,r+1),o=n.substring(2,n.length-1),s=o.indexOf(";");if(s>0){var a=o.indexOf(";",s+1);a>=s?this._literals.push(n,o.substring(0,s),o.substring(s+1,a),o.substring(a+1)):this._literals.push(n,o.substring(0,s),o.substring(s+1),_R._undef),0===this._literals[2].length&&(this._literals[2]=_R._undef)}else this._literals.push(n,o,_R._undef,_R._undef);e=r+1}return 0==this._literals.length&&(this._literals=null),this},t}(),bR=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return lR(e,t),e.prototype.prepareSpan=function(t,e,i){var r=this.getText(e,i),n=r.indexOf(">")+1,o=r.indexOf(this.tag(),n);return this._doPrepare(t,r,n,o),t},e.prototype._doPrepare=function(t,e,i,r){t.textContent=e.substring(i,r);var n=e.indexOf("style=");if(n>0&&n<i){var o=e[n+6],s=e.indexOf(o,n+7);s>0&&s<i&&t.setAttribute("style",e.substring(n+7,s))}},e}(mR),wR=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return lR(e,t),e.prototype.tag=function(){return"</t>"},e}(bR),xR=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return lR(e,t),e.prototype.tag=function(){return"</b>"},e.prototype._doPrepare=function(e,i,r,n){t.prototype._doPrepare.call(this,e,i,r,n),e.setAttribute("class","rct-text-bold")},e}(bR),SR=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return lR(e,t),e.prototype.tag=function(){return"</i>"},e.prototype._doPrepare=function(e,i,r,n){t.prototype._doPrepare.call(this,e,i,r,n),e.setAttribute("class","rct-text-italic")},e}(bR),PR=function(t){function e(){var e=t.apply(this,cR([],uR(arguments),!1))||this;return e.target="_blank",e}return lR(e,t),e.prototype.tag=function(){return"</a>"},e.prototype._doPrepare=function(e,i,r,n){var o=this;i.substring(2,r-1).trim().split(/\s+/g).forEach((function(t){var e=t.indexOf("=");if(e>0){var i=t.substring(0,e),r=t.substring(e+1,t.length),n=r.substring(1,r.length-1);switch(i){case"href":o.url=n;break;case"target":o.target=n}}})),t.prototype._doPrepare.call(this,e,i,r,n),e.setAttribute("class","rct-text-link")},e}(bR),AR={t:wR,b:xR,i:SR,a:PR},OR=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 mR).parse(t))}for(var i=this._words=[],r=0;r<t.length;){if("<"==t[r]){var n=t[r+1],o=void 0;if(n in AR)if((u=t.indexOf(">",r+2))>=0){var s="</"+n+">",a=t.indexOf(s,u+1);if(a>=0){var l=t.substring(r,a+s.length);o=(new AR[n]).parse(l),r+=l.length}}if(!o){e(t.substring(r));break}this._words.push(o)}else{var u;if(!((u=t.indexOf("<",r+1))>=0)){e(t.substring(r));break}e(t.substring(r,u)),r=u}}return this},t}(),CR=/<br.*?>|\r\n|\n/,ER=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,r,n){var o,s;if(this._isVertical)this.buildVertical(t,e,i,r,n);else{var a=t.doc,l=(0,hR.pickNum)(this.lineHeight,1),u=0,c=this._lines,p=c.length,h=[],f=0,d=[];t.clearDom(),r=r||t;for(var _=t.getStyle("writing-mode"),y=this._vertical=_===_R._WritingMode.VERTICAL_LR||_===_R._WritingMode.VERTICAL_RL,g=0;g<p;g++){var v=c[g],m=0,b=0,w=null;try{for(var x=(o=void 0,pR(v.words.entries())),S=x.next();!S.done;S=x.next()){var P=uR(S.value,2),A=P[0],O=P[1],C=0===g&&0===A,E=g===p-1&&A===v.words.length-1,V=O.prepareSpan(t.appendElement(a,"tspan"),r,n);if((0,hR.isObject)(r.options)){var L=r.options,T=C&&L.prefix||"",k=E&&L.suffix||"";V.textContent=T+(V.textContent||"")+k}var N=V.getBBox();if(V[vR]=N.width,V[gR]=N.height,y?(m=(0,hR.maxv)(m,V[vR]),b+=V[gR]):(m+=V[vR],b=(0,hR.maxv)(b,V[gR])),w||(w=V),O instanceof PR){var M=a.createElementNS(hR.SVGNS,"a");M.setAttribute("href",O.url),M.setAttribute("target",O.target),M.appendChild(V),t.appendDom(M)}}}catch(t){o={error:t}}finally{try{S&&!S.done&&(s=x.return)&&s.call(x)}finally{if(o)throw o.error}}d.push(w),v[gR]=b*l,v[vR]=m*l,f=(0,hR.maxv)(m,f),u=(0,hR.maxv)(b,u),h.push(0==g?v[vR]/2:v[vR])}if(p>0){var j=c[0];for(g=1;g<d.length;g++)if(d[g]){m=0,b=0;if(y?null!=d[g-1]&&(m=Math.floor(j[vR]-t.getAscent(j[vR]))+t.getAscent(c[g][vR])):b=j[gR]-t.getAscent(j[gR])+t.getAscent(c[g][gR]),null==d[0]&&d[g]==d.find((function(t){return null!=t})))(V=t.insertElement(a,"tspan",d[g])).textContent=".",V.style.fill="transparent",m+=(N=V.getBBox()).width,V[vR]=N.width,V[gR]=j[gR]=N.height,d[0]=V;switch(_){case _R._WritingMode.VERTICAL_LR:d[g].setAttribute("dx",String(m)),d[g].setAttribute("y","0");break;case _R._WritingMode.VERTICAL_RL:d[g].setAttribute("dx",String(-m)),d[g].setAttribute("y","0");break;default:d[g].setAttribute("x","0"),d[g].setAttribute("dy",String(b))}j=c[g]}if(y){var R=t.parent.dom.classList.contains("rct-annotation"),B=t.getBBox().width;m=(w=uR(d,1)[0])[vR];if(R)w.setAttribute("dx",String(_===_R._WritingMode.VERTICAL_RL?B-m/2:m/2));else switch(_){case _R._WritingMode.VERTICAL_LR:w.setAttribute("x",String((B-m)/-2));break;case _R._WritingMode.VERTICAL_RL:w.setAttribute("x",String((B-m)/2))}}else t.layoutText(c[0][gR])}}},t.prototype.buildVertical=function(t,e,i,r,n){var o,s,a=t.doc,l=(0,hR.pickNum)(this.lineHeight,1),u=0,c=this._lines,p=c.length,h=[],f=0,d=[];t.clearDom(),r=r||t;for(var _=0;_<p;_++){var y=c[_],g=0,v=0,m=null,b=!1;try{for(var w=(o=void 0,pR(y.words.entries())),x=w.next();!x.done;x=w.next()){var S=uR(x.value,2),P=S[0],A=S[1],O=0===_&&0===P,C=_===p-1&&P===y.words.length-1,E=A.prepareSpan(t.appendElement(a,"tspan"),r,n);if((0,hR.isObject)(r.options)){var V=r.options,L=O&&V.prefix||"",T=C&&V.suffix||"";E.textContent=L+(E.textContent||"")+T}" "===E.textContent&&(b=!0,E.textContent=".");var k=E.getBBox();if(E[vR]=k.width,E[gR]=k.height,b&&(E.textContent=" ",E[gR]*=.6,b=!1),g+=E[vR],v=(0,hR.maxv)(v,E[gR]),m||(m=E),A instanceof PR){var N=a.createElementNS(hR.SVGNS,"a");N.setAttribute("href",A.url),N.setAttribute("target",A.target),N.appendChild(E),t.appendDom(N)}}}catch(t){o={error:t}}finally{try{x&&!x.done&&(s=w.return)&&s.call(w)}finally{if(o)throw o.error}}d.push(m),y[gR]=v*l,y[vR]=g*l,f=(0,hR.maxv)(g,f),u=(0,hR.maxv)(v,u),h.push(0==_?y[vR]/2:y[vR])}if(p>0){var M=c[0];d[0].setAttribute("x",String((f-d[0].getBBox().width)/2));for(_=1;_<d.length;_++)d[_]&&(d[_].setAttribute("x",String((f-d[_].getBBox().width)/2)),d[_].setAttribute("dy",String(M[gR]-t.getAscent(M[gR])+t.getAscent(c[_][gR]))),M=c[_]);t.layoutText(c[0][gR])}},t.prototype.layout=function(t,e,i,r,n){var o=t.getBBox(),s=0,a=0;if(this._vertical)switch(s=n.left+(i-n.left-n.right-o.width),e){case"center":t.anchor=yR.TextAnchor.MIDDLE,a=n.top+(r-n.top-n.bottom)/2;break;case"right":t.anchor=yR.TextAnchor.END,a=o.height-n.bottom;break;default:t.anchor=yR.TextAnchor.START,a=n.top}else switch(a=n.top+(r-n.top-n.bottom-o.height)/2,e){case"center":t.anchor=yR.TextAnchor.MIDDLE,s=n.left+(i-n.left-n.right)/2;break;case"right":t.anchor=yR.TextAnchor.END,s=i-n.right;break;default:t.anchor=yR.TextAnchor.START,s=n.left}t.trans(s,a)},t.prototype.$_parse=function(t){var e,i,r=this._lines=[];if(t){var n=(this._isVertical?t.replace(/\s+/g," ").split("").join("<br>"):t).split(CR);try{for(var o=pR(n),s=o.next();!s.done;s=o.next()){var a=s.value;r.push((new OR).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}();GM.SvgRichText=ER;var VR={},LR=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),TR=t&&t.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s},kR=t&&t.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(VR,"__esModule",{value:!0}),VR.AssetCollection=VR.ImageList=VR.ColorList=VR.Pattern=VR.RadialGradient=VR.LinearGradient=void 0;var NR=iM,MR=hj,jR=wM,RR=rM,BR=function(){function t(t){this.source=t}return t.prototype.hasDef=function(){return!0},t}(),DR=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return LR(e,t),e.prototype._setStops=function(t,e){e.setAttribute("id",this.source.id);var i=this.source.color,r=null==this.source.opacity?1:this.source.opacity,n=(0,NR.isArray)(i)?kR([],TR(i),!1):[i,"white"],o=(0,NR.isArray)(r)?kR([],TR(r),!1):Array(n.length).fill(r);1===n.length&&n.push("white"),n.forEach((function(i,r){!function(t,e,i,r,n){var o=t.createElementNS(NR.SVGNS,"stop");o.setAttribute("offset",String(i)),o.setAttribute("stop-color",r),o.setAttribute("stop-opacity",String(n)),e.appendChild(o)}(t,e,r/(n.length-1),i,null==o[r]?1:o[r])}))},e.prototype.prepare=function(){},e}(BR),IR=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return LR(e,t),e.prototype.getEelement=function(t,e){var i=t.createElementNS(NR.SVGNS,"linearGradient"),r=0,n=0,o=0,s=0;switch(this._setStops(t,i),e.dir){case"up":o=1;break;case"right":n=1;break;case"left":r=1;break;default:s=1}return i.setAttribute("x1",r),i.setAttribute("y1",o),i.setAttribute("x2",n),i.setAttribute("y2",s),i},e.TYPE="lineargradient",e}(DR);VR.LinearGradient=IR;var GR=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return LR(e,t),e.prototype.getEelement=function(t,e){var i=t.createElementNS(NR.SVGNS,"radialGradient");return(0,jR.isNull)(e.cx)||i.setAttribute("cx",e.cx),(0,jR.isNull)(e.cy)||i.setAttribute("cy",e.cy),(0,jR.isNull)(e.r)||i.setAttribute("r",e.r),this._setStops(t,i),i},e.TYPE="radialgradient",e}(DR);VR.RadialGradient=GR;var FR=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return LR(e,t),e.prototype.prepare=function(){},e.prototype.getEelement=function(t,i){var r,n,o,s,a=t.createElementNS(NR.SVGNS,"pattern"),l=t.createElementNS(NR.SVGNS,"path"),u=!1;if(a.setAttribute("id",i.id),a.setAttribute("patternUnits","userSpaceOnUse"),l.classList.add("rct-pattern"),+i.pattern>=0){var c=e.STOCK[+i.pattern%e.STOCK.length];r=c.path,n=c.style,u=!c.fill,o=c.width||20,s=c.height||20}else(0,NR.isString)(i.pattern)&&(r=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",r),n&&(0,NR.assignObj)(l.style,n),i.style&&(0,NR.assignObj)(l.style,i.style),u&&(l.style.fill="none");var p=i.backgroundStyle;if((0,NR.isString)(p)||(0,NR.isObject)(p)){var h=t.createElementNS(NR.SVGNS,"rect");a.append(h),h.style.fill=(0,NR.isString)(p)?p:p.fill,h.setAttribute("width",String(o)),h.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}(BR);VR.Pattern=FR;var zR=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return LR(e,t),e.prototype.prepare=function(){var t=this.source;this._colors=(0,NR.isArray)(t.colors)?t.colors.slice():[],"random"===t.mode?this._index=-1:("shuffle"===t.mode&&RR.Utils.shuffle(this._colors),this._index=0)},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=(0,NR.isArray)(e.colors)?e.colors:[]},e.TYPE="colors",e}(BR);VR.ColorList=zR;var $R=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return LR(e,t),e.prototype.prepare=function(){var t=this,e=this.source.rootUrl||"";this._images=[],this._map={},this.source.images.forEach((function(i){if((0,NR.isString)(i))t._images.push(e+i);else{var r=e+i.url;i.name&&(t._map[i.name]=r),t._images.push(r)}}))},e.prototype.getImage=function(t){return(0,NR.isString)(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}(BR);VR.ImageList=$R;var HR=function(){function t(){this._items=[],this._map={}}return t.prototype.load=function(t){var e=this;if(this._items=[],(0,NR.isArray)(t))return t.forEach((function(t){var i=e.$_loadItem(t);i&&(i.hasDef()?e._items.push(i):e._map[t.id]=i)})),this._items.map((function(t){return t.source}));if((0,NR.isObject)(t)){var i=this.$_loadItem(t);return i&&(i.hasDef()?this._items.push(i):this._map[t.id]=i),i.source}},t.prototype.updateOptions=function(t,e){},t.prototype.register=function(t,e){this._items.forEach((function(i){var r=i.getEelement(t,i.source);r.setAttribute(MR.RcElement.ASSET_KEY,"1"),e.addDef(r)}))},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.prepareRender=function(){for(var t in this._items.forEach((function(t){t.prepare()})),this._map)this.get(t).prepare()},Object.defineProperty(t.prototype,"options",{get:function(){return this._items.map((function(t){return t.source}))},enumerable:!1,configurable:!0}),t.prototype.$_loadItem=function(t){if((0,NR.isObject)(t)&&t.id){var e=t.type;if(e||(null!=t.pattern?e=FR.TYPE:(0,NR.isArray)(t.colors)?e=zR.TYPE:(0,NR.isArray)(t.images)&&(e=$R.TYPE)),e)switch(e.toLowerCase()){case IR.TYPE:return new IR(t);case GR.TYPE:return new GR(t);case FR.TYPE:return new FR(t);case zR.TYPE:return new zR(t);case $R.TYPE:return new $R(t)}}},t}();VR.AssetCollection=HR,function(e){var i=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),r=t&&t.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s},n=t&&t.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.BackgroundImage=e.IconedText=e.ChartText=e.DARK_COLOR=e.BRIGHT_COLOR=e.ChartItemCollection=e.ChartItem=e.merge=e.extend=e.n_chart_item=void 0;var o=cM,s=iM,a=kM,l=fM,u=GM,c=wM,p=rM,h=VR;e.n_chart_item=0;e.extend=function(t,e){var i={};for(var r in t)i[r]=t[r];for(var r in e)i[r]=e[r];return i};var f=["__proto__","constructor","prototype"];e.merge=function(t,i){var r=(0,s.isObject)(t)?t:{};for(var n in i)if(Object.prototype.hasOwnProperty.call(i,n)&&!f.includes(n)){var a=i[n];(0,s.isArray)(a)?r[n]=a.slice(0):a instanceof Date?r[n]=new Date(a):(0,s.isObject)(a)?a._obj instanceof o.DataObject?r[n]=a:r[n]=(0,e.merge)(r[n],a):r[n]=a}return r};var d=function(t){function r(i){var r=t.call(this)||this;return r.chart=i,e.n_chart_item++,r}return i(r,t),r.prototype.init=function(){var t=this._op=(0,e.merge)({},this.constructor.defaults);return this._doInit(t),this._doApply(t),t},r.prototype._doInit=function(t){},r.prototype._initObject=function(){return this.init(),this},Object.defineProperty(r.prototype,"options",{get:function(){return this._op},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"visible",{get:function(){return this._isVisible()},set:function(t){this.updateOption("visible",t)},enumerable:!1,configurable:!0}),r.prototype._isVisible=function(){return this._op.visible},r.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},r.prototype.loadOptions=function(t){return this.clearOptions(),this._load(t),this},r.prototype.saveOptions=function(t){void 0===t&&(t=!0);var e={};return this._doSave(e,this.constructor.defaults,t),e},r.prototype.$_updateChildren=function(t){var e=this;if(this._children)this._children.forEach((function(i){return t.hasOwnProperty(i)&&e[i].updateOptions(t[i])}));else for(var i in this._children=[],this){var n=this[i];n instanceof r&&(this._children.push(i),t.hasOwnProperty(i)&&n.updateOptions(t[i]))}},r.prototype.$_mergeOptions=function(t,e){var i=(0,s.isObject)(t)?t:{};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var a=e[n];(0,s.isArray)(a)?i[n]=a.slice(0):a instanceof Date?i[n]=new Date(a):(0,s.isObject)(a)?a instanceof o.DataObject?i[n]=a:a._obj instanceof o.DataObject?i[n]=a._obj:this[n]instanceof r||(i[n]=this.$_mergeOptions(i[n],a)):i[n]=a}},r.prototype.updateOptions=function(t,e){void 0===e&&(e=!0);var i=this._op;return void 0===t||this._doSetSimple(t)||this.$_mergeOptions(i,t),this.$_applyOptions(i),(0,s.isObject)(t)&&this.$_updateChildren(t),e&&this._changed(),this},r.prototype.updateOption=function(t,e,i,n){if(void 0===i&&(i=!0),void 0===n&&(n=!1),this[t]instanceof r)this[t].updateOptions(e);else{var o=this._op;(n||e!==o[t])&&(o[t]=e,this.$_applyOptions(o),i&&this._changed())}return this},r.prototype.toggleOption=function(t,e){void 0===e&&(e=!0);var i=this._op,n=i[t];return i.hasOwnProperty(t)&&(this[t]instanceof r?this[t]._doSetSimple(!(0,s.isBoolean)(n)||!n):(i[t]=!(0,s.isBoolean)(n)||!n,this.$_applyOptions(i),e&&this._changed())),this},r.prototype.removeOption=function(t,e){void 0===e&&(e=!0);var i=this._op;if(i.hasOwnProperty(t))if(this[t]instanceof r)this[t].clearOptions();else{delete i[t];var n=self.constructor.defaults;s.hasOwnProperty.call(n,t)&&(i[t]=n[t]),this.$_applyOptions(i),e&&this._changed()}return this},r.prototype.clearOptions=function(t){void 0===t&&(t=!0);var i=function(t){if(t){var r=t._op=(0,e.merge)({},t.constructor.defaults);return t.$_applyOptions(r),t._children.forEach((function(e){r[e]=i(t[e])})),r}};return i(this),t&&this._changed(),this},r.prototype.setStyle=function(t,e,i){if(void 0===i&&(i=!0),!t)return this;var r=this._op.style,n=!1;return null!==e&&""!==e||(e=void 0),void 0===e?r&&s.hasOwnProperty.call(r,t)&&(delete r[t],n=!0):r&&r[t]==e||(r||(r=this._style=this._op.style={}),r[t]=String(e),n=!0),n&&(this.$_applyOptions(this._op),i&&this._changed()),this},r.prototype.setStyles=function(t,e,i){void 0===e&&(e=!1),void 0===i&&(i=!0);var r=!1,n=this._op.style;if(e&&n&&(delete this._op.style,r=!0,n=this._style=void 0),(0,s.isObject)(t)){for(var o in n||(n=this._style=this._op.style={}),t){var a=t[o];n[o]!=a&&(null!==a&&""!==a||(a=void 0),void 0===a?delete n[o]:n[o]=t[o],r=!0)}r=!0}return r&&(this.$_applyOptions(this._op),i&&this._changed()),this},r.prototype._prepareRender=function(){this._doPrepareRender(this.chart)},r.prototype._changed=function(t){var e;null===(e=this.chart)||void 0===e||e._modelChanged(this,t)},r.prototype._doLoad=function(t,e){for(var i in e)if(e.hasOwnProperty(i)){var n=e[i];this._doLoadProp(i,n)||(this[i]instanceof r?t[i]=this[i]._load(n):(0,s.isArray)(n)?t[i]=n.slice(0):n instanceof Date?t[i]=new Date(n):(0,s.isObject)(n)?n._obj instanceof o.DataObject?t[i]=n._obj:t[i]=(0,s.assignObj)({},n):t[i]=n)}},r.prototype._doSave=function(t,e,i){var n=this._op;for(var o in n)if(n.hasOwnProperty(o))if(i&&this[o]instanceof r)t[o]=this[o].saveOptions(!0);else{var a=n[o];(0,s.isArray)(a)?t[o]=this._doSaveArray(o,a)||a.slice():a!==e[o]&&(t[o]=a)}},r.prototype._doSaveArray=function(t,e){},r.prototype._doSetSimple=function(t){if((0,s.isBoolean)(t))return this._op.visible=t,!0},r.prototype._doLoadProp=function(t,e){if("visible"===t)return this._op.visible=e,!0},r.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))},r.prototype._setDim=function(t,e){var i="_".concat(e);t[e]!==this[i]&&(this["".concat(i,"Dim")]=(0,c.parsePercentSize)(this[i]=t[e],!0))},r.prototype._setDims=function(t){for(var e=this,i=[],r=1;r<arguments.length;r++)i[r-1]=arguments[r];i.forEach((function(i){return e._setDim(t,i)}))},r.prototype._doApply=function(t){this._style=t.style},r.prototype._doPrepareRender=function(t){},r.REFRESHED="refreshed",r.defaults={visible:!0},r}(l.RcObject);e.ChartItem=d;var _=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}();e.ChartItemCollection=_,e.BRIGHT_COLOR="white",e.DARK_COLOR="black";var y=function(t){function o(){var e=t.apply(this,n([],r(arguments),!1))||this;return e._outlineThickness=2,e._outlineWidth="2px",e}return i(o,t),o.prototype._setOutlineThickness=function(t){t!==this._outlineThickness&&(this._outlineThickness=t,this._outlineWidth=(0,s.pickNum)(t,2)+"px")},o.prototype._setNumberSymbols=function(t){t!==this._numberSymbols&&(this._numberSymbols=t,this._numSymbols=t&&t.split(","))},o.prototype._setNumberFormat=function(t){t!==this._numberFormat&&(this._numberFormat=t,this._numberFormatter=t?a.NumberFormatter.getFormatter(t):null)},o.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},o.prototype.setText=function(t){this._setText(t)},o.prototype.buildSvg=function(t,e,i,r,n,o){this._richTextImpl&&(this._richTextImpl.build(t,i,r,n,o),e&&this._richTextImpl.build(e,i,r,n,o))},o.prototype.prepareRich=function(t){t?(this._richTextImpl||(this._richTextImpl=new u.SvgRichText),this._richTextImpl.setFormat(t)):this._richTextImpl=null},o.prototype._doSetSimple=function(e){return(0,s.isString)(e)?(this._op.text=e,!0):t.prototype._doSetSimple.call(this,e)},o.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)},o.prototype._getNumberText=function(t,e,i){if(p.Utils.isValidNum(t)){var r=this._numberFormatter,n=e&&this._numSymbols,o=void 0;return n&&(r&&(t=r.toNum(t)),o=p.Utils.scaleNumber(t,n,i)),r?o?r.toStr(o.value)+o.symbol:r.toStr(t):o?o.value+o.symbol:String(t)}return"NaN"},o.prototype._getText=function(t,e,i,r){var n=(0,s.isString)(t)?t:this._getNumberText(e,i,r)||e;return this._op.prefix&&(n=this._op.prefix+n),this._op.suffix&&(n+=this._op.suffix),n},o.defaults=(0,e.extend)(d.defaults,{effect:"none",autoContrast:!0,outlineThickness:2,numberSymbols:c.NUMBER_SYMBOLS,numberFormat:c.NUMBER_FORMAT}),o}(d);e.ChartText=y;var g=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return i(r,t),r.prototype.getIconPos=function(){return"default"===this._op.iconPosition?this.getDefaultIconPos():this._op.iconPosition},r.prototype._doPrepareRender=function(t){if(this._images=null,this._op.imageList){var e=t._assets.get(this._op.imageList);e instanceof h.ImageList&&(this._images=e)}this._root=this._op.iconRoot||""},r.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)),r=t.substring(e+2),n=Number.isFinite(+r)?+r:r;return i instanceof h.ImageList?i.getImage(n):r}var o=t.substring(0,t.indexOf("://"));return"http"==o||"https"==o?t:this._root+t}},r.defaults=(0,e.extend)(y.defaults,{iconPosition:"default",iconGap:2,iconHeight:16}),r}(y);e.IconedText=g;var v=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(d);e.BackgroundImage=v}(TM),function(e){var i=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0}),e.AnnotationCollection=e.Annotation=e.annotation_types=void 0;var r=iM,n=wM,o=TM;e.annotation_types={};var s=function(t){function s(e,i){var r=t.call(this,e)||this;return r.body=i,r._offsetX=0,r._offsetY=0,r.index=-1,r}return i(s,t),s.register=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];t.forEach((function(t){e.annotation_types[t.type]=t}))},s.prototype._type=function(){return this.constructor.type},Object.defineProperty(s.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"row",{get:function(){return this._row},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"col",{get:function(){return this._col},enumerable:!1,configurable:!0}),s.prototype.needClip=function(){return!0!==this._op.noClip},s.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}},s.prototype.getSize=function(t,e){var i,r,o=this.chart.isInverted(),s=this._op;if(this.body){var a=+s.x1,l=+s.x2,u=+s.y1,c=+s.y2;if(this._x=this._y=this._w=this._h=NaN,!isNaN(a)){var p=this.chart.getAxisOf(this,!0);o?this._y=e-p.getPos(e,a):this._x=p.getPos(t,a),isNaN(l)||(o?r=this._h=e-p.getPos(e,l)-this._y:i=this._w=p.getPos(t,l)-this._x)}if(!isNaN(u)){p=this.chart.getAxisOf(this,!1);o?this._x=p.getPos(t,u):this._y=e-p.getPos(e,u),isNaN(c)||(o?i=this._w=p.getPos(t,c)-this._x:r=this._h=e-p.getPos(e,c)-this._y)}}return isNaN(i)?i=(0,n.calcPercent)(this._widthDim,t):i<0&&(this._x+=i,i=-i),isNaN(r)?r=(0,n.calcPercent)(this._heightDim,e):r<0&&(this._y+=r,r=-r),{width:i,height:r}},s.prototype.getPosition=function(t,e,i,r,n,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+=(r-o)/2+a.x;break;case"right":l+=r-a.x-o;break;default:this._anchorObj?l+=(r-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+=(n-s)/2-a.y;break;case"bottom":u+=n-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}},s.prototype.refresh=function(){this._changed(o.ChartItem.REFRESHED)},s.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)},s.prototype._doApply=function(e){var i,n=this,o=function(t){if((0,r.isString)(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),this._row=isNaN(e.row)?NaN:e.row|0,this._col=isNaN(e.col)?NaN:e.col|0,(i=e.offsetX)!=n._offsetX&&(n._offsetXDim=o(n._offsetX=i)),function(t){t!=n._offsetY&&(n._offsetYDim=o(n._offsetY=t))}(e.offsetY),this._setDims(e,"width","height")},s.prototype._doPrepareRender=function(t){},s.defaults=(0,o.extend)(o.ChartItem.defaults,{front:!1,verticalAlign:"top",offsetX:0,offsetY:0,scope:"chart"}),s}(o.ChartItem);e.Annotation=s;var a=function(t){function e(e){var i=t.call(this,e.chart)||this;return i.owner=e,i._map={},i._visibles=[],i}return i(e,t),e.prototype.getVisibles=function(){return this._visibles.slice(0)},e.prototype.getPaneVisibles=function(t,e){return this._visibles.filter((function(i){var r=i.options.row,n=i.options.col;return t===r&&e===n}))},e.prototype.getAnnotation=function(t){var e=this._map[t];if(e instanceof s)return e},e.prototype.get=function(t){return(0,r.isString)(t)?this._map[t]:this._items[t]},e.prototype.load=function(t,e){var i=this,n=this.owner.chart,o=this._items=[],s=this._map={};(0,r.isArray)(t)?t.forEach((function(t,r){o.push(i.$_loadItem(n,t,r,e?i.owner:void 0))})):(0,r.isObject)(t)&&o.push(this.$_loadItem(n,t,0,e?this.owner:void 0)),o.forEach((function(t){t.name&&(s[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):n._undef}))},e.prototype.$_loadItem=function(t,e,i,n){var o=e.type;o||(o=(0,r.isString)(e.imageUrl)?"image":(0,r.isString)(e.shape)?"shape":"text");var s=t._getAnnotationType(o);if(!s)throw new Error("Invalid annotation type: "+e.type);var a=new s(t,n);return a.init(),a.index=i,a._load(e),a},e}(o.ChartItemCollection);e.AnnotationCollection=a}(LM);var WR={};!function(e){var i=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),r=t&&t.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,i=e&&t[e],r=0;if(i)return i.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},n=t&&t.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s},o=t&&t.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.PaneYAxisMatrix=e.PaneXAxisMatrix=e.PaneAxisMatrix=e.PaneAxes=e.AxisCollection=e.Axis=e.AxisSectorLine=e.AxisZoom=e.AxisScrollBar=e.AxisLabel=e.AxisTick=e.AxisRangeGuide=e.AxisLineGuide=e.AxisGuide=e.AxisGuideLabel=e.AxisGrid=e.AxisGridRows=e.AxisUnitLabel=e.AxisTitle=e.AxisLine=e.AxisItem=e.axis_types=e.Crosshair=e.CrosshairFlag=void 0;var s=iM,a=FM,l=kM,u=wM,c=rM,p=TM,h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.defaults=(0,p.extend)(p.ChartItem.defaults,{minWidth:50}),e}(p.ChartItem);e.CrosshairFlag=h;var f=function(t){function e(e){var i=t.call(this,e.chart)||this;return i.axis=e,i}return i(e,t),e.prototype._doInit=function(t){this.options.flag=(this.flag=new h(this.axis.chart)).init(),this._args={chart:void 0,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?a.DatetimeFormatter.getFormatter(this._op.timeFormat).toStr(new Date(i),this.chart.startOfWeek):l.NumberFormatter.getFormatter(this._op.numberFormat).toStr(i)},e.prototype.moved=function(t,e,i){this._op.onChange&&(this._args.chart=this.chart.wrapper,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(0,s.isFunc)(e)?(this._op.visible=!0,this._op.onChange=e,!0):t.prototype._doSetSimple.call(this,e)},e.defaults=(0,p.extend)(p.ChartItem.defaults,{visible:!1,type:"auto",showAlways:!0,followPointer:!0,numberFormat:"#,##0.#",timeFormat:"yyyy-MM-dd HH:mm",markerHovering:!1}),e}(p.ChartItem);e.Crosshair=f,e.axis_types={};var d=function(t){function e(e){var i=t.call(this,null==e?void 0:e.chart)||this;return i.axis=e,i}return i(e,t),e}(p.ChartItem);e.AxisItem=d;var _=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype._isVisible=function(){return null==this._op.visible?this.axis._isX:this._op.visible},e.prototype._doSetSimple=function(e){return(0,s.isString)(e)?(this._op.visible=!0,this._op.style={stroke:e},!0):t.prototype._doSetSimple.call(this,e)},e.defaults=(0,p.extend)(d.defaults,{visible:void 0}),e}(d);e.AxisLine=_;var y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.getRotation=function(){var t=this._op;if(this.axis._isHorz)return 0;if(isNaN(this._rotation)){var e=t.writingMode;return c.isIE?"vertical"===e?0:"opposite"===this.axis.options.position?90:270:"vertical"===e||"vertical-lr"===e||"vertical-rl"===e?0:"opposite"===this.axis.options.position?90:270}return this._rotation},e.prototype.getTextOrientation=function(){return this._op.textOrientation||"upright"},e.prototype._isVisible=function(){return this._op.visible&&!(0,u.isNull)(this._op.text)},e.prototype._doSetSimple=function(e){return(0,s.isString)(e)?(this._op.text=e,!0):t.prototype._doSetSimple.call(this,e)},e.prototype._doApply=function(e){var i,r,n=this;t.prototype._doApply.call(this,e),i=e.rotation,r=+i,Number.isNaN(r)||90===r||270===r||-90===r||-270===r||(r=0),n._rotation=r},e.defaults=(0,p.extend)(d.defaults,{align:"middle",offset:0,gap:5}),e}(d);e.AxisTitle=y;var g=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype._isVisible=function(){return this._op.visible&&!(0,u.isNull)(this._op.text)},e.prototype._doSetSimple=function(e){return(0,s.isString)(e)?(this._op.text=e,!0):t.prototype._doSetSimple.call(this,e)},e.defaults=(0,p.extend)(d.defaults,{position:"end",gap:2}),e}(d);e.AxisUnitLabel=g;var v=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.getRows=function(){var t=this.axis,e=this._op.colors,i=e?e.length:0,r=[];if(this._op.belowColor&&t.isBaseVisible()&&r.push({axis:t,from:t.axisMin(),to:t.getBaseValue(),color:this._op.belowColor}),i>0){var n=t._ticks,o=0;n[0].value>t.axisMin()&&(e[o%i]&&r.push({axis:t,from:t.axisMin(),to:n[0].value,color:e[o%i]}),o++);for(var s=1;s<n.length;s++,o++)e[o%i]&&r.push({axis:t,from:n[s-1].value,to:n[s].value,color:e[o%i]});n[n.length-1].value<t.axisMax()&&e[o%i]&&r.push({axis:t,from:n[n.length-1].value,to:t.axisMax(),color:e[o%i]})}return r},e.prototype._doSetSimple=function(e){return(0,s.isString)(e)?(this._op.colors=[e,null],!0):(0,s.isArray)(e)?(this._op.colors=e,!0):t.prototype._doSetSimple.call(this,e)},e}(d);e.AxisGridRows=v;var m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype._doInit=function(t){t.rows=(this._rows=new v(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=(0,p.extend)(d.defaults,{visible:void 0,depthVisible:void 0}),e}(d);e.AxisGrid=m;var b=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.getDefaultIconPos=function(){return"left"},e.defaults=(0,p.extend)(p.IconedText.defaults,{position:"inside",align:"left",verticalAlign:"top",offsetX:3,offsetY:3}),e}(p.IconedText);e.AxisGuideLabel=b;var w=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype._doInit=function(t){t.label=(this._label=new b(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,o,a,l=this._op;if((0,s.isArray)(l.col)){try{for(var u=r(l.col),c=u.next();!c.done;c=u.next()){if(e==c.value)return!0}}catch(t){i={error:t}}finally{try{c&&!c.done&&(n=u.return)&&n.call(u)}finally{if(i)throw i.error}}return!1}if(!isNaN(l.col)&&e!=l.col)return!1;if((0,s.isArray)(l.row)){try{for(var p=r(l.row),h=p.next();!h.done;h=p.next()){if(t==h.value)return!0}}catch(t){o={error:t}}finally{try{h&&!h.done&&(a=p.return)&&a.call(p)}finally{if(o)throw o.error}}return!1}return!(!isNaN(l.row)&&t!=l.row)},e.defaults=(0,p.extend)(d.defaults,{front:!1,zindex:0}),e}(d);e.AxisGuide=w;var x=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(w);e.AxisLineGuide=x;var S=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(w);e.AxisRangeGuide=S;var P=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.canUseNumSymbols=function(){return!0},e.prototype._getLength=function(){return this._length},e.prototype._getGap=function(){return this._gap},e.prototype._doSetSimple=function(e){return c.Utils.canNumber(e)?(this._op.length=+e,!0):t.prototype._doSetSimple.call(this,e)},e.prototype._doPrepareRender=function(i){t.prototype._doPrepareRender.call(this,i),isFinite(this._op.length)?this._length=this._op.length:this._length=this.axis.label._inside?0:e.DEF_LENGTH,this._gap=this._op.gap||0},e.DEF_LENGTH=7,e.defaults=(0,p.extend)(d.defaults,{visible:!1,gap:3}),e}(d);e.AxisTick=P;var A=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 i(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,r=this._op,n=t.index;if(r.textCallback){var o=r.textCallback(this.axis.getTickLabelArgs(n,t.value));if(null!=o)return o}return 1==e?(0,s.pickProp)(null!==(i=r.lastText)&&void 0!==i?i:r.firstText,r.text):0==n?(0,s.pickProp)(r.firstText,r.text):n==e-1?(0,s.pickProp)(r.lastText,r.text):r.text},e.prototype.getLabelStyle=function(t,e){var i=this._op,r=t.index;if(i.styleCallback){var n=i.styleCallback(this.axis.getTickLabelArgs(r,t.value));if((0,s.isObject)(n))return n}return 1==e?i.lastStyle||i.firstStyle:0==r?i.firstStyle:r==e-1?i.lastStyle:void 0},e.prototype.getIcon=function(t){},e.prototype.getDefaultIconPos=function(){return this.axis._isHorz?"top":"right"},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),this._inside="inside"===e.location},e.prototype._doPrepareRender=function(e){t.prototype._doPrepareRender.call(this,e),this._domain.numberFormatter=this._numberFormatter},e.prototype._getText=function(t,e,i,r){return(0,s.isString)(t)?t:this._getNumberText(e,i,r)||e},e.defaults=(0,p.extend)(p.IconedText.defaults,{step:0,startStep:0,rows:0,maxRows:3,autoArrange:"rotate",overflow:"clip",firstOverflow:"pull",lastOverflow:"pull",overflowGap:12}),e}(p.IconedText);e.AxisLabel=A;var O=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(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=(0,p.extend)(d.defaults,{visible:!1,thickness:10,minThumbSize:32,gap:3,gapFar:3}),e}(d);e.AxisScrollBar=O;var C=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.clamp=function(t,e){return void 0===e&&(e=!0),e?c.Utils.clamp(t,this.min,this.max):c.Utils.clamp(t,Math.floor(this.min),Math.ceil(this.max))},t.prototype.resize=function(t,e,i){if(t>e){var r=t;t=e,e=r}var n=t!==this.start||e!==this.end,o=this.total(),s=this.axis.continuous();t=isNaN(t)?this.start:this.clamp(t,s);var a=(e=isNaN(e)?this.end:this.clamp(e,s))-t;if(n&&e>=t&&(isNaN(i)||a/o>=i)&&o/a>1)return this.axis._range={min:s?t:Math.floor(t),max:s?e:Math.ceil(e-1)},this.start=t,this.end=e,!0},t}();e.AxisZoom=C;var E=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(_);e.AxisSectorLine=E;var V=function(t){function a(e,i){var r=t.call(this,e)||this;return r._series=[],r._values=[],r._labelArgs={},r._seriesChanged=!1,r.guides=[],r._isX=i,r}return i(a,t),a.register=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];t.forEach((function(t){e.axis_types[t.type]=t,t.subtype&&(e.axis_types[t.subtype]=t)}))},a.prototype._animating=function(){return!isNaN(this._prevRate)},a.prototype._doInit=function(t){t.title=(this._title=new y(this)).init(),t.unitLabel=(this._unitLabel=new g(this)).init(),t.line=(this._line=new _(this)).init(),t.sectorLine=(this._sectorLine=new E(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 f(this)).init(),t.scrollBar=(this._scrollBar=new O(this)).init()},a.prototype._type=function(){return this.constructor.type},Object.defineProperty(a.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"row",{get:function(){return this._row},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"col",{get:function(){return this._col},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"title",{get:function(){return this._title},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"unitLabel",{get:function(){return this._unitLabel},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"line",{get:function(){return this._line},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"sectorLine",{get:function(){return this._sectorLine},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"tick",{get:function(){return this._tick},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"label",{get:function(){return this._label},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"grid",{get:function(){return this._grid},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"crosshair",{get:function(){return this._crosshair},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"scrollBar",{get:function(){return this._scrollBar},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"xy",{get:function(){return this._isX?"x":"y"},enumerable:!1,configurable:!0}),a.prototype.isEmpty=function(){return this._isEmpty},a.prototype._checkEmpty=function(){var t,e;if(this._series.length>0)try{for(var i=r(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},a.prototype.checkVisible=function(){return!0===this._op.visible||!1!==this._op.visible&&!this._isEmpty},a.prototype.getBaseValue=function(){return NaN},a.prototype.length=function(){return this._max-this._min},a.prototype.axisMin=function(){return this._min},a.prototype.axisMax=function(){return this._max},a.prototype.valueMin=function(){return this._min},a.prototype.valueMax=function(){return this._max},a.prototype.axisValueAt=function(t,e){return this.valueAt(t,e)},a.prototype.getStartAngle=function(){return u.ORG_ANGLE+u.DEG_RAD*(0,s.pickNum)(this._op.startAngle,0)},a.prototype.getTotalAngle=function(){return u.DEG_RAD*(0,s.maxv)(0,(0,s.minv)(360,(0,s.pickNum)(this._op.totalAngle,360)))},a.prototype.isArced=function(){return this._op.totalAngle>0&&this._op.totalAngle<360},a.prototype.getVisibleSeries=function(){var t=[];return this._series.forEach((function(e){e.visible&&t.push.apply(t,o([],n(e.getVisibleSeries()),!1))})),t},a.prototype.unitPad=function(){return 0},a.prototype.labelsVisible=function(){return this._label.visible&&this._ticks.length>0},a.prototype.getXStart=function(){return 0},a.prototype.dataToAxis=function(t){return t},a.prototype.axisToData=function(t){return t},a.prototype.value2Tooltip=function(t){return isNaN(t)?this.chart._tooltip.options.nanText:t},a.prototype.isBased=function(){return!1},a.prototype.isBaseVisible=function(){return this.axisMin()<this.getBaseValue()},a.prototype.disconnect=function(){this._series=[]},a.prototype.getSeries=function(){var t=[];return this._series.forEach((function(e){t.push.apply(t,o([],n(e.getVisibleSeries()),!1))})),t},a.prototype.getConnectableSeries=function(){var t=this,e=[];return this._series.forEach((function(i){i.connectable(t)&&e.push.apply(e,o([],n(i.getVisibleSeries()),!1))})),e},a.prototype.collectValues=function(){var t=this,e=this._values=[];this._isX?this._series.forEach((function(i){i.collectValues(t,i.needAxes()?e:null)})):(this._series.forEach((function(i){var r=i.needAxes()?[]:null;i.collectValues(t,r),r&&(i._yMin=s.minv.apply(void 0,o([],n(r),!1)),i._yMax=s.maxv.apply(void 0,o([],n(r),!1)),e.push.apply(e,o([],n(r),!1)))})),1===this._index&&console.log(e))},a.prototype.collectRanges=function(){var t=this;this._series.forEach((function(e){e.needAxes()&&e.collectRanges(t._values)}))},a.prototype.collectReferentValues=function(){var t=this;this._series.forEach((function(e){e.prepareReferents(t)})),this.$_checkEmpty()},a.prototype.$_checkEmpty=function(){this._isEmpty=this._checkEmpty()},a.prototype._prepare=function(){this._series=this._series.filter((function(t){return t._valid})),this.$_checkEmpty()},a.prototype._checkValues=function(t){return t},a.prototype._prepareRender=function(){var t,e,i=this._op.position;this._isHorz=this.chart.isInverted()?!this._isX:this._isX,this._isBetween=this.chart.isSplitted()&&"between"===i&&this._isX,this._isOpposite="opposite"===i,this._runPos=i,this._crosshair._setAxis(this._labelArgs.axis=this),this._doPrepareRender(),this._label._prepareRender(),this._tick._prepareRender();var n=this._series;if(this._isX&&this._prevSeries){if(!(this._seriesChanged=!c.Utils.equalArrays(n,this._prevSeries)))try{for(var o=r(n),a=o.next();!a.done;a=o.next()){if(a.value.seriesChanged()){this._seriesChanged=!0;break}}}catch(e){t={error:e}}finally{try{a&&!a.done&&(e=o.return)&&e.call(o)}finally{if(t)throw t.error}}}else this._seriesChanged=!1;if(this._values=this._checkValues(this._values),this._zoom||(this._range=this._doCalculateRange(this._values)),this._isX&&n.length>0)if(this.chart.isSplitted()){for(var l=[n[0].row],u=1;u<n.length;u++)l.indexOf(n[u].row)<0&&l.push(n[u].row);l.forEach((function(t){var e=0,i=0;n.forEach((function(i){i.row==t&&i.isClusterable()&&(e+=(0,s.pickNum)(i.groupWidth(),1))})),n.forEach((function(r){if(r.row==t&&r.isClusterable()){var n=(0,s.pickNum)(r.groupWidth(),1)/e;r.setCluster(n,i),i+=n}}))}))}else{var p=0,h=0;n.forEach((function(t){t.isClusterable()&&(p+=(0,s.pickNum)(t.groupWidth(),1))})),n.forEach((function(t){if(t.isClusterable()){var e=(0,s.pickNum)(t.groupWidth(),1)/p;t.setCluster(e,h),h+=e}}))}},a.prototype.afterRender=function(){this._seriesChanged=!1,this._prevSeries=this._series,this._zooming=!1},a.prototype._buildTicks=function(t,e){this._ticks=this._doBuildTicks(this._range.min,this._range.max,this._vlen=t,e),this._labelArgs.count=this._ticks.length},a.prototype._calcPoints=function(t,e){var i=this;this._ticks.forEach((function(e){return e.pos=i.getPos(t,e.value)}))},a.prototype.polarOff=function(){return 0},a.prototype.getLabelLength=function(t,e){return this.getUnitLen(t,e)},a.prototype.getValue=function(t){return null==t?NaN:parseFloat(t)},a.prototype.incStep=function(t,e){return t+c.Utils.getNumber(e)},a.prototype.contains=function(t){return t>=this._min&&t<=this._max},a.prototype.trimRange=function(t,e){return[(0,s.maxv)(t,this._min),(0,s.minv)(e,this._max)]},a.prototype.resetZoom=function(){this._zoom&&(this._zoom=null,this._zooming=!0,this._changed())},a.prototype._prepareZoom=function(){return this._zoom||(this._zoom=new C(this),this._zoom.start=this._zoom.min=this._min,this._zoom.end=this._zoom.max=this._max),this._zoom},a.prototype.zoom=function(t,e,i){void 0===i&&(i=NaN);var r=this._prepareZoom(),n=r.resize(t,e,i);return n&&(r.isFull()&&(this._zoom=null),this._zooming=!0,this._changed()),n},a.prototype.isZoomed=function(){return!!this._zoom},a.prototype.hasBreak=function(){return!1},a.prototype.isBreak=function(t){return!1},a.prototype.getTickLabelArgs=function(t,e){return this._labelArgs.chart=this.chart.wrapper,this._labelArgs.index=t,this._labelArgs.value=e,this._labelArgs},a.prototype.getXLabel=function(t){return t},a.prototype.setPrevRate=function(t){this._prevRate=t},a.prototype.prev=function(t){return isNaN(this._prevRate)?t:this._op.reversed?t+(this._vlen-t)*(this._prevRate-1):t*this._prevRate},a.prototype._posValue=function(){var t=this._op.position;return"opposite"===t?-1:"between"===t?0:1},a.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)},a.prototype._doApply=function(e){var i=this,r=this.guides,n=function(t){var e;t!==i._guides&&(i._guides=t,e=(0,s.isArray)(t)?t:[t],r.length=0,e.forEach((function(t){var e;(e="range"===t.type?new S(i):"line"===t.type||isNaN(t.startValue)||isNaN(t.endValue)?new x(i):new S(i)).init(),e._load(t),r.push(e)})))};t.prototype._doApply.call(this,e),this._name=e.name||"-axis-".concat(this._index+1),this._row=(0,s.pickNum)(Math.max(0,e.row|0),0),this._col=(0,s.pickNum)(Math.max(0,e.col|0),0),s.hasOwnProperty.call(e,"guide")?n(e.guide):s.hasOwnProperty.call(e,"guides")&&n(e.guides)},a.prototype._setMinMax=function(t,e){this._min=t,this._max=e,this._single=t===e},a.prototype._connect=function(t){t&&this._series.indexOf(t)<0&&this._series.push(t)},a.prototype._doCalculateRange=function(t){return{min:t.length>0?(0,u.fixnum)(s.minv.apply(void 0,o([],n(t),!1))||0):NaN,max:t.length>0?(0,u.fixnum)(s.maxv.apply(void 0,o([],n(t),!1))||0):NaN}},a.defaults=(0,p.extend)(p.ChartItem.defaults,{visible:void 0,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}),a}(p.ChartItem);e.Axis=V;var L=function(t){function e(e,i){var r=t.call(this,e)||this;return r._map=new Map,r.isX=i,r}return i(e,t),e.prototype._clear=function(){},e.prototype.load=function(t){var e=this,i=this.chart;(0,s.isArray)(t)?t.forEach((function(t,r){return e._items.push(e.$_loadAxis(i,t,r))})):this._items.push(this.$_loadAxis(i,t,0)),this._items.forEach((function(t){t.name&&e._map.set(t.name,t)}))},e.prototype.visibles=function(){return this._items.filter((function(t){return t.checkVisible()}))},e.prototype.contains=function(t){return this._items.indexOf(t)>=0},e.prototype.get=function(t){return(0,s.isString)(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.collectReferentValues=function(){this._items.forEach((function(t){t.collectReferentValues()}))},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,e){this._items.sort((function(t,e){return t.isBased()?1:e.isBased()?-1:0})).forEach((function(i){(e<=2||i._isHorz)&&i._buildTicks(t,e)}))},e.prototype.connect=function(t){var e,i=this.isX,r=this._items,n=t.options,o=i?n.xAxis:n.yAxis;if((0,s.isNumber)(o)&&o>=0&&o<r.length?e=r.find((function(t){return t._index===o})):(0,s.isString)(o)&&(e=r.find((function(t){return t.options.name===o}))),e||(e=r[0]),e&&this.chart.isValidAxis(e))return e._connect(t),this.isX?t.setCol(e.col):t.setRow(e.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=r(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,o,a,l=t._getAxisType(e.type);if(!l){var c=void 0;if((0,s.isArray)(e.categories))c="category";else if(this.isX){var p=t._getSeries()._internalItems();if(p.length>0){c="category";try{for(var h=r(p),f=h.next();!f.done;f=h.next()){var d=f.value;if(!d.canCategorized()){if(e.name&&d.options.xAxis===e.name){c=void 0;break}if(d.options.xAxis===i){c=void 0;break}if((0,u.isNull)(d.options.xAxis)&&0===i){c=void 0;break}}}}catch(t){n={error:t}}finally{try{f&&!f.done&&(o=h.return)&&o.call(h)}finally{if(n)throw n.error}}}}else c=null===(a=t._getSeries().first)||void 0===a?void 0:a.defYAxisType();c&&(l=t._getAxisType(c))}l||(l=t._getAxisType("linear"));var _=new l(t,this.isX);return _._index=i,_.init(),_._load(e),_._isPolar=t.isPolar(),_},e}(p.ChartItemCollection);e.AxisCollection=L;var T=function(){this._axes=[]};e.PaneAxes=T;var k=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,e){var i=this.isX;this._matrix.forEach((function(r,n){r.forEach((function(r,n){r._axes.forEach((function(r){r.isBased()||r._buildTicks(t[i?r.options.col:r.options.row],e)}))}))})),this._matrix.forEach((function(r,n){r.forEach((function(r,n){r._axes.forEach((function(r){r.isBased()&&r._buildTicks(t[i?r.options.col:r.options.row],e)}))}))}))},t.prototype._calcPoints=function(t,e){var i=this.isX;this._matrix.forEach((function(r){r.forEach((function(r,n){r._axes.forEach((function(r){var n=i?r.options.col:r.options.row;r._calcPoints(t[n],e)}))}))}))},t}();e.PaneAxisMatrix=k;var N=function(t){function e(e){return t.call(this,e,!0)||this}return i(e,t),e.prototype._prepare=function(t,e,i){for(var r=this._matrix=new Array(e+1),n=0;n<r.length;n++){r[n]=[];for(var o=0;o<i;o++)r[n].push(new T)}t.forEach((function(t){var i,n,o=t.options.position,s=t.row;"opposite"===o?(s++,t._runPos=o):s<e-1&&"between"===o?(s++,t._runPos="normal"):t._runPos=o,null===(n=null===(i=r[s])||void 0===i?void 0:i[t.col])||void 0===n||n._axes.push(t)}))},e}(k);e.PaneXAxisMatrix=N;var M=function(t){function e(e){return t.call(this,e,!1)||this}return i(e,t),e.prototype._prepare=function(t,e,i){for(var r=this._matrix=new Array(e),n=0;n<r.length;n++){r[n]=[];for(var o=0;o<=i;o++)r[n].push(new T)}t.forEach((function(t){var e,n,o=t.options.position,s=t.col;"opposite"===o?(s++,t._runPos=o):t.col<i-1&&"between"===o?(s++,t._runPos="normal"):t._runPos=o,null===(n=null===(e=r[t.row])||void 0===e?void 0:e[s])||void 0===n||n._axes.push(t)}))},e}(k);e.PaneYAxisMatrix=M}(WR);var UR={},YR={},XR={},qR=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(XR,"__esModule",{value:!0}),XR.Widget=void 0;var ZR=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return qR(e,t),e.prototype._doPrepareRender=function(t){},e}(TM.ChartItem);XR.Widget=ZR,function(e){var i=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),r=t&&t.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s},n=t&&t.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.CircularGaugeGroup=e.CircularGauge=e.CircularGaugeLabel=e.GaugeLabel=e.GaugeRangeBand=e.GaugeRangeLabel=e.GaugeScale=e.GaugeScaleLabel=e.GaugeScaleTick=e.ValueGauge=e.GaugeCollection=e.GaugeGroup=e.Gauge=e.GaugeItem=e.GaugeBase=e.gauge_group_types=e.gauge_types=void 0;var o=iM,s=wM,a=rM,l=TM,u=XR;e.gauge_types={},e.gauge_group_types={};var c=function(t){function e(){var e=t.apply(this,n([],r(arguments),!1))||this;return e.index=-1,e}return i(e,t),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,"row",{get:function(){return this._row},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"col",{get:function(){return this._col},enumerable:!1,configurable:!0}),e.prototype.getSize=function(t,e){return{width:(0,s.calcPercent)(this._widthDim||this._sizeDim,t,t),height:(0,s.calcPercent)(this._heightDim||this._sizeDim,e,e)}},e.prototype.getLeft=function(t){return(0,s.calcPercent)(this._leftDim,t)},e.prototype.getRight=function(t){return(0,s.calcPercent)(this._rightDim,t)},e.prototype.getTop=function(t){return(0,s.calcPercent)(this._topDim,t)},e.prototype.getBottom=function(t){return(0,s.calcPercent)(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._row=(0,o.pickNum)(e.row|0,0),this._col=(0,o.pickNum)(e.col|0,0),this._setDims(e,"left","right","top","bottom","width","height","siz")},e.defaults=(0,l.extend)(u.Widget.defaults,{size:"100%"}),e}(u.Widget);e.GaugeBase=c;var p=function(t){function e(e){return t.call(this,e.chart)||this}return i(e,t),e}(l.ChartItem);e.GaugeItem=p;var h=function(t){function o(){var e=t.apply(this,n([],r(arguments),!1))||this;return e._gindex=-1,e}return i(o,t),o.register=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];t.forEach((function(t){e.gauge_types[t.type]=t}))},o._loadGauge=function(t,e,i){var r=t._getGaugeType(e.type);r||(r=t._getGaugeType(i||t.gaugeType));var n=new r(t);return n.init(),n._load(e),n},o.prototype.setGroup=function(t,e){this._group=t,this._gindex=e},o.defaults=(0,l.extend)(c.defaults,{duration:500}),o}(c);e.Gauge=h;var f=function(t){function s(){var e=t.apply(this,n([],r(arguments),!1))||this;return e._gauges=[],e._visibles=[],e}return i(s,t),s.register=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];t.forEach((function(t){e.gauge_group_types[t.type]=t,e.gauge_group_types[t.gaugeType]=t}))},Object.defineProperty(s.prototype,"gauges",{get:function(){return this._gauges.slice(0)},enumerable:!1,configurable:!0}),s.prototype.count=function(){return this._gauges.length},s.prototype.isEmpty=function(){return this._gauges.length<1},s.prototype.visibles=function(){return this._visibles.slice(0)},s.prototype.get=function(t){return this._gauges[t]},s.prototype.getVisible=function(t){return this._visibles[t]},s.prototype.calcedMinMax=function(){return{min:this._op.minValue,max:this._op.maxValue}},s.prototype._doApply=function(e){t.prototype._doApply.call(this,e),o.hasOwnProperty.call(e,"children")&&this.$_loadGauges(this.chart,e.children)},s.prototype._doSaveArray=function(t,e){if("children"===t)return this._gauges.map((function(t){return t.saveOptions()}))},s.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()}))},s.prototype.$_loadGauges=function(t,e){var i=this,r=this._gaugesType();(0,o.isArray)(e)?e.forEach((function(e,n){return i.$_add(h._loadGauge(t,e,r))})):(0,o.isObject)(e)&&this.$_add(h._loadGauge(t,e,r))},s.prototype.$_add=function(t){if(t._type()!==this._gaugesType())throw new Error("이 그룹에 포함될 수 없는 게이지입니다: "+t);this._gauges.push(t),t.index=this._gauges.length-1},s.prototype._setGroup=function(t,e){t.setGroup(this,e)},s.defaults=(0,l.extend)(c.defaults,{minValue:0}),s}(c);e.GaugeGroup=f;var d=function(t){function s(){var e=t.apply(this,n([],r(arguments),!1))||this;return e._map={},e._visibles=[],e._gauges=[],e}return i(s,t),Object.defineProperty(s.prototype,"firstGauge",{get:function(){return this._gauges[0]},enumerable:!1,configurable:!0}),s.prototype.isEmpty=function(t){return(t?this._visibles:this._items).length<1},s.prototype.getVisibles=function(){return this._visibles.slice(0)},s.prototype.getPaneVisibles=function(t,e){return this._visibles.filter((function(i){var r=i.row||0,n=i.col||0;return t===r&&e===n}))},s.prototype.getGauge=function(t){var e=this._map[t];if(e instanceof h)return e},s.prototype.get=function(t){return(0,o.isString)(t)?this._map[t]:this._items[t]},s.prototype.load=function(t){var e=this,i=this.chart,r=this._items=[],n=this._map={};(0,o.isArray)(t)?t.forEach((function(t,n){r.push(e.$_loadItem(i,t,n))})):(0,o.isObject)(t)&&r.push(this.$_loadItem(i,t,0)),r.forEach((function(t){if(t.name&&(n[t.name]=t),t instanceof f)for(var i=0;i<t.count();i++){var r=t.get(i);r.name&&(n[r.name]=r),e._gauges.push(r)}else e._gauges.push(t)})),i._op.gauge=this._gauges.map((function(t){return t.options}))},s.prototype.prepareRender=function(){this._visibles=this._items.filter((function(t){return t.visible})),this._visibles.forEach((function(t){return t._prepareRender()}))},s.prototype.$_loadItem=function(t,i,r){if(0===Object.keys(e.gauge_types).length&&0===Object.keys(e.gauge_group_types).length)throw new Error("The gauge feature cannot be used without the required 'gauge' module. For installation and usage instructions, please visit: https://www.realchart.co.kr/guide/modules");var n=(0,o.isArray)(i.children)&&t._getGaugeGroupType(i.type||t.gaugeType);if(n||(n=t._getGaugeType(i.type||t.gaugeType)),!n)throw new Error("Invalid gauge type: "+i.type);var s=new n(t);return s.init(),s._load(i),s.index=r,s},s}(l.ChartItemCollection);e.GaugeCollection=d;var _=function(t){function e(){var e=t.apply(this,n([],r(arguments),!1))||this;return e._prevValue=0,e}return i(e,t),e.prototype.getValue=function(){return(0,o.maxv)(this._op.minValue,(0,o.minv)(this._op.maxValue,(0,o.pickNum)(this._runValue,this._op.value)))},e.prototype._setValueRate=function(t){this._runValue=this._prevValue+(this._op.value-this._prevValue)*t},e.prototype.updateValue=function(t){t!==this._op.value&&(this._op.value=t,this._changed())},e.prototype.getLabel=function(t,e){return t.options.text||(t.options.prefix||"")+"${value}"+(t.options.suffix||"")},e.prototype.getParam=function(t){switch(t){case"value":return(0,o.pickNum)(this._runValue,this._op.value);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=(0,l.extend)(h.defaults,{minValue:0,maxValue:100,value:0,animatable:!0}),e}(h);e.ValueGauge=_;var y=function(t){function e(e){var i=t.call(this,e.chart)||this;return i.scale=e,i}return i(e,t),e.defaults=(0,l.extend)(l.ChartItem.defaults,{reversed:!1,length:7}),e}(l.ChartItem);e.GaugeScaleTick=y;var g=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.getText=function(t){return a.Utils.isValidNum(t)?this._getText(null,t,(0,o.absv)(t)>1e3,!0):t},e.prototype.getDefaultIconPos=function(){return"left"},e}(l.IconedText);e.GaugeScaleLabel=g;var v=function(t){function e(e){var i=t.call(this,e.chart)||this;return i.gauge=e,i}return i(e,t),e.prototype._doInit=function(t){var e=this.chart;t.line=(this._line=new l.ChartItem(e)).init(),t.tick=(this._tick=new y(this)).init(),t.label=(this._label=new g(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=(0,o.pickNum)(i,e);var r=this._adjustMinMax((0,o.minv)(e,i),(0,o.maxv)(e,i)),n=r.min,s=r.max;return this._steps=this._buildSteps(t,n,s)},e.prototype.buildGroupSteps=function(t,e){var i=this._adjustGroupMinMax(e),r=i.min,n=i.max;return this._steps=this._buildSteps(t,r,n)},e.prototype.getRate=function(t){return((0,o.maxv)(this._min,t)-this._min)/(this._max-this._min)},e.prototype._adjustMinMax=function(t,e){var i=this.gauge;return t=(0,o.pickNum)(i.options.minValue,t),e=(0,o.pickNum)(i.options.maxValue,e),this._min=(0,o.minv)(t,e),this._max=(0,o.maxv)(e,t),{min:this._min,max:this._max}},e.prototype._adjustGroupMinMax=function(t){var e=this.gauge,i=e.options.minValue,s=e.options.maxValue;return isNaN(i)&&(i=o.minv.apply(void 0,n([],r(t),!1))),isNaN(s)&&(s=o.maxv.apply(void 0,n([],r(t),!1))),this._min=(0,o.minv)(i,s),this._max=(0,o.maxv)(s,i),{min:this._min,max:this._max}},e.prototype._buildSteps=function(t,e,i){var r,n=this._op;return r=Array.isArray(n.steps)?n.steps.slice(0):n.stepCount>0?this._getStepsByCount(n.stepCount,e,i):n.stepInterval>0?this._getStepsByInterval(n.stepInterval,e,i):n.stepPixels>0?this._getStepsByPixels(t,n.stepPixels,e,i):[e,i],this._min=r[0],this._max=r[r.length-1],r},e.prototype._getStepsByCount=function(t,e,i){var r=(i-e)/(t-1),n=Math.pow(10,Math.floor(Math.log10(r))),o=[];r=this._step=Math.ceil(r/n)*n,o.push((0,s.fixnum)(e));for(var a=1;a<t;a++)o.push((0,s.fixnum)(o[a-1]+r));return o},e.prototype._getStepsByInterval=function(t,e,i){var r,n=[];for(n.push(r=e);r<i;)n.push(r+=t);return this._step=t,n},e.prototype._getStepMultiples=function(t){return[1,2,2.5,5,10]},e.prototype._getStepsByPixels=function(t,e,i,r){var n=[],o=r-i;if(0===o)return n;var a,l=o/(Math.floor(t/e)+1-1),u=Math.pow(10,Math.floor(Math.log10(l))),c=this._getStepMultiples(u),p=0;if(l/=u,c)if(l>c[p]){for(;p<c.length-1;p++)if(l>c[p]&&l<c[p+1]){l=c[++p];break}}else l=c[p];for(l*=u,this._step=l,n.push((0,s.fixnum)(a=i));;){if((a+=l)>=r){n.push((0,s.fixnum)(r));break}n.push((0,s.fixnum)(a))}return n},e.defaults=(0,l.extend)(l.ChartItem.defaults,{position:"default",stepPixels:48,gap:8}),e}(l.ChartItem);e.GaugeScale=v;var m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.defaults=(0,l.extend)(l.ChartItem.defaults,{visible:!1}),e}(l.ChartItem);e.GaugeRangeLabel=m;var b=function(t){function e(e){var i=t.call(this,e.chart)||this;return i.gauge=e,i}return i(e,t),e.prototype._doInit=function(t){var e=this.chart;t.rangeLabel=(this._rangeLabel=new m(e)).init(),t.tickLabel=(this._tickLabel=new l.ChartItem(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?(0,s.calcPercent)(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,r=this;t.prototype._doApply.call(this,e),(i=e.ranges)!==r._ranges&&(r._ranges=i,r._runRanges=null),this._setDim(e,"thickness")},e.prototype.$_internalRanges=function(){if(!this._runRanges){var t=this.gauge.calcedMinMax();this._runRanges=(0,s.buildValueRanges)(this._ranges,t.min,t.max,!1,!0)||[]}return this._runRanges},e.defaults=(0,l.extend)(l.ChartItem.defaults,{visible:!1,position:"default",thickness:7,gap:5,itemGap:0}),e}(l.ChartItem);e.GaugeRangeBand=b;var w=function(t){function e(){var e=t.apply(this,n([],r(arguments),!1))||this;return e._domain={callback:function(t,e){return t.getParam(e)}},e}return i(e,t),e.prototype._doPrepareRender=function(t){this._domain.numberFormatter=this._numberFormatter},e.defaults=(0,l.extend)(l.ChartText.defaults,{animatable:!0}),e}(l.ChartText);e.GaugeLabel=w;var x=function(t){function e(){var e=t.apply(this,n([],r(arguments),!1))||this;return e._offsetX=0,e._offsetY=0,e}return i(e,t),e.prototype.getOffset=function(t,e){return{x:(0,s.calcPercent)(this._offsetXDim,t,0),y:(0,s.calcPercent)(this._offsetYDim,e,0)}},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),this._setDims(e,"offsetX","offsetY")},e.defaults=(0,l.extend)(w.defaults,{offsetX:0,offsetY:0}),e}(w);e.CircularGaugeLabel=x;var S=function(){function t(t){void 0===t&&(t=!1),t?(this.setCenterX("50%"),this.setCenterY("50%"),this.setValueRadius("100%")):(this.setCenterX(P.DEF_CENTER),this.setCenterY(P.DEF_CENTER),this.setRadius(P.DEF_RADIUS),this.setInnerRadius(P.DEF_INNER))}return t.prototype.centerX=function(){return this._centerX},t.prototype.setCenterX=function(t){t!==this._centerX&&(this._centerX=t,this._centerXDim=(0,s.parsePercentSize)((0,o.pickProp)(t,P.DEF_CENTER),!0))},t.prototype.centerY=function(){return this._centerY},t.prototype.setCenterY=function(t){t!==this._centerY&&(this._centerY=t,this._centerYDim=(0,s.parsePercentSize)((0,o.pickProp)(t,P.DEF_CENTER),!0))},t.prototype.radius=function(){return this._radius},t.prototype.setRadius=function(t){t!==this._radius&&(this._radius=t,this._radiusDim=(0,s.parsePercentSize)((0,o.pickProp)(t,P.DEF_RADIUS),!0))},t.prototype.innerRadius=function(){return this._innerRadius},t.prototype.setInnerRadius=function(t){t!==this._innerRadius&&(this._innerRadius=t,this._innerDim=(0,s.parsePercentSize)((0,o.pickProp)(t,P.DEF_INNER),!0))},t.prototype.valueRadius=function(){return this._valueRadius},t.prototype.setValueRadius=function(t){t!==this._valueRadius&&(this._valueRadius=t,this._valueDim=(0,s.parsePercentSize)(t,!0))},t.prototype.getCenter=function(t,e){return{x:(0,s.calcPercent)(this._centerXDim,t,t/2),y:(0,s.calcPercent)(this._centerYDim,e,e/2)}},t.prototype.getExtents=function(t){var e=(0,s.calcPercent)(this._radiusDim,t,t/2),i=(0,o.minv)(e,this._innerDim?(0,s.calcPercent)(this._innerDim,e):0),r=i+(e-i)/2;return{radius:e,inner:i,value:this._valueDim?(0,s.calcPercent)(this._valueDim,r):r,radiusThick:e-i}},t.prototype.prepareAngles=function(t,e){var i=(0,o.pickNum)(t%360,0),r=(0,o.maxv)(0,(0,o.minv)(360,(0,o.pickNum)(e,360)));this._startRad=s.ORG_ANGLE+s.DEG_RAD*i,this._handRad=s.DEG_RAD*i,this._sweepRad=s.DEG_RAD*r},t}(),P=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype._doInit=function(t){this._props=new S,t.label=(this._label=new x(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 S)},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=(0,l.extend)(_.defaults,{startAngle:0,sweepAngle:360,clockwise:!0}),e}(_);e.CircularGauge=P;var A=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype._doInit=function(t){this.props=new S,t.label=(this._label=new x(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,r=t.radius,n=(r-t.inner-i*(e-1))/e;this._visibles.forEach((function(t,e){var o=t._childProps;o.setRadius(r),o.setInnerRadius(r-n),r-=n+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=(0,l.extend)(f.defaults,{startAngle:0,sweepAngle:360,clockwise:!0,itemGap:4,labelGap:10}),e}(f);e.CircularGaugeGroup=A}(YR);var KR=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(UR,"__esModule",{value:!0}),UR.Body=UR.BodyDepth=UR.BodyDepthSide=UR.BodyDepthLine=UR.EmptyView=UR.ZoomButton=void 0;var JR=iM,QR=wM,tB=LM,eB=TM,iB=YR,rB=function(t){function e(e){var i=t.call(this,e.chart)||this;return i.body=e,i}return KR(e,t),e.prototype._isVisible=function(){return!1!==this._op.visible&&this.body.isZoomed()&&this.body.canZoom()},e.defaults=(0,eB.extend)(eB.ChartItem.defaults,{visible:void 0}),e}(eB.ChartItem);UR.ZoomButton=rB;var nB=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return KR(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=(0,eB.extend)(eB.ChartItem.defaults,{visible:void 0}),e}(eB.ChartText);UR.EmptyView=nB;var oB=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return KR(e,t),e.defaults=(0,eB.extend)(eB.ChartItem.defaults,{visible:!1}),e}(eB.ChartItem);UR.BodyDepthLine=oB;var sB=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return KR(e,t),e.prototype._doInit=function(t){t.line=(this._line=new oB(this.chart)).init(),t.endLine=(this._endLine=new oB(this.chart)).init(),t.gridLine=(this._gridLine=new oB(this.chart)).init()},Object.defineProperty(e.prototype,"line",{get:function(){return this._line},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"endLine",{get:function(){return this._endLine},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"gridLine",{get:function(){return this._gridLine},enumerable:!1,configurable:!0}),e.defaults=(0,eB.extend)(eB.ChartItem.defaults,{}),e}(eB.ChartItem);UR.BodyDepthSide=sB;var aB=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return KR(e,t),e.prototype._doInit=function(t){t.xSide=(this._xSide=new sB(this.chart)).init(),t.ySide=(this._ySide=new sB(this.chart)).init(),t.orgLine=(this._orgLine=new oB(this.chart)).init()},Object.defineProperty(e.prototype,"xSide",{get:function(){return this._xSide},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ySide",{get:function(){return this._ySide},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"orgLine",{get:function(){return this._orgLine},enumerable:!1,configurable:!0}),e.prototype._isVisible=function(){return this._op.visible&&this._op.length>=0},e.prototype._doSetSimple=function(e){return(0,JR.isNumber)(e)&&e>0?(this._op.length=e,this._op.visible=!0,!0):t.prototype._doSetSimple.call(this,e)},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),e.angle=(0,JR.minv)(60,(0,JR.maxv)(30,(0,JR.pickNum)(e.angle,45)))},e.defaults=(0,eB.extend)(eB.ChartItem.defaults,{visible:!1,length:32,angle:32}),e}(eB.ChartItem);UR.BodyDepth=aB;var lB=function(t){function e(e){var i=t.call(this,e)||this;return i._annotations=new tB.AnnotationCollection(i),i}return KR(e,t),e.prototype._doInit=function(t){t.depth=(this._depth=new aB(this.chart)).init(),t.image=(this._image=new eB.BackgroundImage(null)).init(),t.emptyView=(this._emptyView=new nB(this.chart)).init(),t.zoomButton=(this._zoomButton=new rB(this)).init()},e.prototype.anchorByName=function(t){var e,i=null===(e=this.chart._getGauges())||void 0===e?void 0:e.get(t);return i instanceof iB.GaugeBase&&this.contains(i)?i:this._annotations.get(t)},Object.defineProperty(e.prototype,"depth",{get:function(){return this._depth},enumerable:!1,configurable:!0}),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.canZoom=function(){return!this.chart.isEmpty(!0)&&("x"===this._op.zoomType||"y"===this._op.zoomType||"both"===this._op.zoomType)},e.prototype._getDepth=function(t,e){if(this._depth.visible&&this.chart._getSeries().canDepth()){var i=this._depth.options,r=i.length,n=i.angle,o=(0,JR.ceil)((0,JR.cos)(n*QR.DEG_RAD)*r),s=(0,JR.ceil)((0,JR.sin)(n*QR.DEG_RAD)*r);return{depth:r,angle:n,base:o,side:s,wBody:t-o,hBody:e-s}}},e.prototype.getRadius=function(t,e){return(0,QR.calcPercent)(this._radiusDim,(0,JR.minv)(t,e))},e.prototype.setPolar=function(t,e){return this._cx=(0,QR.calcPercent)(this._centerXDim,t),this._cy=(0,QR.calcPercent)(this._centerYDim,e),this._rd=(0,QR.calcPercent)(this._radiusDim,(0,JR.minv)(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,r=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"),JR.hasOwnProperty.call(e,"annotation")?r(e.annotation):JR.hasOwnProperty.call(e,"annotations")&&r(e.annotations)},e.prototype._doPrepareRender=function(t){this._annotations.prepareRender()},e.defaults=(0,eB.extend)(eB.ChartItem.defaults,{circular:!0,zoomType:"none",radius:"45%",centerX:"50%",centerY:"50%"}),e}(eB.ChartItem);UR.Body=lB;var uB={},cB=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),pB=t&&t.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s},hB=t&&t.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(uB,"__esModule",{value:!0}),uB.Exporter=void 0;var fB=TM,dB=function(t){function e(){var e=t.apply(this,hB([],pB(arguments),!1))||this;return e._isCompose=!1,e}return cB(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=(0,fB.extend)(fB.ChartItem.defaults,{useLibrary:!1,menus:["png","jpeg","svg"],fileName:"realchart",scale:1,hideNavigator:!1,hideScrollbar:!1,hideZoomButton:!1}),e}(fB.ChartItem);uB.Exporter=dB;var _B={},yB=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),gB=t&&t.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s},vB=t&&t.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(_B,"__esModule",{value:!0}),_B.Legend=_B.LegendItem=void 0;var mB=rM,bB=iM,wB=wM,xB=TM,SB=XR,PB=function(t){function e(e,i){var r=t.call(this,e.chart)||this;return r.legend=e,r.source=i,r}return yB(e,t),e.prototype.text=function(){return this.source.legendLabel()},e}(xB.ChartItem);_B.LegendItem=PB;var AB=function(t){function e(){var e=t.apply(this,vB([],gB(arguments),!1))||this;return e._items=[],e._visItems=[],e._itemMap={},e}return yB(e,t),e.prototype.items=function(){return this._visItems.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(0,wB.calcPercent)(this._maxWidthDim,t,t)},e.prototype.getMaxHeight=function(t){return(0,wB.calcPercent)(this._maxHeightDim,t,t)},e.prototype.getMarkerSize=function(){return(0,bB.pickNum)(this._op.markerSize,10)},e.prototype.getSources=function(t){var e=this._itemMap[t.source.legendKey()];return e?e.map((function(t){return t.source})):t.source},e.prototype._isVisible=function(){return!0===this._op.visible&&this._visItems.length>0||!1!==this._op.visible&&this._visItems.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);var r=this._op;this._location=(0,bB.pickProp)(r.location,"bottom"),this._items=this._getLegendSources().map((function(t){return new PB(i,t)})),r.reversed&&(this._items=this._items.reverse());var n=this._itemMap={},o=this._visItems=[];this._items.forEach((function(t){var e=t.source.legendKey();if(mB.Utils.isNotEmpty(e)&&""!==e){var i=n[e];i?i.push(t):(n[e]=[t],o.push(t))}else o.push(t)}))},e.prototype._getLegendSources=function(){return this.chart._getSeries().getLegendSources()},e.defaults=(0,xB.extend)(SB.Widget.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}(SB.Widget);_B.Legend=AB;var OB={},CB={},EB={};!function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.SvgShapes=t.ShapeNames=t._Shapes=void 0;var e=iM,i=wM;t._Shapes={CIRCLE:"circle",DIAMOND:"diamond",SQUARE:"square",TRIANGLE:"triangle",STAR:"star",ITRIANGLE:"itriangle",RECTANGLE:"rectangle"},t.ShapeNames=Object.values(t._Shapes);var r=.001,n=function(){function t(){}return t.line=function(t,e,i,r){return["M",t,e,"L",i,r]},t.polygon=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var i=0,r=["M",t[i],t[i+1]];i<t.length;i+=2)r.push("L",t[i],t[i+1]);return r.push("Z"),r},t.box=function(t,e,i,r){return["M",t,e,"L",i,e,"L",i,r,"L",t,r,"Z"]},t.rect=function(t){return this.rectangle(t.x,t.y,t.width,t.height)},t.rectangle=function(t,e,i,r){return["M",t,e,"h",i,"v",r,"h",-i,"Z"]},t.bar=function(t,i,r,n,o,s){var a=n>0,l=a?0:1;return o>0?s>0?(o=(0,e.minv)((0,e.absv)(n)/2,r/2,o),s=(0,e.minv)((0,e.absv)(n)/2,r/2,s),["M",t,i+(a?s:-s),"v",n+(a?-s-o:s+o),"a",o,o,0,0,l,o,a?o:-o,"h",r-2*o,"a",o,o,0,0,l,o,a?-o:o,"v",-n+(a?o+s:-o-s),"a",s,s,0,0,l,-s,a?-s:s,"h",2*s-r,"a",s,s,0,0,l,-s,a?s:-s,"Z"]):(o=(0,e.minv)((0,e.absv)(n)/2,r/2,o),["M",t,i,"v",n+(a?-o:o),"a",o,o,0,0,l,o,a?o:-o,"h",r-2*o,"a",o,o,0,0,l,o,a?-o:o,"v",-n-o,"Z"]):s>0?(s=(0,e.minv)((0,e.absv)(n)/2,r/2,s),["M",t,i+(a?s:-s),"v",n+(a?-s:+s),"h",r,"v",-n+(a?s:-s),"a",s,s,0,0,l,-s,a?-s:s,"h",2*s-r,"a",s,s,0,0,l,-s,a?s:-s,"Z"]):["M",t,i,"h",r,"v",n,"h",-r,"v",-n,"Z"]},t.square=function(t,i,r,n){var o=(0,e.minv)(r,n);return["M",t+=(r-o)/2,i+=(n-o)/2,"h",o,"v",o,"h",-o,"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.isCircled=function(t){return i.PI_2-t<r},t.arc=function(t,n,o,s,a,l,u,c){void 0===c&&(c=!1);var p=(0,e.minv)(i.PI_2,(0,e.absv)(l-a)),h=this.isCircled(p),f=p>i.PI?1:0,d=u?1:0,_=(0,e.cos)(a),y=(0,e.sin)(a),g=(0,e.cos)(l-=h?d?r:-.001:0),v=(0,e.sin)(l),m=[];return m.push("M",t+o*_,n+s*y,"A",o,s,0,f,d,t+o*g,n+s*v),h&&m.push("M",t,n),c&&m.push("Z"),m},t.sector=function(t,n,o,s,a,l,u,c){var p=(0,e.minv)(i.PI_2,(0,e.absv)(u-l)),h=this.isCircled(p),f=p>i.PI?1:0,d=c?1:0,_=(0,e.cos)(l),y=(0,e.sin)(l),g=(0,e.cos)(u-=h?d?r:-.001:0),v=(0,e.sin)(u),m=o*a,b=s*a,w=[];return w.push("M",t+o*_,n+s*y,"A",o,s,0,f,d,t+o*g,n+s*v),h?w.push("M",t+m*g,n+b*v):w.push("L",t+m*g,n+b*v),a>0&&w.push("A",m,b,0,f,1-d,t+m*_,n+b*y),w.push("Z"),w},t.arc3d=function(t,n,o,s,a,l,u,c,p){function h(t,e,i,r){S.push("M",t,e,"A",o,s,0,f,v,i,r),S.push("L",i,r+a),S.push("A",o,s,0,f,1-v,t,e+a),S.push("Z")}var f,d,_,y,g,v=c?1:0,m=(0,e.minv)(i.PI_2,(0,e.absv)(u-l)),b=this.isCircled(m),w=(l%i.PI_2+i.PI_2)%i.PI_2,x=(u%i.PI_2+i.PI_2)%i.PI_2,S=[];if(!b&&(v&&w<=i.PI&&x>=0&&x<w||!v&&x<=i.PI&&w>=0&&w<x))f=0,v?(h(d=t+o*(0,e.cos)(l),_=n+s*(0,e.sin)(l),y=t+o*(0,e.cos)(i.PI),g=n+s*(0,e.sin)(i.PI)),p&&(p.x1=d,p.y1=_),h(d=t+o*(0,e.cos)(0),_=n+s*(0,e.sin)(0),y=t+o*(0,e.cos)(u),g=n+s*(0,e.sin)(u)),p&&(p.x2=y,p.y2=g)):(h(d=t+o*(0,e.cos)(l),_=n+s*(0,e.sin)(l),y=t+o*(0,e.cos)(0),g=n+s*(0,e.sin)(0)),p&&(p.x1=d,p.y1=_),h(d=t+o*(0,e.cos)(i.PI),_=n+s*(0,e.sin)(i.PI),y=t+o*(0,e.cos)(u),g=n+s*(0,e.sin)(u)),p&&(p.x2=y,p.y2=g));else{d=t+o*(0,e.cos)(l),_=n+s*(0,e.sin)(l),y=t+o*(0,e.cos)(u-=b?v?r:-.001:0),g=n+s*(0,e.sin)(u),v?(w=b||w<=i.PI_2&&!(x>=w&&x<i.PI_2)?0:w,x=b||x>i.PI&&!(w<=x&&w>i.PI)?i.PI:x):(w=b||w>i.PI&&!(x<=w&&x>i.PI)?i.PI:w,x=b||x<i.PI_2&&!(w>=x&&w<i.PI_2)?0:x);var P=t+o*(0,e.cos)(w),A=n+s*(0,e.sin)(w),O=t+o*(0,e.cos)(x-=b?v?r:-.001:0),C=n+s*(0,e.sin)(x);f=(0,e.absv)(x-w)>i.PI?1:0,h(P,A,O,C),p&&(p.x1=d,p.y1=_,p.x2=y,p.y2=g)}return S},t.arc3dInner=function(t,n,o,s,a,l,u,c,p){var h=(0,e.minv)(i.PI_2,(0,e.absv)(u-l)),f=this.isCircled(h),d=c?1:0,_=t+o*(0,e.cos)(l),y=n+s*(0,e.sin)(l),g=t+o*(0,e.cos)(u-=f?d?r:-.001:0),v=n+s*(0,e.sin)(u),m=h>i.PI?1:0,b=[];return b.push("M",_,y,"A",o,s,0,m,d,g,v),b.push(f?"M":"L",g,v+a),b.push("A",o,s,0,m,1-d,_,y+a),p&&(p.x1=_,p.y1=y,p.x2=g,p.y2=v),b.push("Z"),b},t.diamond=function(t,e,i,r){return["M",t+i/2,e,"L",t+i,e+r/2,"L",t+i/2,e+r,"L",t,e+r/2,"Z"]},t.triangle=function(t,e,i,r){return["M",t+i/2,e,"L",t+i,e+r,"L",t,e+r,"Z"]},t.itriangle=function(t,e,i,r){return["M",t,e,"L",t+i,e,"L",t+i/2,e+r,"Z"]},t.star=function(t,i,r,n){var o=-Math.PI/2,s=t+r/2,a=i+n/2+(n/2-n/2*(0,e.sin)(o+6*Math.PI/5))/2,l=r/2,u=n/2,c=r/4,p=n/4,h=2*Math.PI/5,f=h/2,d=[];d.push("M",s+l*(0,e.cos)(o),a+u*(0,e.sin)(o));for(var _=0;_<5;_++)d.push("L",s+l*(0,e.cos)(o),a+u*(0,e.sin)(o),"L",s+c*(0,e.cos)(o+f),a+p*(0,e.sin)(o+f)),o+=h;return d.push("Z"),d},t.setShape=function(i,r,n,o){var s;switch(r){case"square":case"diamond":case"triangle":case"itriangle":case"star":case"rectangle":s=t[r](0,0,(0,e.maxv)(2*n,0),(0,e.maxv)(2*o,0));break;default:s=t.circle(n,o,(0,e.maxv)((0,e.minv)(n,o),0))}i.setPath(s)},t}();t.SvgShapes=n}(EB);var VB=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),LB=t&&t.__assign||function(){return LB=Object.assign||function(t){for(var e,i=1,r=arguments.length;i<r;i++)for(var n in e=arguments[i])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},LB.apply(this,arguments)};Object.defineProperty(CB,"__esModule",{value:!0}),CB.BackElement=CB.BoxElement=CB.RectElement=void 0;var TB=hj,kB=wM,NB=EB,MB=function(t){function e(e,i,r){void 0===i&&(i=kB._undef),void 0===r&&(r=kB._undef);var n=t.call(this,e,i,"rect")||this;return n.rect=r,n}return VB(e,t),e.create=function(t,i,r,n,o,s,a){return void 0===a&&(a=0),new e(t,i,{x:r,y:n,width:o,height:s,r:a})},Object.defineProperty(e.prototype,"rect",{get:function(){return this._rect&&LB({},this._rect)},set:function(t){if(t!==this._rect&&(this._rect=t&&LB({},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,r,n){return void 0===n&&(n=0),this.rect={x:t,y:e,width:i,height:r,r:n},this},e.prototype.setBox=function(t,e,i,r){this.rect=r<0?{x:t,y:e+r,width:i,height:-r}:{x:t,y:e,width:i,height:r}},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}(TB.RcElement);CB.RectElement=MB;var jB=function(t){function e(e,i){return t.call(this,e,i)||this}return VB(e,t),e.prototype.setBox=function(t,e,i,r){return this.setPath(NB.SvgShapes.box(t,e,i,r)),this},e}(TB.PathElement);CB.BoxElement=jB;var RB=function(t){function e(e,i){return void 0===i&&(i=kB._undef),t.call(this,e,"dlchart-point-back",i)||this}return VB(e,t),e}(MB);CB.BackElement=RB;var BB={};!function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.PictorialBarSeriesType=t._PictorialBarMode=t.PictogramSeriesType=t.WordCloudSeriesType=t.VectorSeriesType=t._ArrowHead=t._VectorOrigin=t.HeatmapSeriesType=t.TreemapSeriesType=t._TreemapAlgorithm=t.WaterfallSeriesType=t.ScatterSeriesType=t.PieSeriesType=t._PointLabelRotationMode=t.ParetoSeriesType=t.OhlcSeriesType=t.LollipopSeriesType=t.ArearangeSeriesType=t.HistogramSeriesType=t._BinsNumber=t.FunnelSeriesType=t.ErrorBarSeriesType=t.EqualizerSeriesType=t.DumbbellSeriesType=t.CircleBarSeriesGroupType=t.CircleBarSeriesType=t.CandlestickSeriesType=t.BumpSeriesType=t.BubbleSeriesType=t._BubbleSizeMode=t.BoxPlotSeriesType=t.BellCurveSeriesType=t.AreaSeriesType=t.SplineSeriesType=t.LineSeriesType=t._LineStepDirection=t._LineType=t.PieSeriesGroupType=t.BarSeriesGroupType=t.BarSeriesType=t.BarRangeSeriesType=t._PointLabelOverflow=t._PointLabelDedupeMode=t._PointLabelAlign=t.AreaSeriesGroupType=t.LineSeriesGroupType=t._SeriesGroupLayout=t._HoverEffect=t._TrendLineType=t._PointLabelPosition=void 0,t.BarSeriesTypes=t.RaceBarSeriesTypes=t.LineSeriesTypes=t.RaceLineSeriesTypes=t.AreaSeriesTypes=t.CandlestickSeriesTypes=t.RaceLineSeriesType=t.RaceBarSeriesType=t.PictorialSeriesType=void 0,t._PointLabelPosition={AUTO:"auto",DEFAULT:"default",HEAD:"head",FOOT:"foot",FAR:"far",INSIDE:"inside",OUTSIDE:"outside"},t._TrendLineType={LINEAR:"linear",LOGARITHMIC:"logarithmic",POLYNOMIAL:"polynomial",POWER:"power",EXPONENTIAL:"exponential",MOVING_AVERAGE:"movingAverage"},t._HoverEffect={NONE:"none",DEFAULT:"default"},t._SeriesGroupLayout={DEFAULT:"default",OVERLAP:"overlap",STACK:"stack",FILL:"fill"},t.LineSeriesGroupType="linegroup",t.AreaSeriesGroupType="areagroup",t._PointLabelAlign={NONE:"none",NEAR:"near",FAR:"far"},t._PointLabelDedupeMode={DISPLAY_ALL:"displayAll",PRESERVE_ORDER:"preserveOrder",LARGEST_FIRST:"largestFirst"},t._PointLabelOverflow={VISIBLE:"visible",HIDDEN:"hidden"},t.BarRangeSeriesType="barrange",t.BarSeriesType="bar",t.BarSeriesGroupType="bargroup",t.PieSeriesGroupType="piegroup",t._LineType={DEFAULT:"default",SPLINE:"spline",STEP:"step"},t._LineStepDirection={FORWARD:"forward",BACKWARD:"backward",CENTER:"center"},t.LineSeriesType="line",t.SplineSeriesType="spline",t.AreaSeriesType="area",t.BellCurveSeriesType="bellcurve",t.BoxPlotSeriesType="boxplot",t._BubbleSizeMode={WIDTH:"width",AREA:"area"},t.BubbleSeriesType="bubble",t.BumpSeriesType="bump",t.CandlestickSeriesType="candlestick",t.CircleBarSeriesType="circlebar",t.CircleBarSeriesGroupType="circlebargroup",t.DumbbellSeriesType="dumbbell",t.EqualizerSeriesType="equalizer",t.ErrorBarSeriesType="errorbar",t.FunnelSeriesType="funnel",t._BinsNumber={SQURE_ROOT:"squreRoot",STURGES:"struges",RICE:"rice"},t.HistogramSeriesType="histogram",t.ArearangeSeriesType="arearange",t.LollipopSeriesType="lollipop",t.OhlcSeriesType="ohlc",t.ParetoSeriesType="pareto",t._PointLabelRotationMode={ARC:"arc",ANGLE:"angle"},t.PieSeriesType="pie",t.ScatterSeriesType="scatter",t.WaterfallSeriesType="waterfall",t._TreemapAlgorithm={SQUARIFY:"squarify",STRIP:"strip",SLICE:"slice",SLICE_DICE:"sliceDice"},t.TreemapSeriesType="treemap",t.HeatmapSeriesType="heatmap",t._VectorOrigin={CENTER:"center",START:"start",END:"end"},t._ArrowHead={NONE:"none",CLOSE:"close",OPEN:"open"},t.VectorSeriesType="vector",t.WordCloudSeriesType="wordcloud",t.PictogramSeriesType="pictogram",t._PictorialBarMode={AUTO:"auto",BOTH:"both",FIGURE:"figure"},t.PictorialBarSeriesType="pictorialbar",t.PictorialSeriesType="pictorial",t.RaceBarSeriesType="racebar",t.RaceLineSeriesType="raceline",t.CandlestickSeriesTypes={CandlestickSeriesType:t.CandlestickSeriesType,OhlcSeriesType:t.OhlcSeriesType},t.AreaSeriesTypes={AreaSeriesType:t.AreaSeriesType,BellCurveSeriesType:t.BellCurveSeriesType},t.RaceLineSeriesTypes={RaceLineSeriesType:t.RaceLineSeriesType},t.LineSeriesTypes={LineSeriesType:t.LineSeriesType,AreaSeriesType:t.AreaSeriesType,SplineSeriesType:t.SplineSeriesType,BellCurveSeriesType:t.BellCurveSeriesType,RaceLineSeriesType:t.RaceLineSeriesType},t.RaceBarSeriesTypes={RaceBarSeriesType:t.RaceBarSeriesType},t.BarSeriesTypes={BarSeriesType:t.BarSeriesType,RaceBarSeriesType:t.RaceBarSeriesType}}(BB);var DB={},IB=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),GB=t&&t.__assign||function(){return GB=Object.assign||function(t){for(var e,i=1,r=arguments.length;i<r;i++)for(var n in e=arguments[i])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},GB.apply(this,arguments)},FB=t&&t.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,i=e&&t[e],r=0;if(i)return i.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(DB,"__esModule",{value:!0}),DB.RangedPoint=DB.ZValuePoint=DB.DataPointCollection=DB.DataPoint=void 0;var zB=iM,$B=wM,HB=0,WB="_deleted",UB=function(){function t(t){this.pid=HB++,this.visible=!0,this.source=t}return t.getSum=function(t){var e,i,r=0;try{for(var n=FB(t),o=n.next();!o.done;o=n.next()){var s=o.value;isNaN(s.y)||(r+=s.y)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(i=n.return)&&i.call(n)}finally{if(e)throw e.error}}return r},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 GB({},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:(0,zB.isArray)(e)?0===e.length?this.isNull=!0:this._readArray(t,e):(0,zB.isObject)(e)?(this._readObject(t,e),((0,zB.isArray)(e.drillDown)||(0,zB.isObject)(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.getPointIcon=function(t){return this.icon},t.prototype.swap=function(){var t=this.xPos;this.xPos=this.yPos,this.yPos=t},t.prototype.getParam=function(t){var e,i,r,n=this.source||{};if("value"===t)return null!==(e=n[t])&&void 0!==e?e:this.getValue();if(t.indexOf(".")>0){var o=t.split(/\./g),s=null!==(i=this[o[0]])&&void 0!==i?i:n[o[0]];if(null!=s&&"object"==typeof s)for(var a=1;a<o.length;a++)s=s[o[a]];return s}return null!==(r=this[t])&&void 0!==r?r:n[t]},t.prototype._setDeleted=function(){this._prev=this.copy(),this[WB]=!0},t.prototype._isDeleted=function(){return this[WB]},t.prototype.updateValues=function(t,e){if(this._prev=this.copy(),(0,zB.isObject)(e)?this.source=Object.assign((0,zB.isObject)(this.source)?this.source:{},e):(0,zB.isArray)(e)?this.source=e.slice(0):this.source=e,this.parse(t),this._valuesChangd(this._prev))return this._prev;this._prev=$B._undef},t.prototype.initValues=function(){},t.prototype.initPrev=function(t,e){e.yValue=t?t.axisMin():0},t.prototype.applyValueRate=function(t,e){},t.prototype._assignTo=function(t){return(0,zB.assignObj)(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,r=+i.colorField,n=+i.iconField;e.length>1?(this.x=e[(0,zB.pickNum)(i.xField,0)],this.y=e[(0,zB.pickNum)(i.yField,1)]):this.y=e[0],isNaN(r)||(this.color=e[r]),isNaN(n)||(this.icon=e[n])},t.prototype._readObject=function(t,e){this.x=(0,zB.pickProp4)(t._xFielder(e),e.x,e.name,e.label),this.y=(0,zB.pickProp3)(t._yFielder(e),e.y,e.value),this.color=(0,zB.pickProp)(t._colorFielder(e),e.color),this.icon=(0,zB.pickProp)(t._iconFielder(e),e.icon),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}();DB.DataPoint=UB;var YB=function(){function t(t){this._points=[],this._owner=t}return Object.defineProperty(t.prototype,"owner",{get:function(){return this._owner},enumerable:!1,configurable:!0}),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._internalPoints=function(){return this._points},t.prototype.get=function(t){return this._points[t]},t.prototype.pointAt=function(t,e){function i(t,e,i){return(0,zB.isObject)(t)?t.pid===e:t===i}return this._points.find((function(r){return i(t,r.pid,r.xValue)&&(void 0===e||i(e,r.pid,r.yValue))}))},t.prototype.contains=function(t){return this._points.indexOf(t)>=0},t.prototype.load=function(t){(0,zB.isArray)(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.clean=function(){this._points=this._points.filter((function(t){return!t[WB]}))},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.getRunPoints=function(t){var e=this._points,i=t._zoom;if(this._owner.needAxes()&&i){var r=t._range,n=t.axisToData(r.min),o=t.axisToData(r.max);return t.continuous()?e.filter((function(t){return t.xValue>=n&&o>=t.xValue})).slice(0):e.filter((function(t){return t.xValue>n-.5&&o+.5>t.xValue})).slice(0)}return e},t}();DB.DataPointCollection=YB;var XB=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return IB(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(0,zB.assignObj)(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=t.options,r=e.length>2?1:0;r>0&&(this.x=e[(0,zB.pickNum)(i.xField,0)]),this.y=e[(0,zB.pickNum)(i.yField,0+r)],this.z=e[(0,zB.pickNum)(i.zField,1+r)]}},e.prototype._readObject=function(e,i){t.prototype._readObject.call(this,e,i),this.isNull||(this.z=(0,zB.pickProp)(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=(0,zB.incv)(t.zValue,this.zValue,e)},e}(UB);DB.ZValuePoint=XB;var qB=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return IB(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(0,zB.assignObj)(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,r=e.length>2?1:0;this.low=e[(0,zB.pickNum)(i.lowField,0+r)],this.y=e[(0,zB.pickNum3)(i.highField,i.yField,1+r)],r>0&&(this.x=e[(0,zB.pickNum)(i.xField,0)])},e.prototype._readObject=function(e,i){t.prototype._readObject.call(this,e,i),this.isNull||(this.low=(0,zB.pickProp)(i[e.options.lowField],i.low),this.y=(0,zB.pickProp3)(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=(0,zB.incv)(t.lowValue,this.lowValue,e)},e}(UB);DB.RangedPoint=qB;var ZB={},KB={};Object.defineProperty(KB,"__esModule",{value:!0}),KB.TimeAxisType=KB.LogAxisType=KB.LinearAxisType=KB._AxisFit=KB.CategoryAxisType=KB._CategoryTickPosition=KB._AxisPosition=KB._CrosshairType=KB.AxisRangeGuideType=KB.AxisLineGuideType=KB._GuideLabelPosition=KB._AxisLabelOverflow=KB._AxisLabelArrange=KB._AxisLabelLocation=KB._AxisUnitLabelPosition=KB._AxisTitleAlign=void 0,KB._AxisTitleAlign={START:"start",MIDDLE:"middle",END:"end"},KB._AxisUnitLabelPosition={START:"start",END:"end"},KB._AxisLabelLocation={DEFAULT:"default",INSIDE:"inside"},KB._AxisLabelArrange={NONE:"none",ROTATE:"rotate",STEP:"step",ROWS:"rows"},KB._AxisLabelOverflow={HIDDEN:"hidden",PULL:"pull",TICK:"tick"},KB._GuideLabelPosition={INSIDE:"inside",OUTSIDE:"outside"},KB.AxisLineGuideType="line",KB.AxisRangeGuideType="range",KB._CrosshairType={AUTO:"auto",LINE:"line"},KB._AxisPosition={AUTO:"auto",NORMAL:"normal",OPPOSITE:"opposite",BASE:"base",BETWEEN:"between"},KB._CategoryTickPosition={DEFAULT:"default",POINT:"point",EDGE:"edge"},KB.CategoryAxisType="category",KB._AxisFit={DEFAULT:"default",TICK:"tick",VALUE:"value"},KB.LinearAxisType="linear",KB.LogAxisType="log",KB.TimeAxisType="time";var JB=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),QB=t&&t.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s},tD=t&&t.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))},eD=t&&t.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,i=e&&t[e],r=0;if(i)return i.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(ZB,"__esModule",{value:!0}),ZB.CategoryAxis=ZB.CategoryAxisGrid=ZB.CategoryAxisLabel=ZB.CategoryAxisTick=void 0;var iD=iM,rD=wM,nD=rM,oD=KB,sD=WR,aD=TM,lD=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return JB(e,t),e.prototype.getPosition=function(){var t=this._op.position;return"point"===t||"edge"===t?t:this.axis._isX?"point":"edge"},e.defaults=(0,aD.extend)(sD.AxisTick.defaults,{step:1}),e}(sD.AxisTick);ZB.CategoryAxisTick=lD;var uD=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return JB(e,t),e.prototype.getTick=function(t,e){if(null!=e){var i=this._getText(e,e,!1,!1),r=i.lastIndexOf(this.sep);return(0,iD.isArray)(this.axis.options.categoryField)&&r>0?i.substring(r+this.sep.length):i}return""},e.prototype.getIcon=function(t){var e;return null===(e=this.axis._categories[t.index])||void 0===e?void 0:e.i},e.defaults=(0,aD.extend)(sD.AxisLabel.defaults,{align:"center",verticalAlign:"middle",fillToCategory:!1}),e}(sD.AxisLabel);ZB.CategoryAxisLabel=uD;var cD=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return JB(e,t),e.prototype.getPoints=function(t){var e=t._pts,i=t._ticks.length,r=[];if(i>0){var n=Math.max(1,t.tick.options.step||1);if(n>1)for(var o=0,s=1,a=e.length;o<=i&&s<a;o++,s+=n)r.push(e[s]);else for(o=0;o<=i;o++)r.push(e[o+1])}return r},e}(sD.AxisGrid);ZB.CategoryAxisGrid=cD;var pD=function(t){function e(){var e=t.apply(this,tD([],QB(arguments),!1))||this;return e._minPad=0,e._maxPad=0,e._catStart=0,e._catStep=1,e._map={},e._catPad=0,e._tstep=1,e}return JB(e,t),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.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.getCategorySeparator=function(){return this._op.categorySeparator||"+"},e.prototype._type=function(){return"category"},e.prototype.unitPad=function(){return this._catPad},e.prototype.continuous=function(){return!1},e.prototype.polarOff=function(){return.5},e.prototype._prepareZoom=function(){return this._zoom||(this._zoom=new sD.AxisZoom(this),this._zoom.start=this._zoom.min=this._min,this._zoom.end=this._zoom.max=this._max+1),this._zoom},e.prototype._createGrid=function(){return new cD(this)},e.prototype._createTickModel=function(){return new lD(this)},e.prototype._createLabel=function(){return new uD(this)},e.prototype.collectValues=function(){this.label.sep=this.getCategorySeparator(),this.$_collectCategories(this._series),this._isEmpty,this._isEmpty?this._values=nD.Utils.makeIntArray(0,this._categories.length):t.prototype.collectValues.call(this)},e.prototype.getStartAngle=function(){var e,i=t.prototype.getStartAngle.call(this),r=+this._op.startOffset;return r>0&&(i-=(0,iD.minv)(r,1)*((null===(e=this._categories[0])||void 0===e?void 0:e.w)||1)*rD.PI_2/this._catLen),i},e.prototype._doPrepareRender=function(){var t=this._op;this._weights=[],this._isPolar||this._zoom?this._minPad=this._maxPad=this._catPad=0:(this._minPad=(0,iD.pickNum3)(t.minPadding,t.padding,0),this._maxPad=(0,iD.pickNum3)(t.maxPadding,t.padding,0),this._catPad=Math.max(0,Math.min(.5,(0,iD.pickNum)(t.categoryPadding,0))))},e.prototype._adjustMinMax=function(t,e,i){var r=this._op;return r.minValue<t&&(t=r.minValue),r.maxValue>e&&(e=r.maxValue),{min:t,max:e}},e.prototype._doBuildTicks=function(t,e,i,r){var n=this._label,o=this._weights=this._categories.map((function(t){var e;return null!==(e=t.w)&&void 0!==e?e:1})),s=this._tick.options.step||1,a=[];if(!this._zoom){var l=this._adjustMinMax(t,e,i),u=l.min,c=l.max;t=Math.floor(u),e=Math.ceil(c)}this._catMin=t,this._catMax=e;var p=this._catLen=e-t+1;this._tstep=Math.max(1,Math.min(p,this._tick.options.step||1));for(var h=-1;h>=t;h--)o.unshift(1);for(var f=Math.max(p,e+1);o.length<f;)o.push(1);o=o.slice(Math.max(0,t),e-Math.min(0,t)+1),p=this._len=this._minPad+this._maxPad+o.reduce((function(t,e){return t+e}),0);var d=this._pts=[];if(p>0){var _=this._minPad;d.push(0);for(h=t;h<=e;h++)d.push(_/p),_+=o[h-t]||1;d.push(_/p),d.push((_+this._maxPad)/p)}var y=this._catStart,g=this._catStep;for(h=1;h<d.length-2;h+=s){var v=t+h-1,m=this._categories[v/g-y];a.push({index:h-1,pos:NaN,value:v,label:n.getTick(h-1,m?m.t:v)})}return this._setMinMax(t,e),a},e.prototype._calcPoints=function(e,i){var r=this._pts;if(i>100)if(0===this._vlen)for(var n=0;n<r.length;n++)r[n]=0;else for(n=0;n<r.length;n++)r[n]/=this._vlen;for(n=0;n<r.length;n++)r[n]*=e;if(t.prototype._calcPoints.call(this,e,i),this._isPolar){if(i>100){var o=this._op.totalAngle*rD.DEG_RAD;if(0===e)for(n=0;n<r.length;n++)r[n]=0;else for(n=0;n<r.length;n++)r[n]=r[n]/e*o}}else{var s=void 0;s="edge"===this._tick.getPosition()?r.slice(1,r.length-1):this._ticks.map((function(t){return t.pos})),this._markPoints=s}},e.prototype.getPos=function(t,e){var i=this._pts,r=Math.floor(e-this._catMin+.5),n=i[r+1],o=n+(i[r+2]-n)*(e-Math.floor(e+.5)+.5);return this._op.reversed?t-o:o},e.prototype.valueAt=function(t,e){var i=this._pts;this._op.reversed&&(e=t-e);for(var r=1;r<i.length-1;r++){var n=i[r],o=i[r+1];if(e>=n&&o>=e)return this._catMin+r-(1-(e-n)/(o-n))}},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(0,iD.isNumber)(t)?t:this._map[t]},e.prototype.getXLabel=function(t){var e;return(null===(e=this._categories[t])||void 0===e?void 0:e.c)||t},e.prototype._doCalculateRange=function(e){var i=t.prototype._doCalculateRange.call(this,e);return this._isX||(i.min=(0,iD.minv)(0,i.min),i.max=(0,iD.maxv)(0,i.max)),i},e.prototype.$_collectCategories=function(t){var e,i,r=this,n=this._op,o=n.categories,s=this._categories=[];if((0,iD.isArray)(o)&&o.length>0)this._len=0,o.forEach((function(t){var e,i,n=null==t?1:(0,iD.pickNum)(t.weight,1),o=t&&t.icon;null==t?i=e=null:(0,iD.isObject)(t)?(e=(0,iD.pickProp)(t.name,t.label),i=(0,iD.pickProp)(t.label,t.name)):i=e=String(t),r._len+=n,s.push({c:e,t:i,w:n,i:o})}));else{var a=this.chart.seriesByName(n.categorySeries),l=this.chart.seriesByName(n.weightSeries)||a,u=n.weightField,c=null==l?void 0:l.data,p=[];!n.weightByFrequency&&u&&(0,iD.isArray)(c)&&c.length>0&&c.forEach((function(t){var e=t[u];nD.Utils.isNumber(e)&&e>=0?p.push(e):p.push(1)})),a&&(t=[a]);var h=n.weightByFrequency,f=void 0,d=0;if((0,iD.isArray)(t)&&t.length>0)try{for(var _=eD(t),y=_.next();!y.done;y=_.next()){var g=y.value.collectCategories(this);g.length>0&&g.forEach((function(t,e){h&&(t!==f?(d>0&&(s[s.length-1].w=d),f=t,d=1):d++),s.find((function(e){return e.c===t}))||s.push({c:t,w:p[e]||1,t:t})}))}}catch(t){e={error:t}}finally{try{y&&!y.done&&(i=_.return)&&i.call(_)}finally{if(e)throw e.error}}d>0&&(s[s.length-1].w=d)}this._map={},s.forEach((function(t,e){var i=t.v=e;null!=t.c&&(r._map[t.c]=i)}))},e.type=oD.CategoryAxisType,e.defaults=(0,aD.extend)(sD.Axis.defaults,{padding:0,categoryPadding:.1,startOffset:0,categorySeparator:"+"}),e}(sD.Axis);ZB.CategoryAxis=pD,function(e){var i=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),r=t&&t.__assign||function(){return r=Object.assign||function(t){for(var e,i=1,r=arguments.length;i<r;i++)for(var n in e=arguments[i])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},r.apply(this,arguments)},n=t&&t.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s},o=t&&t.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))},s=t&&t.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,i=e&&t[e],r=0;if(i)return i.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.MarkerSeries=e.ClusterableSeriesGroup=e.ConstraintSeriesGroup=e.SeriesGroup=e.LowRangedSeries=e.RangedSeries=e.BasedSeries=e.BasedSeriesLabel=e.ClusterableSeries=e.RadialSeries=e.WidgetSeries=e.OthersGroup=e.WidgetSeriesLabel=e.WidgetSeriesConnector=e.WidgetSeriesPoint=e.SeriesMarker=e.ConnectableSeries=e.PlottingItemCollection=e.Series=e.PALETTE_LEN=e.Trendline=e.DataPointLabel=e.DataPointLabelLine=e.series_group_types=e.series_types=void 0;var a=iM,l=Sj,u=wM,c=rM,p=CB,h=EB,f=cM,d=BB,_=VR,y=TM,g=DB,v=ZB;e.series_types={},e.series_group_types={};var m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.defaults=(0,y.extend)(y.ChartItem.defaults,{visible:!1}),e}(y.ChartItem);e.DataPointLabelLine=m;var b=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}var r;return i(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.getParam(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 c.Utils.isValidNum(t)?this._getText(null,t,(0,a.absv)(t)>1e3,!0):t},e.prototype.getOffset=function(){return(0,a.pickNum)(this._op.offset,0)},e.prototype.getDefaultIconPos=function(){return"top"},e.prototype.getRotation=function(){return(0,a.maxv)(-90,(0,a.minv)(90,(0,a.pickNum)(this._op.rotation,0)))},e.prototype._isVisible=function(){return this._op.visible||(0,a.isFunc)(this._op.visibleCallback)},e.prototype._doSetSimple=function(e){return(0,a.isFunc)(e)?(this._op.visibleCallback=e,this._op.visible=!0):t.prototype._doSetSimple.call(this,e)},e.prototype._doApply=function(e){"auto"===e.position&&(e.position="default"),t.prototype._doApply.call(this,e),this._overflowFit="hidden"===e.overflowFit?1/0:"none"===e.overflowFit?NaN:+e.overflowFit,this._vertAdjust=(0,a.pickNum)(e.verticalAdjust,0)},e.prototype._doPrepareRender=function(e){t.prototype._doPrepareRender.call(this,e),this._domain.numberFormatter=this._numberFormatter},r=e,e.OFFSET=4,e.defaults=(0,y.extend)(y.IconedText.defaults,{visible:void 0,position:"default",offset:r.OFFSET,overflowFit:0,overlapOutline:!0,verticalAdjust:.05,rotation:0}),e}(y.IconedText);e.DataPointLabel=b;var w=function(t){function e(e){var i=t.call(this,e.chart)||this;return i.series=e,i}return i(e,t),e.prototype._doPrepareRender=function(t){var e=this.series,i=this._res=(e._visPoints.length-1)*Math.max(1,+this._op.resolution||5),r=e._minX>0?0:(e._maxX-e._minX)/i-e._minX,n=e._minY>0?0:(e._maxY-e._minY)/i-e._minY,o=e._visPoints.filter((function(t){return!t.isNull})).map((function(t){return{x:t.xValue+r,y:t.yValue+n}}));this._polar=t.isPolar(),(this["_"+this._op.type]||this._linear).call(this,o,this._points=[]),this._points.forEach((function(t){t.x-=r,t.y-=n}))},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,r=0,n=0,o=0;t.forEach((function(t){i+=t.x,r+=t.y,n+=t.x*t.y,o+=t.x*t.x}));var s=e*o-i*i,a=0===s?0:(e*n-i*r)/s;return{m:a,a:(r-a*i)/e}},e.prototype._linear=function(t,e){var i=t.length;if(i>1){var r=this._calcLine(t),s=r.m,a=r.a;this._polar?e.push.apply(e,o([],n(t.map((function(t){return{x:t.x,y:s*t.x+a}}))),!1)):e.push({x:t[0].x,y:s*t[0].x+a},{x:t[i-1].x,y:s*t[i-1].x+a})}},e.prototype._logarithmic=function(t,e){var i=t.length;if(i>1)for(var r=t.map((function(t){return{x:Math.log(t.x),y:(0,a.pickNum)(t.y,0)}})),n=this._calcLine(r),o=n.m,s=n.a,l=t[0].x,u=t[i-1].x,c=(u-l)/this._res,p=l;p<=u;p+=c){var h=s+Math.log(p)*o;e.push({x:p,y:h})}},e.prototype._power=function(t,e){var i=t.length;if(i>1)for(var r=t.map((function(t){return{x:Math.log(t.x),y:Math.log(t.y)}})),n=this._calcLine(r),o=n.m,s=n.a,a=Math.exp(s),l=t[0].x,u=t[i-1].x,c=(u-l)/this._res,p=l;p<=u;p+=c){var h=a*Math.pow(p,o);e.push({x:p,y:h})}},e.prototype._calcLine2=function(t){t.length;var e=0,i=0,r=0,n=0,o=0;t.forEach((function(t){t.x,e+=t.y,i+=t.x*t.x*t.y,r+=t.y*Math.log(t.y),n+=t.x*t.y*Math.log(t.y),o+=t.x*t.y}));var s=e*i-o*o,a=Math.exp((i*r-o*n)/s);return{m:(e*n-o*r)/s,a:a}},e.prototype._exponential=function(t,e){var i=t.length;if(i>1)for(var r=t.map((function(t){return{x:t.x,y:t.y}})),n=this._calcLine2(r),o=n.m,s=n.a,a=t[0].x,l=t[i-1].x,u=(l-a)/this._res,c=a;c<=l;c+=u){var p=s*Math.exp(o*c);e.push({x:c,y:p})}},e.prototype._polynomial=function(t,e){var i=t.length;if(i>1){for(var r=[],n=[],o=0,s=0,l=0;l<3;l++){for(var u=0;u<i;u++)o+=Math.pow(t[u].x,l)*t[u].y;r.push(o),o=0;for(var c=[],p=0;p<3;p++){for(u=0;u<i;u++)s+=Math.pow(t[u].x,l+p);c.push(s),s=0}n.push(c)}n.push(r);for(var h=function(t,e){for(var i=t,r=t.length-1,n=[e],o=0;o<r;o++){for(var s=o,l=o+1;l<r;l++)(0,a.absv)(i[o][l])>(0,a.absv)(i[o][s])&&(s=l);for(var u=o;u<r+1;u++){var c=i[u][o];i[u][o]=i[u][s],i[u][s]=c}for(l=o+1;l<r;l++)for(u=r;u>=o;u--)i[u][l]-=i[u][o]*i[o][l]/i[o][o]}for(l=r-1;l>=0;l--){var p=0;for(u=l+1;u<r;u++)p+=i[u][l]*n[u];n[l]=(i[r][l]-p)/i[l][l]}return n}(n,3),f=t[0].x,d=t[i-1].x,_=(d-f)/this._res,y=function(t){var i=h.reduce((function(e,i,r){return e+i*Math.pow(t,r)}),0);e.push({x:t,y:i})},g=f;g<=d;g+=_)y(g)}},e.prototype._movingAverage=function(t,e){for(var i=t.length,r=(0,a.maxv)(1,(0,a.minv)(i-1,this._op.movingInterval)),n=r;n<=i;){var o=t.slice(n-r,n).reduce((function(t,e){return t+(0,a.pickNum)(e.y,0)}),0);e.push({x:t[n-1].x,y:o/r}),n++}},e.defaults=(0,y.extend)(y.ChartItem.defaults,{visible:!1,type:"linear",resolution:5,movingInterval:2}),e}(y.ChartItem);e.Trendline=w;var x={x:"xValue",y:"yValue",z:"zValue"},S=function(t){function e(e,i){var r=t.call(this)||this;return r.series=e,r.point=i,r.duration=500,r.endHandler=function(){delete r.point._vr,r.series._changed(),r.series=r.point=null},r}return i(e,t),e.prototype._doUpdate=function(t){return this.point._vr=t,this.series._changed(),!0},e}(l.RcAnimation),P=function(t){function e(e){var i=t.call(this)||this;return i.points=e,i.duration=300,i.endHandler=function(){i.points.clean(),i.points.owner._dataPointsChanged(),i.points.owner.$_stopDeleteAni(i)},e.owner.$_setDeleteAni(i),i}return i(e,t),e.prototype._doUpdate=function(t){return this.points.forEach((function(e){e._isDeleted()&&(e._vr=1-t)})),this.points.owner._changed(),!0},e}(l.RcAnimation),A=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(g.DataPoint);e.PALETTE_LEN=12;var O=function(t){function r(){var e=t.apply(this,o([],n(arguments),!1))||this;return e._index=-1,e._seriesIndex=0,e._simpleMode=!1,e}return i(r,t),r.register=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];t.forEach((function(t){e.series_types[t.type]=t}))},r._loadSeries=function(t,e,i,r){var n=t._getSeriesType(i.type);if(!n&&i.type&&console.error("Unknown series type: '".concat(i.type,"'")),!n&&!(n=t._getSeriesType(r||t.type)))throw new Error("Invalid series type: "+i.type+", "+t.type);var o=new n(t);return o._setIndex(e,t._seriesIndex++),o.init(),o._load(i),o},r.getPointTooltipParam=function(t,e,i){switch(i){case"series":return t.displayName();case"name":return e.getParam(i)||t._xAxisObj.getXLabel(e.xValue);case"xValue":return t._xAxisObj.value2Tooltip(e.xValue);case"yValue":return t._yAxisObj.value2Tooltip(e[i]);default:return e.getParam(i)}},r.prototype._doInit=function(t){this._points=new g.DataPointCollection(this),this._pointArgs={},this._paletteColors=Array(e.PALETTE_LEN).fill(0).map((function(t,e){return e})),this.chart.chartOptions.options.paletteMode==u._PaletteMode.SHUFFLE&&c.Utils.shuffle(this._paletteColors),t.pointLabel=(this._pointLabel=this._createLabel(this.chart)).init()},r.prototype.onDataValueChanged=function(t,e,i,r,n){c.Utils.log("onDataValueChanged",e,i,r,n);var o=this._runPoints[e];if(o){var s={};s[i]=r,this.updatePoint(o,s)}},r.prototype.onDataRowUpdated=function(t,e,i){},r.prototype.onDataRowAdded=function(t,e){c.Utils.log("onDataRowAdded",e),this.addPoint(t.getRow(e))},r.prototype.onDataRowDeleted=function(t,e){c.Utils.log("onDataRowDeleted",e);var i=this._runPoints[e];i&&this.removePoint(i)},r.prototype.onDataChanged=function(t){c.Utils.log("onDataChanged")},r.prototype.getTooltipText=function(t,e){return this._op.tooltipCallback?(this._getPointCallbackArgs(this._pointArgs,e),this._op.tooltipCallback(this._pointArgs)):this._op.tooltipText},r.prototype.getTooltipParam=function(t,e,i){return r.getPointTooltipParam(t,e,i)},r.prototype._type=function(){return this.constructor.type},r.prototype._viewType=function(){return this._type()},Object.defineProperty(r.prototype,"index",{get:function(){return this._index},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"row",{get:function(){return this._row},enumerable:!1,configurable:!0}),r.prototype.setRow=function(t){this._row=t},Object.defineProperty(r.prototype,"col",{get:function(){return this._col},enumerable:!1,configurable:!0}),r.prototype.setCol=function(t){this._col=t},Object.defineProperty(r.prototype,"pointLabel",{get:function(){return this._pointLabel},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"data",{get:function(){return this._data},enumerable:!1,configurable:!0}),r.prototype._setData=function(t){t!==this._data&&(this._op.data=this._data=t,this._dataSourceDirty=!0,this._changed())},Object.defineProperty(r.prototype,"pointCount",{get:function(){return this._runPoints.length},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"points",{get:function(){return this._runPoints.slice(0)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"visiblePointCount",{get:function(){return this._visPoints.length},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"visiblePoints",{get:function(){return this._visPoints.slice(0)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"canPolar",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"isWidget",{get:function(){return!1},enumerable:!1,configurable:!0}),r.prototype.getVisiblePoint=function(t){return this._visPoints[t]},r.prototype.contains=function(t){return this._points.contains(t)},r.prototype.getPoints=function(){return this._points},r.prototype._getLabeledPoints=function(){return this._visPoints},r.prototype.getPointsByRange=function(t,e){var i=[];return this._points.forEach((function(r){e>=r.xValue&&r.xValue>=t&&i.push(r)})),i},r.prototype._getVisiblePoints=function(){return this._points.getRunPoints(this._xAxisObj)},r.prototype.pointLabelCount=function(){return 1},r.prototype.isEmpty=function(){return this._points.isEmpty()},r.prototype.needAxes=function(){return!0},r.prototype.canCategorized=function(){return!1},r.prototype.hasZ=function(){return!1},r.prototype.defYAxisType=function(){return"linear"},r.prototype.isClusterable=function(){return!1},r.prototype.isMarker=function(){return!1},r.prototype.isXY=function(){return!1},r.prototype.displayName=function(){return this._op.label||this.name},r.prototype.legendMarker=function(t,e){return this._legendMarker||(this._legendMarker=this._createLegendMarker(t,e)),this._legendMarker},r.prototype.legendColor=function(){return this._calcedColor},r.prototype.legendStroke=function(){return this._calcedStroke},r.prototype.legendLabel=function(){return this._op.label||this.name},r.prototype.legendKey=function(){return this[this._op.legendKey]},r.prototype.styleLegendMarker=function(t){},r.prototype.canMixWith=function(t){return!0},r.prototype.getBaseValue=function(t){return NaN},r.prototype.isBased=function(t){return!1},r.prototype.canMinPadding=function(t,e,i){if(this.isBased(t)){var r=this.getBaseValue(t);return isNaN(r)||!this.isBased(t)||e<r&&(isNaN(i)||r<=i)}return!0},r.prototype.canMaxPadding=function(t,e,i){if(this.isBased(t)){var r=this.getBaseValue(t);return isNaN(r)||!this.isBased(t)||e>r&&(isNaN(i)||r>=i)}return!0},r.prototype.hasShape=function(){return!1},r.prototype.setShape=function(t){},r.prototype.seriesChanged=function(){return this._pointsChanged},r.prototype.getMinPointWidth=function(){return NaN},r.prototype.isRace=function(){return!1},r.prototype.canDepth=function(){return!1},r.prototype.getVisibleSeries=function(){return[this]},r.prototype._getNoClip=function(t){return this._group?this._group.options.noClip:this._op.noClip},r.prototype.needClip=function(t){var e=this._getNoClip(t);return t?!1===e:!0!==e},r.prototype.connectable=function(t){return!1},r.prototype.initPoints=function(t){var e=this;return this._containsNull=!1,t.map((function(t,i){return e.$_addPoint(t,i)}))},r.prototype.$_getXStart=function(t){var e=t.getValue(this._op.xStart),i=isNaN(e)?t.getValue(this.chart.chartOptions.getXStart(t)):e;return(0,a.pickNum)(i,t.getXStart())},r.prototype.$_getXStep=function(t){var e;return null!==(e=(0,a.pickProp)(this._op.xStep,this.chart.chartOptions.options.xStep))&&void 0!==e?e:1},r.prototype._buildVisPoints=function(t){return t.filter((function(t){return!1!==t.visible}))},r.prototype._prepareRunPoints=function(t,e){this._runPoints=this._points.getRunPoints(t),this.visible&&!this._referents?this._visPoints=this._buildVisPoints(this._runPoints):this._visPoints=null},r.prototype._dataSourceChanged=function(){var t=this._doLoadData(this._data);this._loadPoints(t)},r.prototype._connect=function(t){this._xAxisObj=this._group?this._group._xAxisObj:t._connectSeries(this,!0),this._yAxisObj=this._group?this._group._yAxisObj:t._connectSeries(this,!1)},r.prototype._prepareRender=function(){this._legended=null,this._calcedColor=void 0,this._dataSourceDirty&&(this._dataSourceChanged(),this._dataSourceDirty=!1),this._prepareRunPoints(this._xAxisObj,this._yAxisObj),this._pointLabel._prepareRender(),t.prototype._prepareRender.call(this)},r.prototype.prepareAfter=function(){this._pointsChanged=!1},r.prototype.collectCategories=function(t){if(t instanceof v.CategoryAxis)return this._doCollectCategories(t)},r.prototype._doCollectCategories=function(t){var e=t.options.categoryField;if(null!=e){if((0,a.isArray)(e)){var i=e.length-1,r=t.getCategorySeparator();return this._points._internalPoints().filter((function(t){return(0,a.isString)(t.getProp(e[i]))})).map((function(t){return e.map((function(e){return t.getProp(e)})).join(r)}))}return this._points.getProps(e).filter((function(t){return(0,a.isString)(t)}))}return this._points.getCategories(t===this._xAxisObj?"x":"y").filter((function(t){return(0,a.isString)(t)}))},r.prototype.collectValues=function(t,e){if(t===this._xAxisObj){var i=this.$_getXStart(t),r=this.$_getXStep(t);(0,a.isString)(r)&&(r=r.trim()),this._points.forEach((function(e,n){var o=t.getValue(e.x);isNaN(o)&&(o=i,i=t.incStep(i,r)),e.xValue=o,isFinite(o)||(e.isNull=!0)})),this._runPoints.forEach((function(t){e&&!1!==t.visible&&isFinite(t.xValue)&&e.push(t.xValue)}))}else this._points.forEach((function(e,i){if(e.isNull)e.y=e.yGroup=e.yValue=NaN;else{var r=null==e.y?NaN:t?t.getValue(e.y):+e.y;isNaN(r)&&t&&(r=t.getValue(e.y)),e.initValues(),isNaN(e._vr)||(isNaN(e._prev.yValue)&&e.initPrev(t,e._prev),r=e._prev.yValue+(r-e._prev.yValue)*e._vr,e.applyValueRate(e._prev,e._vr)),e.yValue=e.yGroup=r,e.isNull=!isFinite(r)}})),this._runPoints.forEach((function(t){e&&!1!==t.visible&&isFinite(t.yValue)&&e.push(t.yValue)}))},r.prototype.collectRanges=function(t){var e,i=this._visPoints,r=i.length;if(r>0){var n=this._pointArgs,o=this.hasZ(),s=i[0],a=s.xValue,l=a,u=s.yValue,c=u,p=o?s.zValue:null,h=p;s.vindex=0;for(var f=1;f<r;f++)(s=i[f]).vindex=f,isNaN(c)&&!isNaN(s.yValue)?u=c=s.yValue:s.yValue>c?c=s.yValue:s.yValue<u&&(u=s.yValue),isNaN(l)&&!isNaN(s.xValue)?a=l=s.xValue:s.xValue>l?l=s.xValue:s.xValue<a&&(a=s.xValue);if(o)for(f=1;f<r;f++){var d=i[f].zValue;isNaN(h)&&!isNaN(d)?p=h=d:d>h?h=d:d<p&&(p=d)}if(this._minY=u,this._maxY=c,this._minX=a,this._maxX=l,null===(e=this._trendline)||void 0===e?void 0:e.visible){this._trendline._prepareRender();var _=this._trendline._points.map((function(t){return t.y})).sort((function(t,e){return t-e}));this._minY=Math.min(this._minY,_[0]),this._maxY=Math.max(this._maxY,_[_.length-1])}n.yMin=this._minY,n.yMax=this._maxY,n.xMin=this._minX,n.xMax=this._maxX,o&&(n.zMin=this._minZ=p,n.zMax=this._maxZ=h)}this.$_prepareViewRanges(i),!isNaN(this._minY)&&t&&t.push(this._minY,this._maxY)},r.prototype.getAxisPadRate=function(){return(0,a.pickNum)(this._op.paddingRate,1)},r.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}},r.prototype.$_prepareViewRanges=function(t){var e=this,i=this._runRangeValue=this.getViewRangeAxis(),r=this._getRangeMinMax(i),n=r.min,o=r.max;(this._runRanges=(0,u.buildValueRanges)(this._op.viewRanges,n,o,!1,!1,!0,this._runColor))?t.forEach((function(t,r){e._setViewRange(t,i)})):t.forEach((function(t,e){t.range=u._undef}))},r.prototype.prepareReferents=function(t){var e=this;this._referents&&this._referents.forEach((function(i){return i.visible&&i.refer(e,t)})),this.visible&&!this._visPoints&&(this._visPoints=this._buildVisPoints(this._runPoints))},r.prototype.refer=function(t,e){},r.prototype.getLegendSources=function(t){!1!==this._op.visibleInLegend&&t.push(this)},r.prototype.getLabelPos=function(t){return this._getLabelDefaultPos(t,t.options.position)},r.prototype._getLabelDefaultPos=function(t,e){return e},r.prototype.getLabelPos2=function(t,e){return this._labelPosCallback?this._getLabelDefaultPos(t,this._labelPosCallback(this._getPointCallbackArgs(this._pointArgs,e))):this._labelPos},r.prototype.getLabelOff=function(t){return t},r.prototype.getLabelOff2=function(t){return this._labelOffCallback?(0,a.pickNum)(this._labelOffCallback(this._getPointCallbackArgs(this._pointArgs,t)),b.OFFSET):this._labelOff},r.prototype.referBy=function(t){t&&(this._referents?this._referents.indexOf(t)<0&&this._referents.push(t):this._referents=[t])},r.prototype.setPointVisible=function(t,e){t&&e!==t.visible&&(t.visible=e,this.chart._pointVisibleChanged(this,t))},r.prototype._preparePointArgs=function(t){this._pointLabelCallback=this._pointLabel.options.textCallback,this._argsPoint=null,t.chart=this.chart.wrapper,t.series=this,t.count=this._points.count},r.prototype._getPointCallbackArgs=function(t,e){return e!==this._argsPoint&&(this._preparePointArgs(t),(this._argsPoint=e).assignTo(t)),t},r.prototype.getPointText=function(t,e,i){var r;return this._pointLabelCallback&&(this._pointArgs.labelIndex=e,this._getPointCallbackArgs(this._pointArgs,t),null!=(r=this._pointLabelCallback(this._pointArgs)))||null!=(r=t.getPointText(e))?r:i},r.prototype.getPointStyle=function(t){if(this._op.pointStyleCallback)return this._getPointCallbackArgs(this._pointArgs,t),this._op.pointStyleCallback(this._pointArgs)},r.prototype.getPointLabelStyle=function(t){if(this._pointLabel.options.styleCallback)return this._getPointCallbackArgs(this._pointArgs,t),this._pointLabel.options.styleCallback(this._pointArgs)},r.prototype.pointClicked=function(t){if(this._op.onPointClick)return this._getPointCallbackArgs(this._pointArgs,t),this._op.onPointClick(this._pointArgs)},r.prototype.pointHovered=function(t){this._op.onPointHover&&(t&&this._getPointCallbackArgs(this._pointArgs,t),this._op.onPointHover(t?this._pointArgs:null))},r.prototype.getViewRangeAxis=function(){return this._op.viewRangeValue||this._defViewRangeValue()},r.prototype.isLabelsVisible=function(){return this._pointLabel.visible},r.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)},r.prototype.getPointAt=function(t){return(0,a.isString)(t)&&(t=this._xAxisObj.getValue(t)),this._points.pointAt(t)},r.prototype.getValueAt=function(t,e){void 0===e&&(e="yValue");var i=this.getPointAt(t);return i?i[e]:u._undef},r.prototype._dataPointsChanged=function(){this._pointsChanged=!0,this.chart._dataChanged(),this._changed()},r.prototype.updatePoint=function(t,e){if(t instanceof g.DataPoint||(t=this.getPointAt(t)),t){var i=t._prev;return i&&i.ani&&i.ani.stop(),(i=t.updateValues(this,e))&&this.chart.animatable()&&(i.ani=new S(this,t),i.ani.start()),this._dataPointsChanged(),!!i}return!1},r.prototype.updateData=function(t){this._setData(t),this._dataPointsChanged()},r.prototype.addPoint=function(t){var e=this._doAddPoint(t);if(e){if(this._points.add(e),this.chart.animatable()){var i=e._prev=e.copy();i.ani=new S(this,e),i.ani.start()}this._dataPointsChanged()}return e},r.prototype.addPoints=function(t){var e=this,i=[];return(0,a.isArray)(t)&&t.forEach((function(t){var r=e._doAddPoint(t);r&&i.push(r)&&e._points.add(r)})),i.length>0&&(this.chart.animatable()&&i.forEach((function(t){var i=t._prev=t.copy();i.ani=new S(e,t),i.ani.start()})),this._dataPointsChanged()),i},r.prototype._needDeleteAnimation=function(){return!1},r.prototype.removePoint=function(t){if(t instanceof g.DataPoint||(t=this.getPointAt(t)),t){if(this._points.contains(t)&&this._needDeleteAnimation()&&this.chart.animatable())return t._setDeleted(),new P(this._points).start(),this._changed(),!0;if(this._points.remove(t))return this._doPointRemoved(t),this._dataPointsChanged(),!0}},r.prototype.removePoints=function(t){var e=this;if((0,a.isArray)(t)){var i=this._needDeleteAnimation()&&this.chart.animatable(),r=[];if(t.forEach((function(t){t instanceof g.DataPoint||(t=e.getPointAt(t)),t&&(i?(t._setDeleted(),r.push(t)):e._points.remove(t)&&r.push(t))})),r.length>0)return i?(new P(this._points).start(),this._changed()):(this._doPointsRemoved(r),this._dataPointsChanged()),r.length}return 0},r.prototype.followPointer=function(){return!1},r.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()},r.prototype._setIndex=function(t,e){this._index=t,isNaN(e)||(this._seriesIndex=e)},r.prototype._createLabel=function(t){return new b(t)},r.prototype._createPoint=function(t){return new A(t)},r.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},r.prototype._doAddPoint=function(t){return this.$_addPoint(t,this._points.count)},r.prototype._doPointRemoved=function(t){},r.prototype._doPointsRemoved=function(t){},r.prototype._createLegendMarker=function(t,e){return p.RectElement.create(t,r.LEGEND_MARKER,0,0,e,e,e/2)},r.prototype._referOtherSeries=function(t){return!0},r.prototype._colorByPoint=function(){return!1},r.prototype._getFielderProps=function(){return["xField","yField","zField","colorField","iconField"]},r.prototype._createFielder=function(t){return(0,a.isFunc)(t)?function(e){return t(e)}:null!=t?function(e){return e[t]}:function(t){}},r.prototype._createFielders=function(){var t=this,e=this._op;this._getFielderProps().forEach((function(i){var r="_".concat(i,"er");(!t[r]||i in e&&t["_".concat(i)]!==e[i])&&(t[r]=t._createFielder(e[i]),t["_".concat(i)]=e[i])}))},r.prototype._defaultLoadAnimation=function(){return"reveal"},r.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)},r.prototype._doLoadData=function(t){if((0,a.isArray)(t))return t;if(t){var e=void 0;if(t._obj instanceof f.DataObject)e=t._obj;else if(t instanceof f.DataObject)e=t;else if(Number.isFinite(t)||(0,a.isObject)(t)||(0,a.isBoolean)(t))return[t];if(e)return e!==this._cdata&&(this._cdata&&this._cdata._removeListener(this),this._cdata=e,this._cdata&&this._cdata._addListener(this)),e._internalValues()}},r.prototype._loadPoints=function(t){var e,i;return this._doLoadPoints(t),null===(i=(e=this._op).onPointsLoaded)||void 0===i||i.call(e,this,!this._loaded),this._loaded=!0,this},r.prototype._doLoadPoints=function(t){this._points.load(t)},r.prototype._doPrepareRender=function(){var t,i,r=this._op,n=r.pointColors,o=this._runColor=(0,a.isNumber)(r.color)?"var(--color-".concat(Math.max(1,(Math.floor(r.color)-1)%e.PALETTE_LEN+1),")"):r.color;(0,a.isArray)(n)?t=n:(0,a.isString)(n)?n.endsWith("@pal")||n.endsWith("@palette")?t=this.chart.getPaletteColors(n.split("@")[0]):i=this.chart._assets.get(n):this._colorByPoint()&&(t=this.chart.chartOptions.options.colors),i instanceof _.ColorList?this._runPoints.forEach((function(t,e){t.color=t.color||i.getNext()||o})):(0,a.isArray)(t)?this._runPoints.forEach((function(e,i){e.color=e.color||t[i%t.length]||o})):this._runPoints.forEach((function(t,e){t.color=t.color||o})),this._preparePointArgs(this._pointArgs),this._labelPosCallback=(0,a.getCallback)(r.pointLabel.position),this._labelPos=this.getLabelPos(this._pointLabel),this._labelOffCallback=(0,a.getCallback)(r.pointLabel.offset),this._labelOff=this.getLabelOff(this._pointLabel.getOffset())},r.prototype._setViewRange=function(t,e){var i,r,n=t[x[e]];try{for(var o=s(this._runRanges),a=o.next();!a.done;a=o.next()){var l=a.value;if(n>=l.fromValue&&n<=l.toValue)return void(t.range=l)}}catch(t){i={error:t}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}t.range=u._undef},r.prototype._defViewRangeValue=function(){return"y"},r.prototype._canSort=function(){return!0},r.prototype.$_setDeleteAni=function(t){this._deleteAni&&this._deleteAni.stop(),this._deleteAni=t},r.prototype.$_stopDeleteAni=function(t){this._deleteAni===t&&(this._deleteAni=null)},r.prototype.isDeleting=function(){return!!this._deleteAni},r.LEGEND_MARKER="rct-legend-item-marker",r.defaults=(0,y.extend)(y.ChartItem.defaults,{zOrder:0,visibleInLegend:!0,visibleInNavigator:!1,tooltipText:"<b>${name}</b><br>${series}:<b> ${yValue}</b>",loadAnimation:"default",hoverEffect:"default",interactive:!0,paddingRate:1}),r}(y.ChartItem);e.Series=O;var C=function(t){function e(){var e=t.apply(this,o([],n(arguments),!1))||this;return e._map={},e._visibles=[],e._series=[],e._visibleSeries=[],e}return i(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._internalSeries=function(){return this._series},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.canDepth=function(){return this._visibleSeries.every((function(t){return t.canDepth()}))},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.seriesByType=function(t){var e,i;try{for(var r=s(this._items),n=r.next();!n.done;n=r.next()){var o=n.value;if(o._type()===t)return o;if(o instanceof F&&o.series[0]._type()===t)return o.series[0]}}catch(t){e={error:t}}finally{try{n&&!n.done&&(i=r.return)&&i.call(r)}finally{if(e)throw e.error}}},e.prototype.seriesByPoint=function(t){var e,i;try{for(var r=s(this._series),n=r.next();!n.done;n=r.next()){var o=n.value;if(o.contains(t))return o}}catch(t){e={error:t}}finally{try{n&&!n.done&&(i=r.return)&&i.call(r)}finally{if(e)throw e.error}}},e.prototype.getLegendSources=function(t,e){void 0===t&&(t=-1),void 0===e&&(e=-1);var i=[];return this._items.forEach((function(r){r._valid&&!r._legended&&(t<0||t===r.row)&&(e<0||e===r.col)&&(r.getLegendSources(i),r._legended=t>=0&&e>=0)})),i},e.prototype.canPolar=function(){return this._series.length>0&&this._series.every((function(t){return t&&t.canPolar}))},e.prototype.load=function(t){var e=this,i=this.chart,r=this._items=[],s=this._series=[];(0,a.isArray)(t)?t.forEach((function(t,n){r.push(e.$_loadItem(i,t,n))})):(0,a.isObject)(t)&&r.push(this.$_loadItem(i,t,0)),r.forEach((function(t){t instanceof F?s.push.apply(s,o([],n(t.series),!1)):t instanceof O&&s.push(t)})),this._map={},this._widget=!0,s.forEach((function(t){return e.$_add(t)})),i._op.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 O?e=t:(0,a.isString)(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),delete this._map[e.name],this._items.forEach((function(t,e){t._setIndex(e)})),e;if(e._group.remove(e))return e}},e.prototype.updateData=function(t){},e.prototype.connect=function(t){var e=this._items.filter((function(t){return t.visible})).sort((function(t,e){return(+t.options.zOrder||0)-(+e.options.zOrder||0)}));e.forEach((function(e){e._connect(t),e._valid=Boolean(e._xAxisObj&&e._yAxisObj)})),this._visibles=e.filter((function(t){return t._valid}))},e.prototype.prepareRender=function(){var t=[],e=0;this._series.forEach((function(i){if(i.visible){var r=i._group;(r?r.visible&&r._valid:i._valid)&&(t.push(i),i.hasShape()&&i.setShape(h.ShapeNames[e++%h.ShapeNames.length]),r||(i._valid=!0))}})),this._visibleSeries=t.sort((function(t,e){var i=+(t.group?t.group.zOrder:t.zOrder)||0,r=+(e.group?e.group.zOrder:e.zOrder)||0;return i===r&&t.group&&t.group===e.group?(+t.zOrder||0)-(+e.zOrder||0):i-r}));var i=1===this._visibleSeries.filter((function(t){return t.isClusterable()})).length;this._visibleSeries.forEach((function(t,e){t instanceof R&&(t._single=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 r=(0,a.isArray)(e.children||e.series)&&t._getGroupType(e.type||t.type);if(r){var n=new r(t);return n._setIndex(i),n.init(),n._load(e),n}return O._loadSeries(t,i,e)},e.prototype.$_add=function(t){var e,i;!this._widget||t instanceof M||(this._widget=!1),t.name&&(this._map[t.name]=t);try{for(var r=s(this._series),n=r.next();!n.done;n=r.next()){var o=n.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{n&&!n.done&&(i=r.return)&&i.call(r)}finally{if(e)throw e.error}}},e}(y.ChartItemCollection);e.PlottingItemCollection=C;var E=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype._doInit=function(e){t.prototype._doInit.call(this,e),e.trendline=(this._trendline=new w(this)).init()},Object.defineProperty(e.prototype,"trendline",{get:function(){return this._trendline},enumerable:!1,configurable:!0}),e.prototype.connectable=function(t){return!0},e.defaults=(0,y.extend)(O.defaults,{}),e}(O);e.ConnectableSeries=E;var V=function(t){function e(e){var i=t.call(this,e.chart)||this;return i.series=e,i._args={},i}return i(e,t),e.prototype.getMarkerStyle=function(t){if(this._op.styleCallback)return this.series._getPointCallbackArgs(this._args,t),this._op.styleCallback(this._args)},e.prototype._doSetSimple=function(e){return(0,a.isString)(e)?(this._op.shape=e,!0):t.prototype._doSetSimple.call(this,e)},e.defaults=(0,y.extend)(y.ChartItem.defaults,{radius:3}),e}(y.ChartItem);e.SeriesMarker=V;var L=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(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.legendStroke=function(){return this._calcedStroke},e.prototype.legendLabel=function(){return(0,a.pickProp)(this.x,this.y)},e.prototype.legendKey=function(){return this._legendKey},e.prototype.styleLegendMarker=function(t){},e.prototype.isEmpty=function(){return 0===this.yValue},e.prototype.initPrev=function(t,e){e.yValue=0},e.prototype.getParam=function(e){var i=t.prototype.getParam.call(this,e);return null==i&&"name"===e?this.x:"percent"===e?this._percent:i},e}(g.DataPoint);e.WidgetSeriesPoint=L;var T=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype._doSetSimple=function(e){return(0,a.isString)(e)?(this.setStyle("stroke",e,!1),!0):t.prototype._doSetSimple.call(this,e)},e.defaults=(0,y.extend)(y.ChartItem.defaults,{curved:!0}),e}(y.ChartItem);e.WidgetSeriesConnector=T;var k=function(t){function e(e,i){void 0===i&&(i=!1);var r=t.call(this,e)||this;return r.isSub=i,r}return i(e,t),e.prototype._doInit=function(e){t.prototype._doInit.call(this,e),e.connector=(this._connector=new T(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=(0,y.extend)(b.defaults,{visible:!0,convergent:!0,align:d._PointLabelAlign.NONE,dedupeMode:d._PointLabelDedupeMode.DISPLAY_ALL}),e}(b);e.WidgetSeriesLabel=k;var N=function(t){function e(){var e=t.apply(this,o([],n(arguments),!1))||this;return e._dirty=!1,e}return i(e,t),e.prototype.calculate=function(t){var i,r=this.options,n=this._save,o=r.maxCount;return i=this._minDim?(0,u.calcPercent)(this._minDim,g.DataPoint.getSum(t)):+r.minValue,isNaN(o)&&isNaN(i)&&(o=e.DEF_COUNT),(this._dirty=!n||n.value!==i||n.count!==o)&&(isNaN(i)||(t=t.filter((function(t){return t.y>=i}))),o>0&&t.length>o&&(o>1&&o--,t=t.slice(0,o)),this._save={count:o,value:i}),t},e.prototype.isDirty=function(){return this._dirty},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),this._minDim=(0,u.parsePercentSize)(e.minValue,!0)},e.DEF_COUNT=10,e.defaults=(0,y.extend)(y.ChartItem.defaults,{visible:!1,x:"기타"}),e}(y.ChartItem);e.OthersGroup=N;var M=function(t){function e(){var e=t.apply(this,o([],n(arguments),!1))||this;return e._sum=0,e}return i(e,t),e.prototype._doInit=function(e){t.prototype._doInit.call(this,e),e.othersGroup=(this._othersGroup=new N(this.chart)).init()},Object.defineProperty(e.prototype,"othersGroup",{get:function(){return this._othersGroup},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isWidget",{get:function(){return!0},enumerable:!1,configurable:!0}),e.prototype.getSum=function(){return this._sum},e.prototype.getCenter=function(t,e){return{x:(0,u.calcPercent)(this._centerXDim,t),y:(0,u.calcPercent)(this._centerYDim,e)}},e.prototype._getLabelDefaultPos=function(e,i){return"default"===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._groupedPoints||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 r,n,o=this;t.prototype._doApply.call(this,i),r=i.centerX,n=i.centerY,r!==o._centerX&&(o._centerX=r,o._centerXDim=(0,u.parsePercentSize)((0,a.pickProp3)(r,o._op.center,e.DEF_CENTER),!0)),n!==o._centerY&&(o._centerY=n,o._centerYDim=(0,u.parsePercentSize)((0,a.pickProp3)(n,o._op.center,e.DEF_CENTER),!0))},e.prototype.collectValues=function(e,i){var r=this;t.prototype.collectValues.call(this,e,i),this._sum=0,this._runPoints.forEach((function(t){return r._sum+=t.yValue}));var n=this.getSum();this._runPoints.forEach((function(t){return t._percent=100*t.yValue/n}))},e.prototype.canMinPadding=function(t,e){return!1},e.prototype.canMaxPadding=function(t,e){return!1},e.prototype._dataSourceChanged=function(){t.prototype._dataSourceChanged.call(this),this._groupedPoints=null},e.prototype.contains=function(e){return t.prototype.contains.call(this,e)||this._groupedPoints&&e===this._groupedPoints[this._groupedPoints.length-1]},e.prototype._buildVisPoints=function(e){var i=this._op.legendKey,n=this.othersGroup;if(n.visible){if(!this._groupedPoints&&(this._groupedPoints=n.calculate(e),e.length>this._groupedPoints.length)){var o=this._createOthersPoint(r({},this._op.othersGroup),e.slice(this._groupedPoints.length));o.parse(this),o.index=e.length,o.yValue=o.yGroup=o.y,this._groupedPoints.push(o)}e=this._groupedPoints}return t.prototype._buildVisPoints.call(this,e).map((function(t,e){return t.vindex=e,t._legendKey=t[i],t}))},e.DEF_CENTER="50%",e.defaults=(0,y.extend)(O.defaults,{legendByPoint:!1,zeroInLegend:!0,centerX:e.DEF_CENTER,centerY:e.DEF_CENTER}),e}(O);e.WidgetSeries=M;var j=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.getRadius=function(t,e){return(0,u.calcPercent)(this._radiusDim,(0,a.minv)(t,e))},e.prototype._doApply=function(i){t.prototype._doApply.call(this,i),function(t,i){i!==t._radius&&(t._radiusDim=(0,u.parsePercentSize)((0,a.pickProp)(t._radius=i,e.defaults.radius),!0))}(this,i.radius)},e.defaults=(0,y.extend)(M.defaults,{radius:"40%",startAngle:0,totalAngle:360,clockwise:!0}),e}(M);e.RadialSeries=j;var R=function(t){function e(){var e=t.apply(this,o([],n(arguments),!1))||this;return e._clusterWidth=1,e._clusterPos=0,e._childWidth=1,e._childPos=0,e._pointPad=0,e}return i(e,t),e.prototype.groupWidth=function(){return this._op.pointWidth},e.prototype.getMinPointWidth=function(){return this._op.minPointWidth},e.prototype.getPointWidth=function(t,e){var i=this._group,r=t;return i?(r*=i._clusterWidth,r*=1-2*i.options.groupPadding,r*=this._childWidth):r*=this._clusterWidth,r*=1-2*this._pointPad,(0,a.maxv)(e,r)},e.prototype.getPointPos=function(t){var e=this._group,i=t,r=0;return e?(r=i*e._clusterPos,r+=(i*=e._clusterWidth)*e.options.groupPadding,r+=(i-=i*e.options.groupPadding*2)*this._childPos,i*=this._childWidth):(r=i*this._clusterPos,i*=this._clusterWidth),r+=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._op.minPointWidth=(0,a.pickNum)(this.getMinPointWidth(),0)},e.defaults=(0,y.extend)(O.defaults,{pointWidth:1,minPointWidth:0}),e}(E);e.ClusterableSeries=R;var B=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),Object.defineProperty(e.prototype,"line",{get:function(){return this._line},enumerable:!1,configurable:!0}),e.prototype._doInit=function(e){t.prototype._doInit.call(this,e),e.line=(this._line=new m(this.chart)).init()},e.defaults=(0,y.extend)(b.defaults,{}),e}(b);e.BasedSeriesLabel=B;var D=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),Object.defineProperty(e.prototype,"depth",{get:function(){return this._depth},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"distance",{get:function(){return this._distance},enumerable:!1,configurable:!0}),e.prototype._createLabel=function(t){return new B(t)},e.prototype._doPrepareRender=function(){var i=this._group,r=this._op;t.prototype._doPrepareRender.call(this),i?(this._depth=(0,a.maxv)(0,(0,a.pickNum3)(r.depth,i.getDepth(),e.DEPTH)),this._distance=i.getDistance()+(0,a.pickNum)(r.distance,0)):(this._depth=(0,a.maxv)(0,(0,a.pickNum)(r.depth,e.DEPTH)),this._distance=(0,a.pickNum)(r.distance,e.DISTANCE)),r.nullAsBase&&null!=r.baseValue&&this._runPoints.forEach((function(t){t.isNull&&(t.y=r.baseValue,t.isNull=!1)})),this._base=(0,a.pickProp3)(this._getGroupBase(),this._yAxisObj.getBaseValue(),0)},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.DEPTH=10,e.DISTANCE=5,e.defaults=(0,y.extend)(R.defaults,{nullAsBase:!1}),e}(R);e.BasedSeries=D;var I=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.collectValues=function(e,i){var r=this;t.prototype.collectValues.call(this,e,i),e===this._yAxisObj&&this._visPoints.forEach((function(t){if(i){var e=r._getBottomValue(t);!isNaN(e)&&i.push(e)}}))},e}(R);e.RangedSeries=I;var G=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(I);e.LowRangedSeries=G;var F=function(t){function r(){var e=t.apply(this,o([],n(arguments),!1))||this;return e._index=-1,e._series=[],e._visibles=[],e._seriesChanged=!1,e}return i(r,t),r.register=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];t.forEach((function(t){e.series_group_types[t.type]=t}))},r.registerSeries=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];t.forEach((function(t){e.series_group_types[t.seriesType]=t}))},r.collectTooltipText=function(t,e,i,r){var n=t.tooltipHeader||"";return t.tooltipRow&&e.forEach((function(e,o){var s;e!==i?e.needAxes()&&(s=e.getPointAt(r.xValue)):s=r,s&&(n&&(n+="<br>"),n+=t.tooltipRow.replace("yValue","yValue."+r.index).replace(/\$\{/g,"${"+o+"."))})),n+=t.tooltipFooter?"<br>"+t.tooltipFooter:""},r.inflateTooltipParam=function(t,e,i,r){var n=r.indexOf("."),o=parseInt(r.substring(0,n));if(!isNaN(o)){var s=t[o].getPointAt(i.xValue);s&&(e=t[o],i=s,r=r.substring(n+1))}return r.startsWith("series.")&&(e=t[+r.substring(7)]||e,r="series"),O.getPointTooltipParam(e,i,r)},r.prototype.getTooltipText=function(t,e){return r.collectTooltipText(this._op,this._visibles,t,e)},r.prototype.getTooltipParam=function(t,e,i){return r.inflateTooltipParam(this._visibles,t,e,i)},r.prototype.isXY=function(){return!1},r.prototype.isMarker=function(){return!1},Object.defineProperty(r.prototype,"col",{get:function(){return this._col},enumerable:!1,configurable:!0}),r.prototype.setCol=function(t){t!==this._col&&(this._col=t,this._series.forEach((function(e){return e.setCol(t)})))},Object.defineProperty(r.prototype,"row",{get:function(){return this._row},enumerable:!1,configurable:!0}),r.prototype.setRow=function(t){t!==this._row&&(this._row=t,this._series.forEach((function(e){return e.setRow(t)})))},Object.defineProperty(r.prototype,"series",{get:function(){return this._series.slice(0)},enumerable:!1,configurable:!0}),r.prototype.needAxes=function(){return!0},r.prototype.isEmpty=function(t){return(t?this._visibles:this._series).length<1},r.prototype.canCategorized=function(){return!1},r.prototype.defYAxisType=function(){return"linear"},r.prototype.isClusterable=function(){return!1},r.prototype.getBaseValue=function(t){return NaN},r.prototype.getVisibleSeries=function(){return this._visibles},r.prototype.isRace=function(){return!1},r.prototype.getDepth=function(){},r.prototype.getDistance=function(){return 0},Object.defineProperty(r.prototype,"index",{get:function(){return this._index},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"visCount",{get:function(){return this._visibles.length},enumerable:!1,configurable:!0}),r.prototype._type=function(){return this.constructor.type},r.prototype._seriesType=function(){return this.constructor.seriesType},r.prototype.connectable=function(t){return!0},r.prototype.isFirstVisible=function(t){return t===this._visibles[0]},r.prototype.isLastVisible=function(t){return t===this._visibles[this._visibles.length-1]},r.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)},r.prototype.collectRanges=function(t){this._visibles.forEach((function(e){e.collectRanges(t)}))},r.prototype.prepareReferents=function(t){this._series.forEach((function(e){return e.prepareReferents(t)}))},r.prototype.collectCategories=function(t){var e=[];return this._visibles.forEach((function(i){return e=e.concat(i.collectCategories(t))})),e},r.prototype.getLegendSources=function(t){var e,i=this._op;if(!1!==i.visibleInLegend&&this.visible){var r=this._series,s=[];if((null===(e=this._yAxisObj)||void 0===e?void 0:e.options.reversed)||"fill"!==i.layout&&"stack"!==i.layout)r.forEach((function(t){return t.getLegendSources(s)}));else for(var a=r.length-1;a>=0;a--)r[a].getLegendSources(s);i.reversedInLegend&&s.reverse(),t.push.apply(t,o([],n(s),!1))}},r.prototype.getAxisPadRate=function(){return 1},r.prototype.isBased=function(t){return this._visibles[0]&&this._visibles[0].isBased(t)},r.prototype.canMinPadding=function(t,e,i){if(this.isBased(t)){var r=this.getBaseValue(t);return isNaN(r)||!this.isBased(t)||e<r&&(isNaN(i)||r<=i)}return!0},r.prototype.canMaxPadding=function(t,e,i){if(this.isBased(t)){var r=this.getBaseValue(t);return isNaN(r)||!this.isBased(t)||e>r&&(isNaN(i)||r>=i)}return!0},r.prototype.seriesChanged=function(){return this._seriesChanged},r.prototype.remove=function(t){var e=this._series.indexOf(t);if(e>=0)return this._series.splice(e,1),this._series.forEach((function(t,e){t._setIndex(e)})),!0},r.prototype._getVisiblePoints=function(){var t=[];return this._visibles.forEach((function(e){return t.push.apply(t,o([],n(e._getVisiblePoints()),!1))})),t},r.prototype.getLayoutMax=function(){var t=(0,a.pickNum)(this._op.layoutMax,r.LAYOUT_MAX);return t>0?t:r.LAYOUT_MAX},r.prototype._doApply=function(e){t.prototype._doApply.call(this,e),a.hasOwnProperty.call(e,"children")&&(this._series=[],this.$_loadSeries(this.chart,e.children))},r.prototype._doSaveArray=function(t,e){if("children"===t)return this._series.map((function(t){return t.saveOptions()}))},r.prototype._prepareRender=function(){var e=this._visibles;if(this._legended=null,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=!c.Utils.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)},r.prototype._connect=function(t){this._xAxisObj=t._connectSeries(this,!0),this._yAxisObj=t._connectSeries(this,!1)},r.prototype._doPrepareRender=function(t){this._visibles.length>0&&(this._visibles.forEach((function(e){return e._connect(t)})),this._visibles.forEach((function(t){return t._prepareRender()})),this._doPrepareSeries(this._visibles))},r.prototype.prepareAfter=function(){this._visibles.forEach((function(t){return t.prepareAfter()}))},r.prototype._setIndex=function(t){this._index=t},r.prototype._doPrepareSeries=function(t){},r.prototype.$_loadSeries=function(t,e){var i=this,r=this._seriesType();(0,a.isArray)(e)?e.forEach((function(e,n){return i.$_add(O._loadSeries(t,i._series.length,e,r))})):(0,a.isObject)(e)&&this.$_add(O._loadSeries(t,this._series.length,e,r))},r.prototype.$_add=function(t){if(!this._canContain(t))throw new Error("이 그룹에 포함될 수 없는 시리즈입니다: "+t);this._series.push(t),t._group=this},r.prototype.$_collectValues=function(t,e){this._visibles.forEach((function(i){i.collectValues(t,e)}))},r.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 r=1;r<e.length;r++)e[r]._runPoints.forEach((function(t){var e=i.get(t.xValue);e?e.push(t):i.set(t.xValue,[t])}));return i},r.prototype.$_collectStack=function(t,e){var i,r,n,o,a=this.getBaseValue(t),l=this.$_collectPoints(t);if(isNaN(a))try{for(var u=s(l.values()),c=u.next();!c.done;c=u.next()){(f=c.value)[0].yGroup=f[0].yValue||0;for(g=1;g<f.length;g++)f[g].yGroup=f[g-1].yGroup+(f[g].yValue||0);e.push(f[f.length-1].yGroup)}}catch(t){n={error:t}}finally{try{c&&!c.done&&(o=u.return)&&o.call(u)}finally{if(n)throw n.error}}else try{for(var p=s(l.values()),h=p.next();!h.done;h=p.next()){var f,d=(f=h.value)[0].yValue||0,_=d>=a?0:-1,y=d<a?0:-1;f[0].yGroup=f[0].yValue||0;for(var g=1;g<f.length;g++)(d=f[g].yValue||0)>=a?(_>=0&&(f[g].yGroup=f[_].yGroup+d*(d<0?-1:1)),_=g):(y>=0&&(f[g].yGroup=f[y].yGroup+d*(d>=0?-1:1)),y=g);_>=0&&e.push(f[_].yGroup),y>=0&&e.push(f[y].yGroup)}}catch(t){i={error:t}}finally{try{h&&!h.done&&(r=p.return)&&r.call(p)}finally{if(i)throw i.error}}},r.prototype.$_collectFill=function(t,e){var i,r,n,o,l,u,c,p,h,f,d,_,y=this.getBaseValue(t),g=this.getLayoutMax(),v=this.$_collectPoints(t);if(isNaN(y))try{for(var m=s(v.values()),b=m.next();!b.done;b=m.next()){E=(C=b.value).reduce((function(t,e){return t+(e.yValue||0)}),0);if(0===E){try{for(var w=(h=void 0,s(C)),x=w.next();!x.done;x=w.next()){(j=x.value).yValue=j.yGroup=0}}catch(t){h={error:t}}finally{try{x&&!x.done&&(f=w.return)&&f.call(w)}finally{if(h)throw h.error}}e.push(0)}else{T=0;try{for(var S=(d=void 0,s(C)),P=S.next();!P.done;P=S.next()){(j=P.value).yValue=(j.yValue||0)/E*g,T=j.yGroup=j.yValue+T}}catch(t){d={error:t}}finally{try{P&&!P.done&&(_=S.return)&&_.call(S)}finally{if(d)throw d.error}}e.push(g)}}}catch(t){c={error:t}}finally{try{b&&!b.done&&(p=m.return)&&p.call(m)}finally{if(c)throw c.error}}else try{for(var A=s(v.values()),O=A.next();!O.done;O=A.next()){var C,E=(C=O.value).reduce((function(t,e){return t+((0,a.absv)(e.yValue)||0)}),0);if(0===E){try{for(var V=(n=void 0,s(C)),L=V.next();!L.done;L=V.next()){(j=L.value).yValue=j.yGroup=0}}catch(t){n={error:t}}finally{try{L&&!L.done&&(o=V.return)&&o.call(V)}finally{if(n)throw n.error}}e.push(0,0)}else{var T=0,k=0;try{for(var N=(l=void 0,s(C)),M=N.next();!M.done;M=N.next()){var j;(j=M.value).yValue=(j.yValue||0)/E*g,j.yValue<y?k=j.yGroup=(j.yValue||0)+k:T=j.yGroup=(j.yValue||0)+T}}catch(t){l={error:t}}finally{try{M&&!M.done&&(u=N.return)&&u.call(N)}finally{if(l)throw l.error}}e.push(k,T)}}}catch(t){i={error:t}}finally{try{O&&!O.done&&(r=A.return)&&r.call(A)}finally{if(i)throw i.error}}},r.LAYOUT_MAX=100,r.defaults=(0,y.extend)(y.ChartItem.defaults,{layout:"default",layoutMax:r.LAYOUT_MAX,visibleInLegend:!0,zOrder:0,tooltipHeader:"<b>${name}</b>",tooltipRow:"${series}:<b> ${yValue}</b>"}),r}(y.ChartItem);e.SeriesGroup=F;var z=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.collectValues=function(e,i){if(t.prototype.collectValues.call(this,e,i),e===this._yAxisObj){var r=this._doConstraintYValues(this._visibles);i.length=0,i.push.apply(i,o([],n(r),!1))}},e}(F);e.ConstraintSeriesGroup=z;var $=function(t){function e(){var e=t.apply(this,o([],n(arguments),!1))||this;return e._clusterWidth=1,e._clusterPos=0,e}return i(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=(0,y.extend)(F.defaults,{groupWidth:1,groupPadding:.1}),e}(F);e.ClusterableSeriesGroup=$;var H=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.isMarker=function(){return!0},e.prototype.isXY=function(){return!0},e.defaults=(0,y.extend)(O.defaults,{colorByPoint:!1}),e}(E);e.MarkerSeries=H}(OB);var hD={},fD=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),dD=t&&t.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s},_D=t&&t.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(hD,"__esModule",{value:!0}),hD.SeriesNavigator=hD.NavigatorMask=hD.NavigiatorHandle=void 0;var yD=iM,gD=TM,vD=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return fD(e,t),e}(gD.ChartItem);hD.NavigiatorHandle=vD;var mD=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return fD(e,t),e}(gD.ChartItem);hD.NavigatorMask=mD;var bD={area:function(){return{type:"area"}},line:function(){return{type:"line"}},bar:function(){return{type:"bar"}}},wD={category:function(){return{type:"category"}},linear:function(){return{type:"linear"}},time:function(){return{type:"time"}},log:function(){return{type:"log"}}},xD={minPadding:0,maxPadding:0},SD=function(t){function e(){var e=t.apply(this,_D([],dD(arguments),!1))||this;return e._dataChanged=!0,e}return fD(e,t),e.prototype._doInit=function(t){var e=this.chart;t.handle=(this._handle=new vD(e)).init(),t.mask=(this._mask=new mD(e)).init(),t.borderLine=(this._borderLine=new gD.ChartItem(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(0,yD.pickNum)(this._op.thickness,e.defaults.thickness)},e.prototype.getGap=function(){return(0,yD.pickNum)(this._op.gap,e.defaults.gap)},e.prototype.getGapFar=function(){return(0,yD.pickNum)(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 r={};if((0,yD.isObject)(i.series)){var n=i.series.type;"area"!==n&&"line"!==n&&"bar"!==n&&(n="area"),r.series=(0,yD.assignObj)({},i.series,bD[n]())}else r.series=bD.area();(0,yD.isObject)(i.xAxis)?r.xAxis=(0,yD.assignObj)({},i.xAxis,(wD[i.xAxis.type]||wD.linear)(),xD):r.xAxis=(0,yD.assignObj)({},xD),(0,yD.isObject)(i.yAxis)?r.yAxis=(0,yD.assignObj)({},i.yAxis,(wD[i.yAxis.type]||wD.linear)(),xD):r.yAxis=(0,yD.assignObj)(wD.linear(),xD),this._chartConfig=r,this._axisType=r.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=(0,gD.extend)(gD.ChartItem.defaults,{visible:!1,usePointSource:!1,liveScroll:!0,minSize:.05,thickness:45,gap:8,gapFar:3}),e}(gD.ChartItem);hD.SeriesNavigator=SD;var PD={},AD=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(PD,"__esModule",{value:!0}),PD.Subtitle=PD.Title=void 0;var OD=iM,CD=wM,ED=TM,VD=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return AD(e,t),e.prototype._isVisible=function(){return this._op.visible&&!(0,CD.isNull)(this._op.text)},e.prototype._doSetSimple=function(e){return(0,OD.isString)(e)?(this._op.text=e,!0):t.prototype._doSetSimple.call(this,e)},e.defaults=(0,ED.extend)(ED.ChartItem.defaults,{text:"Title",alignBase:"body",align:"center",verticalAlign:"middle",gap:10,offset:0}),e}(ED.ChartItem);PD.Title=VD;var LD=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return AD(e,t),e.defaults=(0,ED.extend)(VD.defaults,{position:"bottom",text:"",titleGap:2,verticalAlign:"bottom"}),e}(VD);PD.Subtitle=LD;var TD={},kD=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(TD,"__esModule",{value:!0}),TD.Tooltip=void 0;var ND=iM,MD=FM,jD=kM,RD=TM,BD=function(t){function e(e){var i=t.call(this,e.chart)||this;return i.owner=e,i}return kD(e,t),e.prototype._doInit=function(e){var i=this;t.prototype._doInit.call(this,e),this._domain={callback:function(t,e){var r=i,n=r._series,o=r._point,s=r._ctx,a=n._group,l=!!s.axis,u=n,c=o;if(l||a){var p=e.match(/(\d+)\.(series|yValue)/);if(p){var h=Number(p[1])||0;e=e.replace(h+".",""),u=l?s.series[h]:a.getVisibleSeries()[h]}}return e.match(/yValue\.(\d+)/)&&(c=u.getPointAt(o.xValue),e="yValue"),s.getTooltipParam(u,c,e)}}},e.prototype.setTarget=function(t,e,i){var r=(0,ND.pickProp)(this._op.scope,"hover");return this._ctx=this.visible&&this.owner.getTooltipContext(r,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.getHeaderHeight=function(){var t=this._op;return t.simpleMode?0:(0,ND.maxv)((0,ND.pickNum)(t.headerHeight,0),0)},e.prototype.getTailSize=function(){return this._op.simpleMode?0:(0,ND.maxv)((0,ND.pickNum)(this._op.tailSize,0),0)},e.prototype.getBorderRadius=function(){return this._op.simpleMode?0:(0,ND.maxv)((0,ND.pickNum)(this._op.borderRadius,0),0)},e.prototype._doSetSimple=function(e){return(0,ND.isString)(e)?(this._op.text=e,!0):t.prototype._doSetSimple.call(this,e)},e.prototype._doApply=function(e){var i,r=this;t.prototype._doApply.call(this,e),(i=e.numberFormat)!=r._numberFormat&&(r._numberFormat=i,r._domain.numberFormatter=r._numberFormat?jD.NumberFormatter.getFormatter(r._numberFormat):void 0),function(t){t!=r._timeFormat&&(r._timeFormat=t,r._domain.timeFormatter=r._timeFormat?MD.DatetimeFormatter.getFormatter(r._timeFormat):void 0)}(e.timeFormat)},e.defaults=(0,RD.extend)(RD.ChartItem.defaults,{scope:"hover",offset:8,hideDelay:700,minWidth:100,minHeight:40,nanText:"",numberFormat:",#.##",timeFormat:"yyyy-MM-dd",headerHeight:7,tailSize:10,borderRadius:5,simpleMode:!1}),e}(RD.ChartItem);TD.Tooltip=BD;var DD={},ID={};!function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.AnnotationTypes=t.TextAnnotationType=t._ShapeAnnotationShape=t.ShapeAnnotationType=t.ImageAnnotationType=t._AnnotationScope=void 0,t._AnnotationScope={CHART:"chart",CONTAINER:"container"},t.ImageAnnotationType="image",t.ShapeAnnotationType="shape",t._ShapeAnnotationShape={CIRCLE:"circle",DIAMOND:"diamond",SQUARE:"square",TRIANGLE:"triangle",STAR:"star",ITRIANGLE:"itriangle",RECTANGLE:"rectangle",VLINE:"vline",HLINE:"hline",LINE:"line"},t.TextAnnotationType="text",t.AnnotationTypes={ImageAnnotationType:t.ImageAnnotationType,ShapeAnnotationType:t.ShapeAnnotationType,TextAnnotationType:t.TextAnnotationType}}(ID);var GD=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(DD,"__esModule",{value:!0}),DD.ImageAnnotation=void 0;var FD=iM,zD=wM,$D=ID,HD=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return GD(e,t),e.prototype._isVisible=function(){return this._op.visible&&!(0,zD.isNull)(this._op.imageUrl)},e.prototype._doSetSimple=function(e){return(0,FD.isString)(e)?(this._op.imageUrl=e,!0):t.prototype._doSetSimple.call(this,e)},e.type=$D.ImageAnnotationType,e}(LM.Annotation);DD.ImageAnnotation=HD;var WD={},UD=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(WD,"__esModule",{value:!0}),WD.ShapeAnnotation=void 0;var YD=iM,XD=ID,qD=LM,ZD=TM,KD=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return UD(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(0,YD.isString)(e)?(this._op.shape=e,!0):t.prototype._doSetSimple.call(this,e)},e.type=XD.ShapeAnnotationType,e.defaults=(0,ZD.extend)(qD.Annotation.defaults,{width:64,height:64,shape:"square"}),e}(qD.Annotation);WD.ShapeAnnotation=KD;var JD={},QD=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),tI=t&&t.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s},eI=t&&t.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(JD,"__esModule",{value:!0}),JD.TextAnnotation=void 0;var iI=iM,rI=FM,nI=kM,oI=wM,sI=ID,aI=LM,lI=TM,uI=function(t){function e(){var e=t.apply(this,eI([],tI(arguments),!1))||this;return e._domain={callback:function(t,i){return e.chart.getParam(t,i)}},e}return QD(e,t),e.prototype.getTextOrientation=function(){return this._op.textOrientation||"upright"},e.prototype._isVisible=function(){return this._op.visible&&!(0,oI.isNull)(this._op.text)},e.prototype._doSetSimple=function(e){return(0,iI.isString)(e)?(this._op.text=e,!0):t.prototype._doSetSimple.call(this,e)},e.prototype._doApply=function(e){var i,r=this;t.prototype._doApply.call(this,e),(i=e.numberFormat)!==r._numberFormat&&(r._numberFormat=i,r._domain.numberFormatter=i?nI.NumberFormatter.getFormatter(i):oI._undef),function(t){t!==r._timeFormat&&(r._timeFormat=t,r._domain.timeFormatter=t?rI.DatetimeFormatter.getFormatter(t):oI._undef)}(e.timeFormat)},e.type=sI.TextAnnotationType,e.defaults=(0,lI.extend)(aI.Annotation.defaults,{text:"Text"}),e}(aI.Annotation);JD.TextAnnotation=uI;var cI={},pI=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),hI=t&&t.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s},fI=t&&t.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))},dI=t&&t.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,i=e&&t[e],r=0;if(i)return i.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(cI,"__esModule",{value:!0}),cI.LinearAxis=cI.ContinuousAxis=cI.AxisBaseLine=cI.AxisBreak=cI.LinearAxisLabel=cI.ContinuousAxisLabel=cI.ContinuousAxisTick=cI.ContinuousAxisGrid=void 0;var _I=rM,yI=iM,gI=wM,vI=KB,mI=WR,bI=TM,wI=OB,xI=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return pI(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}(mI.AxisGrid);cI.ContinuousAxisGrid=xI;var SI=function(t){function e(){var e=t.apply(this,fI([],hI(arguments),!1))||this;return e._strictEnds=!1,e._userTicks=!1,e}return pI(e,t),e.prototype._getValidInterval=function(t,e,i,r,n){if((0,yI.isFunc)(e)){var o=e.call(void 0,{chart:this.chart.wrapper,length:i,minValue:t._calcedMin,maxValue:t._calcedMax,min:r,max:n});isNaN(o)||(e=o)}return e>0?e:void 0},e.prototype.buildSteps=function(t,e,i,r,n,o){void 0===o&&(o=!1);var s,a=this._op,l={chart:this.chart.wrapper,length:e,minValue:t._calcedMin,maxValue:t._calcedMax,min:r,max:n},u=this.$_getStepPixels(e,l);return this._userTicks=this._strictEnds=!1,this._step=NaN,o?this._getStepsByPixels(e,(0,yI.pickNum)(.85*u,60),i,r,n,l):(0,yI.isArray)(a.steps)||(0,yI.isFunc)(a.steps)||(0,yI.isFunc)(a.stepCallback)?this._getStepsBySteps(r,n,l):this._baseAxis instanceof EI&&this._baseAxis._ticks.length>0?this._getStepsByCount(this._baseAxis._ticks.length,i,r,n,!0):a.stepCount>1?this._getStepsByCount(a.stepCount,i,r,n,!1):null!=(s=this._getValidInterval(t,a.stepInterval,e,r,n))?this._getStepsByInterval(s,i,r,n):u>0?this._getStepsByPixels(e,u,i,r,n,l):r!==n?[r,n]:[r]},e.prototype.getNextStep=function(t,e){return t+e*this._step},e.prototype.getMaxCount=function(t,e){return void 0===this._op.maxCount?(0,yI.maxv)(8,(0,yI.ceil)(t/(.9*e))+1):(0,yI.pickNum)(this._op.maxCount,1/0)},e.prototype.canUseNumSymbols=function(){return isNaN(this._step)||this._step>=500},e.prototype._doApply=function(e){var i;if(t.prototype._doApply.call(this,e),this._stepPixels=!(0,yI.isFunc)(e.stepPixels)&&_I.Utils.parseTuples(e.stepPixels),yI.hasOwnProperty.call(e,"stepMultiples"))if((0,yI.isFunc)(e.stepMultiples))i=e.stepMultiples;else{var r;if((0,yI.isArray)(e.stepMultiples)){var n=Number.MIN_SAFE_INTEGER;r=[],e.stepMultiples.forEach((function(t){!isNaN(+t)&&t>n&&r.push(+t)}))}(i=r&&r.length>0?r:void 0)&&((i=i.filter((function(t){return t>=1}))).length>0?i.sort((function(t,e){return t-e})):i=void 0)}this._userMultiples=i},e.prototype.$_getStepPixels=function(t,i){var r=this._stepPixels;if((0,yI.isFunc)(r)&&(r=r.call(void 0,i)),!r){var n=this.axis;r=n._isPolar?e.STEP_PIXELS_P:n._isX?e.STEP_PIXELS_X:e.STEP_PIXELS_Y}for(var o=0;o<r.length;o++)if(t<=r[o][0])return(0,yI.maxv)(1,r[o][1])},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 EI&&(this._baseAxis=e,e.tick._baseAxis=null)}},e.prototype._normalizeMin=function(t,e){return t>(0,yI.floor)(t/e)*e?t=(0,yI.floor)(t/e)*e:t<(0,yI.ceil)(t/e)*e&&(t=(0,yI.ceil)(t/e)*e),t},e.prototype._getStepsByCount=function(t,e,i,r,n){i>e?(i=e,e=NaN):r<e&&(r=e,e=NaN),this._strictEnds=!0;var o=this.axis,s=r-i,a=s/(t-1),l=Math.pow(10,Math.floor(Math.log10(a))),u=[];if(isNaN(o._fixedMin)||isNaN(o._fixedMax)?n&&a/l==2.5&&(0,yI.floor)(t*s/a)==t*s/a?this._step=a:a=this._step=(0,yI.ceil)(a/l)*l:a=s/(t-1),isNaN(o._fixedMin))if(isNaN(e))i=this._normalizeMin(i,l);else{for((0,gI.assert)(i<e&&r>e,"base error"),t=(0,yI.maxv)(3,t);;){if(!((0,yI.ceil)((e-i)/a)+(0,yI.ceil)((r-e)/a)+1>t))break;a+=l}i=e-(0,yI.ceil)((e-i)/a)*a}else i=o._fixedMin;u.push((0,gI.fixnum)(i));for(var c=1;c<t;c++)u.push((0,gI.fixnum)(u[c-1]+a));return u},e.prototype._getStepsByInterval=function(t,e,i,r){var n,o=[];if(i=(0,gI.fixnum)(this._normalizeMin(i,t)),isNaN(e))for(o.push(n=i);n<r;)o.push(n=(0,gI.fixnum)(n+t));else{for(o.push(n=e);n>i;)o.unshift(n=(0,gI.fixnum)(n-t));for(n=e;n<r;)o.push(n=(0,gI.fixnum)(n+t))}return this._step=t,o},e.prototype._getStepMultiples=function(t,i){var r;return(null!==(r=(0,yI.isFunc)(this._userMultiples)?this._userMultiples.call(void 0,i):this._userMultiples)&&void 0!==r?r:this._op.fineStep)?e.STEP_MULTIPLES[2]:this._op.enableDecimals&&1===t?e.STEP_MULTIPLES[0]:e.STEP_MULTIPLES[1]},e.prototype._getStepsBySteps=function(t,e,i){var r,n=this._op,o=(0,yI.isFunc)(n.steps)?n.steps:n.stepCallback;return o?(r=o.call(void 0,i),(0,yI.isArray)(r)&&!r.every((function(t){return!isNaN(+t)}))||(r=t!==e?[t,e]:[t])):r=n.steps.filter((function(t){return isFinite(+t)})).map((function(t){return+t})),(r=r.filter(n.clipSteps?function(i){return i>=t&&i<=e}:function(t){return isFinite(t)})).sort((function(t,e){return t-e})),r.length>0&&!isFinite(+r[0])&&(r[0]=t),r.length>1&&!isFinite(+r[r.length-1])&&(r[r.length-1]=e),this._userTicks=this._strictEnds=!0,r},e.prototype._getStepsByPixels=function(t,e,i,r,n,o){r>=i?r=i:n<=i&&(n=i);var s=n-r;if(0===s||t<=0)return isNaN(r)?[]:[r];var a,l=this.getMaxCount(t,e),u=(0,yI.maxv)(1,(0,yI.floor)(t/e))+1,c=s/(u-1),p=(0,yI.pow10)((0,yI.floor)((0,yI.log10)(c))),h=this._getStepMultiples(p,o),f=[],d=0;if(c/=p,h)if(c>h[d]){for(;d<h.length-1;d++)if(c>h[d]&&c<h[d+1]){c=c<=h[d]+(h[d+1]-h[d])/2?h[d]:h[d+1];break}}else c=h[d];for(;;){for(((c*=p)<=0||!isFinite(c))&&(c=s/u),r=isNaN(i)?this._normalizeMin(r,c):i-(0,yI.ceil)((i-r)/c)*c,this._step=c,f.push((0,gI.fixnum)(a=r));a<n;)f.push((0,gI.fixnum)(a+=c));if(!h||d>h.length-2||f.length<=l)break;c=h[++d],f.length=0}return f},e.STEP_PIXELS_P=[[1/0,48]],e.STEP_PIXELS_Y=[[130,36],[300,48],[700,72],[1/0,96]],e.STEP_PIXELS_X=[[400,48],[900,72],[1/0,96]],e.STEP_MULTIPLES=[[1,2,2.5,5,10],[1,2,5,10],[1,2,2.5,3,4,5,10]],e.defaults=(0,bI.extend)(mI.AxisTick.defaults,{baseRange:!1,enableDecimals:!0}),e}(mI.AxisTick);cI.ContinuousAxisTick=SI;var PI=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return pI(e,t),e.defaults=(0,bI.extend)(mI.AxisLabel.defaults,{numberFormat:"0.##"}),e}(mI.AxisLabel);cI.ContinuousAxisLabel=PI;var AI=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return pI(e,t),e.prototype.getTick=function(t,e){return this._getText(null,e,"*"===this._op.useSymbols||this._op.useSymbols&&this.axis.tick.canUseNumSymbols(),!1)},e.defaults=(0,bI.extend)(PI.defaults,{useSymbols:!0}),e}(PI);cI.LinearAxisLabel=AI;var OI=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return pI(e,t),e.prototype.getSize=function(t){return Math.min(.9*t,(0,gI.calcPercent)(this._sizeDim,t))},e.prototype._doApply=function(e){var i;t.prototype._doApply.call(this,e),this._op.space=(0,yI.pickNum)(this._op.space,0),this._sizeDim=(0,gI.parsePercentSize)(null!==(i=this._op.size)&&void 0!==i?i:"30%",!1),this.axis._breaksChanged=!0},e.defaults=(0,bI.extend)(mI.AxisItem.defaults,{size:"30%",space:16,gridVisible:!0}),e}(mI.AxisItem);cI.AxisBreak=OI;var CI=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return pI(e,t),e.prototype._isVisible=function(){return this._op.visible},e.defaults=(0,bI.extend)(mI.AxisLine.defaults,{visible:!1}),e}(mI.AxisLine);cI.AxisBaseLine=CI;var EI=function(t){function e(){var e=t.apply(this,fI([],hI(arguments),!1))||this;return e._breaks=[],e._breaksChanged=!1,e}return pI(e,t),e.prototype._doInit=function(e){t.prototype._doInit.call(this,e),e.baseLine=(this._baseLine=new CI(this)).init()},Object.defineProperty(e.prototype,"baseLine",{get:function(){return this._baseLine},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"break",{get:function(){return this._breaks?this._breaks[0]:null},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._baseVal},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.$_getPadding=function(t,i,r){t||(t=e.PADDINGS);for(var n=0;n<t.length;n++)if(i<=t[n][0])return t[n][1]*r;return 0},e.prototype._doApply=function(e){var i,r;t.prototype._doApply.call(this,e);var n,o=null!==(i=e.minPadding)&&void 0!==i?i:e.padding,s=null!==(r=e.maxPadding)&&void 0!==r?r:e.padding;this._minPadPixels=NaN,(0,yI.isString)(o)&&o.endsWith("px")&&(n=parseFloat(o),isFinite(n)&&(this._minPadPixels=n)),this._maxPadPixels=NaN,(0,yI.isString)(s)&&s.endsWith("px")&&(n=parseFloat(s),isFinite(n)&&(this._maxPadPixels=n)),isNaN(this._minPadPixels)&&(this._minPaddings=_I.Utils.parseTuples(o)),isNaN(this._maxPadPixels)&&(this._maxPaddings=_I.Utils.parseTuples(s)),this._baseVal=+this._op.baseValue,this._strictMin=(0,gI.parsePercentSize)(e.strictMin,!0),this._strictMax=(0,gI.parsePercentSize)(e.strictMax,!0),yI.hasOwnProperty.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 xI(this)},e.prototype._createTickModel=function(){return new SI(this)},e.prototype._doPrepareRender=function(){this._breaksChanged&&(this.$_mergeBreaks(),this._breaksChanged=!1),this._tick._findBaseAxis()},e.prototype.$_trim=function(t){var e=(0,yI.pickNum)(this._runBase,this._min);isNaN(this._fixedMax)&&isNaN(this._maxPadPixels)&&this._calcedMax>e&&t[t.length-2]>this._calcedMax&&t[t.length-2]-this._calcedMax>.5*(t[t.length-2]-t[t.length-3])&&(t.pop(),this._setMinMax(this._min,t[t.length-1])),e=(0,yI.pickNum)(this._runBase,this._max),isNaN(this._fixedMin)&&isNaN(this._minPadPixels)&&this._calcedMin>e&&t[1]<this._calcedMin&&t[1]-this._calcedMin<.5*(t[1]-t[2])&&(t.shift(),this._setMinMax(t[0],this._max))},e.prototype.$_trimSteps=function(t,e,i){this._runBreaks?(this._lastSect=this._sects[this._sects.length-1],t.length>3&&t[t.length-3]>this._lastSect.from&&(this.$_trim(t),this._lastSect.to=t[t.length-1])):!this.tick._userTicks&&t.length>2&&this.$_trim(t)},e.prototype._doBuildTicks=function(t,i,r,n){if(isNaN(t)||isNaN(i))return[];if(n>1&&!this._isHorz){var o=this._prevSteps;return this.$_trimSteps(o,r,n),this.$_createTicks(o,r,this._min,this._max,n)}var s=this._tick,a=s._baseAxis instanceof e&&s._baseAxis._ticks.length>0,l=this._op;l.minValue<t&&(t=l.minValue),l.maxValue>i&&(i=l.maxValue);var u,c,p=this._adjustMinMax(r,this._calcedMin=t,this._calcedMax=i),h=p.min,f=p.max;if(a&&s.options.baseRange&&(h=s._baseAxis.axisMin(),f=s._baseAxis.axisMax()),this._mergedBreaks){this._runBreaks=this._mergedBreaks.slice(0);for(var d=this._runBreaks.length-1;d>=0;d--){var _=this._runBreaks[d];(isNaN(_.options.from)||isNaN(_.options.to)||_.options.from<=h||_.options.to>=f)&&this._runBreaks.splice(d,1)}this._runBreaks.length<1&&(this._runBreaks=null)}else this._runBreaks=null;if(h===f)u=[h];else if(this._runBreaks)u=this.$_calcBrokenSteps(this._runBreaks,r,h,f),h=Math.min(h,u[0]),f=Math.max(f,u[u.length-1]);else if(c=(u=s.buildSteps(this,r,this._runBase,h,f,!1)).slice(0),u.length>0){if(!isNaN(this._fixedMin)||!s._strictEnds&&"tick"!==this.$_getStartFit()){for(;u.length>1&&u[0]<h;)u.shift();u.length<2&&this._fixedMin<u[0]&&u.unshift(this._fixedMin)}else if(!s._strictEnds&&!a&&isNaN(this._minPadPixels)){for(;u.length>2&&u[1]<=h;)u.shift();if(!isNaN(s._step))for(;u[0]>h;)u.unshift(s.getNextStep(u[0],-1))}if(h=Math.min(h,u[0]),!isNaN(this._fixedMax)||!s._strictEnds&&"tick"!==this.$_getEndFit()){for(;u.length>1&&f<u[u.length-1];)u.pop();u.length<2&&this._fixedMax>u[u.length-1]&&u.push(this._fixedMax)}else if(!s._strictEnds&&!a&&isNaN(this._maxPadPixels)){for(;u.length>2&&u[u.length-2]>=f;)u.pop();if(!isNaN(s._step))for(;u[u.length-1]<f;)u.push(s.getNextStep(u[u.length-1],1))}f=Math.max(f,u[u.length-1])}else u.push(h+(f-h)/2);this._prevSteps=u,this._setMinMax(h,f);var y=this.$_createTicks(u,r,h,f,n);if(this._isX)if(h===f)this._unitLen=r/4;else{var g=this.$_calcXUnitLength(this._isPolar?this.getTotalAngle():r);if(g){if(this._unitLen=g.len,!this._isPolar&&!this._zoom){var v=c,m=!1;if(h=this._min=Math.min(this._calcedMin-g.min/2,h),f=this._max=Math.max(this._calcedMax+g.min/2,f),y.length>1){var b=void 0;d=void 0;if(v[0]<h){for(d=-1;d<u.length-1&&v[d+1]<u[0];)d++;for(;d>=0&&(b=v[d])>=h;){var w=this.dataToAxis(y[0].value),x=this.dataToAxis(y[1].value);if(b<w&&w-b>=x-w){var S=this._createTick(0,b);y.unshift(S),u.unshift(b),m=!0}d--}}if(v[v.length-1]>f){for(d=v.length;d>0&&v[d-1]>u[u.length-1];)d--;for(;d<v.length&&(b=v[d])<=f;){w=this.dataToAxis(y[y.length-1].value),x=this.dataToAxis(y[y.length-2].value);if(b>=w&&b-w>=w-x){var P=this._createTick(0,b);y.push(P),u.push(b),m=!0}d++}}m&&y.forEach((function(t,e){return t.index=e}))}}}else this._unitLen=1}return y},e.prototype.$_createTicks=function(t,e,i,r,n){for(var o=[],s=NaN,a=0;a<t.length;a++){var l=this._createTick(a,t[a]);l.value!==s&&(o.push(l),s=l.value)}return o},e.prototype._createTick=function(t,e){return{index:t,pos:NaN,value:e,label:this.label.getTick(t,e)||String(e)}},e.prototype._calcPoints=function(e,i){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(this,t.len,void 0,t.from,t.to,!0)},e.prototype.$_calcBrokenSteps=function(t,e,i,r){var n=this,o=0,s=i,a=[s],l=this._sects=[],u=e-t.reduce((function(t,e){return t+e.options.space}),0);t.forEach((function(t){var e=t.options,i=t.getSize(u),r=Math.max(0,e.space||0),c={from:s,to:t.options.from,pos:o,len:i};o+=i,l.push(c,t._sect={from:e.from,to:e.to,pos:o,len:r}),o+=r,n.$_buildBrokenSteps(c).forEach((function(t){t>c.from&&t<=c.to&&a.push(t)})),r>0&&a.push(e.to)}));var c=t[t.length-1];if(r>c.options.to){var p={from:c.options.to,to:r,pos:o,len:e-o};l.push(p),this.$_buildBrokenSteps(p).forEach((function(t){t>p.from&&a.push(t)}))}return this._lastSect=l[l.length-1],this._lastSect.to=a[a.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,r=i.len*(e-i.from)/(i.to-i.from);return this._op.reversed?(0,gI.fixpos)(t-r-i.pos):(0,gI.fixpos)(r+i.pos)}r=this._single?.5*t:t*(e-this._min)/(this._max-this._min);return(0,gI.fixpos)(this._op.reversed?t-r:r)},e.prototype.valueAt=function(t,e){var i,r;if(this._isHorz?this._op.reversed&&(e=t-e):this._op.reversed||(e=t-e),this._runBreaks){var n=0;try{for(var o=dI(this._sects),s=o.next();!s.done;s=o.next()){var a=s.value;if(e>=n&&e<n+a.len)return(a.to-a.from)*(e-n)/a.len+a.from;n+=a.len}}catch(t){i={error:t}}finally{try{s&&!s.done&&(r=o.return)&&r.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._isLog=function(){return!1},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.$_calcStrict=function(t,e,i){if(t)return t.fixed?t.size:i<0?e-(0,gI.calcPercent)(t,i):e+(0,gI.calcPercent)(t,i)},e.prototype._adjustMinMax=function(t,e,i){var r,n=this,o=this._isLog(),s=this.isZoomed(),a=this.isZoomed(),l=!0,u=!0,c=NaN,p=NaN,h=1;if(this._series.length>0){var f,d=0;this._series.forEach((function(t){isNaN(t._sBase=t.getBaseValue(n))||d++,h=(0,yI.maxv)(h,t.getAxisPadRate())})),!this._isX&&d>0&&d<this._series.length&&(r={},this._series.forEach((function(t){var e=t._type();r[e]?r[e]=[(0,yI.minv)(t._yMin,r[e][0]),(0,yI.maxv)(t._yMax,r[e][1])]:r[e]=[t._yMin,t._yMax]}))),this._series.forEach((function(t){var r=t._sBase;isNaN(r)||(r=(0,gI.fixnum)(r),o?r>=0&&r<=e&&r<=i&&(e=f=r):r<=e?t.isBased(n)?e=f=r:c=(0,yI.pickNum)((0,yI.minv)(c,r),r):r>=i&&(t.isBased(n)?i=f=r:p=(0,yI.pickNum)((0,yI.maxv)(p,r),r))),l&&!s&&(o||t.canMinPadding(n,e,f))&&(l=!1),u&&!a&&(o||t.canMaxPadding(n,i,f))&&(u=!1)}))}else l=s,u=a;s||(s=l),a||(a=u),this._fixedMin=this._fixedMax=NaN;var _=(0,yI.maxv)(0,i-e),y=this.$_calcStrict(this._strictMin,e,-_),g=this.$_calcStrict(this._strictMax,i,_),v=NaN,m=NaN,b=0,w=0;isNaN(y)?s?this._fixedMin=e:isNaN(this._minPadPixels)?b=this.$_getPadding(this._minPaddings,t,h):v=this._minPadPixels:this._fixedMin=e=y,isNaN(g)?a?this._fixedMax=i:isNaN(this._maxPadPixels)?w=this.$_getPadding(this._maxPaddings,t,h):m=this._maxPadPixels:this._fixedMax=i=g;var x=e,S=i;if(r){for(var P in r){(A=r[P][0]-(r[P][1]-r[P][0])*b)<x&&(x=A)}for(var P in r){var A;(A=r[P][1]+(r[P][1]-r[P][0])*w)>S&&(S=A)}}else x-=_*b,S+=_*w;if(!isNaN(v)||!isNaN(m)){isNaN(v)&&(v=0),isNaN(m)&&(m=0);var O=Math.min(v+m,.9*t),C=t-O,E=_-(0,yI.floor)(_*C/t),V=Math.round(E*v/O);x-=V,S+=E-V}return!isNaN(c)&&c<=e&&x<c&&(x=this._fixedMin=c),!isNaN(p)&&p>=i&&S>p&&(S=this._fixedMax=p),{min:x,max:S}},e.prototype.$_calcXUnitLength=function(t){var e=[],i=0;if(this._series.forEach((function(t){t.visible&&t.isClusterable()&&(e.push.apply(e,fI([],hI(t._getVisiblePoints()),!1)),i++)})),0===i&&this._series.forEach((function(t){t.visible&&!t.isXY()&&e.push.apply(e,fI([],hI(t._getVisiblePoints()),!1))})),e.length>0){for(var r=e.map((function(t){return t.xValue})).sort((function(t,e){return t-e})),n=r.length-1;n>0;n--)r[n]===r[n-1]&&r.splice(n,1);return this._calcUnitLen(r,t,this._min,this._max)}},e.prototype._calcUnitLen=function(t,e,i,r){if(t.length<2)return this._ticks.length>0?(e*=(o=(r-i)/Math.max(8,this._ticks.length))/(r-i+o),{len:(0,yI.pickNum)(e,4),min:o}):{len:e,min:0};for(var n=e,o=t[1]-t[0],s=2;s<t.length;s++)o=(0,yI.minv)(o,t[s]-t[s-1]);return n*=o/(r-i+o),{len:(0,yI.pickNum)(n,1),min:o}},e.prototype.$_loadBreak=function(t){if((0,yI.isObject)(t)&&"from"in t&&"to"in t){var e=new OI(this);return e.init(),e._load(t),t.from>0?e:null}},e.prototype.$_loadBreaks=function(t){var e,i;if((0,yI.isArray)(t))try{for(var r=dI(t),n=r.next();!n.done;n=r.next()){var o=n.value;(s=this.$_loadBreak(o))&&this._breaks.push(s)}}catch(t){e={error:t}}finally{try{n&&!n.done&&(i=r.return)&&i.call(r)}finally{if(e)throw e.error}}else if(t){var s;(s=this.$_loadBreak(t))&&this._breaks.push(s)}this._breaksChanged=!0,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.visible&&t.options.to>t.options.from}));if(this._mergedBreaks=null,i.length>0){var r=this._mergedBreaks=[];r.push((0,yI.assignObj)(new OI(this)._initObject(),i[0]));for(var n=1;n<i.length;n++){var o=r[r.length-1],s=i[n];e=o,s.options.from<e.options.to?t(o,s):r.push((0,yI.assignObj)(new OI(this)._initObject(),s))}}},e.PADDINGS=[[170,.2],[300,.1],[700,.05],[1/0,.03]],e.defaults=(0,bI.extend)(mI.Axis.defaults,{baseValue:0,nullable:!0,startFit:"default",endFit:"default"}),e}(mI.Axis);cI.ContinuousAxis=EI;var VI=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return pI(e,t),Object.defineProperty(e.prototype,"label",{get:function(){return this._label},enumerable:!1,configurable:!0}),e.prototype._createLabel=function(){return new AI(this)},e.prototype._adjustMinMax=function(e,i,r){var n=t.prototype._adjustMinMax.call(this,e,i,r),o=this._series;return!this._isX&&1===o.length&&o[0]instanceof wI.SeriesGroup&&"fill"===o[0].options.layout&&(n.max=o[0].getLayoutMax()),n},e.type=vI.LinearAxisType,e}(EI);cI.LinearAxis=VI;var LI={},TI=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(LI,"__esModule",{value:!0}),LI.TimeAxis=LI.TimeAxisLabel=LI.TimeAxisTick=void 0;var kI=iM,NI=FM,MI=KB,jI=TM,RI=cI,BI=[1,1e3,6e4,36e5,864e5,6048e5,24192e5,314496e5],DI=[[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]],II={s:1,n:2,h:3,d:4,w:5,m:6,y:7},GI=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return TI(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._getValidInterval=function(t,e,i,r,n){var o;(0,kI.isFunc)(e)&&(null!=(o=e.call(void 0,{chart:this.chart.wrapper,length:i,minValue:t._calcedMin,maxValue:t._calcedMax,min:r,max:n}))&&(e=o));return isNaN(e)?(0,kI.isString)(e)&&II.hasOwnProperty(e.charAt(e.length-1))?(o=parseFloat(e))<=-1||o>=1?e:NaN:void 0:+e>0?+e:NaN},e.prototype._getStepMultiples=function(t){for(var e=0;e<7;e++)if(t>=BI[e]/2&&t<BI[e+1]/2)return this._scale=e,DI[e];this._scale=7},e.prototype._getStepsByPixels=function(t,e,i,r,n){var o=[],s=n-r;if(0===s)return o;var a=this.axis,l=new Date(a._calcedMin),u=Math.floor(t/e)+1,c=(0,kI.maxv)(1,Math.floor(s/(u-1))),p=this._getStepMultiples(c),h=BI[this._scale];if(c/=h,p)if(c>p[0]){for(var f=0;f<p.length-1;f++)if(c>p[f]&&c<p[f+1]){c=p[f+1];break}}else c=p[0];var d,_=a.date(r),y=a.date(n),g=_;if(7===this._scale){var v=l.getFullYear(),m=g.getFullYear();this._step=c=Math.ceil(c),g=new Date(m,0),m<v&&m+c>v&&(m=v,g=new Date(m,0));do{o.push(+g),m+=c,g=new Date(m,0)}while(g<=y)}else if(6===this._scale){m=g.getFullYear();var b=g.getMonth();this._step=c=Math.ceil(c),(g=new Date(m,b))<l&&new Date(m,b+c)>l&&(b=l.getMonth(),g=new Date(l.getFullYear(),b));do{o.push(+g),g.setMonth(g.getMonth()+c)}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=c=Math.ceil(c),(g=new Date(m,b,w))<l&&new Date(m,b,w+x*c)>l&&(w=l.getDate(),g=new Date(l.getFullYear(),l.getMonth(),w));do{o.push(+g),g.setDate(g.getDate()+c*x)}while(g<=y)}else{switch(this._step=c,c*=h,this._scale){case 3:g.setMinutes(0);case 2:g.setSeconds(0);case 1:g.setMilliseconds(0)}d=g.getTime();var S=l.getTime();d<S&&d+c>S&&(d=S);do{o.push(d),d+=c}while(d<=n)}return o},e.prototype._getStepsByInterval=function(e,i,r,n){if((0,kI.isString)(e)){var o=this.axis,s=new Date(o._calcedMin),a=[],l=e.charAt(e.length-1),u=parseFloat(e),c=void 0,p=void 0;this._scale=II[l],e=BI[this._scale];var h=new Date(r);switch(this._scale){case 7:var f=s.getFullYear(),d=h.getFullYear();h.setMonth(0,1),d<f&&f<d+u&&(h=new Date(f,0));break;case 6:h.setDate(1),h.setHours(0,0,0,0),(p=new Date(h)).setMonth(p.getMonth()+u),h<s&&s<p&&((h=new Date(s)).setDate(1),h.setHours(0,0,0,0));break;case 5:case 4:var _=5===this._scale?7:1;h.setHours(0,0,0,0),(p=new Date(h)).setDate(p.getDate()+u*_),h<s&&p>s&&(h=new Date(s)).setHours(0,0,0,0);break;case 3:h.setMinutes(0);case 2:h.setSeconds(0);case 1:h.setMilliseconds(0)}if(this._step=u,r=+h,isNaN(i))for(a.push(c=r);c<n;)a.push(c=this.getNextStep(c,1));else{for(a.push(c=i);c>r;)a.unshift(c=this.getNextStep(c,-1));for(c=i;c<n;)a.push(c=this.getNextStep(c,1))}return this._step=e,a}return t.prototype._getStepsByInterval.call(this,e,i,r,n)},e}(RI.ContinuousAxisTick);LI.TimeAxisTick=GI;var FI=[{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"}],zI=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return TI(e,t),e.prototype._doApply=function(e){t.prototype._doApply.call(this,e);var i=(0,kI.isString)(e.timeFormat)?e.timeFormat:void 0,r=(0,kI.isString)(e.beginningFormat)?e.beginningFormat:void 0,n=e.timeFormats,o=e.useBeginningFormat;if(this._formats=FI.map((function(t){return(0,kI.assignObj)(t)})),i&&this._formats.forEach((function(t){t.format=t.beginningFormat=i})),o&&r&&this._formats.forEach((function(t){t.beginningFormat=r})),(0,kI.isArray)(n))for(var s=0;s<n.length;s++){var a=this._formats[s],l=n[s];(0,kI.isStringL)(l)?a.format=l:(0,kI.isObject)(l)&&((0,kI.isStringL)(l.format)&&(a.format=l.format),o&&(0,kI.isStringL)(l.beginningFormat)&&(a.beginningFormat=l.beginningFormat))}},e.prototype.getTick=function(t,e){var i=this.chart,r=this.axis,n=r.date(e);if(this._formatter)return this._formatter.toStr(n,i.startOfWeek);var o=this._formats,s=r.tick._scale,a=NI.DatetimeFormatter.getFormatter;switch(s){case 7:return a(o[s].format).toStr(n,i.startOfWeek);case 6:return 0===t||0===n.getMonth()?a(o[s].beginningFormat).toStr(n,i.startOfWeek):a(o[s].format).toStr(n,i.startOfWeek);case 5:case 4:return 0===t||1===n.getDate()?a(o[s].beginningFormat).toStr(n,i.startOfWeek):a(o[s].format).toStr(n,i.startOfWeek);case 3:return 0===t||0===n.getHours()?a(o[s].beginningFormat).toStr(n,i.startOfWeek):a(o[s].format).toStr(n,i.startOfWeek);case 2:return 0===t||0===n.getMinutes()?a(o[s].beginningFormat).toStr(n,i.startOfWeek):a(o[s].format).toStr(n,i.startOfWeek);case 1:return 0===t||0===n.getSeconds()?a(o[s].beginningFormat).toStr(n,i.startOfWeek):a(o[s].format).toStr(n,i.startOfWeek);case 0:return 0===t||0===n.getMilliseconds()?a(o[s].beginningFormat).toStr(n,i.startOfWeek):a(o[s].format).toStr(n,i.startOfWeek)}},e.defaults=(0,jI.extend)(RI.ContinuousAxisLabel.defaults,{useBeginningFormat:!0}),e}(RI.ContinuousAxisLabel);LI.TimeAxisLabel=zI;var $I=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return TI(e,t),Object.defineProperty(e.prototype,"label",{get:function(){return this._label},enumerable:!1,configurable:!0}),e.prototype._createTickModel=function(){return new GI(this)},e.prototype._createLabel=function(){return new zI(this)},e.prototype.collectValues=function(){this._offset=60*(0,kI.pickNum)(this.chart.timeOffset,0)*1e3,t.prototype.collectValues.call(this)},e.prototype.getValue=function(t){return(0,kI.isNumber)(t)?t:t instanceof Date?t.getTime():(0,kI.isString)(t)?new Date(t).getTime()+this._offset:void 0},e.prototype.incStep=function(t,e){if((0,kI.isString)(e)){var i=parseFloat(e);if(0!=i){var r=new Date(t);switch(e.charAt(e.length-1)){case"y":r.setFullYear(r.getFullYear()+i);break;case"m":r.setMonth(r.getMonth()+i);break;case"d":r.setDate(r.getDate()+i);break;case"w":r.setDate(r.getDate()+7*i);break;case"h":r.setHours(r.getHours()+i);break;case"n":r.setMinutes(r.getMinutes()+i);break;case"s":r.setSeconds(r.getSeconds()+i)}return+r}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.getXLabel=function(t){return isNaN(t)?NaN:new Date(t)},e.type=MI.TimeAxisType,e.subtype="date",e.defaults=(0,jI.extend)(RI.ContinuousAxis.defaults,{baseValue:NaN}),e}(RI.ContinuousAxis);LI.TimeAxis=$I;var HI={},WI=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(HI,"__esModule",{value:!0}),HI.BarRangeSeries=HI.BarRangeSeriesPoint=void 0;var UI=CB,YI=BB,XI=TM,qI=OB,ZI=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return WI(e,t),e.prototype._readObject=function(e,i){t.prototype._readObject.call(this,e,i),this.width=i.width},e}(DB.RangedPoint);HI.BarRangeSeriesPoint=ZI;var KI=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return WI(e,t),e.prototype.pointLabelCount=function(){return 2},e.prototype._createLegendMarker=function(t,e){return UI.RectElement.create(t,qI.Series.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 ZI(t)},e.prototype._getBottomValue=function(t){return t.lowValue},e.type=YI.BarRangeSeriesType,e.defaults=(0,XI.extend)(qI.LowRangedSeries.defaults,{tooltipText:"<b>${name}</b><br>${series}: <b>${lowValue}</b> ~ <b>${highValue}</b>"}),e}(qI.LowRangedSeries);HI.BarRangeSeries=KI;var JI={},QI=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(JI,"__esModule",{value:!0}),JI.BarSeriesGroup=JI.BarSeriesGroupBase=JI.BarSeries=JI.BarSeriesBase=JI.BarSeriesPoint=void 0;var tG=iM,eG=CB,iG=BB,rG=TM,nG=OB,oG=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return QI(e,t),e.prototype._readObject=function(e,i){t.prototype._readObject.call(this,e,i),this.width=i.width},e}(DB.DataPoint);JI.BarSeriesPoint=oG;var sG=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return QI(e,t),e.prototype.canCategorized=function(){return!0},e.prototype._colorByPoint=function(){return this._op.colorByPoint},e.prototype._createPoint=function(t){return new oG(t)},e.prototype._getGroupBase=function(){return this._group?this._group.getBaseValue(this._yAxisObj):this._op.baseValue},e.defaults=(0,rG.extend)(nG.BasedSeries.defaults,{colorByPoint:!1,pointOffset:0}),e}(nG.BasedSeries);JI.BarSeriesBase=sG;var aG=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return QI(e,t),e.prototype.canDepth=function(){return!0},e.prototype._createLegendMarker=function(t,e){return eG.RectElement.create(t,nG.Series.LEGEND_MARKER,0,0,e,e,2)},Object.defineProperty(e.prototype,"canPolar",{get:function(){return!0},enumerable:!1,configurable:!0}),e.type=iG.BarSeriesType,e}(sG);JI.BarSeries=aG;var lG=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return QI(e,t),e.prototype.canCategorized=function(){return!0},e.prototype.getBaseValue=function(t){return t===this._yAxisObj?(0,tG.pickProp3)(this._op.baseValue,t.getBaseValue(),0):NaN},e.prototype.getDepth=function(){return this._op.depth},e.prototype.getDistance=function(){return this._op.distance},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),this._op.distance=(0,tG.pickNum)(e.distance,0)},e.prototype._doPrepareSeries=function(t){var e=this._op.layout;if("default"===e){var i=t.length>1?t.map((function(t){return t.options.pointWidth})).reduce((function(t,e){return t+e}),0):t[0].options.pointWidth,r=0;t.forEach((function(t){t._childWidth=t.options.pointWidth/i,t._childPos=r,r+=t._childWidth}))}if("overlap"===e){var n=this.getDistance();t.forEach((function(t){t._groupDistance=n+=(0,tG.pickNum)(t.options.distance,0),n+=t.depth}))}else t.forEach((function(t){t._groupDistance=t.distance}))},e.defaults=(0,rG.extend)(nG.ClusterableSeriesGroup.defaults,{depth:10,distance:5}),e}(nG.ClusterableSeriesGroup);JI.BarSeriesGroupBase=lG;var uG=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return QI(e,t),e.prototype._canContain=function(t){return t instanceof aG},e.type=iG.BarSeriesGroupType,e.seriesType=iG.BarSeriesType,e}(lG);JI.BarSeriesGroup=uG;var cG={},pG={},hG={},fG={},dG=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(fG,"__esModule",{value:!0}),fG.ShapeLegendMarkerView=void 0;var _G=hj,yG=CB,gG=EB,vG=OB,mG=function(t){function e(e){var i=t.call(this,e,vG.Series.LEGEND_MARKER)||this;return i.add(i._back=new yG.RectElement(e)),i._back.setStyle("visibility","hidden"),i.add(i._marker=new _G.PathElement(e)),i}return dG(e,t),e.prototype.render=function(t,e){var i=Math.max(8,2*e),r=2.1*i;t===this._shape&&e===this._rd&&i===this._size||(this._shape=t,this._rd=e,this._size=i,this._back.resize(1,i),this._renderShape(e,r,i),this._marker.trans(r/2-e,i/2-e))},e.prototype._renderShape=function(t,e,i){gG.SvgShapes.setShape(this._marker,this._shape,t,t)},e}(_G.RcElement);fG.ShapeLegendMarkerView=mG;var bG=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(hG,"__esModule",{value:!0}),hG.AreaLegendMarkerView=void 0;var wG=hj,xG=function(t){function e(e){var i=t.call(this,e)||this;return i.insertFirst(i._line=new wG.PathElement(e)),i.insertFirst(i._area=new wG.PathElement(e)),i._area.setBoolData("fill",!0),i}return bG(e,t),e.prototype._renderShape=function(e,i,r){var n=["M",0,r/2,"L",i,0],o=["M",0,r/2,"L",i,0,"L",i,r,"L",0,r,"Z"];this._marker.setStyle("visibility",this._shape?"visible":"hidden"),this._line&&(this._line.setPath(n.join(" ")),this._area.setPath(o.join(" "))),t.prototype._renderShape.call(this,e,i,r)},e}(fG.ShapeLegendMarkerView);hG.AreaLegendMarkerView=xG;var SG={},PG=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(SG,"__esModule",{value:!0}),SG.AreaRangeLegendMarkerView=void 0;var AG=hj,OG=function(t){function e(e){var i=t.call(this,e)||this;return i.insertFirst(i._line=new AG.PathElement(e)),i._line.setFill("none"),i.insertFirst(i._line2=new AG.PathElement(e)),i._line2.setFill("none"),i.insertFirst(i._area=new AG.PathElement(e)),i._area.setBoolData("fill",!0),i}return PG(e,t),e.prototype._renderShape=function(e,i,r){var n=["M",0,.3*r,"L",i/2*.7,0,"L",i,.4*r],o=["M",0,r,"L",i/2,.7*r,"L",i,r],s=["M",0,.3*r,"L",i/2*.7,0,"L",i,.4*r,"L",i,r,"L",i/2,.7*r,"L",0,r,"Z"];this._marker.setStyle("visibility",this._shape?"visible":"hidden"),this._line&&(this._line.setPath(n.join(" ")),this._line2.setPath(o.join(" ")),this._area.setPath(s.join(" "))),t.prototype._renderShape.call(this,e,i,r)},e}(fG.ShapeLegendMarkerView);SG.AreaRangeLegendMarkerView=OG;var CG={},EG={},VG=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(EG,"__esModule",{value:!0}),EG.LineElementEx=EG.LineElement=void 0;var LG=hj,TG=wM,kG=rM,NG=EB,MG=function(t,e){return t==e||!(!t||!e)&&(t.x1===e.x1&&t.x2===e.x2&&t.y1===e.y1&&t.y2===e.y2)},jG=function(t){function e(e,i,r){void 0===i&&(i=TG._undef),void 0===r&&(r=TG._undef);var n=t.call(this,e,i)||this;return r&&n.setLine(r),n}return VG(e,t),e.prototype.setLine=function(t,e,i,r){kG.Utils.isNumber(t)?this.setPath(NG.SvgShapes.line(t,e,i,r)):t&&this.setPath(NG.SvgShapes.line(t.x1,t.y1,t.x2,t.y2))},e.prototype.setVLine=function(t,e,i){this.setPath(NG.SvgShapes.line(t,e,t,i))},e.prototype.setVLineC=function(t,e,i){var r=parseFloat(this.getStyle("stroke-width"));isNaN(r)||(t=Math.round(t)-r%2/2),this.setPath(NG.SvgShapes.line(t,e,t,i))},e.prototype.setHLine=function(t,e,i){this.setPath(NG.SvgShapes.line(e,t,i,t))},e.prototype.setHLineC=function(t,e,i){var r=parseFloat(this.getStyle("stroke-width"));isNaN(r)||(t=Math.round(t)-r%2/2),this.setPath(NG.SvgShapes.line(e,t,i,t))},e}(LG.PathElement);EG.LineElement=jG;var RG=function(t){function e(e,i,r){void 0===i&&(i=TG._undef),void 0===r&&(r=TG._undef);var n=t.call(this,e,i)||this;return n.setLine(r),n}return VG(e,t),Object.defineProperty(e.prototype,"line",{get:function(){return this._line},set:function(t){MG(t,this._line)||(this._line=t,this.$_render())},enumerable:!1,configurable:!0}),e.prototype.updateLine=function(t){MG(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,r){this.updateLine({x1:e,y1:t,x2:i,y2:t})},e.prototype.setLine=function(t,e,i,r){kG.Utils.isNumber(t)?this.$_update(t,e,i,r):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,r){this.line={x1:t,y1:e,x2:i,y2:r}},e.prototype.$_render=function(){var t=this._line;t&&this.setPath(NG.SvgShapes.line(t.x1,t.y1,t.x2,t.y2))},e}(LG.PathElement);EG.LineElementEx=RG;var BG=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(CG,"__esModule",{value:!0}),CG.LineLegendMarkerView=void 0;var DG=EG,IG=function(t){function e(e){var i=t.call(this,e)||this;return i.insertFirst(i._line=new DG.LineElement(e)),i}return BG(e,t),e.prototype._renderShape=function(e,i,r){this._line&&(this._line.setHLine(r/2,0,i),this._shape&&this._line.setStyle("strokeDasharray","")),this._marker.setStyle("visibility",this._shape?"visible":"hidden"),t.prototype._renderShape.call(this,e,i,r)},e}(fG.ShapeLegendMarkerView);CG.LineLegendMarkerView=IG;var GG=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),FG=t&&t.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s},zG=t&&t.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(pG,"__esModule",{value:!0}),pG.AreaSeriesGroup=pG.LineSeriesGroup=pG.AreaRangeSeries=pG.AreaRangePointLabel=pG.AreaRangeSeriesPoint=pG.AreaSeries=pG.AreaSeriesPoint=pG.SplineSeries=pG.LineSeries=pG.LineSeriesFlag=pG.LineSeriesBase=pG.LinePointLabel=pG.LineSeriesMarker=pG.LineSeriesPoint=void 0;var $G=iM,HG=BB,WG=TM,UG=OB,YG=hG,XG=SG,qG=CG,ZG=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return GG(e,t),e.prototype.toPoint=function(){return{px:this.px,py:this.py,isNull:this.isNull,range:this.range}},e}(DB.DataPoint);pG.LineSeriesPoint=ZG;var KG=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return GG(e,t),e.defaults=(0,WG.extend)(UG.SeriesMarker.defaults,{radius:4,hoverScale:1.75}),e}(UG.SeriesMarker);pG.LineSeriesMarker=KG;var JG=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return GG(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.prototype.getPosition=function(){return(0,$G.pickProp)(this._op.position,"default")},e.ALIGN_GAP=4,e.defaults=(0,WG.extend)(UG.DataPointLabel.defaults,{align:"center"}),e}(UG.DataPointLabel);pG.LinePointLabel=JG;var QG=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return GG(e,t),e.prototype._doInit=function(e){t.prototype._doInit.call(this,e),e.marker=(this._marker=new KG(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._shape:null},e.prototype.getRadius=function(t){return(0,$G.pickNum)(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 JG(t)},e.prototype._createPoint=function(t){return new ZG(t)},e.prototype.hasShape=function(){return!0},e.prototype.setShape=function(t){this._shape=this.marker.options.shape||t},e.prototype._defViewRangeValue=function(){return"x"},e.prototype._createLegendMarker=function(t,e){return new qG.LineLegendMarkerView(t)},e.prototype.legendMarker=function(e,i){var r=t.prototype.legendMarker.call(this,e,i);return r.render(this.getShape(null),(0,$G.minv)(i/2,this.marker.options.radius)),r},e.prototype._connectNulls=function(){return!1},e.prototype._doPrepareLines=function(t){var e=t.length,i=[];if(this._containsNull&&!this._connectNulls())for(var r=0;r<e;){for(var n=[];r<e&&t[r].isNull;)r++;for(;r<e&&!t[r].isNull;)n.push(t[r++]);n.length>0&&i.push(n)}else i.push(t.slice());return!this.chart.isPolar()||t[0].isNull||t[e-1].isNull||i[i.length-1].push(t[0]),i},e.defaults=(0,WG.extend)(UG.Series.defaults,{nullAsBase:!1}),e}(UG.ConnectableSeries);pG.LineSeriesBase=QG;var tF=function(t){function e(e){var i=t.call(this,e.chart)||this;return i.series=e,i}return GG(e,t),e.prototype.label=function(){return this._op.text||this.series.displayName()},e.prototype.getDefaultIconPos=function(){return"left"},e.defaults=(0,WG.extend)(WG.IconedText.defaults,{visible:!1,offset:8}),e}(WG.IconedText);pG.LineSeriesFlag=tF;var eF=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return GG(e,t),e.prototype._doInit=function(e){t.prototype._doInit.call(this,e),e.flag=(this._flag=new tF(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 lF||this._group instanceof uF?this._group.options.lineType:this._op.lineType},e.prototype._connectNulls=function(){return this._op.connectNullPoints},e.prototype.getBaseValue=function(t){return t===this._yAxisObj?this._base:NaN},e.prototype._doPrepareRender=function(){var e=this._op;t.prototype._doPrepareRender.call(this),this._base=(0,$G.pickProp3)(this._getGroupBase(),this._yAxisObj.getBaseValue(),0),e.nullAsBase&&null!=e.baseValue&&this._runPoints.forEach((function(t){t.isNull&&(t.y=e.baseValue,t.isNull=!1)})),this.flag._prepareRender()},e.prototype._getGroupBase=function(){return this._group?this._group.getBaseValue(this._yAxisObj):this._op.baseValue},e.type=HG.LineSeriesType,e.defaults=(0,WG.extend)(QG.defaults,{lineType:"default",stepDir:"forward",connectNullPoints:!1,baseValue:void 0}),e}(QG);pG.LineSeries=eF;var iF=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return GG(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=HG.SplineSeriesType,e}(eF);pG.SplineSeries=iF;var rF=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return GG(e,t),e}(ZG);pG.AreaSeriesPoint=rF;var nF=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return GG(e,t),e.prototype._doInit=function(e){t.prototype._doInit.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>1){var i=t[t.length-1].toPoint();i.py=t[t.length-1].yLow,e.push(i),(i=t[0].toPoint()).py=(0,$G.pickNum)(t[0].yLow,t[0].py),e.push(i)}return e}var e=this._group,i=this._lines,r=this._areas=[];if(e&&e._stacked){var n=[].concat.apply([],zG([],FG(i),!1));r.push(n),r.push(t(n))}else i.forEach((function(e){var i=e.slice(0);r.push(i),r.push(t(i))}))},e.prototype._createLegendMarker=function(t,e){return new YG.AreaLegendMarkerView(t)},e.prototype._createPoint=function(t){return new rF(t)},e.prototype.isBased=function(t){return t===this._yAxisObj},e.prototype._doPrepareLines=function(e){if(this._containsNull&&this._group&&this._group._stacked){for(var i=e.length,r=[],n=0;n<i;){var o=e[n].isNull,s=[];do{s.push(e[n++])}while(n<i&&e[n].isNull==o);r.push(s)}return r}return t.prototype._doPrepareLines.call(this,e)},e.type=HG.AreaSeriesType,e.defaults=(0,WG.extend)(QG.defaults,{}),e}(eF);pG.AreaSeries=nF;var oF=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return GG(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.getPointLabel=function(e){return 1===e?this.lowValue:t.prototype.getPointLabel.call(this,0)},e.prototype.labelCount=function(){return 2},e.prototype._assignTo=function(e){return(0,$G.assignObj)(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,r=e.length>2?1:0;this.low=e[(0,$G.pickNum)(i.lowField,0+r)],this.y=e[(0,$G.pickNum)(i.yField,1+r)],r>0&&(this.x=e[(0,$G.pickNum)(i.xField,0)])},e.prototype._readObject=function(e,i){t.prototype._readObject.call(this,e,i),this.isNull||(this.low=(0,$G.pickProp)(i[e.options.lowField],i.low),this.y=(0,$G.pickProp3)(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=(0,$G.incv)(t.lowValue,this.lowValue,e)},e}(rF);pG.AreaRangeSeriesPoint=oF;var sF=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return GG(e,t),e.prototype.getPosition=function(){return"default"===this._op.position||null==this._op.position?"foot":this._op.position},e}(JG);pG.AreaRangePointLabel=sF;var aF=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return GG(e,t),e.prototype.pointLabelCount=function(){return 2},e.prototype._createLabel=function(t){return new sF(t)},e.prototype._createLegendMarker=function(t,e){return new XG.AreaRangeLegendMarkerView(t)},e.prototype._createPoint=function(t){return new oF(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._visPoints.forEach((function(t){return!t.isNull&&i.push(t.lowValue)}))},e.prototype._doPrepareLines=function(e){var i=t.prototype._doPrepareLines.call(this,e),r=[];return i.forEach((function(t){for(var e=[],i=t.length-1;i>=0;i--){var n=t[i],o=n.toPoint();o.py=n.yLow,e.push(o)}r.push(t,e)})),r},e.type=HG.ArearangeSeriesType,e.defaults=(0,WG.extend)(QG.defaults,{curved:!1,tooltipText:"<b>${name}</b><br>${series}: <b>${lowValue}</b> ~ <b>${highValue}</b>"}),e}(QG);pG.AreaRangeSeries=aF;var lF=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return GG(e,t),e.prototype._canContain=function(t){return t instanceof eF},e.prototype.getBaseValue=function(t){return t===this._yAxisObj?(0,$G.pickProp3)(this._op.baseValue,t.getBaseValue(),0):NaN},e.type=HG.LineSeriesGroupType,e.seriesType=HG.LineSeriesType,e.defaults=(0,WG.extend)(UG.SeriesGroup.defaults,{lineType:"default"}),e}(UG.SeriesGroup);pG.LineSeriesGroup=lF;var uF=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return GG(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],r=t._areas,n=i._areas,o=0;o<r.length;o+=2)r[o+1]=n[o].reverse();this._op.layout}}},e.prototype._canContain=function(t){return t instanceof nF},e.prototype.getBaseValue=function(t){return t===this._yAxisObj?(0,$G.pickProp3)(this._op.baseValue,t.getBaseValue(),0):NaN},e.type=HG.AreaSeriesGroupType,e.seriesType=HG.AreaSeriesType,e.defaults=(0,WG.extend)(UG.SeriesGroup.defaults,{lineType:"default"}),e}(UG.SeriesGroup);pG.AreaSeriesGroup=uF;var cF=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(cG,"__esModule",{value:!0}),cG.BellCurveSeries=cG.BellCurveSeriesPoint=void 0;var pF=iM,hF=BB,fF=TM,dF=pG,_F=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return cF(e,t),e}(dF.AreaSeriesPoint);cG.BellCurveSeriesPoint=_F;var yF=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return cF(e,t),e.prototype.isEmpty=function(){return!!t.prototype.isEmpty.call(this)&&(!this._refer||this._refer.isEmpty())},e.prototype.getLineType=function(){return this._op.curved?"spline":"default"},e.prototype._createPoint=function(t){return new _F(t)},e.prototype._doLoadData=function(e){var i=t.prototype._doLoadData.call(this,e);if((0,pF.isArray)(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(this._refer=t).referBy(this),!0},e.prototype.refer=function(t,e){if(!e._isX){var i=t._visPoints.map((function(t){return t.yValue})).filter((function(t){return!isNaN(t)})),r=this._loadTable(i);this._doLoadPoints(r),this._prepareRunPoints(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 r=i-t;return{x:i,y:Math.exp(-r*r/(2*e*e))/(e*Math.sqrt(2*Math.PI))}},i=t.length;if(!(i<1)){var r=this._op,n=t.reduce((function(t,e){return t+e}),0)/i,o=Math.sqrt(t.reduce((function(t,e){return t+Math.pow(e-n,2)}))/(i-1)),s=o/r.pointsInSigma,a=n-r.sigmas*o,l=n+r.sigmas*o,u=n,c=[];for(c.push(e(n,o,u));u>a;)u-=s,c.unshift(e(n,o,u));for(u=n;u<l;)u+=s,c.push(e(n,o,u));return c}},e.type=hF.BellCurveSeriesType,e.defaults=(0,fF.extend)(dF.AreaSeries.defaults,{sigmas:3,pointsInSigma:5,curved:!0}),e}(dF.AreaSeries);cG.BellCurveSeries=yF;var gF={},vF=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(gF,"__esModule",{value:!0}),gF.BoxPlotSeries=gF.BoxPlotSeriesPoint=void 0;var mF=iM,bF=CB,wF=BB,xF=TM,SF=OB,PF=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return vF(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(0,mF.assignObj)(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,r=e.length>5?1:0;r>0&&(this.x=e[(0,mF.pickNum)(i.xField,0)]),this.min=e[(0,mF.pickNum)(i.minField,0+r)],this.low=e[(0,mF.pickNum)(i.lowField,1+r)],this.mid=e[(0,mF.pickNum)(i.midField,2+r)],this.high=e[(0,mF.pickNum)(i.highField,3+r)],this.y=e[(0,mF.pickNum3)(i.maxField,t.options.yField,4+r)]}},e.prototype._readObject=function(e,i){t.prototype._readObject.call(this,e,i);var r=e.options;this.min=(0,mF.pickProp)(i[r.minField],i.min),this.low=(0,mF.pickProp)(i[r.lowField],i.low),this.mid=(0,mF.pickProp)(i[r.midField],i.mid),this.high=(0,mF.pickProp)(i[r.highField],i.high),this.y=(0,mF.pickProp)(i[r.maxField],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=(0,mF.incv)(t.minValue,this.minValue,e),this.lowValue=(0,mF.incv)(t.lowValue,this.lowValue,e),this.midValue=(0,mF.incv)(t.midValue,this.midValue,e),this.highValue=(0,mF.incv)(t.highValue,this.highValue,e)},e}(DB.DataPoint);gF.BoxPlotSeriesPoint=PF;var AF=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return vF(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 PF(t)},e.prototype._getBottomValue=function(t){return t.minValue},e.prototype._createLegendMarker=function(t,e){return bF.RectElement.create(t,SF.Series.LEGEND_MARKER,0,0,e,e,2)},e.type=wF.BoxPlotSeriesType,e.defaults=(0,xF.extend)(SF.LowRangedSeries.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}(SF.LowRangedSeries);gF.BoxPlotSeries=AF;var OF={},CF=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(OF,"__esModule",{value:!0}),OF.BubbleSeries=OF.BubbleSeriesPoint=void 0;var EF=iM,VF=wM,LF=BB,TF=TM,kF=OB,NF=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return CF(e,t),e}(DB.ZValuePoint);OF.BubbleSeriesPoint=NF;var MF=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return CF(e,t),e.prototype.getShape=function(){return this._op.shape||"circle"},e.prototype.getPixelMinMax=function(t){return{min:(0,VF.calcPercent)(this._minSizeDim,t),max:(0,VF.calcPercent)(this._maxSizeDim,t)}},e.prototype.getRadius=function(t,e,i){var r=this._noSize?1:(t-this._zMin)/(this._zMax-this._zMin);return"area"==this._op.sizeMode&&(r=Math.sqrt(r)),r=Math.ceil(e+r*(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 NF(t)},e.prototype._getNoClip=function(e){var i=t.prototype._getNoClip.call(this,e);return!(0,EF.isBoolean)(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._visPoints.forEach((function(t){t.isNull||isNaN(t.zValue)||(e=(0,EF.minv)(e,t.zValue),i=(0,EF.maxv)(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=LF.BubbleSeriesType,e.defaults=(0,TF.extend)(kF.MarkerSeries.defaults,{sizeMode:"area",minSize:10,maxSize:"20%",tooltipText:"x: <b>${x}</b><br>y: <b>${y}</b><br>volume: <b>${z}</b>",paddingRate:2}),e}(kF.MarkerSeries);OF.BubbleSeries=MF;var jF={},RF=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(jF,"__esModule",{value:!0}),jF.BumpSeriesGroup=void 0;var BF=iM,DF=rM,IF=BB,GF=pG,FF=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return RF(e,t),e.prototype._canContain=function(t){return t instanceof GF.LineSeries},e.prototype._doConstraintYValues=function(t){var e={};for(var i in t.forEach((function(t){t._visPoints.forEach((function(t){if(!1!==t.visible){var i=t.xValue,r=e[i];r?r.push(t):e[i]=[t]}}))})),e)e[i].sort((function(t,e){return t.yValue-e.yValue})).forEach((function(t,e){t.yLabel=(0,BF.pickProp)(t.yLabel,t.yValue),t.yValue=t.yGroup=e}));return DF.Utils.makeIntArray(0,t.length)},e.type=IF.BumpSeriesType,e.seriesType=IF.LineSeriesType,e}(OB.ConstraintSeriesGroup);jF.BumpSeriesGroup=FF;var zF={},$F={},HF=t&&t.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s},WF=t&&t.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty($F,"__esModule",{value:!0}),$F.PathBuilder=void 0;var UF=iM,YF=function(t){return isNaN(t)?0:t},XF=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(0,UF.isNumber)(t)?this._path.push("M",t,e):this._path.push("M",t.x,t.y),this},t.prototype.moveBy=function(t,e){return(0,UF.isNumber)(t)?this._path.push("m",t,e):this._path.push("m",t.x,t.y),this},t.prototype.line=function(t,e){return(0,UF.isNumber)(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,r,n,o){return this._path.push("C",t,e,i,r,n,o),this},t.prototype.quad=function(t,e,i,r){return(0,UF.isNumber)(t)?this._path.push("Q",t,e,i,r):this._path.push("Q",t.x1,t.y1,t.x2,t.y2),this},t.prototype.rect=function(t,e,i,r){return this._path.push("M",t,e,"l",i,0,"l",0,r,"l",-i,0),this},t.prototype.lines=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if((0,UF.isNumber)(t[0]))for(var i=0;i<t.length;i+=2)this._path.push("L",YF(t[i]),YF(t[i+1]));else for(i=0;i<t.length;i++)this._path.push("L",YF(t[i].x),YF(t[i].y));return this},t.prototype.polygon=function(){for(var t,e,i=[],r=0;r<arguments.length;r++)i[r]=arguments[r];return(0,UF.isNumber)(i[0])?(t=this.move(i[0],i[1])).lines.apply(t,WF([],HF(i.slice(2)),!1)):(e=this.move(i[0])).lines.apply(e,WF([],HF(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 r=[];t<this._path.length&&r.length<e&&t<this._path.length&&("M"===this._path[t]||"L"===this._path[t]);)r.push({x:this._path[t+1],y:this._path[t+2]}),i&&this._path.splice(t,3);return r},t}();$F.PathBuilder=XF;var qF=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(zF,"__esModule",{value:!0}),zF.CandlestickSeries=zF.CandlestickSeriesPoint=void 0;var ZF=iM,KF=$F,JF=hj,QF=BB,tz=TM,ez=OB,iz=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return qF(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(0,ZF.assignObj)(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,r=e.length>4?1:0;r>0&&(this.x=e[(0,ZF.pickNum)(i.xField,0)]),this.low=e[(0,ZF.pickNum)(i.lowField,0+r)],this.close=e[(0,ZF.pickNum)(i.closeField,1+r)],this.open=e[(0,ZF.pickNum)(i.openField,2+r)],this.y=e[(0,ZF.pickNum3)(i.highField,t.options.yField,3+r)]}},e.prototype._readObject=function(e,i){t.prototype._readObject.call(this,e,i);var r=e.options;this.low=(0,ZF.pickProp)(i[r.lowField],i.low),this.open=(0,ZF.pickProp)(i[r.openField],i.open),this.close=(0,ZF.pickProp)(i[r.closeField],i.close),this.y=(0,ZF.pickProp3)(i[r.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=(0,ZF.incv)(t.lowValue,this.lowValue,e),this.openValue=(0,ZF.incv)(t.openValue,this.openValue,e),this.closeValue=(0,ZF.incv)(t.closeValue,this.closeValue,e)},e}(DB.DataPoint);zF.CandlestickSeriesPoint=iz;var rz=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return qF(e,t),e.prototype.canCategorized=function(){return!0},e.prototype._createPoint=function(t){return new iz(t)},e.prototype._getBottomValue=function(t){return t.lowValue},e.prototype._createLegendMarker=function(t,e){var i=new KF.PathBuilder;return i.rect(0,.2*e,e,.6*e),i.vline(e/2,0,e),new JF.PathElement(t,ez.Series.LEGEND_MARKER).setPath(i.end())},e.type=QF.CandlestickSeriesType,e.defaults=(0,tz.extend)(ez.LowRangedSeries.defaults,{tooltipText:"<b>${name}</b><br>최저: <b>${lowValue}</b><br>시가: <b>${openValue}</b><br>종가: <b>${closeValue}</b><br>고가: <b>${highValue}</b>"}),e}(ez.LowRangedSeries);zF.CandlestickSeries=rz;var nz={},oz=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(nz,"__esModule",{value:!0}),nz.CircleBarSeriesGroup=nz.CircleBarSeries=nz.CircelBarPointLabel=void 0;var sz=BB,az=TM,lz=OB,uz=JI,cz=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return oz(e,t),e.defaults=(0,az.extend)(lz.DataPointLabel.defaults,{position:"inside"}),e}(lz.BasedSeriesLabel);nz.CircelBarPointLabel=cz;var pz=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return oz(e,t),Object.defineProperty(e.prototype,"pointLabel",{get:function(){return this._pointLabel},enumerable:!1,configurable:!0}),e.prototype._createLabel=function(t){return new cz(t)},e.type=sz.CircleBarSeriesType,e}(uz.BarSeriesBase);nz.CircleBarSeries=pz;var hz=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return oz(e,t),e.prototype._canContain=function(t){return t instanceof pz},e.type=sz.CircleBarSeriesGroupType,e.seriesType=sz.CircleBarSeriesType,e}(uz.BarSeriesGroupBase);nz.CircleBarSeriesGroup=hz;var fz={},dz=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(fz,"__esModule",{value:!0}),fz.DumbbellSeries=fz.DumbbellSeriesMarker=fz.DumbbellSeriesPoint=void 0;var _z=iM,yz=BB,gz=TM,vz=OB,mz=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return dz(e,t),e}(DB.RangedPoint);fz.DumbbellSeriesPoint=mz;var bz=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return dz(e,t),e.defaults=(0,gz.extend)(vz.SeriesMarker.defaults,{radius:4,shape:"circle"}),e}(vz.SeriesMarker);fz.DumbbellSeriesMarker=bz;var wz=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return dz(e,t),e.prototype._doInit=function(e){t.prototype._doInit.call(this,e),e.marker=(this._marker=new bz(this)).init(),e.lowMarker=(this._lowMarker=new bz(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)+(0,_z.maxv)(0,this.marker.options.radius)},e.prototype._createPoint=function(t){return new mz(t)},e.prototype.prepareAfter=function(){var e=this.marker.options,i=this.lowMarker.options,r=e.radius,n=e.shape,o=(0,_z.pickNum)(i.radius,r),s=i.shape||n;this._visPoints.forEach((function(t){t.radius=r,t.shape=n,t.lowRadius=o,t.lowShape=s})),t.prototype.prepareAfter.call(this)},e.type=yz.DumbbellSeriesType,e}(vz.LowRangedSeries);fz.DumbbellSeries=wz;var xz={},Sz=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(xz,"__esModule",{value:!0}),xz.EqualizerSeries=xz.EqualizerSeriesPoint=void 0;var Pz=$F,Az=hj,Oz=wM,Cz=BB,Ez=TM,Vz=OB,Lz=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Sz(e,t),e}(DB.DataPoint);xz.EqualizerSeriesPoint=Lz;var Tz=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Sz(e,t),e.prototype.getSegmentSize=function(t){return(0,Oz.calcPercent)(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 Lz(t)},e.prototype._createLegendMarker=function(t,e){var i=new Pz.PathBuilder;return i.rect(0,0,e,.4*e),i.rect(0,.6*e,e,.4*e),new Az.PathElement(t,Vz.Series.LEGEND_MARKER).setPath(i.end())},e.type=Cz.EqualizerSeriesType,e.defaults=(0,Ez.extend)(Vz.BasedSeries.defaults,{segmentSize:10,segmentGap:4,segmented:!1}),e}(Vz.BasedSeries);xz.EqualizerSeries=Tz;var kz={},Nz=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(kz,"__esModule",{value:!0}),kz.ErrorBarSeries=void 0;var Mz=$F,jz=hj,Rz=BB,Bz=TM,Dz=DB,Iz=OB,Gz=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Nz(e,t),e.prototype.isClusterable=function(){return!1},e.prototype.pointLabelCount=function(){return 2},e.prototype._createPoint=function(t){return new Dz.RangedPoint(t)},e.prototype.getBaseValue=function(t){return t===this._yAxisObj?0:NaN},e.prototype._createLegendMarker=function(t,e){var i=(new Mz.PathBuilder).vline(e/2,.1,.8*e).hline(.1,0,e).hline(.9*e,0,e),r=new jz.PathElement(t,Iz.Series.LEGEND_MARKER).setPath(i.end());return r.setStyle("strokeWidth","2px"),r},e.prototype._getBottomValue=function(t){return t.lowValue},e.type=Rz.ErrorBarSeriesType,e.defaults=(0,Bz.extend)(Iz.LowRangedSeries.defaults,{pointPadding:.3,tooltipText:"<b>${name}</b><br>${series}: <b>${lowValue}</b> ~ <b>${highValue}</b>"}),e}(Iz.LowRangedSeries);kz.ErrorBarSeries=Gz;var Fz={},zz=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(Fz,"__esModule",{value:!0}),Fz.FunnelSeries=Fz.FunnelSeriesLabel=Fz.FunnelOthersPoint=Fz.FunnelSeriesPoint=void 0;var $z=iM,Hz=wM,Wz=rM,Uz=BB,Yz=TM,Xz=OB,qz=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return zz(e,t),e}(Xz.WidgetSeriesPoint);Fz.FunnelSeriesPoint=qz;var Zz=function(t){function e(e,i){var r=t.call(this,e)||this;return r.points=i,r}return zz(e,t),e}(qz);Fz.FunnelOthersPoint=Zz;var Kz=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return zz(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}(Xz.WidgetSeriesLabel);Fz.FunnelSeriesLabel=Kz;var Jz=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return zz(e,t),e.prototype.getSize=function(t,e){return{width:(0,$z.maxv)(.1*t,(0,Hz.calcPercent)(this._widthDim,t)),height:(0,$z.maxv)(.1*e,(0,Hz.calcPercent)(this._heightDim,e))}},e.prototype.getNeckSize=function(t,e){return{width:Wz.Utils.clamp((0,Hz.calcPercent)(this._neckWidthDim,t),this._minNeckWidth,t),height:Wz.Utils.clamp((0,Hz.calcPercent)(this._neckHeightDim,e),0,e)}},Object.defineProperty(e.prototype,"pointLabel",{get:function(){return this._pointLabel},enumerable:!1,configurable:!0}),e.prototype._createLabel=function(t){return new Kz(t)},e.prototype._createPoint=function(t){return new qz(t)},e.prototype._createOthersPoint=function(t,e){return t.y=e.map((function(t){return t.y})).reduce((function(t,e){return t+e})),new Zz(t,e)},e.prototype._doApply=function(i){var r,n=this;t.prototype._doApply.call(this,i),(r=i.width)!==n._width&&(n._width=r,n._widthDim=(0,Hz.parsePercentSize2)(n._width,e.defaults.width)),function(t){t!==n._height&&(n._height=t,n._heightDim=(0,Hz.parsePercentSize2)(n._height,e.defaults.height))}(i.height),function(t){t!==n._neckWidth&&(n._neckWidth=t,n._neckWidthDim=(0,Hz.parsePercentSize2)(n._neckWidth,e.defaults.neckWidth))}(i.neckWidth),function(t){t!==n._neckHeight&&(n._neckHeight=t,n._neckHeightDim=(0,Hz.parsePercentSize2)(n._neckHeight,e.defaults.neckHeight))}(i.neckHeight),this._minNeckWidth=Math.max(0,+i.minNeckWidth)},e.type=Uz.FunnelSeriesType,e.defaults=(0,Yz.extend)(Xz.WidgetSeries.defaults,{width:"85%",height:"90%",neckWidth:"30%",neckHeight:"30%",minNeckWidth:2,legendByPoint:!1}),e}(Xz.WidgetSeries);Fz.FunnelSeries=Jz;var Qz={},t$=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(Qz,"__esModule",{value:!0}),Qz.HistogramSeries=Qz.HistogramSeriesPoint=void 0;var e$=iM,i$=CB,r$=BB,n$=TM,o$=OB,s$=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return t$(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(0,e$.assignObj)(t.prototype._assignTo.call(this,e),{min:this.min,max:this.max})},e}(DB.DataPoint);Qz.HistogramSeriesPoint=s$;var a$={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))}},l$=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return t$(e,t),e.prototype.getBinCount=function(t){var e=(0,e$.pickNum)(this._op.binWidth,0);return e>0?t/e:(0,e$.pickNum)(this._op.binsNumber,0)<1?a$[this._op.binsNumber||"squreRoot"](t):void 0},e.prototype._createPoint=function(t){return new s$(t)},e.prototype._doLoadPoints=function(e){function i(t){var e;return e=(0,e$.isArray)(t)?t[(0,e$.pickNum)(this.yField,0)]:(0,e$.isObject)(t)?(0,e$.pickProp3)(t[this.yField],t.y,t.value):t,parseFloat(e)}for(var r=this._op,n=[],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})),r.minValue<o[0]&&o.unshift(r.minValue),r.maxValue>o[o.length-1]&&o.push(r.maxValue);var l=o.length,u=o[0],c=o[l-1],p=this.getBinCount(l),h=this._binInterval=(c-u)/p,f=0,d=u,_=d+h;for(s=0;s<p;s++){var y=0;if(s==p-1)y=l-f;else for(;f<l&&o[f]<_;)y++,f++;n.push({x:d,y:y,min:d,max:s===p-1?c:_}),_=(d=_)+h}}t.prototype._doLoadPoints.call(this,n)},e.prototype.collectValues=function(e,i){t.prototype.collectValues.call(this,e,i),i&&(e===this._xAxisObj?i.push(this._visPoints[this._visPoints.length-1].max):e===this._yAxisObj&&i.push(this._base))},e.prototype._doPrepareRender=function(){t.prototype._doPrepareRender.call(this),this._base=(0,e$.pickNum3)(this._op.baseValue,this._yAxisObj.getBaseValue(),0)},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 i$.RectElement.create(t,o$.Series.LEGEND_MARKER,0,0,e,e,2)},e.type=r$.HistogramSeriesType,e.defaults=(0,n$.extend)(o$.Series.defaults,{baseValue:0,binsNumber:"squreRoot"}),e}(o$.ConnectableSeries);Qz.HistogramSeries=l$;var u$={},c$=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),p$=t&&t.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s},h$=t&&t.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(u$,"__esModule",{value:!0}),u$.LollipopSeries=u$.LollipopSeriesPoint=u$.LollipopSeriesMarker=void 0;var f$=iM,d$=BB,_$=TM,y$=DB,g$=OB,v$=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c$(e,t),e.defaults=(0,_$.extend)(g$.SeriesMarker.defaults,{radius:4,minRadius:2,maxRadius:8,shape:"circle"}),e}(g$.SeriesMarker);u$.LollipopSeriesMarker=v$;var m$=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c$(e,t),e.prototype._assignTo=function(e){return(0,f$.assignObj)(t.prototype._assignTo.call(this,e),{radius:this.radius})},e.prototype._valuesChangd=function(e){return this.radius!==e.radius||t.prototype._valuesChangd.call(this,e)},e.prototype._readArray=function(t,e){var i=+t.options.colorField,r=+t.options.iconField,n=t.options,o=e.length>1?1:0;o>0&&(this.x=e[(0,f$.pickNum)(n.xField,0)]),this.y=e[(0,f$.pickNum)(n.yField,0+o)],this.radius=e[(0,f$.pickNum)(n.radiusField,1+o)],isNaN(i)||(this.color=e[i]),isNaN(r)||(this.icon=e[r])},e.prototype._readObject=function(e,i){t.prototype._readObject.call(this,e,i),this.radius=(0,f$.pickProp)(i[e.options.radiusField],i.radius)},e}(y$.DataPoint);u$.LollipopSeriesPoint=m$;var b$=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c$(e,t),e.prototype._doInit=function(e){t.prototype._doInit.call(this,e),e.marker=(this._marker=new v$(this)).init()},Object.defineProperty(e.prototype,"marker",{get:function(){return this._marker},enumerable:!1,configurable:!0}),e.prototype._getFielderProps=function(){return["xField","yField","zField","colorField","iconField","radiusField"]},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 m$(t)},e.prototype.prepareAfter=function(){var e=this.marker.options,i=e.radius,r=e.shape,n=this.options.radiusField,o=(0,f$.maxv)(e.minRadius,0),s=(0,f$.maxv)(e.maxRadius,o);if(n){var a=this._runPoints.map((function(t){return t.radius})).filter((function(t){return"number"==typeof t&&!Number.isNaN(t)})),l=Math.min.apply(Math,h$([],p$(a),!1)),u=Math.max.apply(Math,h$([],p$(a),!1))-l||1;this._runPoints.forEach((function(t){var e=(t.radius-l)/u;null!=t.radius&&(t.radius=o+e*(s-o)),t.shape=r}))}else this._runPoints.forEach((function(t){var e;t.radius=null!==(e=t.radius)&&void 0!==e?e:i,t.shape=r}));t.prototype.prepareAfter.call(this)},e.type=d$.LollipopSeriesType,e}(g$.BasedSeries);u$.LollipopSeries=b$;var w$={},x$=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(w$,"__esModule",{value:!0}),w$.OhlcSeries=w$.OhlcSeriesPoint=void 0;var S$=$F,P$=hj,A$=BB,O$=OB,C$=zF,E$=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return x$(e,t),e}(C$.CandlestickSeriesPoint);w$.OhlcSeriesPoint=E$;var V$=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return x$(e,t),e.prototype._createPoint=function(t){return new E$(t)},e.prototype._createLegendMarker=function(t,e){var i=new S$.PathBuilder;i.vline(e/2,0,e),i.hline(.4*e,e/2,e),i.hline(.7*e,0,e/2);var r=new P$.PathElement(t,O$.Series.LEGEND_MARKER).setPath(i.end());return r.setStyle("strokeWidth","2px"),r},e.type=A$.OhlcSeriesType,e}(C$.CandlestickSeries);w$.OhlcSeries=V$;var L$={},T$=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(L$,"__esModule",{value:!0}),L$.ParetoSeries=L$.ParetoSeriesPoint=void 0;var k$=iM,N$=BB,M$=TM,j$=pG,R$=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return T$(e,t),e}(j$.LineSeriesPoint);L$.ParetoSeriesPoint=R$;var B$=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return T$(e,t),e.prototype.isEmpty=function(){return!!t.prototype.isEmpty.call(this)&&(!this._refer||this._refer.isEmpty())},e.prototype.getLineType=function(){return this._op.curved?"spline":"default"},e.prototype._createPoint=function(t){return new R$(t)},e.prototype._referOtherSeries=function(t){if(t.options.name===this._op.source||t.index===this._op.source)return(this._refer=t).referBy(this),!0},e.prototype.refer=function(t,e){if(!e._isX){var i=this;r=t._visPoints,n=[],o=r.reduce((function(t,e){return t+(0,k$.pickNum)(e.yValue,0)}),0),s=0,r.forEach((function(t){t.isNull||n.push({x:t.xValue,y:s+=100*t.yValue/o})})),i._doLoadPoints(n),i._prepareRunPoints(i._xAxisObj,i._yAxisObj),this.collectValues(this._xAxisObj,this._xAxisObj._values),this.collectValues(this._yAxisObj,this._yAxisObj._values)}var r,n,o,s},e.type=N$.ParetoSeriesType,e.defaults=(0,M$.extend)(j$.LineSeriesBase.defaults,{curved:!1}),e}(j$.LineSeriesBase);L$.ParetoSeries=B$;var D$={},I$=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),G$=t&&t.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s},F$=t&&t.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(D$,"__esModule",{value:!0}),D$.PieSeriesGroup=D$.PieSeries=D$.PieSeriesDepth=D$.PieSeriesLabel=D$.PieSeriesText=D$.PieOthersPoint=D$.PieSeriesPoint=void 0;var z$=iM,$$=wM,H$=BB,W$=TM,U$=OB,Y$=function(t){function e(){var e=t.apply(this,F$([],G$(arguments),!1))||this;return e.sliced=!1,e.startAngle=0,e.angle=0,e}return I$(e,t),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(0,z$.assignObj)(t.prototype._assignTo.call(this,e),{sliced:this.sliced})},e}(U$.WidgetSeriesPoint);D$.PieSeriesPoint=Y$;var X$=function(t){function e(e,i){var r=t.call(this,e)||this;return r.points=i,r}return I$(e,t),e}(Y$);D$.PieOthersPoint=X$;var q$=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return I$(e,t),e.prototype.getDefaultIconPos=function(){return"left"},e}(W$.IconedText);D$.PieSeriesText=q$;var Z$=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return I$(e,t),e.prototype.getDistance=function(t,i,r){return r>0&&(i-=i*r),this._distanceDim?(0,$$.calcPercent)(this._distanceDim,i,0):t?(0,$$.calcPercent)(r?e.INNER_DIST:e.INSIDE_DIST,i):"far"===this._op.align?e.ENDED_DIST:e.OUTSIDE_DIST},e.INSIDE_DIST=(0,$$.parsePercentSize)("30%",!1),e.INNER_DIST=(0,$$.parsePercentSize)("50%",!1),e.OUTSIDE_DIST=25,e.ENDED_DIST=10,e.defaults=(0,W$.extend)(U$.WidgetSeriesLabel.defaults,{radius:.7,rotationMode:H$._PointLabelRotationMode.ARC}),e}(U$.WidgetSeriesLabel);D$.PieSeriesLabel=Z$;var K$=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return I$(e,t),e.prototype.getLength=function(){return this.visible?this._op.length:0},e.prototype._isVisible=function(){return this._op.visible&&this._op.length>0},e.prototype._doSetSimple=function(e){return(0,z$.isNumber)(e)&&e>0?(this._op.length=e,this._op.visible=!0,!0):t.prototype._doSetSimple.call(this,e)},e.prototype._doApply=function(i){t.prototype._doApply.call(this,i),i.length=(0,z$.maxv)(0,(0,z$.pickNum)(i.length,0)),i.ratio=(0,z$.maxv)(.3,(0,z$.minv)(.8,(0,z$.pickNum)(i.ratio,e.DEPTH_RATIO)))},e.DEPTH_RATIO=.6,e.defaults=(0,W$.extend)(W$.ChartItem.defaults,{visible:!1,length:25,ratio:e.DEPTH_RATIO}),e}(W$.ChartItem);D$.PieSeriesDepth=K$;var J$=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return I$(e,t),e.prototype._doInit=function(e){t.prototype._doInit.call(this,e),e.innerText=(this._innerText=new q$(this.chart)).init(),e.depth=(this._depth=new K$(this.chart)).init()},Object.defineProperty(e.prototype,"innerText",{get:function(){return this._innerText},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"depth",{get:function(){return this._depth},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?(0,$$.calcPercent)(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 Z$(t)},e.prototype._createPoint=function(t){return new Y$(t)},e.prototype._createOthersPoint=function(t,e){return t.y=e.map((function(t){return t.y})).reduce((function(t,e){return t+e})),new X$(t,e)},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),this._setDims(e,"innerRadius","sliceOffset"),e.totalAngle<=0&&(e.totalAngle=360)},e.prototype._doPrepareRender=function(){t.prototype._doPrepareRender.call(this),this._innerText._prepareRender(),this._startRad=$$.ORG_ANGLE+$$.DEG_RAD*(0,z$.pickNum)(this._op.startAngle%360,0),this._totalRad=$$.DEG_RAD*(0,z$.maxv)(0,(0,z$.minv)(360,(0,z$.pickNum)(this._op.totalAngle,360))),this._groupPos=NaN},e.type=H$.PieSeriesType,e.defaults=(0,W$.extend)(U$.RadialSeries.defaults,{groupSize:1,sliceOffset:"7%",autoSlice:!0,sliceDuration:300}),e}(U$.RadialSeries);D$.PieSeries=J$;var Q$=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return I$(e,t),e.prototype.getPolarSize=function(t,e){return(0,$$.calcPercent)(this._polarDim,(0,z$.minv)(t,e))},e.prototype.getInnerRadius=function(t){var e=this._innerDim;return e?e.size/(e.fixed?t:100):0},e.prototype.connectable=function(t){return!1},e.prototype._doApply=function(e){var i,r=this;t.prototype._doApply.call(this,e),(i=e.polarSize)!==r._polarSize&&(r._polarSize=i,r._polarDim=(0,$$.parsePercentSize)(i,!0)||{size:80,fixed:!1}),function(t){t!==r._innerSize&&(r._innerSize=t,r._innerDim=(0,$$.parsePercentSize)(t,!0))}(e.innerSize)},e.prototype.needAxes=function(){return!1},e.prototype._canContain=function(t){return t instanceof J$},e.prototype._doPrepareSeries=function(t){var e=t.map((function(t){return t.options.groupSize})).reduce((function(t,e){return t+(0,z$.pickNum)(e,1)}),0),i=0;t.forEach((function(t){t._groupPos=i,i+=t._groupSize=(0,z$.pickNum)(t.options.groupSize,1)/e}))},e.type=H$.PieSeriesGroupType,e.seriesType=H$.PieSeriesType,e.defaults=(0,W$.extend)(U$.SeriesGroup.defaults,{polarSize:"80%",innerSize:0}),e}(U$.SeriesGroup);D$.PieSeriesGroup=Q$;var tH={},eH=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(tH,"__esModule",{value:!0}),tH.ScatterSeries=tH.ScatterSeriesPoint=void 0;var iH=iM,rH=BB,nH=TM,oH=OB,sH=fG,aH=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return eH(e,t),e}(DB.DataPoint);tH.ScatterSeriesPoint=aH;var lH=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return eH(e,t),e.prototype._createPoint=function(t){return new aH(t)},e.prototype._getNoClip=function(e){var i=t.prototype._getNoClip.call(this,e);return!(0,iH.isBoolean)(i)||i},e.prototype._createLegendMarker=function(t,e){return new sH.ShapeLegendMarkerView(t)},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 r=t.prototype.legendMarker.call(this,e,i);return r.render(this.getShape(null),(0,iH.minv)(i/2,this._op.radius)),r},e.type=rH.ScatterSeriesType,e.defaults=(0,nH.extend)(oH.MarkerSeries.defaults,{jitterX:0,jitterY:0,radius:5,hoverScale:1.8}),e}(oH.MarkerSeries);tH.ScatterSeries=lH;var uH={},cH=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),pH=t&&t.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s},hH=t&&t.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(uH,"__esModule",{value:!0}),uH.WaterfallSeries=uH.WaterFallDataPointLabel=uH.WaterfallSeriesPoint=void 0;var fH=CB,dH=BB,_H=TM,yH=OB,gH=function(t){function e(){var e=t.apply(this,hH([],pH(arguments),!1))||this;return e.from=0,e}return cH(e,t),e.prototype.parse=function(e){t.prototype.parse.call(this,e),this._isSum=!0===this.source.isSum,this._isMid=this.source.isMid,(this._isSum||this._isMid)&&(this.y=0)},e.prototype.getPointLabel=function(t){return this.y},e}(DB.DataPoint);uH.WaterfallSeriesPoint=gH;var vH=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return cH(e,t),e.defaults=(0,_H.extend)(yH.DataPointLabel.defaults,{offset:0}),e}(yH.DataPointLabel);uH.WaterFallDataPointLabel=vH;var mH=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return cH(e,t),e.prototype.canCategorized=function(){return!0},e.prototype.getBaseValue=function(t){return t._isX?NaN:0},e.prototype._createLabel=function(t){return new vH(t)},e.prototype._createPoint=function(t){return new gH(t)},e.prototype._createLegendMarker=function(t,e){return fH.RectElement.create(t,yH.Series.LEGEND_MARKER,0,0,e,e,2)},e.prototype._doPrepareRender=function(){t.prototype._doPrepareRender.call(this);var e=this._visPoints;if(!(e.length<1))for(var i,r=e[0],n=r.y=r.save=r._isSum?0:r.y,o=n,s=n,a=r.from=0,l=0,u=r.to=n,c=0,p=1,h=e.length;p<h;p++){if(!0===(r=e[p])._isMid&&p<h)c=u=(a=c)+(i=s),n=i,s=0;else if(r._isSum)a=0,u=i=o,n=i;else{if(null==r.y)continue;u=(a=l+n)+(i=r.y),s+=i,o+=i,n=i}r.yGroup=r.yValue=i,r.from=a,r.to=u,r.y=Math.max(a,u),r.save=i,l=a}},e.prototype._getBottomValue=function(t){var e=Math.min(t.from,t.to);return t.y=t.save,delete t.save,e},e.type=dH.WaterfallSeriesType,e.defaults=(0,_H.extend)(yH.RangedSeries.defaults,{tooltipText:"<b>${name}</b><br>${series}:<b> ${y}</b>"}),e}(yH.RangedSeries);uH.WaterfallSeries=mH;var bH={},wH=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(bH,"__esModule",{value:!0}),bH.LogAxis=bH.LogAxisTick=void 0;var xH=iM,SH=wM,PH=KB,AH=TM,OH=cI,CH=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return wH(e,t),e.prototype.canUseNumSymbols=function(){return this.axis.axisMax()>this._log(500)},e.prototype.buildSteps=function(e,i,r,n,o,s){return this._log=e._log,this._pow=e._pow,this._snap=e._snap,t.prototype.buildSteps.call(this,e,i,r,n,o,s)},e.prototype._getStepMultiples=function(t){return[1,2,5,10]},e.prototype._getStepsByPixels=function(t,e,i,r,n){var o=this._log,s=this._pow,a=this._snap;r>=i?r=i:n<=i&&(n=i);var l=n-r;if(0===l||t<=0)return isNaN(r)?[]:[r];var u=[],c=(0,xH.maxv)(1,(0,xH.floor)(t/e))+1;if(n-r>=.5){if(0===l)return isNaN(r)?[]:[r];var p=l/(c-1);if(p/=y=s(Math.floor(o(p))),(g=this._getStepMultiples(y))&&g.length>0)if(p>g[0]){for(var h=0;h<g.length-1;h++)if(p>g[h]&&p<g[h+1]){p=p<=g[h]+(g[h+1]-g[h])/2?g[h]:g[h+1];break}}else p=g[0];((p*=y)<=0||!isFinite(p))&&(p=l/c),r=isNaN(i)?this._normalizeMin(r,p):i-(0,xH.ceil)((i-r)/p)*p;var f=this.axis,d=Math.pow(f._logBase,n-r)>f._roundThreshold,_=a(b=r);for(u.push(_);_<n;)b+=p,(_=a(d?Math.round(b):b))>u[u.length-1]&&(_<n&&(1==u.length&&_-u[u.length-1]<p||u.length>1&&_-u[u.length-1]<.5*(u[u.length-1]-u[u.length-2]))&&u.pop(),u.push(_))}else{r=s(r);var y,g,v=(n=s(n))-r;p=v/(c-1);if(p/=y=s((0,xH.floor)(o(p))),(g=this._getStepMultiples(y))&&g.length>0){var m=g[0];for(h=0;h<g.length-1;h++)if(p>g[h]&&p<g[h+1]){m=p<=g[h]+(g[h+1]-g[h])/2?g[h]:g[h+1];break}p=m}((p*=y)<=0||!isFinite(p))&&(p=v/c);var b,w=1e-10*p;for((b=(0,xH.floor)(r/p)*p)<r&&(b+=p),u.push(o(b));b<=n+w;)(b+=p)>0&&u.push(o(b))}return u},e.defaults=(0,AH.extend)(OH.ContinuousAxisTick.defaults,{arrangeDecimals:!0}),e}(OH.ContinuousAxisTick);bH.LogAxisTick=CH;var EH=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return wH(e,t),e.prototype._isLog=function(){return!0},e.prototype._createLabel=function(){return new OH.LinearAxisLabel(this)},e.prototype._createTickModel=function(){return new CH(this)},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e);var i=this._logBase=(0,xH.maxv)(2,(0,xH.pickNum)(e.logBase,10));this._roundThreshold=(0,xH.pickNum)(e.roundThrrehold,500),this._log=this.$_createLog(i),this._pow=this.$_createPow(i),this._snap=this.$_createSnap(i,this._log)},e.prototype.$_createLog=function(t){return 10===t?Math.log10:function(e){return Math.log10(e)/Math.log10(t)}},e.prototype.$_createPow=function(t){return function(e){return Math.pow(t,e)}},e.prototype.$_createSnap=function(t,e){return function(i){var r=(0,xH.floor)(i);return i===r?i:r+e((i-r)*t)}},e.prototype.dataToAxis=function(t){return this._log(t)},e.prototype.axisToData=function(t){return this._pow(t)},e.prototype.getXStart=function(){return 1},e.prototype.valueMin=function(){return this._pow(this._min)},e.prototype.valueMax=function(){return this._pow(this._max)},e.prototype.getPos=function(e,i){return i=i>0?this._log(i):-1,t.prototype.getPos.call(this,e,i)},e.prototype._checkValues=function(t){return t.filter((function(t){return t>0}))},e.prototype._doCalculateRange=function(e){var i=t.prototype._doCalculateRange.call(this,this._values);return i.min=this._log(i.min),i.max=this._log(i.max),i},e.prototype._createTick=function(e,i){return t.prototype._createTick.call(this,e,(0,SH.fixnum)(this._pow(i)))},e.prototype._calcUnitLen=function(e,i,r,n){if(e.length<2)return t.prototype._calcUnitLen.call(this,e,i,r,n);for(var o=this._log,s=o(e[1])-o(e[0]),a=2;a<e.length;a++)s=(0,xH.minv)(s,o(e[a])-o(e[a-1]));var l=n-r,u=s/l;return{len:(0,xH.pickNum)(i*=u,1),min:l*u}},e.type=PH.LogAxisType,e.defaults=(0,AH.extend)(OH.ContinuousAxis.defaults,{logBase:10,roundThrrehold:500}),e}(OH.ContinuousAxis);bH.LogAxis=EH;var VH=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(VM,"__esModule",{value:!0}),VM.ChartObject=VM.SectionDir=VM.ChartOptions=VM.PointHovering=VM.Credits=void 0;var LH=iM,TH=fM,kH=cM,NH=LM,MH=VR,jH=WR,RH=UR,BH=TM,DH=uB,IH=YR,GH=_B,FH=OB,zH=hD,$H=PD,HH=TD,WH=DD,UH=WD,YH=JD,XH=ZB,qH=cI,ZH=LI,KH=HI,JH=JI,QH=cG,tW=gF,eW=OF,iW=jF,rW=zF,nW=nz,oW=fz,sW=xz,aW=kz,lW=Fz,uW=Qz,cW=pG,pW=u$,hW=w$,fW=L$,dW=D$,_W=tH,yW=uH,gW=bH,vW=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return VH(e,t),e.prototype.isFloating=function(){return this._op.floating||"middle"===this._op.verticalAlign&&"center"===this._op.align},e.prototype._doSetSimple=function(e){return(0,LH.isString)(e)?(this._op.text=e,!0):t.prototype._doSetSimple.call(this,e)},e.defaults=(0,BH.extend)(BH.ChartItem.defaults,{text:"RealChart v1.4",url:"https://realchart.co.kr",floating:!1,align:"right",verticalAlign:"bottom",offsetX:2,offsetY:1,gap:4}),e}(BH.ChartItem);VM.Credits=vW;var mW=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return VH(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"!==(0,LH.pickProp)(this._op.scope,"auto")?this._op.scope:this.chart.chartOptions.options.seriesHovering?"point":t._xAxisObj.crosshair.visible&&t.needAxes()?"axis":t.isMarker()&&t._group?"group":"point"},e.defaults=(0,BH.extend)(BH.ChartItem.defaults,{scope:"auto"}),e}(BH.ChartItem);VM.PointHovering=mW;var bW,wW=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return VH(e,t),e.prototype._doInit=function(t){t.pointHovering=(this._pointHovering=new mW(this.chart)).init()},Object.defineProperty(e.prototype,"pointHovering",{get:function(){return this._pointHovering},enumerable:!1,configurable:!0}),e.prototype.getXStart=function(t){var e;return null!==(e=this._op.xStart)&&void 0!==e?e:t.getXStart()},e.defaults=(0,BH.extend)(BH.ChartItem.defaults,{paletteMode:"normal",animatable:!0,xStep:1,axisGap:8,seriesHovering:!1,timeOffset:(new Date).getTimezoneOffset(),startOfWeek:0,resizeDelay:50}),e}(BH.ChartItem);VM.ChartOptions=wW,function(t){t.LEFT="left",t.TOP="top",t.BOTTOM="bottom",t.RIGHT="right"}(bW||(VM.SectionDir=bW={}));var xW=function(t){function e(i,r){var n=t.call(this)||this;return n._data=new kH.ChartDataCollection,n._palColors={},n._params={},n._seriesIndex=0,n._dataDirty=!1,n._loadAnimatable=!0,n._wrapper=r,n._assets=new MH.AssetCollection,(n._chartOptions=new wW(n)).init(),(n._title=new $H.Title(n)).init(),(n._subtitle=new $H.Subtitle(n)).init(),(n._legend=new GH.Legend(n)).init(),(n._credits=new vW(n)).init(),(n._tooltip=new HH.Tooltip(n)).init(),e.split_class&&(n._split=new e.split_class(n)).init(),(n._body=new RH.Body(n)).init(),(n._navigator=new zH.SeriesNavigator(n)).init(),(n._exporter=new DH.Exporter(n)).init(),n._series=new FH.PlottingItemCollection(n),n._xAxes=new jH.AxisCollection(n,!0),n._yAxes=new jH.AxisCollection(n,!1),n._gauges=new IH.GaugeCollection(n),n._annotations=new NH.AnnotationCollection(n),(0,LH.isObject)(i)?n._load(i):n._initOptions(),n}return VH(e,t),e.registerSplitClass=function(t){this.split_class=t},e.prototype._initOptions=function(){return this._op=Object.assign({},e.defaults)},Object.defineProperty(e.prototype,"options",{get:function(){return this._op},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"chartOptions",{get:function(){return this._chartOptions},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"credits",{get:function(){return this._credits},enumerable:!1,configurable:!0}),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.getAxisOf=function(t,e){return this._splitted?this._split.getAxisOf(t,e):e?this.xAxis:this.yAxis},e.prototype.isValidAxis=function(t){return t&&(!this._splitted||this._split.isValidAxis(t))},e.prototype.getTooltipContext=function(t,e,i){var r=function(){function t(t){this.axis=t,this.series=t.getVisibleSeries().filter((function(t){return t.needAxes()}))}return t.prototype.getTooltipText=function(t,e){return FH.SeriesGroup.collectTooltipText(this.axis.options,this.series,t,e)},t.prototype.getTooltipParam=function(t,e,i){return FH.SeriesGroup.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 r(e._xAxisObj);case"group":return e._group?e._group:e;default:return e}},Object.defineProperty(e.prototype,"chart",{get:function(){return this},enumerable:!1,configurable:!0}),e.prototype.anchorByName=function(t){var e=this.gaugeByName(t);return e instanceof IH.GaugeBase?e:this._annotations.get(t)},Object.defineProperty(e.prototype,"wrapper",{get:function(){return this._wrapper},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return this._op.type},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"gaugeType",{get:function(){return this._op.gaugeType},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"polar",{get:function(){return this._op.polar},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"inverted",{get:function(){return this._op.inverted},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"timeOffset",{get:function(){return this._op.chart.timeOffset},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"startOfWeek",{get:function(){return this._op.chart.startOfWeek},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"seriesCount",{get:function(){return this._series.count},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(){var t;return null===(t=this._gauges)||void 0===t?void 0:t.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._getAnnotations=function(){return this._annotations},e.prototype._getXAxes=function(){return this._xAxes},e.prototype._getYAxes=function(){return this._yAxes},e.prototype.getAnnotations=function(){return this._splitted?this._annotations.getVisibles().filter((function(t){return isNaN(t.row)||isNaN(t.col)})):this._annotations.getVisibles()},e.prototype.isGauge=function(){return this._gaugeOnly},e.prototype.isPolar=function(){return this._polar&&this._series.canPolar()},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)&&(null==this._gauges||this._gauges.isEmpty(t))},e.prototype._getXAxesAt=function(t,e){return this._splitted?this._xAxes._internalItems().filter((function(i){return i.col===t&&(!e||i.checkVisible())})):this._xAxes._internalItems().filter((function(t){return!e||t.checkVisible()}))},e.prototype._getYAxesAt=function(t,e){return this._splitted?this._yAxes._internalItems().filter((function(i){return i.row===t&&(!e||i.checkVisible())})):this._yAxes._internalItems().filter((function(t){return!e||t.checkVisible()}))},e.prototype._getXAxesAtPane=function(t,e,i){return this._splitted?this._xAxes._internalItems().filter((function(r){return r.col===t&&r.row===e&&(!i||r.checkVisible())})):this._xAxes._internalItems().filter((function(t){return!i||t.checkVisible()}))},e.prototype._getYAxesAtPane=function(t,e,i){return this._splitted?this._yAxes._internalItems().filter((function(r){return r.col===t&&r.row===e&&(!i||r.checkVisible())})):this._yAxes._internalItems().filter((function(t){return!i||t.checkVisible()}))},e.prototype.seriesByName=function(t){return this._series.getSeries(t)},e.prototype.seriesByType=function(t){return this._series.seriesByType(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){var e;return null===(e=this._gauges)||void 0===e?void 0:e.getGauge(t)},e.prototype.gaugeAt=function(t){var e;return null===(e=this._gauges)||void 0===e?void 0:e.get(t)},e.prototype.annotationByName=function(t){return this._annotations.getAnnotation(t)||(this._splitted?this._split.getBodyAnnotation(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,r=this._xAxes.items(),n=this._yAxes.items();if(this.isInverted())switch(t){case bW.LEFT:i=r.filter((function(t){return!t._isOpposite&&!t._isBetween}));break;case bW.RIGHT:i=r.filter((function(t){return t._isOpposite}));break;case bW.BOTTOM:i=n.filter((function(t){return!t._isOpposite&&!t._isBetween}));break;case bW.TOP:i=n.filter((function(t){return t._isOpposite}))}else switch(t){case bW.LEFT:i=n.filter((function(t){return!t._isOpposite&&!t._isBetween}));break;case bW.RIGHT:i=n.filter((function(t){return t._isOpposite}));break;case bW.BOTTOM:i=r.filter((function(t){return!t._isOpposite&&!t._isBetween}));break;case bW.TOP:i=r.filter((function(t){return t._isOpposite}))}return i?e?i.filter((function(t){return t.checkVisible()})):i:[]},e.prototype._setProperties=function(t,i){var r=this._op;for(var n in e.defaults)t.hasOwnProperty(n)&&(r[n]=t[n]);r.type=r.type||"bar",r.gaugeType=r.gaugeType||"circle",this._polar=!0===this.polar},e.prototype.loadBase=function(t,e,i){var r,n=this._bases[e];return(0,LH.isObject)(n.base)&&(0,BH.merge)(r={},n.base),(0,LH.isObject)(n[i])&&(r||(r={}),(0,BH.merge)(r,n[i])),r?(0,BH.merge)(r,t):t},e.prototype._load=function(t){var e,i,r=this._initOptions();return this.$_loadTemplates(t.templates),this._setProperties(t),r.asset=this._assets.load((0,LH.pickProp)(t.asset,t.assets)),r.options=r.chart=this._chartOptions._load((0,LH.pickProp)(t.chart,t.options)),(0,LH.isObject)(t.chart)?this._credits._load(t.chart.credits):(0,LH.isObject)(t.options)&&this._credits._load(t.options.credits),r.title=this._title._load(t.title),r.subtitle=this._subtitle._load(t.subtitle),r.legend=this._legend._load(t.legend),r.credits=this._credits._load(t.credits),r.tooltip=this._tooltip._load(t.tooltip),this._seriesIndex=0,this._series.load(t.series),null===(e=this._gauges)||void 0===e||e.load((0,LH.pickProp)(t.gauge,t.gauges)),this._gaugeOnly=0===this._series.count&&null!=this._gauges&&!this._gauges.isEmpty(!1),this._gaugeOnly||(this._xAxes.load((0,LH.pickProp3)(t.xAxis,t.xAxes,{})),this._yAxes.load((0,LH.pickProp3)(t.yAxis,t.yAxes,{}))),r.body=this._body._load(t.body||t.plot),null===(i=this._split)||void 0===i||i._load(t.split),this._annotations.load((0,LH.pickProp)(t.annotation,t.annotations),!1),r.seriesNavigator=this._navigator._load(t.seriesNavigator),r.exporting=this._exporter._load(t.exporting),this},e.prototype.update=function(t,e){if((0,LH.isObject)(t)){for(var i in this._setProperties(t,!1),t){var r=this[i];(r instanceof BH.ChartItem||r instanceof BH.ChartItemCollection||r instanceof MH.AssetCollection)&&r.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,e=this,i=this._xAxes,r=this._yAxes,n=this._split;return[i,r].forEach((function(t){t.count<1&&!e._gaugeOnly&&t.load({})})),this._inverted=!this._polar&&this.inverted,this._splitted=n&&n.visible,this._assets.prepareRender(),i.disconnect(),r.disconnect(),this._series.connect(this),this._series.prepareRender(),i.prepare(),r.prepare(),i.collectValues(),r.collectValues(),i.collectReferentValues(),r.collectReferentValues(),r.collectRanges(),i.prepareRender(),r.prepareRender(),this._splitted&&this._split.prepareRender(i,r),this._series.prepareAfter(),this._legend._prepareRender(),null===(t=this._gauges)||void 0===t||t.prepareRender(),this._body._prepareRender(),this._annotations.prepareRender(),this._navigator.visible&&this._navigator._prepareRender(),this},e.prototype.afterRender=function(){this._dataDirty=!1,this._xAxes.afterRender(),this._yAxes.afterRender()},e.prototype.layoutAxes=function(t,e,i,r){this._xAxes._buildTicks(i?e:t,r),this._yAxes._buildTicks(i?t:e,r),this.$_calcAxesPoints(t,e,i,r)},e.prototype.$_calcAxesPoints=function(t,e,i,r){var n=i?e:t;this._xAxes.forEach((function(t){(r<2||r>100||t._isHorz||!t.continuous())&&t._calcPoints(n,r)})),n=i?t:e,this._yAxes.forEach((function(t){(r<2||r>100||t._isHorz||!t.continuous())&&t._calcPoints(n,r)}))},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.getPaletteColors=function(t){var e=this._palColors[t];if(!e){var i=document.querySelector(".rct-root");if(i){var r="data-palette",n=i.getAttribute(r);i.setAttribute(r,t);var o=getComputedStyle(i);this._palColors[t]=e=[];for(var s=1;s<=FH.PALETTE_LEN;s++)e.push(o.getPropertyValue("--color-".concat(s)).trim());i.setAttribute(r,n)}}return e},e.prototype.$_loadTemplates=function(t){var e=this,i=this._bases={xAxis:{},yAxis:{},series:{},gauge:{},annotation:{}};if((0,LH.isObject)(t)){var r=this._templates={};for(var n in t){var o=t[n];(0,LH.isObject)(o)&&(r[n]=(0,LH.assignObj)({},o))}["@xAxis","@yAxis","@series","@gauge","@annotation"].forEach((function(e){t.hasOwnProperty(e)&&(0,LH.isObject)(t[e])&&(i[e.substring(1)]=t[e])})),this.assignTemplates=function(t){var i=t.template;if((0,LH.isString)(i)){var r=e._templates[i];if(r)return(0,BH.merge)((0,BH.merge)({},r),t)}else(0,LH.isArray)(i)&&i.forEach((function(i){var r=e._templates[i];return r?(0,BH.merge)((0,BH.merge)({},r),t):r}));return t}}else this.assignTemplates=void 0},e.prototype._getGroupType=function(t){return(0,LH.isString)(t)&&FH.series_group_types[t.toLowerCase()]},e.prototype._getSeriesType=function(t){return(0,LH.isString)(t)&&FH.series_types[t.toLowerCase()]},e.prototype._getAxisType=function(t){return(0,LH.isString)(t)&&jH.axis_types[t.toLowerCase()]},e.prototype._getGaugeType=function(t){return(0,LH.isString)(t)&&IH.gauge_types[t.toLowerCase()]},e.prototype._getGaugeGroupType=function(t){return(0,LH.isString)(t)&&IH.gauge_group_types[t.toLowerCase()]},e.prototype._getAnnotationType=function(t){return(0,LH.isString)(t)&&NH.annotation_types[t.toLowerCase()]},e.prototype.getAxesGap=function(){return(0,LH.pickNum)(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}(TH.EventProvider);VM.ChartObject=xW,jH.Axis.register(XH.CategoryAxis,qH.LinearAxis,gW.LogAxis,ZH.TimeAxis),FH.Series.register(cW.AreaSeries,cW.AreaRangeSeries,KH.BarRangeSeries,JH.BarSeries,QH.BellCurveSeries,tW.BoxPlotSeries,eW.BubbleSeries,rW.CandlestickSeries,nW.CircleBarSeries,oW.DumbbellSeries,sW.EqualizerSeries,aW.ErrorBarSeries,lW.FunnelSeries,uW.HistogramSeries,cW.LineSeries,cW.SplineSeries,pW.LollipopSeries,hW.OhlcSeries,fW.ParetoSeries,dW.PieSeries,_W.ScatterSeries,yW.WaterfallSeries),FH.SeriesGroup.register(cW.AreaSeriesGroup,JH.BarSeriesGroup,iW.BumpSeriesGroup,nW.CircleBarSeriesGroup,cW.LineSeriesGroup,dW.PieSeriesGroup),FH.SeriesGroup.registerSeries(cW.AreaSeriesGroup,JH.BarSeriesGroup,nW.CircleBarSeriesGroup,cW.LineSeriesGroup,dW.PieSeriesGroup),NH.Annotation.register(WH.ImageAnnotation,UH.ShapeAnnotation,YH.TextAnnotation),function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.ChartData=t.Chart=t.CTRL=void 0;var e=iM,i=rM,r=cM,n=VM,o=TM;t.CTRL="$ctrl";var s=function(){function r(t,i){this._modelCallback=i,this._obj=new n.ChartObject(t,this),this._loaded=(0,e.isObject)(t),null==i||i(this._obj,null)}return r.prototype.destroy=function(){var e;this.$_destroyed||this.$_destroying||(this.$_destroying=!0,this[t.CTRL]=null===(e=this[t.CTRL])||void 0===e?void 0:e.destroy(),this._obj=null,this.$_destroyed=!0)},Object.defineProperty(r.prototype,"options",{get:function(){return this._obj.options},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"data",{get:function(){return this._obj._data},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"type",{get:function(){return this._obj.type},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"gaugeType",{get:function(){return this._obj.gaugeType},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"inverted",{get:function(){return this._obj.inverted},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"polar",{get:function(){return this._obj.polar},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"assets",{get:function(){return this._obj._assets},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"chartOptions",{get:function(){return this._obj.chartOptions},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"title",{get:function(){return this._obj._title},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"subtitle",{get:function(){return this._obj._subtitle},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"first",{get:function(){return this._obj.first},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"series",{get:function(){return this._obj.firstSeries},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"gauge",{get:function(){return this._obj.firstGauge},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"legend",{get:function(){return this._obj._legend},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"credits",{get:function(){return this._obj._credits},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"tooltip",{get:function(){return this._obj._tooltip},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"xAxis",{get:function(){return this._obj.xAxis},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"yAxis",{get:function(){return this._obj.yAxis},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"body",{get:function(){return this._obj._body},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"split",{get:function(){return this._obj._split},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"seriesNavigator",{get:function(){return this._obj._navigator},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"exporter",{get:function(){return this._obj._exporter},enumerable:!1,configurable:!0}),r.prototype.getXAxis=function(t){return this._obj.getXAxis(t)},r.prototype.getYAxis=function(t){return this._obj.getYAxis(t)},r.prototype.getSeries=function(t){return(0,e.isString)(t)?this._obj.seriesByName(t):this._obj.seriesAt(t)},r.prototype.seriesByType=function(t){return this._obj.seriesByType(t)},r.prototype.getGauge=function(t){return this._obj.gaugeAt(t)},r.prototype.getAnnotation=function(t){return this._obj.annotationByName(t)},r.prototype.load=function(t,r,s){var a;if(void 0===r&&(r=!1),(0,e.isObject)(t)){var l="load chart";i.Utils.LOGGING&&console.time(l);var u=this._obj,c=u;this._loaded?(u.destroy(),c=this._obj=new n.ChartObject(null,this)):(this._loaded=!0,u=null),c._load(t),c._loadAnimatable=r,this._loadCallback=s,i.Utils.log("chart-items:",o.n_chart_item),i.Utils.LOGGING&&console.timeEnd(l),null===(a=this._modelCallback)||void 0===a||a.call(this,c,u)}return this},r.prototype.updateOptions=function(t,e){void 0===e&&(e=!0),this._obj.update(t,e)},r.prototype.export=function(t){this._obj.export(t)},r.prototype.render=function(){this._obj.render()},r.prototype.setParam=function(t,e,i){this._obj.setParam(t,e,i)},r.prototype.addSeries=function(t,e){return void 0===e&&(e=!0),this._obj.addSeries(t,e)},r.prototype.removeSeries=function(t,e){void 0===e&&(e=!0),this._obj.removeSeries(t,e)},r.prototype.draw=function(){this[t.CTRL].refresh()},r}();t.Chart=s;var a=function(){function t(t,e){this._obj=new r.DataObject(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}();t.ChartData=a}(eM);var SW={},PW={},AW={},OW=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),CW=t&&t.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,i=e&&t[e],r=0;if(i)return i.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(AW,"__esModule",{value:!0}),AW.ElementPool=void 0;var EW=function(t){function e(e,i,r){var n=t.call(this)||this;return n._pool=[],n._views=[],n._owner=e,n._creator=i,n._styleName=r,n}return OW(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 r=CW(this._views),n=r.next();!n.done;n=r.next()){var o=n.value;if(o.contains(t))return o}}catch(t){e={error:t}}finally{try{n&&!n.done&&(i=r.return)&&i.call(r)}finally{if(e)throw e.error}}},e.prototype.find=function(t){return this._views.find(t)},e.prototype.$_create=function(t,e,i){var r=this._pool.pop();return r||(r=new this._creator(t,this._styleName)),r},e.prototype.prepare=function(t,e,i){for(var r=this._owner.doc,n=this._owner,o=this._pool,s=this._views;s.length>t;)o.push(s.pop().remove());for(;s.length<t;){var a=this.$_create(r);s.push(a),null==i||i(a,s.length-1,t),n.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,r=e.length;i<r;i++)t(e[i],i,r)},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){var e=this,i=this._views;return i.sort(t),i.forEach((function(t){return e._owner.appendDom(t.dom)})),this},e.prototype.sortDom=function(t){var e=this,i=this._views.slice(0);return i.sort(t),i.forEach((function(t){return e._owner.appendDom(t.dom)})),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}(fM.RcObject);AW.ElementPool=EW;var VW={},LW=t&&t.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s},TW=t&&t.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))},kW=t&&t.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,i=e&&t[e],r=0;if(i)return i.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(VW,"__esModule",{value:!0}),VW.inflateRect=VW.intersectsRect=VW.isColliding=VW.createRect=VW.RECT_Z=void 0,VW.rectToSize=function(t){return{width:t.width,height:t.height}},VW.isEmptyRect=function(t){return t.width<=0||t.height<=0},VW.RECT_Z=Object.freeze({x:0,y:0,width:0,height:0});VW.createRect=function(t,e,i,r){return{x:t,y:e,width:i,height:r}};var NW=function(t){var e=t.x+t.width/2,i=t.y+t.height/2,r=t.rotation*Math.PI/180,n=t.width/2,o=t.height/2;return[[-n,-o],[n,-o],[n,o],[-n,o]].map((function(t){var n=LW(t,2),o=n[0],s=n[1];return[e+(o*Math.cos(r)-s*Math.sin(r)),i+(o*Math.sin(r)+s*Math.cos(r))]}))},MW=function(t){for(var e=[],i=0;i<t.length;i++){var r=t[i],n=t[(i+1)%t.length],o=[n[0]-r[0],n[1]-r[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},jW=function(t,e){var i=t.map((function(t){var i=LW(t,2),r=i[0],n=i[1];return r*e[0]+n*e[1]}));return[Math.min.apply(Math,TW([],LW(i),!1)),Math.max.apply(Math,TW([],LW(i),!1))]},RW=function(t,e){return t[1]>=e[0]&&e[1]>=t[0]};VW.isColliding=function(t,e){var i,r,n=NW(t),o=NW(e),s=MW(n),a=MW(o);try{for(var l=kW(TW(TW([],LW(s),!1),LW(a),!1)),u=l.next();!u.done;u=l.next()){var c=u.value,p=jW(n,c),h=jW(o,c);if(!RW(p,h))return!1}}catch(t){i={error:t}}finally{try{u&&!u.done&&(r=l.return)&&r.call(l)}finally{if(i)throw i.error}}return!0};VW.intersectsRect=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)};VW.inflateRect=function(t,e,i,r,n){return void 0===e&&(e=0),i=void 0!==i?i:e,r=void 0!==r?r:e,n=void 0!==n?n:i,e&&(t.x=t.x-e),i&&(t.y=t.y-i),r&&(t.width=t.width+e+r),n&&(t.height=t.height+i+n),t};var BW={},DW={},IW=t&&t.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s},GW=t&&t.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(DW,"__esModule",{value:!0}),DW.Sides=void 0;var FW=iM,zW=function(){function t(t,e,i,r){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===r&&(r=0),this.top=t,this.bottom=e,this.left=i,this.right=r}return t.create=function(e,i,r,n){return isNaN(r)?isNaN(i)?new t(e,e,e,e):new t(e,e,i,i):new t(e,i,r,n)},t.createFrom=function(t){var e,i=t.split(/\s*[\s,]+\s*/g);return(e=this.create).call.apply(e,GW([null],IW(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=(0,FW.pickNum)(t.paddingLeft,0),this.right=(0,FW.pickNum)(t.paddingRight,0),this.top=(0,FW.pickNum)(t.paddingTop,0),this.bottom=(0,FW.pickNum)(t.paddingBottom,0),this},t.prototype.applyMargin=function(t){return this.left=(0,FW.pickNum)(t.marginLeft,0),this.right=(0,FW.pickNum)(t.marginRight,0),this.top=(0,FW.pickNum)(t.marginTop,0),this.bottom=(0,FW.pickNum)(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}();DW.Sides=zW;var $W={},HW=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty($W,"__esModule",{value:!0}),$W.GroupElement=void 0;var WW=wM,UW=function(t){function e(e,i){void 0===i&&(i=WW._undef);var r=t.call(this,e,i,"g")||this;return r._doInitChildren(e),r}return HW(e,t),e.prototype.setAttr=function(i,r){return e.IGNORE_ATTRS.hasOwnProperty(i)||t.prototype.setAttr.call(this,i,r),this},e.prototype._doInitChildren=function(t){},e.IGNORE_ATTRS={width:"",height:""},e}(hj.RcElement);$W.GroupElement=UW;var YW=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),XW=t&&t.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s},qW=t&&t.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(BW,"__esModule",{value:!0}),BW.ContentView=BW.SectionView=BW.BoundableElement=BW.ChartElement=void 0;var ZW=hj,KW=DW,JW=wM,QW=$W,tU=CB,eU=function(t){function e(e,i){void 0===i&&(i=JW._undef);var r=t.call(this,e,i,"g")||this;return ZW.RcElement.DEBUGGING&&(r.add(r._debugRect=new tU.RectElement(e,"rct-debug")),r._debugRect.setAttr("pointerEvents","none")),r}return YW(e,t),e.prototype.chart=function(){return this.model.chart},Object.defineProperty(e.prototype,"model",{get:function(){return this._model},enumerable:!1,configurable:!0}),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,r,n){this._prepareStyleOrClass(e),this.setModel(e);var o=this._doMeasure(t,this.model,i,r,n);return this.mw=o.width,this.mh=o.height,o},e.prototype.layout=function(t){return this._doLayout(t),ZW.RcElement.DEBUGGING?(this._debugRect||this.insertFirst(this._debugRect=new tU.RectElement(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,r,n){return{width:i,height:r}},e.prototype._doLayout=function(t){},e.prototype._invalidate=function(){var t;null===(t=this.control)||void 0===t||t.invalidateLayout()},e}(ZW.RcElement);BW.ChartElement=eU;var iU=function(t){function e(e,i,r){var n=t.call(this,e,i)||this;return n._margins=new KW.Sides,n._paddings=new KW.Sides,n.add(n._background=new tU.RectElement(e,r)),n}return YW(e,t),e.prototype._getDebugRect=function(){return this._margins.shrink(t.prototype._getDebugRect.call(this))},e.prototype.measure=function(t,e,i,r,n){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,r,n);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.prototype._inflaePaddings=function(t){var e=this._paddings;return t.width+=e.left+e.right,t.height+=e.top+e.bottom,t},e}(eU);BW.BoundableElement=iU;var rU=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return YW(e,t),e.prototype.measure=function(t,e,i,r,n){this._setInverted(e.isInverted());var o=this._doMeasure(t,e,i,r,n);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}(QW.GroupElement);BW.SectionView=rU;var nU=function(t){function e(){var e=t.apply(this,qW([],XW(arguments),!1))||this;return e._inverted=!1,e._animatable=!0,e._loadAnimatable=!0,e}return YW(e,t),e.prototype._setChartOptions=function(t,e,i){this._inverted=t,this._animatable=e,this._loadAnimatable=i},e}(eU);BW.ContentView=nU;var oU={},sU={},aU=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(sU,"__esModule",{value:!0}),sU.ImageElement=void 0;var lU=VW,uU=wM,cU=rM,pU=function(t){function e(e,i,r){var n=t.call(this,e,r,"image")||this;return n._bounds=lU.RECT_Z,n.onloadProxy=function(){var t=n.getBBox();n.resize(t.width,t.height)},i&&n.setAttr("preserveAspectRatio","xMidYMid slice"),n.dom.onload=function(){n.invalidate()},n.dom.onerror=function(){n.invalidate()},window.SVGGraphicsElement&&!cU.isIE||(n.setAttr("href",""),n._proxy=new Image,n._proxy.onload=function(){n.invalidate(),setTimeout((function(){n.onloadProxy()}),0)}),n}return aU(e,t),Object.defineProperty(e.prototype,"url",{get:function(){return this.getAttr("href")},set:function(t){t!==this.url&&(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){this.url=t,this.resize(e,i)},e.prototype.getBBox=function(){if(this._bounds=this.dom.getBBox(),this._proxy){var t=this._proxy,e=this._bounds.width,i=this._bounds.height;e>0&&!i?i=e/t.width*t.height:0==i||e||(e=i/t.height*t.width),this._bounds={x:this._bounds.x,y:this._bounds.y,width:e,height:i}}return this._bounds},e.prototype.resize=function(e,i,r){var n=this._proxy;return n&&((0,uU.isNull)(e)||(0,uU.isNull)(i))&&(e>0&&(0,uU.isNull)(i)?i=e/n.width*n.height:i>0&&(0,uU.isNull)(e)?e=i/n.height*n.width:(e=n.width,i=n.height)),t.prototype.resize.call(this,e,i,r)},e}(hj.RcElement);sU.ImageElement=pU;var hU=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(oU,"__esModule",{value:!0}),oU.ChartTextElement=void 0;var fU=uj,dU=iM,_U=sU,yU=CB,gU=lj,vU=wM,mU=function(t){function e(e,i){void 0===i&&(i=vU._undef);var r=t.call(this,e)||this;return r.add(r._text=new gU.TextElement(e,i)),r._text.anchor=gU.TextAnchor.START,r}return hU(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,r){var n=e.options.effect;return this._model=e,this._text.internalClearStyleAndClass(),this._text.internalSetStyleOrClass(e._style),r&&this._text.internalSetStyleOrClass(r),"background"===n?(this._outline&&this._outline.remove(),this._back||(this._back=new yU.RectElement(t,"rct-label-background")),this.insertFirst(this._back),this._back.setStyleOrClass(e.options.backgroundStyle)):"outline"===n?(this._back&&this._back.remove(),this._outline||(this._outline=new gU.TextElement(t),this._outline.anchor=this._text.anchor),this.insertFirst(this._outline),this._outline.setStyleOrClass(e._style)):(this._back&&this._back.remove(),this._outline&&this._outline.remove()),i?(this._icon||this.add(this._icon=new _U.ImageElement(t,!1)),this._icon.setImage(i,+e.options.iconWidth,+e.options.iconHeight)):this._icon&&(this._icon.remove(),this._icon=null),this._box=void 0,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 r=fU.Color.getContrast(getComputedStyle(this._text.dom).fill);this._outline.internalSetStyles({fill:r,stroke:r,strokeWidth:this._model._outlineWidth})}return this},e.prototype.layout=function(t){var e=this._text,i=this._outline,r=this._icon,n=0,o=e.getBBox(),s=o.width,a=o.height,l=s,u=a,c=0,p=0,h=0,f=0;if(this._box=void 0,r){var d=r.getBBox();switch(n=(0,dU.pickNum)(this._model.options.iconGap,0),c=d.width,p=d.height,this._model.getIconPos()){case"left":case"right":l+=n+c,u=Math.max(p,a);break;default:u+=n+p,l=Math.max(c,s)}}if(this._back&&this._back.parent){var _=getComputedStyle(this._back.dom);h=parseFloat(_.paddingLeft)||0,f=parseFloat(_.paddingTop)||0,this._back.setBounds(0,0,l+h+(parseFloat(_.paddingRight)||0),u+f+(parseFloat(_.paddingBottom)||0),_.rx)}if(r)switch(this._model.getIconPos()){case"left":r.trans(h,(u-p)/2),h+=c+n,l-=c+n;break;case"right":r.trans(h+l-c,(u-p)/2),l-=c+n;break;case"top":r.trans((l-c)/2,f),f+=p+n;break;case"bottom":r.trans((l-c)/2,f+a+n)}switch(t){case"center":h+=l/2,e.anchor=gU.TextAnchor.MIDDLE;break;case"right":h+=l,e.anchor=gU.TextAnchor.END;break;default:e.anchor=gU.TextAnchor.START}return e.trans(h,f),i&&(i.anchor=e.anchor,i.setAttr("y",e.getAttr("y")),i.trans(e.tx,e.ty)),this},e.prototype.setOutline=function(t){this._back&&this._back.remove(),this._outline||(this._outline=new gU.TextElement(this.doc),this._outline.anchor=this._text.anchor),this.insertFirst(this._outline),this._outline.setStyleOrClass(t._style)},e.prototype.getBBox=function(){return this._box?this._box:this._box=t.prototype.getBBox.call(this)},e}($W.GroupElement);oU.ChartTextElement=mU;var bU={},wU=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(bU,"__esModule",{value:!0}),bU.AxisAnimation=void 0;var xU=function(t){function e(e,i,r,n){var o=t.call(this)||this;return o._axis=e,o._prevMin=i,o._prevMax=r,o.start(n),o}return wU(e,t),e.prototype._doUpdate=function(t){if(this._axis.parent){var e=this._axis.model,i=this._prevMax-this._prevMin,r=(e.axisMax()-e.axisMin())/i;return t=r+(1-r)*t,e.setPrevRate(t),this._axis.invalidate(),!0}return!1},e.prototype._doStop=function(){this._axis.model.setPrevRate(NaN),this._axis=null},e}(Sj.RcAnimation);bU.AxisAnimation=xU,function(e){var i=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),r=t&&t.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s},n=t&&t.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.AxisView=e.axis_label_reg=e.AxisScrollView=e.AxisLabelView=e.AxisTitleView=void 0;var o=iM,s=rM,a=AW,l=$F,u=hj,c=VW,p=GM,h=ZB,f=wM,d=EG,_=CB,y=lj,g=BW,v=oU,m=bU,b=cI,w=function(t){function e(e){var i=t.call(this,e,"rct-axis-title","rct-axis-title-background")||this;return i.add(i._textView=new y.TextElement(e)),i._richText=new p.SvgRichText,i}return i(e,t),e.prototype.rotatedWidth=function(){var t=this.model.getRotation()*f.DEG_RAD,e=this.getBBox();return(0,o.absv)((0,o.sin)(t)*e.height)+(0,o.absv)((0,o.cos)(t)*e.width)},e.prototype.rotatedHeight=function(){var t=this.model.getRotation()*f.DEG_RAD,e=this.getBBox();return(0,o.absv)((0,o.cos)(t)*e.height)+(0,o.absv)((0,o.sin)(t)*e.width)},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,r,n){this._angle=e.getRotation();var o=e.options,s=o.writingMode;s&&this._textView.setStyle("writingMode",s),this._textView.setStyle("textOrientation",e.getTextOrientation()),this._richText._isVertical="vertical"===s,this._richText.setFormat(o.text),!isNaN(o.lineHeight)&&this._richText&&(this._richText.lineHeight=o.lineHeight),this._richText.build(this._textView,i,r,null,null);var a=(0,c.rectToSize)(this._textView.getBBox());if(!e.axis._isHorz&&0!==this._angle){var l=a.width;a.width=a.height,a.height=l}return a},e.prototype._doLayout=function(t){var e=this._textView,i=e.getStyle("writing-mode"),r=i===f._WritingMode.VERTICAL_LR||i===f._WritingMode.VERTICAL_RL;t?this.rotation=0:this.setRotation(0,(r?this.width:this.height)/2,this._angle);var n=this._margins.top+this._paddings.top,o=0;switch(this.textAlign()){case"left":e.anchor=y.TextAnchor.START,r||(o-=this.width/2);break;case"right":e.anchor=y.TextAnchor.END,r?n+=this.height:o+=this.width/2;break;default:e.anchor=y.TextAnchor.MIDDLE,r&&(n+=this.height/2)}e.trans(o,n)},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}(g.BoundableElement);e.AxisTitleView=w;var x=function(t){function e(e){var i=t.call(this,e,"rct-axis-unit-label","rct-axis-unit-label-background")||this;return i.add(i._textView=new y.TextElement(e)),i._textView.anchor=y.TextAnchor.START,i._richText=new p.SvgRichText,i}return i(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,r,n){return this._richText.setFormat(e.options.text),this._richText.build(this._textView,i,r,null,null),(0,c.rectToSize)(this._textView.getBBox())},e.prototype._doLayout=function(t){var e=this._textView,i=this._margins.top+this._paddings.top,r=0;switch(this.textAlign()){case"left":e.anchor=y.TextAnchor.START,r-=this.width/2;break;case"right":e.anchor=y.TextAnchor.END,r+=this.width/2}e.trans(r,i)},e}(g.BoundableElement),S=function(t){function e(e){var i=t.call(this,e,C.TICK_CLASS)||this;return i.add(i._lineView=new d.LineElement(e)),i}return i(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}(g.ChartElement),P=function(t){function e(){var e=t.apply(this,n([],r(arguments),!1))||this;return e.index=-1,e.col=0,e.row=0,e.tickWidth=0,e.hidden=!1,e}return i(e,t),e.prototype.setLabel=function(t,e,i,r,n,o){if(r){var s=t.getIcon(i);t.prepareRich(r),this.setModel(this.doc,t,s&&t.getUrl(s),e),t.buildSvg(this._text,this._outline,n,o,t,t._domain)}else t.prepareRich(""),this._text.text=""},e.prototype.applyBackgroundCallback=function(t,e){var i=t.options.backgroundStyleCallback;if("background"===t.options.effect&&i){var r=t.axis.getTickLabelArgs(e.index,e.value);this._back.setStyleOrClass(i(r))}},e.prototype.rotatedWidth=function(){var t=(this.rotation||0)*f.DEG_RAD,e=this.getBBox();return(0,o.absv)((0,o.sin)(t)*e.height)+(0,o.absv)((0,o.cos)(t)*e.width)},e.prototype.rotatedHeight=function(){var t=this.rotation*f.DEG_RAD,e=this.getBBox();return(0,o.absv)((0,o.cos)(t)*e.height)+(0,o.absv)((0,o.sin)(t)*e.width)},e.prototype.resizeBackByWeight=function(t,e,i,r,n,o,s,a,l,u){void 0===u&&(u=0);var c=this._back;if(c&&!t._isHorz){var p=this.getBBox(),h=n/a,f=e?o-s+u:i?o:u-s;c.transX(f-this.tx),c.shiftY((h-p.height)/-2-l),e?c.resize(r-u-2*(o+s),h-1):c.resize(r-o-u+s,h-1)}},e}(v.ChartTextElement);e.AxisLabelView=P;var A=function(t){function e(e){var i=t.call(this,e,void 0)||this;return i.add(i._back=new u.PathElement(e,"rct-crosshair-flag")),i.add(i._text=new y.TextElement(e,"rct-crosshair-flag-text")),i}return i(e,t),e.prototype.setText=function(t,e){if(e!==this._text.text){var i=t.options.flag;this._text.text=(i.prefix||"")+e+(i.suffix||"");var r=this._text.getBBox(),n=new l.PathBuilder,s=(0,o.maxv)(i.minWidth||0,r.width+8);n.rect(0,0,s,r.height+4),this._back.setPath(n.end()),this._text.trans(s/2,2)}},e}(u.RcElement),O=function(t){function e(i){var r=t.call(this,i,"rct-axis-scrollbar")||this;return r._len=0,r._page=0,r._pos=0,r.add(r._trackView=new _.RectElement(i,e.TRACK_CLASS)),r.add(r._thumbView=new _.RectElement(i,e.THUMB_CLASS)),r}return i(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,r=t.end-t.start;this._len=(0,o.maxv)(0,i),this._page=(0,o.minv)(r,i),this._pos=(0,o.minv)(t.min+i-r,(0,o.maxv)(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=(0,o.maxv)(0,(0,o.minv)(t,i)))*(e.max-e.min-(e.end-e.start))/i+e.min},e.prototype._doMeasure=function(t,e,i,r,n){return this.setStyleOrClass(e._style),(this._vertical=!e.axis._isHorz)?{width:e.getThickness()+e.getGap()+e.getGapFar(),height:r}:{width:i,height:e.getThickness()+e.getGap()+e.getGapFar()}},e.prototype._doLayout=function(t){var e=this.model,i=e.axis._zoom,r=this._szThumb=(0,o.pickNum)(e.getMinThumbSize(),32),n=this._len,s=0===this._len,a=this._page,l=s?0:this._pos-i.min,u=e.getGap(),c=u+e.getGapFar(),p=this.width,h=this.height;if(this._vertical){p-=c,this._trackView.setBounds(u,0,p,h),h-=r;var f=(s||a===n?h:h*a/n)+r;this._reversed,this._thumbView.setBounds(u+1,s?0:this.height-h*l/n-f,p-2,f)}else{h-=u+e.getGapFar(),this._trackView.setBounds(0,u,p,h),p-=r;var d=(s||a===n?p:p*a/n)+r;this._reversed,this._thumbView.setBounds(s?0:p*l/n,u+1,d,h-2)}},e.CLASS_NAME="rct-axis-scrollbar",e.TRACK_CLASS="rct-axis-scrollbar-track",e.THUMB_CLASS="rct-axis-scrollbar-thumb",e}(g.ChartElement);e.AxisScrollView=O,e.axis_label_reg=/\${label}.*?/g;var C=function(t){function r(e){var i=t.call(this,e,r.AXIS_CLASS)||this;return i._simpleMode=!1,i._markViews=[],i.add(i._lineView=new d.LineElement(e,r.LINE_CLASS)),i.add(i._titleView=new w(e)),i.add(i._markContainer=new u.RcElement(e,"rct-axis-ticks")),i.add(i._labelContainer=new u.RcElement(e,"rct-axis-labels")),i.add(i._unitView=new x(e)),i._labelViews=new a.ElementPool(i._labelContainer,P,"rct-axis-label"),i}return i(r,t),r.prototype.$_checkScrollView=function(t,e,i,r,n){if(this.model._isX){if(e.visible&&!this.model._isBetween)return this._scrollView||this.add(this._scrollView=new O(t)),this._scrollView.setVis(!0),this._scrollView.measure(t,e,r,n,1)[i];this._scrollView&&this._scrollView.setVis(!1)}return 0},r.prototype.checkHeight=function(t,e,i){var r=this.model,n=r.title,s=r.unitLabel,a=(0,o.maxv)(0,r.tick._getLength())+(0,o.maxv)(0,r.tick._getGap()),l=0;if(this.$_prepareLabels(r,e)){var u=this.$_measureLabelsHorz(r,e,!0);r.label._inside||(a+=u)}return this._unitView.setVis(s.visible)&&(l=Math.max(l,this._unitView.measure(t,s,e,i,1).height)),a+=l,this._titleView.setVis(n.visible)&&(a+=this._titleView.measure(t,n,e,i,1).height,a+=n.options.gap),a+=this.$_checkScrollView(t,r.scrollBar,"height",e,i)},r.prototype.checkWidth=function(t,e,i){var r=this.model,n=r.title,s=r.unitLabel,a=(0,o.maxv)(0,r.tick._getLength())+(0,o.maxv)(0,r.tick._getGap()),l=0;if(this.$_prepareLabels(r,e)){var u=this.$_measureLabelsVert(r,i,!0,0);r.label._inside||(a+=u)}return this._unitView.setVis(s.visible)&&(l=Math.max(l,this._unitView.measure(t,s,e,i,1).width)),a+=l,(this._titleView.visible=n.visible)&&(a+=this._titleView.measure(t,n,e,i,1).width,a+=n.options.gap),a+=this.$_checkScrollView(t,r.scrollBar,"width",e,i)},r.prototype.prepareGuides=function(t,e,i,r,n){var o=this;[r,n].forEach((function(r,n){var s=o.model.guides.filter((function(t){return t.options.front==(1===n)&&t.canConstainedTo(e,i)}));r.setAll(t,s,!1)}))},r.prototype.showCrosshair=function(t,e){var i,r=this.model,n=this._crosshairView;n||this.add(n=this._crosshairView=new A(this.doc)),n.setVis(!0),n.setText(r.crosshair,e);var s=n.getBBox();r._isHorz?n.trans(t-s.width/2,r.tick._getLength()):(i="opposite"===r._runPos?(0,o.minv)(0,this.width-s.width):(0,o.maxv)(0,this.width-r.tick._getLength()-s.width),n.trans(i,t-s.height/2))},r.prototype.setMargins=function(t,e,i,r){},r.prototype.hideCrosshiar=function(){this._crosshairView&&this._crosshairView.setVis(!1)},r.prototype.scroll=function(t){},r.prototype.prepare=function(t){this._model=t,this._chartEmpty=t.chart.isEmpty(!0)},r.prototype.checkExtents=function(t){var e=this,i=this._prevModel,r=this.model;if((!i||i===r)&&t){var n=this._prevMin,o=this._prevMax,s=this._prevMin=r.axisMin(),a=this._prevMax=r.axisMax();if(!isNaN(o)&&a!==o||!isNaN(n)&&s!==n){if(r._isX&&r._zooming)return{axis:r,from:this._prevMin,to:a};r.options.animatable&&new m.AxisAnimation(this,n,o,(function(){e.invalidate()}))}}this._prevModel=r},r.prototype.clean=function(){this._prevMax=this._prevMin=NaN,this._prevModel=null},r.prototype._doMeasure=function(t,e,i,n,o){var s,a=e.line,l=e.tick,u=e._isHorz,c=e._isBetween,p=this._titleView,h=this._unitView,f=0,_=0;return this._reversed=e.options.reversed,(this._lineView.visible=a.visible)?(this._lineView.setStyleOrClass(a._style),c&&(this._lineView2?this._lineView2.setVis(!0):this.insertChild(this._lineView2=new d.LineElement(t,r.LINE_CLASS),this._lineView),this._lineView.setStyleOrClass(a._style))):this._lineView2&&this._lineView2.setVis(!1),this._markLen=l._getLength(),this._tickGap=l._getGap(),e.label._inside||(f+=this._markLen,f+=this._tickGap,c&&(f*=2)),this.$_prepareTickMarks(t,e)&&this._markViews.forEach((function(r){return r.measure(t,e.tick,i,n,o)})),this.$_prepareLabels(e,u?i:n)&&(_=u?this.$_measureLabelsHorz(e,i):this.$_measureLabelsVert(e,n,!1,o),e.label._inside&&(_=0)),this._labelSize=_,h.setVis(e.unitLabel.visible)&&(_=u?Math.max(_,this._unitView.measure(t,e.unitLabel,n,n,o).height):Math.max(_,this._unitView.measure(t,e.unitLabel,n,n,o).width)),f+=_,this._simpleMode?(p.setVis(!1),h.setVis(!1)):(p.visible&&(f+=u?p.mh:p.mw,f+=+e.title.options.gap||0),(null===(s=this._scrollView)||void 0===s?void 0:s.visible)&&(f+=u?this._scrollView.mh:this._scrollView.mw)),{width:u?i:f,height:u?f:n}},r.prototype._doLayout=function(){var t=this.model,e=t._isHorz,i=t._isOpposite,r=t._isBetween,n=t.label._inside,o=t._ticks,a=t._markPoints,l=this._labelViews,u=this._unitView,c=this._markLen,p=this._tickGap,h=this.width,f=this.height;this._lineView.visible&&(e?this._lineView.setHLine(i?f:0,0,h):this._lineView.setVLine(i?0:h,0,f),this._lineView2&&(e?this._lineView2.setHLine(f,0,h):this._lineView2.setVLine(0,0,f))),this._markContainer.visible&&(e?this._markViews.forEach((function(e,r){e.resize(1,c),e.layout().trans(t.prev(a[r]),i?n?f:f-c:n?-c:0)})):this._markViews.forEach((function(e,r){e.resize(c,1),e.layout().trans(i?-c:n?h:h-c,f-t.prev(a[r]))})));var d=c+p;if(this._labelContainer.visible&&l.count>0&&(l.count>o.length?l.prepare(o.length):l.count<o.length&&s.Utils.warn("labelViews.count < ticks.length",l.count,o.length),e?this.$_layoutLabelsHorz(l,o,n,r,i,h,f,d):this.$_layoutLabelsVert(l,o,n,r,i,h,f,d)),u.visible&&(e?this.$_layoutUnitHorz(u,l,i,h,f,d):this.$_layoutUnitVert(u,l,i,h,f,d)),!this._simpleMode){var _=t.title.options,y=this._titleView,g=this._scrollView,v=this._labelSize,m=0,b=0;if(y.visible){var w=+_.offset||0,x=+_.gap||0;if(y.resizeByMeasured().layout(e),e){if(b+=i?0:(n?0:d+v)+x,t.options.reversed)switch(_.align){case"start":m=h-y.width/2-w;break;case"end":m=y.width/2+w;break;default:m=h/2-w}else switch(_.align){case"start":m=y.width/2+w;break;case"end":m=h-y.width/2-w;break;default:m=h/2+w}y.trans(m,b),b+=y.height}else{var S=0===y._angle?y.width:y.height;if(m=i?n?x+S/2:d+v+x+S/2:n?S/2:h-d-v-x-S/2,this._reversed)if(0===y._angle)switch(_.align){case"start":b=0+w;break;case"end":b=f-y.height-w;break;default:b=(f-y.height)/2+w}else switch(_.align){case"start":b=y.width/2-y.height/2+w;break;case"end":b=f-y.width/2-y.height/2-w;break;default:b=(f-y.height)/2+w}else if(0===y._angle)switch(_.align){case"start":b=f-y.height-w;break;case"end":b=0+w;break;default:b=(f-y.height)/2-w}else switch(_.align){case"start":b=f-y.width/2-y.height/2-w;break;case"end":b=y.width/2-y.height/2+w;break;default:b=(f-y.height)/2-w}y.trans(m,b)}}else b+=i?0:d+v;(null==g?void 0:g.visible)&&(e?(g.trans(0,b).resize(this.width,g.mh),g.setScroll(t._zoom,this._reversed)):(g.trans(0,0).resize(g.mw,this.height),g.setScroll(t._zoom,this._reversed)),g.layout())}},r.prototype.$_prepareTickMarks=function(t,e){var i=this._markContainer;if(i.visible=e.tick.visible){for(var r=e._markPoints.length,n=this._markViews;n.length<r;){var o=new S(t);i.add(o),n.push(o)}for(;n.length>r;)n.pop().remove();return!0}},r.prototype._prepareLabel=function(t,i,r,n,o){if(o||t.value!==i.value){var s=r.getLabelText(i,n),a=i.label,l=r.getLabelStyle(i,n);if(t.value=i.value,null!=s)a&&s.match(e.axis_label_reg)?t.setLabel(r,l,i,s.replace(e.axis_label_reg,a),1e3,1e3):(r.prepareRich(s),r._paramTick=i,t.setModel(this.doc,r,null,l),r.buildSvg(t._text,t._outline,NaN,NaN,r,r._domain));else t.setLabel(r,l,i,a,1e3,1e3);t.applyBackgroundCallback(r,i),t.layout("center")}},r.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},r.prototype.$_getRows=function(t){return 2},r.prototype.$_getStep=function(t){return 2},r.prototype.$_checkOverlappedHorz2=function(t,e,i,r,n,s,a,l){for(var u,c=t.label,p=(0,o.maxv)(0,(0,o.minv)(r-1,c.options.startStep||0)),h=t._ticks,d=h.length,_=(r=(0,o.maxv)(1,r))*(n=(0,o.minv)((0,o.maxv)(1,n),h.length)),y=s||0,g=(0,o.absv)(y)*f.DEG_RAD,v=g<35*f.DEG_RAD,m=!1,b=0,w=0;w<n;w++){for(var x=w*r+p;x<d;x+=_){for(var S=0,P=x;P<x+_&&P<d;P++)S+=t.getLabelLength(i,h[P].value);if(x+_<d){(u=e.pull(b++)).rotation=y,u.row=w,u.index=x,this._prepareLabel(u,h[x],c,d,l),u.setVis(!0);var A=S;if(0===y&&u.getBBox().width>=A){m=!0;break}if(v&&u.getBBox().width*(0,o.cos)(g)>=A){m=!0;break}if(0!==y&&u.getBBox().height>=A){m=!0;break}}}if(m)return!0;var O=x-_;0<=O&&O<d&&((u=e.pull(b++)).row=w,u.rotation=y,u.index=O,this._prepareLabel(u,h[O],c,d,l),u.setVis(!0))}!a&&e.freeFrom(b)},r.prototype.$_applyStep=function(t,e,i){var r=t.label,n=(0,o.maxv)(0,(0,o.minv)(i-1,r.options.startStep||0));e.forEach((function(t){return t.index=-1}));for(var s=n;s<e.length;s+=i)e[s].index=s;return e.forEach((function(t){return t.setVis(t.index>=0)})),e.filter((function(t){return t.visible}))},r.prototype.$_measureLabelsHorz=function(t,e,i){var r=this;void 0===i&&(i=!1);var n,s=t.options.reversed,a=t.label,l=a.options,u=+l.step|0,c=+l.rows|0,p=+l.rotation%360,h=this.$_checkOverlappedHorz2(t,this._labelViews,e,u,c,p,!1,i),d=this._labelViews._internalItems();if(this._labelRowPts=[0],h)if("none"===l.autoArrange)this._labelViews.prepare(t._ticks.length,(function(e,n,o){e.rotation=p,e.row=0,e.index=n,r._prepareLabel(e,t._ticks[n],a,o,i),e.setVis(!0)})),d=this.$_applyStep(t,d,u||1);else{switch(u=c=0,a.options.autoArrange){case"rows":c=this.$_getRows(d);break;case"step":u=this.$_getStep(d)}if(u>1)for(;this.$_checkOverlappedHorz2(t,this._labelViews,e,u,1,0,!1,i);)u++;else if(c>1){for(;t._ticks.length>c&&(d.forEach((function(t,e){t.row=e%c,t.index=e})),this.$_checkOverlappedHorz2(t,this._labelViews,e,1,c,0,!1,i));)c++;this._labelRowPts=[]}else if((isNaN(p)||Math.abs(Math.tan(p*f.DEG_RAD))<1)&&(p=-45),this.$_checkOverlappedHorz2(t,this._labelViews,e,u,c,p,!1,i))for(u=2;;){if(!this.$_checkOverlappedHorz2(t,this._labelViews,e,u,c,p,!1,i)){this.$_checkOverlappedHorz2(t,this._labelViews,e,u,c,0,!0,i)&&d.forEach((function(t,e){t.rotation=p}));break}u++}}else;if(d.length>0){if(c>1){for(var _=!isNaN(p)&&0!=p,y=this._labelRowPts,g=0;g<c;g++)y.push(0);d.forEach((function(t){y[t.row]=(0,o.maxv)(y[t.row],_?t.rotatedHeight():t.getBBox().height)})),y.unshift(0);for(g=2;g<y.length;g++)y[g]+=y[g-1];return y[y.length-1]}if(isNaN(p)||0==p){n=d[0].getBBox().height;for(g=1;g<d.length;g++)n=(0,o.maxv)(n,d[g].getBBox().height);if(d.length>1){var v=t._ticks,m=s?l.lastOverflow:l.firstOverflow;if("hidden"===m){var b=(S=d[0]).rotatedWidth(),w=v[S.index].pos-b/2,x=0;for(g=1;g<d.length;g++)x=(0,o.maxv)(x,d[g].getBBox().height);(w+b>d[1].tx||S.elementToSvg(0,0).x<0)&&S.getBBox().height>x?(n=x,S.hidden=!0):S.hidden=!1}if("hidden"===(m=s?l.firstOverflow:l.lastOverflow)){b=(S=d[d.length-1]).rotatedWidth();var S,P=d[d.length-2],A=v[S.index-1].pos+P.getBBox().width/2;for(w=v[S.index].pos-b/2,x=0,g=0;g<d.length-1;g++)x=(0,o.maxv)(x,d[g].getBBox().height);(w<=A||S.elementToSvg(S.getBBox().width,0).x>this.control.getBounds().width)&&S.getBBox().height>x?(n=x,S.hidden=!0):S.hidden=!1}}}else{n=d[0].rotatedHeight();for(var g=1;g<d.length;g++)n=(0,o.maxv)(n,d[g].rotatedHeight())}return n}return 0},r.prototype.$_checkOverlappedVert2=function(t,e,i,r,n){for(var s,a=t.label,l=t._ticks,u=l.length,c=(0,o.maxv)(1,r),p=a.options.startStep||0,h=0;p<u;p+=c){for(var f=0,d=p;d<p+c&&d<u;d++)f+=t.getLabelLength(i,l[d].value);if(p+c<u&&((s=e.pull(h++)).rotation=0,s.index=p,this._prepareLabel(s,l[p],a,u,n),s.setVis(!0),s._text.getBBox().height>=f))return!0}var _=p-c;0<=_&&_<u&&((s=e.pull(h++)).rotation=0,s.index=_,this._prepareLabel(s,l[_],a,u,n),s.setVis(!0)),e.freeFrom(h)},r.prototype.$_measureLabelsVert=function(t,e,i,r){var n=this;if(void 0===i&&(i=!1),void 0===r&&(r=0),r>1&&t instanceof b.ContinuousAxis)return this._prevWidth;var s=t.label,a=(0,o.maxv)(1,+s.options.step|0),l=this.$_checkOverlappedVert2(t,this._labelViews,e,a,i),u=this._labelViews._internalItems();if(l)if("none"===s.options.autoArrange)this._labelViews.prepare(t._ticks.length,(function(e,r,o){e.rotation=0,e.index=r,n._prepareLabel(e,t._ticks[r],s,o,i),e.setVis(!0)})),u=this.$_applyStep(t,u,a||1);else for(;this.$_checkOverlappedVert2(t,this._labelViews,e,++a,i););else;if(this._labelViews.freeHiddens(),(u=this._labelViews._internalItems()).length>0){var c=t._isOpposite?"left":t._isBetween?"center":"right",p=this._labelContainer.textAlign()||c,h=void 0;u[0].setContrast(null).layout(p),h=u[0].getBBox().width;for(var f=1;f<u.length;f++)u[f].setContrast(null).layout(p),h=(0,o.maxv)(h,u[f].getBBox().width);return this._prevWidth=h}return 0},r.prototype.$_layoutLabelsHorz=function(t,e,i,r,n,s,a,l){var u,c,p,h=this.model,d=h.label,_=h.options.reversed,y=this._labelContainer.textAlign()||"center",g=this._labelRowPts,v=t.get(0).rotation,m=v*f.DEG_RAD,b=+h.label.options.rows|0,w=v<-15&&v>=-90||v>15&&v<=90,x=t.count;if(t.freeHiddens(),t.forEach((function(t,r){var s=e[t.index];t.setVis(!!s)&&(t.setContrast(null).layout(y),u=t.getBBox(),c=h.prev(s.pos),p=i?n?a+l+g[t.row]:-l-u.height-g[t.row]:n?a-l-u.height-g[t.row]:l+g[t.row],v<-15&&v>=-90?i?n?(p+=(0,o.sin)(m)*u.height/2,t.setRotation(0,u.height/2,-v)):(p-=(0,o.sin)(m)*u.height/2,t.setRotation(0,u.height/2,v)):n?(c-=u.width,p-=(0,o.sin)(m)*u.height/2,t.setRotation(u.width,u.height/2,-v)):(c-=u.width,p+=(0,o.sin)(m)*u.height/2,t.setRotation(u.width,u.height/2,v)):v>15&&v<=90?i?n?(c+=u.width,p-=(0,o.sin)(m)*u.height/2,t.setRotation(u.width,u.height/2,-v)):(c-=u.width,p+=(0,o.sin)(m)*u.height/2,t.setRotation(u.width,u.height/2,v)):n?(p+=(0,o.sin)(m)*u.height/2,t.setRotation(0,u.height/2,-v)):(p-=(0,o.sin)(m)*u.height/2,t.setRotation(0,u.height/2,v)):(c-=u.width/2,t.setRotation(u.width/2,0,n?-v:v)),t.trans(c,p))})),!w&&b<2&&x>1){var S=t.get(_?x-1:0);S&&S.visible&&S.setVis(!S.hidden)&&function(t,e,i){var r,n=d.options,o=+n.overflowGap||2,s=!0,a=e.rotatedWidth(),l=_?n.lastOverflow:n.firstOverflow,u=e.tx;u+a>=i.tx?"pull"===l?u=i?i.tx-a-o:0:s="hidden"!==l:(r=e.elementToSvg(0,0).x)<0&&("pull"===l?u=Math.min(i.tx-o,r+4):s="hidden"!==l),s?e.transX(u):e.setVis(!1)}(0,S,t.get(_?x-2:1)),(S=t.get(_?0:x-1))&&S.visible&&S.setVis(!S.hidden)&&function(t,e,i){var r,n,o=d.options,a=+o.overflowGap||2,l=i.tx+i.rotatedWidth(),u=!0,c=e.tx,p=e.rotatedWidth(),h=_?o.firstOverflow:o.lastOverflow;c<=l?"pull"===h?c=Math.max(l+a,s-p):u="hidden"!==h:(r=e.elementToSvg(e.getBBox().width,0).x)>(n=t.control.getBounds().width)&&("pull"===h?c=Math.max(l+a,c-(r-n+4)):u="hidden"!==h),u?e.transX(c):e.setVis(!1)}(this,S,t.get(_?1:x-2))}},r.prototype.$_layoutLabelsVert=function(t,e,i,r,n,o,s,a){var l,u=this.model,c=u instanceof h.CategoryAxis&&u.label.options.fillToCategory,p=n?i?"right":"left":r?"center":i?"left":"right",f=c?u.label.options.verticalAlign:"middle",d=c?u.label.options.align:p,_=this._titleView,y=_.visible?_.rotatedWidth()+(null===(l=_.model)||void 0===l?void 0:l.options.gap):0,g=this._labelSize,v=u.tick._getGap();var m=this._reversed,b=m?Number.MIN_SAFE_INTEGER:Number.MAX_SAFE_INTEGER;t.forEach((function(t,l){var p=e[t.index];if(t.setVis(!!p)){var h=t.getBBox(),w=function(t,e){if(i)if(n)switch(t){case"center":return(g-e)/2-g-v-a;case"left":return-g-v-a;default:return-e-v-a}else switch(t){case"right":return o+a+v+g-e;case"center":return!_.visible&&r?(o-e)/2:o+a+v+(g-e)/2;default:return o+a+v}else if(n)switch(t){case"center":return a+(o-y-e-a+v)/2;case"right":return o-e-y+v;default:return a}else switch(t){case"left":return y-v;case"center":return!_.visible&&r?(o-e)/2:y+(o-y-e-a-v)/2;default:return o-a-e}}(d,h.width),x=s-u.prev(p.pos)-h.height/2;if(t.trans(w,x),c){var S=u._weights.reduce((function(t,e){return t+e}))/u._weights[t.index],P=s/S,A="top"===f?(P-h.height)/-2:"bottom"===f?(P-h.height)/2:0;t.shiftY(A),t.resizeBackByWeight(u,r,n,o,s,a,v,S,A,y)}else!m&&t.ty+h.height>b+1||m&&t.ty<b-1?t.setVis(!1):b=m?t.ty+h.height:t.ty}}))},r.prototype.$_layoutUnitHorz=function(t,e,i,r,n,o){var s,a,l=this.model,u=l.options.reversed,c="end"===l.unitLabel.options.position,p=t.getBBox(),h=e.first,f=e.last,d=l.unitLabel.options.gap||0;u?c?(s=f.getBBox(),a=Math.min(f.tx-p.width-d,0)):(s=h.getBBox(),a=Math.max(h.tx+s.width+d,r-p.width)):c?(s=f.getBBox(),a=Math.max(f.tx+s.width+d,r-p.width)):(s=h.getBBox(),a=Math.min(h.tx-p.width-d,0)),t.layout().trans(a,o)},r.prototype.$_layoutUnitVert=function(t,e,i,r,n,o){var s,a=this.model,l=a.options.reversed,u="end"===a.unitLabel.options.position,c=t.getBBox(),p=e.first,h=e.last,f=a.unitLabel.options.gap||0,d=i?o:r-c.width-o;l?u?(h.getBBox(),s=Math.max(h.ty+c.height+f,n)):s=Math.min(p.ty-c.height-f,0):u?s=Math.min(h.ty-c.height-f,0):(p.getBBox(),s=Math.max(p.ty+c.height+f,n)),t.layout().trans(d,s)},r.AXIS_CLASS="rct-axis",r.LINE_CLASS="rct-axis-line",r.TICK_CLASS="rct-axis-tick",r}(g.ChartElement);e.AxisView=C}(PW);var SU={},PU={},AU={},OU=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(AU,"__esModule",{value:!0}),AU.ButtonElement=void 0;var CU=iM,EU=DW,VU=CB,LU=lj,TU=function(t){function e(i,r,n){var o=t.call(this,i,e.STYLE)||this;return o.add(o._back=new VU.RectElement(i,e.BACK_STYLE)),o.add(o._textView=new LU.TextElement(i)),n&&o.dom.classList.add(n),r&&o.setText(r),o}return OU(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 EU.Sides).applyPadding(e),r=this._textView.getBBox();this._back.rect={x:0,y:0,width:r.width+i.left+i.right,height:r.height+i.top+i.bottom,rx:(0,CU.pickNum)(parseFloat(e.rx),0),ry:(0,CU.pickNum)(parseFloat(e.ry),0)},this._textView.trans(r.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}(hj.RcElement);AU.ButtonElement=TU;var kU={},NU=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),MU=t&&t.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s},jU=t&&t.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(kU,"__esModule",{value:!0}),kU.ArcPolyElement=kU.ArcElement=kU.CircumElement=kU.CircleElement=void 0;var RU=hj,BU=EB,DU=function(t){function e(e,i){return t.call(this,e,i,"circle")||this}return NU(e,t),e.prototype.setCircle=function(t,e,i){this.setAttrs({cx:t,cy:e,r:i})},e}(RU.RcElement);kU.CircleElement=DU;var IU=function(t){function e(e,i){var r=t.call(this,e,i)||this;return r.setFill("none"),r}return NU(e,t),e.prototype.resetStyles=function(e){var i=t.prototype.resetStyles.call(this,e);return this.setFill("none"),i},e}(DU);kU.CircumElement=IU;var GU=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return NU(e,t),e.prototype.setArc=function(t,e,i,r,n,o){this.setPath(BU.SvgShapes.arc(t,e,i,i,r,close?r+n:r-n,o))},e}(RU.PathElement);kU.ArcElement=GU;var FU=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return NU(e,t),e.prototype.setPolyline=function(t){this.setPath(BU.SvgShapes.polygon.apply(BU.SvgShapes,jU([],MU(t),!1)))},e}(GU);kU.ArcPolyElement=FU;var zU={},$U=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(zU,"__esModule",{value:!0}),zU.SectorElement=void 0;var HU=EB,WU=function(t){function e(e,i,r){var n=t.call(this,e,i)||this;return n.cx=0,n.cy=0,n.rx=0,n.ry=0,n.innerRadius=0,n.start=0,n.angle=0,n.clockwise=!0,n.rate=1,r&&n._assignShape(r,!1),n.setAttr("role","img"),n}return $U(e,t),e.create=function(t,i,r,n,o,s,a,l,u){return void 0===u&&(u=!0),new e(t,i,{cx:r,cy:n,rx:o,ry:s,innerRadius:0,start:a,angle:l,clockwise:u})},e.createInner=function(t,i,r,n,o,s,a,l,u,c){return void 0===i&&(i=""),void 0===c&&(c=!0),new e(t,i,{cx:r,cy:n,rx:o,ry:s,innerRadius:a,start:l,angle:u,clockwise:c})},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 HU.SvgShapes.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 HU.SvgShapes.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}(hj.PathElement);zU.SectorElement=WU;var UU={};!function(e){var i=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0}),e.AnnotationView=e.annotation_view_types=void 0;var r=hj,n=BW;e.annotation_view_types={};var o=function(t){function n(e,i){var o=t.call(this,e,n.CLASS_NAME+" "+i,"rct-annotation-background")||this;return o._transform=new r.RcElement(e,null,"g"),o.add(o._transform),o._transform.add(o._background),o}return i(n,t),n.register=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];t.forEach((function(t){e.annotation_view_types[t[0].type]=t[1]}))},n.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)},n.prototype.addToTransform=function(t){this._transform.add(t)},n.prototype._layoutView=function(t,e,i,r,n,o){this.resizeByMeasured(),this.layout(this._posByAnchor(e)||this.model.getPosition(this.chart().isInverted(),i,r,n,o,this.width,this.height))},n.prototype._posByAnchor=function(t){var e=this.model,i=e._anchorObj;if(i){var r=t.getAnnotationAnchor(i);if(r){var n=e.getOffset(this.width,this.height),o=r.width,s=r.height,a=r.tx,l=r.ty;switch(this.options.align){case"left":a-=this.width+n.x;break;case"right":a+=o+n.x;break;default:a+=(o-this.width)/2+n.x}switch(this.options.verticalAlign){case"middle":l+=(s-this.height)/2+n.y;break;case"bottom":l+=s+n.y;break;default:l-=this.height+n.y}return{x:a,y:l}}}},n.prototype.resetClip=function(t,e,i){this._clip||this.setClip(this._clip=t.clipBounds()),this._clip.setBounds(0,0,e,i)},n.prototype.remove=function(){var e;return this._clip&&(null===(e=this.control)||void 0===e||e.removeDef(this._clip.dom)),t.prototype.remove.call(this)},n.prototype._updateTransform=function(){this.model.needClip()?this._transform.dom.setAttribute("transform",this.getTransform()):t.prototype._updateTransform.call(this)},n.prototype._marginable=function(){return!1},n.prototype._resetBackBounds=function(){return!1},n.prototype._setBackgroundStyle=function(t){t.setStyleOrClass(this.model.options.backgroundStyle)},n.prototype._doLayout=function(t){var e=this.model.options.rotation;this.trans(t.x,t.y),this._background.resize(this.width,this.height),isNaN(e)||0===e?this.rotation=0:this.setRotation(this.width/2,this.height/2,e)},n.CLASS_NAME="rct-annotation",n}(n.BoundableElement);e.AnnotationView=o}(UU);var YU={};!function(e){var i=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),r=t&&t.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s},n=t&&t.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.GaugeGroupView=e.ScaleView=e.ScaleLabelView=e.ValueGaugeView=e.GaugeView=e.gauge_view_types=void 0;var o=iM,s=fj,a=AW,l=kM,u=Sj,c=hj,p=EG,h=CB,f=BW,d=oU;e.gauge_view_types={};var _=function(t){function r(e,i){var n=t.call(this,e,i)||this;return n.dom.classList.add(n._defaultCalss()),n.add(n._paneElement=new h.RectElement(e,r.PANE_CLASS)),n.add(n._contentContainer=new c.LayerElement(e,null)),n._doInitContents(e,n._contentContainer),n}return i(r,t),r.register=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];t.forEach((function(t){e.gauge_view_types[t[0].type]=t[1]}))},r.prototype._defaultCalss=function(){return r.GAUGE_CLASS},r.prototype.clicked=function(t){},r.prototype.prepareGauge=function(t,e){this._prepareGauge(t,e)},r.prototype.getPosition=function(t,e){var i=this.model,r=i.getLeft(t),n=i.getTop(e);return isNaN(r)&&(r=i.getRight(t)-this.width,isNaN(r)&&(r=(t-this.width)/2)),isNaN(n)&&(n=i.getBottom(e)-this.height,isNaN(n)&&(n=(e-this.height)/2)),{x:r,y:n}},r.prototype.isEmptyView=function(){return!1},r.prototype._prepareStyleOrClass=function(t){this._paneElement.setStyleOrClass(t.options.backgroundStyle)},r.prototype._doMeasure=function(t,e,i,r,n){return e.getSize(i,r)},r.prototype._doLayout=function(){var t=this.width,e=this.height;this._paneElement.resizeRect(t,e);var i=(0,o.assignObj)(s.Dom.getPadding(this.dom));t-=i.left+i.right,e-=i.top+i.bottom,this._renderGauge(t,e),this._contentContainer.trans(i.left,i.top)},r.prototype._getGroupView=function(){for(var t=this.parent;t;){if(t instanceof b)return t;t=t.parent}},r.GAUGE_CLASS="rct-gauge",r.PANE_CLASS="rct-gauge-pane",r}(f.ContentView);e.GaugeView=_;var y=function(t){function e(e){var i=t.call(this)||this;return i.view=e,i}return i(e,t),e.prototype._doUpdate=function(t){return this.view._setValueRate(t),!0},e}(u.RcAnimation),g=function(t){function e(){var e=t.apply(this,n([],r(arguments),!1))||this;return e.valueOf=function(t,e,i){var r=t.getParam(e);return(0,o.isNumber)(r)?l.NumberFormatter.getFormatter(i||t.label.numberFormat).toStr(r):r},e._valueRate=NaN,e}return i(e,t),e.prototype._setValueRate=function(t){isNaN(t)&&isNaN(this._valueRate)||t===this._valueRate||(this._valueRate=t,isNaN(t)?this.invalidate():this._doValueRateChanged(t))},e.prototype._prepareStyleOrClass=function(e){t.prototype._prepareStyleOrClass.call(this,e),this._backgroundView().setStyleOrClass(e._style)},e.prototype._doLayout=function(){this.stopAni(),t.prototype._doLayout.call(this),this.$_checkValueAnimation()},e.prototype.$_checkValueAnimation=function(){var t=this.model;this._animatable&&t.options.animatable&&t.options.value!==t._prevValue&&(this._ani=new y(this).start((function(){t._runValue=NaN,t._prevValue=t.options.value})))},e.prototype._doValueRateChanged=function(t){var e=this.model;e._setValueRate(t),this._renderValue(),console.log("change",e.getValue(),t)},e}(_);e.ValueGaugeView=g;var v=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(d.ChartTextElement);e.ScaleLabelView=v;var m=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 c.LayerElement(e,"rct-gauge-scale-ticks")),i._ticks=new a.ElementPool(i._tickContainer,p.LineElement),i.add(i._labelContainer=new c.LayerElement(e,"rct-gauge-scale-tick-labels")),i._labels=new a.ElementPool(i._labelContainer,v),i}return i(e,t),e}(f.ChartElement);e.ScaleView=m;var b=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype._defaultCalss=function(){return e.GAUGE_GROUP_CLASS},e.prototype._doInitContents=function(t,e){e.add(this._gaugeContainer=new c.LayerElement(t,"rct-gauge-group-container")),this._gaugeViews=this._createPool(this._gaugeContainer)},e.prototype._setChartOptions=function(e,i,r){t.prototype._setChartOptions.call(this,e,i,r),this._gaugeViews.forEach((function(t){return t._setChartOptions(e,i,r)}))},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,r){i.prepareGauge(t,e.getVisible(r))}))},e.GAUGE_GROUP_CLASS="rct-gauge-group",e}(_);e.GaugeGroupView=b}(YU);var XU={},qU={},ZU=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),KU=t&&t.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s},JU=t&&t.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(qU,"__esModule",{value:!0}),qU.PrevAnimation=qU.SpreadAnimation=qU.GrowAnimation=qU.PointAnimation=qU.RevealAnimation2=qU.RevealAnimation=qU.StyleAnimation=qU.SeriesAnimation=void 0;var QU=Sj,tY=hj,eY=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 nY(t,e)},t.grow=function(t,e){new sY(t,e)},t.spread=function(t,e){new aY(t,e)},t.fadeIn=function(t){new iY(t,{prop:"opacity",start:"0",end:"1"})},t}();qU.SeriesAnimation=eY;var iY=function(t){function e(e,i){return t.call(this,e,i)||this}return ZU(e,t),e.prototype._createAnimation=function(t,e){var i={},r={};return i[e.prop]=e.start,r[e.prop]=e.end,t.dom.animate([i,r],{duration:QU.RcAnimation.DURATION,fill:"none"})},e}(eY);qU.StyleAnimation=iY;var rY=function(t){function e(e,i){return t.call(this,e,i)||this}return ZU(e,t),e.clipRect=function(t,e){var i,r=e.view||t;if(t.model.needClip(!1))i=r.clipRect(.1*-t.width,.1*-t.height,1.2*t.width,1.2*t.height);else if(e.view)i=r.clipRect(0,0,t.width,t.height);else{var n=t.control;i=t.model.chart.isInverted()?r.clipRect(-n.width(),.1*-t.height,2*n.width(),1.2*t.height):r.clipRect(.1*-t.width,-n.height(),1.2*t.width,2*n.height())}return i},e.prototype._createAnimation=function(t,i){var r,n=e.clipRect(t,i);switch(i&&i.from){case"top":r=this.$_top(n,i);break;case"bottom":r=this.$_bottom(n,i);break;case"right":r=this.$_right(n,i);break;default:r=this.$_left(n,i)}return null==r||r.addEventListener("finish",(function(){n.dom.remove()})),r},e.prototype.$_aniOptions=function(t){return{duration:QU.RcAnimation.DURATION,fill:"none"}},e.prototype.$_left=function(t,e){return t.dom.firstElementChild.animate([{width:0},{width:""}],this.$_aniOptions(e))},e.prototype.$_right=function(t,e){return t.dom.firstElementChild.animate([{x:t.width},{x:""}],this.$_aniOptions(e))},e.prototype.$_top=function(t,e){return t.dom.firstElementChild.animate([{height:0},{height:""}],this.$_aniOptions(e))},e.prototype.$_bottom=function(t,e){return t.dom.firstElementChild.animate([{y:t.height},{y:""}],this.$_aniOptions(e))},e}(eY);qU.RevealAnimation=rY;var nY=function(t){function e(e,i){var r=t.call(this)||this;return r._series=e,r._cr=rY.clipRect(e,i),r._from=i.from,r.endHandler=function(){e._animationFinished(r),r._cr.dom.remove()},r.start(),e._animationStarted(r),r}return ZU(e,t),e.prototype._canUpdate=function(){return this._series.parent instanceof tY.RcElement},e.prototype._stop=function(e){t.prototype._stop.call(this,e),this._series=null},e.prototype._doUpdate=function(t){var e=this._cr.dom.firstElementChild;switch(this._from){case"top":e.setAttribute("height",this._cr.height*t);break;case"bottom":e.setAttribute("y",this._cr.height*(1-t));break;case"right":e.setAttribute("x",this._cr.width*(1-t));break;default:e.setAttribute("width",this._cr.width*t)}return!0},e}(QU.RcAnimation);qU.RevealAnimation2=nY;var oY=function(t){function e(e,i){var r=t.call(this)||this;return r._series=e,r.endHandler=i,r.start(),r}return ZU(e,t),e.prototype._canUpdate=function(){return this._series.parent instanceof tY.RcElement},e.prototype._stop=function(e){t.prototype._stop.call(this,e),this._series=null},e}(QU.RcAnimation);qU.PointAnimation=oY;var sY=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ZU(e,t),e.prototype._doUpdate=function(t){return this._series.setGrowRate(t),!0},e.prototype._doStop=function(){this._series.setGrowRate(NaN)},e}(oY);qU.GrowAnimation=sY;var aY=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ZU(e,t),e.prototype._doUpdate=function(t){return this._series.setPosRate(t),!0},e.prototype._doStop=function(){this._series.setPosRate(NaN)},e}(oY);qU.SpreadAnimation=aY;var lY=function(t){function e(){var e=t.apply(this,JU([],KU(arguments),!1))||this;return e.duration=500,e}return ZU(e,t),e.prototype._doUpdate=function(t){return this._series.setPrevRate(t),!0},e.prototype._doStop=function(){this._series.setPrevRate(NaN)},e}(oY);qU.PrevAnimation=lY,function(e){var i=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),r=t&&t.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s},n=t&&t.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.WidgetSeriesView=e.MarkerSeriesView=e.MarkerSeriesPointView=e.RangedSeriesView=e.BasedSeriesView=e.ClusterableSeriesView=e.RangeElement=e.Bar3DElement=e.BarElement=e.BoxPointElementEx=e.PointElementEx=e.BoxPointElement=e.PointElement=e.SeriesView=e.series_view_types=e.PointContainer=e.PointLabelLineContainer=e.PointLabelLineView=e.PointLabelContainer=e.PointLabelView=void 0;var o=rM,s=iM,a=AW,l=$F,u=Sj,c=hj,p=VW,h=wM,f=$W,d=CB,_=EB,y=OB,g=BB,v=BW,m=oU,b=qU,w=uj,x=function(t){function e(e,i,r,n){var o=t.call(this)||this;return o.duration=r?200:100,o._sv=e,o._focused=r,o._marker=i,r||(o._marker.setBoolData(L.DATA_UNFOCUS,!0),o._marker.saveStyles(),e.setHoverStyle(o._marker)),o.start(n),o}return i(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(L.DATA_UNFOCUS,!1),!this._focused&&this._marker.restoreStyles(),this._marker.setHoverRate(this._sv,this._focused,NaN),this._marker=null},e}(u.RcAnimation),S=function(t){function e(e){return t.call(this,e,"rct-point-label")||this}return i(e,t),e}(m.ChartTextElement);e.PointLabelView=S;var P=function(t){function e(e){var i=t.call(this,e,"rct-point-labels")||this;return i._labels=[new a.ElementPool(i,S),new a.ElementPool(i,S)],i._maps=[],i.ignorePointer(),i}return i(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=(0,s.maxv)(e,t.getBBox().width)})),e},e.prototype.prepareLabel=function(t,e,i,r,n,o){var s=n.getPointText(r,i,o.options.text);e.point=r,e.setModel(t,o,r.icon?o.getUrl(r.icon):null,n.getPointLabelStyle(r)),null!=s?(o.prepareRich(s),o.buildSvg(e._text,e._outline,NaN,NaN,o,o.getTextDomain(r))):e.setText(o.getText(o.getValue(r,i)))},e.prototype.prepare=function(t,e){var i=this,r=e.model,n=r.pointLabel;if(r.isLabelsVisible()){this.setVis(!0);var o=r.pointLabelCount(),s=this._labels,a=r._getLabeledPoints(),l=this._maps,u=n._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 c=s[u].get(a);c.stopAni().setVis(e.isPointLabelVisible(o))&&(i.prepareLabel(t,c,u,o,r,n),l[u][o.pid]=c)}})),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.$_checkIntersects=function(t){if(t.length>1)for(var e=t.length-1;e>0;e--){var i=t[e].inflateBBox(-1,-1),r=t[e-1].inflateBBox(-1,-1);if((0,p.intersectsRect)(i,r))return t}},e.prototype.dedupe=function(t,e,i){var r=0,n=t[r];if(i===g._PointLabelDedupeMode.LARGEST_FIRST)for(var o=1;o<t.length;o++){var s=t[o],a=n.inflateBBox(-1,-1),l=s.inflateBBox(-1,-1),u=Object.assign(a,{rotation:n.rotation}),c=Object.assign(l,{rotation:s.rotation});if((0,p.isColliding)(u,c)?(n.point.yValue<t[o].point.yValue?(e.get(n.point).setVis(!1),n.setVis(!1),t.splice(r,1),n=s,r=o):(e.get(s.point).setVis(!1),s.setVis(!1),t.splice(o,1)),--o):(n=s,r=o),o===t.length-1){var h=Object.assign(t[0].inflateBBox(-1,-1),{rotation:t[0].rotation}),f=Object.assign(n.inflateBBox(-1,-1),{rotation:n.rotation});(0,p.isColliding)(h,f)&&(e.get(n.point).setVis(!1),n.setVis(!1),t.splice(r,1),t[0].point.yValue<n.point.yValue?(e.get(t[0].point).setVis(!1),t[0].setVis(!1),t.splice(0,1)):(e.get(n.point).setVis(!1),n.setVis(!1),t.splice(r,1)))}}else for(o=1;o<t.length;o++){s=t[o],a=n.inflateBBox(-1,-1),l=s.inflateBBox(-1,-1),u=Object.assign(a,{rotation:n.rotation}),c=Object.assign(l,{rotation:s.rotation});if((0,p.isColliding)(u,c)?(e.get(s.point).setVis(!1),s.setVis(!1),t.splice(o,1),--o):(n=s,r=o),o===t.length-1){h=Object.assign(t[0].inflateBBox(-1,-1),{rotation:t[0].rotation}),f=Object.assign(n.inflateBBox(-1,-1),{rotation:n.rotation});(0,p.isColliding)(h,f)&&(e.get(n.point).setVis(!1),n.setVis(!1),t.splice(r,1))}}},e.prototype.arrangeVertical=function(t,e,i,r,n,o,s){var a=e.length;if(a<2)return 0;e.sort((function(t,e){return t.ty-e.ty}));for(var l=t.getBBox(),u=l.y+l.height/2,c=Number.MAX_SAFE_INTEGER,p=0,h=0;h<a;h++){var f=e[h].inflateBBox(0,-1),d=Math.abs(u-(f.y+f.height/2));d<c&&(c=d,p=h)}var _=function(t,i){0!==i&&e[t].shiftY(i)},y=function(t,i){var r=e[t].inflateBBox(0,-1),n=e[i].inflateBBox(0,-1);return r.y+r.height-n.y};for(h=0;h<p;h++){if((m=y(h,h+1))>0){_(h,-m);for(var v=h;v>0;v--){(b=y(v-1,v))>0&&_(v-1,-b)}}}for(h=a-1;h>=p&&h>0;h--){var m;if((m=y(h-1,h))>0){_(h,m);for(v=h;v<a-1;v++){var b;(b=y(v,v+1))>0&&_(v+1,b)}}}var w=this.control.chartView().bodyView().height;if(n){var x=function(t,i){for(var r=t;r<i;r++){var n=e[r].tbottom-e[r+1].ty;n>0&&_(r+1,n)}},S=function(t,i){for(var r=t;r>i;r--){var n=e[r].ty-e[r-1].tbottom;n<0&&_(r-1,n)}},P=e[0],A=e[a-1],O=e[p],C=P.ty,E=w-A.tbottom;for(h=0;h<a-1;h++){var V=e[h+1].ty-e[h].tbottom;h<p?C+=V:E+=V}if(P.ty<0)if(C>=0){P.transY(0),x(0,p-1),O.ty<e[p-1].tbottom&&S(p,0),C=0;for(h=0;h<p;h++)C+=e[h+1].ty-e[h].tbottom}else if(C+E>=0)P.transY(0),x(0,a-1),C=0;else{for(h=p;h>0;h--){var L=e[h].ty-e[h-1].tbottom;_(h-1,L)}C=P.ty}if(A.tbottom>w){var T=A.getBBox().height;if(E>0){A.transY(w-T),S(a-1,p+1),O.tbottom<e[p+1].ty&&x(p,a-1),E=0;for(h=p;h<a-1;h++)E+=e[h+1].ty-e[h].tbottom}else if(C+E>0)A.transY(w-T),S(a-1,0),E=0;else{if(C>=0){P.transY(0);for(h=1;h<a;h++)e[h].transY(e[h-1].tbottom)}else for(h=p;h<a-1;h++)e[h+1].transY(e[h].tbottom);E=w-A.tbottom}}if(P.ty<0&&E>0){var k=Math.min(P.ty+E,0);P.transY(k);for(h=1;h<a;h++)e[h-1].tbottom>e[h].ty&&e[h].transY(e[h-1].tbottom)}}return s===g._PointLabelOverflow.HIDDEN&&e.forEach((function(t,e){var r=t.ty+t.getBBox().height;(t.ty<0||r>w)&&(i.get(t.point).setVis(!1),t.setVis(!1))})),1},e}(c.LayerElement);e.PointLabelContainer=P;var A=function(t){function e(e){var i=t.call(this,e)||this;return i.add(i._line=new c.PathElement(e)),i}return i(e,t),e.prototype.setLine=function(t){this._line.setPath(t)},e}(f.GroupElement);e.PointLabelLineView=A;var O=function(t){function e(e){var i=t.call(this,e,"rct-point-label-lines")||this;return i._lines=new a.ElementPool(i,A),i}return i(e,t),e.prototype.prepare=function(t){var e=this._lines,i=t._visPoints,r=t.pointLabel,n=this._map={};r.visible?e.prepare(i.length).forEach((function(t,e){var r=i[e];t.visible=r.visible,n[r.pid]=t})):e.prepare(0)},e.prototype.get=function(t){return this._map[t.pid]},e}(f.GroupElement);e.PointLabelLineContainer=O;var C=function(t){function e(){var e=t.apply(this,n([],r(arguments),!1))||this;return e.inverted=!1,e}return i(e,t),e.prototype.invert=function(t,e){return t===this.inverted&&e===this._hSave||((this.inverted=t)?this.setAttr("transform","translate(0,".concat(e,") rotate(90) scale(-1,1)")):this.setAttr("transform",""),this._hSave=e),this.inverted},e}(c.LayerElement);e.PointContainer=C,e.series_view_types={};var E="rct-point-hover",V="rct-point-unhover",L=function(t){function o(e,i){var r=t.call(this,e,"rct-series "+i)||this;return r._simpleMode=!1,r._growRate=NaN,r._posRate=NaN,r._prevRate=NaN,r._animations=[],r._hoverAnis=[],r._hoverPts=[],r.add(r._pointContainer=new C(e,"rct-series-points")),r._labelContainer=new P(e),r}return i(o,t),o.register=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];t.forEach((function(t){e.series_view_types[t[0].type]=t[1]}))},o.isPointDom=function(t){for(;t instanceof SVGElement;){if(t.classList.contains(this.POINT_CLASS))return!0;t=t.parentElement}},o.prototype.depthEnabled=function(){return!1},o.prototype.clipInvertable=function(){return!0},o.prototype.getClipContainer=function(){return this._pointContainer},o.prototype.getClipContainer2=function(){return null},o.prototype.defaultAnimation=function(){return"reveal"},o.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))},o.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))},o.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))},o.prototype.isPointLabelVisible=function(t){return t.visible&&!t.isNull&&!t.isEmpty()&&this.model.isPointLabelVisible(t)},o.prototype._doViewRateChanged=function(t){},o.prototype._doPosRateChanged=function(t){},o.prototype._doPrevRateChanged=function(t){},o.prototype._animationStarted=function(t){this._animations.push(t),this._labelContainer&&this._labelContainer.setVis(!1)},o.prototype._animationFinished=function(t){var e=this._animations.indexOf(t);e>=0&&this._animations.splice(e,1),this._invalidate()},o.prototype.pointByDom=function(t){return this._getPointPool().elementOf(t)},o.prototype.getPointView=function(t){return this._getPointPool().find((function(e){return e.point===t}))},o.prototype.clicked=function(t){var e=this.pointByDom(t);e&&(this._clearHoverClasses(e),!0!==this.model.pointClicked(e.point)&&this._doPointClicked(e))},o.prototype._doPointClicked=function(t){},o.prototype._getPointColors=function(){return"a"},o.prototype._setDepth=function(t){this._depthExt=t},o.prototype.prepareSeries=function(t,e,i,r){var n=getComputedStyle(this.dom);this.setModel(e),this.setData("index",e._seriesIndex%y.PALETTE_LEN),this.setData("pointcolors",e._colorByPoint()?this._getPointColors():h._undef),this.internalClearStyleAndClass(),this.internalSetStyleOrClass(e._style),e._runColor&&this._setModelColor(e._runColor),e._calcedColor=n[this._legendColorProp()],e._calcedStroke=parseFloat(n.strokeWidth)>0?n.stroke:"",this._visPoints=this._collectVisPoints(e),this._prepareSeries(t,e,i,r)},o.prototype._setModelColor=function(t){this.setColor(t)},o.prototype._legendColorProp=function(){return"fill"},o.prototype.needDecoreateLegend=function(){return!1},o.prototype.decoreateLegend=function(t){},o.prototype.afterLayout=function(){this._doAfterLayout()},o.prototype.setHoverStyle=function(t){t.internalImportantStylesOrClass(this.model.options.hoverStyle)},o.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(E).addClass(V)}))):this._getPointPool().forEach((function(t){t.containsClass(V)&&t.removeClass(V).addClass(E)}))},o.prototype._clearHoverClasses=function(t){t instanceof c.RcElement&&t.removeClass(E).removeClass(V)},o.prototype.focusPointView=function(t,e){},o.prototype.focusPoints=function(t){var e=this,i="none"!==this.model.options.hoverEffect,r=this._hoverAnis,n=this._hoverPts,s=[],a=[];this.model.options.interactive&&i&&(n.forEach((function(i){if(i instanceof c.RcElement&&(!t||t.indexOf(i)<0)){var n=r.find((function(t){return t._marker===i}));n&&n.stop(),i.setBoolData(o.DATA_FOCUS,!1),e.focusPointView(i,!1),i.restoreStyles(),i instanceof F&&s.push(new x(e,i,!1,(function(){i.endHover(e,!1)})))}})),t&&t.forEach((function(t){if(t&&!t.point.isNull){var i=r.find((function(e){return e._marker===t}));i&&i.stop(),t instanceof c.RcElement&&(t.setBoolData(o.DATA_FOCUS,!0),e.focusPointView(t,!0),t.restoreStyles(),t.saveStyles(),e.setHoverStyle(t),t instanceof F?s.push(new x(e,t,!0,(function(){t.endHover(e,!0)}))):e instanceof H&&e.needFronting()&&e._getPointPool().front(t),a.push(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)},o.prototype._needFocusOrder=function(){return!0},o.prototype.getPointsAt=function(t,e){},o.prototype.getSiblings=function(t){return[t]},o.prototype.getSibling=function(t){},o.prototype.applyAutoRotation=function(t,e,i,r){if(this.model.pointLabel.options.autoRotation){var n=t.getBBox(),o=n.width,s=n.height,a=e/i*(r||360)+90;0!==a&&t.setRotation(o/2,s/2,a)}},o.prototype.isEmptyView=function(){return!1},o.prototype._doAttached=function(t){this.control.loaded&&(0,u.createAnimation)(this.dom,"opacity",0,1,500,null)},o.prototype._prepareStyleOrClass=function(t){},o.prototype._prepareViewRanges=function(t){},o.prototype._doMeasure=function(t,e,i,r,n){return this._animating()||this.setClip(),this.model._xAxisObj._seriesChanged&&this._savePrevs(),this._prepareViewRanges(e),!this._lazyPrepareLabels()&&this._labelContainer.prepare(t,this),e instanceof y.ConnectableSeries&&e.trendline.visible?(this._trendLineView||this.add(this._trendLineView=new c.PathElement(t,"rct-series-trendline")),this._trendLineView.setVis(!0)):this._trendLineView&&this._trendLineView.setVis(!1),{width:i,height:r}},o.prototype._doLayout=function(){var t=this.model.pointLabel;this._labelOverlap={model:t,inverted:this._inverted,width:this.width,height:this.height,fit:t._overflowFit,outline:t.options.overlapOutline,contrast:t.options.overlapContrast},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()),this._labelContainer.visible&&this._depthExt&&this._labelContainer.trans(this._depthExt.base,0)},o.prototype._doAfterLayout=function(){var t=this;this.model._xAxisObj._seriesChanged&&new b.PrevAnimation(this,(function(){t.invalidate()}))},o.prototype._collectVisPoints=function(t){return t._visPoints},o.prototype._setColorIndex=function(t,e){var i=this.model.chart.chartOptions.options.paletteMode===h._PaletteMode.RANDOM?Math.floor(Math.random()*y.PALETTE_LEN):e.index%y.PALETTE_LEN;t.setData("index",this.model._paletteColors[i].toString())},o.prototype._setPointColor=function(t,e){t.setColor(e)},o.prototype._setPointStyle=function(t,e,i,r){t.setAttrEx("aria-label",i.ariaHint()),this._setColorIndex(t,i),t.internalClearStyleAndClass(),e.options.pointStyle&&t.internalSetStyleOrClass(e.options.pointStyle),r&&r.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 n=e.getPointStyle(i);n&&t.internalSetStyleOrClass(n)},o.prototype._labelViews=function(){return this._labelContainer.setVis(this.model.pointLabel.visible&&!this._animating()),this._labelContainer.visible?this._labelContainer:void 0},o.prototype._getGrowRate=function(){return(0,s.pickNum)(this._growRate,1)},o.prototype._getPosRate=function(){return(0,s.pickNum)(this._posRate,1)},o.prototype._animating=function(){return!isNaN(this._growRate)||!isNaN(this._posRate)||!isNaN(this._prevRate)||this._animations.length>0||this.model.isDeleting()},o.prototype._lazyPrepareLabels=function(){return!1},o.prototype._getShowAnimation=function(){},o.prototype._runShowEffect=function(t){},o.prototype._drawSpline=function(t,e,i,r){var n=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[n+1].px-t[n].px,y:t[n+1].py-t[n].py},c={x:0,y:0},p=Math.sqrt(u.x*u.x+u.y*u.y);if(0!==p){u.x/=p,u.y/=p;var h=t[n+1].px-t[n].px,f=t[n].px,d=t[n].py;for(++n;n!=i;n++){l.x=-u.x,l.y=-u.y,u.x=t[n+1].px-t[n].px,u.y=t[n+1].py-t[n].py,p=Math.sqrt(u.x*u.x+u.y*u.y),u.x/=p,u.y/=p,u.x<l.x?(c.x=l.x-u.x,c.y=l.y-u.y):(c.x=u.x-l.x,c.y=u.y-l.y);var _=Math.sqrt(c.x*c.x+c.y*c.y);c.x/=_,c.y/=_,l.y*u.y>=0&&(c={x:1,y:0}),s.x=-c.x*h*o,s.y=-c.y*h*o;var y=f+a.x,g=d+a.y,v=t[n].px+s.x,m=t[n].py+s.y;r.curve(y,g,v,m,t[n].px,t[n].py),h=t[n+1].px-t[n].px,a.x=c.x*h*o,a.y=c.y*h*o,f=t[n].px,d=t[n].py}r.curve(f+a.x,d+a.y,t[n].px,t[n].py,t[n].px,t[n].py)}else r.line(t[i].px,t[i].py)}else r.line(t[n+1].px,t[n+1].py)},o.prototype.$_renderTrendline=function(t){var e=this.model;if(e instanceof y.ConnectableSeries){var i,o=e.chart.isPolar(),a=e.trendline,u=e._xAxisObj,c=e._yAxisObj,p=c._vlen,h=u._vlen;if(o){var f=e.chart._body.getPolar(u);i=a._points.map((function(t){var e=f.start+u.getPos(h,t.x),i=c.getPos(f.rd,t.y);return{x:f.cx+i*(0,s.cos)(e),y:f.cy+i*(0,s.sin)(e)}}))}else i=a._points.map((function(e){var i,r;return t?(r=h-u.getPos(h,e.x),i=c.getPos(p,e.y)):(i=u.getPos(h,e.x),r=p-c.getPos(p,e.y)),{x:i,y:r}}));if(this._trendLineView.setVis(i.length>1)){this._trendLineView.setStyleOrClass(a.options.style);var d=new l.PathBuilder;d.move(i[0].x,i[0].y),a.isCurved()&&!o?this._drawSpline(i.map((function(t){return{px:t.x,py:t.y}})),0,-1,d):(o&&a.isCurved(),d.lines.apply(d,n([],r(i),!1))),this._trendLineView.setPath(d.end(!1))}}},o.prototype._layoutLabel=function(t,e,i,r){var n=e.inverted,o=e.x,s=e.y,a=e.hPoint,l=e.labelView,u=e.labelOff;if(l.setVis(o>=0&&o<=i&&s>=0&&s<=r)){l.layout(e.textAlign);var c=e.below=e.reversed?a<=0:a<0,p=l.getBBox(),h=!0;n?(o-=e.distY,s+=e.distX,s-=p.height/2-p.height*t._vertAdjust):(o-=e.distX,s+=e.distY,o-=p.width/2);var f=o,d=s;switch(e.labelPos){case"inside":n?(o-=e.side,s+=e.base,o-=(a+p.width)/2+(e.reversed?u:-u)):(o-=e.base,s+=e.side,s+=(a-p.height)/2+(e.reversed?u:-u));break;case"head":n?(o-=e.side,s+=e.base,c?o+=u:o-=p.width+u):(o-=e.base,s+=e.side,c?s-=p.height+u:s+=u);break;case"foot":n?(o-=e.side,s+=e.base,o-=c?a+p.width+u:a-u):(o-=e.base,s+=e.side,s+=c?a+u:a-p.height-u);break;case"far":n?o=c?u:i-p.width-u:c?(o-=e.base,s=r-p.height-u):s=u,h=!1;break;default:n?c?o-=p.width+u:o+=u:c?(o-=e.base,s+=e.side,s+=u):s-=p.height+u,h=!1}this._checkLabelOverlap(l,p,f,d,0,0,o,s,h,e.pointView.dom),this._layoutLabelRotation(l,p,o,s)}},o.prototype._checkLabelOverlap=function(t,e,i,r,n,o,s,a,l,u){var c=this._labelOverlap,p=!1;if(!l){var h=c.fit;if(isFinite(h)&&(c.inverted?s+e.width>=c.width?p=(s=c.width+h-e.width)<i+n:s<=0&&(p=(s=-h)+e.width>i-n):a+e.height>=c.height?p=(a=c.height+h-e.height)<r+o:a<=0&&(p=(a=-h)+e.height>r-o)),p){if(!isFinite(h))return t.setVis(!1),!1;c.outline&&t.setOutline(c.model)}}return t.setContrast((l||p&&c.contrast)&&u),t.trans(s,a),!0},o.prototype._clipRange=function(t,e,i,r,n,o){if(o){var a=t;t=e,e=a}var l="x"===i,u=l?this.model._xAxisObj:this.model._yAxisObj,c=u.options.reversed,p=u.getPos(l?t:e,(0,s.maxv)(u.axisMin(),r.fromValue)),h=u.getPos(l?t:e,(0,s.minv)(u.axisMax(),r.toValue));o?l?c?n.setBounds(h,-e,(0,s.absv)(h-p),e):n.setBounds(p,-e,(0,s.absv)(h-p),e):n.setBounds(0,-(0,s.maxv)(p,h),t,(0,s.absv)(h-p)):l?c?n.setBounds(h,0,(0,s.absv)(h-p),e):n.setBounds(p,0,(0,s.absv)(h-p),e):n.setBounds(0,e-(0,s.maxv)(p,h),t,(0,s.absv)(h-p))},o.prototype._setFill=function(t,e){(0,s.isObject)(e)&&e[h.FILL]?t.internalSetStyle(h.FILL,e[h.FILL]):(0,s.isString)(e)&&t.dom.classList.add(e)},o.prototype._savePrevs=function(){},o.prototype._layoutLabelRotation=function(t,e,i,r){if(!this.model.chart.isInverted()){var n=this._labelOverlap,o=this.model.pointLabel.getRotation();e||(e=t.getBBox());var s=e.width/2,a=e.height/2;this._adjustRotatedLabelPosition(t,n,e,i,r),t.setRotation(s,a,o)}},o.prototype._adjustRotatedLabelPosition=function(t,e,i,r,n){var o=this.model.pointLabel,a=o.getRotation();if(isFinite(r)&&isFinite(n)&&0!==a){var l,u=e.height,c=(0,s.pickNum)(e.fit,0),p=this.model._yAxisObj.options.reversed,h=this.model.chart.isInverted(),f=o.options.position,d=this._getRotatedLabelDisplacement(a,i);if(!h&&f!==g._PointLabelPosition.INSIDE)if(g._PointLabelPosition.FAR,g._PointLabelPosition.HEAD,p?f!==g._PointLabelPosition.FAR&&f!==g._PointLabelPosition.HEAD||(d*=-1):f===g._PointLabelPosition.HEAD&&(d*=-1),n-=d,p){if((l=n+(-2*d+i.height)/2+i.height/2)>u)n-=l-u-c}else(l=n-(2*d+i.height)/2)<0&&(n=d-c);t.trans(r,n)}},o.prototype._getRotatedLabelDisplacement=function(t,e){var i=t*Math.PI/180,r=Math.abs(Math.sin(i)),n=Math.abs(Math.cos(i)),o=e.width,s=e.height;return o/2*r+s/2*n-s/2},o.POINT_CLASS="rct-point",o.DATA_FOCUS="focus",o.DATA_UNFOCUS="unfocus",o.DATA_UNHOVER="unhover",o.LEGEND_MARKER="rct-legend-item-marker",o}(v.ContentView);e.SeriesView=L;var T=function(t){function e(e){return t.call(this,e,L.POINT_CLASS)||this}return i(e,t),e.prototype.savePrevs=function(){},e}(c.PathElement);e.PointElement=T;var k=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.savePrevs=function(){this.wSave=this.wPoint,this.xSave=this.x},e}(T);e.BoxPointElement=k;var N=function(t){function e(e){return t.call(this,e,L.POINT_CLASS)||this}return i(e,t),e.prototype.savePrevs=function(){},e}(c.RcElement);e.PointElementEx=N;var M=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.savePrevs=function(){this.wSave=this.wPoint,this.xSave=this.x},e}(N);e.BoxPointElementEx=M;var j=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.layout=function(t,e,i,r,n,o,s){this.x=t,this.setPath(_.SvgShapes.bar(t-this.wPoint/2,e,this.wPoint,-this.hPoint,i,r))},e}(k);e.BarElement=j;var R=function(t){function e(e){var i=t.call(this,e)||this;return i.add(i._topView=new c.PathElement(e)),i.add(i._frontView=new c.PathElement(e)),i.add(i._sideView=new c.PathElement(e)),i}return i(e,t),e.prototype.layout=function(t,e,i,r,n,s,a){var l=this.wPoint,u=this.hPoint,c=getComputedStyle(this._frontView.dom).fill,p=u<0?e:e-u;if(o.isIE&&(c=this.control.getIEColor(c)),this.x=t,t-=this.wPoint/2,a){var h=n;n=s,s=h}this._frontView.setPath(_.SvgShapes.rectangle(t-n,e+s,l,-u)),this._topView.setPath(_.SvgShapes.polygon(t,p,t+l,p,t+l-n,p+s,t-n,p+s)),this._topView.setStyle("fill",w.Color.interpolate(a?w.Color.BLACK:w.Color.WHITE,c,.2)),this._sideView.setPath(_.SvgShapes.polygon(t+l-n,e-u+s,t+l,e-u,t+l,e,t+l-n,e+s)),this._sideView.setStyle("fill",w.Color.interpolate(a?w.Color.WHITE:w.Color.BLACK,c,.2))},e}(M);e.Bar3DElement=R;var B=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.savePrevs=function(){this.wSave=this.width,this.xSave=this.x},e}(f.GroupElement);e.RangeElement=B;var D=function(t){function e(){var e=t.apply(this,n([],r(arguments),!1))||this;return e._labelInfo={},e}return i(e,t),e.prototype._prepareSeries=function(t,e,i,r){this._preparePoints(t,e,this._visPoints,!!r)},e.prototype._renderSeries=function(t,e){this._pointContainer.invert(this._inverted,e),this._layoutPoints(t,e)},e.prototype._runShowEffect=function(t){t&&b.SeriesAnimation.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}(L);e.ClusterableSeriesView=D;var I=function(t){function e(e,i){var r=t.call(this,e,i)||this;return r._labelContainer.add(r._labelLineContainer=new O(e)),r}return i(e,t),e.prototype.depthEnabled=function(){return!0},e.prototype._prepareSeries=function(e,i,r,n){n?(this._depthAngle=n.options.angle*h.DEG_RAD,this._base=(0,s.cos)(this._depthAngle)*i.depth,this._side=(0,s.sin)(this._depthAngle)*i.depth):this._depthAngle=this._base=this._side=0,t.prototype._prepareSeries.call(this,e,i,r,n),this._pointOff=i.options.pointOffset||0},e.prototype._doPrevRateChanged=function(t){0==t&&this._layoutPoints(this.width,this.height),this.invalidate()},e.prototype._prepareLayoutPoints=function(t,e){},e.prototype._layoutPoints=function(t,e){var i=this,r=this.model,n=this._inverted,o=this._getGrowRate(),a=this._prevRate,u=r.pointLabel,c=this._labelViews(),p=this._labelLineContainer,h=r._xAxisObj,f=r._yAxisObj,d=this._reversed=f.options.reversed,_=this._depthExt,y=r._group?r._groupDistance:r.distance,g=_?y*(n?(0,s.sin)(this._depthAngle):(0,s.cos)(this._depthAngle)):0,v=_?y*(n?(0,s.cos)(this._depthAngle):(0,s.sin)(this._depthAngle)):0,m=2*h.unitPad(),b=(0,s.pickNum)(0,r.options.minPointWidth),w=this._yLen=f.prev(n?t:e),x=h.prev(n?e:t),S=n?0:e,P=f.valueMin(),A=f.getPos(w,P),O=this._baseVal=r.getBaseValue(f),C=!isNaN(O),E=this._yBase=(0,s.pickNum)(f.getPos(w,(0,s.maxv)(P,(0,s.pickNum)(O,A))),A),V=function(t){return f.getPos(w,t)},L=function(t){return h.getPos(x,t)},T=this._pointOff,k=c&&(0,s.assignObj)(this._labelInfo,{inverted:n,reversed:d,labelPos:r.getLabelPos(u),labelOff:r.getLabelOff(u.getOffset()),textAlign:this._labelContainer._textAlign,distX:g,distY:v,side:this._side,base:this._base});c&&p.setVis(r.pointLabel.line.visible)&&(p.internalClearStyleAndClass(),p.internalSetStyleOrClass(r.pointLabel.line._style),p.prepare(r),k.pb=new l.PathBuilder),this._prepareLayoutPoints(t,e),this._getPointPool().forEach((function(s,l){var p=s.point;if(s.setVis(!p.isNull)){var f=h.getUnitLen(x,p.xValue)*(1-m),d=r.getPointWidth(f,b),_=V(p.yGroup),y=E;if(p.yGroup!=p.yValue){var w=O>p.yGroup,P=p.yGroup<0,A=p.yValue<0,N=w&&P&&!A||w&&!P&&!A||!w&&P&&A||!w&&!P&&A,M=p.yGroup-p.yValue*(N?-1:1);y=V(M)}var j=(_-y)*o,R=L(p.xValue)-f/2,B=S-_;if(isNaN(R)){var D=h.getUnitLen(x,p.xValue)*(1-m);R=L(p.xValue)-D/2}isNaN(a+s.wSave)||(d=s.wSave+(d-s.wSave)*a),R+=r.getPointPos(f)+d/2,isNaN(a+s.xSave)||(R=s.xSave+(R-s.xSave)*a),p.xPos=R+=d*T,p.yPos=B,i._layoutPoint(s,l,R-g,S-E*(1-o)-y*o+v,d,j),n&&(B=x-L(p.xValue)+f/2,R=S,p.yPos=B-=r.getPointPos(f)+d/2+d*T,p.xPos=R+=C?V(p.yGroup)*o:V(p.yGroup*o)),k&&(k.labelView=c.get(p,0))&&(k.pointView=s,k.x=R,k.y=B,k.wPoint=d,k.hPoint=j,i._layoutLabel(u,k,t,e))}}))},e.prototype._layoutLabel=function(e,i,r,n){if(t.prototype._layoutLabel.call(this,e,i,r,n),i.pb){var o=this._labelLineContainer.get(i.pointView.point),s=i.labelView;i.pb.clear(),i.inverted?i.pb.hline(i.y-i.distX,i.x+i.distY,i.below?s.tx+s.getBBox().width:s.tx):i.pb.vline(i.x-i.distX,i.y+i.distY,i.below?s.ty:s.ty+s.getBBox().height),o.setLine(i.pb.end())}},e}(D);e.BasedSeriesView=I;var G=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype._getHighValue=function(t){return t.yValue},e.prototype._prepareSeries=function(e,i,r,n){t.prototype._prepareSeries.call(this,e,i,r,n),this._pointOff=+i.options.pointOffset||0},e.prototype._doPrevRateChanged=function(t){0==t&&this._layoutPoints(this.width,this.height),this.invalidate()},e.prototype._layoutPoints=function(t,e){var i=this,r=this.model,n=r.chart.isInverted(),o=this._getGrowRate(),a=this._prevRate,l=r.pointLabel,u=this._labelViews(),c=r._xAxisObj,p=r._yAxisObj,h=2*c.unitPad(),f=(0,s.pickNum)(0,r.options.minPointWidth),d=n?t:e,_=n?e:t,y=n?0:e,g=this._pointOff,v=u&&(0,s.assignObj)(this._labelInfo,{inverted:n,labelPos:r.getLabelPos(l),labelOff:r.getLabelOff(l.getOffset()),textAlign:this._labelContainer._textAlign,distX:0,distY:0,base:0,side:0});this._getPointPool().forEach((function(s,m){var b=s.point;if(s.setVis(!b.isNull)){var w=c.getUnitLen(_,b.xValue)*(1-h),x=r.getPointWidth(w,f),S=(p.getPos(d,i._getHighValue(b))-p.getPos(d,i._getLowValue(b)))*o,P=c.getPos(_,b.xValue)-w/2,A=y-p.getPos(d,i._getHighValue(b))*o;isNaN(a+s.wSave)||(x=s.wSave+(x-s.wSave)*a),P+=r.getPointPos(w)+x/2,isNaN(a+s.xSave)||(P=s.xSave+(P-s.xSave)*a),b.xPos=P+=x*g,b.yPos=A,i._layoutPoint(s,m,P,A,x,S),n&&(A=_-c.getPos(_,b.xValue)+w/2,P=y,b.yPos=A-=r.getPointPos(w)+x/2+x*g,b.xPos=P+=p.getPos(d,i._getHighValue(b))*o),u&&(v.pointView=s,v.hPoint=S,v.x=P,v.y=A,(v.labelView=u.get(b,0))&&(v.hPoint=S,i._layoutLabel(l,v,t,e)),(v.labelView=u.get(b,1))&&(n?v.x-=S:v.y+=S,v.hPoint=-S,i._layoutLabel(l,v,t,e)))}}))},e}(D);e.RangedSeriesView=G;var F=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(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}(T);e.MarkerSeriesPointView=F;var z=function(t){function e(e,i){var r=t.call(this,e,i)||this;return r._markers=r._createMarkers(r._pointContainer),r}var r;return i(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 _.SvgShapes[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._adjustRotatedLabelPosition=function(t,e,i,r,n){var o=this.model.pointLabel,s=o.getRotation();if(isFinite(r)&&isFinite(n)&&0!==s){var a=this.model.chart.isInverted(),l=o.options.position,u=this._getRotatedLabelDisplacement(s,i);if(!a&&l!==g._PointLabelPosition.INSIDE)(n-=u)-(2*u+i.height)/2<0&&(n=u),t.trans(r,n)}},e.prototype._getDrawer=function(t){return r._drawers[t]||r._drawers.circle},e.prototype._layoutLabelView=function(t,e,i,r,n,o){var s=t.getBBox();if("default"===e&&(e=this._getDefaultPos(s.width>=2*r*.9)),t.setVis(null!=e)){n-=s.width/2;var a=o;"inside"===e?a=o-s.height/2:e&&(a=o-r-s.height-i),t.trans(n,a),this._layoutLabelRotation(t,s,n,a)}},r=e,e._drawers=Object.assign({circle:function(t){return _.SvgShapes.circle(0,0,t)},none:function(t){return[]}},r._createDrawers("square","diamond","triangle","itriangle","star","rectangle")),e}(L);e.MarkerSeriesView=z;var $=function(t){function e(e,i){var r=t.call(this)||this;return r.series=e,r.duration=i,r}return i(e,t),e.prototype._doUpdate=function(t){var e=this.series;return!!e&&(e._zombieRate=e._zombie.visible?t:1-t,e._refreshZombie(),!0)},e.prototype._doStop=function(){var t=this.series;t&&(t._zombie=null,t._zombieAni=null,t.invalidate(),this.series=null)},e}(u.RcAnimation),H=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(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.needFronting=function(){return!0},e.prototype.clipInvertable=function(){return!1},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,null===(i=this._zombieAni)||void 0===i||i.stop(),this._zombieAni=null),this._willZombie&&(this._zombie=this._willZombie,this._willZombie=null,this._zombieAni=new $(this,300),this._zombieAni.start())},e.prototype._getPointColors=function(){return"f"},e.prototype._createPointLegendMarker=function(t,e,i){return d.RectElement.create(t,"rct-legend-item-marker",0,0,i,i,i/2)},e.prototype._preparePoint=function(t,e,i,r){this._clearHoverClasses(r),i.legendMarker()||i.setLegendMarker(this._createPointLegendMarker(t,i,this.chart()._legend.getMarkerSize())),this._setPointStyle(r,e,i);var n=getComputedStyle(r.dom);i._calcedColor=n.fill,i._calcedStroke=parseFloat(n.strokeWidth)>0?n.stroke:""},e}(L);e.WidgetSeriesView=H}(XU);var uY={},cY=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(uY,"__esModule",{value:!0}),uY.ImageAnnotationView=void 0;var pY=VW,hY=sU,fY=function(t){function e(i){var r=t.call(this,i,e.CLASS_NAME)||this;return r.addToTransform(r._imageView=new hY.ImageElement(i,!1)),r._imageView.onloadProxy=function(){r._imageView.resize(r._size.width,r._size.height)},r}return cY(e,t),e.prototype._doMeasure=function(t,e,i,r,n){var o=this._size=e.getSize(i,r);this._deflatePaddings(o),this._imageView.setImage(this.model.options.imageUrl,o.width,o.height);var s=this._imageView.getBBox();return this._inflaePaddings(s),(0,pY.rectToSize)(s)},e.prototype._doLayout=function(e){this._imageView.trans(this._paddings.left,this._paddings.top),t.prototype._doLayout.call(this,e)},e.CLASS_NAME="rct-image-annotation",e}(UU.AnnotationView);uY.ImageAnnotationView=fY;var dY={},_Y=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(dY,"__esModule",{value:!0}),dY.ShapeAnnotationView=void 0;var yY=ID,gY=hj,vY=EB,mY=function(t){function e(i){var r=t.call(this,i,e.CLASS_NAME)||this;return r.addToTransform(r._shapeView=new gY.PathElement(i)),r}return _Y(e,t),e.prototype._doMeasure=function(t,e,i,r,n){var o,s,a,l,u=e.getSize(i,r),c=null===(o=e.chart.xAxis)||void 0===o?void 0:o.getPos(i,e.options.x1),p=null===(s=e.chart.xAxis)||void 0===s?void 0:s.getPos(i,e.options.x2),h=null===(a=e.chart.yAxis)||void 0===a?void 0:a.getPos(r,e.options.y1),f=null===(l=e.chart.yAxis)||void 0===l?void 0:l.getPos(r,e.options.y2),d=0,_=0;switch(e.getShape()){case yY._ShapeAnnotationShape.HLINE:!Number.isNaN(p)&&Number.isNaN(c)&&(_=p),Number.isNaN(f)||(d=Number.isNaN(h)?r-f:u.height/2),this._shapeView.setPath(vY.SvgShapes.line(_,d,_+u.width,d));break;case yY._ShapeAnnotationShape.VLINE:Number.isNaN(p)||(_=Number.isNaN(c)?p:u.width/2),!Number.isNaN(f)&&Number.isNaN(h)&&(d=r-f),this._shapeView.setPath(vY.SvgShapes.line(_,d,_,d+u.height));break;case yY._ShapeAnnotationShape.LINE:Number.isNaN(p)||(_=Number.isNaN(c)?p:c>p?u.width:0),Number.isNaN(f)||(d=Number.isNaN(h)?r-f:h<f?u.height:0);var y=c>p?_-u.width:_+u.width,g=h<f?d-u.height:d+u.height;this._shapeView.setPath(vY.SvgShapes.line(_,d,y,g));break;default:vY.SvgShapes.setShape(this._shapeView,e.getShape(),u.width/2,u.height/2)}return this._deflatePaddings(u),u},e.prototype._doLayout=function(e){this._shapeView.trans(this._paddings.left,this._paddings.top),t.prototype._doLayout.call(this,e)},e.CLASS_NAME="rct-shape-annotation",e}(UU.AnnotationView);dY.ShapeAnnotationView=mY;var bY={},wY=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(bY,"__esModule",{value:!0}),bY.TextAnnotationView=void 0;var xY=iM,SY=VW,PY=GM,AY=lj,OY=function(t){function e(i){var r=t.call(this,i,e.CLASS_NAME)||this;return r.addToTransform(r._textView=new AY.TextElement(i)),r._textView.anchor=AY.TextAnchor.START,r._richText=new PY.SvgRichText,r}return wY(e,t),e.prototype._doMeasure=function(t,e,i,r,n){var o=e.options,s=e.getSize(i,r),a=this._textView;o.writingMode&&this._textView.setStyle("writingMode",o.writingMode),this._textView.setStyle("textOrientation",e.getTextOrientation()),this._deflatePaddings(s),this._richText._isVertical="vertical"===o.writingMode,this._richText.setFormat(o.text),!isNaN(o.lineHeight)&&this._richText&&(this._richText.lineHeight=o.lineHeight),this._richText.build(a,i,r,null,e._domain);var l=(0,SY.rectToSize)(this._textView.getBBox());return{width:(0,xY.pickNum)(s.width,l.width),height:(0,xY.pickNum)(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(this._textView.tx,this._textView.ty),t.prototype._doLayout.call(this,e)},e.CLASS_NAME="rct-text-annotation",e}(UU.AnnotationView);bY.TextAnnotationView=OY;var CY={},EY={},VY=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(EY,"__esModule",{value:!0}),EY.LineSeriesView=EY.LineSeriesBaseView=EY.LineContainer=EY.LineMarkerView=void 0;var LY=iM,TY=fj,kY=AW,NY=$F,MY=hj,jY=wM,RY=EB,BY=pG,DY=oU,IY=XU,GY=qU,FY=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return VY(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 r=this.point,n=(+t.model.marker.options.hoverScale||1.8)-1,o=this._radius;e?isNaN(i)||(o=this._radius=this._saveRadius*(1+i*n)):o=this._radius=this._saveRadius*(1+n-(isNaN(i)?n:n*i)),RY.SvgShapes.setShape(this,t.model.getShape(r),o,o),this.index>0?this.trans(r.px2-o,r.py2-o):this.trans(r.xPos-o,r.yPos-o)},e.prototype.endHover=function(t,e){this._radius=this._saveRadius},e.prototype.distance=function(t,e,i){var r=0===this.index?this.point.xPos:this.point.px2,n=0===this.index?this.point.yPos:this.point.py2;return this.point.isNull?Number.MAX_VALUE:Math.sqrt(Math.pow(r-e,2)+Math.pow(n-i,2))-t},e.prototype.distance2=function(t,e,i,r){var n=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:r?Math.abs(o-i):Math.abs(n-e)},e}(IY.MarkerSeriesPointView);EY.LineMarkerView=FY;var zY=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return VY(e,t),e}(IY.PointContainer);EY.LineContainer=zY;var $Y=function(t){function e(e,i){var r=t.call(this,e,i)||this;return r._needBelow=!1,r._rangeClips=[],r.insertFirst(r._lineContainer=new zY(e,"rct-line-series-lines")),r._lineContainer.add(r._line=new MY.PathElement(e,"rct-line-series-line")),r._markers=new kY.ElementPool(r._pointContainer,FY),r}return VY(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;if(i._line.setStyle("strokeWidth",e.strokeWidth),i._shape){var r=getComputedStyle(this.dom);i._marker.setStyles({fill:r.fill,stroke:r.stroke}),i._marker.internalSetStyles(this.model.marker._style),i._line.setStyle("strokeDasharray","")}else i._line.setStyle("strokeDasharray",e.strokeDasharray)},e.prototype._prepareSeries=function(t,e,i){e instanceof BY.LineSeries&&(this._needBelow=e.options.belowStyle&&e._minY<e.getBaseValue(e._yAxisObj),this._prepareBelow(e,i)),!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(!!this._polar)},e.prototype._runShowEffect=function(t){this._polar?t&&GY.SeriesAnimation.grow(this):t&&GY.SeriesAnimation.reveal(this,{from:function(t){var e=t.model._xAxisObj.options.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(!!this._polar)},e.prototype.getPointsAt=function(t,e){return[]},e.prototype.getNearest=function(t,e){var i=this.model.marker.options.radius,r=this._markers._internalItems();if(r&&r.length>0){var n=r.reduce((function(r,n){return r.distance(i,t,e)<n.distance(i,t,e)?r:n}));return{pv:n,dist:n.distance(i,t,e)}}},e.prototype.getNearest2=function(t,e,i){var r=this.model.marker.options.radius,n=this._markers._internalItems();if(n&&n.length>0){var o=n.reduce((function(n,o){return n.distance2(r,t,e,i)<o.distance2(r,t,e,i)?n:o}));return{pv:o,dist:o.distance2(r,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,e){var i,r,n=this.control,o=this._lowLine;if(this._needBelow)return o||(o=this._lowLine=new MY.PathElement(this.doc,"rct-line-series-line rct-line-series-line-below"),e?this._lineContainer.add(o):this._lineContainer.insertChild(o,this._line),e?(this._upperClip=n.clipCircle(),this._lowerClip=n.clipCircle()):(this._upperClip=n.clipBounds(),this._lowerClip=n.clipBounds()),this._upperClip.setAttr(MY.RcElement.ASSET_KEY,"1"),this._lowerClip.setAttr(MY.RcElement.ASSET_KEY,"1")),this._line.setClip(this._upperClip),o.setClip(this._lowerClip),!0;null==o||o.setClip(),this._line.setClip(),null===(i=this._upperClip)||void 0===i||i.remove(),null===(r=this._lowerClip)||void 0===r||r.remove()},e.prototype._prepareRanges=function(t,e){var i=this._rangeClips,r=this._rangeLines;if(e){for(r||(r=this._rangeLines=new kY.ElementPool(this._lineContainer,MY.PathElement)),r.prepare(e.length);i.length<e.length;){var n=new MY.ClipRectElement(this.doc);n.setAttr(MY.RcElement.ASSET_KEY,"1"),this.control.clipContainer().append(n.dom),i.push(n)}for(;i.length>e.length;)i.pop().remove()}else r&&(r.freeAll(),i.forEach((function(t){return t.remove()})),i.length=0)},e.prototype.$_resetClips=function(t,e,i,r){var n,o=this._polar,s=this.model._yAxisObj.options.reversed;(n=this._upperClip)&&(this._polar?n.setCircle(o.cx,o.cy,o.rd*this._getGrowRate()):r?s?n.setBounds(0,-i,e,t):n.setBounds(0,-t,e,t-i):s?n.setBounds(0,0+i,t,e-i):n.setBounds(0,0,t,i)),(n=this._lowerClip)&&(this._polar?n.setCircle(o.cx,o.cy,o.rd*(i/e)*this._getGrowRate()):this._inverted?s?n.setBounds(0,-t,e,t):n.setBounds(0,-i,e,t-i):s?n.setBounds(0,0,t,i):n.setBounds(0,0+i,t,e-i))},e.prototype.$_prepareMarkers=function(t,e){var i=this,r=t instanceof BY.LineSeries&&this._needBelow,n=r?t.getBaseValue(t._yAxisObj):NaN,o=[t.marker._style,null];if(this._pointContainer.setVis(!t._simpleMode)){var s=this._markersPerPoint(),a=r&&t.options.belowStyle,l=e.length;this._markers.prepare(l*s,(function(s,u){var c=e[u%l];c.isNull||(s.point=c,o[1]=r&&c.yValue<n?a:null,i._setPointStyle(s,t,c,o)),s.point=c,s.index=u<l?0:1}))}else this._markers.prepare(0)},e.prototype._prepareMakrer=function(t){var e=this.model,i=t.point;t._shape=e.getShape(i),t._radius=e.getRadius(i)},e.prototype._layoutMarker=function(t,e,i,r){var n=t._radius;e&&t.internalSetStyleOrClass(e),RY.SvgShapes.setShape(t,t._shape,n,n),t.setPos(i,r),t.trans(i-=n,r-=n)},e.prototype._layoutMarkers=function(t,e,i){var r=this,n=this.model,o=n.marker,s=o._style,a=this._inverted,l=n.needClip(!1),u=this._getGrowRate(),c=o.visible,p=o.options.firstVisible,h=o.options.lastVisible,f=o.options.maxVisible,d=o.options.minVisible,_=n.pointLabel,y=_.options.align,g=_.getAlignOffset(),v=_.getOffset(),m=_.getPosition(),b=this._labelContainer._textAlign,w=this._labelViews(),x=n._xAxisObj,S=n._yAxisObj,P=this._polar=n.chart._body.getPolar(x),A=!!P,O=S.prev(a?e:i),C=x.prev(P?jY.PI_2:a?i:e),E=a?0:i,V=t.length;t.forEach((function(t,_){var L,T,k,N;P?(k=P.start+x.getPos(C,t.xValue),N=S.getPos(P.rd,t.yGroup)*u,L=t.px=P.cx+N*(0,LY.cos)(k),T=t.py=P.cy+N*(0,LY.sin)(k)):(L=t.px=x.getPos(C,t.xValue),T=t.py=E-S.getPos(O,t.yGroup),a&&(L=S.getPos(O,t.yGroup),T=i-x.getPos(C,t.xValue))),t.xPos=L,t.yPos=T;var M=L,j=T,R=r._markers.get(_),B=w&&w.get(t,0);if(R&&R.setVis(!t.isNull&&(A||!l||L>=0&&L<=e&&T>=0&&T<=i))){r._prepareMakrer(R),r._layoutMarker(R,s,L,T),n._maxY==t.yGroup&&o.options.maxVisible,n._minY==t.yGroup&&o.options.minVisible;var D=0==_&&null!=p?p:_==V-1&&null!=h?h:n._maxY==t.yGroup&&null!=f?f:n._minY==t.yGroup&&null!=d?d:c;if(R.setStyle("opacity",D?"1":"0"),B){B.setContrast(null).layout(b);var I=B.getBBox(),G=R._radius;if(B.visible=!0,P){switch(m){case"inside":N-=v;break;case"foot":N-=I.height/2+v;break;default:N+=I.height+v}L=P.cx+N*(0,LY.cos)(k),T=P.cy+N*(0,LY.sin)(k)-I.height/2,r.applyAutoRotation(B,k,P.total,x.options.totalAngle)}else switch(m){case"inside":T-=I.height/2+v;break;case"foot":T+=v+(c?G:0);break;default:T-=I.height+v+(c?G:0)}switch(y){case"left":L-=I.width+(c?G:0)+g;break;case"right":L+=(c?G:0)+g;break;default:L-=I.width/2+g}r._checkLabelOverlap(B,I,M,j,G,G,L,T,!1,null),r._layoutLabelRotation(B,I,L,T)}}else B&&B.setVis(!1)}))},e.prototype._layoutLines=function(t){var e=this,i=this.model;if(this._lineContainer.setVis(i._lines.length>0)){var r=this.width,n=this.height,o=this._inverted,s=i instanceof BY.LineSeries&&this._needBelow,a=this._buildLines2(i._lines);if(i._runRanges)this._rangeLines.forEach((function(t,s){var l=i._runRanges[s];t.setPath(a),t.internalClearStyleAndClass(),t.internalSetStyle("stroke",l.color),t.internalSetStyleOrClass(l.style),TY.Dom.setImportantStyle(t.dom.style,jY.FILL,"none"),t.setClip(e._rangeClips[s]),e._clipRange(r,n,i._runRangeValue,l,e._rangeClips[s],o)}));else{var l=this._line;a.indexOf("NaN")>=0&&(a=this._buildLines2(i._lines)),l.setPath(a),l.internalClearStyleAndClass(),l.internalSetStyle("stroke",i._runColor),l.internalSetStyleOrClass(i._style),TY.Dom.setImportantStyle(l.dom.style,jY.FILL,"none")}if(s){var u=this._lowLine,c=i._yAxisObj,p=i.getBaseValue(c);t?this.$_resetClips(r,n/2,c.getPos(n/2,p),!0):o?this.$_resetClips(r,n,c.getPos(r,p),!0):this.$_resetClips(r,n,n-c.getPos(n,p),!1),u.setPath(a),u.internalClearStyleAndClass(),u.internalSetStyle("stroke",i._runColor),u.internalSetStyleOrClass(i._style),u.internalSetStyleOrClass(i.options.belowStyle),TY.Dom.setImportantStyle(u.dom.style,jY.FILL,"none")}}},e.prototype._buildLine2=function(t,e,i,r){var n=this.model;"spline"===e?this._drawCurve2(t,i,r):n instanceof BY.LineSeries&&"step"===e?this._drawStep2(t,i,r,i?n.backDir():n.options.stepDir):this._drawLine2(t,i,r)},e.prototype._buildLines2=function(t){var e=this.model,i=e.getLineType(),r=new NY.PathBuilder;return"spline"===i?this._drawCurves(t,r):e instanceof BY.LineSeries&&"step"===i?this._drawSteps(t,r,e.options.stepDir):this._drawLines(t,r),r.end()},e.prototype._drawLine2=function(t,e,i){if(t.length>1){i.moveOrLine(e,t[0].px,t[0].py);for(var r=1;r<t.length;r++)this.model instanceof BY.LineSeries&&this.model.options.connectNullPoints&&t[r].isNull||i.line(t[r].px,t[r].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,r){if(t.length>1){i.moveOrLine(e,t[0].px,t[0].py);for(var n=1;n<t.length;n++)switch(r){case"backward":i.line(t[n-1].px,t[n].py),i.line(t[n].px,t[n].py);break;case"center":i.line((t[n].px+t[n-1].px)/2,t[n-1].py),i.line((t[n].px+t[n-1].px)/2,t[n].py),n+1===t.length&&i.line(t[n].px,t[n].py);break;default:i.line(t[n].px,t[n-1].py),i.line(t[n].px,t[n].py)}}},e.prototype._drawSteps=function(t,e,i){var r=this;t.forEach((function(t){return r._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 r,n=t.length;if(t&&t.length>1){var o=e;for(r=e;r<n;)if(t[r].isNull){r-1>o&&this._drawSpline(t,o,r-1,i);do{r++}while(r<n&&t[r].isNull);o=r,r<n&&(i.move(t[r].px,t[r].py),r++)}else r++;r-1>o&&this._drawSpline(t,o,r-1,i)}},e.prototype._buildAreas=function(t,e,i){var r=new NY.PathBuilder;i=i||e;for(var n=0;n<t.length;n+=2){var o=t[n],s=t[n+1];this._buildLine2(o,e,!1,r),this._buildLine2(s,i,!0,r)}return r.end(!0)},e.prototype.setHoverStyle=function(e){t.prototype.setHoverStyle.call(this,e),e.internalImportantStylesOrClass(this.model.marker.options.hoverStyle)},e}(IY.SeriesView);EY.LineSeriesBaseView=$Y;var HY=function(t){function e(i){var r=t.call(this,i,e.CLASS)||this;return r._flagView=new DY.ChartTextElement(i,"rct-line-series-flag"),r._pointContainer.add(r._flagView),r}return VY(e,t),e.prototype._legendColorProp=function(){return"stroke"},e.prototype._doLayout=function(){var e;t.prototype._doLayout.call(this);var i,r=this.model,n=r.flag,o=this._flagView,s=this.parent.parent;if(o.setVis(n.visible&&!!(i=n.label()))){o.setText(i),o.setModel(this.doc,n,n.options.icon?n.getUrl(n.options.icon):null,null),o.setContrast(null).layout("left");var a=n.options.offset,l=o.getBBox(),u=void 0,c=void 0;u=this._markers.last.x,c=this._markers.last.y;var p=void 0,h={top:["top","right","left"],right:["right","top","bottom"],bottom:["bottom","right","left"],left:["left","top","bottom"]}[p=("step"==r.options.lineType&&"forward"==r.options.stepDir)!=this._inverted?c>this._markers.get(this._markers.count-2).y?"bottom":"top":u>this._markers.get(this._markers.count-2).x?"right":"left"],f=l.width,d=l.height,_=f/2,y=d/2,g=s.width,v=s.height,m=c>d+a,b=v>c+d+a,w=u>f+a,x=g>u+f+a,S={top:m,right:x,bottom:b,left:w},P=u>_&&g-u>_?u-_:u>g/2?g-f:0,A=c>y&&v>c+y?c-y:c>v/2?v-d:0;switch(p=null!==(e=h.find((function(t){return S[t]})))&&void 0!==e?e:p){case"top":u=P,c=m?c-d-a:0;break;case"bottom":u=P,c=b?c+a:v-d;break;case"left":u=w?u-f-a:0,c=A;break;case"right":u=x?u+a:g-f,c=A}o.trans(u,c)}},e.CLASS="rct-line-series",e}($Y);EY.LineSeriesView=HY;var WY=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(CY,"__esModule",{value:!0}),CY.AreaRangeSeriesView=void 0;var UY=iM,YY=fj,XY=hj,qY=EY,ZY=function(t){function e(e){var i=t.call(this,e,"rct-arearange-series")||this;return i.insertFirst(i._areaContainer=new qY.LineContainer(e,"rct-arearange-series-areas")),i._areaContainer.add(i._area=new XY.PathElement(e,"rct-arearange-series-area")),i._lineContainer.add(i._lowerLine=new XY.PathElement(e,"rct-areanrange-series-line")),YY.Dom.setImportantStyle(i._lowerLine.dom.style,"fill","none"),i}return WY(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,r){t.prototype._layoutMarkers.call(this,e,i,r);var n=this.model,o=n.marker,s=o._style,a=o.visible,l=this._inverted,u=n._xAxisObj,c=n._yAxisObj,p=l?i:r,h=l?0:r,f=this._labelViews(),d=this._labelContainer._textAlign,_=this._polar=n.chart._body.getPolar(u),y=n.pointLabel,g=y.options.position,v=y.options.align,m=y.getAlignOffset(),b=y.getOffset();this._getGrowRate();for(var w=0,x=e.length;w<x;w++){(P=e[w]).yLow=h-c.getPos(p,P.lowValue)}var S=this._markers;for(w=0,x=e.length;w<x;w++){var P=e[w],A=S.get(x+w),O=f&&f.get(P,1),C=void 0,E=void 0,V=void 0;this._prepareMakrer(A),l?(C=P.px2=c.getPos(p,P.lowValue),E=P.py2=S.get(w).ty+A._radius):(C=P.px2=P.xPos,E=P.py2=P.yLow);var L=C,T=E;if(A&&A.setVis(!P.isNull&&C>=0&&C<=i&&E>=0&&E<=r)){if(this._layoutMarker(A,s,C,E),A.setStyle("opacity",a||0==w&&!0===o.options.firstVisible||w===x-1&&!0===o.options.lastVisible?"1":"0"),O){O.setContrast(null).layout(d).setVis(!0);var k=O.getBBox(),N=A._radius;if(_){switch(g){case"inside":E-=b;break;case"foot":E-=k.height/2+b;break;default:E+=k.height+b}C=_.cx+E*(0,UY.cos)(V),E=_.cy+E*(0,UY.sin)(V)-k.height/2,this.applyAutoRotation(O,V,_.total,u.options.totalAngle)}else switch(g){case"inside":E-=k.height/2+b;break;case"foot":E+=b+(a?N:0);break;default:E-=k.height+b+(a?N:0)}switch(v){case"left":C-=k.width+(a?N:0)+m;break;case"right":C+=(a?N:0)+m;break;default:C-=k.width/2+m}this._checkLabelOverlap(O,k,L,T,N,N,C,E,!1,null),this._layoutLabelRotation(O,k)}}else O&&O.setVis(!1)}},e.prototype._layoutLines=function(e){t.prototype._layoutLines.call(this,e);var i=this._area,r=this.model;if(this._areaContainer.setVis(r._lines.length>0)){var n=this._buildAreas(r._lines,r.getLineType());i.setPath(n),i.unsetData("polar"),i.setBoolData("simple",this._simpleMode),i.internalClearStyleAndClass(),r._runColor&&i.setFill(r._runColor),this._setFill(i,r._style),r.options.areaStyle&&i.internalSetStyleOrClass(r.options.areaStyle)}},e}(qY.LineSeriesBaseView);CY.AreaRangeSeriesView=ZY;var KY={},JY=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(KY,"__esModule",{value:!0}),KY.AreaSeriesView=void 0;var QY=iM,tX=fj,eX=AW,iX=$F,rX=hj,nX=wM,oX=cI,sX=EY,aX=function(t){function e(e,i){var r=t.call(this,e,i||"rct-area-series")||this;return r._rangeAreaClips=[],r.insertFirst(r._areaContainer=new sX.LineContainer(e,"rct-area-series-areas")),r._areaContainer.insertFirst(r._area=new rX.PathElement(e,"rct-area-series-area")),r}return JY(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,i){var r=this._lowArea;if(t.prototype._prepareBelow.call(this,e,i))return r||this._areaContainer.add(r=this._lowArea=new rX.PathElement(this.doc,"rct-area-series-area")),this._area.setClip(this._upperClip),r.setClip(this._lowerClip),!0;null==r||r.setClip(),this._area.setClip()},e.prototype._prepareRanges=function(e,i){t.prototype._prepareRanges.call(this,e,i);var r=this._rangeAreas,n=this._rangeAreaClips;if(i){for(r||(r=this._rangeAreas=new eX.ElementPool(this._areaContainer,rX.PathElement,"rct-area-series-area")),r.prepare(i.length);n.length<i.length;){var o=new rX.ClipRectElement(this.doc);o.setAttr(rX.RcElement.ASSET_KEY,"1"),this.control.clipContainer().append(o.dom),n.push(o)}for(;n.length>i.length;)n.pop().remove()}else r&&(r.freeAll(),n.forEach((function(t){return t.remove()})),n.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,r){t.prototype._layoutMarkers.call(this,e,i,r);for(var n=this._inverted,o=this.model._yAxisObj,s=n?i:r,a=n?0:r,l=0,u=e.length;l<u;l++){var c=e[l];c.isNull?c.yLow=NaN:c.yLow=a-o.getPos(s,c.yGroup-c.yValue)}this._polar&&this._layoutPolar(this._area,this._visPoints)},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.$_layoutArea(this._area)},e.prototype.$_layoutArea=function(t){var e=this,i=this.model,r=i.options;if(this._areaContainer.setVis(i._areas.length>0)){var n=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,r){var a=i._runRanges[r];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[r]),e._clipRange(n,o,i._runRangeValue,a,e._rangeAreaClips[r],s)})):(t.setPath(l),t.unsetData("polar"),t.setBoolData("simple",this._simpleMode),t.internalClearStyleAndClass(),i._runColor&&t.internalSetStyle(nX.FILL,i._runColor),this._setFill(t,r.style),i.options.areaStyle&&t.internalSetStyleOrClass(r.areaStyle)),a&&(a.setBoolData("simple",this._simpleMode),a.setPath(l),a.internalClearStyleAndClass(),i._runColor&&a.internalSetStyle(nX.FILL,i._runColor),r.areaStyle&&a.internalSetStyleOrClass(r.areaStyle),this._setFill(a,i.options.belowStyle),r.belowAreaStyle&&a.internalSetStyleOrClass(r.belowAreaStyle))}},e.prototype._layoutPolar=function(t,e){var i=this.model,r=i._group,n=i._yAxisObj,o=n instanceof oX.LinearAxis?i.getBaseValue(n):NaN,s=this._polar,a=s.cx,l=s.cy,u=this._lowArea,c=new iX.PathBuilder;if(!r||"stack"!==r.options.layout&&"fill"!==r.options.layout){c.move((0,QY.pickNum)(e[0].xPos,a),(0,QY.pickNum)(e[0].yPos,l));for(h=1;h<e.length;h++)c.line((0,QY.pickNum)(e[h].xPos,a),(0,QY.pickNum)(e[h].yPos,l));this._needBelow&&!isNaN(o)&&c.circle(a,s.cy,n.getPos(s.rd,o)*this._getGrowRate());var p=c.end();t.setPath(p),null==u||u.setPath(p)}else{c.move((0,QY.pickNum)(e[0].xPos,a),(0,QY.pickNum)(e[0].yLow,l)),c.line((0,QY.pickNum)(e[0].xPos,a),(0,QY.pickNum)(e[0].yPos,l));for(var h=1;h<e.length;h++)c.line((0,QY.pickNum)(e[h].xPos,a),(0,QY.pickNum)(e[h].yPos,l));c.line((0,QY.pickNum)(e[e.length-1].xPos,a),(0,QY.pickNum)(e[e.length-1].yLow,l));for(var h=e.length-1;h>=0;h--)c.line((0,QY.pickNum)(e[h].xPos,a),(0,QY.pickNum)(e[h].yLow,l));t.setPath(c.end())}t.setBoolData("polar",!0),t.clearStyleAndClass(),t.setFill(i._runColor),t.addStyleOrClass(i._style),u&&(u.setBoolData("polar",!0),u.clearStyleAndClass(),u.setFill(i._runColor),u.addStyleOrClass(i._style),u.internalSetStyleOrClass(i.options.belowStyle),tX.Dom.setImportantStyle(u.dom.style,nX.STROKE,"none"))},e}(sX.LineSeriesBaseView);KY.AreaSeriesView=aX;var lX={},uX=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(lX,"__esModule",{value:!0}),lX.BarRangeSeriesView=void 0;var cX=iM,pX=AW,hX=XU,fX=function(t){function e(e){var i=t.call(this,e,"rct-barrange-series")||this;return i._bars=new pX.ElementPool(i._pointContainer,hX.BarElement),i}return uX(e,t),e.prototype._getPointPool=function(){return this._bars},e.prototype._prepareSeries=function(e,i,r,n){t.prototype._prepareSeries.call(this,e,i,r,n),this._rd=+i.options.cornerRadius||0},e.prototype._preparePoints=function(t,e,i){var r=this;this._bars.prepare(i.length,(function(t,n){var o=t.point=i[n];r._setPointStyle(t,e,o)}))},e.prototype._getLowValue=function(t){return t.lowValue},e.prototype._layoutPoint=function(t,e,i,r,n,o){t.wPoint=n*(0,cX.pickNum)(t.point.width,1),t.hPoint=o,t.layout(i,r+o,this._rd,this._rd,0,0,this._inverted)},e}(hX.RangedSeriesView);lX.BarRangeSeriesView=fX;var dX={},_X=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),yX=t&&t.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s},gX=t&&t.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(dX,"__esModule",{value:!0}),dX.BarSeriesView=dX.BarSeriesViewBase=void 0;var vX=iM,mX=AW,bX=XU,wX=function(t){function e(e){return t.call(this,e,bX.SeriesView.POINT_CLASS)||this}return _X(e,t),e.prototype.savePrevs=function(){},e}(zU.SectorElement),xX=function(t){function e(){var e=t.apply(this,gX([],yX(arguments),!1))||this;return e._labelInfo={},e}return _X(e,t),e.prototype._getPointPool=function(){return this.chart().isPolar()?this._sectors:this._bars},e.prototype._preparePoints=function(t,e,i,r){e.chart.isPolar()?this.$_parepareSectors(t,e,this._visPoints):this.$_parepareBars(t,e,this._visPoints,r)},e.prototype._setPointStyle=function(e,i,r){t.prototype._setPointStyle.call(this,e,i,r),r.yValue<i.getBaseValue(i._yAxisObj)&&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,r){var n=this;r!=this._deep&&this._bars&&(this._bars.prepare(0),this._bars=null),this._bars||(this._bars=this._createBarPool(this._pointContainer,this._deep=r)),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 r=this;this._sectors||(this._sectors=new mX.ElementPool(this._pointContainer,wX)),this._sectors.prepare(i.length,(function(t,n){var o=t.point=i[n];r._setPointStyle(t,e,o)}))},e.prototype.$_layoutSectors=function(){var t,e,i,r,n=this,o=this.model,s=this._getGrowRate(),a=o.pointLabel,l=this._labelViews(),u=o.chart._body,c=o._xAxisObj,p=o._yAxisObj,h=u.getPolar(c),f=this._pointOff-c.polarOff(),d=c.getTotalAngle(),_=h.cx,y=h.cy;l&&(t=this._labelInfo,e=o.getLabelPos(a),i=o.getLabelOff(a.getOffset()),r=this._labelContainer._textAlign),this._sectors.forEach((function(a,u){var g=a.point;if(a.setVis(!g.isNull)){var v=p.getPos(h.rd,g.yValue)*s,m=p.getPos(h.rd,g.yGroup)*s,b=c.getUnitLen(d,g.xValue),w=o.getPointWidth(b,0),x=h.start+c.getPos(d,g.xValue);if(x+=w*f,x+=o.getPointPos(b),a.setSector({cx:_,cy:y,rx:m,ry:m,innerRadius:(m-v)/m,start:x-w/2,angle:w,clockwise:!0}),x=a.start+a.angle/2,g.xPos=_+a.rx*(0,vX.cos)(x),g.yPos=y+a.ry*(0,vX.sin)(x),l&&(t.labelView=l.get(g,0))){t.labelView.layout(r);var S=t.labelView.getBBox(),P=void 0;"outside"===e?(m=y+(a.ry+S.height+i)*(0,vX.sin)(x),P=_+(a.rx+S.width+i)*(0,vX.cos)(x)):"head"===e?(m=y+(a.ry-S.height/2-i)*(0,vX.sin)(x)-S.height/2,P=_+(a.rx-S.height/2-i)*(0,vX.cos)(x)):(m=y+.7*a.ry*(0,vX.sin)(x)-S.height/2,P=_+.7*a.rx*(0,vX.cos)(x)),"outside"!==e&&t.labelView.setContrast(a.dom),n.applyAutoRotation(t.labelView,x,h.total,c.options.totalAngle),t.labelView.trans(P-S.width/2,m)}}}))},e}(bX.BasedSeriesView);dX.BarSeriesViewBase=xX;var SX=function(t){function e(e,i){return t.call(this,e,null!=i?i:"rct-bar-series")||this}return _X(e,t),e.prototype._createBarPool=function(t,e){return e&&this._side>0?new mX.ElementPool(t,bX.Bar3DElement):new mX.ElementPool(t,bX.BarElement)},e.prototype._prepareSeries=function(e,i,r,n){t.prototype._prepareSeries.call(this,e,i,r,n);var o=i.options;this._rdTop=+o.topRadius||0,this._rdBottom=+o.bottomRadius||0},e.prototype._layoutPoint=function(t,e,i,r,n,o){t.wPoint=n*(0,vX.pickNum)(t.point.width,1),t.hPoint=o,t.layout(i,r,this._rdTop,this._rdBottom,this._base,this._side,this._inverted)},e}(xX);dX.BarSeriesView=SX;var PX={},AX=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(PX,"__esModule",{value:!0}),PX.BellCurveSeriesView=void 0;var OX=function(t){function e(e){return t.call(this,e,"rct-bellcurve-series")||this}return AX(e,t),e}(KY.AreaSeriesView);PX.BellCurveSeriesView=OX;var CX={},EX=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(CX,"__esModule",{value:!0}),CX.BoxPlotSeriesView=void 0;var VX=AW,LX=EG,TX=CB,kX=XU,NX=function(t){function e(e){return t.call(this,e,kX.SeriesView.POINT_CLASS+" rct-boxplot-point")||this}return EX(e,t),e.prototype.layout=function(t,e){var i=this.point,r=i.yValue-i.minValue,n=t/2,o=0+e-e*(i.lowValue-i.minValue)/r,s=0+e-e*(i.highValue-i.minValue)/r,a=e*(i.highValue-i.lowValue)/r;i.color&&this._box.setFill(i.color),this.x=this.tx+n,this._stemUp.setVLine(n,0,s),this._stemDown.setVLine(n,o,e),this._max.setHLine(0,t/4,3*t/4),this._min.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)/r,0,t)},e.prototype._doInitChildren=function(t){this.add(this._stemUp=new LX.LineElement(t,"rct-boxplot-point-stem")),this.add(this._stemDown=new LX.LineElement(t,"rct-boxplot-point-stem")),this.add(this._box=new TX.RectElement(t,"rct-boxplot-point-box")),this.add(this._mid=new LX.LineElement(t,"rct-boxplot-point-mid")),this.add(this._min=new LX.LineElement(t,"rct-boxplot-point-min")),this.add(this._max=new LX.LineElement(t,"rct-boxplot-point-max"))},e}(kX.RangeElement),MX=function(t){function e(e){var i=t.call(this,e,"rct-boxplot-series")||this;return i._boxes=new VX.ElementPool(i._pointContainer,NX),i}return EX(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 r=this;this._boxes.prepare(i.length,(function(t,n){var o=t.point=i[n];r._setPointStyle(t,e,o)}))},e.prototype._layoutPoint=function(t,e,i,r,n,o){t.trans(i-n/2,r),t.layout(n,o)},e}(kX.RangedSeriesView);CX.BoxPlotSeriesView=MX;var jX={},RX=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(jX,"__esModule",{value:!0}),jX.BubbleSeriesView=jX.BubbleSeriesPointView=void 0;var BX=iM,DX=AW,IX=wM,GX=XU,FX=qU,zX=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return RX(e,t),e}(GX.MarkerSeriesPointView);jX.BubbleSeriesPointView=zX;var $X=function(t){function e(e){return t.call(this,e,"rct-bubble-series")||this}return RX(e,t),e.prototype._createMarkers=function(t){return new DX.ElementPool(t,zX)},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&&FX.SeriesAnimation.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 r=e.length;this._markers.prepare(r,(function(r,n){var o=r.point=e[n];i._setPointStyle(r,t,o)}))},e.prototype._getDefaultPos=function(t){return t?"outside":"inside"},e.prototype.$_layoutMarkers=function(t,e){var i,r=this,n=this.model,o=n.options,s=this._inverted,a=n.needClip(!1),l=this._getGrowRate(),u=+o.rotation||0,c=n.pointLabel,p=c.options.position,h=c.getOffset(),f=this._labelContainer._textAlign,d=this._labelViews(),_=n._xAxisObj,y=n._yAxisObj,g=this._polar=n.chart._body.getPolar(_),v=y.prev(s?t:e),m=_.prev(g?IX.PI_2:s?e:t),b=(n._xAxisObj._vlen<n._yAxisObj._vlen?n._xAxisObj:n._yAxisObj)._vlen,w=n.getPixelMinMax(b),x=w.min,S=w.max,P=s?0:e,A=this._getDrawer(o.shape);this._markers.forEach((function(o,c){var b=o.point,w=d&&(i=d.get(b,0));if(o.setVis(!b.isNull&&!isNaN(b.zValue))){var O=(o._radius=n.getRadius(b.zValue,x,S))*l,C=void 0,E=void 0;if(g){var V=g.start+_.getPos(m,b.xValue),L=y.getPos(g.rd,b.yValue);C=g.cx+L*(0,BX.cos)(V),E=g.cy+L*(0,BX.sin)(V)}else C=_.getPos(m,b.xValue),E=P-y.getPos(v,b.yValue),s&&(C=y.getPos(v,b.yValue),E=e-_.getPos(m,b.xValue));b.xPos=C,b.yPos=E,o.setVis(!a||C>=0&&C<=t&&E>=0&&E<=e)?(o.setPath(A(O)).trans(C,E).rotate(u),w&&(i.setContrast(o.dom).layout(f),r._layoutLabelView(i,p,h,O,C,E))):w&&w.setVis(!1)}else w&&w.setVis(!1)}))},e.prototype.getNearest=function(t,e){var i=this._markers._internalItems();if(i&&i.length>0){var r=i.reduce((function(i,r){return i.distance(i._radius,t,e)<r.distance(r._radius,t,e)?i:r}));return{pv:r,dist:r.distance(r._radius,t,e)}}},e.prototype.canHover=function(t,e,i){return t<=e._radius+i},e}(GX.MarkerSeriesView);jX.BubbleSeriesView=$X;var HX={},WX=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(HX,"__esModule",{value:!0}),HX.CandlestickSeriesView=void 0;var UX=iM,YX=AW,XX=EG,qX=CB,ZX=XU,KX=function(t){function e(e){return t.call(this,e,ZX.SeriesView.POINT_CLASS)||this}return WX(e,t),e.prototype.layout=function(t,e){var i=this.point,r=i.yValue-i.lowValue,n=0+e-e*(0===r?1:((0,UX.minv)(i.openValue,i.closeValue)-i.lowValue)/r),o=0+e-e*(0===r?1:((0,UX.maxv)(i.openValue,i.closeValue)-i.lowValue)/r),s=(0,UX.minv)(o,n),a=(0,UX.maxv)(1,(0,UX.absv)(n-o)),l=i.close<i.open;this.x=this.tx+0,this._wickUpper.setVLine(0,0,o),this._wickLower.setVLine(0,n,e),this._body.setBox(-t/2,s,t,a),this.setBoolData("decline",l)},e.prototype._doInitChildren=function(t){this.add(this._wickUpper=new XX.LineElement(t,"rct-candlestick-point-wick")),this.add(this._wickLower=new XX.LineElement(t,"rct-candlestick-point-wick")),this.add(this._body=new qX.RectElement(t))},e}(ZX.RangeElement),JX=function(t){function e(e){var i=t.call(this,e,"rct-candlestick-series")||this;return i._sticks=new YX.ElementPool(i._pointContainer,KX),i}return WX(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 r=this;this._sticks.prepare(i.length,(function(t,n){var o=t.point=i[n];r._setPointStyle(t,e,o)}))},e.prototype._setPointColor=function(t,e){t._body.setColor(e)},e.prototype._setPointStyle=function(e,i,r,n){t.prototype._setPointStyle.call(this,e,i,r,n),r.closeValue<r.openValue&&i.options.declineStyle&&e.addStyleOrClass(i.options.declineStyle)},e.prototype._layoutPoint=function(t,e,i,r,n,o){t.trans(i,r),t.layout(n,o)},e}(ZX.RangedSeriesView);HX.CandlestickSeriesView=JX;var QX={},tq=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(QX,"__esModule",{value:!0}),QX.CircleBarSeriesView=void 0;var eq=AW,iq=$F,rq=dX,nq=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return tq(e,t),e.prototype.layout=function(t,e,i){var r=new iq.PathBuilder;r.circle(t,e,i),this.setPath(r.end())},e}(XU.PointElement),oq=function(t){function e(e){return t.call(this,e,"rct-circlebar-series")||this}return tq(e,t),e.prototype._createBarPool=function(t){return new eq.ElementPool(t,nq)},e.prototype._layoutPoint=function(t,e,i,r,n,o){t.layout(i,r-o/2,o/2-1)},e}(rq.BarSeriesViewBase);QX.CircleBarSeriesView=oq;var sq={},aq=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(sq,"__esModule",{value:!0}),sq.DumbbellSeriesView=void 0;var lq=AW,uq=hj,cq=EG,pq=EB,hq=XU,fq=function(t){function e(e){var i=t.call(this,e,hq.SeriesView.POINT_CLASS)||this;return i.add(i._line=new cq.LineElement(e,"rct-dumbbell-point-bar")),i.add(i._hmarker=new uq.PathElement(e,"rct-dumbbell-point-marker")),i.add(i._lmarker=new uq.PathElement(e,"rct-dumbbell-point-marker")),i}return aq(e,t),e.prototype.layout=function(t,e,i,r){var n=this._hmarker,o=this._lmarker,s=this.point,a=s.radius,l=s.lowRadius,u=i/2;t._style&&n.setStyleOrClass(t._style),t._style&&o.setStyleOrClass(t._style),e._style&&o.internalSetStyleOrClass(e._style);var c=t.getMarkerStyle(s);c&&n.internalSetStyleOrClass(c),(c=e.getMarkerStyle(s))&&o.internalSetStyleOrClass(c),n.setStyle("opacity",t.visible?"1":"0"),o.setStyle("opacity",e.visible?"1":"0"),this.x=this.tx+u,this._line.setVLine(u,0,r),pq.SvgShapes.setShape(n,s.shape,a,a),pq.SvgShapes.setShape(o,s.lowShape,l,l),n.trans(u-a,0-a),o.trans(u-l,r-a)},e}(hq.RangeElement),dq=function(t){function e(e){var i=t.call(this,e,"rct-dumbbell-series")||this;return i._bars=new lq.ElementPool(i._pointContainer,fq),i}return aq(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 r=this;this._bars.prepare(i.length,(function(t,n){var o=t.point=i[n];r._setPointStyle(t,e,o)}))},e.prototype._layoutPoint=function(t,e,i,r,n,o){t.trans(i-n/2,r),t.layout(this.model.marker,this.model.lowMarker,n,o)},e.prototype._setPointColor=function(t,e){t._line.setStyle("stroke",e),t._hmarker.setFill(e),t._lmarker.setFill(e)},e}(hq.RangedSeriesView);sq.DumbbellSeriesView=dq;var _q={},yq=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(_q,"__esModule",{value:!0}),_q.EqualizerSeriesView=void 0;var gq=AW,vq=hj,mq=EB,bq=XU,wq=function(t){function e(e){var i=t.call(this,e,bq.SeriesView.POINT_CLASS)||this;return i._segments=new gq.ElementPool(i,vq.PathElement),i._decimal=0,i.add(i._back=new vq.PathElement(e)),i._back.setTransparent(!0),i}return yq(e,t),e.prototype.prepareSegments=function(t,e,i,r){this._decimal=i,this._segments.prepare(Math.round(e)).forEach((function(t,e){}))},e.prototype.layout=function(t,e,i){var r=this,n=this.wPoint,o=this.hPoint,s=o<0?Math.max:Math.min;e-=n/2,o<0&&(t=t.map((function(t){return-t}))),this._back.setPath(mq.SvgShapes.rectangle(e,i,n,-o)),this._segments.forEach((function(a,l,u){l===u-1&&r._decimal>0?a.setPath(mq.SvgShapes.rectangle(e,i-t[2*l],n,o<0?s(1,r._decimal):s(-1,-r._decimal))):a.setPath(mq.SvgShapes.rectangle(e,i-t[2*l],n,s(-1,t[2*l]-t[2*l+1])))}))},e.prototype.savePrevs=function(){this.wSave=this.wPoint,this.xSave=this.x},e}($W.GroupElement),xq=function(t){function e(e){var i=t.call(this,e,"rct-equalizer-series")||this;return i._bars=new gq.ElementPool(i._pointContainer,wq),i}return yq(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 r=this.model._yAxisObj.prev(this._inverted?e:i)*this._getGrowRate();this.$_buildSegments(this.model,r),t.prototype._layoutPoints.call(this,e,i)},e.prototype._layoutPoint=function(t,e,i,r,n,o){var s=this._prevRate;isNaN(s+t.wSave)||(n=t.wSave+(n-t.wSave)*s),isNaN(s+t.xSave)||(i=t.xSave+(i-t.xSave)*s),t.wPoint=n,t.hPoint=o,t.layout(this._pts,i,r)},e.prototype.$_parepareBars=function(t,e){var i=this;this._bars.prepare(e.length,(function(r,n){var o=r.point=e[n];i._setPointStyle(r,t,o)}))},e.prototype.$_buildSegments=function(t,e){var i,r,n=t.options,o=t._yAxisObj.axisMax(),s=n.segmented,a=n.segmentGap||0,l=this._pts=[],u=0,c=t._yAxisObj,p=c.axisMin(),h=t.getBaseValue(c)||0,f=c.getPos(c.options.reversed?0:e,h);for(r=n.maxCount>0?n.maxCount:Math.round(e/(t.getSegmentSize(e)+a/2)),i=(e-a*(r-1))/r;l.length<2*r;)l.push(u,u+i),u+=i+a;l[l.length-1]=e;var d=l.length/2;this._bars.forEach((function(t){var r=t.point;if(t.setVis(!r.isNull)){for(var a=r.yValue>=h?(e-f)/e*(r.yValue-h)/(o-h):f/e*(h-r.yValue)/(h-p),u=-1,c=0,_=0;_<d-1;_++)if(a>=l[2*_]/e&&a<l[2*(_+1)]/e){u=_+1,c=!s&&a<l[2*_+1]/e?a*e-l[2*_]:i;break}u<0&&(u=d,c=i),0===a&&(u=0),t.prepareSegments(d,u,c,n.backStyle)}}))},e}(bq.BasedSeriesView);_q.EqualizerSeriesView=xq;var Sq={},Pq=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(Sq,"__esModule",{value:!0}),Sq.ErrorBarSeriesView=void 0;var Aq=AW,Oq=EG,Cq=CB,Eq=XU,Vq=function(t){function e(e){return t.call(this,e,Eq.SeriesView.POINT_CLASS)||this}return Pq(e,t),e.prototype._doInitChildren=function(t){this.add(this._stem=new Oq.LineElement(t)),this.add(this._whiskerUp=new Oq.LineElement(t)),this.add(this._whiskerDown=new Oq.LineElement(t)),this.add(this._back=new Cq.RectElement(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}(Eq.RangeElement),Lq=function(t){function e(e){var i=t.call(this,e,"rct-errorbar-series")||this;return i._bars=new Aq.ElementPool(i._pointContainer,Vq),i}return Pq(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 r=this;this._bars.prepare(i.length,(function(t,n){var o=t.point=i[n];r._setPointStyle(t,e,o)}))},e.prototype._layoutPoint=function(t,e,i,r,n,o){t.trans(i-n/2,r),t.layout(n,o)},e}(Eq.RangedSeriesView);Sq.ErrorBarSeriesView=Lq;var Tq={},kq=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(Tq,"__esModule",{value:!0}),Tq.FunnelSeriesView=void 0;var Nq=iM,Mq=AW,jq=$F,Rq=wM,Bq=XU,Dq=qU,Iq=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return kq(e,t),e}(Bq.PointElement),Gq=function(t){function e(e){var i=t.call(this,e,"rct-funnel-series")||this;return i._segments=new Mq.ElementPool(i._pointContainer,Iq),i.add(i._lineContainer=new Bq.PointLabelLineContainer(e)),i}return kq(e,t),e.prototype._getPointPool=function(){return this._segments},e.prototype.getClipContainer=function(){return null},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&&Dq.SeriesAnimation.reveal(this,{from:this.model.options.reversed?"bottom":"top"})},e.prototype._refreshZombie=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 r=this;this._segments.prepare(i.length,(function(n,o){var s=n.point=i[o];r._preparePoint(t,e,s,n)}))},e.prototype.$_calcRates=function(t){var e=this._zombie,i=this._zombieRate,r=t.length,n=0,o=0;if(t.forEach((function(t){n+=t.yValue*(t===e?i:t._isDeleted()?t._vr:1)})),r>1||r>0&&!e)if(1==r&&t[0]._isDeleted())(a=t[0]).yRate=100,a.yPos=0,a.height=a._vr;else if(1===r&&t[0]._vr<1){(a=t[0]).yRate=100,a.yPos=0,a.height=a._vr}else{for(var s=0;s<r-1;s++){var a=t[s],l=(0,Rq.fixnum)(a.yValue*(a===e?i:a._isDeleted()?a._vr:1)/n)||0;a.yRate=100*l,a.yPos=o,a.height=l,o+=l}t[s].yPos=o,t[s].height=1-o}else if(1==r){a=t[0];o=1-(l=(0,Rq.fixnum)(i)),a.yRate=100*l,a.yPos=o,a.height=l,a.yPos=o,a.height=1-o}},e.prototype.$_layoutSegments=function(t,e){var i,r,n=this,o=function(t){return _?w+(O-w)*(S-t)/(S-C):w+(O-w)*(t-x)/(C-x)},s=this.model,a=this._labelViews(),l=s.pointLabel,u="inside"===s.getLabelPos(l),c=l.getOffset(),p=l.getDistance(),h=l.getAlign(),f=null==a?void 0:a.textAlign(),d=this._lineContainer.setVis(l.connector.visible)?this._lineContainer:null,_=s.options.reversed,y=l.options.opposite,g=s.getSize(t,e),v=s.getNeckSize(g.width,g.height),m=new jq.PathBuilder,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,A=g.height-v.height,O=w+(g.width-v.width)/2,C=_?S-A:x+A,E=[],V=new jq.PathBuilder,L=(null==a?void 0:a.getWidth(0))||0;this._lineContainer.setStyleOrClass(l.connector.options.style),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,T=_?S-b:x+b,k=_?S-w:x+w,N=w<A,M=void 0,j=void 0,R=void 0,B=void 0;if(r=null==d?void 0:d.get(l),b>=A?(j=(M=O)+v.width,m.move(M,T).lines(j,T,j,k,M,k),s.ny=s.nx1=NaN):N?(j=(M=o(T))+2*(P-M),B=(R=o(k))+2*(P-R),m.move(M,T).lines(j,T,B,k,R,k),s.ny=NaN,s.nx1=R-M,s.nx2=B-M):(j=(M=o(T))+2*(P-M),B=(R=O)+v.width,m.move(M,T).lines(j,T,B,C,B,k,R,k,R,C),s.nx1=R-M,s.nx2=B-M,s.ny=(0,Nq.absv)(C-T),s.nx3=R,s.nx4=B),s.setPath(m.close(!0)),l.xPos=P,l.yPos=T+(k-T)/2,a&&(i=a.get(l,0))&&i.visible){if(u){null==r||r.setVis(!1);var D=i.isDomAnimating(),I=i.getBBox(),G=N?(j-M+(B-R))/2:v.width;switch(!D&&i.layout(f||"center"),h){case-1:i.trans(l.xPos-G/2+c,l.yPos-I.height/2);break;case 1:i.trans(l.xPos+G/2-I.width-c,l.yPos-I.height/2);break;default:i.trans(l.xPos-I.width/2,l.yPos-I.height/2)}}else-1===h?n.$_layoutLabelAligned(!1,l,s,i,f,y,r,V,g,P,c,p):1==h?n.$_layoutLabelEnded(!1,l,s,i,f,y,r,V,P,c,p,L,t,e):n.$_layoutLabelOutside(!1,l,s,i,f,y,r,V,P,c,p);i.setContrast(u&&s.dom),E.push(i),i.setPosY(i.ty),n._layoutLabelRotation(i)}else r&&r.setVis(!1)}}));var T=l.options.convergent,k=l.options.dedupeMode,N=l.options.overflow;a&&(u||0===h?"preserveOrder"!==k&&"largestFirst"!==k||a.dedupe(E,d,k):(null==a?void 0:a.arrangeVertical(this,E,d,e,T,k,N))&&this._segments.forEach((function(o){var s=o.point;s.isNull||(i=a.get(s,0),r=null==d?void 0:d.get(s),(null==i?void 0:i.visible)&&(-1===h?n.$_layoutLabelAligned(!0,s,o,i,f,y,r,V,g,P,c,p):1==h?n.$_layoutLabelEnded(!0,s,o,i,f,y,r,V,P,c,p,L,t,e):n.$_layoutLabelOutside(!0,s,o,i,f,y,r,V,P,c,p)))})))},e.prototype.$_calcX=function(t,e,i,r){var n=e.getBBox(),o=r?-1:1,s=n.height,a=i+o*n.width/2;return isNaN(e.ny)?isNaN(e.nx1)||(a-=0===s?0:o*(e.nx1*s/2)/s):e.ny>n.height/2?a-=o*(e.nx1*s/2)/e.ny:a=r?e.nx3:e.nx4,a},e.prototype.$_layoutLabelAligned=function(t,e,i,r,n,o,s,a,l,u,c,p){var h=r.isDomAnimating(),f=t?r.getBBoxEx():r.getBBox(),d=e.yPos;!t&&!h&&r.layout(n||(o?"right":"left"));var _=e.xPos=this.$_calcX(e,i,u,o),y=u;if(o?y-=l.width/2:y+=l.width/2,s){var g=t?f.y+f.height/2-d:0;o?s.setLine(a.reset(0,0).line(y-_-p,g).end()):s.setLine(a.reset(0,0).line(y+p-_,g).end()),s.trans(_,d)}t||(o?y-=c+p+f.width:y+=p+c,r.trans(y,d-f.height/2))},e.prototype.$_layoutLabelEnded=function(t,e,i,r,n,o,s,a,l,u,c,p,h,f){var d=r.isDomAnimating(),_=t?r.getBBoxEx():r.getBBox(),y=e.yPos;!t&&!d&&r.layout(n||(o?"right":"left"));var g,v=e.xPos=this.$_calcX(e,i,l,o);if(g=o?c+u+p:h-c-p-u,s){var m=t?_.y+_.height/2-y:0;o?s.setLine(a.reset(0,0).line(g-v-c,m).end()):s.setLine(a.reset(0,0).line(g+c-v,m).end()),s.trans(v,y)}t||(o?g-=u+c+_.width:g+=c+u,r.trans(g,y-_.height/2))},e.prototype.$_layoutLabelOutside=function(t,e,i,r,n,o,s,a,l,u,c){var p=r.isDomAnimating(),h=t?r.getBBoxEx():r.getBBox(),f=e.yPos;!t&&!p&&r.layout(n||(o?"right":"left"));var d=this.$_calcX(e,i,l,o);if(s){var _=t?h.y+h.height/2-f:0;o?s.setLine(a.reset(0,0).line(-c,_).end()):s.setLine(a.reset(0,0).line(c,_).end()),s.trans(d,f)}t||(o?d-=c+u+h.width:d+=c+u,r.trans(d,f-h.height/2))},e}(Bq.WidgetSeriesView);Tq.FunnelSeriesView=Gq;var Fq={},zq=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(Fq,"__esModule",{value:!0}),Fq.HistogramSeriesView=void 0;var $q=iM,Hq=AW,Wq=EB,Uq=XU,Yq=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return zq(e,t),e.prototype.layout=function(t,e){this.setPath(Wq.SvgShapes.rect({x:t-this.wPoint/2,y:e,width:this.wPoint,height:-this.hPoint}))},e}(Uq.BoxPointElement),Xq=function(t){function e(e){var i=t.call(this,e,"rct-histogram-series")||this;return i._bars=new Hq.ElementPool(i._pointContainer,Yq),i}return zq(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,r,n,o){t.wPoint=n,t.hPoint=o,t.layout(i,r)},e.prototype._layoutPoints=function(t,e){var i=this,r=this.model,n=this._inverted,o=this._getGrowRate(),s=r.pointLabel,a=this._labelViews(),l=r._xAxisObj,u=r._yAxisObj,c=n?t:e,p=n?e:t,h=u.getPos(c,r.getBaseValue(u)),f=n?0:e,d=a&&(0,$q.assignObj)(this._labelInfo,{inverted:n,labelPos:r.getLabelPos(s),labelOff:r.getLabelOff(s.getOffset()),textAlign:this._labelContainer._textAlign,distX:0,distY:0,side:0,base:0});this._getPointPool().forEach((function(r,_){var y=r.point,g=l.getPos(p,y.min),v=l.getPos(p,y.max),m=u.getPos(c,y.yValue),b=v-g+(v>g?-1:1),w=m-h,x=g+(v-g)/2,S=f;y.xPos=x,y.yPos=S-=m,i._layoutPoint(r,_,x,S+w,b,w*o),d&&(d.labelView=a.get(y,0))&&(n&&(S=p-x,x=f,y.yPos=S,y.xPos=x+=u.getPos(c,y.yGroup)),d.pointView=r,d.x=x,d.y=S,d.wPoint=b,d.hPoint=w,i._layoutLabel(s,d,t,e))}))},e.prototype.$_parepareBars=function(t,e,i){var r=this;this._bars.prepare(i.length,(function(t,n){var o=t.point=i[n];r._setPointStyle(t,e,o)}))},e.prototype.$_layoutBars=function(t,e){var i=this.model._xAxisObj,r=this.model._yAxisObj,n=this.height,o=this._getGrowRate();this._bars.forEach((function(s,a){var l=s.point,u=i.getPos(t,l.min),c=i.getPos(t,l.max),p=u+(c-u)/2,h=r.getPos(e,s.point.yValue)*o,f=(0,$q.maxv)(1,c-u-1);l.xPos=p,l.yPos=n-h,s.wPoint=f,s.hPoint=h,s.layout(p,n)}))},e}(Uq.ClusterableSeriesView);Fq.HistogramSeriesView=Xq;var qq={},Zq=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(qq,"__esModule",{value:!0}),qq.LollipopSeriesView=void 0;var Kq=AW,Jq=hj,Qq=EG,tZ=EB,eZ=XU,iZ=function(t){function e(e){var i=t.call(this,e,eZ.SeriesView.POINT_CLASS)||this;return i.add(i._line=new Qq.LineElement(e,"rct-lollipop-point-bar")),i.add(i._marker=new Jq.PathElement(e,"rct-lollipop-point-marker")),i}return Zq(e,t),e.prototype.layout=function(t){var e,i=null!==(e=this.point.radius)&&void 0!==e?e:0;this._line.setVLine(0,0,t),tZ.SvgShapes.setShape(this._marker,this.point.shape,i,i),this._marker.trans(-i,-i)},e.prototype.savePrevs=function(){this.xSave=this.tx},e}($W.GroupElement),rZ=function(t){function e(e){return t.call(this,e,"rct-lollipop-series")||this}return Zq(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,r,n,o){t.trans(i,r-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 r=this,n=e.marker,o=n._style;n.options.styleCallback,this._bars||(this._bars=new Kq.ElementPool(this._pointContainer,iZ)),this._bars.prepare(i.length,(function(t,s){var a=t.point=i[s];r._setPointStyle(t,e,a),o&&t._marker.setStyleOrClass(o);var l=n.getMarkerStyle(a);l&&t.internalSetStyleOrClass(l)}))},e}(eZ.BasedSeriesView);qq.LollipopSeriesView=rZ;var nZ={},oZ=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(nZ,"__esModule",{value:!0}),nZ.OhlcSeriesView=void 0;var sZ=iM,aZ=AW,lZ=EG,uZ=CB,cZ=XU,pZ=function(t){function e(e){return t.call(this,e,cZ.SeriesView.POINT_CLASS)||this}return oZ(e,t),e.prototype.layout=function(t,e){var i=this.point,r=i.yValue-i.lowValue,n=-t/2,o=0+e-e*((0,sZ.minv)(i.openValue,i.closeValue)-i.lowValue)/r,s=0+e-e*((0,sZ.maxv)(i.openValue,i.closeValue)-i.lowValue)/r,a=i.close<i.open;this.x=this.tx+0,this._back.setBox(n,0,t,e),this._tickOpen.setHLine(o,n,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 lZ.LineElement(t,"rct-ohlc-point-tick")),this.add(this._tickClose=new lZ.LineElement(t,"rct-ohlc-point-tick")),this.add(this._bar=new lZ.LineElement(t)),this.add(this._back=new uZ.RectElement(t,"rct-ohlc-point-back")),this._back.setTransparent(!1)},e}(cZ.RangeElement),hZ=function(t){function e(e){var i=t.call(this,e,"rct-ohlc-series")||this;return i._sticks=new aZ.ElementPool(i._pointContainer,pZ),i}return oZ(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,r,n,o){t.trans(i,r),t.layout(n,o)},e.prototype._setPointStyle=function(e,i,r,n){t.prototype._setPointStyle.call(this,e,i,r,n),r.closeValue<r.openValue&&i.options.declineStyle&&e.addStyleOrClass(i.options.declineStyle)},e.prototype.$_prepareSticks=function(t,e){var i=this;this._sticks.prepare(e.length,(function(r,n){var o=r.point=e[n];i._setPointStyle(r,t,o)}))},e}(cZ.RangedSeriesView);nZ.OhlcSeriesView=hZ;var fZ={},dZ=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(fZ,"__esModule",{value:!0}),fZ.ParetoSeriesView=void 0;var _Z=function(t){function e(e){return t.call(this,e,"rct-pareto-series")||this}return dZ(e,t),e}(EY.LineSeriesBaseView);fZ.ParetoSeriesView=_Z;var yZ={},gZ=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(yZ,"__esModule",{value:!0}),yZ.PieSeriesView=void 0;var vZ=rM,mZ=EB,bZ=uj,wZ=iM,xZ=AW,SZ=$F,PZ=hj,AZ=wM,OZ=kU,CZ=zU,EZ=lj,VZ=BB,LZ=oU,TZ=XU,kZ=qU,NZ=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return gZ(e,t),e.prototype.setOff=function(t){return this.off=(0,wZ.absv)(t),this},e}(PZ.PathElement),MZ=function(t){function e(e){return t.call(this,e,TZ.SeriesView.POINT_CLASS)||this}return gZ(e,t),e.prototype.render=function(t,e,i){this._assignShape(i,!1)},e}(CZ.SectorElement),jZ=function(t){function e(e){var i=t.call(this,e,TZ.SeriesView.POINT_CLASS)||this;return i._outPath={},i._inPath={},i.add(i._sectorView=new CZ.SectorElement(e)),i}return gZ(e,t),e.prototype.setSides=function(t,e,i,r,n){var o=this.point,s=(0,AZ.fixnum)(AZ.PI),a=(0,AZ.fixnum)(((t?o.startAngle:o.startAngle+o.angle)+AZ.PI/2+AZ.PI_2)%AZ.PI_2),l=(0,AZ.fixnum)(a+(t?o.angle:-o.angle)-1e-4+AZ.PI_2)%AZ.PI_2,u=s-(a+(0,wZ.absv)(a-l)/2);this._side1View=e.setOff(s-a),this._side2View=i.setOff(s-l),a<=AZ.PI/2&&!(l>=a&&l<AZ.PI/2)||l>=3*AZ.PI/2&&!(a<l&&a>3*AZ.PI/2)?(this._outArcView=r.setOff((0,wZ.minv)(e.off,i.off)),this._inArcView=n.setOff(1/0)):a>=3*AZ.PI/2&&l<=AZ.PI/2?(this._outArcView=r.setOff(1/0),this._inArcView=n.setOff(u)):a>=AZ.PI/2&&l<=3*AZ.PI/2?(this._outArcView=r.setOff((0,wZ.minv)(this._side2View.off,this._side1View.off)),this._inArcView=n.setOff(1/0)):(this._outArcView=r.setOff(u),a>=0&&a<=AZ.PI&&this._outArcView.setOff((0,wZ.minv)(this._outArcView.off,this._side1View.off)),l>=AZ.PI&&l<AZ.PI_2&&this._outArcView.setOff((0,wZ.minv)(this._outArcView.off,this._side2View.off)),this._inArcView=n.setOff(u))},e.prototype.render=function(t,e,i){var r=mZ.SvgShapes.isCircled(i.angle),n=getComputedStyle(this._sectorView.dom).fill,o=i.innerRadius>0,s=i.depth,a=this._outPath,l=this._inPath,u=i.clockwise?i.angle:-i.angle;vZ.isIE&&(n=this.control.getIEColor(n)),this._outArcView.setPath(mZ.SvgShapes.arc3d(i.cx,i.cy,i.rx,i.ry,s,i.start,i.start+u,i.clockwise,a)),this._inArcView.setVis(o)&&this._inArcView.setPath(mZ.SvgShapes.arc3dInner(i.cx,i.cy,i.rx*i.innerRadius,i.ry*i.innerRadius,s,i.start,i.start+u,i.clockwise,l)),this._side1View.setVis(!r),this._side2View.setVis(!r),this._side1View.visible&&(o?(this._side1View.setPath(mZ.SvgShapes.polygon(l.x1,l.y1,a.x1,a.y1,a.x1,a.y1+s,l.x1,l.y1+s)),this._side2View.setPath(mZ.SvgShapes.polygon(a.x2,a.y2,l.x2,l.y2,l.x2,l.y2+s,a.x2,a.y2+s))):(this._side1View.setPath(mZ.SvgShapes.polygon(i.cx,i.cy,a.x1,a.y1,a.x1,a.y1+s,i.cx,i.cy+s)),this._side2View.setPath(mZ.SvgShapes.polygon(i.cx,i.cy,a.x2,a.y2,a.x2,a.y2+s,i.cx,i.cy+s)))),this._sectorView._assignShape(i,!1),this._side1View.setStyle("fill",bZ.Color.interpolate("#000",n,.2)),this._side2View.setStyle("fill",bZ.Color.interpolate("#000",n,.2)),this._inArcView.visible&&this._inArcView.setStyle("fill",bZ.Color.interpolate("#000",n,.2)),this._outArcView.setStyle("fill",bZ.Color.interpolate("#000",n,.1))},e.prototype.focusView=function(t){this._side1View.setBoolData(TZ.SeriesView.DATA_FOCUS,t),this._side2View.setBoolData(TZ.SeriesView.DATA_FOCUS,t),this._inArcView.setBoolData(TZ.SeriesView.DATA_FOCUS,t),this._outArcView.setBoolData(TZ.SeriesView.DATA_FOCUS,t)},e.prototype.contains=function(e){return t.prototype.contains.call(this,e)||this._side1View.contains(e)||this._side2View.contains(e)||this._inArcView.contains(e)||this._outArcView.contains(e)},e.prototype.setVis=function(e){return this._side1View.setVis(e),this._side2View.setVis(e),this._inArcView.setVis(e),this._outArcView.setVis(e),t.prototype.setVis.call(this,e)},e.prototype.addClass=function(e){return this._side1View&&(this._side1View.addClass(e),this._side2View.addClass(e),this._inArcView.addClass(e),this._outArcView.addClass(e)),t.prototype.addClass.call(this,e)},e.prototype.removeClass=function(e){return this._side1View&&(this._side1View.removeClass(e),this._side2View.removeClass(e),this._inArcView.removeClass(e),this._outArcView.removeClass(e)),t.prototype.removeClass.call(this,e)},e.prototype.trans=function(e,i){return this._side1View.trans(e,i),this._side2View.trans(e,i),this._inArcView.trans(e,i),this._outArcView.trans(e,i),t.prototype.trans.call(this,e,i)},e.prototype.transEx=function(e,i,r,n){return this._side1View.transEx(e,i,r,n),this._side2View.transEx(e,i,r,n),this._inArcView.transEx(e,i,r,n),this._outArcView.transEx(e,i,r,n),t.prototype.transEx.call(this,e,i,r,n)},e}(PZ.RcElement),RZ=function(t){function e(e){var i=t.call(this,e,"rct-pie-series")||this;return i._deep=!1,i._pb=new SZ.PathBuilder,i._cx=0,i._cy=0,i._depth=0,i._ratio=1,i._rx=0,i._ry=0,i._rxInner=0,i._ryInner=0,i._slicedOff=0,i.add(i._circle=new OZ.CircleElement(e)),i._circle.setStyles({stroke:"#aaa",fill:"none",strokeDasharray:"2"}),i.add(i._textView=new LZ.ChartTextElement(e,"rct-pie-series-inner")),i._textView._text.anchor=EZ.TextAnchor.MIDDLE,i._pointContainer.add(i._sideContainer=new PZ.LayerElement(e,"rct-pie-series-sides")),i._labelContainer.add(i._lineContainer=new TZ.PointLabelLineContainer(e)),i}return gZ(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 r=i.innerText,n=i.depth.getLength()>0;this._depth=i.depth.getLength(),this._ratio=this._depth>0?i.depth.options.ratio:1,this.setBoolData("deep",n),this.$_prepareSectors(e,i,this._visPoints,n),this._lineContainer.prepare(i),this._textView.setVis(i.hasInner()&&r.visible)&&(this._textView.setModel(e,r,r.options.icon?r.getUrl(r.options.icon):null,null),r.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._deep?(this._ry=this._rx*this._ratio,this._ryInner=this._rxInner*this._ratio):(this._ry=this._rx,this._ryInner=this._rxInner),this.$_layoutSectors(this._visPoints,t,e)},e.prototype.$_calcNormal=function(t,e){this._rx=this.model.getRadius(t,e),this._rxInner=this.model.getInnerRadius(this._rx)},e.prototype.$_calcGroup=function(t,e){var i=this.model,r=i._group,n=Math.floor(r.getPolarSize(t,e)/2),o=r.getInnerRadius(n)*n,s=n-o;this._rx=o+(i._groupPos+i._groupSize)*s,this._rxInner=(o+i._groupPos*s)/this._rx},e.prototype._runShowEffect=function(t){var e=this;t&&kZ.SeriesAnimation.grow(this,(function(t){var i=e._sectors.count>1&&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 MZ||t instanceof jZ)&&this.model.options.autoSlice){var e=this._sectors.count>1&&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._refreshZombie=function(){this._renderSeries(this.width,this.height)},e.prototype.focusPointView=function(t,e){t instanceof jZ&&t.focusView(e)},e.prototype.getClipContainer=function(){return null},e.prototype.$_prepareSectors=function(t,e,i,r){var n=this,o=i.length,s=this._sides;r!=this._deep&&this._sectors&&(this._sectors.prepare(0),this._sectors=null,s&&(s.prepare(0),s=this._sides=null)),this._sectors||(r?(this._sectors=new xZ.ElementPool(this._pointContainer,jZ,null),s=this._sides=new xZ.ElementPool(this._sideContainer,NZ,"rct-pie-series-side")):this._sectors=new xZ.ElementPool(this._pointContainer,MZ,null)),this._deep=r,s&&s.prepare(4*o,(function(t,e){return t.index=e})),this._sectors.prepare(o,(function(r,o){var s=r.point=i[o];n._preparePoint(t,e,s,r)}))},e.prototype.$_calcAngles=function(t){var e=this._zombie,i=this._zombieRate,r=t.length,n=this._model.options.clockwise?1:-1,o=t.filter((function(t){return(t.visible||t===e)&&!t.isNull})).map((function(t){return t.yValue*(t===e?i:t._isDeleted()?t._vr:1)})).reduce((function(t,e){return t+e}),0),s=this.model._totalRad*this._getGrowRate(),a=this.model._startRad%AZ.PI_2;if(r>1||r>0&&!e)t.forEach((function(t){1===r&&t._isDeleted()||1===r&&t._vr<1?(t.startAngle=a,t.angle=s*n*t._vr,t.yRate=100):t.isNull||(t.yRate=(0,AZ.fixnum)(t.yValue*(t===e?i:t._isDeleted()?t._vr:1)/o)||0,t.startAngle=a,a+=t.angle=n*t.yRate*s,t.yRate*=100)}));else if(1==r){var l=t[0];l.startAngle=a,l.angle=n*i*s,l.yRate=100}},e.prototype.$_layoutSectors=function(t,e,i){var r,n,o=this,s=this.model,a=s.options.clockwise,l=this._getGrowRate(),u=s.getCenter(e,i),c=this._cx=u.x,p=this._cy=u.y,h=this._rx,f=this._rxInner,d=this._depth,_=this._ratio,y=this._sides,g=s.pointLabel,v=g.connector.options.curved,m=this._labelViews(),b="inside"===s.getLabelPos(g),w=(0,wZ.pickNum)(g.options.radius,.7),x=this._pb,S=g.getDistance(b,h,f),P=g.getAlign(),A=null==m?void 0:m.textAlign(),O=this._lineContainer.setVis(g.connector.visible)?this._lineContainer:null,C=this._slicedOff=s.getSliceOffset(h)*l,E=[],V=[],L=[],T=(null==m?void 0:m.getWidth(0))||0,k=this._sectors.count;if(this._lineContainer.setStyleOrClass(g.connector.options.style),!m||A||P||(A="center"),this._textView.visible){var N=this._textView._icon,M=this._textView._text.getBBox(),j=c,R=p;if(N){var B=(0,wZ.pickNum)(this.model.innerText.options.iconGap,0),D=M.width,I=M.height,G=N.getBBox(),F=G.width,z=G.height;switch(this.model.innerText.getIconPos()){case"right":N.trans(D/2+B,(I-z)/2),j-=(F+B)/2;break;case"top":N.trans(F/-2,-(z+B)),R+=z+B/2;break;case"bottom":N.trans(F/-2,I+B),R-=(z+B)/2;break;default:N.trans(-(D/2+F+B),(I-z)/2),j+=(F+B)/2}}this._textView.trans(j,R-M.height/2)}this._circle.setVis(this._sectors.isEmpty)&&this._circle.setCircle(this._cx,this._cy,this._rx),this.$_calcAngles(t),this._sectors.forEach((function(t,u){var g=t.point;if(y){var N=4*u;t.setSides(a,y.get(N),y.get(N+1),y.get(N+2),y.get(N+3))}if(n=null==O?void 0:O.get(g),g.isNull)t.setVis(!1),m&&(r=m.get(g,0))&&r.setVis(!1),null==n||n.setVis(!1);else{var M=k>1&&g.sliced,j=g.startAngle,R=j+g.angle/2,B=0,D=0;if(M&&l>=1&&!t.isDomAnimating()&&(B+=(0,wZ.cos)(R)*C,D+=(0,wZ.sin)(R)*C),t.trans(B,D).setVis(!0),g.xPos=c+(0,wZ.cos)(R)*(C+h*w),g.yPos=p+(0,wZ.sin)(R)*(C+h*w),t.render(m,null,{cx:c,cy:p,rx:h,ry:h*_,innerRadius:f,start:j,angle:(0,wZ.absv)(g.angle),clockwise:a,depth:d}),m&&(r=m.get(g,0))){var I=s.getLabelOff2(g);b?(null==n||n.setVis(!1),o.$_layoutLabelInside(g,r,A,I,S,M?C:0)):(-1===P?o.$_layoutLabelAligned(!1,g,r,A,n,x,v,I,S,M?C:0):1==P?o.$_layoutLabelEnded(!1,g,r,A,n,x,v,I,S,M?C:0,T,e,i):o.$_layoutLabelOutside(!1,g,r,A,n,x,v,I,S,M?C:0))?E.push(r):V.push(r),r.setContrast(b&&t.dom).setVis(!0),L.push(r),o._layoutLabelRotation(r)}else null==n||n.setVis(!1)}})),y&&y.sortDom((function(t,e){var i=e.off-t.off;return 0===i&&(i=t.index-e.index),i}));var $=g.options.convergent,H=g.options.dedupeMode,W=g.options.overflow;m&&(b||0===P?"preserveOrder"!==H&&"largestFirst"!==H||m.dedupe(L,O,H):m.arrangeVertical(this,E,O,i,$,H,W)+m.arrangeVertical(this,V,O,i,$,H,W)>0&&this._sectors.forEach((function(t){var a=t.point;if(!a.isNull){var l=k>1&&a.sliced,u=s.getLabelOff2(a);r=m.get(a,0),n=null==O?void 0:O.get(a),(null==r?void 0:r.visible)&&(-1===P?o.$_layoutLabelAligned(!0,a,r,A,n,x,v,u,S,l?C:0):1==P?o.$_layoutLabelEnded(!0,a,r,A,n,x,v,u,S,l?C:0,T,e,i):o.$_layoutLabelOutside(!0,a,r,A,n,x,v,u,S,l?C:0))}})))},e.prototype.$_layoutLabelAligned=function(t,e,i,r,n,o,s,a,l,u){var c=i.isDomAnimating(),p=e.startAngle+e.angle/2,h=this._cx,f=this._cy,d=this._rx,_=this._ry,y=d+u,g=_+u,v=h+(0,wZ.cos)(p)*y,m=f+(0,wZ.sin)(p)*g,b=v<h;!t&&!c&&i.layout(r||(b?"right":"left"));var w,x,S=i.getBBox(),P=m-S.height/2,A=f+(0,wZ.sin)(p)*_;if(b?(x=(w=h+(0,wZ.cos)(Math.PI)*d-l)-S.width-a,h+(0,wZ.cos)(Math.PI)*y-l,S.width):(x=(w=h+(0,wZ.cos)(0)*d+l)+a,h+(0,wZ.cos)(0)*y+l),n&&n.setVis(y>0)){var O=t?i.ty-P:0;s?n.setLine(o.reset(0,O).quad(.7*(v-w),O,v-w,0).end()):n.setLine(o.reset(0,O).line(v-w,0).end()),n.setPos(w,A),!c&&n.trans(w,m)}return t||(i.setPos(x,A-S.height/2),!c&&i.trans(x,A-S.height/2)),b},e.prototype.$_layoutLabelEnded=function(t,e,i,r,n,o,s,a,l,u,c,p,h){var f=i.isDomAnimating(),d=e.startAngle+e.angle/2,_=this._cx,y=this._cy,g=this._rx,v=this._ry,m=g+u,b=v+u,w=_+(0,wZ.cos)(d)*m,x=y+(0,wZ.sin)(d)*b,S=w<_;!t&&!f&&i.layout(r||(S?"right":"left"));var P,A,O,C=i.getBBox(),E=x-C.height/2,V=y+(0,wZ.sin)(d)*v;if(S?(P=l+c+a,O=l+c-C.width,A=P):(O=p-l-c,A=P=p-l-c-a),n&&n.setVis(m>0)){var L=t?i.ty-E:0;s?n.setLine(o.reset(0,L).quad(0,L,w-A,0).end()):n.setLine(o.reset(0,L).line(w-A,0).end()),n.setPos(P,V),!f&&n.trans(A,x)}return t||(i.setPos(O,V-C.height/2),!f&&i.trans(O,V-C.height/2)),S},e.prototype.$_layoutLabelOutside=function(t,e,i,r,n,o,s,a,l,u){var c=i.isDomAnimating();!t&&!c&&i.layout(r);var p,h,f=i.getBBox(),d=e.startAngle+e.angle/2,_=this._cx,y=this._cy,g=this._rx+.5*l,v=this._ry+.5*l,m=(0,wZ.cos)(d)*u,b=(0,wZ.sin)(d)*u,w=_+(0,wZ.cos)(d)*this._rx,x=y+(0,wZ.sin)(d)*this._ry,S=_+(0,wZ.cos)(d)*g,P=y+(0,wZ.sin)(d)*v,A=S<_;return h=p=A?S-.2*l:S+.2*l,n&&n.setVis(g>0)&&(s?n.setLine(o.reset(0,0).quad(S-w,P-x,p-w,P-x).end()):n.setLine(o.reset(0,0).lines(S-w,P-x,p-w,P-x).end()),n.setPos(w,x),!c&&n.trans(w+m,x+b)),t||(A?h-=f.width+a:h+=a,P-=f.height/2,i.setPos(h,P),!c&&i.trans(h+m,P+b)),A},e.prototype.$_layoutLabelInside=function(t,e,i,r,n,o){var s=e.isDomAnimating(),a=this.model,l=a.pointLabel,u=l.options.autoRotation,c=l.options.rotationMode,p=a.options.clockwise;!s&&e.layout(i||"center");var h=e.getBBox(),f=this._rx*this._rxInner,d=t.startAngle+t.angle/2;if(u){var _=a._totalRad,y=(0,wZ.minv)(a.options.totalAngle||360,360);if("angle"===c){var g=d/_*y+90,v=(g+a.options.startAngle)%360;g+=(v+=p?0:360)>180?90:-90,e.setRotation(h.width/2,h.height/2,g)}else this.applyAutoRotation(e,d,_,y)}var m=l.options.align===VZ._PointLabelAlign.NEAR?.3:l.options.align===VZ._PointLabelAlign.NONE?.5:.7,b=f>0?f+(this._rx-f)/2:u?"angle"===c?this._rx*m+r:.8*this._rx+r:.7*this._rx+r,w=this._deep?b*this._ratio:b,x=Math.cos(d),S=Math.sin(d),P=this._cx+x*b,A=this._cy+S*w;e.move(P-h.width/2,A-h.height/2),P=this._cx+x*(o+b),A=this._cy+S*(o+w),e.trans(P-h.width/2,A-h.height/2)},e.prototype.$_slice=function(t,e,i){if(!(e&&this._sectors.count<2)){var r=this.model,n=this._labelViews(),o=r.pointLabel.getAlign(),s=this._slicedOff,a=r.options.autoSlice?r.options.sliceDuration:0,l=t.point,u=l.startAngle+l.angle/2;if((l.sliced=e)?t.transEx((0,wZ.cos)(u)*s,(0,wZ.sin)(u)*s,a):t.transEx(0,0,a),n){var c=r.pointLabel,p=this._lineContainer,h=c.connector.options.curved,f="inside"===r.getLabelPos(c),d=n.get(l,0),_=r.pointLabel.getDistance(f,this._rx,this._rxInner);if(d){var y=!f&&p.get(l);if(i){var g=n.textAlign();!n||g||o||(g="center"),f?this.$_layoutLabelInside(l,d,g,c.getOffset(),_,s):0===o&&this.$_layoutLabelOutside(!1,l,d,g,y,this._pb,h,c.getOffset(),_,s)}if(e){var v=d.tx,m=d.ty,b=y.tx,w=y.ty;(f||0===o)&&(d.trans(d.x,d.y).transEx2(v,m,a),y&&y.trans(y.x,y.y).transEx(b,w,a))}else(f||0===o)&&(d.trans(d.tx,d.ty).transEx2(d.x,d.y,a),y&&y.trans(y.tx,y.ty).transEx(y.x,y.y,a))}}}},e}(TZ.WidgetSeriesView);yZ.PieSeriesView=RZ;var BZ={},DZ=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(BZ,"__esModule",{value:!0}),BZ.ScatterSeriesView=BZ.ScatterSeriesPointView=void 0;var IZ=iM,GZ=AW,FZ=wM,zZ=rM,$Z=XU,HZ=qU,WZ=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return DZ(e,t),e.prototype.setHoverRate=function(t,e,i){var r=this.point,n=t._getDrawer(t.model.getShape(r)),o=(+t.model.options.hoverScale||1.8)-1,s=t._radius;e?this._hoverRadius=s=t._radius*(1+(isNaN(i)?1:i)*o):s=t._radius*(1+o-(isNaN(i)?o:o*i)),this.setPath(n(s)),this.trans(r.xPos,r.yPos)},e.prototype.endHover=function(t,e){delete this._hoverRadius},e}($Z.MarkerSeriesPointView);BZ.ScatterSeriesPointView=WZ;var UZ=function(t){function e(e){return t.call(this,e,"rct-scatter-series")||this}return DZ(e,t),e.prototype._createMarkers=function(t){return new GZ.ElementPool(t,WZ)},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,HZ.SeriesAnimation.grow(this))},e.prototype.$_prepareMarkers=function(t,e){var i=this,r=e.length;this._pointContainer.setFill(t._runColor),this._markers.prepare(r,(function(r,n){var o=r.point=e[n];i._setPointStyle(r,t,o)}))},e.prototype._getDefaultPos=function(t){return"outside"},e.prototype._doViewRateChanged=function(t){this.$_layoutMarkers(this.width,this.height)},e.prototype.$_layoutMarkers=function(t,e){var i,r=this,n=this.model,o=n.options,s=this._inverted,a=n.needClip(!1),l=n._xAxisObj,u=n._yAxisObj,c=this._polar=n.chart._body.getPolar(l),p=this._getGrowRate(),h=this._radius=Math.max(0,+n.options.radius||0)*p,f=+o.rotation||0,d=+o.jitterX||0,_=+o.jitterY||0,y=n.pointLabel,g=y.options.position,v=y.getOffset(),m=this._labelViews(),b=u.prev(s?t:e),w=l.prev(c?FZ.PI_2: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 A=r._getDrawer(n.getShape(S)),O=zZ.Utils.jitter(S.xValue,d),C=zZ.Utils.jitter(S.yGroup,_),E=void 0,V=void 0;if(c){var L=c.start+l.getPos(w,O),T=u.getPos(c.rd,C)*p;E=c.cx+T*(0,IZ.cos)(L),V=c.cy+T*(0,IZ.sin)(L)}else E=l.getPos(w,O),V=x-u.getPos(b,C),s&&(E=u.getPos(b,C),V=e-l.getPos(w,O));if(S.xPos=E,S.yPos=V,o.setVis(!!c||!a||E>=0&&E<=t&&V>=0&&V<=e)){var k=o._hoverRadius||h;o.setPath(A(k)),o.trans(E,V).rotate(f),P&&r._layoutLabelView(i,g,v,k,E,V)}else P&&P.setVis(!1)}else P&&P.setVis(!1)}))},e.prototype.getNearest=function(t,e){var i=this._markers._internalItems();if(i&&i.length>0){var r=this.model.options.radius,n=i.reduce((function(i,n){return i.distance(r,t,e)<n.distance(r,t,e)?i:n}));return{pv:n,dist:n.distance(r,t,e)}}},e.prototype.canHover=function(t,e,i){return t<=this.model.options.radius+i},e}($Z.MarkerSeriesView);BZ.ScatterSeriesView=UZ;var YZ={},XZ=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(YZ,"__esModule",{value:!0}),YZ.WaterfallSeriesView=void 0;var qZ=AW,ZZ=hj,KZ=EG,JZ=XU,QZ=function(t){function e(e){var i=t.call(this,e,"rct-waterfall-series")||this;return i._bars=new qZ.ElementPool(i._pointContainer,JZ.BarElement),i.add(i._lineContainer=new ZZ.LayerElement(e,"rct-waterfall-series-lines")),i._lines=new qZ.ElementPool(i._lineContainer,KZ.LineElement),i}return XZ(e,t),e.prototype._getPointPool=function(){return this._bars},e.prototype._getLowValue=function(t){return Math.min(t.from,t.to)},e.prototype._getHighValue=function(t){return Math.max(t.from,t.to)},e.prototype._prepareSeries=function(e,i,r,n){t.prototype._prepareSeries.call(this,e,i,r,n),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,r,n,o){var s=t.point;if(t.wPoint=n,t.hPoint=o,r+=o,t.layout(i,r,this._rd,this._rd,0,0,this._inverted),e>0){var a=this._lines.get(e-1),l=s.y,u=void 0;u=s._isSum||s._isMid?l<0?r:r-o:l<0?r-o:r,a.setHLine(u,this._xPrev+this._wPrev/2,i-n/2)}this._xPrev=i,this._wPrev=n},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._setPointStyle=function(t,e,i,r){t.setAttrEx("aria-label",i.ariaHint()),this._setColorIndex(t,i),t.internalClearStyleAndClass(),e.options.pointStyle&&t.internalSetStyleOrClass(e.options.pointStyle),r&&r.forEach((function(e){return e&&t.internalSetStyleOrClass(e)})),i._isSum&&e.options.sumColor?this._setPointColor(t,e.options.sumColor):i.y<0&&e.options.negativeColor?this._setPointColor(t,e.options.negativeColor):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 n=e.getPointStyle(i);n&&t.internalSetStyleOrClass(n)},e.prototype.$_parepareBars=function(t,e,i){var r=this;this._bars.prepare(i.length,(function(t,n){var o=t.point=i[n];r._setPointStyle(t,e,o);var s=o._isMid?"rct-waterfall-point-mid":o._isSum?"rct-waterfall-point-sum":o.y<0?"rct-waterfall-point-negative":"";s&&t.setStyleOrClass(s)})),this._lines.prepare(i.length-1,(function(t,e){t.visible=!i[e].isNull&&!i[e+1].isNull}))},e}(JZ.RangedSeriesView);YZ.WaterfallSeriesView=QZ;var tK=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),eK=t&&t.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s},iK=t&&t.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))},rK=t&&t.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,i=e&&t[e],r=0;if(i)return i.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(PU,"__esModule",{value:!0}),PU.BodyView=PU.ZoomButton=PU.AxisGuideContainer=PU.AxisGridRowContainer=PU.AxisGuideRangeView=PU.AxisGuideLineView=PU.AxisGuideView=PU.AxisBreakView=PU.AxisGridView=void 0,PU.createAnnotationView=vJ,PU.createSeriesView=mJ;var nK=AU,oK=iM,sK=AW,aK=$F,lK=hj,uK=wM,cK=rM,pK=kU,hK=sU,fK=EG,dK=CB,_K=zU,yK=EB,gK=WR,vK=OB,mK=ZB,bK=cI,wK=HI,xK=JI,SK=nz,PK=kz,AK=cG,OK=gF,CK=OF,EK=zF,VK=fz,LK=xz,TK=Fz,kK=Qz,NK=pG,MK=u$,jK=w$,RK=L$,BK=D$,DK=tH,IK=uH,GK=JD,FK=DD,zK=WD,$K=UU,HK=BW,WK=YU,UK=oU,YK=XU,XK=uY,qK=dY,ZK=bY,KK=CY,JK=KY,QK=lX,tJ=dX,eJ=PX,iJ=CX,rJ=jX,nJ=HX,oJ=QX,sJ=sq,aJ=_q,lJ=Sq,uJ=Tq,cJ=Fq,pJ=EY,hJ=qq,fJ=nZ,dJ=fZ,_J=yZ,yJ=BZ,gJ=YZ;function vJ(t,e){return new($K.annotation_view_types[e._type()])(t)}function mJ(t,e){return new(YK.series_view_types[e._viewType()])(t)}YK.SeriesView.register([NK.AreaSeries,JK.AreaSeriesView],[NK.AreaRangeSeries,KK.AreaRangeSeriesView],[xK.BarSeries,tJ.BarSeriesView],[wK.BarRangeSeries,QK.BarRangeSeriesView],[AK.BellCurveSeries,eJ.BellCurveSeriesView],[OK.BoxPlotSeries,iJ.BoxPlotSeriesView],[CK.BubbleSeries,rJ.BubbleSeriesView],[EK.CandlestickSeries,nJ.CandlestickSeriesView],[SK.CircleBarSeries,oJ.CircleBarSeriesView],[VK.DumbbellSeries,sJ.DumbbellSeriesView],[LK.EqualizerSeries,aJ.EqualizerSeriesView],[PK.ErrorBarSeries,lJ.ErrorBarSeriesView],[TK.FunnelSeries,uJ.FunnelSeriesView],[kK.HistogramSeries,cJ.HistogramSeriesView],[NK.LineSeries,pJ.LineSeriesView],[MK.LollipopSeries,hJ.LollipopSeriesView],[jK.OhlcSeries,fJ.OhlcSeriesView],[RK.ParetoSeries,dJ.ParetoSeriesView],[BK.PieSeries,_J.PieSeriesView],[DK.ScatterSeries,yJ.ScatterSeriesView],[IK.WaterfallSeries,gJ.WaterfallSeriesView]),$K.AnnotationView.register([GK.TextAnnotation,ZK.TextAnnotationView],[FK.ImageAnnotation,XK.ImageAnnotationView],[zK.ShapeAnnotation,qK.ShapeAnnotationView]);var bJ=function(t){function e(e){var i=t.call(this,e,"rct-axis-grid")||this;return i._lines=new sK.ElementPool(i,fK.LineElement),i}return tK(e,t),e.prototype._doMeasure=function(t,e,i,r,n){return{width:i,height:r}},e.prototype._doLayout=function(){var t,e=this._model,i=e.options,r=e.axis,n=this.width,o=this.height,s=r.isEmpty()?[]:e.getPoints(r,r._isHorz?n: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]===(r._isHorz?n:o))}));var u=null==i.firstVisible?e.visible:i.firstVisible,c=null==i.lastVisible?e.visible:i.lastVisible;r._isHorz?a.forEach((function(i,n){t=0===n?u:n===l?c:e.visible,i.setVis(t)&&i.setVLine(r.prev(s[n]),0,o)})):a.forEach((function(i,a){s[a],t=0===a?u:a===l?c:e.visible,i.setVis(t)&&i.setHLine(o-r.prev(s[a]),0,n)}))},e}(HK.ChartElement);PU.AxisGridView=bJ;var wJ=function(t){function e(e){var i=t.call(this,e,"rct-axis-break")||this;return i.add(i._mask=new lK.PathElement(e)),i._mask.setStroke("none"),i.add(i._upLine=new lK.PathElement(e)),i._upLine.setFill("none"),i.add(i._downLine=new lK.PathElement(e)),i._downLine.setFill("none"),i}return tK(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 r=this._model._sect.len,n=new aK.PathBuilder;if(i){var o=0,s=r/2,a=r;for(n.move(0,o);o<e;)o+=20,n.line(s,o),o+=20,n.line(0,o);for(this._downLine.setPath(n.end(!1)),o=0,n.clear().move(s,o);o<e;)o+=20,n.line(a,o),o+=20,n.line(s,o);for(this._upLine.setPath(n.end(!1)),o=0,n.clear().move(0,o);o<e;)o+=20,n.line(s,o),o+=20,n.line(0,o);for(n.line(s,o);o>=0;)o-=20,n.line(a,o),o-=20,n.line(s,o);this._mask.setPath(n.end())}else{var l=0,u=r/2,c=r;for(n.move(l,u);l<t;)l+=20,n.line(l,0),l+=20,n.line(l,u);for(this._upLine.setPath(n.end(!1)),l=0,n.clear().move(l,c);l<t;)l+=20,n.line(l,u),l+=20,n.line(l,c);for(this._downLine.setPath(n.end(!1)),l=0,n.clear().move(l,u);l<t;)l+=20,n.line(l,0),l+=20,n.line(l,u);for(n.line(l,c);l>=0;)l-=20,n.line(l,u),l-=20,n.line(l,c);this._mask.setPath(n.end())}},e}(lK.RcElement);PU.AxisBreakView=wJ;var xJ=function(t){function e(e){var i=t.call(this,e,"rct-axis-guide")||this;return i.add(i._labelView=new UK.ChartTextElement(e,"rct-axis-guide-label")),i}return tK(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)},e.prototype.layout=function(t,e,i){this._labelView.visible&&(this.model.label.buildSvg(this._labelView._text,this._labelView._outline,t,e,this.model.label,null),this._labelView.layout(this.textAlign()||"center")),i?this._doLayoutPolar(t,e,i):this._doLayout(t,e)},e}(lK.RcElement);PU.AxisGuideView=xJ;var SJ=function(t){function e(e,i){var r=t.call(this,e)||this;return r.insertFirst(r._line=new(i?pK.ArcPolyElement:fK.LineElement)(e,"rct-axis-guide-line")),r}return tK(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,r,n=this.model,o=n.options.value,s=n.label,a=s.options,l=this._line,u=this._labelView.setVis(s.visible)&&this._labelView,c=u.getBBox(),p=(0,oK.pickNum)(a.offsetX,0),h=(0,oK.pickNum)(a.offsetY,0);if(this.vertical()){var f=n.axis.getPos(t,o);if(u.setVis(l.setVis(!isNaN(f)))&&(l.setVLine(f,0,e),u)){switch(a.align){case"center":i=f-c.width/2+p;break;case"right":i=f+p;break;default:i=f-c.width-p}switch(a.verticalAlign){case"bottom":r="inside"===a.position?e-c.height-h:e+h;break;case"middle":r=(e-c.height)/2-h;break;default:r="inside"===a.position?h:-1*(c.height+h)}}}else{f=e-n.axis.getPos(e,o);if(u.setVis(l.setVis(!isNaN(f)))&&(l.setHLine(f,0,t),u)){switch(a.align){case"center":i=(t-c.width)/2-p;break;case"right":i="inside"===a.position?t-c.width-p:t+p;break;default:i="inside"===a.position?p:-1*(c.width+p)}switch(a.verticalAlign){case"bottom":r=f+h;break;case"middle":r=f-c.height/2-h;break;default:r=f-c.height-h}}}u.visible&&u.trans(i,r)},e.prototype._doLayoutPolar=function(t,e,i){var r=this.model,n=this._line,o=this._labelView.setVis(r.axis.contains(r.options.value)&&r.label.visible)&&this._labelView,s=r.axis.getStartAngle(),a=r.axis.getPos(i.rd,r.options.value);n.setArc(i.cx,i.cy,a,s,r.axis.getTotalAngle(),!1),n.setStyle(uK.FILL,"none"),o&&o.trans(i.cx+a*(0,oK.cos)(i.start),i.cy+a*(0,oK.sin)(i.start))},e}(xJ);PU.AxisGuideLineView=SJ;var PJ=function(t){function e(e,i){var r=t.call(this,e)||this;return r.insertFirst(r._box=new(i?_K.SectorElement:dK.BoxElement)(e,"rct-axis-guide-range")),r}return tK(e,t),e.prototype.prepare=function(e,i){t.prototype.prepare.call(this,e,i);var r=i.options,n=(0,oK.minv)(r.startValue,r.endValue),o=(0,oK.maxv)(r.startValue,r.endValue);this._range=i.axis.trimRange(n,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 r=i.label,n=r.options,o=this._box,s=eK(this._range,2),a=s[0],l=s[1],u=this._labelView.setVis(r.visible)&&this._labelView,c=u.getBBox(),p=(0,oK.pickNum)(n.offsetX,0),h=(0,oK.pickNum)(n.offsetY,0);if(this.vertical()){var f=i.axis.getPos(t,a),d=i.axis.getPos(t,l);if(!isNaN(f)&&!isNaN(d)&&u.setVis(o.setVis(d!==f))){var _=void 0,y=void 0;switch(n.align){case"center":_=f+(d-f-c.width)/2+p;break;case"right":_=d-c.width-p;break;default:_=f+p}switch(n.verticalAlign){case"bottom":y="inside"===n.position?e-c.height-h:e+h;break;case"middle":y=(e-c.height)/2-h;break;default:y="inside"===n.position?h:-1*(c.height+h)}o.setBox(f,0,d,e),u&&u.trans((0,oK.maxv)(0,(0,oK.minv)(t,_)),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))){_=void 0,y=void 0;switch(n.align){case"center":_=(t-c.width)/2-p;break;case"right":_="inside"===n.position?t-c.width-p:t+p;break;default:_="inside"===n.position?p:-1*(c.width+p)}switch(n.verticalAlign){case"bottom":y=g-c.height-h;break;case"middle":y=v+(g-v-c.height)/2-h;break;default:y=v+h}u&&u.trans(_,y),o.setBox(0,v,t,g)}}},e.prototype._doLayoutPolar=function(t,e,i){var r=this.model,n=this._box,o=this._labelView.setVis(r.label.visible)&&this._labelView,s=r.axis.getStartAngle(),a=r.axis.getPos(i.rd,r.options.startValue),l=r.axis.getPos(i.rd,r.options.endValue);if(n.setSector({cx:i.cx,cy:i.cy,rx:l,ry:l,innerRadius:a/l,start:s,angle:uK.PI_2,clockwise:!0}),o){var u=a+(l-a)/2;o.trans(i.cx+u*(0,oK.cos)(i.start),i.cy+u*(0,oK.sin)(i.start))}},e}(xJ);PU.AxisGuideRangeView=PJ;var AJ=function(t){function e(){var e=t.apply(this,iK([],eK(arguments),!1))||this;return e._views=new sK.ElementPool(e,lK.PathElement),e}return tK(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,iK([],eK(t.grid.rows.getRows()),!1))}))},e.prototype.layout=function(t,e){var i=this._rows;this._views.prepare(i.length),this._views.forEach((function(r,n){var o=i[n],s=o.axis,a=Math.max(s.axisMin(),o.from),l=Math.max(s.axisMax(),o.to);if(o.axis._isHorz){var u=(0,oK.maxv)(0,(0,oK.minv)(t,s.getPos(t,a))),c=(0,oK.maxv)(0,(0,oK.minv)(t,s.getPos(t,l)));r.setPath(yK.SvgShapes.rectangle(u,0,c-u,e))}else{var p=(0,oK.maxv)(0,(0,oK.minv)(e,s.getPos(e,a))),h=(0,oK.maxv)(0,(0,oK.minv)(e,s.getPos(e,l)));r.setPath(yK.SvgShapes.rectangle(0,e-p,t,p-h))}r.setFill(o.color)}))},e}(lK.LayerElement);PU.AxisGridRowContainer=AJ;var OJ=function(t){function e(){var e=t.apply(this,iK([],eK(arguments),!1))||this;return e._linePool=[],e._rangePool=[],e._views=[],e}return tK(e,t),e.prototype.clean=function(){for(var t=this._views;t.length;){var e=t.pop().remove();e instanceof PJ?this._rangePool.push(e):this._linePool.push(e)}},e.prototype.setAll=function(t,e,i){var r=this;e.forEach((function(e){var n;e instanceof gK.AxisRangeGuide?n=r._rangePool.pop()||new PJ(t,i):e instanceof gK.AxisLineGuide&&(n=r._linePool.pop()||new SJ(t,i)),r.add(n),n.prepare(t,e)}))},e.prototype.add=function(e){return this._views.push(e),t.prototype.add.call(this,e)},e}(lK.LayerElement);PU.AxisGuideContainer=OJ;var CJ=function(t){function e(e){var i=t.call(this,e)||this;return i.ignorePointer(),i}return tK(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,r,n){var o=this.model.axis,s=o._isHorz,a=new aK.PathBuilder;if(this._bar){var l=o._isHorz?r:n,u=void 0;if(t?u=t.point.xValue:this.model.options.showAlways&&(u=o.options.reversed?o.xValueAt(s?r-e:i):o.xValueAt(s?e:n-i)),o instanceof mK.CategoryAxis&&(u=(0,oK.floor)(u)),!isNaN(u)){var c=o.getPos(l,u),p=o.getUnitLen(l,u);s?a.rect(c-p/2,0,p,n):a.rect(0,n-c-p/2,r,p)}}else(t||this.model.options.showAlways)&&(s?a.vline(e,0,n):a.hline(i,0,r));this.setPath(a.end())},e}(lK.PathElement),EJ=function(t){function e(i){var r=t.call(this,i,"Reset Zoom",e.CLASS_NAME)||this;return r.setVis(!1),r}return tK(e,t),e.CLASS_NAME="rct-reset-zoom",e}(nK.ButtonElement);PU.ZoomButton=EJ;var VJ=function(t){function e(e){var i=t.call(this,e,"rct-empty-view")||this;return i.add(i._backView=new dK.RectElement(e,"rct-empty-view-back")),i.add(i._labelView=new UK.ChartTextElement(e,"rct-empty-view-label")),i}return tK(e,t),e.prototype.layout=function(t,e,i){this.setStyleOrClass(t._style),"background"===t.options.effect&&this._backView.setStyleOrClass(t.options.backgroundStyle),this._backView.resize(e,i);var r=this._labelView;t.buildSvg(r._text,r._outline,e,i,null,null),r.layout("center");var n=r.getBBox();r.trans((e-n.width)/2,(i-n.height)/2)},e}(lK.LayerElement),LJ=function(t){function e(e){var i=t.call(this,e,"rct-body-depth-grid")||this;return i._lines=new sK.ElementPool(i,fK.LineElement),i}return tK(e,t),e.prototype.layout=function(t,e,i,r,n,o){var s=e.model,a=s.axis,l=r.side,u=r.base,c=a.isEmpty()?[]:s.getPoints(a,a._isHorz?n-u:o-l);this._lines.prepare(c.length,(function(e,r){e.internalClearStyleAndClass(),e.internalSetStyleOrClass(t.gridLine._style),e.setClass("rct-body-depth-grid-line"),i?e.setLine(0,o-c[r],n,o-l-c[r]):e.setLine(c[r]+u,0,c[r],o)}))},e}(lK.LayerElement),TJ=function(t){function e(e,i){var r=t.call(this,e,"rct-body-depth-side")||this;return r.isX=i,r._gridViews=new Map,r.add(r._backView=new lK.PathElement(e)),r.add(r._gridContainer=new lK.LayerElement(e,"rct-body-depth-grids")),r.add(r._lineView=new fK.LineElement(e,"rct-body-depth-side-line")),r.add(r._endView=new fK.LineElement(e,"rct-body-depth-side-line")),r}return tK(e,t),e.prototype.layout=function(t,e,i,r,n){var o=this.width,s=this.height;this.$_renderBack(this._backView,e,i,r,o,s),this.$_renderGrids(t,e,n,i,r,o,s)},e.prototype.$_renderBack=function(t,e,i,r,n,o){var s=r.side,a=r.base,l=this._lineView,u=this._endView;t.internalClearStyleAndClass(),t.internalSetStyleOrClass(e._style),l.setVis(e.line.visible)&&(l.internalClearStyleAndClass(),l.internalSetStyleOrClass(e.line._style)),u.setVis(e.endLine.visible)&&(u.internalClearStyleAndClass(),u.internalSetStyleOrClass(e.endLine._style)),i?(t.setPath(yK.SvgShapes.polygon(0,s,a,0,a,o-s,0,o)),l.visible&&l.setVLineC(0,s,o),u.visible&&u.setLine(0,s,n,0)):(t.setPath(yK.SvgShapes.polygon(a,0,n,0,n-a,s,0,s)),l.visible&&l.setHLineC(o,0,n-a),u.visible&&u.setLine(n,0,n-a,o))},e.prototype.$_renderGrids=function(t,e,i,r,n,o,s){var a,l,u,c,p=this._gridContainer,h=this._gridViews;try{for(var f=rK(this._gridViews.entries()),d=f.next();!d.done;d=f.next()){var _=eK(d.value,2),y=_[0],g=_[1];i.has(y)||(h.delete(y),g.remove())}}catch(t){a={error:t}}finally{try{d&&!d.done&&(l=f.return)&&l.call(f)}finally{if(a)throw a.error}}try{for(var v=rK(i.entries()),m=v.next();!m.done;m=v.next()){var b=eK(m.value,2),w=(y=b[0],b[1]);if(y._isX===this.isX){var x=h.get(y);x||(x=new LJ(t),h.set(y,x),p.add(x)),x.layout(e,w,r,n,o,s)}}}catch(t){u={error:t}}finally{try{m&&!m.done&&(c=v.return)&&c.call(v)}finally{if(u)throw u.error}}},e}(lK.LayerElement),kJ=function(t){function e(e){var i=t.call(this,e,"rct-body-depth")||this;return i.add(i._xSideView=new TJ(e,!0)),i.add(i._ySideView=new TJ(e,!1)),i.add(i._orgLineView=new fK.LineElement(e,"rct-body-depth-org-line")),i}return tK(e,t),e.prototype.render=function(t,e,i,r,n,o,s){if(this.setVis(!!n)){var a=n.base,l=n.side,u=this._xSideView,c=this._ySideView;u.setVis(i.xSide.visible)&&(e?u.setBounds(0,0,a,s):u.setBounds(0,s-l,o,l),u.layout(t,i.xSide,e,n,r)),c.setVis(i.ySide.visible)&&(e?c.setBounds(0,s-l,o,l):c.setBounds(0,0,a,s),c.layout(t,i.ySide,!e,n,r)),this._orgLineView.setVis(i.orgLine.visible)&&this._orgLineView.setLine(a,s-l,0,s)}},e}(lK.LayerElement),NJ=function(t){function e(i,r){var n=t.call(this,i,e.BODY_CLASS)||this;return n._gridViews=new Map,n._baseViews=new Map,n._breakViews=[],n._seriesViews=[],n._seriesMap=new Map,n._annotationViews=[],n._annotationMap=new Map,n._gaugeViews=[],n._gaugeMap=new Map,n._hoverPointSeries=[],n._owner=r,n.add(n._hitTester=new dK.RectElement(i)),n._hitTester.setFill("transparent"),n.add(n._background=new dK.RectElement(i,"rct-body-background")),n.add(n._depthLayer=new kJ(i)),n.add(n._image=new hK.ImageElement(i,!0,"rct-body-image")),n.add(n._emptyView=new VJ(i)),n.add(n._gridRowContainer=new AJ(i,"rct-axis-grid-rows")),n.add(n._gridContainer=new lK.LayerElement(i,"rct-axis-grids")),n.add(n._baseContainer=new lK.LayerElement(i,"rct-axis-bases")),n.add(n._guideContainer=new OJ(i,"rct-axis-guides")),n.add(n._annotationContainer=new lK.LayerElement(i,"rct-annotations")),n.add(n._seriesContainer=new lK.LayerElement(i,"rct-series-container")),n.add(n._axisBreakContainer=new lK.LayerElement(i,"rct-axis-breaks")),n.add(n._labelContainer=new lK.LayerElement(i,"rct-label-container")),n.add(n._frontGuideContainer=new OJ(i,"rct-front-axis-guides")),n.add(n._frontAnnotationContainer=new lK.LayerElement(i,"rct-front-annotations")),n.add(n._feedbackContainer=new lK.LayerElement(i,"rct-feedbacks")),n.add(n._zoomButton=new EJ(i)),n._crosshairViews=new sK.ElementPool(n._feedbackContainer,CJ),n}return tK(e,t),e.prototype.getAnnotationAnchor=function(t){return this._gaugeMap.get(t)||this._annotationMap.get(t)},e.prototype.getCol=function(){return 0},e.prototype.getRow=function(){return 0},e.prototype.prepareRender=function(t,e,i){var r=e.chart,n=e.depth.visible;this._animatable=lK.RcControl._animatable&&r.animatable(),this._polar=i,this._prepareSeries(t,e,r._getSeries().getVisibleSeries(),n),r._getGauges()&&this._prepareGauges(t,r,r._getGauges().getVisibles()),this._prepareAnnotations(t,r._body.getAnnotations())},e.prototype.prepareGuideContainers=function(){this._guideContainer.clean(),this._frontGuideContainer.clean()},e.prototype.checkDepth=function(t,e,i){return this._depthExt=t._body._getDepth(e,i)},e.prototype.pointerMoved=function(t,e){var i,r,n,o,s=this.width,a=this.height,l=this._inverted,u=this._polar,c=this._seriesViews,p=c.length,h=t.x>=0&&t.x<s&&t.y>=0&&t.y<a;if(YK.SeriesView.isPointDom(e))for(var f=p-1;f>=0;f--)if(o=c[f].pointByDom(e)){n=c[f];break}var d=null==e?void 0:e.classList,_=(null==d?void 0:d.value)&&(d.contains("rct-contextmenu-item")||d.contains("rct-contextmenu-list")),y=h&&!this._zoomRequested&&!this.chart().isEmpty(!0)&&!_;if(this._crosshairViews.forEach((function(e){e.setVis(y)&&e.layout(o,t.x,t.y,s,a)})),o)this.$_setFocused(n,o,t);else if(p>0){var g,v,m=this.chart().chartOptions.pointHovering.getHintDistance(null==n?void 0:n.model),b=!u;try{for(var w=rK(c),x=w.next();!x.done;x=w.next()){if(!(x.value.model instanceof NK.LineSeriesBase)){b=!1;break}}}catch(t){i={error:t}}finally{try{x&&!x.done&&(r=w.return)&&r.call(w)}finally{if(i)throw i.error}}if(n=null,b)if(p>1){var S=[];c.forEach((function(e){g=(0,oK.pickNum)(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?(0,oK.absv)(e.pv.pv.point.xPos-t.x)<(0,oK.absv)(i.pv.pv.point.xPos-t.x)?e:i:(0,oK.absv)(e.pv.pv.point.yPos-t.y)<(0,oK.absv)(i.pv.pv.point.yPos-t.y)?e:i:e||i}));n=P.sv,v=P.pv,g=P.hint}else n=c[0],g=(0,oK.pickNum)(n.getHintDistance(),m),v=n.getNearest2(t.x,t.y,l);else c.forEach((function(e){if(e.getHintDistance&&(g=(0,oK.pickNum)(e.getHintDistance(),m))>0){var i=e.getNearest(t.x,t.y);(!v||i.dist<v.dist)&&(n=e,v=i)}}));h&&v&&n.canHover(v.dist,v.pv,g)?this.$_setFocused(n,v.pv,t):this.$_setFocused(null,null,t)}return h},e.prototype.hoverSeries=function(t){this.$_hoverSeries(this._seriesMap.get(t))},e.prototype.$_setFocused=function(t,e,i){var r,n,o,s=this._owner,a=this.chart(),l=null==t?void 0:t.model,u=this.chart().chartOptions.pointHovering,c=this._focused,p=this._siblings,h=this._siblingSeries;if(l&&l.options.interactive&&e&&u.visible)switch(u.getScope(l,e.point)){case"axis":o=l._xAxisObj.getSeries();case"group":o||(o=l._group.getVisibleSeries());var f=o.map((function(t){if(t instanceof vK.MarkerSeries){for(var r=void 0,n=Number.MAX_SAFE_INTEGER,o=0;o<t.getPoints().count;o++){var s=t.getPoints().get(o),a=void 0;if(t instanceof CK.BubbleSeries){var l=(t._xAxisObj._vlen<t._yAxisObj._vlen?t._xAxisObj:t._yAxisObj)._vlen,u=t.getPixelMinMax(l),c=u.min,p=u.max,h=t.getRadius(s.zValue,c,p);a=Math.sqrt(Math.pow(s.xPos-i.x,2)+Math.pow(s.yPos-i.y,2))-h}else a=Math.sqrt(Math.pow(s.xPos-i.x,2)+Math.pow(s.yPos-i.y,2));a<n&&(n=a,r=s)}return r}return t.getPoints().pointAt(e.point.xValue)}));r=o.map((function(t){return s.getSeriesView(t)})),n=[],f.forEach((function(t,e){n.push(r[e].getPointView(t))}));break;default:r=[t],n=[e]}var d=[];if(r&&r.forEach((function(t,e){d.push.apply(d,iK([],eK(t.getSiblings(n[e])),!1))})),d=d.length>1?d.sort((function(t,e){return t.hash-e.hash})):d.length>0?d:null,cK.Utils.equalArrays(p,d)||(r&&r.forEach((function(t,e){t.focusPoints(t.getSiblings(n[e]))})),h&&h.forEach((function(t){(!r||r.indexOf(t)<0)&&t.focusPoints(null)})),this._siblingSeries=r,this._siblings=d),e!==c){var _=this._focusedSeries;this._focused=e,t!==_&&(_&&this.$_focusSeries(_,!1),this._focusedSeries=t,l&&l.options.interactive&&this.$_focusSeries(t,!0),l&&a.chartOptions.options.seriesHovering&&l.options.interactive&&this.$_hoverSeries(t))}this._focused&&l&&l.options.interactive&&(this._focused!==c||!s.tooltipVisible()||a._tooltip.isFollowPointer(t.model))?i.x>0&&i.x<this.width&&i.y>0&&i.y<this.height?s.showTooltip(l,e,[],this,i):s.hideTooltip():!this._focused&&s.tooltipVisible()&&s.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(YK.SeriesView.DATA_UNHOVER,t&&e!==t),e._labelContainer.setBoolData(YK.SeriesView.DATA_UNHOVER,t&&e!==t)}))},e.prototype.hoverPoint=function(t){var e=this.chart().seriesByPoint(t),i=this.getSeries(e);i?(i.hoverPoint(t),this._hoverPointSeries.push(i)):this._hoverPointSeries&&(this._hoverPointSeries.forEach((function(t){return t.hoverPoint(null)})),this._hoverPointSeries.length=0)},e.prototype.clearHover=function(){this.hoverPoint(null),this.hoverSeries(null),this._seriesViews.forEach((function(t){return t.focusPoints(null)})),this.removeFocus()},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,r){var n=this.chart(),o=n.isInverted(),s=n.xAxis,a=o?this.height:this.width,l=s.valueAt(a,o?a-r: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 r=rK(this._seriesViews),n=r.next();!n.done;n=r.next()){var o=n.value;if(o.visible&&o._animating()){i=!0;break}}}catch(e){t={error:e}}finally{try{n&&!n.done&&(e=r.return)&&e.call(r)}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 YK.MarkerSeriesPointView&&e.endHover(t,!1),e.setBoolData(YK.SeriesView.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,r,n){var o,s,a=this,l=e.chart,u=this._depthExt,c=u?u.wBody:i,p=u?u.hBody:r;if(this._zoomRequested=!1,this._seriesClip||(this._seriesClip=this.control.clipBounds(),this._seriesClip2=this.control.clipBounds(),this._bodyClip=this.control.clipBounds()),this._background.internalSetStyleOrClass(e._style),this._background.setBoolData("polar",this._polar||l.isWidget()),this._seriesViews.forEach((function(e,i){e.measure(t,a._series[i],c,p,n)})),!this._polar){this.$_prepareGrids(t,l);try{for(var h=rK(this._gridViews.keys()),f=h.next();!f.done;f=h.next()){var d=f.value;this._gridViews.get(d).measure(t,d.grid,c,p,n)}}catch(t){o={error:t}}finally{try{f&&!f.done&&(s=h.return)&&s.call(h)}finally{if(o)throw o.error}}this.$_prepareAxisBreaks(t,l)}return this._gaugeViews.forEach((function(e,i){e.measure(t,a._gauges[i],c,p,n)})),this._annotationViews.forEach((function(e,i){e.measure(t,a._annotations[i],c,p,n)})),this._zoomButton.setVis(e.zoomButton.visible)&&this._zoomButton.layout(),{width:i,height:r}},e.prototype._clipSeries=function(t,e,i){var r=i?this._seriesClip:this._seriesClip2;t&&t.setClip(r),e&&e.setClip(r)},e.prototype._setImage=function(t,e){var i=this._image;i.setImage(this.model.image.options.url,t,e),i.setStyleOrClass(this.model.image._style)},e.prototype._doLayout=function(){var t,e,i,r,n=this,o=this.control,s=this.model,a=this._depthExt,l=this.width,u=this.height,c=a?a.wBody:l,p=a?a.hBody:u,h=a?a.base:0;if(this._inverted){var f=a?a.side:0;this._seriesClip.setBounds(-f,-c,u,l),this._seriesClip2.setBounds(-f,0,l,u)}else this._seriesClip.setBounds(-h,0,l,u),this._seriesClip2.setBounds(-h,0,l,u);if(this._bodyClip.setBounds(0,0,c,p),this._hitTester.trans(h,0).resize(c,p),this._background.trans(h,0).resize(c,p),this._seriesContainer.trans(h,0),this._setImage(c,p),this._depthLayer.setVis(!this._polar&&a&&a.depth>0),this._seriesViews.forEach((function(t){t.model.needClip(!1)&&n._clipSeries(t.getClipContainer(),t.getClipContainer2(),t.clipInvertable()),t.depthEnabled&&t._setDepth(a),t.resize(c,p),t.layout()})),this._seriesViews.forEach((function(t){t.afterLayout()})),!this._polar){this._depthLayer.render(o.doc(),this._inverted,s.depth,this._gridViews,a,this.width,this.height);try{for(var d=rK(this._gridViews.values()),_=d.next();!_.done;_=d.next()){(v=_.value).resize(c,p),v.trans(h,0),v.layout()}}catch(e){t={error:e}}finally{try{_&&!_.done&&(e=d.return)&&e.call(d)}finally{if(t)throw t.error}}try{for(var y=rK(this._baseViews.values()),g=y.next();!g.done;g=y.next()){var v,m=(v=g.value).tag;v.setStyleOrClass(m.baseLine._style),m._isHorz?v.setVLine(m.getPos(c,m.getBaseValue()),0,p):v.setHLine(p-m.getPos(p,m.getBaseValue()),0,c)}}catch(t){i={error:t}}finally{try{g&&!g.done&&(r=y.return)&&r.call(y)}finally{if(i)throw i.error}}if(this._breakViews.forEach((function(t){var e=t._model,i=e.axis;i._isHorz?i.options.reversed?t.trans(c-e._sect.pos,0):t.trans(e._sect.pos,0):i.options.reversed?t.trans(0,e._sect.pos):t.trans(0,p-e._sect.pos-e._sect.len),t.layout(c,p,e.axis._isHorz)})),this._guideClip)this._guideClip.resize(o.width(),o.height());else{var b=o._padding;this._guideClip=o.clipBounds(-1*(b.left+this.tx),-1*(b.top+this.ty),o.width(),o.height())}[this._guideContainer,this._frontGuideContainer].forEach((function(t){t.setVis(t._views.length>0)&&(t._views.forEach((function(t){return t.visible&&t.layout(c,p)})),t.setClip(n._guideClip))})),this._gridRowContainer.layout(c,p),this._gridRowContainer.trans(h,0)}this.$_prepareCrosshairs(s.chart),this._gaugeViews.forEach((function(t){t.resizeByMeasured(),t.layout().transp(t.getPosition(c,p))})),this._layoutAnnotations(this._inverted,this,c,p),this._zoomButton.visible&&this._zoomButton.trans(c-this._zoomButton.getBBox().width-10,10),this._emptyView.setVis(this.$_isEmptyVisible(s))&&(this.model.emptyView._prepareRender(),this._emptyView.layout(s.emptyView,c,p))},e.prototype.$_isEmptyVisible=function(t){var e,i,r,n;if(!1!==t.emptyView.visible&&t.chart.isEmpty(!0))return!0;var o=!0;try{for(var s=rK(this._seriesViews),a=s.next();!a.done;a=s.next()){if(!a.value.isEmptyView()){o=!1;break}}}catch(t){e={error:t}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(e)throw e.error}}if(o)try{for(var l=rK(this._gaugeViews),u=l.next();!u.done;u=l.next()){if(!u.value.isEmptyView()){o=!1;break}}}catch(t){r={error:t}}finally{try{u&&!u.done&&(n=l.return)&&n.call(l)}finally{if(r)throw r.error}}return o&&!1!==t.emptyView.visible},e.prototype.$_createGaugeView=function(t,e){return new(WK.gauge_view_types[e._type()])(t)},e.prototype.$_prepareGrids=function(t,e){var i,r,n,o,s=e._needAxes(),a=this._gridContainer,l=this._gridViews,u=this._baseContainer,c=this._baseViews,p=this.getCol(),h=this.getRow();try{for(var f=rK(l.keys()),d=f.next();!d.done;d=f.next()){var _=d.value;s&&e.containsAxis(_)&&_.checkVisible()&&_.grid.visible||(l.get(_).remove(),l.delete(_))}}catch(t){i={error:t}}finally{try{d&&!d.done&&(r=f.return)&&r.call(f)}finally{if(i)throw i.error}}try{for(var y=rK(c.keys()),g=y.next();!g.done;g=y.next()){_=g.value;s&&e.containsAxis(_)&&_.checkVisible()&&(!(_ instanceof bK.ContinuousAxis)||_.baseLine.visible)&&_.isBaseVisible()||(c.get(_).remove(),c.delete(_))}}catch(t){n={error:t}}finally{try{g&&!g.done&&(o=y.return)&&o.call(y)}finally{if(n)throw n.error}}s&&[e._getXAxesAtPane(p,h,!0),e._getYAxesAtPane(p,h,!0)].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 r=new bJ(t);l.set(e,r),a.add(r)}if(e instanceof bK.ContinuousAxis&&e.baseLine.visible&&e.isBaseVisible()&&!c.has(e)){r=new fK.LineElement(t,"rct-axis-baseline");c.set(e,r),u.add(r),r.tag=e}}))}))},e.prototype._prepareSeries=function(t,e,i,r){var n,o,s=this,a=e.chart,l=this._inverted=a.isInverted(),u=this._seriesMap,c=this._seriesViews,p=r?e.depth:null;try{for(var h=rK(u.keys()),f=h.next();!f.done;f=h.next()){var d=f.value;i.indexOf(d)<0&&(u.get(d).remove(),u.delete(d))}}catch(t){n={error:t}}finally{try{f&&!f.done&&(o=h.return)&&o.call(h)}finally{if(n)throw n.error}}this._series=i,c.forEach((function(t){i.indexOf(t.model)<0&&(s.control.loaded?t.removeLater(200):t.remove(),t._labelContainer.remove())})),c.length=0,i.forEach((function(e){var i=u.get(e)||mJ(t,e);i._setChartOptions(l,s._animatable,a.loadAnimatable()),i.parent||(s._seriesContainer.add(i),s._labelContainer.add(i._labelContainer)),u.set(e,i),c.push(i),i.prepareSeries(t,e,s._polar,p)})),this._seriesContainer.sort(c),c.forEach((function(t){return s._labelContainer.dom.appendChild(t._labelContainer.dom)}))},e.prototype._prepareGauges=function(t,e,i){var r,n,o=this,s=this._seriesContainer,a=e.isInverted(),l=this._gaugeMap,u=this._gaugeViews;try{for(var c=rK(l.keys()),p=c.next();!p.done;p=c.next()){var h=p.value;i.indexOf(h)<0&&(l.get(h).remove(),l.delete(h))}}catch(t){r={error:t}}finally{try{p&&!p.done&&(n=c.return)&&n.call(c)}finally{if(r)throw r.error}}this._gauges=i,u.forEach((function(t){return t.remove()})),u.length=0,i.forEach((function(i){var r=l.get(i)||o.$_createGaugeView(t,i);s.add(r),l.set(i,r),u.push(r),r.prepareGauge(t,i),r._setChartOptions(a,o._animatable,e.loadAnimatable())}))},e.prototype._prepareAnnotations=function(t,e){var i,r,n=this._annotationContainer,o=this._frontAnnotationContainer,s=this._annotationMap,a=this._annotationViews;try{for(var l=rK(s.keys()),u=l.next();!u.done;u=l.next()){var c=u.value;e.indexOf(c)<0&&(s.get(c).remove(),s.delete(c))}}catch(t){i={error:t}}finally{try{u&&!u.done&&(r=l.return)&&r.call(l)}finally{if(i)throw i.error}}a.length=0,(this._annotations=e).forEach((function(e){var i=s.get(e)||vJ(t,e);(e.options.front?o:n).add(i),s.set(e,i),a.push(i)}))},e.prototype.$_prepareAxisBreaks=function(t,e){var i=this._axisBreakContainer,r=this._breakViews,n=this.getCol(),o=this.getRow(),s=[];for([e._getXAxesAtPane(n,o,!1),e._getYAxesAtPane(n,o,!1)].forEach((function(t){return t.forEach((function(t){t instanceof bK.LinearAxis&&s.push.apply(s,iK([],eK(t._getBreaks()),!1))}))}));r.length<s.length;){var a=new wJ(t);i.add(a),r.push(a)}for(;r.length>s.length;)r.pop().remove();r.forEach((function(t,e){return t.setModel(s[e])}))},e.prototype.$_prepareCrosshairs=function(t){var e=this,i=this._crosshairViews,r=this.getCol(),n=this.getRow(),o=[];t._needAxes()&&[t._getXAxesAtPane(r,n,!0),t._getYAxesAtPane(r,n,!0)].forEach((function(t){return t.forEach((function(t){t.crosshair.visible&&o.push(t.crosshair)}))})),i.prepare(o.length,(function(t,i){t.setModel(o[i]),t.setClip(e._bodyClip)}))},e.prototype._layoutAnnotations=function(t,e,i,r){var n=this;this._annotationViews.length>0&&this._annotationViews.forEach((function(o){o._layoutView(t,e,0,0,i,r),!n._polar&&o.model.needClip()&&o.resetClip(n.control,i,r)}))},e.BODY_CLASS="rct-body",e}(HK.ChartElement);PU.BodyView=NJ;var MJ=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(SU,"__esModule",{value:!0}),SU.NavigatorView=SU.NavigatorHandleView=void 0;var jJ=$F,RJ=hj,BJ=CB,DJ=PW,IJ=PU,GJ=BW,FJ=iM,zJ=function(t){function e(e){var i=t.call(this,e,$J.HANDLE_STYLE)||this;return i.add(i._back=new BJ.RectElement(e)),i.add(i._shape=new RJ.PathElement(e)),i._shape.setFill("white"),i}return MJ(e,t),e.prototype.layout=function(t,e,i){if(t!==this._w||e!==this._h||i!==this._vertical){var r=1.3*(0,FJ.minv)(t,e),n=new jJ.PathBuilder;this._back.rect={x:-r/2,y:-r/2,width:r,height:r,rx:r/2},r/=3,n.polygon(-r-1,0,-1,-r,-1,r),n.polygon(r+1,0,1,-r,1,r),this._shape.setPath(n.end()),this._w=this.width=t,this._h=this.height=e,this._vertical=i}},e}(RJ.RcElement);SU.NavigatorHandleView=zJ;var $J=function(t){function e(i){var r=t.call(this,i,e.CLASS_NAME)||this;return r.add(r._back=new BJ.RectElement(i,e.BACK_STYLE)),r.add(r._container=new RJ.LayerElement(i,null)),r.add(r._mask=new BJ.RectElement(i,e.MASK_STYLE)),r.add(r._trackView=new BJ.RectElement(i,e.TRACK_CLASS)),r.add(r._thumbView=new BJ.RectElement(i,e.THUMB_CLASS)),r.add(r._startHandle=new zJ(i)),r.add(r._endHandle=new zJ(i)),r._startHandle.setStyle("cursor","ew-resize"),r._endHandle.setStyle("cursor","ew-resize"),r._mask.setStyle("cursor","ew-resize"),r._mask.dom.addEventListener("dblclick",(function(){r.model.axis()._zoom&&r.model.axis().resetZoom()})),r}return MJ(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,r,n){var o=e._naviChart;o.firstSeries;var s=i,a=r;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,r=e.options,n=this.width,o=this.height;if(this._back.resize(n,o),e._vertical);else{var s=i?(i.start-i.min)*n/i.total():0,a=i?(i.end-i.min)*n/i.total():n;this._mask.setVis(r.mask.visible)&&(this._mask.setBounds(s,0,a-s,o),this._mask.setStyleOrClass(r.mask.style)),this._trackView.setBounds(-2,o,n+4,6),this._trackView.setRadius(4),this._thumbView.setBounds(s,o,a-s,6),this._startHandle.setVis(r.handle.visible),this._endHandle.setVis(r.handle.visible),this._startHandle.visible&&this._endHandle&&(this._startHandle.layout(o/3,o/3,!1),this._startHandle.trans(s,o+3),this._endHandle.layout(o/3,o/3,!1),this._endHandle.trans(a,o+3),this._startHandle.setStyleOrClass(r.handle.style),this._endHandle.setStyleOrClass(r.handle.style))}this._seriesView&&(this._seriesView.measure(this.doc,e._naviChart.firstSeries,n,o,1),this._seriesView.resize(n,o),this._seriesView.layout(),this._seriesView.afterLayout()),this._xAxisView&&(this._xAxisView.measure(this.doc,e._naviChart.xAxis,n,o,1),this._xAxisView.resize(n,o),this._xAxisView.layout()),this._yAxisView.setVis(!1)},e.prototype.$_prepareSeriesView=function(t,e){var i=e.firstSeries,r=this._seriesView;r&&r.model!==i&&(r.remove(),r=this._seriesView=null),r||(this._container.add(r=this._seriesView=(0,IJ.createSeriesView)(t,i)),r._simpleMode=!0),r&&r.prepareSeries(t,i,!1,null)},e.prototype.$_prepareXAxisView=function(t,e){var i=e.xAxis,r=this._xAxisView;r&&r.model!==i&&(r.remove(),r=this._xAxisView=null),r||(this._container.add(r=this._xAxisView=new DJ.AxisView(t)),r._simpleMode=!0)},e.prototype.$_prepareYAxisView=function(t,e){var i=e.yAxis,r=this._yAxisView;r&&r.model!==i&&(r.remove(),r=this._yAxisView=null),r||(this._container.add(r=this._yAxisView=new DJ.AxisView(t)),r._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}(GJ.ChartElement);SU.NavigatorView=$J;var HJ={},WJ=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(HJ,"__esModule",{value:!0}),HJ.NavigatorMaskTracker=HJ.NavigatorHandleTracker=HJ.ScrollTracker=HJ.ZoomTracker=HJ.ChartDragTracker=void 0;var UJ=iM,YJ=CB,XJ=function(t){function e(e){var i=t.call(this)||this;return i.chart=e,i}return WJ(e,t),e}(hj.DragTracker);HJ.ChartDragTracker=XJ;var qJ=function(t){function e(e,i,r){var n=t.call(this,e)||this;return n._body=i,n._vertical=r,n}return WJ(e,t),e.prototype._doStart=function(t,e,i,r,n){if(this._body.chart().isPolar())return!1;var o=this.chart.getBounds(),s=this._body.getBounds();return this._xStart=(0,UJ.maxv)(0,e-(s.x-o.x)),this._yStart=(0,UJ.maxv)(0,i-(s.y-o.y)),this._body.addFeedback(this._feedback=new YJ.RectElement(this.chart.doc(),"rct-zoom-tracker")),!0},e.prototype._hideFeedback=function(){this._feedback.remove()},e.prototype._doEnded=function(t,e){var i=this.chart.getBounds(),r=this._body.getBounds();this._vertical?(e=(0,UJ.maxv)(0,(0,UJ.minv)(r.height,e-(r.y-i.y))),this._body.setZoom(0,(0,UJ.minv)((0,UJ.maxv)(0,this._yStart),e),this._body.width,(0,UJ.maxv)((0,UJ.minv)(this._yStart,r.height),e))):(t=(0,UJ.maxv)(0,(0,UJ.minv)(r.width,t-(r.x-i.x))),this._body.setZoom((0,UJ.maxv)(0,(0,UJ.minv)(this._xStart,t)),0,(0,UJ.maxv)((0,UJ.minv)(this._xStart,r.width),t),this._body.height)),this._feedback.remove()},e.prototype._doDrag=function(t,e,i,r,n){var o=this.chart.getBounds(),s=this._body.getBounds();return this._vertical?(n=(0,UJ.maxv)(0,(0,UJ.minv)(s.height,n-(s.y-o.y))),this._feedback.setBounds(0,(0,UJ.minv)(this._yStart,n),this._body.width,(0,UJ.absv)(this._yStart-n))):(r=(0,UJ.maxv)(0,(0,UJ.minv)(s.width,r-(s.x-o.x))),this._feedback.setBounds((0,UJ.minv)(this._xStart,r),0,(0,UJ.absv)(this._xStart-r),this._body.height)),!0},e}(XJ);HJ.ZoomTracker=qJ;var ZJ=function(t){function e(e,i){var r=t.call(this,e)||this;return r._view=i,r}return WJ(e,t),e.prototype._doStart=function(t,e,i,r,n){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=Math.floor(s.length()),!0}return!1},e.prototype._doDrag=function(t,e,i,r,n){var o,s=this._view;return s._vertical?(o=s.svgToElement(r,n).y-this._startOff,o=s.getZoomPos(s.height-o-s._thumbView.height)):(o=s.svgToElement(r,n).x-this._startOff,o=s.getZoomPos(o)),s.model.axis.zoom(o,o+this._zoomLen),!0},e}(XJ);HJ.ScrollTracker=ZJ;var KJ=function(t){function e(e,i,r){var n=t.call(this,e)||this;return n._view=i,(n._isStart=i._startHandle.contains(r))?n._handleView=i._startHandle:n._handleView=i._endHandle,n}return WJ(e,t),e.prototype.cancel=function(){t.prototype.cancel.call(this),this._handleView.setBoolData("select",!1)},e.prototype._doStart=function(t,e,i,r,n){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,r,n){var o=this._view,s=o.model.axis();s._prepareZoom();var a=o.svgToElement(r,n).x-this._startOff,l=s._zoom.total(),u=s._zoom.min,c=o.model.options.minSize,p=a*l/o.width+u;return this._handleView._vertical?this._isStart:this._isStart?a>0?s.zoom(p,NaN,c):s.zoom(u,NaN,c):a>0&&a<o.width?s.zoom(NaN,p,c):a>=o.width&&s.zoom(NaN,s._zoom.max,c),!0},e}(XJ);HJ.NavigatorHandleTracker=KJ;var JJ=function(t){function e(e,i,r){var n=t.call(this,e)||this;return n._view=i,n._maskView=i._mask,n}return WJ(e,t),e.prototype._doStart=function(t,e,i,r,n){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,r,n){var o=this._view,s=o.svgToElement(r,n).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=(0,UJ.maxv)(0,(0,UJ.minv)(t,this._totalLen-this._zoomLen))+e.axis()._zoom.min,e.axis().zoom(t,t+this._zoomLen)},e}(XJ);HJ.NavigatorMaskTracker=JJ,Object.defineProperty(SW,"__esModule",{value:!0}),SW.ChartPointerHandler=void 0;var QJ=rM,tQ=iM,eQ=DB,iQ=PW,rQ=SU,nQ=XU,oQ=HJ,sQ=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,r=this.$_pointerToPoint(t),n=r.x,o=r.y;if(t.buttons>=1||0===t.buttons&&0===t.button){var s=this.isDragging(),a=this._clickElement;n<0||n>=e.control.dom().offsetWidth||o<0||o>=e.control.dom().offsetHeight||(s?this.$_doDrag(t,a,n,o):(!this._dragTracker&&((0,tQ.absv)(this._clickX-n)>3||(0,tQ.absv)(this._clickY-o)>3)||this._dragTracker&&!s)&&this.$_startMove(t,a,n,o))}else this.$_stopDragTracker(t,i,n,o,!0);this._prevX=n,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.handleLeave=function(t){this._chart.chartView().pointerLeaved(t.pointX,t.pointY,t.target)},t.prototype.handleClick=function(t){var e,i,r,n,o=this._chart.model,s=this._chart.chartView(),a=this._clickElement,l=s.getButton(a),u=this._chart.chart.exporter;if(u.isContextMenuVisible()&&u.toggleContextMenu(),l)!0!==l.click()&&s.buttonClicked(l);else if(r=s.legendByDom(a)){var c=null===(e=r.legend.options)||void 0===e?void 0:e.onLegendItemClick;if("function"!=typeof c||!1!==c({chart:o.wrapper,source:r.legend.getSources(r)}))QJ.Utils.makeArray(r.legend.getSources(r),!0).forEach((function(t){if(t instanceof eQ.DataPoint){var e=t,i=o.seriesByPoint(e);if(i){i.setPointVisible(e,!e.visible);var n=s.findSeriesView(i);n instanceof nQ.WidgetSeriesView&&n.togglePointVisible(e)}}else r.source.visible=!r.source.visible,s.bodyView().hoverSeries(r.source.visible?r.source:null)}))}else(n=s.seriesByDom(a))?n.clicked(a):(i=s.creditByDom(a))&&i.clicked(a)},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 r=this._chart.chartView(),n=r.bodyOf(t);return iQ.AxisScrollView.isThumb(t)?new oQ.ScrollTracker(this._chart,r.getScrollView(t)):rQ.NavigatorView.isHandle(t)?new oQ.NavigatorHandleTracker(this._chart,r._navigatorView,t):rQ.NavigatorView.isMask(t)&&n&&n.model.isZoomed()?new oQ.NavigatorMaskTracker(this._chart,r._navigatorView,t):n&&n.model.canZoom()&&n.contains(t)?new oQ.ZoomTracker(this._chart,n,r._inverted):void 0},t.prototype.$_doDrag=function(t,e,i,r){if(!this.$_drag(e,this._prevX,this._prevY,i,r))return this.$_stopDragTracker(t,e,i,r,!0),this._stopEvent(t),!0},t.prototype.$_startMove=function(t,e,i,r){this.$_startDrag(e,this._prevX,this._prevY,i,r)&&(i!==this._prevX||r!==this._prevY?this.$_doDrag(t,e,i,r):this._stopEvent(t),this._chart.setPointerCapture(t))},t.prototype.$_startDrag=function(t,e,i,r,n){if(this._dragTracker||this.setDragTracker(this._getDragTracker(t,r-e,n-i)),this._dragTracker){if(this._dragTracker.start(t,e,i,r,n))return!0;this._dragTracker=null}return!1},t.prototype.$_drag=function(t,e,i,r,n){return this._dragTracker.drag(t,e,i,r,n)},t.prototype.$_stopDragTracker=function(t,e,i,r,n){void 0===n&&(n=!1),this.isDragging()&&(this._chart.releasePointerCapture(t),n?this._dragTracker.cancel():this._dragTracker.drop(null,i,r),this._dragTracker=null)},t}();SW.ChartPointerHandler=sQ;var aQ={},lQ={},uQ=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(lQ,"__esModule",{value:!0}),lQ.HistoryView=void 0;var cQ=lj,pQ=function(t){function e(i){var r=t.call(this,i,e.TITLE_CLASS)||this;return r._itemViews=[],r._separators=[],r.itemGap=8,r.setVis(!1),r}return uQ(e,t),e.prototype.setHistory=function(t,e){if(this.setVis(e&&e.length>0)){for(var i=this._itemViews,r=this._separators;i.length<e.length;){(n=new cQ.TextElement(t,"rct-history-item")).anchor=cQ.TextAnchor.START,i.push(n)}for(;i.length>e.length;)i.pop().remove();for(;r.length<e.length-1;){var n;(n=new cQ.TextElement(t)).anchor=cQ.TextAnchor.START,n.text=">",r.push(n)}for(;r.length>e.length-1;)r.pop().remove();this.$_layout(e)}},e.prototype.$_layout=function(t){for(var e=this._itemViews,i=this._separators,r=this.itemGap,n=t.length,o=0,s=0;s<n;s++)e[s].text=t[s].name,e[s].transX(o),s<n-1&&(o+=e[s].width+r,i[s].transX(o),o+=i[s].width+r)},e.TITLE_CLASS="rct-history",e}(hj.LayerElement);lQ.HistoryView=pQ;var hQ={},fQ=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(hQ,"__esModule",{value:!0}),hQ.LegendView=hQ.LegendItemView=void 0;var dQ=iM,_Q=AW,yQ=VW,gQ=wM,vQ=CB,mQ=lj,bQ=BW,wQ=function(t){function e(e){var i=t.call(this,e,"rct-legend-item")||this;return i.add(i._back=new vQ.RectElement(e)),i._back.setFill("transparent"),i._back.setStroke("none"),i.add(i._label=new mQ.TextElement(e,"rct-legend-item-label")),i._label.anchor=mQ.TextAnchor.START,i}return fQ(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,r,n){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()||gQ.ELLIPSIS;var l=this._rMarker=this._marker.setVis(e.legend.options.markerVisible)?this._marker.getBBox():yQ.RECT_Z,u=(0,yQ.rectToSize)(this._label.getBBox());return this._gap=(0,dQ.pickNum)(e.legend.options.markerGap,0),{width:l.width+this._gap+u.width,height:(0,dQ.maxv)(l.height,u.height)}},e.prototype._doLayout=function(t){var e=this._rMarker,i=(0,dQ.pickNum)(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}(bQ.ChartElement);hQ.LegendItemView=wQ;var xQ=function(t){function e(i){var r=t.call(this,i,e.LEGEND_CLASS,"rct-legend-background")||this;return r._itemViews=new _Q.ElementPool(r,wQ),r}return fQ(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,r,n){var o=e.options,s=e.items(),a=this._vertical="vertical"===e.getLayout();return this._ipr=(0,dQ.pickNum)(o.itemsPerLine,Number.MAX_SAFE_INTEGER),this._gap="body"!==e._location?(0,dQ.pickNum)(o.gap,0):0,a?r=e.getMaxHeight(r):i=e.getMaxWidth(i),this.$_prepareItems(t,s),this.$_measure(t,e,a,this._ipr,i,r)},e.prototype._doLayout=function(){var t,e=this,i=this.model.options,r=this._rowViews,n=i.useTextColor,o=this._sizes,s=i.itemsAlign,a=i.lineGap||0,l=i.itemGap||0,u=this._margins,c=this._paddings,p=this._vertical,h=u.left+c.left,f=u.top+c.top,d=h,_=f;this._itemViews.forEach((function(t){var e=t.model.source,i=e.legendColor(),r=e.legendStroke();t._marker.setColor(i),r&&t._marker.setStroke(r),n&&e.visible?t._label.setFill(i):t._label.setFill("")})),r.forEach((function(i,r){p?(i.forEach((function(t){t.mw=o[r],t.resizeByMeasured().layout(e._wMarkers[r])})),_=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+c.top+c.bottom,_+="center"===s?(e.height-t)/2:e.height-t),i.forEach((function(t){t.trans(d,_),_+=t.height+l})),d+=o[r]+a):(i.forEach((function(t){t.resizeByMeasured().layout(NaN)})),d=h,"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+c.left+c.right,d+="center"===s?(e.width-t)/2:e.width-t),i.forEach((function(t){t.trans(d,_),d+=t.width+l})),_+=o[r]+a)}))},e.prototype.$_prepareItems=function(t,e){this._itemViews.prepare(e.length)},e.prototype.$_measure=function(t,e,i,r,n,o){var s,a,l,u,c=this,p=e.options,h=e.items(),f=this._itemViews,d=p.itemGap||0,_=p.lineGap||0,y=e.getMarkerSize(),g=f.count,v=this._rowViews=[],m=this._sizes=[];f.forEach((function(e,i){e.setMarker(h[i].source.legendMarker(t,y)),e.measure(t,h[i],n,o,1)}));var b=0,w=0;if(i){for(;b<g;)u=f.get(b),w%r==0?(v.push(l=[u]),a=u.mh,w++,b++):(a+=d+u.mh)<=o?(l.push(u),w++,b++):w=0;this._wMarkers=[],s=a=0,v.forEach((function(t,e){var i=0,r=0,n=0;t.forEach((function(t){r+=t.mh,i=(0,dQ.maxv)(i,t.mw),n=(0,dQ.maxv)(n,t._rMarker.width),t._col=e})),r+=d*(t.length-1),a=(0,dQ.maxv)(a,r),s+=i,m.push(i),c._wMarkers.push(n)})),s+=_*(v.length-1)}else{for(;b<g;)u=f.get(b),w%r==0?(v.push(l=[u]),s=u.mw,w++,b++):(s+=d+u.mw)<=n?(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=(0,dQ.maxv)(i,t.mh)})),e+=d*(t.length-1),s=(0,dQ.maxv)(s,e),a+=i,m.push(i)})),a+=_*(v.length-1)}return{width:s,height:a}},e.LEGEND_CLASS="rct-legend",e}(bQ.BoundableElement);hQ.LegendView=xQ;var SQ={},PQ=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(SQ,"__esModule",{value:!0}),SQ.PolarBodyView=void 0;var AQ=iM,OQ=AW,CQ=hj,EQ=wM,VQ=kU,LQ=EG,TQ=PW,kQ=PU,NQ=function(t){function e(e){var i=t.call(this,e,"rct-polar-axis-tick-mark")||this;return i.add(i._lineView=new VQ.CircleElement(e)),i}return PQ(e,t),e.prototype.layout=function(){},e}(CQ.RcElement),MQ=function(t){function e(e,i,r,n){var o=t.call(this,e,i)||this;return o.add(o._markContainer=new CQ.LayerElement(e,"rct-polar-axis-markers")),o._markViews=new OQ.ElementPool(o._markContainer,NQ),o.add(o._gridContainer=new CQ.RcElement(e,"rct-polar-axis-grids")),o._labelViews=new OQ.ElementPool(o._labelContainer=r,TQ.AxisLabelView,n?"rct-polar-xaxis-label":"rct-polar-yaxis-label"),o}return PQ(e,t),e.prototype.prepare=function(t,e,i,r){this._model=e,this._circular=i,this.$_prepareTickMarks(t,e),this.$_prepareLabels(t,e),this._doPrepare(e,e._ticks,i,r)},e.prototype.layout=function(t,e,i,r){var n=this._model._ticks;return this._doLayout(this._model,e,i,r,n,t),this},e.prototype.$_prepareTickMarks=function(t,e){this._markViews.prepare(e._ticks.length)},e.prototype._prepareLabel=function(t,e,i,r){var n=i.getLabelText(e,r),o=e.label,s=i.getLabelStyle(e,r);(t.value=e.value,null!=n)?o&&n.match(TQ.axis_label_reg)?t.setLabel(i,s,e,n.replace(TQ.axis_label_reg,o),1e3,1e3):(i.prepareRich(n),i._paramTick=e,i.buildSvg(t._text,t._outline,NaN,NaN,i,i._domain)):t.setLabel(i,s,e,o,1e3,1e3)},e.prototype.$_prepareLabels=function(t,e){var i=this,r=e.label;if(r.visible&&e.checkVisible()){var n=e._ticks;this._labelContainer.setStyleOrClass(r._style);var o=r.chart._body.getPolar(e),s=o.start,a=o.total,l="auto"===r.options.rotation,u=n.length;this._labelViews.prepare(u,(function(t,o,c){t.setVis(!0),i._prepareLabel(t,n[o],r,c);var p=l?(s+e.getPos(u,n[o].value))/a*360+90:0,h=t.getBBox(),f=h.width,d=h.height;t.setRotation(f/2,d/2,p)}))}else this._labelViews.forEach((function(t){return t.setVis(!1)}))},e.prototype.prepareGuides=function(t,e,i){var r=this._model.guides.filter((function(t){return!t.options.front}));e.setAll(t,r,!0),r=this._model.guides.filter((function(t){return t.options.front})),i.setAll(t,r,!0)},e}(CQ.RcElement),jQ=function(t){function e(i,r,n){var o=t.call(this,i,"rct-polar-xaxis",n,!0)||this;return o._gridLines=new OQ.ElementPool(o._gridContainer,LQ.LineElement,e.GRID_CLASS),r.insertFirst(o._startView=new LQ.LineElement(i,e.SECTOR_LINE_CLASS)),r.insertFirst(o._endView=new LQ.LineElement(i,e.SECTOR_LINE_CLASS)),r.insertFirst(o._lineView=new VQ.ArcPolyElement(i,e.LINE_CLASS)),o}return PQ(e,t),e.prototype._doPrepare=function(t,e,i){var r=t.line,n=t.sectorLine,o=this._lineView;this._gridContainer.setVis(t.grid.visible)&&this._gridLines.prepare(e.length),o.setVis(r.visible)&&(o.setStyleOrClass(r._style),o.setFill("none")),this._startView.setVis(i&&t.isArced()&&n.visible)?(this._startView.setStyleOrClass(n._style),this._endView.setVis(!0),this._endView.setStyleOrClass(n._style)):this._endView.setVis(!1)},e.prototype._doLayout=function(t,e,i,r,n,o){var s=t.getStartAngle(),a=t.getTotalAngle();if(n.forEach((function(t){return t.pos=t.pos/r*a/EQ.PI_2})),this._gridContainer.visible&&this._gridLines.forEach((function(o,a){var l=n[a].pos,u=e+(0,AQ.cos)(s+l)*r,c=i+(0,AQ.sin)(s+l)*r;o.setFill("none"),o.setLine(e,i,u,c),o.setStyleOrClass(t.grid.options.style)})),this._labelContainer.visible){var l=this._labelViews.count;if(l>0){var u=Math.ceil(9/(360/l)),c=r+t.tick._getLength(),p=this._labelContainer.textAlign()||"center";this._labelViews.forEach((function(t,r){if(t.setVis(r%u==0)){t.layout(p);var o=n[r],a=t.getBBox(),l=s+o.pos,h=e+(0,AQ.cos)(l)*(c+a.width/2)-a.width/2,f=i+(0,AQ.sin)(l)*(c+a.height/2)-a.height/2;t.trans(h,f)}})),l>2&&(0,AQ.absv)(n[l-1].pos-n[l-2].pos)<EQ.PI_2/24&&this._labelViews.get(l-1).setVis(!1)}}if(this._lineView.visible)if(this._circular)this._lineView.setArc(e,i,r,s,t.getTotalAngle(),!0);else{var h=[];n.map((function(t){var n=t.pos;h.push(e+(0,AQ.cos)(s+n)*r,i+(0,AQ.sin)(s+n)*r)})),this._lineView.setPolyline(h)}this._startView.visible&&(this._startView.setLine(e,i,e+(0,AQ.cos)(s)*r,i+(0,AQ.sin)(s)*r),this._endView.setLine(e,i,e+(0,AQ.cos)(s+a)*r,i+(0,AQ.sin)(s+a)*r))},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}(MQ),RQ=function(t){function e(i,r,n){var o=t.call(this,i,"rct-polar-yaxis",n,!1)||this;return o._gridLines=new OQ.ElementPool(o._gridContainer,VQ.ArcPolyElement,e.GRID_LINE_STYLE),r.add(o._lineView=new LQ.LineElement(i,"rct-polar-yaxis-line")),o}return PQ(e,t),e.prototype._doPrepare=function(t,e,i,r){var n=t.line;this._gridContainer.setVis(!1!==t.grid.visible)&&this._gridLines.prepare(e.length,null),(this._lineView.visible=n.visible)&&this._lineView.setStyleOrClass(n._style)},e.prototype._doLayout=function(t,e,i,r,n,o){var s=o.getStartAngle(),a=o.getTotalAngle();if(this._gridContainer.visible){var l=this._circular;this._gridLines.forEach((function(r,u){var c=n[u].pos;if(r.setFill("none"),l)r.setArc(e,i,c,s,a,!0);else{var p=[];o._ticks.forEach((function(t){var r=t.pos;p.push(e+(0,AQ.cos)(s+r)*c,i+(0,AQ.sin)(s+r)*c)})),r.setPolyline(p)}r.setStyleOrClass(t.grid.options.style)}))}if(this._labelContainer.visible)if(o.isArced()){var u=o.getStartAngle();this._labelViews.forEach((function(t,r){var o=e+(0,AQ.cos)(u)*n[r].pos-t.getBBox().width/2,s=i+(0,AQ.sin)(u)*n[r].pos-t.getBBox().height/2;t.setContrast(null).trans(o,s)}))}else this._labelViews.forEach((function(t,r){t.setContrast(null).trans(e+2,i-n[r].pos-t.getBBox().height/2)}));this._lineView.visible&&this._lineView.setVLine(e,i,i-r)},e.GRID_LINE_STYLE="rct-polar-yaxis-grid-line",e}(MQ),BQ=function(t){function e(e,i){var r=t.call(this,e,i)||this;return r._yAxisViews=[],r}return PQ(e,t),e.prototype._doMeasure=function(e,i,r,n,o){var s=i.chart,a=t.prototype._doMeasure.call(this,e,i,r,n,o);return this._prepareAxes(e,s.xAxis,s._getYAxes().visibles(),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),r=i.cx,n=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(r,n,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._xAxisContainer.visible&&this._xAxisView.layout(e.chart.yAxis,r,n,o),this._yAxisViews.forEach((function(t){t.layout(e.chart.xAxis,r,n,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,r,n){var o=this;this._xAxisContainer||(this.insertFirst(this._axisLabelContainer=new CQ.LayerElement(t,"rct-polar-axis-labels")),this.insertFirst(this._lineContainer=new CQ.LayerElement(t,"rct_axis-lines")),this.insertFirst(this._xAxisContainer=new CQ.LayerElement(t,"rct-polar-axes")),this.insertFirst(this._yAxisContainer=new CQ.LayerElement(t,"rct-polar-axes")));for(var s=this._yAxisViews;s.length<i.length;){var a=new RQ(t,this._lineContainer,this._axisLabelContainer);this._yAxisContainer.add(a),s.push(a)}for(;s.length>i.length;)s.pop().remove();s.forEach((function(e,s){e.setVis(!0),e.prepare(t,i[s],r,n),e.prepareGuides(t,o._guideContainer,o._frontGuideContainer)})),this._xAxisContainer.setVis(e.checkVisible())&&(this._xAxisView||(this._xAxisView=new jQ(t,this._lineContainer,this._axisLabelContainer)),this._xAxisContainer.add(this._xAxisView),this._xAxisView.prepare(t,e,r,n))},e}(kQ.BodyView);SQ.PolarBodyView=BQ;var DQ={},IQ=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(DQ,"__esModule",{value:!0}),DQ.TitleView=void 0;var GQ=VW,FQ=GM,zQ=lj,$Q=function(t){function e(i,r){var n=t.call(this,i,r?e.SUBTITLE_CLASS:e.TITLE_CLASS,r?"rct-subtitle-background":"rct-title-background")||this;return n.isSub=r,n.add(n._textView=new zQ.TextElement(i)),n._richText=new FQ.SvgRichText,n}return IQ(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,r,n){return this._richText.setFormat(e.options.text),this._richText.build(this._textView,i,r,null,null),(0,GQ.rectToSize)(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}(BW.BoundableElement);DQ.TitleView=$Q;var HQ={},WQ=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(HQ,"__esModule",{value:!0}),HQ.TooltipView=HQ.TooltipPosition=void 0;var UQ,YQ=iM,XQ=Sj,qQ=hj,ZQ=GM,KQ=lj,JQ=OB,QQ=TD;!function(t){t.TOP="top",t.BOTTOM="bottom",t.LEFT="left",t.RIGHT="right"}(UQ||(HQ.TooltipPosition=UQ={}));var t0=function(t){function e(i){var r=t.call(this,i,e.CLASS_NAME)||this;return r._tailVisible=!0,r._hideHandler=function(){r.$_hide(),r._hideTimer=void 0},r.add(r._back=new qQ.PathElement(i,"rct-tooltip-back")),r.add(r._top=new qQ.PathElement(i,"rct-tooltip-top")),r.add(r._textView=new KQ.TextElement(i,"rct-tooltip-text")),r._back.setAttr("filter","url(#"+qQ.RcControl.SHADOW_FILTER+")"),r._textView.anchor=KQ.TextAnchor.START,r._richText=new ZQ.SvgRichText,r.close(!0,!1),r}return WQ(e,t),e.prototype.show=function(t,e,i,r,n,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 c=l.options,p=c.text||u.getTooltipText(t,a);if(p&&p.trim()){this.setStyleOrClass(l._style);var h=this.control,f=h.contentWidth(),d=h.contentHeight(),_=this._textView,y=l.getHeaderHeight(),g=l.getTailSize(),v=l.getBorderRadius(),m=t.chart.isInverted(),b=t._yAxisObj,w=b.options.reversed;t instanceof JQ.BasedSeries&&t.getBaseValue(b)>e.point.yValue&&(w=!w),this._richText.setFormat(p),this._richText.build(_,NaN,NaN,null,l.getTextDomain());var x=_.getBBox(),S=(0,YQ.maxv)(c.minWidth||0,x.width+16),P=(0,YQ.maxv)(c.minHeight||0,x.height+12)+y,A=t._calcedColor;t instanceof JQ.WidgetSeries?(t.options.legendByPoint||t._colorByPoint())&&(A=a._calcedColor):t._colorByPoint()&&(A=getComputedStyle(e.dom).fill),this._top.setFill(A);var O,C="visible"===this.getStyle("visibility")?300:0,E=c.offset+g,V=o.getFocusPointView().getBounds(),L=h.getBounds();if(m&&!t.isWidget){O=n-P/2-(0,YQ.maxv)(0,(0,YQ.minv)(n-P/2,d-P)),this._tailVisible=Math.abs(P/2-v-g/2)>Math.abs(O),(l.isFollowPointer(t)?w?S+E>r:r+S+E>f:w?S+E>V.x-L.x+V.width:V.x-L.x-E>f-S)&&(w=!w);var T=w?UQ.LEFT:UQ.RIGHT;this.drawTooltip(0,0,S,P,T,O),w?r-=S+E:r+=E,n-=P/2}else{O=r-S/2-(0,YQ.maxv)(0,(0,YQ.minv)(r-S/2,f-S)),this._tailVisible=Math.abs(S/2-v-g/2)>Math.abs(O),(l.isFollowPointer(t)?w?n+P+E>d:n-(P+E)<0:w?d-(V.y-L.y-h._padding.top)<P+E:L.bottom-V.bottom+E>d-P)&&(w=!w);T=w?UQ.BOTTOM:UQ.TOP;this.drawTooltip(0,0,S,P,T,O),r-=S/2,w?n+=E:n-=P+E}r=(0,YQ.maxv)(0,(0,YQ.minv)(r,f-S)),n=(0,YQ.maxv)(0,(0,YQ.minv)(n,d-P)),isNaN(this.tx)||isNaN(this.tx)?(this.trans((0,YQ.maxv)(0,r-20),(0,YQ.maxv)(0,n-20)),this.transEx(r,n,C/2,!1)):this.transEx(r,n,C,!1),0===C&&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:QQ.Tooltip.defaults.hideDelay))},e.prototype.isVisible=function(){return"visible"===this.getStyle("visibility")},e.prototype.$_hide=function(){var t=this;(0,XQ.createAnimation)(this.dom,"opacity",void 0,0,200,(function(){t.setStyle("visibility","hidden")}))},e.prototype.drawTooltip=function(t,e,i,r,n,o){var s=this._model,a=s.getTailSize(),l=s.getBorderRadius(),u=s.getHeaderHeight(),c=["M",t+l,e,"L",t+i-l,e,"Q",t+i,e,t+i,e+l,"L",t+i,e+r-l,"Q",t+i,e+r,t+i-l,e+r,"L",t+l,e+r,"Q",t,e+r,t,e+r-l,"L",t,e+l,"Q",t,e,t+l,e];if(this._tailVisible)switch(n){case UQ.TOP:c=c.concat(["M",t+i/2-a/2+o,e+r,"L",t+i/2+o,e+r+a,"L",t+i/2+a/2+o,e+r]);break;case UQ.BOTTOM:c=c.concat(["M",t+i/2-a/2+o,e,"L",t+i/2+o,e-a,"L",t+i/2+a/2+o,e]);break;case UQ.LEFT:c=c.concat(["M",t+i,e+r/2-a/2+o,"L",t+i+a,e+r/2+o,"L",t+i,e+r/2+a/2+o]);break;case UQ.RIGHT:c=c.concat(["M",t,e+r/2-a/2+o,"L",t-a,e+r/2+o,"L",t,e+r/2+a/2+o])}var p=n===UQ.BOTTOM,h=p?["M",t,e+r-u,"l",i,0,"l",0,u-l,"q",0,l,-l,l,"l",2*l-i,0,"q",-l,0,-l,-l]:["M",t+l,e,"l",i-2*l,0,"q",l,0,l,l,"l",0,u-l,"l",-i,0,"l",0,l-u,"q",0,-l,l,-l],f=this._textView,d=f.getBBox();t+=(i-d.width)/2,e+=(r-d.height+(p?-u:u))/2,f.trans(t,e),this._top.setPath(u>0?h:""),this._back.setPath(c)},e.CLASS_NAME="rct-tooltip",e}(qQ.RcElement);HQ.TooltipView=t0;var e0=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),i0=t&&t.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s},r0=t&&t.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))},n0=t&&t.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,i=e&&t[e],r=0;if(i)return i.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(aQ,"__esModule",{value:!0}),aQ.ChartView=aQ.PaneContainer=aQ.CreditView=void 0;var o0=iM,s0=rM,a0=hj,l0=lj,u0=VM,c0=DB,p0=_B,h0=OB,f0=pG,d0=PW,_0=PU,y0=BW,g0=lQ,v0=hQ,m0=SU,b0=SQ,w0=DQ,x0=HQ,S0=ZB,P0=function(t){function e(){var e=t.apply(this,r0([],i0(arguments),!1))||this;return e._hTitle=0,e._wTitle=0,e._hSub=0,e._wSub=0,e}return e0(e,t),e.prototype._doInitChildren=function(t){this.add(this.titleView=new w0.TitleView(t,!1)),this.add(this.subtitleView=new w0.TitleView(t,!0))},e.prototype._doMeasure=function(t,e,i,r,n){var o,s=e._title,a=e._subtitle,l=0,u=0,c=0,p=0,h=this.titleView,f=i,d=0,_=0;switch(h.setVis(s.visible)?(o=h.measure(t,s,i,r,n),u=this._hTitle=o.height,l=this._wTitle=o.width):h.setModel(s),(h=this.subtitleView).setVis(a.visible)?(o=h.measure(t,a,i,r,n),p=this._hSub=o.height,c=this._wSub=o.width,_=+a.options.titleGap||0):h.setModel(a),a.options.position){case"leftSide":case"left":case"rightSide":case"right":d=(0,o0.maxv)(u,p),f=l+_+c;break;default:d=u+_+p,f=(0,o0.maxv)(f,l+c)}return d>0&&(d+=this.titleView.visible?(0,o0.pickNum)(s.options.gap,0):(0,o0.pickNum)(a.options.gap,0)),{width:f,height:d}},e.prototype._doLayout=function(t){var e=this,i=this.titleView,r=this.subtitleView,n=i.model,o=r.model,s=n&&n.options,a=o&&o.options,l=n&&n.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,c=this._wTitle>t.wPlot||n&&"chart"===s.alignBase?0:t.xPlot,p=this._wSub>t.wPlot||o&&"chart"===a.alignBase?0:t.xPlot;if(l>0&&u>0){var h=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=(0,o0.maxv)(e._hTitle,e._hSub);g=(0,o0.maxv)(g,g+h(n,t,e._hTitle)),m=(0,o0.maxv)(m,m+h(o,t,e._hSub))},d=function(t,e,i){switch(t.options.align){case"left":return 0;case"right":return e-i;default:return(e-i)/2}},_=function(){if(v=(0,o0.maxv)(v,v+d(n,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=(0,o0.maxv)(b,b+d(o,u,e._wSub))},y=(0,o0.pickNum)(a.titleGap,0),g=0,v=c,m=0,b=p;switch(s.align){case"left":switch(a.position){case"leftSide":case"left":v=b+this._wSub+y,f();break;case"rightSide":b=v+this._wTitle+y,f();break;case"right":switch(b=v+this._wTitle+y,a.align){case"center":b=(0,o0.maxv)(b,b+(u-this._wTitle-this._wSub)/2);break;case"right":b=(0,o0.maxv)(b,p+u-this._wSub)}f();break;case"top":_(),g=m+this._hSub+y;break;default:_(),m=g+this._hTitle+y}break;case"right":switch(a.position){case"leftSide":v+=l-this._wTitle,b=v-y-this._wSub,f();break;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"rightSide":case"right":b+=u-this._wSub,v=b-y-this._wTitle,f();break;case"top":_(),g=m+this._hSub+y;break;default:_(),m=g+this._hTitle+y}break;default:switch(a.position){case"leftSide":v+=(l-this._wTitle)/2,b=v-this._wSub-y,f();break;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-this._wSub-y}f();break;case"rightSide":v+=(l-this._wTitle)/2,b=v+this._wTitle+y,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":_(),g=m+this._hSub+y;break;default:_(),m=g+this._hTitle+y}}var w=(0,o0.pickNum)(s.offset,0),x=(0,o0.pickNum)(a.offset,0);0!==w&&(v+="right"===s.align?-w:w,"leftSide"!==a.position&&"rightSide"!==a.position||(b+="right"===s.align?-w:w)),0!==x&&"leftSide"!==a.position&&"rightSide"!==a.position&&(b+="right"===a.align?-x:x),i.resizeByMeasured().layout().trans(v,g),r.resizeByMeasured().layout().trans(b,m)}else if(l>0||u>0){var S=l?n:o,P=l?i:r,A=l||u,O=l?this._wTitle:this._wSub,C=l?c:p;switch(P.resizeByMeasured().layout(),S.options.align){case"left":break;case"right":C+=A-O;break;default:C+=(A-O)/2}P.trans(C,0)}},e}(y0.SectionView),A0=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return e0(e,t),e.prototype._doInitChildren=function(t){this.add(this._legendView=new v0.LegendView(t))},e.prototype._doMeasure=function(t,e,i,r,n){var o=e._legend,s=this._legendView.measure(t,o,i,r,n),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,r=this.height,n=0,o=0;switch(this._pos){case"left":i-=e;break;case"right":i-=e,n+=e;break;case"top":r-=e;break;default:o+=e,r-=e}t.trans(n,o).resize(i,r),t.layout()},e}(y0.SectionView),O0=function(t){function e(e,i){var r=t.call(this,e)||this;return r.dir=i,r.views=[],r._gap=0,r}return e0(e,t),e.prototype.prepare=function(t,e,i,r,n){var o,s=this.views;for(s.length;s.length<i.length;)o=new d0.AxisView(t),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.length>0)){var a=s[0].model;this.isX=a._isX,this.isHorz=a._isHorz,this._gap=a.chart.getAxesGap()}},e.prototype.prepareGuides=function(t,e,i){this.views.forEach((function(r,n){r.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,r){var n=0;return t&&(t.forEach((function(t){n+=t.checkHeight(e,i,r)})),n+=(this.views.length-1)*this._gap),n},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,r){var n=0;return t&&(t.forEach((function(t){n+=t.checkWidth(e,i,r)})),n+=(this.views.length-1)*this._gap),n},e.prototype.getScrollView=function(t){var e,i,r;try{for(var n=n0(this.views),o=n.next();!o.done;o=n.next()){var s=o.value;if(null===(r=s._scrollView)||void 0===r?void 0:r.contains(t))return s._scrollView}}catch(t){e={error:t}}finally{try{o&&!o.done&&(i=n.return)&&i.call(n)}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._doMeasure=function(t,e,i,r,n){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,r),c=0,p=0;e.forEach((function(e){if(e.visible){var i=e.measure(t,e.model,l,u,n);e.setAttr("xy",e.model._isX?"x":"y"),c+=i.width,p+=i.height}})),o.isHorz?p+=(e.length-1)*o._gap:c+=(e.length-1)*o._gap,s=(0,o0.maxv)(s,c),a=(0,o0.maxv)(a,p)}})),{width:s,height:a}},e.prototype._doLayout=function(t){var e=this,i=this.control.loaded,r=[],n=this.width,o=this.height,s=0,a=0;t=+t||0,[this.views].forEach((function(l){if(l){var u=0;l.forEach((function(t){if(t.visible){var l=t.checkExtents(i);l&&r.push(l),e.isHorz?(t.resize(n,t.mh),t.model._calcPoints(e.width,999)):(t.model._calcPoints(e.height,999),t.resize(t.mw,o)),t.layout(),e.isHorz?(t.trans(s,e.dir===u0.SectionDir.TOP?o-u-t.mh:u),u+=t.mh+e._gap):(t.trans(e.dir===u0.SectionDir.RIGHT?u:n-u-t.mw,a),u+=t.mw+e._gap)}})),e.isHorz?s+=n+t:a+=o+t}}));var l=this.control.chart.body.options.zoomCallback;r.length>0&&l&&Promise.resolve().then((function(){r.forEach((function(t){var e=t.axis,i=t.from,r=t.to;l({chart:e.chart.wrapper,series:e.getConnectableSeries().slice(0),from:e instanceof S0.CategoryAxis?Math.floor(i):i,to:e instanceof S0.CategoryAxis?Math.floor(r):r})}))}))},e}(y0.SectionView),C0=function(t){function e(e){var i=t.call(this,e,"rct-credits")||this;return i.add(i._textView=new l0.TextElement(e)),i._textView.anchor=l0.TextAnchor.START,i}return e0(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,r,n){return this._textView.text=e.options.text,this.setCursor(e.options.url?"pointer":""),this._textView.getBBox()},e}(y0.ChartElement);aQ.CreditView=C0;var E0=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return e0(e,t),e}(a0.LayerElement);aQ.PaneContainer=E0;var V0=function(t){function e(i){var r=t.call(this,i,"rct-chart")||this;for(var n in r._inverted=!1,r._axisSectionMap={},r._annotationViews=[],r._annotationMap=new Map,r.add(r._annotationContainer=new a0.LayerElement(i,"rct-annotations")),r.add(r._plotContainer=new a0.LayerElement(i,"rct-plot-container")),r._plotContainer.add(r._currBody=r._bodyView=new _0.BodyView(i,r)),u0.SectionDir){var o=new O0(i,u0.SectionDir[n]);r._plotContainer.add(o),r._axisSectionMap[u0.SectionDir[n]]=o}return e.pane_class&&r.add(r._paneContainer=new e.pane_class(i,r)),r.add(r._titleSectionView=new P0(i)),r.add(r._legendSectionView=new A0(i)),r.add(r._frontAnnotationContainer=new a0.LayerElement(i,"rct-front-annotations")),r.add(r._creditView=new C0(i)),r.add(r._navigatorView=new m0.NavigatorView(i)),r.add(r._historyView=new g0.HistoryView(i)),r.add(r._tooltipView=new x0.TooltipView(i)),r}return e0(e,t),e.registerPaneClass=function(t){this.pane_class=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,r,n){var o,s,a,l,u=this,c=this._model=e,p=c.isPolar(),h=c._credits,f=c._legend,d=c._navigator,_=i,y=r;if(e._width=i,e._height=r,this._inverted=c.isInverted(),c.isSplitted()?(this._plotContainer.setVis(!1),null===(o=this._paneContainer)||void 0===o||o.setVis(!0),this.$_preparePanes(t,c._split)):(this._plotContainer.setVis(!0),null===(s=this._paneContainer)||void 0===s||s.setVis(!1),this.$_prepareBody(t,p)),this._creditView.setVis(h.visible)&&(l=this._creditView.measure(t,h,_,y,n),h.isFloating()||("middle"!==h.options.verticalAlign?y-=l.height+(+h.options.offsetY||0)+(+h.options.gap||0):"center"!==h.options.align&&(_-=l.width+(+h.options.offsetX||0)+(+h.options.gap||0)))),y-=(l=this._titleSectionView.measure(t,c,_,y,n)).height,this._legendSectionView.setVis(f.visible))switch(l=this._legendSectionView.measure(t,c,_,y,n),f._location){case"top":case"bottom":y-=l.height;break;case"right":case"left":_-=l.width}if(this._navigatorView.setVis(d.visible),null===(a=this._paneContainer)||void 0===a?void 0:a.visible)this._paneContainer.measure(t,c._split,_,y,1);else{if(this._navigatorView.visible){var g=c._navigator;g._vertical?_-=g.getSize():y-=g.getSize()}p?this.$_measurePolar(t,c,_,y,1):this.$_measurePlot(t,c,_,y,1)}if(this._navigatorView.visible){var v=p?this._polarView:this._bodyView;c._navigator._vertical?y=v.mh:_=v.mw,this._navigatorView.measure(t,d,_,y,n)}this.$_prepareAnnotations(t,e.getAnnotations()),this._annotationViews.forEach((function(e,o){e.measure(t,u._annotations[o],i,r,n)}))},e.prototype.layout=function(){var t,e=this,i=this.width,r=this.height,n=i,o=r,s=this._model,a=s.isPolar(),l=s._legend,u=this._creditView,c=s._credits,p=c.options,h=+p.gap||0,f=this._bodyView._depthExt,d=0,_=0,y=0,g=0,v=0,m=0,b=0,w=0;u.visible&&(u.resizeByMeasured(),c.isFloating()||("middle"!==p.verticalAlign?(d=+p.offsetY||0,"top"===p.verticalAlign?o-=y=u.height+d+h:o-=g=u.height+d+h):(_=+p.offsetX||0,"left"===p.align?n-=v=u.width+_+h:n-=m=u.width+_+h)));var x=this._titleSectionView,S=0,P=w+y;x.visible&&(x.resizeByMeasured(),o-=S=x.height),b=v,w=r-g;var A=this._navigatorView,O=0;A.visible&&(A.model._vertical||(A.resize(A.mw,A.mh-A.model.getGap()-A.model.getGapFar()),o-=O=A.mh));var C,E,V=this._legendSectionView,L=0,T=0;if(V.visible)switch(V.resizeByMeasured().layout(),L=V.height,T=V.width,l._location){case"top":C=S+y,o-=L;break;case"bottom":o-=L,C=w-L,w-=L;break;case"right":n-=T,E=i-T;break;case"left":n-=T,b+=T,E=0}A.visible&&(w-=O,A.layout().transY(w+A.model.getGap()));var k,N=0,M=0;if(null===(t=this._paneContainer)||void 0===t?void 0:t.visible)this._paneContainer.trans(b,P+S).resize(n,o),this._paneContainer.layout(),N=o,M=n,k=this._paneContainer.getRect();else{var j,R=this._axisSectionMap;a||([u0.SectionDir.LEFT,u0.SectionDir.RIGHT].forEach((function(t){(j=R[t])&&j.visible&&(n-=j.mw)})),[u0.SectionDir.TOP,u0.SectionDir.BOTTOM].forEach((function(t){(j=R[t])&&j.visible&&(o-=j.mh)})),(j=R[u0.SectionDir.LEFT])&&j.visible&&(j.resize(j.mw,o-(f?f.side:0)),j.layout(0),b+=j.mw),(j=R[u0.SectionDir.RIGHT])&&j.visible&&(j.resize(j.mw,o-(f?f.side:0)),j.layout(0)),(j=R[u0.SectionDir.BOTTOM])&&j.visible&&(j.resize(n-(f?f.base:0),j.mh),a||j.transX(b),j.layout(0),w-=j.mh),(j=R[u0.SectionDir.TOP])&&j.visible&&(j.resize(n-(f?f.base:0),j.mh),a||j.transX(b),j.layout(0))),A.visible&&A.layout().transX(b);var B=this._org={x:b,y:w};this._plotWidth=n,this._plotHeight=o,a||((j=R[u0.SectionDir.LEFT])&&j.visible&&j.trans(B.x-j.mw,B.y-j.height),(j=R[u0.SectionDir.RIGHT])&&j.visible&&j.trans(B.x+n,B.y-j.height),(j=R[u0.SectionDir.BOTTOM])&&j.visible&&j.trans(B.x,B.y),(j=R[u0.SectionDir.TOP])&&j.visible&&j.trans(B.x,B.y-o-j.height));var D=this._currBody;N=this._plotHeight-0,M=this._plotWidth-0,b=B.x,w=B.y-this._plotHeight,D.resize(M,N),D.trans(b,w),D.layout(),k=D.getRect(),D._seriesViews.forEach((function(t){if(t.needDecoreateLegend()){var i=e._legendSectionView._legendView.legendOfSeries(t.model);i&&t.decoreateLegend(i)}}))}if(u.visible){var I=void 0,G=void 0;switch(u.layout(),p.verticalAlign){case"top":G=d;break;case"middle":G=(r-u.height)/2+d;break;default:G=g>0?r-g+h:r-u.height-d}switch(p.align){case"left":I=_;break;case"center":I=(i-u.width)/2+_;break;default:I=m>0?i-m+h:i-u.width-_}u.trans(I,G)}if(M+=0,x.visible&&x.layout({xPlot:b,wPlot:M,wChart:i}).trans(0,P),V.visible){var F=l.options,z=F.align,$=F.verticalAlign;if("body"===l._location){var H=+F.offsetX||0;switch(z){case"right":b+=M-T-H;break;case"center":b+=(M-T)/2+H;break;default:b+=H}switch(H=+F.offsetY||0,$){case"bottom":w+=N-L-H;break;case"middle":w+=(N-L)/2+H;break;default:w+=H}}else if(isNaN(C)){H=+F.offsetY||0;if(b=E,"chart"===F.alignBase){switch($){case"top":w=H;break;case"bottom":w=r-L-H;break;default:w=(r-L)/2+H}w+L>r&&(w=(r-L)/2)}else switch($){case"top":w+=H;break;case"bottom":w=w+o-L-H;break;default:w=w+(o-L)/2+H}w+L>r&&(w=(r-L)/2),w<0&&(w=0)}else{var H=+F.offsetX||0;if(w=C,"chart"===F.alignBase)switch(z){case"left":b=H;break;case"right":b=i-T-H;break;default:b=(i-T)/2+H}else switch(z){case"left":b+=H;break;case"right":b=b+n-T-H;break;default:b+=(n-T)/2+H}b+T>i&&(b=(i-T)/2),b<0&&(b=0)}V.trans(b,w)}this.$_layoutAnnotations(this._inverted,i,r,k),this._tooltipView.close(!0,!1)},e.prototype.showTooltip=function(t,e,i,r,n){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=r.getTooltipPos(),c=l?n.x+u.x:s+u.x,p=l?n.y+u.y:a+u.y;this._tooltipView.show(t,e,i,c,p,r,!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){var e=this._legendSectionView._legendView.legendByDom(t);return!e&&this._model.isSplitted()&&(e=this._paneContainer.legendByDom(t)),e},e.prototype.seriesByDom=function(t){var e;return(null===(e=this._paneContainer)||void 0===e?void 0:e.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 r,n,o=this,s=i,a=this._model&&this.bodyOf(i),l=null==s?void 0:s.classList,u=(null==l?void 0:l.value)&&(l.contains("rct-contextmenu-item")||l.contains("rct-contextmenu-list")),c=this._hoverItem;if(this._hoverItem=null,(null===(r=this._model)||void 0===r?void 0:r.isSplitted())&&this._paneContainer.bodies.forEach((function(t){t!==a&&t.clearHover()})),a){var p=a.controlToElement(t,e),h=a.pointerMoved(p,i);if(!this._hoverItem&&this._legendSectionView._legendView.contains(s)){var f=this._hoverItem=this._legendSectionView._legendView.legendByDom(s);if(f){var d=f.legend;s0.Utils.makeArray(d.getSources(f),!0).forEach((function(t){d.options.seriesHovering&&t instanceof h0.Series?a.hoverSeries(t):d.options.pointHovering&&t instanceof c0.DataPoint&&a.hoverPoint(t)}))}}if(c instanceof p0.LegendItem&&!(this._hoverItem instanceof p0.LegendItem)&&(a.hoverPoint(null),a.hoverSeries(null)),!h)return void a.removeFocus();for(var _ in this._axisSectionMap)this._axisSectionMap[_].views.forEach((function(t){var e=t.model,i=e.crosshair,r=e._isHorz?a.width:a.height,n=e._isHorz?p.x:p.y,s=h&&i.visible&&!u&&i.flag.visible&&!i.isBar()&&i.getFlag(r,n);if(s){t.showCrosshair(n,s);var l=[];a._seriesViews.forEach((function(t){var i,r=Number.MAX_SAFE_INTEGER,n=o._model.inverted;t.model._visPoints.forEach((function(t){var o=t.xPos,s=t instanceof f0.AreaRangeSeriesPoint&&!n?t.yPos-(t.yPos-t.yLow)/2:t.yPos,a=e._isX?Math.abs(p.x-o):Math.abs(p.y-s);a<r&&(r=a,i=t)})),l.push(i)})),i.moved(n,s,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.pointerLeaved=function(t,e,i){},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 u0.SectionDir){var i=this._axisSectionMap[u0.SectionDir[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,r;e?(this._polarView||(this._polarView=new b0.PolarBodyView(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===(r=this._polarView)||void 0===r||r.setVis(!1),this._bodyView.setVis(!0),this._currBody=this._bodyView),this._currBody.prepareRender(t,this._model._body,e)},e.prototype.$_prepareAxes=function(t,e){var i=this._currBody._gridRowContainer,r=this._currBody._guideContainer,n=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,!0),r,n):l.visible=!1}i.prepare()},e.prototype.$_prepareAxisGuides=function(t,e){var i=this._currBody._guideContainer,r=this._currBody._frontGuideContainer,n=!e.isPolar()&&e._needAxes(),o=this._axisSectionMap;for(var s in o){var a=o[s];n&&a.visible&&a.prepareGuides(t,i,r)}},e.prototype.$_measurePlot=function(t,e,i,r,n){var o=this._axisSectionMap,s=i,a=r,l=this._bodyView.checkDepth(e,i,r),u=i-(l?l.base:0),c=r-(l?l.side:0);for(var p in this._bodyView.prepareGuideContainers(),this.$_prepareAxes(t,e),e.layoutAxes(u,c,this._inverted,n),i-=o[u0.SectionDir.LEFT].checkWidths(t,i,r),i-=o[u0.SectionDir.RIGHT].checkWidths(t,i,r),r-=o[u0.SectionDir.BOTTOM].checkHeights(t,i,r),r-=o[u0.SectionDir.TOP].checkHeights(t,i,r),u=i-((l=this._bodyView.checkDepth(e,i,r))?l.base:0),c=r-(l?l.side:0),e.layoutAxes(u,c,this._inverted,n),o){(h=o[p]).visible&&h.measure(t,e,u,c,n)}for(var p in i=s,r=a,o){(h=o[p]).visible&&(p===u0.SectionDir.LEFT||p===u0.SectionDir.RIGHT?i-=h.mw:p!==u0.SectionDir.BOTTOM&&p!==u0.SectionDir.TOP||(r-=h.mh))}for(var p in n++,u=i-((l=this._bodyView.checkDepth(e,i,r))?l.base:0),c=r-(l?l.side:0),e.layoutAxes(u,c,this._inverted,n),this.$_prepareAxisGuides(t,e),o){(h=o[p]).visible&&(h.measure(t,e,u,c,n),h.prepareGridRows(t,this._bodyView._gridRowContainer))}for(var p in i=s,r=a,o){var h;(h=o[p]).visible&&(p===u0.SectionDir.LEFT||p===u0.SectionDir.RIGHT?i-=h.mw:p!==u0.SectionDir.BOTTOM&&p!==u0.SectionDir.TOP||(r-=h.mh))}u=i-((l=this._bodyView.checkDepth(e,i,r))?l.base:0),c=r-(l?l.side:0),e.axesLayouted(u,c,this._inverted),this._bodyView.measure(t,e._body,i,r,n)},e.prototype.$_measurePolar=function(t,e,i,r,n){var o=e._body.getRadius(i,r),s=2*Math.PI*o,a=o;this._polarView.prepareGuideContainers(),this.$_prepareAxes(t,e),e.layoutAxes(s,a,!1,n),this.$_prepareAxisGuides(t,e),e.axesLayouted(s,a,!1),this._polarView.measure(t,e._body,i,r,n)},e.prototype.$_prepareAnnotations=function(t,e){var i,r,n=this._annotationContainer,o=this._frontAnnotationContainer,s=this._annotationMap,a=this._annotationViews;try{for(var l=n0(s.keys()),u=l.next();!u.done;u=l.next()){var c=u.value;e.indexOf(c)<0&&s.delete(c)}}catch(t){i={error:t}}finally{try{u&&!u.done&&(r=l.return)&&r.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)||(0,_0.createAnnotationView)(t,e);(e.options.front?o:n).add(i),s.set(e,i),a.push(i)}))},e.prototype.$_layoutAnnotations=function(t,e,i,r){var n,o,s,a,l=this,u=this.control._padding;this._annotationViews.forEach((function(r){if("container"===r.model.options.scope)n=-u.left,o=-u.top,s=e+u.left+u.right,a=i+u.top+u.bottom;else n=o=0,s=e,a=i;r._layoutView(t,l,n,o,s,a)}))},e}(a0.LayerElement);aQ.ChartView=V0;var L0=t&&t.__extends||function(){var t=function(e,i){return t=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])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(tM,"__esModule",{value:!0}),tM.ChartControl=void 0;var T0,k0=eM,N0=iM,M0=hj,j0=LM,R0=TM,B0=SW,D0=aQ;!function(t){t.EXPORT="$$realchart_export"}(T0||(T0={}));var I0=function(t){function e(e,i){var r=t.call(this,e,i)||this;return r.addElement(r._chartView=new D0.ChartView(e)),r.setPointerHandler(new B0.ChartPointerHandler(r)),r}return L0(e,t),e.prototype._initControl=function(e,i,r){var n=this;t.prototype._initControl.call(this,e,i,r),this._chart=new k0.Chart(null,(function(t,e){n.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 j0.Annotation&&i===R0.ChartItem.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===T0.EXPORT){var e=t.createExporter(this.doc(),this.dom(),this.model);this.chart.exporter.compose(e)}},e.prototype._doRender=function(t){var e,i=this,r=this.model,n=r._chartOptions.options,o=this._chartView;if(this.clearTemporaryDefs(),r&&(this.setData("theme",n.theme,!0),this.setData("palette",n.palette),this.setResizeDelay(n.resizeDelay),r._prepareRender(),this._loadModules()),this.loaded||o.clean(),o.setVis(!1!==n.visible)&&(o.measure(this.doc(),r,t.width,t.height,1),o.setRect(t),o.layout(),r&&r.afterRender()),null===(e=this._chart)||void 0===e?void 0:e._loadCallback){var s=this._chart._loadCallback;setTimeout((function(){s({chart:i.chart})}),0),this._chart._loadCallback=void 0}},e.prototype._doRenderBackground=function(t,e,i,r){if(this.model){var n=this.model._chartOptions._style;if((0,N0.isObject)(n))for(var o in n)o.startsWith("padding")?e.setStyle(o,n[o]):t.style[o]=n[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.chart)}},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._exporter.options)}}},e}(M0.RcControl);tM.ChartControl=I0,Object.defineProperty(QN,"__esModule",{value:!0}),QN.Globals=void 0;var G0=tM,F0=eM,z0=iM,$0=hj,H0=pM,W0=rM,U0=vj,Y0=function(){function t(){}return t.getVersion=function(){return U0.globalRealChartInfo.version},t.setLicenseKey=function(t){U0.globalRealChartInfo.code=t},t.setLocale=function(t,e){e&&(0,H0.$_registerLocale)(t,e),(0,H0.$_setLocale)(t)},t.registerLocale=function(t,e){(0,H0.$_registerLocale)(t,e)},t.setDebugging=function(t){$0.RcElement.DEBUGGING=z0.RcDebug._debugging=t},t.setLogging=function(t){W0.Utils.LOGGING=t},t.setAnimatable=function(t){$0.RcControl._animatable=t},t.configure=function(t){return t},t.createChart=function(t,e,i,r,n){void 0===r&&(r=!0);var o=new G0.ChartControl(t,e);return(0,z0.isObject)(i)&&o.chart.load(i,r,n),o.chart[F0.CTRL]=o,o.chart},t.createData=function(t,e){return new F0.ChartData(t||{},e)},t}();QN.Globals=Y0;var X0={};Object.defineProperty(X0,"__esModule",{value:!0}),X0.Point=void 0;var q0=function(){function t(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this.x=t,this.y=e}return t.empty=function(){return new t},t.create=function(e,i){return void 0===e&&(e=0),void 0===i&&(i=0),new t(e,i)},t}();X0.Point=q0;var Z0={};!function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.GaugeTypes=t.LinearGaugeGroupType=t.LinearGaugeType=t.ClockGaugeType=t._ClockGaugeLabelPosition=t.CircleGaugeGroupType=t.CircleGaugeType=t._GaugeItemPosition=t.BulletGaugeGroupType=t.BulletGaugeType=void 0,t.BulletGaugeType="bullet",t.BulletGaugeGroupType="bulletgroup",t._GaugeItemPosition={DEFAULT:"default",OPPOSITE:"opposite",INSIDE:"inside"},t.CircleGaugeType="circle",t.CircleGaugeGroupType="circlegroup",t._ClockGaugeLabelPosition={TOP:"top",BOTTOM:"bottom"},t.ClockGaugeType="clock",t.LinearGaugeType="linear",t.LinearGaugeGroupType="lineargroup",t.GaugeTypes={BulletGaugeType:t.BulletGaugeType,CircleGaugeType:t.CircleGaugeType,ClockGaugeType:t.ClockGaugeType,LinearGaugeType:t.LinearGaugeType,CircleGaugeGroupType:t.CircleGaugeGroupType,LinearGaugeGroupType:t.LinearGaugeGroupType,BulletGaugeGroupType:t.BulletGaugeGroupType}}(Z0);var K0={};Object.defineProperty(K0,"__esModule",{value:!0}),K0.Size=void 0;var J0=function(){function t(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this.width=t,this.height=e}return t.empty=function(){return new t},t.create=function(e,i){return void 0===e&&(e=0),void 0===i&&(i=0),new t(e,i)},t}();return K0.Size=J0,function(e){var i=t&&t.__createBinding||(Object.create?function(t,e,i,r){void 0===r&&(r=i);var n=Object.getOwnPropertyDescriptor(e,i);n&&!("get"in n?!e.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,r,n)}:function(t,e,i,r){void 0===r&&(r=i),t[r]=e[i]}),r=t&&t.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||i(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.AxisTitle=e.AxisTick=e.AxisSectorLine=e.AxisScrollBar=e.AxisLine=e.AxisLabel=e.AxisItem=e.AxisGrid=e.AxisCollection=e.Axis=e.Exporter=e.SvgShapes=e.Tooltip=e.Subtitle=e.Title=e.NavigatorMask=e.NavigiatorHandle=e.SeriesNavigator=e.LegendItem=e.Legend=e.BodyDepth=e.Body=e.AssetCollection=e.Annotation=e.ZValuePoint=e.DataPointCollection=e.DataPoint=e.ChartObject=e.PointHovering=e.Credits=e.ChartOptions=e.extend=e.ChartText=e.IconedText=e.ChartItem=e.ChartControl=e.Point=e.RcObject=e.ChartData=e.Chart=e.ChartDataCollection=e.RcControl=e.setLicenseKey=e.createData=e.createChart=e.configure=e.setAnimatable=e.setLogging=e.setDebugging=e.getVersion=void 0,e.ConstraintSeriesGroup=e.SeriesGroup=e.Series=e.BarSeriesGroupBase=e.BarSeriesBase=e.LineSeriesBase=e.WaterfallSeries=e.ScatterSeries=e.PieSeriesText=e.PieSeriesLabel=e.PieSeriesGroup=e.PieSeries=e.ParetoSeries=e.OhlcSeries=e.LollipopSeries=e.HistogramSeries=e.FunnelSeries=e.ErrorBarSeries=e.EqualizerSeries=e.DumbbellSeries=e.CircelBarPointLabel=e.CircleBarSeriesGroup=e.CircleBarSeries=e.CandlestickSeries=e.BumpSeriesGroup=e.BubbleSeries=e.BoxPlotSeries=e.BellCurveSeries=e.BarRangeSeries=e.BarSeriesGroup=e.BarSeries=e.BarSeriesPoint=e.LineSeriesPoint=e.LinePointLabel=e.AreaSeriesGroup=e.LineSeriesGroup=e.SplineSeries=e.LineSeries=e.AreaRangeSeries=e.AreaSeries=e.LogAxis=e.TimeAxis=e.AxisBaseLine=e.ContinuousAxis=e.LinearAxis=e.CategoryAxisLabel=e.CategoryAxisGrid=e.CategoryAxisTick=e.CategoryAxis=e.Crosshair=void 0,e.calcPercent=e.toStr=e.ClockGaugeType=e.CircleGaugeGroupType=e.CircleGaugeType=e.BulletGaugeGroupType=e.BulletGaugeType=e.LinearGaugeGroupType=e.LinearGaugeType=e.PictorialSeriesType=e.PictorialBarSeriesType=e.PictogramSeriesType=e.RaceLineSeriesType=e.RaceBarSeriesType=e.WordCloudSeriesType=e.VectorSeriesType=e.HeatmapSeriesType=e.TreemapSeriesType=e.ShapeAnnotation=e.ImageAnnotation=e.TextAnnotation=e.ValueGauge=e.GaugeRangeLabel=e.GaugeRangeBand=e.GaugeScale=e.GaugeGroup=e.GaugeItem=e.GaugeLabel=e.GaugeBase=e.Gauge=e.CircularGaugeLabel=e.CircularGaugeGroup=e.CircularGauge=e.Widget=e.OthersGroup=e.ConnectableSeries=e.SeriesMarker=e.MarkerSeries=e.DataPointLabel=e.Trendline=e.WidgetSeriesConnector=e.WidgetSeriesLabel=e.WidgetSeriesPoint=e.WidgetSeries=e.RadialSeries=e.BasedSeries=e.RangedSeries=e.LowRangedSeries=e.ClusterableSeriesGroup=e.ClusterableSeries=void 0,e.assignObj=e.isNumber=e.isString=e.SVGNS=e.LayerElement=e.RcElement=e.PathElement=e.RcAnimation=e.PathBuilder=e.ImageElement=e.ArcElement=e.CircleElement=e.SectorElement=e.RectElement=e.LineElement=e.SeriesAnimation=e.LineSeriesBaseView=e.BarSeriesView=e.BarSeriesViewBase=e.BoxPointElementEx=e.WidgetSeriesView=e.MarkerSeriesView=e.MarkerSeriesPointView=e.BasedSeriesView=e.SeriesView=e.PointLabelLineView=e.PointLabelLineContainer=e.PointElement=e.PointLabelView=e.LegendItemView=e.LegendView=e.BodyView=e.AxisScrollView=e.AxisView=e.PaneContainer=e.ChartView=e.SectionView=e.ContentView=e.ChartElement=e.ElementPool=e.Dom=e.Size=e.Color=e.pixel=e.fixnum=e.RAD_DEG=e.PI_2=e.ORG_ANGLE=e.buildValueRanges=e.parsePercentSize=void 0,e.TextLayout=e.TextElement=e.TextAnchor=e.isEmptyRect=e.createRect=e.rectToSize=e.ValueGaugeView=e.GaugeGroupView=e.ScaleView=e.GaugeView=e.sin=e.cos=e.absv=e.copyObj=e.pickProp3=e.pickProp=e.incv=e.minv=e.pickNum=e.maxv=e.isObject=e.isArray=void 0;var n=QN;e.getVersion=n.Globals.getVersion,e.setDebugging=n.Globals.setDebugging,e.setLogging=n.Globals.setLogging,e.setAnimatable=n.Globals.setAnimatable,e.configure=n.Globals.configure,e.createChart=n.Globals.createChart,e.createData=n.Globals.createData,e.setLicenseKey=n.Globals.setLicenseKey;var o=hj;Object.defineProperty(e,"RcControl",{enumerable:!0,get:function(){return o.RcControl}});var s=cM;Object.defineProperty(e,"ChartDataCollection",{enumerable:!0,get:function(){return s.ChartDataCollection}});var a=eM;Object.defineProperty(e,"Chart",{enumerable:!0,get:function(){return a.Chart}}),Object.defineProperty(e,"ChartData",{enumerable:!0,get:function(){return a.ChartData}});var l=fM;Object.defineProperty(e,"RcObject",{enumerable:!0,get:function(){return l.RcObject}});var u=X0;Object.defineProperty(e,"Point",{enumerable:!0,get:function(){return u.Point}});var c=tM;Object.defineProperty(e,"ChartControl",{enumerable:!0,get:function(){return c.ChartControl}});var p=TM;Object.defineProperty(e,"ChartItem",{enumerable:!0,get:function(){return p.ChartItem}}),Object.defineProperty(e,"IconedText",{enumerable:!0,get:function(){return p.IconedText}}),Object.defineProperty(e,"ChartText",{enumerable:!0,get:function(){return p.ChartText}}),Object.defineProperty(e,"extend",{enumerable:!0,get:function(){return p.extend}});var h=VM;Object.defineProperty(e,"ChartOptions",{enumerable:!0,get:function(){return h.ChartOptions}}),Object.defineProperty(e,"Credits",{enumerable:!0,get:function(){return h.Credits}}),Object.defineProperty(e,"PointHovering",{enumerable:!0,get:function(){return h.PointHovering}}),Object.defineProperty(e,"ChartObject",{enumerable:!0,get:function(){return h.ChartObject}});var f=DB;Object.defineProperty(e,"DataPoint",{enumerable:!0,get:function(){return f.DataPoint}}),Object.defineProperty(e,"DataPointCollection",{enumerable:!0,get:function(){return f.DataPointCollection}}),Object.defineProperty(e,"ZValuePoint",{enumerable:!0,get:function(){return f.ZValuePoint}});var d=LM;Object.defineProperty(e,"Annotation",{enumerable:!0,get:function(){return d.Annotation}});var _=VR;Object.defineProperty(e,"AssetCollection",{enumerable:!0,get:function(){return _.AssetCollection}});var y=UR;Object.defineProperty(e,"Body",{enumerable:!0,get:function(){return y.Body}}),Object.defineProperty(e,"BodyDepth",{enumerable:!0,get:function(){return y.BodyDepth}});var g=_B;Object.defineProperty(e,"Legend",{enumerable:!0,get:function(){return g.Legend}}),Object.defineProperty(e,"LegendItem",{enumerable:!0,get:function(){return g.LegendItem}});var v=hD;Object.defineProperty(e,"SeriesNavigator",{enumerable:!0,get:function(){return v.SeriesNavigator}}),Object.defineProperty(e,"NavigiatorHandle",{enumerable:!0,get:function(){return v.NavigiatorHandle}}),Object.defineProperty(e,"NavigatorMask",{enumerable:!0,get:function(){return v.NavigatorMask}});var m=PD;Object.defineProperty(e,"Title",{enumerable:!0,get:function(){return m.Title}}),Object.defineProperty(e,"Subtitle",{enumerable:!0,get:function(){return m.Subtitle}});var b=TD;Object.defineProperty(e,"Tooltip",{enumerable:!0,get:function(){return b.Tooltip}});var w=EB;Object.defineProperty(e,"SvgShapes",{enumerable:!0,get:function(){return w.SvgShapes}});var x=uB;Object.defineProperty(e,"Exporter",{enumerable:!0,get:function(){return x.Exporter}});var S=WR;Object.defineProperty(e,"Axis",{enumerable:!0,get:function(){return S.Axis}}),Object.defineProperty(e,"AxisCollection",{enumerable:!0,get:function(){return S.AxisCollection}}),Object.defineProperty(e,"AxisGrid",{enumerable:!0,get:function(){return S.AxisGrid}}),Object.defineProperty(e,"AxisItem",{enumerable:!0,get:function(){return S.AxisItem}}),Object.defineProperty(e,"AxisLabel",{enumerable:!0,get:function(){return S.AxisLabel}}),Object.defineProperty(e,"AxisLine",{enumerable:!0,get:function(){return S.AxisLine}}),Object.defineProperty(e,"AxisScrollBar",{enumerable:!0,get:function(){return S.AxisScrollBar}}),Object.defineProperty(e,"AxisSectorLine",{enumerable:!0,get:function(){return S.AxisSectorLine}}),Object.defineProperty(e,"AxisTick",{enumerable:!0,get:function(){return S.AxisTick}}),Object.defineProperty(e,"AxisTitle",{enumerable:!0,get:function(){return S.AxisTitle}}),Object.defineProperty(e,"Crosshair",{enumerable:!0,get:function(){return S.Crosshair}});var P=ZB;Object.defineProperty(e,"CategoryAxis",{enumerable:!0,get:function(){return P.CategoryAxis}}),Object.defineProperty(e,"CategoryAxisTick",{enumerable:!0,get:function(){return P.CategoryAxisTick}}),Object.defineProperty(e,"CategoryAxisGrid",{enumerable:!0,get:function(){return P.CategoryAxisGrid}}),Object.defineProperty(e,"CategoryAxisLabel",{enumerable:!0,get:function(){return P.CategoryAxisLabel}});var A=cI;Object.defineProperty(e,"LinearAxis",{enumerable:!0,get:function(){return A.LinearAxis}}),Object.defineProperty(e,"ContinuousAxis",{enumerable:!0,get:function(){return A.ContinuousAxis}}),Object.defineProperty(e,"AxisBaseLine",{enumerable:!0,get:function(){return A.AxisBaseLine}});var O=LI;Object.defineProperty(e,"TimeAxis",{enumerable:!0,get:function(){return O.TimeAxis}});var C=bH;Object.defineProperty(e,"LogAxis",{enumerable:!0,get:function(){return C.LogAxis}});var E=pG;Object.defineProperty(e,"AreaSeries",{enumerable:!0,get:function(){return E.AreaSeries}}),Object.defineProperty(e,"AreaRangeSeries",{enumerable:!0,get:function(){return E.AreaRangeSeries}}),Object.defineProperty(e,"LineSeries",{enumerable:!0,get:function(){return E.LineSeries}}),Object.defineProperty(e,"SplineSeries",{enumerable:!0,get:function(){return E.SplineSeries}}),Object.defineProperty(e,"LineSeriesGroup",{enumerable:!0,get:function(){return E.LineSeriesGroup}}),Object.defineProperty(e,"AreaSeriesGroup",{enumerable:!0,get:function(){return E.AreaSeriesGroup}}),Object.defineProperty(e,"LinePointLabel",{enumerable:!0,get:function(){return E.LinePointLabel}}),Object.defineProperty(e,"LineSeriesPoint",{enumerable:!0,get:function(){return E.LineSeriesPoint}});var V=JI;Object.defineProperty(e,"BarSeriesPoint",{enumerable:!0,get:function(){return V.BarSeriesPoint}}),Object.defineProperty(e,"BarSeries",{enumerable:!0,get:function(){return V.BarSeries}}),Object.defineProperty(e,"BarSeriesGroup",{enumerable:!0,get:function(){return V.BarSeriesGroup}});var L=HI;Object.defineProperty(e,"BarRangeSeries",{enumerable:!0,get:function(){return L.BarRangeSeries}});var T=cG;Object.defineProperty(e,"BellCurveSeries",{enumerable:!0,get:function(){return T.BellCurveSeries}});var k=gF;Object.defineProperty(e,"BoxPlotSeries",{enumerable:!0,get:function(){return k.BoxPlotSeries}});var N=OF;Object.defineProperty(e,"BubbleSeries",{enumerable:!0,get:function(){return N.BubbleSeries}});var M=jF;Object.defineProperty(e,"BumpSeriesGroup",{enumerable:!0,get:function(){return M.BumpSeriesGroup}});var j=zF;Object.defineProperty(e,"CandlestickSeries",{enumerable:!0,get:function(){return j.CandlestickSeries}});var R=nz;Object.defineProperty(e,"CircleBarSeries",{enumerable:!0,get:function(){return R.CircleBarSeries}}),Object.defineProperty(e,"CircleBarSeriesGroup",{enumerable:!0,get:function(){return R.CircleBarSeriesGroup}}),Object.defineProperty(e,"CircelBarPointLabel",{enumerable:!0,get:function(){return R.CircelBarPointLabel}});var B=fz;Object.defineProperty(e,"DumbbellSeries",{enumerable:!0,get:function(){return B.DumbbellSeries}});var D=xz;Object.defineProperty(e,"EqualizerSeries",{enumerable:!0,get:function(){return D.EqualizerSeries}});var I=kz;Object.defineProperty(e,"ErrorBarSeries",{enumerable:!0,get:function(){return I.ErrorBarSeries}});var G=Fz;Object.defineProperty(e,"FunnelSeries",{enumerable:!0,get:function(){return G.FunnelSeries}});var F=Qz;Object.defineProperty(e,"HistogramSeries",{enumerable:!0,get:function(){return F.HistogramSeries}});var z=u$;Object.defineProperty(e,"LollipopSeries",{enumerable:!0,get:function(){return z.LollipopSeries}});var $=w$;Object.defineProperty(e,"OhlcSeries",{enumerable:!0,get:function(){return $.OhlcSeries}});var H=L$;Object.defineProperty(e,"ParetoSeries",{enumerable:!0,get:function(){return H.ParetoSeries}});var W=D$;Object.defineProperty(e,"PieSeries",{enumerable:!0,get:function(){return W.PieSeries}}),Object.defineProperty(e,"PieSeriesGroup",{enumerable:!0,get:function(){return W.PieSeriesGroup}}),Object.defineProperty(e,"PieSeriesLabel",{enumerable:!0,get:function(){return W.PieSeriesLabel}}),Object.defineProperty(e,"PieSeriesText",{enumerable:!0,get:function(){return W.PieSeriesText}});var U=tH;Object.defineProperty(e,"ScatterSeries",{enumerable:!0,get:function(){return U.ScatterSeries}});var Y=uH;Object.defineProperty(e,"WaterfallSeries",{enumerable:!0,get:function(){return Y.WaterfallSeries}});var X=pG;Object.defineProperty(e,"LineSeriesBase",{enumerable:!0,get:function(){return X.LineSeriesBase}});var q=JI;Object.defineProperty(e,"BarSeriesBase",{enumerable:!0,get:function(){return q.BarSeriesBase}}),Object.defineProperty(e,"BarSeriesGroupBase",{enumerable:!0,get:function(){return q.BarSeriesGroupBase}});var Z=OB;Object.defineProperty(e,"Series",{enumerable:!0,get:function(){return Z.Series}}),Object.defineProperty(e,"SeriesGroup",{enumerable:!0,get:function(){return Z.SeriesGroup}}),Object.defineProperty(e,"ConstraintSeriesGroup",{enumerable:!0,get:function(){return Z.ConstraintSeriesGroup}}),Object.defineProperty(e,"ClusterableSeries",{enumerable:!0,get:function(){return Z.ClusterableSeries}}),Object.defineProperty(e,"ClusterableSeriesGroup",{enumerable:!0,get:function(){return Z.ClusterableSeriesGroup}}),Object.defineProperty(e,"LowRangedSeries",{enumerable:!0,get:function(){return Z.LowRangedSeries}}),Object.defineProperty(e,"RangedSeries",{enumerable:!0,get:function(){return Z.RangedSeries}}),Object.defineProperty(e,"BasedSeries",{enumerable:!0,get:function(){return Z.BasedSeries}}),Object.defineProperty(e,"RadialSeries",{enumerable:!0,get:function(){return Z.RadialSeries}}),Object.defineProperty(e,"WidgetSeries",{enumerable:!0,get:function(){return Z.WidgetSeries}}),Object.defineProperty(e,"WidgetSeriesPoint",{enumerable:!0,get:function(){return Z.WidgetSeriesPoint}}),Object.defineProperty(e,"WidgetSeriesLabel",{enumerable:!0,get:function(){return Z.WidgetSeriesLabel}}),Object.defineProperty(e,"WidgetSeriesConnector",{enumerable:!0,get:function(){return Z.WidgetSeriesConnector}}),Object.defineProperty(e,"Trendline",{enumerable:!0,get:function(){return Z.Trendline}}),Object.defineProperty(e,"DataPointLabel",{enumerable:!0,get:function(){return Z.DataPointLabel}}),Object.defineProperty(e,"MarkerSeries",{enumerable:!0,get:function(){return Z.MarkerSeries}}),Object.defineProperty(e,"SeriesMarker",{enumerable:!0,get:function(){return Z.SeriesMarker}}),Object.defineProperty(e,"ConnectableSeries",{enumerable:!0,get:function(){return Z.ConnectableSeries}}),Object.defineProperty(e,"OthersGroup",{enumerable:!0,get:function(){return Z.OthersGroup}});var K=XR;Object.defineProperty(e,"Widget",{enumerable:!0,get:function(){return K.Widget}});var J=YR;Object.defineProperty(e,"CircularGauge",{enumerable:!0,get:function(){return J.CircularGauge}}),Object.defineProperty(e,"CircularGaugeGroup",{enumerable:!0,get:function(){return J.CircularGaugeGroup}}),Object.defineProperty(e,"CircularGaugeLabel",{enumerable:!0,get:function(){return J.CircularGaugeLabel}}),Object.defineProperty(e,"Gauge",{enumerable:!0,get:function(){return J.Gauge}}),Object.defineProperty(e,"GaugeBase",{enumerable:!0,get:function(){return J.GaugeBase}}),Object.defineProperty(e,"GaugeLabel",{enumerable:!0,get:function(){return J.GaugeLabel}}),Object.defineProperty(e,"GaugeItem",{enumerable:!0,get:function(){return J.GaugeItem}}),Object.defineProperty(e,"GaugeGroup",{enumerable:!0,get:function(){return J.GaugeGroup}}),Object.defineProperty(e,"GaugeScale",{enumerable:!0,get:function(){return J.GaugeScale}}),Object.defineProperty(e,"GaugeRangeBand",{enumerable:!0,get:function(){return J.GaugeRangeBand}}),Object.defineProperty(e,"GaugeRangeLabel",{enumerable:!0,get:function(){return J.GaugeRangeLabel}}),Object.defineProperty(e,"ValueGauge",{enumerable:!0,get:function(){return J.ValueGauge}});var Q=JD;Object.defineProperty(e,"TextAnnotation",{enumerable:!0,get:function(){return Q.TextAnnotation}});var tt=DD;Object.defineProperty(e,"ImageAnnotation",{enumerable:!0,get:function(){return tt.ImageAnnotation}});var et=WD;Object.defineProperty(e,"ShapeAnnotation",{enumerable:!0,get:function(){return et.ShapeAnnotation}});var it=BB;Object.defineProperty(e,"TreemapSeriesType",{enumerable:!0,get:function(){return it.TreemapSeriesType}}),Object.defineProperty(e,"HeatmapSeriesType",{enumerable:!0,get:function(){return it.HeatmapSeriesType}}),Object.defineProperty(e,"VectorSeriesType",{enumerable:!0,get:function(){return it.VectorSeriesType}}),Object.defineProperty(e,"WordCloudSeriesType",{enumerable:!0,get:function(){return it.WordCloudSeriesType}}),Object.defineProperty(e,"RaceBarSeriesType",{enumerable:!0,get:function(){return it.RaceBarSeriesType}}),Object.defineProperty(e,"RaceLineSeriesType",{enumerable:!0,get:function(){return it.RaceLineSeriesType}}),Object.defineProperty(e,"PictogramSeriesType",{enumerable:!0,get:function(){return it.PictogramSeriesType}}),Object.defineProperty(e,"PictorialBarSeriesType",{enumerable:!0,get:function(){return it.PictorialBarSeriesType}}),Object.defineProperty(e,"PictorialSeriesType",{enumerable:!0,get:function(){return it.PictorialSeriesType}});var rt=Z0;Object.defineProperty(e,"LinearGaugeType",{enumerable:!0,get:function(){return rt.LinearGaugeType}}),Object.defineProperty(e,"LinearGaugeGroupType",{enumerable:!0,get:function(){return rt.LinearGaugeGroupType}}),Object.defineProperty(e,"BulletGaugeType",{enumerable:!0,get:function(){return rt.BulletGaugeType}}),Object.defineProperty(e,"BulletGaugeGroupType",{enumerable:!0,get:function(){return rt.BulletGaugeGroupType}}),Object.defineProperty(e,"CircleGaugeType",{enumerable:!0,get:function(){return rt.CircleGaugeType}}),Object.defineProperty(e,"CircleGaugeGroupType",{enumerable:!0,get:function(){return rt.CircleGaugeGroupType}}),Object.defineProperty(e,"ClockGaugeType",{enumerable:!0,get:function(){return rt.ClockGaugeType}});var nt=wM;Object.defineProperty(e,"toStr",{enumerable:!0,get:function(){return nt.toStr}}),Object.defineProperty(e,"calcPercent",{enumerable:!0,get:function(){return nt.calcPercent}}),Object.defineProperty(e,"parsePercentSize",{enumerable:!0,get:function(){return nt.parsePercentSize}}),Object.defineProperty(e,"buildValueRanges",{enumerable:!0,get:function(){return nt.buildValueRanges}}),Object.defineProperty(e,"ORG_ANGLE",{enumerable:!0,get:function(){return nt.ORG_ANGLE}}),Object.defineProperty(e,"PI_2",{enumerable:!0,get:function(){return nt.PI_2}}),Object.defineProperty(e,"RAD_DEG",{enumerable:!0,get:function(){return nt.RAD_DEG}}),Object.defineProperty(e,"fixnum",{enumerable:!0,get:function(){return nt.fixnum}}),Object.defineProperty(e,"pixel",{enumerable:!0,get:function(){return nt.pixel}});var ot=uj;Object.defineProperty(e,"Color",{enumerable:!0,get:function(){return ot.Color}});var st=K0;Object.defineProperty(e,"Size",{enumerable:!0,get:function(){return st.Size}});var at=fj;Object.defineProperty(e,"Dom",{enumerable:!0,get:function(){return at.Dom}});var lt=AW;Object.defineProperty(e,"ElementPool",{enumerable:!0,get:function(){return lt.ElementPool}});var ut=BW;Object.defineProperty(e,"ChartElement",{enumerable:!0,get:function(){return ut.ChartElement}}),Object.defineProperty(e,"ContentView",{enumerable:!0,get:function(){return ut.ContentView}}),Object.defineProperty(e,"SectionView",{enumerable:!0,get:function(){return ut.SectionView}});var ct=aQ;Object.defineProperty(e,"ChartView",{enumerable:!0,get:function(){return ct.ChartView}}),Object.defineProperty(e,"PaneContainer",{enumerable:!0,get:function(){return ct.PaneContainer}});var pt=PW;Object.defineProperty(e,"AxisView",{enumerable:!0,get:function(){return pt.AxisView}}),Object.defineProperty(e,"AxisScrollView",{enumerable:!0,get:function(){return pt.AxisScrollView}});var ht=PU;Object.defineProperty(e,"BodyView",{enumerable:!0,get:function(){return ht.BodyView}});var ft=hQ;Object.defineProperty(e,"LegendView",{enumerable:!0,get:function(){return ft.LegendView}}),Object.defineProperty(e,"LegendItemView",{enumerable:!0,get:function(){return ft.LegendItemView}});var dt=XU;Object.defineProperty(e,"PointLabelView",{enumerable:!0,get:function(){return dt.PointLabelView}}),Object.defineProperty(e,"PointElement",{enumerable:!0,get:function(){return dt.PointElement}}),Object.defineProperty(e,"PointLabelLineContainer",{enumerable:!0,get:function(){return dt.PointLabelLineContainer}}),Object.defineProperty(e,"PointLabelLineView",{enumerable:!0,get:function(){return dt.PointLabelLineView}}),Object.defineProperty(e,"SeriesView",{enumerable:!0,get:function(){return dt.SeriesView}}),Object.defineProperty(e,"BasedSeriesView",{enumerable:!0,get:function(){return dt.BasedSeriesView}}),Object.defineProperty(e,"MarkerSeriesPointView",{enumerable:!0,get:function(){return dt.MarkerSeriesPointView}}),Object.defineProperty(e,"MarkerSeriesView",{enumerable:!0,get:function(){return dt.MarkerSeriesView}}),Object.defineProperty(e,"WidgetSeriesView",{enumerable:!0,get:function(){return dt.WidgetSeriesView}}),Object.defineProperty(e,"BoxPointElementEx",{enumerable:!0,get:function(){return dt.BoxPointElementEx}});var _t=dX;Object.defineProperty(e,"BarSeriesViewBase",{enumerable:!0,get:function(){return _t.BarSeriesViewBase}}),Object.defineProperty(e,"BarSeriesView",{enumerable:!0,get:function(){return _t.BarSeriesView}});var yt=EY;Object.defineProperty(e,"LineSeriesBaseView",{enumerable:!0,get:function(){return yt.LineSeriesBaseView}});var gt=qU;Object.defineProperty(e,"SeriesAnimation",{enumerable:!0,get:function(){return gt.SeriesAnimation}});var vt=EG;Object.defineProperty(e,"LineElement",{enumerable:!0,get:function(){return vt.LineElement}});var mt=CB;Object.defineProperty(e,"RectElement",{enumerable:!0,get:function(){return mt.RectElement}});var bt=zU;Object.defineProperty(e,"SectorElement",{enumerable:!0,get:function(){return bt.SectorElement}});var wt=kU;Object.defineProperty(e,"CircleElement",{enumerable:!0,get:function(){return wt.CircleElement}}),Object.defineProperty(e,"ArcElement",{enumerable:!0,get:function(){return wt.ArcElement}});var xt=sU;Object.defineProperty(e,"ImageElement",{enumerable:!0,get:function(){return xt.ImageElement}});var St=$F;Object.defineProperty(e,"PathBuilder",{enumerable:!0,get:function(){return St.PathBuilder}});var Pt=Sj;Object.defineProperty(e,"RcAnimation",{enumerable:!0,get:function(){return Pt.RcAnimation}});var At=hj;Object.defineProperty(e,"PathElement",{enumerable:!0,get:function(){return At.PathElement}}),Object.defineProperty(e,"RcElement",{enumerable:!0,get:function(){return At.RcElement}}),Object.defineProperty(e,"LayerElement",{enumerable:!0,get:function(){return At.LayerElement}});var Ot=iM;Object.defineProperty(e,"SVGNS",{enumerable:!0,get:function(){return Ot.SVGNS}}),Object.defineProperty(e,"isString",{enumerable:!0,get:function(){return Ot.isString}}),Object.defineProperty(e,"isNumber",{enumerable:!0,get:function(){return Ot.isNumber}}),Object.defineProperty(e,"assignObj",{enumerable:!0,get:function(){return Ot.assignObj}}),Object.defineProperty(e,"isArray",{enumerable:!0,get:function(){return Ot.isArray}}),Object.defineProperty(e,"isObject",{enumerable:!0,get:function(){return Ot.isObject}}),Object.defineProperty(e,"maxv",{enumerable:!0,get:function(){return Ot.maxv}}),Object.defineProperty(e,"pickNum",{enumerable:!0,get:function(){return Ot.pickNum}}),Object.defineProperty(e,"minv",{enumerable:!0,get:function(){return Ot.minv}}),Object.defineProperty(e,"incv",{enumerable:!0,get:function(){return Ot.incv}}),Object.defineProperty(e,"pickProp",{enumerable:!0,get:function(){return Ot.pickProp}}),Object.defineProperty(e,"pickProp3",{enumerable:!0,get:function(){return Ot.pickProp3}}),Object.defineProperty(e,"copyObj",{enumerable:!0,get:function(){return Ot.copyObj}}),Object.defineProperty(e,"absv",{enumerable:!0,get:function(){return Ot.absv}}),Object.defineProperty(e,"cos",{enumerable:!0,get:function(){return Ot.cos}}),Object.defineProperty(e,"sin",{enumerable:!0,get:function(){return Ot.sin}});var Ct=YU;Object.defineProperty(e,"GaugeView",{enumerable:!0,get:function(){return Ct.GaugeView}}),Object.defineProperty(e,"ScaleView",{enumerable:!0,get:function(){return Ct.ScaleView}}),Object.defineProperty(e,"GaugeGroupView",{enumerable:!0,get:function(){return Ct.GaugeGroupView}}),Object.defineProperty(e,"ValueGaugeView",{enumerable:!0,get:function(){return Ct.ValueGaugeView}});var Et=VW;Object.defineProperty(e,"rectToSize",{enumerable:!0,get:function(){return Et.rectToSize}}),Object.defineProperty(e,"createRect",{enumerable:!0,get:function(){return Et.createRect}}),Object.defineProperty(e,"isEmptyRect",{enumerable:!0,get:function(){return Et.isEmptyRect}});var Vt=lj;Object.defineProperty(e,"TextAnchor",{enumerable:!0,get:function(){return Vt.TextAnchor}}),Object.defineProperty(e,"TextElement",{enumerable:!0,get:function(){return Vt.TextElement}}),Object.defineProperty(e,"TextLayout",{enumerable:!0,get:function(){return Vt.TextLayout}}),r(rM,e)}(i),e(i)}));
|