@sisense/sdk-ui 2.16.0 → 2.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ai.cjs +54 -54
- package/dist/ai.js +779 -741
- package/dist/analytics-composer/node.cjs +1 -1
- package/dist/analytics-composer/node.js +421 -384
- package/dist/analytics-composer.cjs +1 -1
- package/dist/analytics-composer.js +6 -6
- package/dist/{derive-chart-family-d7eaC45K.cjs → derive-chart-family-B_cR1yhw.cjs} +3 -3
- package/dist/{derive-chart-family-DLwnWblo.js → derive-chart-family-DkuTQGOE.js} +333 -333
- package/dist/{dimensions-BUWtZxix.cjs → dimensions-DI9h9IJH.cjs} +1 -1
- package/dist/{dimensions-DvDgZ8RW.js → dimensions-Gma5tFmd.js} +1 -1
- package/dist/execute-query-CdhSHTTA.cjs +1 -0
- package/dist/{execute-query-CFK2R_1S.js → execute-query-l7jejslh.js} +867 -865
- package/dist/index.cjs +970 -246
- package/dist/index.js +70584 -18085
- package/dist/index.umd.js +1269 -1267
- package/dist/packages/sdk-ui/src/ai/get-nlg-insights-from-widget.d.ts +46 -0
- package/dist/packages/sdk-ui/src/ai/index.d.ts +1 -0
- package/dist/packages/sdk-ui/src/analytics-composer/nlq-v3-translator/common.d.ts +2 -1
- package/dist/packages/sdk-ui/src/analytics-composer/nlq-v3-translator/process-function/filter-processors.d.ts +0 -9
- package/dist/packages/sdk-ui/src/analytics-composer/nlq-v3-translator/types.d.ts +1 -1
- package/dist/packages/sdk-ui/src/analytics-composer/types.d.ts +2 -2
- package/dist/packages/sdk-ui/src/api/rest-api.d.ts +1 -1
- package/dist/packages/sdk-ui/src/app/client-application.d.ts +5 -5
- package/dist/packages/sdk-ui/src/chart-options-processor/data-points.d.ts +3 -4
- package/dist/packages/sdk-ui/src/dashboard/hooks/use-jtd.d.ts +1 -2
- package/dist/packages/sdk-ui/src/data-source-dimensional-model/hooks/use-get-data-source-dimensions.d.ts +78 -0
- package/dist/packages/sdk-ui/src/data-source-dimensional-model/hooks/use-get-data-source-fields.d.ts +23 -0
- package/dist/packages/sdk-ui/src/data-source-dimensional-model/index.d.ts +2 -0
- package/dist/packages/sdk-ui/src/index.d.ts +1 -1
- package/dist/packages/sdk-ui/src/models/widget/widget-model-translator/widget-model-translator.d.ts +4 -1
- package/dist/packages/sdk-ui/src/pivot-table/formatters/data-cell-formatters/data-cell-color-formatter.d.ts +2 -1
- package/dist/packages/sdk-ui/src/pivot-table/formatters/formatter-utils.d.ts +2 -1
- package/dist/packages/sdk-ui/src/pivot-table/formatters/header-cell-formatters/header-cell-totals-formatter.d.ts +1 -1
- package/dist/packages/sdk-ui/src/pivot-table/formatters/types.d.ts +2 -1
- package/dist/packages/sdk-ui/src/pivot-table/hooks/use-apply-pivot-table-formatting.d.ts +1 -1
- package/dist/packages/sdk-ui/src/pivot-table/hooks/use-get-pivot-table-query.d.ts +1 -1
- package/dist/packages/sdk-ui/src/pivot-table/hooks/use-pivot-builder.d.ts +1 -1
- package/dist/packages/sdk-ui/src/pivot-table/hooks/use-pivot-client.d.ts +8 -0
- package/dist/packages/sdk-ui/src/pivot-table/hooks/use-pivot-data-loading.d.ts +2 -1
- package/dist/packages/sdk-ui/src/pivot-table/hooks/use-pivot-data-service.d.ts +2 -1
- package/dist/packages/sdk-ui/src/pivot-table/hooks/use-render-pivot.d.ts +1 -1
- package/dist/packages/sdk-ui/src/pivot-table/pivot-table.d.ts +32 -2
- package/dist/packages/sdk-ui/src/pivot-table/sorting-utils.d.ts +1 -1
- package/dist/packages/sdk-ui/src/props.d.ts +11 -0
- package/dist/packages/sdk-ui/src/query-execution/use-execute-pivot-query.d.ts +0 -1
- package/dist/packages/sdk-ui/src/translation/resources/en.d.ts +1 -1
- package/dist/packages/sdk-ui/src/translation/resources/index.d.ts +2 -2
- package/dist/packages/sdk-ui/src/types.d.ts +40 -25
- package/dist/packages/sdk-ui/src/widgets/pivot-table-widget.d.ts +19 -1
- package/dist/{types-Clbnx4mQ.cjs → types-Hki4GrUY.cjs} +1 -1
- package/dist/{types-D1mqt0Mg.js → types-ofTjqFFK.js} +1 -1
- package/dist/use-common-filters-Bh4KYWy_.cjs +604 -0
- package/dist/use-common-filters-D5yiZCTg.js +56547 -0
- package/dist/{widget-composer-Dhl_nmhq.js → widget-composer-By61s921.js} +3 -3
- package/dist/{widget-composer-BaOTPn5w.cjs → widget-composer-BzzTf8UH.cjs} +1 -1
- package/package.json +8 -7
- package/dist/execute-query-CB4XfUng.cjs +0 -1
- package/dist/packages/sdk-ui/src/common/hooks/fusion-endpoints/use-get-data-source-fields.d.ts +0 -17
- package/dist/use-common-filters-CkQznSEt.cjs +0 -1325
- package/dist/use-common-filters-CxoO7TzT.js +0 -103390
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var Tc=Object.defineProperty,kc=Object.defineProperties;var Pc=Object.getOwnPropertyDescriptors;var go=Object.getOwnPropertySymbols;var Hn=Object.prototype.hasOwnProperty,Xn=Object.prototype.propertyIsEnumerable;var Ft=Math.pow,pr=(p,T,F)=>T in p?Tc(p,T,{enumerable:!0,configurable:!0,writable:!0,value:F}):p[T]=F,kt=(p,T)=>{for(var F in T||(T={}))Hn.call(T,F)&&pr(p,F,T[F]);if(go)for(var F of go(T))Xn.call(T,F)&&pr(p,F,T[F]);return p},_t=(p,T)=>kc(p,Pc(T));var Te=(p,T)=>{var F={};for(var K in p)Hn.call(p,K)&&T.indexOf(K)<0&&(F[K]=p[K]);if(p!=null&&go)for(var K of go(p))T.indexOf(K)<0&&Xn.call(p,K)&&(F[K]=p[K]);return F};var De=(p,T,F)=>pr(p,typeof T!="symbol"?T+"":T,F);const Rt=require("./execute-query-CB4XfUng.cjs"),Lc=require("react/jsx-runtime"),Be=require("react"),da=require("react-dom/server");function ua(p){const T=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(p){for(const F in p)if(F!=="default"){const K=Object.getOwnPropertyDescriptor(p,F);Object.defineProperty(T,F,K.get?K:{enumerable:!0,get:()=>p[F]})}}return T.default=p,Object.freeze(T)}const $i=ua(Lc),ti=ua(Be);var Hi=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Jr(p){return p&&p.__esModule&&Object.prototype.hasOwnProperty.call(p,"default")?p.default:p}function Ec(p){if(p.__esModule)return p;var T=p.default;if(typeof T=="function"){var F=function K(){return this instanceof K?Reflect.construct(T,arguments,this.constructor):T.apply(this,arguments)};F.prototype=T.prototype}else F={};return Object.defineProperty(F,"__esModule",{value:!0}),Object.keys(p).forEach(function(K){var tt=Object.getOwnPropertyDescriptor(p,K);Object.defineProperty(F,K,tt.get?tt:{enumerable:!0,get:function(){return p[K]}})}),F}function Oc(){if(console&&console.warn){for(var p=arguments.length,T=new Array(p),F=0;F<p;F++)T[F]=arguments[F];typeof T[0]=="string"&&(T[0]=`react-i18next:: ${T[0]}`),console.warn(...T)}}const Yn={};function Tr(){for(var p=arguments.length,T=new Array(p),F=0;F<p;F++)T[F]=arguments[F];typeof T[0]=="string"&&Yn[T[0]]||(typeof T[0]=="string"&&(Yn[T[0]]=new Date),Oc(...T))}const fa=(p,T)=>()=>{if(p.isInitialized)T();else{const F=()=>{setTimeout(()=>{p.off("initialized",F)},0),T()};p.on("initialized",F)}};function Un(p,T,F){p.loadNamespaces(T,fa(p,F))}function Vn(p,T,F,K){typeof F=="string"&&(F=[F]),F.forEach(tt=>{p.options.ns.indexOf(tt)<0&&p.options.ns.push(tt)}),p.loadLanguages(T,fa(p,K))}function Dc(p,T){let F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const K=T.languages[0],tt=T.options?T.options.fallbackLng:!1,it=T.languages[T.languages.length-1];if(K.toLowerCase()==="cimode")return!0;const rt=(st,ht)=>{const ct=T.services.backendConnector.state[`${st}|${ht}`];return ct===-1||ct===2};return F.bindI18n&&F.bindI18n.indexOf("languageChanging")>-1&&T.services.backendConnector.backend&&T.isLanguageChangingTo&&!rt(T.isLanguageChangingTo,p)?!1:!!(T.hasResourceBundle(K,p)||!T.services.backendConnector.backend||T.options.resources&&!T.options.partialBundledLanguages||rt(K,p)&&(!tt||rt(it,p)))}function jc(p,T){let F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!T.languages||!T.languages.length?(Tr("i18n.languages were undefined or empty",T.languages),!0):T.options.ignoreJSONStructure!==void 0?T.hasLoadedNamespace(p,{lng:F.lng,precheck:(tt,it)=>{if(F.bindI18n&&F.bindI18n.indexOf("languageChanging")>-1&&tt.services.backendConnector.backend&&tt.isLanguageChangingTo&&!it(tt.isLanguageChangingTo,p))return!1}}):Dc(p,T,F)}const ga=Be.createContext();class Ic{constructor(){this.usedNamespaces={}}addUsedNamespaces(T){T.forEach(F=>{this.usedNamespaces[F]||(this.usedNamespaces[F]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const _c=(p,T)=>{const F=Be.useRef();return Be.useEffect(()=>{F.current=p},[p,T]),F.current};function Qr(p){let T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:F}=T,{i18n:K,defaultNS:tt}=Be.useContext(ga)||{},it=F||K||Rt.getI18n();if(it&&!it.reportNamespaces&&(it.reportNamespaces=new Ic),!it){Tr("You will need to pass in an i18next instance by using initReactI18next");const Z=(z,I)=>typeof I=="string"?I:I&&typeof I=="object"&&typeof I.defaultValue=="string"?I.defaultValue:Array.isArray(z)?z[z.length-1]:z,V=[Z,{},!1];return V.t=Z,V.i18n={},V.ready=!1,V}it.options.react&&it.options.react.wait!==void 0&&Tr("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const rt=kt(kt(kt({},Rt.getDefaults()),it.options.react),T),{useSuspense:st,keyPrefix:ht}=rt;let ct=tt||it.options&&it.options.defaultNS;ct=typeof ct=="string"?[ct]:ct||["translation"],it.reportNamespaces.addUsedNamespaces&&it.reportNamespaces.addUsedNamespaces(ct);const pt=(it.isInitialized||it.initializedStoreOnce)&&ct.every(Z=>jc(Z,it,rt));function ft(){return it.getFixedT(T.lng||null,rt.nsMode==="fallback"?ct:ct[0],ht)}const[_,et]=Be.useState(ft);let G=ct.join();T.lng&&(G=`${T.lng}${G}`);const B=_c(G),X=Be.useRef(!0);Be.useEffect(()=>{const{bindI18n:Z,bindI18nStore:V}=rt;X.current=!0,!pt&&!st&&(T.lng?Vn(it,T.lng,ct,()=>{X.current&&et(ft)}):Un(it,ct,()=>{X.current&&et(ft)})),pt&&B&&B!==G&&X.current&&et(ft);function z(){X.current&&et(ft)}return Z&&it&&it.on(Z,z),V&&it&&it.store.on(V,z),()=>{X.current=!1,Z&&it&&Z.split(" ").forEach(I=>it.off(I,z)),V&&it&&V.split(" ").forEach(I=>it.store.off(I,z))}},[it,G]);const U=Be.useRef(!0);Be.useEffect(()=>{X.current&&!U.current&&et(ft),U.current=!1},[it,ht]);const $=[_,it,pt];if($.t=_,$.i18n=it,$.ready=pt,pt||!pt&&!st)return $;throw new Promise(Z=>{T.lng?Vn(it,T.lng,ct,()=>Z()):Un(it,ct,()=>Z())})}var Nc=!1;function Bc(p){if(p.sheet)return p.sheet;for(var T=0;T<document.styleSheets.length;T++)if(document.styleSheets[T].ownerNode===p)return document.styleSheets[T]}function Rc(p){var T=document.createElement("style");return T.setAttribute("data-emotion",p.key),p.nonce!==void 0&&T.setAttribute("nonce",p.nonce),T.appendChild(document.createTextNode("")),T.setAttribute("data-s",""),T}var zc=function(){function p(F){var K=this;this._insertTag=function(tt){var it;K.tags.length===0?K.insertionPoint?it=K.insertionPoint.nextSibling:K.prepend?it=K.container.firstChild:it=K.before:it=K.tags[K.tags.length-1].nextSibling,K.container.insertBefore(tt,it),K.tags.push(tt)},this.isSpeedy=F.speedy===void 0?!Nc:F.speedy,this.tags=[],this.ctr=0,this.nonce=F.nonce,this.key=F.key,this.container=F.container,this.prepend=F.prepend,this.insertionPoint=F.insertionPoint,this.before=null}var T=p.prototype;return T.hydrate=function(K){K.forEach(this._insertTag)},T.insert=function(K){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Rc(this));var tt=this.tags[this.tags.length-1];if(this.isSpeedy){var it=Bc(tt);try{it.insertRule(K,it.cssRules.length)}catch(rt){}}else tt.appendChild(document.createTextNode(K));this.ctr++},T.flush=function(){this.tags.forEach(function(K){var tt;return(tt=K.parentNode)==null?void 0:tt.removeChild(K)}),this.tags=[],this.ctr=0},p}(),we="-ms-",Ro="-moz-",ie="-webkit-",ma="comm",tn="rule",en="decl",Fc="@import",ya="@keyframes",Gc="@layer",Wc=Math.abs,Qo=String.fromCharCode,Hc=Object.assign;function Xc(p,T){return be(p,0)^45?(((T<<2^be(p,0))<<2^be(p,1))<<2^be(p,2))<<2^be(p,3):0}function va(p){return p.trim()}function Yc(p,T){return(p=T.exec(p))?p[0]:p}function oe(p,T,F){return p.replace(T,F)}function kr(p,T){return p.indexOf(T)}function be(p,T){return p.charCodeAt(T)|0}function Zi(p,T,F){return p.slice(T,F)}function Ve(p){return p.length}function on(p){return p.length}function mo(p,T){return T.push(p),p}function Uc(p,T){return p.map(T).join("")}var tr=1,ki=1,ba=0,Ee=0,fe=0,Oi="";function er(p,T,F,K,tt,it,rt){return{value:p,root:T,parent:F,type:K,props:tt,children:it,line:tr,column:ki,length:rt,return:""}}function Ii(p,T){return Hc(er("",null,null,"",null,null,0),p,{length:-p.length},T)}function Vc(){return fe}function $c(){return fe=Ee>0?be(Oi,--Ee):0,ki--,fe===10&&(ki=1,tr--),fe}function _e(){return fe=Ee<ba?be(Oi,Ee++):0,ki++,fe===10&&(ki=1,tr++),fe}function qe(){return be(Oi,Ee)}function Oo(){return Ee}function so(p,T){return Zi(Oi,p,T)}function Ki(p){switch(p){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function xa(p){return tr=ki=1,ba=Ve(Oi=p),Ee=0,[]}function Ca(p){return Oi="",p}function Do(p){return va(so(Ee-1,Pr(p===91?p+2:p===40?p+1:p)))}function Zc(p){for(;(fe=qe())&&fe<33;)_e();return Ki(p)>2||Ki(fe)>3?"":" "}function Kc(p,T){for(;--T&&_e()&&!(fe<48||fe>102||fe>57&&fe<65||fe>70&&fe<97););return so(p,Oo()+(T<6&&qe()==32&&_e()==32))}function Pr(p){for(;_e();)switch(fe){case p:return Ee;case 34:case 39:p!==34&&p!==39&&Pr(fe);break;case 40:p===41&&Pr(p);break;case 92:_e();break}return Ee}function qc(p,T){for(;_e()&&p+fe!==57;)if(p+fe===84&&qe()===47)break;return"/*"+so(T,Ee-1)+"*"+Qo(p===47?p:_e())}function Jc(p){for(;!Ki(qe());)_e();return so(p,Ee)}function Qc(p){return Ca(jo("",null,null,null,[""],p=xa(p),0,[0],p))}function jo(p,T,F,K,tt,it,rt,st,ht){for(var ct=0,pt=0,ft=rt,_=0,et=0,G=0,B=1,X=1,U=1,$=0,Z="",V=tt,z=it,I=K,E=Z;X;)switch(G=$,$=_e()){case 40:if(G!=108&&be(E,ft-1)==58){kr(E+=oe(Do($),"&","&\f"),"&\f")!=-1&&(U=-1);break}case 34:case 39:case 91:E+=Do($);break;case 9:case 10:case 13:case 32:E+=Zc(G);break;case 92:E+=Kc(Oo()-1,7);continue;case 47:switch(qe()){case 42:case 47:mo(tp(qc(_e(),Oo()),T,F),ht);break;default:E+="/"}break;case 123*B:st[ct++]=Ve(E)*U;case 125*B:case 59:case 0:switch($){case 0:case 125:X=0;case 59+pt:U==-1&&(E=oe(E,/\f/g,"")),et>0&&Ve(E)-ft&&mo(et>32?Zn(E+";",K,F,ft-1):Zn(oe(E," ","")+";",K,F,ft-2),ht);break;case 59:E+=";";default:if(mo(I=$n(E,T,F,ct,pt,tt,st,Z,V=[],z=[],ft),it),$===123)if(pt===0)jo(E,T,I,I,V,it,ft,st,z);else switch(_===99&&be(E,3)===110?100:_){case 100:case 108:case 109:case 115:jo(p,I,I,K&&mo($n(p,I,I,0,0,tt,st,Z,tt,V=[],ft),z),tt,z,ft,st,K?V:z);break;default:jo(E,I,I,I,[""],z,0,st,z)}}ct=pt=et=0,B=U=1,Z=E="",ft=rt;break;case 58:ft=1+Ve(E),et=G;default:if(B<1){if($==123)--B;else if($==125&&B++==0&&$c()==125)continue}switch(E+=Qo($),$*B){case 38:U=pt>0?1:(E+="\f",-1);break;case 44:st[ct++]=(Ve(E)-1)*U,U=1;break;case 64:qe()===45&&(E+=Do(_e())),_=qe(),pt=ft=Ve(Z=E+=Jc(Oo())),$++;break;case 45:G===45&&Ve(E)==2&&(B=0)}}return it}function $n(p,T,F,K,tt,it,rt,st,ht,ct,pt){for(var ft=tt-1,_=tt===0?it:[""],et=on(_),G=0,B=0,X=0;G<K;++G)for(var U=0,$=Zi(p,ft+1,ft=Wc(B=rt[G])),Z=p;U<et;++U)(Z=va(B>0?_[U]+" "+$:oe($,/&\f/g,_[U])))&&(ht[X++]=Z);return er(p,T,F,tt===0?tn:st,ht,ct,pt)}function tp(p,T,F){return er(p,T,F,ma,Qo(Vc()),Zi(p,2,-2),0)}function Zn(p,T,F,K){return er(p,T,F,en,Zi(p,0,K),Zi(p,K+1,-1),K)}function Ai(p,T){for(var F="",K=on(p),tt=0;tt<K;tt++)F+=T(p[tt],tt,p,T)||"";return F}function ep(p,T,F,K){switch(p.type){case Gc:if(p.children.length)break;case Fc:case en:return p.return=p.return||p.value;case ma:return"";case ya:return p.return=p.value+"{"+Ai(p.children,K)+"}";case tn:p.value=p.props.join(",")}return Ve(F=Ai(p.children,K))?p.return=p.value+"{"+F+"}":""}function ip(p){var T=on(p);return function(F,K,tt,it){for(var rt="",st=0;st<T;st++)rt+=p[st](F,K,tt,it)||"";return rt}}function op(p){return function(T){T.root||(T=T.return)&&p(T)}}function Sa(p){var T=Object.create(null);return function(F){return T[F]===void 0&&(T[F]=p(F)),T[F]}}var rp=function(T,F,K){for(var tt=0,it=0;tt=it,it=qe(),tt===38&&it===12&&(F[K]=1),!Ki(it);)_e();return so(T,Ee)},np=function(T,F){var K=-1,tt=44;do switch(Ki(tt)){case 0:tt===38&&qe()===12&&(F[K]=1),T[K]+=rp(Ee-1,F,K);break;case 2:T[K]+=Do(tt);break;case 4:if(tt===44){T[++K]=qe()===58?"&\f":"",F[K]=T[K].length;break}default:T[K]+=Qo(tt)}while(tt=_e());return T},sp=function(T,F){return Ca(np(xa(T),F))},Kn=new WeakMap,ap=function(T){if(!(T.type!=="rule"||!T.parent||T.length<1)){for(var F=T.value,K=T.parent,tt=T.column===K.column&&T.line===K.line;K.type!=="rule";)if(K=K.parent,!K)return;if(!(T.props.length===1&&F.charCodeAt(0)!==58&&!Kn.get(K))&&!tt){Kn.set(T,!0);for(var it=[],rt=sp(F,it),st=K.props,ht=0,ct=0;ht<rt.length;ht++)for(var pt=0;pt<st.length;pt++,ct++)T.props[ct]=it[ht]?rt[ht].replace(/&\f/g,st[pt]):st[pt]+" "+rt[ht]}}},lp=function(T){if(T.type==="decl"){var F=T.value;F.charCodeAt(0)===108&&F.charCodeAt(2)===98&&(T.return="",T.value="")}};function wa(p,T){switch(Xc(p,T)){case 5103:return ie+"print-"+p+p;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ie+p+p;case 5349:case 4246:case 4810:case 6968:case 2756:return ie+p+Ro+p+we+p+p;case 6828:case 4268:return ie+p+we+p+p;case 6165:return ie+p+we+"flex-"+p+p;case 5187:return ie+p+oe(p,/(\w+).+(:[^]+)/,ie+"box-$1$2"+we+"flex-$1$2")+p;case 5443:return ie+p+we+"flex-item-"+oe(p,/flex-|-self/,"")+p;case 4675:return ie+p+we+"flex-line-pack"+oe(p,/align-content|flex-|-self/,"")+p;case 5548:return ie+p+we+oe(p,"shrink","negative")+p;case 5292:return ie+p+we+oe(p,"basis","preferred-size")+p;case 6060:return ie+"box-"+oe(p,"-grow","")+ie+p+we+oe(p,"grow","positive")+p;case 4554:return ie+oe(p,/([^-])(transform)/g,"$1"+ie+"$2")+p;case 6187:return oe(oe(oe(p,/(zoom-|grab)/,ie+"$1"),/(image-set)/,ie+"$1"),p,"")+p;case 5495:case 3959:return oe(p,/(image-set\([^]*)/,ie+"$1$`$1");case 4968:return oe(oe(p,/(.+:)(flex-)?(.*)/,ie+"box-pack:$3"+we+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ie+p+p;case 4095:case 3583:case 4068:case 2532:return oe(p,/(.+)-inline(.+)/,ie+"$1$2")+p;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ve(p)-1-T>6)switch(be(p,T+1)){case 109:if(be(p,T+4)!==45)break;case 102:return oe(p,/(.+:)(.+)-([^]+)/,"$1"+ie+"$2-$3$1"+Ro+(be(p,T+3)==108?"$3":"$2-$3"))+p;case 115:return~kr(p,"stretch")?wa(oe(p,"stretch","fill-available"),T)+p:p}break;case 4949:if(be(p,T+1)!==115)break;case 6444:switch(be(p,Ve(p)-3-(~kr(p,"!important")&&10))){case 107:return oe(p,":",":"+ie)+p;case 101:return oe(p,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ie+(be(p,14)===45?"inline-":"")+"box$3$1"+ie+"$2$3$1"+we+"$2box$3")+p}break;case 5936:switch(be(p,T+11)){case 114:return ie+p+we+oe(p,/[svh]\w+-[tblr]{2}/,"tb")+p;case 108:return ie+p+we+oe(p,/[svh]\w+-[tblr]{2}/,"tb-rl")+p;case 45:return ie+p+we+oe(p,/[svh]\w+-[tblr]{2}/,"lr")+p}return ie+p+we+p+p}return p}var hp=function(T,F,K,tt){if(T.length>-1&&!T.return)switch(T.type){case en:T.return=wa(T.value,T.length);break;case ya:return Ai([Ii(T,{value:oe(T.value,"@","@"+ie)})],tt);case tn:if(T.length)return Uc(T.props,function(it){switch(Yc(it,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ai([Ii(T,{props:[oe(it,/:(read-\w+)/,":"+Ro+"$1")]})],tt);case"::placeholder":return Ai([Ii(T,{props:[oe(it,/:(plac\w+)/,":"+ie+"input-$1")]}),Ii(T,{props:[oe(it,/:(plac\w+)/,":"+Ro+"$1")]}),Ii(T,{props:[oe(it,/:(plac\w+)/,we+"input-$1")]})],tt)}return""})}},cp=[hp],Ma=function(T){var F=T.key;if(F==="css"){var K=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(K,function(B){var X=B.getAttribute("data-emotion");X.indexOf(" ")!==-1&&(document.head.appendChild(B),B.setAttribute("data-s",""))})}var tt=T.stylisPlugins||cp,it={},rt,st=[];rt=T.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+F+' "]'),function(B){for(var X=B.getAttribute("data-emotion").split(" "),U=1;U<X.length;U++)it[X[U]]=!0;st.push(B)});var ht,ct=[ap,lp];{var pt,ft=[ep,op(function(B){pt.insert(B)})],_=ip(ct.concat(tt,ft)),et=function(X){return Ai(Qc(X),_)};ht=function(X,U,$,Z){pt=$,et(X?X+"{"+U.styles+"}":U.styles),Z&&(G.inserted[U.name]=!0)}}var G={key:F,sheet:new zc({key:F,container:rt,nonce:T.nonce,speedy:T.speedy,prepend:T.prepend,insertionPoint:T.insertionPoint}),nonce:T.nonce,inserted:it,registered:{},insert:ht};return G.sheet.hydrate(st),G},pp=!0;function Aa(p,T,F){var K="";return F.split(" ").forEach(function(tt){p[tt]!==void 0?T.push(p[tt]+";"):tt&&(K+=tt+" ")}),K}var rn=function(T,F,K){var tt=T.key+"-"+F.name;(K===!1||pp===!1)&&T.registered[tt]===void 0&&(T.registered[tt]=F.styles)},Ta=function(T,F,K){rn(T,F,K);var tt=T.key+"-"+F.name;if(T.inserted[F.name]===void 0){var it=F;do T.insert(F===it?"."+tt:"",it,T.sheet,!0),it=it.next;while(it!==void 0)}};function dp(p){for(var T=0,F,K=0,tt=p.length;tt>=4;++K,tt-=4)F=p.charCodeAt(K)&255|(p.charCodeAt(++K)&255)<<8|(p.charCodeAt(++K)&255)<<16|(p.charCodeAt(++K)&255)<<24,F=(F&65535)*1540483477+((F>>>16)*59797<<16),F^=F>>>24,T=(F&65535)*1540483477+((F>>>16)*59797<<16)^(T&65535)*1540483477+((T>>>16)*59797<<16);switch(tt){case 3:T^=(p.charCodeAt(K+2)&255)<<16;case 2:T^=(p.charCodeAt(K+1)&255)<<8;case 1:T^=p.charCodeAt(K)&255,T=(T&65535)*1540483477+((T>>>16)*59797<<16)}return T^=T>>>13,T=(T&65535)*1540483477+((T>>>16)*59797<<16),((T^T>>>15)>>>0).toString(36)}var up={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},fp=!1,gp=/[A-Z]|^ms/g,mp=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ka=function(T){return T.charCodeAt(1)===45},qn=function(T){return T!=null&&typeof T!="boolean"},dr=Sa(function(p){return ka(p)?p:p.replace(gp,"-$&").toLowerCase()}),Jn=function(T,F){switch(T){case"animation":case"animationName":if(typeof F=="string")return F.replace(mp,function(K,tt,it){return $e={name:tt,styles:it,next:$e},tt})}return up[T]!==1&&!ka(T)&&typeof F=="number"&&F!==0?F+"px":F},yp="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function qi(p,T,F){if(F==null)return"";var K=F;if(K.__emotion_styles!==void 0)return K;switch(typeof F){case"boolean":return"";case"object":{var tt=F;if(tt.anim===1)return $e={name:tt.name,styles:tt.styles,next:$e},tt.name;var it=F;if(it.styles!==void 0){var rt=it.next;if(rt!==void 0)for(;rt!==void 0;)$e={name:rt.name,styles:rt.styles,next:$e},rt=rt.next;var st=it.styles+";";return st}return vp(p,T,F)}case"function":{if(p!==void 0){var ht=$e,ct=F(p);return $e=ht,qi(p,T,ct)}break}}var pt=F;if(T==null)return pt;var ft=T[pt];return ft!==void 0?ft:pt}function vp(p,T,F){var K="";if(Array.isArray(F))for(var tt=0;tt<F.length;tt++)K+=qi(p,T,F[tt])+";";else for(var it in F){var rt=F[it];if(typeof rt!="object"){var st=rt;T!=null&&T[st]!==void 0?K+=it+"{"+T[st]+"}":qn(st)&&(K+=dr(it)+":"+Jn(it,st)+";")}else{if(it==="NO_COMPONENT_SELECTOR"&&fp)throw new Error(yp);if(Array.isArray(rt)&&typeof rt[0]=="string"&&(T==null||T[rt[0]]===void 0))for(var ht=0;ht<rt.length;ht++)qn(rt[ht])&&(K+=dr(it)+":"+Jn(it,rt[ht])+";");else{var ct=qi(p,T,rt);switch(it){case"animation":case"animationName":{K+=dr(it)+":"+ct+";";break}default:K+=it+"{"+ct+"}"}}}}return K}var Qn=/label:\s*([^\s;{]+)\s*(;|$)/g,$e;function Pa(p,T,F){if(p.length===1&&typeof p[0]=="object"&&p[0]!==null&&p[0].styles!==void 0)return p[0];var K=!0,tt="";$e=void 0;var it=p[0];if(it==null||it.raw===void 0)K=!1,tt+=qi(F,T,it);else{var rt=it;tt+=rt[0]}for(var st=1;st<p.length;st++)if(tt+=qi(F,T,p[st]),K){var ht=it;tt+=ht[st]}Qn.lastIndex=0;for(var ct="",pt;(pt=Qn.exec(tt))!==null;)ct+="-"+pt[1];var ft=dp(tt)+ct;return{name:ft,styles:tt,next:$e}}const bp=2e4,xp="system",nn="#5B6372",Cp="#F4F4F8",Sp="#FA5656",sn="N\\A",wp="N/A";function La(p){if(p===null||p===!0||p===!1)return NaN;var T=Number(p);return isNaN(T)?T:T<0?Math.ceil(T):Math.floor(T)}function Ea(p,T){if(T.length<p)throw new TypeError(p+" argument"+(p>1?"s":"")+" required, but only "+T.length+" present")}var Oa=6e4,Da=36e5;function Mp(p,T){var F;Ea(1,arguments);var K=La((F=void 0)!==null&&F!==void 0?F:2);if(K!==2&&K!==1&&K!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof p=="string"||Object.prototype.toString.call(p)==="[object String]"))return new Date(NaN);var tt=Pp(p),it;if(tt.date){var rt=Lp(tt.date,K);it=Ep(rt.restDateString,rt.year)}if(!it||isNaN(it.getTime()))return new Date(NaN);var st=it.getTime(),ht=0,ct;if(tt.time&&(ht=Op(tt.time),isNaN(ht)))return new Date(NaN);if(tt.timezone){if(ct=Dp(tt.timezone),isNaN(ct))return new Date(NaN)}else{var pt=new Date(st+ht),ft=new Date(0);return ft.setFullYear(pt.getUTCFullYear(),pt.getUTCMonth(),pt.getUTCDate()),ft.setHours(pt.getUTCHours(),pt.getUTCMinutes(),pt.getUTCSeconds(),pt.getUTCMilliseconds()),ft}return new Date(st+ht+ct)}var yo={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Ap=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Tp=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,kp=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Pp(p){var T={},F=p.split(yo.dateTimeDelimiter),K;if(F.length>2)return T;if(/:/.test(F[0])?K=F[0]:(T.date=F[0],K=F[1],yo.timeZoneDelimiter.test(T.date)&&(T.date=p.split(yo.timeZoneDelimiter)[0],K=p.substr(T.date.length,p.length))),K){var tt=yo.timezone.exec(K);tt?(T.time=K.replace(tt[1],""),T.timezone=tt[1]):T.time=K}return T}function Lp(p,T){var F=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+T)+"})|(\\d{2}|[+-]\\d{"+(2+T)+"})$)"),K=p.match(F);if(!K)return{year:NaN,restDateString:""};var tt=K[1]?parseInt(K[1]):null,it=K[2]?parseInt(K[2]):null;return{year:it===null?tt:it*100,restDateString:p.slice((K[1]||K[2]).length)}}function Ep(p,T){if(T===null)return new Date(NaN);var F=p.match(Ap);if(!F)return new Date(NaN);var K=!!F[4],tt=_i(F[1]),it=_i(F[2])-1,rt=_i(F[3]),st=_i(F[4]),ht=_i(F[5])-1;if(K)return Bp(T,st,ht)?jp(T,st,ht):new Date(NaN);var ct=new Date(0);return!_p(T,it,rt)||!Np(T,tt)?new Date(NaN):(ct.setUTCFullYear(T,it,Math.max(tt,rt)),ct)}function _i(p){return p?parseInt(p):1}function Op(p){var T=p.match(Tp);if(!T)return NaN;var F=ur(T[1]),K=ur(T[2]),tt=ur(T[3]);return Rp(F,K,tt)?F*Da+K*Oa+tt*1e3:NaN}function ur(p){return p&&parseFloat(p.replace(",","."))||0}function Dp(p){if(p==="Z")return 0;var T=p.match(kp);if(!T)return 0;var F=T[1]==="+"?-1:1,K=parseInt(T[2]),tt=T[3]&&parseInt(T[3])||0;return zp(K,tt)?F*(K*Da+tt*Oa):NaN}function jp(p,T,F){var K=new Date(0);K.setUTCFullYear(p,0,4);var tt=K.getUTCDay()||7,it=(T-1)*7+F+1-tt;return K.setUTCDate(K.getUTCDate()+it),K}var Ip=[31,null,31,30,31,30,31,31,30,31,30,31];function ja(p){return p%400===0||p%4===0&&p%100!==0}function _p(p,T,F){return T>=0&&T<=11&&F>=1&&F<=(Ip[T]||(ja(p)?29:28))}function Np(p,T){return T>=1&&T<=(ja(p)?366:365)}function Bp(p,T,F){return T>=1&&T<=53&&F>=0&&F<=6}function Rp(p,T,F){return p===24?T===0&&F===0:F>=0&&F<60&&T>=0&&T<60&&p>=0&&p<25}function zp(p,T){return T>=0&&T<=59}var Fp=/\s/;function Gp(p){for(var T=p.length;T--&&Fp.test(p.charAt(T)););return T}var Wp=/^\s+/;function Ia(p){return p&&p.slice(0,Gp(p)+1).replace(Wp,"")}var ts=NaN,Hp=/^[-+]0x[0-9a-f]+$/i,Xp=/^0b[01]+$/i,Yp=/^0o[0-7]+$/i,Up=parseInt;function an(p){if(typeof p=="number")return p;if(Rt.isSymbol(p))return ts;if(Rt.isObject(p)){var T=typeof p.valueOf=="function"?p.valueOf():p;p=Rt.isObject(T)?T+"":T}if(typeof p!="string")return p===0?p:+p;p=Ia(p);var F=Xp.test(p);return F||Yp.test(p)?Up(p.slice(2),F?2:8):Hp.test(p)?ts:+p}var es=1/0,Vp=17976931348623157e292;function _a(p){if(!p)return p===0?p:0;if(p=an(p),p===es||p===-es){var T=p<0?-1:1;return T*Vp}return p===p?p:0}function ln(p){const T=/([+-]\d{2}:?\d{2}|Z)$/i.test(p);return Mp(T?p:p+"Z")}var $p=function(T){return T()},Zp=ti[`useInsertionEffect${Math.random()}`.slice(0,18)]?ti[`useInsertionEffect${Math.random()}`.slice(0,18)]:!1,Na=Zp||$p,Kp=!1,Ba=ti.createContext(typeof HTMLElement!="undefined"?Ma({key:"css"}):null),qp=Ba.Provider,Ra=function(T){return Be.forwardRef(function(F,K){var tt=Be.useContext(Ba);return T(F,tt,K)})},za=ti.createContext({}),ao={}.hasOwnProperty,Lr="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",hn=function(T,F){var K={};for(var tt in F)ao.call(F,tt)&&(K[tt]=F[tt]);return K[Lr]=T,K},Jp=function(T){var F=T.cache,K=T.serialized,tt=T.isStringTag;return rn(F,K,tt),Na(function(){return Ta(F,K,tt)}),null},Qp=Ra(function(p,T,F){var K=p.css;typeof K=="string"&&T.registered[K]!==void 0&&(K=T.registered[K]);var tt=p[Lr],it=[K],rt="";typeof p.className=="string"?rt=Aa(T.registered,it,p.className):p.className!=null&&(rt=p.className+" ");var st=Pa(it,void 0,ti.useContext(za));rt+=T.key+"-"+st.name;var ht={};for(var ct in p)ao.call(p,ct)&&ct!=="css"&&ct!==Lr&&!Kp&&(ht[ct]=p[ct]);return ht.className=rt,F&&(ht.ref=F),ti.createElement(ti.Fragment,null,ti.createElement(Jp,{cache:T,serialized:st,isStringTag:typeof tt=="string"}),ti.createElement(tt,ht))}),cn=Qp,Fa=$i.Fragment,se=function(T,F,K){return ao.call(F,"css")?$i.jsx(cn,hn(T,F),K):$i.jsx(T,F,K)},li=function(T,F,K){return ao.call(F,"css")?$i.jsxs(cn,hn(T,F),K):$i.jsxs(T,F,K)};const Ga=["polar"],pn=["line","area","bar","column","streamgraph",...Ga],dn=["pie","funnel","treemap","sunburst"],un=["scatter"],Wa=["table"],Ha=["indicator"],fn=["boxplot"],Xa=["areamap"],td=["image"],Ya=["scattermap"],Ua=["calendar-heatmap"],gn=["arearange"],Va=p=>pn.find(T=>T===p)!==void 0,$a=p=>dn.find(T=>T===p)!==void 0,Za=p=>un.find(T=>T===p)!==void 0,Ka=p=>Ya.find(T=>T===p)!==void 0,qa=p=>Ha.find(T=>T===p)!==void 0,Ja=p=>Ga.find(T=>T===p)!==void 0,ed=p=>Wa.find(T=>T===p)!==void 0,Qa=p=>fn.find(T=>T===p)!==void 0,tl=p=>Xa.find(T=>T===p)!==void 0,id=p=>gn.find(T=>T===p)!==void 0,od=p=>Ua.find(T=>T===p)!==void 0,rd=[...pn,...dn,...un,...Wa,...Ha,...fn,...Xa,...td,...Ya,...Ua,...gn];function mn(p){return p===void 0}const zo=(p,T)=>Object.assign(Object.create(p),T),nd=(p,T)=>Object.assign(Object.create(Object.getPrototypeOf(p)),p,T),lo=p=>{if(vn(p)){const T=p,{column:F}=T,K=Te(T,["column"]);return{column:F,style:K}}return{column:p,style:{}}};function Qe(p){const T="column"in p?p.column:p,F="aggregation"in T&&!!T.aggregation,K="context"in T&&!!T.context,tt="formula"in T&&!!T.formula;return F||K||tt?!0:!("type"in T)}const xe=p=>{if(!p)return"";const{column:T,name:F}=p;return F||("title"in T&&T.title?T.title:T.name)},yn=({column:p,granularity:T})=>T||p.granularity||Rt.DateLevels.Years,sd=p=>{const{column:T}=lo(p);return T},ad=p=>{const{column:T}=lo(p);return T};function vn(p){return"column"in p&&p.column!==void 0}function ld(p){return!("column"in p)}function el(p,T){var it;const{column:F,style:K}=lo(p),tt=_t(kt(kt({},T),K),{column:F});return Rt.isDatetime(F.type)&&mn(tt.dateFormat)&&(tt.dateFormat=(it=F==null?void 0:F.getFormat)==null?void 0:it.call(F)),tt}function il(p,T){var tt,it;const{column:F,style:K}=lo(p);return _t(kt(kt({},T),K),{column:zo(F,{title:(tt=F.title)!=null?tt:F.name,aggregation:(it=F.aggregation)!=null?it:"sum"}),enabled:!0})}function hd(p,T){return Qe(p)?il(p,T):el(p,T)}const Ji=(p,T)=>{const F=!p||p==="";let K,tt,it;return Rt.isNumber(T)?(K=parseFloat(p),tt=isNaN(K)):Rt.isDatetime(T)?p===sn?(K=p,tt=!0):(K=ln(p).valueOf(),tt=isNaN(K)):(K=p,it=p==null?void 0:p.toLowerCase(),tt=!1),kt({value:K,valueUndefined:F,valueIsNaN:tt},it&&{lowercaseValue:it})};function is(p,T){const F=Rt.isObject(p)?p:{displayValue:p==null?void 0:p.toString()};return F.compareValue||(F.compareValue=Ji(F.displayValue,T)),F}var ol=(p=>(p[p.ASC=1]="ASC",p[p.DESC=-1]="DESC",p[p.NONE=0]="NONE",p))(ol||{});function rl(p,T,F=1,K="string"){const tt=is(p,K),it=is(T,K),rt=tt.compareValue,st=it.compareValue;if(rt.valueUndefined&&st.valueUndefined)return 0;if(rt.valueUndefined)return 1;if(st.valueUndefined)return-1;if(rt.valueIsNaN&&st.valueIsNaN)return 0;if(rt.valueIsNaN)return 1;if(st.valueIsNaN)return-1;const ht=rt.lowercaseValue,ct=st.lowercaseValue;if(ht!==void 0&&ct!==void 0){if(ht<ct)return-1*F;if(ht>ct)return 1*F}return rt.value<st.value?-1*F:rt.value>st.value?1*F:0}class nl{constructor(T){De(this,"columns",[]);this.columns=T}compare(T,F){for(let K=0;K<this.columns.length;K++){const tt=this.columns[K],it=T[tt.index],rt=F[tt.index],st=tt.direction||1,ht=rl(it,rt,st,tt.type);if(ht!==0)return ht}return 0}}const sl=p=>p instanceof Object&&"data"in p,cd=p=>p.rows.length===0,bn="$rownum",pd=p=>{let T=0;const F=p.rows.map(tt=>{const it=p.columns.map((rt,st)=>{var ft;const ht=tt[st];if(sl(ht)){let _=ht.data.toString();if(Rt.isDatetime(rt.type)){const et="1111-11-11T";_.startsWith(et)&&(_=_.replace(et,"1970-01-01T"))}return kt(kt({rawValue:ht.data,displayValue:(ft=ht.text)!=null?ft:_,compareValue:Ji(_,rt.type)},ht.blur!==void 0?{blur:ht.blur}:{}),ht.color?{color:ht.color}:{})}let ct,pt;return Rt.isDatetime(rt.type)&&(ht===sn?(ct={value:ht,valueUndefined:!1,valueIsNaN:!0},pt=ht):(ct=Ji(`${ht}`,rt.type),pt=new Date(ct.value).toISOString())),{rawValue:pt!=null?pt:ht,displayValue:`${ht!=null?ht:""}`,compareValue:ct}});return T++,it.push({displayValue:`${T}`,rawValue:T}),it}),K=p.columns.map((tt,it)=>({name:tt.name,type:tt.type,index:it,direction:0}));return K.push({name:bn,type:"number",index:K.length,direction:0}),{columns:K,rows:F}};class dd{constructor(T){De(this,"data");De(this,"countDistinct");this.data=T}getStat(T){switch(T){case"count":return this.getCount();case"countdistinct":return this.getCountDistinct()}return NaN}getN(){return this.getCount()}getCount(){return this.data.length}getCountDistinct(){return this.data.filter((T,F,K)=>K.indexOf(T)===F).length}}class os{constructor(T){De(this,"data");De(this,"sum");De(this,"max");De(this,"min");De(this,"avg");De(this,"variance");De(this,"stddev");this.data=T}getStat(T){switch(T){case"sum":return this.getSum();case"max":return this.getMax();case"min":return this.getMin();case"count":return this.getCount();case"countdistinct":return this.getCountDistinct();case"avg":case"mean":case"average":return this.getAverage();case"var":case"variance":return this.getVariance();case"stddev":return this.getStdDev()}return NaN}getSum(){if(this.data.length===0)return NaN;if(this.sum!=null)return this.sum;this.sum=0;for(const T of this.data)this.sum+=T;return this.sum}getMax(){if(this.data.length===0)return NaN;if(this.max)return this.max;if(this.data.length<=0)return NaN;this.max=this.data[0];for(const T of this.data)T>this.max&&(this.max=T);return this.max}getMin(){if(this.data.length===0)return NaN;if(this.min)return this.min;if(this.data.length<=0)return NaN;this.min=this.data[0];for(const T of this.data)T<this.min&&(this.min=T);return this.min}getMean(){return this.getAverage()}getAverage(){return this.data.length===0?NaN:this.avg?this.avg:(this.avg=this.getSum()/this.data.length,this.avg)}getN(){return this.getCount()}getCount(){return this.data.length}getCountDistinct(){return this.data.filter((T,F,K)=>K.indexOf(T)===F).length}getVariance(){if(this.variance===void 0)if(this.data.length===0)this.variance=NaN;else if(this.data.length===1)this.variance=0;else{const T=this.getMean();this.variance=this.data.reduce((F,K)=>F.concat(Ft(K-T,2)),[]).reduce((F,K)=>F+K,0)/(this.data.length-1)}return this.variance}getStdDev(){return this.data.length===0?NaN:this.stddev!=null?this.stddev:(this.stddev=Math.sqrt(this.getVariance()),this.stddev)}}const al=(p,T)=>p.slice(0).sort((F,K)=>T.compare(F,K)),xn=(p,T)=>{if(!(p&&p.length>0))return[];const F=new nl(T),K=al(p,F);let tt=[];const it=[];let rt=K[0];for(const st of Array.from(K))F.compare(st,rt)!==0&&(it.push(tt),tt=[]),tt.push(st),rt=st;return it.push(tt),it},ud=(p,T)=>{var K,tt;const F=[];for(const it of T){let rt;const st=it.column,{aggFunc:ht}=it,ct=p.filter(_=>!!_[st.index]&&_[st.index].displayValue!==""),pt=(tt=(K=ct.find(_=>{var et;return _!==void 0&&((et=_==null?void 0:_[st.index])==null?void 0:et.color)}))==null?void 0:K[st.index])==null?void 0:tt.color,ft=ct.some(_=>_[st.index].blur);if(Rt.isDatetime(st.type)){const _=ct.map(et=>ln(et[st.index].displayValue).valueOf());rt=new os(_).getStat(ht)}else if(Rt.isNumber(st.type)){const _=ct.map(et=>parseFloat(et[st.index].displayValue));rt=new os(_).getStat(ht)}else{const _=ct.map(et=>et[st.index].displayValue);rt=new dd(_).getStat(ht)}F.push(kt(kt({displayValue:`${rt}`},pt&&{color:pt}),ft&&{blur:ft}))}return F},ll=(p,T)=>{if(Sn(p))return{columns:[],rows:[]};const F=new nl(T);return{columns:p.columns,rows:al(p.rows,F)}},hl=(p,T,F)=>{if(Sn(p))return{rows:[],columns:[]};const K={name:"n/a",type:"n/a",index:-1,direction:0},tt=F.map(ct=>({aggFunc:ct.agg,aggName:ct.title,column:si(p,ct.column)||K})).filter(ct=>ct.column.index!==-1),it=xn(p.rows,T),rt=tt.map(ct=>ct.aggName),st=[];for(const ct of it){const pt=Di(ct[0],T),ft=ud(ct,tt),_=pt.slice(0).concat(ft);st.push(_)}const ht=T.slice(0).concat(rt.map(ct=>({name:ct,type:"number",index:0,direction:0})));return{rows:st,columns:ht.map((ct,pt)=>_t(kt({},ct),{index:pt}))}},si=(p,T)=>p.columns.find(F=>F.name===T),Qi=(p,T)=>{const F={name:"foo",type:"string",index:-1,direction:0};return T.map(K=>si(p,K)||F).filter(K=>K!==F)},cl=(p,T)=>{const F=p.rows.map(tt=>T.map(it=>tt[it.index]));return{columns:T.map((tt,it)=>_t(kt({},tt),{index:it})),rows:F}},pl=(p,T)=>{if(!(p&&T.index<p.length))return;const F=p[T.index];return F.compareValue||(F.compareValue=Ji(F.displayValue,T.type)),F.compareValue.value},dl=(p,T)=>{var F;return(F=p[T.index])==null?void 0:F.blur},Di=(p,T)=>{const F=[];for(const K of T)F.push(p[K.index]);return F},fd=(p,T)=>Di(p,T).map(F=>F.rawValue||F.displayValue).join(","),Cn=(p,T)=>{if(!(p&&p.length>0))return{};const F=xn(p,T),K={};for(const tt of F){const it=fd(tt[0],T);K[it]=tt}return K},Sn=p=>!(p.rows&&p.columns&&p.rows.length>0&&p.columns.length>0);var rs;(function(p){p.event="event",p.props="prop"})(rs||(rs={}));function gd(p){switch(p){case"lakh":return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case"wan":return/(\d)(?=(\d{4})+(?!\d))/g;case"thousand":default:return/(\d)(?=(\d{3})+(?!\d))/g}}function md(p,T,F){var K=gd(F),tt=p.search(/[1-9]/);return tt=tt===-1?p.length:tt,p.substring(0,tt)+p.substring(tt,p.length).replace(K,"$1"+T)}function yd(p,T){T===void 0&&(T=!0);var F=p[0]==="-",K=F&&T;p=p.replace("-","");var tt=p.split("."),it=tt[0],rt=tt[1]||"";return{beforeDecimal:it,afterDecimal:rt,hasNegation:F,addNegation:K}}function vd(p,T,F){for(var K="",tt=F?"0":"",it=0;it<=T-1;it++)K+=p[it]||tt;return K}function bd(p,T){var F=T.decimalScale,K=T.fixedDecimalScale,tt=T.prefix;tt===void 0&&(tt="");var it=T.suffix;it===void 0&&(it="");var rt=T.allowNegative,st=T.thousandsGroupStyle;if(st===void 0&&(st="thousand"),p===""||p==="-")return p;var ht=xd(T),ct=ht.thousandSeparator,pt=ht.decimalSeparator,ft=F!==0&&p.indexOf(".")!==-1||F&&K,_=yd(p,rt),et=_.beforeDecimal,G=_.afterDecimal,B=_.addNegation;return F!==void 0&&(G=vd(G,F,!!K)),ct&&(et=md(et,ct,st)),tt&&(et=tt+et),it&&(G=G+it),B&&(et="-"+et),p=et+(ft&&pt||"")+G,p}function xd(p){var T=p.decimalSeparator;T===void 0&&(T=".");var F=p.thousandSeparator,K=p.allowedDecimalSeparators;return F===!0&&(F=","),K||(K=[T,"."]),{decimalSeparator:T,thousandSeparator:F,allowedDecimalSeparators:K}}function ul(p){var T=_a(p),F=T%1;return T===T?F?T-F:T:0}var Cd=Rt.root.isFinite,Sd=Math.min;function wd(p){var T=Math[p];return function(F,K){if(F=an(F),K=K==null?0:Sd(ul(K),292),K&&Cd(F)){var tt=(Rt.toString(F)+"e").split("e"),it=T(tt[0]+"e"+(+tt[1]+K));return tt=(Rt.toString(it)+"e").split("e"),+(tt[0]+"e"+(+tt[1]-K))}return T(F)}}var Md=wd("round");const Er=1e3,Or=Er*1e3,Dr=Or*1e3,ns=Dr*1e3,fl=1000.1.toLocaleString().replace(/\d/g,""),Ad=fl[0],Td=fl[1],kd={name:"Numbers",decimalScale:"auto",trillion:!0,billion:!0,million:!0,kilo:!0,thousandSeparator:!0,prefix:!0,symbol:"$"},he=p=>kt(kt({},kd),p||{}),Pd=(p,T)=>isNaN(T)?"":`<span>${vi(p,T)}</span>`,Ld=(p,T)=>Math.sign(p)*Md(Math.abs(p),T),vi=(p,T)=>{const{t:F}=Rt.i18nextInstance,K=p.decimalScale!==0&&p.decimalScale!=="auto",tt=p.decimalScale==="auto"?2:p.decimalScale;let it=!0;p.name==="Numbers"&&!p.thousandSeparator&&(it=void 0);let rt,st,ht=T;return p.name==="Percent"&&(st="%",ht=T*100),(p.name==="Numbers"||p.name==="Currency")&&(p.trillion&&Math.abs(T)/ns>=1?(ht=T/ns,st=F("formatting.number.abbreviations.trillion")):p.billion&&Math.abs(T)/Dr>=1?(ht=T/Dr,st=F("formatting.number.abbreviations.billion")):p.million&&Math.abs(T)/Or>=1?(ht=T/Or,st=F("formatting.number.abbreviations.million")):p.kilo&&Math.abs(T)/Er>=1&&(ht=T/Er,st=F("formatting.number.abbreviations.thousand"))),p.name==="Currency"&&(p.prefix?rt=p.symbol:st?st=`${st}${p.symbol}`:st=p.symbol),bd(`${Ld(ht,tt)}`,{displayType:"text",thousandSeparator:it?Ad:void 0,fixedDecimalScale:K,decimalScale:tt,decimalSeparator:Td,prefix:rt,suffix:st})},Ce=(p,T)=>{let F=Pd(p,T);return F=F.replace("<span>",""),F=F.replace("</span>",""),F},Fo="#dcdcdc",oi="#CCCCCC",ri="#FFFFFF",Ed=["#00cee6","#9b9bd7","#6eda55","#fc7570","#fbb755","#218a8c","#08e5ff","#b3b3f7","#7efb62","#ff8a87","#ffc26a","#279fa1"],wn=p=>({type:"uniform",color:p});function Od(p){return()=>p.color}const gl=p=>{if(p!==void 0)return typeof p=="string"?wn(p).color:p.type==="uniform"?p.color:Fo};function Dd(p){var F;const T=((F=p.conditions)!=null?F:[]).map(K=>({match:jd(K),color:K.color}));return K=>{const tt=T.find(it=>it.match(K));return tt?tt.color:p.defaultColor}}function jd(p){const T=Number(p.expression);switch(p.operator){case"<":return F=>F<T;case">":return F=>F>T;case"≤":case"<=":return F=>F<=T;case"≥":case">=":return F=>F>=T;case"=":return F=>F==T;case"≠":case"!=":return F=>F!=T;default:return()=>!0}}function ge(p,T){let F=p.length;Array.isArray(p[0])||(p=[p]),Array.isArray(T[0])||(T=T.map(rt=>[rt]));let K=T[0].length,tt=T[0].map((rt,st)=>T.map(ht=>ht[st])),it=p.map(rt=>tt.map(st=>{let ht=0;if(!Array.isArray(rt)){for(let ct of st)ht+=rt*ct;return ht}for(let ct=0;ct<rt.length;ct++)ht+=rt[ct]*(st[ct]||0);return ht}));return F===1&&(it=it[0]),K===1?it.map(rt=>rt[0]):it}function ho(p){return ai(p)==="string"}function ai(p){return(Object.prototype.toString.call(p).match(/^\[object\s+(.*?)\]$/)[1]||"").toLowerCase()}function Go(p,T){p=+p,T=+T;let F=(Math.floor(p)+"").length;if(T>F)return+p.toFixed(T-F);{let K=Ft(10,F-T);return Math.round(p/K)*K}}function ml(p){if(!p)return;p=p.trim();const T=/^([a-z]+)\((.+?)\)$/i,F=/^-?[\d.]+$/;let K=p.match(T);if(K){let tt=[];return K[2].replace(/\/?\s*([-\w.]+(?:%|deg)?)/g,(it,rt)=>{/%$/.test(rt)?(rt=new Number(rt.slice(0,-1)/100),rt.type="<percentage>"):/deg$/.test(rt)?(rt=new Number(+rt.slice(0,-3)),rt.type="<angle>",rt.unit="deg"):F.test(rt)&&(rt=new Number(rt),rt.type="<number>"),it.startsWith("/")&&(rt=rt instanceof Number?rt:new Number(rt),rt.alpha=!0),tt.push(rt)}),{name:K[1].toLowerCase(),rawName:K[1],rawArgs:K[2],args:tt}}}function yl(p){return p[p.length-1]}function Wo(p,T,F){return isNaN(p)?T:isNaN(T)?p:p+(T-p)*F}function vl(p,T,F){return(F-p)/(T-p)}function Mn(p,T,F){return Wo(T[0],T[1],vl(p[0],p[1],F))}function bl(p){return p.map(T=>T.split("|").map(F=>{F=F.trim();let K=F.match(/^(<[a-z]+>)\[(-?[.\d]+),\s*(-?[.\d]+)\]?$/);if(K){let tt=new String(K[1]);return tt.range=[+K[2],+K[3]],tt}return F}))}var Id=Object.freeze({__proto__:null,interpolate:Wo,interpolateInv:vl,isString:ho,last:yl,mapRange:Mn,multiplyMatrices:ge,parseCoordGrammar:bl,parseFunction:ml,toPrecision:Go,type:ai});class _d{add(T,F,K){if(typeof arguments[0]!="string"){for(var T in arguments[0])this.add(T,arguments[0][T],arguments[1]);return}(Array.isArray(T)?T:[T]).forEach(function(tt){this[tt]=this[tt]||[],F&&this[tt][K?"unshift":"push"](F)},this)}run(T,F){this[T]=this[T]||[],this[T].forEach(function(K){K.call(F&&F.context?F.context:F,F)})}}const hi=new _d;var Je={gamut_mapping:"lch.c",precision:5,deltaE:"76"};const Xe={D50:[.3457/.3585,1,(1-.3457-.3585)/.3585],D65:[.3127/.329,1,(1-.3127-.329)/.329]};function jr(p){return Array.isArray(p)?p:Xe[p]}function Ho(p,T,F,K={}){if(p=jr(p),T=jr(T),!p||!T)throw new TypeError(`Missing white point to convert ${p?"":"from"}${!p&&!T?"/":""}${T?"":"to"}`);if(p===T)return F;let tt={W1:p,W2:T,XYZ:F,options:K};if(hi.run("chromatic-adaptation-start",tt),tt.M||(tt.W1===Xe.D65&&tt.W2===Xe.D50?tt.M=[[1.0479298208405488,.022946793341019088,-.05019222954313557],[.029627815688159344,.990434484573249,-.01707382502938514],[-.009243058152591178,.015055144896577895,.7518742899580008]]:tt.W1===Xe.D50&&tt.W2===Xe.D65&&(tt.M=[[.9554734527042182,-.023098536874261423,.0632593086610217],[-.028369706963208136,1.0099954580058226,.021041398966943008],[.012314001688319899,-.020507696433477912,1.3303659366080753]])),hi.run("chromatic-adaptation-end",tt),tt.M)return ge(tt.M,tt.XYZ);throw new TypeError("Only Bradford CAT with white points D50 and D65 supported for now.")}const Nd=75e-6,je=class je{constructor(T){var tt,it,rt,st,ht,ct,pt;this.id=T.id,this.name=T.name,this.base=T.base?je.get(T.base):null,this.aliases=T.aliases,this.base&&(this.fromBase=T.fromBase,this.toBase=T.toBase);let F=(tt=T.coords)!=null?tt:this.base.coords;for(let ft in F)"name"in F[ft]||(F[ft].name=ft);this.coords=F;let K=(rt=(it=T.white)!=null?it:this.base.white)!=null?rt:"D65";this.white=jr(K),this.formats=(st=T.formats)!=null?st:{};for(let ft in this.formats){let _=this.formats[ft];_.type||(_.type="function"),_.name||(_.name=ft)}T.cssId&&!((ht=this.formats.functions)!=null&&ht.color)?(this.formats.color={id:T.cssId},Object.defineProperty(this,"cssId",{value:T.cssId})):(ct=this.formats)!=null&&ct.color&&!((pt=this.formats)!=null&&pt.color.id)&&(this.formats.color.id=this.id),this.referred=T.referred,Object.defineProperty(this,"path",{value:Bd(this).reverse(),writable:!1,enumerable:!0,configurable:!0}),hi.run("colorspace-init-end",this)}inGamut(T,{epsilon:F=Nd}={}){if(this.isPolar)return T=this.toBase(T),this.base.inGamut(T,{epsilon:F});let K=Object.values(this.coords);return T.every((tt,it)=>{let rt=K[it];if(rt.type!=="angle"&&rt.range){if(Number.isNaN(tt))return!0;let[st,ht]=rt.range;return(st===void 0||tt>=st-F)&&(ht===void 0||tt<=ht+F)}return!0})}get cssId(){var T,F;return((F=(T=this.formats.functions)==null?void 0:T.color)==null?void 0:F.id)||this.id}get isPolar(){for(let T in this.coords)if(this.coords[T].type==="angle")return!0;return!1}getFormat(T){if(typeof T=="object")return T=ss(T,this),T;let F;return T==="default"?F=Object.values(this.formats)[0]:F=this.formats[T],F?(F=ss(F,this),F):null}equals(T){return T?this===T||this.id===T.id:!1}to(T,F){if(arguments.length===1&&([T,F]=[T.space,T.coords]),T=je.get(T),this.equals(T))return F;F=F.map(st=>Number.isNaN(st)?0:st);let K=this.path,tt=T.path,it,rt;for(let st=0;st<K.length&&K[st].equals(tt[st]);st++)it=K[st],rt=st;if(!it)throw new Error(`Cannot convert between color spaces ${this} and ${T}: no connection space was found`);for(let st=K.length-1;st>rt;st--)F=K[st].toBase(F);for(let st=rt+1;st<tt.length;st++)F=tt[st].fromBase(F);return F}from(T,F){return arguments.length===1&&([T,F]=[T.space,T.coords]),T=je.get(T),T.to(this,F)}toString(){return`${this.name} (${this.id})`}getMinCoords(){var F;let T=[];for(let K in this.coords){let tt=this.coords[K],it=tt.range||tt.refRange;T.push((F=it==null?void 0:it.min)!=null?F:0)}return T}static get all(){return[...new Set(Object.values(je.registry))]}static register(T,F){if(arguments.length===1&&(F=arguments[0],T=F.id),F=this.get(F),this.registry[T]&&this.registry[T]!==F)throw new Error(`Duplicate color space registration: '${T}'`);if(this.registry[T]=F,arguments.length===1&&F.aliases)for(let K of F.aliases)this.register(K,F);return F}static get(T,...F){if(!T||T instanceof je)return T;if(ai(T)==="string"){let tt=je.registry[T.toLowerCase()];if(!tt)throw new TypeError(`No color space found with id = "${T}"`);return tt}if(F.length)return je.get(...F);throw new TypeError(`${T} is not a valid color space`)}static resolveCoord(T,F){var ht;let K=ai(T),tt,it;if(K==="string"?T.includes(".")?[tt,it]=T.split("."):[tt,it]=[,T]:Array.isArray(T)?[tt,it]=T:(tt=T.space,it=T.coordId),tt=je.get(tt),tt||(tt=F),!tt)throw new TypeError(`Cannot resolve coordinate reference ${T}: No color space specified and relative references are not allowed here`);if(K=ai(it),K==="number"||K==="string"&&it>=0){let ct=Object.entries(tt.coords)[it];if(ct)return kt({space:tt,id:ct[0],index:it},ct[1])}tt=je.get(tt);let rt=it.toLowerCase(),st=0;for(let ct in tt.coords){let pt=tt.coords[ct];if(ct.toLowerCase()===rt||((ht=pt.name)==null?void 0:ht.toLowerCase())===rt)return kt({space:tt,id:ct,index:st},pt);st++}throw new TypeError(`No "${it}" coordinate found in ${tt.name}. Its coordinates are: ${Object.keys(tt.coords).join(", ")}`)}};De(je,"registry",{}),De(je,"DEFAULT_FORMAT",{type:"functions",name:"color"});let Vt=je;function Bd(p){let T=[p];for(let F=p;F=F.base;)T.push(F);return T}function ss(p,{coords:T}={}){if(p.coords&&!p.coordGrammar){p.type||(p.type="function"),p.name||(p.name="color"),p.coordGrammar=bl(p.coords);let F=Object.entries(T).map(([K,tt],it)=>{let rt=p.coordGrammar[it][0],st=tt.range||tt.refRange,ht=rt.range,ct="";return rt=="<percentage>"?(ht=[0,100],ct="%"):rt=="<angle>"&&(ct="deg"),{fromRange:st,toRange:ht,suffix:ct}});p.serializeCoords=(K,tt)=>K.map((it,rt)=>{let{fromRange:st,toRange:ht,suffix:ct}=F[rt];return st&&ht&&(it=Mn(st,ht,it)),it=Go(it,tt),ct&&(it+=ct),it})}return p}var Fe=new Vt({id:"xyz-d65",name:"XYZ D65",coords:{x:{name:"X"},y:{name:"Y"},z:{name:"Z"}},white:"D65",formats:{color:{ids:["xyz-d65","xyz"]}},aliases:["xyz"]});class Oe extends Vt{constructor(T){var F,K,tt;T.coords||(T.coords={r:{range:[0,1],name:"Red"},g:{range:[0,1],name:"Green"},b:{range:[0,1],name:"Blue"}}),T.base||(T.base=Fe),T.toXYZ_M&&T.fromXYZ_M&&((F=T.toBase)!=null||(T.toBase=it=>{let rt=ge(T.toXYZ_M,it);return this.white!==this.base.white&&(rt=Ho(this.white,this.base.white,rt)),rt}),(K=T.fromBase)!=null||(T.fromBase=it=>(it=Ho(this.base.white,this.white,it),ge(T.fromXYZ_M,it)))),(tt=T.referred)!=null||(T.referred="display"),super(T)}}function xl(p,{meta:T}={}){var K,tt,it,rt,st,ht;let F={str:(K=String(p))==null?void 0:K.trim()};if(hi.run("parse-start",F),F.color)return F.color;if(F.parsed=ml(F.str),F.parsed){let ct=F.parsed.name;if(ct==="color"){let pt=F.parsed.args.shift(),ft=F.parsed.rawArgs.indexOf("/")>0?F.parsed.args.pop():1;for(let et of Vt.all){let G=et.getFormat("color");if(G&&(pt===G.id||(tt=G.ids)!=null&&tt.includes(pt))){const B=Object.keys(et.coords).map((X,U)=>F.parsed.args[U]||0);return T&&(T.formatId="color"),{spaceId:et.id,coords:B,alpha:ft}}}let _="";if(pt in Vt.registry){let et=(st=(rt=(it=Vt.registry[pt].formats)==null?void 0:it.functions)==null?void 0:rt.color)==null?void 0:st.id;et&&(_=`Did you mean color(${et})?`)}throw new TypeError(`Cannot parse color(${pt}). `+(_||"Missing a plugin?"))}else for(let pt of Vt.all){let ft=pt.getFormat(ct);if(ft&&ft.type==="function"){let _=1;(ft.lastAlpha||yl(F.parsed.args).alpha)&&(_=F.parsed.args.pop());let et=F.parsed.args,G;return ft.coordGrammar&&(G=Object.entries(pt.coords).map(([B,X],U)=>{var E;let $=ft.coordGrammar[U],Z=(E=et[U])==null?void 0:E.type,V=$.find(M=>M==Z);if(!V){let M=X.name||B;throw new TypeError(`${Z} not allowed for ${M} in ${ct}()`)}let z=V.range;Z==="<percentage>"&&(z||(z=[0,1]));let I=X.range||X.refRange;return z&&I&&(et[U]=Mn(z,I,et[U])),V})),T&&Object.assign(T,{formatId:ft.name,types:G}),{spaceId:pt.id,coords:et,alpha:_}}}}else for(let ct of Vt.all)for(let pt in ct.formats){let ft=ct.formats[pt];if(ft.type!=="custom"||ft.test&&!ft.test(F.str))continue;let _=ft.parse(F.str);if(_)return(ht=_.alpha)!=null||(_.alpha=1),T&&(T.formatId=pt),_}throw new TypeError(`Could not parse ${p} as a color. Missing a plugin?`)}function re(p){if(!p)throw new TypeError("Empty color reference");ho(p)&&(p=xl(p));let T=p.space||p.spaceId;return T instanceof Vt||(p.space=Vt.get(T)),p.alpha===void 0&&(p.alpha=1),p}function co(p,T){return T=Vt.get(T),T.from(p)}function Ge(p,T){let{space:F,index:K}=Vt.resolveCoord(T,p.space);return co(p,F)[K]}function Cl(p,T,F){return T=Vt.get(T),p.coords=T.to(p.space,F),p}function ci(p,T,F){if(p=re(p),arguments.length===2&&ai(arguments[1])==="object"){let K=arguments[1];for(let tt in K)ci(p,tt,K[tt])}else{typeof F=="function"&&(F=F(Ge(p,T)));let{space:K,index:tt}=Vt.resolveCoord(T,p.space),it=co(p,K);it[tt]=F,Cl(p,K,it)}return p}var An=new Vt({id:"xyz-d50",name:"XYZ D50",white:"D50",base:Fe,fromBase:p=>Ho(Fe.white,"D50",p),toBase:p=>Ho("D50",Fe.white,p),formats:{color:{}}});const Rd=216/24389,as=24/116,vo=24389/27;let fr=Xe.D50;var Ie=new Vt({id:"lab",name:"Lab",coords:{l:{refRange:[0,100],name:"L"},a:{refRange:[-125,125]},b:{refRange:[-125,125]}},white:fr,base:An,fromBase(p){let F=p.map((K,tt)=>K/fr[tt]).map(K=>K>Rd?Math.cbrt(K):(vo*K+16)/116);return[116*F[1]-16,500*(F[0]-F[1]),200*(F[1]-F[2])]},toBase(p){let T=[];return T[1]=(p[0]+16)/116,T[0]=p[1]/500+T[1],T[2]=T[1]-p[2]/200,[T[0]>as?Math.pow(T[0],3):(116*T[0]-16)/vo,p[0]>8?Math.pow((p[0]+16)/116,3):p[0]/vo,T[2]>as?Math.pow(T[2],3):(116*T[2]-16)/vo].map((K,tt)=>K*fr[tt])},formats:{lab:{coords:["<number> | <percentage>","<number> | <percentage>[-1,1]","<number> | <percentage>[-1,1]"]}}});function ir(p){return(p%360+360)%360}function zd(p,T){if(p==="raw")return T;let[F,K]=T.map(ir),tt=K-F;return p==="increasing"?tt<0&&(K+=360):p==="decreasing"?tt>0&&(F+=360):p==="longer"?-180<tt&&tt<180&&(tt>0?F+=360:K+=360):p==="shorter"&&(tt>180?F+=360:tt<-180&&(K+=360)),[F,K]}var to=new Vt({id:"lch",name:"LCH",coords:{l:{refRange:[0,100],name:"Lightness"},c:{refRange:[0,150],name:"Chroma"},h:{refRange:[0,360],type:"angle",name:"Hue"}},base:Ie,fromBase(p){let[T,F,K]=p,tt;const it=.02;return Math.abs(F)<it&&Math.abs(K)<it?tt=NaN:tt=Math.atan2(K,F)*180/Math.PI,[T,Math.sqrt(Ft(F,2)+Ft(K,2)),ir(tt)]},toBase(p){let[T,F,K]=p;return F<0&&(F=0),isNaN(K)&&(K=0),[T,F*Math.cos(K*Math.PI/180),F*Math.sin(K*Math.PI/180)]},formats:{lch:{coords:["<number> | <percentage>","<number> | <percentage>","<number> | <angle>"]}}});const ls=Ft(25,7),Xo=Math.PI,hs=180/Xo,wi=Xo/180;function Ir(p,T,{kL:F=1,kC:K=1,kH:tt=1}={}){let[it,rt,st]=Ie.from(p),ht=to.from(Ie,[it,rt,st])[1],[ct,pt,ft]=Ie.from(T),_=to.from(Ie,[ct,pt,ft])[1];ht<0&&(ht=0),_<0&&(_=0);let et=(ht+_)/2,G=Ft(et,7),B=.5*(1-Math.sqrt(G/(G+ls))),X=(1+B)*rt,U=(1+B)*pt,$=Math.sqrt(Ft(X,2)+Ft(st,2)),Z=Math.sqrt(Ft(U,2)+Ft(ft,2)),V=X===0&&st===0?0:Math.atan2(st,X),z=U===0&&ft===0?0:Math.atan2(ft,U);V<0&&(V+=2*Xo),z<0&&(z+=2*Xo),V*=hs,z*=hs;let I=ct-it,E=Z-$,M=z-V,P=V+z,y=Math.abs(M),h;$*Z===0?h=0:y<=180?h=M:M>180?h=M-360:M<-180?h=M+360:console.log("the unthinkable has happened");let f=2*Math.sqrt(Z*$)*Math.sin(h*wi/2),m=(it+ct)/2,u=($+Z)/2,v=Math.pow(u,7),S;$*Z===0?S=P:y<=180?S=P/2:P<360?S=(P+360)/2:S=(P-360)/2;let w=Ft(m-50,2),x=1+.015*w/Math.sqrt(20+w),c=1+.045*u,g=1;g-=.17*Math.cos((S-30)*wi),g+=.24*Math.cos(2*S*wi),g+=.32*Math.cos((3*S+6)*wi),g-=.2*Math.cos((4*S-63)*wi);let r=1+.015*u*g,a=30*Math.exp(-1*Ft((S-275)/25,2)),t=2*Math.sqrt(v/(v+ls)),i=-1*Math.sin(2*a*wi)*t,o=Ft(I/(F*x),2);return o+=Ft(E/(K*c),2),o+=Ft(f/(tt*r),2),o+=i*(E/(K*c))*(f/(tt*r)),Math.sqrt(o)}const Fd=75e-6;function Yi(p,T=p.space,{epsilon:F=Fd}={}){p=re(p),T=Vt.get(T);let K=p.coords;return T!==p.space&&(K=T.from(p)),T.inGamut(K,{epsilon:F})}function eo(p){return{space:p.space,coords:p.coords.slice(),alpha:p.alpha}}function pi(p,{method:T=Je.gamut_mapping,space:F=p.space}={}){if(ho(arguments[1])&&(F=arguments[1]),F=Vt.get(F),Yi(p,F,{epsilon:0}))return re(p);let K=ze(p,F);if(T!=="clip"&&!Yi(p,F)){let tt=pi(eo(K),{method:"clip",space:F});if(Ir(p,tt)>2){let it=Vt.resolveCoord(T),rt=it.space,st=it.id,ht=ze(K,rt),pt=(it.range||it.refRange)[0],ft=.01,_=pt,et=Ge(ht,st);for(;et-_>ft;){let G=eo(ht);G=pi(G,{space:F,method:"clip"}),Ir(ht,G)-2<ft?_=Ge(ht,st):et=Ge(ht,st),ci(ht,st,(_+et)/2)}K=ze(ht,F)}else K=tt}if(T==="clip"||!Yi(K,F,{epsilon:0})){let tt=Object.values(F.coords).map(it=>it.range||[]);K.coords=K.coords.map((it,rt)=>{let[st,ht]=tt[rt];return st!==void 0&&(it=Math.max(st,it)),ht!==void 0&&(it=Math.min(it,ht)),it})}return F!==p.space&&(K=ze(K,p.space)),p.coords=K.coords,p}pi.returns="color";function ze(p,T,{inGamut:F}={}){p=re(p),T=Vt.get(T);let K=T.from(p),tt={space:T,coords:K,alpha:p.alpha};return F&&(tt=pi(tt)),tt}ze.returns="color";function Yo(p,it={}){var rt=it,{precision:T=Je.precision,format:F="default",inGamut:K=!0}=rt,tt=Te(rt,["precision","format","inGamut"]);var pt,ft,_;let st;p=re(p);let ht=F;F=(ft=(pt=p.space.getFormat(F))!=null?pt:p.space.getFormat("default"))!=null?ft:Vt.DEFAULT_FORMAT,K||(K=F.toGamut);let ct=p.coords;if(ct=ct.map(et=>et||0),K&&!Yi(p)&&(ct=pi(eo(p),K===!0?void 0:K).coords),F.type==="custom")if(tt.precision=T,F.serialize)st=F.serialize(ct,p.alpha,tt);else throw new TypeError(`format ${ht} can only be used to parse colors, not for serialization`);else{let et=F.name||"color";F.serializeCoords?ct=F.serializeCoords(ct,T):T!==null&&(ct=ct.map(U=>Go(U,T)));let G=[...ct];if(et==="color"){let U=F.id||((_=F.ids)==null?void 0:_[0])||p.space.id;G.unshift(U)}let B=p.alpha;T!==null&&(B=Go(B,T));let X=p.alpha<1&&!F.noAlpha?`${F.commas?",":" /"} ${B}`:"";st=`${et}(${G.join(F.commas?", ":" ")}${X})`}return st}const Gd=[[.6369580483012914,.14461690358620832,.1688809751641721],[.2627002120112671,.6779980715188708,.05930171646986196],[0,.028072693049087428,1.060985057710791]],Wd=[[1.716651187971268,-.355670783776392,-.25336628137366],[-.666684351832489,1.616481236634939,.0157685458139111],[.017639857445311,-.042770613257809,.942103121235474]];var or=new Oe({id:"rec2020-linear",name:"Linear REC.2020",white:"D65",toXYZ_M:Gd,fromXYZ_M:Wd,formats:{color:{}}});const bo=1.09929682680944,cs=.018053968510807;var Sl=new Oe({id:"rec2020",name:"REC.2020",base:or,toBase(p){return p.map(function(T){return T<cs*4.5?T/4.5:Math.pow((T+bo-1)/bo,1/.45)})},fromBase(p){return p.map(function(T){return T>=cs?bo*Math.pow(T,.45)-(bo-1):4.5*T})},formats:{color:{}}});const Hd=[[.4865709486482162,.26566769316909306,.1982172852343625],[.2289745640697488,.6917385218365064,.079286914093745],[0,.04511338185890264,1.043944368900976]],Xd=[[2.493496911941425,-.9313836179191239,-.40271078445071684],[-.8294889695615747,1.7626640603183463,.023624685841943577],[.03584583024378447,-.07617238926804182,.9568845240076872]];var wl=new Oe({id:"p3-linear",name:"Linear P3",white:"D65",toXYZ_M:Hd,fromXYZ_M:Xd});const Yd=[[.41239079926595934,.357584339383878,.1804807884018343],[.21263900587151027,.715168678767756,.07219231536073371],[.01933081871559182,.11919477979462598,.9505321522496607]],Ud=[[3.2409699419045226,-1.537383177570094,-.4986107602930034],[-.9692436362808796,1.8759675015077202,.04155505740717559],[.05563007969699366,-.20397695888897652,1.0569715142428786]];var Ml=new Oe({id:"srgb-linear",name:"Linear sRGB",white:"D65",toXYZ_M:Yd,fromXYZ_M:Ud,formats:{color:{}}}),ps={aliceblue:[240/255,248/255,1],antiquewhite:[250/255,235/255,215/255],aqua:[0,1,1],aquamarine:[127/255,1,212/255],azure:[240/255,1,1],beige:[245/255,245/255,220/255],bisque:[1,228/255,196/255],black:[0,0,0],blanchedalmond:[1,235/255,205/255],blue:[0,0,1],blueviolet:[138/255,43/255,226/255],brown:[165/255,42/255,42/255],burlywood:[222/255,184/255,135/255],cadetblue:[95/255,158/255,160/255],chartreuse:[127/255,1,0],chocolate:[210/255,105/255,30/255],coral:[1,127/255,80/255],cornflowerblue:[100/255,149/255,237/255],cornsilk:[1,248/255,220/255],crimson:[220/255,20/255,60/255],cyan:[0,1,1],darkblue:[0,0,139/255],darkcyan:[0,139/255,139/255],darkgoldenrod:[184/255,134/255,11/255],darkgray:[169/255,169/255,169/255],darkgreen:[0,100/255,0],darkgrey:[169/255,169/255,169/255],darkkhaki:[189/255,183/255,107/255],darkmagenta:[139/255,0,139/255],darkolivegreen:[85/255,107/255,47/255],darkorange:[1,140/255,0],darkorchid:[153/255,50/255,204/255],darkred:[139/255,0,0],darksalmon:[233/255,150/255,122/255],darkseagreen:[143/255,188/255,143/255],darkslateblue:[72/255,61/255,139/255],darkslategray:[47/255,79/255,79/255],darkslategrey:[47/255,79/255,79/255],darkturquoise:[0,206/255,209/255],darkviolet:[148/255,0,211/255],deeppink:[1,20/255,147/255],deepskyblue:[0,191/255,1],dimgray:[105/255,105/255,105/255],dimgrey:[105/255,105/255,105/255],dodgerblue:[30/255,144/255,1],firebrick:[178/255,34/255,34/255],floralwhite:[1,250/255,240/255],forestgreen:[34/255,139/255,34/255],fuchsia:[1,0,1],gainsboro:[220/255,220/255,220/255],ghostwhite:[248/255,248/255,1],gold:[1,215/255,0],goldenrod:[218/255,165/255,32/255],gray:[128/255,128/255,128/255],green:[0,128/255,0],greenyellow:[173/255,1,47/255],grey:[128/255,128/255,128/255],honeydew:[240/255,1,240/255],hotpink:[1,105/255,180/255],indianred:[205/255,92/255,92/255],indigo:[75/255,0,130/255],ivory:[1,1,240/255],khaki:[240/255,230/255,140/255],lavender:[230/255,230/255,250/255],lavenderblush:[1,240/255,245/255],lawngreen:[124/255,252/255,0],lemonchiffon:[1,250/255,205/255],lightblue:[173/255,216/255,230/255],lightcoral:[240/255,128/255,128/255],lightcyan:[224/255,1,1],lightgoldenrodyellow:[250/255,250/255,210/255],lightgray:[211/255,211/255,211/255],lightgreen:[144/255,238/255,144/255],lightgrey:[211/255,211/255,211/255],lightpink:[1,182/255,193/255],lightsalmon:[1,160/255,122/255],lightseagreen:[32/255,178/255,170/255],lightskyblue:[135/255,206/255,250/255],lightslategray:[119/255,136/255,153/255],lightslategrey:[119/255,136/255,153/255],lightsteelblue:[176/255,196/255,222/255],lightyellow:[1,1,224/255],lime:[0,1,0],limegreen:[50/255,205/255,50/255],linen:[250/255,240/255,230/255],magenta:[1,0,1],maroon:[128/255,0,0],mediumaquamarine:[102/255,205/255,170/255],mediumblue:[0,0,205/255],mediumorchid:[186/255,85/255,211/255],mediumpurple:[147/255,112/255,219/255],mediumseagreen:[60/255,179/255,113/255],mediumslateblue:[123/255,104/255,238/255],mediumspringgreen:[0,250/255,154/255],mediumturquoise:[72/255,209/255,204/255],mediumvioletred:[199/255,21/255,133/255],midnightblue:[25/255,25/255,112/255],mintcream:[245/255,1,250/255],mistyrose:[1,228/255,225/255],moccasin:[1,228/255,181/255],navajowhite:[1,222/255,173/255],navy:[0,0,128/255],oldlace:[253/255,245/255,230/255],olive:[128/255,128/255,0],olivedrab:[107/255,142/255,35/255],orange:[1,165/255,0],orangered:[1,69/255,0],orchid:[218/255,112/255,214/255],palegoldenrod:[238/255,232/255,170/255],palegreen:[152/255,251/255,152/255],paleturquoise:[175/255,238/255,238/255],palevioletred:[219/255,112/255,147/255],papayawhip:[1,239/255,213/255],peachpuff:[1,218/255,185/255],peru:[205/255,133/255,63/255],pink:[1,192/255,203/255],plum:[221/255,160/255,221/255],powderblue:[176/255,224/255,230/255],purple:[128/255,0,128/255],rebeccapurple:[102/255,51/255,153/255],red:[1,0,0],rosybrown:[188/255,143/255,143/255],royalblue:[65/255,105/255,225/255],saddlebrown:[139/255,69/255,19/255],salmon:[250/255,128/255,114/255],sandybrown:[244/255,164/255,96/255],seagreen:[46/255,139/255,87/255],seashell:[1,245/255,238/255],sienna:[160/255,82/255,45/255],silver:[192/255,192/255,192/255],skyblue:[135/255,206/255,235/255],slateblue:[106/255,90/255,205/255],slategray:[112/255,128/255,144/255],slategrey:[112/255,128/255,144/255],snow:[1,250/255,250/255],springgreen:[0,1,127/255],steelblue:[70/255,130/255,180/255],tan:[210/255,180/255,140/255],teal:[0,128/255,128/255],thistle:[216/255,191/255,216/255],tomato:[1,99/255,71/255],turquoise:[64/255,224/255,208/255],violet:[238/255,130/255,238/255],wheat:[245/255,222/255,179/255],white:[1,1,1],whitesmoke:[245/255,245/255,245/255],yellow:[1,1,0],yellowgreen:[154/255,205/255,50/255]};let ds=Array(3).fill("<percentage> | <number>[0, 255]"),us=Array(3).fill("<number>[0, 255]");var io=new Oe({id:"srgb",name:"sRGB",base:Ml,fromBase:p=>p.map(T=>{let F=T<0?-1:1,K=T*F;return K>.0031308?F*(1.055*Ft(K,1/2.4)-.055):12.92*T}),toBase:p=>p.map(T=>{let F=T<0?-1:1,K=T*F;return K<.04045?T/12.92:F*Ft((K+.055)/1.055,2.4)}),formats:{rgb:{coords:ds},rgb_number:{name:"rgb",commas:!0,coords:us,noAlpha:!0},color:{},rgba:{coords:ds,commas:!0,lastAlpha:!0},rgba_number:{name:"rgba",commas:!0,coords:us},hex:{type:"custom",toGamut:!0,test:p=>/^#([a-f0-9]{3,4}){1,2}$/i.test(p),parse(p){p.length<=5&&(p=p.replace(/[a-f0-9]/gi,"$&$&"));let T=[];return p.replace(/[a-f0-9]{2}/gi,F=>{T.push(parseInt(F,16)/255)}),{spaceId:"srgb",coords:T.slice(0,3),alpha:T.slice(3)[0]}},serialize:(p,T,{collapse:F=!0}={})=>{T<1&&p.push(T),p=p.map(it=>Math.round(it*255));let K=F&&p.every(it=>it%17===0);return"#"+p.map(it=>K?(it/17).toString(16):it.toString(16).padStart(2,"0")).join("")}},keyword:{type:"custom",test:p=>/^[a-z]+$/i.test(p),parse(p){p=p.toLowerCase();let T={spaceId:"srgb",coords:null,alpha:1};if(p==="transparent"?(T.coords=ps.black,T.alpha=0):T.coords=ps[p],T.coords)return T}}}}),Al=new Oe({id:"p3",name:"P3",base:wl,fromBase:io.fromBase,toBase:io.toBase,formats:{color:{id:"display-p3"}}});Je.display_space=io;if(typeof CSS!="undefined"&&CSS.supports)for(let p of[Ie,Sl,Al]){let T=p.getMinCoords(),K=Yo({space:p,coords:T,alpha:1});if(CSS.supports("color",K)){Je.display_space=p;break}}function Vd(p,K={}){var tt=K,{space:T=Je.display_space}=tt,F=Te(tt,["space"]);let it=Yo(p,F);if(typeof CSS=="undefined"||CSS.supports("color",it)||!Je.display_space)it=new String(it),it.color=p;else{let rt=ze(p,T);it=new String(Yo(rt,F)),it.color=rt}return it}function Tl(p,T,F="lab"){F=Vt.get(F);let K=F.from(p),tt=F.from(T);return Math.sqrt(K.reduce((it,rt,st)=>{let ht=tt[st];return isNaN(rt)||isNaN(ht)?it:it+Ft(ht-rt,2)},0))}function $d(p,T){return p=re(p),T=re(T),p.space===T.space&&p.alpha===T.alpha&&p.coords.every((F,K)=>F===T.coords[K])}function di(p){return Ge(p,[Fe,"y"])}function kl(p,T){ci(p,[Fe,"y"],T)}function Zd(p){Object.defineProperty(p.prototype,"luminance",{get(){return di(this)},set(T){kl(this,T)}})}var Kd=Object.freeze({__proto__:null,getLuminance:di,register:Zd,setLuminance:kl});function qd(p,T){p=re(p),T=re(T);let F=Math.max(di(p),0),K=Math.max(di(T),0);return K>F&&([F,K]=[K,F]),(F+.05)/(K+.05)}const Jd=.56,Qd=.57,tu=.62,eu=.65,fs=.022,iu=1.414,ou=.1,ru=5e-4,nu=1.14,gs=.027,su=1.14;function ms(p){return p>=fs?p:p+Ft(fs-p,iu)}function Mi(p){let T=p<0?-1:1,F=Math.abs(p);return T*Math.pow(F,2.4)}function au(p,T){T=re(T),p=re(p);let F,K,tt,it,rt,st;T=ze(T,"srgb"),[it,rt,st]=T.coords;let ht=Mi(it)*.2126729+Mi(rt)*.7151522+Mi(st)*.072175;p=ze(p,"srgb"),[it,rt,st]=p.coords;let ct=Mi(it)*.2126729+Mi(rt)*.7151522+Mi(st)*.072175,pt=ms(ht),ft=ms(ct),_=ft>pt;return Math.abs(ft-pt)<ru?K=0:_?(F=Ft(ft,Jd)-Ft(pt,Qd),K=F*nu):(F=Ft(ft,eu)-Ft(pt,tu),K=F*su),Math.abs(K)<ou?tt=0:K>0?tt=K-gs:tt=K+gs,tt*100}function lu(p,T){p=re(p),T=re(T);let F=Math.max(di(p),0),K=Math.max(di(T),0);K>F&&([F,K]=[K,F]);let tt=F+K;return tt===0?0:(F-K)/tt}const hu=5e4;function cu(p,T){p=re(p),T=re(T);let F=Math.max(di(p),0),K=Math.max(di(T),0);return K>F&&([F,K]=[K,F]),K===0?hu:(F-K)/K}function pu(p,T){p=re(p),T=re(T);let F=Ge(p,[Ie,"l"]),K=Ge(T,[Ie,"l"]);return Math.abs(F-K)}const du=216/24389,ys=24/116,xo=24389/27;let gr=Xe.D65;var _r=new Vt({id:"lab-d65",name:"Lab D65",coords:{l:{refRange:[0,100],name:"L"},a:{refRange:[-125,125]},b:{refRange:[-125,125]}},white:gr,base:Fe,fromBase(p){let F=p.map((K,tt)=>K/gr[tt]).map(K=>K>du?Math.cbrt(K):(xo*K+16)/116);return[116*F[1]-16,500*(F[0]-F[1]),200*(F[1]-F[2])]},toBase(p){let T=[];return T[1]=(p[0]+16)/116,T[0]=p[1]/500+T[1],T[2]=T[1]-p[2]/200,[T[0]>ys?Math.pow(T[0],3):(116*T[0]-16)/xo,p[0]>8?Math.pow((p[0]+16)/116,3):p[0]/xo,T[2]>ys?Math.pow(T[2],3):(116*T[2]-16)/xo].map((K,tt)=>K*gr[tt])},formats:{"lab-d65":{coords:["<number> | <percentage>","<number> | <percentage>[-1,1]","<number> | <percentage>[-1,1]"]}}});const mr=Math.pow(5,.5)*.5+.5;function uu(p,T){p=re(p),T=re(T);let F=Ge(p,[_r,"l"]),K=Ge(T,[_r,"l"]),tt=Math.abs(Math.pow(F,mr)-Math.pow(K,mr)),it=Math.pow(tt,1/mr)*Math.SQRT2-40;return it<7.5?0:it}var Io=Object.freeze({__proto__:null,contrastAPCA:au,contrastDeltaPhi:uu,contrastLstar:pu,contrastMichelson:lu,contrastWCAG21:qd,contrastWeber:cu});function fu(p,T,F={}){ho(F)&&(F={algorithm:F});let it=F,{algorithm:K}=it,tt=Te(it,["algorithm"]);if(!K){let rt=Object.keys(Io).map(st=>st.replace(/^contrast/,"")).join(", ");throw new TypeError(`contrast() function needs a contrast algorithm. Please specify one of: ${rt}`)}p=re(p),T=re(T);for(let rt in Io)if("contrast"+K.toLowerCase()===rt.toLowerCase())return Io[rt](p,T,tt);throw new TypeError(`Unknown contrast algorithm: ${K}`)}function Pl(p){let[T,F,K]=co(p,Fe),tt=T+15*F+3*K;return[4*T/tt,9*F/tt]}function Ll(p){let[T,F,K]=co(p,Fe),tt=T+F+K;return[T/tt,F/tt]}function gu(p){Object.defineProperty(p.prototype,"uv",{get(){return Pl(this)}}),Object.defineProperty(p.prototype,"xy",{get(){return Ll(this)}})}var mu=Object.freeze({__proto__:null,register:gu,uv:Pl,xy:Ll});function yu(p,T){return Tl(p,T,"lab")}const vu=Math.PI,vs=vu/180;function bu(p,T,{l:F=2,c:K=1}={}){let[tt,it,rt]=Ie.from(p),[,st,ht]=to.from(Ie,[tt,it,rt]),[ct,pt,ft]=Ie.from(T),_=to.from(Ie,[ct,pt,ft])[1];st<0&&(st=0),_<0&&(_=0);let et=tt-ct,G=st-_,B=it-pt,X=rt-ft,U=Ft(B,2)+Ft(X,2)-Ft(G,2),$=.511;tt>=16&&($=.040975*tt/(1+.01765*tt));let Z=.0638*st/(1+.0131*st)+.638,V;Number.isNaN(ht)&&(ht=0),ht>=164&&ht<=345?V=.56+Math.abs(.2*Math.cos((ht+168)*vs)):V=.36+Math.abs(.4*Math.cos((ht+35)*vs));let z=Math.pow(st,4),I=Math.sqrt(z/(z+1900)),E=Z*(I*V+1-I),M=Ft(et/(F*$),2);return M+=Ft(G/(K*Z),2),M+=U/Ft(E,2),Math.sqrt(M)}const bs=203;var Tn=new Vt({id:"xyz-abs-d65",name:"Absolute XYZ D65",coords:{x:{refRange:[0,9504.7],name:"Xa"},y:{refRange:[0,1e4],name:"Ya"},z:{refRange:[0,10888.3],name:"Za"}},base:Fe,fromBase(p){return p.map(T=>Math.max(T*bs,0))},toBase(p){return p.map(T=>Math.max(T/bs,0))}});const Co=1.15,So=.66,xs=2610/Ft(2,14),xu=Ft(2,14)/2610,Cs=3424/Ft(2,12),Ss=2413/Ft(2,7),ws=2392/Ft(2,7),Cu=1.7*2523/Ft(2,5),Ms=Ft(2,5)/(1.7*2523),wo=-.56,yr=16295499532821565e-27,Su=[[.41478972,.579999,.014648],[-.20151,1.120649,.0531008],[-.0166008,.2648,.6684799]],wu=[[1.9242264357876067,-1.0047923125953657,.037651404030618],[.35031676209499907,.7264811939316552,-.06538442294808501],[-.09098281098284752,-.3127282905230739,1.5227665613052603]],Mu=[[.5,.5,0],[3.524,-4.066708,.542708],[.199076,1.096799,-1.295875]],Au=[[1,.1386050432715393,.05804731615611886],[.9999999999999999,-.1386050432715393,-.05804731615611886],[.9999999999999998,-.09601924202631895,-.8118918960560388]];var El=new Vt({id:"jzazbz",name:"Jzazbz",coords:{jz:{refRange:[0,1],name:"Jz"},az:{refRange:[-.5,.5]},bz:{refRange:[-.5,.5]}},base:Tn,fromBase(p){let[T,F,K]=p,tt=Co*T-(Co-1)*K,it=So*F-(So-1)*T,st=ge(Su,[tt,it,K]).map(function(_){let et=Cs+Ss*Ft(_/1e4,xs),G=1+ws*Ft(_/1e4,xs);return Ft(et/G,Cu)}),[ht,ct,pt]=ge(Mu,st);return[(1+wo)*ht/(1+wo*ht)-yr,ct,pt]},toBase(p){let[T,F,K]=p,tt=(T+yr)/(1+wo-wo*(T+yr)),rt=ge(Au,[tt,F,K]).map(function(_){let et=Cs-Ft(_,Ms),G=ws*Ft(_,Ms)-Ss;return 1e4*Ft(et/G,xu)}),[st,ht,ct]=ge(wu,rt),pt=(st+(Co-1)*ct)/Co,ft=(ht+(So-1)*pt)/So;return[pt,ft,ct]},formats:{color:{}}}),Nr=new Vt({id:"jzczhz",name:"JzCzHz",coords:{jz:{refRange:[0,1],name:"Jz"},cz:{refRange:[0,1],name:"Chroma"},hz:{refRange:[0,360],type:"angle",name:"Hue"}},base:El,fromBase(p){let[T,F,K]=p,tt;const it=2e-4;return Math.abs(F)<it&&Math.abs(K)<it?tt=NaN:tt=Math.atan2(K,F)*180/Math.PI,[T,Math.sqrt(Ft(F,2)+Ft(K,2)),ir(tt)]},toBase(p){return[p[0],p[1]*Math.cos(p[2]*Math.PI/180),p[1]*Math.sin(p[2]*Math.PI/180)]},formats:{color:{}}});function Tu(p,T){let[F,K,tt]=Nr.from(p),[it,rt,st]=Nr.from(T),ht=F-it,ct=K-rt;Number.isNaN(tt)&&Number.isNaN(st)?(tt=0,st=0):Number.isNaN(tt)?tt=st:Number.isNaN(st)&&(st=tt);let pt=tt-st,ft=2*Math.sqrt(K*rt)*Math.sin(pt/2*(Math.PI/180));return Math.sqrt(Ft(ht,2)+Ft(ct,2)+Ft(ft,2))}const Ol=3424/4096,Dl=2413/128,jl=2392/128,As=2610/16384,ku=2523/32,Pu=16384/2610,Ts=32/2523,Lu=[[.3592,.6976,-.0358],[-.1922,1.1004,.0755],[.007,.0749,.8434]],Eu=[[2048/4096,2048/4096,0],[6610/4096,-13613/4096,7003/4096],[17933/4096,-17390/4096,-543/4096]],Ou=[[.9999888965628402,.008605050147287059,.11103437159861648],[1.00001110343716,-.008605050147287059,-.11103437159861648],[1.0000320633910054,.56004913547279,-.3206339100541203]],Du=[[2.0701800566956137,-1.326456876103021,.20661600684785517],[.3649882500326575,.6804673628522352,-.04542175307585323],[-.04959554223893211,-.04942116118675749,1.1879959417328034]];var Br=new Vt({id:"ictcp",name:"ICTCP",coords:{i:{refRange:[0,1],name:"I"},ct:{refRange:[-.5,.5],name:"CT"},cp:{refRange:[-.5,.5],name:"CP"}},base:Tn,fromBase(p){let T=ge(Lu,p);return ju(T)},toBase(p){let T=Iu(p);return ge(Du,T)},formats:{color:{}}});function ju(p){let T=p.map(function(F){let K=Ol+Dl*Ft(F/1e4,As),tt=1+jl*Ft(F/1e4,As);return Ft(K/tt,ku)});return ge(Eu,T)}function Iu(p){return ge(Ou,p).map(function(K){let tt=Math.max(Ft(K,Ts)-Ol,0),it=Dl-jl*Ft(K,Ts);return 1e4*Ft(tt/it,Pu)})}function _u(p,T){let[F,K,tt]=Br.from(p),[it,rt,st]=Br.from(T);return 720*Math.sqrt(Ft(F-it,2)+.25*Ft(K-rt,2)+Ft(tt-st,2))}const Nu=[[.8190224432164319,.3619062562801221,-.12887378261216414],[.0329836671980271,.9292868468965546,.03614466816999844],[.048177199566046255,.26423952494422764,.6335478258136937]],Bu=[[1.2268798733741557,-.5578149965554813,.28139105017721583],[-.04057576262431372,1.1122868293970594,-.07171106666151701],[-.07637294974672142,-.4214933239627914,1.5869240244272418]],Ru=[[.2104542553,.793617785,-.0040720468],[1.9779984951,-2.428592205,.4505937099],[.0259040371,.7827717662,-.808675766]],zu=[[.9999999984505198,.39633779217376786,.2158037580607588],[1.0000000088817609,-.10556134232365635,-.06385417477170591],[1.0000000546724108,-.08948418209496575,-1.2914855378640917]];var Uo=new Vt({id:"oklab",name:"Oklab",coords:{l:{refRange:[0,1],name:"L"},a:{refRange:[-.4,.4]},b:{refRange:[-.4,.4]}},white:"D65",base:Fe,fromBase(p){let F=ge(Nu,p).map(K=>Math.cbrt(K));return ge(Ru,F)},toBase(p){let F=ge(zu,p).map(K=>Ft(K,3));return ge(Bu,F)},formats:{oklab:{coords:["<percentage> | <number>","<number> | <percentage>[-1,1]","<number> | <percentage>[-1,1]"]}}});function Fu(p,T){let[F,K,tt]=Uo.from(p),[it,rt,st]=Uo.from(T),ht=F-it,ct=K-rt,pt=tt-st;return Math.sqrt(Ft(ht,2)+Ft(ct,2)+Ft(pt,2))}var Vo={deltaE76:yu,deltaECMC:bu,deltaE2000:Ir,deltaEJz:Tu,deltaEITP:_u,deltaEOK:Fu};function Xi(p,T,F={}){ho(F)&&(F={method:F});let it=F,{method:K=Je.deltaE}=it,tt=Te(it,["method"]);p=re(p),T=re(T);for(let rt in Vo)if("deltae"+K.toLowerCase()===rt.toLowerCase())return Vo[rt](p,T,tt);throw new TypeError(`Unknown deltaE method: ${K}`)}function Gu(p,T=.25){let K=[Vt.get("oklch","lch"),"l"];return ci(p,K,tt=>tt*(1+T))}function Wu(p,T=.25){let K=[Vt.get("oklch","lch"),"l"];return ci(p,K,tt=>tt*(1-T))}var Hu=Object.freeze({__proto__:null,darken:Wu,lighten:Gu});function Il(p,T,F=.5,K={}){[p,T]=[re(p),re(T)],ai(F)==="object"&&([F,K]=[.5,F]);let{space:tt,outputSpace:it,premultiplied:rt}=K;return po(p,T,{space:tt,outputSpace:it,premultiplied:rt})(F)}function _l(p,T,F={}){let K;kn(p)&&([K,F]=[p,T],[p,T]=K.rangeArgs.colors);let _=F,{maxDeltaE:tt,deltaEMethod:it,steps:rt=2,maxSteps:st=1e3}=_,ht=Te(_,["maxDeltaE","deltaEMethod","steps","maxSteps"]);K||([p,T]=[re(p),re(T)],K=po(p,T,ht));let ct=Xi(p,T),pt=tt>0?Math.max(rt,Math.ceil(ct/tt)+1):rt,ft=[];if(st!==void 0&&(pt=Math.min(pt,st)),pt===1)ft=[{p:.5,color:K(.5)}];else{let et=1/(pt-1);ft=Array.from({length:pt},(G,B)=>{let X=B*et;return{p:X,color:K(X)}})}if(tt>0){let et=ft.reduce((G,B,X)=>{if(X===0)return 0;let U=Xi(B.color,ft[X-1].color,it);return Math.max(G,U)},0);for(;et>tt;){et=0;for(let G=1;G<ft.length&&ft.length<st;G++){let B=ft[G-1],X=ft[G],U=(X.p+B.p)/2,$=K(U);et=Math.max(et,Xi($,B.color),Xi($,X.color)),ft.splice(G,0,{p:U,color:K(U)}),G++}}}return ft=ft.map(et=>et.color),ft}function po(p,T,F={}){if(kn(p)){let[ht,ct]=[p,T];return po(...ht.rangeArgs.colors,kt(kt({},ht.rangeArgs.options),ct))}let{space:K,outputSpace:tt,progression:it,premultiplied:rt}=F;p=re(p),T=re(T),p=eo(p),T=eo(T);let st={colors:[p,T],options:F};if(K?K=Vt.get(K):K=Vt.registry[Je.interpolationSpace]||p.space,tt=tt?Vt.get(tt):K,p=ze(p,K),T=ze(T,K),p=pi(p),T=pi(T),K.coords.h&&K.coords.h.type==="angle"){let ht=F.hue=F.hue||"shorter",ct=[K,"h"],[pt,ft]=[Ge(p,ct),Ge(T,ct)];[pt,ft]=zd(ht,[pt,ft]),ci(p,ct,pt),ci(T,ct,ft)}return rt&&(p.coords=p.coords.map(ht=>ht*p.alpha),T.coords=T.coords.map(ht=>ht*T.alpha)),Object.assign(ht=>{ht=it?it(ht):ht;let ct=p.coords.map((_,et)=>{let G=T.coords[et];return Wo(_,G,ht)}),pt=Wo(p.alpha,T.alpha,ht),ft={space:K,coords:ct,alpha:pt};return rt&&(ft.coords=ft.coords.map(_=>_/pt)),tt!==K&&(ft=ze(ft,tt)),ft},{rangeArgs:st})}function kn(p){return ai(p)==="function"&&!!p.rangeArgs}Je.interpolationSpace="lab";function Xu(p){p.defineFunction("mix",Il,{returns:"color"}),p.defineFunction("range",po,{returns:"function<color>"}),p.defineFunction("steps",_l,{returns:"array<color>"})}var Yu=Object.freeze({__proto__:null,isRange:kn,mix:Il,range:po,register:Xu,steps:_l}),Nl=new Vt({id:"hsl",name:"HSL",coords:{h:{refRange:[0,360],type:"angle",name:"Hue"},s:{range:[0,100],name:"Saturation"},l:{range:[0,100],name:"Lightness"}},base:io,fromBase:p=>{let T=Math.max(...p),F=Math.min(...p),[K,tt,it]=p,[rt,st,ht]=[NaN,0,(F+T)/2],ct=T-F;if(ct!==0){switch(st=ht===0||ht===1?0:(T-ht)/Math.min(ht,1-ht),T){case K:rt=(tt-it)/ct+(tt<it?6:0);break;case tt:rt=(it-K)/ct+2;break;case it:rt=(K-tt)/ct+4}rt=rt*60}return[rt,st*100,ht*100]},toBase:p=>{let[T,F,K]=p;T=T%360,T<0&&(T+=360),F/=100,K/=100;function tt(it){let rt=(it+T/30)%12,st=F*Math.min(K,1-K);return K-st*Math.max(-1,Math.min(rt-3,9-rt,1))}return[tt(0),tt(8),tt(4)]},formats:{hsl:{toGamut:!0,coords:["<number> | <angle>","<percentage>","<percentage>"]},hsla:{coords:["<number> | <angle>","<percentage>","<percentage>"],commas:!0,lastAlpha:!0}}}),Bl=new Vt({id:"hsv",name:"HSV",coords:{h:{refRange:[0,360],type:"angle",name:"Hue"},s:{range:[0,100],name:"Saturation"},v:{range:[0,100],name:"Value"}},base:Nl,fromBase(p){let[T,F,K]=p;F/=100,K/=100;let tt=K+F*Math.min(K,1-K);return[T,tt===0?0:200*(1-K/tt),100*tt]},toBase(p){let[T,F,K]=p;F/=100,K/=100;let tt=K*(1-F/2);return[T,tt===0||tt===1?0:(K-tt)/Math.min(tt,1-tt)*100,tt*100]},formats:{color:{toGamut:!0}}}),Uu=new Vt({id:"hwb",name:"HWB",coords:{h:{refRange:[0,360],type:"angle",name:"Hue"},w:{range:[0,100],name:"Whiteness"},b:{range:[0,100],name:"Blackness"}},base:Bl,fromBase(p){let[T,F,K]=p;return[T,K*(100-F)/100,100-K]},toBase(p){let[T,F,K]=p;F/=100,K/=100;let tt=F+K;if(tt>=1){let st=F/tt;return[T,0,st*100]}let it=1-K,rt=it===0?0:1-F/it;return[T,rt*100,it*100]},formats:{hwb:{toGamut:!0,coords:["<number> | <angle>","<percentage>","<percentage>"]}}});const Vu=[[.5766690429101305,.1855582379065463,.1882286462349947],[.29734497525053605,.6273635662554661,.07529145849399788],[.02703136138641234,.07068885253582723,.9913375368376388]],$u=[[2.0415879038107465,-.5650069742788596,-.34473135077832956],[-.9692436362808795,1.8759675015077202,.04155505740717557],[.013444280632031142,-.11836239223101838,1.0151749943912054]];var Rl=new Oe({id:"a98rgb-linear",name:"Linear Adobe® 98 RGB compatible",white:"D65",toXYZ_M:Vu,fromXYZ_M:$u}),Zu=new Oe({id:"a98rgb",name:"Adobe® 98 RGB compatible",base:Rl,toBase:p=>p.map(T=>Math.pow(Math.abs(T),563/256)*Math.sign(T)),fromBase:p=>p.map(T=>Math.pow(Math.abs(T),256/563)*Math.sign(T)),formats:{color:{id:"a98-rgb"}}});const Ku=[[.7977604896723027,.13518583717574031,.0313493495815248],[.2880711282292934,.7118432178101014,8565396060525902e-20],[0,0,.8251046025104601]],qu=[[1.3457989731028281,-.25558010007997534,-.05110628506753401],[-.5446224939028347,1.5082327413132781,.02053603239147973],[0,0,1.2119675456389454]];var zl=new Oe({id:"prophoto-linear",name:"Linear ProPhoto",white:"D50",base:An,toXYZ_M:Ku,fromXYZ_M:qu});const Ju=1/512,Qu=16/512;var tf=new Oe({id:"prophoto",name:"ProPhoto",base:zl,toBase(p){return p.map(T=>T<Qu?T/16:Ft(T,1.8))},fromBase(p){return p.map(T=>T>=Ju?Ft(T,1/1.8):16*T)},formats:{color:{id:"prophoto-rgb"}}}),ef=new Vt({id:"oklch",name:"Oklch",coords:{l:{refRange:[0,1],name:"Lightness"},c:{refRange:[0,.4],name:"Chroma"},h:{refRange:[0,360],type:"angle",name:"Hue"}},white:"D65",base:Uo,fromBase(p){let[T,F,K]=p,tt;const it=2e-4;return Math.abs(F)<it&&Math.abs(K)<it?tt=NaN:tt=Math.atan2(K,F)*180/Math.PI,[T,Math.sqrt(Ft(F,2)+Ft(K,2)),ir(tt)]},toBase(p){let[T,F,K]=p,tt,it;return isNaN(K)?(tt=0,it=0):(tt=F*Math.cos(K*Math.PI/180),it=F*Math.sin(K*Math.PI/180)),[T,tt,it]},formats:{oklch:{coords:["<number> | <percentage>","<number> | <percentage>[0,1]","<number> | <angle>"]}}});const ks=203,Ps=2610/Ft(2,14),of=Ft(2,14)/2610,rf=2523/Ft(2,5),Ls=Ft(2,5)/2523,Es=3424/Ft(2,12),Os=2413/Ft(2,7),Ds=2392/Ft(2,7);var nf=new Oe({id:"rec2100pq",name:"REC.2100-PQ",base:or,toBase(p){return p.map(function(T){return Ft(Math.max(Ft(T,Ls)-Es,0)/(Os-Ds*Ft(T,Ls)),of)*1e4/ks})},fromBase(p){return p.map(function(T){let F=Math.max(T*ks/1e4,0),K=Es+Os*Ft(F,Ps),tt=1+Ds*Ft(F,Ps);return Ft(K/tt,rf)})},formats:{color:{id:"rec2100-pq"}}});const js=.17883277,Is=.28466892,_s=.55991073,vr=3.7743;var sf=new Oe({id:"rec2100hlg",cssid:"rec2100-hlg",name:"REC.2100-HLG",referred:"scene",base:or,toBase(p){return p.map(function(T){return T<=.5?Ft(T,2)/3*vr:(Math.exp((T-_s)/js)+Is)/12*vr})},fromBase(p){return p.map(function(T){return T/=vr,T<=1/12?Math.sqrt(3*T):js*Math.log(12*T-Is)+_s})},formats:{color:{id:"rec2100-hlg"}}});const Fl={};hi.add("chromatic-adaptation-start",p=>{p.options.method&&(p.M=Gl(p.W1,p.W2,p.options.method))});hi.add("chromatic-adaptation-end",p=>{p.M||(p.M=Gl(p.W1,p.W2,p.options.method))});function rr({id:p,toCone_M:T,fromCone_M:F}){Fl[p]=arguments[0]}function Gl(p,T,F="Bradford"){let K=Fl[F],[tt,it,rt]=ge(K.toCone_M,p),[st,ht,ct]=ge(K.toCone_M,T),pt=[[st/tt,0,0],[0,ht/it,0],[0,0,ct/rt]],ft=ge(pt,K.toCone_M);return ge(K.fromCone_M,ft)}rr({id:"von Kries",toCone_M:[[.40024,.7076,-.08081],[-.2263,1.16532,.0457],[0,0,.91822]],fromCone_M:[[1.8599364,-1.1293816,.2198974],[.3611914,.6388125,-64e-7],[0,0,1.0890636]]});rr({id:"Bradford",toCone_M:[[.8951,.2664,-.1614],[-.7502,1.7135,.0367],[.0389,-.0685,1.0296]],fromCone_M:[[.9869929,-.1470543,.1599627],[.4323053,.5183603,.0492912],[-.0085287,.0400428,.9684867]]});rr({id:"CAT02",toCone_M:[[.7328,.4296,-.1624],[-.7036,1.6975,.0061],[.003,.0136,.9834]],fromCone_M:[[1.0961238,-.278869,.1827452],[.454369,.4735332,.0720978],[-.0096276,-.005698,1.0153256]]});rr({id:"CAT16",toCone_M:[[.401288,.650173,-.051461],[-.250268,1.204414,.045854],[-.002079,.048952,.953127]],fromCone_M:[[1.862067855087233,-1.011254630531685,.1491867754444518],[.3875265432361372,.6214474419314753,-.008973985167612518],[-.01584149884933386,-.03412293802851557,1.04996443687785]]});Object.assign(Xe,{A:[1.0985,1,.35585],C:[.98074,1,1.18232],D55:[.95682,1,.92149],D75:[.94972,1,1.22638],E:[1,1,1],F2:[.99186,1,.67393],F7:[.95041,1,1.08747],F11:[1.00962,1,.6435]});Xe.ACES=[.32168/.33767,1,(1-.32168-.33767)/.33767];const af=[[.6624541811085053,.13400420645643313,.1561876870049078],[.27222871678091454,.6740817658111484,.05368951740793705],[-.005574649490394108,.004060733528982826,1.0103391003129971]],lf=[[1.6410233796943257,-.32480329418479,-.23642469523761225],[-.6636628587229829,1.6153315916573379,.016756347685530137],[.011721894328375376,-.008284441996237409,.9883948585390215]];var Wl=new Oe({id:"acescg",name:"ACEScg",coords:{r:{range:[0,65504],name:"Red"},g:{range:[0,65504],name:"Green"},b:{range:[0,65504],name:"Blue"}},referred:"scene",white:Xe.ACES,toXYZ_M:af,fromXYZ_M:lf,formats:{color:{}}});const Mo=Ft(2,-16),br=-.35828683,Ao=(Math.log2(65504)+9.72)/17.52;var hf=new Oe({id:"acescc",name:"ACEScc",coords:{r:{range:[br,Ao],name:"Red"},g:{range:[br,Ao],name:"Green"},b:{range:[br,Ao],name:"Blue"}},referred:"scene",base:Wl,toBase(p){const T=-.3013698630136986;return p.map(function(F){return F<=T?(Ft(2,F*17.52-9.72)-Mo)*2:F<Ao?Ft(2,F*17.52-9.72):65504})},fromBase(p){return p.map(function(T){return T<=0?(Math.log2(Mo)+9.72)/17.52:T<Mo?(Math.log2(Mo+T*.5)+9.72)/17.52:(Math.log2(T)+9.72)/17.52})},formats:{color:{}}}),Ns=Object.freeze({__proto__:null,A98RGB:Zu,A98RGB_Linear:Rl,ACEScc:hf,ACEScg:Wl,HSL:Nl,HSV:Bl,HWB:Uu,ICTCP:Br,JzCzHz:Nr,Jzazbz:El,LCH:to,Lab:Ie,Lab_D65:_r,OKLCH:ef,OKLab:Uo,P3:Al,P3_Linear:wl,ProPhoto:tf,ProPhoto_Linear:zl,REC_2020:Sl,REC_2020_Linear:or,REC_2100_HLG:sf,REC_2100_PQ:nf,XYZ_ABS_D65:Tn,XYZ_D50:An,XYZ_D65:Fe,sRGB:io,sRGB_Linear:Ml});class ee{constructor(...T){let F;T.length===1&&(F=re(T[0]));let K,tt,it;F?(K=F.space||F.spaceId,tt=F.coords,it=F.alpha):[K,tt,it]=T,Object.defineProperty(this,"space",{value:Vt.get(K),writable:!1,enumerable:!0,configurable:!0}),this.coords=tt?tt.slice():[0,0,0],this.alpha=it<1?it:1;for(let rt=0;rt<this.coords.length;rt++)this.coords[rt]==="NaN"&&(this.coords[rt]=NaN);for(let rt in this.space.coords)Object.defineProperty(this,rt,{get:()=>this.get(rt),set:st=>this.set(rt,st)})}get spaceId(){return this.space.id}clone(){return new ee(this.space,this.coords,this.alpha)}toJSON(){return{spaceId:this.spaceId,coords:this.coords,alpha:this.alpha}}display(...T){let F=Vd(this,...T);return F.color=new ee(F.color),F}static get(T,...F){return T instanceof ee?T:new ee(T,...F)}static defineFunction(T,F,K=F){let{instance:tt=!0,returns:it}=K,rt=function(...st){let ht=F(...st);if(it==="color")ht=ee.get(ht);else if(it==="function<color>"){let ct=ht;ht=function(...pt){let ft=ct(...pt);return ee.get(ft)},Object.assign(ht,ct)}else it==="array<color>"&&(ht=ht.map(ct=>ee.get(ct)));return ht};T in ee||(ee[T]=rt),tt&&(ee.prototype[T]=function(...st){return rt(this,...st)})}static defineFunctions(T){for(let F in T)ee.defineFunction(F,T[F],T[F])}static extend(T){if(T.register)T.register(ee);else for(let F in T)ee.defineFunction(F,T[F])}}ee.defineFunctions({get:Ge,getAll:co,set:ci,setAll:Cl,to:ze,equals:$d,inGamut:Yi,toGamut:pi,distance:Tl,toString:Yo});Object.assign(ee,{util:Id,hooks:hi,WHITES:Xe,Space:Vt,spaces:Vt.registry,parse:xl,defaults:Je});for(let p of Object.keys(Ns))Vt.register(Ns[p]);for(let p in Vt.registry)Rr(p,Vt.registry[p]);hi.add("colorspace-init-end",p=>{var T;Rr(p.id,p),(T=p.aliases)==null||T.forEach(F=>{Rr(F,p)})});function Rr(p,T){Object.values(T.coords).map(K=>K.name);let F=p.replace(/-/g,"_");Object.defineProperty(ee.prototype,F,{get(){let K=this.getAll(p);return typeof Proxy=="undefined"?K:new Proxy(K,{has:(tt,it)=>{try{return Vt.resolveCoord([T,it]),!0}catch(rt){}return Reflect.has(tt,it)},get:(tt,it,rt)=>{if(it&&typeof it!="symbol"&&!(it in tt)){let{index:st}=Vt.resolveCoord([T,it]);if(st>=0)return tt[st]}return Reflect.get(tt,it,rt)},set:(tt,it,rt,st)=>{if(it&&typeof it!="symbol"&&!(it in tt)||it>=0){let{index:ht}=Vt.resolveCoord([T,it]);if(ht>=0)return tt[ht]=rt,this.setAll(p,tt),!0}return Reflect.set(tt,it,rt,st)}})},set(K){this.setAll(p,K)},configurable:!0,enumerable:!0})}ee.extend(Vo);ee.extend({deltaE:Xi});Object.assign(ee,{deltaEMethods:Vo});ee.extend(Hu);ee.extend({contrast:fu});ee.extend(mu);ee.extend(Kd);ee.extend(Yu);ee.extend(Io);const cf=.15,Ye=p=>typeof p=="string"?new ee(p):p,ei=p=>p.toString({format:"hex"}),Hl=(...p)=>{const T=p.map(Ye);if(T.length<2)return()=>ei(T[0]);const K=T.slice(0,-1).map((tt,it)=>[tt,T[it+1]]).map(([tt,it])=>{const rt=ee.range(tt,it,{outputSpace:"srgb"});return st=>ei(rt(st))});return tt=>{if(tt<=0)return ei(T[0]);if(tt>=1)return ei(T[T.length-1]);const it=Math.floor(tt*K.length);return K[it](tt*K.length-it)}},pf=(p,...T)=>{const F=T.map(Ye);if(F.length<2)return Array(p).fill(ei(F[0]));const K=Hl(...F);return Array(p).fill(0).map((tt,it)=>K(it/(p-1)))},Xl=p=>ei(Ye(p).set("hsl.s",0)),df=(p,T)=>ei(ee.mix(p,T,.5,{outputSpace:"srgb"})),uf=(p,T)=>Math.abs(Ye(T).hsl.h-Ye(p).hsl.h),oo=(p,T)=>{const F=Ye(p);return F.hsv.v=F.hsv.v+F.hsv.v*T,F.hsv.v>100&&(F.hsv.s=F.hsv.s-(F.hsv.v-100)/1.677),F.hsv.s=Math.max(0,Math.min(100,F.hsv.s)),F.hsv.v=Math.max(0,Math.min(100,F.hsv.v)),ei(F)},Yl=p=>({R:p.srgb[0]*255,G:p.srgb[1]*255,B:p.srgb[2]*255}),uo=p=>{const{R:T,G:F,B:K}=Yl(p);return 1-(.299*T+.587*F+.114*K)/255};function ff(p){return uo(p)<.9}const gf=(p,T=.05,F=1)=>{const K=Ye(p),{R:tt,G:it,B:rt}=Yl(K),st=uo(K);let ht=T;ff(K)&&(ht*=-.6),ht*=Math.exp(st*1.2);const ct=Math.min(Math.max(Math.round(255*ht)+tt,0),255),pt=Math.min(Math.max(Math.round(255*ht)+it,0),255),ft=Math.min(Math.max(Math.round(255*ht)+rt,0),255);return`rgba(${ct}, ${pt}, ${ft}, ${F})`},Ul=(p,T)=>{const F=Ye(p);return F.alpha=T,ei(F)},mf=(p,T,F)=>ee.steps(new ee(p),new ee(T),{steps:F}).map(K=>new ee(K).to("srgb").toString());function yf(p){return T=>{var ct,pt,ft;const{steps:F,minColor:K,maxColor:tt}=p,it=(ct=p.minValue)!=null?ct:Math.min(...T),rt=(pt=p.maxValue)!=null?pt:Math.max(...T),st=(ft=p.midValue)!=null?ft:it<0&&rt>0?0:(it+rt)/2,ht=Vl(K!=null?K:Fo,tt!=null?tt:Fo,it,st,rt,F);return _=>ht(_)}}const Vl=(p,T,F,K,tt,it=0)=>{const rt=xf(F,K,tt),st=uf(p,T)>90?[p,Xl(df(p,T)),T]:[p,T];return it<=0?vf(rt,st):bf(rt,it,st)},vf=(p,T)=>{const F=Hl(...T);return K=>F(p(K))},bf=(p,T,F)=>{const K=pf(T,...F);return tt=>{const it=Math.floor(p(tt)*T);return K[Math.min(Math.max(it,0),T-1)]}},xf=(p,T,F)=>K=>K==p&&K==F?.5:K<T?.5*((K-p)/(T-p)):.5+.5*(K-T)/(F-T);function $l(p){let T;switch(typeof p=="string"?T=wn(p):T=p,T.type){case"uniform":return{type:"Static",getColor:Od(T)};case"conditional":return{type:"Absolute",getColor:Dd(T)};case"range":return{type:"Relative",getColor:yf(T)}}}const Pn=p=>{const{getValueFromDataStructure:T,applyColorToDataStructure:F}=p;return(K,tt)=>{const it=$l(tt);let rt;switch(it.type){case"Static":rt=()=>it.getColor();break;case"Absolute":rt=st=>it.getColor(st);break;case"Relative":{const st=K.map(T),ht=it.getColor(st);rt=ct=>ht(ct);break}}return K.map(st=>{const ht=T(st),ct=rt(ht);return F(st,ct)})}},Cf=Pn({getValueFromDataStructure:p=>p.value,applyColorToDataStructure:(p,T)=>_t(kt({},p),{color:T})}),Zl=({x:p,y:T,breakBy:F})=>ql(T)&&Kl(p)&&F.length===0,Sf=({x:p,y:T,breakBy:F})=>Kl(p)&&ql(T)&&F.length>0,Kl=p=>p.length===0,ql=p=>p.length>0,wf=(p,T)=>p*(T/100),Mf=(p,T)=>p===0?0:Math.abs(T)/Math.abs(p)*100,_o=p=>`${p}%`,zr=(p,T)=>{var ft;if(T.rows.length===0)return{type:"cartesian",series:[],xValues:[],xAxisCount:0};const F=p.x.length;let K=Qi(T,p.x.map(({column:{name:_}})=>_));K=K.map((_,et)=>_t(kt({},_),{direction:Jl(p.x[et].sortType)}));const tt=Qi(T,p.breakBy.map(({column:{name:_}})=>_)),it=p.y.filter(({sortType:_})=>_&&_!=="sortNone"),rt=K.length>1?1:0,st=Ql(T,it,K,((ft=K[rt])==null?void 0:ft.direction)===0?bn:void 0),ht=p.y.map(({column:{name:_}})=>_),ct=p.breakBy.length>0?Pf(T,st,K,ht[0],tt,p.breakBy):Af(T,st,K,ht,p.y);return _t(kt({},ct),{xAxisCount:F,type:"cartesian"})},Jl=p=>{switch(p){case"sortNone":return 0;case"sortDesc":return-1;case"sortAsc":default:return 1}},Ql=(p,T,F,K)=>{if(F.length===0)return[{key:"",xValues:[""],rawValues:[]}];const tt=T.map(({column:{name:ft}})=>({column:ft,agg:"sum",title:ft}));if(K){const ft={column:K,title:K,agg:"min"};tt.push(ft)}const it=hl(p,F,tt),rt=[];let st=0;if(F.length===2){st=1;const _=si(it,F[0].name);_&&rt.push(_)}if(T.map(ft=>{const _=si(it,ft.column.name);return _&&rt.push(_t(kt({},_),{direction:ft.sortType==="sortAsc"?1:-1})),ft}),K){const ft=si(it,K);ft&&rt.push(ft)}if(F.length>0){const ft=si(it,F[st].name);ft&&rt.push(ft)}const ht=ll(it,rt),ct=Qi(ht,F.map(ft=>ft.name)),pt=cl(ht,ct);return pt.rows.map(ft=>{const _=Di(ft,pt.columns),et=_.map(U=>U.displayValue),G=_.map(U=>{var $;return($=U.rawValue)!=null?$:U.displayValue}),B=_.map(U=>{var $;return($=U==null?void 0:U.compareValue)==null?void 0:$.value});return{key:G.join(","),xValues:et,rawValues:G,compareValues:B}})},th=(p,T,F)=>{var rt,st;const K=F?pl(p,F):1e-5,{color:tt,rawValue:it}=(st=p[(rt=F==null?void 0:F.index)!=null?rt:0])!=null?st:{};return kt({rawValue:it,xValue:T.rawValues,xDisplayValue:T.xValues,xCompareValue:T.compareValues,value:K===void 0?NaN:K,blur:F?dl(p,F):void 0},tt&&{color:tt})},Af=(p,T,F,K,tt)=>{const it=K.length>0?Qi(p,K):[void 0],rt=tt.reduce((ct,pt)=>(ct[pt.column.name]=pt,ct),{}),st=Cn(p.rows,F),ht=it.map(ct=>{var G,B;let pt=T.map(X=>{const U=st[X.key],$=U?U[0]:[];return th($,X,ct)});const ft=(G=ct==null?void 0:ct.name)!=null?G:"",_=ft?xe(rt[ft]):"",et=(B=rt[ft])==null?void 0:B.color;return et&&(pt=Cf(pt,et)),{name:ft,title:_,data:pt}});return{xValues:T,series:ht}},Tf=(p,T,F)=>Di(p,T).map((K,tt)=>{const it=he(F[tt].numberFormatConfig);return Rt.isNumber(T[tt].type)?Ce(it,parseFloat(K.displayValue)):K.displayValue}).join(","),kf=(p,T)=>Di(p,T).map(({rawValue:F})=>F),Pf=(p,T,F,K,tt,it)=>{const rt=si(p,K),ct=xn(p.rows,tt).map(pt=>{const ft=pt[0];return{seriesName:Tf(ft,tt,it),seriesValues:kf(ft,tt),rowsByXColumns:Cn(pt,F)}}).map(pt=>{const ft=T.map(_=>{const et=pt.rowsByXColumns[_.key],G=et?et[0]:[];return th(G,_,rt)});return{name:pt.seriesName,data:ft,custom:{rawValue:pt.seriesValues}}});return{xValues:T,series:ct}},Ue=(p,T)=>{var K;const F=p==null?void 0:p.filter(tt=>tt);return(K=F&&F[T%F.length])!=null?K:Ed[T%10]},eh=p=>typeof p=="object"&&p!==null&&"type"in p&&p.type==="linear",ih=p=>typeof p=="object"&&p!==null&&"type"in p&&p.type==="radial",oh=p=>eh(p)||ih(p),Lf={topToBottom:{x1:0,y1:0,x2:0,y2:1},bottomToTop:{x1:0,y1:1,x2:0,y2:0},leftToRight:{x1:0,y1:0,x2:1,y2:0},rightToLeft:{x1:1,y1:0,x2:0,y2:0},diagonalTopLeft:{x1:0,y1:0,x2:1,y2:1},diagonalTopRight:{x1:1,y1:0,x2:0,y2:1}},Ef={center:{centerX:.5,centerY:.5,radius:.8},topLeft:{centerX:0,centerY:0,radius:1},topRight:{centerX:1,centerY:0,radius:1},bottomLeft:{centerX:0,centerY:1,radius:1},bottomRight:{centerX:1,centerY:1,radius:1}},Of=(p,T)=>({type:"linear",direction:p,stops:T}),Df=(p,T)=>({type:"radial",center:p,stops:T}),rh=p=>p.type==="linear"?{linearGradient:{x1:p.direction.x1,y1:p.direction.y1,x2:p.direction.x2,y2:p.direction.y2},stops:p.stops.map(T=>[T.position,T.color])}:{radialGradient:{cx:p.center.centerX,cy:p.center.centerY,r:p.center.radius},stops:p.stops.map(T=>[T.position,T.color])},jf=p=>{if(p.linearGradient)return{type:"linear",direction:{x1:p.linearGradient.x1,y1:p.linearGradient.y1,x2:p.linearGradient.x2,y2:p.linearGradient.y2},stops:p.stops.map(([T,F])=>({position:T,color:F}))};if(p.radialGradient)return{type:"radial",center:{centerX:p.radialGradient.cx,centerY:p.radialGradient.cy,radius:p.radialGradient.r},stops:p.stops.map(([T,F])=>({position:T,color:F}))};throw new Error("Invalid inner gradient format: must have either linearGradient or radialGradient")},bi=p=>oh(p)?rh(p):p,If=p=>{const F=[...p.stops].sort((K,tt)=>K.position-tt.position).map(K=>`${K.color} ${K.position*100}%`).join(", ");if(p.type==="linear"){const{direction:K}=p,tt=K.x2-K.x1,it=K.y2-K.y1;return`linear-gradient(${Math.atan2(it,tt)*180/Math.PI+90}deg, ${F})`}else{const{center:K}=p,tt=K.centerX*100,it=K.centerY*100;return`radial-gradient(circle ${K.radius*100}% at ${tt}% ${it}%, ${F})`}};function _f(p){return typeof p!="object"||p===null||Array.isArray(p)||p instanceof Date||p instanceof RegExp||p instanceof Function?!0:Object.keys(p).length>0}function xi(p){if(p==null)return p;if(Array.isArray(p))return p.filter(T=>T!==void 0).map(T=>xi(T)).filter(T=>typeof T=="object"&&T!==null&&!Array.isArray(T)?Object.keys(T).length>0:!0);if(typeof p=="object"){if(p instanceof Date||p instanceof RegExp||p instanceof Function)return p;const T={};for(const[F,K]of Object.entries(p)){if(K===void 0)continue;const tt=xi(K);_f(tt)&&(T[F]=tt)}return T}return p}const Le=p=>{var et;const{rotation:T,alignInside:F,align:K,verticalAlign:tt,textStyle:it,backgroundColor:rt,borderColor:st,borderRadius:ht,borderWidth:ct,padding:pt,xOffset:ft,yOffset:_}=p!=null?p:{};return xi({enabled:(et=p==null?void 0:p.enabled)!=null?et:!1,rotation:T,inside:F,align:K,verticalAlign:tt,style:it,backgroundColor:bi(rt),borderColor:bi(st),borderRadius:ht,borderWidth:ct,padding:pt,x:ft,y:_})};var Nf=function(T){return Bf(T)&&!Rf(T)};function Bf(p){return!!p&&typeof p=="object"}function Rf(p){var T=Object.prototype.toString.call(p);return T==="[object RegExp]"||T==="[object Date]"||Gf(p)}var zf=typeof Symbol=="function"&&Symbol.for,Ff=zf?Symbol.for("react.element"):60103;function Gf(p){return p.$$typeof===Ff}function Wf(p){return Array.isArray(p)?[]:{}}function ro(p,T){return T.clone!==!1&&T.isMergeableObject(p)?Pi(Wf(p),p,T):p}function Hf(p,T,F){return p.concat(T).map(function(K){return ro(K,F)})}function Xf(p,T){if(!T.customMerge)return Pi;var F=T.customMerge(p);return typeof F=="function"?F:Pi}function Yf(p){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(p).filter(function(T){return Object.propertyIsEnumerable.call(p,T)}):[]}function Bs(p){return Object.keys(p).concat(Yf(p))}function nh(p,T){try{return T in p}catch(F){return!1}}function Uf(p,T){return nh(p,T)&&!(Object.hasOwnProperty.call(p,T)&&Object.propertyIsEnumerable.call(p,T))}function Vf(p,T,F){var K={};return F.isMergeableObject(p)&&Bs(p).forEach(function(tt){K[tt]=ro(p[tt],F)}),Bs(T).forEach(function(tt){Uf(p,tt)||(nh(p,tt)&&F.isMergeableObject(T[tt])?K[tt]=Xf(tt,F)(p[tt],T[tt],F):K[tt]=ro(T[tt],F))}),K}function Pi(p,T,F){F=F||{},F.arrayMerge=F.arrayMerge||Hf,F.isMergeableObject=F.isMergeableObject||Nf,F.cloneUnlessOtherwiseSpecified=ro;var K=Array.isArray(T),tt=Array.isArray(p),it=K===tt;return it?K?F.arrayMerge(p,T,F):Vf(p,T,F):ro(T,F)}Pi.all=function(T,F){if(!Array.isArray(T))throw new Error("first argument should be an array");return T.reduce(function(K,tt){return Pi(K,tt,F)},{})};var $f=Pi,Zf=$f;const Re=Jr(Zf),Kf={fontSize:"13px",fontWeight:"normal",textOutline:"none",pointerEvents:"auto"},qf=p=>{switch(p){case"bottom":return{enabled:!0,align:"center",verticalAlign:"bottom",layout:"horizontal"};case"left":return{enabled:!0,align:"left",verticalAlign:"middle",layout:"vertical"};case"right":return{enabled:!0,align:"right",verticalAlign:"middle",layout:"vertical"};case"top":return{enabled:!0,align:"center",verticalAlign:"top",layout:"horizontal"};default:return{enabled:!0,align:"center",verticalAlign:"bottom",layout:"horizontal"}}},Jf=p=>{if((p==null?void 0:p.enabled)===!1||!p)return;const{text:T,textStyle:F}=p;return{title:{text:T,style:F}}},Qf=p=>{if(!p)return;const{layout:T,textStyle:F,marginBottom:K,marginTop:tt,distance:it,width:rt,hoverTextStyle:st,hiddenTextStyle:ht}=p||{};return{layout:T,itemStyle:F,itemMarginBottom:K,itemMarginTop:tt,itemDistance:it,itemWidth:rt,itemHoverStyle:st,itemHiddenStyle:ht}},tg=p=>{if(!p)return;const{radius:T,height:F,width:K,padding:tt,squared:it}=p;return{symbolRadius:T,symbolHeight:F,symbolWidth:K,symbolPadding:tt,squareSymbol:it}},eg=p=>{const ct=p,{title:T,items:F,symbols:K,xOffset:tt,yOffset:it,backgroundColor:rt,borderColor:st}=ct,ht=Te(ct,["title","items","symbols","xOffset","yOffset","backgroundColor","borderColor"]);return xi(_t(kt(kt(kt(kt({},ht),Jf(T)),Qf(F)),tg(K)),{x:tt,y:it,backgroundColor:bi(rt),borderColor:bi(st)}))},fi=p=>{const T={enabled:!1,symbolRadius:0,backgroundColor:"transparent",borderColor:"transparent",borderWidth:0,align:"center",verticalAlign:"bottom",layout:"horizontal"};if(!p)return T;const rt=p,{position:F}=rt,K=Te(rt,["position"]),tt=qf(F||null),it=eg(K);return xi(_t(kt(kt(kt({},T),tt),it),{itemStyle:kt(kt({},Kf),it.itemStyle)}))},Ln=p=>{var T;return(p==null?void 0:p.position)==="right"||(p==null?void 0:p.align)==="right"&&((T=p==null?void 0:p.items)==null?void 0:T.layout)==="vertical"&&(p==null?void 0:p.verticalAlign)==="middle"},Ae="#d1d1d7",sh=25,ah=[-10,-20,-30,-40,-50,-60,-70,-80,-90],Se={fontSize:"13px",fontWeight:"normal",textOutline:"none",pointerEvents:"none"},no={fontSize:"13px",textOverflow:"ellipsis",pointerEvents:"none",textOutline:"none",fontWeight:"bold"},Fr={labels:{overflow:"none",enabled:!0,autoRotation:ah,style:Se},tickmarkPlacement:"on",title:{text:"",enabled:!1,margin:sh,style:Se},gridLineDashStyle:"Dot",minorGridLineWidth:0,startOnTick:!1,endOnTick:!1,lineColor:Ae,lineWidth:1,tickColor:Ae,minorTickColor:Ae,gridLineColor:Ae,minorGridLineColor:Ae},Rs={labels:{autoRotation:ah,style:Se},tickmarkPlacement:"on",startOnTick:!0,endOnTick:!0,title:{text:"",margin:sh,enabled:!1,style:Se},gridLineWidth:1,minorTickWidth:0,tickWidth:0,minorGridLineWidth:0,gridLineDashStyle:"Dot",lineColor:Ae,lineWidth:1,tickColor:Ae,minorTickColor:Ae,gridLineColor:Ae,minorGridLineColor:Ae,minorGridLineDashStyle:"Dot",stackLabels:{style:no,crop:!0,allowOverlap:!1,enabled:!1,rotation:0,labelrank:99999,x:0,y:0},showLastLabel:!0},ig=(p,T,F)=>{switch(p){case"line":return gi;case"area":return Re(gi,zs(F));case"bar":return Re(gi,rg(F));case"column":return Re(gi,og(F));case"polar":return Re(gi,ng(T));case"arearange":return Re(gi,zs(F));default:return gi}},gi={chart:{type:"line",spacing:[],alignTicks:!1,polar:!1},legend:fi(),credits:{enabled:!1},exporting:{enabled:!0},plotOptions:{area:{className:"area-series--without-pointer-events",states:{inactive:{enabled:!0,opacity:.3}}},series:{dataLabels:{enabled:!1,crop:!1,style:_t(kt({},Se),{textOutline:"none"})},stickyTracking:!1,states:{select:{color:null,opacity:.3,borderColor:"transparent"}}}},xAxis:[],yAxis:[],series:[],boost:{useGPUTranslations:!0,usePreAllocated:!0}},zs=p=>({plotOptions:{area:kt({},p&&{lineColor:"#ffffff"}),series:kt({},p&&{stacking:p})}}),og=p=>({plotOptions:{column:kt({groupPadding:.1,pointPadding:.01},p&&{borderWidth:0}),series:kt({},p&&{stacking:p})}}),rg=p=>({plotOptions:{bar:kt({groupPadding:.1,pointPadding:.01},p&&{borderWidth:0}),series:kt({},p&&{stacking:p})}});function ng(p){return{plotOptions:{series:_t(kt({},p!=="line"&&{stacking:"normal"}),{fillOpacity:1})}}}const lh={enabled:!0,showCategory:!0,showValue:!0,showPercentage:!0,showPercentDecimals:!1},hh="regular",ch="regular",ph="regular",sg=p=>p!=="regular",ag=()=>({allowPointSelect:!1,cursor:"pointer",showInLegend:!0,dataLabels:{enabled:!1,funnelMinimumFontSizeToTextLabel:8,align:"center",style:Se},reversed:!0,neckWidth:dg,neckHeight:0,width:dh}),lg=p=>{const{enabled:T,showCategory:F,showValue:K,showPercentage:tt}=p;return _t(kt({},Le(p)),{enabled:T&&[F,K,tt].find(Boolean)!==void 0})},hg=(p,T)=>T.showCategory?p.point.name||p.series.name:"",cg=(p,T,F)=>{if(!T.showValue)return"";const K=Ce(F,p.y);return T.showValue&&T.showCategory?`<br />${K}`:K},pg=(p,T)=>{var tt,it;if(!T.showPercentage)return"";const F=((it=(tt=p.point)==null?void 0:tt.custom)==null?void 0:it.number1)||0,K=T.showPercentDecimals?F.toFixed(1):`${Math.round(F)}`;return` <b>${_o(K)}</b>`},dh=66.6,dg=15,ug=p=>dh,fg={wide:60,regular:30,narrow:15},gg=(p,T)=>Math.round(wf(p,fg[T])),mg=p=>p==="pinched"?30:0,uh=(p,T)=>{var pt;const{funnelType:F=ch,funnelSize:K=hh,funnelDirection:tt=ph,seriesLabels:it=lh}=p,rt=he((pt=T.y[0])==null?void 0:pt.numberFormatConfig),st=ug(),ht={dataLabels:_t(kt({},lg(it)),{formatter:function(){var G,B;const ft=hg(this,it),_=cg(this,it,rt),et=pg(this,it);return`${(G=it==null?void 0:it.prefix)!=null?G:""}${ft}${_}${et}${(B=it==null?void 0:it.suffix)!=null?B:""}`}}),reversed:sg(tt),neckWidth:_o(gg(st,K)),neckHeight:_o(mg(F)),width:_o(st)};return{funnel:Rt.merge$1(ag(),ht),series:{}}},yg={enabled:!0,showCategory:!0,showValue:!0,percentageLabels:{enabled:!0,showDecimals:!1}},fh="classic",vg={classic:"0%",donut:"40%",ring:"80%"},bg=()=>({allowPointSelect:!1,showInLegend:!0,dataLabels:{enabled:!1,showPercentLabels:!1,showDecimals:!1,pieMinimumFontSizeToTextLabel:8,align:"center",style:Se},innerSize:"0%"}),xg=()=>({dataLabels:{enabled:!1}}),gh=({pieType:p=fh,seriesLabels:T=yg,chartDataOptions:F,themeSettings:K,semiCircle:tt})=>{var st,ht,ct,pt,ft;const it=bg(),rt=xg();if(it.innerSize=vg[p],K&&(it.dataLabels.style={color:K.chart.textColor,fontFamily:K.typography.fontFamily,textOutline:"none"}),T.enabled){const _=he((st=F.y[0])==null?void 0:st.numberFormatConfig),et=T.enabled&&(T.showCategory||T.showValue),G=Le(T);it.dataLabels=_t(kt(kt({},it.dataLabels),G),{enabled:et,style:kt(kt({},it.dataLabels.style),G.style),formatter:function(){var U,$;const B=this.point.name||this.series.name,X=this.y;return"<div>"+((U=T.prefix)!=null?U:"")+(T.showCategory?B:"")+(T.showCategory&&T.showValue?"<br />":"")+(T.showValue?Ce(_,X):"")+(($=T.suffix)!=null?$:"")+"</div>"},showPercentLabels:(ct=(ht=T==null?void 0:T.percentageLabels)==null?void 0:ht.enabled)!=null?ct:!1,showDecimals:(ft=(pt=T==null?void 0:T.percentageLabels)==null?void 0:pt.showDecimals)!=null?ft:!1})}return rt.dataLabels&&(rt.dataLabels.enabled=T.enabled),tt&&(it.startAngle=-90,it.endAngle=90,it.center=["50%","75%"]),{pie:it,series:rt}};function En(){}function ui(p,T){this.__wrapped__=p,this.__actions__=[],this.__chain__=!!T,this.__index__=0,this.__values__=void 0}ui.prototype=Rt.baseCreate(En.prototype);ui.prototype.constructor=ui;var Gr=Rt.WeakMap&&new Rt.WeakMap;function mh(){}var On=Gr?function(p){return Gr.get(p)}:mh,Fs={},Cg=Object.prototype,Sg=Cg.hasOwnProperty;function No(p){for(var T=p.name+"",F=Fs[T],K=Sg.call(Fs,T)?F.length:0;K--;){var tt=F[K],it=tt.func;if(it==null||it==p)return tt.name}return T}var wg=4294967295;function Li(p){this.__wrapped__=p,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=wg,this.__views__=[]}Li.prototype=Rt.baseCreate(En.prototype);Li.prototype.constructor=Li;function Mg(p){if(p instanceof Li)return p.clone();var T=new ui(p.__wrapped__,p.__chain__);return T.__actions__=Rt.copyArray(p.__actions__),T.__index__=p.__index__,T.__values__=p.__values__,T}var Ag=Object.prototype,Tg=Ag.hasOwnProperty;function $o(p){if(Rt.isObjectLike(p)&&!Rt.isArray(p)&&!(p instanceof Li)){if(p instanceof ui)return p;if(Tg.call(p,"__wrapped__"))return Mg(p)}return new ui(p)}$o.prototype=En.prototype;$o.prototype.constructor=$o;function Wr(p){var T=No(p),F=$o[T];if(typeof F!="function"||!(T in Li.prototype))return!1;if(p===F)return!0;var K=On(F);return!!K&&p===K[0]}var kg="Expected a function",Pg=8,Lg=32,Eg=128,Og=256;function Dg(p){return Rt.flatRest(function(T){for(var F=T.length,K=F,tt=ui.prototype.thru;K--;){var it=T[K];if(typeof it!="function")throw new TypeError(kg);if(tt&&!rt&&No(it)=="wrapper")var rt=new ui([],!0)}for(K=rt?K:F;++K<F;){it=T[K];var st=No(it),ht=st=="wrapper"?On(it):void 0;ht&&Wr(ht[0])&&ht[1]==(Eg|Pg|Lg|Og)&&!ht[4].length&&ht[9]==1?rt=rt[No(ht[0])].apply(rt,ht[3]):rt=it.length==1&&Wr(it)?rt[st]():rt.thru(it)}return function(){var ct=arguments,pt=ct[0];if(rt&&ct.length==1&&Rt.isArray(pt))return rt.plant(pt).value();for(var ft=0,_=F?T[ft].apply(this,ct):pt;++ft<F;)_=T[ft].call(this,_);return _}})}var nr=Dg();const yh=p=>p.compareValues?p.compareValues[0]:NaN,Dn=p=>{if(p!==void 0){switch(p){case Rt.DateLevels.Years:return"yyyy";case Rt.DateLevels.Quarters:return"yyyy Q";case Rt.DateLevels.Months:return"MM/yyyy";case Rt.DateLevels.Weeks:return"ww yyyy";case Rt.DateLevels.Days:return"M/d/yy";case Rt.DateLevels.AggHours:return"HH";case Rt.DateLevels.Hours:return"M/d/yy HH";case Rt.DateLevels.AggMinutesRoundTo30:return"HH:mm";case Rt.DateLevels.MinutesRoundTo30:return"HH:mm";case Rt.DateLevels.AggMinutesRoundTo15:return"HH:mm";case Rt.DateLevels.MinutesRoundTo15:return"HH:mm";case Rt.DateLevels.AggMinutesRoundTo1:return"HH:mm";case Rt.DateLevels.Minutes:return"HH:mm";case Rt.DateLevels.Seconds:return"HH:mm:ss"}return console.warn("Unsupported level"),"M/d/yy HH"}};var jn=(p=>(p.MONTH="month",p.QUARTER="quarter",p.HALF_YEAR="half-year",p.YEAR="year",p))(jn||{});const jg={VIEW_TYPE:jn.MONTH,SUBTYPE:"calendar-heatmap/split",NO_DATA_COLOR:"#f5f5f5",BORDER_WIDTH:0,MIN_CELL_SIZE_FOR_LABELS:20,TOTAL_CALENDAR_CELLS:42,DAYS_IN_WEEK:7,MAX_CALENDAR_ROWS:6,SHOW_CELL_LABEL:!0,SHOW_DAY_LABEL:!0,SHOW_MONTH_LABEL:!0,SHORT_MONTH_NAME_SPLIT_LAYOUT_WIDTH_THRESHOLD:120,SHORT_MONTH_NAME_CONTINUES_LAYOUT_WIDTH_THRESHOLD:70,SHOW_DAY_LABEL_CHART_SIZE_THRESHOLD:120,SHOW_CELL_LABEL_SIZE_THRESHOLD:16,WEEKEND_ENABLED:!1,WEEKEND_DAYS:["saturday","sunday"],WEEKEND_CELL_COLOR:"#e6e6e6",WEEKEND_HIDE_VALUES:!0,START_OF_WEEK:"sunday",SHOW_PAGINATION:!0},Ig={MIN_COLOR_BRIGHTNESS_PERCENT:.5,MAX_COLOR_BRIGHTNESS_PERCENT:-.3,TOOLTIP_COLOR_BRIGHTNESS_PERCENT:-.2,TOOLTIP_BORDER_COLOR:"#c0c0c0"},_g={GAP_WIDTH:30,GAP_HEIGHT:10,MARGINS:{TOP:20,RIGHT:40,BOTTOM:20,LEFT:40},COLUMNS:7,ROWS:7,MIN_CELL_SIZE:4,MAX_CELL_SIZE:80,TITLE_HEIGHT:20,PAGINATION_HEIGHT:45,PAGINATION_BUTTON_SIZE:{WIDTH:30,HEIGHT:30},MIN_TOOLTIP_WIDTH:110},Ng={FONT_SIZE_RATIO:.3,MIN_FONT_SIZE:10,MAX_FONT_SIZE:13,LABEL_Y_OFFSET_RATIO:.08,AXIS_LABEL_Y_RATIO:.3,AXIS_OFFSET_RATIO:.4,MIN_AXIS_FONT_SIZE:12},Bg="calendar-heatmap",Rg="MMMM",zg="MMM",Fg="EEEEE",Gg="EEE",Wg="2023-01-01T00:00:00Z";var Hr={exports:{}};/*! For license information please see index.js.LICENSE.txt */(function(p,T){(function(F,K){p.exports=K()})(self,()=>(()=>{var F={2:function(it,rt,st){var ht=this&&this.__importDefault||function(pt){return pt&&pt.__esModule?pt:{default:pt}};Object.defineProperty(rt,"__esModule",{value:!0}),rt.default=void 0;var ct=st(2807);Object.defineProperty(rt,"default",{enumerable:!0,get:function(){return ht(ct).default}})},50:function(it,rt,st){var ht=this&&this.__importDefault||function(pt){return pt&&pt.__esModule?pt:{default:pt}};Object.defineProperty(rt,"__esModule",{value:!0});var ct=ht(st(4501));rt.default=function(pt){var ft,_,et=pt.objectEach,G=pt.pick,B="legend-hovered",X=document.documentElement.ontouchstart!==void 0;function U(){clearTimeout(ft),clearTimeout(_),ft=null,_=null}pt.wrap(pt.Legend.prototype,"renderItem",function($,Z){$.call(this,Z);var V=Z.chart?Z.chart:Z.series.chart,z=!!Z.series,I=V.options.$familyType==="pie",E=z?["graphic"]:["group","markerGroup"],M=Z.legendItem.group.element,P=z?Z.series.points:this.chart.series;function y(w){var x=[];return(w.yAxis||[]).forEach(function(c){c.options.stackLabels&&!c.options.stackLabels.allowOverlap&&et(c.stacking.stacks,function(g){et(g,function(r){r&&r.label&&(r.label.isStackLabel=!0),x.push(r.label)})})}),x}function h(){if(_=null,!ft){var w=S(Z),x={totalsRank:Number.MIN_SAFE_INTEGER};v(Z),m(w,x)}}function f(){ft=null,_||function(w){var x=[],c=[],g={totalsRank:Number.MIN_SAFE_INTEGER};(V.series||[]).forEach(function(a){x=x.concat(S(a)),a!==w&&a.visible&&v(a)});var r=y(V);m(c=c.concat(x,r),g)}(Z)}function m(w,x){V.hideOverlappingLabels(w,x)}function u(w){(V.series||[]).forEach(function(x){x===w&&(x.dataLabelCollections||["dataLabel"]).forEach(function(c){x.points.forEach(function(g){var r=g[String(c)];r&&r.visibility!=="hidden"&&(r.prevOpacity=r.opacity,r.opacitySetter(0,"opacity",r.element),r.prevVisibility=r.visibility,r.visibilitySetter("hidden","visibility",r.element))})})})}function v(w){var x=w.xAxis,c=x==null?void 0:x.min,g=x==null?void 0:x.max;(V.series||[]).forEach(function(r){r===w&&(r.dataLabelCollections||["dataLabel"]).forEach(function(a){r.points.forEach(function(t){var i=t[String(a)];x&&(t.x<c||t.x>g)||i&&i.visibility==="hidden"&&(i.prevOpacity=i.opacity,i.opacitySetter(1,"opacity",i.element),i.prevVisibility=i.visibility,i.visibilitySetter("visible","visibility",i.element))})})})}function S(w){var x=[],c=w.options.dataLabels,g=w.dataLabelCollections||["dataLabel","dataLabelsGroup"];return c&&(c.enabled||w._hasPointLabels)&&!c.allowOverlap&&w.visible&&g.forEach(function(r){w.points&&w.points.forEach(function(a){a[r]&&(a[r].labelrank=G(a.labelrank,a.shapeArgs&&a.shapeArgs.height),x.push(a[r]))})}),x}(0,ct.default)(P)&&(P=[]),X||(M.onmouseover=function(){if(Z.visible){U();var w=z&&Z.series.halo;w&&w.attr({d:"M 0 0"}),P.forEach(function(x){x!==Z&&x.visible&&(E.forEach(function(c){x[c]&&x[c].animate({opacity:.15},{duration:400})}),u(x))}),E.forEach(function(x){Z[x]&&Z[x].addClass(B)}),I||(_=setTimeout(h,100))}},M.onmouseout=function(){Z.visible&&(U(),P.forEach(function(w){w.visible&&w!==Z&&E.forEach(function(x){w[x]&&w[x].animate({opacity:1},{duration:400})})}),E.forEach(function(w){Z[w]&&Z[w].removeClass(B)}),I||(ft=setTimeout(f,100)))},M.addEventListener("click",function(){U();var w=[];P.forEach(function(c){c.visible?(E.forEach(function(g){c[g]&&c[g].animate({opacity:1},{duration:50})}),w=w.concat(S(c))):(E.forEach(function(g){c[g]&&c[g].animate({opacity:.25},{duration:150})}),u(c))});var x=y(V);m(w=w.concat(x))}))})}},123:(it,rt,st)=>{st.d(rt,{A:()=>z});var ht=st(405);const ct=st(9600).A["__core-js_shared__"];var pt,ft=(pt=/[^.]+$/.exec(ct&&ct.keys&&ct.keys.IE_PROTO||""))?"Symbol(src)_1."+pt:"",_=st(7942),et=st(1548),G=/^\[object .+?Constructor\]$/,B=Function.prototype,X=Object.prototype,U=B.toString,$=X.hasOwnProperty,Z=RegExp("^"+U.call($).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const V=function(I){return!(!(0,_.A)(I)||(E=I,ft&&ft in E))&&((0,ht.A)(I)?Z:G).test((0,et.A)(I));var E},z=function(I,E){var M=function(P,y){return P==null?void 0:P[y]}(I,E);return V(M)?M:void 0}},362:function(it,rt,st){var ht=this&&this.__importDefault||function(pt){return pt&&pt.__esModule?pt:{default:pt}};Object.defineProperty(rt,"__esModule",{value:!0}),rt.default=void 0;var ct=st(807);Object.defineProperty(rt,"default",{enumerable:!0,get:function(){return ht(ct).default}})},368:function(it,rt,st){var ht=this&&this.__assign||function(){return ht=Object.assign||function(U){for(var $,Z=1,V=arguments.length;Z<V;Z++)for(var z in $=arguments[Z])Object.prototype.hasOwnProperty.call($,z)&&(U[z]=$[z]);return U},ht.apply(this,arguments)},ct=this&&this.__importDefault||function(U){return U&&U.__esModule?U:{default:U}};Object.defineProperty(rt,"__esModule",{value:!0});var pt=ct(st(605)),ft=ct(st(710)),_=ct(st(9681)),et=ct(st(9170)),G=ct(st(6545)),B={enabled:!1,text:"Sisense",href:"http://www.sisense.com",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:pt.default.textColor,fontSize:"9px"}},X=ht({boost:{allowForce:!0,debug:{showSkipSummary:!0,timeBufferCopy:!0,timeKDTree:!0,timeRendering:!0,timeSeriesProcessing:!0,timeSetup:!0},enabled:!0,seriesThreshold:null,useGPUTranslations:!0},chart:{spacing:[10,10,10,10],backgroundColor:"rgba(222,222,222,0)"},credits:B,drilldown:{breadcrumbs:{buttonTheme:{fill:"#ffcb05","stroke-width":4,"stroke-linejoin":"round",stroke:"#ffcb05",padding:5,states:{hover:{fill:"#f2b900",stroke:"#f2b900"}},style:{color:"#3a4356"}},format:"Back",floating:!0,position:{align:"right"},showFullPath:!1}},exporting:{enabled:!1},global:{useUTC:!1},lang:{contextButtonTitle:"Chart context menu",decimalPoint:".",downloadJPEG:"Download JPEG image",downloadPDF:"Download PDF document",downloadPNG:"Download PNG image",downloadSVG:"Download SVG vector image",drillUpText:"Back",invalidDate:"",loading:"Loading...",months:["January","February","March","April","May","June","July","August","September","October","November","December"],noData:"No data to display",numericSymbolMagnitude:1e3,numericSymbols:["k","M","G","T","P","E"],printChart:"Print chart",resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],shortWeekdays:void 0,thousandsSep:" ",weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},legend:_.default,navigator:{yAxis:{gridLineWidth:0},xAxis:{gridLineWidth:0}},plotOptions:et.default,title:{margin:0},tooltip:ft.default},G.default);rt.default=X},405:(it,rt,st)=>{st.d(rt,{A:()=>pt});var ht=st(4044),ct=st(7942);const pt=function(ft){if(!(0,ct.A)(ft))return!1;var _=(0,ht.A)(ft);return _=="[object Function]"||_=="[object GeneratorFunction]"||_=="[object AsyncFunction]"||_=="[object Proxy]"}},605:(it,rt)=>{Object.defineProperty(rt,"__esModule",{value:!0}),rt.default={fontFamily:"Open Sans",textColor:"#5B6372",labelColor:"#5B6372",legendColor:"#5B6372",legendNavigationColor:"#5B6372",legendNavigationSecondaryColor:"#9EA2AB"}},622:function(it,rt,st){var ht=this&&this.__importDefault||function(pt){return pt&&pt.__esModule?pt:{default:pt}};Object.defineProperty(rt,"__esModule",{value:!0}),rt.arrayMax=rt.arrayMin=rt.correctFloat=rt.radiansToDegrees=rt.defined=rt.wrap=void 0;var ct=ht(st(8552));rt.wrap=function(pt,ft,_){var et=pt[ft];pt[ft]=function(){var G=Array.prototype.slice.call(arguments);return G.unshift(et),_.apply(this,G)}},rt.defined=function(pt,ft){return ft===void 0||ft==="null"||ft===""?pt!=null:(0,ct.default)(pt,ft)!==void 0},rt.radiansToDegrees=function(pt){return 180*pt/Math.PI},rt.correctFloat=function(pt){return parseFloat(pt.toPrecision(14))},rt.arrayMin=function(pt){for(var ft=pt.length,_=pt[0];ft--;)pt[ft]<_&&(_=pt[ft]);return _},rt.arrayMax=function(pt){for(var ft=pt.length,_=pt[0];ft--;)pt[ft]>_&&(_=pt[ft]);return _}},710:function(it,rt,st){var ht=this&&this.__importDefault||function(pt){return pt&&pt.__esModule?pt:{default:pt}};Object.defineProperty(rt,"__esModule",{value:!0});var ct=ht(st(2805));rt.default=ct.default},807:function(it,rt,st){var ht=this&&this.__importDefault||function(ft){return ft&&ft.__esModule?ft:{default:ft}};Object.defineProperty(rt,"__esModule",{value:!0});var ct=ht(st(5860)),pt=ht(st(2382));rt.default=function(ft){var _=ft.wrap;function et(G){this.hasCartesianSeries&&this.series.forEach(function(B){B.options&&B.options.stacking==="percent"&&(B.userOptions.data.forEach(function(X){X&&(X.originalY=X.y,X.y=Math.abs(X.y))}),B.yData=B.yData.map(Math.abs))}),G.apply(this,[].slice.call(arguments,1))}(0,pt.default)(ft),_(ft.Chart.prototype,"render",et),_(ft.Chart.prototype,"redraw",et),ft.Axis.prototype.renderUnsquish=function(){var G,B,X,U,$,Z=this.chart,V=Z.renderer,z=this.tickPositions,I=this.ticks,E=this.options.labels,M=E.style,P=this.horiz,y=this.getSlotWidth(),h=Math.max(1,Math.round(y-2*E.padding)),f={},m=this.labelMetrics(),u=M.textOverflow,v=0;if((0,ct.default)(E.rotation)||(f.rotation=E.rotation||0),z.forEach(function(S){var w=I[S];w.movedLabel&&w.replaceMovedLabel(),w&&w.label&&w.label.textPxLength>v&&(v=w.label.textPxLength)}),this.maxLabelLength=v,this.autoRotation)v>h&&v>m.h?f.rotation=this.labelRotation:this.labelRotation=0;else if(y&&(G=h,!u))for(B="clip",U=z.length;!P&&U--;)$=z[U],(X=I[$].label)&&(X.styles&&X.styles.textOverflow==="ellipsis"?X.css({textOverflow:"clip"}):X.textPxLength>y&&X.css({width:y+"px"}),X.getBBox().height>this.len/z.length-(m.h-m.f)&&(X.specificTextOverflow="ellipsis"));f.rotation&&(G=v>.33*Z.chartHeight?.28*Z.chartHeight:v,u||(B="ellipsis")),this.labelAlign=E.align||this.autoLabelAlign(this.labelRotation),this.labelAlign&&(f.align=this.labelAlign),z.forEach(function(S){var w=I[S],x=w&&w.label,c=M.width,g={};x&&(x.attr(f),w.shortenLabel?w.shortenLabel():G&&!c&&M.whiteSpace!=="nowrap"&&(G<x.textPxLength||x.element.tagName==="SPAN")?(g.width=G+"px",u||(g.textOverflow=x.specificTextOverflow||B),x.css(g)):x.styles&&x.styles.width&&!g.width&&!c&&x.css({width:null}),delete x.specificTextOverflow,w.rotation=f.rotation)},this),this.tickRotCorr=V.rotCorr(m.b,this.labelRotation||0,this.side!==0)}}},938:function(it,rt,st){var ht=this&&this.__createBinding||(Object.create?function(_,et,G,B){B===void 0&&(B=G);var X=Object.getOwnPropertyDescriptor(et,G);X&&!("get"in X?!et.__esModule:X.writable||X.configurable)||(X={enumerable:!0,get:function(){return et[G]}}),Object.defineProperty(_,B,X)}:function(_,et,G,B){B===void 0&&(B=G),_[B]=et[G]}),ct=this&&this.__exportStar||function(_,et){for(var G in _)G==="default"||Object.prototype.hasOwnProperty.call(et,G)||ht(et,_,G)},pt=this&&this.__importDefault||function(_){return _&&_.__esModule?_:{default:_}};Object.defineProperty(rt,"__esModule",{value:!0}),rt.default=void 0,ct(st(7783),rt);var ft=st(7783);Object.defineProperty(rt,"default",{enumerable:!0,get:function(){return pt(ft).default}})},1039:(it,rt,st)=>{var ht,ct,pt;pt=function(ft){var _=ft?ft._modules:{};function et(G,B,X,U){G.hasOwnProperty(B)||(G[B]=U.apply(null,X),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:B,module:G[B]}})))}et(_,"Core/Math3D.js",[_["Core/Globals.js"],_["Core/Utilities.js"]],function(G,B){var X=G.deg2rad,U=B.pick;function $(z,I,E,M){var P=I.options.chart.options3d,y=U(M,!!E&&I.inverted),h={x:I.plotWidth/2,y:I.plotHeight/2,z:P.depth/2,vd:U(P.depth,1)*U(P.viewDistance,0)},f=I.scale3d||1,m=X*P.beta*(y?-1:1),u=X*P.alpha*(y?-1:1),v={cosA:Math.cos(u),cosB:Math.cos(-m),sinA:Math.sin(u),sinB:Math.sin(-m)};return E||(h.x+=I.plotLeft,h.y+=I.plotTop),z.map(function(S){var w=function(c,g,r,a){return{x:a.cosB*c-a.sinB*r,y:-a.sinA*a.sinB*c+a.cosA*g-a.cosB*a.sinA*r,z:a.cosA*a.sinB*c+a.sinA*g+a.cosA*a.cosB*r}}((y?S.y:S.x)-h.x,(y?S.x:S.y)-h.y,(S.z||0)-h.z,v),x=Z(w,h,h.vd);return x.x=x.x*f+h.x,x.y=x.y*f+h.y,x.z=w.z*f+h.z,{x:y?x.y:x.x,y:y?x.x:x.y,z:x.z}})}function Z(z,I,E){var M=E>0&&E<Number.POSITIVE_INFINITY?E/(z.z+I.z+E):1;return{x:z.x*M,y:z.y*M}}function V(z){var I,E,M=0;for(I=0;I<z.length;I++)E=(I+1)%z.length,M+=z[I].x*z[E].y-z[E].x*z[I].y;return M/2}return{perspective:$,perspective3D:Z,pointCameraDistance:function(z,I){var E=I.options.chart.options3d,M=I.plotWidth/2,P=I.plotHeight/2,y=U(E.depth,1)*U(E.viewDistance,0)+E.depth;return Math.sqrt(Math.pow(M-U(z.plotX,z.x),2)+Math.pow(P-U(z.plotY,z.y),2)+Math.pow(y-U(z.plotZ,z.z),2))},shapeArea:V,shapeArea3D:function(z,I,E){return V($(z,I,E))}}}),et(_,"Core/Renderer/SVG/SVGElement3D.js",[_["Core/Color/Color.js"],_["Core/Renderer/SVG/SVGElement.js"],_["Core/Utilities.js"]],function(G,B,X){var U=G.parse,$=X.defined,Z=X.merge,V=X.objectEach,z=X.pick,I={};return I.base={initArgs:function(E){var M=this,P=M.renderer,y=P[M.pathType+"Path"](E),h=y.zIndexes;M.parts.forEach(function(f){var m={class:"highcharts-3d-"+f,zIndex:h[f]||0};P.styledMode&&(f==="top"?m.filter="url(#highcharts-brighter)":f==="side"&&(m.filter="url(#highcharts-darker)")),M[f]=P.path(y[f]).attr(m).add(M)}),M.attr({"stroke-linejoin":"round",zIndex:h.group}),M.originalDestroy=M.destroy,M.destroy=M.destroyParts,M.forcedSides=y.forcedSides},singleSetterForParts:function(E,M,P,y,h,f){var m={},u=[null,null,y||"attr",h,f],v=P&&P.zIndexes;return P?(v&&v.group&&this.attr({zIndex:v.group}),V(P,function(S,w){m[w]={},m[w][E]=S,v&&(m[w].zIndex=P.zIndexes[w]||0)}),u[1]=m):(m[E]=M,u[0]=m),this.processParts.apply(this,u)},processParts:function(E,M,P,y,h){var f=this;return f.parts.forEach(function(m){M&&(E=z(M[m],!1)),E!==!1&&f[m][P](E,y,h)}),f},destroyParts:function(){return this.processParts(null,null,"destroy"),this.originalDestroy()}},I.cuboid=Z(I.base,{parts:["front","top","side"],pathType:"cuboid",attr:function(E,M,P,y){if(typeof E=="string"&&M!==void 0){var h=E;(E={})[h]=M}return E.shapeArgs||$(E.x)?this.singleSetterForParts("d",null,this.renderer[this.pathType+"Path"](E.shapeArgs||E)):B.prototype.attr.call(this,E,void 0,P,y)},animate:function(E,M,P){if($(E.x)&&$(E.y)){var y=this.renderer[this.pathType+"Path"](E),h=y.forcedSides;this.singleSetterForParts("d",null,y,"animate",M,P),this.attr({zIndex:y.zIndexes.group}),h!==this.forcedSides&&(this.forcedSides=h,this.renderer.styledMode||I.cuboid.fillSetter.call(this,this.fill))}else B.prototype.animate.call(this,E,M,P);return this},fillSetter:function(E){var M=this;return M.forcedSides=M.forcedSides||[],M.singleSetterForParts("fill",null,{front:E,top:U(E).brighten(M.forcedSides.indexOf("top")>=0?0:.1).get(),side:U(E).brighten(M.forcedSides.indexOf("side")>=0?0:-.1).get()}),M.color=M.fill=E,M}}),I}),et(_,"Core/Renderer/SVG/SVGRenderer3D.js",[_["Core/Animation/AnimationUtilities.js"],_["Core/Color/Color.js"],_["Core/Globals.js"],_["Core/Math3D.js"],_["Core/Renderer/SVG/SVGElement.js"],_["Core/Renderer/SVG/SVGElement3D.js"],_["Core/Renderer/SVG/SVGRenderer.js"],_["Core/Utilities.js"]],function(G,B,X,U,$,Z,V,z){var I,E=this&&this.__extends||(I=function(t,i){return I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,e){o.__proto__=e}||function(o,e){for(var s in e)e.hasOwnProperty(s)&&(o[s]=e[s])},I(t,i)},function(t,i){function o(){this.constructor=t}I(t,i),t.prototype=i===null?Object.create(i):(o.prototype=i.prototype,new o)}),M=G.animObject,P=B.parse,y=X.charts,h=X.deg2rad,f=U.perspective,m=U.shapeArea,u=z.defined,v=z.extend,S=z.merge,w=z.pick,x=Math.cos,c=Math.sin,g=Math.PI,r=4*(Math.sqrt(2)-1)/3/(g/2),a=function(t){function i(){return t!==null&&t.apply(this,arguments)||this}return E(i,t),i.compose=function(o){var e=o.prototype,s=i.prototype;e.elements3d=Z,e.arc3d=s.arc3d,e.arc3dPath=s.arc3dPath,e.cuboid=s.cuboid,e.cuboidPath=s.cuboidPath,e.element3d=s.element3d,e.face3d=s.face3d,e.polyhedron=s.polyhedron,e.toLinePath=s.toLinePath,e.toLineSegments=s.toLineSegments},i.curveTo=function(o,e,s,n,l,b,k,D){var d=[],C=b-l;return b>l&&b-l>Math.PI/2+1e-4?d=(d=d.concat(this.curveTo(o,e,s,n,l,l+Math.PI/2,k,D))).concat(this.curveTo(o,e,s,n,l+Math.PI/2,b,k,D)):b<l&&l-b>Math.PI/2+1e-4?d=(d=d.concat(this.curveTo(o,e,s,n,l,l-Math.PI/2,k,D))).concat(this.curveTo(o,e,s,n,l-Math.PI/2,b,k,D)):[["C",o+s*Math.cos(l)-s*r*C*Math.sin(l)+k,e+n*Math.sin(l)+n*r*C*Math.cos(l)+D,o+s*Math.cos(b)+s*r*C*Math.sin(b)+k,e+n*Math.sin(b)-n*r*C*Math.cos(b)+D,o+s*Math.cos(b)+k,e+n*Math.sin(b)+D]]},i.prototype.toLinePath=function(o,e){var s=[];return o.forEach(function(n){s.push(["L",n.x,n.y])}),o.length&&(s[0][0]="M",e&&s.push(["Z"])),s},i.prototype.toLineSegments=function(o){var e=[],s=!0;return o.forEach(function(n){e.push(s?["M",n.x,n.y]:["L",n.x,n.y]),s=!s}),e},i.prototype.face3d=function(o){var e=this,s=this.createElement("path");return s.vertexes=[],s.insidePlotArea=!1,s.enabled=!0,s.attr=function(n){if(typeof n=="object"&&(u(n.enabled)||u(n.vertexes)||u(n.insidePlotArea))){this.enabled=w(n.enabled,this.enabled),this.vertexes=w(n.vertexes,this.vertexes),this.insidePlotArea=w(n.insidePlotArea,this.insidePlotArea),delete n.enabled,delete n.vertexes,delete n.insidePlotArea;var l=y[e.chartIndex],b=f(this.vertexes,l,this.insidePlotArea),k=e.toLinePath(b,!0),D=m(b);n.d=k,n.visibility=this.enabled&&D>0?"inherit":"hidden"}return $.prototype.attr.apply(this,arguments)},s.animate=function(n){if(typeof n=="object"&&(u(n.enabled)||u(n.vertexes)||u(n.insidePlotArea))){this.enabled=w(n.enabled,this.enabled),this.vertexes=w(n.vertexes,this.vertexes),this.insidePlotArea=w(n.insidePlotArea,this.insidePlotArea),delete n.enabled,delete n.vertexes,delete n.insidePlotArea;var l=y[e.chartIndex],b=f(this.vertexes,l,this.insidePlotArea),k=e.toLinePath(b,!0),D=m(b),d=this.enabled&&D>0?"visible":"hidden";n.d=k,this.attr("visibility",d)}return $.prototype.animate.apply(this,arguments)},s.attr(o)},i.prototype.polyhedron=function(o){var e=this,s=this.g(),n=s.destroy;return this.styledMode||s.attr({"stroke-linejoin":"round"}),s.faces=[],s.destroy=function(){for(var l=0;l<s.faces.length;l++)s.faces[l].destroy();return n.call(this)},s.attr=function(l,b,k,D){if(typeof l=="object"&&u(l.faces)){for(;s.faces.length>l.faces.length;)s.faces.pop().destroy();for(;s.faces.length<l.faces.length;)s.faces.push(e.face3d().add(s));for(var d=0;d<l.faces.length;d++)e.styledMode&&delete l.faces[d].fill,s.faces[d].attr(l.faces[d],null,k,D);delete l.faces}return $.prototype.attr.apply(this,arguments)},s.animate=function(l,b,k){if(l&&l.faces){for(;s.faces.length>l.faces.length;)s.faces.pop().destroy();for(;s.faces.length<l.faces.length;)s.faces.push(e.face3d().add(s));for(var D=0;D<l.faces.length;D++)s.faces[D].animate(l.faces[D],b,k);delete l.faces}return $.prototype.animate.apply(this,arguments)},s.attr(o)},i.prototype.element3d=function(o,e){var s=this.g();return v(s,this.elements3d[o]),s.initArgs(e),s},i.prototype.cuboid=function(o){return this.element3d("cuboid",o)},i.prototype.cuboidPath=function(o){var e,s,n,l,b,k,D,d,C=o.x||0,A=o.y||0,N=o.z||0,R=o.height||0,L=o.width||0,O=o.depth||0,j=y[this.chartIndex],Y=j.options.chart.options3d.alpha,H=1e6,W=0,q=[{x:C,y:A,z:N},{x:C+L,y:A,z:N},{x:C+L,y:A+R,z:N},{x:C,y:A+R,z:N},{x:C,y:A+R,z:N+O},{x:C+L,y:A+R,z:N+O},{x:C+L,y:A,z:N+O},{x:C,y:A,z:N+O}],Q=[];function J(lt){return R===0&<>1&<<6?{x:q[lt].x,y:q[lt].y+10,z:q[lt].z}:q[0].x===q[7].x&<>=4?{x:q[lt].x+10,y:q[lt].y,z:q[lt].z}:O===0&<<2||lt>5?{x:q[lt].x,y:q[lt].y,z:q[lt].z+10}:q[lt]}function nt(lt){return q[lt]}return q=f(q,j,o.insidePlotArea),s=(e=(d=function(lt,gt,mt){var bt=[[],-1],yt=lt.map(nt),dt=gt.map(nt),ot=lt.map(J),at=gt.map(J);return m(yt)<0?bt=[yt,0]:m(dt)<0?bt=[dt,1]:mt&&(Q.push(mt),bt=m(ot)<0?[yt,0]:m(at)<0?[dt,1]:[yt,0]),bt})([3,2,1,0],[7,6,5,4],"front"))[0],b=e[1],n=(e=d([1,6,7,0],[4,5,2,3],"top"))[0],k=e[1],l=(e=d([1,2,5,6],[0,7,4,3],"side"))[0],(D=e[1])===1?W+=H*(j.plotWidth-C):D||(W+=H*C),W+=10*(!k||Y>=0&&Y<=180||Y<360&&Y>357.5?j.plotHeight-A:10+A),b===1?W+=100*N:b||(W+=100*(1e3-N)),{front:this.toLinePath(s,!0),top:this.toLinePath(n,!0),side:this.toLinePath(l,!0),zIndexes:{group:Math.round(W)},forcedSides:Q,isFront:b,isTop:k}},i.prototype.arc3d=function(o){var e=this.g(),s=e.renderer,n=["x","y","r","innerR","start","end","depth"];function l(b){var k,D=!1,d={};for(k in b=S(b))n.indexOf(k)!==-1&&(d[k]=b[k],delete b[k],D=!0);return!!D&&[d,b]}return(o=S(o)).alpha=(o.alpha||0)*h,o.beta=(o.beta||0)*h,e.top=s.path(),e.side1=s.path(),e.side2=s.path(),e.inn=s.path(),e.out=s.path(),e.onAdd=function(){var b=e.parentGroup,k=e.attr("class");e.top.add(e),["out","inn","side1","side2"].forEach(function(D){e[D].attr({class:k+" highcharts-3d-side"}).add(b)})},["addClass","removeClass"].forEach(function(b){e[b]=function(){var k=arguments;["top","out","inn","side1","side2"].forEach(function(D){e[D][b].apply(e[D],k)})}}),e.setPaths=function(b){var k=e.renderer.arc3dPath(b),D=100*k.zTop;e.attribs=b,e.top.attr({d:k.top,zIndex:k.zTop}),e.inn.attr({d:k.inn,zIndex:k.zInn}),e.out.attr({d:k.out,zIndex:k.zOut}),e.side1.attr({d:k.side1,zIndex:k.zSide1}),e.side2.attr({d:k.side2,zIndex:k.zSide2}),e.zIndex=D,e.attr({zIndex:D}),b.center&&(e.top.setRadialReference(b.center),delete b.center)},e.setPaths(o),e.fillSetter=function(b){var k=P(b).brighten(-.1).get();return this.fill=b,this.side1.attr({fill:k}),this.side2.attr({fill:k}),this.inn.attr({fill:k}),this.out.attr({fill:k}),this.top.attr({fill:b}),this},["opacity","translateX","translateY","visibility"].forEach(function(b){e[b+"Setter"]=function(k,D){e[D]=k,["out","inn","side1","side2","top"].forEach(function(d){e[d].attr(D,k)})}}),e.attr=function(b){var k,D;return typeof b=="object"&&(D=l(b))&&(k=D[0],arguments[0]=D[1],v(e.attribs,k),e.setPaths(e.attribs)),$.prototype.attr.apply(e,arguments)},e.animate=function(b,k,D){var d,C,A,N=this.attribs,R="data-"+Math.random().toString(26).substring(2,9);return delete b.center,delete b.z,delete b.alpha,delete b.beta,(A=M(w(k,this.renderer.globalAnimation))).duration&&(d=l(b),e[R]=0,b[R]=1,e[R+"Setter"]=X.noop,d&&(C=d[0],A.step=function(L,O){function j(Y){return N[Y]+(w(C[Y],N[Y])-N[Y])*O.pos}O.prop===R&&O.elem.setPaths(S(N,{x:j("x"),y:j("y"),r:j("r"),innerR:j("innerR"),start:j("start"),end:j("end"),depth:j("depth")}))}),k=A),$.prototype.animate.call(this,b,k,D)},e.destroy=function(){return this.top.destroy(),this.out.destroy(),this.inn.destroy(),this.side1.destroy(),this.side2.destroy(),$.prototype.destroy.call(this)},e.hide=function(){this.top.hide(),this.out.hide(),this.inn.hide(),this.side1.hide(),this.side2.hide()},e.show=function(b){this.top.show(b),this.out.show(b),this.inn.show(b),this.side1.show(b),this.side2.show(b)},e},i.prototype.arc3dPath=function(o){var e=o.x||0,s=o.y||0,n=o.start||0,l=(o.end||0)-1e-5,b=o.r||0,k=o.innerR||0,D=o.depth||0,d=o.alpha||0,C=o.beta||0,A=Math.cos(n),N=Math.sin(n),R=Math.cos(l),L=Math.sin(l),O=b*Math.cos(C),j=b*Math.cos(d),Y=k*Math.cos(C),H=k*Math.cos(d),W=D*Math.sin(C),q=D*Math.sin(d),Q=[["M",e+O*A,s+j*N]];(Q=Q.concat(i.curveTo(e,s,O,j,n,l,0,0))).push(["L",e+Y*R,s+H*L]),(Q=Q.concat(i.curveTo(e,s,Y,H,l,n,0,0))).push(["Z"]);var J=C>0?Math.PI/2:0,nt=d>0?0:Math.PI/2,lt=n>-J?n:l>-J?-J:n,gt=l<g-nt?l:n<g-nt?g-nt:l,mt=2*g-nt,bt=[["M",e+O*x(lt),s+j*c(lt)]];bt=bt.concat(i.curveTo(e,s,O,j,lt,gt,0,0)),l>mt&&n<mt?(bt.push(["L",e+O*x(gt)+W,s+j*c(gt)+q]),(bt=bt.concat(i.curveTo(e,s,O,j,gt,mt,W,q))).push(["L",e+O*x(mt),s+j*c(mt)]),(bt=bt.concat(i.curveTo(e,s,O,j,mt,l,0,0))).push(["L",e+O*x(l)+W,s+j*c(l)+q]),(bt=bt.concat(i.curveTo(e,s,O,j,l,mt,W,q))).push(["L",e+O*x(mt),s+j*c(mt)]),bt=bt.concat(i.curveTo(e,s,O,j,mt,gt,0,0))):l>g-nt&&n<g-nt&&(bt.push(["L",e+O*Math.cos(gt)+W,s+j*Math.sin(gt)+q]),(bt=bt.concat(i.curveTo(e,s,O,j,gt,l,W,q))).push(["L",e+O*Math.cos(l),s+j*Math.sin(l)]),bt=bt.concat(i.curveTo(e,s,O,j,l,gt,0,0))),bt.push(["L",e+O*Math.cos(gt)+W,s+j*Math.sin(gt)+q]),(bt=bt.concat(i.curveTo(e,s,O,j,gt,lt,W,q))).push(["Z"]);var yt=[["M",e+Y*A,s+H*N]];(yt=yt.concat(i.curveTo(e,s,Y,H,n,l,0,0))).push(["L",e+Y*Math.cos(l)+W,s+H*Math.sin(l)+q]),(yt=yt.concat(i.curveTo(e,s,Y,H,l,n,W,q))).push(["Z"]);var dt=[["M",e+O*A,s+j*N],["L",e+O*A+W,s+j*N+q],["L",e+Y*A+W,s+H*N+q],["L",e+Y*A,s+H*N],["Z"]],ot=[["M",e+O*R,s+j*L],["L",e+O*R+W,s+j*L+q],["L",e+Y*R+W,s+H*L+q],["L",e+Y*R,s+H*L],["Z"]],at=Math.atan2(q,-W),ut=Math.abs(l+at),vt=Math.abs(n+at),Ct=Math.abs((n+l)/2+at);function xt(Lt){return(Lt%=2*Math.PI)>Math.PI&&(Lt=2*Math.PI-Lt),Lt}ut=xt(ut),vt=xt(vt);var St=1e5,Mt=(Ct=xt(Ct))*St,wt=vt*St,Tt=ut*St;return{top:Q,zTop:Math.PI*St+1,out:bt,zOut:Math.max(Mt,wt,Tt),inn:yt,zInn:Math.max(Mt,wt,Tt),side1:dt,zSide1:.99*Tt,side2:ot,zSide2:.99*wt}},i}(V);return a}),et(_,"Core/Chart/Chart3D.js",[_["Core/Color/Color.js"],_["Core/Defaults.js"],_["Core/Math3D.js"],_["Core/Utilities.js"]],function(G,B,X,U){var $,Z=G.parse,V=B.defaultOptions,z=X.perspective,I=X.shapeArea3D,E=U.addEvent,M=U.isArray,P=U.merge,y=U.pick,h=U.wrap;return function(f){var m=function(){function o(e){this.frame3d=void 0,this.chart=e}return o.prototype.get3dFrame=function(){var e=this.chart,s=e.options.chart.options3d,n=s.frame,l=e.plotLeft,b=e.plotLeft+e.plotWidth,k=e.plotTop,D=e.plotTop+e.plotHeight,d=s.depth,C=function(ot){var at=I(ot,e);return at>.5?1:at<-.5?-1:0},A=C([{x:l,y:D,z:d},{x:b,y:D,z:d},{x:b,y:D,z:0},{x:l,y:D,z:0}]),N=C([{x:l,y:k,z:0},{x:b,y:k,z:0},{x:b,y:k,z:d},{x:l,y:k,z:d}]),R=C([{x:l,y:k,z:0},{x:l,y:k,z:d},{x:l,y:D,z:d},{x:l,y:D,z:0}]),L=C([{x:b,y:k,z:d},{x:b,y:k,z:0},{x:b,y:D,z:0},{x:b,y:D,z:d}]),O=C([{x:l,y:D,z:0},{x:b,y:D,z:0},{x:b,y:k,z:0},{x:l,y:k,z:0}]),j=C([{x:l,y:k,z:d},{x:b,y:k,z:d},{x:b,y:D,z:d},{x:l,y:D,z:d}]),Y=!1,H=!1,W=!1,q=!1;[].concat(e.xAxis,e.yAxis,e.zAxis).forEach(function(ot){ot&&(ot.horiz?ot.opposite?H=!0:Y=!0:ot.opposite?q=!0:W=!0)});var Q=function(ot,at,ut){for(var vt=["size","color","visible"],Ct={},xt=0;xt<vt.length;xt++)for(var St=vt[xt],Mt=0;Mt<ot.length;Mt++)if(typeof ot[Mt]=="object"){var wt=ot[Mt][St];if(wt!=null){Ct[St]=wt;break}}var Tt=ut;return Ct.visible===!0||Ct.visible===!1?Tt=Ct.visible:Ct.visible==="auto"&&(Tt=at>0),{size:y(Ct.size,1),color:y(Ct.color,"none"),frontFacing:at>0,visible:Tt}},J={axes:{},bottom:Q([n.bottom,n.top,n],A,Y),top:Q([n.top,n.bottom,n],N,H),left:Q([n.left,n.right,n.side,n],R,W),right:Q([n.right,n.left,n.side,n],L,q),back:Q([n.back,n.front,n],j,!0),front:Q([n.front,n.back,n],O,!1)};if(s.axisLabelPosition==="auto"){var nt=function(ot,at){return ot.visible!==at.visible||ot.visible&&at.visible&&ot.frontFacing!==at.frontFacing},lt=[];nt(J.left,J.front)&<.push({y:(k+D)/2,x:l,z:0,xDir:{x:1,y:0,z:0}}),nt(J.left,J.back)&<.push({y:(k+D)/2,x:l,z:d,xDir:{x:0,y:0,z:-1}}),nt(J.right,J.front)&<.push({y:(k+D)/2,x:b,z:0,xDir:{x:0,y:0,z:1}}),nt(J.right,J.back)&<.push({y:(k+D)/2,x:b,z:d,xDir:{x:-1,y:0,z:0}});var gt=[];nt(J.bottom,J.front)&>.push({x:(l+b)/2,y:D,z:0,xDir:{x:1,y:0,z:0}}),nt(J.bottom,J.back)&>.push({x:(l+b)/2,y:D,z:d,xDir:{x:-1,y:0,z:0}});var mt=[];nt(J.top,J.front)&&mt.push({x:(l+b)/2,y:k,z:0,xDir:{x:1,y:0,z:0}}),nt(J.top,J.back)&&mt.push({x:(l+b)/2,y:k,z:d,xDir:{x:-1,y:0,z:0}});var bt=[];nt(J.bottom,J.left)&&bt.push({z:(0+d)/2,y:D,x:l,xDir:{x:0,y:0,z:-1}}),nt(J.bottom,J.right)&&bt.push({z:(0+d)/2,y:D,x:b,xDir:{x:0,y:0,z:1}});var yt=[];nt(J.top,J.left)&&yt.push({z:(0+d)/2,y:k,x:l,xDir:{x:0,y:0,z:-1}}),nt(J.top,J.right)&&yt.push({z:(0+d)/2,y:k,x:b,xDir:{x:0,y:0,z:1}});var dt=function(ot,at,ut){if(ot.length===0)return null;if(ot.length===1)return ot[0];for(var vt=z(ot,e,!1),Ct=0,xt=1;xt<vt.length;xt++)(ut*vt[xt][at]>ut*vt[Ct][at]||ut*vt[xt][at]===ut*vt[Ct][at]&&vt[xt].z<vt[Ct].z)&&(Ct=xt);return ot[Ct]};J.axes={y:{left:dt(lt,"x",-1),right:dt(lt,"x",1)},x:{top:dt(mt,"y",-1),bottom:dt(gt,"y",1)},z:{top:dt(yt,"y",-1),bottom:dt(bt,"y",1)}}}else J.axes={y:{left:{x:l,z:0,xDir:{x:1,y:0,z:0}},right:{x:b,z:0,xDir:{x:0,y:0,z:1}}},x:{top:{y:k,z:0,xDir:{x:1,y:0,z:0}},bottom:{y:D,z:0,xDir:{x:1,y:0,z:0}}},z:{top:{x:W?b:l,y:k,xDir:W?{x:0,y:0,z:1}:{x:0,y:0,z:-1}},bottom:{x:W?b:l,y:D,xDir:W?{x:0,y:0,z:1}:{x:0,y:0,z:-1}}}};return J},o.prototype.getScale=function(e){var s,n=this.chart,l=n.plotLeft,b=n.plotWidth+l,k=n.plotTop,D=n.plotHeight+k,d=l+n.plotWidth/2,C=k+n.plotHeight/2,A={minX:Number.MAX_VALUE,maxX:-Number.MAX_VALUE,minY:Number.MAX_VALUE,maxY:-Number.MAX_VALUE},N=1;return s=[{x:l,y:k,z:0},{x:l,y:k,z:e}],[0,1].forEach(function(R){s.push({x:b,y:s[R].y,z:s[R].z})}),[0,1,2,3].forEach(function(R){s.push({x:s[R].x,y:D,z:s[R].z})}),(s=z(s,n,!1)).forEach(function(R){A.minX=Math.min(A.minX,R.x),A.maxX=Math.max(A.maxX,R.x),A.minY=Math.min(A.minY,R.y),A.maxY=Math.max(A.maxY,R.y)}),l>A.minX&&(N=Math.min(N,1-Math.abs((l+d)/(A.minX+d))%1)),b<A.maxX&&(N=Math.min(N,(b-d)/(A.maxX-d))),k>A.minY&&(N=A.minY<0?Math.min(N,(k+C)/(-A.minY+k+C)):Math.min(N,1-(k+C)/(A.minY+C)%1)),D<A.maxY&&(N=Math.min(N,Math.abs((D-C)/(A.maxY-C)))),N},o}();function u(o){this.is3d()&&o.options.type==="scatter"&&(o.options.type="scatter3d")}function v(){if(this.chart3d&&this.is3d()){var o=this,e=o.renderer,s=o.options.chart.options3d,n=o.chart3d.get3dFrame(),l=o.plotLeft,b=o.plotLeft+o.plotWidth,k=o.plotTop,D=o.plotTop+o.plotHeight,d=s.depth,C=l-(n.left.visible?n.left.size:0),A=b+(n.right.visible?n.right.size:0),N=k-(n.top.visible?n.top.size:0),R=D+(n.bottom.visible?n.bottom.size:0),L=0-(n.front.visible?n.front.size:0),O=d+(n.back.visible?n.back.size:0),j=o.hasRendered?"animate":"attr";o.chart3d.frame3d=n,o.frameShapes||(o.frameShapes={bottom:e.polyhedron().add(),top:e.polyhedron().add(),left:e.polyhedron().add(),right:e.polyhedron().add(),back:e.polyhedron().add(),front:e.polyhedron().add()}),o.frameShapes.bottom[j]({class:"highcharts-3d-frame highcharts-3d-frame-bottom",zIndex:n.bottom.frontFacing?-1e3:1e3,faces:[{fill:Z(n.bottom.color).brighten(.1).get(),vertexes:[{x:C,y:R,z:L},{x:A,y:R,z:L},{x:A,y:R,z:O},{x:C,y:R,z:O}],enabled:n.bottom.visible},{fill:Z(n.bottom.color).brighten(.1).get(),vertexes:[{x:l,y:D,z:d},{x:b,y:D,z:d},{x:b,y:D,z:0},{x:l,y:D,z:0}],enabled:n.bottom.visible},{fill:Z(n.bottom.color).brighten(-.1).get(),vertexes:[{x:C,y:R,z:L},{x:C,y:R,z:O},{x:l,y:D,z:d},{x:l,y:D,z:0}],enabled:n.bottom.visible&&!n.left.visible},{fill:Z(n.bottom.color).brighten(-.1).get(),vertexes:[{x:A,y:R,z:O},{x:A,y:R,z:L},{x:b,y:D,z:0},{x:b,y:D,z:d}],enabled:n.bottom.visible&&!n.right.visible},{fill:Z(n.bottom.color).get(),vertexes:[{x:A,y:R,z:L},{x:C,y:R,z:L},{x:l,y:D,z:0},{x:b,y:D,z:0}],enabled:n.bottom.visible&&!n.front.visible},{fill:Z(n.bottom.color).get(),vertexes:[{x:C,y:R,z:O},{x:A,y:R,z:O},{x:b,y:D,z:d},{x:l,y:D,z:d}],enabled:n.bottom.visible&&!n.back.visible}]}),o.frameShapes.top[j]({class:"highcharts-3d-frame highcharts-3d-frame-top",zIndex:n.top.frontFacing?-1e3:1e3,faces:[{fill:Z(n.top.color).brighten(.1).get(),vertexes:[{x:C,y:N,z:O},{x:A,y:N,z:O},{x:A,y:N,z:L},{x:C,y:N,z:L}],enabled:n.top.visible},{fill:Z(n.top.color).brighten(.1).get(),vertexes:[{x:l,y:k,z:0},{x:b,y:k,z:0},{x:b,y:k,z:d},{x:l,y:k,z:d}],enabled:n.top.visible},{fill:Z(n.top.color).brighten(-.1).get(),vertexes:[{x:C,y:N,z:O},{x:C,y:N,z:L},{x:l,y:k,z:0},{x:l,y:k,z:d}],enabled:n.top.visible&&!n.left.visible},{fill:Z(n.top.color).brighten(-.1).get(),vertexes:[{x:A,y:N,z:L},{x:A,y:N,z:O},{x:b,y:k,z:d},{x:b,y:k,z:0}],enabled:n.top.visible&&!n.right.visible},{fill:Z(n.top.color).get(),vertexes:[{x:C,y:N,z:L},{x:A,y:N,z:L},{x:b,y:k,z:0},{x:l,y:k,z:0}],enabled:n.top.visible&&!n.front.visible},{fill:Z(n.top.color).get(),vertexes:[{x:A,y:N,z:O},{x:C,y:N,z:O},{x:l,y:k,z:d},{x:b,y:k,z:d}],enabled:n.top.visible&&!n.back.visible}]}),o.frameShapes.left[j]({class:"highcharts-3d-frame highcharts-3d-frame-left",zIndex:n.left.frontFacing?-1e3:1e3,faces:[{fill:Z(n.left.color).brighten(.1).get(),vertexes:[{x:C,y:R,z:L},{x:l,y:D,z:0},{x:l,y:D,z:d},{x:C,y:R,z:O}],enabled:n.left.visible&&!n.bottom.visible},{fill:Z(n.left.color).brighten(.1).get(),vertexes:[{x:C,y:N,z:O},{x:l,y:k,z:d},{x:l,y:k,z:0},{x:C,y:N,z:L}],enabled:n.left.visible&&!n.top.visible},{fill:Z(n.left.color).brighten(-.1).get(),vertexes:[{x:C,y:R,z:O},{x:C,y:N,z:O},{x:C,y:N,z:L},{x:C,y:R,z:L}],enabled:n.left.visible},{fill:Z(n.left.color).brighten(-.1).get(),vertexes:[{x:l,y:k,z:d},{x:l,y:D,z:d},{x:l,y:D,z:0},{x:l,y:k,z:0}],enabled:n.left.visible},{fill:Z(n.left.color).get(),vertexes:[{x:C,y:R,z:L},{x:C,y:N,z:L},{x:l,y:k,z:0},{x:l,y:D,z:0}],enabled:n.left.visible&&!n.front.visible},{fill:Z(n.left.color).get(),vertexes:[{x:C,y:N,z:O},{x:C,y:R,z:O},{x:l,y:D,z:d},{x:l,y:k,z:d}],enabled:n.left.visible&&!n.back.visible}]}),o.frameShapes.right[j]({class:"highcharts-3d-frame highcharts-3d-frame-right",zIndex:n.right.frontFacing?-1e3:1e3,faces:[{fill:Z(n.right.color).brighten(.1).get(),vertexes:[{x:A,y:R,z:O},{x:b,y:D,z:d},{x:b,y:D,z:0},{x:A,y:R,z:L}],enabled:n.right.visible&&!n.bottom.visible},{fill:Z(n.right.color).brighten(.1).get(),vertexes:[{x:A,y:N,z:L},{x:b,y:k,z:0},{x:b,y:k,z:d},{x:A,y:N,z:O}],enabled:n.right.visible&&!n.top.visible},{fill:Z(n.right.color).brighten(-.1).get(),vertexes:[{x:b,y:k,z:0},{x:b,y:D,z:0},{x:b,y:D,z:d},{x:b,y:k,z:d}],enabled:n.right.visible},{fill:Z(n.right.color).brighten(-.1).get(),vertexes:[{x:A,y:R,z:L},{x:A,y:N,z:L},{x:A,y:N,z:O},{x:A,y:R,z:O}],enabled:n.right.visible},{fill:Z(n.right.color).get(),vertexes:[{x:A,y:N,z:L},{x:A,y:R,z:L},{x:b,y:D,z:0},{x:b,y:k,z:0}],enabled:n.right.visible&&!n.front.visible},{fill:Z(n.right.color).get(),vertexes:[{x:A,y:R,z:O},{x:A,y:N,z:O},{x:b,y:k,z:d},{x:b,y:D,z:d}],enabled:n.right.visible&&!n.back.visible}]}),o.frameShapes.back[j]({class:"highcharts-3d-frame highcharts-3d-frame-back",zIndex:n.back.frontFacing?-1e3:1e3,faces:[{fill:Z(n.back.color).brighten(.1).get(),vertexes:[{x:A,y:R,z:O},{x:C,y:R,z:O},{x:l,y:D,z:d},{x:b,y:D,z:d}],enabled:n.back.visible&&!n.bottom.visible},{fill:Z(n.back.color).brighten(.1).get(),vertexes:[{x:C,y:N,z:O},{x:A,y:N,z:O},{x:b,y:k,z:d},{x:l,y:k,z:d}],enabled:n.back.visible&&!n.top.visible},{fill:Z(n.back.color).brighten(-.1).get(),vertexes:[{x:C,y:R,z:O},{x:C,y:N,z:O},{x:l,y:k,z:d},{x:l,y:D,z:d}],enabled:n.back.visible&&!n.left.visible},{fill:Z(n.back.color).brighten(-.1).get(),vertexes:[{x:A,y:N,z:O},{x:A,y:R,z:O},{x:b,y:D,z:d},{x:b,y:k,z:d}],enabled:n.back.visible&&!n.right.visible},{fill:Z(n.back.color).get(),vertexes:[{x:l,y:k,z:d},{x:b,y:k,z:d},{x:b,y:D,z:d},{x:l,y:D,z:d}],enabled:n.back.visible},{fill:Z(n.back.color).get(),vertexes:[{x:C,y:R,z:O},{x:A,y:R,z:O},{x:A,y:N,z:O},{x:C,y:N,z:O}],enabled:n.back.visible}]}),o.frameShapes.front[j]({class:"highcharts-3d-frame highcharts-3d-frame-front",zIndex:n.front.frontFacing?-1e3:1e3,faces:[{fill:Z(n.front.color).brighten(.1).get(),vertexes:[{x:C,y:R,z:L},{x:A,y:R,z:L},{x:b,y:D,z:0},{x:l,y:D,z:0}],enabled:n.front.visible&&!n.bottom.visible},{fill:Z(n.front.color).brighten(.1).get(),vertexes:[{x:A,y:N,z:L},{x:C,y:N,z:L},{x:l,y:k,z:0},{x:b,y:k,z:0}],enabled:n.front.visible&&!n.top.visible},{fill:Z(n.front.color).brighten(-.1).get(),vertexes:[{x:C,y:N,z:L},{x:C,y:R,z:L},{x:l,y:D,z:0},{x:l,y:k,z:0}],enabled:n.front.visible&&!n.left.visible},{fill:Z(n.front.color).brighten(-.1).get(),vertexes:[{x:A,y:R,z:L},{x:A,y:N,z:L},{x:b,y:k,z:0},{x:b,y:D,z:0}],enabled:n.front.visible&&!n.right.visible},{fill:Z(n.front.color).get(),vertexes:[{x:b,y:k,z:0},{x:l,y:k,z:0},{x:l,y:D,z:0},{x:b,y:D,z:0}],enabled:n.front.visible},{fill:Z(n.front.color).get(),vertexes:[{x:A,y:R,z:L},{x:C,y:R,z:L},{x:C,y:N,z:L},{x:A,y:N,z:L}],enabled:n.front.visible}]})}}function S(){this.styledMode&&[{name:"darker",slope:.6},{name:"brighter",slope:1.4}].forEach(function(o){this.renderer.definition({tagName:"filter",attributes:{id:"highcharts-"+o.name},children:[{tagName:"feComponentTransfer",children:[{tagName:"feFuncR",attributes:{type:"linear",slope:o.slope}},{tagName:"feFuncG",attributes:{type:"linear",slope:o.slope}},{tagName:"feFuncB",attributes:{type:"linear",slope:o.slope}}]}]})},this)}function w(){var o=this.options;this.is3d()&&(o.series||[]).forEach(function(e){(e.type||o.chart.type||o.chart.defaultSeriesType)==="scatter"&&(e.type="scatter3d")})}function x(){var o=this,e=o.options.chart.options3d;if(o.chart3d&&o.is3d()){e&&(e.alpha=e.alpha%360+(e.alpha>=0?0:360),e.beta=e.beta%360+(e.beta>=0?0:360));var s=o.inverted,n=o.clipBox,l=o.margin,b=s?"x":"y",k=s?"height":"width",D=s?"width":"height";n[s?"y":"x"]=-(l[3]||0),n[b]=-(l[0]||0),n[k]=o.chartWidth+(l[3]||0)+(l[1]||0),n[D]=o.chartHeight+(l[0]||0)+(l[2]||0),o.scale3d=1,e.fitToPlot===!0&&(o.scale3d=o.chart3d.getScale(e.depth)),o.chart3d.frame3d=o.chart3d.get3dFrame()}}function c(){this.is3d()&&(this.isDirtyBox=!0)}function g(){this.chart3d&&this.is3d()&&(this.chart3d.frame3d=this.chart3d.get3dFrame())}function r(){this.chart3d||(this.chart3d=new m(this))}function a(o){return this.is3d()||o.apply(this,[].slice.call(arguments,1))}function t(o){var e,s=this.series.length;if(this.is3d())for(;s--;)(e=this.series[s]).translate(),e.render();else o.call(this)}function i(o){o.apply(this,[].slice.call(arguments,1)),this.is3d()&&(this.container.className+=" highcharts-3d-chart")}f.Composition=m,f.defaultOptions={chart:{options3d:{enabled:!1,alpha:0,beta:0,depth:100,fitToPlot:!0,viewDistance:25,axisLabelPosition:null,frame:{visible:"default",size:1,bottom:{},top:{},left:{},right:{},back:{},front:{}}}}},f.compose=function(o,e){var s=o.prototype,n=e.prototype;s.is3d=function(){return!!(this.options.chart.options3d&&this.options.chart.options3d.enabled)},s.propsRequireDirtyBox.push("chart.options3d"),s.propsRequireUpdateSeries.push("chart.options3d"),n.matrixSetter=function(){var l;if(this.pos<1&&(M(this.start)||M(this.end))){var b=this.start||[1,0,0,1,0,0],k=this.end||[1,0,0,1,0,0];l=[];for(var D=0;D<6;D++)l.push(this.pos*k[D]+(1-this.pos)*b[D])}else l=this.end;this.elem.attr(this.prop,l,null,!0)},P(!0,V,f.defaultOptions),E(o,"init",r),E(o,"addSeries",u),E(o,"afterDrawChartBox",v),E(o,"afterGetContainer",S),E(o,"afterInit",w),E(o,"afterSetChartSize",x),E(o,"beforeRedraw",c),E(o,"beforeRender",g),h(s,"isInsidePlot",a),h(s,"renderSeries",t),h(s,"setClassName",i)}}($||($={})),$}),et(_,"Core/Axis/ZAxis.js",[_["Core/Axis/Axis.js"],_["Core/Utilities.js"]],function(G,B){var X,U=this&&this.__extends||(X=function(y,h){return X=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var u in m)m.hasOwnProperty(u)&&(f[u]=m[u])},X(y,h)},function(y,h){function f(){this.constructor=y}X(y,h),y.prototype=h===null?Object.create(h):(f.prototype=h.prototype,new f)}),$=B.addEvent,Z=B.merge,V=B.pick,z=B.splat,I=[];function E(y){return new P(this,y)}function M(){var y=this,h=this.options.zAxis=z(this.options.zAxis||{});this.is3d()&&(this.zAxis=[],h.forEach(function(f,m){f.index=m,f.isX=!0,y.addZAxis(f).setScale()}))}var P=function(y){function h(f,m){var u=y.call(this,f,m)||this;return u.isZAxis=!0,u}return U(h,y),h.compose=function(f){if(I.indexOf(f)===-1){I.push(f),$(f,"afterGetAxes",M);var m=f.prototype;m.addZAxis=E,m.collectionsWithInit.zAxis=[m.addZAxis],m.collectionsWithUpdate.push("zAxis")}},h.prototype.getSeriesExtremes=function(){var f=this,m=this.chart;this.hasVisibleSeries=!1,this.dataMin=this.dataMax=this.ignoreMinPadding=this.ignoreMaxPadding=void 0,this.stacking&&this.stacking.buildStacks(),this.series.forEach(function(u){if(u.visible||!m.options.chart.ignoreHiddenSeries){f.hasVisibleSeries=!0;var v=u.zData;v.length&&(f.dataMin=Math.min(V(f.dataMin,v[0]),Math.min.apply(null,v)),f.dataMax=Math.max(V(f.dataMax,v[0]),Math.max.apply(null,v)))}})},h.prototype.setAxisSize=function(){var f=this.chart;y.prototype.setAxisSize.call(this),this.width=this.len=f.options.chart.options3d&&f.options.chart.options3d.depth||0,this.right=f.chartWidth-this.width-this.left},h.prototype.setOptions=function(f){f=Z({offset:0,lineWidth:0},f),this.isZAxis=!0,y.prototype.setOptions.call(this,f),this.coll="zAxis"},h}(G);return P}),et(_,"Core/Axis/Axis3DDefaults.js",[],function(){return{labels:{position3d:"offset",skew3d:!1},title:{position3d:null,skew3d:null}}}),et(_,"Core/Axis/Tick3DComposition.js",[_["Core/Utilities.js"]],function(G){var B=G.addEvent,X=G.extend,U=G.wrap,$=[];function Z(z){var I=this.axis.axis3D;I&&X(z.pos,I.fix3dPosition(z.pos))}function V(z){var I=this.axis.axis3D,E=z.apply(this,[].slice.call(arguments,1));if(I){var M=E[0],P=E[1];if(M[0]==="M"&&P[0]==="L"){var y=[I.fix3dPosition({x:M[1],y:M[2],z:0}),I.fix3dPosition({x:P[1],y:P[2],z:0})];return this.axis.chart.renderer.toLineSegments(y)}}return E}return{compose:function(z){$.indexOf(z)===-1&&($.push(z),B(z,"afterGetLabelPosition",Z),U(z.prototype,"getMarkPath",V))}}}),et(_,"Core/Axis/Axis3DComposition.js",[_["Core/Axis/Axis3DDefaults.js"],_["Core/Globals.js"],_["Core/Math3D.js"],_["Core/Axis/Tick3DComposition.js"],_["Core/Utilities.js"]],function(G,B,X,U,$){var Z=B.deg2rad,V=X.perspective,z=X.perspective3D,I=X.shapeArea,E=$.addEvent,M=$.merge,P=$.pick,y=$.wrap,h=[];function f(){var r=this,a=r.chart,t=r.options;a.is3d&&a.is3d()&&r.coll!=="colorAxis"&&(t.tickWidth=P(t.tickWidth,0),t.gridLineWidth=P(t.gridLineWidth,1))}function m(r){var a=this;a.chart.is3d()&&a.coll!=="colorAxis"&&r.point&&(r.point.crosshairPos=a.isXAxis?r.point.axisXpos:a.len-r.point.axisYpos)}function u(){var r=this;r.axis3D||(r.axis3D=new g(r))}function v(r){var a=this;return a.chart.is3d()&&a.coll!=="colorAxis"?[]:r.apply(a,[].slice.call(arguments,1))}function S(r){if(!this.chart.is3d()||this.coll==="colorAxis")return r.apply(this,[].slice.call(arguments,1));var a=arguments,t=a[1],i=a[2],o=[],e=this.getPlotLinePath({value:t}),s=this.getPlotLinePath({value:i});if(e&&s)for(var n=0;n<e.length;n+=2){var l=e[n],b=e[n+1],k=s[n],D=s[n+1];l[0]==="M"&&b[0]==="L"&&k[0]==="M"&&D[0]==="L"&&o.push(l,b,D,["L",k[1],k[2]],["Z"])}return o}function w(r){var a=this,t=a.axis3D,i=a.chart,o=r.apply(a,[].slice.call(arguments,1));if(a.coll==="colorAxis"||!i.chart3d||!i.is3d()||o===null)return o;var e,s=i.options.chart.options3d,n=a.isZAxis?i.plotWidth:s.depth,l=i.chart3d.frame3d,b=o[0],k=o[1],D=[];return b[0]==="M"&&k[0]==="L"&&(e=[t.swapZ({x:b[1],y:b[2],z:0}),t.swapZ({x:b[1],y:b[2],z:n}),t.swapZ({x:k[1],y:k[2],z:0}),t.swapZ({x:k[1],y:k[2],z:n})],this.horiz?this.isZAxis?(l.left.visible&&D.push(e[0],e[2]),l.right.visible&&D.push(e[1],e[3]),l.top.visible&&D.push(e[0],e[1]),l.bottom.visible&&D.push(e[2],e[3])):(l.front.visible&&D.push(e[0],e[2]),l.back.visible&&D.push(e[1],e[3]),l.top.visible&&D.push(e[0],e[1]),l.bottom.visible&&D.push(e[2],e[3])):(l.front.visible&&D.push(e[0],e[2]),l.back.visible&&D.push(e[1],e[3]),l.left.visible&&D.push(e[0],e[1]),l.right.visible&&D.push(e[2],e[3])),D=V(D,this.chart,!1)),i.renderer.toLineSegments(D)}function x(r,a){var t=this,i=t.chart,o=t.ticks,e=t.gridGroup;if(t.categories&&i.frameShapes&&i.is3d()&&e&&a&&a.label){var s=e.element.childNodes[0].getBBox(),n=i.frameShapes.left.getBBox(),l=i.options.chart.options3d,b={x:i.plotWidth/2,y:i.plotHeight/2,z:l.depth/2,vd:P(l.depth,1)*P(l.viewDistance,0)},k=a.pos,D=o[k-1],d=o[k+1],C=void 0,A=void 0,N=void 0;return k!==0&&D&&D.label&&D.label.xy&&(A=z({x:D.label.xy.x,y:D.label.xy.y,z:null},b,b.vd)),d&&d.label&&d.label.xy&&(N=z({x:d.label.xy.x,y:d.label.xy.y,z:null},b,b.vd)),C={x:a.label.xy.x,y:a.label.xy.y,z:null},C=z(C,b,b.vd),Math.abs(A?C.x-A.x:N?N.x-C.x:s.x-n.x)}return r.apply(t,[].slice.call(arguments,1))}function c(r){var a=r.apply(this,[].slice.call(arguments,1));return this.axis3D?this.axis3D.fix3dPosition(a,!0):a}var g=function(){function r(a){this.axis=a}return r.compose=function(a,t){if(U.compose(t),h.indexOf(a)===-1){h.push(a),M(!0,a.defaultOptions,G),a.keepProps.push("axis3D"),E(a,"init",u),E(a,"afterSetOptions",f),E(a,"drawCrosshair",m);var i=a.prototype;y(i,"getLinePath",v),y(i,"getPlotBandPath",S),y(i,"getPlotLinePath",w),y(i,"getSlotWidth",x),y(i,"getTitlePosition",c)}},r.prototype.fix3dPosition=function(a,t){var i=this.axis,o=i.chart;if(i.coll==="colorAxis"||!o.chart3d||!o.is3d())return a;var e,s=Z*o.options.chart.options3d.alpha,n=Z*o.options.chart.options3d.beta,l=P(t&&i.options.title.position3d,i.options.labels.position3d),b=P(t&&i.options.title.skew3d,i.options.labels.skew3d),k=o.chart3d.frame3d,D=o.plotLeft,d=o.plotWidth+D,C=o.plotTop,A=o.plotHeight+C,N=0,R=0,L={x:0,y:1,z:0},O=!1;if(a=i.axis3D.swapZ({x:a.x,y:a.y,z:0}),i.isZAxis)if(i.opposite){if(k.axes.z.top===null)return{};R=a.y-C,a.x=k.axes.z.top.x,a.y=k.axes.z.top.y,e=k.axes.z.top.xDir,O=!k.top.frontFacing}else{if(k.axes.z.bottom===null)return{};R=a.y-A,a.x=k.axes.z.bottom.x,a.y=k.axes.z.bottom.y,e=k.axes.z.bottom.xDir,O=!k.bottom.frontFacing}else if(i.horiz)if(i.opposite){if(k.axes.x.top===null)return{};R=a.y-C,a.y=k.axes.x.top.y,a.z=k.axes.x.top.z,e=k.axes.x.top.xDir,O=!k.top.frontFacing}else{if(k.axes.x.bottom===null)return{};R=a.y-A,a.y=k.axes.x.bottom.y,a.z=k.axes.x.bottom.z,e=k.axes.x.bottom.xDir,O=!k.bottom.frontFacing}else if(i.opposite){if(k.axes.y.right===null)return{};N=a.x-d,a.x=k.axes.y.right.x,a.z=k.axes.y.right.z,e={x:(e=k.axes.y.right.xDir).z,y:e.y,z:-e.x}}else{if(k.axes.y.left===null)return{};N=a.x-D,a.x=k.axes.y.left.x,a.z=k.axes.y.left.z,e=k.axes.y.left.xDir}if(l!=="chart")if(l==="flap")if(i.horiz){var j=Math.sin(s),Y=Math.cos(s);i.opposite&&(j=-j),O&&(j=-j),L={x:e.z*j,y:Y,z:-e.x*j}}else e={x:Math.cos(n),y:0,z:Math.sin(n)};else if(l==="ortho")if(i.horiz){var H=Math.sin(s),W=Math.cos(s),q={x:Math.sin(n)*W,y:-H,z:-W*Math.cos(n)};L={x:e.y*q.z-e.z*q.y,y:e.z*q.x-e.x*q.z,z:e.x*q.y-e.y*q.x};var Q=1/Math.sqrt(L.x*L.x+L.y*L.y+L.z*L.z);O&&(Q=-Q),L={x:Q*L.x,y:Q*L.y,z:Q*L.z}}else e={x:Math.cos(n),y:0,z:Math.sin(n)};else i.horiz?L={x:Math.sin(n)*Math.sin(s),y:Math.cos(s),z:-Math.cos(n)*Math.sin(s)}:e={x:Math.cos(n),y:0,z:Math.sin(n)};a.x+=N*e.x+R*L.x,a.y+=N*e.y+R*L.y,a.z+=N*e.z+R*L.z;var J=V([a],i.chart)[0];if(b){I(V([a,{x:a.x+e.x,y:a.y+e.y,z:a.z+e.z},{x:a.x+L.x,y:a.y+L.y,z:a.z+L.z}],i.chart))<0&&(e={x:-e.x,y:-e.y,z:-e.z});var nt=V([{x:a.x,y:a.y,z:a.z},{x:a.x+e.x,y:a.y+e.y,z:a.z+e.z},{x:a.x+L.x,y:a.y+L.y,z:a.z+L.z}],i.chart);J.matrix=[nt[1].x-nt[0].x,nt[1].y-nt[0].y,nt[2].x-nt[0].x,nt[2].y-nt[0].y,J.x,J.y],J.matrix[4]-=J.x*J.matrix[0]+J.y*J.matrix[2],J.matrix[5]-=J.x*J.matrix[1]+J.y*J.matrix[3]}return J},r.prototype.swapZ=function(a,t){var i=this.axis;if(i.isZAxis){var o=t?0:i.chart.plotLeft;return{x:o+a.z,y:a.y,z:a.x-o}}return a},r}();return g}),et(_,"Core/Series/Series3D.js",[_["Core/Math3D.js"],_["Core/Series/Series.js"],_["Core/Utilities.js"]],function(G,B,X){var U,$=this&&this.__extends||(U=function(y,h){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var u in m)m.hasOwnProperty(u)&&(f[u]=m[u])},U(y,h)},function(y,h){function f(){this.constructor=y}U(y,h),y.prototype=h===null?Object.create(h):(f.prototype=h.prototype,new f)}),Z=G.perspective,V=X.addEvent,z=X.extend,I=X.merge,E=X.pick,M=X.isNumber,P=function(y){function h(){return y!==null&&y.apply(this,arguments)||this}return $(h,y),h.prototype.translate=function(){y.prototype.translate.apply(this,arguments),this.chart.is3d()&&this.translate3dPoints()},h.prototype.translate3dPoints=function(){var f,m,u,v,S,w=this,x=w.options,c=w.chart,g=E(w.zAxis,c.options.zAxis[0]),r=[],a=[],t=x.stacking?M(x.stack)?x.stack:0:w.index||0;for(w.zPadding=t*(x.depth||0+(x.groupZPadding||1)),S=0;S<w.data.length;S++)f=w.data[S],g&&g.translate?(v=g.logarithmic&&g.val2lin?g.val2lin(f.z):f.z,f.plotZ=g.translate(v),f.isInside=!!f.isInside&&v>=g.min&&v<=g.max):f.plotZ=w.zPadding,f.axisXpos=f.plotX,f.axisYpos=f.plotY,f.axisZpos=f.plotZ,r.push({x:f.plotX,y:f.plotY,z:f.plotZ}),a.push(f.plotX||0);for(w.rawPointsX=a,m=Z(r,c,!0),S=0;S<w.data.length;S++)f=w.data[S],u=m[S],f.plotX=u.x,f.plotY=u.y,f.plotZ=u.z},h.defaultOptions=I(B.defaultOptions),h}(B);return V(B,"afterTranslate",function(){this.chart.is3d()&&this.translate3dPoints()}),z(B.prototype,{translate3dPoints:P.prototype.translate3dPoints}),P}),et(_,"Series/Area3D/Area3DSeries.js",[_["Core/Math3D.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,X){var U=G.perspective,$=B.seriesTypes.line.prototype,Z=X.wrap,V=[];function z(I){var E=this,M=I.apply(E,[].slice.call(arguments,1));if(!E.chart.is3d())return M;var P=$.getGraphPath,y=E.options,h=Math.round(E.yAxis.getThreshold(y.threshold)),f=[];if(E.rawPointsX)for(var m=0;m<E.points.length;m++)f.push({x:E.rawPointsX[m],y:y.stacking?E.points[m].yBottom:h,z:E.zPadding});var u=E.chart.options.chart.options3d;f=U(f,E.chart,!0).map(function(w){return{plotX:w.x,plotY:w.y,plotZ:w.z}}),E.group&&u&&u.depth&&u.beta&&(E.markerGroup&&(E.markerGroup.add(E.group),E.markerGroup.attr({translateX:0,translateY:0})),E.group.attr({zIndex:Math.max(1,u.beta>270||u.beta<90?u.depth-Math.round(E.zPadding||0):Math.round(E.zPadding||0))})),f.reversed=!0;var v=P.call(E,f,!0,!0);if(v[0]&&v[0][0]==="M"&&(v[0]=["L",v[0][1],v[0][2]]),E.areaPath){var S=E.areaPath.splice(0,E.areaPath.length/2).concat(v);S.xMap=E.areaPath.xMap,E.areaPath=S}return M}return{compose:function(I){V.indexOf(I)===-1&&(V.push(I),Z(I.prototype,"getGraphPath",z))}}}),et(_,"Series/Column3D/Column3DComposition.js",[_["Series/Column/ColumnSeries.js"],_["Core/Globals.js"],_["Core/Series/Series.js"],_["Core/Math3D.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Axis/Stacking/StackItem.js"],_["Core/Utilities.js"]],function(G,B,X,U,$,Z,V){var z=G.prototype,I=B.svg,E=U.perspective,M=V.addEvent,P=V.pick,y=V.wrap;function h(v){var S=v.apply(this,[].slice.call(arguments,1));return this.chart.is3d&&this.chart.is3d()&&(S.stroke=this.options.edgeColor||S.fill,S["stroke-width"]=P(this.options.edgeWidth,1)),S}function f(v,S,w){var x=this.chart.is3d&&this.chart.is3d();x&&(this.options.inactiveOtherPoints=!0),v.call(this,S,w),x&&(this.options.inactiveOtherPoints=!1)}function m(v){for(var S=[],w=1;w<arguments.length;w++)S[w-1]=arguments[w];return this.series.chart.is3d()?this.graphic&&this.graphic.element.nodeName!=="g":v.apply(this,S)}if(y(z,"translate",function(v){v.apply(this,[].slice.call(arguments,1)),this.chart.is3d()&&this.translate3dShapes()}),y(X.prototype,"justifyDataLabel",function(v){return!arguments[2].outside3dPlot&&v.apply(this,[].slice.call(arguments,1))}),z.translate3dPoints=function(){},z.translate3dShapes=function(){var v,S=this,w=S.chart,x=S.options,c=x.depth,g=(x.stacking?x.stack||0:S.index)*(c+(x.groupZPadding||1)),r=S.borderWidth%2?.5:0;w.inverted&&!S.yAxis.reversed&&(r*=-1),x.grouping!==!1&&(g=0),g+=x.groupZPadding||1,S.data.forEach(function(a){if(a.outside3dPlot=null,a.y!==null){var t,i=a.shapeArgs,o=a.tooltipPos;[["x","width"],["y","height"]].forEach(function(e){if((t=i[e[0]]-r)<0&&(i[e[1]]+=i[e[0]]+r,i[e[0]]=-r,t=0),t+i[e[1]]>S[e[0]+"Axis"].len&&i[e[1]]!==0&&(i[e[1]]=S[e[0]+"Axis"].len-i[e[0]]),i[e[1]]!==0&&(i[e[0]]>=S[e[0]+"Axis"].len||i[e[0]]+i[e[1]]<=r)){for(var s in i)i[s]=s==="y"?-9999:0;a.outside3dPlot=!0}}),a.shapeType==="rect"&&(a.shapeType="cuboid"),i.z=g,i.depth=c,i.insidePlotArea=!0,v={x:i.x+i.width/2,y:i.y,z:g+c/2},w.inverted&&(v.x=i.height,v.y=a.clientX),a.plot3d=E([v],w,!0,!1)[0],o=E([{x:o[0],y:o[1],z:g+c/2}],w,!0,!1)[0],a.tooltipPos=[o.x,o.y]}}),S.z=g},y(z,"animate",function(v){if(this.chart.is3d()){var S=arguments[1],w=this.yAxis,x=this,c=this.yAxis.reversed;I&&(S?x.data.forEach(function(g){g.y!==null&&(g.height=g.shapeArgs.height,g.shapey=g.shapeArgs.y,g.shapeArgs.height=1,c||(g.stackY?g.shapeArgs.y=g.plotY+w.translate(g.stackY):g.shapeArgs.y=g.plotY+(g.negative?-g.height:g.height)))}):(x.data.forEach(function(g){g.y!==null&&(g.shapeArgs.height=g.height,g.shapeArgs.y=g.shapey,g.graphic&&g.graphic[g.outside3dPlot?"attr":"animate"](g.shapeArgs,x.options.animation))}),this.drawDataLabels()))}else v.apply(this,[].slice.call(arguments,1))}),y(z,"plotGroup",function(v,S,w,x,c,g){return S!=="dataLabelsGroup"&&S!=="markerGroup"&&this.chart.is3d()&&(this[S]&&delete this[S],g&&(this.chart.columnGroup||(this.chart.columnGroup=this.chart.renderer.g("columnGroup").add(g)),this[S]=this.chart.columnGroup,this.chart.columnGroup.attr(this.getPlotBox()),this[S].survive=!0,S==="group"&&(arguments[3]="visible"))),v.apply(this,Array.prototype.slice.call(arguments,1))}),y(z,"setVisible",function(v,S){var w=this;w.chart.is3d()&&w.data.forEach(function(x){x.visible=x.options.visible=S=S===void 0?!P(w.visible,x.visible):S,w.options.data[w.data.indexOf(x)]=x.options,x.graphic&&x.graphic.attr({visibility:S?"visible":"hidden"})}),v.apply(this,Array.prototype.slice.call(arguments,1))}),M(G,"afterInit",function(){if(this.chart.is3d()){var v=this.options,S=v.grouping,w=v.stacking,x=this.yAxis.options.reversedStacks,c=0;if(S===void 0||S){var g=function(t,i){var o,e=t.series,s={totalStacks:0},n=1;return e.forEach(function(l){o=P(l.options.stack,i?0:e.length-1-l.index),s[o]?s[o].series.push(l):(s[o]={series:[l],position:n},n++)}),s.totalStacks=n+1,s}(this.chart,w),r=v.stack||0,a=void 0;for(a=0;a<g[r].series.length&&g[r].series[a]!==this;a++);c=10*(g.totalStacks-g[r].position)+(x?a:-a),this.xAxis.reversed||(c=10*g.totalStacks-c)}v.depth=v.depth||25,this.z=this.z||0,v.zIndex=c}}),y(z,"pointAttribs",h),y(z,"setState",f),y(z.pointClass.prototype,"hasNewShapeType",m),$.seriesTypes.columnRange){var u=$.seriesTypes.columnrange.prototype;y(u,"pointAttribs",h),y(u,"setState",f),y(u.pointClass.prototype,"hasNewShapeType",m),u.plotGroup=z.plotGroup,u.setVisible=z.setVisible}return y(X.prototype,"alignDataLabel",function(v,S,w,x,c){var g=this.chart;if(x.outside3dPlot=S.outside3dPlot,g.is3d()&&this.is("column")){var r=this,a=r.options,t=P(x.inside,!!r.options.stacking),i=g.options.chart.options3d,o=S.pointWidth/2||0,e={x:c.x+o,y:c.y,z:r.z+a.depth/2};g.inverted&&(t&&(c.width=0,e.x+=S.shapeArgs.height/2),i.alpha>=90&&i.alpha<=270&&(e.y+=S.shapeArgs.width)),e=E([e],g,!0,!1)[0],c.x=e.x-o,c.y=S.outside3dPlot?-9e9:e.y}v.apply(this,[].slice.call(arguments,1))}),y(Z.prototype,"getStackBox",function(v,S){var w=v.apply(this,[].slice.call(arguments,1)),x=this.axis.chart,c=S.width;if(x.is3d()&&this.base){var g=+this.base.split(",")[0],r=x.series[g],a=x.options.chart.options3d;if(r&&r instanceof $.seriesTypes.column){var t={x:w.x+(x.inverted?w.height:c/2),y:w.y,z:r.options.depth/2};x.inverted&&(w.width=0,a.alpha>=90&&a.alpha<=270&&(t.y+=c)),t=E([t],x,!0,!1)[0],w.x=t.x-c/2,w.y=t.y}}return w}),G}),et(_,"Series/Pie3D/Pie3DPoint.js",[_["Core/Series/SeriesRegistry.js"]],function(G){var B,X=this&&this.__extends||(B=function(V,z){return B=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(I,E){I.__proto__=E}||function(I,E){for(var M in E)E.hasOwnProperty(M)&&(I[M]=E[M])},B(V,z)},function(V,z){function I(){this.constructor=V}B(V,z),V.prototype=z===null?Object.create(z):(I.prototype=z.prototype,new I)}),U=G.seriesTypes.pie.prototype.pointClass,$=U.prototype.haloPath,Z=function(V){function z(){var I=V!==null&&V.apply(this,arguments)||this;return I.series=void 0,I}return X(z,V),z.prototype.haloPath=function(){return this.series.chart.is3d()?[]:$.apply(this,arguments)},z}(U);return Z}),et(_,"Series/Pie3D/Pie3DSeries.js",[_["Core/Globals.js"],_["Series/Pie3D/Pie3DPoint.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,X,U){var $,Z=this&&this.__extends||($=function(y,h){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var u in m)m.hasOwnProperty(u)&&(f[u]=m[u])},$(y,h)},function(y,h){function f(){this.constructor=y}$(y,h),y.prototype=h===null?Object.create(h):(f.prototype=h.prototype,new f)}),V=G.deg2rad,z=G.svg,I=X.seriesTypes.pie,E=U.extend,M=U.pick,P=function(y){function h(){return y!==null&&y.apply(this,arguments)||this}return Z(h,y),h.prototype.addPoint=function(){y.prototype.addPoint.apply(this,arguments),this.chart.is3d()&&this.update(this.userOptions,!0)},h.prototype.animate=function(f){if(this.chart.is3d()){var m=this.options.animation,u=void 0,v=this.center,S=this.group,w=this.markerGroup;z&&(m===!0&&(m={}),f?(S.oldtranslateX=M(S.oldtranslateX,S.translateX),S.oldtranslateY=M(S.oldtranslateY,S.translateY),u={translateX:v[0],translateY:v[1],scaleX:.001,scaleY:.001},S.attr(u),w&&(w.attrSetters=S.attrSetters,w.attr(u))):(u={translateX:S.oldtranslateX,translateY:S.oldtranslateY,scaleX:1,scaleY:1},S.animate(u,m),w&&w.animate(u,m)))}else y.prototype.animate.apply(this,arguments)},h.prototype.drawDataLabels=function(){if(this.chart.is3d()){var f=this.chart.options.chart.options3d;this.data.forEach(function(m){var u=m.shapeArgs,v=u.r,S=(u.alpha||f.alpha)*V,w=(u.beta||f.beta)*V,x=(u.start+u.end)/2,c=m.labelPosition,g=c.connectorPosition,r=-v*(1-Math.cos(S))*Math.sin(x),a=v*(Math.cos(w)-1)*Math.cos(x);[c.natural,g.breakAt,g.touchingSliceAt].forEach(function(t){t.x+=a,t.y+=r})})}y.prototype.drawDataLabels.apply(this,arguments)},h.prototype.pointAttribs=function(f){var m=y.prototype.pointAttribs.apply(this,arguments),u=this.options;return this.chart.is3d()&&!this.chart.styledMode&&(m.stroke=u.edgeColor||f.color||this.color,m["stroke-width"]=M(u.edgeWidth,1)),m},h.prototype.translate=function(){if(y.prototype.translate.apply(this,arguments),this.chart.is3d()){var f=this,m=f.options,u=m.depth||0,v=f.chart.options.chart.options3d,S=v.alpha,w=v.beta,x=m.stacking?(m.stack||0)*u:f._i*u;x+=u/2,m.grouping!==!1&&(x=0),f.data.forEach(function(c){var g,r=c.shapeArgs;c.shapeType="arc3d",r.z=x,r.depth=.75*u,r.alpha=S,r.beta=w,r.center=f.center,g=(r.end+r.start)/2,c.slicedTranslation={translateX:Math.round(Math.cos(g)*m.slicedOffset*Math.cos(S*V)),translateY:Math.round(Math.sin(g)*m.slicedOffset*Math.cos(S*V))}})}},h.prototype.drawTracker=function(){y.prototype.drawTracker.apply(this,arguments),this.chart.is3d()&&this.points.forEach(function(f){f.graphic&&["out","inn","side1","side2"].forEach(function(m){f.graphic&&(f.graphic[m].element.point=f)})})},h}(I);return E(P.prototype,{pointClass:B}),P}),et(_,"Series/Pie3D/Pie3DComposition.js",[_["Series/Pie3D/Pie3DPoint.js"],_["Series/Pie3D/Pie3DSeries.js"],_["Core/Series/SeriesRegistry.js"]],function(G,B,X){X.seriesTypes.pie.prototype.pointClass.prototype.haloPath=G.prototype.haloPath,X.seriesTypes.pie=B}),et(_,"Series/Scatter3D/Scatter3DPoint.js",[_["Series/Scatter/ScatterSeries.js"],_["Core/Utilities.js"]],function(G,B){var X,U=this&&this.__extends||(X=function(V,z){return X=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(I,E){I.__proto__=E}||function(I,E){for(var M in E)E.hasOwnProperty(M)&&(I[M]=E[M])},X(V,z)},function(V,z){function I(){this.constructor=V}X(V,z),V.prototype=z===null?Object.create(z):(I.prototype=z.prototype,new I)}),$=B.defined,Z=function(V){function z(){var I=V!==null&&V.apply(this,arguments)||this;return I.options=void 0,I.series=void 0,I}return U(z,V),z.prototype.applyOptions=function(){return V.prototype.applyOptions.apply(this,arguments),$(this.z)||(this.z=0),this},z}(G.prototype.pointClass);return Z}),et(_,"Series/Scatter3D/Scatter3DSeries.js",[_["Core/Math3D.js"],_["Series/Scatter3D/Scatter3DPoint.js"],_["Series/Scatter/ScatterSeries.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,X,U,$){var Z,V=this&&this.__extends||(Z=function(P,y){return Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,f){h.__proto__=f}||function(h,f){for(var m in f)f.hasOwnProperty(m)&&(h[m]=f[m])},Z(P,y)},function(P,y){function h(){this.constructor=P}Z(P,y),P.prototype=y===null?Object.create(y):(h.prototype=y.prototype,new h)}),z=G.pointCameraDistance,I=$.extend,E=$.merge,M=function(P){function y(){var h=P!==null&&P.apply(this,arguments)||this;return h.data=void 0,h.options=void 0,h.points=void 0,h}return V(y,P),y.prototype.pointAttribs=function(h){var f=P.prototype.pointAttribs.apply(this,arguments);return this.chart.is3d()&&h&&(f.zIndex=z(h,this.chart)),f},y.defaultOptions=E(X.defaultOptions,{tooltip:{pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>z: <b>{point.z}</b><br/>"}}),y}(X);return I(M.prototype,{axisTypes:["xAxis","yAxis","zAxis"],directTouch:!0,parallelArrays:["x","y","z"],pointArrayMap:["x","y","z"],pointClass:B}),U.registerSeriesType("scatter3d",M),M}),et(_,"masters/highcharts-3d.src.js",[_["Core/Globals.js"],_["Core/Renderer/SVG/SVGRenderer3D.js"],_["Core/Chart/Chart3D.js"],_["Core/Axis/ZAxis.js"],_["Core/Axis/Axis3DComposition.js"],_["Series/Area3D/Area3DSeries.js"]],function(G,B,X,U,$,Z){var V=G;B.compose(V.SVGRenderer),X.compose(V.Chart,V.Fx),U.compose(V.Chart),$.compose(V.Axis,V.Tick),Z.compose(V.seriesTypes.area)})},it.exports?(pt.default=pt,it.exports=pt):(ht=[st(4783)],(ct=function(ft){return pt(ft),pt.Highcharts=ft,pt}.apply(rt,ht))===void 0||(it.exports=ct))},1548:(it,rt,st)=>{st.d(rt,{A:()=>ct});var ht=Function.prototype.toString;const ct=function(pt){if(pt!=null){try{return ht.call(pt)}catch(ft){}try{return pt+""}catch(ft){}}return""}},2060:(it,rt,st)=>{var ht,ct,pt;pt=function(ft){var _=ft?ft._modules:{};function et(G,B,X,U){G.hasOwnProperty(B)||(G[B]=U.apply(null,X),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:B,module:G[B]}})))}et(_,"Series/Funnel/FunnelSeries.js",[_["Core/Chart/Chart.js"],_["Core/Globals.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,X,U){var $,Z=this&&this.__extends||($=function(u,v){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,w){S.__proto__=w}||function(S,w){for(var x in w)w.hasOwnProperty(x)&&(S[x]=w[x])},$(u,v)},function(u,v){function S(){this.constructor=u}$(u,v),u.prototype=v===null?Object.create(v):(S.prototype=v.prototype,new S)}),V=B.noop,z=X.series,I=X.seriesTypes.pie,E=U.addEvent,M=U.extend,P=U.fireEvent,y=U.isArray,h=U.merge,f=U.pick,m=function(u){function v(){var S=u!==null&&u.apply(this,arguments)||this;return S.data=void 0,S.options=void 0,S.points=void 0,S}return Z(v,u),v.prototype.alignDataLabel=function(S,w,x,c,g){var r=S.series,a=r.options.reversed,t=S.dlBox||S.shapeArgs,i=x.align,o=x.verticalAlign,e=((r.options||{}).dataLabels||{}).inside,s=r.center[1],n=a?2*s-S.plotY:S.plotY,l=r.getWidthAt(n-t.height/2+w.height),b=o==="middle"?(t.topWidth-t.bottomWidth)/4:(l-t.bottomWidth)/2,k=t.y,D=t.x,d=f(w.height,w.getBBox().height);o==="middle"?k=t.y-t.height/2+d/2:o==="top"&&(k=t.y-t.height+d+x.padding),(o==="top"&&!a||o==="bottom"&&a||o==="middle")&&(i==="right"?D=t.x-x.padding+b:i==="left"&&(D=t.x+x.padding-b)),c={x:D,y:a?k-t.height:k,width:t.bottomWidth,height:t.height},x.verticalAlign="bottom",e&&!S.visible||z.prototype.alignDataLabel.call(this,S,w,x,c,g),e&&(!S.visible&&S.dataLabel&&(S.dataLabel.placed=!1),S.contrastColor&&w.css({color:S.contrastColor}))},v.prototype.drawDataLabels=function(){var S,w,x,c,g,r=this,a=r.data,t=r.options.dataLabels.distance,i=a.length;for(r.center[2]-=2*t;i--;)w=(S=(x=a[i]).half)?1:-1,g=x.plotY,x.labelDistance=f(x.options.dataLabels&&x.options.dataLabels.distance,t),r.maxLabelDistance=Math.max(x.labelDistance,r.maxLabelDistance||0),c=r.getX(g,S,x),x.labelPosition={natural:{x:0,y:g},final:{},alignment:S?"right":"left",connectorPosition:{breakAt:{x:c+(x.labelDistance-5)*w,y:g},touchingSliceAt:{x:c+x.labelDistance*w,y:g}}};X.seriesTypes[r.options.dataLabels.inside?"column":"pie"].prototype.drawDataLabels.call(this)},v.prototype.translate=function(){var S,w,x,c,g,r,a,t,i,o,e=0,s=this,n=s.chart,l=s.options,b=l.reversed,k=l.ignoreHiddenPoint,D=n.plotWidth,d=n.plotHeight,C=0,A=l.center,N=Q(A[0],D),R=Q(A[1],d),L=Q(l.width,D),O=Q(l.height,d),j=Q(l.neckWidth,D),Y=Q(l.neckHeight,d),H=R-O/2+O-Y,W=s.data,q=l.dataLabels.position==="left"?1:0;function Q(J,nt){return/%$/.test(J)?nt*parseInt(J,10)/100:parseInt(J,10)}s.getWidthAt=function(J){return J>H||O===Y?j:j+(L-j)*(1-(J-(R-O/2))/(O-Y))},s.getX=function(J,nt,lt){return N+(nt?-1:1)*(s.getWidthAt(b?2*R-J:J)/2+lt.labelDistance)},s.center=[N,R,O],s.centerX=N,W.forEach(function(J){k&&J.visible===!1||(e+=J.y)}),W.forEach(function(J){o=null,x=e?J.y/e:0,t=(g=R-O/2+C*O)+x*O,S=s.getWidthAt(g),r=(c=N-S/2)+S,S=s.getWidthAt(t),i=(a=N-S/2)+S,g>H?(c=a=N-j/2,r=i=N+j/2):t>H&&(o=t,S=s.getWidthAt(H),i=(a=N-S/2)+S,t=H),b&&(g=2*R-g,t=2*R-t,o!==null&&(o=2*R-o)),w=[["M",c,g],["L",r,g],["L",i,t]],o!==null&&w.push(["L",i,o],["L",a,o]),w.push(["L",a,t],["Z"]),J.shapeType="path",J.shapeArgs={d:w},J.percentage=100*x,J.plotX=N,J.plotY=(g+(o||t))/2,J.tooltipPos=[N,J.plotY],J.dlBox={x:a,y:g,topWidth:r-c,bottomWidth:i-a,height:Math.abs(f(o,t)-g),width:NaN},J.slice=V,J.half=q,k&&J.visible===!1||(C+=x)}),P(s,"afterTranslate")},v.prototype.sortByAngle=function(S){S.sort(function(w,x){return w.plotY-x.plotY})},v.defaultOptions=h(I.defaultOptions,{animation:!1,center:["50%","50%"],width:"90%",neckWidth:"30%",height:"100%",neckHeight:"25%",reversed:!1,size:!0,dataLabels:{connectorWidth:1,verticalAlign:"middle"},states:{select:{color:"#cccccc",borderColor:"#000000"}}}),v}(I);return M(m.prototype,{animate:V}),E(G,"afterHideAllOverlappingLabels",function(){this.series.forEach(function(u){var v=u.options&&u.options.dataLabels;y(v)&&(v=v[0]),u.is("pie")&&u.placeDataLabels&&v&&!v.inside&&u.placeDataLabels()})}),X.registerSeriesType("funnel",m),m}),et(_,"Series/Pyramid/PyramidSeries.js",[_["Series/Funnel/FunnelSeries.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,X){var U,$=this&&this.__extends||(U=function(z,I){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,M){E.__proto__=M}||function(E,M){for(var P in M)M.hasOwnProperty(P)&&(E[P]=M[P])},U(z,I)},function(z,I){function E(){this.constructor=z}U(z,I),z.prototype=I===null?Object.create(I):(E.prototype=I.prototype,new E)}),Z=X.merge,V=function(z){function I(){var E=z!==null&&z.apply(this,arguments)||this;return E.data=void 0,E.options=void 0,E.points=void 0,E}return $(I,z),I.defaultOptions=Z(G.defaultOptions,{neckWidth:"0%",neckHeight:"0%",reversed:!0}),I}(G);return B.registerSeriesType("pyramid",V),V}),et(_,"masters/modules/funnel.src.js",[],function(){})},it.exports?(pt.default=pt,it.exports=pt):(ht=[st(4783)],(ct=function(ft){return pt(ft),pt.Highcharts=ft,pt}.apply(rt,ht))===void 0||(it.exports=ct))},2281:(it,rt,st)=>{st.r(rt),st.d(rt,{default:()=>ye});var ht=st(6096),ct=st(5436),pt=st(3269);function ft(Et){var Gt=this.__data__=new ht.A(Et);this.size=Gt.size}ft.prototype.clear=function(){this.__data__=new ht.A,this.size=0},ft.prototype.delete=function(Et){var Gt=this.__data__,Yt=Gt.delete(Et);return this.size=Gt.size,Yt},ft.prototype.get=function(Et){return this.__data__.get(Et)},ft.prototype.has=function(Et){return this.__data__.has(Et)},ft.prototype.set=function(Et,Gt){var Yt=this.__data__;if(Yt instanceof ht.A){var $t=Yt.__data__;if(!ct.A||$t.length<199)return $t.push([Et,Gt]),this.size=++Yt.size,this;Yt=this.__data__=new pt.A($t)}return Yt.set(Et,Gt),this.size=Yt.size,this};const _=ft;var et=st(6124);st(9465);var G=st(4044),B=st(7313);const X=function(Et){return(0,B.A)(Et)&&(0,G.A)(Et)=="[object Arguments]"};var U=Object.prototype,$=U.hasOwnProperty,Z=U.propertyIsEnumerable;const V=X(function(){return arguments}())?X:function(Et){return(0,B.A)(Et)&&$.call(Et,"callee")&&!Z.call(Et,"callee")};var z=st(6956),I=st(9600),E=T&&!T.nodeType&&T,M=E&&!0&&p&&!p.nodeType&&p,P=M&&M.exports===E?I.A.Buffer:void 0;const y=(P?P.isBuffer:void 0)||function(){return!1};var h=st(5378);const f=function(Et){return typeof Et=="number"&&Et>-1&&Et%1==0&&Et<=9007199254740991};var m={};m["[object Float32Array]"]=m["[object Float64Array]"]=m["[object Int8Array]"]=m["[object Int16Array]"]=m["[object Int32Array]"]=m["[object Uint8Array]"]=m["[object Uint8ClampedArray]"]=m["[object Uint16Array]"]=m["[object Uint32Array]"]=!0,m["[object Arguments]"]=m["[object Array]"]=m["[object ArrayBuffer]"]=m["[object Boolean]"]=m["[object DataView]"]=m["[object Date]"]=m["[object Error]"]=m["[object Function]"]=m["[object Map]"]=m["[object Number]"]=m["[object Object]"]=m["[object RegExp]"]=m["[object Set]"]=m["[object String]"]=m["[object WeakMap]"]=!1;const u=function(Et){return function(Gt){return Et(Gt)}};var v=st(6713),S=T&&!T.nodeType&&T,w=S&&!0&&p&&!p.nodeType&&p,x=w&&w.exports===S&&v.A.process;const c=function(){try{return w&&w.require&&w.require("util").types||x&&x.binding&&x.binding("util")}catch(Et){}}();var g=c&&c.isTypedArray;const r=g?u(g):function(Et){return(0,B.A)(Et)&&f(Et.length)&&!!m[(0,G.A)(Et)]};var a=Object.prototype.hasOwnProperty;const t=function(Et,Gt){var Yt=(0,z.A)(Et),$t=!Yt&&V(Et),ce=!Yt&&!$t&&y(Et),pe=!Yt&&!$t&&!ce&&r(Et),Wt=Yt||$t||ce||pe,At=Wt?function(Qt,de){for(var ne=-1,ue=Array(Qt);++ne<Qt;)ue[ne]=de(ne);return ue}(Et.length,String):[],Bt=At.length;for(var Ht in Et)!a.call(Et,Ht)||Wt&&(Ht=="length"||ce&&(Ht=="offset"||Ht=="parent")||pe&&(Ht=="buffer"||Ht=="byteLength"||Ht=="byteOffset")||(0,h.A)(Ht,Bt))||At.push(Ht);return At};var i=Object.prototype;const o=function(Et){var Gt=Et&&Et.constructor;return Et===(typeof Gt=="function"&&Gt.prototype||i)},e=function(Et,Gt){return function(Yt){return Et(Gt(Yt))}},s=e(Object.keys,Object);var n=Object.prototype.hasOwnProperty,l=st(405);const b=function(Et){return Et!=null&&f(Et.length)&&!(0,l.A)(Et)},k=function(Et){return b(Et)?t(Et):function(Gt){if(!o(Gt))return s(Gt);var Yt=[];for(var $t in Object(Gt))n.call(Gt,$t)&&$t!="constructor"&&Yt.push($t);return Yt}(Et)};var D=st(7942);const d=function(){return[]};var C=Object.prototype.propertyIsEnumerable,A=Object.getOwnPropertySymbols;const N=A?function(Et){return Et==null?[]:(Et=Object(Et),function(Gt,Yt){for(var $t=-1,ce=Gt==null?0:Gt.length,pe=0,Wt=[];++$t<ce;){var At=Gt[$t];Yt(At,$t,Gt)&&(Wt[pe++]=At)}return Wt}(A(Et),function(Gt){return C.call(Et,Gt)}))}:d,R=function(Et,Gt){for(var Yt=-1,$t=Gt.length,ce=Et.length;++Yt<$t;)Et[ce+Yt]=Gt[Yt];return Et},L=e(Object.getPrototypeOf,Object),O=function(Et,Gt,Yt){var $t=Gt(Et);return(0,z.A)(Et)?$t:R($t,Yt(Et))},j=function(Et){return O(Et,k,N)};var Y=st(123);const H=(0,Y.A)(I.A,"DataView"),W=(0,Y.A)(I.A,"Promise"),q=(0,Y.A)(I.A,"Set"),Q=(0,Y.A)(I.A,"WeakMap");var J=st(1548),nt="[object Map]",lt="[object Promise]",gt="[object Set]",mt="[object WeakMap]",bt="[object DataView]",yt=(0,J.A)(H),dt=(0,J.A)(ct.A),ot=(0,J.A)(W),at=(0,J.A)(q),ut=(0,J.A)(Q),vt=G.A;(H&&vt(new H(new ArrayBuffer(1)))!=bt||ct.A&&vt(new ct.A)!=nt||W&&vt(W.resolve())!=lt||q&&vt(new q)!=gt||Q&&vt(new Q)!=mt)&&(vt=function(Et){var Gt=(0,G.A)(Et),Yt=Gt=="[object Object]"?Et.constructor:void 0,$t=Yt?(0,J.A)(Yt):"";if($t)switch($t){case yt:return bt;case dt:return nt;case ot:return lt;case at:return gt;case ut:return mt}return Gt});const Ct=vt;var xt=Object.prototype.hasOwnProperty;const St=I.A.Uint8Array,Mt=function(Et){var Gt=new Et.constructor(Et.byteLength);return new St(Gt).set(new St(Et)),Gt};var wt=/\w*$/,Tt=st(3516),Lt=Tt.A?Tt.A.prototype:void 0,Pt=Lt?Lt.valueOf:void 0;const Dt=function(Et,Gt,Yt){var $t,ce,pe,Wt=Et.constructor;switch(Gt){case"[object ArrayBuffer]":return Mt(Et);case"[object Boolean]":case"[object Date]":return new Wt(+Et);case"[object DataView]":return function(At,Bt){var Ht=Mt(At.buffer);return new At.constructor(Ht,At.byteOffset,At.byteLength)}(Et);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(At,Bt){var Ht=Mt(At.buffer);return new At.constructor(Ht,At.byteOffset,At.length)}(Et);case"[object Map]":case"[object Set]":return new Wt;case"[object Number]":case"[object String]":return new Wt(Et);case"[object RegExp]":return(pe=new(ce=Et).constructor(ce.source,wt.exec(ce))).lastIndex=ce.lastIndex,pe;case"[object Symbol]":return $t=Et,Pt?Object(Pt.call($t)):{}}};var jt=Object.create;const Ot=function(){function Et(){}return function(Gt){if(!(0,D.A)(Gt))return{};if(jt)return jt(Gt);Et.prototype=Gt;var Yt=new Et;return Et.prototype=void 0,Yt}}();var It=c&&c.isMap;const Nt=It?u(It):function(Et){return(0,B.A)(Et)&&Ct(Et)=="[object Map]"};var Zt=c&&c.isSet;const zt=Zt?u(Zt):function(Et){return(0,B.A)(Et)&&Ct(Et)=="[object Set]"};var Xt="[object Arguments]",Kt="[object Function]",me="[object Object]",Ut={};Ut[Xt]=Ut["[object Array]"]=Ut["[object ArrayBuffer]"]=Ut["[object DataView]"]=Ut["[object Boolean]"]=Ut["[object Date]"]=Ut["[object Float32Array]"]=Ut["[object Float64Array]"]=Ut["[object Int8Array]"]=Ut["[object Int16Array]"]=Ut["[object Int32Array]"]=Ut["[object Map]"]=Ut["[object Number]"]=Ut[me]=Ut["[object RegExp]"]=Ut["[object Set]"]=Ut["[object String]"]=Ut["[object Symbol]"]=Ut["[object Uint8Array]"]=Ut["[object Uint8ClampedArray]"]=Ut["[object Uint16Array]"]=Ut["[object Uint32Array]"]=!0,Ut["[object Error]"]=Ut[Kt]=Ut["[object WeakMap]"]=!1;const te=function Et(Gt,Yt,$t,ce,pe,Wt){var At,Bt=1&Yt;if(At!==void 0)return At;if(!(0,D.A)(Gt))return Gt;var Ht=(0,z.A)(Gt);if(Ht)At=function(qt){var ve=qt.length,ae=new qt.constructor(ve);return ve&&typeof qt[0]=="string"&&xt.call(qt,"index")&&(ae.index=qt.index,ae.input=qt.input),ae}(Gt);else{var Qt=Ct(Gt),de=Qt==Kt||Qt=="[object GeneratorFunction]";if(y(Gt))return function(qt,ve){return qt.slice()}(Gt);if(Qt==me||Qt==Xt||de&&!pe)At=de?{}:function(qt){return typeof qt.constructor!="function"||o(qt)?{}:Ot(L(qt))}(Gt);else{if(!Ut[Qt])return pe?Gt:{};At=Dt(Gt,Qt)}}Wt||(Wt=new _);var ne=Wt.get(Gt);if(ne)return ne;Wt.set(Gt,At),zt(Gt)?Gt.forEach(function(qt){At.add(Et(qt,Yt,$t,qt,Gt,Wt))}):Nt(Gt)&&Gt.forEach(function(qt,ve){At.set(ve,Et(qt,Yt,$t,ve,Gt,Wt))});var ue=Ht?void 0:j(Gt);return function(qt,ve){for(var ae=-1,fo=qt==null?0:qt.length;++ae<fo&&ve(qt[ae],ae,qt)!==!1;);}(ue||Gt,function(qt,ve){ue&&(qt=Gt[ve=qt]),(0,et.A)(At,ve,Et(qt,Yt,$t,ve,Gt,Wt))}),At},ye=function(Et){return te(Et,5)}},2382:function(it,rt,st){var ht=this&&this.__read||function(G,B){var X=typeof Symbol=="function"&&G[Symbol.iterator];if(!X)return G;var U,$,Z=X.call(G),V=[];try{for(;(B===void 0||B-- >0)&&!(U=Z.next()).done;)V.push(U.value)}catch(z){$={error:z}}finally{try{U&&!U.done&&(X=Z.return)&&X.call(Z)}finally{if($)throw $.error}}return V},ct=this&&this.__spreadArray||function(G,B,X){if(X||arguments.length===2)for(var U,$=0,Z=B.length;$<Z;$++)!U&&$ in B||(U||(U=Array.prototype.slice.call(B,0,$)),U[$]=B[$]);return G.concat(U||Array.prototype.slice.call(B))},pt=this&&this.__importDefault||function(G){return G&&G.__esModule?G:{default:G}};Object.defineProperty(rt,"__esModule",{value:!0});var ft=pt(st(8552)),_=pt(st(4501)),et=st(622);rt.default=function(G){var B,X=G.fireEvent,U=new Map,$=!1;function Z(M,P){for(var y=[M,P],h=0;h<y.length;h++)for(var f=y[h],m=0;m<f.length;m++){for(var u=(m+1)%f.length,v=f[m],S=f[u],w={x:S.y-v.y,y:v.x-S.x},x=void 0,c=void 0,g=0;g<M.length;g++){var r=w.x*M[g].x+w.y*M[g].y;((0,_.default)(x)||r<x)&&(x=r),((0,_.default)(c)||r>c)&&(c=r)}var a=void 0,t=void 0;for(g=0;g<P.length;g++)r=w.x*P[g].x+w.y*P[g].y,((0,_.default)(a)||r<a)&&(a=r),((0,_.default)(t)||r>t)&&(t=r);if(c<a||t<x)return!1}return!0}function V(M,P){return(M.yAxis||[]).some(function(y){return!(!y.options.stackLabels||!y.stacking.stacks)&&Object.values(y.stacking.stacks||[]).some(function(h){return Object.values(h).some(function(f){return f.label===P})})})}function z(M){return M.series&&M.series.some(function(P){return(0,ft.default)(P,"xAxis.axisLine.animating")})}function I(M,P,y){return y&&!(0,_.default)(y.totalsRank)&&V(M,P)?y.totalsRank:P.labelrank||0}function E(){$||($=!0,U.forEach(function(M,P){if(!z(P)){if(M.length){var y=M[M.length-1];P.hideOverlappingLabels(y.labels,y.options)}U.delete(P)}}),U.size&&(clearTimeout(B),B=setTimeout(E,100)),$=!1)}G.wrap(G.Axis.prototype,"addPlotBandOrLine",function(M){var P=M.apply(this,[].slice.call(arguments,1));return(0,ft.default)(P,"options.isPlotBand")===!0&&(this.sisensePlotBands||(this.sisensePlotBands=[]),this.sisensePlotBands.push(P)),P}),G.wrap(G.PlotLineOrBand.prototype,"render",function(M){var P=this,y=P.axis,h=P.options,f=h.to,m=h.from,u=(0,et.defined)(m)&&(0,et.defined)(f),v=G.pick(h.zIndex,0),S=y.chart.renderer,w=u?"bands":"lines",x={zIndex:v};w+="-labels-"+v;var c=y.plotLinesAndBandsGroups[w];return c||(x.translateX=0,x.translateY=0,y.plotLinesAndBandsGroups[w]=c=S.g("plot-"+w).attr(x).add()),M.apply(this,[].slice.call(arguments,1))}),G.PlotLineOrBand.prototype.renderLabel=function(M,P,y,h){var f=this,m=f.axis,u=m.chart.renderer,v=f.label,S=(y?"bands":"lines")+"-labels-"+h,w=m.plotLinesAndBandsGroups[S];v||(f.label=v=u.text(this.getLabelText(M),0,0,M.useHTML).attr({align:M.textAlign||M.align,rotation:M.rotation,class:"highcharts-plot-"+(y?"band":"line")+"-label "+(M.className||""),zIndex:h}).add(w),m.chart.styledMode||v.css(G.merge({textOverflow:"ellipsis"},M.style)));var x=P.xBounds||[P[0][1],P[1][1],y?P[2][1]:P[0][1]],c=P.yBounds||[P[0][2],P[1][2],y?P[2][2]:P[0][2]],g=(0,et.arrayMin)(x),r=(0,et.arrayMin)(c);if(v.align(M,!1,{x:g,y:r,width:(0,et.arrayMax)(x)-g,height:(0,et.arrayMax)(c)-r}),!(v.styles.width&&v.styles.width!=="auto"||v.alignValue&&v.alignValue!=="left")){var a=M.clip?m.width:m.chart.chartWidth;v.css({width:(v.rotation===90?m.height-(v.alignAttr.y-m.top):a-(v.alignAttr.x-m.left))+"px"})}v.show(!0)},G.addEvent(G.Chart.prototype,"render",function(){var M=[];(this.xAxis||[]).forEach(function(P){P.plotLinesAndBands&&P.plotLinesAndBands.forEach(function(y){y.label&&y.label.visibility!=="hidden"&&(y.label.isSerieLabel=!0,M.push(y.label))})}),M.length>0&&this.hideOverlappingLabels(M)}),G.Chart.prototype.hideOverlappingLabels=function(M,P){var y=this;P===void 0&&(P={});var h=this;if(z(h))return function(t,i,o){U.has(t)||U.set(t,[]),U.get(t).push({labels:i,options:o}),E()}(h,ct([],ht(M),!1),P);E(),(M=M.filter(function(t){var i=t==null?void 0:t.element,o=(t==null?void 0:t.className)==="stack-labels",e=(t==null?void 0:t.visibility)!=="hidden"||o&&(t==null?void 0:t.placed);return i&&(t==null||t.opacitySetter(0,"opacity",t.element),t==null||t.visibilitySetter("hidden","visibility",t.element)),i&&e})).forEach(function(t){t.oldOpacity=t.opacity,t.newOpacity=1,t.polygon=function(i){var o=document.createElementNS("http://www.w3.org/2000/svg","svg"),e=i.element,s=e.transform.baseVal.consolidate().matrix,n=e.getBBox();function l(b,k){var D=o.createSVGPoint();D.x=b,D.y=k;var d=D.matrixTransform(s);return{x:d.x,y:d.y}}return[l(n.x,n.y),l(n.x,n.y+n.height),l(n.x+n.width,n.y+n.height),l(n.x+n.width,n.y)]}(t)}),M.sort(function(t,i){return I(h,i,P)-I(h,t,P)});var f=this.plotBackground&&this.plotBackground.element?this.plotBackground.element.getBoundingClientRect():null,m=f?{x:(0,et.defined)(f.x)?f.x:f.left,y:(0,et.defined)(f.y)?f.y:f.top,width:f.width,height:f.height}:null,u=(0,ft.default)(h,"options.chart.type"),v=u==="area"||u==="areaspline",S=u==="pie";if((v||u==="column"||u==="bar"||u==="line"||u==="bubble"||u==="boxplot")&&m){m.x-=10,m.y-=10,m.width+=20,m.height+=20,v&&!function(t){var i=(t.xAxis||[]).filter(function(o){return(0,ft.default)(o,"options.labels.enabled")});return i.length>1||i.some(function(o){return o.options.plotBands&&o.options.plotBands.length})}(h)&&(m.y-=30,m.height+=30);var w=this.series&&this.series.some(function(t){return(0,ft.default)(t,"options.stacking")==="percent"});M.forEach(function(t){var i,o,e,s;t.newOpacity===0||t.isSerieLabel||w&&V(y,t)||(i=m,o=t.element.getBoundingClientRect(),e=(0,et.defined)(o.x)?o.x:o.left,s=(0,et.defined)(o.y)?o.y:o.top,i.x<=e&&i.y<=s&&i.x+i.width>=e+o.width&&i.y+i.height>=s+o.height)||(t.newOpacity=0)})}for(var x=M.length,c=0;c<x;c++)for(var g=M[c],r=c+1;r<x;++r){var a=M[r];g.polygon&&a.polygon&&g!==a&&g.newOpacity!==0&&a.newOpacity!==0&&Z(g.polygon,a.polygon)&&((I(h,g,P)<I(h,a,P)?g:a).newOpacity=0)}M.forEach(function(t){var i,o;t&&(o=t.newOpacity,S&&!t.placed||(o?t.show(!0):i=function(){t.hide()},t.oldOpacity!==o&&(t.alignAttr?(t.alignAttr.opacity=o,t[t.isOld?"animate":"attr"](t.alignAttr,null,i),X(h,"afterHideOverlappingLabels")):t.attr({opacity:o})),t.isOld=!0))})},G.wrap(G.SVGElement.prototype,"animate",function(M,P,y,h){var f=this;return f.animating=!0,M.apply(this,[P,y,function(){f.animating=!1,h?h(arguments):y&&y.complete&&y.complete(arguments)}])})}},2397:function(it,rt,st){var ht=this&&this.__assign||function(){return ht=Object.assign||function(G){for(var B,X=1,U=arguments.length;X<U;X++)for(var $ in B=arguments[X])Object.prototype.hasOwnProperty.call(B,$)&&(G[$]=B[$]);return G},ht.apply(this,arguments)},ct=this&&this.__importDefault||function(G){return G&&G.__esModule?G:{default:G}};Object.defineProperty(rt,"__esModule",{value:!0});var pt=ct(st(8552)),ft=ct(st(4501)),_=ct(st(2281)),et=st(622);rt.default=function(G){var B=G.merge,X=G.extend,U=G.pick;G.getOptions().plotOptions.boxplot.lineWidth=1,G.getOptions().plotOptions.boxplot.fillOpacity=.6,G.getOptions().plotOptions.boxplot.strokeOpacity=.6,G.getOptions().plotOptions.boxplot.strokeWidth=1,G.getOptions().plotOptions.boxplot.states.select.lineWidth=1,G.getOptions().plotOptions.boxplot.states.select.fillOpacity=.3,G.getOptions().plotOptions.boxplot.states.select.strokeOpacity=.3,G.getOptions().plotOptions.boxplot.states.hover.lineWidth=1,G.getOptions().plotOptions.boxplot.states.hover.fillOpacity=1,G.getOptions().plotOptions.boxplot.states.hover.strokeOpacity=1,G.wrap(G.seriesTypes.boxplot.prototype,"drawPoints",function(){var $,Z,V,z,I,E,M,P,y,h,f,m,u,v,S,w,x,c,g,r,a,t,i,o,e,s,n=this,l=n.points,b=n.options,k=n.chart.renderer,D=n.doQuartiles!==!1,d=parseInt(n.options.whiskerLength,10)/100;l.forEach(function(C){if(f=C.graphic,o=C.shapeArgs,u={},x={},g={},e=C.color||n.color,s=C.innerBoxColor||n.color,C.plotY!==void 0){$={fill:s,"fill-opacity":.75,stroke:n.color,"stroke-opacity":1,"stroke-width":1},C.selected&&($.fill=s,$["fill-opacity"]=.3,$["stroke-opacity"]=.3),V={fill:s,"fill-opacity":$["fill-opacity"],stroke:e,"stroke-width":1};var A={fill:$.fill,"fill-opacity":$["fill-opacity"],"stroke-opacity":$["fill-opacity"]};Z=ht({},$),r=o.width,a=Math.floor(o.x),t=a+r,i=Math.round(r/2),z=Math.floor(D?C.q1Plot:C.lowPlot),I=Math.floor(D?C.q3Plot:C.lowPlot),E=Math.floor(C.highPlot),M=Math.floor(C.lowPlot),u.stroke=C.stemColor||b.stemColor||e,u["stroke-width"]=U(C.stemWidth,b.stemWidth,b.lineWidth),u.dashstyle=C.stemDashStyle||b.stemDashStyle,x.stroke=C.whiskerColor||b.whiskerColor||e,x["stroke-width"]=U(C.whiskerWidth,b.whiskerWidth,b.lineWidth),g.stroke=C.medianColor||b.medianColor||e,g["stroke-width"]=U(C.medianWidth,b.medianWidth,b.lineWidth),g["stroke-linecap"]="round",y=u["stroke-width"]%2/2,m=["M",h=a+i+y,I,"L",h,E,"M",h,z,"L",h,M,"z"],D&&(y=$["stroke-width"]%2/2,h=Math.floor(h)+y,z=Math.floor(z)+y,I=Math.floor(I)+y,v=["M",a+=y,I,"L",a,z,"L",t+=y,z,"L",t,I,"L",a,I,"z"]),d&&(y=x["stroke-width"]%2/2,S=["M",h-i*d,E+=y,"L",h+i*d,E,"M",h-i*d,M+=y,"L",h+i*d,M]),y=2,P=Math.round(C.medianPlot)+y,c=["M",a,P,"L",t,P,"z"],D&&(w=["M",a+.5,P+.5,"L",a+.5,z-.5,"L",t-.5,z-.5,"L",t-.5,P+.5,"L",a+.5,P+.5,"z"]),f?(f.attr(A),C.stem.attr(u),C.stem.animate({d:m}),d&&(C.whiskers.attr(x),C.whiskers.animate({d:S})),D&&(C.box.attr(Z),C.box.attr("stroke",Z.stroke),C.box.animate({d:v}),C.innerBox.animate({d:w}),C.innerBox.attr(V)),C.medianShape.attr(g),C.medianShape.animate({d:c})):(C.graphic=f=k.g().add(n.group).attr(A).attr("name","graphic"),C.stem=k.path(m).attr(u).attr("name","stem").add(f),d&&(C.whiskers=k.path(S).attr(x).attr("name","whiskers").add(f)),D&&(C.box=k.path(v).attr(Z).attr("stroke",Z.stroke).attr("name","box").add(f),C.innerBox=k.path(w).attr(V).attr("name","inner-box").add(f)),C.medianShape=k.path(c).attr(g).attr("name","median").add(f))}})}),G.wrap(G.seriesTypes.boxplot.prototype,"drawDataLabels",function($,Z,V){var z,I,E,M,P=this,y=P.options,h=y.cursor,f=P.points,m=y.dataLabels,u=[{name:"median",enabled:!0,indent:-15,path:function(x,c){return["M",x,c,"L",x-10,c]}},{name:"q3",enabled:!0,indent:-20,path:function(x,c){return["M",x,c,"L",x-2,c+5,x-10,c+5]}},{name:"high",enabled:!0,indent:-20,path:function(x,c){return["M",x,c,"L",x-2,c+5,x-10,c+5]}},{name:"q1",enabled:!0,indent:-7,path:function(x,c){return["M",x,c,"L",x-2,c-5,x-10,c-5]}},{name:"low",enabled:!0,indent:-7,path:function(x,c){return["M",x,c,"L",x-2,c-5,x-10,c-5]}}];if($.call(this,m,V),P.data.length>0){var v=P.barW;P.barW>P.options.maxPointWidth&&(v=P.options.maxPointWidth),this.data.forEach(function(x){x.shapeArgs.x+=(x.shapeArgs.width-v)/2,x.shapeArgs.width=v})}if(m.enabled||P._hasPointLabels){M=P.plotGroup("dataLabelsGroup","data-labels",P.visible?"visible":"hidden",m.zIndex||6);var S=P.chart.plotBox.height;if(P.type==="boxplot"&&S<200)if((0,et.defined)((0,pt.default)(f,"0.dataLabel")))for(var w=0;w<f.length;w++)f[w].dataLabel&&((0,et.defined)((0,pt.default)(f[w].dataLabel,"high"))&&f[w].dataLabel.high.destroy(),(0,et.defined)((0,pt.default)(f[w].dataLabel,"low"))&&f[w].dataLabel.low.destroy());else delete u[2],delete u[4];I=m,f.forEach(function(x){var c,g,r,a,t,i,o=!0,e=x.connector,s=x.shapeArgs,n=Math.floor(s.x)+s.width;z=x.options&&x.options.dataLabels;var l=U(z&&z.enabled,I.enabled),b=x.innerBoxColor||P.color;if(l){m=B(I,z),i=m.rotation,r=x.getLabelConfig();var k=!1,D=(0,_.default)(u);(0,et.defined)(x,"shapeArgs.height")&&x.shapeArgs.height<30&&(delete D[2],delete D[4],x.shapeArgs.height===0&&(k=!0)),(0,et.defined)(x.dataLabel)||(x.dataLabel={},x.dataLabel.element={},x.dataLabel.destroy=function(){G.removeEvent(x.dataLabel,"add"),G.removeEvent(x.dataLabel.element,"mouseenter"),G.removeEvent(x.dataLabel.element,"mouseleave"),D.forEach(function(d){d&&x.dataLabel[d.name]&&(x.dataLabel[d.name].destroy(),x.dataLabelLine[d.name].destroy())}),x.dataLabel=null,x.dataLabelLine=null}),(0,et.defined)(x.dataLabelLine)||(x.dataLabelLine={}),D.forEach(function(d){if(d&&d.enabled){c=x.dataLabel[d.name],g=x.dataLabelLine[d.name],E=m.formatter.call(r,m,d.name),m.style.color=U(m.color,m.style.color,P.color,"black"),m.x=n+12,m.y=x[d.name+"Plot"]-x.highPlot+d.indent;var C=P.visible&&P.chart.isInsidePlot(x.plotX,x.plotY,P.chart.inverted)&&P.chart.isInsidePlot(x.plotX,x.yBottom,P.chart.inverted);if(c)C?((0,et.defined)(E)?(c.attr({text:E}),o=!1):(x.dataLabel[d.name]=c=c.destroy(),e&&(x.connector=e.destroy())),g&&g.destroy()):(x.dataLabel[d.name]=c=c.destroy(),g&&g.destroy());else if((0,et.defined)(E)&&E!=="null"){for(t in a={fill:m.backgroundColor,stroke:m.borderColor,"stroke-width":m.borderWidth,r:m.borderRadius||0,rotation:i,padding:m.padding,zIndex:1})(0,ft.default)(a[t])&&delete a[t];C&&((c=P.chart.renderer[i?"text":"label"](E,0,-999,null,null,null,m.useHTML)).attr(a).css(X(m.style,h&&{cursor:h})).add(M).shadow(m.shadow),c.options={},x.dataLabel[d.name]=c)}if(C){var A={fill:b,"fill-opacity":.75,stroke:P.color,"stroke-opacity":1,"stroke-width":1},N=13;k&&(d.name==="q1"?N=5:d.name==="q3"&&(N=21)),g=x.dataLabelLine[d.name]=x.series.chart.renderer.path(d.path(2,N)).attr({"stroke-width":1,stroke:A.stroke,"stroke-opacity":A["fill-opacity"]||1}).add(c)}c&&P.alignDataLabel(x,c,m,null,o,g,d.name),c.options={},x["dataLabel"+d.name]=c}})}x.dataLabels=u.map(function(d){return x.dataLabel[d.name]}).filter(function(d){return d})}),P.dataLabelCollections=[],u.map(function(x){return x.name}).forEach(function(x){P.dataLabelCollections.push("dataLabel"+x)})}}),G.wrap(G.seriesTypes.boxplot.prototype,"alignDataLabel",function($,Z,V,z,I,E,M,P){var y=this.chart,h=y.inverted,f=Z.dlBox||Z.shapeArgs,m=Z.below||Z.plotY>U(this.translatedThreshold,y.plotSizeY),u=U(z.inside,!!this.options.stacking);f&&((I=B(f)).y+=m?I.height:0,I.height=0),z.align=U(z.align,"left"),z.verticalAlign=U(z.verticalAlign,h||u?"middle":m?"top":"bottom");var v,S=V.getBBox(),w=this.visible&&y.isInsidePlot(Z.plotX,Z.plotY,h)&&y.isInsidePlot(Z.plotX,Z.yBottom,h);if(w){switch(X(z,{width:S.width,height:S.height}),v={align:z.align,x:z.x,y:I.y+z.y+I.height/2},P){case"q3":(0,et.defined)(Z,"dataLabel.median.y")&&Z.dataLabel.median.y!=999&&v.y+z.height>Z.dataLabel.median.y&&(v.y=Z.dataLabel.median.y-(z.height/2+4));break;case"high":(0,et.defined)(Z,"dataLabel.q3.y")&&Z.dataLabel.q3.y!=999&&v.y+z.height>Z.dataLabel.q3.y&&(v.y=Z.dataLabel.q3.y-(z.height/2+4));break;case"q1":(0,et.defined)(Z,"dataLabel.median.y")&&Z.dataLabel.median.y!=999&&v.y<Z.dataLabel.median.y+Z.dataLabel.median.height&&(v.y=Z.dataLabel.median.y+(z.height/2+4));break;case"low":(0,et.defined)(Z,"dataLabel.q1.y")&&Z.dataLabel.q1.y!=999&&v.y<Z.dataLabel.q1.y+Z.dataLabel.q1.height?v.y=Z.dataLabel.q1.y+(z.height/2+4):(0,et.defined)(Z,"yBottom")&&v.y+z.height>y.plotHeight&&(v.y=y.plotHeight-z.height)}v.y=isNaN(v.y)?0:v.y,V[E?"attr":"animate"](v)}w||(V.attr({y:-999}),V.placed=!1,M.attr({"stroke-opacity":0}))})}},2805:function(it,rt,st){var ht=this&&this.__importDefault||function(pt){return pt&&pt.__esModule?pt:{default:pt}};Object.defineProperty(rt,"__esModule",{value:!0});var ct={style:{fontSize:"13px",fontWeight:"normal",color:"#5B6372",fontFamily:ht(st(605)).default.fontFamily},borderWidth:1,borderColor:"#CCCCCC",backgroundColor:"#FFFFFF",borderRadius:10,hideDelay:20,shadow:{color:"#CECECE",offsetX:2,offsetY:2,width:5}};rt.default=ct},2807:function(it,rt,st){var ht=this&&this.__importDefault||function(et){return et&&et.__esModule?et:{default:et}};Object.defineProperty(rt,"__esModule",{value:!0});var ct=ht(st(8552)),pt=st(622),ft=ht(st(605)),_=st(6681);rt.default=function(et){var G=et.wrap;G(et.seriesTypes.pie.prototype,"drawDataLabels",function(B,X,U){var $,Z=this,V=Z.chart.renderer;B.call(this,X,U);var z=function(E,M,P,y){var h=V.text(M.slicePercentage+"%",M.newCenterX,M.newCenterY),f={class:"pie-percent-label",zIndex:13,"text-anchor":"middle","font-size":M.fontSize},m={"pointer-events":"none","font-family":(0,ct.default)(y,"options.dataLabels.style.fontFamily",ft.default.fontFamily),"letter-spacing":"-0.05em",color:"white",fontSize:!1},u=h.attr(f).attr(P).add(),v=h.element.getBBox().height/4,S={x:M.newCenterX,y:M.newCenterY+v};E.sisenseLabel=u.css(m).attr(S).add()},I=(0,ct.default)(Z,"chart.options.chart.isHighlightMode");Z.points.forEach(function(E){var M,P;if(E.graphic){if((0,ct.default)(E,"series.chart.options.plotOptions.pie.dataLabels.showPercentLabels")===!0)if(M=(0,_.getCalculatedPercentageLabelPosition)(E,V),P=(0,ct.default)(E,"series.chart.options.plotOptions.pie.dataLabels.pieMinimumFontSizeToTextLabel"),M.fontSize>P)if((0,pt.defined)((0,ct.default)(E,"sisenseLabel.element"))){var y={x:M.newCenterX,y:M.newCenterY};I&&(y.translateX=E.sliced?E.slicedTranslation.translateX:0,y.translateY=E.sliced?E.slicedTranslation.translateY:0),E.sisenseLabel.attr({text:M.slicePercentage+"%","font-size":M.fontSize}).animate(y)}else z(E,M,$,Z),E.sisenseLabel&&I&&((y={x:M.newCenterX,y:M.newCenterY}).translateX=E.sliced?E.slicedTranslation.translateX:0,y.translateY=E.sliced?E.slicedTranslation.translateY:0,E.sisenseLabel.attr({text:M.slicePercentage+"%","font-size":M.fontSize}).attr(y));else(0,pt.defined)((0,ct.default)(E,"sisenseLabel.element"))&&E.sisenseLabel.destroy()}else(0,ct.default)(E,"series.chart.options.plotOptions.pie.dataLabels.showPercentLabels")===!0&&(M=(0,_.getCalculatedPercentageLabelPosition)(E,V),P=(0,ct.default)(E,"series.chart.options.plotOptions.pie.dataLabels.pieMinimumFontSizeToTextLabel"),M.fontSize>P&&z(E,M,$,Z))})}),G(et.Point.prototype,"destroyElements",function(B,X,U){for(var $,Z=this,V=["decoration","sisenseLabel"],z=V.length;z--;)Z[$=V[z]]&&Z.visible&&Z[$].renderer&&Z[$].destroy();B.call(this,X,U)}),G(et.seriesTypes.pie.prototype.pointClass.prototype,"slice",function(B){B.apply(this,[].slice.call(arguments,1)),(0,ct.default)(this,"sisenseLabel.renderer")&&this.sisenseLabel.animate(this.getTranslate())}),et.seriesTypes.pie.prototype.placeDataLabels=function(){this.points.forEach(function(B){var X,U=B.dataLabel;U&&B.visible&&((X=U._pos)?(U.sideOverflow&&(U._attr.width=U.getBBox().width-U.sideOverflow,U.css({width:U._attr.width+"px",textOverflow:"ellipsis"}),U.shortened=!0),U.attr(U._attr),U[U.moved?"animate":"attr"](X),U.moved=!0):U&&U.attr({y:-9999}))},this)},et.Point.prototype.getClassName=function(){return"highcharts-point"+(this.selected||this.sliced?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+(this.colorIndex!==void 0?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")}}},3039:function(it,rt,st){var ht=this&&this.__assign||function(){return ht=Object.assign||function(X){for(var U,$=1,Z=arguments.length;$<Z;$++)for(var V in U=arguments[$])Object.prototype.hasOwnProperty.call(U,V)&&(X[V]=U[V]);return X},ht.apply(this,arguments)},ct=this&&this.__read||function(X,U){var $=typeof Symbol=="function"&&X[Symbol.iterator];if(!$)return X;var Z,V,z=$.call(X),I=[];try{for(;(U===void 0||U-- >0)&&!(Z=z.next()).done;)I.push(Z.value)}catch(E){V={error:E}}finally{try{Z&&!Z.done&&($=z.return)&&$.call(z)}finally{if(V)throw V.error}}return I},pt=this&&this.__spreadArray||function(X,U,$){if($||arguments.length===2)for(var Z,V=0,z=U.length;V<z;V++)!Z&&V in U||(Z||(Z=Array.prototype.slice.call(U,0,V)),Z[V]=U[V]);return X.concat(Z||Array.prototype.slice.call(U))},ft=this&&this.__importDefault||function(X){return X&&X.__esModule?X:{default:X}};Object.defineProperty(rt,"__esModule",{value:!0});var _=ft(st(8552)),et=ft(st(4441)),G=ft(st(2281)),B=st(622);rt.default=function(X){var U=X.removeEvent,$=X.defaultOptions.plotOptions,Z=X.fireEvent,V=X.color,z=X.extend,I=X.isNumber,E=X.merge,M=X.pick,P=X.Series,y=X.Point,h=navigator.userAgent,f=/(ipad|iphone|ipod)/g.test(h.toLowerCase()),m=document.documentElement.ontouchstart!==void 0,u=X.defaultOptions,v="highcharts-";X.Axis.prototype.allowNegativeLog=!0,X.addEvent(X.Axis,"afterInit",function(){var S=this.logarithmic;S&&(this.positiveValuesOnly=!1,S.log2lin=function(w){var x=w<0,c=Math.abs(w);c<10&&(c+=(10-c)/10);var g=Math.log(c)/Math.LN10;return x?-g:g},S.lin2log=function(w){var x=w<0,c=Math.pow(10,Math.abs(w));return c<10&&(c=10*(c-1)/9),x?-c:c})}),X.Series.prototype.setPercentStacks=function(){var S,w=this,x=w.stackKey,c=w.yAxis.stacking.stacks,g=new RegExp(/navigator.\d*/gi);S=w.name.match(g)?w.chart.yAxis[1].options.max||100:w.chart.yAxis[w.options.yAxis||0].options.max||100,[x,"-"+x].forEach(function(r){for(var a,t,i,o,e=w.xData.length;e--;)a=w.xData[e],(i=(t=c[r]&&c[r][a])&&t.points[w.index])&&(o=t.total?100/t.total:0,i[0]=(0,B.correctFloat)(i[0]*o*((0,B.defined)(S)?S/100:1)),i[1]=(0,B.correctFloat)(i[1]*o*((0,B.defined)(S)?S/100:1)),w.stackedYData[e]=i[1])})},X.seriesTypes.area.prototype.getStackPoints=function(S){var w=this,x=[],c=[],g=this.xAxis,r=this.yAxis,a=r.stacking.stacks[this.stackKey],t={},i=r.series,o=i.length,e=r.options.reversedStacks?1:-1,s=i.indexOf(w);if(S=S||this.points,this.options.stacking){for(var n=0;n<S.length;n++)S[n].leftNull=S[n].rightNull=void 0,t[S[n].x]=S[n];X.objectEach(a,function(b,k){b.total!==null&&c.push(k)}),c.sort(function(b,k){return b-k});var l=i.map(function(b){return b.visible});c.forEach(function(b,k){var D,d,C=0;if(t[b]&&!t[b].isNull)x.push(t[b]),[-1,1].forEach(function(R){var L=R===1?"rightNull":"leftNull",O=R===1?"rightCliff":"leftCliff",j=a[c[k+R]],Y=0;if(j)for(var H=s;H>=0&&H<o;){var W=i[H].index;(D=j.points[W])||(W===w.index?t[b][L]=!0:l[H]&&(d=a[b].points[W])&&(Y-=d[1]-d[0])),H+=e}t[b][O]=Y});else{for(var A=s;A>=0&&A<o;){var N=i[A].index;if(D=a[b].points[N]){C=D[1];break}A+=e}C=M(C,0),C=r.translate(C,0,1,0,1),x.push({isNull:!0,plotX:g.translate(b,0,0,0,1),x:b,plotY:C,yBottom:C,isDividerNull:t[b]&&t[b].isDividerNull})}})}return x},X.seriesTypes.areaspline.prototype.getStackPoints=X.seriesTypes.area.prototype.getStackPoints,X.seriesTypes.area.prototype.getGraphPath=function(S){var w,x,c,g=X.seriesTypes.line.prototype.getGraphPath,r=this.options,a=r.stacking,t=this.yAxis,i=[],o=[],e=this.index,s=t.stacking.stacks[this.stackKey],n=r.threshold,l=Math.round(t.getThreshold(r.threshold)),b=M(r.connectNulls,a==="percent"),k=function(W,q,Q){var J,nt,lt=S[W],gt=a&&s[lt.x].points[e],mt=lt[Q+"Null"]||0,bt=lt[Q+"Cliff"]||0,yt=!0;bt||mt?(J=(mt?gt[0]:gt[1])+bt,nt=gt[0]+bt,yt=!!mt):!a&&S[q]&&S[q].isNull&&(J=nt=n),J!==void 0&&(o.push({plotX:w,plotY:J===null?l:t.getThreshold(J),isNull:yt,isCliff:!0}),i.push({plotX:w,plotY:nt===null?l:t.getThreshold(nt),doCurve:!1}))};S=S||this.points,a&&(S=this.getStackPoints(S));for(var D=0,d=S.length;D<d;++D)if(a||(S[D].leftCliff=S[D].rightCliff=S[D].leftNull=S[D].rightNull=void 0),x=S[D].isNull,w=M(S[D].rectPlotX,S[D].plotX),c=a?M(S[D].yBottom,l):l,!x||b){var C=S[D-1],A=S[D+1],N=!S[D].isDividerNull&&C&&C.isDividerNull,R=!S[D].isDividerNull&&A&&A.isDividerNull;b&&!N||k(D,D-1,"left"),x&&!a&&b||(o.push(S[D]),i.push({x:D,plotX:w,plotY:c})),b&&!R||k(D,D+1,"right")}var L=g.call(this,o,!0,!0);i.reversed=!0;var O=g.call(this,i,!0,!0),j=O[0];j&&j[0]==="M"&&(O[0]=["L",j[1],j[2]]);var Y=L.concat(O);Y.length&&Y.push(["Z"]);var H=g.call(this,o,!1,b);return Y.xMap=L.xMap,this.areaPath=Y,H},X.seriesTypes.areaspline.prototype.getGraphPath=X.seriesTypes.area.prototype.getGraphPath,X.Series.prototype.pointAttribs=function(S,w){var x,c,g,r,a,t,i=this.options.marker,o=S&&S.options,e=o&&o.marker||{},s=this.color,n=o&&o.color,l=S&&S.color,b=M(e.lineWidth,i.lineWidth),k=S&&S.zone&&S.zone.color;return s=n||k||l||s,g=e.fillColor||i.fillColor||s,r=e.lineColor||i.lineColor||s,a=1,t=1,w&&(x=i.states[w],c=e.states&&e.states[w]||{},b=M(c.lineWidth,x.lineWidth,b+M(c.lineWidthPlus,x.lineWidthPlus,0)),g=c.fillColor||x.fillColor||g,r=c.lineColor||x.lineColor||r,a=c.fillOpacity||x.fillOpacity||1,t=c.fillOpacity||x.fillOpacity||1),{stroke:r,"stroke-width":b,"stroke-opacity":t,"fill-opacity":a,fill:g}},X.Point.prototype.setState=function(S,w){var x,c,g,r=this,a=Math.floor(r.plotX),t=r.plotY,i=r.series,o=i.options.states[S]||{},e=$[i.type].marker&&i.options.marker,s=e&&e.enabled===!1,n=e&&e.states&&e.states[S]||{},l=n.enabled===!1,b=i.stateMarkerGraphic,k=r.marker||{},D=i.chart,d=i.halo,C=e&&i.markerAttribs;if(!((S=S||"")===r.state&&!w||r.selected&&S!=="select"||o.enabled===!1||S&&(l||s&&n.enabled===!1)||S&&k.states&&k.states[S]&&k.states[S].enabled===!1)){if(C&&(c=i.markerAttribs(r,S)),r.graphic){r.state&&r.graphic.removeClass("highcharts-point-"+r.state),S&&r.graphic.addClass("highcharts-point-"+S);var A=r.innerBoxColor||i.color,N={fill:A,"fill-opacity":.8,stroke:i.color,"stroke-opacity":1,"stroke-width":1};if(r.selected){var R=.3;N.fill=A,N["fill-opacity"]=R,N["stroke-opacity"]=R}S==="hover"&&(R=.9,N.fill=A,N["fill-opacity"]=R,N["stroke-opacity"]=R);var L={fill:A,"fill-opacity":1,stroke:V,"stroke-width":1},O=ht({},N),j=i.pointAttribs(r,S);r.graphic.attr(j),r.stem&&r.stem.attr({}),r.whiskers&&r.whiskers.attr({}),r.box&&(r.box.attr(O),r.box.attr("stroke",O.stroke),r.innerBox.attr(L)),r.medianShape&&r.medianShape.attr({}),c&&r.graphic.animate(c,M(D.options.chart.animation,n.animation,e.animation)),b&&b.hide()}else S&&n&&(g=k.symbol||i.symbol,b&&b.currentSymbol!==g&&(b=b.destroy()),b?b[w?"animate":"attr"]({x:c.x,y:c.y}):g&&(i.stateMarkerGraphic=b=D.renderer.symbol(g,c.x,c.y,c.width,c.height).add(i.markerGroup),b.currentSymbol=g),b&&b.attr(i.pointAttribs(r,S))),b&&(b[S&&D.isInsidePlot(a,t,D.inverted)?"show":"hide"](),b.element.point=r);(x=o.halo)&&x.size?(d||(i.halo=d=D.renderer.path().add((r.graphic||b).parentGroup)),d[w?"animate":"attr"]({d:r.haloPath(x.size)}),d.attr({class:"highcharts-halo highcharts-color-"+M(r.colorIndex,i.colorIndex)}),d.point=r,d.attr(z({fill:r.color||i.color,"fill-opacity":x.opacity,zIndex:-1},x.attributes))):d&&d.point&&d.point.haloPath&&d.animate({d:d.point.haloPath(0)}),r.state=S}},X.Point.prototype.applyOptions=function(S,w){var x=this,c=x.series,g=c.options.pointValKey||c.pointValKey;return S=y.prototype.optionsToObject.call(this,S),z(x,S),x.options=x.options?z(x.options,S):S,S.group&&delete x.group,g&&(x.y=x[g]),x.isNull=M(x.isValid&&!x.isValid(),x.x===null||x.y===null||!I(x.y,!0)),x.selected&&(x.state="select"),"name"in x&&w===void 0&&c.xAxis&&c.xAxis.hasNames&&(x.x=c.xAxis.nameToX(x)),x.x===void 0&&c&&(x.x=w===void 0?c.autoIncrement(x):w),x},X.seriesTypes.column.prototype.pointAttribs=function(S,w){var x,c,g,r,a,t=this.options,i=this.pointAttrToOptions||{},o=i.stroke||"borderColor",e=i["stroke-width"]||"borderWidth",s=S&&S.color||this.color,n=S[o]||t[o]||this.color||s,l=S[e]||t[e]||this[e]||0,b=t.dashStyle;return S&&this.zones.length&&(s=(r=S.getZone())&&r.color||S.options.color||this.color),w&&(a=(x=t.states[w]).brightness,c=x.fillOpacity,s=x.color||a!==void 0&&V(s).brighten(x.brightness).get()||s,c&&c!==1&&(s=V(s).setOpacity(c).get("rgba")),n=x[o]||n,l=x[e]||l,b=x.dashStyle||b),g={fill:s,stroke:n,"stroke-width":l},t.borderRadius&&(g.r=t.borderRadius),b&&(g.dashstyle=b),g},X.seriesTypes.scatter.prototype.pointAttribs=function(S,w){var x=w?this.options.marker.states[w]:this.options.marker,c=M(x.fillOpacity,.5),g=P.prototype.pointAttribs.call(this,S,w);return c!==1&&(g.fill=V(g.fill).setOpacity(c).get("rgba")),g},X.seriesTypes.bubble.prototype.pointAttribs=function(S,w){var x=w?this.options.marker.states[w]:this.options.marker,c=M(x.fillOpacity,.5),g=P.prototype.pointAttribs.call(this,S,w);return c!==1&&(g.fill=V(g.fill).setOpacity(c).get("rgba")),g},X.seriesTypes.boxplot.prototype.pointAttribs=function(S,w){var x=w?this.options.states[w]:this.options,c=M(x.fillOpacity,.5),g=S&&S.color||this.color,r=S.fillColor||x.fillColor||g;return c!==1&&(r=V(r).setOpacity(c).get("rgba")),{fill:r,stroke:x.lineColor||g,"stroke-width":x.lineWidth||0}},X.Pointer.prototype.onContainerClick=function(S){var w,x,c,g=this.chart,r=g.hoverPoint,a=g.plotLeft,t=g.plotTop,i=g.inverted,o=S.type;S=this.normalize(S),g.cancelClick||(r&&this.inClass(S.target,v+"tracker")?(w=this.chartPosition,x=r.plotX,c=r.plotY,z(r,{pageX:w.left+a+(i?g.plotWidth-c:x),pageY:w.top+t+(i?g.plotHeight-x:c)}),Z(r.series,o,z(S,{point:r})),g.hoverPoint&&r.firePointEvent(o,S)):(z(S,this.getCoordinates(S)),g.isInsidePlot(S.chartX-a,S.chartY-t)&&Z(g,"click",S)))},X.wrap(X.Pointer.prototype,"onContainerMouseLeave",function(S,w){this.selectionMarker&&(this.selectionMarker.destroy(),this.selectionMarker=null),this.chart.mouseIsDown=!1,S.call(this,w)}),X.Pointer.prototype.onContainerTapHold=function(S){var w,x,c,g=this.chart,r=g.hoverPoint,a=g.plotLeft,t=g.plotTop,i=g.inverted,o="contextmenu";(S=this.normalize(S)).hasTapHold=!0,g.cancelClick||r&&this.inClass(S.target,v+"tracker")&&(w=this.chartPosition,x=r.plotX,c=r.plotY,z(r,{pageX:w.left+a+(i?g.plotWidth-c:x),pageY:w.top+t+(i?g.plotHeight-x:c)}),Z(r.series,o,z(S,{point:r})),g.hoverPoint&&(S.type="taphold",S.point=r,S.target=g,r.firePointEvent(o,S)))},X.Pointer.prototype.setDOMEvents=function(){var S,w=this,x=w.chart.container;this.unbindContainerMouseLeave=function(){},this._events=S=[[x,"onmousedown","onContainerMouseDown"],[x,"onmousemove","onContainerMouseMove"],[x,"onclick","onContainerClick"],[x,"mouseleave","onContainerMouseLeave"],[x,"contextmenu","onContainerClick"],[x,"mousemove","onDocumentMouseMove"],[x,"mouseup","onDocumentMouseUp"]],m&&f&&S.push([x,"taphold","onContainerClick"]),m&&S.push([x,"ontouchmove","onContainerTouchMove"],[x,"ontouchstart","onContainerTouchStart"],[x,"taphold","onContainerTapHold"],[document,"touchend","onDocumentTouchEnd"]),S.forEach(function(c){var g=ct(c,3),r=g[0],a=g[1],t=g[2];w["_"+t]=function(i){typeof w[c[2]]=="function"&&w[c[2]](i)},a.indexOf("on")===0?r[a]=w["_"+t]:r.addEventListener(a,w["_"+t])})},X.Navigator.prototype.updateNavigatorSeries=function(S){var w,x,c,g=this,r=g.chart,a=g.baseSeries,t=g.navigatorOptions.series,i={enableMouseTracking:!1,index:null,linkedTo:null,group:"nav",padXAxis:!1,xAxis:"navigator-x-axis",yAxis:"navigator-y-axis",showInLegend:!1,stacking:!1,isInternal:!0,visible:!0},o=g.series=(g.series||[]).filter(function(e){var s=e.baseSeries;return!(a.indexOf(s)<0&&(s&&(U(s,"updatedData",g.updatedDataHandler),delete s.navigatorSeries),e.destroy(),1))});a&&a.length&&a.forEach(function(e){var s=e.navigatorSeries,n=z({color:e.color},Array.isArray(t)?u.navigator.series:t);if(!s||g.navigatorOptions.adaptToUpdatedData!==!1){i.name="Navigator "+a.length,w=e.options||{},c=w.navigatorOptions||{},x=E(w,i,n,c);var l=c.data||n.data;g.hasNavigatorData=g.hasNavigatorData||!!l,x.data=l||w.data&&w.data.slice(0),x.data=(0,G.default)(x.data),(x.data||[]).forEach(function(b){b&&b.marker&&b.marker.enabled&&(b.marker.enabled=!1)}),x.color=w.color,x.fillOpacity=w.fillOpacity,x.type!=="spline"&&x.type!=="areaspline"||(x.stacking=w.stacking),w.stacking!=="percent"&&w.stacking!=="normal"||(x.stacking=w.stacking,x.startFromThreshold=!1),s&&s.options?s.update(x,S):(e.navigatorSeries=r.initSeries(x),e.navigatorSeries.baseSeries=e,o.push(e.navigatorSeries))}}),(!t.data||a&&a.length)&&!Array.isArray(t)||(g.hasNavigatorData=!1,(t=X.splat(t)).forEach(function(e,s){i.name="Navigator "+(o.length+1),(x=E(u.navigator.series,{color:r.series[s]&&!r.series[s].options.isInternal&&r.series[s].color||r.options.colors[s]||r.options.colors[0]},i,e)).data=e.data,x.data&&(g.hasNavigatorData=!0,o.push(r.initSeries(x)))})),this.addBaseSeriesEvents()},X.seriesTypes.scatter.prototype.drawLegendSymbol=X.seriesTypes.column.prototype.drawLegendSymbol,(0,B.wrap)(X.Pointer.prototype,"runPointActions",function(S,w,x){var c,g=w,r=this.chart;S.call(this,w,x);var a=r.hoverPoint,t=r.hoverSeries;if(g&&r.hoverPoint&&(e=g.touches?g.touches.length&&g.touches.item?g.touches.item(0):g.changedTouches?g.changedTouches[0]:g:g)&&e.clientX&&e.clientY){for(var i=document.elementFromPoint(e.clientX,e.clientY);i&&!c;)c=i.point,i=i.parentNode;c&&r.hoverPoint!=c&&c.onMouseOver(g)}(0,B.defined)(a)||(0,B.defined)(t)||(0,_.default)(r,"sisenseTipper.status")!=="on"||!r.sisenseTipper.tipper||(r.sisenseTipper.tipper.deactivate(),(0,et.default)(r,"sisenseTipper.status","off"));var o=(0,_.default)(r,"sisenseTipper.chartType");if((0,_.default)(r,"sisenseTipper.status")!=="off"&&(0,_.default)(r,"sisenseTipper.tipper")&&(o==="pie"||o==="scatter"||o==="bubble"||g.type==="touchmove")){var e=g.touches?g.touches.length&&g.touches.item?g.touches.item(0):g.changedTouches?g.changedTouches[0]:g:g;r.sisenseTipper.tipper.activate({x:e.clientX,y:e.clientY,space:0})}}),(0,B.wrap)(X.Chart.prototype,"getContainer",function(S,w,x){S.call(this,w,x);var c,g=this;g.renderTo=c=g.container.parentElement,c.setAttribute("data-type",(0,_.default)(g,"options.chart.type"))}),(0,B.wrap)(X.Pointer.prototype,"normalize",function(S,w,x){return S.apply(this,[].slice.call(arguments,1)),x&&w.chartY<0&&(w.chartY=100),w}),(0,B.wrap)(X.Chart.prototype,"setChartSize",function(S){var w,x,c,g,r=this.legend,a=this.navigator;if(S.apply(this,[].slice.call(arguments,1)),a){if(x=r&&r.options,c=a.xAxis,g=a.yAxis,w=a.scrollbarHeight,this.inverted){var t=a.opposite?this.chartWidth-w-a.height:this.spacing[3]+w,i=this.plotTop+w;x.align==="left"&&r.legendWidth&&(t+=r.legendWidth),a.left=a.navigatorOptions.left||t,a.top=a.navigatorOptions.top||i}c&&g&&(this.inverted?c.options.left=g.options.left=a.left:c.options.top=g.options.top=a.top,c.setAxisSize(),g.setAxisSize())}}),(0,B.wrap)(X.Chart.prototype,"renderLabels",function(S){var w,x,c,g=this;if(S.apply(this,[].slice.call(arguments,1)),g&&g.polar&&g.userOptions&&((w=g.userOptions)===null||w===void 0?void 0:w.labels)&&((c=(x=g.userOptions.labels)===null||x===void 0?void 0:x.items)===null||c===void 0?void 0:c.length)){var r=void 0,a=g.userOptions.labels.items[0].html,t=pt([],ct(g.container.querySelectorAll("text")),!1).find(function(b){return b.innerHTML.includes(a)}),i=g.containerWidth,o=t.clientWidth,e=t.getBBox(),s=e.height?e.height:20,n=i/2-o/2,l=void 0;g.legend.options.verticalAlign==="top"?(r=g.legend.legendHeight+20+s)>g.plotTop&&(l=20+s,r=g.legend.legendHeight+l/2+10,g.legend.update({margin:l},!0)):(r=20)>g.plotTop&&(l=20+s,r=10+s,g.update({chart:{marginTop:l}},!0)),t.setAttribute("x",n),t.setAttribute("y",r)}}),X.wrap(X.SVGElement.prototype,"titleSetter",function(S,w){var x,c,g=this.element.getElementsByTagName("title")[0];g||(g=document.createElementNS(this.SVG_NS,"title"),this.element.appendChild(g)),g.firstChild&&g.removeChild(g.firstChild),g.appendChild(document.createTextNode((x=this.renderer.escapes,c=w,X.objectEach(x,function(r,a){c=c.replace(new RegExp(r,"g"),a)}),c)))}),(0,B.wrap)(X.Chart.prototype,"renderLabels",function(S){S.apply(this,[].slice.call(arguments,1)),this.chartBackground.addClass("widget-body")}),(0,B.wrap)(X.Legend.prototype,"renderItem",function(S,w){var x=this,c=x.options,g=w.legendItem,r=w.series&&w.series.drawLegendSymbol?w.series:w,a=c.useHTML;S.apply(this,[].slice.call(arguments,1)),/msie|trident/i.exec(navigator.userAgent)&&w.legendItem.group.element.addEventListener("contextmenu",function(t){var i="legendItemClick",o={eventType:"contextmenu",browserEvent:t};return w.firePointEvent?w.firePointEvent(i,o,null):Z(r,i,o,null),!1}),(a?g:w.legendItem.group).on("mouseover",function(){var t;w.setState("hover"),g&&((t=g.css)===null||t===void 0||t.call(g,x.options.itemHoverStyle))}).on("contextmenu",function(t){var i="legendItemClick",o={eventType:"contextmenu",browserEvent:t};return w.firePointEvent?w.firePointEvent(i,o,null):Z(r,i,o,null),!1})}),(0,B.wrap)(X.Navigator.prototype,"shadesMousedown",function(S){this.chart.pointer&&(this.chart.pointer.chartPosition=null),S.apply(this,[].slice.call(arguments,1))}),(0,B.wrap)(X.Navigator.prototype,"handlesMousedown",function(S){this.chart.pointer&&(this.chart.pointer.chartPosition=null),S.apply(this,[].slice.call(arguments,1))}),(0,B.wrap)(X.StackItem.prototype,"render",function(S){var w=this.options,x=(0,_.default)(this,"axis.chart.options.chart.type");if(this.alignOptions&&this.total!==void 0&&(x==="column"||x==="bar"&&Math.abs(w.rotation)===90)&&(this.alignOptions.y=this.alignOptions.x=0),S.apply(this,[].slice.call(arguments,1)),this.total!==void 0){var c=this.label.getBBox(!0,0),g=this.label.getBBox(),r=-Math.sign(this.total),a=0,t=0;if(x==="column"?(this.total<0||Math.abs(w.rotation)===90?a=g.height/2*r:Math.abs(w.rotation)===45&&this.total>0&&(a=-c.width/2*Math.sin(45*Math.PI/180)),Math.abs(w.rotation)===45&&(t+=-g.width/4*r),Math.abs(w.rotation)===90&&(t+=c.height/4),a+=5*r):x==="bar"&&Math.abs(w.rotation)===90&&(a=-g.height/2*r,this.total>=0&&(t+=c.height/2),t+=-5*r),this.label.translate(t,a),this.label&&!this.label.labelrank){var i=this.total===0?Number.MIN_SAFE_INTEGER:0;this.label.labelrank=this.x+w.labelrank+i}}}),X.wrap(X,"fireEvent",function(S,w,x,c){var g=new Event(x),r=(0,_.default)(c,"changedTouches"),a=(0,_.default)(c,"point.graphic.element");z(g,c),r&&(g.clientX=(0,_.default)(r,"0.clientX"),g.clientY=(0,_.default)(r,"0.clientY"),g.target=a),S.apply(this,[].slice.call(arguments,1))}),(0,B.wrap)(X.Point.prototype,"getLabelConfig",function(S){var w=S.apply(this,[].slice.call(arguments,1));return this.originalY&&(w.y=this.originalY),w}),(0,B.wrap)(X.seriesTypes.column.prototype,"alignDataLabel",function(S,w,x,c){var g=w.series.options.stacking,r=this.chart.inverted,a=c.rotation,t=w.y<0&&w.dataLabel,i=w.dlBox,o=w.dataLabel.getBBox();if(!g&&t){w.below=!0;var e=E(w.dlBox||w.shapeArgs),s=r?o.width:o.height;e.y+=s,w.dlBox=e}else g&&(c.align="center");!g&&a&&(o=w.dataLabel.getBBox(),r?c.x+=.5*o.width:t&&Math.abs(a)%360==45&&(c.x=.5*-o.width));var n=S.apply(this,[].slice.call(arguments,1));return w.dlBox=i,n}),X.Scroller=X.Navigator}},3269:(it,rt,st)=>{st.d(rt,{A:()=>U});const ht=(0,st(123).A)(Object,"create");var ct=Object.prototype.hasOwnProperty,pt=Object.prototype.hasOwnProperty;function ft($){var Z=-1,V=$==null?0:$.length;for(this.clear();++Z<V;){var z=$[Z];this.set(z[0],z[1])}}ft.prototype.clear=function(){this.__data__=ht?ht(null):{},this.size=0},ft.prototype.delete=function($){var Z=this.has($)&&delete this.__data__[$];return this.size-=Z?1:0,Z},ft.prototype.get=function($){var Z=this.__data__;if(ht){var V=Z[$];return V==="__lodash_hash_undefined__"?void 0:V}return ct.call(Z,$)?Z[$]:void 0},ft.prototype.has=function($){var Z=this.__data__;return ht?Z[$]!==void 0:pt.call(Z,$)},ft.prototype.set=function($,Z){var V=this.__data__;return this.size+=this.has($)?0:1,V[$]=ht&&Z===void 0?"__lodash_hash_undefined__":Z,this};const _=ft;var et=st(6096),G=st(5436);const B=function($,Z){var V,z,I=$.__data__;return((z=typeof(V=Z))=="string"||z=="number"||z=="symbol"||z=="boolean"?V!=="__proto__":V===null)?I[typeof Z=="string"?"string":"hash"]:I.map};function X($){var Z=-1,V=$==null?0:$.length;for(this.clear();++Z<V;){var z=$[Z];this.set(z[0],z[1])}}X.prototype.clear=function(){this.size=0,this.__data__={hash:new _,map:new(G.A||et.A),string:new _}},X.prototype.delete=function($){var Z=B(this,$).delete($);return this.size-=Z?1:0,Z},X.prototype.get=function($){return B(this,$).get($)},X.prototype.has=function($){return B(this,$).has($)},X.prototype.set=function($,Z){var V=B(this,$),z=V.size;return V.set($,Z),this.size+=V.size==z?0:1,this};const U=X},3516:(it,rt,st)=>{st.d(rt,{A:()=>ht});const ht=st(9600).A.Symbol},3966:function(it,rt,st){var ht=this&&this.__importDefault||function(pt){return pt&&pt.__esModule?pt:{default:pt}};Object.defineProperty(rt,"__esModule",{value:!0});var ct=ht(st(368));rt.default=ct.default},4044:(it,rt,st)=>{st.d(rt,{A:()=>B});var ht=st(3516),ct=Object.prototype,pt=ct.hasOwnProperty,ft=ct.toString,_=ht.A?ht.A.toStringTag:void 0,et=Object.prototype.toString,G=ht.A?ht.A.toStringTag:void 0;const B=function(X){return X==null?X===void 0?"[object Undefined]":"[object Null]":G&&G in Object(X)?function(U){var $=pt.call(U,_),Z=U[_];try{U[_]=void 0;var V=!0}catch(I){}var z=ft.call(U);return V&&($?U[_]=Z:delete U[_]),z}(X):function(U){return et.call(U)}(X)}},4089:(it,rt,st)=>{st.d(rt,{A:()=>pt});var ht=st(4044),ct=st(7313);const pt=function(ft){return typeof ft=="symbol"||(0,ct.A)(ft)&&(0,ht.A)(ft)=="[object Symbol]"}},4441:(it,rt,st)=>{st.r(rt),st.d(rt,{default:()=>et});var ht=st(6124),ct=st(5118),pt=st(5378),ft=st(7942),_=st(9322);const et=function(G,B,X){return G==null?G:function(U,$,Z,V){if(!(0,ft.A)(U))return U;for(var z=-1,I=($=(0,ct.A)($,U)).length,E=I-1,M=U;M!=null&&++z<I;){var P=(0,_.A)($[z]),y=Z;if(P==="__proto__"||P==="constructor"||P==="prototype")return U;if(z!=E){var h=M[P];(y=void 0)==void 0&&(y=(0,ft.A)(h)?h:(0,pt.A)($[z+1])?[]:{})}(0,ht.A)(M,P,y),M=M[P]}return U}(G,B,X)}},4459:(it,rt,st)=>{var ht,ct,pt;pt=function(ft){var _=ft?ft._modules:{};function et(G,B,X,U){G.hasOwnProperty(B)||(G[B]=U.apply(null,X),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:B,module:G[B]}})))}et(_,"Extensions/Breadcrumbs.js",[_["Core/Chart/Chart.js"],_["Core/Defaults.js"],_["Core/Globals.js"],_["Core/Utilities.js"],_["Core/FormatUtilities.js"]],function(G,B,X,U,$){var Z=B.defaultOptions,V=$.format,z=U.addEvent,I=U.objectEach,E=U.extend,M=U.fireEvent,P=U.merge,y=U.pick,h=U.defined,f=U.isString;E(Z.lang,{mainBreadcrumb:"Main"});var m=function(){function u(v,S){this.group=void 0,this.list=[],this.elementList={},this.isDirty=!0,this.level=0,this.options=void 0;var w=P(v.options.drilldown&&v.options.drilldown.drillUpButton,u.defaultBreadcrumbsOptions,v.options.navigation&&v.options.navigation.breadcrumbs,S);this.chart=v,this.options=w||{}}return u.prototype.updateProperties=function(v){this.setList(v),this.setLevel(),this.isDirty=!0},u.prototype.setList=function(v){this.list=v},u.prototype.setLevel=function(){this.level=this.list.length&&this.list.length-1},u.prototype.getLevel=function(){return this.level},u.prototype.getButtonText=function(v){var S=this.chart,w=this.options,x=S.options.lang,c=y(w.format,w.showFullPath?"{level.name}":"← {level.name}"),g=x&&y(x.drillUpText,x.mainBreadcrumb),r=w.formatter&&w.formatter(v)||V(c,{level:v.levelOptions},S)||"";return(f(r)&&!r.length||r==="← ")&&h(g)&&(r=w.showFullPath?g:"← "+g),r},u.prototype.redraw=function(){this.isDirty&&this.render(),this.group&&this.group.align(),this.isDirty=!1},u.prototype.render=function(){var v=this,S=v.chart,w=v.options;!v.group&&w&&(v.group=S.renderer.g("breadcrumbs-group").addClass("highcharts-no-tooltip highcharts-breadcrumbs").attr({zIndex:w.zIndex}).add()),w.showFullPath?this.renderFullPathButtons():this.renderSingleButton(),this.alignBreadcrumbsGroup()},u.prototype.renderFullPathButtons=function(){this.destroySingleButton(),this.resetElementListState(),this.updateListElements(),this.destroyListElements()},u.prototype.renderSingleButton=function(){var v=this,S=v.chart,w=v.list,x=v.options.buttonSpacing;this.destroyListElements();var c=v.group?v.group.getBBox().width:x,g=x,r=w[w.length-2];!S.drillUpButton&&this.level>0?S.drillUpButton=v.renderButton(r,c,g):S.drillUpButton&&(this.level>0?this.updateSingleButton():this.destroySingleButton())},u.prototype.alignBreadcrumbsGroup=function(v){var S=this;if(S.group){var w=S.options,x=w.buttonTheme,c=w.position,g=w.relativeTo==="chart"||w.relativeTo==="spacingBox"?void 0:"scrollablePlotBox",r=S.group.getBBox(),a=2*(x.padding||0)+w.buttonSpacing;c.width=r.width+a,c.height=r.height+a;var t=P(c);v&&(t.x+=v),S.options.rtl&&(t.x+=c.width),t.y=y(t.y,this.yOffset,0),S.group.align(t,!0,g)}},u.prototype.renderButton=function(v,S,w){var x=this,c=this.chart,g=x.options,r=P(g.buttonTheme),a=c.renderer.button(x.getButtonText(v),S,w,function(t){var i,o=g.events&&g.events.click;o&&(i=o.call(x,t,v)),i!==!1&&(g.showFullPath?t.newLevel=v.level:t.newLevel=x.level-1,M(x,"up",t))},r).addClass("highcharts-breadcrumbs-button").add(x.group);return c.styledMode||a.attr(g.style),a},u.prototype.renderSeparator=function(v,S){var w=this.chart,x=this.options.separator,c=w.renderer.label(x.text,v,S,void 0,void 0,void 0,!1).addClass("highcharts-breadcrumbs-separator").add(this.group);return w.styledMode||c.css(x.style),c},u.prototype.update=function(v){P(!0,this.options,v),this.destroy(),this.isDirty=!0},u.prototype.updateSingleButton=function(){var v=this.chart,S=this.list[this.level-1];v.drillUpButton&&v.drillUpButton.attr({text:this.getButtonText(S)})},u.prototype.destroy=function(){this.destroySingleButton(),this.destroyListElements(!0),this.group&&this.group.destroy(),this.group=void 0},u.prototype.destroyListElements=function(v){var S=this.elementList;I(S,function(w,x){!v&&S[x].updated||((w=S[x]).button&&w.button.destroy(),w.separator&&w.separator.destroy(),delete w.button,delete w.separator,delete S[x])}),v&&(this.elementList={})},u.prototype.destroySingleButton=function(){this.chart.drillUpButton&&(this.chart.drillUpButton.destroy(),this.chart.drillUpButton=void 0)},u.prototype.resetElementListState=function(){I(this.elementList,function(v){v.updated=!1})},u.prototype.updateListElements=function(){var v,S=this,w=S.elementList,x=S.options.buttonSpacing,c=S.list,g=S.options.rtl,r=g?-1:1,a=function(e,s){return r*e.getBBox().width+r*s},t=function(e,s,n){e.translate(s-e.getBBox().width,n)},i=S.group?a(S.group,x):x,o=x;c.forEach(function(e,s){var n,l,b=s===c.length-1;w[e.level]?(n=(v=w[e.level]).button,v.separator||b?v.separator&&b&&(v.separator.destroy(),delete v.separator):(i+=r*x,v.separator=S.renderSeparator(i,o),g&&t(v.separator,i,o),i+=a(v.separator,x)),w[e.level].updated=!0):(n=S.renderButton(e,i,o),g&&t(n,i,o),i+=a(n,x),b||(l=S.renderSeparator(i,o),g&&t(l,i,o),i+=a(l,x)),w[e.level]={button:n,separator:l,updated:!0}),n&&n.setState(b?2:0)})},u.defaultBreadcrumbsOptions={buttonTheme:{fill:"none",height:18,padding:2,"stroke-width":0,zIndex:7,states:{select:{fill:"none"}},style:{color:"#335cad"}},buttonSpacing:5,floating:!1,format:void 0,relativeTo:"plotBox",rtl:!1,position:{align:"left",verticalAlign:"top",x:0,y:void 0},separator:{text:"/",style:{color:"#666666"}},showFullPath:!0,style:{},useHTML:!1,zIndex:7},u}();return X.Breadcrumbs||(X.Breadcrumbs=m,z(G,"getMargins",function(){var u=this.breadcrumbs;if(u&&!u.options.floating&&u.level){var v=u.options,S=v.buttonTheme,w=(S.height||0)+2*(S.padding||0)+v.buttonSpacing,x=v.position.verticalAlign;x==="bottom"?(this.marginBottom=(this.marginBottom||0)+w,u.yOffset=w):x!=="middle"?(this.plotTop+=w,u.yOffset=-w):u.yOffset=void 0}}),z(G,"redraw",function(){this.breadcrumbs&&this.breadcrumbs.redraw()}),z(G,"destroy",function(){this.breadcrumbs&&(this.breadcrumbs.destroy(),this.breadcrumbs=void 0)}),z(G,"afterShowResetZoom",function(){var u=this;if(u.breadcrumbs){var v=u.resetZoomButton&&u.resetZoomButton.getBBox(),S=u.breadcrumbs.options;v&&S.position.align==="right"&&S.relativeTo==="plotBox"&&u.breadcrumbs.alignBreadcrumbsGroup(-v.width-S.buttonSpacing)}}),z(G,"selection",function(u){u.resetSelection===!0&&this.breadcrumbs&&this.breadcrumbs.alignBreadcrumbsGroup()})),m}),et(_,"Extensions/Drilldown.js",[_["Core/Animation/AnimationUtilities.js"],_["Core/Axis/Axis.js"],_["Core/Chart/Chart.js"],_["Core/Color/Color.js"],_["Series/Column/ColumnSeries.js"],_["Core/Globals.js"],_["Core/Defaults.js"],_["Core/Series/Point.js"],_["Core/Series/Series.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Renderer/SVG/SVGRenderer.js"],_["Core/Axis/Tick.js"],_["Core/Utilities.js"],_["Extensions/Breadcrumbs.js"]],function(G,B,X,U,$,Z,V,z,I,E,M,P,y,h){var f=G.animObject,m=Z.noop,u=V.defaultOptions,v=E.seriesTypes,S=y.addEvent,w=y.removeEvent,x=y.extend,c=y.fireEvent,g=y.merge,r=y.objectEach,a=y.pick,t=y.syncTimeout,i=v.pie,o=1;x(u.lang,{}),u.drilldown={activeAxisLabelStyle:{cursor:"pointer",color:"#003399",fontWeight:"bold",textDecoration:"underline"},activeDataLabelStyle:{cursor:"pointer",color:"#003399",fontWeight:"bold",textDecoration:"underline"},animation:{duration:500},drillUpButton:{position:{align:"right",x:-10,y:10}}},M.prototype.Element.prototype.fadeIn=function(b){this.attr({opacity:.1,visibility:"inherit"}).animate({opacity:a(this.newOpacity,1)},b||{duration:250})},X.prototype.addSeriesAsDrilldown=function(b,k){this.addSingleSeriesAsDrilldown(b,k),this.applyDrilldown()},X.prototype.addSingleSeriesAsDrilldown=function(b,k){var D,d,C,A,N,R,L=b.series,O=L.xAxis,j=L.yAxis,Y=[],H=[];R=this.styledMode?{colorIndex:a(b.colorIndex,L.colorIndex)}:{color:b.color||L.color},this.drilldownLevels||(this.drilldownLevels=[]),A=L.options._levelNumber||0,(N=this.drilldownLevels[this.drilldownLevels.length-1])&&N.levelNumber!==A&&(N=void 0),k=x(x({_ddSeriesId:o++},R),k),d=L.points.indexOf(b),L.chart.series.forEach(function(W){W.xAxis!==O||W.isDrilling||(W.options._ddSeriesId=W.options._ddSeriesId||o++,W.options._colorIndex=W.userOptions._colorIndex,W.options._levelNumber=W.options._levelNumber||A,N?(Y=N.levelSeries,H=N.levelSeriesOptions):(Y.push(W),W.purgedOptions=g({_ddSeriesId:W.options._ddSeriesId,_levelNumber:W.options._levelNumber,selected:W.options.selected},W.userOptions),H.push(W.purgedOptions)))}),C=x({levelNumber:A,seriesOptions:L.options,seriesPurgedOptions:L.purgedOptions,levelSeriesOptions:H,levelSeries:Y,shapeArgs:b.shapeArgs,bBox:b.graphic?b.graphic.getBBox():{},color:b.isNull?U.parse(R.color).setOpacity(0).get():R.color,lowerSeriesOptions:k,pointOptions:L.options.data[d],pointIndex:d,oldExtremes:{xMin:O&&O.userMin,xMax:O&&O.userMax,yMin:j&&j.userMin,yMax:j&&j.userMax},resetZoomButton:N&&N.levelNumber===A?void 0:this.resetZoomButton},R),this.drilldownLevels.push(C),O&&O.names&&(O.names.length=0),(D=C.lowerSeries=this.addSeries(k,!1)).options._levelNumber=A+1,O&&(O.oldPos=O.pos,O.userMin=O.userMax=null,j.userMin=j.userMax=null),L.type===D.type&&(D.animate=D.animateDrilldown||m,D.options.animation=!0)},X.prototype.applyDrilldown=function(){var b,k=this.drilldownLevels;k&&k.length>0&&(b=k[k.length-1].levelNumber,this.drilldownLevels.forEach(function(D){D.levelNumber===b&&D.levelSeries.forEach(function(d){d.options&&d.options._levelNumber===b&&d.remove(!1)})})),this.resetZoomButton&&(this.resetZoomButton.hide(),delete this.resetZoomButton),this.pointer.reset(),c(this,"afterDrilldown"),this.redraw(),c(this,"afterApplyDrilldown")};var e=function(b){var k=[],D=b.drilldownLevels;return D&&D.length&&(k[0]||k.push({level:0,levelOptions:D[0].seriesOptions}),D.forEach(function(d,C){var A=k[k.length-1];d.levelNumber+1>A.level&&k.push({level:d.levelNumber+1,levelOptions:g({name:d.lowerSeries.name},d.pointOptions)})})),k};function s(b){var k=f(this.chart.options.drilldown.animation);b&&(b.hide(),t(function(){b&&b.added&&b.fadeIn()},Math.max(k.duration-50,0)))}X.prototype.drillUp=function(){if(this.drilldownLevels&&this.drilldownLevels.length!==0){c(this,"beforeDrillUp");for(var b,k,D,d,C,A=this,N=A.drilldownLevels,R=N[N.length-1].levelNumber,L=N.length,O=A.series,j=function(H){var W;O.forEach(function(q){q.options._ddSeriesId===H._ddSeriesId&&(W=q)}),(W=W||A.addSeries(H,!1)).type===D.type&&W.animateDrillupTo&&(W.animate=W.animateDrillupTo),H===k.seriesPurgedOptions&&(d=W)},Y=A.drilldownLevels.length;L--;)if((k=N[L]).levelNumber===R){if(N.pop(),!(D=k.lowerSeries).chart){for(b=O.length;b--;)if(O[b].options.id===k.lowerSeriesOptions.id&&O[b].options._levelNumber===R+1){D=O[b];break}}D.xData=[],D.xAxis&&D.xAxis.names&&(Y===0||L===Y)&&(D.xAxis.names.length=0),k.levelSeriesOptions.forEach(j),c(A,"drillup",{seriesOptions:k.seriesPurgedOptions||k.seriesOptions}),d.type===D.type&&(d.drilldownLevel=k,d.options.animation=A.options.drilldown.animation,D.animateDrillupFrom&&D.chart&&D.animateDrillupFrom(k)),d.options._levelNumber=R,D.remove(!1),d.xAxis&&(C=k.oldExtremes,d.xAxis.setExtremes(C.xMin,C.xMax,!1),d.yAxis.setExtremes(C.yMin,C.yMax,!1)),k.resetZoomButton&&(A.resetZoomButton=k.resetZoomButton)}c(A,"afterDrillUp"),this.redraw(),this.ddDupes&&(this.ddDupes.length=0),c(A,"drillupall")}},S(X,"afterInit",function(){var b=this;b.drilldown={chart:b,fadeInGroup:s,update:function(k,D){g(!0,b.options.drilldown,k),a(D,!0)&&b.redraw()}}}),S(X,"render",function(){(this.xAxis||[]).forEach(function(b){b.ddPoints={},b.series.forEach(function(k){var D,d,C=k.xData||[],A=k.points;for(D=0;D<C.length;D++)if(typeof(d=k.options.data[D])!="number"&&(d=k.pointClass.prototype.optionsToObject.call({series:k},d)).drilldown){b.ddPoints[C[D]]||(b.ddPoints[C[D]]=[]);var N=D-(k.cropStart||0);b.ddPoints[C[D]].push(!(A&&N>=0&&N<A.length)||A[N])}}),r(b.ticks,P.prototype.drillable)})}),S(Z.Breadcrumbs,"up",function(b){for(var k=this.chart,D=this.getLevel()-b.newLevel,d=0;d<D;d++)k.drillUp()}),S(X,"afterDrilldown",function(){var b=this,k=b.options.drilldown,D=k&&k.breadcrumbs;b.breadcrumbs||(b.breadcrumbs=new h(b,D)),b.breadcrumbs.updateProperties(e(b))}),S(X,"afterDrillUp",function(){var b=this;b.breadcrumbs&&b.breadcrumbs.updateProperties(e(b))}),S(X,"update",function(b){var k=this.breadcrumbs,D=b.options.drilldown&&b.options.drilldown.breadcrumbs;k&&D&&k.update(b.options.drilldown.breadcrumbs)}),$.prototype.animateDrillupTo=function(b){if(!b){var k=this,D=k.drilldownLevel;this.points.forEach(function(d){var C=d.dataLabel;d.graphic&&d.graphic.hide(),C&&(C.hidden=C.attr("visibility")==="hidden",C.hidden||(C.hide(),d.connector&&d.connector.hide()))}),t(function(){if(k.points){var d=[];k.data.forEach(function(C){d.push(C)}),k.nodes&&(d=d.concat(k.nodes)),d.forEach(function(C,A){var N=A===(D&&D.pointIndex)?"show":"fadeIn",R=N==="show"||void 0,L=C.dataLabel;C.graphic&&C.graphic[N](R),L&&!L.hidden&&(L.fadeIn(),C.connector&&C.connector.fadeIn())})}},Math.max(this.chart.options.drilldown.animation.duration-50,0)),delete this.animate}},$.prototype.animateDrilldown=function(b){var k,D=this,d=this.chart,C=d.drilldownLevels,A=f(d.options.drilldown.animation),N=this.xAxis,R=d.styledMode;b||(C.forEach(function(L){D.options._ddSeriesId===L.lowerSeriesOptions._ddSeriesId&&(k=L.shapeArgs,R||(k.fill=L.color))}),k.x+=a(N.oldPos,N.pos)-N.pos,this.points.forEach(function(L){var O=L.shapeArgs;R||(O.fill=L.color),L.graphic&&L.graphic.attr(k).animate(x(L.shapeArgs,{fill:L.color||D.color}),A)}),d.drilldown&&d.drilldown.fadeInGroup(this.dataLabelsGroup),delete this.animate)},$.prototype.animateDrillupFrom=function(b){var k=f(this.chart.options.drilldown.animation),D=this.group,d=D!==this.chart.columnGroup,C=this;C.trackerGroups.forEach(function(A){C[A]&&C[A].on("mouseover")}),d&&delete this.group,this.points.forEach(function(A){var N=A.graphic,R=b.shapeArgs,L=function(){N.destroy(),D&&d&&(D=D.destroy())};N&&R&&(delete A.graphic,C.chart.styledMode||(R.fill=b.color),k.duration?N.animate(R,g(k,{complete:L})):(N.attr(R),L()))})},i&&x(i.prototype,{animateDrillupTo:$.prototype.animateDrillupTo,animateDrillupFrom:$.prototype.animateDrillupFrom,animateDrilldown:function(b){var k=this.chart.drilldownLevels[this.chart.drilldownLevels.length-1],D=this.chart.options.drilldown.animation;if(this.is("item")&&(D.duration=0),this.center){var d=k.shapeArgs,C=d.start,A=(d.end-C)/this.points.length,N=this.chart.styledMode;b||(this.points.forEach(function(R,L){var O=R.shapeArgs;N||(d.fill=k.color,O.fill=R.color),R.graphic&&R.graphic.attr(g(d,{start:C+L*A,end:C+(L+1)*A}))[D?"animate":"attr"](O,D)}),this.chart.drilldown&&this.chart.drilldown.fadeInGroup(this.dataLabelsGroup),delete this.animate)}}}),z.prototype.doDrilldown=function(){this.runDrilldown()},z.prototype.runDrilldown=function(b,k,D){var d,C=this.series.chart,A=C.options.drilldown,N=(A.series||[]).length;for(C.ddDupes||(C.ddDupes=[]);N--&&!d;)A.series[N].id===this.drilldown&&C.ddDupes.indexOf(this.drilldown)===-1&&(d=A.series[N],C.ddDupes.push(this.drilldown));c(C,"drilldown",{point:this,seriesOptions:d,category:k,originalEvent:D,points:k!==void 0&&this.series.xAxis.getDDPoints(k).slice(0)},function(R){var L=R.point.series&&R.point.series.chart,O=R.seriesOptions;L&&O&&(b?L.addSingleSeriesAsDrilldown(R.point,O):L.addSeriesAsDrilldown(R.point,O))})},B.prototype.drilldownCategory=function(b,k){this.getDDPoints(b).forEach(function(D){D&&D.series&&D.series.visible&&D.runDrilldown&&D.runDrilldown(!0,b,k)}),this.chart.applyDrilldown()},B.prototype.getDDPoints=function(b){return this.ddPoints&&this.ddPoints[b]||[]},P.prototype.drillable=function(){var b=this.pos,k=this.label,D=this.axis,d=D.coll==="xAxis"&&D.getDDPoints,C=d&&D.getDDPoints(b),A=D.chart.styledMode;d&&(k&&C&&C.length?(k.drillable=!0,k.basicStyles||A||(k.basicStyles=g(k.styles)),k.addClass("highcharts-drilldown-axis-label"),k.removeOnDrillableClick&&w(k.element,"click"),k.removeOnDrillableClick=S(k.element,"click",function(N){N.preventDefault(),D.drilldownCategory(b,N)}),A||k.css(D.chart.options.drilldown.activeAxisLabelStyle)):k&&k.drillable&&k.removeOnDrillableClick&&(A||(k.styles={},k.element.removeAttribute("style"),k.css(k.basicStyles)),k.removeOnDrillableClick(),k.removeClass("highcharts-drilldown-axis-label")))},S(z,"afterInit",function(){var b=this;return b.drilldown&&!b.unbindDrilldownClick&&(b.unbindDrilldownClick=S(b,"click",n)),b}),S(z,"update",function(b){var k=this,D=b.options||{};D.drilldown&&!k.unbindDrilldownClick?k.unbindDrilldownClick=S(k,"click",n):!D.drilldown&&D.drilldown!==void 0&&k.unbindDrilldownClick&&(k.unbindDrilldownClick=k.unbindDrilldownClick())});var n=function(b){var k=this,D=k.series;D.xAxis&&D.chart.options.drilldown.allowPointDrilldown===!1?D.xAxis.drilldownCategory(k.x,b):k.runDrilldown(void 0,void 0,b)};S(I,"afterDrawDataLabels",function(){var b=this.chart.options.drilldown.activeDataLabelStyle,k=this.chart.renderer,D=this.chart.styledMode;this.points.forEach(function(d){var C=d.options.dataLabels,A=a(d.dlOptions,C&&C.style,{});d.drilldown&&d.dataLabel&&(b.color!=="contrast"||D||(A.color=k.getContrast(d.color||this.color)),C&&C.color&&(A.color=C.color),d.dataLabel.addClass("highcharts-drilldown-data-label"),D||d.dataLabel.css(b).css(A))},this)});var l=function(b,k,D,d){b[D?"addClass":"removeClass"]("highcharts-drilldown-point"),d||b.css({cursor:k})};S(I,"afterDrawTracker",function(){var b=this.chart.styledMode;this.points.forEach(function(k){k.drilldown&&k.graphic&&l(k.graphic,"pointer",!0,b)})}),S(z,"afterSetState",function(){var b=this.series.chart.styledMode;this.drilldown&&this.series.halo&&this.state==="hover"?l(this.series.halo,"pointer",!0,b):this.series.halo&&l(this.series.halo,"auto",!1,b)}),S(X,"drillup",function(){this.resetZoomButton&&(this.resetZoomButton=this.resetZoomButton.destroy())}),S(X,"drillupall",function(){this.resetZoomButton&&this.showResetZoom()})}),et(_,"masters/modules/drilldown.src.js",[],function(){})},it.exports?(pt.default=pt,it.exports=pt):(ht=[st(4783)],(ct=function(ft){return pt(ft),pt.Highcharts=ft,pt}.apply(rt,ht))===void 0||(it.exports=ct))},4501:(it,rt,st)=>{st.r(rt),st.d(rt,{default:()=>ht});const ht=function(ct){return ct===void 0}},4608:function(it,rt,st){var ht=this&&this.__importDefault||function(y){return y&&y.__esModule?y:{default:y}};Object.defineProperty(rt,"__esModule",{value:!0});var ct=ht(st(5134)),pt=ht(st(1039)),ft=ht(st(6725)),_=ht(st(6660)),et=ht(st(4459)),G=ht(st(2060)),B=ht(st(6236)),X=ht(st(6512)),U=ht(st(5098)),$=ht(st(4812)),Z=ht(st(2397)),V=ht(st(50)),z=ht(st(5322)),I=ht(st(2)),E=ht(st(362)),M=ht(st(3039)),P=ht(st(3966));(0,ft.default)(ct.default),(0,pt.default)(ct.default),(0,_.default)(ct.default),(0,et.default)(ct.default),(0,G.default)(ct.default),(0,B.default)(ct.default),(0,X.default)(ct.default),(0,$.default)(ct.default),(0,U.default)(ct.default),(0,z.default)(ct.default),(0,I.default)(ct.default),(0,E.default)(ct.default),(0,M.default)(ct.default),(0,Z.default)(ct.default),(0,V.default)(ct.default),ct.default.setOptions(P.default),rt.default=ct.default},4783:function(it,rt,st){var ht,ct,pt;ct=typeof window!="undefined"?window:this,pt=function(ft){function _(G,B,X,U){G.hasOwnProperty(B)||(G[B]=U.apply(null,X),typeof CustomEvent=="function"&&ft.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:B,module:G[B]}})))}var et={};return _(et,"Core/Globals.js",[],function(){var G;return function(B){B.SVG_NS="http://www.w3.org/2000/svg",B.product="Highcharts",B.version="10.3.3",B.win=ft!==void 0?ft:{},B.doc=B.win.document,B.svg=B.doc&&B.doc.createElementNS&&!!B.doc.createElementNS(B.SVG_NS,"svg").createSVGRect,B.userAgent=B.win.navigator&&B.win.navigator.userAgent||"",B.isChrome=B.userAgent.indexOf("Chrome")!==-1,B.isFirefox=B.userAgent.indexOf("Firefox")!==-1,B.isMS=/(edge|msie|trident)/i.test(B.userAgent)&&!B.win.opera,B.isSafari=!B.isChrome&&B.userAgent.indexOf("Safari")!==-1,B.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(B.userAgent),B.isWebKit=B.userAgent.indexOf("AppleWebKit")!==-1,B.deg2rad=2*Math.PI/360,B.hasBidiBug=B.isFirefox&&4>parseInt(B.userAgent.split("Firefox/")[1],10),B.hasTouch=!!B.win.TouchEvent,B.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],B.noop=function(){},B.supportsPassiveEvents=function(){var X=!1;if(!B.isMS){var U=Object.defineProperty({},"passive",{get:function(){X=!0}});B.win.addEventListener&&B.win.removeEventListener&&(B.win.addEventListener("testPassive",B.noop,U),B.win.removeEventListener("testPassive",B.noop,U))}return X}(),B.charts=[],B.dateFormats={},B.seriesTypes={},B.symbolSizes={},B.chartCount=0}(G||(G={})),G}),_(et,"Core/Utilities.js",[et["Core/Globals.js"]],function(G){function B(t,i,o,e){var s=i?"Highcharts error":"Highcharts warning";t===32&&(t=s+": Deprecated member");var n=I(t),l=n?s+" #"+t+": www.highcharts.com/errors/"+t+"/":t.toString();if(e!==void 0){var b="";n&&(l+="?"),u(e,function(k,D){b+=`
|
|
1
|
+
"use strict";var Tc=Object.defineProperty,kc=Object.defineProperties;var Pc=Object.getOwnPropertyDescriptors;var go=Object.getOwnPropertySymbols;var Hn=Object.prototype.hasOwnProperty,Xn=Object.prototype.propertyIsEnumerable;var Ft=Math.pow,pr=(p,T,F)=>T in p?Tc(p,T,{enumerable:!0,configurable:!0,writable:!0,value:F}):p[T]=F,kt=(p,T)=>{for(var F in T||(T={}))Hn.call(T,F)&&pr(p,F,T[F]);if(go)for(var F of go(T))Xn.call(T,F)&&pr(p,F,T[F]);return p},_t=(p,T)=>kc(p,Pc(T));var Te=(p,T)=>{var F={};for(var K in p)Hn.call(p,K)&&T.indexOf(K)<0&&(F[K]=p[K]);if(p!=null&&go)for(var K of go(p))T.indexOf(K)<0&&Xn.call(p,K)&&(F[K]=p[K]);return F};var De=(p,T,F)=>pr(p,typeof T!="symbol"?T+"":T,F);const Rt=require("./execute-query-CdhSHTTA.cjs"),Lc=require("react/jsx-runtime"),Be=require("react"),da=require("react-dom/server");function ua(p){const T=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(p){for(const F in p)if(F!=="default"){const K=Object.getOwnPropertyDescriptor(p,F);Object.defineProperty(T,F,K.get?K:{enumerable:!0,get:()=>p[F]})}}return T.default=p,Object.freeze(T)}const $i=ua(Lc),ti=ua(Be);var Hi=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Jr(p){return p&&p.__esModule&&Object.prototype.hasOwnProperty.call(p,"default")?p.default:p}function Ec(p){if(p.__esModule)return p;var T=p.default;if(typeof T=="function"){var F=function K(){return this instanceof K?Reflect.construct(T,arguments,this.constructor):T.apply(this,arguments)};F.prototype=T.prototype}else F={};return Object.defineProperty(F,"__esModule",{value:!0}),Object.keys(p).forEach(function(K){var tt=Object.getOwnPropertyDescriptor(p,K);Object.defineProperty(F,K,tt.get?tt:{enumerable:!0,get:function(){return p[K]}})}),F}function Oc(){if(console&&console.warn){for(var p=arguments.length,T=new Array(p),F=0;F<p;F++)T[F]=arguments[F];typeof T[0]=="string"&&(T[0]=`react-i18next:: ${T[0]}`),console.warn(...T)}}const Yn={};function Tr(){for(var p=arguments.length,T=new Array(p),F=0;F<p;F++)T[F]=arguments[F];typeof T[0]=="string"&&Yn[T[0]]||(typeof T[0]=="string"&&(Yn[T[0]]=new Date),Oc(...T))}const fa=(p,T)=>()=>{if(p.isInitialized)T();else{const F=()=>{setTimeout(()=>{p.off("initialized",F)},0),T()};p.on("initialized",F)}};function Un(p,T,F){p.loadNamespaces(T,fa(p,F))}function Vn(p,T,F,K){typeof F=="string"&&(F=[F]),F.forEach(tt=>{p.options.ns.indexOf(tt)<0&&p.options.ns.push(tt)}),p.loadLanguages(T,fa(p,K))}function Dc(p,T){let F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const K=T.languages[0],tt=T.options?T.options.fallbackLng:!1,it=T.languages[T.languages.length-1];if(K.toLowerCase()==="cimode")return!0;const rt=(st,ht)=>{const ct=T.services.backendConnector.state[`${st}|${ht}`];return ct===-1||ct===2};return F.bindI18n&&F.bindI18n.indexOf("languageChanging")>-1&&T.services.backendConnector.backend&&T.isLanguageChangingTo&&!rt(T.isLanguageChangingTo,p)?!1:!!(T.hasResourceBundle(K,p)||!T.services.backendConnector.backend||T.options.resources&&!T.options.partialBundledLanguages||rt(K,p)&&(!tt||rt(it,p)))}function jc(p,T){let F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!T.languages||!T.languages.length?(Tr("i18n.languages were undefined or empty",T.languages),!0):T.options.ignoreJSONStructure!==void 0?T.hasLoadedNamespace(p,{lng:F.lng,precheck:(tt,it)=>{if(F.bindI18n&&F.bindI18n.indexOf("languageChanging")>-1&&tt.services.backendConnector.backend&&tt.isLanguageChangingTo&&!it(tt.isLanguageChangingTo,p))return!1}}):Dc(p,T,F)}const ga=Be.createContext();class Ic{constructor(){this.usedNamespaces={}}addUsedNamespaces(T){T.forEach(F=>{this.usedNamespaces[F]||(this.usedNamespaces[F]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const _c=(p,T)=>{const F=Be.useRef();return Be.useEffect(()=>{F.current=p},[p,T]),F.current};function Qr(p){let T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:F}=T,{i18n:K,defaultNS:tt}=Be.useContext(ga)||{},it=F||K||Rt.getI18n();if(it&&!it.reportNamespaces&&(it.reportNamespaces=new Ic),!it){Tr("You will need to pass in an i18next instance by using initReactI18next");const Z=(z,I)=>typeof I=="string"?I:I&&typeof I=="object"&&typeof I.defaultValue=="string"?I.defaultValue:Array.isArray(z)?z[z.length-1]:z,V=[Z,{},!1];return V.t=Z,V.i18n={},V.ready=!1,V}it.options.react&&it.options.react.wait!==void 0&&Tr("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const rt=kt(kt(kt({},Rt.getDefaults()),it.options.react),T),{useSuspense:st,keyPrefix:ht}=rt;let ct=tt||it.options&&it.options.defaultNS;ct=typeof ct=="string"?[ct]:ct||["translation"],it.reportNamespaces.addUsedNamespaces&&it.reportNamespaces.addUsedNamespaces(ct);const pt=(it.isInitialized||it.initializedStoreOnce)&&ct.every(Z=>jc(Z,it,rt));function ft(){return it.getFixedT(T.lng||null,rt.nsMode==="fallback"?ct:ct[0],ht)}const[_,et]=Be.useState(ft);let G=ct.join();T.lng&&(G=`${T.lng}${G}`);const B=_c(G),X=Be.useRef(!0);Be.useEffect(()=>{const{bindI18n:Z,bindI18nStore:V}=rt;X.current=!0,!pt&&!st&&(T.lng?Vn(it,T.lng,ct,()=>{X.current&&et(ft)}):Un(it,ct,()=>{X.current&&et(ft)})),pt&&B&&B!==G&&X.current&&et(ft);function z(){X.current&&et(ft)}return Z&&it&&it.on(Z,z),V&&it&&it.store.on(V,z),()=>{X.current=!1,Z&&it&&Z.split(" ").forEach(I=>it.off(I,z)),V&&it&&V.split(" ").forEach(I=>it.store.off(I,z))}},[it,G]);const U=Be.useRef(!0);Be.useEffect(()=>{X.current&&!U.current&&et(ft),U.current=!1},[it,ht]);const $=[_,it,pt];if($.t=_,$.i18n=it,$.ready=pt,pt||!pt&&!st)return $;throw new Promise(Z=>{T.lng?Vn(it,T.lng,ct,()=>Z()):Un(it,ct,()=>Z())})}const Nc=2e4,Bc="system",tn="#5B6372",Rc="#F4F4F8",zc="#FA5656",en="N\\A",Fc="N/A";function ma(p){if(p===null||p===!0||p===!1)return NaN;var T=Number(p);return isNaN(T)?T:T<0?Math.ceil(T):Math.floor(T)}function ya(p,T){if(T.length<p)throw new TypeError(p+" argument"+(p>1?"s":"")+" required, but only "+T.length+" present")}var va=6e4,ba=36e5;function Gc(p,T){var F;ya(1,arguments);var K=ma((F=void 0)!==null&&F!==void 0?F:2);if(K!==2&&K!==1&&K!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof p=="string"||Object.prototype.toString.call(p)==="[object String]"))return new Date(NaN);var tt=Yc(p),it;if(tt.date){var rt=Uc(tt.date,K);it=Vc(rt.restDateString,rt.year)}if(!it||isNaN(it.getTime()))return new Date(NaN);var st=it.getTime(),ht=0,ct;if(tt.time&&(ht=$c(tt.time),isNaN(ht)))return new Date(NaN);if(tt.timezone){if(ct=Zc(tt.timezone),isNaN(ct))return new Date(NaN)}else{var pt=new Date(st+ht),ft=new Date(0);return ft.setFullYear(pt.getUTCFullYear(),pt.getUTCMonth(),pt.getUTCDate()),ft.setHours(pt.getUTCHours(),pt.getUTCMinutes(),pt.getUTCSeconds(),pt.getUTCMilliseconds()),ft}return new Date(st+ht+ct)}var mo={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Wc=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Hc=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Xc=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Yc(p){var T={},F=p.split(mo.dateTimeDelimiter),K;if(F.length>2)return T;if(/:/.test(F[0])?K=F[0]:(T.date=F[0],K=F[1],mo.timeZoneDelimiter.test(T.date)&&(T.date=p.split(mo.timeZoneDelimiter)[0],K=p.substr(T.date.length,p.length))),K){var tt=mo.timezone.exec(K);tt?(T.time=K.replace(tt[1],""),T.timezone=tt[1]):T.time=K}return T}function Uc(p,T){var F=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+T)+"})|(\\d{2}|[+-]\\d{"+(2+T)+"})$)"),K=p.match(F);if(!K)return{year:NaN,restDateString:""};var tt=K[1]?parseInt(K[1]):null,it=K[2]?parseInt(K[2]):null;return{year:it===null?tt:it*100,restDateString:p.slice((K[1]||K[2]).length)}}function Vc(p,T){if(T===null)return new Date(NaN);var F=p.match(Wc);if(!F)return new Date(NaN);var K=!!F[4],tt=Ii(F[1]),it=Ii(F[2])-1,rt=Ii(F[3]),st=Ii(F[4]),ht=Ii(F[5])-1;if(K)return tp(T,st,ht)?Kc(T,st,ht):new Date(NaN);var ct=new Date(0);return!Jc(T,it,rt)||!Qc(T,tt)?new Date(NaN):(ct.setUTCFullYear(T,it,Math.max(tt,rt)),ct)}function Ii(p){return p?parseInt(p):1}function $c(p){var T=p.match(Hc);if(!T)return NaN;var F=dr(T[1]),K=dr(T[2]),tt=dr(T[3]);return ep(F,K,tt)?F*ba+K*va+tt*1e3:NaN}function dr(p){return p&&parseFloat(p.replace(",","."))||0}function Zc(p){if(p==="Z")return 0;var T=p.match(Xc);if(!T)return 0;var F=T[1]==="+"?-1:1,K=parseInt(T[2]),tt=T[3]&&parseInt(T[3])||0;return ip(K,tt)?F*(K*ba+tt*va):NaN}function Kc(p,T,F){var K=new Date(0);K.setUTCFullYear(p,0,4);var tt=K.getUTCDay()||7,it=(T-1)*7+F+1-tt;return K.setUTCDate(K.getUTCDate()+it),K}var qc=[31,null,31,30,31,30,31,31,30,31,30,31];function xa(p){return p%400===0||p%4===0&&p%100!==0}function Jc(p,T,F){return T>=0&&T<=11&&F>=1&&F<=(qc[T]||(xa(p)?29:28))}function Qc(p,T){return T>=1&&T<=(xa(p)?366:365)}function tp(p,T,F){return T>=1&&T<=53&&F>=0&&F<=6}function ep(p,T,F){return p===24?T===0&&F===0:F>=0&&F<60&&T>=0&&T<60&&p>=0&&p<25}function ip(p,T){return T>=0&&T<=59}var op=/\s/;function rp(p){for(var T=p.length;T--&&op.test(p.charAt(T)););return T}var np=/^\s+/;function Ca(p){return p&&p.slice(0,rp(p)+1).replace(np,"")}var $n=NaN,sp=/^[-+]0x[0-9a-f]+$/i,ap=/^0b[01]+$/i,lp=/^0o[0-7]+$/i,hp=parseInt;function on(p){if(typeof p=="number")return p;if(Rt.isSymbol(p))return $n;if(Rt.isObject(p)){var T=typeof p.valueOf=="function"?p.valueOf():p;p=Rt.isObject(T)?T+"":T}if(typeof p!="string")return p===0?p:+p;p=Ca(p);var F=ap.test(p);return F||lp.test(p)?hp(p.slice(2),F?2:8):sp.test(p)?$n:+p}var Zn=1/0,cp=17976931348623157e292;function Sa(p){if(!p)return p===0?p:0;if(p=on(p),p===Zn||p===-Zn){var T=p<0?-1:1;return T*cp}return p===p?p:0}function rn(p){const T=/([+-]\d{2}:?\d{2}|Z)$/i.test(p);return Gc(T?p:p+"Z")}var pp=!1;function dp(p){if(p.sheet)return p.sheet;for(var T=0;T<document.styleSheets.length;T++)if(document.styleSheets[T].ownerNode===p)return document.styleSheets[T]}function up(p){var T=document.createElement("style");return T.setAttribute("data-emotion",p.key),p.nonce!==void 0&&T.setAttribute("nonce",p.nonce),T.appendChild(document.createTextNode("")),T.setAttribute("data-s",""),T}var fp=function(){function p(F){var K=this;this._insertTag=function(tt){var it;K.tags.length===0?K.insertionPoint?it=K.insertionPoint.nextSibling:K.prepend?it=K.container.firstChild:it=K.before:it=K.tags[K.tags.length-1].nextSibling,K.container.insertBefore(tt,it),K.tags.push(tt)},this.isSpeedy=F.speedy===void 0?!pp:F.speedy,this.tags=[],this.ctr=0,this.nonce=F.nonce,this.key=F.key,this.container=F.container,this.prepend=F.prepend,this.insertionPoint=F.insertionPoint,this.before=null}var T=p.prototype;return T.hydrate=function(K){K.forEach(this._insertTag)},T.insert=function(K){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(up(this));var tt=this.tags[this.tags.length-1];if(this.isSpeedy){var it=dp(tt);try{it.insertRule(K,it.cssRules.length)}catch(rt){}}else tt.appendChild(document.createTextNode(K));this.ctr++},T.flush=function(){this.tags.forEach(function(K){var tt;return(tt=K.parentNode)==null?void 0:tt.removeChild(K)}),this.tags=[],this.ctr=0},p}(),we="-ms-",Ro="-moz-",ie="-webkit-",wa="comm",nn="rule",sn="decl",gp="@import",Ma="@keyframes",mp="@layer",yp=Math.abs,Qo=String.fromCharCode,vp=Object.assign;function bp(p,T){return be(p,0)^45?(((T<<2^be(p,0))<<2^be(p,1))<<2^be(p,2))<<2^be(p,3):0}function Aa(p){return p.trim()}function xp(p,T){return(p=T.exec(p))?p[0]:p}function oe(p,T,F){return p.replace(T,F)}function kr(p,T){return p.indexOf(T)}function be(p,T){return p.charCodeAt(T)|0}function Zi(p,T,F){return p.slice(T,F)}function Ve(p){return p.length}function an(p){return p.length}function yo(p,T){return T.push(p),p}function Cp(p,T){return p.map(T).join("")}var tr=1,ki=1,Ta=0,Ee=0,fe=0,Oi="";function er(p,T,F,K,tt,it,rt){return{value:p,root:T,parent:F,type:K,props:tt,children:it,line:tr,column:ki,length:rt,return:""}}function _i(p,T){return vp(er("",null,null,"",null,null,0),p,{length:-p.length},T)}function Sp(){return fe}function wp(){return fe=Ee>0?be(Oi,--Ee):0,ki--,fe===10&&(ki=1,tr--),fe}function _e(){return fe=Ee<Ta?be(Oi,Ee++):0,ki++,fe===10&&(ki=1,tr++),fe}function qe(){return be(Oi,Ee)}function Oo(){return Ee}function so(p,T){return Zi(Oi,p,T)}function Ki(p){switch(p){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function ka(p){return tr=ki=1,Ta=Ve(Oi=p),Ee=0,[]}function Pa(p){return Oi="",p}function Do(p){return Aa(so(Ee-1,Pr(p===91?p+2:p===40?p+1:p)))}function Mp(p){for(;(fe=qe())&&fe<33;)_e();return Ki(p)>2||Ki(fe)>3?"":" "}function Ap(p,T){for(;--T&&_e()&&!(fe<48||fe>102||fe>57&&fe<65||fe>70&&fe<97););return so(p,Oo()+(T<6&&qe()==32&&_e()==32))}function Pr(p){for(;_e();)switch(fe){case p:return Ee;case 34:case 39:p!==34&&p!==39&&Pr(fe);break;case 40:p===41&&Pr(p);break;case 92:_e();break}return Ee}function Tp(p,T){for(;_e()&&p+fe!==57;)if(p+fe===84&&qe()===47)break;return"/*"+so(T,Ee-1)+"*"+Qo(p===47?p:_e())}function kp(p){for(;!Ki(qe());)_e();return so(p,Ee)}function Pp(p){return Pa(jo("",null,null,null,[""],p=ka(p),0,[0],p))}function jo(p,T,F,K,tt,it,rt,st,ht){for(var ct=0,pt=0,ft=rt,_=0,et=0,G=0,B=1,X=1,U=1,$=0,Z="",V=tt,z=it,I=K,E=Z;X;)switch(G=$,$=_e()){case 40:if(G!=108&&be(E,ft-1)==58){kr(E+=oe(Do($),"&","&\f"),"&\f")!=-1&&(U=-1);break}case 34:case 39:case 91:E+=Do($);break;case 9:case 10:case 13:case 32:E+=Mp(G);break;case 92:E+=Ap(Oo()-1,7);continue;case 47:switch(qe()){case 42:case 47:yo(Lp(Tp(_e(),Oo()),T,F),ht);break;default:E+="/"}break;case 123*B:st[ct++]=Ve(E)*U;case 125*B:case 59:case 0:switch($){case 0:case 125:X=0;case 59+pt:U==-1&&(E=oe(E,/\f/g,"")),et>0&&Ve(E)-ft&&yo(et>32?qn(E+";",K,F,ft-1):qn(oe(E," ","")+";",K,F,ft-2),ht);break;case 59:E+=";";default:if(yo(I=Kn(E,T,F,ct,pt,tt,st,Z,V=[],z=[],ft),it),$===123)if(pt===0)jo(E,T,I,I,V,it,ft,st,z);else switch(_===99&&be(E,3)===110?100:_){case 100:case 108:case 109:case 115:jo(p,I,I,K&&yo(Kn(p,I,I,0,0,tt,st,Z,tt,V=[],ft),z),tt,z,ft,st,K?V:z);break;default:jo(E,I,I,I,[""],z,0,st,z)}}ct=pt=et=0,B=U=1,Z=E="",ft=rt;break;case 58:ft=1+Ve(E),et=G;default:if(B<1){if($==123)--B;else if($==125&&B++==0&&wp()==125)continue}switch(E+=Qo($),$*B){case 38:U=pt>0?1:(E+="\f",-1);break;case 44:st[ct++]=(Ve(E)-1)*U,U=1;break;case 64:qe()===45&&(E+=Do(_e())),_=qe(),pt=ft=Ve(Z=E+=kp(Oo())),$++;break;case 45:G===45&&Ve(E)==2&&(B=0)}}return it}function Kn(p,T,F,K,tt,it,rt,st,ht,ct,pt){for(var ft=tt-1,_=tt===0?it:[""],et=an(_),G=0,B=0,X=0;G<K;++G)for(var U=0,$=Zi(p,ft+1,ft=yp(B=rt[G])),Z=p;U<et;++U)(Z=Aa(B>0?_[U]+" "+$:oe($,/&\f/g,_[U])))&&(ht[X++]=Z);return er(p,T,F,tt===0?nn:st,ht,ct,pt)}function Lp(p,T,F){return er(p,T,F,wa,Qo(Sp()),Zi(p,2,-2),0)}function qn(p,T,F,K){return er(p,T,F,sn,Zi(p,0,K),Zi(p,K+1,-1),K)}function Ai(p,T){for(var F="",K=an(p),tt=0;tt<K;tt++)F+=T(p[tt],tt,p,T)||"";return F}function Ep(p,T,F,K){switch(p.type){case mp:if(p.children.length)break;case gp:case sn:return p.return=p.return||p.value;case wa:return"";case Ma:return p.return=p.value+"{"+Ai(p.children,K)+"}";case nn:p.value=p.props.join(",")}return Ve(F=Ai(p.children,K))?p.return=p.value+"{"+F+"}":""}function Op(p){var T=an(p);return function(F,K,tt,it){for(var rt="",st=0;st<T;st++)rt+=p[st](F,K,tt,it)||"";return rt}}function Dp(p){return function(T){T.root||(T=T.return)&&p(T)}}function La(p){var T=Object.create(null);return function(F){return T[F]===void 0&&(T[F]=p(F)),T[F]}}var jp=function(T,F,K){for(var tt=0,it=0;tt=it,it=qe(),tt===38&&it===12&&(F[K]=1),!Ki(it);)_e();return so(T,Ee)},Ip=function(T,F){var K=-1,tt=44;do switch(Ki(tt)){case 0:tt===38&&qe()===12&&(F[K]=1),T[K]+=jp(Ee-1,F,K);break;case 2:T[K]+=Do(tt);break;case 4:if(tt===44){T[++K]=qe()===58?"&\f":"",F[K]=T[K].length;break}default:T[K]+=Qo(tt)}while(tt=_e());return T},_p=function(T,F){return Pa(Ip(ka(T),F))},Jn=new WeakMap,Np=function(T){if(!(T.type!=="rule"||!T.parent||T.length<1)){for(var F=T.value,K=T.parent,tt=T.column===K.column&&T.line===K.line;K.type!=="rule";)if(K=K.parent,!K)return;if(!(T.props.length===1&&F.charCodeAt(0)!==58&&!Jn.get(K))&&!tt){Jn.set(T,!0);for(var it=[],rt=_p(F,it),st=K.props,ht=0,ct=0;ht<rt.length;ht++)for(var pt=0;pt<st.length;pt++,ct++)T.props[ct]=it[ht]?rt[ht].replace(/&\f/g,st[pt]):st[pt]+" "+rt[ht]}}},Bp=function(T){if(T.type==="decl"){var F=T.value;F.charCodeAt(0)===108&&F.charCodeAt(2)===98&&(T.return="",T.value="")}};function Ea(p,T){switch(bp(p,T)){case 5103:return ie+"print-"+p+p;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ie+p+p;case 5349:case 4246:case 4810:case 6968:case 2756:return ie+p+Ro+p+we+p+p;case 6828:case 4268:return ie+p+we+p+p;case 6165:return ie+p+we+"flex-"+p+p;case 5187:return ie+p+oe(p,/(\w+).+(:[^]+)/,ie+"box-$1$2"+we+"flex-$1$2")+p;case 5443:return ie+p+we+"flex-item-"+oe(p,/flex-|-self/,"")+p;case 4675:return ie+p+we+"flex-line-pack"+oe(p,/align-content|flex-|-self/,"")+p;case 5548:return ie+p+we+oe(p,"shrink","negative")+p;case 5292:return ie+p+we+oe(p,"basis","preferred-size")+p;case 6060:return ie+"box-"+oe(p,"-grow","")+ie+p+we+oe(p,"grow","positive")+p;case 4554:return ie+oe(p,/([^-])(transform)/g,"$1"+ie+"$2")+p;case 6187:return oe(oe(oe(p,/(zoom-|grab)/,ie+"$1"),/(image-set)/,ie+"$1"),p,"")+p;case 5495:case 3959:return oe(p,/(image-set\([^]*)/,ie+"$1$`$1");case 4968:return oe(oe(p,/(.+:)(flex-)?(.*)/,ie+"box-pack:$3"+we+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ie+p+p;case 4095:case 3583:case 4068:case 2532:return oe(p,/(.+)-inline(.+)/,ie+"$1$2")+p;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ve(p)-1-T>6)switch(be(p,T+1)){case 109:if(be(p,T+4)!==45)break;case 102:return oe(p,/(.+:)(.+)-([^]+)/,"$1"+ie+"$2-$3$1"+Ro+(be(p,T+3)==108?"$3":"$2-$3"))+p;case 115:return~kr(p,"stretch")?Ea(oe(p,"stretch","fill-available"),T)+p:p}break;case 4949:if(be(p,T+1)!==115)break;case 6444:switch(be(p,Ve(p)-3-(~kr(p,"!important")&&10))){case 107:return oe(p,":",":"+ie)+p;case 101:return oe(p,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ie+(be(p,14)===45?"inline-":"")+"box$3$1"+ie+"$2$3$1"+we+"$2box$3")+p}break;case 5936:switch(be(p,T+11)){case 114:return ie+p+we+oe(p,/[svh]\w+-[tblr]{2}/,"tb")+p;case 108:return ie+p+we+oe(p,/[svh]\w+-[tblr]{2}/,"tb-rl")+p;case 45:return ie+p+we+oe(p,/[svh]\w+-[tblr]{2}/,"lr")+p}return ie+p+we+p+p}return p}var Rp=function(T,F,K,tt){if(T.length>-1&&!T.return)switch(T.type){case sn:T.return=Ea(T.value,T.length);break;case Ma:return Ai([_i(T,{value:oe(T.value,"@","@"+ie)})],tt);case nn:if(T.length)return Cp(T.props,function(it){switch(xp(it,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ai([_i(T,{props:[oe(it,/:(read-\w+)/,":"+Ro+"$1")]})],tt);case"::placeholder":return Ai([_i(T,{props:[oe(it,/:(plac\w+)/,":"+ie+"input-$1")]}),_i(T,{props:[oe(it,/:(plac\w+)/,":"+Ro+"$1")]}),_i(T,{props:[oe(it,/:(plac\w+)/,we+"input-$1")]})],tt)}return""})}},zp=[Rp],Oa=function(T){var F=T.key;if(F==="css"){var K=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(K,function(B){var X=B.getAttribute("data-emotion");X.indexOf(" ")!==-1&&(document.head.appendChild(B),B.setAttribute("data-s",""))})}var tt=T.stylisPlugins||zp,it={},rt,st=[];rt=T.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+F+' "]'),function(B){for(var X=B.getAttribute("data-emotion").split(" "),U=1;U<X.length;U++)it[X[U]]=!0;st.push(B)});var ht,ct=[Np,Bp];{var pt,ft=[Ep,Dp(function(B){pt.insert(B)})],_=Op(ct.concat(tt,ft)),et=function(X){return Ai(Pp(X),_)};ht=function(X,U,$,Z){pt=$,et(X?X+"{"+U.styles+"}":U.styles),Z&&(G.inserted[U.name]=!0)}}var G={key:F,sheet:new fp({key:F,container:rt,nonce:T.nonce,speedy:T.speedy,prepend:T.prepend,insertionPoint:T.insertionPoint}),nonce:T.nonce,inserted:it,registered:{},insert:ht};return G.sheet.hydrate(st),G},Fp=!0;function Da(p,T,F){var K="";return F.split(" ").forEach(function(tt){p[tt]!==void 0?T.push(p[tt]+";"):tt&&(K+=tt+" ")}),K}var ln=function(T,F,K){var tt=T.key+"-"+F.name;(K===!1||Fp===!1)&&T.registered[tt]===void 0&&(T.registered[tt]=F.styles)},ja=function(T,F,K){ln(T,F,K);var tt=T.key+"-"+F.name;if(T.inserted[F.name]===void 0){var it=F;do T.insert(F===it?"."+tt:"",it,T.sheet,!0),it=it.next;while(it!==void 0)}};function Gp(p){for(var T=0,F,K=0,tt=p.length;tt>=4;++K,tt-=4)F=p.charCodeAt(K)&255|(p.charCodeAt(++K)&255)<<8|(p.charCodeAt(++K)&255)<<16|(p.charCodeAt(++K)&255)<<24,F=(F&65535)*1540483477+((F>>>16)*59797<<16),F^=F>>>24,T=(F&65535)*1540483477+((F>>>16)*59797<<16)^(T&65535)*1540483477+((T>>>16)*59797<<16);switch(tt){case 3:T^=(p.charCodeAt(K+2)&255)<<16;case 2:T^=(p.charCodeAt(K+1)&255)<<8;case 1:T^=p.charCodeAt(K)&255,T=(T&65535)*1540483477+((T>>>16)*59797<<16)}return T^=T>>>13,T=(T&65535)*1540483477+((T>>>16)*59797<<16),((T^T>>>15)>>>0).toString(36)}var Wp={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Hp=!1,Xp=/[A-Z]|^ms/g,Yp=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ia=function(T){return T.charCodeAt(1)===45},Qn=function(T){return T!=null&&typeof T!="boolean"},ur=La(function(p){return Ia(p)?p:p.replace(Xp,"-$&").toLowerCase()}),ts=function(T,F){switch(T){case"animation":case"animationName":if(typeof F=="string")return F.replace(Yp,function(K,tt,it){return $e={name:tt,styles:it,next:$e},tt})}return Wp[T]!==1&&!Ia(T)&&typeof F=="number"&&F!==0?F+"px":F},Up="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function qi(p,T,F){if(F==null)return"";var K=F;if(K.__emotion_styles!==void 0)return K;switch(typeof F){case"boolean":return"";case"object":{var tt=F;if(tt.anim===1)return $e={name:tt.name,styles:tt.styles,next:$e},tt.name;var it=F;if(it.styles!==void 0){var rt=it.next;if(rt!==void 0)for(;rt!==void 0;)$e={name:rt.name,styles:rt.styles,next:$e},rt=rt.next;var st=it.styles+";";return st}return Vp(p,T,F)}case"function":{if(p!==void 0){var ht=$e,ct=F(p);return $e=ht,qi(p,T,ct)}break}}var pt=F;if(T==null)return pt;var ft=T[pt];return ft!==void 0?ft:pt}function Vp(p,T,F){var K="";if(Array.isArray(F))for(var tt=0;tt<F.length;tt++)K+=qi(p,T,F[tt])+";";else for(var it in F){var rt=F[it];if(typeof rt!="object"){var st=rt;T!=null&&T[st]!==void 0?K+=it+"{"+T[st]+"}":Qn(st)&&(K+=ur(it)+":"+ts(it,st)+";")}else{if(it==="NO_COMPONENT_SELECTOR"&&Hp)throw new Error(Up);if(Array.isArray(rt)&&typeof rt[0]=="string"&&(T==null||T[rt[0]]===void 0))for(var ht=0;ht<rt.length;ht++)Qn(rt[ht])&&(K+=ur(it)+":"+ts(it,rt[ht])+";");else{var ct=qi(p,T,rt);switch(it){case"animation":case"animationName":{K+=ur(it)+":"+ct+";";break}default:K+=it+"{"+ct+"}"}}}}return K}var es=/label:\s*([^\s;{]+)\s*(;|$)/g,$e;function _a(p,T,F){if(p.length===1&&typeof p[0]=="object"&&p[0]!==null&&p[0].styles!==void 0)return p[0];var K=!0,tt="";$e=void 0;var it=p[0];if(it==null||it.raw===void 0)K=!1,tt+=qi(F,T,it);else{var rt=it;tt+=rt[0]}for(var st=1;st<p.length;st++)if(tt+=qi(F,T,p[st]),K){var ht=it;tt+=ht[st]}es.lastIndex=0;for(var ct="",pt;(pt=es.exec(tt))!==null;)ct+="-"+pt[1];var ft=Gp(tt)+ct;return{name:ft,styles:tt,next:$e}}var $p=function(T){return T()},Zp=ti[`useInsertionEffect${Math.random()}`.slice(0,18)]?ti[`useInsertionEffect${Math.random()}`.slice(0,18)]:!1,Na=Zp||$p,Kp=!1,Ba=ti.createContext(typeof HTMLElement!="undefined"?Oa({key:"css"}):null),qp=Ba.Provider,Ra=function(T){return Be.forwardRef(function(F,K){var tt=Be.useContext(Ba);return T(F,tt,K)})},za=ti.createContext({}),ao={}.hasOwnProperty,Lr="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",hn=function(T,F){var K={};for(var tt in F)ao.call(F,tt)&&(K[tt]=F[tt]);return K[Lr]=T,K},Jp=function(T){var F=T.cache,K=T.serialized,tt=T.isStringTag;return ln(F,K,tt),Na(function(){return ja(F,K,tt)}),null},Qp=Ra(function(p,T,F){var K=p.css;typeof K=="string"&&T.registered[K]!==void 0&&(K=T.registered[K]);var tt=p[Lr],it=[K],rt="";typeof p.className=="string"?rt=Da(T.registered,it,p.className):p.className!=null&&(rt=p.className+" ");var st=_a(it,void 0,ti.useContext(za));rt+=T.key+"-"+st.name;var ht={};for(var ct in p)ao.call(p,ct)&&ct!=="css"&&ct!==Lr&&!Kp&&(ht[ct]=p[ct]);return ht.className=rt,F&&(ht.ref=F),ti.createElement(ti.Fragment,null,ti.createElement(Jp,{cache:T,serialized:st,isStringTag:typeof tt=="string"}),ti.createElement(tt,ht))}),cn=Qp,Fa=$i.Fragment,se=function(T,F,K){return ao.call(F,"css")?$i.jsx(cn,hn(T,F),K):$i.jsx(T,F,K)},li=function(T,F,K){return ao.call(F,"css")?$i.jsxs(cn,hn(T,F),K):$i.jsxs(T,F,K)};const Ga=["polar"],pn=["line","area","bar","column","streamgraph",...Ga],dn=["pie","funnel","treemap","sunburst"],un=["scatter"],Wa=["table"],Ha=["indicator"],fn=["boxplot"],Xa=["areamap"],td=["image"],Ya=["scattermap"],Ua=["calendar-heatmap"],gn=["arearange"],Va=p=>pn.find(T=>T===p)!==void 0,$a=p=>dn.find(T=>T===p)!==void 0,Za=p=>un.find(T=>T===p)!==void 0,Ka=p=>Ya.find(T=>T===p)!==void 0,qa=p=>Ha.find(T=>T===p)!==void 0,Ja=p=>Ga.find(T=>T===p)!==void 0,ed=p=>Wa.find(T=>T===p)!==void 0,Qa=p=>fn.find(T=>T===p)!==void 0,tl=p=>Xa.find(T=>T===p)!==void 0,id=p=>gn.find(T=>T===p)!==void 0,od=p=>Ua.find(T=>T===p)!==void 0,rd=[...pn,...dn,...un,...Wa,...Ha,...fn,...Xa,...td,...Ya,...Ua,...gn];function mn(p){return p===void 0}const zo=(p,T)=>Object.assign(Object.create(p),T),nd=(p,T)=>Object.assign(Object.create(Object.getPrototypeOf(p)),p,T),lo=p=>{if(vn(p)){const T=p,{column:F}=T,K=Te(T,["column"]);return{column:F,style:K}}return{column:p,style:{}}};function Qe(p){const T="column"in p?p.column:p,F="aggregation"in T&&!!T.aggregation,K="context"in T&&!!T.context,tt="formula"in T&&!!T.formula;return F||K||tt?!0:!("type"in T)}const xe=p=>{if(!p)return"";const{column:T,name:F}=p;return F||("title"in T&&T.title?T.title:T.name)},yn=({column:p,granularity:T})=>T||p.granularity||Rt.DateLevels.Years,sd=p=>{const{column:T}=lo(p);return T},ad=p=>{const{column:T}=lo(p);return T};function vn(p){return"column"in p&&p.column!==void 0}function ld(p){return!("column"in p)}function el(p,T){var it;const{column:F,style:K}=lo(p),tt=_t(kt(kt({},T),K),{column:F});return Rt.isDatetime(F.type)&&mn(tt.dateFormat)&&(tt.dateFormat=(it=F==null?void 0:F.getFormat)==null?void 0:it.call(F)),tt}function il(p,T){var tt,it;const{column:F,style:K}=lo(p);return _t(kt(kt({},T),K),{column:zo(F,{title:(tt=F.title)!=null?tt:F.name,aggregation:(it=F.aggregation)!=null?it:"sum"}),enabled:!0})}function hd(p,T){return Qe(p)?il(p,T):el(p,T)}const Ji=(p,T)=>{const F=!p||p==="";let K,tt,it;return Rt.isNumber(T)?(K=parseFloat(p),tt=isNaN(K)):Rt.isDatetime(T)?p===en?(K=p,tt=!0):(K=rn(p).valueOf(),tt=isNaN(K)):(K=p,it=p==null?void 0:p.toLowerCase(),tt=!1),kt({value:K,valueUndefined:F,valueIsNaN:tt},it&&{lowercaseValue:it})};function is(p,T){const F=Rt.isObject(p)?p:{displayValue:p==null?void 0:p.toString()};return F.compareValue||(F.compareValue=Ji(F.displayValue,T)),F}var ol=(p=>(p[p.ASC=1]="ASC",p[p.DESC=-1]="DESC",p[p.NONE=0]="NONE",p))(ol||{});function rl(p,T,F=1,K="string"){const tt=is(p,K),it=is(T,K),rt=tt.compareValue,st=it.compareValue;if(rt.valueUndefined&&st.valueUndefined)return 0;if(rt.valueUndefined)return 1;if(st.valueUndefined)return-1;if(rt.valueIsNaN&&st.valueIsNaN)return 0;if(rt.valueIsNaN)return 1;if(st.valueIsNaN)return-1;const ht=rt.lowercaseValue,ct=st.lowercaseValue;if(ht!==void 0&&ct!==void 0){if(ht<ct)return-1*F;if(ht>ct)return 1*F}return rt.value<st.value?-1*F:rt.value>st.value?1*F:0}class nl{constructor(T){De(this,"columns",[]);this.columns=T}compare(T,F){for(let K=0;K<this.columns.length;K++){const tt=this.columns[K],it=T[tt.index],rt=F[tt.index],st=tt.direction||1,ht=rl(it,rt,st,tt.type);if(ht!==0)return ht}return 0}}const sl=p=>p instanceof Object&&"data"in p,cd=p=>p.rows.length===0,bn="$rownum",pd=p=>{let T=0;const F=p.rows.map(tt=>{const it=p.columns.map((rt,st)=>{var ft;const ht=tt[st];if(sl(ht)){let _=ht.data.toString();if(Rt.isDatetime(rt.type)){const et="1111-11-11T";_.startsWith(et)&&(_=_.replace(et,"1970-01-01T"))}return kt(kt({rawValue:ht.data,displayValue:(ft=ht.text)!=null?ft:_,compareValue:Ji(_,rt.type)},ht.blur!==void 0?{blur:ht.blur}:{}),ht.color?{color:ht.color}:{})}let ct,pt;return Rt.isDatetime(rt.type)&&(ht===en?(ct={value:ht,valueUndefined:!1,valueIsNaN:!0},pt=ht):(ct=Ji(`${ht}`,rt.type),pt=new Date(ct.value).toISOString())),{rawValue:pt!=null?pt:ht,displayValue:`${ht!=null?ht:""}`,compareValue:ct}});return T++,it.push({displayValue:`${T}`,rawValue:T}),it}),K=p.columns.map((tt,it)=>({name:tt.name,type:tt.type,index:it,direction:0}));return K.push({name:bn,type:"number",index:K.length,direction:0}),{columns:K,rows:F}};class dd{constructor(T){De(this,"data");De(this,"countDistinct");this.data=T}getStat(T){switch(T){case"count":return this.getCount();case"countdistinct":return this.getCountDistinct()}return NaN}getN(){return this.getCount()}getCount(){return this.data.length}getCountDistinct(){return this.data.filter((T,F,K)=>K.indexOf(T)===F).length}}class os{constructor(T){De(this,"data");De(this,"sum");De(this,"max");De(this,"min");De(this,"avg");De(this,"variance");De(this,"stddev");this.data=T}getStat(T){switch(T){case"sum":return this.getSum();case"max":return this.getMax();case"min":return this.getMin();case"count":return this.getCount();case"countdistinct":return this.getCountDistinct();case"avg":case"mean":case"average":return this.getAverage();case"var":case"variance":return this.getVariance();case"stddev":return this.getStdDev()}return NaN}getSum(){if(this.data.length===0)return NaN;if(this.sum!=null)return this.sum;this.sum=0;for(const T of this.data)this.sum+=T;return this.sum}getMax(){if(this.data.length===0)return NaN;if(this.max)return this.max;if(this.data.length<=0)return NaN;this.max=this.data[0];for(const T of this.data)T>this.max&&(this.max=T);return this.max}getMin(){if(this.data.length===0)return NaN;if(this.min)return this.min;if(this.data.length<=0)return NaN;this.min=this.data[0];for(const T of this.data)T<this.min&&(this.min=T);return this.min}getMean(){return this.getAverage()}getAverage(){return this.data.length===0?NaN:this.avg?this.avg:(this.avg=this.getSum()/this.data.length,this.avg)}getN(){return this.getCount()}getCount(){return this.data.length}getCountDistinct(){return this.data.filter((T,F,K)=>K.indexOf(T)===F).length}getVariance(){if(this.variance===void 0)if(this.data.length===0)this.variance=NaN;else if(this.data.length===1)this.variance=0;else{const T=this.getMean();this.variance=this.data.reduce((F,K)=>F.concat(Ft(K-T,2)),[]).reduce((F,K)=>F+K,0)/(this.data.length-1)}return this.variance}getStdDev(){return this.data.length===0?NaN:this.stddev!=null?this.stddev:(this.stddev=Math.sqrt(this.getVariance()),this.stddev)}}const al=(p,T)=>p.slice(0).sort((F,K)=>T.compare(F,K)),xn=(p,T)=>{if(!(p&&p.length>0))return[];const F=new nl(T),K=al(p,F);let tt=[];const it=[];let rt=K[0];for(const st of Array.from(K))F.compare(st,rt)!==0&&(it.push(tt),tt=[]),tt.push(st),rt=st;return it.push(tt),it},ud=(p,T)=>{var K,tt;const F=[];for(const it of T){let rt;const st=it.column,{aggFunc:ht}=it,ct=p.filter(_=>!!_[st.index]&&_[st.index].displayValue!==""),pt=(tt=(K=ct.find(_=>{var et;return _!==void 0&&((et=_==null?void 0:_[st.index])==null?void 0:et.color)}))==null?void 0:K[st.index])==null?void 0:tt.color,ft=ct.some(_=>_[st.index].blur);if(Rt.isDatetime(st.type)){const _=ct.map(et=>rn(et[st.index].displayValue).valueOf());rt=new os(_).getStat(ht)}else if(Rt.isNumber(st.type)){const _=ct.map(et=>parseFloat(et[st.index].displayValue));rt=new os(_).getStat(ht)}else{const _=ct.map(et=>et[st.index].displayValue);rt=new dd(_).getStat(ht)}F.push(kt(kt({displayValue:`${rt}`},pt&&{color:pt}),ft&&{blur:ft}))}return F},ll=(p,T)=>{if(Sn(p))return{columns:[],rows:[]};const F=new nl(T);return{columns:p.columns,rows:al(p.rows,F)}},hl=(p,T,F)=>{if(Sn(p))return{rows:[],columns:[]};const K={name:"n/a",type:"n/a",index:-1,direction:0},tt=F.map(ct=>({aggFunc:ct.agg,aggName:ct.title,column:si(p,ct.column)||K})).filter(ct=>ct.column.index!==-1),it=xn(p.rows,T),rt=tt.map(ct=>ct.aggName),st=[];for(const ct of it){const pt=Di(ct[0],T),ft=ud(ct,tt),_=pt.slice(0).concat(ft);st.push(_)}const ht=T.slice(0).concat(rt.map(ct=>({name:ct,type:"number",index:0,direction:0})));return{rows:st,columns:ht.map((ct,pt)=>_t(kt({},ct),{index:pt}))}},si=(p,T)=>p.columns.find(F=>F.name===T),Qi=(p,T)=>{const F={name:"foo",type:"string",index:-1,direction:0};return T.map(K=>si(p,K)||F).filter(K=>K!==F)},cl=(p,T)=>{const F=p.rows.map(tt=>T.map(it=>tt[it.index]));return{columns:T.map((tt,it)=>_t(kt({},tt),{index:it})),rows:F}},pl=(p,T)=>{if(!(p&&T.index<p.length))return;const F=p[T.index];return F.compareValue||(F.compareValue=Ji(F.displayValue,T.type)),F.compareValue.value},dl=(p,T)=>{var F;return(F=p[T.index])==null?void 0:F.blur},Di=(p,T)=>{const F=[];for(const K of T)F.push(p[K.index]);return F},fd=(p,T)=>Di(p,T).map(F=>F.rawValue||F.displayValue).join(","),Cn=(p,T)=>{if(!(p&&p.length>0))return{};const F=xn(p,T),K={};for(const tt of F){const it=fd(tt[0],T);K[it]=tt}return K},Sn=p=>!(p.rows&&p.columns&&p.rows.length>0&&p.columns.length>0);var rs;(function(p){p.event="event",p.props="prop"})(rs||(rs={}));function gd(p){switch(p){case"lakh":return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case"wan":return/(\d)(?=(\d{4})+(?!\d))/g;case"thousand":default:return/(\d)(?=(\d{3})+(?!\d))/g}}function md(p,T,F){var K=gd(F),tt=p.search(/[1-9]/);return tt=tt===-1?p.length:tt,p.substring(0,tt)+p.substring(tt,p.length).replace(K,"$1"+T)}function yd(p,T){T===void 0&&(T=!0);var F=p[0]==="-",K=F&&T;p=p.replace("-","");var tt=p.split("."),it=tt[0],rt=tt[1]||"";return{beforeDecimal:it,afterDecimal:rt,hasNegation:F,addNegation:K}}function vd(p,T,F){for(var K="",tt=F?"0":"",it=0;it<=T-1;it++)K+=p[it]||tt;return K}function bd(p,T){var F=T.decimalScale,K=T.fixedDecimalScale,tt=T.prefix;tt===void 0&&(tt="");var it=T.suffix;it===void 0&&(it="");var rt=T.allowNegative,st=T.thousandsGroupStyle;if(st===void 0&&(st="thousand"),p===""||p==="-")return p;var ht=xd(T),ct=ht.thousandSeparator,pt=ht.decimalSeparator,ft=F!==0&&p.indexOf(".")!==-1||F&&K,_=yd(p,rt),et=_.beforeDecimal,G=_.afterDecimal,B=_.addNegation;return F!==void 0&&(G=vd(G,F,!!K)),ct&&(et=md(et,ct,st)),tt&&(et=tt+et),it&&(G=G+it),B&&(et="-"+et),p=et+(ft&&pt||"")+G,p}function xd(p){var T=p.decimalSeparator;T===void 0&&(T=".");var F=p.thousandSeparator,K=p.allowedDecimalSeparators;return F===!0&&(F=","),K||(K=[T,"."]),{decimalSeparator:T,thousandSeparator:F,allowedDecimalSeparators:K}}function ul(p){var T=Sa(p),F=T%1;return T===T?F?T-F:T:0}var Cd=Rt.root.isFinite,Sd=Math.min;function wd(p){var T=Math[p];return function(F,K){if(F=on(F),K=K==null?0:Sd(ul(K),292),K&&Cd(F)){var tt=(Rt.toString(F)+"e").split("e"),it=T(tt[0]+"e"+(+tt[1]+K));return tt=(Rt.toString(it)+"e").split("e"),+(tt[0]+"e"+(+tt[1]-K))}return T(F)}}var Md=wd("round");const Er=1e3,Or=Er*1e3,Dr=Or*1e3,ns=Dr*1e3,fl=1000.1.toLocaleString().replace(/\d/g,""),Ad=fl[0],Td=fl[1],kd={name:"Numbers",decimalScale:"auto",trillion:!0,billion:!0,million:!0,kilo:!0,thousandSeparator:!0,prefix:!0,symbol:"$"},he=p=>kt(kt({},kd),p||{}),Pd=(p,T)=>isNaN(T)?"":`<span>${vi(p,T)}</span>`,Ld=(p,T)=>Math.sign(p)*Md(Math.abs(p),T),vi=(p,T)=>{const{t:F}=Rt.i18nextInstance,K=p.decimalScale!==0&&p.decimalScale!=="auto",tt=p.decimalScale==="auto"?2:p.decimalScale;let it=!0;p.name==="Numbers"&&!p.thousandSeparator&&(it=void 0);let rt,st,ht=T;return p.name==="Percent"&&(st="%",ht=T*100),(p.name==="Numbers"||p.name==="Currency")&&(p.trillion&&Math.abs(T)/ns>=1?(ht=T/ns,st=F("formatting.number.abbreviations.trillion")):p.billion&&Math.abs(T)/Dr>=1?(ht=T/Dr,st=F("formatting.number.abbreviations.billion")):p.million&&Math.abs(T)/Or>=1?(ht=T/Or,st=F("formatting.number.abbreviations.million")):p.kilo&&Math.abs(T)/Er>=1&&(ht=T/Er,st=F("formatting.number.abbreviations.thousand"))),p.name==="Currency"&&(p.prefix?rt=p.symbol:st?st=`${st}${p.symbol}`:st=p.symbol),bd(`${Ld(ht,tt)}`,{displayType:"text",thousandSeparator:it?Ad:void 0,fixedDecimalScale:K,decimalScale:tt,decimalSeparator:Td,prefix:rt,suffix:st})},Ce=(p,T)=>{let F=Pd(p,T);return F=F.replace("<span>",""),F=F.replace("</span>",""),F},Fo="#dcdcdc",oi="#CCCCCC",ri="#FFFFFF",Ed=["#00cee6","#9b9bd7","#6eda55","#fc7570","#fbb755","#218a8c","#08e5ff","#b3b3f7","#7efb62","#ff8a87","#ffc26a","#279fa1"],wn=p=>({type:"uniform",color:p});function Od(p){return()=>p.color}const gl=p=>{if(p!==void 0)return typeof p=="string"?wn(p).color:p.type==="uniform"?p.color:Fo};function Dd(p){var F;const T=((F=p.conditions)!=null?F:[]).map(K=>({match:jd(K),color:K.color}));return K=>{const tt=T.find(it=>it.match(K));return tt?tt.color:p.defaultColor}}function jd(p){const T=Number(p.expression);switch(p.operator){case"<":return F=>F<T;case">":return F=>F>T;case"≤":case"<=":return F=>F<=T;case"≥":case">=":return F=>F>=T;case"=":return F=>F==T;case"≠":case"!=":return F=>F!=T;default:return()=>!0}}function ge(p,T){let F=p.length;Array.isArray(p[0])||(p=[p]),Array.isArray(T[0])||(T=T.map(rt=>[rt]));let K=T[0].length,tt=T[0].map((rt,st)=>T.map(ht=>ht[st])),it=p.map(rt=>tt.map(st=>{let ht=0;if(!Array.isArray(rt)){for(let ct of st)ht+=rt*ct;return ht}for(let ct=0;ct<rt.length;ct++)ht+=rt[ct]*(st[ct]||0);return ht}));return F===1&&(it=it[0]),K===1?it.map(rt=>rt[0]):it}function ho(p){return ai(p)==="string"}function ai(p){return(Object.prototype.toString.call(p).match(/^\[object\s+(.*?)\]$/)[1]||"").toLowerCase()}function Go(p,T){p=+p,T=+T;let F=(Math.floor(p)+"").length;if(T>F)return+p.toFixed(T-F);{let K=Ft(10,F-T);return Math.round(p/K)*K}}function ml(p){if(!p)return;p=p.trim();const T=/^([a-z]+)\((.+?)\)$/i,F=/^-?[\d.]+$/;let K=p.match(T);if(K){let tt=[];return K[2].replace(/\/?\s*([-\w.]+(?:%|deg)?)/g,(it,rt)=>{/%$/.test(rt)?(rt=new Number(rt.slice(0,-1)/100),rt.type="<percentage>"):/deg$/.test(rt)?(rt=new Number(+rt.slice(0,-3)),rt.type="<angle>",rt.unit="deg"):F.test(rt)&&(rt=new Number(rt),rt.type="<number>"),it.startsWith("/")&&(rt=rt instanceof Number?rt:new Number(rt),rt.alpha=!0),tt.push(rt)}),{name:K[1].toLowerCase(),rawName:K[1],rawArgs:K[2],args:tt}}}function yl(p){return p[p.length-1]}function Wo(p,T,F){return isNaN(p)?T:isNaN(T)?p:p+(T-p)*F}function vl(p,T,F){return(F-p)/(T-p)}function Mn(p,T,F){return Wo(T[0],T[1],vl(p[0],p[1],F))}function bl(p){return p.map(T=>T.split("|").map(F=>{F=F.trim();let K=F.match(/^(<[a-z]+>)\[(-?[.\d]+),\s*(-?[.\d]+)\]?$/);if(K){let tt=new String(K[1]);return tt.range=[+K[2],+K[3]],tt}return F}))}var Id=Object.freeze({__proto__:null,interpolate:Wo,interpolateInv:vl,isString:ho,last:yl,mapRange:Mn,multiplyMatrices:ge,parseCoordGrammar:bl,parseFunction:ml,toPrecision:Go,type:ai});class _d{add(T,F,K){if(typeof arguments[0]!="string"){for(var T in arguments[0])this.add(T,arguments[0][T],arguments[1]);return}(Array.isArray(T)?T:[T]).forEach(function(tt){this[tt]=this[tt]||[],F&&this[tt][K?"unshift":"push"](F)},this)}run(T,F){this[T]=this[T]||[],this[T].forEach(function(K){K.call(F&&F.context?F.context:F,F)})}}const hi=new _d;var Je={gamut_mapping:"lch.c",precision:5,deltaE:"76"};const Xe={D50:[.3457/.3585,1,(1-.3457-.3585)/.3585],D65:[.3127/.329,1,(1-.3127-.329)/.329]};function jr(p){return Array.isArray(p)?p:Xe[p]}function Ho(p,T,F,K={}){if(p=jr(p),T=jr(T),!p||!T)throw new TypeError(`Missing white point to convert ${p?"":"from"}${!p&&!T?"/":""}${T?"":"to"}`);if(p===T)return F;let tt={W1:p,W2:T,XYZ:F,options:K};if(hi.run("chromatic-adaptation-start",tt),tt.M||(tt.W1===Xe.D65&&tt.W2===Xe.D50?tt.M=[[1.0479298208405488,.022946793341019088,-.05019222954313557],[.029627815688159344,.990434484573249,-.01707382502938514],[-.009243058152591178,.015055144896577895,.7518742899580008]]:tt.W1===Xe.D50&&tt.W2===Xe.D65&&(tt.M=[[.9554734527042182,-.023098536874261423,.0632593086610217],[-.028369706963208136,1.0099954580058226,.021041398966943008],[.012314001688319899,-.020507696433477912,1.3303659366080753]])),hi.run("chromatic-adaptation-end",tt),tt.M)return ge(tt.M,tt.XYZ);throw new TypeError("Only Bradford CAT with white points D50 and D65 supported for now.")}const Nd=75e-6,je=class je{constructor(T){var tt,it,rt,st,ht,ct,pt;this.id=T.id,this.name=T.name,this.base=T.base?je.get(T.base):null,this.aliases=T.aliases,this.base&&(this.fromBase=T.fromBase,this.toBase=T.toBase);let F=(tt=T.coords)!=null?tt:this.base.coords;for(let ft in F)"name"in F[ft]||(F[ft].name=ft);this.coords=F;let K=(rt=(it=T.white)!=null?it:this.base.white)!=null?rt:"D65";this.white=jr(K),this.formats=(st=T.formats)!=null?st:{};for(let ft in this.formats){let _=this.formats[ft];_.type||(_.type="function"),_.name||(_.name=ft)}T.cssId&&!((ht=this.formats.functions)!=null&&ht.color)?(this.formats.color={id:T.cssId},Object.defineProperty(this,"cssId",{value:T.cssId})):(ct=this.formats)!=null&&ct.color&&!((pt=this.formats)!=null&&pt.color.id)&&(this.formats.color.id=this.id),this.referred=T.referred,Object.defineProperty(this,"path",{value:Bd(this).reverse(),writable:!1,enumerable:!0,configurable:!0}),hi.run("colorspace-init-end",this)}inGamut(T,{epsilon:F=Nd}={}){if(this.isPolar)return T=this.toBase(T),this.base.inGamut(T,{epsilon:F});let K=Object.values(this.coords);return T.every((tt,it)=>{let rt=K[it];if(rt.type!=="angle"&&rt.range){if(Number.isNaN(tt))return!0;let[st,ht]=rt.range;return(st===void 0||tt>=st-F)&&(ht===void 0||tt<=ht+F)}return!0})}get cssId(){var T,F;return((F=(T=this.formats.functions)==null?void 0:T.color)==null?void 0:F.id)||this.id}get isPolar(){for(let T in this.coords)if(this.coords[T].type==="angle")return!0;return!1}getFormat(T){if(typeof T=="object")return T=ss(T,this),T;let F;return T==="default"?F=Object.values(this.formats)[0]:F=this.formats[T],F?(F=ss(F,this),F):null}equals(T){return T?this===T||this.id===T.id:!1}to(T,F){if(arguments.length===1&&([T,F]=[T.space,T.coords]),T=je.get(T),this.equals(T))return F;F=F.map(st=>Number.isNaN(st)?0:st);let K=this.path,tt=T.path,it,rt;for(let st=0;st<K.length&&K[st].equals(tt[st]);st++)it=K[st],rt=st;if(!it)throw new Error(`Cannot convert between color spaces ${this} and ${T}: no connection space was found`);for(let st=K.length-1;st>rt;st--)F=K[st].toBase(F);for(let st=rt+1;st<tt.length;st++)F=tt[st].fromBase(F);return F}from(T,F){return arguments.length===1&&([T,F]=[T.space,T.coords]),T=je.get(T),T.to(this,F)}toString(){return`${this.name} (${this.id})`}getMinCoords(){var F;let T=[];for(let K in this.coords){let tt=this.coords[K],it=tt.range||tt.refRange;T.push((F=it==null?void 0:it.min)!=null?F:0)}return T}static get all(){return[...new Set(Object.values(je.registry))]}static register(T,F){if(arguments.length===1&&(F=arguments[0],T=F.id),F=this.get(F),this.registry[T]&&this.registry[T]!==F)throw new Error(`Duplicate color space registration: '${T}'`);if(this.registry[T]=F,arguments.length===1&&F.aliases)for(let K of F.aliases)this.register(K,F);return F}static get(T,...F){if(!T||T instanceof je)return T;if(ai(T)==="string"){let tt=je.registry[T.toLowerCase()];if(!tt)throw new TypeError(`No color space found with id = "${T}"`);return tt}if(F.length)return je.get(...F);throw new TypeError(`${T} is not a valid color space`)}static resolveCoord(T,F){var ht;let K=ai(T),tt,it;if(K==="string"?T.includes(".")?[tt,it]=T.split("."):[tt,it]=[,T]:Array.isArray(T)?[tt,it]=T:(tt=T.space,it=T.coordId),tt=je.get(tt),tt||(tt=F),!tt)throw new TypeError(`Cannot resolve coordinate reference ${T}: No color space specified and relative references are not allowed here`);if(K=ai(it),K==="number"||K==="string"&&it>=0){let ct=Object.entries(tt.coords)[it];if(ct)return kt({space:tt,id:ct[0],index:it},ct[1])}tt=je.get(tt);let rt=it.toLowerCase(),st=0;for(let ct in tt.coords){let pt=tt.coords[ct];if(ct.toLowerCase()===rt||((ht=pt.name)==null?void 0:ht.toLowerCase())===rt)return kt({space:tt,id:ct,index:st},pt);st++}throw new TypeError(`No "${it}" coordinate found in ${tt.name}. Its coordinates are: ${Object.keys(tt.coords).join(", ")}`)}};De(je,"registry",{}),De(je,"DEFAULT_FORMAT",{type:"functions",name:"color"});let Vt=je;function Bd(p){let T=[p];for(let F=p;F=F.base;)T.push(F);return T}function ss(p,{coords:T}={}){if(p.coords&&!p.coordGrammar){p.type||(p.type="function"),p.name||(p.name="color"),p.coordGrammar=bl(p.coords);let F=Object.entries(T).map(([K,tt],it)=>{let rt=p.coordGrammar[it][0],st=tt.range||tt.refRange,ht=rt.range,ct="";return rt=="<percentage>"?(ht=[0,100],ct="%"):rt=="<angle>"&&(ct="deg"),{fromRange:st,toRange:ht,suffix:ct}});p.serializeCoords=(K,tt)=>K.map((it,rt)=>{let{fromRange:st,toRange:ht,suffix:ct}=F[rt];return st&&ht&&(it=Mn(st,ht,it)),it=Go(it,tt),ct&&(it+=ct),it})}return p}var Fe=new Vt({id:"xyz-d65",name:"XYZ D65",coords:{x:{name:"X"},y:{name:"Y"},z:{name:"Z"}},white:"D65",formats:{color:{ids:["xyz-d65","xyz"]}},aliases:["xyz"]});class Oe extends Vt{constructor(T){var F,K,tt;T.coords||(T.coords={r:{range:[0,1],name:"Red"},g:{range:[0,1],name:"Green"},b:{range:[0,1],name:"Blue"}}),T.base||(T.base=Fe),T.toXYZ_M&&T.fromXYZ_M&&((F=T.toBase)!=null||(T.toBase=it=>{let rt=ge(T.toXYZ_M,it);return this.white!==this.base.white&&(rt=Ho(this.white,this.base.white,rt)),rt}),(K=T.fromBase)!=null||(T.fromBase=it=>(it=Ho(this.base.white,this.white,it),ge(T.fromXYZ_M,it)))),(tt=T.referred)!=null||(T.referred="display"),super(T)}}function xl(p,{meta:T}={}){var K,tt,it,rt,st,ht;let F={str:(K=String(p))==null?void 0:K.trim()};if(hi.run("parse-start",F),F.color)return F.color;if(F.parsed=ml(F.str),F.parsed){let ct=F.parsed.name;if(ct==="color"){let pt=F.parsed.args.shift(),ft=F.parsed.rawArgs.indexOf("/")>0?F.parsed.args.pop():1;for(let et of Vt.all){let G=et.getFormat("color");if(G&&(pt===G.id||(tt=G.ids)!=null&&tt.includes(pt))){const B=Object.keys(et.coords).map((X,U)=>F.parsed.args[U]||0);return T&&(T.formatId="color"),{spaceId:et.id,coords:B,alpha:ft}}}let _="";if(pt in Vt.registry){let et=(st=(rt=(it=Vt.registry[pt].formats)==null?void 0:it.functions)==null?void 0:rt.color)==null?void 0:st.id;et&&(_=`Did you mean color(${et})?`)}throw new TypeError(`Cannot parse color(${pt}). `+(_||"Missing a plugin?"))}else for(let pt of Vt.all){let ft=pt.getFormat(ct);if(ft&&ft.type==="function"){let _=1;(ft.lastAlpha||yl(F.parsed.args).alpha)&&(_=F.parsed.args.pop());let et=F.parsed.args,G;return ft.coordGrammar&&(G=Object.entries(pt.coords).map(([B,X],U)=>{var E;let $=ft.coordGrammar[U],Z=(E=et[U])==null?void 0:E.type,V=$.find(M=>M==Z);if(!V){let M=X.name||B;throw new TypeError(`${Z} not allowed for ${M} in ${ct}()`)}let z=V.range;Z==="<percentage>"&&(z||(z=[0,1]));let I=X.range||X.refRange;return z&&I&&(et[U]=Mn(z,I,et[U])),V})),T&&Object.assign(T,{formatId:ft.name,types:G}),{spaceId:pt.id,coords:et,alpha:_}}}}else for(let ct of Vt.all)for(let pt in ct.formats){let ft=ct.formats[pt];if(ft.type!=="custom"||ft.test&&!ft.test(F.str))continue;let _=ft.parse(F.str);if(_)return(ht=_.alpha)!=null||(_.alpha=1),T&&(T.formatId=pt),_}throw new TypeError(`Could not parse ${p} as a color. Missing a plugin?`)}function re(p){if(!p)throw new TypeError("Empty color reference");ho(p)&&(p=xl(p));let T=p.space||p.spaceId;return T instanceof Vt||(p.space=Vt.get(T)),p.alpha===void 0&&(p.alpha=1),p}function co(p,T){return T=Vt.get(T),T.from(p)}function Ge(p,T){let{space:F,index:K}=Vt.resolveCoord(T,p.space);return co(p,F)[K]}function Cl(p,T,F){return T=Vt.get(T),p.coords=T.to(p.space,F),p}function ci(p,T,F){if(p=re(p),arguments.length===2&&ai(arguments[1])==="object"){let K=arguments[1];for(let tt in K)ci(p,tt,K[tt])}else{typeof F=="function"&&(F=F(Ge(p,T)));let{space:K,index:tt}=Vt.resolveCoord(T,p.space),it=co(p,K);it[tt]=F,Cl(p,K,it)}return p}var An=new Vt({id:"xyz-d50",name:"XYZ D50",white:"D50",base:Fe,fromBase:p=>Ho(Fe.white,"D50",p),toBase:p=>Ho("D50",Fe.white,p),formats:{color:{}}});const Rd=216/24389,as=24/116,vo=24389/27;let fr=Xe.D50;var Ie=new Vt({id:"lab",name:"Lab",coords:{l:{refRange:[0,100],name:"L"},a:{refRange:[-125,125]},b:{refRange:[-125,125]}},white:fr,base:An,fromBase(p){let F=p.map((K,tt)=>K/fr[tt]).map(K=>K>Rd?Math.cbrt(K):(vo*K+16)/116);return[116*F[1]-16,500*(F[0]-F[1]),200*(F[1]-F[2])]},toBase(p){let T=[];return T[1]=(p[0]+16)/116,T[0]=p[1]/500+T[1],T[2]=T[1]-p[2]/200,[T[0]>as?Math.pow(T[0],3):(116*T[0]-16)/vo,p[0]>8?Math.pow((p[0]+16)/116,3):p[0]/vo,T[2]>as?Math.pow(T[2],3):(116*T[2]-16)/vo].map((K,tt)=>K*fr[tt])},formats:{lab:{coords:["<number> | <percentage>","<number> | <percentage>[-1,1]","<number> | <percentage>[-1,1]"]}}});function ir(p){return(p%360+360)%360}function zd(p,T){if(p==="raw")return T;let[F,K]=T.map(ir),tt=K-F;return p==="increasing"?tt<0&&(K+=360):p==="decreasing"?tt>0&&(F+=360):p==="longer"?-180<tt&&tt<180&&(tt>0?F+=360:K+=360):p==="shorter"&&(tt>180?F+=360:tt<-180&&(K+=360)),[F,K]}var to=new Vt({id:"lch",name:"LCH",coords:{l:{refRange:[0,100],name:"Lightness"},c:{refRange:[0,150],name:"Chroma"},h:{refRange:[0,360],type:"angle",name:"Hue"}},base:Ie,fromBase(p){let[T,F,K]=p,tt;const it=.02;return Math.abs(F)<it&&Math.abs(K)<it?tt=NaN:tt=Math.atan2(K,F)*180/Math.PI,[T,Math.sqrt(Ft(F,2)+Ft(K,2)),ir(tt)]},toBase(p){let[T,F,K]=p;return F<0&&(F=0),isNaN(K)&&(K=0),[T,F*Math.cos(K*Math.PI/180),F*Math.sin(K*Math.PI/180)]},formats:{lch:{coords:["<number> | <percentage>","<number> | <percentage>","<number> | <angle>"]}}});const ls=Ft(25,7),Xo=Math.PI,hs=180/Xo,wi=Xo/180;function Ir(p,T,{kL:F=1,kC:K=1,kH:tt=1}={}){let[it,rt,st]=Ie.from(p),ht=to.from(Ie,[it,rt,st])[1],[ct,pt,ft]=Ie.from(T),_=to.from(Ie,[ct,pt,ft])[1];ht<0&&(ht=0),_<0&&(_=0);let et=(ht+_)/2,G=Ft(et,7),B=.5*(1-Math.sqrt(G/(G+ls))),X=(1+B)*rt,U=(1+B)*pt,$=Math.sqrt(Ft(X,2)+Ft(st,2)),Z=Math.sqrt(Ft(U,2)+Ft(ft,2)),V=X===0&&st===0?0:Math.atan2(st,X),z=U===0&&ft===0?0:Math.atan2(ft,U);V<0&&(V+=2*Xo),z<0&&(z+=2*Xo),V*=hs,z*=hs;let I=ct-it,E=Z-$,M=z-V,P=V+z,y=Math.abs(M),h;$*Z===0?h=0:y<=180?h=M:M>180?h=M-360:M<-180?h=M+360:console.log("the unthinkable has happened");let f=2*Math.sqrt(Z*$)*Math.sin(h*wi/2),m=(it+ct)/2,u=($+Z)/2,v=Math.pow(u,7),S;$*Z===0?S=P:y<=180?S=P/2:P<360?S=(P+360)/2:S=(P-360)/2;let w=Ft(m-50,2),x=1+.015*w/Math.sqrt(20+w),c=1+.045*u,g=1;g-=.17*Math.cos((S-30)*wi),g+=.24*Math.cos(2*S*wi),g+=.32*Math.cos((3*S+6)*wi),g-=.2*Math.cos((4*S-63)*wi);let r=1+.015*u*g,a=30*Math.exp(-1*Ft((S-275)/25,2)),t=2*Math.sqrt(v/(v+ls)),i=-1*Math.sin(2*a*wi)*t,o=Ft(I/(F*x),2);return o+=Ft(E/(K*c),2),o+=Ft(f/(tt*r),2),o+=i*(E/(K*c))*(f/(tt*r)),Math.sqrt(o)}const Fd=75e-6;function Yi(p,T=p.space,{epsilon:F=Fd}={}){p=re(p),T=Vt.get(T);let K=p.coords;return T!==p.space&&(K=T.from(p)),T.inGamut(K,{epsilon:F})}function eo(p){return{space:p.space,coords:p.coords.slice(),alpha:p.alpha}}function pi(p,{method:T=Je.gamut_mapping,space:F=p.space}={}){if(ho(arguments[1])&&(F=arguments[1]),F=Vt.get(F),Yi(p,F,{epsilon:0}))return re(p);let K=ze(p,F);if(T!=="clip"&&!Yi(p,F)){let tt=pi(eo(K),{method:"clip",space:F});if(Ir(p,tt)>2){let it=Vt.resolveCoord(T),rt=it.space,st=it.id,ht=ze(K,rt),pt=(it.range||it.refRange)[0],ft=.01,_=pt,et=Ge(ht,st);for(;et-_>ft;){let G=eo(ht);G=pi(G,{space:F,method:"clip"}),Ir(ht,G)-2<ft?_=Ge(ht,st):et=Ge(ht,st),ci(ht,st,(_+et)/2)}K=ze(ht,F)}else K=tt}if(T==="clip"||!Yi(K,F,{epsilon:0})){let tt=Object.values(F.coords).map(it=>it.range||[]);K.coords=K.coords.map((it,rt)=>{let[st,ht]=tt[rt];return st!==void 0&&(it=Math.max(st,it)),ht!==void 0&&(it=Math.min(it,ht)),it})}return F!==p.space&&(K=ze(K,p.space)),p.coords=K.coords,p}pi.returns="color";function ze(p,T,{inGamut:F}={}){p=re(p),T=Vt.get(T);let K=T.from(p),tt={space:T,coords:K,alpha:p.alpha};return F&&(tt=pi(tt)),tt}ze.returns="color";function Yo(p,it={}){var rt=it,{precision:T=Je.precision,format:F="default",inGamut:K=!0}=rt,tt=Te(rt,["precision","format","inGamut"]);var pt,ft,_;let st;p=re(p);let ht=F;F=(ft=(pt=p.space.getFormat(F))!=null?pt:p.space.getFormat("default"))!=null?ft:Vt.DEFAULT_FORMAT,K||(K=F.toGamut);let ct=p.coords;if(ct=ct.map(et=>et||0),K&&!Yi(p)&&(ct=pi(eo(p),K===!0?void 0:K).coords),F.type==="custom")if(tt.precision=T,F.serialize)st=F.serialize(ct,p.alpha,tt);else throw new TypeError(`format ${ht} can only be used to parse colors, not for serialization`);else{let et=F.name||"color";F.serializeCoords?ct=F.serializeCoords(ct,T):T!==null&&(ct=ct.map(U=>Go(U,T)));let G=[...ct];if(et==="color"){let U=F.id||((_=F.ids)==null?void 0:_[0])||p.space.id;G.unshift(U)}let B=p.alpha;T!==null&&(B=Go(B,T));let X=p.alpha<1&&!F.noAlpha?`${F.commas?",":" /"} ${B}`:"";st=`${et}(${G.join(F.commas?", ":" ")}${X})`}return st}const Gd=[[.6369580483012914,.14461690358620832,.1688809751641721],[.2627002120112671,.6779980715188708,.05930171646986196],[0,.028072693049087428,1.060985057710791]],Wd=[[1.716651187971268,-.355670783776392,-.25336628137366],[-.666684351832489,1.616481236634939,.0157685458139111],[.017639857445311,-.042770613257809,.942103121235474]];var or=new Oe({id:"rec2020-linear",name:"Linear REC.2020",white:"D65",toXYZ_M:Gd,fromXYZ_M:Wd,formats:{color:{}}});const bo=1.09929682680944,cs=.018053968510807;var Sl=new Oe({id:"rec2020",name:"REC.2020",base:or,toBase(p){return p.map(function(T){return T<cs*4.5?T/4.5:Math.pow((T+bo-1)/bo,1/.45)})},fromBase(p){return p.map(function(T){return T>=cs?bo*Math.pow(T,.45)-(bo-1):4.5*T})},formats:{color:{}}});const Hd=[[.4865709486482162,.26566769316909306,.1982172852343625],[.2289745640697488,.6917385218365064,.079286914093745],[0,.04511338185890264,1.043944368900976]],Xd=[[2.493496911941425,-.9313836179191239,-.40271078445071684],[-.8294889695615747,1.7626640603183463,.023624685841943577],[.03584583024378447,-.07617238926804182,.9568845240076872]];var wl=new Oe({id:"p3-linear",name:"Linear P3",white:"D65",toXYZ_M:Hd,fromXYZ_M:Xd});const Yd=[[.41239079926595934,.357584339383878,.1804807884018343],[.21263900587151027,.715168678767756,.07219231536073371],[.01933081871559182,.11919477979462598,.9505321522496607]],Ud=[[3.2409699419045226,-1.537383177570094,-.4986107602930034],[-.9692436362808796,1.8759675015077202,.04155505740717559],[.05563007969699366,-.20397695888897652,1.0569715142428786]];var Ml=new Oe({id:"srgb-linear",name:"Linear sRGB",white:"D65",toXYZ_M:Yd,fromXYZ_M:Ud,formats:{color:{}}}),ps={aliceblue:[240/255,248/255,1],antiquewhite:[250/255,235/255,215/255],aqua:[0,1,1],aquamarine:[127/255,1,212/255],azure:[240/255,1,1],beige:[245/255,245/255,220/255],bisque:[1,228/255,196/255],black:[0,0,0],blanchedalmond:[1,235/255,205/255],blue:[0,0,1],blueviolet:[138/255,43/255,226/255],brown:[165/255,42/255,42/255],burlywood:[222/255,184/255,135/255],cadetblue:[95/255,158/255,160/255],chartreuse:[127/255,1,0],chocolate:[210/255,105/255,30/255],coral:[1,127/255,80/255],cornflowerblue:[100/255,149/255,237/255],cornsilk:[1,248/255,220/255],crimson:[220/255,20/255,60/255],cyan:[0,1,1],darkblue:[0,0,139/255],darkcyan:[0,139/255,139/255],darkgoldenrod:[184/255,134/255,11/255],darkgray:[169/255,169/255,169/255],darkgreen:[0,100/255,0],darkgrey:[169/255,169/255,169/255],darkkhaki:[189/255,183/255,107/255],darkmagenta:[139/255,0,139/255],darkolivegreen:[85/255,107/255,47/255],darkorange:[1,140/255,0],darkorchid:[153/255,50/255,204/255],darkred:[139/255,0,0],darksalmon:[233/255,150/255,122/255],darkseagreen:[143/255,188/255,143/255],darkslateblue:[72/255,61/255,139/255],darkslategray:[47/255,79/255,79/255],darkslategrey:[47/255,79/255,79/255],darkturquoise:[0,206/255,209/255],darkviolet:[148/255,0,211/255],deeppink:[1,20/255,147/255],deepskyblue:[0,191/255,1],dimgray:[105/255,105/255,105/255],dimgrey:[105/255,105/255,105/255],dodgerblue:[30/255,144/255,1],firebrick:[178/255,34/255,34/255],floralwhite:[1,250/255,240/255],forestgreen:[34/255,139/255,34/255],fuchsia:[1,0,1],gainsboro:[220/255,220/255,220/255],ghostwhite:[248/255,248/255,1],gold:[1,215/255,0],goldenrod:[218/255,165/255,32/255],gray:[128/255,128/255,128/255],green:[0,128/255,0],greenyellow:[173/255,1,47/255],grey:[128/255,128/255,128/255],honeydew:[240/255,1,240/255],hotpink:[1,105/255,180/255],indianred:[205/255,92/255,92/255],indigo:[75/255,0,130/255],ivory:[1,1,240/255],khaki:[240/255,230/255,140/255],lavender:[230/255,230/255,250/255],lavenderblush:[1,240/255,245/255],lawngreen:[124/255,252/255,0],lemonchiffon:[1,250/255,205/255],lightblue:[173/255,216/255,230/255],lightcoral:[240/255,128/255,128/255],lightcyan:[224/255,1,1],lightgoldenrodyellow:[250/255,250/255,210/255],lightgray:[211/255,211/255,211/255],lightgreen:[144/255,238/255,144/255],lightgrey:[211/255,211/255,211/255],lightpink:[1,182/255,193/255],lightsalmon:[1,160/255,122/255],lightseagreen:[32/255,178/255,170/255],lightskyblue:[135/255,206/255,250/255],lightslategray:[119/255,136/255,153/255],lightslategrey:[119/255,136/255,153/255],lightsteelblue:[176/255,196/255,222/255],lightyellow:[1,1,224/255],lime:[0,1,0],limegreen:[50/255,205/255,50/255],linen:[250/255,240/255,230/255],magenta:[1,0,1],maroon:[128/255,0,0],mediumaquamarine:[102/255,205/255,170/255],mediumblue:[0,0,205/255],mediumorchid:[186/255,85/255,211/255],mediumpurple:[147/255,112/255,219/255],mediumseagreen:[60/255,179/255,113/255],mediumslateblue:[123/255,104/255,238/255],mediumspringgreen:[0,250/255,154/255],mediumturquoise:[72/255,209/255,204/255],mediumvioletred:[199/255,21/255,133/255],midnightblue:[25/255,25/255,112/255],mintcream:[245/255,1,250/255],mistyrose:[1,228/255,225/255],moccasin:[1,228/255,181/255],navajowhite:[1,222/255,173/255],navy:[0,0,128/255],oldlace:[253/255,245/255,230/255],olive:[128/255,128/255,0],olivedrab:[107/255,142/255,35/255],orange:[1,165/255,0],orangered:[1,69/255,0],orchid:[218/255,112/255,214/255],palegoldenrod:[238/255,232/255,170/255],palegreen:[152/255,251/255,152/255],paleturquoise:[175/255,238/255,238/255],palevioletred:[219/255,112/255,147/255],papayawhip:[1,239/255,213/255],peachpuff:[1,218/255,185/255],peru:[205/255,133/255,63/255],pink:[1,192/255,203/255],plum:[221/255,160/255,221/255],powderblue:[176/255,224/255,230/255],purple:[128/255,0,128/255],rebeccapurple:[102/255,51/255,153/255],red:[1,0,0],rosybrown:[188/255,143/255,143/255],royalblue:[65/255,105/255,225/255],saddlebrown:[139/255,69/255,19/255],salmon:[250/255,128/255,114/255],sandybrown:[244/255,164/255,96/255],seagreen:[46/255,139/255,87/255],seashell:[1,245/255,238/255],sienna:[160/255,82/255,45/255],silver:[192/255,192/255,192/255],skyblue:[135/255,206/255,235/255],slateblue:[106/255,90/255,205/255],slategray:[112/255,128/255,144/255],slategrey:[112/255,128/255,144/255],snow:[1,250/255,250/255],springgreen:[0,1,127/255],steelblue:[70/255,130/255,180/255],tan:[210/255,180/255,140/255],teal:[0,128/255,128/255],thistle:[216/255,191/255,216/255],tomato:[1,99/255,71/255],turquoise:[64/255,224/255,208/255],violet:[238/255,130/255,238/255],wheat:[245/255,222/255,179/255],white:[1,1,1],whitesmoke:[245/255,245/255,245/255],yellow:[1,1,0],yellowgreen:[154/255,205/255,50/255]};let ds=Array(3).fill("<percentage> | <number>[0, 255]"),us=Array(3).fill("<number>[0, 255]");var io=new Oe({id:"srgb",name:"sRGB",base:Ml,fromBase:p=>p.map(T=>{let F=T<0?-1:1,K=T*F;return K>.0031308?F*(1.055*Ft(K,1/2.4)-.055):12.92*T}),toBase:p=>p.map(T=>{let F=T<0?-1:1,K=T*F;return K<.04045?T/12.92:F*Ft((K+.055)/1.055,2.4)}),formats:{rgb:{coords:ds},rgb_number:{name:"rgb",commas:!0,coords:us,noAlpha:!0},color:{},rgba:{coords:ds,commas:!0,lastAlpha:!0},rgba_number:{name:"rgba",commas:!0,coords:us},hex:{type:"custom",toGamut:!0,test:p=>/^#([a-f0-9]{3,4}){1,2}$/i.test(p),parse(p){p.length<=5&&(p=p.replace(/[a-f0-9]/gi,"$&$&"));let T=[];return p.replace(/[a-f0-9]{2}/gi,F=>{T.push(parseInt(F,16)/255)}),{spaceId:"srgb",coords:T.slice(0,3),alpha:T.slice(3)[0]}},serialize:(p,T,{collapse:F=!0}={})=>{T<1&&p.push(T),p=p.map(it=>Math.round(it*255));let K=F&&p.every(it=>it%17===0);return"#"+p.map(it=>K?(it/17).toString(16):it.toString(16).padStart(2,"0")).join("")}},keyword:{type:"custom",test:p=>/^[a-z]+$/i.test(p),parse(p){p=p.toLowerCase();let T={spaceId:"srgb",coords:null,alpha:1};if(p==="transparent"?(T.coords=ps.black,T.alpha=0):T.coords=ps[p],T.coords)return T}}}}),Al=new Oe({id:"p3",name:"P3",base:wl,fromBase:io.fromBase,toBase:io.toBase,formats:{color:{id:"display-p3"}}});Je.display_space=io;if(typeof CSS!="undefined"&&CSS.supports)for(let p of[Ie,Sl,Al]){let T=p.getMinCoords(),K=Yo({space:p,coords:T,alpha:1});if(CSS.supports("color",K)){Je.display_space=p;break}}function Vd(p,K={}){var tt=K,{space:T=Je.display_space}=tt,F=Te(tt,["space"]);let it=Yo(p,F);if(typeof CSS=="undefined"||CSS.supports("color",it)||!Je.display_space)it=new String(it),it.color=p;else{let rt=ze(p,T);it=new String(Yo(rt,F)),it.color=rt}return it}function Tl(p,T,F="lab"){F=Vt.get(F);let K=F.from(p),tt=F.from(T);return Math.sqrt(K.reduce((it,rt,st)=>{let ht=tt[st];return isNaN(rt)||isNaN(ht)?it:it+Ft(ht-rt,2)},0))}function $d(p,T){return p=re(p),T=re(T),p.space===T.space&&p.alpha===T.alpha&&p.coords.every((F,K)=>F===T.coords[K])}function di(p){return Ge(p,[Fe,"y"])}function kl(p,T){ci(p,[Fe,"y"],T)}function Zd(p){Object.defineProperty(p.prototype,"luminance",{get(){return di(this)},set(T){kl(this,T)}})}var Kd=Object.freeze({__proto__:null,getLuminance:di,register:Zd,setLuminance:kl});function qd(p,T){p=re(p),T=re(T);let F=Math.max(di(p),0),K=Math.max(di(T),0);return K>F&&([F,K]=[K,F]),(F+.05)/(K+.05)}const Jd=.56,Qd=.57,tu=.62,eu=.65,fs=.022,iu=1.414,ou=.1,ru=5e-4,nu=1.14,gs=.027,su=1.14;function ms(p){return p>=fs?p:p+Ft(fs-p,iu)}function Mi(p){let T=p<0?-1:1,F=Math.abs(p);return T*Math.pow(F,2.4)}function au(p,T){T=re(T),p=re(p);let F,K,tt,it,rt,st;T=ze(T,"srgb"),[it,rt,st]=T.coords;let ht=Mi(it)*.2126729+Mi(rt)*.7151522+Mi(st)*.072175;p=ze(p,"srgb"),[it,rt,st]=p.coords;let ct=Mi(it)*.2126729+Mi(rt)*.7151522+Mi(st)*.072175,pt=ms(ht),ft=ms(ct),_=ft>pt;return Math.abs(ft-pt)<ru?K=0:_?(F=Ft(ft,Jd)-Ft(pt,Qd),K=F*nu):(F=Ft(ft,eu)-Ft(pt,tu),K=F*su),Math.abs(K)<ou?tt=0:K>0?tt=K-gs:tt=K+gs,tt*100}function lu(p,T){p=re(p),T=re(T);let F=Math.max(di(p),0),K=Math.max(di(T),0);K>F&&([F,K]=[K,F]);let tt=F+K;return tt===0?0:(F-K)/tt}const hu=5e4;function cu(p,T){p=re(p),T=re(T);let F=Math.max(di(p),0),K=Math.max(di(T),0);return K>F&&([F,K]=[K,F]),K===0?hu:(F-K)/K}function pu(p,T){p=re(p),T=re(T);let F=Ge(p,[Ie,"l"]),K=Ge(T,[Ie,"l"]);return Math.abs(F-K)}const du=216/24389,ys=24/116,xo=24389/27;let gr=Xe.D65;var _r=new Vt({id:"lab-d65",name:"Lab D65",coords:{l:{refRange:[0,100],name:"L"},a:{refRange:[-125,125]},b:{refRange:[-125,125]}},white:gr,base:Fe,fromBase(p){let F=p.map((K,tt)=>K/gr[tt]).map(K=>K>du?Math.cbrt(K):(xo*K+16)/116);return[116*F[1]-16,500*(F[0]-F[1]),200*(F[1]-F[2])]},toBase(p){let T=[];return T[1]=(p[0]+16)/116,T[0]=p[1]/500+T[1],T[2]=T[1]-p[2]/200,[T[0]>ys?Math.pow(T[0],3):(116*T[0]-16)/xo,p[0]>8?Math.pow((p[0]+16)/116,3):p[0]/xo,T[2]>ys?Math.pow(T[2],3):(116*T[2]-16)/xo].map((K,tt)=>K*gr[tt])},formats:{"lab-d65":{coords:["<number> | <percentage>","<number> | <percentage>[-1,1]","<number> | <percentage>[-1,1]"]}}});const mr=Math.pow(5,.5)*.5+.5;function uu(p,T){p=re(p),T=re(T);let F=Ge(p,[_r,"l"]),K=Ge(T,[_r,"l"]),tt=Math.abs(Math.pow(F,mr)-Math.pow(K,mr)),it=Math.pow(tt,1/mr)*Math.SQRT2-40;return it<7.5?0:it}var Io=Object.freeze({__proto__:null,contrastAPCA:au,contrastDeltaPhi:uu,contrastLstar:pu,contrastMichelson:lu,contrastWCAG21:qd,contrastWeber:cu});function fu(p,T,F={}){ho(F)&&(F={algorithm:F});let it=F,{algorithm:K}=it,tt=Te(it,["algorithm"]);if(!K){let rt=Object.keys(Io).map(st=>st.replace(/^contrast/,"")).join(", ");throw new TypeError(`contrast() function needs a contrast algorithm. Please specify one of: ${rt}`)}p=re(p),T=re(T);for(let rt in Io)if("contrast"+K.toLowerCase()===rt.toLowerCase())return Io[rt](p,T,tt);throw new TypeError(`Unknown contrast algorithm: ${K}`)}function Pl(p){let[T,F,K]=co(p,Fe),tt=T+15*F+3*K;return[4*T/tt,9*F/tt]}function Ll(p){let[T,F,K]=co(p,Fe),tt=T+F+K;return[T/tt,F/tt]}function gu(p){Object.defineProperty(p.prototype,"uv",{get(){return Pl(this)}}),Object.defineProperty(p.prototype,"xy",{get(){return Ll(this)}})}var mu=Object.freeze({__proto__:null,register:gu,uv:Pl,xy:Ll});function yu(p,T){return Tl(p,T,"lab")}const vu=Math.PI,vs=vu/180;function bu(p,T,{l:F=2,c:K=1}={}){let[tt,it,rt]=Ie.from(p),[,st,ht]=to.from(Ie,[tt,it,rt]),[ct,pt,ft]=Ie.from(T),_=to.from(Ie,[ct,pt,ft])[1];st<0&&(st=0),_<0&&(_=0);let et=tt-ct,G=st-_,B=it-pt,X=rt-ft,U=Ft(B,2)+Ft(X,2)-Ft(G,2),$=.511;tt>=16&&($=.040975*tt/(1+.01765*tt));let Z=.0638*st/(1+.0131*st)+.638,V;Number.isNaN(ht)&&(ht=0),ht>=164&&ht<=345?V=.56+Math.abs(.2*Math.cos((ht+168)*vs)):V=.36+Math.abs(.4*Math.cos((ht+35)*vs));let z=Math.pow(st,4),I=Math.sqrt(z/(z+1900)),E=Z*(I*V+1-I),M=Ft(et/(F*$),2);return M+=Ft(G/(K*Z),2),M+=U/Ft(E,2),Math.sqrt(M)}const bs=203;var Tn=new Vt({id:"xyz-abs-d65",name:"Absolute XYZ D65",coords:{x:{refRange:[0,9504.7],name:"Xa"},y:{refRange:[0,1e4],name:"Ya"},z:{refRange:[0,10888.3],name:"Za"}},base:Fe,fromBase(p){return p.map(T=>Math.max(T*bs,0))},toBase(p){return p.map(T=>Math.max(T/bs,0))}});const Co=1.15,So=.66,xs=2610/Ft(2,14),xu=Ft(2,14)/2610,Cs=3424/Ft(2,12),Ss=2413/Ft(2,7),ws=2392/Ft(2,7),Cu=1.7*2523/Ft(2,5),Ms=Ft(2,5)/(1.7*2523),wo=-.56,yr=16295499532821565e-27,Su=[[.41478972,.579999,.014648],[-.20151,1.120649,.0531008],[-.0166008,.2648,.6684799]],wu=[[1.9242264357876067,-1.0047923125953657,.037651404030618],[.35031676209499907,.7264811939316552,-.06538442294808501],[-.09098281098284752,-.3127282905230739,1.5227665613052603]],Mu=[[.5,.5,0],[3.524,-4.066708,.542708],[.199076,1.096799,-1.295875]],Au=[[1,.1386050432715393,.05804731615611886],[.9999999999999999,-.1386050432715393,-.05804731615611886],[.9999999999999998,-.09601924202631895,-.8118918960560388]];var El=new Vt({id:"jzazbz",name:"Jzazbz",coords:{jz:{refRange:[0,1],name:"Jz"},az:{refRange:[-.5,.5]},bz:{refRange:[-.5,.5]}},base:Tn,fromBase(p){let[T,F,K]=p,tt=Co*T-(Co-1)*K,it=So*F-(So-1)*T,st=ge(Su,[tt,it,K]).map(function(_){let et=Cs+Ss*Ft(_/1e4,xs),G=1+ws*Ft(_/1e4,xs);return Ft(et/G,Cu)}),[ht,ct,pt]=ge(Mu,st);return[(1+wo)*ht/(1+wo*ht)-yr,ct,pt]},toBase(p){let[T,F,K]=p,tt=(T+yr)/(1+wo-wo*(T+yr)),rt=ge(Au,[tt,F,K]).map(function(_){let et=Cs-Ft(_,Ms),G=ws*Ft(_,Ms)-Ss;return 1e4*Ft(et/G,xu)}),[st,ht,ct]=ge(wu,rt),pt=(st+(Co-1)*ct)/Co,ft=(ht+(So-1)*pt)/So;return[pt,ft,ct]},formats:{color:{}}}),Nr=new Vt({id:"jzczhz",name:"JzCzHz",coords:{jz:{refRange:[0,1],name:"Jz"},cz:{refRange:[0,1],name:"Chroma"},hz:{refRange:[0,360],type:"angle",name:"Hue"}},base:El,fromBase(p){let[T,F,K]=p,tt;const it=2e-4;return Math.abs(F)<it&&Math.abs(K)<it?tt=NaN:tt=Math.atan2(K,F)*180/Math.PI,[T,Math.sqrt(Ft(F,2)+Ft(K,2)),ir(tt)]},toBase(p){return[p[0],p[1]*Math.cos(p[2]*Math.PI/180),p[1]*Math.sin(p[2]*Math.PI/180)]},formats:{color:{}}});function Tu(p,T){let[F,K,tt]=Nr.from(p),[it,rt,st]=Nr.from(T),ht=F-it,ct=K-rt;Number.isNaN(tt)&&Number.isNaN(st)?(tt=0,st=0):Number.isNaN(tt)?tt=st:Number.isNaN(st)&&(st=tt);let pt=tt-st,ft=2*Math.sqrt(K*rt)*Math.sin(pt/2*(Math.PI/180));return Math.sqrt(Ft(ht,2)+Ft(ct,2)+Ft(ft,2))}const Ol=3424/4096,Dl=2413/128,jl=2392/128,As=2610/16384,ku=2523/32,Pu=16384/2610,Ts=32/2523,Lu=[[.3592,.6976,-.0358],[-.1922,1.1004,.0755],[.007,.0749,.8434]],Eu=[[2048/4096,2048/4096,0],[6610/4096,-13613/4096,7003/4096],[17933/4096,-17390/4096,-543/4096]],Ou=[[.9999888965628402,.008605050147287059,.11103437159861648],[1.00001110343716,-.008605050147287059,-.11103437159861648],[1.0000320633910054,.56004913547279,-.3206339100541203]],Du=[[2.0701800566956137,-1.326456876103021,.20661600684785517],[.3649882500326575,.6804673628522352,-.04542175307585323],[-.04959554223893211,-.04942116118675749,1.1879959417328034]];var Br=new Vt({id:"ictcp",name:"ICTCP",coords:{i:{refRange:[0,1],name:"I"},ct:{refRange:[-.5,.5],name:"CT"},cp:{refRange:[-.5,.5],name:"CP"}},base:Tn,fromBase(p){let T=ge(Lu,p);return ju(T)},toBase(p){let T=Iu(p);return ge(Du,T)},formats:{color:{}}});function ju(p){let T=p.map(function(F){let K=Ol+Dl*Ft(F/1e4,As),tt=1+jl*Ft(F/1e4,As);return Ft(K/tt,ku)});return ge(Eu,T)}function Iu(p){return ge(Ou,p).map(function(K){let tt=Math.max(Ft(K,Ts)-Ol,0),it=Dl-jl*Ft(K,Ts);return 1e4*Ft(tt/it,Pu)})}function _u(p,T){let[F,K,tt]=Br.from(p),[it,rt,st]=Br.from(T);return 720*Math.sqrt(Ft(F-it,2)+.25*Ft(K-rt,2)+Ft(tt-st,2))}const Nu=[[.8190224432164319,.3619062562801221,-.12887378261216414],[.0329836671980271,.9292868468965546,.03614466816999844],[.048177199566046255,.26423952494422764,.6335478258136937]],Bu=[[1.2268798733741557,-.5578149965554813,.28139105017721583],[-.04057576262431372,1.1122868293970594,-.07171106666151701],[-.07637294974672142,-.4214933239627914,1.5869240244272418]],Ru=[[.2104542553,.793617785,-.0040720468],[1.9779984951,-2.428592205,.4505937099],[.0259040371,.7827717662,-.808675766]],zu=[[.9999999984505198,.39633779217376786,.2158037580607588],[1.0000000088817609,-.10556134232365635,-.06385417477170591],[1.0000000546724108,-.08948418209496575,-1.2914855378640917]];var Uo=new Vt({id:"oklab",name:"Oklab",coords:{l:{refRange:[0,1],name:"L"},a:{refRange:[-.4,.4]},b:{refRange:[-.4,.4]}},white:"D65",base:Fe,fromBase(p){let F=ge(Nu,p).map(K=>Math.cbrt(K));return ge(Ru,F)},toBase(p){let F=ge(zu,p).map(K=>Ft(K,3));return ge(Bu,F)},formats:{oklab:{coords:["<percentage> | <number>","<number> | <percentage>[-1,1]","<number> | <percentage>[-1,1]"]}}});function Fu(p,T){let[F,K,tt]=Uo.from(p),[it,rt,st]=Uo.from(T),ht=F-it,ct=K-rt,pt=tt-st;return Math.sqrt(Ft(ht,2)+Ft(ct,2)+Ft(pt,2))}var Vo={deltaE76:yu,deltaECMC:bu,deltaE2000:Ir,deltaEJz:Tu,deltaEITP:_u,deltaEOK:Fu};function Xi(p,T,F={}){ho(F)&&(F={method:F});let it=F,{method:K=Je.deltaE}=it,tt=Te(it,["method"]);p=re(p),T=re(T);for(let rt in Vo)if("deltae"+K.toLowerCase()===rt.toLowerCase())return Vo[rt](p,T,tt);throw new TypeError(`Unknown deltaE method: ${K}`)}function Gu(p,T=.25){let K=[Vt.get("oklch","lch"),"l"];return ci(p,K,tt=>tt*(1+T))}function Wu(p,T=.25){let K=[Vt.get("oklch","lch"),"l"];return ci(p,K,tt=>tt*(1-T))}var Hu=Object.freeze({__proto__:null,darken:Wu,lighten:Gu});function Il(p,T,F=.5,K={}){[p,T]=[re(p),re(T)],ai(F)==="object"&&([F,K]=[.5,F]);let{space:tt,outputSpace:it,premultiplied:rt}=K;return po(p,T,{space:tt,outputSpace:it,premultiplied:rt})(F)}function _l(p,T,F={}){let K;kn(p)&&([K,F]=[p,T],[p,T]=K.rangeArgs.colors);let _=F,{maxDeltaE:tt,deltaEMethod:it,steps:rt=2,maxSteps:st=1e3}=_,ht=Te(_,["maxDeltaE","deltaEMethod","steps","maxSteps"]);K||([p,T]=[re(p),re(T)],K=po(p,T,ht));let ct=Xi(p,T),pt=tt>0?Math.max(rt,Math.ceil(ct/tt)+1):rt,ft=[];if(st!==void 0&&(pt=Math.min(pt,st)),pt===1)ft=[{p:.5,color:K(.5)}];else{let et=1/(pt-1);ft=Array.from({length:pt},(G,B)=>{let X=B*et;return{p:X,color:K(X)}})}if(tt>0){let et=ft.reduce((G,B,X)=>{if(X===0)return 0;let U=Xi(B.color,ft[X-1].color,it);return Math.max(G,U)},0);for(;et>tt;){et=0;for(let G=1;G<ft.length&&ft.length<st;G++){let B=ft[G-1],X=ft[G],U=(X.p+B.p)/2,$=K(U);et=Math.max(et,Xi($,B.color),Xi($,X.color)),ft.splice(G,0,{p:U,color:K(U)}),G++}}}return ft=ft.map(et=>et.color),ft}function po(p,T,F={}){if(kn(p)){let[ht,ct]=[p,T];return po(...ht.rangeArgs.colors,kt(kt({},ht.rangeArgs.options),ct))}let{space:K,outputSpace:tt,progression:it,premultiplied:rt}=F;p=re(p),T=re(T),p=eo(p),T=eo(T);let st={colors:[p,T],options:F};if(K?K=Vt.get(K):K=Vt.registry[Je.interpolationSpace]||p.space,tt=tt?Vt.get(tt):K,p=ze(p,K),T=ze(T,K),p=pi(p),T=pi(T),K.coords.h&&K.coords.h.type==="angle"){let ht=F.hue=F.hue||"shorter",ct=[K,"h"],[pt,ft]=[Ge(p,ct),Ge(T,ct)];[pt,ft]=zd(ht,[pt,ft]),ci(p,ct,pt),ci(T,ct,ft)}return rt&&(p.coords=p.coords.map(ht=>ht*p.alpha),T.coords=T.coords.map(ht=>ht*T.alpha)),Object.assign(ht=>{ht=it?it(ht):ht;let ct=p.coords.map((_,et)=>{let G=T.coords[et];return Wo(_,G,ht)}),pt=Wo(p.alpha,T.alpha,ht),ft={space:K,coords:ct,alpha:pt};return rt&&(ft.coords=ft.coords.map(_=>_/pt)),tt!==K&&(ft=ze(ft,tt)),ft},{rangeArgs:st})}function kn(p){return ai(p)==="function"&&!!p.rangeArgs}Je.interpolationSpace="lab";function Xu(p){p.defineFunction("mix",Il,{returns:"color"}),p.defineFunction("range",po,{returns:"function<color>"}),p.defineFunction("steps",_l,{returns:"array<color>"})}var Yu=Object.freeze({__proto__:null,isRange:kn,mix:Il,range:po,register:Xu,steps:_l}),Nl=new Vt({id:"hsl",name:"HSL",coords:{h:{refRange:[0,360],type:"angle",name:"Hue"},s:{range:[0,100],name:"Saturation"},l:{range:[0,100],name:"Lightness"}},base:io,fromBase:p=>{let T=Math.max(...p),F=Math.min(...p),[K,tt,it]=p,[rt,st,ht]=[NaN,0,(F+T)/2],ct=T-F;if(ct!==0){switch(st=ht===0||ht===1?0:(T-ht)/Math.min(ht,1-ht),T){case K:rt=(tt-it)/ct+(tt<it?6:0);break;case tt:rt=(it-K)/ct+2;break;case it:rt=(K-tt)/ct+4}rt=rt*60}return[rt,st*100,ht*100]},toBase:p=>{let[T,F,K]=p;T=T%360,T<0&&(T+=360),F/=100,K/=100;function tt(it){let rt=(it+T/30)%12,st=F*Math.min(K,1-K);return K-st*Math.max(-1,Math.min(rt-3,9-rt,1))}return[tt(0),tt(8),tt(4)]},formats:{hsl:{toGamut:!0,coords:["<number> | <angle>","<percentage>","<percentage>"]},hsla:{coords:["<number> | <angle>","<percentage>","<percentage>"],commas:!0,lastAlpha:!0}}}),Bl=new Vt({id:"hsv",name:"HSV",coords:{h:{refRange:[0,360],type:"angle",name:"Hue"},s:{range:[0,100],name:"Saturation"},v:{range:[0,100],name:"Value"}},base:Nl,fromBase(p){let[T,F,K]=p;F/=100,K/=100;let tt=K+F*Math.min(K,1-K);return[T,tt===0?0:200*(1-K/tt),100*tt]},toBase(p){let[T,F,K]=p;F/=100,K/=100;let tt=K*(1-F/2);return[T,tt===0||tt===1?0:(K-tt)/Math.min(tt,1-tt)*100,tt*100]},formats:{color:{toGamut:!0}}}),Uu=new Vt({id:"hwb",name:"HWB",coords:{h:{refRange:[0,360],type:"angle",name:"Hue"},w:{range:[0,100],name:"Whiteness"},b:{range:[0,100],name:"Blackness"}},base:Bl,fromBase(p){let[T,F,K]=p;return[T,K*(100-F)/100,100-K]},toBase(p){let[T,F,K]=p;F/=100,K/=100;let tt=F+K;if(tt>=1){let st=F/tt;return[T,0,st*100]}let it=1-K,rt=it===0?0:1-F/it;return[T,rt*100,it*100]},formats:{hwb:{toGamut:!0,coords:["<number> | <angle>","<percentage>","<percentage>"]}}});const Vu=[[.5766690429101305,.1855582379065463,.1882286462349947],[.29734497525053605,.6273635662554661,.07529145849399788],[.02703136138641234,.07068885253582723,.9913375368376388]],$u=[[2.0415879038107465,-.5650069742788596,-.34473135077832956],[-.9692436362808795,1.8759675015077202,.04155505740717557],[.013444280632031142,-.11836239223101838,1.0151749943912054]];var Rl=new Oe({id:"a98rgb-linear",name:"Linear Adobe® 98 RGB compatible",white:"D65",toXYZ_M:Vu,fromXYZ_M:$u}),Zu=new Oe({id:"a98rgb",name:"Adobe® 98 RGB compatible",base:Rl,toBase:p=>p.map(T=>Math.pow(Math.abs(T),563/256)*Math.sign(T)),fromBase:p=>p.map(T=>Math.pow(Math.abs(T),256/563)*Math.sign(T)),formats:{color:{id:"a98-rgb"}}});const Ku=[[.7977604896723027,.13518583717574031,.0313493495815248],[.2880711282292934,.7118432178101014,8565396060525902e-20],[0,0,.8251046025104601]],qu=[[1.3457989731028281,-.25558010007997534,-.05110628506753401],[-.5446224939028347,1.5082327413132781,.02053603239147973],[0,0,1.2119675456389454]];var zl=new Oe({id:"prophoto-linear",name:"Linear ProPhoto",white:"D50",base:An,toXYZ_M:Ku,fromXYZ_M:qu});const Ju=1/512,Qu=16/512;var tf=new Oe({id:"prophoto",name:"ProPhoto",base:zl,toBase(p){return p.map(T=>T<Qu?T/16:Ft(T,1.8))},fromBase(p){return p.map(T=>T>=Ju?Ft(T,1/1.8):16*T)},formats:{color:{id:"prophoto-rgb"}}}),ef=new Vt({id:"oklch",name:"Oklch",coords:{l:{refRange:[0,1],name:"Lightness"},c:{refRange:[0,.4],name:"Chroma"},h:{refRange:[0,360],type:"angle",name:"Hue"}},white:"D65",base:Uo,fromBase(p){let[T,F,K]=p,tt;const it=2e-4;return Math.abs(F)<it&&Math.abs(K)<it?tt=NaN:tt=Math.atan2(K,F)*180/Math.PI,[T,Math.sqrt(Ft(F,2)+Ft(K,2)),ir(tt)]},toBase(p){let[T,F,K]=p,tt,it;return isNaN(K)?(tt=0,it=0):(tt=F*Math.cos(K*Math.PI/180),it=F*Math.sin(K*Math.PI/180)),[T,tt,it]},formats:{oklch:{coords:["<number> | <percentage>","<number> | <percentage>[0,1]","<number> | <angle>"]}}});const ks=203,Ps=2610/Ft(2,14),of=Ft(2,14)/2610,rf=2523/Ft(2,5),Ls=Ft(2,5)/2523,Es=3424/Ft(2,12),Os=2413/Ft(2,7),Ds=2392/Ft(2,7);var nf=new Oe({id:"rec2100pq",name:"REC.2100-PQ",base:or,toBase(p){return p.map(function(T){return Ft(Math.max(Ft(T,Ls)-Es,0)/(Os-Ds*Ft(T,Ls)),of)*1e4/ks})},fromBase(p){return p.map(function(T){let F=Math.max(T*ks/1e4,0),K=Es+Os*Ft(F,Ps),tt=1+Ds*Ft(F,Ps);return Ft(K/tt,rf)})},formats:{color:{id:"rec2100-pq"}}});const js=.17883277,Is=.28466892,_s=.55991073,vr=3.7743;var sf=new Oe({id:"rec2100hlg",cssid:"rec2100-hlg",name:"REC.2100-HLG",referred:"scene",base:or,toBase(p){return p.map(function(T){return T<=.5?Ft(T,2)/3*vr:(Math.exp((T-_s)/js)+Is)/12*vr})},fromBase(p){return p.map(function(T){return T/=vr,T<=1/12?Math.sqrt(3*T):js*Math.log(12*T-Is)+_s})},formats:{color:{id:"rec2100-hlg"}}});const Fl={};hi.add("chromatic-adaptation-start",p=>{p.options.method&&(p.M=Gl(p.W1,p.W2,p.options.method))});hi.add("chromatic-adaptation-end",p=>{p.M||(p.M=Gl(p.W1,p.W2,p.options.method))});function rr({id:p,toCone_M:T,fromCone_M:F}){Fl[p]=arguments[0]}function Gl(p,T,F="Bradford"){let K=Fl[F],[tt,it,rt]=ge(K.toCone_M,p),[st,ht,ct]=ge(K.toCone_M,T),pt=[[st/tt,0,0],[0,ht/it,0],[0,0,ct/rt]],ft=ge(pt,K.toCone_M);return ge(K.fromCone_M,ft)}rr({id:"von Kries",toCone_M:[[.40024,.7076,-.08081],[-.2263,1.16532,.0457],[0,0,.91822]],fromCone_M:[[1.8599364,-1.1293816,.2198974],[.3611914,.6388125,-64e-7],[0,0,1.0890636]]});rr({id:"Bradford",toCone_M:[[.8951,.2664,-.1614],[-.7502,1.7135,.0367],[.0389,-.0685,1.0296]],fromCone_M:[[.9869929,-.1470543,.1599627],[.4323053,.5183603,.0492912],[-.0085287,.0400428,.9684867]]});rr({id:"CAT02",toCone_M:[[.7328,.4296,-.1624],[-.7036,1.6975,.0061],[.003,.0136,.9834]],fromCone_M:[[1.0961238,-.278869,.1827452],[.454369,.4735332,.0720978],[-.0096276,-.005698,1.0153256]]});rr({id:"CAT16",toCone_M:[[.401288,.650173,-.051461],[-.250268,1.204414,.045854],[-.002079,.048952,.953127]],fromCone_M:[[1.862067855087233,-1.011254630531685,.1491867754444518],[.3875265432361372,.6214474419314753,-.008973985167612518],[-.01584149884933386,-.03412293802851557,1.04996443687785]]});Object.assign(Xe,{A:[1.0985,1,.35585],C:[.98074,1,1.18232],D55:[.95682,1,.92149],D75:[.94972,1,1.22638],E:[1,1,1],F2:[.99186,1,.67393],F7:[.95041,1,1.08747],F11:[1.00962,1,.6435]});Xe.ACES=[.32168/.33767,1,(1-.32168-.33767)/.33767];const af=[[.6624541811085053,.13400420645643313,.1561876870049078],[.27222871678091454,.6740817658111484,.05368951740793705],[-.005574649490394108,.004060733528982826,1.0103391003129971]],lf=[[1.6410233796943257,-.32480329418479,-.23642469523761225],[-.6636628587229829,1.6153315916573379,.016756347685530137],[.011721894328375376,-.008284441996237409,.9883948585390215]];var Wl=new Oe({id:"acescg",name:"ACEScg",coords:{r:{range:[0,65504],name:"Red"},g:{range:[0,65504],name:"Green"},b:{range:[0,65504],name:"Blue"}},referred:"scene",white:Xe.ACES,toXYZ_M:af,fromXYZ_M:lf,formats:{color:{}}});const Mo=Ft(2,-16),br=-.35828683,Ao=(Math.log2(65504)+9.72)/17.52;var hf=new Oe({id:"acescc",name:"ACEScc",coords:{r:{range:[br,Ao],name:"Red"},g:{range:[br,Ao],name:"Green"},b:{range:[br,Ao],name:"Blue"}},referred:"scene",base:Wl,toBase(p){const T=-.3013698630136986;return p.map(function(F){return F<=T?(Ft(2,F*17.52-9.72)-Mo)*2:F<Ao?Ft(2,F*17.52-9.72):65504})},fromBase(p){return p.map(function(T){return T<=0?(Math.log2(Mo)+9.72)/17.52:T<Mo?(Math.log2(Mo+T*.5)+9.72)/17.52:(Math.log2(T)+9.72)/17.52})},formats:{color:{}}}),Ns=Object.freeze({__proto__:null,A98RGB:Zu,A98RGB_Linear:Rl,ACEScc:hf,ACEScg:Wl,HSL:Nl,HSV:Bl,HWB:Uu,ICTCP:Br,JzCzHz:Nr,Jzazbz:El,LCH:to,Lab:Ie,Lab_D65:_r,OKLCH:ef,OKLab:Uo,P3:Al,P3_Linear:wl,ProPhoto:tf,ProPhoto_Linear:zl,REC_2020:Sl,REC_2020_Linear:or,REC_2100_HLG:sf,REC_2100_PQ:nf,XYZ_ABS_D65:Tn,XYZ_D50:An,XYZ_D65:Fe,sRGB:io,sRGB_Linear:Ml});class ee{constructor(...T){let F;T.length===1&&(F=re(T[0]));let K,tt,it;F?(K=F.space||F.spaceId,tt=F.coords,it=F.alpha):[K,tt,it]=T,Object.defineProperty(this,"space",{value:Vt.get(K),writable:!1,enumerable:!0,configurable:!0}),this.coords=tt?tt.slice():[0,0,0],this.alpha=it<1?it:1;for(let rt=0;rt<this.coords.length;rt++)this.coords[rt]==="NaN"&&(this.coords[rt]=NaN);for(let rt in this.space.coords)Object.defineProperty(this,rt,{get:()=>this.get(rt),set:st=>this.set(rt,st)})}get spaceId(){return this.space.id}clone(){return new ee(this.space,this.coords,this.alpha)}toJSON(){return{spaceId:this.spaceId,coords:this.coords,alpha:this.alpha}}display(...T){let F=Vd(this,...T);return F.color=new ee(F.color),F}static get(T,...F){return T instanceof ee?T:new ee(T,...F)}static defineFunction(T,F,K=F){let{instance:tt=!0,returns:it}=K,rt=function(...st){let ht=F(...st);if(it==="color")ht=ee.get(ht);else if(it==="function<color>"){let ct=ht;ht=function(...pt){let ft=ct(...pt);return ee.get(ft)},Object.assign(ht,ct)}else it==="array<color>"&&(ht=ht.map(ct=>ee.get(ct)));return ht};T in ee||(ee[T]=rt),tt&&(ee.prototype[T]=function(...st){return rt(this,...st)})}static defineFunctions(T){for(let F in T)ee.defineFunction(F,T[F],T[F])}static extend(T){if(T.register)T.register(ee);else for(let F in T)ee.defineFunction(F,T[F])}}ee.defineFunctions({get:Ge,getAll:co,set:ci,setAll:Cl,to:ze,equals:$d,inGamut:Yi,toGamut:pi,distance:Tl,toString:Yo});Object.assign(ee,{util:Id,hooks:hi,WHITES:Xe,Space:Vt,spaces:Vt.registry,parse:xl,defaults:Je});for(let p of Object.keys(Ns))Vt.register(Ns[p]);for(let p in Vt.registry)Rr(p,Vt.registry[p]);hi.add("colorspace-init-end",p=>{var T;Rr(p.id,p),(T=p.aliases)==null||T.forEach(F=>{Rr(F,p)})});function Rr(p,T){Object.values(T.coords).map(K=>K.name);let F=p.replace(/-/g,"_");Object.defineProperty(ee.prototype,F,{get(){let K=this.getAll(p);return typeof Proxy=="undefined"?K:new Proxy(K,{has:(tt,it)=>{try{return Vt.resolveCoord([T,it]),!0}catch(rt){}return Reflect.has(tt,it)},get:(tt,it,rt)=>{if(it&&typeof it!="symbol"&&!(it in tt)){let{index:st}=Vt.resolveCoord([T,it]);if(st>=0)return tt[st]}return Reflect.get(tt,it,rt)},set:(tt,it,rt,st)=>{if(it&&typeof it!="symbol"&&!(it in tt)||it>=0){let{index:ht}=Vt.resolveCoord([T,it]);if(ht>=0)return tt[ht]=rt,this.setAll(p,tt),!0}return Reflect.set(tt,it,rt,st)}})},set(K){this.setAll(p,K)},configurable:!0,enumerable:!0})}ee.extend(Vo);ee.extend({deltaE:Xi});Object.assign(ee,{deltaEMethods:Vo});ee.extend(Hu);ee.extend({contrast:fu});ee.extend(mu);ee.extend(Kd);ee.extend(Yu);ee.extend(Io);const cf=.15,Ye=p=>typeof p=="string"?new ee(p):p,ei=p=>p.toString({format:"hex"}),Hl=(...p)=>{const T=p.map(Ye);if(T.length<2)return()=>ei(T[0]);const K=T.slice(0,-1).map((tt,it)=>[tt,T[it+1]]).map(([tt,it])=>{const rt=ee.range(tt,it,{outputSpace:"srgb"});return st=>ei(rt(st))});return tt=>{if(tt<=0)return ei(T[0]);if(tt>=1)return ei(T[T.length-1]);const it=Math.floor(tt*K.length);return K[it](tt*K.length-it)}},pf=(p,...T)=>{const F=T.map(Ye);if(F.length<2)return Array(p).fill(ei(F[0]));const K=Hl(...F);return Array(p).fill(0).map((tt,it)=>K(it/(p-1)))},Xl=p=>ei(Ye(p).set("hsl.s",0)),df=(p,T)=>ei(ee.mix(p,T,.5,{outputSpace:"srgb"})),uf=(p,T)=>Math.abs(Ye(T).hsl.h-Ye(p).hsl.h),oo=(p,T)=>{const F=Ye(p);return F.hsv.v=F.hsv.v+F.hsv.v*T,F.hsv.v>100&&(F.hsv.s=F.hsv.s-(F.hsv.v-100)/1.677),F.hsv.s=Math.max(0,Math.min(100,F.hsv.s)),F.hsv.v=Math.max(0,Math.min(100,F.hsv.v)),ei(F)},Yl=p=>({R:p.srgb[0]*255,G:p.srgb[1]*255,B:p.srgb[2]*255}),uo=p=>{const{R:T,G:F,B:K}=Yl(p);return 1-(.299*T+.587*F+.114*K)/255};function ff(p){return uo(p)<.9}const gf=(p,T=.05,F=1)=>{const K=Ye(p),{R:tt,G:it,B:rt}=Yl(K),st=uo(K);let ht=T;ff(K)&&(ht*=-.6),ht*=Math.exp(st*1.2);const ct=Math.min(Math.max(Math.round(255*ht)+tt,0),255),pt=Math.min(Math.max(Math.round(255*ht)+it,0),255),ft=Math.min(Math.max(Math.round(255*ht)+rt,0),255);return`rgba(${ct}, ${pt}, ${ft}, ${F})`},Ul=(p,T)=>{const F=Ye(p);return F.alpha=T,ei(F)},mf=(p,T,F)=>ee.steps(new ee(p),new ee(T),{steps:F}).map(K=>new ee(K).to("srgb").toString());function yf(p){return T=>{var ct,pt,ft;const{steps:F,minColor:K,maxColor:tt}=p,it=(ct=p.minValue)!=null?ct:Math.min(...T),rt=(pt=p.maxValue)!=null?pt:Math.max(...T),st=(ft=p.midValue)!=null?ft:it<0&&rt>0?0:(it+rt)/2,ht=Vl(K!=null?K:Fo,tt!=null?tt:Fo,it,st,rt,F);return _=>ht(_)}}const Vl=(p,T,F,K,tt,it=0)=>{const rt=xf(F,K,tt),st=uf(p,T)>90?[p,Xl(df(p,T)),T]:[p,T];return it<=0?vf(rt,st):bf(rt,it,st)},vf=(p,T)=>{const F=Hl(...T);return K=>F(p(K))},bf=(p,T,F)=>{const K=pf(T,...F);return tt=>{const it=Math.floor(p(tt)*T);return K[Math.min(Math.max(it,0),T-1)]}},xf=(p,T,F)=>K=>K==p&&K==F?.5:K<T?.5*((K-p)/(T-p)):.5+.5*(K-T)/(F-T);function $l(p){let T;switch(typeof p=="string"?T=wn(p):T=p,T.type){case"uniform":return{type:"Static",getColor:Od(T)};case"conditional":return{type:"Absolute",getColor:Dd(T)};case"range":return{type:"Relative",getColor:yf(T)}}}const Pn=p=>{const{getValueFromDataStructure:T,applyColorToDataStructure:F}=p;return(K,tt)=>{const it=$l(tt);let rt;switch(it.type){case"Static":rt=()=>it.getColor();break;case"Absolute":rt=st=>it.getColor(st);break;case"Relative":{const st=K.map(T),ht=it.getColor(st);rt=ct=>ht(ct);break}}return K.map(st=>{const ht=T(st),ct=rt(ht);return F(st,ct)})}},Cf=Pn({getValueFromDataStructure:p=>p.value,applyColorToDataStructure:(p,T)=>_t(kt({},p),{color:T})}),Zl=({x:p,y:T,breakBy:F})=>ql(T)&&Kl(p)&&F.length===0,Sf=({x:p,y:T,breakBy:F})=>Kl(p)&&ql(T)&&F.length>0,Kl=p=>p.length===0,ql=p=>p.length>0,wf=(p,T)=>p*(T/100),Mf=(p,T)=>p===0?0:Math.abs(T)/Math.abs(p)*100,_o=p=>`${p}%`,zr=(p,T)=>{var ft;if(T.rows.length===0)return{type:"cartesian",series:[],xValues:[],xAxisCount:0};const F=p.x.length;let K=Qi(T,p.x.map(({column:{name:_}})=>_));K=K.map((_,et)=>_t(kt({},_),{direction:Jl(p.x[et].sortType)}));const tt=Qi(T,p.breakBy.map(({column:{name:_}})=>_)),it=p.y.filter(({sortType:_})=>_&&_!=="sortNone"),rt=K.length>1?1:0,st=Ql(T,it,K,((ft=K[rt])==null?void 0:ft.direction)===0?bn:void 0),ht=p.y.map(({column:{name:_}})=>_),ct=p.breakBy.length>0?Pf(T,st,K,ht[0],tt,p.breakBy):Af(T,st,K,ht,p.y);return _t(kt({},ct),{xAxisCount:F,type:"cartesian"})},Jl=p=>{switch(p){case"sortNone":return 0;case"sortDesc":return-1;case"sortAsc":default:return 1}},Ql=(p,T,F,K)=>{if(F.length===0)return[{key:"",xValues:[""],rawValues:[]}];const tt=T.map(({column:{name:ft}})=>({column:ft,agg:"sum",title:ft}));if(K){const ft={column:K,title:K,agg:"min"};tt.push(ft)}const it=hl(p,F,tt),rt=[];let st=0;if(F.length===2){st=1;const _=si(it,F[0].name);_&&rt.push(_)}if(T.map(ft=>{const _=si(it,ft.column.name);return _&&rt.push(_t(kt({},_),{direction:ft.sortType==="sortAsc"?1:-1})),ft}),K){const ft=si(it,K);ft&&rt.push(ft)}if(F.length>0){const ft=si(it,F[st].name);ft&&rt.push(ft)}const ht=ll(it,rt),ct=Qi(ht,F.map(ft=>ft.name)),pt=cl(ht,ct);return pt.rows.map(ft=>{const _=Di(ft,pt.columns),et=_.map(U=>U.displayValue),G=_.map(U=>{var $;return($=U.rawValue)!=null?$:U.displayValue}),B=_.map(U=>{var $;return($=U==null?void 0:U.compareValue)==null?void 0:$.value});return{key:G.join(","),xValues:et,rawValues:G,compareValues:B}})},th=(p,T,F)=>{var rt,st;const K=F?pl(p,F):1e-5,{color:tt,rawValue:it}=(st=p[(rt=F==null?void 0:F.index)!=null?rt:0])!=null?st:{};return kt({rawValue:it,xValue:T.rawValues,xDisplayValue:T.xValues,xCompareValue:T.compareValues,value:K===void 0?NaN:K,blur:F?dl(p,F):void 0},tt&&{color:tt})},Af=(p,T,F,K,tt)=>{const it=K.length>0?Qi(p,K):[void 0],rt=tt.reduce((ct,pt)=>(ct[pt.column.name]=pt,ct),{}),st=Cn(p.rows,F),ht=it.map(ct=>{var G,B;let pt=T.map(X=>{const U=st[X.key],$=U?U[0]:[];return th($,X,ct)});const ft=(G=ct==null?void 0:ct.name)!=null?G:"",_=ft?xe(rt[ft]):"",et=(B=rt[ft])==null?void 0:B.color;return et&&(pt=Cf(pt,et)),{name:ft,title:_,data:pt}});return{xValues:T,series:ht}},Tf=(p,T,F)=>Di(p,T).map((K,tt)=>{const it=he(F[tt].numberFormatConfig);return Rt.isNumber(T[tt].type)?Ce(it,parseFloat(K.displayValue)):K.displayValue}).join(","),kf=(p,T)=>Di(p,T).map(({rawValue:F})=>F),Pf=(p,T,F,K,tt,it)=>{const rt=si(p,K),ct=xn(p.rows,tt).map(pt=>{const ft=pt[0];return{seriesName:Tf(ft,tt,it),seriesValues:kf(ft,tt),rowsByXColumns:Cn(pt,F)}}).map(pt=>{const ft=T.map(_=>{const et=pt.rowsByXColumns[_.key],G=et?et[0]:[];return th(G,_,rt)});return{name:pt.seriesName,data:ft,custom:{rawValue:pt.seriesValues}}});return{xValues:T,series:ct}},Ue=(p,T)=>{var K;const F=p==null?void 0:p.filter(tt=>tt);return(K=F&&F[T%F.length])!=null?K:Ed[T%10]},eh=p=>typeof p=="object"&&p!==null&&"type"in p&&p.type==="linear",ih=p=>typeof p=="object"&&p!==null&&"type"in p&&p.type==="radial",oh=p=>eh(p)||ih(p),Lf={topToBottom:{x1:0,y1:0,x2:0,y2:1},bottomToTop:{x1:0,y1:1,x2:0,y2:0},leftToRight:{x1:0,y1:0,x2:1,y2:0},rightToLeft:{x1:1,y1:0,x2:0,y2:0},diagonalTopLeft:{x1:0,y1:0,x2:1,y2:1},diagonalTopRight:{x1:1,y1:0,x2:0,y2:1}},Ef={center:{centerX:.5,centerY:.5,radius:.8},topLeft:{centerX:0,centerY:0,radius:1},topRight:{centerX:1,centerY:0,radius:1},bottomLeft:{centerX:0,centerY:1,radius:1},bottomRight:{centerX:1,centerY:1,radius:1}},Of=(p,T)=>({type:"linear",direction:p,stops:T}),Df=(p,T)=>({type:"radial",center:p,stops:T}),rh=p=>p.type==="linear"?{linearGradient:{x1:p.direction.x1,y1:p.direction.y1,x2:p.direction.x2,y2:p.direction.y2},stops:p.stops.map(T=>[T.position,T.color])}:{radialGradient:{cx:p.center.centerX,cy:p.center.centerY,r:p.center.radius},stops:p.stops.map(T=>[T.position,T.color])},jf=p=>{if(p.linearGradient)return{type:"linear",direction:{x1:p.linearGradient.x1,y1:p.linearGradient.y1,x2:p.linearGradient.x2,y2:p.linearGradient.y2},stops:p.stops.map(([T,F])=>({position:T,color:F}))};if(p.radialGradient)return{type:"radial",center:{centerX:p.radialGradient.cx,centerY:p.radialGradient.cy,radius:p.radialGradient.r},stops:p.stops.map(([T,F])=>({position:T,color:F}))};throw new Error("Invalid inner gradient format: must have either linearGradient or radialGradient")},bi=p=>oh(p)?rh(p):p,If=p=>{const F=[...p.stops].sort((K,tt)=>K.position-tt.position).map(K=>`${K.color} ${K.position*100}%`).join(", ");if(p.type==="linear"){const{direction:K}=p,tt=K.x2-K.x1,it=K.y2-K.y1;return`linear-gradient(${Math.atan2(it,tt)*180/Math.PI+90}deg, ${F})`}else{const{center:K}=p,tt=K.centerX*100,it=K.centerY*100;return`radial-gradient(circle ${K.radius*100}% at ${tt}% ${it}%, ${F})`}};function _f(p){return typeof p!="object"||p===null||Array.isArray(p)||p instanceof Date||p instanceof RegExp||p instanceof Function?!0:Object.keys(p).length>0}function xi(p){if(p==null)return p;if(Array.isArray(p))return p.filter(T=>T!==void 0).map(T=>xi(T)).filter(T=>typeof T=="object"&&T!==null&&!Array.isArray(T)?Object.keys(T).length>0:!0);if(typeof p=="object"){if(p instanceof Date||p instanceof RegExp||p instanceof Function)return p;const T={};for(const[F,K]of Object.entries(p)){if(K===void 0)continue;const tt=xi(K);_f(tt)&&(T[F]=tt)}return T}return p}const Le=p=>{var et;const{rotation:T,alignInside:F,align:K,verticalAlign:tt,textStyle:it,backgroundColor:rt,borderColor:st,borderRadius:ht,borderWidth:ct,padding:pt,xOffset:ft,yOffset:_}=p!=null?p:{};return xi({enabled:(et=p==null?void 0:p.enabled)!=null?et:!1,rotation:T,inside:F,align:K,verticalAlign:tt,style:it,backgroundColor:bi(rt),borderColor:bi(st),borderRadius:ht,borderWidth:ct,padding:pt,x:ft,y:_})};var Nf=function(T){return Bf(T)&&!Rf(T)};function Bf(p){return!!p&&typeof p=="object"}function Rf(p){var T=Object.prototype.toString.call(p);return T==="[object RegExp]"||T==="[object Date]"||Gf(p)}var zf=typeof Symbol=="function"&&Symbol.for,Ff=zf?Symbol.for("react.element"):60103;function Gf(p){return p.$$typeof===Ff}function Wf(p){return Array.isArray(p)?[]:{}}function ro(p,T){return T.clone!==!1&&T.isMergeableObject(p)?Pi(Wf(p),p,T):p}function Hf(p,T,F){return p.concat(T).map(function(K){return ro(K,F)})}function Xf(p,T){if(!T.customMerge)return Pi;var F=T.customMerge(p);return typeof F=="function"?F:Pi}function Yf(p){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(p).filter(function(T){return Object.propertyIsEnumerable.call(p,T)}):[]}function Bs(p){return Object.keys(p).concat(Yf(p))}function nh(p,T){try{return T in p}catch(F){return!1}}function Uf(p,T){return nh(p,T)&&!(Object.hasOwnProperty.call(p,T)&&Object.propertyIsEnumerable.call(p,T))}function Vf(p,T,F){var K={};return F.isMergeableObject(p)&&Bs(p).forEach(function(tt){K[tt]=ro(p[tt],F)}),Bs(T).forEach(function(tt){Uf(p,tt)||(nh(p,tt)&&F.isMergeableObject(T[tt])?K[tt]=Xf(tt,F)(p[tt],T[tt],F):K[tt]=ro(T[tt],F))}),K}function Pi(p,T,F){F=F||{},F.arrayMerge=F.arrayMerge||Hf,F.isMergeableObject=F.isMergeableObject||Nf,F.cloneUnlessOtherwiseSpecified=ro;var K=Array.isArray(T),tt=Array.isArray(p),it=K===tt;return it?K?F.arrayMerge(p,T,F):Vf(p,T,F):ro(T,F)}Pi.all=function(T,F){if(!Array.isArray(T))throw new Error("first argument should be an array");return T.reduce(function(K,tt){return Pi(K,tt,F)},{})};var $f=Pi,Zf=$f;const Re=Jr(Zf),Kf={fontSize:"13px",fontWeight:"normal",textOutline:"none",pointerEvents:"auto"},qf=p=>{switch(p){case"bottom":return{enabled:!0,align:"center",verticalAlign:"bottom",layout:"horizontal"};case"left":return{enabled:!0,align:"left",verticalAlign:"middle",layout:"vertical"};case"right":return{enabled:!0,align:"right",verticalAlign:"middle",layout:"vertical"};case"top":return{enabled:!0,align:"center",verticalAlign:"top",layout:"horizontal"};default:return{enabled:!0,align:"center",verticalAlign:"bottom",layout:"horizontal"}}},Jf=p=>{if((p==null?void 0:p.enabled)===!1||!p)return;const{text:T,textStyle:F}=p;return{title:{text:T,style:F}}},Qf=p=>{if(!p)return;const{layout:T,textStyle:F,marginBottom:K,marginTop:tt,distance:it,width:rt,hoverTextStyle:st,hiddenTextStyle:ht}=p||{};return{layout:T,itemStyle:F,itemMarginBottom:K,itemMarginTop:tt,itemDistance:it,itemWidth:rt,itemHoverStyle:st,itemHiddenStyle:ht}},tg=p=>{if(!p)return;const{radius:T,height:F,width:K,padding:tt,squared:it}=p;return{symbolRadius:T,symbolHeight:F,symbolWidth:K,symbolPadding:tt,squareSymbol:it}},eg=p=>{const ct=p,{title:T,items:F,symbols:K,xOffset:tt,yOffset:it,backgroundColor:rt,borderColor:st}=ct,ht=Te(ct,["title","items","symbols","xOffset","yOffset","backgroundColor","borderColor"]);return xi(_t(kt(kt(kt(kt({},ht),Jf(T)),Qf(F)),tg(K)),{x:tt,y:it,backgroundColor:bi(rt),borderColor:bi(st)}))},fi=p=>{const T={enabled:!1,symbolRadius:0,backgroundColor:"transparent",borderColor:"transparent",borderWidth:0,align:"center",verticalAlign:"bottom",layout:"horizontal"};if(!p)return T;const rt=p,{position:F}=rt,K=Te(rt,["position"]),tt=qf(F||null),it=eg(K);return xi(_t(kt(kt(kt({},T),tt),it),{itemStyle:kt(kt({},Kf),it.itemStyle)}))},Ln=p=>{var T;return(p==null?void 0:p.position)==="right"||(p==null?void 0:p.align)==="right"&&((T=p==null?void 0:p.items)==null?void 0:T.layout)==="vertical"&&(p==null?void 0:p.verticalAlign)==="middle"},Ae="#d1d1d7",sh=25,ah=[-10,-20,-30,-40,-50,-60,-70,-80,-90],Se={fontSize:"13px",fontWeight:"normal",textOutline:"none",pointerEvents:"none"},no={fontSize:"13px",textOverflow:"ellipsis",pointerEvents:"none",textOutline:"none",fontWeight:"bold"},Fr={labels:{overflow:"none",enabled:!0,autoRotation:ah,style:Se},tickmarkPlacement:"on",title:{text:"",enabled:!1,margin:sh,style:Se},gridLineDashStyle:"Dot",minorGridLineWidth:0,startOnTick:!1,endOnTick:!1,lineColor:Ae,lineWidth:1,tickColor:Ae,minorTickColor:Ae,gridLineColor:Ae,minorGridLineColor:Ae},Rs={labels:{autoRotation:ah,style:Se},tickmarkPlacement:"on",startOnTick:!0,endOnTick:!0,title:{text:"",margin:sh,enabled:!1,style:Se},gridLineWidth:1,minorTickWidth:0,tickWidth:0,minorGridLineWidth:0,gridLineDashStyle:"Dot",lineColor:Ae,lineWidth:1,tickColor:Ae,minorTickColor:Ae,gridLineColor:Ae,minorGridLineColor:Ae,minorGridLineDashStyle:"Dot",stackLabels:{style:no,crop:!0,allowOverlap:!1,enabled:!1,rotation:0,labelrank:99999,x:0,y:0},showLastLabel:!0},ig=(p,T,F)=>{switch(p){case"line":return gi;case"area":return Re(gi,zs(F));case"bar":return Re(gi,rg(F));case"column":return Re(gi,og(F));case"polar":return Re(gi,ng(T));case"arearange":return Re(gi,zs(F));default:return gi}},gi={chart:{type:"line",spacing:[],alignTicks:!1,polar:!1},legend:fi(),credits:{enabled:!1},exporting:{enabled:!0},plotOptions:{area:{className:"area-series--without-pointer-events",states:{inactive:{enabled:!0,opacity:.3}}},series:{dataLabels:{enabled:!1,crop:!1,style:_t(kt({},Se),{textOutline:"none"})},stickyTracking:!1,states:{select:{color:null,opacity:.3,borderColor:"transparent"}}}},xAxis:[],yAxis:[],series:[],boost:{useGPUTranslations:!0,usePreAllocated:!0}},zs=p=>({plotOptions:{area:kt({},p&&{lineColor:"#ffffff"}),series:kt({},p&&{stacking:p})}}),og=p=>({plotOptions:{column:kt({groupPadding:.1,pointPadding:.01},p&&{borderWidth:0}),series:kt({},p&&{stacking:p})}}),rg=p=>({plotOptions:{bar:kt({groupPadding:.1,pointPadding:.01},p&&{borderWidth:0}),series:kt({},p&&{stacking:p})}});function ng(p){return{plotOptions:{series:_t(kt({},p!=="line"&&{stacking:"normal"}),{fillOpacity:1})}}}const lh={enabled:!0,showCategory:!0,showValue:!0,showPercentage:!0,showPercentDecimals:!1},hh="regular",ch="regular",ph="regular",sg=p=>p!=="regular",ag=()=>({allowPointSelect:!1,cursor:"pointer",showInLegend:!0,dataLabels:{enabled:!1,funnelMinimumFontSizeToTextLabel:8,align:"center",style:Se},reversed:!0,neckWidth:dg,neckHeight:0,width:dh}),lg=p=>{const{enabled:T,showCategory:F,showValue:K,showPercentage:tt}=p;return _t(kt({},Le(p)),{enabled:T&&[F,K,tt].find(Boolean)!==void 0})},hg=(p,T)=>T.showCategory?p.point.name||p.series.name:"",cg=(p,T,F)=>{if(!T.showValue)return"";const K=Ce(F,p.y);return T.showValue&&T.showCategory?`<br />${K}`:K},pg=(p,T)=>{var tt,it;if(!T.showPercentage)return"";const F=((it=(tt=p.point)==null?void 0:tt.custom)==null?void 0:it.number1)||0,K=T.showPercentDecimals?F.toFixed(1):`${Math.round(F)}`;return` <b>${_o(K)}</b>`},dh=66.6,dg=15,ug=p=>dh,fg={wide:60,regular:30,narrow:15},gg=(p,T)=>Math.round(wf(p,fg[T])),mg=p=>p==="pinched"?30:0,uh=(p,T)=>{var pt;const{funnelType:F=ch,funnelSize:K=hh,funnelDirection:tt=ph,seriesLabels:it=lh}=p,rt=he((pt=T.y[0])==null?void 0:pt.numberFormatConfig),st=ug(),ht={dataLabels:_t(kt({},lg(it)),{formatter:function(){var G,B;const ft=hg(this,it),_=cg(this,it,rt),et=pg(this,it);return`${(G=it==null?void 0:it.prefix)!=null?G:""}${ft}${_}${et}${(B=it==null?void 0:it.suffix)!=null?B:""}`}}),reversed:sg(tt),neckWidth:_o(gg(st,K)),neckHeight:_o(mg(F)),width:_o(st)};return{funnel:Rt.merge$1(ag(),ht),series:{}}},yg={enabled:!0,showCategory:!0,showValue:!0,percentageLabels:{enabled:!0,showDecimals:!1}},fh="classic",vg={classic:"0%",donut:"40%",ring:"80%"},bg=()=>({allowPointSelect:!1,showInLegend:!0,dataLabels:{enabled:!1,showPercentLabels:!1,showDecimals:!1,pieMinimumFontSizeToTextLabel:8,align:"center",style:Se},innerSize:"0%"}),xg=()=>({dataLabels:{enabled:!1}}),gh=({pieType:p=fh,seriesLabels:T=yg,chartDataOptions:F,themeSettings:K,semiCircle:tt})=>{var st,ht,ct,pt,ft;const it=bg(),rt=xg();if(it.innerSize=vg[p],K&&(it.dataLabels.style={color:K.chart.textColor,fontFamily:K.typography.fontFamily,textOutline:"none"}),T.enabled){const _=he((st=F.y[0])==null?void 0:st.numberFormatConfig),et=T.enabled&&(T.showCategory||T.showValue),G=Le(T);it.dataLabels=_t(kt(kt({},it.dataLabels),G),{enabled:et,style:kt(kt({},it.dataLabels.style),G.style),formatter:function(){var U,$;const B=this.point.name||this.series.name,X=this.y;return"<div>"+((U=T.prefix)!=null?U:"")+(T.showCategory?B:"")+(T.showCategory&&T.showValue?"<br />":"")+(T.showValue?Ce(_,X):"")+(($=T.suffix)!=null?$:"")+"</div>"},showPercentLabels:(ct=(ht=T==null?void 0:T.percentageLabels)==null?void 0:ht.enabled)!=null?ct:!1,showDecimals:(ft=(pt=T==null?void 0:T.percentageLabels)==null?void 0:pt.showDecimals)!=null?ft:!1})}return rt.dataLabels&&(rt.dataLabels.enabled=T.enabled),tt&&(it.startAngle=-90,it.endAngle=90,it.center=["50%","75%"]),{pie:it,series:rt}};function En(){}function ui(p,T){this.__wrapped__=p,this.__actions__=[],this.__chain__=!!T,this.__index__=0,this.__values__=void 0}ui.prototype=Rt.baseCreate(En.prototype);ui.prototype.constructor=ui;var Gr=Rt.WeakMap&&new Rt.WeakMap;function mh(){}var On=Gr?function(p){return Gr.get(p)}:mh,Fs={},Cg=Object.prototype,Sg=Cg.hasOwnProperty;function No(p){for(var T=p.name+"",F=Fs[T],K=Sg.call(Fs,T)?F.length:0;K--;){var tt=F[K],it=tt.func;if(it==null||it==p)return tt.name}return T}var wg=4294967295;function Li(p){this.__wrapped__=p,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=wg,this.__views__=[]}Li.prototype=Rt.baseCreate(En.prototype);Li.prototype.constructor=Li;function Mg(p){if(p instanceof Li)return p.clone();var T=new ui(p.__wrapped__,p.__chain__);return T.__actions__=Rt.copyArray(p.__actions__),T.__index__=p.__index__,T.__values__=p.__values__,T}var Ag=Object.prototype,Tg=Ag.hasOwnProperty;function $o(p){if(Rt.isObjectLike(p)&&!Rt.isArray(p)&&!(p instanceof Li)){if(p instanceof ui)return p;if(Tg.call(p,"__wrapped__"))return Mg(p)}return new ui(p)}$o.prototype=En.prototype;$o.prototype.constructor=$o;function Wr(p){var T=No(p),F=$o[T];if(typeof F!="function"||!(T in Li.prototype))return!1;if(p===F)return!0;var K=On(F);return!!K&&p===K[0]}var kg="Expected a function",Pg=8,Lg=32,Eg=128,Og=256;function Dg(p){return Rt.flatRest(function(T){for(var F=T.length,K=F,tt=ui.prototype.thru;K--;){var it=T[K];if(typeof it!="function")throw new TypeError(kg);if(tt&&!rt&&No(it)=="wrapper")var rt=new ui([],!0)}for(K=rt?K:F;++K<F;){it=T[K];var st=No(it),ht=st=="wrapper"?On(it):void 0;ht&&Wr(ht[0])&&ht[1]==(Eg|Pg|Lg|Og)&&!ht[4].length&&ht[9]==1?rt=rt[No(ht[0])].apply(rt,ht[3]):rt=it.length==1&&Wr(it)?rt[st]():rt.thru(it)}return function(){var ct=arguments,pt=ct[0];if(rt&&ct.length==1&&Rt.isArray(pt))return rt.plant(pt).value();for(var ft=0,_=F?T[ft].apply(this,ct):pt;++ft<F;)_=T[ft].call(this,_);return _}})}var nr=Dg();const yh=p=>p.compareValues?p.compareValues[0]:NaN,Dn=p=>{if(p!==void 0){switch(p){case Rt.DateLevels.Years:return"yyyy";case Rt.DateLevels.Quarters:return"yyyy Q";case Rt.DateLevels.Months:return"MM/yyyy";case Rt.DateLevels.Weeks:return"ww yyyy";case Rt.DateLevels.Days:return"M/d/yy";case Rt.DateLevels.AggHours:return"HH";case Rt.DateLevels.Hours:return"M/d/yy HH";case Rt.DateLevels.AggMinutesRoundTo30:return"HH:mm";case Rt.DateLevels.MinutesRoundTo30:return"HH:mm";case Rt.DateLevels.AggMinutesRoundTo15:return"HH:mm";case Rt.DateLevels.MinutesRoundTo15:return"HH:mm";case Rt.DateLevels.AggMinutesRoundTo1:return"HH:mm";case Rt.DateLevels.Minutes:return"HH:mm";case Rt.DateLevels.Seconds:return"HH:mm:ss"}return console.warn("Unsupported level"),"M/d/yy HH"}};var jn=(p=>(p.MONTH="month",p.QUARTER="quarter",p.HALF_YEAR="half-year",p.YEAR="year",p))(jn||{});const jg={VIEW_TYPE:jn.MONTH,SUBTYPE:"calendar-heatmap/split",NO_DATA_COLOR:"#f5f5f5",BORDER_WIDTH:0,MIN_CELL_SIZE_FOR_LABELS:20,TOTAL_CALENDAR_CELLS:42,DAYS_IN_WEEK:7,MAX_CALENDAR_ROWS:6,SHOW_CELL_LABEL:!0,SHOW_DAY_LABEL:!0,SHOW_MONTH_LABEL:!0,SHORT_MONTH_NAME_SPLIT_LAYOUT_WIDTH_THRESHOLD:120,SHORT_MONTH_NAME_CONTINUES_LAYOUT_WIDTH_THRESHOLD:70,SHOW_DAY_LABEL_CHART_SIZE_THRESHOLD:120,SHOW_CELL_LABEL_SIZE_THRESHOLD:16,WEEKEND_ENABLED:!1,WEEKEND_DAYS:["saturday","sunday"],WEEKEND_CELL_COLOR:"#e6e6e6",WEEKEND_HIDE_VALUES:!0,START_OF_WEEK:"sunday",SHOW_PAGINATION:!0},Ig={MIN_COLOR_BRIGHTNESS_PERCENT:.5,MAX_COLOR_BRIGHTNESS_PERCENT:-.3,TOOLTIP_COLOR_BRIGHTNESS_PERCENT:-.2,TOOLTIP_BORDER_COLOR:"#c0c0c0"},_g={GAP_WIDTH:30,GAP_HEIGHT:10,MARGINS:{TOP:20,RIGHT:40,BOTTOM:20,LEFT:40},COLUMNS:7,ROWS:7,MIN_CELL_SIZE:4,MAX_CELL_SIZE:80,TITLE_HEIGHT:20,PAGINATION_HEIGHT:45,PAGINATION_BUTTON_SIZE:{WIDTH:30,HEIGHT:30},MIN_TOOLTIP_WIDTH:110},Ng={FONT_SIZE_RATIO:.3,MIN_FONT_SIZE:10,MAX_FONT_SIZE:13,LABEL_Y_OFFSET_RATIO:.08,AXIS_LABEL_Y_RATIO:.3,AXIS_OFFSET_RATIO:.4,MIN_AXIS_FONT_SIZE:12},Bg="calendar-heatmap",Rg="MMMM",zg="MMM",Fg="EEEEE",Gg="EEE",Wg="2023-01-01T00:00:00Z";var Hr={exports:{}};/*! For license information please see index.js.LICENSE.txt */(function(p,T){(function(F,K){p.exports=K()})(self,()=>(()=>{var F={2:function(it,rt,st){var ht=this&&this.__importDefault||function(pt){return pt&&pt.__esModule?pt:{default:pt}};Object.defineProperty(rt,"__esModule",{value:!0}),rt.default=void 0;var ct=st(2807);Object.defineProperty(rt,"default",{enumerable:!0,get:function(){return ht(ct).default}})},50:function(it,rt,st){var ht=this&&this.__importDefault||function(pt){return pt&&pt.__esModule?pt:{default:pt}};Object.defineProperty(rt,"__esModule",{value:!0});var ct=ht(st(4501));rt.default=function(pt){var ft,_,et=pt.objectEach,G=pt.pick,B="legend-hovered",X=document.documentElement.ontouchstart!==void 0;function U(){clearTimeout(ft),clearTimeout(_),ft=null,_=null}pt.wrap(pt.Legend.prototype,"renderItem",function($,Z){$.call(this,Z);var V=Z.chart?Z.chart:Z.series.chart,z=!!Z.series,I=V.options.$familyType==="pie",E=z?["graphic"]:["group","markerGroup"],M=Z.legendItem.group.element,P=z?Z.series.points:this.chart.series;function y(w){var x=[];return(w.yAxis||[]).forEach(function(c){c.options.stackLabels&&!c.options.stackLabels.allowOverlap&&et(c.stacking.stacks,function(g){et(g,function(r){r&&r.label&&(r.label.isStackLabel=!0),x.push(r.label)})})}),x}function h(){if(_=null,!ft){var w=S(Z),x={totalsRank:Number.MIN_SAFE_INTEGER};v(Z),m(w,x)}}function f(){ft=null,_||function(w){var x=[],c=[],g={totalsRank:Number.MIN_SAFE_INTEGER};(V.series||[]).forEach(function(a){x=x.concat(S(a)),a!==w&&a.visible&&v(a)});var r=y(V);m(c=c.concat(x,r),g)}(Z)}function m(w,x){V.hideOverlappingLabels(w,x)}function u(w){(V.series||[]).forEach(function(x){x===w&&(x.dataLabelCollections||["dataLabel"]).forEach(function(c){x.points.forEach(function(g){var r=g[String(c)];r&&r.visibility!=="hidden"&&(r.prevOpacity=r.opacity,r.opacitySetter(0,"opacity",r.element),r.prevVisibility=r.visibility,r.visibilitySetter("hidden","visibility",r.element))})})})}function v(w){var x=w.xAxis,c=x==null?void 0:x.min,g=x==null?void 0:x.max;(V.series||[]).forEach(function(r){r===w&&(r.dataLabelCollections||["dataLabel"]).forEach(function(a){r.points.forEach(function(t){var i=t[String(a)];x&&(t.x<c||t.x>g)||i&&i.visibility==="hidden"&&(i.prevOpacity=i.opacity,i.opacitySetter(1,"opacity",i.element),i.prevVisibility=i.visibility,i.visibilitySetter("visible","visibility",i.element))})})})}function S(w){var x=[],c=w.options.dataLabels,g=w.dataLabelCollections||["dataLabel","dataLabelsGroup"];return c&&(c.enabled||w._hasPointLabels)&&!c.allowOverlap&&w.visible&&g.forEach(function(r){w.points&&w.points.forEach(function(a){a[r]&&(a[r].labelrank=G(a.labelrank,a.shapeArgs&&a.shapeArgs.height),x.push(a[r]))})}),x}(0,ct.default)(P)&&(P=[]),X||(M.onmouseover=function(){if(Z.visible){U();var w=z&&Z.series.halo;w&&w.attr({d:"M 0 0"}),P.forEach(function(x){x!==Z&&x.visible&&(E.forEach(function(c){x[c]&&x[c].animate({opacity:.15},{duration:400})}),u(x))}),E.forEach(function(x){Z[x]&&Z[x].addClass(B)}),I||(_=setTimeout(h,100))}},M.onmouseout=function(){Z.visible&&(U(),P.forEach(function(w){w.visible&&w!==Z&&E.forEach(function(x){w[x]&&w[x].animate({opacity:1},{duration:400})})}),E.forEach(function(w){Z[w]&&Z[w].removeClass(B)}),I||(ft=setTimeout(f,100)))},M.addEventListener("click",function(){U();var w=[];P.forEach(function(c){c.visible?(E.forEach(function(g){c[g]&&c[g].animate({opacity:1},{duration:50})}),w=w.concat(S(c))):(E.forEach(function(g){c[g]&&c[g].animate({opacity:.25},{duration:150})}),u(c))});var x=y(V);m(w=w.concat(x))}))})}},123:(it,rt,st)=>{st.d(rt,{A:()=>z});var ht=st(405);const ct=st(9600).A["__core-js_shared__"];var pt,ft=(pt=/[^.]+$/.exec(ct&&ct.keys&&ct.keys.IE_PROTO||""))?"Symbol(src)_1."+pt:"",_=st(7942),et=st(1548),G=/^\[object .+?Constructor\]$/,B=Function.prototype,X=Object.prototype,U=B.toString,$=X.hasOwnProperty,Z=RegExp("^"+U.call($).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const V=function(I){return!(!(0,_.A)(I)||(E=I,ft&&ft in E))&&((0,ht.A)(I)?Z:G).test((0,et.A)(I));var E},z=function(I,E){var M=function(P,y){return P==null?void 0:P[y]}(I,E);return V(M)?M:void 0}},362:function(it,rt,st){var ht=this&&this.__importDefault||function(pt){return pt&&pt.__esModule?pt:{default:pt}};Object.defineProperty(rt,"__esModule",{value:!0}),rt.default=void 0;var ct=st(807);Object.defineProperty(rt,"default",{enumerable:!0,get:function(){return ht(ct).default}})},368:function(it,rt,st){var ht=this&&this.__assign||function(){return ht=Object.assign||function(U){for(var $,Z=1,V=arguments.length;Z<V;Z++)for(var z in $=arguments[Z])Object.prototype.hasOwnProperty.call($,z)&&(U[z]=$[z]);return U},ht.apply(this,arguments)},ct=this&&this.__importDefault||function(U){return U&&U.__esModule?U:{default:U}};Object.defineProperty(rt,"__esModule",{value:!0});var pt=ct(st(605)),ft=ct(st(710)),_=ct(st(9681)),et=ct(st(9170)),G=ct(st(6545)),B={enabled:!1,text:"Sisense",href:"http://www.sisense.com",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:pt.default.textColor,fontSize:"9px"}},X=ht({boost:{allowForce:!0,debug:{showSkipSummary:!0,timeBufferCopy:!0,timeKDTree:!0,timeRendering:!0,timeSeriesProcessing:!0,timeSetup:!0},enabled:!0,seriesThreshold:null,useGPUTranslations:!0},chart:{spacing:[10,10,10,10],backgroundColor:"rgba(222,222,222,0)"},credits:B,drilldown:{breadcrumbs:{buttonTheme:{fill:"#ffcb05","stroke-width":4,"stroke-linejoin":"round",stroke:"#ffcb05",padding:5,states:{hover:{fill:"#f2b900",stroke:"#f2b900"}},style:{color:"#3a4356"}},format:"Back",floating:!0,position:{align:"right"},showFullPath:!1}},exporting:{enabled:!1},global:{useUTC:!1},lang:{contextButtonTitle:"Chart context menu",decimalPoint:".",downloadJPEG:"Download JPEG image",downloadPDF:"Download PDF document",downloadPNG:"Download PNG image",downloadSVG:"Download SVG vector image",drillUpText:"Back",invalidDate:"",loading:"Loading...",months:["January","February","March","April","May","June","July","August","September","October","November","December"],noData:"No data to display",numericSymbolMagnitude:1e3,numericSymbols:["k","M","G","T","P","E"],printChart:"Print chart",resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],shortWeekdays:void 0,thousandsSep:" ",weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},legend:_.default,navigator:{yAxis:{gridLineWidth:0},xAxis:{gridLineWidth:0}},plotOptions:et.default,title:{margin:0},tooltip:ft.default},G.default);rt.default=X},405:(it,rt,st)=>{st.d(rt,{A:()=>pt});var ht=st(4044),ct=st(7942);const pt=function(ft){if(!(0,ct.A)(ft))return!1;var _=(0,ht.A)(ft);return _=="[object Function]"||_=="[object GeneratorFunction]"||_=="[object AsyncFunction]"||_=="[object Proxy]"}},605:(it,rt)=>{Object.defineProperty(rt,"__esModule",{value:!0}),rt.default={fontFamily:"Open Sans",textColor:"#5B6372",labelColor:"#5B6372",legendColor:"#5B6372",legendNavigationColor:"#5B6372",legendNavigationSecondaryColor:"#9EA2AB"}},622:function(it,rt,st){var ht=this&&this.__importDefault||function(pt){return pt&&pt.__esModule?pt:{default:pt}};Object.defineProperty(rt,"__esModule",{value:!0}),rt.arrayMax=rt.arrayMin=rt.correctFloat=rt.radiansToDegrees=rt.defined=rt.wrap=void 0;var ct=ht(st(8552));rt.wrap=function(pt,ft,_){var et=pt[ft];pt[ft]=function(){var G=Array.prototype.slice.call(arguments);return G.unshift(et),_.apply(this,G)}},rt.defined=function(pt,ft){return ft===void 0||ft==="null"||ft===""?pt!=null:(0,ct.default)(pt,ft)!==void 0},rt.radiansToDegrees=function(pt){return 180*pt/Math.PI},rt.correctFloat=function(pt){return parseFloat(pt.toPrecision(14))},rt.arrayMin=function(pt){for(var ft=pt.length,_=pt[0];ft--;)pt[ft]<_&&(_=pt[ft]);return _},rt.arrayMax=function(pt){for(var ft=pt.length,_=pt[0];ft--;)pt[ft]>_&&(_=pt[ft]);return _}},710:function(it,rt,st){var ht=this&&this.__importDefault||function(pt){return pt&&pt.__esModule?pt:{default:pt}};Object.defineProperty(rt,"__esModule",{value:!0});var ct=ht(st(2805));rt.default=ct.default},807:function(it,rt,st){var ht=this&&this.__importDefault||function(ft){return ft&&ft.__esModule?ft:{default:ft}};Object.defineProperty(rt,"__esModule",{value:!0});var ct=ht(st(5860)),pt=ht(st(2382));rt.default=function(ft){var _=ft.wrap;function et(G){this.hasCartesianSeries&&this.series.forEach(function(B){B.options&&B.options.stacking==="percent"&&(B.userOptions.data.forEach(function(X){X&&(X.originalY=X.y,X.y=Math.abs(X.y))}),B.yData=B.yData.map(Math.abs))}),G.apply(this,[].slice.call(arguments,1))}(0,pt.default)(ft),_(ft.Chart.prototype,"render",et),_(ft.Chart.prototype,"redraw",et),ft.Axis.prototype.renderUnsquish=function(){var G,B,X,U,$,Z=this.chart,V=Z.renderer,z=this.tickPositions,I=this.ticks,E=this.options.labels,M=E.style,P=this.horiz,y=this.getSlotWidth(),h=Math.max(1,Math.round(y-2*E.padding)),f={},m=this.labelMetrics(),u=M.textOverflow,v=0;if((0,ct.default)(E.rotation)||(f.rotation=E.rotation||0),z.forEach(function(S){var w=I[S];w.movedLabel&&w.replaceMovedLabel(),w&&w.label&&w.label.textPxLength>v&&(v=w.label.textPxLength)}),this.maxLabelLength=v,this.autoRotation)v>h&&v>m.h?f.rotation=this.labelRotation:this.labelRotation=0;else if(y&&(G=h,!u))for(B="clip",U=z.length;!P&&U--;)$=z[U],(X=I[$].label)&&(X.styles&&X.styles.textOverflow==="ellipsis"?X.css({textOverflow:"clip"}):X.textPxLength>y&&X.css({width:y+"px"}),X.getBBox().height>this.len/z.length-(m.h-m.f)&&(X.specificTextOverflow="ellipsis"));f.rotation&&(G=v>.33*Z.chartHeight?.28*Z.chartHeight:v,u||(B="ellipsis")),this.labelAlign=E.align||this.autoLabelAlign(this.labelRotation),this.labelAlign&&(f.align=this.labelAlign),z.forEach(function(S){var w=I[S],x=w&&w.label,c=M.width,g={};x&&(x.attr(f),w.shortenLabel?w.shortenLabel():G&&!c&&M.whiteSpace!=="nowrap"&&(G<x.textPxLength||x.element.tagName==="SPAN")?(g.width=G+"px",u||(g.textOverflow=x.specificTextOverflow||B),x.css(g)):x.styles&&x.styles.width&&!g.width&&!c&&x.css({width:null}),delete x.specificTextOverflow,w.rotation=f.rotation)},this),this.tickRotCorr=V.rotCorr(m.b,this.labelRotation||0,this.side!==0)}}},938:function(it,rt,st){var ht=this&&this.__createBinding||(Object.create?function(_,et,G,B){B===void 0&&(B=G);var X=Object.getOwnPropertyDescriptor(et,G);X&&!("get"in X?!et.__esModule:X.writable||X.configurable)||(X={enumerable:!0,get:function(){return et[G]}}),Object.defineProperty(_,B,X)}:function(_,et,G,B){B===void 0&&(B=G),_[B]=et[G]}),ct=this&&this.__exportStar||function(_,et){for(var G in _)G==="default"||Object.prototype.hasOwnProperty.call(et,G)||ht(et,_,G)},pt=this&&this.__importDefault||function(_){return _&&_.__esModule?_:{default:_}};Object.defineProperty(rt,"__esModule",{value:!0}),rt.default=void 0,ct(st(7783),rt);var ft=st(7783);Object.defineProperty(rt,"default",{enumerable:!0,get:function(){return pt(ft).default}})},1039:(it,rt,st)=>{var ht,ct,pt;pt=function(ft){var _=ft?ft._modules:{};function et(G,B,X,U){G.hasOwnProperty(B)||(G[B]=U.apply(null,X),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:B,module:G[B]}})))}et(_,"Core/Math3D.js",[_["Core/Globals.js"],_["Core/Utilities.js"]],function(G,B){var X=G.deg2rad,U=B.pick;function $(z,I,E,M){var P=I.options.chart.options3d,y=U(M,!!E&&I.inverted),h={x:I.plotWidth/2,y:I.plotHeight/2,z:P.depth/2,vd:U(P.depth,1)*U(P.viewDistance,0)},f=I.scale3d||1,m=X*P.beta*(y?-1:1),u=X*P.alpha*(y?-1:1),v={cosA:Math.cos(u),cosB:Math.cos(-m),sinA:Math.sin(u),sinB:Math.sin(-m)};return E||(h.x+=I.plotLeft,h.y+=I.plotTop),z.map(function(S){var w=function(c,g,r,a){return{x:a.cosB*c-a.sinB*r,y:-a.sinA*a.sinB*c+a.cosA*g-a.cosB*a.sinA*r,z:a.cosA*a.sinB*c+a.sinA*g+a.cosA*a.cosB*r}}((y?S.y:S.x)-h.x,(y?S.x:S.y)-h.y,(S.z||0)-h.z,v),x=Z(w,h,h.vd);return x.x=x.x*f+h.x,x.y=x.y*f+h.y,x.z=w.z*f+h.z,{x:y?x.y:x.x,y:y?x.x:x.y,z:x.z}})}function Z(z,I,E){var M=E>0&&E<Number.POSITIVE_INFINITY?E/(z.z+I.z+E):1;return{x:z.x*M,y:z.y*M}}function V(z){var I,E,M=0;for(I=0;I<z.length;I++)E=(I+1)%z.length,M+=z[I].x*z[E].y-z[E].x*z[I].y;return M/2}return{perspective:$,perspective3D:Z,pointCameraDistance:function(z,I){var E=I.options.chart.options3d,M=I.plotWidth/2,P=I.plotHeight/2,y=U(E.depth,1)*U(E.viewDistance,0)+E.depth;return Math.sqrt(Math.pow(M-U(z.plotX,z.x),2)+Math.pow(P-U(z.plotY,z.y),2)+Math.pow(y-U(z.plotZ,z.z),2))},shapeArea:V,shapeArea3D:function(z,I,E){return V($(z,I,E))}}}),et(_,"Core/Renderer/SVG/SVGElement3D.js",[_["Core/Color/Color.js"],_["Core/Renderer/SVG/SVGElement.js"],_["Core/Utilities.js"]],function(G,B,X){var U=G.parse,$=X.defined,Z=X.merge,V=X.objectEach,z=X.pick,I={};return I.base={initArgs:function(E){var M=this,P=M.renderer,y=P[M.pathType+"Path"](E),h=y.zIndexes;M.parts.forEach(function(f){var m={class:"highcharts-3d-"+f,zIndex:h[f]||0};P.styledMode&&(f==="top"?m.filter="url(#highcharts-brighter)":f==="side"&&(m.filter="url(#highcharts-darker)")),M[f]=P.path(y[f]).attr(m).add(M)}),M.attr({"stroke-linejoin":"round",zIndex:h.group}),M.originalDestroy=M.destroy,M.destroy=M.destroyParts,M.forcedSides=y.forcedSides},singleSetterForParts:function(E,M,P,y,h,f){var m={},u=[null,null,y||"attr",h,f],v=P&&P.zIndexes;return P?(v&&v.group&&this.attr({zIndex:v.group}),V(P,function(S,w){m[w]={},m[w][E]=S,v&&(m[w].zIndex=P.zIndexes[w]||0)}),u[1]=m):(m[E]=M,u[0]=m),this.processParts.apply(this,u)},processParts:function(E,M,P,y,h){var f=this;return f.parts.forEach(function(m){M&&(E=z(M[m],!1)),E!==!1&&f[m][P](E,y,h)}),f},destroyParts:function(){return this.processParts(null,null,"destroy"),this.originalDestroy()}},I.cuboid=Z(I.base,{parts:["front","top","side"],pathType:"cuboid",attr:function(E,M,P,y){if(typeof E=="string"&&M!==void 0){var h=E;(E={})[h]=M}return E.shapeArgs||$(E.x)?this.singleSetterForParts("d",null,this.renderer[this.pathType+"Path"](E.shapeArgs||E)):B.prototype.attr.call(this,E,void 0,P,y)},animate:function(E,M,P){if($(E.x)&&$(E.y)){var y=this.renderer[this.pathType+"Path"](E),h=y.forcedSides;this.singleSetterForParts("d",null,y,"animate",M,P),this.attr({zIndex:y.zIndexes.group}),h!==this.forcedSides&&(this.forcedSides=h,this.renderer.styledMode||I.cuboid.fillSetter.call(this,this.fill))}else B.prototype.animate.call(this,E,M,P);return this},fillSetter:function(E){var M=this;return M.forcedSides=M.forcedSides||[],M.singleSetterForParts("fill",null,{front:E,top:U(E).brighten(M.forcedSides.indexOf("top")>=0?0:.1).get(),side:U(E).brighten(M.forcedSides.indexOf("side")>=0?0:-.1).get()}),M.color=M.fill=E,M}}),I}),et(_,"Core/Renderer/SVG/SVGRenderer3D.js",[_["Core/Animation/AnimationUtilities.js"],_["Core/Color/Color.js"],_["Core/Globals.js"],_["Core/Math3D.js"],_["Core/Renderer/SVG/SVGElement.js"],_["Core/Renderer/SVG/SVGElement3D.js"],_["Core/Renderer/SVG/SVGRenderer.js"],_["Core/Utilities.js"]],function(G,B,X,U,$,Z,V,z){var I,E=this&&this.__extends||(I=function(t,i){return I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,e){o.__proto__=e}||function(o,e){for(var s in e)e.hasOwnProperty(s)&&(o[s]=e[s])},I(t,i)},function(t,i){function o(){this.constructor=t}I(t,i),t.prototype=i===null?Object.create(i):(o.prototype=i.prototype,new o)}),M=G.animObject,P=B.parse,y=X.charts,h=X.deg2rad,f=U.perspective,m=U.shapeArea,u=z.defined,v=z.extend,S=z.merge,w=z.pick,x=Math.cos,c=Math.sin,g=Math.PI,r=4*(Math.sqrt(2)-1)/3/(g/2),a=function(t){function i(){return t!==null&&t.apply(this,arguments)||this}return E(i,t),i.compose=function(o){var e=o.prototype,s=i.prototype;e.elements3d=Z,e.arc3d=s.arc3d,e.arc3dPath=s.arc3dPath,e.cuboid=s.cuboid,e.cuboidPath=s.cuboidPath,e.element3d=s.element3d,e.face3d=s.face3d,e.polyhedron=s.polyhedron,e.toLinePath=s.toLinePath,e.toLineSegments=s.toLineSegments},i.curveTo=function(o,e,s,n,l,b,k,D){var d=[],C=b-l;return b>l&&b-l>Math.PI/2+1e-4?d=(d=d.concat(this.curveTo(o,e,s,n,l,l+Math.PI/2,k,D))).concat(this.curveTo(o,e,s,n,l+Math.PI/2,b,k,D)):b<l&&l-b>Math.PI/2+1e-4?d=(d=d.concat(this.curveTo(o,e,s,n,l,l-Math.PI/2,k,D))).concat(this.curveTo(o,e,s,n,l-Math.PI/2,b,k,D)):[["C",o+s*Math.cos(l)-s*r*C*Math.sin(l)+k,e+n*Math.sin(l)+n*r*C*Math.cos(l)+D,o+s*Math.cos(b)+s*r*C*Math.sin(b)+k,e+n*Math.sin(b)-n*r*C*Math.cos(b)+D,o+s*Math.cos(b)+k,e+n*Math.sin(b)+D]]},i.prototype.toLinePath=function(o,e){var s=[];return o.forEach(function(n){s.push(["L",n.x,n.y])}),o.length&&(s[0][0]="M",e&&s.push(["Z"])),s},i.prototype.toLineSegments=function(o){var e=[],s=!0;return o.forEach(function(n){e.push(s?["M",n.x,n.y]:["L",n.x,n.y]),s=!s}),e},i.prototype.face3d=function(o){var e=this,s=this.createElement("path");return s.vertexes=[],s.insidePlotArea=!1,s.enabled=!0,s.attr=function(n){if(typeof n=="object"&&(u(n.enabled)||u(n.vertexes)||u(n.insidePlotArea))){this.enabled=w(n.enabled,this.enabled),this.vertexes=w(n.vertexes,this.vertexes),this.insidePlotArea=w(n.insidePlotArea,this.insidePlotArea),delete n.enabled,delete n.vertexes,delete n.insidePlotArea;var l=y[e.chartIndex],b=f(this.vertexes,l,this.insidePlotArea),k=e.toLinePath(b,!0),D=m(b);n.d=k,n.visibility=this.enabled&&D>0?"inherit":"hidden"}return $.prototype.attr.apply(this,arguments)},s.animate=function(n){if(typeof n=="object"&&(u(n.enabled)||u(n.vertexes)||u(n.insidePlotArea))){this.enabled=w(n.enabled,this.enabled),this.vertexes=w(n.vertexes,this.vertexes),this.insidePlotArea=w(n.insidePlotArea,this.insidePlotArea),delete n.enabled,delete n.vertexes,delete n.insidePlotArea;var l=y[e.chartIndex],b=f(this.vertexes,l,this.insidePlotArea),k=e.toLinePath(b,!0),D=m(b),d=this.enabled&&D>0?"visible":"hidden";n.d=k,this.attr("visibility",d)}return $.prototype.animate.apply(this,arguments)},s.attr(o)},i.prototype.polyhedron=function(o){var e=this,s=this.g(),n=s.destroy;return this.styledMode||s.attr({"stroke-linejoin":"round"}),s.faces=[],s.destroy=function(){for(var l=0;l<s.faces.length;l++)s.faces[l].destroy();return n.call(this)},s.attr=function(l,b,k,D){if(typeof l=="object"&&u(l.faces)){for(;s.faces.length>l.faces.length;)s.faces.pop().destroy();for(;s.faces.length<l.faces.length;)s.faces.push(e.face3d().add(s));for(var d=0;d<l.faces.length;d++)e.styledMode&&delete l.faces[d].fill,s.faces[d].attr(l.faces[d],null,k,D);delete l.faces}return $.prototype.attr.apply(this,arguments)},s.animate=function(l,b,k){if(l&&l.faces){for(;s.faces.length>l.faces.length;)s.faces.pop().destroy();for(;s.faces.length<l.faces.length;)s.faces.push(e.face3d().add(s));for(var D=0;D<l.faces.length;D++)s.faces[D].animate(l.faces[D],b,k);delete l.faces}return $.prototype.animate.apply(this,arguments)},s.attr(o)},i.prototype.element3d=function(o,e){var s=this.g();return v(s,this.elements3d[o]),s.initArgs(e),s},i.prototype.cuboid=function(o){return this.element3d("cuboid",o)},i.prototype.cuboidPath=function(o){var e,s,n,l,b,k,D,d,C=o.x||0,A=o.y||0,N=o.z||0,R=o.height||0,L=o.width||0,O=o.depth||0,j=y[this.chartIndex],Y=j.options.chart.options3d.alpha,H=1e6,W=0,q=[{x:C,y:A,z:N},{x:C+L,y:A,z:N},{x:C+L,y:A+R,z:N},{x:C,y:A+R,z:N},{x:C,y:A+R,z:N+O},{x:C+L,y:A+R,z:N+O},{x:C+L,y:A,z:N+O},{x:C,y:A,z:N+O}],Q=[];function J(lt){return R===0&<>1&<<6?{x:q[lt].x,y:q[lt].y+10,z:q[lt].z}:q[0].x===q[7].x&<>=4?{x:q[lt].x+10,y:q[lt].y,z:q[lt].z}:O===0&<<2||lt>5?{x:q[lt].x,y:q[lt].y,z:q[lt].z+10}:q[lt]}function nt(lt){return q[lt]}return q=f(q,j,o.insidePlotArea),s=(e=(d=function(lt,gt,mt){var bt=[[],-1],yt=lt.map(nt),dt=gt.map(nt),ot=lt.map(J),at=gt.map(J);return m(yt)<0?bt=[yt,0]:m(dt)<0?bt=[dt,1]:mt&&(Q.push(mt),bt=m(ot)<0?[yt,0]:m(at)<0?[dt,1]:[yt,0]),bt})([3,2,1,0],[7,6,5,4],"front"))[0],b=e[1],n=(e=d([1,6,7,0],[4,5,2,3],"top"))[0],k=e[1],l=(e=d([1,2,5,6],[0,7,4,3],"side"))[0],(D=e[1])===1?W+=H*(j.plotWidth-C):D||(W+=H*C),W+=10*(!k||Y>=0&&Y<=180||Y<360&&Y>357.5?j.plotHeight-A:10+A),b===1?W+=100*N:b||(W+=100*(1e3-N)),{front:this.toLinePath(s,!0),top:this.toLinePath(n,!0),side:this.toLinePath(l,!0),zIndexes:{group:Math.round(W)},forcedSides:Q,isFront:b,isTop:k}},i.prototype.arc3d=function(o){var e=this.g(),s=e.renderer,n=["x","y","r","innerR","start","end","depth"];function l(b){var k,D=!1,d={};for(k in b=S(b))n.indexOf(k)!==-1&&(d[k]=b[k],delete b[k],D=!0);return!!D&&[d,b]}return(o=S(o)).alpha=(o.alpha||0)*h,o.beta=(o.beta||0)*h,e.top=s.path(),e.side1=s.path(),e.side2=s.path(),e.inn=s.path(),e.out=s.path(),e.onAdd=function(){var b=e.parentGroup,k=e.attr("class");e.top.add(e),["out","inn","side1","side2"].forEach(function(D){e[D].attr({class:k+" highcharts-3d-side"}).add(b)})},["addClass","removeClass"].forEach(function(b){e[b]=function(){var k=arguments;["top","out","inn","side1","side2"].forEach(function(D){e[D][b].apply(e[D],k)})}}),e.setPaths=function(b){var k=e.renderer.arc3dPath(b),D=100*k.zTop;e.attribs=b,e.top.attr({d:k.top,zIndex:k.zTop}),e.inn.attr({d:k.inn,zIndex:k.zInn}),e.out.attr({d:k.out,zIndex:k.zOut}),e.side1.attr({d:k.side1,zIndex:k.zSide1}),e.side2.attr({d:k.side2,zIndex:k.zSide2}),e.zIndex=D,e.attr({zIndex:D}),b.center&&(e.top.setRadialReference(b.center),delete b.center)},e.setPaths(o),e.fillSetter=function(b){var k=P(b).brighten(-.1).get();return this.fill=b,this.side1.attr({fill:k}),this.side2.attr({fill:k}),this.inn.attr({fill:k}),this.out.attr({fill:k}),this.top.attr({fill:b}),this},["opacity","translateX","translateY","visibility"].forEach(function(b){e[b+"Setter"]=function(k,D){e[D]=k,["out","inn","side1","side2","top"].forEach(function(d){e[d].attr(D,k)})}}),e.attr=function(b){var k,D;return typeof b=="object"&&(D=l(b))&&(k=D[0],arguments[0]=D[1],v(e.attribs,k),e.setPaths(e.attribs)),$.prototype.attr.apply(e,arguments)},e.animate=function(b,k,D){var d,C,A,N=this.attribs,R="data-"+Math.random().toString(26).substring(2,9);return delete b.center,delete b.z,delete b.alpha,delete b.beta,(A=M(w(k,this.renderer.globalAnimation))).duration&&(d=l(b),e[R]=0,b[R]=1,e[R+"Setter"]=X.noop,d&&(C=d[0],A.step=function(L,O){function j(Y){return N[Y]+(w(C[Y],N[Y])-N[Y])*O.pos}O.prop===R&&O.elem.setPaths(S(N,{x:j("x"),y:j("y"),r:j("r"),innerR:j("innerR"),start:j("start"),end:j("end"),depth:j("depth")}))}),k=A),$.prototype.animate.call(this,b,k,D)},e.destroy=function(){return this.top.destroy(),this.out.destroy(),this.inn.destroy(),this.side1.destroy(),this.side2.destroy(),$.prototype.destroy.call(this)},e.hide=function(){this.top.hide(),this.out.hide(),this.inn.hide(),this.side1.hide(),this.side2.hide()},e.show=function(b){this.top.show(b),this.out.show(b),this.inn.show(b),this.side1.show(b),this.side2.show(b)},e},i.prototype.arc3dPath=function(o){var e=o.x||0,s=o.y||0,n=o.start||0,l=(o.end||0)-1e-5,b=o.r||0,k=o.innerR||0,D=o.depth||0,d=o.alpha||0,C=o.beta||0,A=Math.cos(n),N=Math.sin(n),R=Math.cos(l),L=Math.sin(l),O=b*Math.cos(C),j=b*Math.cos(d),Y=k*Math.cos(C),H=k*Math.cos(d),W=D*Math.sin(C),q=D*Math.sin(d),Q=[["M",e+O*A,s+j*N]];(Q=Q.concat(i.curveTo(e,s,O,j,n,l,0,0))).push(["L",e+Y*R,s+H*L]),(Q=Q.concat(i.curveTo(e,s,Y,H,l,n,0,0))).push(["Z"]);var J=C>0?Math.PI/2:0,nt=d>0?0:Math.PI/2,lt=n>-J?n:l>-J?-J:n,gt=l<g-nt?l:n<g-nt?g-nt:l,mt=2*g-nt,bt=[["M",e+O*x(lt),s+j*c(lt)]];bt=bt.concat(i.curveTo(e,s,O,j,lt,gt,0,0)),l>mt&&n<mt?(bt.push(["L",e+O*x(gt)+W,s+j*c(gt)+q]),(bt=bt.concat(i.curveTo(e,s,O,j,gt,mt,W,q))).push(["L",e+O*x(mt),s+j*c(mt)]),(bt=bt.concat(i.curveTo(e,s,O,j,mt,l,0,0))).push(["L",e+O*x(l)+W,s+j*c(l)+q]),(bt=bt.concat(i.curveTo(e,s,O,j,l,mt,W,q))).push(["L",e+O*x(mt),s+j*c(mt)]),bt=bt.concat(i.curveTo(e,s,O,j,mt,gt,0,0))):l>g-nt&&n<g-nt&&(bt.push(["L",e+O*Math.cos(gt)+W,s+j*Math.sin(gt)+q]),(bt=bt.concat(i.curveTo(e,s,O,j,gt,l,W,q))).push(["L",e+O*Math.cos(l),s+j*Math.sin(l)]),bt=bt.concat(i.curveTo(e,s,O,j,l,gt,0,0))),bt.push(["L",e+O*Math.cos(gt)+W,s+j*Math.sin(gt)+q]),(bt=bt.concat(i.curveTo(e,s,O,j,gt,lt,W,q))).push(["Z"]);var yt=[["M",e+Y*A,s+H*N]];(yt=yt.concat(i.curveTo(e,s,Y,H,n,l,0,0))).push(["L",e+Y*Math.cos(l)+W,s+H*Math.sin(l)+q]),(yt=yt.concat(i.curveTo(e,s,Y,H,l,n,W,q))).push(["Z"]);var dt=[["M",e+O*A,s+j*N],["L",e+O*A+W,s+j*N+q],["L",e+Y*A+W,s+H*N+q],["L",e+Y*A,s+H*N],["Z"]],ot=[["M",e+O*R,s+j*L],["L",e+O*R+W,s+j*L+q],["L",e+Y*R+W,s+H*L+q],["L",e+Y*R,s+H*L],["Z"]],at=Math.atan2(q,-W),ut=Math.abs(l+at),vt=Math.abs(n+at),Ct=Math.abs((n+l)/2+at);function xt(Lt){return(Lt%=2*Math.PI)>Math.PI&&(Lt=2*Math.PI-Lt),Lt}ut=xt(ut),vt=xt(vt);var St=1e5,Mt=(Ct=xt(Ct))*St,wt=vt*St,Tt=ut*St;return{top:Q,zTop:Math.PI*St+1,out:bt,zOut:Math.max(Mt,wt,Tt),inn:yt,zInn:Math.max(Mt,wt,Tt),side1:dt,zSide1:.99*Tt,side2:ot,zSide2:.99*wt}},i}(V);return a}),et(_,"Core/Chart/Chart3D.js",[_["Core/Color/Color.js"],_["Core/Defaults.js"],_["Core/Math3D.js"],_["Core/Utilities.js"]],function(G,B,X,U){var $,Z=G.parse,V=B.defaultOptions,z=X.perspective,I=X.shapeArea3D,E=U.addEvent,M=U.isArray,P=U.merge,y=U.pick,h=U.wrap;return function(f){var m=function(){function o(e){this.frame3d=void 0,this.chart=e}return o.prototype.get3dFrame=function(){var e=this.chart,s=e.options.chart.options3d,n=s.frame,l=e.plotLeft,b=e.plotLeft+e.plotWidth,k=e.plotTop,D=e.plotTop+e.plotHeight,d=s.depth,C=function(ot){var at=I(ot,e);return at>.5?1:at<-.5?-1:0},A=C([{x:l,y:D,z:d},{x:b,y:D,z:d},{x:b,y:D,z:0},{x:l,y:D,z:0}]),N=C([{x:l,y:k,z:0},{x:b,y:k,z:0},{x:b,y:k,z:d},{x:l,y:k,z:d}]),R=C([{x:l,y:k,z:0},{x:l,y:k,z:d},{x:l,y:D,z:d},{x:l,y:D,z:0}]),L=C([{x:b,y:k,z:d},{x:b,y:k,z:0},{x:b,y:D,z:0},{x:b,y:D,z:d}]),O=C([{x:l,y:D,z:0},{x:b,y:D,z:0},{x:b,y:k,z:0},{x:l,y:k,z:0}]),j=C([{x:l,y:k,z:d},{x:b,y:k,z:d},{x:b,y:D,z:d},{x:l,y:D,z:d}]),Y=!1,H=!1,W=!1,q=!1;[].concat(e.xAxis,e.yAxis,e.zAxis).forEach(function(ot){ot&&(ot.horiz?ot.opposite?H=!0:Y=!0:ot.opposite?q=!0:W=!0)});var Q=function(ot,at,ut){for(var vt=["size","color","visible"],Ct={},xt=0;xt<vt.length;xt++)for(var St=vt[xt],Mt=0;Mt<ot.length;Mt++)if(typeof ot[Mt]=="object"){var wt=ot[Mt][St];if(wt!=null){Ct[St]=wt;break}}var Tt=ut;return Ct.visible===!0||Ct.visible===!1?Tt=Ct.visible:Ct.visible==="auto"&&(Tt=at>0),{size:y(Ct.size,1),color:y(Ct.color,"none"),frontFacing:at>0,visible:Tt}},J={axes:{},bottom:Q([n.bottom,n.top,n],A,Y),top:Q([n.top,n.bottom,n],N,H),left:Q([n.left,n.right,n.side,n],R,W),right:Q([n.right,n.left,n.side,n],L,q),back:Q([n.back,n.front,n],j,!0),front:Q([n.front,n.back,n],O,!1)};if(s.axisLabelPosition==="auto"){var nt=function(ot,at){return ot.visible!==at.visible||ot.visible&&at.visible&&ot.frontFacing!==at.frontFacing},lt=[];nt(J.left,J.front)&<.push({y:(k+D)/2,x:l,z:0,xDir:{x:1,y:0,z:0}}),nt(J.left,J.back)&<.push({y:(k+D)/2,x:l,z:d,xDir:{x:0,y:0,z:-1}}),nt(J.right,J.front)&<.push({y:(k+D)/2,x:b,z:0,xDir:{x:0,y:0,z:1}}),nt(J.right,J.back)&<.push({y:(k+D)/2,x:b,z:d,xDir:{x:-1,y:0,z:0}});var gt=[];nt(J.bottom,J.front)&>.push({x:(l+b)/2,y:D,z:0,xDir:{x:1,y:0,z:0}}),nt(J.bottom,J.back)&>.push({x:(l+b)/2,y:D,z:d,xDir:{x:-1,y:0,z:0}});var mt=[];nt(J.top,J.front)&&mt.push({x:(l+b)/2,y:k,z:0,xDir:{x:1,y:0,z:0}}),nt(J.top,J.back)&&mt.push({x:(l+b)/2,y:k,z:d,xDir:{x:-1,y:0,z:0}});var bt=[];nt(J.bottom,J.left)&&bt.push({z:(0+d)/2,y:D,x:l,xDir:{x:0,y:0,z:-1}}),nt(J.bottom,J.right)&&bt.push({z:(0+d)/2,y:D,x:b,xDir:{x:0,y:0,z:1}});var yt=[];nt(J.top,J.left)&&yt.push({z:(0+d)/2,y:k,x:l,xDir:{x:0,y:0,z:-1}}),nt(J.top,J.right)&&yt.push({z:(0+d)/2,y:k,x:b,xDir:{x:0,y:0,z:1}});var dt=function(ot,at,ut){if(ot.length===0)return null;if(ot.length===1)return ot[0];for(var vt=z(ot,e,!1),Ct=0,xt=1;xt<vt.length;xt++)(ut*vt[xt][at]>ut*vt[Ct][at]||ut*vt[xt][at]===ut*vt[Ct][at]&&vt[xt].z<vt[Ct].z)&&(Ct=xt);return ot[Ct]};J.axes={y:{left:dt(lt,"x",-1),right:dt(lt,"x",1)},x:{top:dt(mt,"y",-1),bottom:dt(gt,"y",1)},z:{top:dt(yt,"y",-1),bottom:dt(bt,"y",1)}}}else J.axes={y:{left:{x:l,z:0,xDir:{x:1,y:0,z:0}},right:{x:b,z:0,xDir:{x:0,y:0,z:1}}},x:{top:{y:k,z:0,xDir:{x:1,y:0,z:0}},bottom:{y:D,z:0,xDir:{x:1,y:0,z:0}}},z:{top:{x:W?b:l,y:k,xDir:W?{x:0,y:0,z:1}:{x:0,y:0,z:-1}},bottom:{x:W?b:l,y:D,xDir:W?{x:0,y:0,z:1}:{x:0,y:0,z:-1}}}};return J},o.prototype.getScale=function(e){var s,n=this.chart,l=n.plotLeft,b=n.plotWidth+l,k=n.plotTop,D=n.plotHeight+k,d=l+n.plotWidth/2,C=k+n.plotHeight/2,A={minX:Number.MAX_VALUE,maxX:-Number.MAX_VALUE,minY:Number.MAX_VALUE,maxY:-Number.MAX_VALUE},N=1;return s=[{x:l,y:k,z:0},{x:l,y:k,z:e}],[0,1].forEach(function(R){s.push({x:b,y:s[R].y,z:s[R].z})}),[0,1,2,3].forEach(function(R){s.push({x:s[R].x,y:D,z:s[R].z})}),(s=z(s,n,!1)).forEach(function(R){A.minX=Math.min(A.minX,R.x),A.maxX=Math.max(A.maxX,R.x),A.minY=Math.min(A.minY,R.y),A.maxY=Math.max(A.maxY,R.y)}),l>A.minX&&(N=Math.min(N,1-Math.abs((l+d)/(A.minX+d))%1)),b<A.maxX&&(N=Math.min(N,(b-d)/(A.maxX-d))),k>A.minY&&(N=A.minY<0?Math.min(N,(k+C)/(-A.minY+k+C)):Math.min(N,1-(k+C)/(A.minY+C)%1)),D<A.maxY&&(N=Math.min(N,Math.abs((D-C)/(A.maxY-C)))),N},o}();function u(o){this.is3d()&&o.options.type==="scatter"&&(o.options.type="scatter3d")}function v(){if(this.chart3d&&this.is3d()){var o=this,e=o.renderer,s=o.options.chart.options3d,n=o.chart3d.get3dFrame(),l=o.plotLeft,b=o.plotLeft+o.plotWidth,k=o.plotTop,D=o.plotTop+o.plotHeight,d=s.depth,C=l-(n.left.visible?n.left.size:0),A=b+(n.right.visible?n.right.size:0),N=k-(n.top.visible?n.top.size:0),R=D+(n.bottom.visible?n.bottom.size:0),L=0-(n.front.visible?n.front.size:0),O=d+(n.back.visible?n.back.size:0),j=o.hasRendered?"animate":"attr";o.chart3d.frame3d=n,o.frameShapes||(o.frameShapes={bottom:e.polyhedron().add(),top:e.polyhedron().add(),left:e.polyhedron().add(),right:e.polyhedron().add(),back:e.polyhedron().add(),front:e.polyhedron().add()}),o.frameShapes.bottom[j]({class:"highcharts-3d-frame highcharts-3d-frame-bottom",zIndex:n.bottom.frontFacing?-1e3:1e3,faces:[{fill:Z(n.bottom.color).brighten(.1).get(),vertexes:[{x:C,y:R,z:L},{x:A,y:R,z:L},{x:A,y:R,z:O},{x:C,y:R,z:O}],enabled:n.bottom.visible},{fill:Z(n.bottom.color).brighten(.1).get(),vertexes:[{x:l,y:D,z:d},{x:b,y:D,z:d},{x:b,y:D,z:0},{x:l,y:D,z:0}],enabled:n.bottom.visible},{fill:Z(n.bottom.color).brighten(-.1).get(),vertexes:[{x:C,y:R,z:L},{x:C,y:R,z:O},{x:l,y:D,z:d},{x:l,y:D,z:0}],enabled:n.bottom.visible&&!n.left.visible},{fill:Z(n.bottom.color).brighten(-.1).get(),vertexes:[{x:A,y:R,z:O},{x:A,y:R,z:L},{x:b,y:D,z:0},{x:b,y:D,z:d}],enabled:n.bottom.visible&&!n.right.visible},{fill:Z(n.bottom.color).get(),vertexes:[{x:A,y:R,z:L},{x:C,y:R,z:L},{x:l,y:D,z:0},{x:b,y:D,z:0}],enabled:n.bottom.visible&&!n.front.visible},{fill:Z(n.bottom.color).get(),vertexes:[{x:C,y:R,z:O},{x:A,y:R,z:O},{x:b,y:D,z:d},{x:l,y:D,z:d}],enabled:n.bottom.visible&&!n.back.visible}]}),o.frameShapes.top[j]({class:"highcharts-3d-frame highcharts-3d-frame-top",zIndex:n.top.frontFacing?-1e3:1e3,faces:[{fill:Z(n.top.color).brighten(.1).get(),vertexes:[{x:C,y:N,z:O},{x:A,y:N,z:O},{x:A,y:N,z:L},{x:C,y:N,z:L}],enabled:n.top.visible},{fill:Z(n.top.color).brighten(.1).get(),vertexes:[{x:l,y:k,z:0},{x:b,y:k,z:0},{x:b,y:k,z:d},{x:l,y:k,z:d}],enabled:n.top.visible},{fill:Z(n.top.color).brighten(-.1).get(),vertexes:[{x:C,y:N,z:O},{x:C,y:N,z:L},{x:l,y:k,z:0},{x:l,y:k,z:d}],enabled:n.top.visible&&!n.left.visible},{fill:Z(n.top.color).brighten(-.1).get(),vertexes:[{x:A,y:N,z:L},{x:A,y:N,z:O},{x:b,y:k,z:d},{x:b,y:k,z:0}],enabled:n.top.visible&&!n.right.visible},{fill:Z(n.top.color).get(),vertexes:[{x:C,y:N,z:L},{x:A,y:N,z:L},{x:b,y:k,z:0},{x:l,y:k,z:0}],enabled:n.top.visible&&!n.front.visible},{fill:Z(n.top.color).get(),vertexes:[{x:A,y:N,z:O},{x:C,y:N,z:O},{x:l,y:k,z:d},{x:b,y:k,z:d}],enabled:n.top.visible&&!n.back.visible}]}),o.frameShapes.left[j]({class:"highcharts-3d-frame highcharts-3d-frame-left",zIndex:n.left.frontFacing?-1e3:1e3,faces:[{fill:Z(n.left.color).brighten(.1).get(),vertexes:[{x:C,y:R,z:L},{x:l,y:D,z:0},{x:l,y:D,z:d},{x:C,y:R,z:O}],enabled:n.left.visible&&!n.bottom.visible},{fill:Z(n.left.color).brighten(.1).get(),vertexes:[{x:C,y:N,z:O},{x:l,y:k,z:d},{x:l,y:k,z:0},{x:C,y:N,z:L}],enabled:n.left.visible&&!n.top.visible},{fill:Z(n.left.color).brighten(-.1).get(),vertexes:[{x:C,y:R,z:O},{x:C,y:N,z:O},{x:C,y:N,z:L},{x:C,y:R,z:L}],enabled:n.left.visible},{fill:Z(n.left.color).brighten(-.1).get(),vertexes:[{x:l,y:k,z:d},{x:l,y:D,z:d},{x:l,y:D,z:0},{x:l,y:k,z:0}],enabled:n.left.visible},{fill:Z(n.left.color).get(),vertexes:[{x:C,y:R,z:L},{x:C,y:N,z:L},{x:l,y:k,z:0},{x:l,y:D,z:0}],enabled:n.left.visible&&!n.front.visible},{fill:Z(n.left.color).get(),vertexes:[{x:C,y:N,z:O},{x:C,y:R,z:O},{x:l,y:D,z:d},{x:l,y:k,z:d}],enabled:n.left.visible&&!n.back.visible}]}),o.frameShapes.right[j]({class:"highcharts-3d-frame highcharts-3d-frame-right",zIndex:n.right.frontFacing?-1e3:1e3,faces:[{fill:Z(n.right.color).brighten(.1).get(),vertexes:[{x:A,y:R,z:O},{x:b,y:D,z:d},{x:b,y:D,z:0},{x:A,y:R,z:L}],enabled:n.right.visible&&!n.bottom.visible},{fill:Z(n.right.color).brighten(.1).get(),vertexes:[{x:A,y:N,z:L},{x:b,y:k,z:0},{x:b,y:k,z:d},{x:A,y:N,z:O}],enabled:n.right.visible&&!n.top.visible},{fill:Z(n.right.color).brighten(-.1).get(),vertexes:[{x:b,y:k,z:0},{x:b,y:D,z:0},{x:b,y:D,z:d},{x:b,y:k,z:d}],enabled:n.right.visible},{fill:Z(n.right.color).brighten(-.1).get(),vertexes:[{x:A,y:R,z:L},{x:A,y:N,z:L},{x:A,y:N,z:O},{x:A,y:R,z:O}],enabled:n.right.visible},{fill:Z(n.right.color).get(),vertexes:[{x:A,y:N,z:L},{x:A,y:R,z:L},{x:b,y:D,z:0},{x:b,y:k,z:0}],enabled:n.right.visible&&!n.front.visible},{fill:Z(n.right.color).get(),vertexes:[{x:A,y:R,z:O},{x:A,y:N,z:O},{x:b,y:k,z:d},{x:b,y:D,z:d}],enabled:n.right.visible&&!n.back.visible}]}),o.frameShapes.back[j]({class:"highcharts-3d-frame highcharts-3d-frame-back",zIndex:n.back.frontFacing?-1e3:1e3,faces:[{fill:Z(n.back.color).brighten(.1).get(),vertexes:[{x:A,y:R,z:O},{x:C,y:R,z:O},{x:l,y:D,z:d},{x:b,y:D,z:d}],enabled:n.back.visible&&!n.bottom.visible},{fill:Z(n.back.color).brighten(.1).get(),vertexes:[{x:C,y:N,z:O},{x:A,y:N,z:O},{x:b,y:k,z:d},{x:l,y:k,z:d}],enabled:n.back.visible&&!n.top.visible},{fill:Z(n.back.color).brighten(-.1).get(),vertexes:[{x:C,y:R,z:O},{x:C,y:N,z:O},{x:l,y:k,z:d},{x:l,y:D,z:d}],enabled:n.back.visible&&!n.left.visible},{fill:Z(n.back.color).brighten(-.1).get(),vertexes:[{x:A,y:N,z:O},{x:A,y:R,z:O},{x:b,y:D,z:d},{x:b,y:k,z:d}],enabled:n.back.visible&&!n.right.visible},{fill:Z(n.back.color).get(),vertexes:[{x:l,y:k,z:d},{x:b,y:k,z:d},{x:b,y:D,z:d},{x:l,y:D,z:d}],enabled:n.back.visible},{fill:Z(n.back.color).get(),vertexes:[{x:C,y:R,z:O},{x:A,y:R,z:O},{x:A,y:N,z:O},{x:C,y:N,z:O}],enabled:n.back.visible}]}),o.frameShapes.front[j]({class:"highcharts-3d-frame highcharts-3d-frame-front",zIndex:n.front.frontFacing?-1e3:1e3,faces:[{fill:Z(n.front.color).brighten(.1).get(),vertexes:[{x:C,y:R,z:L},{x:A,y:R,z:L},{x:b,y:D,z:0},{x:l,y:D,z:0}],enabled:n.front.visible&&!n.bottom.visible},{fill:Z(n.front.color).brighten(.1).get(),vertexes:[{x:A,y:N,z:L},{x:C,y:N,z:L},{x:l,y:k,z:0},{x:b,y:k,z:0}],enabled:n.front.visible&&!n.top.visible},{fill:Z(n.front.color).brighten(-.1).get(),vertexes:[{x:C,y:N,z:L},{x:C,y:R,z:L},{x:l,y:D,z:0},{x:l,y:k,z:0}],enabled:n.front.visible&&!n.left.visible},{fill:Z(n.front.color).brighten(-.1).get(),vertexes:[{x:A,y:R,z:L},{x:A,y:N,z:L},{x:b,y:k,z:0},{x:b,y:D,z:0}],enabled:n.front.visible&&!n.right.visible},{fill:Z(n.front.color).get(),vertexes:[{x:b,y:k,z:0},{x:l,y:k,z:0},{x:l,y:D,z:0},{x:b,y:D,z:0}],enabled:n.front.visible},{fill:Z(n.front.color).get(),vertexes:[{x:A,y:R,z:L},{x:C,y:R,z:L},{x:C,y:N,z:L},{x:A,y:N,z:L}],enabled:n.front.visible}]})}}function S(){this.styledMode&&[{name:"darker",slope:.6},{name:"brighter",slope:1.4}].forEach(function(o){this.renderer.definition({tagName:"filter",attributes:{id:"highcharts-"+o.name},children:[{tagName:"feComponentTransfer",children:[{tagName:"feFuncR",attributes:{type:"linear",slope:o.slope}},{tagName:"feFuncG",attributes:{type:"linear",slope:o.slope}},{tagName:"feFuncB",attributes:{type:"linear",slope:o.slope}}]}]})},this)}function w(){var o=this.options;this.is3d()&&(o.series||[]).forEach(function(e){(e.type||o.chart.type||o.chart.defaultSeriesType)==="scatter"&&(e.type="scatter3d")})}function x(){var o=this,e=o.options.chart.options3d;if(o.chart3d&&o.is3d()){e&&(e.alpha=e.alpha%360+(e.alpha>=0?0:360),e.beta=e.beta%360+(e.beta>=0?0:360));var s=o.inverted,n=o.clipBox,l=o.margin,b=s?"x":"y",k=s?"height":"width",D=s?"width":"height";n[s?"y":"x"]=-(l[3]||0),n[b]=-(l[0]||0),n[k]=o.chartWidth+(l[3]||0)+(l[1]||0),n[D]=o.chartHeight+(l[0]||0)+(l[2]||0),o.scale3d=1,e.fitToPlot===!0&&(o.scale3d=o.chart3d.getScale(e.depth)),o.chart3d.frame3d=o.chart3d.get3dFrame()}}function c(){this.is3d()&&(this.isDirtyBox=!0)}function g(){this.chart3d&&this.is3d()&&(this.chart3d.frame3d=this.chart3d.get3dFrame())}function r(){this.chart3d||(this.chart3d=new m(this))}function a(o){return this.is3d()||o.apply(this,[].slice.call(arguments,1))}function t(o){var e,s=this.series.length;if(this.is3d())for(;s--;)(e=this.series[s]).translate(),e.render();else o.call(this)}function i(o){o.apply(this,[].slice.call(arguments,1)),this.is3d()&&(this.container.className+=" highcharts-3d-chart")}f.Composition=m,f.defaultOptions={chart:{options3d:{enabled:!1,alpha:0,beta:0,depth:100,fitToPlot:!0,viewDistance:25,axisLabelPosition:null,frame:{visible:"default",size:1,bottom:{},top:{},left:{},right:{},back:{},front:{}}}}},f.compose=function(o,e){var s=o.prototype,n=e.prototype;s.is3d=function(){return!!(this.options.chart.options3d&&this.options.chart.options3d.enabled)},s.propsRequireDirtyBox.push("chart.options3d"),s.propsRequireUpdateSeries.push("chart.options3d"),n.matrixSetter=function(){var l;if(this.pos<1&&(M(this.start)||M(this.end))){var b=this.start||[1,0,0,1,0,0],k=this.end||[1,0,0,1,0,0];l=[];for(var D=0;D<6;D++)l.push(this.pos*k[D]+(1-this.pos)*b[D])}else l=this.end;this.elem.attr(this.prop,l,null,!0)},P(!0,V,f.defaultOptions),E(o,"init",r),E(o,"addSeries",u),E(o,"afterDrawChartBox",v),E(o,"afterGetContainer",S),E(o,"afterInit",w),E(o,"afterSetChartSize",x),E(o,"beforeRedraw",c),E(o,"beforeRender",g),h(s,"isInsidePlot",a),h(s,"renderSeries",t),h(s,"setClassName",i)}}($||($={})),$}),et(_,"Core/Axis/ZAxis.js",[_["Core/Axis/Axis.js"],_["Core/Utilities.js"]],function(G,B){var X,U=this&&this.__extends||(X=function(y,h){return X=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var u in m)m.hasOwnProperty(u)&&(f[u]=m[u])},X(y,h)},function(y,h){function f(){this.constructor=y}X(y,h),y.prototype=h===null?Object.create(h):(f.prototype=h.prototype,new f)}),$=B.addEvent,Z=B.merge,V=B.pick,z=B.splat,I=[];function E(y){return new P(this,y)}function M(){var y=this,h=this.options.zAxis=z(this.options.zAxis||{});this.is3d()&&(this.zAxis=[],h.forEach(function(f,m){f.index=m,f.isX=!0,y.addZAxis(f).setScale()}))}var P=function(y){function h(f,m){var u=y.call(this,f,m)||this;return u.isZAxis=!0,u}return U(h,y),h.compose=function(f){if(I.indexOf(f)===-1){I.push(f),$(f,"afterGetAxes",M);var m=f.prototype;m.addZAxis=E,m.collectionsWithInit.zAxis=[m.addZAxis],m.collectionsWithUpdate.push("zAxis")}},h.prototype.getSeriesExtremes=function(){var f=this,m=this.chart;this.hasVisibleSeries=!1,this.dataMin=this.dataMax=this.ignoreMinPadding=this.ignoreMaxPadding=void 0,this.stacking&&this.stacking.buildStacks(),this.series.forEach(function(u){if(u.visible||!m.options.chart.ignoreHiddenSeries){f.hasVisibleSeries=!0;var v=u.zData;v.length&&(f.dataMin=Math.min(V(f.dataMin,v[0]),Math.min.apply(null,v)),f.dataMax=Math.max(V(f.dataMax,v[0]),Math.max.apply(null,v)))}})},h.prototype.setAxisSize=function(){var f=this.chart;y.prototype.setAxisSize.call(this),this.width=this.len=f.options.chart.options3d&&f.options.chart.options3d.depth||0,this.right=f.chartWidth-this.width-this.left},h.prototype.setOptions=function(f){f=Z({offset:0,lineWidth:0},f),this.isZAxis=!0,y.prototype.setOptions.call(this,f),this.coll="zAxis"},h}(G);return P}),et(_,"Core/Axis/Axis3DDefaults.js",[],function(){return{labels:{position3d:"offset",skew3d:!1},title:{position3d:null,skew3d:null}}}),et(_,"Core/Axis/Tick3DComposition.js",[_["Core/Utilities.js"]],function(G){var B=G.addEvent,X=G.extend,U=G.wrap,$=[];function Z(z){var I=this.axis.axis3D;I&&X(z.pos,I.fix3dPosition(z.pos))}function V(z){var I=this.axis.axis3D,E=z.apply(this,[].slice.call(arguments,1));if(I){var M=E[0],P=E[1];if(M[0]==="M"&&P[0]==="L"){var y=[I.fix3dPosition({x:M[1],y:M[2],z:0}),I.fix3dPosition({x:P[1],y:P[2],z:0})];return this.axis.chart.renderer.toLineSegments(y)}}return E}return{compose:function(z){$.indexOf(z)===-1&&($.push(z),B(z,"afterGetLabelPosition",Z),U(z.prototype,"getMarkPath",V))}}}),et(_,"Core/Axis/Axis3DComposition.js",[_["Core/Axis/Axis3DDefaults.js"],_["Core/Globals.js"],_["Core/Math3D.js"],_["Core/Axis/Tick3DComposition.js"],_["Core/Utilities.js"]],function(G,B,X,U,$){var Z=B.deg2rad,V=X.perspective,z=X.perspective3D,I=X.shapeArea,E=$.addEvent,M=$.merge,P=$.pick,y=$.wrap,h=[];function f(){var r=this,a=r.chart,t=r.options;a.is3d&&a.is3d()&&r.coll!=="colorAxis"&&(t.tickWidth=P(t.tickWidth,0),t.gridLineWidth=P(t.gridLineWidth,1))}function m(r){var a=this;a.chart.is3d()&&a.coll!=="colorAxis"&&r.point&&(r.point.crosshairPos=a.isXAxis?r.point.axisXpos:a.len-r.point.axisYpos)}function u(){var r=this;r.axis3D||(r.axis3D=new g(r))}function v(r){var a=this;return a.chart.is3d()&&a.coll!=="colorAxis"?[]:r.apply(a,[].slice.call(arguments,1))}function S(r){if(!this.chart.is3d()||this.coll==="colorAxis")return r.apply(this,[].slice.call(arguments,1));var a=arguments,t=a[1],i=a[2],o=[],e=this.getPlotLinePath({value:t}),s=this.getPlotLinePath({value:i});if(e&&s)for(var n=0;n<e.length;n+=2){var l=e[n],b=e[n+1],k=s[n],D=s[n+1];l[0]==="M"&&b[0]==="L"&&k[0]==="M"&&D[0]==="L"&&o.push(l,b,D,["L",k[1],k[2]],["Z"])}return o}function w(r){var a=this,t=a.axis3D,i=a.chart,o=r.apply(a,[].slice.call(arguments,1));if(a.coll==="colorAxis"||!i.chart3d||!i.is3d()||o===null)return o;var e,s=i.options.chart.options3d,n=a.isZAxis?i.plotWidth:s.depth,l=i.chart3d.frame3d,b=o[0],k=o[1],D=[];return b[0]==="M"&&k[0]==="L"&&(e=[t.swapZ({x:b[1],y:b[2],z:0}),t.swapZ({x:b[1],y:b[2],z:n}),t.swapZ({x:k[1],y:k[2],z:0}),t.swapZ({x:k[1],y:k[2],z:n})],this.horiz?this.isZAxis?(l.left.visible&&D.push(e[0],e[2]),l.right.visible&&D.push(e[1],e[3]),l.top.visible&&D.push(e[0],e[1]),l.bottom.visible&&D.push(e[2],e[3])):(l.front.visible&&D.push(e[0],e[2]),l.back.visible&&D.push(e[1],e[3]),l.top.visible&&D.push(e[0],e[1]),l.bottom.visible&&D.push(e[2],e[3])):(l.front.visible&&D.push(e[0],e[2]),l.back.visible&&D.push(e[1],e[3]),l.left.visible&&D.push(e[0],e[1]),l.right.visible&&D.push(e[2],e[3])),D=V(D,this.chart,!1)),i.renderer.toLineSegments(D)}function x(r,a){var t=this,i=t.chart,o=t.ticks,e=t.gridGroup;if(t.categories&&i.frameShapes&&i.is3d()&&e&&a&&a.label){var s=e.element.childNodes[0].getBBox(),n=i.frameShapes.left.getBBox(),l=i.options.chart.options3d,b={x:i.plotWidth/2,y:i.plotHeight/2,z:l.depth/2,vd:P(l.depth,1)*P(l.viewDistance,0)},k=a.pos,D=o[k-1],d=o[k+1],C=void 0,A=void 0,N=void 0;return k!==0&&D&&D.label&&D.label.xy&&(A=z({x:D.label.xy.x,y:D.label.xy.y,z:null},b,b.vd)),d&&d.label&&d.label.xy&&(N=z({x:d.label.xy.x,y:d.label.xy.y,z:null},b,b.vd)),C={x:a.label.xy.x,y:a.label.xy.y,z:null},C=z(C,b,b.vd),Math.abs(A?C.x-A.x:N?N.x-C.x:s.x-n.x)}return r.apply(t,[].slice.call(arguments,1))}function c(r){var a=r.apply(this,[].slice.call(arguments,1));return this.axis3D?this.axis3D.fix3dPosition(a,!0):a}var g=function(){function r(a){this.axis=a}return r.compose=function(a,t){if(U.compose(t),h.indexOf(a)===-1){h.push(a),M(!0,a.defaultOptions,G),a.keepProps.push("axis3D"),E(a,"init",u),E(a,"afterSetOptions",f),E(a,"drawCrosshair",m);var i=a.prototype;y(i,"getLinePath",v),y(i,"getPlotBandPath",S),y(i,"getPlotLinePath",w),y(i,"getSlotWidth",x),y(i,"getTitlePosition",c)}},r.prototype.fix3dPosition=function(a,t){var i=this.axis,o=i.chart;if(i.coll==="colorAxis"||!o.chart3d||!o.is3d())return a;var e,s=Z*o.options.chart.options3d.alpha,n=Z*o.options.chart.options3d.beta,l=P(t&&i.options.title.position3d,i.options.labels.position3d),b=P(t&&i.options.title.skew3d,i.options.labels.skew3d),k=o.chart3d.frame3d,D=o.plotLeft,d=o.plotWidth+D,C=o.plotTop,A=o.plotHeight+C,N=0,R=0,L={x:0,y:1,z:0},O=!1;if(a=i.axis3D.swapZ({x:a.x,y:a.y,z:0}),i.isZAxis)if(i.opposite){if(k.axes.z.top===null)return{};R=a.y-C,a.x=k.axes.z.top.x,a.y=k.axes.z.top.y,e=k.axes.z.top.xDir,O=!k.top.frontFacing}else{if(k.axes.z.bottom===null)return{};R=a.y-A,a.x=k.axes.z.bottom.x,a.y=k.axes.z.bottom.y,e=k.axes.z.bottom.xDir,O=!k.bottom.frontFacing}else if(i.horiz)if(i.opposite){if(k.axes.x.top===null)return{};R=a.y-C,a.y=k.axes.x.top.y,a.z=k.axes.x.top.z,e=k.axes.x.top.xDir,O=!k.top.frontFacing}else{if(k.axes.x.bottom===null)return{};R=a.y-A,a.y=k.axes.x.bottom.y,a.z=k.axes.x.bottom.z,e=k.axes.x.bottom.xDir,O=!k.bottom.frontFacing}else if(i.opposite){if(k.axes.y.right===null)return{};N=a.x-d,a.x=k.axes.y.right.x,a.z=k.axes.y.right.z,e={x:(e=k.axes.y.right.xDir).z,y:e.y,z:-e.x}}else{if(k.axes.y.left===null)return{};N=a.x-D,a.x=k.axes.y.left.x,a.z=k.axes.y.left.z,e=k.axes.y.left.xDir}if(l!=="chart")if(l==="flap")if(i.horiz){var j=Math.sin(s),Y=Math.cos(s);i.opposite&&(j=-j),O&&(j=-j),L={x:e.z*j,y:Y,z:-e.x*j}}else e={x:Math.cos(n),y:0,z:Math.sin(n)};else if(l==="ortho")if(i.horiz){var H=Math.sin(s),W=Math.cos(s),q={x:Math.sin(n)*W,y:-H,z:-W*Math.cos(n)};L={x:e.y*q.z-e.z*q.y,y:e.z*q.x-e.x*q.z,z:e.x*q.y-e.y*q.x};var Q=1/Math.sqrt(L.x*L.x+L.y*L.y+L.z*L.z);O&&(Q=-Q),L={x:Q*L.x,y:Q*L.y,z:Q*L.z}}else e={x:Math.cos(n),y:0,z:Math.sin(n)};else i.horiz?L={x:Math.sin(n)*Math.sin(s),y:Math.cos(s),z:-Math.cos(n)*Math.sin(s)}:e={x:Math.cos(n),y:0,z:Math.sin(n)};a.x+=N*e.x+R*L.x,a.y+=N*e.y+R*L.y,a.z+=N*e.z+R*L.z;var J=V([a],i.chart)[0];if(b){I(V([a,{x:a.x+e.x,y:a.y+e.y,z:a.z+e.z},{x:a.x+L.x,y:a.y+L.y,z:a.z+L.z}],i.chart))<0&&(e={x:-e.x,y:-e.y,z:-e.z});var nt=V([{x:a.x,y:a.y,z:a.z},{x:a.x+e.x,y:a.y+e.y,z:a.z+e.z},{x:a.x+L.x,y:a.y+L.y,z:a.z+L.z}],i.chart);J.matrix=[nt[1].x-nt[0].x,nt[1].y-nt[0].y,nt[2].x-nt[0].x,nt[2].y-nt[0].y,J.x,J.y],J.matrix[4]-=J.x*J.matrix[0]+J.y*J.matrix[2],J.matrix[5]-=J.x*J.matrix[1]+J.y*J.matrix[3]}return J},r.prototype.swapZ=function(a,t){var i=this.axis;if(i.isZAxis){var o=t?0:i.chart.plotLeft;return{x:o+a.z,y:a.y,z:a.x-o}}return a},r}();return g}),et(_,"Core/Series/Series3D.js",[_["Core/Math3D.js"],_["Core/Series/Series.js"],_["Core/Utilities.js"]],function(G,B,X){var U,$=this&&this.__extends||(U=function(y,h){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var u in m)m.hasOwnProperty(u)&&(f[u]=m[u])},U(y,h)},function(y,h){function f(){this.constructor=y}U(y,h),y.prototype=h===null?Object.create(h):(f.prototype=h.prototype,new f)}),Z=G.perspective,V=X.addEvent,z=X.extend,I=X.merge,E=X.pick,M=X.isNumber,P=function(y){function h(){return y!==null&&y.apply(this,arguments)||this}return $(h,y),h.prototype.translate=function(){y.prototype.translate.apply(this,arguments),this.chart.is3d()&&this.translate3dPoints()},h.prototype.translate3dPoints=function(){var f,m,u,v,S,w=this,x=w.options,c=w.chart,g=E(w.zAxis,c.options.zAxis[0]),r=[],a=[],t=x.stacking?M(x.stack)?x.stack:0:w.index||0;for(w.zPadding=t*(x.depth||0+(x.groupZPadding||1)),S=0;S<w.data.length;S++)f=w.data[S],g&&g.translate?(v=g.logarithmic&&g.val2lin?g.val2lin(f.z):f.z,f.plotZ=g.translate(v),f.isInside=!!f.isInside&&v>=g.min&&v<=g.max):f.plotZ=w.zPadding,f.axisXpos=f.plotX,f.axisYpos=f.plotY,f.axisZpos=f.plotZ,r.push({x:f.plotX,y:f.plotY,z:f.plotZ}),a.push(f.plotX||0);for(w.rawPointsX=a,m=Z(r,c,!0),S=0;S<w.data.length;S++)f=w.data[S],u=m[S],f.plotX=u.x,f.plotY=u.y,f.plotZ=u.z},h.defaultOptions=I(B.defaultOptions),h}(B);return V(B,"afterTranslate",function(){this.chart.is3d()&&this.translate3dPoints()}),z(B.prototype,{translate3dPoints:P.prototype.translate3dPoints}),P}),et(_,"Series/Area3D/Area3DSeries.js",[_["Core/Math3D.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,X){var U=G.perspective,$=B.seriesTypes.line.prototype,Z=X.wrap,V=[];function z(I){var E=this,M=I.apply(E,[].slice.call(arguments,1));if(!E.chart.is3d())return M;var P=$.getGraphPath,y=E.options,h=Math.round(E.yAxis.getThreshold(y.threshold)),f=[];if(E.rawPointsX)for(var m=0;m<E.points.length;m++)f.push({x:E.rawPointsX[m],y:y.stacking?E.points[m].yBottom:h,z:E.zPadding});var u=E.chart.options.chart.options3d;f=U(f,E.chart,!0).map(function(w){return{plotX:w.x,plotY:w.y,plotZ:w.z}}),E.group&&u&&u.depth&&u.beta&&(E.markerGroup&&(E.markerGroup.add(E.group),E.markerGroup.attr({translateX:0,translateY:0})),E.group.attr({zIndex:Math.max(1,u.beta>270||u.beta<90?u.depth-Math.round(E.zPadding||0):Math.round(E.zPadding||0))})),f.reversed=!0;var v=P.call(E,f,!0,!0);if(v[0]&&v[0][0]==="M"&&(v[0]=["L",v[0][1],v[0][2]]),E.areaPath){var S=E.areaPath.splice(0,E.areaPath.length/2).concat(v);S.xMap=E.areaPath.xMap,E.areaPath=S}return M}return{compose:function(I){V.indexOf(I)===-1&&(V.push(I),Z(I.prototype,"getGraphPath",z))}}}),et(_,"Series/Column3D/Column3DComposition.js",[_["Series/Column/ColumnSeries.js"],_["Core/Globals.js"],_["Core/Series/Series.js"],_["Core/Math3D.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Axis/Stacking/StackItem.js"],_["Core/Utilities.js"]],function(G,B,X,U,$,Z,V){var z=G.prototype,I=B.svg,E=U.perspective,M=V.addEvent,P=V.pick,y=V.wrap;function h(v){var S=v.apply(this,[].slice.call(arguments,1));return this.chart.is3d&&this.chart.is3d()&&(S.stroke=this.options.edgeColor||S.fill,S["stroke-width"]=P(this.options.edgeWidth,1)),S}function f(v,S,w){var x=this.chart.is3d&&this.chart.is3d();x&&(this.options.inactiveOtherPoints=!0),v.call(this,S,w),x&&(this.options.inactiveOtherPoints=!1)}function m(v){for(var S=[],w=1;w<arguments.length;w++)S[w-1]=arguments[w];return this.series.chart.is3d()?this.graphic&&this.graphic.element.nodeName!=="g":v.apply(this,S)}if(y(z,"translate",function(v){v.apply(this,[].slice.call(arguments,1)),this.chart.is3d()&&this.translate3dShapes()}),y(X.prototype,"justifyDataLabel",function(v){return!arguments[2].outside3dPlot&&v.apply(this,[].slice.call(arguments,1))}),z.translate3dPoints=function(){},z.translate3dShapes=function(){var v,S=this,w=S.chart,x=S.options,c=x.depth,g=(x.stacking?x.stack||0:S.index)*(c+(x.groupZPadding||1)),r=S.borderWidth%2?.5:0;w.inverted&&!S.yAxis.reversed&&(r*=-1),x.grouping!==!1&&(g=0),g+=x.groupZPadding||1,S.data.forEach(function(a){if(a.outside3dPlot=null,a.y!==null){var t,i=a.shapeArgs,o=a.tooltipPos;[["x","width"],["y","height"]].forEach(function(e){if((t=i[e[0]]-r)<0&&(i[e[1]]+=i[e[0]]+r,i[e[0]]=-r,t=0),t+i[e[1]]>S[e[0]+"Axis"].len&&i[e[1]]!==0&&(i[e[1]]=S[e[0]+"Axis"].len-i[e[0]]),i[e[1]]!==0&&(i[e[0]]>=S[e[0]+"Axis"].len||i[e[0]]+i[e[1]]<=r)){for(var s in i)i[s]=s==="y"?-9999:0;a.outside3dPlot=!0}}),a.shapeType==="rect"&&(a.shapeType="cuboid"),i.z=g,i.depth=c,i.insidePlotArea=!0,v={x:i.x+i.width/2,y:i.y,z:g+c/2},w.inverted&&(v.x=i.height,v.y=a.clientX),a.plot3d=E([v],w,!0,!1)[0],o=E([{x:o[0],y:o[1],z:g+c/2}],w,!0,!1)[0],a.tooltipPos=[o.x,o.y]}}),S.z=g},y(z,"animate",function(v){if(this.chart.is3d()){var S=arguments[1],w=this.yAxis,x=this,c=this.yAxis.reversed;I&&(S?x.data.forEach(function(g){g.y!==null&&(g.height=g.shapeArgs.height,g.shapey=g.shapeArgs.y,g.shapeArgs.height=1,c||(g.stackY?g.shapeArgs.y=g.plotY+w.translate(g.stackY):g.shapeArgs.y=g.plotY+(g.negative?-g.height:g.height)))}):(x.data.forEach(function(g){g.y!==null&&(g.shapeArgs.height=g.height,g.shapeArgs.y=g.shapey,g.graphic&&g.graphic[g.outside3dPlot?"attr":"animate"](g.shapeArgs,x.options.animation))}),this.drawDataLabels()))}else v.apply(this,[].slice.call(arguments,1))}),y(z,"plotGroup",function(v,S,w,x,c,g){return S!=="dataLabelsGroup"&&S!=="markerGroup"&&this.chart.is3d()&&(this[S]&&delete this[S],g&&(this.chart.columnGroup||(this.chart.columnGroup=this.chart.renderer.g("columnGroup").add(g)),this[S]=this.chart.columnGroup,this.chart.columnGroup.attr(this.getPlotBox()),this[S].survive=!0,S==="group"&&(arguments[3]="visible"))),v.apply(this,Array.prototype.slice.call(arguments,1))}),y(z,"setVisible",function(v,S){var w=this;w.chart.is3d()&&w.data.forEach(function(x){x.visible=x.options.visible=S=S===void 0?!P(w.visible,x.visible):S,w.options.data[w.data.indexOf(x)]=x.options,x.graphic&&x.graphic.attr({visibility:S?"visible":"hidden"})}),v.apply(this,Array.prototype.slice.call(arguments,1))}),M(G,"afterInit",function(){if(this.chart.is3d()){var v=this.options,S=v.grouping,w=v.stacking,x=this.yAxis.options.reversedStacks,c=0;if(S===void 0||S){var g=function(t,i){var o,e=t.series,s={totalStacks:0},n=1;return e.forEach(function(l){o=P(l.options.stack,i?0:e.length-1-l.index),s[o]?s[o].series.push(l):(s[o]={series:[l],position:n},n++)}),s.totalStacks=n+1,s}(this.chart,w),r=v.stack||0,a=void 0;for(a=0;a<g[r].series.length&&g[r].series[a]!==this;a++);c=10*(g.totalStacks-g[r].position)+(x?a:-a),this.xAxis.reversed||(c=10*g.totalStacks-c)}v.depth=v.depth||25,this.z=this.z||0,v.zIndex=c}}),y(z,"pointAttribs",h),y(z,"setState",f),y(z.pointClass.prototype,"hasNewShapeType",m),$.seriesTypes.columnRange){var u=$.seriesTypes.columnrange.prototype;y(u,"pointAttribs",h),y(u,"setState",f),y(u.pointClass.prototype,"hasNewShapeType",m),u.plotGroup=z.plotGroup,u.setVisible=z.setVisible}return y(X.prototype,"alignDataLabel",function(v,S,w,x,c){var g=this.chart;if(x.outside3dPlot=S.outside3dPlot,g.is3d()&&this.is("column")){var r=this,a=r.options,t=P(x.inside,!!r.options.stacking),i=g.options.chart.options3d,o=S.pointWidth/2||0,e={x:c.x+o,y:c.y,z:r.z+a.depth/2};g.inverted&&(t&&(c.width=0,e.x+=S.shapeArgs.height/2),i.alpha>=90&&i.alpha<=270&&(e.y+=S.shapeArgs.width)),e=E([e],g,!0,!1)[0],c.x=e.x-o,c.y=S.outside3dPlot?-9e9:e.y}v.apply(this,[].slice.call(arguments,1))}),y(Z.prototype,"getStackBox",function(v,S){var w=v.apply(this,[].slice.call(arguments,1)),x=this.axis.chart,c=S.width;if(x.is3d()&&this.base){var g=+this.base.split(",")[0],r=x.series[g],a=x.options.chart.options3d;if(r&&r instanceof $.seriesTypes.column){var t={x:w.x+(x.inverted?w.height:c/2),y:w.y,z:r.options.depth/2};x.inverted&&(w.width=0,a.alpha>=90&&a.alpha<=270&&(t.y+=c)),t=E([t],x,!0,!1)[0],w.x=t.x-c/2,w.y=t.y}}return w}),G}),et(_,"Series/Pie3D/Pie3DPoint.js",[_["Core/Series/SeriesRegistry.js"]],function(G){var B,X=this&&this.__extends||(B=function(V,z){return B=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(I,E){I.__proto__=E}||function(I,E){for(var M in E)E.hasOwnProperty(M)&&(I[M]=E[M])},B(V,z)},function(V,z){function I(){this.constructor=V}B(V,z),V.prototype=z===null?Object.create(z):(I.prototype=z.prototype,new I)}),U=G.seriesTypes.pie.prototype.pointClass,$=U.prototype.haloPath,Z=function(V){function z(){var I=V!==null&&V.apply(this,arguments)||this;return I.series=void 0,I}return X(z,V),z.prototype.haloPath=function(){return this.series.chart.is3d()?[]:$.apply(this,arguments)},z}(U);return Z}),et(_,"Series/Pie3D/Pie3DSeries.js",[_["Core/Globals.js"],_["Series/Pie3D/Pie3DPoint.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,X,U){var $,Z=this&&this.__extends||($=function(y,h){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var u in m)m.hasOwnProperty(u)&&(f[u]=m[u])},$(y,h)},function(y,h){function f(){this.constructor=y}$(y,h),y.prototype=h===null?Object.create(h):(f.prototype=h.prototype,new f)}),V=G.deg2rad,z=G.svg,I=X.seriesTypes.pie,E=U.extend,M=U.pick,P=function(y){function h(){return y!==null&&y.apply(this,arguments)||this}return Z(h,y),h.prototype.addPoint=function(){y.prototype.addPoint.apply(this,arguments),this.chart.is3d()&&this.update(this.userOptions,!0)},h.prototype.animate=function(f){if(this.chart.is3d()){var m=this.options.animation,u=void 0,v=this.center,S=this.group,w=this.markerGroup;z&&(m===!0&&(m={}),f?(S.oldtranslateX=M(S.oldtranslateX,S.translateX),S.oldtranslateY=M(S.oldtranslateY,S.translateY),u={translateX:v[0],translateY:v[1],scaleX:.001,scaleY:.001},S.attr(u),w&&(w.attrSetters=S.attrSetters,w.attr(u))):(u={translateX:S.oldtranslateX,translateY:S.oldtranslateY,scaleX:1,scaleY:1},S.animate(u,m),w&&w.animate(u,m)))}else y.prototype.animate.apply(this,arguments)},h.prototype.drawDataLabels=function(){if(this.chart.is3d()){var f=this.chart.options.chart.options3d;this.data.forEach(function(m){var u=m.shapeArgs,v=u.r,S=(u.alpha||f.alpha)*V,w=(u.beta||f.beta)*V,x=(u.start+u.end)/2,c=m.labelPosition,g=c.connectorPosition,r=-v*(1-Math.cos(S))*Math.sin(x),a=v*(Math.cos(w)-1)*Math.cos(x);[c.natural,g.breakAt,g.touchingSliceAt].forEach(function(t){t.x+=a,t.y+=r})})}y.prototype.drawDataLabels.apply(this,arguments)},h.prototype.pointAttribs=function(f){var m=y.prototype.pointAttribs.apply(this,arguments),u=this.options;return this.chart.is3d()&&!this.chart.styledMode&&(m.stroke=u.edgeColor||f.color||this.color,m["stroke-width"]=M(u.edgeWidth,1)),m},h.prototype.translate=function(){if(y.prototype.translate.apply(this,arguments),this.chart.is3d()){var f=this,m=f.options,u=m.depth||0,v=f.chart.options.chart.options3d,S=v.alpha,w=v.beta,x=m.stacking?(m.stack||0)*u:f._i*u;x+=u/2,m.grouping!==!1&&(x=0),f.data.forEach(function(c){var g,r=c.shapeArgs;c.shapeType="arc3d",r.z=x,r.depth=.75*u,r.alpha=S,r.beta=w,r.center=f.center,g=(r.end+r.start)/2,c.slicedTranslation={translateX:Math.round(Math.cos(g)*m.slicedOffset*Math.cos(S*V)),translateY:Math.round(Math.sin(g)*m.slicedOffset*Math.cos(S*V))}})}},h.prototype.drawTracker=function(){y.prototype.drawTracker.apply(this,arguments),this.chart.is3d()&&this.points.forEach(function(f){f.graphic&&["out","inn","side1","side2"].forEach(function(m){f.graphic&&(f.graphic[m].element.point=f)})})},h}(I);return E(P.prototype,{pointClass:B}),P}),et(_,"Series/Pie3D/Pie3DComposition.js",[_["Series/Pie3D/Pie3DPoint.js"],_["Series/Pie3D/Pie3DSeries.js"],_["Core/Series/SeriesRegistry.js"]],function(G,B,X){X.seriesTypes.pie.prototype.pointClass.prototype.haloPath=G.prototype.haloPath,X.seriesTypes.pie=B}),et(_,"Series/Scatter3D/Scatter3DPoint.js",[_["Series/Scatter/ScatterSeries.js"],_["Core/Utilities.js"]],function(G,B){var X,U=this&&this.__extends||(X=function(V,z){return X=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(I,E){I.__proto__=E}||function(I,E){for(var M in E)E.hasOwnProperty(M)&&(I[M]=E[M])},X(V,z)},function(V,z){function I(){this.constructor=V}X(V,z),V.prototype=z===null?Object.create(z):(I.prototype=z.prototype,new I)}),$=B.defined,Z=function(V){function z(){var I=V!==null&&V.apply(this,arguments)||this;return I.options=void 0,I.series=void 0,I}return U(z,V),z.prototype.applyOptions=function(){return V.prototype.applyOptions.apply(this,arguments),$(this.z)||(this.z=0),this},z}(G.prototype.pointClass);return Z}),et(_,"Series/Scatter3D/Scatter3DSeries.js",[_["Core/Math3D.js"],_["Series/Scatter3D/Scatter3DPoint.js"],_["Series/Scatter/ScatterSeries.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,X,U,$){var Z,V=this&&this.__extends||(Z=function(P,y){return Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,f){h.__proto__=f}||function(h,f){for(var m in f)f.hasOwnProperty(m)&&(h[m]=f[m])},Z(P,y)},function(P,y){function h(){this.constructor=P}Z(P,y),P.prototype=y===null?Object.create(y):(h.prototype=y.prototype,new h)}),z=G.pointCameraDistance,I=$.extend,E=$.merge,M=function(P){function y(){var h=P!==null&&P.apply(this,arguments)||this;return h.data=void 0,h.options=void 0,h.points=void 0,h}return V(y,P),y.prototype.pointAttribs=function(h){var f=P.prototype.pointAttribs.apply(this,arguments);return this.chart.is3d()&&h&&(f.zIndex=z(h,this.chart)),f},y.defaultOptions=E(X.defaultOptions,{tooltip:{pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>z: <b>{point.z}</b><br/>"}}),y}(X);return I(M.prototype,{axisTypes:["xAxis","yAxis","zAxis"],directTouch:!0,parallelArrays:["x","y","z"],pointArrayMap:["x","y","z"],pointClass:B}),U.registerSeriesType("scatter3d",M),M}),et(_,"masters/highcharts-3d.src.js",[_["Core/Globals.js"],_["Core/Renderer/SVG/SVGRenderer3D.js"],_["Core/Chart/Chart3D.js"],_["Core/Axis/ZAxis.js"],_["Core/Axis/Axis3DComposition.js"],_["Series/Area3D/Area3DSeries.js"]],function(G,B,X,U,$,Z){var V=G;B.compose(V.SVGRenderer),X.compose(V.Chart,V.Fx),U.compose(V.Chart),$.compose(V.Axis,V.Tick),Z.compose(V.seriesTypes.area)})},it.exports?(pt.default=pt,it.exports=pt):(ht=[st(4783)],(ct=function(ft){return pt(ft),pt.Highcharts=ft,pt}.apply(rt,ht))===void 0||(it.exports=ct))},1548:(it,rt,st)=>{st.d(rt,{A:()=>ct});var ht=Function.prototype.toString;const ct=function(pt){if(pt!=null){try{return ht.call(pt)}catch(ft){}try{return pt+""}catch(ft){}}return""}},2060:(it,rt,st)=>{var ht,ct,pt;pt=function(ft){var _=ft?ft._modules:{};function et(G,B,X,U){G.hasOwnProperty(B)||(G[B]=U.apply(null,X),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:B,module:G[B]}})))}et(_,"Series/Funnel/FunnelSeries.js",[_["Core/Chart/Chart.js"],_["Core/Globals.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,X,U){var $,Z=this&&this.__extends||($=function(u,v){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,w){S.__proto__=w}||function(S,w){for(var x in w)w.hasOwnProperty(x)&&(S[x]=w[x])},$(u,v)},function(u,v){function S(){this.constructor=u}$(u,v),u.prototype=v===null?Object.create(v):(S.prototype=v.prototype,new S)}),V=B.noop,z=X.series,I=X.seriesTypes.pie,E=U.addEvent,M=U.extend,P=U.fireEvent,y=U.isArray,h=U.merge,f=U.pick,m=function(u){function v(){var S=u!==null&&u.apply(this,arguments)||this;return S.data=void 0,S.options=void 0,S.points=void 0,S}return Z(v,u),v.prototype.alignDataLabel=function(S,w,x,c,g){var r=S.series,a=r.options.reversed,t=S.dlBox||S.shapeArgs,i=x.align,o=x.verticalAlign,e=((r.options||{}).dataLabels||{}).inside,s=r.center[1],n=a?2*s-S.plotY:S.plotY,l=r.getWidthAt(n-t.height/2+w.height),b=o==="middle"?(t.topWidth-t.bottomWidth)/4:(l-t.bottomWidth)/2,k=t.y,D=t.x,d=f(w.height,w.getBBox().height);o==="middle"?k=t.y-t.height/2+d/2:o==="top"&&(k=t.y-t.height+d+x.padding),(o==="top"&&!a||o==="bottom"&&a||o==="middle")&&(i==="right"?D=t.x-x.padding+b:i==="left"&&(D=t.x+x.padding-b)),c={x:D,y:a?k-t.height:k,width:t.bottomWidth,height:t.height},x.verticalAlign="bottom",e&&!S.visible||z.prototype.alignDataLabel.call(this,S,w,x,c,g),e&&(!S.visible&&S.dataLabel&&(S.dataLabel.placed=!1),S.contrastColor&&w.css({color:S.contrastColor}))},v.prototype.drawDataLabels=function(){var S,w,x,c,g,r=this,a=r.data,t=r.options.dataLabels.distance,i=a.length;for(r.center[2]-=2*t;i--;)w=(S=(x=a[i]).half)?1:-1,g=x.plotY,x.labelDistance=f(x.options.dataLabels&&x.options.dataLabels.distance,t),r.maxLabelDistance=Math.max(x.labelDistance,r.maxLabelDistance||0),c=r.getX(g,S,x),x.labelPosition={natural:{x:0,y:g},final:{},alignment:S?"right":"left",connectorPosition:{breakAt:{x:c+(x.labelDistance-5)*w,y:g},touchingSliceAt:{x:c+x.labelDistance*w,y:g}}};X.seriesTypes[r.options.dataLabels.inside?"column":"pie"].prototype.drawDataLabels.call(this)},v.prototype.translate=function(){var S,w,x,c,g,r,a,t,i,o,e=0,s=this,n=s.chart,l=s.options,b=l.reversed,k=l.ignoreHiddenPoint,D=n.plotWidth,d=n.plotHeight,C=0,A=l.center,N=Q(A[0],D),R=Q(A[1],d),L=Q(l.width,D),O=Q(l.height,d),j=Q(l.neckWidth,D),Y=Q(l.neckHeight,d),H=R-O/2+O-Y,W=s.data,q=l.dataLabels.position==="left"?1:0;function Q(J,nt){return/%$/.test(J)?nt*parseInt(J,10)/100:parseInt(J,10)}s.getWidthAt=function(J){return J>H||O===Y?j:j+(L-j)*(1-(J-(R-O/2))/(O-Y))},s.getX=function(J,nt,lt){return N+(nt?-1:1)*(s.getWidthAt(b?2*R-J:J)/2+lt.labelDistance)},s.center=[N,R,O],s.centerX=N,W.forEach(function(J){k&&J.visible===!1||(e+=J.y)}),W.forEach(function(J){o=null,x=e?J.y/e:0,t=(g=R-O/2+C*O)+x*O,S=s.getWidthAt(g),r=(c=N-S/2)+S,S=s.getWidthAt(t),i=(a=N-S/2)+S,g>H?(c=a=N-j/2,r=i=N+j/2):t>H&&(o=t,S=s.getWidthAt(H),i=(a=N-S/2)+S,t=H),b&&(g=2*R-g,t=2*R-t,o!==null&&(o=2*R-o)),w=[["M",c,g],["L",r,g],["L",i,t]],o!==null&&w.push(["L",i,o],["L",a,o]),w.push(["L",a,t],["Z"]),J.shapeType="path",J.shapeArgs={d:w},J.percentage=100*x,J.plotX=N,J.plotY=(g+(o||t))/2,J.tooltipPos=[N,J.plotY],J.dlBox={x:a,y:g,topWidth:r-c,bottomWidth:i-a,height:Math.abs(f(o,t)-g),width:NaN},J.slice=V,J.half=q,k&&J.visible===!1||(C+=x)}),P(s,"afterTranslate")},v.prototype.sortByAngle=function(S){S.sort(function(w,x){return w.plotY-x.plotY})},v.defaultOptions=h(I.defaultOptions,{animation:!1,center:["50%","50%"],width:"90%",neckWidth:"30%",height:"100%",neckHeight:"25%",reversed:!1,size:!0,dataLabels:{connectorWidth:1,verticalAlign:"middle"},states:{select:{color:"#cccccc",borderColor:"#000000"}}}),v}(I);return M(m.prototype,{animate:V}),E(G,"afterHideAllOverlappingLabels",function(){this.series.forEach(function(u){var v=u.options&&u.options.dataLabels;y(v)&&(v=v[0]),u.is("pie")&&u.placeDataLabels&&v&&!v.inside&&u.placeDataLabels()})}),X.registerSeriesType("funnel",m),m}),et(_,"Series/Pyramid/PyramidSeries.js",[_["Series/Funnel/FunnelSeries.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,X){var U,$=this&&this.__extends||(U=function(z,I){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,M){E.__proto__=M}||function(E,M){for(var P in M)M.hasOwnProperty(P)&&(E[P]=M[P])},U(z,I)},function(z,I){function E(){this.constructor=z}U(z,I),z.prototype=I===null?Object.create(I):(E.prototype=I.prototype,new E)}),Z=X.merge,V=function(z){function I(){var E=z!==null&&z.apply(this,arguments)||this;return E.data=void 0,E.options=void 0,E.points=void 0,E}return $(I,z),I.defaultOptions=Z(G.defaultOptions,{neckWidth:"0%",neckHeight:"0%",reversed:!0}),I}(G);return B.registerSeriesType("pyramid",V),V}),et(_,"masters/modules/funnel.src.js",[],function(){})},it.exports?(pt.default=pt,it.exports=pt):(ht=[st(4783)],(ct=function(ft){return pt(ft),pt.Highcharts=ft,pt}.apply(rt,ht))===void 0||(it.exports=ct))},2281:(it,rt,st)=>{st.r(rt),st.d(rt,{default:()=>ye});var ht=st(6096),ct=st(5436),pt=st(3269);function ft(Et){var Gt=this.__data__=new ht.A(Et);this.size=Gt.size}ft.prototype.clear=function(){this.__data__=new ht.A,this.size=0},ft.prototype.delete=function(Et){var Gt=this.__data__,Yt=Gt.delete(Et);return this.size=Gt.size,Yt},ft.prototype.get=function(Et){return this.__data__.get(Et)},ft.prototype.has=function(Et){return this.__data__.has(Et)},ft.prototype.set=function(Et,Gt){var Yt=this.__data__;if(Yt instanceof ht.A){var $t=Yt.__data__;if(!ct.A||$t.length<199)return $t.push([Et,Gt]),this.size=++Yt.size,this;Yt=this.__data__=new pt.A($t)}return Yt.set(Et,Gt),this.size=Yt.size,this};const _=ft;var et=st(6124);st(9465);var G=st(4044),B=st(7313);const X=function(Et){return(0,B.A)(Et)&&(0,G.A)(Et)=="[object Arguments]"};var U=Object.prototype,$=U.hasOwnProperty,Z=U.propertyIsEnumerable;const V=X(function(){return arguments}())?X:function(Et){return(0,B.A)(Et)&&$.call(Et,"callee")&&!Z.call(Et,"callee")};var z=st(6956),I=st(9600),E=T&&!T.nodeType&&T,M=E&&!0&&p&&!p.nodeType&&p,P=M&&M.exports===E?I.A.Buffer:void 0;const y=(P?P.isBuffer:void 0)||function(){return!1};var h=st(5378);const f=function(Et){return typeof Et=="number"&&Et>-1&&Et%1==0&&Et<=9007199254740991};var m={};m["[object Float32Array]"]=m["[object Float64Array]"]=m["[object Int8Array]"]=m["[object Int16Array]"]=m["[object Int32Array]"]=m["[object Uint8Array]"]=m["[object Uint8ClampedArray]"]=m["[object Uint16Array]"]=m["[object Uint32Array]"]=!0,m["[object Arguments]"]=m["[object Array]"]=m["[object ArrayBuffer]"]=m["[object Boolean]"]=m["[object DataView]"]=m["[object Date]"]=m["[object Error]"]=m["[object Function]"]=m["[object Map]"]=m["[object Number]"]=m["[object Object]"]=m["[object RegExp]"]=m["[object Set]"]=m["[object String]"]=m["[object WeakMap]"]=!1;const u=function(Et){return function(Gt){return Et(Gt)}};var v=st(6713),S=T&&!T.nodeType&&T,w=S&&!0&&p&&!p.nodeType&&p,x=w&&w.exports===S&&v.A.process;const c=function(){try{return w&&w.require&&w.require("util").types||x&&x.binding&&x.binding("util")}catch(Et){}}();var g=c&&c.isTypedArray;const r=g?u(g):function(Et){return(0,B.A)(Et)&&f(Et.length)&&!!m[(0,G.A)(Et)]};var a=Object.prototype.hasOwnProperty;const t=function(Et,Gt){var Yt=(0,z.A)(Et),$t=!Yt&&V(Et),ce=!Yt&&!$t&&y(Et),pe=!Yt&&!$t&&!ce&&r(Et),Wt=Yt||$t||ce||pe,At=Wt?function(Qt,de){for(var ne=-1,ue=Array(Qt);++ne<Qt;)ue[ne]=de(ne);return ue}(Et.length,String):[],Bt=At.length;for(var Ht in Et)!a.call(Et,Ht)||Wt&&(Ht=="length"||ce&&(Ht=="offset"||Ht=="parent")||pe&&(Ht=="buffer"||Ht=="byteLength"||Ht=="byteOffset")||(0,h.A)(Ht,Bt))||At.push(Ht);return At};var i=Object.prototype;const o=function(Et){var Gt=Et&&Et.constructor;return Et===(typeof Gt=="function"&&Gt.prototype||i)},e=function(Et,Gt){return function(Yt){return Et(Gt(Yt))}},s=e(Object.keys,Object);var n=Object.prototype.hasOwnProperty,l=st(405);const b=function(Et){return Et!=null&&f(Et.length)&&!(0,l.A)(Et)},k=function(Et){return b(Et)?t(Et):function(Gt){if(!o(Gt))return s(Gt);var Yt=[];for(var $t in Object(Gt))n.call(Gt,$t)&&$t!="constructor"&&Yt.push($t);return Yt}(Et)};var D=st(7942);const d=function(){return[]};var C=Object.prototype.propertyIsEnumerable,A=Object.getOwnPropertySymbols;const N=A?function(Et){return Et==null?[]:(Et=Object(Et),function(Gt,Yt){for(var $t=-1,ce=Gt==null?0:Gt.length,pe=0,Wt=[];++$t<ce;){var At=Gt[$t];Yt(At,$t,Gt)&&(Wt[pe++]=At)}return Wt}(A(Et),function(Gt){return C.call(Et,Gt)}))}:d,R=function(Et,Gt){for(var Yt=-1,$t=Gt.length,ce=Et.length;++Yt<$t;)Et[ce+Yt]=Gt[Yt];return Et},L=e(Object.getPrototypeOf,Object),O=function(Et,Gt,Yt){var $t=Gt(Et);return(0,z.A)(Et)?$t:R($t,Yt(Et))},j=function(Et){return O(Et,k,N)};var Y=st(123);const H=(0,Y.A)(I.A,"DataView"),W=(0,Y.A)(I.A,"Promise"),q=(0,Y.A)(I.A,"Set"),Q=(0,Y.A)(I.A,"WeakMap");var J=st(1548),nt="[object Map]",lt="[object Promise]",gt="[object Set]",mt="[object WeakMap]",bt="[object DataView]",yt=(0,J.A)(H),dt=(0,J.A)(ct.A),ot=(0,J.A)(W),at=(0,J.A)(q),ut=(0,J.A)(Q),vt=G.A;(H&&vt(new H(new ArrayBuffer(1)))!=bt||ct.A&&vt(new ct.A)!=nt||W&&vt(W.resolve())!=lt||q&&vt(new q)!=gt||Q&&vt(new Q)!=mt)&&(vt=function(Et){var Gt=(0,G.A)(Et),Yt=Gt=="[object Object]"?Et.constructor:void 0,$t=Yt?(0,J.A)(Yt):"";if($t)switch($t){case yt:return bt;case dt:return nt;case ot:return lt;case at:return gt;case ut:return mt}return Gt});const Ct=vt;var xt=Object.prototype.hasOwnProperty;const St=I.A.Uint8Array,Mt=function(Et){var Gt=new Et.constructor(Et.byteLength);return new St(Gt).set(new St(Et)),Gt};var wt=/\w*$/,Tt=st(3516),Lt=Tt.A?Tt.A.prototype:void 0,Pt=Lt?Lt.valueOf:void 0;const Dt=function(Et,Gt,Yt){var $t,ce,pe,Wt=Et.constructor;switch(Gt){case"[object ArrayBuffer]":return Mt(Et);case"[object Boolean]":case"[object Date]":return new Wt(+Et);case"[object DataView]":return function(At,Bt){var Ht=Mt(At.buffer);return new At.constructor(Ht,At.byteOffset,At.byteLength)}(Et);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(At,Bt){var Ht=Mt(At.buffer);return new At.constructor(Ht,At.byteOffset,At.length)}(Et);case"[object Map]":case"[object Set]":return new Wt;case"[object Number]":case"[object String]":return new Wt(Et);case"[object RegExp]":return(pe=new(ce=Et).constructor(ce.source,wt.exec(ce))).lastIndex=ce.lastIndex,pe;case"[object Symbol]":return $t=Et,Pt?Object(Pt.call($t)):{}}};var jt=Object.create;const Ot=function(){function Et(){}return function(Gt){if(!(0,D.A)(Gt))return{};if(jt)return jt(Gt);Et.prototype=Gt;var Yt=new Et;return Et.prototype=void 0,Yt}}();var It=c&&c.isMap;const Nt=It?u(It):function(Et){return(0,B.A)(Et)&&Ct(Et)=="[object Map]"};var Zt=c&&c.isSet;const zt=Zt?u(Zt):function(Et){return(0,B.A)(Et)&&Ct(Et)=="[object Set]"};var Xt="[object Arguments]",Kt="[object Function]",me="[object Object]",Ut={};Ut[Xt]=Ut["[object Array]"]=Ut["[object ArrayBuffer]"]=Ut["[object DataView]"]=Ut["[object Boolean]"]=Ut["[object Date]"]=Ut["[object Float32Array]"]=Ut["[object Float64Array]"]=Ut["[object Int8Array]"]=Ut["[object Int16Array]"]=Ut["[object Int32Array]"]=Ut["[object Map]"]=Ut["[object Number]"]=Ut[me]=Ut["[object RegExp]"]=Ut["[object Set]"]=Ut["[object String]"]=Ut["[object Symbol]"]=Ut["[object Uint8Array]"]=Ut["[object Uint8ClampedArray]"]=Ut["[object Uint16Array]"]=Ut["[object Uint32Array]"]=!0,Ut["[object Error]"]=Ut[Kt]=Ut["[object WeakMap]"]=!1;const te=function Et(Gt,Yt,$t,ce,pe,Wt){var At,Bt=1&Yt;if(At!==void 0)return At;if(!(0,D.A)(Gt))return Gt;var Ht=(0,z.A)(Gt);if(Ht)At=function(qt){var ve=qt.length,ae=new qt.constructor(ve);return ve&&typeof qt[0]=="string"&&xt.call(qt,"index")&&(ae.index=qt.index,ae.input=qt.input),ae}(Gt);else{var Qt=Ct(Gt),de=Qt==Kt||Qt=="[object GeneratorFunction]";if(y(Gt))return function(qt,ve){return qt.slice()}(Gt);if(Qt==me||Qt==Xt||de&&!pe)At=de?{}:function(qt){return typeof qt.constructor!="function"||o(qt)?{}:Ot(L(qt))}(Gt);else{if(!Ut[Qt])return pe?Gt:{};At=Dt(Gt,Qt)}}Wt||(Wt=new _);var ne=Wt.get(Gt);if(ne)return ne;Wt.set(Gt,At),zt(Gt)?Gt.forEach(function(qt){At.add(Et(qt,Yt,$t,qt,Gt,Wt))}):Nt(Gt)&&Gt.forEach(function(qt,ve){At.set(ve,Et(qt,Yt,$t,ve,Gt,Wt))});var ue=Ht?void 0:j(Gt);return function(qt,ve){for(var ae=-1,fo=qt==null?0:qt.length;++ae<fo&&ve(qt[ae],ae,qt)!==!1;);}(ue||Gt,function(qt,ve){ue&&(qt=Gt[ve=qt]),(0,et.A)(At,ve,Et(qt,Yt,$t,ve,Gt,Wt))}),At},ye=function(Et){return te(Et,5)}},2382:function(it,rt,st){var ht=this&&this.__read||function(G,B){var X=typeof Symbol=="function"&&G[Symbol.iterator];if(!X)return G;var U,$,Z=X.call(G),V=[];try{for(;(B===void 0||B-- >0)&&!(U=Z.next()).done;)V.push(U.value)}catch(z){$={error:z}}finally{try{U&&!U.done&&(X=Z.return)&&X.call(Z)}finally{if($)throw $.error}}return V},ct=this&&this.__spreadArray||function(G,B,X){if(X||arguments.length===2)for(var U,$=0,Z=B.length;$<Z;$++)!U&&$ in B||(U||(U=Array.prototype.slice.call(B,0,$)),U[$]=B[$]);return G.concat(U||Array.prototype.slice.call(B))},pt=this&&this.__importDefault||function(G){return G&&G.__esModule?G:{default:G}};Object.defineProperty(rt,"__esModule",{value:!0});var ft=pt(st(8552)),_=pt(st(4501)),et=st(622);rt.default=function(G){var B,X=G.fireEvent,U=new Map,$=!1;function Z(M,P){for(var y=[M,P],h=0;h<y.length;h++)for(var f=y[h],m=0;m<f.length;m++){for(var u=(m+1)%f.length,v=f[m],S=f[u],w={x:S.y-v.y,y:v.x-S.x},x=void 0,c=void 0,g=0;g<M.length;g++){var r=w.x*M[g].x+w.y*M[g].y;((0,_.default)(x)||r<x)&&(x=r),((0,_.default)(c)||r>c)&&(c=r)}var a=void 0,t=void 0;for(g=0;g<P.length;g++)r=w.x*P[g].x+w.y*P[g].y,((0,_.default)(a)||r<a)&&(a=r),((0,_.default)(t)||r>t)&&(t=r);if(c<a||t<x)return!1}return!0}function V(M,P){return(M.yAxis||[]).some(function(y){return!(!y.options.stackLabels||!y.stacking.stacks)&&Object.values(y.stacking.stacks||[]).some(function(h){return Object.values(h).some(function(f){return f.label===P})})})}function z(M){return M.series&&M.series.some(function(P){return(0,ft.default)(P,"xAxis.axisLine.animating")})}function I(M,P,y){return y&&!(0,_.default)(y.totalsRank)&&V(M,P)?y.totalsRank:P.labelrank||0}function E(){$||($=!0,U.forEach(function(M,P){if(!z(P)){if(M.length){var y=M[M.length-1];P.hideOverlappingLabels(y.labels,y.options)}U.delete(P)}}),U.size&&(clearTimeout(B),B=setTimeout(E,100)),$=!1)}G.wrap(G.Axis.prototype,"addPlotBandOrLine",function(M){var P=M.apply(this,[].slice.call(arguments,1));return(0,ft.default)(P,"options.isPlotBand")===!0&&(this.sisensePlotBands||(this.sisensePlotBands=[]),this.sisensePlotBands.push(P)),P}),G.wrap(G.PlotLineOrBand.prototype,"render",function(M){var P=this,y=P.axis,h=P.options,f=h.to,m=h.from,u=(0,et.defined)(m)&&(0,et.defined)(f),v=G.pick(h.zIndex,0),S=y.chart.renderer,w=u?"bands":"lines",x={zIndex:v};w+="-labels-"+v;var c=y.plotLinesAndBandsGroups[w];return c||(x.translateX=0,x.translateY=0,y.plotLinesAndBandsGroups[w]=c=S.g("plot-"+w).attr(x).add()),M.apply(this,[].slice.call(arguments,1))}),G.PlotLineOrBand.prototype.renderLabel=function(M,P,y,h){var f=this,m=f.axis,u=m.chart.renderer,v=f.label,S=(y?"bands":"lines")+"-labels-"+h,w=m.plotLinesAndBandsGroups[S];v||(f.label=v=u.text(this.getLabelText(M),0,0,M.useHTML).attr({align:M.textAlign||M.align,rotation:M.rotation,class:"highcharts-plot-"+(y?"band":"line")+"-label "+(M.className||""),zIndex:h}).add(w),m.chart.styledMode||v.css(G.merge({textOverflow:"ellipsis"},M.style)));var x=P.xBounds||[P[0][1],P[1][1],y?P[2][1]:P[0][1]],c=P.yBounds||[P[0][2],P[1][2],y?P[2][2]:P[0][2]],g=(0,et.arrayMin)(x),r=(0,et.arrayMin)(c);if(v.align(M,!1,{x:g,y:r,width:(0,et.arrayMax)(x)-g,height:(0,et.arrayMax)(c)-r}),!(v.styles.width&&v.styles.width!=="auto"||v.alignValue&&v.alignValue!=="left")){var a=M.clip?m.width:m.chart.chartWidth;v.css({width:(v.rotation===90?m.height-(v.alignAttr.y-m.top):a-(v.alignAttr.x-m.left))+"px"})}v.show(!0)},G.addEvent(G.Chart.prototype,"render",function(){var M=[];(this.xAxis||[]).forEach(function(P){P.plotLinesAndBands&&P.plotLinesAndBands.forEach(function(y){y.label&&y.label.visibility!=="hidden"&&(y.label.isSerieLabel=!0,M.push(y.label))})}),M.length>0&&this.hideOverlappingLabels(M)}),G.Chart.prototype.hideOverlappingLabels=function(M,P){var y=this;P===void 0&&(P={});var h=this;if(z(h))return function(t,i,o){U.has(t)||U.set(t,[]),U.get(t).push({labels:i,options:o}),E()}(h,ct([],ht(M),!1),P);E(),(M=M.filter(function(t){var i=t==null?void 0:t.element,o=(t==null?void 0:t.className)==="stack-labels",e=(t==null?void 0:t.visibility)!=="hidden"||o&&(t==null?void 0:t.placed);return i&&(t==null||t.opacitySetter(0,"opacity",t.element),t==null||t.visibilitySetter("hidden","visibility",t.element)),i&&e})).forEach(function(t){t.oldOpacity=t.opacity,t.newOpacity=1,t.polygon=function(i){var o=document.createElementNS("http://www.w3.org/2000/svg","svg"),e=i.element,s=e.transform.baseVal.consolidate().matrix,n=e.getBBox();function l(b,k){var D=o.createSVGPoint();D.x=b,D.y=k;var d=D.matrixTransform(s);return{x:d.x,y:d.y}}return[l(n.x,n.y),l(n.x,n.y+n.height),l(n.x+n.width,n.y+n.height),l(n.x+n.width,n.y)]}(t)}),M.sort(function(t,i){return I(h,i,P)-I(h,t,P)});var f=this.plotBackground&&this.plotBackground.element?this.plotBackground.element.getBoundingClientRect():null,m=f?{x:(0,et.defined)(f.x)?f.x:f.left,y:(0,et.defined)(f.y)?f.y:f.top,width:f.width,height:f.height}:null,u=(0,ft.default)(h,"options.chart.type"),v=u==="area"||u==="areaspline",S=u==="pie";if((v||u==="column"||u==="bar"||u==="line"||u==="bubble"||u==="boxplot")&&m){m.x-=10,m.y-=10,m.width+=20,m.height+=20,v&&!function(t){var i=(t.xAxis||[]).filter(function(o){return(0,ft.default)(o,"options.labels.enabled")});return i.length>1||i.some(function(o){return o.options.plotBands&&o.options.plotBands.length})}(h)&&(m.y-=30,m.height+=30);var w=this.series&&this.series.some(function(t){return(0,ft.default)(t,"options.stacking")==="percent"});M.forEach(function(t){var i,o,e,s;t.newOpacity===0||t.isSerieLabel||w&&V(y,t)||(i=m,o=t.element.getBoundingClientRect(),e=(0,et.defined)(o.x)?o.x:o.left,s=(0,et.defined)(o.y)?o.y:o.top,i.x<=e&&i.y<=s&&i.x+i.width>=e+o.width&&i.y+i.height>=s+o.height)||(t.newOpacity=0)})}for(var x=M.length,c=0;c<x;c++)for(var g=M[c],r=c+1;r<x;++r){var a=M[r];g.polygon&&a.polygon&&g!==a&&g.newOpacity!==0&&a.newOpacity!==0&&Z(g.polygon,a.polygon)&&((I(h,g,P)<I(h,a,P)?g:a).newOpacity=0)}M.forEach(function(t){var i,o;t&&(o=t.newOpacity,S&&!t.placed||(o?t.show(!0):i=function(){t.hide()},t.oldOpacity!==o&&(t.alignAttr?(t.alignAttr.opacity=o,t[t.isOld?"animate":"attr"](t.alignAttr,null,i),X(h,"afterHideOverlappingLabels")):t.attr({opacity:o})),t.isOld=!0))})},G.wrap(G.SVGElement.prototype,"animate",function(M,P,y,h){var f=this;return f.animating=!0,M.apply(this,[P,y,function(){f.animating=!1,h?h(arguments):y&&y.complete&&y.complete(arguments)}])})}},2397:function(it,rt,st){var ht=this&&this.__assign||function(){return ht=Object.assign||function(G){for(var B,X=1,U=arguments.length;X<U;X++)for(var $ in B=arguments[X])Object.prototype.hasOwnProperty.call(B,$)&&(G[$]=B[$]);return G},ht.apply(this,arguments)},ct=this&&this.__importDefault||function(G){return G&&G.__esModule?G:{default:G}};Object.defineProperty(rt,"__esModule",{value:!0});var pt=ct(st(8552)),ft=ct(st(4501)),_=ct(st(2281)),et=st(622);rt.default=function(G){var B=G.merge,X=G.extend,U=G.pick;G.getOptions().plotOptions.boxplot.lineWidth=1,G.getOptions().plotOptions.boxplot.fillOpacity=.6,G.getOptions().plotOptions.boxplot.strokeOpacity=.6,G.getOptions().plotOptions.boxplot.strokeWidth=1,G.getOptions().plotOptions.boxplot.states.select.lineWidth=1,G.getOptions().plotOptions.boxplot.states.select.fillOpacity=.3,G.getOptions().plotOptions.boxplot.states.select.strokeOpacity=.3,G.getOptions().plotOptions.boxplot.states.hover.lineWidth=1,G.getOptions().plotOptions.boxplot.states.hover.fillOpacity=1,G.getOptions().plotOptions.boxplot.states.hover.strokeOpacity=1,G.wrap(G.seriesTypes.boxplot.prototype,"drawPoints",function(){var $,Z,V,z,I,E,M,P,y,h,f,m,u,v,S,w,x,c,g,r,a,t,i,o,e,s,n=this,l=n.points,b=n.options,k=n.chart.renderer,D=n.doQuartiles!==!1,d=parseInt(n.options.whiskerLength,10)/100;l.forEach(function(C){if(f=C.graphic,o=C.shapeArgs,u={},x={},g={},e=C.color||n.color,s=C.innerBoxColor||n.color,C.plotY!==void 0){$={fill:s,"fill-opacity":.75,stroke:n.color,"stroke-opacity":1,"stroke-width":1},C.selected&&($.fill=s,$["fill-opacity"]=.3,$["stroke-opacity"]=.3),V={fill:s,"fill-opacity":$["fill-opacity"],stroke:e,"stroke-width":1};var A={fill:$.fill,"fill-opacity":$["fill-opacity"],"stroke-opacity":$["fill-opacity"]};Z=ht({},$),r=o.width,a=Math.floor(o.x),t=a+r,i=Math.round(r/2),z=Math.floor(D?C.q1Plot:C.lowPlot),I=Math.floor(D?C.q3Plot:C.lowPlot),E=Math.floor(C.highPlot),M=Math.floor(C.lowPlot),u.stroke=C.stemColor||b.stemColor||e,u["stroke-width"]=U(C.stemWidth,b.stemWidth,b.lineWidth),u.dashstyle=C.stemDashStyle||b.stemDashStyle,x.stroke=C.whiskerColor||b.whiskerColor||e,x["stroke-width"]=U(C.whiskerWidth,b.whiskerWidth,b.lineWidth),g.stroke=C.medianColor||b.medianColor||e,g["stroke-width"]=U(C.medianWidth,b.medianWidth,b.lineWidth),g["stroke-linecap"]="round",y=u["stroke-width"]%2/2,m=["M",h=a+i+y,I,"L",h,E,"M",h,z,"L",h,M,"z"],D&&(y=$["stroke-width"]%2/2,h=Math.floor(h)+y,z=Math.floor(z)+y,I=Math.floor(I)+y,v=["M",a+=y,I,"L",a,z,"L",t+=y,z,"L",t,I,"L",a,I,"z"]),d&&(y=x["stroke-width"]%2/2,S=["M",h-i*d,E+=y,"L",h+i*d,E,"M",h-i*d,M+=y,"L",h+i*d,M]),y=2,P=Math.round(C.medianPlot)+y,c=["M",a,P,"L",t,P,"z"],D&&(w=["M",a+.5,P+.5,"L",a+.5,z-.5,"L",t-.5,z-.5,"L",t-.5,P+.5,"L",a+.5,P+.5,"z"]),f?(f.attr(A),C.stem.attr(u),C.stem.animate({d:m}),d&&(C.whiskers.attr(x),C.whiskers.animate({d:S})),D&&(C.box.attr(Z),C.box.attr("stroke",Z.stroke),C.box.animate({d:v}),C.innerBox.animate({d:w}),C.innerBox.attr(V)),C.medianShape.attr(g),C.medianShape.animate({d:c})):(C.graphic=f=k.g().add(n.group).attr(A).attr("name","graphic"),C.stem=k.path(m).attr(u).attr("name","stem").add(f),d&&(C.whiskers=k.path(S).attr(x).attr("name","whiskers").add(f)),D&&(C.box=k.path(v).attr(Z).attr("stroke",Z.stroke).attr("name","box").add(f),C.innerBox=k.path(w).attr(V).attr("name","inner-box").add(f)),C.medianShape=k.path(c).attr(g).attr("name","median").add(f))}})}),G.wrap(G.seriesTypes.boxplot.prototype,"drawDataLabels",function($,Z,V){var z,I,E,M,P=this,y=P.options,h=y.cursor,f=P.points,m=y.dataLabels,u=[{name:"median",enabled:!0,indent:-15,path:function(x,c){return["M",x,c,"L",x-10,c]}},{name:"q3",enabled:!0,indent:-20,path:function(x,c){return["M",x,c,"L",x-2,c+5,x-10,c+5]}},{name:"high",enabled:!0,indent:-20,path:function(x,c){return["M",x,c,"L",x-2,c+5,x-10,c+5]}},{name:"q1",enabled:!0,indent:-7,path:function(x,c){return["M",x,c,"L",x-2,c-5,x-10,c-5]}},{name:"low",enabled:!0,indent:-7,path:function(x,c){return["M",x,c,"L",x-2,c-5,x-10,c-5]}}];if($.call(this,m,V),P.data.length>0){var v=P.barW;P.barW>P.options.maxPointWidth&&(v=P.options.maxPointWidth),this.data.forEach(function(x){x.shapeArgs.x+=(x.shapeArgs.width-v)/2,x.shapeArgs.width=v})}if(m.enabled||P._hasPointLabels){M=P.plotGroup("dataLabelsGroup","data-labels",P.visible?"visible":"hidden",m.zIndex||6);var S=P.chart.plotBox.height;if(P.type==="boxplot"&&S<200)if((0,et.defined)((0,pt.default)(f,"0.dataLabel")))for(var w=0;w<f.length;w++)f[w].dataLabel&&((0,et.defined)((0,pt.default)(f[w].dataLabel,"high"))&&f[w].dataLabel.high.destroy(),(0,et.defined)((0,pt.default)(f[w].dataLabel,"low"))&&f[w].dataLabel.low.destroy());else delete u[2],delete u[4];I=m,f.forEach(function(x){var c,g,r,a,t,i,o=!0,e=x.connector,s=x.shapeArgs,n=Math.floor(s.x)+s.width;z=x.options&&x.options.dataLabels;var l=U(z&&z.enabled,I.enabled),b=x.innerBoxColor||P.color;if(l){m=B(I,z),i=m.rotation,r=x.getLabelConfig();var k=!1,D=(0,_.default)(u);(0,et.defined)(x,"shapeArgs.height")&&x.shapeArgs.height<30&&(delete D[2],delete D[4],x.shapeArgs.height===0&&(k=!0)),(0,et.defined)(x.dataLabel)||(x.dataLabel={},x.dataLabel.element={},x.dataLabel.destroy=function(){G.removeEvent(x.dataLabel,"add"),G.removeEvent(x.dataLabel.element,"mouseenter"),G.removeEvent(x.dataLabel.element,"mouseleave"),D.forEach(function(d){d&&x.dataLabel[d.name]&&(x.dataLabel[d.name].destroy(),x.dataLabelLine[d.name].destroy())}),x.dataLabel=null,x.dataLabelLine=null}),(0,et.defined)(x.dataLabelLine)||(x.dataLabelLine={}),D.forEach(function(d){if(d&&d.enabled){c=x.dataLabel[d.name],g=x.dataLabelLine[d.name],E=m.formatter.call(r,m,d.name),m.style.color=U(m.color,m.style.color,P.color,"black"),m.x=n+12,m.y=x[d.name+"Plot"]-x.highPlot+d.indent;var C=P.visible&&P.chart.isInsidePlot(x.plotX,x.plotY,P.chart.inverted)&&P.chart.isInsidePlot(x.plotX,x.yBottom,P.chart.inverted);if(c)C?((0,et.defined)(E)?(c.attr({text:E}),o=!1):(x.dataLabel[d.name]=c=c.destroy(),e&&(x.connector=e.destroy())),g&&g.destroy()):(x.dataLabel[d.name]=c=c.destroy(),g&&g.destroy());else if((0,et.defined)(E)&&E!=="null"){for(t in a={fill:m.backgroundColor,stroke:m.borderColor,"stroke-width":m.borderWidth,r:m.borderRadius||0,rotation:i,padding:m.padding,zIndex:1})(0,ft.default)(a[t])&&delete a[t];C&&((c=P.chart.renderer[i?"text":"label"](E,0,-999,null,null,null,m.useHTML)).attr(a).css(X(m.style,h&&{cursor:h})).add(M).shadow(m.shadow),c.options={},x.dataLabel[d.name]=c)}if(C){var A={fill:b,"fill-opacity":.75,stroke:P.color,"stroke-opacity":1,"stroke-width":1},N=13;k&&(d.name==="q1"?N=5:d.name==="q3"&&(N=21)),g=x.dataLabelLine[d.name]=x.series.chart.renderer.path(d.path(2,N)).attr({"stroke-width":1,stroke:A.stroke,"stroke-opacity":A["fill-opacity"]||1}).add(c)}c&&P.alignDataLabel(x,c,m,null,o,g,d.name),c.options={},x["dataLabel"+d.name]=c}})}x.dataLabels=u.map(function(d){return x.dataLabel[d.name]}).filter(function(d){return d})}),P.dataLabelCollections=[],u.map(function(x){return x.name}).forEach(function(x){P.dataLabelCollections.push("dataLabel"+x)})}}),G.wrap(G.seriesTypes.boxplot.prototype,"alignDataLabel",function($,Z,V,z,I,E,M,P){var y=this.chart,h=y.inverted,f=Z.dlBox||Z.shapeArgs,m=Z.below||Z.plotY>U(this.translatedThreshold,y.plotSizeY),u=U(z.inside,!!this.options.stacking);f&&((I=B(f)).y+=m?I.height:0,I.height=0),z.align=U(z.align,"left"),z.verticalAlign=U(z.verticalAlign,h||u?"middle":m?"top":"bottom");var v,S=V.getBBox(),w=this.visible&&y.isInsidePlot(Z.plotX,Z.plotY,h)&&y.isInsidePlot(Z.plotX,Z.yBottom,h);if(w){switch(X(z,{width:S.width,height:S.height}),v={align:z.align,x:z.x,y:I.y+z.y+I.height/2},P){case"q3":(0,et.defined)(Z,"dataLabel.median.y")&&Z.dataLabel.median.y!=999&&v.y+z.height>Z.dataLabel.median.y&&(v.y=Z.dataLabel.median.y-(z.height/2+4));break;case"high":(0,et.defined)(Z,"dataLabel.q3.y")&&Z.dataLabel.q3.y!=999&&v.y+z.height>Z.dataLabel.q3.y&&(v.y=Z.dataLabel.q3.y-(z.height/2+4));break;case"q1":(0,et.defined)(Z,"dataLabel.median.y")&&Z.dataLabel.median.y!=999&&v.y<Z.dataLabel.median.y+Z.dataLabel.median.height&&(v.y=Z.dataLabel.median.y+(z.height/2+4));break;case"low":(0,et.defined)(Z,"dataLabel.q1.y")&&Z.dataLabel.q1.y!=999&&v.y<Z.dataLabel.q1.y+Z.dataLabel.q1.height?v.y=Z.dataLabel.q1.y+(z.height/2+4):(0,et.defined)(Z,"yBottom")&&v.y+z.height>y.plotHeight&&(v.y=y.plotHeight-z.height)}v.y=isNaN(v.y)?0:v.y,V[E?"attr":"animate"](v)}w||(V.attr({y:-999}),V.placed=!1,M.attr({"stroke-opacity":0}))})}},2805:function(it,rt,st){var ht=this&&this.__importDefault||function(pt){return pt&&pt.__esModule?pt:{default:pt}};Object.defineProperty(rt,"__esModule",{value:!0});var ct={style:{fontSize:"13px",fontWeight:"normal",color:"#5B6372",fontFamily:ht(st(605)).default.fontFamily},borderWidth:1,borderColor:"#CCCCCC",backgroundColor:"#FFFFFF",borderRadius:10,hideDelay:20,shadow:{color:"#CECECE",offsetX:2,offsetY:2,width:5}};rt.default=ct},2807:function(it,rt,st){var ht=this&&this.__importDefault||function(et){return et&&et.__esModule?et:{default:et}};Object.defineProperty(rt,"__esModule",{value:!0});var ct=ht(st(8552)),pt=st(622),ft=ht(st(605)),_=st(6681);rt.default=function(et){var G=et.wrap;G(et.seriesTypes.pie.prototype,"drawDataLabels",function(B,X,U){var $,Z=this,V=Z.chart.renderer;B.call(this,X,U);var z=function(E,M,P,y){var h=V.text(M.slicePercentage+"%",M.newCenterX,M.newCenterY),f={class:"pie-percent-label",zIndex:13,"text-anchor":"middle","font-size":M.fontSize},m={"pointer-events":"none","font-family":(0,ct.default)(y,"options.dataLabels.style.fontFamily",ft.default.fontFamily),"letter-spacing":"-0.05em",color:"white",fontSize:!1},u=h.attr(f).attr(P).add(),v=h.element.getBBox().height/4,S={x:M.newCenterX,y:M.newCenterY+v};E.sisenseLabel=u.css(m).attr(S).add()},I=(0,ct.default)(Z,"chart.options.chart.isHighlightMode");Z.points.forEach(function(E){var M,P;if(E.graphic){if((0,ct.default)(E,"series.chart.options.plotOptions.pie.dataLabels.showPercentLabels")===!0)if(M=(0,_.getCalculatedPercentageLabelPosition)(E,V),P=(0,ct.default)(E,"series.chart.options.plotOptions.pie.dataLabels.pieMinimumFontSizeToTextLabel"),M.fontSize>P)if((0,pt.defined)((0,ct.default)(E,"sisenseLabel.element"))){var y={x:M.newCenterX,y:M.newCenterY};I&&(y.translateX=E.sliced?E.slicedTranslation.translateX:0,y.translateY=E.sliced?E.slicedTranslation.translateY:0),E.sisenseLabel.attr({text:M.slicePercentage+"%","font-size":M.fontSize}).animate(y)}else z(E,M,$,Z),E.sisenseLabel&&I&&((y={x:M.newCenterX,y:M.newCenterY}).translateX=E.sliced?E.slicedTranslation.translateX:0,y.translateY=E.sliced?E.slicedTranslation.translateY:0,E.sisenseLabel.attr({text:M.slicePercentage+"%","font-size":M.fontSize}).attr(y));else(0,pt.defined)((0,ct.default)(E,"sisenseLabel.element"))&&E.sisenseLabel.destroy()}else(0,ct.default)(E,"series.chart.options.plotOptions.pie.dataLabels.showPercentLabels")===!0&&(M=(0,_.getCalculatedPercentageLabelPosition)(E,V),P=(0,ct.default)(E,"series.chart.options.plotOptions.pie.dataLabels.pieMinimumFontSizeToTextLabel"),M.fontSize>P&&z(E,M,$,Z))})}),G(et.Point.prototype,"destroyElements",function(B,X,U){for(var $,Z=this,V=["decoration","sisenseLabel"],z=V.length;z--;)Z[$=V[z]]&&Z.visible&&Z[$].renderer&&Z[$].destroy();B.call(this,X,U)}),G(et.seriesTypes.pie.prototype.pointClass.prototype,"slice",function(B){B.apply(this,[].slice.call(arguments,1)),(0,ct.default)(this,"sisenseLabel.renderer")&&this.sisenseLabel.animate(this.getTranslate())}),et.seriesTypes.pie.prototype.placeDataLabels=function(){this.points.forEach(function(B){var X,U=B.dataLabel;U&&B.visible&&((X=U._pos)?(U.sideOverflow&&(U._attr.width=U.getBBox().width-U.sideOverflow,U.css({width:U._attr.width+"px",textOverflow:"ellipsis"}),U.shortened=!0),U.attr(U._attr),U[U.moved?"animate":"attr"](X),U.moved=!0):U&&U.attr({y:-9999}))},this)},et.Point.prototype.getClassName=function(){return"highcharts-point"+(this.selected||this.sliced?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+(this.colorIndex!==void 0?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")}}},3039:function(it,rt,st){var ht=this&&this.__assign||function(){return ht=Object.assign||function(X){for(var U,$=1,Z=arguments.length;$<Z;$++)for(var V in U=arguments[$])Object.prototype.hasOwnProperty.call(U,V)&&(X[V]=U[V]);return X},ht.apply(this,arguments)},ct=this&&this.__read||function(X,U){var $=typeof Symbol=="function"&&X[Symbol.iterator];if(!$)return X;var Z,V,z=$.call(X),I=[];try{for(;(U===void 0||U-- >0)&&!(Z=z.next()).done;)I.push(Z.value)}catch(E){V={error:E}}finally{try{Z&&!Z.done&&($=z.return)&&$.call(z)}finally{if(V)throw V.error}}return I},pt=this&&this.__spreadArray||function(X,U,$){if($||arguments.length===2)for(var Z,V=0,z=U.length;V<z;V++)!Z&&V in U||(Z||(Z=Array.prototype.slice.call(U,0,V)),Z[V]=U[V]);return X.concat(Z||Array.prototype.slice.call(U))},ft=this&&this.__importDefault||function(X){return X&&X.__esModule?X:{default:X}};Object.defineProperty(rt,"__esModule",{value:!0});var _=ft(st(8552)),et=ft(st(4441)),G=ft(st(2281)),B=st(622);rt.default=function(X){var U=X.removeEvent,$=X.defaultOptions.plotOptions,Z=X.fireEvent,V=X.color,z=X.extend,I=X.isNumber,E=X.merge,M=X.pick,P=X.Series,y=X.Point,h=navigator.userAgent,f=/(ipad|iphone|ipod)/g.test(h.toLowerCase()),m=document.documentElement.ontouchstart!==void 0,u=X.defaultOptions,v="highcharts-";X.Axis.prototype.allowNegativeLog=!0,X.addEvent(X.Axis,"afterInit",function(){var S=this.logarithmic;S&&(this.positiveValuesOnly=!1,S.log2lin=function(w){var x=w<0,c=Math.abs(w);c<10&&(c+=(10-c)/10);var g=Math.log(c)/Math.LN10;return x?-g:g},S.lin2log=function(w){var x=w<0,c=Math.pow(10,Math.abs(w));return c<10&&(c=10*(c-1)/9),x?-c:c})}),X.Series.prototype.setPercentStacks=function(){var S,w=this,x=w.stackKey,c=w.yAxis.stacking.stacks,g=new RegExp(/navigator.\d*/gi);S=w.name.match(g)?w.chart.yAxis[1].options.max||100:w.chart.yAxis[w.options.yAxis||0].options.max||100,[x,"-"+x].forEach(function(r){for(var a,t,i,o,e=w.xData.length;e--;)a=w.xData[e],(i=(t=c[r]&&c[r][a])&&t.points[w.index])&&(o=t.total?100/t.total:0,i[0]=(0,B.correctFloat)(i[0]*o*((0,B.defined)(S)?S/100:1)),i[1]=(0,B.correctFloat)(i[1]*o*((0,B.defined)(S)?S/100:1)),w.stackedYData[e]=i[1])})},X.seriesTypes.area.prototype.getStackPoints=function(S){var w=this,x=[],c=[],g=this.xAxis,r=this.yAxis,a=r.stacking.stacks[this.stackKey],t={},i=r.series,o=i.length,e=r.options.reversedStacks?1:-1,s=i.indexOf(w);if(S=S||this.points,this.options.stacking){for(var n=0;n<S.length;n++)S[n].leftNull=S[n].rightNull=void 0,t[S[n].x]=S[n];X.objectEach(a,function(b,k){b.total!==null&&c.push(k)}),c.sort(function(b,k){return b-k});var l=i.map(function(b){return b.visible});c.forEach(function(b,k){var D,d,C=0;if(t[b]&&!t[b].isNull)x.push(t[b]),[-1,1].forEach(function(R){var L=R===1?"rightNull":"leftNull",O=R===1?"rightCliff":"leftCliff",j=a[c[k+R]],Y=0;if(j)for(var H=s;H>=0&&H<o;){var W=i[H].index;(D=j.points[W])||(W===w.index?t[b][L]=!0:l[H]&&(d=a[b].points[W])&&(Y-=d[1]-d[0])),H+=e}t[b][O]=Y});else{for(var A=s;A>=0&&A<o;){var N=i[A].index;if(D=a[b].points[N]){C=D[1];break}A+=e}C=M(C,0),C=r.translate(C,0,1,0,1),x.push({isNull:!0,plotX:g.translate(b,0,0,0,1),x:b,plotY:C,yBottom:C,isDividerNull:t[b]&&t[b].isDividerNull})}})}return x},X.seriesTypes.areaspline.prototype.getStackPoints=X.seriesTypes.area.prototype.getStackPoints,X.seriesTypes.area.prototype.getGraphPath=function(S){var w,x,c,g=X.seriesTypes.line.prototype.getGraphPath,r=this.options,a=r.stacking,t=this.yAxis,i=[],o=[],e=this.index,s=t.stacking.stacks[this.stackKey],n=r.threshold,l=Math.round(t.getThreshold(r.threshold)),b=M(r.connectNulls,a==="percent"),k=function(W,q,Q){var J,nt,lt=S[W],gt=a&&s[lt.x].points[e],mt=lt[Q+"Null"]||0,bt=lt[Q+"Cliff"]||0,yt=!0;bt||mt?(J=(mt?gt[0]:gt[1])+bt,nt=gt[0]+bt,yt=!!mt):!a&&S[q]&&S[q].isNull&&(J=nt=n),J!==void 0&&(o.push({plotX:w,plotY:J===null?l:t.getThreshold(J),isNull:yt,isCliff:!0}),i.push({plotX:w,plotY:nt===null?l:t.getThreshold(nt),doCurve:!1}))};S=S||this.points,a&&(S=this.getStackPoints(S));for(var D=0,d=S.length;D<d;++D)if(a||(S[D].leftCliff=S[D].rightCliff=S[D].leftNull=S[D].rightNull=void 0),x=S[D].isNull,w=M(S[D].rectPlotX,S[D].plotX),c=a?M(S[D].yBottom,l):l,!x||b){var C=S[D-1],A=S[D+1],N=!S[D].isDividerNull&&C&&C.isDividerNull,R=!S[D].isDividerNull&&A&&A.isDividerNull;b&&!N||k(D,D-1,"left"),x&&!a&&b||(o.push(S[D]),i.push({x:D,plotX:w,plotY:c})),b&&!R||k(D,D+1,"right")}var L=g.call(this,o,!0,!0);i.reversed=!0;var O=g.call(this,i,!0,!0),j=O[0];j&&j[0]==="M"&&(O[0]=["L",j[1],j[2]]);var Y=L.concat(O);Y.length&&Y.push(["Z"]);var H=g.call(this,o,!1,b);return Y.xMap=L.xMap,this.areaPath=Y,H},X.seriesTypes.areaspline.prototype.getGraphPath=X.seriesTypes.area.prototype.getGraphPath,X.Series.prototype.pointAttribs=function(S,w){var x,c,g,r,a,t,i=this.options.marker,o=S&&S.options,e=o&&o.marker||{},s=this.color,n=o&&o.color,l=S&&S.color,b=M(e.lineWidth,i.lineWidth),k=S&&S.zone&&S.zone.color;return s=n||k||l||s,g=e.fillColor||i.fillColor||s,r=e.lineColor||i.lineColor||s,a=1,t=1,w&&(x=i.states[w],c=e.states&&e.states[w]||{},b=M(c.lineWidth,x.lineWidth,b+M(c.lineWidthPlus,x.lineWidthPlus,0)),g=c.fillColor||x.fillColor||g,r=c.lineColor||x.lineColor||r,a=c.fillOpacity||x.fillOpacity||1,t=c.fillOpacity||x.fillOpacity||1),{stroke:r,"stroke-width":b,"stroke-opacity":t,"fill-opacity":a,fill:g}},X.Point.prototype.setState=function(S,w){var x,c,g,r=this,a=Math.floor(r.plotX),t=r.plotY,i=r.series,o=i.options.states[S]||{},e=$[i.type].marker&&i.options.marker,s=e&&e.enabled===!1,n=e&&e.states&&e.states[S]||{},l=n.enabled===!1,b=i.stateMarkerGraphic,k=r.marker||{},D=i.chart,d=i.halo,C=e&&i.markerAttribs;if(!((S=S||"")===r.state&&!w||r.selected&&S!=="select"||o.enabled===!1||S&&(l||s&&n.enabled===!1)||S&&k.states&&k.states[S]&&k.states[S].enabled===!1)){if(C&&(c=i.markerAttribs(r,S)),r.graphic){r.state&&r.graphic.removeClass("highcharts-point-"+r.state),S&&r.graphic.addClass("highcharts-point-"+S);var A=r.innerBoxColor||i.color,N={fill:A,"fill-opacity":.8,stroke:i.color,"stroke-opacity":1,"stroke-width":1};if(r.selected){var R=.3;N.fill=A,N["fill-opacity"]=R,N["stroke-opacity"]=R}S==="hover"&&(R=.9,N.fill=A,N["fill-opacity"]=R,N["stroke-opacity"]=R);var L={fill:A,"fill-opacity":1,stroke:V,"stroke-width":1},O=ht({},N),j=i.pointAttribs(r,S);r.graphic.attr(j),r.stem&&r.stem.attr({}),r.whiskers&&r.whiskers.attr({}),r.box&&(r.box.attr(O),r.box.attr("stroke",O.stroke),r.innerBox.attr(L)),r.medianShape&&r.medianShape.attr({}),c&&r.graphic.animate(c,M(D.options.chart.animation,n.animation,e.animation)),b&&b.hide()}else S&&n&&(g=k.symbol||i.symbol,b&&b.currentSymbol!==g&&(b=b.destroy()),b?b[w?"animate":"attr"]({x:c.x,y:c.y}):g&&(i.stateMarkerGraphic=b=D.renderer.symbol(g,c.x,c.y,c.width,c.height).add(i.markerGroup),b.currentSymbol=g),b&&b.attr(i.pointAttribs(r,S))),b&&(b[S&&D.isInsidePlot(a,t,D.inverted)?"show":"hide"](),b.element.point=r);(x=o.halo)&&x.size?(d||(i.halo=d=D.renderer.path().add((r.graphic||b).parentGroup)),d[w?"animate":"attr"]({d:r.haloPath(x.size)}),d.attr({class:"highcharts-halo highcharts-color-"+M(r.colorIndex,i.colorIndex)}),d.point=r,d.attr(z({fill:r.color||i.color,"fill-opacity":x.opacity,zIndex:-1},x.attributes))):d&&d.point&&d.point.haloPath&&d.animate({d:d.point.haloPath(0)}),r.state=S}},X.Point.prototype.applyOptions=function(S,w){var x=this,c=x.series,g=c.options.pointValKey||c.pointValKey;return S=y.prototype.optionsToObject.call(this,S),z(x,S),x.options=x.options?z(x.options,S):S,S.group&&delete x.group,g&&(x.y=x[g]),x.isNull=M(x.isValid&&!x.isValid(),x.x===null||x.y===null||!I(x.y,!0)),x.selected&&(x.state="select"),"name"in x&&w===void 0&&c.xAxis&&c.xAxis.hasNames&&(x.x=c.xAxis.nameToX(x)),x.x===void 0&&c&&(x.x=w===void 0?c.autoIncrement(x):w),x},X.seriesTypes.column.prototype.pointAttribs=function(S,w){var x,c,g,r,a,t=this.options,i=this.pointAttrToOptions||{},o=i.stroke||"borderColor",e=i["stroke-width"]||"borderWidth",s=S&&S.color||this.color,n=S[o]||t[o]||this.color||s,l=S[e]||t[e]||this[e]||0,b=t.dashStyle;return S&&this.zones.length&&(s=(r=S.getZone())&&r.color||S.options.color||this.color),w&&(a=(x=t.states[w]).brightness,c=x.fillOpacity,s=x.color||a!==void 0&&V(s).brighten(x.brightness).get()||s,c&&c!==1&&(s=V(s).setOpacity(c).get("rgba")),n=x[o]||n,l=x[e]||l,b=x.dashStyle||b),g={fill:s,stroke:n,"stroke-width":l},t.borderRadius&&(g.r=t.borderRadius),b&&(g.dashstyle=b),g},X.seriesTypes.scatter.prototype.pointAttribs=function(S,w){var x=w?this.options.marker.states[w]:this.options.marker,c=M(x.fillOpacity,.5),g=P.prototype.pointAttribs.call(this,S,w);return c!==1&&(g.fill=V(g.fill).setOpacity(c).get("rgba")),g},X.seriesTypes.bubble.prototype.pointAttribs=function(S,w){var x=w?this.options.marker.states[w]:this.options.marker,c=M(x.fillOpacity,.5),g=P.prototype.pointAttribs.call(this,S,w);return c!==1&&(g.fill=V(g.fill).setOpacity(c).get("rgba")),g},X.seriesTypes.boxplot.prototype.pointAttribs=function(S,w){var x=w?this.options.states[w]:this.options,c=M(x.fillOpacity,.5),g=S&&S.color||this.color,r=S.fillColor||x.fillColor||g;return c!==1&&(r=V(r).setOpacity(c).get("rgba")),{fill:r,stroke:x.lineColor||g,"stroke-width":x.lineWidth||0}},X.Pointer.prototype.onContainerClick=function(S){var w,x,c,g=this.chart,r=g.hoverPoint,a=g.plotLeft,t=g.plotTop,i=g.inverted,o=S.type;S=this.normalize(S),g.cancelClick||(r&&this.inClass(S.target,v+"tracker")?(w=this.chartPosition,x=r.plotX,c=r.plotY,z(r,{pageX:w.left+a+(i?g.plotWidth-c:x),pageY:w.top+t+(i?g.plotHeight-x:c)}),Z(r.series,o,z(S,{point:r})),g.hoverPoint&&r.firePointEvent(o,S)):(z(S,this.getCoordinates(S)),g.isInsidePlot(S.chartX-a,S.chartY-t)&&Z(g,"click",S)))},X.wrap(X.Pointer.prototype,"onContainerMouseLeave",function(S,w){this.selectionMarker&&(this.selectionMarker.destroy(),this.selectionMarker=null),this.chart.mouseIsDown=!1,S.call(this,w)}),X.Pointer.prototype.onContainerTapHold=function(S){var w,x,c,g=this.chart,r=g.hoverPoint,a=g.plotLeft,t=g.plotTop,i=g.inverted,o="contextmenu";(S=this.normalize(S)).hasTapHold=!0,g.cancelClick||r&&this.inClass(S.target,v+"tracker")&&(w=this.chartPosition,x=r.plotX,c=r.plotY,z(r,{pageX:w.left+a+(i?g.plotWidth-c:x),pageY:w.top+t+(i?g.plotHeight-x:c)}),Z(r.series,o,z(S,{point:r})),g.hoverPoint&&(S.type="taphold",S.point=r,S.target=g,r.firePointEvent(o,S)))},X.Pointer.prototype.setDOMEvents=function(){var S,w=this,x=w.chart.container;this.unbindContainerMouseLeave=function(){},this._events=S=[[x,"onmousedown","onContainerMouseDown"],[x,"onmousemove","onContainerMouseMove"],[x,"onclick","onContainerClick"],[x,"mouseleave","onContainerMouseLeave"],[x,"contextmenu","onContainerClick"],[x,"mousemove","onDocumentMouseMove"],[x,"mouseup","onDocumentMouseUp"]],m&&f&&S.push([x,"taphold","onContainerClick"]),m&&S.push([x,"ontouchmove","onContainerTouchMove"],[x,"ontouchstart","onContainerTouchStart"],[x,"taphold","onContainerTapHold"],[document,"touchend","onDocumentTouchEnd"]),S.forEach(function(c){var g=ct(c,3),r=g[0],a=g[1],t=g[2];w["_"+t]=function(i){typeof w[c[2]]=="function"&&w[c[2]](i)},a.indexOf("on")===0?r[a]=w["_"+t]:r.addEventListener(a,w["_"+t])})},X.Navigator.prototype.updateNavigatorSeries=function(S){var w,x,c,g=this,r=g.chart,a=g.baseSeries,t=g.navigatorOptions.series,i={enableMouseTracking:!1,index:null,linkedTo:null,group:"nav",padXAxis:!1,xAxis:"navigator-x-axis",yAxis:"navigator-y-axis",showInLegend:!1,stacking:!1,isInternal:!0,visible:!0},o=g.series=(g.series||[]).filter(function(e){var s=e.baseSeries;return!(a.indexOf(s)<0&&(s&&(U(s,"updatedData",g.updatedDataHandler),delete s.navigatorSeries),e.destroy(),1))});a&&a.length&&a.forEach(function(e){var s=e.navigatorSeries,n=z({color:e.color},Array.isArray(t)?u.navigator.series:t);if(!s||g.navigatorOptions.adaptToUpdatedData!==!1){i.name="Navigator "+a.length,w=e.options||{},c=w.navigatorOptions||{},x=E(w,i,n,c);var l=c.data||n.data;g.hasNavigatorData=g.hasNavigatorData||!!l,x.data=l||w.data&&w.data.slice(0),x.data=(0,G.default)(x.data),(x.data||[]).forEach(function(b){b&&b.marker&&b.marker.enabled&&(b.marker.enabled=!1)}),x.color=w.color,x.fillOpacity=w.fillOpacity,x.type!=="spline"&&x.type!=="areaspline"||(x.stacking=w.stacking),w.stacking!=="percent"&&w.stacking!=="normal"||(x.stacking=w.stacking,x.startFromThreshold=!1),s&&s.options?s.update(x,S):(e.navigatorSeries=r.initSeries(x),e.navigatorSeries.baseSeries=e,o.push(e.navigatorSeries))}}),(!t.data||a&&a.length)&&!Array.isArray(t)||(g.hasNavigatorData=!1,(t=X.splat(t)).forEach(function(e,s){i.name="Navigator "+(o.length+1),(x=E(u.navigator.series,{color:r.series[s]&&!r.series[s].options.isInternal&&r.series[s].color||r.options.colors[s]||r.options.colors[0]},i,e)).data=e.data,x.data&&(g.hasNavigatorData=!0,o.push(r.initSeries(x)))})),this.addBaseSeriesEvents()},X.seriesTypes.scatter.prototype.drawLegendSymbol=X.seriesTypes.column.prototype.drawLegendSymbol,(0,B.wrap)(X.Pointer.prototype,"runPointActions",function(S,w,x){var c,g=w,r=this.chart;S.call(this,w,x);var a=r.hoverPoint,t=r.hoverSeries;if(g&&r.hoverPoint&&(e=g.touches?g.touches.length&&g.touches.item?g.touches.item(0):g.changedTouches?g.changedTouches[0]:g:g)&&e.clientX&&e.clientY){for(var i=document.elementFromPoint(e.clientX,e.clientY);i&&!c;)c=i.point,i=i.parentNode;c&&r.hoverPoint!=c&&c.onMouseOver(g)}(0,B.defined)(a)||(0,B.defined)(t)||(0,_.default)(r,"sisenseTipper.status")!=="on"||!r.sisenseTipper.tipper||(r.sisenseTipper.tipper.deactivate(),(0,et.default)(r,"sisenseTipper.status","off"));var o=(0,_.default)(r,"sisenseTipper.chartType");if((0,_.default)(r,"sisenseTipper.status")!=="off"&&(0,_.default)(r,"sisenseTipper.tipper")&&(o==="pie"||o==="scatter"||o==="bubble"||g.type==="touchmove")){var e=g.touches?g.touches.length&&g.touches.item?g.touches.item(0):g.changedTouches?g.changedTouches[0]:g:g;r.sisenseTipper.tipper.activate({x:e.clientX,y:e.clientY,space:0})}}),(0,B.wrap)(X.Chart.prototype,"getContainer",function(S,w,x){S.call(this,w,x);var c,g=this;g.renderTo=c=g.container.parentElement,c.setAttribute("data-type",(0,_.default)(g,"options.chart.type"))}),(0,B.wrap)(X.Pointer.prototype,"normalize",function(S,w,x){return S.apply(this,[].slice.call(arguments,1)),x&&w.chartY<0&&(w.chartY=100),w}),(0,B.wrap)(X.Chart.prototype,"setChartSize",function(S){var w,x,c,g,r=this.legend,a=this.navigator;if(S.apply(this,[].slice.call(arguments,1)),a){if(x=r&&r.options,c=a.xAxis,g=a.yAxis,w=a.scrollbarHeight,this.inverted){var t=a.opposite?this.chartWidth-w-a.height:this.spacing[3]+w,i=this.plotTop+w;x.align==="left"&&r.legendWidth&&(t+=r.legendWidth),a.left=a.navigatorOptions.left||t,a.top=a.navigatorOptions.top||i}c&&g&&(this.inverted?c.options.left=g.options.left=a.left:c.options.top=g.options.top=a.top,c.setAxisSize(),g.setAxisSize())}}),(0,B.wrap)(X.Chart.prototype,"renderLabels",function(S){var w,x,c,g=this;if(S.apply(this,[].slice.call(arguments,1)),g&&g.polar&&g.userOptions&&((w=g.userOptions)===null||w===void 0?void 0:w.labels)&&((c=(x=g.userOptions.labels)===null||x===void 0?void 0:x.items)===null||c===void 0?void 0:c.length)){var r=void 0,a=g.userOptions.labels.items[0].html,t=pt([],ct(g.container.querySelectorAll("text")),!1).find(function(b){return b.innerHTML.includes(a)}),i=g.containerWidth,o=t.clientWidth,e=t.getBBox(),s=e.height?e.height:20,n=i/2-o/2,l=void 0;g.legend.options.verticalAlign==="top"?(r=g.legend.legendHeight+20+s)>g.plotTop&&(l=20+s,r=g.legend.legendHeight+l/2+10,g.legend.update({margin:l},!0)):(r=20)>g.plotTop&&(l=20+s,r=10+s,g.update({chart:{marginTop:l}},!0)),t.setAttribute("x",n),t.setAttribute("y",r)}}),X.wrap(X.SVGElement.prototype,"titleSetter",function(S,w){var x,c,g=this.element.getElementsByTagName("title")[0];g||(g=document.createElementNS(this.SVG_NS,"title"),this.element.appendChild(g)),g.firstChild&&g.removeChild(g.firstChild),g.appendChild(document.createTextNode((x=this.renderer.escapes,c=w,X.objectEach(x,function(r,a){c=c.replace(new RegExp(r,"g"),a)}),c)))}),(0,B.wrap)(X.Chart.prototype,"renderLabels",function(S){S.apply(this,[].slice.call(arguments,1)),this.chartBackground.addClass("widget-body")}),(0,B.wrap)(X.Legend.prototype,"renderItem",function(S,w){var x=this,c=x.options,g=w.legendItem,r=w.series&&w.series.drawLegendSymbol?w.series:w,a=c.useHTML;S.apply(this,[].slice.call(arguments,1)),/msie|trident/i.exec(navigator.userAgent)&&w.legendItem.group.element.addEventListener("contextmenu",function(t){var i="legendItemClick",o={eventType:"contextmenu",browserEvent:t};return w.firePointEvent?w.firePointEvent(i,o,null):Z(r,i,o,null),!1}),(a?g:w.legendItem.group).on("mouseover",function(){var t;w.setState("hover"),g&&((t=g.css)===null||t===void 0||t.call(g,x.options.itemHoverStyle))}).on("contextmenu",function(t){var i="legendItemClick",o={eventType:"contextmenu",browserEvent:t};return w.firePointEvent?w.firePointEvent(i,o,null):Z(r,i,o,null),!1})}),(0,B.wrap)(X.Navigator.prototype,"shadesMousedown",function(S){this.chart.pointer&&(this.chart.pointer.chartPosition=null),S.apply(this,[].slice.call(arguments,1))}),(0,B.wrap)(X.Navigator.prototype,"handlesMousedown",function(S){this.chart.pointer&&(this.chart.pointer.chartPosition=null),S.apply(this,[].slice.call(arguments,1))}),(0,B.wrap)(X.StackItem.prototype,"render",function(S){var w=this.options,x=(0,_.default)(this,"axis.chart.options.chart.type");if(this.alignOptions&&this.total!==void 0&&(x==="column"||x==="bar"&&Math.abs(w.rotation)===90)&&(this.alignOptions.y=this.alignOptions.x=0),S.apply(this,[].slice.call(arguments,1)),this.total!==void 0){var c=this.label.getBBox(!0,0),g=this.label.getBBox(),r=-Math.sign(this.total),a=0,t=0;if(x==="column"?(this.total<0||Math.abs(w.rotation)===90?a=g.height/2*r:Math.abs(w.rotation)===45&&this.total>0&&(a=-c.width/2*Math.sin(45*Math.PI/180)),Math.abs(w.rotation)===45&&(t+=-g.width/4*r),Math.abs(w.rotation)===90&&(t+=c.height/4),a+=5*r):x==="bar"&&Math.abs(w.rotation)===90&&(a=-g.height/2*r,this.total>=0&&(t+=c.height/2),t+=-5*r),this.label.translate(t,a),this.label&&!this.label.labelrank){var i=this.total===0?Number.MIN_SAFE_INTEGER:0;this.label.labelrank=this.x+w.labelrank+i}}}),X.wrap(X,"fireEvent",function(S,w,x,c){var g=new Event(x),r=(0,_.default)(c,"changedTouches"),a=(0,_.default)(c,"point.graphic.element");z(g,c),r&&(g.clientX=(0,_.default)(r,"0.clientX"),g.clientY=(0,_.default)(r,"0.clientY"),g.target=a),S.apply(this,[].slice.call(arguments,1))}),(0,B.wrap)(X.Point.prototype,"getLabelConfig",function(S){var w=S.apply(this,[].slice.call(arguments,1));return this.originalY&&(w.y=this.originalY),w}),(0,B.wrap)(X.seriesTypes.column.prototype,"alignDataLabel",function(S,w,x,c){var g=w.series.options.stacking,r=this.chart.inverted,a=c.rotation,t=w.y<0&&w.dataLabel,i=w.dlBox,o=w.dataLabel.getBBox();if(!g&&t){w.below=!0;var e=E(w.dlBox||w.shapeArgs),s=r?o.width:o.height;e.y+=s,w.dlBox=e}else g&&(c.align="center");!g&&a&&(o=w.dataLabel.getBBox(),r?c.x+=.5*o.width:t&&Math.abs(a)%360==45&&(c.x=.5*-o.width));var n=S.apply(this,[].slice.call(arguments,1));return w.dlBox=i,n}),X.Scroller=X.Navigator}},3269:(it,rt,st)=>{st.d(rt,{A:()=>U});const ht=(0,st(123).A)(Object,"create");var ct=Object.prototype.hasOwnProperty,pt=Object.prototype.hasOwnProperty;function ft($){var Z=-1,V=$==null?0:$.length;for(this.clear();++Z<V;){var z=$[Z];this.set(z[0],z[1])}}ft.prototype.clear=function(){this.__data__=ht?ht(null):{},this.size=0},ft.prototype.delete=function($){var Z=this.has($)&&delete this.__data__[$];return this.size-=Z?1:0,Z},ft.prototype.get=function($){var Z=this.__data__;if(ht){var V=Z[$];return V==="__lodash_hash_undefined__"?void 0:V}return ct.call(Z,$)?Z[$]:void 0},ft.prototype.has=function($){var Z=this.__data__;return ht?Z[$]!==void 0:pt.call(Z,$)},ft.prototype.set=function($,Z){var V=this.__data__;return this.size+=this.has($)?0:1,V[$]=ht&&Z===void 0?"__lodash_hash_undefined__":Z,this};const _=ft;var et=st(6096),G=st(5436);const B=function($,Z){var V,z,I=$.__data__;return((z=typeof(V=Z))=="string"||z=="number"||z=="symbol"||z=="boolean"?V!=="__proto__":V===null)?I[typeof Z=="string"?"string":"hash"]:I.map};function X($){var Z=-1,V=$==null?0:$.length;for(this.clear();++Z<V;){var z=$[Z];this.set(z[0],z[1])}}X.prototype.clear=function(){this.size=0,this.__data__={hash:new _,map:new(G.A||et.A),string:new _}},X.prototype.delete=function($){var Z=B(this,$).delete($);return this.size-=Z?1:0,Z},X.prototype.get=function($){return B(this,$).get($)},X.prototype.has=function($){return B(this,$).has($)},X.prototype.set=function($,Z){var V=B(this,$),z=V.size;return V.set($,Z),this.size+=V.size==z?0:1,this};const U=X},3516:(it,rt,st)=>{st.d(rt,{A:()=>ht});const ht=st(9600).A.Symbol},3966:function(it,rt,st){var ht=this&&this.__importDefault||function(pt){return pt&&pt.__esModule?pt:{default:pt}};Object.defineProperty(rt,"__esModule",{value:!0});var ct=ht(st(368));rt.default=ct.default},4044:(it,rt,st)=>{st.d(rt,{A:()=>B});var ht=st(3516),ct=Object.prototype,pt=ct.hasOwnProperty,ft=ct.toString,_=ht.A?ht.A.toStringTag:void 0,et=Object.prototype.toString,G=ht.A?ht.A.toStringTag:void 0;const B=function(X){return X==null?X===void 0?"[object Undefined]":"[object Null]":G&&G in Object(X)?function(U){var $=pt.call(U,_),Z=U[_];try{U[_]=void 0;var V=!0}catch(I){}var z=ft.call(U);return V&&($?U[_]=Z:delete U[_]),z}(X):function(U){return et.call(U)}(X)}},4089:(it,rt,st)=>{st.d(rt,{A:()=>pt});var ht=st(4044),ct=st(7313);const pt=function(ft){return typeof ft=="symbol"||(0,ct.A)(ft)&&(0,ht.A)(ft)=="[object Symbol]"}},4441:(it,rt,st)=>{st.r(rt),st.d(rt,{default:()=>et});var ht=st(6124),ct=st(5118),pt=st(5378),ft=st(7942),_=st(9322);const et=function(G,B,X){return G==null?G:function(U,$,Z,V){if(!(0,ft.A)(U))return U;for(var z=-1,I=($=(0,ct.A)($,U)).length,E=I-1,M=U;M!=null&&++z<I;){var P=(0,_.A)($[z]),y=Z;if(P==="__proto__"||P==="constructor"||P==="prototype")return U;if(z!=E){var h=M[P];(y=void 0)==void 0&&(y=(0,ft.A)(h)?h:(0,pt.A)($[z+1])?[]:{})}(0,ht.A)(M,P,y),M=M[P]}return U}(G,B,X)}},4459:(it,rt,st)=>{var ht,ct,pt;pt=function(ft){var _=ft?ft._modules:{};function et(G,B,X,U){G.hasOwnProperty(B)||(G[B]=U.apply(null,X),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:B,module:G[B]}})))}et(_,"Extensions/Breadcrumbs.js",[_["Core/Chart/Chart.js"],_["Core/Defaults.js"],_["Core/Globals.js"],_["Core/Utilities.js"],_["Core/FormatUtilities.js"]],function(G,B,X,U,$){var Z=B.defaultOptions,V=$.format,z=U.addEvent,I=U.objectEach,E=U.extend,M=U.fireEvent,P=U.merge,y=U.pick,h=U.defined,f=U.isString;E(Z.lang,{mainBreadcrumb:"Main"});var m=function(){function u(v,S){this.group=void 0,this.list=[],this.elementList={},this.isDirty=!0,this.level=0,this.options=void 0;var w=P(v.options.drilldown&&v.options.drilldown.drillUpButton,u.defaultBreadcrumbsOptions,v.options.navigation&&v.options.navigation.breadcrumbs,S);this.chart=v,this.options=w||{}}return u.prototype.updateProperties=function(v){this.setList(v),this.setLevel(),this.isDirty=!0},u.prototype.setList=function(v){this.list=v},u.prototype.setLevel=function(){this.level=this.list.length&&this.list.length-1},u.prototype.getLevel=function(){return this.level},u.prototype.getButtonText=function(v){var S=this.chart,w=this.options,x=S.options.lang,c=y(w.format,w.showFullPath?"{level.name}":"← {level.name}"),g=x&&y(x.drillUpText,x.mainBreadcrumb),r=w.formatter&&w.formatter(v)||V(c,{level:v.levelOptions},S)||"";return(f(r)&&!r.length||r==="← ")&&h(g)&&(r=w.showFullPath?g:"← "+g),r},u.prototype.redraw=function(){this.isDirty&&this.render(),this.group&&this.group.align(),this.isDirty=!1},u.prototype.render=function(){var v=this,S=v.chart,w=v.options;!v.group&&w&&(v.group=S.renderer.g("breadcrumbs-group").addClass("highcharts-no-tooltip highcharts-breadcrumbs").attr({zIndex:w.zIndex}).add()),w.showFullPath?this.renderFullPathButtons():this.renderSingleButton(),this.alignBreadcrumbsGroup()},u.prototype.renderFullPathButtons=function(){this.destroySingleButton(),this.resetElementListState(),this.updateListElements(),this.destroyListElements()},u.prototype.renderSingleButton=function(){var v=this,S=v.chart,w=v.list,x=v.options.buttonSpacing;this.destroyListElements();var c=v.group?v.group.getBBox().width:x,g=x,r=w[w.length-2];!S.drillUpButton&&this.level>0?S.drillUpButton=v.renderButton(r,c,g):S.drillUpButton&&(this.level>0?this.updateSingleButton():this.destroySingleButton())},u.prototype.alignBreadcrumbsGroup=function(v){var S=this;if(S.group){var w=S.options,x=w.buttonTheme,c=w.position,g=w.relativeTo==="chart"||w.relativeTo==="spacingBox"?void 0:"scrollablePlotBox",r=S.group.getBBox(),a=2*(x.padding||0)+w.buttonSpacing;c.width=r.width+a,c.height=r.height+a;var t=P(c);v&&(t.x+=v),S.options.rtl&&(t.x+=c.width),t.y=y(t.y,this.yOffset,0),S.group.align(t,!0,g)}},u.prototype.renderButton=function(v,S,w){var x=this,c=this.chart,g=x.options,r=P(g.buttonTheme),a=c.renderer.button(x.getButtonText(v),S,w,function(t){var i,o=g.events&&g.events.click;o&&(i=o.call(x,t,v)),i!==!1&&(g.showFullPath?t.newLevel=v.level:t.newLevel=x.level-1,M(x,"up",t))},r).addClass("highcharts-breadcrumbs-button").add(x.group);return c.styledMode||a.attr(g.style),a},u.prototype.renderSeparator=function(v,S){var w=this.chart,x=this.options.separator,c=w.renderer.label(x.text,v,S,void 0,void 0,void 0,!1).addClass("highcharts-breadcrumbs-separator").add(this.group);return w.styledMode||c.css(x.style),c},u.prototype.update=function(v){P(!0,this.options,v),this.destroy(),this.isDirty=!0},u.prototype.updateSingleButton=function(){var v=this.chart,S=this.list[this.level-1];v.drillUpButton&&v.drillUpButton.attr({text:this.getButtonText(S)})},u.prototype.destroy=function(){this.destroySingleButton(),this.destroyListElements(!0),this.group&&this.group.destroy(),this.group=void 0},u.prototype.destroyListElements=function(v){var S=this.elementList;I(S,function(w,x){!v&&S[x].updated||((w=S[x]).button&&w.button.destroy(),w.separator&&w.separator.destroy(),delete w.button,delete w.separator,delete S[x])}),v&&(this.elementList={})},u.prototype.destroySingleButton=function(){this.chart.drillUpButton&&(this.chart.drillUpButton.destroy(),this.chart.drillUpButton=void 0)},u.prototype.resetElementListState=function(){I(this.elementList,function(v){v.updated=!1})},u.prototype.updateListElements=function(){var v,S=this,w=S.elementList,x=S.options.buttonSpacing,c=S.list,g=S.options.rtl,r=g?-1:1,a=function(e,s){return r*e.getBBox().width+r*s},t=function(e,s,n){e.translate(s-e.getBBox().width,n)},i=S.group?a(S.group,x):x,o=x;c.forEach(function(e,s){var n,l,b=s===c.length-1;w[e.level]?(n=(v=w[e.level]).button,v.separator||b?v.separator&&b&&(v.separator.destroy(),delete v.separator):(i+=r*x,v.separator=S.renderSeparator(i,o),g&&t(v.separator,i,o),i+=a(v.separator,x)),w[e.level].updated=!0):(n=S.renderButton(e,i,o),g&&t(n,i,o),i+=a(n,x),b||(l=S.renderSeparator(i,o),g&&t(l,i,o),i+=a(l,x)),w[e.level]={button:n,separator:l,updated:!0}),n&&n.setState(b?2:0)})},u.defaultBreadcrumbsOptions={buttonTheme:{fill:"none",height:18,padding:2,"stroke-width":0,zIndex:7,states:{select:{fill:"none"}},style:{color:"#335cad"}},buttonSpacing:5,floating:!1,format:void 0,relativeTo:"plotBox",rtl:!1,position:{align:"left",verticalAlign:"top",x:0,y:void 0},separator:{text:"/",style:{color:"#666666"}},showFullPath:!0,style:{},useHTML:!1,zIndex:7},u}();return X.Breadcrumbs||(X.Breadcrumbs=m,z(G,"getMargins",function(){var u=this.breadcrumbs;if(u&&!u.options.floating&&u.level){var v=u.options,S=v.buttonTheme,w=(S.height||0)+2*(S.padding||0)+v.buttonSpacing,x=v.position.verticalAlign;x==="bottom"?(this.marginBottom=(this.marginBottom||0)+w,u.yOffset=w):x!=="middle"?(this.plotTop+=w,u.yOffset=-w):u.yOffset=void 0}}),z(G,"redraw",function(){this.breadcrumbs&&this.breadcrumbs.redraw()}),z(G,"destroy",function(){this.breadcrumbs&&(this.breadcrumbs.destroy(),this.breadcrumbs=void 0)}),z(G,"afterShowResetZoom",function(){var u=this;if(u.breadcrumbs){var v=u.resetZoomButton&&u.resetZoomButton.getBBox(),S=u.breadcrumbs.options;v&&S.position.align==="right"&&S.relativeTo==="plotBox"&&u.breadcrumbs.alignBreadcrumbsGroup(-v.width-S.buttonSpacing)}}),z(G,"selection",function(u){u.resetSelection===!0&&this.breadcrumbs&&this.breadcrumbs.alignBreadcrumbsGroup()})),m}),et(_,"Extensions/Drilldown.js",[_["Core/Animation/AnimationUtilities.js"],_["Core/Axis/Axis.js"],_["Core/Chart/Chart.js"],_["Core/Color/Color.js"],_["Series/Column/ColumnSeries.js"],_["Core/Globals.js"],_["Core/Defaults.js"],_["Core/Series/Point.js"],_["Core/Series/Series.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Renderer/SVG/SVGRenderer.js"],_["Core/Axis/Tick.js"],_["Core/Utilities.js"],_["Extensions/Breadcrumbs.js"]],function(G,B,X,U,$,Z,V,z,I,E,M,P,y,h){var f=G.animObject,m=Z.noop,u=V.defaultOptions,v=E.seriesTypes,S=y.addEvent,w=y.removeEvent,x=y.extend,c=y.fireEvent,g=y.merge,r=y.objectEach,a=y.pick,t=y.syncTimeout,i=v.pie,o=1;x(u.lang,{}),u.drilldown={activeAxisLabelStyle:{cursor:"pointer",color:"#003399",fontWeight:"bold",textDecoration:"underline"},activeDataLabelStyle:{cursor:"pointer",color:"#003399",fontWeight:"bold",textDecoration:"underline"},animation:{duration:500},drillUpButton:{position:{align:"right",x:-10,y:10}}},M.prototype.Element.prototype.fadeIn=function(b){this.attr({opacity:.1,visibility:"inherit"}).animate({opacity:a(this.newOpacity,1)},b||{duration:250})},X.prototype.addSeriesAsDrilldown=function(b,k){this.addSingleSeriesAsDrilldown(b,k),this.applyDrilldown()},X.prototype.addSingleSeriesAsDrilldown=function(b,k){var D,d,C,A,N,R,L=b.series,O=L.xAxis,j=L.yAxis,Y=[],H=[];R=this.styledMode?{colorIndex:a(b.colorIndex,L.colorIndex)}:{color:b.color||L.color},this.drilldownLevels||(this.drilldownLevels=[]),A=L.options._levelNumber||0,(N=this.drilldownLevels[this.drilldownLevels.length-1])&&N.levelNumber!==A&&(N=void 0),k=x(x({_ddSeriesId:o++},R),k),d=L.points.indexOf(b),L.chart.series.forEach(function(W){W.xAxis!==O||W.isDrilling||(W.options._ddSeriesId=W.options._ddSeriesId||o++,W.options._colorIndex=W.userOptions._colorIndex,W.options._levelNumber=W.options._levelNumber||A,N?(Y=N.levelSeries,H=N.levelSeriesOptions):(Y.push(W),W.purgedOptions=g({_ddSeriesId:W.options._ddSeriesId,_levelNumber:W.options._levelNumber,selected:W.options.selected},W.userOptions),H.push(W.purgedOptions)))}),C=x({levelNumber:A,seriesOptions:L.options,seriesPurgedOptions:L.purgedOptions,levelSeriesOptions:H,levelSeries:Y,shapeArgs:b.shapeArgs,bBox:b.graphic?b.graphic.getBBox():{},color:b.isNull?U.parse(R.color).setOpacity(0).get():R.color,lowerSeriesOptions:k,pointOptions:L.options.data[d],pointIndex:d,oldExtremes:{xMin:O&&O.userMin,xMax:O&&O.userMax,yMin:j&&j.userMin,yMax:j&&j.userMax},resetZoomButton:N&&N.levelNumber===A?void 0:this.resetZoomButton},R),this.drilldownLevels.push(C),O&&O.names&&(O.names.length=0),(D=C.lowerSeries=this.addSeries(k,!1)).options._levelNumber=A+1,O&&(O.oldPos=O.pos,O.userMin=O.userMax=null,j.userMin=j.userMax=null),L.type===D.type&&(D.animate=D.animateDrilldown||m,D.options.animation=!0)},X.prototype.applyDrilldown=function(){var b,k=this.drilldownLevels;k&&k.length>0&&(b=k[k.length-1].levelNumber,this.drilldownLevels.forEach(function(D){D.levelNumber===b&&D.levelSeries.forEach(function(d){d.options&&d.options._levelNumber===b&&d.remove(!1)})})),this.resetZoomButton&&(this.resetZoomButton.hide(),delete this.resetZoomButton),this.pointer.reset(),c(this,"afterDrilldown"),this.redraw(),c(this,"afterApplyDrilldown")};var e=function(b){var k=[],D=b.drilldownLevels;return D&&D.length&&(k[0]||k.push({level:0,levelOptions:D[0].seriesOptions}),D.forEach(function(d,C){var A=k[k.length-1];d.levelNumber+1>A.level&&k.push({level:d.levelNumber+1,levelOptions:g({name:d.lowerSeries.name},d.pointOptions)})})),k};function s(b){var k=f(this.chart.options.drilldown.animation);b&&(b.hide(),t(function(){b&&b.added&&b.fadeIn()},Math.max(k.duration-50,0)))}X.prototype.drillUp=function(){if(this.drilldownLevels&&this.drilldownLevels.length!==0){c(this,"beforeDrillUp");for(var b,k,D,d,C,A=this,N=A.drilldownLevels,R=N[N.length-1].levelNumber,L=N.length,O=A.series,j=function(H){var W;O.forEach(function(q){q.options._ddSeriesId===H._ddSeriesId&&(W=q)}),(W=W||A.addSeries(H,!1)).type===D.type&&W.animateDrillupTo&&(W.animate=W.animateDrillupTo),H===k.seriesPurgedOptions&&(d=W)},Y=A.drilldownLevels.length;L--;)if((k=N[L]).levelNumber===R){if(N.pop(),!(D=k.lowerSeries).chart){for(b=O.length;b--;)if(O[b].options.id===k.lowerSeriesOptions.id&&O[b].options._levelNumber===R+1){D=O[b];break}}D.xData=[],D.xAxis&&D.xAxis.names&&(Y===0||L===Y)&&(D.xAxis.names.length=0),k.levelSeriesOptions.forEach(j),c(A,"drillup",{seriesOptions:k.seriesPurgedOptions||k.seriesOptions}),d.type===D.type&&(d.drilldownLevel=k,d.options.animation=A.options.drilldown.animation,D.animateDrillupFrom&&D.chart&&D.animateDrillupFrom(k)),d.options._levelNumber=R,D.remove(!1),d.xAxis&&(C=k.oldExtremes,d.xAxis.setExtremes(C.xMin,C.xMax,!1),d.yAxis.setExtremes(C.yMin,C.yMax,!1)),k.resetZoomButton&&(A.resetZoomButton=k.resetZoomButton)}c(A,"afterDrillUp"),this.redraw(),this.ddDupes&&(this.ddDupes.length=0),c(A,"drillupall")}},S(X,"afterInit",function(){var b=this;b.drilldown={chart:b,fadeInGroup:s,update:function(k,D){g(!0,b.options.drilldown,k),a(D,!0)&&b.redraw()}}}),S(X,"render",function(){(this.xAxis||[]).forEach(function(b){b.ddPoints={},b.series.forEach(function(k){var D,d,C=k.xData||[],A=k.points;for(D=0;D<C.length;D++)if(typeof(d=k.options.data[D])!="number"&&(d=k.pointClass.prototype.optionsToObject.call({series:k},d)).drilldown){b.ddPoints[C[D]]||(b.ddPoints[C[D]]=[]);var N=D-(k.cropStart||0);b.ddPoints[C[D]].push(!(A&&N>=0&&N<A.length)||A[N])}}),r(b.ticks,P.prototype.drillable)})}),S(Z.Breadcrumbs,"up",function(b){for(var k=this.chart,D=this.getLevel()-b.newLevel,d=0;d<D;d++)k.drillUp()}),S(X,"afterDrilldown",function(){var b=this,k=b.options.drilldown,D=k&&k.breadcrumbs;b.breadcrumbs||(b.breadcrumbs=new h(b,D)),b.breadcrumbs.updateProperties(e(b))}),S(X,"afterDrillUp",function(){var b=this;b.breadcrumbs&&b.breadcrumbs.updateProperties(e(b))}),S(X,"update",function(b){var k=this.breadcrumbs,D=b.options.drilldown&&b.options.drilldown.breadcrumbs;k&&D&&k.update(b.options.drilldown.breadcrumbs)}),$.prototype.animateDrillupTo=function(b){if(!b){var k=this,D=k.drilldownLevel;this.points.forEach(function(d){var C=d.dataLabel;d.graphic&&d.graphic.hide(),C&&(C.hidden=C.attr("visibility")==="hidden",C.hidden||(C.hide(),d.connector&&d.connector.hide()))}),t(function(){if(k.points){var d=[];k.data.forEach(function(C){d.push(C)}),k.nodes&&(d=d.concat(k.nodes)),d.forEach(function(C,A){var N=A===(D&&D.pointIndex)?"show":"fadeIn",R=N==="show"||void 0,L=C.dataLabel;C.graphic&&C.graphic[N](R),L&&!L.hidden&&(L.fadeIn(),C.connector&&C.connector.fadeIn())})}},Math.max(this.chart.options.drilldown.animation.duration-50,0)),delete this.animate}},$.prototype.animateDrilldown=function(b){var k,D=this,d=this.chart,C=d.drilldownLevels,A=f(d.options.drilldown.animation),N=this.xAxis,R=d.styledMode;b||(C.forEach(function(L){D.options._ddSeriesId===L.lowerSeriesOptions._ddSeriesId&&(k=L.shapeArgs,R||(k.fill=L.color))}),k.x+=a(N.oldPos,N.pos)-N.pos,this.points.forEach(function(L){var O=L.shapeArgs;R||(O.fill=L.color),L.graphic&&L.graphic.attr(k).animate(x(L.shapeArgs,{fill:L.color||D.color}),A)}),d.drilldown&&d.drilldown.fadeInGroup(this.dataLabelsGroup),delete this.animate)},$.prototype.animateDrillupFrom=function(b){var k=f(this.chart.options.drilldown.animation),D=this.group,d=D!==this.chart.columnGroup,C=this;C.trackerGroups.forEach(function(A){C[A]&&C[A].on("mouseover")}),d&&delete this.group,this.points.forEach(function(A){var N=A.graphic,R=b.shapeArgs,L=function(){N.destroy(),D&&d&&(D=D.destroy())};N&&R&&(delete A.graphic,C.chart.styledMode||(R.fill=b.color),k.duration?N.animate(R,g(k,{complete:L})):(N.attr(R),L()))})},i&&x(i.prototype,{animateDrillupTo:$.prototype.animateDrillupTo,animateDrillupFrom:$.prototype.animateDrillupFrom,animateDrilldown:function(b){var k=this.chart.drilldownLevels[this.chart.drilldownLevels.length-1],D=this.chart.options.drilldown.animation;if(this.is("item")&&(D.duration=0),this.center){var d=k.shapeArgs,C=d.start,A=(d.end-C)/this.points.length,N=this.chart.styledMode;b||(this.points.forEach(function(R,L){var O=R.shapeArgs;N||(d.fill=k.color,O.fill=R.color),R.graphic&&R.graphic.attr(g(d,{start:C+L*A,end:C+(L+1)*A}))[D?"animate":"attr"](O,D)}),this.chart.drilldown&&this.chart.drilldown.fadeInGroup(this.dataLabelsGroup),delete this.animate)}}}),z.prototype.doDrilldown=function(){this.runDrilldown()},z.prototype.runDrilldown=function(b,k,D){var d,C=this.series.chart,A=C.options.drilldown,N=(A.series||[]).length;for(C.ddDupes||(C.ddDupes=[]);N--&&!d;)A.series[N].id===this.drilldown&&C.ddDupes.indexOf(this.drilldown)===-1&&(d=A.series[N],C.ddDupes.push(this.drilldown));c(C,"drilldown",{point:this,seriesOptions:d,category:k,originalEvent:D,points:k!==void 0&&this.series.xAxis.getDDPoints(k).slice(0)},function(R){var L=R.point.series&&R.point.series.chart,O=R.seriesOptions;L&&O&&(b?L.addSingleSeriesAsDrilldown(R.point,O):L.addSeriesAsDrilldown(R.point,O))})},B.prototype.drilldownCategory=function(b,k){this.getDDPoints(b).forEach(function(D){D&&D.series&&D.series.visible&&D.runDrilldown&&D.runDrilldown(!0,b,k)}),this.chart.applyDrilldown()},B.prototype.getDDPoints=function(b){return this.ddPoints&&this.ddPoints[b]||[]},P.prototype.drillable=function(){var b=this.pos,k=this.label,D=this.axis,d=D.coll==="xAxis"&&D.getDDPoints,C=d&&D.getDDPoints(b),A=D.chart.styledMode;d&&(k&&C&&C.length?(k.drillable=!0,k.basicStyles||A||(k.basicStyles=g(k.styles)),k.addClass("highcharts-drilldown-axis-label"),k.removeOnDrillableClick&&w(k.element,"click"),k.removeOnDrillableClick=S(k.element,"click",function(N){N.preventDefault(),D.drilldownCategory(b,N)}),A||k.css(D.chart.options.drilldown.activeAxisLabelStyle)):k&&k.drillable&&k.removeOnDrillableClick&&(A||(k.styles={},k.element.removeAttribute("style"),k.css(k.basicStyles)),k.removeOnDrillableClick(),k.removeClass("highcharts-drilldown-axis-label")))},S(z,"afterInit",function(){var b=this;return b.drilldown&&!b.unbindDrilldownClick&&(b.unbindDrilldownClick=S(b,"click",n)),b}),S(z,"update",function(b){var k=this,D=b.options||{};D.drilldown&&!k.unbindDrilldownClick?k.unbindDrilldownClick=S(k,"click",n):!D.drilldown&&D.drilldown!==void 0&&k.unbindDrilldownClick&&(k.unbindDrilldownClick=k.unbindDrilldownClick())});var n=function(b){var k=this,D=k.series;D.xAxis&&D.chart.options.drilldown.allowPointDrilldown===!1?D.xAxis.drilldownCategory(k.x,b):k.runDrilldown(void 0,void 0,b)};S(I,"afterDrawDataLabels",function(){var b=this.chart.options.drilldown.activeDataLabelStyle,k=this.chart.renderer,D=this.chart.styledMode;this.points.forEach(function(d){var C=d.options.dataLabels,A=a(d.dlOptions,C&&C.style,{});d.drilldown&&d.dataLabel&&(b.color!=="contrast"||D||(A.color=k.getContrast(d.color||this.color)),C&&C.color&&(A.color=C.color),d.dataLabel.addClass("highcharts-drilldown-data-label"),D||d.dataLabel.css(b).css(A))},this)});var l=function(b,k,D,d){b[D?"addClass":"removeClass"]("highcharts-drilldown-point"),d||b.css({cursor:k})};S(I,"afterDrawTracker",function(){var b=this.chart.styledMode;this.points.forEach(function(k){k.drilldown&&k.graphic&&l(k.graphic,"pointer",!0,b)})}),S(z,"afterSetState",function(){var b=this.series.chart.styledMode;this.drilldown&&this.series.halo&&this.state==="hover"?l(this.series.halo,"pointer",!0,b):this.series.halo&&l(this.series.halo,"auto",!1,b)}),S(X,"drillup",function(){this.resetZoomButton&&(this.resetZoomButton=this.resetZoomButton.destroy())}),S(X,"drillupall",function(){this.resetZoomButton&&this.showResetZoom()})}),et(_,"masters/modules/drilldown.src.js",[],function(){})},it.exports?(pt.default=pt,it.exports=pt):(ht=[st(4783)],(ct=function(ft){return pt(ft),pt.Highcharts=ft,pt}.apply(rt,ht))===void 0||(it.exports=ct))},4501:(it,rt,st)=>{st.r(rt),st.d(rt,{default:()=>ht});const ht=function(ct){return ct===void 0}},4608:function(it,rt,st){var ht=this&&this.__importDefault||function(y){return y&&y.__esModule?y:{default:y}};Object.defineProperty(rt,"__esModule",{value:!0});var ct=ht(st(5134)),pt=ht(st(1039)),ft=ht(st(6725)),_=ht(st(6660)),et=ht(st(4459)),G=ht(st(2060)),B=ht(st(6236)),X=ht(st(6512)),U=ht(st(5098)),$=ht(st(4812)),Z=ht(st(2397)),V=ht(st(50)),z=ht(st(5322)),I=ht(st(2)),E=ht(st(362)),M=ht(st(3039)),P=ht(st(3966));(0,ft.default)(ct.default),(0,pt.default)(ct.default),(0,_.default)(ct.default),(0,et.default)(ct.default),(0,G.default)(ct.default),(0,B.default)(ct.default),(0,X.default)(ct.default),(0,$.default)(ct.default),(0,U.default)(ct.default),(0,z.default)(ct.default),(0,I.default)(ct.default),(0,E.default)(ct.default),(0,M.default)(ct.default),(0,Z.default)(ct.default),(0,V.default)(ct.default),ct.default.setOptions(P.default),rt.default=ct.default},4783:function(it,rt,st){var ht,ct,pt;ct=typeof window!="undefined"?window:this,pt=function(ft){function _(G,B,X,U){G.hasOwnProperty(B)||(G[B]=U.apply(null,X),typeof CustomEvent=="function"&&ft.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:B,module:G[B]}})))}var et={};return _(et,"Core/Globals.js",[],function(){var G;return function(B){B.SVG_NS="http://www.w3.org/2000/svg",B.product="Highcharts",B.version="10.3.3",B.win=ft!==void 0?ft:{},B.doc=B.win.document,B.svg=B.doc&&B.doc.createElementNS&&!!B.doc.createElementNS(B.SVG_NS,"svg").createSVGRect,B.userAgent=B.win.navigator&&B.win.navigator.userAgent||"",B.isChrome=B.userAgent.indexOf("Chrome")!==-1,B.isFirefox=B.userAgent.indexOf("Firefox")!==-1,B.isMS=/(edge|msie|trident)/i.test(B.userAgent)&&!B.win.opera,B.isSafari=!B.isChrome&&B.userAgent.indexOf("Safari")!==-1,B.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(B.userAgent),B.isWebKit=B.userAgent.indexOf("AppleWebKit")!==-1,B.deg2rad=2*Math.PI/360,B.hasBidiBug=B.isFirefox&&4>parseInt(B.userAgent.split("Firefox/")[1],10),B.hasTouch=!!B.win.TouchEvent,B.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],B.noop=function(){},B.supportsPassiveEvents=function(){var X=!1;if(!B.isMS){var U=Object.defineProperty({},"passive",{get:function(){X=!0}});B.win.addEventListener&&B.win.removeEventListener&&(B.win.addEventListener("testPassive",B.noop,U),B.win.removeEventListener("testPassive",B.noop,U))}return X}(),B.charts=[],B.dateFormats={},B.seriesTypes={},B.symbolSizes={},B.chartCount=0}(G||(G={})),G}),_(et,"Core/Utilities.js",[et["Core/Globals.js"]],function(G){function B(t,i,o,e){var s=i?"Highcharts error":"Highcharts warning";t===32&&(t=s+": Deprecated member");var n=I(t),l=n?s+" #"+t+": www.highcharts.com/errors/"+t+"/":t.toString();if(e!==void 0){var b="";n&&(l+="?"),u(e,function(k,D){b+=`
|
|
2
2
|
- `.concat(D,": ").concat(k),n&&(l+=encodeURI(D)+"="+encodeURI(k))}),l+=b}S(G,"displayError",{chart:o,code:t,message:l,params:e},function(){if(i)throw Error(l);c.console&&B.messages.indexOf(l)===-1&&console.warn(l)}),B.messages.push(l)}function X(t,i){return parseInt(t,i||10)}function U(t){return typeof t=="string"}function $(t){return(t=Object.prototype.toString.call(t))==="[object Array]"||t==="[object Array Iterator]"}function Z(t,i){return!(!t||typeof t!="object"||i&&$(t))}function V(t){return Z(t)&&typeof t.nodeType=="number"}function z(t){var i=t&&t.constructor;return!(!Z(t,!0)||V(t)||!i||!i.name||i.name==="Object")}function I(t){return typeof t=="number"&&!isNaN(t)&&1/0>t&&-1/0<t}function E(t){return t!=null}function M(t,i,o){var e,s=U(i)&&!E(o),n=function(l,b){E(l)?t.setAttribute(b,l):s?(e=t.getAttribute(b))||b!=="class"||(e=t.getAttribute(b+"Name")):t.removeAttribute(b)};return U(i)?n(o,i):u(i,n),e}function P(t,i){var o;for(o in t||(t={}),i)t[o]=i[o];return t}function y(){for(var t=arguments,i=t.length,o=0;o<i;o++){var e=t[o];if(e!=null)return e}}function h(t,i){G.isMS&&!G.svg&&i&&E(i.opacity)&&(i.filter="alpha(opacity=".concat(100*i.opacity,")")),P(t.style,i)}function f(t){return Math.pow(10,Math.floor(Math.log(t)/Math.LN10))}function m(t,i){return 1e14<t?t:parseFloat(t.toPrecision(i||14))}function u(t,i,o){for(var e in t)Object.hasOwnProperty.call(t,e)&&i.call(o||t[e],t[e],e,t)}function v(t,i,o){function e(b,k){var D=t.removeEventListener||G.removeEventListenerPolyfill;D&&D.call(t,b,k,!1)}function s(b){var k;if(t.nodeName){if(i){var D={};D[i]=!0}else D=b;u(D,function(d,C){if(b[C])for(k=b[C].length;k--;)e(C,b[C][k].fn)})}}var n=typeof t=="function"&&t.prototype||t;if(Object.hasOwnProperty.call(n,"hcEvents")){var l=n.hcEvents;i?(n=l[i]||[],o?(l[i]=n.filter(function(b){return o!==b.fn}),e(i,o)):(s(l),l[i]=[])):(s(l),delete n.hcEvents)}}function S(t,i,o,e){if(o=o||{},x.createEvent&&(t.dispatchEvent||t.fireEvent&&t!==G)){var s=x.createEvent("Events");s.initEvent(i,!0,!0),o=P(s,o),t.dispatchEvent?t.dispatchEvent(o):t.fireEvent(i,o)}else if(t.hcEvents){o.target||P(o,{preventDefault:function(){o.defaultPrevented=!0},target:t,type:i}),s=[];for(var n=t,l=!1;n.hcEvents;)Object.hasOwnProperty.call(n,"hcEvents")&&n.hcEvents[i]&&(s.length&&(l=!0),s.unshift.apply(s,n.hcEvents[i])),n=Object.getPrototypeOf(n);l&&s.sort(function(b,k){return b.order-k.order}),s.forEach(function(b){b.fn.call(t,o)===!1&&o.preventDefault()})}e&&!o.defaultPrevented&&e.call(t,o)}var w=G.charts,x=G.doc,c=G.win;(B||(B={})).messages=[],Math.easeInOutSine=function(t){return-.5*(Math.cos(Math.PI*t)-1)};var g=Array.prototype.find?function(t,i){return t.find(i)}:function(t,i){var o,e=t.length;for(o=0;o<e;o++)if(i(t[o],o))return t[o]};u({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},function(t,i){G[i]=function(o){var e;return B(32,!1,void 0,((e={})["Highcharts.".concat(i)]="use Array.".concat(t),e)),Array.prototype[t].apply(o,[].slice.call(arguments,1))}});var r,a=function(){var t=Math.random().toString(36).substring(2,9)+"-",i=0;return function(){return"highcharts-"+(r?"":t)+i++}}();return c.jQuery,g={addEvent:function(t,i,o,e){e===void 0&&(e={});var s=typeof t=="function"&&t.prototype||t;Object.hasOwnProperty.call(s,"hcEvents")||(s.hcEvents={}),s=s.hcEvents,G.Point&&t instanceof G.Point&&t.series&&t.series.chart&&(t.series.chart.runTrackerClick=!0);var n=t.addEventListener||G.addEventListenerPolyfill;return n&&n.call(t,i,o,!!G.supportsPassiveEvents&&{passive:e.passive===void 0?i.indexOf("touch")!==-1:e.passive,capture:!1}),s[i]||(s[i]=[]),s[i].push({fn:o,order:typeof e.order=="number"?e.order:1/0}),s[i].sort(function(l,b){return l.order-b.order}),function(){v(t,i,o)}},arrayMax:function(t){for(var i=t.length,o=t[0];i--;)t[i]>o&&(o=t[i]);return o},arrayMin:function(t){for(var i=t.length,o=t[0];i--;)t[i]<o&&(o=t[i]);return o},attr:M,clamp:function(t,i,o){return t>i?t<o?t:o:i},cleanRecursively:function t(i,o){var e={};return u(i,function(s,n){Z(i[n],!0)&&!i.nodeType&&o[n]?(s=t(i[n],o[n]),Object.keys(s).length&&(e[n]=s)):(Z(i[n])||i[n]!==o[n]||n in i&&!(n in o))&&(e[n]=i[n])}),e},clearTimeout:function(t){E(t)&&clearTimeout(t)},correctFloat:m,createElement:function(t,i,o,e,s){return t=x.createElement(t),i&&P(t,i),s&&h(t,{padding:"0",border:"none",margin:"0"}),o&&h(t,o),e&&e.appendChild(t),t},css:h,defined:E,destroyObjectProperties:function(t,i){u(t,function(o,e){o&&o!==i&&o.destroy&&o.destroy(),delete t[e]})},discardElement:function(t){t&&t.parentElement&&t.parentElement.removeChild(t)},erase:function(t,i){for(var o=t.length;o--;)if(t[o]===i){t.splice(o,1);break}},error:B,extend:P,extendClass:function(t,i){var o=function(){};return P(o.prototype=new t,i),o},find:g,fireEvent:S,getMagnitude:f,getNestedProperty:function(t,i){for(t=t.split(".");t.length&&E(i);){var o=t.shift();if(o===void 0||o==="__proto__"||!E(i=i[o])||typeof i=="function"||typeof i.nodeType=="number"||i===c)return}return i},getStyle:function t(i,o,e){var s=G.getStyle||t;if(o==="width")return o=Math.min(i.offsetWidth,i.scrollWidth),(e=i.getBoundingClientRect&&i.getBoundingClientRect().width)<o&&e>=o-1&&(o=Math.floor(e)),Math.max(0,o-(s(i,"padding-left",!0)||0)-(s(i,"padding-right",!0)||0));if(o==="height")return Math.max(0,Math.min(i.offsetHeight,i.scrollHeight)-(s(i,"padding-top",!0)||0)-(s(i,"padding-bottom",!0)||0));if(c.getComputedStyle||B(27,!0),i=c.getComputedStyle(i,void 0)){var n=i.getPropertyValue(o);y(e,o!=="opacity")&&(n=X(n))}return n},inArray:function(t,i,o){return B(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"}),i.indexOf(t,o)},isArray:$,isClass:z,isDOMElement:V,isFunction:function(t){return typeof t=="function"},isNumber:I,isObject:Z,isString:U,keys:function(t){return B(32,!1,void 0,{"Highcharts.keys":"use Object.keys"}),Object.keys(t)},merge:function(){var t,i=arguments,o={},e=function(n,l){return typeof n!="object"&&(n={}),u(l,function(b,k){k!=="__proto__"&&k!=="constructor"&&(!Z(b,!0)||z(b)||V(b)?n[k]=l[k]:n[k]=e(n[k]||{},b))}),n};i[0]===!0&&(o=i[1],i=Array.prototype.slice.call(i,2));var s=i.length;for(t=0;t<s;t++)o=e(o,i[t]);return o},normalizeTickInterval:function(t,i,o,e,s){var n=t,l=t/(o=y(o,f(t)));for(i||(i=s?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],e===!1&&(o===1?i=i.filter(function(b){return b%1==0}):.1>=o&&(i=[1/o]))),e=0;e<i.length&&(n=i[e],!(s&&n*o>=t||!s&&l<=(i[e]+(i[e+1]||i[e]))/2));e++);return m(n*o,-Math.round(Math.log(.001)/Math.LN10))},objectEach:u,offset:function(t){var i=x.documentElement;return{top:(t=t.parentElement||t.parentNode?t.getBoundingClientRect():{top:0,left:0,width:0,height:0}).top+(c.pageYOffset||i.scrollTop)-(i.clientTop||0),left:t.left+(c.pageXOffset||i.scrollLeft)-(i.clientLeft||0),width:t.width,height:t.height}},pad:function(t,i,o){return Array((i||2)+1-String(t).replace("-","").length).join(o||"0")+t},pick:y,pInt:X,relativeLength:function(t,i,o){return/%$/.test(t)?i*parseFloat(t)/100+(o||0):parseFloat(t)},removeEvent:v,splat:function(t){return $(t)?t:[t]},stableSort:function(t,i){var o,e,s=t.length;for(e=0;e<s;e++)t[e].safeI=e;for(t.sort(function(n,l){return(o=i(n,l))===0?n.safeI-l.safeI:o}),e=0;e<s;e++)delete t[e].safeI},syncTimeout:function(t,i,o){return 0<i?setTimeout(t,i,o):(t.call(0,o),-1)},timeUnits:{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},uniqueKey:a,useSerialIds:function(t){return r=y(t,r)},wrap:function(t,i,o){var e=t[i];t[i]=function(){var s=arguments,n=this;return o.apply(this,[function(){return e.apply(n,arguments.length?arguments:s)}].concat([].slice.call(arguments)))}}},g}),_(et,"Core/Chart/ChartDefaults.js",[],function(){return{alignThresholds:!1,panning:{enabled:!1,type:"x"},styledMode:!1,borderRadius:0,colorCount:10,allowMutatingData:!0,defaultSeriesType:"line",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}},zoomBySingleTouch:!1,zooming:{singleTouch:!1,resetButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}}},width:null,height:null,borderColor:"#335cad",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"}}),_(et,"Core/Color/Color.js",[et["Core/Globals.js"],et["Core/Utilities.js"]],function(G,B){var X=B.isNumber,U=B.merge,$=B.pInt;return B=function(){function Z(V){this.rgba=[NaN,NaN,NaN,NaN],this.input=V;var z=G.Color;return z&&z!==Z?new z(V):this instanceof Z?void this.init(V):new Z(V)}return Z.parse=function(V){return V?new Z(V):Z.None},Z.prototype.init=function(V){var z;if(typeof V=="object"&&V.stops!==void 0)this.stops=V.stops.map(function(P){return new Z(P[1])});else if(typeof V=="string"){if(this.input=V=Z.names[V.toLowerCase()]||V,V.charAt(0)==="#"){var I=V.length,E=parseInt(V.substr(1),16);I===7?z=[(16711680&E)>>16,(65280&E)>>8,255&E,1]:I===4&&(z=[(3840&E)>>4|(3840&E)>>8,(240&E)>>4|240&E,(15&E)<<4|15&E,1])}if(!z)for(E=Z.parsers.length;E--&&!z;){var M=Z.parsers[E];(I=M.regex.exec(V))&&(z=M.parse(I))}}z&&(this.rgba=z)},Z.prototype.get=function(V){var z=this.input,I=this.rgba;if(typeof z=="object"&&this.stops!==void 0){var E=U(z);return E.stops=[].slice.call(E.stops),this.stops.forEach(function(M,P){E.stops[P]=[E.stops[P][0],M.get(V)]}),E}return I&&X(I[0])?V==="rgb"||!V&&I[3]===1?"rgb("+I[0]+","+I[1]+","+I[2]+")":V==="a"?"".concat(I[3]):"rgba("+I.join(",")+")":z},Z.prototype.brighten=function(V){var z=this.rgba;if(this.stops)this.stops.forEach(function(E){E.brighten(V)});else if(X(V)&&V!==0)for(var I=0;3>I;I++)z[I]+=$(255*V),0>z[I]&&(z[I]=0),255<z[I]&&(z[I]=255);return this},Z.prototype.setOpacity=function(V){return this.rgba[3]=V,this},Z.prototype.tweenTo=function(V,z){var I=this.rgba,E=V.rgba;return X(I[0])&&X(E[0])?((V=E[3]!==1||I[3]!==1)?"rgba(":"rgb(")+Math.round(E[0]+(I[0]-E[0])*(1-z))+","+Math.round(E[1]+(I[1]-E[1])*(1-z))+","+Math.round(E[2]+(I[2]-E[2])*(1-z))+(V?","+(E[3]+(I[3]-E[3])*(1-z)):"")+")":V.input||"none"},Z.names={white:"#ffffff",black:"#000000"},Z.parsers=[{regex:/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/,parse:function(V){return[$(V[1]),$(V[2]),$(V[3]),parseFloat(V[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(V){return[$(V[1]),$(V[2]),$(V[3]),1]}}],Z.None=new Z(""),Z}(),B}),_(et,"Core/Color/Palettes.js",[],function(){return{colors:"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1".split(" ")}}),_(et,"Core/Time.js",[et["Core/Globals.js"],et["Core/Utilities.js"]],function(G,B){var X=G.win,U=B.defined,$=B.error,Z=B.extend,V=B.isObject,z=B.merge,I=B.objectEach,E=B.pad,M=B.pick,P=B.splat,y=B.timeUnits,h=G.isSafari&&X.Intl&&X.Intl.DateTimeFormat.prototype.formatRange,f=G.isSafari&&X.Intl&&!X.Intl.DateTimeFormat.prototype.formatRange;return B=function(){function m(u){this.options={},this.variableTimezone=this.useUTC=!1,this.Date=X.Date,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.update(u)}return m.prototype.get=function(u,v){if(this.variableTimezone||this.timezoneOffset){var S=v.getTime(),w=S-this.getTimezoneOffset(v);return v.setTime(w),u=v["getUTC"+u](),v.setTime(S),u}return this.useUTC?v["getUTC"+u]():v["get"+u]()},m.prototype.set=function(u,v,S){if(this.variableTimezone||this.timezoneOffset){if(u==="Milliseconds"||u==="Seconds"||u==="Minutes"&&this.getTimezoneOffset(v)%36e5==0)return v["setUTC"+u](S);var w=this.getTimezoneOffset(v);return w=v.getTime()-w,v.setTime(w),v["setUTC"+u](S),u=this.getTimezoneOffset(v),w=v.getTime()+u,v.setTime(w)}return this.useUTC||h&&u==="FullYear"?v["setUTC"+u](S):v["set"+u](S)},m.prototype.update=function(u){u===void 0&&(u={});var v=M(u.useUTC,!0);this.options=u=z(!0,this.options,u),this.Date=u.Date||X.Date||Date,this.timezoneOffset=(this.useUTC=v)&&u.timezoneOffset||void 0,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.variableTimezone=v&&!(!u.getTimezoneOffset&&!u.timezone)},m.prototype.makeTime=function(u,v,S,w,x,c){if(this.useUTC){var g=this.Date.UTC.apply(0,arguments),r=this.getTimezoneOffset(g);g+=r;var a=this.getTimezoneOffset(g);r!==a?g+=a-r:r-36e5!==this.getTimezoneOffset(g-36e5)||f||(g-=36e5)}else g=new this.Date(u,v,M(S,1),M(w,0),M(x,0),M(c,0)).getTime();return g},m.prototype.timezoneOffsetFunction=function(){var u=this,v=this.options,S=v.getTimezoneOffset,w=v.moment||X.moment;if(!this.useUTC)return function(x){return 6e4*new Date(x.toString()).getTimezoneOffset()};if(v.timezone){if(w)return function(x){return 6e4*-w.tz(x,v.timezone).utcOffset()};$(25)}return this.useUTC&&S?function(x){return 6e4*S(x.valueOf())}:function(){return 6e4*(u.timezoneOffset||0)}},m.prototype.dateFormat=function(u,v,S){if(!U(v)||isNaN(v))return G.defaultOptions.lang&&G.defaultOptions.lang.invalidDate||"";u=M(u,"%Y-%m-%d %H:%M:%S");var w=this,x=new this.Date(v),c=this.get("Hours",x),g=this.get("Day",x),r=this.get("Date",x),a=this.get("Month",x),t=this.get("FullYear",x),i=G.defaultOptions.lang,o=i&&i.weekdays,e=i&&i.shortWeekdays;return x=Z({a:e?e[g]:o[g].substr(0,3),A:o[g],d:E(r),e:E(r,2," "),w:g,b:i.shortMonths[a],B:i.months[a],m:E(a+1),o:a+1,y:t.toString().substr(2,2),Y:t,H:E(c),k:c,I:E(c%12||12),l:c%12||12,M:E(this.get("Minutes",x)),p:12>c?"AM":"PM",P:12>c?"am":"pm",S:E(x.getSeconds()),L:E(Math.floor(v%1e3),3)},G.dateFormats),I(x,function(s,n){for(;u.indexOf("%"+n)!==-1;)u=u.replace("%"+n,typeof s=="function"?s.call(w,v):s)}),S?u.substr(0,1).toUpperCase()+u.substr(1):u},m.prototype.resolveDTLFormat=function(u){return V(u,!0)?u:{main:(u=P(u))[0],from:u[1],to:u[2]}},m.prototype.getTimeTicks=function(u,v,S,w){var x,c=this,g=[],r={},a=new c.Date(v),t=u.unitRange,i=u.count||1;if(w=M(w,1),U(v)){if(c.set("Milliseconds",a,t>=y.second?0:i*Math.floor(c.get("Milliseconds",a)/i)),t>=y.second&&c.set("Seconds",a,t>=y.minute?0:i*Math.floor(c.get("Seconds",a)/i)),t>=y.minute&&c.set("Minutes",a,t>=y.hour?0:i*Math.floor(c.get("Minutes",a)/i)),t>=y.hour&&c.set("Hours",a,t>=y.day?0:i*Math.floor(c.get("Hours",a)/i)),t>=y.day&&c.set("Date",a,t>=y.month?1:Math.max(1,i*Math.floor(c.get("Date",a)/i))),t>=y.month){c.set("Month",a,t>=y.year?0:i*Math.floor(c.get("Month",a)/i));var o=c.get("FullYear",a)}t>=y.year&&c.set("FullYear",a,o-o%i),t===y.week&&(o=c.get("Day",a),c.set("Date",a,c.get("Date",a)-o+w+(o<w?-7:0))),o=c.get("FullYear",a),w=c.get("Month",a);var e=c.get("Date",a),s=c.get("Hours",a);for(v=a.getTime(),!c.variableTimezone&&c.useUTC||!U(S)||(x=S-v>4*y.month||c.getTimezoneOffset(v)!==c.getTimezoneOffset(S)),v=a.getTime(),a=1;v<S;)g.push(v),v=t===y.year?c.makeTime(o+a*i,0):t===y.month?c.makeTime(o,w+a*i):!x||t!==y.day&&t!==y.week?x&&t===y.hour&&1<i?c.makeTime(o,w,e,s+a*i):v+t*i:c.makeTime(o,w,e+a*i*(t===y.day?1:7)),a++;g.push(v),t<=y.hour&&1e4>g.length&&g.forEach(function(n){n%18e5==0&&c.dateFormat("%H%M%S%L",n)==="000000000"&&(r[n]="day")})}return g.info=Z(u,{higherRanks:r,totalRange:t*i}),g},m.prototype.getDateFormat=function(u,v,S,w){var x=this.dateFormat("%m-%d %H:%M:%S.%L",v),c={millisecond:15,second:12,minute:9,hour:6,day:3},g="millisecond";for(r in y){if(u===y.week&&+this.dateFormat("%w",v)===S&&x.substr(6)==="00:00:00.000"){var r="week";break}if(y[r]>u){r=g;break}if(c[r]&&x.substr(c[r])!=="01-01 00:00:00.000".substr(c[r]))break;r!=="week"&&(g=r)}return this.resolveDTLFormat(w[r]).main},m}(),B}),_(et,"Core/Defaults.js",[et["Core/Chart/ChartDefaults.js"],et["Core/Color/Color.js"],et["Core/Globals.js"],et["Core/Color/Palettes.js"],et["Core/Time.js"],et["Core/Utilities.js"]],function(G,B,X,U,$,Z){B=B.parse;var V=Z.merge,z={colors:U.colors,symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:"January February March April May June July August September October November December".split(" "),shortMonths:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),weekdays:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),decimalPoint:".",numericSymbols:"kMGTPE".split(""),resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:" "},global:{},time:{Date:void 0,getTimezoneOffset:void 0,timezone:void 0,timezoneOffset:0,useUTC:!0},chart:G,title:{text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{text:"",align:"center",widthAdjust:-44},caption:{margin:15,text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},labels:{style:{position:"absolute",color:"#333333"}},legend:{enabled:!0,align:"center",alignColumns:!0,className:"highcharts-no-tooltip",layout:"horizontal",labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{activeColor:"#003399",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"12px",fontWeight:"bold",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#cccccc"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:X.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %b %e, %H:%M:%S.%L",second:"%A, %b %e, %H:%M:%S",minute:"%A, %b %e, %H:%M",hour:"%A, %b %e, %H:%M",day:"%A, %b %e, %Y",week:"Week from %A, %b %e, %Y",month:"%B %Y",year:"%Y"},footerFormat:"",headerShape:"callout",hideDelay:500,padding:8,shape:"callout",shared:!1,snap:X.isTouchDevice?25:10,headerFormat:'<span style="font-size: 10px">{point.key}</span><br/>',pointFormat:'<span style="color:{point.color}">●</span> {series.name}: <b>{point.y}</b><br/>',backgroundColor:B("#f7f7f7").setOpacity(.85).get(),borderWidth:1,shadow:!0,stickOnContact:!1,style:{color:"#333333",cursor:"default",fontSize:"12px",whiteSpace:"nowrap"},useHTML:!1},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"9px"},text:"Highcharts.com"}};z.chart.styledMode=!1;var I=new $(V(z.global,z.time));return{defaultOptions:z,defaultTime:I,getOptions:function(){return z},setOptions:function(E){return V(!0,z,E),(E.time||E.global)&&(X.time?X.time.update(V(z.global,z.time,E.global,E.time)):X.time=I),z}}}),_(et,"Core/Animation/Fx.js",[et["Core/Color/Color.js"],et["Core/Globals.js"],et["Core/Utilities.js"]],function(G,B,X){var U=G.parse,$=B.win,Z=X.isNumber,V=X.objectEach;return function(){function z(I,E,M){this.pos=NaN,this.options=E,this.elem=I,this.prop=M}return z.prototype.dSetter=function(){var I=this.paths,E=I&&I[0];I=I&&I[1];var M=this.now||0,P=[];if(M!==1&&E&&I)if(E.length===I.length&&1>M)for(var y=0;y<I.length;y++){for(var h=E[y],f=I[y],m=[],u=0;u<f.length;u++){var v=h[u],S=f[u];Z(v)&&Z(S)&&(f[0]!=="A"||u!==4&&u!==5)?m[u]=v+M*(S-v):m[u]=S}P.push(m)}else P=I;else P=this.toD||[];this.elem.attr("d",P,void 0,!0)},z.prototype.update=function(){var I=this.elem,E=this.prop,M=this.now,P=this.options.step;this[E+"Setter"]?this[E+"Setter"]():I.attr?I.element&&I.attr(E,M,null,!0):I.style[E]=M+this.unit,P&&P.call(I,M,this)},z.prototype.run=function(I,E,M){var P=this,y=P.options,h=function(u){return!h.stopped&&P.step(u)},f=$.requestAnimationFrame||function(u){setTimeout(u,13)},m=function(){for(var u=0;u<z.timers.length;u++)z.timers[u]()||z.timers.splice(u--,1);z.timers.length&&f(m)};I!==E||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=I,this.end=E,this.unit=M,this.now=this.start,this.pos=0,h.elem=this.elem,h.prop=this.prop,h()&&z.timers.push(h)===1&&f(m)):(delete y.curAnim[this.prop],y.complete&&Object.keys(y.curAnim).length===0&&y.complete.call(this.elem))},z.prototype.step=function(I){var E=+new Date,M=this.options,P=this.elem,y=M.complete,h=M.duration,f=M.curAnim;if(P.attr&&!P.element)I=!1;else if(I||E>=h+this.startTime){this.now=this.end,this.pos=1,this.update();var m=f[this.prop]=!0;V(f,function(u){u!==!0&&(m=!1)}),m&&y&&y.call(P),I=!1}else this.pos=M.easing((E-this.startTime)/h),this.now=this.start+(this.end-this.start)*this.pos,this.update(),I=!0;return I},z.prototype.initPath=function(I,E,M){function P(x,c){for(;x.length<w;){var g=x[0],r=c[w-x.length];r&&g[0]==="M"&&(x[0]=r[0]==="C"?["C",g[1],g[2],g[1],g[2],g[1],g[2]]:["L",g[1],g[2]]),x.unshift(g),m&&(g=x.pop(),x.push(x[x.length-1],g))}}function y(x,c){for(;x.length<w;)if((c=x[Math.floor(x.length/u)-1].slice())[0]==="C"&&(c[1]=c[5],c[2]=c[6]),m){var g=x[Math.floor(x.length/u)].slice();x.splice(x.length/2,0,c,g)}else x.push(c)}var h=I.startX,f=I.endX;M=M.slice();var m=I.isArea,u=m?2:1;if(!(E=E&&E.slice()))return[M,M];if(h&&f&&f.length){for(I=0;I<h.length;I++){if(h[I]===f[0]){var v=I;break}if(h[0]===f[f.length-h.length+I]){v=I;var S=!0;break}if(h[h.length-1]===f[f.length-h.length+I]){v=h.length-I;break}}v===void 0&&(E=[])}if(E.length&&Z(v)){var w=M.length+v*u;S?(P(E,M),y(M,E)):(P(M,E),y(E,M))}return[E,M]},z.prototype.fillSetter=function(){z.prototype.strokeSetter.apply(this,arguments)},z.prototype.strokeSetter=function(){this.elem.attr(this.prop,U(this.start).tweenTo(U(this.end),this.pos),void 0,!0)},z.timers=[],z}()}),_(et,"Core/Animation/AnimationUtilities.js",[et["Core/Animation/Fx.js"],et["Core/Utilities.js"]],function(G,B){function X(y){return I(y)?E({duration:500,defer:0},y):{duration:y?500:0,defer:0}}function U(y,h){for(var f=G.timers.length;f--;)G.timers[f].elem!==y||h&&h!==G.timers[f].prop||(G.timers[f].stopped=!0)}var $=B.defined,Z=B.getStyle,V=B.isArray,z=B.isNumber,I=B.isObject,E=B.merge,M=B.objectEach,P=B.pick;return{animate:function(y,h,f){var m,u,v,S="";if(!I(f)){var w=arguments;f={duration:w[2],easing:w[3],complete:w[4]}}z(f.duration)||(f.duration=400),f.easing=typeof f.easing=="function"?f.easing:Math[f.easing]||Math.easeInOutSine,f.curAnim=E(h),M(h,function(x,c){U(y,c),v=new G(y,f,c),u=void 0,c==="d"&&V(h.d)?(v.paths=v.initPath(y,y.pathArray,h.d),v.toD=h.d,m=0,u=1):y.attr?m=y.attr(c):(m=parseFloat(Z(y,c))||0,c!=="opacity"&&(S="px")),u||(u=x),typeof u=="string"&&u.match("px")&&(u=u.replace(/px/g,"")),v.run(m,u,S)})},animObject:X,getDeferredAnimation:function(y,h,f){var m=X(h),u=0,v=0;return(f?[f]:y.series).forEach(function(S){S=X(S.options.animation),u=h&&$(h.defer)?m.defer:Math.max(u,S.duration+S.defer),v=Math.min(m.duration,S.duration)}),y.renderer.forExport&&(u=0),{defer:Math.max(0,u-v),duration:Math.min(u,v)}},setAnimation:function(y,h){h.renderer.globalAnimation=P(y,h.options.chart.animation,!0)},stop:U}}),_(et,"Core/Renderer/HTML/AST.js",[et["Core/Globals.js"],et["Core/Utilities.js"]],function(G,B){var X=G.SVG_NS,U=B.attr,$=B.createElement,Z=B.css,V=B.error,z=B.isFunction,I=B.isString,E=B.objectEach,M=B.splat,P=(B=G.win.trustedTypes)&&z(B.createPolicy)&&B.createPolicy("highcharts",{createHTML:function(f){return f}}),y=P?P.createHTML(""):"";try{var h=!!new DOMParser().parseFromString(y,"text/html")}catch(f){h=!1}return z=function(){function f(m){this.nodes=typeof m=="string"?this.parseMarkup(m):m}return f.filterUserAttributes=function(m){return E(m,function(u,v){var S=!0;f.allowedAttributes.indexOf(v)===-1&&(S=!1),["background","dynsrc","href","lowsrc","src"].indexOf(v)!==-1&&(S=I(u)&&f.allowedReferences.some(function(w){return u.indexOf(w)===0})),S||(V(33,!1,void 0,{"Invalid attribute in config":"".concat(v)}),delete m[v]),I(u)&&m[v]&&(m[v]=u.replace(/</g,"<"))}),m},f.parseStyle=function(m){return m.split(";").reduce(function(u,v){v=v.split(":").map(function(w){return w.trim()});var S=v.shift();return S&&v.length&&(u[S.replace(/-([a-z])/g,function(w){return w[1].toUpperCase()})]=v.join(":")),u},{})},f.setElementHTML=function(m,u){m.innerHTML=f.emptyHTML,u&&new f(u).addToDOM(m)},f.prototype.addToDOM=function(m){return function u(v,S){var w;return M(v).forEach(function(x){var c=x.tagName,g=x.textContent?G.doc.createTextNode(x.textContent):void 0,r=f.bypassHTMLFiltering;if(c)if(c==="#text")var a=g;else if(f.allowedTags.indexOf(c)!==-1||r){c=G.doc.createElementNS(c==="svg"?X:S.namespaceURI||X,c);var t=x.attributes||{};E(x,function(i,o){o!=="tagName"&&o!=="attributes"&&o!=="children"&&o!=="style"&&o!=="textContent"&&(t[o]=i)}),U(c,r?t:f.filterUserAttributes(t)),x.style&&Z(c,x.style),g&&c.appendChild(g),u(x.children||[],c),a=c}else V(33,!1,void 0,{"Invalid tagName in config":c});a&&S.appendChild(a),w=a}),w}(this.nodes,m)},f.prototype.parseMarkup=function(m){var u=[];if(m=m.trim().replace(/ style=(["'])/g," data-style=$1"),h)m=new DOMParser().parseFromString(P?P.createHTML(m):m,"text/html");else{var v=$("div");v.innerHTML=m,m={body:v}}var S=function(w,x){var c=w.nodeName.toLowerCase(),g={tagName:c};if(c==="#text"&&(g.textContent=w.textContent||""),c=w.attributes){var r={};[].forEach.call(c,function(t){t.name==="data-style"?g.style=f.parseStyle(t.value):r[t.name]=t.value}),g.attributes=r}if(w.childNodes.length){var a=[];[].forEach.call(w.childNodes,function(t){S(t,a)}),a.length&&(g.children=a)}x.push(g)};return[].forEach.call(m.body.childNodes,function(w){return S(w,u)}),u},f.allowedAttributes="aria-controls aria-describedby aria-expanded aria-haspopup aria-hidden aria-label aria-labelledby aria-live aria-pressed aria-readonly aria-roledescription aria-selected class clip-path color colspan cx cy d dx dy disabled fill height href id in markerHeight markerWidth offset opacity orient padding paddingLeft paddingRight patternUnits r refX refY role scope slope src startOffset stdDeviation stroke stroke-linecap stroke-width style tableValues result rowspan summary target tabindex text-align text-anchor textAnchor textLength title type valign width x x1 x2 xlink:href y y1 y2 zIndex".split(" "),f.allowedReferences="https:// http:// mailto: / ../ ./ #".split(" "),f.allowedTags="a abbr b br button caption circle clipPath code dd defs div dl dt em feComponentTransfer feFuncA feFuncB feFuncG feFuncR feGaussianBlur feOffset feMerge feMergeNode filter h1 h2 h3 h4 h5 h6 hr i img li linearGradient marker ol p path pattern pre rect small span stop strong style sub sup svg table text textPath thead title tbody tspan td th tr u ul #text".split(" "),f.emptyHTML=y,f.bypassHTMLFiltering=!1,f}(),z}),_(et,"Core/FormatUtilities.js",[et["Core/Defaults.js"],et["Core/Utilities.js"]],function(G,B){function X(E,M,P,y){E=+E||0,M=+M;var h=U.lang,f=(E.toString().split(".")[1]||"").split("e")[0].length,m=E.toString().split("e"),u=M;if(M===-1)M=Math.min(f,20);else if(V(M)){if(M&&m[1]&&0>m[1]){var v=M+ +m[1];0<=v?(m[0]=(+m[0]).toExponential(v).split("e")[0],M=v):(m[0]=m[0].split(".")[0]||0,E=20>M?(m[0]*Math.pow(10,m[1])).toFixed(M):0,m[1]=0)}}else M=2;v=(Math.abs(m[1]?m[0]:E)+Math.pow(10,-Math.max(M,f)-1)).toFixed(M);var S=3<(f=String(I(v))).length?f.length%3:0;return P=z(P,h.decimalPoint),y=z(y,h.thousandsSep),E=(0>E?"-":"")+(S?f.substr(0,S)+y:""),E=0>+m[1]&&!u?"0":E+f.substr(S).replace(/(\d{3})(?=\d)/g,"$1"+y),M&&(E+=P+v.slice(-M)),m[1]&&+E!=0&&(E+="e"+m[1]),E}var U=G.defaultOptions,$=G.defaultTime,Z=B.getNestedProperty,V=B.isNumber,z=B.pick,I=B.pInt;return{dateFormat:function(E,M,P){return $.dateFormat(E,M,P)},format:function(E,M,P){var y="{",h=!1,f=/f$/,m=/\.([0-9])/,u=U.lang,v=P&&P.time||$;P=P&&P.numberFormatter||X;for(var S=[];E;){var w=E.indexOf(y);if(w===-1)break;var x=E.slice(0,w);if(h){if(x=x.split(":"),y=Z(x.shift()||"",M),x.length&&typeof y=="number")if(x=x.join(":"),f.test(x)){var c=parseInt((x.match(m)||["","-1"])[1],10);y!==null&&(y=P(y,c,u.decimalPoint,-1<x.indexOf(",")?u.thousandsSep:""))}else y=v.dateFormat(x,y);S.push(y)}else S.push(x);E=E.slice(w+1),y=(h=!h)?"}":"{"}return S.push(E),S.join("")},numberFormat:X}}),_(et,"Core/Renderer/RendererUtilities.js",[et["Core/Utilities.js"]],function(G){var B,X=G.clamp,U=G.pick,$=G.stableSort;return function(Z){Z.distribute=function V(z,I,E){var M,P=z,y=P.reducedLen||I,h=function(S,w){return(w.rank||0)-(S.rank||0)},f=function(S,w){return S.target-w.target},m=!0,u=[],v=0;for(M=z.length;M--;)v+=z[M].size;if(v>y){for($(z,h),v=M=0;v<=y;)v+=z[M].size,M++;u=z.splice(M-1,z.length)}for($(z,f),z=z.map(function(S){return{size:S.size,targets:[S.target],align:U(S.align,.5)}});m;){for(M=z.length;M--;)y=z[M],h=(Math.min.apply(0,y.targets)+Math.max.apply(0,y.targets))/2,y.pos=X(h-y.size*y.align,0,I-y.size);for(M=z.length,m=!1;M--;)0<M&&z[M-1].pos+z[M-1].size>z[M].pos&&(z[M-1].size+=z[M].size,z[M-1].targets=z[M-1].targets.concat(z[M].targets),z[M-1].align=.5,z[M-1].pos+z[M-1].size>I&&(z[M-1].pos=I-z[M-1].size),z.splice(M,1),m=!0)}return P.push.apply(P,u),M=0,z.some(function(S){var w=0;return(S.targets||[]).some(function(){return P[M].pos=S.pos+w,E!==void 0&&Math.abs(P[M].pos-P[M].target)>E?(P.slice(0,M+1).forEach(function(x){return delete x.pos}),P.reducedLen=(P.reducedLen||I)-.1*I,P.reducedLen>.1*I&&V(P,I,E),!0):(w+=P[M].size,M++,!1)})}),$(P,f),P}}(B||(B={})),B}),_(et,"Core/Renderer/SVG/SVGElement.js",[et["Core/Animation/AnimationUtilities.js"],et["Core/Color/Color.js"],et["Core/Globals.js"],et["Core/Utilities.js"]],function(G,B,X,U){var $=G.animate,Z=G.animObject,V=G.stop,z=X.deg2rad,I=X.doc,E=X.svg,M=X.SVG_NS,P=X.win,y=U.addEvent,h=U.attr,f=U.createElement,m=U.css,u=U.defined,v=U.erase,S=U.extend,w=U.fireEvent,x=U.isArray,c=U.isFunction,g=U.isString,r=U.merge,a=U.objectEach,t=U.pick,i=U.pInt,o=U.syncTimeout,e=U.uniqueKey;return G=function(){function s(){this.element=void 0,this.onEvents={},this.opacity=1,this.renderer=void 0,this.SVG_NS=M,this.symbolCustomAttribs="x y width height r start end innerR anchorX anchorY rounded".split(" ")}return s.prototype._defaultGetter=function(n){return n=t(this[n+"Value"],this[n],this.element?this.element.getAttribute(n):null,0),/^[\-0-9\.]+$/.test(n)&&(n=parseFloat(n)),n},s.prototype._defaultSetter=function(n,l,b){b.setAttribute(l,n)},s.prototype.add=function(n){var l=this.renderer,b=this.element;if(n&&(this.parentGroup=n),this.textStr!==void 0&&this.element.nodeName==="text"&&l.buildText(this),this.added=!0,!n||n.handleZ||this.zIndex)var k=this.zIndexSetter();return k||(n?n.element:l.box).appendChild(b),this.onAdd&&this.onAdd(),this},s.prototype.addClass=function(n,l){var b=l?"":this.attr("class")||"";return n=(n||"").split(/ /g).reduce(function(k,D){return b.indexOf(D)===-1&&k.push(D),k},b?[b]:[]).join(" "),n!==b&&this.attr("class",n),this},s.prototype.afterSetters=function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)},s.prototype.align=function(n,l,b){var k,D,d,C={},A=this.renderer,N=A.alignedObjects;n?(this.alignOptions=n,this.alignByTranslate=l,(!b||g(b))&&(this.alignTo=k=b||"renderer",v(N,this),N.push(this),b=void 0)):(n=this.alignOptions,l=this.alignByTranslate,k=this.alignTo),b=t(b,A[k],k==="scrollablePlotBox"?A.plotBox:void 0,A),k=n.align;var R=n.verticalAlign;return A=(b.x||0)+(n.x||0),N=(b.y||0)+(n.y||0),k==="right"?D=1:k==="center"&&(D=2),D&&(A+=(b.width-(n.width||0))/D),C[l?"translateX":"x"]=Math.round(A),R==="bottom"?d=1:R==="middle"&&(d=2),d&&(N+=(b.height-(n.height||0))/d),C[l?"translateY":"y"]=Math.round(N),this[this.placed?"animate":"attr"](C),this.placed=!0,this.alignAttr=C,this},s.prototype.alignSetter=function(n){var l={left:"start",center:"middle",right:"end"};l[n]&&(this.alignValue=n,this.element.setAttribute("text-anchor",l[n]))},s.prototype.animate=function(n,l,b){var k=this,D=Z(t(l,this.renderer.globalAnimation,!0));return l=D.defer,t(I.hidden,I.msHidden,I.webkitHidden,!1)&&(D.duration=0),D.duration!==0?(b&&(D.complete=b),o(function(){k.element&&$(k,n,D)},l)):(this.attr(n,void 0,b||D.complete),a(n,function(d,C){D.step&&D.step.call(this,d,{prop:C,pos:1,elem:this})},this)),this},s.prototype.applyTextOutline=function(n){var l=this.element;n.indexOf("contrast")!==-1&&(n=n.replace(/contrast/g,this.renderer.getContrast(l.style.fill)));var b=n.split(" ");if(n=b[b.length-1],(b=b[0])&&b!=="none"&&X.svg){this.fakeTS=!0,b=b.replace(/(^[\d\.]+)(.*?)$/g,function(d,C,A){return 2*Number(C)+A}),this.removeTextOutline();var k=I.createElementNS(M,"tspan");h(k,{class:"highcharts-text-outline",fill:n,stroke:n,"stroke-width":b,"stroke-linejoin":"round"}),n=l.querySelector("textPath")||l,[].forEach.call(n.childNodes,function(d){var C=d.cloneNode(!0);C.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach(function(A){return C.removeAttribute(A)}),k.appendChild(C)});var D=0;[].forEach.call(n.querySelectorAll("text tspan"),function(d){D+=Number(d.getAttribute("dy"))}),(b=I.createElementNS(M,"tspan")).textContent="",h(b,{x:Number(l.getAttribute("x")),dy:-D}),k.appendChild(b),n.insertBefore(k,n.firstChild)}},s.prototype.attr=function(n,l,b,k){var D,d,C,A=this.element,N=this.symbolCustomAttribs,R=this;if(typeof n=="string"&&l!==void 0){var L=n;(n={})[L]=l}return typeof n=="string"?R=(this[n+"Getter"]||this._defaultGetter).call(this,n,A):(a(n,function(O,j){d=!1,k||V(this,j),this.symbolName&&N.indexOf(j)!==-1&&(D||(this.symbolAttr(n),D=!0),d=!0),!this.rotation||j!=="x"&&j!=="y"||(this.doTransform=!0),d||((C=this[j+"Setter"]||this._defaultSetter).call(this,O,j,A),!this.styledMode&&this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(j)&&this.updateShadows(j,O,C))},this),this.afterSetters()),b&&b.call(this),R},s.prototype.clip=function(n){return this.attr("clip-path",n?"url("+this.renderer.url+"#"+n.id+")":"none")},s.prototype.crisp=function(n,l){l=l||n.strokeWidth||0;var b=Math.round(l)%2/2;return n.x=Math.floor(n.x||this.x||0)+b,n.y=Math.floor(n.y||this.y||0)+b,n.width=Math.floor((n.width||this.width||0)-2*b),n.height=Math.floor((n.height||this.height||0)-2*b),u(n.strokeWidth)&&(n.strokeWidth=l),n},s.prototype.complexColor=function(n,l,b){var k,D,d,C,A,N,R,L,O,j,Y,H=this.renderer,W=[];w(this.renderer,"complexColor",{args:arguments},function(){if(n.radialGradient?D="radialGradient":n.linearGradient&&(D="linearGradient"),D){if(d=n[D],A=H.gradients,N=n.stops,O=b.radialReference,x(d)&&(n[D]=d={x1:d[0],y1:d[1],x2:d[2],y2:d[3],gradientUnits:"userSpaceOnUse"}),D==="radialGradient"&&O&&!u(d.gradientUnits)&&(C=d,d=r(d,H.getRadialAttr(O,C),{gradientUnits:"userSpaceOnUse"})),a(d,function(Q,J){J!=="id"&&W.push(J,Q)}),a(N,function(Q){W.push(Q)}),W=W.join(","),A[W])j=A[W].attr("id");else{d.id=j=e();var q=A[W]=H.createElement(D).attr(d).add(H.defs);q.radAttr=C,q.stops=[],N.forEach(function(Q){Q[1].indexOf("rgba")===0?(k=B.parse(Q[1]),R=k.get("rgb"),L=k.get("a")):(R=Q[1],L=1),Q=H.createElement("stop").attr({offset:Q[0],"stop-color":R,"stop-opacity":L}).add(q),q.stops.push(Q)})}Y="url("+H.url+"#"+j+")",b.setAttribute(l,Y),b.gradient=W,n.toString=function(){return Y}}})},s.prototype.css=function(n){var l=this.styles,b={},k=this.element,D=!l;if(n.color&&(n.fill=n.color),l&&a(n,function(A,N){l&&l[N]!==A&&(b[N]=A,D=!0)}),D){if(l&&(n=S(l,b)),n.width===null||n.width==="auto")delete this.textWidth;else if(k.nodeName.toLowerCase()==="text"&&n.width)var d=this.textWidth=i(n.width);this.styles=n,d&&!E&&this.renderer.forExport&&delete n.width;var C=r(n);k.namespaceURI===this.SVG_NS&&["textOutline","textOverflow","width"].forEach(function(A){return C&&delete C[A]}),m(k,C),this.added&&(this.element.nodeName==="text"&&this.renderer.buildText(this),n.textOutline&&this.applyTextOutline(n.textOutline))}return this},s.prototype.dashstyleSetter=function(n){var l=this["stroke-width"];if(l==="inherit"&&(l=1),n=n&&n.toLowerCase()){var b=n.replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(",");for(n=b.length;n--;)b[n]=""+i(b[n])*t(l,NaN);n=b.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",n)}},s.prototype.destroy=function(){var n=this,l=n.element||{},b=n.renderer,k=l.ownerSVGElement,D=b.isSVG&&l.nodeName==="SPAN"&&n.parentGroup||void 0;if(l.onclick=l.onmouseout=l.onmouseover=l.onmousemove=l.point=null,V(n),n.clipPath&&k){var d=n.clipPath;[].forEach.call(k.querySelectorAll("[clip-path],[CLIP-PATH]"),function(C){-1<C.getAttribute("clip-path").indexOf(d.element.id)&&C.removeAttribute("clip-path")}),n.clipPath=d.destroy()}if(n.stops){for(k=0;k<n.stops.length;k++)n.stops[k].destroy();n.stops.length=0,n.stops=void 0}for(n.safeRemoveChild(l),b.styledMode||n.destroyShadows();D&&D.div&&D.div.childNodes.length===0;)l=D.parentGroup,n.safeRemoveChild(D.div),delete D.div,D=l;n.alignTo&&v(b.alignedObjects,n),a(n,function(C,A){n[A]&&n[A].parentGroup===n&&n[A].destroy&&n[A].destroy(),delete n[A]})},s.prototype.destroyShadows=function(){(this.shadows||[]).forEach(function(n){this.safeRemoveChild(n)},this),this.shadows=void 0},s.prototype.dSetter=function(n,l,b){x(n)&&(typeof n[0]=="string"&&(n=this.renderer.pathToSegments(n)),this.pathArray=n,n=n.reduce(function(k,D,d){return D&&D.join?(d?k+" ":"")+D.join(" "):(D||"").toString()},"")),/(NaN| {2}|^$)/.test(n)&&(n="M 0 0"),this[l]!==n&&(b.setAttribute(l,n),this[l]=n)},s.prototype.fadeOut=function(n){var l=this;l.animate({opacity:0},{duration:t(n,150),complete:function(){l.hide()}})},s.prototype.fillSetter=function(n,l,b){typeof n=="string"?b.setAttribute(l,n):n&&this.complexColor(n,l,b)},s.prototype.getBBox=function(n,l){var b=this.alignValue,k=this.element,D=this.renderer,d=this.styles,C=this.textStr,A=D.cache,N=D.cacheKeys,R=k.namespaceURI===this.SVG_NS;l=t(l,this.rotation,0);var L,O=D.styledMode?k&&s.prototype.getStyle.call(k,"font-size"):d&&d.fontSize;if(u(C)){var j=C.toString();j.indexOf("<")===-1&&(j=j.replace(/[0-9]/g,"0")),j+=["",l,O,this.textWidth,b,d&&d.textOverflow,d&&d.fontWeight].join()}if(j&&!n&&(L=A[j]),!L){if(R||D.forExport){try{var Y=this.fakeTS&&function(W){var q=k.querySelector(".highcharts-text-outline");q&&m(q,{display:W})};c(Y)&&Y("none"),L=k.getBBox?S({},k.getBBox()):{width:k.offsetWidth,height:k.offsetHeight,x:0,y:0},c(Y)&&Y("")}catch(W){}(!L||0>L.width)&&(L={x:0,y:0,width:0,height:0})}else L=this.htmlGetBBox();if(D.isSVG&&(D=L.width,n=L.height,R&&(L.height=n={"11px,17":14,"13px,20":16}[""+(O||"")+",".concat(Math.round(n))]||n),l)){R=Number(k.getAttribute("y")||0)-L.y,b={right:1,center:.5}[b||0]||0,d=l*z,O=(l-90)*z;var H=D*Math.cos(d);l=D*Math.sin(d),Y=Math.cos(O),d=Math.sin(O),H=(Y=(O=(D=L.x+b*(D-H)+R*Y)+H)-n*Y)-H,l=(n=(b=(R=L.y+R-b*l+R*d)+l)-n*d)-l,L.x=Math.min(D,O,Y,H),L.y=Math.min(R,b,n,l),L.width=Math.max(D,O,Y,H)-L.x,L.height=Math.max(R,b,n,l)-L.y}if(j&&(C===""||0<L.height)){for(;250<N.length;)delete A[N.shift()];A[j]||N.push(j),A[j]=L}}return L},s.prototype.getStyle=function(n){return P.getComputedStyle(this.element||this,"").getPropertyValue(n)},s.prototype.hasClass=function(n){return(""+this.attr("class")).split(" ").indexOf(n)!==-1},s.prototype.hide=function(){return this.attr({visibility:"hidden"})},s.prototype.htmlGetBBox=function(){return{height:0,width:0,x:0,y:0}},s.prototype.init=function(n,l){this.element=l==="span"?f(l):I.createElementNS(this.SVG_NS,l),this.renderer=n,w(this,"afterInit")},s.prototype.on=function(n,l){var b=this.onEvents;return b[n]&&b[n](),b[n]=y(this.element,n,l),this},s.prototype.opacitySetter=function(n,l,b){this.opacity=n=Number(Number(n).toFixed(3)),b.setAttribute(l,n)},s.prototype.removeClass=function(n){return this.attr("class",(""+this.attr("class")).replace(g(n)?new RegExp("(^| )".concat(n,"( |$)")):n," ").replace(/ +/g," ").trim())},s.prototype.removeTextOutline=function(){var n=this.element.querySelector("tspan.highcharts-text-outline");n&&this.safeRemoveChild(n)},s.prototype.safeRemoveChild=function(n){var l=n.parentNode;l&&l.removeChild(n)},s.prototype.setRadialReference=function(n){var l=this.element.gradient&&this.renderer.gradients[this.element.gradient];return this.element.radialReference=n,l&&l.radAttr&&l.animate(this.renderer.getRadialAttr(n,l.radAttr)),this},s.prototype.setTextPath=function(n,l){var b=this;l=r(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},l);var k=this.renderer.url,D=this.text||this,d=D.textPath,C=l.attributes,A=l.enabled;return n=n||d&&d.path,d&&d.undo(),n&&A?(l=y(D,"afterModifyTree",function(N){if(n&&A){var R=n.attr("id");R||n.attr("id",R=e());var L={x:0,y:0};u(C.dx)&&(L.dx=C.dx,delete C.dx),u(C.dy)&&(L.dy=C.dy,delete C.dy),D.attr(L),b.attr({transform:""}),b.box&&(b.box=b.box.destroy()),L=N.nodes.slice(0),N.nodes.length=0,N.nodes[0]={tagName:"textPath",attributes:S(C,{"text-anchor":C.textAnchor,href:""+k+"#".concat(R)}),children:L}}}),D.textPath={path:n,undo:l}):(D.attr({dx:0,dy:0}),delete D.textPath),this.added&&(D.textCache="",this.renderer.buildText(D)),this},s.prototype.shadow=function(n,l,b){var k=[],D=this.element,d=this.oldShadowOptions,C=this.parentGroup,A=C&&C.rotation===90;C={color:"#000000",offsetX:A?-1:1,offsetY:A?-1:1,opacity:.15,width:3};var N,R=!1;if(n===!0?N=C:typeof n=="object"&&(N=S(C,n)),N&&(N&&d&&a(N,function(Y,H){Y!==d[H]&&(R=!0)}),R&&this.destroyShadows(),this.oldShadowOptions=N),N){if(!this.shadows){C=N.opacity/N.width;var L=A?"translate(".concat(N.offsetY,", ").concat(N.offsetX,")"):"translate(".concat(N.offsetX,", ").concat(N.offsetY,")");for(A=1;A<=N.width;A++){var O=D.cloneNode(!1),j=2*N.width+1-2*A;h(O,{stroke:n.color||"#000000","stroke-opacity":C*A,"stroke-width":j,transform:L,fill:"none"}),O.setAttribute("class",(O.getAttribute("class")||"")+" highcharts-shadow"),b&&(h(O,"height",Math.max(h(O,"height")-j,0)),O.cutHeight=j),l?l.element.appendChild(O):D.parentNode&&D.parentNode.insertBefore(O,D),k.push(O)}this.shadows=k}}else this.destroyShadows();return this},s.prototype.show=function(n){return n===void 0&&(n=!0),this.attr({visibility:n?"inherit":"visible"})},s.prototype["stroke-widthSetter"]=function(n,l,b){this[l]=n,b.setAttribute(l,n)},s.prototype.strokeWidth=function(){if(!this.renderer.styledMode)return this["stroke-width"]||0;var n=this.getStyle("stroke-width"),l=0;if(n.indexOf("px")===n.length-2)l=i(n);else if(n!==""){var b=I.createElementNS(M,"rect");h(b,{width:n,"stroke-width":0}),this.element.parentNode.appendChild(b),l=b.getBBox().width,b.parentNode.removeChild(b)}return l},s.prototype.symbolAttr=function(n){var l=this;"x y r start end width height innerR anchorX anchorY clockwise".split(" ").forEach(function(b){l[b]=t(n[b],l[b])}),l.attr({d:l.renderer.symbols[l.symbolName](l.x,l.y,l.width,l.height,l)})},s.prototype.textSetter=function(n){n!==this.textStr&&(delete this.textPxLength,this.textStr=n,this.added&&this.renderer.buildText(this))},s.prototype.titleSetter=function(n){var l=this.element,b=l.getElementsByTagName("title")[0]||I.createElementNS(this.SVG_NS,"title");l.insertBefore?l.insertBefore(b,l.firstChild):l.appendChild(b),b.textContent=String(t(n,"")).replace(/<[^>]*>/g,"").replace(/</g,"<").replace(/>/g,">")},s.prototype.toFront=function(){var n=this.element;return n.parentNode.appendChild(n),this},s.prototype.translate=function(n,l){return this.attr({translateX:n,translateY:l})},s.prototype.updateShadows=function(n,l,b){var k=this.shadows;if(k)for(var D=k.length;D--;)b.call(k[D],n==="height"?Math.max(l-(k[D].cutHeight||0),0):n==="d"?this.d:l,n,k[D])},s.prototype.updateTransform=function(){var n=this.element,l=this.matrix,b=this.rotation;b=b===void 0?0:b;var k=this.scaleX,D=this.scaleY,d=this.translateX,C=this.translateY;d=["translate("+(d===void 0?0:d)+","+(C===void 0?0:C)+")"],u(l)&&d.push("matrix("+l.join(",")+")"),b&&d.push("rotate("+b+" "+t(this.rotationOriginX,n.getAttribute("x"),0)+" "+t(this.rotationOriginY,n.getAttribute("y")||0)+")"),(u(k)||u(D))&&d.push("scale("+t(k,1)+" "+t(D,1)+")"),d.length&&!(this.text||this).textPath&&n.setAttribute("transform",d.join(" "))},s.prototype.visibilitySetter=function(n,l,b){n==="inherit"?b.removeAttribute(l):this[l]!==n&&b.setAttribute(l,n),this[l]=n},s.prototype.xGetter=function(n){return this.element.nodeName==="circle"&&(n==="x"?n="cx":n==="y"&&(n="cy")),this._defaultGetter(n)},s.prototype.zIndexSetter=function(n,l){var b=this.renderer,k=this.parentGroup,D=(k||b).element||b.box,d=this.element;b=D===b.box;var C,A=!1,N=this.added;if(u(n)?(d.setAttribute("data-z-index",n),n=+n,this[l]===n&&(N=!1)):u(this[l])&&d.removeAttribute("data-z-index"),this[l]=n,N){for((n=this.zIndex)&&k&&(k.handleZ=!0),C=(l=D.childNodes).length-1;0<=C&&!A;C--){N=(k=l[C]).getAttribute("data-z-index");var R=!u(N);k!==d&&(0>n&&R&&!b&&!C?(D.insertBefore(d,l[C]),A=!0):(i(N)<=n||R&&(!u(n)||0<=n))&&(D.insertBefore(d,l[C+1]||null),A=!0))}A||(D.insertBefore(d,l[b?3:0]||null),A=!0)}return A},s}(),G.prototype.strokeSetter=G.prototype.fillSetter,G.prototype.yGetter=G.prototype.xGetter,G.prototype.matrixSetter=G.prototype.rotationOriginXSetter=G.prototype.rotationOriginYSetter=G.prototype.rotationSetter=G.prototype.scaleXSetter=G.prototype.scaleYSetter=G.prototype.translateXSetter=G.prototype.translateYSetter=G.prototype.verticalAlignSetter=function(s,n){this[n]=s,this.doTransform=!0},G}),_(et,"Core/Renderer/RendererRegistry.js",[et["Core/Globals.js"]],function(G){var B;return function(X){var U;X.rendererTypes={},X.getRendererType=function($){return $===void 0&&($=U),X.rendererTypes[$]||X.rendererTypes[U]},X.registerRendererType=function($,Z,V){X.rendererTypes[$]=Z,U&&!V||(U=$,G.Renderer=Z)}}(B||(B={})),B}),_(et,"Core/Renderer/SVG/SVGLabel.js",[et["Core/Renderer/SVG/SVGElement.js"],et["Core/Utilities.js"]],function(G,B){var X=this&&this.__extends||function(){var E=function(M,P){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,h){y.__proto__=h}||function(y,h){for(var f in h)h.hasOwnProperty(f)&&(y[f]=h[f])},E(M,P)};return function(M,P){function y(){this.constructor=M}E(M,P),M.prototype=P===null?Object.create(P):(y.prototype=P.prototype,new y)}}(),U=B.defined,$=B.extend,Z=B.isNumber,V=B.merge,z=B.pick,I=B.removeEvent;return function(E){function M(P,y,h,f,m,u,v,S,w,x){var c,g=E.call(this)||this;return g.paddingLeftSetter=g.paddingSetter,g.paddingRightSetter=g.paddingSetter,g.init(P,"g"),g.textStr=y,g.x=h,g.y=f,g.anchorX=u,g.anchorY=v,g.baseline=w,g.className=x,g.addClass(x==="button"?"highcharts-no-tooltip":"highcharts-label"),x&&g.addClass("highcharts-"+x),g.text=P.text(void 0,0,0,S).attr({zIndex:1}),typeof m=="string"&&((c=/^url\((.*?)\)$/.test(m))||g.renderer.symbols[m])&&(g.symbolKey=m),g.bBox=M.emptyBBox,g.padding=3,g.baselineOffset=0,g.needsBox=P.styledMode||c,g.deferredAttr={},g.alignFactor=0,g}return X(M,E),M.prototype.alignSetter=function(P){(P={left:0,center:.5,right:1}[P])!==this.alignFactor&&(this.alignFactor=P,this.bBox&&Z(this.xSetting)&&this.attr({x:this.xSetting}))},M.prototype.anchorXSetter=function(P,y){this.anchorX=P,this.boxAttr(y,Math.round(P)-this.getCrispAdjust()-this.xSetting)},M.prototype.anchorYSetter=function(P,y){this.anchorY=P,this.boxAttr(y,P-this.ySetting)},M.prototype.boxAttr=function(P,y){this.box?this.box.attr(P,y):this.deferredAttr[P]=y},M.prototype.css=function(P){if(P){var y={};P=V(P),M.textProps.forEach(function(h){P[h]!==void 0&&(y[h]=P[h],delete P[h])}),this.text.css(y),"fontSize"in y||"fontWeight"in y?this.updateTextPadding():("width"in y||"textOverflow"in y)&&this.updateBoxSize()}return G.prototype.css.call(this,P)},M.prototype.destroy=function(){I(this.element,"mouseenter"),I(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),G.prototype.destroy.call(this)},M.prototype.fillSetter=function(P,y){P&&(this.needsBox=!0),this.fill=P,this.boxAttr(y,P)},M.prototype.getBBox=function(){this.textStr&&this.bBox.width===0&&this.bBox.height===0&&this.updateBoxSize();var P=this.padding,y=z(this.paddingLeft,P);return{width:this.width,height:this.height,x:this.bBox.x-y,y:this.bBox.y-P}},M.prototype.getCrispAdjust=function(){return this.renderer.styledMode&&this.box?this.box.strokeWidth()%2/2:(this["stroke-width"]?parseInt(this["stroke-width"],10):0)%2/2},M.prototype.heightSetter=function(P){this.heightSetting=P},M.prototype.onAdd=function(){this.text.add(this),this.attr({text:z(this.textStr,""),x:this.x||0,y:this.y||0}),this.box&&U(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})},M.prototype.paddingSetter=function(P,y){Z(P)?P!==this[y]&&(this[y]=P,this.updateTextPadding()):this[y]=void 0},M.prototype.rSetter=function(P,y){this.boxAttr(y,P)},M.prototype.shadow=function(P){return P&&!this.renderer.styledMode&&(this.updateBoxSize(),this.box&&this.box.shadow(P)),this},M.prototype.strokeSetter=function(P,y){this.stroke=P,this.boxAttr(y,P)},M.prototype["stroke-widthSetter"]=function(P,y){P&&(this.needsBox=!0),this["stroke-width"]=P,this.boxAttr(y,P)},M.prototype["text-alignSetter"]=function(P){this.textAlign=P},M.prototype.textSetter=function(P){P!==void 0&&this.text.attr({text:P}),this.updateTextPadding()},M.prototype.updateBoxSize=function(){var P=this.text,y=P.element.style,h={},f=this.padding,m=this.bBox=Z(this.widthSetting)&&Z(this.heightSetting)&&!this.textAlign||!U(P.textStr)?M.emptyBBox:P.getBBox();this.width=this.getPaddedWidth(),this.height=(this.heightSetting||m.height||0)+2*f,y=this.renderer.fontMetrics(y&&y.fontSize,P),this.baselineOffset=f+Math.min((this.text.firstLineMetrics||y).b,m.height||1/0),this.heightSetting&&(this.baselineOffset+=(this.heightSetting-y.h)/2),this.needsBox&&!P.textPath&&(this.box||((P=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect()).addClass((this.className==="button"?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),P.add(this)),P=this.getCrispAdjust(),h.x=P,h.y=(this.baseline?-this.baselineOffset:0)+P,h.width=Math.round(this.width),h.height=Math.round(this.height),this.box.attr($(h,this.deferredAttr)),this.deferredAttr={})},M.prototype.updateTextPadding=function(){var P=this.text;if(!P.textPath){this.updateBoxSize();var y=this.baseline?0:this.baselineOffset,h=z(this.paddingLeft,this.padding);U(this.widthSetting)&&this.bBox&&(this.textAlign==="center"||this.textAlign==="right")&&(h+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width)),h===P.x&&y===P.y||(P.attr("x",h),P.hasBoxWidthChanged&&(this.bBox=P.getBBox(!0)),y!==void 0&&P.attr("y",y)),P.x=h,P.y=y}},M.prototype.widthSetter=function(P){this.widthSetting=Z(P)?P:void 0},M.prototype.getPaddedWidth=function(){var P=this.padding,y=z(this.paddingLeft,P);return P=z(this.paddingRight,P),(this.widthSetting||this.bBox.width||0)+y+P},M.prototype.xSetter=function(P){this.x=P,this.alignFactor&&(P-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0),this.xSetting=Math.round(P),this.attr("translateX",this.xSetting)},M.prototype.ySetter=function(P){this.ySetting=this.y=Math.round(P),this.attr("translateY",this.ySetting)},M.emptyBBox={width:0,height:0,x:0,y:0},M.textProps="color direction fontFamily fontSize fontStyle fontWeight lineHeight textAlign textDecoration textOutline textOverflow width".split(" "),M}(G)}),_(et,"Core/Renderer/SVG/Symbols.js",[et["Core/Utilities.js"]],function(G){function B(z,I,E,M,P){var y=[];if(P){var h=P.start||0,f=V(P.r,E);E=V(P.r,M||E);var m=(P.end||0)-.001;M=P.innerR;var u=V(P.open,.001>Math.abs((P.end||0)-h-2*Math.PI)),v=Math.cos(h),S=Math.sin(h),w=Math.cos(m),x=Math.sin(m);h=V(P.longArc,.001>m-h-Math.PI?0:1),y.push(["M",z+f*v,I+E*S],["A",f,E,0,h,V(P.clockwise,1),z+f*w,I+E*x]),$(M)&&y.push(u?["M",z+M*w,I+M*x]:["L",z+M*w,I+M*x],["A",M,M,0,h,$(P.clockwise)?1-P.clockwise:0,z+M*v,I+M*S]),u||y.push(["Z"])}return y}function X(z,I,E,M,P){return P&&P.r?U(z,I,E,M,P):[["M",z,I],["L",z+E,I],["L",z+E,I+M],["L",z,I+M],["Z"]]}function U(z,I,E,M,P){return[["M",z+(P=P&&P.r||0),I],["L",z+E-P,I],["C",z+E,I,z+E,I,z+E,I+P],["L",z+E,I+M-P],["C",z+E,I+M,z+E,I+M,z+E-P,I+M],["L",z+P,I+M],["C",z,I+M,z,I+M,z,I+M-P],["L",z,I+P],["C",z,I,z,I,z+P,I]]}var $=G.defined,Z=G.isNumber,V=G.pick;return{arc:B,callout:function(z,I,E,M,P){var y=Math.min(P&&P.r||0,E,M),h=y+6,f=P&&P.anchorX;P=P&&P.anchorY||0;var m=U(z,I,E,M,{r:y});return Z(f)&&(z+f>=E?P>I+h&&P<I+M-h?m.splice(3,1,["L",z+E,P-6],["L",z+E+6,P],["L",z+E,P+6],["L",z+E,I+M-y]):m.splice(3,1,["L",z+E,M/2],["L",f,P],["L",z+E,M/2],["L",z+E,I+M-y]):0>=z+f?P>I+h&&P<I+M-h?m.splice(7,1,["L",z,P+6],["L",z-6,P],["L",z,P-6],["L",z,I+y]):m.splice(7,1,["L",z,M/2],["L",f,P],["L",z,M/2],["L",z,I+y]):P&&P>M&&f>z+h&&f<z+E-h?m.splice(5,1,["L",f+6,I+M],["L",f,I+M+6],["L",f-6,I+M],["L",z+y,I+M]):P&&0>P&&f>z+h&&f<z+E-h&&m.splice(1,1,["L",f-6,I],["L",f,I-6],["L",f+6,I],["L",E-y,I])),m},circle:function(z,I,E,M){return B(z+E/2,I+M/2,E/2,M/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(z,I,E,M){return[["M",z+E/2,I],["L",z+E,I+M/2],["L",z+E/2,I+M],["L",z,I+M/2],["Z"]]},rect:X,roundedRect:U,square:X,triangle:function(z,I,E,M){return[["M",z+E/2,I],["L",z+E,I+M],["L",z,I+M],["Z"]]},"triangle-down":function(z,I,E,M){return[["M",z,I],["L",z+E,I],["L",z+E/2,I+M],["Z"]]}}}),_(et,"Core/Renderer/SVG/TextBuilder.js",[et["Core/Renderer/HTML/AST.js"],et["Core/Globals.js"],et["Core/Utilities.js"]],function(G,B,X){var U=B.doc,$=B.SVG_NS,Z=B.win,V=X.attr,z=X.extend,I=X.fireEvent,E=X.isString,M=X.objectEach,P=X.pick;return function(){function y(h){var f=h.styles;this.renderer=h.renderer,this.svgElement=h,this.width=h.textWidth,this.textLineHeight=f&&f.lineHeight,this.textOutline=f&&f.textOutline,this.ellipsis=!(!f||f.textOverflow!=="ellipsis"),this.noWrap=!(!f||f.whiteSpace!=="nowrap"),this.fontSize=f&&f.fontSize}return y.prototype.buildSVG=function(){var h=this.svgElement,f=h.element,m=h.renderer,u=P(h.textStr,"").toString(),v=u.indexOf("<")!==-1,S=f.childNodes;m=this.width&&!h.added&&m.box;var w=[u,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,this.fontSize,this.width].join();if(w!==h.textCache){for(h.textCache=w,delete h.actualWidth,w=S.length;w--;)f.removeChild(S[w]);v||this.ellipsis||this.width||h.textPath||u.indexOf(" ")!==-1&&(!this.noWrap||/<br.*?>/g.test(u))?u!==""&&(m&&m.appendChild(f),u=new G(u),this.modifyTree(u.nodes),u.addToDOM(f),this.modifyDOM(),this.ellipsis&&(f.textContent||"").indexOf("…")!==-1&&h.attr("title",this.unescapeEntities(h.textStr||"",["<",">"])),m&&m.removeChild(f)):f.appendChild(U.createTextNode(this.unescapeEntities(u))),E(this.textOutline)&&h.applyTextOutline&&h.applyTextOutline(this.textOutline)}},y.prototype.modifyDOM=function(){var h,f=this,m=this.svgElement,u=V(m.element,"x");for(m.firstLineMetrics=void 0;(h=m.element.firstChild)&&/^[\s\u200B]*$/.test(h.textContent||" ");)m.element.removeChild(h);[].forEach.call(m.element.querySelectorAll("tspan.highcharts-br"),function(x,c){x.nextSibling&&x.previousSibling&&(c===0&&x.previousSibling.nodeType===1&&(m.firstLineMetrics=m.renderer.fontMetrics(void 0,x.previousSibling)),V(x,{dy:f.getLineHeight(x.nextSibling),x:u}))});var v=this.width||0;if(v){var S=function(x,c){var g=x.textContent||"",r=g.replace(/([^\^])-/g,"$1- ").split(" "),a=!f.noWrap&&(1<r.length||1<m.element.childNodes.length),t=f.getLineHeight(c),i=0,o=m.actualWidth;if(f.ellipsis)g&&f.truncate(x,g,void 0,0,Math.max(0,v-parseInt(f.fontSize||12,10)),function(e,s){return e.substring(0,s)+"…"});else if(a){for(g=[],a=[];c.firstChild&&c.firstChild!==x;)a.push(c.firstChild),c.removeChild(c.firstChild);for(;r.length;)r.length&&!f.noWrap&&0<i&&(g.push(x.textContent||""),x.textContent=r.join(" ").replace(/- /g,"-")),f.truncate(x,void 0,r,i===0&&o||0,v,function(e,s){return r.slice(0,s).join(" ").replace(/- /g,"-")}),o=m.actualWidth,i++;a.forEach(function(e){c.insertBefore(e,x)}),g.forEach(function(e){c.insertBefore(U.createTextNode(e),x),(e=U.createElementNS($,"tspan")).textContent="",V(e,{dy:t,x:u}),c.insertBefore(e,x)})}},w=function(x){[].slice.call(x.childNodes).forEach(function(c){c.nodeType===Z.Node.TEXT_NODE?S(c,x):(c.className.baseVal.indexOf("highcharts-br")!==-1&&(m.actualWidth=0),w(c))})};w(m.element)}},y.prototype.getLineHeight=function(h){var f;return h=h.nodeType===Z.Node.TEXT_NODE?h.parentElement:h,this.renderer.styledMode||(f=h&&/(px|em)$/.test(h.style.fontSize)?h.style.fontSize:this.fontSize||this.renderer.style.fontSize||12),this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(f,h||this.svgElement.element).h},y.prototype.modifyTree=function(h){var f=this,m=function(u,v){var S=u.attributes;S=S===void 0?{}:S;var w=u.children,x=u.style;x=x===void 0?{}:x;var c=u.tagName,g=f.renderer.styledMode;c==="b"||c==="strong"?g?S.class="highcharts-strong":x.fontWeight="bold":c!=="i"&&c!=="em"||(g?S.class="highcharts-emphasized":x.fontStyle="italic"),x&&x.color&&(x.fill=x.color),c==="br"?(S.class="highcharts-br",u.textContent="",(v=h[v+1])&&v.textContent&&(v.textContent=v.textContent.replace(/^ +/gm,""))):c==="a"&&w&&w.some(function(r){return r.tagName==="#text"})&&(u.children=[{children:w,tagName:"tspan"}]),c!=="#text"&&c!=="a"&&(u.tagName="tspan"),z(u,{attributes:S,style:x}),w&&w.filter(function(r){return r.tagName!=="#text"}).forEach(m)};h.forEach(m),I(this.svgElement,"afterModifyTree",{nodes:h})},y.prototype.truncate=function(h,f,m,u,v,S){var w,x=this.svgElement,c=x.renderer,g=x.rotation,r=[],a=m?1:0,t=(f||m||"").length,i=t,o=function(s,n){n=n||s;var l=h.parentNode;if(l&&r[n]===void 0)if(l.getSubStringLength)try{r[n]=u+l.getSubStringLength(0,m?n+1:n)}catch(b){}else c.getSpanWidth&&(h.textContent=S(f||m,s),r[n]=u+c.getSpanWidth(x,h));return r[n]};x.rotation=0;var e=o(h.textContent.length);if(u+e>v){for(;a<=t;)i=Math.ceil((a+t)/2),m&&(w=S(m,i)),e=o(i,w&&w.length-1),a===t?a=t+1:e>v?t=i-1:a=i;t===0?h.textContent="":f&&t===f.length-1||(h.textContent=w||S(f||m,i))}m&&m.splice(0,i),x.actualWidth=e,x.rotation=g},y.prototype.unescapeEntities=function(h,f){return M(this.renderer.escapes,function(m,u){f&&f.indexOf(m)!==-1||(h=h.toString().replace(new RegExp(m,"g"),u))}),h},y}()}),_(et,"Core/Renderer/SVG/SVGRenderer.js",[et["Core/Renderer/HTML/AST.js"],et["Core/Color/Color.js"],et["Core/Globals.js"],et["Core/Renderer/RendererRegistry.js"],et["Core/Renderer/SVG/SVGElement.js"],et["Core/Renderer/SVG/SVGLabel.js"],et["Core/Renderer/SVG/Symbols.js"],et["Core/Renderer/SVG/TextBuilder.js"],et["Core/Utilities.js"]],function(G,B,X,U,$,Z,V,z,I){var E,M=X.charts,P=X.deg2rad,y=X.doc,h=X.isFirefox,f=X.isMS,m=X.isWebKit,u=X.noop,v=X.SVG_NS,S=X.symbolSizes,w=X.win,x=I.addEvent,c=I.attr,g=I.createElement,r=I.css,a=I.defined,t=I.destroyObjectProperties,i=I.extend,o=I.isArray,e=I.isNumber,s=I.isObject,n=I.isString,l=I.merge,b=I.pick,k=I.pInt,D=I.uniqueKey;return X=function(){function d(C,A,N,R,L,O,j){this.width=this.url=this.style=this.isSVG=this.imgCount=this.height=this.gradients=this.globalAnimation=this.defs=this.chartIndex=this.cacheKeys=this.cache=this.boxWrapper=this.box=this.alignedObjects=void 0,this.init(C,A,N,R,L,O,j)}return d.prototype.init=function(C,A,N,R,L,O,j){var Y,H=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"}),W=H.element;j||H.css(this.getStyle(R)),C.appendChild(W),c(C,"dir","ltr"),C.innerHTML.indexOf("xmlns")===-1&&c(W,"xmlns",this.SVG_NS),this.isSVG=!0,this.box=W,this.boxWrapper=H,this.alignedObjects=[],this.url=this.getReferenceURL(),this.createElement("desc").add().element.appendChild(y.createTextNode("Created with Highcharts 10.3.3")),this.defs=this.createElement("defs").add(),this.allowHTML=O,this.forExport=L,this.styledMode=j,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.setSize(A,N,!1),h&&C.getBoundingClientRect&&((A=function(){r(C,{left:0,top:0}),Y=C.getBoundingClientRect(),r(C,{left:Math.ceil(Y.left)-Y.left+"px",top:Math.ceil(Y.top)-Y.top+"px"})})(),this.unSubPixelFix=x(w,"resize",A))},d.prototype.definition=function(C){return new G([C]).addToDOM(this.defs.element)},d.prototype.getReferenceURL=function(){if((h||m)&&y.getElementsByTagName("base").length){if(!a(E)){var C=D();C=new G([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:C},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":"url(#".concat(C,")"),fill:"rgba(0,0,0,0.001)"}}]}]).addToDOM(y.body),r(C,{position:"fixed",top:0,left:0,zIndex:9e5});var A=y.elementFromPoint(6,6);E=(A&&A.id)==="hitme",y.body.removeChild(C)}if(E)return w.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20")}return""},d.prototype.getStyle=function(C){return this.style=i({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},C)},d.prototype.setStyle=function(C){this.boxWrapper.css(this.getStyle(C))},d.prototype.isHidden=function(){return!this.boxWrapper.getBBox().width},d.prototype.destroy=function(){var C=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),t(this.gradients||{}),this.gradients=null,C&&(this.defs=C.destroy()),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null},d.prototype.createElement=function(C){var A=new this.Element;return A.init(this,C),A},d.prototype.getRadialAttr=function(C,A){return{cx:C[0]-C[2]/2+(A.cx||0)*C[2],cy:C[1]-C[2]/2+(A.cy||0)*C[2],r:(A.r||0)*C[2]}},d.prototype.buildText=function(C){new z(C).buildSVG()},d.prototype.getContrast=function(C){return 1.05/(.05+(C=.2126*(C=B.parse(C).rgba.map(function(A){return .03928>=(A/=255)?A/12.92:Math.pow((A+.055)/1.055,2.4)}))[0]+.7152*C[1]+.0722*C[2]))>(C+.05)/.05?"#FFFFFF":"#000000"},d.prototype.button=function(C,A,N,R,L,O,j,Y,H,W){L===void 0&&(L={});var q=this.label(C,A,N,H,void 0,void 0,W,void 0,"button"),Q=this.styledMode;C=L.states||{};var J=0;delete(L=l(L)).states;var nt=l({color:"#333333",cursor:"pointer",fontWeight:"normal"},L.style);delete L.style;var lt=G.filterUserAttributes(L);if(q.attr(l({padding:8,r:2},lt)),!Q){lt=l({fill:"#f7f7f7",stroke:"#cccccc","stroke-width":1},lt);var gt=(O=l(lt,{fill:"#e6e6e6"},G.filterUserAttributes(O||C.hover||{}))).style;delete O.style;var mt=(j=l(lt,{fill:"#e6ebf5",style:{color:"#000000",fontWeight:"bold"}},G.filterUserAttributes(j||C.select||{}))).style;delete j.style;var bt=(Y=l(lt,{style:{color:"#cccccc"}},G.filterUserAttributes(Y||C.disabled||{}))).style;delete Y.style}return x(q.element,f?"mouseover":"mouseenter",function(){J!==3&&q.setState(1)}),x(q.element,f?"mouseout":"mouseleave",function(){J!==3&&q.setState(J)}),q.setState=function(yt){yt!==1&&(q.state=J=yt),q.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][yt||0]),Q||(q.attr([lt,O,j,Y][yt||0]),s(yt=[nt,gt,mt,bt][yt||0])&&q.css(yt))},Q||(q.attr(lt).css(i({cursor:"default"},nt)),W&&q.text.css({pointerEvents:"none"})),q.on("touchstart",function(yt){return yt.stopPropagation()}).on("click",function(yt){J!==3&&R.call(q,yt)})},d.prototype.crispLine=function(C,A,N){N===void 0&&(N="round");var R=C[0],L=C[1];return a(R[1])&&R[1]===L[1]&&(R[1]=L[1]=Math[N](R[1])-A%2/2),a(R[2])&&R[2]===L[2]&&(R[2]=L[2]=Math[N](R[2])+A%2/2),C},d.prototype.path=function(C){var A=this.styledMode?{}:{fill:"none"};return o(C)?A.d=C:s(C)&&i(A,C),this.createElement("path").attr(A)},d.prototype.circle=function(C,A,N){return C=s(C)?C:C===void 0?{}:{x:C,y:A,r:N},(A=this.createElement("circle")).xSetter=A.ySetter=function(R,L,O){O.setAttribute("c"+L,R)},A.attr(C)},d.prototype.arc=function(C,A,N,R,L,O){return s(C)?(A=(R=C).y,N=R.r,C=R.x):R={innerR:R,start:L,end:O},(C=this.symbol("arc",C,A,N,N,R)).r=N,C},d.prototype.rect=function(C,A,N,R,L,O){L=s(C)?C.r:L;var j=this.createElement("rect");return C=s(C)?C:C===void 0?{}:{x:C,y:A,width:Math.max(N,0),height:Math.max(R,0)},this.styledMode||(O!==void 0&&(C["stroke-width"]=O,C=j.crisp(C)),C.fill="none"),L&&(C.r=L),j.rSetter=function(Y,H,W){j.r=Y,c(W,{rx:Y,ry:Y})},j.rGetter=function(){return j.r||0},j.attr(C)},d.prototype.setSize=function(C,A,N){this.width=C,this.height=A,this.boxWrapper.animate({width:C,height:A},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:b(N,!0)?void 0:0}),this.alignElements()},d.prototype.g=function(C){var A=this.createElement("g");return C?A.attr({class:"highcharts-"+C}):A},d.prototype.image=function(C,A,N,R,L,O){var j={preserveAspectRatio:"none"},Y=function(W,q){W.setAttributeNS?W.setAttributeNS("http://www.w3.org/1999/xlink","href",q):W.setAttribute("hc-svg-href",q)};e(A)&&(j.x=A),e(N)&&(j.y=N),e(R)&&(j.width=R),e(L)&&(j.height=L);var H=this.createElement("image").attr(j);return A=function(W){Y(H.element,C),O.call(H,W)},O?(Y(H.element,"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),N=new w.Image,x(N,"load",A),N.src=C,N.complete&&A({})):Y(H.element,C),H},d.prototype.symbol=function(C,A,N,R,L,O){var j,Y=this,H=/^url\((.*?)\)$/,W=H.test(C),q=!W&&(this.symbols[C]?C:"circle"),Q=q&&this.symbols[q];if(Q){typeof A=="number"&&(j=Q.call(this.symbols,Math.round(A||0),Math.round(N||0),R||0,L||0,O));var J=this.path(j);Y.styledMode||J.attr("fill","none"),i(J,{symbolName:q||void 0,x:A,y:N,width:R,height:L}),O&&i(J,O)}else if(W){var nt=C.match(H)[1],lt=J=this.image(nt);lt.imgwidth=b(S[nt]&&S[nt].width,O&&O.width),lt.imgheight=b(S[nt]&&S[nt].height,O&&O.height);var gt=function(mt){return mt.attr({width:mt.width,height:mt.height})};["width","height"].forEach(function(mt){lt[mt+"Setter"]=function(bt,yt){this[yt]=bt,bt=this.alignByTranslate;var dt=this.element,ot=this.width,at=this.height,ut=this.imgwidth,vt=this.imgheight,Ct=this["img"+yt];if(a(Ct)){var xt=1;O&&O.backgroundSize==="within"&&ot&&at?(xt=Math.min(ot/ut,at/vt),Ct=Math.round(Ct*xt),c(dt,{width:Math.round(ut*xt),height:Math.round(vt*xt)})):dt&&dt.setAttribute(yt,Ct),bt||this.translate(((ot||0)-Ct*xt)/2,((at||0)-Ct*xt)/2)}}}),a(A)&<.attr({x:A,y:N}),lt.isImg=!0,a(lt.imgwidth)&&a(lt.imgheight)?gt(lt):(lt.attr({width:0,height:0}),g("img",{onload:function(){var mt=M[Y.chartIndex];this.width===0&&(r(this,{position:"absolute",top:"-999em"}),y.body.appendChild(this)),S[nt]={width:this.width,height:this.height},lt.imgwidth=this.width,lt.imgheight=this.height,lt.element&>(lt),this.parentNode&&this.parentNode.removeChild(this),Y.imgCount--,Y.imgCount||!mt||mt.hasLoaded||mt.onload()},src:nt}),this.imgCount++)}return J},d.prototype.clipRect=function(C,A,N,R){var L=D()+"-",O=this.createElement("clipPath").attr({id:L}).add(this.defs);return(C=this.rect(C,A,N,R,0).add(O)).id=L,C.clipPath=O,C.count=0,C},d.prototype.text=function(C,A,N,R){var L={};return!R||!this.allowHTML&&this.forExport?(L.x=Math.round(A||0),N&&(L.y=Math.round(N)),a(C)&&(L.text=C),C=this.createElement("text").attr(L),(!R||this.forExport&&!this.allowHTML)&&(C.xSetter=function(O,j,Y){for(var H,W=Y.getElementsByTagName("tspan"),q=Y.getAttribute(j),Q=0;Q<W.length;Q++)(H=W[Q]).getAttribute(j)===q&&H.setAttribute(j,O);Y.setAttribute(j,O)}),C):this.html(C,A,N)},d.prototype.fontMetrics=function(C,A){return C=!this.styledMode&&/px/.test(C)||!w.getComputedStyle?C||A&&A.style&&A.style.fontSize||this.style&&this.style.fontSize:A&&$.prototype.getStyle.call(A,"font-size"),{h:A=24>(C=/px/.test(C)?k(C):12)?C+3:Math.round(1.2*C),b:Math.round(.8*A),f:C}},d.prototype.rotCorr=function(C,A,N){var R=C;return A&&N&&(R=Math.max(R*Math.cos(A*P),4)),{x:-C/3*Math.sin(A*P),y:R}},d.prototype.pathToSegments=function(C){for(var A=[],N=[],R={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2},L=0;L<C.length;L++)n(N[0])&&e(C[L])&&N.length===R[N[0].toUpperCase()]&&C.splice(L,0,N[0].replace("M","L").replace("m","l")),typeof C[L]=="string"&&(N.length&&A.push(N.slice(0)),N.length=0),N.push(C[L]);return A.push(N.slice(0)),A},d.prototype.label=function(C,A,N,R,L,O,j,Y,H){return new Z(this,C,A,N,R,L,O,j,Y,H)},d.prototype.alignElements=function(){this.alignedObjects.forEach(function(C){return C.align()})},d}(),i(X.prototype,{Element:$,SVG_NS:v,escapes:{"&":"&","<":"<",">":">","'":"'",'"':"""},symbols:V,draw:u}),U.registerRendererType("svg",X,!0),X}),_(et,"Core/Renderer/HTML/HTMLElement.js",[et["Core/Globals.js"],et["Core/Renderer/SVG/SVGElement.js"],et["Core/Utilities.js"]],function(G,B,X){var U=this&&this.__extends||function(){var h=function(f,m){return h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,v){u.__proto__=v}||function(u,v){for(var S in v)v.hasOwnProperty(S)&&(u[S]=v[S])},h(f,m)};return function(f,m){function u(){this.constructor=f}h(f,m),f.prototype=m===null?Object.create(m):(u.prototype=m.prototype,new u)}}(),$=G.isFirefox,Z=G.isMS,V=G.isWebKit,z=G.win,I=X.css,E=X.defined,M=X.extend,P=X.pick,y=X.pInt;return function(h){function f(){return h!==null&&h.apply(this,arguments)||this}return U(f,h),f.compose=function(m){if(f.composedClasses.indexOf(m)===-1){f.composedClasses.push(m);var u=f.prototype,v=m.prototype;v.getSpanCorrection=u.getSpanCorrection,v.htmlCss=u.htmlCss,v.htmlGetBBox=u.htmlGetBBox,v.htmlUpdateTransform=u.htmlUpdateTransform,v.setSpanRotation=u.setSpanRotation}return m},f.prototype.getSpanCorrection=function(m,u,v){this.xCorr=-m*v,this.yCorr=-u},f.prototype.htmlCss=function(m){var u=this.element.tagName==="SPAN"&&m&&"width"in m,v=P(u&&m.width,void 0);if(u){delete m.width,this.textWidth=v;var S=!0}return m&&m.textOverflow==="ellipsis"&&(m.whiteSpace="nowrap",m.overflow="hidden"),this.styles=M(this.styles,m),I(this.element,m),S&&this.htmlUpdateTransform(),this},f.prototype.htmlGetBBox=function(){var m=this.element;return{x:m.offsetLeft,y:m.offsetTop,width:m.offsetWidth,height:m.offsetHeight}},f.prototype.htmlUpdateTransform=function(){if(this.added){var m=this.renderer,u=this.element,v=this.translateX||0,S=this.translateY||0,w=this.x||0,x=this.y||0,c=this.textAlign||"left",g={left:0,center:.5,right:1}[c],r=this.styles;if(r=r&&r.whiteSpace,I(u,{marginLeft:v,marginTop:S}),!m.styledMode&&this.shadows&&this.shadows.forEach(function(s){I(s,{marginLeft:v+1,marginTop:S+1})}),this.inverted&&[].forEach.call(u.childNodes,function(s){m.invertChild(s,u)}),u.tagName==="SPAN"){var a=this.rotation,t=this.textWidth&&y(this.textWidth),i=[a,c,u.innerHTML,this.textWidth,this.textAlign].join(),o=void 0;if(o=!1,t!==this.oldTextWidth){if(this.textPxLength)var e=this.textPxLength;else I(u,{width:"",whiteSpace:r||"nowrap"}),e=u.offsetWidth;(t>this.oldTextWidth||e>t)&&(/[ \-]/.test(u.textContent||u.innerText)||u.style.textOverflow==="ellipsis")&&(I(u,{width:e>t||a?t+"px":"auto",display:"block",whiteSpace:r||"normal"}),this.oldTextWidth=t,o=!0)}this.hasBoxWidthChanged=o,i!==this.cTT&&(o=m.fontMetrics(u.style.fontSize,u).b,!E(a)||a===(this.oldRotation||0)&&c===this.oldAlign||this.setSpanRotation(a,g,o),this.getSpanCorrection(!E(a)&&this.textPxLength||u.offsetWidth,o,g,a,c)),I(u,{left:w+(this.xCorr||0)+"px",top:x+(this.yCorr||0)+"px"}),this.cTT=i,this.oldRotation=a,this.oldAlign=c}}else this.alignOnAdd=!0},f.prototype.setSpanRotation=function(m,u,v){var S={},w=Z&&!/Edge/.test(z.navigator.userAgent)?"-ms-transform":V?"-webkit-transform":$?"MozTransform":z.opera?"-o-transform":void 0;w&&(S[w]=S.transform="rotate("+m+"deg)",S[w+($?"Origin":"-origin")]=S.transformOrigin=100*u+"% "+v+"px",I(this.element,S))},f.composedClasses=[],f}(B)}),_(et,"Core/Renderer/HTML/HTMLRenderer.js",[et["Core/Renderer/HTML/AST.js"],et["Core/Renderer/SVG/SVGElement.js"],et["Core/Renderer/SVG/SVGRenderer.js"],et["Core/Utilities.js"]],function(G,B,X,U){var $=this&&this.__extends||function(){var E=function(M,P){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,h){y.__proto__=h}||function(y,h){for(var f in h)h.hasOwnProperty(f)&&(y[f]=h[f])},E(M,P)};return function(M,P){function y(){this.constructor=M}E(M,P),M.prototype=P===null?Object.create(P):(y.prototype=P.prototype,new y)}}(),Z=U.attr,V=U.createElement,z=U.extend,I=U.pick;return function(E){function M(){return E!==null&&E.apply(this,arguments)||this}return $(M,E),M.compose=function(P){return M.composedClasses.indexOf(P)===-1&&(M.composedClasses.push(P),P.prototype.html=M.prototype.html),P},M.prototype.html=function(P,y,h){var f=this.createElement("span"),m=f.element,u=f.renderer,v=u.isSVG,S=function(w,x){["opacity","visibility"].forEach(function(c){w[c+"Setter"]=function(g,r,a){var t=w.div?w.div.style:x;B.prototype[c+"Setter"].call(this,g,r,a),t&&(t[r]=g)}}),w.addedSetters=!0};return f.textSetter=function(w){w!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,G.setElementHTML(this.element,I(w,"")),this.textStr=w,f.doTransform=!0)},v&&S(f,f.element.style),f.xSetter=f.ySetter=f.alignSetter=f.rotationSetter=function(w,x){x==="align"?f.alignValue=f.textAlign=w:f[x]=w,f.doTransform=!0},f.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)},f.attr({text:P,x:Math.round(y),y:Math.round(h)}).css({position:"absolute"}),u.styledMode||f.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize}),m.style.whiteSpace="nowrap",f.css=f.htmlCss,v&&(f.add=function(w){var x=u.box.parentNode,c=[];if(this.parentGroup=w){var g=w.div;if(!g){for(;w;)c.push(w),w=w.parentGroup;c.reverse().forEach(function(r){function a(e,s){r[s]=e,s==="translateX"?o.left=e+"px":o.top=e+"px",r.doTransform=!0}var t=Z(r.element,"class"),i=r.styles||{},o=(g=r.div=r.div||V("div",t?{className:t}:void 0,{position:"absolute",left:(r.translateX||0)+"px",top:(r.translateY||0)+"px",display:r.display,opacity:r.opacity,cursor:i.cursor,pointerEvents:i.pointerEvents,visibility:r.visibility},g||x)).style;z(r,{classSetter:function(e){return function(s){this.element.setAttribute("class",s),e.className=s}}(g),on:function(){return c[0].div&&f.on.apply({element:c[0].div,onEvents:r.onEvents},arguments),r},translateXSetter:a,translateYSetter:a}),r.addedSetters||S(r)})}}else g=x;return g.appendChild(m),f.added=!0,f.alignOnAdd&&f.htmlUpdateTransform(),f}),f},M.composedClasses=[],M}(X)}),_(et,"Core/Axis/AxisDefaults.js",[],function(){var G;return function(B){B.defaultXAxisOptions={alignTicks:!0,allowDecimals:void 0,panningEnabled:!0,zIndex:2,zoomEnabled:!0,dateTimeLabelFormats:{millisecond:{main:"%H:%M:%S.%L",range:!1},second:{main:"%H:%M:%S",range:!1},minute:{main:"%H:%M",range:!1},hour:{main:"%H:%M",range:!1},day:{main:"%e. %b"},week:{main:"%e. %b"},month:{main:"%b '%y"},year:{main:"%Y"}},endOnTick:!1,gridLineDashStyle:"Solid",gridZIndex:1,labels:{autoRotation:void 0,autoRotationLimit:80,distance:void 0,enabled:!0,indentation:10,overflow:"justify",padding:5,reserveSpace:void 0,rotation:void 0,staggerLines:0,step:0,useHTML:!1,x:0,zIndex:7,style:{color:"#666666",cursor:"default",fontSize:"11px"}},maxPadding:.01,minorGridLineDashStyle:"Solid",minorTickLength:2,minorTickPosition:"outside",minPadding:.01,offset:void 0,opposite:!1,reversed:void 0,reversedStacks:!1,showEmpty:!0,showFirstLabel:!0,showLastLabel:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",rotation:0,useHTML:!1,x:0,y:0,style:{color:"#666666"}},type:"linear",uniqueNames:!0,visible:!0,minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#ccd6eb",lineWidth:1,gridLineColor:"#e6e6e6",gridLineWidth:void 0,tickColor:"#ccd6eb"},B.defaultYAxisOptions={reversedStacks:!0,endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},startOnTick:!0,title:{rotation:270,text:"Values"},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){return(0,this.axis.chart.numberFormatter)(this.total||0,-1)},style:{color:"#000000",fontSize:"11px",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0},B.defaultLeftAxisOptions={labels:{x:-15},title:{rotation:270}},B.defaultRightAxisOptions={labels:{x:15},title:{rotation:90}},B.defaultBottomAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}},B.defaultTopAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}}}(G||(G={})),G}),_(et,"Core/Foundation.js",[et["Core/Utilities.js"]],function(G){var B,X=G.addEvent,U=G.isFunction,$=G.objectEach,Z=G.removeEvent;return function(V){V.registerEventOptions=function(z,I){z.eventOptions=z.eventOptions||{},$(I.events,function(E,M){z.eventOptions[M]!==E&&(z.eventOptions[M]&&(Z(z,M,z.eventOptions[M]),delete z.eventOptions[M]),U(E)&&(z.eventOptions[M]=E,X(z,M,E)))})}}(B||(B={})),B}),_(et,"Core/Axis/Tick.js",[et["Core/FormatUtilities.js"],et["Core/Globals.js"],et["Core/Utilities.js"]],function(G,B,X){var U=B.deg2rad,$=X.clamp,Z=X.correctFloat,V=X.defined,z=X.destroyObjectProperties,I=X.extend,E=X.fireEvent,M=X.isNumber,P=X.merge,y=X.objectEach,h=X.pick;return B=function(){function f(m,u,v,S,w){this.isNewLabel=this.isNew=!0,this.axis=m,this.pos=u,this.type=v||"",this.parameters=w||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,E(this,"init"),v||S||this.addLabel()}return f.prototype.addLabel=function(){var m=this,u=m.axis,v=u.options,S=u.chart,w=u.categories,x=u.logarithmic,c=u.names,g=m.pos,r=h(m.options&&m.options.labels,v.labels),a=u.tickPositions,t=g===a[0],i=g===a[a.length-1],o=(!r.step||r.step===1)&&u.tickInterval===1;a=a.info;var e,s=m.label;if(w=this.parameters.category||(w?h(w[g],c[g],g):g),x&&M(w)&&(w=Z(x.lin2log(w))),u.dateTime)if(a)var n=S.time.resolveDTLFormat(v.dateTimeLabelFormats[!v.grid&&a.higherRanks[g]||a.unitName]),l=n.main;else M(w)&&(l=u.dateTime.getXDateFormat(w,v.dateTimeLabelFormats||{}));m.isFirst=t,m.isLast=i;var b={axis:u,chart:S,dateTimeLabelFormat:l,isFirst:t,isLast:i,pos:g,tick:m,tickPositionInfo:a,value:w};E(this,"labelFormat",b);var k=function(d){return r.formatter?r.formatter.call(d,d):r.format?(d.text=u.defaultLabelFormatter.call(d,d),G.format(r.format,d,S)):u.defaultLabelFormatter.call(d,d)};v=k.call(b,b);var D=n&&n.list;m.shortenLabel=D?function(){for(e=0;e<D.length;e++)if(I(b,{dateTimeLabelFormat:D[e]}),s.attr({text:k.call(b,b)}),s.getBBox().width<u.getSlotWidth(m)-2*r.padding)return;s.attr({text:""})}:void 0,o&&u._addedPlotLB&&m.moveLabel(v,r),V(s)||m.movedLabel?s&&s.textStr!==v&&!o&&(!s.textWidth||r.style.width||s.styles.width||s.css({width:null}),s.attr({text:v}),s.textPxLength=s.getBBox().width):(m.label=s=m.createLabel({x:0,y:0},v,r),m.rotation=0)},f.prototype.createLabel=function(m,u,v){var S=this.axis,w=S.chart;return(m=V(u)&&v.enabled?w.renderer.text(u,m.x,m.y,v.useHTML).add(S.labelGroup):null)&&(w.styledMode||m.css(P(v.style)),m.textPxLength=m.getBBox().width),m},f.prototype.destroy=function(){z(this,this.axis)},f.prototype.getPosition=function(m,u,v,S){var w=this.axis,x=w.chart,c=S&&x.oldChartHeight||x.chartHeight;return(m={x:m?Z(w.translate(u+v,void 0,void 0,S)+w.transB):w.left+w.offset+(w.opposite?(S&&x.oldChartWidth||x.chartWidth)-w.right-w.left:0),y:m?c-w.bottom+w.offset-(w.opposite?w.height:0):Z(c-w.translate(u+v,void 0,void 0,S)-w.transB)}).y=$(m.y,-1e5,1e5),E(this,"afterGetPosition",{pos:m}),m},f.prototype.getLabelPosition=function(m,u,v,S,w,x,c,g){var r=this.axis,a=r.transA,t=r.isLinked&&r.linkedParent?r.linkedParent.reversed:r.reversed,i=r.staggerLines,o=r.tickRotCorr||{x:0,y:0},e=S||r.reserveSpaceDefault?0:-r.labelOffset*(r.labelAlign==="center"?.5:1),s={};return v=r.side===0?v.rotation?-8:-v.getBBox().height:r.side===2?o.y+8:Math.cos(v.rotation*U)*(o.y-v.getBBox(!1,0).height/2),V(w.y)&&(v=r.side===0&&r.horiz?w.y+v:w.y),m=m+w.x+e+o.x-(x&&S?x*a*(t?-1:1):0),u=u+v-(x&&!S?x*a*(t?1:-1):0),i&&(S=c/(g||1)%i,r.opposite&&(S=i-S-1),u+=r.labelOffset/i*S),s.x=m,s.y=Math.round(u),E(this,"afterGetLabelPosition",{pos:s,tickmarkOffset:x,index:c}),s},f.prototype.getLabelSize=function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0},f.prototype.getMarkPath=function(m,u,v,S,w,x){return x.crispLine([["M",m,u],["L",m+(w?0:-v),u+(w?v:0)]],S)},f.prototype.handleOverflow=function(m){var u=this.axis,v=u.options.labels,S=m.x,w=u.chart.chartWidth,x=u.chart.spacing,c=h(u.labelLeft,Math.min(u.pos,x[3]));x=h(u.labelRight,Math.max(u.isRadial?0:u.pos+u.len,w-x[1]));var g,r=this.label,a=this.rotation,t={left:0,center:.5,right:1}[u.labelAlign||r.attr("align")],i=r.getBBox().width,o=u.getSlotWidth(this),e={},s=o,n=1;a||v.overflow!=="justify"?0>a&&S-t*i<c?g=Math.round(S/Math.cos(a*U)-c):0<a&&S+t*i>x&&(g=Math.round((w-S)/Math.cos(a*U))):(w=S+(1-t)*i,S-t*i<c?s=m.x+s*(1-t)-c:w>x&&(s=x-m.x+s*t,n=-1),(s=Math.min(o,s))<o&&u.labelAlign==="center"&&(m.x+=n*(o-s-t*(o-Math.min(i,s)))),(i>s||u.autoRotation&&(r.styles||{}).width)&&(g=s)),g&&(this.shortenLabel?this.shortenLabel():(e.width=Math.floor(g)+"px",(v.style||{}).textOverflow||(e.textOverflow="ellipsis"),r.css(e)))},f.prototype.moveLabel=function(m,u){var v=this,S=v.label,w=v.axis,x=w.reversed,c=!1;if(S&&S.textStr===m?(v.movedLabel=S,c=!0,delete v.label):y(w.ticks,function(r){c||r.isNew||r===v||!r.label||r.label.textStr!==m||(v.movedLabel=r.label,c=!0,r.labelPos=v.movedLabel.xy,delete r.label)}),!c&&(v.labelPos||S)){var g=v.labelPos||S.xy;S=w.horiz?x?0:w.width+w.left:g.x,w=w.horiz?g.y:x?w.width+w.left:0,v.movedLabel=v.createLabel({x:S,y:w},m,u),v.movedLabel&&v.movedLabel.attr({opacity:0})}},f.prototype.render=function(m,u,v){var S=this.axis,w=S.horiz,x=this.pos,c=h(this.tickmarkOffset,S.tickmarkOffset);c=(x=this.getPosition(w,x,c,u)).x;var g=x.y;S=w&&c===S.pos+S.len||!w&&g===S.pos?-1:1,w=h(v,this.label&&this.label.newOpacity,1),v=h(v,1),this.isActive=!0,this.renderGridLine(u,v,S),this.renderMark(x,v,S),this.renderLabel(x,u,w,m),this.isNew=!1,E(this,"afterRender")},f.prototype.renderGridLine=function(m,u,v){var S=this.axis,w=S.options,x={},c=this.pos,g=this.type,r=h(this.tickmarkOffset,S.tickmarkOffset),a=S.chart.renderer,t=this.gridLine,i=w.gridLineWidth,o=w.gridLineColor,e=w.gridLineDashStyle;this.type==="minor"&&(i=w.minorGridLineWidth,o=w.minorGridLineColor,e=w.minorGridLineDashStyle),t||(S.chart.styledMode||(x.stroke=o,x["stroke-width"]=i||0,x.dashstyle=e),g||(x.zIndex=1),m&&(u=0),this.gridLine=t=a.path().attr(x).addClass("highcharts-"+(g?g+"-":"")+"grid-line").add(S.gridGroup)),t&&(v=S.getPlotLinePath({value:c+r,lineWidth:t.strokeWidth()*v,force:"pass",old:m,acrossPanes:!1}))&&t[m||this.isNew?"attr":"animate"]({d:v,opacity:u})},f.prototype.renderMark=function(m,u,v){var S=this.axis,w=S.options,x=S.chart.renderer,c=this.type,g=S.tickSize(c?c+"Tick":"tick"),r=m.x;m=m.y;var a=h(w[c!=="minor"?"tickWidth":"minorTickWidth"],!c&&S.isXAxis?1:0);w=w[c!=="minor"?"tickColor":"minorTickColor"];var t=this.mark,i=!t;g&&(S.opposite&&(g[0]=-g[0]),t||(this.mark=t=x.path().addClass("highcharts-"+(c?c+"-":"")+"tick").add(S.axisGroup),S.chart.styledMode||t.attr({stroke:w,"stroke-width":a})),t[i?"attr":"animate"]({d:this.getMarkPath(r,m,g[0],t.strokeWidth()*v,S.horiz,x),opacity:u}))},f.prototype.renderLabel=function(m,u,v,S){var w=this.axis,x=w.horiz,c=w.options,g=this.label,r=c.labels,a=r.step;w=h(this.tickmarkOffset,w.tickmarkOffset);var t=m.x;m=m.y;var i=!0;g&&M(t)&&(g.xy=m=this.getLabelPosition(t,m,g,x,r,w,S,a),this.isFirst&&!this.isLast&&!c.showFirstLabel||this.isLast&&!this.isFirst&&!c.showLastLabel?i=!1:!x||r.step||r.rotation||u||v===0||this.handleOverflow(m),a&&S%a&&(i=!1),i&&M(m.y)?(m.opacity=v,g[this.isNewLabel?"attr":"animate"](m).show(!0),this.isNewLabel=!1):(g.hide(),this.isNewLabel=!0))},f.prototype.replaceMovedLabel=function(){var m=this.label,u=this.axis,v=u.reversed;if(m&&!this.isNew){var S=u.horiz?v?u.left:u.width+u.left:m.xy.x;v=u.horiz?m.xy.y:v?u.width+u.top:u.top,m.animate({x:S,y:v,opacity:0},void 0,m.destroy),delete this.label}u.isDirty=!0,this.label=this.movedLabel,delete this.movedLabel},f}(),B}),_(et,"Core/Axis/Axis.js",[et["Core/Animation/AnimationUtilities.js"],et["Core/Axis/AxisDefaults.js"],et["Core/Color/Color.js"],et["Core/Defaults.js"],et["Core/Foundation.js"],et["Core/Globals.js"],et["Core/Axis/Tick.js"],et["Core/Utilities.js"]],function(G,B,X,U,$,Z,V,z){var I=G.animObject,E=U.defaultOptions,M=$.registerEventOptions,P=Z.deg2rad,y=z.arrayMax,h=z.arrayMin,f=z.clamp,m=z.correctFloat,u=z.defined,v=z.destroyObjectProperties,S=z.erase,w=z.error,x=z.extend,c=z.fireEvent,g=z.isArray,r=z.isNumber,a=z.isString,t=z.merge,i=z.normalizeTickInterval,o=z.objectEach,e=z.pick,s=z.relativeLength,n=z.removeEvent,l=z.splat,b=z.syncTimeout,k=function(D,d){return i(d,void 0,void 0,e(D.options.allowDecimals,.5>d||D.tickAmount!==void 0),!!D.tickAmount)};return G=function(){function D(d,C){this.zoomEnabled=this.width=this.visible=this.userOptions=this.translationSlope=this.transB=this.transA=this.top=this.ticks=this.tickRotCorr=this.tickPositions=this.tickmarkOffset=this.tickInterval=this.tickAmount=this.side=this.series=this.right=this.positiveValuesOnly=this.pos=this.pointRangePadding=this.pointRange=this.plotLinesAndBandsGroups=this.plotLinesAndBands=this.paddedTicks=this.overlap=this.options=this.offset=this.names=this.minPixelPadding=this.minorTicks=this.minorTickInterval=this.min=this.maxLabelLength=this.max=this.len=this.left=this.labelFormatter=this.labelEdge=this.isLinked=this.height=this.hasVisibleSeries=this.hasNames=this.eventOptions=this.coll=this.closestPointRange=this.chart=this.bottom=this.alternateBands=void 0,this.init(d,C)}return D.prototype.init=function(d,C){var A=C.isX;this.chart=d,this.horiz=d.inverted&&!this.isZAxis?!A:A,this.isXAxis=A,this.coll=this.coll||(A?"xAxis":"yAxis"),c(this,"init",{userOptions:C}),this.opposite=e(C.opposite,this.opposite),this.side=e(C.side,this.side,this.horiz?this.opposite?0:2:this.opposite?1:3),this.setOptions(C);var N=this.options,R=N.labels,L=N.type;this.userOptions=C,this.minPixelPadding=0,this.reversed=e(N.reversed,this.reversed),this.visible=N.visible,this.zoomEnabled=N.zoomEnabled,this.hasNames=L==="category"||N.categories===!0,this.categories=N.categories||(this.hasNames?[]:void 0),this.names||(this.names=[],this.names.keys={}),this.plotLinesAndBandsGroups={},this.positiveValuesOnly=!!this.logarithmic,this.isLinked=u(N.linkedTo),this.ticks={},this.labelEdge=[],this.minorTicks={},this.plotLinesAndBands=[],this.alternateBands={},this.len=0,this.minRange=this.userMinRange=N.minRange||N.maxZoom,this.range=N.range,this.offset=N.offset||0,this.min=this.max=null,C=e(N.crosshair,l(d.options.tooltip.crosshairs)[A?0:1]),this.crosshair=C===!0?{}:C,d.axes.indexOf(this)===-1&&(A?d.axes.splice(d.xAxis.length,0,this):d.axes.push(this),d[this.coll].push(this)),this.series=this.series||[],d.inverted&&!this.isZAxis&&A&&this.reversed===void 0&&(this.reversed=!0),this.labelRotation=r(R.rotation)?R.rotation:void 0,M(this,N),c(this,"afterInit")},D.prototype.setOptions=function(d){this.options=t(B.defaultXAxisOptions,this.coll==="yAxis"&&B.defaultYAxisOptions,[B.defaultTopAxisOptions,B.defaultRightAxisOptions,B.defaultBottomAxisOptions,B.defaultLeftAxisOptions][this.side],t(E[this.coll],d)),c(this,"afterSetOptions",{userOptions:d})},D.prototype.defaultLabelFormatter=function(d){var C=this.axis;d=this.chart.numberFormatter;var A=r(this.value)?this.value:NaN,N=C.chart.time,R=this.dateTimeLabelFormat,L=E.lang,O=L.numericSymbols;L=L.numericSymbolMagnitude||1e3;var j=C.logarithmic?Math.abs(A):C.tickInterval,Y=O&&O.length;if(C.categories)var H="".concat(this.value);else if(R)H=N.dateFormat(R,A);else if(Y&&1e3<=j)for(;Y--&&H===void 0;)j>=(C=Math.pow(L,Y+1))&&10*A%C==0&&O[Y]!==null&&A!==0&&(H=d(A/C,-1)+O[Y]);return H===void 0&&(H=1e4<=Math.abs(A)?d(A,-1):d(A,-1,void 0,"")),H},D.prototype.getSeriesExtremes=function(){var d,C=this,A=C.chart;c(this,"getSeriesExtremes",null,function(){C.hasVisibleSeries=!1,C.dataMin=C.dataMax=C.threshold=null,C.softThreshold=!C.isXAxis,C.series.forEach(function(N){if(N.visible||!A.options.chart.ignoreHiddenSeries){var R=N.options,L=R.threshold;if(C.hasVisibleSeries=!0,C.positiveValuesOnly&&0>=L&&(L=null),C.isXAxis){if((R=N.xData).length){R=C.logarithmic?R.filter(C.validatePositiveValue):R;var O=(d=N.getXExtremes(R)).min,j=d.max;r(O)||O instanceof Date||(R=R.filter(r),O=(d=N.getXExtremes(R)).min,j=d.max),R.length&&(C.dataMin=Math.min(e(C.dataMin,O),O),C.dataMax=Math.max(e(C.dataMax,j),j))}}else N=N.applyExtremes(),r(N.dataMin)&&(O=N.dataMin,C.dataMin=Math.min(e(C.dataMin,O),O)),r(N.dataMax)&&(j=N.dataMax,C.dataMax=Math.max(e(C.dataMax,j),j)),u(L)&&(C.threshold=L),(!R.softThreshold||C.positiveValuesOnly)&&(C.softThreshold=!1)}})}),c(this,"afterGetSeriesExtremes")},D.prototype.translate=function(d,C,A,N,R,L){var O=this.linkedParent||this,j=N&&O.old?O.old.min:O.min;if(!r(j))return NaN;var Y=O.minPixelPadding;R=(O.isOrdinal||O.brokenAxis&&O.brokenAxis.hasBreaks||O.logarithmic&&R)&&O.lin2val;var H=1,W=0;return(N=N&&O.old?O.old.transA:O.transA)||(N=O.transA),A&&(H*=-1,W=O.len),O.reversed&&(W-=(H*=-1)*(O.sector||O.len)),C?(L=(d*H+W-Y)/N+j,R&&(L=O.lin2val(L))):(R&&(d=O.val2lin(d)),d=H*(d-j)*N,L=(O.isRadial?d:m(d))+W+H*Y+(r(L)?N*L:0)),L},D.prototype.toPixels=function(d,C){return this.translate(d,!1,!this.horiz,void 0,!0)+(C?0:this.pos)},D.prototype.toValue=function(d,C){return this.translate(d-(C?0:this.pos),!0,!this.horiz,void 0,!0)},D.prototype.getPlotLinePath=function(d){function C(yt,dt,ot){return bt!=="pass"&&(yt<dt||yt>ot)&&(bt?yt=f(yt,dt,ot):O=!0),yt}var A,N,R,L,O,j=this,Y=j.chart,H=j.left,W=j.top,q=d.old,Q=d.value,J=d.lineWidth,nt=q&&Y.oldChartHeight||Y.chartHeight,lt=q&&Y.oldChartWidth||Y.chartWidth,gt=j.transB,mt=d.translatedValue,bt=d.force;return d={value:Q,lineWidth:J,old:q,force:bt,acrossPanes:d.acrossPanes,translatedValue:mt},c(this,"getPlotLinePath",d,function(yt){mt=e(mt,j.translate(Q,void 0,void 0,q)),mt=f(mt,-1e5,1e5),A=R=Math.round(mt+gt),N=L=Math.round(nt-mt-gt),r(mt)?j.horiz?(N=W,L=nt-j.bottom,A=R=C(A,H,H+j.width)):(A=H,R=lt-j.right,N=L=C(N,W,W+j.height)):(O=!0,bt=!1),yt.path=O&&!bt?null:Y.renderer.crispLine([["M",A,N],["L",R,L]],J||1)}),d.path},D.prototype.getLinearTickPositions=function(d,C,A){var N=m(Math.floor(C/d)*d);A=m(Math.ceil(A/d)*d);var R,L=[];if(m(N+d)===N&&(R=20),this.single)return[C];for(C=N;C<=A&&(L.push(C),(C=m(C+d,R))!==O);)var O=C;return L},D.prototype.getMinorTickInterval=function(){var d=this.options;return d.minorTicks===!0?e(d.minorTickInterval,"auto"):d.minorTicks===!1?null:d.minorTickInterval},D.prototype.getMinorTickPositions=function(){var d=this.options,C=this.tickPositions,A=this.minorTickInterval,N=this.pointRangePadding||0,R=this.min-N,L=(N=this.max+N)-R,O=[];if(L&&L/A<this.len/3){var j=this.logarithmic;if(j)this.paddedTicks.forEach(function(Y,H,W){H&&O.push.apply(O,j.getLogTickPositions(A,W[H-1],W[H],!0))});else if(this.dateTime&&this.getMinorTickInterval()==="auto")O=O.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(A),R,N,d.startOfWeek));else for(d=R+(C[0]-R)%A;d<=N&&d!==O[0];d+=A)O.push(d)}return O.length!==0&&this.trimTicks(O),O},D.prototype.adjustForMinRange=function(){var d,C,A,N,R=this.options,L=this.logarithmic,O=this.min,j=this.max,Y=0;if(this.isXAxis&&this.minRange===void 0&&!L&&(u(R.min)||u(R.max)||u(R.floor)||u(R.ceiling)?this.minRange=null:(this.series.forEach(function(Q){if(A=Q.xData,N=Q.xIncrement?1:A.length-1,1<A.length)for(d=N;0<d;d--)C=A[d]-A[d-1],(!Y||C<Y)&&(Y=C)}),this.minRange=Math.min(5*Y,this.dataMax-this.dataMin))),j-O<this.minRange){var H=this.dataMax-this.dataMin>=this.minRange,W=this.minRange,q=(W-j+O)/2;q=[O-q,e(R.min,O-q)],H&&(q[2]=this.logarithmic?this.logarithmic.log2lin(this.dataMin):this.dataMin),j=[(O=y(q))+W,e(R.max,O+W)],H&&(j[2]=L?L.log2lin(this.dataMax):this.dataMax),(j=h(j))-O<W&&(q[0]=j-W,q[1]=e(R.min,j-W),O=y(q))}this.min=O,this.max=j},D.prototype.getClosest=function(){var d;return this.categories?d=1:this.series.forEach(function(C){var A=C.closestPointRange,N=C.visible||!C.chart.options.chart.ignoreHiddenSeries;!C.noSharedTooltip&&u(A)&&N&&(d=u(d)?Math.min(d,A):A)}),d},D.prototype.nameToX=function(d){var C=g(this.options.categories),A=C?this.categories:this.names,N=d.options.x;if(d.series.requireSorting=!1,u(N)||(N=this.options.uniqueNames&&A?C?A.indexOf(d.name):e(A.keys[d.name],-1):d.series.autoIncrement()),N===-1){if(!C&&A)var R=A.length}else R=N;return R!==void 0?(this.names[R]=d.name,this.names.keys[d.name]=R):d.x&&(R=d.x),R},D.prototype.updateNames=function(){var d=this,C=this.names;0<C.length&&(Object.keys(C.keys).forEach(function(A){delete C.keys[A]}),C.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(function(A){A.xIncrement=null,A.points&&!A.isDirtyData||(d.max=Math.max(d.max,A.xData.length-1),A.processData(),A.generatePoints()),A.data.forEach(function(N,R){if(N&&N.options&&N.name!==void 0){var L=d.nameToX(N);L!==void 0&&L!==N.x&&(N.x=L,A.xData[R]=L)}})}))},D.prototype.setAxisTranslation=function(){var d=this,C=d.max-d.min,A=d.linkedParent,N=!!d.categories,R=d.isXAxis,L=d.axisPointRange||0,O=0,j=0,Y=d.transA;if(R||N||L){var H=d.getClosest();A?(O=A.minPointOffset,j=A.pointRangePadding):d.series.forEach(function(W){var q=N?1:R?e(W.options.pointRange,H,0):d.axisPointRange||0,Q=W.options.pointPlacement;L=Math.max(L,q),d.single&&!N||(W=W.is("xrange")?!R:R,O=Math.max(O,W&&a(Q)?0:q/2),j=Math.max(j,W&&Q==="on"?0:q))}),A=d.ordinal&&d.ordinal.slope&&H?d.ordinal.slope/H:1,d.minPointOffset=O*=A,d.pointRangePadding=j*=A,d.pointRange=Math.min(L,d.single&&N?1:C),R&&(d.closestPointRange=H)}d.translationSlope=d.transA=Y=d.staticScale||d.len/(C+j||1),d.transB=d.horiz?d.left:d.bottom,d.minPixelPadding=Y*O,c(this,"afterSetAxisTranslation")},D.prototype.minFromRange=function(){return this.max-this.range},D.prototype.setTickInterval=function(d){var C=this.chart,A=this.logarithmic,N=this.options,R=this.isXAxis,L=this.isLinked,O=N.tickPixelInterval,j=this.categories,Y=this.softThreshold,H=N.maxPadding,W=N.minPadding,q=r(N.tickInterval)&&0<=N.tickInterval?N.tickInterval:void 0,Q=r(this.threshold)?this.threshold:null;this.dateTime||j||L||this.getTickAmount();var J=e(this.userMin,N.min),nt=e(this.userMax,N.max);if(L){this.linkedParent=C[this.coll][N.linkedTo];var lt=this.linkedParent.getExtremes();this.min=e(lt.min,lt.dataMin),this.max=e(lt.max,lt.dataMax),N.type!==this.linkedParent.options.type&&w(11,1,C)}else{if(Y&&u(Q)){if(this.dataMin>=Q)lt=Q,W=0;else if(this.dataMax<=Q){var gt=Q;H=0}}this.min=e(J,lt,this.dataMin),this.max=e(nt,gt,this.dataMax)}if(A&&(this.positiveValuesOnly&&!d&&0>=Math.min(this.min,e(this.dataMin,this.min))&&w(10,1,C),this.min=m(A.log2lin(this.min),16),this.max=m(A.log2lin(this.max),16)),this.range&&u(this.max)&&(this.userMin=this.min=J=Math.max(this.dataMin,this.minFromRange()),this.userMax=nt=this.max,this.range=null),c(this,"foundExtremes"),this.beforePadding&&this.beforePadding(),this.adjustForMinRange(),!(j||this.axisPointRange||this.stacking&&this.stacking.usePercentage||L)&&u(this.min)&&u(this.max)&&(C=this.max-this.min)&&(!u(J)&&W&&(this.min-=C*W),!u(nt)&&H&&(this.max+=C*H)),r(this.userMin)||(r(N.softMin)&&N.softMin<this.min&&(this.min=J=N.softMin),r(N.floor)&&(this.min=Math.max(this.min,N.floor))),r(this.userMax)||(r(N.softMax)&&N.softMax>this.max&&(this.max=nt=N.softMax),r(N.ceiling)&&(this.max=Math.min(this.max,N.ceiling))),Y&&u(this.dataMin)&&(Q=Q||0,!u(J)&&this.min<Q&&this.dataMin>=Q?this.min=this.options.minRange?Math.min(Q,this.max-this.minRange):Q:!u(nt)&&this.max>Q&&this.dataMax<=Q&&(this.max=this.options.minRange?Math.max(Q,this.min+this.minRange):Q)),r(this.min)&&r(this.max)&&!this.chart.polar&&this.min>this.max&&(u(this.options.min)?this.max=this.min:u(this.options.max)&&(this.min=this.max)),this.tickInterval=this.min===this.max||this.min===void 0||this.max===void 0?1:L&&this.linkedParent&&!q&&O===this.linkedParent.options.tickPixelInterval?q=this.linkedParent.tickInterval:e(q,this.tickAmount?(this.max-this.min)/Math.max(this.tickAmount-1,1):void 0,j?1:(this.max-this.min)*O/Math.max(this.len,O)),R&&!d){var mt=this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max);this.series.forEach(function(bt){bt.forceCrop=bt.forceCropping&&bt.forceCropping(),bt.processData(mt)}),c(this,"postProcessData",{hasExtremesChanged:mt})}this.setAxisTranslation(),c(this,"initialAxisTranslation"),this.pointRange&&!q&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval)),d=e(N.minTickInterval,this.dateTime&&!this.series.some(function(bt){return bt.noSharedTooltip})?this.closestPointRange:0),!q&&this.tickInterval<d&&(this.tickInterval=d),this.dateTime||this.logarithmic||q||(this.tickInterval=k(this,this.tickInterval)),this.tickAmount||(this.tickInterval=this.unsquish()),this.setTickPositions()},D.prototype.setTickPositions=function(){var d,C=this.options,A=C.tickPositions,N=C.tickPositioner,R=this.getMinorTickInterval(),L=this.hasVerticalPanning(),O=this.coll==="colorAxis",j=(O||!L)&&C.startOnTick;if(L=(O||!L)&&C.endOnTick,O=[],this.tickmarkOffset=this.categories&&C.tickmarkPlacement==="between"&&this.tickInterval===1?.5:0,this.minorTickInterval=R==="auto"&&this.tickInterval?this.tickInterval/5:R,this.single=this.min===this.max&&u(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||C.allowDecimals!==!1),A)O=A.slice();else if(r(this.min)&&r(this.max)){if(this.ordinal&&this.ordinal.positions||!((this.max-this.min)/this.tickInterval>Math.max(2*this.len,200)))if(this.dateTime)O=this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,C.units),this.min,this.max,C.startOfWeek,this.ordinal&&this.ordinal.positions,this.closestPointRange,!0);else if(this.logarithmic)O=this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max);else for(R=C=this.tickInterval;R<=2*C&&(O=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&&O.length>this.tickAmount);)this.tickInterval=k(this,R*=1.1);else O=[this.min,this.max],w(19,!1,this.chart);O.length>this.len&&(O=[O[0],O[O.length-1]])[0]===O[1]&&(O.length=1),N&&(this.tickPositions=O,(d=N.apply(this,[this.min,this.max]))&&(O=d))}this.tickPositions=O,this.paddedTicks=O.slice(0),this.trimTicks(O,j,L),!this.isLinked&&r(this.min)&&r(this.max)&&(this.single&&2>O.length&&!this.categories&&!this.series.some(function(Y){return Y.is("heatmap")&&Y.options.pointPlacement==="between"})&&(this.min-=.5,this.max+=.5),A||d||this.adjustTickAmount()),c(this,"afterSetTickPositions")},D.prototype.trimTicks=function(d,C,A){var N=d[0],R=d[d.length-1],L=!this.isOrdinal&&this.minPointOffset||0;if(c(this,"trimTicks"),!this.isLinked){if(C&&N!==-1/0)this.min=N;else for(;this.min-L>d[0];)d.shift();if(A)this.max=R;else for(;this.max+L<d[d.length-1];)d.pop();d.length===0&&u(N)&&!this.options.tickPositions&&d.push((R+N)/2)}},D.prototype.alignToOthers=function(){var d,C=this,A=[this],N=C.options,R=this.coll==="yAxis"&&this.chart.options.chart.alignThresholds,L=[];if(C.thresholdAlignment=void 0,(this.chart.options.chart.alignTicks!==!1&&N.alignTicks||R)&&N.startOnTick!==!1&&N.endOnTick!==!1&&!C.logarithmic){var O=function(H){var W=H.options;return[H.horiz?W.left:W.top,W.width,W.height,W.pane].join()},j=O(this);this.chart[this.coll].forEach(function(H){var W=H.series;W.length&&W.some(function(q){return q.visible})&&H!==C&&O(H)===j&&(d=!0,A.push(H))})}if(d&&R){A.forEach(function(H){H=H.getThresholdAlignment(C),r(H)&&L.push(H)});var Y=1<L.length?L.reduce(function(H,W){return H+W},0)/L.length:void 0;A.forEach(function(H){H.thresholdAlignment=Y})}return d},D.prototype.getThresholdAlignment=function(d){if((!r(this.dataMin)||this!==d&&this.series.some(function(C){return C.isDirty||C.isDirtyData}))&&this.getSeriesExtremes(),r(this.threshold))return d=f((this.threshold-(this.dataMin||0))/((this.dataMax||0)-(this.dataMin||0)),0,1),this.options.reversed&&(d=1-d),d},D.prototype.getTickAmount=function(){var d=this.options,C=d.tickPixelInterval,A=d.tickAmount;!u(d.tickInterval)&&!A&&this.len<C&&!this.isRadial&&!this.logarithmic&&d.startOnTick&&d.endOnTick&&(A=2),!A&&this.alignToOthers()&&(A=Math.ceil(this.len/C)+1),4>A&&(this.finalTickAmt=A,A=5),this.tickAmount=A},D.prototype.adjustTickAmount=function(){var d=this,C=d.finalTickAmt,A=d.max,N=d.min,R=d.options,L=d.tickPositions,O=d.tickAmount,j=d.thresholdAlignment,Y=L&&L.length,H=e(d.threshold,d.softThreshold?0:null),W=d.tickInterval;if(r(j)){var q=.5>j?Math.ceil(j*(O-1)):Math.floor(j*(O-1));R.reversed&&(q=O-1-q)}if(d.hasData()&&r(N)&&r(A)){if(j=function(){d.transA*=(Y-1)/(O-1),d.min=R.startOnTick?L[0]:Math.min(N,L[0]),d.max=R.endOnTick?L[L.length-1]:Math.max(A,L[L.length-1])},r(q)&&r(d.threshold)){for(;L[q]!==H||L.length!==O||L[0]>N||L[L.length-1]<A;){for(L.length=0,L.push(d.threshold);L.length<O;)L[q]===void 0||L[q]>d.threshold?L.unshift(m(L[0]-W)):L.push(m(L[L.length-1]+W));if(W>8*d.tickInterval)break;W*=2}j()}else if(Y<O){for(;L.length<O;)L.length%2||N===H?L.push(m(L[L.length-1]+W)):L.unshift(m(L[0]-W));j()}if(u(C)){for(W=H=L.length;W--;)(C===3&&W%2==1||2>=C&&0<W&&W<H-1)&&L.splice(W,1);d.finalTickAmt=void 0}}},D.prototype.setScale=function(){var d=!1,C=!1;this.series.forEach(function(N){d=d||N.isDirtyData||N.isDirty,C=C||N.xAxis&&N.xAxis.isDirty||!1}),this.setAxisSize();var A=this.len!==(this.old&&this.old.len);A||d||C||this.isLinked||this.forceRedraw||this.userMin!==(this.old&&this.old.userMin)||this.userMax!==(this.old&&this.old.userMax)||this.alignToOthers()?(this.stacking&&(this.stacking.resetStacks(),this.stacking.buildStacks()),this.forceRedraw=!1,this.getSeriesExtremes(),this.setTickInterval(),this.isDirty||(this.isDirty=A||this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max))):this.stacking&&this.stacking.cleanStacks(),d&&this.panningState&&(this.panningState.isDirty=!0),c(this,"afterSetScale")},D.prototype.setExtremes=function(d,C,A,N,R){var L=this,O=L.chart;A=e(A,!0),L.series.forEach(function(j){delete j.kdTree}),R=x(R,{min:d,max:C}),c(L,"setExtremes",R,function(){L.userMin=d,L.userMax=C,L.eventArgs=R,A&&O.redraw(N)})},D.prototype.zoom=function(d,C){var A=this,N=this.dataMin,R=this.dataMax,L=this.options,O=Math.min(N,e(L.min,N)),j=Math.max(R,e(L.max,R));return c(this,"zoom",d={newMin:d,newMax:C},function(Y){var H=Y.newMin,W=Y.newMax;H===A.min&&W===A.max||(A.allowZoomOutside||(u(N)&&(H<O&&(H=O),H>j&&(H=j)),u(R)&&(W<O&&(W=O),W>j&&(W=j))),A.displayBtn=H!==void 0||W!==void 0,A.setExtremes(H,W,!1,void 0,{trigger:"zoom"})),Y.zoomed=!0}),d.zoomed},D.prototype.setAxisSize=function(){var d=this.chart,C=this.options,A=C.offsets||[0,0,0,0],N=this.horiz,R=this.width=Math.round(s(e(C.width,d.plotWidth-A[3]+A[1]),d.plotWidth)),L=this.height=Math.round(s(e(C.height,d.plotHeight-A[0]+A[2]),d.plotHeight)),O=this.top=Math.round(s(e(C.top,d.plotTop+A[0]),d.plotHeight,d.plotTop));C=this.left=Math.round(s(e(C.left,d.plotLeft+A[3]),d.plotWidth,d.plotLeft)),this.bottom=d.chartHeight-L-O,this.right=d.chartWidth-R-C,this.len=Math.max(N?R:L,0),this.pos=N?C:O},D.prototype.getExtremes=function(){var d=this.logarithmic;return{min:d?m(d.lin2log(this.min)):this.min,max:d?m(d.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},D.prototype.getThreshold=function(d){var C=this.logarithmic,A=C?C.lin2log(this.min):this.min;return C=C?C.lin2log(this.max):this.max,d===null||d===-1/0?d=A:d===1/0?d=C:A>d?d=A:C<d&&(d=C),this.translate(d,0,1,0,1)},D.prototype.autoLabelAlign=function(d){var C=(e(d,0)-90*this.side+720)%360;return c(this,"autoLabelAlign",d={align:"center"},function(A){15<C&&165>C?A.align="right":195<C&&345>C&&(A.align="left")}),d.align},D.prototype.tickSize=function(d){var C=this.options,A=e(C[d==="tick"?"tickWidth":"minorTickWidth"],d==="tick"&&this.isXAxis&&!this.categories?1:0),N=C[d==="tick"?"tickLength":"minorTickLength"];if(A&&N){C[d+"Position"]==="inside"&&(N=-N);var R=[N,A]}return c(this,"afterTickSize",d={tickSize:R}),d.tickSize},D.prototype.labelMetrics=function(){var d=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style.fontSize,this.ticks[d]&&this.ticks[d].label)},D.prototype.unsquish=function(){var d=this.options.labels,C=this.horiz,A=this.tickInterval,N=this.len/(((this.categories?1:0)+this.max-this.min)/A),R=d.rotation,L=this.labelMetrics(),O=Math.max(this.max-this.min,0),j=function(gt){var mt=gt/(N||1);return(mt=1<mt?Math.ceil(mt):1)*A>O&>!==1/0&&N!==1/0&&O&&(mt=Math.ceil(O/A)),m(mt*A)},Y=A,H=Number.MAX_VALUE;if(C){if(!d.staggerLines)if(r(R))var W=[R];else N<d.autoRotationLimit&&(W=d.autoRotation);if(W)for(var q=C=void 0,Q=0,J=W;Q<J.length;Q++){var nt=J[Q];if((nt===R||nt&&-90<=nt&&90>=nt)&&(q=(C=j(Math.abs(L.h/Math.sin(P*nt))))+Math.abs(nt/360))<H){H=q;var lt=nt;Y=C}}}else Y=j(L.h);return this.autoRotation=W,this.labelRotation=e(lt,r(R)?R:0),d.step?A:Y},D.prototype.getSlotWidth=function(d){var C=this.chart,A=this.horiz,N=this.options.labels,R=Math.max(this.tickPositions.length-(this.categories?0:1),1),L=C.margin[3];if(d&&r(d.slotWidth))return d.slotWidth;if(A&&2>N.step)return N.rotation?0:(this.staggerLines||1)*this.len/R;if(!A){if((d=N.style.width)!==void 0)return parseInt(String(d),10);if(L)return L-C.spacing[3]}return .33*C.chartWidth},D.prototype.renderUnsquish=function(){var d=this.chart,C=d.renderer,A=this.tickPositions,N=this.ticks,R=this.options.labels,L=R.style,O=this.horiz,j=this.getSlotWidth(),Y=Math.max(1,Math.round(j-2*R.padding)),H={},W=this.labelMetrics(),q=L.textOverflow,Q=0;if(a(R.rotation)||(H.rotation=R.rotation||0),A.forEach(function(gt){(gt=N[gt]).movedLabel&>.replaceMovedLabel(),gt&>.label&>.label.textPxLength>Q&&(Q=gt.label.textPxLength)}),this.maxLabelLength=Q,this.autoRotation)Q>Y&&Q>W.h?H.rotation=this.labelRotation:this.labelRotation=0;else if(j){var J=Y;if(!q){var nt="clip";for(Y=A.length;!O&&Y--;){var lt=A[Y];(lt=N[lt].label)&&(lt.styles&<.styles.textOverflow==="ellipsis"?lt.css({textOverflow:"clip"}):lt.textPxLength>j&<.css({width:j+"px"}),lt.getBBox().height>this.len/A.length-(W.h-W.f)&&(lt.specificTextOverflow="ellipsis"))}}}H.rotation&&(J=Q>.5*d.chartHeight?.33*d.chartHeight:Q,q||(nt="ellipsis")),(this.labelAlign=R.align||this.autoLabelAlign(this.labelRotation))&&(H.align=this.labelAlign),A.forEach(function(gt){var mt=(gt=N[gt])&>.label,bt=L.width,yt={};mt&&(mt.attr(H),gt.shortenLabel?gt.shortenLabel():J&&!bt&&L.whiteSpace!=="nowrap"&&(J<mt.textPxLength||mt.element.tagName==="SPAN")?(yt.width=J+"px",q||(yt.textOverflow=mt.specificTextOverflow||nt),mt.css(yt)):mt.styles&&mt.styles.width&&!yt.width&&!bt&&mt.css({width:null}),delete mt.specificTextOverflow,gt.rotation=H.rotation)},this),this.tickRotCorr=C.rotCorr(W.b,this.labelRotation||0,this.side!==0)},D.prototype.hasData=function(){return this.series.some(function(d){return d.hasData()})||this.options.showEmpty&&u(this.min)&&u(this.max)},D.prototype.addTitle=function(d){var C,A=this.chart.renderer,N=this.horiz,R=this.opposite,L=this.options.title,O=this.chart.styledMode;this.axisTitle||((C=L.textAlign)||(C=(N?{low:"left",middle:"center",high:"right"}:{low:R?"right":"left",middle:"center",high:R?"left":"right"})[L.align]),this.axisTitle=A.text(L.text||"",0,0,L.useHTML).attr({zIndex:7,rotation:L.rotation,align:C}).addClass("highcharts-axis-title"),O||this.axisTitle.css(t(L.style)),this.axisTitle.add(this.axisGroup),this.axisTitle.isNew=!0),O||L.style.width||this.isRadial||this.axisTitle.css({width:this.len+"px"}),this.axisTitle[d?"show":"hide"](d)},D.prototype.generateTick=function(d){var C=this.ticks;C[d]?C[d].addLabel():C[d]=new V(this,d)},D.prototype.getOffset=function(){var d=this,C=this,A=C.chart,N=C.horiz,R=C.options,L=C.side,O=C.ticks,j=C.tickPositions,Y=C.coll,H=C.axisParent,W=A.renderer,q=A.inverted&&!C.isZAxis?[1,0,3,2][L]:L,Q=C.hasData(),J=R.title,nt=R.labels,lt=A.axisOffset;A=A.clipOffset;var gt,mt=[-1,1,1,-1][L],bt=R.className,yt=0,dt=0,ot=0;if(C.showAxis=gt=Q||R.showEmpty,C.staggerLines=C.horiz&&nt.staggerLines||void 0,!C.axisGroup){var at=function(vt,Ct,xt){return W.g(vt).attr({zIndex:xt}).addClass("highcharts-".concat(Y.toLowerCase()).concat(Ct," ")+(d.isRadial?"highcharts-radial-axis".concat(Ct," "):"")+(bt||"")).add(H)};C.gridGroup=at("grid","-grid",R.gridZIndex),C.axisGroup=at("axis","",R.zIndex),C.labelGroup=at("axis-labels","-labels",nt.zIndex)}if(Q||C.isLinked?(j.forEach(function(vt){C.generateTick(vt)}),C.renderUnsquish(),C.reserveSpaceDefault=L===0||L===2||{1:"left",3:"right"}[L]===C.labelAlign,e(nt.reserveSpace,C.labelAlign==="center"||null,C.reserveSpaceDefault)&&j.forEach(function(vt){ot=Math.max(O[vt].getLabelSize(),ot)}),C.staggerLines&&(ot*=C.staggerLines),C.labelOffset=ot*(C.opposite?-1:1)):o(O,function(vt,Ct){vt.destroy(),delete O[Ct]}),J&&J.text&&J.enabled!==!1&&(C.addTitle(gt),gt&&J.reserveSpace!==!1)){C.titleOffset=yt=C.axisTitle.getBBox()[N?"height":"width"];var ut=J.offset;dt=u(ut)?0:e(J.margin,N?5:10)}C.renderLine(),C.offset=mt*e(R.offset,lt[L]?lt[L]+(R.margin||0):0),C.tickRotCorr=C.tickRotCorr||{x:0,y:0},J=L===0?-C.labelMetrics().h:L===2?C.tickRotCorr.y:0,Q=Math.abs(ot)+dt,ot&&(Q=Q-J+mt*(N?e(nt.y,C.tickRotCorr.y+8*mt):nt.x)),C.axisTitleMargin=e(ut,Q),C.getMaxLabelDimensions&&(C.maxLabelDimensions=C.getMaxLabelDimensions(O,j)),Y!=="colorAxis"&&(N=this.tickSize("tick"),lt[L]=Math.max(lt[L],(C.axisTitleMargin||0)+yt+mt*C.offset,Q,j&&j.length&&N?N[0]+mt*C.offset:0),R=!C.axisLine||R.offset?0:2*Math.floor(C.axisLine.strokeWidth()/2),A[q]=Math.max(A[q],R)),c(this,"afterGetOffset")},D.prototype.getLinePath=function(d){var C=this.chart,A=this.opposite,N=this.offset,R=this.horiz,L=this.left+(A?this.width:0)+N;return N=C.chartHeight-this.bottom-(A?this.height:0)+N,A&&(d*=-1),C.renderer.crispLine([["M",R?this.left:L,R?N:this.top],["L",R?C.chartWidth-this.right:L,R?N:C.chartHeight-this.bottom]],d)},D.prototype.renderLine=function(){this.axisLine||(this.axisLine=this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup),this.chart.styledMode||this.axisLine.attr({stroke:this.options.lineColor,"stroke-width":this.options.lineWidth,zIndex:7}))},D.prototype.getTitlePosition=function(){var d=this.horiz,C=this.left,A=this.top,N=this.len,R=this.options.title,L=d?C:A,O=this.opposite,j=this.offset,Y=R.x,H=R.y,W=this.axisTitle,q=this.chart.renderer.fontMetrics(R.style.fontSize,W);return W=W?Math.max(W.getBBox(!1,0).height-q.h-1,0):0,N={low:L+(d?0:N),middle:L+N/2,high:L+(d?N:0)}[R.align],C=(d?A+this.height:C)+(d?1:-1)*(O?-1:1)*(this.axisTitleMargin||0)+[-W,W,q.f,-W][this.side],d={x:d?N+Y:C+(O?this.width:0)+j+Y,y:d?C+H-(O?this.height:0)+j:N+H},c(this,"afterGetTitlePosition",{titlePosition:d}),d},D.prototype.renderMinorTick=function(d,C){var A=this.minorTicks;A[d]||(A[d]=new V(this,d,"minor")),C&&A[d].isNew&&A[d].render(null,!0),A[d].render(null,!1,1)},D.prototype.renderTick=function(d,C,A){var N=this.ticks;(!this.isLinked||d>=this.min&&d<=this.max||this.grid&&this.grid.isColumn)&&(N[d]||(N[d]=new V(this,d)),A&&N[d].isNew&&N[d].render(C,!0,-1),N[d].render(C))},D.prototype.render=function(){var d,C,A=this,N=A.chart,R=A.logarithmic,L=A.options,O=A.isLinked,j=A.tickPositions,Y=A.axisTitle,H=A.ticks,W=A.minorTicks,q=A.alternateBands,Q=L.stackLabels,J=L.alternateGridColor,nt=A.tickmarkOffset,lt=A.axisLine,gt=A.showAxis,mt=I(N.renderer.globalAnimation);if(A.labelEdge.length=0,A.overlap=!1,[H,W,q].forEach(function(yt){o(yt,function(dt){dt.isActive=!1})}),A.hasData()||O){var bt=A.chart.hasRendered&&A.old&&r(A.old.min);A.minorTickInterval&&!A.categories&&A.getMinorTickPositions().forEach(function(yt){A.renderMinorTick(yt,bt)}),j.length&&(j.forEach(function(yt,dt){A.renderTick(yt,dt,bt)}),nt&&(A.min===0||A.single)&&(H[-1]||(H[-1]=new V(A,-1,null,!0)),H[-1].render(-1))),J&&j.forEach(function(yt,dt){C=j[dt+1]!==void 0?j[dt+1]+nt:A.max-nt,dt%2==0&&yt<A.max&&C<=A.max+(N.polar?-nt:nt)&&(q[yt]||(q[yt]=new Z.PlotLineOrBand(A)),d=yt+nt,q[yt].options={from:R?R.lin2log(d):d,to:R?R.lin2log(C):C,color:J,className:"highcharts-alternate-grid"},q[yt].render(),q[yt].isActive=!0)}),A._addedPlotLB||(A._addedPlotLB=!0,(L.plotLines||[]).concat(L.plotBands||[]).forEach(function(yt){A.addPlotBandOrLine(yt)}))}[H,W,q].forEach(function(yt){var dt=[],ot=mt.duration;o(yt,function(at,ut){at.isActive||(at.render(ut,!1,0),at.isActive=!1,dt.push(ut))}),b(function(){for(var at=dt.length;at--;)yt[dt[at]]&&!yt[dt[at]].isActive&&(yt[dt[at]].destroy(),delete yt[dt[at]])},yt!==q&&N.hasRendered&&ot?ot:0)}),lt&&(lt[lt.isPlaced?"animate":"attr"]({d:this.getLinePath(lt.strokeWidth())}),lt.isPlaced=!0,lt[gt?"show":"hide"](gt)),Y&>&&(L=A.getTitlePosition(),Y[Y.isNew?"attr":"animate"](L),Y.isNew=!1),Q&&Q.enabled&&A.stacking&&A.stacking.renderStackTotals(),A.old={len:A.len,max:A.max,min:A.min,transA:A.transA,userMax:A.userMax,userMin:A.userMin},A.isDirty=!1,c(this,"afterRender")},D.prototype.redraw=function(){this.visible&&(this.render(),this.plotLinesAndBands.forEach(function(d){d.render()})),this.series.forEach(function(d){d.isDirty=!0})},D.prototype.getKeepProps=function(){return this.keepProps||D.keepProps},D.prototype.destroy=function(d){var C=this,A=C.plotLinesAndBands,N=this.eventOptions;if(c(this,"destroy",{keepEvents:d}),d||n(C),[C.ticks,C.minorTicks,C.alternateBands].forEach(function(L){v(L)}),A)for(d=A.length;d--;)A[d].destroy();for(var R in"axisLine axisTitle axisGroup gridGroup labelGroup cross scrollbar".split(" ").forEach(function(L){C[L]&&(C[L]=C[L].destroy())}),C.plotLinesAndBandsGroups)C.plotLinesAndBandsGroups[R]=C.plotLinesAndBandsGroups[R].destroy();o(C,function(L,O){C.getKeepProps().indexOf(O)===-1&&delete C[O]}),this.eventOptions=N},D.prototype.drawCrosshair=function(d,C){var A,N=this.crosshair,R=e(N&&N.snap,!0),L=this.chart,O=this.cross;if(c(this,"drawCrosshair",{e:d,point:C}),d||(d=this.cross&&this.cross.e),N&&(u(C)||!R)!==!1){if(R?u(C)&&(A=e(this.coll!=="colorAxis"?C.crosshairPos:null,this.isXAxis?C.plotX:this.len-C.plotY)):A=d&&(this.horiz?d.chartX-this.pos:this.len-d.chartY+this.pos),u(A)){var j={value:C&&(this.isXAxis?C.x:e(C.stackY,C.y)),translatedValue:A};L.polar&&x(j,{isCrosshair:!0,chartX:d&&d.chartX,chartY:d&&d.chartY,point:C}),j=this.getPlotLinePath(j)||null}if(!u(j))return void this.hideCrosshair();R=this.categories&&!this.isRadial,O||(this.cross=O=L.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(R?"category ":"thin ")+(N.className||"")).attr({zIndex:e(N.zIndex,2)}).add(),L.styledMode||(O.attr({stroke:N.color||(R?X.parse("#ccd6eb").setOpacity(.25).get():"#cccccc"),"stroke-width":e(N.width,1)}).css({"pointer-events":"none"}),N.dashStyle&&O.attr({dashstyle:N.dashStyle}))),O.show().attr({d:j}),R&&!N.width&&O.attr({"stroke-width":this.transA}),this.cross.e=d}else this.hideCrosshair();c(this,"afterDrawCrosshair",{e:d,point:C})},D.prototype.hideCrosshair=function(){this.cross&&this.cross.hide(),c(this,"afterHideCrosshair")},D.prototype.hasVerticalPanning=function(){var d=this.chart.options.chart.panning;return!!(d&&d.enabled&&/y/.test(d.type))},D.prototype.validatePositiveValue=function(d){return r(d)&&0<d},D.prototype.update=function(d,C){var A=this.chart;d=t(this.userOptions,d),this.destroy(!0),this.init(A,d),A.isDirtyBox=!0,e(C,!0)&&A.redraw()},D.prototype.remove=function(d){for(var C=this.chart,A=this.coll,N=this.series,R=N.length;R--;)N[R]&&N[R].remove(!1);S(C.axes,this),S(C[A],this),C[A].forEach(function(L,O){L.options.index=L.userOptions.index=O}),this.destroy(),C.isDirtyBox=!0,e(d,!0)&&C.redraw()},D.prototype.setTitle=function(d,C){this.update({title:d},C)},D.prototype.setCategories=function(d,C){this.update({categories:d},C)},D.defaultOptions=B.defaultXAxisOptions,D.keepProps="extKey hcEvents names series userMax userMin".split(" "),D}(),G}),_(et,"Core/Axis/DateTimeAxis.js",[et["Core/Utilities.js"]],function(G){var B,X=G.addEvent,U=G.getMagnitude,$=G.normalizeTickInterval,Z=G.timeUnits;return function(V){function z(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)}function I(P){P.userOptions.type!=="datetime"?this.dateTime=void 0:this.dateTime||(this.dateTime=new M(this))}var E=[];V.compose=function(P){return E.indexOf(P)===-1&&(E.push(P),P.keepProps.push("dateTime"),P.prototype.getTimeTicks=z,X(P,"init",I)),P};var M=function(){function P(y){this.axis=y}return P.prototype.normalizeTimeTickInterval=function(y,h){var f=h||[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2]],["week",[1,2]],["month",[1,2,3,4,6]],["year",null]];h=f[f.length-1];var m,u=Z[h[0]],v=h[1];for(m=0;m<f.length&&(h=f[m],u=Z[h[0]],v=h[1],!(f[m+1]&&y<=(u*v[v.length-1]+Z[f[m+1][0]])/2));m++);return u===Z.year&&y<5*u&&(v=[1,2,5]),{unitRange:u,count:y=$(y/u,v,h[0]==="year"?Math.max(U(y/u),1):1),unitName:h[0]}},P.prototype.getXDateFormat=function(y,h){var f=this.axis,m=f.chart.time;return f.closestPointRange?m.getDateFormat(f.closestPointRange,y,f.options.startOfWeek,h)||m.resolveDTLFormat(h.year).main:m.resolveDTLFormat(h.day).main},P}();V.Additions=M}(B||(B={})),B}),_(et,"Core/Axis/LogarithmicAxis.js",[et["Core/Utilities.js"]],function(G){var B,X=G.addEvent,U=G.normalizeTickInterval,$=G.pick;return function(Z){function V(M){var P=this.logarithmic;M.userOptions.type!=="logarithmic"?this.logarithmic=void 0:P||(this.logarithmic=new E(this))}function z(){var M=this.logarithmic;M&&(this.lin2val=function(P){return M.lin2log(P)},this.val2lin=function(P){return M.log2lin(P)})}var I=[];Z.compose=function(M){return I.indexOf(M)===-1&&(I.push(M),M.keepProps.push("logarithmic"),X(M,"init",V),X(M,"afterInit",z)),M};var E=function(){function M(P){this.axis=P}return M.prototype.getLogTickPositions=function(P,y,h,f){var m=this.axis,u=m.len,v=m.options,S=[];if(f||(this.minorAutoInterval=void 0),.5<=P)P=Math.round(P),S=m.getLinearTickPositions(P,y,h);else if(.08<=P){var w,x=Math.floor(y),c=v=void 0;for(u=.3<P?[1,2,4]:.15<P?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];x<h+1&&!c;x++){var g=u.length;for(w=0;w<g&&!c;w++){var r=this.log2lin(this.lin2log(x)*u[w]);r>y&&(!f||v<=h)&&v!==void 0&&S.push(v),v>h&&(c=!0),v=r}}}else y=this.lin2log(y),h=this.lin2log(h),P=f?m.getMinorTickInterval():v.tickInterval,P=$(P==="auto"?null:P,this.minorAutoInterval,v.tickPixelInterval/(f?5:1)*(h-y)/((f?u/m.tickPositions.length:u)||1)),P=U(P),S=m.getLinearTickPositions(P,y,h).map(this.log2lin),f||(this.minorAutoInterval=P/5);return f||(m.tickInterval=P),S},M.prototype.lin2log=function(P){return Math.pow(10,P)},M.prototype.log2lin=function(P){return Math.log(P)/Math.LN10},M}();Z.Additions=E}(B||(B={})),B}),_(et,"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js",[et["Core/Utilities.js"]],function(G){var B,X=G.erase,U=G.extend,$=G.isNumber;return function(Z){var V,z=[];Z.compose=function(E,M){return V||(V=E),z.indexOf(M)===-1&&(z.push(M),U(M.prototype,I.prototype)),M};var I=function(){function E(){}return E.prototype.getPlotBandPath=function(M,P,y){y===void 0&&(y=this.options);var h=this.getPlotLinePath({value:P,force:!0,acrossPanes:y.acrossPanes}),f=[],m=this.horiz;if(P=!$(this.min)||!$(this.max)||M<this.min&&P<this.min||M>this.max&&P>this.max,M=this.getPlotLinePath({value:M,force:!0,acrossPanes:y.acrossPanes}),y=1,M&&h){if(P){var u=M.toString()===h.toString();y=0}for(P=0;P<M.length;P+=2){var v=M[P],S=M[P+1],w=h[P],x=h[P+1];v[0]!=="M"&&v[0]!=="L"||S[0]!=="M"&&S[0]!=="L"||w[0]!=="M"&&w[0]!=="L"||x[0]!=="M"&&x[0]!=="L"||(m&&w[1]===v[1]?(w[1]+=y,x[1]+=y):m||w[2]!==v[2]||(w[2]+=y,x[2]+=y),f.push(["M",v[1],v[2]],["L",S[1],S[2]],["L",x[1],x[2]],["L",w[1],w[2]],["Z"])),f.isFlat=u}}return f},E.prototype.addPlotBand=function(M){return this.addPlotBandOrLine(M,"plotBands")},E.prototype.addPlotLine=function(M){return this.addPlotBandOrLine(M,"plotLines")},E.prototype.addPlotBandOrLine=function(M,P){var y=this,h=this.userOptions,f=new V(this,M);if(this.visible&&(f=f.render()),f){if(this._addedPlotLB||(this._addedPlotLB=!0,(h.plotLines||[]).concat(h.plotBands||[]).forEach(function(u){y.addPlotBandOrLine(u)})),P){var m=h[P]||[];m.push(M),h[P]=m}this.plotLinesAndBands.push(f)}return f},E.prototype.removePlotBandOrLine=function(M){var P=this.plotLinesAndBands,y=this.options,h=this.userOptions;if(P){for(var f=P.length;f--;)P[f].id===M&&P[f].destroy();[y.plotLines||[],h.plotLines||[],y.plotBands||[],h.plotBands||[]].forEach(function(m){for(f=m.length;f--;)(m[f]||{}).id===M&&X(m,m[f])})}},E.prototype.removePlotBand=function(M){this.removePlotBandOrLine(M)},E.prototype.removePlotLine=function(M){this.removePlotBandOrLine(M)},E}()}(B||(B={})),B}),_(et,"Core/Axis/PlotLineOrBand/PlotLineOrBand.js",[et["Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js"],et["Core/Utilities.js"]],function(G,B){var X=B.arrayMax,U=B.arrayMin,$=B.defined,Z=B.destroyObjectProperties,V=B.erase,z=B.fireEvent,I=B.merge,E=B.objectEach,M=B.pick;return B=function(){function P(y,h){this.axis=y,h&&(this.options=h,this.id=h.id)}return P.compose=function(y){return G.compose(P,y)},P.prototype.render=function(){z(this,"render");var y=this,h=y.axis,f=h.horiz,m=h.logarithmic,u=y.options,v=u.color,S=M(u.zIndex,0),w=u.events,x={},c=h.chart.renderer,g=u.label,r=y.label,a=u.to,t=u.from,i=u.value,o=y.svgElem,e=[],s=$(t)&&$(a);e=$(i);var n=!o,l={class:"highcharts-plot-"+(s?"band ":"line ")+(u.className||"")},b=s?"bands":"lines";if(m&&(t=m.log2lin(t),a=m.log2lin(a),i=m.log2lin(i)),h.chart.styledMode||(e?(l.stroke=v||"#999999",l["stroke-width"]=M(u.width,1),u.dashStyle&&(l.dashstyle=u.dashStyle)):s&&(l.fill=v||"#e6ebf5",u.borderWidth&&(l.stroke=u.borderColor,l["stroke-width"]=u.borderWidth))),x.zIndex=S,b+="-"+S,(m=h.plotLinesAndBandsGroups[b])||(h.plotLinesAndBandsGroups[b]=m=c.g("plot-"+b).attr(x).add()),n&&(y.svgElem=o=c.path().attr(l).add(m)),e)e=h.getPlotLinePath({value:i,lineWidth:o.strokeWidth(),acrossPanes:u.acrossPanes});else{if(!s)return;e=h.getPlotBandPath(t,a,u)}return!y.eventsAdded&&w&&(E(w,function(k,D){o.on(D,function(d){w[D].apply(y,[d])})}),y.eventsAdded=!0),(n||!o.d)&&e&&e.length?o.attr({d:e}):o&&(e?(o.show(),o.animate({d:e})):o.d&&(o.hide(),r&&(y.label=r=r.destroy()))),g&&($(g.text)||$(g.formatter))&&e&&e.length&&0<h.width&&0<h.height&&!e.isFlat?(g=I({align:f&&s&&"center",x:f?!s&&4:10,verticalAlign:!f&&s&&"middle",y:f?s?16:10:s?6:-4,rotation:f&&!s&&90},g),this.renderLabel(g,e,s,S)):r&&r.hide(),y},P.prototype.renderLabel=function(y,h,f,m){var u=this.axis,v=u.chart.renderer,S=this.label;S||(this.label=S=v.text(this.getLabelText(y),0,0,y.useHTML).attr({align:y.textAlign||y.align,rotation:y.rotation,class:"highcharts-plot-"+(f?"band":"line")+"-label "+(y.className||""),zIndex:m}).add(),u.chart.styledMode||S.css(I({textOverflow:"ellipsis"},y.style))),m=h.xBounds||[h[0][1],h[1][1],f?h[2][1]:h[0][1]],h=h.yBounds||[h[0][2],h[1][2],f?h[2][2]:h[0][2]],f=U(m),v=U(h),S.align(y,!1,{x:f,y:v,width:X(m)-f,height:X(h)-v}),S.alignValue&&S.alignValue!=="left"||(y=y.clip?u.width:u.chart.chartWidth,S.css({width:(S.rotation===90?u.height-(S.alignAttr.y-u.top):y-(S.alignAttr.x-u.left))+"px"})),S.show(!0)},P.prototype.getLabelText=function(y){return $(y.formatter)?y.formatter.call(this):y.text},P.prototype.destroy=function(){V(this.axis.plotLinesAndBands,this),delete this.axis,Z(this)},P}(),B}),_(et,"Core/Tooltip.js",[et["Core/FormatUtilities.js"],et["Core/Globals.js"],et["Core/Renderer/RendererUtilities.js"],et["Core/Renderer/RendererRegistry.js"],et["Core/Utilities.js"]],function(G,B,X,U,$){var Z=G.format,V=B.doc,z=X.distribute,I=$.clamp,E=$.css,M=$.discardElement,P=$.extend,y=$.fireEvent,h=$.isArray,f=$.isNumber,m=$.isString,u=$.merge,v=$.pick,S=$.splat,w=$.syncTimeout;return G=function(){function x(c,g){this.allowShared=!0,this.container=void 0,this.crosshairs=[],this.distance=0,this.isHidden=!0,this.isSticky=!1,this.now={},this.options={},this.outside=!1,this.chart=c,this.init(c,g)}return x.prototype.applyFilter=function(){var c=this.chart;c.renderer.definition({tagName:"filter",attributes:{id:"drop-shadow-"+c.index,opacity:.5},children:[{tagName:"feGaussianBlur",attributes:{in:"SourceAlpha",stdDeviation:1}},{tagName:"feOffset",attributes:{dx:1,dy:1}},{tagName:"feComponentTransfer",children:[{tagName:"feFuncA",attributes:{type:"linear",slope:.3}}]},{tagName:"feMerge",children:[{tagName:"feMergeNode"},{tagName:"feMergeNode",attributes:{in:"SourceGraphic"}}]}]})},x.prototype.bodyFormatter=function(c){return c.map(function(g){var r=g.series.tooltipOptions;return(r[(g.point.formatPrefix||"point")+"Formatter"]||g.point.tooltipFormatter).call(g.point,r[(g.point.formatPrefix||"point")+"Format"]||"")})},x.prototype.cleanSplit=function(c){this.chart.series.forEach(function(g){var r=g&&g.tt;r&&(!r.isActive||c?g.tt=r.destroy():r.isActive=!1)})},x.prototype.defaultFormatter=function(c){var g=this.points||S(this),r=[c.tooltipFooterHeaderFormatter(g[0])];return(r=r.concat(c.bodyFormatter(g))).push(c.tooltipFooterHeaderFormatter(g[0],!0)),r},x.prototype.destroy=function(){this.label&&(this.label=this.label.destroy()),this.split&&this.tt&&(this.cleanSplit(!0),this.tt=this.tt.destroy()),this.renderer&&(this.renderer=this.renderer.destroy(),M(this.container)),$.clearTimeout(this.hideTimer),$.clearTimeout(this.tooltipTimeout)},x.prototype.getAnchor=function(c,g){var r=this.chart,a=r.pointer,t=r.inverted,i=r.plotTop;if(r=r.plotLeft,(c=S(c))[0].series&&c[0].series.yAxis&&!c[0].series.yAxis.options.reversedStacks&&(c=c.slice().reverse()),this.followPointer&&g)g.chartX===void 0&&(g=a.normalize(g)),c=[g.chartX-r,g.chartY-i];else if(c[0].tooltipPos)c=c[0].tooltipPos;else{var o=0,e=0;c.forEach(function(s){(s=s.pos(!0))&&(o+=s[0],e+=s[1])}),o/=c.length,e/=c.length,this.shared&&1<c.length&&g&&(t?o=g.chartX:e=g.chartY),c=[o-r,e-i]}return c.map(Math.round)},x.prototype.getClassName=function(c,g,r){var a=c.series,t=a.options;return[this.options.className,"highcharts-label",r&&"highcharts-tooltip-header",g?"highcharts-tooltip-box":"highcharts-tooltip",!r&&"highcharts-color-"+v(c.colorIndex,a.colorIndex),t&&t.className].filter(m).join(" ")},x.prototype.getLabel=function(){var c,g=this,r=this.chart.styledMode,a=this.options,t=this.split&&this.allowShared,i=a.style.pointerEvents||(this.shouldStickOnContact()?"auto":"none"),o=this.chart.renderer;if(g.label){var e=!g.label.hasClass("highcharts-label");(t&&!e||!t&&e)&&g.destroy()}if(!this.label){if(this.outside){e=this.chart.options.chart.style;var s=U.getRendererType();this.container=c=B.doc.createElement("div"),c.className="highcharts-tooltip-container",E(c,{position:"absolute",top:"1px",pointerEvents:i,zIndex:Math.max(this.options.style.zIndex||0,(e&&e.zIndex||0)+3)}),B.doc.body.appendChild(c),this.renderer=o=new s(c,0,0,e,void 0,void 0,o.styledMode)}if(t?this.label=o.g("tooltip"):(this.label=o.label("",0,0,a.shape,void 0,void 0,a.useHTML,void 0,"tooltip").attr({padding:a.padding,r:a.borderRadius}),r||this.label.attr({fill:a.backgroundColor,"stroke-width":a.borderWidth}).css(a.style).css({pointerEvents:i}).shadow(a.shadow)),r&&a.shadow&&(this.applyFilter(),this.label.attr({filter:"url(#drop-shadow-"+this.chart.index+")"})),g.outside&&!g.split){var n=this.label,l=n.xSetter,b=n.ySetter;n.xSetter=function(k){l.call(n,g.distance),c.style.left=k+"px"},n.ySetter=function(k){b.call(n,g.distance),c.style.top=k+"px"}}this.label.attr({zIndex:8}).add()}return this.label},x.prototype.getPosition=function(c,g,r){var a,t=this.chart,i=this.distance,o={},e=t.inverted&&r.h||0,s=this.outside,n=s?V.documentElement.clientWidth-2*i:t.chartWidth,l=s?Math.max(V.body.scrollHeight,V.documentElement.scrollHeight,V.body.offsetHeight,V.documentElement.offsetHeight,V.documentElement.clientHeight):t.chartHeight,b=t.pointer.getChartPosition(),k=function(O){var j=O==="x";return[O,j?n:l,j?c:g].concat(s?[j?c*b.scaleX:g*b.scaleY,j?b.left-i+(r.plotX+t.plotLeft)*b.scaleX:b.top-i+(r.plotY+t.plotTop)*b.scaleY,0,j?n:l]:[j?c:g,j?r.plotX+t.plotLeft:r.plotY+t.plotTop,j?t.plotLeft:t.plotTop,j?t.plotLeft+t.plotWidth:t.plotTop+t.plotHeight])},D=k("y"),d=k("x");k=!!r.negative,!t.polar&&t.hoverSeries&&t.hoverSeries.yAxis&&t.hoverSeries.yAxis.reversed&&(k=!k);var C=!this.followPointer&&v(r.ttBelow,!t.inverted===k),A=function(O,j,Y,H,W,q,Q){var J=s?O==="y"?i*b.scaleY:i*b.scaleX:i,nt=(Y-H)/2,lt=H<W-i,gt=W+i+H<j,mt=W-J-Y+nt;if(W=W+J-nt,C&>)o[O]=W;else if(!C&<)o[O]=mt;else if(lt)o[O]=Math.min(Q-H,0>mt-e?mt:mt-e);else{if(!gt)return!1;o[O]=Math.max(q,W+e+Y>j?W:W+e)}},N=function(O,j,Y,H,W){var q;return W<i||W>j-i?q=!1:o[O]=W<Y/2?1:W>j-H/2?j-H-2:W-Y/2,q},R=function(O){var j=D;D=d,d=j,a=O},L=function(){A.apply(0,D)!==!1?N.apply(0,d)!==!1||a||(R(!0),L()):a?o.x=o.y=0:(R(!0),L())};return(t.inverted||1<this.len)&&R(),L(),o},x.prototype.hide=function(c){var g=this;$.clearTimeout(this.hideTimer),c=v(c,this.options.hideDelay),this.isHidden||(this.hideTimer=w(function(){g.getLabel().fadeOut(c&&void 0),g.isHidden=!0},c))},x.prototype.init=function(c,g){this.chart=c,this.options=g,this.crosshairs=[],this.now={x:0,y:0},this.isHidden=!0,this.split=g.split&&!c.inverted&&!c.polar,this.shared=g.shared||this.split,this.outside=v(g.outside,!(!c.scrollablePixelsX&&!c.scrollablePixelsY))},x.prototype.shouldStickOnContact=function(c){return!(this.followPointer||!this.options.stickOnContact||c&&!this.chart.pointer.inClass(c.target,"highcharts-tooltip"))},x.prototype.move=function(c,g,r,a){var t=this,i=t.now,o=t.options.animation!==!1&&!t.isHidden&&(1<Math.abs(c-i.x)||1<Math.abs(g-i.y)),e=t.followPointer||1<t.len;P(i,{x:o?(2*i.x+c)/3:c,y:o?(i.y+g)/2:g,anchorX:e?void 0:o?(2*i.anchorX+r)/3:r,anchorY:e?void 0:o?(i.anchorY+a)/2:a}),t.getLabel().attr(i),t.drawTracker(),o&&($.clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout(function(){t&&t.move(c,g,r,a)},32))},x.prototype.refresh=function(c,g){var r=this.chart,a=this.options,t=r.pointer,i=S(c),o=i[0],e=[],s=a.formatter||this.defaultFormatter,n=this.shared,l=r.styledMode,b={};if(a.enabled&&o.series){$.clearTimeout(this.hideTimer),this.allowShared=!(!h(c)&&c.series&&c.series.noSharedTooltip),this.followPointer=!this.split&&o.series.tooltipOptions.followPointer;var k=(c=this.getAnchor(c,g))[0],D=c[1];if(n&&this.allowShared?(t.applyInactiveState(i),i.forEach(function(A){A.setState("hover"),e.push(A.getLabelConfig())}),(b={x:o.category,y:o.y}).points=e):b=o.getLabelConfig(),this.len=e.length,s=s.call(b,this),n=o.series,this.distance=v(n.tooltipOptions.distance,16),s===!1)this.hide();else{if(this.split&&this.allowShared)this.renderSplit(s,i);else{var d=k,C=D;if(g&&t.isDirectTouch&&(d=g.chartX-r.plotLeft,C=g.chartY-r.plotTop),!r.polar&&n.options.clip!==!1&&!i.some(function(A){return t.isDirectTouch||A.series.shouldShowTooltip(d,C)}))return void this.hide();g=this.getLabel(),a.style.width&&!l||g.css({width:r.spacingBox.width+"px"}),g.attr({text:s&&s.join?s.join(""):s}),g.addClass(this.getClassName(o),!0),l||g.attr({stroke:a.borderColor||o.color||n.color||"#666666"}),this.updatePosition({plotX:k,plotY:D,negative:o.negative,ttBelow:o.ttBelow,h:c[2]||0})}this.isHidden&&this.label&&this.label.attr({opacity:1}).show(),this.isHidden=!1}y(this,"refresh")}},x.prototype.renderSplit=function(c,g){function r(gt,mt,bt,yt,dt){return dt===void 0&&(dt=!0),bt?(mt=H?0:J,gt=I(gt-yt/2,O.left,O.right-yt-(a.outside?W:0))):(mt-=q,gt=I(gt=dt?gt-yt-N:gt+N,dt?gt:O.left,O.right)),{x:gt,y:mt}}var a=this,t=a.chart,i=a.chart,o=i.chartWidth,e=i.chartHeight,s=i.plotHeight,n=i.plotLeft,l=i.plotTop,b=i.pointer,k=i.scrollablePixelsY;k=k===void 0?0:k;var D=i.scrollablePixelsX,d=i.scrollingContainer,C=(d=d===void 0?{scrollLeft:0,scrollTop:0}:d).scrollLeft;d=d.scrollTop;var A=i.styledMode,N=a.distance,R=a.options,L=a.options.positioner,O=a.outside&&typeof D!="number"?V.documentElement.getBoundingClientRect():{left:C,right:C+o,top:d,bottom:d+e},j=a.getLabel(),Y=this.renderer||t.renderer,H=!(!t.xAxis[0]||!t.xAxis[0].opposite),W=(t=b.getChartPosition()).left;t=t.top;var q=l+d,Q=0,J=s-k;m(c)&&(c=[!1,c]),c=c.slice(0,g.length+1).reduce(function(gt,mt,bt){if(mt!==!1&&mt!==""){var yt=(bt=g[bt-1]||{isHeader:!0,plotX:g[0].plotX,plotY:s,series:{}}).isHeader,dt=yt?a:bt.series;mt=mt.toString();var ot=dt.tt,at=bt.isHeader,ut=bt.series;ot||(ot={padding:R.padding,r:R.borderRadius},A||(ot.fill=R.backgroundColor,ot["stroke-width"]=R.borderWidth),ot=Y.label("",0,0,R[at?"headerShape":"shape"],void 0,void 0,R.useHTML).addClass(a.getClassName(bt,!0,at)).attr(ot).add(j)),ot.isActive=!0,ot.attr({text:mt}),A||ot.css(R.style).shadow(R.shadow).attr({stroke:R.borderColor||bt.color||ut.color||"#333333"}),mt=(at=(dt=dt.tt=ot).getBBox()).width+dt.strokeWidth(),yt&&(Q=at.height,J+=Q,H&&(q-=Q)),ut=(ut=bt.plotX)===void 0?0:ut,ot=(ot=bt.plotY)===void 0?0:ot;var vt=bt.series;if(bt.isHeader){ut=n+ut;var Ct=l+s/2}else{var xt=vt.xAxis,St=vt.yAxis;ut=xt.pos+I(ut,-N,xt.len+N),vt.shouldShowTooltip(0,St.pos-l+ot,{ignoreX:!0})&&(Ct=St.pos+ot)}ut=I(ut,O.left-N,O.right+N),typeof Ct=="number"?(at=at.height+1,ot=L?L.call(a,mt,at,bt):r(ut,Ct,yt,mt),gt.push({align:L?0:void 0,anchorX:ut,anchorY:Ct,boxWidth:mt,point:bt,rank:v(ot.rank,yt?1:0),size:at,target:ot.y,tt:dt,x:ot.x})):dt.isActive=!1}return gt},[]),!L&&c.some(function(gt){var mt=(a.outside?W:0)+gt.anchorX;return mt<O.left&&mt+gt.boxWidth<O.right||mt<W-O.left+gt.boxWidth&&O.right-mt>mt})&&(c=c.map(function(gt){var mt=r(gt.anchorX,gt.anchorY,gt.point.isHeader,gt.boxWidth,!1);return P(gt,{target:mt.y,x:mt.x})})),a.cleanSplit(),z(c,J);var nt=W,lt=W;c.forEach(function(gt){var mt=gt.x,bt=gt.boxWidth;(gt=gt.isHeader)||(a.outside&&W+mt<nt&&(nt=W+mt),!gt&&a.outside&&nt+bt>lt&&(lt=W+mt))}),c.forEach(function(gt){var mt=gt.x,bt=gt.anchorX,yt=gt.pos,dt=gt.point.isHeader;if(yt={visibility:yt===void 0?"hidden":"inherit",x:mt,y:(yt||0)+q,anchorX:bt,anchorY:gt.anchorY},a.outside&&mt<bt){var ot=W-nt;0<ot&&(dt||(yt.x=mt+ot,yt.anchorX=bt+ot),dt&&(yt.x=(lt-nt)/2,yt.anchorX=bt+ot))}gt.tt.attr(yt)}),c=a.container,k=a.renderer,a.outside&&c&&k&&(i=j.getBBox(),k.setSize(i.width+i.x,i.height+i.y,!1),c.style.left=nt+"px",c.style.top=t+"px")},x.prototype.drawTracker=function(){if(this.shouldStickOnContact()){var c=this.chart,g=this.label,r=this.shared?c.hoverPoints:c.hoverPoint;if(g&&r){var a={x:0,y:0,width:0,height:0};r=this.getAnchor(r);var t=g.getBBox();r[0]+=c.plotLeft-g.translateX,r[1]+=c.plotTop-g.translateY,a.x=Math.min(0,r[0]),a.y=Math.min(0,r[1]),a.width=0>r[0]?Math.max(Math.abs(r[0]),t.width-r[0]):Math.max(Math.abs(r[0]),t.width),a.height=0>r[1]?Math.max(Math.abs(r[1]),t.height-Math.abs(r[1])):Math.max(Math.abs(r[1]),t.height),this.tracker?this.tracker.attr(a):(this.tracker=g.renderer.rect(a).addClass("highcharts-tracker").add(g),c.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}}else this.tracker&&this.tracker.destroy()},x.prototype.styledModeFormat=function(c){return c.replace('style="font-size: 10px"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex} {series.options.className} {point.options.className}"')},x.prototype.tooltipFooterHeaderFormatter=function(c,g){var r=c.series,a=r.tooltipOptions,t=r.xAxis,i=t&&t.dateTime;t={isFooter:g,labelConfig:c};var o=a.xDateFormat,e=a[g?"footerFormat":"headerFormat"];return y(this,"headerFormatter",t,function(s){i&&!o&&f(c.key)&&(o=i.getXDateFormat(c.key,a.dateTimeLabelFormats)),i&&o&&(c.point&&c.point.tooltipDateKeys||["key"]).forEach(function(n){e=e.replace("{point."+n+"}","{point."+n+":"+o+"}")}),r.chart.styledMode&&(e=this.styledModeFormat(e)),s.text=Z(e,{point:c,series:r},this.chart)}),t.text},x.prototype.update=function(c){this.destroy(),u(!0,this.chart.options.tooltip.userOptions,c),this.init(this.chart,u(!0,this.options,c))},x.prototype.updatePosition=function(c){var g=this.chart,r=this.distance,a=this.options,t=g.pointer,i=this.getLabel(),o=t.getChartPosition();t=o.left;var e=o.top,s=o.scaleX;o=o.scaleY;var n=(a.positioner||this.getPosition).call(this,i.width,i.height,c),l=(c.plotX||0)+g.plotLeft;c=(c.plotY||0)+g.plotTop,this.outside&&(a.positioner&&(n.x+=t-r,n.y+=e-r),r=a.borderWidth+2*r,this.renderer.setSize(i.width+r,i.height+r,!1),s===1&&o===1||(E(this.container,{transform:"scale(".concat(s,", ").concat(o,")")}),l*=s,c*=o),l+=t-n.x,c+=e-n.y),this.move(Math.round(n.x),Math.round(n.y||0),l,c)},x}(),G}),_(et,"Core/Series/Point.js",[et["Core/Renderer/HTML/AST.js"],et["Core/Animation/AnimationUtilities.js"],et["Core/Defaults.js"],et["Core/FormatUtilities.js"],et["Core/Utilities.js"]],function(G,B,X,U,$){var Z=B.animObject,V=X.defaultOptions,z=U.format,I=$.addEvent,E=$.defined,M=$.erase,P=$.extend,y=$.fireEvent,h=$.getNestedProperty,f=$.isArray,m=$.isFunction,u=$.isNumber,v=$.isObject,S=$.merge,w=$.objectEach,x=$.pick,c=$.syncTimeout,g=$.removeEvent,r=$.uniqueKey;return B=function(){function a(){this.category=void 0,this.formatPrefix="point",this.id=void 0,this.isNull=!1,this.percentage=this.options=this.name=void 0,this.selected=!1,this.total=this.shapeArgs=this.series=void 0,this.visible=!0,this.x=void 0}return a.prototype.animateBeforeDestroy=function(){var t=this,i={x:t.startXPos,opacity:0},o=t.getGraphicalProps();o.singular.forEach(function(e){t[e]=t[e].animate(e==="dataLabel"?{x:t[e].startXPos,y:t[e].startYPos,opacity:0}:i)}),o.plural.forEach(function(e){t[e].forEach(function(s){s.element&&s.animate(P({x:t.startXPos},s.startYPos?{x:s.startXPos,y:s.startYPos}:{}))})})},a.prototype.applyOptions=function(t,i){var o=this.series,e=o.options.pointValKey||o.pointValKey;return t=a.prototype.optionsToObject.call(this,t),P(this,t),this.options=this.options?P(this.options,t):t,t.group&&delete this.group,t.dataLabels&&delete this.dataLabels,e&&(this.y=a.prototype.getNestedProperty.call(this,e)),this.formatPrefix=(this.isNull=this.isValid&&!this.isValid())?"null":"point",this.selected&&(this.state="select"),"name"in this&&i===void 0&&o.xAxis&&o.xAxis.hasNames&&(this.x=o.xAxis.nameToX(this)),this.x===void 0&&o?this.x=i===void 0?o.autoIncrement():i:u(t.x)&&o.options.relativeXValue&&(this.x=o.autoIncrement(t.x)),this},a.prototype.destroy=function(){function t(){for(s in(i.graphic||i.graphics||i.dataLabel||i.dataLabels)&&(g(i),i.destroyElements()),i)i[s]=null}var i=this,o=i.series,e=o.chart;o=o.options.dataSorting;var s,n=e.hoverPoints,l=Z(i.series.chart.renderer.globalAnimation);i.legendItem&&e.legend.destroyItem(i),n&&(i.setState(),M(n,i),n.length||(e.hoverPoints=null)),i===e.hoverPoint&&i.onMouseOut(),o&&o.enabled?(this.animateBeforeDestroy(),c(t,l.duration)):t(),e.pointCount--},a.prototype.destroyElements=function(t){var i=this;(t=i.getGraphicalProps(t)).singular.forEach(function(o){i[o]=i[o].destroy()}),t.plural.forEach(function(o){i[o].forEach(function(e){e&&e.element&&e.destroy()}),delete i[o]})},a.prototype.firePointEvent=function(t,i,o){var e=this,s=this.series.options;(s.point.events[t]||e.options&&e.options.events&&e.options.events[t])&&e.importEvents(),t==="click"&&s.allowPointSelect&&(o=function(n){e.select&&e.select(null,n.ctrlKey||n.metaKey||n.shiftKey)}),y(e,t,i,o)},a.prototype.getClassName=function(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+(this.colorIndex!==void 0?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")},a.prototype.getGraphicalProps=function(t){var i,o=this,e=[],s={singular:[],plural:[]};for((t=t||{graphic:1,dataLabel:1}).graphic&&e.push("graphic","shadowGroup"),t.dataLabel&&e.push("dataLabel","dataLabelPath","dataLabelUpper","connector"),i=e.length;i--;){var n=e[i];o[n]&&s.singular.push(n)}return["graphic","dataLabel","connector"].forEach(function(l){var b=l+"s";t[l]&&o[b]&&s.plural.push(b)}),s},a.prototype.getLabelConfig=function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},a.prototype.getNestedProperty=function(t){if(t)return t.indexOf("custom.")===0?h(t,this.options):this[t]},a.prototype.getZone=function(){var t=this.series,i=t.zones;t=t.zoneAxis||"y";var o,e=0;for(o=i[e];this[t]>=o.value;)o=i[++e];return this.nonZonedColor||(this.nonZonedColor=this.color),this.color=o&&o.color&&!this.options.color?o.color:this.nonZonedColor,o},a.prototype.hasNewShapeType=function(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType},a.prototype.init=function(t,i,o){return this.series=t,this.applyOptions(i,o),this.id=E(this.id)?this.id:r(),this.resolveColor(),t.chart.pointCount++,y(this,"afterInit"),this},a.prototype.isValid=function(){return this.x!==null&&u(this.y)},a.prototype.optionsToObject=function(t){var i=this.series,o=i.options.keys,e=o||i.pointArrayMap||["y"],s=e.length,n={},l=0,b=0;if(u(t)||t===null)n[e[0]]=t;else if(f(t))for(!o&&t.length>s&&((i=typeof t[0])=="string"?n.name=t[0]:i==="number"&&(n.x=t[0]),l++);b<s;)o&&t[l]===void 0||(0<e[b].indexOf(".")?a.prototype.setNestedProperty(n,t[l],e[b]):n[e[b]]=t[l]),l++,b++;else typeof t=="object"&&(n=t,t.dataLabels&&(i._hasPointLabels=!0),t.marker&&(i._hasPointMarkers=!0));return n},a.prototype.pos=function(t,i){i===void 0&&(i=this.plotY);var o=this.plotX,e=this.series,s=e.chart,n=e.xAxis;e=e.yAxis;var l=0,b=0;if(u(o)&&u(i))return t&&(l=n?n.pos:s.plotLeft,b=e?e.pos:s.plotTop),s.inverted&&n&&e?[e.len-i+b,n.len-o+l]:[o+l,i+b]},a.prototype.resolveColor=function(){var t=this.series,i=t.chart.styledMode,o=t.chart.options.chart.colorCount;if(delete this.nonZonedColor,t.options.colorByPoint){if(!i){var e=(o=t.options.colors||t.chart.options.colors)[t.colorCounter];o=o.length}i=t.colorCounter,t.colorCounter++,t.colorCounter===o&&(t.colorCounter=0)}else i||(e=t.color),i=t.colorIndex;this.colorIndex=x(this.options.colorIndex,i),this.color=x(this.options.color,e)},a.prototype.setNestedProperty=function(t,i,o){return o.split(".").reduce(function(e,s,n,l){return e[s]=l.length-1===n?i:v(e[s],!0)?e[s]:{},e[s]},t),t},a.prototype.shouldDraw=function(){return!this.isNull},a.prototype.tooltipFormatter=function(t){var i=this.series,o=i.tooltipOptions,e=x(o.valueDecimals,""),s=o.valuePrefix||"",n=o.valueSuffix||"";return i.chart.styledMode&&(t=i.chart.tooltip.styledModeFormat(t)),(i.pointArrayMap||["y"]).forEach(function(l){l="{point."+l,(s||n)&&(t=t.replace(RegExp(l+"}","g"),s+l+"}"+n)),t=t.replace(RegExp(l+"}","g"),l+":,."+e+"f}")}),z(t,{point:this,series:this.series},i.chart)},a.prototype.update=function(t,i,o,e){function s(){l.applyOptions(t);var C=k&&l.hasMockGraphic;C=l.y===null?!C:C,k&&C&&(l.graphic=k.destroy(),delete l.hasMockGraphic),v(t,!0)&&(k&&k.element&&t&&t.marker&&t.marker.symbol!==void 0&&(l.graphic=k.destroy()),t&&t.dataLabels&&l.dataLabel&&(l.dataLabel=l.dataLabel.destroy()),l.connector&&(l.connector=l.connector.destroy())),n=l.index,b.updateParallelArrays(l,n),d.data[n]=v(d.data[n],!0)||v(t,!0)?l.options:x(t,d.data[n]),b.isDirty=b.isDirtyData=!0,!b.fixedBox&&b.hasCartesianSeries&&(D.isDirtyBox=!0),d.legendType==="point"&&(D.isDirtyLegend=!0),i&&D.redraw(o)}var n,l=this,b=l.series,k=l.graphic,D=b.chart,d=b.options;i=x(i,!0),e===!1?s():l.firePointEvent("update",{options:t},s)},a.prototype.remove=function(t,i){this.series.removePoint(this.series.data.indexOf(this),t,i)},a.prototype.select=function(t,i){var o=this,e=o.series,s=e.chart;this.selectedStaging=t=x(t,!o.selected),o.firePointEvent(t?"select":"unselect",{accumulate:i},function(){o.selected=o.options.selected=t,e.options.data[e.data.indexOf(o)]=o.options,o.setState(t&&"select"),i||s.getSelectedPoints().forEach(function(n){var l=n.series;n.selected&&n!==o&&(n.selected=n.options.selected=!1,l.options.data[l.data.indexOf(n)]=n.options,n.setState(s.hoverPoints&&l.options.inactiveOtherPoints?"inactive":""),n.firePointEvent("unselect"))})}),delete this.selectedStaging},a.prototype.onMouseOver=function(t){var i=this.series.chart,o=i.pointer;t=t?o.normalize(t):o.getChartCoordinatesFromPoint(this,i.inverted),o.runPointActions(t,this)},a.prototype.onMouseOut=function(){var t=this.series.chart;this.firePointEvent("mouseOut"),this.series.options.inactiveOtherPoints||(t.hoverPoints||[]).forEach(function(i){i.setState()}),t.hoverPoints=t.hoverPoint=null},a.prototype.importEvents=function(){if(!this.hasImportedEvents){var t=this,i=S(t.series.options.point,t.options).events;t.events=i,w(i,function(o,e){m(o)&&I(t,e,o)}),this.hasImportedEvents=!0}},a.prototype.setState=function(t,i){var o,e=this.series,s=this.state,n=e.options.states[t||"normal"]||{},l=V.plotOptions[e.type].marker&&e.options.marker,b=l&&l.enabled===!1,k=l&&l.states&&l.states[t||"normal"]||{},D=k.enabled===!1,d=this.marker||{},C=e.chart,A=l&&e.markerAttribs,N=e.halo,R=e.stateMarkerGraphic;if(!((t=t||"")===this.state&&!i||this.selected&&t!=="select"||n.enabled===!1||t&&(D||b&&k.enabled===!1)||t&&d.states&&d.states[t]&&d.states[t].enabled===!1)){if(this.state=t,A&&(o=e.markerAttribs(this,t)),this.graphic&&!this.hasMockGraphic){if(s&&this.graphic.removeClass("highcharts-point-"+s),t&&this.graphic.addClass("highcharts-point-"+t),!C.styledMode){s=e.pointAttribs(this,t);var L=x(C.options.chart.animation,n.animation),O=s.opacity;e.options.inactiveOtherPoints&&u(O)&&((this.dataLabels||[]).forEach(function(j){j&&!j.hasClass("highcharts-data-label-hidden")&&j.animate({opacity:O},L)}),this.connector&&this.connector.animate({opacity:O},L)),this.graphic.animate(s,L)}o&&this.graphic.animate(o,x(C.options.chart.animation,k.animation,l.animation)),R&&R.hide()}else t&&k&&(l=d.symbol||e.symbol,R&&R.currentSymbol!==l&&(R=R.destroy()),o&&(R?R[i?"animate":"attr"]({x:o.x,y:o.y}):l&&(e.stateMarkerGraphic=R=C.renderer.symbol(l,o.x,o.y,o.width,o.height).add(e.markerGroup),R.currentSymbol=l)),!C.styledMode&&R&&this.state!=="inactive"&&R.attr(e.pointAttribs(this,t))),R&&(R[t&&this.isInside?"show":"hide"](),R.element.point=this,R.addClass(this.getClassName(),!0));n=n.halo,o=(R=this.graphic||R)&&R.visibility||"inherit",n&&n.size&&R&&o!=="hidden"&&!this.isCluster?(N||(e.halo=N=C.renderer.path().add(R.parentGroup)),N.show()[i?"animate":"attr"]({d:this.haloPath(n.size)}),N.attr({class:"highcharts-halo highcharts-color-"+x(this.colorIndex,e.colorIndex)+(this.className?" "+this.className:""),visibility:o,zIndex:-1}),N.point=this,C.styledMode||N.attr(P({fill:this.color||e.color,"fill-opacity":n.opacity},G.filterUserAttributes(n.attributes||{})))):N&&N.point&&N.point.haloPath&&N.animate({d:N.point.haloPath(0)},null,N.hide),y(this,"afterSetState",{state:t})}},a.prototype.haloPath=function(t){var i=this.pos();return i?this.series.chart.renderer.symbols.circle(Math.floor(i[0])-t,i[1]-t,2*t,2*t):[]},a}(),B}),_(et,"Core/Pointer.js",[et["Core/Color/Color.js"],et["Core/Globals.js"],et["Core/Tooltip.js"],et["Core/Utilities.js"]],function(G,B,X,U){var $=G.parse,Z=B.charts,V=B.noop,z=U.addEvent,I=U.attr,E=U.css,M=U.defined,P=U.extend,y=U.find,h=U.fireEvent,f=U.isNumber,m=U.isObject,u=U.objectEach,v=U.offset,S=U.pick,w=U.splat;return G=function(){function x(c,g){this.lastValidTouch={},this.pinchDown=[],this.runChartClick=!1,this.eventsToUnbind=[],this.chart=c,this.hasDragged=!1,this.options=g,this.init(c,g)}return x.prototype.applyInactiveState=function(c){var g,r=[];(c||[]).forEach(function(a){g=a.series,r.push(g),g.linkedParent&&r.push(g.linkedParent),g.linkedSeries&&(r=r.concat(g.linkedSeries)),g.navigatorSeries&&r.push(g.navigatorSeries)}),this.chart.series.forEach(function(a){r.indexOf(a)===-1?a.setState("inactive",!0):a.options.inactiveOtherPoints&&a.setAllPointsToState("inactive")})},x.prototype.destroy=function(){var c=this;this.eventsToUnbind.forEach(function(g){return g()}),this.eventsToUnbind=[],B.chartCount||(x.unbindDocumentMouseUp&&(x.unbindDocumentMouseUp=x.unbindDocumentMouseUp()),x.unbindDocumentTouchEnd&&(x.unbindDocumentTouchEnd=x.unbindDocumentTouchEnd())),clearInterval(c.tooltipTimeout),u(c,function(g,r){c[r]=void 0})},x.prototype.getSelectionMarkerAttrs=function(c,g){var r=this,a={args:{chartX:c,chartY:g},attrs:{},shapeType:"rect"};return h(this,"getSelectionMarkerAttrs",a,function(t){var i=r.chart,o=r.mouseDownX;o=o===void 0?0:o;var e=r.mouseDownY;e=e===void 0?0:e;var s=r.zoomHor,n=r.zoomVert;(t=t.attrs).x=i.plotLeft,t.y=i.plotTop,t.width=s?1:i.plotWidth,t.height=n?1:i.plotHeight,s&&(i=c-o,t.width=Math.abs(i),t.x=(0<i?0:i)+o),n&&(i=g-e,t.height=Math.abs(i),t.y=(0<i?0:i)+e)}),a},x.prototype.drag=function(c){var g=this.chart,r=g.options.chart,a=g.plotLeft,t=g.plotTop,i=g.plotWidth,o=g.plotHeight,e=this.mouseDownX||0,s=this.mouseDownY||0,n=m(r.panning)?r.panning&&r.panning.enabled:r.panning,l=r.panKey&&c[r.panKey+"Key"],b=c.chartX,k=c.chartY,D=this.selectionMarker;D&&D.touch||(b<a?b=a:b>a+i&&(b=a+i),k<t?k=t:k>t+o&&(k=t+o),this.hasDragged=Math.sqrt(Math.pow(e-b,2)+Math.pow(s-k,2)),10<this.hasDragged&&(a=g.isInsidePlot(e-a,s-t,{visiblePlotOnly:!0}),b=(k=this.getSelectionMarkerAttrs(b,k)).shapeType,k=k.attrs,!g.hasCartesianSeries&&!g.mapView||!this.zoomX&&!this.zoomY||!a||l||D||(this.selectionMarker=D=g.renderer[b](),D.attr({class:"highcharts-selection-marker",zIndex:7}).add(),g.styledMode||D.attr({fill:r.selectionMarkerFill||$("#335cad").setOpacity(.25).get()})),D&&D.attr(k),a&&!D&&n&&g.pan(c,r.panning)))},x.prototype.dragStart=function(c){var g=this.chart;g.mouseIsDown=c.type,g.cancelClick=!1,g.mouseDownX=this.mouseDownX=c.chartX,g.mouseDownY=this.mouseDownY=c.chartY},x.prototype.getSelectionBox=function(c){var g={args:{marker:c},result:{}};return h(this,"getSelectionBox",g,function(r){r.result={x:c.attr?+c.attr("x"):c.x,y:c.attr?+c.attr("y"):c.y,width:c.attr?c.attr("width"):c.width,height:c.attr?c.attr("height"):c.height}}),g.result},x.prototype.drop=function(c){var g=this,r=this.chart,a=this.hasPinched;if(this.selectionMarker){var t=this.getSelectionBox(this.selectionMarker),i=t.x,o=t.y,e=t.width,s=t.height,n={originalEvent:c,xAxis:[],yAxis:[],x:i,y:o,width:e,height:s},l=!!r.mapView;(this.hasDragged||a)&&(r.axes.forEach(function(b){if(b.zoomEnabled&&M(b.min)&&(a||g[{xAxis:"zoomX",yAxis:"zoomY"}[b.coll]])&&f(i)&&f(o)&&f(e)&&f(s)){var k=b.horiz,D=c.type==="touchend"?b.minPixelPadding:0,d=b.toValue((k?i:o)+D);k=b.toValue((k?i+e:o+s)-D),n[b.coll].push({axis:b,min:Math.min(d,k),max:Math.max(d,k)}),l=!0}}),l&&h(r,"selection",n,function(b){r.zoom(P(b,a?{animation:!1}:null))})),f(r.index)&&(this.selectionMarker=this.selectionMarker.destroy()),a&&this.scaleGroups()}r&&f(r.index)&&(E(r.container,{cursor:r._cursor}),r.cancelClick=10<this.hasDragged,r.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])},x.prototype.findNearestKDPoint=function(c,g,r){var a;return c.forEach(function(t){var i=!(t.noSharedTooltip&&g)&&0>t.options.findNearestPointBy.indexOf("y");if(t=t.searchPoint(r,i),(i=m(t,!0)&&t.series)&&!(i=!m(a,!0))){i=a.distX-t.distX;var o=a.dist-t.dist,e=(t.series.group&&t.series.group.zIndex)-(a.series.group&&a.series.group.zIndex);i=0<(i!==0&&g?i:o!==0?o:e!==0?e:a.series.index>t.series.index?-1:1)}i&&(a=t)}),a},x.prototype.getChartCoordinatesFromPoint=function(c,g){var r=c.series,a=r.xAxis;r=r.yAxis;var t=c.shapeArgs;if(a&&r){var i=S(c.clientX,c.plotX),o=c.plotY||0;return c.isNode&&t&&f(t.x)&&f(t.y)&&(i=t.x,o=t.y),g?{chartX:r.len+r.pos-o,chartY:a.len+a.pos-i}:{chartX:i+a.pos,chartY:o+r.pos}}if(t&&t.x&&t.y)return{chartX:t.x,chartY:t.y}},x.prototype.getChartPosition=function(){if(this.chartPosition)return this.chartPosition;var c=this.chart.container,g=v(c);this.chartPosition={left:g.left,top:g.top,scaleX:1,scaleY:1};var r=c.offsetWidth;return c=c.offsetHeight,2<r&&2<c&&(this.chartPosition.scaleX=g.width/r,this.chartPosition.scaleY=g.height/c),this.chartPosition},x.prototype.getCoordinates=function(c){var g={xAxis:[],yAxis:[]};return this.chart.axes.forEach(function(r){g[r.isXAxis?"xAxis":"yAxis"].push({axis:r,value:r.toValue(c[r.horiz?"chartX":"chartY"])})}),g},x.prototype.getHoverData=function(c,g,r,a,t,i){var o=[];a=!(!a||!c);var e=function(b){return b.visible&&!(!t&&b.directTouch)&&S(b.options.enableMouseTracking,!0)},s={chartX:i?i.chartX:void 0,chartY:i?i.chartY:void 0,shared:t};h(this,"beforeGetHoverData",s);var n=g&&!g.stickyTracking?[g]:r.filter(function(b){return b.stickyTracking&&(s.filter||e)(b)}),l=a||!i?c:this.findNearestKDPoint(n,t,i);return g=l&&l.series,l&&(t&&!g.noSharedTooltip?(n=r.filter(function(b){return s.filter?s.filter(b):e(b)&&!b.noSharedTooltip}),n.forEach(function(b){var k=y(b.points,function(D){return D.x===l.x&&!D.isNull});m(k)&&(b.boosted&&b.boost&&(k=b.boost.getPoint(k)),o.push(k))})):o.push(l)),h(this,"afterGetHoverData",s={hoverPoint:l}),{hoverPoint:s.hoverPoint,hoverSeries:g,hoverPoints:o}},x.prototype.getPointFromEvent=function(c){c=c.target;for(var g;c&&!g;)g=c.point,c=c.parentNode;return g},x.prototype.onTrackerMouseOut=function(c){c=c.relatedTarget||c.toElement;var g=this.chart.hoverSeries;this.isDirectTouch=!1,!g||!c||g.stickyTracking||this.inClass(c,"highcharts-tooltip")||this.inClass(c,"highcharts-series-"+g.index)&&this.inClass(c,"highcharts-tracker")||g.onMouseOut()},x.prototype.inClass=function(c,g){for(var r;c;){if(r=I(c,"class")){if(r.indexOf(g)!==-1)return!0;if(r.indexOf("highcharts-container")!==-1)return!1}c=c.parentElement}},x.prototype.init=function(c,g){this.options=g,this.chart=c,this.runChartClick=!(!g.chart.events||!g.chart.events.click),this.pinchDown=[],this.lastValidTouch={},X&&(c.tooltip=new X(c,g.tooltip)),this.setDOMEvents()},x.prototype.normalize=function(c,g){var r=c.touches,a=r?r.length?r.item(0):S(r.changedTouches,c.changedTouches)[0]:c;return g||(g=this.getChartPosition()),r=a.pageX-g.left,a=a.pageY-g.top,r/=g.scaleX,a/=g.scaleY,P(c,{chartX:Math.round(r),chartY:Math.round(a)})},x.prototype.onContainerClick=function(c){var g=this.chart,r=g.hoverPoint;c=this.normalize(c);var a=g.plotLeft,t=g.plotTop;g.cancelClick||(r&&this.inClass(c.target,"highcharts-tracker")?(h(r.series,"click",P(c,{point:r})),g.hoverPoint&&r.firePointEvent("click",c)):(P(c,this.getCoordinates(c)),g.isInsidePlot(c.chartX-a,c.chartY-t,{visiblePlotOnly:!0})&&h(g,"click",c)))},x.prototype.onContainerMouseDown=function(c){var g=!(1&~(c.buttons||c.button));c=this.normalize(c),B.isFirefox&&c.button!==0&&this.onContainerMouseMove(c),(c.button===void 0||g)&&(this.zoomOption(c),g&&c.preventDefault&&c.preventDefault(),this.dragStart(c))},x.prototype.onContainerMouseLeave=function(c){var g=Z[S(x.hoverChartIndex,-1)],r=this.chart.tooltip;c=this.normalize(c),g&&(c.relatedTarget||c.toElement)&&(g.pointer.reset(),g.pointer.chartPosition=void 0),r&&!r.isHidden&&this.reset()},x.prototype.onContainerMouseEnter=function(c){delete this.chartPosition},x.prototype.onContainerMouseMove=function(c){var g=this.chart,r=g.tooltip;c=this.normalize(c),this.setHoverChartIndex(),c.preventDefault||(c.returnValue=!1),(g.mouseIsDown==="mousedown"||this.touchSelect(c))&&this.drag(c),g.openMenu||!this.inClass(c.target,"highcharts-tracker")&&!g.isInsidePlot(c.chartX-g.plotLeft,c.chartY-g.plotTop,{visiblePlotOnly:!0})||r&&r.shouldStickOnContact(c)||(this.inClass(c.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(c))},x.prototype.onDocumentTouchEnd=function(c){var g=Z[S(x.hoverChartIndex,-1)];g&&g.pointer.drop(c)},x.prototype.onContainerTouchMove=function(c){this.touchSelect(c)?this.onContainerMouseMove(c):this.touch(c)},x.prototype.onContainerTouchStart=function(c){this.touchSelect(c)?this.onContainerMouseDown(c):(this.zoomOption(c),this.touch(c,!0))},x.prototype.onDocumentMouseMove=function(c){var g=this.chart,r=g.tooltip,a=this.chartPosition;c=this.normalize(c,a),!a||g.isInsidePlot(c.chartX-g.plotLeft,c.chartY-g.plotTop,{visiblePlotOnly:!0})||r&&r.shouldStickOnContact(c)||this.inClass(c.target,"highcharts-tracker")||this.reset()},x.prototype.onDocumentMouseUp=function(c){var g=Z[S(x.hoverChartIndex,-1)];g&&g.pointer.drop(c)},x.prototype.pinch=function(c){var g=this,r=g.chart,a=g.pinchDown,t=c.touches||[],i=t.length,o=g.lastValidTouch,e=g.hasZoom,s={},n=i===1&&(g.inClass(c.target,"highcharts-tracker")&&r.runTrackerClick||g.runChartClick),l={},b=g.chart.tooltip;b=i===1&&S(b&&b.options.followTouchMove,!0);var k=g.selectionMarker;1<i?g.initiated=!0:b&&(g.initiated=!1),e&&g.initiated&&!n&&c.cancelable!==!1&&c.preventDefault(),[].map.call(t,function(D){return g.normalize(D)}),c.type==="touchstart"?([].forEach.call(t,function(D,d){a[d]={chartX:D.chartX,chartY:D.chartY}}),o.x=[a[0].chartX,a[1]&&a[1].chartX],o.y=[a[0].chartY,a[1]&&a[1].chartY],r.axes.forEach(function(D){if(D.zoomEnabled){var d=r.bounds[D.horiz?"h":"v"],C=D.minPixelPadding,A=D.toPixels(Math.min(S(D.options.min,D.dataMin),D.dataMin)),N=D.toPixels(Math.max(S(D.options.max,D.dataMax),D.dataMax)),R=Math.max(A,N);d.min=Math.min(D.pos,Math.min(A,N)-C),d.max=Math.max(D.pos+D.len,R+C)}}),g.res=!0):b?this.runPointActions(g.normalize(c)):a.length&&(h(r,"touchpan",{originalEvent:c},function(){k||(g.selectionMarker=k=P({destroy:V,touch:!0},r.plotBox)),g.pinchTranslate(a,t,s,k,l,o),g.hasPinched=e,g.scaleGroups(s,l)}),g.res&&(g.res=!1,this.reset(!1,0)))},x.prototype.pinchTranslate=function(c,g,r,a,t,i){this.zoomHor&&this.pinchTranslateDirection(!0,c,g,r,a,t,i),this.zoomVert&&this.pinchTranslateDirection(!1,c,g,r,a,t,i)},x.prototype.pinchTranslateDirection=function(c,g,r,a,t,i,o,e){var s=this.chart,n=c?"x":"y",l=c?"X":"Y",b="chart"+l,k=c?"width":"height",D=s["plot"+(c?"Left":"Top")],d=s.inverted,C=s.bounds[c?"h":"v"],A=g.length===1,N=g[0][b],R=!A&&g[1][b];g=function(){typeof H=="number"&&20<Math.abs(N-R)&&(j=e||Math.abs(Y-H)/Math.abs(N-R)),O=(D-Y)/j+N,L=s["plot"+(c?"Width":"Height")]/j};var L,O,j=e||1,Y=r[0][b],H=!A&&r[1][b];if(g(),(r=O)<C.min){r=C.min;var W=!0}else r+L>C.max&&(r=C.max-L,W=!0);W?(Y-=.8*(Y-o[n][0]),typeof H=="number"&&(H-=.8*(H-o[n][1])),g()):o[n]=[Y,H],d||(i[n]=O-D,i[k]=L),i=d?1/j:j,t[k]=L,t[n]=r,a[d?c?"scaleY":"scaleX":"scale"+l]=j,a["translate"+l]=i*D+(Y-i*N)},x.prototype.reset=function(c,g){var r=this.chart,a=r.hoverSeries,t=r.hoverPoint,i=r.hoverPoints,o=r.tooltip,e=o&&o.shared?i:t;c&&e&&w(e).forEach(function(s){s.series.isCartesian&&s.plotX===void 0&&(c=!1)}),c?o&&e&&w(e).length&&(o.refresh(e),o.shared&&i?i.forEach(function(s){s.setState(s.state,!0),s.series.isCartesian&&(s.series.xAxis.crosshair&&s.series.xAxis.drawCrosshair(null,s),s.series.yAxis.crosshair&&s.series.yAxis.drawCrosshair(null,s))}):t&&(t.setState(t.state,!0),r.axes.forEach(function(s){s.crosshair&&t.series[s.coll]===s&&s.drawCrosshair(null,t)}))):(t&&t.onMouseOut(),i&&i.forEach(function(s){s.setState()}),a&&a.onMouseOut(),o&&o.hide(g),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),r.axes.forEach(function(s){s.hideCrosshair()}),this.hoverX=r.hoverPoints=r.hoverPoint=null)},x.prototype.runPointActions=function(c,g,r){var a=this.chart,t=a.tooltip&&a.tooltip.options.enabled?a.tooltip:void 0,i=!!t&&t.shared,o=g||a.hoverPoint,e=o&&o.series||a.hoverSeries;g=this.getHoverData(o,e,a.series,(!c||c.type!=="touchmove")&&(!!g||e&&e.directTouch&&this.isDirectTouch),i,c),o=g.hoverPoint,e=g.hoverSeries;var s=g.hoverPoints;g=e&&e.tooltipOptions.followPointer&&!e.tooltipOptions.split;var n=i&&e&&!e.noSharedTooltip;if(o&&(r||o!==a.hoverPoint||t&&t.isHidden)){if((a.hoverPoints||[]).forEach(function(l){s.indexOf(l)===-1&&l.setState()}),a.hoverSeries!==e&&e.onMouseOver(),this.applyInactiveState(s),(s||[]).forEach(function(l){l.setState("hover")}),a.hoverPoint&&a.hoverPoint.firePointEvent("mouseOut"),!o.series)return;a.hoverPoints=s,a.hoverPoint=o,o.firePointEvent("mouseOver",void 0,function(){t&&o&&t.refresh(n?s:o,c)})}else g&&t&&!t.isHidden&&(r=t.getAnchor([{}],c),a.isInsidePlot(r[0],r[1],{visiblePlotOnly:!0})&&t.updatePosition({plotX:r[0],plotY:r[1]}));this.unDocMouseMove||(this.unDocMouseMove=z(a.container.ownerDocument,"mousemove",function(l){var b=Z[x.hoverChartIndex];b&&b.pointer.onDocumentMouseMove(l)}),this.eventsToUnbind.push(this.unDocMouseMove)),a.axes.forEach(function(l){var b,k=S((l.crosshair||{}).snap,!0);k&&((b=a.hoverPoint)&&b.series[l.coll]===l||(b=y(s,function(D){return D.series&&D.series[l.coll]===l}))),b||!k?l.drawCrosshair(c,b):l.hideCrosshair()})},x.prototype.scaleGroups=function(c,g){var r=this.chart;r.series.forEach(function(a){var t=c||a.getPlotBox();a.group&&(a.xAxis&&a.xAxis.zoomEnabled||r.mapView)&&(a.group.attr(t),a.markerGroup&&(a.markerGroup.attr(t),a.markerGroup.clip(g?r.clipRect:null)),a.dataLabelsGroup&&a.dataLabelsGroup.attr(t))}),r.clipRect.attr(g||r.clipBox)},x.prototype.setDOMEvents=function(){var c=this,g=this.chart.container,r=g.ownerDocument;g.onmousedown=this.onContainerMouseDown.bind(this),g.onmousemove=this.onContainerMouseMove.bind(this),g.onclick=this.onContainerClick.bind(this),this.eventsToUnbind.push(z(g,"mouseenter",this.onContainerMouseEnter.bind(this))),this.eventsToUnbind.push(z(g,"mouseleave",this.onContainerMouseLeave.bind(this))),x.unbindDocumentMouseUp||(x.unbindDocumentMouseUp=z(r,"mouseup",this.onDocumentMouseUp.bind(this)));for(var a=this.chart.renderTo.parentElement;a&&a.tagName!=="BODY";)this.eventsToUnbind.push(z(a,"scroll",function(){delete c.chartPosition})),a=a.parentElement;B.hasTouch&&(this.eventsToUnbind.push(z(g,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1})),this.eventsToUnbind.push(z(g,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),x.unbindDocumentTouchEnd||(x.unbindDocumentTouchEnd=z(r,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})))},x.prototype.setHoverChartIndex=function(){var c=this.chart,g=B.charts[S(x.hoverChartIndex,-1)];g&&g!==c&&g.pointer.onContainerMouseLeave({relatedTarget:c.container}),g&&g.mouseIsDown||(x.hoverChartIndex=c.index)},x.prototype.touch=function(c,g){var r=this.chart;if(this.setHoverChartIndex(),c.touches.length===1)if(c=this.normalize(c),r.isInsidePlot(c.chartX-r.plotLeft,c.chartY-r.plotTop,{visiblePlotOnly:!0})&&!r.openMenu){if(g&&this.runPointActions(c),c.type==="touchmove")var a=!!(g=this.pinchDown)[0]&&4<=Math.sqrt(Math.pow(g[0].chartX-c.chartX,2)+Math.pow(g[0].chartY-c.chartY,2));S(a,!0)&&this.pinch(c)}else g&&this.reset();else c.touches.length===2&&this.pinch(c)},x.prototype.touchSelect=function(c){return!(!this.chart.options.chart.zooming.singleTouch||!c.touches||c.touches.length!==1)},x.prototype.zoomOption=function(c){var g=this.chart,r=g.options.chart;g=g.inverted;var a=r.zooming.type||"";/touch/.test(c.type)&&(a=S(r.zooming.pinchType,a)),this.zoomX=c=/x/.test(a),this.zoomY=r=/y/.test(a),this.zoomHor=c&&!g||r&&g,this.zoomVert=r&&!g||c&&g,this.hasZoom=c||r},x}(),G}),_(et,"Core/MSPointer.js",[et["Core/Globals.js"],et["Core/Pointer.js"],et["Core/Utilities.js"]],function(G,B,X){function U(){var v=[];return v.item=function(S){return this[S]},y(m,function(S){v.push({pageX:S.pageX,pageY:S.pageY,target:S.target})}),v}function $(v,S,w,x){var c=V[B.hoverChartIndex||NaN];v.pointerType!=="touch"&&v.pointerType!==v.MSPOINTER_TYPE_TOUCH||!c||(c=c.pointer,x(v),c[S]({type:w,target:v.currentTarget,preventDefault:I,touches:U()}))}var Z=this&&this.__extends||function(){var v=function(S,w){return v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,c){x.__proto__=c}||function(x,c){for(var g in c)c.hasOwnProperty(g)&&(x[g]=c[g])},v(S,w)};return function(S,w){function x(){this.constructor=S}v(S,w),S.prototype=w===null?Object.create(w):(x.prototype=w.prototype,new x)}}(),V=G.charts,z=G.doc,I=G.noop,E=G.win,M=X.addEvent,P=X.css,y=X.objectEach,h=X.pick,f=X.removeEvent,m={},u=!!E.PointerEvent;return function(v){function S(){return v!==null&&v.apply(this,arguments)||this}return Z(S,v),S.isRequired=function(){return!(G.hasTouch||!E.PointerEvent&&!E.MSPointerEvent)},S.prototype.batchMSEvents=function(w){w(this.chart.container,u?"pointerdown":"MSPointerDown",this.onContainerPointerDown),w(this.chart.container,u?"pointermove":"MSPointerMove",this.onContainerPointerMove),w(z,u?"pointerup":"MSPointerUp",this.onDocumentPointerUp)},S.prototype.destroy=function(){this.batchMSEvents(f),v.prototype.destroy.call(this)},S.prototype.init=function(w,x){v.prototype.init.call(this,w,x),this.hasZoom&&P(w.container,{"-ms-touch-action":"none","touch-action":"none"})},S.prototype.onContainerPointerDown=function(w){$(w,"onContainerTouchStart","touchstart",function(x){m[x.pointerId]={pageX:x.pageX,pageY:x.pageY,target:x.currentTarget}})},S.prototype.onContainerPointerMove=function(w){$(w,"onContainerTouchMove","touchmove",function(x){m[x.pointerId]={pageX:x.pageX,pageY:x.pageY},m[x.pointerId].target||(m[x.pointerId].target=x.currentTarget)})},S.prototype.onDocumentPointerUp=function(w){$(w,"onDocumentTouchEnd","touchend",function(x){delete m[x.pointerId]})},S.prototype.setDOMEvents=function(){var w=this.chart.tooltip;v.prototype.setDOMEvents.call(this),(this.hasZoom||h(w&&w.options.followTouchMove,!0))&&this.batchMSEvents(M)},S}(B)}),_(et,"Core/Legend/Legend.js",[et["Core/Animation/AnimationUtilities.js"],et["Core/FormatUtilities.js"],et["Core/Globals.js"],et["Core/Series/Point.js"],et["Core/Renderer/RendererUtilities.js"],et["Core/Utilities.js"]],function(G,B,X,U,$,Z){var V=G.animObject,z=G.setAnimation,I=B.format,E=X.marginNames,M=$.distribute,P=Z.addEvent,y=Z.createElement,h=Z.css,f=Z.defined,m=Z.discardElement,u=Z.find,v=Z.fireEvent,S=Z.isNumber,w=Z.merge,x=Z.pick,c=Z.relativeLength,g=Z.stableSort,r=Z.syncTimeout;return G=function(){function a(t,i){this.allItems=[],this.contentGroup=this.box=void 0,this.display=!1,this.group=void 0,this.offsetWidth=this.maxLegendWidth=this.maxItemWidth=this.legendWidth=this.legendHeight=this.lastLineHeight=this.lastItemY=this.itemY=this.itemX=this.itemMarginTop=this.itemMarginBottom=this.itemHeight=this.initialItemY=0,this.options=void 0,this.padding=0,this.pages=[],this.proximate=!1,this.scrollGroup=void 0,this.widthOption=this.totalItemWidth=this.titleHeight=this.symbolWidth=this.symbolHeight=0,this.chart=t,this.init(t,i)}return a.prototype.init=function(t,i){this.chart=t,this.setOptions(i),i.enabled&&(this.render(),P(this.chart,"endResize",function(){this.legend.positionCheckboxes()}),this.proximate?this.unchartrender=P(this.chart,"render",function(){this.legend.proximatePositions(),this.legend.positionItems()}):this.unchartrender&&this.unchartrender())},a.prototype.setOptions=function(t){var i=x(t.padding,8);this.options=t,this.chart.styledMode||(this.itemStyle=t.itemStyle,this.itemHiddenStyle=w(this.itemStyle,t.itemHiddenStyle)),this.itemMarginTop=t.itemMarginTop||0,this.itemMarginBottom=t.itemMarginBottom||0,this.padding=i,this.initialItemY=i-5,this.symbolWidth=x(t.symbolWidth,16),this.pages=[],this.proximate=t.layout==="proximate"&&!this.chart.inverted,this.baseline=void 0},a.prototype.update=function(t,i){var o=this.chart;this.setOptions(w(!0,this.options,t)),this.destroy(),o.isDirtyLegend=o.isDirtyBox=!0,x(i,!0)&&o.redraw(),v(this,"afterUpdate")},a.prototype.colorizeItem=function(t,i){var o=t.legendItem||{},e=o.group,s=o.label,n=o.line;if(o=o.symbol,e&&e[i?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){var l=this.options;e=this.itemHiddenStyle.color,l=i?l.itemStyle.color:e;var b=i&&t.color||e,k=t.options&&t.options.marker,D={fill:b};s&&s.css({fill:l,color:l}),n&&n.attr({stroke:b}),o&&(k&&o.isMarker&&(D=t.pointAttribs(),i||(D.stroke=D.fill=e)),o.attr(D))}v(this,"afterColorizeItem",{item:t,visible:i})},a.prototype.positionItems=function(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()},a.prototype.positionItem=function(t){var i=this,o=t.legendItem||{},e=o.group,s=o.x;s=s===void 0?0:s,o=(o=o.y)===void 0?0:o;var n=this.options,l=n.symbolPadding,b=!n.rtl;n=t.checkbox,e&&e.element&&(l={translateX:b?s:this.legendWidth-s-2*l-4,translateY:o},e[f(e.translateY)?"animate":"attr"](l,void 0,function(){v(i,"afterPositionItem",{item:t})})),n&&(n.x=s,n.y=o)},a.prototype.destroyItem=function(t){for(var i=t.checkbox,o=t.legendItem||{},e=0,s=["group","label","line","symbol"];e<s.length;e++){var n=s[e];o[n]&&(o[n]=o[n].destroy())}i&&m(i),t.legendItem=void 0},a.prototype.destroy=function(){for(var t=0,i=this.getAllItems();t<i.length;t++)this.destroyItem(i[t]);for(t=0,i="clipRect up down pager nav box title group".split(" ");t<i.length;t++){var o=i[t];this[o]&&(this[o]=this[o].destroy())}this.display=null},a.prototype.positionCheckboxes=function(){var t=this.group&&this.group.alignAttr,i=this.clipHeight||this.legendHeight,o=this.titleHeight;if(t){var e=t.translateY;this.allItems.forEach(function(s){var n=s.checkbox;if(n){var l=e+o+n.y+(this.scrollOffset||0)+3;h(n,{left:t.translateX+s.checkboxOffset+n.x-20+"px",top:l+"px",display:this.proximate||l>e-6&&l<e+i-6?"":"none"})}},this)}},a.prototype.renderTitle=function(){var t=this.options,i=this.padding,o=t.title,e=0;o.text&&(this.title||(this.title=this.chart.renderer.label(o.text,i-3,i-4,void 0,void 0,void 0,t.useHTML,void 0,"legend-title").attr({zIndex:1}),this.chart.styledMode||this.title.css(o.style),this.title.add(this.group)),o.width||this.title.css({width:this.maxLegendWidth+"px"}),e=(t=this.title.getBBox()).height,this.offsetWidth=t.width,this.contentGroup.attr({translateY:e})),this.titleHeight=e},a.prototype.setText=function(t){var i=this.options;t.legendItem.label.attr({text:i.labelFormat?I(i.labelFormat,t,this.chart):i.labelFormatter.call(t)})},a.prototype.renderItem=function(t){var i=t.legendItem=t.legendItem||{},o=this.chart,e=o.renderer,s=this.options,n=this.symbolWidth,l=s.symbolPadding||0,b=this.itemStyle,k=this.itemHiddenStyle,D=s.layout==="horizontal"?x(s.itemDistance,20):0,d=!s.rtl,C=!t.series,A=!C&&t.series.drawLegendSymbol?t.series:t,N=A.options,R=this.createCheckboxForItem&&N&&N.showCheckbox,L=s.useHTML,O=t.options.className,j=i.label;N=n+l+D+(R?20:0),j||(i.group=e.g("legend-item").addClass("highcharts-"+A.type+"-series highcharts-color-"+t.colorIndex+(O?" "+O:"")+(C?" highcharts-series-"+t.index:"")).attr({zIndex:1}).add(this.scrollGroup),i.label=j=e.text("",d?n+l:-l,this.baseline||0,L),o.styledMode||j.css(w(t.visible?b:k)),j.attr({align:d?"left":"right",zIndex:2}).add(i.group),this.baseline||(this.fontMetrics=e.fontMetrics(o.styledMode?12:b.fontSize,j),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,j.attr("y",this.baseline),this.symbolHeight=s.symbolHeight||this.fontMetrics.f,s.squareSymbol&&(this.symbolWidth=x(s.symbolWidth,Math.max(this.symbolHeight,16)),N=this.symbolWidth+l+D+(R?20:0),d&&j.attr("x",this.symbolWidth+l))),A.drawLegendSymbol(this,t),this.setItemEvents&&this.setItemEvents(t,j,L)),R&&!t.checkbox&&this.createCheckboxForItem&&this.createCheckboxForItem(t),this.colorizeItem(t,t.visible),!o.styledMode&&b.width||j.css({width:(s.itemWidth||this.widthOption||o.spacingBox.width)-N+"px"}),this.setText(t),o=j.getBBox(),e=this.fontMetrics&&this.fontMetrics.h||0,t.itemWidth=t.checkboxOffset=s.itemWidth||i.labelWidth||o.width+N,this.maxItemWidth=Math.max(this.maxItemWidth,t.itemWidth),this.totalItemWidth+=t.itemWidth,this.itemHeight=t.itemHeight=Math.round(i.labelHeight||(o.height>1.5*e?o.height:e))},a.prototype.layoutItem=function(t){var i=this.options,o=this.padding,e=i.layout==="horizontal",s=t.itemHeight,n=this.itemMarginBottom,l=this.itemMarginTop,b=e?x(i.itemDistance,20):0,k=this.maxLegendWidth;i=i.alignColumns&&this.totalItemWidth>k?this.maxItemWidth:t.itemWidth;var D=t.legendItem||{};e&&this.itemX-o+i>k&&(this.itemX=o,this.lastLineHeight&&(this.itemY+=l+this.lastLineHeight+n),this.lastLineHeight=0),this.lastItemY=l+this.itemY+n,this.lastLineHeight=Math.max(s,this.lastLineHeight),D.x=this.itemX,D.y=this.itemY,e?this.itemX+=i:(this.itemY+=l+s+n,this.lastLineHeight=s),this.offsetWidth=this.widthOption||Math.max((e?this.itemX-o-(t.checkbox?0:b):i)+o,this.offsetWidth)},a.prototype.getAllItems=function(){var t=[];return this.chart.series.forEach(function(i){var o=i&&i.options;i&&x(o.showInLegend,!f(o.linkedTo)&&void 0,!0)&&(t=t.concat((i.legendItem||{}).labels||(o.legendType==="point"?i.data:i)))}),v(this,"afterGetAllItems",{allItems:t}),t},a.prototype.getAlignment=function(){var t=this.options;return this.proximate?t.align.charAt(0)+"tv":t.floating?"":t.align.charAt(0)+t.verticalAlign.charAt(0)+t.layout.charAt(0)},a.prototype.adjustMargins=function(t,i){var o=this.chart,e=this.options,s=this.getAlignment();s&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(n,l){n.test(s)&&!f(t[l])&&(o[E[l]]=Math.max(o[E[l]],o.legend[(l+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][l]*e[l%2?"x":"y"]+x(e.margin,12)+i[l]+(o.titleOffset[l]||0)))})},a.prototype.proximatePositions=function(){var t=this.chart,i=[],o=this.options.align==="left";this.allItems.forEach(function(b){var k,D=o;if(b.yAxis){b.xAxis.options.reversed&&(D=!D),b.points&&(k=u(D?b.points:b.points.slice(0).reverse(),function(C){return S(C.plotY)})),D=this.itemMarginTop+b.legendItem.label.getBBox().height+this.itemMarginBottom;var d=b.yAxis.top-t.plotTop;b.visible?(k=k?k.plotY:b.yAxis.height,k+=d-.3*D):k=d+b.yAxis.height,i.push({target:k,size:D,item:b})}},this);for(var e,s=0,n=M(i,t.plotHeight);s<n.length;s++){var l=n[s];e=l.item.legendItem||{},S(l.pos)&&(e.y=t.plotTop-t.spacing[0]+l.pos)}},a.prototype.render=function(){var t=this.chart,i=t.renderer,o=this.options,e=this.padding,s=this.getAllItems(),n=this.group,l=this.box;this.itemX=e,this.itemY=this.initialItemY,this.lastItemY=this.offsetWidth=0,this.widthOption=c(o.width,t.spacingBox.width-e);var b=t.spacingBox.width-2*e-o.x;-1<["rm","lm"].indexOf(this.getAlignment().substring(0,2))&&(b/=2),this.maxLegendWidth=this.widthOption||b,n||(this.group=n=i.g("legend").addClass(o.className||"").attr({zIndex:7}).add(),this.contentGroup=i.g().attr({zIndex:1}).add(n),this.scrollGroup=i.g().add(this.contentGroup)),this.renderTitle(),g(s,function(D,d){return(D.options&&D.options.legendIndex||0)-(d.options&&d.options.legendIndex||0)}),o.reversed&&s.reverse(),this.allItems=s,this.display=b=!!s.length,this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0,s.forEach(this.renderItem,this),s.forEach(this.layoutItem,this),s=(this.widthOption||this.offsetWidth)+e;var k=this.lastItemY+this.lastLineHeight+this.titleHeight;k=this.handleOverflow(k),k+=e,l||(this.box=l=i.rect().addClass("highcharts-legend-box").attr({r:o.borderRadius}).add(n)),t.styledMode||l.attr({stroke:o.borderColor,"stroke-width":o.borderWidth||0,fill:o.backgroundColor||"none"}).shadow(o.shadow),0<s&&0<k&&l[l.placed?"animate":"attr"](l.crisp.call({},{x:0,y:0,width:s,height:k},l.strokeWidth())),n[b?"show":"hide"](),t.styledMode&&n.getStyle("display")==="none"&&(s=k=0),this.legendWidth=s,this.legendHeight=k,b&&this.align(),this.proximate||this.positionItems(),v(this,"afterRender")},a.prototype.align=function(t){t===void 0&&(t=this.chart.spacingBox);var i=this.chart,o=this.options,e=t.y;/(lth|ct|rth)/.test(this.getAlignment())&&0<i.titleOffset[0]?e+=i.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&0<i.titleOffset[2]&&(e-=i.titleOffset[2]),e!==t.y&&(t=w(t,{y:e})),i.hasRendered||(this.group.placed=!1),this.group.align(w(o,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":o.verticalAlign}),!0,t)},a.prototype.handleOverflow=function(t){var i,o,e,s=this,n=this.chart,l=n.renderer,b=this.options,k=b.y,D=b.verticalAlign==="top",d=this.padding,C=b.maxHeight,A=b.navigation,N=x(A.animation,!0),R=A.arrowSize||12,L=this.pages,O=this.allItems,j=function(q){typeof q=="number"?W.attr({height:q}):W&&(s.clipRect=W.destroy(),s.contentGroup.clip()),s.contentGroup.div&&(s.contentGroup.div.style.clip=q?"rect("+d+"px,9999px,"+(d+q)+"px,0)":"auto")},Y=function(q){return s[q]=l.circle(0,0,1.3*R).translate(R/2,R/2).add(H),n.styledMode||s[q].attr("fill","rgba(0,0,0,0.0001)"),s[q]};k=n.spacingBox.height+(D?-k:k)-d;var H=this.nav,W=this.clipRect;return b.layout!=="horizontal"||b.verticalAlign==="middle"||b.floating||(k/=2),C&&(k=Math.min(k,C)),L.length=0,t&&0<k&&t>k&&A.enabled!==!1?(this.clipHeight=i=Math.max(k-20-this.titleHeight-d,0),this.currentPage=x(this.currentPage,1),this.fullHeight=t,O.forEach(function(q,Q){q=(e=q.legendItem||{}).y||0;var J=Math.round(e.label.getBBox().height),nt=L.length;(!nt||q-L[nt-1]>i&&(o||q)!==L[nt-1])&&(L.push(o||q),nt++),e.pageIx=nt-1,o&&((O[Q-1].legendItem||{}).pageIx=nt-1),Q===O.length-1&&q+J-L[nt-1]>i&&J<=i&&(L.push(q),e.pageIx=nt),q!==o&&(o=q)}),W||(W=s.clipRect=l.clipRect(0,d,9999,0),s.contentGroup.clip(W)),j(i),H||(this.nav=H=l.g().attr({zIndex:1}).add(this.group),this.up=l.symbol("triangle",0,0,R,R).add(H),Y("upTracker").on("click",function(){s.scroll(-1,N)}),this.pager=l.text("",15,10).addClass("highcharts-legend-navigation"),!n.styledMode&&A.style&&this.pager.css(A.style),this.pager.add(H),this.down=l.symbol("triangle-down",0,0,R,R).add(H),Y("downTracker").on("click",function(){s.scroll(1,N)})),s.scroll(0),t=k):H&&(j(),this.nav=H.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),t},a.prototype.scroll=function(t,i){var o=this,e=this.chart,s=this.pages,n=s.length,l=this.clipHeight,b=this.options.navigation,k=this.pager,D=this.padding,d=this.currentPage+t;d>n&&(d=n),0<d&&(i!==void 0&&z(i,e),this.nav.attr({translateX:D,translateY:l+this.padding+7+this.titleHeight,visibility:"inherit"}),[this.up,this.upTracker].forEach(function(C){C.attr({class:d===1?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),k.attr({text:d+"/"+n}),[this.down,this.downTracker].forEach(function(C){C.attr({x:18+this.pager.getBBox().width,class:d===n?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},this),e.styledMode||(this.up.attr({fill:d===1?b.inactiveColor:b.activeColor}),this.upTracker.css({cursor:d===1?"default":"pointer"}),this.down.attr({fill:d===n?b.inactiveColor:b.activeColor}),this.downTracker.css({cursor:d===n?"default":"pointer"})),this.scrollOffset=-s[d-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=d,this.positionCheckboxes(),t=V(x(i,e.renderer.globalAnimation,!0)),r(function(){v(o,"afterScroll",{currentPage:d})},t.duration))},a.prototype.setItemEvents=function(t,i,o){var e=this,s=t.legendItem||{},n=e.chart.renderer.boxWrapper,l=t instanceof U,b="highcharts-legend-"+(l?"point":"series")+"-active",k=e.chart.styledMode,D=function(C){e.allItems.forEach(function(A){t!==A&&[A].concat(A.linkedSeries||[]).forEach(function(N){N.setState(C,!l)})})},d=0;for(o=o?[i,s.symbol]:[s.group];d<o.length;d++)(s=o[d])&&s.on("mouseover",function(){t.visible&&D("inactive"),t.setState("hover"),t.visible&&n.addClass(b),k||i.css(e.options.itemHoverStyle)}).on("mouseout",function(){e.chart.styledMode||i.css(w(t.visible?e.itemStyle:e.itemHiddenStyle)),D(""),n.removeClass(b),t.setState()}).on("click",function(C){var A=function(){t.setVisible&&t.setVisible(),D(t.visible?"inactive":"")};n.removeClass(b),C={browserEvent:C},t.firePointEvent?t.firePointEvent("legendItemClick",C,A):v(t,"legendItemClick",C,A)})},a.prototype.createCheckboxForItem=function(t){t.checkbox=y("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:t.selected,defaultChecked:t.selected},this.options.itemCheckboxStyle,this.chart.container),P(t.checkbox,"click",function(i){v(t.series||t,"checkboxClick",{checked:i.target.checked,item:t},function(){t.select()})})},a}(),G}),_(et,"Core/Series/SeriesRegistry.js",[et["Core/Globals.js"],et["Core/Defaults.js"],et["Core/Series/Point.js"],et["Core/Utilities.js"]],function(G,B,X,U){var $,Z=B.defaultOptions,V=U.extendClass,z=U.merge;return function(I){function E(M,P){var y=Z.plotOptions||{},h=P.defaultOptions,f=P.prototype;f.type=M,f.pointClass||(f.pointClass=X),h&&(y[M]=h),I.seriesTypes[M]=P}I.seriesTypes=G.seriesTypes,I.registerSeriesType=E,I.seriesType=function(M,P,y,h,f){var m=Z.plotOptions||{};return P=P||"",m[M]=z(m[P],y),E(M,V(I.seriesTypes[P]||function(){},h)),I.seriesTypes[M].prototype.type=M,f&&(I.seriesTypes[M].prototype.pointClass=V(X,f)),I.seriesTypes[M]}}($||($={})),$}),_(et,"Core/Chart/Chart.js",[et["Core/Animation/AnimationUtilities.js"],et["Core/Axis/Axis.js"],et["Core/Defaults.js"],et["Core/FormatUtilities.js"],et["Core/Foundation.js"],et["Core/Globals.js"],et["Core/Legend/Legend.js"],et["Core/MSPointer.js"],et["Core/Pointer.js"],et["Core/Renderer/RendererRegistry.js"],et["Core/Series/SeriesRegistry.js"],et["Core/Renderer/SVG/SVGRenderer.js"],et["Core/Time.js"],et["Core/Utilities.js"],et["Core/Renderer/HTML/AST.js"]],function(G,B,X,U,$,Z,V,z,I,E,M,P,y,h,f){var m=G.animate,u=G.animObject,v=G.setAnimation,S=X.defaultOptions,w=X.defaultTime,x=U.numberFormat,c=$.registerEventOptions,g=Z.charts,r=Z.doc,a=Z.marginNames,t=Z.svg,i=Z.win,o=M.seriesTypes,e=h.addEvent,s=h.attr,n=h.cleanRecursively,l=h.createElement,b=h.css,k=h.defined,D=h.discardElement,d=h.erase,C=h.error,A=h.extend,N=h.find,R=h.fireEvent,L=h.getStyle,O=h.isArray,j=h.isNumber,Y=h.isObject,H=h.isString,W=h.merge,q=h.objectEach,Q=h.pick,J=h.pInt,nt=h.relativeLength,lt=h.removeEvent,gt=h.splat,mt=h.syncTimeout,bt=h.uniqueKey;return G=function(){function yt(dt,ot,at){this.series=this.renderTo=this.renderer=this.pointer=this.pointCount=this.plotWidth=this.plotTop=this.plotLeft=this.plotHeight=this.plotBox=this.options=this.numberFormatter=this.margin=this.legend=this.labelCollectors=this.isResizing=this.index=this.eventOptions=this.container=this.colorCounter=this.clipBox=this.chartWidth=this.chartHeight=this.bounds=this.axisOffset=this.axes=void 0,this.sharedClips={},this.yAxis=this.xAxis=this.userOptions=this.titleOffset=this.time=this.symbolCounter=this.spacingBox=this.spacing=void 0,this.getArgs(dt,ot,at)}return yt.chart=function(dt,ot,at){return new yt(dt,ot,at)},yt.prototype.getArgs=function(dt,ot,at){H(dt)||dt.nodeName?(this.renderTo=dt,this.init(ot,at)):this.init(dt,ot)},yt.prototype.init=function(dt,ot){var at=dt.plotOptions||{};R(this,"init",{args:arguments},function(){var ut=W(S,dt),vt=ut.chart;q(ut.plotOptions,function(xt,St){Y(xt)&&(xt.tooltip=at[St]&&W(at[St].tooltip)||void 0)}),ut.tooltip.userOptions=dt.chart&&dt.chart.forExport&&dt.tooltip.userOptions||dt.tooltip,this.userOptions=dt,this.margin=[],this.spacing=[],this.bounds={h:{},v:{}},this.labelCollectors=[],this.callback=ot,this.isResizing=0;var Ct=vt.zooming=vt.zooming||{};dt.chart&&!dt.chart.zooming&&(Ct.resetButton=vt.resetZoomButton),Ct.key=Q(Ct.key,vt.zoomKey),Ct.pinchType=Q(Ct.pinchType,vt.pinchType),Ct.singleTouch=Q(Ct.singleTouch,vt.zoomBySingleTouch),Ct.type=Q(Ct.type,vt.zoomType),this.options=ut,this.axes=[],this.series=[],this.time=dt.time&&Object.keys(dt.time).length?new y(dt.time):Z.time,this.numberFormatter=vt.numberFormatter||x,this.styledMode=vt.styledMode,this.hasCartesianSeries=vt.showAxes,this.index=g.length,g.push(this),Z.chartCount++,c(this,vt),this.xAxis=[],this.yAxis=[],this.pointCount=this.colorCounter=this.symbolCounter=0,R(this,"afterInit"),this.firstRender()})},yt.prototype.initSeries=function(dt){var ot=this.options.chart;ot=dt.type||ot.type||ot.defaultSeriesType;var at=o[ot];return at||C(17,!0,this,{missingModuleFor:ot}),typeof(ot=new at).init=="function"&&ot.init(this,dt),ot},yt.prototype.setSeriesData=function(){this.getSeriesOrderByLinks().forEach(function(dt){dt.points||dt.data||!dt.enabledDataSorting||dt.setData(dt.options.data,!1)})},yt.prototype.getSeriesOrderByLinks=function(){return this.series.concat().sort(function(dt,ot){return dt.linkedSeries.length||ot.linkedSeries.length?ot.linkedSeries.length-dt.linkedSeries.length:0})},yt.prototype.orderSeries=function(dt){var ot=this.series;dt=dt||0;for(var at=ot.length;dt<at;++dt)ot[dt]&&(ot[dt].index=dt,ot[dt].name=ot[dt].getName())},yt.prototype.isInsidePlot=function(dt,ot,at){at===void 0&&(at={});var ut=this.inverted,vt=this.plotBox,Ct=this.plotLeft,xt=this.plotTop,St=this.scrollablePlotBox,Mt=0,wt=0;at.visiblePlotOnly&&this.scrollingContainer&&(Mt=(wt=this.scrollingContainer).scrollLeft,wt=wt.scrollTop);var Tt=at.series;if(vt=at.visiblePlotOnly&&St||vt,dt={x:St=at.inverted?ot:dt,y:ot=at.inverted?dt:ot,isInsidePlot:!0,options:at},!at.ignoreX){var Lt=Tt&&(ut&&!this.polar?Tt.yAxis:Tt.xAxis)||{pos:Ct,len:1/0};(St=at.paneCoordinates?Lt.pos+St:Ct+St)>=Math.max(Mt+Ct,Lt.pos)&&St<=Math.min(Mt+Ct+vt.width,Lt.pos+Lt.len)||(dt.isInsidePlot=!1)}return!at.ignoreY&&dt.isInsidePlot&&(ut=at.axis&&!at.axis.isXAxis&&at.axis||Tt&&(ut?Tt.xAxis:Tt.yAxis)||{pos:xt,len:1/0},(at=at.paneCoordinates?ut.pos+ot:xt+ot)>=Math.max(wt+xt,ut.pos)&&at<=Math.min(wt+xt+vt.height,ut.pos+ut.len)||(dt.isInsidePlot=!1)),R(this,"afterIsInsidePlot",dt),dt.isInsidePlot},yt.prototype.redraw=function(dt){R(this,"beforeRedraw");var ot=this.hasCartesianSeries?this.axes:this.colorAxis||[],at=this.series,ut=this.pointer,vt=this.legend,Ct=this.userOptions.legend,xt=this.renderer,St=xt.isHidden(),Mt=[],wt=this.isDirtyBox,Tt=this.isDirtyLegend;for(this.setResponsive&&this.setResponsive(!1),v(!!this.hasRendered&&dt,this),St&&this.temporaryDisplay(),this.layOutTitles(),dt=at.length;dt--;){var Lt=at[dt];if(Lt.options.stacking||Lt.options.centerInCategory){var Pt=!0;if(Lt.isDirty){var Dt=!0;break}}}if(Dt)for(dt=at.length;dt--;)(Lt=at[dt]).options.stacking&&(Lt.isDirty=!0);at.forEach(function(jt){jt.isDirty&&(jt.options.legendType==="point"?(typeof jt.updateTotals=="function"&&jt.updateTotals(),Tt=!0):Ct&&(Ct.labelFormatter||Ct.labelFormat)&&(Tt=!0)),jt.isDirtyData&&R(jt,"updatedData")}),Tt&&vt&&vt.options.enabled&&(vt.render(),this.isDirtyLegend=!1),Pt&&this.getStacks(),ot.forEach(function(jt){jt.updateNames(),jt.setScale()}),this.getMargins(),ot.forEach(function(jt){jt.isDirty&&(wt=!0)}),ot.forEach(function(jt){var Ot=jt.min+","+jt.max;jt.extKey!==Ot&&(jt.extKey=Ot,Mt.push(function(){R(jt,"afterSetExtremes",A(jt.eventArgs,jt.getExtremes())),delete jt.eventArgs})),(wt||Pt)&&jt.redraw()}),wt&&this.drawChartBox(),R(this,"predraw"),at.forEach(function(jt){(wt||jt.isDirty)&&jt.visible&&jt.redraw(),jt.isDirtyData=!1}),ut&&ut.reset(!0),xt.draw(),R(this,"redraw"),R(this,"render"),St&&this.temporaryDisplay(!0),Mt.forEach(function(jt){jt.call()})},yt.prototype.get=function(dt){function ot(Ct){return Ct.id===dt||Ct.options&&Ct.options.id===dt}for(var at=this.series,ut=N(this.axes,ot)||N(this.series,ot),vt=0;!ut&&vt<at.length;vt++)ut=N(at[vt].points||[],ot);return ut},yt.prototype.getAxes=function(){var dt=this,ot=this.options,at=ot.xAxis=gt(ot.xAxis||{});ot=ot.yAxis=gt(ot.yAxis||{}),R(this,"getAxes"),at.forEach(function(ut,vt){ut.index=vt,ut.isX=!0}),ot.forEach(function(ut,vt){ut.index=vt}),at.concat(ot).forEach(function(ut){new B(dt,ut)}),R(this,"afterGetAxes")},yt.prototype.getSelectedPoints=function(){return this.series.reduce(function(dt,ot){return ot.getPointsCollection().forEach(function(at){Q(at.selectedStaging,at.selected)&&dt.push(at)}),dt},[])},yt.prototype.getSelectedSeries=function(){return this.series.filter(function(dt){return dt.selected})},yt.prototype.setTitle=function(dt,ot,at){this.applyDescription("title",dt),this.applyDescription("subtitle",ot),this.applyDescription("caption",void 0),this.layOutTitles(at)},yt.prototype.applyDescription=function(dt,ot){var at=this,ut=dt==="title"?{color:"#333333",fontSize:this.options.isStock?"16px":"18px"}:{color:"#666666"};ut=this.options[dt]=W(!this.styledMode&&{style:ut},this.options[dt],ot);var vt=this[dt];vt&&ot&&(this[dt]=vt=vt.destroy()),ut&&!vt&&((vt=this.renderer.text(ut.text,0,0,ut.useHTML).attr({align:ut.align,class:"highcharts-"+dt,zIndex:ut.zIndex||4}).add()).update=function(Ct){at[{title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"}[dt]](Ct)},this.styledMode||vt.css(ut.style),this[dt]=vt)},yt.prototype.layOutTitles=function(dt){var ot=[0,0,0],at=this.renderer,ut=this.spacingBox;["title","subtitle","caption"].forEach(function(Ct){var xt,St=this[Ct],Mt=this.options[Ct],wt=Mt.verticalAlign||"top";if(Ct=Ct==="title"?wt==="top"?-3:0:wt==="top"?ot[0]+2:0,St){this.styledMode||(xt=Mt.style&&Mt.style.fontSize),xt=at.fontMetrics(xt,St).b,St.css({width:(Mt.width||ut.width+(Mt.widthAdjust||0))+"px"});var Tt=Math.round(St.getBBox(Mt.useHTML).height);St.align(A({y:wt==="bottom"?xt:Ct+xt,height:Tt},Mt),!1,"spacingBox"),Mt.floating||(wt==="top"?ot[0]=Math.ceil(ot[0]+Tt):wt==="bottom"&&(ot[2]=Math.ceil(ot[2]+Tt)))}},this),ot[0]&&(this.options.title.verticalAlign||"top")==="top"&&(ot[0]+=this.options.title.margin),ot[2]&&this.options.caption.verticalAlign==="bottom"&&(ot[2]+=this.options.caption.margin);var vt=!this.titleOffset||this.titleOffset.join(",")!==ot.join(",");this.titleOffset=ot,R(this,"afterLayOutTitles"),!this.isDirtyBox&&vt&&(this.isDirtyBox=this.isDirtyLegend=vt,this.hasRendered&&Q(dt,!0)&&this.isDirtyBox&&this.redraw())},yt.prototype.getChartSize=function(){var dt=this.options.chart,ot=dt.width;dt=dt.height;var at=this.renderTo;k(ot)||(this.containerWidth=L(at,"width")),k(dt)||(this.containerHeight=L(at,"height")),this.chartWidth=Math.max(0,ot||this.containerWidth||600),this.chartHeight=Math.max(0,nt(dt,this.chartWidth)||(1<this.containerHeight?this.containerHeight:400))},yt.prototype.temporaryDisplay=function(dt){var ot=this.renderTo;if(dt)for(;ot&&ot.style;)ot.hcOrigStyle&&(b(ot,ot.hcOrigStyle),delete ot.hcOrigStyle),ot.hcOrigDetached&&(r.body.removeChild(ot),ot.hcOrigDetached=!1),ot=ot.parentNode;else for(;ot&&ot.style&&(r.body.contains(ot)||ot.parentNode||(ot.hcOrigDetached=!0,r.body.appendChild(ot)),(L(ot,"display",!1)==="none"||ot.hcOricDetached)&&(ot.hcOrigStyle={display:ot.style.display,height:ot.style.height,overflow:ot.style.overflow},dt={display:"block",overflow:"hidden"},ot!==this.renderTo&&(dt.height=0),b(ot,dt),ot.offsetWidth||ot.style.setProperty("display","block","important")),(ot=ot.parentNode)!==r.body););},yt.prototype.setClassName=function(dt){this.container.className="highcharts-container "+(dt||"")},yt.prototype.getContainer=function(){var dt,ot=this.options,at=ot.chart,ut=bt(),vt=this.renderTo;vt||(this.renderTo=vt=at.renderTo),H(vt)&&(this.renderTo=vt=r.getElementById(vt)),vt||C(13,!0,this);var Ct=J(s(vt,"data-highcharts-chart"));j(Ct)&&g[Ct]&&g[Ct].hasRendered&&g[Ct].destroy(),s(vt,"data-highcharts-chart",this.index),vt.innerHTML=f.emptyHTML,at.skipClone||vt.offsetWidth||this.temporaryDisplay(),this.getChartSize(),Ct=this.chartWidth;var xt=this.chartHeight;if(b(vt,{overflow:"hidden"}),this.styledMode||(dt=A({position:"relative",overflow:"hidden",width:Ct+"px",height:xt+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)",userSelect:"none","touch-action":"manipulation",outline:"none"},at.style||{})),this.container=ut=l("div",{id:ut},dt,vt),this._cursor=ut.style.cursor,this.renderer=new(at.renderer||!t?E.getRendererType(at.renderer):P)(ut,Ct,xt,void 0,at.forExport,ot.exporting&&ot.exporting.allowHTML,this.styledMode),v(void 0,this),this.setClassName(at.className),this.styledMode)for(var St in ot.defs)this.renderer.definition(ot.defs[St]);else this.renderer.setStyle(at.style);this.renderer.chartIndex=this.index,R(this,"afterGetContainer")},yt.prototype.getMargins=function(dt){var ot=this.spacing,at=this.margin,ut=this.titleOffset;this.resetMargins(),ut[0]&&!k(at[0])&&(this.plotTop=Math.max(this.plotTop,ut[0]+ot[0])),ut[2]&&!k(at[2])&&(this.marginBottom=Math.max(this.marginBottom,ut[2]+ot[2])),this.legend&&this.legend.display&&this.legend.adjustMargins(at,ot),R(this,"getMargins"),dt||this.getAxisMargins()},yt.prototype.getAxisMargins=function(){var dt=this,ot=dt.axisOffset=[0,0,0,0],at=dt.colorAxis,ut=dt.margin,vt=function(Ct){Ct.forEach(function(xt){xt.visible&&xt.getOffset()})};dt.hasCartesianSeries?vt(dt.axes):at&&at.length&&vt(at),a.forEach(function(Ct,xt){k(ut[xt])||(dt[Ct]+=ot[xt])}),dt.setChartSize()},yt.prototype.reflow=function(dt){var ot=this,at=ot.options.chart,ut=ot.renderTo,vt=k(at.width)&&k(at.height),Ct=at.width||L(ut,"width");at=at.height||L(ut,"height"),ut=dt?dt.target:i,delete ot.pointer.chartPosition,vt||ot.isPrinting||!Ct||!at||ut!==i&&ut!==r||(Ct===ot.containerWidth&&at===ot.containerHeight||(h.clearTimeout(ot.reflowTimeout),ot.reflowTimeout=mt(function(){ot.container&&ot.setSize(void 0,void 0,!1)},dt?100:0)),ot.containerWidth=Ct,ot.containerHeight=at)},yt.prototype.setReflow=function(dt){var ot=this;dt===!1||this.unbindReflow?dt===!1&&this.unbindReflow&&(this.unbindReflow=this.unbindReflow()):(this.unbindReflow=e(i,"resize",function(at){ot.options&&ot.reflow(at)}),e(this,"destroy",this.unbindReflow))},yt.prototype.setSize=function(dt,ot,at){var ut=this,vt=ut.renderer;ut.isResizing+=1,v(at,ut),at=vt.globalAnimation,ut.oldChartHeight=ut.chartHeight,ut.oldChartWidth=ut.chartWidth,dt!==void 0&&(ut.options.chart.width=dt),ot!==void 0&&(ut.options.chart.height=ot),ut.getChartSize(),ut.styledMode||(at?m:b)(ut.container,{width:ut.chartWidth+"px",height:ut.chartHeight+"px"},at),ut.setChartSize(!0),vt.setSize(ut.chartWidth,ut.chartHeight,at),ut.axes.forEach(function(Ct){Ct.isDirty=!0,Ct.setScale()}),ut.isDirtyLegend=!0,ut.isDirtyBox=!0,ut.layOutTitles(),ut.getMargins(),ut.redraw(at),ut.oldChartHeight=null,R(ut,"resize"),mt(function(){ut&&R(ut,"endResize",null,function(){--ut.isResizing})},u(at).duration)},yt.prototype.setChartSize=function(dt){var ot,at,ut,vt,Ct=this.inverted,xt=this.renderer,St=this.chartWidth,Mt=this.chartHeight,wt=this.options.chart,Tt=this.spacing,Lt=this.clipOffset;this.plotLeft=ot=Math.round(this.plotLeft),this.plotTop=at=Math.round(this.plotTop),this.plotWidth=ut=Math.max(0,Math.round(St-ot-this.marginRight)),this.plotHeight=vt=Math.max(0,Math.round(Mt-at-this.marginBottom)),this.plotSizeX=Ct?vt:ut,this.plotSizeY=Ct?ut:vt,this.plotBorderWidth=wt.plotBorderWidth||0,this.spacingBox=xt.spacingBox={x:Tt[3],y:Tt[0],width:St-Tt[3]-Tt[1],height:Mt-Tt[0]-Tt[2]},this.plotBox=xt.plotBox={x:ot,y:at,width:ut,height:vt},Ct=2*Math.floor(this.plotBorderWidth/2),St=Math.ceil(Math.max(Ct,Lt[3])/2),Mt=Math.ceil(Math.max(Ct,Lt[0])/2),this.clipBox={x:St,y:Mt,width:Math.floor(this.plotSizeX-Math.max(Ct,Lt[1])/2-St),height:Math.max(0,Math.floor(this.plotSizeY-Math.max(Ct,Lt[2])/2-Mt))},dt||(this.axes.forEach(function(Pt){Pt.setAxisSize(),Pt.setAxisTranslation()}),xt.alignElements()),R(this,"afterSetChartSize",{skipAxes:dt})},yt.prototype.resetMargins=function(){R(this,"resetMargins");var dt=this,ot=dt.options.chart;["margin","spacing"].forEach(function(at){var ut=ot[at],vt=Y(ut)?ut:[ut,ut,ut,ut];["Top","Right","Bottom","Left"].forEach(function(Ct,xt){dt[at][xt]=Q(ot[at+Ct],vt[xt])})}),a.forEach(function(at,ut){dt[at]=Q(dt.margin[ut],dt.spacing[ut])}),dt.axisOffset=[0,0,0,0],dt.clipOffset=[0,0,0,0]},yt.prototype.drawChartBox=function(){var dt,ot=this.options.chart,at=this.renderer,ut=this.chartWidth,vt=this.chartHeight,Ct=this.styledMode,xt=this.plotBGImage,St=ot.backgroundColor,Mt=ot.plotBackgroundColor,wt=ot.plotBackgroundImage,Tt=this.plotLeft,Lt=this.plotTop,Pt=this.plotWidth,Dt=this.plotHeight,jt=this.plotBox,Ot=this.clipRect,It=this.clipBox,Nt=this.chartBackground,Zt=this.plotBackground,zt=this.plotBorder,Xt="animate";if(Nt||(this.chartBackground=Nt=at.rect().addClass("highcharts-background").add(),Xt="attr"),Ct)var Kt=dt=Nt.strokeWidth();else dt=(Kt=ot.borderWidth||0)+(ot.shadow?8:0),St={fill:St||"none"},(Kt||Nt["stroke-width"])&&(St.stroke=ot.borderColor,St["stroke-width"]=Kt),Nt.attr(St).shadow(ot.shadow);Nt[Xt]({x:dt/2,y:dt/2,width:ut-dt-Kt%2,height:vt-dt-Kt%2,r:ot.borderRadius}),Xt="animate",Zt||(Xt="attr",this.plotBackground=Zt=at.rect().addClass("highcharts-plot-background").add()),Zt[Xt](jt),Ct||(Zt.attr({fill:Mt||"none"}).shadow(ot.plotShadow),wt&&(xt?(wt!==xt.attr("href")&&xt.attr("href",wt),xt.animate(jt)):this.plotBGImage=at.image(wt,Tt,Lt,Pt,Dt).add())),Ot?Ot.animate({width:It.width,height:It.height}):this.clipRect=at.clipRect(It),Xt="animate",zt||(Xt="attr",this.plotBorder=zt=at.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add()),Ct||zt.attr({stroke:ot.plotBorderColor,"stroke-width":ot.plotBorderWidth||0,fill:"none"}),zt[Xt](zt.crisp({x:Tt,y:Lt,width:Pt,height:Dt},-zt.strokeWidth())),this.isDirtyBox=!1,R(this,"afterDrawChartBox")},yt.prototype.propFromSeries=function(){var dt,ot,at,ut=this,vt=ut.options.chart,Ct=ut.options.series;["inverted","angular","polar"].forEach(function(xt){for(ot=o[vt.type||vt.defaultSeriesType],at=vt[xt]||ot&&ot.prototype[xt],dt=Ct&&Ct.length;!at&&dt--;)(ot=o[Ct[dt].type])&&ot.prototype[xt]&&(at=!0);ut[xt]=at})},yt.prototype.linkSeries=function(){var dt=this,ot=dt.series;ot.forEach(function(at){at.linkedSeries.length=0}),ot.forEach(function(at){var ut=at.options.linkedTo;H(ut)&&(ut=ut===":previous"?dt.series[at.index-1]:dt.get(ut))&&ut.linkedParent!==at&&(ut.linkedSeries.push(at),at.linkedParent=ut,ut.enabledDataSorting&&at.setDataSortingOptions(),at.visible=Q(at.options.visible,ut.options.visible,at.visible))}),R(this,"afterLinkSeries")},yt.prototype.renderSeries=function(){this.series.forEach(function(dt){dt.translate(),dt.render()})},yt.prototype.renderLabels=function(){var dt=this,ot=dt.options.labels;ot.items&&ot.items.forEach(function(at){var ut=A(ot.style,at.style),vt=J(ut.left)+dt.plotLeft,Ct=J(ut.top)+dt.plotTop+12;delete ut.left,delete ut.top,dt.renderer.text(at.html,vt,Ct).attr({zIndex:2}).css(ut).add()})},yt.prototype.render=function(){var dt=this.axes,ot=this.colorAxis,at=this.renderer,ut=this.options,vt=function(wt){wt.forEach(function(Tt){Tt.visible&&Tt.render()})},Ct=0;this.setTitle(),this.legend=new V(this,ut.legend),this.getStacks&&this.getStacks(),this.getMargins(!0),this.setChartSize(),ut=this.plotWidth,dt.some(function(wt){if(wt.horiz&&wt.visible&&wt.options.labels.enabled&&wt.series.length)return Ct=21,!0});var xt=this.plotHeight=Math.max(this.plotHeight-Ct,0);dt.forEach(function(wt){wt.setScale()}),this.getAxisMargins();var St=1.1<ut/this.plotWidth,Mt=1.05<xt/this.plotHeight;(St||Mt)&&(dt.forEach(function(wt){(wt.horiz&&St||!wt.horiz&&Mt)&&wt.setTickInterval(!0)}),this.getMargins()),this.drawChartBox(),this.hasCartesianSeries?vt(dt):ot&&ot.length&&vt(ot),this.seriesGroup||(this.seriesGroup=at.g("series-group").attr({zIndex:3}).add()),this.renderSeries(),this.renderLabels(),this.addCredits(),this.setResponsive&&this.setResponsive(),this.hasRendered=!0},yt.prototype.addCredits=function(dt){var ot=this,at=W(!0,this.options.credits,dt);at.enabled&&!this.credits&&(this.credits=this.renderer.text(at.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){at.href&&(i.location.href=at.href)}).attr({align:at.position.align,zIndex:8}),ot.styledMode||this.credits.css(at.style),this.credits.add().align(at.position),this.credits.update=function(ut){ot.credits=ot.credits.destroy(),ot.addCredits(ut)})},yt.prototype.destroy=function(){var dt,ot=this,at=ot.axes,ut=ot.series,vt=ot.container,Ct=vt&&vt.parentNode;for(R(ot,"destroy"),ot.renderer.forExport?d(g,ot):g[ot.index]=void 0,Z.chartCount--,ot.renderTo.removeAttribute("data-highcharts-chart"),lt(ot),dt=at.length;dt--;)at[dt]=at[dt].destroy();for(this.scroller&&this.scroller.destroy&&this.scroller.destroy(),dt=ut.length;dt--;)ut[dt]=ut[dt].destroy();"title subtitle chartBackground plotBackground plotBGImage plotBorder seriesGroup clipRect credits pointer rangeSelector legend resetZoomButton tooltip renderer".split(" ").forEach(function(xt){var St=ot[xt];St&&St.destroy&&(ot[xt]=St.destroy())}),vt&&(vt.innerHTML=f.emptyHTML,lt(vt),Ct&&D(vt)),q(ot,function(xt,St){delete ot[St]})},yt.prototype.firstRender=function(){var dt=this,ot=dt.options;dt.isReadyToRender&&!dt.isReadyToRender()||(dt.getContainer(),dt.resetMargins(),dt.setChartSize(),dt.propFromSeries(),dt.getAxes(),(O(ot.series)?ot.series:[]).forEach(function(at){dt.initSeries(at)}),dt.linkSeries(),dt.setSeriesData(),R(dt,"beforeRender"),I&&(z.isRequired()?dt.pointer=new z(dt,ot):dt.pointer=new I(dt,ot)),dt.render(),dt.pointer.getChartPosition(),dt.renderer.imgCount||dt.hasLoaded||dt.onload(),dt.temporaryDisplay(!0))},yt.prototype.onload=function(){this.callbacks.concat([this.callback]).forEach(function(dt){dt&&this.index!==void 0&&dt.apply(this,[this])},this),R(this,"load"),R(this,"render"),k(this.index)&&this.setReflow(this.options.chart.reflow),this.warnIfA11yModuleNotLoaded(),this.hasLoaded=!0},yt.prototype.warnIfA11yModuleNotLoaded=function(){var dt=this.options,ot=this.title;dt&&!this.accessibility&&(this.renderer.boxWrapper.attr({role:"img","aria-label":(ot&&ot.element.textContent||"").replace(/</g,"<")}),dt.accessibility&&dt.accessibility.enabled===!1||C('Highcharts warning: Consider including the "accessibility.js" module to make your chart more usable for people with disabilities. Set the "accessibility.enabled" option to false to remove this warning. See https://www.highcharts.com/docs/accessibility/accessibility-module.',!1,this))},yt.prototype.addSeries=function(dt,ot,at){var ut,vt=this;return dt&&(ot=Q(ot,!0),R(vt,"addSeries",{options:dt},function(){ut=vt.initSeries(dt),vt.isDirtyLegend=!0,vt.linkSeries(),ut.enabledDataSorting&&ut.setData(dt.data,!1),R(vt,"afterAddSeries",{series:ut}),ot&&vt.redraw(at)})),ut},yt.prototype.addAxis=function(dt,ot,at,ut){return this.createAxis(ot?"xAxis":"yAxis",{axis:dt,redraw:at,animation:ut})},yt.prototype.addColorAxis=function(dt,ot,at){return this.createAxis("colorAxis",{axis:dt,redraw:ot,animation:at})},yt.prototype.createAxis=function(dt,ot){return dt=new B(this,W(ot.axis,{index:this[dt].length,isX:dt==="xAxis"})),Q(ot.redraw,!0)&&this.redraw(ot.animation),dt},yt.prototype.showLoading=function(dt){var ot=this,at=ot.options,ut=at.loading,vt=function(){Ct&&b(Ct,{left:ot.plotLeft+"px",top:ot.plotTop+"px",width:ot.plotWidth+"px",height:ot.plotHeight+"px"})},Ct=ot.loadingDiv,xt=ot.loadingSpan;Ct||(ot.loadingDiv=Ct=l("div",{className:"highcharts-loading highcharts-loading-hidden"},null,ot.container)),xt||(ot.loadingSpan=xt=l("span",{className:"highcharts-loading-inner"},null,Ct),e(ot,"redraw",vt)),Ct.className="highcharts-loading",f.setElementHTML(xt,Q(dt,at.lang.loading,"")),ot.styledMode||(b(Ct,A(ut.style,{zIndex:10})),b(xt,ut.labelStyle),ot.loadingShown||(b(Ct,{opacity:0,display:""}),m(Ct,{opacity:ut.style.opacity||.5},{duration:ut.showDuration||0}))),ot.loadingShown=!0,vt()},yt.prototype.hideLoading=function(){var dt=this.options,ot=this.loadingDiv;ot&&(ot.className="highcharts-loading highcharts-loading-hidden",this.styledMode||m(ot,{opacity:0},{duration:dt.loading.hideDuration||100,complete:function(){b(ot,{display:"none"})}})),this.loadingShown=!1},yt.prototype.update=function(dt,ot,at,ut){var vt,Ct,xt=this,St={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},Mt=dt.isResponsiveOptions,wt=[];R(xt,"update",{options:dt}),Mt||xt.setResponsive(!1,!0),dt=n(dt,xt.options),xt.userOptions=W(xt.userOptions,dt);var Tt=dt.chart;if(Tt){if(W(!0,xt.options.chart,Tt),"className"in Tt&&xt.setClassName(Tt.className),"reflow"in Tt&&xt.setReflow(Tt.reflow),"inverted"in Tt||"polar"in Tt||"type"in Tt){xt.propFromSeries();var Lt=!0}"alignTicks"in Tt&&(Lt=!0),"events"in Tt&&c(this,Tt),q(Tt,function(Pt,Dt){xt.propsRequireUpdateSeries.indexOf("chart."+Dt)!==-1&&(vt=!0),xt.propsRequireDirtyBox.indexOf(Dt)!==-1&&(xt.isDirtyBox=!0),xt.propsRequireReflow.indexOf(Dt)!==-1&&(Mt?xt.isDirtyBox=!0:Ct=!0)}),!xt.styledMode&&Tt.style&&xt.renderer.setStyle(xt.options.chart.style||{})}!xt.styledMode&&dt.colors&&(this.options.colors=dt.colors),dt.time&&(this.time===w&&(this.time=new y(dt.time)),W(!0,xt.options.time,dt.time)),q(dt,function(Pt,Dt){xt[Dt]&&typeof xt[Dt].update=="function"?xt[Dt].update(Pt,!1):typeof xt[St[Dt]]=="function"?xt[St[Dt]](Pt):Dt!=="colors"&&xt.collectionsWithUpdate.indexOf(Dt)===-1&&W(!0,xt.options[Dt],dt[Dt]),Dt!=="chart"&&xt.propsRequireUpdateSeries.indexOf(Dt)!==-1&&(vt=!0)}),this.collectionsWithUpdate.forEach(function(Pt){if(dt[Pt]){var Dt=[];xt[Pt].forEach(function(jt,Ot){jt.options.isInternal||Dt.push(Q(jt.options.index,Ot))}),gt(dt[Pt]).forEach(function(jt,Ot){var It,Nt=k(jt.id);Nt&&(It=xt.get(jt.id)),!It&&xt[Pt]&&(It=xt[Pt][Dt?Dt[Ot]:Ot])&&Nt&&k(It.options.id)&&(It=void 0),It&&It.coll===Pt&&(It.update(jt,!1),at&&(It.touched=!0)),!It&&at&&xt.collectionsWithInit[Pt]&&(xt.collectionsWithInit[Pt][0].apply(xt,[jt].concat(xt.collectionsWithInit[Pt][1]||[]).concat([!1])).touched=!0)}),at&&xt[Pt].forEach(function(jt){jt.touched||jt.options.isInternal?delete jt.touched:wt.push(jt)})}}),wt.forEach(function(Pt){Pt.chart&&Pt.remove&&Pt.remove(!1)}),Lt&&xt.axes.forEach(function(Pt){Pt.update({},!1)}),vt&&xt.getSeriesOrderByLinks().forEach(function(Pt){Pt.chart&&Pt.update({},!1)},this),Lt=Tt&&Tt.width,Tt=Tt&&(H(Tt.height)?nt(Tt.height,Lt||xt.chartWidth):Tt.height),Ct||j(Lt)&&Lt!==xt.chartWidth||j(Tt)&&Tt!==xt.chartHeight?xt.setSize(Lt,Tt,ut):Q(ot,!0)&&xt.redraw(ut),R(xt,"afterUpdate",{options:dt,redraw:ot,animation:ut})},yt.prototype.setSubtitle=function(dt,ot){this.applyDescription("subtitle",dt),this.layOutTitles(ot)},yt.prototype.setCaption=function(dt,ot){this.applyDescription("caption",dt),this.layOutTitles(ot)},yt.prototype.showResetZoom=function(){function dt(){ot.zoomOut()}var ot=this,at=S.lang,ut=ot.options.chart.zooming.resetButton,vt=ut.theme,Ct=ut.relativeTo==="chart"||ut.relativeTo==="spacingBox"?null:"scrollablePlotBox";R(this,"beforeShowResetZoom",null,function(){ot.resetZoomButton=ot.renderer.button(at.resetZoom,null,null,dt,vt).attr({align:ut.position.align,title:at.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(ut.position,!1,Ct)}),R(this,"afterShowResetZoom")},yt.prototype.zoomOut=function(){R(this,"selection",{resetSelection:!0},this.zoom)},yt.prototype.zoom=function(dt){var ot,at=this,ut=at.pointer,vt=!1;!dt||dt.resetSelection?(at.axes.forEach(function(xt){ot=xt.zoom()}),ut.initiated=!1):dt.xAxis.concat(dt.yAxis).forEach(function(xt){var St=xt.axis;(ut[St.isXAxis?"zoomX":"zoomY"]&&k(ut.mouseDownX)&&k(ut.mouseDownY)&&at.isInsidePlot(ut.mouseDownX-at.plotLeft,ut.mouseDownY-at.plotTop,{axis:St})||!k(at.inverted?ut.mouseDownX:ut.mouseDownY))&&(ot=St.zoom(xt.min,xt.max),St.displayBtn&&(vt=!0))});var Ct=at.resetZoomButton;vt&&!Ct?at.showResetZoom():!vt&&Y(Ct)&&(at.resetZoomButton=Ct.destroy()),ot&&at.redraw(Q(at.options.chart.animation,dt&&dt.animation,100>at.pointCount))},yt.prototype.pan=function(dt,ot){var at=this,ut=at.hoverPoints;ot=typeof ot=="object"?ot:{enabled:ot,type:"x"};var vt=at.options.chart;vt&&vt.panning&&(vt.panning=ot);var Ct,xt=ot.type;R(this,"pan",{originalEvent:dt},function(){ut&&ut.forEach(function(wt){wt.setState()});var St=at.xAxis;xt==="xy"?St=St.concat(at.yAxis):xt==="y"&&(St=at.yAxis);var Mt={};St.forEach(function(wt){if(wt.options.panningEnabled&&!wt.options.isInternal){var Tt=wt.horiz,Lt=dt[Tt?"chartX":"chartY"],Pt=at[Tt=Tt?"mouseDownX":"mouseDownY"],Dt=wt.minPointOffset||0,jt=wt.reversed&&!at.inverted||!wt.reversed&&at.inverted?-1:1,Ot=wt.getExtremes(),It=wt.toValue(Pt-Lt,!0)+Dt*jt,Nt=wt.toValue(Pt+wt.len-Lt,!0)-(Dt*jt||wt.isXAxis&&wt.pointRangePadding||0),Zt=Nt<It;jt=wt.hasVerticalPanning(),Pt=Zt?Nt:It,It=Zt?It:Nt;var zt=wt.panningState;!jt||wt.isXAxis||zt&&!zt.isDirty||wt.series.forEach(function(Xt){var Kt=Xt.getProcessedData(!0);Kt=Xt.getExtremes(Kt.yData,!0),zt||(zt={startMin:Number.MAX_VALUE,startMax:-Number.MAX_VALUE}),j(Kt.dataMin)&&j(Kt.dataMax)&&(zt.startMin=Math.min(Q(Xt.options.threshold,1/0),Kt.dataMin,zt.startMin),zt.startMax=Math.max(Q(Xt.options.threshold,-1/0),Kt.dataMax,zt.startMax))}),jt=Math.min(Q(zt&&zt.startMin,Ot.dataMin),Dt?Ot.min:wt.toValue(wt.toPixels(Ot.min)-wt.minPixelPadding)),Nt=Math.max(Q(zt&&zt.startMax,Ot.dataMax),Dt?Ot.max:wt.toValue(wt.toPixels(Ot.max)+wt.minPixelPadding)),wt.panningState=zt,wt.isOrdinal||(0<(Dt=jt-Pt)&&(It+=Dt,Pt=jt),0<(Dt=It-Nt)&&(It=Nt,Pt-=Dt),wt.series.length&&Pt!==Ot.min&&It!==Ot.max&&Pt>=jt&&It<=Nt&&(wt.setExtremes(Pt,It,!1,!1,{trigger:"pan"}),!at.resetZoomButton&&Pt!==jt&&It!==Nt&&xt.match("y")&&(at.showResetZoom(),wt.displayBtn=!1),Ct=!0),Mt[Tt]=Lt)}}),q(Mt,function(wt,Tt){at[Tt]=wt}),Ct&&at.redraw(!1),b(at.container,{cursor:"move"})})},yt}(),A(G.prototype,{callbacks:[],collectionsWithInit:{xAxis:[G.prototype.addAxis,[!0]],yAxis:[G.prototype.addAxis,[!1]],series:[G.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","series"],propsRequireDirtyBox:"backgroundColor borderColor borderWidth borderRadius plotBackgroundColor plotBackgroundImage plotBorderColor plotBorderWidth plotShadow shadow".split(" "),propsRequireReflow:"margin marginTop marginRight marginBottom marginLeft spacing spacingTop spacingRight spacingBottom spacingLeft".split(" "),propsRequireUpdateSeries:"chart.inverted chart.polar chart.ignoreHiddenSeries chart.type colors plotOptions time tooltip".split(" ")}),G}),_(et,"Core/Legend/LegendSymbol.js",[et["Core/Utilities.js"]],function(G){var B,X=G.extend,U=G.merge,$=G.pick;return function(Z){Z.drawLineMarker=function(V){var z=this.legendItem=this.legendItem||{},I=this.options,E=V.symbolWidth,M=V.symbolHeight,P=M/2,y=this.chart.renderer,h=z.group;V=V.baseline-Math.round(.3*V.fontMetrics.b);var f={},m=I.marker,u=0;this.chart.styledMode||(f={"stroke-width":Math.min(I.lineWidth||0,24)},I.dashStyle?f.dashstyle=I.dashStyle:I.linecap!=="square"&&(f["stroke-linecap"]="round")),z.line=y.path().addClass("highcharts-graph").attr(f).add(h),f["stroke-linecap"]&&(u=Math.min(z.line.strokeWidth(),E)/2),z.line.attr({d:[["M",u,V],["L",E-u,V]]}),m&&m.enabled!==!1&&E&&(I=Math.min($(m.radius,P),P),this.symbol.indexOf("url")===0&&(m=U(m,{width:M,height:M}),I=0),z.symbol=z=y.symbol(this.symbol,E/2-I,V-I,2*I,2*I,X({context:"legend"},m)).addClass("highcharts-point").add(h),z.isMarker=!0)},Z.drawRectangle=function(V,z){z=z.legendItem||{};var I=V.symbolHeight,E=V.options.squareSymbol;z.symbol=this.chart.renderer.rect(E?(V.symbolWidth-I)/2:0,V.baseline-I+1,E?I:V.symbolWidth,I,$(V.options.symbolRadius,I/2)).addClass("highcharts-point").attr({zIndex:3}).add(z.group)}}(B||(B={})),B}),_(et,"Core/Series/SeriesDefaults.js",[],function(){return{lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1e3},events:{},marker:{enabledThreshold:2,lineColor:"#ffffff",lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:"center",borderWidth:0,defer:!0,formatter:function(){var G=this.series.chart.numberFormatter;return typeof this.y!="number"?"":G(this.y,-1)},padding:5,style:{fontSize:"11px",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0},cropThreshold:300,opacity:1,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:50},opacity:.2}},stickyTracking:!0,turboThreshold:1e3,findNearestPointBy:"x"}}),_(et,"Core/Series/Series.js",[et["Core/Animation/AnimationUtilities.js"],et["Core/Defaults.js"],et["Core/Foundation.js"],et["Core/Globals.js"],et["Core/Legend/LegendSymbol.js"],et["Core/Series/Point.js"],et["Core/Series/SeriesDefaults.js"],et["Core/Series/SeriesRegistry.js"],et["Core/Renderer/SVG/SVGElement.js"],et["Core/Utilities.js"]],function(G,B,X,U,$,Z,V,z,I,E){var M=G.animObject,P=G.setAnimation,y=B.defaultOptions,h=X.registerEventOptions,f=U.hasTouch,m=U.svg,u=U.win,v=z.seriesTypes,S=E.arrayMax,w=E.arrayMin,x=E.clamp,c=E.cleanRecursively,g=E.correctFloat,r=E.defined,a=E.erase,t=E.error,i=E.extend,o=E.find,e=E.fireEvent,s=E.getNestedProperty,n=E.isArray,l=E.isNumber,b=E.isString,k=E.merge,D=E.objectEach,d=E.pick,C=E.removeEvent,A=E.splat,N=E.syncTimeout;return G=function(){function R(){this.zones=this.yAxis=this.xAxis=this.userOptions=this.tooltipOptions=this.processedYData=this.processedXData=this.points=this.options=this.linkedSeries=this.index=this.eventsToUnbind=this.eventOptions=this.data=this.chart=this._i=void 0}return R.prototype.init=function(L,O){e(this,"init",{options:O});var j=this,Y=L.series;this.eventsToUnbind=[],j.chart=L,j.options=j.setOptions(O),O=j.options,j.linkedSeries=[],j.bindAxes(),i(j,{name:O.name,state:"",visible:O.visible!==!1,selected:O.selected===!0}),h(this,O);var H,W=O.events;(W&&W.click||O.point&&O.point.events&&O.point.events.click||O.allowPointSelect)&&(L.runTrackerClick=!0),j.getColor(),j.getSymbol(),j.parallelArrays.forEach(function(q){j[q+"Data"]||(j[q+"Data"]=[])}),j.isCartesian&&(L.hasCartesianSeries=!0),Y.length&&(H=Y[Y.length-1]),j._i=d(H&&H._i,-1)+1,j.opacity=j.options.opacity,L.orderSeries(this.insert(Y)),O.dataSorting&&O.dataSorting.enabled?j.setDataSortingOptions():j.points||j.data||j.setData(O.data,!1),e(this,"afterInit")},R.prototype.is=function(L){return v[L]&&this instanceof v[L]},R.prototype.insert=function(L){var O,j=this.options.index;if(l(j)){for(O=L.length;O--;)if(j>=d(L[O].options.index,L[O]._i)){L.splice(O+1,0,this);break}O===-1&&L.unshift(this),O+=1}else L.push(this);return d(O,L.length-1)},R.prototype.bindAxes=function(){var L,O=this,j=O.options,Y=O.chart;e(this,"bindAxes",null,function(){(O.axisTypes||[]).forEach(function(H){var W=0;Y[H].forEach(function(q){L=q.options,(j[H]===W&&!L.isInternal||j[H]!==void 0&&j[H]===L.id||j[H]===void 0&&L.index===0)&&(O.insert(q.series),O[H]=q,q.isDirty=!0),L.isInternal||W++}),O[H]||O.optionalAxis===H||t(18,!0,Y)})}),e(this,"afterBindAxes")},R.prototype.updateParallelArrays=function(L,O){var j=L.series,Y=arguments,H=l(O)?function(W){var q=W==="y"&&j.toYData?j.toYData(L):L[W];j[W+"Data"][O]=q}:function(W){Array.prototype[O].apply(j[W+"Data"],Array.prototype.slice.call(Y,2))};j.parallelArrays.forEach(H)},R.prototype.hasData=function(){return this.visible&&this.dataMax!==void 0&&this.dataMin!==void 0||this.visible&&this.yData&&0<this.yData.length},R.prototype.autoIncrement=function(L){var O,j=this.options,Y=j.pointIntervalUnit,H=j.relativeXValue,W=this.chart.time,q=this.xIncrement;return q=d(q,j.pointStart,0),this.pointInterval=O=d(this.pointInterval,j.pointInterval,1),H&&l(L)&&(O*=L),Y&&(j=new W.Date(q),Y==="day"?W.set("Date",j,W.get("Date",j)+O):Y==="month"?W.set("Month",j,W.get("Month",j)+O):Y==="year"&&W.set("FullYear",j,W.get("FullYear",j)+O),O=j.getTime()-q),H&&l(L)?q+O:(this.xIncrement=q+O,q)},R.prototype.setDataSortingOptions=function(){var L=this.options;i(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1}),r(L.pointRange)||(L.pointRange=1)},R.prototype.setOptions=function(L){var O=this.chart,j=O.options,Y=j.plotOptions,H=O.userOptions||{};L=k(L),O=O.styledMode;var W={plotOptions:Y,userOptions:L};e(this,"setOptions",W);var q=W.plotOptions[this.type],Q=H.plotOptions||{};return this.userOptions=W.userOptions,H=k(q,Y.series,H.plotOptions&&H.plotOptions[this.type],L),this.tooltipOptions=k(y.tooltip,y.plotOptions.series&&y.plotOptions.series.tooltip,y.plotOptions[this.type].tooltip,j.tooltip.userOptions,Y.series&&Y.series.tooltip,Y[this.type].tooltip,L.tooltip),this.stickyTracking=d(L.stickyTracking,Q[this.type]&&Q[this.type].stickyTracking,Q.series&&Q.series.stickyTracking,!(!this.tooltipOptions.shared||this.noSharedTooltip)||H.stickyTracking),q.marker===null&&delete H.marker,this.zoneAxis=H.zoneAxis,Y=this.zones=(H.zones||[]).slice(),!H.negativeColor&&!H.negativeFillColor||H.zones||(j={value:H[this.zoneAxis+"Threshold"]||H.threshold||0,className:"highcharts-negative"},O||(j.color=H.negativeColor,j.fillColor=H.negativeFillColor),Y.push(j)),Y.length&&r(Y[Y.length-1].value)&&Y.push(O?{}:{color:this.color,fillColor:this.fillColor}),e(this,"afterSetOptions",{options:H}),H},R.prototype.getName=function(){return d(this.options.name,"Series "+(this.index+1))},R.prototype.getCyclic=function(L,O,j){var Y=this.chart,H=this.userOptions,W=L+"Index",q=L+"Counter",Q=j?j.length:d(Y.options.chart[L+"Count"],Y[L+"Count"]);if(!O){var J=d(H[W],H["_"+W]);r(J)||(Y.series.length||(Y[q]=0),H["_"+W]=J=Y[q]%Q,Y[q]+=1),j&&(O=j[J])}J!==void 0&&(this[W]=J),this[L]=O},R.prototype.getColor=function(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color="#cccccc":this.getCyclic("color",this.options.color||y.plotOptions[this.type].color,this.chart.options.colors)},R.prototype.getPointsCollection=function(){return(this.hasGroupedData?this.points:this.data)||[]},R.prototype.getSymbol=function(){this.getCyclic("symbol",this.options.marker.symbol,this.chart.options.symbols)},R.prototype.findPointIndex=function(L,O){var j,Y,H=L.id,W=L.x,q=this.points,Q=this.options.dataSorting;if(H)(Q=this.chart.get(H))instanceof Z&&(j=Q);else if((this.linkedParent||this.enabledDataSorting||this.options.relativeXValue)&&(j=function(nt){return!nt.touched&&nt.index===L.index},Q&&Q.matchByName?j=function(nt){return!nt.touched&&nt.name===L.name}:this.options.relativeXValue&&(j=function(nt){return!nt.touched&&nt.options.x===L.x}),!(j=o(q,j))))return;if(j){var J=j&&j.index;J!==void 0&&(Y=!0)}return J===void 0&&l(W)&&(J=this.xData.indexOf(W,O)),J!==-1&&J!==void 0&&this.cropped&&(J=J>=this.cropStart?J-this.cropStart:J),!Y&&l(J)&&q[J]&&q[J].touched&&(J=void 0),J},R.prototype.updateData=function(L,O){var j,Y,H,W=this.options,q=W.dataSorting,Q=this.points,J=[],nt=this.requireSorting,lt=L.length===Q.length,gt=!0;if(this.xIncrement=null,L.forEach(function(mt,bt){var yt=r(mt)&&this.pointClass.prototype.optionsToObject.call({series:this},mt)||{},dt=yt.x;yt.id||l(dt)?((yt=this.findPointIndex(yt,H))===-1||yt===void 0?J.push(mt):Q[yt]&&mt!==W.data[yt]?(Q[yt].update(mt,!1,null,!1),Q[yt].touched=!0,nt&&(H=yt+1)):Q[yt]&&(Q[yt].touched=!0),(!lt||bt!==yt||q&&q.enabled||this.hasDerivedData)&&(j=!0)):J.push(mt)},this),j)for(L=Q.length;L--;)(Y=Q[L])&&!Y.touched&&Y.remove&&Y.remove(!1,O);else!lt||q&&q.enabled?gt=!1:(L.forEach(function(mt,bt){mt!==Q[bt].y&&Q[bt].update&&Q[bt].update(mt,!1,null,!1)}),J.length=0);return Q.forEach(function(mt){mt&&(mt.touched=!1)}),!!gt&&(J.forEach(function(mt){this.addPoint(mt,!1,null,null,!1)},this),this.xIncrement===null&&this.xData&&this.xData.length&&(this.xIncrement=S(this.xData),this.autoIncrement()),!0)},R.prototype.setData=function(L,O,j,Y){O===void 0&&(O=!0);var H=this,W=H.points,q=W&&W.length||0,Q=H.options,J=H.chart,nt=Q.dataSorting,lt=H.xAxis,gt=Q.turboThreshold,mt=this.xData,bt=this.yData,yt=H.pointArrayMap;yt=yt&&yt.length;var dt,ot=Q.keys,at=0,ut=1,vt=null;if(!J.options.chart.allowMutatingData){Q.data&&delete H.options.data,H.userOptions.data&&delete H.userOptions.data;var Ct=k(!0,L)}if(Ct=(L=Ct||L||[]).length,nt&&nt.enabled&&(L=this.sortData(L)),J.options.chart.allowMutatingData&&Y!==!1&&Ct&&q&&!H.cropped&&!H.hasGroupedData&&H.visible&&!H.boosted&&(dt=this.updateData(L,j)),!dt){if(H.xIncrement=null,H.colorCounter=0,this.parallelArrays.forEach(function(xt){H[xt+"Data"].length=0}),gt&&Ct>gt)if(vt=H.getFirstValidPoint(L),l(vt))for(j=0;j<Ct;j++)mt[j]=this.autoIncrement(),bt[j]=L[j];else if(n(vt))if(yt)if(vt.length===yt)for(j=0;j<Ct;j++)mt[j]=this.autoIncrement(),bt[j]=L[j];else for(j=0;j<Ct;j++)Y=L[j],mt[j]=Y[0],bt[j]=Y.slice(1,yt+1);else if(ot&&(at=0<=(at=ot.indexOf("x"))?at:0,ut=0<=(ut=ot.indexOf("y"))?ut:1),vt.length===1&&(ut=0),at===ut)for(j=0;j<Ct;j++)mt[j]=this.autoIncrement(),bt[j]=L[j][ut];else for(j=0;j<Ct;j++)Y=L[j],mt[j]=Y[at],bt[j]=Y[ut];else t(12,!1,J);else for(j=0;j<Ct;j++)L[j]!==void 0&&(Y={series:H},H.pointClass.prototype.applyOptions.apply(Y,[L[j]]),H.updateParallelArrays(Y,j));for(bt&&b(bt[0])&&t(14,!0,J),H.data=[],H.options.data=H.userOptions.data=L,j=q;j--;)W[j]&&W[j].destroy&&W[j].destroy();lt&&(lt.minRange=lt.userMinRange),H.isDirty=J.isDirtyBox=!0,H.isDirtyData=!!W,j=!1}Q.legendType==="point"&&(this.processData(),this.generatePoints()),O&&J.redraw(j)},R.prototype.sortData=function(L){var O=this,j=O.options.dataSorting.sortKey||"y",Y=function(H,W){return r(W)&&H.pointClass.prototype.optionsToObject.call({series:H},W)||{}};return L.forEach(function(H,W){L[W]=Y(O,H),L[W].index=W},this),L.concat().sort(function(H,W){return H=s(j,H),(W=s(j,W))<H?-1:W>H?1:0}).forEach(function(H,W){H.x=W},this),O.linkedSeries&&O.linkedSeries.forEach(function(H){var W=H.options,q=W.data;W.dataSorting&&W.dataSorting.enabled||!q||(q.forEach(function(Q,J){q[J]=Y(H,Q),L[J]&&(q[J].x=L[J].x,q[J].index=J)}),H.setData(q,!1))}),L},R.prototype.getProcessedData=function(L){var O=this.xAxis,j=this.options,Y=j.cropThreshold,H=L||this.getExtremesFromAll||j.getExtremesFromAll,W=this.isCartesian;L=O&&O.val2lin,j=!(!O||!O.logarithmic);var q=0,Q=this.xData,J=this.yData,nt=this.requireSorting,lt=!1,gt=Q.length;if(O){var mt=(lt=O.getExtremes()).min,bt=lt.max;lt=!(!O.categories||O.names.length)}if(W&&this.sorted&&!H&&(!Y||gt>Y||this.forceCrop)){if(Q[gt-1]<mt||Q[0]>bt)Q=[],J=[];else if(this.yData&&(Q[0]<mt||Q[gt-1]>bt)){var yt=this.cropData(this.xData,this.yData,mt,bt);Q=yt.xData,J=yt.yData,q=yt.start,yt=!0}}for(Y=Q.length||1;--Y;)if(0<(O=j?L(Q[Y])-L(Q[Y-1]):Q[Y]-Q[Y-1])&&(dt===void 0||O<dt))var dt=O;else 0>O&&nt&&!lt&&(t(15,!1,this.chart),nt=!1);return{xData:Q,yData:J,cropped:yt,cropStart:q,closestPointRange:dt}},R.prototype.processData=function(L){var O=this.xAxis;if(this.isCartesian&&!this.isDirty&&!O.isDirty&&!this.yAxis.isDirty&&!L)return!1;L=this.getProcessedData(),this.cropped=L.cropped,this.cropStart=L.cropStart,this.processedXData=L.xData,this.processedYData=L.yData,this.closestPointRange=this.basePointRange=L.closestPointRange,e(this,"afterProcessData")},R.prototype.cropData=function(L,O,j,Y,H){var W,q=L.length,Q=0,J=q;for(H=d(H,this.cropShoulder),W=0;W<q;W++)if(L[W]>=j){Q=Math.max(0,W-H);break}for(j=W;j<q;j++)if(L[j]>Y){J=j+H;break}return{xData:L.slice(Q,J),yData:O.slice(Q,J),start:Q,end:J}},R.prototype.generatePoints=function(){var L=this.options,O=this.processedData||L.data,j=this.processedXData,Y=this.processedYData,H=this.pointClass,W=j.length,q=this.cropStart||0,Q=this.hasGroupedData,J=L.keys,nt=[];L=L.dataGrouping&&L.dataGrouping.groupAll?q:0;var lt,gt,mt=this.data;if(!mt&&!Q){var bt=[];bt.length=O.length,mt=this.data=bt}for(J&&Q&&(this.options.keys=!1),gt=0;gt<W;gt++){if(bt=q+gt,Q){var yt=new H().init(this,[j[gt]].concat(A(Y[gt])));yt.dataGroup=this.groupMap[L+gt],yt.dataGroup.options&&(yt.options=yt.dataGroup.options,i(yt,yt.dataGroup.options),delete yt.dataLabels)}else(yt=mt[bt])||O[bt]===void 0||(mt[bt]=yt=new H().init(this,O[bt],j[gt]));yt&&(yt.index=Q?L+gt:bt,nt[gt]=yt)}if(this.options.keys=J,mt&&(W!==(lt=mt.length)||Q))for(gt=0;gt<lt;gt++)gt!==q||Q||(gt+=W),mt[gt]&&(mt[gt].destroyElements(),mt[gt].plotX=void 0);this.data=mt,this.points=nt,e(this,"afterGeneratePoints")},R.prototype.getXExtremes=function(L){return{min:w(L),max:S(L)}},R.prototype.getExtremes=function(L,O){var j=this.xAxis,Y=this.yAxis,H=this.processedXData||this.xData,W=[],q=this.requireSorting?this.cropShoulder:0;Y=!!Y&&Y.positiveValuesOnly;var Q,J=0,nt=0,lt=0,gt=(L=L||this.stackedYData||this.processedYData||[]).length;if(j){var mt=j.getExtremes();J=mt.min,nt=mt.max}for(Q=0;Q<gt;Q++){var bt=H[Q];mt=L[Q];var yt=(l(mt)||n(mt))&&(mt.length||0<mt||!Y);if(bt=O||this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!j||(H[Q+q]||bt)>=J&&(H[Q-q]||bt)<=nt,yt&&bt)if(yt=mt.length)for(;yt--;)l(mt[yt])&&(W[lt++]=mt[yt]);else W[lt++]=mt}return L={activeYData:W,dataMin:w(W),dataMax:S(W)},e(this,"afterGetExtremes",{dataExtremes:L}),L},R.prototype.applyExtremes=function(){var L=this.getExtremes();return this.dataMin=L.dataMin,this.dataMax=L.dataMax,L},R.prototype.getFirstValidPoint=function(L){for(var O=L.length,j=0,Y=null;Y===null&&j<O;)Y=L[j],j++;return Y},R.prototype.translate=function(){this.processedXData||this.processData(),this.generatePoints();var L,O,j=this.options,Y=j.stacking,H=this.xAxis,W=H.categories,q=this.enabledDataSorting,Q=this.yAxis,J=this.points,nt=J.length,lt=this.pointPlacementToXValue(),gt=!!lt,mt=j.threshold,bt=j.startFromThreshold?mt:0,yt=this.zoneAxis||"y",dt=Number.MAX_VALUE;for(L=0;L<nt;L++){var ot=J[L],at=ot.x,ut=void 0,vt=void 0,Ct=ot.y,xt=ot.low,St=Y&&Q.stacking&&Q.stacking.stacks[(this.negStacks&&Ct<(bt?0:mt)?"-":"")+this.stackKey];if((Q.positiveValuesOnly&&!Q.validatePositiveValue(Ct)||H.positiveValuesOnly&&!H.validatePositiveValue(at))&&(ot.isNull=!0),ot.plotX=O=g(x(H.translate(at,0,0,0,1,lt,this.type==="flags"),-1e5,1e5)),Y&&this.visible&&St&&St[at]){var Mt=this.getStackIndicator(Mt,at,this.index);!ot.isNull&&Mt.key&&(vt=(ut=St[at]).points[Mt.key]),ut&&n(vt)&&(xt=vt[0],Ct=vt[1],xt===bt&&Mt.key===St[at].base&&(xt=d(l(mt)?mt:Q.min)),Q.positiveValuesOnly&&r(xt)&&0>=xt&&(xt=void 0),ot.total=ot.stackTotal=d(ut.total),ot.percentage=r(ot.y)&&ut.total?ot.y/ut.total*100:void 0,ot.stackY=Ct,this.irregularWidths||ut.setOffset(this.pointXOffset||0,this.barW||0,void 0,void 0,void 0,this.xAxis))}if(ot.yBottom=r(xt)?x(Q.translate(xt,0,1,0,1),-1e5,1e5):void 0,this.dataModify&&(Ct=this.dataModify.modifyValue(Ct,L)),ot.plotY=void 0,l(Ct)&&(ut=Q.translate(Ct,!1,!0,!1,!0))!==void 0&&(ot.plotY=x(ut,-1e5,1e5)),ot.isInside=this.isPointInside(ot),ot.clientX=gt?g(H.translate(at,0,0,0,1,lt)):O,ot.negative=ot[yt]<(j[yt+"Threshold"]||mt||0),ot.category=d(W&&W[ot.x],ot.x),!ot.isNull&&ot.visible!==!1){wt!==void 0&&(dt=Math.min(dt,Math.abs(O-wt)));var wt=O}ot.zone=this.zones.length?ot.getZone():void 0,!ot.graphic&&this.group&&q&&(ot.isNew=!0)}this.closestPointRangePx=dt,e(this,"afterTranslate")},R.prototype.getValidPoints=function(L,O,j){var Y=this.chart;return(L||this.points||[]).filter(function(H){return!(O&&!Y.isInsidePlot(H.plotX,H.plotY,{inverted:Y.inverted}))&&H.visible!==!1&&(j||!H.isNull)})},R.prototype.getClipBox=function(){var L=this.chart,O=this.xAxis,j=this.yAxis,Y=k(L.clipBox);return O&&O.len!==L.plotSizeX&&(Y.width=O.len),j&&j.len!==L.plotSizeY&&(Y.height=j.len),Y},R.prototype.getSharedClipKey=function(){return this.sharedClipKey=(this.options.xAxis||0)+","+(this.options.yAxis||0)},R.prototype.setClip=function(){var L=this.chart,O=this.group,j=this.markerGroup,Y=L.sharedClips;L=L.renderer;var H=this.getClipBox(),W=this.getSharedClipKey(),q=Y[W];q?q.animate(H):Y[W]=q=L.clipRect(H),O&&O.clip(this.options.clip===!1?void 0:q),j&&j.clip()},R.prototype.animate=function(L){var O=this.chart,j=this.group,Y=this.markerGroup,H=O.inverted,W=M(this.options.animation),q=[this.getSharedClipKey(),W.duration,W.easing,W.defer].join(),Q=O.sharedClips[q],J=O.sharedClips[q+"m"];if(L&&j)W=this.getClipBox(),Q?Q.attr("height",W.height):(W.width=0,H&&(W.x=O.plotHeight),Q=O.renderer.clipRect(W),O.sharedClips[q]=Q,J=O.renderer.clipRect({x:-99,y:-99,width:H?O.plotWidth+199:99,height:H?99:O.plotHeight+199}),O.sharedClips[q+"m"]=J),j.clip(Q),Y&&Y.clip(J);else if(Q&&!Q.hasClass("highcharts-animating")){O=this.getClipBox();var nt=W.step;Y&&Y.element.childNodes.length&&(W.step=function(lt,gt){nt&&nt.apply(gt,arguments),gt.prop==="width"&&J&&J.element&&J.attr(H?"height":"width",lt+99)}),Q.addClass("highcharts-animating").animate(O,W)}},R.prototype.afterAnimate=function(){var L=this;this.setClip(),D(this.chart.sharedClips,function(O,j,Y){O&&!L.chart.container.querySelector('[clip-path="url(#'.concat(O.id,')"]'))&&(O.destroy(),delete Y[j])}),this.finishedAnimating=!0,e(this,"afterAnimate")},R.prototype.drawPoints=function(L){L===void 0&&(L=this.points);var O,j,Y=this.chart,H=Y.styledMode,W=this.colorAxis,q=this.options.marker,Q=this[this.specialGroup||"markerGroup"],J=this.xAxis,nt=d(q.enabled,!(J&&!J.isRadial)||null,this.closestPointRangePx>=q.enabledThreshold*q.radius);if(q.enabled!==!1||this._hasPointMarkers)for(O=0;O<L.length;O++){var lt=L[O],gt=(j=lt.graphic)?"animate":"attr",mt=lt.marker||{},bt=!!lt.marker;if((nt&&mt.enabled===void 0||mt.enabled)&&!lt.isNull&<.visible!==!1){var yt=d(mt.symbol,this.symbol,"rect"),dt=this.markerAttribs(lt,lt.selected&&"select");this.enabledDataSorting&&(lt.startXPos=J.reversed?-(dt.width||0):J.width);var ot=lt.isInside!==!1;!j&&ot&&(0<(dt.width||0)||lt.hasImage)&&(lt.graphic=j=Y.renderer.symbol(yt,dt.x,dt.y,dt.width,dt.height,bt?mt:q).add(Q),this.enabledDataSorting&&Y.hasRendered&&(j.attr({x:lt.startXPos}),gt="animate")),j&>==="animate"&&j[ot?"show":"hide"](ot).animate(dt),j&&(mt=this.pointAttribs(lt,H||!lt.selected?void 0:"select"),H?W&&j.css({fill:mt.fill}):j[gt](mt)),j&&j.addClass(lt.getClassName(),!0)}else j&&(lt.graphic=j.destroy())}},R.prototype.markerAttribs=function(L,O){var j=this.options,Y=j.marker,H=L.marker||{},W=H.symbol||Y.symbol,q={},Q=d(H.radius,Y&&Y.radius);return O&&(Y=Y.states[O],O=H.states&&H.states[O],Q=d(O&&O.radius,Y&&Y.radius,Q&&Q+(Y&&Y.radiusPlus||0))),L.hasImage=W&&W.indexOf("url")===0,L.hasImage&&(Q=0),L=L.pos(),l(Q)&&L&&(q.x=L[0]-Q,q.y=L[1]-Q,j.crisp&&(q.x=Math.floor(q.x))),Q&&(q.width=q.height=2*Q),q},R.prototype.pointAttribs=function(L,O){var j=this.options.marker,Y=L&&L.options,H=Y&&Y.marker||{},W=Y&&Y.color,q=L&&L.color,Q=L&&L.zone&&L.zone.color,J=this.color;return L=d(H.lineWidth,j.lineWidth),Y=1,J=W||Q||q||J,W=H.fillColor||j.fillColor||J,q=H.lineColor||j.lineColor||J,O=O||"normal",j=j.states[O]||{},O=H.states&&H.states[O]||{},L=d(O.lineWidth,j.lineWidth,L+d(O.lineWidthPlus,j.lineWidthPlus,0)),W=O.fillColor||j.fillColor||W,{stroke:q=O.lineColor||j.lineColor||q,"stroke-width":L,fill:W,opacity:Y=d(O.opacity,j.opacity,Y)}},R.prototype.destroy=function(L){var O,j,Y,H=this,W=H.chart,q=/AppleWebKit\/533/.test(u.navigator.userAgent),Q=H.data||[];for(e(H,"destroy",{keepEventsForUpdate:L}),this.removeEvents(L),(H.axisTypes||[]).forEach(function(J){(Y=H[J])&&Y.series&&(a(Y.series,H),Y.isDirty=Y.forceRedraw=!0)}),H.legendItem&&H.chart.legend.destroyItem(H),O=Q.length;O--;)(j=Q[O])&&j.destroy&&j.destroy();H.clips&&H.clips.forEach(function(J){return J.destroy()}),E.clearTimeout(H.animationTimeout),D(H,function(J,nt){J instanceof I&&!J.survive&&J[q&&nt==="group"?"hide":"destroy"]()}),W.hoverSeries===H&&(W.hoverSeries=void 0),a(W.series,H),W.orderSeries(),D(H,function(J,nt){L&&nt==="hcEvents"||delete H[nt]})},R.prototype.applyZones=function(){var L,O,j,Y,H,W,q,Q,J=this,nt=this.chart,lt=nt.renderer,gt=this.zones,mt=this.clips||[],bt=this.graph,yt=this.area,dt=Math.max(nt.plotWidth,nt.plotHeight),ot=this[(this.zoneAxis||"y")+"Axis"],at=nt.inverted,ut=!1;if(gt.length&&(bt||yt)&&ot&&ot.min!==void 0){var vt=ot.reversed,Ct=ot.horiz;bt&&!this.showLine&&bt.hide(),yt&&yt.hide();var xt=ot.getExtremes();gt.forEach(function(St,Mt){L=vt?Ct?nt.plotWidth:0:Ct?0:ot.toPixels(xt.min)||0,L=x(d(O,L),0,dt),O=x(Math.round(ot.toPixels(d(St.value,xt.max),!0)||0),0,dt),ut&&(L=O=ot.toPixels(xt.max)),Y=Math.abs(L-O),H=Math.min(L,O),W=Math.max(L,O),ot.isXAxis?(j={x:at?W:H,y:0,width:Y,height:dt},Ct||(j.x=nt.plotHeight-j.x)):(j={x:0,y:at?W:H,width:dt,height:Y},Ct&&(j.y=nt.plotWidth-j.y)),at&<.isVML&&(j=ot.isXAxis?{x:0,y:vt?H:W,height:j.width,width:nt.chartWidth}:{x:j.y-nt.plotLeft-nt.spacingBox.x,y:0,width:j.height,height:nt.chartHeight}),mt[Mt]?mt[Mt].animate(j):mt[Mt]=lt.clipRect(j),q=J["zone-area-"+Mt],Q=J["zone-graph-"+Mt],bt&&Q&&Q.clip(mt[Mt]),yt&&q&&q.clip(mt[Mt]),ut=St.value>xt.max,J.resetZones&&O===0&&(O=void 0)}),this.clips=mt}else J.visible&&(bt&&bt.show(),yt&&yt.show())},R.prototype.plotGroup=function(L,O,j,Y,H){var W=this[L],q=!W;return j={visibility:j,zIndex:Y||.1},this.opacity===void 0||this.chart.styledMode||this.state==="inactive"||(j.opacity=this.opacity),q&&(this[L]=W=this.chart.renderer.g().add(H)),W.addClass("highcharts-"+O+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(r(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(W.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),W.attr(j)[q?"attr":"animate"](this.getPlotBox(O)),W},R.prototype.getPlotBox=function(L){var O=this.xAxis,j=this.yAxis,Y=this.chart;return L=Y.inverted&&!Y.polar&&O&&this.invertible!==!1&&L==="series",Y.inverted&&(O=j,j=this.xAxis),{translateX:O?O.left:Y.plotLeft,translateY:j?j.top:Y.plotTop,rotation:L?90:0,rotationOriginX:L?(O.len-j.len)/2:0,rotationOriginY:L?(O.len+j.len)/2:0,scaleX:L?-1:1,scaleY:1}},R.prototype.removeEvents=function(L){L||C(this),this.eventsToUnbind.length&&(this.eventsToUnbind.forEach(function(O){O()}),this.eventsToUnbind.length=0)},R.prototype.render=function(){var L=this,O=L.chart,j=L.options,Y=M(j.animation),H=L.visible?"inherit":"hidden",W=j.zIndex,q=L.hasRendered,Q=O.seriesGroup;O=!L.finishedAnimating&&O.renderer.isSVG?Y.duration:0,e(this,"render"),L.plotGroup("group","series",H,W,Q),L.markerGroup=L.plotGroup("markerGroup","markers",H,W,Q),j.clip!==!1&&L.setClip(),L.animate&&O&&L.animate(!0),L.drawGraph&&(L.drawGraph(),L.applyZones()),L.visible&&L.drawPoints(),L.drawDataLabels&&L.drawDataLabels(),L.redrawPoints&&L.redrawPoints(),L.drawTracker&&L.options.enableMouseTracking!==!1&&L.drawTracker(),L.animate&&O&&L.animate(),q||(O&&Y.defer&&(O+=Y.defer),L.animationTimeout=N(function(){L.afterAnimate()},O||0)),L.isDirty=!1,L.hasRendered=!0,e(L,"afterRender")},R.prototype.redraw=function(){var L=this.isDirty||this.isDirtyData;this.translate(),this.render(),L&&delete this.kdTree},R.prototype.searchPoint=function(L,O){var j=this.xAxis,Y=this.yAxis,H=this.chart.inverted;return this.searchKDTree({clientX:H?j.len-L.chartY+j.pos:L.chartX-j.pos,plotY:H?Y.len-L.chartX+Y.pos:L.chartY-Y.pos},O,L)},R.prototype.buildKDTree=function(L){function O(H,W,q){var Q=H&&H.length;if(Q){var J=j.kdAxisArray[W%q];return H.sort(function(nt,lt){return nt[J]-lt[J]}),{point:H[Q=Math.floor(Q/2)],left:O(H.slice(0,Q),W+1,q),right:O(H.slice(Q+1),W+1,q)}}}this.buildingKdTree=!0;var j=this,Y=-1<j.options.findNearestPointBy.indexOf("y")?2:1;delete j.kdTree,N(function(){j.kdTree=O(j.getValidPoints(null,!j.directTouch),Y,Y),j.buildingKdTree=!1},j.options.kdNow||L&&L.type==="touchstart"?0:1)},R.prototype.searchKDTree=function(L,O,j){var Y=this,H=this.kdAxisArray[0],W=this.kdAxisArray[1],q=O?"distX":"dist";if(O=-1<Y.options.findNearestPointBy.indexOf("y")?2:1,this.kdTree||this.buildingKdTree||this.buildKDTree(j),this.kdTree)return function Q(J,nt,lt,gt){var mt=nt.point,bt=Y.kdAxisArray[lt%gt],yt=mt,dt=r(J[H])&&r(mt[H])?Math.pow(J[H]-mt[H],2):null,ot=r(J[W])&&r(mt[W])?Math.pow(J[W]-mt[W],2):null;return ot=(dt||0)+(ot||0),mt.dist=r(ot)?Math.sqrt(ot):Number.MAX_VALUE,mt.distX=r(dt)?Math.sqrt(dt):Number.MAX_VALUE,dt=0>(bt=J[bt]-mt[bt])?"right":"left",nt[ot=0>bt?"left":"right"]&&(yt=(ot=Q(J,nt[ot],lt+1,gt))[q]<yt[q]?ot:mt),nt[dt]&&Math.sqrt(bt*bt)<yt[q]&&(yt=(J=Q(J,nt[dt],lt+1,gt))[q]<yt[q]?J:yt),yt}(L,this.kdTree,O,O)},R.prototype.pointPlacementToXValue=function(){var L=this.options,O=L.pointRange,j=this.xAxis;return(L=L.pointPlacement)==="between"&&(L=j.reversed?-.5:.5),l(L)?L*(O||j.pointRange):0},R.prototype.isPointInside=function(L){var O=this.chart,j=this.xAxis,Y=this.yAxis;return L.plotY!==void 0&&L.plotX!==void 0&&0<=L.plotY&&L.plotY<=(Y?Y.len:O.plotHeight)&&0<=L.plotX&&L.plotX<=(j?j.len:O.plotWidth)},R.prototype.drawTracker=function(){var L=this,O=L.options,j=O.trackByArea,Y=[].concat(j?L.areaPath:L.graphPath),H=L.chart,W=H.pointer,q=H.renderer,Q=H.options.tooltip.snap,J=L.tracker,nt=function(gt){H.hoverSeries!==L&&L.onMouseOver()},lt="rgba(192,192,192,"+(m?1e-4:.002)+")";J?J.attr({d:Y}):L.graph&&(L.tracker=q.path(Y).attr({visibility:L.visible?"inherit":"hidden",zIndex:2}).addClass(j?"highcharts-tracker-area":"highcharts-tracker-line").add(L.group),H.styledMode||L.tracker.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:lt,fill:j?lt:"none","stroke-width":L.graph.strokeWidth()+(j?0:2*Q)}),[L.tracker,L.markerGroup,L.dataLabelsGroup].forEach(function(gt){gt&&(gt.addClass("highcharts-tracker").on("mouseover",nt).on("mouseout",function(mt){W.onTrackerMouseOut(mt)}),O.cursor&&!H.styledMode&>.css({cursor:O.cursor}),f)&>.on("touchstart",nt)})),e(this,"afterDrawTracker")},R.prototype.addPoint=function(L,O,j,Y,H){var W=this.options,q=this.data,Q=this.chart,J=this.xAxis;J=J&&J.hasNames&&J.names;var nt,lt=W.data,gt=this.xData;O=d(O,!0);var mt={series:this};this.pointClass.prototype.applyOptions.apply(mt,[L]);var bt=mt.x,yt=gt.length;if(this.requireSorting&&bt<gt[yt-1])for(nt=!0;yt&>[yt-1]>bt;)yt--;this.updateParallelArrays(mt,"splice",yt,0,0),this.updateParallelArrays(mt,yt),J&&mt.name&&(J[bt]=mt.name),lt.splice(yt,0,L),(nt||this.processedData)&&(this.data.splice(yt,0,null),this.processData()),W.legendType==="point"&&this.generatePoints(),j&&(q[0]&&q[0].remove?q[0].remove(!1):(q.shift(),this.updateParallelArrays(mt,"shift"),lt.shift())),H!==!1&&e(this,"addPoint",{point:mt}),this.isDirtyData=this.isDirty=!0,O&&Q.redraw(Y)},R.prototype.removePoint=function(L,O,j){var Y=this,H=Y.data,W=H[L],q=Y.points,Q=Y.chart,J=function(){q&&q.length===H.length&&q.splice(L,1),H.splice(L,1),Y.options.data.splice(L,1),Y.updateParallelArrays(W||{series:Y},"splice",L,1),W&&W.destroy(),Y.isDirty=!0,Y.isDirtyData=!0,O&&Q.redraw()};P(j,Q),O=d(O,!0),W?W.firePointEvent("remove",null,J):J()},R.prototype.remove=function(L,O,j,Y){function H(){W.destroy(Y),q.isDirtyLegend=q.isDirtyBox=!0,q.linkSeries(),d(L,!0)&&q.redraw(O)}var W=this,q=W.chart;j!==!1?e(W,"remove",null,H):H()},R.prototype.update=function(L,O){L=c(L,this.userOptions),e(this,"update",{options:L});var j=this,Y=j.chart,H=j.userOptions,W=j.initialType||j.type,q=Y.options.plotOptions,Q=v[W].prototype,J=j.finishedAnimating&&{animation:!1},nt={},lt=["eventOptions","navigatorSeries","baseSeries"],gt=L.type||H.type||Y.options.chart.type,mt=!(this.hasDerivedData||gt&>!==this.type||L.pointStart!==void 0||L.pointInterval!==void 0||L.relativeXValue!==void 0||L.joinBy||L.mapData||j.hasOptionChanged("dataGrouping")||j.hasOptionChanged("pointStart")||j.hasOptionChanged("pointInterval")||j.hasOptionChanged("pointIntervalUnit")||j.hasOptionChanged("keys"));if(gt=gt||W,mt&&(lt.push("data","isDirtyData","points","processedData","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","_hasPointLabels","clips","nodes","layout","level","mapMap","mapData","minY","maxY","minX","maxX"),L.visible!==!1&<.push("area","graph"),j.parallelArrays.forEach(function(yt){lt.push(yt+"Data")}),L.data&&(L.dataSorting&&i(j.options.dataSorting,L.dataSorting),this.setData(L.data,!1))),L=k(H,J,{index:H.index===void 0?j.index:H.index,pointStart:d(q&&q.series&&q.series.pointStart,H.pointStart,j.xData[0])},!mt&&{data:j.options.data},L),mt&&L.data&&(L.data=j.options.data),(lt=["group","markerGroup","dataLabelsGroup","transformGroup","shadowGroup"].concat(lt)).forEach(function(yt){lt[yt]=j[yt],delete j[yt]}),q=!1,v[gt]){if(q=gt!==j.type,j.remove(!1,!1,!1,!0),q)if(Object.setPrototypeOf)Object.setPrototypeOf(j,v[gt].prototype);else{for(bt in J=Object.hasOwnProperty.call(j,"hcEvents")&&j.hcEvents,Q)j[bt]=void 0;i(j,v[gt].prototype),J?j.hcEvents=J:delete j.hcEvents}}else t(17,!0,Y,{missingModuleFor:gt});if(lt.forEach(function(yt){j[yt]=lt[yt]}),j.init(Y,L),mt&&this.points){if((L=j.options).visible===!1)nt.graphic=1,nt.dataLabel=1;else if(!j._hasPointLabels){Q=L.marker;var bt=L.dataLabels;H=H.marker||{},!Q||Q.enabled!==!1&&H.symbol===Q.symbol&&H.height===Q.height&&H.width===Q.width||(nt.graphic=1),bt&&bt.enabled===!1&&(nt.dataLabel=1)}for(H=0,Q=this.points;H<Q.length;H++)(bt=Q[H])&&bt.series&&(bt.resolveColor(),Object.keys(nt).length&&bt.destroyElements(nt),L.showInLegend===!1&&bt.legendItem&&Y.legend.destroyItem(bt))}j.initialType=W,Y.linkSeries(),q&&j.linkedSeries.length&&(j.isDirtyData=!0),e(this,"afterUpdate"),d(O,!0)&&Y.redraw(!!mt&&void 0)},R.prototype.setName=function(L){this.name=this.options.name=this.userOptions.name=L,this.chart.isDirtyLegend=!0},R.prototype.hasOptionChanged=function(L){var O=this.options[L],j=this.chart.options.plotOptions,Y=this.userOptions[L];return Y?O!==Y:O!==d(j&&j[this.type]&&j[this.type][L],j&&j.series&&j.series[L],O)},R.prototype.onMouseOver=function(){var L=this.chart,O=L.hoverSeries;L.pointer.setHoverChartIndex(),O&&O!==this&&O.onMouseOut(),this.options.events.mouseOver&&e(this,"mouseOver"),this.setState("hover"),L.hoverSeries=this},R.prototype.onMouseOut=function(){var L=this.options,O=this.chart,j=O.tooltip,Y=O.hoverPoint;O.hoverSeries=null,Y&&Y.onMouseOut(),this&&L.events.mouseOut&&e(this,"mouseOut"),!j||this.stickyTracking||j.shared&&!this.noSharedTooltip||j.hide(),O.series.forEach(function(H){H.setState("",!0)})},R.prototype.setState=function(L,O){var j=this,Y=j.options,H=j.graph,W=Y.inactiveOtherPoints,q=Y.states,Q=d(q[L||"normal"]&&q[L||"normal"].animation,j.chart.options.chart.animation),J=Y.lineWidth,nt=0,lt=Y.opacity;if(L=L||"",j.state!==L&&([j.group,j.markerGroup,j.dataLabelsGroup].forEach(function(gt){gt&&(j.state&>.removeClass("highcharts-series-"+j.state),L&>.addClass("highcharts-series-"+L))}),j.state=L,!j.chart.styledMode)){if(q[L]&&q[L].enabled===!1)return;if(L&&(J=q[L].lineWidth||J+(q[L].lineWidthPlus||0),lt=d(q[L].opacity,lt)),H&&!H.dashstyle&&l(J))for(Y={"stroke-width":J},H.animate(Y,Q);j["zone-graph-"+nt];)j["zone-graph-"+nt].animate(Y,Q),nt+=1;W||[j.group,j.markerGroup,j.dataLabelsGroup,j.labelBySeries].forEach(function(gt){gt&>.animate({opacity:lt},Q)})}O&&W&&j.points&&j.setAllPointsToState(L||void 0)},R.prototype.setAllPointsToState=function(L){this.points.forEach(function(O){O.setState&&O.setState(L)})},R.prototype.setVisible=function(L,O){var j=this,Y=j.chart,H=Y.options.chart.ignoreHiddenSeries,W=j.visible,q=(j.visible=L=j.options.visible=j.userOptions.visible=L===void 0?!W:L)?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(function(Q){j[Q]&&j[Q][q]()}),Y.hoverSeries!==j&&(Y.hoverPoint&&Y.hoverPoint.series)!==j||j.onMouseOut(),j.legendItem&&Y.legend.colorizeItem(j,L),j.isDirty=!0,j.options.stacking&&Y.series.forEach(function(Q){Q.options.stacking&&Q.visible&&(Q.isDirty=!0)}),j.linkedSeries.forEach(function(Q){Q.setVisible(L,!1)}),H&&(Y.isDirtyBox=!0),e(j,q),O!==!1&&Y.redraw()},R.prototype.show=function(){this.setVisible(!0)},R.prototype.hide=function(){this.setVisible(!1)},R.prototype.select=function(L){this.selected=L=this.options.selected=L===void 0?!this.selected:L,this.checkbox&&(this.checkbox.checked=L),e(this,L?"select":"unselect")},R.prototype.shouldShowTooltip=function(L,O,j){return j===void 0&&(j={}),j.series=this,j.visiblePlotOnly=!0,this.chart.isInsidePlot(L,O,j)},R.defaultOptions=V,R.types=z.seriesTypes,R.registerType=z.registerSeriesType,R}(),i(G.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,cropShoulder:1,directTouch:!1,drawLegendSymbol:$.drawLineMarker,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:Z,requireSorting:!0,sorted:!0}),z.series=G,G}),_(et,"Extensions/ScrollablePlotArea.js",[et["Core/Animation/AnimationUtilities.js"],et["Core/Axis/Axis.js"],et["Core/Chart/Chart.js"],et["Core/Series/Series.js"],et["Core/Renderer/RendererRegistry.js"],et["Core/Utilities.js"]],function(G,B,X,U,$,Z){var V=G.stop,z=Z.addEvent,I=Z.createElement,E=Z.defined,M=Z.merge,P=Z.pick;z(X,"afterSetChartSize",function(y){var h=this.options.chart.scrollablePlotArea,f=h&&h.minWidth;if(h=h&&h.minHeight,!this.renderer.forExport){if(f){if(this.scrollablePixelsX=f=Math.max(0,f-this.chartWidth)){this.scrollablePlotBox=this.renderer.scrollablePlotBox=M(this.plotBox),this.plotBox.width=this.plotWidth+=f,this.inverted?this.clipBox.height+=f:this.clipBox.width+=f;var m={1:{name:"right",value:f}}}}else h&&(this.scrollablePixelsY=f=Math.max(0,h-this.chartHeight),E(f)&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=M(this.plotBox),this.plotBox.height=this.plotHeight+=f,this.inverted?this.clipBox.width+=f:this.clipBox.height+=f,m={2:{name:"bottom",value:f}}));m&&!y.skipAxes&&this.axes.forEach(function(u){m[u.side]?u.getPlotLinePath=function(){var v=m[u.side].name,S=this[v];this[v]=S-m[u.side].value;var w=B.prototype.getPlotLinePath.apply(this,arguments);return this[v]=S,w}:(u.setAxisSize(),u.setAxisTranslation())})}}),z(X,"render",function(){this.scrollablePixelsX||this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()}),X.prototype.setUpScrolling=function(){var y,h=this,f={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(f.overflowX="auto"),this.scrollablePixelsY&&(f.overflowY="auto"),this.scrollingParent=I("div",{className:"highcharts-scrolling-parent"},{position:"relative"},this.renderTo),this.scrollingContainer=I("div",{className:"highcharts-scrolling"},f,this.scrollingParent),z(this.scrollingContainer,"scroll",function(){h.pointer&&(delete h.pointer.chartPosition,h.hoverPoint&&(y=h.hoverPoint),h.pointer.runPointActions(void 0,y,!0))}),this.innerContainer=I("div",{className:"highcharts-inner-container"},null,this.scrollingContainer),this.innerContainer.appendChild(this.container),this.setUpScrolling=null},X.prototype.moveFixedElements=function(){var y,h=this.container,f=this.fixedRenderer,m=".highcharts-breadcrumbs-group .highcharts-contextbutton .highcharts-credits .highcharts-legend .highcharts-legend-checkbox .highcharts-navigator-series .highcharts-navigator-xaxis .highcharts-navigator-yaxis .highcharts-navigator .highcharts-reset-zoom .highcharts-drillup-button .highcharts-scrollbar .highcharts-subtitle .highcharts-title".split(" ");this.scrollablePixelsX&&!this.inverted?y=".highcharts-yaxis":this.scrollablePixelsX&&this.inverted||this.scrollablePixelsY&&!this.inverted?y=".highcharts-xaxis":this.scrollablePixelsY&&this.inverted&&(y=".highcharts-yaxis"),y&&m.push(y+":not(.highcharts-radial-axis)",y+"-labels:not(.highcharts-radial-axis-labels)"),m.forEach(function(u){[].forEach.call(h.querySelectorAll(u),function(v){(v.namespaceURI===f.SVG_NS?f.box:f.box.parentNode).appendChild(v),v.style.pointerEvents="auto"})})},X.prototype.applyFixed=function(){var y=!this.fixedDiv,h=this.options.chart,f=h.scrollablePlotArea,m=$.getRendererType();y?(this.fixedDiv=I("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(h.style&&h.style.zIndex||0)+2,top:0},null,!0),this.scrollingContainer&&this.scrollingContainer.parentNode.insertBefore(this.fixedDiv,this.scrollingContainer),this.renderTo.style.overflow="visible",this.fixedRenderer=h=new m(this.fixedDiv,this.chartWidth,this.chartHeight,this.options.chart.style),this.scrollableMask=h.path().attr({fill:this.options.chart.backgroundColor||"#fff","fill-opacity":P(f.opacity,.85),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),z(this,"afterShowResetZoom",this.moveFixedElements),z(this,"afterApplyDrilldown",this.moveFixedElements),z(this,"afterLayOutTitles",this.moveFixedElements)):this.fixedRenderer.setSize(this.chartWidth,this.chartHeight),(this.scrollableDirty||y)&&(this.scrollableDirty=!1,this.moveFixedElements()),h=this.chartWidth+(this.scrollablePixelsX||0),m=this.chartHeight+(this.scrollablePixelsY||0),V(this.container),this.container.style.width=h+"px",this.container.style.height=m+"px",this.renderer.boxWrapper.attr({width:h,height:m,viewBox:[0,0,h,m].join(" ")}),this.chartBackground.attr({width:h,height:m}),this.scrollingContainer.style.height=this.chartHeight+"px",y&&(f.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*f.scrollPositionX),f.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY*f.scrollPositionY)),m=this.axisOffset,y=this.plotTop-m[0]-1,f=this.plotLeft-m[3]-1,h=this.plotTop+this.plotHeight+m[2]+1,m=this.plotLeft+this.plotWidth+m[1]+1;var u=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),v=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0);y=this.scrollablePixelsX?[["M",0,y],["L",this.plotLeft-1,y],["L",this.plotLeft-1,h],["L",0,h],["Z"],["M",u,y],["L",this.chartWidth,y],["L",this.chartWidth,h],["L",u,h],["Z"]]:this.scrollablePixelsY?[["M",f,0],["L",f,this.plotTop-1],["L",m,this.plotTop-1],["L",m,0],["Z"],["M",f,v],["L",f,this.chartHeight],["L",m,this.chartHeight],["L",m,v],["Z"]]:[["M",0,0]],this.redrawTrigger!=="adjustHeight"&&this.scrollableMask.attr({d:y})},z(B,"afterInit",function(){this.chart.scrollableDirty=!0}),z(U,"show",function(){this.chart.scrollableDirty=!0})}),_(et,"Core/Axis/Stacking/StackItem.js",[et["Core/FormatUtilities.js"],et["Core/Series/SeriesRegistry.js"],et["Core/Utilities.js"]],function(G,B,X){var U=G.format,$=B.series,Z=X.destroyObjectProperties,V=X.pick,z=X.isNumber;return G=function(){function I(E,M,P,y,h){var f=E.chart.inverted,m=E.reversed;this.axis=E,E=this.isNegative=!!P!=!!m,this.options=M=M||{},this.x=y,this.cumulative=this.total=null,this.points={},this.hasValidPoints=!1,this.stack=h,this.rightCliff=this.leftCliff=0,this.alignOptions={align:M.align||(f?E?"left":"right":"center"),verticalAlign:M.verticalAlign||(f?"middle":E?"bottom":"top"),y:M.y,x:M.x},this.textAlign=M.textAlign||(f?E?"right":"left":"center")}return I.prototype.destroy=function(){Z(this,this.axis)},I.prototype.render=function(E){var M=this.axis.chart,P=this.options,y=P.format;y=y?U(y,this,M):P.formatter.call(this),this.label?this.label.attr({text:y,visibility:"hidden"}):(this.label=M.renderer.label(y,null,void 0,P.shape,void 0,void 0,P.useHTML,!1,"stack-labels"),y={r:P.borderRadius||0,text:y,padding:V(P.padding,5),visibility:"hidden"},M.styledMode||(y.fill=P.backgroundColor,y.stroke=P.borderColor,y["stroke-width"]=P.borderWidth,this.label.css(P.style||{})),this.label.attr(y),this.label.added||this.label.add(E)),this.label.labelrank=M.plotSizeY},I.prototype.setOffset=function(E,M,P,y,h,f){var m=this.alignOptions,u=this.axis,v=this.label,S=this.options,w=this.textAlign,x=u.chart;E=this.getStackBox({xOffset:E,width:M,boxBottom:P,boxTop:y,defaultX:h,xAxis:f}),h=m.verticalAlign,v&&E&&(M=v.getBBox(),P=v.padding,y=V(S.overflow,"justify")==="justify",m.x=S.x||0,m.y=S.y||0,w=(h=this.adjustStackPosition({labelBox:M,verticalAlign:h,textAlign:w})).x,h=h.y,E.x-=w,E.y-=h,v.align(m,!1,E),(w=x.isInsidePlot(v.alignAttr.x+m.x+w,v.alignAttr.y+m.y+h))||(y=!1),y&&$.prototype.justifyDataLabel.call(u,v,m,v.alignAttr,M,E),v.attr({x:v.alignAttr.x,y:v.alignAttr.y,rotation:S.rotation,rotationOriginX:M.width/2,rotationOriginY:M.height/2}),V(!y&&S.crop,!0)&&(w=z(v.x)&&z(v.y)&&x.isInsidePlot(v.x-P+v.width,v.y)&&x.isInsidePlot(v.x+P,v.y)),v[w?"show":"hide"]())},I.prototype.adjustStackPosition=function(E){var M=E.labelBox,P={bottom:0,middle:1,top:2,right:1,center:0,left:-1};return{x:M.width/2+M.width/2*P[E.textAlign],y:M.height/2*P[E.verticalAlign]}},I.prototype.getStackBox=function(E){var M=this.axis,P=M.chart,y=E.boxTop,h=E.defaultX,f=E.xOffset,m=E.width,u=E.boxBottom;return y=M.stacking.usePercentage?100:V(y,this.total,0),y=M.toPixels(y),E=V(h,(E.xAxis||P.xAxis[0]).toPixels(this.x))+f,M=M.toPixels(u||0),M=Math.abs(y-M),u=this.isNegative,P.inverted?{x:(u?y:y-M)-P.plotLeft,y:E-P.plotTop,width:M,height:m}:{x:E-P.plotLeft,y:(u?y-M:y)-P.plotTop,width:m,height:M}},I}(),G}),_(et,"Core/Axis/Stacking/StackingAxis.js",[et["Core/Animation/AnimationUtilities.js"],et["Core/Axis/Axis.js"],et["Core/Series/SeriesRegistry.js"],et["Core/Axis/Stacking/StackItem.js"],et["Core/Utilities.js"]],function(G,B,X,U,$){function Z(){var i=this,o=i.inverted;i.yAxis.forEach(function(e){e.stacking&&e.stacking.stacks&&e.hasVisibleSeries&&(e.stacking.oldStacks=e.stacking.stacks)}),i.series.forEach(function(e){var s=e.xAxis&&e.xAxis.options||{};!e.options.stacking||e.visible!==!0&&i.options.chart.ignoreHiddenSeries!==!1||(e.stackKey=[e.type,a(e.options.stack,""),o?s.top:s.left,o?s.height:s.width].join())})}function V(){var i=this.stacking;if(i){var o=i.stacks;r(o,function(e,s){w(e),o[s]=null}),i&&i.stackTotalGroup&&i.stackTotalGroup.destroy()}}function z(){this.coll!=="yAxis"||this.stacking||(this.stacking=new t(this))}function I(i,o,e,s){return!S(i)||i.x!==o||s&&i.stackKey!==s?i={x:o,index:0,key:s,stackKey:s}:i.index++,i.key=[e,o,i.index].join(),i}function E(){var i,o=this,e=o.stackKey,s=o.yAxis.stacking.stacks,n=o.processedXData,l=o[o.options.stacking+"Stacker"];l&&[e,"-"+e].forEach(function(b){for(var k,D,d=n.length;d--;)k=n[d],i=o.getStackIndicator(i,k,o.index,b),(D=(k=s[b]&&s[b][k])&&k.points[i.key])&&l.call(o,D,k,d)})}function M(i,o,e){o=o.total?100/o.total:0,i[0]=v(i[0]*o),i[1]=v(i[1]*o),this.stackedYData[e]=i[1]}function P(){var i=this.yAxis.stacking;this.options.centerInCategory&&(this.is("column")||this.is("columnrange"))&&!this.options.stacking&&1<this.chart.series.length?m.setStackedPoints.call(this,"group"):i&&r(i.stacks,function(o,e){e.slice(-5)==="group"&&(r(o,function(s){return s.destroy()}),delete i.stacks[e])})}function y(i){var o=this.chart,e=i||this.options.stacking;if(e&&(this.visible===!0||o.options.chart.ignoreHiddenSeries===!1)){var s=this.processedXData,n=this.processedYData,l=[],b=n.length,k=this.options,D=k.threshold,d=a(k.startFromThreshold&&D,0);k=k.stack;var C,A,N="-"+(i=i?""+this.type+",".concat(e):this.stackKey),R=this.negStacks,L=(o=e==="group"?o.yAxis[0]:this.yAxis).stacking.stacks,O=o.stacking.oldStacks;for(o.stacking.stacksTouched+=1,A=0;A<b;A++){var j=s[A],Y=n[A],H=this.getStackIndicator(H,j,this.index),W=H.key,q=(C=R&&Y<(d?0:D))?N:i;L[q]||(L[q]={}),L[q][j]||(O[q]&&O[q][j]?(L[q][j]=O[q][j],L[q][j].total=null):L[q][j]=new U(o,o.options.stackLabels,!!C,j,k)),q=L[q][j],Y!==null?(q.points[W]=q.points[this.index]=[a(q.cumulative,d)],S(q.cumulative)||(q.base=W),q.touched=o.stacking.stacksTouched,0<H.index&&this.singleStacks===!1&&(q.points[W][0]=q.points[this.index+","+j+",0"][0])):q.points[W]=q.points[this.index]=null,e==="percent"?(C=C?i:N,R&&L[C]&&L[C][j]?(C=L[C][j],q.total=C.total=Math.max(C.total,q.total)+Math.abs(Y)||0):q.total=v(q.total+(Math.abs(Y)||0))):e==="group"?(c(Y)&&(Y=Y[0]),Y!==null&&(q.total=(q.total||0)+1)):q.total=v(q.total+(Y||0)),q.cumulative=e==="group"?(q.total||1)-1:a(q.cumulative,d)+(Y||0),Y!==null&&(q.points[W].push(q.cumulative),l[A]=q.cumulative,q.hasValidPoints=!0)}e==="percent"&&(o.stacking.usePercentage=!0),e!=="group"&&(this.stackedYData=l),o.stacking.oldStacks={}}}var h,f=G.getDeferredAnimation,m=X.series.prototype,u=$.addEvent,v=$.correctFloat,S=$.defined,w=$.destroyObjectProperties,x=$.fireEvent,c=$.isArray,g=$.isNumber,r=$.objectEach,a=$.pick,t=function(){function i(o){this.oldStacks={},this.stacks={},this.stacksTouched=0,this.axis=o}return i.prototype.buildStacks=function(){var o,e=this.axis,s=e.series,n=e.options.reversedStacks,l=s.length;for(this.usePercentage=!1,o=l;o--;){var b=s[n?o:l-o-1];b.setStackedPoints(),b.setGroupedPoints()}for(o=0;o<l;o++)s[o].modifyStacks();x(e,"afterBuildStacks")},i.prototype.cleanStacks=function(){if(this.oldStacks)var o=this.stacks=this.oldStacks;r(o,function(e){r(e,function(s){s.cumulative=s.total})})},i.prototype.resetStacks=function(){var o=this;r(this.stacks,function(e){r(e,function(s,n){g(s.touched)&&s.touched<o.stacksTouched?(s.destroy(),delete e[n]):(s.total=null,s.cumulative=null)})})},i.prototype.renderStackTotals=function(){var o=this.axis,e=o.chart,s=e.renderer,n=this.stacks;o=f(e,o.options.stackLabels&&o.options.stackLabels.animation||!1);var l=this.stackTotalGroup=this.stackTotalGroup||s.g("stack-labels").attr({zIndex:6,opacity:0}).add();l.translate(e.plotLeft,e.plotTop),r(n,function(b){r(b,function(k){k.render(l)})}),l.animate({opacity:1},o)},i}();return function(i){var o=[];i.compose=function(e,s,n){o.indexOf(e)===-1&&(o.push(e),u(e,"init",z),u(e,"destroy",V)),o.indexOf(s)===-1&&(o.push(s),s.prototype.getStacks=Z),o.indexOf(n)===-1&&(o.push(n),(e=n.prototype).getStackIndicator=I,e.modifyStacks=E,e.percentStacker=M,e.setGroupedPoints=P,e.setStackedPoints=y)}}(h||(h={})),h}),_(et,"Series/Line/LineSeries.js",[et["Core/Series/Series.js"],et["Core/Series/SeriesRegistry.js"],et["Core/Utilities.js"]],function(G,B,X){var U=this&&this.__extends||function(){var V=function(z,I){return(V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,M){E.__proto__=M}||function(E,M){for(var P in M)M.hasOwnProperty(P)&&(E[P]=M[P])})(z,I)};return function(z,I){function E(){this.constructor=z}V(z,I),z.prototype=I===null?Object.create(I):(E.prototype=I.prototype,new E)}}(),$=X.defined,Z=X.merge;return X=function(V){function z(){var I=V!==null&&V.apply(this,arguments)||this;return I.data=void 0,I.options=void 0,I.points=void 0,I}return U(z,V),z.prototype.drawGraph=function(){var I=this,E=this.options,M=(this.gappedPath||this.getGraphPath).call(this),P=this.chart.styledMode,y=[["graph","highcharts-graph"]];P||y[0].push(E.lineColor||this.color||"#cccccc",E.dashStyle),(y=I.getZonesGraphs(y)).forEach(function(h,f){var m=h[0],u=I[m],v=u?"animate":"attr";u?(u.endX=I.preventGraphAnimation?null:M.xMap,u.animate({d:M})):M.length&&(I[m]=u=I.chart.renderer.path(M).addClass(h[1]).attr({zIndex:1}).add(I.group)),u&&!P&&(m={stroke:h[2],"stroke-width":E.lineWidth||0,fill:I.fillGraph&&I.color||"none"},h[3]?m.dashstyle=h[3]:E.linecap!=="square"&&(m["stroke-linecap"]=m["stroke-linejoin"]="round"),u[v](m).shadow(2>f&&E.shadow)),u&&(u.startX=M.xMap,u.isArea=M.isArea)})},z.prototype.getGraphPath=function(I,E,M){var P,y=this,h=y.options,f=[],m=[],u=h.step,v=(I=I||y.points).reversed;return v&&I.reverse(),(u={right:1,center:2}[u]||u&&3)&&v&&(u=4-u),(I=this.getValidPoints(I,!1,!(h.connectNulls&&!E&&!M))).forEach(function(S,w){var x=S.plotX,c=S.plotY,g=I[w-1];(S.leftCliff||g&&g.rightCliff)&&!M&&(P=!0),S.isNull&&!$(E)&&0<w?P=!h.connectNulls:S.isNull&&!E?P=!0:(w===0||P?w=[["M",S.plotX,S.plotY]]:y.getPointSpline?w=[y.getPointSpline(I,S,w)]:u?(w=u===1?[["L",g.plotX,c]]:u===2?[["L",(g.plotX+x)/2,g.plotY],["L",(g.plotX+x)/2,c]]:[["L",x,g.plotY]]).push(["L",x,c]):w=[["L",x,c]],m.push(S.x),u&&(m.push(S.x),u===2&&m.push(S.x)),f.push.apply(f,w),P=!1)}),f.xMap=m,y.graphPath=f},z.prototype.getZonesGraphs=function(I){return this.zones.forEach(function(E,M){M=["zone-graph-"+M,"highcharts-graph highcharts-zone-graph-"+M+" "+(E.className||"")],this.chart.styledMode||M.push(E.color||this.color,E.dashStyle||this.options.dashStyle),I.push(M)},this),I},z.defaultOptions=Z(G.defaultOptions,{}),z}(G),B.registerSeriesType("line",X),X}),_(et,"Series/Area/AreaSeries.js",[et["Core/Color/Color.js"],et["Core/Legend/LegendSymbol.js"],et["Core/Series/SeriesRegistry.js"],et["Core/Utilities.js"]],function(G,B,X,U){var $=this&&this.__extends||function(){var M=function(P,y){return M=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,f){h.__proto__=f}||function(h,f){for(var m in f)f.hasOwnProperty(m)&&(h[m]=f[m])},M(P,y)};return function(P,y){function h(){this.constructor=P}M(P,y),P.prototype=y===null?Object.create(y):(h.prototype=y.prototype,new h)}}(),Z=G.parse,V=X.seriesTypes.line;G=U.extend;var z=U.merge,I=U.objectEach,E=U.pick;return U=function(M){function P(){var y=M!==null&&M.apply(this,arguments)||this;return y.data=void 0,y.options=void 0,y.points=void 0,y}return $(P,M),P.prototype.drawGraph=function(){this.areaPath=[],M.prototype.drawGraph.apply(this);var y=this,h=this.areaPath,f=this.options,m=[["area","highcharts-area",this.color,f.fillColor]];this.zones.forEach(function(u,v){m.push(["zone-area-"+v,"highcharts-area highcharts-zone-area-"+v+" "+u.className,u.color||y.color,u.fillColor||f.fillColor])}),m.forEach(function(u){var v=u[0],S={},w=y[v],x=w?"animate":"attr";w?(w.endX=y.preventGraphAnimation?null:h.xMap,w.animate({d:h})):(S.zIndex=0,(w=y[v]=y.chart.renderer.path(h).addClass(u[1]).add(y.group)).isArea=!0),y.chart.styledMode||(S.fill=E(u[3],Z(u[2]).setOpacity(E(f.fillOpacity,.75)).get())),w[x](S),w.startX=h.xMap,w.shiftUnit=f.step?2:1})},P.prototype.getGraphPath=function(y){var h=V.prototype.getGraphPath,f=this.options,m=f.stacking,u=this.yAxis,v=[],S=[],w=this.index,x=u.stacking.stacks[this.stackKey],c=f.threshold,g=Math.round(u.getThreshold(f.threshold));f=E(f.connectNulls,m==="percent");var r=function(s,n,l){var b=y[s];s=m&&x[b.x].points[w];var k=b[l+"Null"]||0;if(l=b[l+"Cliff"]||0,b=!0,l||k){var D=(k?s[0]:s[1])+l,d=s[0]+l;b=!!k}else!m&&y[n]&&y[n].isNull&&(D=d=c);D!==void 0&&(S.push({plotX:o,plotY:D===null?g:u.getThreshold(D),isNull:b,isCliff:!0}),v.push({plotX:o,plotY:d===null?g:u.getThreshold(d),doCurve:!1}))};y=y||this.points,m&&(y=this.getStackPoints(y));for(var a=0,t=y.length;a<t;++a){m||(y[a].leftCliff=y[a].rightCliff=y[a].leftNull=y[a].rightNull=void 0);var i=y[a].isNull,o=E(y[a].rectPlotX,y[a].plotX),e=m?E(y[a].yBottom,g):g;i&&!f||(f||r(a,a-1,"left"),i&&!m&&f||(S.push(y[a]),v.push({x:a,plotX:o,plotY:e})),f||r(a,a+1,"right"))}return r=h.call(this,S,!0,!0),v.reversed=!0,(e=(i=h.call(this,v,!0,!0))[0])&&e[0]==="M"&&(i[0]=["L",e[1],e[2]]),(i=r.concat(i)).length&&i.push(["Z"]),h=h.call(this,S,!1,f),i.xMap=r.xMap,this.areaPath=i,h},P.prototype.getStackPoints=function(y){var h=this,f=[],m=[],u=this.xAxis,v=this.yAxis,S=v.stacking.stacks[this.stackKey],w={},x=v.series,c=x.length,g=v.options.reversedStacks?1:-1,r=x.indexOf(h);if(y=y||this.points,this.options.stacking){for(var a=0;a<y.length;a++)y[a].leftNull=y[a].rightNull=void 0,w[y[a].x]=y[a];I(S,function(i,o){i.total!==null&&m.push(o)}),m.sort(function(i,o){return i-o});var t=x.map(function(i){return i.visible});m.forEach(function(i,o){var e,s,n=0;if(w[i]&&!w[i].isNull)f.push(w[i]),[-1,1].forEach(function(b){var k=b===1?"rightNull":"leftNull",D=S[m[o+b]],d=0;if(D)for(var C=r;0<=C&&C<c;){var A=x[C].index;(e=D.points[A])||(A===h.index?w[i][k]=!0:t[C]&&(s=S[i].points[A])&&(d-=s[1]-s[0])),C+=g}w[i][b===1?"rightCliff":"leftCliff"]=d});else{for(var l=r;0<=l&&l<c;){if(e=S[i].points[x[l].index]){n=e[1];break}l+=g}n=E(n,0),n=v.translate(n,0,1,0,1),f.push({isNull:!0,plotX:u.translate(i,0,0,0,1),x:i,plotY:n,yBottom:n})}})}return f},P.defaultOptions=z(V.defaultOptions,{threshold:0}),P}(V),G(U.prototype,{singleStacks:!1,drawLegendSymbol:B.drawRectangle}),X.registerSeriesType("area",U),U}),_(et,"Series/Spline/SplineSeries.js",[et["Core/Series/SeriesRegistry.js"],et["Core/Utilities.js"]],function(G,B){var X=this&&this.__extends||function(){var V=function(z,I){return(V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,M){E.__proto__=M}||function(E,M){for(var P in M)M.hasOwnProperty(P)&&(E[P]=M[P])})(z,I)};return function(z,I){function E(){this.constructor=z}V(z,I),z.prototype=I===null?Object.create(I):(E.prototype=I.prototype,new E)}}(),U=G.seriesTypes.line,$=B.merge,Z=B.pick;return B=function(V){function z(){var I=V!==null&&V.apply(this,arguments)||this;return I.data=void 0,I.options=void 0,I.points=void 0,I}return X(z,V),z.prototype.getPointSpline=function(I,E,M){var P=E.plotX||0,y=E.plotY||0,h=I[M-1];if(M=I[M+1],h&&!h.isNull&&h.doCurve!==!1&&!E.isCliff&&M&&!M.isNull&&M.doCurve!==!1&&!E.isCliff){I=h.plotY||0;var f=M.plotX||0;M=M.plotY||0;var m=0,u=(1.5*P+(h.plotX||0))/2.5,v=(1.5*y+I)/2.5,S=(1.5*y+M)/2.5;(f=(1.5*P+f)/2.5)!==u&&(m=(S-v)*(f-P)/(f-u)+y-S),S+=m,(v+=m)>I&&v>y?S=2*y-(v=Math.max(I,y)):v<I&&v<y&&(S=2*y-(v=Math.min(I,y))),S>M&&S>y?v=2*y-(S=Math.max(M,y)):S<M&&S<y&&(v=2*y-(S=Math.min(M,y))),E.rightContX=f,E.rightContY=S}return E=["C",Z(h.rightContX,h.plotX,0),Z(h.rightContY,h.plotY,0),Z(u,P,0),Z(v,y,0),P,y],h.rightContX=h.rightContY=void 0,E},z.defaultOptions=$(U.defaultOptions),z}(U),G.registerSeriesType("spline",B),B}),_(et,"Series/AreaSpline/AreaSplineSeries.js",[et["Series/Spline/SplineSeries.js"],et["Core/Legend/LegendSymbol.js"],et["Core/Series/SeriesRegistry.js"],et["Core/Utilities.js"]],function(G,B,X,U){var $=this&&this.__extends||function(){var E=function(M,P){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,h){y.__proto__=h}||function(y,h){for(var f in h)h.hasOwnProperty(f)&&(y[f]=h[f])},E(M,P)};return function(M,P){function y(){this.constructor=M}E(M,P),M.prototype=P===null?Object.create(P):(y.prototype=P.prototype,new y)}}(),Z=X.seriesTypes,V=Z.area;Z=Z.area.prototype;var z=U.extend,I=U.merge;return U=function(E){function M(){var P=E!==null&&E.apply(this,arguments)||this;return P.data=void 0,P.points=void 0,P.options=void 0,P}return $(M,E),M.defaultOptions=I(G.defaultOptions,V.defaultOptions),M}(G),z(U.prototype,{getGraphPath:Z.getGraphPath,getStackPoints:Z.getStackPoints,drawGraph:Z.drawGraph,drawLegendSymbol:B.drawRectangle}),X.registerSeriesType("areaspline",U),U}),_(et,"Series/Column/ColumnSeriesDefaults.js",[],function(){return{borderRadius:0,centerInCategory:!1,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{halo:!1,brightness:.1},select:{color:"#cccccc",borderColor:"#000000"}},dataLabels:{align:void 0,verticalAlign:void 0,y:void 0},startFromThreshold:!0,stickyTracking:!1,tooltip:{distance:6},threshold:0,borderColor:"#ffffff"}}),_(et,"Series/Column/ColumnSeries.js",[et["Core/Animation/AnimationUtilities.js"],et["Core/Color/Color.js"],et["Series/Column/ColumnSeriesDefaults.js"],et["Core/Globals.js"],et["Core/Legend/LegendSymbol.js"],et["Core/Series/Series.js"],et["Core/Series/SeriesRegistry.js"],et["Core/Utilities.js"]],function(G,B,X,U,$,Z,V,z){var I=this&&this.__extends||function(){var c=function(g,r){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,t){a.__proto__=t}||function(a,t){for(var i in t)t.hasOwnProperty(i)&&(a[i]=t[i])},c(g,r)};return function(g,r){function a(){this.constructor=g}c(g,r),g.prototype=r===null?Object.create(r):(a.prototype=r.prototype,new a)}}(),E=G.animObject,M=B.parse,P=U.hasTouch;G=U.noop;var y=z.clamp,h=z.defined,f=z.extend,m=z.fireEvent,u=z.isArray,v=z.isNumber,S=z.merge,w=z.pick,x=z.objectEach;return z=function(c){function g(){var r=c!==null&&c.apply(this,arguments)||this;return r.borderWidth=void 0,r.data=void 0,r.group=void 0,r.options=void 0,r.points=void 0,r}return I(g,c),g.prototype.animate=function(r){var a=this,t=this.yAxis,i=a.options,o=this.chart.inverted,e={},s=o?"translateX":"translateY";if(r)e.scaleY=.001,r=y(t.toPixels(i.threshold),t.pos,t.pos+t.len),o?e.translateX=r-t.len:e.translateY=r,a.clipBox&&a.setClip(),a.group.attr(e);else{var n=Number(a.group.attr(s));a.group.animate({scaleY:1},f(E(a.options.animation),{step:function(l,b){a.group&&(e[s]=n+b.pos*(t.pos-n),a.group.attr(e))}}))}},g.prototype.init=function(r,a){c.prototype.init.apply(this,arguments);var t=this;(r=t.chart).hasRendered&&r.series.forEach(function(i){i.type===t.type&&(i.isDirty=!0)})},g.prototype.getColumnMetrics=function(){var r=this,a=r.options,t=r.xAxis,i=r.yAxis,o=t.options.reversedStacks;o=t.reversed&&!o||!t.reversed&&o;var e,s={},n=0;a.grouping===!1?n=1:r.chart.series.forEach(function(D){var d=D.yAxis,C=D.options;if(D.type===r.type&&(D.visible||!r.chart.options.chart.ignoreHiddenSeries)&&i.len===d.len&&i.pos===d.pos){if(C.stacking&&C.stacking!=="group"){e=D.stackKey,s[e]===void 0&&(s[e]=n++);var A=s[e]}else C.grouping!==!1&&(A=n++);D.columnIndex=A}});var l=Math.min(Math.abs(t.transA)*(t.ordinal&&t.ordinal.slope||a.pointRange||t.closestPointRange||t.tickInterval||1),t.len),b=l*a.groupPadding,k=(l-2*b)/(n||1);return a=Math.min(a.maxPointWidth||t.len,w(a.pointWidth,k*(1-2*a.pointPadding))),r.columnMetrics={width:a,offset:(k-a)/2+(b+((r.columnIndex||0)+(o?1:0))*k-l/2)*(o?-1:1),paddedWidth:k,columnCount:n},r.columnMetrics},g.prototype.crispCol=function(r,a,t,i){var o=this.chart,e=this.borderWidth,s=-(e%2?.5:0);return e=e%2?.5:1,o.inverted&&o.renderer.isVML&&(e+=1),this.options.crisp&&(t=Math.round(r+t)+s,t-=r=Math.round(r)+s),i=Math.round(a+i)+e,s=.5>=Math.abs(a)&&.5<i,i-=a=Math.round(a)+e,s&&i&&(--a,i+=1),{x:r,y:a,width:t,height:i}},g.prototype.adjustForMissingColumns=function(r,a,t,i){var o=this,e=this.options.stacking;if(!t.isNull&&1<i.columnCount){var s=this.yAxis.options.reversedStacks,n=0,l=s?0:-i.columnCount;x(this.yAxis.stacking&&this.yAxis.stacking.stacks,function(b){if(typeof t.x=="number"){var k=b[t.x.toString()];k&&(b=k.points[o.index],e?(b&&(n=l),k.hasValidPoints&&(s?l++:l--)):u(b)&&(b=Object.keys(k.points).filter(function(D){return!D.match(",")&&k.points[D]&&1<k.points[D].length}).map(parseFloat).sort(function(D,d){return d-D}),n=b.indexOf(o.index),l=b.length))}}),r=(t.plotX||0)+((l-1)*i.paddedWidth+a)/2-a-n*i.paddedWidth}return r},g.prototype.translate=function(){var r=this,a=r.chart,t=r.options,i=r.dense=2>r.closestPointRange*r.xAxis.transA;i=r.borderWidth=w(t.borderWidth,i?0:1);var o=r.xAxis,e=r.yAxis,s=t.threshold,n=r.translatedThreshold=e.getThreshold(s),l=w(t.minPointLength,5),b=r.getColumnMetrics(),k=b.width,D=r.pointXOffset=b.offset,d=r.dataMin,C=r.dataMax,A=r.barW=Math.max(k,1+2*i);a.inverted&&(n-=.5),t.pointPadding&&(A=Math.ceil(A)),Z.prototype.translate.apply(r),r.points.forEach(function(N){var R=w(N.yBottom,n),L=999+Math.abs(R),O=N.plotX||0;L=y(N.plotY,-L,e.len+L);var j=Math.min(L,R),Y=Math.max(L,R)-j,H=k,W=O+D,q=A;l&&Math.abs(Y)<l&&(Y=l,O=!e.reversed&&!N.negative||e.reversed&&N.negative,v(s)&&v(C)&&N.y===s&&C<=s&&(e.min||0)<s&&(d!==C||(e.max||0)<=s)&&(O=!O),j=Math.abs(j-n)>l?R-l:n-(O?l:0)),h(N.options.pointWidth)&&(H=q=Math.ceil(N.options.pointWidth),W-=Math.round((H-k)/2)),t.centerInCategory&&(W=r.adjustForMissingColumns(W,H,N,b)),N.barX=W,N.pointWidth=H,N.tooltipPos=a.inverted?[y(e.len+e.pos-a.plotLeft-L,e.pos-a.plotLeft,e.len+e.pos-a.plotLeft),o.len+o.pos-a.plotTop-W-q/2,Y]:[o.left-a.plotLeft+W+q/2,y(L+e.pos-a.plotTop,e.pos-a.plotTop,e.len+e.pos-a.plotTop),Y],N.shapeType=r.pointClass.prototype.shapeType||"rect",N.shapeArgs=r.crispCol.apply(r,N.isNull?[W,n,q,0]:[W,j,q,Y])})},g.prototype.drawGraph=function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")},g.prototype.pointAttribs=function(r,a){var t=this.options,i=this.pointAttrToOptions||{},o=i.stroke||"borderColor",e=i["stroke-width"]||"borderWidth",s=r&&r.color||this.color,n=r&&r[o]||t[o]||s;i=r&&r.options.dashStyle||t.dashStyle;var l=r&&r[e]||t[e]||this[e]||0,b=w(r&&r.opacity,t.opacity,1);if(r&&this.zones.length){var k=r.getZone();s=r.options.color||k&&(k.color||r.nonZonedColor)||this.color,k&&(n=k.borderColor||n,i=k.dashStyle||i,l=k.borderWidth||l)}return a&&r&&(a=(r=S(t.states[a],r.options.states&&r.options.states[a]||{})).brightness,s=r.color||a!==void 0&&M(s).brighten(r.brightness).get()||s,n=r[o]||n,l=r[e]||l,i=r.dashStyle||i,b=w(r.opacity,b)),o={fill:s,stroke:n,"stroke-width":l,opacity:b},i&&(o.dashstyle=i),o},g.prototype.drawPoints=function(r){r===void 0&&(r=this.points);var a,t=this,i=this.chart,o=t.options,e=i.renderer,s=o.animationLimit||250;r.forEach(function(n){var l=n.graphic,b=!!l,k=l&&i.pointCount<s?"animate":"attr";v(n.plotY)&&n.y!==null?(a=n.shapeArgs,l&&n.hasNewShapeType()&&(l=l.destroy()),t.enabledDataSorting&&(n.startXPos=t.xAxis.reversed?-(a&&a.width||0):t.xAxis.width),l||(n.graphic=l=e[n.shapeType](a).add(n.group||t.group))&&t.enabledDataSorting&&i.hasRendered&&i.pointCount<s&&(l.attr({x:n.startXPos}),b=!0,k="animate"),l&&b&&l[k](S(a)),o.borderRadius&&l[k]({r:o.borderRadius}),i.styledMode||l[k](t.pointAttribs(n,n.selected&&"select")).shadow(n.allowShadow!==!1&&o.shadow,null,o.stacking&&!o.borderRadius),l&&(l.addClass(n.getClassName(),!0),l.attr({visibility:n.visible?"inherit":"hidden"}))):l&&(n.graphic=l.destroy())})},g.prototype.drawTracker=function(r){r===void 0&&(r=this.points);var a,t=this,i=t.chart,o=i.pointer,e=function(s){var n=o.getPointFromEvent(s);n!==void 0&&(o.isDirectTouch=!0,n.onMouseOver(s))};r.forEach(function(s){a=u(s.dataLabels)?s.dataLabels:s.dataLabel?[s.dataLabel]:[],s.graphic&&(s.graphic.element.point=s),a.forEach(function(n){n.div?n.div.point=s:n.element.point=s})}),t._hasTracking||(t.trackerGroups.forEach(function(s){t[s]&&(t[s].addClass("highcharts-tracker").on("mouseover",e).on("mouseout",function(n){o.onTrackerMouseOut(n)}),P&&t[s].on("touchstart",e),!i.styledMode&&t.options.cursor&&t[s].css({cursor:t.options.cursor}))}),t._hasTracking=!0),m(this,"afterDrawTracker")},g.prototype.remove=function(){var r=this,a=r.chart;a.hasRendered&&a.series.forEach(function(t){t.type===r.type&&(t.isDirty=!0)}),Z.prototype.remove.apply(r,arguments)},g.defaultOptions=S(Z.defaultOptions,X),g}(Z),f(z.prototype,{cropShoulder:0,directTouch:!0,drawLegendSymbol:$.drawRectangle,getSymbol:G,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]}),V.registerSeriesType("column",z),z}),_(et,"Core/Series/DataLabel.js",[et["Core/Animation/AnimationUtilities.js"],et["Core/FormatUtilities.js"],et["Core/Utilities.js"]],function(G,B,X){var U,$=G.getDeferredAnimation,Z=B.format,V=X.defined,z=X.extend,I=X.fireEvent,E=X.isArray,M=X.isString,P=X.merge,y=X.objectEach,h=X.pick,f=X.splat;return function(m){function u(g,r,a,t,i){var o=this,e=this.chart,s=this.isCartesian&&e.inverted,n=this.enabledDataSorting,l=g.plotX,b=g.plotY,k=a.rotation,D=a.align,d=V(l)&&V(b)&&e.isInsidePlot(l,Math.round(b),{inverted:s,paneCoordinates:!0,series:o});b=function(R){n&&o.xAxis&&!C&&o.setDataLabelStartPos(g,r,i,d,R)};var C=h(a.overflow,n?"none":"justify")==="justify";if(l=this.visible&&g.visible!==!1&&V(l)&&(g.series.forceDL||n&&!C||d||h(a.inside,!!this.options.stacking)&&t&&e.isInsidePlot(l,s?t.x+1:t.y+t.height-1,{inverted:s,paneCoordinates:!0,series:o})),s=g.pos(),l&&s){k&&r.attr({align:D}),D=r.getBBox(!0);var A=[0,0],N=e.renderer.fontMetrics(e.styledMode?void 0:a.style.fontSize,r).b;t=z({x:s[0],y:Math.round(s[1]),width:0,height:0},t),z(a,{width:D.width,height:D.height}),k?(C=!1,A=e.renderer.rotCorr(N,k),N={x:t.x+(a.x||0)+t.width/2+A.x,y:t.y+(a.y||0)+{top:0,middle:.5,bottom:1}[a.verticalAlign]*t.height},A=[D.x-Number(r.attr("x")),D.y-Number(r.attr("y"))],b(N),r[i?"attr":"animate"](N)):(b(t),r.align(a,void 0,t),N=r.alignAttr),C&&0<=t.height?this.justifyDataLabel(r,a,N,D,t,i):h(a.crop,!0)&&(t=N.x,b=N.y,t+=A[0],b+=A[1],l=e.isInsidePlot(t,b,{paneCoordinates:!0,series:o})&&e.isInsidePlot(t+D.width,b+D.height,{paneCoordinates:!0,series:o})),a.shape&&!k&&r[i?"attr":"animate"]({anchorX:s[0],anchorY:s[1]})}i&&n&&(r.placed=!1),l||n&&!C?r.show():(r.hide(),r.placed=!1)}function v(g){g===void 0&&(g=this.points);var r=this,a=r.chart,t=r.options,i=r.hasRendered||0,o=a.renderer,e=a.options.chart,s=e.backgroundColor;e=e.plotBackgroundColor;var n=o.getContrast(M(e)&&e||M(s)&&s||"#000000"),l=t.dataLabels;if(s=l.animation,s=l.defer?$(a,s,r):{defer:0,duration:0},l=w(w(a.options.plotOptions&&a.options.plotOptions.series&&a.options.plotOptions.series.dataLabels,a.options.plotOptions&&a.options.plotOptions[r.type]&&a.options.plotOptions[r.type].dataLabels),l),I(this,"drawDataLabels"),E(l)||l.enabled||r._hasPointLabels){var b=r.plotGroup("dataLabelsGroup","data-labels",i?"inherit":"hidden",l.zIndex||6);b.attr({opacity:+i}),!i&&(i=r.dataLabelsGroup)&&(r.visible&&b.show(),i[t.animation?"animate":"attr"]({opacity:1},s)),g.forEach(function(k){f(w(l,k.dlOptions||k.options&&k.options.dataLabels)).forEach(function(D,d){var C=D.enabled&&(!k.isNull||k.dataLabelOnNull)&&function(q,Q){var J=Q.filter;return!J||(Q=J.operator,q=q[J.property],J=J.value,Q===">"&&q>J||Q==="<"&&q<J||Q===">="&&q>=J||Q==="<="&&q<=J||Q==="=="&&q==J||Q==="==="&&q===J)}(k,D),A=k.connectors?k.connectors[d]:k.connector,N=k.dataLabels?k.dataLabels[d]:k.dataLabel,R=!N,L=h(D.distance,k.labelDistance);if(C){var O=k.getLabelConfig(),j=h(D[k.formatPrefix+"Format"],D.format);O=V(j)?Z(j,O,a):(D[k.formatPrefix+"Formatter"]||D.formatter).call(O,D),j=D.style;var Y=D.rotation;a.styledMode||(j.color=h(D.color,j.color,r.color,"#000000"),j.color==="contrast"?(k.contrastColor=o.getContrast(k.color||r.color),j.color=!V(L)&&D.inside||0>L||t.stacking?k.contrastColor:n):delete k.contrastColor,t.cursor&&(j.cursor=t.cursor));var H={r:D.borderRadius||0,rotation:Y,padding:D.padding,zIndex:1};if(!a.styledMode){L=D.backgroundColor;var W=D.borderColor;H.fill=L==="auto"?k.color:L,H.stroke=W==="auto"?k.color:W,H["stroke-width"]=D.borderWidth}y(H,function(q,Q){q===void 0&&delete H[Q]})}!N||C&&V(O)&&!!N.div==!!D.useHTML&&(N.rotation&&D.rotation||N.rotation===D.rotation)||(R=!0,k.dataLabel=N=k.dataLabel&&k.dataLabel.destroy(),k.dataLabels&&(k.dataLabels.length===1?delete k.dataLabels:delete k.dataLabels[d]),d||delete k.dataLabel,A&&(k.connector=k.connector.destroy(),k.connectors&&(k.connectors.length===1?delete k.connectors:delete k.connectors[d]))),C&&V(O)?(N?H.text=O:(k.dataLabels=k.dataLabels||[],N=k.dataLabels[d]=Y?o.text(O,0,0,D.useHTML).addClass("highcharts-data-label"):o.label(O,0,0,D.shape,null,null,D.useHTML,null,"data-label"),d||(k.dataLabel=N),N.addClass(" highcharts-data-label-color-"+k.colorIndex+" "+(D.className||"")+(D.useHTML?" highcharts-tracker":""))),N.options=D,N.attr(H),a.styledMode||N.css(j).shadow(D.shadow),(d=D[k.formatPrefix+"TextPath"]||D.textPath)&&!D.useHTML&&(N.setTextPath(k.getDataLabelPath&&k.getDataLabelPath(N)||k.graphic,d),k.dataLabelPath&&!d.enabled&&(k.dataLabelPath=k.dataLabelPath.destroy())),N.added||N.add(b),r.alignDataLabel(k,N,D,null,R)):N&&N.hide()})})}I(this,"afterDrawDataLabels")}function S(g,r,a,t,i,o){var e=this.chart,s=r.align,n=r.verticalAlign,l=g.box?0:g.padding||0,b=r.x;b=b===void 0?0:b;var k=r.y;k=k===void 0?0:k;var D=(a.x||0)+l;if(0>D){s==="right"&&0<=b?(r.align="left",r.inside=!0):b-=D;var d=!0}return(D=(a.x||0)+t.width-l)>e.plotWidth&&(s==="left"&&0>=b?(r.align="right",r.inside=!0):b+=e.plotWidth-D,d=!0),0>(D=a.y+l)&&(n==="bottom"&&0<=k?(r.verticalAlign="top",r.inside=!0):k-=D,d=!0),(D=(a.y||0)+t.height-l)>e.plotHeight&&(n==="top"&&0>=k?(r.verticalAlign="bottom",r.inside=!0):k+=e.plotHeight-D,d=!0),d&&(r.x=b,r.y=k,g.placed=!o,g.align(r,void 0,i)),d}function w(g,r){var a,t=[];if(E(g)&&!E(r))t=g.map(function(i){return P(i,r)});else if(E(r)&&!E(g))t=r.map(function(i){return P(g,i)});else if(E(g)||E(r))for(a=Math.max(g.length,r.length);a--;)t[a]=P(g[a],r[a]);else t=P(g,r);return t}function x(g,r,a,t,i){var o=this.chart,e=o.inverted,s=this.xAxis,n=s.reversed,l=e?r.height/2:r.width/2;g=(g=g.pointWidth)?g/2:0,r.startXPos=e?i.x:n?-l-g:s.width-l+g,r.startYPos=e?n?this.yAxis.height-l+g:-l-g:i.y,t?r.visibility==="hidden"&&(r.show(),r.attr({opacity:0}).animate({opacity:1})):r.attr({opacity:1}).animate({opacity:0},void 0,r.hide),o.hasRendered&&(a&&r.attr({x:r.startXPos,y:r.startYPos}),r.placed=!0)}var c=[];m.compose=function(g){if(c.indexOf(g)===-1){var r=g.prototype;c.push(g),r.alignDataLabel=u,r.drawDataLabels=v,r.justifyDataLabel=S,r.setDataLabelStartPos=x}}}(U||(U={})),U}),_(et,"Series/Column/ColumnDataLabel.js",[et["Core/Series/DataLabel.js"],et["Core/Series/SeriesRegistry.js"],et["Core/Utilities.js"]],function(G,B,X){var U,$=B.series,Z=X.merge,V=X.pick;return function(z){function I(M,P,y,h,f){var m=this.chart.inverted,u=M.series,v=(u.xAxis?u.xAxis.len:this.chart.plotSizeX)||0;u=(u.yAxis?u.yAxis.len:this.chart.plotSizeY)||0;var S=M.dlBox||M.shapeArgs,w=V(M.below,M.plotY>V(this.translatedThreshold,u)),x=V(y.inside,!!this.options.stacking);S&&(0>(h=Z(S)).y&&(h.height+=h.y,h.y=0),0<(S=h.y+h.height-u)&&S<h.height&&(h.height-=S),m&&(h={x:u-h.y-h.height,y:v-h.x-h.width,width:h.height,height:h.width}),x||(m?(h.x+=w?0:h.width,h.width=0):(h.y+=w?h.height:0,h.height=0))),y.align=V(y.align,!m||x?"center":w?"right":"left"),y.verticalAlign=V(y.verticalAlign,m||x?"middle":w?"top":"bottom"),$.prototype.alignDataLabel.call(this,M,P,y,h,f),y.inside&&M.contrastColor&&P.css({color:M.contrastColor})}var E=[];z.compose=function(M){G.compose($),E.indexOf(M)===-1&&(E.push(M),M.prototype.alignDataLabel=I)}}(U||(U={})),U}),_(et,"Series/Bar/BarSeries.js",[et["Series/Column/ColumnSeries.js"],et["Core/Series/SeriesRegistry.js"],et["Core/Utilities.js"]],function(G,B,X){var U=this&&this.__extends||function(){var V=function(z,I){return(V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,M){E.__proto__=M}||function(E,M){for(var P in M)M.hasOwnProperty(P)&&(E[P]=M[P])})(z,I)};return function(z,I){function E(){this.constructor=z}V(z,I),z.prototype=I===null?Object.create(I):(E.prototype=I.prototype,new E)}}(),$=X.extend,Z=X.merge;return X=function(V){function z(){var I=V!==null&&V.apply(this,arguments)||this;return I.data=void 0,I.options=void 0,I.points=void 0,I}return U(z,V),z.defaultOptions=Z(G.defaultOptions,{}),z}(G),$(X.prototype,{inverted:!0}),B.registerSeriesType("bar",X),X}),_(et,"Series/Scatter/ScatterSeriesDefaults.js",[],function(){return{lineWidth:0,findNearestPointBy:"xy",jitter:{x:0,y:0},marker:{enabled:!0},tooltip:{headerFormat:'<span style="color:{point.color}">●</span> <span style="font-size: 10px"> {series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}}}),_(et,"Series/Scatter/ScatterSeries.js",[et["Series/Scatter/ScatterSeriesDefaults.js"],et["Core/Series/SeriesRegistry.js"],et["Core/Utilities.js"]],function(G,B,X){var U=this&&this.__extends||function(){var E=function(M,P){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,h){y.__proto__=h}||function(y,h){for(var f in h)h.hasOwnProperty(f)&&(y[f]=h[f])},E(M,P)};return function(M,P){function y(){this.constructor=M}E(M,P),M.prototype=P===null?Object.create(P):(y.prototype=P.prototype,new y)}}(),$=B.seriesTypes,Z=$.column,V=$.line;$=X.addEvent;var z=X.extend,I=X.merge;return X=function(E){function M(){var P=E!==null&&E.apply(this,arguments)||this;return P.data=void 0,P.options=void 0,P.points=void 0,P}return U(M,E),M.prototype.applyJitter=function(){var P=this,y=this.options.jitter,h=this.points.length;y&&this.points.forEach(function(f,m){["x","y"].forEach(function(u,v){var S="plot"+u.toUpperCase();if(y[u]&&!f.isNull){var w=P[u+"Axis"],x=y[u]*w.transA;if(w&&!w.isLog){var c=Math.max(0,f[S]-x);w=Math.min(w.len,f[S]+x),v=1e4*Math.sin(m+v*h),f[S]=c+(w-c)*(v-Math.floor(v)),u==="x"&&(f.clientX=f.plotX)}}})})},M.prototype.drawGraph=function(){this.options.lineWidth?E.prototype.drawGraph.call(this):this.graph&&(this.graph=this.graph.destroy())},M.defaultOptions=I(V.defaultOptions,G),M}(V),z(X.prototype,{drawTracker:Z.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1}),$(X,"afterTranslate",function(){this.applyJitter()}),B.registerSeriesType("scatter",X),X}),_(et,"Series/CenteredUtilities.js",[et["Core/Globals.js"],et["Core/Series/Series.js"],et["Core/Utilities.js"]],function(G,B,X){var U,$=G.deg2rad,Z=X.fireEvent,V=X.isNumber,z=X.pick,I=X.relativeLength;return function(E){E.getCenter=function(){var M=this.options,P=this.chart,y=2*(M.slicedOffset||0),h=P.plotWidth-2*y,f=P.plotHeight-2*y,m=M.center,u=Math.min(h,f),v=M.thickness,S=M.size,w=M.innerSize||0;for(typeof S=="string"&&(S=parseFloat(S)),typeof w=="string"&&(w=parseFloat(w)),M=[z(m[0],"50%"),z(m[1],"50%"),z(S&&0>S?void 0:M.size,"100%"),z(w&&0>w?void 0:M.innerSize||0,"0%")],!P.angular||this instanceof B||(M[3]=0),m=0;4>m;++m)S=M[m],P=2>m||m===2&&/%$/.test(S),M[m]=I(S,[h,f,u,M[2]][m])+(P?y:0);return M[3]>M[2]&&(M[3]=M[2]),V(v)&&2*v<M[2]&&0<v&&(M[3]=M[2]-2*v),Z(this,"afterGetCenter",{positions:M}),M},E.getStartAndEndRadians=function(M,P){return M=V(M)?M:0,P=V(P)&&P>M&&360>P-M?P:M+360,{start:$*(M+-90),end:$*(P+-90)}}}(U||(U={})),U}),_(et,"Series/Pie/PiePoint.js",[et["Core/Animation/AnimationUtilities.js"],et["Core/Series/Point.js"],et["Core/Utilities.js"]],function(G,B,X){var U=this&&this.__extends||function(){var M=function(P,y){return M=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,f){h.__proto__=f}||function(h,f){for(var m in f)f.hasOwnProperty(m)&&(h[m]=f[m])},M(P,y)};return function(P,y){function h(){this.constructor=P}M(P,y),P.prototype=y===null?Object.create(y):(h.prototype=y.prototype,new h)}}(),$=G.setAnimation,Z=X.addEvent,V=X.defined;G=X.extend;var z=X.isNumber,I=X.pick,E=X.relativeLength;return B=function(M){function P(){var y=M!==null&&M.apply(this,arguments)||this;return y.labelDistance=void 0,y.options=void 0,y.series=void 0,y}return U(P,M),P.prototype.getConnectorPath=function(){var y=this.labelPosition,h=this.series.options.dataLabels,f=this.connectorShapes,m=h.connectorShape;return f[m]&&(m=f[m]),m.call(this,{x:y.final.x,y:y.final.y,alignment:y.alignment},y.connectorPosition,h)},P.prototype.getTranslate=function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},P.prototype.haloPath=function(y){var h=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(h.x,h.y,h.r+y,h.r+y,{innerR:h.r-1,start:h.start,end:h.end})},P.prototype.init=function(){var y=this;M.prototype.init.apply(this,arguments),this.name=I(this.name,"Slice");var h=function(f){y.slice(f.type==="select")};return Z(this,"select",h),Z(this,"unselect",h),this},P.prototype.isValid=function(){return z(this.y)&&0<=this.y},P.prototype.setVisible=function(y,h){var f=this,m=this.series,u=m.chart,v=m.options.ignoreHiddenPoint;h=I(h,v),y!==this.visible&&(this.visible=this.options.visible=y=y===void 0?!this.visible:y,m.options.data[m.data.indexOf(this)]=this.options,["graphic","dataLabel","connector","shadowGroup"].forEach(function(S){f[S]&&f[S][y?"show":"hide"](y)}),this.legendItem&&u.legend.colorizeItem(this,y),y||this.state!=="hover"||this.setState(""),v&&(m.isDirty=!0),h&&u.redraw())},P.prototype.slice=function(y,h,f){var m=this.series;$(f,m.chart),I(h,!0),this.sliced=this.options.sliced=V(y)?y:!this.sliced,m.options.data[m.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate()),this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},P}(B),G(B.prototype,{connectorShapes:{fixedOffset:function(M,P,y){var h=P.breakAt;return P=P.touchingSliceAt,[["M",M.x,M.y],y.softConnector?["C",M.x+(M.alignment==="left"?-5:5),M.y,2*h.x-P.x,2*h.y-P.y,h.x,h.y]:["L",h.x,h.y],["L",P.x,P.y]]},straight:function(M,P){return P=P.touchingSliceAt,[["M",M.x,M.y],["L",P.x,P.y]]},crookedLine:function(M,P,y){P=P.touchingSliceAt;var h=this.series,f=h.center[0],m=h.chart.plotWidth,u=h.chart.plotLeft;h=M.alignment;var v=this.shapeArgs.r;return y=E(y.crookDistance,1),y=["L",m=h==="left"?f+v+(m+u-f-v)*(1-y):u+(f-v)*y,M.y],f=!0,(h==="left"?m>M.x||m<P.x:m<M.x||m>P.x)&&(f=!1),M=[["M",M.x,M.y]],f&&M.push(y),M.push(["L",P.x,P.y]),M}}}),B}),_(et,"Series/Pie/PieSeriesDefaults.js",[],function(){return{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,connectorPadding:5,connectorShape:"fixedOffset",crookDistance:"70%",distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},softConnector:!0,x:0},fillColor:void 0,ignoreHiddenPoint:!0,inactiveOtherPoints:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:"#ffffff",borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}}}),_(et,"Series/Pie/PieSeries.js",[et["Series/CenteredUtilities.js"],et["Series/Column/ColumnSeries.js"],et["Core/Globals.js"],et["Core/Legend/LegendSymbol.js"],et["Series/Pie/PiePoint.js"],et["Series/Pie/PieSeriesDefaults.js"],et["Core/Series/Series.js"],et["Core/Series/SeriesRegistry.js"],et["Core/Renderer/SVG/Symbols.js"],et["Core/Utilities.js"]],function(G,B,X,U,$,Z,V,z,I,E){var M=this&&this.__extends||function(){var S=function(w,x){return S=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,g){c.__proto__=g}||function(c,g){for(var r in g)g.hasOwnProperty(r)&&(c[r]=g[r])},S(w,x)};return function(w,x){function c(){this.constructor=w}S(w,x),w.prototype=x===null?Object.create(x):(c.prototype=x.prototype,new c)}}(),P=G.getStartAndEndRadians;X=X.noop;var y=E.clamp,h=E.extend,f=E.fireEvent,m=E.merge,u=E.pick,v=E.relativeLength;return E=function(S){function w(){var x=S!==null&&S.apply(this,arguments)||this;return x.center=void 0,x.data=void 0,x.maxLabelDistance=void 0,x.options=void 0,x.points=void 0,x}return M(w,S),w.prototype.animate=function(x){var c=this,g=c.points,r=c.startAngleRad;x||g.forEach(function(a){var t=a.graphic,i=a.shapeArgs;t&&i&&(t.attr({r:u(a.startR,c.center&&c.center[3]/2),start:r,end:r}),t.animate({r:i.r,start:i.start,end:i.end},c.options.animation))})},w.prototype.drawEmpty=function(){var x=this.startAngleRad,c=this.endAngleRad,g=this.options;if(this.total===0&&this.center){var r=this.center[0],a=this.center[1];this.graph||(this.graph=this.chart.renderer.arc(r,a,this.center[1]/2,0,x,c).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:I.arc(r,a,this.center[2]/2,0,{start:x,end:c,innerR:this.center[3]/2})}),this.chart.styledMode||this.graph.attr({"stroke-width":g.borderWidth,fill:g.fillColor||"none",stroke:g.color||"#cccccc"})}else this.graph&&(this.graph=this.graph.destroy())},w.prototype.drawPoints=function(){var x=this.chart.renderer;this.points.forEach(function(c){c.graphic&&c.hasNewShapeType()&&(c.graphic=c.graphic.destroy()),c.graphic||(c.graphic=x[c.shapeType](c.shapeArgs).add(c.series.group),c.delayedRendering=!0)})},w.prototype.generatePoints=function(){S.prototype.generatePoints.call(this),this.updateTotals()},w.prototype.getX=function(x,c,g){var r=this.center,a=this.radii?this.radii[g.index]||0:r[2]/2;return x=Math.asin(y((x-r[1])/(a+g.labelDistance),-1,1)),r[0]+(c?-1:1)*Math.cos(x)*(a+g.labelDistance)+(0<g.labelDistance?(c?-1:1)*this.options.dataLabels.padding:0)},w.prototype.hasData=function(){return!!this.processedXData.length},w.prototype.redrawPoints=function(){var x,c,g,r,a=this,t=a.chart,i=t.renderer,o=a.options.shadow;this.drawEmpty(),!o||a.shadowGroup||t.styledMode||(a.shadowGroup=i.g("shadow").attr({zIndex:-1}).add(a.group)),a.points.forEach(function(e){var s={};if(c=e.graphic,!e.isNull&&c){var n=void 0;r=e.shapeArgs,x=e.getTranslate(),t.styledMode||(n=e.shadowGroup,o&&!n&&(n=e.shadowGroup=i.g("shadow").add(a.shadowGroup)),n&&n.attr(x),g=a.pointAttribs(e,e.selected&&"select")),e.delayedRendering?(c.setRadialReference(a.center).attr(r).attr(x),t.styledMode||c.attr(g).attr({"stroke-linejoin":"round"}).shadow(o,n),e.delayedRendering=!1):(c.setRadialReference(a.center),t.styledMode||m(!0,s,g),m(!0,s,r,x),c.animate(s)),c.attr({visibility:e.visible?"inherit":"hidden"}),c.addClass(e.getClassName(),!0)}else c&&(e.graphic=c.destroy())})},w.prototype.sortByAngle=function(x,c){x.sort(function(g,r){return g.angle!==void 0&&(r.angle-g.angle)*c})},w.prototype.translate=function(x){f(this,"translate"),this.generatePoints();var c=this.options,g=c.slicedOffset,r=g+(c.borderWidth||0),a=P(c.startAngle,c.endAngle),t=this.startAngleRad=a.start;a=(this.endAngleRad=a.end)-t;var i=this.points,o=c.dataLabels.distance;c=c.ignoreHiddenPoint;var e,s=i.length,n=0;for(x||(this.center=x=this.getCenter()),e=0;e<s;e++){var l=i[e],b=t+n*a;!l.isValid()||c&&!l.visible||(n+=l.percentage/100);var k=t+n*a,D={x:x[0],y:x[1],r:x[2]/2,innerR:x[3]/2,start:Math.round(1e3*b)/1e3,end:Math.round(1e3*k)/1e3};l.shapeType="arc",l.shapeArgs=D,l.labelDistance=u(l.options.dataLabels&&l.options.dataLabels.distance,o),l.labelDistance=v(l.labelDistance,D.r),this.maxLabelDistance=Math.max(this.maxLabelDistance||0,l.labelDistance),(k=(k+b)/2)>1.5*Math.PI?k-=2*Math.PI:k<-Math.PI/2&&(k+=2*Math.PI),l.slicedTranslation={translateX:Math.round(Math.cos(k)*g),translateY:Math.round(Math.sin(k)*g)},D=Math.cos(k)*x[2]/2;var d=Math.sin(k)*x[2]/2;l.tooltipPos=[x[0]+.7*D,x[1]+.7*d],l.half=k<-Math.PI/2||k>Math.PI/2?1:0,l.angle=k,b=Math.min(r,l.labelDistance/5),l.labelPosition={natural:{x:x[0]+D+Math.cos(k)*l.labelDistance,y:x[1]+d+Math.sin(k)*l.labelDistance},final:{},alignment:0>l.labelDistance?"center":l.half?"right":"left",connectorPosition:{breakAt:{x:x[0]+D+Math.cos(k)*b,y:x[1]+d+Math.sin(k)*b},touchingSliceAt:{x:x[0]+D,y:x[1]+d}}}}f(this,"afterTranslate")},w.prototype.updateTotals=function(){var x,c=this.points,g=c.length,r=this.options.ignoreHiddenPoint,a=0;for(x=0;x<g;x++){var t=c[x];!t.isValid()||r&&!t.visible||(a+=t.y)}for(this.total=a,x=0;x<g;x++)(t=c[x]).percentage=0<a&&(t.visible||!r)?t.y/a*100:0,t.total=a},w.defaultOptions=m(V.defaultOptions,Z),w}(V),h(E.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawLegendSymbol:U.drawRectangle,drawTracker:B.prototype.drawTracker,getCenter:G.getCenter,getSymbol:X,isCartesian:!1,noSharedTooltip:!0,pointAttribs:B.prototype.pointAttribs,pointClass:$,requireSorting:!1,searchPoint:X,trackerGroups:["group","dataLabelsGroup"]}),z.registerSeriesType("pie",E),E}),_(et,"Series/Pie/PieDataLabel.js",[et["Core/Series/DataLabel.js"],et["Core/Globals.js"],et["Core/Renderer/RendererUtilities.js"],et["Core/Series/SeriesRegistry.js"],et["Core/Utilities.js"]],function(G,B,X,U,$){var Z,V=B.noop,z=X.distribute,I=U.series,E=$.arrayMax,M=$.clamp,P=$.defined,y=$.merge,h=$.pick,f=$.relativeLength;return function(m){function u(){var c,g,r,a,t,i,o,e,s,n,l,b,k=this,D=k.data,d=k.chart,C=k.options.dataLabels||{},A=C.connectorPadding,N=d.plotWidth,R=d.plotHeight,L=d.plotLeft,O=Math.round(d.chartWidth/3),j=k.center,Y=j[2]/2,H=j[1],W=[[],[]],q=[0,0,0,0],Q=k.dataLabelPositioners;k.visible&&(C.enabled||k._hasPointLabels)&&(D.forEach(function(J){J.dataLabel&&J.visible&&J.dataLabel.shortened&&(J.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),J.dataLabel.shortened=!1)}),I.prototype.drawDataLabels.apply(k),D.forEach(function(J){J.dataLabel&&(J.visible?(W[J.half].push(J),J.dataLabel._pos=null,!P(C.style.width)&&!P(J.options.dataLabels&&J.options.dataLabels.style&&J.options.dataLabels.style.width)&&J.dataLabel.getBBox().width>O&&(J.dataLabel.css({width:Math.round(.7*O)+"px"}),J.dataLabel.shortened=!0)):(J.dataLabel=J.dataLabel.destroy(),J.dataLabels&&J.dataLabels.length===1&&delete J.dataLabels))}),W.forEach(function(J,nt){var lt,gt=J.length,mt=[];if(gt){if(k.sortByAngle(J,nt-.5),0<k.maxLabelDistance){var bt=Math.max(0,H-Y-k.maxLabelDistance),yt=Math.min(H+Y+k.maxLabelDistance,d.plotHeight);J.forEach(function(dt){0<dt.labelDistance&&dt.dataLabel&&(dt.top=Math.max(0,H-Y-dt.labelDistance),dt.bottom=Math.min(H+Y+dt.labelDistance,d.plotHeight),lt=dt.dataLabel.getBBox().height||21,dt.distributeBox={target:dt.labelPosition.natural.y-dt.top+lt/2,size:lt,rank:dt.y},mt.push(dt.distributeBox))}),z(mt,bt=yt+lt-bt,bt/5)}for(l=0;l<gt;l++){if(c=J[l],i=c.labelPosition,a=c.dataLabel,n=c.visible===!1?"hidden":"inherit",s=bt=i.natural.y,mt&&P(c.distributeBox)&&(c.distributeBox.pos===void 0?n="hidden":(o=c.distributeBox.size,s=Q.radialDistributionY(c))),delete c.positionIndex,C.justify)e=Q.justify(c,Y,j);else switch(C.alignTo){case"connectors":e=Q.alignToConnectors(J,nt,N,L);break;case"plotEdges":e=Q.alignToPlotEdges(a,nt,N,L);break;default:e=Q.radialDistributionX(k,c,s,bt)}a._attr={visibility:n,align:i.alignment},b=c.options.dataLabels||{},a._pos={x:e+h(b.x,C.x)+({left:A,right:-A}[i.alignment]||0),y:s+h(b.y,C.y)-10},i.final.x=e,i.final.y=s,h(C.crop,!0)&&(t=a.getBBox().width,bt=null,e-t<A&&nt===1?(bt=Math.round(t-e+A),q[3]=Math.max(bt,q[3])):e+t>N-A&&nt===0&&(bt=Math.round(e+t-N+A),q[1]=Math.max(bt,q[1])),0>s-o/2?q[0]=Math.max(Math.round(o/2-s),q[0]):s+o/2>R&&(q[2]=Math.max(Math.round(s+o/2-R),q[2])),a.sideOverflow=bt)}}}),E(q)===0||this.verifyDataLabelOverflow(q))&&(this.placeDataLabels(),this.points.forEach(function(J){var nt;b=y(C,J.options.dataLabels),(g=h(b.connectorWidth,1))&&(r=J.connector,(a=J.dataLabel)&&a._pos&&J.visible&&0<J.labelDistance?(n=a._attr.visibility,(nt=!r)&&(J.connector=r=d.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+J.colorIndex+(J.className?" "+J.className:"")).add(k.dataLabelsGroup),d.styledMode||r.attr({"stroke-width":g,stroke:b.connectorColor||J.color||"#666666"})),r[nt?"attr":"animate"]({d:J.getConnectorPath()}),r.attr("visibility",n)):r&&(J.connector=r.destroy()))}))}function v(){this.points.forEach(function(c){var g,r=c.dataLabel;r&&c.visible&&((g=r._pos)?(r.sideOverflow&&(r._attr.width=Math.max(r.getBBox().width-r.sideOverflow,0),r.css({width:r._attr.width+"px",textOverflow:(this.options.dataLabels.style||{}).textOverflow||"ellipsis"}),r.shortened=!0),r.attr(r._attr),r[r.moved?"animate":"attr"](g),r.moved=!0):r&&r.attr({y:-9999})),delete c.distributeBox},this)}function S(c){var g=this.center,r=this.options,a=r.center,t=r.minSize||80,i=r.size!==null;if(!i){if(a[0]!==null)var o=Math.max(g[2]-Math.max(c[1],c[3]),t);else o=Math.max(g[2]-c[1]-c[3],t),g[0]+=(c[3]-c[1])/2;a[1]!==null?o=M(o,t,g[2]-Math.max(c[0],c[2])):(o=M(o,t,g[2]-c[0]-c[2]),g[1]+=(c[0]-c[2])/2),o<g[2]?(g[2]=o,g[3]=Math.min(r.thickness?Math.max(0,o-2*r.thickness):Math.max(0,f(r.innerSize||0,o)),o),this.translate(g),this.drawDataLabels&&this.drawDataLabels()):i=!0}return i}var w=[],x={radialDistributionY:function(c){return c.top+c.distributeBox.pos},radialDistributionX:function(c,g,r,a){return c.getX(r<g.top+2||r>g.bottom-2?a:r,g.half,g)},justify:function(c,g,r){return r[0]+(c.half?-1:1)*(g+c.labelDistance)},alignToPlotEdges:function(c,g,r,a){return c=c.getBBox().width,g?c+a:r-c-a},alignToConnectors:function(c,g,r,a){var t,i=0;return c.forEach(function(o){(t=o.dataLabel.getBBox().width)>i&&(i=t)}),g?i+a:r-i-a}};m.compose=function(c){G.compose(I),w.indexOf(c)===-1&&(w.push(c),(c=c.prototype).dataLabelPositioners=x,c.alignDataLabel=V,c.drawDataLabels=u,c.placeDataLabels=v,c.verifyDataLabelOverflow=S)}}(Z||(Z={})),Z}),_(et,"Extensions/OverlappingDataLabels.js",[et["Core/Chart/Chart.js"],et["Core/Utilities.js"]],function(G,B){function X(E,M){var P=!1;if(E){var y=E.newOpacity;E.oldOpacity!==y&&(E.alignAttr&&E.placed?(E[y?"removeClass":"addClass"]("highcharts-data-label-hidden"),P=!0,E.alignAttr.opacity=y,E[E.isOld?"animate":"attr"](E.alignAttr,null,function(){M.styledMode||E.css({pointerEvents:y?"auto":"none"})}),$(M,"afterHideOverlappingLabel")):E.attr({opacity:y})),E.isOld=!0}return P}var U=B.addEvent,$=B.fireEvent,Z=B.isArray,V=B.isNumber,z=B.objectEach,I=B.pick;U(G,"render",function(){var E=this,M=[];(this.labelCollectors||[]).forEach(function(P){M=M.concat(P())}),(this.yAxis||[]).forEach(function(P){P.stacking&&P.options.stackLabels&&!P.options.stackLabels.allowOverlap&&z(P.stacking.stacks,function(y){z(y,function(h){h.label&&M.push(h.label)})})}),(this.series||[]).forEach(function(P){var y=P.options.dataLabels;P.visible&&(y.enabled!==!1||P._hasPointLabels)&&(y=function(h){return h.forEach(function(f){f.visible&&(Z(f.dataLabels)?f.dataLabels:f.dataLabel?[f.dataLabel]:[]).forEach(function(m){var u=m.options;m.labelrank=I(u.labelrank,f.labelrank,f.shapeArgs&&f.shapeArgs.height),u.allowOverlap?(m.oldOpacity=m.opacity,m.newOpacity=1,X(m,E)):M.push(m)})})},y(P.nodes||[]),y(P.points))}),this.hideOverlappingLabels(M)}),G.prototype.hideOverlappingLabels=function(E){var M,P,y,h=this,f=E.length,m=h.renderer,u=!1,v=function(x){var c,g,r=x.box?0:x.padding||0,a=c=0;if(x&&(!x.alignAttr||x.placed)){var t=x.alignAttr||{x:x.attr("x"),y:x.attr("y")},i=x.parentGroup;x.width||(c=x.getBBox(),x.width=c.width,x.height=c.height,c=m.fontMetrics(null,x.element).h);var o=x.width-2*r;return(g={left:"0",center:"0.5",right:"1"}[x.alignValue])?a=+g*o:V(x.x)&&Math.round(x.x)!==x.translateX&&(a=x.x-x.translateX),{x:t.x+(i.translateX||0)+r-(a||0),y:t.y+(i.translateY||0)+r-c,width:x.width-2*r,height:x.height-2*r}}};for(P=0;P<f;P++)(M=E[P])&&(M.oldOpacity=M.opacity,M.newOpacity=1,M.absoluteBox=v(M));for(E.sort(function(x,c){return(c.labelrank||0)-(x.labelrank||0)}),P=0;P<f;P++){var S=(v=E[P])&&v.absoluteBox;for(M=P+1;M<f;++M){var w=(y=E[M])&&y.absoluteBox;!S||!w||v===y||v.newOpacity===0||y.newOpacity===0||v.visibility==="hidden"||y.visibility==="hidden"||w.x>=S.x+S.width||w.x+w.width<=S.x||w.y>=S.y+S.height||w.y+w.height<=S.y||((v.labelrank<y.labelrank?v:y).newOpacity=0)}}E.forEach(function(x){X(x,h)&&(u=!0)}),u&&$(h,"afterHideAllOverlappingLabels")}}),_(et,"Core/Responsive.js",[et["Core/Utilities.js"]],function(G){var B,X=G.extend,U=G.find,$=G.isArray,Z=G.isObject,V=G.merge,z=G.objectEach,I=G.pick,E=G.splat,M=G.uniqueKey;return function(P){var y=[];P.compose=function(f){return y.indexOf(f)===-1&&(y.push(f),X(f.prototype,h.prototype)),f};var h=function(){function f(){}return f.prototype.currentOptions=function(m){var u=this,v={};return function S(w,x,c,g){var r;z(w,function(a,t){if(!g&&-1<u.collectionsWithUpdate.indexOf(t)&&x[t])for(a=E(a),c[t]=[],r=0;r<Math.max(a.length,x[t].length);r++)x[t][r]&&(a[r]===void 0?c[t][r]=x[t][r]:(c[t][r]={},S(a[r],x[t][r],c[t][r],g+1)));else Z(a)?(c[t]=$(a)?[]:{},S(a,x[t]||{},c[t],g+1)):c[t]=x[t]===void 0?null:x[t]})}(m,this.options,v,0),v},f.prototype.matchResponsiveRule=function(m,u){var v=m.condition;(v.callback||function(){return this.chartWidth<=I(v.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=I(v.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=I(v.minWidth,0)&&this.chartHeight>=I(v.minHeight,0)}).call(this)&&u.push(m._id)},f.prototype.setResponsive=function(m,u){var v=this,S=this.options.responsive,w=this.currentResponsive,x=[];!u&&S&&S.rules&&S.rules.forEach(function(c){c._id===void 0&&(c._id=M()),v.matchResponsiveRule(c,x)},this),u=V.apply(void 0,x.map(function(c){return U((S||{}).rules||[],function(g){return g._id===c})}).map(function(c){return c&&c.chartOptions})),u.isResponsiveOptions=!0,(x=x.toString()||void 0)!==(w&&w.ruleIds)&&(w&&this.update(w.undoOptions,m,!0),x?((w=this.currentOptions(u)).isResponsiveOptions=!0,this.currentResponsive={ruleIds:x,mergedOptions:u,undoOptions:w},this.update(u,m,!0)):this.currentResponsive=void 0)},f}()}(B||(B={})),B}),_(et,"masters/highcharts.src.js",[et["Core/Globals.js"],et["Core/Utilities.js"],et["Core/Defaults.js"],et["Core/Animation/Fx.js"],et["Core/Animation/AnimationUtilities.js"],et["Core/Renderer/HTML/AST.js"],et["Core/FormatUtilities.js"],et["Core/Renderer/RendererUtilities.js"],et["Core/Renderer/SVG/SVGElement.js"],et["Core/Renderer/SVG/SVGRenderer.js"],et["Core/Renderer/HTML/HTMLElement.js"],et["Core/Renderer/HTML/HTMLRenderer.js"],et["Core/Axis/Axis.js"],et["Core/Axis/DateTimeAxis.js"],et["Core/Axis/LogarithmicAxis.js"],et["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],et["Core/Axis/Tick.js"],et["Core/Tooltip.js"],et["Core/Series/Point.js"],et["Core/Pointer.js"],et["Core/MSPointer.js"],et["Core/Legend/Legend.js"],et["Core/Chart/Chart.js"],et["Core/Axis/Stacking/StackingAxis.js"],et["Core/Axis/Stacking/StackItem.js"],et["Core/Series/Series.js"],et["Core/Series/SeriesRegistry.js"],et["Series/Column/ColumnSeries.js"],et["Series/Column/ColumnDataLabel.js"],et["Series/Pie/PieSeries.js"],et["Series/Pie/PieDataLabel.js"],et["Core/Series/DataLabel.js"],et["Core/Responsive.js"],et["Core/Color/Color.js"],et["Core/Time.js"]],function(G,B,X,U,$,Z,V,z,I,E,M,P,y,h,f,m,u,v,S,w,x,c,g,r,a,t,i,o,e,s,n,l,b,k,D){return G.animate=$.animate,G.animObject=$.animObject,G.getDeferredAnimation=$.getDeferredAnimation,G.setAnimation=$.setAnimation,G.stop=$.stop,G.timers=U.timers,G.AST=Z,G.Axis=y,G.Chart=g,G.chart=g.chart,G.Fx=U,G.Legend=c,G.PlotLineOrBand=m,G.Point=S,G.Pointer=x.isRequired()?x:w,G.Series=t,G.StackItem=a,G.SVGElement=I,G.SVGRenderer=E,G.Tick=u,G.Time=D,G.Tooltip=v,G.Color=k,G.color=k.parse,P.compose(E),M.compose(I),G.defaultOptions=X.defaultOptions,G.getOptions=X.getOptions,G.time=X.defaultTime,G.setOptions=X.setOptions,G.dateFormat=V.dateFormat,G.format=V.format,G.numberFormat=V.numberFormat,G.addEvent=B.addEvent,G.arrayMax=B.arrayMax,G.arrayMin=B.arrayMin,G.attr=B.attr,G.clearTimeout=B.clearTimeout,G.correctFloat=B.correctFloat,G.createElement=B.createElement,G.css=B.css,G.defined=B.defined,G.destroyObjectProperties=B.destroyObjectProperties,G.discardElement=B.discardElement,G.distribute=z.distribute,G.erase=B.erase,G.error=B.error,G.extend=B.extend,G.extendClass=B.extendClass,G.find=B.find,G.fireEvent=B.fireEvent,G.getMagnitude=B.getMagnitude,G.getStyle=B.getStyle,G.inArray=B.inArray,G.isArray=B.isArray,G.isClass=B.isClass,G.isDOMElement=B.isDOMElement,G.isFunction=B.isFunction,G.isNumber=B.isNumber,G.isObject=B.isObject,G.isString=B.isString,G.keys=B.keys,G.merge=B.merge,G.normalizeTickInterval=B.normalizeTickInterval,G.objectEach=B.objectEach,G.offset=B.offset,G.pad=B.pad,G.pick=B.pick,G.pInt=B.pInt,G.relativeLength=B.relativeLength,G.removeEvent=B.removeEvent,G.seriesType=i.seriesType,G.splat=B.splat,G.stableSort=B.stableSort,G.syncTimeout=B.syncTimeout,G.timeUnits=B.timeUnits,G.uniqueKey=B.uniqueKey,G.useSerialIds=B.useSerialIds,G.wrap=B.wrap,e.compose(o),l.compose(t),h.compose(y),f.compose(y),n.compose(s),m.compose(y),b.compose(g),r.compose(y,g,t),G}),et["masters/highcharts.src.js"]._modules=et,et["masters/highcharts.src.js"]},it.exports?(pt.default=pt,it.exports=ct.document?pt(ct):pt):(ht=function(){return pt(ct)}.call(rt,st,rt,it))===void 0||(it.exports=ht)},4812:(it,rt,st)=>{var ht,ct,pt;pt=function(ft){var _=ft?ft._modules:{};function et(G,B,X,U){G.hasOwnProperty(B)||(G[B]=U.apply(null,X),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:B,module:G[B]}})))}et(_,"Series/Bullet/BulletPoint.js",[_["Series/Column/ColumnSeries.js"]],function(G){var B,X=this&&this.__extends||(B=function($,Z){return B=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(V,z){V.__proto__=z}||function(V,z){for(var I in z)z.hasOwnProperty(I)&&(V[I]=z[I])},B($,Z)},function($,Z){function V(){this.constructor=$}B($,Z),$.prototype=Z===null?Object.create(Z):(V.prototype=Z.prototype,new V)}),U=function($){function Z(){var V=$!==null&&$.apply(this,arguments)||this;return V.options=void 0,V.series=void 0,V}return X(Z,$),Z.prototype.destroy=function(){this.targetGraphic&&(this.targetGraphic=this.targetGraphic.destroy()),$.prototype.destroy.apply(this,arguments)},Z}(G.prototype.pointClass);return U}),et(_,"Series/Bullet/BulletSeries.js",[_["Series/Bullet/BulletPoint.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,X){var U,$=this&&this.__extends||(U=function(y,h){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var u in m)m.hasOwnProperty(u)&&(f[u]=m[u])},U(y,h)},function(y,h){function f(){this.constructor=y}U(y,h),y.prototype=h===null?Object.create(h):(f.prototype=h.prototype,new f)}),Z=B.seriesTypes.column,V=X.extend,z=X.isNumber,I=X.merge,E=X.pick,M=X.relativeLength,P=function(y){function h(){var f=y!==null&&y.apply(this,arguments)||this;return f.data=void 0,f.options=void 0,f.points=void 0,f.targetData=void 0,f}return $(h,y),h.prototype.drawPoints=function(){var f=this,m=f.chart,u=f.options,v=u.animationLimit||250;y.prototype.drawPoints.apply(this,arguments),f.points.forEach(function(S){var w,x,c,g,r,a=S.options,t=S.target,i=S.y,o=S.targetGraphic;if(z(t)&&t!==null){c=(g=I(u.targetOptions,a.targetOptions)).height;var e=S.shapeArgs;S.dlBox&&e&&!z(e.width)&&(e=S.dlBox),x=M(g.width,e.width),r=f.yAxis.translate(t,!1,!0,!1,!0)-g.height/2-.5,w=f.crispCol.apply({chart:m,borderWidth:g.borderWidth,options:{crisp:u.crisp}},[e.x+e.width/2-x/2,r,x,c]),o?(o[m.pointCount<v?"animate":"attr"](w),z(i)&&i!==null?o.element.point=S:o.element.point=void 0):S.targetGraphic=o=m.renderer.rect().attr(w).add(f.group),m.styledMode||o.attr({fill:E(g.color,a.color,f.zones.length&&(S.getZone.call({series:f,x:S.x,y:t,options:{}}).color||f.color)||void 0,S.color,f.color),stroke:E(g.borderColor,S.borderColor,f.options.borderColor),"stroke-width":g.borderWidth,r:g.borderRadius}),z(i)&&i!==null&&(o.element.point=S),o.addClass(S.getClassName()+" highcharts-bullet-target",!0)}else o&&(S.targetGraphic=o.destroy())})},h.prototype.getExtremes=function(f){var m=y.prototype.getExtremes.call(this,f),u=this.targetData;if(u&&u.length){var v=y.prototype.getExtremes.call(this,u);z(v.dataMin)&&(m.dataMin=Math.min(E(m.dataMin,1/0),v.dataMin)),z(v.dataMax)&&(m.dataMax=Math.max(E(m.dataMax,-1/0),v.dataMax))}return m},h.defaultOptions=I(Z.defaultOptions,{targetOptions:{width:"140%",height:3,borderWidth:0,borderRadius:0},tooltip:{pointFormat:'<span style="color:{series.color}">●</span> {series.name}: <b>{point.y}</b>. Target: <b>{point.target}</b><br/>'}}),h}(Z);return V(P.prototype,{parallelArrays:["x","y","target"],pointArrayMap:["y","target"]}),P.prototype.pointClass=G,B.registerSeriesType("bullet",P),P}),et(_,"masters/modules/bullet.src.js",[],function(){})},it.exports?(pt.default=pt,it.exports=pt):(ht=[st(4783)],(ct=function(ft){return pt(ft),pt.Highcharts=ft,pt}.apply(rt,ht))===void 0||(it.exports=ct))},5035:(it,rt)=>{Object.defineProperty(rt,"__esModule",{value:!0}),rt.calculateInscribedCircle=void 0;var st=2*Math.PI,ht=1e-9,ct=function(_){var et=_%st;return et<=-Math.PI?et+st:et>Math.PI?et-st:et},pt=function(_,et,G){return et?Number.POSITIVE_INFINITY:G*_},ft=function(_,et){return{id:"outerArc",radialDistance:_/(1+et),radius:_*et/(1+et)}};rt.calculateInscribedCircle=function(_){if(!(_.innerArcRadius>=0&&_.outerArcRadius>_.innerArcRadius))return{angle:0,radialDistance:0,radius:0};if(Math.abs(_.phi1-_.phi2)<ht)return{angle:_.phi1,radialDistance:0,radius:0};var et,G=ct(_.phi1),B=(et=((ct(_.phi2)-G)%st+st)%st)===0?st:et,X=function(P){return Math.sin(P/2)}(B),U=B>=Math.PI;if(B<ht)return{angle:G,radialDistance:0,radius:0};var $,Z,V=ct(G+B/2),z=[ft(_.outerArcRadius,X),($=_.innerArcRadius,Z=_.outerArcRadius,{id:"betweenArcs",radialDistance:($+Z)/2,radius:(Z-$)/2})].map(function(P){var y=function(h,f,m,u,v){var S=function(g,r,a,t){return a<g-ht||a>r+ht?Number.NEGATIVE_INFINITY:Math.min(t,a-g,r-a)}(f,m,h.radialDistance,h.radius);if(!Number.isFinite(S)||S<0)return{effectiveRadius:Number.NEGATIVE_INFINITY,active:{innerArc:!1,outerArc:!1,radials:!1}};var w=pt(u,v,h.radialDistance),x=Math.min(S,w),c=function(g,r){return Math.abs(g-r)<=1e-6};return{effectiveRadius:x,active:{innerArc:c(x,h.radialDistance-f),outerArc:c(x,m-h.radialDistance),radials:!v&&isFinite(w)&&c(x,w)}}}(P,_.innerArcRadius,_.outerArcRadius,X,U);return{candidate:P,effectiveRadius:y.effectiveRadius,active:y.active}}).filter(function(P){return P.effectiveRadius>0});if(z.length===0){var I=(_.innerArcRadius+_.outerArcRadius)/2;return{angle:V,radialDistance:I,radius:Math.max(0,Math.min(I-_.innerArcRadius,_.outerArcRadius-I,pt(X,U,I)))}}var E=z.reduce(function(P,y){return y.effectiveRadius>P.effectiveRadius?y:P}),M=Math.max(0,Math.min(E.effectiveRadius,E.candidate.radialDistance-_.innerArcRadius,_.outerArcRadius-E.candidate.radialDistance,pt(X,U,E.candidate.radialDistance)));return{angle:V,radialDistance:E.candidate.radialDistance,radius:M}}},5098:(it,rt,st)=>{var ht,ct,pt;pt=function(ft){var _=ft?ft._modules:{};function et(G,B,X,U){G.hasOwnProperty(B)||(G[B]=U.apply(null,X),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:B,module:G[B]}})))}et(_,"Accessibility/Utils/HTMLUtilities.js",[_["Core/Globals.js"],_["Core/Utilities.js"]],function(G,B){var X=G.doc,U=G.win,$=B.css,Z=U.EventTarget&&new U.EventTarget||"none";function V(I){if(typeof U.MouseEvent=="function")return new U.MouseEvent(I.type,I);if(X.createEvent){var E=X.createEvent("MouseEvent");if(E.initMouseEvent)return E.initMouseEvent(I.type,I.bubbles,I.cancelable,I.view||U,I.detail,I.screenX,I.screenY,I.clientX,I.clientY,I.ctrlKey,I.altKey,I.shiftKey,I.metaKey,I.button,I.relatedTarget),E}return z(I.type)}function z(I,E,M){var P=E||{x:0,y:0};if(typeof U.MouseEvent=="function")return new U.MouseEvent(I,{bubbles:!0,cancelable:!0,composed:!0,button:0,buttons:1,relatedTarget:M||Z,view:U,detail:I==="click"?1:0,screenX:P.x,screenY:P.y,clientX:P.x,clientY:P.y});if(X.createEvent){var y=X.createEvent("MouseEvent");if(y.initMouseEvent)return y.initMouseEvent(I,!0,!0,U,I==="click"?1:0,P.x,P.y,P.x,P.y,!1,!1,!1,!1,0,null),y}return{type:I}}return{addClass:function(I,E){I.classList?I.classList.add(E):I.className.indexOf(E)<0&&(I.className+=" "+E)},cloneMouseEvent:V,cloneTouchEvent:function(I){var E=function(y){for(var h=[],f=0;f<y.length;++f){var m=y.item(f);m&&h.push(m)}return h};if(typeof U.TouchEvent=="function"){var M=new U.TouchEvent(I.type,{touches:E(I.touches),targetTouches:E(I.targetTouches),changedTouches:E(I.changedTouches),ctrlKey:I.ctrlKey,shiftKey:I.shiftKey,altKey:I.altKey,metaKey:I.metaKey,bubbles:I.bubbles,cancelable:I.cancelable,composed:I.composed,detail:I.detail,view:I.view});return I.defaultPrevented&&M.preventDefault(),M}var P=V(I);return P.touches=I.touches,P.changedTouches=I.changedTouches,P.targetTouches=I.targetTouches,P},escapeStringForHTML:function(I){return I.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/")},getElement:function(I){return X.getElementById(I)},getFakeMouseEvent:z,getHeadingTagNameForElement:function(I){var E=function(y){var h=parseInt(y.slice(1),10);return"h"+Math.min(6,h+1)},M=function(y){return/H[1-6]/.test(y)},P=function(y){var h=function(u){for(var v=u;v=v.previousSibling;){var S=v.tagName||"";if(M(S))return S}return""}(y);if(h)return E(h);var f=y.parentElement;if(!f)return"p";var m=f.tagName;return M(m)?E(m):P(f)};return P(I)},removeChildNodes:function(I){for(;I.lastChild;)I.removeChild(I.lastChild)},removeClass:function(I,E){I.classList?I.classList.remove(E):I.className=I.className.replace(new RegExp(E,"g"),"")},removeElement:function(I){I&&I.parentNode&&I.parentNode.removeChild(I)},reverseChildNodes:function(I){for(var E=I.childNodes.length;E--;)I.appendChild(I.childNodes[E])},simulatedEventTarget:Z,stripHTMLTagsFromString:function(I){return typeof I=="string"?I.replace(/<\/?[^>]+(>|$)/g,""):I},visuallyHideElement:function(I){$(I,{position:"absolute",width:"1px",height:"1px",overflow:"hidden",whiteSpace:"nowrap",clip:"rect(1px, 1px, 1px, 1px)",marginTop:"-3px","-ms-filter":"progid:DXImageTransform.Microsoft.Alpha(Opacity=1)",filter:"alpha(opacity=1)",opacity:.01})}}}),et(_,"Accessibility/A11yI18n.js",[_["Core/FormatUtilities.js"],_["Core/Utilities.js"]],function(G,B){var X,U=G.format,$=B.getNestedProperty,Z=B.pick;return function(V){var z=[];function I(M,P,y){var h,f,m=function(S,w){var x=S.slice(w||0),c=x.indexOf("{"),g=x.indexOf("}");if(c>-1&&g>c)return{statement:x.substring(c+1,g),begin:w+c+1,end:w+g}},u=[],v=0;do h=m(M,v),(f=M.substring(v,h&&h.begin-1)).length&&u.push({value:f,type:"constant"}),h&&u.push({value:h.statement,type:"statement"}),v=h?h.end+1:v+1;while(h);return u.forEach(function(S){S.type==="statement"&&(S.value=function(w,x){var c,g,r,a=w.indexOf("#each("),t=w.indexOf("#plural("),i=w.indexOf("["),o=w.indexOf("]");if(a>-1){var e=w.slice(a).indexOf(")")+a,s=w.substring(0,a),n=w.substring(e+1),l=w.substring(a+6,e).split(","),b=Number(l[1]),k=void 0;if(g="",c=$(l[0],x)){k=(b=isNaN(b)?c.length:b)<0?c.length+b:Math.min(b,c.length);for(var D=0;D<k;++D)g+=s+c[D]+n}return g.length?g:""}if(t>-1){var d=w.slice(t).indexOf(")")+t,C=w.substring(t+8,d).split(",");switch(Number($(C[0],x))){case 0:g=Z(C[4],C[1]);break;case 1:g=Z(C[2],C[1]);break;case 2:g=Z(C[3],C[1]);break;default:g=C[1]}return g?(r=g).trim&&r.trim()||r.replace(/^\s+|\s+$/g,""):""}if(i>-1){var A=w.substring(0,i),N=Number(w.substring(i+1,o)),R=void 0;return c=$(A,x),!isNaN(N)&&c&&(N<0?(R=c[c.length+N])===void 0&&(R=c[0]):(R=c[N])===void 0&&(R=c[c.length-1])),R!==void 0?R:""}return"{"+w+"}"}(S.value,P))}),U(u.reduce(function(S,w){return S+w.value},""),P,y)}function E(M,P){for(var y=M.split("."),h=this.options.lang,f=0;f<y.length;++f)h=h&&h[y[f]];return typeof h=="string"?I(h,P,this):""}V.compose=function(M){return z.indexOf(M)===-1&&(z.push(M),M.prototype.langFormat=E),M},V.i18nFormat=I}(X||(X={})),X}),et(_,"Accessibility/Utils/ChartUtilities.js",[_["Core/Globals.js"],_["Accessibility/Utils/HTMLUtilities.js"],_["Core/Utilities.js"]],function(G,B,X){var U=G.doc,$=B.stripHTMLTagsFromString,Z=X.defined,V=X.find,z=X.fireEvent;function I(M){if(M.points&&M.points.length){var P=V(M.points,function(y){return!!y.graphic});return P&&P.graphic&&P.graphic.element}}function E(M){var P=I(M);return P&&P.parentNode||M.graph&&M.graph.element||M.group&&M.group.element}return{fireEventOnWrappedOrUnwrappedElement:function M(P,y){var h=y.type,f=P.hcEvents;U.createEvent&&(P.dispatchEvent||P.fireEvent)?P.dispatchEvent?P.dispatchEvent(y):P.fireEvent(h,y):f&&f[h]?z(P,h,y):P.element&&M(P.element,y)},getChartTitle:function(M){return $(M.options.title.text||M.langFormat("accessibility.defaultChartTitle",{chart:M}))},getAxisDescription:function(M){return M&&(M.userOptions&&M.userOptions.accessibility&&M.userOptions.accessibility.description||M.axisTitle&&M.axisTitle.textStr||M.options.id||M.categories&&"categories"||M.dateTime&&"Time"||"values")},getAxisRangeDescription:function(M){var P=M.options||{};return P.accessibility&&P.accessibility.rangeDescription!==void 0?P.accessibility.rangeDescription:M.categories?function(y){var h=y.chart;return y.dataMax&&y.dataMin?h.langFormat("accessibility.axis.rangeCategories",{chart:h,axis:y,numCategories:y.dataMax-y.dataMin+1}):""}(M):!M.dateTime||M.min!==0&&M.dataMin!==0?function(y){var h=y.chart,f=h.options,m=f&&f.accessibility&&f.accessibility.screenReaderSection.axisRangeDateFormat||"",u={min:y.dataMin||y.min||0,max:y.dataMax||y.max||0},v=function(S){return y.dateTime?h.time.dateFormat(m,u[S]):u[S].toString()};return h.langFormat("accessibility.axis.rangeFromTo",{chart:h,axis:y,rangeFrom:v("min"),rangeTo:v("max")})}(M):function(y){var h=y.chart,f={},m=y.dataMin||y.min||0,u=y.dataMax||y.max||0,v="Seconds";f.Seconds=(u-m)/1e3,f.Minutes=f.Seconds/60,f.Hours=f.Minutes/60,f.Days=f.Hours/24,["Minutes","Hours","Days"].forEach(function(w){f[w]>2&&(v=w)});var S=f[v].toFixed(v!=="Seconds"&&v!=="Minutes"?1:0);return h.langFormat("accessibility.axis.timeRange"+v,{chart:h,axis:y,range:S.replace(".0","")})}(M)},getPointFromXY:function(M,P,y){for(var h,f=M.length;f--;)if(h=V(M[f].points||[],function(m){return m.x===P&&m.y===y}))return h},getSeriesFirstPointElement:I,getSeriesFromName:function(M,P){return P?(M.series||[]).filter(function(y){return y.name===P}):M.series},getSeriesA11yElement:E,unhideChartElementFromAT:function M(P,y){y.setAttribute("aria-hidden",!1),y!==P.renderTo&&y.parentNode&&y.parentNode!==U.body&&(Array.prototype.forEach.call(y.parentNode.childNodes,function(h){h.hasAttribute("aria-hidden")||h.setAttribute("aria-hidden",!0)}),M(P,y.parentNode))},hideSeriesFromAT:function(M){var P=E(M);P&&P.setAttribute("aria-hidden",!0)},scrollToPoint:function(M){var P=M.series.xAxis,y=M.series.yAxis,h=P&&P.scrollbar?P:y,f=h&&h.scrollbar;if(f&&Z(f.to)&&Z(f.from)){var m=f.to-f.from,u=function(v,S){if(!Z(v.dataMin)||!Z(v.dataMax))return 0;var w=v.toPixels(v.dataMin),x=v.toPixels(v.dataMax),c=v.coll==="xAxis"?"x":"y";return(v.toPixels(S[c]||0)-w)/(x-w)}(h,M);f.updatePosition(u-m/2,u+m/2),z(f,"changed",{from:f.from,to:f.to,trigger:"scrollbar",DOMEvent:null})}}}}),et(_,"Accessibility/Utils/DOMElementProvider.js",[_["Core/Globals.js"],_["Accessibility/Utils/HTMLUtilities.js"]],function(G,B){var X=G.doc,U=B.removeElement,$=function(){function Z(){this.elements=[]}return Z.prototype.createElement=function(){var V=X.createElement.apply(X,arguments);return this.elements.push(V),V},Z.prototype.destroyCreatedElements=function(){this.elements.forEach(function(V){U(V)}),this.elements=[]},Z}();return $}),et(_,"Accessibility/Utils/EventProvider.js",[_["Core/Globals.js"],_["Core/Utilities.js"]],function(G,B){var X=B.addEvent,U=function(){function $(){this.eventRemovers=[]}return $.prototype.addEvent=function(){var Z=X.apply(G,arguments);return this.eventRemovers.push(Z),Z},$.prototype.removeAddedEvents=function(){this.eventRemovers.forEach(function(Z){return Z()}),this.eventRemovers=[]},$}();return U}),et(_,"Accessibility/AccessibilityComponent.js",[_["Accessibility/Utils/ChartUtilities.js"],_["Accessibility/Utils/DOMElementProvider.js"],_["Accessibility/Utils/EventProvider.js"],_["Accessibility/Utils/HTMLUtilities.js"],_["Core/Utilities.js"]],function(G,B,X,U,$){var Z=G.fireEventOnWrappedOrUnwrappedElement,V=U.getFakeMouseEvent,z=$.extend,I=function(){function E(){this.chart=void 0,this.domElementProvider=void 0,this.eventProvider=void 0,this.keyCodes=void 0,this.proxyProvider=void 0}return E.prototype.initBase=function(M,P){this.chart=M,this.eventProvider=new X,this.domElementProvider=new B,this.proxyProvider=P,this.keyCodes={left:37,right:39,up:38,down:40,enter:13,space:32,esc:27,tab:9,pageUp:33,pageDown:34,end:35,home:36}},E.prototype.addEvent=function(M,P,y,h){return this.eventProvider.addEvent(M,P,y,h)},E.prototype.createElement=function(M,P){return this.domElementProvider.createElement(M,P)},E.prototype.fakeClickEvent=function(M){var P=V("click");Z(M,P)},E.prototype.destroyBase=function(){this.domElementProvider.destroyCreatedElements(),this.eventProvider.removeAddedEvents()},E}();return z(I.prototype,{init:function(){},getKeyboardNavigation:function(){},onChartUpdate:function(){},onChartRender:function(){},destroy:function(){}}),I}),et(_,"Accessibility/KeyboardNavigationHandler.js",[_["Core/Utilities.js"]],function(G){var B=G.find;return function(){function X(U,$){this.chart=U,this.keyCodeMap=$.keyCodeMap||[],this.validate=$.validate,this.init=$.init,this.terminate=$.terminate,this.response={success:1,prev:2,next:3,noHandler:4,fail:5}}return X.prototype.run=function(U){var $=U.which||U.keyCode,Z=this.response.noHandler,V=B(this.keyCodeMap,function(z){return z[0].indexOf($)>-1});return V?Z=V[1].call(this,$,U):$===9&&(Z=this.response[U.shiftKey?"prev":"next"]),Z},X}()}),et(_,"Accessibility/Components/ContainerComponent.js",[_["Accessibility/AccessibilityComponent.js"],_["Accessibility/KeyboardNavigationHandler.js"],_["Accessibility/Utils/ChartUtilities.js"],_["Core/Globals.js"],_["Accessibility/Utils/HTMLUtilities.js"]],function(G,B,X,U,$){var Z,V=this&&this.__extends||(Z=function(y,h){return Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var u in m)m.hasOwnProperty(u)&&(f[u]=m[u])},Z(y,h)},function(y,h){function f(){this.constructor=y}Z(y,h),y.prototype=h===null?Object.create(h):(f.prototype=h.prototype,new f)}),z=X.unhideChartElementFromAT,I=X.getChartTitle,E=U.doc,M=$.stripHTMLTagsFromString,P=function(y){function h(){return y!==null&&y.apply(this,arguments)||this}return V(h,y),h.prototype.onChartUpdate=function(){this.handleSVGTitleElement(),this.setSVGContainerLabel(),this.setGraphicContainerAttrs(),this.setRenderToAttrs(),this.makeCreditsAccessible()},h.prototype.handleSVGTitleElement=function(){var f=this.chart,m="highcharts-title-"+f.index,u=M(f.langFormat("accessibility.svgContainerTitle",{chartTitle:I(f)}));if(u.length){var v=this.svgTitleElement=this.svgTitleElement||E.createElementNS("http://www.w3.org/2000/svg","title");v.textContent=u,v.id=m,f.renderTo.insertBefore(v,f.renderTo.firstChild)}},h.prototype.setSVGContainerLabel=function(){var f=this.chart,m=f.langFormat("accessibility.svgContainerLabel",{chartTitle:I(f)});f.renderer.box&&m.length&&f.renderer.box.setAttribute("aria-label",m)},h.prototype.setGraphicContainerAttrs=function(){var f=this.chart,m=f.langFormat("accessibility.graphicContainerLabel",{chartTitle:I(f)});m.length&&f.container.setAttribute("aria-label",m)},h.prototype.setRenderToAttrs=function(){var f=this.chart,m=f.options.accessibility.landmarkVerbosity!=="disabled",u=f.langFormat("accessibility.chartContainerLabel",{title:I(f),chart:f});u&&(f.renderTo.setAttribute("role",m?"region":"group"),f.renderTo.setAttribute("aria-label",u))},h.prototype.makeCreditsAccessible=function(){var f=this.chart,m=f.credits;m&&(m.textStr&&m.element.setAttribute("aria-label",f.langFormat("accessibility.credits",{creditsStr:M(m.textStr)})),z(f,m.element))},h.prototype.getKeyboardNavigation=function(){var f=this.chart;return new B(f,{keyCodeMap:[],validate:function(){return!0},init:function(){var m=f.accessibility;m&&m.keyboardNavigation.tabindexContainer.focus()}})},h.prototype.destroy=function(){this.chart.renderTo.setAttribute("aria-hidden",!0)},h}(G);return P}),et(_,"Accessibility/FocusBorder.js",[_["Core/Renderer/SVG/SVGLabel.js"],_["Core/Utilities.js"]],function(G,B){var X,U=B.addEvent,$=B.pick;return function(Z){var V=[],z=["x","y","transform","width","height","r","d","stroke-width"];function I(){var y=this.focusElement,h=this.options.accessibility.keyboardNavigation.focusBorder;y&&(y.removeFocusBorder(),h.enabled&&y.addFocusBorder(h.margin,{stroke:h.style.color,strokeWidth:h.style.lineWidth,r:h.style.borderRadius}))}function E(y,h){var f=this.options.accessibility.keyboardNavigation.focusBorder,m=h||y.element;m&&m.focus&&(m.hcEvents&&m.hcEvents.focusin||U(m,"focusin",function(){}),m.focus(),f.hideBrowserFocusOutline&&(m.style.outline="none")),this.focusElement&&this.focusElement.removeFocusBorder(),this.focusElement=y,this.renderFocusBorder()}function M(y,h){this.focusBorder&&this.removeFocusBorder();var f=this.getBBox(),m=$(y,3),u=this.parentGroup,v=this.scaleX||u&&u.scaleX,S=this.scaleY||u&&u.scaleY,w=(v?!S:S)?Math.abs(v||S||1):(Math.abs(v||1)+Math.abs(S||1))/2;f.x+=this.translateX?this.translateX:0,f.y+=this.translateY?this.translateY:0;var x,c,g,r=f.x-m,a=f.y-m,t=f.width+2*m,i=f.height+2*m,o=this instanceof G;if(this.element.nodeName==="text"||o){var e=!!this.rotation,s=o?{x:e?1:0,y:0}:(c=0,g=0,(x=this).attr("text-anchor")==="middle"?c=g=.5:x.rotation?c=.25:g=.75,{x:c,y:g}),n=+this.attr("x"),l=+this.attr("y");if(isNaN(n)||(r=n-f.width*s.x-m),isNaN(l)||(a=l-f.height*s.y-m),o&&e){var b=t;t=i,i=b,isNaN(n)||(r=n-f.height*s.x-m),isNaN(l)||(a=l-f.width*s.y-m)}}this.focusBorder=this.renderer.rect(r,a,t,i,parseInt((h&&h.r||0).toString(),10)/w).addClass("highcharts-focus-border").attr({zIndex:99}).add(u),this.renderer.styledMode||this.focusBorder.attr({stroke:h&&h.stroke,"stroke-width":(h&&h.strokeWidth||0)/w}),function(k){for(var D=[],d=1;d<arguments.length;d++)D[d-1]=arguments[d];k.focusBorderUpdateHooks||(k.focusBorderUpdateHooks={},z.forEach(function(C){var A=C+"Setter",N=k[A]||k._defaultSetter;k.focusBorderUpdateHooks[A]=N,k[A]=function(){var R=N.apply(k,arguments);return k.addFocusBorder.apply(k,D),R}}))}(this,y,h),function(k){if(!k.focusBorderDestroyHook){var D=k.destroy;k.destroy=function(){return k.focusBorder&&k.focusBorder.destroy&&k.focusBorder.destroy(),D.apply(k,arguments)},k.focusBorderDestroyHook=D}}(this)}function P(){var y;(function(h){h.focusBorderUpdateHooks&&(Object.keys(h.focusBorderUpdateHooks).forEach(function(f){var m=h.focusBorderUpdateHooks[f];m===h._defaultSetter?delete h[f]:h[f]=m}),delete h.focusBorderUpdateHooks)})(this),(y=this).focusBorderDestroyHook&&(y.destroy=y.focusBorderDestroyHook,delete y.focusBorderDestroyHook),this.focusBorder&&(this.focusBorder.destroy(),delete this.focusBorder)}Z.compose=function(y,h){if(V.indexOf(y)===-1){V.push(y);var f=y.prototype;f.renderFocusBorder=I,f.setFocusToElement=E}if(V.indexOf(h)===-1){V.push(h);var m=h.prototype;m.addFocusBorder=M,m.removeFocusBorder=P}}}(X||(X={})),X}),et(_,"Accessibility/Utils/Announcer.js",[_["Core/Renderer/HTML/AST.js"],_["Accessibility/Utils/DOMElementProvider.js"],_["Core/Globals.js"],_["Accessibility/Utils/HTMLUtilities.js"],_["Core/Utilities.js"]],function(G,B,X,U,$){var Z=X.doc,V=U.addClass,z=U.visuallyHideElement,I=$.attr;return function(){function E(M,P){this.chart=M,this.domElementProvider=new B,this.announceRegion=this.addAnnounceRegion(P)}return E.prototype.destroy=function(){this.domElementProvider.destroyCreatedElements()},E.prototype.announce=function(M){var P=this;G.setElementHTML(this.announceRegion,M),this.clearAnnouncementRegionTimer&&clearTimeout(this.clearAnnouncementRegionTimer),this.clearAnnouncementRegionTimer=setTimeout(function(){P.announceRegion.innerHTML=G.emptyHTML,delete P.clearAnnouncementRegionTimer},1e3)},E.prototype.addAnnounceRegion=function(M){var P=this.chart.announcerContainer||this.createAnnouncerContainer(),y=this.domElementProvider.createElement("div");return I(y,{"aria-hidden":!1,"aria-live":M}),this.chart.styledMode?V(y,"highcharts-visually-hidden"):z(y),P.appendChild(y),y},E.prototype.createAnnouncerContainer=function(){var M=this.chart,P=Z.createElement("div");return I(P,{"aria-hidden":!1,class:"highcharts-announcer-container"}),P.style.position="relative",M.renderTo.insertBefore(P,M.renderTo.firstChild),M.announcerContainer=P,P},E}()}),et(_,"Accessibility/Components/AnnotationsA11y.js",[_["Accessibility/Utils/HTMLUtilities.js"]],function(G){var B=G.escapeStringForHTML,X=G.stripHTMLTagsFromString;function U(z){return(z.annotations||[]).reduce(function(I,E){return E.options&&E.options.visible!==!1&&(I=I.concat(E.labels)),I},[])}function $(z){return z.options&&z.options.accessibility&&z.options.accessibility.description||z.graphic&&z.graphic.text&&z.graphic.text.textStr||""}function Z(z){var I=z.options&&z.options.accessibility&&z.options.accessibility.description;if(I)return I;var E=z.chart,M=$(z),P=z.points.filter(function(m){return!!m.graphic}).map(function(m){var u=m.accessibility&&m.accessibility.valueDescription||function(S){return S.graphic&&S.graphic.element&&S.graphic.element.getAttribute("aria-label")||""}(m),v=m&&m.series.name||"";return(v?v+", ":"")+"data point "+u}).filter(function(m){return!!m}),y=P.length,h="accessibility.screenReaderSection.annotations.description"+(y>1?"MultiplePoints":y?"SinglePoint":"NoPoints"),f={annotationText:M,annotation:z,numPoints:y,annotationPoint:P[0],additionalAnnotationPoints:P.slice(1)};return E.langFormat(h,f)}function V(z){return U(z).map(function(I){var E=B(X(Z(I)));return E?"<li>".concat(E,"</li>"):""})}return{getAnnotationsInfoHTML:function(z){var I=z.annotations;if(!I||!I.length)return"";var E=V(z);return'<ul style="list-style-type: none">'.concat(E.join(" "),"</ul>")},getAnnotationLabelDescription:Z,getAnnotationListItems:V,getPointAnnotationTexts:function(z){var I=U(z.series.chart).filter(function(E){return E.points.indexOf(z)>-1});return I.length?I.map(function(E){return"".concat($(E))}):[]}}}),et(_,"Accessibility/Components/InfoRegionsComponent.js",[_["Accessibility/A11yI18n.js"],_["Accessibility/AccessibilityComponent.js"],_["Accessibility/Utils/Announcer.js"],_["Accessibility/Components/AnnotationsA11y.js"],_["Core/Renderer/HTML/AST.js"],_["Accessibility/Utils/ChartUtilities.js"],_["Core/FormatUtilities.js"],_["Core/Globals.js"],_["Accessibility/Utils/HTMLUtilities.js"],_["Core/Utilities.js"]],function(G,B,X,U,$,Z,V,z,I,E){var M,P=this&&this.__extends||(M=function(e,s){return M=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,l){n.__proto__=l}||function(n,l){for(var b in l)l.hasOwnProperty(b)&&(n[b]=l[b])},M(e,s)},function(e,s){function n(){this.constructor=e}M(e,s),e.prototype=s===null?Object.create(s):(n.prototype=s.prototype,new n)}),y=U.getAnnotationsInfoHTML,h=Z.getAxisDescription,f=Z.getAxisRangeDescription,m=Z.getChartTitle,u=Z.unhideChartElementFromAT,v=V.format,S=z.doc,w=I.addClass,x=I.getElement,c=I.getHeadingTagNameForElement,g=I.stripHTMLTagsFromString,r=I.visuallyHideElement,a=E.attr,t=E.pick;function i(e){return e.replace(/<(\w+)[^>]*?>\s*<\/\1>/g,"")}var o=function(e){function s(){var n=e!==null&&e.apply(this,arguments)||this;return n.announcer=void 0,n.screenReaderSections={},n}return P(s,e),s.prototype.init=function(){var n=this.chart,l=this;this.initRegionsDefinitions(),this.addEvent(n,"aftergetTableAST",function(b){l.onDataTableCreated(b)}),this.addEvent(n,"afterViewData",function(b){b.wasHidden&&(l.dataTableDiv=b.element,setTimeout(function(){l.focusDataTable()},300))}),this.announcer=new X(n,"assertive")},s.prototype.initRegionsDefinitions=function(){var n=this;this.screenReaderSections={before:{element:null,buildContent:function(l){var b=l.options.accessibility.screenReaderSection.beforeChartFormatter;return b?b(l):n.defaultBeforeChartFormatter(l)},insertIntoDOM:function(l,b){b.renderTo.insertBefore(l,b.renderTo.firstChild)},afterInserted:function(){n.sonifyButtonId!==void 0&&n.initSonifyButton(n.sonifyButtonId),n.dataTableButtonId!==void 0&&n.initDataTableButton(n.dataTableButtonId)}},after:{element:null,buildContent:function(l){var b=l.options.accessibility.screenReaderSection.afterChartFormatter;return b?b(l):n.defaultAfterChartFormatter()},insertIntoDOM:function(l,b){b.renderTo.insertBefore(l,b.container.nextSibling)},afterInserted:function(){n.chart.accessibility&&n.chart.accessibility.keyboardNavigation.updateExitAnchor()}}}},s.prototype.onChartRender=function(){var n=this;this.linkedDescriptionElement=this.getLinkedDescriptionElement(),this.setLinkedDescriptionAttrs(),Object.keys(this.screenReaderSections).forEach(function(l){n.updateScreenReaderSection(l)})},s.prototype.getLinkedDescriptionElement=function(){var n=this.chart.options.accessibility.linkedDescription;if(n){if(typeof n!="string")return n;var l=v(n,this.chart),b=S.querySelectorAll(l);return b.length===1?b[0]:void 0}},s.prototype.setLinkedDescriptionAttrs=function(){var n=this.linkedDescriptionElement;n&&(n.setAttribute("aria-hidden","true"),w(n,"highcharts-linked-description"))},s.prototype.updateScreenReaderSection=function(n){var l=this.chart,b=this.screenReaderSections[n],k=b.buildContent(l),D=b.element=b.element||this.createElement("div"),d=D.firstChild||this.createElement("div");k?(this.setScreenReaderSectionAttribs(D,n),$.setElementHTML(d,k),D.appendChild(d),b.insertIntoDOM(D,l),l.styledMode?w(d,"highcharts-visually-hidden"):r(d),u(l,d),b.afterInserted&&b.afterInserted()):(D.parentNode&&D.parentNode.removeChild(D),b.element=null)},s.prototype.setScreenReaderSectionAttribs=function(n,l){var b=this.chart,k=b.langFormat("accessibility.screenReaderSection."+l+"RegionLabel",{chart:b,chartTitle:m(b)}),D="highcharts-screen-reader-region-".concat(l,"-").concat(b.index);a(n,{id:D,"aria-label":k||void 0}),n.style.position="relative",k&&n.setAttribute("role",b.options.accessibility.landmarkVerbosity==="all"?"region":"group")},s.prototype.defaultBeforeChartFormatter=function(){var n=this.chart,l=n.options.accessibility.screenReaderSection.beforeChartFormat;if(!l)return"";var b=this.getAxesDescription(),k=n.sonify&&n.options.sonification&&n.options.sonification.enabled,D="highcharts-a11y-sonify-data-btn-"+n.index,d="hc-linkto-highcharts-data-table-"+n.index,C=y(n),A=n.langFormat("accessibility.screenReaderSection.annotations.heading",{chart:n}),N={headingTagName:c(n.renderTo),chartTitle:m(n),typeDescription:this.getTypeDescriptionText(),chartSubtitle:this.getSubtitleText(),chartLongdesc:this.getLongdescText(),xAxisDescription:b.xAxis,yAxisDescription:b.yAxis,playAsSoundButton:k?this.getSonifyButtonText(D):"",viewTableButton:n.getCSV?this.getDataTableButtonText(d):"",annotationsTitle:C?A:"",annotationsList:C},R=G.i18nFormat(l,N,n);return this.dataTableButtonId=d,this.sonifyButtonId=D,i(R)},s.prototype.defaultAfterChartFormatter=function(){var n=this.chart,l=n.options.accessibility.screenReaderSection.afterChartFormat;if(!l)return"";var b={endOfChartMarker:this.getEndOfChartMarkerText()};return i(G.i18nFormat(l,b,n))},s.prototype.getLinkedDescription=function(){var n=this.linkedDescriptionElement,l=n&&n.innerHTML||"";return g(l)},s.prototype.getLongdescText=function(){var n=this.chart.options,l=n.caption,b=l&&l.text,k=this.getLinkedDescription();return n.accessibility.description||k||b||""},s.prototype.getTypeDescriptionText=function(){var n=this.chart;return n.types?n.options.accessibility.typeDescription||function(l,b){var k=b[0],D=l.series&&l.series[0]||{},d=l.mapView&&l.mapView.geoMap&&l.mapView.geoMap.title,C={numSeries:l.series.length,numPoints:D.points&&D.points.length,chart:l,mapTitle:d};return k?k==="map"?function(A,N){return N.mapTitle?A.langFormat("accessibility.chartTypes.mapTypeDescription",N):A.langFormat("accessibility.chartTypes.unknownMap",N)}(l,C):l.types.length>1?function(A,N){return A.langFormat("accessibility.chartTypes.combinationChart",N)}(l,C):function(A,N,R){var L=N[0],O=A.langFormat("accessibility.seriesTypeDescriptions."+L,R),j=A.series&&A.series.length<2?"Single":"Multiple";return(A.langFormat("accessibility.chartTypes."+L+j,R)||A.langFormat("accessibility.chartTypes.default"+j,R))+(O?" "+O:"")}(l,b,C):function(A,N){return A.langFormat("accessibility.chartTypes.emptyChart",N)}(l,C)}(n,n.types):""},s.prototype.getDataTableButtonText=function(n){var l=this.chart;return'<button id="'+n+'">'+l.langFormat("accessibility.table.viewAsDataTableButtonText",{chart:l,chartTitle:m(l)})+"</button>"},s.prototype.getSonifyButtonText=function(n){var l=this.chart;return l.options.sonification&&l.options.sonification.enabled===!1?"":'<button id="'+n+'">'+l.langFormat("accessibility.sonification.playAsSoundButtonText",{chart:l,chartTitle:m(l)})+"</button>"},s.prototype.getSubtitleText=function(){var n=this.chart.options.subtitle;return g(n&&n.text||"")},s.prototype.getEndOfChartMarkerText=function(){var n=this.chart,l=n.langFormat("accessibility.screenReaderSection.endOfChartMarker",{chart:n});return'<div id="highcharts-end-of-chart-marker-'+n.index+'">'+l+"</div>"},s.prototype.onDataTableCreated=function(n){var l=this.chart;if(l.options.accessibility.enabled){this.viewDataTableButton&&this.viewDataTableButton.setAttribute("aria-expanded","true");var b=n.tree.attributes||{};b.tabindex=-1,b.summary=function(k){return k.langFormat("accessibility.table.tableSummary",{chart:k})}(l),n.tree.attributes=b}},s.prototype.focusDataTable=function(){var n=this.dataTableDiv,l=n&&n.getElementsByTagName("table")[0];l&&l.focus&&l.focus()},s.prototype.initSonifyButton=function(n){var l=this,b=this.sonifyButton=x(n),k=this.chart,D=function(d){b&&(b.setAttribute("aria-hidden","true"),b.setAttribute("aria-label","")),d.preventDefault(),d.stopPropagation();var C=k.langFormat("accessibility.sonification.playAsSoundClickAnnouncement",{chart:k});l.announcer.announce(C),setTimeout(function(){b&&(b.removeAttribute("aria-hidden"),b.removeAttribute("aria-label")),k.sonify&&k.sonify()},1e3)};b&&k&&(b.setAttribute("tabindex",-1),b.onclick=function(d){(k.options.accessibility&&k.options.accessibility.screenReaderSection.onPlayAsSoundClick||D).call(this,d,k)})},s.prototype.initDataTableButton=function(n){var l=this.viewDataTableButton=x(n),b=this.chart,k=n.replace("hc-linkto-","");l&&(a(l,{tabindex:-1,"aria-expanded":!!x(k)}),l.onclick=b.options.accessibility.screenReaderSection.onViewDataTableClick||function(){b.viewData()})},s.prototype.getAxesDescription=function(){var n=this.chart,l=function(A,N){var R=n[A];return R.length>1||R[0]&&t(R[0].options.accessibility&&R[0].options.accessibility.enabled,N)},b=!!n.types&&n.types.indexOf("map")<0&&n.types.indexOf("treemap")<0&&n.types.indexOf("tilemap")<0,k=!!n.hasCartesianSeries,D=l("xAxis",!n.angular&&k&&b),d=l("yAxis",k&&b),C={};return D&&(C.xAxis=this.getAxisDescriptionText("xAxis")),d&&(C.yAxis=this.getAxisDescriptionText("yAxis")),C},s.prototype.getAxisDescriptionText=function(n){var l=this.chart,b=l[n];return l.langFormat("accessibility.axis."+n+"Description"+(b.length>1?"Plural":"Singular"),{chart:l,names:b.map(function(k){return h(k)}),ranges:b.map(function(k){return f(k)}),numAxes:b.length})},s.prototype.destroy=function(){this.announcer&&this.announcer.destroy()},s}(B);return o}),et(_,"Accessibility/Components/MenuComponent.js",[_["Core/Chart/Chart.js"],_["Core/Utilities.js"],_["Accessibility/AccessibilityComponent.js"],_["Accessibility/KeyboardNavigationHandler.js"],_["Accessibility/Utils/ChartUtilities.js"],_["Accessibility/Utils/HTMLUtilities.js"]],function(G,B,X,U,$,Z){var V,z=this&&this.__extends||(V=function(f,m){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,v){u.__proto__=v}||function(u,v){for(var S in v)v.hasOwnProperty(S)&&(u[S]=v[S])},V(f,m)},function(f,m){function u(){this.constructor=f}V(f,m),f.prototype=m===null?Object.create(m):(u.prototype=m.prototype,new u)}),I=B.attr,E=$.getChartTitle,M=$.unhideChartElementFromAT,P=Z.getFakeMouseEvent;function y(f){return f.exportSVGElements&&f.exportSVGElements[0]}var h=function(f){function m(){return f!==null&&f.apply(this,arguments)||this}return z(m,f),m.prototype.init=function(){var u=this.chart,v=this;this.addEvent(u,"exportMenuShown",function(){v.onMenuShown()}),this.addEvent(u,"exportMenuHidden",function(){v.onMenuHidden()}),this.createProxyGroup()},m.prototype.onMenuHidden=function(){var u=this.chart.exportContextMenu;u&&u.setAttribute("aria-hidden","true"),this.setExportButtonExpandedState("false")},m.prototype.onMenuShown=function(){var u=this.chart,v=u.exportContextMenu;v&&(this.addAccessibleContextMenuAttribs(),M(u,v)),this.setExportButtonExpandedState("true")},m.prototype.setExportButtonExpandedState=function(u){this.exportButtonProxy&&this.exportButtonProxy.buttonElement.setAttribute("aria-expanded",u)},m.prototype.onChartRender=function(){var u=this.chart,v=u.focusElement,S=u.accessibility;this.proxyProvider.clearGroup("chartMenu"),this.proxyMenuButton(),this.exportButtonProxy&&v&&v===u.exportingGroup&&(v.focusBorder?u.setFocusToElement(v,this.exportButtonProxy.buttonElement):S&&S.keyboardNavigation.tabindexContainer.focus())},m.prototype.proxyMenuButton=function(){var u=this.chart,v=this.proxyProvider,S=y(u);(function(w){var x=w.options.exporting,c=y(w);return!!(x&&x.enabled!==!1&&x.accessibility&&x.accessibility.enabled&&c&&c.element)})(u)&&S&&(this.exportButtonProxy=v.addProxyElement("chartMenu",{click:S},{"aria-label":u.langFormat("accessibility.exporting.menuButtonLabel",{chart:u,chartTitle:E(u)}),"aria-expanded":!1,title:u.options.lang.contextButtonTitle||null}))},m.prototype.createProxyGroup=function(){this.chart&&this.proxyProvider&&this.proxyProvider.addGroup("chartMenu","div")},m.prototype.addAccessibleContextMenuAttribs=function(){var u=this.chart,v=u.exportDivElements;if(v&&v.length){v.forEach(function(w){w&&(w.tagName!=="LI"||w.children&&w.children.length?w.setAttribute("aria-hidden","true"):w.setAttribute("tabindex",-1))});var S=v[0]&&v[0].parentNode;S&&I(S,{"aria-hidden":void 0,"aria-label":u.langFormat("accessibility.exporting.chartMenuLabel",{chart:u}),role:"list"})}},m.prototype.getKeyboardNavigation=function(){var u=this.keyCodes,v=this.chart,S=this;return new U(v,{keyCodeMap:[[[u.left,u.up],function(){return S.onKbdPrevious(this)}],[[u.right,u.down],function(){return S.onKbdNext(this)}],[[u.enter,u.space],function(){return S.onKbdClick(this)}]],validate:function(){return!!v.exporting&&v.options.exporting.enabled!==!1&&v.options.exporting.accessibility.enabled!==!1},init:function(){var w=S.exportButtonProxy,x=S.chart.exportingGroup;w&&x&&v.setFocusToElement(x,w.buttonElement)},terminate:function(){v.hideExportMenu()}})},m.prototype.onKbdPrevious=function(u){for(var v=this.chart,S=v.options.accessibility,w=u.response,x=v.highlightedExportItemIx||0;x--;)if(v.highlightExportItem(x))return w.success;return S.keyboardNavigation.wrapAround?(v.highlightLastExportItem(),w.success):w.prev},m.prototype.onKbdNext=function(u){for(var v=this.chart,S=v.options.accessibility,w=u.response,x=(v.highlightedExportItemIx||0)+1;x<v.exportDivElements.length;++x)if(v.highlightExportItem(x))return w.success;return S.keyboardNavigation.wrapAround?(v.highlightExportItem(0),w.success):w.next},m.prototype.onKbdClick=function(u){var v=this.chart,S=v.exportDivElements[v.highlightedExportItemIx],w=y(v).element;return v.openMenu?this.fakeClickEvent(S):(this.fakeClickEvent(w),v.highlightExportItem(0)),u.response.success},m}(X);return function(f){var m=[];function u(){var x=y(this);if(x){var c=x.element;c.onclick&&c.onclick(P("click"))}}function v(){var x=this,c=x.exportDivElements;c&&x.exportContextMenu&&x.openMenu&&(c.forEach(function(g){g&&g.className==="highcharts-menu-item"&&g.onmouseout&&g.onmouseout(P("mouseout"))}),x.highlightedExportItemIx=0,x.exportContextMenu.hideMenu(),x.container.focus())}function S(x){var c=this.exportDivElements&&this.exportDivElements[x],g=this.exportDivElements&&this.exportDivElements[this.highlightedExportItemIx];if(c&&c.tagName==="LI"&&(!c.children||!c.children.length)){var r=!!(this.renderTo.getElementsByTagName("g")[0]||{}).focus;return c.focus&&r&&c.focus(),g&&g.onmouseout&&g.onmouseout(P("mouseout")),c.onmouseover&&c.onmouseover(P("mouseover")),this.highlightedExportItemIx=x,!0}return!1}function w(){var x=this;if(x.exportDivElements){for(var c=x.exportDivElements.length;c--;)if(x.highlightExportItem(c))return!0}return!1}f.compose=function(x){if(m.indexOf(x)===-1){m.push(x);var c=G.prototype;c.hideExportMenu=v,c.highlightExportItem=S,c.highlightLastExportItem=w,c.showExportMenu=u}}}(h||(h={})),h}),et(_,"Accessibility/KeyboardNavigation.js",[_["Core/Globals.js"],_["Accessibility/Components/MenuComponent.js"],_["Core/Utilities.js"],_["Accessibility/Utils/EventProvider.js"],_["Accessibility/Utils/HTMLUtilities.js"]],function(G,B,X,U,$){var Z=G.doc,V=G.win,z=X.addEvent,I=X.fireEvent,E=$.getElement,M=$.simulatedEventTarget,P=function(){function y(h,f){this.chart=void 0,this.components=void 0,this.currentModuleIx=NaN,this.eventProvider=void 0,this.exitAnchor=void 0,this.modules=[],this.tabindexContainer=void 0,this.init(h,f)}return y.prototype.init=function(h,f){var m=this,u=this.eventProvider=new U;this.chart=h,this.components=f,this.modules=[],this.currentModuleIx=0,this.update(),u.addEvent(this.tabindexContainer,"keydown",function(v){return m.onKeydown(v)}),u.addEvent(this.tabindexContainer,"focus",function(v){return m.onFocus(v)}),["mouseup","touchend"].forEach(function(v){return u.addEvent(Z,v,function(S){return m.onMouseUp(S)})}),["mousedown","touchstart"].forEach(function(v){return u.addEvent(h.renderTo,v,function(){m.isClickingChart=!0})}),u.addEvent(h.renderTo,"mouseover",function(){m.pointerIsOverChart=!0}),u.addEvent(h.renderTo,"mouseout",function(){m.pointerIsOverChart=!1})},y.prototype.update=function(h){var f=this.chart.options.accessibility,m=f&&f.keyboardNavigation,u=this.components;this.updateContainerTabindex(),m&&m.enabled&&h&&h.length?(this.modules=h.reduce(function(v,S){var w=u[S].getKeyboardNavigation();return v.concat(w)},[]),this.updateExitAnchor()):(this.modules=[],this.currentModuleIx=0,this.removeExitAnchor())},y.prototype.updateExitAnchor=function(){var h="highcharts-end-of-chart-marker-".concat(this.chart.index),f=E(h);this.removeExitAnchor(),f?(this.makeElementAnExitAnchor(f),this.exitAnchor=f):this.createExitAnchor()},y.prototype.move=function(h){var f=this.modules&&this.modules[this.currentModuleIx];f&&f.terminate&&f.terminate(h),this.chart.focusElement&&this.chart.focusElement.removeFocusBorder(),this.currentModuleIx+=h;var m=this.modules&&this.modules[this.currentModuleIx];if(m){if(m.validate&&!m.validate())return this.move(h);if(m.init)return m.init(h),!0}return this.currentModuleIx=0,this.exiting=!0,h>0?this.exitAnchor&&this.exitAnchor.focus():this.tabindexContainer.focus(),!1},y.prototype.onFocus=function(h){var f=this.chart,m=h.relatedTarget&&f.container.contains(h.relatedTarget);if(!(this.exiting||this.tabbingInBackwards||this.isClickingChart||m)){var u=this.getFirstValidModuleIx();u!==null&&(this.currentModuleIx=u,this.modules[u].init(1))}this.exiting=!1},y.prototype.onMouseUp=function(h){if(delete this.isClickingChart,!this.keyboardReset&&h.relatedTarget!==M){var f=this.chart;if(!this.pointerIsOverChart){var m=this.modules&&this.modules[this.currentModuleIx||0];m&&m.terminate&&m.terminate(),this.currentModuleIx=0}f.focusElement&&(f.focusElement.removeFocusBorder(),delete f.focusElement),this.keyboardReset=!0}},y.prototype.onKeydown=function(h){var f,m=h||V.event,u=this.modules&&this.modules.length&&this.modules[this.currentModuleIx];if(this.keyboardReset=!1,this.exiting=!1,u){var v=u.run(m);v===u.response.success?f=!0:v===u.response.prev?f=this.move(-1):v===u.response.next&&(f=this.move(1)),f&&(m.preventDefault(),m.stopPropagation())}},y.prototype.updateContainerTabindex=function(){var h,f=this.chart.options.accessibility,m=f&&f.keyboardNavigation,u=!(m&&m.enabled===!1),v=this.chart,S=v.container;v.renderTo.hasAttribute("tabindex")?(S.removeAttribute("tabindex"),h=v.renderTo):h=S,this.tabindexContainer=h;var w=h.getAttribute("tabindex");u&&!w?h.setAttribute("tabindex","0"):u||v.container.removeAttribute("tabindex")},y.prototype.createExitAnchor=function(){var h=this.chart,f=this.exitAnchor=Z.createElement("div");h.renderTo.appendChild(f),this.makeElementAnExitAnchor(f)},y.prototype.makeElementAnExitAnchor=function(h){var f=this.tabindexContainer.getAttribute("tabindex")||0;h.setAttribute("class","highcharts-exit-anchor"),h.setAttribute("tabindex",f),h.setAttribute("aria-hidden",!1),this.addExitAnchorEventsToEl(h)},y.prototype.removeExitAnchor=function(){this.exitAnchor&&this.exitAnchor.parentNode&&(this.exitAnchor.parentNode.removeChild(this.exitAnchor),delete this.exitAnchor)},y.prototype.addExitAnchorEventsToEl=function(h){var f=this.chart,m=this;this.eventProvider.addEvent(h,"focus",function(u){var v=u||V.event,S=!(v.relatedTarget&&f.container.contains(v.relatedTarget)||m.exiting);if(f.focusElement&&delete f.focusElement,S){if(m.tabbingInBackwards=!0,m.tabindexContainer.focus(),delete m.tabbingInBackwards,v.preventDefault(),m.modules&&m.modules.length){m.currentModuleIx=m.modules.length-1;var w=m.modules[m.currentModuleIx];w&&w.validate&&!w.validate()?m.move(-1):w&&w.init(-1)}}else m.exiting=!1})},y.prototype.getFirstValidModuleIx=function(){for(var h=this.modules.length,f=0;f<h;++f){var m=this.modules[f];if(!m.validate||m.validate())return f}return null},y.prototype.destroy=function(){this.removeExitAnchor(),this.eventProvider.removeAddedEvents(),this.chart.container.removeAttribute("tabindex")},y}();return function(y){var h=[];function f(){var u=this;I(this,"dismissPopupContent",{},function(){u.tooltip&&u.tooltip.hide(0),u.hideExportMenu()})}function m(u){(u.which||u.keyCode)===27&&G.charts&&G.charts.forEach(function(v){v&&v.dismissPopupContent&&v.dismissPopupContent()})}y.compose=function(u){return B.compose(u),h.indexOf(u)===-1&&(h.push(u),u.prototype.dismissPopupContent=f),h.indexOf(Z)===-1&&(h.push(Z),z(Z,"keydown",m)),u}}(P||(P={})),P}),et(_,"Accessibility/Components/LegendComponent.js",[_["Core/Animation/AnimationUtilities.js"],_["Core/Globals.js"],_["Core/Legend/Legend.js"],_["Core/Utilities.js"],_["Accessibility/AccessibilityComponent.js"],_["Accessibility/KeyboardNavigationHandler.js"],_["Accessibility/Utils/ChartUtilities.js"],_["Accessibility/Utils/HTMLUtilities.js"]],function(G,B,X,U,$,Z,V,z){var I,E=this&&this.__extends||(I=function(a,t){return I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var e in o)o.hasOwnProperty(e)&&(i[e]=o[e])},I(a,t)},function(a,t){function i(){this.constructor=a}I(a,t),a.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}),M=G.animObject,P=B.doc,y=U.addEvent,h=U.fireEvent,f=U.isNumber,m=U.pick,u=U.syncTimeout,v=V.getChartTitle,S=z.stripHTMLTagsFromString,w=z.addClass,x=z.removeClass;function c(a){var t=a.legend&&a.legend.allItems,i=a.options.legend.accessibility||{},o=a.colorAxis&&a.colorAxis.some(function(e){return!e.dataClasses||!e.dataClasses.length});return!(!t||!t.length||o||i.enabled===!1)}function g(a,t){var i=t.legendItem||{};t.setState(a?"hover":"",!0);for(var o=0,e=["group","label","symbol"];o<e.length;o++){var s=i[e[o]],n=s&&s.element||s;n&&h(n,a?"mouseover":"mouseout")}}var r=function(a){function t(){var i=a!==null&&a.apply(this,arguments)||this;return i.highlightedLegendItemIx=NaN,i.proxyGroup=null,i}return E(t,a),t.prototype.init=function(){var i=this;this.recreateProxies(),this.addEvent(X,"afterScroll",function(){this.chart===i.chart&&(i.proxyProvider.updateGroupProxyElementPositions("legend"),i.updateLegendItemProxyVisibility(),i.highlightedLegendItemIx>-1&&this.chart.highlightLegendItem(i.highlightedLegendItemIx))}),this.addEvent(X,"afterPositionItem",function(o){this.chart===i.chart&&this.chart.renderer&&i.updateProxyPositionForItem(o.item)}),this.addEvent(X,"afterRender",function(){this.chart===i.chart&&this.chart.renderer&&i.recreateProxies()&&u(function(){return i.proxyProvider.updateGroupProxyElementPositions("legend")},M(m(this.chart.renderer.globalAnimation,!0)).duration)})},t.prototype.updateLegendItemProxyVisibility=function(){var i,o=this.chart,e=o.legend,s=e.allItems||[],n=e.currentPage||1,l=e.clipHeight||0;s.forEach(function(b){if(b.a11yProxyElement){var k=e.pages&&e.pages.length,D=b.a11yProxyElement.element,d=!1;if(i=b.legendItem||{},k){var C=i.pageIx||0;d=(i.y||0)+(i.label?Math.round(i.label.getBBox().height):0)-e.pages[C]>l||C!==n-1}d?o.styledMode?w(D,"highcharts-a11y-invisible"):D.style.visibility="hidden":(x(D,"highcharts-a11y-invisible"),D.style.visibility="")}})},t.prototype.onChartRender=function(){c(this.chart)||this.removeProxies()},t.prototype.highlightAdjacentLegendPage=function(i){var o=this.chart,e=o.legend,s=(e.currentPage||1)+i,n=e.pages||[];if(s>0&&s<=n.length)for(var l=0,b=0,k=e.allItems;b<k.length;b++)((k[b].legendItem||{}).pageIx||0)+1===s&&o.highlightLegendItem(l)&&(this.highlightedLegendItemIx=l),++l},t.prototype.updateProxyPositionForItem=function(i){i.a11yProxyElement&&i.a11yProxyElement.refreshPosition()},t.prototype.recreateProxies=function(){var i=P.activeElement,o=this.proxyGroup,e=i&&o&&o.contains(i);return this.removeProxies(),!!c(this.chart)&&(this.addLegendProxyGroup(),this.proxyLegendItems(),this.updateLegendItemProxyVisibility(),this.updateLegendTitle(),e&&this.chart.highlightLegendItem(this.highlightedLegendItemIx),!0)},t.prototype.removeProxies=function(){this.proxyProvider.removeGroup("legend")},t.prototype.updateLegendTitle=function(){var i=this.chart,o=S((i.legend&&i.legend.options.title&&i.legend.options.title.text||"").replace(/<br ?\/?>/g," ")),e=i.langFormat("accessibility.legend.legendLabel"+(o?"":"NoTitle"),{chart:i,legendTitle:o,chartTitle:v(i)});this.proxyProvider.updateGroupAttrs("legend",{"aria-label":e})},t.prototype.addLegendProxyGroup=function(){var i=this.chart.options.accessibility.landmarkVerbosity==="all"?"region":null;this.proxyGroup=this.proxyProvider.addGroup("legend","ul",{"aria-label":"_placeholder_",role:i})},t.prototype.proxyLegendItems=function(){var i,o=this;((this.chart.legend||{}).allItems||[]).forEach(function(e){(i=e.legendItem||{}).label&&i.label.element&&o.proxyLegendItem(e)})},t.prototype.proxyLegendItem=function(i){var o=i.legendItem||{};if(o.label&&o.group){var e=this.chart.langFormat("accessibility.legend.legendItem",{chart:this.chart,itemName:S(i.name),item:i}),s={tabindex:-1,"aria-pressed":i.visible,"aria-label":e},n=o.group.div?o.label:o.group;i.a11yProxyElement=this.proxyProvider.addProxyElement("legend",{click:o.label,visual:n.element},s)}},t.prototype.getKeyboardNavigation=function(){var i=this.keyCodes,o=this,e=this.chart;return new Z(e,{keyCodeMap:[[[i.left,i.right,i.up,i.down],function(s){return o.onKbdArrowKey(this,s)}],[[i.enter,i.space],function(){return o.onKbdClick(this)}],[[i.pageDown,i.pageUp],function(s){var n=s===i.pageDown?1:-1;return o.highlightAdjacentLegendPage(n),this.response.success}]],validate:function(){return o.shouldHaveLegendNavigation()},init:function(){e.highlightLegendItem(0),o.highlightedLegendItemIx=0},terminate:function(){o.highlightedLegendItemIx=-1,e.legend.allItems.forEach(function(s){return g(!1,s)})}})},t.prototype.onKbdArrowKey=function(i,o){var e=this.keyCodes,s=i.response,n=this.chart,l=n.options.accessibility,b=n.legend.allItems.length,k=o===e.left||o===e.up?-1:1;return n.highlightLegendItem(this.highlightedLegendItemIx+k)?(this.highlightedLegendItemIx+=k,s.success):(b>1&&l.keyboardNavigation.wrapAround&&i.init(k),s.success)},t.prototype.onKbdClick=function(i){var o=this.chart.legend.allItems[this.highlightedLegendItemIx];return o&&o.a11yProxyElement&&o.a11yProxyElement.click(),i.response.success},t.prototype.shouldHaveLegendNavigation=function(){if(!c(this.chart))return!1;var i=this.chart,o=(i.options.legend||{}).accessibility||{};return!!(i.legend.display&&o.keyboardNavigation&&o.keyboardNavigation.enabled)},t}($);return function(a){var t=[];function i(e){var s,n,l,b,k=this.legend.allItems,D=this.accessibility&&this.accessibility.components.legend.highlightedLegendItemIx,d=k[e],C=d.legendItem||{};if(d){f(D)&&k[D]&&g(!1,k[D]),n=e,l=((s=this.legend).allItems[n].legendItem||{}).pageIx,b=s.currentPage,l!==void 0&&l+1!==b&&s.scroll(1+l-b);var A=C.label,N=d.a11yProxyElement&&d.a11yProxyElement.buttonElement;return A&&A.element&&N&&this.setFocusToElement(A,N),g(!0,d),!0}return!1}function o(e){var s=this.chart.options.accessibility,n=e.item;s.enabled&&n&&n.a11yProxyElement&&n.a11yProxyElement.buttonElement.setAttribute("aria-pressed",e.visible?"true":"false")}a.compose=function(e,s){t.indexOf(e)===-1&&(t.push(e),e.prototype.highlightLegendItem=i),t.indexOf(s)===-1&&(t.push(s),y(s,"afterColorizeItem",o))}}(r||(r={})),r}),et(_,"Accessibility/Components/SeriesComponent/SeriesDescriber.js",[_["Accessibility/Components/AnnotationsA11y.js"],_["Accessibility/Utils/ChartUtilities.js"],_["Core/FormatUtilities.js"],_["Accessibility/Utils/HTMLUtilities.js"],_["Core/Utilities.js"]],function(G,B,X,U,$){var Z=G.getPointAnnotationTexts,V=B.getAxisDescription,z=B.getSeriesFirstPointElement,I=B.getSeriesA11yElement,E=B.unhideChartElementFromAT,M=X.format,P=X.numberFormat,y=U.reverseChildNodes,h=U.stripHTMLTagsFromString,f=$.find,m=$.isNumber,u=$.pick,v=$.defined;function S(t){var i=t.chart.options.accessibility.series.pointDescriptionEnabledThreshold;return!!(i!==!1&&t.points&&t.points.length>=i)}function w(t,i){var o=t.series,e=o.chart,s=e.options.accessibility.point||{},n=o.options.accessibility&&o.options.accessibility.point||{},l=o.tooltipOptions||{},b=e.options.lang;return m(i)?P(i,n.valueDecimals||s.valueDecimals||l.valueDecimals||-1,b.decimalPoint,b.accessibility.thousandsSep||b.thousandsSep):i}function x(t,i){var o=t[i];return t.chart.langFormat("accessibility.series."+i+"Description",{name:V(o),series:t})}function c(t){var i=t.series,o=i.chart.options.accessibility.point||{},e=i.chart.options.accessibility&&i.chart.options.accessibility.point||{},s=i.tooltipOptions||{},n=e.valuePrefix||o.valuePrefix||s.valuePrefix||"",l=e.valueSuffix||o.valueSuffix||s.valueSuffix||"",b=w(t,t[t.value!==void 0?"value":"y"]);return t.isNull?i.chart.langFormat("accessibility.series.nullPointValue",{point:t}):i.pointArrayMap?function(k,D,d){var C=D||"",A=d||"";return k.series.pointArrayMap.reduce(function(N,R){return N+(N.length?", ":"")+function(L){var O=w(k,u(k[L],k.options[L]));return L+": "+C+O+A}(R)},"")}(t,n,l):n+b+l}function g(t){var i=t.series,o=i.chart.series.length>1||i.options.name,e=function(D){var d=D.series,C=d.chart,A=d.options.accessibility,N=A&&A.point&&A.point.valueDescriptionFormat||C.options.accessibility.point.valueDescriptionFormat,R=u(d.xAxis&&d.xAxis.options.accessibility&&d.xAxis.options.accessibility.enabled,!C.angular),L=R?function(j){var Y=function(Q){var J=Q.series,nt=J.chart,lt=J.options.accessibility&&J.options.accessibility.point||{},gt=nt.options.accessibility.point||{},mt=J.xAxis&&J.xAxis.dateTime;if(mt){var bt=mt.getXDateFormat(Q.x||0,nt.options.tooltip.dateTimeLabelFormats),yt=lt.dateFormatter&<.dateFormatter(Q)||gt.dateFormatter&>.dateFormatter(Q)||lt.dateFormat||gt.dateFormat||bt;return nt.time.dateFormat(yt,Q.x||0,void 0)}}(j),H=(j.series.xAxis||{}).categories&&v(j.category)&&(""+j.category).replace("<br/>"," "),W=v(j.id)&&(""+j.id).indexOf("highcharts-")<0,q="x, "+j.x;return j.name||Y||H||(W?j.id:q)}(D):"",O={point:D,index:v(D.index)?D.index+1:"",xDescription:L,value:c(D),separator:R?", ":""};return M(N,O,C)}(t),s=t.options&&t.options.accessibility&&t.options.accessibility.description,n=s?" "+s:"",l=o?" "+i.name+".":"",b=function(D){var d=D.series.chart,C=Z(D),A={point:D,annotations:C};return C.length?d.langFormat("accessibility.series.pointAnnotationsDescription",A):""}(t),k=b?" "+b:"";return t.accessibility=t.accessibility||{},t.accessibility.valueDescription=e,e+n+l+k}function r(t){var i=function(s){var n=s.options.accessibility||{};return!S(s)&&!n.exposeAsGroupOnly}(t),o=function(s){var n=s.chart.options.accessibility.keyboardNavigation.seriesNavigation;return!(!s.points||!(s.points.length<n.pointNavigationEnabledThreshold||n.pointNavigationEnabledThreshold===!1))}(t),e=t.chart.options.accessibility.point.describeNull;(i||o)&&t.points.forEach(function(s){var n=s.graphic&&s.graphic.element||function(b){var k=b.series,D=k&&k.chart,d=k&&k.is("sunburst"),C=b.isNull,A=D&&D.options.accessibility.point.describeNull;return C&&!d&&A}(s)&&function(b){var k=b.series,D=function(N){var R=N.index;return N.series&&N.series.data&&v(R)&&f(N.series.data,function(L){return!!(L&&L.index!==void 0&&L.index>R&&L.graphic&&L.graphic.element)})||null}(b),d=D&&D.graphic,C=d?d.parentGroup:k.graph||k.group,A=function(N,R){var L=N.series.chart.renderer.rect(R.x,R.y,1,1);return L.attr({class:"highcharts-a11y-mock-point",fill:"none",opacity:0,"fill-opacity":0,"stroke-opacity":0}),L}(b,D?{x:u(b.plotX,D.plotX,0),y:u(b.plotY,D.plotY,0)}:{x:u(b.plotX,0),y:u(b.plotY,0)});if(C&&C.element)return b.graphic=A,b.hasMockGraphic=!0,A.add(C),C.element.insertBefore(A.element,d?d.element:null),A.element}(s),l=s.options&&s.options.accessibility&&s.options.accessibility.enabled===!1;if(n){if(s.isNull&&!e)return void n.setAttribute("aria-hidden",!0);n.setAttribute("tabindex","-1"),t.chart.styledMode||(n.style.outline="none"),i&&!l?function(b,k){var D=b.series,d=D.chart.options.accessibility.point||{},C=D.options.accessibility&&D.options.accessibility.point||{},A=h(C.descriptionFormatter&&C.descriptionFormatter(b)||d.descriptionFormatter&&d.descriptionFormatter(b)||g(b));k.setAttribute("role","img"),k.setAttribute("aria-label",A)}(s,n):n.setAttribute("aria-hidden",!0)}})}function a(t){var i=t.chart,o=i.types||[],e=function(N){var R=(N.options.accessibility||{}).description;return R&&N.chart.langFormat("accessibility.series.description",{description:R,series:N})||""}(t),s=function(N){return i[N]&&i[N].length>1&&t[N]},n=t.index+1,l=x(t,"xAxis"),b=x(t,"yAxis"),k={seriesNumber:n,series:t,chart:i},D=o.length>1?"Combination":"",d=i.langFormat("accessibility.series.summary."+t.type+D,k)||i.langFormat("accessibility.series.summary.default"+D,k),C=(s("yAxis")?" "+b+".":"")+(s("xAxis")?" "+l+".":""),A=i.options.accessibility.series.descriptionFormat||"";return M(A,{seriesDescription:d,authorDescription:e?" "+e:"",axisDescription:C,series:t,chart:i,seriesNumber:n},void 0)}return{defaultPointDescriptionFormatter:g,defaultSeriesDescriptionFormatter:a,describeSeries:function(t){var i=t.chart,o=z(t),e=I(t),s=i.is3d&&i.is3d();e&&(e.lastChild!==o||s||y(e),r(t),E(i,e),function(n){var l=n.chart,b=l.options.chart,k=b.options3d&&b.options3d.enabled,D=l.series.length>1,d=l.options.accessibility.series.describeSingleSeries,C=(n.options.accessibility||{}).exposeAsGroupOnly;return!(k&&D)&&(D||d||C||S(n))}(t)?function(n,l){var b=n.options.accessibility||{},k=n.chart.options.accessibility,D=k.landmarkVerbosity;b.exposeAsGroupOnly?l.setAttribute("role","img"):D==="all"?l.setAttribute("role","region"):l.setAttribute("role","group"),l.setAttribute("tabindex","-1"),n.chart.styledMode||(l.style.outline="none"),l.setAttribute("aria-label",h(k.series.descriptionFormatter&&k.series.descriptionFormatter(n)||a(n)))}(t,e):e.removeAttribute("aria-label"))}}}),et(_,"Accessibility/Components/SeriesComponent/NewDataAnnouncer.js",[_["Core/Globals.js"],_["Core/Utilities.js"],_["Accessibility/Utils/Announcer.js"],_["Accessibility/Utils/ChartUtilities.js"],_["Accessibility/Utils/EventProvider.js"],_["Accessibility/Components/SeriesComponent/SeriesDescriber.js"]],function(G,B,X,U,$,Z){var V=B.addEvent,z=B.defined,I=U.getChartTitle,E=Z.defaultPointDescriptionFormatter,M=Z.defaultSeriesDescriptionFormatter;function P(h){return!!h.options.accessibility.announceNewData.enabled}var y=function(){function h(f){this.announcer=void 0,this.dirty={allSeries:{}},this.eventProvider=void 0,this.lastAnnouncementTime=0,this.chart=f}return h.prototype.init=function(){var f=this.chart,m=f.options.accessibility.announceNewData.interruptUser?"assertive":"polite";this.lastAnnouncementTime=0,this.dirty={allSeries:{}},this.eventProvider=new $,this.announcer=new X(f,m),this.addEventListeners()},h.prototype.destroy=function(){this.eventProvider.removeAddedEvents(),this.announcer.destroy()},h.prototype.addEventListeners=function(){var f=this,m=this.chart,u=this.eventProvider;u.addEvent(m,"afterApplyDrilldown",function(){f.lastAnnouncementTime=0}),u.addEvent(m,"afterAddSeries",function(v){f.onSeriesAdded(v.series)}),u.addEvent(m,"redraw",function(){f.announceDirtyData()})},h.prototype.onSeriesAdded=function(f){P(this.chart)&&(this.dirty.hasDirty=!0,this.dirty.allSeries[f.name+f.index]=f,this.dirty.newSeries=z(this.dirty.newSeries)?void 0:f)},h.prototype.announceDirtyData=function(){var f,m,u=this.chart,v=this;if(u.options.accessibility.announceNewData&&this.dirty.hasDirty){var S=this.dirty.newPoint;S&&(S=(m=(f=S).series.data.filter(function(w){return f.x===w.x&&f.y===w.y})).length===1?m[0]:f),this.queueAnnouncement(Object.keys(this.dirty.allSeries).map(function(w){return v.dirty.allSeries[w]}),this.dirty.newSeries,S),this.dirty={allSeries:{}}}},h.prototype.queueAnnouncement=function(f,m,u){var v,S,w,x=this,c=this.chart.options.accessibility.announceNewData;if(c.enabled){var g=+new Date,r=g-this.lastAnnouncementTime,a=Math.max(0,c.minAnnounceInterval-r),t=(v=this.queuedAnnouncement&&this.queuedAnnouncement.series,S=f,w=(v||[]).concat(S||[]).reduce(function(o,e){return o[e.name+e.index]=e,o},{}),Object.keys(w).map(function(o){return w[o]})),i=this.buildAnnouncementMessage(t,m,u);i&&(this.queuedAnnouncement&&clearTimeout(this.queuedAnnouncementTimer),this.queuedAnnouncement={time:g,message:i,series:t},this.queuedAnnouncementTimer=setTimeout(function(){x&&x.announcer&&(x.lastAnnouncementTime=+new Date,x.announcer.announce(x.queuedAnnouncement.message),delete x.queuedAnnouncement,delete x.queuedAnnouncementTimer)},a))}},h.prototype.buildAnnouncementMessage=function(f,m,u){var v=this.chart,S=v.options.accessibility.announceNewData;if(S.announcementFormatter){var w=S.announcementFormatter(f,m,u);if(w!==!1)return w.length?w:null}var x=G.charts&&G.charts.length>1?"Multiple":"Single",c=m?"newSeriesAnnounce"+x:u?"newPointAnnounce"+x:"newDataAnnounce",g=I(v);return v.langFormat("accessibility.announceNewData."+c,{chartTitle:g,seriesDesc:m?M(m):null,pointDesc:u?E(u):null,point:u,series:m})},h}();return function(h){function f(u){var v=this.chart,S=this.newDataAnnouncer;S&&S.chart===v&&P(v)&&(S.dirty.newPoint=z(S.dirty.newPoint)?void 0:u.point)}function m(){var u=this.chart,v=this.newDataAnnouncer;v&&v.chart===u&&P(u)&&(v.dirty.hasDirty=!0,v.dirty.allSeries[this.name+this.index]=this)}h.composedClasses=[],h.compose=function(u){h.composedClasses.indexOf(u)===-1&&(h.composedClasses.push(u),V(u,"addPoint",f),V(u,"updatedData",m))}}(y||(y={})),y}),et(_,"Accessibility/ProxyElement.js",[_["Core/Globals.js"],_["Core/Utilities.js"],_["Accessibility/Utils/EventProvider.js"],_["Accessibility/Utils/ChartUtilities.js"],_["Accessibility/Utils/HTMLUtilities.js"]],function(G,B,X,U,$){var Z=G.doc,V=B.attr,z=B.css,I=B.merge,E=U.fireEventOnWrappedOrUnwrappedElement,M=$.cloneMouseEvent,P=$.cloneTouchEvent,y=$.getFakeMouseEvent,h=$.removeElement;return function(){function f(m,u,v,S){this.chart=m,this.target=u,this.groupType=v;var w=v==="ul";this.eventProvider=new X;var x=w?Z.createElement("li"):null,c=this.buttonElement=Z.createElement("button");m.styledMode||this.hideButtonVisually(c),x?(w&&!m.styledMode&&(x.style.listStyle="none"),x.appendChild(c),this.element=x):this.element=c,this.updateTarget(u,S)}return f.prototype.click=function(){var m=this.getTargetPosition();m.x+=m.width/2,m.y+=m.height/2;var u=y("click",m);E(this.target.click,u)},f.prototype.updateTarget=function(m,u){this.target=m,this.updateCSSClassName();var v=u||{};Object.keys(v).forEach(function(S){v[S]===null&&delete v[S]}),V(this.buttonElement,I({"aria-label":this.getTargetAttr(m.click,"aria-label")},v)),this.eventProvider.removeAddedEvents(),this.addProxyEventsToButton(this.buttonElement,m.click),this.refreshPosition()},f.prototype.refreshPosition=function(){var m=this.getTargetPosition();z(this.buttonElement,{width:(m.width||1)+"px",height:(m.height||1)+"px",left:(Math.round(m.x)||0)+"px",top:(Math.round(m.y)||0)+"px"})},f.prototype.remove=function(){this.eventProvider.removeAddedEvents(),h(this.element)},f.prototype.updateCSSClassName=function(){var m=function(x){return x.indexOf("highcharts-no-tooltip")>-1},u=this.chart.legend,v=u.group&&u.group.div,S=m(v&&v.className||""),w=m(this.getTargetAttr(this.target.click,"class")||"");this.buttonElement.className=S||w?"highcharts-a11y-proxy-button highcharts-no-tooltip":"highcharts-a11y-proxy-button"},f.prototype.addProxyEventsToButton=function(m,u){var v=this;["click","touchstart","touchend","touchcancel","touchmove","mouseover","mouseenter","mouseleave","mouseout"].forEach(function(S){var w=S.indexOf("touch")===0;v.eventProvider.addEvent(m,S,function(x){var c=w?P(x):M(x);u&&E(u,c),x.stopPropagation(),w||x.preventDefault()},{passive:!1})})},f.prototype.hideButtonVisually=function(m){z(m,{borderWidth:0,backgroundColor:"transparent",cursor:"pointer",outline:"none",opacity:.001,filter:"alpha(opacity=1)",zIndex:999,overflow:"hidden",padding:0,margin:0,display:"block",position:"absolute","-ms-filter":"progid:DXImageTransform.Microsoft.Alpha(Opacity=1)"})},f.prototype.getTargetPosition=function(){var m=this.target.click,u=m.element?m.element:m,v=this.target.visual||u;if(this.chart.renderTo&&v&&v.getBoundingClientRect){var S=v.getBoundingClientRect(),w=this.chart.pointer.getChartPosition();return{x:(S.left-w.left)/w.scaleX,y:(S.top-w.top)/w.scaleY,width:S.right/w.scaleX-S.left/w.scaleX,height:S.bottom/w.scaleY-S.top/w.scaleY}}return{x:0,y:0,width:1,height:1}},f.prototype.getTargetAttr=function(m,u){return m.element?m.element.getAttribute(u):m.getAttribute(u)},f}()}),et(_,"Accessibility/ProxyProvider.js",[_["Core/Globals.js"],_["Core/Utilities.js"],_["Accessibility/Utils/ChartUtilities.js"],_["Accessibility/Utils/DOMElementProvider.js"],_["Accessibility/Utils/HTMLUtilities.js"],_["Accessibility/ProxyElement.js"]],function(G,B,X,U,$,Z){var V=G.doc,z=B.attr,I=B.css,E=X.unhideChartElementFromAT,M=$.removeElement,P=$.removeChildNodes;return function(){function y(h){this.chart=h,this.domElementProvider=new U,this.groups={},this.groupOrder=[],this.beforeChartProxyPosContainer=this.createProxyPosContainer("before"),this.afterChartProxyPosContainer=this.createProxyPosContainer("after"),this.update()}return y.prototype.addProxyElement=function(h,f,m){var u=this.groups[h];if(!u)throw new Error("ProxyProvider.addProxyElement: Invalid group key "+h);var v=new Z(this.chart,f,u.type,m);return u.proxyContainerElement.appendChild(v.element),u.proxyElements.push(v),v},y.prototype.addGroup=function(h,f,m){var u=this.groups[h];if(u)return u.groupElement;var v,S=this.domElementProvider.createElement(f);return m&&m.role&&f!=="div"?(v=this.domElementProvider.createElement("div")).appendChild(S):v=S,v.className="highcharts-a11y-proxy-group highcharts-a11y-proxy-group-"+h.replace(/\W/g,"-"),this.groups[h]={proxyContainerElement:S,groupElement:v,type:f,proxyElements:[]},z(v,m||{}),f==="ul"&&S.setAttribute("role","list"),this.afterChartProxyPosContainer.appendChild(v),this.updateGroupOrder(this.groupOrder),v},y.prototype.updateGroupAttrs=function(h,f){var m=this.groups[h];if(!m)throw new Error("ProxyProvider.updateGroupAttrs: Invalid group key "+h);z(m.groupElement,f)},y.prototype.updateGroupOrder=function(h){var f=this;if(this.groupOrder=h.slice(),!this.isDOMOrderGroupOrder()){var m=h.indexOf("series"),u=m>-1?h.slice(0,m):h,v=m>-1?h.slice(m+1):[],S=V.activeElement;["before","after"].forEach(function(w){var x=f[w==="before"?"beforeChartProxyPosContainer":"afterChartProxyPosContainer"],c=w==="before"?u:v;P(x),c.forEach(function(g){var r=f.groups[g];r&&x.appendChild(r.groupElement)})}),(this.beforeChartProxyPosContainer.contains(S)||this.afterChartProxyPosContainer.contains(S))&&S&&S.focus&&S.focus()}},y.prototype.clearGroup=function(h){var f=this.groups[h];if(!f)throw new Error("ProxyProvider.clearGroup: Invalid group key "+h);P(f.proxyContainerElement)},y.prototype.removeGroup=function(h){var f=this.groups[h];f&&(M(f.groupElement),delete this.groups[h])},y.prototype.update=function(){this.updatePosContainerPositions(),this.updateGroupOrder(this.groupOrder),this.updateProxyElementPositions()},y.prototype.updateProxyElementPositions=function(){Object.keys(this.groups).forEach(this.updateGroupProxyElementPositions.bind(this))},y.prototype.updateGroupProxyElementPositions=function(h){var f=this.groups[h];f&&f.proxyElements.forEach(function(m){return m.refreshPosition()})},y.prototype.destroy=function(){this.domElementProvider.destroyCreatedElements()},y.prototype.createProxyPosContainer=function(h){var f=this.domElementProvider.createElement("div");return f.setAttribute("aria-hidden","false"),f.className="highcharts-a11y-proxy-container"+(h?"-"+h:""),I(f,{top:"0",left:"0"}),this.chart.styledMode||(f.style.whiteSpace="nowrap",f.style.position="absolute"),f},y.prototype.getCurrentGroupOrderInDOM=function(){var h=this,f=function(S){for(var w=Object.keys(h.groups),x=w.length;x--;){var c=w[x],g=h.groups[c];if(g&&S===g.groupElement)return c}},m=function(S){for(var w=[],x=S.children,c=0;c<x.length;++c){var g=f(x[c]);g&&w.push(g)}return w},u=m(this.beforeChartProxyPosContainer),v=m(this.afterChartProxyPosContainer);return u.push("series"),u.concat(v)},y.prototype.isDOMOrderGroupOrder=function(){var h=this,f=this.getCurrentGroupOrderInDOM(),m=this.groupOrder.filter(function(v){return v==="series"||!!h.groups[v]}),u=f.length;if(u!==m.length)return!1;for(;u--;)if(f[u]!==m[u])return!1;return!0},y.prototype.updatePosContainerPositions=function(){var h=this.chart;if(!h.renderer.forExport){var f=h.renderer.box;h.container.insertBefore(this.afterChartProxyPosContainer,f.nextSibling),h.container.insertBefore(this.beforeChartProxyPosContainer,f),E(this.chart,this.afterChartProxyPosContainer),E(this.chart,this.beforeChartProxyPosContainer)}},y}()}),et(_,"Stock/RangeSelector/RangeSelectorDefaults.js",[],function(){return{lang:{rangeSelectorZoom:"Zoom",rangeSelectorFrom:"",rangeSelectorTo:"→"},rangeSelector:{allButtonsEnabled:!1,buttons:void 0,buttonSpacing:5,dropdown:"responsive",enabled:void 0,verticalAlign:"top",buttonTheme:{width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,inputBoxBorderColor:"none",inputBoxHeight:17,inputBoxWidth:void 0,inputDateFormat:"%b %e, %Y",inputDateParser:void 0,inputEditDateFormat:"%Y-%m-%d",inputEnabled:!0,inputPosition:{align:"right",x:0,y:0},inputSpacing:5,selected:void 0,buttonPosition:{align:"left",x:0,y:0},inputStyle:{color:"#335cad",cursor:"pointer"},labelStyle:{color:"#666666"}}}}),et(_,"Stock/RangeSelector/RangeSelectorComposition.js",[_["Core/Defaults.js"],_["Stock/RangeSelector/RangeSelectorDefaults.js"],_["Core/Utilities.js"]],function(G,B,X){var U,$=G.defaultOptions,Z=G.setOptions,V=X.addEvent,z=X.defined,I=X.extend,E=X.find,M=X.isNumber,P=X.merge,y=X.pick,h=[],f=[];function m(){var r,a,t=this.range,i=t.type,o=this.max,e=this.chart.time,s=function(l,b){var k=i==="year"?"FullYear":"Month",D=new e.Date(l),d=e.get(k,D);return e.set(k,D,d+b),d===e.get(k,D)&&e.set("Date",D,0),D.getTime()-l};M(t)?(r=o-t,a=t):t&&(r=o+s(o,-(t.count||1)),this.chart&&(this.chart.fixedRange=o-r));var n=y(this.dataMin,Number.MIN_VALUE);return M(r)||(r=n),r<=n&&(r=n,a===void 0&&(a=s(r,t.count)),this.newMax=Math.min(r+a,y(this.dataMax,Number.MAX_VALUE))),M(o)?!M(t)&&t&&t._offsetMin&&(r+=t._offsetMin):r=void 0,r}function u(){this.options.rangeSelector&&this.options.rangeSelector.enabled&&(this.rangeSelector=new U(this))}function v(){var r=this,a=r.axes,t=r.rangeSelector;if(t){M(t.deferredYTDClick)&&(t.clickButton(t.deferredYTDClick),delete t.deferredYTDClick),a.forEach(function(o){o.updateNames(),o.setScale()}),r.getAxisMargins(),t.render();var i=t.options.verticalAlign;t.options.floating||(i==="bottom"?this.extraBottomMargin=!0:i!=="middle"&&(this.extraTopMargin=!0))}}function S(r){var a,t,i,o,e=r.rangeSelector,s=function(){e&&(a=r.xAxis[0].getExtremes(),t=r.legend,o=e&&e.options.verticalAlign,M(a.min)&&e.render(a.min,a.max),t.display&&o==="top"&&o===t.options.verticalAlign&&(i=P(r.spacingBox),t.options.layout==="vertical"?i.y=r.plotTop:i.y+=e.getHeight(),t.group.placed=!1,t.align(i)))};e&&(E(h,function(n){return n[0]===r})||h.push([r,[V(r.xAxis[0],"afterSetExtremes",function(n){e&&e.render(n.min,n.max)}),V(r,"redraw",s)]]),s())}function w(){for(var r=0,a=h.length;r<a;++r){var t=h[r];if(t[0]===this)return t[1].forEach(function(i){return i()}),void h.splice(r,1)}}function x(){var r=this.rangeSelector;if(r){var a=r.getHeight();this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a)}}function c(){var r=this.rangeSelector;if(r&&!r.options.floating){r.render();var a=r.options.verticalAlign;a==="bottom"?this.extraBottomMargin=!0:a!=="middle"&&(this.extraTopMargin=!0)}}function g(r){var a=r.options.rangeSelector,t=this.extraBottomMargin,i=this.extraTopMargin,o=this.rangeSelector;if(a&&a.enabled&&!z(o)&&this.options.rangeSelector&&(this.options.rangeSelector.enabled=!0,this.rangeSelector=o=new U(this)),this.extraBottomMargin=!1,this.extraTopMargin=!1,o){S(this);var e=a&&a.verticalAlign||o.options&&o.options.verticalAlign;o.options.floating||(e==="bottom"?this.extraBottomMargin=!0:e!=="middle"&&(this.extraTopMargin=!0)),this.extraBottomMargin===t&&this.extraTopMargin===i||(this.isDirtyBox=!0)}}return{compose:function(r,a,t){U=t,f.indexOf(r)===-1&&(f.push(r),r.prototype.minFromRange=m),f.indexOf(a)===-1&&(f.push(a),V(a,"afterGetContainer",u),V(a,"beforeRender",v),V(a,"destroy",w),V(a,"getMargins",x),V(a,"render",c),V(a,"update",g),a.prototype.callbacks.push(S)),f.indexOf(Z)===-1&&(I($,{rangeSelector:B.rangeSelector}),I($.lang,B.lang))}}}),et(_,"Stock/RangeSelector/RangeSelector.js",[_["Core/Axis/Axis.js"],_["Core/Defaults.js"],_["Core/Globals.js"],_["Stock/RangeSelector/RangeSelectorComposition.js"],_["Core/Renderer/SVG/SVGElement.js"],_["Core/Utilities.js"]],function(G,B,X,U,$,Z){var V=B.defaultOptions,z=Z.addEvent,I=Z.createElement,E=Z.css,M=Z.defined,P=Z.destroyObjectProperties,y=Z.discardElement,h=Z.extend,f=Z.fireEvent,m=Z.isNumber,u=Z.merge,v=Z.objectEach,S=Z.pad,w=Z.pick,x=Z.pInt,c=Z.splat,g=function(){function r(a){this.buttons=void 0,this.buttonOptions=r.prototype.defaultButtons,this.initialButtonGroupWidth=0,this.options=void 0,this.chart=a,this.init(a)}return r.compose=function(a,t){U.compose(a,t,r)},r.prototype.clickButton=function(a,t){var i,o,e,s,n,l,b,k=this,D=k.chart,d=k.buttonOptions[a],C=D.xAxis[0],A=D.scroller&&D.scroller.getUnionExtremes()||C||{},N=d.type,R=d.dataGrouping,L=A.dataMin,O=A.dataMax,j=C&&Math.round(Math.min(C.max,w(O,C.max))),Y=d._range,H=!0;if(L!==null&&O!==null){if(D.fixedRange=Y,k.setSelected(a),R&&(this.forcedDataGrouping=!0,G.prototype.setDataGrouping.call(C||{chart:this.chart},R,!1),this.frozenStates=d.preserveDataGrouping),N==="month"||N==="year")C?(l={range:d,max:j,chart:D,dataMin:L,dataMax:O},i=C.minFromRange.call(l),m(l.newMax)&&(j=l.newMax),H=!1):Y=d;else if(Y)i=Math.max(j-Y,L),j=Math.min(i+Y,O),H=!1;else if(N==="ytd"){if(!C)return void(k.deferredYTDClick=a);O!==void 0&&L!==void 0||(L=Number.MAX_VALUE,O=Number.MIN_VALUE,D.series.forEach(function(W){var q=W.xData;q&&(L=Math.min(q[0],L),O=Math.max(q[q.length-1],O))}),t=!1),i=e=(b=k.getYTDExtremes(O,L,D.time.useUTC)).min,j=b.max}else N==="all"&&C&&(D.navigator&&D.navigator.baseSeries[0]&&(D.navigator.baseSeries[0].xAxis.options.range=void 0),i=L,j=O);H&&d._offsetMin&&M(i)&&(i+=d._offsetMin),d._offsetMax&&M(j)&&(j+=d._offsetMax),this.dropdown&&(this.dropdown.selectedIndex=a+1),C?C.setExtremes(i,j,w(t,!0),void 0,{trigger:"rangeSelectorButton",rangeSelectorButton:d}):(o=c(D.options.xAxis)[0],n=o.range,o.range=Y,s=o.min,o.min=e,z(D,"load",function(){o.range=n,o.min=s})),f(this,"afterBtnClick")}},r.prototype.setSelected=function(a){this.selected=this.options.selected=a},r.prototype.init=function(a){var t=this,i=a.options.rangeSelector,o=i.buttons||t.defaultButtons.slice(),e=i.selected,s=function(){var n=t.minInput,l=t.maxInput;n&&n.blur&&f(n,"blur"),l&&l.blur&&f(l,"blur")};t.chart=a,t.options=i,t.buttons=[],t.buttonOptions=o,this.eventsToUnbind=[],this.eventsToUnbind.push(z(a.container,"mousedown",s)),this.eventsToUnbind.push(z(a,"resize",s)),o.forEach(t.computeButtonRange),e!==void 0&&o[e]&&this.clickButton(e,!1),this.eventsToUnbind.push(z(a,"load",function(){a.xAxis&&a.xAxis[0]&&z(a.xAxis[0],"setExtremes",function(n){this.max-this.min!==a.fixedRange&&n.trigger!=="rangeSelectorButton"&&n.trigger!=="updatedData"&&t.forcedDataGrouping&&!t.frozenStates&&this.setDataGrouping(!1,!1)})}))},r.prototype.updateButtonStates=function(){var a=this,t=this.chart,i=this.dropdown,o=t.xAxis[0],e=Math.round(o.max-o.min),s=!o.hasVisibleSeries,n=864e5,l=t.scroller&&t.scroller.getUnionExtremes()||o,b=l.dataMin,k=l.dataMax,D=a.getYTDExtremes(k,b,t.time.useUTC),d=D.min,C=D.max,A=a.selected,N=a.options.allButtonsEnabled,R=a.buttons,L=m(A);a.buttonOptions.forEach(function(O,j){var Y=O._range,H=O.type,W=O.count||1,q=R[j],Q=O._offsetMax-O._offsetMin,J=j===A,nt=Y>k-b,lt=Y<o.minRange,gt=0,mt=!1,bt=!1,yt=Y===e;(H==="month"||H==="year")&&e+36e5>={month:28,year:365}[H]*n*W-Q&&e-36e5<={month:31,year:366}[H]*n*W+Q?yt=!0:H==="ytd"?(yt=C-d+Q===e,mt=!J):H==="all"&&(yt=o.max-o.min>=k-b,bt=!J&&L&&yt);var dt=!N&&(nt||lt||bt||s),ot=J&&yt||yt&&!L&&!mt||J&&a.frozenStates;dt?gt=3:ot&&(L=!0,gt=2),q.state!==gt&&(q.setState(gt),i&&(i.options[j+1].disabled=dt,gt===2&&(i.selectedIndex=j+1)),gt===0&&A===j&&a.setSelected())})},r.prototype.computeButtonRange=function(a){var t=a.type,i=a.count||1,o={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5};o[t]?a._range=o[t]*i:t!=="month"&&t!=="year"||(a._range=24*{month:30,year:365}[t]*36e5*i),a._offsetMin=w(a.offsetMin,0),a._offsetMax=w(a.offsetMax,0),a._range+=a._offsetMax-a._offsetMin},r.prototype.getInputValue=function(a){var t=a==="min"?this.minInput:this.maxInput,i=this.chart.options.rangeSelector,o=this.chart.time;return t?(t.type==="text"&&i.inputDateParser||this.defaultInputDateParser)(t.value,o.useUTC,o):0},r.prototype.setInputValue=function(a,t){var i=this.options,o=this.chart.time,e=a==="min"?this.minInput:this.maxInput,s=a==="min"?this.minDateBox:this.maxDateBox;if(e){var n=e.getAttribute("data-hc-time"),l=M(n)?Number(n):void 0;if(M(t)){var b=l;M(b)&&e.setAttribute("data-hc-time-previous",b),e.setAttribute("data-hc-time",t),l=t}e.value=o.dateFormat(this.inputTypeFormats[e.type]||i.inputEditDateFormat,l),s&&s.attr({text:o.dateFormat(i.inputDateFormat,l)})}},r.prototype.setInputExtremes=function(a,t,i){var o=a==="min"?this.minInput:this.maxInput;if(o){var e=this.inputTypeFormats[o.type],s=this.chart.time;if(e){var n=s.dateFormat(e,t);o.min!==n&&(o.min=n);var l=s.dateFormat(e,i);o.max!==l&&(o.max=l)}}},r.prototype.showInput=function(a){var t=a==="min"?this.minDateBox:this.maxDateBox,i=a==="min"?this.minInput:this.maxInput;if(i&&t&&this.inputGroup){var o=i.type==="text",e=this.inputGroup,s=e.translateX,n=e.translateY,l=this.options.inputBoxWidth;E(i,{width:o?t.width+(l?-2:20)+"px":"auto",height:o?t.height-2+"px":"auto",border:"2px solid silver"}),E(i,o&&l?{left:s+t.x+"px",top:n+"px"}:{left:Math.min(Math.round(t.x+s-(i.offsetWidth-t.width)/2),this.chart.chartWidth-i.offsetWidth)+"px",top:n-(i.offsetHeight-t.height)/2+"px"})}},r.prototype.hideInput=function(a){var t=a==="min"?this.minInput:this.maxInput;t&&E(t,{top:"-9999em",border:0,width:"1px",height:"1px"})},r.prototype.defaultInputDateParser=function(a,t,i){var o,e=a.split("/").join("-").split(" ").join("T");if(e.indexOf("T")===-1&&(e+="T00:00"),t)e+="Z";else if(X.isSafari&&(!((o=e).length>6)||o.lastIndexOf("-")!==o.length-6&&o.lastIndexOf("+")!==o.length-6)){var s=new Date(e).getTimezoneOffset()/60;e+=s<=0?"+".concat(S(-s),":00"):"-".concat(S(s),":00")}var n=Date.parse(e);if(!m(n)){var l=a.split("-");n=Date.UTC(x(l[0]),x(l[1])-1,x(l[2]))}return i&&t&&m(n)&&(n+=i.getTimezoneOffset(n)),n},r.prototype.drawInput=function(a){var t=this,i=t.chart,o=t.div,e=t.inputGroup,s=this,n=i.renderer.style||{},l=i.renderer,b=i.options.rangeSelector,k=V.lang,D=a==="min";function d(){var O=s.maxInput,j=s.minInput,Y=i.xAxis[0],H=i.scroller&&i.scroller.xAxis?i.scroller.xAxis:Y,W=H.dataMin,q=H.dataMax,Q=s.getInputValue(a);Q!==Number(R.getAttribute("data-hc-time-previous"))&&m(Q)&&(R.setAttribute("data-hc-time-previous",Q),D&&O&&m(W)?Q>Number(O.getAttribute("data-hc-time"))?Q=void 0:Q<W&&(Q=W):j&&m(q)&&(Q<Number(j.getAttribute("data-hc-time"))?Q=void 0:Q>q&&(Q=q)),Q!==void 0&&Y.setExtremes(D?Q:Y.min,D?Y.max:Q,void 0,void 0,{trigger:"rangeSelectorInput"}))}var C=k[D?"rangeSelectorFrom":"rangeSelectorTo"]||"",A=l.label(C,0).addClass("highcharts-range-label").attr({padding:C?2:0,height:C?b.inputBoxHeight:0}).add(e),N=l.label("",0).addClass("highcharts-range-input").attr({padding:2,width:b.inputBoxWidth,height:b.inputBoxHeight,"text-align":"center"}).on("click",function(){s.showInput(a),s[a+"Input"].focus()});i.styledMode||N.attr({stroke:b.inputBoxBorderColor,"stroke-width":1}),N.add(e);var R=I("input",{name:a,className:"highcharts-range-selector"},void 0,o);R.setAttribute("type",function(O){if(O.indexOf("%L")!==-1)return"text";var j=["a","A","d","e","w","b","B","m","o","y","Y"].some(function(H){return O.indexOf("%"+H)!==-1}),Y=["H","k","I","l","M","S"].some(function(H){return O.indexOf("%"+H)!==-1});return j&&Y?"datetime-local":j?"date":Y?"time":"text"}(b.inputDateFormat||"%b %e, %Y")),i.styledMode||(A.css(u(n,b.labelStyle)),N.css(u({color:"#333333"},n,b.inputStyle)),E(R,h({position:"absolute",border:0,boxShadow:"0 0 15px rgba(0,0,0,0.3)",width:"1px",height:"1px",padding:0,textAlign:"center",fontSize:n.fontSize,fontFamily:n.fontFamily,top:"-9999em"},b.inputStyle))),R.onfocus=function(){s.showInput(a)},R.onblur=function(){R===X.doc.activeElement&&d(),s.hideInput(a),s.setInputValue(a),R.blur()};var L=!1;return R.onchange=function(){L||(d(),s.hideInput(a),R.blur())},R.onkeypress=function(O){O.keyCode===13&&d()},R.onkeydown=function(O){L=!0,O.keyCode!==38&&O.keyCode!==40||d()},R.onkeyup=function(){L=!1},{dateBox:N,input:R,label:A}},r.prototype.getPosition=function(){var a=this.chart,t=a.options.rangeSelector,i=t.verticalAlign==="top"?a.plotTop-a.axisOffset[0]:0;return{buttonTop:i+t.buttonPosition.y,inputTop:i+t.inputPosition.y-10}},r.prototype.getYTDExtremes=function(a,t,i){var o=this.chart.time,e=new o.Date(a),s=o.get("FullYear",e),n=i?o.Date.UTC(s,0,1):+new o.Date(s,0,1),l=Math.max(t,n),b=e.getTime();return{max:Math.min(a||b,b),min:l}},r.prototype.render=function(a,t){var i=this.chart,o=i.renderer,e=i.container,s=i.options,n=s.rangeSelector,l=w(s.chart.style&&s.chart.style.zIndex,0)+1,b=n.inputEnabled,k=this.rendered;if(n.enabled!==!1){if(!k&&(this.group=o.g("range-selector-group").attr({zIndex:7}).add(),this.div=I("div",void 0,{position:"relative",height:0,zIndex:l}),this.buttonOptions.length&&this.renderButtons(),e.parentNode&&e.parentNode.insertBefore(this.div,e),b)){this.inputGroup=o.g("input-group").add(this.group);var D=this.drawInput("min");this.minDateBox=D.dateBox,this.minLabel=D.label,this.minInput=D.input;var d=this.drawInput("max");this.maxDateBox=d.dateBox,this.maxLabel=d.label,this.maxInput=d.input}if(b){this.setInputValue("min",a),this.setInputValue("max",t);var C=i.scroller&&i.scroller.getUnionExtremes()||i.xAxis[0]||{};if(M(C.dataMin)&&M(C.dataMax)){var A=i.xAxis[0].minRange||0;this.setInputExtremes("min",C.dataMin,Math.min(C.dataMax,this.getInputValue("max"))-A),this.setInputExtremes("max",Math.max(C.dataMin,this.getInputValue("min"))+A,C.dataMax)}if(this.inputGroup){var N=0;[this.minLabel,this.minDateBox,this.maxLabel,this.maxDateBox].forEach(function(R){if(R){var L=R.getBBox().width;L&&(R.attr({x:N}),N+=L+n.inputSpacing)}})}}this.alignElements(),this.rendered=!0}},r.prototype.renderButtons=function(){var a=this,t=this,i=t.buttons,o=t.chart,e=t.options,s=V.lang,n=o.renderer,l=u(e.buttonTheme),b=l&&l.states,k=l.width||28;delete l.width,delete l.states,this.buttonGroup=n.g("range-selector-buttons").add(this.group);var D=this.dropdown=I("select",void 0,{position:"absolute",width:"1px",height:"1px",padding:0,border:0,top:"-9999em",cursor:"pointer",opacity:1e-4},this.div);z(D,"touchstart",function(){D.style.fontSize="16px"}),[[X.isMS?"mouseover":"mouseenter"],[X.isMS?"mouseout":"mouseleave"],["change","click"]].forEach(function(d){var C=d[0],A=d[1];z(D,C,function(){var N=i[a.currentButtonIndex()];N&&f(N.element,A||C)})}),this.zoomText=n.label(s&&s.rangeSelectorZoom||"",0).attr({padding:e.buttonTheme.padding,height:e.buttonTheme.height,paddingLeft:0,paddingRight:0}).add(this.buttonGroup),this.chart.styledMode||(this.zoomText.css(e.labelStyle),l["stroke-width"]=w(l["stroke-width"],0)),I("option",{textContent:this.zoomText.textStr,disabled:!0},void 0,D),this.buttonOptions.forEach(function(d,C){I("option",{textContent:d.title||d.text},void 0,D),i[C]=n.button(d.text,0,0,function(A){var N,R=d.events&&d.events.click;R&&(N=R.call(d,A)),N!==!1&&a.clickButton(C),a.isActive=!0},l,b&&b.hover,b&&b.select,b&&b.disabled).attr({"text-align":"center",width:k}).add(a.buttonGroup),d.title&&i[C].attr("title",d.title)})},r.prototype.alignElements=function(){var a=this,t=this,i=t.buttonGroup,o=t.buttons,e=t.chart,s=t.group,n=t.inputGroup,l=t.options,b=t.zoomText,k=e.options,D=k.exporting&&k.exporting.enabled!==!1&&k.navigation&&k.navigation.buttonOptions,d=l.buttonPosition,C=l.inputPosition,A=l.verticalAlign,N=function(mt,bt){return D&&a.titleCollision(e)&&A==="top"&&bt.align==="right"&&bt.y-mt.getBBox().height-12<(D.y||0)+(D.height||0)+e.spacing[0]?-40:0},R=e.plotLeft;if(s&&d&&C){var L=d.x-e.spacing[3];if(i){if(this.positionButtons(),!this.initialButtonGroupWidth){var O=0;b&&(O+=b.getBBox().width+5),o.forEach(function(mt,bt){O+=mt.width,bt!==o.length-1&&(O+=l.buttonSpacing)}),this.initialButtonGroupWidth=O}R-=e.spacing[3],this.updateButtonStates();var j=N(i,d);this.alignButtonGroup(j),s.placed=i.placed=e.hasLoaded}var Y=0;n&&(Y=N(n,C),C.align==="left"?L=R:C.align==="right"&&(L=-Math.max(e.axisOffset[1],-Y)),n.align({y:C.y,width:n.getBBox().width,align:C.align,x:C.x+L-2},!0,e.spacingBox),n.placed=e.hasLoaded),this.handleCollision(Y),s.align({verticalAlign:A},!0,e.spacingBox);var H=s.alignAttr.translateY,W=s.getBBox().height+20,q=0;if(A==="bottom"){var Q=e.legend&&e.legend.options;q=H-(W=W+(Q&&Q.verticalAlign==="bottom"&&Q.enabled&&!Q.floating?e.legend.legendHeight+w(Q.margin,10):0)-20)-(l.floating?0:l.y)-(e.titleOffset?e.titleOffset[2]:0)-10}A==="top"?(l.floating&&(q=0),e.titleOffset&&e.titleOffset[0]&&(q=e.titleOffset[0]),q+=e.margin[0]-e.spacing[0]||0):A==="middle"&&(C.y===d.y?q=H:(C.y||d.y)&&(C.y<0||d.y<0?q-=Math.min(C.y,d.y):q=H-W)),s.translate(l.x,l.y+Math.floor(q));var J=this,nt=J.minInput,lt=J.maxInput,gt=J.dropdown;l.inputEnabled&&nt&<&&(nt.style.marginTop=s.translateY+"px",lt.style.marginTop=s.translateY+"px"),gt&&(gt.style.marginTop=s.translateY+"px")}},r.prototype.alignButtonGroup=function(a,t){var i=this,o=i.chart,e=i.options,s=i.buttonGroup,n=e.buttonPosition,l=o.plotLeft-o.spacing[3],b=n.x-o.spacing[3];n.align==="right"?b+=a-l:n.align==="center"&&(b-=l/2),s&&s.align({y:n.y,width:w(t,this.initialButtonGroupWidth),align:n.align,x:b},!0,o.spacingBox)},r.prototype.positionButtons=function(){var a=this,t=a.buttons,i=a.chart,o=a.options,e=a.zoomText,s=i.hasLoaded?"animate":"attr",n=o.buttonPosition,l=i.plotLeft,b=l;e&&e.visibility!=="hidden"&&(e[s]({x:w(l+n.x,l)}),b+=n.x+e.getBBox().width+5);for(var k=0,D=this.buttonOptions.length;k<D;++k)t[k].visibility!=="hidden"?(t[k][s]({x:b}),b+=t[k].width+o.buttonSpacing):t[k][s]({x:l})},r.prototype.handleCollision=function(a){var t=this,i=this,o=i.chart,e=i.buttonGroup,s=i.inputGroup,n=this.options,l=n.buttonPosition,b=n.dropdown,k=n.inputPosition,D=function(){var A=0;return t.buttons.forEach(function(N){var R=N.getBBox();R.width>A&&(A=R.width)}),A},d=function(A){if(s&&e){var N=s.alignAttr.translateX+s.alignOptions.x-a+s.getBBox().x+2,R=s.alignOptions.width,L=e.alignAttr.translateX+e.getBBox().x;return L+A>N&&N+R>L&&l.y<k.y+s.getBBox().height}return!1},C=function(){s&&e&&s.attr({translateX:s.alignAttr.translateX+(o.axisOffset[1]>=-a?0:-a),translateY:s.alignAttr.translateY+e.getBBox().height+10})};if(e){if(b==="always")return this.collapseButtons(a),void(d(D())&&C());b==="never"&&this.expandButtons()}s&&e?k.align===l.align||d(this.initialButtonGroupWidth+20)?b==="responsive"?(this.collapseButtons(a),d(D())&&C()):C():b==="responsive"&&this.expandButtons():e&&b==="responsive"&&(this.initialButtonGroupWidth>o.plotWidth?this.collapseButtons(a):this.expandButtons())},r.prototype.collapseButtons=function(a){var t=this,i=t.buttons,o=t.buttonOptions,e=t.chart,s=t.dropdown,n=t.options,l=t.zoomText,b=e.userOptions.rangeSelector&&e.userOptions.rangeSelector.buttonTheme||{},k=function(C){return{text:C?C+" ▾":"▾",width:"auto",paddingLeft:w(n.buttonTheme.paddingLeft,b.padding,8),paddingRight:w(n.buttonTheme.paddingRight,b.padding,8)}};l&&l.hide();var D=!1;o.forEach(function(C,A){var N=i[A];N.state!==2?N.hide():(N.show(),N.attr(k(C.text)),D=!0)}),D||(s&&(s.selectedIndex=0),i[0].show(),i[0].attr(k(this.zoomText&&this.zoomText.textStr)));var d=n.buttonPosition.align;this.positionButtons(),d!=="right"&&d!=="center"||this.alignButtonGroup(a,i[this.currentButtonIndex()].getBBox().width),this.showDropdown()},r.prototype.expandButtons=function(){var a=this,t=a.buttons,i=a.buttonOptions,o=a.options,e=a.zoomText;this.hideDropdown(),e&&e.show(),i.forEach(function(s,n){var l=t[n];l.show(),l.attr({text:s.text,width:o.buttonTheme.width||28,paddingLeft:w(o.buttonTheme.paddingLeft,"unset"),paddingRight:w(o.buttonTheme.paddingRight,"unset")}),l.state<2&&l.setState(0)}),this.positionButtons()},r.prototype.currentButtonIndex=function(){var a=this.dropdown;return a&&a.selectedIndex>0?a.selectedIndex-1:0},r.prototype.showDropdown=function(){var a=this,t=a.buttonGroup,i=a.buttons,o=a.chart,e=a.dropdown;if(t&&e){var s=t.translateX,n=t.translateY,l=i[this.currentButtonIndex()].getBBox();E(e,{left:o.plotLeft+s+"px",top:n+.5+"px",width:l.width+"px",height:l.height+"px"}),this.hasVisibleDropdown=!0}},r.prototype.hideDropdown=function(){var a=this.dropdown;a&&(E(a,{top:"-9999em",width:"1px",height:"1px"}),this.hasVisibleDropdown=!1)},r.prototype.getHeight=function(){var a=this.options,t=this.group,i=a.inputPosition,o=a.buttonPosition,e=a.y,s=o.y,n=i.y,l=0;if(a.height)return a.height;this.alignElements(),l=t?t.getBBox(!0).height+13+e:0;var b=Math.min(n,s);return(n<0&&s<0||n>0&&s>0)&&(l+=Math.abs(b)),l},r.prototype.titleCollision=function(a){return!(a.options.title.text||a.options.subtitle.text)},r.prototype.update=function(a){var t=this.chart;u(!0,t.options.rangeSelector,a),this.destroy(),this.init(t),this.render()},r.prototype.destroy=function(){var a=this,t=a.minInput,i=a.maxInput;a.eventsToUnbind&&(a.eventsToUnbind.forEach(function(o){return o()}),a.eventsToUnbind=void 0),P(a.buttons),t&&(t.onfocus=t.onblur=t.onchange=null),i&&(i.onfocus=i.onblur=i.onchange=null),v(a,function(o,e){o&&e!=="chart"&&(o instanceof $?o.destroy():o instanceof window.HTMLElement&&y(o)),o!==r.prototype[e]&&(a[e]=null)},this)},r}();return h(g.prototype,{defaultButtons:[{type:"month",count:1,text:"1m",title:"View 1 month"},{type:"month",count:3,text:"3m",title:"View 3 months"},{type:"month",count:6,text:"6m",title:"View 6 months"},{type:"ytd",text:"YTD",title:"View year to date"},{type:"year",count:1,text:"1y",title:"View 1 year"},{type:"all",text:"All",title:"View all"}],inputTypeFormats:{"datetime-local":"%Y-%m-%dT%H:%M:%S",date:"%Y-%m-%d",time:"%H:%M:%S"}}),g}),et(_,"Accessibility/Components/RangeSelectorComponent.js",[_["Stock/RangeSelector/RangeSelector.js"],_["Accessibility/AccessibilityComponent.js"],_["Accessibility/Utils/ChartUtilities.js"],_["Accessibility/Utils/Announcer.js"],_["Accessibility/KeyboardNavigationHandler.js"],_["Core/Utilities.js"]],function(G,B,X,U,$,Z){var V,z=this&&this.__extends||(V=function(h,f){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,u){m.__proto__=u}||function(m,u){for(var v in u)u.hasOwnProperty(v)&&(m[v]=u[v])},V(h,f)},function(h,f){function m(){this.constructor=h}V(h,f),h.prototype=f===null?Object.create(f):(m.prototype=f.prototype,new m)}),I=X.unhideChartElementFromAT,E=X.getAxisRangeDescription,M=Z.addEvent,P=Z.attr,y=function(h){function f(){var m=h!==null&&h.apply(this,arguments)||this;return m.announcer=void 0,m}return z(f,h),f.prototype.init=function(){var m=this.chart;this.announcer=new U(m,"polite")},f.prototype.onChartUpdate=function(){var m=this.chart,u=this,v=m.rangeSelector;v&&(this.updateSelectorVisibility(),this.setDropdownAttrs(),v.buttons&&v.buttons.length&&v.buttons.forEach(function(S){u.setRangeButtonAttrs(S)}),v.maxInput&&v.minInput&&["minInput","maxInput"].forEach(function(S,w){var x=v[S];x&&(I(m,x),u.setRangeInputAttrs(x,"accessibility.rangeSelector."+(w?"max":"min")+"InputLabel"))}))},f.prototype.updateSelectorVisibility=function(){var m=this.chart,u=m.rangeSelector,v=u&&u.dropdown,S=u&&u.buttons||[],w=function(x){return x.setAttribute("aria-hidden",!0)};u&&u.hasVisibleDropdown&&v?(I(m,v),S.forEach(function(x){return w(x.element)})):(v&&w(v),S.forEach(function(x){return I(m,x.element)}))},f.prototype.setDropdownAttrs=function(){var m=this.chart,u=m.rangeSelector&&m.rangeSelector.dropdown;if(u){var v=m.langFormat("accessibility.rangeSelector.dropdownLabel",{rangeTitle:m.options.lang.rangeSelectorZoom});u.setAttribute("aria-label",v),u.setAttribute("tabindex",-1)}},f.prototype.setRangeButtonAttrs=function(m){P(m.element,{tabindex:-1,role:"button"})},f.prototype.setRangeInputAttrs=function(m,u){var v=this.chart;P(m,{tabindex:-1,"aria-label":v.langFormat(u,{chart:v})})},f.prototype.onButtonNavKbdArrowKey=function(m,u){var v=m.response,S=this.keyCodes,w=this.chart,x=w.options.accessibility.keyboardNavigation.wrapAround,c=u===S.left||u===S.up?-1:1;return w.highlightRangeSelectorButton(w.highlightedRangeSelectorItemIx+c)?v.success:x?(m.init(c),v.success):v[c>0?"next":"prev"]},f.prototype.onButtonNavKbdClick=function(m){var u=m.response,v=this.chart;return v.oldRangeSelectorItemState===3||this.fakeClickEvent(v.rangeSelector.buttons[v.highlightedRangeSelectorItemIx].element),u.success},f.prototype.onAfterBtnClick=function(){var m=this.chart,u=E(m.xAxis[0]),v=m.langFormat("accessibility.rangeSelector.clickButtonAnnouncement",{chart:m,axisRangeDescription:u});v&&this.announcer.announce(v)},f.prototype.onInputKbdMove=function(m){var u=this.chart,v=u.rangeSelector,S=u.highlightedInputRangeIx=(u.highlightedInputRangeIx||0)+m;if(S>1||S<0)u.accessibility&&(u.accessibility.keyboardNavigation.tabindexContainer.focus(),u.accessibility.keyboardNavigation.move(m));else if(v){var w=v[S?"maxDateBox":"minDateBox"],x=v[S?"maxInput":"minInput"];w&&x&&u.setFocusToElement(w,x)}},f.prototype.onInputNavInit=function(m){var u=this,v=this,S=this.chart,w=m>0?0:1,x=S.rangeSelector,c=x&&x[w?"maxDateBox":"minDateBox"],g=x&&x.minInput,r=x&&x.maxInput,a=w?r:g;if(S.highlightedInputRangeIx=w,c&&g&&r){S.setFocusToElement(c,a),this.removeInputKeydownHandler&&this.removeInputKeydownHandler();var t=function(e){(e.which||e.keyCode)===u.keyCodes.tab&&(e.preventDefault(),e.stopPropagation(),v.onInputKbdMove(e.shiftKey?-1:1))},i=M(g,"keydown",t),o=M(r,"keydown",t);this.removeInputKeydownHandler=function(){i(),o()}}},f.prototype.onInputNavTerminate=function(){var m=this.chart.rangeSelector||{};m.maxInput&&m.hideInput("max"),m.minInput&&m.hideInput("min"),this.removeInputKeydownHandler&&(this.removeInputKeydownHandler(),delete this.removeInputKeydownHandler)},f.prototype.initDropdownNav=function(){var m=this,u=this.chart,v=u.rangeSelector,S=v&&v.dropdown;v&&S&&(u.setFocusToElement(v.buttonGroup,S),this.removeDropdownKeydownHandler&&this.removeDropdownKeydownHandler(),this.removeDropdownKeydownHandler=M(S,"keydown",function(w){var x=(w.which||w.keyCode)===m.keyCodes.tab,c=u.accessibility;x&&(w.preventDefault(),w.stopPropagation(),c&&(c.keyboardNavigation.tabindexContainer.focus(),c.keyboardNavigation.move(w.shiftKey?-1:1)))}))},f.prototype.getRangeSelectorButtonNavigation=function(){var m=this.chart,u=this.keyCodes,v=this;return new $(m,{keyCodeMap:[[[u.left,u.right,u.up,u.down],function(S){return v.onButtonNavKbdArrowKey(this,S)}],[[u.enter,u.space],function(){return v.onButtonNavKbdClick(this)}]],validate:function(){return!!(m.rangeSelector&&m.rangeSelector.buttons&&m.rangeSelector.buttons.length)},init:function(S){var w=m.rangeSelector;if(w&&w.hasVisibleDropdown)v.initDropdownNav();else if(w){var x=w.buttons.length-1;m.highlightRangeSelectorButton(S>0?0:x)}},terminate:function(){v.removeDropdownKeydownHandler&&(v.removeDropdownKeydownHandler(),delete v.removeDropdownKeydownHandler)}})},f.prototype.getRangeSelectorInputNavigation=function(){var m=this.chart,u=this;return new $(m,{keyCodeMap:[],validate:function(){return function(v){return!!(v.rangeSelector&&v.rangeSelector.inputGroup&&v.rangeSelector.inputGroup.element.style.visibility!=="hidden"&&v.options.rangeSelector.inputEnabled!==!1&&v.rangeSelector.minInput&&v.rangeSelector.maxInput)}(m)},init:function(v){u.onInputNavInit(v)},terminate:function(){u.onInputNavTerminate()}})},f.prototype.getKeyboardNavigation=function(){return[this.getRangeSelectorButtonNavigation(),this.getRangeSelectorInputNavigation()]},f.prototype.destroy=function(){this.removeDropdownKeydownHandler&&this.removeDropdownKeydownHandler(),this.removeInputKeydownHandler&&this.removeInputKeydownHandler(),this.announcer&&this.announcer.destroy()},f}(B);return function(h){var f=[];function m(v){var S=this.rangeSelector&&this.rangeSelector.buttons||[],w=this.highlightedRangeSelectorItemIx,x=this.rangeSelector&&this.rangeSelector.selected;return w!==void 0&&S[w]&&w!==x&&S[w].setState(this.oldRangeSelectorItemState||0),this.highlightedRangeSelectorItemIx=v,!!S[v]&&(this.setFocusToElement(S[v].box,S[v].element),v!==x&&(this.oldRangeSelectorItemState=S[v].state,S[v].setState(1)),!0)}function u(){var v=this.chart.accessibility;if(v&&v.components.rangeSelector)return v.components.rangeSelector.onAfterBtnClick()}h.compose=function(v,S){f.indexOf(v)===-1&&(f.push(v),v.prototype.highlightRangeSelectorButton=m),f.indexOf(S)===-1&&(f.push(S),M(G,"afterBtnClick",u))}}(y||(y={})),y}),et(_,"Accessibility/Components/SeriesComponent/ForcedMarkers.js",[_["Core/Utilities.js"]],function(G){var B,X=G.addEvent,U=G.merge;return function($){var Z=[];function V(h){U(!0,h,{marker:{enabled:!0,states:{normal:{opacity:0}}}})}function z(h){return h.marker.states&&h.marker.states.normal&&h.marker.states.normal.opacity}function I(h){return!!(h._hasPointMarkers&&h.points&&h.points.length)}function E(){var h=this;h.chart.styledMode&&(h.markerGroup&&h.markerGroup[h.a11yMarkersForced?"addClass":"removeClass"]("highcharts-a11y-markers-hidden"),I(h)&&h.points.forEach(function(f){f.graphic&&(f.graphic[f.hasForcedA11yMarker?"addClass":"removeClass"]("highcharts-a11y-marker-hidden"),f.graphic[f.hasForcedA11yMarker===!1?"addClass":"removeClass"]("highcharts-a11y-marker-visible"))}))}function M(h){this.resetA11yMarkerOptions=U(h.options.marker||{},this.userOptions.marker||{})}function P(){var h=this,f=h.options;(function(m){var u=m.chart.options.accessibility.enabled,v=(m.options.accessibility&&m.options.accessibility.enabled)!==!1;return u&&v&&function(S){var w=S.chart.options.accessibility;return S.points.length<w.series.pointDescriptionEnabledThreshold||w.series.pointDescriptionEnabledThreshold===!1}(m)})(h)?(f.marker&&f.marker.enabled===!1&&(h.a11yMarkersForced=!0,V(h.options)),I(h)&&function(m){for(var u=m.points.length;u--;){var v=m.points[u],S=v.options,w=v.hasForcedA11yMarker;if(delete v.hasForcedA11yMarker,S.marker){var x=w&&z(S)===0;S.marker.enabled&&!x?(y(S),v.hasForcedA11yMarker=!1):S.marker.enabled===!1&&(V(S),v.hasForcedA11yMarker=!0)}}}(h)):h.a11yMarkersForced&&(delete h.a11yMarkersForced,function(m){var u=m.resetA11yMarkerOptions;if(u){var v=u.states&&u.states.normal&&u.states.normal.opacity;m.update({marker:{enabled:u.enabled,states:{normal:{opacity:v}}}})}}(h),delete h.resetA11yMarkerOptions)}function y(h){U(!0,h.marker,{states:{normal:{opacity:z(h)||1}}})}$.compose=function(h){Z.indexOf(h)===-1&&(Z.push(h),X(h,"afterSetOptions",M),X(h,"render",P),X(h,"afterRender",E))}}(B||(B={})),B}),et(_,"Accessibility/Components/SeriesComponent/SeriesKeyboardNavigation.js",[_["Core/Series/Point.js"],_["Core/Series/Series.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Globals.js"],_["Core/Utilities.js"],_["Accessibility/KeyboardNavigationHandler.js"],_["Accessibility/Utils/EventProvider.js"],_["Accessibility/Utils/ChartUtilities.js"]],function(G,B,X,U,$,Z,V,z){var I=X.seriesTypes,E=U.doc,M=$.defined,P=$.fireEvent,y=z.getPointFromXY,h=z.getSeriesFromName,f=z.scrollToPoint;function m(r){var a=r.index,t=r.series.points,i=t.length;if(t[a]===r)return a;for(;i--;)if(t[i]===r)return i}function u(r){var a=r.chart.options.accessibility.keyboardNavigation.seriesNavigation,t=r.options.accessibility||{},i=t.keyboardNavigation;return i&&i.enabled===!1||t.enabled===!1||r.options.enableMouseTracking===!1||!r.visible||a.pointNavigationEnabledThreshold&&a.pointNavigationEnabledThreshold<=r.points.length}function v(r){var a=r.series.chart.options.accessibility,t=r.options.accessibility&&r.options.accessibility.enabled===!1;return r.isNull&&a.keyboardNavigation.seriesNavigation.skipNullPoints||r.visible===!1||r.isInside===!1||t||u(r.series)}function S(r){for(var a=r.points||[],t=a.length,i=0;i<t;++i)if(!v(a[i]))return a[i];return null}function w(r){for(var a=r.series||[],t=a.length,i=0;i<t;++i)if(!u(a[i])){var o=S(a[i]);if(o)return o}return null}function x(r){for(var a=r.series.length,t=!1;a--&&(r.highlightedPoint=r.series[a].points[r.series[a].points.length-1],!(t=r.series[a].highlightNextValidPoint())););return t}function c(r){delete r.highlightedPoint;var a=w(r);return!!a&&a.highlight()}var g=function(){function r(a,t){this.keyCodes=t,this.chart=a}return r.prototype.init=function(){var a=this,t=this.chart,i=this.eventProvider=new V;i.addEvent(B,"destroy",function(){return a.onSeriesDestroy(this)}),i.addEvent(t,"afterApplyDrilldown",function(){(function(o){var e=w(o);e&&e.highlight(!1)})(this)}),i.addEvent(t,"drilldown",function(o){var e=o.point,s=e.series;a.lastDrilledDownPoint={x:e.x,y:e.y,seriesName:s?s.name:""}}),i.addEvent(t,"drillupall",function(){setTimeout(function(){a.onDrillupAll()},10)}),i.addEvent(G,"afterSetState",function(){var o=this,e=o.graphic&&o.graphic.element,s=E.activeElement,n=s&&s.getAttribute("class"),l=n&&n.indexOf("highcharts-a11y-proxy-button")>-1;t.highlightedPoint===o&&s!==e&&!l&&e&&e.focus&&e.focus()})},r.prototype.onDrillupAll=function(){var a,t=this.lastDrilledDownPoint,i=this.chart,o=t&&h(i,t.seriesName);t&&o&&M(t.x)&&M(t.y)&&(a=y(o,t.x,t.y)),a=a||w(i),i.container&&i.container.focus(),a&&a.highlight&&a.highlight(!1)},r.prototype.getKeyboardNavigationHandler=function(){var a=this,t=this.keyCodes,i=this.chart,o=i.inverted;return new Z(i,{keyCodeMap:[[o?[t.up,t.down]:[t.left,t.right],function(e){return a.onKbdSideways(this,e)}],[o?[t.left,t.right]:[t.up,t.down],function(e){return a.onKbdVertical(this,e)}],[[t.enter,t.space],function(e,s){var n=i.highlightedPoint;return n&&(s.point=n,P(n.series,"click",s),n.firePointEvent("click")),this.response.success}],[[t.home],function(){return c(i),this.response.success}],[[t.end],function(){return x(i),this.response.success}],[[t.pageDown,t.pageUp],function(e){return i.highlightAdjacentSeries(e===t.pageDown),this.response.success}]],init:function(){return a.onHandlerInit(this)},validate:function(){return!!w(i)},terminate:function(){return a.onHandlerTerminate()}})},r.prototype.onKbdSideways=function(a,t){var i=this.keyCodes,o=t===i.right||t===i.down;return this.attemptHighlightAdjacentPoint(a,o)},r.prototype.onHandlerInit=function(a){var t=this.chart;return t.options.accessibility.keyboardNavigation.seriesNavigation.rememberPointFocus&&t.highlightedPoint?t.highlightedPoint.highlight():c(t),a.response.success},r.prototype.onKbdVertical=function(a,t){var i=this.chart,o=this.keyCodes,e=t===o.down||t===o.right,s=i.options.accessibility.keyboardNavigation.seriesNavigation;return s.mode&&s.mode==="serialize"?this.attemptHighlightAdjacentPoint(a,e):(i[i.highlightedPoint&&i.highlightedPoint.series.keyboardMoveVertical?"highlightAdjacentPointVertical":"highlightAdjacentSeries"](e),a.response.success)},r.prototype.onHandlerTerminate=function(){var a=this.chart,t=a.options.accessibility.keyboardNavigation;a.tooltip&&a.tooltip.hide(0);var i=a.highlightedPoint&&a.highlightedPoint.series;i&&i.onMouseOut&&i.onMouseOut(),a.highlightedPoint&&a.highlightedPoint.onMouseOut&&a.highlightedPoint.onMouseOut(),t.seriesNavigation.rememberPointFocus||delete a.highlightedPoint},r.prototype.attemptHighlightAdjacentPoint=function(a,t){var i=this.chart,o=i.options.accessibility.keyboardNavigation.wrapAround;return i.highlightAdjacentPoint(t)||o&&(t?c(i):x(i))?a.response.success:a.response[t?"next":"prev"]},r.prototype.onSeriesDestroy=function(a){var t=this.chart;t.highlightedPoint&&t.highlightedPoint.series===a&&(delete t.highlightedPoint,t.focusElement&&t.focusElement.removeFocusBorder())},r.prototype.destroy=function(){this.eventProvider.removeAddedEvents()},r}();return function(r){var a=[];function t(n){var l,b,k=this,D=k.series,d=k.highlightedPoint,C=d&&m(d)||0,A=d&&d.series.points||[],N=k.series&&k.series[k.series.length-1],R=N&&N.points&&N.points[N.points.length-1];if(!D[0]||!D[0].points)return!1;if(d){if(l=D[d.series.index+(n?1:-1)],!(b=A[C+(n?1:-1)])&&l&&(b=l.points[n?0:l.points.length-1]),!b)return!1}else b=n?D[0].points[0]:R;return v(b)?(u(l=b.series)?k.highlightedPoint=n?l.points[l.points.length-1]:l.points[0]:k.highlightedPoint=b,k.highlightAdjacentPoint(n)):b.highlight()}function i(n){var l,b=this.highlightedPoint,k=1/0;return!(!M(b.plotX)||!M(b.plotY))&&(this.series.forEach(function(D){u(D)||D.points.forEach(function(d){if(M(d.plotY)&&M(d.plotX)&&d!==b){var C=d.plotY-b.plotY,A=Math.abs(d.plotX-b.plotX),N=Math.abs(C)*Math.abs(C)+A*A*4;D.yAxis&&D.yAxis.reversed&&(C*=-1),C<=0&&n||C>=0&&!n||N<5||v(d)||N<k&&(k=N,l=d)}})}),!!l&&l.highlight())}function o(n){var l,b,k=this,D=k.highlightedPoint,d=k.series&&k.series[k.series.length-1],C=d&&d.points&&d.points[d.points.length-1];return k.highlightedPoint?!!(l=k.series[D.series.index+(n?-1:1)])&&!!(b=function(A,N){var R,L,O,j=1/0,Y=N.points.length,H=function(W){return!(M(W.plotX)&&M(W.plotY))};if(!H(A)){for(;Y--;)H(R=N.points[Y])||(O=(A.plotX-R.plotX)*(A.plotX-R.plotX)*4+(A.plotY-R.plotY)*(A.plotY-R.plotY)*1)<j&&(j=O,L=Y);return M(L)?N.points[L]:void 0}}(D,l))&&(u(l)?(b.highlight(),k.highlightAdjacentSeries(n)||(D.highlight(),!1)):(b.highlight(),b.series.highlightNextValidPoint())):(l=n?k.series&&k.series[0]:d,!!(b=n?l&&l.points&&l.points[0]:C)&&b.highlight())}function e(n){n===void 0&&(n=!0);var l=this.series.chart;return!this.isNull&&n?this.onMouseOver():l.tooltip&&l.tooltip.hide(0),f(this),this.graphic&&(l.setFocusToElement(this.graphic),!n&&l.focusElement&&l.focusElement.removeFocusBorder()),l.highlightedPoint=this,this}function s(){var n=this.chart.highlightedPoint,l=(n&&n.series)===this?m(n):0,b=this.points,k=b.length;if(b&&k){for(var D=l;D<k;++D)if(!v(b[D]))return b[D].highlight();for(var d=l;d>=0;--d)if(!v(b[d]))return b[d].highlight()}return!1}r.compose=function(n,l,b){if(a.indexOf(n)===-1){a.push(n);var k=n.prototype;k.highlightAdjacentPoint=t,k.highlightAdjacentPointVertical=i,k.highlightAdjacentSeries=o}if(a.indexOf(l)===-1&&(a.push(l),l.prototype.highlight=e),a.indexOf(b)===-1){a.push(b);var D=b.prototype;D.keyboardMoveVertical=!0,["column","gantt","pie"].forEach(function(d){I[d]&&(I[d].prototype.keyboardMoveVertical=!1)}),D.highlightNextValidPoint=s}}}(g||(g={})),g}),et(_,"Accessibility/Components/SeriesComponent/SeriesComponent.js",[_["Accessibility/AccessibilityComponent.js"],_["Accessibility/Utils/ChartUtilities.js"],_["Accessibility/Components/SeriesComponent/ForcedMarkers.js"],_["Accessibility/Components/SeriesComponent/NewDataAnnouncer.js"],_["Accessibility/Components/SeriesComponent/SeriesDescriber.js"],_["Accessibility/Components/SeriesComponent/SeriesKeyboardNavigation.js"],_["Core/Tooltip.js"]],function(G,B,X,U,$,Z,V){var z,I=this&&this.__extends||(z=function(y,h){return z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var u in m)m.hasOwnProperty(u)&&(f[u]=m[u])},z(y,h)},function(y,h){function f(){this.constructor=y}z(y,h),y.prototype=h===null?Object.create(h):(f.prototype=h.prototype,new f)}),E=B.hideSeriesFromAT,M=$.describeSeries,P=function(y){function h(){return y!==null&&y.apply(this,arguments)||this}return I(h,y),h.compose=function(f,m,u){U.compose(u),X.compose(u),Z.compose(f,m,u)},h.prototype.init=function(){this.newDataAnnouncer=new U(this.chart),this.newDataAnnouncer.init(),this.keyboardNavigation=new Z(this.chart,this.keyCodes),this.keyboardNavigation.init(),this.hideTooltipFromATWhenShown(),this.hideSeriesLabelsFromATWhenShown()},h.prototype.hideTooltipFromATWhenShown=function(){var f=this;this.addEvent(V,"refresh",function(){this.chart===f.chart&&this.label&&this.label.element&&this.label.element.setAttribute("aria-hidden",!0)})},h.prototype.hideSeriesLabelsFromATWhenShown=function(){this.addEvent(this.chart,"afterDrawSeriesLabels",function(){this.series.forEach(function(f){f.labelBySeries&&f.labelBySeries.attr("aria-hidden",!0)})})},h.prototype.onChartRender=function(){this.chart.series.forEach(function(f){(f.options.accessibility&&f.options.accessibility.enabled)!==!1&&f.visible?M(f):E(f)})},h.prototype.getKeyboardNavigation=function(){return this.keyboardNavigation.getKeyboardNavigationHandler()},h.prototype.destroy=function(){this.newDataAnnouncer.destroy(),this.keyboardNavigation.destroy()},h}(G);return P}),et(_,"Accessibility/Components/ZoomComponent.js",[_["Accessibility/AccessibilityComponent.js"],_["Accessibility/Utils/ChartUtilities.js"],_["Accessibility/Utils/HTMLUtilities.js"],_["Accessibility/KeyboardNavigationHandler.js"],_["Core/Utilities.js"]],function(G,B,X,U,$){var Z,V=this&&this.__extends||(Z=function(y,h){return Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var u in m)m.hasOwnProperty(u)&&(f[u]=m[u])},Z(y,h)},function(y,h){function f(){this.constructor=y}Z(y,h),y.prototype=h===null?Object.create(h):(f.prototype=h.prototype,new f)}),z=B.unhideChartElementFromAT,I=X.getFakeMouseEvent,E=$.attr,M=$.pick,P=function(y){function h(){var f=y!==null&&y.apply(this,arguments)||this;return f.focusedMapNavButtonIx=-1,f}return V(h,y),h.prototype.init=function(){var f=this,m=this.chart;this.proxyProvider.addGroup("zoom","div"),["afterShowResetZoom","afterApplyDrilldown","drillupall"].forEach(function(u){f.addEvent(m,u,function(){f.updateProxyOverlays()})})},h.prototype.onChartUpdate=function(){var f=this.chart,m=this;f.mapNavigation&&f.mapNavigation.navButtons.forEach(function(u,v){z(f,u.element),m.setMapNavButtonAttrs(u.element,"accessibility.zoom.mapZoom"+(v?"Out":"In"))})},h.prototype.setMapNavButtonAttrs=function(f,m){var u=this.chart,v=u.langFormat(m,{chart:u});E(f,{tabindex:-1,role:"button","aria-label":v})},h.prototype.onChartRender=function(){this.updateProxyOverlays()},h.prototype.updateProxyOverlays=function(){var f=this.chart;if(this.proxyProvider.clearGroup("zoom"),f.resetZoomButton&&this.createZoomProxyButton(f.resetZoomButton,"resetZoomProxyButton",f.langFormat("accessibility.zoom.resetZoomButton",{chart:f})),f.drillUpButton&&f.breadcrumbs&&f.breadcrumbs.list){var m=f.breadcrumbs.list[f.breadcrumbs.list.length-1];this.createZoomProxyButton(f.drillUpButton,"drillUpProxyButton",f.langFormat("accessibility.drillUpButton",{chart:f,buttonText:f.breadcrumbs.getButtonText(m)}))}},h.prototype.createZoomProxyButton=function(f,m,u){this[m]=this.proxyProvider.addProxyElement("zoom",{click:f},{"aria-label":u,tabindex:-1})},h.prototype.getMapZoomNavigation=function(){var f=this.keyCodes,m=this.chart,u=this;return new U(m,{keyCodeMap:[[[f.up,f.down,f.left,f.right],function(v){return u.onMapKbdArrow(this,v)}],[[f.tab],function(v,S){return u.onMapKbdTab(this,S)}],[[f.space,f.enter],function(){return u.onMapKbdClick(this)}]],validate:function(){return function(v){return!!(v.mapView&&v.mapNavigation&&v.mapNavigation.navButtons.length)}(m)},init:function(v){return u.onMapNavInit(v)}})},h.prototype.onMapKbdArrow=function(f,m){var u=this.chart,v=this.keyCodes,S=u.container,w=m===v.up||m===v.down,x=m===v.left||m===v.up?1:-1,c=(w?u.plotHeight:u.plotWidth)/10*x,g=10*Math.random(),r={x:S.offsetLeft+u.plotLeft+u.plotWidth/2+g,y:S.offsetTop+u.plotTop+u.plotHeight/2+g},a=w?{x:r.x,y:r.y+c}:{x:r.x+c,y:r.y};return[I("mousedown",r),I("mousemove",a),I("mouseup",a)].forEach(function(t){return S.dispatchEvent(t)}),f.response.success},h.prototype.onMapKbdTab=function(f,m){var u=this.chart,v=f.response,S=m.shiftKey,w=S&&!this.focusedMapNavButtonIx||!S&&this.focusedMapNavButtonIx;if(u.mapNavigation.navButtons[this.focusedMapNavButtonIx].setState(0),w)return u.mapView&&u.mapView.zoomBy(),v[S?"prev":"next"];this.focusedMapNavButtonIx+=S?-1:1;var x=u.mapNavigation.navButtons[this.focusedMapNavButtonIx];return u.setFocusToElement(x.box,x.element),x.setState(2),v.success},h.prototype.onMapKbdClick=function(f){var m=this.chart.mapNavigation.navButtons[this.focusedMapNavButtonIx].element;return this.fakeClickEvent(m),f.response.success},h.prototype.onMapNavInit=function(f){var m=this.chart,u=m.mapNavigation.navButtons[0],v=m.mapNavigation.navButtons[1],S=f>0?u:v;m.setFocusToElement(S.box,S.element),S.setState(2),this.focusedMapNavButtonIx=f>0?0:1},h.prototype.simpleButtonNavigation=function(f,m,u){var v=this.keyCodes,S=this,w=this.chart;return new U(w,{keyCodeMap:[[[v.tab,v.up,v.down,v.left,v.right],function(x,c){var g=x===v.tab&&c.shiftKey||x===v.left||x===v.up;return this.response[g?"prev":"next"]}],[[v.space,v.enter],function(){var x=u(this,w);return M(x,this.response.success)}]],validate:function(){return w[f]&&w[f].box&&S[m].buttonElement},init:function(){w.setFocusToElement(w[f].box,S[m].buttonElement)}})},h.prototype.getKeyboardNavigation=function(){return[this.simpleButtonNavigation("resetZoomButton","resetZoomProxyButton",function(f,m){m.zoomOut()}),this.simpleButtonNavigation("drillUpButton","drillUpProxyButton",function(f,m){return m.drillUp(),f.response.prev}),this.getMapZoomNavigation()]},h}(G);return P}),et(_,"Accessibility/HighContrastMode.js",[_["Core/Globals.js"]],function(G){var B=G.doc,X=G.isMS,U=G.win;return{isHighContrastModeActive:function(){var $=/(Edg)/.test(U.navigator.userAgent);if(U.matchMedia&&$)return U.matchMedia("(-ms-high-contrast: active)").matches;if(X&&U.getComputedStyle){var Z=B.createElement("div");Z.style.backgroundImage="url(".concat("data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",")"),B.body.appendChild(Z);var V=(Z.currentStyle||U.getComputedStyle(Z)).backgroundImage;return B.body.removeChild(Z),V==="none"}return U.matchMedia&&U.matchMedia("(forced-colors: active)").matches},setHighContrastTheme:function($){$.highContrastModeActive=!0;var Z=$.options.accessibility.highContrastTheme;$.update(Z,!1),$.series.forEach(function(V){var z=Z.plotOptions[V.type]||{};V.update({color:z.color||"windowText",colors:[z.color||"windowText"],borderColor:z.borderColor||"window"}),V.points.forEach(function(I){I.options&&I.options.color&&I.update({color:z.color||"windowText",borderColor:z.borderColor||"window"},!1)})}),$.redraw()}}}),et(_,"Accessibility/HighContrastTheme.js",[],function(){return{chart:{backgroundColor:"window"},title:{style:{color:"windowText"}},subtitle:{style:{color:"windowText"}},colorAxis:{minColor:"windowText",maxColor:"windowText",stops:[]},colors:["windowText"],xAxis:{gridLineColor:"windowText",labels:{style:{color:"windowText"}},lineColor:"windowText",minorGridLineColor:"windowText",tickColor:"windowText",title:{style:{color:"windowText"}}},yAxis:{gridLineColor:"windowText",labels:{style:{color:"windowText"}},lineColor:"windowText",minorGridLineColor:"windowText",tickColor:"windowText",title:{style:{color:"windowText"}}},tooltip:{backgroundColor:"window",borderColor:"windowText",style:{color:"windowText"}},plotOptions:{series:{lineColor:"windowText",fillColor:"window",borderColor:"windowText",edgeColor:"windowText",borderWidth:1,dataLabels:{connectorColor:"windowText",color:"windowText",style:{color:"windowText",textOutline:"none"}},marker:{lineColor:"windowText",fillColor:"windowText"}},pie:{color:"window",colors:["window"],borderColor:"windowText",borderWidth:1},boxplot:{fillColor:"window"},candlestick:{lineColor:"windowText",fillColor:"window"},errorbar:{fillColor:"window"}},legend:{backgroundColor:"window",itemStyle:{color:"windowText"},itemHoverStyle:{color:"windowText"},itemHiddenStyle:{color:"#555"},title:{style:{color:"windowText"}}},credits:{style:{color:"windowText"}},labels:{style:{color:"windowText"}},drilldown:{activeAxisLabelStyle:{color:"windowText"},activeDataLabelStyle:{color:"windowText"}},navigation:{buttonOptions:{symbolStroke:"windowText",theme:{fill:"window"}}},rangeSelector:{buttonTheme:{fill:"window",stroke:"windowText",style:{color:"windowText"},states:{hover:{fill:"window",stroke:"windowText",style:{color:"windowText"}},select:{fill:"#444",stroke:"windowText",style:{color:"windowText"}}}},inputBoxBorderColor:"windowText",inputStyle:{backgroundColor:"window",color:"windowText"},labelStyle:{color:"windowText"}},navigator:{handles:{backgroundColor:"window",borderColor:"windowText"},outlineColor:"windowText",maskFill:"transparent",series:{color:"windowText",lineColor:"windowText"},xAxis:{gridLineColor:"windowText"}},scrollbar:{barBackgroundColor:"#444",barBorderColor:"windowText",buttonArrowColor:"windowText",buttonBackgroundColor:"window",buttonBorderColor:"windowText",rifleColor:"windowText",trackBackgroundColor:"window",trackBorderColor:"windowText"}}}),et(_,"Accessibility/Options/A11yDefaults.js",[],function(){return{accessibility:{enabled:!0,screenReaderSection:{beforeChartFormat:"<{headingTagName}>{chartTitle}</{headingTagName}><div>{typeDescription}</div><div>{chartSubtitle}</div><div>{chartLongdesc}</div><div>{playAsSoundButton}</div><div>{viewTableButton}</div><div>{xAxisDescription}</div><div>{yAxisDescription}</div><div>{annotationsTitle}{annotationsList}</div>",afterChartFormat:"{endOfChartMarker}",axisRangeDateFormat:"%Y-%m-%d %H:%M:%S"},series:{descriptionFormat:"{seriesDescription}{authorDescription}{axisDescription}",describeSingleSeries:!1,pointDescriptionEnabledThreshold:200},point:{valueDescriptionFormat:"{xDescription}{separator}{value}.",describeNull:!0},landmarkVerbosity:"all",linkedDescription:'*[data-highcharts-chart="{index}"] + .highcharts-description',keyboardNavigation:{enabled:!0,focusBorder:{enabled:!0,hideBrowserFocusOutline:!0,style:{color:"#335cad",lineWidth:2,borderRadius:3},margin:2},order:["series","zoom","rangeSelector","legend","chartMenu"],wrapAround:!0,seriesNavigation:{skipNullPoints:!0,pointNavigationEnabledThreshold:!1,rememberPointFocus:!1}},announceNewData:{enabled:!1,minAnnounceInterval:5e3,interruptUser:!1}},legend:{accessibility:{enabled:!0,keyboardNavigation:{enabled:!0}}},exporting:{accessibility:{enabled:!0}}}}),et(_,"Accessibility/Options/LangDefaults.js",[],function(){return{accessibility:{defaultChartTitle:"Chart",chartContainerLabel:"{title}. Highcharts interactive chart.",svgContainerLabel:"Interactive chart",drillUpButton:"{buttonText}",credits:"Chart credits: {creditsStr}",thousandsSep:",",svgContainerTitle:"",graphicContainerLabel:"",screenReaderSection:{beforeRegionLabel:"",afterRegionLabel:"",annotations:{heading:"Chart annotations summary",descriptionSinglePoint:"{annotationText}. Related to {annotationPoint}",descriptionMultiplePoints:"{annotationText}. Related to {annotationPoint}{ Also related to, #each(additionalAnnotationPoints)}",descriptionNoPoints:"{annotationText}"},endOfChartMarker:"End of interactive chart."},sonification:{playAsSoundButtonText:"Play as sound, {chartTitle}",playAsSoundClickAnnouncement:"Play"},legend:{legendLabelNoTitle:"Toggle series visibility, {chartTitle}",legendLabel:"Chart legend: {legendTitle}",legendItem:"Show {itemName}"},zoom:{mapZoomIn:"Zoom chart",mapZoomOut:"Zoom out chart",resetZoomButton:"Reset zoom"},rangeSelector:{dropdownLabel:"{rangeTitle}",minInputLabel:"Select start date.",maxInputLabel:"Select end date.",clickButtonAnnouncement:"Viewing {axisRangeDescription}"},table:{viewAsDataTableButtonText:"View as data table, {chartTitle}",tableSummary:"Table representation of chart."},announceNewData:{newDataAnnounce:"Updated data for chart {chartTitle}",newSeriesAnnounceSingle:"New data series: {seriesDesc}",newPointAnnounceSingle:"New data point: {pointDesc}",newSeriesAnnounceMultiple:"New data series in chart {chartTitle}: {seriesDesc}",newPointAnnounceMultiple:"New data point in chart {chartTitle}: {pointDesc}"},seriesTypeDescriptions:{boxplot:"Box plot charts are typically used to display groups of statistical data. Each data point in the chart can have up to 5 values: minimum, lower quartile, median, upper quartile, and maximum.",arearange:"Arearange charts are line charts displaying a range between a lower and higher value for each point.",areasplinerange:"These charts are line charts displaying a range between a lower and higher value for each point.",bubble:"Bubble charts are scatter charts where each data point also has a size value.",columnrange:"Columnrange charts are column charts displaying a range between a lower and higher value for each point.",errorbar:"Errorbar series are used to display the variability of the data.",funnel:"Funnel charts are used to display reduction of data in stages.",pyramid:"Pyramid charts consist of a single pyramid with item heights corresponding to each point value.",waterfall:"A waterfall chart is a column chart where each column contributes towards a total end value."},chartTypes:{emptyChart:"Empty chart",mapTypeDescription:"Map of {mapTitle} with {numSeries} data series.",unknownMap:"Map of unspecified region with {numSeries} data series.",combinationChart:"Combination chart with {numSeries} data series.",defaultSingle:"Chart with {numPoints} data {#plural(numPoints, points, point)}.",defaultMultiple:"Chart with {numSeries} data series.",splineSingle:"Line chart with {numPoints} data {#plural(numPoints, points, point)}.",splineMultiple:"Line chart with {numSeries} lines.",lineSingle:"Line chart with {numPoints} data {#plural(numPoints, points, point)}.",lineMultiple:"Line chart with {numSeries} lines.",columnSingle:"Bar chart with {numPoints} {#plural(numPoints, bars, bar)}.",columnMultiple:"Bar chart with {numSeries} data series.",barSingle:"Bar chart with {numPoints} {#plural(numPoints, bars, bar)}.",barMultiple:"Bar chart with {numSeries} data series.",pieSingle:"Pie chart with {numPoints} {#plural(numPoints, slices, slice)}.",pieMultiple:"Pie chart with {numSeries} pies.",scatterSingle:"Scatter chart with {numPoints} {#plural(numPoints, points, point)}.",scatterMultiple:"Scatter chart with {numSeries} data series.",boxplotSingle:"Boxplot with {numPoints} {#plural(numPoints, boxes, box)}.",boxplotMultiple:"Boxplot with {numSeries} data series.",bubbleSingle:"Bubble chart with {numPoints} {#plural(numPoints, bubbles, bubble)}.",bubbleMultiple:"Bubble chart with {numSeries} data series."},axis:{xAxisDescriptionSingular:"The chart has 1 X axis displaying {names[0]}. {ranges[0]}",xAxisDescriptionPlural:"The chart has {numAxes} X axes displaying {#each(names, -1) }and {names[-1]}.",yAxisDescriptionSingular:"The chart has 1 Y axis displaying {names[0]}. {ranges[0]}",yAxisDescriptionPlural:"The chart has {numAxes} Y axes displaying {#each(names, -1) }and {names[-1]}.",timeRangeDays:"Data range: {range} days.",timeRangeHours:"Data range: {range} hours.",timeRangeMinutes:"Data range: {range} minutes.",timeRangeSeconds:"Data range: {range} seconds.",rangeFromTo:"Data ranges from {rangeFrom} to {rangeTo}.",rangeCategories:"Data range: {numCategories} categories."},exporting:{chartMenuLabel:"Chart menu",menuButtonLabel:"View chart menu, {chartTitle}"},series:{summary:{default:"{series.name}, series {seriesNumber} of {chart.series.length} with {series.points.length} data {#plural(series.points.length, points, point)}.",defaultCombination:"{series.name}, series {seriesNumber} of {chart.series.length} with {series.points.length} data {#plural(series.points.length, points, point)}.",line:"{series.name}, line {seriesNumber} of {chart.series.length} with {series.points.length} data {#plural(series.points.length, points, point)}.",lineCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Line with {series.points.length} data {#plural(series.points.length, points, point)}.",spline:"{series.name}, line {seriesNumber} of {chart.series.length} with {series.points.length} data {#plural(series.points.length, points, point)}.",splineCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Line with {series.points.length} data {#plural(series.points.length, points, point)}.",column:"{series.name}, bar series {seriesNumber} of {chart.series.length} with {series.points.length} {#plural(series.points.length, bars, bar)}.",columnCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Bar series with {series.points.length} {#plural(series.points.length, bars, bar)}.",bar:"{series.name}, bar series {seriesNumber} of {chart.series.length} with {series.points.length} {#plural(series.points.length, bars, bar)}.",barCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Bar series with {series.points.length} {#plural(series.points.length, bars, bar)}.",pie:"{series.name}, pie {seriesNumber} of {chart.series.length} with {series.points.length} {#plural(series.points.length, slices, slice)}.",pieCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Pie with {series.points.length} {#plural(series.points.length, slices, slice)}.",scatter:"{series.name}, scatter plot {seriesNumber} of {chart.series.length} with {series.points.length} {#plural(series.points.length, points, point)}.",scatterCombination:"{series.name}, series {seriesNumber} of {chart.series.length}, scatter plot with {series.points.length} {#plural(series.points.length, points, point)}.",boxplot:"{series.name}, boxplot {seriesNumber} of {chart.series.length} with {series.points.length} {#plural(series.points.length, boxes, box)}.",boxplotCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Boxplot with {series.points.length} {#plural(series.points.length, boxes, box)}.",bubble:"{series.name}, bubble series {seriesNumber} of {chart.series.length} with {series.points.length} {#plural(series.points.length, bubbles, bubble)}.",bubbleCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Bubble series with {series.points.length} {#plural(series.points.length, bubbles, bubble)}.",map:"{series.name}, map {seriesNumber} of {chart.series.length} with {series.points.length} {#plural(series.points.length, areas, area)}.",mapCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Map with {series.points.length} {#plural(series.points.length, areas, area)}.",mapline:"{series.name}, line {seriesNumber} of {chart.series.length} with {series.points.length} data {#plural(series.points.length, points, point)}.",maplineCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Line with {series.points.length} data {#plural(series.points.length, points, point)}.",mapbubble:"{series.name}, bubble series {seriesNumber} of {chart.series.length} with {series.points.length} {#plural(series.points.length, bubbles, bubble)}.",mapbubbleCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Bubble series with {series.points.length} {#plural(series.points.length, bubbles, bubble)}."},description:"{description}",xAxisDescription:"X axis, {name}",yAxisDescription:"Y axis, {name}",nullPointValue:"No value",pointAnnotationsDescription:"{Annotation: #each(annotations). }"}}}}),et(_,"Accessibility/Options/DeprecatedOptions.js",[_["Core/Utilities.js"]],function(G){var B=G.error,X=G.pick;function U(Z,V,z){for(var I,E=Z,M=0;M<V.length-1;++M)E=E[I=V[M]]=X(E[I],{});E[V[V.length-1]]=z}function $(Z,V,z,I){function E(y,h){return h.reduce(function(f,m){return f[m]},y)}var M=E(Z.options,V),P=E(Z.options,z);Object.keys(I).forEach(function(y){var h,f=M[y];f!==void 0&&(U(P,I[y],f),B(32,!1,Z,((h={})[V.join(".")+"."+y]=z.join(".")+"."+I[y].join("."),h)))})}return function(Z){(function(V){var z=V.options.chart,I=V.options.accessibility||{};["description","typeDescription"].forEach(function(E){var M;z[E]&&(I[E]=z[E],B(32,!1,V,((M={})["chart.".concat(E)]="use accessibility.".concat(E),M)))})})(Z),function(V){V.axes.forEach(function(z){var I=z.options;I&&I.description&&(I.accessibility=I.accessibility||{},I.accessibility.description=I.description,B(32,!1,V,{"axis.description":"use axis.accessibility.description"}))})}(Z),Z.series&&function(V){var z={description:["accessibility","description"],exposeElementToA11y:["accessibility","exposeAsGroupOnly"],pointDescriptionFormatter:["accessibility","point","descriptionFormatter"],skipKeyboardNavigation:["accessibility","keyboardNavigation","enabled"],"accessibility.pointDescriptionFormatter":["accessibility","point","descriptionFormatter"]};V.series.forEach(function(I){Object.keys(z).forEach(function(E){var M,P=I.options[E];E==="accessibility.pointDescriptionFormatter"&&(P=I.options.accessibility&&I.options.accessibility.pointDescriptionFormatter),P!==void 0&&(U(I.options,z[E],E==="skipKeyboardNavigation"?!P:P),B(32,!1,V,((M={})["series.".concat(E)]="series."+z[E].join("."),M)))})})}(Z),function(V){$(V,["accessibility"],["accessibility"],{pointDateFormat:["point","dateFormat"],pointDateFormatter:["point","dateFormatter"],pointDescriptionFormatter:["point","descriptionFormatter"],pointDescriptionThreshold:["series","pointDescriptionEnabledThreshold"],pointNavigationThreshold:["keyboardNavigation","seriesNavigation","pointNavigationEnabledThreshold"],pointValueDecimals:["point","valueDecimals"],pointValuePrefix:["point","valuePrefix"],pointValueSuffix:["point","valueSuffix"],screenReaderSectionFormatter:["screenReaderSection","beforeChartFormatter"],describeSingleSeries:["series","describeSingleSeries"],seriesDescriptionFormatter:["series","descriptionFormatter"],onTableAnchorClick:["screenReaderSection","onViewDataTableClick"],axisRangeDateFormat:["screenReaderSection","axisRangeDateFormat"]})}(Z),function(V){$(V,["accessibility","keyboardNavigation"],["accessibility","keyboardNavigation","seriesNavigation"],{skipNullPoints:["skipNullPoints"],mode:["mode"]})}(Z),function(V){$(V,["lang","accessibility"],["lang","accessibility"],{legendItem:["legend","legendItem"],legendLabel:["legend","legendLabel"],mapZoomIn:["zoom","mapZoomIn"],mapZoomOut:["zoom","mapZoomOut"],resetZoomButton:["zoom","resetZoomButton"],screenReaderRegionLabel:["screenReaderSection","beforeRegionLabel"],rangeSelectorButton:["rangeSelector","buttonText"],rangeSelectorMaxInput:["rangeSelector","maxInputLabel"],rangeSelectorMinInput:["rangeSelector","minInputLabel"],svgContainerEnd:["screenReaderSection","endOfChartMarker"],viewAsDataTable:["table","viewAsDataTableButtonText"],tableSummary:["table","tableSummary"]})}(Z)}}),et(_,"Accessibility/Accessibility.js",[_["Core/Defaults.js"],_["Core/Globals.js"],_["Core/Utilities.js"],_["Accessibility/Utils/HTMLUtilities.js"],_["Accessibility/A11yI18n.js"],_["Accessibility/Components/ContainerComponent.js"],_["Accessibility/FocusBorder.js"],_["Accessibility/Components/InfoRegionsComponent.js"],_["Accessibility/KeyboardNavigation.js"],_["Accessibility/Components/LegendComponent.js"],_["Accessibility/Components/MenuComponent.js"],_["Accessibility/Components/SeriesComponent/NewDataAnnouncer.js"],_["Accessibility/ProxyProvider.js"],_["Accessibility/Components/RangeSelectorComponent.js"],_["Accessibility/Components/SeriesComponent/SeriesComponent.js"],_["Accessibility/Components/ZoomComponent.js"],_["Accessibility/HighContrastMode.js"],_["Accessibility/HighContrastTheme.js"],_["Accessibility/Options/A11yDefaults.js"],_["Accessibility/Options/LangDefaults.js"],_["Accessibility/Options/DeprecatedOptions.js"]],function(G,B,X,U,$,Z,V,z,I,E,M,P,y,h,f,m,u,v,S,w,x){var c=G.defaultOptions,g=B.doc,r=X.addEvent,a=X.extend,t=X.fireEvent,i=X.merge,o=U.removeElement,e=function(){function s(n){this.chart=void 0,this.components=void 0,this.keyboardNavigation=void 0,this.proxyProvider=void 0,this.init(n)}return s.prototype.init=function(n){if(this.chart=n,!g.addEventListener||!n.renderer.isSVG)return this.zombie=!0,this.components={},void n.renderTo.setAttribute("aria-hidden",!0);x(n),this.proxyProvider=new y(this.chart),this.initComponents(),this.keyboardNavigation=new I(n,this.components)},s.prototype.initComponents=function(){var n=this.chart,l=this.proxyProvider,b=n.options.accessibility;this.components={container:new Z,infoRegions:new z,legend:new E,chartMenu:new M,rangeSelector:new h,series:new f,zoom:new m},b.customComponents&&a(this.components,b.customComponents);var k=this.components;this.getComponentOrder().forEach(function(D){k[D].initBase(n,l),k[D].init()})},s.prototype.getComponentOrder=function(){if(!this.components)return[];if(!this.components.series)return Object.keys(this.components);var n=Object.keys(this.components).filter(function(l){return l!=="series"});return["series"].concat(n)},s.prototype.update=function(){var n=this.components,l=this.chart,b=l.options.accessibility;t(l,"beforeA11yUpdate"),l.types=this.getChartTypes();var k=b.keyboardNavigation.order;this.proxyProvider.updateGroupOrder(k),this.getComponentOrder().forEach(function(D){n[D].onChartUpdate(),t(l,"afterA11yComponentUpdate",{name:D,component:n[D]})}),this.keyboardNavigation.update(k),!l.highContrastModeActive&&u.isHighContrastModeActive()&&u.setHighContrastTheme(l),t(l,"afterA11yUpdate",{accessibility:this})},s.prototype.destroy=function(){var n=this.chart||{},l=this.components;Object.keys(l).forEach(function(b){l[b].destroy(),l[b].destroyBase()}),this.proxyProvider&&this.proxyProvider.destroy(),n.announcerContainer&&o(n.announcerContainer),this.keyboardNavigation&&this.keyboardNavigation.destroy(),n.renderTo&&n.renderTo.setAttribute("aria-hidden",!0),n.focusElement&&n.focusElement.removeFocusBorder()},s.prototype.getChartTypes=function(){var n={};return this.chart.series.forEach(function(l){n[l.type]=1}),Object.keys(n)},s}();return function(s){var n=[];function l(){this.accessibility&&this.accessibility.destroy()}function b(){this.a11yDirty&&this.renderTo&&(delete this.a11yDirty,this.updateA11yEnabled());var C=this.accessibility;C&&!C.zombie&&(C.proxyProvider.updateProxyElementPositions(),C.getComponentOrder().forEach(function(A){C.components[A].onChartRender()}))}function k(C){var A=C.options.accessibility;A&&(A.customComponents&&(this.options.accessibility.customComponents=A.customComponents,delete A.customComponents),i(!0,this.options.accessibility,A),this.accessibility&&this.accessibility.destroy&&(this.accessibility.destroy(),delete this.accessibility)),this.a11yDirty=!0}function D(){var C=this.accessibility,A=this.options.accessibility;A&&A.enabled?C&&!C.zombie?C.update():(this.accessibility=C=new s(this),C&&!C.zombie&&C.update()):C?(C.destroy&&C.destroy(),delete this.accessibility):this.renderTo.setAttribute("aria-hidden",!0)}function d(){this.series.chart.accessibility&&(this.series.chart.a11yDirty=!0)}s.i18nFormat=$.i18nFormat,s.compose=function(C,A,N,R,L,O){I.compose(C),P.compose(R),E.compose(C,A),M.compose(C),f.compose(C,N,R),$.compose(C),V.compose(C,L),O&&h.compose(C,O),n.indexOf(C)===-1&&(n.push(C),C.prototype.updateA11yEnabled=D,r(C,"destroy",l),r(C,"render",b),r(C,"update",k),["addSeries","init"].forEach(function(j){r(C,j,function(){this.a11yDirty=!0})}),["afterApplyDrilldown","drillupall"].forEach(function(j){r(C,j,function(){var Y=this.accessibility;Y&&!Y.zombie&&Y.update()})})),n.indexOf(N)===-1&&(n.push(N),r(N,"update",d)),n.indexOf(R)===-1&&(n.push(R),["update","updatedData","remove"].forEach(function(j){r(R,j,function(){this.chart.accessibility&&(this.chart.a11yDirty=!0)})}))}}(e||(e={})),i(!0,c,S,{accessibility:{highContrastTheme:v},lang:w}),e}),et(_,"masters/modules/accessibility.src.js",[_["Core/Globals.js"],_["Accessibility/Accessibility.js"],_["Accessibility/AccessibilityComponent.js"],_["Accessibility/Utils/ChartUtilities.js"],_["Accessibility/Utils/HTMLUtilities.js"],_["Accessibility/KeyboardNavigationHandler.js"],_["Accessibility/Components/SeriesComponent/SeriesDescriber.js"]],function(G,B,X,U,$,Z,V){var z=G;z.i18nFormat=B.i18nFormat,z.A11yChartUtilities=U,z.A11yHTMLUtilities=$,z.AccessibilityComponent=X,z.KeyboardNavigationHandler=Z,z.SeriesAccessibilityDescriber=V,B.compose(z.Chart,z.Legend,z.Point,z.Series,z.SVGElement,z.RangeSelector)})},it.exports?(pt.default=pt,it.exports=pt):(ht=[st(4783)],(ct=function(ft){return pt(ft),pt.Highcharts=ft,pt}.apply(rt,ht))===void 0||(it.exports=ct))},5118:(it,rt,st)=>{st.d(rt,{A:()=>E});var ht=st(6956),ct=st(4089),pt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ft=/^\w*$/,_=st(3269);function et(M,P){if(typeof M!="function"||P!=null&&typeof P!="function")throw new TypeError("Expected a function");var y=function(){var h=arguments,f=P?P.apply(this,h):h[0],m=y.cache;if(m.has(f))return m.get(f);var u=M.apply(this,h);return y.cache=m.set(f,u)||m,u};return y.cache=new(et.Cache||_.A),y}et.Cache=_.A;var G=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,B=/\\(\\)?/g;const X=(U=et(function(M){var P=[];return M.charCodeAt(0)===46&&P.push(""),M.replace(G,function(y,h,f,m){P.push(f?m.replace(B,"$1"):h||y)}),P},function(M){return $.size===500&&$.clear(),M}),$=U.cache,U);var U,$,Z=st(3516),V=Z.A?Z.A.prototype:void 0,z=V?V.toString:void 0;const I=function M(P){if(typeof P=="string")return P;if((0,ht.A)(P))return function(h,f){for(var m=-1,u=h==null?0:h.length,v=Array(u);++m<u;)v[m]=f(h[m],m,h);return v}(P,M)+"";if((0,ct.A)(P))return z?z.call(P):"";var y=P+"";return y=="0"&&1/P==-1/0?"-0":y},E=function(M,P){return(0,ht.A)(M)?M:function(y,h){if((0,ht.A)(y))return!1;var f=typeof y;return!(f!="number"&&f!="symbol"&&f!="boolean"&&y!=null&&!(0,ct.A)(y))||ft.test(y)||!pt.test(y)||h!=null&&y in Object(h)}(M,P)?[M]:X(function(y){return y==null?"":I(y)}(M))}},5134:function(it,rt,st){var ht,ct,pt;ct=typeof window!="undefined"?window:this,pt=function(ft){var _={};function et(G,B,X,U){G.hasOwnProperty(B)||(G[B]=U.apply(null,X),typeof CustomEvent=="function"&&ft.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:B,module:G[B]}})))}return et(_,"Core/Globals.js",[],function(){var G;return function(B){B.SVG_NS="http://www.w3.org/2000/svg",B.product="Highcharts",B.version="10.3.3",B.win=ft!==void 0?ft:{},B.doc=B.win.document,B.svg=B.doc&&B.doc.createElementNS&&!!B.doc.createElementNS(B.SVG_NS,"svg").createSVGRect,B.userAgent=B.win.navigator&&B.win.navigator.userAgent||"",B.isChrome=B.userAgent.indexOf("Chrome")!==-1,B.isFirefox=B.userAgent.indexOf("Firefox")!==-1,B.isMS=/(edge|msie|trident)/i.test(B.userAgent)&&!B.win.opera,B.isSafari=!B.isChrome&&B.userAgent.indexOf("Safari")!==-1,B.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(B.userAgent),B.isWebKit=B.userAgent.indexOf("AppleWebKit")!==-1,B.deg2rad=2*Math.PI/360,B.hasBidiBug=B.isFirefox&&parseInt(B.userAgent.split("Firefox/")[1],10)<4,B.hasTouch=!!B.win.TouchEvent,B.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],B.noop=function(){},B.supportsPassiveEvents=function(){var X=!1;if(!B.isMS){var U=Object.defineProperty({},"passive",{get:function(){X=!0}});B.win.addEventListener&&B.win.removeEventListener&&(B.win.addEventListener("testPassive",B.noop,U),B.win.removeEventListener("testPassive",B.noop,U))}return X}(),B.charts=[],B.dateFormats={},B.seriesTypes={},B.symbolSizes={},B.chartCount=0}(G||(G={})),G}),et(_,"Core/Utilities.js",[_["Core/Globals.js"]],function(G){var B=G.charts,X=G.doc,U=G.win;function $(e,s,n,l){var b=s?"Highcharts error":"Highcharts warning";e===32&&(e=b+": Deprecated member");var k=P(e),D=k?b+" #"+e+": www.highcharts.com/errors/"+e+"/":e.toString();if(l!==void 0){var d="";k&&(D+="?"),c(l,function(C,A){d+=`
|
|
3
3
|
- `.concat(A,": ").concat(C),k&&(D+=encodeURI(A)+"="+encodeURI(C))}),D+=d}r(G,"displayError",{chart:n,code:e,message:D,params:l},function(){if(s)throw new Error(D);U.console&&$.messages.indexOf(D)===-1&&console.warn(D)}),$.messages.push(D)}function Z(e,s){return parseInt(e,s||10)}function V(e){return typeof e=="string"}function z(e){var s=Object.prototype.toString.call(e);return s==="[object Array]"||s==="[object Array Iterator]"}function I(e,s){return!(!e||typeof e!="object"||s&&z(e))}function E(e){return I(e)&&typeof e.nodeType=="number"}function M(e){var s=e&&e.constructor;return!(!I(e,!0)||E(e)||!s||!s.name||s.name==="Object")}function P(e){return typeof e=="number"&&!isNaN(e)&&e<1/0&&e>-1/0}function y(e){return e!=null}function h(e,s,n){var l,b=V(s)&&!y(n),k=function(D,d){y(D)?e.setAttribute(d,D):b?(l=e.getAttribute(d))||d!=="class"||(l=e.getAttribute(d+"Name")):e.removeAttribute(d)};return V(s)?k(n,s):c(s,k),l}function f(e,s){var n;for(n in e||(e={}),s)e[n]=s[n];return e}function m(){for(var e=arguments,s=e.length,n=0;n<s;n++){var l=e[n];if(l!=null)return l}}function u(e,s){G.isMS&&!G.svg&&s&&y(s.opacity)&&(s.filter="alpha(opacity=".concat(100*s.opacity,")")),f(e.style,s)}function v(e){return Math.pow(10,Math.floor(Math.log(e)/Math.LN10))}function S(e,s){return e>1e14?e:parseFloat(e.toPrecision(s||14))}(function(e){e.messages=[]})($||($={})),Math.easeInOutSine=function(e){return-.5*(Math.cos(Math.PI*e)-1)};var w,x=Array.prototype.find?function(e,s){return e.find(s)}:function(e,s){var n,l=e.length;for(n=0;n<l;n++)if(s(e[n],n))return e[n]};function c(e,s,n){for(var l in e)Object.hasOwnProperty.call(e,l)&&s.call(n||e[l],e[l],l,e)}function g(e,s,n){function l(C,A){var N=e.removeEventListener||G.removeEventListenerPolyfill;N&&N.call(e,C,A,!1)}function b(C){var A,N;e.nodeName&&(s?(A={})[s]=!0:A=C,c(A,function(R,L){if(C[L])for(N=C[L].length;N--;)l(L,C[L][N].fn)}))}var k=typeof e=="function"&&e.prototype||e;if(Object.hasOwnProperty.call(k,"hcEvents")){var D=k.hcEvents;if(s){var d=D[s]||[];n?(D[s]=d.filter(function(C){return n!==C.fn}),l(s,n)):(b(D),D[s]=[])}else b(D),delete k.hcEvents}}function r(e,s,n,l){var b;if(n=n||{},X.createEvent&&(e.dispatchEvent||e.fireEvent&&e!==G))(b=X.createEvent("Events")).initEvent(s,!0,!0),n=f(b,n),e.dispatchEvent?e.dispatchEvent(n):e.fireEvent(s,n);else if(e.hcEvents){n.target||f(n,{preventDefault:function(){n.defaultPrevented=!0},target:e,type:s});for(var k=[],D=e,d=!1;D.hcEvents;)Object.hasOwnProperty.call(D,"hcEvents")&&D.hcEvents[s]&&(k.length&&(d=!0),k.unshift.apply(k,D.hcEvents[s])),D=Object.getPrototypeOf(D);d&&k.sort(function(C,A){return C.order-A.order}),k.forEach(function(C){C.fn.call(e,n)===!1&&n.preventDefault()})}l&&!n.defaultPrevented&&l.call(e,n)}c({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},function(e,s){G[s]=function(n){var l;return $(32,!1,void 0,((l={})["Highcharts.".concat(s)]="use Array.".concat(e),l)),Array.prototype[e].apply(n,[].slice.call(arguments,1))}});var a,t,i=(a=Math.random().toString(36).substring(2,9)+"-",t=0,function(){return"highcharts-"+(w?"":a)+t++});U.jQuery;var o={addEvent:function(e,s,n,l){l===void 0&&(l={});var b=typeof e=="function"&&e.prototype||e;Object.hasOwnProperty.call(b,"hcEvents")||(b.hcEvents={});var k=b.hcEvents;G.Point&&e instanceof G.Point&&e.series&&e.series.chart&&(e.series.chart.runTrackerClick=!0);var D=e.addEventListener||G.addEventListenerPolyfill;D&&D.call(e,s,n,!!G.supportsPassiveEvents&&{passive:l.passive===void 0?s.indexOf("touch")!==-1:l.passive,capture:!1}),k[s]||(k[s]=[]);var d={fn:n,order:typeof l.order=="number"?l.order:1/0};return k[s].push(d),k[s].sort(function(C,A){return C.order-A.order}),function(){g(e,s,n)}},arrayMax:function(e){for(var s=e.length,n=e[0];s--;)e[s]>n&&(n=e[s]);return n},arrayMin:function(e){for(var s=e.length,n=e[0];s--;)e[s]<n&&(n=e[s]);return n},attr:h,clamp:function(e,s,n){return e>s?e<n?e:n:s},cleanRecursively:function e(s,n){var l={};return c(s,function(b,k){var D;I(s[k],!0)&&!s.nodeType&&n[k]?(D=e(s[k],n[k]),Object.keys(D).length&&(l[k]=D)):(I(s[k])||s[k]!==n[k]||k in s&&!(k in n))&&(l[k]=s[k])}),l},clearTimeout:function(e){y(e)&&clearTimeout(e)},correctFloat:S,createElement:function(e,s,n,l,b){var k=X.createElement(e);return s&&f(k,s),b&&u(k,{padding:"0",border:"none",margin:"0"}),n&&u(k,n),l&&l.appendChild(k),k},css:u,defined:y,destroyObjectProperties:function(e,s){c(e,function(n,l){n&&n!==s&&n.destroy&&n.destroy(),delete e[l]})},discardElement:function(e){e&&e.parentElement&&e.parentElement.removeChild(e)},erase:function(e,s){for(var n=e.length;n--;)if(e[n]===s){e.splice(n,1);break}},error:$,extend:f,extendClass:function(e,s){var n=function(){};return f(n.prototype=new e,s),n},find:x,fireEvent:r,getMagnitude:v,getNestedProperty:function(e,s){for(var n=e.split(".");n.length&&y(s);){var l=n.shift();if(l===void 0||l==="__proto__")return;var b=s[l];if(!y(b)||typeof b=="function"||typeof b.nodeType=="number"||b===U)return;s=b}return s},getStyle:function e(s,n,l){var b,k=G.getStyle||e;if(n==="width"){var D=Math.min(s.offsetWidth,s.scrollWidth),d=s.getBoundingClientRect&&s.getBoundingClientRect().width;return d<D&&d>=D-1&&(D=Math.floor(d)),Math.max(0,D-(k(s,"padding-left",!0)||0)-(k(s,"padding-right",!0)||0))}if(n==="height")return Math.max(0,Math.min(s.offsetHeight,s.scrollHeight)-(k(s,"padding-top",!0)||0)-(k(s,"padding-bottom",!0)||0));U.getComputedStyle||$(27,!0);var C=U.getComputedStyle(s,void 0);return C&&(b=C.getPropertyValue(n),m(l,n!=="opacity")&&(b=Z(b))),b},inArray:function(e,s,n){return $(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"}),s.indexOf(e,n)},isArray:z,isClass:M,isDOMElement:E,isFunction:function(e){return typeof e=="function"},isNumber:P,isObject:I,isString:V,keys:function(e){return $(32,!1,void 0,{"Highcharts.keys":"use Object.keys"}),Object.keys(e)},merge:function(){var e,s=arguments,n={},l=function(k,D){return typeof k!="object"&&(k={}),c(D,function(d,C){C!=="__proto__"&&C!=="constructor"&&(!I(d,!0)||M(d)||E(d)?k[C]=D[C]:k[C]=l(k[C]||{},d))}),k};s[0]===!0&&(n=s[1],s=Array.prototype.slice.call(s,2));var b=s.length;for(e=0;e<b;e++)n=l(n,s[e]);return n},normalizeTickInterval:function(e,s,n,l,b){var k,D=e,d=e/(n=m(n,v(e)));for(s||(s=b?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],l===!1&&(n===1?s=s.filter(function(C){return C%1==0}):n<=.1&&(s=[1/n]))),k=0;k<s.length&&(D=s[k],!(b&&D*n>=e||!b&&d<=(s[k]+(s[k+1]||s[k]))/2));k++);return S(D*n,-Math.round(Math.log(.001)/Math.LN10))},objectEach:c,offset:function(e){var s=X.documentElement,n=e.parentElement||e.parentNode?e.getBoundingClientRect():{top:0,left:0,width:0,height:0};return{top:n.top+(U.pageYOffset||s.scrollTop)-(s.clientTop||0),left:n.left+(U.pageXOffset||s.scrollLeft)-(s.clientLeft||0),width:n.width,height:n.height}},pad:function(e,s,n){return new Array((s||2)+1-String(e).replace("-","").length).join(n||"0")+e},pick:m,pInt:Z,relativeLength:function(e,s,n){return/%$/.test(e)?s*parseFloat(e)/100+(n||0):parseFloat(e)},removeEvent:g,splat:function(e){return z(e)?e:[e]},stableSort:function(e,s){var n,l,b=e.length;for(l=0;l<b;l++)e[l].safeI=l;for(e.sort(function(k,D){return(n=s(k,D))===0?k.safeI-D.safeI:n}),l=0;l<b;l++)delete e[l].safeI},syncTimeout:function(e,s,n){return s>0?setTimeout(e,s,n):(e.call(0,n),-1)},timeUnits:{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},uniqueKey:i,useSerialIds:function(e){return w=m(e,w)},wrap:function(e,s,n){var l=e[s];e[s]=function(){var b=arguments,k=this;return n.apply(this,[function(){return l.apply(k,arguments.length?arguments:b)}].concat([].slice.call(arguments)))}}};return o}),et(_,"Core/Chart/ChartDefaults.js",[],function(){return{alignThresholds:!1,panning:{enabled:!1,type:"x"},styledMode:!1,borderRadius:0,colorCount:10,allowMutatingData:!0,defaultSeriesType:"line",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}},zoomBySingleTouch:!1,zooming:{singleTouch:!1,resetButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}}},width:null,height:null,borderColor:"#335cad",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"}}),et(_,"Core/Color/Color.js",[_["Core/Globals.js"],_["Core/Utilities.js"]],function(G,B){var X=B.isNumber,U=B.merge,$=B.pInt;return function(){function Z(V){this.rgba=[NaN,NaN,NaN,NaN],this.input=V;var z=G.Color;return z&&z!==Z?new z(V):this instanceof Z?void this.init(V):new Z(V)}return Z.parse=function(V){return V?new Z(V):Z.None},Z.prototype.init=function(V){var z,I,E,M;if(typeof V=="object"&&V.stops!==void 0)this.stops=V.stops.map(function(h){return new Z(h[1])});else if(typeof V=="string"){if(this.input=V=Z.names[V.toLowerCase()]||V,V.charAt(0)==="#"){var P=V.length,y=parseInt(V.substr(1),16);P===7?I=[(16711680&y)>>16,(65280&y)>>8,255&y,1]:P===4&&(I=[(3840&y)>>4|(3840&y)>>8,(240&y)>>4|240&y,(15&y)<<4|15&y,1])}if(!I)for(E=Z.parsers.length;E--&&!I;)(z=(M=Z.parsers[E]).regex.exec(V))&&(I=M.parse(z))}I&&(this.rgba=I)},Z.prototype.get=function(V){var z=this.input,I=this.rgba;if(typeof z=="object"&&this.stops!==void 0){var E=U(z);return E.stops=[].slice.call(E.stops),this.stops.forEach(function(M,P){E.stops[P]=[E.stops[P][0],M.get(V)]}),E}return I&&X(I[0])?V==="rgb"||!V&&I[3]===1?"rgb("+I[0]+","+I[1]+","+I[2]+")":V==="a"?"".concat(I[3]):"rgba("+I.join(",")+")":z},Z.prototype.brighten=function(V){var z=this.rgba;if(this.stops)this.stops.forEach(function(E){E.brighten(V)});else if(X(V)&&V!==0)for(var I=0;I<3;I++)z[I]+=$(255*V),z[I]<0&&(z[I]=0),z[I]>255&&(z[I]=255);return this},Z.prototype.setOpacity=function(V){return this.rgba[3]=V,this},Z.prototype.tweenTo=function(V,z){var I=this.rgba,E=V.rgba;if(!X(I[0])||!X(E[0]))return V.input||"none";var M=E[3]!==1||I[3]!==1;return(M?"rgba(":"rgb(")+Math.round(E[0]+(I[0]-E[0])*(1-z))+","+Math.round(E[1]+(I[1]-E[1])*(1-z))+","+Math.round(E[2]+(I[2]-E[2])*(1-z))+(M?","+(E[3]+(I[3]-E[3])*(1-z)):"")+")"},Z.names={white:"#ffffff",black:"#000000"},Z.parsers=[{regex:/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/,parse:function(V){return[$(V[1]),$(V[2]),$(V[3]),parseFloat(V[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(V){return[$(V[1]),$(V[2]),$(V[3]),1]}}],Z.None=new Z(""),Z}()}),et(_,"Core/Color/Palettes.js",[],function(){return{colors:["#7cb5ec","#434348","#90ed7d","#f7a35c","#8085e9","#f15c80","#e4d354","#2b908f","#f45b5b","#91e8e1"]}}),et(_,"Core/Time.js",[_["Core/Globals.js"],_["Core/Utilities.js"]],function(G,B){var X=G.win,U=B.defined,$=B.error,Z=B.extend,V=B.isObject,z=B.merge,I=B.objectEach,E=B.pad,M=B.pick,P=B.splat,y=B.timeUnits,h=G.isSafari&&X.Intl&&X.Intl.DateTimeFormat.prototype.formatRange,f=G.isSafari&&X.Intl&&!X.Intl.DateTimeFormat.prototype.formatRange,m=function(){function u(v){this.options={},this.useUTC=!1,this.variableTimezone=!1,this.Date=X.Date,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.update(v)}return u.prototype.get=function(v,S){if(this.variableTimezone||this.timezoneOffset){var w=S.getTime(),x=w-this.getTimezoneOffset(S);S.setTime(x);var c=S["getUTC"+v]();return S.setTime(w),c}return this.useUTC?S["getUTC"+v]():S["get"+v]()},u.prototype.set=function(v,S,w){if(this.variableTimezone||this.timezoneOffset){if(v==="Milliseconds"||v==="Seconds"||v==="Minutes"&&this.getTimezoneOffset(S)%36e5==0)return S["setUTC"+v](w);var x=this.getTimezoneOffset(S),c=S.getTime()-x;S.setTime(c),S["setUTC"+v](w);var g=this.getTimezoneOffset(S);return c=S.getTime()+g,S.setTime(c)}return this.useUTC||h&&v==="FullYear"?S["setUTC"+v](w):S["set"+v](w)},u.prototype.update=function(v){v===void 0&&(v={});var S=M(v.useUTC,!0);this.options=v=z(!0,this.options,v),this.Date=v.Date||X.Date||Date,this.useUTC=S,this.timezoneOffset=S&&v.timezoneOffset||void 0,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.variableTimezone=S&&!(!v.getTimezoneOffset&&!v.timezone)},u.prototype.makeTime=function(v,S,w,x,c,g){var r,a,t;return this.useUTC?(r=this.Date.UTC.apply(0,arguments),r+=a=this.getTimezoneOffset(r),a!==(t=this.getTimezoneOffset(r))?r+=t-a:a-36e5!==this.getTimezoneOffset(r-36e5)||f||(r-=36e5)):r=new this.Date(v,S,M(w,1),M(x,0),M(c,0),M(g,0)).getTime(),r},u.prototype.timezoneOffsetFunction=function(){var v=this,S=this.options,w=S.getTimezoneOffset,x=S.moment||X.moment;if(!this.useUTC)return function(c){return 6e4*new Date(c.toString()).getTimezoneOffset()};if(S.timezone){if(x)return function(c){return 6e4*-x.tz(c,S.timezone).utcOffset()};$(25)}return this.useUTC&&w?function(c){return 6e4*w(c.valueOf())}:function(){return 6e4*(v.timezoneOffset||0)}},u.prototype.dateFormat=function(v,S,w){if(!U(S)||isNaN(S))return G.defaultOptions.lang&&G.defaultOptions.lang.invalidDate||"";v=M(v,"%Y-%m-%d %H:%M:%S");var x=this,c=new this.Date(S),g=this.get("Hours",c),r=this.get("Day",c),a=this.get("Date",c),t=this.get("Month",c),i=this.get("FullYear",c),o=G.defaultOptions.lang,e=o&&o.weekdays,s=o&&o.shortWeekdays,n=Z({a:s?s[r]:e[r].substr(0,3),A:e[r],d:E(a),e:E(a,2," "),w:r,b:o.shortMonths[t],B:o.months[t],m:E(t+1),o:t+1,y:i.toString().substr(2,2),Y:i,H:E(g),k:g,I:E(g%12||12),l:g%12||12,M:E(this.get("Minutes",c)),p:g<12?"AM":"PM",P:g<12?"am":"pm",S:E(c.getSeconds()),L:E(Math.floor(S%1e3),3)},G.dateFormats);return I(n,function(l,b){for(;v.indexOf("%"+b)!==-1;)v=v.replace("%"+b,typeof l=="function"?l.call(x,S):l)}),w?v.substr(0,1).toUpperCase()+v.substr(1):v},u.prototype.resolveDTLFormat=function(v){return V(v,!0)?v:{main:(v=P(v))[0],from:v[1],to:v[2]}},u.prototype.getTimeTicks=function(v,S,w,x){var c,g,r,a,t=this,i=t.Date,o=[],e={},s=new i(S),n=v.unitRange,l=v.count||1;if(x=M(x,1),U(S)){t.set("Milliseconds",s,n>=y.second?0:l*Math.floor(t.get("Milliseconds",s)/l)),n>=y.second&&t.set("Seconds",s,n>=y.minute?0:l*Math.floor(t.get("Seconds",s)/l)),n>=y.minute&&t.set("Minutes",s,n>=y.hour?0:l*Math.floor(t.get("Minutes",s)/l)),n>=y.hour&&t.set("Hours",s,n>=y.day?0:l*Math.floor(t.get("Hours",s)/l)),n>=y.day&&t.set("Date",s,n>=y.month?1:Math.max(1,l*Math.floor(t.get("Date",s)/l))),n>=y.month&&(t.set("Month",s,n>=y.year?0:l*Math.floor(t.get("Month",s)/l)),g=t.get("FullYear",s)),n>=y.year&&(g-=g%l,t.set("FullYear",s,g)),n===y.week&&(a=t.get("Day",s),t.set("Date",s,t.get("Date",s)-a+x+(a<x?-7:0))),g=t.get("FullYear",s);var b=t.get("Month",s),k=t.get("Date",s),D=t.get("Hours",s);S=s.getTime(),!t.variableTimezone&&t.useUTC||!U(w)||(r=w-S>4*y.month||t.getTimezoneOffset(S)!==t.getTimezoneOffset(w));var d=s.getTime();for(c=1;d<w;)o.push(d),n===y.year?d=t.makeTime(g+c*l,0):n===y.month?d=t.makeTime(g,b+c*l):!r||n!==y.day&&n!==y.week?r&&n===y.hour&&l>1?d=t.makeTime(g,b,k,D+c*l):d+=n*l:d=t.makeTime(g,b,k+c*l*(n===y.day?1:7)),c++;o.push(d),n<=y.hour&&o.length<1e4&&o.forEach(function(C){C%18e5==0&&t.dateFormat("%H%M%S%L",C)==="000000000"&&(e[C]="day")})}return o.info=Z(v,{higherRanks:e,totalRange:n*l}),o},u.prototype.getDateFormat=function(v,S,w,x){var c=this.dateFormat("%m-%d %H:%M:%S.%L",S),g="01-01 00:00:00.000",r={millisecond:15,second:12,minute:9,hour:6,day:3},a="millisecond",t=a;for(a in y){if(v===y.week&&+this.dateFormat("%w",S)===w&&c.substr(6)===g.substr(6)){a="week";break}if(y[a]>v){a=t;break}if(r[a]&&c.substr(r[a])!==g.substr(r[a]))break;a!=="week"&&(t=a)}return this.resolveDTLFormat(x[a]).main},u}();return m}),et(_,"Core/Defaults.js",[_["Core/Chart/ChartDefaults.js"],_["Core/Color/Color.js"],_["Core/Globals.js"],_["Core/Color/Palettes.js"],_["Core/Time.js"],_["Core/Utilities.js"]],function(G,B,X,U,$,Z){var V=B.parse,z=X.isTouchDevice,I=X.svg,E=Z.merge,M={colors:U.colors,symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],decimalPoint:".",numericSymbols:["k","M","G","T","P","E"],resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:" "},global:{},time:{Date:void 0,getTimezoneOffset:void 0,timezone:void 0,timezoneOffset:0,useUTC:!0},chart:G,title:{text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{text:"",align:"center",widthAdjust:-44},caption:{margin:15,text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},labels:{style:{position:"absolute",color:"#333333"}},legend:{enabled:!0,align:"center",alignColumns:!0,className:"highcharts-no-tooltip",layout:"horizontal",labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{activeColor:"#003399",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"12px",fontWeight:"bold",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#cccccc"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:I,borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %b %e, %H:%M:%S.%L",second:"%A, %b %e, %H:%M:%S",minute:"%A, %b %e, %H:%M",hour:"%A, %b %e, %H:%M",day:"%A, %b %e, %Y",week:"Week from %A, %b %e, %Y",month:"%B %Y",year:"%Y"},footerFormat:"",headerShape:"callout",hideDelay:500,padding:8,shape:"callout",shared:!1,snap:z?25:10,headerFormat:'<span style="font-size: 10px">{point.key}</span><br/>',pointFormat:'<span style="color:{point.color}">●</span> {series.name}: <b>{point.y}</b><br/>',backgroundColor:V("#f7f7f7").setOpacity(.85).get(),borderWidth:1,shadow:!0,stickOnContact:!1,style:{color:"#333333",cursor:"default",fontSize:"12px",whiteSpace:"nowrap"},useHTML:!1},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"9px"},text:"Highcharts.com"}};M.chart.styledMode=!1;var P=new $(E(M.global,M.time));return{defaultOptions:M,defaultTime:P,getOptions:function(){return M},setOptions:function(y){return E(!0,M,y),(y.time||y.global)&&(X.time?X.time.update(E(M.global,M.time,y.global,y.time)):X.time=P),M}}}),et(_,"Core/Animation/Fx.js",[_["Core/Color/Color.js"],_["Core/Globals.js"],_["Core/Utilities.js"]],function(G,B,X){var U=G.parse,$=B.win,Z=X.isNumber,V=X.objectEach,z=function(){function I(E,M,P){this.pos=NaN,this.options=M,this.elem=E,this.prop=P}return I.prototype.dSetter=function(){var E=this.paths,M=E&&E[0],P=E&&E[1],y=this.now||0,h=[];if(y!==1&&M&&P)if(M.length===P.length&&y<1)for(var f=0;f<P.length;f++){for(var m=M[f],u=P[f],v=[],S=0;S<u.length;S++){var w=m[S],x=u[S];Z(w)&&Z(x)&&(u[0]!=="A"||S!==4&&S!==5)?v[S]=w+y*(x-w):v[S]=x}h.push(v)}else h=P;else h=this.toD||[];this.elem.attr("d",h,void 0,!0)},I.prototype.update=function(){var E=this.elem,M=this.prop,P=this.now,y=this.options.step;this[M+"Setter"]?this[M+"Setter"]():E.attr?E.element&&E.attr(M,P,null,!0):E.style[M]=P+this.unit,y&&y.call(E,P,this)},I.prototype.run=function(E,M,P){var y=this,h=y.options,f=function(v){return!f.stopped&&y.step(v)},m=$.requestAnimationFrame||function(v){setTimeout(v,13)},u=function(){for(var v=0;v<I.timers.length;v++)I.timers[v]()||I.timers.splice(v--,1);I.timers.length&&m(u)};E!==M||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=E,this.end=M,this.unit=P,this.now=this.start,this.pos=0,f.elem=this.elem,f.prop=this.prop,f()&&I.timers.push(f)===1&&m(u)):(delete h.curAnim[this.prop],h.complete&&Object.keys(h.curAnim).length===0&&h.complete.call(this.elem))},I.prototype.step=function(E){var M,P,y=+new Date,h=this.options,f=this.elem,m=h.complete,u=h.duration,v=h.curAnim;return f.attr&&!f.element?M=!1:E||y>=u+this.startTime?(this.now=this.end,this.pos=1,this.update(),v[this.prop]=!0,P=!0,V(v,function(S){S!==!0&&(P=!1)}),P&&m&&m.call(f),M=!1):(this.pos=h.easing((y-this.startTime)/u),this.now=this.start+(this.end-this.start)*this.pos,this.update(),M=!0),M},I.prototype.initPath=function(E,M,P){var y,h,f,m,u=E.startX,v=E.endX,S=P.slice(),w=E.isArea,x=w?2:1,c=M&&M.slice();if(!c)return[S,S];function g(a,t){for(;a.length<h;){var i=a[0],o=t[h-a.length];if(o&&i[0]==="M"&&(o[0]==="C"?a[0]=["C",i[1],i[2],i[1],i[2],i[1],i[2]]:a[0]=["L",i[1],i[2]]),a.unshift(i),w){var e=a.pop();a.push(a[a.length-1],e)}}}function r(a,t){for(;a.length<h;){var i=a[Math.floor(a.length/x)-1].slice();if(i[0]==="C"&&(i[1]=i[5],i[2]=i[6]),w){var o=a[Math.floor(a.length/x)].slice();a.splice(a.length/2,0,i,o)}else a.push(i)}}if(u&&v&&v.length){for(f=0;f<u.length;f++){if(u[f]===v[0]){y=f;break}if(u[0]===v[v.length-u.length+f]){y=f,m=!0;break}if(u[u.length-1]===v[v.length-u.length+f]){y=u.length-f;break}}y===void 0&&(c=[])}return c.length&&Z(y)&&(h=S.length+y*x,m?(g(c,S),r(S)):(g(S,c),r(c))),[c,S]},I.prototype.fillSetter=function(){I.prototype.strokeSetter.apply(this,arguments)},I.prototype.strokeSetter=function(){this.elem.attr(this.prop,U(this.start).tweenTo(U(this.end),this.pos),void 0,!0)},I.timers=[],I}();return z}),et(_,"Core/Animation/AnimationUtilities.js",[_["Core/Animation/Fx.js"],_["Core/Utilities.js"]],function(G,B){var X=B.defined,U=B.getStyle,$=B.isArray,Z=B.isNumber,V=B.isObject,z=B.merge,I=B.objectEach,E=B.pick;function M(h){return V(h)?z({duration:500,defer:0},h):{duration:h?500:0,defer:0}}function P(h,f){for(var m=G.timers.length;m--;)G.timers[m].elem!==h||f&&f!==G.timers[m].prop||(G.timers[m].stopped=!0)}var y={animate:function(h,f,m){var u,v,S,w,x="";V(m)||(m={duration:(w=arguments)[2],easing:w[3],complete:w[4]}),Z(m.duration)||(m.duration=400),m.easing=typeof m.easing=="function"?m.easing:Math[m.easing]||Math.easeInOutSine,m.curAnim=z(f),I(f,function(c,g){P(h,g),S=new G(h,m,g),v=void 0,g==="d"&&$(f.d)?(S.paths=S.initPath(h,h.pathArray,f.d),S.toD=f.d,u=0,v=1):h.attr?u=h.attr(g):(u=parseFloat(U(h,g))||0,g!=="opacity"&&(x="px")),v||(v=c),typeof v=="string"&&v.match("px")&&(v=v.replace(/px/g,"")),S.run(u,v,x)})},animObject:M,getDeferredAnimation:function(h,f,m){var u=M(f),v=m?[m]:h.series,S=0,w=0;return v.forEach(function(x){var c=M(x.options.animation);S=f&&X(f.defer)?u.defer:Math.max(S,c.duration+c.defer),w=Math.min(u.duration,c.duration)}),h.renderer.forExport&&(S=0),{defer:Math.max(0,S-w),duration:Math.min(S,w)}},setAnimation:function(h,f){f.renderer.globalAnimation=E(h,f.options.chart.animation,!0)},stop:P};return y}),et(_,"Core/Renderer/HTML/AST.js",[_["Core/Globals.js"],_["Core/Utilities.js"]],function(G,B){var X=G.SVG_NS,U=G.win,$=B.attr,Z=B.createElement,V=B.css,z=B.error,I=B.isFunction,E=B.isString,M=B.objectEach,P=B.splat,y=U.trustedTypes,h=y&&I(y.createPolicy)&&y.createPolicy("highcharts",{createHTML:function(u){return u}}),f=h?h.createHTML(""):"",m=function(){try{return!!new DOMParser().parseFromString(f,"text/html")}catch(u){return!1}}();return function(){function u(v){this.nodes=typeof v=="string"?this.parseMarkup(v):v}return u.filterUserAttributes=function(v){return M(v,function(S,w){var x=!0;u.allowedAttributes.indexOf(w)===-1&&(x=!1),["background","dynsrc","href","lowsrc","src"].indexOf(w)!==-1&&(x=E(S)&&u.allowedReferences.some(function(c){return S.indexOf(c)===0})),x||(z(33,!1,void 0,{"Invalid attribute in config":"".concat(w)}),delete v[w]),E(S)&&v[w]&&(v[w]=S.replace(/</g,"<"))}),v},u.parseStyle=function(v){return v.split(";").reduce(function(S,w){var x=w.split(":").map(function(g){return g.trim()}),c=x.shift();return c&&x.length&&(S[c.replace(/-([a-z])/g,function(g){return g[1].toUpperCase()})]=x.join(":")),S},{})},u.setElementHTML=function(v,S){v.innerHTML=u.emptyHTML,S&&new u(S).addToDOM(v)},u.prototype.addToDOM=function(v){return function S(w,x){var c;return P(w).forEach(function(g){var r,a=g.tagName,t=g.textContent?G.doc.createTextNode(g.textContent):void 0,i=u.bypassHTMLFiltering;if(a)if(a==="#text")r=t;else if(u.allowedTags.indexOf(a)!==-1||i){var o=a==="svg"?X:x.namespaceURI||X,e=G.doc.createElementNS(o,a),s=g.attributes||{};M(g,function(n,l){l!=="tagName"&&l!=="attributes"&&l!=="children"&&l!=="style"&&l!=="textContent"&&(s[l]=n)}),$(e,i?s:u.filterUserAttributes(s)),g.style&&V(e,g.style),t&&e.appendChild(t),S(g.children||[],e),r=e}else z(33,!1,void 0,{"Invalid tagName in config":a});r&&x.appendChild(r),c=r}),c}(this.nodes,v)},u.prototype.parseMarkup=function(v){var S,w=[];if(v=v.trim().replace(/ style=(["'])/g," data-style=$1"),m)S=new DOMParser().parseFromString(h?h.createHTML(v):v,"text/html");else{var x=Z("div");x.innerHTML=v,S={body:x}}var c=function(g,r){var a=g.nodeName.toLowerCase(),t={tagName:a};a==="#text"&&(t.textContent=g.textContent||"");var i=g.attributes;if(i){var o={};[].forEach.call(i,function(s){s.name==="data-style"?t.style=u.parseStyle(s.value):o[s.name]=s.value}),t.attributes=o}if(g.childNodes.length){var e=[];[].forEach.call(g.childNodes,function(s){c(s,e)}),e.length&&(t.children=e)}r.push(t)};return[].forEach.call(S.body.childNodes,function(g){return c(g,w)}),w},u.allowedAttributes=["aria-controls","aria-describedby","aria-expanded","aria-haspopup","aria-hidden","aria-label","aria-labelledby","aria-live","aria-pressed","aria-readonly","aria-roledescription","aria-selected","class","clip-path","color","colspan","cx","cy","d","dx","dy","disabled","fill","height","href","id","in","markerHeight","markerWidth","offset","opacity","orient","padding","paddingLeft","paddingRight","patternUnits","r","refX","refY","role","scope","slope","src","startOffset","stdDeviation","stroke","stroke-linecap","stroke-width","style","tableValues","result","rowspan","summary","target","tabindex","text-align","text-anchor","textAnchor","textLength","title","type","valign","width","x","x1","x2","xlink:href","y","y1","y2","zIndex"],u.allowedReferences=["https://","http://","mailto:","/","../","./","#"],u.allowedTags=["a","abbr","b","br","button","caption","circle","clipPath","code","dd","defs","div","dl","dt","em","feComponentTransfer","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feOffset","feMerge","feMergeNode","filter","h1","h2","h3","h4","h5","h6","hr","i","img","li","linearGradient","marker","ol","p","path","pattern","pre","rect","small","span","stop","strong","style","sub","sup","svg","table","text","textPath","thead","title","tbody","tspan","td","th","tr","u","ul","#text"],u.emptyHTML=f,u.bypassHTMLFiltering=!1,u}()}),et(_,"Core/FormatUtilities.js",[_["Core/Defaults.js"],_["Core/Utilities.js"]],function(G,B){var X=G.defaultOptions,U=G.defaultTime,$=B.getNestedProperty,Z=B.isNumber,V=B.pick,z=B.pInt;function I(E,M,P,y){var h,f;E=+E||0,M=+M;var m=X.lang,u=(E.toString().split(".")[1]||"").split("e")[0].length,v=E.toString().split("e"),S=M;M===-1?M=Math.min(u,20):Z(M)?M&&v[1]&&v[1]<0&&((f=M+ +v[1])>=0?(v[0]=(+v[0]).toExponential(f).split("e")[0],M=f):(v[0]=v[0].split(".")[0]||0,E=M<20?(v[0]*Math.pow(10,v[1])).toFixed(M):0,v[1]=0)):M=2;var w=(Math.abs(v[1]?v[0]:E)+Math.pow(10,-Math.max(M,u)-1)).toFixed(M),x=String(z(w)),c=x.length>3?x.length%3:0;return P=V(P,m.decimalPoint),y=V(y,m.thousandsSep),h=E<0?"-":"",h+=c?x.substr(0,c)+y:"",+v[1]<0&&!S?h="0":h+=x.substr(c).replace(/(\d{3})(?=\d)/g,"$1"+y),M&&(h+=P+w.slice(-M)),v[1]&&+h!=0&&(h+="e"+v[1]),h}return{dateFormat:function(E,M,P){return U.dateFormat(E,M,P)},format:function(E,M,P){for(var y,h,f,m,u="{",v=!1,S=/f$/,w=/\.([0-9])/,x=X.lang,c=P&&P.time||U,g=P&&P.numberFormatter||I,r=[];E&&(m=E.indexOf(u))!==-1;){if(y=E.slice(0,m),v){if(h=y.split(":"),f=$(h.shift()||"",M),h.length&&typeof f=="number")if(y=h.join(":"),S.test(y)){var a=parseInt((y.match(w)||["","-1"])[1],10);f!==null&&(f=g(f,a,x.decimalPoint,y.indexOf(",")>-1?x.thousandsSep:""))}else f=c.dateFormat(y,f);r.push(f)}else r.push(y);E=E.slice(m+1),u=(v=!v)?"}":"{"}return r.push(E),r.join("")},numberFormat:I}}),et(_,"Core/Renderer/RendererUtilities.js",[_["Core/Utilities.js"]],function(G){var B,X=G.clamp,U=G.pick,$=G.stableSort;return function(Z){Z.distribute=function V(z,I,E){var M,P,y,h=z,f=h.reducedLen||I,m=function(w,x){return w.target-x.target},u=!0,v=[],S=0;for(M=z.length;M--;)S+=z[M].size;if(S>f){for($(z,function(w,x){return(x.rank||0)-(w.rank||0)}),M=0,S=0;S<=f;)S+=z[M].size,M++;v=z.splice(M-1,z.length)}for($(z,m),z=z.map(function(w){return{size:w.size,targets:[w.target],align:U(w.align,.5)}});u;){for(M=z.length;M--;)P=z[M],y=(Math.min.apply(0,P.targets)+Math.max.apply(0,P.targets))/2,P.pos=X(y-P.size*P.align,0,I-P.size);for(M=z.length,u=!1;M--;)M>0&&z[M-1].pos+z[M-1].size>z[M].pos&&(z[M-1].size+=z[M].size,z[M-1].targets=z[M-1].targets.concat(z[M].targets),z[M-1].align=.5,z[M-1].pos+z[M-1].size>I&&(z[M-1].pos=I-z[M-1].size),z.splice(M,1),u=!0)}return h.push.apply(h,v),M=0,z.some(function(w){var x=0;return(w.targets||[]).some(function(){return h[M].pos=w.pos+x,E!==void 0&&Math.abs(h[M].pos-h[M].target)>E?(h.slice(0,M+1).forEach(function(c){return delete c.pos}),h.reducedLen=(h.reducedLen||I)-.1*I,h.reducedLen>.1*I&&V(h,I,E),!0):(x+=h[M].size,M++,!1)})}),$(h,m),h}}(B||(B={})),B}),et(_,"Core/Renderer/SVG/SVGElement.js",[_["Core/Animation/AnimationUtilities.js"],_["Core/Color/Color.js"],_["Core/Globals.js"],_["Core/Utilities.js"]],function(G,B,X,U){var $=G.animate,Z=G.animObject,V=G.stop,z=X.deg2rad,I=X.doc,E=X.svg,M=X.SVG_NS,P=X.win,y=U.addEvent,h=U.attr,f=U.createElement,m=U.css,u=U.defined,v=U.erase,S=U.extend,w=U.fireEvent,x=U.isArray,c=U.isFunction,g=U.isString,r=U.merge,a=U.objectEach,t=U.pick,i=U.pInt,o=U.syncTimeout,e=U.uniqueKey,s=function(){function n(){this.element=void 0,this.onEvents={},this.opacity=1,this.renderer=void 0,this.SVG_NS=M,this.symbolCustomAttribs=["x","y","width","height","r","start","end","innerR","anchorX","anchorY","rounded"]}return n.prototype._defaultGetter=function(l){var b=t(this[l+"Value"],this[l],this.element?this.element.getAttribute(l):null,0);return/^[\-0-9\.]+$/.test(b)&&(b=parseFloat(b)),b},n.prototype._defaultSetter=function(l,b,k){k.setAttribute(b,l)},n.prototype.add=function(l){var b,k=this.renderer,D=this.element;return l&&(this.parentGroup=l),this.textStr!==void 0&&this.element.nodeName==="text"&&k.buildText(this),this.added=!0,(!l||l.handleZ||this.zIndex)&&(b=this.zIndexSetter()),b||(l?l.element:k.box).appendChild(D),this.onAdd&&this.onAdd(),this},n.prototype.addClass=function(l,b){var k=b?"":this.attr("class")||"";return(l=(l||"").split(/ /g).reduce(function(D,d){return k.indexOf(d)===-1&&D.push(d),D},k?[k]:[]).join(" "))!==k&&this.attr("class",l),this},n.prototype.afterSetters=function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)},n.prototype.align=function(l,b,k){var D,d,C,A,N,R={},L=this.renderer,O=L.alignedObjects;l?(this.alignOptions=l,this.alignByTranslate=b,k&&!g(k)||(this.alignTo=C=k||"renderer",v(O,this),O.push(this),k=void 0)):(l=this.alignOptions,b=this.alignByTranslate,C=this.alignTo),k=t(k,L[C],C==="scrollablePlotBox"?L.plotBox:void 0,L);var j=l.align,Y=l.verticalAlign;return D=(k.x||0)+(l.x||0),d=(k.y||0)+(l.y||0),j==="right"?A=1:j==="center"&&(A=2),A&&(D+=(k.width-(l.width||0))/A),R[b?"translateX":"x"]=Math.round(D),Y==="bottom"?N=1:Y==="middle"&&(N=2),N&&(d+=(k.height-(l.height||0))/N),R[b?"translateY":"y"]=Math.round(d),this[this.placed?"animate":"attr"](R),this.placed=!0,this.alignAttr=R,this},n.prototype.alignSetter=function(l){var b={left:"start",center:"middle",right:"end"};b[l]&&(this.alignValue=l,this.element.setAttribute("text-anchor",b[l]))},n.prototype.animate=function(l,b,k){var D=this,d=Z(t(b,this.renderer.globalAnimation,!0)),C=d.defer;return t(I.hidden,I.msHidden,I.webkitHidden,!1)&&(d.duration=0),d.duration!==0?(k&&(d.complete=k),o(function(){D.element&&$(D,l,d)},C)):(this.attr(l,void 0,k||d.complete),a(l,function(A,N){d.step&&d.step.call(this,A,{prop:N,pos:1,elem:this})},this)),this},n.prototype.applyTextOutline=function(l){var b=this.element;l.indexOf("contrast")!==-1&&(l=l.replace(/contrast/g,this.renderer.getContrast(b.style.fill)));var k=l.split(" "),D=k[k.length-1],d=k[0];if(d&&d!=="none"&&X.svg){this.fakeTS=!0,d=d.replace(/(^[\d\.]+)(.*?)$/g,function(L,O,j){return 2*Number(O)+j}),this.removeTextOutline();var C=I.createElementNS(M,"tspan");h(C,{class:"highcharts-text-outline",fill:D,stroke:D,"stroke-width":d,"stroke-linejoin":"round"});var A=b.querySelector("textPath")||b;[].forEach.call(A.childNodes,function(L){var O=L.cloneNode(!0);O.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach(function(j){return O.removeAttribute(j)}),C.appendChild(O)});var N=0;[].forEach.call(A.querySelectorAll("text tspan"),function(L){N+=Number(L.getAttribute("dy"))});var R=I.createElementNS(M,"tspan");R.textContent="",h(R,{x:Number(b.getAttribute("x")),dy:-N}),C.appendChild(R),A.insertBefore(C,A.firstChild)}},n.prototype.attr=function(l,b,k,D){var d,C,A,N,R=this.element,L=this.symbolCustomAttribs,O=this;return typeof l=="string"&&b!==void 0&&(d=l,(l={})[d]=b),typeof l=="string"?O=(this[l+"Getter"]||this._defaultGetter).call(this,l,R):(a(l,function(j,Y){A=!1,D||V(this,Y),this.symbolName&&L.indexOf(Y)!==-1&&(C||(this.symbolAttr(l),C=!0),A=!0),!this.rotation||Y!=="x"&&Y!=="y"||(this.doTransform=!0),A||((N=this[Y+"Setter"]||this._defaultSetter).call(this,j,Y,R),!this.styledMode&&this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(Y)&&this.updateShadows(Y,j,N))},this),this.afterSetters()),k&&k.call(this),O},n.prototype.clip=function(l){return this.attr("clip-path",l?"url("+this.renderer.url+"#"+l.id+")":"none")},n.prototype.crisp=function(l,b){var k=this;b=b||l.strokeWidth||0;var D=Math.round(b)%2/2;return l.x=Math.floor(l.x||k.x||0)+D,l.y=Math.floor(l.y||k.y||0)+D,l.width=Math.floor((l.width||k.width||0)-2*D),l.height=Math.floor((l.height||k.height||0)-2*D),u(l.strokeWidth)&&(l.strokeWidth=b),l},n.prototype.complexColor=function(l,b,k){var D,d,C,A,N,R,L,O,j,Y,H,W=this.renderer,q=[];w(this.renderer,"complexColor",{args:arguments},function(){if(l.radialGradient?d="radialGradient":l.linearGradient&&(d="linearGradient"),d){if(C=l[d],N=W.gradients,R=l.stops,j=k.radialReference,x(C)&&(l[d]=C={x1:C[0],y1:C[1],x2:C[2],y2:C[3],gradientUnits:"userSpaceOnUse"}),d==="radialGradient"&&j&&!u(C.gradientUnits)&&(A=C,C=r(C,W.getRadialAttr(j,A),{gradientUnits:"userSpaceOnUse"})),a(C,function(J,nt){nt!=="id"&&q.push(nt,J)}),a(R,function(J){q.push(J)}),q=q.join(","),N[q])Y=N[q].attr("id");else{C.id=Y=e();var Q=N[q]=W.createElement(d).attr(C).add(W.defs);Q.radAttr=A,Q.stops=[],R.forEach(function(J){J[1].indexOf("rgba")===0?(D=B.parse(J[1]),L=D.get("rgb"),O=D.get("a")):(L=J[1],O=1);var nt=W.createElement("stop").attr({offset:J[0],"stop-color":L,"stop-opacity":O}).add(Q);Q.stops.push(nt)})}H="url("+W.url+"#"+Y+")",k.setAttribute(b,H),k.gradient=q,l.toString=function(){return H}}})},n.prototype.css=function(l){var b,k=this.styles,D={},d=this.element,C=!k;if(l.color&&(l.fill=l.color),k&&a(l,function(N,R){k&&k[R]!==N&&(D[R]=N,C=!0)}),C){k&&(l=S(k,D)),l.width===null||l.width==="auto"?delete this.textWidth:d.nodeName.toLowerCase()==="text"&&l.width&&(b=this.textWidth=i(l.width)),this.styles=l,b&&!E&&this.renderer.forExport&&delete l.width;var A=r(l);d.namespaceURI===this.SVG_NS&&["textOutline","textOverflow","width"].forEach(function(N){return A&&delete A[N]}),m(d,A),this.added&&(this.element.nodeName==="text"&&this.renderer.buildText(this),l.textOutline&&this.applyTextOutline(l.textOutline))}return this},n.prototype.dashstyleSetter=function(l){var b,k=this["stroke-width"];if(k==="inherit"&&(k=1),l=l&&l.toLowerCase()){var D=l.replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(",");for(b=D.length;b--;)D[b]=""+i(D[b])*t(k,NaN);l=D.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",l)}},n.prototype.destroy=function(){var l,b,k=this,D=k.element||{},d=k.renderer,C=D.ownerSVGElement,A=d.isSVG&&D.nodeName==="SPAN"&&k.parentGroup||void 0;if(D.onclick=D.onmouseout=D.onmouseover=D.onmousemove=D.point=null,V(k),k.clipPath&&C){var N=k.clipPath;[].forEach.call(C.querySelectorAll("[clip-path],[CLIP-PATH]"),function(R){R.getAttribute("clip-path").indexOf(N.element.id)>-1&&R.removeAttribute("clip-path")}),k.clipPath=N.destroy()}if(k.stops){for(b=0;b<k.stops.length;b++)k.stops[b].destroy();k.stops.length=0,k.stops=void 0}for(k.safeRemoveChild(D),d.styledMode||k.destroyShadows();A&&A.div&&A.div.childNodes.length===0;)l=A.parentGroup,k.safeRemoveChild(A.div),delete A.div,A=l;k.alignTo&&v(d.alignedObjects,k),a(k,function(R,L){k[L]&&k[L].parentGroup===k&&k[L].destroy&&k[L].destroy(),delete k[L]})},n.prototype.destroyShadows=function(){(this.shadows||[]).forEach(function(l){this.safeRemoveChild(l)},this),this.shadows=void 0},n.prototype.dSetter=function(l,b,k){x(l)&&(typeof l[0]=="string"&&(l=this.renderer.pathToSegments(l)),this.pathArray=l,l=l.reduce(function(D,d,C){return d&&d.join?(C?D+" ":"")+d.join(" "):(d||"").toString()},"")),/(NaN| {2}|^$)/.test(l)&&(l="M 0 0"),this[b]!==l&&(k.setAttribute(b,l),this[b]=l)},n.prototype.fadeOut=function(l){var b=this;b.animate({opacity:0},{duration:t(l,150),complete:function(){b.hide()}})},n.prototype.fillSetter=function(l,b,k){typeof l=="string"?k.setAttribute(b,l):l&&this.complexColor(l,b,k)},n.prototype.getBBox=function(l,b){var k,D,d,C,A,N=this,R=N.alignValue,L=N.element,O=N.renderer,j=N.styles,Y=N.textStr,H=O.cache,W=O.cacheKeys,q=L.namespaceURI===N.SVG_NS,Q=t(b,N.rotation,0),J=O.styledMode?L&&n.prototype.getStyle.call(L,"font-size"):j&&j.fontSize;if(u(Y)&&((A=Y.toString()).indexOf("<")===-1&&(A=A.replace(/[0-9]/g,"0")),A+=["",Q,J,N.textWidth,R,j&&j.textOverflow,j&&j.fontWeight].join(",")),A&&!l&&(k=H[A]),!k){if(q||O.forExport){try{C=this.fakeTS&&function(Tt){var Lt=L.querySelector(".highcharts-text-outline");Lt&&m(Lt,{display:Tt})},c(C)&&C("none"),k=L.getBBox?S({},L.getBBox()):{width:L.offsetWidth,height:L.offsetHeight,x:0,y:0},c(C)&&C("")}catch(Tt){}(!k||k.width<0)&&(k={x:0,y:0,width:0,height:0})}else k=N.htmlGetBBox();if(O.isSVG&&(D=k.width,d=k.height,q&&(k.height=d={"11px,17":14,"13px,20":16}[""+(J||"")+",".concat(Math.round(d))]||d),Q)){var nt=Number(L.getAttribute("y")||0)-k.y,lt={right:1,center:.5}[R||0]||0,gt=Q*z,mt=(Q-90)*z,bt=D*Math.cos(gt),yt=D*Math.sin(gt),dt=Math.cos(mt),ot=Math.sin(mt),at=k.x+lt*(D-bt)+nt*dt,ut=at+bt,vt=ut-d*dt,Ct=vt-bt,xt=k.y+nt-lt*yt+nt*ot,St=xt+yt,Mt=St-d*ot,wt=Mt-yt;k.x=Math.min(at,ut,vt,Ct),k.y=Math.min(xt,St,Mt,wt),k.width=Math.max(at,ut,vt,Ct)-k.x,k.height=Math.max(xt,St,Mt,wt)-k.y}if(A&&(Y===""||k.height>0)){for(;W.length>250;)delete H[W.shift()];H[A]||W.push(A),H[A]=k}}return k},n.prototype.getStyle=function(l){return P.getComputedStyle(this.element||this,"").getPropertyValue(l)},n.prototype.hasClass=function(l){return(""+this.attr("class")).split(" ").indexOf(l)!==-1},n.prototype.hide=function(){return this.attr({visibility:"hidden"})},n.prototype.htmlGetBBox=function(){return{height:0,width:0,x:0,y:0}},n.prototype.init=function(l,b){this.element=b==="span"?f(b):I.createElementNS(this.SVG_NS,b),this.renderer=l,w(this,"afterInit")},n.prototype.on=function(l,b){var k=this.onEvents;return k[l]&&k[l](),k[l]=y(this.element,l,b),this},n.prototype.opacitySetter=function(l,b,k){var D=Number(Number(l).toFixed(3));this.opacity=D,k.setAttribute(b,D)},n.prototype.removeClass=function(l){return this.attr("class",(""+this.attr("class")).replace(g(l)?new RegExp("(^| )".concat(l,"( |$)")):l," ").replace(/ +/g," ").trim())},n.prototype.removeTextOutline=function(){var l=this.element.querySelector("tspan.highcharts-text-outline");l&&this.safeRemoveChild(l)},n.prototype.safeRemoveChild=function(l){var b=l.parentNode;b&&b.removeChild(l)},n.prototype.setRadialReference=function(l){var b=this.element.gradient&&this.renderer.gradients[this.element.gradient];return this.element.radialReference=l,b&&b.radAttr&&b.animate(this.renderer.getRadialAttr(l,b.radAttr)),this},n.prototype.setTextPath=function(l,b){var k=this;b=r(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},b);var D=this.renderer.url,d=this.text||this,C=d.textPath,A=b.attributes,N=b.enabled;if(l=l||C&&C.path,C&&C.undo(),l&&N){var R=y(d,"afterModifyTree",function(L){if(l&&N){var O=l.attr("id");O||l.attr("id",O=e());var j={x:0,y:0};u(A.dx)&&(j.dx=A.dx,delete A.dx),u(A.dy)&&(j.dy=A.dy,delete A.dy),d.attr(j),k.attr({transform:""}),k.box&&(k.box=k.box.destroy());var Y=L.nodes.slice(0);L.nodes.length=0,L.nodes[0]={tagName:"textPath",attributes:S(A,{"text-anchor":A.textAnchor,href:""+D+"#".concat(O)}),children:Y}}});d.textPath={path:l,undo:R}}else d.attr({dx:0,dy:0}),delete d.textPath;return this.added&&(d.textCache="",this.renderer.buildText(d)),this},n.prototype.shadow=function(l,b,k){var D,d,C,A,N,R,L=[],O=this,j=O.element,Y=O.oldShadowOptions,H=O.parentGroup,W=H&&H.rotation===90,q={color:"#000000",offsetX:W?-1:1,offsetY:W?-1:1,opacity:.15,width:3},Q=!1;if(l===!0?R=q:typeof l=="object"&&(R=S(q,l)),R&&(R&&Y&&a(R,function(J,nt){J!==Y[nt]&&(Q=!0)}),Q&&this.destroyShadows(),this.oldShadowOptions=R),R){if(!this.shadows){for(A=R.opacity/R.width,N=W?"translate(".concat(R.offsetY,", ").concat(R.offsetX,")"):"translate(".concat(R.offsetX,", ").concat(R.offsetY,")"),D=1;D<=R.width;D++)d=j.cloneNode(!1),C=2*R.width+1-2*D,h(d,{stroke:l.color||"#000000","stroke-opacity":A*D,"stroke-width":C,transform:N,fill:"none"}),d.setAttribute("class",(d.getAttribute("class")||"")+" highcharts-shadow"),k&&(h(d,"height",Math.max(h(d,"height")-C,0)),d.cutHeight=C),b?b.element.appendChild(d):j.parentNode&&j.parentNode.insertBefore(d,j),L.push(d);this.shadows=L}}else this.destroyShadows();return this},n.prototype.show=function(l){return l===void 0&&(l=!0),this.attr({visibility:l?"inherit":"visible"})},n.prototype["stroke-widthSetter"]=function(l,b,k){this[b]=l,k.setAttribute(b,l)},n.prototype.strokeWidth=function(){if(!this.renderer.styledMode)return this["stroke-width"]||0;var l,b=this.getStyle("stroke-width"),k=0;return b.indexOf("px")===b.length-2?k=i(b):b!==""&&(l=I.createElementNS(M,"rect"),h(l,{width:b,"stroke-width":0}),this.element.parentNode.appendChild(l),k=l.getBBox().width,l.parentNode.removeChild(l)),k},n.prototype.symbolAttr=function(l){var b=this;["x","y","r","start","end","width","height","innerR","anchorX","anchorY","clockwise"].forEach(function(k){b[k]=t(l[k],b[k])}),b.attr({d:b.renderer.symbols[b.symbolName](b.x,b.y,b.width,b.height,b)})},n.prototype.textSetter=function(l){l!==this.textStr&&(delete this.textPxLength,this.textStr=l,this.added&&this.renderer.buildText(this))},n.prototype.titleSetter=function(l){var b=this.element,k=b.getElementsByTagName("title")[0]||I.createElementNS(this.SVG_NS,"title");b.insertBefore?b.insertBefore(k,b.firstChild):b.appendChild(k),k.textContent=String(t(l,"")).replace(/<[^>]*>/g,"").replace(/</g,"<").replace(/>/g,">")},n.prototype.toFront=function(){var l=this.element;return l.parentNode.appendChild(l),this},n.prototype.translate=function(l,b){return this.attr({translateX:l,translateY:b})},n.prototype.updateShadows=function(l,b,k){var D=this.shadows;if(D)for(var d=D.length;d--;)k.call(D[d],l==="height"?Math.max(b-(D[d].cutHeight||0),0):l==="d"?this.d:b,l,D[d])},n.prototype.updateTransform=function(){var l=this,b=l.element,k=l.matrix,D=l.rotation,d=D===void 0?0:D,C=l.scaleX,A=l.scaleY,N=l.translateX,R=N===void 0?0:N,L=l.translateY,O=["translate("+R+","+(L===void 0?0:L)+")"];u(k)&&O.push("matrix("+k.join(",")+")"),d&&O.push("rotate("+d+" "+t(this.rotationOriginX,b.getAttribute("x"),0)+" "+t(this.rotationOriginY,b.getAttribute("y")||0)+")"),(u(C)||u(A))&&O.push("scale("+t(C,1)+" "+t(A,1)+")"),O.length&&!(this.text||this).textPath&&b.setAttribute("transform",O.join(" "))},n.prototype.visibilitySetter=function(l,b,k){l==="inherit"?k.removeAttribute(b):this[b]!==l&&k.setAttribute(b,l),this[b]=l},n.prototype.xGetter=function(l){return this.element.nodeName==="circle"&&(l==="x"?l="cx":l==="y"&&(l="cy")),this._defaultGetter(l)},n.prototype.zIndexSetter=function(l,b){var k,D,d,C,A,N=this.renderer,R=this.parentGroup,L=(R||N).element||N.box,O=this.element,j=L===N.box,Y=!1,H=this.added;if(u(l)?(O.setAttribute("data-z-index",l),l=+l,this[b]===l&&(H=!1)):u(this[b])&&O.removeAttribute("data-z-index"),this[b]=l,H){for((l=this.zIndex)&&R&&(R.handleZ=!0),A=(k=L.childNodes).length-1;A>=0&&!Y;A--)d=(D=k[A]).getAttribute("data-z-index"),C=!u(d),D!==O&&(l<0&&C&&!j&&!A?(L.insertBefore(O,k[A]),Y=!0):(i(d)<=l||C&&(!u(l)||l>=0))&&(L.insertBefore(O,k[A+1]||null),Y=!0));Y||(L.insertBefore(O,k[j?3:0]||null),Y=!0)}return Y},n}();return s.prototype.strokeSetter=s.prototype.fillSetter,s.prototype.yGetter=s.prototype.xGetter,s.prototype.matrixSetter=s.prototype.rotationOriginXSetter=s.prototype.rotationOriginYSetter=s.prototype.rotationSetter=s.prototype.scaleXSetter=s.prototype.scaleYSetter=s.prototype.translateXSetter=s.prototype.translateYSetter=s.prototype.verticalAlignSetter=function(n,l){this[l]=n,this.doTransform=!0},s}),et(_,"Core/Renderer/RendererRegistry.js",[_["Core/Globals.js"]],function(G){var B;return function(X){var U;X.rendererTypes={},X.getRendererType=function($){return $===void 0&&($=U),X.rendererTypes[$]||X.rendererTypes[U]},X.registerRendererType=function($,Z,V){X.rendererTypes[$]=Z,U&&!V||(U=$,G.Renderer=Z)}}(B||(B={})),B}),et(_,"Core/Renderer/SVG/SVGLabel.js",[_["Core/Renderer/SVG/SVGElement.js"],_["Core/Utilities.js"]],function(G,B){var X,U=this&&this.__extends||(X=function(M,P){return X=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,h){y.__proto__=h}||function(y,h){for(var f in h)h.hasOwnProperty(f)&&(y[f]=h[f])},X(M,P)},function(M,P){function y(){this.constructor=M}X(M,P),M.prototype=P===null?Object.create(P):(y.prototype=P.prototype,new y)}),$=B.defined,Z=B.extend,V=B.isNumber,z=B.merge,I=B.pick,E=B.removeEvent;return function(M){function P(y,h,f,m,u,v,S,w,x,c){var g,r=M.call(this)||this;return r.paddingLeftSetter=r.paddingSetter,r.paddingRightSetter=r.paddingSetter,r.init(y,"g"),r.textStr=h,r.x=f,r.y=m,r.anchorX=v,r.anchorY=S,r.baseline=x,r.className=c,r.addClass(c==="button"?"highcharts-no-tooltip":"highcharts-label"),c&&r.addClass("highcharts-"+c),r.text=y.text(void 0,0,0,w).attr({zIndex:1}),typeof u=="string"&&((g=/^url\((.*?)\)$/.test(u))||r.renderer.symbols[u])&&(r.symbolKey=u),r.bBox=P.emptyBBox,r.padding=3,r.baselineOffset=0,r.needsBox=y.styledMode||g,r.deferredAttr={},r.alignFactor=0,r}return U(P,M),P.prototype.alignSetter=function(y){var h={left:0,center:.5,right:1}[y];h!==this.alignFactor&&(this.alignFactor=h,this.bBox&&V(this.xSetting)&&this.attr({x:this.xSetting}))},P.prototype.anchorXSetter=function(y,h){this.anchorX=y,this.boxAttr(h,Math.round(y)-this.getCrispAdjust()-this.xSetting)},P.prototype.anchorYSetter=function(y,h){this.anchorY=y,this.boxAttr(h,y-this.ySetting)},P.prototype.boxAttr=function(y,h){this.box?this.box.attr(y,h):this.deferredAttr[y]=h},P.prototype.css=function(y){if(y){var h={};y=z(y),P.textProps.forEach(function(f){y[f]!==void 0&&(h[f]=y[f],delete y[f])}),this.text.css(h),"fontSize"in h||"fontWeight"in h?this.updateTextPadding():("width"in h||"textOverflow"in h)&&this.updateBoxSize()}return G.prototype.css.call(this,y)},P.prototype.destroy=function(){E(this.element,"mouseenter"),E(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),G.prototype.destroy.call(this)},P.prototype.fillSetter=function(y,h){y&&(this.needsBox=!0),this.fill=y,this.boxAttr(h,y)},P.prototype.getBBox=function(){this.textStr&&this.bBox.width===0&&this.bBox.height===0&&this.updateBoxSize();var y=this.padding,h=I(this.paddingLeft,y);return{width:this.width,height:this.height,x:this.bBox.x-h,y:this.bBox.y-y}},P.prototype.getCrispAdjust=function(){return this.renderer.styledMode&&this.box?this.box.strokeWidth()%2/2:(this["stroke-width"]?parseInt(this["stroke-width"],10):0)%2/2},P.prototype.heightSetter=function(y){this.heightSetting=y},P.prototype.onAdd=function(){this.text.add(this),this.attr({text:I(this.textStr,""),x:this.x||0,y:this.y||0}),this.box&&$(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})},P.prototype.paddingSetter=function(y,h){V(y)?y!==this[h]&&(this[h]=y,this.updateTextPadding()):this[h]=void 0},P.prototype.rSetter=function(y,h){this.boxAttr(h,y)},P.prototype.shadow=function(y){return y&&!this.renderer.styledMode&&(this.updateBoxSize(),this.box&&this.box.shadow(y)),this},P.prototype.strokeSetter=function(y,h){this.stroke=y,this.boxAttr(h,y)},P.prototype["stroke-widthSetter"]=function(y,h){y&&(this.needsBox=!0),this["stroke-width"]=y,this.boxAttr(h,y)},P.prototype["text-alignSetter"]=function(y){this.textAlign=y},P.prototype.textSetter=function(y){y!==void 0&&this.text.attr({text:y}),this.updateTextPadding()},P.prototype.updateBoxSize=function(){var y,h=this.text,f=h.element.style,m={},u=this.padding,v=this.bBox=V(this.widthSetting)&&V(this.heightSetting)&&!this.textAlign||!$(h.textStr)?P.emptyBBox:h.getBBox();this.width=this.getPaddedWidth(),this.height=(this.heightSetting||v.height||0)+2*u;var S=this.renderer.fontMetrics(f&&f.fontSize,h);if(this.baselineOffset=u+Math.min((this.text.firstLineMetrics||S).b,v.height||1/0),this.heightSetting&&(this.baselineOffset+=(this.heightSetting-S.h)/2),this.needsBox&&!h.textPath){if(!this.box){var w=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect();w.addClass((this.className==="button"?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),w.add(this)}y=this.getCrispAdjust(),m.x=y,m.y=(this.baseline?-this.baselineOffset:0)+y,m.width=Math.round(this.width),m.height=Math.round(this.height),this.box.attr(Z(m,this.deferredAttr)),this.deferredAttr={}}},P.prototype.updateTextPadding=function(){var y=this.text;if(!y.textPath){this.updateBoxSize();var h=this.baseline?0:this.baselineOffset,f=I(this.paddingLeft,this.padding);$(this.widthSetting)&&this.bBox&&(this.textAlign==="center"||this.textAlign==="right")&&(f+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width)),f===y.x&&h===y.y||(y.attr("x",f),y.hasBoxWidthChanged&&(this.bBox=y.getBBox(!0)),h!==void 0&&y.attr("y",h)),y.x=f,y.y=h}},P.prototype.widthSetter=function(y){this.widthSetting=V(y)?y:void 0},P.prototype.getPaddedWidth=function(){var y=this.padding,h=I(this.paddingLeft,y),f=I(this.paddingRight,y);return(this.widthSetting||this.bBox.width||0)+h+f},P.prototype.xSetter=function(y){this.x=y,this.alignFactor&&(y-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0),this.xSetting=Math.round(y),this.attr("translateX",this.xSetting)},P.prototype.ySetter=function(y){this.ySetting=this.y=Math.round(y),this.attr("translateY",this.ySetting)},P.emptyBBox={width:0,height:0,x:0,y:0},P.textProps=["color","direction","fontFamily","fontSize","fontStyle","fontWeight","lineHeight","textAlign","textDecoration","textOutline","textOverflow","width"],P}(G)}),et(_,"Core/Renderer/SVG/Symbols.js",[_["Core/Utilities.js"]],function(G){var B=G.defined,X=G.isNumber,U=G.pick;function $(z,I,E,M,P){var y=[];if(P){var h=P.start||0,f=U(P.r,E),m=U(P.r,M||E),u=.001,v=Math.abs((P.end||0)-h-2*Math.PI)<u,S=(P.end||0)-u,w=P.innerR,x=U(P.open,v),c=Math.cos(h),g=Math.sin(h),r=Math.cos(S),a=Math.sin(S),t=U(P.longArc,S-h-Math.PI<u?0:1);y.push(["M",z+f*c,I+m*g],["A",f,m,0,t,U(P.clockwise,1),z+f*r,I+m*a]),B(w)&&y.push(x?["M",z+w*r,I+w*a]:["L",z+w*r,I+w*a],["A",w,w,0,t,B(P.clockwise)?1-P.clockwise:0,z+w*c,I+w*g]),x||y.push(["Z"])}return y}function Z(z,I,E,M,P){return P&&P.r?V(z,I,E,M,P):[["M",z,I],["L",z+E,I],["L",z+E,I+M],["L",z,I+M],["Z"]]}function V(z,I,E,M,P){var y=P&&P.r||0;return[["M",z+y,I],["L",z+E-y,I],["C",z+E,I,z+E,I,z+E,I+y],["L",z+E,I+M-y],["C",z+E,I+M,z+E,I+M,z+E-y,I+M],["L",z+y,I+M],["C",z,I+M,z,I+M,z,I+M-y],["L",z,I+y],["C",z,I,z,I,z+y,I]]}return{arc:$,callout:function(z,I,E,M,P){var y=Math.min(P&&P.r||0,E,M),h=y+6,f=P&&P.anchorX,m=P&&P.anchorY||0,u=V(z,I,E,M,{r:y});return X(f)&&(z+f>=E?m>I+h&&m<I+M-h?u.splice(3,1,["L",z+E,m-6],["L",z+E+6,m],["L",z+E,m+6],["L",z+E,I+M-y]):u.splice(3,1,["L",z+E,M/2],["L",f,m],["L",z+E,M/2],["L",z+E,I+M-y]):z+f<=0?m>I+h&&m<I+M-h?u.splice(7,1,["L",z,m+6],["L",z-6,m],["L",z,m-6],["L",z,I+y]):u.splice(7,1,["L",z,M/2],["L",f,m],["L",z,M/2],["L",z,I+y]):m&&m>M&&f>z+h&&f<z+E-h?u.splice(5,1,["L",f+6,I+M],["L",f,I+M+6],["L",f-6,I+M],["L",z+y,I+M]):m&&m<0&&f>z+h&&f<z+E-h&&u.splice(1,1,["L",f-6,I],["L",f,I-6],["L",f+6,I],["L",E-y,I])),u},circle:function(z,I,E,M){return $(z+E/2,I+M/2,E/2,M/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(z,I,E,M){return[["M",z+E/2,I],["L",z+E,I+M/2],["L",z+E/2,I+M],["L",z,I+M/2],["Z"]]},rect:Z,roundedRect:V,square:Z,triangle:function(z,I,E,M){return[["M",z+E/2,I],["L",z+E,I+M],["L",z,I+M],["Z"]]},"triangle-down":function(z,I,E,M){return[["M",z,I],["L",z+E,I],["L",z+E/2,I+M],["Z"]]}}}),et(_,"Core/Renderer/SVG/TextBuilder.js",[_["Core/Renderer/HTML/AST.js"],_["Core/Globals.js"],_["Core/Utilities.js"]],function(G,B,X){var U=B.doc,$=B.SVG_NS,Z=B.win,V=X.attr,z=X.extend,I=X.fireEvent,E=X.isString,M=X.objectEach,P=X.pick;return function(){function y(h){var f=h.styles;this.renderer=h.renderer,this.svgElement=h,this.width=h.textWidth,this.textLineHeight=f&&f.lineHeight,this.textOutline=f&&f.textOutline,this.ellipsis=!!(f&&f.textOverflow==="ellipsis"),this.noWrap=!!(f&&f.whiteSpace==="nowrap"),this.fontSize=f&&f.fontSize}return y.prototype.buildSVG=function(){var h=this.svgElement,f=h.element,m=h.renderer,u=P(h.textStr,"").toString(),v=u.indexOf("<")!==-1,S=f.childNodes,w=this.width&&!h.added&&m.box,x=[u,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,this.fontSize,this.width].join(",");if(x!==h.textCache){h.textCache=x,delete h.actualWidth;for(var c=S.length;c--;)f.removeChild(S[c]);if(v||this.ellipsis||this.width||h.textPath||u.indexOf(" ")!==-1&&(!this.noWrap||/<br.*?>/g.test(u))){if(u!==""){w&&w.appendChild(f);var g=new G(u);this.modifyTree(g.nodes),g.addToDOM(f),this.modifyDOM(),this.ellipsis&&(f.textContent||"").indexOf("…")!==-1&&h.attr("title",this.unescapeEntities(h.textStr||"",["<",">"])),w&&w.removeChild(f)}}else f.appendChild(U.createTextNode(this.unescapeEntities(u)));E(this.textOutline)&&h.applyTextOutline&&h.applyTextOutline(this.textOutline)}},y.prototype.modifyDOM=function(){var h,f=this,m=this.svgElement,u=V(m.element,"x");for(m.firstLineMetrics=void 0;(h=m.element.firstChild)&&/^[\s\u200B]*$/.test(h.textContent||" ");)m.element.removeChild(h);[].forEach.call(m.element.querySelectorAll("tspan.highcharts-br"),function(w,x){w.nextSibling&&w.previousSibling&&(x===0&&w.previousSibling.nodeType===1&&(m.firstLineMetrics=m.renderer.fontMetrics(void 0,w.previousSibling)),V(w,{dy:f.getLineHeight(w.nextSibling),x:u}))});var v=this.width||0;if(v){var S=function(w){[].slice.call(w.childNodes).forEach(function(x){x.nodeType===Z.Node.TEXT_NODE?function(c,g){var r=c.textContent||"",a=r.replace(/([^\^])-/g,"$1- ").split(" "),t=!f.noWrap&&(a.length>1||m.element.childNodes.length>1),i=f.getLineHeight(g),o=0,e=m.actualWidth;if(f.ellipsis)r&&f.truncate(c,r,void 0,0,Math.max(0,v-parseInt(f.fontSize||12,10)),function(l,b){return l.substring(0,b)+"…"});else if(t){for(var s=[],n=[];g.firstChild&&g.firstChild!==c;)n.push(g.firstChild),g.removeChild(g.firstChild);for(;a.length;)a.length&&!f.noWrap&&o>0&&(s.push(c.textContent||""),c.textContent=a.join(" ").replace(/- /g,"-")),f.truncate(c,void 0,a,o===0&&e||0,v,function(l,b){return a.slice(0,b).join(" ").replace(/- /g,"-")}),e=m.actualWidth,o++;n.forEach(function(l){g.insertBefore(l,c)}),s.forEach(function(l){g.insertBefore(U.createTextNode(l),c);var b=U.createElementNS($,"tspan");b.textContent="",V(b,{dy:i,x:u}),g.insertBefore(b,c)})}}(x,w):(x.className.baseVal.indexOf("highcharts-br")!==-1&&(m.actualWidth=0),S(x))})};S(m.element)}},y.prototype.getLineHeight=function(h){var f,m=h.nodeType===Z.Node.TEXT_NODE?h.parentElement:h;return this.renderer.styledMode||(f=m&&/(px|em)$/.test(m.style.fontSize)?m.style.fontSize:this.fontSize||this.renderer.style.fontSize||12),this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(f,m||this.svgElement.element).h},y.prototype.modifyTree=function(h){var f=this,m=function(u,v){var S=u.attributes,w=S===void 0?{}:S,x=u.children,c=u.style,g=c===void 0?{}:c,r=u.tagName,a=f.renderer.styledMode;if(r==="b"||r==="strong"?a?w.class="highcharts-strong":g.fontWeight="bold":r!=="i"&&r!=="em"||(a?w.class="highcharts-emphasized":g.fontStyle="italic"),g&&g.color&&(g.fill=g.color),r==="br"){w.class="highcharts-br",u.textContent="";var t=h[v+1];t&&t.textContent&&(t.textContent=t.textContent.replace(/^ +/gm,""))}else r==="a"&&x&&x.some(function(i){return i.tagName==="#text"})&&(u.children=[{children:x,tagName:"tspan"}]);r!=="#text"&&r!=="a"&&(u.tagName="tspan"),z(u,{attributes:w,style:g}),x&&x.filter(function(i){return i.tagName!=="#text"}).forEach(m)};h.forEach(m),I(this.svgElement,"afterModifyTree",{nodes:h})},y.prototype.truncate=function(h,f,m,u,v,S){var w,x,c=this.svgElement,g=c.renderer,r=c.rotation,a=[],t=m?1:0,i=(f||m||"").length,o=i,e=function(s,n){var l=n||s,b=h.parentNode;if(b&&a[l]===void 0)if(b.getSubStringLength)try{a[l]=u+b.getSubStringLength(0,m?l+1:l)}catch(k){}else g.getSpanWidth&&(h.textContent=S(f||m,s),a[l]=u+g.getSpanWidth(c,h));return a[l]};if(c.rotation=0,x=e(h.textContent.length),u+x>v){for(;t<=i;)o=Math.ceil((t+i)/2),m&&(w=S(m,o)),x=e(o,w&&w.length-1),t===i?t=i+1:x>v?i=o-1:t=o;i===0?h.textContent="":f&&i===f.length-1||(h.textContent=w||S(f||m,o))}m&&m.splice(0,o),c.actualWidth=x,c.rotation=r},y.prototype.unescapeEntities=function(h,f){return M(this.renderer.escapes,function(m,u){f&&f.indexOf(m)!==-1||(h=h.toString().replace(new RegExp(m,"g"),u))}),h},y}()}),et(_,"Core/Renderer/SVG/SVGRenderer.js",[_["Core/Renderer/HTML/AST.js"],_["Core/Color/Color.js"],_["Core/Globals.js"],_["Core/Renderer/RendererRegistry.js"],_["Core/Renderer/SVG/SVGElement.js"],_["Core/Renderer/SVG/SVGLabel.js"],_["Core/Renderer/SVG/Symbols.js"],_["Core/Renderer/SVG/TextBuilder.js"],_["Core/Utilities.js"]],function(G,B,X,U,$,Z,V,z,I){var E,M=X.charts,P=X.deg2rad,y=X.doc,h=X.isFirefox,f=X.isMS,m=X.isWebKit,u=X.noop,v=X.SVG_NS,S=X.symbolSizes,w=X.win,x=I.addEvent,c=I.attr,g=I.createElement,r=I.css,a=I.defined,t=I.destroyObjectProperties,i=I.extend,o=I.isArray,e=I.isNumber,s=I.isObject,n=I.isString,l=I.merge,b=I.pick,k=I.pInt,D=I.uniqueKey,d=function(){function C(A,N,R,L,O,j,Y){this.alignedObjects=void 0,this.box=void 0,this.boxWrapper=void 0,this.cache=void 0,this.cacheKeys=void 0,this.chartIndex=void 0,this.defs=void 0,this.globalAnimation=void 0,this.gradients=void 0,this.height=void 0,this.imgCount=void 0,this.isSVG=void 0,this.style=void 0,this.url=void 0,this.width=void 0,this.init(A,N,R,L,O,j,Y)}return C.prototype.init=function(A,N,R,L,O,j,Y){var H,W,q=this,Q=q.createElement("svg").attr({version:"1.1",class:"highcharts-root"}),J=Q.element;Y||Q.css(this.getStyle(L)),A.appendChild(J),c(A,"dir","ltr"),A.innerHTML.indexOf("xmlns")===-1&&c(J,"xmlns",this.SVG_NS),q.isSVG=!0,this.box=J,this.boxWrapper=Q,q.alignedObjects=[],this.url=this.getReferenceURL(),this.createElement("desc").add().element.appendChild(y.createTextNode("Created with Highcharts 10.3.3")),q.defs=this.createElement("defs").add(),q.allowHTML=j,q.forExport=O,q.styledMode=Y,q.gradients={},q.cache={},q.cacheKeys=[],q.imgCount=0,q.setSize(N,R,!1),h&&A.getBoundingClientRect&&((H=function(){r(A,{left:0,top:0}),W=A.getBoundingClientRect(),r(A,{left:Math.ceil(W.left)-W.left+"px",top:Math.ceil(W.top)-W.top+"px"})})(),q.unSubPixelFix=x(w,"resize",H))},C.prototype.definition=function(A){return new G([A]).addToDOM(this.defs.element)},C.prototype.getReferenceURL=function(){if((h||m)&&y.getElementsByTagName("base").length){if(!a(E)){var A=D(),N=new G([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:A},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":"url(#".concat(A,")"),fill:"rgba(0,0,0,0.001)"}}]}]).addToDOM(y.body);r(N,{position:"fixed",top:0,left:0,zIndex:9e5});var R=y.elementFromPoint(6,6);E=(R&&R.id)==="hitme",y.body.removeChild(N)}if(E)return w.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20")}return""},C.prototype.getStyle=function(A){return this.style=i({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},A),this.style},C.prototype.setStyle=function(A){this.boxWrapper.css(this.getStyle(A))},C.prototype.isHidden=function(){return!this.boxWrapper.getBBox().width},C.prototype.destroy=function(){var A=this,N=A.defs;return A.box=null,A.boxWrapper=A.boxWrapper.destroy(),t(A.gradients||{}),A.gradients=null,N&&(A.defs=N.destroy()),A.unSubPixelFix&&A.unSubPixelFix(),A.alignedObjects=null,null},C.prototype.createElement=function(A){var N=new this.Element;return N.init(this,A),N},C.prototype.getRadialAttr=function(A,N){return{cx:A[0]-A[2]/2+(N.cx||0)*A[2],cy:A[1]-A[2]/2+(N.cy||0)*A[2],r:(N.r||0)*A[2]}},C.prototype.buildText=function(A){new z(A).buildSVG()},C.prototype.getContrast=function(A){var N=B.parse(A).rgba.map(function(L){var O=L/255;return O<=.03928?O/12.92:Math.pow((O+.055)/1.055,2.4)}),R=.2126*N[0]+.7152*N[1]+.0722*N[2];return 1.05/(R+.05)>(R+.05)/.05?"#FFFFFF":"#000000"},C.prototype.button=function(A,N,R,L,O,j,Y,H,W,q){O===void 0&&(O={});var Q=this.label(A,N,R,W,void 0,void 0,q,void 0,"button"),J=this.styledMode,nt=O.states||{},lt=0;delete(O=l(O)).states;var gt=l({color:"#333333",cursor:"pointer",fontWeight:"normal"},O.style);delete O.style;var mt,bt,yt,dt=G.filterUserAttributes(O);return Q.attr(l({padding:8,r:2},dt)),J||(dt=l({fill:"#f7f7f7",stroke:"#cccccc","stroke-width":1},dt),j=l(dt,{fill:"#e6e6e6"},G.filterUserAttributes(j||nt.hover||{})),mt=j.style,delete j.style,Y=l(dt,{fill:"#e6ebf5",style:{color:"#000000",fontWeight:"bold"}},G.filterUserAttributes(Y||nt.select||{})),bt=Y.style,delete Y.style,H=l(dt,{style:{color:"#cccccc"}},G.filterUserAttributes(H||nt.disabled||{})),yt=H.style,delete H.style),x(Q.element,f?"mouseover":"mouseenter",function(){lt!==3&&Q.setState(1)}),x(Q.element,f?"mouseout":"mouseleave",function(){lt!==3&&Q.setState(lt)}),Q.setState=function(ot){if(ot!==1&&(Q.state=lt=ot),Q.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][ot||0]),!J){Q.attr([dt,j,Y,H][ot||0]);var at=[gt,mt,bt,yt][ot||0];s(at)&&Q.css(at)}},J||(Q.attr(dt).css(i({cursor:"default"},gt)),q&&Q.text.css({pointerEvents:"none"})),Q.on("touchstart",function(ot){return ot.stopPropagation()}).on("click",function(ot){lt!==3&&L.call(Q,ot)})},C.prototype.crispLine=function(A,N,R){R===void 0&&(R="round");var L=A[0],O=A[1];return a(L[1])&&L[1]===O[1]&&(L[1]=O[1]=Math[R](L[1])-N%2/2),a(L[2])&&L[2]===O[2]&&(L[2]=O[2]=Math[R](L[2])+N%2/2),A},C.prototype.path=function(A){var N=this.styledMode?{}:{fill:"none"};return o(A)?N.d=A:s(A)&&i(N,A),this.createElement("path").attr(N)},C.prototype.circle=function(A,N,R){var L=s(A)?A:A===void 0?{}:{x:A,y:N,r:R},O=this.createElement("circle");return O.xSetter=O.ySetter=function(j,Y,H){H.setAttribute("c"+Y,j)},O.attr(L)},C.prototype.arc=function(A,N,R,L,O,j){var Y;s(A)?(N=(Y=A).y,R=Y.r,L=Y.innerR,O=Y.start,j=Y.end,A=Y.x):Y={innerR:L,start:O,end:j};var H=this.symbol("arc",A,N,R,R,Y);return H.r=R,H},C.prototype.rect=function(A,N,R,L,O,j){O=s(A)?A.r:O;var Y=this.createElement("rect"),H=s(A)?A:A===void 0?{}:{x:A,y:N,width:Math.max(R,0),height:Math.max(L,0)};return this.styledMode||(j!==void 0&&(H["stroke-width"]=j,H=Y.crisp(H)),H.fill="none"),O&&(H.r=O),Y.rSetter=function(W,q,Q){Y.r=W,c(Q,{rx:W,ry:W})},Y.rGetter=function(){return Y.r||0},Y.attr(H)},C.prototype.setSize=function(A,N,R){var L=this;L.width=A,L.height=N,L.boxWrapper.animate({width:A,height:N},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:b(R,!0)?void 0:0}),L.alignElements()},C.prototype.g=function(A){var N=this.createElement("g");return A?N.attr({class:"highcharts-"+A}):N},C.prototype.image=function(A,N,R,L,O,j){var Y={preserveAspectRatio:"none"},H=function(J,nt){J.setAttributeNS?J.setAttributeNS("http://www.w3.org/1999/xlink","href",nt):J.setAttribute("hc-svg-href",nt)};e(N)&&(Y.x=N),e(R)&&(Y.y=R),e(L)&&(Y.width=L),e(O)&&(Y.height=O);var W=this.createElement("image").attr(Y),q=function(J){H(W.element,A),j.call(W,J)};if(j){H(W.element,"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==");var Q=new w.Image;x(Q,"load",q),Q.src=A,Q.complete&&q({})}else H(W.element,A);return W},C.prototype.symbol=function(A,N,R,L,O,j){var Y,H,W,q,Q=this,J=/^url\((.*?)\)$/,nt=J.test(A),lt=!nt&&(this.symbols[A]?A:"circle"),gt=lt&&this.symbols[lt];if(gt)typeof N=="number"&&(H=gt.call(this.symbols,Math.round(N||0),Math.round(R||0),L||0,O||0,j)),Y=this.path(H),Q.styledMode||Y.attr("fill","none"),i(Y,{symbolName:lt||void 0,x:N,y:R,width:L,height:O}),j&&i(Y,j);else if(nt){W=A.match(J)[1];var mt=Y=this.image(W);mt.imgwidth=b(S[W]&&S[W].width,j&&j.width),mt.imgheight=b(S[W]&&S[W].height,j&&j.height),q=function(bt){return bt.attr({width:bt.width,height:bt.height})},["width","height"].forEach(function(bt){mt[bt+"Setter"]=function(yt,dt){this[dt]=yt;var ot=this,at=ot.alignByTranslate,ut=ot.element,vt=ot.width,Ct=ot.height,xt=ot.imgwidth,St=ot.imgheight,Mt=this["img"+dt];if(a(Mt)){var wt=1;j&&j.backgroundSize==="within"&&vt&&Ct?(wt=Math.min(vt/xt,Ct/St),Mt=Math.round(Mt*wt),c(ut,{width:Math.round(xt*wt),height:Math.round(St*wt)})):ut&&ut.setAttribute(dt,Mt),at||this.translate(((vt||0)-Mt*wt)/2,((Ct||0)-Mt*wt)/2)}}}),a(N)&&mt.attr({x:N,y:R}),mt.isImg=!0,a(mt.imgwidth)&&a(mt.imgheight)?q(mt):(mt.attr({width:0,height:0}),g("img",{onload:function(){var bt=M[Q.chartIndex];this.width===0&&(r(this,{position:"absolute",top:"-999em"}),y.body.appendChild(this)),S[W]={width:this.width,height:this.height},mt.imgwidth=this.width,mt.imgheight=this.height,mt.element&&q(mt),this.parentNode&&this.parentNode.removeChild(this),Q.imgCount--,Q.imgCount||!bt||bt.hasLoaded||bt.onload()},src:W}),this.imgCount++)}return Y},C.prototype.clipRect=function(A,N,R,L){var O=D()+"-",j=this.createElement("clipPath").attr({id:O}).add(this.defs),Y=this.rect(A,N,R,L,0).add(j);return Y.id=O,Y.clipPath=j,Y.count=0,Y},C.prototype.text=function(A,N,R,L){var O=this,j={};if(L&&(O.allowHTML||!O.forExport))return O.html(A,N,R);j.x=Math.round(N||0),R&&(j.y=Math.round(R)),a(A)&&(j.text=A);var Y=O.createElement("text").attr(j);return(!L||O.forExport&&!O.allowHTML)&&(Y.xSetter=function(H,W,q){for(var Q=q.getElementsByTagName("tspan"),J=q.getAttribute(W),nt=0,lt=void 0;nt<Q.length;nt++)(lt=Q[nt]).getAttribute(W)===J&<.setAttribute(W,H);q.setAttribute(W,H)}),Y},C.prototype.fontMetrics=function(A,N){A=!this.styledMode&&/px/.test(A)||!w.getComputedStyle?A||N&&N.style&&N.style.fontSize||this.style&&this.style.fontSize:N&&$.prototype.getStyle.call(N,"font-size");var R=(A=/px/.test(A)?k(A):12)<24?A+3:Math.round(1.2*A);return{h:R,b:Math.round(.8*R),f:A}},C.prototype.rotCorr=function(A,N,R){var L=A;return N&&R&&(L=Math.max(L*Math.cos(N*P),4)),{x:-A/3*Math.sin(N*P),y:L}},C.prototype.pathToSegments=function(A){for(var N=[],R=[],L={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2},O=0;O<A.length;O++)n(R[0])&&e(A[O])&&R.length===L[R[0].toUpperCase()]&&A.splice(O,0,R[0].replace("M","L").replace("m","l")),typeof A[O]=="string"&&(R.length&&N.push(R.slice(0)),R.length=0),R.push(A[O]);return N.push(R.slice(0)),N},C.prototype.label=function(A,N,R,L,O,j,Y,H,W){return new Z(this,A,N,R,L,O,j,Y,H,W)},C.prototype.alignElements=function(){this.alignedObjects.forEach(function(A){return A.align()})},C}();return i(d.prototype,{Element:$,SVG_NS:v,escapes:{"&":"&","<":"<",">":">","'":"'",'"':"""},symbols:V,draw:u}),U.registerRendererType("svg",d,!0),d}),et(_,"Core/Renderer/HTML/HTMLElement.js",[_["Core/Globals.js"],_["Core/Renderer/SVG/SVGElement.js"],_["Core/Utilities.js"]],function(G,B,X){var U,$=this&&this.__extends||(U=function(m,u){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,S){v.__proto__=S}||function(v,S){for(var w in S)S.hasOwnProperty(w)&&(v[w]=S[w])},U(m,u)},function(m,u){function v(){this.constructor=m}U(m,u),m.prototype=u===null?Object.create(u):(v.prototype=u.prototype,new v)}),Z=G.isFirefox,V=G.isMS,z=G.isWebKit,I=G.win,E=X.css,M=X.defined,P=X.extend,y=X.pick,h=X.pInt,f=function(m){function u(){return m!==null&&m.apply(this,arguments)||this}return $(u,m),u.compose=function(v){if(u.composedClasses.indexOf(v)===-1){u.composedClasses.push(v);var S=u.prototype,w=v.prototype;w.getSpanCorrection=S.getSpanCorrection,w.htmlCss=S.htmlCss,w.htmlGetBBox=S.htmlGetBBox,w.htmlUpdateTransform=S.htmlUpdateTransform,w.setSpanRotation=S.setSpanRotation}return v},u.prototype.getSpanCorrection=function(v,S,w){this.xCorr=-v*w,this.yCorr=-S},u.prototype.htmlCss=function(v){var S,w=this,x=w.element.tagName==="SPAN"&&v&&"width"in v,c=y(x&&v.width,void 0);return x&&(delete v.width,w.textWidth=c,S=!0),v&&v.textOverflow==="ellipsis"&&(v.whiteSpace="nowrap",v.overflow="hidden"),w.styles=P(w.styles,v),E(w.element,v),S&&w.htmlUpdateTransform(),w},u.prototype.htmlGetBBox=function(){var v=this.element;return{x:v.offsetLeft,y:v.offsetTop,width:v.offsetWidth,height:v.offsetHeight}},u.prototype.htmlUpdateTransform=function(){if(this.added){var v=this,S=v.renderer,w=v.element,x=v.translateX||0,c=v.translateY||0,g=v.x||0,r=v.y||0,a=v.textAlign||"left",t={left:0,center:.5,right:1}[a],i=v.styles,o=i&&i.whiteSpace;if(E(w,{marginLeft:x,marginTop:c}),!S.styledMode&&v.shadows&&v.shadows.forEach(function(D){E(D,{marginLeft:x+1,marginTop:c+1})}),v.inverted&&[].forEach.call(w.childNodes,function(D){S.invertChild(D,w)}),w.tagName==="SPAN"){var e=v.rotation,s=v.textWidth&&h(v.textWidth),n=[e,a,w.innerHTML,v.textWidth,v.textAlign].join(","),l=void 0,b=!1;if(s!==v.oldTextWidth){var k=v.textPxLength?v.textPxLength:(E(w,{width:"",whiteSpace:o||"nowrap"}),w.offsetWidth);(s>v.oldTextWidth||k>s)&&(/[ \-]/.test(w.textContent||w.innerText)||w.style.textOverflow==="ellipsis")&&(E(w,{width:k>s||e?s+"px":"auto",display:"block",whiteSpace:o||"normal"}),v.oldTextWidth=s,b=!0)}v.hasBoxWidthChanged=b,n!==v.cTT&&(l=S.fontMetrics(w.style.fontSize,w).b,!M(e)||e===(v.oldRotation||0)&&a===v.oldAlign||v.setSpanRotation(e,t,l),v.getSpanCorrection(!M(e)&&v.textPxLength||w.offsetWidth,l,t,e,a)),E(w,{left:g+(v.xCorr||0)+"px",top:r+(v.yCorr||0)+"px"}),v.cTT=n,v.oldRotation=e,v.oldAlign=a}}else this.alignOnAdd=!0},u.prototype.setSpanRotation=function(v,S,w){var x={},c=V&&!/Edge/.test(I.navigator.userAgent)?"-ms-transform":z?"-webkit-transform":Z?"MozTransform":I.opera?"-o-transform":void 0;c&&(x[c]=x.transform="rotate("+v+"deg)",x[c+(Z?"Origin":"-origin")]=x.transformOrigin=100*S+"% "+w+"px",E(this.element,x))},u.composedClasses=[],u}(B);return f}),et(_,"Core/Renderer/HTML/HTMLRenderer.js",[_["Core/Renderer/HTML/AST.js"],_["Core/Renderer/SVG/SVGElement.js"],_["Core/Renderer/SVG/SVGRenderer.js"],_["Core/Utilities.js"]],function(G,B,X,U){var $,Z=this&&this.__extends||($=function(P,y){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,f){h.__proto__=f}||function(h,f){for(var m in f)f.hasOwnProperty(m)&&(h[m]=f[m])},$(P,y)},function(P,y){function h(){this.constructor=P}$(P,y),P.prototype=y===null?Object.create(y):(h.prototype=y.prototype,new h)}),V=U.attr,z=U.createElement,I=U.extend,E=U.pick,M=function(P){function y(){return P!==null&&P.apply(this,arguments)||this}return Z(y,P),y.compose=function(h){if(y.composedClasses.indexOf(h)===-1){y.composedClasses.push(h);var f=y.prototype;h.prototype.html=f.html}return h},y.prototype.html=function(h,f,m){var u=this.createElement("span"),v=u.element,S=u.renderer,w=S.isSVG,x=function(c,g){["opacity","visibility"].forEach(function(r){c[r+"Setter"]=function(a,t,i){var o=c.div?c.div.style:g;B.prototype[r+"Setter"].call(this,a,t,i),o&&(o[t]=a)}}),c.addedSetters=!0};return u.textSetter=function(c){c!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,G.setElementHTML(this.element,E(c,"")),this.textStr=c,u.doTransform=!0)},w&&x(u,u.element.style),u.xSetter=u.ySetter=u.alignSetter=u.rotationSetter=function(c,g){g==="align"?u.alignValue=u.textAlign=c:u[g]=c,u.doTransform=!0},u.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)},u.attr({text:h,x:Math.round(f),y:Math.round(m)}).css({position:"absolute"}),S.styledMode||u.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize}),v.style.whiteSpace="nowrap",u.css=u.htmlCss,w&&(u.add=function(c){var g,r,a=S.box.parentNode,t=[];if(this.parentGroup=c,c){if(!(g=c.div)){for(r=c;r;)t.push(r),r=r.parentGroup;t.reverse().forEach(function(i){var o=V(i.element,"class");function e(l,b){i[b]=l,b==="translateX"?n.left=l+"px":n.top=l+"px",i.doTransform=!0}var s=i.styles||{},n=(g=i.div=i.div||z("div",o?{className:o}:void 0,{position:"absolute",left:(i.translateX||0)+"px",top:(i.translateY||0)+"px",display:i.display,opacity:i.opacity,cursor:s.cursor,pointerEvents:s.pointerEvents,visibility:i.visibility},g||a)).style;I(i,{classSetter:function(l){return function(b){this.element.setAttribute("class",b),l.className=b}}(g),on:function(){return t[0].div&&u.on.apply({element:t[0].div,onEvents:i.onEvents},arguments),i},translateXSetter:e,translateYSetter:e}),i.addedSetters||x(i)})}}else g=a;return g.appendChild(v),u.added=!0,u.alignOnAdd&&u.htmlUpdateTransform(),u}),u},y.composedClasses=[],y}(X);return M}),et(_,"Core/Axis/AxisDefaults.js",[],function(){var G;return function(B){B.defaultXAxisOptions={alignTicks:!0,allowDecimals:void 0,panningEnabled:!0,zIndex:2,zoomEnabled:!0,dateTimeLabelFormats:{millisecond:{main:"%H:%M:%S.%L",range:!1},second:{main:"%H:%M:%S",range:!1},minute:{main:"%H:%M",range:!1},hour:{main:"%H:%M",range:!1},day:{main:"%e. %b"},week:{main:"%e. %b"},month:{main:"%b '%y"},year:{main:"%Y"}},endOnTick:!1,gridLineDashStyle:"Solid",gridZIndex:1,labels:{autoRotation:void 0,autoRotationLimit:80,distance:void 0,enabled:!0,indentation:10,overflow:"justify",padding:5,reserveSpace:void 0,rotation:void 0,staggerLines:0,step:0,useHTML:!1,x:0,zIndex:7,style:{color:"#666666",cursor:"default",fontSize:"11px"}},maxPadding:.01,minorGridLineDashStyle:"Solid",minorTickLength:2,minorTickPosition:"outside",minPadding:.01,offset:void 0,opposite:!1,reversed:void 0,reversedStacks:!1,showEmpty:!0,showFirstLabel:!0,showLastLabel:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",rotation:0,useHTML:!1,x:0,y:0,style:{color:"#666666"}},type:"linear",uniqueNames:!0,visible:!0,minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#ccd6eb",lineWidth:1,gridLineColor:"#e6e6e6",gridLineWidth:void 0,tickColor:"#ccd6eb"},B.defaultYAxisOptions={reversedStacks:!0,endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},startOnTick:!0,title:{rotation:270,text:"Values"},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){return(0,this.axis.chart.numberFormatter)(this.total||0,-1)},style:{color:"#000000",fontSize:"11px",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0},B.defaultLeftAxisOptions={labels:{x:-15},title:{rotation:270}},B.defaultRightAxisOptions={labels:{x:15},title:{rotation:90}},B.defaultBottomAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}},B.defaultTopAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}}}(G||(G={})),G}),et(_,"Core/Foundation.js",[_["Core/Utilities.js"]],function(G){var B,X=G.addEvent,U=G.isFunction,$=G.objectEach,Z=G.removeEvent;return function(V){V.registerEventOptions=function(z,I){z.eventOptions=z.eventOptions||{},$(I.events,function(E,M){z.eventOptions[M]!==E&&(z.eventOptions[M]&&(Z(z,M,z.eventOptions[M]),delete z.eventOptions[M]),U(E)&&(z.eventOptions[M]=E,X(z,M,E)))})}}(B||(B={})),B}),et(_,"Core/Axis/Tick.js",[_["Core/FormatUtilities.js"],_["Core/Globals.js"],_["Core/Utilities.js"]],function(G,B,X){var U=B.deg2rad,$=X.clamp,Z=X.correctFloat,V=X.defined,z=X.destroyObjectProperties,I=X.extend,E=X.fireEvent,M=X.isNumber,P=X.merge,y=X.objectEach,h=X.pick;return function(){function f(m,u,v,S,w){this.isNew=!0,this.isNewLabel=!0,this.axis=m,this.pos=u,this.type=v||"",this.parameters=w||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,E(this,"init"),v||S||this.addLabel()}return f.prototype.addLabel=function(){var m,u,v,S=this,w=S.axis,x=w.options,c=w.chart,g=w.categories,r=w.logarithmic,a=w.names,t=S.pos,i=h(S.options&&S.options.labels,x.labels),o=w.tickPositions,e=t===o[0],s=t===o[o.length-1],n=(!i.step||i.step===1)&&w.tickInterval===1,l=o.info,b=S.label,k=this.parameters.category||(g?h(g[t],a[t],t):t);r&&M(k)&&(k=Z(r.lin2log(k))),w.dateTime&&(l?m=(u=c.time.resolveDTLFormat(x.dateTimeLabelFormats[!x.grid&&l.higherRanks[t]||l.unitName])).main:M(k)&&(m=w.dateTime.getXDateFormat(k,x.dateTimeLabelFormats||{}))),S.isFirst=e,S.isLast=s;var D={axis:w,chart:c,dateTimeLabelFormat:m,isFirst:e,isLast:s,pos:t,tick:S,tickPositionInfo:l,value:k};E(this,"labelFormat",D);var d=function(N){return i.formatter?i.formatter.call(N,N):i.format?(N.text=w.defaultLabelFormatter.call(N,N),G.format(i.format,N,c)):w.defaultLabelFormatter.call(N,N)},C=d.call(D,D),A=u&&u.list;S.shortenLabel=A?function(){for(v=0;v<A.length;v++)if(I(D,{dateTimeLabelFormat:A[v]}),b.attr({text:d.call(D,D)}),b.getBBox().width<w.getSlotWidth(S)-2*i.padding)return;b.attr({text:""})}:void 0,n&&w._addedPlotLB&&S.moveLabel(C,i),V(b)||S.movedLabel?b&&b.textStr!==C&&!n&&(!b.textWidth||i.style.width||b.styles.width||b.css({width:null}),b.attr({text:C}),b.textPxLength=b.getBBox().width):(S.label=b=S.createLabel({x:0,y:0},C,i),S.rotation=0)},f.prototype.createLabel=function(m,u,v){var S=this.axis,w=S.chart,x=V(u)&&v.enabled?w.renderer.text(u,m.x,m.y,v.useHTML).add(S.labelGroup):null;return x&&(w.styledMode||x.css(P(v.style)),x.textPxLength=x.getBBox().width),x},f.prototype.destroy=function(){z(this,this.axis)},f.prototype.getPosition=function(m,u,v,S){var w=this.axis,x=w.chart,c=S&&x.oldChartHeight||x.chartHeight,g={x:m?Z(w.translate(u+v,void 0,void 0,S)+w.transB):w.left+w.offset+(w.opposite?(S&&x.oldChartWidth||x.chartWidth)-w.right-w.left:0),y:m?c-w.bottom+w.offset-(w.opposite?w.height:0):Z(c-w.translate(u+v,void 0,void 0,S)-w.transB)};return g.y=$(g.y,-1e5,1e5),E(this,"afterGetPosition",{pos:g}),g},f.prototype.getLabelPosition=function(m,u,v,S,w,x,c,g){var r,a,t=this.axis,i=t.transA,o=t.isLinked&&t.linkedParent?t.linkedParent.reversed:t.reversed,e=t.staggerLines,s=t.tickRotCorr||{x:0,y:0},n=S||t.reserveSpaceDefault?0:-t.labelOffset*(t.labelAlign==="center"?.5:1),l={};return r=t.side===0?v.rotation?-8:-v.getBBox().height:t.side===2?s.y+8:Math.cos(v.rotation*U)*(s.y-v.getBBox(!1,0).height/2),V(w.y)&&(r=t.side===0&&t.horiz?w.y+r:w.y),m=m+w.x+n+s.x-(x&&S?x*i*(o?-1:1):0),u=u+r-(x&&!S?x*i*(o?1:-1):0),e&&(a=c/(g||1)%e,t.opposite&&(a=e-a-1),u+=a*(t.labelOffset/e)),l.x=m,l.y=Math.round(u),E(this,"afterGetLabelPosition",{pos:l,tickmarkOffset:x,index:c}),l},f.prototype.getLabelSize=function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0},f.prototype.getMarkPath=function(m,u,v,S,w,x){return x.crispLine([["M",m,u],["L",m+(w?0:-v),u+(w?v:0)]],S)},f.prototype.handleOverflow=function(m){var u,v,S=this,w=this.axis,x=w.options.labels,c=m.x,g=w.chart.chartWidth,r=w.chart.spacing,a=h(w.labelLeft,Math.min(w.pos,r[3])),t=h(w.labelRight,Math.max(w.isRadial?0:w.pos+w.len,g-r[1])),i=this.label,o=this.rotation,e={left:0,center:.5,right:1}[w.labelAlign||i.attr("align")],s=i.getBBox().width,n=w.getSlotWidth(S),l=e,b={},k=n,D=1;o||x.overflow!=="justify"?o<0&&c-e*s<a?v=Math.round(c/Math.cos(o*U)-a):o>0&&c+e*s>t&&(v=Math.round((g-c)/Math.cos(o*U))):(u=c+(1-e)*s,c-e*s<a?k=m.x+k*(1-e)-a:u>t&&(k=t-m.x+k*e,D=-1),(k=Math.min(n,k))<n&&w.labelAlign==="center"&&(m.x+=D*(n-k-l*(n-Math.min(s,k)))),(s>k||w.autoRotation&&(i.styles||{}).width)&&(v=k)),v&&(S.shortenLabel?S.shortenLabel():(b.width=Math.floor(v)+"px",(x.style||{}).textOverflow||(b.textOverflow="ellipsis"),i.css(b)))},f.prototype.moveLabel=function(m,u){var v,S,w,x=this,c=x.label,g=x.axis,r=g.reversed,a=!1;c&&c.textStr===m?(x.movedLabel=c,a=!0,delete x.label):y(g.ticks,function(t){a||t.isNew||t===x||!t.label||t.label.textStr!==m||(x.movedLabel=t.label,a=!0,t.labelPos=x.movedLabel.xy,delete t.label)}),a||!x.labelPos&&!c||(v=x.labelPos||c.xy,S=g.horiz?r?0:g.width+g.left:v.x,w=g.horiz?v.y:r?g.width+g.left:0,x.movedLabel=x.createLabel({x:S,y:w},m,u),x.movedLabel&&x.movedLabel.attr({opacity:0}))},f.prototype.render=function(m,u,v){var S=this,w=S.axis,x=w.horiz,c=S.pos,g=h(S.tickmarkOffset,w.tickmarkOffset),r=S.getPosition(x,c,g,u),a=r.x,t=r.y,i=x&&a===w.pos+w.len||!x&&t===w.pos?-1:1,o=h(v,S.label&&S.label.newOpacity,1);v=h(v,1),this.isActive=!0,this.renderGridLine(u,v,i),this.renderMark(r,v,i),this.renderLabel(r,u,o,m),S.isNew=!1,E(this,"afterRender")},f.prototype.renderGridLine=function(m,u,v){var S,w=this,x=w.axis,c=x.options,g={},r=w.pos,a=w.type,t=h(w.tickmarkOffset,x.tickmarkOffset),i=x.chart.renderer,o=w.gridLine,e=c.gridLineWidth,s=c.gridLineColor,n=c.gridLineDashStyle;w.type==="minor"&&(e=c.minorGridLineWidth,s=c.minorGridLineColor,n=c.minorGridLineDashStyle),o||(x.chart.styledMode||(g.stroke=s,g["stroke-width"]=e||0,g.dashstyle=n),a||(g.zIndex=1),m&&(u=0),w.gridLine=o=i.path().attr(g).addClass("highcharts-"+(a?a+"-":"")+"grid-line").add(x.gridGroup)),o&&(S=x.getPlotLinePath({value:r+t,lineWidth:o.strokeWidth()*v,force:"pass",old:m,acrossPanes:!1}))&&o[m||w.isNew?"attr":"animate"]({d:S,opacity:u})},f.prototype.renderMark=function(m,u,v){var S=this,w=S.axis,x=w.options,c=w.chart.renderer,g=S.type,r=w.tickSize(g?g+"Tick":"tick"),a=m.x,t=m.y,i=h(x[g!=="minor"?"tickWidth":"minorTickWidth"],!g&&w.isXAxis?1:0),o=x[g!=="minor"?"tickColor":"minorTickColor"],e=S.mark,s=!e;r&&(w.opposite&&(r[0]=-r[0]),e||(S.mark=e=c.path().addClass("highcharts-"+(g?g+"-":"")+"tick").add(w.axisGroup),w.chart.styledMode||e.attr({stroke:o,"stroke-width":i})),e[s?"attr":"animate"]({d:S.getMarkPath(a,t,r[0],e.strokeWidth()*v,w.horiz,c),opacity:u}))},f.prototype.renderLabel=function(m,u,v,S){var w=this,x=w.axis,c=x.horiz,g=x.options,r=w.label,a=g.labels,t=a.step,i=h(w.tickmarkOffset,x.tickmarkOffset),o=m.x,e=m.y,s=!0;r&&M(o)&&(r.xy=m=w.getLabelPosition(o,e,r,c,a,i,S,t),w.isFirst&&!w.isLast&&!g.showFirstLabel||w.isLast&&!w.isFirst&&!g.showLastLabel?s=!1:!c||a.step||a.rotation||u||v===0||w.handleOverflow(m),t&&S%t&&(s=!1),s&&M(m.y)?(m.opacity=v,r[w.isNewLabel?"attr":"animate"](m).show(!0),w.isNewLabel=!1):(r.hide(),w.isNewLabel=!0))},f.prototype.replaceMovedLabel=function(){var m,u,v=this,S=v.label,w=v.axis,x=w.reversed;S&&!v.isNew&&(m=w.horiz?x?w.left:w.width+w.left:S.xy.x,u=w.horiz?S.xy.y:x?w.width+w.top:w.top,S.animate({x:m,y:u,opacity:0},void 0,S.destroy),delete v.label),w.isDirty=!0,v.label=v.movedLabel,delete v.movedLabel},f}()}),et(_,"Core/Axis/Axis.js",[_["Core/Animation/AnimationUtilities.js"],_["Core/Axis/AxisDefaults.js"],_["Core/Color/Color.js"],_["Core/Defaults.js"],_["Core/Foundation.js"],_["Core/Globals.js"],_["Core/Axis/Tick.js"],_["Core/Utilities.js"]],function(G,B,X,U,$,Z,V,z){var I=G.animObject,E=U.defaultOptions,M=$.registerEventOptions,P=Z.deg2rad,y=z.arrayMax,h=z.arrayMin,f=z.clamp,m=z.correctFloat,u=z.defined,v=z.destroyObjectProperties,S=z.erase,w=z.error,x=z.extend,c=z.fireEvent,g=z.isArray,r=z.isNumber,a=z.isString,t=z.merge,i=z.normalizeTickInterval,o=z.objectEach,e=z.pick,s=z.relativeLength,n=z.removeEvent,l=z.splat,b=z.syncTimeout,k=function(D,d){return i(d,void 0,void 0,e(D.options.allowDecimals,d<.5||D.tickAmount!==void 0),!!D.tickAmount)};return function(){function D(d,C){this.alternateBands=void 0,this.bottom=void 0,this.chart=void 0,this.closestPointRange=void 0,this.coll=void 0,this.eventOptions=void 0,this.hasNames=void 0,this.hasVisibleSeries=void 0,this.height=void 0,this.isLinked=void 0,this.labelEdge=void 0,this.labelFormatter=void 0,this.left=void 0,this.len=void 0,this.max=void 0,this.maxLabelLength=void 0,this.min=void 0,this.minorTickInterval=void 0,this.minorTicks=void 0,this.minPixelPadding=void 0,this.names=void 0,this.offset=void 0,this.options=void 0,this.overlap=void 0,this.paddedTicks=void 0,this.plotLinesAndBands=void 0,this.plotLinesAndBandsGroups=void 0,this.pointRange=void 0,this.pointRangePadding=void 0,this.pos=void 0,this.positiveValuesOnly=void 0,this.right=void 0,this.series=void 0,this.side=void 0,this.tickAmount=void 0,this.tickInterval=void 0,this.tickmarkOffset=void 0,this.tickPositions=void 0,this.tickRotCorr=void 0,this.ticks=void 0,this.top=void 0,this.transA=void 0,this.transB=void 0,this.translationSlope=void 0,this.userOptions=void 0,this.visible=void 0,this.width=void 0,this.zoomEnabled=void 0,this.init(d,C)}return D.prototype.init=function(d,C){var A=C.isX,N=this;N.chart=d,N.horiz=d.inverted&&!N.isZAxis?!A:A,N.isXAxis=A,N.coll=N.coll||(A?"xAxis":"yAxis"),c(this,"init",{userOptions:C}),N.opposite=e(C.opposite,N.opposite),N.side=e(C.side,N.side,N.horiz?N.opposite?0:2:N.opposite?1:3),N.setOptions(C);var R=this.options,L=R.labels,O=R.type;N.userOptions=C,N.minPixelPadding=0,N.reversed=e(R.reversed,N.reversed),N.visible=R.visible,N.zoomEnabled=R.zoomEnabled,N.hasNames=O==="category"||R.categories===!0,N.categories=R.categories||(N.hasNames?[]:void 0),N.names||(N.names=[],N.names.keys={}),N.plotLinesAndBandsGroups={},N.positiveValuesOnly=!!N.logarithmic,N.isLinked=u(R.linkedTo),N.ticks={},N.labelEdge=[],N.minorTicks={},N.plotLinesAndBands=[],N.alternateBands={},N.len=0,N.minRange=N.userMinRange=R.minRange||R.maxZoom,N.range=R.range,N.offset=R.offset||0,N.max=null,N.min=null;var j=e(R.crosshair,l(d.options.tooltip.crosshairs)[A?0:1]);N.crosshair=j===!0?{}:j,d.axes.indexOf(N)===-1&&(A?d.axes.splice(d.xAxis.length,0,N):d.axes.push(N),d[N.coll].push(N)),N.series=N.series||[],d.inverted&&!N.isZAxis&&A&&N.reversed===void 0&&(N.reversed=!0),N.labelRotation=r(L.rotation)?L.rotation:void 0,M(N,R),c(this,"afterInit")},D.prototype.setOptions=function(d){this.options=t(B.defaultXAxisOptions,this.coll==="yAxis"&&B.defaultYAxisOptions,[B.defaultTopAxisOptions,B.defaultRightAxisOptions,B.defaultBottomAxisOptions,B.defaultLeftAxisOptions][this.side],t(E[this.coll],d)),c(this,"afterSetOptions",{userOptions:d})},D.prototype.defaultLabelFormatter=function(d){var C,A,N=this.axis,R=this.chart.numberFormatter,L=r(this.value)?this.value:NaN,O=N.chart.time,j=N.categories,Y=this.dateTimeLabelFormat,H=E.lang,W=H.numericSymbols,q=H.numericSymbolMagnitude||1e3,Q=N.logarithmic?Math.abs(L):N.tickInterval,J=W&&W.length;if(j)A="".concat(this.value);else if(Y)A=O.dateFormat(Y,L);else if(J&&Q>=1e3)for(;J--&&A===void 0;)Q>=(C=Math.pow(q,J+1))&&10*L%C==0&&W[J]!==null&&L!==0&&(A=R(L/C,-1)+W[J]);return A===void 0&&(A=Math.abs(L)>=1e4?R(L,-1):R(L,-1,void 0,"")),A},D.prototype.getSeriesExtremes=function(){var d,C=this,A=C.chart;c(this,"getSeriesExtremes",null,function(){C.hasVisibleSeries=!1,C.dataMin=C.dataMax=C.threshold=null,C.softThreshold=!C.isXAxis,C.series.forEach(function(N){if(N.visible||!A.options.chart.ignoreHiddenSeries){var R=N.options,L=void 0,O=R.threshold,j=void 0,Y=void 0;if(C.hasVisibleSeries=!0,C.positiveValuesOnly&&O<=0&&(O=null),C.isXAxis)(L=N.xData).length&&(L=C.logarithmic?L.filter(C.validatePositiveValue):L,j=(d=N.getXExtremes(L)).min,Y=d.max,r(j)||j instanceof Date||(L=L.filter(r),j=(d=N.getXExtremes(L)).min,Y=d.max),L.length&&(C.dataMin=Math.min(e(C.dataMin,j),j),C.dataMax=Math.max(e(C.dataMax,Y),Y)));else{var H=N.applyExtremes();r(H.dataMin)&&(j=H.dataMin,C.dataMin=Math.min(e(C.dataMin,j),j)),r(H.dataMax)&&(Y=H.dataMax,C.dataMax=Math.max(e(C.dataMax,Y),Y)),u(O)&&(C.threshold=O),R.softThreshold&&!C.positiveValuesOnly||(C.softThreshold=!1)}}})}),c(this,"afterGetSeriesExtremes")},D.prototype.translate=function(d,C,A,N,R,L){var O=this.linkedParent||this,j=N&&O.old?O.old.min:O.min;if(!r(j))return NaN;var Y=O.minPixelPadding,H=(O.isOrdinal||O.brokenAxis&&O.brokenAxis.hasBreaks||O.logarithmic&&R)&&O.lin2val,W=1,q=0,Q=N&&O.old?O.old.transA:O.transA,J=0;if(Q||(Q=O.transA),A&&(W*=-1,q=O.len),O.reversed&&(q-=(W*=-1)*(O.sector||O.len)),C)d=d*W+q,J=(d-=Y)/Q+j,H&&(J=O.lin2val(J));else{H&&(d=O.val2lin(d));var nt=W*(d-j)*Q;J=(O.isRadial?nt:m(nt))+q+W*Y+(r(L)?Q*L:0)}return J},D.prototype.toPixels=function(d,C){return this.translate(d,!1,!this.horiz,void 0,!0)+(C?0:this.pos)},D.prototype.toValue=function(d,C){return this.translate(d-(C?0:this.pos),!0,!this.horiz,void 0,!0)},D.prototype.getPlotLinePath=function(d){var C,A,N,R,L,O=this,j=O.chart,Y=O.left,H=O.top,W=d.old,q=d.value,Q=d.lineWidth,J=W&&j.oldChartHeight||j.chartHeight,nt=W&&j.oldChartWidth||j.chartWidth,lt=O.transB,gt=d.translatedValue,mt=d.force;function bt(dt,ot,at){return mt!=="pass"&&(dt<ot||dt>at)&&(mt?dt=f(dt,ot,at):L=!0),dt}var yt={value:q,lineWidth:Q,old:W,force:mt,acrossPanes:d.acrossPanes,translatedValue:gt};return c(this,"getPlotLinePath",yt,function(dt){gt=e(gt,O.translate(q,void 0,void 0,W)),gt=f(gt,-1e5,1e5),C=N=Math.round(gt+lt),A=R=Math.round(J-gt-lt),r(gt)?O.horiz?(A=H,R=J-O.bottom,C=N=bt(C,Y,Y+O.width)):(C=Y,N=nt-O.right,A=R=bt(A,H,H+O.height)):(L=!0,mt=!1),dt.path=L&&!mt?null:j.renderer.crispLine([["M",C,A],["L",N,R]],Q||1)}),yt.path},D.prototype.getLinearTickPositions=function(d,C,A){var N,R,L,O=m(Math.floor(C/d)*d),j=m(Math.ceil(A/d)*d),Y=[];if(m(O+d)===O&&(L=20),this.single)return[C];for(N=O;N<=j&&(Y.push(N),(N=m(N+d,L))!==R);)R=N;return Y},D.prototype.getMinorTickInterval=function(){var d=this.options;return d.minorTicks===!0?e(d.minorTickInterval,"auto"):d.minorTicks===!1?null:d.minorTickInterval},D.prototype.getMinorTickPositions=function(){var d,C=this,A=C.options,N=C.tickPositions,R=C.minorTickInterval,L=C.pointRangePadding||0,O=C.min-L,j=C.max+L,Y=j-O,H=[];if(Y&&Y/R<C.len/3){var W=C.logarithmic;if(W)this.paddedTicks.forEach(function(q,Q,J){Q&&H.push.apply(H,W.getLogTickPositions(R,J[Q-1],J[Q],!0))});else if(C.dateTime&&this.getMinorTickInterval()==="auto")H=H.concat(C.getTimeTicks(C.dateTime.normalizeTimeTickInterval(R),O,j,A.startOfWeek));else for(d=O+(N[0]-O)%R;d<=j&&d!==H[0];d+=R)H.push(d)}return H.length!==0&&C.trimTicks(H),H},D.prototype.adjustForMinRange=function(){var d,C,A,N,R,L,O,j,Y,H=this,W=H.options,q=H.logarithmic,Q=H.min,J=H.max,nt=0;H.isXAxis&&H.minRange===void 0&&!q&&(u(W.min)||u(W.max)||u(W.floor)||u(W.ceiling)?H.minRange=null:(H.series.forEach(function(lt){if(R=lt.xData,L=lt.xIncrement?1:R.length-1,R.length>1)for(A=L;A>0;A--)N=R[A]-R[A-1],(!nt||N<nt)&&(nt=N)}),H.minRange=Math.min(5*nt,H.dataMax-H.dataMin))),J-Q<H.minRange&&(C=H.dataMax-H.dataMin>=H.minRange,O=[Q-(d=((Y=H.minRange)-J+Q)/2),e(W.min,Q-d)],C&&(O[2]=H.logarithmic?H.logarithmic.log2lin(H.dataMin):H.dataMin),j=[(Q=y(O))+Y,e(W.max,Q+Y)],C&&(j[2]=q?q.log2lin(H.dataMax):H.dataMax),(J=h(j))-Q<Y&&(O[0]=J-Y,O[1]=e(W.min,J-Y),Q=y(O))),H.min=Q,H.max=J},D.prototype.getClosest=function(){var d;return this.categories?d=1:this.series.forEach(function(C){var A=C.closestPointRange,N=C.visible||!C.chart.options.chart.ignoreHiddenSeries;!C.noSharedTooltip&&u(A)&&N&&(d=u(d)?Math.min(d,A):A)}),d},D.prototype.nameToX=function(d){var C,A=g(this.options.categories),N=A?this.categories:this.names,R=d.options.x;return d.series.requireSorting=!1,u(R)||(R=this.options.uniqueNames&&N?A?N.indexOf(d.name):e(N.keys[d.name],-1):d.series.autoIncrement()),R===-1?!A&&N&&(C=N.length):C=R,C!==void 0?(this.names[C]=d.name,this.names.keys[d.name]=C):d.x&&(C=d.x),C},D.prototype.updateNames=function(){var d=this,C=this.names;C.length>0&&(Object.keys(C.keys).forEach(function(A){delete C.keys[A]}),C.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(function(A){A.xIncrement=null,A.points&&!A.isDirtyData||(d.max=Math.max(d.max,A.xData.length-1),A.processData(),A.generatePoints()),A.data.forEach(function(N,R){var L;N&&N.options&&N.name!==void 0&&(L=d.nameToX(N))!==void 0&&L!==N.x&&(N.x=L,A.xData[R]=L)})}))},D.prototype.setAxisTranslation=function(){var d,C,A=this,N=A.max-A.min,R=A.linkedParent,L=!!A.categories,O=A.isXAxis,j=A.axisPointRange||0,Y=0,H=0,W=A.transA;(O||L||j)&&(d=A.getClosest(),R?(Y=R.minPointOffset,H=R.pointRangePadding):A.series.forEach(function(q){var Q=L?1:O?e(q.options.pointRange,d,0):A.axisPointRange||0,J=q.options.pointPlacement;if(j=Math.max(j,Q),!A.single||L){var nt=q.is("xrange")?!O:O;Y=Math.max(Y,nt&&a(J)?0:Q/2),H=Math.max(H,nt&&J==="on"?0:Q)}}),C=A.ordinal&&A.ordinal.slope&&d?A.ordinal.slope/d:1,A.minPointOffset=Y*=C,A.pointRangePadding=H*=C,A.pointRange=Math.min(j,A.single&&L?1:N),O&&(A.closestPointRange=d)),A.translationSlope=A.transA=W=A.staticScale||A.len/(N+H||1),A.transB=A.horiz?A.left:A.bottom,A.minPixelPadding=W*Y,c(this,"afterSetAxisTranslation")},D.prototype.minFromRange=function(){return this.max-this.range},D.prototype.setTickInterval=function(d){var C,A,N,R,L,O,j=this,Y=j.chart,H=j.logarithmic,W=j.options,q=j.isXAxis,Q=j.isLinked,J=W.tickPixelInterval,nt=j.categories,lt=j.softThreshold,gt=W.maxPadding,mt=W.minPadding,bt=r(W.tickInterval)&&W.tickInterval>=0?W.tickInterval:void 0,yt=r(j.threshold)?j.threshold:null;if(j.dateTime||nt||Q||this.getTickAmount(),L=e(j.userMin,W.min),O=e(j.userMax,W.max),Q?(j.linkedParent=Y[j.coll][W.linkedTo],A=j.linkedParent.getExtremes(),j.min=e(A.min,A.dataMin),j.max=e(A.max,A.dataMax),W.type!==j.linkedParent.options.type&&w(11,1,Y)):(lt&&u(yt)&&(j.dataMin>=yt?(N=yt,mt=0):j.dataMax<=yt&&(R=yt,gt=0)),j.min=e(L,N,j.dataMin),j.max=e(O,R,j.dataMax)),H&&(j.positiveValuesOnly&&!d&&Math.min(j.min,e(j.dataMin,j.min))<=0&&w(10,1,Y),j.min=m(H.log2lin(j.min),16),j.max=m(H.log2lin(j.max),16)),j.range&&u(j.max)&&(j.userMin=j.min=L=Math.max(j.dataMin,j.minFromRange()),j.userMax=O=j.max,j.range=null),c(j,"foundExtremes"),j.beforePadding&&j.beforePadding(),j.adjustForMinRange(),nt||j.axisPointRange||j.stacking&&j.stacking.usePercentage||Q||!u(j.min)||!u(j.max)||(C=j.max-j.min)&&(!u(L)&&mt&&(j.min-=C*mt),!u(O)&>&&(j.max+=C*gt)),r(j.userMin)||(r(W.softMin)&&W.softMin<j.min&&(j.min=L=W.softMin),r(W.floor)&&(j.min=Math.max(j.min,W.floor))),r(j.userMax)||(r(W.softMax)&&W.softMax>j.max&&(j.max=O=W.softMax),r(W.ceiling)&&(j.max=Math.min(j.max,W.ceiling))),lt&&u(j.dataMin)&&(yt=yt||0,!u(L)&&j.min<yt&&j.dataMin>=yt?j.min=j.options.minRange?Math.min(yt,j.max-j.minRange):yt:!u(O)&&j.max>yt&&j.dataMax<=yt&&(j.max=j.options.minRange?Math.max(yt,j.min+j.minRange):yt)),r(j.min)&&r(j.max)&&!this.chart.polar&&j.min>j.max&&(u(j.options.min)?j.max=j.min:u(j.options.max)&&(j.min=j.max)),j.min===j.max||j.min===void 0||j.max===void 0?j.tickInterval=1:Q&&j.linkedParent&&!bt&&J===j.linkedParent.options.tickPixelInterval?j.tickInterval=bt=j.linkedParent.tickInterval:j.tickInterval=e(bt,this.tickAmount?(j.max-j.min)/Math.max(this.tickAmount-1,1):void 0,nt?1:(j.max-j.min)*J/Math.max(j.len,J)),q&&!d){var dt=j.min!==(j.old&&j.old.min)||j.max!==(j.old&&j.old.max);j.series.forEach(function(at){at.forceCrop=at.forceCropping&&at.forceCropping(),at.processData(dt)}),c(this,"postProcessData",{hasExtremesChanged:dt})}j.setAxisTranslation(),c(this,"initialAxisTranslation"),j.pointRange&&!bt&&(j.tickInterval=Math.max(j.pointRange,j.tickInterval));var ot=e(W.minTickInterval,j.dateTime&&!j.series.some(function(at){return at.noSharedTooltip})?j.closestPointRange:0);!bt&&j.tickInterval<ot&&(j.tickInterval=ot),j.dateTime||j.logarithmic||bt||(j.tickInterval=k(j,j.tickInterval)),this.tickAmount||(j.tickInterval=j.unsquish()),this.setTickPositions()},D.prototype.setTickPositions=function(){var d,C=this,A=this.options,N=A.tickPositions,R=A.tickPositioner,L=this.getMinorTickInterval(),O=this.hasVerticalPanning(),j=this.coll==="colorAxis",Y=(j||!O)&&A.startOnTick,H=(j||!O)&&A.endOnTick,W=[];if(this.tickmarkOffset=this.categories&&A.tickmarkPlacement==="between"&&this.tickInterval===1?.5:0,this.minorTickInterval=L==="auto"&&this.tickInterval?this.tickInterval/5:L,this.single=this.min===this.max&&u(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||A.allowDecimals!==!1),N)W=N.slice();else if(r(this.min)&&r(this.max)){if(C.ordinal&&C.ordinal.positions||!((this.max-this.min)/this.tickInterval>Math.max(2*this.len,200)))if(C.dateTime)W=C.getTimeTicks(C.dateTime.normalizeTimeTickInterval(this.tickInterval,A.units),this.min,this.max,A.startOfWeek,C.ordinal&&C.ordinal.positions,this.closestPointRange,!0);else if(C.logarithmic)W=C.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max);else for(var q=this.tickInterval,Q=q;Q<=2*q&&(W=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&&W.length>this.tickAmount);)this.tickInterval=k(this,Q*=1.1);else W=[this.min,this.max],w(19,!1,this.chart);W.length>this.len&&(W=[W[0],W[W.length-1]])[0]===W[1]&&(W.length=1),R&&(this.tickPositions=W,(d=R.apply(C,[this.min,this.max]))&&(W=d))}this.tickPositions=W,this.paddedTicks=W.slice(0),this.trimTicks(W,Y,H),!this.isLinked&&r(this.min)&&r(this.max)&&(this.single&&W.length<2&&!this.categories&&!this.series.some(function(J){return J.is("heatmap")&&J.options.pointPlacement==="between"})&&(this.min-=.5,this.max+=.5),N||d||this.adjustTickAmount()),c(this,"afterSetTickPositions")},D.prototype.trimTicks=function(d,C,A){var N=d[0],R=d[d.length-1],L=!this.isOrdinal&&this.minPointOffset||0;if(c(this,"trimTicks"),!this.isLinked){if(C&&N!==-1/0)this.min=N;else for(;this.min-L>d[0];)d.shift();if(A)this.max=R;else for(;this.max+L<d[d.length-1];)d.pop();d.length===0&&u(N)&&!this.options.tickPositions&&d.push((R+N)/2)}},D.prototype.alignToOthers=function(){var d,C=this,A=[this],N=C.options,R=this.coll==="yAxis"&&this.chart.options.chart.alignThresholds,L=[];if(C.thresholdAlignment=void 0,(this.chart.options.chart.alignTicks!==!1&&N.alignTicks||R)&&N.startOnTick!==!1&&N.endOnTick!==!1&&!C.logarithmic){var O=function(H){var W=H.horiz,q=H.options;return[W?q.left:q.top,q.width,q.height,q.pane].join(",")},j=O(this);this.chart[this.coll].forEach(function(H){var W=H.series;W.length&&W.some(function(q){return q.visible})&&H!==C&&O(H)===j&&(d=!0,A.push(H))})}if(d&&R){A.forEach(function(H){var W=H.getThresholdAlignment(C);r(W)&&L.push(W)});var Y=L.length>1?L.reduce(function(H,W){return H+W},0)/L.length:void 0;A.forEach(function(H){H.thresholdAlignment=Y})}return d},D.prototype.getThresholdAlignment=function(d){if((!r(this.dataMin)||this!==d&&this.series.some(function(A){return A.isDirty||A.isDirtyData}))&&this.getSeriesExtremes(),r(this.threshold)){var C=f((this.threshold-(this.dataMin||0))/((this.dataMax||0)-(this.dataMin||0)),0,1);return this.options.reversed&&(C=1-C),C}},D.prototype.getTickAmount=function(){var d=this.options,C=d.tickPixelInterval,A=d.tickAmount;!u(d.tickInterval)&&!A&&this.len<C&&!this.isRadial&&!this.logarithmic&&d.startOnTick&&d.endOnTick&&(A=2),!A&&this.alignToOthers()&&(A=Math.ceil(this.len/C)+1),A<4&&(this.finalTickAmt=A,A=5),this.tickAmount=A},D.prototype.adjustTickAmount=function(){var d,C,A,N=this,R=N.finalTickAmt,L=N.max,O=N.min,j=N.options,Y=N.tickPositions,H=N.tickAmount,W=N.thresholdAlignment,q=Y&&Y.length,Q=e(N.threshold,N.softThreshold?0:null),J=N.tickInterval,nt=function(){return Y.push(m(Y[Y.length-1]+J))},lt=function(){return Y.unshift(m(Y[0]-J))};if(r(W)&&(A=W<.5?Math.ceil(W*(H-1)):Math.floor(W*(H-1)),j.reversed&&(A=H-1-A)),N.hasData()&&r(O)&&r(L)){var gt=function(){N.transA*=(q-1)/(H-1),N.min=j.startOnTick?Y[0]:Math.min(O,Y[0]),N.max=j.endOnTick?Y[Y.length-1]:Math.max(L,Y[Y.length-1])};if(r(A)&&r(N.threshold)){for(;Y[A]!==Q||Y.length!==H||Y[0]>O||Y[Y.length-1]<L;){for(Y.length=0,Y.push(N.threshold);Y.length<H;)Y[A]===void 0||Y[A]>N.threshold?lt():nt();if(J>8*N.tickInterval)break;J*=2}gt()}else if(q<H){for(;Y.length<H;)Y.length%2||O===Q?nt():lt();gt()}if(u(R)){for(C=d=Y.length;C--;)(R===3&&C%2==1||R<=2&&C>0&&C<d-1)&&Y.splice(C,1);N.finalTickAmt=void 0}}},D.prototype.setScale=function(){var d=this,C=!1,A=!1;d.series.forEach(function(R){C=C||R.isDirtyData||R.isDirty,A=A||R.xAxis&&R.xAxis.isDirty||!1}),d.setAxisSize();var N=d.len!==(d.old&&d.old.len);N||C||A||d.isLinked||d.forceRedraw||d.userMin!==(d.old&&d.old.userMin)||d.userMax!==(d.old&&d.old.userMax)||d.alignToOthers()?(d.stacking&&(d.stacking.resetStacks(),d.stacking.buildStacks()),d.forceRedraw=!1,d.getSeriesExtremes(),d.setTickInterval(),d.isDirty||(d.isDirty=N||d.min!==(d.old&&d.old.min)||d.max!==(d.old&&d.old.max))):d.stacking&&d.stacking.cleanStacks(),C&&d.panningState&&(d.panningState.isDirty=!0),c(this,"afterSetScale")},D.prototype.setExtremes=function(d,C,A,N,R){var L=this,O=L.chart;A=e(A,!0),L.series.forEach(function(j){delete j.kdTree}),R=x(R,{min:d,max:C}),c(L,"setExtremes",R,function(){L.userMin=d,L.userMax=C,L.eventArgs=R,A&&O.redraw(N)})},D.prototype.zoom=function(d,C){var A=this,N=this.dataMin,R=this.dataMax,L=this.options,O=Math.min(N,e(L.min,N)),j=Math.max(R,e(L.max,R)),Y={newMin:d,newMax:C};return c(this,"zoom",Y,function(H){var W=H.newMin,q=H.newMax;W===A.min&&q===A.max||(A.allowZoomOutside||(u(N)&&(W<O&&(W=O),W>j&&(W=j)),u(R)&&(q<O&&(q=O),q>j&&(q=j))),A.displayBtn=W!==void 0||q!==void 0,A.setExtremes(W,q,!1,void 0,{trigger:"zoom"})),H.zoomed=!0}),Y.zoomed},D.prototype.setAxisSize=function(){var d=this.chart,C=this.options,A=C.offsets||[0,0,0,0],N=this.horiz,R=this.width=Math.round(s(e(C.width,d.plotWidth-A[3]+A[1]),d.plotWidth)),L=this.height=Math.round(s(e(C.height,d.plotHeight-A[0]+A[2]),d.plotHeight)),O=this.top=Math.round(s(e(C.top,d.plotTop+A[0]),d.plotHeight,d.plotTop)),j=this.left=Math.round(s(e(C.left,d.plotLeft+A[3]),d.plotWidth,d.plotLeft));this.bottom=d.chartHeight-L-O,this.right=d.chartWidth-R-j,this.len=Math.max(N?R:L,0),this.pos=N?j:O},D.prototype.getExtremes=function(){var d=this,C=d.logarithmic;return{min:C?m(C.lin2log(d.min)):d.min,max:C?m(C.lin2log(d.max)):d.max,dataMin:d.dataMin,dataMax:d.dataMax,userMin:d.userMin,userMax:d.userMax}},D.prototype.getThreshold=function(d){var C=this,A=C.logarithmic,N=A?A.lin2log(C.min):C.min,R=A?A.lin2log(C.max):C.max;return d===null||d===-1/0?d=N:d===1/0?d=R:N>d?d=N:R<d&&(d=R),C.translate(d,0,1,0,1)},D.prototype.autoLabelAlign=function(d){var C=(e(d,0)-90*this.side+720)%360,A={align:"center"};return c(this,"autoLabelAlign",A,function(N){C>15&&C<165?N.align="right":C>195&&C<345&&(N.align="left")}),A.align},D.prototype.tickSize=function(d){var C,A=this.options,N=e(A[d==="tick"?"tickWidth":"minorTickWidth"],d==="tick"&&this.isXAxis&&!this.categories?1:0),R=A[d==="tick"?"tickLength":"minorTickLength"];N&&R&&(A[d+"Position"]==="inside"&&(R=-R),C=[R,N]);var L={tickSize:C};return c(this,"afterTickSize",L),L.tickSize},D.prototype.labelMetrics=function(){var d=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style.fontSize,this.ticks[d]&&this.ticks[d].label)},D.prototype.unsquish=function(){var d,C,A=this.options.labels,N=this.horiz,R=this.tickInterval,L=this.len/(((this.categories?1:0)+this.max-this.min)/R),O=A.rotation,j=this.labelMetrics(),Y=Math.max(this.max-this.min,0),H=function(mt){var bt=mt/(L||1);return(bt=bt>1?Math.ceil(bt):1)*R>Y&&mt!==1/0&&L!==1/0&&Y&&(bt=Math.ceil(Y/R)),m(bt*R)},W=R,q=Number.MAX_VALUE;if(N){if(A.staggerLines||(r(O)?C=[O]:L<A.autoRotationLimit&&(C=A.autoRotation)),C)for(var Q=void 0,J=void 0,nt=0,lt=C;nt<lt.length;nt++){var gt=lt[nt];(gt===O||gt&>>=-90&><=90)&&(J=(Q=H(Math.abs(j.h/Math.sin(P*gt))))+Math.abs(gt/360))<q&&(q=J,d=gt,W=Q)}}else W=H(j.h);return this.autoRotation=C,this.labelRotation=e(d,r(O)?O:0),A.step?R:W},D.prototype.getSlotWidth=function(d){var C=this.chart,A=this.horiz,N=this.options.labels,R=Math.max(this.tickPositions.length-(this.categories?0:1),1),L=C.margin[3];if(d&&r(d.slotWidth))return d.slotWidth;if(A&&N.step<2)return N.rotation?0:(this.staggerLines||1)*this.len/R;if(!A){var O=N.style.width;if(O!==void 0)return parseInt(String(O),10);if(L)return L-C.spacing[3]}return .33*C.chartWidth},D.prototype.renderUnsquish=function(){var d,C,A,N,R,L=this.chart,O=L.renderer,j=this.tickPositions,Y=this.ticks,H=this.options.labels,W=H.style,q=this.horiz,Q=this.getSlotWidth(),J=Math.max(1,Math.round(Q-2*H.padding)),nt={},lt=this.labelMetrics(),gt=W.textOverflow,mt=0;if(a(H.rotation)||(nt.rotation=H.rotation||0),j.forEach(function(bt){var yt=Y[bt];yt.movedLabel&&yt.replaceMovedLabel(),yt&&yt.label&&yt.label.textPxLength>mt&&(mt=yt.label.textPxLength)}),this.maxLabelLength=mt,this.autoRotation)mt>J&&mt>lt.h?nt.rotation=this.labelRotation:this.labelRotation=0;else if(Q&&(d=J,!gt))for(C="clip",N=j.length;!q&&N--;)R=j[N],(A=Y[R].label)&&(A.styles&&A.styles.textOverflow==="ellipsis"?A.css({textOverflow:"clip"}):A.textPxLength>Q&&A.css({width:Q+"px"}),A.getBBox().height>this.len/j.length-(lt.h-lt.f)&&(A.specificTextOverflow="ellipsis"));nt.rotation&&(d=mt>.5*L.chartHeight?.33*L.chartHeight:mt,gt||(C="ellipsis")),this.labelAlign=H.align||this.autoLabelAlign(this.labelRotation),this.labelAlign&&(nt.align=this.labelAlign),j.forEach(function(bt){var yt=Y[bt],dt=yt&&yt.label,ot=W.width,at={};dt&&(dt.attr(nt),yt.shortenLabel?yt.shortenLabel():d&&!ot&&W.whiteSpace!=="nowrap"&&(d<dt.textPxLength||dt.element.tagName==="SPAN")?(at.width=d+"px",gt||(at.textOverflow=dt.specificTextOverflow||C),dt.css(at)):dt.styles&&dt.styles.width&&!at.width&&!ot&&dt.css({width:null}),delete dt.specificTextOverflow,yt.rotation=nt.rotation)},this),this.tickRotCorr=O.rotCorr(lt.b,this.labelRotation||0,this.side!==0)},D.prototype.hasData=function(){return this.series.some(function(d){return d.hasData()})||this.options.showEmpty&&u(this.min)&&u(this.max)},D.prototype.addTitle=function(d){var C,A=this,N=A.chart.renderer,R=A.horiz,L=A.opposite,O=A.options.title,j=A.chart.styledMode;A.axisTitle||((C=O.textAlign)||(C=(R?{low:"left",middle:"center",high:"right"}:{low:L?"right":"left",middle:"center",high:L?"left":"right"})[O.align]),A.axisTitle=N.text(O.text||"",0,0,O.useHTML).attr({zIndex:7,rotation:O.rotation,align:C}).addClass("highcharts-axis-title"),j||A.axisTitle.css(t(O.style)),A.axisTitle.add(A.axisGroup),A.axisTitle.isNew=!0),j||O.style.width||A.isRadial||A.axisTitle.css({width:A.len+"px"}),A.axisTitle[d?"show":"hide"](d)},D.prototype.generateTick=function(d){var C=this.ticks;C[d]?C[d].addLabel():C[d]=new V(this,d)},D.prototype.getOffset=function(){var d,C,A,N,R=this,L=this,O=L.chart,j=L.horiz,Y=L.options,H=L.side,W=L.ticks,q=L.tickPositions,Q=L.coll,J=L.axisParent,nt=O.renderer,lt=O.inverted&&!L.isZAxis?[1,0,3,2][H]:H,gt=L.hasData(),mt=Y.title,bt=Y.labels,yt=O.axisOffset,dt=O.clipOffset,ot=[-1,1,1,-1][H],at=Y.className,ut=0,vt=0,Ct=0;if(L.showAxis=d=gt||Y.showEmpty,L.staggerLines=L.horiz&&bt.staggerLines||void 0,!L.axisGroup){var xt=function(wt,Tt,Lt){return nt.g(wt).attr({zIndex:Lt}).addClass("highcharts-".concat(Q.toLowerCase()).concat(Tt," ")+(R.isRadial?"highcharts-radial-axis".concat(Tt," "):"")+(at||"")).add(J)};L.gridGroup=xt("grid","-grid",Y.gridZIndex),L.axisGroup=xt("axis","",Y.zIndex),L.labelGroup=xt("axis-labels","-labels",bt.zIndex)}if(gt||L.isLinked?(q.forEach(function(wt){L.generateTick(wt)}),L.renderUnsquish(),L.reserveSpaceDefault=H===0||H===2||{1:"left",3:"right"}[H]===L.labelAlign,e(bt.reserveSpace,L.labelAlign==="center"||null,L.reserveSpaceDefault)&&q.forEach(function(wt){Ct=Math.max(W[wt].getLabelSize(),Ct)}),L.staggerLines&&(Ct*=L.staggerLines),L.labelOffset=Ct*(L.opposite?-1:1)):o(W,function(wt,Tt){wt.destroy(),delete W[Tt]}),mt&&mt.text&&mt.enabled!==!1&&(L.addTitle(d),d&&mt.reserveSpace!==!1&&(L.titleOffset=ut=L.axisTitle.getBBox()[j?"height":"width"],C=mt.offset,vt=u(C)?0:e(mt.margin,j?5:10))),L.renderLine(),L.offset=ot*e(Y.offset,yt[H]?yt[H]+(Y.margin||0):0),L.tickRotCorr=L.tickRotCorr||{x:0,y:0},N=H===0?-L.labelMetrics().h:H===2?L.tickRotCorr.y:0,A=Math.abs(Ct)+vt,Ct&&(A-=N,A+=ot*(j?e(bt.y,L.tickRotCorr.y+8*ot):bt.x)),L.axisTitleMargin=e(C,A),L.getMaxLabelDimensions&&(L.maxLabelDimensions=L.getMaxLabelDimensions(W,q)),Q!=="colorAxis"){var St=this.tickSize("tick");yt[H]=Math.max(yt[H],(L.axisTitleMargin||0)+ut+ot*L.offset,A,q&&q.length&&St?St[0]+ot*L.offset:0);var Mt=!L.axisLine||Y.offset?0:2*Math.floor(L.axisLine.strokeWidth()/2);dt[lt]=Math.max(dt[lt],Mt)}c(this,"afterGetOffset")},D.prototype.getLinePath=function(d){var C=this.chart,A=this.opposite,N=this.offset,R=this.horiz,L=this.left+(A?this.width:0)+N,O=C.chartHeight-this.bottom-(A?this.height:0)+N;return A&&(d*=-1),C.renderer.crispLine([["M",R?this.left:L,R?O:this.top],["L",R?C.chartWidth-this.right:L,R?O:C.chartHeight-this.bottom]],d)},D.prototype.renderLine=function(){this.axisLine||(this.axisLine=this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup),this.chart.styledMode||this.axisLine.attr({stroke:this.options.lineColor,"stroke-width":this.options.lineWidth,zIndex:7}))},D.prototype.getTitlePosition=function(){var d=this.horiz,C=this.left,A=this.top,N=this.len,R=this.options.title,L=d?C:A,O=this.opposite,j=this.offset,Y=R.x,H=R.y,W=this.axisTitle,q=this.chart.renderer.fontMetrics(R.style.fontSize,W),Q=W?Math.max(W.getBBox(!1,0).height-q.h-1,0):0,J={low:L+(d?0:N),middle:L+N/2,high:L+(d?N:0)}[R.align],nt=(d?A+this.height:C)+(d?1:-1)*(O?-1:1)*(this.axisTitleMargin||0)+[-Q,Q,q.f,-Q][this.side],lt={x:d?J+Y:nt+(O?this.width:0)+j+Y,y:d?nt+H-(O?this.height:0)+j:J+H};return c(this,"afterGetTitlePosition",{titlePosition:lt}),lt},D.prototype.renderMinorTick=function(d,C){var A=this.minorTicks;A[d]||(A[d]=new V(this,d,"minor")),C&&A[d].isNew&&A[d].render(null,!0),A[d].render(null,!1,1)},D.prototype.renderTick=function(d,C,A){var N=this,R=N.isLinked,L=N.ticks;(!R||d>=N.min&&d<=N.max||N.grid&&N.grid.isColumn)&&(L[d]||(L[d]=new V(N,d)),A&&L[d].isNew&&L[d].render(C,!0,-1),L[d].render(C))},D.prototype.render=function(){var d,C,A=this,N=A.chart,R=A.logarithmic,L=N.renderer,O=A.options,j=A.isLinked,Y=A.tickPositions,H=A.axisTitle,W=A.ticks,q=A.minorTicks,Q=A.alternateBands,J=O.stackLabels,nt=O.alternateGridColor,lt=A.tickmarkOffset,gt=A.axisLine,mt=A.showAxis,bt=I(L.globalAnimation);if(A.labelEdge.length=0,A.overlap=!1,[W,q,Q].forEach(function(ot){o(ot,function(at){at.isActive=!1})}),A.hasData()||j){var yt=A.chart.hasRendered&&A.old&&r(A.old.min);A.minorTickInterval&&!A.categories&&A.getMinorTickPositions().forEach(function(ot){A.renderMinorTick(ot,yt)}),Y.length&&(Y.forEach(function(ot,at){A.renderTick(ot,at,yt)}),lt&&(A.min===0||A.single)&&(W[-1]||(W[-1]=new V(A,-1,null,!0)),W[-1].render(-1))),nt&&Y.forEach(function(ot,at){C=Y[at+1]!==void 0?Y[at+1]+lt:A.max-lt,at%2==0&&ot<A.max&&C<=A.max+(N.polar?-lt:lt)&&(Q[ot]||(Q[ot]=new Z.PlotLineOrBand(A)),d=ot+lt,Q[ot].options={from:R?R.lin2log(d):d,to:R?R.lin2log(C):C,color:nt,className:"highcharts-alternate-grid"},Q[ot].render(),Q[ot].isActive=!0)}),A._addedPlotLB||(A._addedPlotLB=!0,(O.plotLines||[]).concat(O.plotBands||[]).forEach(function(ot){A.addPlotBandOrLine(ot)}))}if([W,q,Q].forEach(function(ot){var at=[],ut=bt.duration;o(ot,function(vt,Ct){vt.isActive||(vt.render(Ct,!1,0),vt.isActive=!1,at.push(Ct))}),b(function(){for(var vt=at.length;vt--;)ot[at[vt]]&&!ot[at[vt]].isActive&&(ot[at[vt]].destroy(),delete ot[at[vt]])},ot!==Q&&N.hasRendered&&ut?ut:0)}),gt&&(gt[gt.isPlaced?"animate":"attr"]({d:this.getLinePath(gt.strokeWidth())}),gt.isPlaced=!0,gt[mt?"show":"hide"](mt)),H&&mt){var dt=A.getTitlePosition();H[H.isNew?"attr":"animate"](dt),H.isNew=!1}J&&J.enabled&&A.stacking&&A.stacking.renderStackTotals(),A.old={len:A.len,max:A.max,min:A.min,transA:A.transA,userMax:A.userMax,userMin:A.userMin},A.isDirty=!1,c(this,"afterRender")},D.prototype.redraw=function(){this.visible&&(this.render(),this.plotLinesAndBands.forEach(function(d){d.render()})),this.series.forEach(function(d){d.isDirty=!0})},D.prototype.getKeepProps=function(){return this.keepProps||D.keepProps},D.prototype.destroy=function(d){var C=this,A=C.plotLinesAndBands,N=this.eventOptions;if(c(this,"destroy",{keepEvents:d}),d||n(C),[C.ticks,C.minorTicks,C.alternateBands].forEach(function(O){v(O)}),A)for(var R=A.length;R--;)A[R].destroy();for(var L in["axisLine","axisTitle","axisGroup","gridGroup","labelGroup","cross","scrollbar"].forEach(function(O){C[O]&&(C[O]=C[O].destroy())}),C.plotLinesAndBandsGroups)C.plotLinesAndBandsGroups[L]=C.plotLinesAndBandsGroups[L].destroy();o(C,function(O,j){C.getKeepProps().indexOf(j)===-1&&delete C[j]}),this.eventOptions=N},D.prototype.drawCrosshair=function(d,C){var A,N,R,L,O=this.crosshair,j=e(O&&O.snap,!0),Y=this.chart,H=this.cross;if(c(this,"drawCrosshair",{e:d,point:C}),d||(d=this.cross&&this.cross.e),O&&(u(C)||!j)!==!1){if(j?u(C)&&(N=e(this.coll!=="colorAxis"?C.crosshairPos:null,this.isXAxis?C.plotX:this.len-C.plotY)):N=d&&(this.horiz?d.chartX-this.pos:this.len-d.chartY+this.pos),u(N)&&(L={value:C&&(this.isXAxis?C.x:e(C.stackY,C.y)),translatedValue:N},Y.polar&&x(L,{isCrosshair:!0,chartX:d&&d.chartX,chartY:d&&d.chartY,point:C}),A=this.getPlotLinePath(L)||null),!u(A))return void this.hideCrosshair();R=this.categories&&!this.isRadial,H||(this.cross=H=Y.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(R?"category ":"thin ")+(O.className||"")).attr({zIndex:e(O.zIndex,2)}).add(),Y.styledMode||(H.attr({stroke:O.color||(R?X.parse("#ccd6eb").setOpacity(.25).get():"#cccccc"),"stroke-width":e(O.width,1)}).css({"pointer-events":"none"}),O.dashStyle&&H.attr({dashstyle:O.dashStyle}))),H.show().attr({d:A}),R&&!O.width&&H.attr({"stroke-width":this.transA}),this.cross.e=d}else this.hideCrosshair();c(this,"afterDrawCrosshair",{e:d,point:C})},D.prototype.hideCrosshair=function(){this.cross&&this.cross.hide(),c(this,"afterHideCrosshair")},D.prototype.hasVerticalPanning=function(){var d=this.chart.options.chart.panning;return!!(d&&d.enabled&&/y/.test(d.type))},D.prototype.validatePositiveValue=function(d){return r(d)&&d>0},D.prototype.update=function(d,C){var A=this.chart;d=t(this.userOptions,d),this.destroy(!0),this.init(A,d),A.isDirtyBox=!0,e(C,!0)&&A.redraw()},D.prototype.remove=function(d){for(var C=this.chart,A=this.coll,N=this.series,R=N.length;R--;)N[R]&&N[R].remove(!1);S(C.axes,this),S(C[A],this),C[A].forEach(function(L,O){L.options.index=L.userOptions.index=O}),this.destroy(),C.isDirtyBox=!0,e(d,!0)&&C.redraw()},D.prototype.setTitle=function(d,C){this.update({title:d},C)},D.prototype.setCategories=function(d,C){this.update({categories:d},C)},D.defaultOptions=B.defaultXAxisOptions,D.keepProps=["extKey","hcEvents","names","series","userMax","userMin"],D}()}),et(_,"Core/Axis/DateTimeAxis.js",[_["Core/Utilities.js"]],function(G){var B,X=G.addEvent,U=G.getMagnitude,$=G.normalizeTickInterval,Z=G.timeUnits;return function(V){var z=[];function I(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)}function E(P){var y=this;P.userOptions.type==="datetime"?y.dateTime||(y.dateTime=new M(y)):y.dateTime=void 0}V.compose=function(P){return z.indexOf(P)===-1&&(z.push(P),P.keepProps.push("dateTime"),P.prototype.getTimeTicks=I,X(P,"init",E)),P};var M=function(){function P(y){this.axis=y}return P.prototype.normalizeTimeTickInterval=function(y,h){var f,m=h||[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2]],["week",[1,2]],["month",[1,2,3,4,6]],["year",null]],u=m[m.length-1],v=Z[u[0]],S=u[1];for(f=0;f<m.length&&(u=m[f],v=Z[u[0]],S=u[1],!(m[f+1]&&y<=(v*S[S.length-1]+Z[m[f+1][0]])/2));f++);return v===Z.year&&y<5*v&&(S=[1,2,5]),{unitRange:v,count:$(y/v,S,u[0]==="year"?Math.max(U(y/v),1):1),unitName:u[0]}},P.prototype.getXDateFormat=function(y,h){var f=this.axis,m=f.chart.time;return f.closestPointRange?m.getDateFormat(f.closestPointRange,y,f.options.startOfWeek,h)||m.resolveDTLFormat(h.year).main:m.resolveDTLFormat(h.day).main},P}();V.Additions=M}(B||(B={})),B}),et(_,"Core/Axis/LogarithmicAxis.js",[_["Core/Utilities.js"]],function(G){var B,X=G.addEvent,U=G.normalizeTickInterval,$=G.pick;return function(Z){var V=[];function z(M){var P=this,y=M.userOptions,h=P.logarithmic;y.type!=="logarithmic"?P.logarithmic=void 0:h||(h=P.logarithmic=new E(P))}function I(){var M=this,P=M.logarithmic;P&&(M.lin2val=function(y){return P.lin2log(y)},M.val2lin=function(y){return P.log2lin(y)})}Z.compose=function(M){return V.indexOf(M)===-1&&(V.push(M),M.keepProps.push("logarithmic"),X(M,"init",z),X(M,"afterInit",I)),M};var E=function(){function M(P){this.axis=P}return M.prototype.getLogTickPositions=function(P,y,h,f){var m=this,u=m.axis,v=u.len,S=u.options,w=[];if(f||(m.minorAutoInterval=void 0),P>=.5)P=Math.round(P),w=u.getLinearTickPositions(P,y,h);else if(P>=.08){var x,c=void 0,g=void 0,r=void 0,a=void 0,t=void 0,i=void 0;for(x=P>.3?[1,2,4]:P>.15?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9],c=Math.floor(y);c<h+1&&!i;c++)for(r=x.length,g=0;g<r&&!i;g++)(a=m.log2lin(m.lin2log(c)*x[g]))>y&&(!f||t<=h)&&t!==void 0&&w.push(t),t>h&&(i=!0),t=a}else{var o=m.lin2log(y),e=m.lin2log(h),s=f?u.getMinorTickInterval():S.tickInterval,n=s==="auto"?null:s,l=S.tickPixelInterval/(f?5:1),b=f?v/u.tickPositions.length:v;P=$(n,m.minorAutoInterval,(e-o)*l/(b||1)),P=U(P),w=u.getLinearTickPositions(P,o,e).map(m.log2lin),f||(m.minorAutoInterval=P/5)}return f||(u.tickInterval=P),w},M.prototype.lin2log=function(P){return Math.pow(10,P)},M.prototype.log2lin=function(P){return Math.log(P)/Math.LN10},M}();Z.Additions=E}(B||(B={})),B}),et(_,"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js",[_["Core/Utilities.js"]],function(G){var B,X=G.erase,U=G.extend,$=G.isNumber;return function(Z){var V,z=[];Z.compose=function(E,M){return V||(V=E),z.indexOf(M)===-1&&(z.push(M),U(M.prototype,I.prototype)),M};var I=function(){function E(){}return E.prototype.getPlotBandPath=function(M,P,y){y===void 0&&(y=this.options);var h,f,m=this.getPlotLinePath({value:P,force:!0,acrossPanes:y.acrossPanes}),u=[],v=this.horiz,S=!$(this.min)||!$(this.max)||M<this.min&&P<this.min||M>this.max&&P>this.max,w=this.getPlotLinePath({value:M,force:!0,acrossPanes:y.acrossPanes}),x=1;if(w&&m)for(S&&(f=w.toString()===m.toString(),x=0),h=0;h<w.length;h+=2){var c=w[h],g=w[h+1],r=m[h],a=m[h+1];c[0]!=="M"&&c[0]!=="L"||g[0]!=="M"&&g[0]!=="L"||r[0]!=="M"&&r[0]!=="L"||a[0]!=="M"&&a[0]!=="L"||(v&&r[1]===c[1]?(r[1]+=x,a[1]+=x):v||r[2]!==c[2]||(r[2]+=x,a[2]+=x),u.push(["M",c[1],c[2]],["L",g[1],g[2]],["L",a[1],a[2]],["L",r[1],r[2]],["Z"])),u.isFlat=f}else w=null;return u},E.prototype.addPlotBand=function(M){return this.addPlotBandOrLine(M,"plotBands")},E.prototype.addPlotLine=function(M){return this.addPlotBandOrLine(M,"plotLines")},E.prototype.addPlotBandOrLine=function(M,P){var y=this,h=this.userOptions,f=new V(this,M);if(this.visible&&(f=f.render()),f){if(this._addedPlotLB||(this._addedPlotLB=!0,(h.plotLines||[]).concat(h.plotBands||[]).forEach(function(u){y.addPlotBandOrLine(u)})),P){var m=h[P]||[];m.push(M),h[P]=m}this.plotLinesAndBands.push(f)}return f},E.prototype.removePlotBandOrLine=function(M){var P=this.plotLinesAndBands,y=this.options,h=this.userOptions;if(P){for(var f=P.length;f--;)P[f].id===M&&P[f].destroy();[y.plotLines||[],h.plotLines||[],y.plotBands||[],h.plotBands||[]].forEach(function(m){for(f=m.length;f--;)(m[f]||{}).id===M&&X(m,m[f])})}},E.prototype.removePlotBand=function(M){this.removePlotBandOrLine(M)},E.prototype.removePlotLine=function(M){this.removePlotBandOrLine(M)},E}()}(B||(B={})),B}),et(_,"Core/Axis/PlotLineOrBand/PlotLineOrBand.js",[_["Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js"],_["Core/Utilities.js"]],function(G,B){var X=B.arrayMax,U=B.arrayMin,$=B.defined,Z=B.destroyObjectProperties,V=B.erase,z=B.fireEvent,I=B.merge,E=B.objectEach,M=B.pick;return function(){function P(y,h){this.axis=y,h&&(this.options=h,this.id=h.id)}return P.compose=function(y){return G.compose(P,y)},P.prototype.render=function(){z(this,"render");var y,h=this,f=h.axis,m=f.horiz,u=f.logarithmic,v=h.options,S=v.color,w=M(v.zIndex,0),x=v.events,c={},g=f.chart.renderer,r=v.label,a=h.label,t=v.to,i=v.from,o=v.value,e=h.svgElem,s=[],n=$(i)&&$(t),l=$(o),b=!e,k={class:"highcharts-plot-"+(n?"band ":"line ")+(v.className||"")},D=n?"bands":"lines";if(u&&(i=u.log2lin(i),t=u.log2lin(t),o=u.log2lin(o)),f.chart.styledMode||(l?(k.stroke=S||"#999999",k["stroke-width"]=M(v.width,1),v.dashStyle&&(k.dashstyle=v.dashStyle)):n&&(k.fill=S||"#e6ebf5",v.borderWidth&&(k.stroke=v.borderColor,k["stroke-width"]=v.borderWidth))),c.zIndex=w,D+="-"+w,(y=f.plotLinesAndBandsGroups[D])||(f.plotLinesAndBandsGroups[D]=y=g.g("plot-"+D).attr(c).add()),b&&(h.svgElem=e=g.path().attr(k).add(y)),l)s=f.getPlotLinePath({value:o,lineWidth:e.strokeWidth(),acrossPanes:v.acrossPanes});else{if(!n)return;s=f.getPlotBandPath(i,t,v)}return!h.eventsAdded&&x&&(E(x,function(d,C){e.on(C,function(A){x[C].apply(h,[A])})}),h.eventsAdded=!0),(b||!e.d)&&s&&s.length?e.attr({d:s}):e&&(s?(e.show(),e.animate({d:s})):e.d&&(e.hide(),a&&(h.label=a=a.destroy()))),r&&($(r.text)||$(r.formatter))&&s&&s.length&&f.width>0&&f.height>0&&!s.isFlat?(r=I({align:m&&n&&"center",x:m?!n&&4:10,verticalAlign:!m&&n&&"middle",y:m?n?16:10:n?6:-4,rotation:m&&!n&&90},r),this.renderLabel(r,s,n,w)):a&&a.hide(),h},P.prototype.renderLabel=function(y,h,f,m){var u=this,v=u.axis,S=v.chart.renderer,w=u.label;w||(u.label=w=S.text(this.getLabelText(y),0,0,y.useHTML).attr({align:y.textAlign||y.align,rotation:y.rotation,class:"highcharts-plot-"+(f?"band":"line")+"-label "+(y.className||""),zIndex:m}).add(),v.chart.styledMode||w.css(I({textOverflow:"ellipsis"},y.style)));var x=h.xBounds||[h[0][1],h[1][1],f?h[2][1]:h[0][1]],c=h.yBounds||[h[0][2],h[1][2],f?h[2][2]:h[0][2]],g=U(x),r=U(c);if(w.align(y,!1,{x:g,y:r,width:X(x)-g,height:X(c)-r}),!w.alignValue||w.alignValue==="left"){var a=y.clip?v.width:v.chart.chartWidth;w.css({width:(w.rotation===90?v.height-(w.alignAttr.y-v.top):a-(w.alignAttr.x-v.left))+"px"})}w.show(!0)},P.prototype.getLabelText=function(y){return $(y.formatter)?y.formatter.call(this):y.text},P.prototype.destroy=function(){V(this.axis.plotLinesAndBands,this),delete this.axis,Z(this)},P}()}),et(_,"Core/Tooltip.js",[_["Core/FormatUtilities.js"],_["Core/Globals.js"],_["Core/Renderer/RendererUtilities.js"],_["Core/Renderer/RendererRegistry.js"],_["Core/Utilities.js"]],function(G,B,X,U,$){var Z=G.format,V=B.doc,z=X.distribute,I=$.clamp,E=$.css,M=$.discardElement,P=$.extend,y=$.fireEvent,h=$.isArray,f=$.isNumber,m=$.isString,u=$.merge,v=$.pick,S=$.splat,w=$.syncTimeout;return function(){function x(c,g){this.allowShared=!0,this.container=void 0,this.crosshairs=[],this.distance=0,this.isHidden=!0,this.isSticky=!1,this.now={},this.options={},this.outside=!1,this.chart=c,this.init(c,g)}return x.prototype.applyFilter=function(){var c=this.chart;c.renderer.definition({tagName:"filter",attributes:{id:"drop-shadow-"+c.index,opacity:.5},children:[{tagName:"feGaussianBlur",attributes:{in:"SourceAlpha",stdDeviation:1}},{tagName:"feOffset",attributes:{dx:1,dy:1}},{tagName:"feComponentTransfer",children:[{tagName:"feFuncA",attributes:{type:"linear",slope:.3}}]},{tagName:"feMerge",children:[{tagName:"feMergeNode"},{tagName:"feMergeNode",attributes:{in:"SourceGraphic"}}]}]})},x.prototype.bodyFormatter=function(c){return c.map(function(g){var r=g.series.tooltipOptions;return(r[(g.point.formatPrefix||"point")+"Formatter"]||g.point.tooltipFormatter).call(g.point,r[(g.point.formatPrefix||"point")+"Format"]||"")})},x.prototype.cleanSplit=function(c){this.chart.series.forEach(function(g){var r=g&&g.tt;r&&(!r.isActive||c?g.tt=r.destroy():r.isActive=!1)})},x.prototype.defaultFormatter=function(c){var g,r=this.points||S(this);return(g=(g=[c.tooltipFooterHeaderFormatter(r[0])]).concat(c.bodyFormatter(r))).push(c.tooltipFooterHeaderFormatter(r[0],!0)),g},x.prototype.destroy=function(){this.label&&(this.label=this.label.destroy()),this.split&&this.tt&&(this.cleanSplit(!0),this.tt=this.tt.destroy()),this.renderer&&(this.renderer=this.renderer.destroy(),M(this.container)),$.clearTimeout(this.hideTimer),$.clearTimeout(this.tooltipTimeout)},x.prototype.getAnchor=function(c,g){var r,a=this.chart,t=a.pointer,i=a.inverted,o=a.plotTop,e=a.plotLeft;if((c=S(c))[0].series&&c[0].series.yAxis&&!c[0].series.yAxis.options.reversedStacks&&(c=c.slice().reverse()),this.followPointer&&g)g.chartX===void 0&&(g=t.normalize(g)),r=[g.chartX-e,g.chartY-o];else if(c[0].tooltipPos)r=c[0].tooltipPos;else{var s=0,n=0;c.forEach(function(l){var b=l.pos(!0);b&&(s+=b[0],n+=b[1])}),s/=c.length,n/=c.length,this.shared&&c.length>1&&g&&(i?s=g.chartX:n=g.chartY),r=[s-e,n-o]}return r.map(Math.round)},x.prototype.getClassName=function(c,g,r){var a=this.options,t=c.series,i=t.options;return[a.className,"highcharts-label",r&&"highcharts-tooltip-header",g?"highcharts-tooltip-box":"highcharts-tooltip",!r&&"highcharts-color-"+v(c.colorIndex,t.colorIndex),i&&i.className].filter(m).join(" ")},x.prototype.getLabel=function(){var c,g=this,r=this.chart.styledMode,a=this.options,t=this.split&&this.allowShared,i=a.style.pointerEvents||(this.shouldStickOnContact()?"auto":"none"),o=this.chart.renderer;if(g.label){var e=!g.label.hasClass("highcharts-label");(t&&!e||!t&&e)&&g.destroy()}if(!this.label){if(this.outside){var s=this.chart.options.chart.style,n=U.getRendererType();this.container=c=B.doc.createElement("div"),c.className="highcharts-tooltip-container",E(c,{position:"absolute",top:"1px",pointerEvents:i,zIndex:Math.max(this.options.style.zIndex||0,(s&&s.zIndex||0)+3)}),B.doc.body.appendChild(c),this.renderer=o=new n(c,0,0,s,void 0,void 0,o.styledMode)}if(t?this.label=o.g("tooltip"):(this.label=o.label("",0,0,a.shape,void 0,void 0,a.useHTML,void 0,"tooltip").attr({padding:a.padding,r:a.borderRadius}),r||this.label.attr({fill:a.backgroundColor,"stroke-width":a.borderWidth}).css(a.style).css({pointerEvents:i}).shadow(a.shadow)),r&&a.shadow&&(this.applyFilter(),this.label.attr({filter:"url(#drop-shadow-"+this.chart.index+")"})),g.outside&&!g.split){var l=this.label,b=l.xSetter,k=l.ySetter;l.xSetter=function(D){b.call(l,g.distance),c.style.left=D+"px"},l.ySetter=function(D){k.call(l,g.distance),c.style.top=D+"px"}}this.label.attr({zIndex:8}).add()}return this.label},x.prototype.getPosition=function(c,g,r){var a,t=this.chart,i=this.distance,o={},e=t.inverted&&r.h||0,s=this.outside,n=s?V.documentElement.clientWidth-2*i:t.chartWidth,l=s?Math.max(V.body.scrollHeight,V.documentElement.scrollHeight,V.body.offsetHeight,V.documentElement.offsetHeight,V.documentElement.clientHeight):t.chartHeight,b=t.pointer.getChartPosition(),k=function(H){return H*b.scaleX},D=function(H){return H*b.scaleY},d=function(H){var W=H==="x";return[H,W?n:l,W?c:g].concat(s?[W?k(c):D(g),W?b.left-i+k(r.plotX+t.plotLeft):b.top-i+D(r.plotY+t.plotTop),0,W?n:l]:[W?c:g,W?r.plotX+t.plotLeft:r.plotY+t.plotTop,W?t.plotLeft:t.plotTop,W?t.plotLeft+t.plotWidth:t.plotTop+t.plotHeight])},C=d("y"),A=d("x"),N=!!r.negative;!t.polar&&t.hoverSeries&&t.hoverSeries.yAxis&&t.hoverSeries.yAxis.reversed&&(N=!N);var R=!this.followPointer&&v(r.ttBelow,!t.inverted===N),L=function(H,W,q,Q,J,nt,lt){var gt=s?H==="y"?D(i):k(i):i,mt=(q-Q)/2,bt=Q<J-i,yt=J+i+Q<W,dt=J-gt-q+mt,ot=J+gt-mt;if(R&&yt)o[H]=ot;else if(!R&&bt)o[H]=dt;else if(bt)o[H]=Math.min(lt-Q,dt-e<0?dt:dt-e);else{if(!yt)return!1;o[H]=Math.max(nt,ot+e+q>W?ot:ot+e)}},O=function(H,W,q,Q,J){var nt;return J<i||J>W-i?nt=!1:o[H]=J<q/2?1:J>W-Q/2?W-Q-2:J-q/2,nt},j=function(H){var W=C;C=A,A=W,a=H},Y=function(){L.apply(0,C)!==!1?O.apply(0,A)!==!1||a||(j(!0),Y()):a?o.x=o.y=0:(j(!0),Y())};return(t.inverted||this.len>1)&&j(),Y(),o},x.prototype.hide=function(c){var g=this;$.clearTimeout(this.hideTimer),c=v(c,this.options.hideDelay),this.isHidden||(this.hideTimer=w(function(){g.getLabel().fadeOut(c&&void 0),g.isHidden=!0},c))},x.prototype.init=function(c,g){this.chart=c,this.options=g,this.crosshairs=[],this.now={x:0,y:0},this.isHidden=!0,this.split=g.split&&!c.inverted&&!c.polar,this.shared=g.shared||this.split,this.outside=v(g.outside,!!(c.scrollablePixelsX||c.scrollablePixelsY))},x.prototype.shouldStickOnContact=function(c){return!(this.followPointer||!this.options.stickOnContact||c&&!this.chart.pointer.inClass(c.target,"highcharts-tooltip"))},x.prototype.move=function(c,g,r,a){var t=this,i=t.now,o=t.options.animation!==!1&&!t.isHidden&&(Math.abs(c-i.x)>1||Math.abs(g-i.y)>1),e=t.followPointer||t.len>1;P(i,{x:o?(2*i.x+c)/3:c,y:o?(i.y+g)/2:g,anchorX:e?void 0:o?(2*i.anchorX+r)/3:r,anchorY:e?void 0:o?(i.anchorY+a)/2:a}),t.getLabel().attr(i),t.drawTracker(),o&&($.clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout(function(){t&&t.move(c,g,r,a)},32))},x.prototype.refresh=function(c,g){var r=this,a=this.chart,t=r.options,i=a.pointer,o=S(c),e=o[0],s=[],n=t.formatter||r.defaultFormatter,l=r.shared,b=a.styledMode,k={};if(t.enabled&&e.series){$.clearTimeout(this.hideTimer),r.allowShared=!(!h(c)&&c.series&&c.series.noSharedTooltip),r.followPointer=!r.split&&e.series.tooltipOptions.followPointer;var D=r.getAnchor(c,g),d=D[0],C=D[1];l&&r.allowShared?(i.applyInactiveState(o),o.forEach(function(j){j.setState("hover"),s.push(j.getLabelConfig())}),(k={x:e.category,y:e.y}).points=s):k=e.getLabelConfig(),this.len=s.length;var A=n.call(k,r),N=e.series;if(this.distance=v(N.tooltipOptions.distance,16),A===!1)this.hide();else{if(r.split&&r.allowShared)this.renderSplit(A,o);else{var R=d,L=C;if(g&&i.isDirectTouch&&(R=g.chartX-a.plotLeft,L=g.chartY-a.plotTop),!a.polar&&N.options.clip!==!1&&!o.some(function(j){return i.isDirectTouch||j.series.shouldShowTooltip(R,L)}))return void r.hide();var O=r.getLabel();t.style.width&&!b||O.css({width:a.spacingBox.width+"px"}),O.attr({text:A&&A.join?A.join(""):A}),O.addClass(r.getClassName(e),!0),b||O.attr({stroke:t.borderColor||e.color||N.color||"#666666"}),r.updatePosition({plotX:d,plotY:C,negative:e.negative,ttBelow:e.ttBelow,h:D[2]||0})}r.isHidden&&r.label&&r.label.attr({opacity:1}).show(),r.isHidden=!1}y(this,"refresh")}},x.prototype.renderSplit=function(c,g){var r=this,a=r.chart,t=r.chart,i=t.chartWidth,o=t.chartHeight,e=t.plotHeight,s=t.plotLeft,n=t.plotTop,l=t.pointer,b=t.scrollablePixelsY,k=b===void 0?0:b,D=t.scrollablePixelsX,d=t.scrollingContainer,C=d===void 0?{scrollLeft:0,scrollTop:0}:d,A=C.scrollLeft,N=C.scrollTop,R=t.styledMode,L=r.distance,O=r.options,j=r.options.positioner,Y=r.outside&&typeof D!="number"?V.documentElement.getBoundingClientRect():{left:A,right:A+i,top:N,bottom:N+o},H=r.getLabel(),W=this.renderer||a.renderer,q=!!(a.xAxis[0]&&a.xAxis[0].opposite),Q=l.getChartPosition(),J=Q.left,nt=Q.top,lt=n+N,gt=0,mt=e-k;function bt(wt,Tt,Lt,Pt,Dt){var jt,Ot;return Dt===void 0&&(Dt=!0),Lt?(jt=q?0:mt,Ot=I(wt-Pt/2,Y.left,Y.right-Pt-(r.outside?J:0))):(jt=Tt-lt,Ot=I(Ot=Dt?wt-Pt-L:wt+L,Dt?Ot:Y.left,Y.right)),{x:Ot,y:jt}}m(c)&&(c=[!1,c]);var yt=c.slice(0,g.length+1).reduce(function(wt,Tt,Lt){if(Tt!==!1&&Tt!==""){var Pt=g[Lt-1]||{isHeader:!0,plotX:g[0].plotX,plotY:e,series:{}},Dt=Pt.isHeader,jt=Dt?r:Pt.series,Ot=jt.tt=function(Ut,te,ye){var Et=Ut,Gt=te.isHeader,Yt=te.series;if(!Et){var $t={padding:O.padding,r:O.borderRadius};R||($t.fill=O.backgroundColor,$t["stroke-width"]=O.borderWidth),Et=W.label("",0,0,O[Gt?"headerShape":"shape"],void 0,void 0,O.useHTML).addClass(r.getClassName(te,!0,Gt)).attr($t).add(H)}return Et.isActive=!0,Et.attr({text:ye}),R||Et.css(O.style).shadow(O.shadow).attr({stroke:O.borderColor||te.color||Yt.color||"#333333"}),Et}(jt.tt,Pt,Tt.toString()),It=Ot.getBBox(),Nt=It.width+Ot.strokeWidth();Dt&&(gt=It.height,mt+=gt,q&&(lt-=gt));var Zt=function(Ut){var te,ye,Et=Ut.isHeader,Gt=Ut.plotX,Yt=Gt===void 0?0:Gt,$t=Ut.plotY,ce=$t===void 0?0:$t,pe=Ut.series;if(Et)te=s+Yt,ye=n+e/2;else{var Wt=pe.xAxis,At=pe.yAxis;te=Wt.pos+I(Yt,-L,Wt.len+L),pe.shouldShowTooltip(0,At.pos-n+ce,{ignoreX:!0})&&(ye=At.pos+ce)}return{anchorX:te=I(te,Y.left-L,Y.right+L),anchorY:ye}}(Pt),zt=Zt.anchorX,Xt=Zt.anchorY;if(typeof Xt=="number"){var Kt=It.height+1,me=j?j.call(r,Nt,Kt,Pt):bt(zt,Xt,Dt,Nt);wt.push({align:j?0:void 0,anchorX:zt,anchorY:Xt,boxWidth:Nt,point:Pt,rank:v(me.rank,Dt?1:0),size:Kt,target:me.y,tt:Ot,x:me.x})}else Ot.isActive=!1}return wt},[]);!j&&yt.some(function(wt){var Tt=(r.outside?J:0)+wt.anchorX;return Tt<Y.left&&Tt+wt.boxWidth<Y.right||Tt<J-Y.left+wt.boxWidth&&Y.right-Tt>Tt})&&(yt=yt.map(function(wt){var Tt=bt(wt.anchorX,wt.anchorY,wt.point.isHeader,wt.boxWidth,!1),Lt=Tt.x,Pt=Tt.y;return P(wt,{target:Pt,x:Lt})})),r.cleanSplit(),z(yt,mt);var dt={left:J,right:J};yt.forEach(function(wt){var Tt=wt.x,Lt=wt.boxWidth,Pt=wt.isHeader;Pt||(r.outside&&J+Tt<dt.left&&(dt.left=J+Tt),!Pt&&r.outside&&dt.left+Lt>dt.right&&(dt.right=J+Tt))}),yt.forEach(function(wt){var Tt=wt.x,Lt=wt.anchorX,Pt=wt.anchorY,Dt=wt.pos,jt=wt.point.isHeader,Ot={visibility:Dt===void 0?"hidden":"inherit",x:Tt,y:(Dt||0)+lt,anchorX:Lt,anchorY:Pt};if(r.outside&&Tt<Lt){var It=J-dt.left;It>0&&(jt||(Ot.x=Tt+It,Ot.anchorX=Lt+It),jt&&(Ot.x=(dt.right-dt.left)/2,Ot.anchorX=Lt+It))}wt.tt.attr(Ot)});var ot=r.container,at=r.outside,ut=r.renderer;if(at&&ot&&ut){var vt=H.getBBox(),Ct=vt.width,xt=vt.height,St=vt.x,Mt=vt.y;ut.setSize(Ct+St,xt+Mt,!1),ot.style.left=dt.left+"px",ot.style.top=nt+"px"}},x.prototype.drawTracker=function(){var c=this;if(this.shouldStickOnContact()){var g=c.chart,r=c.label,a=c.shared?g.hoverPoints:g.hoverPoint;if(r&&a){var t={x:0,y:0,width:0,height:0},i=this.getAnchor(a),o=r.getBBox();i[0]+=g.plotLeft-r.translateX,i[1]+=g.plotTop-r.translateY,t.x=Math.min(0,i[0]),t.y=Math.min(0,i[1]),t.width=i[0]<0?Math.max(Math.abs(i[0]),o.width-i[0]):Math.max(Math.abs(i[0]),o.width),t.height=i[1]<0?Math.max(Math.abs(i[1]),o.height-Math.abs(i[1])):Math.max(Math.abs(i[1]),o.height),c.tracker?c.tracker.attr(t):(c.tracker=r.renderer.rect(t).addClass("highcharts-tracker").add(r),g.styledMode||c.tracker.attr({fill:"rgba(0,0,0,0)"}))}}else c.tracker&&c.tracker.destroy()},x.prototype.styledModeFormat=function(c){return c.replace('style="font-size: 10px"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex} {series.options.className} {point.options.className}"')},x.prototype.tooltipFooterHeaderFormatter=function(c,g){var r=c.series,a=r.tooltipOptions,t=r.xAxis,i=t&&t.dateTime,o={isFooter:g,labelConfig:c},e=a.xDateFormat,s=a[g?"footerFormat":"headerFormat"];return y(this,"headerFormatter",o,function(n){i&&!e&&f(c.key)&&(e=i.getXDateFormat(c.key,a.dateTimeLabelFormats)),i&&e&&(c.point&&c.point.tooltipDateKeys||["key"]).forEach(function(l){s=s.replace("{point."+l+"}","{point."+l+":"+e+"}")}),r.chart.styledMode&&(s=this.styledModeFormat(s)),n.text=Z(s,{point:c,series:r},this.chart)}),o.text},x.prototype.update=function(c){this.destroy(),u(!0,this.chart.options.tooltip.userOptions,c),this.init(this.chart,u(!0,this.options,c))},x.prototype.updatePosition=function(c){var g,r=this,a=r.chart,t=r.distance,i=r.options,o=a.pointer,e=this.getLabel(),s=o.getChartPosition(),n=s.left,l=s.top,b=s.scaleX,k=s.scaleY,D=(i.positioner||this.getPosition).call(this,e.width,e.height,c),d=(c.plotX||0)+a.plotLeft,C=(c.plotY||0)+a.plotTop;this.outside&&(i.positioner&&(D.x+=n-t,D.y+=l-t),g=i.borderWidth+2*t,this.renderer.setSize(e.width+g,e.height+g,!1),b===1&&k===1||(E(this.container,{transform:"scale(".concat(b,", ").concat(k,")")}),d*=b,C*=k),d+=n-D.x,C+=l-D.y),this.move(Math.round(D.x),Math.round(D.y||0),d,C)},x}()}),et(_,"Core/Series/Point.js",[_["Core/Renderer/HTML/AST.js"],_["Core/Animation/AnimationUtilities.js"],_["Core/Defaults.js"],_["Core/FormatUtilities.js"],_["Core/Utilities.js"]],function(G,B,X,U,$){var Z=B.animObject,V=X.defaultOptions,z=U.format,I=$.addEvent,E=$.defined,M=$.erase,P=$.extend,y=$.fireEvent,h=$.getNestedProperty,f=$.isArray,m=$.isFunction,u=$.isNumber,v=$.isObject,S=$.merge,w=$.objectEach,x=$.pick,c=$.syncTimeout,g=$.removeEvent,r=$.uniqueKey;return function(){function a(){this.category=void 0,this.formatPrefix="point",this.id=void 0,this.isNull=!1,this.name=void 0,this.options=void 0,this.percentage=void 0,this.selected=!1,this.series=void 0,this.shapeArgs=void 0,this.total=void 0,this.visible=!0,this.x=void 0}return a.prototype.animateBeforeDestroy=function(){var t=this,i={x:t.startXPos,opacity:0},o=t.getGraphicalProps();o.singular.forEach(function(e){var s=e==="dataLabel";t[e]=t[e].animate(s?{x:t[e].startXPos,y:t[e].startYPos,opacity:0}:i)}),o.plural.forEach(function(e){t[e].forEach(function(s){s.element&&s.animate(P({x:t.startXPos},s.startYPos?{x:s.startXPos,y:s.startYPos}:{}))})})},a.prototype.applyOptions=function(t,i){var o=this,e=o.series,s=e.options.pointValKey||e.pointValKey;return t=a.prototype.optionsToObject.call(this,t),P(o,t),o.options=o.options?P(o.options,t):t,t.group&&delete o.group,t.dataLabels&&delete o.dataLabels,s&&(o.y=a.prototype.getNestedProperty.call(o,s)),o.isNull=this.isValid&&!this.isValid(),o.formatPrefix=o.isNull?"null":"point",o.selected&&(o.state="select"),"name"in o&&i===void 0&&e.xAxis&&e.xAxis.hasNames&&(o.x=e.xAxis.nameToX(o)),o.x===void 0&&e?o.x=i===void 0?e.autoIncrement():i:u(t.x)&&e.options.relativeXValue&&(o.x=e.autoIncrement(t.x)),o},a.prototype.destroy=function(){var t,i=this,o=i.series,e=o.chart,s=o.options.dataSorting,n=e.hoverPoints,l=i.series.chart.renderer.globalAnimation,b=Z(l);function k(){for(t in(i.graphic||i.graphics||i.dataLabel||i.dataLabels)&&(g(i),i.destroyElements()),i)i[t]=null}i.legendItem&&e.legend.destroyItem(i),n&&(i.setState(),M(n,i),n.length||(e.hoverPoints=null)),i===e.hoverPoint&&i.onMouseOut(),s&&s.enabled?(this.animateBeforeDestroy(),c(k,b.duration)):k(),e.pointCount--},a.prototype.destroyElements=function(t){var i=this,o=i.getGraphicalProps(t);o.singular.forEach(function(e){i[e]=i[e].destroy()}),o.plural.forEach(function(e){i[e].forEach(function(s){s&&s.element&&s.destroy()}),delete i[e]})},a.prototype.firePointEvent=function(t,i,o){var e=this,s=this.series.options;(s.point.events[t]||e.options&&e.options.events&&e.options.events[t])&&e.importEvents(),t==="click"&&s.allowPointSelect&&(o=function(n){e.select&&e.select(null,n.ctrlKey||n.metaKey||n.shiftKey)}),y(e,t,i,o)},a.prototype.getClassName=function(){var t=this;return"highcharts-point"+(t.selected?" highcharts-point-select":"")+(t.negative?" highcharts-negative":"")+(t.isNull?" highcharts-null-point":"")+(t.colorIndex!==void 0?" highcharts-color-"+t.colorIndex:"")+(t.options.className?" "+t.options.className:"")+(t.zone&&t.zone.className?" "+t.zone.className.replace("highcharts-negative",""):"")},a.prototype.getGraphicalProps=function(t){var i,o,e=this,s=[],n={singular:[],plural:[]};for((t=t||{graphic:1,dataLabel:1}).graphic&&s.push("graphic","shadowGroup"),t.dataLabel&&s.push("dataLabel","dataLabelPath","dataLabelUpper","connector"),o=s.length;o--;)i=s[o],e[i]&&n.singular.push(i);return["graphic","dataLabel","connector"].forEach(function(l){var b=l+"s";t[l]&&e[b]&&n.plural.push(b)}),n},a.prototype.getLabelConfig=function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},a.prototype.getNestedProperty=function(t){if(t)return t.indexOf("custom.")===0?h(t,this.options):this[t]},a.prototype.getZone=function(){var t,i=this.series,o=i.zones,e=i.zoneAxis||"y",s=0;for(t=o[s];this[e]>=t.value;)t=o[++s];return this.nonZonedColor||(this.nonZonedColor=this.color),t&&t.color&&!this.options.color?this.color=t.color:this.color=this.nonZonedColor,t},a.prototype.hasNewShapeType=function(){var t=this;return(t.graphic&&(t.graphic.symbolName||t.graphic.element.nodeName))!==this.shapeType},a.prototype.init=function(t,i,o){return this.series=t,this.applyOptions(i,o),this.id=E(this.id)?this.id:r(),this.resolveColor(),t.chart.pointCount++,y(this,"afterInit"),this},a.prototype.isValid=function(){return this.x!==null&&u(this.y)},a.prototype.optionsToObject=function(t){var i,o=this.series,e=o.options.keys,s=e||o.pointArrayMap||["y"],n=s.length,l={},b=0,k=0;if(u(t)||t===null)l[s[0]]=t;else if(f(t))for(!e&&t.length>n&&((i=typeof t[0])=="string"?l.name=t[0]:i==="number"&&(l.x=t[0]),b++);k<n;)e&&t[b]===void 0||(s[k].indexOf(".")>0?a.prototype.setNestedProperty(l,t[b],s[k]):l[s[k]]=t[b]),b++,k++;else typeof t=="object"&&(l=t,t.dataLabels&&(o._hasPointLabels=!0),t.marker&&(o._hasPointMarkers=!0));return l},a.prototype.pos=function(t,i){i===void 0&&(i=this.plotY);var o=this.plotX,e=this.series,s=e.chart,n=e.xAxis,l=e.yAxis,b=0,k=0;if(u(o)&&u(i))return t&&(b=n?n.pos:s.plotLeft,k=l?l.pos:s.plotTop),s.inverted&&n&&l?[l.len-i+k,n.len-o+b]:[o+b,i+k]},a.prototype.resolveColor=function(){var t,i,o,e=this.series,s=e.chart.options.chart,n=e.chart.styledMode,l=s.colorCount;delete this.nonZonedColor,e.options.colorByPoint?(n||(t=(i=e.options.colors||e.chart.options.colors)[e.colorCounter],l=i.length),o=e.colorCounter,e.colorCounter++,e.colorCounter===l&&(e.colorCounter=0)):(n||(t=e.color),o=e.colorIndex),this.colorIndex=x(this.options.colorIndex,o),this.color=x(this.options.color,t)},a.prototype.setNestedProperty=function(t,i,o){return o.split(".").reduce(function(e,s,n,l){var b=l.length-1===n;return e[s]=b?i:v(e[s],!0)?e[s]:{},e[s]},t),t},a.prototype.shouldDraw=function(){return!this.isNull},a.prototype.tooltipFormatter=function(t){var i=this.series,o=i.tooltipOptions,e=x(o.valueDecimals,""),s=o.valuePrefix||"",n=o.valueSuffix||"";return i.chart.styledMode&&(t=i.chart.tooltip.styledModeFormat(t)),(i.pointArrayMap||["y"]).forEach(function(l){l="{point."+l,(s||n)&&(t=t.replace(RegExp(l+"}","g"),s+l+"}"+n)),t=t.replace(RegExp(l+"}","g"),l+":,."+e+"f}")}),z(t,{point:this,series:this.series},i.chart)},a.prototype.update=function(t,i,o,e){var s,n=this,l=n.series,b=n.graphic,k=l.chart,D=l.options;function d(){n.applyOptions(t);var C=b&&n.hasMockGraphic,A=n.y===null?!C:C;b&&A&&(n.graphic=b.destroy(),delete n.hasMockGraphic),v(t,!0)&&(b&&b.element&&t&&t.marker&&t.marker.symbol!==void 0&&(n.graphic=b.destroy()),t&&t.dataLabels&&n.dataLabel&&(n.dataLabel=n.dataLabel.destroy()),n.connector&&(n.connector=n.connector.destroy())),s=n.index,l.updateParallelArrays(n,s),D.data[s]=v(D.data[s],!0)||v(t,!0)?n.options:x(t,D.data[s]),l.isDirty=l.isDirtyData=!0,!l.fixedBox&&l.hasCartesianSeries&&(k.isDirtyBox=!0),D.legendType==="point"&&(k.isDirtyLegend=!0),i&&k.redraw(o)}i=x(i,!0),e===!1?d():n.firePointEvent("update",{options:t},d)},a.prototype.remove=function(t,i){this.series.removePoint(this.series.data.indexOf(this),t,i)},a.prototype.select=function(t,i){var o=this,e=o.series,s=e.chart;t=x(t,!o.selected),this.selectedStaging=t,o.firePointEvent(t?"select":"unselect",{accumulate:i},function(){o.selected=o.options.selected=t,e.options.data[e.data.indexOf(o)]=o.options,o.setState(t&&"select"),i||s.getSelectedPoints().forEach(function(n){var l=n.series;n.selected&&n!==o&&(n.selected=n.options.selected=!1,l.options.data[l.data.indexOf(n)]=n.options,n.setState(s.hoverPoints&&l.options.inactiveOtherPoints?"inactive":""),n.firePointEvent("unselect"))})}),delete this.selectedStaging},a.prototype.onMouseOver=function(t){var i=this,o=i.series.chart,e=o.pointer;t=t?e.normalize(t):e.getChartCoordinatesFromPoint(i,o.inverted),e.runPointActions(t,i)},a.prototype.onMouseOut=function(){var t=this,i=t.series.chart;t.firePointEvent("mouseOut"),t.series.options.inactiveOtherPoints||(i.hoverPoints||[]).forEach(function(o){o.setState()}),i.hoverPoints=i.hoverPoint=null},a.prototype.importEvents=function(){if(!this.hasImportedEvents){var t=this,i=S(t.series.options.point,t.options).events;t.events=i,w(i,function(o,e){m(o)&&I(t,e,o)}),this.hasImportedEvents=!0}},a.prototype.setState=function(t,i){var o,e,s,n,l=this,b=l.series,k=l.state,D=b.options.states[t||"normal"]||{},d=V.plotOptions[b.type].marker&&b.options.marker,C=d&&d.enabled===!1,A=d&&d.states&&d.states[t||"normal"]||{},N=A.enabled===!1,R=l.marker||{},L=b.chart,O=d&&b.markerAttribs,j=b.halo,Y=b.stateMarkerGraphic;if(!((t=t||"")===l.state&&!i||l.selected&&t!=="select"||D.enabled===!1||t&&(N||C&&A.enabled===!1)||t&&R.states&&R.states[t]&&R.states[t].enabled===!1)){if(l.state=t,O&&(o=b.markerAttribs(l,t)),l.graphic&&!l.hasMockGraphic){if(k&&l.graphic.removeClass("highcharts-point-"+k),t&&l.graphic.addClass("highcharts-point-"+t),!L.styledMode){e=b.pointAttribs(l,t),s=x(L.options.chart.animation,D.animation);var H=e.opacity;b.options.inactiveOtherPoints&&u(H)&&((l.dataLabels||[]).forEach(function(J){J&&!J.hasClass("highcharts-data-label-hidden")&&J.animate({opacity:H},s)}),l.connector&&l.connector.animate({opacity:H},s)),l.graphic.animate(e,s)}o&&l.graphic.animate(o,x(L.options.chart.animation,A.animation,d.animation)),Y&&Y.hide()}else t&&A&&(n=R.symbol||b.symbol,Y&&Y.currentSymbol!==n&&(Y=Y.destroy()),o&&(Y?Y[i?"animate":"attr"]({x:o.x,y:o.y}):n&&(b.stateMarkerGraphic=Y=L.renderer.symbol(n,o.x,o.y,o.width,o.height).add(b.markerGroup),Y.currentSymbol=n)),!L.styledMode&&Y&&l.state!=="inactive"&&Y.attr(b.pointAttribs(l,t))),Y&&(Y[t&&l.isInside?"show":"hide"](),Y.element.point=l,Y.addClass(l.getClassName(),!0));var W=D.halo,q=l.graphic||Y,Q=q&&q.visibility||"inherit";W&&W.size&&q&&Q!=="hidden"&&!l.isCluster?(j||(b.halo=j=L.renderer.path().add(q.parentGroup)),j.show()[i?"animate":"attr"]({d:l.haloPath(W.size)}),j.attr({class:"highcharts-halo highcharts-color-"+x(l.colorIndex,b.colorIndex)+(l.className?" "+l.className:""),visibility:Q,zIndex:-1}),j.point=l,L.styledMode||j.attr(P({fill:l.color||b.color,"fill-opacity":W.opacity},G.filterUserAttributes(W.attributes||{})))):j&&j.point&&j.point.haloPath&&j.animate({d:j.point.haloPath(0)},null,j.hide),y(l,"afterSetState",{state:t})}},a.prototype.haloPath=function(t){var i=this.pos();return i?this.series.chart.renderer.symbols.circle(Math.floor(i[0])-t,i[1]-t,2*t,2*t):[]},a}()}),et(_,"Core/Pointer.js",[_["Core/Color/Color.js"],_["Core/Globals.js"],_["Core/Tooltip.js"],_["Core/Utilities.js"]],function(G,B,X,U){var $=G.parse,Z=B.charts,V=B.noop,z=U.addEvent,I=U.attr,E=U.css,M=U.defined,P=U.extend,y=U.find,h=U.fireEvent,f=U.isNumber,m=U.isObject,u=U.objectEach,v=U.offset,S=U.pick,w=U.splat;return function(){function x(c,g){this.lastValidTouch={},this.pinchDown=[],this.runChartClick=!1,this.eventsToUnbind=[],this.chart=c,this.hasDragged=!1,this.options=g,this.init(c,g)}return x.prototype.applyInactiveState=function(c){var g,r=[];(c||[]).forEach(function(a){g=a.series,r.push(g),g.linkedParent&&r.push(g.linkedParent),g.linkedSeries&&(r=r.concat(g.linkedSeries)),g.navigatorSeries&&r.push(g.navigatorSeries)}),this.chart.series.forEach(function(a){r.indexOf(a)===-1?a.setState("inactive",!0):a.options.inactiveOtherPoints&&a.setAllPointsToState("inactive")})},x.prototype.destroy=function(){var c=this;this.eventsToUnbind.forEach(function(g){return g()}),this.eventsToUnbind=[],B.chartCount||(x.unbindDocumentMouseUp&&(x.unbindDocumentMouseUp=x.unbindDocumentMouseUp()),x.unbindDocumentTouchEnd&&(x.unbindDocumentTouchEnd=x.unbindDocumentTouchEnd())),clearInterval(c.tooltipTimeout),u(c,function(g,r){c[r]=void 0})},x.prototype.getSelectionMarkerAttrs=function(c,g){var r=this,a={args:{chartX:c,chartY:g},attrs:{},shapeType:"rect"};return h(this,"getSelectionMarkerAttrs",a,function(t){var i,o=r,e=o.chart,s=o.mouseDownX,n=s===void 0?0:s,l=o.mouseDownY,b=l===void 0?0:l,k=o.zoomHor,D=o.zoomVert,d=t.attrs;d.x=e.plotLeft,d.y=e.plotTop,d.width=k?1:e.plotWidth,d.height=D?1:e.plotHeight,k&&(i=c-n,d.width=Math.abs(i),d.x=(i>0?0:i)+n),D&&(i=g-b,d.height=Math.abs(i),d.y=(i>0?0:i)+b)}),a},x.prototype.drag=function(c){var g,r=this.chart,a=r.options.chart,t=r.plotLeft,i=r.plotTop,o=r.plotWidth,e=r.plotHeight,s=this.mouseDownX||0,n=this.mouseDownY||0,l=m(a.panning)?a.panning&&a.panning.enabled:a.panning,b=a.panKey&&c[a.panKey+"Key"],k=c.chartX,D=c.chartY,d=this.selectionMarker;if((!d||!d.touch)&&(k<t?k=t:k>t+o&&(k=t+o),D<i?D=i:D>i+e&&(D=i+e),this.hasDragged=Math.sqrt(Math.pow(s-k,2)+Math.pow(n-D,2)),this.hasDragged>10)){g=r.isInsidePlot(s-t,n-i,{visiblePlotOnly:!0});var C=this.getSelectionMarkerAttrs(k,D),A=C.shapeType,N=C.attrs;(r.hasCartesianSeries||r.mapView)&&(this.zoomX||this.zoomY)&&g&&!b&&(d||(this.selectionMarker=d=r.renderer[A](),d.attr({class:"highcharts-selection-marker",zIndex:7}).add(),r.styledMode||d.attr({fill:a.selectionMarkerFill||$("#335cad").setOpacity(.25).get()}))),d&&d.attr(N),g&&!d&&l&&r.pan(c,a.panning)}},x.prototype.dragStart=function(c){var g=this.chart;g.mouseIsDown=c.type,g.cancelClick=!1,g.mouseDownX=this.mouseDownX=c.chartX,g.mouseDownY=this.mouseDownY=c.chartY},x.prototype.getSelectionBox=function(c){var g={args:{marker:c},result:{}};return h(this,"getSelectionBox",g,function(r){r.result={x:c.attr?+c.attr("x"):c.x,y:c.attr?+c.attr("y"):c.y,width:c.attr?c.attr("width"):c.width,height:c.attr?c.attr("height"):c.height}}),g.result},x.prototype.drop=function(c){var g=this,r=this.chart,a=this.hasPinched;if(this.selectionMarker){var t=this.getSelectionBox(this.selectionMarker),i=t.x,o=t.y,e=t.width,s=t.height,n={originalEvent:c,xAxis:[],yAxis:[],x:i,y:o,width:e,height:s},l=!!r.mapView;(this.hasDragged||a)&&(r.axes.forEach(function(b){if(b.zoomEnabled&&M(b.min)&&(a||g[{xAxis:"zoomX",yAxis:"zoomY"}[b.coll]])&&f(i)&&f(o)&&f(e)&&f(s)){var k=b.horiz,D=c.type==="touchend"?b.minPixelPadding:0,d=b.toValue((k?i:o)+D),C=b.toValue((k?i+e:o+s)-D);n[b.coll].push({axis:b,min:Math.min(d,C),max:Math.max(d,C)}),l=!0}}),l&&h(r,"selection",n,function(b){r.zoom(P(b,a?{animation:!1}:null))})),f(r.index)&&(this.selectionMarker=this.selectionMarker.destroy()),a&&this.scaleGroups()}r&&f(r.index)&&(E(r.container,{cursor:r._cursor}),r.cancelClick=this.hasDragged>10,r.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])},x.prototype.findNearestKDPoint=function(c,g,r){var a;return c.forEach(function(t){var i,o,e,s,n,l=!(t.noSharedTooltip&&g)&&t.options.findNearestPointBy.indexOf("y")<0,b=t.searchPoint(r,l);m(b,!0)&&b.series&&(!m(a,!0)||(o=b,e=(i=a).distX-o.distX,s=i.dist-o.dist,n=(o.series.group&&o.series.group.zIndex)-(i.series.group&&i.series.group.zIndex),(e!==0&&g?e:s!==0?s:n!==0?n:i.series.index>o.series.index?-1:1)>0))&&(a=b)}),a},x.prototype.getChartCoordinatesFromPoint=function(c,g){var r=c.series,a=r.xAxis,t=r.yAxis,i=c.shapeArgs;if(a&&t){var o=S(c.clientX,c.plotX),e=c.plotY||0;return c.isNode&&i&&f(i.x)&&f(i.y)&&(o=i.x,e=i.y),g?{chartX:t.len+t.pos-e,chartY:a.len+a.pos-o}:{chartX:o+a.pos,chartY:e+t.pos}}if(i&&i.x&&i.y)return{chartX:i.x,chartY:i.y}},x.prototype.getChartPosition=function(){if(this.chartPosition)return this.chartPosition;var c=this.chart.container,g=v(c);this.chartPosition={left:g.left,top:g.top,scaleX:1,scaleY:1};var r=c.offsetWidth,a=c.offsetHeight;return r>2&&a>2&&(this.chartPosition.scaleX=g.width/r,this.chartPosition.scaleY=g.height/a),this.chartPosition},x.prototype.getCoordinates=function(c){var g={xAxis:[],yAxis:[]};return this.chart.axes.forEach(function(r){g[r.isXAxis?"xAxis":"yAxis"].push({axis:r,value:r.toValue(c[r.horiz?"chartX":"chartY"])})}),g},x.prototype.getHoverData=function(c,g,r,a,t,i){var o,e=[],s=!(!a||!c),n=function(D){return D.visible&&!(!t&&D.directTouch)&&S(D.options.enableMouseTracking,!0)},l=g,b={chartX:i?i.chartX:void 0,chartY:i?i.chartY:void 0,shared:t};h(this,"beforeGetHoverData",b),o=l&&!l.stickyTracking?[l]:r.filter(function(D){return D.stickyTracking&&(b.filter||n)(D)});var k=s||!i?c:this.findNearestKDPoint(o,t,i);return l=k&&k.series,k&&(t&&!l.noSharedTooltip?(o=r.filter(function(D){return b.filter?b.filter(D):n(D)&&!D.noSharedTooltip})).forEach(function(D){var d=y(D.points,function(C){return C.x===k.x&&!C.isNull});m(d)&&(D.boosted&&D.boost&&(d=D.boost.getPoint(d)),e.push(d))}):e.push(k)),h(this,"afterGetHoverData",b={hoverPoint:k}),{hoverPoint:b.hoverPoint,hoverSeries:l,hoverPoints:e}},x.prototype.getPointFromEvent=function(c){for(var g,r=c.target;r&&!g;)g=r.point,r=r.parentNode;return g},x.prototype.onTrackerMouseOut=function(c){var g=this.chart,r=c.relatedTarget||c.toElement,a=g.hoverSeries;this.isDirectTouch=!1,!a||!r||a.stickyTracking||this.inClass(r,"highcharts-tooltip")||this.inClass(r,"highcharts-series-"+a.index)&&this.inClass(r,"highcharts-tracker")||a.onMouseOut()},x.prototype.inClass=function(c,g){for(var r,a=c;a;){if(r=I(a,"class")){if(r.indexOf(g)!==-1)return!0;if(r.indexOf("highcharts-container")!==-1)return!1}a=a.parentElement}},x.prototype.init=function(c,g){this.options=g,this.chart=c,this.runChartClick=!!(g.chart.events&&g.chart.events.click),this.pinchDown=[],this.lastValidTouch={},X&&(c.tooltip=new X(c,g.tooltip)),this.setDOMEvents()},x.prototype.normalize=function(c,g){var r=c.touches,a=r?r.length?r.item(0):S(r.changedTouches,c.changedTouches)[0]:c;g||(g=this.getChartPosition());var t=a.pageX-g.left,i=a.pageY-g.top;return t/=g.scaleX,i/=g.scaleY,P(c,{chartX:Math.round(t),chartY:Math.round(i)})},x.prototype.onContainerClick=function(c){var g=this.chart,r=g.hoverPoint,a=this.normalize(c),t=g.plotLeft,i=g.plotTop;g.cancelClick||(r&&this.inClass(a.target,"highcharts-tracker")?(h(r.series,"click",P(a,{point:r})),g.hoverPoint&&r.firePointEvent("click",a)):(P(a,this.getCoordinates(a)),g.isInsidePlot(a.chartX-t,a.chartY-i,{visiblePlotOnly:!0})&&h(g,"click",a)))},x.prototype.onContainerMouseDown=function(c){var g=!(1&~(c.buttons||c.button));c=this.normalize(c),B.isFirefox&&c.button!==0&&this.onContainerMouseMove(c),(c.button===void 0||g)&&(this.zoomOption(c),g&&c.preventDefault&&c.preventDefault(),this.dragStart(c))},x.prototype.onContainerMouseLeave=function(c){var g=Z[S(x.hoverChartIndex,-1)],r=this.chart.tooltip;c=this.normalize(c),g&&(c.relatedTarget||c.toElement)&&(g.pointer.reset(),g.pointer.chartPosition=void 0),r&&!r.isHidden&&this.reset()},x.prototype.onContainerMouseEnter=function(c){delete this.chartPosition},x.prototype.onContainerMouseMove=function(c){var g=this.chart,r=g.tooltip,a=this.normalize(c);this.setHoverChartIndex(),a.preventDefault||(a.returnValue=!1),(g.mouseIsDown==="mousedown"||this.touchSelect(a))&&this.drag(a),g.openMenu||!this.inClass(a.target,"highcharts-tracker")&&!g.isInsidePlot(a.chartX-g.plotLeft,a.chartY-g.plotTop,{visiblePlotOnly:!0})||r&&r.shouldStickOnContact(a)||(this.inClass(a.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(a))},x.prototype.onDocumentTouchEnd=function(c){var g=Z[S(x.hoverChartIndex,-1)];g&&g.pointer.drop(c)},x.prototype.onContainerTouchMove=function(c){this.touchSelect(c)?this.onContainerMouseMove(c):this.touch(c)},x.prototype.onContainerTouchStart=function(c){this.touchSelect(c)?this.onContainerMouseDown(c):(this.zoomOption(c),this.touch(c,!0))},x.prototype.onDocumentMouseMove=function(c){var g=this.chart,r=g.tooltip,a=this.chartPosition,t=this.normalize(c,a);!a||g.isInsidePlot(t.chartX-g.plotLeft,t.chartY-g.plotTop,{visiblePlotOnly:!0})||r&&r.shouldStickOnContact(t)||this.inClass(t.target,"highcharts-tracker")||this.reset()},x.prototype.onDocumentMouseUp=function(c){var g=Z[S(x.hoverChartIndex,-1)];g&&g.pointer.drop(c)},x.prototype.pinch=function(c){var g=this,r=g.chart,a=g.pinchDown,t=c.touches||[],i=t.length,o=g.lastValidTouch,e=g.hasZoom,s={},n=i===1&&(g.inClass(c.target,"highcharts-tracker")&&r.runTrackerClick||g.runChartClick),l={},b=g.chart.tooltip,k=i===1&&S(b&&b.options.followTouchMove,!0),D=g.selectionMarker;i>1?g.initiated=!0:k&&(g.initiated=!1),e&&g.initiated&&!n&&c.cancelable!==!1&&c.preventDefault(),[].map.call(t,function(d){return g.normalize(d)}),c.type==="touchstart"?([].forEach.call(t,function(d,C){a[C]={chartX:d.chartX,chartY:d.chartY}}),o.x=[a[0].chartX,a[1]&&a[1].chartX],o.y=[a[0].chartY,a[1]&&a[1].chartY],r.axes.forEach(function(d){if(d.zoomEnabled){var C=r.bounds[d.horiz?"h":"v"],A=d.minPixelPadding,N=d.toPixels(Math.min(S(d.options.min,d.dataMin),d.dataMin)),R=d.toPixels(Math.max(S(d.options.max,d.dataMax),d.dataMax)),L=Math.min(N,R),O=Math.max(N,R);C.min=Math.min(d.pos,L-A),C.max=Math.max(d.pos+d.len,O+A)}}),g.res=!0):k?this.runPointActions(g.normalize(c)):a.length&&(h(r,"touchpan",{originalEvent:c},function(){D||(g.selectionMarker=D=P({destroy:V,touch:!0},r.plotBox)),g.pinchTranslate(a,t,s,D,l,o),g.hasPinched=e,g.scaleGroups(s,l)}),g.res&&(g.res=!1,this.reset(!1,0)))},x.prototype.pinchTranslate=function(c,g,r,a,t,i){this.zoomHor&&this.pinchTranslateDirection(!0,c,g,r,a,t,i),this.zoomVert&&this.pinchTranslateDirection(!1,c,g,r,a,t,i)},x.prototype.pinchTranslateDirection=function(c,g,r,a,t,i,o,e){var s,n,l,b,k=this.chart,D=c?"x":"y",d=c?"X":"Y",C="chart"+d,A=c?"width":"height",N=k["plot"+(c?"Left":"Top")],R=k.inverted,L=k.bounds[c?"h":"v"],O=g.length===1,j=g[0][C],Y=!O&&g[1][C],H=function(){typeof Q=="number"&&Math.abs(j-Y)>20&&(W=e||Math.abs(q-Q)/Math.abs(j-Y)),l=(N-q)/W+j,s=k["plot"+(c?"Width":"Height")]/W},W=e||1,q=r[0][C],Q=!O&&r[1][C];H(),(n=l)<L.min?(n=L.min,b=!0):n+s>L.max&&(n=L.max-s,b=!0),b?(q-=.8*(q-o[D][0]),typeof Q=="number"&&(Q-=.8*(Q-o[D][1])),H()):o[D]=[q,Q],R||(i[D]=l-N,i[A]=s);var J=R?c?"scaleY":"scaleX":"scale"+d,nt=R?1/W:W;t[A]=s,t[D]=n,a[J]=W,a["translate"+d]=nt*N+(q-nt*j)},x.prototype.reset=function(c,g){var r=this,a=r.chart,t=a.hoverSeries,i=a.hoverPoint,o=a.hoverPoints,e=a.tooltip,s=e&&e.shared?o:i;c&&s&&w(s).forEach(function(n){n.series.isCartesian&&n.plotX===void 0&&(c=!1)}),c?e&&s&&w(s).length&&(e.refresh(s),e.shared&&o?o.forEach(function(n){n.setState(n.state,!0),n.series.isCartesian&&(n.series.xAxis.crosshair&&n.series.xAxis.drawCrosshair(null,n),n.series.yAxis.crosshair&&n.series.yAxis.drawCrosshair(null,n))}):i&&(i.setState(i.state,!0),a.axes.forEach(function(n){n.crosshair&&i.series[n.coll]===n&&n.drawCrosshair(null,i)}))):(i&&i.onMouseOut(),o&&o.forEach(function(n){n.setState()}),t&&t.onMouseOut(),e&&e.hide(g),r.unDocMouseMove&&(r.unDocMouseMove=r.unDocMouseMove()),a.axes.forEach(function(n){n.hideCrosshair()}),r.hoverX=a.hoverPoints=a.hoverPoint=null)},x.prototype.runPointActions=function(c,g,r){var a=this,t=a.chart,i=t.series,o=t.tooltip&&t.tooltip.options.enabled?t.tooltip:void 0,e=!!o&&o.shared,s=g||t.hoverPoint,n=s&&s.series||t.hoverSeries,l=(!c||c.type!=="touchmove")&&(!!g||n&&n.directTouch&&a.isDirectTouch),b=this.getHoverData(s,n,i,l,e,c);s=b.hoverPoint,n=b.hoverSeries;var k=b.hoverPoints,D=n&&n.tooltipOptions.followPointer&&!n.tooltipOptions.split,d=e&&n&&!n.noSharedTooltip;if(s&&(r||s!==t.hoverPoint||o&&o.isHidden)){if((t.hoverPoints||[]).forEach(function(A){k.indexOf(A)===-1&&A.setState()}),t.hoverSeries!==n&&n.onMouseOver(),a.applyInactiveState(k),(k||[]).forEach(function(A){A.setState("hover")}),t.hoverPoint&&t.hoverPoint.firePointEvent("mouseOut"),!s.series)return;t.hoverPoints=k,t.hoverPoint=s,s.firePointEvent("mouseOver",void 0,function(){o&&s&&o.refresh(d?k:s,c)})}else if(D&&o&&!o.isHidden){var C=o.getAnchor([{}],c);t.isInsidePlot(C[0],C[1],{visiblePlotOnly:!0})&&o.updatePosition({plotX:C[0],plotY:C[1]})}a.unDocMouseMove||(a.unDocMouseMove=z(t.container.ownerDocument,"mousemove",function(A){var N=Z[x.hoverChartIndex];N&&N.pointer.onDocumentMouseMove(A)}),a.eventsToUnbind.push(a.unDocMouseMove)),t.axes.forEach(function(A){var N,R=S((A.crosshair||{}).snap,!0);R&&((N=t.hoverPoint)&&N.series[A.coll]===A||(N=y(k,function(L){return L.series&&L.series[A.coll]===A}))),N||!R?A.drawCrosshair(c,N):A.hideCrosshair()})},x.prototype.scaleGroups=function(c,g){var r=this.chart;r.series.forEach(function(a){var t=c||a.getPlotBox();a.group&&(a.xAxis&&a.xAxis.zoomEnabled||r.mapView)&&(a.group.attr(t),a.markerGroup&&(a.markerGroup.attr(t),a.markerGroup.clip(g?r.clipRect:null)),a.dataLabelsGroup&&a.dataLabelsGroup.attr(t))}),r.clipRect.attr(g||r.clipBox)},x.prototype.setDOMEvents=function(){var c=this,g=this.chart.container,r=g.ownerDocument;g.onmousedown=this.onContainerMouseDown.bind(this),g.onmousemove=this.onContainerMouseMove.bind(this),g.onclick=this.onContainerClick.bind(this),this.eventsToUnbind.push(z(g,"mouseenter",this.onContainerMouseEnter.bind(this))),this.eventsToUnbind.push(z(g,"mouseleave",this.onContainerMouseLeave.bind(this))),x.unbindDocumentMouseUp||(x.unbindDocumentMouseUp=z(r,"mouseup",this.onDocumentMouseUp.bind(this)));for(var a=this.chart.renderTo.parentElement;a&&a.tagName!=="BODY";)this.eventsToUnbind.push(z(a,"scroll",function(){delete c.chartPosition})),a=a.parentElement;B.hasTouch&&(this.eventsToUnbind.push(z(g,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1})),this.eventsToUnbind.push(z(g,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),x.unbindDocumentTouchEnd||(x.unbindDocumentTouchEnd=z(r,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})))},x.prototype.setHoverChartIndex=function(){var c=this.chart,g=B.charts[S(x.hoverChartIndex,-1)];g&&g!==c&&g.pointer.onContainerMouseLeave({relatedTarget:c.container}),g&&g.mouseIsDown||(x.hoverChartIndex=c.index)},x.prototype.touch=function(c,g){var r,a,t=this.chart;this.setHoverChartIndex(),c.touches.length===1?(c=this.normalize(c),t.isInsidePlot(c.chartX-t.plotLeft,c.chartY-t.plotTop,{visiblePlotOnly:!0})&&!t.openMenu?(g&&this.runPointActions(c),c.type==="touchmove"&&(r=!!(a=this.pinchDown)[0]&&Math.sqrt(Math.pow(a[0].chartX-c.chartX,2)+Math.pow(a[0].chartY-c.chartY,2))>=4),S(r,!0)&&this.pinch(c)):g&&this.reset()):c.touches.length===2&&this.pinch(c)},x.prototype.touchSelect=function(c){return!!(this.chart.options.chart.zooming.singleTouch&&c.touches&&c.touches.length===1)},x.prototype.zoomOption=function(c){var g,r,a=this.chart,t=a.options.chart,i=a.inverted,o=t.zooming.type||"";/touch/.test(c.type)&&(o=S(t.zooming.pinchType,o)),this.zoomX=g=/x/.test(o),this.zoomY=r=/y/.test(o),this.zoomHor=g&&!i||r&&i,this.zoomVert=r&&!i||g&&i,this.hasZoom=g||r},x}()}),et(_,"Core/MSPointer.js",[_["Core/Globals.js"],_["Core/Pointer.js"],_["Core/Utilities.js"]],function(G,B,X){var U,$=this&&this.__extends||(U=function(S,w){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,c){x.__proto__=c}||function(x,c){for(var g in c)c.hasOwnProperty(g)&&(x[g]=c[g])},U(S,w)},function(S,w){function x(){this.constructor=S}U(S,w),S.prototype=w===null?Object.create(w):(x.prototype=w.prototype,new x)}),Z=G.charts,V=G.doc,z=G.noop,I=G.win,E=X.addEvent,M=X.css,P=X.objectEach,y=X.pick,h=X.removeEvent,f={},m=!!I.PointerEvent;function u(S,w,x,c){var g,r=Z[B.hoverChartIndex||NaN];if((S.pointerType==="touch"||S.pointerType===S.MSPOINTER_TYPE_TOUCH)&&r){var a=r.pointer;c(S),a[w]({type:x,target:S.currentTarget,preventDefault:z,touches:(g=[],g.item=function(t){return this[t]},P(f,function(t){g.push({pageX:t.pageX,pageY:t.pageY,target:t.target})}),g)})}}var v=function(S){function w(){return S!==null&&S.apply(this,arguments)||this}return $(w,S),w.isRequired=function(){return!(G.hasTouch||!I.PointerEvent&&!I.MSPointerEvent)},w.prototype.batchMSEvents=function(x){x(this.chart.container,m?"pointerdown":"MSPointerDown",this.onContainerPointerDown),x(this.chart.container,m?"pointermove":"MSPointerMove",this.onContainerPointerMove),x(V,m?"pointerup":"MSPointerUp",this.onDocumentPointerUp)},w.prototype.destroy=function(){this.batchMSEvents(h),S.prototype.destroy.call(this)},w.prototype.init=function(x,c){S.prototype.init.call(this,x,c),this.hasZoom&&M(x.container,{"-ms-touch-action":"none","touch-action":"none"})},w.prototype.onContainerPointerDown=function(x){u(x,"onContainerTouchStart","touchstart",function(c){f[c.pointerId]={pageX:c.pageX,pageY:c.pageY,target:c.currentTarget}})},w.prototype.onContainerPointerMove=function(x){u(x,"onContainerTouchMove","touchmove",function(c){f[c.pointerId]={pageX:c.pageX,pageY:c.pageY},f[c.pointerId].target||(f[c.pointerId].target=c.currentTarget)})},w.prototype.onDocumentPointerUp=function(x){u(x,"onDocumentTouchEnd","touchend",function(c){delete f[c.pointerId]})},w.prototype.setDOMEvents=function(){var x=this.chart.tooltip;S.prototype.setDOMEvents.call(this),(this.hasZoom||y(x&&x.options.followTouchMove,!0))&&this.batchMSEvents(E)},w}(B);return v}),et(_,"Core/Legend/Legend.js",[_["Core/Animation/AnimationUtilities.js"],_["Core/FormatUtilities.js"],_["Core/Globals.js"],_["Core/Series/Point.js"],_["Core/Renderer/RendererUtilities.js"],_["Core/Utilities.js"]],function(G,B,X,U,$,Z){var V=G.animObject,z=G.setAnimation,I=B.format,E=X.marginNames,M=$.distribute,P=Z.addEvent,y=Z.createElement,h=Z.css,f=Z.defined,m=Z.discardElement,u=Z.find,v=Z.fireEvent,S=Z.isNumber,w=Z.merge,x=Z.pick,c=Z.relativeLength,g=Z.stableSort,r=Z.syncTimeout;return function(){function a(t,i){this.allItems=[],this.box=void 0,this.contentGroup=void 0,this.display=!1,this.group=void 0,this.initialItemY=0,this.itemHeight=0,this.itemMarginBottom=0,this.itemMarginTop=0,this.itemX=0,this.itemY=0,this.lastItemY=0,this.lastLineHeight=0,this.legendHeight=0,this.legendWidth=0,this.maxItemWidth=0,this.maxLegendWidth=0,this.offsetWidth=0,this.options=void 0,this.padding=0,this.pages=[],this.proximate=!1,this.scrollGroup=void 0,this.symbolHeight=0,this.symbolWidth=0,this.titleHeight=0,this.totalItemWidth=0,this.widthOption=0,this.chart=t,this.init(t,i)}return a.prototype.init=function(t,i){this.chart=t,this.setOptions(i),i.enabled&&(this.render(),P(this.chart,"endResize",function(){this.legend.positionCheckboxes()}),this.proximate?this.unchartrender=P(this.chart,"render",function(){this.legend.proximatePositions(),this.legend.positionItems()}):this.unchartrender&&this.unchartrender())},a.prototype.setOptions=function(t){var i=x(t.padding,8);this.options=t,this.chart.styledMode||(this.itemStyle=t.itemStyle,this.itemHiddenStyle=w(this.itemStyle,t.itemHiddenStyle)),this.itemMarginTop=t.itemMarginTop||0,this.itemMarginBottom=t.itemMarginBottom||0,this.padding=i,this.initialItemY=i-5,this.symbolWidth=x(t.symbolWidth,16),this.pages=[],this.proximate=t.layout==="proximate"&&!this.chart.inverted,this.baseline=void 0},a.prototype.update=function(t,i){var o=this.chart;this.setOptions(w(!0,this.options,t)),this.destroy(),o.isDirtyLegend=o.isDirtyBox=!0,x(i,!0)&&o.redraw(),v(this,"afterUpdate")},a.prototype.colorizeItem=function(t,i){var o=t.legendItem||{},e=o.group,s=o.label,n=o.line,l=o.symbol;if(e&&e[i?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){var b=this.options,k=this.itemHiddenStyle.color,D=i?b.itemStyle.color:k,d=i&&t.color||k,C=t.options&&t.options.marker,A={fill:d};s&&s.css({fill:D,color:D}),n&&n.attr({stroke:d}),l&&(C&&l.isMarker&&(A=t.pointAttribs(),i||(A.stroke=A.fill=k)),l.attr(A))}v(this,"afterColorizeItem",{item:t,visible:i})},a.prototype.positionItems=function(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()},a.prototype.positionItem=function(t){var i=this,o=t.legendItem||{},e=o.group,s=o.x,n=s===void 0?0:s,l=o.y,b=l===void 0?0:l,k=this.options,D=k.symbolPadding,d=!k.rtl,C=t.checkbox;if(e&&e.element){var A={translateX:d?n:this.legendWidth-n-2*D-4,translateY:b};e[f(e.translateY)?"animate":"attr"](A,void 0,function(){v(i,"afterPositionItem",{item:t})})}C&&(C.x=n,C.y=b)},a.prototype.destroyItem=function(t){for(var i=t.checkbox,o=t.legendItem||{},e=0,s=["group","label","line","symbol"];e<s.length;e++){var n=s[e];o[n]&&(o[n]=o[n].destroy())}i&&m(i),t.legendItem=void 0},a.prototype.destroy=function(){for(var t=this,i=0,o=this.getAllItems();i<o.length;i++){var e=o[i];this.destroyItem(e)}for(var s=0,n=["clipRect","up","down","pager","nav","box","title","group"];s<n.length;s++){var l=n[s];t[l]&&(t[l]=t[l].destroy())}this.display=null},a.prototype.positionCheckboxes=function(){var t,i=this.group&&this.group.alignAttr,o=this.clipHeight||this.legendHeight,e=this.titleHeight;i&&(t=i.translateY,this.allItems.forEach(function(s){var n,l=s.checkbox;l&&(n=t+e+l.y+(this.scrollOffset||0)+3,h(l,{left:i.translateX+s.checkboxOffset+l.x-20+"px",top:n+"px",display:this.proximate||n>t-6&&n<t+o-6?"":"none"}))},this))},a.prototype.renderTitle=function(){var t,i=this.options,o=this.padding,e=i.title,s=0;e.text&&(this.title||(this.title=this.chart.renderer.label(e.text,o-3,o-4,void 0,void 0,void 0,i.useHTML,void 0,"legend-title").attr({zIndex:1}),this.chart.styledMode||this.title.css(e.style),this.title.add(this.group)),e.width||this.title.css({width:this.maxLegendWidth+"px"}),s=(t=this.title.getBBox()).height,this.offsetWidth=t.width,this.contentGroup.attr({translateY:s})),this.titleHeight=s},a.prototype.setText=function(t){var i=this.options;t.legendItem.label.attr({text:i.labelFormat?I(i.labelFormat,t,this.chart):i.labelFormatter.call(t)})},a.prototype.renderItem=function(t){var i=this,o=t.legendItem=t.legendItem||{},e=i.chart,s=e.renderer,n=i.options,l=n.layout==="horizontal",b=i.symbolWidth,k=n.symbolPadding||0,D=i.itemStyle,d=i.itemHiddenStyle,C=l?x(n.itemDistance,20):0,A=!n.rtl,N=!t.series,R=!N&&t.series.drawLegendSymbol?t.series:t,L=R.options,O=i.createCheckboxForItem&&L&&L.showCheckbox,j=n.useHTML,Y=t.options.className,H=o.label,W=b+k+C+(O?20:0);H||(o.group=s.g("legend-item").addClass("highcharts-"+R.type+"-series highcharts-color-"+t.colorIndex+(Y?" "+Y:"")+(N?" highcharts-series-"+t.index:"")).attr({zIndex:1}).add(i.scrollGroup),o.label=H=s.text("",A?b+k:-k,i.baseline||0,j),e.styledMode||H.css(w(t.visible?D:d)),H.attr({align:A?"left":"right",zIndex:2}).add(o.group),i.baseline||(i.fontMetrics=s.fontMetrics(e.styledMode?12:D.fontSize,H),i.baseline=i.fontMetrics.f+3+i.itemMarginTop,H.attr("y",i.baseline),i.symbolHeight=n.symbolHeight||i.fontMetrics.f,n.squareSymbol&&(i.symbolWidth=x(n.symbolWidth,Math.max(i.symbolHeight,16)),W=i.symbolWidth+k+C+(O?20:0),A&&H.attr("x",i.symbolWidth+k))),R.drawLegendSymbol(i,t),i.setItemEvents&&i.setItemEvents(t,H,j)),O&&!t.checkbox&&i.createCheckboxForItem&&i.createCheckboxForItem(t),i.colorizeItem(t,t.visible),!e.styledMode&&D.width||H.css({width:(n.itemWidth||i.widthOption||e.spacingBox.width)-W+"px"}),i.setText(t);var q=H.getBBox(),Q=i.fontMetrics&&i.fontMetrics.h||0;t.itemWidth=t.checkboxOffset=n.itemWidth||o.labelWidth||q.width+W,i.maxItemWidth=Math.max(i.maxItemWidth,t.itemWidth),i.totalItemWidth+=t.itemWidth,i.itemHeight=t.itemHeight=Math.round(o.labelHeight||(q.height>1.5*Q?q.height:Q))},a.prototype.layoutItem=function(t){var i=this.options,o=this.padding,e=i.layout==="horizontal",s=t.itemHeight,n=this.itemMarginBottom,l=this.itemMarginTop,b=e?x(i.itemDistance,20):0,k=this.maxLegendWidth,D=i.alignColumns&&this.totalItemWidth>k?this.maxItemWidth:t.itemWidth,d=t.legendItem||{};e&&this.itemX-o+D>k&&(this.itemX=o,this.lastLineHeight&&(this.itemY+=l+this.lastLineHeight+n),this.lastLineHeight=0),this.lastItemY=l+this.itemY+n,this.lastLineHeight=Math.max(s,this.lastLineHeight),d.x=this.itemX,d.y=this.itemY,e?this.itemX+=D:(this.itemY+=l+s+n,this.lastLineHeight=s),this.offsetWidth=this.widthOption||Math.max((e?this.itemX-o-(t.checkbox?0:b):D)+o,this.offsetWidth)},a.prototype.getAllItems=function(){var t=[];return this.chart.series.forEach(function(i){var o=i&&i.options;i&&x(o.showInLegend,!f(o.linkedTo)&&void 0,!0)&&(t=t.concat((i.legendItem||{}).labels||(o.legendType==="point"?i.data:i)))}),v(this,"afterGetAllItems",{allItems:t}),t},a.prototype.getAlignment=function(){var t=this.options;return this.proximate?t.align.charAt(0)+"tv":t.floating?"":t.align.charAt(0)+t.verticalAlign.charAt(0)+t.layout.charAt(0)},a.prototype.adjustMargins=function(t,i){var o=this.chart,e=this.options,s=this.getAlignment();s&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(n,l){n.test(s)&&!f(t[l])&&(o[E[l]]=Math.max(o[E[l]],o.legend[(l+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][l]*e[l%2?"x":"y"]+x(e.margin,12)+i[l]+(o.titleOffset[l]||0)))})},a.prototype.proximatePositions=function(){var t,i=this.chart,o=[],e=this.options.align==="left";this.allItems.forEach(function(b){var k,D,d,C,A=e;b.yAxis&&(b.xAxis.options.reversed&&(A=!A),b.points&&(k=u(A?b.points:b.points.slice(0).reverse(),function(N){return S(N.plotY)})),D=this.itemMarginTop+b.legendItem.label.getBBox().height+this.itemMarginBottom,C=b.yAxis.top-i.plotTop,b.visible?(d=k?k.plotY:b.yAxis.height,d+=C-.3*D):d=C+b.yAxis.height,o.push({target:d,size:D,item:b}))},this);for(var s=0,n=M(o,i.plotHeight);s<n.length;s++){var l=n[s];t=l.item.legendItem||{},S(l.pos)&&(t.y=i.plotTop-i.spacing[0]+l.pos)}},a.prototype.render=function(){var t,i,o,e,s=this,n=s.chart,l=n.renderer,b=s.options,k=s.padding,D=s.getAllItems(),d=s.group,C=s.box;s.itemX=k,s.itemY=s.initialItemY,s.offsetWidth=0,s.lastItemY=0,s.widthOption=c(b.width,n.spacingBox.width-k),e=n.spacingBox.width-2*k-b.x,["rm","lm"].indexOf(s.getAlignment().substring(0,2))>-1&&(e/=2),s.maxLegendWidth=s.widthOption||e,d||(s.group=d=l.g("legend").addClass(b.className||"").attr({zIndex:7}).add(),s.contentGroup=l.g().attr({zIndex:1}).add(d),s.scrollGroup=l.g().add(s.contentGroup)),s.renderTitle(),g(D,function(A,N){return(A.options&&A.options.legendIndex||0)-(N.options&&N.options.legendIndex||0)}),b.reversed&&D.reverse(),s.allItems=D,s.display=t=!!D.length,s.lastLineHeight=0,s.maxItemWidth=0,s.totalItemWidth=0,s.itemHeight=0,D.forEach(s.renderItem,s),D.forEach(s.layoutItem,s),i=(s.widthOption||s.offsetWidth)+k,o=s.lastItemY+s.lastLineHeight+s.titleHeight,o=s.handleOverflow(o),o+=k,C||(s.box=C=l.rect().addClass("highcharts-legend-box").attr({r:b.borderRadius}).add(d)),n.styledMode||C.attr({stroke:b.borderColor,"stroke-width":b.borderWidth||0,fill:b.backgroundColor||"none"}).shadow(b.shadow),i>0&&o>0&&C[C.placed?"animate":"attr"](C.crisp.call({},{x:0,y:0,width:i,height:o},C.strokeWidth())),d[t?"show":"hide"](),n.styledMode&&d.getStyle("display")==="none"&&(i=o=0),s.legendWidth=i,s.legendHeight=o,t&&s.align(),this.proximate||this.positionItems(),v(this,"afterRender")},a.prototype.align=function(t){t===void 0&&(t=this.chart.spacingBox);var i=this.chart,o=this.options,e=t.y;/(lth|ct|rth)/.test(this.getAlignment())&&i.titleOffset[0]>0?e+=i.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&i.titleOffset[2]>0&&(e-=i.titleOffset[2]),e!==t.y&&(t=w(t,{y:e})),i.hasRendered||(this.group.placed=!1),this.group.align(w(o,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":o.verticalAlign}),!0,t)},a.prototype.handleOverflow=function(t){var i,o,e,s=this,n=this.chart,l=n.renderer,b=this.options,k=b.y,D=b.verticalAlign==="top",d=this.padding,C=b.maxHeight,A=b.navigation,N=x(A.animation,!0),R=A.arrowSize||12,L=this.pages,O=this.allItems,j=function(Q){typeof Q=="number"?q.attr({height:Q}):q&&(s.clipRect=q.destroy(),s.contentGroup.clip()),s.contentGroup.div&&(s.contentGroup.div.style.clip=Q?"rect("+d+"px,9999px,"+(d+Q)+"px,0)":"auto")},Y=function(Q){return s[Q]=l.circle(0,0,1.3*R).translate(R/2,R/2).add(W),n.styledMode||s[Q].attr("fill","rgba(0,0,0,0.0001)"),s[Q]},H=n.spacingBox.height+(D?-k:k)-d,W=this.nav,q=this.clipRect;return b.layout!=="horizontal"||b.verticalAlign==="middle"||b.floating||(H/=2),C&&(H=Math.min(H,C)),L.length=0,t&&H>0&&t>H&&A.enabled!==!1?(this.clipHeight=i=Math.max(H-20-this.titleHeight-d,0),this.currentPage=x(this.currentPage,1),this.fullHeight=t,O.forEach(function(Q,J){var nt=(e=Q.legendItem||{}).y||0,lt=Math.round(e.label.getBBox().height),gt=L.length;(!gt||nt-L[gt-1]>i&&(o||nt)!==L[gt-1])&&(L.push(o||nt),gt++),e.pageIx=gt-1,o&&((O[J-1].legendItem||{}).pageIx=gt-1),J===O.length-1&&nt+lt-L[gt-1]>i&<<=i&&(L.push(nt),e.pageIx=gt),nt!==o&&(o=nt)}),q||(q=s.clipRect=l.clipRect(0,d,9999,0),s.contentGroup.clip(q)),j(i),W||(this.nav=W=l.g().attr({zIndex:1}).add(this.group),this.up=l.symbol("triangle",0,0,R,R).add(W),Y("upTracker").on("click",function(){s.scroll(-1,N)}),this.pager=l.text("",15,10).addClass("highcharts-legend-navigation"),!n.styledMode&&A.style&&this.pager.css(A.style),this.pager.add(W),this.down=l.symbol("triangle-down",0,0,R,R).add(W),Y("downTracker").on("click",function(){s.scroll(1,N)})),s.scroll(0),t=H):W&&(j(),this.nav=W.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),t},a.prototype.scroll=function(t,i){var o=this,e=this.chart,s=this.pages,n=s.length,l=this.clipHeight,b=this.options.navigation,k=this.pager,D=this.padding,d=this.currentPage+t;if(d>n&&(d=n),d>0){i!==void 0&&z(i,e),this.nav.attr({translateX:D,translateY:l+this.padding+7+this.titleHeight,visibility:"inherit"}),[this.up,this.upTracker].forEach(function(A){A.attr({class:d===1?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),k.attr({text:d+"/"+n}),[this.down,this.downTracker].forEach(function(A){A.attr({x:18+this.pager.getBBox().width,class:d===n?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},this),e.styledMode||(this.up.attr({fill:d===1?b.inactiveColor:b.activeColor}),this.upTracker.css({cursor:d===1?"default":"pointer"}),this.down.attr({fill:d===n?b.inactiveColor:b.activeColor}),this.downTracker.css({cursor:d===n?"default":"pointer"})),this.scrollOffset=-s[d-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=d,this.positionCheckboxes();var C=V(x(i,e.renderer.globalAnimation,!0));r(function(){v(o,"afterScroll",{currentPage:d})},C.duration)}},a.prototype.setItemEvents=function(t,i,o){for(var e=this,s=t.legendItem||{},n=e.chart.renderer.boxWrapper,l=t instanceof U,b="highcharts-legend-"+(l?"point":"series")+"-active",k=e.chart.styledMode,D=o?[i,s.symbol]:[s.group],d=function(R){e.allItems.forEach(function(L){t!==L&&[L].concat(L.linkedSeries||[]).forEach(function(O){O.setState(R,!l)})})},C=0,A=D;C<A.length;C++){var N=A[C];N&&N.on("mouseover",function(){t.visible&&d("inactive"),t.setState("hover"),t.visible&&n.addClass(b),k||i.css(e.options.itemHoverStyle)}).on("mouseout",function(){e.chart.styledMode||i.css(w(t.visible?e.itemStyle:e.itemHiddenStyle)),d(""),n.removeClass(b),t.setState()}).on("click",function(R){var L="legendItemClick",O=function(){t.setVisible&&t.setVisible(),d(t.visible?"inactive":"")};n.removeClass(b),R={browserEvent:R},t.firePointEvent?t.firePointEvent(L,R,O):v(t,L,R,O)})}},a.prototype.createCheckboxForItem=function(t){t.checkbox=y("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:t.selected,defaultChecked:t.selected},this.options.itemCheckboxStyle,this.chart.container),P(t.checkbox,"click",function(i){var o=i.target;v(t.series||t,"checkboxClick",{checked:o.checked,item:t},function(){t.select()})})},a}()}),et(_,"Core/Series/SeriesRegistry.js",[_["Core/Globals.js"],_["Core/Defaults.js"],_["Core/Series/Point.js"],_["Core/Utilities.js"]],function(G,B,X,U){var $,Z=B.defaultOptions,V=U.extendClass,z=U.merge;return function(I){function E(M,P){var y=Z.plotOptions||{},h=P.defaultOptions,f=P.prototype;f.type=M,f.pointClass||(f.pointClass=X),h&&(y[M]=h),I.seriesTypes[M]=P}I.seriesTypes=G.seriesTypes,I.registerSeriesType=E,I.seriesType=function(M,P,y,h,f){var m=Z.plotOptions||{};return P=P||"",m[M]=z(m[P],y),E(M,V(I.seriesTypes[P]||function(){},h)),I.seriesTypes[M].prototype.type=M,f&&(I.seriesTypes[M].prototype.pointClass=V(X,f)),I.seriesTypes[M]}}($||($={})),$}),et(_,"Core/Chart/Chart.js",[_["Core/Animation/AnimationUtilities.js"],_["Core/Axis/Axis.js"],_["Core/Defaults.js"],_["Core/FormatUtilities.js"],_["Core/Foundation.js"],_["Core/Globals.js"],_["Core/Legend/Legend.js"],_["Core/MSPointer.js"],_["Core/Pointer.js"],_["Core/Renderer/RendererRegistry.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Renderer/SVG/SVGRenderer.js"],_["Core/Time.js"],_["Core/Utilities.js"],_["Core/Renderer/HTML/AST.js"]],function(G,B,X,U,$,Z,V,z,I,E,M,P,y,h,f){var m=G.animate,u=G.animObject,v=G.setAnimation,S=X.defaultOptions,w=X.defaultTime,x=U.numberFormat,c=$.registerEventOptions,g=Z.charts,r=Z.doc,a=Z.marginNames,t=Z.svg,i=Z.win,o=M.seriesTypes,e=h.addEvent,s=h.attr,n=h.cleanRecursively,l=h.createElement,b=h.css,k=h.defined,D=h.discardElement,d=h.erase,C=h.error,A=h.extend,N=h.find,R=h.fireEvent,L=h.getStyle,O=h.isArray,j=h.isNumber,Y=h.isObject,H=h.isString,W=h.merge,q=h.objectEach,Q=h.pick,J=h.pInt,nt=h.relativeLength,lt=h.removeEvent,gt=h.splat,mt=h.syncTimeout,bt=h.uniqueKey,yt=function(){function dt(ot,at,ut){this.axes=void 0,this.axisOffset=void 0,this.bounds=void 0,this.chartHeight=void 0,this.chartWidth=void 0,this.clipBox=void 0,this.colorCounter=void 0,this.container=void 0,this.eventOptions=void 0,this.index=void 0,this.isResizing=void 0,this.labelCollectors=void 0,this.legend=void 0,this.margin=void 0,this.numberFormatter=void 0,this.options=void 0,this.plotBox=void 0,this.plotHeight=void 0,this.plotLeft=void 0,this.plotTop=void 0,this.plotWidth=void 0,this.pointCount=void 0,this.pointer=void 0,this.renderer=void 0,this.renderTo=void 0,this.series=void 0,this.sharedClips={},this.spacing=void 0,this.spacingBox=void 0,this.symbolCounter=void 0,this.time=void 0,this.titleOffset=void 0,this.userOptions=void 0,this.xAxis=void 0,this.yAxis=void 0,this.getArgs(ot,at,ut)}return dt.chart=function(ot,at,ut){return new dt(ot,at,ut)},dt.prototype.getArgs=function(ot,at,ut){H(ot)||ot.nodeName?(this.renderTo=ot,this.init(at,ut)):this.init(ot,at)},dt.prototype.init=function(ot,at){var ut=ot.plotOptions||{};R(this,"init",{args:arguments},function(){var vt=W(S,ot),Ct=vt.chart;q(vt.plotOptions,function(Mt,wt){Y(Mt)&&(Mt.tooltip=ut[wt]&&W(ut[wt].tooltip)||void 0)}),vt.tooltip.userOptions=ot.chart&&ot.chart.forExport&&ot.tooltip.userOptions||ot.tooltip,this.userOptions=ot,this.margin=[],this.spacing=[],this.bounds={h:{},v:{}},this.labelCollectors=[],this.callback=at,this.isResizing=0;var xt=Ct.zooming=Ct.zooming||{};ot.chart&&!ot.chart.zooming&&(xt.resetButton=Ct.resetZoomButton),xt.key=Q(xt.key,Ct.zoomKey),xt.pinchType=Q(xt.pinchType,Ct.pinchType),xt.singleTouch=Q(xt.singleTouch,Ct.zoomBySingleTouch),xt.type=Q(xt.type,Ct.zoomType),this.options=vt,this.axes=[],this.series=[],this.time=ot.time&&Object.keys(ot.time).length?new y(ot.time):Z.time,this.numberFormatter=Ct.numberFormatter||x,this.styledMode=Ct.styledMode,this.hasCartesianSeries=Ct.showAxes;var St=this;St.index=g.length,g.push(St),Z.chartCount++,c(this,Ct),St.xAxis=[],St.yAxis=[],St.pointCount=St.colorCounter=St.symbolCounter=0,R(St,"afterInit"),St.firstRender()})},dt.prototype.initSeries=function(ot){var at=this,ut=at.options.chart,vt=ot.type||ut.type||ut.defaultSeriesType,Ct=o[vt];Ct||C(17,!0,at,{missingModuleFor:vt});var xt=new Ct;return typeof xt.init=="function"&&xt.init(at,ot),xt},dt.prototype.setSeriesData=function(){this.getSeriesOrderByLinks().forEach(function(ot){ot.points||ot.data||!ot.enabledDataSorting||ot.setData(ot.options.data,!1)})},dt.prototype.getSeriesOrderByLinks=function(){return this.series.concat().sort(function(ot,at){return ot.linkedSeries.length||at.linkedSeries.length?at.linkedSeries.length-ot.linkedSeries.length:0})},dt.prototype.orderSeries=function(ot){for(var at=this.series,ut=ot||0,vt=at.length;ut<vt;++ut)at[ut]&&(at[ut].index=ut,at[ut].name=at[ut].getName())},dt.prototype.isInsidePlot=function(ot,at,ut){var vt;ut===void 0&&(ut={});var Ct=this,xt=Ct.inverted,St=Ct.plotBox,Mt=Ct.plotLeft,wt=Ct.plotTop,Tt=Ct.scrollablePlotBox,Lt=0,Pt=0;ut.visiblePlotOnly&&this.scrollingContainer&&(Lt=(vt=this.scrollingContainer).scrollLeft,Pt=vt.scrollTop);var Dt=ut.series,jt=ut.visiblePlotOnly&&Tt||St,Ot=ut.inverted?at:ot,It=ut.inverted?ot:at,Nt={x:Ot,y:It,isInsidePlot:!0,options:ut};if(!ut.ignoreX){var Zt=Dt&&(xt&&!this.polar?Dt.yAxis:Dt.xAxis)||{pos:Mt,len:1/0},zt=ut.paneCoordinates?Zt.pos+Ot:Mt+Ot;zt>=Math.max(Lt+Mt,Zt.pos)&&zt<=Math.min(Lt+Mt+jt.width,Zt.pos+Zt.len)||(Nt.isInsidePlot=!1)}if(!ut.ignoreY&&Nt.isInsidePlot){var Xt=ut.axis&&!ut.axis.isXAxis&&ut.axis||Dt&&(xt?Dt.xAxis:Dt.yAxis)||{pos:wt,len:1/0},Kt=ut.paneCoordinates?Xt.pos+It:wt+It;Kt>=Math.max(Pt+wt,Xt.pos)&&Kt<=Math.min(Pt+wt+jt.height,Xt.pos+Xt.len)||(Nt.isInsidePlot=!1)}return R(this,"afterIsInsidePlot",Nt),Nt.isInsidePlot},dt.prototype.redraw=function(ot){R(this,"beforeRedraw");var at,ut,vt,Ct,xt=this,St=xt.hasCartesianSeries?xt.axes:xt.colorAxis||[],Mt=xt.series,wt=xt.pointer,Tt=xt.legend,Lt=xt.userOptions.legend,Pt=xt.renderer,Dt=Pt.isHidden(),jt=[],Ot=xt.isDirtyBox,It=xt.isDirtyLegend;for(xt.setResponsive&&xt.setResponsive(!1),v(!!xt.hasRendered&&ot,xt),Dt&&xt.temporaryDisplay(),xt.layOutTitles(),vt=Mt.length;vt--;)if(((Ct=Mt[vt]).options.stacking||Ct.options.centerInCategory)&&(ut=!0,Ct.isDirty)){at=!0;break}if(at)for(vt=Mt.length;vt--;)(Ct=Mt[vt]).options.stacking&&(Ct.isDirty=!0);Mt.forEach(function(Nt){Nt.isDirty&&(Nt.options.legendType==="point"?(typeof Nt.updateTotals=="function"&&Nt.updateTotals(),It=!0):Lt&&(Lt.labelFormatter||Lt.labelFormat)&&(It=!0)),Nt.isDirtyData&&R(Nt,"updatedData")}),It&&Tt&&Tt.options.enabled&&(Tt.render(),xt.isDirtyLegend=!1),ut&&xt.getStacks(),St.forEach(function(Nt){Nt.updateNames(),Nt.setScale()}),xt.getMargins(),St.forEach(function(Nt){Nt.isDirty&&(Ot=!0)}),St.forEach(function(Nt){var Zt=Nt.min+","+Nt.max;Nt.extKey!==Zt&&(Nt.extKey=Zt,jt.push(function(){R(Nt,"afterSetExtremes",A(Nt.eventArgs,Nt.getExtremes())),delete Nt.eventArgs})),(Ot||ut)&&Nt.redraw()}),Ot&&xt.drawChartBox(),R(xt,"predraw"),Mt.forEach(function(Nt){(Ot||Nt.isDirty)&&Nt.visible&&Nt.redraw(),Nt.isDirtyData=!1}),wt&&wt.reset(!0),Pt.draw(),R(xt,"redraw"),R(xt,"render"),Dt&&xt.temporaryDisplay(!0),jt.forEach(function(Nt){Nt.call()})},dt.prototype.get=function(ot){var at=this.series;function ut(xt){return xt.id===ot||xt.options&&xt.options.id===ot}for(var vt=N(this.axes,ut)||N(this.series,ut),Ct=0;!vt&&Ct<at.length;Ct++)vt=N(at[Ct].points||[],ut);return vt},dt.prototype.getAxes=function(){var ot=this,at=this.options,ut=at.xAxis=gt(at.xAxis||{}),vt=at.yAxis=gt(at.yAxis||{});R(this,"getAxes"),ut.forEach(function(Ct,xt){Ct.index=xt,Ct.isX=!0}),vt.forEach(function(Ct,xt){Ct.index=xt}),ut.concat(vt).forEach(function(Ct){new B(ot,Ct)}),R(this,"afterGetAxes")},dt.prototype.getSelectedPoints=function(){return this.series.reduce(function(ot,at){return at.getPointsCollection().forEach(function(ut){Q(ut.selectedStaging,ut.selected)&&ot.push(ut)}),ot},[])},dt.prototype.getSelectedSeries=function(){return this.series.filter(function(ot){return ot.selected})},dt.prototype.setTitle=function(ot,at,ut){this.applyDescription("title",ot),this.applyDescription("subtitle",at),this.applyDescription("caption",void 0),this.layOutTitles(ut)},dt.prototype.applyDescription=function(ot,at){var ut=this,vt=ot==="title"?{color:"#333333",fontSize:this.options.isStock?"16px":"18px"}:{color:"#666666"},Ct=this.options[ot]=W(!this.styledMode&&{style:vt},this.options[ot],at),xt=this[ot];xt&&at&&(this[ot]=xt=xt.destroy()),Ct&&!xt&&((xt=this.renderer.text(Ct.text,0,0,Ct.useHTML).attr({align:Ct.align,class:"highcharts-"+ot,zIndex:Ct.zIndex||4}).add()).update=function(St){ut[{title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"}[ot]](St)},this.styledMode||xt.css(Ct.style),this[ot]=xt)},dt.prototype.layOutTitles=function(ot){var at=[0,0,0],ut=this.renderer,vt=this.spacingBox;["title","subtitle","caption"].forEach(function(xt){var St,Mt,wt=this[xt],Tt=this.options[xt],Lt=Tt.verticalAlign||"top",Pt=xt==="title"?Lt==="top"?-3:0:Lt==="top"?at[0]+2:0;wt&&(this.styledMode||(St=Tt.style&&Tt.style.fontSize),St=ut.fontMetrics(St,wt).b,wt.css({width:(Tt.width||vt.width+(Tt.widthAdjust||0))+"px"}),Mt=Math.round(wt.getBBox(Tt.useHTML).height),wt.align(A({y:Lt==="bottom"?St:Pt+St,height:Mt},Tt),!1,"spacingBox"),Tt.floating||(Lt==="top"?at[0]=Math.ceil(at[0]+Mt):Lt==="bottom"&&(at[2]=Math.ceil(at[2]+Mt))))},this),at[0]&&(this.options.title.verticalAlign||"top")==="top"&&(at[0]+=this.options.title.margin),at[2]&&this.options.caption.verticalAlign==="bottom"&&(at[2]+=this.options.caption.margin);var Ct=!this.titleOffset||this.titleOffset.join(",")!==at.join(",");this.titleOffset=at,R(this,"afterLayOutTitles"),!this.isDirtyBox&&Ct&&(this.isDirtyBox=this.isDirtyLegend=Ct,this.hasRendered&&Q(ot,!0)&&this.isDirtyBox&&this.redraw())},dt.prototype.getChartSize=function(){var ot=this,at=ot.options.chart,ut=at.width,vt=at.height,Ct=ot.renderTo;k(ut)||(ot.containerWidth=L(Ct,"width")),k(vt)||(ot.containerHeight=L(Ct,"height")),ot.chartWidth=Math.max(0,ut||ot.containerWidth||600),ot.chartHeight=Math.max(0,nt(vt,ot.chartWidth)||(ot.containerHeight>1?ot.containerHeight:400))},dt.prototype.temporaryDisplay=function(ot){var at,ut=this.renderTo;if(ot)for(;ut&&ut.style;)ut.hcOrigStyle&&(b(ut,ut.hcOrigStyle),delete ut.hcOrigStyle),ut.hcOrigDetached&&(r.body.removeChild(ut),ut.hcOrigDetached=!1),ut=ut.parentNode;else for(;ut&&ut.style&&(r.body.contains(ut)||ut.parentNode||(ut.hcOrigDetached=!0,r.body.appendChild(ut)),(L(ut,"display",!1)==="none"||ut.hcOricDetached)&&(ut.hcOrigStyle={display:ut.style.display,height:ut.style.height,overflow:ut.style.overflow},at={display:"block",overflow:"hidden"},ut!==this.renderTo&&(at.height=0),b(ut,at),ut.offsetWidth||ut.style.setProperty("display","block","important")),(ut=ut.parentNode)!==r.body););},dt.prototype.setClassName=function(ot){this.container.className="highcharts-container "+(ot||"")},dt.prototype.getContainer=function(){var ot,at=this,ut=at.options,vt=ut.chart,Ct="data-highcharts-chart",xt=bt(),St=at.renderTo;St||(at.renderTo=St=vt.renderTo),H(St)&&(at.renderTo=St=r.getElementById(St)),St||C(13,!0,at);var Mt=J(s(St,Ct));j(Mt)&&g[Mt]&&g[Mt].hasRendered&&g[Mt].destroy(),s(St,Ct,at.index),St.innerHTML=f.emptyHTML,vt.skipClone||St.offsetWidth||at.temporaryDisplay(),at.getChartSize();var wt=at.chartWidth,Tt=at.chartHeight;b(St,{overflow:"hidden"}),at.styledMode||(ot=A({position:"relative",overflow:"hidden",width:wt+"px",height:Tt+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)",userSelect:"none","touch-action":"manipulation",outline:"none"},vt.style||{}));var Lt=l("div",{id:xt},ot,St);at.container=Lt,at._cursor=Lt.style.cursor;var Pt=vt.renderer||!t?E.getRendererType(vt.renderer):P;if(at.renderer=new Pt(Lt,wt,Tt,void 0,vt.forExport,ut.exporting&&ut.exporting.allowHTML,at.styledMode),v(void 0,at),at.setClassName(vt.className),at.styledMode)for(var Dt in ut.defs)this.renderer.definition(ut.defs[Dt]);else at.renderer.setStyle(vt.style);at.renderer.chartIndex=at.index,R(this,"afterGetContainer")},dt.prototype.getMargins=function(ot){var at=this,ut=at.spacing,vt=at.margin,Ct=at.titleOffset;this.resetMargins(),Ct[0]&&!k(vt[0])&&(this.plotTop=Math.max(this.plotTop,Ct[0]+ut[0])),Ct[2]&&!k(vt[2])&&(this.marginBottom=Math.max(this.marginBottom,Ct[2]+ut[2])),this.legend&&this.legend.display&&this.legend.adjustMargins(vt,ut),R(this,"getMargins"),ot||this.getAxisMargins()},dt.prototype.getAxisMargins=function(){var ot=this,at=ot.axisOffset=[0,0,0,0],ut=ot.colorAxis,vt=ot.margin,Ct=function(xt){xt.forEach(function(St){St.visible&&St.getOffset()})};ot.hasCartesianSeries?Ct(ot.axes):ut&&ut.length&&Ct(ut),a.forEach(function(xt,St){k(vt[St])||(ot[xt]+=at[St])}),ot.setChartSize()},dt.prototype.reflow=function(ot){var at=this,ut=at.options.chart,vt=at.renderTo,Ct=k(ut.width)&&k(ut.height),xt=ut.width||L(vt,"width"),St=ut.height||L(vt,"height"),Mt=ot?ot.target:i;delete at.pointer.chartPosition,Ct||at.isPrinting||!xt||!St||Mt!==i&&Mt!==r||(xt===at.containerWidth&&St===at.containerHeight||(h.clearTimeout(at.reflowTimeout),at.reflowTimeout=mt(function(){at.container&&at.setSize(void 0,void 0,!1)},ot?100:0)),at.containerWidth=xt,at.containerHeight=St)},dt.prototype.setReflow=function(ot){var at=this;ot===!1||this.unbindReflow?ot===!1&&this.unbindReflow&&(this.unbindReflow=this.unbindReflow()):(this.unbindReflow=e(i,"resize",function(ut){at.options&&at.reflow(ut)}),e(this,"destroy",this.unbindReflow))},dt.prototype.setSize=function(ot,at,ut){var vt=this,Ct=vt.renderer;vt.isResizing+=1,v(ut,vt);var xt=Ct.globalAnimation;vt.oldChartHeight=vt.chartHeight,vt.oldChartWidth=vt.chartWidth,ot!==void 0&&(vt.options.chart.width=ot),at!==void 0&&(vt.options.chart.height=at),vt.getChartSize(),vt.styledMode||(xt?m:b)(vt.container,{width:vt.chartWidth+"px",height:vt.chartHeight+"px"},xt),vt.setChartSize(!0),Ct.setSize(vt.chartWidth,vt.chartHeight,xt),vt.axes.forEach(function(St){St.isDirty=!0,St.setScale()}),vt.isDirtyLegend=!0,vt.isDirtyBox=!0,vt.layOutTitles(),vt.getMargins(),vt.redraw(xt),vt.oldChartHeight=null,R(vt,"resize"),mt(function(){vt&&R(vt,"endResize",null,function(){vt.isResizing-=1})},u(xt).duration)},dt.prototype.setChartSize=function(ot){var at,ut,vt,Ct,xt=this,St=xt.inverted,Mt=xt.renderer,wt=xt.chartWidth,Tt=xt.chartHeight,Lt=xt.options.chart,Pt=xt.spacing,Dt=xt.clipOffset;xt.plotLeft=at=Math.round(xt.plotLeft),xt.plotTop=ut=Math.round(xt.plotTop),xt.plotWidth=vt=Math.max(0,Math.round(wt-at-xt.marginRight)),xt.plotHeight=Ct=Math.max(0,Math.round(Tt-ut-xt.marginBottom)),xt.plotSizeX=St?Ct:vt,xt.plotSizeY=St?vt:Ct,xt.plotBorderWidth=Lt.plotBorderWidth||0,xt.spacingBox=Mt.spacingBox={x:Pt[3],y:Pt[0],width:wt-Pt[3]-Pt[1],height:Tt-Pt[0]-Pt[2]},xt.plotBox=Mt.plotBox={x:at,y:ut,width:vt,height:Ct};var jt=2*Math.floor(xt.plotBorderWidth/2),Ot=Math.ceil(Math.max(jt,Dt[3])/2),It=Math.ceil(Math.max(jt,Dt[0])/2);xt.clipBox={x:Ot,y:It,width:Math.floor(xt.plotSizeX-Math.max(jt,Dt[1])/2-Ot),height:Math.max(0,Math.floor(xt.plotSizeY-Math.max(jt,Dt[2])/2-It))},ot||(xt.axes.forEach(function(Nt){Nt.setAxisSize(),Nt.setAxisTranslation()}),Mt.alignElements()),R(xt,"afterSetChartSize",{skipAxes:ot})},dt.prototype.resetMargins=function(){R(this,"resetMargins");var ot=this,at=ot.options.chart;["margin","spacing"].forEach(function(ut){var vt=at[ut],Ct=Y(vt)?vt:[vt,vt,vt,vt];["Top","Right","Bottom","Left"].forEach(function(xt,St){ot[ut][St]=Q(at[ut+xt],Ct[St])})}),a.forEach(function(ut,vt){ot[ut]=Q(ot.margin[vt],ot.spacing[vt])}),ot.axisOffset=[0,0,0,0],ot.clipOffset=[0,0,0,0]},dt.prototype.drawChartBox=function(){var ot,at,ut,vt=this,Ct=vt.options.chart,xt=vt.renderer,St=vt.chartWidth,Mt=vt.chartHeight,wt=vt.styledMode,Tt=vt.plotBGImage,Lt=Ct.backgroundColor,Pt=Ct.plotBackgroundColor,Dt=Ct.plotBackgroundImage,jt=vt.plotLeft,Ot=vt.plotTop,It=vt.plotWidth,Nt=vt.plotHeight,Zt=vt.plotBox,zt=vt.clipRect,Xt=vt.clipBox,Kt=vt.chartBackground,me=vt.plotBackground,Ut=vt.plotBorder,te="animate";Kt||(vt.chartBackground=Kt=xt.rect().addClass("highcharts-background").add(),te="attr"),wt?ot=at=Kt.strokeWidth():(at=(ot=Ct.borderWidth||0)+(Ct.shadow?8:0),ut={fill:Lt||"none"},(ot||Kt["stroke-width"])&&(ut.stroke=Ct.borderColor,ut["stroke-width"]=ot),Kt.attr(ut).shadow(Ct.shadow)),Kt[te]({x:at/2,y:at/2,width:St-at-ot%2,height:Mt-at-ot%2,r:Ct.borderRadius}),te="animate",me||(te="attr",vt.plotBackground=me=xt.rect().addClass("highcharts-plot-background").add()),me[te](Zt),wt||(me.attr({fill:Pt||"none"}).shadow(Ct.plotShadow),Dt&&(Tt?(Dt!==Tt.attr("href")&&Tt.attr("href",Dt),Tt.animate(Zt)):vt.plotBGImage=xt.image(Dt,jt,Ot,It,Nt).add())),zt?zt.animate({width:Xt.width,height:Xt.height}):vt.clipRect=xt.clipRect(Xt),te="animate",Ut||(te="attr",vt.plotBorder=Ut=xt.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add()),wt||Ut.attr({stroke:Ct.plotBorderColor,"stroke-width":Ct.plotBorderWidth||0,fill:"none"}),Ut[te](Ut.crisp({x:jt,y:Ot,width:It,height:Nt},-Ut.strokeWidth())),vt.isDirtyBox=!1,R(this,"afterDrawChartBox")},dt.prototype.propFromSeries=function(){var ot,at,ut,vt=this,Ct=vt.options.chart,xt=vt.options.series;["inverted","angular","polar"].forEach(function(St){for(at=o[Ct.type||Ct.defaultSeriesType],ut=Ct[St]||at&&at.prototype[St],ot=xt&&xt.length;!ut&&ot--;)(at=o[xt[ot].type])&&at.prototype[St]&&(ut=!0);vt[St]=ut})},dt.prototype.linkSeries=function(){var ot=this,at=ot.series;at.forEach(function(ut){ut.linkedSeries.length=0}),at.forEach(function(ut){var vt=ut.options.linkedTo;H(vt)&&(vt=vt===":previous"?ot.series[ut.index-1]:ot.get(vt))&&vt.linkedParent!==ut&&(vt.linkedSeries.push(ut),ut.linkedParent=vt,vt.enabledDataSorting&&ut.setDataSortingOptions(),ut.visible=Q(ut.options.visible,vt.options.visible,ut.visible))}),R(this,"afterLinkSeries")},dt.prototype.renderSeries=function(){this.series.forEach(function(ot){ot.translate(),ot.render()})},dt.prototype.renderLabels=function(){var ot=this,at=ot.options.labels;at.items&&at.items.forEach(function(ut){var vt=A(at.style,ut.style),Ct=J(vt.left)+ot.plotLeft,xt=J(vt.top)+ot.plotTop+12;delete vt.left,delete vt.top,ot.renderer.text(ut.html,Ct,xt).attr({zIndex:2}).css(vt).add()})},dt.prototype.render=function(){var ot=this,at=ot.axes,ut=ot.colorAxis,vt=ot.renderer,Ct=ot.options,xt=function(Pt){Pt.forEach(function(Dt){Dt.visible&&Dt.render()})},St=0;ot.setTitle(),ot.legend=new V(ot,Ct.legend),ot.getStacks&&ot.getStacks(),ot.getMargins(!0),ot.setChartSize();var Mt=ot.plotWidth;at.some(function(Pt){if(Pt.horiz&&Pt.visible&&Pt.options.labels.enabled&&Pt.series.length)return St=21,!0}),ot.plotHeight=Math.max(ot.plotHeight-St,0);var wt=ot.plotHeight;at.forEach(function(Pt){Pt.setScale()}),ot.getAxisMargins();var Tt=Mt/ot.plotWidth>1.1,Lt=wt/ot.plotHeight>1.05;(Tt||Lt)&&(at.forEach(function(Pt){(Pt.horiz&&Tt||!Pt.horiz&&Lt)&&Pt.setTickInterval(!0)}),ot.getMargins()),ot.drawChartBox(),ot.hasCartesianSeries?xt(at):ut&&ut.length&&xt(ut),ot.seriesGroup||(ot.seriesGroup=vt.g("series-group").attr({zIndex:3}).add()),ot.renderSeries(),ot.renderLabels(),ot.addCredits(),ot.setResponsive&&ot.setResponsive(),ot.hasRendered=!0},dt.prototype.addCredits=function(ot){var at=this,ut=W(!0,this.options.credits,ot);ut.enabled&&!this.credits&&(this.credits=this.renderer.text(ut.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){ut.href&&(i.location.href=ut.href)}).attr({align:ut.position.align,zIndex:8}),at.styledMode||this.credits.css(ut.style),this.credits.add().align(ut.position),this.credits.update=function(vt){at.credits=at.credits.destroy(),at.addCredits(vt)})},dt.prototype.destroy=function(){var ot,at=this,ut=at.axes,vt=at.series,Ct=at.container,xt=Ct&&Ct.parentNode;for(R(at,"destroy"),at.renderer.forExport?d(g,at):g[at.index]=void 0,Z.chartCount--,at.renderTo.removeAttribute("data-highcharts-chart"),lt(at),ot=ut.length;ot--;)ut[ot]=ut[ot].destroy();for(this.scroller&&this.scroller.destroy&&this.scroller.destroy(),ot=vt.length;ot--;)vt[ot]=vt[ot].destroy();["title","subtitle","chartBackground","plotBackground","plotBGImage","plotBorder","seriesGroup","clipRect","credits","pointer","rangeSelector","legend","resetZoomButton","tooltip","renderer"].forEach(function(St){var Mt=at[St];Mt&&Mt.destroy&&(at[St]=Mt.destroy())}),Ct&&(Ct.innerHTML=f.emptyHTML,lt(Ct),xt&&D(Ct)),q(at,function(St,Mt){delete at[Mt]})},dt.prototype.firstRender=function(){var ot=this,at=ot.options;ot.isReadyToRender&&!ot.isReadyToRender()||(ot.getContainer(),ot.resetMargins(),ot.setChartSize(),ot.propFromSeries(),ot.getAxes(),(O(at.series)?at.series:[]).forEach(function(ut){ot.initSeries(ut)}),ot.linkSeries(),ot.setSeriesData(),R(ot,"beforeRender"),I&&(z.isRequired()?ot.pointer=new z(ot,at):ot.pointer=new I(ot,at)),ot.render(),ot.pointer.getChartPosition(),ot.renderer.imgCount||ot.hasLoaded||ot.onload(),ot.temporaryDisplay(!0))},dt.prototype.onload=function(){this.callbacks.concat([this.callback]).forEach(function(ot){ot&&this.index!==void 0&&ot.apply(this,[this])},this),R(this,"load"),R(this,"render"),k(this.index)&&this.setReflow(this.options.chart.reflow),this.warnIfA11yModuleNotLoaded(),this.hasLoaded=!0},dt.prototype.warnIfA11yModuleNotLoaded=function(){var ot=this.options,at=this.title;ot&&!this.accessibility&&(this.renderer.boxWrapper.attr({role:"img","aria-label":(at&&at.element.textContent||"").replace(/</g,"<")}),ot.accessibility&&ot.accessibility.enabled===!1||C('Highcharts warning: Consider including the "accessibility.js" module to make your chart more usable for people with disabilities. Set the "accessibility.enabled" option to false to remove this warning. See https://www.highcharts.com/docs/accessibility/accessibility-module.',!1,this))},dt.prototype.addSeries=function(ot,at,ut){var vt,Ct=this;return ot&&(at=Q(at,!0),R(Ct,"addSeries",{options:ot},function(){vt=Ct.initSeries(ot),Ct.isDirtyLegend=!0,Ct.linkSeries(),vt.enabledDataSorting&&vt.setData(ot.data,!1),R(Ct,"afterAddSeries",{series:vt}),at&&Ct.redraw(ut)})),vt},dt.prototype.addAxis=function(ot,at,ut,vt){return this.createAxis(at?"xAxis":"yAxis",{axis:ot,redraw:ut,animation:vt})},dt.prototype.addColorAxis=function(ot,at,ut){return this.createAxis("colorAxis",{axis:ot,redraw:at,animation:ut})},dt.prototype.createAxis=function(ot,at){var ut=new B(this,W(at.axis,{index:this[ot].length,isX:ot==="xAxis"}));return Q(at.redraw,!0)&&this.redraw(at.animation),ut},dt.prototype.showLoading=function(ot){var at=this,ut=at.options,vt=ut.loading,Ct=function(){xt&&b(xt,{left:at.plotLeft+"px",top:at.plotTop+"px",width:at.plotWidth+"px",height:at.plotHeight+"px"})},xt=at.loadingDiv,St=at.loadingSpan;xt||(at.loadingDiv=xt=l("div",{className:"highcharts-loading highcharts-loading-hidden"},null,at.container)),St||(at.loadingSpan=St=l("span",{className:"highcharts-loading-inner"},null,xt),e(at,"redraw",Ct)),xt.className="highcharts-loading",f.setElementHTML(St,Q(ot,ut.lang.loading,"")),at.styledMode||(b(xt,A(vt.style,{zIndex:10})),b(St,vt.labelStyle),at.loadingShown||(b(xt,{opacity:0,display:""}),m(xt,{opacity:vt.style.opacity||.5},{duration:vt.showDuration||0}))),at.loadingShown=!0,Ct()},dt.prototype.hideLoading=function(){var ot=this.options,at=this.loadingDiv;at&&(at.className="highcharts-loading highcharts-loading-hidden",this.styledMode||m(at,{opacity:0},{duration:ot.loading.hideDuration||100,complete:function(){b(at,{display:"none"})}})),this.loadingShown=!1},dt.prototype.update=function(ot,at,ut,vt){var Ct,xt,St,Mt=this,wt={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},Tt=ot.isResponsiveOptions,Lt=[];R(Mt,"update",{options:ot}),Tt||Mt.setResponsive(!1,!0),ot=n(ot,Mt.options),Mt.userOptions=W(Mt.userOptions,ot);var Pt=ot.chart;Pt&&(W(!0,Mt.options.chart,Pt),"className"in Pt&&Mt.setClassName(Pt.className),"reflow"in Pt&&Mt.setReflow(Pt.reflow),("inverted"in Pt||"polar"in Pt||"type"in Pt)&&(Mt.propFromSeries(),Ct=!0),"alignTicks"in Pt&&(Ct=!0),"events"in Pt&&c(this,Pt),q(Pt,function(Ot,It){Mt.propsRequireUpdateSeries.indexOf("chart."+It)!==-1&&(xt=!0),Mt.propsRequireDirtyBox.indexOf(It)!==-1&&(Mt.isDirtyBox=!0),Mt.propsRequireReflow.indexOf(It)!==-1&&(Tt?Mt.isDirtyBox=!0:St=!0)}),!Mt.styledMode&&Pt.style&&Mt.renderer.setStyle(Mt.options.chart.style||{})),!Mt.styledMode&&ot.colors&&(this.options.colors=ot.colors),ot.time&&(this.time===w&&(this.time=new y(ot.time)),W(!0,Mt.options.time,ot.time)),q(ot,function(Ot,It){Mt[It]&&typeof Mt[It].update=="function"?Mt[It].update(Ot,!1):typeof Mt[wt[It]]=="function"?Mt[wt[It]](Ot):It!=="colors"&&Mt.collectionsWithUpdate.indexOf(It)===-1&&W(!0,Mt.options[It],ot[It]),It!=="chart"&&Mt.propsRequireUpdateSeries.indexOf(It)!==-1&&(xt=!0)}),this.collectionsWithUpdate.forEach(function(Ot){var It;ot[Ot]&&(It=[],Mt[Ot].forEach(function(Nt,Zt){Nt.options.isInternal||It.push(Q(Nt.options.index,Zt))}),gt(ot[Ot]).forEach(function(Nt,Zt){var zt,Xt=k(Nt.id);Xt&&(zt=Mt.get(Nt.id)),!zt&&Mt[Ot]&&(zt=Mt[Ot][It?It[Zt]:Zt])&&Xt&&k(zt.options.id)&&(zt=void 0),zt&&zt.coll===Ot&&(zt.update(Nt,!1),ut&&(zt.touched=!0)),!zt&&ut&&Mt.collectionsWithInit[Ot]&&(Mt.collectionsWithInit[Ot][0].apply(Mt,[Nt].concat(Mt.collectionsWithInit[Ot][1]||[]).concat([!1])).touched=!0)}),ut&&Mt[Ot].forEach(function(Nt){Nt.touched||Nt.options.isInternal?delete Nt.touched:Lt.push(Nt)}))}),Lt.forEach(function(Ot){Ot.chart&&Ot.remove&&Ot.remove(!1)}),Ct&&Mt.axes.forEach(function(Ot){Ot.update({},!1)}),xt&&Mt.getSeriesOrderByLinks().forEach(function(Ot){Ot.chart&&Ot.update({},!1)},this);var Dt=Pt&&Pt.width,jt=Pt&&(H(Pt.height)?nt(Pt.height,Dt||Mt.chartWidth):Pt.height);St||j(Dt)&&Dt!==Mt.chartWidth||j(jt)&&jt!==Mt.chartHeight?Mt.setSize(Dt,jt,vt):Q(at,!0)&&Mt.redraw(vt),R(Mt,"afterUpdate",{options:ot,redraw:at,animation:vt})},dt.prototype.setSubtitle=function(ot,at){this.applyDescription("subtitle",ot),this.layOutTitles(at)},dt.prototype.setCaption=function(ot,at){this.applyDescription("caption",ot),this.layOutTitles(at)},dt.prototype.showResetZoom=function(){var ot=this,at=S.lang,ut=ot.options.chart.zooming.resetButton,vt=ut.theme,Ct=ut.relativeTo==="chart"||ut.relativeTo==="spacingBox"?null:"scrollablePlotBox";function xt(){ot.zoomOut()}R(this,"beforeShowResetZoom",null,function(){ot.resetZoomButton=ot.renderer.button(at.resetZoom,null,null,xt,vt).attr({align:ut.position.align,title:at.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(ut.position,!1,Ct)}),R(this,"afterShowResetZoom")},dt.prototype.zoomOut=function(){R(this,"selection",{resetSelection:!0},this.zoom)},dt.prototype.zoom=function(ot){var at,ut=this,vt=ut.pointer,Ct=!1;!ot||ot.resetSelection?(ut.axes.forEach(function(St){at=St.zoom()}),vt.initiated=!1):ot.xAxis.concat(ot.yAxis).forEach(function(St){var Mt=St.axis,wt=Mt.isXAxis;(vt[wt?"zoomX":"zoomY"]&&k(vt.mouseDownX)&&k(vt.mouseDownY)&&ut.isInsidePlot(vt.mouseDownX-ut.plotLeft,vt.mouseDownY-ut.plotTop,{axis:Mt})||!k(ut.inverted?vt.mouseDownX:vt.mouseDownY))&&(at=Mt.zoom(St.min,St.max),Mt.displayBtn&&(Ct=!0))});var xt=ut.resetZoomButton;Ct&&!xt?ut.showResetZoom():!Ct&&Y(xt)&&(ut.resetZoomButton=xt.destroy()),at&&ut.redraw(Q(ut.options.chart.animation,ot&&ot.animation,ut.pointCount<100))},dt.prototype.pan=function(ot,at){var ut=this,vt=ut.hoverPoints,Ct=typeof at=="object"?at:{enabled:at,type:"x"},xt=ut.options.chart;xt&&xt.panning&&(xt.panning=Ct);var St,Mt=Ct.type;R(this,"pan",{originalEvent:ot},function(){vt&&vt.forEach(function(Lt){Lt.setState()});var wt=ut.xAxis;Mt==="xy"?wt=wt.concat(ut.yAxis):Mt==="y"&&(wt=ut.yAxis);var Tt={};wt.forEach(function(Lt){if(Lt.options.panningEnabled&&!Lt.options.isInternal){var Pt,Dt=Lt.horiz,jt=ot[Dt?"chartX":"chartY"],Ot=Dt?"mouseDownX":"mouseDownY",It=ut[Ot],Nt=Lt.minPointOffset||0,Zt=Lt.reversed&&!ut.inverted||!Lt.reversed&&ut.inverted?-1:1,zt=Lt.getExtremes(),Xt=Lt.toValue(It-jt,!0)+Nt*Zt,Kt=Lt.toValue(It+Lt.len-jt,!0)-(Nt*Zt||Lt.isXAxis&&Lt.pointRangePadding||0),me=Kt<Xt,Ut=Lt.hasVerticalPanning(),te=me?Kt:Xt,ye=me?Xt:Kt,Et=Lt.panningState;!Ut||Lt.isXAxis||Et&&!Et.isDirty||Lt.series.forEach(function($t){var ce=$t.getProcessedData(!0),pe=$t.getExtremes(ce.yData,!0);Et||(Et={startMin:Number.MAX_VALUE,startMax:-Number.MAX_VALUE}),j(pe.dataMin)&&j(pe.dataMax)&&(Et.startMin=Math.min(Q($t.options.threshold,1/0),pe.dataMin,Et.startMin),Et.startMax=Math.max(Q($t.options.threshold,-1/0),pe.dataMax,Et.startMax))});var Gt=Math.min(Q(Et&&Et.startMin,zt.dataMin),Nt?zt.min:Lt.toValue(Lt.toPixels(zt.min)-Lt.minPixelPadding)),Yt=Math.max(Q(Et&&Et.startMax,zt.dataMax),Nt?zt.max:Lt.toValue(Lt.toPixels(zt.max)+Lt.minPixelPadding));Lt.panningState=Et,Lt.isOrdinal||((Pt=Gt-te)>0&&(ye+=Pt,te=Gt),(Pt=ye-Yt)>0&&(ye=Yt,te-=Pt),Lt.series.length&&te!==zt.min&&ye!==zt.max&&te>=Gt&&ye<=Yt&&(Lt.setExtremes(te,ye,!1,!1,{trigger:"pan"}),!ut.resetZoomButton&&te!==Gt&&ye!==Yt&&Mt.match("y")&&(ut.showResetZoom(),Lt.displayBtn=!1),St=!0),Tt[Ot]=jt)}}),q(Tt,function(Lt,Pt){ut[Pt]=Lt}),St&&ut.redraw(!1),b(ut.container,{cursor:"move"})})},dt}();return A(yt.prototype,{callbacks:[],collectionsWithInit:{xAxis:[yt.prototype.addAxis,[!0]],yAxis:[yt.prototype.addAxis,[!1]],series:[yt.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","series"],propsRequireDirtyBox:["backgroundColor","borderColor","borderWidth","borderRadius","plotBackgroundColor","plotBackgroundImage","plotBorderColor","plotBorderWidth","plotShadow","shadow"],propsRequireReflow:["margin","marginTop","marginRight","marginBottom","marginLeft","spacing","spacingTop","spacingRight","spacingBottom","spacingLeft"],propsRequireUpdateSeries:["chart.inverted","chart.polar","chart.ignoreHiddenSeries","chart.type","colors","plotOptions","time","tooltip"]}),yt}),et(_,"Core/Legend/LegendSymbol.js",[_["Core/Utilities.js"]],function(G){var B,X=G.extend,U=G.merge,$=G.pick;return function(Z){Z.drawLineMarker=function(V){var z,I=this.legendItem=this.legendItem||{},E=this.options,M=V.symbolWidth,P=V.symbolHeight,y=P/2,h=this.chart.renderer,f=I.group,m=V.baseline-Math.round(.3*V.fontMetrics.b),u={},v=E.marker,S=0;if(this.chart.styledMode||(u={"stroke-width":Math.min(E.lineWidth||0,24)},E.dashStyle?u.dashstyle=E.dashStyle:E.linecap!=="square"&&(u["stroke-linecap"]="round")),I.line=h.path().addClass("highcharts-graph").attr(u).add(f),u["stroke-linecap"]&&(S=Math.min(I.line.strokeWidth(),M)/2),I.line.attr({d:[["M",S,m],["L",M-S,m]]}),v&&v.enabled!==!1&&M){var w=Math.min($(v.radius,y),y);this.symbol.indexOf("url")===0&&(v=U(v,{width:P,height:P}),w=0),I.symbol=z=h.symbol(this.symbol,M/2-w,m-w,2*w,2*w,X({context:"legend"},v)).addClass("highcharts-point").add(f),z.isMarker=!0}},Z.drawRectangle=function(V,z){var I=z.legendItem||{},E=V.options,M=V.symbolHeight,P=E.squareSymbol,y=P?M:V.symbolWidth;I.symbol=this.chart.renderer.rect(P?(V.symbolWidth-M)/2:0,V.baseline-M+1,y,M,$(V.options.symbolRadius,M/2)).addClass("highcharts-point").attr({zIndex:3}).add(I.group)}}(B||(B={})),B}),et(_,"Core/Series/SeriesDefaults.js",[],function(){return{lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1e3},events:{},marker:{enabledThreshold:2,lineColor:"#ffffff",lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:"center",borderWidth:0,defer:!0,formatter:function(){var G=this.series.chart.numberFormatter;return typeof this.y!="number"?"":G(this.y,-1)},padding:5,style:{fontSize:"11px",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0},cropThreshold:300,opacity:1,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:50},opacity:.2}},stickyTracking:!0,turboThreshold:1e3,findNearestPointBy:"x"}}),et(_,"Core/Series/Series.js",[_["Core/Animation/AnimationUtilities.js"],_["Core/Defaults.js"],_["Core/Foundation.js"],_["Core/Globals.js"],_["Core/Legend/LegendSymbol.js"],_["Core/Series/Point.js"],_["Core/Series/SeriesDefaults.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Renderer/SVG/SVGElement.js"],_["Core/Utilities.js"]],function(G,B,X,U,$,Z,V,z,I,E){var M=G.animObject,P=G.setAnimation,y=B.defaultOptions,h=X.registerEventOptions,f=U.hasTouch,m=U.svg,u=U.win,v=z.seriesTypes,S=E.arrayMax,w=E.arrayMin,x=E.clamp,c=E.cleanRecursively,g=E.correctFloat,r=E.defined,a=E.erase,t=E.error,i=E.extend,o=E.find,e=E.fireEvent,s=E.getNestedProperty,n=E.isArray,l=E.isNumber,b=E.isString,k=E.merge,D=E.objectEach,d=E.pick,C=E.removeEvent,A=E.splat,N=E.syncTimeout,R=function(){function L(){this._i=void 0,this.chart=void 0,this.data=void 0,this.eventOptions=void 0,this.eventsToUnbind=void 0,this.index=void 0,this.linkedSeries=void 0,this.options=void 0,this.points=void 0,this.processedXData=void 0,this.processedYData=void 0,this.tooltipOptions=void 0,this.userOptions=void 0,this.xAxis=void 0,this.yAxis=void 0,this.zones=void 0}return L.prototype.init=function(O,j){e(this,"init",{options:j});var Y=this,H=O.series;this.eventsToUnbind=[],Y.chart=O,Y.options=Y.setOptions(j);var W=Y.options;Y.linkedSeries=[],Y.bindAxes(),i(Y,{name:W.name,state:"",visible:W.visible!==!1,selected:W.selected===!0}),h(this,W);var q,Q=W.events;(Q&&Q.click||W.point&&W.point.events&&W.point.events.click||W.allowPointSelect)&&(O.runTrackerClick=!0),Y.getColor(),Y.getSymbol(),Y.parallelArrays.forEach(function(J){Y[J+"Data"]||(Y[J+"Data"]=[])}),Y.isCartesian&&(O.hasCartesianSeries=!0),H.length&&(q=H[H.length-1]),Y._i=d(q&&q._i,-1)+1,Y.opacity=Y.options.opacity,O.orderSeries(this.insert(H)),W.dataSorting&&W.dataSorting.enabled?Y.setDataSortingOptions():Y.points||Y.data||Y.setData(W.data,!1),e(this,"afterInit")},L.prototype.is=function(O){return v[O]&&this instanceof v[O]},L.prototype.insert=function(O){var j,Y=this.options.index;if(l(Y)){for(j=O.length;j--;)if(Y>=d(O[j].options.index,O[j]._i)){O.splice(j+1,0,this);break}j===-1&&O.unshift(this),j+=1}else O.push(this);return d(j,O.length-1)},L.prototype.bindAxes=function(){var O,j=this,Y=j.options,H=j.chart;e(this,"bindAxes",null,function(){(j.axisTypes||[]).forEach(function(W){var q=0;H[W].forEach(function(Q){O=Q.options,(Y[W]===q&&!O.isInternal||Y[W]!==void 0&&Y[W]===O.id||Y[W]===void 0&&O.index===0)&&(j.insert(Q.series),j[W]=Q,Q.isDirty=!0),O.isInternal||q++}),j[W]||j.optionalAxis===W||t(18,!0,H)})}),e(this,"afterBindAxes")},L.prototype.updateParallelArrays=function(O,j){var Y=O.series,H=arguments,W=l(j)?function(q){var Q=q==="y"&&Y.toYData?Y.toYData(O):O[q];Y[q+"Data"][j]=Q}:function(q){Array.prototype[j].apply(Y[q+"Data"],Array.prototype.slice.call(H,2))};Y.parallelArrays.forEach(W)},L.prototype.hasData=function(){return this.visible&&this.dataMax!==void 0&&this.dataMin!==void 0||this.visible&&this.yData&&this.yData.length>0},L.prototype.autoIncrement=function(O){var j,Y,H=this.options,W=H.pointIntervalUnit,q=H.relativeXValue,Q=this.chart.time,J=this.xIncrement;return J=d(J,H.pointStart,0),this.pointInterval=Y=d(this.pointInterval,H.pointInterval,1),q&&l(O)&&(Y*=O),W&&(j=new Q.Date(J),W==="day"?Q.set("Date",j,Q.get("Date",j)+Y):W==="month"?Q.set("Month",j,Q.get("Month",j)+Y):W==="year"&&Q.set("FullYear",j,Q.get("FullYear",j)+Y),Y=j.getTime()-J),q&&l(O)?J+Y:(this.xIncrement=J+Y,J)},L.prototype.setDataSortingOptions=function(){var O=this.options;i(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1}),r(O.pointRange)||(O.pointRange=1)},L.prototype.setOptions=function(O){var j,Y=this.chart,H=Y.options,W=H.plotOptions,q=Y.userOptions||{},Q=k(O),J=Y.styledMode,nt={plotOptions:W,userOptions:Q};e(this,"setOptions",nt);var lt=nt.plotOptions[this.type],gt=q.plotOptions||{};this.userOptions=nt.userOptions;var mt=k(lt,W.series,q.plotOptions&&q.plotOptions[this.type],Q);this.tooltipOptions=k(y.tooltip,y.plotOptions.series&&y.plotOptions.series.tooltip,y.plotOptions[this.type].tooltip,H.tooltip.userOptions,W.series&&W.series.tooltip,W[this.type].tooltip,Q.tooltip),this.stickyTracking=d(Q.stickyTracking,gt[this.type]&>[this.type].stickyTracking,gt.series&>.series.stickyTracking,!(!this.tooltipOptions.shared||this.noSharedTooltip)||mt.stickyTracking),lt.marker===null&&delete mt.marker,this.zoneAxis=mt.zoneAxis;var bt=this.zones=(mt.zones||[]).slice();return!mt.negativeColor&&!mt.negativeFillColor||mt.zones||(j={value:mt[this.zoneAxis+"Threshold"]||mt.threshold||0,className:"highcharts-negative"},J||(j.color=mt.negativeColor,j.fillColor=mt.negativeFillColor),bt.push(j)),bt.length&&r(bt[bt.length-1].value)&&bt.push(J?{}:{color:this.color,fillColor:this.fillColor}),e(this,"afterSetOptions",{options:mt}),mt},L.prototype.getName=function(){return d(this.options.name,"Series "+(this.index+1))},L.prototype.getCyclic=function(O,j,Y){var H,W,q=this.chart,Q=this.userOptions,J=O+"Index",nt=O+"Counter",lt=Y?Y.length:d(q.options.chart[O+"Count"],q[O+"Count"]);j||(W=d(Q[J],Q["_"+J]),r(W)?H=W:(q.series.length||(q[nt]=0),Q["_"+J]=H=q[nt]%lt,q[nt]+=1),Y&&(j=Y[H])),H!==void 0&&(this[J]=H),this[O]=j},L.prototype.getColor=function(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color="#cccccc":this.getCyclic("color",this.options.color||y.plotOptions[this.type].color,this.chart.options.colors)},L.prototype.getPointsCollection=function(){return(this.hasGroupedData?this.points:this.data)||[]},L.prototype.getSymbol=function(){var O=this.options.marker;this.getCyclic("symbol",O.symbol,this.chart.options.symbols)},L.prototype.findPointIndex=function(O,j){var Y,H,W,q=O.id,Q=O.x,J=this.points,nt=this.options.dataSorting;if(q){var lt=this.chart.get(q);lt instanceof Z&&(Y=lt)}else if(this.linkedParent||this.enabledDataSorting||this.options.relativeXValue){var gt=function(mt){return!mt.touched&&mt.index===O.index};if(nt&&nt.matchByName?gt=function(mt){return!mt.touched&&mt.name===O.name}:this.options.relativeXValue&&(gt=function(mt){return!mt.touched&&mt.options.x===O.x}),!(Y=o(J,gt)))return}return Y&&(W=Y&&Y.index)!==void 0&&(H=!0),W===void 0&&l(Q)&&(W=this.xData.indexOf(Q,j)),W!==-1&&W!==void 0&&this.cropped&&(W=W>=this.cropStart?W-this.cropStart:W),!H&&l(W)&&J[W]&&J[W].touched&&(W=void 0),W},L.prototype.updateData=function(O,j){var Y,H,W,q,Q=this.options,J=Q.dataSorting,nt=this.points,lt=[],gt=this.requireSorting,mt=O.length===nt.length,bt=!0;if(this.xIncrement=null,O.forEach(function(yt,dt){var ot,at=r(yt)&&this.pointClass.prototype.optionsToObject.call({series:this},yt)||{},ut=at.x;at.id||l(ut)?((ot=this.findPointIndex(at,q))===-1||ot===void 0?lt.push(yt):nt[ot]&&yt!==Q.data[ot]?(nt[ot].update(yt,!1,null,!1),nt[ot].touched=!0,gt&&(q=ot+1)):nt[ot]&&(nt[ot].touched=!0),(!mt||dt!==ot||J&&J.enabled||this.hasDerivedData)&&(Y=!0)):lt.push(yt)},this),Y)for(H=nt.length;H--;)(W=nt[H])&&!W.touched&&W.remove&&W.remove(!1,j);else!mt||J&&J.enabled?bt=!1:(O.forEach(function(yt,dt){yt!==nt[dt].y&&nt[dt].update&&nt[dt].update(yt,!1,null,!1)}),lt.length=0);return nt.forEach(function(yt){yt&&(yt.touched=!1)}),!!bt&&(lt.forEach(function(yt){this.addPoint(yt,!1,null,null,!1)},this),this.xIncrement===null&&this.xData&&this.xData.length&&(this.xIncrement=S(this.xData),this.autoIncrement()),!0)},L.prototype.setData=function(O,j,Y,H){j===void 0&&(j=!0);var W,q,Q,J,nt=this,lt=nt.points,gt=lt&<.length||0,mt=nt.options,bt=nt.chart,yt=mt.dataSorting,dt=nt.xAxis,ot=mt.turboThreshold,at=this.xData,ut=this.yData,vt=nt.pointArrayMap,Ct=vt&&vt.length,xt=mt.keys,St=0,Mt=1,wt=null;bt.options.chart.allowMutatingData||(mt.data&&delete nt.options.data,nt.userOptions.data&&delete nt.userOptions.data,J=k(!0,O));var Tt=(O=J||O||[]).length;if(yt&&yt.enabled&&(O=this.sortData(O)),bt.options.chart.allowMutatingData&&H!==!1&&Tt&>&&!nt.cropped&&!nt.hasGroupedData&&nt.visible&&!nt.boosted&&(Q=this.updateData(O,Y)),!Q){if(nt.xIncrement=null,nt.colorCounter=0,this.parallelArrays.forEach(function(Lt){nt[Lt+"Data"].length=0}),ot&&Tt>ot)if(wt=nt.getFirstValidPoint(O),l(wt))for(W=0;W<Tt;W++)at[W]=this.autoIncrement(),ut[W]=O[W];else if(n(wt))if(Ct)if(wt.length===Ct)for(W=0;W<Tt;W++)at[W]=this.autoIncrement(),ut[W]=O[W];else for(W=0;W<Tt;W++)q=O[W],at[W]=q[0],ut[W]=q.slice(1,Ct+1);else if(xt&&(St=(St=xt.indexOf("x"))>=0?St:0,Mt=(Mt=xt.indexOf("y"))>=0?Mt:1),wt.length===1&&(Mt=0),St===Mt)for(W=0;W<Tt;W++)at[W]=this.autoIncrement(),ut[W]=O[W][Mt];else for(W=0;W<Tt;W++)q=O[W],at[W]=q[St],ut[W]=q[Mt];else t(12,!1,bt);else for(W=0;W<Tt;W++)O[W]!==void 0&&(q={series:nt},nt.pointClass.prototype.applyOptions.apply(q,[O[W]]),nt.updateParallelArrays(q,W));for(ut&&b(ut[0])&&t(14,!0,bt),nt.data=[],nt.options.data=nt.userOptions.data=O,W=gt;W--;)lt[W]&<[W].destroy&<[W].destroy();dt&&(dt.minRange=dt.userMinRange),nt.isDirty=bt.isDirtyBox=!0,nt.isDirtyData=!!lt,Y=!1}mt.legendType==="point"&&(this.processData(),this.generatePoints()),j&&bt.redraw(Y)},L.prototype.sortData=function(O){var j=this,Y=j.options.dataSorting.sortKey||"y",H=function(W,q){return r(q)&&W.pointClass.prototype.optionsToObject.call({series:W},q)||{}};return O.forEach(function(W,q){O[q]=H(j,W),O[q].index=q},this),O.concat().sort(function(W,q){var Q=s(Y,W),J=s(Y,q);return J<Q?-1:J>Q?1:0}).forEach(function(W,q){W.x=q},this),j.linkedSeries&&j.linkedSeries.forEach(function(W){var q=W.options,Q=q.data;q.dataSorting&&q.dataSorting.enabled||!Q||(Q.forEach(function(J,nt){Q[nt]=H(W,J),O[nt]&&(Q[nt].x=O[nt].x,Q[nt].index=nt)}),W.setData(Q,!1))}),O},L.prototype.getProcessedData=function(O){var j,Y,H,W,q,Q,J,nt,lt=this,gt=lt.xAxis,mt=lt.options,bt=mt.cropThreshold,yt=O||lt.getExtremesFromAll||mt.getExtremesFromAll,dt=lt.isCartesian,ot=gt&>.val2lin,at=!(!gt||!gt.logarithmic),ut=0,vt=lt.xData,Ct=lt.yData,xt=lt.requireSorting,St=!1,Mt=vt.length;for(gt&&(J=(Q=gt.getExtremes()).min,nt=Q.max,St=!(!gt.categories||gt.names.length)),dt&<.sorted&&!yt&&(!bt||Mt>bt||lt.forceCrop)&&(vt[Mt-1]<J||vt[0]>nt?(vt=[],Ct=[]):lt.yData&&(vt[0]<J||vt[Mt-1]>nt)&&(vt=(j=this.cropData(lt.xData,lt.yData,J,nt)).xData,Ct=j.yData,ut=j.start,Y=!0)),q=vt.length||1;--q;)(H=at?ot(vt[q])-ot(vt[q-1]):vt[q]-vt[q-1])>0&&(W===void 0||H<W)?W=H:H<0&&xt&&!St&&(t(15,!1,lt.chart),xt=!1);return{xData:vt,yData:Ct,cropped:Y,cropStart:ut,closestPointRange:W}},L.prototype.processData=function(O){var j=this,Y=j.xAxis;if(j.isCartesian&&!j.isDirty&&!Y.isDirty&&!j.yAxis.isDirty&&!O)return!1;var H=j.getProcessedData();j.cropped=H.cropped,j.cropStart=H.cropStart,j.processedXData=H.xData,j.processedYData=H.yData,j.closestPointRange=j.basePointRange=H.closestPointRange,e(j,"afterProcessData")},L.prototype.cropData=function(O,j,Y,H,W){var q,Q,J=O.length,nt=0,lt=J;for(W=d(W,this.cropShoulder),q=0;q<J;q++)if(O[q]>=Y){nt=Math.max(0,q-W);break}for(Q=q;Q<J;Q++)if(O[Q]>H){lt=Q+W;break}return{xData:O.slice(nt,lt),yData:j.slice(nt,lt),start:nt,end:lt}},L.prototype.generatePoints=function(){var O,j,Y,H,W=this,q=W.options,Q=W.processedData||q.data,J=W.processedXData,nt=W.processedYData,lt=W.pointClass,gt=J.length,mt=W.cropStart||0,bt=W.hasGroupedData,yt=q.keys,dt=[],ot=q.dataGrouping&&q.dataGrouping.groupAll?mt:0,at=W.data;if(!at&&!bt){var ut=[];ut.length=Q.length,at=W.data=ut}for(yt&&bt&&(W.options.keys=!1),H=0;H<gt;H++)j=mt+H,bt?((Y=new lt().init(W,[J[H]].concat(A(nt[H])))).dataGroup=W.groupMap[ot+H],Y.dataGroup.options&&(Y.options=Y.dataGroup.options,i(Y,Y.dataGroup.options),delete Y.dataLabels)):(Y=at[j])||Q[j]===void 0||(at[j]=Y=new lt().init(W,Q[j],J[H])),Y&&(Y.index=bt?ot+H:j,dt[H]=Y);if(W.options.keys=yt,at&&(gt!==(O=at.length)||bt))for(H=0;H<O;H++)H!==mt||bt||(H+=gt),at[H]&&(at[H].destroyElements(),at[H].plotX=void 0);W.data=at,W.points=dt,e(this,"afterGeneratePoints")},L.prototype.getXExtremes=function(O){return{min:w(O),max:S(O)}},L.prototype.getExtremes=function(O,j){var Y,H,W,q,Q,J,nt,lt=this.xAxis,gt=this.yAxis,mt=this.processedXData||this.xData,bt=[],yt=this.requireSorting?this.cropShoulder:0,dt=!!gt&>.positiveValuesOnly,ot=0,at=0,ut=0,vt=(O=O||this.stackedYData||this.processedYData||[]).length;for(lt&&(ot=(Y=lt.getExtremes()).min,at=Y.max),J=0;J<vt;J++)if(q=mt[J],Q=O[J],H=(l(Q)||n(Q))&&(Q.length||Q>0||!dt),W=j||this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!lt||(mt[J+yt]||q)>=ot&&(mt[J-yt]||q)<=at,H&&W)if(nt=Q.length)for(;nt--;)l(Q[nt])&&(bt[ut++]=Q[nt]);else bt[ut++]=Q;var Ct={activeYData:bt,dataMin:w(bt),dataMax:S(bt)};return e(this,"afterGetExtremes",{dataExtremes:Ct}),Ct},L.prototype.applyExtremes=function(){var O=this.getExtremes();return this.dataMin=O.dataMin,this.dataMax=O.dataMax,O},L.prototype.getFirstValidPoint=function(O){for(var j=O.length,Y=0,H=null;H===null&&Y<j;)H=O[Y],Y++;return H},L.prototype.translate=function(){this.processedXData||this.processData(),this.generatePoints();var O,j,Y,H,W=this,q=W.options,Q=q.stacking,J=W.xAxis,nt=J.categories,lt=W.enabledDataSorting,gt=W.yAxis,mt=W.points,bt=mt.length,yt=W.pointPlacementToXValue(),dt=!!yt,ot=q.threshold,at=q.startFromThreshold?ot:0,ut=this.zoneAxis||"y",vt=Number.MAX_VALUE;function Ct(jt){return x(jt,-1e5,1e5)}for(O=0;O<bt;O++){var xt=mt[O],St=xt.x,Mt=void 0,wt=void 0,Tt=xt.y,Lt=xt.low,Pt=Q&>.stacking&>.stacking.stacks[(W.negStacks&&Tt<(at?0:ot)?"-":"")+W.stackKey];if((gt.positiveValuesOnly&&!gt.validatePositiveValue(Tt)||J.positiveValuesOnly&&!J.validatePositiveValue(St))&&(xt.isNull=!0),xt.plotX=j=g(Ct(J.translate(St,0,0,0,1,yt,this.type==="flags"))),Q&&W.visible&&Pt&&Pt[St]&&(H=W.getStackIndicator(H,St,W.index),!xt.isNull&&H.key&&(wt=(Mt=Pt[St]).points[H.key]),Mt&&n(wt)&&(Lt=wt[0],Tt=wt[1],Lt===at&&H.key===Pt[St].base&&(Lt=d(l(ot)?ot:gt.min)),gt.positiveValuesOnly&&r(Lt)&&Lt<=0&&(Lt=void 0),xt.total=xt.stackTotal=d(Mt.total),xt.percentage=r(xt.y)&&Mt.total?xt.y/Mt.total*100:void 0,xt.stackY=Tt,W.irregularWidths||Mt.setOffset(W.pointXOffset||0,W.barW||0,void 0,void 0,void 0,W.xAxis))),xt.yBottom=r(Lt)?Ct(gt.translate(Lt,0,1,0,1)):void 0,W.dataModify&&(Tt=W.dataModify.modifyValue(Tt,O)),xt.plotY=void 0,l(Tt)){var Dt=gt.translate(Tt,!1,!0,!1,!0);Dt!==void 0&&(xt.plotY=Ct(Dt))}xt.isInside=this.isPointInside(xt),xt.clientX=dt?g(J.translate(St,0,0,0,1,yt)):j,xt.negative=xt[ut]<(q[ut+"Threshold"]||ot||0),xt.category=d(nt&&nt[xt.x],xt.x),xt.isNull||xt.visible===!1||(Y!==void 0&&(vt=Math.min(vt,Math.abs(j-Y))),Y=j),xt.zone=this.zones.length?xt.getZone():void 0,!xt.graphic&&W.group&<&&(xt.isNew=!0)}W.closestPointRangePx=vt,e(this,"afterTranslate")},L.prototype.getValidPoints=function(O,j,Y){var H=this.chart;return(O||this.points||[]).filter(function(W){return!(j&&!H.isInsidePlot(W.plotX,W.plotY,{inverted:H.inverted}))&&W.visible!==!1&&(Y||!W.isNull)})},L.prototype.getClipBox=function(){var O=this,j=O.chart,Y=O.xAxis,H=O.yAxis,W=k(j.clipBox);return Y&&Y.len!==j.plotSizeX&&(W.width=Y.len),H&&H.len!==j.plotSizeY&&(W.height=H.len),W},L.prototype.getSharedClipKey=function(){return this.sharedClipKey=(this.options.xAxis||0)+","+(this.options.yAxis||0),this.sharedClipKey},L.prototype.setClip=function(){var O=this,j=O.chart,Y=O.group,H=O.markerGroup,W=j.sharedClips,q=j.renderer,Q=this.getClipBox(),J=this.getSharedClipKey(),nt=W[J];nt?nt.animate(Q):W[J]=nt=q.clipRect(Q),Y&&Y.clip(this.options.clip===!1?void 0:nt),H&&H.clip()},L.prototype.animate=function(O){var j=this,Y=j.chart,H=j.group,W=j.markerGroup,q=Y.inverted,Q=M(this.options.animation),J=[this.getSharedClipKey(),Q.duration,Q.easing,Q.defer].join(","),nt=Y.sharedClips[J],lt=Y.sharedClips[J+"m"];if(O&&H){var gt=this.getClipBox();if(nt)nt.attr("height",gt.height);else{gt.width=0,q&&(gt.x=Y.plotHeight),nt=Y.renderer.clipRect(gt),Y.sharedClips[J]=nt;var mt={x:-99,y:-99,width:q?Y.plotWidth+199:99,height:q?99:Y.plotHeight+199};lt=Y.renderer.clipRect(mt),Y.sharedClips[J+"m"]=lt}H.clip(nt),W&&W.clip(lt)}else if(nt&&!nt.hasClass("highcharts-animating")){var bt=this.getClipBox(),yt=Q.step;W&&W.element.childNodes.length&&(Q.step=function(dt,ot){yt&&yt.apply(ot,arguments),ot.prop==="width"&<&<.element&<.attr(q?"height":"width",dt+99)}),nt.addClass("highcharts-animating").animate(bt,Q)}},L.prototype.afterAnimate=function(){var O=this;this.setClip(),D(this.chart.sharedClips,function(j,Y,H){j&&!O.chart.container.querySelector('[clip-path="url(#'.concat(j.id,')"]'))&&(j.destroy(),delete H[Y])}),this.finishedAnimating=!0,e(this,"afterAnimate")},L.prototype.drawPoints=function(O){O===void 0&&(O=this.points);var j,Y,H,W,q,Q,J,nt=this,lt=nt.chart,gt=lt.styledMode,mt=nt.colorAxis,bt=nt.options.marker,yt=nt[nt.specialGroup||"markerGroup"],dt=nt.xAxis,ot=d(bt.enabled,!(dt&&!dt.isRadial)||null,nt.closestPointRangePx>=bt.enabledThreshold*bt.radius);if(bt.enabled!==!1||nt._hasPointMarkers)for(j=0;j<O.length;j++)if(W=(H=(Y=O[j]).graphic)?"animate":"attr",q=Y.marker||{},Q=!!Y.marker,(ot&&q.enabled===void 0||q.enabled)&&!Y.isNull&&Y.visible!==!1){var at=d(q.symbol,nt.symbol,"rect");J=nt.markerAttribs(Y,Y.selected&&"select"),nt.enabledDataSorting&&(Y.startXPos=dt.reversed?-(J.width||0):dt.width);var ut=Y.isInside!==!1;if(!H&&ut&&((J.width||0)>0||Y.hasImage)&&(Y.graphic=H=lt.renderer.symbol(at,J.x,J.y,J.width,J.height,Q?q:bt).add(yt),nt.enabledDataSorting&<.hasRendered&&(H.attr({x:Y.startXPos}),W="animate")),H&&W==="animate"&&H[ut?"show":"hide"](ut).animate(J),H){var vt=nt.pointAttribs(Y,gt||!Y.selected?void 0:"select");gt?mt&&H.css({fill:vt.fill}):H[W](vt)}H&&H.addClass(Y.getClassName(),!0)}else H&&(Y.graphic=H.destroy())},L.prototype.markerAttribs=function(O,j){var Y,H,W=this.options,q=W.marker,Q=O.marker||{},J=Q.symbol||q.symbol,nt={},lt=d(Q.radius,q&&q.radius);j&&(Y=q.states[j],H=Q.states&&Q.states[j],lt=d(H&&H.radius,Y&&Y.radius,lt&<+(Y&&Y.radiusPlus||0))),O.hasImage=J&&J.indexOf("url")===0,O.hasImage&&(lt=0);var gt=O.pos();return l(lt)&>&&(nt.x=gt[0]-lt,nt.y=gt[1]-lt,W.crisp&&(nt.x=Math.floor(nt.x))),lt&&(nt.width=nt.height=2*lt),nt},L.prototype.pointAttribs=function(O,j){var Y,H,W,q,Q=this.options.marker,J=O&&O.options,nt=J&&J.marker||{},lt=J&&J.color,gt=O&&O.color,mt=O&&O.zone&&O.zone.color,bt=this.color,yt=d(nt.lineWidth,Q.lineWidth),dt=1;return bt=lt||mt||gt||bt,W=nt.fillColor||Q.fillColor||bt,q=nt.lineColor||Q.lineColor||bt,(j=j||"normal")&&(Y=Q.states[j]||{},H=nt.states&&nt.states[j]||{},yt=d(H.lineWidth,Y.lineWidth,yt+d(H.lineWidthPlus,Y.lineWidthPlus,0)),W=H.fillColor||Y.fillColor||W,q=H.lineColor||Y.lineColor||q,dt=d(H.opacity,Y.opacity,dt)),{stroke:q,"stroke-width":yt,fill:W,opacity:dt}},L.prototype.destroy=function(O){var j,Y,H,W=this,q=W.chart,Q=/AppleWebKit\/533/.test(u.navigator.userAgent),J=W.data||[];for(e(W,"destroy",{keepEventsForUpdate:O}),this.removeEvents(O),(W.axisTypes||[]).forEach(function(nt){(H=W[nt])&&H.series&&(a(H.series,W),H.isDirty=H.forceRedraw=!0)}),W.legendItem&&W.chart.legend.destroyItem(W),j=J.length;j--;)(Y=J[j])&&Y.destroy&&Y.destroy();W.clips&&W.clips.forEach(function(nt){return nt.destroy()}),E.clearTimeout(W.animationTimeout),D(W,function(nt,lt){nt instanceof I&&!nt.survive&&nt[Q&<==="group"?"hide":"destroy"]()}),q.hoverSeries===W&&(q.hoverSeries=void 0),a(q.series,W),q.orderSeries(),D(W,function(nt,lt){O&<==="hcEvents"||delete W[lt]})},L.prototype.applyZones=function(){var O,j,Y,H,W,q,Q,J,nt,lt,gt,mt=this,bt=this.chart,yt=bt.renderer,dt=this.zones,ot=this.clips||[],at=this.graph,ut=this.area,vt=Math.max(bt.plotWidth,bt.plotHeight),Ct=this[(this.zoneAxis||"y")+"Axis"],xt=bt.inverted,St=!1;dt.length&&(at||ut)&&Ct&&Ct.min!==void 0?(W=Ct.reversed,q=Ct.horiz,at&&!this.showLine&&at.hide(),ut&&ut.hide(),H=Ct.getExtremes(),dt.forEach(function(Mt,wt){O=W?q?bt.plotWidth:0:q?0:Ct.toPixels(H.min)||0,O=x(d(j,O),0,vt),j=x(Math.round(Ct.toPixels(d(Mt.value,H.max),!0)||0),0,vt),St&&(O=j=Ct.toPixels(H.max)),Q=Math.abs(O-j),J=Math.min(O,j),nt=Math.max(O,j),Ct.isXAxis?(Y={x:xt?nt:J,y:0,width:Q,height:vt},q||(Y.x=bt.plotHeight-Y.x)):(Y={x:0,y:xt?nt:J,width:vt,height:Q},q&&(Y.y=bt.plotWidth-Y.y)),xt&&yt.isVML&&(Y=Ct.isXAxis?{x:0,y:W?J:nt,height:Y.width,width:bt.chartWidth}:{x:Y.y-bt.plotLeft-bt.spacingBox.x,y:0,width:Y.height,height:bt.chartHeight}),ot[wt]?ot[wt].animate(Y):ot[wt]=yt.clipRect(Y),lt=mt["zone-area-"+wt],gt=mt["zone-graph-"+wt],at&>&>.clip(ot[wt]),ut&<&<.clip(ot[wt]),St=Mt.value>H.max,mt.resetZones&&j===0&&(j=void 0)}),this.clips=ot):mt.visible&&(at&&at.show(),ut&&ut.show())},L.prototype.plotGroup=function(O,j,Y,H,W){var q=this[O],Q=!q,J={visibility:Y,zIndex:H||.1};return this.opacity===void 0||this.chart.styledMode||this.state==="inactive"||(J.opacity=this.opacity),Q&&(this[O]=q=this.chart.renderer.g().add(W)),q.addClass("highcharts-"+j+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(r(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(q.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),q.attr(J)[Q?"attr":"animate"](this.getPlotBox(j)),q},L.prototype.getPlotBox=function(O){var j=this.xAxis,Y=this.yAxis,H=this.chart,W=H.inverted&&!H.polar&&j&&this.invertible!==!1&&O==="series";return H.inverted&&(j=Y,Y=this.xAxis),{translateX:j?j.left:H.plotLeft,translateY:Y?Y.top:H.plotTop,rotation:W?90:0,rotationOriginX:W?(j.len-Y.len)/2:0,rotationOriginY:W?(j.len+Y.len)/2:0,scaleX:W?-1:1,scaleY:1}},L.prototype.removeEvents=function(O){var j=this;O||C(j),j.eventsToUnbind.length&&(j.eventsToUnbind.forEach(function(Y){Y()}),j.eventsToUnbind.length=0)},L.prototype.render=function(){var O=this,j=O.chart,Y=O.options,H=M(Y.animation),W=O.visible?"inherit":"hidden",q=Y.zIndex,Q=O.hasRendered,J=j.seriesGroup,nt=!O.finishedAnimating&&j.renderer.isSVG?H.duration:0;e(this,"render"),O.plotGroup("group","series",W,q,J),O.markerGroup=O.plotGroup("markerGroup","markers",W,q,J),Y.clip!==!1&&O.setClip(),O.animate&&nt&&O.animate(!0),O.drawGraph&&(O.drawGraph(),O.applyZones()),O.visible&&O.drawPoints(),O.drawDataLabels&&O.drawDataLabels(),O.redrawPoints&&O.redrawPoints(),O.drawTracker&&O.options.enableMouseTracking!==!1&&O.drawTracker(),O.animate&&nt&&O.animate(),Q||(nt&&H.defer&&(nt+=H.defer),O.animationTimeout=N(function(){O.afterAnimate()},nt||0)),O.isDirty=!1,O.hasRendered=!0,e(O,"afterRender")},L.prototype.redraw=function(){var O=this.isDirty||this.isDirtyData;this.translate(),this.render(),O&&delete this.kdTree},L.prototype.searchPoint=function(O,j){var Y=this,H=Y.xAxis,W=Y.yAxis,q=Y.chart.inverted;return this.searchKDTree({clientX:q?H.len-O.chartY+H.pos:O.chartX-H.pos,plotY:q?W.len-O.chartX+W.pos:O.chartY-W.pos},j,O)},L.prototype.buildKDTree=function(O){this.buildingKdTree=!0;var j=this,Y=j.options.findNearestPointBy.indexOf("y")>-1?2:1;function H(W,q,Q){var J,nt,lt=W&&W.length;if(lt)return J=j.kdAxisArray[q%Q],W.sort(function(gt,mt){return gt[J]-mt[J]}),{point:W[nt=Math.floor(lt/2)],left:H(W.slice(0,nt),q+1,Q),right:H(W.slice(nt+1),q+1,Q)}}delete j.kdTree,N(function(){j.kdTree=H(j.getValidPoints(null,!j.directTouch),Y,Y),j.buildingKdTree=!1},j.options.kdNow||O&&O.type==="touchstart"?0:1)},L.prototype.searchKDTree=function(O,j,Y){var H=this,W=this.kdAxisArray[0],q=this.kdAxisArray[1],Q=j?"distX":"dist",J=H.options.findNearestPointBy.indexOf("y")>-1?2:1;if(this.kdTree||this.buildingKdTree||this.buildKDTree(Y),this.kdTree)return function nt(lt,gt,mt,bt){var yt,dt,ot,at,ut,vt,Ct=gt.point,xt=H.kdAxisArray[mt%bt],St=Ct;at=Ct,vt=((ut=r((ot=lt)[W])&&r(at[W])?Math.pow(ot[W]-at[W],2):null)||0)+((r(ot[q])&&r(at[q])?Math.pow(ot[q]-at[q],2):null)||0),at.dist=r(vt)?Math.sqrt(vt):Number.MAX_VALUE,at.distX=r(ut)?Math.sqrt(ut):Number.MAX_VALUE;var Mt=lt[xt]-Ct[xt],wt=Mt<0?"left":"right",Tt=Mt<0?"right":"left";return gt[wt]&&(St=(yt=nt(lt,gt[wt],mt+1,bt))[Q]<St[Q]?yt:Ct),gt[Tt]&&Math.sqrt(Mt*Mt)<St[Q]&&(St=(dt=nt(lt,gt[Tt],mt+1,bt))[Q]<St[Q]?dt:St),St}(O,this.kdTree,J,J)},L.prototype.pointPlacementToXValue=function(){var O=this.options,j=O.pointPlacement,Y=O.pointRange,H=this.xAxis,W=j;return W==="between"&&(W=H.reversed?-.5:.5),l(W)?W*(Y||H.pointRange):0},L.prototype.isPointInside=function(O){var j=this,Y=j.chart,H=j.xAxis,W=j.yAxis;return O.plotY!==void 0&&O.plotX!==void 0&&O.plotY>=0&&O.plotY<=(W?W.len:Y.plotHeight)&&O.plotX>=0&&O.plotX<=(H?H.len:Y.plotWidth)},L.prototype.drawTracker=function(){var O=this,j=O.options,Y=j.trackByArea,H=[].concat(Y?O.areaPath:O.graphPath),W=O.chart,q=W.pointer,Q=W.renderer,J=W.options.tooltip.snap,nt=O.tracker,lt=function(mt){W.hoverSeries!==O&&O.onMouseOver()},gt="rgba(192,192,192,"+(m?1e-4:.002)+")";nt?nt.attr({d:H}):O.graph&&(O.tracker=Q.path(H).attr({visibility:O.visible?"inherit":"hidden",zIndex:2}).addClass(Y?"highcharts-tracker-area":"highcharts-tracker-line").add(O.group),W.styledMode||O.tracker.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:gt,fill:Y?gt:"none","stroke-width":O.graph.strokeWidth()+(Y?0:2*J)}),[O.tracker,O.markerGroup,O.dataLabelsGroup].forEach(function(mt){mt&&(mt.addClass("highcharts-tracker").on("mouseover",lt).on("mouseout",function(bt){q.onTrackerMouseOut(bt)}),j.cursor&&!W.styledMode&&mt.css({cursor:j.cursor}),f&&mt.on("touchstart",lt))})),e(this,"afterDrawTracker")},L.prototype.addPoint=function(O,j,Y,H,W){var q,Q,J=this,nt=J.options,lt=J.data,gt=J.chart,mt=J.xAxis,bt=mt&&mt.hasNames&&mt.names,yt=nt.data,dt=J.xData;j=d(j,!0);var ot={series:J};J.pointClass.prototype.applyOptions.apply(ot,[O]);var at=ot.x;if(Q=dt.length,J.requireSorting&&at<dt[Q-1])for(q=!0;Q&&dt[Q-1]>at;)Q--;J.updateParallelArrays(ot,"splice",Q,0,0),J.updateParallelArrays(ot,Q),bt&&ot.name&&(bt[at]=ot.name),yt.splice(Q,0,O),(q||J.processedData)&&(J.data.splice(Q,0,null),J.processData()),nt.legendType==="point"&&J.generatePoints(),Y&&(lt[0]&<[0].remove?lt[0].remove(!1):(lt.shift(),J.updateParallelArrays(ot,"shift"),yt.shift())),W!==!1&&e(J,"addPoint",{point:ot}),J.isDirty=!0,J.isDirtyData=!0,j&>.redraw(H)},L.prototype.removePoint=function(O,j,Y){var H=this,W=H.data,q=W[O],Q=H.points,J=H.chart,nt=function(){Q&&Q.length===W.length&&Q.splice(O,1),W.splice(O,1),H.options.data.splice(O,1),H.updateParallelArrays(q||{series:H},"splice",O,1),q&&q.destroy(),H.isDirty=!0,H.isDirtyData=!0,j&&J.redraw()};P(Y,J),j=d(j,!0),q?q.firePointEvent("remove",null,nt):nt()},L.prototype.remove=function(O,j,Y,H){var W=this,q=W.chart;function Q(){W.destroy(H),q.isDirtyLegend=q.isDirtyBox=!0,q.linkSeries(),d(O,!0)&&q.redraw(j)}Y!==!1?e(W,"remove",null,Q):Q()},L.prototype.update=function(O,j){O=c(O,this.userOptions),e(this,"update",{options:O});var Y,H,W=this,q=W.chart,Q=W.userOptions,J=W.initialType||W.type,nt=q.options.plotOptions,lt=v[J].prototype,gt=W.finishedAnimating&&{animation:!1},mt={},bt=["eventOptions","navigatorSeries","baseSeries"],yt=O.type||Q.type||q.options.chart.type,dt=!(this.hasDerivedData||yt&&yt!==this.type||O.pointStart!==void 0||O.pointInterval!==void 0||O.relativeXValue!==void 0||O.joinBy||O.mapData||W.hasOptionChanged("dataGrouping")||W.hasOptionChanged("pointStart")||W.hasOptionChanged("pointInterval")||W.hasOptionChanged("pointIntervalUnit")||W.hasOptionChanged("keys"));yt=yt||J,dt&&(bt.push("data","isDirtyData","points","processedData","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","_hasPointLabels","clips","nodes","layout","level","mapMap","mapData","minY","maxY","minX","maxX"),O.visible!==!1&&bt.push("area","graph"),W.parallelArrays.forEach(function(wt){bt.push(wt+"Data")}),O.data&&(O.dataSorting&&i(W.options.dataSorting,O.dataSorting),this.setData(O.data,!1))),O=k(Q,gt,{index:Q.index===void 0?W.index:Q.index,pointStart:d(nt&&nt.series&&nt.series.pointStart,Q.pointStart,W.xData[0])},!dt&&{data:W.options.data},O),dt&&O.data&&(O.data=W.options.data),(bt=["group","markerGroup","dataLabelsGroup","transformGroup","shadowGroup"].concat(bt)).forEach(function(wt){bt[wt]=W[wt],delete W[wt]});var ot=!1;if(v[yt]){if(ot=yt!==W.type,W.remove(!1,!1,!1,!0),ot)if(Object.setPrototypeOf)Object.setPrototypeOf(W,v[yt].prototype);else{var at=Object.hasOwnProperty.call(W,"hcEvents")&&W.hcEvents;for(H in lt)W[H]=void 0;i(W,v[yt].prototype),at?W.hcEvents=at:delete W.hcEvents}}else t(17,!0,q,{missingModuleFor:yt});if(bt.forEach(function(wt){W[wt]=bt[wt]}),W.init(q,O),dt&&this.points){if((Y=W.options).visible===!1)mt.graphic=1,mt.dataLabel=1;else if(!W._hasPointLabels){var ut=Y.marker,vt=Y.dataLabels,Ct=Q.marker||{};!ut||ut.enabled!==!1&&Ct.symbol===ut.symbol&&Ct.height===ut.height&&Ct.width===ut.width||(mt.graphic=1),vt&&vt.enabled===!1&&(mt.dataLabel=1)}for(var xt=0,St=this.points;xt<St.length;xt++){var Mt=St[xt];Mt&&Mt.series&&(Mt.resolveColor(),Object.keys(mt).length&&Mt.destroyElements(mt),Y.showInLegend===!1&&Mt.legendItem&&q.legend.destroyItem(Mt))}}W.initialType=J,q.linkSeries(),ot&&W.linkedSeries.length&&(W.isDirtyData=!0),e(this,"afterUpdate"),d(j,!0)&&q.redraw(!!dt&&void 0)},L.prototype.setName=function(O){this.name=this.options.name=this.userOptions.name=O,this.chart.isDirtyLegend=!0},L.prototype.hasOptionChanged=function(O){var j=this.chart,Y=this.options[O],H=j.options.plotOptions,W=this.userOptions[O];return W?Y!==W:Y!==d(H&&H[this.type]&&H[this.type][O],H&&H.series&&H.series[O],Y)},L.prototype.onMouseOver=function(){var O=this,j=O.chart,Y=j.hoverSeries;j.pointer.setHoverChartIndex(),Y&&Y!==O&&Y.onMouseOut(),O.options.events.mouseOver&&e(O,"mouseOver"),O.setState("hover"),j.hoverSeries=O},L.prototype.onMouseOut=function(){var O=this,j=O.options,Y=O.chart,H=Y.tooltip,W=Y.hoverPoint;Y.hoverSeries=null,W&&W.onMouseOut(),O&&j.events.mouseOut&&e(O,"mouseOut"),!H||O.stickyTracking||H.shared&&!O.noSharedTooltip||H.hide(),Y.series.forEach(function(q){q.setState("",!0)})},L.prototype.setState=function(O,j){var Y,H=this,W=H.options,q=H.graph,Q=W.inactiveOtherPoints,J=W.states,nt=d(J[O||"normal"]&&J[O||"normal"].animation,H.chart.options.chart.animation),lt=W.lineWidth,gt=0,mt=W.opacity;if(O=O||"",H.state!==O&&([H.group,H.markerGroup,H.dataLabelsGroup].forEach(function(bt){bt&&(H.state&&bt.removeClass("highcharts-series-"+H.state),O&&bt.addClass("highcharts-series-"+O))}),H.state=O,!H.chart.styledMode)){if(J[O]&&J[O].enabled===!1)return;if(O&&(lt=J[O].lineWidth||lt+(J[O].lineWidthPlus||0),mt=d(J[O].opacity,mt)),q&&!q.dashstyle&&l(lt))for(Y={"stroke-width":lt},q.animate(Y,nt);H["zone-graph-"+gt];)H["zone-graph-"+gt].animate(Y,nt),gt+=1;Q||[H.group,H.markerGroup,H.dataLabelsGroup,H.labelBySeries].forEach(function(bt){bt&&bt.animate({opacity:mt},nt)})}j&&Q&&H.points&&H.setAllPointsToState(O||void 0)},L.prototype.setAllPointsToState=function(O){this.points.forEach(function(j){j.setState&&j.setState(O)})},L.prototype.setVisible=function(O,j){var Y=this,H=Y.chart,W=H.options.chart.ignoreHiddenSeries,q=Y.visible;Y.visible=O=Y.options.visible=Y.userOptions.visible=O===void 0?!q:O;var Q=O?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(function(J){Y[J]&&Y[J][Q]()}),H.hoverSeries!==Y&&(H.hoverPoint&&H.hoverPoint.series)!==Y||Y.onMouseOut(),Y.legendItem&&H.legend.colorizeItem(Y,O),Y.isDirty=!0,Y.options.stacking&&H.series.forEach(function(J){J.options.stacking&&J.visible&&(J.isDirty=!0)}),Y.linkedSeries.forEach(function(J){J.setVisible(O,!1)}),W&&(H.isDirtyBox=!0),e(Y,Q),j!==!1&&H.redraw()},L.prototype.show=function(){this.setVisible(!0)},L.prototype.hide=function(){this.setVisible(!1)},L.prototype.select=function(O){var j=this;j.selected=O=this.options.selected=O===void 0?!j.selected:O,j.checkbox&&(j.checkbox.checked=O),e(j,O?"select":"unselect")},L.prototype.shouldShowTooltip=function(O,j,Y){return Y===void 0&&(Y={}),Y.series=this,Y.visiblePlotOnly=!0,this.chart.isInsidePlot(O,j,Y)},L.defaultOptions=V,L.types=z.seriesTypes,L.registerType=z.registerSeriesType,L}();return i(R.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,cropShoulder:1,directTouch:!1,drawLegendSymbol:$.drawLineMarker,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:Z,requireSorting:!0,sorted:!0}),z.series=R,R}),et(_,"Extensions/ScrollablePlotArea.js",[_["Core/Animation/AnimationUtilities.js"],_["Core/Axis/Axis.js"],_["Core/Chart/Chart.js"],_["Core/Series/Series.js"],_["Core/Renderer/RendererRegistry.js"],_["Core/Utilities.js"]],function(G,B,X,U,$,Z){var V=G.stop,z=Z.addEvent,I=Z.createElement,E=Z.defined,M=Z.merge,P=Z.pick;z(X,"afterSetChartSize",function(y){var h,f,m,u=this.options.chart.scrollablePlotArea,v=u&&u.minWidth,S=u&&u.minHeight;this.renderer.forExport||(v?(this.scrollablePixelsX=h=Math.max(0,v-this.chartWidth),h&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=M(this.plotBox),this.plotBox.width=this.plotWidth+=h,this.inverted?this.clipBox.height+=h:this.clipBox.width+=h,m={1:{name:"right",value:h}})):S&&(this.scrollablePixelsY=f=Math.max(0,S-this.chartHeight),E(f)&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=M(this.plotBox),this.plotBox.height=this.plotHeight+=f,this.inverted?this.clipBox.width+=f:this.clipBox.height+=f,m={2:{name:"bottom",value:f}})),m&&!y.skipAxes&&this.axes.forEach(function(w){m[w.side]?w.getPlotLinePath=function(){var x,c=m[w.side].name,g=m[w.side].value,r=this[c];return this[c]=r-g,x=B.prototype.getPlotLinePath.apply(this,arguments),this[c]=r,x}:(w.setAxisSize(),w.setAxisTranslation())}))}),z(X,"render",function(){this.scrollablePixelsX||this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()}),X.prototype.setUpScrolling=function(){var y,h=this,f={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(f.overflowX="auto"),this.scrollablePixelsY&&(f.overflowY="auto"),this.scrollingParent=I("div",{className:"highcharts-scrolling-parent"},{position:"relative"},this.renderTo),this.scrollingContainer=I("div",{className:"highcharts-scrolling"},f,this.scrollingParent),z(this.scrollingContainer,"scroll",function(){h.pointer&&(delete h.pointer.chartPosition,h.hoverPoint&&(y=h.hoverPoint),h.pointer.runPointActions(void 0,y,!0))}),this.innerContainer=I("div",{className:"highcharts-inner-container"},null,this.scrollingContainer),this.innerContainer.appendChild(this.container),this.setUpScrolling=null},X.prototype.moveFixedElements=function(){var y,h=this.container,f=this.fixedRenderer,m=[".highcharts-breadcrumbs-group",".highcharts-contextbutton",".highcharts-credits",".highcharts-legend",".highcharts-legend-checkbox",".highcharts-navigator-series",".highcharts-navigator-xaxis",".highcharts-navigator-yaxis",".highcharts-navigator",".highcharts-reset-zoom",".highcharts-drillup-button",".highcharts-scrollbar",".highcharts-subtitle",".highcharts-title"];this.scrollablePixelsX&&!this.inverted?y=".highcharts-yaxis":this.scrollablePixelsX&&this.inverted||this.scrollablePixelsY&&!this.inverted?y=".highcharts-xaxis":this.scrollablePixelsY&&this.inverted&&(y=".highcharts-yaxis"),y&&m.push(y+":not(.highcharts-radial-axis)",y+"-labels:not(.highcharts-radial-axis-labels)"),m.forEach(function(u){[].forEach.call(h.querySelectorAll(u),function(v){(v.namespaceURI===f.SVG_NS?f.box:f.box.parentNode).appendChild(v),v.style.pointerEvents="auto"})})},X.prototype.applyFixed=function(){var y,h,f,m=!this.fixedDiv,u=this.options.chart,v=u.scrollablePlotArea,S=$.getRendererType();m?(this.fixedDiv=I("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(u.style&&u.style.zIndex||0)+2,top:0},null,!0),this.scrollingContainer&&this.scrollingContainer.parentNode.insertBefore(this.fixedDiv,this.scrollingContainer),this.renderTo.style.overflow="visible",this.fixedRenderer=y=new S(this.fixedDiv,this.chartWidth,this.chartHeight,this.options.chart.style),this.scrollableMask=y.path().attr({fill:this.options.chart.backgroundColor||"#fff","fill-opacity":P(v.opacity,.85),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),z(this,"afterShowResetZoom",this.moveFixedElements),z(this,"afterApplyDrilldown",this.moveFixedElements),z(this,"afterLayOutTitles",this.moveFixedElements)):this.fixedRenderer.setSize(this.chartWidth,this.chartHeight),(this.scrollableDirty||m)&&(this.scrollableDirty=!1,this.moveFixedElements()),h=this.chartWidth+(this.scrollablePixelsX||0),f=this.chartHeight+(this.scrollablePixelsY||0),V(this.container),this.container.style.width=h+"px",this.container.style.height=f+"px",this.renderer.boxWrapper.attr({width:h,height:f,viewBox:[0,0,h,f].join(" ")}),this.chartBackground.attr({width:h,height:f}),this.scrollingContainer.style.height=this.chartHeight+"px",m&&(v.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*v.scrollPositionX),v.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY*v.scrollPositionY));var w,x=this.axisOffset,c=this.plotTop-x[0]-1,g=this.plotLeft-x[3]-1,r=this.plotTop+this.plotHeight+x[2]+1,a=this.plotLeft+this.plotWidth+x[1]+1,t=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),i=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0);w=this.scrollablePixelsX?[["M",0,c],["L",this.plotLeft-1,c],["L",this.plotLeft-1,r],["L",0,r],["Z"],["M",t,c],["L",this.chartWidth,c],["L",this.chartWidth,r],["L",t,r],["Z"]]:this.scrollablePixelsY?[["M",g,0],["L",g,this.plotTop-1],["L",a,this.plotTop-1],["L",a,0],["Z"],["M",g,i],["L",g,this.chartHeight],["L",a,this.chartHeight],["L",a,i],["Z"]]:[["M",0,0]],this.redrawTrigger!=="adjustHeight"&&this.scrollableMask.attr({d:w})},z(B,"afterInit",function(){this.chart.scrollableDirty=!0}),z(U,"show",function(){this.chart.scrollableDirty=!0})}),et(_,"Core/Axis/Stacking/StackItem.js",[_["Core/FormatUtilities.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,X){var U=G.format,$=B.series,Z=X.destroyObjectProperties,V=X.pick,z=X.isNumber;return function(){function I(E,M,P,y,h){var f=E.chart.inverted,m=E.reversed;this.axis=E;var u=this.isNegative=!!P!=!!m;this.options=M=M||{},this.x=y,this.total=null,this.cumulative=null,this.points={},this.hasValidPoints=!1,this.stack=h,this.leftCliff=0,this.rightCliff=0,this.alignOptions={align:M.align||(f?u?"left":"right":"center"),verticalAlign:M.verticalAlign||(f?"middle":u?"bottom":"top"),y:M.y,x:M.x},this.textAlign=M.textAlign||(f?u?"right":"left":"center")}return I.prototype.destroy=function(){Z(this,this.axis)},I.prototype.render=function(E){var M=this.axis.chart,P=this.options,y=P.format,h=y?U(y,this,M):P.formatter.call(this);if(this.label)this.label.attr({text:h,visibility:"hidden"});else{this.label=M.renderer.label(h,null,void 0,P.shape,void 0,void 0,P.useHTML,!1,"stack-labels");var f={r:P.borderRadius||0,text:h,padding:V(P.padding,5),visibility:"hidden"};M.styledMode||(f.fill=P.backgroundColor,f.stroke=P.borderColor,f["stroke-width"]=P.borderWidth,this.label.css(P.style||{})),this.label.attr(f),this.label.added||this.label.add(E)}this.label.labelrank=M.plotSizeY},I.prototype.setOffset=function(E,M,P,y,h,f){var m=this,u=m.alignOptions,v=m.axis,S=m.label,w=m.options,x=m.textAlign,c=v.chart,g=this.getStackBox({xOffset:E,width:M,boxBottom:P,boxTop:y,defaultX:h,xAxis:f}),r=u.verticalAlign;if(S&&g){var a=S.getBBox(),t=S.padding,i=V(w.overflow,"justify")==="justify",o=void 0;u.x=w.x||0,u.y=w.y||0;var e=this.adjustStackPosition({labelBox:a,verticalAlign:r,textAlign:x}),s=e.x,n=e.y;g.x-=s,g.y-=n,S.align(u,!1,g),(o=c.isInsidePlot(S.alignAttr.x+u.x+s,S.alignAttr.y+u.y+n))||(i=!1),i&&$.prototype.justifyDataLabel.call(v,S,u,S.alignAttr,a,g),S.attr({x:S.alignAttr.x,y:S.alignAttr.y,rotation:w.rotation,rotationOriginX:a.width/2,rotationOriginY:a.height/2}),V(!i&&w.crop,!0)&&(o=z(S.x)&&z(S.y)&&c.isInsidePlot(S.x-t+S.width,S.y)&&c.isInsidePlot(S.x+t,S.y)),S[o?"show":"hide"]()}},I.prototype.adjustStackPosition=function(E){var M=E.labelBox,P=E.verticalAlign,y=E.textAlign,h={bottom:0,middle:1,top:2,right:1,center:0,left:-1},f=h[P],m=h[y];return{x:M.width/2+M.width/2*m,y:M.height/2*f}},I.prototype.getStackBox=function(E){var M=this.axis,P=M.chart,y=E.boxTop,h=E.defaultX,f=E.xOffset,m=E.width,u=E.boxBottom,v=M.stacking.usePercentage?100:V(y,this.total,0),S=M.toPixels(v),w=E.xAxis||P.xAxis[0],x=V(h,w.toPixels(this.x))+f,c=M.toPixels(u||0),g=Math.abs(S-c),r=P.inverted,a=this.isNegative;return r?{x:(a?S:S-g)-P.plotLeft,y:x-P.plotTop,width:g,height:m}:{x:x-P.plotLeft,y:(a?S-g:S)-P.plotTop,width:m,height:g}},I}()}),et(_,"Core/Axis/Stacking/StackingAxis.js",[_["Core/Animation/AnimationUtilities.js"],_["Core/Axis/Axis.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Axis/Stacking/StackItem.js"],_["Core/Utilities.js"]],function(G,B,X,U,$){var Z=G.getDeferredAnimation,V=X.series.prototype,z=$.addEvent,I=$.correctFloat,E=$.defined,M=$.destroyObjectProperties,P=$.fireEvent,y=$.isArray,h=$.isNumber,f=$.objectEach,m=$.pick;function u(){var i=this,o=i.inverted;i.yAxis.forEach(function(e){e.stacking&&e.stacking.stacks&&e.hasVisibleSeries&&(e.stacking.oldStacks=e.stacking.stacks)}),i.series.forEach(function(e){var s=e.xAxis&&e.xAxis.options||{};!e.options.stacking||e.visible!==!0&&i.options.chart.ignoreHiddenSeries!==!1||(e.stackKey=[e.type,m(e.options.stack,""),o?s.top:s.left,o?s.height:s.width].join(","))})}function v(){var i=this.stacking;if(i){var o=i.stacks;f(o,function(e,s){M(e),o[s]=null}),i&&i.stackTotalGroup&&i.stackTotalGroup.destroy()}}function S(){this.coll!=="yAxis"||this.stacking||(this.stacking=new t(this))}function w(i,o,e,s){return!E(i)||i.x!==o||s&&i.stackKey!==s?i={x:o,index:0,key:s,stackKey:s}:i.index++,i.key=[e,o,i.index].join(","),i}function x(){var i,o=this,e=o.yAxis,s=o.stackKey,n=e.stacking.stacks,l=o.processedXData,b=o.options.stacking,k=o[b+"Stacker"];k&&[s,"-"+s].forEach(function(D){for(var d,C,A,N=l.length;N--;)d=l[N],i=o.getStackIndicator(i,d,o.index,D),(A=(C=n[D]&&n[D][d])&&C.points[i.key])&&k.call(o,A,C,N)})}function c(i,o,e){var s=o.total?100/o.total:0;i[0]=I(i[0]*s),i[1]=I(i[1]*s),this.stackedYData[e]=i[1]}function g(){var i=this.yAxis.stacking;this.options.centerInCategory&&(this.is("column")||this.is("columnrange"))&&!this.options.stacking&&this.chart.series.length>1?V.setStackedPoints.call(this,"group"):i&&f(i.stacks,function(o,e){e.slice(-5)==="group"&&(f(o,function(s){return s.destroy()}),delete i.stacks[e])})}function r(i){var o=this.chart,e=i||this.options.stacking;if(e&&(this.visible===!0||o.options.chart.ignoreHiddenSeries===!1)){var s,n,l,b,k,D,d,C,A,N=this,R=N.processedXData,L=N.processedYData,O=[],j=L.length,Y=N.options,H=Y.threshold,W=m(Y.startFromThreshold&&H,0),q=Y.stack,Q=i?""+N.type+",".concat(e):N.stackKey,J="-"+Q,nt=N.negStacks,lt=e==="group"?o.yAxis[0]:N.yAxis,gt=lt.stacking.stacks,mt=lt.stacking.oldStacks;for(lt.stacking.stacksTouched+=1,d=0;d<j;d++)C=R[d],A=L[d],D=(s=N.getStackIndicator(s,C,N.index)).key,gt[k=(n=nt&&A<(W?0:H))?J:Q]||(gt[k]={}),gt[k][C]||(mt[k]&&mt[k][C]?(gt[k][C]=mt[k][C],gt[k][C].total=null):gt[k][C]=new U(lt,lt.options.stackLabels,!!n,C,q)),l=gt[k][C],A!==null?(l.points[D]=l.points[N.index]=[m(l.cumulative,W)],E(l.cumulative)||(l.base=D),l.touched=lt.stacking.stacksTouched,s.index>0&&N.singleStacks===!1&&(l.points[D][0]=l.points[N.index+","+C+",0"][0])):l.points[D]=l.points[N.index]=null,e==="percent"?(b=n?Q:J,nt&>[b]&>[b][C]?(b=gt[b][C],l.total=b.total=Math.max(b.total,l.total)+Math.abs(A)||0):l.total=I(l.total+(Math.abs(A)||0))):e==="group"?(y(A)&&(A=A[0]),A!==null&&(l.total=(l.total||0)+1)):l.total=I(l.total+(A||0)),l.cumulative=e==="group"?(l.total||1)-1:m(l.cumulative,W)+(A||0),A!==null&&(l.points[D].push(l.cumulative),O[d]=l.cumulative,l.hasValidPoints=!0);e==="percent"&&(lt.stacking.usePercentage=!0),e!=="group"&&(this.stackedYData=O),lt.stacking.oldStacks={}}}var a,t=function(){function i(o){this.oldStacks={},this.stacks={},this.stacksTouched=0,this.axis=o}return i.prototype.buildStacks=function(){var o,e,s=this.axis,n=s.series,l=s.options.reversedStacks,b=n.length;for(this.usePercentage=!1,e=b;e--;)(o=n[l?e:b-e-1]).setStackedPoints(),o.setGroupedPoints();for(e=0;e<b;e++)n[e].modifyStacks();P(s,"afterBuildStacks")},i.prototype.cleanStacks=function(){var o,e=this;e.oldStacks&&(o=e.stacks=e.oldStacks),f(o,function(s){f(s,function(n){n.cumulative=n.total})})},i.prototype.resetStacks=function(){var o=this;f(this.stacks,function(e){f(e,function(s,n){h(s.touched)&&s.touched<o.stacksTouched?(s.destroy(),delete e[n]):(s.total=null,s.cumulative=null)})})},i.prototype.renderStackTotals=function(){var o=this,e=o.axis,s=e.chart,n=s.renderer,l=o.stacks,b=e.options.stackLabels&&e.options.stackLabels.animation,k=Z(s,b||!1),D=o.stackTotalGroup=o.stackTotalGroup||n.g("stack-labels").attr({zIndex:6,opacity:0}).add();D.translate(s.plotLeft,s.plotTop),f(l,function(d){f(d,function(C){C.render(D)})}),D.animate({opacity:1},k)},i}();return function(i){var o=[];i.compose=function(e,s,n){if(o.indexOf(e)===-1&&(o.push(e),z(e,"init",S),z(e,"destroy",v)),o.indexOf(s)===-1&&(o.push(s),s.prototype.getStacks=u),o.indexOf(n)===-1){o.push(n);var l=n.prototype;l.getStackIndicator=w,l.modifyStacks=x,l.percentStacker=c,l.setGroupedPoints=g,l.setStackedPoints=r}}}(a||(a={})),a}),et(_,"Series/Line/LineSeries.js",[_["Core/Series/Series.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,X){var U,$=this&&this.__extends||(U=function(I,E){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,P){M.__proto__=P}||function(M,P){for(var y in P)P.hasOwnProperty(y)&&(M[y]=P[y])},U(I,E)},function(I,E){function M(){this.constructor=I}U(I,E),I.prototype=E===null?Object.create(E):(M.prototype=E.prototype,new M)}),Z=X.defined,V=X.merge,z=function(I){function E(){var M=I!==null&&I.apply(this,arguments)||this;return M.data=void 0,M.options=void 0,M.points=void 0,M}return $(E,I),E.prototype.drawGraph=function(){var M=this,P=this.options,y=(this.gappedPath||this.getGraphPath).call(this),h=this.chart.styledMode,f=[["graph","highcharts-graph"]];h||f[0].push(P.lineColor||this.color||"#cccccc",P.dashStyle),(f=M.getZonesGraphs(f)).forEach(function(m,u){var v,S=m[0],w=M[S],x=w?"animate":"attr";w?(w.endX=M.preventGraphAnimation?null:y.xMap,w.animate({d:y})):y.length&&(M[S]=w=M.chart.renderer.path(y).addClass(m[1]).attr({zIndex:1}).add(M.group)),w&&!h&&(v={stroke:m[2],"stroke-width":P.lineWidth||0,fill:M.fillGraph&&M.color||"none"},m[3]?v.dashstyle=m[3]:P.linecap!=="square"&&(v["stroke-linecap"]=v["stroke-linejoin"]="round"),w[x](v).shadow(u<2&&P.shadow)),w&&(w.startX=y.xMap,w.isArea=y.isArea)})},E.prototype.getGraphPath=function(M,P,y){var h,f=this,m=f.options,u=[],v=[],S=m.step,w=(M=M||f.points).reversed;return w&&M.reverse(),(S={right:1,center:2}[S]||S&&3)&&w&&(S=4-S),(M=this.getValidPoints(M,!1,!(m.connectNulls&&!P&&!y))).forEach(function(x,c){var g,r=x.plotX,a=x.plotY,t=M[c-1];(x.leftCliff||t&&t.rightCliff)&&!y&&(h=!0),x.isNull&&!Z(P)&&c>0?h=!m.connectNulls:x.isNull&&!P?h=!0:(c===0||h?g=[["M",x.plotX,x.plotY]]:f.getPointSpline?g=[f.getPointSpline(M,x,c)]:S?(g=S===1?[["L",t.plotX,a]]:S===2?[["L",(t.plotX+r)/2,t.plotY],["L",(t.plotX+r)/2,a]]:[["L",r,t.plotY]]).push(["L",r,a]):g=[["L",r,a]],v.push(x.x),S&&(v.push(x.x),S===2&&v.push(x.x)),u.push.apply(u,g),h=!1)}),u.xMap=v,f.graphPath=u,u},E.prototype.getZonesGraphs=function(M){return this.zones.forEach(function(P,y){var h=["zone-graph-"+y,"highcharts-graph highcharts-zone-graph-"+y+" "+(P.className||"")];this.chart.styledMode||h.push(P.color||this.color,P.dashStyle||this.options.dashStyle),M.push(h)},this),M},E.defaultOptions=V(G.defaultOptions,{}),E}(G);return B.registerSeriesType("line",z),z}),et(_,"Series/Area/AreaSeries.js",[_["Core/Color/Color.js"],_["Core/Legend/LegendSymbol.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,X,U){var $,Z=this&&this.__extends||($=function(h,f){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,u){m.__proto__=u}||function(m,u){for(var v in u)u.hasOwnProperty(v)&&(m[v]=u[v])},$(h,f)},function(h,f){function m(){this.constructor=h}$(h,f),h.prototype=f===null?Object.create(f):(m.prototype=f.prototype,new m)}),V=G.parse,z=X.seriesTypes.line,I=U.extend,E=U.merge,M=U.objectEach,P=U.pick,y=function(h){function f(){var m=h!==null&&h.apply(this,arguments)||this;return m.data=void 0,m.options=void 0,m.points=void 0,m}return Z(f,h),f.prototype.drawGraph=function(){this.areaPath=[],h.prototype.drawGraph.apply(this);var m=this,u=this.areaPath,v=this.options,S=this.zones,w=[["area","highcharts-area",this.color,v.fillColor]];S.forEach(function(x,c){w.push(["zone-area-"+c,"highcharts-area highcharts-zone-area-"+c+" "+x.className,x.color||m.color,x.fillColor||v.fillColor])}),w.forEach(function(x){var c=x[0],g={},r=m[c],a=r?"animate":"attr";r?(r.endX=m.preventGraphAnimation?null:u.xMap,r.animate({d:u})):(g.zIndex=0,(r=m[c]=m.chart.renderer.path(u).addClass(x[1]).add(m.group)).isArea=!0),m.chart.styledMode||(g.fill=P(x[3],V(x[2]).setOpacity(P(v.fillOpacity,.75)).get())),r[a](g),r.startX=u.xMap,r.shiftUnit=v.step?2:1})},f.prototype.getGraphPath=function(m){var u,v,S,w=z.prototype.getGraphPath,x=this.options,c=x.stacking,g=this.yAxis,r=[],a=[],t=this.index,i=g.stacking.stacks[this.stackKey],o=x.threshold,e=Math.round(g.getThreshold(x.threshold)),s=P(x.connectNulls,c==="percent"),n=function(N,R,L){var O,j,Y=m[N],H=c&&i[Y.x].points[t],W=Y[L+"Null"]||0,q=Y[L+"Cliff"]||0,Q=!0;q||W?(O=(W?H[0]:H[1])+q,j=H[0]+q,Q=!!W):!c&&m[R]&&m[R].isNull&&(O=j=o),O!==void 0&&(a.push({plotX:u,plotY:O===null?e:g.getThreshold(O),isNull:Q,isCliff:!0}),r.push({plotX:u,plotY:j===null?e:g.getThreshold(j),doCurve:!1}))};m=m||this.points,c&&(m=this.getStackPoints(m));for(var l=0,b=m.length;l<b;++l)c||(m[l].leftCliff=m[l].rightCliff=m[l].leftNull=m[l].rightNull=void 0),v=m[l].isNull,u=P(m[l].rectPlotX,m[l].plotX),S=c?P(m[l].yBottom,e):e,v&&!s||(s||n(l,l-1,"left"),v&&!c&&s||(a.push(m[l]),r.push({x:l,plotX:u,plotY:S})),s||n(l,l+1,"right"));var k=w.call(this,a,!0,!0);r.reversed=!0;var D=w.call(this,r,!0,!0),d=D[0];d&&d[0]==="M"&&(D[0]=["L",d[1],d[2]]);var C=k.concat(D);C.length&&C.push(["Z"]);var A=w.call(this,a,!1,s);return C.xMap=k.xMap,this.areaPath=C,A},f.prototype.getStackPoints=function(m){var u=this,v=[],S=[],w=this.xAxis,x=this.yAxis,c=x.stacking.stacks[this.stackKey],g={},r=x.series,a=r.length,t=x.options.reversedStacks?1:-1,i=r.indexOf(u);if(m=m||this.points,this.options.stacking){for(var o=0;o<m.length;o++)m[o].leftNull=m[o].rightNull=void 0,g[m[o].x]=m[o];M(c,function(s,n){s.total!==null&&S.push(n)}),S.sort(function(s,n){return s-n});var e=r.map(function(s){return s.visible});S.forEach(function(s,n){var l,b,k=0;if(g[s]&&!g[s].isNull)v.push(g[s]),[-1,1].forEach(function(C){var A=C===1?"rightNull":"leftNull",N=C===1?"rightCliff":"leftCliff",R=c[S[n+C]],L=0;if(R)for(var O=i;O>=0&&O<a;){var j=r[O].index;(l=R.points[j])||(j===u.index?g[s][A]=!0:e[O]&&(b=c[s].points[j])&&(L-=b[1]-b[0])),O+=t}g[s][N]=L});else{for(var D=i;D>=0&&D<a;){var d=r[D].index;if(l=c[s].points[d]){k=l[1];break}D+=t}k=P(k,0),k=x.translate(k,0,1,0,1),v.push({isNull:!0,plotX:w.translate(s,0,0,0,1),x:s,plotY:k,yBottom:k})}})}return v},f.defaultOptions=E(z.defaultOptions,{threshold:0}),f}(z);return I(y.prototype,{singleStacks:!1,drawLegendSymbol:B.drawRectangle}),X.registerSeriesType("area",y),y}),et(_,"Series/Spline/SplineSeries.js",[_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B){var X,U=this&&this.__extends||(X=function(I,E){return X=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,P){M.__proto__=P}||function(M,P){for(var y in P)P.hasOwnProperty(y)&&(M[y]=P[y])},X(I,E)},function(I,E){function M(){this.constructor=I}X(I,E),I.prototype=E===null?Object.create(E):(M.prototype=E.prototype,new M)}),$=G.seriesTypes.line,Z=B.merge,V=B.pick,z=function(I){function E(){var M=I!==null&&I.apply(this,arguments)||this;return M.data=void 0,M.options=void 0,M.points=void 0,M}return U(E,I),E.prototype.getPointSpline=function(M,P,y){var h,f,m,u,v=1.5,S=2.5,w=P.plotX||0,x=P.plotY||0,c=M[y-1],g=M[y+1];function r(n){return n&&!n.isNull&&n.doCurve!==!1&&!P.isCliff}if(r(c)&&r(g)){var a=c.plotX||0,t=c.plotY||0,i=g.plotX||0,o=g.plotY||0,e=0;f=(v*x+t)/S,u=(v*x+o)/S,(m=(v*w+i)/S)!==(h=(v*w+a)/S)&&(e=(u-f)*(m-w)/(m-h)+x-u),u+=e,(f+=e)>t&&f>x?u=2*x-(f=Math.max(t,x)):f<t&&f<x&&(u=2*x-(f=Math.min(t,x))),u>o&&u>x?f=2*x-(u=Math.max(o,x)):u<o&&u<x&&(f=2*x-(u=Math.min(o,x))),P.rightContX=m,P.rightContY=u}var s=["C",V(c.rightContX,c.plotX,0),V(c.rightContY,c.plotY,0),V(h,w,0),V(f,x,0),w,x];return c.rightContX=c.rightContY=void 0,s},E.defaultOptions=Z($.defaultOptions),E}($);return G.registerSeriesType("spline",z),z}),et(_,"Series/AreaSpline/AreaSplineSeries.js",[_["Series/Spline/SplineSeries.js"],_["Core/Legend/LegendSymbol.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,X,U){var $,Z=this&&this.__extends||($=function(y,h){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var u in m)m.hasOwnProperty(u)&&(f[u]=m[u])},$(y,h)},function(y,h){function f(){this.constructor=y}$(y,h),y.prototype=h===null?Object.create(h):(f.prototype=h.prototype,new f)}),V=X.seriesTypes,z=V.area,I=V.area.prototype,E=U.extend,M=U.merge,P=function(y){function h(){var f=y!==null&&y.apply(this,arguments)||this;return f.data=void 0,f.points=void 0,f.options=void 0,f}return Z(h,y),h.defaultOptions=M(G.defaultOptions,z.defaultOptions),h}(G);return E(P.prototype,{getGraphPath:I.getGraphPath,getStackPoints:I.getStackPoints,drawGraph:I.drawGraph,drawLegendSymbol:B.drawRectangle}),X.registerSeriesType("areaspline",P),P}),et(_,"Series/Column/ColumnSeriesDefaults.js",[],function(){return{borderRadius:0,centerInCategory:!1,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{halo:!1,brightness:.1},select:{color:"#cccccc",borderColor:"#000000"}},dataLabels:{align:void 0,verticalAlign:void 0,y:void 0},startFromThreshold:!0,stickyTracking:!1,tooltip:{distance:6},threshold:0,borderColor:"#ffffff"}}),et(_,"Series/Column/ColumnSeries.js",[_["Core/Animation/AnimationUtilities.js"],_["Core/Color/Color.js"],_["Series/Column/ColumnSeriesDefaults.js"],_["Core/Globals.js"],_["Core/Legend/LegendSymbol.js"],_["Core/Series/Series.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,X,U,$,Z,V,z){var I,E=this&&this.__extends||(I=function(a,t){return I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var e in o)o.hasOwnProperty(e)&&(i[e]=o[e])},I(a,t)},function(a,t){function i(){this.constructor=a}I(a,t),a.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}),M=G.animObject,P=B.parse,y=U.hasTouch,h=U.noop,f=z.clamp,m=z.defined,u=z.extend,v=z.fireEvent,S=z.isArray,w=z.isNumber,x=z.merge,c=z.pick,g=z.objectEach,r=function(a){function t(){var i=a!==null&&a.apply(this,arguments)||this;return i.borderWidth=void 0,i.data=void 0,i.group=void 0,i.options=void 0,i.points=void 0,i}return E(t,a),t.prototype.animate=function(i){var o,e,s=this,n=this.yAxis,l=s.options,b=this.chart.inverted,k={},D=b?"translateX":"translateY";i?(k.scaleY=.001,e=f(n.toPixels(l.threshold),n.pos,n.pos+n.len),b?k.translateX=e-n.len:k.translateY=e,s.clipBox&&s.setClip(),s.group.attr(k)):(o=Number(s.group.attr(D)),s.group.animate({scaleY:1},u(M(s.options.animation),{step:function(d,C){s.group&&(k[D]=o+C.pos*(n.pos-o),s.group.attr(k))}})))},t.prototype.init=function(i,o){a.prototype.init.apply(this,arguments);var e=this;(i=e.chart).hasRendered&&i.series.forEach(function(s){s.type===e.type&&(s.isDirty=!0)})},t.prototype.getColumnMetrics=function(){var i,o=this,e=o.options,s=o.xAxis,n=o.yAxis,l=s.options.reversedStacks,b=s.reversed&&!l||!s.reversed&&l,k={},D=0;e.grouping===!1?D=1:o.chart.series.forEach(function(L){var O,j=L.yAxis,Y=L.options;L.type!==o.type||!L.visible&&o.chart.options.chart.ignoreHiddenSeries||n.len!==j.len||n.pos!==j.pos||(Y.stacking&&Y.stacking!=="group"?(i=L.stackKey,k[i]===void 0&&(k[i]=D++),O=k[i]):Y.grouping!==!1&&(O=D++),L.columnIndex=O)});var d=Math.min(Math.abs(s.transA)*(s.ordinal&&s.ordinal.slope||e.pointRange||s.closestPointRange||s.tickInterval||1),s.len),C=d*e.groupPadding,A=(d-2*C)/(D||1),N=Math.min(e.maxPointWidth||s.len,c(e.pointWidth,A*(1-2*e.pointPadding))),R=(A-N)/2+(C+((o.columnIndex||0)+(b?1:0))*A-d/2)*(b?-1:1);return o.columnMetrics={width:N,offset:R,paddedWidth:A,columnCount:D},o.columnMetrics},t.prototype.crispCol=function(i,o,e,s){var n=this.chart,l=this.borderWidth,b=-(l%2?.5:0),k=l%2?.5:1;n.inverted&&n.renderer.isVML&&(k+=1),this.options.crisp&&(e=Math.round(i+e)+b-(i=Math.round(i)+b));var D=Math.round(o+s)+k,d=Math.abs(o)<=.5&&D>.5;return s=D-(o=Math.round(o)+k),d&&s&&(o-=1,s+=1),{x:i,y:o,width:e,height:s}},t.prototype.adjustForMissingColumns=function(i,o,e,s){var n=this,l=this.options.stacking;if(!e.isNull&&s.columnCount>1){var b=this.yAxis.options.reversedStacks,k=0,D=b?0:-s.columnCount;g(this.yAxis.stacking&&this.yAxis.stacking.stacks,function(C){if(typeof e.x=="number"){var A=C[e.x.toString()];if(A){var N=A.points[n.index];if(l)N&&(k=D),A.hasValidPoints&&(b?D++:D--);else if(S(N)){var R=Object.keys(A.points).filter(function(L){return!L.match(",")&&A.points[L]&&A.points[L].length>1}).map(parseFloat).sort(function(L,O){return O-L});k=R.indexOf(n.index),D=R.length}}}});var d=(D-1)*s.paddedWidth+o;i=(e.plotX||0)+d/2-o-k*s.paddedWidth}return i},t.prototype.translate=function(){var i=this,o=i.chart,e=i.options,s=i.dense=i.closestPointRange*i.xAxis.transA<2,n=i.borderWidth=c(e.borderWidth,s?0:1),l=i.xAxis,b=i.yAxis,k=e.threshold,D=i.translatedThreshold=b.getThreshold(k),d=c(e.minPointLength,5),C=i.getColumnMetrics(),A=C.width,N=i.pointXOffset=C.offset,R=i.dataMin,L=i.dataMax,O=i.barW=Math.max(A,1+2*n);o.inverted&&(D-=.5),e.pointPadding&&(O=Math.ceil(O)),Z.prototype.translate.apply(i),i.points.forEach(function(j){var Y,H=c(j.yBottom,D),W=999+Math.abs(H),q=j.plotX||0,Q=f(j.plotY,-W,b.len+W),J=Math.min(Q,H),nt=Math.max(Q,H)-J,lt=A,gt=q+N,mt=O;d&&Math.abs(nt)<d&&(nt=d,Y=!b.reversed&&!j.negative||b.reversed&&j.negative,w(k)&&w(L)&&j.y===k&&L<=k&&(b.min||0)<k&&(R!==L||(b.max||0)<=k)&&(Y=!Y),J=Math.abs(J-D)>d?H-d:D-(Y?d:0)),m(j.options.pointWidth)&&(lt=mt=Math.ceil(j.options.pointWidth),gt-=Math.round((lt-A)/2)),e.centerInCategory&&(gt=i.adjustForMissingColumns(gt,lt,j,C)),j.barX=gt,j.pointWidth=lt,j.tooltipPos=o.inverted?[f(b.len+b.pos-o.plotLeft-Q,b.pos-o.plotLeft,b.len+b.pos-o.plotLeft),l.len+l.pos-o.plotTop-gt-mt/2,nt]:[l.left-o.plotLeft+gt+mt/2,f(Q+b.pos-o.plotTop,b.pos-o.plotTop,b.len+b.pos-o.plotTop),nt],j.shapeType=i.pointClass.prototype.shapeType||"rect",j.shapeArgs=i.crispCol.apply(i,j.isNull?[gt,D,mt,0]:[gt,J,mt,nt])})},t.prototype.drawGraph=function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")},t.prototype.pointAttribs=function(i,o){var e,s,n,l=this.options,b=this.pointAttrToOptions||{},k=b.stroke||"borderColor",D=b["stroke-width"]||"borderWidth",d=i&&i.color||this.color,C=i&&i[k]||l[k]||d,A=i&&i.options.dashStyle||l.dashStyle,N=i&&i[D]||l[D]||this[D]||0,R=c(i&&i.opacity,l.opacity,1);i&&this.zones.length&&(s=i.getZone(),d=i.options.color||s&&(s.color||i.nonZonedColor)||this.color,s&&(C=s.borderColor||C,A=s.dashStyle||A,N=s.borderWidth||N)),o&&i&&(n=(e=x(l.states[o],i.options.states&&i.options.states[o]||{})).brightness,d=e.color||n!==void 0&&P(d).brighten(e.brightness).get()||d,C=e[k]||C,N=e[D]||N,A=e.dashStyle||A,R=c(e.opacity,R));var L={fill:d,stroke:C,"stroke-width":N,opacity:R};return A&&(L.dashstyle=A),L},t.prototype.drawPoints=function(i){i===void 0&&(i=this.points);var o,e=this,s=this.chart,n=e.options,l=s.renderer,b=n.animationLimit||250;i.forEach(function(k){var D=k.plotY,d=k.graphic,C=!!d,A=d&&s.pointCount<b?"animate":"attr";w(D)&&k.y!==null?(o=k.shapeArgs,d&&k.hasNewShapeType()&&(d=d.destroy()),e.enabledDataSorting&&(k.startXPos=e.xAxis.reversed?-(o&&o.width||0):e.xAxis.width),d||(k.graphic=d=l[k.shapeType](o).add(k.group||e.group),d&&e.enabledDataSorting&&s.hasRendered&&s.pointCount<b&&(d.attr({x:k.startXPos}),C=!0,A="animate")),d&&C&&d[A](x(o)),n.borderRadius&&d[A]({r:n.borderRadius}),s.styledMode||d[A](e.pointAttribs(k,k.selected&&"select")).shadow(k.allowShadow!==!1&&n.shadow,null,n.stacking&&!n.borderRadius),d&&(d.addClass(k.getClassName(),!0),d.attr({visibility:k.visible?"inherit":"hidden"}))):d&&(k.graphic=d.destroy())})},t.prototype.drawTracker=function(i){i===void 0&&(i=this.points);var o,e=this,s=e.chart,n=s.pointer,l=function(b){var k=n.getPointFromEvent(b);k!==void 0&&(n.isDirectTouch=!0,k.onMouseOver(b))};i.forEach(function(b){o=S(b.dataLabels)?b.dataLabels:b.dataLabel?[b.dataLabel]:[],b.graphic&&(b.graphic.element.point=b),o.forEach(function(k){k.div?k.div.point=b:k.element.point=b})}),e._hasTracking||(e.trackerGroups.forEach(function(b){e[b]&&(e[b].addClass("highcharts-tracker").on("mouseover",l).on("mouseout",function(k){n.onTrackerMouseOut(k)}),y&&e[b].on("touchstart",l),!s.styledMode&&e.options.cursor&&e[b].css({cursor:e.options.cursor}))}),e._hasTracking=!0),v(this,"afterDrawTracker")},t.prototype.remove=function(){var i=this,o=i.chart;o.hasRendered&&o.series.forEach(function(e){e.type===i.type&&(e.isDirty=!0)}),Z.prototype.remove.apply(i,arguments)},t.defaultOptions=x(Z.defaultOptions,X),t}(Z);return u(r.prototype,{cropShoulder:0,directTouch:!0,drawLegendSymbol:$.drawRectangle,getSymbol:h,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]}),V.registerSeriesType("column",r),r}),et(_,"Core/Series/DataLabel.js",[_["Core/Animation/AnimationUtilities.js"],_["Core/FormatUtilities.js"],_["Core/Utilities.js"]],function(G,B,X){var U,$=G.getDeferredAnimation,Z=B.format,V=X.defined,z=X.extend,I=X.fireEvent,E=X.isArray,M=X.isString,P=X.merge,y=X.objectEach,h=X.pick,f=X.splat;return function(m){var u=[];function v(g,r,a,t,i){var o,e,s,n=this,l=this.chart,b=this.isCartesian&&l.inverted,k=this.enabledDataSorting,D=g.plotX,d=g.plotY,C=a.rotation,A=a.align,N=V(D)&&V(d)&&l.isInsidePlot(D,Math.round(d),{inverted:b,paneCoordinates:!0,series:n}),R=function(Q){k&&n.xAxis&&!L&&n.setDataLabelStartPos(g,r,i,N,Q)},L=h(a.overflow,k?"none":"justify")==="justify",O=this.visible&&g.visible!==!1&&V(D)&&(g.series.forceDL||k&&!L||N||h(a.inside,!!this.options.stacking)&&t&&l.isInsidePlot(D,b?t.x+1:t.y+t.height-1,{inverted:b,paneCoordinates:!0,series:n})),j=g.pos();if(O&&j){C&&r.attr({align:A});var Y=r.getBBox(!0),H=[0,0];if(o=l.renderer.fontMetrics(l.styledMode?void 0:a.style.fontSize,r).b,t=z({x:j[0],y:Math.round(j[1]),width:0,height:0},t),z(a,{width:Y.width,height:Y.height}),C?(L=!1,e=l.renderer.rotCorr(o,C),s={x:t.x+(a.x||0)+t.width/2+e.x,y:t.y+(a.y||0)+{top:0,middle:.5,bottom:1}[a.verticalAlign]*t.height},H=[Y.x-Number(r.attr("x")),Y.y-Number(r.attr("y"))],R(s),r[i?"attr":"animate"](s)):(R(t),r.align(a,void 0,t),s=r.alignAttr),L&&t.height>=0)this.justifyDataLabel(r,a,s,Y,t,i);else if(h(a.crop,!0)){var W=s.x,q=s.y;W+=H[0],q+=H[1],O=l.isInsidePlot(W,q,{paneCoordinates:!0,series:n})&&l.isInsidePlot(W+Y.width,q+Y.height,{paneCoordinates:!0,series:n})}a.shape&&!C&&r[i?"attr":"animate"]({anchorX:j[0],anchorY:j[1]})}i&&k&&(r.placed=!1),O||k&&!L?r.show():(r.hide(),r.placed=!1)}function S(g){g===void 0&&(g=this.points);var r,a=this,t=a.chart,i=a.options,o=a.hasRendered||0,e=t.renderer,s=t.options.chart,n=s.backgroundColor,l=s.plotBackgroundColor,b=e.getContrast(M(l)&&l||M(n)&&n||"#000000"),k=i.dataLabels,D=k.animation,d=k.defer?$(t,D,a):{defer:0,duration:0};if(k=x(x(t.options.plotOptions&&t.options.plotOptions.series&&t.options.plotOptions.series.dataLabels,t.options.plotOptions&&t.options.plotOptions[a.type]&&t.options.plotOptions[a.type].dataLabels),k),I(this,"drawDataLabels"),E(k)||k.enabled||a._hasPointLabels){if((r=a.plotGroup("dataLabelsGroup","data-labels",o?"inherit":"hidden",k.zIndex||6)).attr({opacity:+o}),!o){var C=a.dataLabelsGroup;C&&(a.visible&&r.show(),C[i.animation?"animate":"attr"]({opacity:1},d))}g.forEach(function(A){f(x(k,A.dlOptions||A.options&&A.options.dataLabels)).forEach(function(N,R){var L,O,j,Y,H,W,q=N.enabled&&(!A.isNull||A.dataLabelOnNull)&&function(yt,dt){var ot=dt.filter;if(ot){var at=ot.operator,ut=yt[ot.property],vt=ot.value;return at===">"&&ut>vt||at==="<"&&ut<vt||at===">="&&ut>=vt||at==="<="&&ut<=vt||at==="=="&&ut==vt||at==="==="&&ut===vt}return!0}(A,N),Q=A.connectors?A.connectors[R]:A.connector,J=A.dataLabels?A.dataLabels[R]:A.dataLabel,nt=!J,lt=h(N.distance,A.labelDistance);if(q){if(L=A.getLabelConfig(),O=h(N[A.formatPrefix+"Format"],N.format),j=V(O)?Z(O,L,t):(N[A.formatPrefix+"Formatter"]||N.formatter).call(L,N),Y=N.style,H=N.rotation,t.styledMode||(Y.color=h(N.color,Y.color,a.color,"#000000"),Y.color==="contrast"?(A.contrastColor=e.getContrast(A.color||a.color),Y.color=!V(lt)&&N.inside||lt<0||i.stacking?A.contrastColor:b):delete A.contrastColor,i.cursor&&(Y.cursor=i.cursor)),W={r:N.borderRadius||0,rotation:H,padding:N.padding,zIndex:1},!t.styledMode){var gt=N.backgroundColor,mt=N.borderColor;W.fill=gt==="auto"?A.color:gt,W.stroke=mt==="auto"?A.color:mt,W["stroke-width"]=N.borderWidth}y(W,function(yt,dt){yt===void 0&&delete W[dt]})}if(!J||q&&V(j)&&!!J.div==!!N.useHTML&&(J.rotation&&N.rotation||J.rotation===N.rotation)||(nt=!0,A.dataLabel=J=A.dataLabel&&A.dataLabel.destroy(),A.dataLabels&&(A.dataLabels.length===1?delete A.dataLabels:delete A.dataLabels[R]),R||delete A.dataLabel,Q&&(A.connector=A.connector.destroy(),A.connectors&&(A.connectors.length===1?delete A.connectors:delete A.connectors[R]))),q&&V(j)){J?W.text=j:(A.dataLabels=A.dataLabels||[],J=A.dataLabels[R]=H?e.text(j,0,0,N.useHTML).addClass("highcharts-data-label"):e.label(j,0,0,N.shape,null,null,N.useHTML,null,"data-label"),R||(A.dataLabel=J),J.addClass(" highcharts-data-label-color-"+A.colorIndex+" "+(N.className||"")+(N.useHTML?" highcharts-tracker":""))),J.options=N,J.attr(W),t.styledMode||J.css(Y).shadow(N.shadow);var bt=N[A.formatPrefix+"TextPath"]||N.textPath;bt&&!N.useHTML&&(J.setTextPath(A.getDataLabelPath&&A.getDataLabelPath(J)||A.graphic,bt),A.dataLabelPath&&!bt.enabled&&(A.dataLabelPath=A.dataLabelPath.destroy())),J.added||J.add(r),a.alignDataLabel(A,J,N,null,nt)}else J&&J.hide()})})}I(this,"afterDrawDataLabels")}function w(g,r,a,t,i,o){var e,s,n=this.chart,l=r.align,b=r.verticalAlign,k=g.box?0:g.padding||0,D=r.x,d=D===void 0?0:D,C=r.y,A=C===void 0?0:C;return(e=(a.x||0)+k)<0&&(l==="right"&&d>=0?(r.align="left",r.inside=!0):d-=e,s=!0),(e=(a.x||0)+t.width-k)>n.plotWidth&&(l==="left"&&d<=0?(r.align="right",r.inside=!0):d+=n.plotWidth-e,s=!0),(e=a.y+k)<0&&(b==="bottom"&&A>=0?(r.verticalAlign="top",r.inside=!0):A-=e,s=!0),(e=(a.y||0)+t.height-k)>n.plotHeight&&(b==="top"&&A<=0?(r.verticalAlign="bottom",r.inside=!0):A+=n.plotHeight-e,s=!0),s&&(r.x=d,r.y=A,g.placed=!o,g.align(r,void 0,i)),s}function x(g,r){var a,t=[];if(E(g)&&!E(r))t=g.map(function(i){return P(i,r)});else if(E(r)&&!E(g))t=r.map(function(i){return P(g,i)});else if(E(g)||E(r))for(a=Math.max(g.length,r.length);a--;)t[a]=P(g[a],r[a]);else t=P(g,r);return t}function c(g,r,a,t,i){var o=this.chart,e=o.inverted,s=this.xAxis,n=s.reversed,l=e?r.height/2:r.width/2,b=g.pointWidth,k=b?b/2:0;r.startXPos=e?i.x:n?-l-k:s.width-l+k,r.startYPos=e?n?this.yAxis.height-l+k:-l-k:i.y,t?r.visibility==="hidden"&&(r.show(),r.attr({opacity:0}).animate({opacity:1})):r.attr({opacity:1}).animate({opacity:0},void 0,r.hide),o.hasRendered&&(a&&r.attr({x:r.startXPos,y:r.startYPos}),r.placed=!0)}m.compose=function(g){if(u.indexOf(g)===-1){var r=g.prototype;u.push(g),r.alignDataLabel=v,r.drawDataLabels=S,r.justifyDataLabel=w,r.setDataLabelStartPos=c}}}(U||(U={})),U}),et(_,"Series/Column/ColumnDataLabel.js",[_["Core/Series/DataLabel.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,X){var U,$=B.series,Z=X.merge,V=X.pick;return function(z){var I=[];function E(M,P,y,h,f){var m,u=this.chart.inverted,v=M.series,S=(v.xAxis?v.xAxis.len:this.chart.plotSizeX)||0,w=(v.yAxis?v.yAxis.len:this.chart.plotSizeY)||0,x=M.dlBox||M.shapeArgs,c=V(M.below,M.plotY>V(this.translatedThreshold,w)),g=V(y.inside,!!this.options.stacking);x&&((h=Z(x)).y<0&&(h.height+=h.y,h.y=0),(m=h.y+h.height-w)>0&&m<h.height&&(h.height-=m),u&&(h={x:w-h.y-h.height,y:S-h.x-h.width,width:h.height,height:h.width}),g||(u?(h.x+=c?0:h.width,h.width=0):(h.y+=c?h.height:0,h.height=0))),y.align=V(y.align,!u||g?"center":c?"right":"left"),y.verticalAlign=V(y.verticalAlign,u||g?"middle":c?"top":"bottom"),$.prototype.alignDataLabel.call(this,M,P,y,h,f),y.inside&&M.contrastColor&&P.css({color:M.contrastColor})}z.compose=function(M){G.compose($),I.indexOf(M)===-1&&(I.push(M),M.prototype.alignDataLabel=E)}}(U||(U={})),U}),et(_,"Series/Bar/BarSeries.js",[_["Series/Column/ColumnSeries.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,X){var U,$=this&&this.__extends||(U=function(I,E){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,P){M.__proto__=P}||function(M,P){for(var y in P)P.hasOwnProperty(y)&&(M[y]=P[y])},U(I,E)},function(I,E){function M(){this.constructor=I}U(I,E),I.prototype=E===null?Object.create(E):(M.prototype=E.prototype,new M)}),Z=X.extend,V=X.merge,z=function(I){function E(){var M=I!==null&&I.apply(this,arguments)||this;return M.data=void 0,M.options=void 0,M.points=void 0,M}return $(E,I),E.defaultOptions=V(G.defaultOptions,{}),E}(G);return Z(z.prototype,{inverted:!0}),B.registerSeriesType("bar",z),z}),et(_,"Series/Scatter/ScatterSeriesDefaults.js",[],function(){return{lineWidth:0,findNearestPointBy:"xy",jitter:{x:0,y:0},marker:{enabled:!0},tooltip:{headerFormat:'<span style="color:{point.color}">●</span> <span style="font-size: 10px"> {series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}}}),et(_,"Series/Scatter/ScatterSeries.js",[_["Series/Scatter/ScatterSeriesDefaults.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,X){var U,$=this&&this.__extends||(U=function(y,h){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var u in m)m.hasOwnProperty(u)&&(f[u]=m[u])},U(y,h)},function(y,h){function f(){this.constructor=y}U(y,h),y.prototype=h===null?Object.create(h):(f.prototype=h.prototype,new f)}),Z=B.seriesTypes,V=Z.column,z=Z.line,I=X.addEvent,E=X.extend,M=X.merge,P=function(y){function h(){var f=y!==null&&y.apply(this,arguments)||this;return f.data=void 0,f.options=void 0,f.points=void 0,f}return $(h,y),h.prototype.applyJitter=function(){var f=this,m=this.options.jitter,u=this.points.length;m&&this.points.forEach(function(v,S){["x","y"].forEach(function(w,x){var c,g,r,a,t,i,o="plot"+w.toUpperCase();m[w]&&!v.isNull&&(c=f[w+"Axis"],a=m[w]*c.transA,c&&!c.isLog&&(g=Math.max(0,v[o]-a),r=Math.min(c.len,v[o]+a),v[o]=g+(r-g)*(t=S+x*u,(i=1e4*Math.sin(t))-Math.floor(i)),w==="x"&&(v.clientX=v.plotX)))})})},h.prototype.drawGraph=function(){this.options.lineWidth?y.prototype.drawGraph.call(this):this.graph&&(this.graph=this.graph.destroy())},h.defaultOptions=M(z.defaultOptions,G),h}(z);return E(P.prototype,{drawTracker:V.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1}),I(P,"afterTranslate",function(){this.applyJitter()}),B.registerSeriesType("scatter",P),P}),et(_,"Series/CenteredUtilities.js",[_["Core/Globals.js"],_["Core/Series/Series.js"],_["Core/Utilities.js"]],function(G,B,X){var U,$=G.deg2rad,Z=X.fireEvent,V=X.isNumber,z=X.pick,I=X.relativeLength;return function(E){E.getCenter=function(){var M,P,y,h=this.options,f=this.chart,m=2*(h.slicedOffset||0),u=f.plotWidth-2*m,v=f.plotHeight-2*m,S=h.center,w=Math.min(u,v),x=h.thickness,c=h.size,g=h.innerSize||0;typeof c=="string"&&(c=parseFloat(c)),typeof g=="string"&&(g=parseFloat(g));var r=[z(S[0],"50%"),z(S[1],"50%"),z(c&&c<0?void 0:h.size,"100%"),z(g&&g<0?void 0:h.innerSize||0,"0%")];for(!f.angular||this instanceof B||(r[3]=0),P=0;P<4;++P)y=r[P],M=P<2||P===2&&/%$/.test(y),r[P]=I(y,[u,v,w,r[2]][P])+(M?m:0);return r[3]>r[2]&&(r[3]=r[2]),V(x)&&2*x<r[2]&&x>0&&(r[3]=r[2]-2*x),Z(this,"afterGetCenter",{positions:r}),r},E.getStartAndEndRadians=function(M,P){var y=V(M)?M:0,h=V(P)&&P>y&&P-y<360?P:y+360;return{start:$*(y+-90),end:$*(h+-90)}}}(U||(U={})),U}),et(_,"Series/Pie/PiePoint.js",[_["Core/Animation/AnimationUtilities.js"],_["Core/Series/Point.js"],_["Core/Utilities.js"]],function(G,B,X){var U,$=this&&this.__extends||(U=function(h,f){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,u){m.__proto__=u}||function(m,u){for(var v in u)u.hasOwnProperty(v)&&(m[v]=u[v])},U(h,f)},function(h,f){function m(){this.constructor=h}U(h,f),h.prototype=f===null?Object.create(f):(m.prototype=f.prototype,new m)}),Z=G.setAnimation,V=X.addEvent,z=X.defined,I=X.extend,E=X.isNumber,M=X.pick,P=X.relativeLength,y=function(h){function f(){var m=h!==null&&h.apply(this,arguments)||this;return m.labelDistance=void 0,m.options=void 0,m.series=void 0,m}return $(f,h),f.prototype.getConnectorPath=function(){var m=this.labelPosition,u=this.series.options.dataLabels,v=this.connectorShapes,S=u.connectorShape;return v[S]&&(S=v[S]),S.call(this,{x:m.final.x,y:m.final.y,alignment:m.alignment},m.connectorPosition,u)},f.prototype.getTranslate=function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},f.prototype.haloPath=function(m){var u=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(u.x,u.y,u.r+m,u.r+m,{innerR:u.r-1,start:u.start,end:u.end})},f.prototype.init=function(){var m=this;h.prototype.init.apply(this,arguments),this.name=M(this.name,"Slice");var u=function(v){m.slice(v.type==="select")};return V(this,"select",u),V(this,"unselect",u),this},f.prototype.isValid=function(){return E(this.y)&&this.y>=0},f.prototype.setVisible=function(m,u){var v=this,S=this.series,w=S.chart,x=S.options.ignoreHiddenPoint;u=M(u,x),m!==this.visible&&(this.visible=this.options.visible=m=m===void 0?!this.visible:m,S.options.data[S.data.indexOf(this)]=this.options,["graphic","dataLabel","connector","shadowGroup"].forEach(function(c){v[c]&&v[c][m?"show":"hide"](m)}),this.legendItem&&w.legend.colorizeItem(this,m),m||this.state!=="hover"||this.setState(""),x&&(S.isDirty=!0),u&&w.redraw())},f.prototype.slice=function(m,u,v){var S=this.series,w=S.chart;Z(v,w),u=M(u,!0),this.sliced=this.options.sliced=m=z(m)?m:!this.sliced,S.options.data[S.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate()),this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},f}(B);return I(y.prototype,{connectorShapes:{fixedOffset:function(h,f,m){var u=f.breakAt,v=f.touchingSliceAt,S=m.softConnector?["C",h.x+(h.alignment==="left"?-5:5),h.y,2*u.x-v.x,2*u.y-v.y,u.x,u.y]:["L",u.x,u.y];return[["M",h.x,h.y],S,["L",v.x,v.y]]},straight:function(h,f){var m=f.touchingSliceAt;return[["M",h.x,h.y],["L",m.x,m.y]]},crookedLine:function(h,f,m){var u=f.touchingSliceAt,v=this.series,S=v.center[0],w=v.chart.plotWidth,x=v.chart.plotLeft,c=h.alignment,g=this.shapeArgs.r,r=P(m.crookDistance,1),a=c==="left"?S+g+(w+x-S-g)*(1-r):x+(S-g)*r,t=["L",a,h.y],i=!0;(c==="left"?a>h.x||a<u.x:a<h.x||a>u.x)&&(i=!1);var o=[["M",h.x,h.y]];return i&&o.push(t),o.push(["L",u.x,u.y]),o}}}),y}),et(_,"Series/Pie/PieSeriesDefaults.js",[],function(){return{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,connectorPadding:5,connectorShape:"fixedOffset",crookDistance:"70%",distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},softConnector:!0,x:0},fillColor:void 0,ignoreHiddenPoint:!0,inactiveOtherPoints:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:"#ffffff",borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}}}),et(_,"Series/Pie/PieSeries.js",[_["Series/CenteredUtilities.js"],_["Series/Column/ColumnSeries.js"],_["Core/Globals.js"],_["Core/Legend/LegendSymbol.js"],_["Series/Pie/PiePoint.js"],_["Series/Pie/PieSeriesDefaults.js"],_["Core/Series/Series.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Renderer/SVG/Symbols.js"],_["Core/Utilities.js"]],function(G,B,X,U,$,Z,V,z,I,E){var M,P=this&&this.__extends||(M=function(c,g){return M=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var t in a)a.hasOwnProperty(t)&&(r[t]=a[t])},M(c,g)},function(c,g){function r(){this.constructor=c}M(c,g),c.prototype=g===null?Object.create(g):(r.prototype=g.prototype,new r)}),y=G.getStartAndEndRadians,h=X.noop,f=E.clamp,m=E.extend,u=E.fireEvent,v=E.merge,S=E.pick,w=E.relativeLength,x=function(c){function g(){var r=c!==null&&c.apply(this,arguments)||this;return r.center=void 0,r.data=void 0,r.maxLabelDistance=void 0,r.options=void 0,r.points=void 0,r}return P(g,c),g.prototype.animate=function(r){var a=this,t=a.points,i=a.startAngleRad;r||t.forEach(function(o){var e=o.graphic,s=o.shapeArgs;e&&s&&(e.attr({r:S(o.startR,a.center&&a.center[3]/2),start:i,end:i}),e.animate({r:s.r,start:s.start,end:s.end},a.options.animation))})},g.prototype.drawEmpty=function(){var r,a,t=this.startAngleRad,i=this.endAngleRad,o=this.options;this.total===0&&this.center?(r=this.center[0],a=this.center[1],this.graph||(this.graph=this.chart.renderer.arc(r,a,this.center[1]/2,0,t,i).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:I.arc(r,a,this.center[2]/2,0,{start:t,end:i,innerR:this.center[3]/2})}),this.chart.styledMode||this.graph.attr({"stroke-width":o.borderWidth,fill:o.fillColor||"none",stroke:o.color||"#cccccc"})):this.graph&&(this.graph=this.graph.destroy())},g.prototype.drawPoints=function(){var r=this.chart.renderer;this.points.forEach(function(a){a.graphic&&a.hasNewShapeType()&&(a.graphic=a.graphic.destroy()),a.graphic||(a.graphic=r[a.shapeType](a.shapeArgs).add(a.series.group),a.delayedRendering=!0)})},g.prototype.generatePoints=function(){c.prototype.generatePoints.call(this),this.updateTotals()},g.prototype.getX=function(r,a,t){var i=this.center,o=this.radii?this.radii[t.index]||0:i[2]/2,e=Math.asin(f((r-i[1])/(o+t.labelDistance),-1,1));return i[0]+(a?-1:1)*(Math.cos(e)*(o+t.labelDistance))+(t.labelDistance>0?(a?-1:1)*this.options.dataLabels.padding:0)},g.prototype.hasData=function(){return!!this.processedXData.length},g.prototype.redrawPoints=function(){var r,a,t,i,o=this,e=o.chart,s=e.renderer,n=o.options.shadow;this.drawEmpty(),!n||o.shadowGroup||e.styledMode||(o.shadowGroup=s.g("shadow").attr({zIndex:-1}).add(o.group)),o.points.forEach(function(l){var b={};if(a=l.graphic,!l.isNull&&a){var k=void 0;i=l.shapeArgs,r=l.getTranslate(),e.styledMode||(k=l.shadowGroup,n&&!k&&(k=l.shadowGroup=s.g("shadow").add(o.shadowGroup)),k&&k.attr(r),t=o.pointAttribs(l,l.selected&&"select")),l.delayedRendering?(a.setRadialReference(o.center).attr(i).attr(r),e.styledMode||a.attr(t).attr({"stroke-linejoin":"round"}).shadow(n,k),l.delayedRendering=!1):(a.setRadialReference(o.center),e.styledMode||v(!0,b,t),v(!0,b,i,r),a.animate(b)),a.attr({visibility:l.visible?"inherit":"hidden"}),a.addClass(l.getClassName(),!0)}else a&&(l.graphic=a.destroy())})},g.prototype.sortByAngle=function(r,a){r.sort(function(t,i){return t.angle!==void 0&&(i.angle-t.angle)*a})},g.prototype.translate=function(r){u(this,"translate"),this.generatePoints();var a,t,i,o,e,s,n,l,b=this,k=1e3,D=b.options,d=D.slicedOffset,C=d+(D.borderWidth||0),A=y(D.startAngle,D.endAngle),N=b.startAngleRad=A.start,R=(b.endAngleRad=A.end)-N,L=b.points,O=D.dataLabels.distance,j=D.ignoreHiddenPoint,Y=L.length,H=0;for(r||(b.center=r=b.getCenter()),n=0;n<Y;n++){t=N+H*R,!(l=L[n]).isValid()||j&&!l.visible||(H+=l.percentage/100),i=N+H*R;var W={x:r[0],y:r[1],r:r[2]/2,innerR:r[3]/2,start:Math.round(t*k)/k,end:Math.round(i*k)/k};l.shapeType="arc",l.shapeArgs=W,l.labelDistance=S(l.options.dataLabels&&l.options.dataLabels.distance,O),l.labelDistance=w(l.labelDistance,W.r),b.maxLabelDistance=Math.max(b.maxLabelDistance||0,l.labelDistance),(o=(i+t)/2)>1.5*Math.PI?o-=2*Math.PI:o<-Math.PI/2&&(o+=2*Math.PI),l.slicedTranslation={translateX:Math.round(Math.cos(o)*d),translateY:Math.round(Math.sin(o)*d)},e=Math.cos(o)*r[2]/2,s=Math.sin(o)*r[2]/2,l.tooltipPos=[r[0]+.7*e,r[1]+.7*s],l.half=o<-Math.PI/2||o>Math.PI/2?1:0,l.angle=o,a=Math.min(C,l.labelDistance/5),l.labelPosition={natural:{x:r[0]+e+Math.cos(o)*l.labelDistance,y:r[1]+s+Math.sin(o)*l.labelDistance},final:{},alignment:l.labelDistance<0?"center":l.half?"right":"left",connectorPosition:{breakAt:{x:r[0]+e+Math.cos(o)*a,y:r[1]+s+Math.sin(o)*a},touchingSliceAt:{x:r[0]+e,y:r[1]+s}}}}u(b,"afterTranslate")},g.prototype.updateTotals=function(){var r,a,t=this.points,i=t.length,o=this.options.ignoreHiddenPoint,e=0;for(r=0;r<i;r++)!(a=t[r]).isValid()||o&&!a.visible||(e+=a.y);for(this.total=e,r=0;r<i;r++)(a=t[r]).percentage=e>0&&(a.visible||!o)?a.y/e*100:0,a.total=e},g.defaultOptions=v(V.defaultOptions,Z),g}(V);return m(x.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawLegendSymbol:U.drawRectangle,drawTracker:B.prototype.drawTracker,getCenter:G.getCenter,getSymbol:h,isCartesian:!1,noSharedTooltip:!0,pointAttribs:B.prototype.pointAttribs,pointClass:$,requireSorting:!1,searchPoint:h,trackerGroups:["group","dataLabelsGroup"]}),z.registerSeriesType("pie",x),x}),et(_,"Series/Pie/PieDataLabel.js",[_["Core/Series/DataLabel.js"],_["Core/Globals.js"],_["Core/Renderer/RendererUtilities.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,X,U,$){var Z,V=B.noop,z=X.distribute,I=U.series,E=$.arrayMax,M=$.clamp,P=$.defined,y=$.merge,h=$.pick,f=$.relativeLength;return function(m){var u=[],v={radialDistributionY:function(c){return c.top+c.distributeBox.pos},radialDistributionX:function(c,g,r,a){return c.getX(r<g.top+2||r>g.bottom-2?a:r,g.half,g)},justify:function(c,g,r){return r[0]+(c.half?-1:1)*(g+c.labelDistance)},alignToPlotEdges:function(c,g,r,a){var t=c.getBBox().width;return g?t+a:r-t-a},alignToConnectors:function(c,g,r,a){var t,i=0;return c.forEach(function(o){(t=o.dataLabel.getBBox().width)>i&&(i=t)}),g?i+a:r-i-a}};function S(){var c,g,r,a,t,i,o,e,s,n,l,b,k=this,D=k.data,d=k.chart,C=k.options.dataLabels||{},A=C.connectorPadding,N=d.plotWidth,R=d.plotHeight,L=d.plotLeft,O=Math.round(d.chartWidth/3),j=k.center,Y=j[2]/2,H=j[1],W=[[],[]],q=[0,0,0,0],Q=k.dataLabelPositioners;k.visible&&(C.enabled||k._hasPointLabels)&&(D.forEach(function(J){J.dataLabel&&J.visible&&J.dataLabel.shortened&&(J.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),J.dataLabel.shortened=!1)}),I.prototype.drawDataLabels.apply(k),D.forEach(function(J){J.dataLabel&&(J.visible?(W[J.half].push(J),J.dataLabel._pos=null,P(C.style.width)||P(J.options.dataLabels&&J.options.dataLabels.style&&J.options.dataLabels.style.width)||J.dataLabel.getBBox().width>O&&(J.dataLabel.css({width:Math.round(.7*O)+"px"}),J.dataLabel.shortened=!0)):(J.dataLabel=J.dataLabel.destroy(),J.dataLabels&&J.dataLabels.length===1&&delete J.dataLabels))}),W.forEach(function(J,nt){var lt,gt,mt,bt,yt,dt,ot=J.length,at=[];if(ot)for(k.sortByAngle(J,nt-.5),k.maxLabelDistance>0&&(lt=Math.max(0,H-Y-k.maxLabelDistance),gt=Math.min(H+Y+k.maxLabelDistance,d.plotHeight),J.forEach(function(ut){ut.labelDistance>0&&ut.dataLabel&&(ut.top=Math.max(0,H-Y-ut.labelDistance),ut.bottom=Math.min(H+Y+ut.labelDistance,d.plotHeight),yt=ut.dataLabel.getBBox().height||21,ut.distributeBox={target:ut.labelPosition.natural.y-ut.top+yt/2,size:yt,rank:ut.y},at.push(ut.distributeBox))}),z(at,dt=gt+yt-lt,dt/5)),l=0;l<ot;l++){if(c=J[l],i=c.labelPosition,a=c.dataLabel,n=c.visible===!1?"hidden":"inherit",mt=i.natural.y,s=mt,at&&P(c.distributeBox)&&(c.distributeBox.pos===void 0?n="hidden":(o=c.distributeBox.size,s=Q.radialDistributionY(c))),delete c.positionIndex,C.justify)e=Q.justify(c,Y,j);else switch(C.alignTo){case"connectors":e=Q.alignToConnectors(J,nt,N,L);break;case"plotEdges":e=Q.alignToPlotEdges(a,nt,N,L);break;default:e=Q.radialDistributionX(k,c,s,mt)}a._attr={visibility:n,align:i.alignment},b=c.options.dataLabels||{},a._pos={x:e+h(b.x,C.x)+({left:A,right:-A}[i.alignment]||0),y:s+h(b.y,C.y)-10},i.final.x=e,i.final.y=s,h(C.crop,!0)&&(t=a.getBBox().width,bt=null,e-t<A&&nt===1?(bt=Math.round(t-e+A),q[3]=Math.max(bt,q[3])):e+t>N-A&&nt===0&&(bt=Math.round(e+t-N+A),q[1]=Math.max(bt,q[1])),s-o/2<0?q[0]=Math.max(Math.round(o/2-s),q[0]):s+o/2>R&&(q[2]=Math.max(Math.round(s+o/2-R),q[2])),a.sideOverflow=bt)}}),(E(q)===0||this.verifyDataLabelOverflow(q))&&(this.placeDataLabels(),this.points.forEach(function(J){if(b=y(C,J.options.dataLabels),g=h(b.connectorWidth,1)){var nt=void 0;r=J.connector,(a=J.dataLabel)&&a._pos&&J.visible&&J.labelDistance>0?(n=a._attr.visibility,(nt=!r)&&(J.connector=r=d.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+J.colorIndex+(J.className?" "+J.className:"")).add(k.dataLabelsGroup),d.styledMode||r.attr({"stroke-width":g,stroke:b.connectorColor||J.color||"#666666"})),r[nt?"attr":"animate"]({d:J.getConnectorPath()}),r.attr("visibility",n)):r&&(J.connector=r.destroy())}})))}function w(){this.points.forEach(function(c){var g,r=c.dataLabel;r&&c.visible&&((g=r._pos)?(r.sideOverflow&&(r._attr.width=Math.max(r.getBBox().width-r.sideOverflow,0),r.css({width:r._attr.width+"px",textOverflow:(this.options.dataLabels.style||{}).textOverflow||"ellipsis"}),r.shortened=!0),r.attr(r._attr),r[r.moved?"animate":"attr"](g),r.moved=!0):r&&r.attr({y:-9999})),delete c.distributeBox},this)}function x(c){var g=this.center,r=this.options,a=r.center,t=r.minSize||80,i=t,o=r.size!==null;return o||(a[0]!==null?i=Math.max(g[2]-Math.max(c[1],c[3]),t):(i=Math.max(g[2]-c[1]-c[3],t),g[0]+=(c[3]-c[1])/2),a[1]!==null?i=M(i,t,g[2]-Math.max(c[0],c[2])):(i=M(i,t,g[2]-c[0]-c[2]),g[1]+=(c[0]-c[2])/2),i<g[2]?(g[2]=i,g[3]=Math.min(r.thickness?Math.max(0,i-2*r.thickness):Math.max(0,f(r.innerSize||0,i)),i),this.translate(g),this.drawDataLabels&&this.drawDataLabels()):o=!0),o}m.compose=function(c){if(G.compose(I),u.indexOf(c)===-1){u.push(c);var g=c.prototype;g.dataLabelPositioners=v,g.alignDataLabel=V,g.drawDataLabels=S,g.placeDataLabels=w,g.verifyDataLabelOverflow=x}}}(Z||(Z={})),Z}),et(_,"Extensions/OverlappingDataLabels.js",[_["Core/Chart/Chart.js"],_["Core/Utilities.js"]],function(G,B){var X=B.addEvent,U=B.fireEvent,$=B.isArray,Z=B.isNumber,V=B.objectEach,z=B.pick;function I(E,M){var P,y,h=!1;return E&&(y=E.newOpacity,E.oldOpacity!==y&&(E.alignAttr&&E.placed?(E[y?"removeClass":"addClass"]("highcharts-data-label-hidden"),P=function(){M.styledMode||E.css({pointerEvents:y?"auto":"none"})},h=!0,E.alignAttr.opacity=y,E[E.isOld?"animate":"attr"](E.alignAttr,null,P),U(M,"afterHideOverlappingLabel")):E.attr({opacity:y})),E.isOld=!0),h}X(G,"render",function(){var E=this,M=[];(this.labelCollectors||[]).forEach(function(P){M=M.concat(P())}),(this.yAxis||[]).forEach(function(P){P.stacking&&P.options.stackLabels&&!P.options.stackLabels.allowOverlap&&V(P.stacking.stacks,function(y){V(y,function(h){h.label&&M.push(h.label)})})}),(this.series||[]).forEach(function(P){var y=P.options.dataLabels;if(P.visible&&(y.enabled!==!1||P._hasPointLabels)){var h=function(f){return f.forEach(function(m){m.visible&&($(m.dataLabels)?m.dataLabels:m.dataLabel?[m.dataLabel]:[]).forEach(function(u){var v=u.options;u.labelrank=z(v.labelrank,m.labelrank,m.shapeArgs&&m.shapeArgs.height),v.allowOverlap?(u.oldOpacity=u.opacity,u.newOpacity=1,I(u,E)):M.push(u)})})};h(P.nodes||[]),h(P.points)}}),this.hideOverlappingLabels(M)}),G.prototype.hideOverlappingLabels=function(E){var M,P,y,h,f,m,u,v=this,S=E.length,w=v.renderer,x=!1,c=function(r,a){return!(a.x>=r.x+r.width||a.x+a.width<=r.x||a.y>=r.y+r.height||a.y+a.height<=r.y)},g=function(r){var a,t,i,o,e,s=r.box?0:r.padding||0,n=0,l=0;if(r&&(!r.alignAttr||r.placed))return a=r.alignAttr||{x:r.attr("x"),y:r.attr("y")},t=r.parentGroup,r.width||(i=r.getBBox(),r.width=i.width,r.height=i.height,n=w.fontMetrics(null,r.element).h),o=r.width-2*s,(e={left:"0",center:"0.5",right:"1"}[r.alignValue])?l=+e*o:Z(r.x)&&Math.round(r.x)!==r.translateX&&(l=r.x-r.translateX),{x:a.x+(t.translateX||0)+s-(l||0),y:a.y+(t.translateY||0)+s-n,width:r.width-2*s,height:r.height-2*s}};for(P=0;P<S;P++)(M=E[P])&&(M.oldOpacity=M.opacity,M.newOpacity=1,M.absoluteBox=g(M));for(E.sort(function(r,a){return(a.labelrank||0)-(r.labelrank||0)}),P=0;P<S;P++)for(m=(h=E[P])&&h.absoluteBox,y=P+1;y<S;++y)u=(f=E[y])&&f.absoluteBox,m&&u&&h!==f&&h.newOpacity!==0&&f.newOpacity!==0&&h.visibility!=="hidden"&&f.visibility!=="hidden"&&c(m,u)&&((h.labelrank<f.labelrank?h:f).newOpacity=0);E.forEach(function(r){I(r,v)&&(x=!0)}),x&&U(v,"afterHideAllOverlappingLabels")}}),et(_,"Core/Responsive.js",[_["Core/Utilities.js"]],function(G){var B,X=G.extend,U=G.find,$=G.isArray,Z=G.isObject,V=G.merge,z=G.objectEach,I=G.pick,E=G.splat,M=G.uniqueKey;return function(P){var y=[];P.compose=function(f){return y.indexOf(f)===-1&&(y.push(f),X(f.prototype,h.prototype)),f};var h=function(){function f(){}return f.prototype.currentOptions=function(m){var u=this,v={};return function S(w,x,c,g){var r;z(w,function(a,t){if(!g&&u.collectionsWithUpdate.indexOf(t)>-1&&x[t])for(a=E(a),c[t]=[],r=0;r<Math.max(a.length,x[t].length);r++)x[t][r]&&(a[r]===void 0?c[t][r]=x[t][r]:(c[t][r]={},S(a[r],x[t][r],c[t][r],g+1)));else Z(a)?(c[t]=$(a)?[]:{},S(a,x[t]||{},c[t],g+1)):x[t]===void 0?c[t]=null:c[t]=x[t]})}(m,this.options,v,0),v},f.prototype.matchResponsiveRule=function(m,u){var v=m.condition;(v.callback||function(){return this.chartWidth<=I(v.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=I(v.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=I(v.minWidth,0)&&this.chartHeight>=I(v.minHeight,0)}).call(this)&&u.push(m._id)},f.prototype.setResponsive=function(m,u){var v,S=this,w=this.options.responsive,x=this.currentResponsive,c=[];!u&&w&&w.rules&&w.rules.forEach(function(a){a._id===void 0&&(a._id=M()),S.matchResponsiveRule(a,c)},this);var g=V.apply(void 0,c.map(function(a){return U((w||{}).rules||[],function(t){return t._id===a})}).map(function(a){return a&&a.chartOptions}));g.isResponsiveOptions=!0,c=c.toString()||void 0;var r=x&&x.ruleIds;c!==r&&(x&&this.update(x.undoOptions,m,!0),c?((v=this.currentOptions(g)).isResponsiveOptions=!0,this.currentResponsive={ruleIds:c,mergedOptions:g,undoOptions:v},this.update(g,m,!0)):this.currentResponsive=void 0)},f}()}(B||(B={})),B}),et(_,"masters/highcharts.src.js",[_["Core/Globals.js"],_["Core/Utilities.js"],_["Core/Defaults.js"],_["Core/Animation/Fx.js"],_["Core/Animation/AnimationUtilities.js"],_["Core/Renderer/HTML/AST.js"],_["Core/FormatUtilities.js"],_["Core/Renderer/RendererUtilities.js"],_["Core/Renderer/SVG/SVGElement.js"],_["Core/Renderer/SVG/SVGRenderer.js"],_["Core/Renderer/HTML/HTMLElement.js"],_["Core/Renderer/HTML/HTMLRenderer.js"],_["Core/Axis/Axis.js"],_["Core/Axis/DateTimeAxis.js"],_["Core/Axis/LogarithmicAxis.js"],_["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],_["Core/Axis/Tick.js"],_["Core/Tooltip.js"],_["Core/Series/Point.js"],_["Core/Pointer.js"],_["Core/MSPointer.js"],_["Core/Legend/Legend.js"],_["Core/Chart/Chart.js"],_["Core/Axis/Stacking/StackingAxis.js"],_["Core/Axis/Stacking/StackItem.js"],_["Core/Series/Series.js"],_["Core/Series/SeriesRegistry.js"],_["Series/Column/ColumnSeries.js"],_["Series/Column/ColumnDataLabel.js"],_["Series/Pie/PieSeries.js"],_["Series/Pie/PieDataLabel.js"],_["Core/Series/DataLabel.js"],_["Core/Responsive.js"],_["Core/Color/Color.js"],_["Core/Time.js"]],function(G,B,X,U,$,Z,V,z,I,E,M,P,y,h,f,m,u,v,S,w,x,c,g,r,a,t,i,o,e,s,n,l,b,k,D){var d=G;return d.animate=$.animate,d.animObject=$.animObject,d.getDeferredAnimation=$.getDeferredAnimation,d.setAnimation=$.setAnimation,d.stop=$.stop,d.timers=U.timers,d.AST=Z,d.Axis=y,d.Chart=g,d.chart=g.chart,d.Fx=U,d.Legend=c,d.PlotLineOrBand=m,d.Point=S,d.Pointer=x.isRequired()?x:w,d.Series=t,d.StackItem=a,d.SVGElement=I,d.SVGRenderer=E,d.Tick=u,d.Time=D,d.Tooltip=v,d.Color=k,d.color=k.parse,P.compose(E),M.compose(I),d.defaultOptions=X.defaultOptions,d.getOptions=X.getOptions,d.time=X.defaultTime,d.setOptions=X.setOptions,d.dateFormat=V.dateFormat,d.format=V.format,d.numberFormat=V.numberFormat,d.addEvent=B.addEvent,d.arrayMax=B.arrayMax,d.arrayMin=B.arrayMin,d.attr=B.attr,d.clearTimeout=B.clearTimeout,d.correctFloat=B.correctFloat,d.createElement=B.createElement,d.css=B.css,d.defined=B.defined,d.destroyObjectProperties=B.destroyObjectProperties,d.discardElement=B.discardElement,d.distribute=z.distribute,d.erase=B.erase,d.error=B.error,d.extend=B.extend,d.extendClass=B.extendClass,d.find=B.find,d.fireEvent=B.fireEvent,d.getMagnitude=B.getMagnitude,d.getStyle=B.getStyle,d.inArray=B.inArray,d.isArray=B.isArray,d.isClass=B.isClass,d.isDOMElement=B.isDOMElement,d.isFunction=B.isFunction,d.isNumber=B.isNumber,d.isObject=B.isObject,d.isString=B.isString,d.keys=B.keys,d.merge=B.merge,d.normalizeTickInterval=B.normalizeTickInterval,d.objectEach=B.objectEach,d.offset=B.offset,d.pad=B.pad,d.pick=B.pick,d.pInt=B.pInt,d.relativeLength=B.relativeLength,d.removeEvent=B.removeEvent,d.seriesType=i.seriesType,d.splat=B.splat,d.stableSort=B.stableSort,d.syncTimeout=B.syncTimeout,d.timeUnits=B.timeUnits,d.uniqueKey=B.uniqueKey,d.useSerialIds=B.useSerialIds,d.wrap=B.wrap,e.compose(o),l.compose(t),h.compose(y),f.compose(y),n.compose(s),m.compose(y),b.compose(g),r.compose(y,g,t),d}),et(_,"Core/Axis/BrokenAxis.js",[_["Core/Axis/Stacking/StackItem.js"],_["Core/Utilities.js"]],function(G,B){var X,U=B.addEvent,$=B.find,Z=B.fireEvent,V=B.isArray,z=B.isNumber,I=B.pick;return function(E){var M=[];function P(){this.brokenAxis!==void 0&&this.brokenAxis.setBreaks(this.options.breaks,!1)}function y(){var x=this;x.brokenAxis&&x.brokenAxis.hasBreaks&&(x.options.ordinal=!1)}function h(){var x=this,c=x.brokenAxis;if(c&&c.hasBreaks){for(var g=x.tickPositions,r=x.tickPositions.info,a=[],t=0;t<g.length;t++)c.isInAnyBreak(g[t])||a.push(g[t]);x.tickPositions=a,x.tickPositions.info=r}}function f(){var x=this;x.brokenAxis||(x.brokenAxis=new w(x))}function m(){var x=this,c=x.isDirty,g=x.options.connectNulls,r=x.points,a=x.xAxis,t=x.yAxis;if(c)for(var i=r.length;i--;){var o=r[i],e=!(o.y===null&&g===!1)&&(a&&a.brokenAxis&&a.brokenAxis.isInAnyBreak(o.x,!0)||t&&t.brokenAxis&&t.brokenAxis.isInAnyBreak(o.y,!0));o.visible=!e&&o.options.visible!==!1}}function u(){this.drawBreaks(this.xAxis,["x"]),this.drawBreaks(this.yAxis,I(this.pointArrayMap,["y"]))}function v(x,c){var g,r,a,t,i=this,o=i.points;if(x&&x.brokenAxis&&x.brokenAxis.hasBreaks){var e=x.brokenAxis;c.forEach(function(s){g=e&&e.breakArray||[],r=x.isXAxis?x.min:I(i.options.threshold,x.min),o.forEach(function(n){t=I(n["stack"+s.toUpperCase()],n[s]),g.forEach(function(l){z(r)&&z(t)&&(a=!1,r<l.from&&t>l.to||r>l.from&&t<l.from?a="pointBreak":(r<l.from&&t>l.from&&t<l.to||r>l.from&&t>l.to&&t<l.from)&&(a="pointInBreak"),a&&Z(x,a,{point:n,brk:l}))})})})}}function S(){var x=this.currentDataGrouping,c=x&&x.gapSize,g=this.points.slice(),r=this.yAxis,a=this.options.gapSize,t=g.length-1;if(a&&t>0){this.options.gapUnit!=="value"&&(a*=this.basePointRange),c&&c>a&&c>=this.basePointRange&&(a=c);for(var i=void 0,o=void 0;t--;)if(o&&o.visible!==!1||(o=g[t+1]),i=g[t],o.visible!==!1&&i.visible!==!1){if(o.x-i.x>a){var e=(i.x+o.x)/2;g.splice(t+1,0,{isNull:!0,x:e}),r.stacking&&this.options.stacking&&((r.stacking.stacks[this.stackKey][e]=new G(r,r.options.stackLabels,!1,e,this.stack)).total=0)}o=i}}return this.getGraphPath(g)}E.compose=function(x,c){if(M.indexOf(x)===-1&&(M.push(x),x.keepProps.push("brokenAxis"),U(x,"init",f),U(x,"afterInit",P),U(x,"afterSetTickPositions",h),U(x,"afterSetOptions",y)),M.indexOf(c)===-1){M.push(c);var g=c.prototype;g.drawBreaks=v,g.gappedPath=S,U(c,"afterGeneratePoints",m),U(c,"afterRender",u)}return x};var w=function(){function x(c){this.hasBreaks=!1,this.axis=c}return x.isInBreak=function(c,g){var r=c.repeat||1/0,a=c.from,t=c.to-c.from,i=g>=a?(g-a)%r:r-(a-g)%r;return c.inclusive?i<=t:i<t&&i!==0},x.lin2Val=function(c){var g=this.brokenAxis,r=g&&g.breakArray;if(!r||!z(c))return c;var a,t,i=c;for(t=0;t<r.length&&!((a=r[t]).from>=i);t++)(a.to<i||x.isInBreak(a,i))&&(i+=a.len);return i},x.val2Lin=function(c){var g=this.brokenAxis,r=g&&g.breakArray;if(!r||!z(c))return c;var a,t,i=c;for(t=0;t<r.length;t++)if((a=r[t]).to<=c)i-=a.len;else{if(a.from>=c)break;if(x.isInBreak(a,c)){i-=c-a.from;break}}return i},x.prototype.findBreakAt=function(c,g){return $(g,function(r){return r.from<c&&c<r.to})},x.prototype.isInAnyBreak=function(c,g){var r,a,t,i=this.axis,o=i.options.breaks||[],e=o.length;if(e&&z(c)){for(;e--;)x.isInBreak(o[e],c)&&(r=!0,a||(a=I(o[e].showPoints,!i.isXAxis)));t=r&&g?r&&!a:r}return t},x.prototype.setBreaks=function(c,g){var r=this,a=r.axis,t=V(c)&&!!c.length;a.isDirty=r.hasBreaks!==t,r.hasBreaks=t,a.options.breaks=a.userOptions.breaks=c,a.forceRedraw=!0,a.series.forEach(function(i){i.isDirty=!0}),t||a.val2lin!==x.val2Lin||(delete a.val2lin,delete a.lin2val),t&&(a.userOptions.ordinal=!1,a.lin2val=x.lin2Val,a.val2lin=x.val2Lin,a.setExtremes=function(i,o,e,s,n){if(r.hasBreaks){for(var l=this.options.breaks||[],b=void 0;b=r.findBreakAt(i,l);)i=b.to;for(;b=r.findBreakAt(o,l);)o=b.from;o<i&&(o=i)}a.constructor.prototype.setExtremes.call(this,i,o,e,s,n)},a.setAxisTranslation=function(){if(a.constructor.prototype.setAxisTranslation.call(this),r.unitLength=void 0,r.hasBreaks){var i,o,e,s,n=a.options.breaks||[],l=[],b=[],k=I(a.pointRangePadding,0),D=0,d=a.userMin||a.min,C=a.userMax||a.max;n.forEach(function(A){o=A.repeat||1/0,z(d)&&z(C)&&(x.isInBreak(A,d)&&(d+=A.to%o-d%o),x.isInBreak(A,C)&&(C-=C%o-A.from%o))}),n.forEach(function(A){if(e=A.from,o=A.repeat||1/0,z(d)&&z(C)){for(;e-o>d;)e-=o;for(;e<d;)e+=o;for(s=e;s<C;s+=o)l.push({value:s,move:"in"}),l.push({value:s+A.to-A.from,move:"out",size:A.breakSize})}}),l.sort(function(A,N){return A.value===N.value?(A.move==="in"?0:1)-(N.move==="in"?0:1):A.value-N.value}),i=0,e=d,l.forEach(function(A){(i+=A.move==="in"?1:-1)===1&&A.move==="in"&&(e=A.value),i===0&&z(e)&&(b.push({from:e,to:A.value,len:A.value-e-(A.size||0)}),D+=A.value-e-(A.size||0))}),r.breakArray=b,z(d)&&z(C)&&z(a.min)&&(r.unitLength=C-d-D+k,Z(a,"afterBreaks"),a.staticScale?a.transA=a.staticScale:r.unitLength&&(a.transA*=(C-a.min+k)/r.unitLength),k&&(a.minPixelPadding=a.transA*(a.minPointOffset||0)),a.min=d,a.max=C)}}),I(g,!0)&&a.chart.redraw()},x}();E.Additions=w}(X||(X={})),X}),et(_,"masters/modules/broken-axis.src.js",[_["Core/Globals.js"],_["Core/Axis/BrokenAxis.js"]],function(G,B){var X=G;B.compose(X.Axis,X.Series)}),et(_,"Extensions/DataGrouping/ApproximationRegistry.js",[],function(){return{}}),et(_,"Extensions/DataGrouping/ApproximationDefaults.js",[_["Extensions/DataGrouping/ApproximationRegistry.js"],_["Core/Utilities.js"]],function(G,B){var X=B.arrayMax,U=B.arrayMin,$=B.correctFloat,Z=B.extend,V=B.isNumber;function z(M){var P=M.length,y=I(M);return V(y)&&P&&(y=$(y/P)),y}function I(M){var P,y=M.length;if(!y&&M.hasNulls)P=null;else if(y)for(P=0;y--;)P+=M[y];return P}var E={average:z,averages:function(){var M=[];return[].forEach.call(arguments,function(P){M.push(z(P))}),M[0]===void 0?void 0:M},close:function(M){return M.length?M[M.length-1]:M.hasNulls?null:void 0},high:function(M){return M.length?X(M):M.hasNulls?null:void 0},hlc:function(M,P,y){if(M=G.high(M),P=G.low(P),y=G.close(y),V(M)||V(P)||V(y))return[M,P,y]},low:function(M){return M.length?U(M):M.hasNulls?null:void 0},ohlc:function(M,P,y,h){if(M=G.open(M),P=G.high(P),y=G.low(y),h=G.close(h),V(M)||V(P)||V(y)||V(h))return[M,P,y,h]},open:function(M){return M.length?M[0]:M.hasNulls?null:void 0},range:function(M,P){return M=G.low(M),P=G.high(P),V(M)||V(P)?[M,P]:M===null&&P===null?null:void 0},sum:I};return Z(G,E),E}),et(_,"Extensions/DataGrouping/DataGroupingDefaults.js",[],function(){return{common:{groupPixelWidth:2,dateTimeLabelFormats:{millisecond:["%A, %b %e, %H:%M:%S.%L","%A, %b %e, %H:%M:%S.%L","-%H:%M:%S.%L"],second:["%A, %b %e, %H:%M:%S","%A, %b %e, %H:%M:%S","-%H:%M:%S"],minute:["%A, %b %e, %H:%M","%A, %b %e, %H:%M","-%H:%M"],hour:["%A, %b %e, %H:%M","%A, %b %e, %H:%M","-%H:%M"],day:["%A, %b %e, %Y","%A, %b %e","-%A, %b %e, %Y"],week:["Week from %A, %b %e, %Y","%A, %b %e","-%A, %b %e, %Y"],month:["%B %Y","%B","-%B %Y"],year:["%Y","%Y","-%Y"]}},seriesSpecific:{line:{},spline:{},area:{},areaspline:{},arearange:{},column:{groupPixelWidth:10},columnrange:{groupPixelWidth:10},candlestick:{groupPixelWidth:10},ohlc:{groupPixelWidth:5},hlc:{groupPixelWidth:5},heikinashi:{groupPixelWidth:10}},units:[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1]],["week",[1]],["month",[1,3,6]],["year",null]]}}),et(_,"Extensions/DataGrouping/DataGroupingAxisComposition.js",[_["Extensions/DataGrouping/DataGroupingDefaults.js"],_["Core/Utilities.js"]],function(G,B){var X,U=B.addEvent,$=B.extend,Z=B.merge,V=B.pick,z=[];function I(y){var h=this,f=h.series;f.forEach(function(m){m.groupPixelWidth=void 0}),f.forEach(function(m){m.groupPixelWidth=h.getGroupPixelWidth&&h.getGroupPixelWidth(),m.groupPixelWidth&&(m.hasProcessed=!0),m.applyGrouping(!!y.hasExtremesChanged)})}function E(){for(var y,h,f=this.series,m=f.length,u=0,v=!1;m--;)(h=f[m].options.dataGrouping)&&(u=Math.max(u,V(h.groupPixelWidth,G.common.groupPixelWidth)),y=(f[m].processedXData||f[m].data).length,(f[m].groupPixelWidth||y>this.chart.plotSizeX/u||y&&h.forced)&&(v=!0));return v?u:0}function M(){this.series.forEach(function(y){y.hasProcessed=!1})}function P(y,h){var f;if(h=V(h,!0),y||(y={forced:!1,units:null}),this instanceof X)for(f=this.series.length;f--;)this.series[f].update({dataGrouping:y},!1);else this.chart.options.series.forEach(function(m){m.dataGrouping=typeof y=="boolean"?y:Z(y,m.dataGrouping)});this.ordinal&&(this.ordinal.slope=void 0),h&&this.chart.redraw()}return{compose:function(y){X=y,z.indexOf(y)===-1&&(z.push(y),U(y,"afterSetScale",M),U(y,"postProcessData",I),$(y.prototype,{applyGrouping:I,getGroupPixelWidth:E,setDataGrouping:P}))}}}),et(_,"Extensions/DataGrouping/DataGroupingSeriesComposition.js",[_["Extensions/DataGrouping/ApproximationRegistry.js"],_["Extensions/DataGrouping/DataGroupingDefaults.js"],_["Core/Axis/DateTimeAxis.js"],_["Core/Defaults.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,X,U,$,Z){var V=$.series.prototype,z=Z.addEvent,I=Z.defined,E=Z.error,M=Z.extend,P=Z.isNumber,y=Z.merge,h=Z.pick,f=V.generatePoints,m=[];function u(g){var r,a,t=this,i=t.chart,o=t.options.dataGrouping,e=t.allowDG!==!1&&o&&h(o.enabled,i.options.isStock),s=t.visible||!i.options.chart.ignoreHiddenSeries,n=this.currentDataGrouping,l=!1;e&&!t.requireSorting&&(t.requireSorting=l=!0);var b=function(lt,gt){return!(lt.isCartesian&&!lt.isDirty&&!lt.xAxis.isDirty&&!lt.yAxis.isDirty&&!gt)}(t,g)===!1||!e;if(l&&(t.requireSorting=!1),!b){t.destroyGroupedData();var k=o.groupAll?t.xData:t.processedXData,D=o.groupAll?t.yData:t.processedYData,d=i.plotSizeX,C=t.xAxis,A=C.options.ordinal,N=t.groupPixelWidth,R=void 0,L=void 0;if(N&&k&&k.length&&d){L=!0,t.isDirty=!0,t.points=null;var O=C.getExtremes(),j=O.min,Y=O.max,H=N*(Y-j)/d*(A&&C.ordinal&&C.ordinal.getGroupIntervalFactor(j,Y,t)||1),W=C.getTimeTicks(X.Additions.prototype.normalizeTimeTickInterval(H,o.units||B.units),Math.min(j,k[0]),Math.max(Y,k[k.length-1]),C.options.startOfWeek,k,t.closestPointRange),q=V.groupData.apply(t,[k,D,W,o.approximation]),Q=q.groupedXData,J=q.groupedYData,nt=0;for(o&&o.smoothed&&Q.length&&(o.firstAnchor="firstPoint",o.anchor="middle",o.lastAnchor="lastPoint",E(32,!1,i,{"dataGrouping.smoothed":"use dataGrouping.anchor"})),function(lt,gt,mt){var bt,yt=lt.options.dataGrouping,dt=lt.currentDataGrouping&<.currentDataGrouping.gapSize;if(yt&<.xData&&dt&<.groupMap){var ot=gt.length-1,at=yt.anchor,ut=h(yt.firstAnchor,at),vt=h(yt.lastAnchor,at);if(at&&at!=="start"){var Ct=dt*{middle:.5,end:1}[at];for(bt=gt.length-1;bt--&&bt>0;)gt[bt]+=Ct}if(ut&&ut!=="start"&<.xData[0]>=gt[0]){var xt=lt.groupMap[0].start,St=lt.groupMap[0].length,Mt=void 0;P(xt)&&P(St)&&(Mt=xt+(St-1)),gt[0]={middle:gt[0]+.5*dt,end:gt[0]+dt,firstPoint:lt.xData[0],lastPoint:Mt&<.xData[Mt]}[ut]}if(vt&&vt!=="start"&&dt&>[ot]>=mt-dt){var wt=lt.groupMap[lt.groupMap.length-1].start;gt[ot]={middle:gt[ot]+.5*dt,end:gt[ot]+dt,firstPoint:wt&<.xData[wt],lastPoint:lt.xData[lt.xData.length-1]}[vt]}}}(t,Q,Y),R=1;R<W.length;R++)W.info.segmentStarts&&W.info.segmentStarts.indexOf(R)!==-1||(nt=Math.max(W[R]-W[R-1],nt));(r=W.info).gapSize=nt,t.closestPointRange=W.info.totalRange,t.groupMap=q.groupMap,s&&function(lt,gt){I(gt[0])&&P(lt.min)&&P(lt.dataMin)&>[0]<lt.min&&((!I(lt.options.min)&<.min<=lt.dataMin||lt.min===lt.dataMin)&&(lt.min=Math.min(gt[0],lt.min)),lt.dataMin=Math.min(gt[0],lt.dataMin)),I(gt[gt.length-1])&&P(lt.max)&&P(lt.dataMax)&>[gt.length-1]>lt.max&&((!I(lt.options.max)&&P(lt.dataMax)&<.max>=lt.dataMax||lt.max===lt.dataMax)&&(lt.max=Math.max(gt[gt.length-1],lt.max)),lt.dataMax=Math.max(gt[gt.length-1],lt.dataMax))}(C,Q),o.groupAll&&(t.allGroupedData=J,Q=(a=t.cropData(Q,J,C.min,C.max,1)).xData,J=a.yData,t.cropStart=a.start),t.processedXData=Q,t.processedYData=J}else t.groupMap=null;t.hasGroupedData=L,t.currentDataGrouping=r,t.preventGraphAnimation=(n&&n.totalRange)!==(r&&r.totalRange)}}function v(){this.groupedData&&(this.groupedData.forEach(function(g,r){g&&(this.groupedData[r]=g.destroy?g.destroy():null)},this),this.groupedData.length=0)}function S(){f.apply(this),this.destroyGroupedData(),this.groupedData=this.hasGroupedData?this.points:null}function w(){return this.is("arearange")?"range":this.is("ohlc")?"ohlc":this.is("hlc")?"hlc":this.is("column")?"sum":"average"}function x(g,r,a,t){var i,o,e,s=this,n=s.data,l=s.options&&s.options.data,b=[],k=[],D=[],d=g.length,C=!!r,A=[],N=s.pointArrayMap,R=N&&N.length,L=["x"].concat(N||["y"]),O=this.options.dataGrouping&&this.options.dataGrouping.groupAll,j=0,Y=0,H=typeof t=="function"?t:t&&G[t]?G[t]:G[s.getDGApproximation&&s.getDGApproximation()||"average"];if(R)for(var W=N.length;W--;)A.push([]);else A.push([]);for(var q=R||1,Q=0;Q<=d;Q++)if(!(g[Q]<a[0])){for(;a[j+1]!==void 0&&g[Q]>=a[j+1]||Q===d;){i=a[j],s.dataGroupInfo={start:O?Y:s.cropStart+Y,length:A[0].length},e=H.apply(s,A),s.pointClass&&!I(s.dataGroupInfo.options)&&(s.dataGroupInfo.options=y(s.pointClass.prototype.optionsToObject.call({series:s},s.options.data[s.cropStart+Y])),L.forEach(function(mt){delete s.dataGroupInfo.options[mt]})),e!==void 0&&(b.push(i),k.push(e),D.push(s.dataGroupInfo)),Y=Q;for(var J=0;J<q;J++)A[J].length=0,A[J].hasNulls=!1;if(j+=1,Q===d)break}if(Q===d)break;if(N){var nt=s.options.dataGrouping&&s.options.dataGrouping.groupAll?Q:s.cropStart+Q,lt=n&&n[nt]||s.pointClass.prototype.applyOptions.apply({series:s},[l[nt]]),gt=void 0;for(J=0;J<R;J++)gt=lt[N[J]],P(gt)?A[J].push(gt):gt===null&&(A[J].hasNulls=!0)}else o=C?r[Q]:null,P(o)?A[0].push(o):o===null&&(A[0].hasNulls=!0)}return{groupedXData:b,groupedYData:k,groupMap:D}}function c(g){var r=g.options,a=this.type,t=this.chart.options.plotOptions,i=this.useCommonDataGrouping&&B.common,o=B.seriesSpecific,e=U.defaultOptions.plotOptions[a].dataGrouping;if(t&&(o[a]||i)){var s=this.chart.rangeSelector;e||(e=y(B.common,o[a])),r.dataGrouping=y(i,e,t.series&&t.series.dataGrouping,t[a].dataGrouping,this.userOptions.dataGrouping,!r.isInternal&&s&&P(s.selected)&&s.buttonOptions[s.selected].dataGrouping)}}return{compose:function(g){var r=g.prototype.pointClass;m.indexOf(r)===-1&&(m.push(r),z(r,"update",function(){if(this.dataGroup)return E(24,!1,this.series.chart),!1})),m.indexOf(g)===-1&&(m.push(g),z(g,"afterSetOptions",c),z(g,"destroy",v),M(g.prototype,{applyGrouping:u,destroyGroupedData:v,generatePoints:S,getDGApproximation:w,groupData:x}))},groupData:x}}),et(_,"Extensions/DataGrouping/DataGrouping.js",[_["Extensions/DataGrouping/DataGroupingAxisComposition.js"],_["Extensions/DataGrouping/DataGroupingDefaults.js"],_["Extensions/DataGrouping/DataGroupingSeriesComposition.js"],_["Core/FormatUtilities.js"],_["Core/Utilities.js"]],function(G,B,X,U,$){var Z=U.format,V=$.addEvent,z=$.extend,I=$.isNumber,E=[];function M(P){var y,h,f,m,u,v=this.chart,S=v.time,w=P.labelConfig,x=w.series,c=x.options,g=x.tooltipOptions,r=c.dataGrouping,a=x.xAxis,t=g.xDateFormat,i=g[P.isFooter?"footerFormat":"headerFormat"];a&&a.options.type==="datetime"&&r&&I(w.key)&&(h=x.currentDataGrouping,f=r.dateTimeLabelFormats||B.common.dateTimeLabelFormats,h?(m=f[h.unitName],h.count===1?t=m[0]:(t=m[1],y=m[2])):!t&&f&&a.dateTime&&(t=a.dateTime.getXDateFormat(w.x,g.dateTimeLabelFormats)),u=S.dateFormat(t,w.key),y&&(u+=S.dateFormat(y,w.key+h.totalRange-1)),x.chart.styledMode&&(i=this.styledModeFormat(i)),P.text=Z(i,{point:z(w.point,{key:u}),series:x},v),P.preventDefault())}return{compose:function(P,y,h){G.compose(P),X.compose(y),E.indexOf(h)===-1&&(E.push(h),V(h,"headerFormatter",M))},groupData:X.groupData}}),et(_,"masters/modules/datagrouping.src.js",[_["Core/Globals.js"],_["Extensions/DataGrouping/ApproximationDefaults.js"],_["Extensions/DataGrouping/ApproximationRegistry.js"],_["Extensions/DataGrouping/DataGrouping.js"]],function(G,B,X,U){var $=G;$.dataGrouping={approximationDefaults:B,approximations:X},U.compose($.Axis,$.Series,$.Tooltip)}),et(_,"Series/DataModifyComposition.js",[_["Core/Axis/Axis.js"],_["Core/Series/Point.js"],_["Core/Series/Series.js"],_["Core/Utilities.js"]],function(G,B,X,U){var $,Z=B.prototype.tooltipFormatter,V=U.addEvent,z=U.arrayMax,I=U.arrayMin,E=U.correctFloat,M=U.defined,P=U.isArray,y=U.isNumber,h=U.isString,f=U.pick;return function(m){var u=[];function v(o,e,s){this.isXAxis||(this.series.forEach(function(n){o==="compare"&&typeof e!="boolean"?n.setCompare(e,!1):o!=="cumulative"||h(e)||n.setCumulative(e,!1)}),f(s,!0)&&this.chart.redraw())}function S(o){var e=this,s=e.series.chart.numberFormatter,n=function(l){o=o.replace("{point."+l+"}",(e[l]>0&&l==="change"?"+":"")+s(e[l],f(e.series.tooltipOptions.changeDecimals,2)))};return M(e.change)&&n("change"),M(e.cumulativeSum)&&n("cumulativeSum"),Z.apply(this,[o])}function w(){var o,e=this.options.compare;(e==="percent"||e==="value"||this.options.cumulative)&&(o=new i(this),e==="percent"||e==="value"?o.initCompare(e):o.initCumulative()),this.dataModify=o}function x(o){var e=o.dataExtremes,s=e.activeYData;if(this.dataModify&&e){var n=void 0;this.options.compare?n=[this.dataModify.modifyValue(e.dataMin),this.dataModify.modifyValue(e.dataMax)]:this.options.cumulative&&P(s)&&s.length>=2&&(n=i.getCumulativeExtremes(s)),n&&(e.dataMin=I(n),e.dataMax=z(n))}}function c(o,e){this.options.compare=this.userOptions.compare=o,this.update({},f(e,!0)),!this.dataModify||o!=="value"&&o!=="percent"?this.points.forEach(function(s){delete s.change}):this.dataModify.initCompare(o)}function g(){var o=this;if(o.xAxis&&o.processedYData&&o.dataModify){var e=o.processedXData,s=o.processedYData,n=s.length,l=o.options.compareStart===!0?0:1,b=-1,k=void 0;for(o.pointArrayMap&&(b=o.pointArrayMap.indexOf(o.options.pointValKey||o.pointValKey||"y")),k=0;k<n-l;k++){var D=s[k]&&b>-1?s[k][b]:s[k];if(y(D)&&D!==0&&e[k+l]>=(o.xAxis.min||0)){o.dataModify.compareValue=D;break}}}}function r(o,e){this.setModifier("compare",o,e)}function a(o,e){o=f(o,!1),this.options.cumulative=this.userOptions.cumulative=o,this.update({},f(e,!0)),this.dataModify?this.dataModify.initCumulative():this.points.forEach(function(s){delete s.cumulativeSum})}function t(o,e){this.setModifier("cumulative",o,e)}m.compose=function(o,e,s){if(u.indexOf(o)===-1){u.push(o);var n=o.prototype;n.setCompare=c,n.setCumulative=a,V(o,"afterInit",w),V(o,"afterGetExtremes",x),V(o,"afterProcessData",g)}if(u.indexOf(e)===-1){u.push(e);var l=e.prototype;l.setCompare=r,l.setModifier=v,l.setCumulative=t}return u.indexOf(s)===-1&&(u.push(s),s.prototype.tooltipFormatter=S),o};var i=function(){function o(e){this.series=e}return o.prototype.modifyValue=function(){return 0},o.getCumulativeExtremes=function(e){var s=1/0,n=-1/0;return e.reduce(function(l,b){var k=l+b;return s=Math.min(s,k,l),n=Math.max(n,k,l),k}),[s,n]},o.prototype.initCompare=function(e){this.modifyValue=function(s,n){s===null&&(s=0);var l=this.compareValue;if(s!==void 0&&l!==void 0){if(e==="value"?s-=l:s=s/l*100-(this.series.options.compareBase===100?0:100),n!==void 0){var b=this.series.points[n];b&&(b.change=s)}return s}return 0}},o.prototype.initCumulative=function(){this.modifyValue=function(e,s){if(e===null&&(e=0),e!==void 0&&s!==void 0){var n=s>0?this.series.points[s-1]:null;n&&n.cumulativeSum&&(e=E(n.cumulativeSum+e));var l=this.series.points[s];return l&&(l.cumulativeSum=e),e}return 0}},o}();m.Additions=i}($||($={})),$}),et(_,"Core/Axis/NavigatorAxisComposition.js",[_["Core/Globals.js"],_["Core/Utilities.js"]],function(G,B){var X=G.isTouchDevice,U=B.addEvent,$=B.correctFloat,Z=B.defined,V=B.isNumber,z=B.pick,I=[];function E(){var y=this;y.navigatorAxis||(y.navigatorAxis=new P(y))}function M(y){var h=this,f=h.chart.options,m=f.navigator,u=h.navigatorAxis,v=f.chart.zooming.pinchType,S=f.rangeSelector,w=f.chart.zooming.type;if(h.isXAxis&&(m&&m.enabled||S&&S.enabled)){if(w==="y")y.zoomed=!1;else if((!X&&w==="xy"||X&&v==="xy")&&h.options.range){var x=u.previousZoom;Z(y.newMin)?u.previousZoom=[h.min,h.max]:x&&(y.newMin=x[0],y.newMax=x[1],u.previousZoom=void 0)}}y.zoomed!==void 0&&y.preventDefault()}var P=function(){function y(h){this.axis=h}return y.compose=function(h){I.indexOf(h)===-1&&(I.push(h),h.keepProps.push("navigatorAxis"),U(h,"init",E),U(h,"zoom",M))},y.prototype.destroy=function(){this.axis=void 0},y.prototype.toFixedRange=function(h,f,m,u){var v=this.axis,S=v.chart,w=z(m,v.translate(h,!0,!v.horiz)),x=z(u,v.translate(f,!0,!v.horiz)),c=S&&S.fixedRange,g=(v.pointRange||0)/2,r=c&&(x-w)/c;return Z(m)||(w=$(w+g)),Z(u)||(x=$(x-g)),r>.7&&r<1.3&&(u?w=x-c:x=w+c),V(w)&&V(x)||(w=x=void 0),{min:w,max:x}},y}();return P}),et(_,"Stock/Navigator/NavigatorDefaults.js",[_["Core/Color/Color.js"],_["Core/Series/SeriesRegistry.js"]],function(G,B){var X=G.parse,U=B.seriesTypes;return{height:40,margin:25,maskInside:!0,handles:{width:7,height:15,symbols:["navigator-handle","navigator-handle"],enabled:!0,lineWidth:1,backgroundColor:"#f2f2f2",borderColor:"#999999"},maskFill:X("#6685c2").setOpacity(.3).get(),outlineColor:"#cccccc",outlineWidth:1,series:{type:U.areaspline===void 0?"line":"areaspline",fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:"average",enabled:!0,groupPixelWidth:2,firstAnchor:"firstPoint",anchor:"middle",lastAnchor:"lastPoint",units:[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2,3,4]],["week",[1,2,3]],["month",[1,3,6]],["year",null]]},dataLabels:{enabled:!1,zIndex:2},id:"highcharts-navigator-series",className:"highcharts-navigator-series",lineColor:null,marker:{enabled:!1},threshold:null},xAxis:{overscroll:0,className:"highcharts-navigator-xaxis",tickLength:0,lineWidth:0,gridLineColor:"#e6e6e6",gridLineWidth:1,tickPixelInterval:200,labels:{align:"left",style:{color:"#999999"},x:3,y:-4},crosshair:!1},yAxis:{className:"highcharts-navigator-yaxis",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}}),et(_,"Stock/Navigator/NavigatorSymbols.js",[],function(){return{"navigator-handle":function(G,B,X,U,$){$===void 0&&($={});var Z=$.width?$.width/2:X,V=Math.round(Z/3)+.5;return[["M",-Z-1,.5],["L",Z,.5],["L",Z,(U=$.height||U)+.5],["L",-Z-1,U+.5],["L",-Z-1,.5],["M",-V,4],["L",-V,U-3],["M",V-1,4],["L",V-1,U-3]]}}}),et(_,"Stock/Navigator/NavigatorComposition.js",[_["Core/Defaults.js"],_["Core/Globals.js"],_["Core/Axis/NavigatorAxisComposition.js"],_["Stock/Navigator/NavigatorDefaults.js"],_["Stock/Navigator/NavigatorSymbols.js"],_["Core/Renderer/RendererRegistry.js"],_["Core/Utilities.js"]],function(G,B,X,U,$,Z,V){var z,I=G.defaultOptions,E=G.setOptions,M=B.isTouchDevice,P=Z.getRendererType,y=V.addEvent,h=V.extend,f=V.merge,m=V.pick,u=[];function v(){this.navigator&&this.navigator.setBaseSeries(null,!1)}function S(){var t,i,o,e,s=this.legend,n=this.navigator;n&&(i=s&&s.options,o=n.xAxis,e=n.yAxis,t=n.scrollbarHeight,this.inverted?(n.left=n.opposite?this.chartWidth-t-n.height:this.spacing[3]+t,n.top=this.plotTop+t):(n.left=m(o.left,this.plotLeft+t),n.top=n.navigatorOptions.top||this.chartHeight-n.height-t-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(i&&i.verticalAlign==="bottom"&&i.layout!=="proximate"&&i.enabled&&!i.floating?s.legendHeight+m(i.margin,10):0)-(this.titleOffset?this.titleOffset[2]:0)),o&&e&&(this.inverted?o.options.left=e.options.left=n.left:o.options.top=e.options.top=n.top,o.setAxisSize(),e.setAxisSize()))}function w(t){this.navigator||this.scroller||!this.options.navigator.enabled&&!this.options.scrollbar.enabled||(this.scroller=this.navigator=new z(this),m(t.redraw,!0)&&this.redraw(t.animation))}function x(){var t=this.options;(t.navigator.enabled||t.scrollbar.enabled)&&(this.scroller=this.navigator=new z(this))}function c(){var t=this.options,i=t.navigator,o=t.rangeSelector;if((i&&i.enabled||o&&o.enabled)&&(!M&&t.chart.zooming.type==="x"||M&&t.chart.zooming.pinchType==="x"))return!1}function g(t){var i=t.navigator;if(i&&t.xAxis[0]){var o=t.xAxis[0].getExtremes();i.render(o.min,o.max)}}function r(t){var i=t.options.navigator||{},o=t.options.scrollbar||{};this.navigator||this.scroller||!i.enabled&&!o.enabled||(f(!0,this.options.navigator,i),f(!0,this.options.scrollbar,o),delete t.options.navigator,delete t.options.scrollbar)}function a(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)}return{compose:function(t,i,o,e){X.compose(t),z=o,u.indexOf(i)===-1&&(u.push(i),i.prototype.callbacks.push(g),y(i,"afterAddSeries",v),y(i,"afterSetChartSize",S),y(i,"afterUpdate",w),y(i,"beforeRender",x),y(i,"beforeShowResetZoom",c),y(i,"update",r)),u.indexOf(e)===-1&&(u.push(e),y(e,"afterUpdate",a)),u.indexOf(P)===-1&&(u.push(P),h(P().prototype.symbols,$)),u.indexOf(E)===-1&&(u.push(E),h(I,{navigator:U}))}}}),et(_,"Core/Axis/ScrollbarAxis.js",[_["Core/Utilities.js"]],function(G){var B=G.addEvent,X=G.defined,U=G.pick;return function(){function $(){}return $.compose=function(Z,V){if($.composed.indexOf(Z)!==-1)return Z;$.composed.push(Z);var z=function(I){var E=U(I.options&&I.options.min,I.min),M=U(I.options&&I.options.max,I.max);return{axisMin:E,axisMax:M,scrollMin:X(I.dataMin)?Math.min(E,I.min,I.dataMin,U(I.threshold,1/0)):E,scrollMax:X(I.dataMax)?Math.max(M,I.max,I.dataMax,U(I.threshold,-1/0)):M}};return B(Z,"afterInit",function(){var I=this;I.options&&I.options.scrollbar&&I.options.scrollbar.enabled&&(I.options.scrollbar.vertical=!I.horiz,I.options.startOnTick=I.options.endOnTick=!1,I.scrollbar=new V(I.chart.renderer,I.options.scrollbar,I.chart),B(I.scrollbar,"changed",function(E){var M,P,y=z(I),h=y.axisMin,f=y.axisMax,m=y.scrollMin,u=y.scrollMax-m;X(h)&&X(f)&&(I.horiz&&!I.reversed||!I.horiz&&I.reversed?(M=m+u*this.to,P=m+u*this.from):(M=m+u*(1-this.from),P=m+u*(1-this.to)),this.shouldUpdateExtremes(E.DOMType)?I.setExtremes(P,M,!0,E.DOMType!=="mousemove"&&E.DOMType!=="touchmove",E):this.setRange(this.from,this.to))}))}),B(Z,"afterRender",function(){var I,E,M,P=this,y=z(P),h=y.scrollMin,f=y.scrollMax,m=P.scrollbar,u=P.axisTitleMargin+(P.titleOffset||0),v=P.chart.scrollbarsOffsets,S=P.options.margin||0;if(m){if(P.horiz)P.opposite||(v[1]+=u),m.position(P.left,P.top+P.height+2+v[1]-(P.opposite?S:0),P.width,P.height),P.opposite||(v[1]+=S),I=1;else{P.opposite&&(v[0]+=u);var w;w=m.options.opposite?P.left+P.width+2+v[0]-(P.opposite?0:S):P.opposite?0:S,m.position(w,P.top,P.width,P.height),P.opposite&&(v[0]+=S),I=0}v[I]+=m.size+m.options.margin,isNaN(h)||isNaN(f)||!X(P.min)||!X(P.max)||P.min===P.max?m.setRange(0,1):(E=(P.min-h)/(f-h),M=(P.max-h)/(f-h),P.horiz&&!P.reversed||!P.horiz&&P.reversed?m.setRange(E,M):m.setRange(1-M,1-E))}}),B(Z,"afterGetOffset",function(){var I=this,E=I.scrollbar&&!I.scrollbar.options.opposite,M=I.horiz?2:E?3:1,P=I.scrollbar;P&&(I.chart.scrollbarsOffsets=[0,0],I.chart.axisOffset[M]+=P.size+P.options.margin)}),Z},$.composed=[],$}()}),et(_,"Stock/Scrollbar/ScrollbarDefaults.js",[_["Core/Globals.js"]],function(G){return{height:G.isTouchDevice?20:14,barBorderRadius:0,buttonBorderRadius:0,liveRedraw:void 0,margin:10,minWidth:6,opposite:!0,step:.2,zIndex:3,barBackgroundColor:"#cccccc",barBorderWidth:1,barBorderColor:"#cccccc",buttonArrowColor:"#333333",buttonBackgroundColor:"#e6e6e6",buttonBorderColor:"#cccccc",buttonBorderWidth:1,rifleColor:"#333333",trackBackgroundColor:"#f2f2f2",trackBorderColor:"#f2f2f2",trackBorderWidth:1}}),et(_,"Stock/Scrollbar/Scrollbar.js",[_["Core/Defaults.js"],_["Core/Globals.js"],_["Core/Axis/ScrollbarAxis.js"],_["Stock/Scrollbar/ScrollbarDefaults.js"],_["Core/Utilities.js"]],function(G,B,X,U,$){var Z=G.defaultOptions,V=$.addEvent,z=$.correctFloat,I=$.defined,E=$.destroyObjectProperties,M=$.fireEvent,P=$.merge,y=$.pick,h=$.removeEvent,f=function(){function m(u,v,S){this._events=[],this.chart=void 0,this.chartX=0,this.chartY=0,this.from=0,this.group=void 0,this.options=void 0,this.renderer=void 0,this.scrollbar=void 0,this.scrollbarButtons=[],this.scrollbarGroup=void 0,this.scrollbarLeft=0,this.scrollbarRifles=void 0,this.scrollbarStrokeWidth=1,this.scrollbarTop=0,this.size=0,this.to=0,this.track=void 0,this.trackBorderWidth=1,this.userOptions=void 0,this.x=0,this.y=0,this.init(u,v,S)}return m.compose=function(u){X.compose(u,m)},m.swapXY=function(u,v){return v&&u.forEach(function(S){for(var w,x=S.length,c=0;c<x;c+=2)typeof(w=S[c+1])=="number"&&(S[c+1]=S[c+2],S[c+2]=w)}),u},m.prototype.addEvents=function(){var u=this.options.inverted?[1,0]:[0,1],v=this.scrollbarButtons,S=this.scrollbarGroup.element,w=this.track.element,x=this.mouseDownHandler.bind(this),c=this.mouseMoveHandler.bind(this),g=this.mouseUpHandler.bind(this),r=[[v[u[0]].element,"click",this.buttonToMinClick.bind(this)],[v[u[1]].element,"click",this.buttonToMaxClick.bind(this)],[w,"click",this.trackClick.bind(this)],[S,"mousedown",x],[S.ownerDocument,"mousemove",c],[S.ownerDocument,"mouseup",g]];B.hasTouch&&r.push([S,"touchstart",x],[S.ownerDocument,"touchmove",c],[S.ownerDocument,"touchend",g]),r.forEach(function(a){V.apply(null,a)}),this._events=r},m.prototype.buttonToMaxClick=function(u){var v=this,S=(v.to-v.from)*y(v.options.step,.2);v.updatePosition(v.from+S,v.to+S),M(v,"changed",{from:v.from,to:v.to,trigger:"scrollbar",DOMEvent:u})},m.prototype.buttonToMinClick=function(u){var v=this,S=z(v.to-v.from)*y(v.options.step,.2);v.updatePosition(z(v.from-S),z(v.to-S)),M(v,"changed",{from:v.from,to:v.to,trigger:"scrollbar",DOMEvent:u})},m.prototype.cursorToScrollbarPosition=function(u){var v=this,S=v.options,w=S.minWidth>v.calculatedWidth?S.minWidth:0;return{chartX:(u.chartX-v.x-v.xOffset)/(v.barWidth-w),chartY:(u.chartY-v.y-v.yOffset)/(v.barWidth-w)}},m.prototype.destroy=function(){var u=this,v=u.chart.scroller;u.removeEvents(),["track","scrollbarRifles","scrollbar","scrollbarGroup","group"].forEach(function(S){u[S]&&u[S].destroy&&(u[S]=u[S].destroy())}),v&&u===v.scrollbar&&(v.scrollbar=null,E(v.scrollbarButtons))},m.prototype.drawScrollbarButton=function(u){var v,S=this,w=S.renderer,x=S.scrollbarButtons,c=S.options,g=S.size,r=w.g().add(S.group);x.push(r),v=w.rect().addClass("highcharts-scrollbar-button").add(r),S.chart.styledMode||v.attr({stroke:c.buttonBorderColor,"stroke-width":c.buttonBorderWidth,fill:c.buttonBackgroundColor}),v.attr(v.crisp({x:-.5,y:-.5,width:g+1,height:g+1,r:c.buttonBorderRadius},v.strokeWidth())),v=w.path(m.swapXY([["M",g/2+(u?-1:1),g/2-3],["L",g/2+(u?-1:1),g/2+3],["L",g/2+(u?2:-2),g/2]],c.vertical)).addClass("highcharts-scrollbar-arrow").add(x[u]),S.chart.styledMode||v.attr({fill:c.buttonArrowColor})},m.prototype.init=function(u,v,S){var w=this;w.scrollbarButtons=[],w.renderer=u,w.userOptions=v,w.options=P(U,Z.scrollbar,v),w.chart=S,w.size=y(w.options.size,w.options.height),v.enabled&&(w.render(),w.addEvents())},m.prototype.mouseDownHandler=function(u){var v=this,S=v.chart.pointer.normalize(u),w=v.cursorToScrollbarPosition(S);v.chartX=w.chartX,v.chartY=w.chartY,v.initPositions=[v.from,v.to],v.grabbedCenter=!0},m.prototype.mouseMoveHandler=function(u){var v,S=this,w=S.chart.pointer.normalize(u),x=S.options.vertical?"chartY":"chartX",c=S.initPositions||[];!S.grabbedCenter||u.touches&&u.touches[0][x]===0||(v=S.cursorToScrollbarPosition(w)[x]-S[x],S.hasDragged=!0,S.updatePosition(c[0]+v,c[1]+v),S.hasDragged&&M(S,"changed",{from:S.from,to:S.to,trigger:"scrollbar",DOMType:u.type,DOMEvent:u}))},m.prototype.mouseUpHandler=function(u){var v=this;v.hasDragged&&M(v,"changed",{from:v.from,to:v.to,trigger:"scrollbar",DOMType:u.type,DOMEvent:u}),v.grabbedCenter=v.hasDragged=v.chartX=v.chartY=null},m.prototype.position=function(u,v,S,w){var x=this,c=x.options.vertical,g=x.rendered?"animate":"attr",r=w,a=0;x.group.show(),x.x=u,x.y=v+this.trackBorderWidth,x.width=S,x.height=w,x.xOffset=r,x.yOffset=a,c?(x.width=x.yOffset=S=a=x.size,x.xOffset=r=0,x.barWidth=w-2*S,x.x=u+=x.options.margin):(x.height=x.xOffset=w=r=x.size,x.barWidth=S-2*w,x.y=x.y+x.options.margin),x.group[g]({translateX:u,translateY:x.y}),x.track[g]({width:S,height:w}),x.scrollbarButtons[1][g]({translateX:c?0:S-r,translateY:c?w-a:0})},m.prototype.removeEvents=function(){this._events.forEach(function(u){h.apply(null,u)}),this._events.length=0},m.prototype.render=function(){var u=this,v=u.renderer,S=u.options,w=u.size,x=u.chart.styledMode,c=v.g("scrollbar").attr({zIndex:S.zIndex}).hide().add();u.group=c,u.track=v.rect().addClass("highcharts-scrollbar-track").attr({x:0,r:S.trackBorderRadius||0,height:w,width:w}).add(c),x||u.track.attr({fill:S.trackBackgroundColor,stroke:S.trackBorderColor,"stroke-width":S.trackBorderWidth}),u.trackBorderWidth=u.track.strokeWidth(),u.track.attr({y:-this.trackBorderWidth%2/2}),u.scrollbarGroup=v.g().add(c),u.scrollbar=v.rect().addClass("highcharts-scrollbar-thumb").attr({height:w,width:w,r:S.barBorderRadius||0}).add(u.scrollbarGroup),u.scrollbarRifles=v.path(m.swapXY([["M",-3,w/4],["L",-3,2*w/3],["M",0,w/4],["L",0,2*w/3],["M",3,w/4],["L",3,2*w/3]],S.vertical)).addClass("highcharts-scrollbar-rifles").add(u.scrollbarGroup),x||(u.scrollbar.attr({fill:S.barBackgroundColor,stroke:S.barBorderColor,"stroke-width":S.barBorderWidth}),u.scrollbarRifles.attr({stroke:S.rifleColor,"stroke-width":1})),u.scrollbarStrokeWidth=u.scrollbar.strokeWidth(),u.scrollbarGroup.translate(-u.scrollbarStrokeWidth%2/2,-u.scrollbarStrokeWidth%2/2),u.drawScrollbarButton(0),u.drawScrollbarButton(1)},m.prototype.setRange=function(u,v){var S=this,w=S.options,x=w.vertical,c=w.minWidth,g=S.barWidth,r=!this.rendered||this.hasDragged||this.chart.navigator&&this.chart.navigator.hasDragged?"attr":"animate";if(I(g)){var a,t,i=g*Math.min(v,1);u=Math.max(u,0),a=Math.ceil(g*u),S.calculatedWidth=t=z(i-a),t<c&&(a=(g-c+t)*u,t=c);var o=Math.floor(a+S.xOffset+S.yOffset),e=t/2-.5;S.from=u,S.to=v,x?(S.scrollbarGroup[r]({translateY:o}),S.scrollbar[r]({height:t}),S.scrollbarRifles[r]({translateY:e}),S.scrollbarTop=o,S.scrollbarLeft=0):(S.scrollbarGroup[r]({translateX:o}),S.scrollbar[r]({width:t}),S.scrollbarRifles[r]({translateX:e}),S.scrollbarLeft=o,S.scrollbarTop=0),t<=12?S.scrollbarRifles.hide():S.scrollbarRifles.show(),w.showFull===!1&&(u<=0&&v>=1?S.group.hide():S.group.show()),S.rendered=!0}},m.prototype.shouldUpdateExtremes=function(u){return y(this.options.liveRedraw,B.svg&&!B.isTouchDevice&&!this.chart.boosted)||u==="mouseup"||u==="touchend"||!I(u)},m.prototype.trackClick=function(u){var v=this,S=v.chart.pointer.normalize(u),w=v.to-v.from,x=v.y+v.scrollbarTop,c=v.x+v.scrollbarLeft;v.options.vertical&&S.chartY>x||!v.options.vertical&&S.chartX>c?v.updatePosition(v.from+w,v.to+w):v.updatePosition(v.from-w,v.to-w),M(v,"changed",{from:v.from,to:v.to,trigger:"scrollbar",DOMEvent:u})},m.prototype.update=function(u){this.destroy(),this.init(this.chart.renderer,P(!0,this.options,u),this.chart)},m.prototype.updatePosition=function(u,v){v>1&&(u=z(1-z(v-u)),v=1),u<0&&(v=z(v-u),u=0),this.from=u,this.to=v},m.defaultOptions=U,m}();return Z.scrollbar=P(!0,f.defaultOptions,Z.scrollbar),f}),et(_,"Stock/Navigator/Navigator.js",[_["Core/Axis/Axis.js"],_["Core/Defaults.js"],_["Core/Globals.js"],_["Core/Axis/NavigatorAxisComposition.js"],_["Stock/Navigator/NavigatorComposition.js"],_["Stock/Scrollbar/Scrollbar.js"],_["Core/Utilities.js"]],function(G,B,X,U,$,Z,V){var z=B.defaultOptions,I=X.hasTouch,E=X.isTouchDevice,M=V.addEvent,P=V.clamp,y=V.correctFloat,h=V.defined,f=V.destroyObjectProperties,m=V.erase,u=V.extend,v=V.find,S=V.isArray,w=V.isNumber,x=V.merge,c=V.pick,g=V.removeEvent,r=V.splat;function a(t){for(var i=[],o=1;o<arguments.length;o++)i[o-1]=arguments[o];var e=[].filter.call(i,w);if(e.length)return Math[t].apply(0,e)}return function(){function t(i){this.baseSeries=void 0,this.chart=void 0,this.handles=void 0,this.height=void 0,this.left=void 0,this.navigatorEnabled=void 0,this.navigatorGroup=void 0,this.navigatorOptions=void 0,this.navigatorSeries=void 0,this.navigatorSize=void 0,this.opposite=void 0,this.outline=void 0,this.outlineHeight=void 0,this.range=void 0,this.rendered=void 0,this.shades=void 0,this.size=void 0,this.top=void 0,this.xAxis=void 0,this.yAxis=void 0,this.zoomedMax=void 0,this.zoomedMin=void 0,this.init(i)}return t.compose=function(i,o,e){$.compose(i,o,t,e)},t.prototype.drawHandle=function(i,o,e,s){var n=this,l=n.navigatorOptions.handles.height;n.handles[o][s](e?{translateX:Math.round(n.left+n.height/2),translateY:Math.round(n.top+parseInt(i,10)+.5-l)}:{translateX:Math.round(n.left+parseInt(i,10)),translateY:Math.round(n.top+n.height/2-l/2-1)})},t.prototype.drawOutline=function(i,o,e,s){var n,l,b=this,k=b.navigatorOptions.maskInside,D=b.outline.strokeWidth(),d=D/2,C=D%2/2,A=b.outlineHeight,N=b.scrollbarHeight||0,R=b.size,L=b.left-N,O=b.top;e?(l=[["M",(L-=d)+A,O-N-C],["L",L+A,n=O+o+C],["L",L,n],["L",L,o=O+i+C],["L",L+A,o],["L",L+A,O+R+N]],k&&l.push(["M",L+A,n-d],["L",L+A,o+d])):(l=[["M",L,O+=d],["L",i+=L+N-C,O],["L",i,O+A],["L",o+=L+N-C,O+A],["L",o,O],["L",L+R+2*N,O]],k&&l.push(["M",i-d,O],["L",o+d,O])),b.outline[s]({d:l})},t.prototype.drawMasks=function(i,o,e,s){var n,l,b,k,D=this,d=D.left,C=D.top,A=D.height;e?(b=[d,d,d],k=[C,C+i,C+o],l=[A,A,A],n=[i,o-i,D.size-o]):(b=[d,d+i,d+o],k=[C,C,C],l=[i,o-i,D.size-o],n=[A,A,A]),D.shades.forEach(function(N,R){N[s]({x:b[R],y:k[R],width:l[R],height:n[R]})})},t.prototype.renderElements=function(){var i=this,o=i.navigatorOptions,e=o.maskInside,s=i.chart,n=s.inverted,l=s.renderer,b={cursor:n?"ns-resize":"ew-resize"},k=i.navigatorGroup=l.g("navigator").attr({zIndex:8,visibility:"hidden"}).add();if([!e,e,!e].forEach(function(A,N){var R=l.rect().addClass("highcharts-navigator-mask"+(N===1?"-inside":"-outside")).add(k);s.styledMode||(R.attr({fill:A?o.maskFill:"rgba(0,0,0,0)"}),N===1&&R.css(b)),i.shades[N]=R}),i.outline=l.path().addClass("highcharts-navigator-outline").add(k),s.styledMode||i.outline.attr({"stroke-width":o.outlineWidth,stroke:o.outlineColor}),o.handles&&o.handles.enabled){var D=o.handles,d=D.height,C=D.width;[0,1].forEach(function(A){i.handles[A]=l.symbol(D.symbols[A],-C/2-1,0,C,d,D),s.inverted&&i.handles[A].attr({rotation:90,rotationOriginX:Math.floor(-C/2),rotationOriginY:(d+C)/2}),i.handles[A].attr({zIndex:7-A}).addClass("highcharts-navigator-handle highcharts-navigator-handle-"+["left","right"][A]).add(k),s.styledMode||i.handles[A].attr({fill:D.backgroundColor,stroke:D.borderColor,"stroke-width":D.lineWidth}).css(b)})}},t.prototype.update=function(i){(this.series||[]).forEach(function(e){e.baseSeries&&delete e.baseSeries.navigatorSeries}),this.destroy();var o=this.chart.options;x(!0,o.navigator,i),this.init(this.chart)},t.prototype.render=function(i,o,e,s){var n,l,b,k,D,d=this,C=d.chart,A=d.xAxis,N=A.pointRange||0,R=A.navigatorAxis.fake?C.xAxis[0]:A,L=d.navigatorEnabled,O=d.rendered,j=C.inverted,Y=C.xAxis[0].minRange,H=C.xAxis[0].options.maxRange,W=d.scrollbarHeight;if(!this.hasDragged||h(e)){if(i=y(i-N/2),o=y(o+N/2),!w(i)||!w(o)){if(!O)return;e=0,s=c(A.width,R.width)}d.left=c(A.left,C.plotLeft+W+(j?C.plotWidth:0));var q=d.size=k=c(A.len,(j?C.plotHeight:C.plotWidth)-2*W);n=j?W:k+2*W,e=c(e,A.toPixels(i,!0)),s=c(s,A.toPixels(o,!0)),w(e)&&Math.abs(e)!==1/0||(e=0,s=n);var Q=A.toValue(e,!0),J=A.toValue(s,!0),nt=Math.abs(y(J-Q));nt<Y?this.grabbedLeft?e=A.toPixels(J-Y-N,!0):this.grabbedRight&&(s=A.toPixels(Q+Y+N,!0)):h(H)&&y(nt-N)>H&&(this.grabbedLeft?e=A.toPixels(J-H-N,!0):this.grabbedRight&&(s=A.toPixels(Q+H+N,!0))),d.zoomedMax=P(Math.max(e,s),0,q),d.zoomedMin=P(d.fixedWidth?d.zoomedMax-d.fixedWidth:Math.min(e,s),0,q),d.range=d.zoomedMax-d.zoomedMin,q=Math.round(d.zoomedMax);var lt=Math.round(d.zoomedMin);L&&(d.navigatorGroup.attr({visibility:"inherit"}),D=O&&!d.hasDragged?"animate":"attr",d.drawMasks(lt,q,j,D),d.drawOutline(lt,q,j,D),d.navigatorOptions.handles.enabled&&(d.drawHandle(lt,0,j,D),d.drawHandle(q,1,j,D))),d.scrollbar&&(j?(b=d.top-W,l=d.left-W+(L||!R.opposite?0:(R.titleOffset||0)+R.axisTitleMargin),W=k+2*W):(b=d.top+(L?d.height:-W),l=d.left-W),d.scrollbar.position(l,b,n,W),d.scrollbar.setRange(d.zoomedMin/(k||1),d.zoomedMax/(k||1))),d.rendered=!0}},t.prototype.addMouseEvents=function(){var i,o,e=this,s=e.chart,n=s.container,l=[];e.mouseMoveHandler=i=function(b){e.onMouseMove(b)},e.mouseUpHandler=o=function(b){e.onMouseUp(b)},(l=e.getPartsEvents("mousedown")).push(M(s.renderTo,"mousemove",i),M(n.ownerDocument,"mouseup",o)),I&&(l.push(M(s.renderTo,"touchmove",i),M(n.ownerDocument,"touchend",o)),l.concat(e.getPartsEvents("touchstart"))),e.eventsToUnbind=l,e.series&&e.series[0]&&l.push(M(e.series[0].xAxis,"foundExtremes",function(){s.navigator.modifyNavigatorAxisExtremes()}))},t.prototype.getPartsEvents=function(i){var o=this,e=[];return["shades","handles"].forEach(function(s){o[s].forEach(function(n,l){e.push(M(n.element,i,function(b){o[s+"Mousedown"](b,l)}))})}),e},t.prototype.shadesMousedown=function(i,o){i=this.chart.pointer.normalize(i);var e,s,n,l,b=this,k=b.chart,D=b.xAxis,d=b.zoomedMin,C=b.size,A=b.range,N=b.left,R=i.chartX;k.inverted&&(R=i.chartY,N=b.top),o===1?(b.grabbedCenter=R,b.fixedWidth=A,b.dragOffset=R-d):(l=R-N-A/2,o===0?l=Math.max(0,l):o===2&&l+A>=C&&(l=C-A,b.reversedExtremes?(l-=A,s=b.getUnionExtremes().dataMin):e=b.getUnionExtremes().dataMax),l!==d&&(b.fixedWidth=A,n=D.navigatorAxis.toFixedRange(l,l+A,s,e),h(n.min)&&k.xAxis[0].setExtremes(Math.min(n.min,n.max),Math.max(n.min,n.max),!0,null,{trigger:"navigator"})))},t.prototype.handlesMousedown=function(i,o){i=this.chart.pointer.normalize(i);var e=this,s=e.chart,n=s.xAxis[0],l=e.reversedExtremes;o===0?(e.grabbedLeft=!0,e.otherHandlePos=e.zoomedMax,e.fixedExtreme=l?n.min:n.max):(e.grabbedRight=!0,e.otherHandlePos=e.zoomedMin,e.fixedExtreme=l?n.max:n.min),s.fixedRange=null},t.prototype.onMouseMove=function(i){var o,e=this,s=e.chart,n=e.navigatorSize,l=e.range,b=e.dragOffset,k=s.inverted,D=e.left;i.touches&&i.touches[0].pageX===0||(o=(i=s.pointer.normalize(i)).chartX,k&&(D=e.top,o=i.chartY),e.grabbedLeft?(e.hasDragged=!0,e.render(0,0,o-D,e.otherHandlePos)):e.grabbedRight?(e.hasDragged=!0,e.render(0,0,e.otherHandlePos,o-D)):e.grabbedCenter&&(e.hasDragged=!0,o<b?o=b:o>n+b-l&&(o=n+b-l),e.render(0,0,o-b,o-b+l)),e.hasDragged&&e.scrollbar&&c(e.scrollbar.options.liveRedraw,X.svg&&!E&&!this.chart.boosted)&&(i.DOMType=i.type,setTimeout(function(){e.onMouseUp(i)},0)))},t.prototype.onMouseUp=function(i){var o,e,s,n,l,b,k=this,D=k.chart,d=k.xAxis,C=k.scrollbar,A=i.DOMEvent||i,N=D.inverted,R=k.rendered&&!k.hasDragged?"animate":"attr";(!k.hasDragged||C&&C.hasDragged)&&i.trigger!=="scrollbar"||(s=k.getUnionExtremes(),k.zoomedMin===k.otherHandlePos?n=k.fixedExtreme:k.zoomedMax===k.otherHandlePos&&(l=k.fixedExtreme),k.zoomedMax===k.size&&(l=k.reversedExtremes?s.dataMin:s.dataMax),k.zoomedMin===0&&(n=k.reversedExtremes?s.dataMax:s.dataMin),b=d.navigatorAxis.toFixedRange(k.zoomedMin,k.zoomedMax,n,l),h(b.min)&&D.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,b.max),!0,!k.hasDragged&&null,{trigger:"navigator",triggerOp:"navigator-drag",DOMEvent:A})),i.DOMType!=="mousemove"&&i.DOMType!=="touchmove"&&(k.grabbedLeft=k.grabbedRight=k.grabbedCenter=k.fixedWidth=k.fixedExtreme=k.otherHandlePos=k.hasDragged=k.dragOffset=null),k.navigatorEnabled&&w(k.zoomedMin)&&w(k.zoomedMax)&&(e=Math.round(k.zoomedMin),o=Math.round(k.zoomedMax),k.shades&&k.drawMasks(e,o,N,R),k.outline&&k.drawOutline(e,o,N,R),k.navigatorOptions.handles.enabled&&Object.keys(k.handles).length===k.handles.length&&(k.drawHandle(e,0,N,R),k.drawHandle(o,1,N,R)))},t.prototype.removeEvents=function(){this.eventsToUnbind&&(this.eventsToUnbind.forEach(function(i){i()}),this.eventsToUnbind=void 0),this.removeBaseSeriesEvents()},t.prototype.removeBaseSeriesEvents=function(){var i=this.baseSeries||[];this.navigatorEnabled&&i[0]&&(this.navigatorOptions.adaptToUpdatedData!==!1&&i.forEach(function(o){g(o,"updatedData",this.updatedDataHandler)},this),i[0].xAxis&&g(i[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes))},t.prototype.init=function(i){var o=i.options,e=o.navigator||{},s=e.enabled,n=o.scrollbar||{},l=n.enabled,b=s&&e.height||0,k=l&&n.height||0;this.handles=[],this.shades=[],this.chart=i,this.setBaseSeries(),this.height=b,this.scrollbarHeight=k,this.scrollbarEnabled=l,this.navigatorEnabled=s,this.navigatorOptions=e,this.scrollbarOptions=n,this.outlineHeight=b+k,this.opposite=c(e.opposite,!!(!s&&i.inverted));var D=this,d=D.baseSeries,C=i.xAxis.length,A=i.yAxis.length,N=d&&d[0]&&d[0].xAxis||i.xAxis[0]||{options:{}};i.isDirtyBox=!0,D.navigatorEnabled?(D.xAxis=new G(i,x({breaks:N.options.breaks,ordinal:N.options.ordinal},e.xAxis,{id:"navigator-x-axis",yAxis:"navigator-y-axis",isX:!0,type:"datetime",index:C,isInternal:!0,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},i.inverted?{offsets:[k,0,-k,0],width:b}:{offsets:[0,-k,0,k],height:b})),D.yAxis=new G(i,x(e.yAxis,{id:"navigator-y-axis",alignTicks:!1,offset:0,index:A,isInternal:!0,reversed:c(e.yAxis&&e.yAxis.reversed,i.yAxis[0]&&i.yAxis[0].reversed,!1),zoomEnabled:!1},i.inverted?{width:b}:{height:b})),d||e.series.data?D.updateNavigatorSeries(!1):i.series.length===0&&(D.unbindRedraw=M(i,"beforeRedraw",function(){i.series.length>0&&!D.series&&(D.setBaseSeries(),D.unbindRedraw())})),D.reversedExtremes=i.inverted&&!D.xAxis.reversed||!i.inverted&&D.xAxis.reversed,D.renderElements(),D.addMouseEvents()):(D.xAxis={chart:i,navigatorAxis:{fake:!0},translate:function(R,L){var O=i.xAxis[0],j=O.getExtremes(),Y=O.len-2*k,H=a("min",O.options.min,j.dataMin),W=a("max",O.options.max,j.dataMax)-H;return L?R*W/Y+H:Y*(R-H)/W},toPixels:function(R){return this.translate(R)},toValue:function(R){return this.translate(R,!0)}},D.xAxis.navigatorAxis.axis=D.xAxis,D.xAxis.navigatorAxis.toFixedRange=U.prototype.toFixedRange.bind(D.xAxis.navigatorAxis)),i.options.scrollbar.enabled&&(i.scrollbar=D.scrollbar=new Z(i.renderer,x(i.options.scrollbar,{margin:D.navigatorEnabled?0:10,vertical:i.inverted}),i),M(D.scrollbar,"changed",function(R){var L=D.size,O=L*this.to,j=L*this.from;D.hasDragged=D.scrollbar.hasDragged,D.render(0,0,j,O),this.shouldUpdateExtremes(R.DOMType)&&setTimeout(function(){D.onMouseUp(R)})})),D.addBaseSeriesEvents(),D.addChartEvents()},t.prototype.getUnionExtremes=function(i){var o,e=this.chart.xAxis[0],s=this.xAxis,n=s.options,l=e.options;return i&&e.dataMin===null||(o={dataMin:c(n&&n.min,a("min",l.min,e.dataMin,s.dataMin,s.min)),dataMax:c(n&&n.max,a("max",l.max,e.dataMax,s.dataMax,s.max))}),o},t.prototype.setBaseSeries=function(i,o){var e=this.chart,s=this.baseSeries=[];i=i||e.options&&e.options.navigator.baseSeries||(e.series.length?v(e.series,function(n){return!n.options.isInternal}).index:0),(e.series||[]).forEach(function(n,l){n.options.isInternal||!n.options.showInNavigator&&(l!==i&&n.options.id!==i||n.options.showInNavigator===!1)||s.push(n)}),this.xAxis&&!this.xAxis.navigatorAxis.fake&&this.updateNavigatorSeries(!0,o)},t.prototype.updateNavigatorSeries=function(i,o){var e,s,n,l=this,b=l.chart,k=l.baseSeries,D={enableMouseTracking:!1,index:null,linkedTo:null,group:"nav",padXAxis:!1,xAxis:"navigator-x-axis",yAxis:"navigator-y-axis",showInLegend:!1,stacking:void 0,isInternal:!0,states:{inactive:{opacity:1}}},d=l.series=(l.series||[]).filter(function(A){var N=A.baseSeries;return!(k.indexOf(N)<0&&(N&&(g(N,"updatedData",l.updatedDataHandler),delete N.navigatorSeries),A.chart&&A.destroy(),1))}),C=l.navigatorOptions.series;k&&k.length&&k.forEach(function(A){var N=A.navigatorSeries,R=u({color:A.color,visible:A.visible},S(C)?z.navigator.series:C);if(!N||l.navigatorOptions.adaptToUpdatedData!==!1){D.name="Navigator "+k.length,e=A.options||{},n=e.navigatorOptions||{},R.dataLabels=r(R.dataLabels),(s=x(e,D,R,n)).pointRange=c(R.pointRange,n.pointRange,z.plotOptions[s.type||"line"].pointRange);var L=n.data||R.data;l.hasNavigatorData=l.hasNavigatorData||!!L,s.data=L||e.data&&e.data.slice(0),N&&N.options?N.update(s,o):(A.navigatorSeries=b.initSeries(s),A.navigatorSeries.baseSeries=A,d.push(A.navigatorSeries))}}),(!C.data||k&&k.length)&&!S(C)||(l.hasNavigatorData=!1,(C=r(C)).forEach(function(A,N){D.name="Navigator "+(d.length+1),(s=x(z.navigator.series,{color:b.series[N]&&!b.series[N].options.isInternal&&b.series[N].color||b.options.colors[N]||b.options.colors[0]},D,A)).data=A.data,s.data&&(l.hasNavigatorData=!0,d.push(b.initSeries(s)))})),i&&this.addBaseSeriesEvents()},t.prototype.addBaseSeriesEvents=function(){var i=this,o=this,e=o.baseSeries||[];e[0]&&e[0].xAxis&&e[0].eventsToUnbind.push(M(e[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes)),e.forEach(function(s){s.eventsToUnbind.push(M(s,"show",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)})),s.eventsToUnbind.push(M(s,"hide",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)})),i.navigatorOptions.adaptToUpdatedData!==!1&&s.xAxis&&s.eventsToUnbind.push(M(s,"updatedData",i.updatedDataHandler)),s.eventsToUnbind.push(M(s,"remove",function(){this.navigatorSeries&&(m(o.series,this.navigatorSeries),h(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)}))})},t.prototype.getBaseSeriesMin=function(i){return this.baseSeries.reduce(function(o,e){return Math.min(o,e.xData&&e.xData.length?e.xData[0]:o)},i)},t.prototype.modifyNavigatorAxisExtremes=function(){var i=this.xAxis;if(i.getExtremes!==void 0){var o=this.getUnionExtremes(!0);!o||o.dataMin===i.min&&o.dataMax===i.max||(i.min=o.dataMin,i.max=o.dataMax)}},t.prototype.modifyBaseAxisExtremes=function(){var i,o,e=this,s=e.chart.navigator,n=e.getExtremes(),l=n.min,b=n.max,k=n.dataMin,D=n.dataMax,d=b-l,C=s.stickToMin,A=s.stickToMax,N=c(e.options.overscroll,0),R=s.series&&s.series[0],L=!!e.setExtremes;e.eventArgs&&e.eventArgs.trigger==="rangeSelectorButton"||(C&&(i=(o=k)+d),A&&(i=D+N,C||(o=Math.max(k,i-d,s.getBaseSeriesMin(R&&R.xData?R.xData[0]:-Number.MAX_VALUE)))),L&&(C||A)&&w(o)&&(e.min=e.userMin=o,e.max=e.userMax=i)),s.stickToMin=s.stickToMax=null},t.prototype.updatedDataHandler=function(){var i=this.chart.navigator,o=this,e=this.navigatorSeries,s=i.reversedExtremes?Math.round(i.zoomedMin)===0:Math.round(i.zoomedMax)>=Math.round(i.size);i.stickToMax=c(this.chart.options.navigator&&this.chart.options.navigator.stickToMax,s),i.stickToMin=i.shouldStickToMin(o,i),e&&!i.hasNavigatorData&&(e.options.pointStart=o.xData[0],e.setData(o.options.data,!1,null,!1))},t.prototype.shouldStickToMin=function(i,o){var e=o.getBaseSeriesMin(i.xData[0]),s=i.xAxis,n=s.max,l=s.min,b=s.options.range;return!(!w(n)||!w(l))&&(b&&n-e>0?n-e<b:l<=e)},t.prototype.addChartEvents=function(){this.eventsToUnbind||(this.eventsToUnbind=[]),this.eventsToUnbind.push(M(this.chart,"redraw",function(){var i=this.navigator,o=i&&(i.baseSeries&&i.baseSeries[0]&&i.baseSeries[0].xAxis||this.xAxis[0]);o&&i.render(o.min,o.max)}),M(this.chart,"getMargins",function(){var i=this,o=i.navigator,e=o.opposite?"plotTop":"marginBottom";i.inverted&&(e=o.opposite?"marginRight":"plotLeft"),i[e]=(i[e]||0)+(o.navigatorEnabled||!i.inverted?o.outlineHeight:0)+o.navigatorOptions.margin}))},t.prototype.destroy=function(){var i=this;this.removeEvents(),this.xAxis&&(m(this.chart.xAxis,this.xAxis),m(this.chart.axes,this.xAxis)),this.yAxis&&(m(this.chart.yAxis,this.yAxis),m(this.chart.axes,this.yAxis)),(this.series||[]).forEach(function(o){o.destroy&&o.destroy()}),["series","xAxis","yAxis","shades","outline","scrollbarTrack","scrollbarRifles","scrollbarGroup","scrollbar","navigatorGroup","rendered"].forEach(function(o){i[o]&&i[o].destroy&&i[o].destroy(),i[o]=null}),[this.handles].forEach(function(o){f(o)})},t}()}),et(_,"Stock/RangeSelector/RangeSelectorDefaults.js",[],function(){return{lang:{rangeSelectorZoom:"Zoom",rangeSelectorFrom:"",rangeSelectorTo:"→"},rangeSelector:{allButtonsEnabled:!1,buttons:void 0,buttonSpacing:5,dropdown:"responsive",enabled:void 0,verticalAlign:"top",buttonTheme:{width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,inputBoxBorderColor:"none",inputBoxHeight:17,inputBoxWidth:void 0,inputDateFormat:"%b %e, %Y",inputDateParser:void 0,inputEditDateFormat:"%Y-%m-%d",inputEnabled:!0,inputPosition:{align:"right",x:0,y:0},inputSpacing:5,selected:void 0,buttonPosition:{align:"left",x:0,y:0},inputStyle:{color:"#335cad",cursor:"pointer"},labelStyle:{color:"#666666"}}}}),et(_,"Stock/RangeSelector/RangeSelectorComposition.js",[_["Core/Defaults.js"],_["Stock/RangeSelector/RangeSelectorDefaults.js"],_["Core/Utilities.js"]],function(G,B,X){var U,$=G.defaultOptions,Z=G.setOptions,V=X.addEvent,z=X.defined,I=X.extend,E=X.find,M=X.isNumber,P=X.merge,y=X.pick,h=[],f=[];function m(){var r,a,t=this.range,i=t.type,o=this.max,e=this.chart.time,s=function(l,b){var k=i==="year"?"FullYear":"Month",D=new e.Date(l),d=e.get(k,D);return e.set(k,D,d+b),d===e.get(k,D)&&e.set("Date",D,0),D.getTime()-l};M(t)?(r=o-t,a=t):t&&(r=o+s(o,-(t.count||1)),this.chart&&(this.chart.fixedRange=o-r));var n=y(this.dataMin,Number.MIN_VALUE);return M(r)||(r=n),r<=n&&(r=n,a===void 0&&(a=s(r,t.count)),this.newMax=Math.min(r+a,y(this.dataMax,Number.MAX_VALUE))),M(o)?!M(t)&&t&&t._offsetMin&&(r+=t._offsetMin):r=void 0,r}function u(){this.options.rangeSelector&&this.options.rangeSelector.enabled&&(this.rangeSelector=new U(this))}function v(){var r=this,a=r.axes,t=r.rangeSelector;if(t){M(t.deferredYTDClick)&&(t.clickButton(t.deferredYTDClick),delete t.deferredYTDClick),a.forEach(function(o){o.updateNames(),o.setScale()}),r.getAxisMargins(),t.render();var i=t.options.verticalAlign;t.options.floating||(i==="bottom"?this.extraBottomMargin=!0:i!=="middle"&&(this.extraTopMargin=!0))}}function S(r){var a,t,i,o,e=r.rangeSelector,s=function(){e&&(a=r.xAxis[0].getExtremes(),t=r.legend,o=e&&e.options.verticalAlign,M(a.min)&&e.render(a.min,a.max),t.display&&o==="top"&&o===t.options.verticalAlign&&(i=P(r.spacingBox),t.options.layout==="vertical"?i.y=r.plotTop:i.y+=e.getHeight(),t.group.placed=!1,t.align(i)))};e&&(E(h,function(n){return n[0]===r})||h.push([r,[V(r.xAxis[0],"afterSetExtremes",function(n){e&&e.render(n.min,n.max)}),V(r,"redraw",s)]]),s())}function w(){for(var r=0,a=h.length;r<a;++r){var t=h[r];if(t[0]===this)return t[1].forEach(function(i){return i()}),void h.splice(r,1)}}function x(){var r=this.rangeSelector;if(r){var a=r.getHeight();this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a)}}function c(){var r=this.rangeSelector;if(r&&!r.options.floating){r.render();var a=r.options.verticalAlign;a==="bottom"?this.extraBottomMargin=!0:a!=="middle"&&(this.extraTopMargin=!0)}}function g(r){var a=r.options.rangeSelector,t=this.extraBottomMargin,i=this.extraTopMargin,o=this.rangeSelector;if(a&&a.enabled&&!z(o)&&this.options.rangeSelector&&(this.options.rangeSelector.enabled=!0,this.rangeSelector=o=new U(this)),this.extraBottomMargin=!1,this.extraTopMargin=!1,o){S(this);var e=a&&a.verticalAlign||o.options&&o.options.verticalAlign;o.options.floating||(e==="bottom"?this.extraBottomMargin=!0:e!=="middle"&&(this.extraTopMargin=!0)),this.extraBottomMargin===t&&this.extraTopMargin===i||(this.isDirtyBox=!0)}}return{compose:function(r,a,t){U=t,f.indexOf(r)===-1&&(f.push(r),r.prototype.minFromRange=m),f.indexOf(a)===-1&&(f.push(a),V(a,"afterGetContainer",u),V(a,"beforeRender",v),V(a,"destroy",w),V(a,"getMargins",x),V(a,"render",c),V(a,"update",g),a.prototype.callbacks.push(S)),f.indexOf(Z)===-1&&(I($,{rangeSelector:B.rangeSelector}),I($.lang,B.lang))}}}),et(_,"Stock/RangeSelector/RangeSelector.js",[_["Core/Axis/Axis.js"],_["Core/Defaults.js"],_["Core/Globals.js"],_["Stock/RangeSelector/RangeSelectorComposition.js"],_["Core/Renderer/SVG/SVGElement.js"],_["Core/Utilities.js"]],function(G,B,X,U,$,Z){var V=B.defaultOptions,z=Z.addEvent,I=Z.createElement,E=Z.css,M=Z.defined,P=Z.destroyObjectProperties,y=Z.discardElement,h=Z.extend,f=Z.fireEvent,m=Z.isNumber,u=Z.merge,v=Z.objectEach,S=Z.pad,w=Z.pick,x=Z.pInt,c=Z.splat,g=function(){function r(a){this.buttons=void 0,this.buttonOptions=r.prototype.defaultButtons,this.initialButtonGroupWidth=0,this.options=void 0,this.chart=a,this.init(a)}return r.compose=function(a,t){U.compose(a,t,r)},r.prototype.clickButton=function(a,t){var i,o,e,s,n,l,b,k=this,D=k.chart,d=k.buttonOptions[a],C=D.xAxis[0],A=D.scroller&&D.scroller.getUnionExtremes()||C||{},N=d.type,R=d.dataGrouping,L=A.dataMin,O=A.dataMax,j=C&&Math.round(Math.min(C.max,w(O,C.max))),Y=d._range,H=!0;if(L!==null&&O!==null){if(D.fixedRange=Y,k.setSelected(a),R&&(this.forcedDataGrouping=!0,G.prototype.setDataGrouping.call(C||{chart:this.chart},R,!1),this.frozenStates=d.preserveDataGrouping),N==="month"||N==="year")C?(l={range:d,max:j,chart:D,dataMin:L,dataMax:O},i=C.minFromRange.call(l),m(l.newMax)&&(j=l.newMax),H=!1):Y=d;else if(Y)i=Math.max(j-Y,L),j=Math.min(i+Y,O),H=!1;else if(N==="ytd"){if(!C)return void(k.deferredYTDClick=a);O!==void 0&&L!==void 0||(L=Number.MAX_VALUE,O=Number.MIN_VALUE,D.series.forEach(function(W){var q=W.xData;q&&(L=Math.min(q[0],L),O=Math.max(q[q.length-1],O))}),t=!1),i=e=(b=k.getYTDExtremes(O,L,D.time.useUTC)).min,j=b.max}else N==="all"&&C&&(D.navigator&&D.navigator.baseSeries[0]&&(D.navigator.baseSeries[0].xAxis.options.range=void 0),i=L,j=O);H&&d._offsetMin&&M(i)&&(i+=d._offsetMin),d._offsetMax&&M(j)&&(j+=d._offsetMax),this.dropdown&&(this.dropdown.selectedIndex=a+1),C?C.setExtremes(i,j,w(t,!0),void 0,{trigger:"rangeSelectorButton",rangeSelectorButton:d}):(o=c(D.options.xAxis)[0],n=o.range,o.range=Y,s=o.min,o.min=e,z(D,"load",function(){o.range=n,o.min=s})),f(this,"afterBtnClick")}},r.prototype.setSelected=function(a){this.selected=this.options.selected=a},r.prototype.init=function(a){var t=this,i=a.options.rangeSelector,o=i.buttons||t.defaultButtons.slice(),e=i.selected,s=function(){var n=t.minInput,l=t.maxInput;n&&n.blur&&f(n,"blur"),l&&l.blur&&f(l,"blur")};t.chart=a,t.options=i,t.buttons=[],t.buttonOptions=o,this.eventsToUnbind=[],this.eventsToUnbind.push(z(a.container,"mousedown",s)),this.eventsToUnbind.push(z(a,"resize",s)),o.forEach(t.computeButtonRange),e!==void 0&&o[e]&&this.clickButton(e,!1),this.eventsToUnbind.push(z(a,"load",function(){a.xAxis&&a.xAxis[0]&&z(a.xAxis[0],"setExtremes",function(n){this.max-this.min!==a.fixedRange&&n.trigger!=="rangeSelectorButton"&&n.trigger!=="updatedData"&&t.forcedDataGrouping&&!t.frozenStates&&this.setDataGrouping(!1,!1)})}))},r.prototype.updateButtonStates=function(){var a=this,t=this.chart,i=this.dropdown,o=t.xAxis[0],e=Math.round(o.max-o.min),s=!o.hasVisibleSeries,n=864e5,l=t.scroller&&t.scroller.getUnionExtremes()||o,b=l.dataMin,k=l.dataMax,D=a.getYTDExtremes(k,b,t.time.useUTC),d=D.min,C=D.max,A=a.selected,N=a.options.allButtonsEnabled,R=a.buttons,L=m(A);a.buttonOptions.forEach(function(O,j){var Y=O._range,H=O.type,W=O.count||1,q=R[j],Q=O._offsetMax-O._offsetMin,J=j===A,nt=Y>k-b,lt=Y<o.minRange,gt=0,mt=!1,bt=!1,yt=Y===e;(H==="month"||H==="year")&&e+36e5>={month:28,year:365}[H]*n*W-Q&&e-36e5<={month:31,year:366}[H]*n*W+Q?yt=!0:H==="ytd"?(yt=C-d+Q===e,mt=!J):H==="all"&&(yt=o.max-o.min>=k-b,bt=!J&&L&&yt);var dt=!N&&(nt||lt||bt||s),ot=J&&yt||yt&&!L&&!mt||J&&a.frozenStates;dt?gt=3:ot&&(L=!0,gt=2),q.state!==gt&&(q.setState(gt),i&&(i.options[j+1].disabled=dt,gt===2&&(i.selectedIndex=j+1)),gt===0&&A===j&&a.setSelected())})},r.prototype.computeButtonRange=function(a){var t=a.type,i=a.count||1,o={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5};o[t]?a._range=o[t]*i:t!=="month"&&t!=="year"||(a._range=24*{month:30,year:365}[t]*36e5*i),a._offsetMin=w(a.offsetMin,0),a._offsetMax=w(a.offsetMax,0),a._range+=a._offsetMax-a._offsetMin},r.prototype.getInputValue=function(a){var t=a==="min"?this.minInput:this.maxInput,i=this.chart.options.rangeSelector,o=this.chart.time;return t?(t.type==="text"&&i.inputDateParser||this.defaultInputDateParser)(t.value,o.useUTC,o):0},r.prototype.setInputValue=function(a,t){var i=this.options,o=this.chart.time,e=a==="min"?this.minInput:this.maxInput,s=a==="min"?this.minDateBox:this.maxDateBox;if(e){var n=e.getAttribute("data-hc-time"),l=M(n)?Number(n):void 0;if(M(t)){var b=l;M(b)&&e.setAttribute("data-hc-time-previous",b),e.setAttribute("data-hc-time",t),l=t}e.value=o.dateFormat(this.inputTypeFormats[e.type]||i.inputEditDateFormat,l),s&&s.attr({text:o.dateFormat(i.inputDateFormat,l)})}},r.prototype.setInputExtremes=function(a,t,i){var o=a==="min"?this.minInput:this.maxInput;if(o){var e=this.inputTypeFormats[o.type],s=this.chart.time;if(e){var n=s.dateFormat(e,t);o.min!==n&&(o.min=n);var l=s.dateFormat(e,i);o.max!==l&&(o.max=l)}}},r.prototype.showInput=function(a){var t=a==="min"?this.minDateBox:this.maxDateBox,i=a==="min"?this.minInput:this.maxInput;if(i&&t&&this.inputGroup){var o=i.type==="text",e=this.inputGroup,s=e.translateX,n=e.translateY,l=this.options.inputBoxWidth;E(i,{width:o?t.width+(l?-2:20)+"px":"auto",height:o?t.height-2+"px":"auto",border:"2px solid silver"}),E(i,o&&l?{left:s+t.x+"px",top:n+"px"}:{left:Math.min(Math.round(t.x+s-(i.offsetWidth-t.width)/2),this.chart.chartWidth-i.offsetWidth)+"px",top:n-(i.offsetHeight-t.height)/2+"px"})}},r.prototype.hideInput=function(a){var t=a==="min"?this.minInput:this.maxInput;t&&E(t,{top:"-9999em",border:0,width:"1px",height:"1px"})},r.prototype.defaultInputDateParser=function(a,t,i){var o,e=a.split("/").join("-").split(" ").join("T");if(e.indexOf("T")===-1&&(e+="T00:00"),t)e+="Z";else if(X.isSafari&&(!((o=e).length>6)||o.lastIndexOf("-")!==o.length-6&&o.lastIndexOf("+")!==o.length-6)){var s=new Date(e).getTimezoneOffset()/60;e+=s<=0?"+".concat(S(-s),":00"):"-".concat(S(s),":00")}var n=Date.parse(e);if(!m(n)){var l=a.split("-");n=Date.UTC(x(l[0]),x(l[1])-1,x(l[2]))}return i&&t&&m(n)&&(n+=i.getTimezoneOffset(n)),n},r.prototype.drawInput=function(a){var t=this,i=t.chart,o=t.div,e=t.inputGroup,s=this,n=i.renderer.style||{},l=i.renderer,b=i.options.rangeSelector,k=V.lang,D=a==="min";function d(){var O=s.maxInput,j=s.minInput,Y=i.xAxis[0],H=i.scroller&&i.scroller.xAxis?i.scroller.xAxis:Y,W=H.dataMin,q=H.dataMax,Q=s.getInputValue(a);Q!==Number(R.getAttribute("data-hc-time-previous"))&&m(Q)&&(R.setAttribute("data-hc-time-previous",Q),D&&O&&m(W)?Q>Number(O.getAttribute("data-hc-time"))?Q=void 0:Q<W&&(Q=W):j&&m(q)&&(Q<Number(j.getAttribute("data-hc-time"))?Q=void 0:Q>q&&(Q=q)),Q!==void 0&&Y.setExtremes(D?Q:Y.min,D?Y.max:Q,void 0,void 0,{trigger:"rangeSelectorInput"}))}var C=k[D?"rangeSelectorFrom":"rangeSelectorTo"]||"",A=l.label(C,0).addClass("highcharts-range-label").attr({padding:C?2:0,height:C?b.inputBoxHeight:0}).add(e),N=l.label("",0).addClass("highcharts-range-input").attr({padding:2,width:b.inputBoxWidth,height:b.inputBoxHeight,"text-align":"center"}).on("click",function(){s.showInput(a),s[a+"Input"].focus()});i.styledMode||N.attr({stroke:b.inputBoxBorderColor,"stroke-width":1}),N.add(e);var R=I("input",{name:a,className:"highcharts-range-selector"},void 0,o);R.setAttribute("type",function(O){if(O.indexOf("%L")!==-1)return"text";var j=["a","A","d","e","w","b","B","m","o","y","Y"].some(function(H){return O.indexOf("%"+H)!==-1}),Y=["H","k","I","l","M","S"].some(function(H){return O.indexOf("%"+H)!==-1});return j&&Y?"datetime-local":j?"date":Y?"time":"text"}(b.inputDateFormat||"%b %e, %Y")),i.styledMode||(A.css(u(n,b.labelStyle)),N.css(u({color:"#333333"},n,b.inputStyle)),E(R,h({position:"absolute",border:0,boxShadow:"0 0 15px rgba(0,0,0,0.3)",width:"1px",height:"1px",padding:0,textAlign:"center",fontSize:n.fontSize,fontFamily:n.fontFamily,top:"-9999em"},b.inputStyle))),R.onfocus=function(){s.showInput(a)},R.onblur=function(){R===X.doc.activeElement&&d(),s.hideInput(a),s.setInputValue(a),R.blur()};var L=!1;return R.onchange=function(){L||(d(),s.hideInput(a),R.blur())},R.onkeypress=function(O){O.keyCode===13&&d()},R.onkeydown=function(O){L=!0,O.keyCode!==38&&O.keyCode!==40||d()},R.onkeyup=function(){L=!1},{dateBox:N,input:R,label:A}},r.prototype.getPosition=function(){var a=this.chart,t=a.options.rangeSelector,i=t.verticalAlign==="top"?a.plotTop-a.axisOffset[0]:0;return{buttonTop:i+t.buttonPosition.y,inputTop:i+t.inputPosition.y-10}},r.prototype.getYTDExtremes=function(a,t,i){var o=this.chart.time,e=new o.Date(a),s=o.get("FullYear",e),n=i?o.Date.UTC(s,0,1):+new o.Date(s,0,1),l=Math.max(t,n),b=e.getTime();return{max:Math.min(a||b,b),min:l}},r.prototype.render=function(a,t){var i=this.chart,o=i.renderer,e=i.container,s=i.options,n=s.rangeSelector,l=w(s.chart.style&&s.chart.style.zIndex,0)+1,b=n.inputEnabled,k=this.rendered;if(n.enabled!==!1){if(!k&&(this.group=o.g("range-selector-group").attr({zIndex:7}).add(),this.div=I("div",void 0,{position:"relative",height:0,zIndex:l}),this.buttonOptions.length&&this.renderButtons(),e.parentNode&&e.parentNode.insertBefore(this.div,e),b)){this.inputGroup=o.g("input-group").add(this.group);var D=this.drawInput("min");this.minDateBox=D.dateBox,this.minLabel=D.label,this.minInput=D.input;var d=this.drawInput("max");this.maxDateBox=d.dateBox,this.maxLabel=d.label,this.maxInput=d.input}if(b){this.setInputValue("min",a),this.setInputValue("max",t);var C=i.scroller&&i.scroller.getUnionExtremes()||i.xAxis[0]||{};if(M(C.dataMin)&&M(C.dataMax)){var A=i.xAxis[0].minRange||0;this.setInputExtremes("min",C.dataMin,Math.min(C.dataMax,this.getInputValue("max"))-A),this.setInputExtremes("max",Math.max(C.dataMin,this.getInputValue("min"))+A,C.dataMax)}if(this.inputGroup){var N=0;[this.minLabel,this.minDateBox,this.maxLabel,this.maxDateBox].forEach(function(R){if(R){var L=R.getBBox().width;L&&(R.attr({x:N}),N+=L+n.inputSpacing)}})}}this.alignElements(),this.rendered=!0}},r.prototype.renderButtons=function(){var a=this,t=this,i=t.buttons,o=t.chart,e=t.options,s=V.lang,n=o.renderer,l=u(e.buttonTheme),b=l&&l.states,k=l.width||28;delete l.width,delete l.states,this.buttonGroup=n.g("range-selector-buttons").add(this.group);var D=this.dropdown=I("select",void 0,{position:"absolute",width:"1px",height:"1px",padding:0,border:0,top:"-9999em",cursor:"pointer",opacity:1e-4},this.div);z(D,"touchstart",function(){D.style.fontSize="16px"}),[[X.isMS?"mouseover":"mouseenter"],[X.isMS?"mouseout":"mouseleave"],["change","click"]].forEach(function(d){var C=d[0],A=d[1];z(D,C,function(){var N=i[a.currentButtonIndex()];N&&f(N.element,A||C)})}),this.zoomText=n.label(s&&s.rangeSelectorZoom||"",0).attr({padding:e.buttonTheme.padding,height:e.buttonTheme.height,paddingLeft:0,paddingRight:0}).add(this.buttonGroup),this.chart.styledMode||(this.zoomText.css(e.labelStyle),l["stroke-width"]=w(l["stroke-width"],0)),I("option",{textContent:this.zoomText.textStr,disabled:!0},void 0,D),this.buttonOptions.forEach(function(d,C){I("option",{textContent:d.title||d.text},void 0,D),i[C]=n.button(d.text,0,0,function(A){var N,R=d.events&&d.events.click;R&&(N=R.call(d,A)),N!==!1&&a.clickButton(C),a.isActive=!0},l,b&&b.hover,b&&b.select,b&&b.disabled).attr({"text-align":"center",width:k}).add(a.buttonGroup),d.title&&i[C].attr("title",d.title)})},r.prototype.alignElements=function(){var a=this,t=this,i=t.buttonGroup,o=t.buttons,e=t.chart,s=t.group,n=t.inputGroup,l=t.options,b=t.zoomText,k=e.options,D=k.exporting&&k.exporting.enabled!==!1&&k.navigation&&k.navigation.buttonOptions,d=l.buttonPosition,C=l.inputPosition,A=l.verticalAlign,N=function(mt,bt){return D&&a.titleCollision(e)&&A==="top"&&bt.align==="right"&&bt.y-mt.getBBox().height-12<(D.y||0)+(D.height||0)+e.spacing[0]?-40:0},R=e.plotLeft;if(s&&d&&C){var L=d.x-e.spacing[3];if(i){if(this.positionButtons(),!this.initialButtonGroupWidth){var O=0;b&&(O+=b.getBBox().width+5),o.forEach(function(mt,bt){O+=mt.width,bt!==o.length-1&&(O+=l.buttonSpacing)}),this.initialButtonGroupWidth=O}R-=e.spacing[3],this.updateButtonStates();var j=N(i,d);this.alignButtonGroup(j),s.placed=i.placed=e.hasLoaded}var Y=0;n&&(Y=N(n,C),C.align==="left"?L=R:C.align==="right"&&(L=-Math.max(e.axisOffset[1],-Y)),n.align({y:C.y,width:n.getBBox().width,align:C.align,x:C.x+L-2},!0,e.spacingBox),n.placed=e.hasLoaded),this.handleCollision(Y),s.align({verticalAlign:A},!0,e.spacingBox);var H=s.alignAttr.translateY,W=s.getBBox().height+20,q=0;if(A==="bottom"){var Q=e.legend&&e.legend.options;q=H-(W=W+(Q&&Q.verticalAlign==="bottom"&&Q.enabled&&!Q.floating?e.legend.legendHeight+w(Q.margin,10):0)-20)-(l.floating?0:l.y)-(e.titleOffset?e.titleOffset[2]:0)-10}A==="top"?(l.floating&&(q=0),e.titleOffset&&e.titleOffset[0]&&(q=e.titleOffset[0]),q+=e.margin[0]-e.spacing[0]||0):A==="middle"&&(C.y===d.y?q=H:(C.y||d.y)&&(C.y<0||d.y<0?q-=Math.min(C.y,d.y):q=H-W)),s.translate(l.x,l.y+Math.floor(q));var J=this,nt=J.minInput,lt=J.maxInput,gt=J.dropdown;l.inputEnabled&&nt&<&&(nt.style.marginTop=s.translateY+"px",lt.style.marginTop=s.translateY+"px"),gt&&(gt.style.marginTop=s.translateY+"px")}},r.prototype.alignButtonGroup=function(a,t){var i=this,o=i.chart,e=i.options,s=i.buttonGroup,n=e.buttonPosition,l=o.plotLeft-o.spacing[3],b=n.x-o.spacing[3];n.align==="right"?b+=a-l:n.align==="center"&&(b-=l/2),s&&s.align({y:n.y,width:w(t,this.initialButtonGroupWidth),align:n.align,x:b},!0,o.spacingBox)},r.prototype.positionButtons=function(){var a=this,t=a.buttons,i=a.chart,o=a.options,e=a.zoomText,s=i.hasLoaded?"animate":"attr",n=o.buttonPosition,l=i.plotLeft,b=l;e&&e.visibility!=="hidden"&&(e[s]({x:w(l+n.x,l)}),b+=n.x+e.getBBox().width+5);for(var k=0,D=this.buttonOptions.length;k<D;++k)t[k].visibility!=="hidden"?(t[k][s]({x:b}),b+=t[k].width+o.buttonSpacing):t[k][s]({x:l})},r.prototype.handleCollision=function(a){var t=this,i=this,o=i.chart,e=i.buttonGroup,s=i.inputGroup,n=this.options,l=n.buttonPosition,b=n.dropdown,k=n.inputPosition,D=function(){var A=0;return t.buttons.forEach(function(N){var R=N.getBBox();R.width>A&&(A=R.width)}),A},d=function(A){if(s&&e){var N=s.alignAttr.translateX+s.alignOptions.x-a+s.getBBox().x+2,R=s.alignOptions.width,L=e.alignAttr.translateX+e.getBBox().x;return L+A>N&&N+R>L&&l.y<k.y+s.getBBox().height}return!1},C=function(){s&&e&&s.attr({translateX:s.alignAttr.translateX+(o.axisOffset[1]>=-a?0:-a),translateY:s.alignAttr.translateY+e.getBBox().height+10})};if(e){if(b==="always")return this.collapseButtons(a),void(d(D())&&C());b==="never"&&this.expandButtons()}s&&e?k.align===l.align||d(this.initialButtonGroupWidth+20)?b==="responsive"?(this.collapseButtons(a),d(D())&&C()):C():b==="responsive"&&this.expandButtons():e&&b==="responsive"&&(this.initialButtonGroupWidth>o.plotWidth?this.collapseButtons(a):this.expandButtons())},r.prototype.collapseButtons=function(a){var t=this,i=t.buttons,o=t.buttonOptions,e=t.chart,s=t.dropdown,n=t.options,l=t.zoomText,b=e.userOptions.rangeSelector&&e.userOptions.rangeSelector.buttonTheme||{},k=function(C){return{text:C?C+" ▾":"▾",width:"auto",paddingLeft:w(n.buttonTheme.paddingLeft,b.padding,8),paddingRight:w(n.buttonTheme.paddingRight,b.padding,8)}};l&&l.hide();var D=!1;o.forEach(function(C,A){var N=i[A];N.state!==2?N.hide():(N.show(),N.attr(k(C.text)),D=!0)}),D||(s&&(s.selectedIndex=0),i[0].show(),i[0].attr(k(this.zoomText&&this.zoomText.textStr)));var d=n.buttonPosition.align;this.positionButtons(),d!=="right"&&d!=="center"||this.alignButtonGroup(a,i[this.currentButtonIndex()].getBBox().width),this.showDropdown()},r.prototype.expandButtons=function(){var a=this,t=a.buttons,i=a.buttonOptions,o=a.options,e=a.zoomText;this.hideDropdown(),e&&e.show(),i.forEach(function(s,n){var l=t[n];l.show(),l.attr({text:s.text,width:o.buttonTheme.width||28,paddingLeft:w(o.buttonTheme.paddingLeft,"unset"),paddingRight:w(o.buttonTheme.paddingRight,"unset")}),l.state<2&&l.setState(0)}),this.positionButtons()},r.prototype.currentButtonIndex=function(){var a=this.dropdown;return a&&a.selectedIndex>0?a.selectedIndex-1:0},r.prototype.showDropdown=function(){var a=this,t=a.buttonGroup,i=a.buttons,o=a.chart,e=a.dropdown;if(t&&e){var s=t.translateX,n=t.translateY,l=i[this.currentButtonIndex()].getBBox();E(e,{left:o.plotLeft+s+"px",top:n+.5+"px",width:l.width+"px",height:l.height+"px"}),this.hasVisibleDropdown=!0}},r.prototype.hideDropdown=function(){var a=this.dropdown;a&&(E(a,{top:"-9999em",width:"1px",height:"1px"}),this.hasVisibleDropdown=!1)},r.prototype.getHeight=function(){var a=this.options,t=this.group,i=a.inputPosition,o=a.buttonPosition,e=a.y,s=o.y,n=i.y,l=0;if(a.height)return a.height;this.alignElements(),l=t?t.getBBox(!0).height+13+e:0;var b=Math.min(n,s);return(n<0&&s<0||n>0&&s>0)&&(l+=Math.abs(b)),l},r.prototype.titleCollision=function(a){return!(a.options.title.text||a.options.subtitle.text)},r.prototype.update=function(a){var t=this.chart;u(!0,t.options.rangeSelector,a),this.destroy(),this.init(t),this.render()},r.prototype.destroy=function(){var a=this,t=a.minInput,i=a.maxInput;a.eventsToUnbind&&(a.eventsToUnbind.forEach(function(o){return o()}),a.eventsToUnbind=void 0),P(a.buttons),t&&(t.onfocus=t.onblur=t.onchange=null),i&&(i.onfocus=i.onblur=i.onchange=null),v(a,function(o,e){o&&e!=="chart"&&(o instanceof $?o.destroy():o instanceof ft.HTMLElement&&y(o)),o!==r.prototype[e]&&(a[e]=null)},this)},r}();return h(g.prototype,{defaultButtons:[{type:"month",count:1,text:"1m",title:"View 1 month"},{type:"month",count:3,text:"3m",title:"View 3 months"},{type:"month",count:6,text:"6m",title:"View 6 months"},{type:"ytd",text:"YTD",title:"View year to date"},{type:"year",count:1,text:"1y",title:"View 1 year"},{type:"all",text:"All",title:"View all"}],inputTypeFormats:{"datetime-local":"%Y-%m-%dT%H:%M:%S",date:"%Y-%m-%d",time:"%H:%M:%S"}}),g}),et(_,"Core/Axis/OrdinalAxis.js",[_["Core/Axis/Axis.js"],_["Core/Globals.js"],_["Core/Series/Series.js"],_["Core/Utilities.js"]],function(G,B,X,U){var $,Z=U.addEvent,V=U.correctFloat,z=U.css,I=U.defined,E=U.error,M=U.pick,P=U.timeUnits,y=[];return function(h){function f(i,o,e,s,n,l,b){n===void 0&&(n=[]),l===void 0&&(l=0);var k,D,d,C,A,N={},R=this.options.tickPixelInterval,L=this.chart.time,O=[],j=0,Y=[],H=-Number.MAX_VALUE;if(!this.options.ordinal&&!this.options.breaks||!n||n.length<3||o===void 0)return L.getTimeTicks.apply(L,arguments);var W=n.length;for(k=0;k<W;k++){if(A=k&&n[k-1]>e,n[k]<o&&(j=k),k===W-1||n[k+1]-n[k]>5*l||A){if(n[k]>H){for(D=L.getTimeTicks(i,n[j],n[k],s);D.length&&D[0]<=H;)D.shift();D.length&&(H=D[D.length-1]),O.push(Y.length),Y=Y.concat(D)}j=k+1}if(A)break}if(D){if(C=D.info,b&&C.unitRange<=P.hour){for(k=Y.length-1,j=1;j<k;j++)L.dateFormat("%d",Y[j])!==L.dateFormat("%d",Y[j-1])&&(N[Y[j]]="day",d=!0);d&&(N[Y[0]]="day"),C.higherRanks=N}C.segmentStarts=O,Y.info=C}else E(12,!1,this.chart);if(b&&I(R)){for(var q=Y.length,Q=[],J=[],nt=void 0,lt=void 0,gt=void 0,mt=void 0,bt=void 0,yt=q;yt--;)lt=this.translate(Y[yt]),gt&&(J[yt]=gt-lt),Q[yt]=gt=lt;for(J.sort(),(mt=J[Math.floor(J.length/2)])<.6*R&&(mt=null),yt=Y[q-1]>e?q-1:q,gt=void 0;yt--;)lt=Q[yt],bt=Math.abs(gt-lt),gt&&bt<.8*R&&(mt===null||bt<.8*mt)?(N[Y[yt]]&&!N[Y[yt+1]]?(nt=yt+1,gt=lt):nt=yt,Y.splice(nt,1)):gt=lt}return Y}function m(i){var o=this.ordinal.positions;if(!o)return i;var e,s=o.length-1;return i<0?i=o[0]:i>s?i=o[s]:e=i-(s=Math.floor(i)),e!==void 0&&o[s]!==void 0?o[s]+(e?e*(o[s+1]-o[s]):0):i}function u(i){var o=this,e=o.ordinal,s=o.old?o.old.min:o.min,n=o.old?o.old.transA:o.transA,l=e.positions;if(!l)return i;var b=(i-s)*n+o.minPixelPadding;if(b>0&&b<o.left+o.len||(e.extendedOrdinalPositions||(e.extendedOrdinalPositions=e.getExtendedPositions()),l=e.extendedOrdinalPositions),l&&l.length){var k=e.getIndexOfPoint(b,l),D=V(k%1);if(k>=0&&k<l.length-1){var d=l[Math.floor(k)],C=l[Math.ceil(k)]-d;return l[Math.floor(k)]+D*C}var A=l.length,N=l[0],R=l[A-1],L=(R-N)/(A-1);return k<0?N+L*k:R+L*(k-A)}return i}function v(i,o){var e=h.Additions.findIndexOf(i,o,!0);return i[e]===o?e:e+(o-i[e])/(i[e+1]-i[e])}function S(){var i=this;i.ordinal||(i.ordinal=new h.Additions(i))}function w(){var i=this;i.isXAxis&&I(i.options.overscroll)&&i.max===i.dataMax&&(!i.chart.mouseIsDown||i.isInternal)&&(!i.eventArgs||i.eventArgs&&i.eventArgs.trigger!=="navigator")&&(i.max+=i.options.overscroll,!i.isInternal&&I(i.userMin)&&(i.min+=i.options.overscroll))}function x(){var i=this;i.horiz&&!i.isDirty&&(i.isDirty=i.isOrdinal&&i.chart.navigator&&!i.chart.navigator.adaptToUpdatedData)}function c(){var i=this;i.ordinal&&(i.ordinal.beforeSetTickPositions(),i.tickInterval=i.ordinal.postProcessTickInterval(i.tickInterval))}function g(i){var o=this,e=o.xAxis[0],s=e.options.overscroll,n=i.originalEvent.chartX,l=o.options.chart.panning,b=!1;if(l&&l.type!=="y"&&e.options.ordinal&&e.series.length){var k=o.mouseDownX,D=e.getExtremes(),d=D.dataMax,C=D.min,A=D.max,N=o.hoverPoints,R=e.closestPointRange||e.ordinal&&e.ordinal.overscrollPointsRange,L=(k-n)/(e.translationSlope*(e.ordinal.slope||R)),O=e.ordinal.getExtendedPositions(),j={ordinal:{positions:O,extendedOrdinalPositions:O}},Y=e.index2val,H=e.val2lin,W=void 0,q=void 0,Q=void 0,J=void 0;j.ordinal.positions?Math.abs(L)>1&&(N&&N.forEach(function(nt){nt.setState()}),L<0?(Q=j,J=e.ordinal.positions?e:j):(Q=e.ordinal.positions?e:j,J=j),d>(q=J.ordinal.positions)[q.length-1]&&q.push(d),o.fixedRange=A-C,(W=e.navigatorAxis.toFixedRange(void 0,void 0,Y.apply(Q,[H.apply(Q,[C,!0])+L]),Y.apply(J,[H.apply(J,[A,!0])+L]))).min>=Math.min(D.dataMin,C)&&W.max<=Math.max(d,A)+s&&e.setExtremes(W.min,W.max,!0,!1,{trigger:"pan"}),o.mouseDownX=n,z(o.container,{cursor:"move"})):b=!0}else b=!0;b||l&&/y/.test(l.type)?s&&(e.max=e.dataMax+s):i.preventDefault()}function r(){var i=this.xAxis;i&&i.options.ordinal&&(delete i.ordinal.index,delete i.ordinal.extendedOrdinalPositions)}function a(i,o){var e=this.ordinal,s=e.positions,n=e.slope,l=e.extendedOrdinalPositions;if(!s)return i;var b,k=s.length;if(s[0]<=i&&s[k-1]>=i)b=v(s,i);else{if(l||(l=e.getExtendedPositions&&e.getExtendedPositions(),e.extendedOrdinalPositions=l),!l||!l.length)return i;var D=l.length;n||(n=(l[D-1]-l[0])/D);var d=v(l,s[0]);b=i>=l[0]&&i<=l[D-1]?v(l,i)-d:i<l[0]?-d-(l[0]-i)/n:(i-l[D-1])/n+D-d}return o?b:n*(b||0)+e.offset}h.compose=function(i,o,e){if(y.indexOf(i)===-1){y.push(i);var s=i.prototype;s.getTimeTicks=f,s.index2val=m,s.lin2val=u,s.val2lin=a,s.ordinal2lin=s.val2lin,Z(i,"afterInit",S),Z(i,"foundExtremes",w),Z(i,"afterSetScale",x),Z(i,"initialAxisTranslation",c)}return y.indexOf(e)===-1&&(y.push(e),Z(e,"pan",g)),y.indexOf(o)===-1&&(y.push(o),Z(o,"updatedData",r)),i};var t=function(){function i(o){this.index={},this.axis=o}return i.prototype.beforeSetTickPositions=function(){var o,e,s,n,l,b,k,D=this.axis,d=D.ordinal,C=D.getExtremes(),A=C.min,N=C.max,R=D.isXAxis&&!!D.options.breaks,L=D.options.ordinal,O=D.chart.options.chart.ignoreHiddenSeries,j=[],Y=Number.MAX_VALUE,H=!1,W=!1,q=!1;if(L||R){var Q=0;if(D.series.forEach(function(J,nt){if(e=[],nt>0&&J.options.id!=="highcharts-navigator-series"&&J.processedXData.length>1&&(W=Q!==J.processedXData[1]-J.processedXData[0]),Q=J.processedXData[1]-J.processedXData[0],J.boosted&&(q=J.boosted),(!O||J.visible!==!1)&&(J.takeOrdinalPosition!==!1||R)&&(j=j.concat(J.processedXData),o=j.length,j.sort(function(lt,gt){return lt-gt}),Y=Math.min(Y,M(J.closestPointRange,Y)),o)){for(nt=0;nt<o-1;)j[nt]!==j[nt+1]&&e.push(j[nt+1]),nt++;e[0]!==j[0]&&e.unshift(j[0]),j=e}}),W&&q&&(j.pop(),j.shift()),(o=j.length)>2){for(s=j[1]-j[0],k=o-1;k--&&!H;)j[k+1]-j[k]!==s&&(H=!0);!D.options.keepOrdinalPadding&&(j[0]-A>s||N-j[j.length-1]>s)&&(H=!0)}else D.options.overscroll&&(o===2?Y=j[1]-j[0]:o===1?(Y=D.options.overscroll,j=[j[0],j[0]+Y]):Y=d.overscrollPointsRange);H||D.forceOrdinal?(D.options.overscroll&&(d.overscrollPointsRange=Y,j=j.concat(d.getOverscrollPositions())),d.positions=j,n=D.ordinal2lin(Math.max(A,j[0]),!0),l=Math.max(D.ordinal2lin(Math.min(N,j[j.length-1]),!0),1),d.slope=b=(N-A)/(l-n),d.offset=A-n*b):(d.overscrollPointsRange=M(D.closestPointRange,d.overscrollPointsRange),d.positions=D.ordinal.slope=d.offset=void 0)}D.isOrdinal=L&&H,d.groupIntervalFactor=null},i.findIndexOf=function(o,e,s){for(var n,l=0,b=o.length-1;l<b;)o[n=Math.ceil((l+b)/2)]<=e?l=n:b=n-1;return o[l]===e||s?l:-1},i.prototype.getExtendedPositions=function(){var o,e=this,s=e.axis,n=s.constructor.prototype,l=s.chart,b=s.series[0].currentDataGrouping,k=b?b.count+b.unitName:"raw",D=s.options.overscroll,d=s.getExtremes(),C=void 0,A=e.index;return A||(A=e.index={}),A[k]||((o={series:[],chart:l,forceOrdinal:!1,getExtremes:function(){return{min:d.dataMin,max:d.dataMax+D}},getGroupPixelWidth:n.getGroupPixelWidth,getTimeTicks:n.getTimeTicks,options:{ordinal:!0},ordinal:{getGroupIntervalFactor:this.getGroupIntervalFactor},ordinal2lin:n.ordinal2lin,getIndexOfPoint:n.getIndexOfPoint,val2lin:n.val2lin}).ordinal.axis=o,s.series.forEach(function(N){(C={xAxis:o,xData:N.xData.slice(),chart:l,destroyGroupedData:B.noop,getProcessedData:X.prototype.getProcessedData,applyGrouping:X.prototype.applyGrouping}).xData=C.xData.concat(e.getOverscrollPositions()),C.options={dataGrouping:b?{firstAnchor:"firstPoint",anchor:"middle",lastAnchor:"lastPoint",enabled:!0,forced:!0,approximation:"open",units:[[b.unitName,[b.count]]]}:{enabled:!1}},o.series.push(C),N.processData.apply(C)}),C.closestPointRange!==C.basePointRange&&C.currentDataGrouping&&(o.forceOrdinal=!0),s.ordinal.beforeSetTickPositions.apply({axis:o}),A[k]=o.ordinal.positions),A[k]},i.prototype.getGroupIntervalFactor=function(o,e,s){var n,l,b=this,k=s.processedXData,D=k.length,d=[],C=b.groupIntervalFactor;if(!C){for(l=0;l<D-1;l++)d[l]=k[l+1]-k[l];d.sort(function(A,N){return A-N}),n=d[Math.floor(D/2)],o=Math.max(o,k[0]),e=Math.min(e,k[D-1]),b.groupIntervalFactor=C=D*n/(e-o)}return C},i.prototype.getIndexOfPoint=function(o,e){var s=this,n=s.axis,l=s.positions?s.positions[0]:0,b=n.series[0].points&&n.series[0].points[0]&&n.series[0].points[0].plotX||n.minPixelPadding;n.series.length>1&&n.series.forEach(function(d){d.points&&I(d.points[0])&&I(d.points[0].plotX)&&d.points[0].plotX<b&&d.points[0].plotX>=M(n.min,-1/0)&&(b=d.points[0].plotX)});var k=n.translationSlope*(s.slope||n.closestPointRange||s.overscrollPointsRange),D=(o-b)/k;return i.findIndexOf(e,l)+D},i.prototype.getOverscrollPositions=function(){var o=this.axis,e=o.options.overscroll,s=this.overscrollPointsRange,n=[],l=o.dataMax;if(I(s))for(;l<=o.dataMax+e;)l+=s,n.push(l);return n},i.prototype.postProcessTickInterval=function(o){var e=this.axis,s=this.slope;return s?e.options.breaks?e.closestPointRange||o:o/(s/e.closestPointRange):o},i}();h.Additions=t}($||($={})),$}),et(_,"Series/HLC/HLCPoint.js",[_["Core/Series/SeriesRegistry.js"]],function(G){var B,X=this&&this.__extends||(B=function($,Z){return B=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(V,z){V.__proto__=z}||function(V,z){for(var I in z)z.hasOwnProperty(I)&&(V[I]=z[I])},B($,Z)},function($,Z){function V(){this.constructor=$}B($,Z),$.prototype=Z===null?Object.create(Z):(V.prototype=Z.prototype,new V)}),U=function($){function Z(){var V=$!==null&&$.apply(this,arguments)||this;return V.close=void 0,V.high=void 0,V.low=void 0,V.options=void 0,V.plotClose=void 0,V.series=void 0,V}return X(Z,$),Z}(G.seriesTypes.column.prototype.pointClass);return U}),et(_,"Series/HLC/HLCSeriesDefaults.js",[],function(){return{lineWidth:1,tooltip:{pointFormat:'<span style="color:{point.color}">●</span> <b> {series.name}</b><br/>High: {point.high}<br/>Low: {point.low}<br/>Close: {point.close}<br/>'},threshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0}}),et(_,"Series/HLC/HLCSeries.js",[_["Series/HLC/HLCPoint.js"],_["Series/HLC/HLCSeriesDefaults.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,X,U){var $,Z=this&&this.__extends||($=function(M,P){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,h){y.__proto__=h}||function(y,h){for(var f in h)h.hasOwnProperty(f)&&(y[f]=h[f])},$(M,P)},function(M,P){function y(){this.constructor=M}$(M,P),M.prototype=P===null?Object.create(P):(y.prototype=P.prototype,new y)}),V=X.seriesTypes.column,z=U.extend,I=U.merge,E=function(M){function P(){var y=M!==null&&M.apply(this,arguments)||this;return y.data=void 0,y.options=void 0,y.points=void 0,y.yData=void 0,y}return Z(P,M),P.prototype.extendStem=function(y,h,f){var m=y[0],u=y[1];typeof m[2]=="number"&&(m[2]=Math.max(f+h,m[2])),typeof u[2]=="number"&&(u[2]=Math.min(f-h,u[2]))},P.prototype.getPointPath=function(y,h){var f=h.strokeWidth(),m=y.series,u=f%2/2,v=Math.round(y.plotX)-u,S=Math.round(y.shapeArgs.width/2),w=y.plotClose,x=[["M",v,Math.round(y.yBottom)],["L",v,Math.round(y.plotHigh)]];return y.close!==null&&(w=Math.round(y.plotClose)+u,x.push(["M",v,w],["L",v+S,w]),m.extendStem(x,f/2,w)),x},P.prototype.drawSinglePoint=function(y){var h,f=y.series,m=f.chart,u=y.graphic;y.plotY!==void 0&&(u||(y.graphic=u=m.renderer.path().add(f.group)),m.styledMode||u.attr(f.pointAttribs(y,y.selected&&"select")),h=f.getPointPath(y,u),u[u?"animate":"attr"]({d:h}).addClass(y.getClassName(),!0))},P.prototype.drawPoints=function(){this.points.forEach(this.drawSinglePoint)},P.prototype.init=function(){M.prototype.init.apply(this,arguments),this.options.stacking=void 0},P.prototype.pointAttribs=function(y,h){var f=M.prototype.pointAttribs.call(this,y,h);return delete f.fill,f},P.prototype.toYData=function(y){return[y.high,y.low,y.close]},P.prototype.translate=function(){var y=this,h=y.yAxis,f=this.pointArrayMap&&this.pointArrayMap.slice()||[],m=f.map(function(u){return"plot".concat(u.charAt(0).toUpperCase()+u.slice(1))});m.push("yBottom"),f.push("low"),M.prototype.translate.apply(y),y.points.forEach(function(u){f.forEach(function(v,S){var w=u[v];w!==null&&(y.dataModify&&(w=y.dataModify.modifyValue(w)),u[m[S]]=h.toPixels(w,!0))}),u.tooltipPos[1]=u.plotHigh+h.pos-y.chart.plotTop})},P.defaultOptions=I(V.defaultOptions,B),P}(V);return z(E.prototype,{pointClass:G,animate:null,directTouch:!1,pointArrayMap:["high","low","close"],pointAttrToOptions:{stroke:"color","stroke-width":"lineWidth"},pointValKey:"close"}),X.registerSeriesType("hlc",E),E}),et(_,"Series/OHLC/OHLCPoint.js",[_["Core/Series/SeriesRegistry.js"]],function(G){var B,X=this&&this.__extends||(B=function($,Z){return B=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(V,z){V.__proto__=z}||function(V,z){for(var I in z)z.hasOwnProperty(I)&&(V[I]=z[I])},B($,Z)},function($,Z){function V(){this.constructor=$}B($,Z),$.prototype=Z===null?Object.create(Z):(V.prototype=Z.prototype,new V)}),U=function($){function Z(){var V=$!==null&&$.apply(this,arguments)||this;return V.open=void 0,V.options=void 0,V.plotOpen=void 0,V.series=void 0,V}return X(Z,$),Z.prototype.getClassName=function(){return $.prototype.getClassName.call(this)+(this.open<this.close?" highcharts-point-up":" highcharts-point-down")},Z.prototype.resolveUpColor=function(){this.open<this.close&&!this.options.color&&this.series.options.upColor&&(this.color=this.series.options.upColor)},Z.prototype.resolveColor=function(){$.prototype.resolveColor.call(this),this.resolveUpColor()},Z.prototype.getZone=function(){var V=$.prototype.getZone.call(this);return this.resolveUpColor(),V},Z.prototype.applyOptions=function(){return $.prototype.applyOptions.apply(this,arguments),this.resolveColor&&this.resolveColor(),this},Z}(G.seriesTypes.hlc.prototype.pointClass);return U}),et(_,"Series/OHLC/OHLCSeriesDefaults.js",[],function(){return{tooltip:{pointFormat:'<span style="color:{point.color}">●</span> <b> {series.name}</b><br/>Open: {point.open}<br/>High: {point.high}<br/>Low: {point.low}<br/>Close: {point.close}<br/>'}}}),et(_,"Series/OHLC/OHLCSeries.js",[_["Series/OHLC/OHLCPoint.js"],_["Series/OHLC/OHLCSeriesDefaults.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,X,U){var $,Z=this&&this.__extends||($=function(f,m){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,v){u.__proto__=v}||function(u,v){for(var S in v)v.hasOwnProperty(S)&&(u[S]=v[S])},$(f,m)},function(f,m){function u(){this.constructor=f}$(f,m),f.prototype=m===null?Object.create(m):(u.prototype=m.prototype,new u)}),V=X.seriesTypes.hlc,z=U.addEvent,I=U.extend,E=U.merge,M=[];function P(f){var m=f.options,u=m.dataGrouping;u&&m.useOhlcData&&m.id!=="highcharts-navigator-series"&&(u.approximation="ohlc")}function y(f){var m=f.options;m.useOhlcData&&m.id!=="highcharts-navigator-series"&&I(this,{pointValKey:h.prototype.pointValKey,pointArrayMap:h.prototype.pointArrayMap,toYData:h.prototype.toYData})}var h=function(f){function m(){var u=f!==null&&f.apply(this,arguments)||this;return u.data=void 0,u.options=void 0,u.points=void 0,u}return Z(m,f),m.compose=function(u){for(var v=[],S=1;S<arguments.length;S++)v[S-1]=arguments[S];M.indexOf(u)===-1&&(M.push(u),z(u,"afterSetOptions",P),z(u,"init",y))},m.prototype.getPointPath=function(u,v){var S=f.prototype.getPointPath.call(this,u,v),w=v.strokeWidth(),x=w%2/2,c=Math.round(u.plotX)-x,g=Math.round(u.shapeArgs.width/2),r=u.plotOpen;return u.open!==null&&(r=Math.round(u.plotOpen)+x,S.push(["M",c,r],["L",c-g,r]),f.prototype.extendStem.call(this,S,w/2,r)),S},m.prototype.pointAttribs=function(u,v){var S=f.prototype.pointAttribs.call(this,u,v),w=this.options;return delete S.fill,!u.options.color&&w.upColor&&u.open<u.close&&(S.stroke=w.upColor),S},m.prototype.toYData=function(u){return[u.open,u.high,u.low,u.close]},m.defaultOptions=E(V.defaultOptions,B),m}(V);return I(h.prototype,{pointClass:G,pointArrayMap:["open","high","low","close"]}),X.registerSeriesType("ohlc",h),h}),et(_,"Series/Candlestick/CandlestickSeriesDefaults.js",[_["Core/Defaults.js"],_["Core/Utilities.js"]],function(G,B){return{states:{hover:{lineWidth:2}},threshold:null,lineColor:"#000000",lineWidth:1,upColor:"#ffffff",stickyTracking:!0}}),et(_,"Series/Candlestick/CandlestickSeries.js",[_["Series/Candlestick/CandlestickSeriesDefaults.js"],_["Core/Defaults.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,X,U){var $,Z=this&&this.__extends||($=function(y,h){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var u in m)m.hasOwnProperty(u)&&(f[u]=m[u])},$(y,h)},function(y,h){function f(){this.constructor=y}$(y,h),y.prototype=h===null?Object.create(h):(f.prototype=h.prototype,new f)}),V=B.defaultOptions,z=X.seriesTypes,I=z.column,E=z.ohlc,M=U.merge,P=function(y){function h(){var f=y!==null&&y.apply(this,arguments)||this;return f.data=void 0,f.options=void 0,f.points=void 0,f}return Z(h,y),h.prototype.pointAttribs=function(f,m){var u=I.prototype.pointAttribs.call(this,f,m),v=this.options,S=f.open<f.close,w=v.lineColor||this.color,x=f.color||this.color;if(u["stroke-width"]=v.lineWidth,u.fill=f.options.color||S&&v.upColor||x,u.stroke=f.options.lineColor||S&&v.upLineColor||w,m){var c=v.states[m];u.fill=c.color||u.fill,u.stroke=c.lineColor||u.stroke,u["stroke-width"]=c.lineWidth||u["stroke-width"]}return u},h.prototype.drawPoints=function(){for(var f=this,m=f.points,u=f.chart,v=f.yAxis.reversed,S=0,w=m;S<w.length;S++){var x=w[S],c=x.graphic,g=void 0,r=void 0,a=void 0,t=void 0,i=void 0,o=void 0,e=void 0,s=void 0,n=void 0,l=void 0,b=!c;x.plotY!==void 0&&(c||(x.graphic=c=u.renderer.path().add(f.group)),f.chart.styledMode||c.attr(f.pointAttribs(x,x.selected&&"select")).shadow(f.options.shadow),e=c.strokeWidth()%2/2,s=Math.round(x.plotX)-e,g=x.plotOpen,r=x.plotClose,a=Math.min(g,r),t=Math.max(g,r),l=Math.round(x.shapeArgs.width/2),i=v?t!==x.yBottom:Math.round(a)!==Math.round(x.plotHigh),o=v?Math.round(a)!==Math.round(x.plotHigh):t!==x.yBottom,a=Math.round(a)+e,t=Math.round(t)+e,(n=[]).push(["M",s-l,t],["L",s-l,a],["L",s+l,a],["L",s+l,t],["Z"],["M",s,a],["L",s,i?Math.round(v?x.yBottom:x.plotHigh):a],["M",s,t],["L",s,o?Math.round(v?x.plotHigh:x.yBottom):t]),c[b?"attr":"animate"]({d:n}).addClass(x.getClassName(),!0))}},h.defaultOptions=M(E.defaultOptions,V.plotOptions,{tooltip:E.defaultOptions.tooltip},G),h}(E);return X.registerSeriesType("candlestick",P),P}),et(_,"Series/Flags/FlagsPoint.js",[_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B){var X,U=this&&this.__extends||(X=function(z,I){return X=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,M){E.__proto__=M}||function(E,M){for(var P in M)M.hasOwnProperty(P)&&(E[P]=M[P])},X(z,I)},function(z,I){function E(){this.constructor=z}X(z,I),z.prototype=I===null?Object.create(I):(E.prototype=I.prototype,new E)}),$=G.seriesTypes.column.prototype.pointClass,Z=B.isNumber,V=function(z){function I(){var E=z!==null&&z.apply(this,arguments)||this;return E.options=void 0,E.series=void 0,E.ttBelow=!1,E}return U(I,z),I.prototype.isValid=function(){return Z(this.y)||this.y===void 0},I.prototype.hasNewShapeType=function(){var E=this.options.shape||this.series.options.shape;return this.graphic&&E&&E!==this.graphic.symbolKey},I}($);return V}),et(_,"Series/Flags/FlagsSeriesDefaults.js",[],function(){return{pointRange:0,allowOverlapX:!1,shape:"flag",stackDistance:12,textAlign:"center",tooltip:{pointFormat:"{point.text}"},threshold:null,y:-30,fillColor:"#ffffff",lineWidth:1,states:{hover:{lineColor:"#000000",fillColor:"#ccd6eb"}},style:{fontSize:"11px",fontWeight:"bold"}}}),et(_,"Series/Flags/FlagsSymbols.js",[_["Core/Renderer/RendererRegistry.js"]],function(G){var B;return function(X){var U=[];function $(V,z,I,E,M){var P=M&&M.anchorX||V,y=M&&M.anchorY||z,h=this.circle(P-1,y-1,2,2);return h.push(["M",P,y],["L",V,z+E],["L",V,z],["L",V+I,z],["L",V+I,z+E],["L",V,z+E],["Z"]),h}function Z(V,z){V[z+"pin"]=function(I,E,M,P,y){var h,f=y&&y.anchorX,m=y&&y.anchorY;if(z==="circle"&&P>M&&(I-=Math.round((P-M)/2),M=P),h=V[z](I,E,M,P),f&&m){var u=f;if(z==="circle")u=I+M/2;else{var v=h[0],S=h[1];v[0]==="M"&&S[0]==="L"&&(u=(v[1]+S[1])/2)}var w=E>m?E:E+P;h.push(["M",u,w],["L",f,m]),h=h.concat(V.circle(f-1,m-1,2,2))}return h}}X.compose=function(V){U.indexOf(V)===-1&&(U.push(V),(I=V.prototype.symbols).flag=$,Z(I,"circle"),Z(I,"square"));var z=G.getRendererType();if(U.indexOf(z)){U.push(z);var I=V.prototype.symbols,E=z.prototype.symbols;E.circlepin=I.circlepin,E.flag=I.flag.bind(I),E.squarepin=I.squarepin}}}(B||(B={})),B}),et(_,"Series/OnSeriesComposition.js",[_["Series/Column/ColumnSeries.js"],_["Core/Series/Series.js"],_["Core/Utilities.js"]],function(G,B,X){var U,$=G.prototype,Z=B.prototype,V=X.defined,z=X.stableSort;return function(I){var E=[];function M(y){return Z.getPlotBox.call(this.options.onSeries&&this.chart.get(this.options.onSeries)||this,y)}function P(){$.translate.apply(this);var y,h,f,m,u,v,S,w=this,x=w.options,c=w.chart,g=w.points,r=x.onSeries,a=r&&c.get(r),t=a&&a.options.step,i=a&&a.points,o=c.inverted,e=w.xAxis,s=w.yAxis,n=g.length-1,l=x.onKey||"y",b=i&&i.length,k=0;if(a&&a.visible&&b)for(k=(a.pointXOffset||0)+(a.barW||0)/2,v=a.currentDataGrouping,m=i[b-1].x+(v?v.totalRange:0),z(g,function(D,d){return D.x-d.x}),l="plot"+l[0].toUpperCase()+l.substr(1);b--&&g[n]&&(f=i[b],(y=g[n]).y=f.y,!(f.x<=y.x&&f[l]!==void 0&&(y.x<=m&&(y.plotY=f[l],f.x<y.x&&!t&&(u=i[b+1])&&u[l]!==void 0&&(S=(y.x-f.x)/(u.x-f.x),y.plotY+=S*(u[l]-f[l]),y.y+=S*(u.y-f.y))),b++,--n<0))););g.forEach(function(D,d){var C;D.plotX+=k,(D.plotY===void 0||o)&&(D.plotX>=0&&D.plotX<=e.len?o?(D.plotY=e.translate(D.x,0,1,0,1),D.plotX=V(D.y)?s.translate(D.y,0,0,0,1):0):D.plotY=(e.opposite?0:w.yAxis.len)+e.offset:D.shapeArgs={}),(h=g[d-1])&&h.plotX===D.plotX&&(h.stackIndex===void 0&&(h.stackIndex=0),C=h.stackIndex+1),D.stackIndex=C}),this.onSeries=a}I.compose=function(y){if(E.indexOf(y)===-1){E.push(y);var h=y.prototype;h.getPlotBox=M,h.translate=P}return y},I.getPlotBox=M,I.translate=P}(U||(U={})),U}),et(_,"Series/Flags/FlagsSeries.js",[_["Series/Flags/FlagsPoint.js"],_["Series/Flags/FlagsSeriesDefaults.js"],_["Series/Flags/FlagsSymbols.js"],_["Core/Globals.js"],_["Series/OnSeriesComposition.js"],_["Core/Renderer/RendererUtilities.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Renderer/SVG/SVGElement.js"],_["Core/Utilities.js"]],function(G,B,X,U,$,Z,V,z,I){var E,M=this&&this.__extends||(E=function(g,r){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,t){a.__proto__=t}||function(a,t){for(var i in t)t.hasOwnProperty(i)&&(a[i]=t[i])},E(g,r)},function(g,r){function a(){this.constructor=g}E(g,r),g.prototype=r===null?Object.create(r):(a.prototype=r.prototype,new a)}),P=U.noop,y=Z.distribute,h=V.series,f=V.seriesTypes.column,m=I.addEvent,u=I.defined,v=I.extend,S=I.merge,w=I.objectEach,x=I.wrap,c=function(g){function r(){var a=g!==null&&g.apply(this,arguments)||this;return a.data=void 0,a.options=void 0,a.points=void 0,a}return M(r,g),r.prototype.animate=function(a){a&&this.setClip()},r.prototype.drawPoints=function(){var a,t,i,o,e,s,n,l,b,k,D,d=this,C=d.points,A=d.chart,N=A.renderer,R=A.inverted,L=d.options,O=L.y,j=d.yAxis,Y={},H=[];for(o=C.length;o--;)e=C[o],k=(R?e.plotY:e.plotX)>d.xAxis.len,a=e.plotX,n=e.stackIndex,i=e.options.shape||L.shape,(t=e.plotY)!==void 0&&(t=e.plotY+O-(n!==void 0&&n*L.stackDistance)),e.anchorX=n?void 0:e.plotX,l=n?void 0:e.plotY,D=i!=="flag",s=e.graphic,t!==void 0&&a>=0&&!k?(s&&e.hasNewShapeType()&&(s=s.destroy()),s||(s=e.graphic=N.label("",null,null,i,null,null,L.useHTML).addClass("highcharts-point").add(d.markerGroup),e.graphic.div&&(e.graphic.div.point=e),s.isNew=!0),s.attr({align:D?"center":"left",width:L.width,height:L.height,"text-align":L.textAlign}),A.styledMode||s.attr(d.pointAttribs(e)).css(S(L.style,e.style)).shadow(L.shadow),a>0&&(a-=s.strokeWidth()%2),b={y:t,anchorY:l},L.allowOverlapX&&(b.x=a,b.anchorX=e.anchorX),s.attr({text:e.options.title||L.title||"A"})[s.isNew?"attr":"animate"](b),L.allowOverlapX||(Y[e.plotX]?Y[e.plotX].size=Math.max(Y[e.plotX].size,s.width):Y[e.plotX]={align:D?.5:0,size:s.width,target:a,anchorX:a}),e.tooltipPos=[a,t+j.pos-A.plotTop]):s&&(e.graphic=s.destroy());if(!L.allowOverlapX){var W=100;w(Y,function(mt){mt.plotX=mt.anchorX,H.push(mt),W=Math.max(mt.size,W)}),y(H,R?j.len:this.xAxis.len,W);for(var q=0,Q=C;q<Q.length;q++){var J=Q[q],nt=J.plotX,lt=J.graphic,gt=lt&&Y[nt];gt&<&&(u(gt.pos)?lt[lt.isNew?"attr":"animate"]({x:gt.pos+(gt.align||0)*gt.size,anchorX:J.anchorX}).show().isNew=!1:lt.hide().isNew=!0)}}L.useHTML&&d.markerGroup&&x(d.markerGroup,"on",function(mt){return z.prototype.on.apply(mt.apply(this,[].slice.call(arguments,1)),[].slice.call(arguments,1))})},r.prototype.drawTracker=function(){var a=this.points;g.prototype.drawTracker.call(this);for(var t=function(e){var s=e.graphic;s&&(e.unbindMouseOver&&e.unbindMouseOver(),e.unbindMouseOver=m(s.element,"mouseover",function(){e.stackIndex>0&&!e.raised&&(e._y=s.y,s.attr({y:e._y-8}),e.raised=!0);for(var n=0,l=a;n<l.length;n++){var b=l[n];b!==e&&b.raised&&b.graphic&&(b.graphic.attr({y:b._y}),b.raised=!1)}}))},i=0,o=a;i<o.length;i++)t(o[i])},r.prototype.pointAttribs=function(a,t){var i=this.options,o=a&&a.color||this.color,e=i.lineColor,s=a&&a.lineWidth,n=a&&a.fillColor||i.fillColor;return t&&(n=i.states[t].fillColor,e=i.states[t].lineColor,s=i.states[t].lineWidth),{fill:n||o,stroke:e||o,"stroke-width":s||i.lineWidth||0}},r.prototype.setClip=function(){h.prototype.setClip.apply(this,arguments),this.options.clip!==!1&&this.sharedClipKey&&this.markerGroup&&this.markerGroup.clip(this.chart.sharedClips[this.sharedClipKey])},r.compose=X.compose,r.defaultOptions=S(f.defaultOptions,B),r}(f);return $.compose(c),v(c.prototype,{allowDG:!1,forceCrop:!0,invertible:!1,noSharedTooltip:!0,pointClass:G,sorted:!1,takeOrdinalPosition:!1,trackerGroups:["markerGroup"],buildKDTree:P,init:h.prototype.init}),V.registerSeriesType("flags",c),c}),et(_,"Core/Chart/StockChart.js",[_["Core/Axis/Axis.js"],_["Core/Chart/Chart.js"],_["Core/FormatUtilities.js"],_["Core/Defaults.js"],_["Stock/Navigator/NavigatorDefaults.js"],_["Stock/RangeSelector/RangeSelectorDefaults.js"],_["Stock/Scrollbar/ScrollbarDefaults.js"],_["Core/Series/Series.js"],_["Core/Renderer/SVG/SVGRenderer.js"],_["Core/Utilities.js"]],function(G,B,X,U,$,Z,V,z,I,E){var M,P=this&&this.__extends||(M=function(o,e){return M=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,n){s.__proto__=n}||function(s,n){for(var l in n)n.hasOwnProperty(l)&&(s[l]=n[l])},M(o,e)},function(o,e){function s(){this.constructor=o}M(o,e),o.prototype=e===null?Object.create(e):(s.prototype=e.prototype,new s)}),y=X.format,h=U.getOptions,f=E.addEvent,m=E.clamp,u=E.defined,v=E.extend,S=E.find,w=E.isNumber,x=E.isString,c=E.merge,g=E.pick,r=E.splat,a=function(o){function e(){return o!==null&&o.apply(this,arguments)||this}return P(e,o),e.prototype.init=function(s,n){var l=h(),b=s.xAxis,k=s.yAxis,D=g(s.navigator&&s.navigator.enabled,$.enabled,!0);s.xAxis=s.yAxis=void 0;var d=c({chart:{panning:{enabled:!0,type:"x"},zooming:{pinchType:"x"}},navigator:{enabled:D},scrollbar:{enabled:g(V.enabled,!0)},rangeSelector:{enabled:g(Z.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:g(l.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1}},s,{isStock:!0});s.xAxis=b,s.yAxis=k,d.xAxis=r(s.xAxis||{}).map(function(C,A){return c(t("xAxis",C),l.xAxis,l.xAxis&&l.xAxis[A],C,i("xAxis",s))}),d.yAxis=r(s.yAxis||{}).map(function(C,A){return c(t("yAxis",C),l.yAxis,l.yAxis&&l.yAxis[A],C)}),o.prototype.init.call(this,d,n)},e.prototype.createAxis=function(s,n){return n.axis=c(t(s,n.axis),n.axis,i(s,this.userOptions)),o.prototype.createAxis.call(this,s,n)},e}(B);function t(o,e){return o==="xAxis"?{minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:"justify"},showLastLabel:!0}:o==="yAxis"?{labels:{y:-2},opposite:g(e.opposite,!0),showLastLabel:!(!e.categories&&e.type!=="category"),title:{text:null}}:{}}function i(o,e){if(o==="xAxis"){var s={type:"datetime",categories:void 0};return g(e.navigator&&e.navigator.enabled,$.enabled,!0)&&(s.startOnTick=!1,s.endOnTick=!1),s}return{}}return function(o){o.stockChart=function(e,s,n){return new o(e,s,n)}}(a||(a={})),f(z,"setOptions",function(o){var e;this.chart.options.isStock&&(this.is("column")||this.is("columnrange")?e={borderWidth:0,shadow:!1}:this.is("scatter")||this.is("sma")||(e={marker:{enabled:!1,radius:2}}),e&&(o.plotOptions[this.type]=c(o.plotOptions[this.type],e)))}),f(G,"autoLabelAlign",function(o){var e,s=this.chart,n=this.options,l=s._labelPanes=s._labelPanes||{},b=this.options.labels;this.chart.options.isStock&&this.coll==="yAxis"&&!l[e=n.top+","+n.height]&&b.enabled&&(b.x===15&&(b.x=0),b.align===void 0&&(b.align="right"),l[e]=this,o.align="right",o.preventDefault())}),f(G,"destroy",function(){var o=this.chart,e=this.options&&this.options.top+","+this.options.height;e&&o._labelPanes&&o._labelPanes[e]===this&&delete o._labelPanes[e]}),f(G,"getPlotLinePath",function(o){var e,s,n,l,b,k,D,d,C,A=this,N=this.isLinked&&!this.series?this.linkedParent.series:this.series,R=A.chart,L=R.renderer,O=A.left,j=A.top,Y=[],H=[],W=o.translatedValue,q=o.value,Q=o.force;(R.options.isStock&&o.acrossPanes!==!1&&A.coll==="xAxis"||A.coll==="yAxis")&&(o.preventDefault(),D=A.coll,d=D==="xAxis"?"yAxis":"xAxis",C=A.options[d],H=w(C)?[R[d][C]]:x(C)?[R.get(C)]:N.map(function(J){return J[d]}),(A.isXAxis?R.yAxis:R.xAxis).forEach(function(J){if(!u(J.options.id)||J.options.id.indexOf("navigator")===-1){var nt=J.isXAxis?"yAxis":"xAxis",lt=u(J.options[nt])?R[nt][J.options[nt]]:R[nt][0];A===lt&&H.push(J)}}),b=H.length?[]:[A.isXAxis?R.yAxis[0]:R.xAxis[0]],H.forEach(function(J){b.indexOf(J)!==-1||S(b,function(nt){return nt.pos===J.pos&&nt.len===J.len})||b.push(J)}),k=g(W,A.translate(q,void 0,void 0,o.old)),w(k)&&(A.horiz?b.forEach(function(J){var nt;s=J.pos,l=s+J.len,e=n=Math.round(k+A.transB),Q!=="pass"&&(e<O||e>O+A.width)&&(Q?e=n=m(e,O,O+A.width):nt=!0),nt||Y.push(["M",e,s],["L",n,l])}):b.forEach(function(J){var nt;e=J.pos,n=e+J.len,s=l=Math.round(j+A.height-k),Q!=="pass"&&(s<j||s>j+A.height)&&(Q?s=l=m(s,j,j+A.height):nt=!0),nt||Y.push(["M",e,s],["L",n,l])})),o.path=Y.length>0?L.crispPolyLine(Y,o.lineWidth||1):null)}),I.prototype.crispPolyLine=function(o,e){for(var s=0;s<o.length;s+=2){var n=o[s],l=o[s+1];n[1]===l[1]&&(n[1]=l[1]=Math.round(n[1])-e%2/2),n[2]===l[2]&&(n[2]=l[2]=Math.round(n[2])+e%2/2)}return o},f(G,"afterHideCrosshair",function(){this.crossLabel&&(this.crossLabel=this.crossLabel.hide())}),f(G,"afterDrawCrosshair",function(o){if(this.crosshair&&this.crosshair.label&&this.crosshair.label.enabled&&this.cross&&w(this.min)&&w(this.max)){var e,s,n,l,b,k=this.chart,D=this.logarithmic,d=this.crosshair.label,C=this.horiz,A=this.opposite,N=this.left,R=this.top,L=this.crossLabel,O=d.format,j="",Y=this.options.tickPosition==="inside",H=this.crosshair.snap!==!1,W=0,q=o.e||this.cross&&this.cross.e,Q=o.point,J=this.min,nt=this.max;D&&(J=D.lin2log(J),nt=D.lin2log(nt)),b=C?"center":A?this.labelAlign==="right"?"right":"left":this.labelAlign==="left"?"left":"center",L||(L=this.crossLabel=k.renderer.label("",0,void 0,d.shape||"callout").addClass("highcharts-crosshair-label highcharts-color-"+(Q&&Q.series?Q.series.colorIndex:this.series[0]&&this.series[0].colorIndex)).attr({align:d.align||b,padding:g(d.padding,8),r:g(d.borderRadius,3),zIndex:2}).add(this.labelGroup),k.styledMode||L.attr({fill:d.backgroundColor||Q&&Q.series&&Q.series.color||"#666666",stroke:d.borderColor||"","stroke-width":d.borderWidth||0}).css(v({color:"#ffffff",fontWeight:"normal",fontSize:"11px",textAlign:"center"},d.style||{}))),C?(e=H?(Q.plotX||0)+N:q.chartX,s=R+(A?0:this.height)):(e=A?this.width+N:0,s=H?(Q.plotY||0)+R:q.chartY),O||d.formatter||(this.dateTime&&(j="%b %d, %Y"),O="{value"+(j?":"+j:"")+"}");var lt=H?this.isXAxis?Q.x:Q.y:this.toValue(C?q.chartX:q.chartY),gt=Q&&Q.series?Q.series.isPointInside(Q):w(lt)&<>J&<<nt,mt="";O?mt=y(O,{value:lt},k):d.formatter&&w(lt)&&(mt=d.formatter.call(this,lt)),L.attr({text:mt,x:e,y:s,visibility:gt?"inherit":"hidden"}),n=L.getBBox(),w(L.y)&&(C?(Y&&!A||!Y&&A)&&(s=L.y-n.height):s=L.y-n.height/2),l=C?{left:N-n.x,right:N+this.width-n.x}:{left:this.labelAlign==="left"?N:0,right:this.labelAlign==="right"?N+this.width:k.chartWidth},L.translateX<l.left&&(W=l.left-L.translateX),L.translateX+n.width>=l.right&&(W=-(L.translateX+n.width-l.right)),L.attr({x:e+W,y:s,anchorX:C?e:this.opposite?0:k.chartWidth,anchorY:C?this.opposite?k.chartHeight:0:s+n.height/2})}}),z.prototype.forceCropping=function(){var o=this.chart,e=this.options.dataGrouping;return this.allowDG!==!1&&e&&g(e.enabled,o.options.isStock)},f(B,"update",function(o){var e=o.options;"scrollbar"in e&&this.navigator&&(c(!0,this.options.scrollbar,e.scrollbar),this.navigator.update({}),delete e.scrollbar)}),a}),et(_,"masters/modules/stock.src.js",[_["Core/Globals.js"],_["Series/DataModifyComposition.js"],_["Stock/Navigator/Navigator.js"],_["Stock/RangeSelector/RangeSelector.js"],_["Stock/Scrollbar/Scrollbar.js"],_["Core/Axis/OrdinalAxis.js"],_["Series/OHLC/OHLCSeries.js"],_["Series/Flags/FlagsSeries.js"],_["Core/Chart/StockChart.js"]],function(G,B,X,U,$,Z,V,z,I){var E=G;E.Navigator=X,E.RangeSelector=U,E.Scrollbar=$,E.StockChart=E.stockChart=I.stockChart,B.compose(E.Series,E.Axis,E.Point),z.compose(E.Renderer),X.compose(E.Axis,E.Chart,E.Series),V.compose(E.Series),Z.compose(E.Axis,E.Series,E.Chart),U.compose(E.Axis,E.Chart),$.compose(E.Axis)}),et(_,"masters/highstock.src.js",[_["masters/highcharts.src.js"]],function(G){return G.product="Highstock",G}),_["masters/highstock.src.js"]._modules=_,_["masters/highstock.src.js"]},it.exports?(pt.default=pt,it.exports=ct.document?pt(ct):pt):(ht=function(){return pt(ct)}.call(rt,st,rt,it))===void 0||(it.exports=ht)},5322:(it,rt)=>{Object.defineProperty(rt,"__esModule",{value:!0}),rt.default=function(st){var ht=st.defaultOptions,ct=ht.plotOptions,pt={fillOpacity:.2,color:null,borderColor:null},ft={fillColor:null,lineColor:null,lineWidth:2};ht.plotOptions.column.states.select=pt,ht.plotOptions.area.states.select=pt,ht.plotOptions.bar.states.select=pt,ht.plotOptions.line.states.select=pt,ht.plotOptions.spline.states.select=pt,ht.plotOptions.scatter.marker={enabled:!0,radius:4,fillOpacity:.25,fillColor:null,lineColor:null,lineWidth:1,states:{select:{fillOpacity:.85,fillColor:null,lineColor:null},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1}}},ht.plotOptions.series={states:{select:pt}},ct.area.marker.states.select=ft,ct.line.marker.states.select=ft,ct.spline.marker.states.select=ft,ct.bubble.marker.states.select={fillOpacity:.25,fillColor:null,lineColor:null,lineWidth:1},st.timeUnits.month=26784e5,st.timeUnits.year=31556952e3}},5378:(it,rt,st)=>{st.d(rt,{A:()=>ct});var ht=/^(?:0|[1-9]\d*)$/;const ct=function(pt,ft){var _=typeof pt;return!!(ft=ft==null?9007199254740991:ft)&&(_=="number"||_!="symbol"&&ht.test(pt))&&pt>-1&&pt%1==0&&pt<ft}},5436:(it,rt,st)=>{st.d(rt,{A:()=>pt});var ht=st(123),ct=st(9600);const pt=(0,ht.A)(ct.A,"Map")},5860:(it,rt,st)=>{st.r(rt),st.d(rt,{default:()=>ft});var ht=st(4044),ct=st(6956),pt=st(7313);const ft=function(_){return typeof _=="string"||!(0,ct.A)(_)&&(0,pt.A)(_)&&(0,ht.A)(_)=="[object String]"}},6096:(it,rt,st)=>{st.d(rt,{A:()=>_});var ht=st(6979);const ct=function(et,G){for(var B=et.length;B--;)if((0,ht.A)(et[B][0],G))return B;return-1};var pt=Array.prototype.splice;function ft(et){var G=-1,B=et==null?0:et.length;for(this.clear();++G<B;){var X=et[G];this.set(X[0],X[1])}}ft.prototype.clear=function(){this.__data__=[],this.size=0},ft.prototype.delete=function(et){var G=this.__data__,B=ct(G,et);return!(B<0||(B==G.length-1?G.pop():pt.call(G,B,1),--this.size,0))},ft.prototype.get=function(et){var G=this.__data__,B=ct(G,et);return B<0?void 0:G[B][1]},ft.prototype.has=function(et){return ct(this.__data__,et)>-1},ft.prototype.set=function(et,G){var B=this.__data__,X=ct(B,et);return X<0?(++this.size,B.push([et,G])):B[X][1]=G,this};const _=ft},6124:(it,rt,st)=>{st.d(rt,{A:()=>ft});var ht=st(9465),ct=st(6979),pt=Object.prototype.hasOwnProperty;const ft=function(_,et,G){var B=_[et];pt.call(_,et)&&(0,ct.A)(B,G)&&(G!==void 0||et in _)||(0,ht.A)(_,et,G)}},6236:(it,rt,st)=>{var ht,ct,pt;pt=function(ft){var _=ft?ft._modules:{};function et(G,B,X,U){G.hasOwnProperty(B)||(G[B]=U.apply(null,X),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:B,module:G[B]}})))}et(_,"Core/Axis/Color/ColorAxisComposition.js",[_["Core/Color/Color.js"],_["Core/Utilities.js"]],function(G,B){var X,U=G.parse,$=B.addEvent,Z=B.extend,V=B.merge,z=B.pick,I=B.splat;return function(E){var M,P=[];function y(){var g=this,r=this.options;this.colorAxis=[],r.colorAxis&&(r.colorAxis=I(r.colorAxis),r.colorAxis.forEach(function(a,t){a.index=t,new M(g,a)}))}function h(g){var r,a,t=this,i=this.chart.colorAxis||[],o=function(s){var n=g.allItems.indexOf(s);n!==-1&&(t.destroyItem(g.allItems[n]),g.allItems.splice(n,1))},e=[];for(i.forEach(function(s){(r=s.options)&&r.showInLegend&&(r.dataClasses&&r.visible?e=e.concat(s.getDataClassLegendSymbols()):r.visible&&e.push(s),s.series.forEach(function(n){n.options.showInLegend&&!r.dataClasses||(n.options.legendType==="point"?n.points.forEach(function(l){o(l)}):o(n))}))}),a=e.length;a--;)g.allItems.unshift(e[a])}function f(g){g.visible&&g.item.legendColor&&g.item.legendItem.symbol.attr({fill:g.item.legendColor})}function m(){var g=this.chart.colorAxis;g&&g.forEach(function(r){r.update({},arguments[2])})}function u(){(this.chart.colorAxis&&this.chart.colorAxis.length||this.colorAttribs)&&this.translateColors()}function v(){var g=this.axisTypes;g?g.indexOf("colorAxis")===-1&&g.push("colorAxis"):this.axisTypes=["colorAxis"]}function S(g){var r=this,a=g?"show":"hide";r.visible=r.options.visible=!!g,["graphic","dataLabel"].forEach(function(t){r[t]&&r[t][a]()}),this.series.buildKDTree()}function w(){var g=this,r=this.data.length?this.data:this.points,a=this.options.nullColor,t=this.colorAxis,i=this.colorKey;r.forEach(function(o){var e=o.getNestedProperty(i),s=o.options.color||(o.isNull||o.value===null?a:t&&e!==void 0?t.toColor(e,o):o.color||g.color);s&&o.color!==s&&(o.color=s,g.options.legendType==="point"&&o.legendItem&&o.legendItem.label&&g.chart.legend.colorizeItem(o,o.visible))})}function x(){this.elem.attr("fill",U(this.start).tweenTo(U(this.end),this.pos),void 0,!0)}function c(){this.elem.attr("stroke",U(this.start).tweenTo(U(this.end),this.pos),void 0,!0)}E.compose=function(g,r,a,t,i){if(M||(M=g),P.indexOf(r)===-1){P.push(r);var o=r.prototype;o.collectionsWithUpdate.push("colorAxis"),o.collectionsWithInit.colorAxis=[o.addColorAxis],$(r,"afterGetAxes",y),function(s){var n=s.prototype.createAxis;s.prototype.createAxis=function(l,b){if(l!=="colorAxis")return n.apply(this,arguments);var k=new M(this,V(b.axis,{index:this[l].length,isX:!1}));return this.isDirtyLegend=!0,this.axes.forEach(function(D){D.series=[]}),this.series.forEach(function(D){D.bindAxes(),D.isDirtyData=!0}),z(b.redraw,!0)&&this.redraw(b.animation),k}}(r)}if(P.indexOf(a)===-1){P.push(a);var e=a.prototype;e.fillSetter=x,e.strokeSetter=c}P.indexOf(t)===-1&&(P.push(t),$(t,"afterGetAllItems",h),$(t,"afterColorizeItem",f),$(t,"afterUpdate",m)),P.indexOf(i)===-1&&(P.push(i),Z(i.prototype,{optionalAxis:"colorAxis",translateColors:w}),Z(i.prototype.pointClass.prototype,{setVisible:S}),$(i,"afterTranslate",u,{order:1}),$(i,"bindAxes",v))},E.pointSetVisible=S}(X||(X={})),X}),et(_,"Core/Axis/Color/ColorAxisDefaults.js",[],function(){return{lineWidth:0,minPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:"#999999"},labels:{overflow:"justify",rotation:0},minColor:"#e6ebf5",maxColor:"#003399",tickLength:5,showInLegend:!0}}),et(_,"Core/Axis/Color/ColorAxis.js",[_["Core/Axis/Axis.js"],_["Core/Color/Color.js"],_["Core/Axis/Color/ColorAxisComposition.js"],_["Core/Axis/Color/ColorAxisDefaults.js"],_["Core/Globals.js"],_["Core/Legend/LegendSymbol.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,X,U,$,Z,V,z){var I,E=this&&this.__extends||(I=function(v,S){return I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,x){w.__proto__=x}||function(w,x){for(var c in x)x.hasOwnProperty(c)&&(w[c]=x[c])},I(v,S)},function(v,S){function w(){this.constructor=v}I(v,S),v.prototype=S===null?Object.create(S):(w.prototype=S.prototype,new w)}),M=B.parse,P=V.series,y=z.extend,h=z.isNumber,f=z.merge,m=z.pick,u=function(v){function S(w,x){var c=v.call(this,w,x)||this;return c.beforePadding=!1,c.chart=void 0,c.coll="colorAxis",c.dataClasses=void 0,c.name="",c.options=void 0,c.stops=void 0,c.visible=!0,c.init(w,x),c}return E(S,v),S.compose=function(w,x,c,g){X.compose(S,w,x,c,g)},S.prototype.init=function(w,x){var c=this,g=w.options.legend||{},r=x.layout?x.layout!=="vertical":g.layout!=="vertical",a=x.visible,t=f(S.defaultColorAxisOptions,x,{showEmpty:!1,title:null,visible:g.enabled&&a!==!1});c.coll="colorAxis",c.side=x.side||r?2:1,c.reversed=x.reversed||!r,c.opposite=!r,v.prototype.init.call(this,w,t),c.userOptions.visible=a,x.dataClasses&&c.initDataClasses(x),c.initStops(),c.horiz=r,c.zoomEnabled=!1},S.prototype.initDataClasses=function(w){var x,c=this,g=c.chart,r=c.legendItem=c.legendItem||{},a=w.dataClasses.length,t=c.options,i=0,o=g.options.chart.colorCount;c.dataClasses=x=[],r.labels=[],(w.dataClasses||[]).forEach(function(e,s){var n;e=f(e),x.push(e),!g.styledMode&&e.color||(t.dataClassColor==="category"?(g.styledMode||(n=g.options.colors,o=n.length,e.color=n[i]),e.colorIndex=i,++i===o&&(i=0)):e.color=M(t.minColor).tweenTo(M(t.maxColor),a<2?.5:s/(a-1)))})},S.prototype.hasData=function(){return!!(this.tickPositions||[]).length},S.prototype.setTickPositions=function(){if(!this.dataClasses)return v.prototype.setTickPositions.call(this)},S.prototype.initStops=function(){var w=this;w.stops=w.options.stops||[[0,w.options.minColor],[1,w.options.maxColor]],w.stops.forEach(function(x){x.color=M(x[1])})},S.prototype.setOptions=function(w){v.prototype.setOptions.call(this,w),this.options.crosshair=this.options.marker},S.prototype.setAxisSize=function(){var w,x,c,g,r=this,a=r.legendItem&&r.legendItem.symbol,t=r.chart,i=t.options.legend||{};a?(this.left=w=a.attr("x"),this.top=x=a.attr("y"),this.width=c=a.attr("width"),this.height=g=a.attr("height"),this.right=t.chartWidth-w-c,this.bottom=t.chartHeight-x-g,this.len=this.horiz?c:g,this.pos=this.horiz?w:x):this.len=(this.horiz?i.symbolWidth:i.symbolHeight)||S.defaultLegendLength},S.prototype.normalizedValue=function(w){var x=this;return x.logarithmic&&(w=x.logarithmic.log2lin(w)),1-(x.max-w)/(x.max-x.min||1)},S.prototype.toColor=function(w,x){var c,g,r,a,t,i,o=this,e=o.dataClasses,s=o.stops;if(e){for(i=e.length;i--;)if(g=(t=e[i]).from,r=t.to,(g===void 0||w>=g)&&(r===void 0||w<=r)){a=t.color,x&&(x.dataClass=i,x.colorIndex=t.colorIndex);break}}else{for(c=o.normalizedValue(w),i=s.length;i--&&!(c>s[i][0]););g=s[i]||s[i+1],c=1-((r=s[i+1]||g)[0]-c)/(r[0]-g[0]||1),a=g.color.tweenTo(r.color,c)}return a},S.prototype.getOffset=function(){var w=this,x=w.legendItem&&w.legendItem.group,c=w.chart.axisOffset[w.side];if(x){w.axisParent=x,v.prototype.getOffset.call(this);var g=this.chart.legend;g.allItems.forEach(function(r){r instanceof S&&r.drawLegendSymbol(g,r)}),g.render(),this.chart.getMargins(!0),w.added||(w.added=!0,w.labelLeft=0,w.labelRight=w.width),w.chart.axisOffset[w.side]=c}},S.prototype.setLegendColor=function(){var w=this,x=w.horiz,c=w.reversed,g=c?1:0,r=c?0:1,a=x?[g,0,r,0]:[0,r,0,g];w.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:w.stops}},S.prototype.drawLegendSymbol=function(w,x){var c=x.legendItem||{},g=w.padding,r=w.options,a=m(r.itemDistance,10),t=this.horiz,i=m(r.symbolWidth,t?S.defaultLegendLength:12),o=m(r.symbolHeight,t?12:S.defaultLegendLength),e=m(r.labelPadding,t?16:30);this.setLegendColor(),c.symbol||(c.symbol=this.chart.renderer.rect(0,w.baseline-11,i,o).attr({zIndex:1}).add(c.group)),c.labelWidth=i+g+(t?a:this.options.labels.x+this.maxLabelLength),c.labelHeight=o+g+(t?e:0)},S.prototype.setState=function(w){this.series.forEach(function(x){x.setState(w)})},S.prototype.setVisible=function(){},S.prototype.getSeriesExtremes=function(){var w,x,c,g,r,a,t,i,o=this.series,e=o.length;for(this.dataMin=1/0,this.dataMax=-1/0;e--;){if(x=(a=o[e]).colorKey=m(a.options.colorKey,a.colorKey,a.pointValKey,a.zoneAxis,"y"),g=a.pointArrayMap,r=a[x+"Min"]&&a[x+"Max"],a[x+"Data"])w=a[x+"Data"];else if(g){if(w=[],c=g.indexOf(x),t=a.yData,c>=0&&t)for(i=0;i<t.length;i++)w.push(m(t[i][c],t[i]))}else w=a.yData;if(r)a.minColorValue=a[x+"Min"],a.maxColorValue=a[x+"Max"];else{var s=P.prototype.getExtremes.call(a,w);a.minColorValue=s.dataMin,a.maxColorValue=s.dataMax}a.minColorValue!==void 0&&(this.dataMin=Math.min(this.dataMin,a.minColorValue),this.dataMax=Math.max(this.dataMax,a.maxColorValue)),r||P.prototype.applyExtremes.call(a)}},S.prototype.drawCrosshair=function(w,x){var c,g=this,r=g.legendItem||{},a=x&&x.plotX,t=x&&x.plotY,i=g.pos,o=g.len;x&&((c=g.toPixels(x.getNestedProperty(x.series.colorKey)))<i?c=i-2:c>i+o&&(c=i+o+2),x.plotX=c,x.plotY=g.len-c,v.prototype.drawCrosshair.call(this,w,x),x.plotX=a,x.plotY=t,g.cross&&!g.cross.addedToColorAxis&&r.group&&(g.cross.addClass("highcharts-coloraxis-marker").add(r.group),g.cross.addedToColorAxis=!0,g.chart.styledMode||typeof g.crosshair!="object"||g.cross.attr({fill:g.crosshair.color})))},S.prototype.getPlotLinePath=function(w){var x=this,c=x.left,g=w.translatedValue,r=x.top;return h(g)?x.horiz?[["M",g-4,r-6],["L",g+4,r-6],["L",g,r],["Z"]]:[["M",c,g],["L",c-6,g+6],["L",c-6,g-6],["Z"]]:v.prototype.getPlotLinePath.call(this,w)},S.prototype.update=function(w,x){var c=this,g=c.chart.legend;this.series.forEach(function(r){r.isDirtyData=!0}),(w.dataClasses&&g.allItems||c.dataClasses)&&c.destroyItems(),v.prototype.update.call(this,w,x),c.legendItem&&c.legendItem.label&&(c.setLegendColor(),g.colorizeItem(this,!0))},S.prototype.destroyItems=function(){var w=this,x=w.chart,c=w.legendItem||{};if(c.label)x.legend.destroyItem(w);else if(c.labels)for(var g=0,r=c.labels;g<r.length;g++){var a=r[g];x.legend.destroyItem(a)}x.isDirtyLegend=!0},S.prototype.destroy=function(){this.chart.isDirtyLegend=!0,this.destroyItems(),v.prototype.destroy.apply(this,[].slice.call(arguments))},S.prototype.remove=function(w){this.destroyItems(),v.prototype.remove.call(this,w)},S.prototype.getDataClassLegendSymbols=function(){var w,x=this,c=x.chart,g=x.legendItem&&x.legendItem.labels||[],r=c.options.legend,a=m(r.valueDecimals,-1),t=m(r.valueSuffix,""),i=function(o){return x.series.reduce(function(e,s){return e.push.apply(e,s.points.filter(function(n){return n.dataClass===o})),e},[])};return g.length||x.dataClasses.forEach(function(o,e){var s=o.from,n=o.to,l=c.numberFormatter,b=!0;w="",s===void 0?w="< ":n===void 0&&(w="> "),s!==void 0&&(w+=l(s,a)+t),s!==void 0&&n!==void 0&&(w+=" - "),n!==void 0&&(w+=l(n,a)+t),g.push(y({chart:c,name:w,options:{},drawLegendSymbol:Z.drawRectangle,visible:!0,isDataClass:!0,setState:function(k){for(var D=0,d=i(e);D<d.length;D++)d[D].setState(k)},setVisible:function(){this.visible=b=x.visible=!b;for(var k=0,D=i(e);k<D.length;k++)D[k].setVisible(b);c.legend.colorizeItem(this,b)}},o))}),g},S.defaultColorAxisOptions=U,S.defaultLegendLength=200,S.keepProps=["legendItem"],S}(G);return Array.prototype.push.apply(G.keepProps,u.keepProps),u}),et(_,"Maps/MapNavigationDefaults.js",[_["Core/Defaults.js"],_["Core/Utilities.js"]],function(G,B){var X={buttonOptions:{alignTo:"plotBox",align:"left",verticalAlign:"top",x:0,width:18,height:18,padding:5,style:{fontSize:"15px",fontWeight:"bold"},theme:{"stroke-width":1,"text-align":"center"}},buttons:{zoomIn:{onclick:function(){this.mapZoom(.5)},text:"+",y:0},zoomOut:{onclick:function(){this.mapZoom(2)},text:"-",y:28}},mouseWheelSensitivity:1.1};return(0,B.extend)(G.defaultOptions.lang,{zoomIn:"Zoom in",zoomOut:"Zoom out"}),G.defaultOptions.mapNavigation=X,X}),et(_,"Maps/MapNavigation.js",[_["Core/Chart/Chart.js"],_["Core/Globals.js"],_["Core/Utilities.js"]],function(G,B,X){var U=B.doc,$=X.addEvent,Z=X.extend,V=X.isNumber,z=X.merge,I=X.objectEach,E=X.pick;function M(y){y&&(y.preventDefault&&y.preventDefault(),y.stopPropagation&&y.stopPropagation(),y.cancelBubble=!0)}function P(y){this.navButtons=[],this.init(y)}P.prototype.init=function(y){this.chart=y},P.prototype.update=function(y){var h,f=this,m=this.chart,u=m.options.mapNavigation,v=function(w){this.handler.call(m,w),M(w)},S=f.navButtons;for(y&&(u=m.options.mapNavigation=z(m.options.mapNavigation,y));S.length;)S.pop().destroy();E(u.enableButtons,u.enabled)&&!m.renderer.forExport&&(f.navButtonsGroup||(f.navButtonsGroup=m.renderer.g().attr({zIndex:4}).add()),I(u.buttons,function(w,x){w=z(u.buttonOptions,w),!m.styledMode&&w.theme&&((h=w.theme).style=z(w.theme.style,w.style));var c=m.renderer.button(w.text||"",0,0,v,h,void 0,void 0,void 0,x==="zoomIn"?"topbutton":"bottombutton").addClass("highcharts-map-navigation highcharts-"+{zoomIn:"zoom-in",zoomOut:"zoom-out"}[x]).attr({width:w.width,height:w.height,title:m.options.lang[x],padding:w.padding,zIndex:5}).add(f.navButtonsGroup);if(c.handler=w.onclick,$(c.element,"dblclick",M),S.push(c),Z(w,{width:c.width,height:2*c.height}),m.hasLoaded)c.align(w,!1,w.alignTo);else var g=$(m,"load",function(){c.element&&c.align(w,!1,w.alignTo),g()})}),m.hasLoaded||$(m,"render",function(){var w,x,c=m.exportingGroup&&m.exportingGroup.getBBox();if(c){var g=f.navButtonsGroup.getBBox();if(w=c,!((x=g).x>=w.x+w.width||x.x+x.width<=w.x||x.y>=w.y+w.height||x.y+x.height<=w.y)){var r=-g.y-g.height+c.y-5,a=c.y+c.height-g.y+5,t=u.buttonOptions&&u.buttonOptions.verticalAlign;f.navButtonsGroup.attr({translateY:t==="bottom"?r:a})}}})),this.updateEvents(u)},P.prototype.updateEvents=function(y){var h=this.chart;E(y.enableDoubleClickZoom,y.enabled)||y.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||$(h.container,"dblclick",function(f){h.pointer.onContainerDblClick(f)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick()),E(y.enableMouseWheelZoom,y.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||$(h.container,U.onwheel!==void 0?"wheel":U.onmousewheel!==void 0?"mousewheel":"DOMMouseScroll",function(f){return h.pointer.inClass(f.target,"highcharts-no-mousewheel")||(h.pointer.onContainerMouseWheel(f),M(f)),!1}):this.unbindMouseWheel&&(this.unbindMouseWheel=this.unbindMouseWheel())},Z(G.prototype,{fitToBox:function(y,h){return[["x","width"],["y","height"]].forEach(function(f){var m=f[0],u=f[1];y[m]+y[u]>h[m]+h[u]&&(y[u]>h[u]?(y[u]=h[u],y[m]=h[m]):y[m]=h[m]+h[u]-y[u]),y[u]>h[u]&&(y[u]=h[u]),y[m]<h[m]&&(y[m]=h[m])}),y},mapZoom:function(y,h,f,m,u){this.mapView&&(V(y)&&(y=Math.log(y)/Math.log(.5)),this.mapView.zoomBy(y,V(h)&&V(f)?this.mapView.projection.inverse([h,f]):void 0,V(m)&&V(u)?[m,u]:void 0))}}),$(G,"beforeRender",function(){this.mapNavigation=new P(this),this.mapNavigation.update()}),B.MapNavigation=P}),et(_,"Maps/MapPointer.js",[_["Core/Pointer.js"],_["Core/Utilities.js"]],function(G,B){var X,U=B.defined,$=B.extend,Z=B.pick,V=B.wrap,z=G.prototype.normalize,I=0;$(G.prototype,{normalize:function(E,M){var P=this.chart;if(E=z.call(this,E,M),P&&P.mapView){var y=P.mapView.pixelsToLonLat({x:E.chartX-P.plotLeft,y:E.chartY-P.plotTop});y&&$(E,y)}return E},onContainerDblClick:function(E){var M=this.chart;E=this.normalize(E),M.options.mapNavigation.enableDoubleClickZoomTo?M.pointer.inClass(E.target,"highcharts-tracker")&&M.hoverPoint&&M.hoverPoint.zoomTo():M.isInsidePlot(E.chartX-M.plotLeft,E.chartY-M.plotTop)&&M.mapZoom(.5,void 0,void 0,E.chartX,E.chartY)},onContainerMouseWheel:function(E){var M=this.chart;E=this.normalize(E);var P=U(E.wheelDelta)&&-E.wheelDelta/120||E.deltaY||E.detail;Math.abs(P)>=1&&(I+=Math.abs(P),X&&clearTimeout(X),X=setTimeout(function(){I=0},50)),I<10&&M.isInsidePlot(E.chartX-M.plotLeft,E.chartY-M.plotTop)&&M.mapView&&M.mapView.zoomBy((M.options.mapNavigation.mouseWheelSensitivity-1)*-P,void 0,[E.chartX,E.chartY],!(Math.abs(P)<1)&&void 0)}}),V(G.prototype,"zoomOption",function(E){var M=this.chart.options.mapNavigation;Z(M.enableTouchZoom,M.enabled)&&(this.chart.options.chart.zooming.pinchType="xy"),E.apply(this,[].slice.call(arguments,1))}),V(G.prototype,"pinchTranslate",function(E,M,P,y,h,f,m){var u;E.call(this,M,P,y,h,f,m),this.chart.options.chart.type==="map"&&this.hasZoom&&(u=y.scaleX>y.scaleY,this.pinchTranslateDirection(!u,M,P,y,h,f,m,u?y.scaleX:y.scaleY))})}),et(_,"Series/ColorMapComposition.js",[_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B){var X,U=G.seriesTypes.column.prototype,$=B.addEvent,Z=B.defined;return function(V){var z=[];function I(E){var M=this;M.moveToTopOnHover&&M.graphic&&M.graphic.attr({zIndex:E&&E.state==="hover"?1:0})}V.pointMembers={dataLabelOnNull:!0,moveToTopOnHover:!0,isValid:function(){return this.value!==null&&this.value!==1/0&&this.value!==-1/0&&(this.value===void 0||!isNaN(this.value))}},V.seriesMembers={colorKey:"value",axisTypes:["xAxis","yAxis","colorAxis"],parallelArrays:["x","y","value"],pointArrayMap:["value"],trackerGroups:["group","markerGroup","dataLabelsGroup"],colorAttribs:function(E){var M={};return!Z(E.color)||E.state&&E.state!=="normal"||(M[this.colorProp||"fill"]=E.color),M},pointAttribs:U.pointAttribs},V.compose=function(E){var M=E.prototype.pointClass;return z.indexOf(M)===-1&&(z.push(M),$(M,"afterSetState",I)),E}}(X||(X={})),X}),et(_,"Maps/MapSymbols.js",[_["Core/Renderer/SVG/SVGRenderer.js"]],function(G){var B=G.prototype.symbols;function X(U,$,Z,V,z,I,E,M){return[["M",U+z,$],["L",U+Z-I,$],["C",U+Z-I/2,$,U+Z,$+I/2,U+Z,$+I],["L",U+Z,$+V-E],["C",U+Z,$+V-E/2,U+Z-E/2,$+V,U+Z-E,$+V],["L",U+M,$+V],["C",U+M/2,$+V,U,$+V-M/2,U,$+V-M],["L",U,$+z],["C",U,$+z/2,U+z/2,$,U+z,$],["Z"]]}return B.bottombutton=function(U,$,Z,V,z){var I=z&&z.r||0;return X(U-1,$-1,Z,V,0,0,I,I)},B.topbutton=function(U,$,Z,V,z){var I=z&&z.r||0;return X(U-1,$-1,Z,V,I,I,0,0)},B}),et(_,"Core/Chart/MapChart.js",[_["Core/Chart/Chart.js"],_["Core/Defaults.js"],_["Core/Renderer/SVG/SVGRenderer.js"],_["Core/Utilities.js"]],function(G,B,X,U){var $,Z=this&&this.__extends||($=function(M,P){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,h){y.__proto__=h}||function(y,h){for(var f in h)h.hasOwnProperty(f)&&(y[f]=h[f])},$(M,P)},function(M,P){function y(){this.constructor=M}$(M,P),M.prototype=P===null?Object.create(P):(y.prototype=P.prototype,new y)}),V=B.getOptions,z=U.merge,I=U.pick,E=function(M){function P(){return M!==null&&M.apply(this,arguments)||this}return Z(P,M),P.prototype.init=function(y,h){var f=V().credits,m=z({chart:{panning:{enabled:!0,type:"xy"},type:"map"},credits:{mapText:I(f.mapText,' © <a href="{geojson.copyrightUrl}">{geojson.copyrightShort}</a>'),mapTextFull:I(f.mapTextFull,"{geojson.copyright}")},mapView:{},tooltip:{followTouchMove:!1}},y);M.prototype.init.call(this,m,h)},P}(G);return function(M){M.maps={},M.mapChart=function(P,y,h){return new M(P,y,h)},M.splitPath=function(P){var y;return y=typeof P=="string"?(P=P.replace(/([A-Za-z])/g," $1 ").replace(/^\s*/,"").replace(/\s*$/,"")).split(/[ ,;]+/).map(function(h){return/[A-za-z]/.test(h)?h:parseFloat(h)}):P,X.prototype.pathToSegments(y)}}(E||(E={})),E}),et(_,"Maps/MapUtilities.js",[],function(){return{boundsFromPath:function(G){var B,X=-Number.MAX_VALUE,U=Number.MAX_VALUE,$=-Number.MAX_VALUE,Z=Number.MAX_VALUE;if(G.forEach(function(V){var z=V[V.length-2],I=V[V.length-1];typeof z=="number"&&typeof I=="number"&&(U=Math.min(U,z),X=Math.max(X,z),Z=Math.min(Z,I),$=Math.max($,I),B=!0)}),B)return{x1:U,y1:Z,x2:X,y2:$}},pointInPolygon:function(G,B){var X,U,$=!1,Z=G.x,V=G.y;for(X=0,U=B.length-1;X<B.length;U=X++)B[X][1]>V!=B[U][1]>V&&Z<(B[U][0]-B[X][0])*(V-B[X][1])/(B[U][1]-B[X][1])+B[X][0]&&($=!$);return $}}}),et(_,"Series/Map/MapPoint.js",[_["Series/ColorMapComposition.js"],_["Maps/MapUtilities.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,X,U){var $,Z=this&&this.__extends||($=function(y,h){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var u in m)m.hasOwnProperty(u)&&(f[u]=m[u])},$(y,h)},function(y,h){function f(){this.constructor=y}$(y,h),y.prototype=h===null?Object.create(h):(f.prototype=h.prototype,new f)}),V=B.boundsFromPath,z=X.seriesTypes.scatter,I=U.extend,E=U.isNumber,M=U.pick,P=function(y){function h(){var f=y!==null&&y.apply(this,arguments)||this;return f.options=void 0,f.path=void 0,f.series=void 0,f}return Z(h,y),h.getProjectedPath=function(f,m){return f.projectedPath||(m&&f.geometry?(m.hasCoordinates=!0,f.projectedPath=m.path(f.geometry)):f.projectedPath=f.path),f.projectedPath||[]},h.prototype.applyOptions=function(f,m){var u=this.series,v=y.prototype.applyOptions.call(this,f,m),S=u.joinBy;if(u.mapData&&u.mapMap){var w=S[1],x=y.prototype.getNestedProperty.call(v,w),c=x!==void 0&&u.mapMap[x];c?I(v,c):u.pointArrayMap.indexOf("value")!==-1&&(v.value=v.value||null)}return v},h.prototype.getProjectedBounds=function(f){var m=h.getProjectedPath(this,f),u=V(m),v=this.properties;if(u){var S=v&&v["hc-middle-x"],w=v&&v["hc-middle-y"];u.midX=u.x1+(u.x2-u.x1)*M(this.middleX,E(S)?S:.5);var x=M(this.middleY,E(w)?w:.5);return this.geometry||(x=1-x),u.midY=u.y2-(u.y2-u.y1)*x,u}},h.prototype.onMouseOver=function(f){U.clearTimeout(this.colorInterval),!this.isNull&&this.visible||this.series.options.nullInteraction?y.prototype.onMouseOver.call(this,f):this.series.onMouseOut(f)},h.prototype.setVisible=function(f){var m=f?"show":"hide";this.visible=this.options.visible=!!f,this.dataLabel&&this.dataLabel[m](),this.graphic&&this.graphic.attr(this.series.pointAttribs(this))},h.prototype.zoomTo=function(){var f=this,m=f.series.chart,u=m.mapView,v=f.bounds;if(u&&v){var S=E(f.insetIndex)&&u.insets[f.insetIndex];if(S){var w=S.projectedUnitsToPixels({x:v.x1,y:v.y1}),x=S.projectedUnitsToPixels({x:v.x2,y:v.y2}),c=u.pixelsToProjectedUnits({x:w.x,y:w.y}),g=u.pixelsToProjectedUnits({x:x.x,y:x.y});v={x1:c.x,y1:c.y,x2:g.x,y2:g.y}}u.fitToBounds(v,void 0,!1),f.series.isDirty=!0,m.redraw()}},h}(z.prototype.pointClass);return I(P.prototype,{dataLabelOnNull:G.pointMembers.dataLabelOnNull,moveToTopOnHover:G.pointMembers.moveToTopOnHover,isValid:G.pointMembers.isValid}),P}),et(_,"Maps/MapViewOptionsDefault.js",[],function(){return{center:[0,0],fitToGeometry:void 0,maxZoom:void 0,padding:0,projection:{name:void 0,parallels:void 0,rotation:void 0},zoom:void 0}}),et(_,"Maps/MapViewInsetsOptionsDefault.js",[],function(){return{borderColor:"#cccccc",borderWidth:1,center:[0,0],padding:"10%",relativeTo:"mapBoundingBox",units:"percent"}}),et(_,"Extensions/GeoJSON.js",[_["Core/Chart/Chart.js"],_["Core/FormatUtilities.js"],_["Core/Globals.js"],_["Core/Utilities.js"]],function(G,B,X,U){var $=B.format,Z=X.win,V=U.error,z=U.extend,I=U.merge,E=U.wrap;function M(y,h){h||(h=Object.keys(y.objects)[0]);var f=y.objects[h];if(f["hc-decoded-geojson"])return f["hc-decoded-geojson"];var m=y.arcs;if(y.transform){var u=y.transform,v=u.scale,S=u.translate;m=y.arcs.map(function(g){var r=0,a=0;return g.map(function(t){return(t=t.slice())[0]=(r+=t[0])*v[0]+S[0],t[1]=(a+=t[1])*v[1]+S[1],t})})}var w=function(g){return typeof g[0]=="number"?g.reduce(function(r,a,t){var i=a<0?m[~a]:m[a];return a<0?(i=i.slice(0,t===0?i.length:i.length-1)).reverse():t&&(i=i.slice(1)),r.concat(i)},[]):g.map(w)},x=f.geometries.map(function(g){return{type:"Feature",properties:g.properties,geometry:{type:g.type,coordinates:g.coordinates||w(g.arcs)}}}),c={type:"FeatureCollection",copyright:y.copyright,copyrightShort:y.copyrightShort,copyrightUrl:y.copyrightUrl,features:x,"hc-recommended-mapview":f["hc-recommended-mapview"],bbox:y.bbox,title:y.title};return f["hc-decoded-geojson"]=c,c}function P(y,h,f){h===void 0&&(h="map");var m=[],u=y.type==="Topology"?M(y):y;return u.features.forEach(function(v){var S,w=v.geometry||{},x=w.type,c=w.coordinates,g=v.properties;if((h!=="map"&&h!=="mapbubble"||x!=="Polygon"&&x!=="MultiPolygon")&&(h!=="mapline"||x!=="LineString"&&x!=="MultiLineString")?h==="mappoint"&&x==="Point"&&c.length&&(S={geometry:{coordinates:c,type:x}}):c.length&&(S={geometry:{coordinates:c,type:x}}),S){var r=g&&(g.name||g.NAME),a=g&&g.lon,t=g&&g.lat;m.push(z(S,{lat:typeof t=="number"?t:void 0,lon:typeof a=="number"?a:void 0,name:typeof r=="string"?r:void 0,properties:g}))}}),f&&u.copyrightShort&&(f.chart.mapCredits=$(f.chart.options.credits.mapText,{geojson:u}),f.chart.mapCreditsFull=$(f.chart.options.credits.mapTextFull,{geojson:u})),m}return G.prototype.transformFromLatLon=function(y,h){var f=this.options.chart.proj4||Z.proj4;if(f){var m=h.jsonmarginX,u=m===void 0?0:m,v=h.jsonmarginY,S=v===void 0?0:v,w=h.jsonres,x=w===void 0?1:w,c=h.scale,g=c===void 0?1:c,r=h.xoffset,a=r===void 0?0:r,t=h.xpan,i=t===void 0?0:t,o=h.yoffset,e=o===void 0?0:o,s=h.ypan,n=s===void 0?0:s,l=f(h.crs,[y.lon,y.lat]),b=h.cosAngle||h.rotation&&Math.cos(h.rotation),k=h.sinAngle||h.rotation&&Math.sin(h.rotation),D=h.rotation?[l[0]*b+l[1]*k,-l[0]*k+l[1]*b]:l;return{x:((D[0]-a)*g+i)*x+u,y:-(((e-D[1])*g+n)*x-S)}}V(21,!1,this)},G.prototype.transformToLatLon=function(y,h){var f=this.options.chart.proj4||Z.proj4;if(f){if(y.y!==null){var m=h.jsonmarginX,u=m===void 0?0:m,v=h.jsonmarginY,S=v===void 0?0:v,w=h.jsonres,x=w===void 0?1:w,c=h.scale,g=c===void 0?1:c,r=h.xoffset,a=r===void 0?0:r,t=h.xpan,i=t===void 0?0:t,o=h.yoffset,e=o===void 0?0:o,s=h.ypan,n=s===void 0?0:s,l={x:((y.x-u)/x-i)/g+a,y:((y.y-S)/x+n)/g+e},b=h.cosAngle||h.rotation&&Math.cos(h.rotation),k=h.sinAngle||h.rotation&&Math.sin(h.rotation),D=f(h.crs,"WGS84",h.rotation?{x:l.x*b+l.y*-k,y:l.x*k+l.y*b}:l);return{lat:D.y,lon:D.x}}}else V(21,!1,this)},G.prototype.fromPointToLatLon=function(y){return this.mapView&&this.mapView.projectedUnitsToLonLat(y)},G.prototype.fromLatLonToPoint=function(y){return this.mapView&&this.mapView.lonLatToProjectedUnits(y)},E(G.prototype,"addCredits",function(y,h){h=I(!0,this.options.credits,h),this.mapCredits&&(h.href=null),y.call(this,h),this.credits&&this.mapCreditsFull&&this.credits.attr({title:this.mapCreditsFull})}),X.geojson=P,X.topo2geo=M,{geojson:P,topo2geo:M}}),et(_,"Core/Geometry/PolygonClip.js",[],function(){var G,B=function(U,$,Z){return($[0]-U[0])*(Z[1]-U[1])>($[1]-U[1])*(Z[0]-U[0])},X=function(U,$,Z,V){var z=[U[0]-$[0],U[1]-$[1]],I=[Z[0]-V[0],Z[1]-V[1]],E=U[0]*$[1]-U[1]*$[0],M=Z[0]*V[1]-Z[1]*V[0],P=1/(z[0]*I[1]-z[1]*I[0]),y=[(E*I[0]-M*z[0])*P,(E*I[1]-M*z[1])*P];return y.isIntersection=!0,y};return function(U){U.clipLineString=function($,Z){for(var V=[],z=U.clipPolygon($,Z,!1),I=1;I<z.length;I++)z[I].isIntersection&&z[I-1].isIntersection&&(V.push(z.splice(0,I)),I=0),I===z.length-1&&V.push(z);return V},U.clipPolygon=function($,Z,V){V===void 0&&(V=!0);for(var z,I,E,M=Z[Z.length-1],P=$,y=0;y<Z.length;y++){var h=P;z=Z[y],P=[],I=V?h[h.length-1]:h[0];for(var f=0;f<h.length;f++)E=h[f],B(M,z,E)?(B(M,z,I)||P.push(X(M,z,I,E)),P.push(E)):B(M,z,I)&&P.push(X(M,z,I,E)),I=E;M=z}return P}}(G||(G={})),G}),et(_,"Maps/Projections/LambertConformalConic.js",[],function(){var G=Math.sign||function(V){return V===0?0:V>0?1:-1},B=63.78137,X=Math.PI/180,U=Math.PI/2,$=1e-6,Z=function(V){return Math.tan((U+V)/2)};return function(){function V(z){var I,E=(z.parallels||[]).map(function(f){return f*X}),M=E[0]||0,P=(I=E[1])!==null&&I!==void 0?I:M,y=Math.cos(M);typeof z.projectedBounds=="object"&&(this.projectedBounds=z.projectedBounds);var h=M===P?Math.sin(M):Math.log(y/Math.cos(P))/Math.log(Z(P)/Z(M));Math.abs(h)<1e-10&&(h=1e-10*(G(h)||1)),this.n=h,this.c=y*Math.pow(Z(M),h)/h}return V.prototype.forward=function(z){var I=z[0]*X,E=this,M=E.c,P=E.n,y=E.projectedBounds,h=z[1]*X;M>0?h<-U+$&&(h=-U+$):h>U-$&&(h=U-$);var f=M/Math.pow(Z(h),P),m=f*Math.sin(P*I)*B,u=(M-f*Math.cos(P*I))*B,v=[m,u];return y&&(m<y.x1||m>y.x2||u<y.y1||u>y.y2)&&(v.outside=!0),v},V.prototype.inverse=function(z){var I=z[0]/B,E=z[1]/B,M=this.c,P=this.n,y=M-E,h=G(P)*Math.sqrt(I*I+y*y),f=Math.atan2(I,Math.abs(y))*G(y);return y*P<0&&(f-=Math.PI*G(I)*G(y)),[f/P/X,(2*Math.atan(Math.pow(M/h,1/P))-U)/X]},V}()}),et(_,"Maps/Projections/EqualEarth.js",[],function(){var G=1.340264,B=-.081106,X=893e-6,U=.003796,$=Math.sqrt(3)/2,Z=74.03120656864502;return function(){function V(){this.bounds={x1:-200.37508342789243,x2:200.37508342789243,y1:-97.52595454902263,y2:97.52595454902263}}return V.prototype.forward=function(z){var I=Math.PI/180,E=Math.asin($*Math.sin(z[1]*I)),M=E*E,P=M*M*M;return[z[0]*I*Math.cos(E)*Z/($*(G+3*B*M+P*(7*X+9*U*M))),E*Z*(G+B*M+P*(X+U*M))]},V.prototype.inverse=function(z){var I,E,M,P,y=z[0]/Z,h=z[1]/Z,f=180/Math.PI,m=h;for(P=0;P<12&&(m-=M=(m*(G+B*(I=m*m)+(E=I*I*I)*(X+U*I))-h)/(G+3*B*I+E*(7*X+9*U*I)),!(Math.abs(M)<1e-9));++P);return[f*$*y*(G+3*B*(I=m*m)+(E=I*I*I)*(7*X+9*U*I))/Math.cos(m),f*Math.asin(Math.sin(m)/$)]},V}()}),et(_,"Maps/Projections/Miller.js",[],function(){var G=Math.PI/4,B=Math.PI/180,X=63.78137;return function(){function U(){this.bounds={x1:-200.37508342789243,x2:200.37508342789243,y1:-146.91480769173063,y2:146.91480769173063}}return U.prototype.forward=function($){return[$[0]*B*X,79.7267125*Math.log(Math.tan(G+.4*$[1]*B))]},U.prototype.inverse=function($){return[$[0]/X/B,2.5*(Math.atan(Math.exp($[1]/X*.8))-G)/B]},U}()}),et(_,"Maps/Projections/Orthographic.js",[],function(){var G=Math.PI/180,B=63.78460826781007;return function(){function X(){this.antimeridianCutting=!1,this.bounds={x1:-B,x2:B,y1:-B,y2:B}}return X.prototype.forward=function(U){var $=U[0],Z=U[1]*G,V=[Math.cos(Z)*Math.sin($*G)*B,Math.sin(Z)*B];return($<-90||$>90)&&(V.outside=!0),V},X.prototype.inverse=function(U){var $=U[0]/B,Z=U[1]/B,V=Math.sqrt($*$+Z*Z),z=Math.asin(V),I=Math.sin(z),E=Math.cos(z);return[Math.atan2($*I,V*E)/G,Math.asin(V&&Z*I/V)/G]},X}()}),et(_,"Maps/Projections/WebMercator.js",[],function(){var G=85.0511287798,B=63.78137,X=Math.PI/180;return function(){function U(){this.bounds={x1:-200.37508342789243,x2:200.37508342789243,y1:-200.3750834278071,y2:200.3750834278071},this.maxLatitude=G}return U.prototype.forward=function($){var Z=Math.sin($[1]*X),V=[B*$[0]*X,B*Math.log((1+Z)/(1-Z))/2];return Math.abs($[1])>G&&(V.outside=!0),V},U.prototype.inverse=function($){return[$[0]/(B*X),(2*Math.atan(Math.exp($[1]/B))-Math.PI/2)/X]},U}()}),et(_,"Maps/Projections/ProjectionRegistry.js",[_["Maps/Projections/LambertConformalConic.js"],_["Maps/Projections/EqualEarth.js"],_["Maps/Projections/Miller.js"],_["Maps/Projections/Orthographic.js"],_["Maps/Projections/WebMercator.js"]],function(G,B,X,U,$){return{EqualEarth:B,LambertConformalConic:G,Miller:X,Orthographic:U,WebMercator:$}}),et(_,"Maps/Projection.js",[_["Core/Geometry/PolygonClip.js"],_["Maps/Projections/ProjectionRegistry.js"],_["Core/Utilities.js"]],function(G,B,X){var U=this&&this.__spreadArray||function(P,y,h){if(h||arguments.length===2)for(var f,m=0,u=y.length;m<u;m++)!f&&m in y||(f||(f=Array.prototype.slice.call(y,0,m)),f[m]=y[m]);return P.concat(f||Array.prototype.slice.call(y))},$=G.clipLineString,Z=G.clipPolygon,V=X.clamp,z=X.erase,I=2*Math.PI/360,E=1e-6,M=function(P){return P<-180&&(P+=360),P>180&&(P-=360),P};return function(){function P(y){y===void 0&&(y={}),this.hasCoordinates=!1,this.hasGeoProjection=!1,this.maxLatitude=90,this.options=y;var h=y.name,f=y.projectedBounds,m=y.rotation;this.rotator=m?this.getRotator(m):void 0;var u=h?P.registry[h]:void 0;u&&(this.def=new u(y));var v=this.def,S=this.rotator;v&&(this.maxLatitude=v.maxLatitude||90,this.hasGeoProjection=!0),S&&v?(this.forward=function(w){return v.forward(S.forward(w))},this.inverse=function(w){return S.inverse(v.inverse(w))}):v?(this.forward=function(w){return v.forward(w)},this.inverse=function(w){return v.inverse(w)}):S&&(this.forward=S.forward,this.inverse=S.inverse),this.bounds=f==="world"?v&&v.bounds:f}return P.add=function(y,h){P.registry[y]=h},P.greatCircle=function(y,h,f){var m=Math.atan2,u=Math.cos,v=Math.sin,S=Math.sqrt,w=y[1]*I,x=y[0]*I,c=h[1]*I,g=h[0]*I,r=c-w,a=g-x,t=v(r/2)*v(r/2)+u(w)*u(c)*v(a/2)*v(a/2),i=2*m(S(t),S(1-t)),o=6371e3*i,e=Math.round(o/5e5),s=[];if(f&&s.push(y),e>1)for(var n=1/e,l=n;l<.999;l+=n){var b=v((1-l)*i)/v(i),k=v(l*i)/v(i),D=b*u(w)*u(x)+k*u(c)*u(g),d=b*u(w)*v(x)+k*u(c)*v(g),C=m(b*v(w)+k*v(c),S(D*D+d*d)),A=m(d,D);s.push([A/I,C/I])}return f&&s.push(h),s},P.insertGreatCircles=function(y){for(var h=y.length-1;h--;)if(Math.max(Math.abs(y[h][0]-y[h+1][0]),Math.abs(y[h][1]-y[h+1][1]))>10){var f=P.greatCircle(y[h],y[h+1]);f.length&&y.splice.apply(y,U([h+1,0],f,!1))}},P.toString=function(y){var h=y||{},f=h.name,m=h.rotation;return[f,m&&m.join(",")].join(";")},P.prototype.lineIntersectsBounds=function(y){var h,f=this.bounds||{},m=f.x1,u=f.x2,v=f.y1,S=f.y2,w=function(c,g,r){var a=c[0],t=c[1],i=g?0:1;if(typeof r=="number"&&a[g]>=r!=t[g]>=r){var o=(r-a[g])/(t[g]-a[g]),e=a[i]+o*(t[i]-a[i]);return g?[e,r]:[r,e]}},x=y[0];return((h=w(y,0,m))||(h=w(y,0,u)))&&(x=h,y[1]=h),((h=w(y,1,v))||(h=w(y,1,S)))&&(x=h),x},P.prototype.getRotator=function(y){var h=y[0]*I,f=(y[1]||0)*I,m=(y[2]||0)*I,u=Math.cos(f),v=Math.sin(f),S=Math.cos(m),w=Math.sin(m);if(h!==0||f!==0||m!==0)return{forward:function(x){var c=x[0]*I+h,g=x[1]*I,r=Math.cos(g),a=Math.cos(c)*r,t=Math.sin(c)*r,i=Math.sin(g),o=i*u+a*v;return[Math.atan2(t*S-o*w,a*u-i*v)/I,Math.asin(o*S+t*w)/I]},inverse:function(x){var c=x[0]*I,g=x[1]*I,r=Math.cos(g),a=Math.cos(c)*r,t=Math.sin(c)*r,i=Math.sin(g),o=i*S-t*w;return[(Math.atan2(t*S+i*w,a*u+o*v)-h)/I,Math.asin(o*u-a*v)/I]}}},P.prototype.forward=function(y){return y},P.prototype.inverse=function(y){return y},P.prototype.cutOnAntimeridian=function(y,h){var f,m=180,u=[],v=[y];if(y.forEach(function(k,D){var d=y[D-1];if(!D){if(!h)return;d=y[y.length-1]}var C=d[0],A=k[0];if((C<-90||C>90)&&(A<-90||A>90)&&C>0!=A>0){var N=V((m-(C+360)%360)/((A+360)%360-(C+360)%360),0,1),R=d[1]+N*(k[1]-d[1]);u.push({i:D,lat:R,direction:C<0?1:-1,previousLonLat:d,lonLat:k})}}),u.length)if(h){u.length%2==1&&(f=u.slice().sort(function(k,D){return Math.abs(D.lat)-Math.abs(k.lat)})[0],z(u,f));for(var S=u.length-2;S>=0;){var w=u[S].i,x=M(m+u[S].direction*E),c=M(m-u[S].direction*E);(b=y.splice.apply(y,U([w,u[S+1].i-w],P.greatCircle([x,u[S].lat],[x,u[S+1].lat],!0),!1))).push.apply(b,P.greatCircle([c,u[S+1].lat],[c,u[S].lat],!0)),v.push(b),S-=2}if(f)for(var g=0;g<v.length;g++){var r=f.direction,a=f.lat,t=v[g],i=t.indexOf(f.lonLat);if(i>-1){for(var o=(a<0?-1:1)*this.maxLatitude,e=M(m+r*E),s=M(m-r*E),n=P.greatCircle([e,a],[e,o],!0),l=e+120*r;l>-180&&l<180;l+=120*r)n.push([l,o]);n.push.apply(n,P.greatCircle([s,o],[s,f.lat],!0)),t.splice.apply(t,U([i,0],n,!1));break}}}else for(S=u.length;S--;){var b;w=u[S].i,(b=y.splice(w,y.length,[M(m+u[S].direction*E),u[S].lat])).unshift([M(m-u[S].direction*E),u[S].lat]),v.push(b)}return v},P.prototype.path=function(y){var h,f=this,m=this,u=m.bounds,v=m.def,S=m.rotator,w=[],x=y.type==="Polygon"||y.type==="MultiPolygon",c=this.hasGeoProjection,g=!v||v.antimeridianCutting!==!1,r=g?S:void 0,a=g&&v||this;u&&(h=[[u.x1,u.y1],[u.x2,u.y1],[u.x2,u.y2],[u.x1,u.y2]]);var t=function(i){var o=i.map(function(s){if(g){r&&(s=r.forward(s));var n=s[0];Math.abs(n-180)<E&&(n=n<180?179.999999:180.000001),s=[n,s[1]]}return s}),e=[o];c&&(P.insertGreatCircles(o),g&&(e=f.cutOnAntimeridian(o,x))),e.forEach(function(s){if(!(s.length<2)){var n,l,b=!1,k=!1,D=function(O){b?w.push(["L",O[0],O[1]]):(w.push(["M",O[0],O[1]]),b=!0)},d=!1,C=!1,A=s.map(function(O){var j=a.forward(O);return j.outside?d=!0:C=!0,j[1]===1/0?j[1]=1e10:j[1]===-1/0&&(j[1]=-1e10),j});if(g){if(x&&A.push(A[0]),d){if(!C)return;if(h){if(x)A=Z(A,h);else if(u)return void $(A,h).forEach(function(O){b=!1,O.forEach(D)})}}A.forEach(D)}else for(var N=0;N<A.length;N++){var R=s[N],L=A[N];L.outside?k=!0:(x&&!n&&(n=R,s.push(R),A.push(L)),k&&l&&(x&&c?P.greatCircle(l,R).forEach(function(O){return D(a.forward(O))}):b=!1),D(L),l=R,k=!1)}}})};return y.type==="LineString"?t(y.coordinates):y.type==="MultiLineString"?y.coordinates.forEach(function(i){return t(i)}):y.type==="Polygon"?(y.coordinates.forEach(function(i){return t(i)}),w.length&&w.push(["Z"])):y.type==="MultiPolygon"&&(y.coordinates.forEach(function(i){i.forEach(function(o){return t(o)})}),w.length&&w.push(["Z"])),w},P.registry=B,P}()}),et(_,"Maps/MapView.js",[_["Maps/MapViewOptionsDefault.js"],_["Maps/MapViewInsetsOptionsDefault.js"],_["Extensions/GeoJSON.js"],_["Core/Chart/MapChart.js"],_["Maps/MapUtilities.js"],_["Maps/Projection.js"],_["Core/Utilities.js"]],function(G,B,X,U,$,Z,V){var z,I=this&&this.__extends||(z=function(e,s){return z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,l){n.__proto__=l}||function(n,l){for(var b in l)l.hasOwnProperty(b)&&(n[b]=l[b])},z(e,s)},function(e,s){function n(){this.constructor=e}z(e,s),e.prototype=s===null?Object.create(s):(n.prototype=s.prototype,new n)}),E=this&&this.__spreadArray||function(e,s,n){if(n||arguments.length===2)for(var l,b=0,k=s.length;b<k;b++)!l&&b in s||(l||(l=Array.prototype.slice.call(s,0,b)),l[b]=s[b]);return e.concat(l||Array.prototype.slice.call(s))},M=X.topo2geo,P=U.maps,y=$.boundsFromPath,h=$.pointInPolygon,f=V.addEvent,m=V.clamp,u=V.fireEvent,v=V.isArray,S=V.isNumber,w=V.isObject,x=V.isString,c=V.merge,g=V.pick,r=V.relativeLength,a=400.979322,t=function(e,s){var n=s.width,l=s.height,b=Math.max((e.x2-e.x1)/(n/256),(e.y2-e.y1)/(l/256));return Math.log(a/b)/Math.log(2)},i=function(){function e(s,n){var l,b,k=this;if(this.insets=[],this.padding=[0,0,0,0],this.eventsToUnbind=[],!(this instanceof o)){var D=E([s.options.chart.map],(s.options.series||[]).map(function(H){return H.mapData}),!0).map(function(H){return k.getGeoMap(H)}),d=[];D.forEach(function(H){if(H&&(l||(l=H["hc-recommended-mapview"]),H.bbox)){var W=H.bbox,q=W[0],Q=W[1],J=W[2],nt=W[3];d.push({x1:q,y1:Q,x2:J,y2:nt})}});var C=d.length&&e.compositeBounds(d);if(C){var A=C.x1,N=C.y1,R=C.x2,L=C.y2;b=R-A>180&&L-N>90?{name:"EqualEarth"}:{name:"LambertConformalConic",parallels:[N,L],rotation:[-(A+R)/2]}}this.geoMap=D[0]}this.userOptions=n||{};var O=c(G,{projection:b},l,n),j=l&&l.insets,Y=n&&n.insets;j&&Y&&(O.insets=e.mergeInsets(j,Y)),this.chart=s,this.center=O.center,this.options=O,this.projection=new Z(O.projection),this.playingField=s.plotBox,this.zoom=O.zoom||0,this.createInsets(),this.eventsToUnbind.push(f(s,"afterSetChartSize",function(){k.playingField=k.getField(),k.minZoom!==void 0&&k.minZoom!==k.zoom||(k.fitToBounds(void 0,void 0,!1),!k.chart.hasRendered&&S(k.userOptions.zoom)&&(k.zoom=k.userOptions.zoom),k.userOptions.center&&c(!0,k.center,k.userOptions.center))})),this.setUpEvents()}return e.mergeInsets=function(s,n){var l=function(k){var D={};return k.forEach(function(d,C){D[d&&d.id||"i".concat(C)]=d}),D},b=c(l(s),l(n));return Object.keys(b).map(function(k){return b[k]})},e.prototype.createInsets=function(){var s=this,n=this.options,l=n.insets;l&&l.forEach(function(b){var k=new o(s,c(n.insetOptions,b));s.insets.push(k)})},e.prototype.fitToBounds=function(s,n,l,b){l===void 0&&(l=!0);var k=s||this.getProjectedBounds();if(k){var D=g(n,s?0:this.options.padding),d=this.getField(!1),C=v(D)?D:[D,D,D,D];this.padding=[r(C[0],d.height),r(C[1],d.width),r(C[2],d.height),r(C[3],d.width)],this.playingField=this.getField();var A=t(k,this.playingField);s||(this.minZoom=A);var N=this.projection.inverse([(k.x2+k.x1)/2,(k.y2+k.y1)/2]);this.setView(N,A,l,b)}},e.prototype.getField=function(s){s===void 0&&(s=!0);var n=s?this.padding:[0,0,0,0];return{x:n[3],y:n[0],width:this.chart.plotWidth-n[1]-n[3],height:this.chart.plotHeight-n[0]-n[2]}},e.prototype.getGeoMap=function(s){if(x(s))return P[s];if(w(s,!0)){if(s.type==="FeatureCollection")return s;if(s.type==="Topology")return M(s)}},e.prototype.getMapBBox=function(){var s=this.getProjectedBounds(),n=this.getScale();if(s){var l=this.padding,b=this.projectedUnitsToPixels({x:s.x1,y:s.y2});return{width:(s.x2-s.x1)*n+l[1]+l[3],height:(s.y2-s.y1)*n+l[0]+l[2],x:b.x-l[3],y:b.y-l[0]}}},e.prototype.getProjectedBounds=function(){var s=this.projection,n=this.chart.series.reduce(function(d,C){var A=C.getProjectedBounds&&C.getProjectedBounds();return A&&C.options.affectsMapView!==!1&&d.push(A),d},[]),l=this.options.fitToGeometry;if(l){if(!this.fitToGeometryCache)if(l.type==="MultiPoint"){var b=l.coordinates.map(function(d){return s.forward(d)}),k=b.map(function(d){return d[0]}),D=b.map(function(d){return d[1]});this.fitToGeometryCache={x1:Math.min.apply(0,k),x2:Math.max.apply(0,k),y1:Math.min.apply(0,D),y2:Math.max.apply(0,D)}}else this.fitToGeometryCache=y(s.path(l));return this.fitToGeometryCache}return this.projection.bounds||e.compositeBounds(n)},e.prototype.getScale=function(){return 256/a*Math.pow(2,this.zoom)},e.prototype.getSVGTransform=function(){var s=this.playingField,n=s.x,l=s.y,b=s.width,k=s.height,D=this.projection.forward(this.center),d=this.projection.hasCoordinates?-1:1,C=this.getScale(),A=C*d;return{scaleX:C,scaleY:A,translateX:n+b/2-D[0]*C,translateY:l+k/2-D[1]*A}},e.prototype.lonLatToPixels=function(s){var n=this.lonLatToProjectedUnits(s);if(n)return this.projectedUnitsToPixels(n)},e.prototype.lonLatToProjectedUnits=function(s){var n=this.chart,l=n.mapTransforms;if(l){for(var b in l)if(Object.hasOwnProperty.call(l,b)&&l[b].hitZone){var k=n.transformFromLatLon(s,l[b]);if(k&&h(k,l[b].hitZone.coordinates[0]))return k}return n.transformFromLatLon(s,l.default)}for(var D=0,d=this.insets;D<d.length;D++){var C=d[D];if(C.options.geoBounds&&h({x:s.lon,y:s.lat},C.options.geoBounds.coordinates[0])){var A=C.projection.forward([s.lon,s.lat]),N=C.projectedUnitsToPixels({x:A[0],y:A[1]});return this.pixelsToProjectedUnits(N)}}var R=this.projection.forward([s.lon,s.lat]);if(!R.outside)return{x:R[0],y:R[1]}},e.prototype.projectedUnitsToLonLat=function(s){var n=this.chart,l=n.mapTransforms;if(l){for(var b in l)if(Object.hasOwnProperty.call(l,b)&&l[b].hitZone&&h(s,l[b].hitZone.coordinates[0]))return n.transformToLatLon(s,l[b]);return n.transformToLatLon(s,l.default)}for(var k=this.projectedUnitsToPixels(s),D=0,d=this.insets;D<d.length;D++){var C=d[D];if(C.hitZone&&h(k,C.hitZone.coordinates[0])){var A=C.pixelsToProjectedUnits(k),N=C.projection.inverse([A.x,A.y]);return{lon:N[0],lat:N[1]}}}var R=this.projection.inverse([s.x,s.y]);return{lon:R[0],lat:R[1]}},e.prototype.redraw=function(s){this.chart.series.forEach(function(n){n.useMapGeometry&&(n.isDirty=!0)}),this.chart.redraw(s)},e.prototype.setView=function(s,n,l,b){l===void 0&&(l=!0),s&&(this.center=s),typeof n=="number"&&(typeof this.minZoom=="number"&&(n=Math.max(n,this.minZoom)),typeof this.options.maxZoom=="number"&&(n=Math.min(n,this.options.maxZoom)),S(n)&&(this.zoom=n));var k=this.getProjectedBounds();if(k){var D=this.projection.forward(this.center),d=this.playingField,C=d.x,A=d.y,N=d.width,R=d.height,L=this.getScale(),O=this.projectedUnitsToPixels({x:k.x1,y:k.y1}),j=this.projectedUnitsToPixels({x:k.x2,y:k.y2}),Y=[(k.x1+k.x2)/2,(k.y1+k.y2)/2],H=O.x,W=j.y,q=j.x,Q=O.y;q-H<N?D[0]=Y[0]:H<C&&q<C+N?D[0]+=Math.max(H-C,q-N-C)/L:q>C+N&&H>C&&(D[0]+=Math.min(q-N-C,H-C)/L),Q-W<R?D[1]=Y[1]:W<A&&Q<A+R?D[1]-=Math.max(W-A,Q-R-A)/L:Q>A+R&&W>A&&(D[1]-=Math.min(Q-R-A,W-A)/L),this.center=this.projection.inverse(D),this.insets.forEach(function(J){J.options.field&&(J.hitZone=J.getHitZone(),J.playingField=J.getField())}),this.render()}u(this,"afterSetView"),l&&this.redraw(b)},e.prototype.projectedUnitsToPixels=function(s){var n=this.getScale(),l=this.projection.forward(this.center),b=this.playingField,k=b.x+b.width/2,D=b.y+b.height/2;return{x:k-n*(l[0]-s.x),y:D+n*(l[1]-s.y)}},e.prototype.pixelsToLonLat=function(s){return this.projectedUnitsToLonLat(this.pixelsToProjectedUnits(s))},e.prototype.pixelsToProjectedUnits=function(s){var n=s.x,l=s.y,b=this.getScale(),k=this.projection.forward(this.center),D=this.playingField,d=D.x+D.width/2,C=D.y+D.height/2;return{x:k[0]+(n-d)/b,y:k[1]-(l-C)/b}},e.prototype.setUpEvents=function(){var s,n,l,b=this,k=this.chart,D=function(d){var C=k.pointer.pinchDown,A=b.projection,N=k.mouseDownX,R=k.mouseDownY;if(C.length===1&&(N=C[0].chartX,R=C[0].chartY),typeof N=="number"&&typeof R=="number"){var L=""+N+",".concat(R),O=d.originalEvent,j=O.chartX,Y=O.chartY;L!==n&&(n=L,s=b.projection.forward(b.center),l=(b.projection.options.rotation||[0,0]).slice());var H=A.def&&A.def.bounds,W=H&&t(H,b.playingField)||-1/0;if(A.options.name==="Orthographic"&&(b.minZoom||1/0)<1.1*W){var q=440/(b.getScale()*Math.min(k.plotWidth,k.plotHeight));if(l){var Q=(N-j)*q-l[0],J=m(-l[1]-(R-Y)*q,-80,80),nt=b.zoom;b.update({projection:{rotation:[-Q,-J]}},!1),b.zoom=nt,k.redraw(!1)}}else if(S(j)&&S(Y)){var lt=b.getScale(),gt=b.projection.hasCoordinates?1:-1,mt=b.projection.inverse([s[0]+(N-j)/lt,s[1]-(R-Y)/lt*gt]);b.setView(mt,void 0,!0,!1)}d.preventDefault()}};f(k,"pan",D),f(k,"touchpan",D),f(k,"selection",function(d){if(d.resetSelection)b.zoomBy();else{var C=d.x-k.plotLeft,A=d.y-k.plotTop,N=b.pixelsToProjectedUnits({x:C,y:A}),R=N.y,L=N.x,O=b.pixelsToProjectedUnits({x:C+d.width,y:A+d.height}),j=O.y,Y=O.x;b.fitToBounds({x1:L,y1:R,x2:Y,y2:j},void 0,!0,!d.originalEvent.touches&&void 0),/^touch/.test(d.originalEvent.type)||k.showResetZoom(),d.preventDefault()}})},e.prototype.render=function(){this.group||(this.group=this.chart.renderer.g("map-view").attr({zIndex:4}).add())},e.prototype.update=function(s,n,l){n===void 0&&(n=!0);var b=s.projection,k=b&&Z.toString(b)!==Z.toString(this.options.projection),D=!1;c(!0,this.userOptions,s),c(!0,this.options,s),"insets"in s&&(this.insets.forEach(function(d){return d.destroy()}),this.insets.length=0,D=!0),(k||"fitToGeometry"in s)&&delete this.fitToGeometryCache,(k||D)&&(this.chart.series.forEach(function(d){var C=d.transformGroups;if(d.clearBounds&&d.clearBounds(),d.isDirty=!0,d.isDirtyData=!0,D&&C)for(;C.length>1;){var A=C.pop();A&&A.destroy()}}),k&&(this.projection=new Z(this.options.projection)),D&&this.createInsets(),s.center||S(s.zoom)||this.fitToBounds(void 0,void 0,!1)),s.center||S(s.zoom)?this.setView(this.options.center,s.zoom,!1):"fitToGeometry"in s&&this.fitToBounds(void 0,void 0,!1),n&&this.chart.redraw(l)},e.prototype.zoomBy=function(s,n,l,b){var k=this.chart,D=this.projection.forward(this.center),d=n?this.projection.forward(n):[],C=d[0],A=d[1];if(typeof s=="number"){var N=this.zoom+s,R=void 0;if(l){var L=l[0],O=l[1],j=this.getScale(),Y=L-k.plotLeft-k.plotWidth/2,H=O-k.plotTop-k.plotHeight/2;C=D[0]+Y/j,A=D[1]+H/j}typeof C=="number"&&typeof A=="number"&&(j=1-Math.pow(2,this.zoom)/Math.pow(2,N),Y=D[0]-C,H=D[1]-A,D[0]-=Y*j,D[1]+=H*j,R=this.projection.inverse(D)),this.setView(R,N,void 0,b)}else this.fitToBounds(void 0,void 0,void 0,b)},e.compositeBounds=function(s){if(s.length)return s.slice(1).reduce(function(n,l){return n.x1=Math.min(n.x1,l.x1),n.y1=Math.min(n.y1,l.y1),n.x2=Math.max(n.x2,l.x2),n.y2=Math.max(n.y2,l.y2),n},c(s[0]))},e}(),o=function(e){function s(n,l){var b=e.call(this,n.chart,l)||this;if(b.id=l.id,b.mapView=n,b.options=c(B,l),b.allBounds=[],b.options.geoBounds){var k=n.projection.path(b.options.geoBounds);b.geoBoundsProjectedBox=y(k),b.geoBoundsProjectedPolygon=k.map(function(D){return[D[1]||0,D[2]||0]})}return b}return I(s,e),s.prototype.getField=function(n){n===void 0&&(n=!0);var l=this.hitZone;if(l){var b=n?this.padding:[0,0,0,0],k=l.coordinates[0],D=k.map(function(L){return L[0]}),d=k.map(function(L){return L[1]}),C=Math.min.apply(0,D)+b[3],A=Math.max.apply(0,D)-b[1],N=Math.min.apply(0,d)+b[0],R=Math.max.apply(0,d)-b[2];if(S(C)&&S(N))return{x:C,y:N,width:A-C,height:R-N}}return e.prototype.getField.call(this,n)},s.prototype.getHitZone=function(){var n=this,l=n.chart,b=n.mapView,k=n.options,D=(k.field||{}).coordinates;if(D){var d=D[0];if(k.units==="percent"){var C=k.relativeTo==="mapBoundingBox"&&b.getMapBBox()||c(l.plotBox,{x:0,y:0});d=d.map(function(A){return[r(A[0]+"%",C.width,C.x),r(A[1]+"%",C.height,C.y)]})}return{type:"Polygon",coordinates:[d]}}},s.prototype.getProjectedBounds=function(){return i.compositeBounds(this.allBounds)},s.prototype.isInside=function(n){var l=this.geoBoundsProjectedBox,b=this.geoBoundsProjectedPolygon;return!!(l&&n.x>=l.x1&&n.x<=l.x2&&n.y>=l.y1&&n.y<=l.y2&&b&&h(n,b))},s.prototype.render=function(){var n=this,l=n.chart,b=n.mapView,k=n.options,D=k.borderPath||k.field;if(D&&b.group){var d=!0;this.border||(this.border=l.renderer.path().addClass("highcharts-mapview-inset-border").add(b.group),d=!1),l.styledMode||this.border.attr({stroke:k.borderColor,"stroke-width":k.borderWidth});var C=Math.round(this.border.strokeWidth())%2/2,A=k.relativeTo==="mapBoundingBox"&&b.getMapBBox()||b.playingField,N=(D.coordinates||[]).reduce(function(R,L){return L.reduce(function(O,j,Y){var H=j[0],W=j[1];return k.units==="percent"&&(H=l.plotLeft+r(H+"%",A.width,A.x),W=l.plotTop+r(W+"%",A.height,A.y)),H=Math.floor(H)+C,W=Math.floor(W)+C,O.push(Y===0?["M",H,W]:["L",H,W]),O},R)},[]);this.border[d?"animate":"attr"]({d:N})}},s.prototype.destroy=function(){this.border&&(this.border=this.border.destroy()),this.eventsToUnbind.forEach(function(n){return n()})},s.prototype.setUpEvents=function(){},s}(i);return f(U,"afterInit",function(){this.mapView=new i(this,this.options.mapView)}),i}),et(_,"Series/Map/MapSeries.js",[_["Core/Animation/AnimationUtilities.js"],_["Series/ColorMapComposition.js"],_["Series/CenteredUtilities.js"],_["Core/Globals.js"],_["Core/Legend/LegendSymbol.js"],_["Core/Chart/MapChart.js"],_["Series/Map/MapPoint.js"],_["Maps/MapView.js"],_["Core/Series/Series.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Renderer/SVG/SVGRenderer.js"],_["Core/Utilities.js"]],function(G,B,X,U,$,Z,V,z,I,E,M,P){var y,h=this&&this.__extends||(y=function(k,D){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,C){d.__proto__=C}||function(d,C){for(var A in C)C.hasOwnProperty(A)&&(d[A]=C[A])},y(k,D)},function(k,D){function d(){this.constructor=k}y(k,D),k.prototype=D===null?Object.create(D):(d.prototype=D.prototype,new d)}),f=G.animObject,m=U.noop,u=Z.splitPath,v=E.seriesTypes,S=v.column,w=v.scatter,x=P.extend,c=P.find,g=P.fireEvent,r=P.getNestedProperty,a=P.isArray,t=P.defined,i=P.isNumber,o=P.isObject,e=P.merge,s=P.objectEach,n=P.pick,l=P.splat,b=function(k){function D(){var d=k!==null&&k.apply(this,arguments)||this;return d.chart=void 0,d.data=void 0,d.group=void 0,d.joinBy=void 0,d.options=void 0,d.points=void 0,d.processedData=[],d}return h(D,k),D.prototype.animate=function(d){var C=this.chart,A=this.group,N=f(this.options.animation);C.renderer.isSVG&&(d?A.attr({translateX:C.plotLeft+C.plotWidth/2,translateY:C.plotTop+C.plotHeight/2,scaleX:.001,scaleY:.001}):A.animate({translateX:C.plotLeft,translateY:C.plotTop,scaleX:1,scaleY:1},N))},D.prototype.animateDrilldown=function(d){var C=this.chart,A=this.group;C.renderer.isSVG&&(d?A.attr({translateX:C.plotLeft+C.plotWidth/2,translateY:C.plotTop+C.plotHeight/2,scaleX:.1,scaleY:.1,opacity:.01}):(A.animate({translateX:C.plotLeft,translateY:C.plotTop,scaleX:1,scaleY:1,opacity:1},this.chart.options.drilldown.animation),C.drilldown&&C.drilldown.fadeInGroup(this.dataLabelsGroup)))},D.prototype.animateDrillupFrom=function(){var d=this.chart;d.renderer.isSVG&&this.group.animate({translateX:d.plotLeft+d.plotWidth/2,translateY:d.plotTop+d.plotHeight/2,scaleX:.1,scaleY:.1,opacity:.01})},D.prototype.animateDrillupTo=function(d){S.prototype.animateDrillupTo.call(this,d)},D.prototype.clearBounds=function(){this.points.forEach(function(d){delete d.bounds,delete d.insetIndex,delete d.projectedPath}),delete this.bounds},D.prototype.doFullTranslate=function(){return!!(this.isDirtyData||this.chart.isResizing||this.chart.renderer.isVML||!this.hasRendered)},D.prototype.drawMapDataLabels=function(){I.prototype.drawDataLabels.call(this),this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)},D.prototype.drawPoints=function(){var d=this,C=this,A=this,N=A.chart,R=A.group,L=A.transformGroups,O=L===void 0?[]:L,j=N.mapView,Y=N.renderer;j&&(this.transformGroups=O,O[0]||(O[0]=Y.g().add(R)),j.insets.forEach(function(H,W){O[W+1]||O.push(Y.g().add(R))}),this.doFullTranslate()&&(this.points.forEach(function(H){var W=H.graphic,q=H.shapeArgs;H.group=O[typeof H.insetIndex=="number"?H.insetIndex+1:0],W&&W.parentGroup!==H.group&&W.add(H.group),q&&N.hasRendered&&!N.styledMode&&(q.fill=d.pointAttribs(H,H.state).fill)}),S.prototype.drawPoints.apply(this),this.points.forEach(function(H){var W=H.graphic;if(W){var q=W.animate,Q="";H.name&&(Q+="highcharts-name-"+H.name.replace(/ /g,"-").toLowerCase()),H.properties&&H.properties["hc-key"]&&(Q+=" highcharts-key-"+H.properties["hc-key"].toString().toLowerCase()),Q&&W.addClass(Q),N.styledMode&&W.css(d.pointAttribs(H,H.selected?"select":void 0)),W.animate=function(J,nt,lt){var gt=i(J["stroke-width"])&&!i(W["stroke-width"]),mt=i(W["stroke-width"])&&!i(J["stroke-width"]);if(gt||mt){var bt=n(C.getStrokeWidth(C.options),1)/(N.mapView&&N.mapView.getScale()||1);gt&&(W["stroke-width"]=bt),mt&&(J["stroke-width"]=bt)}var yt=q.call(W,J,nt,mt?function(){W.element.removeAttribute("stroke-width"),delete W["stroke-width"],lt&<.apply(this,arguments)}:lt);return yt}}})),O.forEach(function(H,W){var q=(W===0?j:j.insets[W-1]).getSVGTransform(),Q=n(d.getStrokeWidth(d.options),1),J=q.scaleX,nt=q.scaleY>0?1:-1,lt=function(yt){(C.points||[]).forEach(function(dt){var ot,at=dt.graphic;at&&at["stroke-width"]&&(ot=d.getStrokeWidth(dt.options))&&at.attr({"stroke-width":ot/yt})})};if(Y.globalAnimation&&N.hasRendered){var gt=Number(H.attr("translateX")),mt=Number(H.attr("translateY")),bt=Number(H.attr("scaleX"));H.attr({animator:0}).animate({animator:1},{step:function(yt,dt){var ot=bt+(J-bt)*dt.pos;H.attr({translateX:gt+(q.translateX-gt)*dt.pos,translateY:mt+(q.translateY-mt)*dt.pos,scaleX:ot,scaleY:ot*nt,"stroke-width":Q/ot}),lt(ot)}})}else H.attr(e(q,{"stroke-width":Q/J})),lt(J)}),this.drawMapDataLabels())},D.prototype.getProjectedBounds=function(){if(!this.bounds&&this.chart.mapView){var d=this.chart.mapView,C=d.insets,A=d.projection,N=[];(this.points||[]).forEach(function(R){if(R.path||R.geometry){if(typeof R.path=="string"?R.path=u(R.path):a(R.path)&&R.path[0]==="M"&&(R.path=M.prototype.pathToSegments(R.path)),!R.bounds){var L=R.getProjectedBounds(A);if(L){R.labelrank=n(R.labelrank,(L.x2-L.x1)*(L.y2-L.y1));var O=L.midX,j=L.midY;if(C&&i(O)&&i(j)){var Y=c(C,function(H){return H.isInside({x:O,y:j})});Y&&(delete R.projectedPath,(L=R.getProjectedBounds(Y.projection))&&Y.allBounds.push(L),R.insetIndex=C.indexOf(Y))}R.bounds=L}}R.bounds&&R.insetIndex===void 0&&N.push(R.bounds)}}),this.bounds=z.compositeBounds(N)}return this.bounds},D.prototype.getStrokeWidth=function(d){var C=this.pointAttrToOptions;return d[C&&C["stroke-width"]||"borderWidth"]},D.prototype.hasData=function(){return!!this.processedXData.length},D.prototype.pointAttribs=function(d,C){var A=d.series.chart,N=A.mapView,R=A.styledMode?this.colorAttribs(d):S.prototype.pointAttribs.call(this,d,C),L=this.getStrokeWidth(d.options);if(C){var O=e(this.options.states[C],d.options.states&&d.options.states[C]||{}),j=this.getStrokeWidth(O);t(j)&&(L=j)}L&&N&&(L/=N.getScale());var Y=this.getStrokeWidth(this.options);return R.dashstyle&&N&&i(Y)&&(L=Y/N.getScale()),d.visible||(R.fill=this.options.nullColor),t(L)?R["stroke-width"]=L:delete R["stroke-width"],R["stroke-linecap"]=R["stroke-linejoin"]=this.options.linecap,R},D.prototype.updateData=function(){return!this.processedData&&k.prototype.updateData.apply(this,arguments)},D.prototype.setData=function(d,C,A,N){C===void 0&&(C=!0),delete this.bounds,k.prototype.setData.call(this,d,!1,void 0,N),this.processData(),this.generatePoints(),C&&this.chart.redraw(A)},D.prototype.processData=function(){var d,C,A,N,R=this.options,L=R.data,O=this.chart.options.chart,j=this.joinBy,Y=R.keys||this.pointArrayMap,H=[],W={},q=this.chart.mapView,Q=q&&(o(R.mapData,!0)?q.getGeoMap(R.mapData):q.geoMap),J=this.chart.mapTransforms;this.chart.mapTransforms=J=O.mapTransforms||Q&&Q["hc-transform"]||J,J&&s(J,function(bt){bt.rotation&&(bt.cosAngle=Math.cos(bt.rotation),bt.sinAngle=Math.sin(bt.rotation))}),a(R.mapData)?N=R.mapData:Q&&Q.type==="FeatureCollection"&&(this.mapTitle=Q.title,N=U.geojson(Q,this.type,this)),this.processedData=[];var nt=this.processedData;if(L&&L.forEach(function(bt,yt){var dt=0;if(i(bt))nt[yt]={value:bt};else if(a(bt)){nt[yt]={},!R.keys&&bt.length>Y.length&&typeof bt[0]=="string"&&(nt[yt]["hc-key"]=bt[0],++dt);for(var ot=0;ot<Y.length;++ot,++dt)Y[ot]&&bt[dt]!==void 0&&(Y[ot].indexOf(".")>0?V.prototype.setNestedProperty(nt[yt],bt[dt],Y[ot]):nt[yt][Y[ot]]=bt[dt])}else nt[yt]=L[yt];j&&j[0]==="_i"&&(nt[yt]._i=yt)}),N){for(this.mapData=N,this.mapMap={},A=0;A<N.length;A++)C=(d=N[A]).properties,d._i=A,j[0]&&C&&C[j[0]]&&(d[j[0]]=C[j[0]]),W[d[j[0]]]=d;if(this.mapMap=W,j[1]){var lt=j[1];nt.forEach(function(bt){var yt=r(lt,bt);W[yt]&&H.push(W[yt])})}if(R.allAreas){if(j[1]){var gt=j[1];nt.forEach(function(bt){H.push(r(gt,bt))})}var mt="|"+H.map(function(bt){return bt&&bt[j[0]]}).join("|")+"|";N.forEach(function(bt){j[0]&&mt.indexOf("|"+bt[j[0]]+"|")!==-1||nt.push(e(bt,{value:null}))})}}this.processedXData=new Array(nt.length)},D.prototype.setOptions=function(d){var C=I.prototype.setOptions.call(this,d),A=C.joinBy;return A===null&&(A="_i"),(A=this.joinBy=l(A))[1]||(A[1]=A[0]),C},D.prototype.translate=function(){var d=this,C=d.doFullTranslate(),A=this.chart.mapView,N=A&&A.projection;if(!this.chart.hasRendered||!this.isDirtyData&&this.hasRendered||(this.processData(),this.generatePoints(),delete this.bounds,!A||A.userOptions.center||i(A.userOptions.zoom)?this.getProjectedBounds():A.fitToBounds(void 0,void 0,!1)),A){var R=A.getSVGTransform();d.points.forEach(function(L){var O=i(L.insetIndex)&&A.insets[L.insetIndex].getSVGTransform()||R;O&&L.bounds&&i(L.bounds.midX)&&i(L.bounds.midY)&&(L.plotX=L.bounds.midX*O.scaleX+O.translateX,L.plotY=L.bounds.midY*O.scaleY+O.translateY),C&&(L.shapeType="path",L.shapeArgs={d:V.getProjectedPath(L,N)})})}g(d,"afterTranslate")},D.defaultOptions=e(w.defaultOptions,{affectsMapView:!0,animation:!1,dataLabels:{crop:!1,formatter:function(){var d=this.series.chart.numberFormatter,C=this.point.value;return i(C)?d(C,-1):""},inside:!0,overflow:!1,padding:0,verticalAlign:"middle"},linecap:"butt",marker:null,nullColor:"#f7f7f7",stickyTracking:!1,tooltip:{followPointer:!0,pointFormat:"{point.name}: {point.value}<br/>"},turboThreshold:0,allAreas:!0,borderColor:"#cccccc",borderWidth:1,joinBy:"hc-key",states:{hover:{halo:null,brightness:.2},normal:{animation:!0},select:{color:"#cccccc"}}}),D}(w);return x(b.prototype,{type:"map",axisTypes:B.seriesMembers.axisTypes,colorAttribs:B.seriesMembers.colorAttribs,colorKey:B.seriesMembers.colorKey,directTouch:!0,drawDataLabels:m,drawGraph:m,drawLegendSymbol:$.drawRectangle,forceDL:!0,getCenter:X.getCenter,getExtremesFromAll:!0,getSymbol:m,isCartesian:!1,parallelArrays:B.seriesMembers.parallelArrays,pointArrayMap:B.seriesMembers.pointArrayMap,pointClass:V,preserveAspectRatio:!0,searchPoint:m,trackerGroups:B.seriesMembers.trackerGroups,useMapGeometry:!0}),B.compose(b),E.registerSeriesType("map",b),b}),et(_,"Series/MapLine/MapLineSeries.js",[_["Series/Map/MapSeries.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,X){var U,$=this&&this.__extends||(U=function(E,M){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(P,y){P.__proto__=y}||function(P,y){for(var h in y)y.hasOwnProperty(h)&&(P[h]=y[h])},U(E,M)},function(E,M){function P(){this.constructor=E}U(E,M),E.prototype=M===null?Object.create(M):(P.prototype=M.prototype,new P)}),Z=B.series,V=X.extend,z=X.merge,I=function(E){function M(){var P=E!==null&&E.apply(this,arguments)||this;return P.data=void 0,P.options=void 0,P.points=void 0,P}return $(M,E),M.prototype.pointAttribs=function(P,y){var h=G.prototype.pointAttribs.call(this,P,y);return h.fill=this.options.fillColor,h},M.defaultOptions=z(G.defaultOptions,{lineWidth:1,fillColor:"none"}),M}(G);return V(I.prototype,{type:"mapline",colorProp:"stroke",drawLegendSymbol:Z.prototype.drawLegendSymbol,pointAttrToOptions:{stroke:"color","stroke-width":"lineWidth"}}),B.registerSeriesType("mapline",I),I}),et(_,"Series/MapPoint/MapPointPoint.js",[_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B){var X,U=this&&this.__extends||(X=function(z,I){return X=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,M){E.__proto__=M}||function(E,M){for(var P in M)M.hasOwnProperty(P)&&(E[P]=M[P])},X(z,I)},function(z,I){function E(){this.constructor=z}X(z,I),z.prototype=I===null?Object.create(I):(E.prototype=I.prototype,new E)}),$=G.seriesTypes.scatter,Z=B.isNumber,V=function(z){function I(){var E=z!==null&&z.apply(this,arguments)||this;return E.options=void 0,E.series=void 0,E}return U(I,z),I.prototype.isValid=function(){return!!(this.options.geometry||Z(this.x)&&Z(this.y)||Z(this.options.lon)&&Z(this.options.lat))},I}($.prototype.pointClass);return V}),et(_,"Series/MapPoint/MapPointSeries.js",[_["Core/Globals.js"],_["Series/MapPoint/MapPointPoint.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Renderer/SVG/SVGRenderer.js"],_["Core/Utilities.js"]],function(G,B,X,U,$){var Z,V=this&&this.__extends||(Z=function(u,v){return Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,w){S.__proto__=w}||function(S,w){for(var x in w)w.hasOwnProperty(x)&&(S[x]=w[x])},Z(u,v)},function(u,v){function S(){this.constructor=u}Z(u,v),u.prototype=v===null?Object.create(v):(S.prototype=v.prototype,new S)}),z=G.noop,I=X.seriesTypes,E=I.map,M=I.scatter,P=$.extend,y=$.fireEvent,h=$.isNumber,f=$.merge,m=function(u){function v(){var S=u!==null&&u.apply(this,arguments)||this;return S.chart=void 0,S.data=void 0,S.options=void 0,S.points=void 0,S.clearBounds=E.prototype.clearBounds,S}return V(v,u),v.prototype.drawDataLabels=function(){u.prototype.drawDataLabels.call(this),this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)},v.prototype.projectPoint=function(S){var w=this.chart.mapView;if(w){var x=S.geometry,c=S.lon,g=S.lat,r=x&&x.type==="Point"&&x.coordinates;if(h(c)&&h(g)&&(r=[c,g]),r)return w.lonLatToProjectedUnits({lon:r[0],lat:r[1]})}},v.prototype.translate=function(){var S=this,w=this.chart.mapView;if(this.processedXData||this.processData(),this.generatePoints(),this.getProjectedBounds&&this.isDirtyData&&(delete this.bounds,this.getProjectedBounds()),w){var x=w.getSVGTransform(),c=w.projection.hasCoordinates;this.points.forEach(function(g){var r,a=g.x,t=a===void 0?void 0:a,i=g.y,o=i===void 0?void 0:i,e=h(g.insetIndex)&&w.insets[g.insetIndex].getSVGTransform()||x,s=S.projectPoint(g.options)||g.properties&&S.projectPoint(g.properties);if(s?(t=s.x,o=s.y):g.bounds&&(t=g.bounds.midX,o=g.bounds.midY,e&&h(t)&&h(o)&&(g.plotX=t*e.scaleX+e.translateX,g.plotY=o*e.scaleY+e.translateY,r=!0)),h(t)&&h(o)){if(!r){var n=w.projectedUnitsToPixels({x:t,y:o});g.plotX=n.x,g.plotY=c?n.y:S.chart.plotHeight-n.y}}else g.y=g.plotX=g.plotY=void 0;g.isInside=S.isPointInside(g),g.zone=S.zones.length?g.getZone():void 0})}y(this,"afterTranslate")},v.defaultOptions=f(M.defaultOptions,{dataLabels:{crop:!1,defer:!1,enabled:!0,formatter:function(){return this.point.name},overflow:!1,style:{color:"#000000"}}}),v}(M);return U.prototype.symbols.mapmarker=function(u,v,S,w,x){var c,g,r=x&&x.context==="legend";r?(c=u+S/2,g=v+w):x&&typeof x.anchorX=="number"&&typeof x.anchorY=="number"?(c=x.anchorX,g=x.anchorY):(c=u+S/2,g=v+w/2,v-=w);var a=r?w/3:w/2;return[["M",c,g],["C",c,g,c-a,v+1.5*a,c-a,v+a],["A",a,a,1,1,1,c+a,v+a],["C",c+a,v+1.5*a,c,g,c,g],["Z"]]},P(m.prototype,{type:"mappoint",axisTypes:["colorAxis"],forceDL:!0,isCartesian:!1,pointClass:B,searchPoint:z,useMapGeometry:!0}),X.registerSeriesType("mappoint",m),m}),et(_,"Series/Bubble/BubbleLegendDefaults.js",[],function(){return{borderColor:void 0,borderWidth:2,className:void 0,color:void 0,connectorClassName:void 0,connectorColor:void 0,connectorDistance:60,connectorWidth:1,enabled:!1,labels:{className:void 0,allowOverlap:!1,format:"",formatter:void 0,align:"right",style:{fontSize:"10px",color:"#000000"},x:0,y:0},maxSize:60,minSize:10,legendIndex:0,ranges:{value:void 0,borderColor:void 0,color:void 0,connectorColor:void 0},sizeBy:"area",sizeByAbsoluteValue:!1,zIndex:1,zThreshold:0}}),et(_,"Series/Bubble/BubbleLegendItem.js",[_["Core/Color/Color.js"],_["Core/FormatUtilities.js"],_["Core/Globals.js"],_["Core/Utilities.js"]],function(G,B,X,U){var $=G.parse,Z=X.noop,V=U.arrayMax,z=U.arrayMin,I=U.isNumber,E=U.merge,M=U.pick,P=U.stableSort;return function(){function y(h,f){this.chart=void 0,this.fontMetrics=void 0,this.legend=void 0,this.maxLabel=void 0,this.movementX=void 0,this.ranges=void 0,this.selected=void 0,this.visible=void 0,this.symbols=void 0,this.options=void 0,this.setState=Z,this.init(h,f)}return y.prototype.init=function(h,f){this.options=h,this.visible=!0,this.chart=f.chart,this.legend=f},y.prototype.addToLegend=function(h){h.splice(this.options.legendIndex,0,this)},y.prototype.drawLegendSymbol=function(h){var f,m=this.chart,u=M(h.options.itemDistance,20),v=this.legendItem||{},S=this.options,w=S.ranges,x=S.connectorDistance;if(this.fontMetrics=m.renderer.fontMetrics(S.labels.style.fontSize),w&&w.length&&I(w[0].value)){P(w,function(a,t){return t.value-a.value}),this.ranges=w,this.setOptions(),this.render();var c=this.getMaxLabelSize(),g=this.ranges[0].radius,r=2*g;f=(f=x-g+c.width)>0?f:0,this.maxLabel=c,this.movementX=S.labels.align==="left"?f:0,v.labelWidth=r+f+u,v.labelHeight=r+this.fontMetrics.h/2}else h.options.bubbleLegend.autoRanges=!0},y.prototype.setOptions=function(){var h=this.ranges,f=this.options,m=this.chart.series[f.seriesIndex],u=this.legend.baseline,v={zIndex:f.zIndex,"stroke-width":f.borderWidth},S={zIndex:f.zIndex,"stroke-width":f.connectorWidth},w={align:this.legend.options.rtl||f.labels.align==="left"?"right":"left",zIndex:f.zIndex},x=m.options.marker.fillOpacity,c=this.chart.styledMode;h.forEach(function(g,r){c||(v.stroke=M(g.borderColor,f.borderColor,m.color),v.fill=M(g.color,f.color,x!==1?$(m.color).setOpacity(x).get("rgba"):m.color),S.stroke=M(g.connectorColor,f.connectorColor,m.color)),h[r].radius=this.getRangeRadius(g.value),h[r]=E(h[r],{center:h[0].radius-h[r].radius+u}),c||E(!0,h[r],{bubbleAttribs:E(v),connectorAttribs:E(S),labelAttribs:w})},this)},y.prototype.getRangeRadius=function(h){var f=this.options,m=this.options.seriesIndex,u=this.chart.series[m],v=f.ranges[0].value,S=f.ranges[f.ranges.length-1].value,w=f.minSize,x=f.maxSize;return u.getRadius.call(this,S,v,w,x,h)},y.prototype.render=function(){var h=this.legendItem||{},f=this.chart.renderer,m=this.options.zThreshold;this.symbols||(this.symbols={connectors:[],bubbleItems:[],labels:[]}),h.symbol=f.g("bubble-legend"),h.label=f.g("bubble-legend-item"),h.symbol.translateX=0,h.symbol.translateY=0;for(var u=0,v=this.ranges;u<v.length;u++){var S=v[u];S.value>=m&&this.renderRange(S)}h.symbol.add(h.label),h.label.add(h.group),this.hideOverlappingLabels()},y.prototype.renderRange=function(h){var f=this.ranges[0],m=this.legend,u=this.options,v=u.labels,S=this.chart,w=S.series[u.seriesIndex],x=S.renderer,c=this.symbols,g=c.labels,r=h.center,a=Math.abs(h.radius),t=u.connectorDistance||0,i=v.align,o=m.options.rtl,e=u.borderWidth,s=u.connectorWidth,n=f.radius||0,l=r-a-e/2+s/2,b=this.fontMetrics,k=b.f/2-(b.h-b.f)/2,D=(l%1?1:.5)-(s%2?0:.5),d=x.styledMode,C=o||i==="left"?-t:t;i==="center"&&(C=0,u.connectorDistance=0,h.labelAttribs.align="center");var A=l+u.labels.y,N=n+C+u.labels.x;c.bubbleItems.push(x.circle(n,r+D,a).attr(d?{}:h.bubbleAttribs).addClass((d?"highcharts-color-"+w.colorIndex+" ":"")+"highcharts-bubble-legend-symbol "+(u.className||"")).add(this.legendItem.symbol)),c.connectors.push(x.path(x.crispLine([["M",n,l],["L",n+C,l]],u.connectorWidth)).attr(d?{}:h.connectorAttribs).addClass((d?"highcharts-color-"+this.options.seriesIndex+" ":"")+"highcharts-bubble-legend-connectors "+(u.connectorClassName||"")).add(this.legendItem.symbol));var R=x.text(this.formatLabel(h),N,A+k).attr(d?{}:h.labelAttribs).css(d?{}:v.style).addClass("highcharts-bubble-legend-labels "+(u.labels.className||"")).add(this.legendItem.symbol);g.push(R),R.placed=!0,R.alignAttr={x:N,y:A+k}},y.prototype.getMaxLabelSize=function(){var h,f;return this.symbols.labels.forEach(function(m){f=m.getBBox(!0),h=h?f.width>h.width?f:h:f}),h||{}},y.prototype.formatLabel=function(h){var f=this.options,m=f.labels.formatter,u=f.labels.format,v=this.chart.numberFormatter;return u?B.format(u,h):m?m.call(h):v(h.value,1)},y.prototype.hideOverlappingLabels=function(){var h=this.chart,f=this.options.labels.allowOverlap,m=this.symbols;!f&&m&&(h.hideOverlappingLabels(m.labels),m.labels.forEach(function(u,v){u.newOpacity?u.newOpacity!==u.oldOpacity&&m.connectors[v].show():m.connectors[v].hide()}))},y.prototype.getRanges=function(){var h,f,m=this.legend.bubbleLegend,u=m.chart.series,v=m.options.ranges,S=Number.MAX_VALUE,w=-Number.MAX_VALUE;return u.forEach(function(x){x.isBubble&&!x.ignoreSeries&&(f=x.zData.filter(I)).length&&(S=M(x.options.zMin,Math.min(S,Math.max(z(f),x.options.displayNegative===!1?x.options.zThreshold:-Number.MAX_VALUE))),w=M(x.options.zMax,Math.max(w,V(f))))}),h=S===w?[{value:w}]:[{value:S},{value:(S+w)/2},{value:w,autoRanges:!0}],v.length&&v[0].radius&&h.reverse(),h.forEach(function(x,c){v&&v[c]&&(h[c]=E(v[c],x))}),h},y.prototype.predictBubbleSizes=function(){var h,f=this.chart,m=this.fontMetrics,u=f.legend.options,v=u.floating,S=u.layout==="horizontal",w=S?f.legend.lastLineHeight:0,x=f.plotSizeX,c=f.plotSizeY,g=f.series[this.options.seriesIndex],r=g.getPxExtremes(),a=Math.ceil(r.minPxSize),t=Math.ceil(r.maxPxSize),i=Math.min(c,x),o=g.options.maxSize;return v||!/%$/.test(o)?h=t:(o=parseFloat(o),h=(i+w-m.h/2)*o/100/(o/100+1),(S&&c-h>=x||!S&&x-h>=c)&&(h=t)),[a,Math.ceil(h)]},y.prototype.updateRanges=function(h,f){var m=this.legend.options.bubbleLegend;m.minSize=h,m.maxSize=f,m.ranges=this.getRanges()},y.prototype.correctSizes=function(){var h=this.legend,f=this.chart.series[this.options.seriesIndex].getPxExtremes(),m=f.maxPxSize,u=this.options.maxSize;Math.abs(Math.ceil(m)-u)>1&&(this.updateRanges(this.options.minSize,f.maxPxSize),h.render())},y}()}),et(_,"Series/Bubble/BubbleLegendComposition.js",[_["Series/Bubble/BubbleLegendDefaults.js"],_["Series/Bubble/BubbleLegendItem.js"],_["Core/Defaults.js"],_["Core/Utilities.js"]],function(G,B,X,U){var $=X.setOptions,Z=U.addEvent,V=U.objectEach,z=U.wrap,I=[];function E(m,u,v){var S,w,x,c=this,g=c.legend,r=M(c)>=0;g&&g.options.enabled&&g.bubbleLegend&&g.options.bubbleLegend.autoRanges&&r?(S=g.bubbleLegend.options,w=g.bubbleLegend.predictBubbleSizes(),g.bubbleLegend.updateRanges(w[0],w[1]),S.placed||(g.group.placed=!1,g.allItems.forEach(function(a){(x=a.legendItem||{}).group&&(x.group.translateY=null)})),g.render(),c.getMargins(),c.axes.forEach(function(a){a.visible&&a.render(),S.placed||(a.setScale(),a.updateNames(),V(a.ticks,function(t){t.isNew=!0,t.isNewLabel=!0}))}),S.placed=!0,c.getMargins(),m.call(c,u,v),g.bubbleLegend.correctSizes(),f(g,P(g))):(m.call(c,u,v),g&&g.options.enabled&&g.bubbleLegend&&(g.render(),f(g,P(g))))}function M(m){for(var u=m.series,v=0;v<u.length;){if(u[v]&&u[v].isBubble&&u[v].visible&&u[v].zData.length)return v;v++}return-1}function P(m){var u,v,S,w=m.allItems,x=[],c=w.length,g=0,r=0;for(g=0;g<c;g++)if(v=w[g].legendItem||{},S=(w[g+1]||{}).legendItem||{},v.labelHeight&&(w[g].itemHeight=v.labelHeight),w[g]===w[c-1]||v.y!==S.y){for(x.push({height:0}),u=x[x.length-1];r<=g;r++)w[r].itemHeight>u.height&&(u.height=w[r].itemHeight);u.step=g}return x}function y(m){var u=this,v=u.bubbleLegend,S=u.options,w=S.bubbleLegend,x=M(u.chart);v&&v.ranges&&v.ranges.length&&(w.ranges.length&&(w.autoRanges=!!w.ranges[0].autoRanges),u.destroyItem(v)),x>=0&&S.enabled&&w.enabled&&(w.seriesIndex=x,u.bubbleLegend=new B(w,u),u.bubbleLegend.addToLegend(m.allItems))}function h(){var m,u=this,v=u.chart,S=u.visible,w=u.chart.legend;w&&w.bubbleLegend&&(u.visible=!S,u.ignoreSeries=S,m=M(v)>=0,w.bubbleLegend.visible!==m&&(w.update({bubbleLegend:{enabled:m}}),w.bubbleLegend.visible=m),u.visible=S)}function f(m,u){var v,S,w,x,c=m.allItems,g=m.options.rtl,r=0;c.forEach(function(a,t){(x=a.legendItem||{}).group&&(v=x.group.translateX||0,S=x.y||0,((w=a.movementX)||g&&a.ranges)&&(w=g?v-a.options.maxSize/2:v+w,x.group.attr({translateX:w})),t>u[r].step&&r++,x.group.attr({translateY:Math.round(S+u[r].height/2)}),x.y=S+u[r].height/2)})}return{compose:function(m,u,v){I.indexOf(m)===-1&&(I.push(m),$({legend:{bubbleLegend:G}}),z(m.prototype,"drawChartBox",E)),I.indexOf(u)===-1&&(I.push(u),Z(u,"afterGetAllItems",y)),I.indexOf(v)===-1&&(I.push(v),Z(v,"legendItemClick",h))}}}),et(_,"Series/Bubble/BubblePoint.js",[_["Core/Series/Point.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,X){var U,$=this&&this.__extends||(U=function(I,E){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,P){M.__proto__=P}||function(M,P){for(var y in P)P.hasOwnProperty(y)&&(M[y]=P[y])},U(I,E)},function(I,E){function M(){this.constructor=I}U(I,E),I.prototype=E===null?Object.create(E):(M.prototype=E.prototype,new M)}),Z=B.seriesTypes.scatter.prototype.pointClass,V=X.extend,z=function(I){function E(){var M=I!==null&&I.apply(this,arguments)||this;return M.options=void 0,M.series=void 0,M}return $(E,I),E.prototype.haloPath=function(M){return G.prototype.haloPath.call(this,M===0?0:(this.marker&&this.marker.radius||0)+M)},E}(Z);return V(z.prototype,{ttBelow:!1}),z}),et(_,"Series/Bubble/BubbleSeries.js",[_["Series/Bubble/BubbleLegendComposition.js"],_["Series/Bubble/BubblePoint.js"],_["Core/Color/Color.js"],_["Core/Globals.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,X,U,$,Z){var V,z=this&&this.__extends||(V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,e){o.__proto__=e}||function(o,e){for(var s in e)e.hasOwnProperty(s)&&(o[s]=e[s])},V(t,i)},function(t,i){function o(){this.constructor=t}V(t,i),t.prototype=i===null?Object.create(i):(o.prototype=i.prototype,new o)}),I=X.parse,E=U.noop,M=$.series,P=$.seriesTypes,y=P.column.prototype,h=P.scatter,f=Z.addEvent,m=Z.arrayMax,u=Z.arrayMin,v=Z.clamp,S=Z.extend,w=Z.isNumber,x=Z.merge,c=Z.pick,g=[];function r(){var t,i=this,o=this.len,e=this.chart,s=this.isXAxis,n=s?"xData":"yData",l=this.min,b=this.max-l,k=0,D=o,d=o/b;this.series.forEach(function(C){if(C.bubblePadding&&(C.visible||!e.options.chart.ignoreHiddenSeries)){i.allowZoomOutside=!0,t=!0;var A=C[n];if(s&&((C.onPoint||C).getRadii(0,0,C),C.onPoint&&(C.radii=C.onPoint.radii)),b>0){for(var N=A.length;N--;)if(w(A[N])&&i.dataMin<=A[N]&&A[N]<=i.max){var R=C.radii&&C.radii[N]||0;k=Math.min((A[N]-l)*d-R,k),D=Math.max((A[N]-l)*d+R,D)}}}}),t&&b>0&&!this.logarithmic&&(D-=o,d*=(o+Math.max(0,k)-Math.min(D,o))/o,[["min","userMin",k],["max","userMax",D]].forEach(function(C){c(i.options[C[0]],i[C[1]])===void 0&&(i[C[0]]+=C[2]/d)}))}var a=function(t){function i(){var o=t!==null&&t.apply(this,arguments)||this;return o.data=void 0,o.maxPxSize=void 0,o.minPxSize=void 0,o.options=void 0,o.points=void 0,o.radii=void 0,o.yData=void 0,o.zData=void 0,o}return z(i,t),i.compose=function(o,e,s,n){G.compose(e,s,n),g.indexOf(o)===-1&&(g.push(o),o.prototype.beforePadding=r)},i.prototype.animate=function(o){!o&&this.points.length<this.options.animationLimit&&this.points.forEach(function(e){var s=e.graphic;s&&s.width&&(this.hasRendered||s.attr({x:e.plotX,y:e.plotY,width:1,height:1}),s.animate(this.markerAttribs(e),this.options.animation))},this)},i.prototype.getRadii=function(){var o,e,s,n=this,l=this.zData,b=this.yData,k=[],D=this.chart.bubbleZExtremes,d=this.getPxExtremes(),C=d.minPxSize,A=d.maxPxSize;if(!D){var N,R=Number.MAX_VALUE,L=-Number.MAX_VALUE;this.chart.series.forEach(function(O){if(O.bubblePadding&&(O.visible||!n.chart.options.chart.ignoreHiddenSeries)){var j=(O.onPoint||O).getZExtremes();j&&(R=Math.min(R||j.zMin,j.zMin),L=Math.max(L||j.zMax,j.zMax),N=!0)}}),N?(D={zMin:R,zMax:L},this.chart.bubbleZExtremes=D):D={zMin:0,zMax:0}}for(e=0,o=l.length;e<o;e++)s=l[e],k.push(this.getRadius(D.zMin,D.zMax,C,A,s,b&&b[e]));this.radii=k},i.prototype.getRadius=function(o,e,s,n,l,b){var k=this.options,D=k.sizeBy!=="width",d=k.zThreshold,C=e-o,A=.5;if(b===null||l===null)return null;if(w(l)){if(k.sizeByAbsoluteValue&&(l=Math.abs(l-d),e=C=Math.max(e-d,Math.abs(o-d)),o=0),l<o)return s/2-1;C>0&&(A=(l-o)/C)}return D&&A>=0&&(A=Math.sqrt(A)),Math.ceil(s+A*(n-s))/2},i.prototype.hasData=function(){return!!this.processedXData.length},i.prototype.pointAttribs=function(o,e){var s=this.options.marker.fillOpacity,n=M.prototype.pointAttribs.call(this,o,e);return s!==1&&(n.fill=I(n.fill).setOpacity(s).get("rgba")),n},i.prototype.translate=function(){t.prototype.translate.call(this),this.getRadii(),this.translateBubble()},i.prototype.translateBubble=function(){for(var o=this.data,e=this.radii,s=this.getPxExtremes().minPxSize,n=o.length;n--;){var l=o[n],b=e?e[n]:0;w(b)&&b>=s/2?(l.marker=S(l.marker,{radius:b,width:2*b,height:2*b}),l.dlBox={x:l.plotX-b,y:l.plotY-b,width:2*b,height:2*b}):(l.shapeArgs=l.plotY=l.dlBox=void 0,l.isInside=!1)}},i.prototype.getPxExtremes=function(){var o=Math.min(this.chart.plotWidth,this.chart.plotHeight),e=function(n){var l;return typeof n=="string"&&(l=/%$/.test(n),n=parseInt(n,10)),l?o*n/100:n},s=e(c(this.options.minSize,8));return{minPxSize:s,maxPxSize:Math.max(e(c(this.options.maxSize,"20%")),s)}},i.prototype.getZExtremes=function(){var o=this.options,e=(this.zData||[]).filter(w);if(e.length){var s=c(o.zMin,v(u(e),o.displayNegative===!1?o.zThreshold||0:-Number.MAX_VALUE,Number.MAX_VALUE)),n=c(o.zMax,m(e));if(w(s)&&w(n))return{zMin:s,zMax:n}}},i.defaultOptions=x(h.defaultOptions,{dataLabels:{formatter:function(){var o=this.series.chart.numberFormatter,e=this.point.z;return w(e)?o(e,-1):""},inside:!0,verticalAlign:"middle"},animationLimit:250,marker:{lineColor:null,lineWidth:1,fillOpacity:.5,radius:null,states:{hover:{radiusPlus:0}},symbol:"circle"},minSize:8,maxSize:"20%",softThreshold:!1,states:{hover:{halo:{size:5}}},tooltip:{pointFormat:"({point.x}, {point.y}), Size: {point.z}"},turboThreshold:0,zThreshold:0,zoneAxis:"z"}),i}(h);return S(a.prototype,{alignDataLabel:y.alignDataLabel,applyZones:E,bubblePadding:!0,buildKDTree:E,directTouch:!0,isBubble:!0,pointArrayMap:["y","z"],pointClass:B,parallelArrays:["x","y","z"],trackerGroups:["group","dataLabelsGroup"],specialGroup:"group",zoneAxis:"z"}),f(a,"updatedData",function(t){delete t.target.chart.bubbleZExtremes}),f(a,"remove",function(t){delete t.target.chart.bubbleZExtremes}),$.registerSeriesType("bubble",a),a}),et(_,"Series/MapBubble/MapBubblePoint.js",[_["Series/Bubble/BubblePoint.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,X){var U,$=this&&this.__extends||(U=function(I,E){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,P){M.__proto__=P}||function(M,P){for(var y in P)P.hasOwnProperty(y)&&(M[y]=P[y])},U(I,E)},function(I,E){function M(){this.constructor=I}U(I,E),I.prototype=E===null?Object.create(E):(M.prototype=E.prototype,new M)}),Z=B.seriesTypes.map.prototype.pointClass.prototype,V=X.extend,z=function(I){function E(){return I!==null&&I.apply(this,arguments)||this}return $(E,I),E.prototype.isValid=function(){return typeof this.z=="number"},E}(G);return V(z.prototype,{applyOptions:Z.applyOptions,getProjectedBounds:Z.getProjectedBounds}),z}),et(_,"Series/MapBubble/MapBubbleSeries.js",[_["Series/Bubble/BubbleSeries.js"],_["Series/MapBubble/MapBubblePoint.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,X,U){var $,Z=this&&this.__extends||($=function(y,h){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var u in m)m.hasOwnProperty(u)&&(f[u]=m[u])},$(y,h)},function(y,h){function f(){this.constructor=y}$(y,h),y.prototype=h===null?Object.create(h):(f.prototype=h.prototype,new f)}),V=X.seriesTypes,z=V.map.prototype,I=V.mappoint.prototype,E=U.extend,M=U.merge,P=function(y){function h(){var f=y!==null&&y.apply(this,arguments)||this;return f.data=void 0,f.options=void 0,f.points=void 0,f.clearBounds=z.clearBounds,f}return Z(h,y),h.prototype.searchPoint=function(f,m){return this.searchKDTree({clientX:f.chartX-this.chart.plotLeft,plotY:f.chartY-this.chart.plotTop},m,f)},h.prototype.translate=function(){I.translate.call(this),this.getRadii(),this.translateBubble()},h.defaultOptions=M(G.defaultOptions,{lineWidth:0,animationLimit:500,joinBy:"hc-key",tooltip:{pointFormat:"{point.name}: {point.z}"}}),h}(G);return E(P.prototype,{type:"mapbubble",axisTypes:["colorAxis"],getProjectedBounds:z.getProjectedBounds,isCartesian:!1,pointArrayMap:["z"],pointClass:B,processData:z.processData,projectPoint:I.projectPoint,setData:z.setData,setOptions:z.setOptions,updateData:z.updateData,useMapGeometry:!0,xyFromShape:!0}),X.registerSeriesType("mapbubble",P),P}),et(_,"Series/Heatmap/HeatmapPoint.js",[_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B){var X,U=this&&this.__extends||(X=function(M,P){return X=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,h){y.__proto__=h}||function(y,h){for(var f in h)h.hasOwnProperty(f)&&(y[f]=h[f])},X(M,P)},function(M,P){function y(){this.constructor=M}X(M,P),M.prototype=P===null?Object.create(P):(y.prototype=P.prototype,new y)}),$=G.seriesTypes.scatter.prototype.pointClass,Z=B.clamp,V=B.defined,z=B.extend,I=B.pick,E=function(M){function P(){var y=M!==null&&M.apply(this,arguments)||this;return y.options=void 0,y.series=void 0,y.value=void 0,y.x=void 0,y.y=void 0,y}return U(P,M),P.prototype.applyOptions=function(y,h){return(this.isNull||this.value===null)&&delete this.color,M.prototype.applyOptions.call(this,y,h),this.formatPrefix=this.isNull||this.value===null?"null":"point",this},P.prototype.getCellAttributes=function(){var y=this,h=y.series,f=h.options,m=(f.colsize||1)/2,u=(f.rowsize||1)/2,v=h.xAxis,S=h.yAxis,w=y.options.marker||h.options.marker,x=h.pointPlacementToXValue(),c=I(y.pointPadding,f.pointPadding,0),g={x1:Z(Math.round(v.len-v.translate(y.x-m,!1,!0,!1,!0,-x)),-v.len,2*v.len),x2:Z(Math.round(v.len-v.translate(y.x+m,!1,!0,!1,!0,-x)),-v.len,2*v.len),y1:Z(Math.round(S.translate(y.y-u,!1,!0,!1,!0)),-S.len,2*S.len),y2:Z(Math.round(S.translate(y.y+u,!1,!0,!1,!0)),-S.len,2*S.len)};return[["width","x"],["height","y"]].forEach(function(r){var a=r[0],t=r[1],i=t+"1",o=t+"2",e=Math.abs(g[i]-g[o]),s=w&&w.lineWidth||0,n=Math.abs(g[i]+g[o])/2,l=w&&w[a];if(V(l)&&l<e){var b=l/2+s/2;g[i]=n-b,g[o]=n+b}c&&(t==="y"&&(i=o,o=t+"1"),g[i]+=c,g[o]-=c)}),g},P.prototype.haloPath=function(y){if(!y)return[];var h=this.shapeArgs||{},f=h.x,m=f===void 0?0:f,u=h.y,v=u===void 0?0:u,S=h.width,w=S===void 0?0:S,x=h.height,c=x===void 0?0:x;return[["M",m-y,v-y],["L",m-y,v+c+y],["L",m+w+y,v+c+y],["L",m+w+y,v-y],["Z"]]},P.prototype.isValid=function(){return this.value!==1/0&&this.value!==-1/0},P}($);return z(E.prototype,{dataLabelOnNull:!0,moveToTopOnHover:!0,ttBelow:!1}),E}),et(_,"Series/Heatmap/HeatmapSeries.js",[_["Core/Color/Color.js"],_["Series/ColorMapComposition.js"],_["Series/Heatmap/HeatmapPoint.js"],_["Core/Legend/LegendSymbol.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Renderer/SVG/SVGRenderer.js"],_["Core/Utilities.js"]],function(G,B,X,U,$,Z,V){var z,I=this&&this.__extends||(z=function(x,c){return z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,r){g.__proto__=r}||function(g,r){for(var a in r)r.hasOwnProperty(a)&&(g[a]=r[a])},z(x,c)},function(x,c){function g(){this.constructor=x}z(x,c),x.prototype=c===null?Object.create(c):(g.prototype=c.prototype,new g)}),E=$.series,M=$.seriesTypes,P=M.column,y=M.scatter,h=Z.prototype.symbols,f=V.extend,m=V.fireEvent,u=V.isNumber,v=V.merge,S=V.pick,w=function(x){function c(){var g=x!==null&&x.apply(this,arguments)||this;return g.colorAxis=void 0,g.data=void 0,g.options=void 0,g.points=void 0,g.valueMax=NaN,g.valueMin=NaN,g}return I(c,x),c.prototype.drawPoints=function(){var g=this;((this.options.marker||{}).enabled||this._hasPointMarkers)&&(E.prototype.drawPoints.call(this),this.points.forEach(function(r){r.graphic&&(r.graphic[g.chart.styledMode?"css":"animate"](g.colorAttribs(r)),r.value===null&&r.graphic.addClass("highcharts-null-point"))}))},c.prototype.getExtremes=function(){var g=E.prototype.getExtremes.call(this,this.valueData),r=g.dataMin,a=g.dataMax;return u(r)&&(this.valueMin=r),u(a)&&(this.valueMax=a),E.prototype.getExtremes.call(this)},c.prototype.getValidPoints=function(g,r){return E.prototype.getValidPoints.call(this,g,r,!0)},c.prototype.hasData=function(){return!!this.processedXData.length},c.prototype.init=function(){x.prototype.init.apply(this,arguments);var g=this.options;g.pointRange=S(g.pointRange,g.colsize||1),this.yAxis.axisPointRange=g.rowsize||1,h.ellipse=h.circle,g.marker&&(g.marker.r=g.borderRadius)},c.prototype.markerAttribs=function(g,r){var a=g.shapeArgs||{};if(g.hasImage)return{x:g.plotX,y:g.plotY};if(r&&r!=="normal"){var t=g.options.marker||{},i=this.options.marker||{},o=i.states&&i.states[r]||{},e=t.states&&t.states[r]||{},s=(e.width||o.width||a.width||0)+(e.widthPlus||o.widthPlus||0),n=(e.height||o.height||a.height||0)+(e.heightPlus||o.heightPlus||0);return{x:(a.x||0)+((a.width||0)-s)/2,y:(a.y||0)+((a.height||0)-n)/2,width:s,height:n}}return a},c.prototype.pointAttribs=function(g,r){var a=this,t=E.prototype.pointAttribs.call(a,g,r),i=a.options||{},o=a.chart.options.plotOptions||{},e=o.series||{},s=o.heatmap||{},n=g&&g.options.borderColor||i.borderColor||s.borderColor||e.borderColor,l=g&&g.options.borderWidth||i.borderWidth||s.borderWidth||e.borderWidth||t["stroke-width"];if(t.stroke=g&&g.marker&&g.marker.lineColor||i.marker&&i.marker.lineColor||n||this.color,t["stroke-width"]=l,r&&r!=="normal"){var b=v(i.states&&i.states[r],i.marker&&i.marker.states&&i.marker.states[r],g&&g.options.states&&g.options.states[r]||{});t.fill=b.color||G.parse(t.fill).brighten(b.brightness||0).get(),t.stroke=b.lineColor||t.stroke}return t},c.prototype.translate=function(){var g=this,r=g.options,a=r.marker&&r.marker.symbol||"rect",t=h[a]?a:"rect",i=["circle","square"].indexOf(t)!==-1;g.generatePoints(),g.points.forEach(function(o){var e=o.getCellAttributes(),s=Math.min(e.x1,e.x2),n=Math.min(e.y1,e.y2),l=Math.max(Math.abs(e.x2-e.x1),0),b=Math.max(Math.abs(e.y2-e.y1),0);if(o.hasImage=(o.marker&&o.marker.symbol||a||"").indexOf("url")===0,i){var k=Math.abs(l-b);s=Math.min(e.x1,e.x2)+(l<b?0:k/2),n=Math.min(e.y1,e.y2)+(l<b?k/2:0),l=b=Math.min(l,b)}o.hasImage&&(o.marker={width:l,height:b}),o.plotX=o.clientX=(e.x1+e.x2)/2,o.plotY=(e.y1+e.y2)/2,o.shapeType="path",o.shapeArgs=v(!0,{x:s,y:n,width:l,height:b},{d:h[t](s,n,l,b,{r:r.borderRadius})})}),m(g,"afterTranslate")},c.defaultOptions=v(y.defaultOptions,{animation:!1,borderRadius:0,borderWidth:0,nullColor:"#f7f7f7",dataLabels:{formatter:function(){var g=this.series.chart.numberFormatter,r=this.point.value;return u(r)?g(r,-1):""},inside:!0,verticalAlign:"middle",crop:!1,overflow:"allow",padding:0},marker:{symbol:"rect",radius:0,lineColor:void 0,states:{hover:{lineWidthPlus:0},select:{}}},clip:!0,pointRange:null,tooltip:{pointFormat:"{point.x}, {point.y}: {point.value}<br/>"},states:{hover:{halo:!1,brightness:.2}}}),c}(y);return f(w.prototype,{axisTypes:B.seriesMembers.axisTypes,colorKey:B.seriesMembers.colorKey,directTouch:!0,getExtremesFromAll:!0,parallelArrays:B.seriesMembers.parallelArrays,pointArrayMap:["y","value"],pointClass:X,specialGroup:"group",trackerGroups:B.seriesMembers.trackerGroups,alignDataLabel:P.prototype.alignDataLabel,colorAttribs:B.seriesMembers.colorAttribs,drawLegendSymbol:U.drawRectangle,getSymbol:E.prototype.getSymbol}),B.compose(w),$.registerSeriesType("heatmap",w),w}),et(_,"masters/modules/map.src.js",[_["Core/Globals.js"],_["Core/Axis/Color/ColorAxis.js"],_["Series/MapBubble/MapBubbleSeries.js"],_["Core/Chart/MapChart.js"],_["Maps/MapView.js"],_["Maps/Projection.js"]],function(G,B,X,U,$,Z){var V=G;V.ColorAxis=B,V.MapChart=U,V.mapChart=V.Map=U.mapChart,V.MapView=$,V.maps=U.maps,V.Projection=Z,B.compose(V.Chart,V.Fx,V.Legend,V.Series),X.compose(V.Axis,V.Chart,V.Legend,V.Series)})},it.exports?(pt.default=pt,it.exports=pt):(ht=[st(4783)],(ct=function(ft){return pt(ft),pt.Highcharts=ft,pt}.apply(rt,ht))===void 0||(it.exports=ct))},6512:(it,rt,st)=>{var ht,ct,pt;pt=function(ft){var _=ft?ft._modules:{};function et(G,B,X,U){G.hasOwnProperty(B)||(G[B]=U.apply(null,X),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:B,module:G[B]}})))}et(_,"Series/ColorMapComposition.js",[_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B){var X,U=G.seriesTypes.column.prototype,$=B.addEvent,Z=B.defined;return function(V){var z=[];function I(E){var M=this;M.moveToTopOnHover&&M.graphic&&M.graphic.attr({zIndex:E&&E.state==="hover"?1:0})}V.pointMembers={dataLabelOnNull:!0,moveToTopOnHover:!0,isValid:function(){return this.value!==null&&this.value!==1/0&&this.value!==-1/0&&(this.value===void 0||!isNaN(this.value))}},V.seriesMembers={colorKey:"value",axisTypes:["xAxis","yAxis","colorAxis"],parallelArrays:["x","y","value"],pointArrayMap:["value"],trackerGroups:["group","markerGroup","dataLabelsGroup"],colorAttribs:function(E){var M={};return!Z(E.color)||E.state&&E.state!=="normal"||(M[this.colorProp||"fill"]=E.color),M},pointAttribs:U.pointAttribs},V.compose=function(E){var M=E.prototype.pointClass;return z.indexOf(M)===-1&&(z.push(M),$(M,"afterSetState",I)),E}}(X||(X={})),X}),et(_,"Series/Treemap/TreemapAlgorithmGroup.js",[],function(){return function(){function G(B,X,U,$){this.height=B,this.width=X,this.plot=$,this.direction=U,this.startDirection=U,this.total=0,this.nW=0,this.lW=0,this.nH=0,this.lH=0,this.elArr=[],this.lP={total:0,lH:0,nH:0,lW:0,nW:0,nR:0,lR:0,aspectRatio:function(Z,V){return Math.max(Z/V,V/Z)}}}return G.prototype.addElement=function(B){this.lP.total=this.elArr[this.elArr.length-1],this.total=this.total+B,this.direction===0?(this.lW=this.nW,this.lP.lH=this.lP.total/this.lW,this.lP.lR=this.lP.aspectRatio(this.lW,this.lP.lH),this.nW=this.total/this.height,this.lP.nH=this.lP.total/this.nW,this.lP.nR=this.lP.aspectRatio(this.nW,this.lP.nH)):(this.lH=this.nH,this.lP.lW=this.lP.total/this.lH,this.lP.lR=this.lP.aspectRatio(this.lP.lW,this.lH),this.nH=this.total/this.width,this.lP.nW=this.lP.total/this.nH,this.lP.nR=this.lP.aspectRatio(this.lP.nW,this.nH)),this.elArr.push(B)},G.prototype.reset=function(){this.nW=0,this.lW=0,this.elArr=[],this.total=0},G}()}),et(_,"Series/DrawPointUtilities.js",[_["Core/Utilities.js"]],function(G){return{draw:function(B,X){var U=X.animatableAttribs,$=X.onComplete,Z=X.css,V=X.renderer,z=B.series&&B.series.chart.hasRendered?void 0:B.series&&B.series.options.animation,I=B.graphic;if(X.attribs=X.attribs||{},X.attribs.class=B.getClassName(),B.shouldDraw())I||(B.graphic=I=X.shapeType==="text"?V.text():V[X.shapeType](X.shapeArgs||{}),I.add(X.group)),Z&&I.css(Z),I.attr(X.attribs).animate(U,!X.isNew&&z,$);else if(I){var E=function(){B.graphic=I=I&&I.destroy(),typeof $=="function"&&$()};Object.keys(U).length?I.animate(U,void 0,function(){return E()}):E()}}}}),et(_,"Series/Treemap/TreemapPoint.js",[_["Series/DrawPointUtilities.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,X){var U,$=this&&this.__extends||(U=function(h,f){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,u){m.__proto__=u}||function(m,u){for(var v in u)u.hasOwnProperty(v)&&(m[v]=u[v])},U(h,f)},function(h,f){function m(){this.constructor=h}U(h,f),h.prototype=f===null?Object.create(f):(m.prototype=f.prototype,new m)}),Z=B.series.prototype.pointClass,V=B.seriesTypes,z=V.pie.prototype.pointClass,I=V.scatter.prototype.pointClass,E=X.extend,M=X.isNumber,P=X.pick,y=function(h){function f(){var m=h!==null&&h.apply(this,arguments)||this;return m.name=void 0,m.node=void 0,m.options=void 0,m.series=void 0,m.shapeType="rect",m.value=void 0,m}return $(f,h),f.prototype.draw=function(m){G.draw(this,m)},f.prototype.getClassName=function(){var m=Z.prototype.getClassName.call(this),u=this.series,v=u.options;return this.node.level<=u.nodeMap[u.rootNode].level?m+=" highcharts-above-level":this.node.isLeaf||P(v.interactByLeaf,!v.allowTraversingTree)?this.node.isLeaf||(m+=" highcharts-internal-node"):m+=" highcharts-internal-node-interactive",m},f.prototype.isValid=function(){return!!(this.id||M(this.value))},f.prototype.setState=function(m){Z.prototype.setState.call(this,m),this.graphic&&this.graphic.attr({zIndex:m==="hover"?1:0})},f.prototype.shouldDraw=function(){return M(this.plotY)&&this.y!==null},f}(I);return E(y.prototype,{setVisible:z.prototype.setVisible}),y}),et(_,"Series/Treemap/TreemapUtilities.js",[_["Core/Utilities.js"]],function(G){var B,X=G.objectEach;return function(U){U.AXIS_MAX=100,U.isBoolean=function($){return typeof $=="boolean"},U.eachObject=function($,Z,V){V=V||this,X($,function(z,I){Z.call(V,z,I,$)})},U.recursive=function $(Z,V,z){var I;z===void 0&&(z=this),(I=V.call(z,Z))!==!1&&$(I,V,z)}}(B||(B={})),B}),et(_,"Series/TreeUtilities.js",[_["Core/Color/Color.js"],_["Core/Utilities.js"]],function(G,B){var X=B.extend,U=B.isArray,$=B.isNumber,Z=B.isObject,V=B.merge,z=B.pick;return{getColor:function(I,E){var M,P,y,h,f,m,u=E.index,v=E.mapOptionsToLevel,S=E.parentColor,w=E.parentColorIndex,x=E.series,c=E.colors,g=E.siblings,r=x.points,a=x.chart.options.chart;return I&&(M=r[I.i],P=v[I.level]||{},M&&P.colorByPoint&&(h=M.index%(c?c.length:a.colorCount),y=c&&c[h]),x.chart.styledMode||(f=z(M&&M.options.color,P&&P.color,y,S&&function(t){var i=P&&P.colorVariation;return i&&i.key==="brightness"&&u&&g?G.parse(t).brighten(i.to*(u/g)).get():t}(S),x.color)),m=z(M&&M.options.colorIndex,P&&P.colorIndex,h,w,E.colorIndex)),{color:f,colorIndex:m}},getLevelOptions:function(I){var E,M,P,y,h,f,m={};if(Z(I))for(y=$(I.from)?I.from:1,f=I.levels,M={},E=Z(I.defaults)?I.defaults:{},U(f)&&(M=f.reduce(function(u,v){var S,w,x;return Z(v)&&$(v.level)&&(x=V({},v),w=z(x.levelIsConstant,E.levelIsConstant),delete x.levelIsConstant,delete x.level,S=v.level+(w?0:y-1),Z(u[S])?V(!0,u[S],x):u[S]=x),u},{})),h=$(I.to)?I.to:1,P=0;P<=h;P++)m[P]=V({},E,Z(M[P])?M[P]:{});return m},setTreeValues:function I(E,M){var P=M.before,y=M.idRoot,h=M.mapIdToNode[y],f=M.levelIsConstant!==!1,m=M.points[E.i],u=m&&m.options||{},v=[],S=0;E.levelDynamic=E.level-(f?0:h.level),E.name=z(m&&m.name,""),E.visible=y===E.id||M.visible===!0,typeof P=="function"&&(E=P(E,M)),E.children.forEach(function(x,c){var g=X({},M);X(g,{index:c,siblings:E.children.length,visible:E.visible}),x=I(x,g),v.push(x),x.visible&&(S+=x.val)});var w=z(u.value,S);return E.visible=w>=0&&(S>0||E.visible),E.children=v,E.childrenTotal=S,E.isLeaf=E.visible&&!S,E.val=w,E},updateRootId:function(I){var E,M;return Z(I)&&(M=Z(I.options)?I.options:{},E=z(I.rootNode,M.rootId,""),Z(I.userOptions)&&(I.userOptions.rootId=E),I.rootNode=E),E}}}),et(_,"Extensions/Breadcrumbs.js",[_["Core/Chart/Chart.js"],_["Core/Defaults.js"],_["Core/Globals.js"],_["Core/Utilities.js"],_["Core/FormatUtilities.js"]],function(G,B,X,U,$){var Z=B.defaultOptions,V=$.format,z=U.addEvent,I=U.objectEach,E=U.extend,M=U.fireEvent,P=U.merge,y=U.pick,h=U.defined,f=U.isString;E(Z.lang,{mainBreadcrumb:"Main"});var m=function(){function u(v,S){this.group=void 0,this.list=[],this.elementList={},this.isDirty=!0,this.level=0,this.options=void 0;var w=P(v.options.drilldown&&v.options.drilldown.drillUpButton,u.defaultBreadcrumbsOptions,v.options.navigation&&v.options.navigation.breadcrumbs,S);this.chart=v,this.options=w||{}}return u.prototype.updateProperties=function(v){this.setList(v),this.setLevel(),this.isDirty=!0},u.prototype.setList=function(v){this.list=v},u.prototype.setLevel=function(){this.level=this.list.length&&this.list.length-1},u.prototype.getLevel=function(){return this.level},u.prototype.getButtonText=function(v){var S=this.chart,w=this.options,x=S.options.lang,c=y(w.format,w.showFullPath?"{level.name}":"← {level.name}"),g=x&&y(x.drillUpText,x.mainBreadcrumb),r=w.formatter&&w.formatter(v)||V(c,{level:v.levelOptions},S)||"";return(f(r)&&!r.length||r==="← ")&&h(g)&&(r=w.showFullPath?g:"← "+g),r},u.prototype.redraw=function(){this.isDirty&&this.render(),this.group&&this.group.align(),this.isDirty=!1},u.prototype.render=function(){var v=this,S=v.chart,w=v.options;!v.group&&w&&(v.group=S.renderer.g("breadcrumbs-group").addClass("highcharts-no-tooltip highcharts-breadcrumbs").attr({zIndex:w.zIndex}).add()),w.showFullPath?this.renderFullPathButtons():this.renderSingleButton(),this.alignBreadcrumbsGroup()},u.prototype.renderFullPathButtons=function(){this.destroySingleButton(),this.resetElementListState(),this.updateListElements(),this.destroyListElements()},u.prototype.renderSingleButton=function(){var v=this,S=v.chart,w=v.list,x=v.options.buttonSpacing;this.destroyListElements();var c=v.group?v.group.getBBox().width:x,g=x,r=w[w.length-2];!S.drillUpButton&&this.level>0?S.drillUpButton=v.renderButton(r,c,g):S.drillUpButton&&(this.level>0?this.updateSingleButton():this.destroySingleButton())},u.prototype.alignBreadcrumbsGroup=function(v){var S=this;if(S.group){var w=S.options,x=w.buttonTheme,c=w.position,g=w.relativeTo==="chart"||w.relativeTo==="spacingBox"?void 0:"scrollablePlotBox",r=S.group.getBBox(),a=2*(x.padding||0)+w.buttonSpacing;c.width=r.width+a,c.height=r.height+a;var t=P(c);v&&(t.x+=v),S.options.rtl&&(t.x+=c.width),t.y=y(t.y,this.yOffset,0),S.group.align(t,!0,g)}},u.prototype.renderButton=function(v,S,w){var x=this,c=this.chart,g=x.options,r=P(g.buttonTheme),a=c.renderer.button(x.getButtonText(v),S,w,function(t){var i,o=g.events&&g.events.click;o&&(i=o.call(x,t,v)),i!==!1&&(g.showFullPath?t.newLevel=v.level:t.newLevel=x.level-1,M(x,"up",t))},r).addClass("highcharts-breadcrumbs-button").add(x.group);return c.styledMode||a.attr(g.style),a},u.prototype.renderSeparator=function(v,S){var w=this.chart,x=this.options.separator,c=w.renderer.label(x.text,v,S,void 0,void 0,void 0,!1).addClass("highcharts-breadcrumbs-separator").add(this.group);return w.styledMode||c.css(x.style),c},u.prototype.update=function(v){P(!0,this.options,v),this.destroy(),this.isDirty=!0},u.prototype.updateSingleButton=function(){var v=this.chart,S=this.list[this.level-1];v.drillUpButton&&v.drillUpButton.attr({text:this.getButtonText(S)})},u.prototype.destroy=function(){this.destroySingleButton(),this.destroyListElements(!0),this.group&&this.group.destroy(),this.group=void 0},u.prototype.destroyListElements=function(v){var S=this.elementList;I(S,function(w,x){!v&&S[x].updated||((w=S[x]).button&&w.button.destroy(),w.separator&&w.separator.destroy(),delete w.button,delete w.separator,delete S[x])}),v&&(this.elementList={})},u.prototype.destroySingleButton=function(){this.chart.drillUpButton&&(this.chart.drillUpButton.destroy(),this.chart.drillUpButton=void 0)},u.prototype.resetElementListState=function(){I(this.elementList,function(v){v.updated=!1})},u.prototype.updateListElements=function(){var v,S=this,w=S.elementList,x=S.options.buttonSpacing,c=S.list,g=S.options.rtl,r=g?-1:1,a=function(e,s){return r*e.getBBox().width+r*s},t=function(e,s,n){e.translate(s-e.getBBox().width,n)},i=S.group?a(S.group,x):x,o=x;c.forEach(function(e,s){var n,l,b=s===c.length-1;w[e.level]?(n=(v=w[e.level]).button,v.separator||b?v.separator&&b&&(v.separator.destroy(),delete v.separator):(i+=r*x,v.separator=S.renderSeparator(i,o),g&&t(v.separator,i,o),i+=a(v.separator,x)),w[e.level].updated=!0):(n=S.renderButton(e,i,o),g&&t(n,i,o),i+=a(n,x),b||(l=S.renderSeparator(i,o),g&&t(l,i,o),i+=a(l,x)),w[e.level]={button:n,separator:l,updated:!0}),n&&n.setState(b?2:0)})},u.defaultBreadcrumbsOptions={buttonTheme:{fill:"none",height:18,padding:2,"stroke-width":0,zIndex:7,states:{select:{fill:"none"}},style:{color:"#335cad"}},buttonSpacing:5,floating:!1,format:void 0,relativeTo:"plotBox",rtl:!1,position:{align:"left",verticalAlign:"top",x:0,y:void 0},separator:{text:"/",style:{color:"#666666"}},showFullPath:!0,style:{},useHTML:!1,zIndex:7},u}();return X.Breadcrumbs||(X.Breadcrumbs=m,z(G,"getMargins",function(){var u=this.breadcrumbs;if(u&&!u.options.floating&&u.level){var v=u.options,S=v.buttonTheme,w=(S.height||0)+2*(S.padding||0)+v.buttonSpacing,x=v.position.verticalAlign;x==="bottom"?(this.marginBottom=(this.marginBottom||0)+w,u.yOffset=w):x!=="middle"?(this.plotTop+=w,u.yOffset=-w):u.yOffset=void 0}}),z(G,"redraw",function(){this.breadcrumbs&&this.breadcrumbs.redraw()}),z(G,"destroy",function(){this.breadcrumbs&&(this.breadcrumbs.destroy(),this.breadcrumbs=void 0)}),z(G,"afterShowResetZoom",function(){var u=this;if(u.breadcrumbs){var v=u.resetZoomButton&&u.resetZoomButton.getBBox(),S=u.breadcrumbs.options;v&&S.position.align==="right"&&S.relativeTo==="plotBox"&&u.breadcrumbs.alignBreadcrumbsGroup(-v.width-S.buttonSpacing)}}),z(G,"selection",function(u){u.resetSelection===!0&&this.breadcrumbs&&this.breadcrumbs.alignBreadcrumbsGroup()})),m}),et(_,"Series/Treemap/TreemapComposition.js",[_["Core/Series/SeriesRegistry.js"],_["Series/Treemap/TreemapUtilities.js"],_["Core/Utilities.js"]],function(G,B,X){var U=G.series,$=X.addEvent,Z=X.extend,V=!1;$(U,"afterBindAxes",function(){var z,I=this,E=I.xAxis,M=I.yAxis;E&&M&&(I.is("treemap")?(z={endOnTick:!1,gridLineWidth:0,lineWidth:0,min:0,minPadding:0,max:B.AXIS_MAX,maxPadding:0,startOnTick:!1,title:void 0,tickPositions:[]},Z(M.options,z),Z(E.options,z),V=!0):V&&(M.setOptions(M.userOptions),E.setOptions(E.userOptions),V=!1))})}),et(_,"Series/Treemap/TreemapNode.js",[],function(){return function(){function G(){this.childrenTotal=0,this.visible=!1}return G.prototype.init=function(B,X,U,$,Z,V,z){return this.id=B,this.i=X,this.children=U,this.height=$,this.level=Z,this.series=V,this.parent=z,this},G}()}),et(_,"Series/Treemap/TreemapSeries.js",[_["Core/Color/Color.js"],_["Series/ColorMapComposition.js"],_["Core/Globals.js"],_["Core/Legend/LegendSymbol.js"],_["Core/Series/SeriesRegistry.js"],_["Series/Treemap/TreemapAlgorithmGroup.js"],_["Series/Treemap/TreemapPoint.js"],_["Series/Treemap/TreemapUtilities.js"],_["Series/TreeUtilities.js"],_["Extensions/Breadcrumbs.js"],_["Core/Utilities.js"],_["Series/Treemap/TreemapNode.js"]],function(G,B,X,U,$,Z,V,z,I,E,M,P){var y,h=this&&this.__extends||(y=function(A,N){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,L){R.__proto__=L}||function(R,L){for(var O in L)L.hasOwnProperty(O)&&(R[O]=L[O])},y(A,N)},function(A,N){function R(){this.constructor=A}y(A,N),A.prototype=N===null?Object.create(N):(R.prototype=N.prototype,new R)}),f=G.parse,m=X.noop,u=$.series,v=$.seriesTypes,S=v.column,w=v.heatmap,x=v.scatter,c=I.getColor,g=I.getLevelOptions,r=I.updateRootId,a=M.addEvent,t=M.correctFloat,i=M.defined,o=M.error,e=M.extend,s=M.fireEvent,n=M.isArray,l=M.isObject,b=M.isString,k=M.merge,D=M.pick,d=M.stableSort,C=function(A){function N(){var R=A!==null&&A.apply(this,arguments)||this;return R.axisRatio=void 0,R.data=void 0,R.mapOptionsToLevel=void 0,R.nodeMap=void 0,R.nodeList=void 0,R.options=void 0,R.points=void 0,R.rootNode=void 0,R.tree=void 0,R.level=void 0,R}return h(N,A),N.prototype.algorithmCalcPoints=function(R,L,O,j){var Y,H,W,q,Q,J=O.lW,nt=O.lH,lt=O.plot,gt=0,mt=O.elArr.length-1;L?(J=O.nW,nt=O.nH):Q=O.elArr[O.elArr.length-1],O.elArr.forEach(function(bt){(L||gt<mt)&&(O.direction===0?(Y=lt.x,H=lt.y,q=bt/(W=J)):(Y=lt.x,H=lt.y,W=bt/(q=nt)),j.push({x:Y,y:H,width:W,height:t(q)}),O.direction===0?lt.y=lt.y+q:lt.x=lt.x+W),gt+=1}),O.reset(),O.direction===0?O.width=O.width-J:O.height=O.height-nt,lt.y=lt.parent.y+(lt.parent.height-O.height),lt.x=lt.parent.x+(lt.parent.width-O.width),R&&(O.direction=1-O.direction),L||O.addElement(Q)},N.prototype.algorithmFill=function(R,L,O){var j,Y,H,W,q,Q=[],J=L.direction,nt=L.x,lt=L.y,gt=L.width,mt=L.height;return O.forEach(function(bt){j=L.width*L.height*(bt.val/L.val),Y=nt,H=lt,J===0?(gt-=W=j/(q=mt),nt+=W):(mt-=q=j/(W=gt),lt+=q),Q.push({x:Y,y:H,width:W,height:q}),R&&(J=1-J)}),Q},N.prototype.algorithmLowAspectRatio=function(R,L,O){var j,Y=[],H=this,W={x:L.x,y:L.y,parent:L},q=L.direction,Q=0,J=O.length-1,nt=new Z(L.height,L.width,q,W);return O.forEach(function(lt){j=L.width*L.height*(lt.val/L.val),nt.addElement(j),nt.lP.nR>nt.lP.lR&&H.algorithmCalcPoints(R,!1,nt,Y,W),Q===J&&H.algorithmCalcPoints(R,!0,nt,Y,W),Q+=1}),Y},N.prototype.alignDataLabel=function(R,L,O){var j=O.style;j&&!i(j.textOverflow)&&L.text&&L.getBBox().width>L.text.textWidth&&L.css({textOverflow:"ellipsis",width:j.width+="px"}),S.prototype.alignDataLabel.apply(this,arguments),R.dataLabel&&R.dataLabel.attr({zIndex:(R.node.zIndex||0)+1})},N.prototype.calculateChildrenAreas=function(R,L){var O,j,Y=this,H=Y.options,W=Y.mapOptionsToLevel[R.level+1],q=D(Y[W&&W.layoutAlgorithm]&&W.layoutAlgorithm,H.layoutAlgorithm),Q=H.alternateStartingDirection;j=R.children.filter(function(J){return!J.ignore}),W&&W.layoutStartingDirection&&(L.direction=W.layoutStartingDirection==="vertical"?0:1),O=Y[q](L,j),j.forEach(function(J,nt){var lt=O[nt];J.values=k(lt,{val:J.childrenTotal,direction:Q?1-L.direction:L.direction}),J.pointValues=k(lt,{x:lt.x/Y.axisRatio,y:z.AXIS_MAX-lt.y-lt.height,width:lt.width/Y.axisRatio}),J.children.length&&Y.calculateChildrenAreas(J,J.values)})},N.prototype.createList=function(R){var L=this.chart,O=L.breadcrumbs,j=[];if(O){var Y=0;j.push({level:Y,levelOptions:L.series[0]});for(var H=R.target.nodeMap[R.newRootId],W=[];H.parent||H.parent==="";)W.push(H),H=R.target.nodeMap[H.parent];W.reverse().forEach(function(q){j.push({level:++Y,levelOptions:q})}),j.length<=1&&(j.length=0)}return j},N.prototype.drawDataLabels=function(){var R,L,O=this,j=O.mapOptionsToLevel;O.points.filter(function(Y){return Y.node.visible}).forEach(function(Y){L=j[Y.node.level],R={style:{}},Y.node.isLeaf||(R.enabled=!1),L&&L.dataLabels&&(R=k(R,L.dataLabels),O._hasPointLabels=!0),Y.shapeArgs&&(R.style.width=Y.shapeArgs.width,Y.dataLabel&&Y.dataLabel.css({width:Y.shapeArgs.width+"px"})),Y.dlOptions=k(R,Y.options.dataLabels)}),u.prototype.drawDataLabels.call(this)},N.prototype.drawPoints=function(R){R===void 0&&(R=this.points);var L=this,O=L.chart,j=O.renderer,Y=O.styledMode,H=L.options,W=Y?{}:H.shadow,q=H.borderRadius,Q=O.pointCount<H.animationLimit,J=H.allowTraversingTree;R.forEach(function(nt){var lt=nt.node.levelDynamic,gt={},mt={},bt={},yt="level-group-"+nt.node.level,dt=!!nt.graphic,ot=Q&&dt,at=nt.shapeArgs;nt.shouldDraw()&&(nt.isInside=!0,q&&(mt.r=q),k(!0,ot?gt:mt,dt?at:{},Y?{}:L.pointAttribs(nt,nt.selected?"select":void 0)),L.colorAttribs&&Y&&e(bt,L.colorAttribs(nt)),L[yt]||(L[yt]=j.g(yt).attr({zIndex:1e3-(lt||0)}).add(L.group),L[yt].survive=!0)),nt.draw({animatableAttribs:gt,attribs:mt,css:bt,group:L[yt],renderer:j,shadow:W,shapeArgs:at,shapeType:nt.shapeType}),J&&nt.graphic&&(nt.drillId=H.interactByLeaf?L.drillToByLeaf(nt):L.drillToByGroup(nt))})},N.prototype.drillToByGroup=function(R){var L=!1;return R.node.level-this.nodeMap[this.rootNode].level!==1||R.node.isLeaf||(L=R.id),L},N.prototype.drillToByLeaf=function(R){var L,O=this,j=!1;if(R.node.parent!==O.rootNode&&R.node.isLeaf)for(L=R.node;!j;)(L=O.nodeMap[L.parent]).parent===O.rootNode&&(j=L.id);return j},N.prototype.drillToNode=function(R,L){o(32,!1,void 0,{"treemap.drillToNode":"use treemap.setRootNode"}),this.setRootNode(R,L)},N.prototype.drillUp=function(){var R=this,L=R.nodeMap[R.rootNode];L&&b(L.parent)&&R.setRootNode(L.parent,!0,{trigger:"traverseUpButton"})},N.prototype.getExtremes=function(){var R=u.prototype.getExtremes.call(this,this.colorValueData),L=R.dataMin,O=R.dataMax;return this.valueMin=L,this.valueMax=O,u.prototype.getExtremes.call(this)},N.prototype.getListOfParents=function(R,L){var O=n(R)?R:[],j=n(L)?L:[],Y=O.reduce(function(H,W,q){var Q=D(W.parent,"");return H[Q]===void 0&&(H[Q]=[]),H[Q].push(q),H},{"":[]});return z.eachObject(Y,function(H,W,q){W!==""&&j.indexOf(W)===-1&&(H.forEach(function(Q){q[""].push(Q)}),delete q[W])}),Y},N.prototype.getTree=function(){var R=this,L=this.data.map(function(j){return j.id}),O=R.getListOfParents(this.data,L);return R.nodeMap={},R.nodeList=[],R.buildTree("",-1,0,O)},N.prototype.buildTree=function(R,L,O,j,Y){var H,W,q=this,Q=[],J=q.points[L],nt=0;return(j[R]||[]).forEach(function(lt){W=q.buildTree(q.points[lt].id,lt,O+1,j,R),nt=Math.max(W.height+1,nt),Q.push(W)}),H=new q.NodeClass().init(R,L,Q,nt,O,q,Y),Q.forEach(function(lt){lt.parentNode=H}),q.nodeMap[H.id]=H,q.nodeList.push(H),J&&(J.node=H,H.point=J),H},N.prototype.hasData=function(){return!!this.processedXData.length},N.prototype.init=function(R,L){var O,j=this,Y=k(L.drillUpButton,L.breadcrumbs);O=a(j,"setOptions",function(H){var W=H.userOptions;i(W.allowDrillToNode)&&!i(W.allowTraversingTree)&&(W.allowTraversingTree=W.allowDrillToNode,delete W.allowDrillToNode),i(W.drillUpButton)&&!i(W.traverseUpButton)&&(W.traverseUpButton=W.drillUpButton,delete W.drillUpButton)}),u.prototype.init.call(j,R,L),delete j.opacity,j.eventsToUnbind.push(O),j.options.allowTraversingTree&&(j.eventsToUnbind.push(a(j,"click",j.onClickDrillToNode)),j.eventsToUnbind.push(a(j,"setRootNode",function(H){var W=j.chart;W.breadcrumbs&&W.breadcrumbs.updateProperties(j.createList(H))})),j.eventsToUnbind.push(a(j,"update",function(H,W){var q=this.chart.breadcrumbs;q&&H.options.breadcrumbs&&q.update(H.options.breadcrumbs)})),j.eventsToUnbind.push(a(j,"destroy",function(H){var W=this.chart;W.breadcrumbs&&(W.breadcrumbs.destroy(),H.keepEventsForUpdate||(W.breadcrumbs=void 0))}))),R.breadcrumbs||(R.breadcrumbs=new E(R,Y)),j.eventsToUnbind.push(a(R.breadcrumbs,"up",function(H){for(var W=this.level-H.newLevel,q=0;q<W;q++)j.drillUp()}))},N.prototype.onClickDrillToNode=function(R){var L=R.point,O=L&&L.drillId;b(O)&&(L.setState(""),this.setRootNode(O,!0,{trigger:"click"}))},N.prototype.pointAttribs=function(R,L){var O,j,Y=l(this.mapOptionsToLevel)?this.mapOptionsToLevel:{},H=R&&Y[R.node.level]||{},W=this.options,q=L&&W.states&&W.states[L]||{},Q=R&&R.getClassName()||"";return O={stroke:R&&R.borderColor||H.borderColor||q.borderColor||W.borderColor,"stroke-width":D(R&&R.borderWidth,H.borderWidth,q.borderWidth,W.borderWidth),dashstyle:R&&R.borderDashStyle||H.borderDashStyle||q.borderDashStyle||W.borderDashStyle,fill:R&&R.color||this.color},Q.indexOf("highcharts-above-level")!==-1?(O.fill="none",O["stroke-width"]=0):Q.indexOf("highcharts-internal-node-interactive")!==-1?(j=D(q.opacity,W.opacity),O.fill=f(O.fill).setOpacity(j).get(),O.cursor="pointer"):Q.indexOf("highcharts-internal-node")!==-1?O.fill="none":L&&(O.fill=f(O.fill).brighten(q.brightness).get()),O},N.prototype.setColorRecursive=function(R,L,O,j,Y){var H,W,q=this,Q=q&&q.chart,J=Q&&Q.options&&Q.options.colors;R&&(H=c(R,{colors:J,index:j,mapOptionsToLevel:q.mapOptionsToLevel,parentColor:L,parentColorIndex:O,series:q,siblings:Y}),(W=q.points[R.i])&&(W.color=H.color,W.colorIndex=H.colorIndex),(R.children||[]).forEach(function(nt,lt){q.setColorRecursive(nt,H.color,H.colorIndex,lt,R.children.length)}))},N.prototype.setPointValues=function(){var R=this,L=R.points,O=R.xAxis,j=R.yAxis,Y=R.chart.styledMode;L.forEach(function(H){var W=H.node,q=W.pointValues,Q=W.visible;if(q&&Q){var J=q.height,nt=q.width,lt=q.x,gt=q.y,mt=function(ut){return Y?0:(R.pointAttribs(ut)["stroke-width"]||0)%2/2}(H),bt=Math.round(O.toPixels(lt,!0))-mt,yt=Math.round(O.toPixels(lt+nt,!0))-mt,dt=Math.round(j.toPixels(gt,!0))-mt,ot=Math.round(j.toPixels(gt+J,!0))-mt,at={x:Math.min(bt,yt),y:Math.min(dt,ot),width:Math.abs(yt-bt),height:Math.abs(ot-dt)};H.plotX=at.x+at.width/2,H.plotY=at.y+at.height/2,H.shapeArgs=at}else delete H.plotX,delete H.plotY})},N.prototype.setRootNode=function(R,L,O){var j=this,Y=e({newRootId:R,previousRootId:j.rootNode,redraw:D(L,!0),series:j},O);s(j,"setRootNode",Y,function(H){var W=H.series;W.idPreviousRoot=H.previousRootId,W.rootNode=H.newRootId,W.isDirty=!0,H.redraw&&W.chart.redraw()})},N.prototype.setState=function(R){this.options.inactiveOtherPoints=!0,u.prototype.setState.call(this,R,!1),this.options.inactiveOtherPoints=!1},N.prototype.setTreeValues=function(R){var L,O=this,j=O.options,Y=O.rootNode,H=O.nodeMap[Y],W=!z.isBoolean(j.levelIsConstant)||j.levelIsConstant,q=0,Q=[],J=O.points[R.i];return R.children.forEach(function(nt){nt=O.setTreeValues(nt),Q.push(nt),nt.ignore||(q+=nt.val)}),d(Q,function(nt,lt){return(nt.sortIndex||0)-(lt.sortIndex||0)}),L=D(J&&J.options.value,q),J&&(J.value=L),e(R,{children:Q,childrenTotal:q,ignore:!(D(J&&J.visible,!0)&&L>0),isLeaf:R.visible&&!q,levelDynamic:R.level-(W?0:H.level),name:D(J&&J.name,""),sortIndex:D(J&&J.sortIndex,-L),val:L}),R},N.prototype.sliceAndDice=function(R,L){return this.algorithmFill(!0,R,L)},N.prototype.squarified=function(R,L){return this.algorithmLowAspectRatio(!0,R,L)},N.prototype.strip=function(R,L){return this.algorithmLowAspectRatio(!1,R,L)},N.prototype.stripes=function(R,L){return this.algorithmFill(!1,R,L)},N.prototype.translate=function(){var R,L,O,j,Y,H=this,W=H.options,q=r(H);u.prototype.translate.call(H),j=H.tree=H.getTree(),R=H.nodeMap[q],q===""||R&&R.children.length||(H.setRootNode("",!1),q=H.rootNode,R=H.nodeMap[q]),H.mapOptionsToLevel=g({from:R.level+1,levels:W.levels,to:j.height,defaults:{levelIsConstant:H.options.levelIsConstant,colorByPoint:W.colorByPoint}}),z.recursive(H.nodeMap[H.rootNode],function(Q){var J=!1,nt=Q.parent;return Q.visible=!0,(nt||nt==="")&&(J=H.nodeMap[nt]),J}),z.recursive(H.nodeMap[H.rootNode].children,function(Q){var J=!1;return Q.forEach(function(nt){nt.visible=!0,nt.children.length&&(J=(J||[]).concat(nt.children))}),J}),H.setTreeValues(j),H.axisRatio=H.xAxis.len/H.yAxis.len,H.nodeMap[""].pointValues=L={x:0,y:0,width:z.AXIS_MAX,height:z.AXIS_MAX},H.nodeMap[""].values=O=k(L,{width:L.width*H.axisRatio,direction:W.layoutStartingDirection==="vertical"?0:1,val:j.val}),H.calculateChildrenAreas(j,O),H.colorAxis||W.colorByPoint||H.setColorRecursive(H.tree),W.allowTraversingTree&&(Y=R.pointValues,H.xAxis.setExtremes(Y.x,Y.x+Y.width,!1),H.yAxis.setExtremes(Y.y,Y.y+Y.height,!1),H.xAxis.setScale(),H.yAxis.setScale()),H.setPointValues()},N.defaultOptions=k(x.defaultOptions,{allowTraversingTree:!1,animationLimit:250,borderRadius:0,showInLegend:!1,marker:void 0,colorByPoint:!1,dataLabels:{defer:!1,enabled:!0,formatter:function(){var R=this&&this.point?this.point:{};return b(R.name)?R.name:""},inside:!0,verticalAlign:"middle"},tooltip:{headerFormat:"",pointFormat:"<b>{point.name}</b>: {point.value}<br/>"},ignoreHiddenPoint:!0,layoutAlgorithm:"sliceAndDice",layoutStartingDirection:"vertical",alternateStartingDirection:!1,levelIsConstant:!0,traverseUpButton:{position:{align:"right",x:-10,y:10}},borderColor:"#e6e6e6",borderWidth:1,colorKey:"colorValue",opacity:.15,states:{hover:{borderColor:"#999999",brightness:w?0:.1,halo:!1,opacity:.75,shadow:!1}}}),N}(x);return e(C.prototype,{buildKDTree:m,colorAttribs:B.seriesMembers.colorAttribs,colorKey:"colorValue",directTouch:!0,drawLegendSymbol:U.drawRectangle,getExtremesFromAll:!0,getSymbol:m,optionalAxis:"colorAxis",parallelArrays:["x","y","value","colorValue"],pointArrayMap:["value"],pointClass:V,NodeClass:P,trackerGroups:["group","dataLabelsGroup"],utils:{recursive:z.recursive}}),B.compose(C),$.registerSeriesType("treemap",C),C}),et(_,"Series/Sunburst/SunburstPoint.js",[_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B){var X,U=this&&this.__extends||(X=function(E,M){return X=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(P,y){P.__proto__=y}||function(P,y){for(var h in y)y.hasOwnProperty(h)&&(P[h]=y[h])},X(E,M)},function(E,M){function P(){this.constructor=E}X(E,M),E.prototype=M===null?Object.create(M):(P.prototype=M.prototype,new P)}),$=G.series.prototype.pointClass,Z=G.seriesTypes.treemap.prototype.pointClass,V=B.correctFloat,z=B.extend,I=function(E){function M(){var P=E!==null&&E.apply(this,arguments)||this;return P.node=void 0,P.options=void 0,P.series=void 0,P.shapeExisting=void 0,P.shapeType=void 0,P}return U(M,E),M.prototype.getDataLabelPath=function(P){var y,h=this.series.chart.renderer,f=this.shapeExisting,m=f.start,u=f.end,v=m+(u-m)/2,S=v<0&&v>-Math.PI||v>Math.PI,w=f.r+(P.options.distance||0);return m===-Math.PI/2&&V(u)===V(1.5*Math.PI)&&(m=-Math.PI+Math.PI/360,u=-Math.PI/360,S=!0),u-m>Math.PI&&(S=!1,y=!0),this.dataLabelPath&&(this.dataLabelPath=this.dataLabelPath.destroy()),this.dataLabelPath=h.arc({open:!0,longArc:y?1:0}).attr({start:S?m:u,end:S?u:m,clockwise:+S,x:f.x,y:f.y,r:(w+f.innerR)/2}).add(h.defs),this.dataLabelPath},M.prototype.isValid=function(){return!0},M}(Z);return z(I.prototype,{getClassName:$.prototype.getClassName,haloPath:$.prototype.haloPath,setState:$.prototype.setState}),I}),et(_,"Series/Sunburst/SunburstUtilities.js",[_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B){var X,U=G.seriesTypes.treemap,$=B.isNumber,Z=B.isObject,V=B.merge;return function(z){function I(E,M){var P,y=[];if($(E)&&$(M)&&E<=M)for(P=E;P<=M;P++)y.push(P);return y}z.recursive=U.prototype.utils.recursive,z.calculateLevelSizes=function(E,M){var P,y,h,f,m,u,v,S=Z(M)?M:{},w=0;return Z(E)&&(P=V({},E),u=$(S.from)?S.from:0,v=$(S.to)?S.to:0,h=I(u,v),f=Object.keys(P).filter(function(x){return h.indexOf(+x)===-1}),y=m=$(S.diffRadius)?S.diffRadius:0,h.forEach(function(x){var c=P[x],g=c.levelSize.unit,r=c.levelSize.value;g==="weight"?w+=r:g==="percentage"?(c.levelSize={unit:"pixels",value:r/100*y},m-=c.levelSize.value):g==="pixels"&&(m-=r)}),h.forEach(function(x){var c,g=P[x];g.levelSize.unit==="weight"&&(c=g.levelSize.value,P[x].levelSize={unit:"pixels",value:c/w*m})}),f.forEach(function(x){P[x].levelSize={value:0,unit:"pixels"}})),P},z.getLevelFromAndTo=function(E){var M=E.level;return{from:M>0?M:1,to:M+E.height}},z.range=I}(X||(X={})),X}),et(_,"Series/Sunburst/SunburstNode.js",[_["Series/Treemap/TreemapNode.js"]],function(G){var B,X=this&&this.__extends||(B=function($,Z){return B=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(V,z){V.__proto__=z}||function(V,z){for(var I in z)z.hasOwnProperty(I)&&(V[I]=z[I])},B($,Z)},function($,Z){function V(){this.constructor=$}B($,Z),$.prototype=Z===null?Object.create(Z):(V.prototype=Z.prototype,new V)}),U=function($){function Z(){return $!==null&&$.apply(this,arguments)||this}return X(Z,$),Z}(G);return U}),et(_,"Series/Sunburst/SunburstSeries.js",[_["Series/CenteredUtilities.js"],_["Core/Globals.js"],_["Core/Series/SeriesRegistry.js"],_["Series/Sunburst/SunburstPoint.js"],_["Series/Sunburst/SunburstUtilities.js"],_["Series/TreeUtilities.js"],_["Core/Utilities.js"],_["Series/Sunburst/SunburstNode.js"]],function(G,B,X,U,$,Z,V,z){var I,E=this&&this.__extends||(I=function(D,d){return I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,A){C.__proto__=A}||function(C,A){for(var N in A)A.hasOwnProperty(N)&&(C[N]=A[N])},I(D,d)},function(D,d){function C(){this.constructor=D}I(D,d),D.prototype=d===null?Object.create(d):(C.prototype=d.prototype,new C)}),M=G.getCenter,P=G.getStartAndEndRadians,y=B.noop,h=X.series,f=X.seriesTypes,m=f.column,u=f.treemap,v=Z.getColor,S=Z.getLevelOptions,w=Z.setTreeValues,x=Z.updateRootId,c=V.defined,g=V.error,r=V.extend,a=V.isNumber,t=V.isObject,i=V.isString,o=V.merge,e=V.splat,s=180/Math.PI,n=function(D,d,C,A){return{x:D+Math.cos(C)*A,y:d+Math.sin(C)*A}};function l(D,d,C){var A;return D.node.isLeaf||(A=d===D.id?C[d].parent:D.id),A}function b(D,d){var C=d.mapIdToNode,A=D.parent,N=A?C[A]:void 0,R=d.series,L=R.chart,O=R.points[D.i],j=R.options.colors||L&&L.options.colors,Y=v(D,{colors:j,colorIndex:R.colorIndex,index:d.index,mapOptionsToLevel:d.mapOptionsToLevel,parentColor:N&&N.color,parentColorIndex:N&&N.colorIndex,series:d.series,siblings:d.siblings});return D.color=Y.color,D.colorIndex=Y.colorIndex,O&&(O.color=D.color,O.colorIndex=D.colorIndex,D.sliced=D.id!==d.idRoot&&O.sliced),D}var k=function(D){function d(){var C=D!==null&&D.apply(this,arguments)||this;return C.center=void 0,C.data=void 0,C.mapOptionsToLevel=void 0,C.nodeMap=void 0,C.options=void 0,C.points=void 0,C.shapeRoot=void 0,C.startAndEndRadians=void 0,C.tree=void 0,C}return E(d,D),d.prototype.alignDataLabel=function(C,A,N){if(!N.textPath||!N.textPath.enabled)return D.prototype.alignDataLabel.apply(this,arguments)},d.prototype.animate=function(C){var A,N=this.chart,R=[N.plotWidth/2,N.plotHeight/2],L=N.plotLeft,O=N.plotTop,j=this.group;C?(A={translateX:R[0]+L,translateY:R[1]+O,scaleX:.001,scaleY:.001,rotation:10,opacity:.01},j.attr(A)):(A={translateX:L,translateY:O,scaleX:1,scaleY:1,rotation:0,opacity:1},j.animate(A,this.options.animation))},d.prototype.drawPoints=function(){var C,A=this,N=A.mapOptionsToLevel,R=A.shapeRoot,L=A.group,O=A.hasRendered,j=A.rootNode,Y=A.idPreviousRoot,H=A.nodeMap,W=H[Y],q=W&&W.shapeArgs,Q=A.points,J=A.startAndEndRadians,nt=A.chart,lt=nt&&nt.options&&nt.options.chart||{},gt=typeof lt.animation!="boolean"||lt.animation,mt=A.center,bt={x:mt[0],y:mt[1]},yt=mt[3]/2,dt=A.chart.renderer,ot=!1,at=!1,ut=!!(gt&&O&&j!==Y&&A.dataLabelsGroup);ut&&(A.dataLabelsGroup.attr({opacity:0}),C=function(){var vt=A;ot=!0,vt.dataLabelsGroup&&vt.dataLabelsGroup.animate({opacity:1,visibility:"inherit"})}),Q.forEach(function(vt){var Ct,xt,St=vt.node,Mt=N[St.level],wt=vt.shapeExisting||{},Tt=St.shapeArgs||{},Lt=!(!St.visible||!St.shapeArgs);Ct=O&>?function(Pt,Dt){var jt=Dt.point,Ot=Dt.radians,It=Dt.innerR,Nt=Dt.idRoot,Zt=Dt.idPreviousRoot,zt=Dt.shapeExisting,Xt=Dt.shapeRoot,Kt=Dt.shapePreviousRoot,me=Dt.visible,Ut={},te={end:Pt.end,start:Pt.start,innerR:Pt.innerR,r:Pt.r,x:Pt.x,y:Pt.y};return me?!jt.graphic&&Kt&&((Ut=Nt===jt.id?{start:Ot.start,end:Ot.end}:Kt.end<=Pt.start?{start:Ot.end,end:Ot.end}:{start:Ot.start,end:Ot.start}).innerR=Ut.r=It):jt.graphic&&(Zt===jt.id?te={innerR:It,r:It}:Xt&&(te=Xt.end<=zt.start?{innerR:It,r:It,start:Ot.end,end:Ot.end}:{innerR:It,r:It,start:Ot.start,end:Ot.start})),{from:Ut,to:te}}(Tt,{center:bt,point:vt,radians:J,innerR:yt,idRoot:j,idPreviousRoot:Y,shapeExisting:wt,shapeRoot:R,shapePreviousRoot:q,visible:Lt}):{to:Tt,from:{}},r(vt,{shapeExisting:Tt,tooltipPos:[Tt.plotX,Tt.plotY],drillId:l(vt,j,H),name:""+(vt.name||vt.id||vt.index),plotX:Tt.plotX,plotY:Tt.plotY,value:St.val,isInside:Lt,isNull:!Lt}),vt.dlOptions=function(Pt){var Dt,jt,Ot=Pt.point,It=t(Pt.shapeArgs)?Pt.shapeArgs:{},Nt=t(Pt.optionsPoint)?Pt.optionsPoint.dataLabels:{},Zt=e(t(Pt.level)?Pt.level.dataLabels:{})[0],zt=o({style:{}},Zt,Nt),Xt=zt.rotationMode;return a(zt.rotation)||(Xt!=="auto"&&Xt!=="circular"||(Ot.innerArcLength<1&&Ot.outerArcLength>It.radius?(Dt=0,Ot.dataLabelPath&&Xt==="circular"&&(zt.textPath={enabled:!0})):Ot.innerArcLength>1&&Ot.outerArcLength>1.5*It.radius?Xt==="circular"?zt.textPath={enabled:!0,attributes:{dy:5}}:Xt="parallel":(Ot.dataLabel&&Ot.dataLabel.textPath&&Xt==="circular"&&(zt.textPath={enabled:!1}),Xt="perpendicular")),Xt!=="auto"&&Xt!=="circular"&&(Dt=It.end-(It.end-It.start)/2),Xt==="parallel"?zt.style.width=Math.min(2.5*It.radius,(Ot.outerArcLength+Ot.innerArcLength)/2):!c(zt.style.width)&&It.radius&&(zt.style.width=Ot.node.level===1?2*It.radius:It.radius),Xt==="perpendicular"&&Ot.series.chart.renderer.fontMetrics(zt.style.fontSize).h>Ot.outerArcLength&&(zt.style.width=1),zt.style.width=Math.max(zt.style.width-2*(zt.padding||0),1),jt=Dt*s%180,Xt==="parallel"&&(jt-=90),jt>90?jt-=180:jt<-90&&(jt+=180),zt.rotation=jt),zt.textPath&&(Ot.shapeExisting.innerR===0&&zt.textPath.enabled?(zt.rotation=0,zt.textPath.enabled=!1,zt.style.width=Math.max(2*Ot.shapeExisting.r-2*(zt.padding||0),1)):Ot.dlOptions&&Ot.dlOptions.textPath&&!Ot.dlOptions.textPath.enabled&&Xt==="circular"&&(zt.textPath.enabled=!0),zt.textPath.enabled&&(zt.rotation=0,zt.style.width=Math.max((Ot.outerArcLength+Ot.innerArcLength)/2-2*(zt.padding||0),1))),zt.rotation===0&&(zt.rotation=.001),zt}({point:vt,level:Mt,optionsPoint:vt.options,shapeArgs:Tt}),!at&&Lt&&(at=!0,xt=C),vt.draw({animatableAttribs:Ct.to,attribs:r(Ct.from,!nt.styledMode&&A.pointAttribs(vt,vt.selected&&"select")),onComplete:xt,group:L,renderer:dt,shapeType:"arc",shapeArgs:Tt})}),ut&&at?(A.hasRendered=!1,A.options.dataLabels.defer=!0,h.prototype.drawDataLabels.call(A),A.hasRendered=!0,ot&&C()):h.prototype.drawDataLabels.call(A)},d.prototype.layoutAlgorithm=function(C,A,N){var R=C.start,L=C.end-R,O=C.val,j=C.x,Y=C.y,H=N&&t(N.levelSize)&&a(N.levelSize.value)?N.levelSize.value:0,W=C.r,q=W+H,Q=N&&a(N.slicedOffset)?N.slicedOffset:0;return(A||[]).reduce(function(J,nt){var lt=1/O*nt.val*L,gt=n(j,Y,R+lt/2,Q),mt={x:nt.sliced?gt.x:j,y:nt.sliced?gt.y:Y,innerR:W,r:q,radius:H,start:R,end:R+lt};return J.push(mt),R=mt.end,J},[])},d.prototype.setShapeArgs=function(C,A,N){var R,L=C.level+1,O=N[L],j=C.children.filter(function(Y){return Y.visible});R=this.layoutAlgorithm(A,j,O),j.forEach(function(Y,H){var W=R[H],q=W.start+(W.end-W.start)/2,Q=W.innerR+(W.r-W.innerR)/2,J=W.end-W.start,nt=W.innerR===0&&J>6.28?{x:W.x,y:W.y}:n(W.x,W.y,q,Q),lt=Y.val?Y.childrenTotal>Y.val?Y.childrenTotal:Y.val:Y.childrenTotal;this.points[Y.i]&&(this.points[Y.i].innerArcLength=J*W.innerR,this.points[Y.i].outerArcLength=J*W.r),Y.shapeArgs=o(W,{plotX:nt.x,plotY:nt.y+4*Math.abs(Math.cos(q))}),Y.values=o(W,{val:lt}),Y.children.length&&this.setShapeArgs(Y,Y.values,N)},this)},d.prototype.translate=function(){var C,A,N,R,L=this,O=L.options,j=L.center=L.getCenter(),Y=L.startAndEndRadians=P(O.startAngle,O.endAngle),H=j[3]/2,W=j[2]/2-H,q=x(L),Q=L.nodeMap,J=Q&&Q[q],nt={};L.shapeRoot=J&&J.shapeArgs,h.prototype.translate.call(L),N=L.tree=L.getTree(),J=(Q=L.nodeMap)[q],A=Q[i(J.parent)?J.parent:""];var lt=$.getLevelFromAndTo(J),gt=lt.from,mt=lt.to;C=S({from:gt,levels:L.options.levels,to:mt,defaults:{colorByPoint:O.colorByPoint,dataLabels:O.dataLabels,levelIsConstant:O.levelIsConstant,levelSize:O.levelSize,slicedOffset:O.slicedOffset}}),C=$.calculateLevelSizes(C,{diffRadius:W,from:gt,to:mt}),w(N,{before:b,idRoot:q,levelIsConstant:O.levelIsConstant,mapOptionsToLevel:C,mapIdToNode:Q,points:L.points,series:L}),R=Q[""].shapeArgs={end:Y.end,r:H,start:Y.start,val:J.val,x:j[0],y:j[1]},this.setShapeArgs(A,R,C),L.mapOptionsToLevel=C,L.data.forEach(function(bt){nt[bt.id]&&g(31,!1,L.chart),nt[bt.id]=!0}),nt={}},d.defaultOptions=o(u.defaultOptions,{center:["50%","50%"],colorByPoint:!1,opacity:1,dataLabels:{allowOverlap:!0,defer:!0,rotationMode:"auto",style:{textOverflow:"ellipsis"}},rootId:void 0,levelIsConstant:!0,levelSize:{value:1,unit:"weight"},slicedOffset:10}),d}(u);return r(k.prototype,{drawDataLabels:y,getCenter:M,onPointSupported:!0,pointAttribs:m.prototype.pointAttribs,pointClass:U,NodeClass:z,utils:$}),X.registerSeriesType("sunburst",k),k}),et(_,"masters/modules/sunburst.src.js",[],function(){})},it.exports?(pt.default=pt,it.exports=pt):(ht=[st(4783)],(ct=function(ft){return pt(ft),pt.Highcharts=ft,pt}.apply(rt,ht))===void 0||(it.exports=ct))},6545:function(it,rt,st){var ht=this&&this.__importDefault||function(ft){return ft&&ft.__esModule?ft:{default:ft}};Object.defineProperty(rt,"__esModule",{value:!0});var ct=ht(st(605)),pt={xAxis:{labels:{style:{color:ct.default.labelColor,fontFamily:ct.default.fontFamily}},title:{style:{color:ct.default.textColor,fontFamily:ct.default.fontFamily}},crosshair:!1},yAxis:{labels:{style:{color:ct.default.labelColor,fontFamily:ct.default.fontFamily}},title:{style:{color:ct.default.textColor,fontFamily:ct.default.fontFamily}},crosshair:!1},zAxis:{labels:{style:{color:ct.default.labelColor,fontFamily:ct.default.fontFamily}},title:{style:{color:ct.default.textColor,fontFamily:ct.default.fontFamily}}}};rt.default=pt},6660:(it,rt,st)=>{var ht,ct,pt;pt=function(ft){var _=ft?ft._modules:{};function et(G,B,X,U){G.hasOwnProperty(B)||(G[B]=U.apply(null,X),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:B,module:G[B]}})))}et(_,"Core/HttpUtilities.js",[_["Core/Globals.js"],_["Core/Utilities.js"]],function(G,B){var X=G.doc,U=B.createElement,$=B.discardElement,Z=B.merge,V=B.objectEach,z={ajax:function(I){var E={json:"application/json",xml:"application/xml",text:"text/plain",octet:"application/octet-stream"},M=new XMLHttpRequest;function P(y,h){I.error&&I.error(y,h)}if(!I.url)return!1;M.open((I.type||"get").toUpperCase(),I.url,!0),I.headers&&I.headers["Content-Type"]||M.setRequestHeader("Content-Type",E[I.dataType||"json"]||E.text),V(I.headers,function(y,h){M.setRequestHeader(h,y)}),I.responseType&&(M.responseType=I.responseType),M.onreadystatechange=function(){var y;if(M.readyState===4){if(M.status===200){if(I.responseType!=="blob"&&(y=M.responseText,I.dataType==="json"))try{y=JSON.parse(y)}catch(h){if(h instanceof Error)return P(M,h)}return I.success&&I.success(y,M)}P(M,M.responseText)}},I.data&&typeof I.data!="string"&&(I.data=JSON.stringify(I.data)),M.send(I.data)},getJSON:function(I,E){z.ajax({url:I,success:E,dataType:"json",headers:{"Content-Type":"text/plain"}})},post:function(I,E,M){var P=U("form",Z({method:"post",action:I,enctype:"multipart/form-data"},M),{display:"none"},X.body);V(E,function(y,h){U("input",{type:"hidden",name:h,value:y},void 0,P)}),P.submit(),$(P)}};return z}),et(_,"Extensions/Data.js",[_["Core/Chart/Chart.js"],_["Core/Defaults.js"],_["Core/Globals.js"],_["Core/HttpUtilities.js"],_["Core/Series/Point.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,X,U,$,Z,V){var z=B.getOptions,I=X.doc,E=U.ajax,M=Z.seriesTypes,P=V.addEvent,y=V.defined,h=V.extend,f=V.fireEvent,m=V.isNumber,u=V.merge,v=V.objectEach,S=V.pick,w=V.splat;function x(r){return!!(r&&(r.rowsURL||r.csvURL||r.columnsURL))}var c=function(){function r(a,t,i){t===void 0&&(t={}),this.rowsToColumns=r.rowsToColumns,this.dateFormats={"YYYY/mm/dd":{regex:/^([0-9]{4})[\-\/\.]([0-9]{1,2})[\-\/\.]([0-9]{1,2})$/,parser:function(o){return o?Date.UTC(+o[1],o[2]-1,+o[3]):NaN}},"dd/mm/YYYY":{regex:/^([0-9]{1,2})[\-\/\.]([0-9]{1,2})[\-\/\.]([0-9]{4})$/,parser:function(o){return o?Date.UTC(+o[3],o[2]-1,+o[1]):NaN},alternative:"mm/dd/YYYY"},"mm/dd/YYYY":{regex:/^([0-9]{1,2})[\-\/\.]([0-9]{1,2})[\-\/\.]([0-9]{4})$/,parser:function(o){return o?Date.UTC(+o[3],o[1]-1,+o[2]):NaN}},"dd/mm/YY":{regex:/^([0-9]{1,2})[\-\/\.]([0-9]{1,2})[\-\/\.]([0-9]{2})$/,parser:function(o){if(!o)return NaN;var e=new Date,s=+o[3];return s>e.getFullYear()-2e3?s+=1900:s+=2e3,Date.UTC(s,o[2]-1,+o[1])},alternative:"mm/dd/YY"},"mm/dd/YY":{regex:/^([0-9]{1,2})[\-\/\.]([0-9]{1,2})[\-\/\.]([0-9]{2})$/,parser:function(o){return o?Date.UTC(+o[3]+2e3,o[1]-1,+o[2]):NaN}}},this.chart=i,this.chartOptions=t,this.options=a,this.rawColumns=[],this.init(a,t,i)}return r.data=function(a,t,i){return t===void 0&&(t={}),new r(a,t,i)},r.rowsToColumns=function(a){var t,i,o,e,s;if(a)for(s=[],i=a.length,t=0;t<i;t++)for(e=a[t].length,o=0;o<e;o++)s[o]||(s[o]=[]),s[o][t]=a[t][o];return s},r.prototype.init=function(a,t,i){var o,e=a.decimalPoint;t&&(this.chartOptions=t),i&&(this.chart=i),e!=="."&&e!==","&&(e=void 0),this.options=a,this.columns=a.columns||this.rowsToColumns(a.rows)||[],this.firstRowAsNames=S(a.firstRowAsNames,this.firstRowAsNames,!0),this.decimalRegex=e&&new RegExp("^(-?[0-9]+)"+e+"([0-9]+)$"),this.liveDataTimeout!==void 0&&clearTimeout(this.liveDataTimeout),this.rawColumns=[],this.columns.length&&(this.dataFound(),o=!x(a)),o||(o=this.fetchLiveData()),o||(o=!!this.parseCSV().length),o||(o=!!this.parseTable().length),o||(o=this.parseGoogleSpreadsheet()),!o&&a.afterComplete&&a.afterComplete()},r.prototype.getColumnDistribution=function(){var a,t=this.chartOptions,i=this.options,o=[],e=function(C){return(M[C||"line"].prototype.pointArrayMap||[0]).length},s=function(C){return M[C||"line"].prototype.pointArrayMap},n=t&&t.chart&&t.chart.type,l=[],b=[],k=i&&i.seriesMapping||t&&t.series&&t.series.map(function(){return{x:0}})||[],D=0;(t&&t.series||[]).forEach(function(C){l.push(e(C.type||n))}),k.forEach(function(C){o.push(C.x||0)}),o.length===0&&o.push(0),k.forEach(function(C){var A=new g,N=l[D]||e(n),R=(t&&t.series||[])[D]||{},L=s(R.type||n),O=L||["y"];for((y(C.x)||R.isCartesian||!L)&&A.addColumnReader(C.x,"x"),v(C,function(j,Y){Y!=="x"&&A.addColumnReader(j,Y)}),a=0;a<N;a++)A.hasReader(O[a])||A.addColumnReader(void 0,O[a]);b.push(A),D++});var d=s(n);d===void 0&&(d=["y"]),this.valueCount={global:e(n),xColumns:o,individual:l,seriesBuilders:b,globalPointArrayMap:d}},r.prototype.dataFound=function(){this.options.switchRowsAndColumns&&(this.columns=this.rowsToColumns(this.columns)),this.getColumnDistribution(),this.parseTypes(),this.parsed()!==!1&&this.complete()},r.prototype.parseCSV=function(a){var t,i,o=this,e=this.columns=[],s=a||this.options,n=s.startColumn!==void 0&&s.startColumn?s.startColumn:0,l=s.endColumn||Number.MAX_VALUE,b=[],k={",":0,";":0," ":0},D=s.csv,d=s.startRow!==void 0&&s.startRow?s.startRow:0,C=s.endRow||Number.MAX_VALUE,A=0;function N(L,O,j,Y){var H=0,W="",q="",Q="",J="",nt=0,lt=0;function gt(yt){W=L[yt],q=L[yt-1],Q=L[yt+1]}function mt(yt){b.length<lt+1&&b.push([yt]),b[lt][b[lt].length-1]!==yt&&b[lt].push(yt)}function bt(){if(n>nt||nt>l)return++nt,void(J="");!isNaN(parseFloat(J))&&isFinite(J)?(J=parseFloat(J),mt("number")):isNaN(Date.parse(J))?mt("string"):(J=J.replace(/\//g,"-"),mt("date")),e.length<lt+1&&e.push([]),e[lt][O]=J,J="",++lt,++nt}if(L.trim().length&&L.trim()[0]!=="#"){for(;H<L.length;H++)if(gt(H),W==='"')for(gt(++H);H<L.length&&(W!=='"'||q==='"'||Q==='"');)(W!=='"'||W==='"'&&q!=='"')&&(J+=W),gt(++H);else W===t?bt():J+=W;bt()}}if(D&&s.beforeParse&&(D=s.beforeParse.call(this,D)),D){i=D.replace(/\r\n/g,`
|
|
4
4
|
`).replace(/\r/g,`
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
</div>
|
|
37
37
|
${ii()}
|
|
38
38
|
<div>${p.category?pt:this.series.name}</div>
|
|
39
|
-
`)}}),Oh=(p,T,F,K,tt=!1)=>{const ht=K<(tt?200:400),pt=F*20,ft=K>pt;return!T||ht||ft?{enabled:!1}:{series:{type:p,dataGrouping:{enabled:!1}},tooltipFormatter:()=>({left:"",right:""}),enabled:!0,margin:30,height:40,xAxis:{labels:{enabled:!1}},handles:{symbols:["navigator-handle","navigator-handle"],backgroundColor:oi,borderColor:ri},maskInside:!0,maskFill:"rgba(91,99,114, 0.15)",outlineColor:oi,outlineWidth:1}};function Dh(p,T,F){p.xAxis[0].setExtremes(T,F,!1)}function Ks(p){return"polarType"in p}const ji=(p,T)=>p==="line"&&T.lineType==="smooth"?"spline":p==="area"&&T.lineType==="smooth"?"areaspline":p==="polar"?T.polarType:p==="scatter"?"bubble":p,jh=(p,T)=>{var K,tt;const F={totalLabels:{enabled:!1}};if(p!=="area"&&p!=="bar"&&p!=="column"&&p!=="polar")return F;if(p==="polar"){if(Ks(T))return{stacking:T.polarType==="column"||T.polarType==="area"?"normal":void 0,totalLabels:{enabled:!1}};throw new Rt.TranslatableError("errors.polarChartDesignOptionsExpected")}if(Ks(T))throw new Rt.TranslatableError("errors.polarChartDesignOptionsNotExpected");switch(T.stackType){case"stacked":return{stacking:"normal",totalLabels:(K=T.totalLabels)!=null?K:F.totalLabels};case"stack100":return{stacking:"percent",totalLabels:(tt=T.totalLabels)!=null?tt:F.totalLabels};default:return F}},jm=(p,T)=>p.map((F,K)=>T===K?0:-1),Im=(p,T,F,K,tt,it,rt,st)=>{const ht=_h(p,F),ft=p,{title:ct}=ft,pt=Te(ft,["title"]);return _t(kt({},pt),{name:ct!=null?ct:p.name,data:Nm(ht,T,K,tt,F,it,rt,st)})},_m=(p,T)=>{!T.minClipped&&(p!=null&&p.min)&&(p==null?void 0:p.min)>0&&(p.min=0),!T.maxClipped&&(p!=null&&p.max)&&(p==null?void 0:p.max)<0&&(p.max=0)},Nm=(p,T,F,K,tt,it,rt,st)=>{const ht=T.map((et,G)=>{if(et<0)return{y:null};const{value:B,blur:X,color:U,rawValue:$,xValue:Z,xDisplayValue:V,xCompareValue:z}=p[et],I=Ih(p,T,et,G),E=I||X,M={enabled:!X,isIsolatedPoint:I},P=z?z[0]:NaN;return _t(kt(kt({x:P,y:B,selected:!!X},E&&{marker:M}),U&&{color:U}),{custom:{rawValue:$,xValue:Z,xDisplayValue:V||Z}})}),ct=[];let pt=-1;const ft=F/2;let _=0;return ht.forEach(et=>{if(et.x&&pt===-1&&(pt=et.x+ft),et.x&&et.x>pt){let G=Math.round((et.x-(pt-ft))/F);for(;G>0&&(_++,!(_>K));){const B=et.x-F*G;ct.push({custom:{xDisplayValue:it(B)},x:B,y:tt?0:null}),tt&&(rt!=null&&rt.min)&&(rt==null?void 0:rt.min)>0&&_m(rt,st),G--,pt+=F}}ct.push(et),et.x?pt=et.x+F+ft:pt+=F}),ct},Ei=(p,T,F,K,tt,it)=>{const rt=_h(p,F,it),ct=p,{title:st}=ct,ht=Te(ct,["title"]);return _t(kt({},ht),{name:st!=null?st:p.name,data:Bm(rt,T,K,tt)})},Ih=(p,T,F,K)=>{const tt=K===0||T[K-1]<0||isNaN(p[T[K-1]].value),it=K+1===T.length||T[K+1]<0||isNaN(p[T[K+1]].value);return tt&&it},_h=(p,T,F)=>p.data.map(it=>{var rt=it,{value:K}=rt,tt=Te(rt,["value"]);return kt({value:T&&Number.isNaN(K)?0:F?Math.abs(K):K},tt)}),Bm=(p,T,F,K)=>{const tt=p.some(it=>it.blur!==void 0);return T.map((it,rt)=>{if(it<0)return{y:null};const{value:st,blur:ht,color:ct,rawValue:pt,xValue:ft}=p[it];if(F)return _t(kt({name:F[it],y:st,color:ct!=null?ct:K==null?void 0:K[it]},tt&&!ht&&{selected:!0}),{custom:{rawValue:pt,xValue:ft}});{const _=Ih(p,T,it,rt),et=_||tt,G={enabled:!ht,isIsolatedPoint:_};return _t(kt(kt({y:isNaN(+st)?st:+st,selected:!!ht},et&&{marker:G}),ct&&{color:ct}),{custom:{rawValue:pt,xValue:ft}})}})},Rm=(p,T,F=.1)=>{const tt=Math.abs(T-p)*F/2;return{min:p<0?p-tt:p,max:T>=0?T+tt:T}},qs=(p,T)=>{const F=kt({},T);return p.min&&p.min>=F.max&&(F.max=p.min*(p.min>=0?2:.5)),p.max&&p.max<=F.min&&(F.min=p.max*(p.max>=0?.5:2)),F},Js=(p,T)=>{const F=kt({},T);return F.min<=0||(p==="column"||p==="bar")&&(F.min=0),F},zm=(p,T,F,K,tt,it)=>{const rt=T.series.map((ft,_)=>_t(kt({},ft),{data:ft.data.map(B=>{var X=B,{value:et}=X,G=Te(X,["value"]);return kt({value:isNaN(et)&&tt[_]?0:et},G)})})).filter((ft,_)=>K[_]===it),{stacking:st}=jh(p,F),ht=it===0?F.yAxis:F.y2Axis||{min:void 0,max:void 0},ct=Ja(p)&&F.polarType!=="line";if(st==="percent")return{min:0,max:100};if(st==="normal"||ct){const ft=Array.from(Array(T.xValues.length),()=>({plus:0,minus:0}));let et=rt.reduce((G,B)=>(B.data.forEach(({value:X},U)=>{X<0?G[U].minus+=X||0:G[U].plus+=X||0}),G),ft).reduce((G,B)=>({min:Math.min(G.min,B.minus),max:Math.max(G.max,B.plus)}),{min:Number.MAX_VALUE,max:Number.MIN_VALUE});return et=qs(ht,et),et=Js(p,et),F.seriesLabels&&(et=Rm(ht.min||et.min,ht.max||et.max)),et}let pt=rt.reduce((ft,_)=>{const et=_.data.map(({value:G})=>G).filter(G=>!isNaN(G));return{min:Math.min(ft.min,...et),max:Math.max(ft.max,...et)}},{min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY});return pt=qs(ht,pt),pt=Js(p,pt),pt},Fm=p=>p.length<=1?!0:p.filter(({enabled:F})=>F).length<=1,Gm=(p,T)=>{if(!(!p.chartType||p.chartType==="auto"||T))return p.chartType},Nh=p=>p?1:0,qo=p=>!!p,Po=(p,T)=>Array(T).fill(p),Wm=p=>{if(p.length===0)return[[0],[void 0],[!1],[!1]];const T=Fm(p),F=p.map(({showOnRightAxis:rt})=>Nh(rt)),K=p.map(rt=>Gm(rt,T)),tt=p.map(({treatNullDataAsZeros:rt})=>qo(rt)),it=p.map(({connectNulls:rt})=>qo(rt));return[F,K,tt,it]},Hm=(p,T)=>{const F=p[0],K=Nh(F==null?void 0:F.showOnRightAxis),tt=F?qo(F.treatNullDataAsZeros):void 0,it=F?qo(F.connectNulls):void 0;return[Po(K,T),Po(void 0,T),Po(tt,T),Po(it,T)]},Xm=(p,T)=>{if(p.type!=="cartesian")return[[],[],[],[]];const F=T,{y:K,breakBy:tt}=F;return tt.length>0?Hm(K,p.series.length):Wm(K)},ar=(p,T)=>{var F,K;if(p.breakBy.length===0){if(p.y.length===0)return oi;const tt=(F=p.y.find(it=>it.column.name===T))==null?void 0:F.color;return gl(tt)}else return(K=p.seriesToColorMap)==null?void 0:K[T]},Ym=(p,T,F,K,tt)=>{const it=ji("boxplot",T),{series:rt,alerts:st}=Om(p,T,tt==null?void 0:tt.palette.variantColors),ht=p.xValues.map(pt=>pt.key);return{options:{title:{text:null},chart:{type:it,spacing:[25,20,20,20],polar:!1,zooming:{type:"x"},events:{load:function(){var et;const pt=this,ft=pt.chartWidth,_=Oh(it,T.autoZoom.enabled,p.xValues.length,ft);if(_.enabled&&((et=T.autoZoom)!=null&&et.scrollerLocation)){const{min:G,max:B}=T.autoZoom.scrollerLocation;Dh(pt,G,B)}pt.update({navigator:_},!0)},selection:pt=>{pt.preventDefault()}}},legend:fi(T.legend),xAxis:Pm(T.xAxis,ht,F.category),yAxis:Lm(T.yAxis,p,F.whiskerMax),series:rt,plotOptions:Em(T.seriesLabels),tooltip:Dm(F,K)},alerts:st}},Bh=p=>_t(kt({enabled:p.enabled,radius:!p.enabled||p.size==="small"?4:7,fillColor:!p.enabled||p.fill==="full"?null:ri,lineColor:null,lineWidth:2,symbol:"circle",fillOpacity:.3},!p.enabled&&{symbol:"circle"}),{states:{hover:{fillColor:ri,radius:p.size==="small"?6:9,lineWidth:3}}});function Rh(p){const{x1Value:T,x2Value:F}=p;return li(Fa,{children:[se("div",{style:{fontSize:"10px",color:"#666",marginTop:"6px"},children:F||T?se("hr",{className:"csdk-border-t",style:{margin:"7px 0px"}}):""}),F||"",F&&T?se("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"18",viewBox:"0 0 24 24",style:{display:"inline-block"},children:se("path",{fill:"#5B6372",fillRule:"nonzero",d:"M6.84 8.5l-2.72-3.175a.5.5 0 1 1 .76-.65l2.998 3.5a.5.5 0 0 1 0 .65l-2.998 3.5a.5.5 0 1 1-.76-.65l2.72-3.175z"})}):"",T||""]})}function yi(p){const{name:T,value:F}=p;return se("div",{style:{display:"table-row-group"},children:li("div",{style:{display:"table-row",height:"18px"},children:[se("div",{style:{display:"table-cell",overflow:"hidden",textOverflow:"ellipsis",wordWrap:"normal",wordBreak:"keep-all",whiteSpace:"nowrap"},children:T}),se("div",{style:{display:"table-cell",paddingLeft:"15px",fontWeight:"600"},children:F.map((K,tt)=>se("div",{children:K},tt))})]})})}function zh(p){const{prefix:T,title:F}=p;return li("div",{style:{display:"flex",marginBottom:"5px"},children:[se("div",{style:{flexShrink:0},children:T}),se("div",{style:{marginLeft:"5px",fontWeight:600,overflow:"hidden",textOverflow:"ellipsis",wordWrap:"normal",wordBreak:"keep-all",whiteSpace:"nowrap"},children:F})]})}function Um(p){const{t:T}=Qr(),F=p.translate||T,{confidenceValue:K,lowerValue:tt,forecastValue:it,upperValue:rt,title:st,x1Value:ht,x2Value:ct}=p;return li("div",{style:{color:nn,fontSize:"13px",lineHeight:"18px",margin:"4px 6px"},children:[se(zh,{prefix:F("advanced.tooltip.forecast"),title:st}),li("div",{style:{display:"table"},children:[se(yi,{name:F("advanced.tooltip.forecastValue"),value:[it]}),se(yi,{name:F("advanced.tooltip.max"),value:[rt]}),se(yi,{name:F("advanced.tooltip.min"),value:[tt]}),se(yi,{name:F("advanced.tooltip.confidenceInterval"),value:[K]})]}),se(Rh,{x1Value:ht,x2Value:ct})]})}const Vm=p=>da.renderToString(se(Um,kt({},p))),$m={smooth:"Advanced Smoothing",linear:"Linear Trend",local:"Local Estimates",logarithmic:"Logarithmic Trend"};function Zm(p){const{t:T}=Qr(),F=p.translate||T,{localValue:K,trendData:tt,modelType:it,title:rt,x1Value:st,x2Value:ht}=p,ct=[`${F("advanced.tooltip.trendData.min")} ${tt.min}`,`${F("advanced.tooltip.trendData.max")} ${tt.max}`,`${F("advanced.tooltip.trendData.median")} ${tt.median}`,`${F("advanced.tooltip.trendData.average")} ${tt.average}`];return li("div",{style:{color:nn,fontSize:"13px",lineHeight:"18px",margin:"4px 6px"},children:[se(zh,{prefix:F("advanced.tooltip.trend"),title:rt}),li("div",{style:{display:"table"},children:[se(yi,{name:F("advanced.tooltip.trendType"),value:[$m[it]]}),se(yi,{name:F("advanced.tooltip.trendLocalValue"),value:[K]}),se(yi,{name:F("advanced.tooltip.trendDataKey"),value:ct})]}),se(Rh,{x1Value:st,x2Value:ht})]})}const Km=p=>da.renderToString(se(Zm,kt({},p))),Fh=function(p,T,F){var z,I,E,M,P,y,h,f,m,u,v,S;const K=p.percentage?`${Math.round(p.percentage)}`:void 0,tt=T,it=tt.breakBy.length>0?(z=tt.y)==null?void 0:z.find(w=>w.enabled):(I=tt.y)==null?void 0:I.find(w=>w.column.title===p.series.name),rt=Ah(it),st=le(it,p.point.y,""),ht=(P=(M=(E=p.point)==null?void 0:E.custom)==null?void 0:M.xDisplayValue)!=null?P:p.x,ct=tt.x?le(tt.x[0],p.x,ht):ht;let pt;if((y=p.point.custom)!=null&&y.xValue&&(tt!=null&&tt.x)&&tt.x.length===2){const w=`${p.point.custom.xValue[0]}`;pt=le(tt.x[1],w,w)}const ft=st+(rt&&K?` / ${K}%`:""),_=p.point.color||p.series.color,et=Ti(p.point.name||p.series.name),G=Th(p.point.name||p.series.name),B=F&&et?`${p.series.name.substring(10)}`:F&&G?`${p.series.name.substring(7)}`:p.series.name,X=(h=p.point)!=null&&h.low?le(it,(f=p.point)==null?void 0:f.low,""):"",U=(m=p.point)!=null&&m.high?le(it,(u=p.point)==null?void 0:u.high,""):"",$=(w,x,c)=>!w||w===""?"":!F||!et&&!G||!x?`<br /${Me(w,c)}`:`<br /><span>${F(x)} </span>${Me(w,c)}`,Z=F?`(+${F("advanced.tooltip.trend")})`:"",V=et?"advanced.tooltip.forecastValue":"";if(G){const w=/modelType=([^"]+)/,x=(v=it==null?void 0:it.column)==null?void 0:v.expression.match(w),c=x?x[1]:null,{min:g,max:r,median:a,average:t}=p.point.trend,i=le(it,g,""),o=le(it,r,""),e=le(it,a,""),s=le(it,t,"");return Km({title:B,modelType:c,trendData:{min:i,max:o,median:e,average:s},localValue:ft,x1Value:ct,x2Value:pt,translate:F})}if(et){const w=/confidenceInterval=([^"]+)/,x=(S=it==null?void 0:it.column)==null?void 0:S.expression.match(w),c=x?x[1]:"0.8",g=(parseFloat(c)*100).toFixed(0)+"%";return Vm({title:B,confidenceValue:g,forecastValue:ft,x1Value:ct,x2Value:pt,translate:F,upperValue:U,lowerValue:X})}return Ci(`
|
|
39
|
+
`)}}),Oh=(p,T,F,K,tt=!1)=>{const ht=K<(tt?200:400),pt=F*20,ft=K>pt;return!T||ht||ft?{enabled:!1}:{series:{type:p,dataGrouping:{enabled:!1}},tooltipFormatter:()=>({left:"",right:""}),enabled:!0,margin:30,height:40,xAxis:{labels:{enabled:!1}},handles:{symbols:["navigator-handle","navigator-handle"],backgroundColor:oi,borderColor:ri},maskInside:!0,maskFill:"rgba(91,99,114, 0.15)",outlineColor:oi,outlineWidth:1}};function Dh(p,T,F){p.xAxis[0].setExtremes(T,F,!1)}function Ks(p){return"polarType"in p}const ji=(p,T)=>p==="line"&&T.lineType==="smooth"?"spline":p==="area"&&T.lineType==="smooth"?"areaspline":p==="polar"?T.polarType:p==="scatter"?"bubble":p,jh=(p,T)=>{var K,tt;const F={totalLabels:{enabled:!1}};if(p!=="area"&&p!=="bar"&&p!=="column"&&p!=="polar")return F;if(p==="polar"){if(Ks(T))return{stacking:T.polarType==="column"||T.polarType==="area"?"normal":void 0,totalLabels:{enabled:!1}};throw new Rt.TranslatableError("errors.polarChartDesignOptionsExpected")}if(Ks(T))throw new Rt.TranslatableError("errors.polarChartDesignOptionsNotExpected");switch(T.stackType){case"stacked":return{stacking:"normal",totalLabels:(K=T.totalLabels)!=null?K:F.totalLabels};case"stack100":return{stacking:"percent",totalLabels:(tt=T.totalLabels)!=null?tt:F.totalLabels};default:return F}},jm=(p,T)=>p.map((F,K)=>T===K?0:-1),Im=(p,T,F,K,tt,it,rt,st)=>{const ht=_h(p,F),ft=p,{title:ct}=ft,pt=Te(ft,["title"]);return _t(kt({},pt),{name:ct!=null?ct:p.name,data:Nm(ht,T,K,tt,F,it,rt,st)})},_m=(p,T)=>{!T.minClipped&&(p!=null&&p.min)&&(p==null?void 0:p.min)>0&&(p.min=0),!T.maxClipped&&(p!=null&&p.max)&&(p==null?void 0:p.max)<0&&(p.max=0)},Nm=(p,T,F,K,tt,it,rt,st)=>{const ht=T.map((et,G)=>{if(et<0)return{y:null};const{value:B,blur:X,color:U,rawValue:$,xValue:Z,xDisplayValue:V,xCompareValue:z}=p[et],I=Ih(p,T,et,G),E=I||X,M={enabled:!X,isIsolatedPoint:I},P=z?z[0]:NaN;return _t(kt(kt({x:P,y:B,selected:!!X},E&&{marker:M}),U&&{color:U}),{custom:{rawValue:$,xValue:Z,xDisplayValue:V||Z}})}),ct=[];let pt=-1;const ft=F/2;let _=0;return ht.forEach(et=>{if(et.x&&pt===-1&&(pt=et.x+ft),et.x&&et.x>pt){let G=Math.round((et.x-(pt-ft))/F);for(;G>0&&(_++,!(_>K));){const B=et.x-F*G;ct.push({custom:{xDisplayValue:it(B)},x:B,y:tt?0:null}),tt&&(rt!=null&&rt.min)&&(rt==null?void 0:rt.min)>0&&_m(rt,st),G--,pt+=F}}ct.push(et),et.x?pt=et.x+F+ft:pt+=F}),ct},Ei=(p,T,F,K,tt,it)=>{const rt=_h(p,F,it),ct=p,{title:st}=ct,ht=Te(ct,["title"]);return _t(kt({},ht),{name:st!=null?st:p.name,data:Bm(rt,T,K,tt)})},Ih=(p,T,F,K)=>{const tt=K===0||T[K-1]<0||isNaN(p[T[K-1]].value),it=K+1===T.length||T[K+1]<0||isNaN(p[T[K+1]].value);return tt&&it},_h=(p,T,F)=>p.data.map(it=>{var rt=it,{value:K}=rt,tt=Te(rt,["value"]);return kt({value:T&&Number.isNaN(K)?0:F?Math.abs(K):K},tt)}),Bm=(p,T,F,K)=>{const tt=p.some(it=>it.blur!==void 0);return T.map((it,rt)=>{if(it<0)return{y:null};const{value:st,blur:ht,color:ct,rawValue:pt,xValue:ft}=p[it];if(F)return _t(kt({name:F[it],y:st,color:ct!=null?ct:K==null?void 0:K[it]},tt&&!ht&&{selected:!0}),{custom:{rawValue:pt,xValue:ft}});{const _=Ih(p,T,it,rt),et=_||tt,G={enabled:!ht,isIsolatedPoint:_};return _t(kt(kt({y:isNaN(+st)?st:+st,selected:!!ht},et&&{marker:G}),ct&&{color:ct}),{custom:{rawValue:pt,xValue:ft}})}})},Rm=(p,T,F=.1)=>{const tt=Math.abs(T-p)*F/2;return{min:p<0?p-tt:p,max:T>=0?T+tt:T}},qs=(p,T)=>{const F=kt({},T);return p.min&&p.min>=F.max&&(F.max=p.min*(p.min>=0?2:.5)),p.max&&p.max<=F.min&&(F.min=p.max*(p.max>=0?.5:2)),F},Js=(p,T)=>{const F=kt({},T);return F.min<=0||(p==="column"||p==="bar")&&(F.min=0),F},zm=(p,T,F,K,tt,it)=>{const rt=T.series.map((ft,_)=>_t(kt({},ft),{data:ft.data.map(B=>{var X=B,{value:et}=X,G=Te(X,["value"]);return kt({value:isNaN(et)&&tt[_]?0:et},G)})})).filter((ft,_)=>K[_]===it),{stacking:st}=jh(p,F),ht=it===0?F.yAxis:F.y2Axis||{min:void 0,max:void 0},ct=Ja(p)&&F.polarType!=="line";if(st==="percent")return{min:0,max:100};if(st==="normal"||ct){const ft=Array.from(Array(T.xValues.length),()=>({plus:0,minus:0}));let et=rt.reduce((G,B)=>(B.data.forEach(({value:X},U)=>{X<0?G[U].minus+=X||0:G[U].plus+=X||0}),G),ft).reduce((G,B)=>({min:Math.min(G.min,B.minus),max:Math.max(G.max,B.plus)}),{min:Number.MAX_VALUE,max:Number.MIN_VALUE});return et=qs(ht,et),et=Js(p,et),F.seriesLabels&&(et=Rm(ht.min||et.min,ht.max||et.max)),et}let pt=rt.reduce((ft,_)=>{const et=_.data.map(({value:G})=>G).filter(G=>!isNaN(G));return{min:Math.min(ft.min,...et),max:Math.max(ft.max,...et)}},{min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY});return pt=qs(ht,pt),pt=Js(p,pt),pt},Fm=p=>p.length<=1?!0:p.filter(({enabled:F})=>F).length<=1,Gm=(p,T)=>{if(!(!p.chartType||p.chartType==="auto"||T))return p.chartType},Nh=p=>p?1:0,qo=p=>!!p,Po=(p,T)=>Array(T).fill(p),Wm=p=>{if(p.length===0)return[[0],[void 0],[!1],[!1]];const T=Fm(p),F=p.map(({showOnRightAxis:rt})=>Nh(rt)),K=p.map(rt=>Gm(rt,T)),tt=p.map(({treatNullDataAsZeros:rt})=>qo(rt)),it=p.map(({connectNulls:rt})=>qo(rt));return[F,K,tt,it]},Hm=(p,T)=>{const F=p[0],K=Nh(F==null?void 0:F.showOnRightAxis),tt=F?qo(F.treatNullDataAsZeros):void 0,it=F?qo(F.connectNulls):void 0;return[Po(K,T),Po(void 0,T),Po(tt,T),Po(it,T)]},Xm=(p,T)=>{if(p.type!=="cartesian")return[[],[],[],[]];const F=T,{y:K,breakBy:tt}=F;return tt.length>0?Hm(K,p.series.length):Wm(K)},ar=(p,T)=>{var F,K;if(p.breakBy.length===0){if(p.y.length===0)return oi;const tt=(F=p.y.find(it=>it.column.name===T))==null?void 0:F.color;return gl(tt)}else return(K=p.seriesToColorMap)==null?void 0:K[T]},Ym=(p,T,F,K,tt)=>{const it=ji("boxplot",T),{series:rt,alerts:st}=Om(p,T,tt==null?void 0:tt.palette.variantColors),ht=p.xValues.map(pt=>pt.key);return{options:{title:{text:null},chart:{type:it,spacing:[25,20,20,20],polar:!1,zooming:{type:"x"},events:{load:function(){var et;const pt=this,ft=pt.chartWidth,_=Oh(it,T.autoZoom.enabled,p.xValues.length,ft);if(_.enabled&&((et=T.autoZoom)!=null&&et.scrollerLocation)){const{min:G,max:B}=T.autoZoom.scrollerLocation;Dh(pt,G,B)}pt.update({navigator:_},!0)},selection:pt=>{pt.preventDefault()}}},legend:fi(T.legend),xAxis:Pm(T.xAxis,ht,F.category),yAxis:Lm(T.yAxis,p,F.whiskerMax),series:rt,plotOptions:Em(T.seriesLabels),tooltip:Dm(F,K)},alerts:st}},Bh=p=>_t(kt({enabled:p.enabled,radius:!p.enabled||p.size==="small"?4:7,fillColor:!p.enabled||p.fill==="full"?null:ri,lineColor:null,lineWidth:2,symbol:"circle",fillOpacity:.3},!p.enabled&&{symbol:"circle"}),{states:{hover:{fillColor:ri,radius:p.size==="small"?6:9,lineWidth:3}}});function Rh(p){const{x1Value:T,x2Value:F}=p;return li(Fa,{children:[se("div",{style:{fontSize:"10px",color:"#666",marginTop:"6px"},children:F||T?se("hr",{className:"csdk-border-t",style:{margin:"7px 0px"}}):""}),F||"",F&&T?se("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"18",viewBox:"0 0 24 24",style:{display:"inline-block"},children:se("path",{fill:"#5B6372",fillRule:"nonzero",d:"M6.84 8.5l-2.72-3.175a.5.5 0 1 1 .76-.65l2.998 3.5a.5.5 0 0 1 0 .65l-2.998 3.5a.5.5 0 1 1-.76-.65l2.72-3.175z"})}):"",T||""]})}function yi(p){const{name:T,value:F}=p;return se("div",{style:{display:"table-row-group"},children:li("div",{style:{display:"table-row",height:"18px"},children:[se("div",{style:{display:"table-cell",overflow:"hidden",textOverflow:"ellipsis",wordWrap:"normal",wordBreak:"keep-all",whiteSpace:"nowrap"},children:T}),se("div",{style:{display:"table-cell",paddingLeft:"15px",fontWeight:"600"},children:F.map((K,tt)=>se("div",{children:K},tt))})]})})}function zh(p){const{prefix:T,title:F}=p;return li("div",{style:{display:"flex",marginBottom:"5px"},children:[se("div",{style:{flexShrink:0},children:T}),se("div",{style:{marginLeft:"5px",fontWeight:600,overflow:"hidden",textOverflow:"ellipsis",wordWrap:"normal",wordBreak:"keep-all",whiteSpace:"nowrap"},children:F})]})}function Um(p){const{t:T}=Qr(),F=p.translate||T,{confidenceValue:K,lowerValue:tt,forecastValue:it,upperValue:rt,title:st,x1Value:ht,x2Value:ct}=p;return li("div",{style:{color:tn,fontSize:"13px",lineHeight:"18px",margin:"4px 6px"},children:[se(zh,{prefix:F("advanced.tooltip.forecast"),title:st}),li("div",{style:{display:"table"},children:[se(yi,{name:F("advanced.tooltip.forecastValue"),value:[it]}),se(yi,{name:F("advanced.tooltip.max"),value:[rt]}),se(yi,{name:F("advanced.tooltip.min"),value:[tt]}),se(yi,{name:F("advanced.tooltip.confidenceInterval"),value:[K]})]}),se(Rh,{x1Value:ht,x2Value:ct})]})}const Vm=p=>da.renderToString(se(Um,kt({},p))),$m={smooth:"Advanced Smoothing",linear:"Linear Trend",local:"Local Estimates",logarithmic:"Logarithmic Trend"};function Zm(p){const{t:T}=Qr(),F=p.translate||T,{localValue:K,trendData:tt,modelType:it,title:rt,x1Value:st,x2Value:ht}=p,ct=[`${F("advanced.tooltip.trendData.min")} ${tt.min}`,`${F("advanced.tooltip.trendData.max")} ${tt.max}`,`${F("advanced.tooltip.trendData.median")} ${tt.median}`,`${F("advanced.tooltip.trendData.average")} ${tt.average}`];return li("div",{style:{color:tn,fontSize:"13px",lineHeight:"18px",margin:"4px 6px"},children:[se(zh,{prefix:F("advanced.tooltip.trend"),title:rt}),li("div",{style:{display:"table"},children:[se(yi,{name:F("advanced.tooltip.trendType"),value:[$m[it]]}),se(yi,{name:F("advanced.tooltip.trendLocalValue"),value:[K]}),se(yi,{name:F("advanced.tooltip.trendDataKey"),value:ct})]}),se(Rh,{x1Value:st,x2Value:ht})]})}const Km=p=>da.renderToString(se(Zm,kt({},p))),Fh=function(p,T,F){var z,I,E,M,P,y,h,f,m,u,v,S;const K=p.percentage?`${Math.round(p.percentage)}`:void 0,tt=T,it=tt.breakBy.length>0?(z=tt.y)==null?void 0:z.find(w=>w.enabled):(I=tt.y)==null?void 0:I.find(w=>w.column.title===p.series.name),rt=Ah(it),st=le(it,p.point.y,""),ht=(P=(M=(E=p.point)==null?void 0:E.custom)==null?void 0:M.xDisplayValue)!=null?P:p.x,ct=tt.x?le(tt.x[0],p.x,ht):ht;let pt;if((y=p.point.custom)!=null&&y.xValue&&(tt!=null&&tt.x)&&tt.x.length===2){const w=`${p.point.custom.xValue[0]}`;pt=le(tt.x[1],w,w)}const ft=st+(rt&&K?` / ${K}%`:""),_=p.point.color||p.series.color,et=Ti(p.point.name||p.series.name),G=Th(p.point.name||p.series.name),B=F&&et?`${p.series.name.substring(10)}`:F&&G?`${p.series.name.substring(7)}`:p.series.name,X=(h=p.point)!=null&&h.low?le(it,(f=p.point)==null?void 0:f.low,""):"",U=(m=p.point)!=null&&m.high?le(it,(u=p.point)==null?void 0:u.high,""):"",$=(w,x,c)=>!w||w===""?"":!F||!et&&!G||!x?`<br /${Me(w,c)}`:`<br /><span>${F(x)} </span>${Me(w,c)}`,Z=F?`(+${F("advanced.tooltip.trend")})`:"",V=et?"advanced.tooltip.forecastValue":"";if(G){const w=/modelType=([^"]+)/,x=(v=it==null?void 0:it.column)==null?void 0:v.expression.match(w),c=x?x[1]:null,{min:g,max:r,median:a,average:t}=p.point.trend,i=le(it,g,""),o=le(it,r,""),e=le(it,a,""),s=le(it,t,"");return Km({title:B,modelType:c,trendData:{min:i,max:o,median:e,average:s},localValue:ft,x1Value:ct,x2Value:pt,translate:F})}if(et){const w=/confidenceInterval=([^"]+)/,x=(S=it==null?void 0:it.column)==null?void 0:S.expression.match(w),c=x?x[1]:"0.8",g=(parseFloat(c)*100).toFixed(0)+"%";return Vm({title:B,confidenceValue:g,forecastValue:ft,x1Value:ct,x2Value:pt,translate:F,upperValue:U,lowerValue:X})}return Ci(`
|
|
40
40
|
${B.replace(Z,"")}
|
|
41
41
|
${$(ft,V,_)}
|
|
42
42
|
${$(U,"advanced.tooltip.max",_)}
|
|
@@ -187,4 +187,4 @@
|
|
|
187
187
|
</div>
|
|
188
188
|
${ii()}
|
|
189
189
|
<div>${_||""}</div>
|
|
190
|
-
`)}}),la=(p,T,F,K,tt,it,rt)=>{var E,M;const st=[],ht=[];K.seriesValues.forEach(P=>{ht.push(P),st.push(P)}),K.rangeValues.forEach(([P,y])=>{ht.push(y),st.push(P)});const ft=_t(kt({},K),{y:ht,seriesToColorMap:K.seriesToColorMap}),_=Jo(_t(kt({},p),{type:"cartesian"}),T,F,ft,tt,it,rt),et={};_.options.series.forEach(P=>{et[P.name]=P});const G=_t(kt({},K),{y:st,seriesToColorMap:K.seriesToColorMap}),B=Jo(_t(kt({},p.seriesOther),{type:"cartesian"}),T,F,G,tt,it,rt),X={};B.options.series.forEach(P=>{X[P.name]=P});let U=1/0,$=-1/0,Z=-1,V=0;if(_.options.series.forEach((P,y)=>{if(K.breakBy.length===0&&y<K.seriesValues.length)Ti(P.name)&&(Z=ym(P,X,et)),P.zIndex=1,P.data.forEach(h=>{h.y&&h.y<U&&(U=h.y),h.y&&h.y>$&&($=h.y)});else{const h=X[P.name].data;P.yAxis=0;let f=0;K.breakBy.length===0&&(f=y-K.seriesValues.length);const m=K.rangeValues[f],u=m[0].column.name.indexOf("_")+1,v=m[1].column.name.substring(u),S=m[0].column.name.substring(u);P.type="arearange",Ti(P.name)&&vm(P,X),V=Math.max(P.data.length,V),P.data=P.data.map((w,x)=>{const c=_t(kt({},w),{low:h[x].y,high:w.y,y:void 0,upperPointName:v,lowerPointName:S});return c.low&&c.low<U&&(U=c.low),c.high&&c.high>$&&($=c.high),c}),Ti(P.name)&&bm(P,X)}}),_.options.xAxis||(_.options.xAxis=[]),Z>0&&xm(_.options.xAxis,Z,V),T==="arearange"&&F.lineType==="smooth"){const P="areasplinerange";_.options.chart.type=P,(E=_.options.navigator)!=null&&E.series&&(_.options.navigator.series.type=P)}T==="arearange"&&(_.options.tooltip=m0(!1,K,tt));const[z]=(M=_.options.yAxis)!=null?M:[],I=_t(kt({},z),{min:U,max:$});return _.options.yAxis=[I],_},y0={displayValue:"0"},Wi=(p,T)=>{if(T){for(let F=0;F<p.columns.length;F++)if(p.columns[F].name===T.column.name)return F}return-1},v0=(p,T)=>({x:Wi(T,p.x),y:Wi(T,p.y),breakByPoint:Wi(T,p.breakByPoint),breakByColor:Wi(T,p.breakByColor),size:Wi(T,p.size)}),ha=(p,T)=>T[p]||y0,b0=(p,T)=>{const F=new Set;return p.forEach(K=>{F.add(K[T].displayValue)}),Array.from(F.values())},ca=(p,T,F)=>{if(F&&!Qe(F))return b0(p,T)},pa=(p,T)=>[p,T],x0=(p,T)=>{const F=new Map(p==null?void 0:p.map(pa)),K=new Map(T==null?void 0:T.map(pa));return{xCategoriesMap:F,yCategoriesMap:K}},C0=(p,T)=>{var it,rt;const F=v0(p,T),K=p!=null&&p.breakByPoint&&Rt.isNumber(p.breakByPoint.column.type)?he((it=p.breakByPoint)==null?void 0:it.numberFormatConfig):void 0,tt=p!=null&&p.breakByColor&&(Qe(p.breakByColor)||Rt.isNumber(p.breakByColor.column.type))?he((rt=p.breakByColor)==null?void 0:rt.numberFormatConfig):void 0;return T.rows.map(st=>{const ht=kt({},st[F.breakByPoint]);K&&(ht.displayValue=Ce(K,ht.compareValue?ht.compareValue.value:parseFloat(ht.displayValue)));const ct=kt({},st[F.breakByColor]);return tt&&(ct.displayValue=Ce(tt,ct.compareValue?ct.compareValue.value:parseFloat(ct.displayValue))),{xAxis:ha(F.x,st),yAxis:ha(F.y,st),breakByPoint:ht,breakByColor:ct,size:st[F.size]}})},S0=(p,T)=>{const F=C0(p,T),{x:K,y:tt}=p,it=ca(F,"xAxis",K),rt=ca(F,"yAxis",tt);return{type:"scatter",scatterDataTable:F,xCategories:it,yCategories:rt}},Ke="#d1d1d7";function mc(p,T,F){if(F&&F.length&&!F.includes(T))return"";const K=typeof T=="number"?T:parseFloat(T);return isNaN(K)?`${T}`:p&&!Qe(p)&&!Rt.isNumber(p.column.type)?`${T}`:Ce(he(p==null?void 0:p.numberFormatConfig),K)}const w0=(p,T,F)=>[{type:p.type,startOnTick:!1,endOnTick:!(p.max||T),labels:{overflow:"justify",enabled:p.enabled&&p.labels,autoRotation:[-10,-20,-30,-40,-50,-60,-70,-80,-90],style:Se,formatter:function(){return mc(F==null?void 0:F.x,this.value,this.axis.categories)}},categories:T||void 0,gridLineWidth:p.enabled&&p.gridLine?1:0,gridLineColor:Ke,gridLineDashStyle:"Dot",title:{enabled:p.enabled&&p.titleEnabled,margin:25,text:p.title||null},lineColor:Ke,lineWidth:1,minorTickColor:Ke,minorGridLineColor:Ke,minorGridLineDashStyle:"Dot",minorTickLength:0,tickLength:0,tickColor:Ke,tickmarkPlacement:"on",tickInterval:p.enabled?p.tickInterval:null,min:p.enabled?p.min:null,max:p.enabled?p.max:null}],M0=(p,T,F)=>[{type:p.type,startOnTick:!1,endOnTick:!(p.max||T),title:{enabled:p.enabled&&p.titleEnabled,text:p.title||null},labels:{enabled:p.labels,autoRotation:[-10,-20,-30,-40,-50,-60,-70,-80,-90],style:Se,formatter:function(){return mc(F==null?void 0:F.y,this.value,this.axis.categories)}},categories:T||void 0,gridLineColor:Ke,gridLineDashStyle:"Dot",gridLineWidth:1,lineColor:Ke,lineWidth:1,maxPadding:.025,minPadding:.025,minorGridLineColor:Ke,minorGridLineDashStyle:"Dot",minorGridLineWidth:0,minorTickColor:Ke,minorTickWidth:0,opposite:!1,tickColor:Ke,tickWidth:0,tickmarkPlacement:"on",tickInterval:p.enabled?p.tickInterval:null,min:p.enabled?p.min:null,max:p.enabled?p.max:null}],yc={scatterDefaultSize:10,scatterBubbleMinSize:12,scatterBubbleMaxSize:48},A0=(p,T)=>{var it;if(!(p!=null&&p.enabled))return{enabled:!1};const F=Le(p),K=(it=p.rotation)!=null?it:0,tt=_t(kt(kt({align:"center",verticalAlign:"middle",types:{count:!1,relative:!0,totals:!0},rotation:K},_n(K)==="horizontal"?{y:-1}:null),F),{style:kt({fontWeight:"",textOutline:""},F.style)});return tt.formatter=function(){var et,G,B,X;const rt=this,st={maskedY:T.y,maskedX:T.x,maskedSize:T.size,maskedBreakByColor:T.breakByColor},ct=[T.y,T.x,T.size,T.breakByColor].find(U=>U&&Qe(U)),pt=(et=Object.entries(st).find(([,U])=>U===ct))==null?void 0:et[0],ft=((G=rt.point.custom)==null?void 0:G[pt])||"";if(isNaN(parseFloat(ft)))return ft;const _=he(ct==null?void 0:ct.numberFormatConfig);return`${(B=p==null?void 0:p.prefix)!=null?B:""}${Ce(_,parseFloat(ft))}${(X=p==null?void 0:p.suffix)!=null?X:""}`},tt},T0=(p,T)=>({minSize:T?p.scatterBubbleMinSize:p.scatterDefaultSize,maxSize:T?p.scatterBubbleMaxSize:p.scatterDefaultSize}),k0=(p,T)=>{var K;const F=!!T.size;return{bubble:kt({animation:!1},T0((K=p.markerSize)!=null?K:yc,F)),series:{allowPointSelect:!1,boostThreshold:0,dataLabels:A0(p.seriesLabels,T),stickyTracking:!1,turboThreshold:0}}},vc="#00cee6",qr=p=>{const T=p.rawValue==null?Number(p.displayValue):Number(p.rawValue);return Number.isNaN(T)||T===void 0?null:T},P0=p=>p?qr(p):1,L0=(p,T)=>{const{xAxis:F,yAxis:K,breakByPoint:tt,breakByColor:it,size:rt}=p,{xCategoriesMap:st,yCategoriesMap:ht}=T,ct=st.get(F.displayValue),pt=ht.get(K.displayValue),ft=F.blur||K.blur||(tt==null?void 0:tt.blur);return{x:ct!==void 0?ct:qr(F),y:pt!==void 0?pt:qr(K),z:P0(rt),maskedX:F.displayValue,maskedY:K.displayValue,maskedBreakByPoint:tt==null?void 0:tt.displayValue,maskedBreakByColor:it==null?void 0:it.displayValue,color:it==null?void 0:it.color,maskedSize:rt==null?void 0:rt.displayValue,selected:ft}},E0=(p,T,F)=>{var rt,st;const K=new Map;p.forEach(ht=>{var ct;if(ht.breakByColor){const{displayValue:pt,color:ft}=ht.breakByColor;if(pt&&!K.has(pt)){const _=ft||((ct=T==null?void 0:T.seriesToColorMap)==null?void 0:ct[pt]);K.set(pt,_)}}});const tt=new Map,it=Rt.isNumber((st=(rt=T==null?void 0:T.breakByColor)==null?void 0:rt.column)==null?void 0:st.type)?"number":"string";return Array.from(K).sort(([ht],[ct])=>rl(ht,ct,ol.ASC,it)).forEach(([ht,ct],pt)=>{tt.set(ht,{color:ct!=null?ct:Ue(F==null?void 0:F.palette.variantColors,pt),index:pt})}),tt},O0=(p,T,F)=>{const K={enabled:!0,fillOpacity:.7,lineWidth:1,states:{select:{fillOpacity:.3,lineWidth:1}}};return p.size?Array.from(p).map(([tt,{index:it,color:rt}])=>({data:[],index:it,marker:K,name:tt,showInLegend:!0,type:"bubble",color:rt})):[{data:[],index:0,marker:K,name:T,showInLegend:!!T,type:"bubble",color:gl(F)||vc}]},D0=(p,T)=>{const F=p.get(T);return F?F.index:0},j0=(p,T)=>{const F=Pn({getValueFromDataStructure:K=>{var tt;return parseFloat(`${(tt=K.custom)==null?void 0:tt.maskedBreakByColor}`)},applyColorToDataStructure:(K,tt)=>_t(kt({},K),{color:tt})});return p.map(K=>_t(kt({},K),{data:F(K.data,T)}))},I0=p=>{if(p&&Qe(p)&&p.color)return p.color},_0=(p,T,F,K)=>{for(const tt of T){const{x:it,y:rt,z:st,maskedX:ht,maskedY:ct,maskedBreakByPoint:pt,maskedSize:ft,color:_,maskedBreakByColor:et,selected:G}=L0(tt,F);if(it!==null&&rt!==null){const B=p[D0(K,et)],X={color:_||B.color||vc,x:it,y:rt,z:st,custom:{maskedX:ht,maskedY:ct,maskedBreakByPoint:pt,maskedBreakByColor:et,maskedSize:ft},selected:G};B.data.push(X)}}return p},N0=p=>{const T=p==null?void 0:p.breakByColor,F=p==null?void 0:p.breakByPoint;return T&&xe(T)||F&&xe(F)||""},B0=(p,T,F,K)=>{const tt=F==null?void 0:F.breakByColor,it=N0(F),rt=I0(tt),st=tt&&!Qe(tt)?E0(p,F,K):new Map;let ht=O0(st,it,rt);return ht=_0(ht,p,T,st),rt&&(ht=j0(ht,rt)),ht},R0=(p,T)=>T?p.slice(0,T):p,z0=(p,T,F,K,tt,it)=>{const rt=[],st=B0(p,T,F,tt).map(ht=>_t(kt({},ht),{dataLabels:K==null?void 0:K.seriesLabels}));return it&&st.length>it?(rt.push(Si(st.length,it)),{series:R0(st,it),alerts:rt}):{series:st,alerts:rt}},Eo=20,F0=30,G0=p=>kt({symbolHeight:12,symbolWidth:12,itemMarginBottom:0,itemMarginTop:0},fi(p)),W0=(p,T,F,K,tt)=>{const it=[],rt=ji(T,F),st=K,{scatterDataTable:ht}=p,{seriesCapacity:ct,categoriesCapacity:pt}=F.dataLimits;let{xCategories:ft,yCategories:_}=p;ft&&ft.length>pt&&(it.push(Zo("x",ft.length,pt)),ft=ft.slice(0,pt)),_&&_.length>pt&&(it.push(Zo("y",_.length,pt)),_=_.slice(0,pt));const{series:et,alerts:G}=z0(ht,x0(ft,_),st,F,tt,ct);return it.unshift(...G),{options:{title:{text:null},subtitle:{text:null},chart:{type:rt,spacing:[Eo,Eo,Eo,Eo],marginTop:F0,alignTicks:!1,polar:!1},xAxis:w0(F.xAxis,ft==null?void 0:ft.slice(0,pt),st),yAxis:M0(F.yAxis,_==null?void 0:_.slice(0,pt),st),legend:G0(F.legend),series:et,plotOptions:k0(F,st),tooltip:mm(st)},alerts:it}},H0=(p,T,F,K,tt,it,rt)=>{switch(p.type){case"range":return la(p,T,F,K,tt,it,rt);case"cartesian":{const st=K,ht=Lh(st)?la(_t(kt({},p),{type:"range"}),T,F,Eh(st),tt,it,rt):Jo(p,T,F,st,tt,it,rt);return Sm(ht.options.series),ht}case"categorical":return g0(p,T,F,K,tt,it);case"scatter":return W0(p,T,F,K,it);case"boxplot":return Ym(p,F,K,tt,it);default:throw new Rt.TranslatableError("errors.unexpectedChartType",{chartType:p.type})}},X0={legend:{enabled:!0,position:"bottom"},navigator:{enabled:!0},markers:{enabled:!1,fill:"filled",size:"small"},seriesLabels:{enabled:!1,rotation:0},xAxis:{enabled:!0,gridLines:!1,isIntervalEnabled:!1,labels:{enabled:!0},logarithmic:!1,title:{enabled:!1,text:"X Axis title"}},yAxis:{enabled:!0,gridLines:!0,isIntervalEnabled:!1,labels:{enabled:!0},logarithmic:!1,title:{enabled:!1,text:"Y Axis title"}},y2Axis:{enabled:!0,gridLines:!0,isIntervalEnabled:!1,labels:{enabled:!0},logarithmic:!1,title:{enabled:!1,text:"Y2 Axis title"}},convolution:{enabled:!1,selectedConvolutionType:"byPercentage",minimalIndependentSlicePercentage:3,independentSlicesCount:7},labels:{categories:!0,enabled:!0,percent:!0,decimals:!1,value:!1}},Y0=()=>Rt.cloneDeep(X0);function U0(p){return Rt.flatRest(function(T){return T=Rt.arrayMap(T,Rt.baseUnary(Rt.baseIteratee)),Rt.baseRest(function(F){var K=this;return p(T,function(tt){return Rt.apply(tt,K,F)})})})}var bc=U0(Rt.arrayMap);function lr(p,T=!1){const F=p.filter(K=>Rt.isFunction(K));return T?nr(F):bc(F)}function xc(...p){return(T,F)=>p.reduce((K,tt)=>{var it;return tt&&(it=tt(T,K))!=null?it:K},F)}function V0(...p){return T=>p.reduce((F,K)=>{var tt;return K&&(tt=K(F))!=null?tt:F},T)}function $0(...p){return T=>p.reduce((F,K)=>{if(!K)return F;const tt=K(F);return tt!==null?tt:F},T)}const Cc={"chart/line":"line","chart/area":"area","chart/bar":"bar","chart/column":"column","chart/polar":"polar","chart/pie":"pie","chart/funnel":"funnel",treemap:"treemap",sunburst:"sunburst","chart/scatter":"scatter",indicator:"indicator","chart/boxplot":"boxplot","map/scatter":"scattermap","map/area":"areamap",tablewidget:"table",tablewidgetagg:"table",heatmap:"calendar-heatmap"},Z0=Object.entries(Cc).reduce((p,[T,F])=>(p[F]=T,p),{});function K0(p){return Cc[p]}function q0(p){return Z0[p]}function J0(p,T){if(p==="chart"){if(!T)throw new Error("chartType is required for chart widget type");return q0(T)}if(p==="pivot")return"pivot2";if(p==="custom")return"custom";if(p==="text")return"richtexteditor";throw new Rt.TranslatableError("errors.widgetModel.unsupportedWidgetType",{widgetType:p})}function Q0(p){if(Fn(p))return"pivot";if(hv(p))return"custom";if(Gn(p))return"text";if(Sc(p))return"chart";throw new Rt.TranslatableError("errors.widgetModel.unsupportedFusionWidgetType",{fusionWidgetType:p})}function tv(p){return{"area/basic":"area/basic","area/stacked":"area/stacked","area/stacked100":"area/stacked100","area/spline":"area/spline","area/stackedspline":"area/stackedspline","area/stackedspline100":"area/stackedspline100","bar/classic":"bar/classic","bar/stacked":"bar/stacked","bar/stacked100":"bar/stacked100","column/classic":"column/classic","column/stackedcolumn":"column/stackedcolumn","column/stackedcolumn100":"column/stackedcolumn100","line/basic":"line/basic","line/spline":"line/spline","pie/classic":"pie/classic","pie/donut":"pie/donut","pie/ring":"pie/ring","column/polar":"polar/column","area/polar":"polar/area","line/polar":"polar/line","indicator/numeric":"indicator/numeric","indicator/gauge":"indicator/gauge",treemap:"treemap",sunburst:"sunburst","boxplot/full":"boxplot/full","boxplot/hollow":"boxplot/hollow","map/scatter":"scattermap"}[p]}function ev(p){return["chart/line","chart/area","chart/bar","chart/column","chart/polar","chart/pie","chart/funnel","treemap","sunburst","chart/scatter","indicator","tablewidget","tablewidgetagg","pivot","pivot2","chart/boxplot","map/scatter","map/area","richtexteditor","heatmap"].includes(p)}function iv(p){return p==="WidgetsTabber"}const ov=["chart/pie","indicator","richtexteditor","chart/column","chart/bar","chart/line","chart/area","pivot","pivot2","chart/scatter","chart/polar"];function rv(p){return ov.includes(p)}function nv(p){return p==="tablewidget"||p==="tablewidgetagg"}function sv(p){return fv(p.widgetType)&&p.chartType==="table"}function Fn(p){return p==="pivot"||p==="pivot2"}function av(p){return p==="pivot"}function Gn(p){return p==="richtexteditor"}function lv(p){return p==="text"}function hv(p){return p==="custom"}function cv(p){return p==="custom"}function Sc(p){return!Fn(p)&&!Gn(p)}function pv(p){return p.startsWith("chart")}function dv(p){return p==="chart/pie"}function uv(p){return p==="indicator"}function fv(p){return p==="chart"}function wc(p){return p.widgetType==="text"}function hr(p){return p.widgetType==="pivot"}function Mc(p){return p.widgetType==="custom"}function cr(p){return p.widgetType==="chart"}function gv(p){return hr(p)?"pivot":Mc(p)?"custom":wc(p)?"text":p.chartType}function mv(p,T){(cr(p)||hr(p))&&(p.onDataPointClick=lr([p.onDataPointClick,T]))}function yv(p,T){!cr(p)&&!hr(p)||(p.onDataPointContextMenu=lr([p.onDataPointContextMenu,T]))}function vv(p,T){cr(p)&&(p.onDataPointsSelected=lr([p.onDataPointsSelected,T]))}function bv(p,T){var K;const F=p.styleOptions;p.styleOptions=_t(kt({},F),{header:_t(kt({},F==null?void 0:F.header),{renderToolbar:xc((K=F==null?void 0:F.header)==null?void 0:K.renderToolbar,T)})})}function xv(p,T){var tt;const F=p.find(it=>it.name===T);return((tt=F==null?void 0:F.items)!=null?tt:[]).filter(it=>!it.disabled)}function Ac(p){return p.parent?Ac(p.parent):p}const Cv=p=>Va(p)?"cartesian":$a(p)?"categorical":Za(p)?"scatter":Ka(p)?"scattermap":qa(p)?"indicator":tl(p)?"areamap":Qa(p)?"boxplot":"table";exports.ALL_CHART_TYPES=rd;exports.BOXPLOT_CHART_TYPES=fn;exports.CALENDAR_HEATMAP_COLORS=Ig;exports.CALENDAR_HEATMAP_DATA_TYPE=Bg;exports.CALENDAR_HEATMAP_DEFAULTS=jg;exports.CALENDAR_HEATMAP_SIZING=_g;exports.CALENDAR_TYPOGRAPHY=Ng;exports.CARTESIAN_CHART_TYPES=pn;exports.CATEGORICAL_CHART_TYPES=dn;exports.CacheProvider=qp;exports.Color=ee;exports.DEFAULT_BACKGROUND_COLOR=Cp;exports.DEFAULT_COLOR=Fo;exports.DEFAULT_TEXT_COLOR=nn;exports.DefaultFunnelDirection=ph;exports.DefaultFunnelSeriesLabels=lh;exports.DefaultFunnelSize=hh;exports.DefaultFunnelType=ch;exports.DefaultPieType=fh;exports.ERROR_COLOR=Sp;exports.Emotion$1=cn;exports.FULL_MONTH_DATE_FORMAT=Rg;exports.Fragment=Fa;exports.GradientDirections=Lf;exports.Highcharts=vh;exports.I18nContext=ga;exports.NOT_AVAILABLE_DATA_VALUE=sn;exports.NOT_AVAILABLE_TEXT=wp;exports.QUERY_DEFAULT_LIMIT=bp;exports.RANGE_CHART_TYPES=gn;exports.REFERENCE_SUNDAY_DATE=Wg;exports.RadialGradientPresets=Ef;exports.SCATTER_CHART_TYPES=un;exports.SHORT_MONTH_DATE_FORMAT=zg;exports.SINGLE_LETTER_DAY_DATE_FORMAT=Fg;exports.SYSTEM_TENANT_NAME=xp;exports.THREE_LETTER_DAY_DATE_FORMAT=Gg;exports.TRIANGLE_COLOR_ADJUSTMENT=cf;exports.ThemeContext=za;exports.ViewType=jn;exports.advancedAnalyticsData=Am;exports.applyFormat=vi;exports.applyFormatPlainText=Ce;exports.applyOpacity=Ul;exports.baseTrim=Ia;exports.buildCategoriesMeta=Vh;exports.buildXAxisSettings=$h;exports.buildYAxisMeta=Uh;exports.buildYAxisMinMax=$r;exports.cartesianData=zr;exports.categoriesSliceWarning=Zo;exports.colorChineseSilver=oi;exports.colorWhite=ri;exports.combineHandlers=lr;exports.commonjsGlobal=Hi;exports.composeTextWidgetToolbarHandlers=V0;exports.composeTitleHandlers=$0;exports.composeToolbarHandlers=xc;exports.createCache=Ma;exports.createCompareValue=Ji;exports.createDataColoringFunction=Pn;exports.createDataTableFromData=pd;exports.createEmotionProps=hn;exports.createLinearGradient=Of;exports.createRadialGradient=Df;exports.defaultScatterMarkerSize=yc;exports.deriveChartFamily=Cv;exports.determineHighchartsChartType=ji;exports.emptyTable=Sn;exports.extractForecastMeasures=Mm;exports.extractTrendMeasures=wm;exports.flow=nr;exports.formatFunnelChartData=Jh;exports.formatTooltipValue=le;exports.fromHighchartsGradientFormat=jf;exports.getAlerts=Qh;exports.getAugmentedNamespace=Ec;exports.getCartesianChartOptions=Jo;exports.getCartesianTooltipSettings=Gh;exports.getCategoryTooltipSettings=Bn;exports.getChartSubtype=tv;exports.getChartType=K0;exports.getColoringServiceByColorOptions=$l;exports.getColumnByName=si;exports.getColumnsByName=Qi;exports.getCompleteNumberFormatConfig=he;exports.getDarkFactor=uo;exports.getData=On;exports.getDataOptionGranularity=yn;exports.getDataOptionTitle=xe;exports.getDefaultDateFormat=Dn;exports.getDefaultExportFromCjs=Jr;exports.getDefaultStyleOptions=Y0;exports.getEnabledPanelItems=xv;exports.getFunnelPlotOptions=uh;exports.getFusionWidgetType=J0;exports.getIndexedRows=Cn;exports.getInternalWidgetType=gv;exports.getInterpolatorFn=Vl;exports.getLegendSettings=fi;exports.getOrderedXValues=Ql;exports.getPaletteColor=Ue;exports.getPieAlerts=ac;exports.getPieConvolutionSeries=cc;exports.getPiePlotOptions=gh;exports.getPieSeries=hc;exports.getRegisteredStyles=Aa;exports.getRootPanelItem=Ac;exports.getSlightlyDifferentColor=gf;exports.getTreemapTooltipSettings=Rn;exports.getUniformColorOptionsFromString=wn;exports.getValue=pl;exports.getValues=Di;exports.getWidgetType=Q0;exports.getYAxisSettings=Wh;exports.groupBy=hl;exports.hasOwn=ao;exports.hasSecondaryYAxis=Zh;exports.highchartsOptionsService=H0;exports.insertStyles=Ta;exports.isAreamap=tl;exports.isBlurred=dl;exports.isBoxplot=Qa;exports.isCalendarHeatmap=od;exports.isCartesian=Va;exports.isCategorical=$a;exports.isCell=sl;exports.isChartFusionWidget=Sc;exports.isChartTypeFusionWidget=pv;exports.isChartWidgetProps=cr;exports.isContinuousDatetimeXAxis=Yh;exports.isCustomWidget=cv;exports.isCustomWidgetProps=Mc;exports.isDataTableEmpty=cd;exports.isForecastChart=Lh;exports.isGradient=oh;exports.isIndicator=qa;exports.isIndicatorFusionWidget=uv;exports.isLaziable=Wr;exports.isLegendOnRight=Ln;exports.isLinearGradient=eh;exports.isMeasureColumn=Qe;exports.isNumber=Ur;exports.isPieChartFusionWidget=dv;exports.isPivotTableFusionWidget=Fn;exports.isPivotTableWidgetProps=hr;exports.isPivotWidget=av;exports.isRadialGradient=ih;exports.isRange=id;exports.isScatter=Za;exports.isScattermap=Ka;exports.isStyledColumn=vn;exports.isSupportedPluginFusionWidget=iv;exports.isSupportedWidgetType=ev;exports.isTable=ed;exports.isTableFusionWidget=nv;exports.isTableWidgetModel=sv;exports.isTextFusionWidget=Gn;exports.isTextWidget=lv;exports.isTextWidgetProps=wc;exports.isUndefined=mn;exports.jsx=se;exports.jsxs=li;exports.memoize=Sa;exports.merge=Re;exports.metaMap=Gr;exports.noop=mh;exports.normalizeAnyColumn=hd;exports.normalizeColumn=el;exports.normalizeMeasureColumn=il;exports.omitUndefinedAndEmpty=xi;exports.orderBy=ll;exports.over=bc;exports.parseISOWithTimezoneCheck=ln;exports.prepareStackLabels=Hh;exports.prepareSunburstSeries=pc;exports.prepareSunburstTooltip=dc;exports.prepareTreemapDataItems=zn;exports.prepareTreemapLevels=uc;exports.purify=Mh;exports.rangeData=Ph;exports.registerDataPointClickHandler=mv;exports.registerDataPointContextMenuHandler=yv;exports.registerDataPointsSelectedHandler=vv;exports.registerRenderToolbarHandler=bv;exports.registerStyles=rn;exports.requiredArgs=Ea;exports.rownumColumnName=bn;exports.safeCombine=nd;exports.safeMerge=zo;exports.scaleBrightness=oo;exports.scatterData=S0;exports.selectColumns=cl;exports.serializeStyles=Pa;exports.seriesSliceWarning=Si;exports.sortDirection=Jl;exports.splitColumn=lo;exports.stackTotalFontStyleDefault=no;exports.toCSSGradientFormat=If;exports.toColor=Ye;exports.toFinite=_a;exports.toGradientHighchartsFormat=rh;exports.toGray=Xl;exports.toInteger=La;exports.toInteger$1=ul;exports.toNumber=an;exports.tooltipSeparator=ii;exports.tooltipWrapper=Ci;exports.translateColumnToAttribute=sd;exports.translateColumnToMeasure=ad;exports.useInsertionEffectAlwaysWithSyncFallback=Na;exports.useTranslation=Qr;exports.widgetTypeSupportsJtd=rv;exports.withEmotionCache=Ra;exports.withGradientConversion=bi;exports.withPolarSpecificAxisSettings=Xh;exports.withXAxisLabelPositioning=qh;exports.withYAxisLabelPositioning=Kh;exports.withYAxisNormalizationForPolar=gy;
|
|
190
|
+
`)}}),la=(p,T,F,K,tt,it,rt)=>{var E,M;const st=[],ht=[];K.seriesValues.forEach(P=>{ht.push(P),st.push(P)}),K.rangeValues.forEach(([P,y])=>{ht.push(y),st.push(P)});const ft=_t(kt({},K),{y:ht,seriesToColorMap:K.seriesToColorMap}),_=Jo(_t(kt({},p),{type:"cartesian"}),T,F,ft,tt,it,rt),et={};_.options.series.forEach(P=>{et[P.name]=P});const G=_t(kt({},K),{y:st,seriesToColorMap:K.seriesToColorMap}),B=Jo(_t(kt({},p.seriesOther),{type:"cartesian"}),T,F,G,tt,it,rt),X={};B.options.series.forEach(P=>{X[P.name]=P});let U=1/0,$=-1/0,Z=-1,V=0;if(_.options.series.forEach((P,y)=>{if(K.breakBy.length===0&&y<K.seriesValues.length)Ti(P.name)&&(Z=ym(P,X,et)),P.zIndex=1,P.data.forEach(h=>{h.y&&h.y<U&&(U=h.y),h.y&&h.y>$&&($=h.y)});else{const h=X[P.name].data;P.yAxis=0;let f=0;K.breakBy.length===0&&(f=y-K.seriesValues.length);const m=K.rangeValues[f],u=m[0].column.name.indexOf("_")+1,v=m[1].column.name.substring(u),S=m[0].column.name.substring(u);P.type="arearange",Ti(P.name)&&vm(P,X),V=Math.max(P.data.length,V),P.data=P.data.map((w,x)=>{const c=_t(kt({},w),{low:h[x].y,high:w.y,y:void 0,upperPointName:v,lowerPointName:S});return c.low&&c.low<U&&(U=c.low),c.high&&c.high>$&&($=c.high),c}),Ti(P.name)&&bm(P,X)}}),_.options.xAxis||(_.options.xAxis=[]),Z>0&&xm(_.options.xAxis,Z,V),T==="arearange"&&F.lineType==="smooth"){const P="areasplinerange";_.options.chart.type=P,(E=_.options.navigator)!=null&&E.series&&(_.options.navigator.series.type=P)}T==="arearange"&&(_.options.tooltip=m0(!1,K,tt));const[z]=(M=_.options.yAxis)!=null?M:[],I=_t(kt({},z),{min:U,max:$});return _.options.yAxis=[I],_},y0={displayValue:"0"},Wi=(p,T)=>{if(T){for(let F=0;F<p.columns.length;F++)if(p.columns[F].name===T.column.name)return F}return-1},v0=(p,T)=>({x:Wi(T,p.x),y:Wi(T,p.y),breakByPoint:Wi(T,p.breakByPoint),breakByColor:Wi(T,p.breakByColor),size:Wi(T,p.size)}),ha=(p,T)=>T[p]||y0,b0=(p,T)=>{const F=new Set;return p.forEach(K=>{F.add(K[T].displayValue)}),Array.from(F.values())},ca=(p,T,F)=>{if(F&&!Qe(F))return b0(p,T)},pa=(p,T)=>[p,T],x0=(p,T)=>{const F=new Map(p==null?void 0:p.map(pa)),K=new Map(T==null?void 0:T.map(pa));return{xCategoriesMap:F,yCategoriesMap:K}},C0=(p,T)=>{var it,rt;const F=v0(p,T),K=p!=null&&p.breakByPoint&&Rt.isNumber(p.breakByPoint.column.type)?he((it=p.breakByPoint)==null?void 0:it.numberFormatConfig):void 0,tt=p!=null&&p.breakByColor&&(Qe(p.breakByColor)||Rt.isNumber(p.breakByColor.column.type))?he((rt=p.breakByColor)==null?void 0:rt.numberFormatConfig):void 0;return T.rows.map(st=>{const ht=kt({},st[F.breakByPoint]);K&&(ht.displayValue=Ce(K,ht.compareValue?ht.compareValue.value:parseFloat(ht.displayValue)));const ct=kt({},st[F.breakByColor]);return tt&&(ct.displayValue=Ce(tt,ct.compareValue?ct.compareValue.value:parseFloat(ct.displayValue))),{xAxis:ha(F.x,st),yAxis:ha(F.y,st),breakByPoint:ht,breakByColor:ct,size:st[F.size]}})},S0=(p,T)=>{const F=C0(p,T),{x:K,y:tt}=p,it=ca(F,"xAxis",K),rt=ca(F,"yAxis",tt);return{type:"scatter",scatterDataTable:F,xCategories:it,yCategories:rt}},Ke="#d1d1d7";function mc(p,T,F){if(F&&F.length&&!F.includes(T))return"";const K=typeof T=="number"?T:parseFloat(T);return isNaN(K)?`${T}`:p&&!Qe(p)&&!Rt.isNumber(p.column.type)?`${T}`:Ce(he(p==null?void 0:p.numberFormatConfig),K)}const w0=(p,T,F)=>[{type:p.type,startOnTick:!1,endOnTick:!(p.max||T),labels:{overflow:"justify",enabled:p.enabled&&p.labels,autoRotation:[-10,-20,-30,-40,-50,-60,-70,-80,-90],style:Se,formatter:function(){return mc(F==null?void 0:F.x,this.value,this.axis.categories)}},categories:T||void 0,gridLineWidth:p.enabled&&p.gridLine?1:0,gridLineColor:Ke,gridLineDashStyle:"Dot",title:{enabled:p.enabled&&p.titleEnabled,margin:25,text:p.title||null},lineColor:Ke,lineWidth:1,minorTickColor:Ke,minorGridLineColor:Ke,minorGridLineDashStyle:"Dot",minorTickLength:0,tickLength:0,tickColor:Ke,tickmarkPlacement:"on",tickInterval:p.enabled?p.tickInterval:null,min:p.enabled?p.min:null,max:p.enabled?p.max:null}],M0=(p,T,F)=>[{type:p.type,startOnTick:!1,endOnTick:!(p.max||T),title:{enabled:p.enabled&&p.titleEnabled,text:p.title||null},labels:{enabled:p.labels,autoRotation:[-10,-20,-30,-40,-50,-60,-70,-80,-90],style:Se,formatter:function(){return mc(F==null?void 0:F.y,this.value,this.axis.categories)}},categories:T||void 0,gridLineColor:Ke,gridLineDashStyle:"Dot",gridLineWidth:1,lineColor:Ke,lineWidth:1,maxPadding:.025,minPadding:.025,minorGridLineColor:Ke,minorGridLineDashStyle:"Dot",minorGridLineWidth:0,minorTickColor:Ke,minorTickWidth:0,opposite:!1,tickColor:Ke,tickWidth:0,tickmarkPlacement:"on",tickInterval:p.enabled?p.tickInterval:null,min:p.enabled?p.min:null,max:p.enabled?p.max:null}],yc={scatterDefaultSize:10,scatterBubbleMinSize:12,scatterBubbleMaxSize:48},A0=(p,T)=>{var it;if(!(p!=null&&p.enabled))return{enabled:!1};const F=Le(p),K=(it=p.rotation)!=null?it:0,tt=_t(kt(kt({align:"center",verticalAlign:"middle",types:{count:!1,relative:!0,totals:!0},rotation:K},_n(K)==="horizontal"?{y:-1}:null),F),{style:kt({fontWeight:"",textOutline:""},F.style)});return tt.formatter=function(){var et,G,B,X;const rt=this,st={maskedY:T.y,maskedX:T.x,maskedSize:T.size,maskedBreakByColor:T.breakByColor},ct=[T.y,T.x,T.size,T.breakByColor].find(U=>U&&Qe(U)),pt=(et=Object.entries(st).find(([,U])=>U===ct))==null?void 0:et[0],ft=((G=rt.point.custom)==null?void 0:G[pt])||"";if(isNaN(parseFloat(ft)))return ft;const _=he(ct==null?void 0:ct.numberFormatConfig);return`${(B=p==null?void 0:p.prefix)!=null?B:""}${Ce(_,parseFloat(ft))}${(X=p==null?void 0:p.suffix)!=null?X:""}`},tt},T0=(p,T)=>({minSize:T?p.scatterBubbleMinSize:p.scatterDefaultSize,maxSize:T?p.scatterBubbleMaxSize:p.scatterDefaultSize}),k0=(p,T)=>{var K;const F=!!T.size;return{bubble:kt({animation:!1},T0((K=p.markerSize)!=null?K:yc,F)),series:{allowPointSelect:!1,boostThreshold:0,dataLabels:A0(p.seriesLabels,T),stickyTracking:!1,turboThreshold:0}}},vc="#00cee6",qr=p=>{const T=p.rawValue==null?Number(p.displayValue):Number(p.rawValue);return Number.isNaN(T)||T===void 0?null:T},P0=p=>p?qr(p):1,L0=(p,T)=>{const{xAxis:F,yAxis:K,breakByPoint:tt,breakByColor:it,size:rt}=p,{xCategoriesMap:st,yCategoriesMap:ht}=T,ct=st.get(F.displayValue),pt=ht.get(K.displayValue),ft=F.blur||K.blur||(tt==null?void 0:tt.blur);return{x:ct!==void 0?ct:qr(F),y:pt!==void 0?pt:qr(K),z:P0(rt),maskedX:F.displayValue,maskedY:K.displayValue,maskedBreakByPoint:tt==null?void 0:tt.displayValue,maskedBreakByColor:it==null?void 0:it.displayValue,color:it==null?void 0:it.color,maskedSize:rt==null?void 0:rt.displayValue,selected:ft}},E0=(p,T,F)=>{var rt,st;const K=new Map;p.forEach(ht=>{var ct;if(ht.breakByColor){const{displayValue:pt,color:ft}=ht.breakByColor;if(pt&&!K.has(pt)){const _=ft||((ct=T==null?void 0:T.seriesToColorMap)==null?void 0:ct[pt]);K.set(pt,_)}}});const tt=new Map,it=Rt.isNumber((st=(rt=T==null?void 0:T.breakByColor)==null?void 0:rt.column)==null?void 0:st.type)?"number":"string";return Array.from(K).sort(([ht],[ct])=>rl(ht,ct,ol.ASC,it)).forEach(([ht,ct],pt)=>{tt.set(ht,{color:ct!=null?ct:Ue(F==null?void 0:F.palette.variantColors,pt),index:pt})}),tt},O0=(p,T,F)=>{const K={enabled:!0,fillOpacity:.7,lineWidth:1,states:{select:{fillOpacity:.3,lineWidth:1}}};return p.size?Array.from(p).map(([tt,{index:it,color:rt}])=>({data:[],index:it,marker:K,name:tt,showInLegend:!0,type:"bubble",color:rt})):[{data:[],index:0,marker:K,name:T,showInLegend:!!T,type:"bubble",color:gl(F)||vc}]},D0=(p,T)=>{const F=p.get(T);return F?F.index:0},j0=(p,T)=>{const F=Pn({getValueFromDataStructure:K=>{var tt;return parseFloat(`${(tt=K.custom)==null?void 0:tt.maskedBreakByColor}`)},applyColorToDataStructure:(K,tt)=>_t(kt({},K),{color:tt})});return p.map(K=>_t(kt({},K),{data:F(K.data,T)}))},I0=p=>{if(p&&Qe(p)&&p.color)return p.color},_0=(p,T,F,K)=>{for(const tt of T){const{x:it,y:rt,z:st,maskedX:ht,maskedY:ct,maskedBreakByPoint:pt,maskedSize:ft,color:_,maskedBreakByColor:et,selected:G}=L0(tt,F);if(it!==null&&rt!==null){const B=p[D0(K,et)],X={color:_||B.color||vc,x:it,y:rt,z:st,custom:{maskedX:ht,maskedY:ct,maskedBreakByPoint:pt,maskedBreakByColor:et,maskedSize:ft},selected:G};B.data.push(X)}}return p},N0=p=>{const T=p==null?void 0:p.breakByColor,F=p==null?void 0:p.breakByPoint;return T&&xe(T)||F&&xe(F)||""},B0=(p,T,F,K)=>{const tt=F==null?void 0:F.breakByColor,it=N0(F),rt=I0(tt),st=tt&&!Qe(tt)?E0(p,F,K):new Map;let ht=O0(st,it,rt);return ht=_0(ht,p,T,st),rt&&(ht=j0(ht,rt)),ht},R0=(p,T)=>T?p.slice(0,T):p,z0=(p,T,F,K,tt,it)=>{const rt=[],st=B0(p,T,F,tt).map(ht=>_t(kt({},ht),{dataLabels:K==null?void 0:K.seriesLabels}));return it&&st.length>it?(rt.push(Si(st.length,it)),{series:R0(st,it),alerts:rt}):{series:st,alerts:rt}},Eo=20,F0=30,G0=p=>kt({symbolHeight:12,symbolWidth:12,itemMarginBottom:0,itemMarginTop:0},fi(p)),W0=(p,T,F,K,tt)=>{const it=[],rt=ji(T,F),st=K,{scatterDataTable:ht}=p,{seriesCapacity:ct,categoriesCapacity:pt}=F.dataLimits;let{xCategories:ft,yCategories:_}=p;ft&&ft.length>pt&&(it.push(Zo("x",ft.length,pt)),ft=ft.slice(0,pt)),_&&_.length>pt&&(it.push(Zo("y",_.length,pt)),_=_.slice(0,pt));const{series:et,alerts:G}=z0(ht,x0(ft,_),st,F,tt,ct);return it.unshift(...G),{options:{title:{text:null},subtitle:{text:null},chart:{type:rt,spacing:[Eo,Eo,Eo,Eo],marginTop:F0,alignTicks:!1,polar:!1},xAxis:w0(F.xAxis,ft==null?void 0:ft.slice(0,pt),st),yAxis:M0(F.yAxis,_==null?void 0:_.slice(0,pt),st),legend:G0(F.legend),series:et,plotOptions:k0(F,st),tooltip:mm(st)},alerts:it}},H0=(p,T,F,K,tt,it,rt)=>{switch(p.type){case"range":return la(p,T,F,K,tt,it,rt);case"cartesian":{const st=K,ht=Lh(st)?la(_t(kt({},p),{type:"range"}),T,F,Eh(st),tt,it,rt):Jo(p,T,F,st,tt,it,rt);return Sm(ht.options.series),ht}case"categorical":return g0(p,T,F,K,tt,it);case"scatter":return W0(p,T,F,K,it);case"boxplot":return Ym(p,F,K,tt,it);default:throw new Rt.TranslatableError("errors.unexpectedChartType",{chartType:p.type})}},X0={legend:{enabled:!0,position:"bottom"},navigator:{enabled:!0},markers:{enabled:!1,fill:"filled",size:"small"},seriesLabels:{enabled:!1,rotation:0},xAxis:{enabled:!0,gridLines:!1,isIntervalEnabled:!1,labels:{enabled:!0},logarithmic:!1,title:{enabled:!1,text:"X Axis title"}},yAxis:{enabled:!0,gridLines:!0,isIntervalEnabled:!1,labels:{enabled:!0},logarithmic:!1,title:{enabled:!1,text:"Y Axis title"}},y2Axis:{enabled:!0,gridLines:!0,isIntervalEnabled:!1,labels:{enabled:!0},logarithmic:!1,title:{enabled:!1,text:"Y2 Axis title"}},convolution:{enabled:!1,selectedConvolutionType:"byPercentage",minimalIndependentSlicePercentage:3,independentSlicesCount:7},labels:{categories:!0,enabled:!0,percent:!0,decimals:!1,value:!1}},Y0=()=>Rt.cloneDeep(X0);function U0(p){return Rt.flatRest(function(T){return T=Rt.arrayMap(T,Rt.baseUnary(Rt.baseIteratee)),Rt.baseRest(function(F){var K=this;return p(T,function(tt){return Rt.apply(tt,K,F)})})})}var bc=U0(Rt.arrayMap);function lr(p,T=!1){const F=p.filter(K=>Rt.isFunction(K));return T?nr(F):bc(F)}function xc(...p){return(T,F)=>p.reduce((K,tt)=>{var it;return tt&&(it=tt(T,K))!=null?it:K},F)}function V0(...p){return T=>p.reduce((F,K)=>{var tt;return K&&(tt=K(F))!=null?tt:F},T)}function $0(...p){return T=>p.reduce((F,K)=>{if(!K)return F;const tt=K(F);return tt!==null?tt:F},T)}const Cc={"chart/line":"line","chart/area":"area","chart/bar":"bar","chart/column":"column","chart/polar":"polar","chart/pie":"pie","chart/funnel":"funnel",treemap:"treemap",sunburst:"sunburst","chart/scatter":"scatter",indicator:"indicator","chart/boxplot":"boxplot","map/scatter":"scattermap","map/area":"areamap",tablewidget:"table",tablewidgetagg:"table",heatmap:"calendar-heatmap"},Z0=Object.entries(Cc).reduce((p,[T,F])=>(p[F]=T,p),{});function K0(p){return Cc[p]}function q0(p){return Z0[p]}function J0(p,T){if(p==="chart"){if(!T)throw new Error("chartType is required for chart widget type");return q0(T)}if(p==="pivot")return"pivot2";if(p==="custom")return"custom";if(p==="text")return"richtexteditor";throw new Rt.TranslatableError("errors.widgetModel.unsupportedWidgetType",{widgetType:p})}function Q0(p){if(Fn(p))return"pivot";if(hv(p))return"custom";if(Gn(p))return"text";if(Sc(p))return"chart";throw new Rt.TranslatableError("errors.widgetModel.unsupportedFusionWidgetType",{fusionWidgetType:p})}function tv(p){return{"area/basic":"area/basic","area/stacked":"area/stacked","area/stacked100":"area/stacked100","area/spline":"area/spline","area/stackedspline":"area/stackedspline","area/stackedspline100":"area/stackedspline100","bar/classic":"bar/classic","bar/stacked":"bar/stacked","bar/stacked100":"bar/stacked100","column/classic":"column/classic","column/stackedcolumn":"column/stackedcolumn","column/stackedcolumn100":"column/stackedcolumn100","line/basic":"line/basic","line/spline":"line/spline","pie/classic":"pie/classic","pie/donut":"pie/donut","pie/ring":"pie/ring","column/polar":"polar/column","area/polar":"polar/area","line/polar":"polar/line","indicator/numeric":"indicator/numeric","indicator/gauge":"indicator/gauge",treemap:"treemap",sunburst:"sunburst","boxplot/full":"boxplot/full","boxplot/hollow":"boxplot/hollow","map/scatter":"scattermap"}[p]}function ev(p){return["chart/line","chart/area","chart/bar","chart/column","chart/polar","chart/pie","chart/funnel","treemap","sunburst","chart/scatter","indicator","tablewidget","tablewidgetagg","pivot","pivot2","chart/boxplot","map/scatter","map/area","richtexteditor","heatmap"].includes(p)}function iv(p){return p==="WidgetsTabber"}const ov=["chart/pie","indicator","richtexteditor","chart/column","chart/bar","chart/line","chart/area","pivot","pivot2","chart/scatter","chart/polar"];function rv(p){return ov.includes(p)}function nv(p){return p==="tablewidget"||p==="tablewidgetagg"}function sv(p){return fv(p.widgetType)&&p.chartType==="table"}function Fn(p){return p==="pivot"||p==="pivot2"}function av(p){return p==="pivot"}function Gn(p){return p==="richtexteditor"}function lv(p){return p==="text"}function hv(p){return p==="custom"}function cv(p){return p==="custom"}function Sc(p){return!Fn(p)&&!Gn(p)}function pv(p){return p.startsWith("chart")}function dv(p){return p==="chart/pie"}function uv(p){return p==="indicator"}function fv(p){return p==="chart"}function wc(p){return p.widgetType==="text"}function hr(p){return p.widgetType==="pivot"}function Mc(p){return p.widgetType==="custom"}function cr(p){return p.widgetType==="chart"}function gv(p){return hr(p)?"pivot":Mc(p)?"custom":wc(p)?"text":p.chartType}function mv(p,T){(cr(p)||hr(p))&&(p.onDataPointClick=lr([p.onDataPointClick,T]))}function yv(p,T){!cr(p)&&!hr(p)||(p.onDataPointContextMenu=lr([p.onDataPointContextMenu,T]))}function vv(p,T){cr(p)&&(p.onDataPointsSelected=lr([p.onDataPointsSelected,T]))}function bv(p,T){var K;const F=p.styleOptions;p.styleOptions=_t(kt({},F),{header:_t(kt({},F==null?void 0:F.header),{renderToolbar:xc((K=F==null?void 0:F.header)==null?void 0:K.renderToolbar,T)})})}function xv(p,T){var tt;const F=p.find(it=>it.name===T);return((tt=F==null?void 0:F.items)!=null?tt:[]).filter(it=>!it.disabled)}function Ac(p){return p.parent?Ac(p.parent):p}const Cv=p=>Va(p)?"cartesian":$a(p)?"categorical":Za(p)?"scatter":Ka(p)?"scattermap":qa(p)?"indicator":tl(p)?"areamap":Qa(p)?"boxplot":"table";exports.ALL_CHART_TYPES=rd;exports.BOXPLOT_CHART_TYPES=fn;exports.CALENDAR_HEATMAP_COLORS=Ig;exports.CALENDAR_HEATMAP_DATA_TYPE=Bg;exports.CALENDAR_HEATMAP_DEFAULTS=jg;exports.CALENDAR_HEATMAP_SIZING=_g;exports.CALENDAR_TYPOGRAPHY=Ng;exports.CARTESIAN_CHART_TYPES=pn;exports.CATEGORICAL_CHART_TYPES=dn;exports.CacheProvider=qp;exports.Color=ee;exports.DEFAULT_BACKGROUND_COLOR=Rc;exports.DEFAULT_COLOR=Fo;exports.DEFAULT_TEXT_COLOR=tn;exports.DefaultFunnelDirection=ph;exports.DefaultFunnelSeriesLabels=lh;exports.DefaultFunnelSize=hh;exports.DefaultFunnelType=ch;exports.DefaultPieType=fh;exports.ERROR_COLOR=zc;exports.Emotion$1=cn;exports.FULL_MONTH_DATE_FORMAT=Rg;exports.Fragment=Fa;exports.GradientDirections=Lf;exports.Highcharts=vh;exports.I18nContext=ga;exports.NOT_AVAILABLE_DATA_VALUE=en;exports.NOT_AVAILABLE_TEXT=Fc;exports.QUERY_DEFAULT_LIMIT=Nc;exports.RANGE_CHART_TYPES=gn;exports.REFERENCE_SUNDAY_DATE=Wg;exports.RadialGradientPresets=Ef;exports.SCATTER_CHART_TYPES=un;exports.SHORT_MONTH_DATE_FORMAT=zg;exports.SINGLE_LETTER_DAY_DATE_FORMAT=Fg;exports.SYSTEM_TENANT_NAME=Bc;exports.THREE_LETTER_DAY_DATE_FORMAT=Gg;exports.TRIANGLE_COLOR_ADJUSTMENT=cf;exports.ThemeContext=za;exports.ViewType=jn;exports.advancedAnalyticsData=Am;exports.applyFormat=vi;exports.applyFormatPlainText=Ce;exports.applyOpacity=Ul;exports.baseTrim=Ca;exports.buildCategoriesMeta=Vh;exports.buildXAxisSettings=$h;exports.buildYAxisMeta=Uh;exports.buildYAxisMinMax=$r;exports.cartesianData=zr;exports.categoriesSliceWarning=Zo;exports.colorChineseSilver=oi;exports.colorWhite=ri;exports.combineHandlers=lr;exports.commonjsGlobal=Hi;exports.composeTextWidgetToolbarHandlers=V0;exports.composeTitleHandlers=$0;exports.composeToolbarHandlers=xc;exports.createCache=Oa;exports.createCompareValue=Ji;exports.createDataColoringFunction=Pn;exports.createDataTableFromData=pd;exports.createEmotionProps=hn;exports.createLinearGradient=Of;exports.createRadialGradient=Df;exports.defaultScatterMarkerSize=yc;exports.deriveChartFamily=Cv;exports.determineHighchartsChartType=ji;exports.emptyTable=Sn;exports.extractForecastMeasures=Mm;exports.extractTrendMeasures=wm;exports.flow=nr;exports.formatFunnelChartData=Jh;exports.formatTooltipValue=le;exports.fromHighchartsGradientFormat=jf;exports.getAlerts=Qh;exports.getAugmentedNamespace=Ec;exports.getCartesianChartOptions=Jo;exports.getCartesianTooltipSettings=Gh;exports.getCategoryTooltipSettings=Bn;exports.getChartSubtype=tv;exports.getChartType=K0;exports.getColoringServiceByColorOptions=$l;exports.getColumnByName=si;exports.getColumnsByName=Qi;exports.getCompleteNumberFormatConfig=he;exports.getDarkFactor=uo;exports.getData=On;exports.getDataOptionGranularity=yn;exports.getDataOptionTitle=xe;exports.getDefaultDateFormat=Dn;exports.getDefaultExportFromCjs=Jr;exports.getDefaultStyleOptions=Y0;exports.getEnabledPanelItems=xv;exports.getFunnelPlotOptions=uh;exports.getFusionWidgetType=J0;exports.getIndexedRows=Cn;exports.getInternalWidgetType=gv;exports.getInterpolatorFn=Vl;exports.getLegendSettings=fi;exports.getOrderedXValues=Ql;exports.getPaletteColor=Ue;exports.getPieAlerts=ac;exports.getPieConvolutionSeries=cc;exports.getPiePlotOptions=gh;exports.getPieSeries=hc;exports.getRegisteredStyles=Da;exports.getRootPanelItem=Ac;exports.getSlightlyDifferentColor=gf;exports.getTreemapTooltipSettings=Rn;exports.getUniformColorOptionsFromString=wn;exports.getValue=pl;exports.getValues=Di;exports.getWidgetType=Q0;exports.getYAxisSettings=Wh;exports.groupBy=hl;exports.hasOwn=ao;exports.hasSecondaryYAxis=Zh;exports.highchartsOptionsService=H0;exports.insertStyles=ja;exports.isAreamap=tl;exports.isBlurred=dl;exports.isBoxplot=Qa;exports.isCalendarHeatmap=od;exports.isCartesian=Va;exports.isCategorical=$a;exports.isCell=sl;exports.isChartFusionWidget=Sc;exports.isChartTypeFusionWidget=pv;exports.isChartWidgetProps=cr;exports.isContinuousDatetimeXAxis=Yh;exports.isCustomWidget=cv;exports.isCustomWidgetProps=Mc;exports.isDataTableEmpty=cd;exports.isForecastChart=Lh;exports.isGradient=oh;exports.isIndicator=qa;exports.isIndicatorFusionWidget=uv;exports.isLaziable=Wr;exports.isLegendOnRight=Ln;exports.isLinearGradient=eh;exports.isMeasureColumn=Qe;exports.isNumber=Ur;exports.isPieChartFusionWidget=dv;exports.isPivotTableFusionWidget=Fn;exports.isPivotTableWidgetProps=hr;exports.isPivotWidget=av;exports.isRadialGradient=ih;exports.isRange=id;exports.isScatter=Za;exports.isScattermap=Ka;exports.isStyledColumn=vn;exports.isSupportedPluginFusionWidget=iv;exports.isSupportedWidgetType=ev;exports.isTable=ed;exports.isTableFusionWidget=nv;exports.isTableWidgetModel=sv;exports.isTextFusionWidget=Gn;exports.isTextWidget=lv;exports.isTextWidgetProps=wc;exports.isUndefined=mn;exports.jsx=se;exports.jsxs=li;exports.memoize=La;exports.merge=Re;exports.metaMap=Gr;exports.noop=mh;exports.normalizeAnyColumn=hd;exports.normalizeColumn=el;exports.normalizeMeasureColumn=il;exports.omitUndefinedAndEmpty=xi;exports.orderBy=ll;exports.over=bc;exports.parseISOWithTimezoneCheck=rn;exports.prepareStackLabels=Hh;exports.prepareSunburstSeries=pc;exports.prepareSunburstTooltip=dc;exports.prepareTreemapDataItems=zn;exports.prepareTreemapLevels=uc;exports.purify=Mh;exports.rangeData=Ph;exports.registerDataPointClickHandler=mv;exports.registerDataPointContextMenuHandler=yv;exports.registerDataPointsSelectedHandler=vv;exports.registerRenderToolbarHandler=bv;exports.registerStyles=ln;exports.requiredArgs=ya;exports.rownumColumnName=bn;exports.safeCombine=nd;exports.safeMerge=zo;exports.scaleBrightness=oo;exports.scatterData=S0;exports.selectColumns=cl;exports.serializeStyles=_a;exports.seriesSliceWarning=Si;exports.sortDirection=Jl;exports.splitColumn=lo;exports.stackTotalFontStyleDefault=no;exports.toCSSGradientFormat=If;exports.toColor=Ye;exports.toFinite=Sa;exports.toGradientHighchartsFormat=rh;exports.toGray=Xl;exports.toInteger=ma;exports.toInteger$1=ul;exports.toNumber=on;exports.tooltipSeparator=ii;exports.tooltipWrapper=Ci;exports.translateColumnToAttribute=sd;exports.translateColumnToMeasure=ad;exports.useInsertionEffectAlwaysWithSyncFallback=Na;exports.useTranslation=Qr;exports.widgetTypeSupportsJtd=rv;exports.withEmotionCache=Ra;exports.withGradientConversion=bi;exports.withPolarSpecificAxisSettings=Xh;exports.withXAxisLabelPositioning=qh;exports.withYAxisLabelPositioning=Kh;exports.withYAxisNormalizationForPolar=gy;
|