@sisense/sdk-ui 1.16.0 → 1.17.1

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.
Files changed (65) hide show
  1. package/dist/ai.cjs +1 -1
  2. package/dist/ai.js +28 -28
  3. package/dist/analytics-composer.cjs +1 -1
  4. package/dist/analytics-composer.js +1 -1
  5. package/dist/app/client-application.d.ts +22 -2
  6. package/dist/chart-data/types.d.ts +1 -1
  7. package/dist/chart-data-options/types.d.ts +4 -2
  8. package/dist/chart-data-processor/table-processor.d.ts +1 -1
  9. package/dist/chart-options-processor/common-highcharts-option-service.d.ts +2 -1
  10. package/dist/charts/map-charts/scattermap/utils/map.d.ts +6 -2
  11. package/dist/charts/map-charts/scattermap/utils/markers.d.ts +1 -1
  12. package/dist/charts/table/data-table-wrapper.d.ts +1 -1
  13. package/dist/charts/table/helpers/calc-column-widths.d.ts +1 -1
  14. package/dist/charts/table/types.d.ts +0 -1
  15. package/dist/common/components/loading-indicator.d.ts +13 -0
  16. package/dist/common/hooks/use-has-changed.d.ts +1 -1
  17. package/dist/common/hooks/use-tracking.d.ts +7 -0
  18. package/dist/common-filters/selection-utils.d.ts +1 -1
  19. package/dist/common-filters/types.d.ts +9 -3
  20. package/dist/common-filters/utils.d.ts +0 -4
  21. package/dist/dashboard/dashboard-by-id.d.ts +6 -3
  22. package/dist/dashboard/dashboard.d.ts +6 -4
  23. package/dist/dashboard/index.d.ts +1 -1
  24. package/dist/dashboard/types.d.ts +11 -6
  25. package/dist/dashboard-widget/translate-widget-drilldown-options.d.ts +2 -2
  26. package/dist/dashboard-widget/types.d.ts +3 -0
  27. package/dist/decorators/component-decorators/with-tracking/error-tracker.d.ts +3 -0
  28. package/dist/filters/components/filters-panel/filters-panel.d.ts +2 -1
  29. package/dist/get-widget-options-D4UHj7o5.cjs +198 -0
  30. package/dist/get-widget-options-D88MkBTJ.js +37924 -0
  31. package/dist/index.cjs +181 -207
  32. package/dist/index.d.ts +3 -3
  33. package/dist/index.js +20412 -24315
  34. package/dist/models/dashboard/get-dashboard-model.d.ts +1 -1
  35. package/dist/models/dashboard/types.d.ts +17 -3
  36. package/dist/models/widget/get-widget-model.d.ts +1 -1
  37. package/dist/models/widget/translate-widget.d.ts +1 -0
  38. package/dist/pivot-table/helpers/prepare-pivot-styling-props.d.ts +16 -15
  39. package/dist/pivot-table/{use-apply-pivot-table-formatting.d.ts → hooks/use-apply-pivot-table-formatting.d.ts} +1 -1
  40. package/dist/pivot-table/{use-get-pivot-table-query.d.ts → hooks/use-get-pivot-table-query.d.ts} +2 -2
  41. package/dist/pivot-table/hooks/use-pivot-data-loading.d.ts +15 -0
  42. package/dist/pivot-table/hooks/use-pivot-data-service.d.ts +10 -0
  43. package/dist/pivot-table/{use-pivot-table-data-options-internal.d.ts → hooks/use-pivot-table-data-options-internal.d.ts} +2 -2
  44. package/dist/pivot-table/hooks/use-render-pivot.d.ts +24 -0
  45. package/dist/pivot-table/pivot-table.d.ts +2 -2
  46. package/dist/props.d.ts +32 -5
  47. package/dist/sisense-context/sisense-context.d.ts +2 -0
  48. package/dist/theme-provider/default-theme-settings.d.ts +2 -0
  49. package/dist/types.d.ts +38 -0
  50. package/dist/useQuery-CFlf48eQ.cjs +433 -0
  51. package/dist/{useQuery-DeK1uDeJ.js → useQuery-DLPVGDKo.js} +12093 -11610
  52. package/dist/utils/color/color-interpolation.d.ts +9 -0
  53. package/dist/utils/combine-handlers.d.ts +3 -0
  54. package/dist/utils/filters.d.ts +13 -1
  55. package/dist/widgets/common/drilldown-connector.d.ts +19 -0
  56. package/dist/widgets/common/{custom-drilldown.d.ts → use-drilldown.d.ts} +7 -3
  57. package/dist/widgets/use-highlight-selection.d.ts +10 -0
  58. package/package.json +7 -8
  59. package/dist/filters/utils.d.ts +0 -8
  60. package/dist/get-widget-options-D008Wku-.cjs +0 -172
  61. package/dist/get-widget-options-Xskksk4X.js +0 -34154
  62. package/dist/useQuery-aWnvBOTu.cjs +0 -433
  63. package/dist/widgets/chart-widget-deprecated.d.ts +0 -30
  64. package/dist/widgets/common/drilldown.d.ts +0 -25
  65. package/dist/widgets/common/use-widget-drilldown.d.ts +0 -2
@@ -1,172 +0,0 @@
1
- "use strict";var Ud=Object.defineProperty,Xd=Object.defineProperties;var Yd=Object.getOwnPropertyDescriptors;var Ar=Object.getOwnPropertySymbols;var js=Object.prototype.hasOwnProperty,Is=Object.prototype.propertyIsEnumerable;var Rt=Math.pow,Uo=(t,n,S)=>n in t?Ud(t,n,{enumerable:!0,configurable:!0,writable:!0,value:S}):t[n]=S,At=(t,n)=>{for(var S in n||(n={}))js.call(n,S)&&Uo(t,S,n[S]);if(Ar)for(var S of Ar(n))Is.call(n,S)&&Uo(t,S,n[S]);return t},jt=(t,n)=>Xd(t,Yd(n));var Te=(t,n)=>{var S={};for(var B in t)js.call(t,B)&&n.indexOf(B)<0&&(S[B]=t[B]);if(t!=null&&Ar)for(var B of Ar(t))n.indexOf(B)<0&&Is.call(t,B)&&(S[B]=t[B]);return S};var le=(t,n,S)=>(Uo(t,typeof n!="symbol"?n+"":n,S),S);const Vd={type:"logger",log(t){this.output("log",t)},warn(t){this.output("warn",t)},error(t){this.output("error",t)},output(t,n){console&&console[t]&&console[t].apply(console,n)}};class Zr{constructor(n){let S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(n,S)}init(n){let S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=S.prefix||"i18next:",this.logger=n||Vd,this.options=S,this.debug=S.debug}log(){for(var n=arguments.length,S=new Array(n),B=0;B<n;B++)S[B]=arguments[B];return this.forward(S,"log","",!0)}warn(){for(var n=arguments.length,S=new Array(n),B=0;B<n;B++)S[B]=arguments[B];return this.forward(S,"warn","",!0)}error(){for(var n=arguments.length,S=new Array(n),B=0;B<n;B++)S[B]=arguments[B];return this.forward(S,"error","")}deprecate(){for(var n=arguments.length,S=new Array(n),B=0;B<n;B++)S[B]=arguments[B];return this.forward(S,"warn","WARNING DEPRECATED: ",!0)}forward(n,S,B,K){return K&&!this.debug?null:(typeof n[0]=="string"&&(n[0]=`${B}${this.prefix} ${n[0]}`),this.logger[S](n))}create(n){return new Zr(this.logger,At({prefix:`${this.prefix}:${n}:`},this.options))}clone(n){return n=n||this.options,n.prefix=n.prefix||this.prefix,new Zr(this.logger,n)}}var He=new Zr;class go{constructor(){this.observers={}}on(n,S){return n.split(" ").forEach(B=>{this.observers[B]=this.observers[B]||[],this.observers[B].push(S)}),this}off(n,S){if(this.observers[n]){if(!S){delete this.observers[n];return}this.observers[n]=this.observers[n].filter(B=>B!==S)}}emit(n){for(var S=arguments.length,B=new Array(S>1?S-1:0),K=1;K<S;K++)B[K-1]=arguments[K];this.observers[n]&&[].concat(this.observers[n]).forEach(it=>{it(...B)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(it=>{it.apply(it,[n,...B])})}}function Yi(){let t,n;const S=new Promise((B,K)=>{t=B,n=K});return S.resolve=t,S.reject=n,S}function _s(t){return t==null?"":""+t}function $d(t,n,S){t.forEach(B=>{n[B]&&(S[B]=n[B])})}function Bn(t,n,S){function B(it){return it&&it.indexOf("###")>-1?it.replace(/###/g,"."):it}function K(){return!t||typeof t=="string"}const J=typeof n!="string"?[].concat(n):n.split(".");for(;J.length>1;){if(K())return{};const it=B(J.shift());!t[it]&&S&&(t[it]=new S),Object.prototype.hasOwnProperty.call(t,it)?t=t[it]:t={}}return K()?{}:{obj:t,k:B(J.shift())}}function Ns(t,n,S){const{obj:B,k:K}=Bn(t,n,Object);B[K]=S}function Zd(t,n,S,B){const{obj:K,k:J}=Bn(t,n,Object);K[J]=K[J]||[],K[J].push(S)}function qr(t,n){const{obj:S,k:B}=Bn(t,n);if(S)return S[B]}function qd(t,n,S){const B=qr(t,S);return B!==void 0?B:qr(n,S)}function Yl(t,n,S){for(const B in n)B!=="__proto__"&&B!=="constructor"&&(B in t?typeof t[B]=="string"||t[B]instanceof String||typeof n[B]=="string"||n[B]instanceof String?S&&(t[B]=n[B]):Yl(t[B],n[B],S):t[B]=n[B]);return t}function Si(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var Kd={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function Jd(t){return typeof t=="string"?t.replace(/[&<>"'\/]/g,n=>Kd[n]):t}const Qd=[" ",",","?","!",";"];function tu(t,n,S){n=n||"",S=S||"";const B=Qd.filter(it=>n.indexOf(it)<0&&S.indexOf(it)<0);if(B.length===0)return!0;const K=new RegExp(`(${B.map(it=>it==="?"?"\\?":it).join("|")})`);let J=!K.test(t);if(!J){const it=t.indexOf(S);it>0&&!K.test(t.substring(0,it))&&(J=!0)}return J}function Kr(t,n){let S=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!t)return;if(t[n])return t[n];const B=n.split(S);let K=t;for(let J=0;J<B.length;++J){if(!K||typeof K[B[J]]=="string"&&J+1<B.length)return;if(K[B[J]]===void 0){let it=2,nt=B.slice(J,J+it).join(S),at=K[nt];for(;at===void 0&&B.length>J+it;)it++,nt=B.slice(J,J+it).join(S),at=K[nt];if(at===void 0)return;if(at===null)return null;if(n.endsWith(nt)){if(typeof at=="string")return at;if(nt&&typeof at[nt]=="string")return at[nt]}const lt=B.slice(J+it).join(S);return lt?Kr(at,lt,S):void 0}K=K[B[J]]}return K}function Jr(t){return t&&t.indexOf("_")>0?t.replace("_","-"):t}class Bs extends go{constructor(n){let S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=n||{},this.options=S,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(n){this.options.ns.indexOf(n)<0&&this.options.ns.push(n)}removeNamespaces(n){const S=this.options.ns.indexOf(n);S>-1&&this.options.ns.splice(S,1)}getResource(n,S,B){let K=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const J=K.keySeparator!==void 0?K.keySeparator:this.options.keySeparator,it=K.ignoreJSONStructure!==void 0?K.ignoreJSONStructure:this.options.ignoreJSONStructure;let nt=[n,S];B&&typeof B!="string"&&(nt=nt.concat(B)),B&&typeof B=="string"&&(nt=nt.concat(J?B.split(J):B)),n.indexOf(".")>-1&&(nt=n.split("."));const at=qr(this.data,nt);return at||!it||typeof B!="string"?at:Kr(this.data&&this.data[n]&&this.data[n][S],B,J)}addResource(n,S,B,K){let J=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const it=J.keySeparator!==void 0?J.keySeparator:this.options.keySeparator;let nt=[n,S];B&&(nt=nt.concat(it?B.split(it):B)),n.indexOf(".")>-1&&(nt=n.split("."),K=S,S=nt[1]),this.addNamespaces(S),Ns(this.data,nt,K),J.silent||this.emit("added",n,S,B,K)}addResources(n,S,B){let K=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const J in B)(typeof B[J]=="string"||Object.prototype.toString.apply(B[J])==="[object Array]")&&this.addResource(n,S,J,B[J],{silent:!0});K.silent||this.emit("added",n,S,B)}addResourceBundle(n,S,B,K,J){let it=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},nt=[n,S];n.indexOf(".")>-1&&(nt=n.split("."),K=B,B=S,S=nt[1]),this.addNamespaces(S);let at=qr(this.data,nt)||{};K?Yl(at,B,J):at=At(At({},at),B),Ns(this.data,nt,at),it.silent||this.emit("added",n,S,B)}removeResourceBundle(n,S){this.hasResourceBundle(n,S)&&delete this.data[n][S],this.removeNamespaces(S),this.emit("removed",n,S)}hasResourceBundle(n,S){return this.getResource(n,S)!==void 0}getResourceBundle(n,S){return S||(S=this.options.defaultNS),this.options.compatibilityAPI==="v1"?At({},this.getResource(n,S)):this.getResource(n,S)}getDataByLanguage(n){return this.data[n]}hasLanguageSomeTranslations(n){const S=this.getDataByLanguage(n);return!!(S&&Object.keys(S)||[]).find(K=>S[K]&&Object.keys(S[K]).length>0)}toJSON(){return this.data}}var Vl={processors:{},addPostProcessor(t){this.processors[t.name]=t},handle(t,n,S,B,K){return t.forEach(J=>{this.processors[J]&&(n=this.processors[J].process(n,S,B,K))}),n}};const Rs={};class Qr extends go{constructor(n){let S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),$d(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],n,this),this.options=S,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=He.create("translator")}changeLanguage(n){n&&(this.language=n)}exists(n){let S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(n==null)return!1;const B=this.resolve(n,S);return B&&B.res!==void 0}extractFromKey(n,S){let B=S.nsSeparator!==void 0?S.nsSeparator:this.options.nsSeparator;B===void 0&&(B=":");const K=S.keySeparator!==void 0?S.keySeparator:this.options.keySeparator;let J=S.ns||this.options.defaultNS||[];const it=B&&n.indexOf(B)>-1,nt=!this.options.userDefinedKeySeparator&&!S.keySeparator&&!this.options.userDefinedNsSeparator&&!S.nsSeparator&&!tu(n,B,K);if(it&&!nt){const at=n.match(this.interpolator.nestingRegexp);if(at&&at.length>0)return{key:n,namespaces:J};const lt=n.split(B);(B!==K||B===K&&this.options.ns.indexOf(lt[0])>-1)&&(J=lt.shift()),n=lt.join(K)}return typeof J=="string"&&(J=[J]),{key:n,namespaces:J}}translate(n,S,B){if(typeof S!="object"&&this.options.overloadTranslationOptionHandler&&(S=this.options.overloadTranslationOptionHandler(arguments)),typeof S=="object"&&(S=At({},S)),S||(S={}),n==null)return"";Array.isArray(n)||(n=[String(n)]);const K=S.returnDetails!==void 0?S.returnDetails:this.options.returnDetails,J=S.keySeparator!==void 0?S.keySeparator:this.options.keySeparator,{key:it,namespaces:nt}=this.extractFromKey(n[n.length-1],S),at=nt[nt.length-1],lt=S.lng||this.language,pt=S.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(lt&&lt.toLowerCase()==="cimode"){if(pt){const $=S.nsSeparator||this.options.nsSeparator;return K?{res:`${at}${$}${it}`,usedKey:it,exactUsedKey:it,usedLng:lt,usedNS:at}:`${at}${$}${it}`}return K?{res:it,usedKey:it,exactUsedKey:it,usedLng:lt,usedNS:at}:it}const ft=this.resolve(n,S);let N=ft&&ft.res;const rt=ft&&ft.usedKey||it,W=ft&&ft.exactUsedKey||it,R=Object.prototype.toString.apply(N),U=["[object Number]","[object Function]","[object RegExp]"],Y=S.joinArrays!==void 0?S.joinArrays:this.options.joinArrays,Z=!this.i18nFormat||this.i18nFormat.handleAsObject;if(Z&&N&&(typeof N!="string"&&typeof N!="boolean"&&typeof N!="number")&&U.indexOf(R)<0&&!(typeof Y=="string"&&R==="[object Array]")){if(!S.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const $=this.options.returnedObjectHandler?this.options.returnedObjectHandler(rt,N,jt(At({},S),{ns:nt})):`key '${it} (${this.language})' returned an object instead of string.`;return K?(ft.res=$,ft):$}if(J){const $=R==="[object Array]",G=$?[]:{},D=$?W:rt;for(const E in N)if(Object.prototype.hasOwnProperty.call(N,E)){const x=`${D}${J}${E}`;G[E]=this.translate(x,jt(At({},S),{joinArrays:!1,ns:nt})),G[E]===x&&(G[E]=N[E])}N=G}}else if(Z&&typeof Y=="string"&&R==="[object Array]")N=N.join(Y),N&&(N=this.extendTranslation(N,n,S,B));else{let $=!1,G=!1;const D=S.count!==void 0&&typeof S.count!="string",E=Qr.hasDefaultValue(S),x=D?this.pluralResolver.getSuffix(lt,S.count,S):"",T=S.ordinal&&D?this.pluralResolver.getSuffix(lt,S.count,{ordinal:!1}):"",u=S[`defaultValue${x}`]||S[`defaultValue${T}`]||S.defaultValue;!this.isValidLookup(N)&&E&&($=!0,N=u),this.isValidLookup(N)||(G=!0,N=it);const g=(S.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&G?void 0:N,v=E&&u!==N&&this.options.updateMissing;if(G||$||v){if(this.logger.log(v?"updateKey":"missingKey",lt,at,it,v?u:N),J){const L=this.resolve(it,jt(At({},S),{keySeparator:!1}));L&&L.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let y=[];const C=this.languageUtils.getFallbackCodes(this.options.fallbackLng,S.lng||this.language);if(this.options.saveMissingTo==="fallback"&&C&&C[0])for(let L=0;L<C.length;L++)y.push(C[L]);else this.options.saveMissingTo==="all"?y=this.languageUtils.toResolveHierarchy(S.lng||this.language):y.push(S.lng||this.language);const P=(L,M,f)=>{const b=E&&f!==N?f:g;this.options.missingKeyHandler?this.options.missingKeyHandler(L,at,M,b,v,S):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(L,at,M,b,v,S),this.emit("missingKey",L,at,M,N)};this.options.saveMissing&&(this.options.saveMissingPlurals&&D?y.forEach(L=>{this.pluralResolver.getSuffixes(L,S).forEach(M=>{P([L],it+M,S[`defaultValue${M}`]||u)})}):P(y,it,u))}N=this.extendTranslation(N,n,S,ft,B),G&&N===it&&this.options.appendNamespaceToMissingKey&&(N=`${at}:${it}`),(G||$)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?N=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${at}:${it}`:it,$?N:void 0):N=this.options.parseMissingKeyHandler(N))}return K?(ft.res=N,ft):N}extendTranslation(n,S,B,K,J){var it=this;if(this.i18nFormat&&this.i18nFormat.parse)n=this.i18nFormat.parse(n,At(At({},this.options.interpolation.defaultVariables),B),K.usedLng,K.usedNS,K.usedKey,{resolved:K});else if(!B.skipInterpolation){B.interpolation&&this.interpolator.init(jt(At({},B),{interpolation:At(At({},this.options.interpolation),B.interpolation)}));const lt=typeof n=="string"&&(B&&B.interpolation&&B.interpolation.skipOnVariables!==void 0?B.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let pt;if(lt){const N=n.match(this.interpolator.nestingRegexp);pt=N&&N.length}let ft=B.replace&&typeof B.replace!="string"?B.replace:B;if(this.options.interpolation.defaultVariables&&(ft=At(At({},this.options.interpolation.defaultVariables),ft)),n=this.interpolator.interpolate(n,ft,B.lng||this.language,B),lt){const N=n.match(this.interpolator.nestingRegexp),rt=N&&N.length;pt<rt&&(B.nest=!1)}!B.lng&&this.options.compatibilityAPI!=="v1"&&K&&K.res&&(B.lng=K.usedLng),B.nest!==!1&&(n=this.interpolator.nest(n,function(){for(var N=arguments.length,rt=new Array(N),W=0;W<N;W++)rt[W]=arguments[W];return J&&J[0]===rt[0]&&!B.context?(it.logger.warn(`It seems you are nesting recursively key: ${rt[0]} in key: ${S[0]}`),null):it.translate(...rt,S)},B)),B.interpolation&&this.interpolator.reset()}const nt=B.postProcess||this.options.postProcess,at=typeof nt=="string"?[nt]:nt;return n!=null&&at&&at.length&&B.applyPostProcessor!==!1&&(n=Vl.handle(at,n,S,this.options&&this.options.postProcessPassResolved?At({i18nResolved:K},B):B,this)),n}resolve(n){let S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},B,K,J,it,nt;return typeof n=="string"&&(n=[n]),n.forEach(at=>{if(this.isValidLookup(B))return;const lt=this.extractFromKey(at,S),pt=lt.key;K=pt;let ft=lt.namespaces;this.options.fallbackNS&&(ft=ft.concat(this.options.fallbackNS));const N=S.count!==void 0&&typeof S.count!="string",rt=N&&!S.ordinal&&S.count===0&&this.pluralResolver.shouldUseIntlApi(),W=S.context!==void 0&&(typeof S.context=="string"||typeof S.context=="number")&&S.context!=="",R=S.lngs?S.lngs:this.languageUtils.toResolveHierarchy(S.lng||this.language,S.fallbackLng);ft.forEach(U=>{this.isValidLookup(B)||(nt=U,!Rs[`${R[0]}-${U}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(nt)&&(Rs[`${R[0]}-${U}`]=!0,this.logger.warn(`key "${K}" for languages "${R.join(", ")}" won't get resolved as namespace "${nt}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),R.forEach(Y=>{if(this.isValidLookup(B))return;it=Y;const Z=[pt];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(Z,pt,Y,U,S);else{let $;N&&($=this.pluralResolver.getSuffix(Y,S.count,S));const G=`${this.options.pluralSeparator}zero`,D=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(N&&(Z.push(pt+$),S.ordinal&&$.indexOf(D)===0&&Z.push(pt+$.replace(D,this.options.pluralSeparator)),rt&&Z.push(pt+G)),W){const E=`${pt}${this.options.contextSeparator}${S.context}`;Z.push(E),N&&(Z.push(E+$),S.ordinal&&$.indexOf(D)===0&&Z.push(E+$.replace(D,this.options.pluralSeparator)),rt&&Z.push(E+G))}}let q;for(;q=Z.pop();)this.isValidLookup(B)||(J=q,B=this.getResource(Y,U,q,S))}))})}),{res:B,usedKey:K,exactUsedKey:J,usedLng:it,usedNS:nt}}isValidLookup(n){return n!==void 0&&!(!this.options.returnNull&&n===null)&&!(!this.options.returnEmptyString&&n==="")}getResource(n,S,B){let K=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(n,S,B,K):this.resourceStore.getResource(n,S,B,K)}static hasDefaultValue(n){const S="defaultValue";for(const B in n)if(Object.prototype.hasOwnProperty.call(n,B)&&S===B.substring(0,S.length)&&n[B]!==void 0)return!0;return!1}}function Xo(t){return t.charAt(0).toUpperCase()+t.slice(1)}class zs{constructor(n){this.options=n,this.supportedLngs=this.options.supportedLngs||!1,this.logger=He.create("languageUtils")}getScriptPartFromCode(n){if(n=Jr(n),!n||n.indexOf("-")<0)return null;const S=n.split("-");return S.length===2||(S.pop(),S[S.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(S.join("-"))}getLanguagePartFromCode(n){if(n=Jr(n),!n||n.indexOf("-")<0)return n;const S=n.split("-");return this.formatLanguageCode(S[0])}formatLanguageCode(n){if(typeof n=="string"&&n.indexOf("-")>-1){const S=["hans","hant","latn","cyrl","cans","mong","arab"];let B=n.split("-");return this.options.lowerCaseLng?B=B.map(K=>K.toLowerCase()):B.length===2?(B[0]=B[0].toLowerCase(),B[1]=B[1].toUpperCase(),S.indexOf(B[1].toLowerCase())>-1&&(B[1]=Xo(B[1].toLowerCase()))):B.length===3&&(B[0]=B[0].toLowerCase(),B[1].length===2&&(B[1]=B[1].toUpperCase()),B[0]!=="sgn"&&B[2].length===2&&(B[2]=B[2].toUpperCase()),S.indexOf(B[1].toLowerCase())>-1&&(B[1]=Xo(B[1].toLowerCase())),S.indexOf(B[2].toLowerCase())>-1&&(B[2]=Xo(B[2].toLowerCase()))),B.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?n.toLowerCase():n}isSupportedCode(n){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(n=this.getLanguagePartFromCode(n)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(n)>-1}getBestMatchFromCodes(n){if(!n)return null;let S;return n.forEach(B=>{if(S)return;const K=this.formatLanguageCode(B);(!this.options.supportedLngs||this.isSupportedCode(K))&&(S=K)}),!S&&this.options.supportedLngs&&n.forEach(B=>{if(S)return;const K=this.getLanguagePartFromCode(B);if(this.isSupportedCode(K))return S=K;S=this.options.supportedLngs.find(J=>{if(J===K)return J;if(!(J.indexOf("-")<0&&K.indexOf("-")<0)&&J.indexOf(K)===0)return J})}),S||(S=this.getFallbackCodes(this.options.fallbackLng)[0]),S}getFallbackCodes(n,S){if(!n)return[];if(typeof n=="function"&&(n=n(S)),typeof n=="string"&&(n=[n]),Object.prototype.toString.apply(n)==="[object Array]")return n;if(!S)return n.default||[];let B=n[S];return B||(B=n[this.getScriptPartFromCode(S)]),B||(B=n[this.formatLanguageCode(S)]),B||(B=n[this.getLanguagePartFromCode(S)]),B||(B=n.default),B||[]}toResolveHierarchy(n,S){const B=this.getFallbackCodes(S||this.options.fallbackLng||[],n),K=[],J=it=>{it&&(this.isSupportedCode(it)?K.push(it):this.logger.warn(`rejecting language code not found in supportedLngs: ${it}`))};return typeof n=="string"&&(n.indexOf("-")>-1||n.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&J(this.formatLanguageCode(n)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&J(this.getScriptPartFromCode(n)),this.options.load!=="currentOnly"&&J(this.getLanguagePartFromCode(n))):typeof n=="string"&&J(this.formatLanguageCode(n)),B.forEach(it=>{K.indexOf(it)<0&&J(this.formatLanguageCode(it))}),K}}let eu=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],iu={1:function(t){return+(t>1)},2:function(t){return+(t!=1)},3:function(t){return 0},4:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},5:function(t){return t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},6:function(t){return t==1?0:t>=2&&t<=4?1:2},7:function(t){return t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},8:function(t){return t==1?0:t==2?1:t!=8&&t!=11?2:3},9:function(t){return+(t>=2)},10:function(t){return t==1?0:t==2?1:t<7?2:t<11?3:4},11:function(t){return t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3},12:function(t){return+(t%10!=1||t%100==11)},13:function(t){return+(t!==0)},14:function(t){return t==1?0:t==2?1:t==3?2:3},15:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2},16:function(t){return t%10==1&&t%100!=11?0:t!==0?1:2},17:function(t){return t==1||t%10==1&&t%100!=11?0:1},18:function(t){return t==0?0:t==1?1:2},19:function(t){return t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3},20:function(t){return t==1?0:t==0||t%100>0&&t%100<20?1:2},21:function(t){return t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0},22:function(t){return t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3}};const ru=["v1","v2","v3"],ou=["v4"],Fs={zero:0,one:1,two:2,few:3,many:4,other:5};function nu(){const t={};return eu.forEach(n=>{n.lngs.forEach(S=>{t[S]={numbers:n.nr,plurals:iu[n.fc]}})}),t}class su{constructor(n){let S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=n,this.options=S,this.logger=He.create("pluralResolver"),(!this.options.compatibilityJSON||ou.includes(this.options.compatibilityJSON))&&(typeof Intl=="undefined"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=nu()}addRule(n,S){this.rules[n]=S}getRule(n){let S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(Jr(n),{type:S.ordinal?"ordinal":"cardinal"})}catch(B){return}return this.rules[n]||this.rules[this.languageUtils.getLanguagePartFromCode(n)]}needsPlural(n){let S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const B=this.getRule(n,S);return this.shouldUseIntlApi()?B&&B.resolvedOptions().pluralCategories.length>1:B&&B.numbers.length>1}getPluralFormsOfKey(n,S){let B=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(n,B).map(K=>`${S}${K}`)}getSuffixes(n){let S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const B=this.getRule(n,S);return B?this.shouldUseIntlApi()?B.resolvedOptions().pluralCategories.sort((K,J)=>Fs[K]-Fs[J]).map(K=>`${this.options.prepend}${S.ordinal?`ordinal${this.options.prepend}`:""}${K}`):B.numbers.map(K=>this.getSuffix(n,K,S)):[]}getSuffix(n,S){let B=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const K=this.getRule(n,B);return K?this.shouldUseIntlApi()?`${this.options.prepend}${B.ordinal?`ordinal${this.options.prepend}`:""}${K.select(S)}`:this.getSuffixRetroCompatible(K,S):(this.logger.warn(`no plural rule found for: ${n}`),"")}getSuffixRetroCompatible(n,S){const B=n.noAbs?n.plurals(S):n.plurals(Math.abs(S));let K=n.numbers[B];this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1&&(K===2?K="plural":K===1&&(K=""));const J=()=>this.options.prepend&&K.toString()?this.options.prepend+K.toString():K.toString();return this.options.compatibilityJSON==="v1"?K===1?"":typeof K=="number"?`_plural_${K.toString()}`:J():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1?J():this.options.prepend&&B.toString()?this.options.prepend+B.toString():B.toString()}shouldUseIntlApi(){return!ru.includes(this.options.compatibilityJSON)}}function Gs(t,n,S){let B=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",K=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,J=qd(t,n,S);return!J&&K&&typeof S=="string"&&(J=Kr(t,S,B),J===void 0&&(J=Kr(n,S,B))),J}class au{constructor(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=He.create("interpolator"),this.options=n,this.format=n.interpolation&&n.interpolation.format||(S=>S),this.init(n)}init(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};n.interpolation||(n.interpolation={escapeValue:!0});const S=n.interpolation;this.escape=S.escape!==void 0?S.escape:Jd,this.escapeValue=S.escapeValue!==void 0?S.escapeValue:!0,this.useRawValueToEscape=S.useRawValueToEscape!==void 0?S.useRawValueToEscape:!1,this.prefix=S.prefix?Si(S.prefix):S.prefixEscaped||"{{",this.suffix=S.suffix?Si(S.suffix):S.suffixEscaped||"}}",this.formatSeparator=S.formatSeparator?S.formatSeparator:S.formatSeparator||",",this.unescapePrefix=S.unescapeSuffix?"":S.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":S.unescapeSuffix||"",this.nestingPrefix=S.nestingPrefix?Si(S.nestingPrefix):S.nestingPrefixEscaped||Si("$t("),this.nestingSuffix=S.nestingSuffix?Si(S.nestingSuffix):S.nestingSuffixEscaped||Si(")"),this.nestingOptionsSeparator=S.nestingOptionsSeparator?S.nestingOptionsSeparator:S.nestingOptionsSeparator||",",this.maxReplaces=S.maxReplaces?S.maxReplaces:1e3,this.alwaysFormat=S.alwaysFormat!==void 0?S.alwaysFormat:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const n=`${this.prefix}(.+?)${this.suffix}`;this.regexp=new RegExp(n,"g");const S=`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`;this.regexpUnescape=new RegExp(S,"g");const B=`${this.nestingPrefix}(.+?)${this.nestingSuffix}`;this.nestingRegexp=new RegExp(B,"g")}interpolate(n,S,B,K){let J,it,nt;const at=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function lt(W){return W.replace(/\$/g,"$$$$")}const pt=W=>{if(W.indexOf(this.formatSeparator)<0){const Z=Gs(S,at,W,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(Z,void 0,B,jt(At(At({},K),S),{interpolationkey:W})):Z}const R=W.split(this.formatSeparator),U=R.shift().trim(),Y=R.join(this.formatSeparator).trim();return this.format(Gs(S,at,U,this.options.keySeparator,this.options.ignoreJSONStructure),Y,B,jt(At(At({},K),S),{interpolationkey:U}))};this.resetRegExp();const ft=K&&K.missingInterpolationHandler||this.options.missingInterpolationHandler,N=K&&K.interpolation&&K.interpolation.skipOnVariables!==void 0?K.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:W=>lt(W)},{regex:this.regexp,safeValue:W=>this.escapeValue?lt(this.escape(W)):lt(W)}].forEach(W=>{for(nt=0;J=W.regex.exec(n);){const R=J[1].trim();if(it=pt(R),it===void 0)if(typeof ft=="function"){const Y=ft(n,J,K);it=typeof Y=="string"?Y:""}else if(K&&Object.prototype.hasOwnProperty.call(K,R))it="";else if(N){it=J[0];continue}else this.logger.warn(`missed to pass in variable ${R} for interpolating ${n}`),it="";else typeof it!="string"&&!this.useRawValueToEscape&&(it=_s(it));const U=W.safeValue(it);if(n=n.replace(J[0],U),N?(W.regex.lastIndex+=it.length,W.regex.lastIndex-=J[0].length):W.regex.lastIndex=0,nt++,nt>=this.maxReplaces)break}}),n}nest(n,S){let B=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},K,J,it;function nt(at,lt){const pt=this.nestingOptionsSeparator;if(at.indexOf(pt)<0)return at;const ft=at.split(new RegExp(`${pt}[ ]*{`));let N=`{${ft[1]}`;at=ft[0],N=this.interpolate(N,it);const rt=N.match(/'/g),W=N.match(/"/g);(rt&&rt.length%2===0&&!W||W.length%2!==0)&&(N=N.replace(/'/g,'"'));try{it=JSON.parse(N),lt&&(it=At(At({},lt),it))}catch(R){return this.logger.warn(`failed parsing options string in nesting for key ${at}`,R),`${at}${pt}${N}`}return delete it.defaultValue,at}for(;K=this.nestingRegexp.exec(n);){let at=[];it=At({},B),it=it.replace&&typeof it.replace!="string"?it.replace:it,it.applyPostProcessor=!1,delete it.defaultValue;let lt=!1;if(K[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(K[1])){const pt=K[1].split(this.formatSeparator).map(ft=>ft.trim());K[1]=pt.shift(),at=pt,lt=!0}if(J=S(nt.call(this,K[1].trim(),it),it),J&&K[0]===n&&typeof J!="string")return J;typeof J!="string"&&(J=_s(J)),J||(this.logger.warn(`missed to resolve ${K[1]} for nesting ${n}`),J=""),lt&&(J=at.reduce((pt,ft)=>this.format(pt,ft,B.lng,jt(At({},B),{interpolationkey:K[1].trim()})),J.trim())),n=n.replace(K[0],J),this.regexp.lastIndex=0}return n}}function lu(t){let n=t.toLowerCase().trim();const S={};if(t.indexOf("(")>-1){const B=t.split("(");n=B[0].toLowerCase().trim();const K=B[1].substring(0,B[1].length-1);n==="currency"&&K.indexOf(":")<0?S.currency||(S.currency=K.trim()):n==="relativetime"&&K.indexOf(":")<0?S.range||(S.range=K.trim()):K.split(";").forEach(it=>{if(!it)return;const[nt,...at]=it.split(":"),lt=at.join(":").trim().replace(/^'+|'+$/g,"");S[nt.trim()]||(S[nt.trim()]=lt),lt==="false"&&(S[nt.trim()]=!1),lt==="true"&&(S[nt.trim()]=!0),isNaN(lt)||(S[nt.trim()]=parseInt(lt,10))})}return{formatName:n,formatOptions:S}}function Mi(t){const n={};return function(B,K,J){const it=K+JSON.stringify(J);let nt=n[it];return nt||(nt=t(Jr(K),J),n[it]=nt),nt(B)}}class hu{constructor(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=He.create("formatter"),this.options=n,this.formats={number:Mi((S,B)=>{const K=new Intl.NumberFormat(S,At({},B));return J=>K.format(J)}),currency:Mi((S,B)=>{const K=new Intl.NumberFormat(S,jt(At({},B),{style:"currency"}));return J=>K.format(J)}),datetime:Mi((S,B)=>{const K=new Intl.DateTimeFormat(S,At({},B));return J=>K.format(J)}),relativetime:Mi((S,B)=>{const K=new Intl.RelativeTimeFormat(S,At({},B));return J=>K.format(J,B.range||"day")}),list:Mi((S,B)=>{const K=new Intl.ListFormat(S,At({},B));return J=>K.format(J)})},this.init(n)}init(n){const B=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=B.formatSeparator?B.formatSeparator:B.formatSeparator||","}add(n,S){this.formats[n.toLowerCase().trim()]=S}addCached(n,S){this.formats[n.toLowerCase().trim()]=Mi(S)}format(n,S,B){let K=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return S.split(this.formatSeparator).reduce((nt,at)=>{const{formatName:lt,formatOptions:pt}=lu(at);if(this.formats[lt]){let ft=nt;try{const N=K&&K.formatParams&&K.formatParams[K.interpolationkey]||{},rt=N.locale||N.lng||K.locale||K.lng||B;ft=this.formats[lt](nt,rt,At(At(At({},pt),K),N))}catch(N){this.logger.warn(N)}return ft}else this.logger.warn(`there was no format function for ${lt}`);return nt},n)}}function cu(t,n){t.pending[n]!==void 0&&(delete t.pending[n],t.pendingCount--)}class pu extends go{constructor(n,S,B){let K=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=n,this.store=S,this.services=B,this.languageUtils=B.languageUtils,this.options=K,this.logger=He.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=K.maxParallelReads||10,this.readingCalls=0,this.maxRetries=K.maxRetries>=0?K.maxRetries:5,this.retryTimeout=K.retryTimeout>=1?K.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(B,K.backend,K)}queueLoad(n,S,B,K){const J={},it={},nt={},at={};return n.forEach(lt=>{let pt=!0;S.forEach(ft=>{const N=`${lt}|${ft}`;!B.reload&&this.store.hasResourceBundle(lt,ft)?this.state[N]=2:this.state[N]<0||(this.state[N]===1?it[N]===void 0&&(it[N]=!0):(this.state[N]=1,pt=!1,it[N]===void 0&&(it[N]=!0),J[N]===void 0&&(J[N]=!0),at[ft]===void 0&&(at[ft]=!0)))}),pt||(nt[lt]=!0)}),(Object.keys(J).length||Object.keys(it).length)&&this.queue.push({pending:it,pendingCount:Object.keys(it).length,loaded:{},errors:[],callback:K}),{toLoad:Object.keys(J),pending:Object.keys(it),toLoadLanguages:Object.keys(nt),toLoadNamespaces:Object.keys(at)}}loaded(n,S,B){const K=n.split("|"),J=K[0],it=K[1];S&&this.emit("failedLoading",J,it,S),B&&this.store.addResourceBundle(J,it,B),this.state[n]=S?-1:2;const nt={};this.queue.forEach(at=>{Zd(at.loaded,[J],it),cu(at,n),S&&at.errors.push(S),at.pendingCount===0&&!at.done&&(Object.keys(at.loaded).forEach(lt=>{nt[lt]||(nt[lt]={});const pt=at.loaded[lt];pt.length&&pt.forEach(ft=>{nt[lt][ft]===void 0&&(nt[lt][ft]=!0)})}),at.done=!0,at.errors.length?at.callback(at.errors):at.callback())}),this.emit("loaded",nt),this.queue=this.queue.filter(at=>!at.done)}read(n,S,B){let K=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,J=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,it=arguments.length>5?arguments[5]:void 0;if(!n.length)return it(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:n,ns:S,fcName:B,tried:K,wait:J,callback:it});return}this.readingCalls++;const nt=(lt,pt)=>{if(this.readingCalls--,this.waitingReads.length>0){const ft=this.waitingReads.shift();this.read(ft.lng,ft.ns,ft.fcName,ft.tried,ft.wait,ft.callback)}if(lt&&pt&&K<this.maxRetries){setTimeout(()=>{this.read.call(this,n,S,B,K+1,J*2,it)},J);return}it(lt,pt)},at=this.backend[B].bind(this.backend);if(at.length===2){try{const lt=at(n,S);lt&&typeof lt.then=="function"?lt.then(pt=>nt(null,pt)).catch(nt):nt(null,lt)}catch(lt){nt(lt)}return}return at(n,S,nt)}prepareLoading(n,S){let B=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},K=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),K&&K();typeof n=="string"&&(n=this.languageUtils.toResolveHierarchy(n)),typeof S=="string"&&(S=[S]);const J=this.queueLoad(n,S,B,K);if(!J.toLoad.length)return J.pending.length||K(),null;J.toLoad.forEach(it=>{this.loadOne(it)})}load(n,S,B){this.prepareLoading(n,S,{},B)}reload(n,S,B){this.prepareLoading(n,S,{reload:!0},B)}loadOne(n){let S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const B=n.split("|"),K=B[0],J=B[1];this.read(K,J,"read",void 0,void 0,(it,nt)=>{it&&this.logger.warn(`${S}loading namespace ${J} for language ${K} failed`,it),!it&&nt&&this.logger.log(`${S}loaded namespace ${J} for language ${K}`,nt),this.loaded(n,it,nt)})}saveMissing(n,S,B,K,J){let it=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},nt=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(S)){this.logger.warn(`did not save key "${B}" as the namespace "${S}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(B==null||B==="")){if(this.backend&&this.backend.create){const at=jt(At({},it),{isUpdate:J}),lt=this.backend.create.bind(this.backend);if(lt.length<6)try{let pt;lt.length===5?pt=lt(n,S,B,K,at):pt=lt(n,S,B,K),pt&&typeof pt.then=="function"?pt.then(ft=>nt(null,ft)).catch(nt):nt(null,pt)}catch(pt){nt(pt)}else lt(n,S,B,K,nt,at)}!n||!n[0]||this.store.addResource(n[0],S,B,K)}}}function Ws(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(n){let S={};if(typeof n[1]=="object"&&(S=n[1]),typeof n[1]=="string"&&(S.defaultValue=n[1]),typeof n[2]=="string"&&(S.tDescription=n[2]),typeof n[2]=="object"||typeof n[3]=="object"){const B=n[3]||n[2];Object.keys(B).forEach(K=>{S[K]=B[K]})}return S},interpolation:{escapeValue:!0,format:(t,n,S,B)=>t,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function Hs(t){return typeof t.ns=="string"&&(t.ns=[t.ns]),typeof t.fallbackLng=="string"&&(t.fallbackLng=[t.fallbackLng]),typeof t.fallbackNS=="string"&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs&&t.supportedLngs.indexOf("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t}function Tr(){}function du(t){Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach(S=>{typeof t[S]=="function"&&(t[S]=t[S].bind(t))})}class tr extends go{constructor(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},S=arguments.length>1?arguments[1]:void 0;if(super(),this.options=Hs(n),this.services={},this.logger=He,this.modules={external:[]},du(this),S&&!this.isInitialized&&!n.isClone){if(!this.options.initImmediate)return this.init(n,S),this;setTimeout(()=>{this.init(n,S)},0)}}init(){var n=this;let S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},B=arguments.length>1?arguments[1]:void 0;typeof S=="function"&&(B=S,S={}),!S.defaultNS&&S.defaultNS!==!1&&S.ns&&(typeof S.ns=="string"?S.defaultNS=S.ns:S.ns.indexOf("translation")<0&&(S.defaultNS=S.ns[0]));const K=Ws();this.options=At(At(At({},K),this.options),Hs(S)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=At(At({},K.interpolation),this.options.interpolation)),S.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=S.keySeparator),S.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=S.nsSeparator);function J(pt){return pt?typeof pt=="function"?new pt:pt:null}if(!this.options.isClone){this.modules.logger?He.init(J(this.modules.logger),this.options):He.init(null,this.options);let pt;this.modules.formatter?pt=this.modules.formatter:typeof Intl!="undefined"&&(pt=hu);const ft=new zs(this.options);this.store=new Bs(this.options.resources,this.options);const N=this.services;N.logger=He,N.resourceStore=this.store,N.languageUtils=ft,N.pluralResolver=new su(ft,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),pt&&(!this.options.interpolation.format||this.options.interpolation.format===K.interpolation.format)&&(N.formatter=J(pt),N.formatter.init(N,this.options),this.options.interpolation.format=N.formatter.format.bind(N.formatter)),N.interpolator=new au(this.options),N.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},N.backendConnector=new pu(J(this.modules.backend),N.resourceStore,N,this.options),N.backendConnector.on("*",function(rt){for(var W=arguments.length,R=new Array(W>1?W-1:0),U=1;U<W;U++)R[U-1]=arguments[U];n.emit(rt,...R)}),this.modules.languageDetector&&(N.languageDetector=J(this.modules.languageDetector),N.languageDetector.init&&N.languageDetector.init(N,this.options.detection,this.options)),this.modules.i18nFormat&&(N.i18nFormat=J(this.modules.i18nFormat),N.i18nFormat.init&&N.i18nFormat.init(this)),this.translator=new Qr(this.services,this.options),this.translator.on("*",function(rt){for(var W=arguments.length,R=new Array(W>1?W-1:0),U=1;U<W;U++)R[U-1]=arguments[U];n.emit(rt,...R)}),this.modules.external.forEach(rt=>{rt.init&&rt.init(this)})}if(this.format=this.options.interpolation.format,B||(B=Tr),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const pt=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);pt.length>0&&pt[0]!=="dev"&&(this.options.lng=pt[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(pt=>{this[pt]=function(){return n.store[pt](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(pt=>{this[pt]=function(){return n.store[pt](...arguments),n}});const at=Yi(),lt=()=>{const pt=(ft,N)=>{this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),at.resolve(N),B(ft,N)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return pt(null,this.t.bind(this));this.changeLanguage(this.options.lng,pt)};return this.options.resources||!this.options.initImmediate?lt():setTimeout(lt,0),at}loadResources(n){let B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Tr;const K=typeof n=="string"?n:this.language;if(typeof n=="function"&&(B=n),!this.options.resources||this.options.partialBundledLanguages){if(K&&K.toLowerCase()==="cimode")return B();const J=[],it=nt=>{if(!nt)return;this.services.languageUtils.toResolveHierarchy(nt).forEach(lt=>{J.indexOf(lt)<0&&J.push(lt)})};K?it(K):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(at=>it(at)),this.options.preload&&this.options.preload.forEach(nt=>it(nt)),this.services.backendConnector.load(J,this.options.ns,nt=>{!nt&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),B(nt)})}else B(null)}reloadResources(n,S,B){const K=Yi();return n||(n=this.languages),S||(S=this.options.ns),B||(B=Tr),this.services.backendConnector.reload(n,S,J=>{K.resolve(),B(J)}),K}use(n){if(!n)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!n.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return n.type==="backend"&&(this.modules.backend=n),(n.type==="logger"||n.log&&n.warn&&n.error)&&(this.modules.logger=n),n.type==="languageDetector"&&(this.modules.languageDetector=n),n.type==="i18nFormat"&&(this.modules.i18nFormat=n),n.type==="postProcessor"&&Vl.addPostProcessor(n),n.type==="formatter"&&(this.modules.formatter=n),n.type==="3rdParty"&&this.modules.external.push(n),this}setResolvedLanguage(n){if(!(!n||!this.languages)&&!(["cimode","dev"].indexOf(n)>-1))for(let S=0;S<this.languages.length;S++){const B=this.languages[S];if(!(["cimode","dev"].indexOf(B)>-1)&&this.store.hasLanguageSomeTranslations(B)){this.resolvedLanguage=B;break}}}changeLanguage(n,S){var B=this;this.isLanguageChangingTo=n;const K=Yi();this.emit("languageChanging",n);const J=at=>{this.language=at,this.languages=this.services.languageUtils.toResolveHierarchy(at),this.resolvedLanguage=void 0,this.setResolvedLanguage(at)},it=(at,lt)=>{lt?(J(lt),this.translator.changeLanguage(lt),this.isLanguageChangingTo=void 0,this.emit("languageChanged",lt),this.logger.log("languageChanged",lt)):this.isLanguageChangingTo=void 0,K.resolve(function(){return B.t(...arguments)}),S&&S(at,function(){return B.t(...arguments)})},nt=at=>{!n&&!at&&this.services.languageDetector&&(at=[]);const lt=typeof at=="string"?at:this.services.languageUtils.getBestMatchFromCodes(at);lt&&(this.language||J(lt),this.translator.language||this.translator.changeLanguage(lt),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(lt)),this.loadResources(lt,pt=>{it(pt,lt)})};return!n&&this.services.languageDetector&&!this.services.languageDetector.async?nt(this.services.languageDetector.detect()):!n&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(nt):this.services.languageDetector.detect(nt):nt(n),K}getFixedT(n,S,B){var K=this;const J=function(it,nt){let at;if(typeof nt!="object"){for(var lt=arguments.length,pt=new Array(lt>2?lt-2:0),ft=2;ft<lt;ft++)pt[ft-2]=arguments[ft];at=K.options.overloadTranslationOptionHandler([it,nt].concat(pt))}else at=At({},nt);at.lng=at.lng||J.lng,at.lngs=at.lngs||J.lngs,at.ns=at.ns||J.ns,at.keyPrefix=at.keyPrefix||B||J.keyPrefix;const N=K.options.keySeparator||".";let rt;return at.keyPrefix&&Array.isArray(it)?rt=it.map(W=>`${at.keyPrefix}${N}${W}`):rt=at.keyPrefix?`${at.keyPrefix}${N}${it}`:it,K.t(rt,at)};return typeof n=="string"?J.lng=n:J.lngs=n,J.ns=S,J.keyPrefix=B,J}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(n){this.options.defaultNS=n}hasLoadedNamespace(n){let S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const B=S.lng||this.resolvedLanguage||this.languages[0],K=this.options?this.options.fallbackLng:!1,J=this.languages[this.languages.length-1];if(B.toLowerCase()==="cimode")return!0;const it=(nt,at)=>{const lt=this.services.backendConnector.state[`${nt}|${at}`];return lt===-1||lt===2};if(S.precheck){const nt=S.precheck(this,it);if(nt!==void 0)return nt}return!!(this.hasResourceBundle(B,n)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||it(B,n)&&(!K||it(J,n)))}loadNamespaces(n,S){const B=Yi();return this.options.ns?(typeof n=="string"&&(n=[n]),n.forEach(K=>{this.options.ns.indexOf(K)<0&&this.options.ns.push(K)}),this.loadResources(K=>{B.resolve(),S&&S(K)}),B):(S&&S(),Promise.resolve())}loadLanguages(n,S){const B=Yi();typeof n=="string"&&(n=[n]);const K=this.options.preload||[],J=n.filter(it=>K.indexOf(it)<0);return J.length?(this.options.preload=K.concat(J),this.loadResources(it=>{B.resolve(),S&&S(it)}),B):(S&&S(),Promise.resolve())}dir(n){if(n||(n=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!n)return"rtl";const S=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],B=this.services&&this.services.languageUtils||new zs(Ws());return S.indexOf(B.getLanguagePartFromCode(n))>-1||n.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},S=arguments.length>1?arguments[1]:void 0;return new tr(n,S)}cloneInstance(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Tr;const B=n.forkResourceStore;B&&delete n.forkResourceStore;const K=jt(At(At({},this.options),n),{isClone:!0}),J=new tr(K);return(n.debug!==void 0||n.prefix!==void 0)&&(J.logger=J.logger.clone(n)),["store","services","language"].forEach(nt=>{J[nt]=this[nt]}),J.services=At({},this.services),J.services.utils={hasLoadedNamespace:J.hasLoadedNamespace.bind(J)},B&&(J.store=new Bs(this.store.data,K),J.services.resourceStore=J.store),J.translator=new Qr(J.services,K),J.translator.on("*",function(nt){for(var at=arguments.length,lt=new Array(at>1?at-1:0),pt=1;pt<at;pt++)lt[pt-1]=arguments[pt];J.emit(nt,...lt)}),J.init(K,S),J.translator.options=K,J.translator.backendConnector.services.utils={hasLoadedNamespace:J.hasLoadedNamespace.bind(J)},J}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const $l=tr.createInstance();$l.createInstance=tr.createInstance;const uu={error:"Error"},fu={error:"Помилка"},Us="common",gu={en:uu,uk:fu},ze=$l.createInstance({defaultNS:Us,resources:mu(gu,Us),lng:"en",fallbackLng:"en"}),Rn={i18nextInstance:ze,initPromise:ze.init().then(()=>ze)},Fr=new Map;Fr.set("common",Rn);const zn=t=>{if(Fr.has(t.namespace))return Fr.get(t.namespace);if(t.plugins)for(const J of t.plugins)ze.use(J);Object.keys(t.resource).forEach(J=>{ze.addResourceBundle(J,t.namespace,t.resource[J])});const n=ze.cloneInstance({defaultNS:t.namespace});let S=Rn.initPromise.then(()=>n);n.on("languageChanged",J=>{ze.language!==J&&ze.changeLanguage(J)}),ze.on("languageChanged",J=>{n.language!==J&&n.changeLanguage(J)});const B=t.language||"en";ze.language!==B&&(S=S.then(()=>n.changeLanguage(B)).then(()=>n));const K={initPromise:S,i18nextInstance:n};return Fr.set(t.namespace,K),K};function mu(t,n){return Object.keys(t).reduce((S,B)=>(S[B]={[n]:t[B]},S),{})}class Fn extends Error{constructor(n,S,B){const{key:K,interpolationOptions:J}=S,it=B||Rn.i18nextInstance.t,nt=Object.assign(Object.assign({},J),{ns:n}),at=it(K,Object.assign(Object.assign({},nt),{lng:"en"}));super(at),this.key=K,this.namespace=n,this.interpolationOptions=nt}}var Ke=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function xe(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function yu(t){if(t.__esModule)return t;var n=t.default;if(typeof n=="function"){var S=function B(){return this instanceof B?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};S.prototype=n.prototype}else S={};return Object.defineProperty(S,"__esModule",{value:!0}),Object.keys(t).forEach(function(B){var K=Object.getOwnPropertyDescriptor(t,B);Object.defineProperty(S,B,K.get?K:{enumerable:!0,get:function(){return t[B]}})}),S}const vu=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,bu={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},xu=t=>bu[t],wu=t=>t.replace(vu,xu);let sn={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:wu};function Cu(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};sn=At(At({},sn),t)}function Su(){return sn}let Zl;function Mu(t){Zl=t}function Au(){return Zl}const Tu={type:"3rdParty",init(t){Cu(t.options.react),Mu(t)}},ku={errors:{noSisenseContext:"Sisense context is not initialized",componentRenderError:"Unable to render the component",sisenseContextNoAuthentication:"Authentication method is not specified",chartNoSisenseContext:"Sisense Context for Chart not found. To fix, add a dataSet to the Chart or wrap the component inside a Sisense context provider.",dashboardWidgetNoSisenseContext:"Sisense Context for Dashboard Widget not found. To fix, wrap the component inside a Sisense context provider.",dashboardWidgetInvalidIdentifiers:"Failed to retrieve widget. Please make sure the dashboard widget exists and is accessible.",dashboardWidgetsInvalidIdentifiers:"Failed to retrieve dashboard widgets. Please make sure the dashboard exists and is accessible.",executeQueryNoSisenseContext:"Sisense Context for query execution not found. To fix, wrap the component inside a Sisense context provider.",executeQueryNoDataSource:"No dataSource provided to execute query",dataOptions:{emptyValueArray:'Invalid dataOptions – Array "value" is empty',noDimensionsAndMeasures:"Neither dimensions nor measures found. Data options should have at least one dimension or measure.",attributeNotFound:'Attribute "{{attributeName}}" not found in the data',measureNotFound:'Measure "{{measureName}}" not found in the data',filterAttributeNotFound:'Filter attribute "{{attributeName}}" not found in the data',highlightAttributeNotFound:'Highlight attribute "{{attributeName}}" not found in the data'},themeNotFound:"Theme with oid {{themeOid}} not found in the Sisense instance",paletteNotFound:"Palette '{{paletteName}}' not found in the Sisense instance",chartTypeNotSupported:"Chart type {{chartType}} is not supported",chartInvalidProps:"Invalid chart props",unsupportedWidgetType:"Can't extract props for unsupported widget type - {{widgetType}}",sisenseContextNotFound:"Sisense Context not found. Please ensure it is provided.",dashboardInvalidIdentifier:"Failed to retrieve dashboard. Please make sure the dashboard exists and is accessible.",sharedFormula:{identifierExpected:"Failed to identify shared formula. Please provide oid or both name and datasource",failedToFetch:"Failed to fetch shared formula"},widgetModel:{pivotWidgetNotSupported:"Pivot widget is not supported for method {{methodName}}",onlyTableWidgetSupported:"Only table widget is supported for method {{methodName}}",onlyPivotWidgetSupported:"Only pivot widget is supported for method {{methodName}}"},unknownFilterInFilterRelations:"Filter relations contain unknown filter",filterRelationsNotSupported:"Filter relations not supported yet",invalidFilterType:"Invalid filter type",secondsDateTimeLevelSupportedOnlyForLive:"Seconds datetime level is supported only for the 'live' datasource"},errorBoxText:"$t(common:error): {{errorMessage}}",chartNoData:"No Results",criteriaFilter:{equals:"Equals {{val}}",notEquals:"Does not equal {{val}}",lessThan:"Less than {{val}}",lessThanOrEqual:"Less than or equal to {{val}}",greaterThan:"Greater than {{val}}",greaterThanOrEqual:"Greater than or equal to {{val}}",between:"Between {{valA}} and {{valB}}",notBetween:"Not between {{valA}} and {{valB}}",top:"Top {{valA}} by {{valB}}",bottom:"Last {{valA}} by {{valB}}",is:"Is {{val}}",isNot:"Is not {{val}}",contains:"Contains {{val}}",notContains:"Doesn't contain {{val}}",startsWith:"Starts with {{val}}",notStartsWith:"Doesn't start with {{val}}",endsWith:"Ends with {{val}}",notEndsWith:"Doesn't end with {{val}}",like:"Is like {{val}}",byMeasure:"By measure",by:"by"},dateFilter:{last:"Last",next:"Next",from:"From",count:"Count",today:"Today",days:"Days",weeks:"Weeks",months:"Months",quarters:"Quarters",years:"Years",earliestDate:"Earliest Date",latestDate:"Latest Date",todayOutOfRange:"Today is out of available date range"},boxplot:{tooltip:{whiskers:"Whiskers",box:"Box",min:"Min",median:"Median",max:"Max"}},advanced:{tooltip:{min:"Lower Bound",max:"Upper Bound",forecastValue:"Forecast Value",forecast:"Forecast",trend:"Trend"}},arearange:{tooltip:{min:"Min",max:"Max"}},unsupportedFilter:{title:"Unsupported Filter",message:"Applied to the data query"},commonFilter:{clearSelectionButton:"Clear Selection"},customFilterTileMessage:"filtered with custom filter"},Pu={errors:{noSisenseContext:"Контекст Sisense не ініціалізовано",componentRenderError:"Не вдалося відобразити компонент",sisenseContextNoAuthentication:"Не вказано метод аутентифікації",chartNoSisenseContext:"Контекст Sisense для діаграми не знайдено. Щоб виправити, додайте набір даних до Chart або оберніть компонент у SisenseContextProvider.",dashboardWidgetNoSisenseContext:"Контекст Sisense для віджета дашборди не знайдено. Щоб виправити, оберніть компонент у SisenseContextProvider.",dashboardWidgetInvalidIdentifiers:"Не вдалося отримати віджет. Переконайтеся, що віджет дашборди існує і доступний.",dashboardWidgetsInvalidIdentifiers:"Не вдалося отримати віджети дашборди. Переконайтеся, що дашборда існує і доступна.",executeQueryNoSisenseContext:"Контекст Sisense для виконання запиту не знайдено. Щоб виправити, оберніть компонент у SisenseContextProvider.",executeQueryNoDataSource:"Не надано dataSource для виконання запиту",dataOptions:{emptyValueArray:'Недійсні dataOptions - Масив "value" порожній',noDimensionsAndMeasures:"Не знайдено ні dimension-ів, ні measure-ів. Параметри даних повинні мати щонайменше один dimension або measure.",attributeNotFound:'Атрибут "{{attributeName}}" не знайдено в даних',measureNotFound:'Measure "{{measureName}}" не знайдено в даних',filterAttributeNotFound:'Атрибут фільтра "{{attributeName}}" не знайдено в даних',highlightAttributeNotFound:'Атрибут виділення "{{attributeName}}" не знайдено в даних'},themeNotFound:"Тему з oid {{themeOid}} не знайдено на Sisense-сервері",paletteNotFound:'Палітру "{{paletteName}}" не знайдено на Sisense-сервері',chartTypeNotSupported:"Тип діаграми {{chartType}} не підтримується",chartInvalidProps:"Недійсні параметри діаграми",unsupportedWidgetType:"Неможливо отримати властивості для непідтримуваного типу віджета - {{widgetType}}",sisenseContextNotFound:"Контекст Sisense не знайдено. Переконайтеся, що він наданий.",dashboardInvalidIdentifier:"Не вдалося отримати дашборд. Переконайтеся, що дашборд існує і доступний.",sharedFormula:{identifierExpected:"Не вдалося ідентифікувати загальну формулу. Будь ласка, надайте oid або пару name та datasource",failedToFetch:"Не вдалося отримати спільну формулу"},widgetModel:{pivotWidgetNotSupported:"Метод {{methodName}} не підтримується для півот віджету",onlyTableWidgetSupported:"Метод {{methodName}} підтримуються тільки для табличним віджетом",onlyPivotWidgetSupported:"Метод {{methodName}} підтримуються тільки для півот віджетом"},unknownFilterInFilterRelations:"Логічні відношення фільтрів містять невідомий фільтр",filterRelationsNotSupported:"Відносини фільтрів ще не підтримуються",invalidFilterType:"Недійсний тип фільтра",secondsDateTimeLevelSupportedOnlyForLive:"Рівень часу в секундах підтримується лише для 'live' джерела даних"},errorBoxText:"$t(common:error): {{errorMessage}}",chartNoData:"Результатів немає",criteriaFilter:{equals:"Дорівнює {{val}}",notEquals:"Не дорівнює {{val}}",lessThan:"Менше ніж {{val}}",lessThanOrEqual:"Менше або дорівнює {{val}}",greaterThan:"Більше ніж {{val}}",greaterThanOrEqual:"Більше або дорівнює {{val}}",between:"Між {{valA}} та {{valB}}",notBetween:"Не між {{valA}} та {{valB}}",top:"Перші {{valA}} за {{valB}}",bottom:"Останні {{valA}} за {{valB}}",is:"Є {{val}}",isNot:"Не є {{val}}",contains:"Містить {{val}}",notContains:"Не містить {{val}}",startsWith:"Починається з {{val}}",notStartsWith:"Не починається з {{val}}",endsWith:"Закінчується на {{val}}",notEndsWith:"Не закінчується на {{val}}",like:"Схоже на {{val}}",byMeasure:"By measure",by:"by"},dateFilter:{last:"Last",next:"Next",from:"From",count:"Count",today:"Today",days:"Days",weeks:"Weeks",months:"Months",quarters:"Quarters",years:"Years",earliestDate:"Earliest Date",latestDate:"Latest Date",todayOutOfRange:"Today is out of available date range"},boxplot:{tooltip:{whiskers:"Вуса",box:"Коробка",min:"Мінімум",median:"Медіана",max:"Максимум"}},advanced:{tooltip:{min:"Lower Bound",max:"Upper Bound",forecastValue:"Forecast Value",forecast:"Forecast",trend:"Trend"}},arearange:{tooltip:{min:"Мінімум",max:"Максимум"}},unsupportedFilter:{title:"Непідтримуваний Фільтр",message:"Застосовано до запиту даних"},commonFilter:{clearSelectionButton:"Очистити виділення"},customFilterTileMessage:"застосовано користувацький фільтр"},ql="sdkUi",Lu={en:ku,uk:Pu};function Kl(){return zn({resource:Lu,plugins:[Tu],language:"en",namespace:ql})}const{i18nextInstance:Eu}=Kl(),Xs=t=>{if(typeof t=="object"&&t!==null){if(typeof Object.getPrototypeOf=="function"){const n=Object.getPrototypeOf(t);return n===Object.prototype||n===null}return Object.prototype.toString.call(t)==="[object Object]"}return!1},Pe=(...t)=>t.reduce((n,S)=>{if(Array.isArray(S))throw new TypeError("Arguments provided to ts-deepmerge must be objects, not arrays.");return Object.keys(S).forEach(B=>{["__proto__","constructor","prototype"].includes(B)||(Array.isArray(n[B])&&Array.isArray(S[B])?n[B]=Pe.options.mergeArrays?Array.from(new Set(n[B].concat(S[B]))):S[B]:Xs(n[B])&&Xs(S[B])?n[B]=Pe(n[B],S[B]):n[B]=S[B])}),n},{}),Jl={mergeArrays:!0};Pe.options=Jl;Pe.withOptions=(t,...n)=>{Pe.options=Object.assign({mergeArrays:!0},t);const S=Pe(...n);return Pe.options=Jl,S};const Ou={errors:{measure:{unsupportedType:"Unsupported measure type",dimensionalCalculatedMeasure:{noContext:"DimensionalCalculatedMeasure must have 'context' property"},dimensionalBaseMeasure:{noAttributeDimExpression:"DimensionalBaseMeasure must have 'attribute'/'dim'/'expression' property",noAggAggregation:"DimensionalBaseMeasure must have 'agg' or 'aggregation' property"}},dataModelConfig:{noName:"'name' must be specified in config for DataModel",noMetadata:"'metadata' must be specified in config for DataModel"},filter:{unsupportedType:"Unsupported filter type: {{filterType}}",unsupportedDatetimeLevel:'Filters do not support the next "datetime" levels: Hours, MinutesRoundTo30, MinutesRoundTo15, Minutes, Seconds',membersFilterNullMember:"MembersFilter of {{attributeId}} - member cannot be null"},unsupportedDimensionalElement:"Unsupported dimensional element type"}},Du={errors:{measure:{unsupportedType:"Непідтримуваний тип measure",dimensionalCalculatedMeasure:{noContext:"DimensionalCalculatedMeasure має мати властивість 'context'"},dimensionalBaseMeasure:{noAttributeDimExpression:"DimensionalBaseMeasure має мати властивість 'attribute'/'dim'/'expression'",noAggAggregation:"DimensionalBaseMeasure має мати властивість 'agg' або 'aggregation'"}},dataModelConfig:{noName:"'name' має бути вказано в конфігурації для DataModel",noMetadata:"'metadata' має бути вказано в конфігурації для DataModel"},filter:{unsupportedType:"Непідтримуваний тип фільтра: {{filterType}}",unsupportedDatetimeLevel:'Фільтри не підтримують наступні рівні "datetime": Hours, MinutesRoundTo30, MinutesRoundTo15, Minutes, Seconds',membersFilterNullMember:"MembersFilter у {{attributeId}} - member не може бути нульовим"},unsupportedDimensionalElement:"Непідтримуваний тип елемента"}},Ql="sdkData",ju={en:Ou,uk:Du};function Iu(){return zn({resource:ju,language:"en",namespace:Ql})}const{i18nextInstance:_u}=Iu(),re={Sum:"sum",Average:"avg",Min:"min",Max:"max",Count:"count",CountDistinct:"countDistinct",Median:"median",Variance:"var",StandardDeviation:"stdev"};exports.Sort=void 0;(function(t){t[t.None=0]="None",t[t.Ascending=1]="Ascending",t[t.Descending=2]="Descending"})(exports.Sort=exports.Sort||(exports.Sort={}));const Ut={Measure:"measure",MeasureTemplate:"measuretemplate",BaseMeasure:"basemeasure",CalculatedMeasure:"calculatedmeasure",Dimension:"dimension",DateDimension:"datedimension",TextDimension:"textdimension",NumericDimension:"numericdimension",DateLevel:"datelevel",Attribute:"attribute",TextAttribute:"text-attribute",NumericAttribute:"numeric-attribute",Filter:"filter",DimensionFilter:"dimensionfilter",MeasureFilter:"measurefilter",isMetadata(t){return Ut.isMeasure(t)||Ut.isDimension(t)||Ut.isAttribute(t)||Ut.isFilter(t)},isMeasureTemplate(t){return t?typeof t=="string"?t.toLowerCase()===Ut.MeasureTemplate:t.agg==="*"||t.aggregation==="*"||t.type&&t.type.toLowerCase()===Ut.MeasureTemplate:!1},isBaseMeasure(t){return t?typeof t=="string"?t.toLowerCase()===Ut.BaseMeasure:(t.agg||t.aggregation)&&t.attribute&&!this.isMeasureTemplate(t):!1},isMeasure(t){if(!t)return!1;if(typeof t=="string"){const n=t;return n.toLowerCase()===Ut.Measure||n.toLowerCase()===Ut.BaseMeasure||n.toLowerCase()===Ut.MeasureTemplate||n.toLowerCase()===Ut.CalculatedMeasure}return this.isBaseMeasure(t)||this.isCalculatedMeasure(t)||this.isMeasureTemplate(t)},isCalculatedMeasure(t){return t?typeof t=="string"?t.toLowerCase()===Ut.CalculatedMeasure:(t.expression||t.formula)&&t.context:!1},isDateDimension(t){return t?typeof t=="string"?t.toLowerCase()===Ut.DateDimension:(t.dim||t.expression)&&t.level:!1},isTextDimension(t){return t&&typeof t=="string"?t.toLowerCase()===Ut.TextDimension:!1},isNumericDimension(t){return t&&typeof t=="string"?t.toLowerCase()===Ut.NumericDimension:!1},isDimension(t){if(typeof t=="object"&&(t=t.type),typeof t=="string"){const n=t;return n.toLowerCase()===Ut.DateDimension||n.toLowerCase()===Ut.Dimension||n.toLowerCase()===Ut.TextDimension||n.toLowerCase()===Ut.NumericDimension}return!1},isAttribute(t){if(typeof t=="string"){const n=t;return n.toLowerCase()===Ut.Attribute||n.toLowerCase()===Ut.TextAttribute||n.toLowerCase()===Ut.NumericAttribute||n.toLowerCase()===Ut.DateLevel}return t&&t.type?this.isAttribute(t.type):!1},isFilter(t){if(typeof t=="object"&&(t=t.type),typeof t=="string"){const n=t;return n.toLowerCase()===Ut.Filter||n.toLowerCase()===Ut.DimensionFilter||n.toLowerCase()===Ut.MeasureFilter}return!1}},Nt={Years:"Years",Quarters:"Quarters",Months:"Months",Weeks:"Weeks",Days:"Days",Hours:"Hours",MinutesRoundTo30:"MinutesRoundTo30",MinutesRoundTo15:"MinutesRoundTo15",Minutes:"Minutes",Seconds:"Seconds",AggHours:"AggHours",AggMinutesRoundTo30:"AggMinutesRoundTo30",AggMinutesRoundTo15:"AggMinutesRoundTo15",AggMinutesRoundTo1:"AggMinutesRoundTo1",get all(){return[Nt.Years,Nt.Quarters,Nt.Months,Nt.Weeks,Nt.Days,Nt.Hours,Nt.MinutesRoundTo30,Nt.MinutesRoundTo15,Nt.Minutes,Nt.Seconds,Nt.AggHours,Nt.AggMinutesRoundTo30,Nt.AggMinutesRoundTo15,Nt.AggMinutesRoundTo1]}};exports.DataType=void 0;(function(t){t.TEXT="text",t.NUMERIC="numeric",t.DATETIME="datetime"})(exports.DataType=exports.DataType||(exports.DataType={}));var Ji;(function(t){t.ASC="asc",t.DESC="desc"})(Ji=Ji||(Ji={}));class mo{constructor(n,S,B){this._name=n,this.type=S,this.description=B||""}get name(){return this._name}set name(n){this._name=n}serializable(){return{name:this.name,type:this.type,desc:this.description,__serializable:"DimensionalElement"}}toJSON(){return this.serializable()}toString(){return this.jaql()}}function ei(t){let n=t.replace(/[^a-zA-Z0-9_]/g,"");return n.charAt(0).match(/[0-9]/)&&(n="_"+n),n}var Nu=typeof Ke=="object"&&Ke&&Ke.Object===Object&&Ke,th=Nu,Bu=th,Ru=typeof self=="object"&&self&&self.Object===Object&&self,zu=Bu||Ru||Function("return this")(),De=zu,Fu=De,Gu=Fu.Symbol,_i=Gu,Ys=_i,eh=Object.prototype,Wu=eh.hasOwnProperty,Hu=eh.toString,Vi=Ys?Ys.toStringTag:void 0;function Uu(t){var n=Wu.call(t,Vi),S=t[Vi];try{t[Vi]=void 0;var B=!0}catch(J){}var K=Hu.call(t);return B&&(n?t[Vi]=S:delete t[Vi]),K}var Xu=Uu,Yu=Object.prototype,Vu=Yu.toString;function $u(t){return Vu.call(t)}var Zu=$u,Vs=_i,qu=Xu,Ku=Zu,Ju="[object Null]",Qu="[object Undefined]",$s=Vs?Vs.toStringTag:void 0;function tf(t){return t==null?t===void 0?Qu:Ju:$s&&$s in Object(t)?qu(t):Ku(t)}var vi=tf;function ef(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}var Ve=ef;const rf=xe(Ve);var of=vi,nf=Ve,sf="[object AsyncFunction]",af="[object Function]",lf="[object GeneratorFunction]",hf="[object Proxy]";function cf(t){if(!nf(t))return!1;var n=of(t);return n==af||n==lf||n==sf||n==hf}var yo=cf;const pf=xe(yo);var df=De,uf=df["__core-js_shared__"],ff=uf,Yo=ff,Zs=function(){var t=/[^.]+$/.exec(Yo&&Yo.keys&&Yo.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function gf(t){return!!Zs&&Zs in t}var mf=gf,yf=Function.prototype,vf=yf.toString;function bf(t){if(t!=null){try{return vf.call(t)}catch(n){}try{return t+""}catch(n){}}return""}var ih=bf,xf=yo,wf=mf,Cf=Ve,Sf=ih,Mf=/[\\^$.*+?()[\]{}|]/g,Af=/^\[object .+?Constructor\]$/,Tf=Function.prototype,kf=Object.prototype,Pf=Tf.toString,Lf=kf.hasOwnProperty,Ef=RegExp("^"+Pf.call(Lf).replace(Mf,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Of(t){if(!Cf(t)||wf(t))return!1;var n=xf(t)?Ef:Af;return n.test(Sf(t))}var Df=Of;function jf(t,n){return t==null?void 0:t[n]}var If=jf,_f=Df,Nf=If;function Bf(t,n){var S=Nf(t,n);return _f(S)?S:void 0}var bi=Bf,Rf=bi,zf=function(){try{var t=Rf(Object,"defineProperty");return t({},"",{}),t}catch(n){}}(),rh=zf,qs=rh;function Ff(t,n,S){n=="__proto__"&&qs?qs(t,n,{configurable:!0,enumerable:!0,value:S,writable:!0}):t[n]=S}var vo=Ff;function Gf(t){return function(n,S,B){for(var K=-1,J=Object(n),it=B(n),nt=it.length;nt--;){var at=it[t?nt:++K];if(S(J[at],at,J)===!1)break}return n}}var Wf=Gf,Hf=Wf,Uf=Hf(),oh=Uf;function Xf(t,n){for(var S=-1,B=Array(t);++S<t;)B[S]=n(S);return B}var Yf=Xf;function Vf(t){return t!=null&&typeof t=="object"}var ti=Vf,$f=vi,Zf=ti,qf="[object Arguments]";function Kf(t){return Zf(t)&&$f(t)==qf}var Jf=Kf,Ks=Jf,Qf=ti,nh=Object.prototype,tg=nh.hasOwnProperty,eg=nh.propertyIsEnumerable,ig=Ks(function(){return arguments}())?Ks:function(t){return Qf(t)&&tg.call(t,"callee")&&!eg.call(t,"callee")},lr=ig,rg=Array.isArray,je=rg,an={exports:{}};function og(){return!1}var ng=og;(function(t,n){var S=De,B=ng,K=n&&!n.nodeType&&n,J=K&&!0&&t&&!t.nodeType&&t,it=J&&J.exports===K,nt=it?S.Buffer:void 0,at=nt?nt.isBuffer:void 0,lt=at||B;t.exports=lt})(an,an.exports);var hr=an.exports,sg=9007199254740991,ag=/^(?:0|[1-9]\d*)$/;function lg(t,n){var S=typeof t;return n=n==null?sg:n,!!n&&(S=="number"||S!="symbol"&&ag.test(t))&&t>-1&&t%1==0&&t<n}var bo=lg,hg=9007199254740991;function cg(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=hg}var Gn=cg,pg=vi,dg=Gn,ug=ti,fg="[object Arguments]",gg="[object Array]",mg="[object Boolean]",yg="[object Date]",vg="[object Error]",bg="[object Function]",xg="[object Map]",wg="[object Number]",Cg="[object Object]",Sg="[object RegExp]",Mg="[object Set]",Ag="[object String]",Tg="[object WeakMap]",kg="[object ArrayBuffer]",Pg="[object DataView]",Lg="[object Float32Array]",Eg="[object Float64Array]",Og="[object Int8Array]",Dg="[object Int16Array]",jg="[object Int32Array]",Ig="[object Uint8Array]",_g="[object Uint8ClampedArray]",Ng="[object Uint16Array]",Bg="[object Uint32Array]",ie={};ie[Lg]=ie[Eg]=ie[Og]=ie[Dg]=ie[jg]=ie[Ig]=ie[_g]=ie[Ng]=ie[Bg]=!0;ie[fg]=ie[gg]=ie[kg]=ie[mg]=ie[Pg]=ie[yg]=ie[vg]=ie[bg]=ie[xg]=ie[wg]=ie[Cg]=ie[Sg]=ie[Mg]=ie[Ag]=ie[Tg]=!1;function Rg(t){return ug(t)&&dg(t.length)&&!!ie[pg(t)]}var zg=Rg;function Fg(t){return function(n){return t(n)}}var xo=Fg,ln={exports:{}};(function(t,n){var S=th,B=n&&!n.nodeType&&n,K=B&&!0&&t&&!t.nodeType&&t,J=K&&K.exports===B,it=J&&S.process,nt=function(){try{var at=K&&K.require&&K.require("util").types;return at||it&&it.binding&&it.binding("util")}catch(lt){}}();t.exports=nt})(ln,ln.exports);var Wn=ln.exports,Gg=zg,Wg=xo,Js=Wn,Qs=Js&&Js.isTypedArray,Hg=Qs?Wg(Qs):Gg,wo=Hg,Ug=Yf,Xg=lr,Yg=je,Vg=hr,$g=bo,Zg=wo,qg=Object.prototype,Kg=qg.hasOwnProperty;function Jg(t,n){var S=Yg(t),B=!S&&Xg(t),K=!S&&!B&&Vg(t),J=!S&&!B&&!K&&Zg(t),it=S||B||K||J,nt=it?Ug(t.length,String):[],at=nt.length;for(var lt in t)(n||Kg.call(t,lt))&&!(it&&(lt=="length"||K&&(lt=="offset"||lt=="parent")||J&&(lt=="buffer"||lt=="byteLength"||lt=="byteOffset")||$g(lt,at)))&&nt.push(lt);return nt}var sh=Jg,Qg=Object.prototype;function tm(t){var n=t&&t.constructor,S=typeof n=="function"&&n.prototype||Qg;return t===S}var Co=tm;function em(t,n){return function(S){return t(n(S))}}var ah=em,im=ah,rm=im(Object.keys,Object),om=rm,nm=Co,sm=om,am=Object.prototype,lm=am.hasOwnProperty;function hm(t){if(!nm(t))return sm(t);var n=[];for(var S in Object(t))lm.call(t,S)&&S!="constructor"&&n.push(S);return n}var lh=hm,cm=yo,pm=Gn;function dm(t){return t!=null&&pm(t.length)&&!cm(t)}var So=dm,um=sh,fm=lh,gm=So;function mm(t){return gm(t)?um(t):fm(t)}var cr=mm,ym=oh,vm=cr;function bm(t,n){return t&&ym(t,n,vm)}var hh=bm;function xm(){this.__data__=[],this.size=0}var wm=xm;function Cm(t,n){return t===n||t!==t&&n!==n}var Mo=Cm,Sm=Mo;function Mm(t,n){for(var S=t.length;S--;)if(Sm(t[S][0],n))return S;return-1}var Ao=Mm,Am=Ao,Tm=Array.prototype,km=Tm.splice;function Pm(t){var n=this.__data__,S=Am(n,t);if(S<0)return!1;var B=n.length-1;return S==B?n.pop():km.call(n,S,1),--this.size,!0}var Lm=Pm,Em=Ao;function Om(t){var n=this.__data__,S=Em(n,t);return S<0?void 0:n[S][1]}var Dm=Om,jm=Ao;function Im(t){return jm(this.__data__,t)>-1}var _m=Im,Nm=Ao;function Bm(t,n){var S=this.__data__,B=Nm(S,t);return B<0?(++this.size,S.push([t,n])):S[B][1]=n,this}var Rm=Bm,zm=wm,Fm=Lm,Gm=Dm,Wm=_m,Hm=Rm;function Ni(t){var n=-1,S=t==null?0:t.length;for(this.clear();++n<S;){var B=t[n];this.set(B[0],B[1])}}Ni.prototype.clear=zm;Ni.prototype.delete=Fm;Ni.prototype.get=Gm;Ni.prototype.has=Wm;Ni.prototype.set=Hm;var To=Ni,Um=To;function Xm(){this.__data__=new Um,this.size=0}var Ym=Xm;function Vm(t){var n=this.__data__,S=n.delete(t);return this.size=n.size,S}var $m=Vm;function Zm(t){return this.__data__.get(t)}var qm=Zm;function Km(t){return this.__data__.has(t)}var Jm=Km,Qm=bi,ty=De,ey=Qm(ty,"Map"),Hn=ey,iy=bi,ry=iy(Object,"create"),ko=ry,ta=ko;function oy(){this.__data__=ta?ta(null):{},this.size=0}var ny=oy;function sy(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}var ay=sy,ly=ko,hy="__lodash_hash_undefined__",cy=Object.prototype,py=cy.hasOwnProperty;function dy(t){var n=this.__data__;if(ly){var S=n[t];return S===hy?void 0:S}return py.call(n,t)?n[t]:void 0}var uy=dy,fy=ko,gy=Object.prototype,my=gy.hasOwnProperty;function yy(t){var n=this.__data__;return fy?n[t]!==void 0:my.call(n,t)}var vy=yy,by=ko,xy="__lodash_hash_undefined__";function wy(t,n){var S=this.__data__;return this.size+=this.has(t)?0:1,S[t]=by&&n===void 0?xy:n,this}var Cy=wy,Sy=ny,My=ay,Ay=uy,Ty=vy,ky=Cy;function Bi(t){var n=-1,S=t==null?0:t.length;for(this.clear();++n<S;){var B=t[n];this.set(B[0],B[1])}}Bi.prototype.clear=Sy;Bi.prototype.delete=My;Bi.prototype.get=Ay;Bi.prototype.has=Ty;Bi.prototype.set=ky;var Py=Bi,ea=Py,Ly=To,Ey=Hn;function Oy(){this.size=0,this.__data__={hash:new ea,map:new(Ey||Ly),string:new ea}}var Dy=Oy;function jy(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}var Iy=jy,_y=Iy;function Ny(t,n){var S=t.__data__;return _y(n)?S[typeof n=="string"?"string":"hash"]:S.map}var Po=Ny,By=Po;function Ry(t){var n=By(this,t).delete(t);return this.size-=n?1:0,n}var zy=Ry,Fy=Po;function Gy(t){return Fy(this,t).get(t)}var Wy=Gy,Hy=Po;function Uy(t){return Hy(this,t).has(t)}var Xy=Uy,Yy=Po;function Vy(t,n){var S=Yy(this,t),B=S.size;return S.set(t,n),this.size+=S.size==B?0:1,this}var $y=Vy,Zy=Dy,qy=zy,Ky=Wy,Jy=Xy,Qy=$y;function Ri(t){var n=-1,S=t==null?0:t.length;for(this.clear();++n<S;){var B=t[n];this.set(B[0],B[1])}}Ri.prototype.clear=Zy;Ri.prototype.delete=qy;Ri.prototype.get=Ky;Ri.prototype.has=Jy;Ri.prototype.set=Qy;var Un=Ri,tv=To,ev=Hn,iv=Un,rv=200;function ov(t,n){var S=this.__data__;if(S instanceof tv){var B=S.__data__;if(!ev||B.length<rv-1)return B.push([t,n]),this.size=++S.size,this;S=this.__data__=new iv(B)}return S.set(t,n),this.size=S.size,this}var nv=ov,sv=To,av=Ym,lv=$m,hv=qm,cv=Jm,pv=nv;function zi(t){var n=this.__data__=new sv(t);this.size=n.size}zi.prototype.clear=av;zi.prototype.delete=lv;zi.prototype.get=hv;zi.prototype.has=cv;zi.prototype.set=pv;var Lo=zi,dv="__lodash_hash_undefined__";function uv(t){return this.__data__.set(t,dv),this}var fv=uv;function gv(t){return this.__data__.has(t)}var mv=gv,yv=Un,vv=fv,bv=mv;function to(t){var n=-1,S=t==null?0:t.length;for(this.__data__=new yv;++n<S;)this.add(t[n])}to.prototype.add=to.prototype.push=vv;to.prototype.has=bv;var ch=to;function xv(t,n){for(var S=-1,B=t==null?0:t.length;++S<B;)if(n(t[S],S,t))return!0;return!1}var wv=xv;function Cv(t,n){return t.has(n)}var ph=Cv,Sv=ch,Mv=wv,Av=ph,Tv=1,kv=2;function Pv(t,n,S,B,K,J){var it=S&Tv,nt=t.length,at=n.length;if(nt!=at&&!(it&&at>nt))return!1;var lt=J.get(t),pt=J.get(n);if(lt&&pt)return lt==n&&pt==t;var ft=-1,N=!0,rt=S&kv?new Sv:void 0;for(J.set(t,n),J.set(n,t);++ft<nt;){var W=t[ft],R=n[ft];if(B)var U=it?B(R,W,ft,n,t,J):B(W,R,ft,t,n,J);if(U!==void 0){if(U)continue;N=!1;break}if(rt){if(!Mv(n,function(Y,Z){if(!Av(rt,Z)&&(W===Y||K(W,Y,S,B,J)))return rt.push(Z)})){N=!1;break}}else if(!(W===R||K(W,R,S,B,J))){N=!1;break}}return J.delete(t),J.delete(n),N}var dh=Pv,Lv=De,Ev=Lv.Uint8Array,uh=Ev;function Ov(t){var n=-1,S=Array(t.size);return t.forEach(function(B,K){S[++n]=[K,B]}),S}var Dv=Ov;function jv(t){var n=-1,S=Array(t.size);return t.forEach(function(B){S[++n]=B}),S}var fh=jv,ia=_i,ra=uh,Iv=Mo,_v=dh,Nv=Dv,Bv=fh,Rv=1,zv=2,Fv="[object Boolean]",Gv="[object Date]",Wv="[object Error]",Hv="[object Map]",Uv="[object Number]",Xv="[object RegExp]",Yv="[object Set]",Vv="[object String]",$v="[object Symbol]",Zv="[object ArrayBuffer]",qv="[object DataView]",oa=ia?ia.prototype:void 0,Vo=oa?oa.valueOf:void 0;function Kv(t,n,S,B,K,J,it){switch(S){case qv:if(t.byteLength!=n.byteLength||t.byteOffset!=n.byteOffset)return!1;t=t.buffer,n=n.buffer;case Zv:return!(t.byteLength!=n.byteLength||!J(new ra(t),new ra(n)));case Fv:case Gv:case Uv:return Iv(+t,+n);case Wv:return t.name==n.name&&t.message==n.message;case Xv:case Vv:return t==n+"";case Hv:var nt=Nv;case Yv:var at=B&Rv;if(nt||(nt=Bv),t.size!=n.size&&!at)return!1;var lt=it.get(t);if(lt)return lt==n;B|=zv,it.set(t,n);var pt=_v(nt(t),nt(n),B,K,J,it);return it.delete(t),pt;case $v:if(Vo)return Vo.call(t)==Vo.call(n)}return!1}var Jv=Kv;function Qv(t,n){for(var S=-1,B=n.length,K=t.length;++S<B;)t[K+S]=n[S];return t}var Xn=Qv,t0=Xn,e0=je;function i0(t,n,S){var B=n(t);return e0(t)?B:t0(B,S(t))}var gh=i0;function r0(t,n){for(var S=-1,B=t==null?0:t.length,K=0,J=[];++S<B;){var it=t[S];n(it,S,t)&&(J[K++]=it)}return J}var o0=r0;function n0(){return[]}var mh=n0,s0=o0,a0=mh,l0=Object.prototype,h0=l0.propertyIsEnumerable,na=Object.getOwnPropertySymbols,c0=na?function(t){return t==null?[]:(t=Object(t),s0(na(t),function(n){return h0.call(t,n)}))}:a0,Yn=c0,p0=gh,d0=Yn,u0=cr;function f0(t){return p0(t,u0,d0)}var yh=f0,sa=yh,g0=1,m0=Object.prototype,y0=m0.hasOwnProperty;function v0(t,n,S,B,K,J){var it=S&g0,nt=sa(t),at=nt.length,lt=sa(n),pt=lt.length;if(at!=pt&&!it)return!1;for(var ft=at;ft--;){var N=nt[ft];if(!(it?N in n:y0.call(n,N)))return!1}var rt=J.get(t),W=J.get(n);if(rt&&W)return rt==n&&W==t;var R=!0;J.set(t,n),J.set(n,t);for(var U=it;++ft<at;){N=nt[ft];var Y=t[N],Z=n[N];if(B)var q=it?B(Z,Y,N,n,t,J):B(Y,Z,N,t,n,J);if(!(q===void 0?Y===Z||K(Y,Z,S,B,J):q)){R=!1;break}U||(U=N=="constructor")}if(R&&!U){var $=t.constructor,G=n.constructor;$!=G&&"constructor"in t&&"constructor"in n&&!(typeof $=="function"&&$ instanceof $&&typeof G=="function"&&G instanceof G)&&(R=!1)}return J.delete(t),J.delete(n),R}var b0=v0,x0=bi,w0=De,C0=x0(w0,"DataView"),S0=C0,M0=bi,A0=De,T0=M0(A0,"Promise"),k0=T0,P0=bi,L0=De,E0=P0(L0,"Set"),vh=E0,O0=bi,D0=De,j0=O0(D0,"WeakMap"),bh=j0,hn=S0,cn=Hn,pn=k0,dn=vh,un=bh,xh=vi,Fi=ih,aa="[object Map]",I0="[object Object]",la="[object Promise]",ha="[object Set]",ca="[object WeakMap]",pa="[object DataView]",_0=Fi(hn),N0=Fi(cn),B0=Fi(pn),R0=Fi(dn),z0=Fi(un),ui=xh;(hn&&ui(new hn(new ArrayBuffer(1)))!=pa||cn&&ui(new cn)!=aa||pn&&ui(pn.resolve())!=la||dn&&ui(new dn)!=ha||un&&ui(new un)!=ca)&&(ui=function(t){var n=xh(t),S=n==I0?t.constructor:void 0,B=S?Fi(S):"";if(B)switch(B){case _0:return pa;case N0:return aa;case B0:return la;case R0:return ha;case z0:return ca}return n});var pr=ui,$o=Lo,F0=dh,G0=Jv,W0=b0,da=pr,ua=je,fa=hr,H0=wo,U0=1,ga="[object Arguments]",ma="[object Array]",kr="[object Object]",X0=Object.prototype,ya=X0.hasOwnProperty;function Y0(t,n,S,B,K,J){var it=ua(t),nt=ua(n),at=it?ma:da(t),lt=nt?ma:da(n);at=at==ga?kr:at,lt=lt==ga?kr:lt;var pt=at==kr,ft=lt==kr,N=at==lt;if(N&&fa(t)){if(!fa(n))return!1;it=!0,pt=!1}if(N&&!pt)return J||(J=new $o),it||H0(t)?F0(t,n,S,B,K,J):G0(t,n,at,S,B,K,J);if(!(S&U0)){var rt=pt&&ya.call(t,"__wrapped__"),W=ft&&ya.call(n,"__wrapped__");if(rt||W){var R=rt?t.value():t,U=W?n.value():n;return J||(J=new $o),K(R,U,S,B,J)}}return N?(J||(J=new $o),W0(t,n,S,B,K,J)):!1}var V0=Y0,$0=V0,va=ti;function wh(t,n,S,B,K){return t===n?!0:t==null||n==null||!va(t)&&!va(n)?t!==t&&n!==n:$0(t,n,S,B,wh,K)}var Vn=wh,Z0=Lo,q0=Vn,K0=1,J0=2;function Q0(t,n,S,B){var K=S.length,J=K,it=!B;if(t==null)return!J;for(t=Object(t);K--;){var nt=S[K];if(it&&nt[2]?nt[1]!==t[nt[0]]:!(nt[0]in t))return!1}for(;++K<J;){nt=S[K];var at=nt[0],lt=t[at],pt=nt[1];if(it&&nt[2]){if(lt===void 0&&!(at in t))return!1}else{var ft=new Z0;if(B)var N=B(lt,pt,at,t,n,ft);if(!(N===void 0?q0(pt,lt,K0|J0,B,ft):N))return!1}}return!0}var tb=Q0,eb=Ve;function ib(t){return t===t&&!eb(t)}var Ch=ib,rb=Ch,ob=cr;function nb(t){for(var n=ob(t),S=n.length;S--;){var B=n[S],K=t[B];n[S]=[B,K,rb(K)]}return n}var sb=nb;function ab(t,n){return function(S){return S==null?!1:S[t]===n&&(n!==void 0||t in Object(S))}}var Sh=ab,lb=tb,hb=sb,cb=Sh;function pb(t){var n=hb(t);return n.length==1&&n[0][2]?cb(n[0][0],n[0][1]):function(S){return S===t||lb(S,t,n)}}var db=pb,ub=vi,fb=ti,gb="[object Symbol]";function mb(t){return typeof t=="symbol"||fb(t)&&ub(t)==gb}var Eo=mb,yb=je,vb=Eo,bb=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,xb=/^\w*$/;function wb(t,n){if(yb(t))return!1;var S=typeof t;return S=="number"||S=="symbol"||S=="boolean"||t==null||vb(t)?!0:xb.test(t)||!bb.test(t)||n!=null&&t in Object(n)}var $n=wb,Mh=Un,Cb="Expected a function";function Zn(t,n){if(typeof t!="function"||n!=null&&typeof n!="function")throw new TypeError(Cb);var S=function(){var B=arguments,K=n?n.apply(this,B):B[0],J=S.cache;if(J.has(K))return J.get(K);var it=t.apply(this,B);return S.cache=J.set(K,it)||J,it};return S.cache=new(Zn.Cache||Mh),S}Zn.Cache=Mh;var Sb=Zn,Mb=Sb,Ab=500;function Tb(t){var n=Mb(t,function(B){return S.size===Ab&&S.clear(),B}),S=n.cache;return n}var kb=Tb,Pb=kb,Lb=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Eb=/\\(\\)?/g,Ob=Pb(function(t){var n=[];return t.charCodeAt(0)===46&&n.push(""),t.replace(Lb,function(S,B,K,J){n.push(K?J.replace(Eb,"$1"):B||S)}),n}),Db=Ob;function jb(t,n){for(var S=-1,B=t==null?0:t.length,K=Array(B);++S<B;)K[S]=n(t[S],S,t);return K}var Ah=jb,ba=_i,Ib=Ah,_b=je,Nb=Eo,Bb=1/0,xa=ba?ba.prototype:void 0,wa=xa?xa.toString:void 0;function Th(t){if(typeof t=="string")return t;if(_b(t))return Ib(t,Th)+"";if(Nb(t))return wa?wa.call(t):"";var n=t+"";return n=="0"&&1/t==-Bb?"-0":n}var kh=Th,Rb=kh;function zb(t){return t==null?"":Rb(t)}var qn=zb,Fb=je,Gb=$n,Wb=Db,Hb=qn;function Ub(t,n){return Fb(t)?t:Gb(t,n)?[t]:Wb(Hb(t))}var Oo=Ub,Xb=Eo,Yb=1/0;function Vb(t){if(typeof t=="string"||Xb(t))return t;var n=t+"";return n=="0"&&1/t==-Yb?"-0":n}var dr=Vb,$b=Oo,Zb=dr;function qb(t,n){n=$b(n,t);for(var S=0,B=n.length;t!=null&&S<B;)t=t[Zb(n[S++])];return S&&S==B?t:void 0}var Kn=qb,Kb=Kn;function Jb(t,n,S){var B=t==null?void 0:Kb(t,n);return B===void 0?S:B}var Ph=Jb;const Qb=xe(Ph);function tx(t,n){return t!=null&&n in Object(t)}var ex=tx,ix=Oo,rx=lr,ox=je,nx=bo,sx=Gn,ax=dr;function lx(t,n,S){n=ix(n,t);for(var B=-1,K=n.length,J=!1;++B<K;){var it=ax(n[B]);if(!(J=t!=null&&S(t,it)))break;t=t[it]}return J||++B!=K?J:(K=t==null?0:t.length,!!K&&sx(K)&&nx(it,K)&&(ox(t)||rx(t)))}var Lh=lx,hx=ex,cx=Lh;function px(t,n){return t!=null&&cx(t,n,hx)}var Eh=px,dx=Vn,ux=Ph,fx=Eh,gx=$n,mx=Ch,yx=Sh,vx=dr,bx=1,xx=2;function wx(t,n){return gx(t)&&mx(n)?yx(vx(t),n):function(S){var B=ux(S,t);return B===void 0&&B===n?fx(S,t):dx(n,B,bx|xx)}}var Cx=wx;function Sx(t){return t}var Jn=Sx;function Mx(t){return function(n){return n==null?void 0:n[t]}}var Ax=Mx,Tx=Kn;function kx(t){return function(n){return Tx(n,t)}}var Px=kx,Lx=Ax,Ex=Px,Ox=$n,Dx=dr;function jx(t){return Ox(t)?Lx(Dx(t)):Ex(t)}var Ix=jx,_x=db,Nx=Cx,Bx=Jn,Rx=je,zx=Ix;function Fx(t){return typeof t=="function"?t:t==null?Bx:typeof t=="object"?Rx(t)?Nx(t[0],t[1]):_x(t):zx(t)}var Oh=Fx,Gx=vo,Wx=hh,Hx=Oh;function Ux(t,n){var S={};return n=Hx(n),Wx(t,function(B,K,J){Gx(S,K,n(B,K,J))}),S}var Xx=Ux;const Dh=xe(Xx),Yx=t=>["__int4","__int8","int","tinyint","bigint","int2","int4","int8","smallint","mediumint","serial","integer","byteint","int64"].includes(t.toLowerCase()),Vx=t=>["basemeasure","calculatedmeasure","float","float4","float8","double precision","double","numeric","decimal","real","number","float64"].includes(t.toLowerCase()),me=t=>Yx(t)||Vx(t)||t==="numeric-attribute",jh=t=>["textdimension","string","varchar","text","ntext","char","character","character varying","smalltext","nchar","nvarchar","json","jsonb","object","text-attribute"].includes(t.toLowerCase()),Ue=t=>["datelevel","date","time","datetime","timestamp without time zone","timestamp","timestamp with time zone","timestamp(6)","timestamp_tz","timestamp_ntz","timestamp_ltz","timestampltz","timestampntz","timestamptz","datetime64[ns]","timewithtimezone","timestampwithtimezone","timestamp_with_timezone"].includes(t.toLowerCase()),Ih=t=>["bool","boolean","bit","logical"].includes(t.toLowerCase()),_h=t=>me(t)?"number":Ue(t)?"datetime":jh(t)?"text":Ih(t)?"boolean":"text",Nh=t=>_h(t).replace("number","numeric");class Gi extends mo{constructor(n,S,B,K,J){super(ei(n),B||Ut.Attribute,K),this._sort=exports.Sort.None,this.expression=S,this._sort=J||exports.Sort.None}get id(){return this.expression}getSort(){return this._sort}sort(n){return new Gi(this.name,this.expression,this.type,this.description,n)}jaql(n){const S={jaql:{title:this.name,dim:this.expression,datatype:Nh(this.type)}};return this._sort!=exports.Sort.None&&(S.jaql.sort=this._sort==exports.Sort.Ascending?"asc":"desc"),n===!0?S.jaql:S}serializable(){const n=super.serializable();return n.expression=this.expression,this.getSort()!==exports.Sort.None&&(n.sort=this.getSort().toString()),n}}class Be extends Gi{constructor(n,S,B,K,J,it){super(n,S,Ut.DateLevel,J,it),this._format=K,this.granularity=B}get id(){let n=`${this.expression}`;const{level:S="",dateTimeLevel:B="",bucket:K}=this.translateGranularityToJaql();return n+=`_${(S||B).toLowerCase()}`,K&&(n+=`_${K}`),n}getSort(){return this._sort}sort(n){return new Be(this.name,this.expression,this.granularity,this._format,this.description,n)}getFormat(){return this._format}format(n){return new Be(this.name,this.expression,this.granularity,n,this.description,this._sort)}serializable(){const n=super.serializable();return n.granularity=this.granularity,this.getFormat()!==void 0&&(n.format=this.getFormat()),n}jaql(n){const S={jaql:Object.assign({title:this.name,dim:this.expression,datatype:Nh(this.type)},this.translateGranularityToJaql())};if(this._format!==void 0){const B=S.jaql.dateTimeLevel||S.jaql.level;S.format={mask:{}},S.format.mask[B]=this._format}return this._sort!=exports.Sort.None&&(S.jaql.sort=this._sort==exports.Sort.Ascending?"asc":"desc"),n===!0?S.jaql:S}translateGranularityToJaql(){const n="minutes",S="seconds";switch(this.granularity){case Nt.Years:case Nt.Quarters:case Nt.Months:case Nt.Weeks:case Nt.Days:return{level:this.granularity.toLowerCase()};case Nt.Hours:return{dateTimeLevel:n,bucket:"60"};case Nt.MinutesRoundTo30:return{dateTimeLevel:n,bucket:"30"};case Nt.MinutesRoundTo15:return{dateTimeLevel:n,bucket:"15"};case Nt.Minutes:return{dateTimeLevel:n,bucket:"1"};case Nt.Seconds:return{dateTimeLevel:S,bucket:"0"};case Nt.AggHours:return{level:n,bucket:"60"};case Nt.AggMinutesRoundTo30:return{level:n,bucket:"30"};case Nt.AggMinutesRoundTo15:return{level:n,bucket:"15"};case Nt.AggMinutesRoundTo1:return{level:n,bucket:"1"};default:return console.warn("Unsupported level"),{level:this.granularity}}}static translateJaqlToGranularity(n){const S=B=>(console.warn("Unsupported granularity",B),B);if(n.dateTimeLevel){if(n.dateTimeLevel!=="minutes"&&n.dateTimeLevel!=="seconds")return S(n.dateTimeLevel);switch(n.bucket){case"60":return Nt.Hours;case"30":return Nt.MinutesRoundTo30;case"15":return Nt.MinutesRoundTo15;case"1":return Nt.Minutes;case"0":return Nt.Seconds;default:return S(n.dateTimeLevel)}}switch(n.level){case"years":return Nt.Years;case"quarters":return Nt.Quarters;case"months":return Nt.Months;case"weeks":return Nt.Weeks;case"days":return Nt.Days;case"minutes":switch(n.bucket){case"60":return Nt.AggHours;case"30":return Nt.AggMinutesRoundTo30;case"15":return Nt.AggMinutesRoundTo15;case"1":return Nt.AggMinutesRoundTo1;default:return S(n.level)}default:return S(n.level)}}static getDefaultFormatForGranularity(n){switch(n){case Nt.Years:return"yyyy";case Nt.Quarters:return"Q yyyy";case Nt.Months:return"yyyy-MM";case Nt.Weeks:return"ww yyyy";case Nt.Days:return"yyyy-MM-dd";case Nt.Hours:return"yyyy-MM-dd HH:mm";case Nt.MinutesRoundTo30:return"yyyy-MM-dd HH:mm";case Nt.MinutesRoundTo15:return"yyyy-MM-dd HH:mm";case Nt.Minutes:return"yyyy-MM-dd HH:mm";case Nt.Seconds:return"yyyy-MM-dd HH:mm:ss";case Nt.AggHours:return"HH:mm";case Nt.AggMinutesRoundTo30:return"HH:mm";case Nt.AggMinutesRoundTo15:return"HH:mm";case Nt.AggMinutesRoundTo1:return"HH:mm";default:return""}}}function fn(t,n,S,B){return(B.length>0?B+".":"")+ei(t)+"."+ei(n)+(S&&S.length>0?"."+Be.translateJaqlToGranularity({level:S}):"")}function $x(t,n,S){if(typeof S=="number")t.push(S.toString());else if(S&&Ut.isMeasureTemplate(S.type)){S=S.sum();const B=`[${ei(S.name)}]`;t.push(B),n[B]=S}else if(S&&Ut.isMeasure(S.type)){const B=`[${ei(S.name)}]`;t.push(B),n[B]=S}else if(S&&Ut.isFilter(S.type)){const B=`[${ei(S.name)}]`;t.push(B),n[B]=S}else if(S&&Ut.isAttribute(S.type)){const B=`[${ei(S.name)}]`;t.push(B),n[B]=S}}function Bh(t,n,S,B){const K={},J=[S+"("];return $x(J,K,t),B&&J.push(`, ${B}`),J.push(")"),new Li(n,J.join(""),K)}function Rh(t){var n;const S="formula"in t;let B;if(t.sort&&(B=t.sort==="asc"?exports.Sort.Ascending:exports.Sort.Descending),S){const at=Dh((n=t.context)!==null&&n!==void 0?n:{},lt=>lt?Rh(lt):{});return new Li(t.title,t.formula,at,void 0,void 0,B)}const K=!!t.agg,J=Ue(t.datatype),it=me(t.datatype)?Ut.NumericAttribute:Ut.TextAttribute,nt=J?new Be(t.title,t.dim,Be.translateJaqlToGranularity(t),void 0,void 0,B):new Gi(t.title,t.dim,it,void 0,B);return K?new Qe(t.title,nt,Qe.aggregationFromJAQL(t.agg||""),void 0,void 0,B):nt}function Zx(t,n,S){const B=Object.entries(S).reduce((K,[J,it])=>(K[`[${J}]`]=it.jaql().jaql,K),{});return Rh({title:t,formula:n,context:B})}function Qn(t,n,S,B){return new Qe(`${n.toString()} ${t.name}`,t,n,B)}function qx(t,n,S){return Qn(t,re.Min,n,S)}function Kx(t,n,S){return Qn(t,re.Max,n,S)}function Jx(t,n,S){let B;const K=J=>J.replace("advancedSmoothing","smooth").replace("localEstimates","local");return S&&(B=Object.entries(S).map(J=>K(`"${J[0]}=${J[1]}"`)).join(",")),Bh(t,n!=null?n:t.name+" Trend","trend",B)}function Qx(t,n,S){let B;if(S){const K=Object.assign({forecastHorizon:3},S);if(K.startDate){const J=new Date(K.startDate);K.startDate=J.toISOString().replace(/.\d+Z$/g,"")}if(K.endDate){const J=new Date(K.endDate);K.endDate=J.toISOString().replace(/.\d+Z$/g,"")}B=Object.entries(K).map(J=>`"${J[0]}=${J[1]}"`).join(",")}else B='"forecastHorizon=3"';return Bh(t,n!=null?n:t.name+" Forecast","forecast",B)}let zh=class extends Fn{constructor(n,S){super(Ql,{key:n,interpolationOptions:S},_u.t)}};class Fh extends mo{constructor(n,S,B,K,J){super(n,S,K),this._sort=exports.Sort.None,this._format="#,#.00",this._format=B,this._sort=J||exports.Sort.None}getSort(){return this._sort}getFormat(){return this._format}serializable(){const n=super.serializable();return this.getFormat()!==void 0&&(n.format=this.getFormat()),this.getSort()!==void 0&&(n.sort=this.getSort()),n}}class Qe extends Fh{constructor(n,S,B,K,J,it){super(n,Ut.BaseMeasure,K,J,it),this.attribute=S,this.aggregation=B}static aggregationFromJAQL(n){switch(n){case"sum":return re.Sum;case"avg":return re.Average;case"min":return re.Min;case"max":return re.Max;case"countduplicates":return re.Count;case"median":return re.Median;case"count":return re.CountDistinct;case"var":return re.Variance;case"stdev":return re.StandardDeviation}return re.Sum}static aggregationToJAQL(n){switch(n){case re.Sum:return"sum";case re.Average:return"avg";case re.Min:return"min";case re.Max:return"max";case re.Count:return"countduplicates";case re.CountDistinct:return"count";case re.Median:return"median";case re.Variance:return"var";case re.StandardDeviation:return"stdev"}return re.Sum}sort(n){return new Qe(this.name,this.attribute,this.aggregation,this._format,this.description,n)}format(n){return new Qe(this.name,this.attribute,this.aggregation,n,this.description,this._sort)}get id(){return`${this.attribute.expression}_${this.aggregation}`}serializable(){const n=super.serializable();return n.aggregation=this.aggregation,n.attribute=this.attribute.serializable(),n}jaql(n){const S=this.attribute.jaql(!0),B={jaql:Object.assign(Object.assign({},S),{title:this.name,agg:Qe.aggregationToJAQL(this.aggregation)})};return this._format&&(B.format={number:this._format}),this._sort!=exports.Sort.None&&(B.jaql.sort=this._sort==exports.Sort.Ascending?"asc":"desc"),n===!0?B.jaql:B}}class Li extends Fh{constructor(n,S,B,K,J,it){super(n,Ut.CalculatedMeasure,K,J,it),this.expression=S,this.context=B}sort(n){return new Li(this.name,this.expression,this.context,this._format,this.description,n)}format(n){return new Li(this.name,this.expression,this.context,n,this.description,this._sort)}get id(){return this.expression}serializable(){const n=super.serializable();return n.expression=this.expression,n.context={},Object.getOwnPropertyNames(this.context).forEach(S=>{n.context[S]=this.context[S].serializable()}),n}jaql(n){const S={jaql:{title:this.name,formula:this.expression}},B={};return Object.getOwnPropertyNames(this.context).forEach(J=>B[J]=this.context[J].jaql(!0)),S.jaql.context=B,this._format&&(S.format={number:this._format}),this._sort!=exports.Sort.None&&(S.jaql.sort=this._sort==exports.Sort.Ascending?"asc":"desc"),n===!0?S.jaql:S}}function Pr(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Gh={exports:{}};(function(t,n){(function(S){t.exports=S()})(function(){return function S(B,K,J){function it(lt,pt){if(!K[lt]){if(!B[lt]){var ft=typeof Pr=="function"&&Pr;if(!pt&&ft)return ft(lt,!0);if(nt)return nt(lt,!0);throw new Error("Cannot find module '"+lt+"'")}pt=K[lt]={exports:{}},B[lt][0].call(pt.exports,function(N){var rt=B[lt][1][N];return it(rt||N)},pt,pt.exports,S,B,K,J)}return K[lt].exports}for(var nt=typeof Pr=="function"&&Pr,at=0;at<J.length;at++)it(J[at]);return it}({1:[function(S,B,K){(function(J,it,nt,at,lt,pt,ft,N,rt){var W=S("crypto");function R(D,E){E=Z(D,E);var x;return(x=E.algorithm!=="passthrough"?W.createHash(E.algorithm):new G).write===void 0&&(x.write=x.update,x.end=x.update),$(E,x).dispatch(D),x.update||x.end(""),x.digest?x.digest(E.encoding==="buffer"?void 0:E.encoding):(D=x.read(),E.encoding!=="buffer"?D.toString(E.encoding):D)}(K=B.exports=R).sha1=function(D){return R(D)},K.keys=function(D){return R(D,{excludeValues:!0,algorithm:"sha1",encoding:"hex"})},K.MD5=function(D){return R(D,{algorithm:"md5",encoding:"hex"})},K.keysMD5=function(D){return R(D,{algorithm:"md5",encoding:"hex",excludeValues:!0})};var U=W.getHashes?W.getHashes().slice():["sha1","md5"],Y=(U.push("passthrough"),["buffer","hex","binary","base64"]);function Z(D,E){var x={};if(x.algorithm=(E=E||{}).algorithm||"sha1",x.encoding=E.encoding||"hex",x.excludeValues=!!E.excludeValues,x.algorithm=x.algorithm.toLowerCase(),x.encoding=x.encoding.toLowerCase(),x.ignoreUnknown=E.ignoreUnknown===!0,x.respectType=E.respectType!==!1,x.respectFunctionNames=E.respectFunctionNames!==!1,x.respectFunctionProperties=E.respectFunctionProperties!==!1,x.unorderedArrays=E.unorderedArrays===!0,x.unorderedSets=E.unorderedSets!==!1,x.unorderedObjects=E.unorderedObjects!==!1,x.replacer=E.replacer||void 0,x.excludeKeys=E.excludeKeys||void 0,D===void 0)throw new Error("Object argument required.");for(var T=0;T<U.length;++T)U[T].toLowerCase()===x.algorithm.toLowerCase()&&(x.algorithm=U[T]);if(U.indexOf(x.algorithm)===-1)throw new Error('Algorithm "'+x.algorithm+'" not supported. supported values: '+U.join(", "));if(Y.indexOf(x.encoding)===-1&&x.algorithm!=="passthrough")throw new Error('Encoding "'+x.encoding+'" not supported. supported values: '+Y.join(", "));return x}function q(D){if(typeof D=="function")return/^function\s+\w*\s*\(\s*\)\s*{\s+\[native code\]\s+}$/i.exec(Function.prototype.toString.call(D))!=null}function $(D,E,x){x=x||[];function T(u){return E.update?E.update(u,"utf8"):E.write(u,"utf8")}return{dispatch:function(u){return this["_"+((u=D.replacer?D.replacer(u):u)===null?"null":typeof u)](u)},_object:function(u){var p,g=Object.prototype.toString.call(u),v=/\[object (.*)\]/i.exec(g);if(v=(v=v?v[1]:"unknown:["+g+"]").toLowerCase(),0<=(g=x.indexOf(u)))return this.dispatch("[CIRCULAR:"+g+"]");if(x.push(u),nt!==void 0&&nt.isBuffer&&nt.isBuffer(u))return T("buffer:"),T(u);if(v==="object"||v==="function"||v==="asyncfunction")return g=Object.keys(u),D.unorderedObjects&&(g=g.sort()),D.respectType===!1||q(u)||g.splice(0,0,"prototype","__proto__","constructor"),D.excludeKeys&&(g=g.filter(function(y){return!D.excludeKeys(y)})),T("object:"+g.length+":"),p=this,g.forEach(function(y){p.dispatch(y),T(":"),D.excludeValues||p.dispatch(u[y]),T(",")});if(!this["_"+v]){if(D.ignoreUnknown)return T("["+v+"]");throw new Error('Unknown object type "'+v+'"')}this["_"+v](u)},_array:function(u,y){y=y!==void 0?y:D.unorderedArrays!==!1;var g=this;if(T("array:"+u.length+":"),!y||u.length<=1)return u.forEach(function(C){return g.dispatch(C)});var v=[],y=u.map(function(C){var P=new G,L=x.slice();return $(D,P,L).dispatch(C),v=v.concat(L.slice(x.length)),P.read().toString()});return x=x.concat(v),y.sort(),this._array(y,!1)},_date:function(u){return T("date:"+u.toJSON())},_symbol:function(u){return T("symbol:"+u.toString())},_error:function(u){return T("error:"+u.toString())},_boolean:function(u){return T("bool:"+u.toString())},_string:function(u){T("string:"+u.length+":"),T(u.toString())},_function:function(u){T("fn:"),q(u)?this.dispatch("[native]"):this.dispatch(u.toString()),D.respectFunctionNames!==!1&&this.dispatch("function-name:"+String(u.name)),D.respectFunctionProperties&&this._object(u)},_number:function(u){return T("number:"+u.toString())},_xml:function(u){return T("xml:"+u.toString())},_null:function(){return T("Null")},_undefined:function(){return T("Undefined")},_regexp:function(u){return T("regex:"+u.toString())},_uint8array:function(u){return T("uint8array:"),this.dispatch(Array.prototype.slice.call(u))},_uint8clampedarray:function(u){return T("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(u))},_int8array:function(u){return T("int8array:"),this.dispatch(Array.prototype.slice.call(u))},_uint16array:function(u){return T("uint16array:"),this.dispatch(Array.prototype.slice.call(u))},_int16array:function(u){return T("int16array:"),this.dispatch(Array.prototype.slice.call(u))},_uint32array:function(u){return T("uint32array:"),this.dispatch(Array.prototype.slice.call(u))},_int32array:function(u){return T("int32array:"),this.dispatch(Array.prototype.slice.call(u))},_float32array:function(u){return T("float32array:"),this.dispatch(Array.prototype.slice.call(u))},_float64array:function(u){return T("float64array:"),this.dispatch(Array.prototype.slice.call(u))},_arraybuffer:function(u){return T("arraybuffer:"),this.dispatch(new Uint8Array(u))},_url:function(u){return T("url:"+u.toString())},_map:function(u){return T("map:"),u=Array.from(u),this._array(u,D.unorderedSets!==!1)},_set:function(u){return T("set:"),u=Array.from(u),this._array(u,D.unorderedSets!==!1)},_file:function(u){return T("file:"),this.dispatch([u.name,u.size,u.type,u.lastModfied])},_blob:function(){if(D.ignoreUnknown)return T("[blob]");throw Error(`Hashing Blob objects is currently not supported
2
- (see https://github.com/puleos/object-hash/issues/26)
3
- Use "options.replacer" or "options.ignoreUnknown"
4
- `)},_domwindow:function(){return T("domwindow")},_bigint:function(u){return T("bigint:"+u.toString())},_process:function(){return T("process")},_timer:function(){return T("timer")},_pipe:function(){return T("pipe")},_tcp:function(){return T("tcp")},_udp:function(){return T("udp")},_tty:function(){return T("tty")},_statwatcher:function(){return T("statwatcher")},_securecontext:function(){return T("securecontext")},_connection:function(){return T("connection")},_zlib:function(){return T("zlib")},_context:function(){return T("context")},_nodescript:function(){return T("nodescript")},_httpparser:function(){return T("httpparser")},_dataview:function(){return T("dataview")},_signal:function(){return T("signal")},_fsevent:function(){return T("fsevent")},_tlswrap:function(){return T("tlswrap")}}}function G(){return{buf:"",write:function(D){this.buf+=D},end:function(D){this.buf+=D},read:function(){return this.buf}}}K.writeToStream=function(D,E,x){return x===void 0&&(x=E,E={}),$(E=Z(D,E),x).dispatch(D)}}).call(this,S("lYpoI2"),typeof self!="undefined"?self:typeof window!="undefined"?window:{},S("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/fake_9a5aa49d.js","/")},{buffer:3,crypto:5,lYpoI2:11}],2:[function(S,B,K){(function(J,it,nt,at,lt,pt,ft,N,rt){(function(W){var R=typeof Uint8Array!="undefined"?Uint8Array:Array,U=43,Y=47,Z=48,q=97,$=65,G=45,D=95;function E(x){return x=x.charCodeAt(0),x===U||x===G?62:x===Y||x===D?63:x<Z?-1:x<Z+10?x-Z+26+26:x<$+26?x-$:x<q+26?x-q+26:void 0}W.toByteArray=function(x){var T,u;if(0<x.length%4)throw new Error("Invalid string. Length must be a multiple of 4");var p=x.length,p=x.charAt(p-2)==="="?2:x.charAt(p-1)==="="?1:0,g=new R(3*x.length/4-p),v=0<p?x.length-4:x.length,y=0;function C(P){g[y++]=P}for(T=0;T<v;T+=4,0)C((16711680&(u=E(x.charAt(T))<<18|E(x.charAt(T+1))<<12|E(x.charAt(T+2))<<6|E(x.charAt(T+3))))>>16),C((65280&u)>>8),C(255&u);return p==2?C(255&(u=E(x.charAt(T))<<2|E(x.charAt(T+1))>>4)):p==1&&(C((u=E(x.charAt(T))<<10|E(x.charAt(T+1))<<4|E(x.charAt(T+2))>>2)>>8&255),C(255&u)),g},W.fromByteArray=function(x){var T,u,p,g,v=x.length%3,y="";function C(P){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(P)}for(T=0,p=x.length-v;T<p;T+=3)u=(x[T]<<16)+(x[T+1]<<8)+x[T+2],y+=C((g=u)>>18&63)+C(g>>12&63)+C(g>>6&63)+C(63&g);switch(v){case 1:y=(y+=C((u=x[x.length-1])>>2))+C(u<<4&63)+"==";break;case 2:y=(y=(y+=C((u=(x[x.length-2]<<8)+x[x.length-1])>>10))+C(u>>4&63))+C(u<<2&63)+"="}return y}})(K===void 0?this.base64js={}:K)}).call(this,S("lYpoI2"),typeof self!="undefined"?self:typeof window!="undefined"?window:{},S("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/base64-js/lib/b64.js","/node_modules/gulp-browserify/node_modules/base64-js/lib")},{buffer:3,lYpoI2:11}],3:[function(S,B,K){(function(J,it,U,at,lt,pt,ft,N,rt){var W=S("base64-js"),R=S("ieee754");function U(s,m,A){if(!(this instanceof U))return new U(s,m,A);var O,d,w,k,z=typeof s;if(m==="base64"&&z=="string")for(s=(k=s).trim?k.trim():k.replace(/^\s+|\s+$/g,"");s.length%4!=0;)s+="=";if(z=="number")O=M(s);else if(z=="string")O=U.byteLength(s,m);else{if(z!="object")throw new Error("First argument needs to be a number, array or string.");O=M(s.length)}if(U._useTypedArrays?d=U._augment(new Uint8Array(O)):((d=this).length=O,d._isBuffer=!0),U._useTypedArrays&&typeof s.byteLength=="number")d._set(s);else if(f(k=s)||U.isBuffer(k)||k&&typeof k=="object"&&typeof k.length=="number")for(w=0;w<O;w++)U.isBuffer(s)?d[w]=s.readUInt8(w):d[w]=s[w];else if(z=="string")d.write(s,0,m);else if(z=="number"&&!U._useTypedArrays&&!A)for(w=0;w<O;w++)d[w]=0;return d}function Y(s,m,A,O){return U._charsWritten=e(function(d){for(var w=[],k=0;k<d.length;k++)w.push(255&d.charCodeAt(k));return w}(m),s,A,O)}function Z(s,m,A,O){return U._charsWritten=e(function(d){for(var w,k,z=[],F=0;F<d.length;F++)k=d.charCodeAt(F),w=k>>8,k=k%256,z.push(k),z.push(w);return z}(m),s,A,O)}function q(s,m,A){var O="";A=Math.min(s.length,A);for(var d=m;d<A;d++)O+=String.fromCharCode(s[d]);return O}function $(s,m,A,w){w||(a(typeof A=="boolean","missing or invalid endian"),a(m!=null,"missing offset"),a(m+1<s.length,"Trying to read beyond buffer length"));var d,w=s.length;if(!(w<=m))return A?(d=s[m],m+1<w&&(d|=s[m+1]<<8)):(d=s[m]<<8,m+1<w&&(d|=s[m+1])),d}function G(s,m,A,w){w||(a(typeof A=="boolean","missing or invalid endian"),a(m!=null,"missing offset"),a(m+3<s.length,"Trying to read beyond buffer length"));var d,w=s.length;if(!(w<=m))return A?(m+2<w&&(d=s[m+2]<<16),m+1<w&&(d|=s[m+1]<<8),d|=s[m],m+3<w&&(d+=s[m+3]<<24>>>0)):(m+1<w&&(d=s[m+1]<<16),m+2<w&&(d|=s[m+2]<<8),m+3<w&&(d|=s[m+3]),d+=s[m]<<24>>>0),d}function D(s,m,A,O){if(O||(a(typeof A=="boolean","missing or invalid endian"),a(m!=null,"missing offset"),a(m+1<s.length,"Trying to read beyond buffer length")),!(s.length<=m))return O=$(s,m,A,!0),32768&O?-1*(65535-O+1):O}function E(s,m,A,O){if(O||(a(typeof A=="boolean","missing or invalid endian"),a(m!=null,"missing offset"),a(m+3<s.length,"Trying to read beyond buffer length")),!(s.length<=m))return O=G(s,m,A,!0),2147483648&O?-1*(4294967295-O+1):O}function x(s,m,A,O){return O||(a(typeof A=="boolean","missing or invalid endian"),a(m+3<s.length,"Trying to read beyond buffer length")),R.read(s,m,A,23,4)}function T(s,m,A,O){return O||(a(typeof A=="boolean","missing or invalid endian"),a(m+7<s.length,"Trying to read beyond buffer length")),R.read(s,m,A,52,8)}function u(s,m,A,O,d){if(d||(a(m!=null,"missing value"),a(typeof O=="boolean","missing or invalid endian"),a(A!=null,"missing offset"),a(A+1<s.length,"trying to write beyond buffer length"),o(m,65535)),d=s.length,!(d<=A))for(var w=0,k=Math.min(d-A,2);w<k;w++)s[A+w]=(m&255<<8*(O?w:1-w))>>>8*(O?w:1-w)}function p(s,m,A,O,d){if(d||(a(m!=null,"missing value"),a(typeof O=="boolean","missing or invalid endian"),a(A!=null,"missing offset"),a(A+3<s.length,"trying to write beyond buffer length"),o(m,4294967295)),d=s.length,!(d<=A))for(var w=0,k=Math.min(d-A,4);w<k;w++)s[A+w]=m>>>8*(O?w:3-w)&255}function g(s,m,A,O,d){d||(a(m!=null,"missing value"),a(typeof O=="boolean","missing or invalid endian"),a(A!=null,"missing offset"),a(A+1<s.length,"Trying to write beyond buffer length"),i(m,32767,-32768)),s.length<=A||u(s,0<=m?m:65535+m+1,A,O,d)}function v(s,m,A,O,d){d||(a(m!=null,"missing value"),a(typeof O=="boolean","missing or invalid endian"),a(A!=null,"missing offset"),a(A+3<s.length,"Trying to write beyond buffer length"),i(m,2147483647,-2147483648)),s.length<=A||p(s,0<=m?m:4294967295+m+1,A,O,d)}function y(s,m,A,O,d){d||(a(m!=null,"missing value"),a(typeof O=="boolean","missing or invalid endian"),a(A!=null,"missing offset"),a(A+3<s.length,"Trying to write beyond buffer length"),c(m,34028234663852886e22,-34028234663852886e22)),s.length<=A||R.write(s,m,A,O,23,4)}function C(s,m,A,O,d){d||(a(m!=null,"missing value"),a(typeof O=="boolean","missing or invalid endian"),a(A!=null,"missing offset"),a(A+7<s.length,"Trying to write beyond buffer length"),c(m,17976931348623157e292,-17976931348623157e292)),s.length<=A||R.write(s,m,A,O,52,8)}K.Buffer=U,K.SlowBuffer=U,K.INSPECT_MAX_BYTES=50,U.poolSize=8192,U._useTypedArrays=function(){try{var s=new ArrayBuffer(0),m=new Uint8Array(s);return m.foo=function(){return 42},m.foo()===42&&typeof m.subarray=="function"}catch(A){return!1}}(),U.isEncoding=function(s){switch(String(s).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},U.isBuffer=function(s){return!(s==null||!s._isBuffer)},U.byteLength=function(s,m){var A;switch(s+="",m||"utf8"){case"hex":A=s.length/2;break;case"utf8":case"utf-8":A=l(s).length;break;case"ascii":case"binary":case"raw":A=s.length;break;case"base64":A=h(s).length;break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":A=2*s.length;break;default:throw new Error("Unknown encoding")}return A},U.concat=function(s,m){if(a(f(s),`Usage: Buffer.concat(list, [totalLength])
5
- list should be an Array.`),s.length===0)return new U(0);if(s.length===1)return s[0];if(typeof m!="number")for(d=m=0;d<s.length;d++)m+=s[d].length;for(var A=new U(m),O=0,d=0;d<s.length;d++){var w=s[d];w.copy(A,O),O+=w.length}return A},U.prototype.write=function(s,m,A,O){isFinite(m)?isFinite(A)||(O=A,A=void 0):(F=O,O=m,m=A,A=F),m=Number(m)||0;var d,w,k,z,F=this.length-m;switch((!A||F<(A=Number(A)))&&(A=F),O=String(O||"utf8").toLowerCase()){case"hex":d=function(j,I,_,V){_=Number(_)||0;var X=j.length-_;(!V||X<(V=Number(V)))&&(V=X),a((X=I.length)%2==0,"Invalid hex string"),X/2<V&&(V=X/2);for(var H=0;H<V;H++){var Q=parseInt(I.substr(2*H,2),16);a(!isNaN(Q),"Invalid hex string"),j[_+H]=Q}return U._charsWritten=2*H,H}(this,s,m,A);break;case"utf8":case"utf-8":w=this,k=m,z=A,d=U._charsWritten=e(l(s),w,k,z);break;case"ascii":case"binary":d=Y(this,s,m,A);break;case"base64":w=this,k=m,z=A,d=U._charsWritten=e(h(s),w,k,z);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":d=Z(this,s,m,A);break;default:throw new Error("Unknown encoding")}return d},U.prototype.toString=function(s,m,A){var O,d,w,k,z=this;if(s=String(s||"utf8").toLowerCase(),m=Number(m)||0,(A=A!==void 0?Number(A):z.length)===m)return"";switch(s){case"hex":O=function(F,j,I){var _=F.length;(!j||j<0)&&(j=0),(!I||I<0||_<I)&&(I=_);for(var V="",X=j;X<I;X++)V+=b(F[X]);return V}(z,m,A);break;case"utf8":case"utf-8":O=function(F,j,I){var _="",V="";I=Math.min(F.length,I);for(var X=j;X<I;X++)F[X]<=127?(_+=r(V)+String.fromCharCode(F[X]),V=""):V+="%"+F[X].toString(16);return _+r(V)}(z,m,A);break;case"ascii":case"binary":O=q(z,m,A);break;case"base64":d=z,k=A,O=(w=m)===0&&k===d.length?W.fromByteArray(d):W.fromByteArray(d.slice(w,k));break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":O=function(F,j,I){for(var _=F.slice(j,I),V="",X=0;X<_.length;X+=2)V+=String.fromCharCode(_[X]+256*_[X+1]);return V}(z,m,A);break;default:throw new Error("Unknown encoding")}return O},U.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},U.prototype.copy=function(s,m,A,O){if(m=m||0,(O=O||O===0?O:this.length)!==(A=A||0)&&s.length!==0&&this.length!==0){a(A<=O,"sourceEnd < sourceStart"),a(0<=m&&m<s.length,"targetStart out of bounds"),a(0<=A&&A<this.length,"sourceStart out of bounds"),a(0<=O&&O<=this.length,"sourceEnd out of bounds"),O>this.length&&(O=this.length);var d=(O=s.length-m<O-A?s.length-m+A:O)-A;if(d<100||!U._useTypedArrays)for(var w=0;w<d;w++)s[w+m]=this[w+A];else s._set(this.subarray(A,A+d),m)}},U.prototype.slice=function(s,m){var A=this.length;if(s=L(s,A,0),m=L(m,A,A),U._useTypedArrays)return U._augment(this.subarray(s,m));for(var O=m-s,d=new U(O,void 0,!0),w=0;w<O;w++)d[w]=this[w+s];return d},U.prototype.get=function(s){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(s)},U.prototype.set=function(s,m){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(s,m)},U.prototype.readUInt8=function(s,m){if(m||(a(s!=null,"missing offset"),a(s<this.length,"Trying to read beyond buffer length")),!(s>=this.length))return this[s]},U.prototype.readUInt16LE=function(s,m){return $(this,s,!0,m)},U.prototype.readUInt16BE=function(s,m){return $(this,s,!1,m)},U.prototype.readUInt32LE=function(s,m){return G(this,s,!0,m)},U.prototype.readUInt32BE=function(s,m){return G(this,s,!1,m)},U.prototype.readInt8=function(s,m){if(m||(a(s!=null,"missing offset"),a(s<this.length,"Trying to read beyond buffer length")),!(s>=this.length))return 128&this[s]?-1*(255-this[s]+1):this[s]},U.prototype.readInt16LE=function(s,m){return D(this,s,!0,m)},U.prototype.readInt16BE=function(s,m){return D(this,s,!1,m)},U.prototype.readInt32LE=function(s,m){return E(this,s,!0,m)},U.prototype.readInt32BE=function(s,m){return E(this,s,!1,m)},U.prototype.readFloatLE=function(s,m){return x(this,s,!0,m)},U.prototype.readFloatBE=function(s,m){return x(this,s,!1,m)},U.prototype.readDoubleLE=function(s,m){return T(this,s,!0,m)},U.prototype.readDoubleBE=function(s,m){return T(this,s,!1,m)},U.prototype.writeUInt8=function(s,m,A){A||(a(s!=null,"missing value"),a(m!=null,"missing offset"),a(m<this.length,"trying to write beyond buffer length"),o(s,255)),m>=this.length||(this[m]=s)},U.prototype.writeUInt16LE=function(s,m,A){u(this,s,m,!0,A)},U.prototype.writeUInt16BE=function(s,m,A){u(this,s,m,!1,A)},U.prototype.writeUInt32LE=function(s,m,A){p(this,s,m,!0,A)},U.prototype.writeUInt32BE=function(s,m,A){p(this,s,m,!1,A)},U.prototype.writeInt8=function(s,m,A){A||(a(s!=null,"missing value"),a(m!=null,"missing offset"),a(m<this.length,"Trying to write beyond buffer length"),i(s,127,-128)),m>=this.length||(0<=s?this.writeUInt8(s,m,A):this.writeUInt8(255+s+1,m,A))},U.prototype.writeInt16LE=function(s,m,A){g(this,s,m,!0,A)},U.prototype.writeInt16BE=function(s,m,A){g(this,s,m,!1,A)},U.prototype.writeInt32LE=function(s,m,A){v(this,s,m,!0,A)},U.prototype.writeInt32BE=function(s,m,A){v(this,s,m,!1,A)},U.prototype.writeFloatLE=function(s,m,A){y(this,s,m,!0,A)},U.prototype.writeFloatBE=function(s,m,A){y(this,s,m,!1,A)},U.prototype.writeDoubleLE=function(s,m,A){C(this,s,m,!0,A)},U.prototype.writeDoubleBE=function(s,m,A){C(this,s,m,!1,A)},U.prototype.fill=function(s,m,A){if(m=m||0,A=A||this.length,a(typeof(s=typeof(s=s||0)=="string"?s.charCodeAt(0):s)=="number"&&!isNaN(s),"value is not a number"),a(m<=A,"end < start"),A!==m&&this.length!==0){a(0<=m&&m<this.length,"start out of bounds"),a(0<=A&&A<=this.length,"end out of bounds");for(var O=m;O<A;O++)this[O]=s}},U.prototype.inspect=function(){for(var s=[],m=this.length,A=0;A<m;A++)if(s[A]=b(this[A]),A===K.INSPECT_MAX_BYTES){s[A+1]="...";break}return"<Buffer "+s.join(" ")+">"},U.prototype.toArrayBuffer=function(){if(typeof Uint8Array=="undefined")throw new Error("Buffer.toArrayBuffer not supported in this browser");if(U._useTypedArrays)return new U(this).buffer;for(var s=new Uint8Array(this.length),m=0,A=s.length;m<A;m+=1)s[m]=this[m];return s.buffer};var P=U.prototype;function L(s,m,A){return typeof s!="number"?A:m<=(s=~~s)?m:0<=s||0<=(s+=m)?s:0}function M(s){return(s=~~Math.ceil(+s))<0?0:s}function f(s){return(Array.isArray||function(m){return Object.prototype.toString.call(m)==="[object Array]"})(s)}function b(s){return s<16?"0"+s.toString(16):s.toString(16)}function l(s){for(var m=[],A=0;A<s.length;A++){var O=s.charCodeAt(A);if(O<=127)m.push(s.charCodeAt(A));else for(var d=A,w=(55296<=O&&O<=57343&&A++,encodeURIComponent(s.slice(d,A+1)).substr(1).split("%")),k=0;k<w.length;k++)m.push(parseInt(w[k],16))}return m}function h(s){return W.toByteArray(s)}function e(s,m,A,O){for(var d=0;d<O&&!(d+A>=m.length||d>=s.length);d++)m[d+A]=s[d];return d}function r(s){try{return decodeURIComponent(s)}catch(m){return"�"}}function o(s,m){a(typeof s=="number","cannot write a non-number as a number"),a(0<=s,"specified a negative value for writing an unsigned value"),a(s<=m,"value is larger than maximum value for type"),a(Math.floor(s)===s,"value has a fractional component")}function i(s,m,A){a(typeof s=="number","cannot write a non-number as a number"),a(s<=m,"value larger than maximum allowed value"),a(A<=s,"value smaller than minimum allowed value"),a(Math.floor(s)===s,"value has a fractional component")}function c(s,m,A){a(typeof s=="number","cannot write a non-number as a number"),a(s<=m,"value larger than maximum allowed value"),a(A<=s,"value smaller than minimum allowed value")}function a(s,m){if(!s)throw new Error(m||"Failed assertion")}U._augment=function(s){return s._isBuffer=!0,s._get=s.get,s._set=s.set,s.get=P.get,s.set=P.set,s.write=P.write,s.toString=P.toString,s.toLocaleString=P.toString,s.toJSON=P.toJSON,s.copy=P.copy,s.slice=P.slice,s.readUInt8=P.readUInt8,s.readUInt16LE=P.readUInt16LE,s.readUInt16BE=P.readUInt16BE,s.readUInt32LE=P.readUInt32LE,s.readUInt32BE=P.readUInt32BE,s.readInt8=P.readInt8,s.readInt16LE=P.readInt16LE,s.readInt16BE=P.readInt16BE,s.readInt32LE=P.readInt32LE,s.readInt32BE=P.readInt32BE,s.readFloatLE=P.readFloatLE,s.readFloatBE=P.readFloatBE,s.readDoubleLE=P.readDoubleLE,s.readDoubleBE=P.readDoubleBE,s.writeUInt8=P.writeUInt8,s.writeUInt16LE=P.writeUInt16LE,s.writeUInt16BE=P.writeUInt16BE,s.writeUInt32LE=P.writeUInt32LE,s.writeUInt32BE=P.writeUInt32BE,s.writeInt8=P.writeInt8,s.writeInt16LE=P.writeInt16LE,s.writeInt16BE=P.writeInt16BE,s.writeInt32LE=P.writeInt32LE,s.writeInt32BE=P.writeInt32BE,s.writeFloatLE=P.writeFloatLE,s.writeFloatBE=P.writeFloatBE,s.writeDoubleLE=P.writeDoubleLE,s.writeDoubleBE=P.writeDoubleBE,s.fill=P.fill,s.inspect=P.inspect,s.toArrayBuffer=P.toArrayBuffer,s}}).call(this,S("lYpoI2"),typeof self!="undefined"?self:typeof window!="undefined"?window:{},S("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/buffer/index.js","/node_modules/gulp-browserify/node_modules/buffer")},{"base64-js":2,buffer:3,ieee754:10,lYpoI2:11}],4:[function(S,B,K){(function(J,it,W,at,lt,pt,ft,N,rt){var W=S("buffer").Buffer,R=4,U=new W(R);U.fill(0),B.exports={hash:function(Y,Z,q,$){for(var G=Z(function(u,p){u.length%R!=0&&(g=u.length+(R-u.length%R),u=W.concat([u,U],g));for(var g,v=[],y=p?u.readInt32BE:u.readInt32LE,C=0;C<u.length;C+=R)v.push(y.call(u,C));return v}(Y=W.isBuffer(Y)?Y:new W(Y),$),8*Y.length),Z=$,D=new W(q),E=Z?D.writeInt32BE:D.writeInt32LE,x=0;x<G.length;x++)E.call(D,G[x],4*x,!0);return D}}}).call(this,S("lYpoI2"),typeof self!="undefined"?self:typeof window!="undefined"?window:{},S("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/helpers.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:11}],5:[function(S,B,K){(function(J,it,W,at,lt,pt,ft,N,rt){var W=S("buffer").Buffer,R=S("./sha"),U=S("./sha256"),Y=S("./rng"),Z={sha1:R,sha256:U,md5:S("./md5")},q=64,$=new W(q);function G(u,p){var g=Z[u=u||"sha1"],v=[];return g||D("algorithm:",u,"is not yet supported"),{update:function(y){return W.isBuffer(y)||(y=new W(y)),v.push(y),this},digest:function(y){var C=W.concat(v),C=p?function(P,L,M){W.isBuffer(L)||(L=new W(L)),W.isBuffer(M)||(M=new W(M)),L.length>q?L=P(L):L.length<q&&(L=W.concat([L,$],q));for(var f=new W(q),b=new W(q),l=0;l<q;l++)f[l]=54^L[l],b[l]=92^L[l];return M=P(W.concat([f,M])),P(W.concat([b,M]))}(g,p,C):g(C);return v=null,y?C.toString(y):C}}}function D(){var u=[].slice.call(arguments).join(" ");throw new Error([u,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
6
- `))}$.fill(0),K.createHash=function(u){return G(u)},K.createHmac=G,K.randomBytes=function(u,p){if(!p||!p.call)return new W(Y(u));try{p.call(this,void 0,new W(Y(u)))}catch(g){p(g)}};var E,x=["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman","pbkdf2"],T=function(u){K[u]=function(){D("sorry,",u,"is not implemented yet")}};for(E in x)T(x[E])}).call(this,S("lYpoI2"),typeof self!="undefined"?self:typeof window!="undefined"?window:{},S("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/index.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./md5":6,"./rng":7,"./sha":8,"./sha256":9,buffer:3,lYpoI2:11}],6:[function(S,B,K){(function(J,it,nt,at,lt,pt,ft,N,rt){var W=S("./helpers");function R(D,E){D[E>>5]|=128<<E%32,D[14+(E+64>>>9<<4)]=E;for(var x=1732584193,T=-271733879,u=-1732584194,p=271733878,g=0;g<D.length;g+=16){var v=x,y=T,C=u,P=p,x=Y(x,T,u,p,D[g+0],7,-680876936),p=Y(p,x,T,u,D[g+1],12,-389564586),u=Y(u,p,x,T,D[g+2],17,606105819),T=Y(T,u,p,x,D[g+3],22,-1044525330);x=Y(x,T,u,p,D[g+4],7,-176418897),p=Y(p,x,T,u,D[g+5],12,1200080426),u=Y(u,p,x,T,D[g+6],17,-1473231341),T=Y(T,u,p,x,D[g+7],22,-45705983),x=Y(x,T,u,p,D[g+8],7,1770035416),p=Y(p,x,T,u,D[g+9],12,-1958414417),u=Y(u,p,x,T,D[g+10],17,-42063),T=Y(T,u,p,x,D[g+11],22,-1990404162),x=Y(x,T,u,p,D[g+12],7,1804603682),p=Y(p,x,T,u,D[g+13],12,-40341101),u=Y(u,p,x,T,D[g+14],17,-1502002290),x=Z(x,T=Y(T,u,p,x,D[g+15],22,1236535329),u,p,D[g+1],5,-165796510),p=Z(p,x,T,u,D[g+6],9,-1069501632),u=Z(u,p,x,T,D[g+11],14,643717713),T=Z(T,u,p,x,D[g+0],20,-373897302),x=Z(x,T,u,p,D[g+5],5,-701558691),p=Z(p,x,T,u,D[g+10],9,38016083),u=Z(u,p,x,T,D[g+15],14,-660478335),T=Z(T,u,p,x,D[g+4],20,-405537848),x=Z(x,T,u,p,D[g+9],5,568446438),p=Z(p,x,T,u,D[g+14],9,-1019803690),u=Z(u,p,x,T,D[g+3],14,-187363961),T=Z(T,u,p,x,D[g+8],20,1163531501),x=Z(x,T,u,p,D[g+13],5,-1444681467),p=Z(p,x,T,u,D[g+2],9,-51403784),u=Z(u,p,x,T,D[g+7],14,1735328473),x=q(x,T=Z(T,u,p,x,D[g+12],20,-1926607734),u,p,D[g+5],4,-378558),p=q(p,x,T,u,D[g+8],11,-2022574463),u=q(u,p,x,T,D[g+11],16,1839030562),T=q(T,u,p,x,D[g+14],23,-35309556),x=q(x,T,u,p,D[g+1],4,-1530992060),p=q(p,x,T,u,D[g+4],11,1272893353),u=q(u,p,x,T,D[g+7],16,-155497632),T=q(T,u,p,x,D[g+10],23,-1094730640),x=q(x,T,u,p,D[g+13],4,681279174),p=q(p,x,T,u,D[g+0],11,-358537222),u=q(u,p,x,T,D[g+3],16,-722521979),T=q(T,u,p,x,D[g+6],23,76029189),x=q(x,T,u,p,D[g+9],4,-640364487),p=q(p,x,T,u,D[g+12],11,-421815835),u=q(u,p,x,T,D[g+15],16,530742520),x=$(x,T=q(T,u,p,x,D[g+2],23,-995338651),u,p,D[g+0],6,-198630844),p=$(p,x,T,u,D[g+7],10,1126891415),u=$(u,p,x,T,D[g+14],15,-1416354905),T=$(T,u,p,x,D[g+5],21,-57434055),x=$(x,T,u,p,D[g+12],6,1700485571),p=$(p,x,T,u,D[g+3],10,-1894986606),u=$(u,p,x,T,D[g+10],15,-1051523),T=$(T,u,p,x,D[g+1],21,-2054922799),x=$(x,T,u,p,D[g+8],6,1873313359),p=$(p,x,T,u,D[g+15],10,-30611744),u=$(u,p,x,T,D[g+6],15,-1560198380),T=$(T,u,p,x,D[g+13],21,1309151649),x=$(x,T,u,p,D[g+4],6,-145523070),p=$(p,x,T,u,D[g+11],10,-1120210379),u=$(u,p,x,T,D[g+2],15,718787259),T=$(T,u,p,x,D[g+9],21,-343485551),x=G(x,v),T=G(T,y),u=G(u,C),p=G(p,P)}return Array(x,T,u,p)}function U(D,E,x,T,u,p){return G((E=G(G(E,D),G(T,p)))<<u|E>>>32-u,x)}function Y(D,E,x,T,u,p,g){return U(E&x|~E&T,D,E,u,p,g)}function Z(D,E,x,T,u,p,g){return U(E&T|x&~T,D,E,u,p,g)}function q(D,E,x,T,u,p,g){return U(E^x^T,D,E,u,p,g)}function $(D,E,x,T,u,p,g){return U(x^(E|~T),D,E,u,p,g)}function G(D,E){var x=(65535&D)+(65535&E);return(D>>16)+(E>>16)+(x>>16)<<16|65535&x}B.exports=function(D){return W.hash(D,R,16)}}).call(this,S("lYpoI2"),typeof self!="undefined"?self:typeof window!="undefined"?window:{},S("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/md5.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],7:[function(S,B,K){(function(J,it,nt,at,lt,pt,ft,N,rt){B.exports=function(W){for(var R,U=new Array(W),Y=0;Y<W;Y++)!(3&Y)&&(R=4294967296*Math.random()),U[Y]=R>>>((3&Y)<<3)&255;return U}}).call(this,S("lYpoI2"),typeof self!="undefined"?self:typeof window!="undefined"?window:{},S("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/rng.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:11}],8:[function(S,B,K){(function(J,it,nt,at,lt,pt,ft,N,rt){var W=S("./helpers");function R(Z,q){Z[q>>5]|=128<<24-q%32,Z[15+(q+64>>9<<4)]=q;for(var $,G,D,E=Array(80),x=1732584193,T=-271733879,u=-1732584194,p=271733878,g=-1009589776,v=0;v<Z.length;v+=16){for(var y=x,C=T,P=u,L=p,M=g,f=0;f<80;f++){E[f]=f<16?Z[v+f]:Y(E[f-3]^E[f-8]^E[f-14]^E[f-16],1);var b=U(U(Y(x,5),(b=T,G=u,D=p,($=f)<20?b&G|~b&D:!($<40)&&$<60?b&G|b&D|G&D:b^G^D)),U(U(g,E[f]),($=f)<20?1518500249:$<40?1859775393:$<60?-1894007588:-899497514)),g=p,p=u,u=Y(T,30),T=x,x=b}x=U(x,y),T=U(T,C),u=U(u,P),p=U(p,L),g=U(g,M)}return Array(x,T,u,p,g)}function U(Z,q){var $=(65535&Z)+(65535&q);return(Z>>16)+(q>>16)+($>>16)<<16|65535&$}function Y(Z,q){return Z<<q|Z>>>32-q}B.exports=function(Z){return W.hash(Z,R,20,!0)}}).call(this,S("lYpoI2"),typeof self!="undefined"?self:typeof window!="undefined"?window:{},S("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],9:[function(S,B,K){(function(J,it,nt,at,lt,pt,ft,N,rt){function W(q,$){var G=(65535&q)+(65535&$);return(q>>16)+($>>16)+(G>>16)<<16|65535&G}function R(q,$){var G,D=new Array(1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298),E=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),x=new Array(64);q[$>>5]|=128<<24-$%32,q[15+($+64>>9<<4)]=$;for(var T,u,p=0;p<q.length;p+=16){for(var g=E[0],v=E[1],y=E[2],C=E[3],P=E[4],L=E[5],M=E[6],f=E[7],b=0;b<64;b++)x[b]=b<16?q[b+p]:W(W(W((u=x[b-2],Y(u,17)^Y(u,19)^Z(u,10)),x[b-7]),(u=x[b-15],Y(u,7)^Y(u,18)^Z(u,3))),x[b-16]),G=W(W(W(W(f,Y(u=P,6)^Y(u,11)^Y(u,25)),P&L^~P&M),D[b]),x[b]),T=W(Y(T=g,2)^Y(T,13)^Y(T,22),g&v^g&y^v&y),f=M,M=L,L=P,P=W(C,G),C=y,y=v,v=g,g=W(G,T);E[0]=W(g,E[0]),E[1]=W(v,E[1]),E[2]=W(y,E[2]),E[3]=W(C,E[3]),E[4]=W(P,E[4]),E[5]=W(L,E[5]),E[6]=W(M,E[6]),E[7]=W(f,E[7])}return E}var U=S("./helpers"),Y=function(q,$){return q>>>$|q<<32-$},Z=function(q,$){return q>>>$};B.exports=function(q){return U.hash(q,R,32,!0)}}).call(this,S("lYpoI2"),typeof self!="undefined"?self:typeof window!="undefined"?window:{},S("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha256.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],10:[function(S,B,K){(function(J,it,nt,at,lt,pt,ft,N,rt){K.read=function(W,R,U,Y,p){var q,$,G=8*p-Y-1,D=(1<<G)-1,E=D>>1,x=-7,T=U?p-1:0,u=U?-1:1,p=W[R+T];for(T+=u,q=p&(1<<-x)-1,p>>=-x,x+=G;0<x;q=256*q+W[R+T],T+=u,x-=8);for($=q&(1<<-x)-1,q>>=-x,x+=Y;0<x;$=256*$+W[R+T],T+=u,x-=8);if(q===0)q=1-E;else{if(q===D)return $?NaN:1/0*(p?-1:1);$+=Math.pow(2,Y),q-=E}return(p?-1:1)*$*Math.pow(2,q-Y)},K.write=function(W,R,U,Y,Z,g){var $,G,D=8*g-Z-1,E=(1<<D)-1,x=E>>1,T=Z===23?Math.pow(2,-24)-Math.pow(2,-77):0,u=Y?0:g-1,p=Y?1:-1,g=R<0||R===0&&1/R<0?1:0;for(R=Math.abs(R),isNaN(R)||R===1/0?(G=isNaN(R)?1:0,$=E):($=Math.floor(Math.log(R)/Math.LN2),R*(Y=Math.pow(2,-$))<1&&($--,Y*=2),2<=(R+=1<=$+x?T/Y:T*Math.pow(2,1-x))*Y&&($++,Y/=2),E<=$+x?(G=0,$=E):1<=$+x?(G=(R*Y-1)*Math.pow(2,Z),$+=x):(G=R*Math.pow(2,x-1)*Math.pow(2,Z),$=0));8<=Z;W[U+u]=255&G,u+=p,G/=256,Z-=8);for($=$<<Z|G,D+=Z;0<D;W[U+u]=255&$,u+=p,$/=256,D-=8);W[U+u-p]|=128*g}}).call(this,S("lYpoI2"),typeof self!="undefined"?self:typeof window!="undefined"?window:{},S("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/ieee754/index.js","/node_modules/gulp-browserify/node_modules/ieee754")},{buffer:3,lYpoI2:11}],11:[function(S,B,K){(function(J,it,nt,at,lt,pt,ft,N,rt){var W,R,U;function Y(){}(J=B.exports={}).nextTick=(R=typeof window!="undefined"&&window.setImmediate,U=typeof window!="undefined"&&window.postMessage&&window.addEventListener,R?function(Z){return window.setImmediate(Z)}:U?(W=[],window.addEventListener("message",function(Z){var q=Z.source;q!==window&&q!==null||Z.data!=="process-tick"||(Z.stopPropagation(),0<W.length&&W.shift()())},!0),function(Z){W.push(Z),window.postMessage("process-tick","*")}):function(Z){setTimeout(Z,0)}),J.title="browser",J.browser=!0,J.env={},J.argv=[],J.on=Y,J.addListener=Y,J.once=Y,J.off=Y,J.removeListener=Y,J.removeAllListeners=Y,J.emit=Y,J.binding=function(Z){throw new Error("process.binding is not supported")},J.cwd=function(){return"/"},J.chdir=function(Z){throw new Error("process.chdir is not supported")}}).call(this,S("lYpoI2"),typeof self!="undefined"?self:typeof window!="undefined"?window:{},S("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/process/browser.js","/node_modules/gulp-browserify/node_modules/process")},{buffer:3,lYpoI2:11}]},{},[1])(1)})})(Gh);var t1=Gh.exports;const e1=xe(t1);function i1(t,n){for(var S=-1,B=t==null?0:t.length;++S<B&&n(t[S],S,t)!==!1;);return t}var Wh=i1,r1=vo,o1=Mo,n1=Object.prototype,s1=n1.hasOwnProperty;function a1(t,n,S){var B=t[n];(!(s1.call(t,n)&&o1(B,S))||S===void 0&&!(n in t))&&r1(t,n,S)}var ts=a1,l1=ts,h1=vo;function c1(t,n,S,B){var K=!S;S||(S={});for(var J=-1,it=n.length;++J<it;){var nt=n[J],at=B?B(S[nt],t[nt],nt,S,t):void 0;at===void 0&&(at=t[nt]),K?h1(S,nt,at):l1(S,nt,at)}return S}var ur=c1,p1=ur,d1=cr;function u1(t,n){return t&&p1(n,d1(n),t)}var f1=u1;function g1(t){var n=[];if(t!=null)for(var S in Object(t))n.push(S);return n}var m1=g1,y1=Ve,v1=Co,b1=m1,x1=Object.prototype,w1=x1.hasOwnProperty;function C1(t){if(!y1(t))return b1(t);var n=v1(t),S=[];for(var B in t)B=="constructor"&&(n||!w1.call(t,B))||S.push(B);return S}var S1=C1,M1=sh,A1=S1,T1=So;function k1(t){return T1(t)?M1(t,!0):A1(t)}var Do=k1,P1=ur,L1=Do;function E1(t,n){return t&&P1(n,L1(n),t)}var O1=E1,gn={exports:{}};(function(t,n){var S=De,B=n&&!n.nodeType&&n,K=B&&!0&&t&&!t.nodeType&&t,J=K&&K.exports===B,it=J?S.Buffer:void 0,nt=it?it.allocUnsafe:void 0;function at(lt,pt){if(pt)return lt.slice();var ft=lt.length,N=nt?nt(ft):new lt.constructor(ft);return lt.copy(N),N}t.exports=at})(gn,gn.exports);var Hh=gn.exports;function D1(t,n){var S=-1,B=t.length;for(n||(n=Array(B));++S<B;)n[S]=t[S];return n}var Uh=D1,j1=ur,I1=Yn;function _1(t,n){return j1(t,I1(t),n)}var N1=_1,B1=ah,R1=B1(Object.getPrototypeOf,Object),es=R1,z1=Xn,F1=es,G1=Yn,W1=mh,H1=Object.getOwnPropertySymbols,U1=H1?function(t){for(var n=[];t;)z1(n,G1(t)),t=F1(t);return n}:W1,Xh=U1,X1=ur,Y1=Xh;function V1(t,n){return X1(t,Y1(t),n)}var $1=V1,Z1=gh,q1=Xh,K1=Do;function J1(t){return Z1(t,K1,q1)}var Q1=J1,tw=Object.prototype,ew=tw.hasOwnProperty;function iw(t){var n=t.length,S=new t.constructor(n);return n&&typeof t[0]=="string"&&ew.call(t,"index")&&(S.index=t.index,S.input=t.input),S}var rw=iw,Ca=uh;function ow(t){var n=new t.constructor(t.byteLength);return new Ca(n).set(new Ca(t)),n}var is=ow,nw=is;function sw(t,n){var S=n?nw(t.buffer):t.buffer;return new t.constructor(S,t.byteOffset,t.byteLength)}var aw=sw,lw=/\w*$/;function hw(t){var n=new t.constructor(t.source,lw.exec(t));return n.lastIndex=t.lastIndex,n}var cw=hw,Sa=_i,Ma=Sa?Sa.prototype:void 0,Aa=Ma?Ma.valueOf:void 0;function pw(t){return Aa?Object(Aa.call(t)):{}}var dw=pw,uw=is;function fw(t,n){var S=n?uw(t.buffer):t.buffer;return new t.constructor(S,t.byteOffset,t.length)}var Yh=fw,gw=is,mw=aw,yw=cw,vw=dw,bw=Yh,xw="[object Boolean]",ww="[object Date]",Cw="[object Map]",Sw="[object Number]",Mw="[object RegExp]",Aw="[object Set]",Tw="[object String]",kw="[object Symbol]",Pw="[object ArrayBuffer]",Lw="[object DataView]",Ew="[object Float32Array]",Ow="[object Float64Array]",Dw="[object Int8Array]",jw="[object Int16Array]",Iw="[object Int32Array]",_w="[object Uint8Array]",Nw="[object Uint8ClampedArray]",Bw="[object Uint16Array]",Rw="[object Uint32Array]";function zw(t,n,S){var B=t.constructor;switch(n){case Pw:return gw(t);case xw:case ww:return new B(+t);case Lw:return mw(t,S);case Ew:case Ow:case Dw:case jw:case Iw:case _w:case Nw:case Bw:case Rw:return bw(t,S);case Cw:return new B;case Sw:case Tw:return new B(t);case Mw:return yw(t);case Aw:return new B;case kw:return vw(t)}}var Fw=zw,Gw=Ve,Ta=Object.create,Ww=function(){function t(){}return function(n){if(!Gw(n))return{};if(Ta)return Ta(n);t.prototype=n;var S=new t;return t.prototype=void 0,S}}(),Vh=Ww,Hw=Vh,Uw=es,Xw=Co;function Yw(t){return typeof t.constructor=="function"&&!Xw(t)?Hw(Uw(t)):{}}var $h=Yw,Vw=pr,$w=ti,Zw="[object Map]";function qw(t){return $w(t)&&Vw(t)==Zw}var Kw=qw,Jw=Kw,Qw=xo,ka=Wn,Pa=ka&&ka.isMap,tC=Pa?Qw(Pa):Jw,eC=tC,iC=pr,rC=ti,oC="[object Set]";function nC(t){return rC(t)&&iC(t)==oC}var sC=nC,aC=sC,lC=xo,La=Wn,Ea=La&&La.isSet,hC=Ea?lC(Ea):aC,cC=hC,pC=Lo,dC=Wh,uC=ts,fC=f1,gC=O1,mC=Hh,yC=Uh,vC=N1,bC=$1,xC=yh,wC=Q1,CC=pr,SC=rw,MC=Fw,AC=$h,TC=je,kC=hr,PC=eC,LC=Ve,EC=cC,OC=cr,DC=Do,jC=1,IC=2,_C=4,Zh="[object Arguments]",NC="[object Array]",BC="[object Boolean]",RC="[object Date]",zC="[object Error]",qh="[object Function]",FC="[object GeneratorFunction]",GC="[object Map]",WC="[object Number]",Kh="[object Object]",HC="[object RegExp]",UC="[object Set]",XC="[object String]",YC="[object Symbol]",VC="[object WeakMap]",$C="[object ArrayBuffer]",ZC="[object DataView]",qC="[object Float32Array]",KC="[object Float64Array]",JC="[object Int8Array]",QC="[object Int16Array]",tS="[object Int32Array]",eS="[object Uint8Array]",iS="[object Uint8ClampedArray]",rS="[object Uint16Array]",oS="[object Uint32Array]",ee={};ee[Zh]=ee[NC]=ee[$C]=ee[ZC]=ee[BC]=ee[RC]=ee[qC]=ee[KC]=ee[JC]=ee[QC]=ee[tS]=ee[GC]=ee[WC]=ee[Kh]=ee[HC]=ee[UC]=ee[XC]=ee[YC]=ee[eS]=ee[iS]=ee[rS]=ee[oS]=!0;ee[zC]=ee[qh]=ee[VC]=!1;function Gr(t,n,S,B,K,J){var it,nt=n&jC,at=n&IC,lt=n&_C;if(S&&(it=K?S(t,B,K,J):S(t)),it!==void 0)return it;if(!LC(t))return t;var pt=TC(t);if(pt){if(it=SC(t),!nt)return yC(t,it)}else{var ft=CC(t),N=ft==qh||ft==FC;if(kC(t))return mC(t,nt);if(ft==Kh||ft==Zh||N&&!K){if(it=at||N?{}:AC(t),!nt)return at?bC(t,gC(it,t)):vC(t,fC(it,t))}else{if(!ee[ft])return K?t:{};it=MC(t,ft,nt)}}J||(J=new pC);var rt=J.get(t);if(rt)return rt;J.set(t,it),EC(t)?t.forEach(function(U){it.add(Gr(U,n,S,U,t,J))}):PC(t)&&t.forEach(function(U,Y){it.set(Y,Gr(U,n,S,Y,t,J))});var W=lt?at?wC:xC:at?DC:OC,R=pt?void 0:W(t);return dC(R||t,function(U,Y){R&&(Y=U,U=t[Y]),uC(it,Y,Gr(U,n,S,Y,t,J))}),it}var nS=Gr,sS=nS,aS=1,lS=4;function hS(t){return sS(t,aS|lS)}var cS=hS;const fr=xe(cS);var Wr;(function(t){t.INCLUDE_ALL="INCLUDE_ALL",t.ADVANCED="ADVANCED",t.INVALID="INVALID",t.CONDITION="CONDITION",t.SPECIFIC_ITEMS="SPECIFIC_ITEMS"})(Wr=Wr||(Wr={}));var Hr;(function(t){t.PERIOD="PERIOD",t.DATE_RANGE="DATE_RANGE"})(Hr=Hr||(Hr={}));var Ur;(function(t){t.NUMERIC_RANGE="NUMERIC_RANGE"})(Ur=Ur||(Ur={}));var ri;(function(t){t.YEARS="years",t.QUARTERS="quarters",t.MONTHS="months",t.WEEKS="weeks",t.DAYS="days",t.HOURS="hours",t.MINUTES="minutes"})(ri=ri||(ri={}));var ki;(function(t){t.DATE_TIME="datetime",t.NUMERIC="numeric",t.TEXT="text"})(ki=ki||(ki={}));const pS=["1","30"],qt=Object.assign(Object.assign(Object.assign({},Wr),Hr),Ur),dS={[qt.INCLUDE_ALL]:{all:!0,filterType:qt.INCLUDE_ALL},[qt.PERIOD]:{last:{count:1,offset:1},isNotCurrentPeriod:!0,filterType:qt.PERIOD},[qt.DATE_RANGE]:{filterType:qt.DATE_RANGE},[qt.NUMERIC_RANGE]:{filterType:qt.NUMERIC_RANGE},[qt.CONDITION]:{explicit:!1,multiSelection:!0,exclude:{members:[]},filterType:qt.CONDITION},[qt.SPECIFIC_ITEMS]:{explicit:!0,multiSelection:!0,members:[],filterType:qt.SPECIFIC_ITEMS}},uS={filter:dS.INCLUDE_ALL,level:ri.YEARS};exports.ConditionFilterType=void 0;(function(t){t.IS="members",t.IS_NOT="exclude",t.IS_WITHIN="isWithin",t.TOP="top",t.BOTTOM="bottom",t.AFTER="after",t.BEFORE="before",t.STARTS_WITH="startsWith",t.DOESNT_START_WITH="doesntStartWith",t.ENDS_WITH="endsWith",t.DOESNT_END_WITH="doesntEndWith",t.CONTAINS="contains",t.DOESNT_CONTAIN="doesntContain",t.EQUALS="equals",t.DOESNT_EQUAL="doesntEqual",t.IS_EMPTY="isEmpty",t.IS_NOT_EMPTY="isNotEmpty",t.GREATER_THAN="fromNotEqual",t.GREATER_THAN_OR_EQUAL="from",t.LESS_THAN="toNotEqual",t.LESS_THAN_OR_EQUAL="to",t.BETWEEN="between",t.IS_NOT_BETWEEN="isNotBetween",t.MULTIPLE_CONDITION="multipleCondition",t.NONE="none"})(exports.ConditionFilterType=exports.ConditionFilterType||(exports.ConditionFilterType={}));function fS(t,n){return new Cc(t,wc.Union,n)}function gS(t,n){return new Cc(t,wc.Intersection,n)}function Jh(t,n,S){return new wM(t,n,S)}function Qh(t,n,S){return new Ze(t,$e.DoesntContain,n,S)}function tc(t,n,S){return new Ze(t,$e.DoesntEndWith,n,S)}function ec(t,n,S){return new Ze(t,$e.DoesntStartWith,n,S)}function ic(t,n,S){return new Ze(t,$e.Contains,n,S)}function rc(t,n,S){return new Ze(t,$e.EndsWith,n,S)}function oc(t,n,S){return new Ze(t,$e.StartsWith,n,S)}function mS(t,n,S){return new Ze(t,$e.Like,n,S)}function yS(t,n,S){return typeof n=="string"?new Ze(t,$e.DoesntEqual,n,S):xi(t,ye.DoesntEqual,n,void 0,void 0,S)}function nc(t,n,S){return typeof n=="string"?new Ze(t,$e.Equals,n,S):xi(t,ye.Equals,n,void 0,void 0,S)}function sc(t,n,S){return xi(t,ye.FromNotEqual,n,void 0,void 0,S)}function ac(t,n,S){return xi(t,ye.From,n,void 0,void 0,S)}function lc(t,n,S){return xi(t,ye.ToNotEqual,n,void 0,void 0,S)}function hc(t,n,S){return xi(t,ye.To,n,void 0,void 0,S)}function eo(t,n,S,B){return xi(t,ye.From,n,ye.To,S,B)}function xi(t,n,S,B,K,J){return new Tc(t,n,S,B,K,J)}function jo(t,n,S,B,K,J){return new Sc(t,n,S,B,K,J)}function cc(t,n,S,B){return new kc(t,n,S,B)}function pc(t,n,S,B,K){return new ns(t,n,S,Ei.Next,B,K)}function dc(t,n,S,B,K){return new ns(t,n,S,Ei.Last,B,K)}function Wi(t,n,S,B,K,J,it){return new Ac(t,n,S,B,K,J,it)}function vS(t,n,S){return Wi(t.attribute,t,ye.Equals,n,void 0,void 0,S)}function bS(t,n,S){return Wi(t.attribute,t,ye.FromNotEqual,n,void 0,void 0,S)}function xS(t,n,S){return Wi(t.attribute,t,ye.From,n,void 0,void 0,S)}function wS(t,n,S){return Wi(t.attribute,t,ye.To,n,void 0,void 0,S)}function CS(t,n,S){return Wi(t.attribute,t,ye.ToNotEqual,n,void 0,void 0,S)}function SS(t,n,S,B){return Wi(t.attribute,t,ye.From,n,ye.To,S,B)}function uc(t,n,S,B){return new os(t,n,rs.Top,S,B)}function fc(t,n,S,B){return new os(t,n,rs.Bottom,S,B)}const fi=t=>{if(Array.isArray(t)){const[n,...S]=t;return S.length===0?fi(n):{operator:"AND",left:fi(n),right:fi(S)}}return t};var Zo;(function(t){t.and=(n,S)=>({operator:"AND",left:fi(n),right:fi(S)}),t.or=(n,S)=>({operator:"OR",left:fi(n),right:fi(S)})})(Zo=Zo||(Zo={}));function MS(t,n,S){return new Pc(t,n,S)}function gc(t){try{if(t==null)return JSON.stringify(t);if(t===Object(t)&&"composeCode"in t)return t.composeCode;if(Array.isArray(t))return"["+t.map(n=>gc(n)).join(", ")+"]";if(typeof t=="string")return`'${t}'`;if(typeof t=="number"||!isNaN(t))return t}catch(n){console.error(n)}return JSON.stringify(t)}function Zt(t){return function(...n){const S=n.map(gc).join(", ").replace(/(,\s*)+$/,""),B=`filterFactory.${t.name}(${S})`,K=t(...n);return K.composeCode=B,K}}const Oa="DM",mc=(t,n,S,B,K)=>{const J=n!=null?n:t.slice(1,-1).split(".")[0];if(B){const at=Be.translateJaqlToGranularity({level:B}),lt=Be.getDefaultFormatForGranularity(at),pt=new Be(S,t,at,lt);return pt.composeCode=fn(J,S,B,Oa),pt}const it=me(K)?Ut.NumericAttribute:Ut.TextAttribute,nt=new Gi(S,t,it);return nt.composeCode=fn(J,S,void 0,Oa),nt},AS=t=>mc(t.dim,t.table,t.column,t.level,t.datatype),yc=(t,n,S,B,K,J)=>{const it=mc(t,n,S,B,K),nt=Qn(it,J);return nt.composeCode=`measureFactory.${J}(${it.composeCode})`,nt},TS=t=>{const{dim:n,table:S,column:B,level:K,datatype:J,agg:it}=t;if(it)return yc(n,S,B,K,J,it)},Da=t=>{const{dim:n,table:S,column:B,level:K,datatype:J,agg:it}=t;return yc(n,S,B,K,J,it)},kS=t=>t.top!==void 0,PS=t=>t.bottom!==void 0,LS=t=>{var n;return!!(!((n=t.exclude)===null||n===void 0)&&n.members)},ES=t=>!!t.members&&!!t.isCondition,OS=t=>{var n,S;return((n=t.last)===null||n===void 0?void 0:n.anchor)!==void 0||((S=t.next)===null||S===void 0?void 0:S.anchor)!==void 0},DS=t=>t.fromNotEqual!==void 0,jS=t=>t.from!==void 0&&!t.isBetween,IS=t=>t.toNotEqual!==void 0,_S=t=>t.to!==void 0&&!t.isBetween,NS=t=>t.equals!==void 0,BS=t=>t.doesntEqual!==void 0,RS=t=>!!(t.equals===""&&t.isEmpty),zS=t=>!!(t.doesntEqual===""&&t.isEmpty),FS=t=>t.contains!==void 0,GS=t=>t.doesntContain!==void 0,WS=t=>t.startsWith!==void 0,HS=t=>t.doesntStartWith!==void 0,US=t=>t.endsWith!==void 0,XS=t=>t.doesntEndWith!==void 0,YS=t=>t.from!==void 0&&t.to!==void 0,VS=t=>{var n,S;return((n=t.exclude)===null||n===void 0?void 0:n.from)!==void 0&&((S=t.exclude)===null||S===void 0?void 0:S.to)!==void 0},$S=t=>!!(t.or||t.and),Io=t=>PS(t)?exports.ConditionFilterType.BOTTOM:kS(t)?exports.ConditionFilterType.TOP:LS(t)?exports.ConditionFilterType.IS_NOT:OS(t)?exports.ConditionFilterType.IS_WITHIN:DS(t)?exports.ConditionFilterType.GREATER_THAN:IS(t)?exports.ConditionFilterType.LESS_THAN:NS(t)?exports.ConditionFilterType.EQUALS:BS(t)?exports.ConditionFilterType.DOESNT_EQUAL:RS(t)?exports.ConditionFilterType.IS_EMPTY:zS(t)?exports.ConditionFilterType.IS_NOT_EMPTY:FS(t)?exports.ConditionFilterType.CONTAINS:GS(t)?exports.ConditionFilterType.DOESNT_CONTAIN:XS(t)?exports.ConditionFilterType.DOESNT_END_WITH:HS(t)?exports.ConditionFilterType.DOESNT_START_WITH:US(t)?exports.ConditionFilterType.ENDS_WITH:WS(t)?exports.ConditionFilterType.STARTS_WITH:VS(t)?exports.ConditionFilterType.IS_NOT_BETWEEN:ES(t)?exports.ConditionFilterType.IS:$S(t)?exports.ConditionFilterType.MULTIPLE_CONDITION:YS(t)?exports.ConditionFilterType.BETWEEN:jS(t)?exports.ConditionFilterType.GREATER_THAN_OR_EQUAL:_S(t)?exports.ConditionFilterType.LESS_THAN_OR_EQUAL:exports.ConditionFilterType.NONE,mn=(t,n,S)=>{var B,K,J;switch(Io(n)){case exports.ConditionFilterType.BOTTOM:if(n.by&&"agg"in n.by)return Zt(fc)(t,Da(n.by),n[exports.ConditionFilterType.BOTTOM],S);break;case exports.ConditionFilterType.EQUALS:return Zt(nc)(t,n[exports.ConditionFilterType.EQUALS],S);case exports.ConditionFilterType.GREATER_THAN:return Zt(sc)(t,n[exports.ConditionFilterType.GREATER_THAN],S);case exports.ConditionFilterType.GREATER_THAN_OR_EQUAL:return Zt(ac)(t,n[exports.ConditionFilterType.GREATER_THAN_OR_EQUAL],S);case exports.ConditionFilterType.TOP:if(n.by)return Zt(uc)(t,Da(n.by),n[exports.ConditionFilterType.TOP],S);break;case exports.ConditionFilterType.STARTS_WITH:return Zt(oc)(t,n[exports.ConditionFilterType.STARTS_WITH],S);case exports.ConditionFilterType.DOESNT_START_WITH:return Zt(ec)(t,n[exports.ConditionFilterType.DOESNT_START_WITH],S);case exports.ConditionFilterType.ENDS_WITH:return Zt(rc)(t,n[exports.ConditionFilterType.ENDS_WITH],S);case exports.ConditionFilterType.DOESNT_END_WITH:return Zt(tc)(t,n[exports.ConditionFilterType.DOESNT_END_WITH],S);case exports.ConditionFilterType.CONTAINS:return Zt(ic)(t,n[exports.ConditionFilterType.CONTAINS],S);case exports.ConditionFilterType.DOESNT_CONTAIN:return Zt(Qh)(t,n[exports.ConditionFilterType.DOESNT_CONTAIN],S);case exports.ConditionFilterType.LESS_THAN:return Zt(lc)(t,n[exports.ConditionFilterType.LESS_THAN],S);case exports.ConditionFilterType.LESS_THAN_OR_EQUAL:return Zt(hc)(t,n[exports.ConditionFilterType.LESS_THAN_OR_EQUAL],S);case exports.ConditionFilterType.BETWEEN:return Zt(eo)(t,n.from,n.to,S);case exports.ConditionFilterType.IS_NOT_BETWEEN:return Zt(Jh)(Zt(eo)(t,(B=n.exclude)===null||B===void 0?void 0:B.from,(K=n.exclude)===null||K===void 0?void 0:K.to,S),void 0,S);case exports.ConditionFilterType.MULTIPLE_CONDITION:if(n.and)return Zt(gS)(n.and.map(nt=>mn(t,nt,S)),S);if(n.or)return Zt(fS)(n.or.map(nt=>mn(t,nt,S)),S);break;case exports.ConditionFilterType.IS_NOT:return Zt(jo)(t,((J=n.exclude)===null||J===void 0?void 0:J.members)||[],!0,S)}throw"Jaql contains unsupported condition filter: "+JSON.stringify(n)},ZS=(t,n,S)=>{switch(Io(n)){case exports.ConditionFilterType.EQUALS:return Zt(vS)(t,n[exports.ConditionFilterType.EQUALS],S);case exports.ConditionFilterType.GREATER_THAN:return Zt(bS)(t,n[exports.ConditionFilterType.GREATER_THAN],S);case exports.ConditionFilterType.GREATER_THAN_OR_EQUAL:return Zt(xS)(t,n[exports.ConditionFilterType.GREATER_THAN_OR_EQUAL],S);case exports.ConditionFilterType.LESS_THAN:return Zt(CS)(t,n[exports.ConditionFilterType.LESS_THAN],S);case exports.ConditionFilterType.LESS_THAN_OR_EQUAL:return Zt(wS)(t,n[exports.ConditionFilterType.LESS_THAN_OR_EQUAL],S);case exports.ConditionFilterType.BETWEEN:return Zt(SS)(t,n.from,n.to,S)}throw"Jaql contains unsupported condition filter: "+JSON.stringify(n)},qS=(t,n)=>{let S=t?t.toLocaleLowerCase():ri.YEARS;return S===ri.MINUTES&&n==="60"&&(S=ri.HOURS),S},KS=t=>t==null?void 0:t.all,JS=t=>t.last?t.last:t.next,QS=t=>{var n;return((n=JS(t))===null||n===void 0?void 0:n.offset)<2},vc=t=>{var n;return((n=t==null?void 0:t.members)===null||n===void 0?void 0:n.length)>=0},tM=(t,n)=>t&&typeof t=="string"||n&&typeof n=="string",eM=(t,n)=>t===""&&n==="",iM=(t,n)=>{const{from:S,to:B}=t;return n!==ki.DATE_TIME?!1:tM(S,B)?!0:eM(S,B)},rM=t=>{const{from:n,to:S}=t;return n!==void 0&&S!==void 0&&!t.isBetween},bc=t=>Io(t)!==exports.ConditionFilterType.NONE,oM=t=>Object.keys(t).includes("isAdvanced"),nM=t=>!!(t.level&&t.bucket&&t.level===ri.MINUTES&&pS.includes(t.bucket)),sM=t=>t.filterType===qt.INVALID,ja=(t,n=ki.DATE_TIME,S)=>S&&nM(S)||oM(t)?qt.ADVANCED:KS(t)?qt.INCLUDE_ALL:QS(t)?qt.PERIOD:vc(t)?qt.SPECIFIC_ITEMS:iM(t,n)?qt.DATE_RANGE:rM(t)?qt.NUMERIC_RANGE:bc(t)?qt.CONDITION:(sM(t),qt.INVALID),aM=(t,n)=>{const{level:S,filter:B,bucket:K}=t,J=B||uS.filter,it={filter:Object.assign(Object.assign({},J),{filterType:ja(J,n)})};if(n===ki.DATE_TIME){const nt=J,at=(nt==null?void 0:nt.level)||S;it.level=qS(at,K),it.filter.filterType=ja(J,n,{level:at,bucket:K})}return it},Ia=(t,n)=>({guid:n||xc(13),jaql:S=>S?t:{jaql:t,panel:"scope"},attribute:{id:t.dim},type:"filter",serializable(){return Object.assign(Object.assign({},this),{jaql:this.jaql()})},toJSON(){return this.serializable()}}),lM=(t,n)=>Zt(jo)(t,[],!0,n),hM=(t,n,S)=>{const B=cM(n),K=pM(n,B);return Zt(jo)(t,K,void 0,S,B)};function cM(t){var n,S,B;return!((n=t.filter)===null||n===void 0)&&n.turnedOff?(B=(S=t.filter)===null||S===void 0?void 0:S.exclude)===null||B===void 0?void 0:B.members:void 0}function pM(t,n){const S=t.members;return n?S.filter(B=>!n.includes(B)):S}const dM=(t,n,S)=>Zt(cc)(t,n.from,n.to,S),uM=(t,n,S)=>Zt(eo)(t,n.from,n.to,S),fM=(t,n,S)=>n.last?Zt(dc)(t,n.last.offset,n.last.count,n.last.anchor,S):Zt(pc)(t,n.next.offset,n.next.count,n.next.anchor,S),gM=(t,n,S,B)=>S?ZS(S,n,B):mn(t,n,B),mM=(t,n,S)=>Zt(MS)(t,n,S),_a=(t,n)=>{try{if("formula"in t)throw"Formula-based filter not supported yet: "+JSON.stringify(t);const S=aM(t,t.datatype),{filter:B}=S,{filterType:K}=B,J=AS(t),it=TS(t);switch(K){case qt.INCLUDE_ALL:return lM(J,n);case qt.SPECIFIC_ITEMS:return hM(J,B,n);case qt.CONDITION:return gM(J,B,it,n);case qt.DATE_RANGE:return dM(J,B,n);case qt.PERIOD:return fM(J,B,n);case qt.NUMERIC_RANGE:return uM(J,B,n);case qt.ADVANCED:return mM(J,B,n);case qt.INVALID:return Ia(t,n)}}catch(S){}return Ia(t,n)},xc=function(t){const n="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),S=new Array(t);let B=0,K;for(let J=0;J<t;J+=1){if(J>0&&J%5==0){S[J]="-";continue}B<=2&&(B=33554432+Math.random()*16777216|0),K=B&15,B=B>>4,S[J]=n[J==19?K&3|8:K]}return S.join("")},yM=t=>{if(!t)return{filters:void 0,relations:void 0};if(Array.isArray(t))return{filters:t,relations:void 0};const n=new Set;function S(J){return J&&("guid"in J?(n.add(J),{instanceid:J.guid}):("left"in J&&(J.left=S(J.left)),"right"in J&&(J.right=S(J.right)),J))}const B=fr(t),K=S(B);return{filters:Array.from(n),relations:K}};function vM(t){return typeof t=="string"?t:t.title}function bM(t){return typeof t=="object"&&"type"in t&&"title"in t}const xM=(t,n)=>{const S=t.filter.filter&&!("turnedOff"in t.filter.filter),B=_a(t,n);return S&&(B.backgroundFilter=_a(Object.assign(Object.assign({},t),{filter:t.filter.filter}),`${n}-bg`)),B},$e={Contains:"contains",StartsWith:"startsWith",EndsWith:"endsWith",Equals:"equals",DoesntEqual:"doesntEqual",DoesntStartWith:"doesntStartWith",DoesntContain:"doesntContain",DoesntEndWith:"doesntEndWith",Like:"like"},ye={Equals:"equals",DoesntEqual:"doesntEqual",From:"from",FromNotEqual:"fromNotEqual",To:"to",ToNotEqual:"toNotEqual"},Ei={From:"from",To:"to",Last:"last",Next:"next",Anchor:"Anchor"},wc={Union:"or",Intersection:"and",Exclude:"exclude"},rs={Top:"top",Bottom:"bottom"},Ie={logicalAttribute:"logicalAttribute",members:"members",exclude:"exclude",measure:"measure",ranking:"ranking",text:"text",numeric:"numeric",date:"date",relativeDate:"relativeDate",cascading:"cascading",advanced:"advanced"};class Me extends mo{constructor(n,S,B){super("filter",Ut.Filter),this.filterType=S,Me.checkAttributeSupport(n),this.attribute=n,this.guid=B||xc(13),this.disabled=!1,this.locked=!1}get disabled(){return this._disabled}set disabled(n){this._disabled=n}get locked(){return this._locked}set locked(n){this._locked=n}get name(){return e1(this.jaql())}serializable(){const n=super.serializable();return n.filterType=this.filterType,n.attribute=this.attribute.serializable(),n}jaql(n){if(this.disabled)return Me.disabledJaql(n);const S=this.attribute.jaql(!1),B=this.attribute;if(B.getFormat&&B.getFormat()!==void 0){const K=B.translateGranularityToJaql();S.format={mask:{[K.level]:B.getFormat()}}}return S.jaql.filter=this.filterJaql(),this.isScope&&(S.panel="scope"),n===!0?S.jaql:S}static checkAttributeSupport(n){const{granularity:S}=n;if(S===Nt.Hours||S===Nt.MinutesRoundTo30||S===Nt.MinutesRoundTo15||S===Nt.Minutes||S===Nt.Seconds)throw new zh("errors.filter.unsupportedDatetimeLevel")}static disabledJaql(n){return n?{filter:{}}:{jaql:{filter:{}}}}}class Cc extends Me{constructor(n,S,B){super(n[0].attribute,Ie.logicalAttribute,B),this.operator=S,this.filters=n}get id(){return`${this.operator}_${this.filters.map(n=>n.id).join()}`}serializable(){const n=super.serializable();return n.operator=this.operator,n.filters=this.filters.map(S=>S.serializable()),n}filterJaql(){const n={};return n[this.operator]=this.filters.map(S=>S.filterJaql()),n}}class Sc extends Me{constructor(n,S,B,K,J,it){if(super(n,Ie.members,K),this.members=S!=null?S:[],this.excludeMembers=B!=null?B:!1,this.deactivatedMembers=J!=null?J:[],this.backgroundFilter=it,this.members.filter(nt=>nt==null).length>0)throw new zh("errors.filter.membersFilterNullMember",{attributeId:n.id})}get id(){return`${this.attribute.id}_${this.members.map(n=>n.toString()).join()}`}serializable(){const n=super.serializable();return n.members=this.members,this.backgroundFilter&&(n.backgroundFilter=this.backgroundFilter.serializable()),n}filterJaql(){const n={members:this.members.map(B=>B.toString())},S=this.excludeMembers&&this.members.length?{exclude:n}:n;return this.backgroundFilter?{and:[S,this.backgroundFilter.filterJaql()]}:S}}class Mc extends Me{constructor(n,S){super(n[0].attribute,Ie.cascading,S),this.filters=n}get id(){return`${this.filterType}_${this.filters.map(n=>n.id).join()}`}get disabled(){return super.disabled}set disabled(n){super.disabled=n,this.filters&&this.filters.forEach(S=>{S.disabled=n})}get locked(){return super.locked}set locked(n){super.locked=n,this.filters&&this.filters.forEach(S=>{S.locked=n})}serializable(){const n=super.serializable();return n.filters=this.filters.map(S=>S.serializable()),n}filterJaql(){return{}}jaql(n){return this.disabled?Me.disabledJaql(n):this.filters.map(S=>(S.isScope=!0,S.jaql(n)))}}class wM extends Me{constructor(n,S,B){super(n.attribute,Ie.exclude,B),this.input=S,this.filter=n}get id(){let n=`exclude_${this.filter.id}`;return this.input&&(n+="_from_"+this.input.id),n}serializable(){const n=super.serializable();return n.filter=this.filter.serializable(),this.input&&(n.input=this.input.serializable()),n}filterJaql(){const n={},S=this.filter.filterJaql();return this.input?(n.filter=this.input.filterJaql(),n.filter.filter={exclude:S}):n.exclude=S,n}}class _o extends Me{constructor(n,S,B,K,J,it,nt){super(n,S,nt),B&&K!==void 0&&(this.valueA=K,this.operatorA=B),J&&it!==void 0&&(this.operatorB=J,this.valueB=it)}get id(){let n=`${this.attribute.id}`;return this.operatorA&&this.valueA!==void 0&&(n+=`_${this.operatorA}:${this.valueA}`),this.operatorB&&this.valueB!==void 0&&(n+=`_${this.operatorB}:${this.valueB}`),n}serializable(){const n=super.serializable();return this.operatorA&&(n.operatorA=this.operatorA),this.operatorB&&(n.operatorB=this.operatorB),this.valueA!==void 0&&(n.valueA=this.valueA),this.valueB!==void 0&&(n.valueB=this.valueB),n}filterJaql(){const n={};return this.operatorA&&this.valueA!==void 0&&(n[this.operatorA]=this.valueA),this.operatorB&&this.valueB!==void 0&&(n[this.operatorB]=this.valueB),n}}class Ac extends _o{constructor(n,S,B,K,J,it,nt){super(n,Ie.measure,B,K,J,it,nt),this.measure=S}get id(){let n=`${this.attribute.id}_${this.measure.id}`;return this.operatorA&&this.valueA!==void 0&&(n+=`_${this.operatorA}:${this.valueA}`),this.operatorB&&this.valueB!==void 0&&(n+=`_${this.operatorB}${this.valueB}`),n}serializable(){const n=super.serializable();return n.measure=this.measure.serializable(),n}jaql(n){if(this.disabled)return Me.disabledJaql(n);const S=super.jaql(n);return this.measure instanceof Qe&&Object.entries(this.measure.jaql().jaql).forEach(([B,K])=>{S.jaql[B]=K}),S}}class os extends Me{constructor(n,S,B,K,J){super(n,Ie.ranking,J),this.count=K,this.operator=B,this.measure=S}get id(){return`${this.operator}_${this.count}_${this.attribute.id}_by_${this.measure.id}`}serializable(){const n=super.serializable();return n.count=this.count,n.operator=this.operator,n.measure=this.measure.serializable(),n}filterJaql(){const n={};return n[this.operator]=this.count,n.by=this.measure.jaql(!0),n}}class Tc extends _o{constructor(n,S,B,K,J,it){super(n,Ie.numeric,S,B,K,J,it)}}class Ze extends _o{constructor(n,S,B,K){super(n,Ie.text,S,B,void 0,void 0,K)}}class kc extends _o{constructor(n,S,B,K){super(n,Ie.date,Ei.From,S,Ei.To,B,K),typeof S=="object"&&(this.valueA=S.toISOString()),typeof B=="object"&&(this.valueB=B.toISOString())}get level(){return this.attribute}get from(){return this.valueA}get to(){return this.valueB}filterJaql(){return super.filterJaql()}}class ns extends Me{constructor(n,S,B,K,J,it){super(n,Ie.relativeDate,it),K||(K=Ei.Next),this.anchor=J,this.operator=K,this.offset=S,this.count=B}get level(){return this.attribute}get id(){let n=`${this.level.id}_${this.operator}_${this.offset}_${this.count}`;return this.anchor&&(typeof this.anchor=="string"?n+=`_${this.anchor}`:typeof this.anchor=="object"&&(n+=`_${this.anchor.toISOString()}`)),n}serializable(){const n=super.serializable();return n.offset=this.offset,n.count=this.count,n.operator=this.operator,this.anchor&&(n.anchor=this.anchor),n}filterJaql(){const n={};return n[this.operator]={offset:this.offset,count:this.count},this.anchor&&(typeof this.anchor=="string"?n[this.operator].anchor=this.anchor:typeof this.anchor=="object"&&(n[this.operator].anchor=this.anchor.toISOString())),n}}class Pc extends Me{constructor(n,S,B){super(n,Ie.advanced,B),delete S.filterType,this.jaqlExpression=S}get id(){return`custom_${this.attribute.id}_${this.guid}`}filterJaql(){return this.jaqlExpression}}function Lc(t){if(t===null||t===!0||t===!1)return NaN;var n=Number(t);return isNaN(n)?n:n<0?Math.ceil(n):Math.floor(n)}function Ec(t,n){if(n.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+n.length+" present")}var Oc=6e4,Dc=36e5;function ss(t,n){var S;Ec(1,arguments);var B=Lc((S=void 0)!==null&&S!==void 0?S:2);if(B!==2&&B!==1&&B!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof t=="string"||Object.prototype.toString.call(t)==="[object String]"))return new Date(NaN);var K=AM(t),J;if(K.date){var it=TM(K.date,B);J=kM(it.restDateString,it.year)}if(!J||isNaN(J.getTime()))return new Date(NaN);var nt=J.getTime(),at=0,lt;if(K.time&&(at=PM(K.time),isNaN(at)))return new Date(NaN);if(K.timezone){if(lt=LM(K.timezone),isNaN(lt))return new Date(NaN)}else{var pt=new Date(nt+at),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(nt+at+lt)}var Lr={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},CM=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,SM=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,MM=/^([+-])(\d{2})(?::?(\d{2}))?$/;function AM(t){var n={},S=t.split(Lr.dateTimeDelimiter),B;if(S.length>2)return n;if(/:/.test(S[0])?B=S[0]:(n.date=S[0],B=S[1],Lr.timeZoneDelimiter.test(n.date)&&(n.date=t.split(Lr.timeZoneDelimiter)[0],B=t.substr(n.date.length,t.length))),B){var K=Lr.timezone.exec(B);K?(n.time=B.replace(K[1],""),n.timezone=K[1]):n.time=B}return n}function TM(t,n){var S=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+n)+"})|(\\d{2}|[+-]\\d{"+(2+n)+"})$)"),B=t.match(S);if(!B)return{year:NaN,restDateString:""};var K=B[1]?parseInt(B[1]):null,J=B[2]?parseInt(B[2]):null;return{year:J===null?K:J*100,restDateString:t.slice((B[1]||B[2]).length)}}function kM(t,n){if(n===null)return new Date(NaN);var S=t.match(CM);if(!S)return new Date(NaN);var B=!!S[4],K=$i(S[1]),J=$i(S[2])-1,it=$i(S[3]),nt=$i(S[4]),at=$i(S[5])-1;if(B)return IM(n,nt,at)?EM(n,nt,at):new Date(NaN);var lt=new Date(0);return!DM(n,J,it)||!jM(n,K)?new Date(NaN):(lt.setUTCFullYear(n,J,Math.max(K,it)),lt)}function $i(t){return t?parseInt(t):1}function PM(t){var n=t.match(SM);if(!n)return NaN;var S=qo(n[1]),B=qo(n[2]),K=qo(n[3]);return _M(S,B,K)?S*Dc+B*Oc+K*1e3:NaN}function qo(t){return t&&parseFloat(t.replace(",","."))||0}function LM(t){if(t==="Z")return 0;var n=t.match(MM);if(!n)return 0;var S=n[1]==="+"?-1:1,B=parseInt(n[2]),K=n[3]&&parseInt(n[3])||0;return NM(B,K)?S*(B*Dc+K*Oc):NaN}function EM(t,n,S){var B=new Date(0);B.setUTCFullYear(t,0,4);var K=B.getUTCDay()||7,J=(n-1)*7+S+1-K;return B.setUTCDate(B.getUTCDate()+J),B}var OM=[31,null,31,30,31,30,31,31,30,31,30,31];function jc(t){return t%400===0||t%4===0&&t%100!==0}function DM(t,n,S){return n>=0&&n<=11&&S>=1&&S<=(OM[n]||(jc(t)?29:28))}function jM(t,n){return n>=1&&n<=(jc(t)?366:365)}function IM(t,n,S){return n>=1&&n<=53&&S>=0&&S<=6}function _M(t,n,S){return t===24?n===0&&S===0:S>=0&&S<60&&n>=0&&n<60&&t>=0&&t<25}function NM(t,n){return n>=0&&n<=59}var BM=/\s/;function RM(t){for(var n=t.length;n--&&BM.test(t.charAt(n)););return n}var zM=RM,FM=zM,GM=/^\s+/;function WM(t){return t&&t.slice(0,FM(t)+1).replace(GM,"")}var Ic=WM,HM=Ic,Na=Ve,UM=Eo,Ba=NaN,XM=/^[-+]0x[0-9a-f]+$/i,YM=/^0b[01]+$/i,VM=/^0o[0-7]+$/i,$M=parseInt;function ZM(t){if(typeof t=="number")return t;if(UM(t))return Ba;if(Na(t)){var n=typeof t.valueOf=="function"?t.valueOf():t;t=Na(n)?n+"":n}if(typeof t!="string")return t===0?t:+t;t=HM(t);var S=YM.test(t);return S||VM.test(t)?$M(t.slice(2),S?2:8):XM.test(t)?Ba:+t}var as=ZM,qM=as,Ra=1/0,KM=17976931348623157e292;function JM(t){if(!t)return t===0?t:0;if(t=qM(t),t===Ra||t===-Ra){var n=t<0?-1:1;return n*KM}return t===t?t:0}var _c=JM;class ls extends Fn{constructor(n,S){super(ql,{key:n,interpolationOptions:S},Eu.t)}}function Nc(t){const n="column"in t?t.column:t;return"context"in n||"aggregation"in n?!0:!("type"in n)}const gr=t=>"aggregation"in t||"context"in t||"formula"in t,Hi=t=>!gr(t);var za=_i,QM=lr,tA=je,Fa=za?za.isConcatSpreadable:void 0;function eA(t){return tA(t)||QM(t)||!!(Fa&&t&&t[Fa])}var iA=eA,rA=Xn,oA=iA;function Bc(t,n,S,B,K){var J=-1,it=t.length;for(S||(S=oA),K||(K=[]);++J<it;){var nt=t[J];n>0&&S(nt)?n>1?Bc(nt,n-1,S,B,K):rA(K,nt):B||(K[K.length]=nt)}return K}var Rc=Bc,nA=Rc;function sA(t){var n=t==null?0:t.length;return n?nA(t,1):[]}var aA=sA;function lA(t,n,S){switch(S.length){case 0:return t.call(n);case 1:return t.call(n,S[0]);case 2:return t.call(n,S[0],S[1]);case 3:return t.call(n,S[0],S[1],S[2])}return t.apply(n,S)}var zc=lA,hA=zc,Ga=Math.max;function cA(t,n,S){return n=Ga(n===void 0?t.length-1:n,0),function(){for(var B=arguments,K=-1,J=Ga(B.length-n,0),it=Array(J);++K<J;)it[K]=B[n+K];K=-1;for(var nt=Array(n+1);++K<n;)nt[K]=B[K];return nt[n]=S(it),hA(t,this,nt)}}var Fc=cA;function pA(t){return function(){return t}}var dA=pA,uA=dA,Wa=rh,fA=Jn,gA=Wa?function(t,n){return Wa(t,"toString",{configurable:!0,enumerable:!1,value:uA(n),writable:!0})}:fA,mA=gA,yA=800,vA=16,bA=Date.now;function xA(t){var n=0,S=0;return function(){var B=bA(),K=vA-(B-S);if(S=B,K>0){if(++n>=yA)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}var wA=xA,CA=mA,SA=wA,MA=SA(CA),Gc=MA,AA=aA,TA=Fc,kA=Gc;function PA(t){return kA(TA(t,void 0,AA),t+"")}var Wc=PA;const er=(t,n)=>{const S=!t||t==="";let B,K,J;return me(n)?(B=parseFloat(t),K=isNaN(B)):Ue(n)?(B=ss(t).valueOf(),K=isNaN(B)):(B=t,J=t==null?void 0:t.toLowerCase(),K=!1),At({value:B,valueUndefined:S,valueIsNaN:K},J&&{lowercaseValue:J})};function Ha(t,n){const S=rf(t)?t:{displayValue:t==null?void 0:t.toString()};return S.compareValue||(S.compareValue=er(S.displayValue,n)),S}var Hc=(t=>(t[t.ASC=1]="ASC",t[t.DESC=-1]="DESC",t[t.NONE=0]="NONE",t))(Hc||{});function Uc(t,n,S=1,B="string"){const K=Ha(t,B),J=Ha(n,B),it=K.compareValue,nt=J.compareValue;if(it.valueUndefined&&nt.valueUndefined)return 0;if(it.valueUndefined)return 1;if(nt.valueUndefined)return-1;if(it.valueIsNaN&&nt.valueIsNaN)return 0;if(it.valueIsNaN)return 1;if(nt.valueIsNaN)return-1;const at=it.lowercaseValue,lt=nt.lowercaseValue;if(at!==void 0&&lt!==void 0){if(at<lt)return-1*S;if(at>lt)return 1*S}return it.value<nt.value?-1*S:it.value>nt.value?1*S:0}class Xc{constructor(n){le(this,"columns",[]);this.columns=n}compare(n,S){for(let B=0;B<this.columns.length;B++){const K=this.columns[B],J=n[K.index],it=S[K.index],nt=K.direction||1,at=Uc(J,it,nt,K.type);if(at!==0)return at}return 0}}const Yc=t=>t instanceof Object&&"data"in t,LA=t=>t.rows.length===0,hs="$rownum",EA=t=>{let n=0;const S=t.rows.map(K=>{const J=t.columns.map((it,nt)=>{var ft;const at=K[nt];if(Yc(at)){let N=at.data.toString();if(Ue(it.type)){const rt="1111-11-11T";N.startsWith(rt)&&(N=N.replace(rt,"1970-01-01T"))}return At(At({rawValue:at.data,displayValue:(ft=at.text)!=null?ft:N,compareValue:er(N,it.type)},at.blur?{blur:at.blur}:{}),at.color?{color:at.color}:{})}let lt,pt;return Ue(it.type)&&(lt=er(`${at}`,it.type),pt=new Date(lt.value).toISOString()),{rawValue:pt!=null?pt:at,displayValue:`${at!=null?at:""}`,compareValue:lt}});return n++,J.push({displayValue:`${n}`,rawValue:n}),J}),B=t.columns.map((K,J)=>({name:K.name,type:K.type,index:J,direction:0}));return B.push({name:hs,type:"number",index:B.length,direction:0}),{columns:B,rows:S}},Vc=["polar"],$c=["line","area","bar","column",...Vc],Zc=["pie","funnel","treemap","sunburst"],qc=["scatter"],OA=["table"],DA=["indicator"],Kc=["boxplot"],jA=["areamap"],IA=["scattermap"],Jc=["arearange"],cs=t=>$c.find(n=>n===t)!==void 0,Qc=t=>Zc.find(n=>n===t)!==void 0,tp=t=>qc.find(n=>n===t)!==void 0,ep=t=>IA.find(n=>n===t)!==void 0,ip=t=>DA.find(n=>n===t)!==void 0,rp=t=>Vc.find(n=>n===t)!==void 0,_A=t=>OA.find(n=>n===t)!==void 0,op=t=>Kc.find(n=>n===t)!==void 0,np=t=>jA.find(n=>n===t)!==void 0,NA=t=>Jc.find(n=>n===t)!==void 0;class Ua{constructor(n){le(this,"data");le(this,"sum");le(this,"max");le(this,"min");le(this,"avg");le(this,"variance");le(this,"stddev");this.data=n}getStat(n){switch(n){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 n of this.data)this.sum+=n;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 n of this.data)n>this.max&&(this.max=n);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 n of this.data)n<this.min&&(this.min=n);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((n,S,B)=>B.indexOf(n)===S).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 n=this.getMean();this.variance=this.data.reduce((S,B)=>S.concat(Rt(B-n,2)),[]).reduce((S,B)=>S+B,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)}}class BA{constructor(n){le(this,"data");le(this,"countDistinct");this.data=n}getStat(n){switch(n){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((n,S,B)=>B.indexOf(n)===S).length}}const sp=(t,n)=>t.slice(0).sort((S,B)=>n.compare(S,B)),ps=(t,n)=>{if(!(t&&t.length>0))return[];const S=new Xc(n),B=sp(t,S);let K=[];const J=[];let it=B[0];for(const nt of Array.from(B))S.compare(nt,it)!==0&&(J.push(K),K=[]),K.push(nt),it=nt;return J.push(K),J},RA=(t,n)=>{var B,K;const S=[];for(const J of n){let it;const nt=J.column,{aggFunc:at}=J,lt=t.filter(N=>!!N[nt.index]&&N[nt.index].displayValue!==""),pt=(K=(B=lt.find(N=>{var rt;return N!==void 0&&((rt=N==null?void 0:N[nt.index])==null?void 0:rt.color)}))==null?void 0:B[nt.index])==null?void 0:K.color,ft=lt.some(N=>N[nt.index].blur);if(Ue(nt.type)){const N=lt.map(rt=>ss(rt[nt.index].displayValue).valueOf());it=new Ua(N).getStat(at)}else if(me(nt.type)){const N=lt.map(rt=>parseFloat(rt[nt.index].displayValue));it=new Ua(N).getStat(at)}else{const N=lt.map(rt=>rt[nt.index].displayValue);it=new BA(N).getStat(at)}S.push(At(At({displayValue:`${it}`},pt&&{color:pt}),ft&&{blur:ft}))}return S},ap=(t,n)=>{if(gs(t))return{columns:[],rows:[]};const S=new Xc(n);return{columns:t.columns,rows:sp(t.rows,S)}},lp=(t,n,S)=>{if(gs(t))return{rows:[],columns:[]};const B={name:"n/a",type:"n/a",index:-1,direction:0},K=S.map(lt=>({aggFunc:lt.agg,aggName:lt.title,column:ii(t,lt.column)||B})).filter(lt=>lt.column.index!==-1),J=ps(t.rows,n),it=K.map(lt=>lt.aggName),nt=[];for(const lt of J){const pt=mr(lt[0],n),ft=RA(lt,K),N=pt.slice(0).concat(ft);nt.push(N)}const at=n.slice(0).concat(it.map(lt=>({name:lt,type:"number",index:0,direction:0})));return{rows:nt,columns:at.map((lt,pt)=>jt(At({},lt),{index:pt}))}},ii=(t,n)=>t.columns.find(S=>S.name===n),ir=(t,n)=>{const S={name:"foo",type:"string",index:-1,direction:0};return n.map(B=>ii(t,B)||S).filter(B=>B!==S)},hp=(t,n)=>{const S=t.rows.map(K=>n.map(J=>K[J.index]));return{columns:n.map((K,J)=>jt(At({},K),{index:J})),rows:S}},ds=(t,n)=>{if(!(t&&n.index<t.length))return;const S=t[n.index];return S.compareValue||(S.compareValue=er(S.displayValue,n.type)),S.compareValue.value},us=(t,n)=>{var S;return!!((S=t[n.index])!=null&&S.blur)},mr=(t,n)=>{const S=[];for(const B of n)S.push(t[B.index]);return S},zA=(t,n)=>mr(t,n).map(S=>S.rawValue||S.displayValue).join(","),fs=(t,n)=>{if(!(t&&t.length>0))return{};const S=ps(t,n),B={};for(const K of S){const J=zA(K[0],n);B[J]=K}return B},gs=t=>!(t.rows&&t.columns&&t.rows.length>0&&t.columns.length>0),cp=({x:t,y:n,breakBy:S})=>dp(n)&&pp(t)&&S.length===0,FA=({x:t,y:n,breakBy:S})=>pp(t)&&dp(n)&&S.length>0,pp=t=>t.length===0,dp=t=>t.length>0,GA=(t,n)=>t*(n/100),WA=(t,n)=>t===0?0:Math.abs(n)/Math.abs(t)*100,Xr=t=>`${t}%`;var Xa;(function(t){t.event="event",t.props="prop"})(Xa||(Xa={}));function HA(t){switch(t){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 UA(t,n,S){var B=HA(S),K=t.search(/[1-9]/);return K=K===-1?t.length:K,t.substring(0,K)+t.substring(K,t.length).replace(B,"$1"+n)}function XA(t,n){n===void 0&&(n=!0);var S=t[0]==="-",B=S&&n;t=t.replace("-","");var K=t.split("."),J=K[0],it=K[1]||"";return{beforeDecimal:J,afterDecimal:it,hasNegation:S,addNegation:B}}function YA(t,n,S){for(var B="",K=S?"0":"",J=0;J<=n-1;J++)B+=t[J]||K;return B}function VA(t,n){var S=n.decimalScale,B=n.fixedDecimalScale,K=n.prefix;K===void 0&&(K="");var J=n.suffix;J===void 0&&(J="");var it=n.allowNegative,nt=n.thousandsGroupStyle;if(nt===void 0&&(nt="thousand"),t===""||t==="-")return t;var at=$A(n),lt=at.thousandSeparator,pt=at.decimalSeparator,ft=S!==0&&t.indexOf(".")!==-1||S&&B,N=XA(t,it),rt=N.beforeDecimal,W=N.afterDecimal,R=N.addNegation;return S!==void 0&&(W=YA(W,S,!!B)),lt&&(rt=UA(rt,lt,nt)),K&&(rt=K+rt),J&&(W=W+J),R&&(rt="-"+rt),t=rt+(ft&&pt||"")+W,t}function $A(t){var n=t.decimalSeparator;n===void 0&&(n=".");var S=t.thousandSeparator,B=t.allowedDecimalSeparators;return S===!0&&(S=","),B||(B=[n,"."]),{decimalSeparator:n,thousandSeparator:S,allowedDecimalSeparators:B}}var ZA=_c;function qA(t){var n=ZA(t),S=n%1;return n===n?S?n-S:n:0}var KA=qA,JA=De,QA=KA,tT=as,Ya=qn,eT=JA.isFinite,iT=Math.min;function rT(t){var n=Math[t];return function(S,B){if(S=tT(S),B=B==null?0:iT(QA(B),292),B&&eT(S)){var K=(Ya(S)+"e").split("e"),J=n(K[0]+"e"+(+K[1]+B));return K=(Ya(J)+"e").split("e"),+(K[0]+"e"+(+K[1]-B))}return n(S)}}var oT=rT,nT=oT,sT=nT("round"),aT=sT;const lT=xe(aT),yn=1e3,vn=yn*1e3,bn=vn*1e3,Va=bn*1e3,up=1000.1.toLocaleString().replace(/\d/g,""),hT=up[0],cT=up[1],pT={name:"Numbers",decimalScale:"auto",trillion:!0,billion:!0,million:!0,kilo:!0,thousandSeparator:!0,prefix:!0,symbol:"$"},oe=t=>At(At({},pT),t||{}),dT=(t,n)=>isNaN(n)?"":`<span>${Oi(t,n)}</span>`,uT=(t,n)=>Math.sign(t)*lT(Math.abs(t),n),Oi=(t,n)=>{const S=t.decimalScale!==0&&t.decimalScale!=="auto",B=t.decimalScale==="auto"?2:t.decimalScale;let K=!0;t.name==="Numbers"&&!t.thousandSeparator&&(K=void 0);let J,it,nt=n;return t.name==="Percent"&&(it="%",nt=n*100),(t.name==="Numbers"||t.name==="Currency")&&(t.trillion&&Math.abs(n)/Va>=1?(nt=n/Va,it="T"):t.billion&&Math.abs(n)/bn>=1?(nt=n/bn,it="B"):t.million&&Math.abs(n)/vn>=1?(nt=n/vn,it="M"):t.kilo&&Math.abs(n)/yn>=1&&(nt=n/yn,it="K")),t.name==="Currency"&&(t.prefix?J=t.symbol:it?it=`${it}${t.symbol}`:it=t.symbol),VA(`${uT(nt,B)}`,{displayType:"text",thousandSeparator:K?hT:void 0,fixedDecimalScale:S,decimalScale:B,decimalSeparator:cT,prefix:J,suffix:it})},pe=(t,n)=>{let S=dT(t,n);return S=S.replace("<span>",""),S=S.replace("</span>",""),S},io="#dcdcdc",gi="#CCCCCC",si="#FFFFFF",fT=["#00cee6","#9b9bd7","#6eda55","#fc7570","#fbb755","#218a8c","#08e5ff","#b3b3f7","#7efb62","#ff8a87","#ffc26a","#279fa1"],ms=t=>({type:"uniform",color:t});function gT(t){return()=>t.color}const fp=t=>{if(t!==void 0)return typeof t=="string"?ms(t).color:t.type==="uniform"?t.color:io};function mT(t){var S;const n=((S=t.conditions)!=null?S:[]).map(B=>({match:yT(B),color:B.color}));return B=>{const K=n.find(J=>J.match(B));return K?K.color:t.defaultColor}}function yT(t){const n=Number(t.expression);switch(t.operator){case"<":return S=>S<n;case">":return S=>S>n;case"≤":case"<=":return S=>S<=n;case"≥":case">=":return S=>S>=n;case"=":return S=>S==n;case"≠":case"!=":return S=>S!=n;default:return()=>!0}}function se(t,n){let S=t.length;Array.isArray(t[0])||(t=[t]),Array.isArray(n[0])||(n=n.map(it=>[it]));let B=n[0].length,K=n[0].map((it,nt)=>n.map(at=>at[nt])),J=t.map(it=>K.map(nt=>{let at=0;if(!Array.isArray(it)){for(let lt of nt)at+=it*lt;return at}for(let lt=0;lt<it.length;lt++)at+=it[lt]*(nt[lt]||0);return at}));return S===1&&(J=J[0]),B===1?J.map(it=>it[0]):J}function yr(t){return oi(t)==="string"}function oi(t){return(Object.prototype.toString.call(t).match(/^\[object\s+(.*?)\]$/)[1]||"").toLowerCase()}function ro(t,n){t=+t,n=+n;let S=(Math.floor(t)+"").length;if(n>S)return+t.toFixed(n-S);{let B=Rt(10,S-n);return Math.round(t/B)*B}}function gp(t){if(!t)return;t=t.trim();const n=/^([a-z]+)\((.+?)\)$/i,S=/^-?[\d.]+$/;let B=t.match(n);if(B){let K=[];return B[2].replace(/\/?\s*([-\w.]+(?:%|deg)?)/g,(J,it)=>{/%$/.test(it)?(it=new Number(it.slice(0,-1)/100),it.type="<percentage>"):/deg$/.test(it)?(it=new Number(+it.slice(0,-3)),it.type="<angle>",it.unit="deg"):S.test(it)&&(it=new Number(it),it.type="<number>"),J.startsWith("/")&&(it=it instanceof Number?it:new Number(it),it.alpha=!0),K.push(it)}),{name:B[1].toLowerCase(),rawName:B[1],rawArgs:B[2],args:K}}}function mp(t){return t[t.length-1]}function oo(t,n,S){return isNaN(t)?n:isNaN(n)?t:t+(n-t)*S}function yp(t,n,S){return(S-t)/(n-t)}function ys(t,n,S){return oo(n[0],n[1],yp(t[0],t[1],S))}function vp(t){return t.map(n=>n.split("|").map(S=>{S=S.trim();let B=S.match(/^(<[a-z]+>)\[(-?[.\d]+),\s*(-?[.\d]+)\]?$/);if(B){let K=new String(B[1]);return K.range=[+B[2],+B[3]],K}return S}))}var vT=Object.freeze({__proto__:null,interpolate:oo,interpolateInv:yp,isString:yr,last:mp,mapRange:ys,multiplyMatrices:se,parseCoordGrammar:vp,parseFunction:gp,toPrecision:ro,type:oi});class bT{add(n,S,B){if(typeof arguments[0]!="string"){for(var n in arguments[0])this.add(n,arguments[0][n],arguments[1]);return}(Array.isArray(n)?n:[n]).forEach(function(K){this[K]=this[K]||[],S&&this[K][B?"unshift":"push"](S)},this)}run(n,S){this[n]=this[n]||[],this[n].forEach(function(B){B.call(S&&S.context?S.context:S,S)})}}const ai=new bT;var Xe={gamut_mapping:"lch.c",precision:5,deltaE:"76"};const _e={D50:[.3457/.3585,1,(1-.3457-.3585)/.3585],D65:[.3127/.329,1,(1-.3127-.329)/.329]};function xn(t){return Array.isArray(t)?t:_e[t]}function no(t,n,S,B={}){if(t=xn(t),n=xn(n),!t||!n)throw new TypeError(`Missing white point to convert ${t?"":"from"}${!t&&!n?"/":""}${n?"":"to"}`);if(t===n)return S;let K={W1:t,W2:n,XYZ:S,options:B};if(ai.run("chromatic-adaptation-start",K),K.M||(K.W1===_e.D65&&K.W2===_e.D50?K.M=[[1.0479298208405488,.022946793341019088,-.05019222954313557],[.029627815688159344,.990434484573249,-.01707382502938514],[-.009243058152591178,.015055144896577895,.7518742899580008]]:K.W1===_e.D50&&K.W2===_e.D65&&(K.M=[[.9554734527042182,-.023098536874261423,.0632593086610217],[-.028369706963208136,1.0099954580058226,.021041398966943008],[.012314001688319899,-.020507696433477912,1.3303659366080753]])),ai.run("chromatic-adaptation-end",K),K.M)return se(K.M,K.XYZ);throw new TypeError("Only Bradford CAT with white points D50 and D65 supported for now.")}const xT=75e-6,Ce=class Ce{constructor(n){var K,J,it,nt,at,lt,pt;this.id=n.id,this.name=n.name,this.base=n.base?Ce.get(n.base):null,this.aliases=n.aliases,this.base&&(this.fromBase=n.fromBase,this.toBase=n.toBase);let S=(K=n.coords)!=null?K:this.base.coords;for(let ft in S)"name"in S[ft]||(S[ft].name=ft);this.coords=S;let B=(it=(J=n.white)!=null?J:this.base.white)!=null?it:"D65";this.white=xn(B),this.formats=(nt=n.formats)!=null?nt:{};for(let ft in this.formats){let N=this.formats[ft];N.type||(N.type="function"),N.name||(N.name=ft)}n.cssId&&!((at=this.formats.functions)!=null&&at.color)?(this.formats.color={id:n.cssId},Object.defineProperty(this,"cssId",{value:n.cssId})):(lt=this.formats)!=null&&lt.color&&!((pt=this.formats)!=null&&pt.color.id)&&(this.formats.color.id=this.id),this.referred=n.referred,Object.defineProperty(this,"path",{value:wT(this).reverse(),writable:!1,enumerable:!0,configurable:!0}),ai.run("colorspace-init-end",this)}inGamut(n,{epsilon:S=xT}={}){if(this.isPolar)return n=this.toBase(n),this.base.inGamut(n,{epsilon:S});let B=Object.values(this.coords);return n.every((K,J)=>{let it=B[J];if(it.type!=="angle"&&it.range){if(Number.isNaN(K))return!0;let[nt,at]=it.range;return(nt===void 0||K>=nt-S)&&(at===void 0||K<=at+S)}return!0})}get cssId(){var n,S;return((S=(n=this.formats.functions)==null?void 0:n.color)==null?void 0:S.id)||this.id}get isPolar(){for(let n in this.coords)if(this.coords[n].type==="angle")return!0;return!1}getFormat(n){if(typeof n=="object")return n=$a(n,this),n;let S;return n==="default"?S=Object.values(this.formats)[0]:S=this.formats[n],S?(S=$a(S,this),S):null}equals(n){return n?this===n||this.id===n.id:!1}to(n,S){if(arguments.length===1&&([n,S]=[n.space,n.coords]),n=Ce.get(n),this.equals(n))return S;S=S.map(nt=>Number.isNaN(nt)?0:nt);let B=this.path,K=n.path,J,it;for(let nt=0;nt<B.length&&B[nt].equals(K[nt]);nt++)J=B[nt],it=nt;if(!J)throw new Error(`Cannot convert between color spaces ${this} and ${n}: no connection space was found`);for(let nt=B.length-1;nt>it;nt--)S=B[nt].toBase(S);for(let nt=it+1;nt<K.length;nt++)S=K[nt].fromBase(S);return S}from(n,S){return arguments.length===1&&([n,S]=[n.space,n.coords]),n=Ce.get(n),n.to(this,S)}toString(){return`${this.name} (${this.id})`}getMinCoords(){var S;let n=[];for(let B in this.coords){let K=this.coords[B],J=K.range||K.refRange;n.push((S=J==null?void 0:J.min)!=null?S:0)}return n}static get all(){return[...new Set(Object.values(Ce.registry))]}static register(n,S){if(arguments.length===1&&(S=arguments[0],n=S.id),S=this.get(S),this.registry[n]&&this.registry[n]!==S)throw new Error(`Duplicate color space registration: '${n}'`);if(this.registry[n]=S,arguments.length===1&&S.aliases)for(let B of S.aliases)this.register(B,S);return S}static get(n,...S){if(!n||n instanceof Ce)return n;if(oi(n)==="string"){let K=Ce.registry[n.toLowerCase()];if(!K)throw new TypeError(`No color space found with id = "${n}"`);return K}if(S.length)return Ce.get(...S);throw new TypeError(`${n} is not a valid color space`)}static resolveCoord(n,S){var at;let B=oi(n),K,J;if(B==="string"?n.includes(".")?[K,J]=n.split("."):[K,J]=[,n]:Array.isArray(n)?[K,J]=n:(K=n.space,J=n.coordId),K=Ce.get(K),K||(K=S),!K)throw new TypeError(`Cannot resolve coordinate reference ${n}: No color space specified and relative references are not allowed here`);if(B=oi(J),B==="number"||B==="string"&&J>=0){let lt=Object.entries(K.coords)[J];if(lt)return At({space:K,id:lt[0],index:J},lt[1])}K=Ce.get(K);let it=J.toLowerCase(),nt=0;for(let lt in K.coords){let pt=K.coords[lt];if(lt.toLowerCase()===it||((at=pt.name)==null?void 0:at.toLowerCase())===it)return At({space:K,id:lt,index:nt},pt);nt++}throw new TypeError(`No "${J}" coordinate found in ${K.name}. Its coordinates are: ${Object.keys(K.coords).join(", ")}`)}};le(Ce,"registry",{}),le(Ce,"DEFAULT_FORMAT",{type:"functions",name:"color"});let Gt=Ce;function wT(t){let n=[t];for(let S=t;S=S.base;)n.push(S);return n}function $a(t,{coords:n}={}){if(t.coords&&!t.coordGrammar){t.type||(t.type="function"),t.name||(t.name="color"),t.coordGrammar=vp(t.coords);let S=Object.entries(n).map(([B,K],J)=>{let it=t.coordGrammar[J][0],nt=K.range||K.refRange,at=it.range,lt="";return it=="<percentage>"?(at=[0,100],lt="%"):it=="<angle>"&&(lt="deg"),{fromRange:nt,toRange:at,suffix:lt}});t.serializeCoords=(B,K)=>B.map((J,it)=>{let{fromRange:nt,toRange:at,suffix:lt}=S[it];return nt&&at&&(J=ys(nt,at,J)),J=ro(J,K),lt&&(J+=lt),J})}return t}var Ee=new Gt({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 we extends Gt{constructor(n){var S,B,K;n.coords||(n.coords={r:{range:[0,1],name:"Red"},g:{range:[0,1],name:"Green"},b:{range:[0,1],name:"Blue"}}),n.base||(n.base=Ee),n.toXYZ_M&&n.fromXYZ_M&&((S=n.toBase)!=null||(n.toBase=J=>{let it=se(n.toXYZ_M,J);return this.white!==this.base.white&&(it=no(this.white,this.base.white,it)),it}),(B=n.fromBase)!=null||(n.fromBase=J=>(J=no(this.base.white,this.white,J),se(n.fromXYZ_M,J)))),(K=n.referred)!=null||(n.referred="display"),super(n)}}function bp(t,{meta:n}={}){var B,K,J,it,nt,at;let S={str:(B=String(t))==null?void 0:B.trim()};if(ai.run("parse-start",S),S.color)return S.color;if(S.parsed=gp(S.str),S.parsed){let lt=S.parsed.name;if(lt==="color"){let pt=S.parsed.args.shift(),ft=S.parsed.rawArgs.indexOf("/")>0?S.parsed.args.pop():1;for(let rt of Gt.all){let W=rt.getFormat("color");if(W&&(pt===W.id||(K=W.ids)!=null&&K.includes(pt))){const R=Object.keys(rt.coords).map((U,Y)=>S.parsed.args[Y]||0);return n&&(n.formatId="color"),{spaceId:rt.id,coords:R,alpha:ft}}}let N="";if(pt in Gt.registry){let rt=(nt=(it=(J=Gt.registry[pt].formats)==null?void 0:J.functions)==null?void 0:it.color)==null?void 0:nt.id;rt&&(N=`Did you mean color(${rt})?`)}throw new TypeError(`Cannot parse color(${pt}). `+(N||"Missing a plugin?"))}else for(let pt of Gt.all){let ft=pt.getFormat(lt);if(ft&&ft.type==="function"){let N=1;(ft.lastAlpha||mp(S.parsed.args).alpha)&&(N=S.parsed.args.pop());let rt=S.parsed.args,W;return ft.coordGrammar&&(W=Object.entries(pt.coords).map(([R,U],Y)=>{var E;let Z=ft.coordGrammar[Y],q=(E=rt[Y])==null?void 0:E.type,$=Z.find(x=>x==q);if(!$){let x=U.name||R;throw new TypeError(`${q} not allowed for ${x} in ${lt}()`)}let G=$.range;q==="<percentage>"&&(G||(G=[0,1]));let D=U.range||U.refRange;return G&&D&&(rt[Y]=ys(G,D,rt[Y])),$})),n&&Object.assign(n,{formatId:ft.name,types:W}),{spaceId:pt.id,coords:rt,alpha:N}}}}else for(let lt of Gt.all)for(let pt in lt.formats){let ft=lt.formats[pt];if(ft.type!=="custom"||ft.test&&!ft.test(S.str))continue;let N=ft.parse(S.str);if(N)return(at=N.alpha)!=null||(N.alpha=1),n&&(n.formatId=pt),N}throw new TypeError(`Could not parse ${t} as a color. Missing a plugin?`)}function Qt(t){if(!t)throw new TypeError("Empty color reference");yr(t)&&(t=bp(t));let n=t.space||t.spaceId;return n instanceof Gt||(t.space=Gt.get(n)),t.alpha===void 0&&(t.alpha=1),t}function vr(t,n){return n=Gt.get(n),n.from(t)}function Oe(t,n){let{space:S,index:B}=Gt.resolveCoord(n,t.space);return vr(t,S)[B]}function xp(t,n,S){return n=Gt.get(n),t.coords=n.to(t.space,S),t}function li(t,n,S){if(t=Qt(t),arguments.length===2&&oi(arguments[1])==="object"){let B=arguments[1];for(let K in B)li(t,K,B[K])}else{typeof S=="function"&&(S=S(Oe(t,n)));let{space:B,index:K}=Gt.resolveCoord(n,t.space),J=vr(t,B);J[K]=S,xp(t,B,J)}return t}var vs=new Gt({id:"xyz-d50",name:"XYZ D50",white:"D50",base:Ee,fromBase:t=>no(Ee.white,"D50",t),toBase:t=>no("D50",Ee.white,t),formats:{color:{}}});const CT=216/24389,Za=24/116,Er=24389/27;let Ko=_e.D50;var Se=new Gt({id:"lab",name:"Lab",coords:{l:{refRange:[0,100],name:"L"},a:{refRange:[-125,125]},b:{refRange:[-125,125]}},white:Ko,base:vs,fromBase(t){let S=t.map((B,K)=>B/Ko[K]).map(B=>B>CT?Math.cbrt(B):(Er*B+16)/116);return[116*S[1]-16,500*(S[0]-S[1]),200*(S[1]-S[2])]},toBase(t){let n=[];return n[1]=(t[0]+16)/116,n[0]=t[1]/500+n[1],n[2]=n[1]-t[2]/200,[n[0]>Za?Math.pow(n[0],3):(116*n[0]-16)/Er,t[0]>8?Math.pow((t[0]+16)/116,3):t[0]/Er,n[2]>Za?Math.pow(n[2],3):(116*n[2]-16)/Er].map((B,K)=>B*Ko[K])},formats:{lab:{coords:["<number> | <percentage>","<number> | <percentage>[-1,1]","<number> | <percentage>[-1,1]"]}}});function No(t){return(t%360+360)%360}function ST(t,n){if(t==="raw")return n;let[S,B]=n.map(No),K=B-S;return t==="increasing"?K<0&&(B+=360):t==="decreasing"?K>0&&(S+=360):t==="longer"?-180<K&&K<180&&(K>0?S+=360:B+=360):t==="shorter"&&(K>180?S+=360:K<-180&&(B+=360)),[S,B]}var rr=new Gt({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:Se,fromBase(t){let[n,S,B]=t,K;const J=.02;return Math.abs(S)<J&&Math.abs(B)<J?K=NaN:K=Math.atan2(B,S)*180/Math.PI,[n,Math.sqrt(Rt(S,2)+Rt(B,2)),No(K)]},toBase(t){let[n,S,B]=t;return S<0&&(S=0),isNaN(B)&&(B=0),[n,S*Math.cos(B*Math.PI/180),S*Math.sin(B*Math.PI/180)]},formats:{lch:{coords:["<number> | <percentage>","<number> | <percentage>","<number> | <angle>"]}}});const qa=Rt(25,7),so=Math.PI,Ka=180/so,Ai=so/180;function wn(t,n,{kL:S=1,kC:B=1,kH:K=1}={}){let[J,it,nt]=Se.from(t),at=rr.from(Se,[J,it,nt])[1],[lt,pt,ft]=Se.from(n),N=rr.from(Se,[lt,pt,ft])[1];at<0&&(at=0),N<0&&(N=0);let rt=(at+N)/2,W=Rt(rt,7),R=.5*(1-Math.sqrt(W/(W+qa))),U=(1+R)*it,Y=(1+R)*pt,Z=Math.sqrt(Rt(U,2)+Rt(nt,2)),q=Math.sqrt(Rt(Y,2)+Rt(ft,2)),$=U===0&&nt===0?0:Math.atan2(nt,U),G=Y===0&&ft===0?0:Math.atan2(ft,Y);$<0&&($+=2*so),G<0&&(G+=2*so),$*=Ka,G*=Ka;let D=lt-J,E=q-Z,x=G-$,T=$+G,u=Math.abs(x),p;Z*q===0?p=0:u<=180?p=x:x>180?p=x-360:x<-180?p=x+360:console.log("the unthinkable has happened");let g=2*Math.sqrt(q*Z)*Math.sin(p*Ai/2),v=(J+lt)/2,y=(Z+q)/2,C=Math.pow(y,7),P;Z*q===0?P=T:u<=180?P=T/2:T<360?P=(T+360)/2:P=(T-360)/2;let L=Rt(v-50,2),M=1+.015*L/Math.sqrt(20+L),f=1+.045*y,b=1;b-=.17*Math.cos((P-30)*Ai),b+=.24*Math.cos(2*P*Ai),b+=.32*Math.cos((3*P+6)*Ai),b-=.2*Math.cos((4*P-63)*Ai);let l=1+.015*y*b,h=30*Math.exp(-1*Rt((P-275)/25,2)),e=2*Math.sqrt(C/(C+qa)),r=-1*Math.sin(2*h*Ai)*e,o=Rt(D/(S*M),2);return o+=Rt(E/(B*f),2),o+=Rt(g/(K*l),2),o+=r*(E/(B*f))*(g/(K*l)),Math.sqrt(o)}const MT=75e-6;function Qi(t,n=t.space,{epsilon:S=MT}={}){t=Qt(t),n=Gt.get(n);let B=t.coords;return n!==t.space&&(B=n.from(t)),n.inGamut(B,{epsilon:S})}function or(t){return{space:t.space,coords:t.coords.slice(),alpha:t.alpha}}function hi(t,{method:n=Xe.gamut_mapping,space:S=t.space}={}){if(yr(arguments[1])&&(S=arguments[1]),S=Gt.get(S),Qi(t,S,{epsilon:0}))return Qt(t);let B=Le(t,S);if(n!=="clip"&&!Qi(t,S)){let K=hi(or(B),{method:"clip",space:S});if(wn(t,K)>2){let J=Gt.resolveCoord(n),it=J.space,nt=J.id,at=Le(B,it),pt=(J.range||J.refRange)[0],ft=.01,N=pt,rt=Oe(at,nt);for(;rt-N>ft;){let W=or(at);W=hi(W,{space:S,method:"clip"}),wn(at,W)-2<ft?N=Oe(at,nt):rt=Oe(at,nt),li(at,nt,(N+rt)/2)}B=Le(at,S)}else B=K}if(n==="clip"||!Qi(B,S,{epsilon:0})){let K=Object.values(S.coords).map(J=>J.range||[]);B.coords=B.coords.map((J,it)=>{let[nt,at]=K[it];return nt!==void 0&&(J=Math.max(nt,J)),at!==void 0&&(J=Math.min(J,at)),J})}return S!==t.space&&(B=Le(B,t.space)),t.coords=B.coords,t}hi.returns="color";function Le(t,n,{inGamut:S}={}){t=Qt(t),n=Gt.get(n);let B=n.from(t),K={space:n,coords:B,alpha:t.alpha};return S&&(K=hi(K)),K}Le.returns="color";function ao(t,J={}){var it=J,{precision:n=Xe.precision,format:S="default",inGamut:B=!0}=it,K=Te(it,["precision","format","inGamut"]);var pt,ft,N;let nt;t=Qt(t);let at=S;S=(ft=(pt=t.space.getFormat(S))!=null?pt:t.space.getFormat("default"))!=null?ft:Gt.DEFAULT_FORMAT,B||(B=S.toGamut);let lt=t.coords;if(lt=lt.map(rt=>rt||0),B&&!Qi(t)&&(lt=hi(or(t),B===!0?void 0:B).coords),S.type==="custom")if(K.precision=n,S.serialize)nt=S.serialize(lt,t.alpha,K);else throw new TypeError(`format ${at} can only be used to parse colors, not for serialization`);else{let rt=S.name||"color";S.serializeCoords?lt=S.serializeCoords(lt,n):n!==null&&(lt=lt.map(Y=>ro(Y,n)));let W=[...lt];if(rt==="color"){let Y=S.id||((N=S.ids)==null?void 0:N[0])||t.space.id;W.unshift(Y)}let R=t.alpha;n!==null&&(R=ro(R,n));let U=t.alpha<1&&!S.noAlpha?`${S.commas?",":" /"} ${R}`:"";nt=`${rt}(${W.join(S.commas?", ":" ")}${U})`}return nt}const AT=[[.6369580483012914,.14461690358620832,.1688809751641721],[.2627002120112671,.6779980715188708,.05930171646986196],[0,.028072693049087428,1.060985057710791]],TT=[[1.716651187971268,-.355670783776392,-.25336628137366],[-.666684351832489,1.616481236634939,.0157685458139111],[.017639857445311,-.042770613257809,.942103121235474]];var Bo=new we({id:"rec2020-linear",name:"Linear REC.2020",white:"D65",toXYZ_M:AT,fromXYZ_M:TT,formats:{color:{}}});const Or=1.09929682680944,Ja=.018053968510807;var wp=new we({id:"rec2020",name:"REC.2020",base:Bo,toBase(t){return t.map(function(n){return n<Ja*4.5?n/4.5:Math.pow((n+Or-1)/Or,1/.45)})},fromBase(t){return t.map(function(n){return n>=Ja?Or*Math.pow(n,.45)-(Or-1):4.5*n})},formats:{color:{}}});const kT=[[.4865709486482162,.26566769316909306,.1982172852343625],[.2289745640697488,.6917385218365064,.079286914093745],[0,.04511338185890264,1.043944368900976]],PT=[[2.493496911941425,-.9313836179191239,-.40271078445071684],[-.8294889695615747,1.7626640603183463,.023624685841943577],[.03584583024378447,-.07617238926804182,.9568845240076872]];var Cp=new we({id:"p3-linear",name:"Linear P3",white:"D65",toXYZ_M:kT,fromXYZ_M:PT});const LT=[[.41239079926595934,.357584339383878,.1804807884018343],[.21263900587151027,.715168678767756,.07219231536073371],[.01933081871559182,.11919477979462598,.9505321522496607]],ET=[[3.2409699419045226,-1.537383177570094,-.4986107602930034],[-.9692436362808796,1.8759675015077202,.04155505740717559],[.05563007969699366,-.20397695888897652,1.0569715142428786]];var Sp=new we({id:"srgb-linear",name:"Linear sRGB",white:"D65",toXYZ_M:LT,fromXYZ_M:ET,formats:{color:{}}}),Qa={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 tl=Array(3).fill("<percentage> | <number>[0, 255]"),el=Array(3).fill("<number>[0, 255]");var nr=new we({id:"srgb",name:"sRGB",base:Sp,fromBase:t=>t.map(n=>{let S=n<0?-1:1,B=n*S;return B>.0031308?S*(1.055*Rt(B,1/2.4)-.055):12.92*n}),toBase:t=>t.map(n=>{let S=n<0?-1:1,B=n*S;return B<.04045?n/12.92:S*Rt((B+.055)/1.055,2.4)}),formats:{rgb:{coords:tl},rgb_number:{name:"rgb",commas:!0,coords:el,noAlpha:!0},color:{},rgba:{coords:tl,commas:!0,lastAlpha:!0},rgba_number:{name:"rgba",commas:!0,coords:el},hex:{type:"custom",toGamut:!0,test:t=>/^#([a-f0-9]{3,4}){1,2}$/i.test(t),parse(t){t.length<=5&&(t=t.replace(/[a-f0-9]/gi,"$&$&"));let n=[];return t.replace(/[a-f0-9]{2}/gi,S=>{n.push(parseInt(S,16)/255)}),{spaceId:"srgb",coords:n.slice(0,3),alpha:n.slice(3)[0]}},serialize:(t,n,{collapse:S=!0}={})=>{n<1&&t.push(n),t=t.map(J=>Math.round(J*255));let B=S&&t.every(J=>J%17===0);return"#"+t.map(J=>B?(J/17).toString(16):J.toString(16).padStart(2,"0")).join("")}},keyword:{type:"custom",test:t=>/^[a-z]+$/i.test(t),parse(t){t=t.toLowerCase();let n={spaceId:"srgb",coords:null,alpha:1};if(t==="transparent"?(n.coords=Qa.black,n.alpha=0):n.coords=Qa[t],n.coords)return n}}}}),Mp=new we({id:"p3",name:"P3",base:Cp,fromBase:nr.fromBase,toBase:nr.toBase,formats:{color:{id:"display-p3"}}});Xe.display_space=nr;if(typeof CSS!="undefined"&&CSS.supports)for(let t of[Se,wp,Mp]){let n=t.getMinCoords(),B=ao({space:t,coords:n,alpha:1});if(CSS.supports("color",B)){Xe.display_space=t;break}}function OT(t,B={}){var K=B,{space:n=Xe.display_space}=K,S=Te(K,["space"]);let J=ao(t,S);if(typeof CSS=="undefined"||CSS.supports("color",J)||!Xe.display_space)J=new String(J),J.color=t;else{let it=Le(t,n);J=new String(ao(it,S)),J.color=it}return J}function Ap(t,n,S="lab"){S=Gt.get(S);let B=S.from(t),K=S.from(n);return Math.sqrt(B.reduce((J,it,nt)=>{let at=K[nt];return isNaN(it)||isNaN(at)?J:J+Rt(at-it,2)},0))}function DT(t,n){return t=Qt(t),n=Qt(n),t.space===n.space&&t.alpha===n.alpha&&t.coords.every((S,B)=>S===n.coords[B])}function ci(t){return Oe(t,[Ee,"y"])}function Tp(t,n){li(t,[Ee,"y"],n)}function jT(t){Object.defineProperty(t.prototype,"luminance",{get(){return ci(this)},set(n){Tp(this,n)}})}var IT=Object.freeze({__proto__:null,getLuminance:ci,register:jT,setLuminance:Tp});function _T(t,n){t=Qt(t),n=Qt(n);let S=Math.max(ci(t),0),B=Math.max(ci(n),0);return B>S&&([S,B]=[B,S]),(S+.05)/(B+.05)}const NT=.56,BT=.57,RT=.62,zT=.65,il=.022,FT=1.414,GT=.1,WT=5e-4,HT=1.14,rl=.027,UT=1.14;function ol(t){return t>=il?t:t+Rt(il-t,FT)}function Ti(t){let n=t<0?-1:1,S=Math.abs(t);return n*Math.pow(S,2.4)}function XT(t,n){n=Qt(n),t=Qt(t);let S,B,K,J,it,nt;n=Le(n,"srgb"),[J,it,nt]=n.coords;let at=Ti(J)*.2126729+Ti(it)*.7151522+Ti(nt)*.072175;t=Le(t,"srgb"),[J,it,nt]=t.coords;let lt=Ti(J)*.2126729+Ti(it)*.7151522+Ti(nt)*.072175,pt=ol(at),ft=ol(lt),N=ft>pt;return Math.abs(ft-pt)<WT?B=0:N?(S=Rt(ft,NT)-Rt(pt,BT),B=S*HT):(S=Rt(ft,zT)-Rt(pt,RT),B=S*UT),Math.abs(B)<GT?K=0:B>0?K=B-rl:K=B+rl,K*100}function YT(t,n){t=Qt(t),n=Qt(n);let S=Math.max(ci(t),0),B=Math.max(ci(n),0);B>S&&([S,B]=[B,S]);let K=S+B;return K===0?0:(S-B)/K}const VT=5e4;function $T(t,n){t=Qt(t),n=Qt(n);let S=Math.max(ci(t),0),B=Math.max(ci(n),0);return B>S&&([S,B]=[B,S]),B===0?VT:(S-B)/B}function ZT(t,n){t=Qt(t),n=Qt(n);let S=Oe(t,[Se,"l"]),B=Oe(n,[Se,"l"]);return Math.abs(S-B)}const qT=216/24389,nl=24/116,Dr=24389/27;let Jo=_e.D65;var Cn=new Gt({id:"lab-d65",name:"Lab D65",coords:{l:{refRange:[0,100],name:"L"},a:{refRange:[-125,125]},b:{refRange:[-125,125]}},white:Jo,base:Ee,fromBase(t){let S=t.map((B,K)=>B/Jo[K]).map(B=>B>qT?Math.cbrt(B):(Dr*B+16)/116);return[116*S[1]-16,500*(S[0]-S[1]),200*(S[1]-S[2])]},toBase(t){let n=[];return n[1]=(t[0]+16)/116,n[0]=t[1]/500+n[1],n[2]=n[1]-t[2]/200,[n[0]>nl?Math.pow(n[0],3):(116*n[0]-16)/Dr,t[0]>8?Math.pow((t[0]+16)/116,3):t[0]/Dr,n[2]>nl?Math.pow(n[2],3):(116*n[2]-16)/Dr].map((B,K)=>B*Jo[K])},formats:{"lab-d65":{coords:["<number> | <percentage>","<number> | <percentage>[-1,1]","<number> | <percentage>[-1,1]"]}}});const Qo=Math.pow(5,.5)*.5+.5;function KT(t,n){t=Qt(t),n=Qt(n);let S=Oe(t,[Cn,"l"]),B=Oe(n,[Cn,"l"]),K=Math.abs(Math.pow(S,Qo)-Math.pow(B,Qo)),J=Math.pow(K,1/Qo)*Math.SQRT2-40;return J<7.5?0:J}var Yr=Object.freeze({__proto__:null,contrastAPCA:XT,contrastDeltaPhi:KT,contrastLstar:ZT,contrastMichelson:YT,contrastWCAG21:_T,contrastWeber:$T});function JT(t,n,S={}){yr(S)&&(S={algorithm:S});let J=S,{algorithm:B}=J,K=Te(J,["algorithm"]);if(!B){let it=Object.keys(Yr).map(nt=>nt.replace(/^contrast/,"")).join(", ");throw new TypeError(`contrast() function needs a contrast algorithm. Please specify one of: ${it}`)}t=Qt(t),n=Qt(n);for(let it in Yr)if("contrast"+B.toLowerCase()===it.toLowerCase())return Yr[it](t,n,K);throw new TypeError(`Unknown contrast algorithm: ${B}`)}function kp(t){let[n,S,B]=vr(t,Ee),K=n+15*S+3*B;return[4*n/K,9*S/K]}function Pp(t){let[n,S,B]=vr(t,Ee),K=n+S+B;return[n/K,S/K]}function QT(t){Object.defineProperty(t.prototype,"uv",{get(){return kp(this)}}),Object.defineProperty(t.prototype,"xy",{get(){return Pp(this)}})}var tk=Object.freeze({__proto__:null,register:QT,uv:kp,xy:Pp});function ek(t,n){return Ap(t,n,"lab")}const ik=Math.PI,sl=ik/180;function rk(t,n,{l:S=2,c:B=1}={}){let[K,J,it]=Se.from(t),[,nt,at]=rr.from(Se,[K,J,it]),[lt,pt,ft]=Se.from(n),N=rr.from(Se,[lt,pt,ft])[1];nt<0&&(nt=0),N<0&&(N=0);let rt=K-lt,W=nt-N,R=J-pt,U=it-ft,Y=Rt(R,2)+Rt(U,2)-Rt(W,2),Z=.511;K>=16&&(Z=.040975*K/(1+.01765*K));let q=.0638*nt/(1+.0131*nt)+.638,$;Number.isNaN(at)&&(at=0),at>=164&&at<=345?$=.56+Math.abs(.2*Math.cos((at+168)*sl)):$=.36+Math.abs(.4*Math.cos((at+35)*sl));let G=Math.pow(nt,4),D=Math.sqrt(G/(G+1900)),E=q*(D*$+1-D),x=Rt(rt/(S*Z),2);return x+=Rt(W/(B*q),2),x+=Y/Rt(E,2),Math.sqrt(x)}const al=203;var bs=new Gt({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:Ee,fromBase(t){return t.map(n=>Math.max(n*al,0))},toBase(t){return t.map(n=>Math.max(n/al,0))}});const jr=1.15,Ir=.66,ll=2610/Rt(2,14),ok=Rt(2,14)/2610,hl=3424/Rt(2,12),cl=2413/Rt(2,7),pl=2392/Rt(2,7),nk=1.7*2523/Rt(2,5),dl=Rt(2,5)/(1.7*2523),_r=-.56,tn=16295499532821565e-27,sk=[[.41478972,.579999,.014648],[-.20151,1.120649,.0531008],[-.0166008,.2648,.6684799]],ak=[[1.9242264357876067,-1.0047923125953657,.037651404030618],[.35031676209499907,.7264811939316552,-.06538442294808501],[-.09098281098284752,-.3127282905230739,1.5227665613052603]],lk=[[.5,.5,0],[3.524,-4.066708,.542708],[.199076,1.096799,-1.295875]],hk=[[1,.1386050432715393,.05804731615611886],[.9999999999999999,-.1386050432715393,-.05804731615611886],[.9999999999999998,-.09601924202631895,-.8118918960560388]];var Lp=new Gt({id:"jzazbz",name:"Jzazbz",coords:{jz:{refRange:[0,1],name:"Jz"},az:{refRange:[-.5,.5]},bz:{refRange:[-.5,.5]}},base:bs,fromBase(t){let[n,S,B]=t,K=jr*n-(jr-1)*B,J=Ir*S-(Ir-1)*n,nt=se(sk,[K,J,B]).map(function(N){let rt=hl+cl*Rt(N/1e4,ll),W=1+pl*Rt(N/1e4,ll);return Rt(rt/W,nk)}),[at,lt,pt]=se(lk,nt);return[(1+_r)*at/(1+_r*at)-tn,lt,pt]},toBase(t){let[n,S,B]=t,K=(n+tn)/(1+_r-_r*(n+tn)),it=se(hk,[K,S,B]).map(function(N){let rt=hl-Rt(N,dl),W=pl*Rt(N,dl)-cl;return 1e4*Rt(rt/W,ok)}),[nt,at,lt]=se(ak,it),pt=(nt+(jr-1)*lt)/jr,ft=(at+(Ir-1)*pt)/Ir;return[pt,ft,lt]},formats:{color:{}}}),Sn=new Gt({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:Lp,fromBase(t){let[n,S,B]=t,K;const J=2e-4;return Math.abs(S)<J&&Math.abs(B)<J?K=NaN:K=Math.atan2(B,S)*180/Math.PI,[n,Math.sqrt(Rt(S,2)+Rt(B,2)),No(K)]},toBase(t){return[t[0],t[1]*Math.cos(t[2]*Math.PI/180),t[1]*Math.sin(t[2]*Math.PI/180)]},formats:{color:{}}});function ck(t,n){let[S,B,K]=Sn.from(t),[J,it,nt]=Sn.from(n),at=S-J,lt=B-it;Number.isNaN(K)&&Number.isNaN(nt)?(K=0,nt=0):Number.isNaN(K)?K=nt:Number.isNaN(nt)&&(nt=K);let pt=K-nt,ft=2*Math.sqrt(B*it)*Math.sin(pt/2*(Math.PI/180));return Math.sqrt(Rt(at,2)+Rt(lt,2)+Rt(ft,2))}const Ep=3424/4096,Op=2413/128,Dp=2392/128,ul=2610/16384,pk=2523/32,dk=16384/2610,fl=32/2523,uk=[[.3592,.6976,-.0358],[-.1922,1.1004,.0755],[.007,.0749,.8434]],fk=[[2048/4096,2048/4096,0],[6610/4096,-13613/4096,7003/4096],[17933/4096,-17390/4096,-543/4096]],gk=[[.9999888965628402,.008605050147287059,.11103437159861648],[1.00001110343716,-.008605050147287059,-.11103437159861648],[1.0000320633910054,.56004913547279,-.3206339100541203]],mk=[[2.0701800566956137,-1.326456876103021,.20661600684785517],[.3649882500326575,.6804673628522352,-.04542175307585323],[-.04959554223893211,-.04942116118675749,1.1879959417328034]];var Mn=new Gt({id:"ictcp",name:"ICTCP",coords:{i:{refRange:[0,1],name:"I"},ct:{refRange:[-.5,.5],name:"CT"},cp:{refRange:[-.5,.5],name:"CP"}},base:bs,fromBase(t){let n=se(uk,t);return yk(n)},toBase(t){let n=vk(t);return se(mk,n)},formats:{color:{}}});function yk(t){let n=t.map(function(S){let B=Ep+Op*Rt(S/1e4,ul),K=1+Dp*Rt(S/1e4,ul);return Rt(B/K,pk)});return se(fk,n)}function vk(t){return se(gk,t).map(function(B){let K=Math.max(Rt(B,fl)-Ep,0),J=Op-Dp*Rt(B,fl);return 1e4*Rt(K/J,dk)})}function bk(t,n){let[S,B,K]=Mn.from(t),[J,it,nt]=Mn.from(n);return 720*Math.sqrt(Rt(S-J,2)+.25*Rt(B-it,2)+Rt(K-nt,2))}const xk=[[.8190224432164319,.3619062562801221,-.12887378261216414],[.0329836671980271,.9292868468965546,.03614466816999844],[.048177199566046255,.26423952494422764,.6335478258136937]],wk=[[1.2268798733741557,-.5578149965554813,.28139105017721583],[-.04057576262431372,1.1122868293970594,-.07171106666151701],[-.07637294974672142,-.4214933239627914,1.5869240244272418]],Ck=[[.2104542553,.793617785,-.0040720468],[1.9779984951,-2.428592205,.4505937099],[.0259040371,.7827717662,-.808675766]],Sk=[[.9999999984505198,.39633779217376786,.2158037580607588],[1.0000000088817609,-.10556134232365635,-.06385417477170591],[1.0000000546724108,-.08948418209496575,-1.2914855378640917]];var lo=new Gt({id:"oklab",name:"Oklab",coords:{l:{refRange:[0,1],name:"L"},a:{refRange:[-.4,.4]},b:{refRange:[-.4,.4]}},white:"D65",base:Ee,fromBase(t){let S=se(xk,t).map(B=>Math.cbrt(B));return se(Ck,S)},toBase(t){let S=se(Sk,t).map(B=>Rt(B,3));return se(wk,S)},formats:{oklab:{coords:["<percentage> | <number>","<number> | <percentage>[-1,1]","<number> | <percentage>[-1,1]"]}}});function Mk(t,n){let[S,B,K]=lo.from(t),[J,it,nt]=lo.from(n),at=S-J,lt=B-it,pt=K-nt;return Math.sqrt(Rt(at,2)+Rt(lt,2)+Rt(pt,2))}var ho={deltaE76:ek,deltaECMC:rk,deltaE2000:wn,deltaEJz:ck,deltaEITP:bk,deltaEOK:Mk};function Ki(t,n,S={}){yr(S)&&(S={method:S});let J=S,{method:B=Xe.deltaE}=J,K=Te(J,["method"]);t=Qt(t),n=Qt(n);for(let it in ho)if("deltae"+B.toLowerCase()===it.toLowerCase())return ho[it](t,n,K);throw new TypeError(`Unknown deltaE method: ${B}`)}function Ak(t,n=.25){let B=[Gt.get("oklch","lch"),"l"];return li(t,B,K=>K*(1+n))}function Tk(t,n=.25){let B=[Gt.get("oklch","lch"),"l"];return li(t,B,K=>K*(1-n))}var kk=Object.freeze({__proto__:null,darken:Tk,lighten:Ak});function jp(t,n,S=.5,B={}){[t,n]=[Qt(t),Qt(n)],oi(S)==="object"&&([S,B]=[.5,S]);let{space:K,outputSpace:J,premultiplied:it}=B;return br(t,n,{space:K,outputSpace:J,premultiplied:it})(S)}function Ip(t,n,S={}){let B;xs(t)&&([B,S]=[t,n],[t,n]=B.rangeArgs.colors);let N=S,{maxDeltaE:K,deltaEMethod:J,steps:it=2,maxSteps:nt=1e3}=N,at=Te(N,["maxDeltaE","deltaEMethod","steps","maxSteps"]);B||([t,n]=[Qt(t),Qt(n)],B=br(t,n,at));let lt=Ki(t,n),pt=K>0?Math.max(it,Math.ceil(lt/K)+1):it,ft=[];if(nt!==void 0&&(pt=Math.min(pt,nt)),pt===1)ft=[{p:.5,color:B(.5)}];else{let rt=1/(pt-1);ft=Array.from({length:pt},(W,R)=>{let U=R*rt;return{p:U,color:B(U)}})}if(K>0){let rt=ft.reduce((W,R,U)=>{if(U===0)return 0;let Y=Ki(R.color,ft[U-1].color,J);return Math.max(W,Y)},0);for(;rt>K;){rt=0;for(let W=1;W<ft.length&&ft.length<nt;W++){let R=ft[W-1],U=ft[W],Y=(U.p+R.p)/2,Z=B(Y);rt=Math.max(rt,Ki(Z,R.color),Ki(Z,U.color)),ft.splice(W,0,{p:Y,color:B(Y)}),W++}}}return ft=ft.map(rt=>rt.color),ft}function br(t,n,S={}){if(xs(t)){let[at,lt]=[t,n];return br(...at.rangeArgs.colors,At(At({},at.rangeArgs.options),lt))}let{space:B,outputSpace:K,progression:J,premultiplied:it}=S;t=Qt(t),n=Qt(n),t=or(t),n=or(n);let nt={colors:[t,n],options:S};if(B?B=Gt.get(B):B=Gt.registry[Xe.interpolationSpace]||t.space,K=K?Gt.get(K):B,t=Le(t,B),n=Le(n,B),t=hi(t),n=hi(n),B.coords.h&&B.coords.h.type==="angle"){let at=S.hue=S.hue||"shorter",lt=[B,"h"],[pt,ft]=[Oe(t,lt),Oe(n,lt)];[pt,ft]=ST(at,[pt,ft]),li(t,lt,pt),li(n,lt,ft)}return it&&(t.coords=t.coords.map(at=>at*t.alpha),n.coords=n.coords.map(at=>at*n.alpha)),Object.assign(at=>{at=J?J(at):at;let lt=t.coords.map((N,rt)=>{let W=n.coords[rt];return oo(N,W,at)}),pt=oo(t.alpha,n.alpha,at),ft={space:B,coords:lt,alpha:pt};return it&&(ft.coords=ft.coords.map(N=>N/pt)),K!==B&&(ft=Le(ft,K)),ft},{rangeArgs:nt})}function xs(t){return oi(t)==="function"&&!!t.rangeArgs}Xe.interpolationSpace="lab";function Pk(t){t.defineFunction("mix",jp,{returns:"color"}),t.defineFunction("range",br,{returns:"function<color>"}),t.defineFunction("steps",Ip,{returns:"array<color>"})}var Lk=Object.freeze({__proto__:null,isRange:xs,mix:jp,range:br,register:Pk,steps:Ip}),_p=new Gt({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:nr,fromBase:t=>{let n=Math.max(...t),S=Math.min(...t),[B,K,J]=t,[it,nt,at]=[NaN,0,(S+n)/2],lt=n-S;if(lt!==0){switch(nt=at===0||at===1?0:(n-at)/Math.min(at,1-at),n){case B:it=(K-J)/lt+(K<J?6:0);break;case K:it=(J-B)/lt+2;break;case J:it=(B-K)/lt+4}it=it*60}return[it,nt*100,at*100]},toBase:t=>{let[n,S,B]=t;n=n%360,n<0&&(n+=360),S/=100,B/=100;function K(J){let it=(J+n/30)%12,nt=S*Math.min(B,1-B);return B-nt*Math.max(-1,Math.min(it-3,9-it,1))}return[K(0),K(8),K(4)]},formats:{hsl:{toGamut:!0,coords:["<number> | <angle>","<percentage>","<percentage>"]},hsla:{coords:["<number> | <angle>","<percentage>","<percentage>"],commas:!0,lastAlpha:!0}}}),Np=new Gt({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:_p,fromBase(t){let[n,S,B]=t;S/=100,B/=100;let K=B+S*Math.min(B,1-B);return[n,K===0?0:200*(1-B/K),100*K]},toBase(t){let[n,S,B]=t;S/=100,B/=100;let K=B*(1-S/2);return[n,K===0||K===1?0:(B-K)/Math.min(K,1-K)*100,K*100]},formats:{color:{toGamut:!0}}}),Ek=new Gt({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:Np,fromBase(t){let[n,S,B]=t;return[n,B*(100-S)/100,100-B]},toBase(t){let[n,S,B]=t;S/=100,B/=100;let K=S+B;if(K>=1){let nt=S/K;return[n,0,nt*100]}let J=1-B,it=J===0?0:1-S/J;return[n,it*100,J*100]},formats:{hwb:{toGamut:!0,coords:["<number> | <angle>","<percentage>","<percentage>"]}}});const Ok=[[.5766690429101305,.1855582379065463,.1882286462349947],[.29734497525053605,.6273635662554661,.07529145849399788],[.02703136138641234,.07068885253582723,.9913375368376388]],Dk=[[2.0415879038107465,-.5650069742788596,-.34473135077832956],[-.9692436362808795,1.8759675015077202,.04155505740717557],[.013444280632031142,-.11836239223101838,1.0151749943912054]];var Bp=new we({id:"a98rgb-linear",name:"Linear Adobe® 98 RGB compatible",white:"D65",toXYZ_M:Ok,fromXYZ_M:Dk}),jk=new we({id:"a98rgb",name:"Adobe® 98 RGB compatible",base:Bp,toBase:t=>t.map(n=>Math.pow(Math.abs(n),563/256)*Math.sign(n)),fromBase:t=>t.map(n=>Math.pow(Math.abs(n),256/563)*Math.sign(n)),formats:{color:{id:"a98-rgb"}}});const Ik=[[.7977604896723027,.13518583717574031,.0313493495815248],[.2880711282292934,.7118432178101014,8565396060525902e-20],[0,0,.8251046025104601]],_k=[[1.3457989731028281,-.25558010007997534,-.05110628506753401],[-.5446224939028347,1.5082327413132781,.02053603239147973],[0,0,1.2119675456389454]];var Rp=new we({id:"prophoto-linear",name:"Linear ProPhoto",white:"D50",base:vs,toXYZ_M:Ik,fromXYZ_M:_k});const Nk=1/512,Bk=16/512;var Rk=new we({id:"prophoto",name:"ProPhoto",base:Rp,toBase(t){return t.map(n=>n<Bk?n/16:Rt(n,1.8))},fromBase(t){return t.map(n=>n>=Nk?Rt(n,1/1.8):16*n)},formats:{color:{id:"prophoto-rgb"}}}),zk=new Gt({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:lo,fromBase(t){let[n,S,B]=t,K;const J=2e-4;return Math.abs(S)<J&&Math.abs(B)<J?K=NaN:K=Math.atan2(B,S)*180/Math.PI,[n,Math.sqrt(Rt(S,2)+Rt(B,2)),No(K)]},toBase(t){let[n,S,B]=t,K,J;return isNaN(B)?(K=0,J=0):(K=S*Math.cos(B*Math.PI/180),J=S*Math.sin(B*Math.PI/180)),[n,K,J]},formats:{oklch:{coords:["<number> | <percentage>","<number> | <percentage>[0,1]","<number> | <angle>"]}}});const gl=203,ml=2610/Rt(2,14),Fk=Rt(2,14)/2610,Gk=2523/Rt(2,5),yl=Rt(2,5)/2523,vl=3424/Rt(2,12),bl=2413/Rt(2,7),xl=2392/Rt(2,7);var Wk=new we({id:"rec2100pq",name:"REC.2100-PQ",base:Bo,toBase(t){return t.map(function(n){return Rt(Math.max(Rt(n,yl)-vl,0)/(bl-xl*Rt(n,yl)),Fk)*1e4/gl})},fromBase(t){return t.map(function(n){let S=Math.max(n*gl/1e4,0),B=vl+bl*Rt(S,ml),K=1+xl*Rt(S,ml);return Rt(B/K,Gk)})},formats:{color:{id:"rec2100-pq"}}});const wl=.17883277,Cl=.28466892,Sl=.55991073,en=3.7743;var Hk=new we({id:"rec2100hlg",cssid:"rec2100-hlg",name:"REC.2100-HLG",referred:"scene",base:Bo,toBase(t){return t.map(function(n){return n<=.5?Rt(n,2)/3*en:(Math.exp((n-Sl)/wl)+Cl)/12*en})},fromBase(t){return t.map(function(n){return n/=en,n<=1/12?Math.sqrt(3*n):wl*Math.log(12*n-Cl)+Sl})},formats:{color:{id:"rec2100-hlg"}}});const zp={};ai.add("chromatic-adaptation-start",t=>{t.options.method&&(t.M=Fp(t.W1,t.W2,t.options.method))});ai.add("chromatic-adaptation-end",t=>{t.M||(t.M=Fp(t.W1,t.W2,t.options.method))});function Ro({id:t,toCone_M:n,fromCone_M:S}){zp[t]=arguments[0]}function Fp(t,n,S="Bradford"){let B=zp[S],[K,J,it]=se(B.toCone_M,t),[nt,at,lt]=se(B.toCone_M,n),pt=[[nt/K,0,0],[0,at/J,0],[0,0,lt/it]],ft=se(pt,B.toCone_M);return se(B.fromCone_M,ft)}Ro({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]]});Ro({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]]});Ro({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]]});Ro({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(_e,{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]});_e.ACES=[.32168/.33767,1,(1-.32168-.33767)/.33767];const Uk=[[.6624541811085053,.13400420645643313,.1561876870049078],[.27222871678091454,.6740817658111484,.05368951740793705],[-.005574649490394108,.004060733528982826,1.0103391003129971]],Xk=[[1.6410233796943257,-.32480329418479,-.23642469523761225],[-.6636628587229829,1.6153315916573379,.016756347685530137],[.011721894328375376,-.008284441996237409,.9883948585390215]];var Gp=new we({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:_e.ACES,toXYZ_M:Uk,fromXYZ_M:Xk,formats:{color:{}}});const Nr=Rt(2,-16),rn=-.35828683,Br=(Math.log2(65504)+9.72)/17.52;var Yk=new we({id:"acescc",name:"ACEScc",coords:{r:{range:[rn,Br],name:"Red"},g:{range:[rn,Br],name:"Green"},b:{range:[rn,Br],name:"Blue"}},referred:"scene",base:Gp,toBase(t){const n=-.3013698630136986;return t.map(function(S){return S<=n?(Rt(2,S*17.52-9.72)-Nr)*2:S<Br?Rt(2,S*17.52-9.72):65504})},fromBase(t){return t.map(function(n){return n<=0?(Math.log2(Nr)+9.72)/17.52:n<Nr?(Math.log2(Nr+n*.5)+9.72)/17.52:(Math.log2(n)+9.72)/17.52})},formats:{color:{}}}),Ml=Object.freeze({__proto__:null,A98RGB:jk,A98RGB_Linear:Bp,ACEScc:Yk,ACEScg:Gp,HSL:_p,HSV:Np,HWB:Ek,ICTCP:Mn,JzCzHz:Sn,Jzazbz:Lp,LCH:rr,Lab:Se,Lab_D65:Cn,OKLCH:zk,OKLab:lo,P3:Mp,P3_Linear:Cp,ProPhoto:Rk,ProPhoto_Linear:Rp,REC_2020:wp,REC_2020_Linear:Bo,REC_2100_HLG:Hk,REC_2100_PQ:Wk,XYZ_ABS_D65:bs,XYZ_D50:vs,XYZ_D65:Ee,sRGB:nr,sRGB_Linear:Sp});class Jt{constructor(...n){let S;n.length===1&&(S=Qt(n[0]));let B,K,J;S?(B=S.space||S.spaceId,K=S.coords,J=S.alpha):[B,K,J]=n,Object.defineProperty(this,"space",{value:Gt.get(B),writable:!1,enumerable:!0,configurable:!0}),this.coords=K?K.slice():[0,0,0],this.alpha=J<1?J:1;for(let it=0;it<this.coords.length;it++)this.coords[it]==="NaN"&&(this.coords[it]=NaN);for(let it in this.space.coords)Object.defineProperty(this,it,{get:()=>this.get(it),set:nt=>this.set(it,nt)})}get spaceId(){return this.space.id}clone(){return new Jt(this.space,this.coords,this.alpha)}toJSON(){return{spaceId:this.spaceId,coords:this.coords,alpha:this.alpha}}display(...n){let S=OT(this,...n);return S.color=new Jt(S.color),S}static get(n,...S){return n instanceof Jt?n:new Jt(n,...S)}static defineFunction(n,S,B=S){let{instance:K=!0,returns:J}=B,it=function(...nt){let at=S(...nt);if(J==="color")at=Jt.get(at);else if(J==="function<color>"){let lt=at;at=function(...pt){let ft=lt(...pt);return Jt.get(ft)},Object.assign(at,lt)}else J==="array<color>"&&(at=at.map(lt=>Jt.get(lt)));return at};n in Jt||(Jt[n]=it),K&&(Jt.prototype[n]=function(...nt){return it(this,...nt)})}static defineFunctions(n){for(let S in n)Jt.defineFunction(S,n[S],n[S])}static extend(n){if(n.register)n.register(Jt);else for(let S in n)Jt.defineFunction(S,n[S])}}Jt.defineFunctions({get:Oe,getAll:vr,set:li,setAll:xp,to:Le,equals:DT,inGamut:Qi,toGamut:hi,distance:Ap,toString:ao});Object.assign(Jt,{util:vT,hooks:ai,WHITES:_e,Space:Gt,spaces:Gt.registry,parse:bp,defaults:Xe});for(let t of Object.keys(Ml))Gt.register(Ml[t]);for(let t in Gt.registry)An(t,Gt.registry[t]);ai.add("colorspace-init-end",t=>{var n;An(t.id,t),(n=t.aliases)==null||n.forEach(S=>{An(S,t)})});function An(t,n){Object.values(n.coords).map(B=>B.name);let S=t.replace(/-/g,"_");Object.defineProperty(Jt.prototype,S,{get(){let B=this.getAll(t);return typeof Proxy=="undefined"?B:new Proxy(B,{has:(K,J)=>{try{return Gt.resolveCoord([n,J]),!0}catch(it){}return Reflect.has(K,J)},get:(K,J,it)=>{if(J&&typeof J!="symbol"&&!(J in K)){let{index:nt}=Gt.resolveCoord([n,J]);if(nt>=0)return K[nt]}return Reflect.get(K,J,it)},set:(K,J,it,nt)=>{if(J&&typeof J!="symbol"&&!(J in K)||J>=0){let{index:at}=Gt.resolveCoord([n,J]);if(at>=0)return K[at]=it,this.setAll(t,K),!0}return Reflect.set(K,J,it,nt)}})},set(B){this.setAll(t,B)},configurable:!0,enumerable:!0})}Jt.extend(ho);Jt.extend({deltaE:Ki});Object.assign(Jt,{deltaEMethods:ho});Jt.extend(kk);Jt.extend({contrast:JT});Jt.extend(tk);Jt.extend(IT);Jt.extend(Lk);Jt.extend(Yr);const Vk=.15,Re=t=>typeof t=="string"?new Jt(t):t,Je=t=>t.toString({format:"hex"}),Wp=(...t)=>{const n=t.map(Re);if(n.length<2)return()=>Je(n[0]);const B=n.slice(0,-1).map((K,J)=>[K,n[J+1]]).map(([K,J])=>{const it=Jt.range(K,J,{outputSpace:"srgb"});return nt=>Je(it(nt))});return K=>{if(K<=0)return Je(n[0]);if(K>=1)return Je(n[n.length-1]);const J=Math.floor(K*B.length);return B[J](K*B.length-J)}},$k=(t,...n)=>{const S=n.map(Re);if(S.length<2)return Array(t).fill(Je(S[0]));const B=Wp(...S);return Array(t).fill(0).map((K,J)=>B(J/(t-1)))},Hp=t=>Je(Re(t).set("hsl.s",0)),Zk=(t,n)=>Je(Jt.mix(t,n,.5,{outputSpace:"srgb"})),qk=(t,n)=>Math.abs(Re(n).hsl.h-Re(t).hsl.h),Up=(t,n)=>{const S=Re(t);return S.hsv.v=S.hsv.v+S.hsv.v*n,S.hsv.v>100&&(S.hsv.s=S.hsv.s-(S.hsv.v-100)/1.677),S.hsv.s=Math.max(0,Math.min(100,S.hsv.s)),S.hsv.v=Math.max(0,Math.min(100,S.hsv.v)),Je(S)},Xp=t=>({R:t.srgb[0]*255,G:t.srgb[1]*255,B:t.srgb[2]*255}),xr=t=>{const{R:n,G:S,B}=Xp(t);return 1-(.299*n+.587*S+.114*B)/255};function Kk(t){return xr(t)<.9}const Jk=(t,n=.05,S=1)=>{const B=Re(t),{R:K,G:J,B:it}=Xp(B),nt=xr(B);let at=n;Kk(B)&&(at*=-.6),at*=Math.exp(nt*1.2);const lt=Math.min(Math.max(Math.round(255*at)+K,0),255),pt=Math.min(Math.max(Math.round(255*at)+J,0),255),ft=Math.min(Math.max(Math.round(255*at)+it,0),255);return`rgba(${lt}, ${pt}, ${ft}, ${S})`},Qk=(t,n)=>{const S=Re(t);return S.alpha=n,Je(S)};function t2(t){return n=>{var lt,pt,ft;const{steps:S,minColor:B,maxColor:K}=t,J=(lt=t.minValue)!=null?lt:Math.min(...n),it=(pt=t.maxValue)!=null?pt:Math.max(...n),nt=(ft=t.midValue)!=null?ft:J<0&&it>0?0:(J+it)/2,at=e2(B!=null?B:io,K!=null?K:io,J,nt,it,S);return N=>at(N)}}const e2=(t,n,S,B,K,J=0)=>{const it=o2(S,B,K),nt=qk(t,n)>90?[t,Hp(Zk(t,n)),n]:[t,n];return J<=0?i2(it,nt):r2(it,J,nt)},i2=(t,n)=>{const S=Wp(...n);return B=>S(t(B))},r2=(t,n,S)=>{const B=$k(n,...S);return K=>{const J=Math.floor(t(K)*n);return B[Math.min(Math.max(J,0),n-1)]}},o2=(t,n,S)=>B=>B==t&&B==S?.5:B<n?.5*((B-t)/(n-t)):.5+.5*(B-n)/(S-n);function Yp(t){let n;switch(typeof t=="string"?n=ms(t):n=t,n.type){case"uniform":return{type:"Static",getColor:gT(n)};case"conditional":return{type:"Absolute",getColor:mT(n)};case"range":return{type:"Relative",getColor:t2(n)}}}const ws=t=>{const{getValueFromDataStructure:n,applyColorToDataStructure:S}=t;return(B,K)=>{const J=Yp(K);let it;switch(J.type){case"Static":it=()=>J.getColor();break;case"Absolute":it=nt=>J.getColor(nt);break;case"Relative":{const nt=B.map(n),at=J.getColor(nt);it=lt=>at(lt);break}}return B.map(nt=>{const at=n(nt),lt=it(at);return S(nt,lt)})}},n2=ws({getValueFromDataStructure:t=>t.value,applyColorToDataStructure:(t,n)=>jt(At({},t),{color:n})});var s2=lh,a2=pr,l2=lr,h2=je,c2=So,p2=hr,d2=Co,u2=wo,f2="[object Map]",g2="[object Set]",m2=Object.prototype,y2=m2.hasOwnProperty;function v2(t){if(t==null)return!0;if(c2(t)&&(h2(t)||typeof t=="string"||typeof t.splice=="function"||p2(t)||u2(t)||l2(t)))return!t.length;var n=a2(t);if(n==f2||n==g2)return!t.size;if(d2(t))return!s2(t).length;for(var S in t)if(y2.call(t,S))return!1;return!0}var Vp=v2;const b2=xe(Vp),$p=(t,n)=>Object.assign(Object.create(t),n),x2=(t,n)=>Object.assign(Object.create(Object.getPrototypeOf(t)),t,n),Zp=t=>{const n="column"in t;let S=t,B;if(n){const K=t,{column:J}=K,it=Te(K,["column"]);S=J,b2(it)||(B=it)}return{column:S,style:B}},Cs=t=>{var J;const{column:n,style:S}=Zp(t),B=Ue(n.type)?(J=n==null?void 0:n.getFormat)==null?void 0:J.call(n):void 0,K=jt(At({},S),{dateFormat:(S==null?void 0:S.dateFormat)||B});return $p(n,K)},qp=t=>{var J,it;const n="column"in t,S=n?t.column:t,K=$p(S,jt(At({},n?t:{}),{title:(it=(J=t.title)!=null?J:S.title)!=null?it:S.name,enabled:!0}));return K.aggregation=K.aggregation||"sum",K},w2=t=>Nc(t)?qp(t):Cs(t),C2=t=>t,S2=t=>t,M2=t=>t,Kp=t=>t,Fe=t=>{var n;return(n=t.title)!=null?n:t.name},A2=t=>Kp(Cs(t)),Tn=(t,n)=>{var N;if(n.rows.length===0)return{type:"cartesian",series:[],xValues:[],xAxisCount:0};const S=t,B=S.x.length;let K=ir(n,S.x.map(rt=>rt.name));K=K.map((rt,W)=>jt(At({},rt),{direction:Jp(S.x[W].sortType)}));const J=ir(n,S.breakBy.map(rt=>rt.name)),it=S.y.filter(rt=>(rt==null?void 0:rt.sortType)&&rt.sortType!=="sortNone"),nt=K.length>1?1:0,at=Qp(n,it,K,((N=K[nt])==null?void 0:N.direction)===0?hs:void 0),lt=S.y.map(rt=>rt.name),pt=S.breakBy.length>0?L2(n,at,K,lt[0],J,S.breakBy):T2(n,at,K,lt,S.y);return jt(At({},pt),{xAxisCount:B,type:"cartesian"})},Jp=t=>{switch(t){case"sortNone":return 0;case"sortDesc":return-1;case"sortAsc":default:return 1}},Qp=(t,n,S,B)=>{if(S.length===0)return[{key:"",xValues:[""],rawValues:[]}];const K=n.map(ft=>({column:ft.name,agg:"sum",title:ft.name}));if(B){const ft={column:B,title:B,agg:"min"};K.push(ft)}const J=lp(t,S,K),it=[];let nt=0;if(S.length===2){nt=1;const N=ii(J,S[0].name);N&&it.push(N)}if(n.map(ft=>{const N=ii(J,ft.name);return N&&it.push(jt(At({},N),{direction:ft.sortType==="sortAsc"?1:-1})),ft}),B){const ft=ii(J,B);ft&&it.push(ft)}if(S.length>0){const ft=ii(J,S[nt].name);ft&&it.push(ft)}const at=ap(J,it),lt=ir(at,S.map(ft=>ft.name)),pt=hp(at,lt);return pt.rows.map(ft=>{const N=mr(ft,pt.columns),rt=N.map(Y=>Y.displayValue),W=N.map(Y=>{var Z;return(Z=Y.rawValue)!=null?Z:Y.displayValue}),R=N.map(Y=>{var Z;return(Z=Y==null?void 0:Y.compareValue)==null?void 0:Z.value});return{key:W.join(","),xValues:rt,rawValues:W,compareValues:R}})},T2=(t,n,S,B,K)=>{const J=ir(t,B),it=K.reduce((lt,pt)=>(lt[pt.name]=pt,lt),{});if(J.length===0)return{type:"cartesian",series:[],xValues:[]};const nt=fs(t.rows,S),at=J.map(lt=>{let pt=n.map(N=>{var Z;const rt=nt[N.key],W=rt?rt[0]:[],R=ds(W,lt),{color:U,rawValue:Y}=(Z=W[lt.index])!=null?Z:{};return At({rawValue:Y,xValue:N.rawValues,xDisplayValue:N.xValues,xCompareValue:N.compareValues,value:R===void 0?NaN:R,blur:us(W,lt)},U&&{color:U})});const ft=it[lt.name].color;return ft&&(pt=n2(pt,ft)),{name:lt.name,title:Fe(it[lt.name]),data:pt}});return{xValues:n,series:at}},k2=(t,n,S)=>mr(t,n).map((B,K)=>{const J=oe(S[K].numberFormatConfig);return me(n[K].type)?pe(J,parseFloat(B.displayValue)):B.displayValue}).join(","),P2=(t,n)=>mr(t,n).map(({rawValue:S})=>S),L2=(t,n,S,B,K,J)=>{const it=ii(t,B);if(!it)return{type:"cartesian",series:[],xValues:[]};const lt=ps(t.rows,K).map(pt=>{const ft=pt[0];return{seriesName:k2(ft,K,J),seriesValues:P2(ft,K),rowsByXColumns:fs(pt,S)}}).map(pt=>{const ft=n.map(N=>{var Z;const rt=pt.rowsByXColumns[N.key],W=rt?rt[0]:[],R=ds(W,it),{color:U,rawValue:Y}=(Z=W[it.index])!=null?Z:{};return At({rawValue:Y,value:R===void 0?NaN:R,xValue:N.rawValues,xDisplayValue:N.xValues,xCompareValue:N.compareValues,blur:us(W,it)},U&&{color:U})});return{name:pt.seriesName,data:ft,custom:{rawValue:pt.seriesValues}}});return{xValues:n,series:lt}},E2={displayValue:"0"},Zi=(t,n)=>{if(n){for(let S=0;S<t.columns.length;S++)if(t.columns[S].name===n.name)return S}return-1},O2=(t,n)=>({x:Zi(n,t.x),y:Zi(n,t.y),breakByPoint:Zi(n,t.breakByPoint),breakByColor:Zi(n,t.breakByColor),size:Zi(n,t.size)}),Al=(t,n)=>n[t]||E2,D2=(t,n)=>{const S=new Set;return t.forEach(B=>{S.add(B[n].displayValue)}),Array.from(S.values())},Tl=(t,n,S)=>{if(S&&Hi(S))return D2(t,n)},kl=(t,n)=>[t,n],j2=(t,n)=>{const S=new Map(t==null?void 0:t.map(kl)),B=new Map(n==null?void 0:n.map(kl));return{xCategoriesMap:S,yCategoriesMap:B}},I2=(t,n)=>{var J,it;const S=O2(t,n),B=t!=null&&t.breakByPoint&&me(t.breakByPoint.type)?oe((J=t.breakByPoint)==null?void 0:J.numberFormatConfig):void 0,K=t!=null&&t.breakByColor&&(!Hi(t.breakByColor)||me(t.breakByColor.type))?oe((it=t.breakByColor)==null?void 0:it.numberFormatConfig):void 0;return n.rows.map(nt=>{const at=At({},nt[S.breakByPoint]);B&&(at.displayValue=pe(B,at.compareValue?at.compareValue.value:parseFloat(at.displayValue)));const lt=At({},nt[S.breakByColor]);return K&&(lt.displayValue=pe(K,lt.compareValue?lt.compareValue.value:parseFloat(lt.displayValue))),{xAxis:Al(S.x,nt),yAxis:Al(S.y,nt),breakByPoint:at,breakByColor:lt,size:nt[S.size]}})},_2=(t,n)=>{const S=I2(t,n),{x:B,y:K}=t,J=Tl(S,"xAxis",B),it=Tl(S,"yAxis",K);return{type:"scatter",scatterDataTable:S,xCategories:J,yCategories:it}},Ye=(t,n)=>{var B;const S=t==null?void 0:t.filter(K=>K);return(B=S&&S[n%S.length])!=null?B:fT[n%10]},td=(t,n)=>{const S=()=>jt(At({},t),{y:[]}),B=S(),K=S(),J=1,it=0;t.seriesValues.forEach(lt=>{B.y.push(lt),K.y.push(lt)}),t.rangeValues.forEach(lt=>{const pt=lt[J],ft=lt[it];B.y.push(pt),K.y.push(ft)});const nt=Tn(B,n),at=Tn(K,n);return jt(At({},nt),{type:"range",seriesOther:at})},zo="$forecast",Ss="$trend",Pi=t=>t.startsWith(zo),ed=t=>t.startsWith(Ss),co=t=>`${t} $range`,N2=(t,n,S)=>{const B=S[co(t.name)],K=n[co(t.name)],J=t.name.substring(zo.length+1),it=n[J],nt=t.data.findIndex(at=>!isNaN((at==null?void 0:at.y)||NaN));return t.showInLegend=!1,t.data[nt-1].y=it.data[nt-1].y,t.dashStyle="ShortDash",t.color=it.color,t.data.forEach((at,lt)=>{at.high=B.data[lt].y,at.low=K.data[lt].y}),nt},B2=(t,n)=>{t.showInLegend=!1,t.enableMouseTracking=!1;const S=t.name.substring(zo.length+1,t.name.length-7),B=n[S];t.color=B.color,t.fillOpacity=.15,t.lineWidth=0},R2=(t,n)=>{const S=t.name.substring(10,t.name.length-7),B=n[S],K=t.data.findIndex(J=>!isNaN((J==null?void 0:J.low)||NaN));t.data[K-1].low=B.data[K-1].y,t.data[K-1].high=B.data[K-1].y},z2=(t,n,S)=>{t.forEach(B=>B.plotBands=[{color:"#F7F7FA",borderWidth:0,from:n-1,to:S}])},F2=(t,n,S)=>{const B=t.name.substring(Ss.length+1),K=n[B];t.showInLegend=!1,t.dashStyle="ShortDot",t.color=K.color,K.name=`${K.name} (+${S("advanced.tooltip.trend")})`},G2=(t,n)=>{const S={};t.forEach(B=>{S[B.name]=B}),t.forEach(B=>{ed(B.name)&&F2(B,S,n)})},id=t=>t.rangeValues?!1:t.y.some(S=>Pi(S.title)),rd=t=>{const n=t.y.filter(J=>Pi(J.title)).map(J=>{const it=jt(At({},J),{title:co(J.title),name:`${J.name}_upper`});return[jt(At({},J),{title:co(J.title),name:`${J.name}_lower`}),it]}),B=n.concat(t.y).flat(),K=t.y;return jt(At({},t),{rangeValues:n,seriesValues:K,y:B})},W2=(t,n)=>{const S=rd(t);return jt(At({},td(S,n)),{type:"cartesian"})};var H2=vi,U2=ti,X2="[object Number]";function Y2(t){return typeof t=="number"||U2(t)&&H2(t)==X2}var od=Y2;const kn=xe(od);var nd=(t=>(t.FILTER="filter",t.SELECT="select",t))(nd||{}),sd=(t=>(t.PRE="pre",t.POST="post",t))(sd||{}),Vr=(t=>(t.WIDGET_FIRST="widgetFirst",t.CODE_FIRST="codeFirst",t.CODE_ONLY="codeOnly",t))(Vr||{});function ad(t){return t instanceof Mc}function V2(t){return{"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"}[t]}function $2(t){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"}[t]}function Z2(t){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"].includes(t)}function q2(t){return t==="tablewidget"||t==="tablewidgetagg"}function ld(t){return t==="pivot"||t==="pivot2"}function K2(t){return!ld(t)}function J2(t,n){var K;const S=t.find(J=>J.name===n);return((K=S==null?void 0:S.items)!=null?K:[]).filter(J=>!J.disabled)}function hd(t){return t.parent?hd(t.parent):t}function cd(t){switch(t){case Ji.ASC:return"sortAsc";case Ji.DESC:return"sortDesc";default:return"sortNone"}}function po(t){if(ad(t))return t.filters.map(po).join("-");const{attribute:n}=t,S=t.jaql().jaql,B=n.expression||S.dim,K=n.granularity||((S==null?void 0:S.datatype)==="datetime"?Be.translateJaqlToGranularity(S):"");return`${B}${K}`}function $r(t=[],n=[]){const S=[...t];return n.forEach(B=>{const K=S.findIndex(it=>po(B)===po(it));K!==-1?S[K]=B:S.push(B)}),S}function Q2(t=[],n=[],S){switch(S){case Vr.WIDGET_FIRST:return $r(n,t);case Vr.CODE_FIRST:return $r(t,n);case Vr.CODE_ONLY:return n;default:return $r(t,n)}}function tP(t,n){if(!n)return t;const S=fr(n);function B(K){if("instanceid"in K){const J=t.find(it=>it.guid===K.instanceid);if(!J)throw new ls("errors.unknownFilterInFilterRelations");return J}if("operator"in K){const J={operator:K.operator};return"left"in K&&(J.left=B(K.left)),"right"in K&&(J.right=B(K.right)),J}return K}return B(S)}function eP(t){if(!t)return t;const n=fr(t);function S(B){if("instanceId"in B)return{instanceid:B.instanceId};if("value"in B)return S(B.value);if("operator"in B){const K={operator:B.operator};return"left"in B&&(K.left=S(B.left)),"right"in B&&(K.right=S(B.right)),K}return B}return S(n)}const iP=t=>t?gr(t)||t.type&&me(t.type):!1,be=(t,n,S)=>{if(!t||n===void 0||isNaN(n))return S;const B=oe(t.numberFormatConfig);return Oi(B,n)},sr=(t,n,S)=>iP(t)?be(t,parseFloat(`${n}`),S):S,rP=["auto","column","area","areaspline","bar","scatter","arearange"];function pd(t){return t!=null&&t.chartType?rP.includes(t.chartType):!0}const ce=(t,n)=>t!==""?`<span style="color:${n!=null?n:"currentColor"}; font-size: 15px; line-height: 18px">${t}</span>`:"",qi=(t,n)=>`${n||""}${n&&t?"<br />":""}${t||""}`,mi=t=>`<div style="minWidth: 100px; color: #5B6372; fontSize: 13px; lineHeight: 18px; margin: 4px 6px">
7
- ${t}
8
- </div>`,ni=()=>'<hr class="csdk-border-t" style="margin: 7px 0px" />',oP=t=>{const n=t.map((S,B)=>S&&B>0?ni()+S:S).join("");return mi(n)},nP=(t,n)=>{const{maskedX:S,maskedY:B,maskedBreakByPoint:K,maskedSize:J,maskedBreakByColor:it}=t.point.custom,nt=sr(n.x,t.point.x,S),at=be(n.y,t.point.y,B),lt=be(n.size,t.point.z,J||""),pt=ce(nt,t.point.color),ft=ce(at,t.point.color),N=ce(K||"",t.point.color),rt=ce(it||"",t.point.color),W=ce(lt,t.point.color);return{x:pt,y:ft,breakByPoint:N,breakByColor:rt,size:W}},sP=(t,n)=>{const S=qi(t.x,n.x&&Fe(n.x)),B=qi(t.y,n.y&&Fe(n.y)),K=qi(t.breakByPoint,n.breakByPoint&&Fe(n.breakByPoint)),J=qi(t.breakByColor,n.breakByColor&&Fe(n.breakByColor)),it=qi(t.size,n.size&&Fe(n.size));return{x:S,y:B,breakByPoint:K,breakByColor:J,size:it}},aP=(t,n)=>{const S=nP(t,n),{x:B,y:K,breakByPoint:J,breakByColor:it,size:nt}=sP(S,n);return oP([B,K,J,it,nt])},lP=t=>({enabled:!0,useHTML:!0,formatter(){return aP(this,t)}});var hP=function(n){return cP(n)&&!pP(n)};function cP(t){return!!t&&typeof t=="object"}function pP(t){var n=Object.prototype.toString.call(t);return n==="[object RegExp]"||n==="[object Date]"||fP(t)}var dP=typeof Symbol=="function"&&Symbol.for,uP=dP?Symbol.for("react.element"):60103;function fP(t){return t.$$typeof===uP}function gP(t){return Array.isArray(t)?[]:{}}function ar(t,n){return n.clone!==!1&&n.isMergeableObject(t)?Di(gP(t),t,n):t}function mP(t,n,S){return t.concat(n).map(function(B){return ar(B,S)})}function yP(t,n){if(!n.customMerge)return Di;var S=n.customMerge(t);return typeof S=="function"?S:Di}function vP(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(n){return Object.propertyIsEnumerable.call(t,n)}):[]}function Pl(t){return Object.keys(t).concat(vP(t))}function dd(t,n){try{return n in t}catch(S){return!1}}function bP(t,n){return dd(t,n)&&!(Object.hasOwnProperty.call(t,n)&&Object.propertyIsEnumerable.call(t,n))}function xP(t,n,S){var B={};return S.isMergeableObject(t)&&Pl(t).forEach(function(K){B[K]=ar(t[K],S)}),Pl(n).forEach(function(K){bP(t,K)||(dd(t,K)&&S.isMergeableObject(n[K])?B[K]=yP(K,S)(t[K],n[K],S):B[K]=ar(n[K],S))}),B}function Di(t,n,S){S=S||{},S.arrayMerge=S.arrayMerge||mP,S.isMergeableObject=S.isMergeableObject||hP,S.cloneUnlessOtherwiseSpecified=ar;var B=Array.isArray(n),K=Array.isArray(t),J=B===K;return J?B?S.arrayMerge(t,n,S):xP(t,n,S):ar(n,S)}Di.all=function(n,S){if(!Array.isArray(n))throw new Error("first argument should be an array");return n.reduce(function(B,K){return Di(B,K,S)},{})};var wP=Di,CP=wP;const ke=xe(CP),SP={cursor:"default",fontFamily:"Open Sans",fontSize:"13px",fontWeight:"normal",color:"#5b6372",textOutline:"none",pointerEvents:"auto"},yi=t=>{const n={symbolRadius:0,backgroundColor:"transparent",borderColor:"transparent",borderWidth:0,itemStyle:SP};switch(t){case"bottom":return At({enabled:!0,align:"center",verticalAlign:"bottom",layout:"horizontal"},n);case"left":return At({enabled:!0,align:"left",verticalAlign:"middle",layout:"vertical"},n);case"right":return At({enabled:!0,align:"right",verticalAlign:"middle",layout:"vertical"},n);case"top":return At({enabled:!0,align:"center",verticalAlign:"top",layout:"horizontal"},n);default:return{enabled:!1,align:"center",verticalAlign:"bottom",layout:"horizontal"}}},ud={enabled:!0,types:{count:!1,relative:!0,totals:!0}},MP=t=>function(){return this.y===void 0||isNaN(this.y)?"":pe(oe(t),this.y)},Ms=t=>{const n=Math.abs(t)%180;return n<20?"horizontal":n<60?"diagonal":n<120?"vertical":n<160?"diagonal":"horizontal"},AP=(t,n,S)=>{var J;if(!n.enabled)return{enabled:!1};const B=jt(At({},ud),{align:"center",verticalAlign:"middle",rotation:(J=n.rotation)!=null?J:0});if(S)return B;const K=Ms(B.rotation);if(t==="vertical")return jt(At({},B),{align:K==="horizontal"?"left":"center"});switch(K){case"horizontal":return jt(At({},B),{verticalAlign:"bottom",padding:5});case"diagonal":return jt(At({},B),{align:"left",y:-10,x:-2});case"vertical":return jt(At({},B),{align:"left",y:-10})}},TP=(t,n)=>{var B;if(!t)return{enabled:!1};const S=(B=t.rotation)!=null?B:0;return jt(At({},ud),{verticalAlign:n==="line"?"bottom":"middle",rotation:S,align:Ms(S)==="vertical"?"left":"center",padding:5})},Ll=t=>jt(At({enabled:t.enabled,radius:!t.enabled||t.size==="small"?4:7,fillColor:!t.enabled||t.fill==="full"?null:si,lineColor:null,lineWidth:2,symbol:"circle",fillOpacity:.3},!t.enabled&&{symbol:"circle"}),{states:{hover:{fillColor:si,radius:t.size==="small"?6:9,lineWidth:3}}}),ge="#d1d1d7",fd=25,gd=[-10,-20,-30,-40,-50,-60,-70,-80,-90],de={fontFamily:"Open Sans",fontSize:"13px",fontWeight:"normal",color:"#5b6372",textOutline:"none",pointerEvents:"none"},kP={color:"#56535b",fontFamily:"Open Sans",fontSize:"13px",textOverflow:"ellipsis",pointerEvents:"none",textOutline:"none",fontWeight:"bold"},Pn={labels:{overflow:"none",enabled:!0,autoRotation:gd,style:de},tickmarkPlacement:"on",title:{text:"",enabled:!1,margin:fd,style:de},gridLineDashStyle:"Dot",minorGridLineWidth:0,startOnTick:!1,endOnTick:!1,lineColor:ge,lineWidth:1,tickColor:ge,minorTickColor:ge,gridLineColor:ge,minorGridLineColor:ge},El={labels:{autoRotation:gd,style:de},tickmarkPlacement:"on",startOnTick:!0,endOnTick:!0,title:{text:"",margin:fd,enabled:!1,style:de},gridLineWidth:1,minorTickWidth:0,tickWidth:0,minorGridLineWidth:0,gridLineDashStyle:"Dot",lineColor:ge,lineWidth:1,tickColor:ge,minorTickColor:ge,gridLineColor:ge,minorGridLineColor:ge,minorGridLineDashStyle:"Dot",stackLabels:{style:kP,crop:!0,allowOverlap:!1,enabled:!1,rotation:0,labelrank:99999},showLastLabel:!0},PP=(t,n,S)=>{switch(t){case"line":return di;case"area":return ke(di,Ol(S));case"bar":return ke(di,EP(S));case"column":return ke(di,LP(S));case"polar":return ke(di,OP(n));case"arearange":return ke(di,Ol(S));default:return di}},di={chart:{type:"line",spacing:[],alignTicks:!1,polar:!1},legend:yi(null),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:jt(At({},de),{textOutline:"none"})},stickyTracking:!1,states:{select:{color:null,opacity:.3,borderColor:"transparent"}}}},xAxis:[],yAxis:[],series:[],boost:{useGPUTranslations:!0,usePreAllocated:!0}},Ol=t=>({plotOptions:{area:At({},t&&{lineColor:"#ffffff"}),series:At({},t&&{stacking:t})}}),LP=t=>({plotOptions:{column:At({groupPadding:.1,pointPadding:.01},t&&{borderWidth:0}),series:At({},t&&{stacking:t})}}),EP=t=>({plotOptions:{bar:At({groupPadding:.1,pointPadding:.01},t&&{borderWidth:0}),series:At({},t&&{stacking:t})}});function OP(t){return{plotOptions:{series:jt(At({},t!=="line"&&{stacking:"normal"}),{fillOpacity:1})}}}const md=t=>t.compareValues?t.compareValues[0]:NaN,DP=t=>{switch(t){case Nt.Years:return 31536e6;case Nt.Quarters:return 7884e6;case Nt.Months:return 2592e6;case Nt.Weeks:return 6048e5;case Nt.Days:return 864e5;case Nt.AggHours:case Nt.Hours:return 36e5;case Nt.AggMinutesRoundTo30:case Nt.MinutesRoundTo30:return 18e5;case Nt.AggMinutesRoundTo15:case Nt.MinutesRoundTo15:return 9e5;case Nt.AggMinutesRoundTo1:return 6e4}return console.warn("Unsupported level"),0},As=t=>{if(t!==void 0){switch(t){case Nt.Years:return"yyyy";case Nt.Quarters:return"yyyy Q";case Nt.Months:return"MM/yyyy";case Nt.Weeks:return"ww yyyy";case Nt.Days:return"M/d/yy";case Nt.AggHours:return"HH";case Nt.Hours:return"M/d/yy HH";case Nt.AggMinutesRoundTo30:return"HH:mm";case Nt.MinutesRoundTo30:return"HH:mm";case Nt.AggMinutesRoundTo15:return"HH:mm";case Nt.MinutesRoundTo15:return"HH:mm";case Nt.AggMinutesRoundTo1:return"HH:mm";case Nt.Minutes:return"HH:mm";case Nt.Seconds:return"HH:mm:ss"}return console.warn("Unsupported level"),"M/d/yy HH"}},jP=(t,n)=>{const S=(t==null?void 0:t.dateFormat)||As(t==null?void 0:t.granularity);return!n||!S?B=>`${B}`:function(B){return n(new Date(B),S)}},IP=(t,n,S,B)=>{const K=(ft,N)=>ft.lastValue?{minInterval:Math.min(N-ft.lastValue,ft.minInterval),lastValue:N}:jt(At({},ft),{lastValue:N}),J=S[0],it=S[S.length-1];let nt=n.granularity?DP(n.granularity):S.reduce(K,{minInterval:(it-J)/(S.length-1),lastValue:void 0}).minInterval;if(nt<30*864e5&&nt>25*864e5&&(nt=2592e6),S.length>1&&(isNaN(nt)||nt===0))throw new Error("Unable to calculate tic interval. Try specifying datetime granularity.");let at;const lt=(n==null?void 0:n.dateFormat)||As(n==null?void 0:n.granularity);B&&lt&&(at=function(){const ft=this;return B(new Date(ft.value),lt)});const pt={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"};return[ke(Pn,{type:"datetime",title:{enabled:t.enabled&&t.titleEnabled,text:t.title},dateTimeLabelFormats:pt,gridLineDashStyle:"Dot",gridLineWidth:t.enabled&&t.gridLine?1:0,gridLineColor:ge,tickWidth:0,lineColor:ge,lineWidth:1,labels:jt(At({},at&&{formatter:at}),{overflow:"none",enabled:t.enabled&&t.labels,autoRotation:[-10,-20,-30,-40,-50,-60,-70,-80,-90],style:de}),min:J,max:it,tickInterval:nt,minTickInterval:nt,tickmarkPlacement:"on",startOnTick:!0,endOnTick:!0,startOfWeek:4,showFirstLabel:!0,showLastLabel:!0,minRange:nt,isDate:!0})]},_P=(t,n,S,B,K,J,it)=>{const nt=(B||[]).map(rt=>({isPlotBand:!0,from:rt.from,to:rt.to,label:At({text:rt.text,y:-5,style:jt(At({},de),{width:"70px",textOverflow:"ellipsis"})},K==="vertical"&&{align:"right",x:5,textAlign:"left",y:0})})),at=(B||[]).filter(rt=>rt.from>0).map(rt=>({color:"#C0D0E0",dashStyle:"shortDot",width:1,value:rt.from})),lt=J,pt=lt.x[lt.x.length-1],ft=rp(it);let N=[ke(Pn,{type:t.type,title:At({enabled:t.enabled&&t.titleEnabled,text:t.title},ft&&{textAlign:"center",align:"high",y:-25}),gridLineDashStyle:"Dot",gridLineWidth:t.enabled&&t.gridLine?1:0,gridLineColor:ge,tickWidth:0,lineColor:ge,lineWidth:1,labels:jt(At({enabled:t.enabled&&t.labels,style:de},ft&&{rotation:0}),{formatter:function(){const rt=this;return!pt||!me(pt==null?void 0:pt.type)||isNaN(parseFloat(rt.value))?rt.value:pe(oe(pt==null?void 0:pt.numberFormatConfig),parseFloat(rt.value))}}),min:t.min,max:t.max,tickInterval:t.tickInterval,categories:S,plotBands:nt,plotLines:at,tickmarkPlacement:"on"})];return n&&(N=N.concat(ke(Pn,{title:{enabled:n.enabled&&n.titleEnabled,text:n.title},categories:S,opposite:!0,gridLineWidth:0,tickWidth:0,lineWidth:0}))),N},NP=(t,n,S,B,K,J)=>{var ft,N,rt,W;const it=J,nt=oe((ft=it.y.find(R=>!R.showOnRightAxis))==null?void 0:ft.numberFormatConfig),at=oe((N=it.y.find(R=>R.showOnRightAxis))==null?void 0:N.numberFormatConfig),lt=[{minClipped:!!(t.enabled&&t.min),maxClipped:!!(t.enabled&&t.max)}],pt=[ke(El,jt(At(At({type:t.type,title:{enabled:t.enabled&&t.titleEnabled,text:t.title},gridLineDashStyle:"Dot",gridLineWidth:t.enabled&&t.gridLine?1:0,gridLineColor:ge,tickWidth:0,lineColor:ge,lineWidth:1,labels:{enabled:t.enabled&&t.labels,style:de,formatter:function(){return pe(nt,this.value)}},startOnTick:!(t.enabled&&t.min)},t.min&&{minPadding:0}),t.max&&{maxPadding:0}),{min:t.enabled?(rt=t.min)!=null?rt:S.min:null,max:t.enabled?(W=t.max)!=null?W:S.max:null,tickInterval:t.enabled?t.tickInterval:null,stackLabels:{enabled:K}}))];if(B){lt.push({minClipped:!!(n!=null&&n.enabled&&n.min),maxClipped:!!(n!=null&&n.enabled&&n.max)});const R={startOnTick:!(n!=null&&n.enabled&&n.min),min:n!=null&&n.enabled?n.min||B.min:null,max:n!=null&&n.enabled?n.max||B.max:null},U=n!=null&&n.enabled?{opposite:!0,gridLineWidth:0,title:{enabled:n.enabled&&n.titleEnabled,text:n.title},labels:{enabled:n.enabled&&n.labels,style:de,formatter:function(){return pe(at,this.value)}},tickInterval:n.enabled?n.tickInterval:null,stackLabels:{enabled:K}}:{visible:!1};pt.push(ke(El,At(At({},R),U)))}return[pt,lt]},Fo=(t,n)=>t==="line"&&n.lineType==="smooth"?"spline":t==="area"&&n.lineType==="smooth"?"areaspline":t==="polar"?n.polarType:t==="scatter"?"bubble":t,yd=(t,n)=>{if(t!=="area"&&t!=="bar"&&t!=="column")return{showTotal:!1};const S=n.valueLabel&&n.showTotal||!1;switch(n.stackType){case"stacked":return{stacking:"normal",showTotal:S};case"stack100":return{stacking:"percent",showTotal:S};default:return{showTotal:!1}}},BP=(t,n)=>t.map((S,B)=>n===B?0:-1),RP=(t,n,S,B,K,J,it,nt)=>{const at=bd(t,S),ft=t,{title:lt}=ft,pt=Te(ft,["title"]);return jt(At({},pt),{name:lt!=null?lt:t.name,data:FP(at,n,B,K,S,J,it,nt)})},zP=(t,n)=>{!n.minClipped&&(t!=null&&t.min)&&(t==null?void 0:t.min)>0&&(t.min=0),!n.maxClipped&&(t!=null&&t.max)&&(t==null?void 0:t.max)<0&&(t.max=0)},FP=(t,n,S,B,K,J,it,nt)=>{const at=n.map((rt,W)=>{if(rt<0)return{y:null};const{value:R,blur:U,color:Y,rawValue:Z,xValue:q,xDisplayValue:$,xCompareValue:G}=t[rt],D=vd(t,n,rt,W),E=D||U,x={enabled:!U,isIsolatedPoint:D},T=G?G[0]:NaN;return jt(At(At({x:T,y:R,selected:U},E&&{marker:x}),Y&&{color:Y}),{custom:{rawValue:Z,xValue:q,xDisplayValue:$||q}})}),lt=[];let pt=-1;const ft=S/2;let N=0;return at.forEach(rt=>{if(rt.x&&pt===-1&&(pt=rt.x+ft),rt.x&&rt.x>pt){let W=Math.round((rt.x-(pt-ft))/S);for(;W>0&&(N++,!(N>B));){const R=rt.x-S*W;lt.push({custom:{xDisplayValue:J(R)},x:R,y:K?0:null}),K&&(it!=null&&it.min)&&(it==null?void 0:it.min)>0&&zP(it,nt),W--,pt+=S}}lt.push(rt),rt.x?pt=rt.x+S+ft:pt+=S}),lt},ji=(t,n,S,B,K)=>{const J=bd(t,S),at=t,{title:it}=at,nt=Te(at,["title"]);return jt(At({},nt),{name:it!=null?it:t.name,data:GP(J,n,B,K)})},vd=(t,n,S,B)=>{const K=B===0||n[B-1]<0||isNaN(t[n[B-1]].value),J=B+1===n.length||n[B+1]<0||isNaN(t[n[B+1]].value);return K&&J},bd=(t,n)=>t.data.map(K=>{var J=K,{value:S}=J,B=Te(J,["value"]);return At({value:n&&Number.isNaN(S)?0:S},B)}),GP=(t,n,S,B)=>{const K=t.some(J=>J.blur);return n.map((J,it)=>{if(J<0)return{y:null};const{value:nt,blur:at,color:lt,rawValue:pt,xValue:ft}=t[J];if(S)return jt(At({name:S[J],y:nt,color:lt!=null?lt:B==null?void 0:B[J]},K&&!at&&{selected:!0}),{custom:{rawValue:pt,xValue:ft}});{const N=vd(t,n,J,it),rt=N||K,W={enabled:!at,isIsolatedPoint:N};return jt(At(At({y:isNaN(+nt)?nt:+nt,selected:at},rt&&{marker:W}),lt&&{color:lt}),{custom:{rawValue:pt,xValue:ft}})}})},WP=(t,n,S=.1)=>{const K=Math.abs(n-t)*S/2;return{min:t<0?t-K:t,max:n>=0?n+K:n}},Dl=(t,n)=>{const S=At({},n);return t.min&&t.min>=S.max&&(S.max=t.min*(t.min>=0?2:.5)),t.max&&t.max<=S.min&&(S.min=t.max*(t.max>=0?.5:2)),S},jl=(t,n)=>{const S=At({},n);return S.min<=0||(t==="column"||t==="bar")&&(S.min=0),S},Il=(t,n,S,B,K,J)=>{const it=n.series.map((ft,N)=>jt(At({},ft),{data:ft.data.map(R=>{var U=R,{value:rt}=U,W=Te(U,["value"]);return At({value:isNaN(rt)&&K[N]?0:rt},W)})})).filter((ft,N)=>B[N]===J),{stacking:nt}=yd(t,S),at=J===0?S.yAxis:S.y2Axis||{min:void 0,max:void 0},lt=rp(t)&&S.polarType!=="line";if(nt==="percent")return{min:0,max:100};if(nt==="normal"||lt){const ft=Array.from(Array(n.xValues.length),()=>({plus:0,minus:0}));let rt=it.reduce((W,R)=>(R.data.forEach(({value:U},Y)=>{U<0?W[Y].minus+=U||0:W[Y].plus+=U||0}),W),ft).reduce((W,R)=>({min:Math.min(W.min,R.minus),max:Math.max(W.max,R.plus)}),{min:Number.MAX_VALUE,max:Number.MIN_VALUE});return rt=Dl(at,rt),rt=jl(t,rt),S.valueLabel&&(rt=WP(at.min||rt.min,at.max||rt.max)),rt}let pt=it.reduce((ft,N)=>{const rt=N.data.map(({value:W})=>W).filter(W=>!isNaN(W));return{min:Math.min(ft.min,...rt),max:Math.max(ft.max,...rt)}},{min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY});return pt=Dl(at,pt),pt=jl(t,pt),pt},HP=(t,n)=>{var nt;if(t.type!=="cartesian")return[[],[],[],[]];let S=[],B=[];const K=n;let J=K.y.map(at=>!!at.treatNullDataAsZeros),it=K.y.map(at=>!!at.connectNulls);if(K.breakBy.length===0){S=K.y.map(lt=>lt.showOnRightAxis?1:0);let at=K.y.length<=1;if(!at){let lt=0;K.y.map(pt=>(pt.enabled&&(lt+=1),null)),lt<=1&&(at=!0)}B=K.y.map(lt=>{if(!(!lt.chartType||lt.chartType==="auto"||at))return lt.chartType})}else{const at=(nt=K.y[0])!=null&&nt.showOnRightAxis?1:0;S=t.series.map(()=>at),B=t.series.map(()=>{}),J=t.series.map(()=>J[0]),it=t.series.map(()=>it[0])}return[S,B,J,it]},Go=(t,n)=>{var S,B;if(t.breakBy.length===0){const K=(S=t.y.find(J=>J.name===n))==null?void 0:S.color;return fp(K)}else return(B=t.seriesToColorMap)==null?void 0:B[n]},xd=function(t,n,S,B){var D,E,x,T,u,p,g,v,y,C;let K;t.percentage&&(K=n?t.percentage.toFixed(1):`${Math.round(t.percentage)}`);const J=S,it=J.breakBy.length>0?(D=J.y)==null?void 0:D.find(P=>P.enabled):(E=J.y)==null?void 0:E.find(P=>P.title===t.series.name),nt=pd(it),at=be(it,t.point.y,""),lt=(u=(T=(x=t.point)==null?void 0:x.custom)==null?void 0:T.xDisplayValue)!=null?u:t.x,pt=J.x?sr(J.x[0],t.x,lt):lt;let ft;if((p=t.point.custom)!=null&&p.xValue&&(J!=null&&J.x)&&J.x.length===2){const P=`${t.point.custom.xValue[0]}`;ft=sr(J.x[1],P,P)}const N=at+(nt&&K?` / ${K}%`:""),rt=t.point.color||t.series.color,W=Pi(t.point.name||t.series.name),R=ed(t.point.name||t.series.name),U=B&&W?`${B("advanced.tooltip.forecast")} ${t.series.name.substring(10)}`:B&&R?`${B("advanced.tooltip.trend")} ${t.series.name.substring(7)}`:t.series.name,Y=(g=t.point)!=null&&g.low?be(it,(v=t.point)==null?void 0:v.low,""):void 0,Z=(y=t.point)!=null&&y.high?be(it,(C=t.point)==null?void 0:C.high,""):void 0,q=(P,L,M)=>P?!B||!W||!L?`<br /${ce(P,M)}`:`<br /><span>${B(L)} </span>${ce(P,M)}`:"",$=B?`(+${B("advanced.tooltip.trend")})`:"",G=W?"advanced.tooltip.forecastValue":"";return mi(`
9
- ${U.replace($,"")}
10
- ${q(N,G,rt)}
11
- ${q(Z,"advanced.tooltip.max",rt)}
12
- ${q(Y,"advanced.tooltip.min",rt)}
13
- ${ft||pt?ni():""}
14
- ${ft||""}
15
- ${ft&&pt?`
16
- <svg xmlns="http://www.w3.org/2000/svg" width="12" height="18" viewBox="0 0 24 24" style="display: inline-block">
17
- <path
18
- fill="#5B6372"
19
- fillRule="nonzero"
20
- 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"
21
- />
22
- </svg>
23
- `:""}
24
- ${pt||""}
25
- `)},UP=(t,n,S)=>({animation:!1,backgroundColor:si,borderColor:gi,borderRadius:10,borderWidth:1,useHTML:!0,formatter:function(){return xd(this,t,n,S)}}),XP=(t,n)=>{const S=t;if(S.x.length!==2)return n;const{categories:B,indexMap:K,plotBands:J}=n,it=S.x[1],nt=S.x[0],at=oe(it==null?void 0:it.numberFormatConfig),lt=oe(nt==null?void 0:nt.numberFormatConfig);let pt=B;it&&me(it.type)&&(pt=B.map(N=>pe(at,parseFloat(N))));let ft=J;return nt&&me(nt.type)&&(ft=J.map(N=>{const rt=pe(lt,parseFloat(N.text));return jt(At({},N),{text:rt})})),{categories:pt,indexMap:K,plotBands:ft}},YP=(t,n)=>{const{stackType:S}=n;return S==="classic"&&(cp(t)||FA(t))},VP=t=>{const{xValues:n,xAxisCount:S}=t;return S!==2||n.length===0},on=(t,n)=>({plotBands:[],indexMap:t.map((S,B)=>B),categories:n}),$P=(t,n,S,B)=>{const{xValues:it}=t,{y:nt}=n;if(YP(n,S))return on(it,nt.map(R=>Fe(R)));if(B)return on(it,it.map(md).map(R=>`${R}`));if(VP(t))return on(it,it.map(R=>R.xValues[0]));const at=[],lt=[],pt=[];let ft=it[0].xValues[0],N=-.5;it.map((R,U)=>{const Y=R.xValues[1],Z=R.xValues[0];if(Z!==ft){at.push(-1);const q=at.length-1;pt.push(" "),lt.push({text:ft,from:N,to:q}),N=q,ft=Z}return at.push(U),pt.push(Y),R.xValues[1]});const rt=it.length-1,W=it[rt].xValues[0];return lt.push({text:W,from:N,to:at.length-.5}),{categories:pt,indexMap:at,plotBands:lt}},wd=(t,n,S)=>!n||S<50?{enabled:!1}:{series:{type:t,dataGrouping:{enabled:!1}},tooltipFormatter:()=>({left:"",right:""}),enabled:!0,margin:30,height:40,xAxis:{labels:{enabled:!1}},handles:{symbols:["navigator-handle","navigator-handle"],backgroundColor:gi,borderColor:si},maskInside:!0,maskFill:"rgba(91,99,114, 0.15)",outlineColor:gi,outlineWidth:1},Ii=(t,n)=>`Maximum number of series (${n}) exceeded (${t})`,Ln=(t,n,S)=>`'${t.toUpperCase()}-Axis:' Maximum number of categories (${S}) exceeded (${n})`,En=(t,n,S,B,K,J,it)=>{const nt=[],at=B.x.length===1&&B.x[0].continuous&&Ue(B.x[0].type)||!1,lt=Fo(n,S);if(t.type!=="cartesian")throw new Error("Unexpected chart type");const{seriesCapacity:pt,categoriesCapacity:ft}=S.dataLimits;t.xValues.length>ft&&nt.push(Ln("x",t.xValues.length,ft));const{categories:N,indexMap:rt,plotBands:W}=XP(B,$P(jt(At({},t),{xValues:t.xValues.slice(0,ft)}),B,S,at)),[R,U,Y,Z]=HP(t,B),q=n==="bar"||U.includes("bar")?"vertical":"horizontal",$=at?IP(S.xAxis,B.x[0],t.xValues.map(md),it):_P(S.xAxis,S.x2Axis,N,W,q,B,n),G=Il(n,t,S,R,Y,0),D=R.some(L=>L===1)?Il(n,t,S,R,Y,1):void 0,{stacking:E,showTotal:x}=yd(n,S);let T,u=S.yAxis;"polarType"in S&&(T=S.polarType,u=jt(At({},S.yAxis),{titleEnabled:!1,title:null}));const[p,g]=NP(u,S.y2Axis,G,D,x,B),v=t.xAxisCount>1&&q==="vertical"?90:20,y=n==="area"&&E!==void 0,C=!!T;return t.series.length>pt&&nt.push(Ii(t.series.length,pt)),{options:ke(PP(n,T,E),{title:{text:null},chart:{type:lt,spacing:[20,v,20,20],alignTicks:!1,polar:C},xAxis:$,yAxis:p,legend:yi(S.legend),series:t.series.slice(0,pt).map((L,M)=>{var r,o;const f=B.breakBy.length?B.y[0]:B.y.find(({name:i})=>i===L.name),b=f==null?void 0:f.name,e=(b?S.designPerSeries[b]:void 0)||S;return jt(At(jt(At({},at?RP(L,rt,y||Y[M],$[0].tickInterval,S.dataLimits.categoriesCapacity,jP(B.x[0],it),p[M],g[M]):cp(B)&&!E?ji(L,BP(N,M),y||Y[M]):ji(L,rt,y||Y[M])),{showInNavigator:!0,stickyTracking:!1,boostThreshold:0,turboThreshold:0,color:(o=Go(B,L.name))!=null?o:Ye((r=J==null?void 0:J.palette)==null?void 0:r.variantColors,M),yAxis:R[M],dataLabels:{formatter:MP(f==null?void 0:f.numberFormatConfig)}}),U[M]&&{type:U[M]}),{connectNulls:Z[M],marker:Ll(e.marker),lineWidth:e.lineWidth})}),plotOptions:{series:jt(At({dataLabels:C?TP(S.valueLabel,T):AP(q,S.valueLabel,E&&n!=="area"),marker:Ll(S.marker)},E&&{stacking:E}),{stacking:E||void 0,connectNulls:!1})},navigator:wd(lt,S.autoZoom,t.xValues.length),tooltip:UP(void 0,B,K)}),alerts:nt}},_l=(t,n)=>({animation:!1,backgroundColor:si,borderColor:gi,borderRadius:10,borderWidth:1,useHTML:!0,formatter:function(){var pt,ft,N,rt,W,R,U;const S=this;let B;S.percentage&&(B=t?S.percentage.toFixed(1):`${Math.round(S.percentage)}`);const K=n;let J=(ft=(pt=K.y)==null?void 0:pt.find(Y=>Y.name===S.series.name))==null?void 0:ft.numberFormatConfig;!J&&K.breakBy.length>0&&(J=(rt=(N=K.y)==null?void 0:N.find(Y=>Y.enabled))==null?void 0:rt.numberFormatConfig);const it=oe(J),nt=(U=(R=(W=S.point)==null?void 0:W.custom)==null?void 0:R.xDisplayValue)!=null?U:S.x,at=Oi(it,S.y)+(B?` / ${B}%`:""),lt=S.point.color||S.series.color;return mi(`
26
- ${S.series.name||""}
27
- ${S.series.name&&S.point.name?" - ":""}
28
- ${S.point.name||""}
29
- <br />
30
- ${ce(at,lt)}
31
- ${nt?ni()+nt:""}
32
- `)}}),Cd={enabled:!0,showCategories:!0,showValue:!0,showPercent:!0,showDecimals:!1},Sd="classic",ZP={classic:"0%",donut:"40%",ring:"80%"},qP=()=>({allowPointSelect:!1,showInLegend:!0,dataLabels:{enabled:!1,showPercentLabels:!1,showDecimals:!1,pieMinimumFontSizeToTextLabel:8,align:"center",style:de},innerSize:"0%"}),KP=()=>({dataLabels:{enabled:!1}}),JP=(t=Sd,n=Cd,S,B)=>{var it;const K=qP(),J=KP();if(K.innerSize=ZP[t],B&&(K.dataLabels.style={color:B.chart.textColor,fontFamily:B.typography.fontFamily}),n.enabled){const nt=n.showCategories||n.showValue,{dataLabels:at}=K;at.enabled=nt,at.showPercentLabels=n.showPercent,at.showDecimals=n.showDecimals;const lt=oe((it=S.y[0])==null?void 0:it.numberFormatConfig);at.formatter=function(){const pt=this.point.name||this.series.name,ft=this.y;return`<div>
33
- ${n.showCategories?pt:""}
34
- ${n.showCategories&&n.showValue?"<br />":""}
35
- ${n.showValue?pe(lt,ft):""}
36
- </div>`},J.dataLabels&&(J.dataLabels.enabled=nt)}return{pie:K,series:J}},Ts={enabled:!0,showCategories:!0,showValue:!0,showPercent:!0,showDecimals:!1},ks="regular",Ps="regular",Ls="regular",QP=t=>t!=="regular",Nl=()=>({allowPointSelect:!1,cursor:"pointer",showInLegend:!0,dataLabels:{enabled:!1,funnelMinimumFontSizeToTextLabel:8,align:"center",style:de},reversed:!0,neckWidth:nL,neckHeight:0,width:Md}),tL=()=>({dataLabels:{enabled:!1}}),eL=t=>{const{enabled:n,showCategories:S,showValue:B,showPercent:K}=t;return{enabled:n&&[S,B,K].find(Boolean)!==void 0}},iL=(t,n)=>n.showCategories?t.point.name||t.series.name:"",rL=(t,n,S)=>{if(!n.showValue)return"";const B=pe(S,t.y);return n.showValue&&n.showCategories?`<br />${B}`:B},oL=(t,n)=>{var K,J;if(!n.showPercent)return"";const S=((J=(K=t.point)==null?void 0:K.custom)==null?void 0:J.number1)||0,B=n.showDecimals?S.toFixed(1):`${Math.round(S)}`;return` <b>${Xr(B)}</b>`},Md=66.6,nL=15,sL=t=>Md,aL={wide:60,regular:30,narrow:15},lL=(t,n)=>Math.round(GA(t,aL[n])),hL=t=>t==="pinched"?30:0,cL=(t,n,S)=>{var ft;const{funnelType:B=Ps,funnelSize:K=ks,funnelDirection:J=Ls,funnelLabels:it=Ts}=t,nt=jt(At({},tL()),{dataLabels:eL(it)}),at=oe((ft=n.y[0])==null?void 0:ft.numberFormatConfig),lt=sL();return{funnel:jt(At({},Nl()),{dataLabels:jt(At(At({},Nl().dataLabels),S?{color:S.chart.textColor,style:{fontFamily:S.typography.fontFamily}}:null),{enabled:it.enabled&&(it.showCategories||it.showValue||it.showPercent),formatter:function(){const N=iL(this,it),rt=rL(this,it,at),W=oL(this,it);return`${N}${rt}${W}`}}),reversed:QP(J),neckWidth:Xr(lL(lt,K)),neckHeight:Xr(hL(B)),width:Xr(lt)}),series:nt}},Ad="Other",Td="Others",pL="#525A6B",dL=(t,n,S,B)=>{const K=[],{seriesCapacity:J}=S.dataLimits;let it;if(t.xAxisCount===0){t.series.length>J&&K.push(Ii(t.series.length,J));const at=t.series.slice(0,J),lt=at.map(pt=>{var ft;return(ft=pt.title)!=null?ft:pt.name});it=[{name:"",data:at.map(pt=>ji(pt,[0],!1,lt).data).flat().map((pt,ft)=>{var N,rt;return jt(At({},pt),{sliced:(N=pt.selected)!=null?N:!1,name:lt[ft],color:(rt=Go(n,at[ft].name))!=null?rt:Ye(B==null?void 0:B.palette.variantColors,ft)})}),boostThreshold:0,turboThreshold:0}]}else{t.xValues.length>J&&K.push(Ii(t.xValues.length,J));const at=t.xValues.slice(0,J).map(ft=>ft.xValues.join(",")),lt=at.map((ft,N)=>N),pt=at.map((ft,N)=>{var rt,W,R;return(R=(rt=n.seriesToColorMap)==null?void 0:rt[ft])!=null?R:Ye((W=B==null?void 0:B.palette)==null?void 0:W.variantColors,N)});it=t.series.map(ft=>{const W=ji(ft,lt,!1,at,pt),{data:N}=W,rt=Te(W,["data"]);return jt(At({},rt),{data:N.map(R=>{var U;return jt(At({},R),{sliced:(U=R.selected)!=null?U:!1})}),boostThreshold:0,turboThreshold:0})})}const nt=S==null?void 0:S.convolution;if(!(nt!=null&&nt.enabled))return{series:it,alerts:K,convolutionSeries:[]};switch(nt==null?void 0:nt.selectedConvolutionType){case"byPercentage":return jt(At({},fL(it,nt)),{alerts:K});case"bySlicesCount":return jt(At({},gL(it,nt)),{alerts:K});default:return{series:it,alerts:K,convolutionSeries:[]}}},uL=(t,n)=>{var S;return t+((S=n.y)!=null?S:0)},Bl=(t,n,S)=>{var B;return((B=t.y)!=null?B:0)/n>=S},kd=(t,n)=>{const S=n.reduce((B,K)=>{var J;return B+((J=K.y)!=null?J:0)},0);return t[0].data.push({y:S,name:Ad,color:pL,sliced:!1,drilldown:Td}),t},Pd=t=>[{name:Ad,id:Td,data:t}],fL=(t,n)=>{if((n==null?void 0:n.minimalIndependentSlicePercentage)===void 0||t.length===0)return{series:t,convolutionSeries:[]};const S=n.minimalIndependentSlicePercentage/100,B=t[0].data.reduce(uL,0),K=t[0].data.filter(J=>!Bl(J,B,S));return K.length===0?{series:t,convolutionSeries:[]}:(t[0].data=t[0].data.filter(J=>Bl(J,B,S)),{series:kd(t,K),convolutionSeries:Pd(K)})},gL=(t,n)=>{if((n==null?void 0:n.independentSlicesCount)===void 0)return{series:t,convolutionSeries:[]};const S=n.independentSlicesCount,B=t[0].data.map((it,nt)=>jt(At({},it),{index:nt})).sort((it,nt)=>{var at,lt;return((at=nt.y)!=null?at:0)-((lt=it.y)!=null?lt:0)}).slice(0,S),K=Object.fromEntries(B.map(it=>[it.index,!0])),J=t[0].data.filter((it,nt)=>!K[nt]);return J.length===0?{series:t,convolutionSeries:[]}:(t[0].data=t[0].data.filter((it,nt)=>K[nt]),{series:kd(t,J),convolutionSeries:Pd(J)})},mL=(t,n,S,B)=>{let K;const J=[],{seriesCapacity:it}=S.dataLimits;if(t.xAxisCount===0){t.series.length>it&&J.push(Ii(t.series.length,it));const nt=t.series.slice(0,it),at=nt.map(lt=>{var pt;return(pt=lt.title)!=null?pt:lt.name});K=[{name:"",data:nt.map(lt=>ji(lt,[0],!1,at).data).flat().map((lt,pt)=>{var ft;return jt(At({},lt),{name:at[pt],color:(ft=Go(n,nt[pt].name))!=null?ft:Ye(B==null?void 0:B.palette.variantColors,pt)})}),boostThreshold:0,turboThreshold:0}],Rl(K[0])}else{t.xValues.length>it&&J.push(Ii(t.xValues.length,it));const nt=t.xValues.slice(0,it).map(pt=>pt.xValues.join(",")),at=nt.map((pt,ft)=>ft),lt=nt.map((pt,ft)=>{var N,rt,W;return(W=(N=n.seriesToColorMap)==null?void 0:N[pt])!=null?W:Ye((rt=B==null?void 0:B.palette)==null?void 0:rt.variantColors,ft)});K=t.series.map(pt=>jt(At({},Rl(ji(pt,at,!1,nt,lt))),{boostThreshold:0,turboThreshold:0}))}return{series:K,alerts:J}},Rl=t=>{let n=0;const S=t.data.map((B,K)=>{const J=B.y;return K===0&&(n=J),B.custom={number1:WA(n,J)},B});return jt(At({},t),{data:S})},Ld=(t,n,S)=>({animation:!1,backgroundColor:si,borderColor:gi,borderRadius:10,borderWidth:1,padding:1,useHTML:!0,outside:!0,formatter:function(){return bL(this,t,n,S)}}),yL=`
37
- <div style="position: absolute; top: 100%; right: 40px; z-index: 1">
38
- <div style="
39
- border: solid transparent;
40
- content: ' ';
41
- height: 0;
42
- width: 0;
43
- position: absolute;
44
- pointer-events: none;
45
- border-color: rgba(136,136,136,0);
46
- border-top-color: #ccc;
47
- border-width: 7px 12px 12px 12px;
48
- margin-left: -7px;
49
- "></div>
50
- <div style="
51
- border: solid transparent;
52
- content: ' ';
53
- height: 0;
54
- width: 0;
55
- position: absolute;
56
- pointer-events: none;
57
- border-color: rgba(255,255,255,0);
58
- border-top-color: #fff;
59
- border-width: 6px 11px 11px 11px;
60
- margin-left: -6px;
61
- "></div>
62
- </div>
63
- `;function vL(t,n){return t/(n/100)}function Rr(t,n){return`${vL(t,n).toPrecision(3)}%`}function bL(t,n,S,B){var ft,N,rt,W,R,U,Y,Z,q,$,G,D,E;if(B!=null&&B.shouldSkip&&B.shouldSkip(t))return!1;const K=oe((N=(ft=n.y)==null?void 0:ft[0])==null?void 0:N.numberFormatConfig),J=((rt=S==null?void 0:S.tooltip)==null?void 0:rt.mode)==="contribution",it=(Z=(R=(W=n.y)==null?void 0:W[0])==null?void 0:R.title)!=null?Z:(Y=(U=n.y)==null?void 0:U[0])==null?void 0:Y.name,nt=t.color;let at=0;const lt=[],pt=x=>{if(x.parentNode)lt.push(x);else{at=x.val;return}pt(x.parentNode)};return pt(t.point.node),`
64
- <div
65
- class="csdk-treemap-tooltip-wrapper">
66
- ${[...lt].reverse().map((x,T)=>{const u=T===lt.length-1;return`
67
- <div
68
- class="csdk-treemap-tooltip-level"
69
- style="background: ${u?"#f2f2f2":"white"};"
70
- >
71
- ${B!=null&&B.displayColorCircles?xL(x.color):""}
72
- <span
73
- style="color: ${u?nt:"currentColor"}"
74
- >${x.name}</span>
75
- <span
76
- style="color: ${u?"#5B6372":"currentColor"}; margin-left: auto;"
77
- >${J?Rr(x.val,at):Oi(K,x.val)}</span>
78
- ${u?"":yL}
79
- </div>`}).join("")}
80
- <div class="csdk-treemap-tooltip-value">
81
- <span style="color:${nt}; font-size: 15px">${J?Rr(lt[0].val,at):Oi(K,(q=lt[0])==null?void 0:q.val)}</span> of ${it}
82
- </div>
83
- ${lt[1]?`<div class="csdk-treemap-tooltip-value" style="padding-top: 4px;">
84
- <span style="color:${nt}; font-size: 15px">${Rr(($=lt[0])==null?void 0:$.val,(G=lt[1])==null?void 0:G.val)}
85
- </span> of ${(D=lt[1])==null?void 0:D.name}
86
- </div>`:""}
87
- ${B!=null&&B.displayTotalContribution&&!J?`<div class="csdk-treemap-tooltip-value" style="padding-top: 4px;">
88
- <span style="color:${nt}; font-size: 15px">${Rr((E=lt[0])==null?void 0:E.val,at)}
89
- </span> of total
90
- </div>`:""}
91
- </div>
92
- </div>`}function xL(t){return`
93
- <div style="
94
- width: 12px;
95
- height: 12px;
96
- border-radius: 100%;
97
- background-color: ${t};
98
- margin-right: 6px;
99
- "></div>
100
- `}var On={exports:{}};/*! For license information please see index.js.LICENSE.txt */(function(t,n){(function(S,B){t.exports=B()})(self,()=>(()=>{var S={4658:function(J,it,nt){var at=this&&this.__createBinding||(Object.create?function(N,rt,W,R){R===void 0&&(R=W);var U=Object.getOwnPropertyDescriptor(rt,W);U&&!("get"in U?!rt.__esModule:U.writable||U.configurable)||(U={enumerable:!0,get:function(){return rt[W]}}),Object.defineProperty(N,R,U)}:function(N,rt,W,R){R===void 0&&(R=W),N[R]=rt[W]}),lt=this&&this.__exportStar||function(N,rt){for(var W in N)W==="default"||Object.prototype.hasOwnProperty.call(rt,W)||at(rt,N,W)},pt=this&&this.__importDefault||function(N){return N&&N.__esModule?N:{default:N}};Object.defineProperty(it,"__esModule",{value:!0}),it.default=void 0,lt(nt(1920),it);var ft=nt(1920);Object.defineProperty(it,"default",{enumerable:!0,get:function(){return pt(ft).default}})},1920:function(J,it,nt){var at=this&&this.__createBinding||(Object.create?function(N,rt,W,R){R===void 0&&(R=W);var U=Object.getOwnPropertyDescriptor(rt,W);U&&!("get"in U?!rt.__esModule:U.writable||U.configurable)||(U={enumerable:!0,get:function(){return rt[W]}}),Object.defineProperty(N,R,U)}:function(N,rt,W,R){R===void 0&&(R=W),N[R]=rt[W]}),lt=this&&this.__exportStar||function(N,rt){for(var W in N)W==="default"||Object.prototype.hasOwnProperty.call(rt,W)||at(rt,N,W)},pt=this&&this.__importDefault||function(N){return N&&N.__esModule?N:{default:N}};Object.defineProperty(it,"__esModule",{value:!0});var ft=pt(nt(7155));it.default=ft.default,lt(nt(8840),it)},6598:function(J,it,nt){var at=this&&this.__importDefault||function(ft){return ft&&ft.__esModule?ft:{default:ft}};Object.defineProperty(it,"__esModule",{value:!0});var lt=at(nt(4052)),pt={xAxis:{labels:{style:{color:lt.default.labelColor,fontFamily:lt.default.fontFamily}},title:{style:{color:lt.default.textColor,fontFamily:lt.default.fontFamily}},crosshair:!1},yAxis:{labels:{style:{color:lt.default.labelColor,fontFamily:lt.default.fontFamily}},title:{style:{color:lt.default.textColor,fontFamily:lt.default.fontFamily}},crosshair:!1},zAxis:{labels:{style:{color:lt.default.labelColor,fontFamily:lt.default.fontFamily}},title:{style:{color:lt.default.textColor,fontFamily:lt.default.fontFamily}}}};it.default=pt},4052:(J,it)=>{Object.defineProperty(it,"__esModule",{value:!0}),it.default={fontFamily:"Open Sans",textColor:"#5B6372",labelColor:"#5B6372",legendColor:"#5B6372",legendNavigationColor:"#5B6372",legendNavigationSecondaryColor:"#9EA2AB"}},548:function(J,it,nt){var at=this&&this.__importDefault||function(pt){return pt&&pt.__esModule?pt:{default:pt}};Object.defineProperty(it,"__esModule",{value:!0});var lt=at(nt(3941));it.default=lt.default},2243:function(J,it,nt){var at=this&&this.__importDefault||function(ft){return ft&&ft.__esModule?ft:{default:ft}};Object.defineProperty(it,"__esModule",{value:!0});var lt=at(nt(4052)),pt={align:"center",itemHoverStyle:{color:lt.default.legendColor},itemStyle:{color:lt.default.legendColor,fontSize:"12px",fontWeight:"bold",textOverflow:"ellipsis",fontFamily:lt.default.fontFamily},navigation:{style:{color:lt.default.legendNavigationColor,fontFamily:lt.default.fontFamily},activeColor:lt.default.legendNavigationColor,inactiveColor:lt.default.legendNavigationSecondaryColor},alignColumns:!1};it.default=pt},3941:function(J,it,nt){var at=this&&this.__assign||function(){return at=Object.assign||function(Y){for(var Z,q=1,$=arguments.length;q<$;q++)for(var G in Z=arguments[q])Object.prototype.hasOwnProperty.call(Z,G)&&(Y[G]=Z[G]);return Y},at.apply(this,arguments)},lt=this&&this.__importDefault||function(Y){return Y&&Y.__esModule?Y:{default:Y}};Object.defineProperty(it,"__esModule",{value:!0});var pt=lt(nt(4052)),ft=lt(nt(8655)),N=lt(nt(2243)),rt=lt(nt(1222)),W=lt(nt(6598)),R={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"}},U=at({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:R,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:N.default,navigator:{yAxis:{gridLineWidth:0},xAxis:{gridLineWidth:0}},plotOptions:rt.default,title:{margin:0},tooltip:ft.default},W.default);it.default=U},1222:function(J,it,nt){var at=this&&this.__importDefault||function(rt){return rt&&rt.__esModule?rt:{default:rt}};Object.defineProperty(it,"__esModule",{value:!0});var lt=at(nt(3491)),pt=at(nt(4052)),ft={enabled:!0,overflow:"justify",style:{color:pt.default.labelColor,fontFamily:pt.default.fontFamily,fontSize:"13px",fontWeight:"normal",cursor:"default",lineHeight:"14px"}},N={series:{turboThreshold:1e3,dataLabels:lt.default.merge(ft,{align:"center"}),states:{inactive:{enabled:!1}}},line:{allowPointSelect:!1,showCheckbox:!1,animation:{duration:1e3},connectNulls:!1,cursor:"default",clip:!0,dashStyle:null,enableMouseTracking:!0,events:{},legendIndex:0,linecap:"round",lineWidth:2,shadow:!1,stacking:null,label:{style:{color:pt.default.labelColor,fontFamily:pt.default.fontFamily}},marker:{enabled:!0,symbol:null,lineWidth:0,radius:4,lineColor:"#FFFFFF",fillColor:null,states:{hover:{enabled:!0},select:{fillColor:"transparent",lineColor:"transparent"}}},point:{events:{}},dataLabels:lt.default.merge(ft,{align:"center",enabled:!1}),cropThreshold:300,pointRange:0,states:{hover:{marker:{}},select:{marker:{}}},stickyTracking:!0},column:{maxPointWidth:82,dataLabels:lt.default.merge(ft,{align:"center",enabled:!1,verticalAlign:"bottom",overflow:"justify"})},bar:{maxPointWidth:82,dataLabels:lt.default.merge(ft,{align:"center",enabled:!1,verticalAlign:"middle",overflow:"justify"})},pie:{dataLabels:{overflow:"ellipsis"}}};it.default=N},8655:function(J,it,nt){var at=this&&this.__importDefault||function(pt){return pt&&pt.__esModule?pt:{default:pt}};Object.defineProperty(it,"__esModule",{value:!0});var lt=at(nt(5837));it.default=lt.default},5837:function(J,it,nt){var at=this&&this.__importDefault||function(pt){return pt&&pt.__esModule?pt:{default:pt}};Object.defineProperty(it,"__esModule",{value:!0});var lt={style:{fontSize:"13px",fontWeight:"normal",color:"#5B6372",fontFamily:at(nt(4052)).default.fontFamily},borderWidth:1,borderColor:"#CCCCCC",backgroundColor:"#FFFFFF",borderRadius:10,hideDelay:20,shadow:{color:"#CECECE",offsetX:2,offsetY:2,width:5}};it.default=lt},8040:function(J,it,nt){var at=this&&this.__assign||function(){return at=Object.assign||function(W){for(var R,U=1,Y=arguments.length;U<Y;U++)for(var Z in R=arguments[U])Object.prototype.hasOwnProperty.call(R,Z)&&(W[Z]=R[Z]);return W},at.apply(this,arguments)},lt=this&&this.__importDefault||function(W){return W&&W.__esModule?W:{default:W}};Object.defineProperty(it,"__esModule",{value:!0});var pt=lt(nt(1857)),ft=lt(nt(4402)),N=lt(nt(5998)),rt=nt(2930);it.default=function(W){var R=W.merge,U=W.extend,Y=W.pick;W.getOptions().plotOptions.boxplot.lineWidth=1,W.getOptions().plotOptions.boxplot.fillOpacity=.6,W.getOptions().plotOptions.boxplot.strokeOpacity=.6,W.getOptions().plotOptions.boxplot.strokeWidth=1,W.getOptions().plotOptions.boxplot.states.select.lineWidth=1,W.getOptions().plotOptions.boxplot.states.select.fillOpacity=.3,W.getOptions().plotOptions.boxplot.states.select.strokeOpacity=.3,W.getOptions().plotOptions.boxplot.states.hover.lineWidth=1,W.getOptions().plotOptions.boxplot.states.hover.fillOpacity=1,W.getOptions().plotOptions.boxplot.states.hover.strokeOpacity=1,W.wrap(W.seriesTypes.boxplot.prototype,"drawPoints",function(){var Z,q,$,G,D,E,x,T,u,p,g,v,y,C,P,L,M,f,b,l,h,e,r,o,i,c,a=this,s=a.points,m=a.options,A=a.chart.renderer,O=a.doQuartiles!==!1,d=parseInt(a.options.whiskerLength,10)/100;s.forEach(function(w){if(g=w.graphic,o=w.shapeArgs,y={},M={},b={},i=w.color||a.color,c=w.innerBoxColor||a.color,w.plotY!==void 0){Z={fill:c,"fill-opacity":.75,stroke:a.color,"stroke-opacity":1,"stroke-width":1},w.selected&&(Z.fill=c,Z["fill-opacity"]=.3,Z["stroke-opacity"]=.3),$={fill:c,"fill-opacity":Z["fill-opacity"],stroke:i,"stroke-width":1};var k={fill:Z.fill,"fill-opacity":Z["fill-opacity"],"stroke-opacity":Z["fill-opacity"]};q=at({},Z),l=o.width,h=Math.floor(o.x),e=h+l,r=Math.round(l/2),G=Math.floor(O?w.q1Plot:w.lowPlot),D=Math.floor(O?w.q3Plot:w.lowPlot),E=Math.floor(w.highPlot),x=Math.floor(w.lowPlot),y.stroke=w.stemColor||m.stemColor||i,y["stroke-width"]=Y(w.stemWidth,m.stemWidth,m.lineWidth),y.dashstyle=w.stemDashStyle||m.stemDashStyle,M.stroke=w.whiskerColor||m.whiskerColor||i,M["stroke-width"]=Y(w.whiskerWidth,m.whiskerWidth,m.lineWidth),b.stroke=w.medianColor||m.medianColor||i,b["stroke-width"]=Y(w.medianWidth,m.medianWidth,m.lineWidth),b["stroke-linecap"]="round",u=y["stroke-width"]%2/2,v=["M",p=h+r+u,D,"L",p,E,"M",p,G,"L",p,x,"z"],O&&(u=Z["stroke-width"]%2/2,p=Math.floor(p)+u,G=Math.floor(G)+u,D=Math.floor(D)+u,C=["M",h+=u,D,"L",h,G,"L",e+=u,G,"L",e,D,"L",h,D,"z"]),d&&(u=M["stroke-width"]%2/2,P=["M",p-r*d,E+=u,"L",p+r*d,E,"M",p-r*d,x+=u,"L",p+r*d,x]),u=2,T=Math.round(w.medianPlot)+u,f=["M",h,T,"L",e,T,"z"],O&&(L=["M",h+.5,T+.5,"L",h+.5,G-.5,"L",e-.5,G-.5,"L",e-.5,T+.5,"L",h+.5,T+.5,"z"]),g?(g.attr(k),w.stem.attr(y),w.stem.animate({d:v}),d&&(w.whiskers.attr(M),w.whiskers.animate({d:P})),O&&(w.box.attr(q),w.box.attr("stroke",q.stroke),w.box.animate({d:C}),w.innerBox.animate({d:L}),w.innerBox.attr($)),w.medianShape.attr(b),w.medianShape.animate({d:f})):(w.graphic=g=A.g().add(a.group).attr(k).attr("name","graphic"),w.stem=A.path(v).attr(y).attr("name","stem").add(g),d&&(w.whiskers=A.path(P).attr(M).attr("name","whiskers").add(g)),O&&(w.box=A.path(C).attr(q).attr("stroke",q.stroke).attr("name","box").add(g),w.innerBox=A.path(L).attr($).attr("name","inner-box").add(g)),w.medianShape=A.path(f).attr(b).attr("name","median").add(g))}})}),W.wrap(W.seriesTypes.boxplot.prototype,"drawDataLabels",function(Z,q,$){var G,D,E,x,T=this,u=T.options,p=u.cursor,g=T.points,v=u.dataLabels,y=[{name:"median",enabled:!0,indent:-15,path:function(M,f){return["M",M,f,"L",M-10,f]}},{name:"q3",enabled:!0,indent:-20,path:function(M,f){return["M",M,f,"L",M-2,f+5,M-10,f+5]}},{name:"high",enabled:!0,indent:-20,path:function(M,f){return["M",M,f,"L",M-2,f+5,M-10,f+5]}},{name:"q1",enabled:!0,indent:-7,path:function(M,f){return["M",M,f,"L",M-2,f-5,M-10,f-5]}},{name:"low",enabled:!0,indent:-7,path:function(M,f){return["M",M,f,"L",M-2,f-5,M-10,f-5]}}];if(Z.call(this,v,$),T.data.length>0){var C=T.barW;T.barW>T.options.maxPointWidth&&(C=T.options.maxPointWidth),this.data.forEach(function(M){M.shapeArgs.x+=(M.shapeArgs.width-C)/2,M.shapeArgs.width=C})}if(v.enabled||T._hasPointLabels){x=T.plotGroup("dataLabelsGroup","data-labels",T.visible?"visible":"hidden",v.zIndex||6);var P=T.chart.plotBox.height;if(T.type==="boxplot"&&P<200)if((0,rt.defined)((0,pt.default)(g,"0.dataLabel")))for(var L=0;L<g.length;L++)g[L].dataLabel&&((0,rt.defined)((0,pt.default)(g[L].dataLabel,"high"))&&g[L].dataLabel.high.destroy(),(0,rt.defined)((0,pt.default)(g[L].dataLabel,"low"))&&g[L].dataLabel.low.destroy());else delete y[2],delete y[4];D=v,g.forEach(function(M){var f,b,l,h,e,r,o=!0,i=M.connector,c=M.shapeArgs,a=Math.floor(c.x)+c.width;G=M.options&&M.options.dataLabels;var s=Y(G&&G.enabled,D.enabled),m=M.innerBoxColor||T.color;if(s){v=R(D,G),r=v.rotation,l=M.getLabelConfig();var A=!1,O=(0,N.default)(y);(0,rt.defined)(M,"shapeArgs.height")&&M.shapeArgs.height<30&&(delete O[2],delete O[4],M.shapeArgs.height===0&&(A=!0)),(0,rt.defined)(M.dataLabel)||(M.dataLabel={},M.dataLabel.element={},M.dataLabel.destroy=function(){W.removeEvent(M.dataLabel,"add"),W.removeEvent(M.dataLabel.element,"mouseenter"),W.removeEvent(M.dataLabel.element,"mouseleave"),O.forEach(function(d){d&&M.dataLabel[d.name]&&(M.dataLabel[d.name].destroy(),M.dataLabelLine[d.name].destroy())}),M.dataLabel=null,M.dataLabelLine=null}),(0,rt.defined)(M.dataLabelLine)||(M.dataLabelLine={}),O.forEach(function(d){if(d&&d.enabled){f=M.dataLabel[d.name],b=M.dataLabelLine[d.name],E=v.formatter.call(l,v,d.name),v.style.color=Y(v.color,v.style.color,T.color,"black"),v.x=a+12,v.y=M[d.name+"Plot"]-M.highPlot+d.indent;var w=T.visible&&T.chart.isInsidePlot(M.plotX,M.plotY,T.chart.inverted)&&T.chart.isInsidePlot(M.plotX,M.yBottom,T.chart.inverted);if(f)w?((0,rt.defined)(E)?(f.attr({text:E}),o=!1):(M.dataLabel[d.name]=f=f.destroy(),i&&(M.connector=i.destroy())),b&&b.destroy()):(M.dataLabel[d.name]=f=f.destroy(),b&&b.destroy());else if((0,rt.defined)(E)&&E!=="null"){for(e in h={fill:v.backgroundColor,stroke:v.borderColor,"stroke-width":v.borderWidth,r:v.borderRadius||0,rotation:r,padding:v.padding,zIndex:1})(0,ft.default)(h[e])&&delete h[e];w&&((f=T.chart.renderer[r?"text":"label"](E,0,-999,null,null,null,v.useHTML)).attr(h).css(U(v.style,p&&{cursor:p})).add(x).shadow(v.shadow),f.options={},M.dataLabel[d.name]=f)}if(w){var k={fill:m,"fill-opacity":.75,stroke:T.color,"stroke-opacity":1,"stroke-width":1},z=13;A&&(d.name==="q1"?z=5:d.name==="q3"&&(z=21)),b=M.dataLabelLine[d.name]=M.series.chart.renderer.path(d.path(2,z)).attr({"stroke-width":1,stroke:k.stroke,"stroke-opacity":k["fill-opacity"]||1}).add(f)}f&&T.alignDataLabel(M,f,v,null,o,b,d.name),f.options={},M["dataLabel"+d.name]=f}})}M.dataLabels=y.map(function(d){return M.dataLabel[d.name]}).filter(function(d){return d})}),T.dataLabelCollections=[],y.map(function(M){return M.name}).forEach(function(M){T.dataLabelCollections.push("dataLabel"+M)})}}),W.wrap(W.seriesTypes.boxplot.prototype,"alignDataLabel",function(Z,q,$,G,D,E,x,T){var u=this.chart,p=u.inverted,g=q.dlBox||q.shapeArgs,v=q.below||q.plotY>Y(this.translatedThreshold,u.plotSizeY),y=Y(G.inside,!!this.options.stacking);g&&((D=R(g)).y+=v?D.height:0,D.height=0),G.align=Y(G.align,"left"),G.verticalAlign=Y(G.verticalAlign,p||y?"middle":v?"top":"bottom");var C,P=$.getBBox(),L=this.visible&&u.isInsidePlot(q.plotX,q.plotY,p)&&u.isInsidePlot(q.plotX,q.yBottom,p);if(L){switch(U(G,{width:P.width,height:P.height}),C={align:G.align,x:G.x,y:D.y+G.y+D.height/2},T){case"q3":(0,rt.defined)(q,"dataLabel.median.y")&&q.dataLabel.median.y!=999&&C.y+G.height>q.dataLabel.median.y&&(C.y=q.dataLabel.median.y-(G.height/2+4));break;case"high":(0,rt.defined)(q,"dataLabel.q3.y")&&q.dataLabel.q3.y!=999&&C.y+G.height>q.dataLabel.q3.y&&(C.y=q.dataLabel.q3.y-(G.height/2+4));break;case"q1":(0,rt.defined)(q,"dataLabel.median.y")&&q.dataLabel.median.y!=999&&C.y<q.dataLabel.median.y+q.dataLabel.median.height&&(C.y=q.dataLabel.median.y+(G.height/2+4));break;case"low":(0,rt.defined)(q,"dataLabel.q1.y")&&q.dataLabel.q1.y!=999&&C.y<q.dataLabel.q1.y+q.dataLabel.q1.height?C.y=q.dataLabel.q1.y+(G.height/2+4):(0,rt.defined)(q,"yBottom")&&C.y+G.height>u.plotHeight&&(C.y=u.plotHeight-G.height)}C.y=isNaN(C.y)?0:C.y,$[E?"attr":"animate"](C)}L||($.attr({y:-999}),$.placed=!1,x.attr({"stroke-opacity":0}))})}},9688:function(J,it,nt){var at=this&&this.__importDefault||function(ft){return ft&&ft.__esModule?ft:{default:ft}};Object.defineProperty(it,"__esModule",{value:!0});var lt=at(nt(1284)),pt=at(nt(1654));it.default=function(ft){var N=ft.wrap;function rt(W){this.hasCartesianSeries&&this.series.forEach(function(R){R.options&&R.options.stacking==="percent"&&(R.userOptions.data.forEach(function(U){U&&(U.originalY=U.y,U.y=Math.abs(U.y))}),R.yData=R.yData.map(Math.abs))}),W.apply(this,[].slice.call(arguments,1))}(0,pt.default)(ft),N(ft.Chart.prototype,"render",rt),N(ft.Chart.prototype,"redraw",rt),ft.Axis.prototype.renderUnsquish=function(){var W,R,U,Y,Z,q=this.chart,$=q.renderer,G=this.tickPositions,D=this.ticks,E=this.options.labels,x=E.style,T=this.horiz,u=this.getSlotWidth(),p=Math.max(1,Math.round(u-2*E.padding)),g={},v=this.labelMetrics(),y=x.textOverflow,C=0;if((0,lt.default)(E.rotation)||(g.rotation=E.rotation||0),G.forEach(function(P){var L=D[P];L.movedLabel&&L.replaceMovedLabel(),L&&L.label&&L.label.textPxLength>C&&(C=L.label.textPxLength)}),this.maxLabelLength=C,this.autoRotation)C>p&&C>v.h?g.rotation=this.labelRotation:this.labelRotation=0;else if(u&&(W=p,!y))for(R="clip",Y=G.length;!T&&Y--;)Z=G[Y],(U=D[Z].label)&&(U.styles&&U.styles.textOverflow==="ellipsis"?U.css({textOverflow:"clip"}):U.textPxLength>u&&U.css({width:u+"px"}),U.getBBox().height>this.len/G.length-(v.h-v.f)&&(U.specificTextOverflow="ellipsis"));g.rotation&&(W=C>.33*q.chartHeight?.28*q.chartHeight:C,y||(R="ellipsis")),this.labelAlign=E.align||this.autoLabelAlign(this.labelRotation),this.labelAlign&&(g.align=this.labelAlign),G.forEach(function(P){var L=D[P],M=L&&L.label,f=x.width,b={};M&&(M.attr(g),L.shortenLabel?L.shortenLabel():W&&!f&&x.whiteSpace!=="nowrap"&&(W<M.textPxLength||M.element.tagName==="SPAN")?(b.width=W+"px",y||(b.textOverflow=M.specificTextOverflow||R),M.css(b)):M.styles&&M.styles.width&&!b.width&&!f&&M.css({width:null}),delete M.specificTextOverflow,L.rotation=g.rotation)},this),this.tickRotCorr=$.rotCorr(v.b,this.labelRotation||0,this.side!==0)}}},9639:function(J,it,nt){var at=this&&this.__importDefault||function(pt){return pt&&pt.__esModule?pt:{default:pt}};Object.defineProperty(it,"__esModule",{value:!0}),it.default=void 0;var lt=nt(9688);Object.defineProperty(it,"default",{enumerable:!0,get:function(){return at(lt).default}})},1654:function(J,it,nt){var at=this&&this.__read||function(W,R){var U=typeof Symbol=="function"&&W[Symbol.iterator];if(!U)return W;var Y,Z,q=U.call(W),$=[];try{for(;(R===void 0||R-- >0)&&!(Y=q.next()).done;)$.push(Y.value)}catch(G){Z={error:G}}finally{try{Y&&!Y.done&&(U=q.return)&&U.call(q)}finally{if(Z)throw Z.error}}return $},lt=this&&this.__spreadArray||function(W,R,U){if(U||arguments.length===2)for(var Y,Z=0,q=R.length;Z<q;Z++)!Y&&Z in R||(Y||(Y=Array.prototype.slice.call(R,0,Z)),Y[Z]=R[Z]);return W.concat(Y||Array.prototype.slice.call(R))},pt=this&&this.__importDefault||function(W){return W&&W.__esModule?W:{default:W}};Object.defineProperty(it,"__esModule",{value:!0});var ft=pt(nt(1857)),N=pt(nt(4402)),rt=nt(2930);it.default=function(W){var R,U=W.fireEvent,Y=new Map,Z=!1;function q(x,T){for(var u=[x,T],p=0;p<u.length;p++)for(var g=u[p],v=0;v<g.length;v++){for(var y=(v+1)%g.length,C=g[v],P=g[y],L={x:P.y-C.y,y:C.x-P.x},M=void 0,f=void 0,b=0;b<x.length;b++){var l=L.x*x[b].x+L.y*x[b].y;((0,N.default)(M)||l<M)&&(M=l),((0,N.default)(f)||l>f)&&(f=l)}var h=void 0,e=void 0;for(b=0;b<T.length;b++)l=L.x*T[b].x+L.y*T[b].y,((0,N.default)(h)||l<h)&&(h=l),((0,N.default)(e)||l>e)&&(e=l);if(f<h||e<M)return!1}return!0}function $(x,T){return(x.yAxis||[]).some(function(u){return!(!u.options.stackLabels||!u.stacking.stacks)&&Object.values(u.stacking.stacks||[]).some(function(p){return Object.values(p).some(function(g){return g.label===T})})})}function G(x){return x.series&&x.series.some(function(T){return(0,ft.default)(T,"xAxis.axisLine.animating")})}function D(x,T,u){return u&&!(0,N.default)(u.totalsRank)&&$(x,T)?u.totalsRank:T.labelrank||0}function E(){Z||(Z=!0,Y.forEach(function(x,T){if(!G(T)){if(x.length){var u=x[x.length-1];T.hideOverlappingLabels(u.labels,u.options)}Y.delete(T)}}),Y.size&&(clearTimeout(R),R=setTimeout(E,100)),Z=!1)}W.wrap(W.Axis.prototype,"addPlotBandOrLine",function(x){var T=x.apply(this,[].slice.call(arguments,1));return(0,ft.default)(T,"options.isPlotBand")===!0&&(this.sisensePlotBands||(this.sisensePlotBands=[]),this.sisensePlotBands.push(T)),T}),W.wrap(W.PlotLineOrBand.prototype,"render",function(x){var T=this,u=T.axis,p=T.options,g=p.to,v=p.from,y=(0,rt.defined)(v)&&(0,rt.defined)(g),C=W.pick(p.zIndex,0),P=u.chart.renderer,L=y?"bands":"lines",M={zIndex:C};L+="-labels-"+C;var f=u.plotLinesAndBandsGroups[L];return f||(M.translateX=0,M.translateY=0,u.plotLinesAndBandsGroups[L]=f=P.g("plot-"+L).attr(M).add()),x.apply(this,[].slice.call(arguments,1))}),W.PlotLineOrBand.prototype.renderLabel=function(x,T,u,p){var g=this,v=g.axis,y=v.chart.renderer,C=g.label,P=(u?"bands":"lines")+"-labels-"+p,L=v.plotLinesAndBandsGroups[P];C||(g.label=C=y.text(this.getLabelText(x),0,0,x.useHTML).attr({align:x.textAlign||x.align,rotation:x.rotation,class:"highcharts-plot-"+(u?"band":"line")+"-label "+(x.className||""),zIndex:p}).add(L),v.chart.styledMode||C.css(W.merge({textOverflow:"ellipsis"},x.style)));var M=T.xBounds||[T[0][1],T[1][1],u?T[2][1]:T[0][1]],f=T.yBounds||[T[0][2],T[1][2],u?T[2][2]:T[0][2]],b=(0,rt.arrayMin)(M),l=(0,rt.arrayMin)(f);if(C.align(x,!1,{x:b,y:l,width:(0,rt.arrayMax)(M)-b,height:(0,rt.arrayMax)(f)-l}),!(C.styles.width&&C.styles.width!=="auto"||C.alignValue&&C.alignValue!=="left")){var h=x.clip?v.width:v.chart.chartWidth;C.css({width:(C.rotation===90?v.height-(C.alignAttr.y-v.top):h-(C.alignAttr.x-v.left))+"px"})}C.show(!0)},W.addEvent(W.Chart.prototype,"render",function(){var x=[];(this.xAxis||[]).forEach(function(T){T.plotLinesAndBands&&T.plotLinesAndBands.forEach(function(u){u.label&&u.label.visibility!=="hidden"&&(u.label.isSerieLabel=!0,x.push(u.label))})}),x.length>0&&this.hideOverlappingLabels(x)}),W.Chart.prototype.hideOverlappingLabels=function(x,T){var u=this;T===void 0&&(T={});var p=this;if(G(p))return function(e,r,o){Y.has(e)||Y.set(e,[]),Y.get(e).push({labels:r,options:o}),E()}(p,lt([],at(x),!1),T);E(),(x=x.filter(function(e){var r=e==null?void 0:e.element,o=(e==null?void 0:e.className)==="stack-labels",i=(e==null?void 0:e.visibility)!=="hidden"||o&&(e==null?void 0:e.placed);return r&&i})).forEach(function(e){e.oldOpacity=e.opacity,e.newOpacity=1,e.polygon=function(r){var o=document.createElementNS("http://www.w3.org/2000/svg","svg"),i=r.element,c=i.transform.baseVal.consolidate().matrix,a=i.getBBox();function s(m,A){var O=o.createSVGPoint();O.x=m,O.y=A;var d=O.matrixTransform(c);return{x:d.x,y:d.y}}return[s(a.x,a.y),s(a.x,a.y+a.height),s(a.x+a.width,a.y+a.height),s(a.x+a.width,a.y)]}(e)}),x.sort(function(e,r){return D(p,r,T)-D(p,e,T)});var g=this.plotBackground&&this.plotBackground.element?this.plotBackground.element.getBoundingClientRect():null,v=g?{x:(0,rt.defined)(g.x)?g.x:g.left,y:(0,rt.defined)(g.y)?g.y:g.top,width:g.width,height:g.height}:null,y=(0,ft.default)(p,"options.chart.type"),C=y==="area"||y==="areaspline",P=y==="pie";if((C||y==="column"||y==="bar"||y==="line"||y==="bubble"||y==="boxplot")&&v){v.x-=10,v.y-=10,v.width+=20,v.height+=20,C&&!function(e){var r=(e.xAxis||[]).filter(function(o){return(0,ft.default)(o,"options.labels.enabled")});return r.length>1||r.some(function(o){return o.options.plotBands&&o.options.plotBands.length})}(p)&&(v.y-=30,v.height+=30);var L=this.series&&this.series.some(function(e){return(0,ft.default)(e,"options.stacking")==="percent"});x.forEach(function(e){var r,o,i,c;e.newOpacity===0||e.isSerieLabel||L&&$(u,e)||(r=v,o=e.element.getBoundingClientRect(),i=(0,rt.defined)(o.x)?o.x:o.left,c=(0,rt.defined)(o.y)?o.y:o.top,r.x<=i&&r.y<=c&&r.x+r.width>=i+o.width&&r.y+r.height>=c+o.height)||(e.newOpacity=0)})}for(var M=x.length,f=0;f<M;f++)for(var b=x[f],l=f+1;l<M;++l){var h=x[l];b.polygon&&h.polygon&&b!==h&&b.newOpacity!==0&&h.newOpacity!==0&&q(b.polygon,h.polygon)&&((D(p,b,T)<D(p,h,T)?b:h).newOpacity=0)}x.forEach(function(e){var r,o;e&&(o=e.newOpacity,P&&!e.placed||(o?e.show(!0):r=function(){e.hide()},e.oldOpacity!==o&&(e.alignAttr?(e.alignAttr.opacity=o,e[e.isOld?"animate":"attr"](e.alignAttr,null,r),U(p,"afterHideOverlappingLabels")):e.attr({opacity:o})),e.isOld=!0))})},W.wrap(W.SVGElement.prototype,"animate",function(x,T,u,p){var g=this;return g.animating=!0,x.apply(this,[T,u,function(){g.animating=!1,p?p(arguments):u&&u.complete&&u.complete(arguments)}])})}},4389:function(J,it,nt){var at=this&&this.__importDefault||function(pt){return pt&&pt.__esModule?pt:{default:pt}};Object.defineProperty(it,"__esModule",{value:!0});var lt=at(nt(4402));it.default=function(pt){var ft,N,rt=pt.objectEach,W=pt.pick,R="legend-hovered",U=document.documentElement.ontouchstart!==void 0;function Y(){clearTimeout(ft),clearTimeout(N),ft=null,N=null}pt.wrap(pt.Legend.prototype,"renderItem",function(Z,q){Z.call(this,q);var $=q.chart?q.chart:q.series.chart,G=!!q.series,D=$.options.$familyType==="pie",E=G?["graphic"]:["group","markerGroup"],x=q.legendItem.group.element,T=G?q.series.points:this.chart.series;function u(L){var M=[];return(L.yAxis||[]).forEach(function(f){f.options.stackLabels&&!f.options.stackLabels.allowOverlap&&rt(f.stacking.stacks,function(b){rt(b,function(l){l&&l.label&&(l.label.isStackLabel=!0),M.push(l.label)})})}),M}function p(){N=null,ft||C(q)}function g(){var L;ft=null,N||(L=q,($.series||[]).forEach(function(M){M!==L&&C(M)}))}function v(L,M){$.hideOverlappingLabels(L,M)}function y(L){($.series||[]).forEach(function(M){M===L&&(M.dataLabelCollections||["dataLabel"]).forEach(function(f){M.points.forEach(function(b){var l=b[String(f)];l&&l.visibility!=="hidden"&&(l.prevOpacity=l.opacity,l.opacitySetter(0,"opacity",l.element),l.prevVisibility=l.visibility,l.visibilitySetter("hidden","visibility",l.element))})})})}function C(L){($.series||[]).forEach(function(M){if(M===L){(M.dataLabelCollections||["dataLabel"]).forEach(function(l){M.points.forEach(function(h){var e=h[String(l)];if(e&&e.visibility==="hidden"){var r=(0,lt.default)(e.prevOpacity)?1:e.prevOpacity;e.prevOpacity=e.opacity,e.opacitySetter(r,"opacity",e.element);var o=(0,lt.default)(e.prevVisibility)?"visible":e.prevVisibility;e.prevVisibility=e.visibility,e.visibilitySetter(o,"visibility",e.element)}})});var f=P(M),b=u($);v([].concat(f,b),{totalsRank:Number.MIN_SAFE_INTEGER})}})}function P(L){var M=[],f=L.options.dataLabels,b=L.dataLabelCollections||["dataLabel","dataLabelsGroup"];return f&&(f.enabled||L._hasPointLabels)&&!f.allowOverlap&&L.visible&&b.forEach(function(l){L.points&&L.points.forEach(function(h){h[l]&&(h[l].labelrank=W(h.labelrank,h.shapeArgs&&h.shapeArgs.height),M.push(h[l]))})}),M}(0,lt.default)(T)&&(T=[]),U||(x.onmouseover=function(){if(q.visible){Y();var L=G&&q.series.halo;L&&L.attr({d:"M 0 0"}),T.forEach(function(M){M!==q&&M.visible&&(E.forEach(function(f){M[f]&&M[f].animate({opacity:.15},{duration:400})}),y(M))}),E.forEach(function(M){q[M]&&q[M].addClass(R)}),D||(N=setTimeout(p,100))}},x.onmouseout=function(){q.visible&&(Y(),T.forEach(function(L){L.visible&&L!==q&&E.forEach(function(M){L[M]&&L[M].animate({opacity:1},{duration:400})})}),E.forEach(function(L){q[L]&&q[L].removeClass(R)}),D||(ft=setTimeout(g,100)))},x.addEventListener("click",function(){Y();var L=[];T.forEach(function(f){f.visible?(E.forEach(function(b){f[b]&&f[b].animate({opacity:1},{duration:50})}),L=L.concat(P(f))):(E.forEach(function(b){f[b]&&f[b].animate({opacity:.25},{duration:150})}),y(f))});var M=u($);v(L=L.concat(M))}))})}},2372:(J,it)=>{Object.defineProperty(it,"__esModule",{value:!0}),it.default=function(nt){var at=nt.defaultOptions,lt=at.plotOptions,pt={fillOpacity:.2,color:null,borderColor:null},ft={fillColor:null,lineColor:null,lineWidth:2};at.plotOptions.column.states.select=pt,at.plotOptions.area.states.select=pt,at.plotOptions.bar.states.select=pt,at.plotOptions.line.states.select=pt,at.plotOptions.spline.states.select=pt,at.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}}},at.plotOptions.series={states:{select:pt}},lt.area.marker.states.select=ft,lt.line.marker.states.select=ft,lt.spline.marker.states.select=ft,lt.bubble.marker.states.select={fillOpacity:.25,fillColor:null,lineColor:null,lineWidth:1},nt.timeUnits.month=26784e5,nt.timeUnits.year=31556952e3}},1639:function(J,it,nt){var at=this&&this.__assign||function(){return at=Object.assign||function(R){for(var U,Y=1,Z=arguments.length;Y<Z;Y++)for(var q in U=arguments[Y])Object.prototype.hasOwnProperty.call(U,q)&&(R[q]=U[q]);return R},at.apply(this,arguments)},lt=this&&this.__read||function(R,U){var Y=typeof Symbol=="function"&&R[Symbol.iterator];if(!Y)return R;var Z,q,$=Y.call(R),G=[];try{for(;(U===void 0||U-- >0)&&!(Z=$.next()).done;)G.push(Z.value)}catch(D){q={error:D}}finally{try{Z&&!Z.done&&(Y=$.return)&&Y.call($)}finally{if(q)throw q.error}}return G},pt=this&&this.__spreadArray||function(R,U,Y){if(Y||arguments.length===2)for(var Z,q=0,$=U.length;q<$;q++)!Z&&q in U||(Z||(Z=Array.prototype.slice.call(U,0,q)),Z[q]=U[q]);return R.concat(Z||Array.prototype.slice.call(U))},ft=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(it,"__esModule",{value:!0});var N=ft(nt(1857)),rt=ft(nt(4891)),W=nt(2930);it.default=function(R){var U=R.removeEvent,Y=R.splat,Z=R.isArray,q=R.defaultOptions.plotOptions,$=R.fireEvent,G=R.color,D=R.extend,E=R.isNumber,x=R.merge,T=R.pick,u=R.Series,p=R.Point,g=navigator.userAgent,v=/(ipad|iphone|ipod)/g.test(g.toLowerCase()),y=document.documentElement.ontouchstart!==void 0,C=R.defaultOptions,P="highcharts-",L="hover";R.Axis.prototype.allowNegativeLog=!0,R.addEvent(R.Axis,"afterInit",function(){var M=this.logarithmic;M&&(this.positiveValuesOnly=!1,M.log2lin=function(f){var b=f<0,l=Math.abs(f);l<10&&(l+=(10-l)/10);var h=Math.log(l)/Math.LN10;return b?-h:h},M.lin2log=function(f){var b=f<0,l=Math.pow(10,Math.abs(f));return l<10&&(l=10*(l-1)/9),b?-l:l})}),R.Series.prototype.setPercentStacks=function(){var M,f=this,b=f.stackKey,l=f.yAxis.stacking.stacks,h=new RegExp(/navigator.\d*/gi);M=f.name.match(h)?f.chart.yAxis[1].options.max||100:f.chart.yAxis[f.options.yAxis||0].options.max||100,[b,"-"+b].forEach(function(e){for(var r,o,i,c,a=f.xData.length;a--;)r=f.xData[a],(i=(o=l[e]&&l[e][r])&&o.points[f.index])&&(c=o.total?100/o.total:0,i[0]=(0,W.correctFloat)(i[0]*c*((0,W.defined)(M)?M/100:1)),i[1]=(0,W.correctFloat)(i[1]*c*((0,W.defined)(M)?M/100:1)),f.stackedYData[a]=i[1])})},R.seriesTypes.area.prototype.getStackPoints=function(M){var f=this,b=[],l=[],h=this.xAxis,e=this.yAxis,r=e.stacking.stacks[this.stackKey],o={},i=e.series,c=i.length,a=e.options.reversedStacks?1:-1,s=i.indexOf(f);if(M=M||this.points,this.options.stacking){for(var m=0;m<M.length;m++)M[m].leftNull=M[m].rightNull=void 0,o[M[m].x]=M[m];R.objectEach(r,function(O,d){O.total!==null&&l.push(d)}),l.sort(function(O,d){return O-d});var A=i.map(function(O){return O.visible});l.forEach(function(O,d){var w,k,z=0;if(o[O]&&!o[O].isNull)b.push(o[O]),[-1,1].forEach(function(I){var _=I===1?"rightNull":"leftNull",V=I===1?"rightCliff":"leftCliff",X=r[l[d+I]],H=0;if(X)for(var Q=s;Q>=0&&Q<c;){var et=i[Q].index;(w=X.points[et])||(et===f.index?o[O][_]=!0:A[Q]&&(k=r[O].points[et])&&(H-=k[1]-k[0])),Q+=a}o[O][V]=H});else{for(var F=s;F>=0&&F<c;){var j=i[F].index;if(w=r[O].points[j]){z=w[1];break}F+=a}z=T(z,0),z=e.translate(z,0,1,0,1),b.push({isNull:!0,plotX:h.translate(O,0,0,0,1),x:O,plotY:z,yBottom:z,isDividerNull:o[O]&&o[O].isDividerNull})}})}return b},R.seriesTypes.areaspline.prototype.getStackPoints=R.seriesTypes.area.prototype.getStackPoints,R.seriesTypes.area.prototype.getGraphPath=function(M){var f,b,l,h=R.seriesTypes.line.prototype.getGraphPath,e=this.options,r=e.stacking,o=this.yAxis,i=[],c=[],a=this.index,s=o.stacking.stacks[this.stackKey],m=e.threshold,A=Math.round(o.getThreshold(e.threshold)),O=T(e.connectNulls,r==="percent"),d=function(et,tt,st){var ct,gt,mt=M[et],bt=r&&s[mt.x].points[a],yt=mt[st+"Null"]||0,dt=mt[st+"Cliff"]||0,ot=!0;dt||yt?(ct=(yt?bt[0]:bt[1])+dt,gt=bt[0]+dt,ot=!!yt):!r&&M[tt]&&M[tt].isNull&&(ct=gt=m),ct!==void 0&&(c.push({plotX:f,plotY:ct===null?A:o.getThreshold(ct),isNull:ot,isCliff:!0}),i.push({plotX:f,plotY:gt===null?A:o.getThreshold(gt),doCurve:!1}))};M=M||this.points,r&&(M=this.getStackPoints(M));for(var w=0,k=M.length;w<k;++w)if(r||(M[w].leftCliff=M[w].rightCliff=M[w].leftNull=M[w].rightNull=void 0),b=M[w].isNull,f=T(M[w].rectPlotX,M[w].plotX),l=r?T(M[w].yBottom,A):A,!b||O){var z=M[w-1],F=M[w+1],j=!M[w].isDividerNull&&z&&z.isDividerNull,I=!M[w].isDividerNull&&F&&F.isDividerNull;O&&!j||d(w,w-1,"left"),b&&!r&&O||(c.push(M[w]),i.push({x:w,plotX:f,plotY:l})),O&&!I||d(w,w+1,"right")}var _=h.call(this,c,!0,!0);i.reversed=!0;var V=h.call(this,i,!0,!0),X=V[0];X&&X[0]==="M"&&(V[0]=["L",X[1],X[2]]);var H=_.concat(V);H.length&&H.push(["Z"]);var Q=h.call(this,c,!1,O);return H.xMap=_.xMap,this.areaPath=H,Q},R.seriesTypes.areaspline.prototype.getGraphPath=R.seriesTypes.area.prototype.getGraphPath,R.Series.prototype.pointAttribs=function(M,f){var b,l,h,e,r,o,i=this.options.marker,c=M&&M.options,a=c&&c.marker||{},s=this.color,m=c&&c.color,A=M&&M.color,O=T(a.lineWidth,i.lineWidth),d=M&&M.zone&&M.zone.color;return s=m||d||A||s,h=a.fillColor||i.fillColor||s,e=a.lineColor||i.lineColor||s,r=1,o=1,f&&(b=i.states[f],l=a.states&&a.states[f]||{},O=T(l.lineWidth,b.lineWidth,O+T(l.lineWidthPlus,b.lineWidthPlus,0)),h=l.fillColor||b.fillColor||h,e=l.lineColor||b.lineColor||e,r=l.fillOpacity||b.fillOpacity||1,o=l.fillOpacity||b.fillOpacity||1),{stroke:e,"stroke-width":O,"stroke-opacity":o,"fill-opacity":r,fill:h}},R.Point.prototype.setState=function(M,f){var b,l,h,e=this,r=Math.floor(e.plotX),o=e.plotY,i=e.series,c=i.options.states[M]||{},a=q[i.type].marker&&i.options.marker,s=a&&a.enabled===!1,m=a&&a.states&&a.states[M]||{},A=m.enabled===!1,O=i.stateMarkerGraphic,d=e.marker||{},w=i.chart,k=i.halo,z=a&&i.markerAttribs;if(!((M=M||"")===e.state&&!f||e.selected&&M!=="select"||c.enabled===!1||M&&(A||s&&m.enabled===!1)||M&&d.states&&d.states[M]&&d.states[M].enabled===!1)){if(z&&(l=i.markerAttribs(e,M)),e.graphic){e.state&&e.graphic.removeClass("highcharts-point-"+e.state),M&&e.graphic.addClass("highcharts-point-"+M);var F=e.innerBoxColor||i.color,j={fill:F,"fill-opacity":.8,stroke:i.color,"stroke-opacity":1,"stroke-width":1};if(e.selected){var I=.3;j.fill=F,j["fill-opacity"]=I,j["stroke-opacity"]=I}M==="hover"&&(I=.9,j.fill=F,j["fill-opacity"]=I,j["stroke-opacity"]=I);var _={fill:F,"fill-opacity":1,stroke:G,"stroke-width":1},V=at({},j),X=i.pointAttribs(e,M);e.graphic.attr(X),e.stem&&e.stem.attr({}),e.whiskers&&e.whiskers.attr({}),e.box&&(e.box.attr(V),e.box.attr("stroke",V.stroke),e.innerBox.attr(_)),e.medianShape&&e.medianShape.attr({}),l&&e.graphic.animate(l,T(w.options.chart.animation,m.animation,a.animation)),O&&O.hide()}else M&&m&&(h=d.symbol||i.symbol,O&&O.currentSymbol!==h&&(O=O.destroy()),O?O[f?"animate":"attr"]({x:l.x,y:l.y}):h&&(i.stateMarkerGraphic=O=w.renderer.symbol(h,l.x,l.y,l.width,l.height).add(i.markerGroup),O.currentSymbol=h),O&&O.attr(i.pointAttribs(e,M))),O&&(O[M&&w.isInsidePlot(r,o,w.inverted)?"show":"hide"](),O.element.point=e);(b=c.halo)&&b.size?(k||(i.halo=k=w.renderer.path().add((e.graphic||O).parentGroup)),k[f?"animate":"attr"]({d:e.haloPath(b.size)}),k.attr({class:"highcharts-halo highcharts-color-"+T(e.colorIndex,i.colorIndex)}),k.point=e,k.attr(D({fill:e.color||i.color,"fill-opacity":b.opacity,zIndex:-1},b.attributes))):k&&k.point&&k.point.haloPath&&k.animate({d:k.point.haloPath(0)}),e.state=M}},R.Point.prototype.applyOptions=function(M,f){var b=this,l=b.series,h=l.options.pointValKey||l.pointValKey;return M=p.prototype.optionsToObject.call(this,M),D(b,M),b.options=b.options?D(b.options,M):M,M.group&&delete b.group,h&&(b.y=b[h]),b.isNull=T(b.isValid&&!b.isValid(),b.x===null||b.y===null||!E(b.y,!0)),b.selected&&(b.state="select"),"name"in b&&f===void 0&&l.xAxis&&l.xAxis.hasNames&&(b.x=l.xAxis.nameToX(b)),b.x===void 0&&l&&(b.x=f===void 0?l.autoIncrement(b):f),b},R.seriesTypes.column.prototype.pointAttribs=function(M,f){var b,l,h,e,r,o=this.options,i=this.pointAttrToOptions||{},c=i.stroke||"borderColor",a=i["stroke-width"]||"borderWidth",s=M&&M.color||this.color,m=M[c]||o[c]||this.color||s,A=M[a]||o[a]||this[a]||0,O=o.dashStyle;return M&&this.zones.length&&(s=(e=M.getZone())&&e.color||M.options.color||this.color),f&&(r=(b=o.states[f]).brightness,l=b.fillOpacity,s=b.color||r!==void 0&&G(s).brighten(b.brightness).get()||s,l&&l!==1&&(s=G(s).setOpacity(l).get("rgba")),m=b[c]||m,A=b[a]||A,O=b.dashStyle||O),h={fill:s,stroke:m,"stroke-width":A},o.borderRadius&&(h.r=o.borderRadius),O&&(h.dashstyle=O),h},R.seriesTypes.scatter.prototype.pointAttribs=function(M,f){var b=f?this.options.marker.states[f]:this.options.marker,l=T(b.fillOpacity,.5),h=u.prototype.pointAttribs.call(this,M,f);return l!==1&&(h.fill=G(h.fill).setOpacity(l).get("rgba")),h},R.seriesTypes.bubble.prototype.pointAttribs=function(M,f){var b=f?this.options.marker.states[f]:this.options.marker,l=T(b.fillOpacity,.5),h=u.prototype.pointAttribs.call(this,M,f);return l!==1&&(h.fill=G(h.fill).setOpacity(l).get("rgba")),h},R.seriesTypes.boxplot.prototype.pointAttribs=function(M,f){var b=f?this.options.states[f]:this.options,l=T(b.fillOpacity,.5),h=M&&M.color||this.color,e=M.fillColor||b.fillColor||h;return l!==1&&(e=G(e).setOpacity(l).get("rgba")),{fill:e,stroke:b.lineColor||h,"stroke-width":b.lineWidth||0}},R.Pointer.prototype.onContainerClick=function(M){var f,b,l,h=this.chart,e=h.hoverPoint,r=h.plotLeft,o=h.plotTop,i=h.inverted,c=M.type;M=this.normalize(M),h.cancelClick||(e&&this.inClass(M.target,P+"tracker")?(f=this.chartPosition,b=e.plotX,l=e.plotY,D(e,{pageX:f.left+r+(i?h.plotWidth-l:b),pageY:f.top+o+(i?h.plotHeight-b:l)}),$(e.series,c,D(M,{point:e})),h.hoverPoint&&e.firePointEvent(c,M)):(D(M,this.getCoordinates(M)),h.isInsidePlot(M.chartX-r,M.chartY-o)&&$(h,"click",M)))},R.Pointer.prototype.onContainerTapHold=function(M){var f,b,l,h=this.chart,e=h.hoverPoint,r=h.plotLeft,o=h.plotTop,i=h.inverted,c="contextmenu";(M=this.normalize(M)).hasTapHold=!0,h.cancelClick||e&&this.inClass(M.target,P+"tracker")&&(f=this.chartPosition,b=e.plotX,l=e.plotY,D(e,{pageX:f.left+r+(i?h.plotWidth-l:b),pageY:f.top+o+(i?h.plotHeight-b:l)}),$(e.series,c,D(M,{point:e})),h.hoverPoint&&(M.type="taphold",M.point=e,M.target=h,e.firePointEvent(c,M)))},R.Pointer.prototype.setDOMEvents=function(){var M,f=this,b=f.chart.container;this.unbindContainerMouseLeave=function(){},this._events=M=[[b,"onmousedown","onContainerMouseDown"],[b,"onmousemove","onContainerMouseMove"],[b,"onclick","onContainerClick"],[b,"mouseleave","onContainerMouseLeave"],[b,"contextmenu","onContainerClick"],[b,"mousemove","onDocumentMouseMove"],[b,"mouseup","onDocumentMouseUp"]],y&&v&&M.push([b,"taphold","onContainerClick"]),y&&M.push([b,"ontouchmove","onContainerTouchMove"],[b,"ontouchstart","onContainerTouchStart"],[b,"taphold","onContainerTapHold"],[document,"touchend","onDocumentTouchEnd"]),M.forEach(function(l){var h=lt(l,3),e=h[0],r=h[1],o=h[2];f["_"+o]=function(i){typeof f[l[2]]=="function"&&f[l[2]](i)},r.indexOf("on")===0?e[r]=f["_"+o]:e.addEventListener(r,f["_"+o])})},R.Navigator.prototype.updateNavigatorSeries=function(M,f){var b,l,h,e=this,r=e.chart,o=e.baseSeries,i={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}},visible:!0},c=e.series=(e.series||[]).filter(function(s){var m=s.baseSeries;return!(o.indexOf(m)<0&&(m&&(U(m,"updatedData",e.updatedDataHandler),delete m.navigatorSeries),s.chart&&s.destroy(),1))}),a=e.navigatorOptions.series;o&&o.length&&o.forEach(function(s){var m,A=s.navigatorSeries,O=D({color:s.color,visible:s.visible},Z(a)?C.navigator.series:a);if(!A||e.navigatorOptions.adaptToUpdatedData!==!1){i.name="Navigator "+o.length,(b=s.options||{}).navigatorOptions=at(at({},b.navigatorOptions),{marker:at(at({},(m=b.navigatorOptions)===null||m===void 0?void 0:m.marker),{radius:0})}),h=b.navigatorOptions||{},O.dataLabels=Y(O.dataLabels),(l=x(b,i,O,h)).pointRange=T(O.pointRange,h.pointRange,C.plotOptions[l.type||"line"].pointRange);var d=h.data||O.data;e.hasNavigatorData=e.hasNavigatorData||!!d,l.data=d||b.data&&b.data.slice(0),l.color=b.color,l.fillOpacity=b.fillOpacity,l.type!=="spline"&&l.type!=="areaspline"||(l.stacking=b.stacking),b.stacking!=="percent"&&b.stacking!=="normal"||(l.stacking=b.stacking,l.startFromThreshold=!1),A&&A.options?A.update(l,f):(s.navigatorSeries=r.initSeries(l),s.navigatorSeries.baseSeries=s,c.push(s.navigatorSeries))}}),(!a.data||o&&o.length)&&!Z(a)||(e.hasNavigatorData=!1,(a=Y(a)).forEach(function(s,m){i.name="Navigator "+(c.length+1),(l=x(C.navigator.series,{color:r.series[m]&&!r.series[m].options.isInternal&&r.series[m].color||r.options.colors[m]||r.options.colors[0]},i,s)).data=s.data,l.data&&(e.hasNavigatorData=!0,c.push(r.initSeries(l)))})),M&&this.addBaseSeriesEvents()},R.seriesTypes.scatter.prototype.drawLegendSymbol=R.seriesTypes.column.prototype.drawLegendSymbol,(0,W.wrap)(R.Pointer.prototype,"runPointActions",function(M,f,b){var l,h=f,e=this.chart;M.call(this,f,b);var r=e.hoverPoint,o=e.hoverSeries;if(h&&e.hoverPoint&&(a=h.touches?h.touches.length&&h.touches.item?h.touches.item(0):h.changedTouches?h.changedTouches[0]:h:h)&&a.clientX&&a.clientY){for(var i=document.elementFromPoint(a.clientX,a.clientY);i&&!l;)l=i.point,i=i.parentNode;l&&e.hoverPoint!=l&&l.onMouseOver(h)}(0,W.defined)(r)||(0,W.defined)(o)||(0,N.default)(e,"sisenseTipper.status")!=="on"||!e.sisenseTipper.tipper||(e.sisenseTipper.tipper.deactivate(),(0,rt.default)(e,"sisenseTipper.status","off"));var c=(0,N.default)(e,"sisenseTipper.chartType");if((0,N.default)(e,"sisenseTipper.status")!=="off"&&(0,N.default)(e,"sisenseTipper.tipper")&&(c==="pie"||c==="scatter"||c==="bubble"||h.type==="touchmove")){var a=h.touches?h.touches.length&&h.touches.item?h.touches.item(0):h.changedTouches?h.changedTouches[0]:h:h;e.sisenseTipper.tipper.activate({x:a.clientX,y:a.clientY,space:0})}}),(0,W.wrap)(R.Chart.prototype,"getContainer",function(M,f,b){M.call(this,f,b);var l,h=this;h.renderTo=l=h.container.parentElement,l.setAttribute("data-type",(0,N.default)(h,"options.chart.type"))}),(0,W.wrap)(R.Chart.prototype,"setChartSize",function(M){var f,b,l,h,e=this.legend,r=this.navigator;if(M.apply(this,[].slice.call(arguments,1)),r){if(b=e&&e.options,l=r.xAxis,h=r.yAxis,f=r.scrollbarHeight,this.inverted){var o=r.opposite?this.chartWidth-f-r.height:this.spacing[3]+f,i=this.plotTop+f;b.align==="left"&&e.legendWidth&&(o+=e.legendWidth),r.left=r.navigatorOptions.left||o,r.top=r.navigatorOptions.top||i}l&&h&&(this.inverted?l.options.left=h.options.left=r.left:l.options.top=h.options.top=r.top,l.setAxisSize(),h.setAxisSize())}}),(0,W.wrap)(R.Chart.prototype,"renderLabels",function(M){var f,b,l,h=this;if(M.apply(this,[].slice.call(arguments,1)),h&&h.polar&&h.userOptions&&((f=h.userOptions)===null||f===void 0?void 0:f.labels)&&((l=(b=h.userOptions.labels)===null||b===void 0?void 0:b.items)===null||l===void 0?void 0:l.length)){var e=20,r=20,o=void 0,i=h.userOptions.labels.items[0].html,c=pt([],lt(h.container.querySelectorAll("text")),!1).find(function(w){return w.innerHTML.includes(i)}),a=h.containerWidth,s=c.clientWidth,m=c.getBBox(),A=m.height?m.height:r,O=a/2-s/2,d=void 0;h.legend.options.verticalAlign==="top"?(o=h.legend.legendHeight+e+A)>h.plotTop&&(d=e+A,o=h.legend.legendHeight+d/2+e/2,h.legend.update({margin:d},!0)):(o=r)>h.plotTop&&(d=e+A,o=e/2+A,h.update({chart:{marginTop:d}},!0)),c.setAttribute("x",O),c.setAttribute("y",o)}}),R.wrap(R.SVGElement.prototype,"titleSetter",function(M,f){var b,l,h=this.element.getElementsByTagName("title")[0];h||(h=document.createElementNS(this.SVG_NS,"title"),this.element.appendChild(h)),h.firstChild&&h.removeChild(h.firstChild),h.appendChild(document.createTextNode((b=this.renderer.escapes,l=f,R.objectEach(b,function(e,r){l=l.replace(new RegExp(e,"g"),r)}),l)))}),(0,W.wrap)(R.Chart.prototype,"renderLabels",function(M){var f=this;M.apply(this,[].slice.call(arguments,1)),f.chartBackground.addClass("widget-body")}),(0,W.wrap)(R.Legend.prototype,"renderItem",function(M,f){var b=this,l=b.options,h=f.legendItem,e=!f.series,r=!e&&f.series.drawLegendSymbol?f.series:f,o=l.useHTML;M.apply(this,[].slice.call(arguments,1)),/msie|trident/i.exec(navigator.userAgent)&&f.legendItem.group.element.addEventListener("contextmenu",function(i){var c="legendItemClick",a={eventType:"contextmenu",browserEvent:i};return f.firePointEvent?f.firePointEvent(c,a,null):$(r,c,a,null),!1}),(o?h:f.legendItem.group).on("mouseover",function(){var i;f.setState(L),h&&((i=h.css)===null||i===void 0||i.call(h,b.options.itemHoverStyle))}).on("contextmenu",function(i){var c="legendItemClick",a={eventType:"contextmenu",browserEvent:i};return f.firePointEvent?f.firePointEvent(c,a,null):$(r,c,a,null),!1})}),(0,W.wrap)(R.StackItem.prototype,"render",function(M){var f=this.options,b=(0,N.default)(this,"axis.chart.options.chart.type"),l=5;if(this.alignOptions&&this.total!==void 0&&(b==="column"||b==="bar"&&Math.abs(f.rotation)===90)&&(this.alignOptions.y=this.alignOptions.x=0),M.apply(this,[].slice.call(arguments,1)),this.total!==void 0){var h=this.label.getBBox(!0,0),e=this.label.getBBox(),r=-Math.sign(this.total),o=0,i=0;if(b==="column"?(this.total<0||Math.abs(f.rotation)===90?o=e.height/2*r:Math.abs(f.rotation)===45&&this.total>0&&(o=-h.width/2*Math.sin(45*Math.PI/180)),Math.abs(f.rotation)===45&&(i+=-e.width/4*r),Math.abs(f.rotation)===90&&(i+=h.height/4),o+=l*r):b==="bar"&&Math.abs(f.rotation)===90&&(o=-e.height/2*r,this.total>=0&&(i+=h.height/2),i+=-l*r),this.label.translate(i,o),this.label&&!this.label.labelrank){var c=this.total===0?Number.MIN_SAFE_INTEGER:0;this.label.labelrank=this.x+f.labelrank+c}}}),R.wrap(R,"fireEvent",function(M,f,b,l){var h=new Event(b),e=(0,N.default)(l,"changedTouches"),r=(0,N.default)(l,"point.graphic.element");D(h,l),e&&(h.clientX=(0,N.default)(e,"0.clientX"),h.clientY=(0,N.default)(e,"0.clientY"),h.target=r),M.apply(this,[].slice.call(arguments,1))}),(0,W.wrap)(R.Point.prototype,"getLabelConfig",function(M){var f=M.apply(this,[].slice.call(arguments,1));return this.originalY&&(f.y=this.originalY),f}),(0,W.wrap)(R.seriesTypes.column.prototype,"alignDataLabel",function(M,f,b,l){var h=f.series.options.stacking,e=this.chart.inverted,r=l.rotation,o=f.y<0&&f.dataLabel,i=f.dlBox,c=f.dataLabel.getBBox();if(!h&&o){f.below=!0;var a=x(f.dlBox||f.shapeArgs),s=e?c.width:c.height;a.y+=s,f.dlBox=a}else h&&(l.align="center");!h&&r&&(c=f.dataLabel.getBBox(),e?l.x+=.5*c.width:o&&Math.abs(r)%360==45&&(l.x=.5*-c.width));var m=M.apply(this,[].slice.call(arguments,1));return f.dlBox=i,m}),R.Scroller=R.Navigator}},9984:function(J,it,nt){var at=this&&this.__importDefault||function(N){return N&&N.__esModule?N:{default:N}};Object.defineProperty(it,"__esModule",{value:!0});var lt=at(nt(1857)),pt=nt(2930),ft=at(nt(4052));it.default=function(N){var rt=N.wrap;rt(N.seriesTypes.pie.prototype,"drawDataLabels",function(W,R,U){var Y,Z=this,q=Z.chart.renderer;W.call(this,R,U);var $=function(E){var x,T,u,p,g,v,y,C,P,L,M,f,b,l,h,e,r,o,i,c,a=(0,lt.default)(E,"shapeArgs.x")+E.series.chart.plotBox.x,s=(0,lt.default)(E,"shapeArgs.y")+E.series.chart.plotBox.y,m=(0,lt.default)(E,"shapeArgs.innerR"),A=(0,lt.default)(E,"shapeArgs.r")-m,O={},d=E.shapeArgs;u=d.r*Math.sin(d.start+1.571)+a,p=d.r*Math.cos(d.start+1.571)*-1+s,M=u-(x=d.r*Math.sin((d.end+1.571+d.start+1.571)/2)+a),f=p-(T=d.r*Math.cos((d.end+1.571+d.start+1.571)/2)*-1+s),L=s-p,(P=a-u)==0?(y=1,C=0,l=1):(y=L/P,C=1,l=Math.sqrt(Math.pow(y,2)+Math.pow(C,2)),d.start+1.571>Math.PI?C*=-1:y*=-1),g=a-x,h=(P*f/L-M)/(P*(v=s-T)/(L*(b=Math.sqrt(Math.pow(g,2)+Math.pow(v,2))))-P*C/(L*l)+y/l-g/b),e=x+g/b*Math.abs(h),r=T+v/b*Math.abs(h),o=Math.sqrt(Math.pow(e-x,2)+Math.pow(r-T,2));var w=d.end-d.start,k=Math.round((0,pt.radiansToDegrees)(w)),z=(0,pt.radiansToDegrees)(Math.PI);return(2*o>A||k>=z)&&(e=x+g/b*(o=A/2),r=T+v/b*o),c=(0,lt.default)(E,"series.chart.options.plotOptions.pie.dataLabels.showDecimals")===!0?E.percentage.toFixed(1).replace(".0",""):Math.round(E.percentage),(0,pt.defined)(O[c])?i=O[c]:(i=o/1.5,O[c]=i),{fontSize:i,slicePercentage:c,newCenterX:e,newCenterY:r,circleCenterX:a,circleCenterY:s}},G=function(E,x,T,u){var p=q.text(x.slicePercentage+"%",x.newCenterX,x.newCenterY),g={class:"pie-percent-label",zIndex:13,"text-anchor":"middle","font-size":x.fontSize},v={"pointer-events":"none","font-family":(0,lt.default)(u,"options.dataLabels.style.fontFamily",ft.default.fontFamily),"letter-spacing":"-0.05em",color:"white",fontSize:!1},y=p.attr(g).attr(T).add(),C=p.element.getBBox().height/4,P={x:x.newCenterX,y:x.newCenterY+C};E.sisenseLabel=y.css(v).attr(P).add()},D=(0,lt.default)(Z,"chart.options.chart.isHighlightMode");Z.points.forEach(function(E){var x,T;if(E.graphic){if((0,lt.default)(E,"series.chart.options.plotOptions.pie.dataLabels.showPercentLabels")===!0)if(x=$(E),T=(0,lt.default)(E,"series.chart.options.plotOptions.pie.dataLabels.pieMinimumFontSizeToTextLabel"),x.fontSize>T)if((0,pt.defined)((0,lt.default)(E,"sisenseLabel.element"))){var u={x:x.newCenterX,y:x.newCenterY};D&&(u.translateX=E.sliced?E.slicedTranslation.translateX:0,u.translateY=E.sliced?E.slicedTranslation.translateY:0),E.sisenseLabel.attr({text:x.slicePercentage+"%","font-size":x.fontSize}).animate(u)}else G(E,x,Y,Z),E.sisenseLabel&&D&&((u={x:x.newCenterX,y:x.newCenterY}).translateX=E.sliced?E.slicedTranslation.translateX:0,u.translateY=E.sliced?E.slicedTranslation.translateY:0,E.sisenseLabel.attr({text:x.slicePercentage+"%","font-size":x.fontSize}).attr(u));else(0,pt.defined)((0,lt.default)(E,"sisenseLabel.element"))&&E.sisenseLabel.destroy()}else(0,lt.default)(E,"series.chart.options.plotOptions.pie.dataLabels.showPercentLabels")===!0&&(x=$(E),T=(0,lt.default)(E,"series.chart.options.plotOptions.pie.dataLabels.pieMinimumFontSizeToTextLabel"),x.fontSize>T&&G(E,x,Y,Z))})}),rt(N.Point.prototype,"destroyElements",function(W,R,U){for(var Y,Z=this,q=["decoration","sisenseLabel"],$=q.length;$--;)Z[Y=q[$]]&&Z.visible&&Z[Y].renderer&&Z[Y].destroy();W.call(this,R,U)}),rt(N.seriesTypes.pie.prototype.pointClass.prototype,"slice",function(W){var R=this;W.apply(this,[].slice.call(arguments,1)),(0,lt.default)(R,"sisenseLabel.renderer")&&R.sisenseLabel.animate(this.getTranslate())}),N.seriesTypes.pie.prototype.placeDataLabels=function(){this.points.forEach(function(W){var R,U=W.dataLabel;U&&W.visible&&((R=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"](R),U.moved=!0):U&&U.attr({y:-9999}))},this)},N.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",""):"")}}},7155:function(J,it,nt){var at=this&&this.__importDefault||function(T){return T&&T.__esModule?T:{default:T}};Object.defineProperty(it,"__esModule",{value:!0});var lt=at(nt(3491)),pt=at(nt(3805)),ft=at(nt(7274)),N=at(nt(8291)),rt=at(nt(7330)),W=at(nt(8693)),R=at(nt(7922)),U=at(nt(1548)),Y=at(nt(3968)),Z=at(nt(8040)),q=at(nt(4389)),$=at(nt(2372)),G=at(nt(9984)),D=at(nt(9639)),E=at(nt(1639)),x=at(nt(548));(0,ft.default)(lt.default),(0,pt.default)(lt.default),(0,N.default)(lt.default),(0,rt.default)(lt.default),(0,W.default)(lt.default),(0,R.default)(lt.default),(0,U.default)(lt.default),(0,Y.default)(lt.default),(0,$.default)(lt.default),(0,G.default)(lt.default),(0,D.default)(lt.default),(0,E.default)(lt.default),(0,Z.default)(lt.default),(0,q.default)(lt.default),lt.default.setOptions(x.default),it.default=lt.default},2930:function(J,it,nt){var at=this&&this.__importDefault||function(pt){return pt&&pt.__esModule?pt:{default:pt}};Object.defineProperty(it,"__esModule",{value:!0}),it.arrayMax=it.arrayMin=it.correctFloat=it.radiansToDegrees=it.defined=it.wrap=void 0;var lt=at(nt(1857));it.wrap=function(pt,ft,N){var rt=pt[ft];pt[ft]=function(){var W=Array.prototype.slice.call(arguments);return W.unshift(rt),N.apply(this,W)}},it.defined=function(pt,ft){return ft===void 0||ft==="null"||ft===""?pt!=null:(0,lt.default)(pt,ft)!==void 0},it.radiansToDegrees=function(pt){return 180*pt/Math.PI},it.correctFloat=function(pt){return parseFloat(pt.toPrecision(14))},it.arrayMin=function(pt){for(var ft=pt.length,N=pt[0];ft--;)pt[ft]<N&&(N=pt[ft]);return N},it.arrayMax=function(pt){for(var ft=pt.length,N=pt[0];ft--;)pt[ft]>N&&(N=pt[ft]);return N}},3805:(J,it,nt)=>{var at,lt,pt;pt=function(ft){var N=ft?ft._modules:{};function rt(W,R,U,Y){W.hasOwnProperty(R)||(W[R]=Y.apply(null,U),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:R,module:W[R]}})))}rt(N,"Core/Math3D.js",[N["Core/Globals.js"],N["Core/Utilities.js"]],function(W,R){var U=W.deg2rad,Y=R.pick;function Z(G,D,E,x){var T=D.options.chart.options3d,u=Y(x,!!E&&D.inverted),p={x:D.plotWidth/2,y:D.plotHeight/2,z:T.depth/2,vd:Y(T.depth,1)*Y(T.viewDistance,0)},g=D.scale3d||1,v=U*T.beta*(u?-1:1),y=U*T.alpha*(u?-1:1),C={cosA:Math.cos(y),cosB:Math.cos(-v),sinA:Math.sin(y),sinB:Math.sin(-v)};return E||(p.x+=D.plotLeft,p.y+=D.plotTop),G.map(function(P){var L=function(f,b,l,h){return{x:h.cosB*f-h.sinB*l,y:-h.sinA*h.sinB*f+h.cosA*b-h.cosB*h.sinA*l,z:h.cosA*h.sinB*f+h.sinA*b+h.cosA*h.cosB*l}}((u?P.y:P.x)-p.x,(u?P.x:P.y)-p.y,(P.z||0)-p.z,C),M=q(L,p,p.vd);return M.x=M.x*g+p.x,M.y=M.y*g+p.y,M.z=L.z*g+p.z,{x:u?M.y:M.x,y:u?M.x:M.y,z:M.z}})}function q(G,D,E){var x=E>0&&E<Number.POSITIVE_INFINITY?E/(G.z+D.z+E):1;return{x:G.x*x,y:G.y*x}}function $(G){var D,E,x=0;for(D=0;D<G.length;D++)E=(D+1)%G.length,x+=G[D].x*G[E].y-G[E].x*G[D].y;return x/2}return{perspective:Z,perspective3D:q,pointCameraDistance:function(G,D){var E=D.options.chart.options3d,x=D.plotWidth/2,T=D.plotHeight/2,u=Y(E.depth,1)*Y(E.viewDistance,0)+E.depth;return Math.sqrt(Math.pow(x-Y(G.plotX,G.x),2)+Math.pow(T-Y(G.plotY,G.y),2)+Math.pow(u-Y(G.plotZ,G.z),2))},shapeArea:$,shapeArea3D:function(G,D,E){return $(Z(G,D,E))}}}),rt(N,"Core/Renderer/SVG/SVGElement3D.js",[N["Core/Color/Color.js"],N["Core/Renderer/SVG/SVGElement.js"],N["Core/Utilities.js"]],function(W,R,U){var Y=W.parse,Z=U.defined,q=U.merge,$=U.objectEach,G=U.pick,D={};return D.base={initArgs:function(E){var x=this,T=x.renderer,u=T[x.pathType+"Path"](E),p=u.zIndexes;x.parts.forEach(function(g){var v={class:"highcharts-3d-"+g,zIndex:p[g]||0};T.styledMode&&(g==="top"?v.filter="url(#highcharts-brighter)":g==="side"&&(v.filter="url(#highcharts-darker)")),x[g]=T.path(u[g]).attr(v).add(x)}),x.attr({"stroke-linejoin":"round",zIndex:p.group}),x.originalDestroy=x.destroy,x.destroy=x.destroyParts,x.forcedSides=u.forcedSides},singleSetterForParts:function(E,x,T,u,p,g){var v={},y=[null,null,u||"attr",p,g],C=T&&T.zIndexes;return T?(C&&C.group&&this.attr({zIndex:C.group}),$(T,function(P,L){v[L]={},v[L][E]=P,C&&(v[L].zIndex=T.zIndexes[L]||0)}),y[1]=v):(v[E]=x,y[0]=v),this.processParts.apply(this,y)},processParts:function(E,x,T,u,p){var g=this;return g.parts.forEach(function(v){x&&(E=G(x[v],!1)),E!==!1&&g[v][T](E,u,p)}),g},destroyParts:function(){return this.processParts(null,null,"destroy"),this.originalDestroy()}},D.cuboid=q(D.base,{parts:["front","top","side"],pathType:"cuboid",attr:function(E,x,T,u){if(typeof E=="string"&&x!==void 0){var p=E;(E={})[p]=x}return E.shapeArgs||Z(E.x)?this.singleSetterForParts("d",null,this.renderer[this.pathType+"Path"](E.shapeArgs||E)):R.prototype.attr.call(this,E,void 0,T,u)},animate:function(E,x,T){if(Z(E.x)&&Z(E.y)){var u=this.renderer[this.pathType+"Path"](E),p=u.forcedSides;this.singleSetterForParts("d",null,u,"animate",x,T),this.attr({zIndex:u.zIndexes.group}),p!==this.forcedSides&&(this.forcedSides=p,this.renderer.styledMode||D.cuboid.fillSetter.call(this,this.fill))}else R.prototype.animate.call(this,E,x,T);return this},fillSetter:function(E){var x=this;return x.forcedSides=x.forcedSides||[],x.singleSetterForParts("fill",null,{front:E,top:Y(E).brighten(x.forcedSides.indexOf("top")>=0?0:.1).get(),side:Y(E).brighten(x.forcedSides.indexOf("side")>=0?0:-.1).get()}),x.color=x.fill=E,x}}),D}),rt(N,"Core/Renderer/SVG/SVGRenderer3D.js",[N["Core/Animation/AnimationUtilities.js"],N["Core/Color/Color.js"],N["Core/Globals.js"],N["Core/Math3D.js"],N["Core/Renderer/SVG/SVGElement.js"],N["Core/Renderer/SVG/SVGElement3D.js"],N["Core/Renderer/SVG/SVGRenderer.js"],N["Core/Utilities.js"]],function(W,R,U,Y,Z,q,$,G){var D,E=this&&this.__extends||(D=function(e,r){return D=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,i){o.__proto__=i}||function(o,i){for(var c in i)i.hasOwnProperty(c)&&(o[c]=i[c])},D(e,r)},function(e,r){function o(){this.constructor=e}D(e,r),e.prototype=r===null?Object.create(r):(o.prototype=r.prototype,new o)}),x=W.animObject,T=R.parse,u=U.charts,p=U.deg2rad,g=Y.perspective,v=Y.shapeArea,y=G.defined,C=G.extend,P=G.merge,L=G.pick,M=Math.cos,f=Math.sin,b=Math.PI,l=4*(Math.sqrt(2)-1)/3/(b/2),h=function(e){function r(){return e!==null&&e.apply(this,arguments)||this}return E(r,e),r.compose=function(o){var i=o.prototype,c=r.prototype;i.elements3d=q,i.arc3d=c.arc3d,i.arc3dPath=c.arc3dPath,i.cuboid=c.cuboid,i.cuboidPath=c.cuboidPath,i.element3d=c.element3d,i.face3d=c.face3d,i.polyhedron=c.polyhedron,i.toLinePath=c.toLinePath,i.toLineSegments=c.toLineSegments},r.curveTo=function(o,i,c,a,s,m,A,O){var d=[],w=m-s;return m>s&&m-s>Math.PI/2+1e-4?d=(d=d.concat(this.curveTo(o,i,c,a,s,s+Math.PI/2,A,O))).concat(this.curveTo(o,i,c,a,s+Math.PI/2,m,A,O)):m<s&&s-m>Math.PI/2+1e-4?d=(d=d.concat(this.curveTo(o,i,c,a,s,s-Math.PI/2,A,O))).concat(this.curveTo(o,i,c,a,s-Math.PI/2,m,A,O)):[["C",o+c*Math.cos(s)-c*l*w*Math.sin(s)+A,i+a*Math.sin(s)+a*l*w*Math.cos(s)+O,o+c*Math.cos(m)+c*l*w*Math.sin(m)+A,i+a*Math.sin(m)-a*l*w*Math.cos(m)+O,o+c*Math.cos(m)+A,i+a*Math.sin(m)+O]]},r.prototype.toLinePath=function(o,i){var c=[];return o.forEach(function(a){c.push(["L",a.x,a.y])}),o.length&&(c[0][0]="M",i&&c.push(["Z"])),c},r.prototype.toLineSegments=function(o){var i=[],c=!0;return o.forEach(function(a){i.push(c?["M",a.x,a.y]:["L",a.x,a.y]),c=!c}),i},r.prototype.face3d=function(o){var i=this,c=this.createElement("path");return c.vertexes=[],c.insidePlotArea=!1,c.enabled=!0,c.attr=function(a){if(typeof a=="object"&&(y(a.enabled)||y(a.vertexes)||y(a.insidePlotArea))){this.enabled=L(a.enabled,this.enabled),this.vertexes=L(a.vertexes,this.vertexes),this.insidePlotArea=L(a.insidePlotArea,this.insidePlotArea),delete a.enabled,delete a.vertexes,delete a.insidePlotArea;var s=u[i.chartIndex],m=g(this.vertexes,s,this.insidePlotArea),A=i.toLinePath(m,!0),O=v(m);a.d=A,a.visibility=this.enabled&&O>0?"inherit":"hidden"}return Z.prototype.attr.apply(this,arguments)},c.animate=function(a){if(typeof a=="object"&&(y(a.enabled)||y(a.vertexes)||y(a.insidePlotArea))){this.enabled=L(a.enabled,this.enabled),this.vertexes=L(a.vertexes,this.vertexes),this.insidePlotArea=L(a.insidePlotArea,this.insidePlotArea),delete a.enabled,delete a.vertexes,delete a.insidePlotArea;var s=u[i.chartIndex],m=g(this.vertexes,s,this.insidePlotArea),A=i.toLinePath(m,!0),O=v(m),d=this.enabled&&O>0?"visible":"hidden";a.d=A,this.attr("visibility",d)}return Z.prototype.animate.apply(this,arguments)},c.attr(o)},r.prototype.polyhedron=function(o){var i=this,c=this.g(),a=c.destroy;return this.styledMode||c.attr({"stroke-linejoin":"round"}),c.faces=[],c.destroy=function(){for(var s=0;s<c.faces.length;s++)c.faces[s].destroy();return a.call(this)},c.attr=function(s,m,A,O){if(typeof s=="object"&&y(s.faces)){for(;c.faces.length>s.faces.length;)c.faces.pop().destroy();for(;c.faces.length<s.faces.length;)c.faces.push(i.face3d().add(c));for(var d=0;d<s.faces.length;d++)i.styledMode&&delete s.faces[d].fill,c.faces[d].attr(s.faces[d],null,A,O);delete s.faces}return Z.prototype.attr.apply(this,arguments)},c.animate=function(s,m,A){if(s&&s.faces){for(;c.faces.length>s.faces.length;)c.faces.pop().destroy();for(;c.faces.length<s.faces.length;)c.faces.push(i.face3d().add(c));for(var O=0;O<s.faces.length;O++)c.faces[O].animate(s.faces[O],m,A);delete s.faces}return Z.prototype.animate.apply(this,arguments)},c.attr(o)},r.prototype.element3d=function(o,i){var c=this.g();return C(c,this.elements3d[o]),c.initArgs(i),c},r.prototype.cuboid=function(o){return this.element3d("cuboid",o)},r.prototype.cuboidPath=function(o){var i,c,a,s,m,A,O,d,w=o.x||0,k=o.y||0,z=o.z||0,F=o.height||0,j=o.width||0,I=o.depth||0,_=u[this.chartIndex],V=_.options.chart.options3d.alpha,X=1e6,H=0,Q=[{x:w,y:k,z},{x:w+j,y:k,z},{x:w+j,y:k+F,z},{x:w,y:k+F,z},{x:w,y:k+F,z:z+I},{x:w+j,y:k+F,z:z+I},{x:w+j,y:k,z:z+I},{x:w,y:k,z:z+I}],et=[];function tt(ct){return F===0&&ct>1&&ct<6?{x:Q[ct].x,y:Q[ct].y+10,z:Q[ct].z}:Q[0].x===Q[7].x&&ct>=4?{x:Q[ct].x+10,y:Q[ct].y,z:Q[ct].z}:I===0&&ct<2||ct>5?{x:Q[ct].x,y:Q[ct].y,z:Q[ct].z+10}:Q[ct]}function st(ct){return Q[ct]}return Q=g(Q,_,o.insidePlotArea),c=(i=(d=function(ct,gt,mt){var bt=[[],-1],yt=ct.map(st),dt=gt.map(st),ot=ct.map(tt),ht=gt.map(tt);return v(yt)<0?bt=[yt,0]:v(dt)<0?bt=[dt,1]:mt&&(et.push(mt),bt=v(ot)<0?[yt,0]:v(ht)<0?[dt,1]:[yt,0]),bt})([3,2,1,0],[7,6,5,4],"front"))[0],m=i[1],a=(i=d([1,6,7,0],[4,5,2,3],"top"))[0],A=i[1],s=(i=d([1,2,5,6],[0,7,4,3],"side"))[0],(O=i[1])===1?H+=X*(_.plotWidth-w):O||(H+=X*w),H+=10*(!A||V>=0&&V<=180||V<360&&V>357.5?_.plotHeight-k:10+k),m===1?H+=100*z:m||(H+=100*(1e3-z)),{front:this.toLinePath(c,!0),top:this.toLinePath(a,!0),side:this.toLinePath(s,!0),zIndexes:{group:Math.round(H)},forcedSides:et,isFront:m,isTop:A}},r.prototype.arc3d=function(o){var i=this.g(),c=i.renderer,a=["x","y","r","innerR","start","end","depth"];function s(m){var A,O=!1,d={};for(A in m=P(m))a.indexOf(A)!==-1&&(d[A]=m[A],delete m[A],O=!0);return!!O&&[d,m]}return(o=P(o)).alpha=(o.alpha||0)*p,o.beta=(o.beta||0)*p,i.top=c.path(),i.side1=c.path(),i.side2=c.path(),i.inn=c.path(),i.out=c.path(),i.onAdd=function(){var m=i.parentGroup,A=i.attr("class");i.top.add(i),["out","inn","side1","side2"].forEach(function(O){i[O].attr({class:A+" highcharts-3d-side"}).add(m)})},["addClass","removeClass"].forEach(function(m){i[m]=function(){var A=arguments;["top","out","inn","side1","side2"].forEach(function(O){i[O][m].apply(i[O],A)})}}),i.setPaths=function(m){var A=i.renderer.arc3dPath(m),O=100*A.zTop;i.attribs=m,i.top.attr({d:A.top,zIndex:A.zTop}),i.inn.attr({d:A.inn,zIndex:A.zInn}),i.out.attr({d:A.out,zIndex:A.zOut}),i.side1.attr({d:A.side1,zIndex:A.zSide1}),i.side2.attr({d:A.side2,zIndex:A.zSide2}),i.zIndex=O,i.attr({zIndex:O}),m.center&&(i.top.setRadialReference(m.center),delete m.center)},i.setPaths(o),i.fillSetter=function(m){var A=T(m).brighten(-.1).get();return this.fill=m,this.side1.attr({fill:A}),this.side2.attr({fill:A}),this.inn.attr({fill:A}),this.out.attr({fill:A}),this.top.attr({fill:m}),this},["opacity","translateX","translateY","visibility"].forEach(function(m){i[m+"Setter"]=function(A,O){i[O]=A,["out","inn","side1","side2","top"].forEach(function(d){i[d].attr(O,A)})}}),i.attr=function(m){var A,O;return typeof m=="object"&&(O=s(m))&&(A=O[0],arguments[0]=O[1],C(i.attribs,A),i.setPaths(i.attribs)),Z.prototype.attr.apply(i,arguments)},i.animate=function(m,A,O){var d,w,k,z=this.attribs,F="data-"+Math.random().toString(26).substring(2,9);return delete m.center,delete m.z,delete m.alpha,delete m.beta,(k=x(L(A,this.renderer.globalAnimation))).duration&&(d=s(m),i[F]=0,m[F]=1,i[F+"Setter"]=U.noop,d&&(w=d[0],k.step=function(j,I){function _(V){return z[V]+(L(w[V],z[V])-z[V])*I.pos}I.prop===F&&I.elem.setPaths(P(z,{x:_("x"),y:_("y"),r:_("r"),innerR:_("innerR"),start:_("start"),end:_("end"),depth:_("depth")}))}),A=k),Z.prototype.animate.call(this,m,A,O)},i.destroy=function(){return this.top.destroy(),this.out.destroy(),this.inn.destroy(),this.side1.destroy(),this.side2.destroy(),Z.prototype.destroy.call(this)},i.hide=function(){this.top.hide(),this.out.hide(),this.inn.hide(),this.side1.hide(),this.side2.hide()},i.show=function(m){this.top.show(m),this.out.show(m),this.inn.show(m),this.side1.show(m),this.side2.show(m)},i},r.prototype.arc3dPath=function(o){var i=o.x||0,c=o.y||0,a=o.start||0,s=(o.end||0)-1e-5,m=o.r||0,A=o.innerR||0,O=o.depth||0,d=o.alpha||0,w=o.beta||0,k=Math.cos(a),z=Math.sin(a),F=Math.cos(s),j=Math.sin(s),I=m*Math.cos(w),_=m*Math.cos(d),V=A*Math.cos(w),X=A*Math.cos(d),H=O*Math.sin(w),Q=O*Math.sin(d),et=[["M",i+I*k,c+_*z]];(et=et.concat(r.curveTo(i,c,I,_,a,s,0,0))).push(["L",i+V*F,c+X*j]),(et=et.concat(r.curveTo(i,c,V,X,s,a,0,0))).push(["Z"]);var tt=w>0?Math.PI/2:0,st=d>0?0:Math.PI/2,ct=a>-tt?a:s>-tt?-tt:a,gt=s<b-st?s:a<b-st?b-st:s,mt=2*b-st,bt=[["M",i+I*M(ct),c+_*f(ct)]];bt=bt.concat(r.curveTo(i,c,I,_,ct,gt,0,0)),s>mt&&a<mt?(bt.push(["L",i+I*M(gt)+H,c+_*f(gt)+Q]),(bt=bt.concat(r.curveTo(i,c,I,_,gt,mt,H,Q))).push(["L",i+I*M(mt),c+_*f(mt)]),(bt=bt.concat(r.curveTo(i,c,I,_,mt,s,0,0))).push(["L",i+I*M(s)+H,c+_*f(s)+Q]),(bt=bt.concat(r.curveTo(i,c,I,_,s,mt,H,Q))).push(["L",i+I*M(mt),c+_*f(mt)]),bt=bt.concat(r.curveTo(i,c,I,_,mt,gt,0,0))):s>b-st&&a<b-st&&(bt.push(["L",i+I*Math.cos(gt)+H,c+_*Math.sin(gt)+Q]),(bt=bt.concat(r.curveTo(i,c,I,_,gt,s,H,Q))).push(["L",i+I*Math.cos(s),c+_*Math.sin(s)]),bt=bt.concat(r.curveTo(i,c,I,_,s,gt,0,0))),bt.push(["L",i+I*Math.cos(gt)+H,c+_*Math.sin(gt)+Q]),(bt=bt.concat(r.curveTo(i,c,I,_,gt,ct,H,Q))).push(["Z"]);var yt=[["M",i+V*k,c+X*z]];(yt=yt.concat(r.curveTo(i,c,V,X,a,s,0,0))).push(["L",i+V*Math.cos(s)+H,c+X*Math.sin(s)+Q]),(yt=yt.concat(r.curveTo(i,c,V,X,s,a,H,Q))).push(["Z"]);var dt=[["M",i+I*k,c+_*z],["L",i+I*k+H,c+_*z+Q],["L",i+V*k+H,c+X*z+Q],["L",i+V*k,c+X*z],["Z"]],ot=[["M",i+I*F,c+_*j],["L",i+I*F+H,c+_*j+Q],["L",i+V*F+H,c+X*j+Q],["L",i+V*F,c+X*j],["Z"]],ht=Math.atan2(Q,-H),ut=Math.abs(s+ht),vt=Math.abs(a+ht),wt=Math.abs((a+s)/2+ht);function xt(Pt){return(Pt%=2*Math.PI)>Math.PI&&(Pt=2*Math.PI-Pt),Pt}ut=xt(ut),vt=xt(vt);var Ct=1e5,St=(wt=xt(wt))*Ct,Mt=vt*Ct,Tt=ut*Ct;return{top:et,zTop:Math.PI*Ct+1,out:bt,zOut:Math.max(St,Mt,Tt),inn:yt,zInn:Math.max(St,Mt,Tt),side1:dt,zSide1:.99*Tt,side2:ot,zSide2:.99*Mt}},r}($);return h}),rt(N,"Core/Chart/Chart3D.js",[N["Core/Color/Color.js"],N["Core/Defaults.js"],N["Core/Math3D.js"],N["Core/Utilities.js"]],function(W,R,U,Y){var Z,q=W.parse,$=R.defaultOptions,G=U.perspective,D=U.shapeArea3D,E=Y.addEvent,x=Y.isArray,T=Y.merge,u=Y.pick,p=Y.wrap;return function(g){var v=function(){function o(i){this.frame3d=void 0,this.chart=i}return o.prototype.get3dFrame=function(){var i=this.chart,c=i.options.chart.options3d,a=c.frame,s=i.plotLeft,m=i.plotLeft+i.plotWidth,A=i.plotTop,O=i.plotTop+i.plotHeight,d=c.depth,w=function(ot){var ht=D(ot,i);return ht>.5?1:ht<-.5?-1:0},k=w([{x:s,y:O,z:d},{x:m,y:O,z:d},{x:m,y:O,z:0},{x:s,y:O,z:0}]),z=w([{x:s,y:A,z:0},{x:m,y:A,z:0},{x:m,y:A,z:d},{x:s,y:A,z:d}]),F=w([{x:s,y:A,z:0},{x:s,y:A,z:d},{x:s,y:O,z:d},{x:s,y:O,z:0}]),j=w([{x:m,y:A,z:d},{x:m,y:A,z:0},{x:m,y:O,z:0},{x:m,y:O,z:d}]),I=w([{x:s,y:O,z:0},{x:m,y:O,z:0},{x:m,y:A,z:0},{x:s,y:A,z:0}]),_=w([{x:s,y:A,z:d},{x:m,y:A,z:d},{x:m,y:O,z:d},{x:s,y:O,z:d}]),V=!1,X=!1,H=!1,Q=!1;[].concat(i.xAxis,i.yAxis,i.zAxis).forEach(function(ot){ot&&(ot.horiz?ot.opposite?X=!0:V=!0:ot.opposite?Q=!0:H=!0)});var et=function(ot,ht,ut){for(var vt=["size","color","visible"],wt={},xt=0;xt<vt.length;xt++)for(var Ct=vt[xt],St=0;St<ot.length;St++)if(typeof ot[St]=="object"){var Mt=ot[St][Ct];if(Mt!=null){wt[Ct]=Mt;break}}var Tt=ut;return wt.visible===!0||wt.visible===!1?Tt=wt.visible:wt.visible==="auto"&&(Tt=ht>0),{size:u(wt.size,1),color:u(wt.color,"none"),frontFacing:ht>0,visible:Tt}},tt={axes:{},bottom:et([a.bottom,a.top,a],k,V),top:et([a.top,a.bottom,a],z,X),left:et([a.left,a.right,a.side,a],F,H),right:et([a.right,a.left,a.side,a],j,Q),back:et([a.back,a.front,a],_,!0),front:et([a.front,a.back,a],I,!1)};if(c.axisLabelPosition==="auto"){var st=function(ot,ht){return ot.visible!==ht.visible||ot.visible&&ht.visible&&ot.frontFacing!==ht.frontFacing},ct=[];st(tt.left,tt.front)&&ct.push({y:(A+O)/2,x:s,z:0,xDir:{x:1,y:0,z:0}}),st(tt.left,tt.back)&&ct.push({y:(A+O)/2,x:s,z:d,xDir:{x:0,y:0,z:-1}}),st(tt.right,tt.front)&&ct.push({y:(A+O)/2,x:m,z:0,xDir:{x:0,y:0,z:1}}),st(tt.right,tt.back)&&ct.push({y:(A+O)/2,x:m,z:d,xDir:{x:-1,y:0,z:0}});var gt=[];st(tt.bottom,tt.front)&&gt.push({x:(s+m)/2,y:O,z:0,xDir:{x:1,y:0,z:0}}),st(tt.bottom,tt.back)&&gt.push({x:(s+m)/2,y:O,z:d,xDir:{x:-1,y:0,z:0}});var mt=[];st(tt.top,tt.front)&&mt.push({x:(s+m)/2,y:A,z:0,xDir:{x:1,y:0,z:0}}),st(tt.top,tt.back)&&mt.push({x:(s+m)/2,y:A,z:d,xDir:{x:-1,y:0,z:0}});var bt=[];st(tt.bottom,tt.left)&&bt.push({z:(0+d)/2,y:O,x:s,xDir:{x:0,y:0,z:-1}}),st(tt.bottom,tt.right)&&bt.push({z:(0+d)/2,y:O,x:m,xDir:{x:0,y:0,z:1}});var yt=[];st(tt.top,tt.left)&&yt.push({z:(0+d)/2,y:A,x:s,xDir:{x:0,y:0,z:-1}}),st(tt.top,tt.right)&&yt.push({z:(0+d)/2,y:A,x:m,xDir:{x:0,y:0,z:1}});var dt=function(ot,ht,ut){if(ot.length===0)return null;if(ot.length===1)return ot[0];for(var vt=G(ot,i,!1),wt=0,xt=1;xt<vt.length;xt++)(ut*vt[xt][ht]>ut*vt[wt][ht]||ut*vt[xt][ht]==ut*vt[wt][ht]&&vt[xt].z<vt[wt].z)&&(wt=xt);return ot[wt]};tt.axes={y:{left:dt(ct,"x",-1),right:dt(ct,"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 tt.axes={y:{left:{x:s,z:0,xDir:{x:1,y:0,z:0}},right:{x:m,z:0,xDir:{x:0,y:0,z:1}}},x:{top:{y:A,z:0,xDir:{x:1,y:0,z:0}},bottom:{y:O,z:0,xDir:{x:1,y:0,z:0}}},z:{top:{x:H?m:s,y:A,xDir:H?{x:0,y:0,z:1}:{x:0,y:0,z:-1}},bottom:{x:H?m:s,y:O,xDir:H?{x:0,y:0,z:1}:{x:0,y:0,z:-1}}}};return tt},o.prototype.getScale=function(i){var c,a=this.chart,s=a.plotLeft,m=a.plotWidth+s,A=a.plotTop,O=a.plotHeight+A,d=s+a.plotWidth/2,w=A+a.plotHeight/2,k={minX:Number.MAX_VALUE,maxX:-Number.MAX_VALUE,minY:Number.MAX_VALUE,maxY:-Number.MAX_VALUE},z=1;return c=[{x:s,y:A,z:0},{x:s,y:A,z:i}],[0,1].forEach(function(F){c.push({x:m,y:c[F].y,z:c[F].z})}),[0,1,2,3].forEach(function(F){c.push({x:c[F].x,y:O,z:c[F].z})}),(c=G(c,a,!1)).forEach(function(F){k.minX=Math.min(k.minX,F.x),k.maxX=Math.max(k.maxX,F.x),k.minY=Math.min(k.minY,F.y),k.maxY=Math.max(k.maxY,F.y)}),s>k.minX&&(z=Math.min(z,1-Math.abs((s+d)/(k.minX+d))%1)),m<k.maxX&&(z=Math.min(z,(m-d)/(k.maxX-d))),A>k.minY&&(z=k.minY<0?Math.min(z,(A+w)/(-k.minY+A+w)):Math.min(z,1-(A+w)/(k.minY+w)%1)),O<k.maxY&&(z=Math.min(z,Math.abs((O-w)/(k.maxY-w)))),z},o}();function y(o){this.is3d()&&o.options.type==="scatter"&&(o.options.type="scatter3d")}function C(){if(this.chart3d&&this.is3d()){var o=this,i=o.renderer,c=o.options.chart.options3d,a=o.chart3d.get3dFrame(),s=o.plotLeft,m=o.plotLeft+o.plotWidth,A=o.plotTop,O=o.plotTop+o.plotHeight,d=c.depth,w=s-(a.left.visible?a.left.size:0),k=m+(a.right.visible?a.right.size:0),z=A-(a.top.visible?a.top.size:0),F=O+(a.bottom.visible?a.bottom.size:0),j=0-(a.front.visible?a.front.size:0),I=d+(a.back.visible?a.back.size:0),_=o.hasRendered?"animate":"attr";o.chart3d.frame3d=a,o.frameShapes||(o.frameShapes={bottom:i.polyhedron().add(),top:i.polyhedron().add(),left:i.polyhedron().add(),right:i.polyhedron().add(),back:i.polyhedron().add(),front:i.polyhedron().add()}),o.frameShapes.bottom[_]({class:"highcharts-3d-frame highcharts-3d-frame-bottom",zIndex:a.bottom.frontFacing?-1e3:1e3,faces:[{fill:q(a.bottom.color).brighten(.1).get(),vertexes:[{x:w,y:F,z:j},{x:k,y:F,z:j},{x:k,y:F,z:I},{x:w,y:F,z:I}],enabled:a.bottom.visible},{fill:q(a.bottom.color).brighten(.1).get(),vertexes:[{x:s,y:O,z:d},{x:m,y:O,z:d},{x:m,y:O,z:0},{x:s,y:O,z:0}],enabled:a.bottom.visible},{fill:q(a.bottom.color).brighten(-.1).get(),vertexes:[{x:w,y:F,z:j},{x:w,y:F,z:I},{x:s,y:O,z:d},{x:s,y:O,z:0}],enabled:a.bottom.visible&&!a.left.visible},{fill:q(a.bottom.color).brighten(-.1).get(),vertexes:[{x:k,y:F,z:I},{x:k,y:F,z:j},{x:m,y:O,z:0},{x:m,y:O,z:d}],enabled:a.bottom.visible&&!a.right.visible},{fill:q(a.bottom.color).get(),vertexes:[{x:k,y:F,z:j},{x:w,y:F,z:j},{x:s,y:O,z:0},{x:m,y:O,z:0}],enabled:a.bottom.visible&&!a.front.visible},{fill:q(a.bottom.color).get(),vertexes:[{x:w,y:F,z:I},{x:k,y:F,z:I},{x:m,y:O,z:d},{x:s,y:O,z:d}],enabled:a.bottom.visible&&!a.back.visible}]}),o.frameShapes.top[_]({class:"highcharts-3d-frame highcharts-3d-frame-top",zIndex:a.top.frontFacing?-1e3:1e3,faces:[{fill:q(a.top.color).brighten(.1).get(),vertexes:[{x:w,y:z,z:I},{x:k,y:z,z:I},{x:k,y:z,z:j},{x:w,y:z,z:j}],enabled:a.top.visible},{fill:q(a.top.color).brighten(.1).get(),vertexes:[{x:s,y:A,z:0},{x:m,y:A,z:0},{x:m,y:A,z:d},{x:s,y:A,z:d}],enabled:a.top.visible},{fill:q(a.top.color).brighten(-.1).get(),vertexes:[{x:w,y:z,z:I},{x:w,y:z,z:j},{x:s,y:A,z:0},{x:s,y:A,z:d}],enabled:a.top.visible&&!a.left.visible},{fill:q(a.top.color).brighten(-.1).get(),vertexes:[{x:k,y:z,z:j},{x:k,y:z,z:I},{x:m,y:A,z:d},{x:m,y:A,z:0}],enabled:a.top.visible&&!a.right.visible},{fill:q(a.top.color).get(),vertexes:[{x:w,y:z,z:j},{x:k,y:z,z:j},{x:m,y:A,z:0},{x:s,y:A,z:0}],enabled:a.top.visible&&!a.front.visible},{fill:q(a.top.color).get(),vertexes:[{x:k,y:z,z:I},{x:w,y:z,z:I},{x:s,y:A,z:d},{x:m,y:A,z:d}],enabled:a.top.visible&&!a.back.visible}]}),o.frameShapes.left[_]({class:"highcharts-3d-frame highcharts-3d-frame-left",zIndex:a.left.frontFacing?-1e3:1e3,faces:[{fill:q(a.left.color).brighten(.1).get(),vertexes:[{x:w,y:F,z:j},{x:s,y:O,z:0},{x:s,y:O,z:d},{x:w,y:F,z:I}],enabled:a.left.visible&&!a.bottom.visible},{fill:q(a.left.color).brighten(.1).get(),vertexes:[{x:w,y:z,z:I},{x:s,y:A,z:d},{x:s,y:A,z:0},{x:w,y:z,z:j}],enabled:a.left.visible&&!a.top.visible},{fill:q(a.left.color).brighten(-.1).get(),vertexes:[{x:w,y:F,z:I},{x:w,y:z,z:I},{x:w,y:z,z:j},{x:w,y:F,z:j}],enabled:a.left.visible},{fill:q(a.left.color).brighten(-.1).get(),vertexes:[{x:s,y:A,z:d},{x:s,y:O,z:d},{x:s,y:O,z:0},{x:s,y:A,z:0}],enabled:a.left.visible},{fill:q(a.left.color).get(),vertexes:[{x:w,y:F,z:j},{x:w,y:z,z:j},{x:s,y:A,z:0},{x:s,y:O,z:0}],enabled:a.left.visible&&!a.front.visible},{fill:q(a.left.color).get(),vertexes:[{x:w,y:z,z:I},{x:w,y:F,z:I},{x:s,y:O,z:d},{x:s,y:A,z:d}],enabled:a.left.visible&&!a.back.visible}]}),o.frameShapes.right[_]({class:"highcharts-3d-frame highcharts-3d-frame-right",zIndex:a.right.frontFacing?-1e3:1e3,faces:[{fill:q(a.right.color).brighten(.1).get(),vertexes:[{x:k,y:F,z:I},{x:m,y:O,z:d},{x:m,y:O,z:0},{x:k,y:F,z:j}],enabled:a.right.visible&&!a.bottom.visible},{fill:q(a.right.color).brighten(.1).get(),vertexes:[{x:k,y:z,z:j},{x:m,y:A,z:0},{x:m,y:A,z:d},{x:k,y:z,z:I}],enabled:a.right.visible&&!a.top.visible},{fill:q(a.right.color).brighten(-.1).get(),vertexes:[{x:m,y:A,z:0},{x:m,y:O,z:0},{x:m,y:O,z:d},{x:m,y:A,z:d}],enabled:a.right.visible},{fill:q(a.right.color).brighten(-.1).get(),vertexes:[{x:k,y:F,z:j},{x:k,y:z,z:j},{x:k,y:z,z:I},{x:k,y:F,z:I}],enabled:a.right.visible},{fill:q(a.right.color).get(),vertexes:[{x:k,y:z,z:j},{x:k,y:F,z:j},{x:m,y:O,z:0},{x:m,y:A,z:0}],enabled:a.right.visible&&!a.front.visible},{fill:q(a.right.color).get(),vertexes:[{x:k,y:F,z:I},{x:k,y:z,z:I},{x:m,y:A,z:d},{x:m,y:O,z:d}],enabled:a.right.visible&&!a.back.visible}]}),o.frameShapes.back[_]({class:"highcharts-3d-frame highcharts-3d-frame-back",zIndex:a.back.frontFacing?-1e3:1e3,faces:[{fill:q(a.back.color).brighten(.1).get(),vertexes:[{x:k,y:F,z:I},{x:w,y:F,z:I},{x:s,y:O,z:d},{x:m,y:O,z:d}],enabled:a.back.visible&&!a.bottom.visible},{fill:q(a.back.color).brighten(.1).get(),vertexes:[{x:w,y:z,z:I},{x:k,y:z,z:I},{x:m,y:A,z:d},{x:s,y:A,z:d}],enabled:a.back.visible&&!a.top.visible},{fill:q(a.back.color).brighten(-.1).get(),vertexes:[{x:w,y:F,z:I},{x:w,y:z,z:I},{x:s,y:A,z:d},{x:s,y:O,z:d}],enabled:a.back.visible&&!a.left.visible},{fill:q(a.back.color).brighten(-.1).get(),vertexes:[{x:k,y:z,z:I},{x:k,y:F,z:I},{x:m,y:O,z:d},{x:m,y:A,z:d}],enabled:a.back.visible&&!a.right.visible},{fill:q(a.back.color).get(),vertexes:[{x:s,y:A,z:d},{x:m,y:A,z:d},{x:m,y:O,z:d},{x:s,y:O,z:d}],enabled:a.back.visible},{fill:q(a.back.color).get(),vertexes:[{x:w,y:F,z:I},{x:k,y:F,z:I},{x:k,y:z,z:I},{x:w,y:z,z:I}],enabled:a.back.visible}]}),o.frameShapes.front[_]({class:"highcharts-3d-frame highcharts-3d-frame-front",zIndex:a.front.frontFacing?-1e3:1e3,faces:[{fill:q(a.front.color).brighten(.1).get(),vertexes:[{x:w,y:F,z:j},{x:k,y:F,z:j},{x:m,y:O,z:0},{x:s,y:O,z:0}],enabled:a.front.visible&&!a.bottom.visible},{fill:q(a.front.color).brighten(.1).get(),vertexes:[{x:k,y:z,z:j},{x:w,y:z,z:j},{x:s,y:A,z:0},{x:m,y:A,z:0}],enabled:a.front.visible&&!a.top.visible},{fill:q(a.front.color).brighten(-.1).get(),vertexes:[{x:w,y:z,z:j},{x:w,y:F,z:j},{x:s,y:O,z:0},{x:s,y:A,z:0}],enabled:a.front.visible&&!a.left.visible},{fill:q(a.front.color).brighten(-.1).get(),vertexes:[{x:k,y:F,z:j},{x:k,y:z,z:j},{x:m,y:A,z:0},{x:m,y:O,z:0}],enabled:a.front.visible&&!a.right.visible},{fill:q(a.front.color).get(),vertexes:[{x:m,y:A,z:0},{x:s,y:A,z:0},{x:s,y:O,z:0},{x:m,y:O,z:0}],enabled:a.front.visible},{fill:q(a.front.color).get(),vertexes:[{x:k,y:F,z:j},{x:w,y:F,z:j},{x:w,y:z,z:j},{x:k,y:z,z:j}],enabled:a.front.visible}]})}}function P(){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 L(){var o=this.options;this.is3d()&&(o.series||[]).forEach(function(i){(i.type||o.chart.type||o.chart.defaultSeriesType)==="scatter"&&(i.type="scatter3d")})}function M(){var o=this,i=o.options.chart.options3d;if(o.chart3d&&o.is3d()){i&&(i.alpha=i.alpha%360+(i.alpha>=0?0:360),i.beta=i.beta%360+(i.beta>=0?0:360));var c=o.inverted,a=o.clipBox,s=o.margin,m=c?"x":"y",A=c?"height":"width",O=c?"width":"height";a[c?"y":"x"]=-(s[3]||0),a[m]=-(s[0]||0),a[A]=o.chartWidth+(s[3]||0)+(s[1]||0),a[O]=o.chartHeight+(s[0]||0)+(s[2]||0),o.scale3d=1,i.fitToPlot===!0&&(o.scale3d=o.chart3d.getScale(i.depth)),o.chart3d.frame3d=o.chart3d.get3dFrame()}}function f(){this.is3d()&&(this.isDirtyBox=!0)}function b(){this.chart3d&&this.is3d()&&(this.chart3d.frame3d=this.chart3d.get3dFrame())}function l(){this.chart3d||(this.chart3d=new v(this))}function h(o){return this.is3d()||o.apply(this,[].slice.call(arguments,1))}function e(o){var i,c=this.series.length;if(this.is3d())for(;c--;)(i=this.series[c]).translate(),i.render();else o.call(this)}function r(o){o.apply(this,[].slice.call(arguments,1)),this.is3d()&&(this.container.className+=" highcharts-3d-chart")}g.Composition=v,g.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:{}}}}},g.compose=function(o,i){var c=o.prototype,a=i.prototype;c.is3d=function(){return!!(this.options.chart.options3d&&this.options.chart.options3d.enabled)},c.propsRequireDirtyBox.push("chart.options3d"),c.propsRequireUpdateSeries.push("chart.options3d"),a.matrixSetter=function(){var s;if(this.pos<1&&(x(this.start)||x(this.end))){var m=this.start||[1,0,0,1,0,0],A=this.end||[1,0,0,1,0,0];s=[];for(var O=0;O<6;O++)s.push(this.pos*A[O]+(1-this.pos)*m[O])}else s=this.end;this.elem.attr(this.prop,s,null,!0)},T(!0,$,g.defaultOptions),E(o,"init",l),E(o,"addSeries",y),E(o,"afterDrawChartBox",C),E(o,"afterGetContainer",P),E(o,"afterInit",L),E(o,"afterSetChartSize",M),E(o,"beforeRedraw",f),E(o,"beforeRender",b),p(c,"isInsidePlot",h),p(c,"renderSeries",e),p(c,"setClassName",r)}}(Z||(Z={})),Z}),rt(N,"Core/Axis/ZAxis.js",[N["Core/Axis/Axis.js"],N["Core/Utilities.js"]],function(W,R){var U,Y=this&&this.__extends||(U=function(u,p){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,v){g.__proto__=v}||function(g,v){for(var y in v)v.hasOwnProperty(y)&&(g[y]=v[y])},U(u,p)},function(u,p){function g(){this.constructor=u}U(u,p),u.prototype=p===null?Object.create(p):(g.prototype=p.prototype,new g)}),Z=R.addEvent,q=R.merge,$=R.pick,G=R.splat,D=[];function E(u){return new T(this,u)}function x(){var u=this,p=this.options.zAxis=G(this.options.zAxis||{});this.is3d()&&(this.zAxis=[],p.forEach(function(g,v){g.index=v,g.isX=!0,u.addZAxis(g).setScale()}))}var T=function(u){function p(g,v){var y=u.call(this,g,v)||this;return y.isZAxis=!0,y}return Y(p,u),p.compose=function(g){if(D.indexOf(g)===-1){D.push(g),Z(g,"afterGetAxes",x);var v=g.prototype;v.addZAxis=E,v.collectionsWithInit.zAxis=[v.addZAxis],v.collectionsWithUpdate.push("zAxis")}},p.prototype.getSeriesExtremes=function(){var g=this,v=this.chart;this.hasVisibleSeries=!1,this.dataMin=this.dataMax=this.ignoreMinPadding=this.ignoreMaxPadding=void 0,this.stacking&&this.stacking.buildStacks(),this.series.forEach(function(y){if(y.visible||!v.options.chart.ignoreHiddenSeries){g.hasVisibleSeries=!0;var C=y.zData;C.length&&(g.dataMin=Math.min($(g.dataMin,C[0]),Math.min.apply(null,C)),g.dataMax=Math.max($(g.dataMax,C[0]),Math.max.apply(null,C)))}})},p.prototype.setAxisSize=function(){var g=this.chart;u.prototype.setAxisSize.call(this),this.width=this.len=g.options.chart.options3d&&g.options.chart.options3d.depth||0,this.right=g.chartWidth-this.width-this.left},p.prototype.setOptions=function(g){g=q({offset:0,lineWidth:0},g),this.isZAxis=!0,u.prototype.setOptions.call(this,g),this.coll="zAxis"},p}(W);return T}),rt(N,"Core/Axis/Axis3DDefaults.js",[],function(){return{labels:{position3d:"offset",skew3d:!1},title:{position3d:null,skew3d:null}}}),rt(N,"Core/Axis/Tick3DComposition.js",[N["Core/Utilities.js"]],function(W){var R=W.addEvent,U=W.extend,Y=W.wrap,Z=[];function q(G){var D=this.axis.axis3D;D&&U(G.pos,D.fix3dPosition(G.pos))}function $(G){var D=this.axis.axis3D,E=G.apply(this,[].slice.call(arguments,1));if(D){var x=E[0],T=E[1];if(x[0]==="M"&&T[0]==="L"){var u=[D.fix3dPosition({x:x[1],y:x[2],z:0}),D.fix3dPosition({x:T[1],y:T[2],z:0})];return this.axis.chart.renderer.toLineSegments(u)}}return E}return{compose:function(G){Z.indexOf(G)===-1&&(Z.push(G),R(G,"afterGetLabelPosition",q),Y(G.prototype,"getMarkPath",$))}}}),rt(N,"Core/Axis/Axis3DComposition.js",[N["Core/Axis/Axis3DDefaults.js"],N["Core/Globals.js"],N["Core/Math3D.js"],N["Core/Axis/Tick3DComposition.js"],N["Core/Utilities.js"]],function(W,R,U,Y,Z){var q=R.deg2rad,$=U.perspective,G=U.perspective3D,D=U.shapeArea,E=Z.addEvent,x=Z.merge,T=Z.pick,u=Z.wrap,p=[];function g(){var l=this,h=l.chart,e=l.options;h.is3d&&h.is3d()&&l.coll!=="colorAxis"&&(e.tickWidth=T(e.tickWidth,0),e.gridLineWidth=T(e.gridLineWidth,1))}function v(l){var h=this;h.chart.is3d()&&h.coll!=="colorAxis"&&l.point&&(l.point.crosshairPos=h.isXAxis?l.point.axisXpos:h.len-l.point.axisYpos)}function y(){var l=this;l.axis3D||(l.axis3D=new b(l))}function C(l){var h=this;return h.chart.is3d()&&h.coll!=="colorAxis"?[]:l.apply(h,[].slice.call(arguments,1))}function P(l){if(!this.chart.is3d()||this.coll==="colorAxis")return l.apply(this,[].slice.call(arguments,1));var h=arguments,e=h[1],r=h[2],o=[],i=this.getPlotLinePath({value:e}),c=this.getPlotLinePath({value:r});if(i&&c)for(var a=0;a<i.length;a+=2){var s=i[a],m=i[a+1],A=c[a],O=c[a+1];s[0]==="M"&&m[0]==="L"&&A[0]==="M"&&O[0]==="L"&&o.push(s,m,O,["L",A[1],A[2]],["Z"])}return o}function L(l){var h=this,e=h.axis3D,r=h.chart,o=l.apply(h,[].slice.call(arguments,1));if(h.coll==="colorAxis"||!r.chart3d||!r.is3d()||o===null)return o;var i,c=r.options.chart.options3d,a=h.isZAxis?r.plotWidth:c.depth,s=r.chart3d.frame3d,m=o[0],A=o[1],O=[];return m[0]==="M"&&A[0]==="L"&&(i=[e.swapZ({x:m[1],y:m[2],z:0}),e.swapZ({x:m[1],y:m[2],z:a}),e.swapZ({x:A[1],y:A[2],z:0}),e.swapZ({x:A[1],y:A[2],z:a})],this.horiz?this.isZAxis?(s.left.visible&&O.push(i[0],i[2]),s.right.visible&&O.push(i[1],i[3]),s.top.visible&&O.push(i[0],i[1]),s.bottom.visible&&O.push(i[2],i[3])):(s.front.visible&&O.push(i[0],i[2]),s.back.visible&&O.push(i[1],i[3]),s.top.visible&&O.push(i[0],i[1]),s.bottom.visible&&O.push(i[2],i[3])):(s.front.visible&&O.push(i[0],i[2]),s.back.visible&&O.push(i[1],i[3]),s.left.visible&&O.push(i[0],i[1]),s.right.visible&&O.push(i[2],i[3])),O=$(O,this.chart,!1)),r.renderer.toLineSegments(O)}function M(l,h){var e=this,r=e.chart,o=e.ticks,i=e.gridGroup;if(e.categories&&r.frameShapes&&r.is3d()&&i&&h&&h.label){var c=i.element.childNodes[0].getBBox(),a=r.frameShapes.left.getBBox(),s=r.options.chart.options3d,m={x:r.plotWidth/2,y:r.plotHeight/2,z:s.depth/2,vd:T(s.depth,1)*T(s.viewDistance,0)},A=h.pos,O=o[A-1],d=o[A+1],w=void 0,k=void 0,z=void 0;return A!==0&&O&&O.label&&O.label.xy&&(k=G({x:O.label.xy.x,y:O.label.xy.y,z:null},m,m.vd)),d&&d.label&&d.label.xy&&(z=G({x:d.label.xy.x,y:d.label.xy.y,z:null},m,m.vd)),w={x:h.label.xy.x,y:h.label.xy.y,z:null},w=G(w,m,m.vd),Math.abs(k?w.x-k.x:z?z.x-w.x:c.x-a.x)}return l.apply(e,[].slice.call(arguments,1))}function f(l){var h=l.apply(this,[].slice.call(arguments,1));return this.axis3D?this.axis3D.fix3dPosition(h,!0):h}var b=function(){function l(h){this.axis=h}return l.compose=function(h,e){if(Y.compose(e),p.indexOf(h)===-1){p.push(h),x(!0,h.defaultOptions,W),h.keepProps.push("axis3D"),E(h,"init",y),E(h,"afterSetOptions",g),E(h,"drawCrosshair",v);var r=h.prototype;u(r,"getLinePath",C),u(r,"getPlotBandPath",P),u(r,"getPlotLinePath",L),u(r,"getSlotWidth",M),u(r,"getTitlePosition",f)}},l.prototype.fix3dPosition=function(h,e){var r=this.axis,o=r.chart;if(r.coll==="colorAxis"||!o.chart3d||!o.is3d())return h;var i,c=q*o.options.chart.options3d.alpha,a=q*o.options.chart.options3d.beta,s=T(e&&r.options.title.position3d,r.options.labels.position3d),m=T(e&&r.options.title.skew3d,r.options.labels.skew3d),A=o.chart3d.frame3d,O=o.plotLeft,d=o.plotWidth+O,w=o.plotTop,k=o.plotHeight+w,z=0,F=0,j={x:0,y:1,z:0},I=!1;if(h=r.axis3D.swapZ({x:h.x,y:h.y,z:0}),r.isZAxis)if(r.opposite){if(A.axes.z.top===null)return{};F=h.y-w,h.x=A.axes.z.top.x,h.y=A.axes.z.top.y,i=A.axes.z.top.xDir,I=!A.top.frontFacing}else{if(A.axes.z.bottom===null)return{};F=h.y-k,h.x=A.axes.z.bottom.x,h.y=A.axes.z.bottom.y,i=A.axes.z.bottom.xDir,I=!A.bottom.frontFacing}else if(r.horiz)if(r.opposite){if(A.axes.x.top===null)return{};F=h.y-w,h.y=A.axes.x.top.y,h.z=A.axes.x.top.z,i=A.axes.x.top.xDir,I=!A.top.frontFacing}else{if(A.axes.x.bottom===null)return{};F=h.y-k,h.y=A.axes.x.bottom.y,h.z=A.axes.x.bottom.z,i=A.axes.x.bottom.xDir,I=!A.bottom.frontFacing}else if(r.opposite){if(A.axes.y.right===null)return{};z=h.x-d,h.x=A.axes.y.right.x,h.z=A.axes.y.right.z,i={x:(i=A.axes.y.right.xDir).z,y:i.y,z:-i.x}}else{if(A.axes.y.left===null)return{};z=h.x-O,h.x=A.axes.y.left.x,h.z=A.axes.y.left.z,i=A.axes.y.left.xDir}if(s!=="chart")if(s==="flap")if(r.horiz){var _=Math.sin(c),V=Math.cos(c);r.opposite&&(_=-_),I&&(_=-_),j={x:i.z*_,y:V,z:-i.x*_}}else i={x:Math.cos(a),y:0,z:Math.sin(a)};else if(s==="ortho")if(r.horiz){var X=Math.sin(c),H=Math.cos(c),Q={x:Math.sin(a)*H,y:-X,z:-H*Math.cos(a)};j={x:i.y*Q.z-i.z*Q.y,y:i.z*Q.x-i.x*Q.z,z:i.x*Q.y-i.y*Q.x};var et=1/Math.sqrt(j.x*j.x+j.y*j.y+j.z*j.z);I&&(et=-et),j={x:et*j.x,y:et*j.y,z:et*j.z}}else i={x:Math.cos(a),y:0,z:Math.sin(a)};else r.horiz?j={x:Math.sin(a)*Math.sin(c),y:Math.cos(c),z:-Math.cos(a)*Math.sin(c)}:i={x:Math.cos(a),y:0,z:Math.sin(a)};h.x+=z*i.x+F*j.x,h.y+=z*i.y+F*j.y,h.z+=z*i.z+F*j.z;var tt=$([h],r.chart)[0];if(m){D($([h,{x:h.x+i.x,y:h.y+i.y,z:h.z+i.z},{x:h.x+j.x,y:h.y+j.y,z:h.z+j.z}],r.chart))<0&&(i={x:-i.x,y:-i.y,z:-i.z});var st=$([{x:h.x,y:h.y,z:h.z},{x:h.x+i.x,y:h.y+i.y,z:h.z+i.z},{x:h.x+j.x,y:h.y+j.y,z:h.z+j.z}],r.chart);tt.matrix=[st[1].x-st[0].x,st[1].y-st[0].y,st[2].x-st[0].x,st[2].y-st[0].y,tt.x,tt.y],tt.matrix[4]-=tt.x*tt.matrix[0]+tt.y*tt.matrix[2],tt.matrix[5]-=tt.x*tt.matrix[1]+tt.y*tt.matrix[3]}return tt},l.prototype.swapZ=function(h,e){var r=this.axis;if(r.isZAxis){var o=e?0:r.chart.plotLeft;return{x:o+h.z,y:h.y,z:h.x-o}}return h},l}();return b}),rt(N,"Core/Series/Series3D.js",[N["Core/Math3D.js"],N["Core/Series/Series.js"],N["Core/Utilities.js"]],function(W,R,U){var Y,Z=this&&this.__extends||(Y=function(u,p){return Y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,v){g.__proto__=v}||function(g,v){for(var y in v)v.hasOwnProperty(y)&&(g[y]=v[y])},Y(u,p)},function(u,p){function g(){this.constructor=u}Y(u,p),u.prototype=p===null?Object.create(p):(g.prototype=p.prototype,new g)}),q=W.perspective,$=U.addEvent,G=U.extend,D=U.merge,E=U.pick,x=U.isNumber,T=function(u){function p(){return u!==null&&u.apply(this,arguments)||this}return Z(p,u),p.prototype.translate=function(){u.prototype.translate.apply(this,arguments),this.chart.is3d()&&this.translate3dPoints()},p.prototype.translate3dPoints=function(){var g,v,y,C,P,L=this,M=L.options,f=L.chart,b=E(L.zAxis,f.options.zAxis[0]),l=[],h=[],e=M.stacking?x(M.stack)?M.stack:0:L.index||0;for(L.zPadding=e*(M.depth||0+(M.groupZPadding||1)),P=0;P<L.data.length;P++)g=L.data[P],b&&b.translate?(C=b.logarithmic&&b.val2lin?b.val2lin(g.z):g.z,g.plotZ=b.translate(C),g.isInside=!!g.isInside&&C>=b.min&&C<=b.max):g.plotZ=L.zPadding,g.axisXpos=g.plotX,g.axisYpos=g.plotY,g.axisZpos=g.plotZ,l.push({x:g.plotX,y:g.plotY,z:g.plotZ}),h.push(g.plotX||0);for(L.rawPointsX=h,v=q(l,f,!0),P=0;P<L.data.length;P++)g=L.data[P],y=v[P],g.plotX=y.x,g.plotY=y.y,g.plotZ=y.z},p.defaultOptions=D(R.defaultOptions),p}(R);return $(R,"afterTranslate",function(){this.chart.is3d()&&this.translate3dPoints()}),G(R.prototype,{translate3dPoints:T.prototype.translate3dPoints}),T}),rt(N,"Series/Area3D/Area3DSeries.js",[N["Core/Math3D.js"],N["Core/Series/SeriesRegistry.js"],N["Core/Utilities.js"]],function(W,R,U){var Y=W.perspective,Z=R.seriesTypes.line.prototype,q=U.wrap,$=[];function G(D){var E=this,x=D.apply(E,[].slice.call(arguments,1));if(!E.chart.is3d())return x;var T=Z.getGraphPath,u=E.options,p=Math.round(E.yAxis.getThreshold(u.threshold)),g=[];if(E.rawPointsX)for(var v=0;v<E.points.length;v++)g.push({x:E.rawPointsX[v],y:u.stacking?E.points[v].yBottom:p,z:E.zPadding});var y=E.chart.options.chart.options3d;g=Y(g,E.chart,!0).map(function(L){return{plotX:L.x,plotY:L.y,plotZ:L.z}}),E.group&&y&&y.depth&&y.beta&&(E.markerGroup&&(E.markerGroup.add(E.group),E.markerGroup.attr({translateX:0,translateY:0})),E.group.attr({zIndex:Math.max(1,y.beta>270||y.beta<90?y.depth-Math.round(E.zPadding||0):Math.round(E.zPadding||0))})),g.reversed=!0;var C=T.call(E,g,!0,!0);if(C[0]&&C[0][0]==="M"&&(C[0]=["L",C[0][1],C[0][2]]),E.areaPath){var P=E.areaPath.splice(0,E.areaPath.length/2).concat(C);P.xMap=E.areaPath.xMap,E.areaPath=P}return x}return{compose:function(D){$.indexOf(D)===-1&&($.push(D),q(D.prototype,"getGraphPath",G))}}}),rt(N,"Series/Column3D/Column3DComposition.js",[N["Series/Column/ColumnSeries.js"],N["Core/Globals.js"],N["Core/Series/Series.js"],N["Core/Math3D.js"],N["Core/Series/SeriesRegistry.js"],N["Core/Axis/Stacking/StackItem.js"],N["Core/Utilities.js"]],function(W,R,U,Y,Z,q,$){var G=W.prototype,D=R.svg,E=Y.perspective,x=$.addEvent,T=$.pick,u=$.wrap;function p(C){var P=C.apply(this,[].slice.call(arguments,1));return this.chart.is3d&&this.chart.is3d()&&(P.stroke=this.options.edgeColor||P.fill,P["stroke-width"]=T(this.options.edgeWidth,1)),P}function g(C,P,L){var M=this.chart.is3d&&this.chart.is3d();M&&(this.options.inactiveOtherPoints=!0),C.call(this,P,L),M&&(this.options.inactiveOtherPoints=!1)}function v(C){for(var P=[],L=1;L<arguments.length;L++)P[L-1]=arguments[L];return this.series.chart.is3d()?this.graphic&&this.graphic.element.nodeName!=="g":C.apply(this,P)}if(u(G,"translate",function(C){C.apply(this,[].slice.call(arguments,1)),this.chart.is3d()&&this.translate3dShapes()}),u(U.prototype,"justifyDataLabel",function(C){return!arguments[2].outside3dPlot&&C.apply(this,[].slice.call(arguments,1))}),G.translate3dPoints=function(){},G.translate3dShapes=function(){var C,P=this,L=P.chart,M=P.options,f=M.depth,b=(M.stacking?M.stack||0:P.index)*(f+(M.groupZPadding||1)),l=P.borderWidth%2?.5:0;L.inverted&&!P.yAxis.reversed&&(l*=-1),M.grouping!==!1&&(b=0),b+=M.groupZPadding||1,P.data.forEach(function(h){if(h.outside3dPlot=null,h.y!==null){var e,r=h.shapeArgs,o=h.tooltipPos;[["x","width"],["y","height"]].forEach(function(i){if((e=r[i[0]]-l)<0&&(r[i[1]]+=r[i[0]]+l,r[i[0]]=-l,e=0),e+r[i[1]]>P[i[0]+"Axis"].len&&r[i[1]]!==0&&(r[i[1]]=P[i[0]+"Axis"].len-r[i[0]]),r[i[1]]!==0&&(r[i[0]]>=P[i[0]+"Axis"].len||r[i[0]]+r[i[1]]<=l)){for(var c in r)r[c]=c==="y"?-9999:0;h.outside3dPlot=!0}}),h.shapeType==="rect"&&(h.shapeType="cuboid"),r.z=b,r.depth=f,r.insidePlotArea=!0,C={x:r.x+r.width/2,y:r.y,z:b+f/2},L.inverted&&(C.x=r.height,C.y=h.clientX),h.plot3d=E([C],L,!0,!1)[0],o=E([{x:o[0],y:o[1],z:b+f/2}],L,!0,!1)[0],h.tooltipPos=[o.x,o.y]}}),P.z=b},u(G,"animate",function(C){if(this.chart.is3d()){var P=arguments,L=P[1],M=this.yAxis,f=this,b=this.yAxis.reversed;D&&(L?f.data.forEach(function(l){l.y!==null&&(l.height=l.shapeArgs.height,l.shapey=l.shapeArgs.y,l.shapeArgs.height=1,b||(l.stackY?l.shapeArgs.y=l.plotY+M.translate(l.stackY):l.shapeArgs.y=l.plotY+(l.negative?-l.height:l.height)))}):(f.data.forEach(function(l){l.y!==null&&(l.shapeArgs.height=l.height,l.shapeArgs.y=l.shapey,l.graphic&&l.graphic[l.outside3dPlot?"attr":"animate"](l.shapeArgs,f.options.animation))}),this.drawDataLabels()))}else C.apply(this,[].slice.call(arguments,1))}),u(G,"plotGroup",function(C,P,L,M,f,b){return P!=="dataLabelsGroup"&&P!=="markerGroup"&&this.chart.is3d()&&(this[P]&&delete this[P],b&&(this.chart.columnGroup||(this.chart.columnGroup=this.chart.renderer.g("columnGroup").add(b)),this[P]=this.chart.columnGroup,this.chart.columnGroup.attr(this.getPlotBox()),this[P].survive=!0,P==="group"&&(arguments[3]="visible"))),C.apply(this,Array.prototype.slice.call(arguments,1))}),u(G,"setVisible",function(C,P){var L=this;L.chart.is3d()&&L.data.forEach(function(M){M.visible=M.options.visible=P=P===void 0?!T(L.visible,M.visible):P,L.options.data[L.data.indexOf(M)]=M.options,M.graphic&&M.graphic.attr({visibility:P?"visible":"hidden"})}),C.apply(this,Array.prototype.slice.call(arguments,1))}),x(W,"afterInit",function(){if(this.chart.is3d()){var C=this.options,P=C.grouping,L=C.stacking,M=this.yAxis.options.reversedStacks,f=0;if(P===void 0||P){var b=function(e,r){var o,i=e.series,c={totalStacks:0},a=1;return i.forEach(function(s){o=T(s.options.stack,r?0:i.length-1-s.index),c[o]?c[o].series.push(s):(c[o]={series:[s],position:a},a++)}),c.totalStacks=a+1,c}(this.chart,L),l=C.stack||0,h=void 0;for(h=0;h<b[l].series.length&&b[l].series[h]!==this;h++);f=10*(b.totalStacks-b[l].position)+(M?h:-h),this.xAxis.reversed||(f=10*b.totalStacks-f)}C.depth=C.depth||25,this.z=this.z||0,C.zIndex=f}}),u(G,"pointAttribs",p),u(G,"setState",g),u(G.pointClass.prototype,"hasNewShapeType",v),Z.seriesTypes.columnRange){var y=Z.seriesTypes.columnrange.prototype;u(y,"pointAttribs",p),u(y,"setState",g),u(y.pointClass.prototype,"hasNewShapeType",v),y.plotGroup=G.plotGroup,y.setVisible=G.setVisible}return u(U.prototype,"alignDataLabel",function(C,P,L,M,f){var b=this.chart;if(M.outside3dPlot=P.outside3dPlot,b.is3d()&&this.is("column")){var l=this,h=l.options,e=T(M.inside,!!l.options.stacking),r=b.options.chart.options3d,o=P.pointWidth/2||0,i={x:f.x+o,y:f.y,z:l.z+h.depth/2};b.inverted&&(e&&(f.width=0,i.x+=P.shapeArgs.height/2),r.alpha>=90&&r.alpha<=270&&(i.y+=P.shapeArgs.width)),i=E([i],b,!0,!1)[0],f.x=i.x-o,f.y=P.outside3dPlot?-9e9:i.y}C.apply(this,[].slice.call(arguments,1))}),u(q.prototype,"getStackBox",function(C,P){var L=C.apply(this,[].slice.call(arguments,1)),M=this,f=this.axis.chart,b=P.width;if(f.is3d()&&M.base){var l=+M.base.split(",")[0],h=f.series[l],e=f.options.chart.options3d;if(h&&h instanceof Z.seriesTypes.column){var r={x:L.x+(f.inverted?L.height:b/2),y:L.y,z:h.options.depth/2};f.inverted&&(L.width=0,e.alpha>=90&&e.alpha<=270&&(r.y+=b)),r=E([r],f,!0,!1)[0],L.x=r.x-b/2,L.y=r.y}}return L}),W}),rt(N,"Series/Pie3D/Pie3DPoint.js",[N["Core/Series/SeriesRegistry.js"]],function(W){var R,U=this&&this.__extends||(R=function($,G){return R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(D,E){D.__proto__=E}||function(D,E){for(var x in E)E.hasOwnProperty(x)&&(D[x]=E[x])},R($,G)},function($,G){function D(){this.constructor=$}R($,G),$.prototype=G===null?Object.create(G):(D.prototype=G.prototype,new D)}),Y=W.seriesTypes.pie.prototype.pointClass,Z=Y.prototype.haloPath,q=function($){function G(){var D=$!==null&&$.apply(this,arguments)||this;return D.series=void 0,D}return U(G,$),G.prototype.haloPath=function(){return this.series.chart.is3d()?[]:Z.apply(this,arguments)},G}(Y);return q}),rt(N,"Series/Pie3D/Pie3DSeries.js",[N["Core/Globals.js"],N["Series/Pie3D/Pie3DPoint.js"],N["Core/Series/SeriesRegistry.js"],N["Core/Utilities.js"]],function(W,R,U,Y){var Z,q=this&&this.__extends||(Z=function(u,p){return Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,v){g.__proto__=v}||function(g,v){for(var y in v)v.hasOwnProperty(y)&&(g[y]=v[y])},Z(u,p)},function(u,p){function g(){this.constructor=u}Z(u,p),u.prototype=p===null?Object.create(p):(g.prototype=p.prototype,new g)}),$=W.deg2rad,G=W.svg,D=U.seriesTypes.pie,E=Y.extend,x=Y.pick,T=function(u){function p(){return u!==null&&u.apply(this,arguments)||this}return q(p,u),p.prototype.addPoint=function(){u.prototype.addPoint.apply(this,arguments),this.chart.is3d()&&this.update(this.userOptions,!0)},p.prototype.animate=function(g){if(this.chart.is3d()){var v=this.options.animation,y=void 0,C=this.center,P=this.group,L=this.markerGroup;G&&(v===!0&&(v={}),g?(P.oldtranslateX=x(P.oldtranslateX,P.translateX),P.oldtranslateY=x(P.oldtranslateY,P.translateY),y={translateX:C[0],translateY:C[1],scaleX:.001,scaleY:.001},P.attr(y),L&&(L.attrSetters=P.attrSetters,L.attr(y))):(y={translateX:P.oldtranslateX,translateY:P.oldtranslateY,scaleX:1,scaleY:1},P.animate(y,v),L&&L.animate(y,v)))}else u.prototype.animate.apply(this,arguments)},p.prototype.drawDataLabels=function(){if(this.chart.is3d()){var g=this,v=g.chart,y=v.options.chart.options3d;g.data.forEach(function(C){var P=C.shapeArgs,L=P.r,M=(P.alpha||y.alpha)*$,f=(P.beta||y.beta)*$,b=(P.start+P.end)/2,l=C.labelPosition,h=l.connectorPosition,e=-L*(1-Math.cos(M))*Math.sin(b),r=L*(Math.cos(f)-1)*Math.cos(b);[l.natural,h.breakAt,h.touchingSliceAt].forEach(function(o){o.x+=r,o.y+=e})})}u.prototype.drawDataLabels.apply(this,arguments)},p.prototype.pointAttribs=function(g){var v=u.prototype.pointAttribs.apply(this,arguments),y=this.options;return this.chart.is3d()&&!this.chart.styledMode&&(v.stroke=y.edgeColor||g.color||this.color,v["stroke-width"]=x(y.edgeWidth,1)),v},p.prototype.translate=function(){if(u.prototype.translate.apply(this,arguments),this.chart.is3d()){var g=this,v=g.options,y=v.depth||0,C=g.chart.options.chart.options3d,P=C.alpha,L=C.beta,M=v.stacking?(v.stack||0)*y:g._i*y;M+=y/2,v.grouping!==!1&&(M=0),g.data.forEach(function(f){var b,l=f.shapeArgs;f.shapeType="arc3d",l.z=M,l.depth=.75*y,l.alpha=P,l.beta=L,l.center=g.center,b=(l.end+l.start)/2,f.slicedTranslation={translateX:Math.round(Math.cos(b)*v.slicedOffset*Math.cos(P*$)),translateY:Math.round(Math.sin(b)*v.slicedOffset*Math.cos(P*$))}})}},p.prototype.drawTracker=function(){u.prototype.drawTracker.apply(this,arguments),this.chart.is3d()&&this.points.forEach(function(g){g.graphic&&["out","inn","side1","side2"].forEach(function(v){g.graphic&&(g.graphic[v].element.point=g)})})},p}(D);return E(T.prototype,{pointClass:R}),T}),rt(N,"Series/Pie3D/Pie3DComposition.js",[N["Series/Pie3D/Pie3DPoint.js"],N["Series/Pie3D/Pie3DSeries.js"],N["Core/Series/SeriesRegistry.js"]],function(W,R,U){U.seriesTypes.pie.prototype.pointClass.prototype.haloPath=W.prototype.haloPath,U.seriesTypes.pie=R}),rt(N,"Series/Scatter3D/Scatter3DPoint.js",[N["Series/Scatter/ScatterSeries.js"],N["Core/Utilities.js"]],function(W,R){var U,Y=this&&this.__extends||(U=function($,G){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(D,E){D.__proto__=E}||function(D,E){for(var x in E)E.hasOwnProperty(x)&&(D[x]=E[x])},U($,G)},function($,G){function D(){this.constructor=$}U($,G),$.prototype=G===null?Object.create(G):(D.prototype=G.prototype,new D)}),Z=R.defined,q=function($){function G(){var D=$!==null&&$.apply(this,arguments)||this;return D.options=void 0,D.series=void 0,D}return Y(G,$),G.prototype.applyOptions=function(){return $.prototype.applyOptions.apply(this,arguments),Z(this.z)||(this.z=0),this},G}(W.prototype.pointClass);return q}),rt(N,"Series/Scatter3D/Scatter3DSeries.js",[N["Core/Math3D.js"],N["Series/Scatter3D/Scatter3DPoint.js"],N["Series/Scatter/ScatterSeries.js"],N["Core/Series/SeriesRegistry.js"],N["Core/Utilities.js"]],function(W,R,U,Y,Z){var q,$=this&&this.__extends||(q=function(T,u){return q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,g){p.__proto__=g}||function(p,g){for(var v in g)g.hasOwnProperty(v)&&(p[v]=g[v])},q(T,u)},function(T,u){function p(){this.constructor=T}q(T,u),T.prototype=u===null?Object.create(u):(p.prototype=u.prototype,new p)}),G=W.pointCameraDistance,D=Z.extend,E=Z.merge,x=function(T){function u(){var p=T!==null&&T.apply(this,arguments)||this;return p.data=void 0,p.options=void 0,p.points=void 0,p}return $(u,T),u.prototype.pointAttribs=function(p){var g=T.prototype.pointAttribs.apply(this,arguments);return this.chart.is3d()&&p&&(g.zIndex=G(p,this.chart)),g},u.defaultOptions=E(U.defaultOptions,{tooltip:{pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>z: <b>{point.z}</b><br/>"}}),u}(U);return D(x.prototype,{axisTypes:["xAxis","yAxis","zAxis"],directTouch:!0,parallelArrays:["x","y","z"],pointArrayMap:["x","y","z"],pointClass:R}),Y.registerSeriesType("scatter3d",x),x}),rt(N,"masters/highcharts-3d.src.js",[N["Core/Globals.js"],N["Core/Renderer/SVG/SVGRenderer3D.js"],N["Core/Chart/Chart3D.js"],N["Core/Axis/ZAxis.js"],N["Core/Axis/Axis3DComposition.js"],N["Series/Area3D/Area3DSeries.js"]],function(W,R,U,Y,Z,q){var $=W;R.compose($.SVGRenderer),U.compose($.Chart,$.Fx),Y.compose($.Chart),Z.compose($.Axis,$.Tick),q.compose($.seriesTypes.area)})},J.exports?(pt.default=pt,J.exports=pt):(at=[nt(8840)],(lt=function(ft){return pt(ft),pt.Highcharts=ft,pt}.apply(it,at))===void 0||(J.exports=lt))},7274:(J,it,nt)=>{var at,lt,pt;pt=function(ft){var N=ft?ft._modules:{};function rt(W,R,U,Y){W.hasOwnProperty(R)||(W[R]=Y.apply(null,U),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:R,module:W[R]}})))}rt(N,"Extensions/Pane.js",[N["Core/Chart/Chart.js"],N["Series/CenteredUtilities.js"],N["Core/Globals.js"],N["Core/Pointer.js"],N["Core/Utilities.js"]],function(W,R,U,Y,Z){var q=Z.addEvent,$=Z.correctFloat,G=Z.defined,D=Z.extend,E=Z.merge,x=Z.pick,T=Z.splat;W.prototype.collectionsWithUpdate.push("pane");var u=function(){function g(v,y){this.background=void 0,this.center=void 0,this.chart=void 0,this.options=void 0,this.coll="pane",this.defaultOptions={center:["50%","50%"],size:"85%",innerSize:"0%",startAngle:0},this.defaultBackgroundOptions={shape:"circle",borderWidth:1,borderColor:"#cccccc",backgroundColor:{linearGradient:{x1:0,y1:0,x2:0,y2:1},stops:[[0,"#ffffff"],[1,"#e6e6e6"]]},from:-Number.MAX_VALUE,innerRadius:0,to:Number.MAX_VALUE,outerRadius:"105%"},this.init(v,y)}return g.prototype.init=function(v,y){this.chart=y,this.background=[],y.pane.push(this),this.setOptions(v)},g.prototype.setOptions=function(v){this.options=v=E(this.defaultOptions,this.chart.angular?{background:{}}:void 0,v)},g.prototype.render=function(){var v,y,C=this.options,P=this.options.background,L=this.chart.renderer;if(this.group||(this.group=L.g("pane-group").attr({zIndex:C.zIndex||0}).add()),this.updateCenter(),P)for(P=T(P),v=Math.max(P.length,this.background.length||0),y=0;y<v;y++)P[y]&&this.axis?this.renderBackground(E(this.defaultBackgroundOptions,P[y]),y):this.background[y]&&(this.background[y]=this.background[y].destroy(),this.background.splice(y,1))},g.prototype.renderBackground=function(v,y){var C="animate",P={class:"highcharts-pane "+(v.className||"")};this.chart.styledMode||D(P,{fill:v.backgroundColor,stroke:v.borderColor,"stroke-width":v.borderWidth}),this.background[y]||(this.background[y]=this.chart.renderer.path().add(this.group),C="attr"),this.background[y][C]({d:this.axis.getPlotBandPath(v.from,v.to,v)}).attr(P)},g.prototype.updateCenter=function(v){this.center=(v||this.axis||{}).center=R.getCenter.call(this)},g.prototype.update=function(v,y){E(!0,this.options,v),this.setOptions(this.options),this.render(),this.chart.axes.forEach(function(C){C.pane===this&&(C.pane=null,C.update({},y))},this)},g}();function p(g,v,y,C,P){var L=!0,M=y[0],f=y[1],b=Math.sqrt(Math.pow(g-M,2)+Math.pow(v-f,2));if(G(C)&&G(P)){var l=Math.atan2($(v-f,8),$(g-M,8));P!==C&&(L=C>P?l>=C&&l<=Math.PI||l<=P&&l>=-Math.PI:l>=C&&l<=$(P,8))}return b<=Math.ceil(y[2]/2)&&L}return W.prototype.getHoverPane=function(g){var v,y=this;return g&&y.pane.forEach(function(C){p(g.chartX-y.plotLeft,g.chartY-y.plotTop,C.center)&&(v=C)}),v},q(W,"afterIsInsidePlot",function(g){var v;this.polar&&(g.options.inverted&&(v=[g.y,g.x],g.x=v[0],g.y=v[1]),g.isInsidePlot=this.pane.some(function(y){return p(g.x,g.y,y.center,y.axis&&y.axis.normalizedStartAngleRad,y.axis&&y.axis.normalizedEndAngleRad)}))}),q(Y,"beforeGetHoverData",function(g){var v=this.chart;v.polar?(v.hoverPane=v.getHoverPane(g),g.filter=function(y){return y.visible&&!(!g.shared&&y.directTouch)&&x(y.options.enableMouseTracking,!0)&&(!v.hoverPane||y.xAxis.pane===v.hoverPane)}):v.hoverPane=void 0}),q(Y,"afterGetHoverData",function(g){var v=this.chart;g.hoverPoint&&g.hoverPoint.plotX&&g.hoverPoint.plotY&&v.hoverPane&&!p(g.hoverPoint.plotX,g.hoverPoint.plotY,v.hoverPane.center)&&(g.hoverPoint=void 0)}),U.Pane=u,U.Pane}),rt(N,"Series/AreaRange/AreaRangePoint.js",[N["Core/Series/SeriesRegistry.js"],N["Core/Utilities.js"]],function(W,R){var U,Y=this&&this.__extends||(U=function(x,T){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,p){u.__proto__=p}||function(u,p){for(var g in p)p.hasOwnProperty(g)&&(u[g]=p[g])},U(x,T)},function(x,T){function u(){this.constructor=x}U(x,T),x.prototype=T===null?Object.create(T):(u.prototype=T.prototype,new u)}),Z=W.seriesTypes.area.prototype,q=Z.pointClass,$=Z.pointClass.prototype,G=R.defined,D=R.isNumber,E=function(x){function T(){var u=x!==null&&x.apply(this,arguments)||this;return u.high=void 0,u.low=void 0,u.options=void 0,u.plotX=void 0,u.series=void 0,u}return Y(T,x),T.prototype.setState=function(){var u=this.state,p=this.series,g=p.chart.polar;G(this.plotHigh)||(this.plotHigh=p.yAxis.toPixels(this.high,!0)),G(this.plotLow)||(this.plotLow=this.plotY=p.yAxis.toPixels(this.low,!0)),p.stateMarkerGraphic&&(p.lowerStateMarkerGraphic=p.stateMarkerGraphic,p.stateMarkerGraphic=p.upperStateMarkerGraphic),this.graphic=this.graphics&&this.graphics[1],this.plotY=this.plotHigh,g&&D(this.plotHighX)&&(this.plotX=this.plotHighX),$.setState.apply(this,arguments),this.state=u,this.plotY=this.plotLow,this.graphic=this.graphics&&this.graphics[0],g&&D(this.plotLowX)&&(this.plotX=this.plotLowX),p.stateMarkerGraphic&&(p.upperStateMarkerGraphic=p.stateMarkerGraphic,p.stateMarkerGraphic=p.lowerStateMarkerGraphic,p.lowerStateMarkerGraphic=void 0),$.setState.apply(this,arguments)},T.prototype.haloPath=function(){var u=this.series.chart.polar,p=[];return this.plotY=this.plotLow,u&&D(this.plotLowX)&&(this.plotX=this.plotLowX),this.isInside&&(p=$.haloPath.apply(this,arguments)),this.plotY=this.plotHigh,u&&D(this.plotHighX)&&(this.plotX=this.plotHighX),this.isTopInside&&(p=p.concat($.haloPath.apply(this,arguments))),p},T.prototype.isValid=function(){return D(this.low)&&D(this.high)},T}(q);return E}),rt(N,"Series/AreaRange/AreaRangeSeries.js",[N["Series/AreaRange/AreaRangePoint.js"],N["Core/Globals.js"],N["Core/Series/SeriesRegistry.js"],N["Core/Utilities.js"]],function(W,R,U,Y){var Z,q=this&&this.__extends||(Z=function(M,f){return Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,l){b.__proto__=l}||function(b,l){for(var h in l)l.hasOwnProperty(h)&&(b[h]=l[h])},Z(M,f)},function(M,f){function b(){this.constructor=M}Z(M,f),M.prototype=f===null?Object.create(f):(b.prototype=f.prototype,new b)}),$=R.noop,G=U.seriesTypes,D=G.area,E=G.area.prototype,x=G.column.prototype,T=Y.addEvent,u=Y.defined,p=Y.extend,g=Y.isArray,v=Y.isNumber,y=Y.pick,C=Y.merge,P={lineWidth:1,threshold:null,tooltip:{pointFormat:'<span style="color:{series.color}">●</span> {series.name}: <b>{point.low}</b> - <b>{point.high}</b><br/>'},trackByArea:!0,dataLabels:{align:void 0,verticalAlign:void 0,xLow:0,xHigh:0,yLow:0,yHigh:0}},L=function(M){function f(){var b=M!==null&&M.apply(this,arguments)||this;return b.data=void 0,b.options=void 0,b.points=void 0,b.lowerStateMarkerGraphic=void 0,b.xAxis=void 0,b}return q(f,M),f.prototype.toYData=function(b){return[b.low,b.high]},f.prototype.highToXY=function(b){var l=this.chart,h=this.xAxis.postTranslate(b.rectPlotX||0,this.yAxis.len-(b.plotHigh||0));b.plotHighX=h.x-l.plotLeft,b.plotHigh=h.y-l.plotTop,b.plotLowX=b.plotX},f.prototype.getGraphPath=function(b){var l,h,e,r=[],o=[],i=E.getGraphPath,c=this.options,a=this.chart.polar,s=a&&c.connectEnds!==!1,m=c.connectNulls,A=c.step;for(l=(b=b||this.points).length;l--;){h=b[l];var O=a?{plotX:h.rectPlotX,plotY:h.yBottom,doCurve:!1}:{plotX:h.plotX,plotY:h.plotY,doCurve:!1};h.isNull||s||m||b[l+1]&&!b[l+1].isNull||o.push(O),e={polarPlotY:h.polarPlotY,rectPlotX:h.rectPlotX,yBottom:h.yBottom,plotX:y(h.plotHighX,h.plotX),plotY:h.plotHigh,isNull:h.isNull},o.push(e),r.push(e),h.isNull||s||m||b[l-1]&&!b[l-1].isNull||o.push(O)}var d=i.call(this,b);A&&(A===!0&&(A="left"),c.step={left:"right",center:"center",right:"left"}[A]);var w=i.call(this,r),k=i.call(this,o);c.step=A;var z=[].concat(d,w);return!this.chart.polar&&k[0]&&k[0][0]==="M"&&(k[0]=["L",k[0][1],k[0][2]]),this.graphPath=z,this.areaPath=d.concat(k),z.isArea=!0,z.xMap=d.xMap,this.areaPath.xMap=d.xMap,z},f.prototype.drawDataLabels=function(){var b,l,h,e,r,o=this.points,i=o.length,c=[],a=this.options.dataLabels,s=this.chart.inverted;if(a){if(g(a)?(e=a[0]||{enabled:!1},r=a[1]||{enabled:!1}):((e=p({},a)).x=a.xHigh,e.y=a.yHigh,(r=p({},a)).x=a.xLow,r.y=a.yLow),e.enabled||this._hasPointLabels){for(b=i;b--;)if(l=o[b]){var m=l.plotHigh,A=m===void 0?0:m,O=l.plotLow,d=O===void 0?0:O;h=e.inside?A<d:A>d,l.y=l.high,l._plotY=l.plotY,l.plotY=A,c[b]=l.dataLabel,l.dataLabel=l.dataLabelUpper,l.below=h,s?e.align||(e.align=h?"right":"left"):e.verticalAlign||(e.verticalAlign=h?"top":"bottom")}for(this.options.dataLabels=e,E.drawDataLabels&&E.drawDataLabels.apply(this,arguments),b=i;b--;)(l=o[b])&&(l.dataLabelUpper=l.dataLabel,l.dataLabel=c[b],delete l.dataLabels,l.y=l.low,l.plotY=l._plotY)}if(r.enabled||this._hasPointLabels){for(b=i;b--;)if(l=o[b]){var w=l.plotHigh,k=(A=w===void 0?0:w,l.plotLow);d=k===void 0?0:k,h=r.inside?A<d:A>d,l.below=!h,s?r.align||(r.align=h?"left":"right"):r.verticalAlign||(r.verticalAlign=h?"bottom":"top")}this.options.dataLabels=r,E.drawDataLabels&&E.drawDataLabels.apply(this,arguments)}if(e.enabled)for(b=i;b--;)(l=o[b])&&(l.dataLabels=[l.dataLabelUpper,l.dataLabel].filter(function(z){return!!z}));this.options.dataLabels=a}},f.prototype.alignDataLabel=function(){x.alignDataLabel.apply(this,arguments)},f.prototype.drawPoints=function(){var b,l,h=this,e=h.points.length;for(E.drawPoints.apply(h,arguments),b=0;b<e;)(l=h.points[b]).graphics=l.graphics||[],l.origProps={plotY:l.plotY,plotX:l.plotX,isInside:l.isInside,negative:l.negative,zone:l.zone,y:l.y},(l.graphic||l.graphics[0])&&(l.graphics[0]=l.graphic),l.graphic=l.graphics[1],l.plotY=l.plotHigh,u(l.plotHighX)&&(l.plotX=l.plotHighX),l.y=y(l.high,l.origProps.y),l.negative=l.y<(h.options.threshold||0),h.zones.length&&(l.zone=l.getZone()),h.chart.polar||(l.isInside=l.isTopInside=l.plotY!==void 0&&l.plotY>=0&&l.plotY<=h.yAxis.len&&l.plotX>=0&&l.plotX<=h.xAxis.len),b++;for(E.drawPoints.apply(h,arguments),b=0;b<e;)(l=h.points[b]).graphics=l.graphics||[],(l.graphic||l.graphics[1])&&(l.graphics[1]=l.graphic),l.graphic=l.graphics[0],l.origProps&&(p(l,l.origProps),delete l.origProps),b++},f.defaultOptions=C(D.defaultOptions,P),f}(D);return T(L,"afterTranslate",function(){var M=this;this.pointArrayMap.join(",")==="low,high"&&this.points.forEach(function(f){var b=f.high,l=f.plotY;f.isNull?f.plotY=void 0:(f.plotLow=l,f.plotHigh=v(b)?M.yAxis.translate(M.dataModify?M.dataModify.modifyValue(b):b,!1,!0,void 0,!0):void 0,M.dataModify&&(f.yBottom=f.plotHigh))})},{order:0}),T(L,"afterTranslate",function(){var M=this;this.points.forEach(function(f){if(M.chart.polar)M.highToXY(f),f.plotLow=f.plotY,f.tooltipPos=[((f.plotHighX||0)+(f.plotLowX||0))/2,((f.plotHigh||0)+(f.plotLow||0))/2];else{var b=f.pos(!1,f.plotLow),l=f.pos(!1,f.plotHigh);b&&l&&(b[0]=(b[0]+l[0])/2,b[1]=(b[1]+l[1])/2),f.tooltipPos=b}})},{order:3}),p(L.prototype,{deferTranslatePolar:!0,pointArrayMap:["low","high"],pointClass:W,pointValKey:"low",setStackedPoints:$}),U.registerSeriesType("arearange",L),L}),rt(N,"Series/AreaSplineRange/AreaSplineRangeSeries.js",[N["Series/AreaRange/AreaRangeSeries.js"],N["Core/Series/SeriesRegistry.js"],N["Core/Utilities.js"]],function(W,R,U){var Y,Z=this&&this.__extends||(Y=function(E,x){return Y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,u){T.__proto__=u}||function(T,u){for(var p in u)u.hasOwnProperty(p)&&(T[p]=u[p])},Y(E,x)},function(E,x){function T(){this.constructor=E}Y(E,x),E.prototype=x===null?Object.create(x):(T.prototype=x.prototype,new T)}),q=R.seriesTypes.spline.prototype,$=U.merge,G=U.extend,D=function(E){function x(){var T=E!==null&&E.apply(this,arguments)||this;return T.options=void 0,T.data=void 0,T.points=void 0,T}return Z(x,E),x.defaultOptions=$(W.defaultOptions),x}(W);return G(D.prototype,{getPointSpline:q.getPointSpline}),R.registerSeriesType("areasplinerange",D),D}),rt(N,"Series/BoxPlot/BoxPlotSeries.js",[N["Series/Column/ColumnSeries.js"],N["Core/Globals.js"],N["Core/Series/SeriesRegistry.js"],N["Core/Utilities.js"]],function(W,R,U,Y){var Z,q=this&&this.__extends||(Z=function(T,u){return Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,g){p.__proto__=g}||function(p,g){for(var v in g)g.hasOwnProperty(v)&&(p[v]=g[v])},Z(T,u)},function(T,u){function p(){this.constructor=T}Z(T,u),T.prototype=u===null?Object.create(u):(p.prototype=u.prototype,new p)}),$=R.noop,G=Y.extend,D=Y.merge,E=Y.pick,x=function(T){function u(){var p=T!==null&&T.apply(this,arguments)||this;return p.data=void 0,p.options=void 0,p.points=void 0,p}return q(u,T),u.prototype.pointAttribs=function(){return{}},u.prototype.translate=function(){var p=this,g=p.yAxis,v=p.pointArrayMap;T.prototype.translate.apply(p),p.points.forEach(function(y){v.forEach(function(C){y[C]!==null&&(y[C+"Plot"]=g.translate(y[C],0,1,0,1))}),y.plotHigh=y.highPlot})},u.prototype.drawPoints=function(){var p,g,v,y,C,P,L,M,f,b,l,h=this,e=h.points,r=h.options,o=h.chart,i=o.renderer,c=0,a=h.doQuartiles!==!1,s=h.options.whiskerLength;e.forEach(function(m){var A=m.graphic,O=A?"animate":"attr",d=m.shapeArgs,w={},k={},z={},F={},j=m.color||h.color;if(m.plotY!==void 0){L=Math.round(d.width),M=Math.floor(d.x),f=M+L,b=Math.round(L/2),p=Math.floor(a?m.q1Plot:m.lowPlot),g=Math.floor(a?m.q3Plot:m.lowPlot),v=Math.floor(m.highPlot),y=Math.floor(m.lowPlot),A||(m.graphic=A=i.g("point").add(h.group),m.stem=i.path().addClass("highcharts-boxplot-stem").add(A),s&&(m.whiskers=i.path().addClass("highcharts-boxplot-whisker").add(A)),a&&(m.box=i.path(void 0).addClass("highcharts-boxplot-box").add(A)),m.medianShape=i.path(void 0).addClass("highcharts-boxplot-median").add(A)),o.styledMode||(k.stroke=m.stemColor||r.stemColor||j,k["stroke-width"]=E(m.stemWidth,r.stemWidth,r.lineWidth),k.dashstyle=m.stemDashStyle||r.stemDashStyle||r.dashStyle,m.stem.attr(k),s&&(z.stroke=m.whiskerColor||r.whiskerColor||j,z["stroke-width"]=E(m.whiskerWidth,r.whiskerWidth,r.lineWidth),z.dashstyle=m.whiskerDashStyle||r.whiskerDashStyle||r.dashStyle,m.whiskers.attr(z)),a&&(w.fill=m.fillColor||r.fillColor||j,w.stroke=r.lineColor||j,w["stroke-width"]=r.lineWidth||0,w.dashstyle=m.boxDashStyle||r.boxDashStyle||r.dashStyle,m.box.attr(w)),F.stroke=m.medianColor||r.medianColor||j,F["stroke-width"]=E(m.medianWidth,r.medianWidth,r.lineWidth),F.dashstyle=m.medianDashStyle||r.medianDashStyle||r.dashStyle,m.medianShape.attr(F));var I=void 0;P=m.stem.strokeWidth()%2/2,I=[["M",c=M+b+P,g],["L",c,v],["M",c,p],["L",c,y]],m.stem[O]({d:I}),a&&(P=m.box.strokeWidth()%2/2,p=Math.floor(p)+P,g=Math.floor(g)+P,I=[["M",M+=P,g],["L",M,p],["L",f+=P,p],["L",f,g],["L",M,g],["Z"]],m.box[O]({d:I})),s&&(P=m.whiskers.strokeWidth()%2/2,v+=P,y+=P,l=/%$/.test(s)?b*parseFloat(s)/100:s/2,I=[["M",c-l,v],["L",c+l,v],["M",c-l,y],["L",c+l,y]],m.whiskers[O]({d:I})),C=Math.round(m.medianPlot),P=m.medianShape.strokeWidth()%2/2,I=[["M",M,C+=P],["L",f,C]],m.medianShape[O]({d:I})}})},u.prototype.toYData=function(p){return[p.low,p.q1,p.median,p.q3,p.high]},u.defaultOptions=D(W.defaultOptions,{threshold:null,tooltip:{pointFormat:'<span style="color:{point.color}">●</span> <b>{series.name}</b><br/>Maximum: {point.high}<br/>Upper quartile: {point.q3}<br/>Median: {point.median}<br/>Lower quartile: {point.q1}<br/>Minimum: {point.low}<br/>'},whiskerLength:"50%",fillColor:"#ffffff",lineWidth:1,medianWidth:2,whiskerWidth:2}),u}(W);return G(x.prototype,{pointArrayMap:["low","q1","median","q3","high"],pointValKey:"high",drawDataLabels:$,setStackedPoints:$}),U.registerSeriesType("boxplot",x),x}),rt(N,"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}}),rt(N,"Series/Bubble/BubbleLegendItem.js",[N["Core/Color/Color.js"],N["Core/FormatUtilities.js"],N["Core/Globals.js"],N["Core/Utilities.js"]],function(W,R,U,Y){var Z=W.parse,q=U.noop,$=Y.arrayMax,G=Y.arrayMin,D=Y.isNumber,E=Y.merge,x=Y.pick,T=Y.stableSort;return function(){function u(p,g){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=q,this.init(p,g)}return u.prototype.init=function(p,g){this.options=p,this.visible=!0,this.chart=g.chart,this.legend=g},u.prototype.addToLegend=function(p){p.splice(this.options.legendIndex,0,this)},u.prototype.drawLegendSymbol=function(p){var g,v=this.chart,y=x(p.options.itemDistance,20),C=this.legendItem||{},P=this.options,L=P.ranges,M=P.connectorDistance;if(this.fontMetrics=v.renderer.fontMetrics(P.labels.style.fontSize),L&&L.length&&D(L[0].value)){T(L,function(h,e){return e.value-h.value}),this.ranges=L,this.setOptions(),this.render();var f=this.getMaxLabelSize(),b=this.ranges[0].radius,l=2*b;g=(g=M-b+f.width)>0?g:0,this.maxLabel=f,this.movementX=P.labels.align==="left"?g:0,C.labelWidth=l+g+y,C.labelHeight=l+this.fontMetrics.h/2}else p.options.bubbleLegend.autoRanges=!0},u.prototype.setOptions=function(){var p=this.ranges,g=this.options,v=this.chart.series[g.seriesIndex],y=this.legend.baseline,C={zIndex:g.zIndex,"stroke-width":g.borderWidth},P={zIndex:g.zIndex,"stroke-width":g.connectorWidth},L={align:this.legend.options.rtl||g.labels.align==="left"?"right":"left",zIndex:g.zIndex},M=v.options.marker.fillOpacity,f=this.chart.styledMode;p.forEach(function(b,l){f||(C.stroke=x(b.borderColor,g.borderColor,v.color),C.fill=x(b.color,g.color,M!==1?Z(v.color).setOpacity(M).get("rgba"):v.color),P.stroke=x(b.connectorColor,g.connectorColor,v.color)),p[l].radius=this.getRangeRadius(b.value),p[l]=E(p[l],{center:p[0].radius-p[l].radius+y}),f||E(!0,p[l],{bubbleAttribs:E(C),connectorAttribs:E(P),labelAttribs:L})},this)},u.prototype.getRangeRadius=function(p){var g=this.options,v=this.options.seriesIndex,y=this.chart.series[v],C=g.ranges[0].value,P=g.ranges[g.ranges.length-1].value,L=g.minSize,M=g.maxSize;return y.getRadius.call(this,P,C,L,M,p)},u.prototype.render=function(){var p=this.legendItem||{},g=this.chart.renderer,v=this.options.zThreshold;this.symbols||(this.symbols={connectors:[],bubbleItems:[],labels:[]}),p.symbol=g.g("bubble-legend"),p.label=g.g("bubble-legend-item"),p.symbol.translateX=0,p.symbol.translateY=0;for(var y=0,C=this.ranges;y<C.length;y++){var P=C[y];P.value>=v&&this.renderRange(P)}p.symbol.add(p.label),p.label.add(p.group),this.hideOverlappingLabels()},u.prototype.renderRange=function(p){var g=this.ranges[0],v=this.legend,y=this.options,C=y.labels,P=this.chart,L=P.series[y.seriesIndex],M=P.renderer,f=this.symbols,b=f.labels,l=p.center,h=Math.abs(p.radius),e=y.connectorDistance||0,r=C.align,o=v.options.rtl,i=y.borderWidth,c=y.connectorWidth,a=g.radius||0,s=l-h-i/2+c/2,m=this.fontMetrics,A=m.f/2-(m.h-m.f)/2,O=(s%1?1:.5)-(c%2?0:.5),d=M.styledMode,w=o||r==="left"?-e:e;r==="center"&&(w=0,y.connectorDistance=0,p.labelAttribs.align="center");var k=s+y.labels.y,z=a+w+y.labels.x;f.bubbleItems.push(M.circle(a,l+O,h).attr(d?{}:p.bubbleAttribs).addClass((d?"highcharts-color-"+L.colorIndex+" ":"")+"highcharts-bubble-legend-symbol "+(y.className||"")).add(this.legendItem.symbol)),f.connectors.push(M.path(M.crispLine([["M",a,s],["L",a+w,s]],y.connectorWidth)).attr(d?{}:p.connectorAttribs).addClass((d?"highcharts-color-"+this.options.seriesIndex+" ":"")+"highcharts-bubble-legend-connectors "+(y.connectorClassName||"")).add(this.legendItem.symbol));var F=M.text(this.formatLabel(p),z,k+A).attr(d?{}:p.labelAttribs).css(d?{}:C.style).addClass("highcharts-bubble-legend-labels "+(y.labels.className||"")).add(this.legendItem.symbol);b.push(F),F.placed=!0,F.alignAttr={x:z,y:k+A}},u.prototype.getMaxLabelSize=function(){var p,g;return this.symbols.labels.forEach(function(v){g=v.getBBox(!0),p=p?g.width>p.width?g:p:g}),p||{}},u.prototype.formatLabel=function(p){var g=this.options,v=g.labels.formatter,y=g.labels.format,C=this.chart.numberFormatter;return y?R.format(y,p):v?v.call(p):C(p.value,1)},u.prototype.hideOverlappingLabels=function(){var p=this.chart,g=this.options.labels.allowOverlap,v=this.symbols;!g&&v&&(p.hideOverlappingLabels(v.labels),v.labels.forEach(function(y,C){y.newOpacity?y.newOpacity!==y.oldOpacity&&v.connectors[C].show():v.connectors[C].hide()}))},u.prototype.getRanges=function(){var p,g,v=this.legend.bubbleLegend,y=v.chart.series,C=v.options.ranges,P=Number.MAX_VALUE,L=-Number.MAX_VALUE;return y.forEach(function(M){M.isBubble&&!M.ignoreSeries&&(g=M.zData.filter(D)).length&&(P=x(M.options.zMin,Math.min(P,Math.max(G(g),M.options.displayNegative===!1?M.options.zThreshold:-Number.MAX_VALUE))),L=x(M.options.zMax,Math.max(L,$(g))))}),p=P===L?[{value:L}]:[{value:P},{value:(P+L)/2},{value:L,autoRanges:!0}],C.length&&C[0].radius&&p.reverse(),p.forEach(function(M,f){C&&C[f]&&(p[f]=E(C[f],M))}),p},u.prototype.predictBubbleSizes=function(){var p,g=this.chart,v=this.fontMetrics,y=g.legend.options,C=y.floating,P=y.layout==="horizontal",L=P?g.legend.lastLineHeight:0,M=g.plotSizeX,f=g.plotSizeY,b=g.series[this.options.seriesIndex],l=b.getPxExtremes(),h=Math.ceil(l.minPxSize),e=Math.ceil(l.maxPxSize),r=Math.min(f,M),o=b.options.maxSize;return C||!/%$/.test(o)?p=e:(o=parseFloat(o),p=(r+L-v.h/2)*o/100/(o/100+1),(P&&f-p>=M||!P&&M-p>=f)&&(p=e)),[h,Math.ceil(p)]},u.prototype.updateRanges=function(p,g){var v=this.legend.options.bubbleLegend;v.minSize=p,v.maxSize=g,v.ranges=this.getRanges()},u.prototype.correctSizes=function(){var p=this.legend,g=this.chart.series[this.options.seriesIndex].getPxExtremes(),v=g.maxPxSize,y=this.options.maxSize;Math.abs(Math.ceil(v)-y)>1&&(this.updateRanges(this.options.minSize,g.maxPxSize),p.render())},u}()}),rt(N,"Series/Bubble/BubbleLegendComposition.js",[N["Series/Bubble/BubbleLegendDefaults.js"],N["Series/Bubble/BubbleLegendItem.js"],N["Core/Defaults.js"],N["Core/Utilities.js"]],function(W,R,U,Y){var Z=U.setOptions,q=Y.addEvent,$=Y.objectEach,G=Y.wrap,D=[];function E(v,y,C){var P,L,M,f=this,b=f.legend,l=x(f)>=0;b&&b.options.enabled&&b.bubbleLegend&&b.options.bubbleLegend.autoRanges&&l?(P=b.bubbleLegend.options,L=b.bubbleLegend.predictBubbleSizes(),b.bubbleLegend.updateRanges(L[0],L[1]),P.placed||(b.group.placed=!1,b.allItems.forEach(function(h){(M=h.legendItem||{}).group&&(M.group.translateY=null)})),b.render(),f.getMargins(),f.axes.forEach(function(h){h.visible&&h.render(),P.placed||(h.setScale(),h.updateNames(),$(h.ticks,function(e){e.isNew=!0,e.isNewLabel=!0}))}),P.placed=!0,f.getMargins(),v.call(f,y,C),b.bubbleLegend.correctSizes(),g(b,T(b))):(v.call(f,y,C),b&&b.options.enabled&&b.bubbleLegend&&(b.render(),g(b,T(b))))}function x(v){for(var y=v.series,C=0;C<y.length;){if(y[C]&&y[C].isBubble&&y[C].visible&&y[C].zData.length)return C;C++}return-1}function T(v){var y,C,P,L=v.allItems,M=[],f=L.length,b=0,l=0;for(b=0;b<f;b++)if(C=L[b].legendItem||{},P=(L[b+1]||{}).legendItem||{},C.labelHeight&&(L[b].itemHeight=C.labelHeight),L[b]===L[f-1]||C.y!==P.y){for(M.push({height:0}),y=M[M.length-1];l<=b;l++)L[l].itemHeight>y.height&&(y.height=L[l].itemHeight);y.step=b}return M}function u(v){var y=this,C=y.bubbleLegend,P=y.options,L=P.bubbleLegend,M=x(y.chart);C&&C.ranges&&C.ranges.length&&(L.ranges.length&&(L.autoRanges=!!L.ranges[0].autoRanges),y.destroyItem(C)),M>=0&&P.enabled&&L.enabled&&(L.seriesIndex=M,y.bubbleLegend=new R(L,y),y.bubbleLegend.addToLegend(v.allItems))}function p(){var v,y=this,C=y.chart,P=y.visible,L=y.chart.legend;L&&L.bubbleLegend&&(y.visible=!P,y.ignoreSeries=P,v=x(C)>=0,L.bubbleLegend.visible!==v&&(L.update({bubbleLegend:{enabled:v}}),L.bubbleLegend.visible=v),y.visible=P)}function g(v,y){var C,P,L,M,f=v.allItems,b=v.options.rtl,l=0;f.forEach(function(h,e){(M=h.legendItem||{}).group&&(C=M.group.translateX||0,P=M.y||0,((L=h.movementX)||b&&h.ranges)&&(L=b?C-h.options.maxSize/2:C+L,M.group.attr({translateX:L})),e>y[l].step&&l++,M.group.attr({translateY:Math.round(P+y[l].height/2)}),M.y=P+y[l].height/2)})}return{compose:function(v,y,C){D.indexOf(v)===-1&&(D.push(v),Z({legend:{bubbleLegend:W}}),G(v.prototype,"drawChartBox",E)),D.indexOf(y)===-1&&(D.push(y),q(y,"afterGetAllItems",u)),D.indexOf(C)===-1&&(D.push(C),q(C,"legendItemClick",p))}}}),rt(N,"Series/Bubble/BubblePoint.js",[N["Core/Series/Point.js"],N["Core/Series/SeriesRegistry.js"],N["Core/Utilities.js"]],function(W,R,U){var Y,Z=this&&this.__extends||(Y=function(D,E){return Y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,T){x.__proto__=T}||function(x,T){for(var u in T)T.hasOwnProperty(u)&&(x[u]=T[u])},Y(D,E)},function(D,E){function x(){this.constructor=D}Y(D,E),D.prototype=E===null?Object.create(E):(x.prototype=E.prototype,new x)}),q=R.seriesTypes.scatter.prototype.pointClass,$=U.extend,G=function(D){function E(){var x=D!==null&&D.apply(this,arguments)||this;return x.options=void 0,x.series=void 0,x}return Z(E,D),E.prototype.haloPath=function(x){return W.prototype.haloPath.call(this,x===0?0:(this.marker&&this.marker.radius||0)+x)},E}(q);return $(G.prototype,{ttBelow:!1}),G}),rt(N,"Series/Bubble/BubbleSeries.js",[N["Series/Bubble/BubbleLegendComposition.js"],N["Series/Bubble/BubblePoint.js"],N["Core/Color/Color.js"],N["Core/Globals.js"],N["Core/Series/SeriesRegistry.js"],N["Core/Utilities.js"]],function(W,R,U,Y,Z,q){var $,G=this&&this.__extends||($=function(e,r){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,i){o.__proto__=i}||function(o,i){for(var c in i)i.hasOwnProperty(c)&&(o[c]=i[c])},$(e,r)},function(e,r){function o(){this.constructor=e}$(e,r),e.prototype=r===null?Object.create(r):(o.prototype=r.prototype,new o)}),D=U.parse,E=Y.noop,x=Z.series,T=Z.seriesTypes,u=T.column.prototype,p=T.scatter,g=q.addEvent,v=q.arrayMax,y=q.arrayMin,C=q.clamp,P=q.extend,L=q.isNumber,M=q.merge,f=q.pick,b=[];function l(){var e,r=this,o=this.len,i=this.chart,c=this.isXAxis,a=c?"xData":"yData",s=this.min,m=this.max-s,A=0,O=o,d=o/m;this.series.forEach(function(w){if(w.bubblePadding&&(w.visible||!i.options.chart.ignoreHiddenSeries)){r.allowZoomOutside=!0,e=!0;var k=w[a];if(c&&((w.onPoint||w).getRadii(0,0,w),w.onPoint&&(w.radii=w.onPoint.radii)),m>0){for(var z=k.length;z--;)if(L(k[z])&&r.dataMin<=k[z]&&k[z]<=r.max){var F=w.radii&&w.radii[z]||0;A=Math.min((k[z]-s)*d-F,A),O=Math.max((k[z]-s)*d+F,O)}}}}),e&&m>0&&!this.logarithmic&&(O-=o,d*=(o+Math.max(0,A)-Math.min(O,o))/o,[["min","userMin",A],["max","userMax",O]].forEach(function(w){f(r.options[w[0]],r[w[1]])===void 0&&(r[w[0]]+=w[2]/d)}))}var h=function(e){function r(){var o=e!==null&&e.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 G(r,e),r.compose=function(o,i,c,a){W.compose(i,c,a),b.indexOf(o)===-1&&(b.push(o),o.prototype.beforePadding=l)},r.prototype.animate=function(o){!o&&this.points.length<this.options.animationLimit&&this.points.forEach(function(i){var c=i.graphic;c&&c.width&&(this.hasRendered||c.attr({x:i.plotX,y:i.plotY,width:1,height:1}),c.animate(this.markerAttribs(i),this.options.animation))},this)},r.prototype.getRadii=function(){var o,i,c,a=this,s=this.zData,m=this.yData,A=[],O=this.chart.bubbleZExtremes,d=this.getPxExtremes(),w=d.minPxSize,k=d.maxPxSize;if(!O){var z,F=Number.MAX_VALUE,j=-Number.MAX_VALUE;this.chart.series.forEach(function(I){if(I.bubblePadding&&(I.visible||!a.chart.options.chart.ignoreHiddenSeries)){var _=(I.onPoint||I).getZExtremes();_&&(F=Math.min(F||_.zMin,_.zMin),j=Math.max(j||_.zMax,_.zMax),z=!0)}}),z?(O={zMin:F,zMax:j},this.chart.bubbleZExtremes=O):O={zMin:0,zMax:0}}for(i=0,o=s.length;i<o;i++)c=s[i],A.push(this.getRadius(O.zMin,O.zMax,w,k,c,m&&m[i]));this.radii=A},r.prototype.getRadius=function(o,i,c,a,s,m){var A=this.options,O=A.sizeBy!=="width",d=A.zThreshold,w=i-o,k=.5;if(m===null||s===null)return null;if(L(s)){if(A.sizeByAbsoluteValue&&(s=Math.abs(s-d),i=w=Math.max(i-d,Math.abs(o-d)),o=0),s<o)return c/2-1;w>0&&(k=(s-o)/w)}return O&&k>=0&&(k=Math.sqrt(k)),Math.ceil(c+k*(a-c))/2},r.prototype.hasData=function(){return!!this.processedXData.length},r.prototype.pointAttribs=function(o,i){var c=this.options.marker.fillOpacity,a=x.prototype.pointAttribs.call(this,o,i);return c!==1&&(a.fill=D(a.fill).setOpacity(c).get("rgba")),a},r.prototype.translate=function(){e.prototype.translate.call(this),this.getRadii(),this.translateBubble()},r.prototype.translateBubble=function(){for(var o=this.data,i=this.radii,c=this.getPxExtremes().minPxSize,a=o.length;a--;){var s=o[a],m=i?i[a]:0;L(m)&&m>=c/2?(s.marker=P(s.marker,{radius:m,width:2*m,height:2*m}),s.dlBox={x:s.plotX-m,y:s.plotY-m,width:2*m,height:2*m}):(s.shapeArgs=s.plotY=s.dlBox=void 0,s.isInside=!1)}},r.prototype.getPxExtremes=function(){var o=Math.min(this.chart.plotWidth,this.chart.plotHeight),i=function(a){var s;return typeof a=="string"&&(s=/%$/.test(a),a=parseInt(a,10)),s?o*a/100:a},c=i(f(this.options.minSize,8));return{minPxSize:c,maxPxSize:Math.max(i(f(this.options.maxSize,"20%")),c)}},r.prototype.getZExtremes=function(){var o=this.options,i=(this.zData||[]).filter(L);if(i.length){var c=f(o.zMin,C(y(i),o.displayNegative===!1?o.zThreshold||0:-Number.MAX_VALUE,Number.MAX_VALUE)),a=f(o.zMax,v(i));if(L(c)&&L(a))return{zMin:c,zMax:a}}},r.defaultOptions=M(p.defaultOptions,{dataLabels:{formatter:function(){var o=this.series.chart.numberFormatter,i=this.point.z;return L(i)?o(i,-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"}),r}(p);return P(h.prototype,{alignDataLabel:u.alignDataLabel,applyZones:E,bubblePadding:!0,buildKDTree:E,directTouch:!0,isBubble:!0,pointArrayMap:["y","z"],pointClass:R,parallelArrays:["x","y","z"],trackerGroups:["group","dataLabelsGroup"],specialGroup:"group",zoneAxis:"z"}),g(h,"updatedData",function(e){delete e.target.chart.bubbleZExtremes}),g(h,"remove",function(e){delete e.target.chart.bubbleZExtremes}),Z.registerSeriesType("bubble",h),h}),rt(N,"Series/ColumnRange/ColumnRangePoint.js",[N["Core/Series/SeriesRegistry.js"],N["Core/Utilities.js"]],function(W,R){var U,Y=this&&this.__extends||(U=function(x,T){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,p){u.__proto__=p}||function(u,p){for(var g in p)p.hasOwnProperty(g)&&(u[g]=p[g])},U(x,T)},function(x,T){function u(){this.constructor=x}U(x,T),x.prototype=T===null?Object.create(T):(u.prototype=T.prototype,new u)}),Z=W.seriesTypes,q=Z.column.prototype.pointClass.prototype,$=Z.arearange.prototype.pointClass,G=R.extend,D=R.isNumber,E=function(x){function T(){var u=x!==null&&x.apply(this,arguments)||this;return u.options=void 0,u.series=void 0,u}return Y(T,x),T.prototype.isValid=function(){return D(this.low)},T}($);return G(E.prototype,{setState:q.setState}),E}),rt(N,"Series/ColumnRange/ColumnRangeSeries.js",[N["Series/ColumnRange/ColumnRangePoint.js"],N["Core/Globals.js"],N["Core/Series/SeriesRegistry.js"],N["Core/Utilities.js"]],function(W,R,U,Y){var Z,q=this&&this.__extends||(Z=function(P,L){return Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,f){M.__proto__=f}||function(M,f){for(var b in f)f.hasOwnProperty(b)&&(M[b]=f[b])},Z(P,L)},function(P,L){function M(){this.constructor=P}Z(P,L),P.prototype=L===null?Object.create(L):(M.prototype=L.prototype,new M)}),$=R.noop,G=U.seriesTypes,D=G.arearange,E=G.column,x=G.column.prototype,T=Y.clamp,u=Y.extend,p=Y.isNumber,g=Y.merge,v=Y.pick,y={pointRange:null,marker:null,states:{hover:{halo:!1}}},C=function(P){function L(){return P!==null&&P.apply(this,arguments)||this}return q(L,P),L.prototype.setOptions=function(){return g(!0,arguments[0],{stacking:void 0}),D.prototype.setOptions.apply(this,arguments)},L.prototype.translate=function(){var M,f,b,l,h=this,e=this.yAxis,r=this.xAxis,o=r.startAngleRad,i=this.chart,c=this.xAxis.isRadial,a=Math.max(i.chartWidth,i.chartHeight)+999;function s(m){return T(m,-a,a)}x.translate.apply(this),this.points.forEach(function(m){var A=m.shapeArgs||{},O=h.options.minPointLength,d=m.plotY,w=e.translate(m.high,0,1,0,1);if(p(w)&&p(d))if(m.plotHigh=s(w),m.plotLow=s(d),l=m.plotHigh,M=v(m.rectPlotY,m.plotY)-m.plotHigh,Math.abs(M)<O?(M+=f=O-M,l-=f/2):M<0&&(l-=M*=-1),c&&h.polar)b=m.barX+o,m.shapeType="arc",m.shapeArgs=h.polar.arc(l+M,l,b,b+m.pointWidth);else{A.height=M,A.y=l;var k=A.x,z=k===void 0?0:k,F=A.width,j=F===void 0?0:F;m.tooltipPos=i.inverted?[e.len+e.pos-i.plotLeft-l-M/2,r.len+r.pos-i.plotTop-z-j/2,M]:[r.left-i.plotLeft+z+j/2,e.pos-i.plotTop+l+M/2,M]}})},L.prototype.pointAttribs=function(){return x.pointAttribs.apply(this,arguments)},L.prototype.translate3dPoints=function(){return x.translate3dPoints.apply(this,arguments)},L.prototype.translate3dShapes=function(){return x.translate3dShapes.apply(this,arguments)},L.defaultOptions=g(E.defaultOptions,D.defaultOptions,y),L}(D);return u(C.prototype,{directTouch:!0,pointClass:W,trackerGroups:["group","dataLabelsGroup"],adjustForMissingColumns:x.adjustForMissingColumns,animate:x.animate,crispCol:x.crispCol,drawGraph:$,drawPoints:x.drawPoints,getSymbol:$,drawTracker:x.drawTracker,getColumnMetrics:x.getColumnMetrics}),U.registerSeriesType("columnrange",C),C}),rt(N,"Series/ColumnPyramid/ColumnPyramidSeries.js",[N["Series/Column/ColumnSeries.js"],N["Core/Series/SeriesRegistry.js"],N["Core/Utilities.js"]],function(W,R,U){var Y,Z=this&&this.__extends||(Y=function(x,T){return Y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,p){u.__proto__=p}||function(u,p){for(var g in p)p.hasOwnProperty(g)&&(u[g]=p[g])},Y(x,T)},function(x,T){function u(){this.constructor=x}Y(x,T),x.prototype=T===null?Object.create(T):(u.prototype=T.prototype,new u)}),q=W.prototype,$=U.clamp,G=U.merge,D=U.pick,E=function(x){function T(){var u=x!==null&&x.apply(this,arguments)||this;return u.data=void 0,u.options=void 0,u.points=void 0,u}return Z(T,x),T.prototype.translate=function(){var u=this,p=u.chart,g=u.options,v=u.dense=u.closestPointRange*u.xAxis.transA<2,y=u.borderWidth=D(g.borderWidth,v?0:1),C=u.yAxis,P=g.threshold,L=u.translatedThreshold=C.getThreshold(P),M=D(g.minPointLength,5),f=u.getColumnMetrics(),b=f.width,l=u.barW=Math.max(b,1+2*y),h=u.pointXOffset=f.offset;p.inverted&&(L-=.5),g.pointPadding&&(l=Math.ceil(l)),q.translate.apply(u),u.points.forEach(function(e){var r,o,i,c,a,s,m,A,O,d,w,k,z=D(e.yBottom,L),F=999+Math.abs(z),j=$(e.plotY,-F,C.len+F),I=e.plotX+h,_=l/2,V=Math.min(j,z),X=Math.max(j,z)-V;e.barX=I,e.pointWidth=b,e.tooltipPos=p.inverted?[C.len+C.pos-p.plotLeft-j,u.xAxis.len-I-_,X]:[I+_,j+C.pos-p.plotTop,X],r=P+(e.total||e.y),g.stacking==="percent"&&(r=P+(e.y<0)?-100:100),i=C.toPixels(r,!0),m=I-(c=(o=p.plotHeight-i-(p.plotHeight-L))?_*(V-i)/o:0)+_,A=I+c+_,O=I+(a=o?_*(V+X-i)/o:0)+_,d=I-a+_,w=V-M,k=V+X,e.y<0&&(w=V,k=V+X+M),p.inverted&&(A=(m=I+_+(c=_*(i-(s=C.width-V))/(o=i-(C.width-L))))-2*c,O=I-(a=_*(i-(s-X))/o)+_,d=I+a+_,w=V,k=V+X-M,e.y<0&&(k=V+X+M)),e.shapeType="path",e.shapeArgs={x:m,y:w,width:A-m,height:X,d:[["M",m,w],["L",A,w],["L",O,k],["L",d,k],["Z"]]}})},T.defaultOptions=G(W.defaultOptions,{}),T}(W);return R.registerSeriesType("columnpyramid",E),E}),rt(N,"Series/ErrorBar/ErrorBarSeriesDefaults.js",[],function(){return{color:"#000000",grouping:!1,linkedTo:":previous",tooltip:{pointFormat:'<span style="color:{point.color}">●</span> {series.name}: <b>{point.low}</b> - <b>{point.high}</b><br/>'},whiskerWidth:null}}),rt(N,"Series/ErrorBar/ErrorBarSeries.js",[N["Series/BoxPlot/BoxPlotSeries.js"],N["Series/Column/ColumnSeries.js"],N["Series/ErrorBar/ErrorBarSeriesDefaults.js"],N["Core/Series/SeriesRegistry.js"],N["Core/Utilities.js"]],function(W,R,U,Y,Z){var q,$=this&&this.__extends||(q=function(u,p){return q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,v){g.__proto__=v}||function(g,v){for(var y in v)v.hasOwnProperty(y)&&(g[y]=v[y])},q(u,p)},function(u,p){function g(){this.constructor=u}q(u,p),u.prototype=p===null?Object.create(p):(g.prototype=p.prototype,new g)}),G=Y.seriesTypes.arearange,D=Z.addEvent,E=Z.merge,x=Z.extend,T=function(u){function p(){var g=u!==null&&u.apply(this,arguments)||this;return g.data=void 0,g.options=void 0,g.points=void 0,g}return $(p,u),p.prototype.getColumnMetrics=function(){return this.linkedParent&&this.linkedParent.columnMetrics||R.prototype.getColumnMetrics.call(this)},p.prototype.drawDataLabels=function(){var g=this.pointValKey;G&&(G.prototype.drawDataLabels.call(this),this.data.forEach(function(v){v.y=v[g]}))},p.prototype.toYData=function(g){return[g.low,g.high]},p.defaultOptions=E(W.defaultOptions,U),p}(W);return D(T,"afterTranslate",function(){this.points.forEach(function(u){u.plotLow=u.plotY})},{order:0}),x(T.prototype,{pointArrayMap:["low","high"],pointValKey:"high",doQuartiles:!1}),Y.registerSeriesType("errorbar",T),T}),rt(N,"Series/Gauge/GaugePoint.js",[N["Core/Series/SeriesRegistry.js"]],function(W){var R,U=this&&this.__extends||(R=function(Z,q){return R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function($,G){$.__proto__=G}||function($,G){for(var D in G)G.hasOwnProperty(D)&&($[D]=G[D])},R(Z,q)},function(Z,q){function $(){this.constructor=Z}R(Z,q),Z.prototype=q===null?Object.create(q):($.prototype=q.prototype,new $)}),Y=function(Z){function q(){var $=Z!==null&&Z.apply(this,arguments)||this;return $.options=void 0,$.series=void 0,$.shapeArgs=void 0,$}return U(q,Z),q.prototype.setState=function($){this.state=$},q}(W.series.prototype.pointClass);return Y}),rt(N,"Series/Gauge/GaugeSeries.js",[N["Series/Gauge/GaugePoint.js"],N["Core/Globals.js"],N["Core/Series/SeriesRegistry.js"],N["Core/Utilities.js"]],function(W,R,U,Y){var Z,q=this&&this.__extends||(Z=function(y,C){return Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(P,L){P.__proto__=L}||function(P,L){for(var M in L)L.hasOwnProperty(M)&&(P[M]=L[M])},Z(y,C)},function(y,C){function P(){this.constructor=y}Z(y,C),y.prototype=C===null?Object.create(C):(P.prototype=C.prototype,new P)}),$=R.noop,G=U.series,D=U.seriesTypes.column,E=Y.clamp,x=Y.isNumber,T=Y.extend,u=Y.merge,p=Y.pick,g=Y.pInt,v=function(y){function C(){var P=y!==null&&y.apply(this,arguments)||this;return P.data=void 0,P.points=void 0,P.options=void 0,P.yAxis=void 0,P}return q(C,y),C.prototype.translate=function(){var P=this,L=P.yAxis,M=P.options,f=L.center;P.generatePoints(),P.points.forEach(function(b){var l=u(M.dial,b.dial),h=g(l.radius)*f[2]/200,e=g(l.baseLength)*h/100,r=g(l.rearLength)*h/100,o=l.baseWidth,i=l.topWidth,c=M.overshoot,a=L.startAngleRad+L.translate(b.y,void 0,void 0,void 0,!0);(x(c)||M.wrap===!1)&&(c=x(c)?c/180*Math.PI:0,a=E(a,L.startAngleRad-c,L.endAngleRad+c)),a=180*a/Math.PI,b.shapeType="path";var s=l.path||[["M",-r,-o/2],["L",e,-o/2],["L",h,-i/2],["L",h,i/2],["L",e,o/2],["L",-r,o/2],["Z"]];b.shapeArgs={d:s,translateX:f[0],translateY:f[1],rotation:a},b.plotX=f[0],b.plotY=f[1]})},C.prototype.drawPoints=function(){var P=this,L=P.chart,M=P.yAxis.center,f=P.pivot,b=P.options,l=b.pivot,h=L.renderer;P.points.forEach(function(e){var r=e.graphic,o=e.shapeArgs,i=o.d,c=u(b.dial,e.dial);r?(r.animate(o),o.d=i):e.graphic=h[e.shapeType](o).attr({rotation:o.rotation,zIndex:1}).addClass("highcharts-dial").add(P.group),L.styledMode||e.graphic[r?"animate":"attr"]({stroke:c.borderColor,"stroke-width":c.borderWidth,fill:c.backgroundColor})}),f?f.animate({translateX:M[0],translateY:M[1]}):l&&(P.pivot=h.circle(0,0,l.radius).attr({zIndex:2}).addClass("highcharts-pivot").translate(M[0],M[1]).add(P.group),L.styledMode||P.pivot.attr({fill:l.backgroundColor,stroke:l.borderColor,"stroke-width":l.borderWidth}))},C.prototype.animate=function(P){var L=this;P||L.points.forEach(function(M){var f=M.graphic;f&&(f.attr({rotation:180*L.yAxis.startAngleRad/Math.PI}),f.animate({rotation:M.shapeArgs.rotation},L.options.animation))})},C.prototype.render=function(){this.group=this.plotGroup("group","series",this.visible?"inherit":"hidden",this.options.zIndex,this.chart.seriesGroup),G.prototype.render.call(this),this.group.clip(this.chart.clipRect)},C.prototype.setData=function(P,L){G.prototype.setData.call(this,P,!1),this.processData(),this.generatePoints(),p(L,!0)&&this.chart.redraw()},C.prototype.hasData=function(){return!!this.points.length},C.defaultOptions=u(G.defaultOptions,{dataLabels:{borderColor:"#cccccc",borderRadius:3,borderWidth:1,crop:!1,defer:!1,enabled:!0,verticalAlign:"top",y:15,zIndex:2},dial:{backgroundColor:"#000000",baseLength:"70%",baseWidth:3,borderColor:"#cccccc",borderWidth:0,radius:"80%",rearLength:"10%",topWidth:1},pivot:{radius:5,borderWidth:0,borderColor:"#cccccc",backgroundColor:"#000000"},tooltip:{headerFormat:""},showInLegend:!1}),C}(G);return T(v.prototype,{angular:!0,directTouch:!0,drawGraph:$,drawTracker:D.prototype.drawTracker,fixedBox:!0,forceDL:!0,noSharedTooltip:!0,pointClass:W,trackerGroups:["group","dataLabelsGroup"]}),U.registerSeriesType("gauge",v),v}),rt(N,"Series/DragNodesComposition.js",[N["Core/Utilities.js"]],function(W){var R=W.addEvent,U=[];function Y(){var Z,q,$,G=this;G.container&&(Z=R(G.container,"mousedown",function(D){var E=G.hoverPoint;E&&E.series&&E.series.hasDraggableNodes&&E.series.options.draggable&&(E.series.onMouseDown(E,D),q=R(G.container,"mousemove",function(x){return E&&E.series&&E.series.onMouseMove(E,x)}),$=R(G.container.ownerDocument,"mouseup",function(x){return q(),$(),E&&E.series&&E.series.onMouseUp(E,x)}))})),R(G,"destroy",function(){Z()})}return{compose:function(Z){U.indexOf(Z)===-1&&(U.push(Z),R(Z,"load",Y))},onMouseDown:function(Z,q){var $=this.chart.pointer.normalize(q);Z.fixedPosition={chartX:$.chartX,chartY:$.chartY,plotX:Z.plotX,plotY:Z.plotY},Z.inDragMode=!0},onMouseMove:function(Z,q){if(Z.fixedPosition&&Z.inDragMode){var $=this.chart,G=$.pointer.normalize(q),D=Z.fixedPosition.chartX-G.chartX,E=Z.fixedPosition.chartY-G.chartY,x=$.graphLayoutsLookup,T=void 0,u=void 0;(Math.abs(D)>5||Math.abs(E)>5)&&(T=Z.fixedPosition.plotX-D,u=Z.fixedPosition.plotY-E,$.isInsidePlot(T,u)&&(Z.plotX=T,Z.plotY=u,Z.hasDragged=!0,this.redrawHalo(Z),x.forEach(function(p){p.restartSimulation()})))}},onMouseUp:function(Z,q){Z.fixedPosition&&(Z.hasDragged&&(this.layout.enableSimulation?this.layout.start():this.chart.redraw()),Z.inDragMode=Z.hasDragged=!1,this.options.fixedDraggable||delete Z.fixedPosition)},redrawHalo:function(Z){Z&&this.halo&&this.halo.attr({d:Z.haloPath(this.options.states.hover.halo.size)})}}}),rt(N,"Series/GraphLayoutComposition.js",[N["Core/Animation/AnimationUtilities.js"],N["Core/Utilities.js"]],function(W,R){var U=W.setAnimation,Y=R.addEvent,Z=[];function q(){this.graphLayoutsLookup&&(this.graphLayoutsLookup.forEach(function(E){E.updateSimulation()}),this.redraw())}function $(){this.graphLayoutsLookup&&(this.graphLayoutsLookup.forEach(function(E){E.updateSimulation(!1)}),this.redraw())}function G(){this.graphLayoutsLookup&&this.graphLayoutsLookup.forEach(function(E){E.stop()})}function D(){var E,x=!1,T=function(u){u.maxIterations--&&isFinite(u.temperature)&&!u.isStable()&&!u.enableSimulation&&(u.beforeStep&&u.beforeStep(),u.step(),E=!1,x=!0)};if(this.graphLayoutsLookup){for(U(!1,this),this.graphLayoutsLookup.forEach(function(u){return u.start()});!E;)E=!0,this.graphLayoutsLookup.forEach(T);x&&this.series.forEach(function(u){u&&u.layout&&u.render()})}}return{compose:function(E){Z.indexOf(E)&&(Z.push(E),Y(E,"afterPrint",q),Y(E,"beforePrint",$),Y(E,"predraw",G),Y(E,"render",D))},integrations:{},layouts:{}}}),rt(N,"Series/PackedBubble/PackedBubblePoint.js",[N["Core/Chart/Chart.js"],N["Core/Series/Point.js"],N["Core/Series/SeriesRegistry.js"]],function(W,R,U){var Y,Z=this&&this.__extends||(Y=function($,G){return Y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(D,E){D.__proto__=E}||function(D,E){for(var x in E)E.hasOwnProperty(x)&&(D[x]=E[x])},Y($,G)},function($,G){function D(){this.constructor=$}Y($,G),$.prototype=G===null?Object.create(G):(D.prototype=G.prototype,new D)}),q=function($){function G(){var D=$!==null&&$.apply(this,arguments)||this;return D.degree=NaN,D.mass=NaN,D.radius=NaN,D.options=void 0,D.series=void 0,D.value=null,D}return Z(G,$),G.prototype.destroy=function(){return this.series.layout&&this.series.layout.removeElementFromCollection(this,this.series.layout.nodes),R.prototype.destroy.apply(this,arguments)},G.prototype.firePointEvent=function(){var D=this.series,E=D.options;if(this.isParentNode&&E.parentNode){var x=E.allowPointSelect;E.allowPointSelect=E.parentNode.allowPointSelect,R.prototype.firePointEvent.apply(this,arguments),E.allowPointSelect=x}else R.prototype.firePointEvent.apply(this,arguments)},G.prototype.select=function(){var D=this,E=this.series,x=E.chart;D.isParentNode?(x.getSelectedPoints=x.getSelectedParentNodes,R.prototype.select.apply(this,arguments),x.getSelectedPoints=W.prototype.getSelectedPoints):R.prototype.select.apply(this,arguments)},G}(U.seriesTypes.bubble.prototype.pointClass);return q}),rt(N,"Series/PackedBubble/PackedBubbleSeriesDefaults.js",[N["Core/Utilities.js"]],function(W){var R=W.isNumber;return{minSize:"10%",maxSize:"50%",sizeBy:"area",zoneAxis:"y",crisp:!1,tooltip:{pointFormat:"Value: {point.value}"},draggable:!0,useSimulation:!0,parentNode:{allowPointSelect:!1},dataLabels:{formatter:function(){var U=this.series.chart.numberFormatter,Y=this.point.value;return R(Y)?U(Y,-1):""},parentNodeFormatter:function(){return this.name},parentNodeTextPath:{enabled:!0},padding:0,style:{transition:"opacity 2000ms"}},layoutAlgorithm:{initialPositions:"circle",initialPositionRadius:20,bubblePadding:5,parentNodeLimit:!1,seriesInteraction:!0,dragBetweenSeries:!1,parentNodeOptions:{maxIterations:400,gravitationalConstant:.03,maxSpeed:50,initialPositionRadius:100,seriesInteraction:!0,marker:{fillColor:null,fillOpacity:1,lineWidth:null,lineColor:null,symbol:"circle"}},enableSimulation:!0,type:"packedbubble",integration:"packedbubble",maxIterations:1e3,splitSeries:!1,maxSpeed:5,gravitationalConstant:.01,friction:-.981}}}),rt(N,"Series/Networkgraph/VerletIntegration.js",[],function(){return{attractive:function(W,R,U){var Y=W.getMass(),Z=-U.x*R*this.diffTemperature,q=-U.y*R*this.diffTemperature;W.fromNode.fixedPosition||(W.fromNode.plotX-=Z*Y.fromNode/W.fromNode.degree,W.fromNode.plotY-=q*Y.fromNode/W.fromNode.degree),W.toNode.fixedPosition||(W.toNode.plotX+=Z*Y.toNode/W.toNode.degree,W.toNode.plotY+=q*Y.toNode/W.toNode.degree)},attractiveForceFunction:function(W,R){return(R-W)/W},barycenter:function(){var W=this.options.gravitationalConstant,R=this.barycenter.xFactor,U=this.barycenter.yFactor;R=(R-(this.box.left+this.box.width)/2)*W,U=(U-(this.box.top+this.box.height)/2)*W,this.nodes.forEach(function(Y){Y.fixedPosition||(Y.plotX-=R/Y.mass/Y.degree,Y.plotY-=U/Y.mass/Y.degree)})},getK:function(W){return Math.pow(W.box.width*W.box.height/W.nodes.length,.5)},integrate:function(W,R){var U=-W.options.friction,Y=W.options.maxSpeed,Z=R.prevX,q=R.prevY,$=(R.plotX+R.dispX-Z)*U,G=(R.plotY+R.dispY-q)*U,D=Math.abs,E=D($)/($||1),x=D(G)/(G||1);$=E*Math.min(Y,Math.abs($)),G=x*Math.min(Y,Math.abs(G)),R.prevX=R.plotX+R.dispX,R.prevY=R.plotY+R.dispY,R.plotX+=$,R.plotY+=G,R.temperature=W.vectorLength({x:$,y:G})},repulsive:function(W,R,U){var Y=R*this.diffTemperature/W.mass/W.degree;W.fixedPosition||(W.plotX+=U.x*Y,W.plotY+=U.y*Y)},repulsiveForceFunction:function(W,R){return(R-W)/W*(R>W?1:0)}}}),rt(N,"Series/PackedBubble/PackedBubbleIntegration.js",[N["Core/Globals.js"],N["Series/Networkgraph/VerletIntegration.js"]],function(W,R){return{barycenter:function(){for(var U,Y,Z=this,q=Z.options.gravitationalConstant,$=Z.box,G=Z.nodes,D=0,E=G;D<E.length;D++){var x=E[D];Z.options.splitSeries&&!x.isParentNode?(U=x.series.parentNode.plotX,Y=x.series.parentNode.plotY):(U=$.width/2,Y=$.height/2),x.fixedPosition||(x.plotX-=(x.plotX-U)*q/(x.mass*Math.sqrt(G.length)),x.plotY-=(x.plotY-Y)*q/(x.mass*Math.sqrt(G.length)))}},getK:W.noop,integrate:R.integrate,repulsive:function(U,Y,Z,q){var $=Y*this.diffTemperature/U.mass/U.degree,G=Z.x*$,D=Z.y*$;U.fixedPosition||(U.plotX+=G,U.plotY+=D),q.fixedPosition||(q.plotX-=G,q.plotY-=D)},repulsiveForceFunction:function(U,Y,Z,q){return Math.min(U,(Z.marker.radius+q.marker.radius)/2)}}}),rt(N,"Series/Networkgraph/EulerIntegration.js",[],function(){return{attractive:function(W,R,U,Y){var Z=W.getMass(),q=U.x/Y*R,$=U.y/Y*R;W.fromNode.fixedPosition||(W.fromNode.dispX-=q*Z.fromNode/W.fromNode.degree,W.fromNode.dispY-=$*Z.fromNode/W.fromNode.degree),W.toNode.fixedPosition||(W.toNode.dispX+=q*Z.toNode/W.toNode.degree,W.toNode.dispY+=$*Z.toNode/W.toNode.degree)},attractiveForceFunction:function(W,R){return W*W/R},barycenter:function(){var W=this.options.gravitationalConstant,R=this.barycenter.xFactor,U=this.barycenter.yFactor;this.nodes.forEach(function(Y){if(!Y.fixedPosition){var Z=Y.getDegree(),q=Z*(1+Z/2);Y.dispX+=(R-Y.plotX)*W*q/Y.degree,Y.dispY+=(U-Y.plotY)*W*q/Y.degree}})},getK:function(W){return Math.pow(W.box.width*W.box.height/W.nodes.length,.3)},integrate:function(W,R){var U;R.dispX+=R.dispX*W.options.friction,R.dispY+=R.dispY*W.options.friction,(U=R.temperature=W.vectorLength({x:R.dispX,y:R.dispY}))!==0&&(R.plotX+=R.dispX/U*Math.min(Math.abs(R.dispX),W.temperature),R.plotY+=R.dispY/U*Math.min(Math.abs(R.dispY),W.temperature))},repulsive:function(W,R,U,Y){W.dispX+=U.x/Y*R/W.degree,W.dispY+=U.y/Y*R/W.degree},repulsiveForceFunction:function(W,R){return R*R/W}}}),rt(N,"Series/Networkgraph/QuadTreeNode.js",[],function(){return function(){function W(R){this.body=!1,this.isEmpty=!1,this.isInternal=!1,this.nodes=[],this.box=R,this.boxSize=Math.min(R.width,R.height)}return W.prototype.divideBox=function(){var R=this.box.width/2,U=this.box.height/2;this.nodes[0]=new W({left:this.box.left,top:this.box.top,width:R,height:U}),this.nodes[1]=new W({left:this.box.left+R,top:this.box.top,width:R,height:U}),this.nodes[2]=new W({left:this.box.left+R,top:this.box.top+U,width:R,height:U}),this.nodes[3]=new W({left:this.box.left,top:this.box.top+U,width:R,height:U})},W.prototype.getBoxPosition=function(R){var U=R.plotX<this.box.left+this.box.width/2,Y=R.plotY<this.box.top+this.box.height/2;return U?Y?0:3:Y?1:2},W.prototype.insert=function(R,U){var Y;this.isInternal?this.nodes[this.getBoxPosition(R)].insert(R,U-1):(this.isEmpty=!1,this.body?U?(this.isInternal=!0,this.divideBox(),this.body!==!0&&(this.nodes[this.getBoxPosition(this.body)].insert(this.body,U-1),this.body=!0),this.nodes[this.getBoxPosition(R)].insert(R,U-1)):((Y=new W({top:R.plotX||NaN,left:R.plotY||NaN,width:.1,height:.1})).body=R,Y.isInternal=!1,this.nodes.push(Y)):(this.isInternal=!1,this.body=R))},W.prototype.updateMassAndCenter=function(){var R=0,U=0,Y=0;if(this.isInternal){for(var Z=0,q=this.nodes;Z<q.length;Z++){var $=q[Z];$.isEmpty||(R+=$.mass,U+=$.plotX*$.mass,Y+=$.plotY*$.mass)}U/=R,Y/=R}else this.body&&(R=this.body.mass,U=this.body.plotX,Y=this.body.plotY);this.mass=R,this.plotX=U,this.plotY=Y},W}()}),rt(N,"Series/Networkgraph/QuadTree.js",[N["Series/Networkgraph/QuadTreeNode.js"]],function(W){return function(){function R(U,Y,Z,q){this.box={left:U,top:Y,width:Z,height:q},this.maxDepth=25,this.root=new W(this.box),this.root.isInternal=!0,this.root.isRoot=!0,this.root.divideBox()}return R.prototype.calculateMassAndCenter=function(){this.visitNodeRecursive(null,null,function(U){U.updateMassAndCenter()})},R.prototype.insertNodes=function(U){for(var Y=0,Z=U;Y<Z.length;Y++){var q=Z[Y];this.root.insert(q,this.maxDepth)}},R.prototype.visitNodeRecursive=function(U,Y,Z){var q;if(U||(U=this.root),U===this.root&&Y&&(q=Y(U)),q!==!1){for(var $=0,G=U.nodes;$<G.length;$++){var D=G[$];if(D.isInternal){if(Y&&(q=Y(D)),q===!1)continue;this.visitNodeRecursive(D,Y,Z)}else D.body&&Y&&Y(D.body);Z&&Z(D)}U===this.root&&Z&&Z(U)}},R}()}),rt(N,"Series/Networkgraph/ReingoldFruchtermanLayout.js",[N["Series/Networkgraph/EulerIntegration.js"],N["Core/Globals.js"],N["Series/GraphLayoutComposition.js"],N["Series/Networkgraph/QuadTree.js"],N["Core/Utilities.js"],N["Series/Networkgraph/VerletIntegration.js"]],function(W,R,U,Y,Z,q){var $=R.win,G=Z.clamp,D=Z.defined,E=Z.isFunction,x=Z.pick,T=function(){function u(){this.attractiveForce=void 0,this.box={},this.currentStep=0,this.initialRendering=!0,this.integration=void 0,this.links=[],this.nodes=[],this.options=void 0,this.quadTree=void 0,this.repulsiveForce=void 0,this.series=[],this.simulation=!1}return u.compose=function(p){U.compose(p),U.integrations.euler=W,U.integrations.verlet=q,U.layouts["reingold-fruchterman"]=u},u.prototype.init=function(p){this.options=p,this.nodes=[],this.links=[],this.series=[],this.box={x:0,y:0,width:0,height:0},this.setInitialRendering(!0),this.integration=U.integrations[p.integration],this.enableSimulation=p.enableSimulation,this.attractiveForce=x(p.attractiveForce,this.integration.attractiveForceFunction),this.repulsiveForce=x(p.repulsiveForce,this.integration.repulsiveForceFunction),this.approximation=p.approximation},u.prototype.updateSimulation=function(p){this.enableSimulation=x(p,this.options.enableSimulation)},u.prototype.start=function(){var p=this,g=this.series,v=this.options;p.currentStep=0,p.forces=g[0]&&g[0].forces||[],p.chart=g[0]&&g[0].chart,p.initialRendering&&(p.initPositions(),g.forEach(function(y){y.finishedAnimating=!0,y.render()})),p.setK(),p.resetSimulation(v),p.enableSimulation&&p.step()},u.prototype.step=function(){var p=this,g=this.series;this.currentStep++,this.approximation==="barnes-hut"&&(this.createQuadTree(),this.quadTree.calculateMassAndCenter());for(var v=0,y=this.forces||[];v<y.length;v++)this[y[v]+"Forces"](this.temperature);if(this.applyLimits(),this.temperature=this.coolDown(this.startTemperature,this.diffTemperature,this.currentStep),this.prevSystemTemperature=this.systemTemperature,this.systemTemperature=this.getSystemTemperature(),this.enableSimulation){for(var C=0,P=g;C<P.length;C++){var L=P[C];L.chart&&L.render()}this.maxIterations--&&isFinite(this.temperature)&&!this.isStable()?(this.simulation&&$.cancelAnimationFrame(this.simulation),this.simulation=$.requestAnimationFrame(function(){return p.step()})):this.simulation=!1}},u.prototype.stop=function(){this.simulation&&$.cancelAnimationFrame(this.simulation)},u.prototype.setArea=function(p,g,v,y){this.box={left:p,top:g,width:v,height:y}},u.prototype.setK=function(){this.k=this.options.linkLength||this.integration.getK(this)},u.prototype.addElementsToCollection=function(p,g){for(var v=0,y=p;v<y.length;v++){var C=y[v];g.indexOf(C)===-1&&g.push(C)}},u.prototype.removeElementFromCollection=function(p,g){var v=g.indexOf(p);v!==-1&&g.splice(v,1)},u.prototype.clear=function(){this.nodes.length=0,this.links.length=0,this.series.length=0,this.resetSimulation()},u.prototype.resetSimulation=function(){this.forcedStop=!1,this.systemTemperature=0,this.setMaxIterations(),this.setTemperature(),this.setDiffTemperature()},u.prototype.restartSimulation=function(){this.simulation?this.resetSimulation():(this.setInitialRendering(!1),this.enableSimulation?this.start():this.setMaxIterations(1),this.chart&&this.chart.redraw(),this.setInitialRendering(!0))},u.prototype.setMaxIterations=function(p){this.maxIterations=x(p,this.options.maxIterations)},u.prototype.setTemperature=function(){this.temperature=this.startTemperature=Math.sqrt(this.nodes.length)},u.prototype.setDiffTemperature=function(){this.diffTemperature=this.startTemperature/(this.options.maxIterations+1)},u.prototype.setInitialRendering=function(p){this.initialRendering=p},u.prototype.createQuadTree=function(){this.quadTree=new Y(this.box.left,this.box.top,this.box.width,this.box.height),this.quadTree.insertNodes(this.nodes)},u.prototype.initPositions=function(){var p=this.options.initialPositions;if(E(p)){p.call(this);for(var g=0,v=this.nodes;g<v.length;g++){var y=v[g];D(y.prevX)||(y.prevX=y.plotX),D(y.prevY)||(y.prevY=y.plotY),y.dispX=0,y.dispY=0}}else p==="circle"?this.setCircularPositions():this.setRandomPositions()},u.prototype.setCircularPositions=function(){for(var p,g=this.box,v=this.nodes,y=v.length+1,C=2*Math.PI/y,P=v.filter(function(s){return s.linksTo.length===0}),L={},M=this.options.initialPositionRadius,f=function(s){for(var m=0,A=s.linksFrom||[];m<A.length;m++){var O=A[m];L[O.toNode.id]||(L[O.toNode.id]=!0,b.push(O.toNode),f(O.toNode))}},b=[],l=0,h=P;l<h.length;l++){var e=h[l];b.push(e),f(e)}if(b.length)for(var r=0,o=v;r<o.length;r++){var i=o[r];b.indexOf(i)===-1&&b.push(i)}else b=v;for(var c=0,a=b.length;c<a;++c)(p=b[c]).plotX=p.prevX=x(p.plotX,g.width/2+M*Math.cos(c*C)),p.plotY=p.prevY=x(p.plotY,g.height/2+M*Math.sin(c*C)),p.dispX=0,p.dispY=0},u.prototype.setRandomPositions=function(){for(var p,g=this.box,v=this.nodes,y=v.length+1,C=function(M){var f=M*M/Math.PI;return f-Math.floor(f)},P=0,L=v.length;P<L;++P)(p=v[P]).plotX=p.prevX=x(p.plotX,g.width*C(P)),p.plotY=p.prevY=x(p.plotY,g.height*C(y+P)),p.dispX=0,p.dispY=0},u.prototype.force=function(p){for(var g=[],v=1;v<arguments.length;v++)g[v-1]=arguments[v];this.integration[p].apply(this,g)},u.prototype.barycenterForces=function(){this.getBarycenter(),this.force("barycenter")},u.prototype.getBarycenter=function(){for(var p=0,g=0,v=0,y=0,C=this.nodes;y<C.length;y++){var P=C[y];g+=P.plotX*P.mass,v+=P.plotY*P.mass,p+=P.mass}return this.barycenter={x:g,y:v,xFactor:g/p,yFactor:v/p},this.barycenter},u.prototype.barnesHutApproximation=function(p,g){var v,y,C=this.getDistXY(p,g),P=this.vectorLength(C);return p!==g&&P!==0&&(g.isInternal?g.boxSize/P<this.options.theta&&P!==0?(y=this.repulsiveForce(P,this.k),this.force("repulsive",p,y*g.mass,C,P),v=!1):v=!0:(y=this.repulsiveForce(P,this.k),this.force("repulsive",p,y*g.mass,C,P))),v},u.prototype.repulsiveForces=function(){var p=this;if(this.approximation==="barnes-hut")for(var g=function(o){v.quadTree.visitNodeRecursive(null,function(i){return p.barnesHutApproximation(o,i)})},v=this,y=0,C=this.nodes;y<C.length;y++)g(l=C[y]);else for(var P=void 0,L=void 0,M=void 0,f=0,b=this.nodes;f<b.length;f++)for(var l=b[f],h=0,e=this.nodes;h<e.length;h++){var r=e[h];l===r||l.fixedPosition||(M=this.getDistXY(l,r),(L=this.vectorLength(M))!==0&&(P=this.repulsiveForce(L,this.k),this.force("repulsive",l,P*r.mass,M,L)))}},u.prototype.attractiveForces=function(){for(var p,g,v,y=0,C=this.links;y<C.length;y++){var P=C[y];P.fromNode&&P.toNode&&(p=this.getDistXY(P.fromNode,P.toNode),(g=this.vectorLength(p))!==0&&(v=this.attractiveForce(g,this.k),this.force("attractive",P,v,p,g)))}},u.prototype.applyLimits=function(){for(var p=0,g=this.nodes;p<g.length;p++){var v=g[p];if(v.fixedPosition)return;this.integration.integrate(this,v),this.applyLimitBox(v,this.box),v.dispX=0,v.dispY=0}},u.prototype.applyLimitBox=function(p,g){var v=p.radius;p.plotX=G(p.plotX,g.left+v,g.width-v),p.plotY=G(p.plotY,g.top+v,g.height-v)},u.prototype.coolDown=function(p,g,v){return p-g*v},u.prototype.isStable=function(){return Math.abs(this.systemTemperature-this.prevSystemTemperature)<1e-5||this.temperature<=0},u.prototype.getSystemTemperature=function(){for(var p=0,g=0,v=this.nodes;g<v.length;g++)p+=v[g].temperature;return p},u.prototype.vectorLength=function(p){return Math.sqrt(p.x*p.x+p.y*p.y)},u.prototype.getDistR=function(p,g){var v=this.getDistXY(p,g);return this.vectorLength(v)},u.prototype.getDistXY=function(p,g){var v=p.plotX-g.plotX,y=p.plotY-g.plotY;return{x:v,y,absX:Math.abs(v),absY:Math.abs(y)}},u}();return T}),rt(N,"Series/PackedBubble/PackedBubbleLayout.js",[N["Series/GraphLayoutComposition.js"],N["Series/PackedBubble/PackedBubbleIntegration.js"],N["Series/Networkgraph/ReingoldFruchtermanLayout.js"],N["Core/Utilities.js"]],function(W,R,U,Y){var Z,q=this&&this.__extends||(Z=function(u,p){return Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,v){g.__proto__=v}||function(g,v){for(var y in v)v.hasOwnProperty(y)&&(g[y]=v[y])},Z(u,p)},function(u,p){function g(){this.constructor=u}Z(u,p),u.prototype=p===null?Object.create(p):(g.prototype=p.prototype,new g)}),$=Y.addEvent,G=Y.pick,D=[];function E(){var u=this.series,p=[];return u.forEach(function(g){g.parentNode&&g.parentNode.selected&&p.push(g.parentNode)}),p}function x(){this.allDataPoints&&delete this.allDataPoints}var T=function(u){function p(){var g=u!==null&&u.apply(this,arguments)||this;return g.index=NaN,g.nodes=[],g.options=void 0,g.series=[],g}return q(p,u),p.compose=function(g){U.compose(g),W.integrations.packedbubble=R,W.layouts.packedbubble=p,D.indexOf(g)===-1&&(D.push(g),$(g,"beforeRedraw",x),g.prototype.getSelectedParentNodes=E)},p.prototype.beforeStep=function(){this.options.marker&&this.series.forEach(function(g){g&&g.calculateParentRadius()})},p.prototype.isStable=function(){var g=Math.abs(this.prevSystemTemperature-this.systemTemperature),v=10*this.systemTemperature/Math.sqrt(this.nodes.length);return Math.abs(v)<1&&g<1e-5||this.temperature<=0},p.prototype.setCircularPositions=function(){for(var g,v,y=this,C=y.box,P=y.nodes,L=P.length+1,M=2*Math.PI/L,f=y.options.initialPositionRadius,b=0,l=0,h=P;l<h.length;l++){var e=h[l];y.options.splitSeries&&!e.isParentNode?(g=e.series.parentNode.plotX,v=e.series.parentNode.plotY):(g=C.width/2,v=C.height/2),e.plotX=e.prevX=G(e.plotX,g+f*Math.cos(e.index||b*M)),e.plotY=e.prevY=G(e.plotY,v+f*Math.sin(e.index||b*M)),e.dispX=0,e.dispY=0,b++}},p.prototype.repulsiveForces=function(){var g,v,y,C=this,P=C.options.bubblePadding;C.nodes.forEach(function(L){L.degree=L.mass,L.neighbours=0,C.nodes.forEach(function(M){g=0,L===M||L.fixedPosition||!C.options.seriesInteraction&&L.series!==M.series||(y=C.getDistXY(L,M),(v=C.vectorLength(y)-(L.marker.radius+M.marker.radius+P))<0&&(L.degree+=.01,L.neighbours++,g=C.repulsiveForce(-v/Math.sqrt(L.neighbours),C.k,L,M)),C.force("repulsive",L,g*M.mass,y,M,v))})})},p.prototype.applyLimitBox=function(g,v){var y,C,P=this;P.options.splitSeries&&!g.isParentNode&&P.options.parentNodeLimit&&(y=P.getDistXY(g,g.series.parentNode),(C=g.series.parentNodeRadius-g.marker.radius-P.vectorLength(y))<0&&C>-2*g.marker.radius&&(g.plotX-=.01*y.x,g.plotY-=.01*y.y)),u.prototype.applyLimitBox.call(this,g,v)},p}(U);return W.layouts.packedbubble=T,T}),rt(N,"Series/PackedBubble/PackedBubbleSeries.js",[N["Core/Color/Color.js"],N["Series/DragNodesComposition.js"],N["Series/GraphLayoutComposition.js"],N["Core/Globals.js"],N["Series/PackedBubble/PackedBubblePoint.js"],N["Series/PackedBubble/PackedBubbleSeriesDefaults.js"],N["Series/PackedBubble/PackedBubbleLayout.js"],N["Core/Series/SeriesRegistry.js"],N["Core/Utilities.js"]],function(W,R,U,Y,Z,q,$,G,D){var E,x=this&&this.__extends||(E=function(e,r){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,i){o.__proto__=i}||function(o,i){for(var c in i)i.hasOwnProperty(c)&&(o[c]=i[c])},E(e,r)},function(e,r){function o(){this.constructor=e}E(e,r),e.prototype=r===null?Object.create(r):(o.prototype=r.prototype,new o)}),T=W.parse,u=Y.noop,p=G.series.prototype,g=G.seriesTypes.bubble,v=D.addEvent,y=D.clamp,C=D.defined,P=D.extend,L=D.fireEvent,M=D.isArray,f=D.isNumber,b=D.merge,l=D.pick,h=function(e){function r(){var o=e!==null&&e.apply(this,arguments)||this;return o.chart=void 0,o.data=void 0,o.layout=void 0,o.options=void 0,o.parentNodeMass=0,o.points=void 0,o.xData=void 0,o}return x(r,e),r.compose=function(o,i,c,a){g.compose(o,i,c,a),R.compose(i),$.compose(i)},r.prototype.accumulateAllPoints=function(){for(var o,i=this.chart,c=[],a=0,s=i.series;a<s.length;a++){var m=s[a];if(m.is("packedbubble")&&m.visible||!i.options.chart.ignoreHiddenSeries){o=m.yData||[];for(var A=0;A<o.length;A++)c.push([null,null,o[A],m.index,A,{id:A,marker:{radius:0}}])}}return c},r.prototype.addLayout=function(){var o,i=this.options.layoutAlgorithm=this.options.layoutAlgorithm||{},c=i.type||"packedbubble",a=this.chart.options.chart,s=this.chart.graphLayoutsStorage,m=this.chart.graphLayoutsLookup;s||(this.chart.graphLayoutsStorage=s={},this.chart.graphLayoutsLookup=m=[]),(o=s[c])||(i.enableSimulation=C(a.forExport)?!a.forExport:i.enableSimulation,s[c]=o=new U.layouts[c],o.init(i),m.splice(o.index,0,o)),this.layout=o,this.points.forEach(function(A){A.mass=2,A.degree=1,A.collisionNmb=1}),o.setArea(0,0,this.chart.plotWidth,this.chart.plotHeight),o.addElementsToCollection([this],o.series),o.addElementsToCollection(this.points,o.nodes)},r.prototype.addSeriesLayout=function(){var o=this.options.layoutAlgorithm=this.options.layoutAlgorithm||{},i=o.type||"packedbubble",c=this.chart.graphLayoutsStorage,a=this.chart.graphLayoutsLookup,s=b(o,o.parentNodeOptions,{enableSimulation:this.layout.options.enableSimulation}),m=c[i+"-series"];m||(c[i+"-series"]=m=new U.layouts[i],m.init(s),a.splice(m.index,0,m)),this.parentNodeLayout=m,this.createParentNodes()},r.prototype.calculateParentRadius=function(){var o=this.seriesBox();this.parentNodeRadius=y(Math.sqrt(2*this.parentNodeMass/Math.PI)+20,20,o?Math.max(Math.sqrt(Math.pow(o.width,2)+Math.pow(o.height,2))/2+20,20):Math.sqrt(2*this.parentNodeMass/Math.PI)+20),this.parentNode&&(this.parentNode.marker.radius=this.parentNode.radius=this.parentNodeRadius)},r.prototype.calculateZExtremes=function(){var o=this.chart.series,i=this.options.zMin,c=this.options.zMax,a=1/0,s=-1/0;return i&&c?[i,c]:(o.forEach(function(m){m.yData.forEach(function(A){C(A)&&(A>s&&(s=A),A<a&&(a=A))})}),[i=l(i,a),c=l(c,s)])},r.prototype.checkOverlap=function(o,i){var c=o[0]-i[0],a=o[1]-i[1],s=o[2]+i[2];return Math.sqrt(c*c+a*a)-Math.abs(s)<-.001},r.prototype.createParentNodes=function(){var o,i=this,c=this.pointClass,a=this.chart,s=this.parentNodeLayout,m=this.layout.options,A=this.parentNode,O={radius:this.parentNodeRadius,lineColor:this.color,fillColor:T(this.color).brighten(.4).get()};m.parentNodeOptions&&(O=b(m.parentNodeOptions.marker||{},O)),this.parentNodeMass=0,this.points.forEach(function(d){i.parentNodeMass+=Math.PI*Math.pow(d.marker.radius,2)}),this.calculateParentRadius(),s.nodes.forEach(function(d){d.seriesIndex===i.index&&(o=!0)}),s.setArea(0,0,a.plotWidth,a.plotHeight),o||(A||(A=new c().init(this,{mass:this.parentNodeRadius/2,marker:O,dataLabels:{inside:!1},states:{normal:{marker:O},hover:{marker:O}},dataLabelOnNull:!0,degree:this.parentNodeRadius,isParentNode:!0,seriesIndex:this.index})),this.parentNode&&(A.plotX=this.parentNode.plotX,A.plotY=this.parentNode.plotY),this.parentNode=A,s.addElementsToCollection([this],s.series),s.addElementsToCollection([A],s.nodes))},r.prototype.deferLayout=function(){var o=this.options.layoutAlgorithm;this.visible&&(this.addLayout(),o.splitSeries&&this.addSeriesLayout())},r.prototype.destroy=function(){var o=this;this.chart.graphLayoutsLookup&&this.chart.graphLayoutsLookup.forEach(function(i){i.removeElementFromCollection(o,i.series)},this),this.parentNode&&this.parentNodeLayout&&(this.parentNodeLayout.removeElementFromCollection(this.parentNode,this.parentNodeLayout.nodes),this.parentNode.dataLabel&&(this.parentNode.dataLabel=this.parentNode.dataLabel.destroy())),p.destroy.apply(this,arguments)},r.prototype.drawDataLabels=function(){p.drawDataLabels.call(this,this.points),this.parentNode&&(this.parentNode.formatPrefix="parentNode",p.drawDataLabels.call(this,[this.parentNode]))},r.prototype.drawGraph=function(){if(this.layout&&this.layout.options.splitSeries){var o,i=this.chart,c=this.layout.options.parentNodeOptions.marker,a={fill:c.fillColor||T(this.color).brighten(.4).get(),opacity:c.fillOpacity,stroke:c.lineColor||this.color,"stroke-width":l(c.lineWidth,this.options.lineWidth)};this.parentNodesGroup||(this.parentNodesGroup=this.plotGroup("parentNodesGroup","parentNode",this.visible?"inherit":"hidden",.1,i.seriesGroup),this.group.attr({zIndex:2})),this.calculateParentRadius(),o=b({x:this.parentNode.plotX-this.parentNodeRadius,y:this.parentNode.plotY-this.parentNodeRadius,width:2*this.parentNodeRadius,height:2*this.parentNodeRadius},a),this.parentNode.graphic||(this.graph=this.parentNode.graphic=i.renderer.symbol(a.symbol).add(this.parentNodesGroup)),this.parentNode.graphic.attr(o)}},r.prototype.drawTracker=function(){var o,i=this.parentNode;e.prototype.drawTracker.call(this),i&&(o=M(i.dataLabels)?i.dataLabels:i.dataLabel?[i.dataLabel]:[],i.graphic&&(i.graphic.element.point=i),o.forEach(function(c){c.div?c.div.point=i:c.element.point=i}))},r.prototype.getPointRadius=function(){var o,i,c,a,s=this,m=this.chart,A=m.plotWidth,O=m.plotHeight,d=this.options,w=d.useSimulation,k=Math.min(A,O),z={},F=[],j=m.allDataPoints||[],I=j.length;["minSize","maxSize"].forEach(function(V){var X=parseInt(d[V],10),H=/%$/.test(d[V]);z[V]=H?k*X/100:X*Math.sqrt(I)}),m.minRadius=o=z.minSize/Math.sqrt(I),m.maxRadius=i=z.maxSize/Math.sqrt(I);var _=w?this.calculateZExtremes():[o,i];j.forEach(function(V,X){c=w?y(V[2],_[0],_[1]):V[2],(a=s.getRadius(_[0],_[1],o,i,c))===0&&(a=null),j[X][2]=a,F.push(a)}),this.radii=F},r.prototype.init=function(){return p.init.apply(this,arguments),this.eventsToUnbind.push(v(this,"updatedData",function(){var o=this;this.chart.series.forEach(function(i){i.type===o.type&&(i.isDirty=!0)},this)})),this},r.prototype.onMouseUp=function(o){var i=o;if(i.fixedPosition&&!i.removed){var c,a=this.layout,s=this.parentNodeLayout;s&&a.options.dragBetweenSeries&&s.nodes.forEach(function(m){i&&i.marker&&m!==i.series.parentNode&&(c=a.getDistXY(i,m),a.vectorLength(c)-m.marker.radius-i.marker.radius<0&&(m.series.addPoint(b(i.options,{plotX:i.plotX,plotY:i.plotY}),!1),a.removeElementFromCollection(i,a.nodes),i.remove()))}),R.onMouseUp.apply(this,arguments)}},r.prototype.placeBubbles=function(o){var i,c,a=this.checkOverlap,s=this.positionBubble,m=[],A=1,O=0,d=0,w=[],k=o.sort(function(z,F){return F[2]-z[2]});if(k.length){if(m.push([[0,0,k[0][2],k[0][3],k[0][4]]]),k.length>1)for(m.push([[0,0-k[1][2]-k[0][2],k[1][2],k[1][3],k[1][4]]]),c=2;c<k.length;c++)k[c][2]=k[c][2]||1,a(i=s(m[A][O],m[A-1][d],k[c]),m[A][0])?(m.push([]),d=0,m[A+1].push(s(m[A][O],m[A][0],k[c])),A++,O=0):A>1&&m[A-1][d+1]&&a(i,m[A-1][d+1])?(d++,m[A].push(s(m[A][O],m[A-1][d],k[c])),O++):(O++,m[A].push(i));this.chart.stages=m,this.chart.rawPositions=[].concat.apply([],m),this.resizeRadius(),w=this.chart.rawPositions}return w},r.prototype.pointAttribs=function(o,i){var c=this.options,a=o&&o.isParentNode,s=c.marker;a&&c.layoutAlgorithm&&c.layoutAlgorithm.parentNodeOptions&&(s=c.layoutAlgorithm.parentNodeOptions.marker);var m=s.fillOpacity,A=p.pointAttribs.call(this,o,i);return m!==1&&(A["fill-opacity"]=m),A},r.prototype.positionBubble=function(o,i,c){var a=Math.sqrt,s=Math.asin,m=Math.acos,A=Math.pow,O=Math.abs,d=a(A(o[0]-i[0],2)+A(o[1]-i[1],2)),w=m((A(d,2)+A(c[2]+i[2],2)-A(c[2]+o[2],2))/(2*(c[2]+i[2])*d)),k=s(O(o[0]-i[0])/d),z=(o[1]-i[1]<0?0:Math.PI)+w+k*((o[0]-i[0])*(o[1]-i[1])<0?1:-1),F=Math.cos(z),j=Math.sin(z);return[i[0]+(i[2]+c[2])*j,i[1]-(i[2]+c[2])*F,c[2],c[3],c[4]]},r.prototype.render=function(){var o=[];p.render.apply(this,arguments),this.options.dataLabels.allowOverlap||(this.data.forEach(function(i){M(i.dataLabels)&&i.dataLabels.forEach(function(c){o.push(c)})}),this.options.useSimulation&&this.chart.hideOverlappingLabels(o))},r.prototype.resizeRadius=function(){var o,i,c,a,s,m=this.chart,A=m.rawPositions,O=Math.min,d=Math.max,w=m.plotLeft,k=m.plotTop,z=m.plotHeight,F=m.plotWidth;o=c=Number.POSITIVE_INFINITY,i=a=Number.NEGATIVE_INFINITY;for(var j=0,I=A;j<I.length;j++)s=(et=I[j])[2],o=O(o,et[0]-s),i=d(i,et[0]+s),c=O(c,et[1]-s),a=d(a,et[1]+s);var _=[i-o,a-c],V=[(F-w)/_[0],(z-k)/_[1]],X=O.apply([],V);if(Math.abs(X-1)>1e-10){for(var H=0,Q=A;H<Q.length;H++){var et;(et=Q[H])[2]*=X}this.placeBubbles(A)}else m.diffY=z/2+k-c-(a-c)/2,m.diffX=F/2+w-o-(i-o)/2},r.prototype.seriesBox=function(){var o,i=this.chart,c=this.data,a=Math.max,s=Math.min,m=[i.plotLeft,i.plotLeft+i.plotWidth,i.plotTop,i.plotTop+i.plotHeight];return c.forEach(function(A){C(A.plotX)&&C(A.plotY)&&A.marker.radius&&(o=A.marker.radius,m[0]=s(m[0],A.plotX-o),m[1]=a(m[1],A.plotX+o),m[2]=s(m[2],A.plotY-o),m[3]=a(m[3],A.plotY+o))}),f(m.width/m.height)?m:null},r.prototype.setVisible=function(){var o=this;p.setVisible.apply(o,arguments),o.parentNodeLayout&&o.graph?o.visible?(o.graph.show(),o.parentNode.dataLabel&&o.parentNode.dataLabel.show()):(o.graph.hide(),o.parentNodeLayout.removeElementFromCollection(o.parentNode,o.parentNodeLayout.nodes),o.parentNode.dataLabel&&o.parentNode.dataLabel.hide()):o.layout&&(o.visible?o.layout.addElementsToCollection(o.points,o.layout.nodes):o.points.forEach(function(i){o.layout.removeElementFromCollection(i,o.layout.nodes)}))},r.prototype.translate=function(){var o,i,c,a=this.chart,s=this.data,m=this.index,A=this.options.useSimulation;this.processedXData=this.xData,this.generatePoints(),C(a.allDataPoints)||(a.allDataPoints=this.accumulateAllPoints(),this.getPointRadius()),A?c=a.allDataPoints:(c=this.placeBubbles(a.allDataPoints),this.options.draggable=!1);for(var O=0,d=c;O<d.length;O++){var w=d[O];w[3]===m&&(o=s[w[4]],i=l(w[2],void 0),A||(o.plotX=w[0]-a.plotLeft+a.diffX,o.plotY=w[1]-a.plotTop+a.diffY),f(i)&&(o.marker=P(o.marker,{radius:i,width:2*i,height:2*i}),o.radius=i))}A&&this.deferLayout(),L(this,"afterTranslate")},r.defaultOptions=b(g.defaultOptions,q),r}(g);return P(h.prototype,{pointClass:Z,axisTypes:[],directTouch:!0,forces:["barycenter","repulsive"],hasDraggableNodes:!0,isCartesian:!1,noSharedTooltip:!0,pointArrayMap:["value"],pointValKey:"value",requireSorting:!1,trackerGroups:["group","dataLabelsGroup","parentNodesGroup"],alignDataLabel:p.alignDataLabel,indexateNodes:u,onMouseDown:R.onMouseDown,onMouseMove:R.onMouseMove,redrawHalo:R.redrawHalo,searchPoint:u}),G.registerSeriesType("packedbubble",h),h}),rt(N,"Series/Polygon/PolygonSeries.js",[N["Core/Globals.js"],N["Core/Legend/LegendSymbol.js"],N["Core/Series/SeriesRegistry.js"],N["Core/Utilities.js"]],function(W,R,U,Y){var Z,q=this&&this.__extends||(Z=function(v,y){return Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,P){C.__proto__=P}||function(C,P){for(var L in P)P.hasOwnProperty(L)&&(C[L]=P[L])},Z(v,y)},function(v,y){function C(){this.constructor=v}Z(v,y),v.prototype=y===null?Object.create(y):(C.prototype=y.prototype,new C)}),$=W.noop,G=U.series,D=U.seriesTypes,E=D.area,x=D.line,T=D.scatter,u=Y.extend,p=Y.merge,g=function(v){function y(){var C=v!==null&&v.apply(this,arguments)||this;return C.data=void 0,C.options=void 0,C.points=void 0,C}return q(y,v),y.prototype.getGraphPath=function(){for(var C=x.prototype.getGraphPath.call(this),P=C.length+1;P--;)(P===C.length||C[P][0]==="M")&&P>0&&C.splice(P,0,["Z"]);return this.areaPath=C,C},y.prototype.drawGraph=function(){this.options.fillColor=this.color,E.prototype.drawGraph.call(this)},y.defaultOptions=p(T.defaultOptions,{marker:{enabled:!1,states:{hover:{enabled:!1}}},stickyTracking:!1,tooltip:{followPointer:!0,pointFormat:""},trackByArea:!0}),y}(T);return u(g.prototype,{type:"polygon",drawLegendSymbol:R.drawRectangle,drawTracker:G.prototype.drawTracker,setStackedPoints:$}),U.registerSeriesType("polygon",g),g}),rt(N,"Core/Axis/WaterfallAxis.js",[N["Core/Axis/Stacking/StackItem.js"],N["Core/Utilities.js"]],function(W,R){var U,Y=R.addEvent,Z=R.objectEach;return function(q){var $=function(){function T(u){this.axis=u,this.stacks={changed:!1}}return T.prototype.renderStackTotals=function(){var u=this.axis,p=u.waterfall.stacks,g=u.stacking&&u.stacking.stackTotalGroup,v=new W(u,u.options.stackLabels||{},!1,0,void 0);this.dummyStackItem=v,g&&Z(p,function(y){Z(y,function(C,P){v.total=C.stackTotal,v.x=+P,C.label&&(v.label=C.label),W.prototype.render.call(v,g),C.label=v.label,delete v.label})}),v.total=null},T}();function G(){var T=this.waterfall.stacks;T&&(T.changed=!1,delete T.alreadyChanged)}function D(){var T=this,u=T.options.stackLabels;u&&u.enabled&&T.waterfall.stacks&&T.waterfall.renderStackTotals()}function E(){for(var T=this.axes,u=this.series,p=u.length;p--;)u[p].options.stacking&&(T.forEach(function(g){g.isXAxis||(g.waterfall.stacks.changed=!0)}),p=0)}function x(){var T=this;T.waterfall||(T.waterfall=new $(T))}q.Composition=$,q.compose=function(T,u){Y(T,"init",x),Y(T,"afterBuildStacks",G),Y(T,"afterRender",D),Y(u,"beforeRedraw",E)}}(U||(U={})),U}),rt(N,"Series/Waterfall/WaterfallPoint.js",[N["Series/Column/ColumnSeries.js"],N["Core/Series/Point.js"],N["Core/Utilities.js"]],function(W,R,U){var Y,Z=this&&this.__extends||(Y=function(G,D){return Y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,x){E.__proto__=x}||function(E,x){for(var T in x)x.hasOwnProperty(T)&&(E[T]=x[T])},Y(G,D)},function(G,D){function E(){this.constructor=G}Y(G,D),G.prototype=D===null?Object.create(D):(E.prototype=D.prototype,new E)}),q=U.isNumber,$=function(G){function D(){var E=G!==null&&G.apply(this,arguments)||this;return E.options=void 0,E.series=void 0,E}return Z(D,G),D.prototype.getClassName=function(){var E=R.prototype.getClassName.call(this);return this.isSum?E+=" highcharts-sum":this.isIntermediateSum&&(E+=" highcharts-intermediate-sum"),E},D.prototype.isValid=function(){return q(this.y)||this.isSum||!!this.isIntermediateSum},D}(W.prototype.pointClass);return $}),rt(N,"Series/Waterfall/WaterfallSeries.js",[N["Core/Axis/Axis.js"],N["Core/Chart/Chart.js"],N["Core/Series/SeriesRegistry.js"],N["Core/Utilities.js"],N["Core/Axis/WaterfallAxis.js"],N["Series/Waterfall/WaterfallPoint.js"]],function(W,R,U,Y,Z,q){var $,G=this&&this.__extends||($=function(f,b){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,h){l.__proto__=h}||function(l,h){for(var e in h)h.hasOwnProperty(e)&&(l[e]=h[e])},$(f,b)},function(f,b){function l(){this.constructor=f}$(f,b),f.prototype=b===null?Object.create(b):(l.prototype=b.prototype,new l)}),D=U.seriesTypes,E=D.column,x=D.line,T=Y.arrayMax,u=Y.arrayMin,p=Y.correctFloat,g=Y.extend,v=Y.isNumber,y=Y.merge,C=Y.objectEach,P=Y.pick;function L(f,b){return Object.hasOwnProperty.call(f,b)}var M=function(f){function b(){var l=f!==null&&f.apply(this,arguments)||this;return l.chart=void 0,l.data=void 0,l.options=void 0,l.points=void 0,l.stackedYNeg=void 0,l.stackedYPos=void 0,l.stackKey=void 0,l.xData=void 0,l.yAxis=void 0,l.yData=void 0,l}return G(b,f),b.prototype.generatePoints=function(){E.prototype.generatePoints.apply(this);for(var l=0,h=this.points.length;l<h;l++){var e=this.points[l],r=this.processedYData[l];v(r)&&(e.isIntermediateSum||e.isSum)&&(e.y=p(r))}},b.prototype.translate=function(){var l,h,e,r,o=this,i=o.options,c=o.yAxis,a=P(i.minPointLength,5),s=a/2,m=i.threshold||0,A=i.stacking,O=c.waterfall.stacks[o.stackKey],d=m,w=m;E.prototype.translate.apply(o);for(var k=o.points,z=0;z<k.length;z++){var F=k[z],j=o.processedYData[z],I=F.shapeArgs;if(I&&v(j)){var _=[0,j],V=F.y;if(A){if(O){var X=O[z];A==="overlap"?(h=X.stackState[X.stateIndex--],l=V>=0?h:h-V,L(X,"absolutePos")&&delete X.absolutePos,L(X,"absoluteNeg")&&delete X.absoluteNeg):(V>=0?(h=X.threshold+X.posTotal,X.posTotal-=V,l=h):(h=X.threshold+X.negTotal,X.negTotal-=V,l=h-V),X.posTotal||v(X.absolutePos)&&L(X,"absolutePos")&&(X.posTotal=X.absolutePos,delete X.absolutePos),X.negTotal||v(X.absoluteNeg)&&L(X,"absoluteNeg")&&(X.negTotal=X.absoluteNeg,delete X.absoluteNeg)),F.isSum||(X.connectorThreshold=X.threshold+X.stackTotal),c.reversed?(e=V>=0?l-V:l+V,r=l):(e=l,r=l-V),F.below=e<=m,I.y=c.translate(e,!1,!0,!1,!0),I.height=Math.abs(I.y-c.translate(r,!1,!0,!1,!0));var H=c.waterfall.dummyStackItem;H&&(H.x=z,H.label=O[z].label,H.setOffset(o.pointXOffset||0,o.barW||0,o.stackedYNeg[z],o.stackedYPos[z],void 0,this.xAxis))}}else l=Math.max(w,w+V)+_[0],I.y=c.translate(l,!1,!0,!1,!0),F.isSum?(I.y=c.translate(_[1],!1,!0,!1,!0),I.height=Math.min(c.translate(_[0],!1,!0,!1,!0),c.len)-I.y,F.below=_[1]<=m):F.isIntermediateSum?(V>=0?(e=_[1]+d,r=d):(e=d,r=_[1]+d),c.reversed&&(e^=r,e^=r^=e),I.y=c.translate(e,!1,!0,!1,!0),I.height=Math.abs(I.y-Math.min(c.translate(r,!1,!0,!1,!0),c.len)),d+=_[1],F.below=e<=m):(I.height=j>0?c.translate(w,!1,!0,!1,!0)-I.y:c.translate(w,!1,!0,!1,!0)-c.translate(w-j,!1,!0,!1,!0),w+=j,F.below=w<m),I.height<0&&(I.y+=I.height,I.height*=-1);F.plotY=I.y=Math.round(I.y||0)-o.borderWidth%2/2,I.height=Math.max(Math.round(I.height||0),.001),F.yBottom=I.y+I.height,I.height<=a&&!F.isNull?(I.height=a,I.y-=s,F.plotY=I.y,F.y<0?F.minPointLengthOffset=-s:F.minPointLengthOffset=s):(F.isNull&&(I.width=0),F.minPointLengthOffset=0);var Q=F.plotY+(F.negative?I.height:0);F.below&&(F.plotY+=I.height),F.tooltipPos&&(o.chart.inverted?F.tooltipPos[0]=c.len-Q:F.tooltipPos[1]=Q),F.isInside=this.isPointInside(F)}}},b.prototype.processData=function(l){var h,e,r,o,i,c,a,s=this,m=s.options,A=s.yData,O=m.data,d=A.length,w=m.threshold||0;for(r=e=o=i=0,a=0;a<d;a++)c=A[a],h=O&&O[a]?O[a]:{},c==="sum"||h.isSum?A[a]=p(r):c==="intermediateSum"||h.isIntermediateSum?(A[a]=p(e),e=0):(r+=c,e+=c),o=Math.min(r,o),i=Math.max(r,i);f.prototype.processData.call(this,l),m.stacking||(s.dataMin=o+w,s.dataMax=i)},b.prototype.toYData=function(l){return l.isSum?"sum":l.isIntermediateSum?"intermediateSum":l.y},b.prototype.updateParallelArrays=function(l,h){f.prototype.updateParallelArrays.call(this,l,h),this.yData[0]!=="sum"&&this.yData[0]!=="intermediateSum"||(this.yData[0]=null)},b.prototype.pointAttribs=function(l,h){var e=this.options.upColor;e&&!l.options.color&&(l.color=l.y>0?e:void 0);var r=E.prototype.pointAttribs.call(this,l,h);return delete r.dashstyle,r},b.prototype.getGraphPath=function(){return[["M",0,0]]},b.prototype.getCrispPath=function(){var l,h,e,r,o,i,c,a,s,m=this.data,A=this.yAxis,O=m.length,d=Math.round(this.graph.strokeWidth())%2/2,w=Math.round(this.borderWidth)%2/2,k=this.xAxis.reversed,z=this.yAxis.reversed,F=this.options.stacking,j=[];for(s=1;s<O;s++)if(a=m[s].shapeArgs,r=m[s-1],c=m[s-1].shapeArgs,h=A.waterfall.stacks[this.stackKey],i=r.y>0?-c.height:0,h&&c&&a&&(e=h[s-1],F?(l=e.connectorThreshold,o=Math.round(A.translate(l,!1,!0,!1,!0)+(z?i:0))-d):o=c.y+r.minPointLengthOffset+w-d,j.push(["M",(c.x||0)+(k?0:c.width||0),o],["L",(a.x||0)+(k&&a.width||0),o])),c&&j.length&&(!F&&r.y<0&&!z||r.y>0&&z)){var I=j[j.length-2];I&&typeof I[2]=="number"&&(I[2]+=c.height||0);var _=j[j.length-1];_&&typeof _[2]=="number"&&(_[2]+=c.height||0)}return j},b.prototype.drawGraph=function(){x.prototype.drawGraph.call(this),this.graph&&this.graph.attr({d:this.getCrispPath()})},b.prototype.setStackedPoints=function(){var l,h,e,r,o,i,c,a,s,m,A,O,d=this,w=d.options,k=d.yAxis.waterfall.stacks,z=w.threshold||0,F=z,j=F,I=d.stackKey,_=d.xData,V=_.length;function X(et,tt,st,ct){if(l){if(o)for(;st<o;st++)l.stackState[st]+=ct;else l.stackState[0]=et,o=l.stackState.length;l.stackState.push(l.stackState[o-1]+tt)}}if(d.yAxis.stacking.usePercentage=!1,h=e=r=F,d.visible||!d.chart.options.chart.ignoreHiddenSeries){O=k.changed,(A=k.alreadyChanged)&&A.indexOf(I)<0&&(O=!0),k[I]||(k[I]={});var H=k[I];if(H)for(var Q=0;Q<V;Q++)H[m=_[Q]]&&!O||(H[m]={negTotal:0,posTotal:0,stackTotal:0,threshold:0,stateIndex:0,stackState:[],label:O&&H[m]?H[m].label:void 0}),l=H[m],(s=d.yData[Q])>=0?l.posTotal+=s:l.negTotal+=s,a=w.data[Q],i=l.absolutePos=l.posTotal,c=l.absoluteNeg=l.negTotal,l.stackTotal=i+c,o=l.stackState.length,a&&a.isIntermediateSum?(X(r,e,0,r),r=e,e=z,F^=j,F^=j^=F):a&&a.isSum?(X(z,h,o,0),F=z):(X(F,s,0,h),a&&(h+=s,e+=s)),l.stateIndex++,l.threshold=F,F+=l.stackTotal;k.changed=!1,k.alreadyChanged||(k.alreadyChanged=[]),k.alreadyChanged.push(I)}},b.prototype.getExtremes=function(){var l,h,e,r=this.options.stacking;return r?(l=this.yAxis.waterfall.stacks,h=this.stackedYNeg=[],e=this.stackedYPos=[],C(l[this.stackKey],r==="overlap"?function(o){h.push(u(o.stackState)),e.push(T(o.stackState))}:function(o){h.push(o.negTotal+o.threshold),e.push(o.posTotal+o.threshold)}),{dataMin:u(h),dataMax:T(e)}):{dataMin:this.dataMin,dataMax:this.dataMax}},b.defaultOptions=y(E.defaultOptions,{dataLabels:{inside:!0},lineWidth:1,lineColor:"#333333",dashStyle:"Dot",borderColor:"#333333",states:{hover:{lineWidthPlus:0}}}),b}(E);return g(M.prototype,{getZonesGraphs:x.prototype.getZonesGraphs,pointValKey:"y",showLine:!0,pointClass:q}),U.registerSeriesType("waterfall",M),Z.compose(W,R),M}),rt(N,"Core/Axis/RadialAxis.js",[N["Core/Axis/AxisDefaults.js"],N["Core/Defaults.js"],N["Core/Globals.js"],N["Core/Utilities.js"]],function(W,R,U,Y){var Z,q=R.defaultOptions,$=U.noop,G=Y.addEvent,D=Y.correctFloat,E=Y.defined,x=Y.extend,T=Y.fireEvent,u=Y.merge,p=Y.pick,g=Y.relativeLength,v=Y.wrap;return function(y){var C=[],P={gridLineWidth:1,labels:{align:void 0,distance:15,x:0,y:void 0,style:{textOverflow:"none"}},maxPadding:0,minPadding:0,showLastLabel:!1,tickLength:0},L={labels:{align:"center",x:0,y:void 0},minorGridLineWidth:0,minorTickInterval:"auto",minorTickLength:10,minorTickPosition:"inside",minorTickWidth:1,tickLength:10,tickPosition:"inside",tickWidth:2,title:{rotation:0},zIndex:2},M={gridLineInterpolation:"circle",gridLineWidth:1,labels:{align:"right",x:-3,y:-2},showLastLabel:!1,title:{x:4,text:null,rotation:90}};function f(){this.autoConnect=this.isCircular&&p(this.userMax,this.options.max)===void 0&&D(this.endAngleRad-this.startAngleRad)===D(2*Math.PI),!this.isCircular&&this.chart.inverted&&this.max++,this.autoConnect&&(this.max+=(this.categories?1:this.pointRange)||this.closestPointRange||0)}function b(){var H=this;return function(){if(H.isRadial&&H.tickPositions&&H.options.labels&&H.options.labels.allowOverlap!==!0)return H.tickPositions.map(function(Q){return H.ticks[Q]&&H.ticks[Q].label}).filter(function(Q){return!!Q})}}function l(){return $}function h(H,Q,et){var tt,st,ct,gt=this.pane.center,mt=H.value;return this.isCircular?(E(mt)?H.point&&(H.point.shapeArgs||{}).start&&(mt=this.chart.inverted?this.translate(H.point.rectPlotY,!0):H.point.x):(st=H.chartX||0,ct=H.chartY||0,mt=this.translate(Math.atan2(ct-et,st-Q)-this.startAngleRad,!0)),st=(tt=this.getPosition(mt)).x,ct=tt.y):(E(mt)||(st=H.chartX,ct=H.chartY),E(st)&&E(ct)&&(et=gt[1]+this.chart.plotTop,mt=this.translate(Math.min(Math.sqrt(Math.pow(st-Q,2)+Math.pow(ct-et,2)),gt[2]/2)-gt[3]/2,!0))),[mt,st||0,ct||0]}function e(H,Q,et){var tt,st,ct=this.pane.center,gt=this.chart,mt=this.left||0,bt=this.top||0,yt=p(Q,ct[2]/2-this.offset);return et===void 0&&(et=this.horiz?0:this.center&&-this.center[3]/2),et&&(yt+=et),this.isCircular||Q!==void 0?((st=this.chart.renderer.symbols.arc(mt+ct[0],bt+ct[1],yt,yt,{start:this.startAngleRad,end:this.endAngleRad,open:!0,innerR:0})).xBounds=[mt+ct[0]],st.yBounds=[bt+ct[1]-yt]):(tt=this.postTranslate(this.angleRad,yt),st=[["M",this.center[0]+gt.plotLeft,this.center[1]+gt.plotTop],["L",tt.x,tt.y]]),st}function r(){this.constructor.prototype.getOffset.call(this),this.chart.axisOffset[this.side]=0}function o(H,Q,et){var tt,st,ct,gt,mt,bt,yt=this.chart,dt=function(Dt){if(typeof Dt=="string"){var Et=parseInt(Dt,10);return Ct.test(Dt)&&(Et=Et*ut/100),Et}return Dt},ot=this.center,ht=this.startAngleRad,ut=ot[2]/2,vt=Math.min(this.offset,0),wt=this.left||0,xt=this.top||0,Ct=/%$/,St=this.isCircular,Mt=p(dt(et.outerRadius),ut),Tt=dt(et.innerRadius),Pt=p(dt(et.thickness),10);if(this.options.gridLineInterpolation==="polygon")bt=this.getPlotLinePath({value:H}).concat(this.getPlotLinePath({value:Q,reverse:!0}));else{H=Math.max(H,this.min),Q=Math.min(Q,this.max);var kt=this.translate(H),Ot=this.translate(Q);St||(Mt=kt||0,Tt=Ot||0),et.shape!=="circle"&&St?(tt=ht+(kt||0),st=ht+(Ot||0)):(tt=-Math.PI/2,st=1.5*Math.PI,mt=!0),Mt-=vt,Pt-=vt,bt=yt.renderer.symbols.arc(wt+ot[0],xt+ot[1],Mt,Mt,{start:Math.min(tt,st),end:Math.max(tt,st),innerR:p(Tt,Mt-Pt),open:mt}),St&&(ct=(st+tt)/2,gt=wt+ot[0]+ot[2]/2*Math.cos(ct),bt.xBounds=ct>-Math.PI/2&&ct<Math.PI/2?[gt,yt.plotWidth]:[0,gt],bt.yBounds=[xt+ot[1]+ot[2]/2*Math.sin(ct)],bt.yBounds[0]+=ct>-Math.PI&&ct<0||ct>Math.PI?-10:10)}return bt}function i(H){var Q,et,tt,st,ct,gt,mt,bt,yt,dt=this,ot=this.pane.center,ht=this.chart,ut=ht.inverted,vt=H.reverse,wt=this.pane.options.background?this.pane.options.background[0]||this.pane.options.background:{},xt=wt.innerRadius||"0%",Ct=wt.outerRadius||"100%",St=ot[0]+ht.plotLeft,Mt=ot[1]+ht.plotTop,Tt=this.height,Pt=H.isCrosshair,kt=ot[3]/2,Ot=H.value,Dt=this.getPosition(Ot),Et=Dt.x,It=Dt.y;if(Pt&&(Ot=(bt=this.getCrosshairPosition(H,St,Mt))[0],Et=bt[1],It=bt[2]),this.isCircular)et=Math.sqrt(Math.pow(Et-St,2)+Math.pow(It-Mt,2)),tt=typeof xt=="string"?g(xt,1):xt/et,st=typeof Ct=="string"?g(Ct,1):Ct/et,ot&&kt&&(tt<(Q=kt/et)&&(tt=Q),st<Q&&(st=Q)),yt=[["M",St+tt*(Et-St),Mt-tt*(Mt-It)],["L",Et-(1-st)*(Et-St),It+(1-st)*(Mt-It)]];else if((Ot=this.translate(Ot))&&(Ot<0||Ot>Tt)&&(Ot=0),this.options.gridLineInterpolation==="circle")yt=this.getLinePath(0,Ot,kt);else if(yt=[],ht[ut?"yAxis":"xAxis"].forEach(function(Yt){Yt.pane===dt.pane&&(ct=Yt)}),ct){mt=ct.tickPositions,ct.autoConnect&&(mt=mt.concat([mt[0]])),vt&&(mt=mt.slice().reverse()),Ot&&(Ot+=kt);for(var _t=0;_t<mt.length;_t++)gt=ct.getPosition(mt[_t],Ot),yt.push(_t?["L",gt.x,gt.y]:["M",gt.x,gt.y])}return yt}function c(H,Q){var et=this.translate(H);return this.postTranslate(this.isCircular?et:this.angleRad,p(this.isCircular?Q:et<0?0:et,this.center[2]/2)-this.offset)}function a(){var H=this.center,Q=this.chart,et=this.options.title;return{x:Q.plotLeft+H[0]+(et.x||0),y:Q.plotTop+H[1]-{high:.5,middle:.25,low:0}[et.align]*H[2]+(et.y||0)}}function s(H){H.beforeSetTickPositions=f,H.createLabelCollector=b,H.getCrosshairPosition=h,H.getLinePath=e,H.getOffset=r,H.getPlotBandPath=o,H.getPlotLinePath=i,H.getPosition=c,H.getTitlePosition=a,H.postTranslate=F,H.setAxisSize=I,H.setAxisTranslation=_,H.setOptions=V}function m(){var H=this.chart,Q=this.options,et=H.angular&&this.isXAxis,tt=this.pane,st=tt&&tt.options;if(!et&&tt&&(H.angular||H.polar)){var ct=2*Math.PI,gt=(p(st.startAngle,0)-90)*Math.PI/180,mt=(p(st.endAngle,p(st.startAngle,0)+360)-90)*Math.PI/180;this.angleRad=(Q.angle||0)*Math.PI/180,this.startAngleRad=gt,this.endAngleRad=mt,this.offset=Q.offset||0;var bt=(gt%ct+ct)%ct,yt=(mt%ct+ct)%ct;bt>Math.PI&&(bt-=ct),yt>Math.PI&&(yt-=ct),this.normalizedStartAngleRad=bt,this.normalizedEndAngleRad=yt}}function A(H){this.isRadial&&(H.align=void 0,H.preventDefault())}function O(){if(this.chart&&this.chart.labelCollectors){var H=this.labelCollector?this.chart.labelCollectors.indexOf(this.labelCollector):-1;H>=0&&this.chart.labelCollectors.splice(H,1)}}function d(H){var Q,et,tt=this.chart,st=tt.inverted,ct=tt.angular,gt=tt.polar,mt=this.isXAxis,bt=this.coll,yt=ct&&mt,dt=H.userOptions.pane||0,ot=this.pane=tt.pane&&tt.pane[dt];bt!=="colorAxis"?(ct?(yt?((et=this).isHidden=!0,et.createLabelCollector=l,et.getOffset=$,et.redraw=j,et.render=j,et.setScale=$,et.setCategories=$,et.setTitle=$):s(this),(Q=!mt)&&(this.defaultPolarOptions=L)):gt&&(s(this),Q=this.horiz,this.defaultPolarOptions=Q?P:u(bt==="xAxis"?W.defaultXAxisOptions:W.defaultYAxisOptions,M),st&&bt==="yAxis"&&(this.defaultPolarOptions.stackLabels=W.defaultYAxisOptions.stackLabels,this.defaultPolarOptions.reversedStacks=!0)),ct||gt?(this.isRadial=!0,this.labelCollector||(this.labelCollector=this.createLabelCollector()),this.labelCollector&&tt.labelCollectors.push(this.labelCollector)):this.isRadial=!1,ot&&Q&&(ot.axis=this),this.isCircular=Q):this.isRadial=!1}function w(){this.isRadial&&this.beforeSetTickPositions()}function k(H){var Q=this.label;if(Q){var et,tt=this.axis,st=Q.getBBox(),ct=tt.options.labels,gt=(tt.translate(this.pos)+tt.startAngleRad+Math.PI/2)/Math.PI*180%360,mt=Math.round(gt),bt=E(ct.y)?0:.3*-st.height,yt=ct.y,dt=20,ot=ct.align,ht="end",ut=mt<0?mt+360:mt,vt=ut,wt=0,xt=0;tt.isRadial&&(et=tt.getPosition(this.pos,tt.center[2]/2+g(p(ct.distance,-25),tt.center[2]/2,-tt.center[2]/2)),ct.rotation==="auto"?Q.attr({rotation:gt}):E(yt)||(yt=tt.chart.renderer.fontMetrics(Q.styles&&Q.styles.fontSize).b-st.height/2),E(ot)||(tt.isCircular?(st.width>tt.len*tt.tickInterval/(tt.max-tt.min)&&(dt=0),ot=gt>dt&&gt<180-dt?"left":gt>180+dt&&gt<360-dt?"right":"center"):ot="center",Q.attr({align:ot})),ot==="auto"&&tt.tickPositions.length===2&&tt.isCircular&&(ut>90&&ut<180?ut=180-ut:ut>270&&ut<=360&&(ut=540-ut),vt>180&&vt<=360&&(vt=360-vt),tt.pane.options.startAngle!==mt&&tt.pane.options.startAngle!==mt+360&&tt.pane.options.startAngle!==mt-360||(ht="start"),ot=mt>=-90&&mt<=90||mt>=-360&&mt<=-270||mt>=270&&mt<=360?ht==="start"?"right":"left":ht==="start"?"left":"right",vt>70&&vt<110&&(ot="center"),ut<15||ut>=180&&ut<195?wt=.3*st.height:ut>=15&&ut<=35?wt=ht==="start"?0:.75*st.height:ut>=195&&ut<=215?wt=ht==="start"?.75*st.height:0:ut>35&&ut<=90?wt=ht==="start"?.25*-st.height:st.height:ut>215&&ut<=270&&(wt=ht==="start"?st.height:.25*-st.height),vt<15?xt=ht==="start"?.15*-st.height:.15*st.height:vt>165&&vt<=180&&(xt=ht==="start"?.15*st.height:.15*-st.height),Q.attr({align:ot}),Q.translate(xt,wt+bt)),H.pos.x=et.x+(ct.x||0),H.pos.y=et.y+(yt||0))}}function z(H){this.axis.getPosition&&x(H.pos,this.axis.getPosition(this.pos))}function F(H,Q){var et=this.chart,tt=this.center;return H=this.startAngleRad+H,{x:et.plotLeft+tt[0]+Math.cos(H)*Q,y:et.plotTop+tt[1]+Math.sin(H)*Q}}function j(){this.isDirty=!1}function I(){var H,Q;this.constructor.prototype.setAxisSize.call(this),this.isRadial&&(this.pane.updateCenter(this),H=this.center=this.pane.center.slice(),this.isCircular?this.sector=this.endAngleRad-this.startAngleRad:(Q=this.postTranslate(this.angleRad,H[3]/2),H[0]=Q.x-this.chart.plotLeft,H[1]=Q.y-this.chart.plotTop),this.len=this.width=this.height=(H[2]-H[3])*p(this.sector,1)/2)}function _(){this.constructor.prototype.setAxisTranslation.call(this),this.center&&(this.isCircular?this.transA=(this.endAngleRad-this.startAngleRad)/(this.max-this.min||1):this.transA=(this.center[2]-this.center[3])/2/(this.max-this.min||1),this.isXAxis?this.minPixelPadding=this.transA*this.minPointOffset:this.minPixelPadding=0)}function V(H){var Q=this.options=u(this.constructor.defaultOptions,this.defaultPolarOptions,q[this.coll],H);Q.plotBands||(Q.plotBands=[]),T(this,"afterSetOptions")}function X(H,Q,et,tt,st,ct,gt){var mt,bt=this.axis;return bt.isRadial?["M",Q,et,"L",(mt=bt.getPosition(this.pos,bt.center[2]/2+tt)).x,mt.y]:H.call(this,Q,et,tt,st,ct,gt)}y.compose=function(H,Q){return C.indexOf(H)===-1&&(C.push(H),G(H,"afterInit",m),G(H,"autoLabelAlign",A),G(H,"destroy",O),G(H,"init",d),G(H,"initialAxisTranslation",w)),C.indexOf(Q)===-1&&(C.push(Q),G(Q,"afterGetLabelPosition",k),G(Q,"afterGetPosition",z),v(Q.prototype,"getMarkPath",X)),H}}(Z||(Z={})),Z}),rt(N,"Series/PolarComposition.js",[N["Core/Animation/AnimationUtilities.js"],N["Core/Globals.js"],N["Extensions/Pane.js"],N["Core/Axis/RadialAxis.js"],N["Core/Utilities.js"]],function(W,R,U,Y,Z){var q=this&&this.__spreadArray||function(d,w,k){if(k||arguments.length===2)for(var z,F=0,j=w.length;F<j;F++)!z&&F in w||(z||(z=Array.prototype.slice.call(w,0,F)),z[F]=w[F]);return d.concat(z||Array.prototype.slice.call(w))},$=W.animObject,G=Z.addEvent,D=Z.defined,E=Z.find,x=Z.isNumber,T=Z.pick,u=Z.splat,p=Z.uniqueKey,g=Z.wrap,v=[];function y(d,w,k,z){var F,j,I,_,V,X,H=1.5,Q=2.5,et=z?1:0,tt=(F=w>=0&&w<=d.length-1?w:w<0?d.length-1+w:0)-1<0?d.length-(1+et):F-1,st=F+1>d.length-1?et:F+1,ct=d[tt],gt=d[st],mt=ct.plotX,bt=ct.plotY,yt=gt.plotX,dt=gt.plotY,ot=d[F].plotX,ht=d[F].plotY;j=(H*ot+mt)/Q,I=(H*ht+bt)/Q,_=(H*ot+yt)/Q,V=(H*ht+dt)/Q;var ut=Math.sqrt(Math.pow(j-ot,2)+Math.pow(I-ht,2)),vt=Math.sqrt(Math.pow(_-ot,2)+Math.pow(V-ht,2)),wt=Math.atan2(I-ht,j-ot),xt=Math.atan2(V-ht,_-ot);X=Math.PI/2+(wt+xt)/2,Math.abs(wt-X)>Math.PI/2&&(X-=Math.PI),j=ot+Math.cos(X)*ut,I=ht+Math.sin(X)*ut;var Ct={rightContX:_=ot+Math.cos(Math.PI+X)*vt,rightContY:V=ht+Math.sin(Math.PI+X)*vt,leftContX:j,leftContY:I,plotX:ot,plotY:ht};return k&&(Ct.prevPointCont=y(d,tt,!1,z)),Ct}function C(){(this.pane||[]).forEach(function(d){d.render()})}function P(d){var w=d.args[0].xAxis,k=d.args[0].yAxis,z=d.args[0].chart;w&&k&&(k.gridLineInterpolation==="polygon"?(w.startOnTick=!0,w.endOnTick=!0):w.gridLineInterpolation==="polygon"&&z.inverted&&(k.startOnTick=!0,k.endOnTick=!0))}function L(){var d=this;this.pane||(this.pane=[]),this.options.pane=u(this.options.pane),this.options.pane.forEach(function(w){new U(w,d)},this)}function M(d){var w=d.args.marker,k=this.chart.xAxis[0],z=this.chart.yAxis[0],F=this.chart.inverted,j=F?z:k,I=F?k:z;if(this.chart.polar){d.preventDefault();var _=(w.attr?w.attr("start"):w.start)-j.startAngleRad,V=w.attr?w.attr("r"):w.r,X=(w.attr?w.attr("end"):w.end)-j.startAngleRad,H=w.attr?w.attr("innerR"):w.innerR;d.result.x=_+j.pos,d.result.width=X-_,d.result.y=I.len+I.pos-H,d.result.height=H-V}}function f(d){var w=this.chart;if(w.polar&&w.hoverPane&&w.hoverPane.axis){d.preventDefault();var k=w.hoverPane.center,z=this.mouseDownX||0,F=this.mouseDownY||0,j=d.args.chartY,I=d.args.chartX,_=2*Math.PI,V=w.hoverPane.axis.startAngleRad,X=w.hoverPane.axis.endAngleRad,H=w.inverted?w.xAxis[0]:w.yAxis[0],Q={},et="arc";if(Q.x=k[0]+w.plotLeft,Q.y=k[1]+w.plotTop,this.zoomHor){var tt=V>0?X-V:Math.abs(V)+Math.abs(X),st=Math.atan2(F-w.plotTop-k[1],z-w.plotLeft-k[0])-V,ct=Math.atan2(j-w.plotTop-k[1],I-w.plotLeft-k[0])-V;Q.r=k[2]/2,Q.innerR=k[3]/2,st<=0&&(st+=_),ct<=0&&(ct+=_),ct<st&&(ct=[st,st=ct][0]),tt<_&&V+ct>X+(_-tt)/2&&(ct=st,st=V<=0?V:0);var gt=Q.start=Math.max(st+V,V),mt=Q.end=Math.min(ct+V,X);if(H.options.gridLineInterpolation==="polygon"){(Tt=w.hoverPane.axis).tickInterval;var bt=gt-Tt.startAngleRad+Tt.pos,yt=mt-gt,dt=H.getPlotLinePath({value:H.max}),ot=Tt.toValue(bt),ht=Tt.toValue(bt+yt);if(ot<Tt.getExtremes().min){var ut=Tt.getExtremes(),vt=ut.min;ot=ut.max-(vt-ot)}if(ht<Tt.getExtremes().min){var wt=Tt.getExtremes(),xt=wt.min;ht=wt.max-(xt-ht)}ht<ot&&(ht=[ot,ot=ht][0]),(dt=e(dt,ot,ht,Tt)).push(["L",k[0]+w.plotLeft,w.plotTop+k[1]]),Q.d=dt,et="path"}}if(this.zoomVert){var Ct=w.inverted?w.xAxis[0]:w.yAxis[0],St=Math.sqrt(Math.pow(z-w.plotLeft-k[0],2)+Math.pow(F-w.plotTop-k[1],2)),Mt=Math.sqrt(Math.pow(I-w.plotLeft-k[0],2)+Math.pow(j-w.plotTop-k[1],2));Mt<St&&(St=[Mt,Mt=St][0]),Mt>k[2]/2&&(Mt=k[2]/2),St<k[3]/2&&(St=k[3]/2),this.zoomHor||(Q.start=V,Q.end=X),Q.r=Mt,Q.innerR=St,Ct.options.gridLineInterpolation==="polygon"&&(mt=Ct.toValue(Ct.len+Ct.pos-St),gt=Ct.toValue(Ct.len+Ct.pos-Mt),dt=Ct.getPlotLinePath({value:gt}).concat(Ct.getPlotLinePath({value:mt,reverse:!0})),Q.d=dt,et="path")}if(this.zoomHor&&this.zoomVert&&H.options.gridLineInterpolation==="polygon"){var Tt=w.hoverPane.axis;if(gt=Q.start||0,mt=Q.end||0,bt=gt-Tt.startAngleRad+Tt.pos,yt=mt-gt,ot=Tt.toValue(bt),ht=Tt.toValue(bt+yt),Q.d instanceof Array){var Pt=Q.d.slice(0,Q.d.length/2),kt=Q.d.slice(Q.d.length/2,Q.d.length);kt=q([],kt,!0).reverse();var Ot=w.hoverPane.axis;Pt=e(Pt,ot,ht,Ot),(kt=e(kt,ot,ht,Ot))&&(kt[0][0]="L"),kt=q([],kt,!0).reverse(),Q.d=Pt.concat(kt),et="path"}}d.attrs=Q,d.shapeType=et}}function b(){var d=this.chart;d.polar&&(this.polar=new O(this),d.inverted&&(this.isRadialSeries=!0,this.is("column")&&(this.isRadialBar=!0)))}function l(){if(this.chart.polar&&this.xAxis){var d=this,w=d.chart;d.kdByAngle=w.tooltip&&w.tooltip.shared,d.kdByAngle?d.searchPoint=h:d.options.findNearestPointBy="xy";for(var k=d.points,z=k.length;z--;)d.preventPostTranslate||d.polar.toXY(k[z]),w.hasParallelCoordinates||d.yAxis.reversed||(T(k[z].y,Number.MIN_VALUE)<d.yAxis.min||k[z].x<d.xAxis.min||k[z].x>d.xAxis.max?(k[z].isNull=!0,k[z].plotY=NaN):k[z].isNull=k[z].isValid&&!k[z].isValid());this.hasClipCircleSetter||(this.hasClipCircleSetter=!!d.eventsToUnbind.push(G(d,"afterRender",function(){var F,j,I,_,V,X,H,Q,et;w.polar&&(F=this.yAxis.pane.center,this.clipCircle?this.clipCircle.animate({x:F[0],y:F[1],r:F[2]/2,innerR:F[3]/2}):this.clipCircle=(j=w.renderer,I=F[0],_=F[1],V=F[2]/2,X=F[3]/2,H=p(),Q=j.createElement("clipPath").attr({id:H}).add(j.defs),(et=X?j.arc(I,_,V,X,0,2*Math.PI).add(Q):j.circle(I,_,V).add(Q)).id=H,et.clipPath=Q,et),this.group.clip(this.clipCircle),this.setClip=R.noop)})))}}function h(d){var w=this,k=w.chart,z=w.xAxis,F=z.pane&&z.pane.center,j=d.chartX-(F&&F[0]||0)-k.plotLeft,I=d.chartY-(F&&F[1]||0)-k.plotTop;return w.searchKDTree({clientX:180+Math.atan2(j,I)*(-180/Math.PI)})}function e(d,w,k,z){var F=z.tickInterval,j=z.tickPositions,I=E(j,function(V){return V>=k}),_=E(q([],j,!0).reverse(),function(V){return V<=w});return D(I)||(I=j[j.length-1]),D(_)||(_=j[0],I+=F,d[0][0]="L",d.unshift(d[d.length-3])),(d=d.slice(j.indexOf(_),j.indexOf(I)+1))[0][0]="M",d}function r(d,w){return E(this.pane||[],function(k){return k.options.id===w})||d.call(this,w)}function o(d,w,k,z,F,j){var I,_,V,X=this.chart,H=T(z.inside,!!this.options.stacking);X.polar?(I=w.rectPlotX/Math.PI*180,X.inverted?(this.forceDL=X.isInsidePlot(w.plotX,w.plotY),H&&w.shapeArgs?(_=w.shapeArgs,F={x:(V=this.yAxis.postTranslate(((_.start||0)+(_.end||0))/2-this.xAxis.startAngleRad,w.barX+w.pointWidth/2)).x-X.plotLeft,y:V.y-X.plotTop}):w.tooltipPos&&(F={x:w.tooltipPos[0],y:w.tooltipPos[1]}),z.align=T(z.align,"center"),z.verticalAlign=T(z.verticalAlign,"middle")):z=function(Q,et){var tt,st;return et.align===null&&(tt=Q>20&&Q<160?"left":Q>200&&Q<340?"right":"center",et.align=tt),et.verticalAlign===null&&(st=Q<45||Q>315?"bottom":Q>135&&Q<225?"top":"middle",et.verticalAlign=st),et}(I,z),Object.getPrototypeOf(Object.getPrototypeOf(this)).alignDataLabel.call(this,w,k,z,F,j),this.isRadialBar&&w.shapeArgs&&w.shapeArgs.start===w.shapeArgs.end?k.hide():k.show()):d.call(this,w,k,z,F,j)}function i(d){var w,k,z,F,j,I,_,V,X,H,Q,et,tt,st=this,ct=st.options,gt=ct.stacking,mt=st.chart,bt=st.xAxis,yt=st.yAxis,dt=yt.reversed,ot=yt.center,ht=bt.startAngleRad,ut=bt.endAngleRad-ht,vt=ct.threshold,wt=0,xt=0,Ct=0;if(st.preventPostTranslate=!0,d.call(st),bt.isRadial)for(z=(w=st.points).length,F=yt.translate(yt.min),j=yt.translate(yt.max),vt=ct.threshold||0,mt.inverted&&x(vt)&&(wt=yt.translate(vt),D(wt)&&(wt<0?wt=0:wt>ut&&(wt=ut),st.translatedThreshold=wt+ht));z--;)Q=(k=w[z]).barX,_=k.x,V=k.y,k.shapeType="arc",mt.inverted?(k.plotY=yt.translate(V),gt&&yt.stacking?(H=yt.stacking.stacks[(V<0?"-":"")+st.stackKey],st.visible&&H&&H[_]&&(k.isNull||(X=H[_].points[st.getStackIndicator(void 0,_,st.index).key],xt=yt.translate(X[0]),Ct=yt.translate(X[1]),D(xt)&&(xt=Z.clamp(xt,0,ut))))):(xt=wt,Ct=k.plotY),xt>Ct&&(Ct=[xt,xt=Ct][0]),dt?Ct>F?Ct=F:xt<j?xt=j:(xt>F||Ct<j)&&(xt=Ct=ut):xt<F?xt=F:Ct>j?Ct=j:(Ct<F||xt>j)&&(xt=Ct=0),yt.min>yt.max&&(xt=Ct=dt?ut:0),xt+=ht,Ct+=ht,ot&&(k.barX=Q+=ot[3]/2),et=Math.max(Q,0),tt=Math.max(Q+k.pointWidth,0),k.shapeArgs={x:ot&&ot[0],y:ot&&ot[1],r:tt,innerR:et,start:xt,end:Ct},k.opacity=xt===Ct?0:void 0,k.plotY=(D(st.translatedThreshold)&&(xt<st.translatedThreshold?xt:Ct))-ht):(xt=Q+ht,k.shapeArgs=st.polar.arc(k.yBottom,k.plotY,xt,xt+k.pointWidth)),st.polar.toXY(k),mt.inverted?(I=yt.postTranslate(k.rectPlotY,Q+k.pointWidth/2),k.tooltipPos=[I.x-mt.plotLeft,I.y-mt.plotTop]):k.tooltipPos=[k.plotX,k.plotY],ot&&(k.ttBelow=k.plotY>ot[1])}function c(d,w){var k,z,F=this;if(this.chart.polar){w=w||this.points;for(var j=0;j<w.length;j++)if(!w[j].isNull){k=j;break}this.options.connectEnds!==!1&&k!==void 0&&(this.connectEnds=!0,w.splice(w.length,0,w[k]),z=!0),w.forEach(function(_){_.polarPlotY===void 0&&F.polar.toXY(_)})}var I=d.apply(this,[].slice.call(arguments,1));return z&&w.pop(),I}function a(d,w){var k=this.chart,z={xAxis:[],yAxis:[]};return k.polar?k.axes.forEach(function(F){if(F.coll!=="colorAxis"){var j=F.isXAxis,I=F.center,_=w.chartX-I[0]-k.plotLeft,V=w.chartY-I[1]-k.plotTop;z[j?"xAxis":"yAxis"].push({axis:F,value:F.translate(j?Math.PI-Math.atan2(_,V):Math.sqrt(Math.pow(_,2)+Math.pow(V,2)),!0)})}}):z=d.call(this,w),z}function s(d,w){this.chart.polar||d.call(this,w)}function m(d,w){var k,z,F,j,I,_,V=this,X=this.chart,H=this.group,Q=this.markerGroup,et=this.xAxis&&this.xAxis.center,tt=X.plotLeft,st=X.plotTop,ct=this.options.animation;X.polar?V.isRadialBar?w||(V.startAngleRad=T(V.translatedThreshold,V.xAxis.startAngleRad),R.seriesTypes.pie.prototype.animate.call(V,w)):X.renderer.isSVG&&(ct=$(ct),V.is("column")?w||(z=et[3]/2,V.points.forEach(function(gt){F=gt.graphic,j=gt.shapeArgs,I=j&&j.r,_=j&&j.innerR,F&&j&&(F.attr({r:z,innerR:z}),F.animate({r:I,innerR:_},V.options.animation))})):w?(k={translateX:et[0]+tt,translateY:et[1]+st,scaleX:.001,scaleY:.001},H.attr(k),Q&&Q.attr(k)):(k={translateX:tt,translateY:st,scaleX:1,scaleY:1},H.animate(k,ct),Q&&Q.animate(k,ct))):d.call(this,w)}function A(d,w,k,z){var F,j;if(this.chart.polar)if(z){var I=(j=y(w,z,!0,this.connectEnds)).prevPointCont&&j.prevPointCont.rightContX,_=j.prevPointCont&&j.prevPointCont.rightContY;F=["C",x(I)?I:j.plotX,x(_)?_:j.plotY,x(j.leftContX)?j.leftContX:j.plotX,x(j.leftContY)?j.leftContY:j.plotY,j.plotX,j.plotY]}else F=["M",k.plotX,k.plotY];else F=d.call(this,w,k,z);return F}var O=function(){function d(w){this.series=w}return d.compose=function(w,k,z,F,j,I,_,V,X){if(Y.compose(w,j),v.indexOf(k)===-1){v.push(k),G(k,"afterDrawChartBox",C),G(k,"getAxes",L),G(k,"init",P);var H=k.prototype;g(H,"get",r)}if(v.indexOf(z)===-1){v.push(z);var Q=z.prototype;g(Q,"getCoordinates",a),g(Q,"pinch",s),G(z,"getSelectionMarkerAttrs",f),G(z,"getSelectionBox",M)}if(v.indexOf(F)===-1){v.push(F),G(F,"afterInit",b),G(F,"afterTranslate",l,{order:2});var et=F.prototype;g(et,"animate",m)}if(_&&v.indexOf(_)===-1){v.push(_);var tt=_.prototype;g(tt,"alignDataLabel",o),g(tt,"animate",m),g(tt,"translate",i)}if(V&&v.indexOf(V)===-1){v.push(V);var st=V.prototype;g(st,"getGraphPath",c)}if(X&&v.indexOf(X)===-1){v.push(X);var ct=X.prototype;g(ct,"getPointSpline",A),I&&v.indexOf(I)===-1&&(v.push(I),I.prototype.getPointSpline=ct.getPointSpline)}},d.prototype.arc=function(w,k,z,F){var j=this.series,I=j.xAxis.center,_=j.yAxis.len,V=I[3]/2,X=_-k+V,H=_-T(w,_)+V;return j.yAxis.reversed&&(X<0&&(X=V),H<0&&(H=V)),{x:I[0],y:I[1],r:X,innerR:H,start:z,end:F}},d.prototype.toXY=function(w){var k,z=this.series,F=z.chart,j=z.xAxis,I=z.yAxis,_=w.plotX,V=F.inverted,X=w.y,H=w.plotY,Q=V?_:I.len-H;if(V&&z&&!z.isRadialBar&&(w.plotY=H=x(X)?I.translate(X):0),w.rectPlotX=_,w.rectPlotY=H,I.center&&(Q+=I.center[3]/2),x(H)){var et=V?I.postTranslate(H,Q):j.postTranslate(_,Q);w.plotX=w.polarPlotX=et.x-F.plotLeft,w.plotY=w.polarPlotY=et.y-F.plotTop}z.kdByAngle?((k=(_/Math.PI*180+j.pane.options.startAngle)%360)<0&&(k+=360),w.clientX=k):w.clientX=w.plotX},d}();return O}),rt(N,"masters/highcharts-more.src.js",[N["Core/Globals.js"],N["Core/Series/SeriesRegistry.js"],N["Series/Bubble/BubbleSeries.js"],N["Series/PackedBubble/PackedBubbleSeries.js"],N["Series/PolarComposition.js"]],function(W,R,U,Y,Z){var q=W;U.compose(q.Axis,q.Chart,q.Legend,q.Series),Y.compose(q.Axis,q.Chart,q.Legend,q.Series),Z.compose(q.Axis,q.Chart,q.Pointer,q.Series,q.Tick,R.seriesTypes.areasplinerange,R.seriesTypes.column,R.seriesTypes.line,R.seriesTypes.spline)})},J.exports?(pt.default=pt,J.exports=pt):(at=[nt(8840)],(lt=function(ft){return pt(ft),pt.Highcharts=ft,pt}.apply(it,at))===void 0||(J.exports=lt))},8840:function(J,it,nt){var at,lt,pt;lt=typeof window!="undefined"?window:this,pt=function(ft){function N(W,R,U,Y){W.hasOwnProperty(R)||(W[R]=Y.apply(null,U),typeof CustomEvent=="function"&&ft.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:R,module:W[R]}})))}var rt={};return N(rt,"Core/Globals.js",[],function(){var W;return function(R){R.SVG_NS="http://www.w3.org/2000/svg",R.product="Highcharts",R.version="10.3.3",R.win=ft!==void 0?ft:{},R.doc=R.win.document,R.svg=R.doc&&R.doc.createElementNS&&!!R.doc.createElementNS(R.SVG_NS,"svg").createSVGRect,R.userAgent=R.win.navigator&&R.win.navigator.userAgent||"",R.isChrome=R.userAgent.indexOf("Chrome")!==-1,R.isFirefox=R.userAgent.indexOf("Firefox")!==-1,R.isMS=/(edge|msie|trident)/i.test(R.userAgent)&&!R.win.opera,R.isSafari=!R.isChrome&&R.userAgent.indexOf("Safari")!==-1,R.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(R.userAgent),R.isWebKit=R.userAgent.indexOf("AppleWebKit")!==-1,R.deg2rad=2*Math.PI/360,R.hasBidiBug=R.isFirefox&&4>parseInt(R.userAgent.split("Firefox/")[1],10),R.hasTouch=!!R.win.TouchEvent,R.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],R.noop=function(){},R.supportsPassiveEvents=function(){var U=!1;if(!R.isMS){var Y=Object.defineProperty({},"passive",{get:function(){U=!0}});R.win.addEventListener&&R.win.removeEventListener&&(R.win.addEventListener("testPassive",R.noop,Y),R.win.removeEventListener("testPassive",R.noop,Y))}return U}(),R.charts=[],R.dateFormats={},R.seriesTypes={},R.symbolSizes={},R.chartCount=0}(W||(W={})),W}),N(rt,"Core/Utilities.js",[rt["Core/Globals.js"]],function(W){function R(e,r,o,i){var c=r?"Highcharts error":"Highcharts warning";e===32&&(e=c+": Deprecated member");var a=D(e),s=a?c+" #"+e+": www.highcharts.com/errors/"+e+"/":e.toString();if(i!==void 0){var m="";a&&(s+="?"),y(i,function(A,O){m+=`
101
- - `.concat(O,": ").concat(A),a&&(s+=encodeURI(O)+"="+encodeURI(A))}),s+=m}P(W,"displayError",{chart:o,code:e,message:s,params:i},function(){if(r)throw Error(s);f.console&&R.messages.indexOf(s)===-1&&console.warn(s)}),R.messages.push(s)}function U(e,r){return parseInt(e,r||10)}function Y(e){return typeof e=="string"}function Z(e){return(e=Object.prototype.toString.call(e))==="[object Array]"||e==="[object Array Iterator]"}function q(e,r){return!(!e||typeof e!="object"||r&&Z(e))}function $(e){return q(e)&&typeof e.nodeType=="number"}function G(e){var r=e&&e.constructor;return!(!q(e,!0)||$(e)||!r||!r.name||r.name==="Object")}function D(e){return typeof e=="number"&&!isNaN(e)&&1/0>e&&-1/0<e}function E(e){return e!=null}function x(e,r,o){var i,c=Y(r)&&!E(o),a=function(s,m){E(s)?e.setAttribute(m,s):c?(i=e.getAttribute(m))||m!=="class"||(i=e.getAttribute(m+"Name")):e.removeAttribute(m)};return Y(r)?a(o,r):y(r,a),i}function T(e,r){var o;for(o in e||(e={}),r)e[o]=r[o];return e}function u(){for(var e=arguments,r=e.length,o=0;o<r;o++){var i=e[o];if(i!=null)return i}}function p(e,r){W.isMS&&!W.svg&&r&&E(r.opacity)&&(r.filter="alpha(opacity=".concat(100*r.opacity,")")),T(e.style,r)}function g(e){return Math.pow(10,Math.floor(Math.log(e)/Math.LN10))}function v(e,r){return 1e14<e?e:parseFloat(e.toPrecision(r||14))}function y(e,r,o){for(var i in e)Object.hasOwnProperty.call(e,i)&&r.call(o||e[i],e[i],i,e)}function C(e,r,o){function i(m,A){var O=e.removeEventListener||W.removeEventListenerPolyfill;O&&O.call(e,m,A,!1)}function c(m){var A;if(e.nodeName){if(r){var O={};O[r]=!0}else O=m;y(O,function(d,w){if(m[w])for(A=m[w].length;A--;)i(w,m[w][A].fn)})}}var a=typeof e=="function"&&e.prototype||e;if(Object.hasOwnProperty.call(a,"hcEvents")){var s=a.hcEvents;r?(a=s[r]||[],o?(s[r]=a.filter(function(m){return o!==m.fn}),i(r,o)):(c(s),s[r]=[])):(c(s),delete a.hcEvents)}}function P(e,r,o,i){if(o=o||{},M.createEvent&&(e.dispatchEvent||e.fireEvent&&e!==W)){var c=M.createEvent("Events");c.initEvent(r,!0,!0),o=T(c,o),e.dispatchEvent?e.dispatchEvent(o):e.fireEvent(r,o)}else if(e.hcEvents){o.target||T(o,{preventDefault:function(){o.defaultPrevented=!0},target:e,type:r}),c=[];for(var a=e,s=!1;a.hcEvents;)Object.hasOwnProperty.call(a,"hcEvents")&&a.hcEvents[r]&&(c.length&&(s=!0),c.unshift.apply(c,a.hcEvents[r])),a=Object.getPrototypeOf(a);s&&c.sort(function(m,A){return m.order-A.order}),c.forEach(function(m){m.fn.call(e,o)===!1&&o.preventDefault()})}i&&!o.defaultPrevented&&i.call(e,o)}var L=W.charts,M=W.doc,f=W.win;(R||(R={})).messages=[],Math.easeInOutSine=function(e){return-.5*(Math.cos(Math.PI*e)-1)};var b=Array.prototype.find?function(e,r){return e.find(r)}:function(e,r){var o,i=e.length;for(o=0;o<i;o++)if(r(e[o],o))return e[o]};y({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},function(e,r){W[r]=function(o){var i;return R(32,!1,void 0,((i={})["Highcharts.".concat(r)]="use Array.".concat(e),i)),Array.prototype[e].apply(o,[].slice.call(arguments,1))}});var l,h=function(){var e=Math.random().toString(36).substring(2,9)+"-",r=0;return function(){return"highcharts-"+(l?"":e)+r++}}();return f.jQuery,b={addEvent:function(e,r,o,i){i===void 0&&(i={});var c=typeof e=="function"&&e.prototype||e;Object.hasOwnProperty.call(c,"hcEvents")||(c.hcEvents={}),c=c.hcEvents,W.Point&&e instanceof W.Point&&e.series&&e.series.chart&&(e.series.chart.runTrackerClick=!0);var a=e.addEventListener||W.addEventListenerPolyfill;return a&&a.call(e,r,o,!!W.supportsPassiveEvents&&{passive:i.passive===void 0?r.indexOf("touch")!==-1:i.passive,capture:!1}),c[r]||(c[r]=[]),c[r].push({fn:o,order:typeof i.order=="number"?i.order:1/0}),c[r].sort(function(s,m){return s.order-m.order}),function(){C(e,r,o)}},arrayMax:function(e){for(var r=e.length,o=e[0];r--;)e[r]>o&&(o=e[r]);return o},arrayMin:function(e){for(var r=e.length,o=e[0];r--;)e[r]<o&&(o=e[r]);return o},attr:x,clamp:function(e,r,o){return e>r?e<o?e:o:r},cleanRecursively:function e(r,o){var i={};return y(r,function(c,a){q(r[a],!0)&&!r.nodeType&&o[a]?(c=e(r[a],o[a]),Object.keys(c).length&&(i[a]=c)):(q(r[a])||r[a]!==o[a]||a in r&&!(a in o))&&(i[a]=r[a])}),i},clearTimeout:function(e){E(e)&&clearTimeout(e)},correctFloat:v,createElement:function(e,r,o,i,c){return e=M.createElement(e),r&&T(e,r),c&&p(e,{padding:"0",border:"none",margin:"0"}),o&&p(e,o),i&&i.appendChild(e),e},css:p,defined:E,destroyObjectProperties:function(e,r){y(e,function(o,i){o&&o!==r&&o.destroy&&o.destroy(),delete e[i]})},discardElement:function(e){e&&e.parentElement&&e.parentElement.removeChild(e)},erase:function(e,r){for(var o=e.length;o--;)if(e[o]===r){e.splice(o,1);break}},error:R,extend:T,extendClass:function(e,r){var o=function(){};return T(o.prototype=new e,r),o},find:b,fireEvent:P,getMagnitude:g,getNestedProperty:function(e,r){for(e=e.split(".");e.length&&E(r);){var o=e.shift();if(o===void 0||o==="__proto__"||!E(r=r[o])||typeof r=="function"||typeof r.nodeType=="number"||r===f)return}return r},getStyle:function e(r,o,i){var c=W.getStyle||e;if(o==="width")return o=Math.min(r.offsetWidth,r.scrollWidth),(i=r.getBoundingClientRect&&r.getBoundingClientRect().width)<o&&i>=o-1&&(o=Math.floor(i)),Math.max(0,o-(c(r,"padding-left",!0)||0)-(c(r,"padding-right",!0)||0));if(o==="height")return Math.max(0,Math.min(r.offsetHeight,r.scrollHeight)-(c(r,"padding-top",!0)||0)-(c(r,"padding-bottom",!0)||0));if(f.getComputedStyle||R(27,!0),r=f.getComputedStyle(r,void 0)){var a=r.getPropertyValue(o);u(i,o!=="opacity")&&(a=U(a))}return a},inArray:function(e,r,o){return R(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"}),r.indexOf(e,o)},isArray:Z,isClass:G,isDOMElement:$,isFunction:function(e){return typeof e=="function"},isNumber:D,isObject:q,isString:Y,keys:function(e){return R(32,!1,void 0,{"Highcharts.keys":"use Object.keys"}),Object.keys(e)},merge:function(){var e,r=arguments,o={},i=function(a,s){return typeof a!="object"&&(a={}),y(s,function(m,A){A!=="__proto__"&&A!=="constructor"&&(!q(m,!0)||G(m)||$(m)?a[A]=s[A]:a[A]=i(a[A]||{},m))}),a};r[0]===!0&&(o=r[1],r=Array.prototype.slice.call(r,2));var c=r.length;for(e=0;e<c;e++)o=i(o,r[e]);return o},normalizeTickInterval:function(e,r,o,i,c){var a=e,s=e/(o=u(o,g(e)));for(r||(r=c?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],i===!1&&(o===1?r=r.filter(function(m){return m%1==0}):.1>=o&&(r=[1/o]))),i=0;i<r.length&&(a=r[i],!(c&&a*o>=e||!c&&s<=(r[i]+(r[i+1]||r[i]))/2));i++);return v(a*o,-Math.round(Math.log(.001)/Math.LN10))},objectEach:y,offset:function(e){var r=M.documentElement;return{top:(e=e.parentElement||e.parentNode?e.getBoundingClientRect():{top:0,left:0,width:0,height:0}).top+(f.pageYOffset||r.scrollTop)-(r.clientTop||0),left:e.left+(f.pageXOffset||r.scrollLeft)-(r.clientLeft||0),width:e.width,height:e.height}},pad:function(e,r,o){return Array((r||2)+1-String(e).replace("-","").length).join(o||"0")+e},pick:u,pInt:U,relativeLength:function(e,r,o){return/%$/.test(e)?r*parseFloat(e)/100+(o||0):parseFloat(e)},removeEvent:C,splat:function(e){return Z(e)?e:[e]},stableSort:function(e,r){var o,i,c=e.length;for(i=0;i<c;i++)e[i].safeI=i;for(e.sort(function(a,s){return(o=r(a,s))===0?a.safeI-s.safeI:o}),i=0;i<c;i++)delete e[i].safeI},syncTimeout:function(e,r,o){return 0<r?setTimeout(e,r,o):(e.call(0,o),-1)},timeUnits:{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},uniqueKey:h,useSerialIds:function(e){return l=u(e,l)},wrap:function(e,r,o){var i=e[r];e[r]=function(){var c=arguments,a=this;return o.apply(this,[function(){return i.apply(a,arguments.length?arguments:c)}].concat([].slice.call(arguments)))}}},b}),N(rt,"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"}}),N(rt,"Core/Color/Color.js",[rt["Core/Globals.js"],rt["Core/Utilities.js"]],function(W,R){var U=R.isNumber,Y=R.merge,Z=R.pInt;return R=function(){function q($){this.rgba=[NaN,NaN,NaN,NaN],this.input=$;var G=W.Color;return G&&G!==q?new G($):this instanceof q?void this.init($):new q($)}return q.parse=function($){return $?new q($):q.None},q.prototype.init=function($){var G;if(typeof $=="object"&&$.stops!==void 0)this.stops=$.stops.map(function(T){return new q(T[1])});else if(typeof $=="string"){if(this.input=$=q.names[$.toLowerCase()]||$,$.charAt(0)==="#"){var D=$.length,E=parseInt($.substr(1),16);D===7?G=[(16711680&E)>>16,(65280&E)>>8,255&E,1]:D===4&&(G=[(3840&E)>>4|(3840&E)>>8,(240&E)>>4|240&E,(15&E)<<4|15&E,1])}if(!G)for(E=q.parsers.length;E--&&!G;){var x=q.parsers[E];(D=x.regex.exec($))&&(G=x.parse(D))}}G&&(this.rgba=G)},q.prototype.get=function($){var G=this.input,D=this.rgba;if(typeof G=="object"&&this.stops!==void 0){var E=Y(G);return E.stops=[].slice.call(E.stops),this.stops.forEach(function(x,T){E.stops[T]=[E.stops[T][0],x.get($)]}),E}return D&&U(D[0])?$==="rgb"||!$&&D[3]===1?"rgb("+D[0]+","+D[1]+","+D[2]+")":$==="a"?"".concat(D[3]):"rgba("+D.join(",")+")":G},q.prototype.brighten=function($){var G=this.rgba;if(this.stops)this.stops.forEach(function(E){E.brighten($)});else if(U($)&&$!==0)for(var D=0;3>D;D++)G[D]+=Z(255*$),0>G[D]&&(G[D]=0),255<G[D]&&(G[D]=255);return this},q.prototype.setOpacity=function($){return this.rgba[3]=$,this},q.prototype.tweenTo=function($,G){var D=this.rgba,E=$.rgba;return U(D[0])&&U(E[0])?(($=E[3]!==1||D[3]!==1)?"rgba(":"rgb(")+Math.round(E[0]+(D[0]-E[0])*(1-G))+","+Math.round(E[1]+(D[1]-E[1])*(1-G))+","+Math.round(E[2]+(D[2]-E[2])*(1-G))+($?","+(E[3]+(D[3]-E[3])*(1-G)):"")+")":$.input||"none"},q.names={white:"#ffffff",black:"#000000"},q.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($){return[Z($[1]),Z($[2]),Z($[3]),parseFloat($[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function($){return[Z($[1]),Z($[2]),Z($[3]),1]}}],q.None=new q(""),q}(),R}),N(rt,"Core/Color/Palettes.js",[],function(){return{colors:"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1".split(" ")}}),N(rt,"Core/Time.js",[rt["Core/Globals.js"],rt["Core/Utilities.js"]],function(W,R){var U=W.win,Y=R.defined,Z=R.error,q=R.extend,$=R.isObject,G=R.merge,D=R.objectEach,E=R.pad,x=R.pick,T=R.splat,u=R.timeUnits,p=W.isSafari&&U.Intl&&U.Intl.DateTimeFormat.prototype.formatRange,g=W.isSafari&&U.Intl&&!U.Intl.DateTimeFormat.prototype.formatRange;return R=function(){function v(y){this.options={},this.variableTimezone=this.useUTC=!1,this.Date=U.Date,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.update(y)}return v.prototype.get=function(y,C){if(this.variableTimezone||this.timezoneOffset){var P=C.getTime(),L=P-this.getTimezoneOffset(C);return C.setTime(L),y=C["getUTC"+y](),C.setTime(P),y}return this.useUTC?C["getUTC"+y]():C["get"+y]()},v.prototype.set=function(y,C,P){if(this.variableTimezone||this.timezoneOffset){if(y==="Milliseconds"||y==="Seconds"||y==="Minutes"&&this.getTimezoneOffset(C)%36e5==0)return C["setUTC"+y](P);var L=this.getTimezoneOffset(C);return L=C.getTime()-L,C.setTime(L),C["setUTC"+y](P),y=this.getTimezoneOffset(C),L=C.getTime()+y,C.setTime(L)}return this.useUTC||p&&y==="FullYear"?C["setUTC"+y](P):C["set"+y](P)},v.prototype.update=function(y){y===void 0&&(y={});var C=x(y.useUTC,!0);this.options=y=G(!0,this.options,y),this.Date=y.Date||U.Date||Date,this.timezoneOffset=(this.useUTC=C)&&y.timezoneOffset||void 0,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.variableTimezone=C&&!(!y.getTimezoneOffset&&!y.timezone)},v.prototype.makeTime=function(y,C,P,L,M,f){if(this.useUTC){var b=this.Date.UTC.apply(0,arguments),l=this.getTimezoneOffset(b);b+=l;var h=this.getTimezoneOffset(b);l!==h?b+=h-l:l-36e5!==this.getTimezoneOffset(b-36e5)||g||(b-=36e5)}else b=new this.Date(y,C,x(P,1),x(L,0),x(M,0),x(f,0)).getTime();return b},v.prototype.timezoneOffsetFunction=function(){var y=this,C=this.options,P=C.getTimezoneOffset,L=C.moment||U.moment;if(!this.useUTC)return function(M){return 6e4*new Date(M.toString()).getTimezoneOffset()};if(C.timezone){if(L)return function(M){return 6e4*-L.tz(M,C.timezone).utcOffset()};Z(25)}return this.useUTC&&P?function(M){return 6e4*P(M.valueOf())}:function(){return 6e4*(y.timezoneOffset||0)}},v.prototype.dateFormat=function(y,C,P){if(!Y(C)||isNaN(C))return W.defaultOptions.lang&&W.defaultOptions.lang.invalidDate||"";y=x(y,"%Y-%m-%d %H:%M:%S");var L=this,M=new this.Date(C),f=this.get("Hours",M),b=this.get("Day",M),l=this.get("Date",M),h=this.get("Month",M),e=this.get("FullYear",M),r=W.defaultOptions.lang,o=r&&r.weekdays,i=r&&r.shortWeekdays;return M=q({a:i?i[b]:o[b].substr(0,3),A:o[b],d:E(l),e:E(l,2," "),w:b,b:r.shortMonths[h],B:r.months[h],m:E(h+1),o:h+1,y:e.toString().substr(2,2),Y:e,H:E(f),k:f,I:E(f%12||12),l:f%12||12,M:E(this.get("Minutes",M)),p:12>f?"AM":"PM",P:12>f?"am":"pm",S:E(M.getSeconds()),L:E(Math.floor(C%1e3),3)},W.dateFormats),D(M,function(c,a){for(;y.indexOf("%"+a)!==-1;)y=y.replace("%"+a,typeof c=="function"?c.call(L,C):c)}),P?y.substr(0,1).toUpperCase()+y.substr(1):y},v.prototype.resolveDTLFormat=function(y){return $(y,!0)?y:{main:(y=T(y))[0],from:y[1],to:y[2]}},v.prototype.getTimeTicks=function(y,C,P,L){var M,f=this,b=[],l={},h=new f.Date(C),e=y.unitRange,r=y.count||1;if(L=x(L,1),Y(C)){if(f.set("Milliseconds",h,e>=u.second?0:r*Math.floor(f.get("Milliseconds",h)/r)),e>=u.second&&f.set("Seconds",h,e>=u.minute?0:r*Math.floor(f.get("Seconds",h)/r)),e>=u.minute&&f.set("Minutes",h,e>=u.hour?0:r*Math.floor(f.get("Minutes",h)/r)),e>=u.hour&&f.set("Hours",h,e>=u.day?0:r*Math.floor(f.get("Hours",h)/r)),e>=u.day&&f.set("Date",h,e>=u.month?1:Math.max(1,r*Math.floor(f.get("Date",h)/r))),e>=u.month){f.set("Month",h,e>=u.year?0:r*Math.floor(f.get("Month",h)/r));var o=f.get("FullYear",h)}e>=u.year&&f.set("FullYear",h,o-o%r),e===u.week&&(o=f.get("Day",h),f.set("Date",h,f.get("Date",h)-o+L+(o<L?-7:0))),o=f.get("FullYear",h),L=f.get("Month",h);var i=f.get("Date",h),c=f.get("Hours",h);for(C=h.getTime(),!f.variableTimezone&&f.useUTC||!Y(P)||(M=P-C>4*u.month||f.getTimezoneOffset(C)!==f.getTimezoneOffset(P)),C=h.getTime(),h=1;C<P;)b.push(C),C=e===u.year?f.makeTime(o+h*r,0):e===u.month?f.makeTime(o,L+h*r):!M||e!==u.day&&e!==u.week?M&&e===u.hour&&1<r?f.makeTime(o,L,i,c+h*r):C+e*r:f.makeTime(o,L,i+h*r*(e===u.day?1:7)),h++;b.push(C),e<=u.hour&&1e4>b.length&&b.forEach(function(a){a%18e5==0&&f.dateFormat("%H%M%S%L",a)==="000000000"&&(l[a]="day")})}return b.info=q(y,{higherRanks:l,totalRange:e*r}),b},v.prototype.getDateFormat=function(y,C,P,L){var M=this.dateFormat("%m-%d %H:%M:%S.%L",C),f={millisecond:15,second:12,minute:9,hour:6,day:3},b="millisecond";for(l in u){if(y===u.week&&+this.dateFormat("%w",C)===P&&M.substr(6)==="00:00:00.000"){var l="week";break}if(u[l]>y){l=b;break}if(f[l]&&M.substr(f[l])!=="01-01 00:00:00.000".substr(f[l]))break;l!=="week"&&(b=l)}return this.resolveDTLFormat(L[l]).main},v}(),R}),N(rt,"Core/Defaults.js",[rt["Core/Chart/ChartDefaults.js"],rt["Core/Color/Color.js"],rt["Core/Globals.js"],rt["Core/Color/Palettes.js"],rt["Core/Time.js"],rt["Core/Utilities.js"]],function(W,R,U,Y,Z,q){R=R.parse;var $=q.merge,G={colors:Y.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:W,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:U.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:U.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:R("#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"}};G.chart.styledMode=!1;var D=new Z($(G.global,G.time));return{defaultOptions:G,defaultTime:D,getOptions:function(){return G},setOptions:function(E){return $(!0,G,E),(E.time||E.global)&&(U.time?U.time.update($(G.global,G.time,E.global,E.time)):U.time=D),G}}}),N(rt,"Core/Animation/Fx.js",[rt["Core/Color/Color.js"],rt["Core/Globals.js"],rt["Core/Utilities.js"]],function(W,R,U){var Y=W.parse,Z=R.win,q=U.isNumber,$=U.objectEach;return function(){function G(D,E,x){this.pos=NaN,this.options=E,this.elem=D,this.prop=x}return G.prototype.dSetter=function(){var D=this.paths,E=D&&D[0];D=D&&D[1];var x=this.now||0,T=[];if(x!==1&&E&&D)if(E.length===D.length&&1>x)for(var u=0;u<D.length;u++){for(var p=E[u],g=D[u],v=[],y=0;y<g.length;y++){var C=p[y],P=g[y];q(C)&&q(P)&&(g[0]!=="A"||y!==4&&y!==5)?v[y]=C+x*(P-C):v[y]=P}T.push(v)}else T=D;else T=this.toD||[];this.elem.attr("d",T,void 0,!0)},G.prototype.update=function(){var D=this.elem,E=this.prop,x=this.now,T=this.options.step;this[E+"Setter"]?this[E+"Setter"]():D.attr?D.element&&D.attr(E,x,null,!0):D.style[E]=x+this.unit,T&&T.call(D,x,this)},G.prototype.run=function(D,E,x){var T=this,u=T.options,p=function(y){return!p.stopped&&T.step(y)},g=Z.requestAnimationFrame||function(y){setTimeout(y,13)},v=function(){for(var y=0;y<G.timers.length;y++)G.timers[y]()||G.timers.splice(y--,1);G.timers.length&&g(v)};D!==E||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=D,this.end=E,this.unit=x,this.now=this.start,this.pos=0,p.elem=this.elem,p.prop=this.prop,p()&&G.timers.push(p)===1&&g(v)):(delete u.curAnim[this.prop],u.complete&&Object.keys(u.curAnim).length===0&&u.complete.call(this.elem))},G.prototype.step=function(D){var E=+new Date,x=this.options,T=this.elem,u=x.complete,p=x.duration,g=x.curAnim;if(T.attr&&!T.element)D=!1;else if(D||E>=p+this.startTime){this.now=this.end,this.pos=1,this.update();var v=g[this.prop]=!0;$(g,function(y){y!==!0&&(v=!1)}),v&&u&&u.call(T),D=!1}else this.pos=x.easing((E-this.startTime)/p),this.now=this.start+(this.end-this.start)*this.pos,this.update(),D=!0;return D},G.prototype.initPath=function(D,E,x){function T(M,f){for(;M.length<L;){var b=M[0],l=f[L-M.length];l&&b[0]==="M"&&(M[0]=l[0]==="C"?["C",b[1],b[2],b[1],b[2],b[1],b[2]]:["L",b[1],b[2]]),M.unshift(b),v&&(b=M.pop(),M.push(M[M.length-1],b))}}function u(M,f){for(;M.length<L;)if((f=M[Math.floor(M.length/y)-1].slice())[0]==="C"&&(f[1]=f[5],f[2]=f[6]),v){var b=M[Math.floor(M.length/y)].slice();M.splice(M.length/2,0,f,b)}else M.push(f)}var p=D.startX,g=D.endX;x=x.slice();var v=D.isArea,y=v?2:1;if(!(E=E&&E.slice()))return[x,x];if(p&&g&&g.length){for(D=0;D<p.length;D++){if(p[D]===g[0]){var C=D;break}if(p[0]===g[g.length-p.length+D]){C=D;var P=!0;break}if(p[p.length-1]===g[g.length-p.length+D]){C=p.length-D;break}}C===void 0&&(E=[])}if(E.length&&q(C)){var L=x.length+C*y;P?(T(E,x),u(x,E)):(T(x,E),u(E,x))}return[E,x]},G.prototype.fillSetter=function(){G.prototype.strokeSetter.apply(this,arguments)},G.prototype.strokeSetter=function(){this.elem.attr(this.prop,Y(this.start).tweenTo(Y(this.end),this.pos),void 0,!0)},G.timers=[],G}()}),N(rt,"Core/Animation/AnimationUtilities.js",[rt["Core/Animation/Fx.js"],rt["Core/Utilities.js"]],function(W,R){function U(u){return D(u)?E({duration:500,defer:0},u):{duration:u?500:0,defer:0}}function Y(u,p){for(var g=W.timers.length;g--;)W.timers[g].elem!==u||p&&p!==W.timers[g].prop||(W.timers[g].stopped=!0)}var Z=R.defined,q=R.getStyle,$=R.isArray,G=R.isNumber,D=R.isObject,E=R.merge,x=R.objectEach,T=R.pick;return{animate:function(u,p,g){var v,y,C,P="";if(!D(g)){var L=arguments;g={duration:L[2],easing:L[3],complete:L[4]}}G(g.duration)||(g.duration=400),g.easing=typeof g.easing=="function"?g.easing:Math[g.easing]||Math.easeInOutSine,g.curAnim=E(p),x(p,function(M,f){Y(u,f),C=new W(u,g,f),y=void 0,f==="d"&&$(p.d)?(C.paths=C.initPath(u,u.pathArray,p.d),C.toD=p.d,v=0,y=1):u.attr?v=u.attr(f):(v=parseFloat(q(u,f))||0,f!=="opacity"&&(P="px")),y||(y=M),typeof y=="string"&&y.match("px")&&(y=y.replace(/px/g,"")),C.run(v,y,P)})},animObject:U,getDeferredAnimation:function(u,p,g){var v=U(p),y=0,C=0;return(g?[g]:u.series).forEach(function(P){P=U(P.options.animation),y=p&&Z(p.defer)?v.defer:Math.max(y,P.duration+P.defer),C=Math.min(v.duration,P.duration)}),u.renderer.forExport&&(y=0),{defer:Math.max(0,y-C),duration:Math.min(y,C)}},setAnimation:function(u,p){p.renderer.globalAnimation=T(u,p.options.chart.animation,!0)},stop:Y}}),N(rt,"Core/Renderer/HTML/AST.js",[rt["Core/Globals.js"],rt["Core/Utilities.js"]],function(W,R){var U=W.SVG_NS,Y=R.attr,Z=R.createElement,q=R.css,$=R.error,G=R.isFunction,D=R.isString,E=R.objectEach,x=R.splat,T=(R=W.win.trustedTypes)&&G(R.createPolicy)&&R.createPolicy("highcharts",{createHTML:function(g){return g}}),u=T?T.createHTML(""):"";try{var p=!!new DOMParser().parseFromString(u,"text/html")}catch(g){p=!1}return G=function(){function g(v){this.nodes=typeof v=="string"?this.parseMarkup(v):v}return g.filterUserAttributes=function(v){return E(v,function(y,C){var P=!0;g.allowedAttributes.indexOf(C)===-1&&(P=!1),["background","dynsrc","href","lowsrc","src"].indexOf(C)!==-1&&(P=D(y)&&g.allowedReferences.some(function(L){return y.indexOf(L)===0})),P||($(33,!1,void 0,{"Invalid attribute in config":"".concat(C)}),delete v[C]),D(y)&&v[C]&&(v[C]=y.replace(/</g,"&lt;"))}),v},g.parseStyle=function(v){return v.split(";").reduce(function(y,C){C=C.split(":").map(function(L){return L.trim()});var P=C.shift();return P&&C.length&&(y[P.replace(/-([a-z])/g,function(L){return L[1].toUpperCase()})]=C.join(":")),y},{})},g.setElementHTML=function(v,y){v.innerHTML=g.emptyHTML,y&&new g(y).addToDOM(v)},g.prototype.addToDOM=function(v){return function y(C,P){var L;return x(C).forEach(function(M){var f=M.tagName,b=M.textContent?W.doc.createTextNode(M.textContent):void 0,l=g.bypassHTMLFiltering;if(f)if(f==="#text")var h=b;else if(g.allowedTags.indexOf(f)!==-1||l){f=W.doc.createElementNS(f==="svg"?U:P.namespaceURI||U,f);var e=M.attributes||{};E(M,function(r,o){o!=="tagName"&&o!=="attributes"&&o!=="children"&&o!=="style"&&o!=="textContent"&&(e[o]=r)}),Y(f,l?e:g.filterUserAttributes(e)),M.style&&q(f,M.style),b&&f.appendChild(b),y(M.children||[],f),h=f}else $(33,!1,void 0,{"Invalid tagName in config":f});h&&P.appendChild(h),L=h}),L}(this.nodes,v)},g.prototype.parseMarkup=function(v){var y=[];if(v=v.trim().replace(/ style=(["'])/g," data-style=$1"),p)v=new DOMParser().parseFromString(T?T.createHTML(v):v,"text/html");else{var C=Z("div");C.innerHTML=v,v={body:C}}var P=function(L,M){var f=L.nodeName.toLowerCase(),b={tagName:f};if(f==="#text"&&(b.textContent=L.textContent||""),f=L.attributes){var l={};[].forEach.call(f,function(e){e.name==="data-style"?b.style=g.parseStyle(e.value):l[e.name]=e.value}),b.attributes=l}if(L.childNodes.length){var h=[];[].forEach.call(L.childNodes,function(e){P(e,h)}),h.length&&(b.children=h)}M.push(b)};return[].forEach.call(v.body.childNodes,function(L){return P(L,y)}),y},g.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(" "),g.allowedReferences="https:// http:// mailto: / ../ ./ #".split(" "),g.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(" "),g.emptyHTML=u,g.bypassHTMLFiltering=!1,g}(),G}),N(rt,"Core/FormatUtilities.js",[rt["Core/Defaults.js"],rt["Core/Utilities.js"]],function(W,R){function U(E,x,T,u){E=+E||0,x=+x;var p=Y.lang,g=(E.toString().split(".")[1]||"").split("e")[0].length,v=E.toString().split("e"),y=x;if(x===-1)x=Math.min(g,20);else if($(x)){if(x&&v[1]&&0>v[1]){var C=x+ +v[1];0<=C?(v[0]=(+v[0]).toExponential(C).split("e")[0],x=C):(v[0]=v[0].split(".")[0]||0,E=20>x?(v[0]*Math.pow(10,v[1])).toFixed(x):0,v[1]=0)}}else x=2;C=(Math.abs(v[1]?v[0]:E)+Math.pow(10,-Math.max(x,g)-1)).toFixed(x);var P=3<(g=String(D(C))).length?g.length%3:0;return T=G(T,p.decimalPoint),u=G(u,p.thousandsSep),E=(0>E?"-":"")+(P?g.substr(0,P)+u:""),E=0>+v[1]&&!y?"0":E+g.substr(P).replace(/(\d{3})(?=\d)/g,"$1"+u),x&&(E+=T+C.slice(-x)),v[1]&&+E!=0&&(E+="e"+v[1]),E}var Y=W.defaultOptions,Z=W.defaultTime,q=R.getNestedProperty,$=R.isNumber,G=R.pick,D=R.pInt;return{dateFormat:function(E,x,T){return Z.dateFormat(E,x,T)},format:function(E,x,T){var u="{",p=!1,g=/f$/,v=/\.([0-9])/,y=Y.lang,C=T&&T.time||Z;T=T&&T.numberFormatter||U;for(var P=[];E;){var L=E.indexOf(u);if(L===-1)break;var M=E.slice(0,L);if(p){if(M=M.split(":"),u=q(M.shift()||"",x),M.length&&typeof u=="number")if(M=M.join(":"),g.test(M)){var f=parseInt((M.match(v)||["","-1"])[1],10);u!==null&&(u=T(u,f,y.decimalPoint,-1<M.indexOf(",")?y.thousandsSep:""))}else u=C.dateFormat(M,u);P.push(u)}else P.push(M);E=E.slice(L+1),u=(p=!p)?"}":"{"}return P.push(E),P.join("")},numberFormat:U}}),N(rt,"Core/Renderer/RendererUtilities.js",[rt["Core/Utilities.js"]],function(W){var R,U=W.clamp,Y=W.pick,Z=W.stableSort;return function(q){q.distribute=function $(G,D,E){var x,T=G,u=T.reducedLen||D,p=function(P,L){return(L.rank||0)-(P.rank||0)},g=function(P,L){return P.target-L.target},v=!0,y=[],C=0;for(x=G.length;x--;)C+=G[x].size;if(C>u){for(Z(G,p),C=x=0;C<=u;)C+=G[x].size,x++;y=G.splice(x-1,G.length)}for(Z(G,g),G=G.map(function(P){return{size:P.size,targets:[P.target],align:Y(P.align,.5)}});v;){for(x=G.length;x--;)u=G[x],p=(Math.min.apply(0,u.targets)+Math.max.apply(0,u.targets))/2,u.pos=U(p-u.size*u.align,0,D-u.size);for(x=G.length,v=!1;x--;)0<x&&G[x-1].pos+G[x-1].size>G[x].pos&&(G[x-1].size+=G[x].size,G[x-1].targets=G[x-1].targets.concat(G[x].targets),G[x-1].align=.5,G[x-1].pos+G[x-1].size>D&&(G[x-1].pos=D-G[x-1].size),G.splice(x,1),v=!0)}return T.push.apply(T,y),x=0,G.some(function(P){var L=0;return(P.targets||[]).some(function(){return T[x].pos=P.pos+L,E!==void 0&&Math.abs(T[x].pos-T[x].target)>E?(T.slice(0,x+1).forEach(function(M){return delete M.pos}),T.reducedLen=(T.reducedLen||D)-.1*D,T.reducedLen>.1*D&&$(T,D,E),!0):(L+=T[x].size,x++,!1)})}),Z(T,g),T}}(R||(R={})),R}),N(rt,"Core/Renderer/SVG/SVGElement.js",[rt["Core/Animation/AnimationUtilities.js"],rt["Core/Color/Color.js"],rt["Core/Globals.js"],rt["Core/Utilities.js"]],function(W,R,U,Y){var Z=W.animate,q=W.animObject,$=W.stop,G=U.deg2rad,D=U.doc,E=U.svg,x=U.SVG_NS,T=U.win,u=Y.addEvent,p=Y.attr,g=Y.createElement,v=Y.css,y=Y.defined,C=Y.erase,P=Y.extend,L=Y.fireEvent,M=Y.isArray,f=Y.isFunction,b=Y.isString,l=Y.merge,h=Y.objectEach,e=Y.pick,r=Y.pInt,o=Y.syncTimeout,i=Y.uniqueKey;return W=function(){function c(){this.element=void 0,this.onEvents={},this.opacity=1,this.renderer=void 0,this.SVG_NS=x,this.symbolCustomAttribs="x y width height r start end innerR anchorX anchorY rounded".split(" ")}return c.prototype._defaultGetter=function(a){return a=e(this[a+"Value"],this[a],this.element?this.element.getAttribute(a):null,0),/^[\-0-9\.]+$/.test(a)&&(a=parseFloat(a)),a},c.prototype._defaultSetter=function(a,s,m){m.setAttribute(s,a)},c.prototype.add=function(a){var s=this.renderer,m=this.element;if(a&&(this.parentGroup=a),this.textStr!==void 0&&this.element.nodeName==="text"&&s.buildText(this),this.added=!0,!a||a.handleZ||this.zIndex)var A=this.zIndexSetter();return A||(a?a.element:s.box).appendChild(m),this.onAdd&&this.onAdd(),this},c.prototype.addClass=function(a,s){var m=s?"":this.attr("class")||"";return a=(a||"").split(/ /g).reduce(function(A,O){return m.indexOf(O)===-1&&A.push(O),A},m?[m]:[]).join(" "),a!==m&&this.attr("class",a),this},c.prototype.afterSetters=function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)},c.prototype.align=function(a,s,m){var A,O,d,w={},k=this.renderer,z=k.alignedObjects;a?(this.alignOptions=a,this.alignByTranslate=s,(!m||b(m))&&(this.alignTo=A=m||"renderer",C(z,this),z.push(this),m=void 0)):(a=this.alignOptions,s=this.alignByTranslate,A=this.alignTo),m=e(m,k[A],A==="scrollablePlotBox"?k.plotBox:void 0,k),A=a.align;var F=a.verticalAlign;return k=(m.x||0)+(a.x||0),z=(m.y||0)+(a.y||0),A==="right"?O=1:A==="center"&&(O=2),O&&(k+=(m.width-(a.width||0))/O),w[s?"translateX":"x"]=Math.round(k),F==="bottom"?d=1:F==="middle"&&(d=2),d&&(z+=(m.height-(a.height||0))/d),w[s?"translateY":"y"]=Math.round(z),this[this.placed?"animate":"attr"](w),this.placed=!0,this.alignAttr=w,this},c.prototype.alignSetter=function(a){var s={left:"start",center:"middle",right:"end"};s[a]&&(this.alignValue=a,this.element.setAttribute("text-anchor",s[a]))},c.prototype.animate=function(a,s,m){var A=this,O=q(e(s,this.renderer.globalAnimation,!0));return s=O.defer,e(D.hidden,D.msHidden,D.webkitHidden,!1)&&(O.duration=0),O.duration!==0?(m&&(O.complete=m),o(function(){A.element&&Z(A,a,O)},s)):(this.attr(a,void 0,m||O.complete),h(a,function(d,w){O.step&&O.step.call(this,d,{prop:w,pos:1,elem:this})},this)),this},c.prototype.applyTextOutline=function(a){var s=this.element;a.indexOf("contrast")!==-1&&(a=a.replace(/contrast/g,this.renderer.getContrast(s.style.fill)));var m=a.split(" ");if(a=m[m.length-1],(m=m[0])&&m!=="none"&&U.svg){this.fakeTS=!0,m=m.replace(/(^[\d\.]+)(.*?)$/g,function(d,w,k){return 2*Number(w)+k}),this.removeTextOutline();var A=D.createElementNS(x,"tspan");p(A,{class:"highcharts-text-outline",fill:a,stroke:a,"stroke-width":m,"stroke-linejoin":"round"}),a=s.querySelector("textPath")||s,[].forEach.call(a.childNodes,function(d){var w=d.cloneNode(!0);w.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach(function(k){return w.removeAttribute(k)}),A.appendChild(w)});var O=0;[].forEach.call(a.querySelectorAll("text tspan"),function(d){O+=Number(d.getAttribute("dy"))}),(m=D.createElementNS(x,"tspan")).textContent="​",p(m,{x:Number(s.getAttribute("x")),dy:-O}),A.appendChild(m),a.insertBefore(A,a.firstChild)}},c.prototype.attr=function(a,s,m,A){var O,d,w,k=this.element,z=this.symbolCustomAttribs,F=this;if(typeof a=="string"&&s!==void 0){var j=a;(a={})[j]=s}return typeof a=="string"?F=(this[a+"Getter"]||this._defaultGetter).call(this,a,k):(h(a,function(I,_){d=!1,A||$(this,_),this.symbolName&&z.indexOf(_)!==-1&&(O||(this.symbolAttr(a),O=!0),d=!0),!this.rotation||_!=="x"&&_!=="y"||(this.doTransform=!0),d||((w=this[_+"Setter"]||this._defaultSetter).call(this,I,_,k),!this.styledMode&&this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(_)&&this.updateShadows(_,I,w))},this),this.afterSetters()),m&&m.call(this),F},c.prototype.clip=function(a){return this.attr("clip-path",a?"url("+this.renderer.url+"#"+a.id+")":"none")},c.prototype.crisp=function(a,s){s=s||a.strokeWidth||0;var m=Math.round(s)%2/2;return a.x=Math.floor(a.x||this.x||0)+m,a.y=Math.floor(a.y||this.y||0)+m,a.width=Math.floor((a.width||this.width||0)-2*m),a.height=Math.floor((a.height||this.height||0)-2*m),y(a.strokeWidth)&&(a.strokeWidth=s),a},c.prototype.complexColor=function(a,s,m){var A,O,d,w,k,z,F,j,I,_,V,X=this.renderer,H=[];L(this.renderer,"complexColor",{args:arguments},function(){if(a.radialGradient?O="radialGradient":a.linearGradient&&(O="linearGradient"),O){if(d=a[O],k=X.gradients,z=a.stops,I=m.radialReference,M(d)&&(a[O]=d={x1:d[0],y1:d[1],x2:d[2],y2:d[3],gradientUnits:"userSpaceOnUse"}),O==="radialGradient"&&I&&!y(d.gradientUnits)&&(w=d,d=l(d,X.getRadialAttr(I,w),{gradientUnits:"userSpaceOnUse"})),h(d,function(et,tt){tt!=="id"&&H.push(tt,et)}),h(z,function(et){H.push(et)}),H=H.join(","),k[H])_=k[H].attr("id");else{d.id=_=i();var Q=k[H]=X.createElement(O).attr(d).add(X.defs);Q.radAttr=w,Q.stops=[],z.forEach(function(et){et[1].indexOf("rgba")===0?(A=R.parse(et[1]),F=A.get("rgb"),j=A.get("a")):(F=et[1],j=1),et=X.createElement("stop").attr({offset:et[0],"stop-color":F,"stop-opacity":j}).add(Q),Q.stops.push(et)})}V="url("+X.url+"#"+_+")",m.setAttribute(s,V),m.gradient=H,a.toString=function(){return V}}})},c.prototype.css=function(a){var s=this.styles,m={},A=this.element,O=!s;if(a.color&&(a.fill=a.color),s&&h(a,function(k,z){s&&s[z]!==k&&(m[z]=k,O=!0)}),O){if(s&&(a=P(s,m)),a.width===null||a.width==="auto")delete this.textWidth;else if(A.nodeName.toLowerCase()==="text"&&a.width)var d=this.textWidth=r(a.width);this.styles=a,d&&!E&&this.renderer.forExport&&delete a.width;var w=l(a);A.namespaceURI===this.SVG_NS&&["textOutline","textOverflow","width"].forEach(function(k){return w&&delete w[k]}),v(A,w),this.added&&(this.element.nodeName==="text"&&this.renderer.buildText(this),a.textOutline&&this.applyTextOutline(a.textOutline))}return this},c.prototype.dashstyleSetter=function(a){var s=this["stroke-width"];if(s==="inherit"&&(s=1),a=a&&a.toLowerCase()){var m=a.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(a=m.length;a--;)m[a]=""+r(m[a])*e(s,NaN);a=m.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",a)}},c.prototype.destroy=function(){var a=this,s=a.element||{},m=a.renderer,A=s.ownerSVGElement,O=m.isSVG&&s.nodeName==="SPAN"&&a.parentGroup||void 0;if(s.onclick=s.onmouseout=s.onmouseover=s.onmousemove=s.point=null,$(a),a.clipPath&&A){var d=a.clipPath;[].forEach.call(A.querySelectorAll("[clip-path],[CLIP-PATH]"),function(w){-1<w.getAttribute("clip-path").indexOf(d.element.id)&&w.removeAttribute("clip-path")}),a.clipPath=d.destroy()}if(a.stops){for(A=0;A<a.stops.length;A++)a.stops[A].destroy();a.stops.length=0,a.stops=void 0}for(a.safeRemoveChild(s),m.styledMode||a.destroyShadows();O&&O.div&&O.div.childNodes.length===0;)s=O.parentGroup,a.safeRemoveChild(O.div),delete O.div,O=s;a.alignTo&&C(m.alignedObjects,a),h(a,function(w,k){a[k]&&a[k].parentGroup===a&&a[k].destroy&&a[k].destroy(),delete a[k]})},c.prototype.destroyShadows=function(){(this.shadows||[]).forEach(function(a){this.safeRemoveChild(a)},this),this.shadows=void 0},c.prototype.dSetter=function(a,s,m){M(a)&&(typeof a[0]=="string"&&(a=this.renderer.pathToSegments(a)),this.pathArray=a,a=a.reduce(function(A,O,d){return O&&O.join?(d?A+" ":"")+O.join(" "):(O||"").toString()},"")),/(NaN| {2}|^$)/.test(a)&&(a="M 0 0"),this[s]!==a&&(m.setAttribute(s,a),this[s]=a)},c.prototype.fadeOut=function(a){var s=this;s.animate({opacity:0},{duration:e(a,150),complete:function(){s.hide()}})},c.prototype.fillSetter=function(a,s,m){typeof a=="string"?m.setAttribute(s,a):a&&this.complexColor(a,s,m)},c.prototype.getBBox=function(a,s){var m=this.alignValue,A=this.element,O=this.renderer,d=this.styles,w=this.textStr,k=O.cache,z=O.cacheKeys,F=A.namespaceURI===this.SVG_NS;s=e(s,this.rotation,0);var j,I=O.styledMode?A&&c.prototype.getStyle.call(A,"font-size"):d&&d.fontSize;if(y(w)){var _=w.toString();_.indexOf("<")===-1&&(_=_.replace(/[0-9]/g,"0")),_+=["",s,I,this.textWidth,m,d&&d.textOverflow,d&&d.fontWeight].join()}if(_&&!a&&(j=k[_]),!j){if(F||O.forExport){try{var V=this.fakeTS&&function(H){var Q=A.querySelector(".highcharts-text-outline");Q&&v(Q,{display:H})};f(V)&&V("none"),j=A.getBBox?P({},A.getBBox()):{width:A.offsetWidth,height:A.offsetHeight,x:0,y:0},f(V)&&V("")}catch(H){}(!j||0>j.width)&&(j={x:0,y:0,width:0,height:0})}else j=this.htmlGetBBox();if(O.isSVG&&(O=j.width,a=j.height,F&&(j.height=a={"11px,17":14,"13px,20":16}[""+(I||"")+",".concat(Math.round(a))]||a),s)){F=Number(A.getAttribute("y")||0)-j.y,m={right:1,center:.5}[m||0]||0,d=s*G,I=(s-90)*G;var X=O*Math.cos(d);s=O*Math.sin(d),V=Math.cos(I),d=Math.sin(I),X=(V=(I=(O=j.x+m*(O-X)+F*V)+X)-a*V)-X,s=(a=(m=(F=j.y+F-m*s+F*d)+s)-a*d)-s,j.x=Math.min(O,I,V,X),j.y=Math.min(F,m,a,s),j.width=Math.max(O,I,V,X)-j.x,j.height=Math.max(F,m,a,s)-j.y}if(_&&(w===""||0<j.height)){for(;250<z.length;)delete k[z.shift()];k[_]||z.push(_),k[_]=j}}return j},c.prototype.getStyle=function(a){return T.getComputedStyle(this.element||this,"").getPropertyValue(a)},c.prototype.hasClass=function(a){return(""+this.attr("class")).split(" ").indexOf(a)!==-1},c.prototype.hide=function(){return this.attr({visibility:"hidden"})},c.prototype.htmlGetBBox=function(){return{height:0,width:0,x:0,y:0}},c.prototype.init=function(a,s){this.element=s==="span"?g(s):D.createElementNS(this.SVG_NS,s),this.renderer=a,L(this,"afterInit")},c.prototype.on=function(a,s){var m=this.onEvents;return m[a]&&m[a](),m[a]=u(this.element,a,s),this},c.prototype.opacitySetter=function(a,s,m){this.opacity=a=Number(Number(a).toFixed(3)),m.setAttribute(s,a)},c.prototype.removeClass=function(a){return this.attr("class",(""+this.attr("class")).replace(b(a)?new RegExp("(^| )".concat(a,"( |$)")):a," ").replace(/ +/g," ").trim())},c.prototype.removeTextOutline=function(){var a=this.element.querySelector("tspan.highcharts-text-outline");a&&this.safeRemoveChild(a)},c.prototype.safeRemoveChild=function(a){var s=a.parentNode;s&&s.removeChild(a)},c.prototype.setRadialReference=function(a){var s=this.element.gradient&&this.renderer.gradients[this.element.gradient];return this.element.radialReference=a,s&&s.radAttr&&s.animate(this.renderer.getRadialAttr(a,s.radAttr)),this},c.prototype.setTextPath=function(a,s){var m=this;s=l(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},s);var A=this.renderer.url,O=this.text||this,d=O.textPath,w=s.attributes,k=s.enabled;return a=a||d&&d.path,d&&d.undo(),a&&k?(s=u(O,"afterModifyTree",function(z){if(a&&k){var F=a.attr("id");F||a.attr("id",F=i());var j={x:0,y:0};y(w.dx)&&(j.dx=w.dx,delete w.dx),y(w.dy)&&(j.dy=w.dy,delete w.dy),O.attr(j),m.attr({transform:""}),m.box&&(m.box=m.box.destroy()),j=z.nodes.slice(0),z.nodes.length=0,z.nodes[0]={tagName:"textPath",attributes:P(w,{"text-anchor":w.textAnchor,href:""+A+"#".concat(F)}),children:j}}}),O.textPath={path:a,undo:s}):(O.attr({dx:0,dy:0}),delete O.textPath),this.added&&(O.textCache="",this.renderer.buildText(O)),this},c.prototype.shadow=function(a,s,m){var A=[],O=this.element,d=this.oldShadowOptions,w=this.parentGroup,k=w&&w.rotation===90;w={color:"#000000",offsetX:k?-1:1,offsetY:k?-1:1,opacity:.15,width:3};var z,F=!1;if(a===!0?z=w:typeof a=="object"&&(z=P(w,a)),z&&(z&&d&&h(z,function(V,X){V!==d[X]&&(F=!0)}),F&&this.destroyShadows(),this.oldShadowOptions=z),z){if(!this.shadows){w=z.opacity/z.width;var j=k?"translate(".concat(z.offsetY,", ").concat(z.offsetX,")"):"translate(".concat(z.offsetX,", ").concat(z.offsetY,")");for(k=1;k<=z.width;k++){var I=O.cloneNode(!1),_=2*z.width+1-2*k;p(I,{stroke:a.color||"#000000","stroke-opacity":w*k,"stroke-width":_,transform:j,fill:"none"}),I.setAttribute("class",(I.getAttribute("class")||"")+" highcharts-shadow"),m&&(p(I,"height",Math.max(p(I,"height")-_,0)),I.cutHeight=_),s?s.element.appendChild(I):O.parentNode&&O.parentNode.insertBefore(I,O),A.push(I)}this.shadows=A}}else this.destroyShadows();return this},c.prototype.show=function(a){return a===void 0&&(a=!0),this.attr({visibility:a?"inherit":"visible"})},c.prototype["stroke-widthSetter"]=function(a,s,m){this[s]=a,m.setAttribute(s,a)},c.prototype.strokeWidth=function(){if(!this.renderer.styledMode)return this["stroke-width"]||0;var a=this.getStyle("stroke-width"),s=0;if(a.indexOf("px")===a.length-2)s=r(a);else if(a!==""){var m=D.createElementNS(x,"rect");p(m,{width:a,"stroke-width":0}),this.element.parentNode.appendChild(m),s=m.getBBox().width,m.parentNode.removeChild(m)}return s},c.prototype.symbolAttr=function(a){var s=this;"x y r start end width height innerR anchorX anchorY clockwise".split(" ").forEach(function(m){s[m]=e(a[m],s[m])}),s.attr({d:s.renderer.symbols[s.symbolName](s.x,s.y,s.width,s.height,s)})},c.prototype.textSetter=function(a){a!==this.textStr&&(delete this.textPxLength,this.textStr=a,this.added&&this.renderer.buildText(this))},c.prototype.titleSetter=function(a){var s=this.element,m=s.getElementsByTagName("title")[0]||D.createElementNS(this.SVG_NS,"title");s.insertBefore?s.insertBefore(m,s.firstChild):s.appendChild(m),m.textContent=String(e(a,"")).replace(/<[^>]*>/g,"").replace(/&lt;/g,"<").replace(/&gt;/g,">")},c.prototype.toFront=function(){var a=this.element;return a.parentNode.appendChild(a),this},c.prototype.translate=function(a,s){return this.attr({translateX:a,translateY:s})},c.prototype.updateShadows=function(a,s,m){var A=this.shadows;if(A)for(var O=A.length;O--;)m.call(A[O],a==="height"?Math.max(s-(A[O].cutHeight||0),0):a==="d"?this.d:s,a,A[O])},c.prototype.updateTransform=function(){var a=this.element,s=this.matrix,m=this.rotation;m=m===void 0?0:m;var A=this.scaleX,O=this.scaleY,d=this.translateX,w=this.translateY;d=["translate("+(d===void 0?0:d)+","+(w===void 0?0:w)+")"],y(s)&&d.push("matrix("+s.join(",")+")"),m&&d.push("rotate("+m+" "+e(this.rotationOriginX,a.getAttribute("x"),0)+" "+e(this.rotationOriginY,a.getAttribute("y")||0)+")"),(y(A)||y(O))&&d.push("scale("+e(A,1)+" "+e(O,1)+")"),d.length&&!(this.text||this).textPath&&a.setAttribute("transform",d.join(" "))},c.prototype.visibilitySetter=function(a,s,m){a==="inherit"?m.removeAttribute(s):this[s]!==a&&m.setAttribute(s,a),this[s]=a},c.prototype.xGetter=function(a){return this.element.nodeName==="circle"&&(a==="x"?a="cx":a==="y"&&(a="cy")),this._defaultGetter(a)},c.prototype.zIndexSetter=function(a,s){var m=this.renderer,A=this.parentGroup,O=(A||m).element||m.box,d=this.element;m=O===m.box;var w,k=!1,z=this.added;if(y(a)?(d.setAttribute("data-z-index",a),a=+a,this[s]===a&&(z=!1)):y(this[s])&&d.removeAttribute("data-z-index"),this[s]=a,z){for((a=this.zIndex)&&A&&(A.handleZ=!0),w=(s=O.childNodes).length-1;0<=w&&!k;w--){z=(A=s[w]).getAttribute("data-z-index");var F=!y(z);A!==d&&(0>a&&F&&!m&&!w?(O.insertBefore(d,s[w]),k=!0):(r(z)<=a||F&&(!y(a)||0<=a))&&(O.insertBefore(d,s[w+1]||null),k=!0))}k||(O.insertBefore(d,s[m?3:0]||null),k=!0)}return k},c}(),W.prototype.strokeSetter=W.prototype.fillSetter,W.prototype.yGetter=W.prototype.xGetter,W.prototype.matrixSetter=W.prototype.rotationOriginXSetter=W.prototype.rotationOriginYSetter=W.prototype.rotationSetter=W.prototype.scaleXSetter=W.prototype.scaleYSetter=W.prototype.translateXSetter=W.prototype.translateYSetter=W.prototype.verticalAlignSetter=function(c,a){this[a]=c,this.doTransform=!0},W}),N(rt,"Core/Renderer/RendererRegistry.js",[rt["Core/Globals.js"]],function(W){var R;return function(U){var Y;U.rendererTypes={},U.getRendererType=function(Z){return Z===void 0&&(Z=Y),U.rendererTypes[Z]||U.rendererTypes[Y]},U.registerRendererType=function(Z,q,$){U.rendererTypes[Z]=q,Y&&!$||(Y=Z,W.Renderer=q)}}(R||(R={})),R}),N(rt,"Core/Renderer/SVG/SVGLabel.js",[rt["Core/Renderer/SVG/SVGElement.js"],rt["Core/Utilities.js"]],function(W,R){var U=this&&this.__extends||function(){var E=function(x,T){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,p){u.__proto__=p}||function(u,p){for(var g in p)p.hasOwnProperty(g)&&(u[g]=p[g])},E(x,T)};return function(x,T){function u(){this.constructor=x}E(x,T),x.prototype=T===null?Object.create(T):(u.prototype=T.prototype,new u)}}(),Y=R.defined,Z=R.extend,q=R.isNumber,$=R.merge,G=R.pick,D=R.removeEvent;return function(E){function x(T,u,p,g,v,y,C,P,L,M){var f,b=E.call(this)||this;return b.paddingLeftSetter=b.paddingSetter,b.paddingRightSetter=b.paddingSetter,b.init(T,"g"),b.textStr=u,b.x=p,b.y=g,b.anchorX=y,b.anchorY=C,b.baseline=L,b.className=M,b.addClass(M==="button"?"highcharts-no-tooltip":"highcharts-label"),M&&b.addClass("highcharts-"+M),b.text=T.text(void 0,0,0,P).attr({zIndex:1}),typeof v=="string"&&((f=/^url\((.*?)\)$/.test(v))||b.renderer.symbols[v])&&(b.symbolKey=v),b.bBox=x.emptyBBox,b.padding=3,b.baselineOffset=0,b.needsBox=T.styledMode||f,b.deferredAttr={},b.alignFactor=0,b}return U(x,E),x.prototype.alignSetter=function(T){(T={left:0,center:.5,right:1}[T])!==this.alignFactor&&(this.alignFactor=T,this.bBox&&q(this.xSetting)&&this.attr({x:this.xSetting}))},x.prototype.anchorXSetter=function(T,u){this.anchorX=T,this.boxAttr(u,Math.round(T)-this.getCrispAdjust()-this.xSetting)},x.prototype.anchorYSetter=function(T,u){this.anchorY=T,this.boxAttr(u,T-this.ySetting)},x.prototype.boxAttr=function(T,u){this.box?this.box.attr(T,u):this.deferredAttr[T]=u},x.prototype.css=function(T){if(T){var u={};T=$(T),x.textProps.forEach(function(p){T[p]!==void 0&&(u[p]=T[p],delete T[p])}),this.text.css(u),"fontSize"in u||"fontWeight"in u?this.updateTextPadding():("width"in u||"textOverflow"in u)&&this.updateBoxSize()}return W.prototype.css.call(this,T)},x.prototype.destroy=function(){D(this.element,"mouseenter"),D(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),W.prototype.destroy.call(this)},x.prototype.fillSetter=function(T,u){T&&(this.needsBox=!0),this.fill=T,this.boxAttr(u,T)},x.prototype.getBBox=function(){this.textStr&&this.bBox.width===0&&this.bBox.height===0&&this.updateBoxSize();var T=this.padding,u=G(this.paddingLeft,T);return{width:this.width,height:this.height,x:this.bBox.x-u,y:this.bBox.y-T}},x.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},x.prototype.heightSetter=function(T){this.heightSetting=T},x.prototype.onAdd=function(){this.text.add(this),this.attr({text:G(this.textStr,""),x:this.x||0,y:this.y||0}),this.box&&Y(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})},x.prototype.paddingSetter=function(T,u){q(T)?T!==this[u]&&(this[u]=T,this.updateTextPadding()):this[u]=void 0},x.prototype.rSetter=function(T,u){this.boxAttr(u,T)},x.prototype.shadow=function(T){return T&&!this.renderer.styledMode&&(this.updateBoxSize(),this.box&&this.box.shadow(T)),this},x.prototype.strokeSetter=function(T,u){this.stroke=T,this.boxAttr(u,T)},x.prototype["stroke-widthSetter"]=function(T,u){T&&(this.needsBox=!0),this["stroke-width"]=T,this.boxAttr(u,T)},x.prototype["text-alignSetter"]=function(T){this.textAlign=T},x.prototype.textSetter=function(T){T!==void 0&&this.text.attr({text:T}),this.updateTextPadding()},x.prototype.updateBoxSize=function(){var T=this.text,u=T.element.style,p={},g=this.padding,v=this.bBox=q(this.widthSetting)&&q(this.heightSetting)&&!this.textAlign||!Y(T.textStr)?x.emptyBBox:T.getBBox();this.width=this.getPaddedWidth(),this.height=(this.heightSetting||v.height||0)+2*g,u=this.renderer.fontMetrics(u&&u.fontSize,T),this.baselineOffset=g+Math.min((this.text.firstLineMetrics||u).b,v.height||1/0),this.heightSetting&&(this.baselineOffset+=(this.heightSetting-u.h)/2),this.needsBox&&!T.textPath&&(this.box||((T=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":"")),T.add(this)),T=this.getCrispAdjust(),p.x=T,p.y=(this.baseline?-this.baselineOffset:0)+T,p.width=Math.round(this.width),p.height=Math.round(this.height),this.box.attr(Z(p,this.deferredAttr)),this.deferredAttr={})},x.prototype.updateTextPadding=function(){var T=this.text;if(!T.textPath){this.updateBoxSize();var u=this.baseline?0:this.baselineOffset,p=G(this.paddingLeft,this.padding);Y(this.widthSetting)&&this.bBox&&(this.textAlign==="center"||this.textAlign==="right")&&(p+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width)),p===T.x&&u===T.y||(T.attr("x",p),T.hasBoxWidthChanged&&(this.bBox=T.getBBox(!0)),u!==void 0&&T.attr("y",u)),T.x=p,T.y=u}},x.prototype.widthSetter=function(T){this.widthSetting=q(T)?T:void 0},x.prototype.getPaddedWidth=function(){var T=this.padding,u=G(this.paddingLeft,T);return T=G(this.paddingRight,T),(this.widthSetting||this.bBox.width||0)+u+T},x.prototype.xSetter=function(T){this.x=T,this.alignFactor&&(T-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0),this.xSetting=Math.round(T),this.attr("translateX",this.xSetting)},x.prototype.ySetter=function(T){this.ySetting=this.y=Math.round(T),this.attr("translateY",this.ySetting)},x.emptyBBox={width:0,height:0,x:0,y:0},x.textProps="color direction fontFamily fontSize fontStyle fontWeight lineHeight textAlign textDecoration textOutline textOverflow width".split(" "),x}(W)}),N(rt,"Core/Renderer/SVG/Symbols.js",[rt["Core/Utilities.js"]],function(W){function R(G,D,E,x,T){var u=[];if(T){var p=T.start||0,g=$(T.r,E);E=$(T.r,x||E);var v=(T.end||0)-.001;x=T.innerR;var y=$(T.open,.001>Math.abs((T.end||0)-p-2*Math.PI)),C=Math.cos(p),P=Math.sin(p),L=Math.cos(v),M=Math.sin(v);p=$(T.longArc,.001>v-p-Math.PI?0:1),u.push(["M",G+g*C,D+E*P],["A",g,E,0,p,$(T.clockwise,1),G+g*L,D+E*M]),Z(x)&&u.push(y?["M",G+x*L,D+x*M]:["L",G+x*L,D+x*M],["A",x,x,0,p,Z(T.clockwise)?1-T.clockwise:0,G+x*C,D+x*P]),y||u.push(["Z"])}return u}function U(G,D,E,x,T){return T&&T.r?Y(G,D,E,x,T):[["M",G,D],["L",G+E,D],["L",G+E,D+x],["L",G,D+x],["Z"]]}function Y(G,D,E,x,T){return[["M",G+(T=T&&T.r||0),D],["L",G+E-T,D],["C",G+E,D,G+E,D,G+E,D+T],["L",G+E,D+x-T],["C",G+E,D+x,G+E,D+x,G+E-T,D+x],["L",G+T,D+x],["C",G,D+x,G,D+x,G,D+x-T],["L",G,D+T],["C",G,D,G,D,G+T,D]]}var Z=W.defined,q=W.isNumber,$=W.pick;return{arc:R,callout:function(G,D,E,x,T){var u=Math.min(T&&T.r||0,E,x),p=u+6,g=T&&T.anchorX;T=T&&T.anchorY||0;var v=Y(G,D,E,x,{r:u});return q(g)&&(G+g>=E?T>D+p&&T<D+x-p?v.splice(3,1,["L",G+E,T-6],["L",G+E+6,T],["L",G+E,T+6],["L",G+E,D+x-u]):v.splice(3,1,["L",G+E,x/2],["L",g,T],["L",G+E,x/2],["L",G+E,D+x-u]):0>=G+g?T>D+p&&T<D+x-p?v.splice(7,1,["L",G,T+6],["L",G-6,T],["L",G,T-6],["L",G,D+u]):v.splice(7,1,["L",G,x/2],["L",g,T],["L",G,x/2],["L",G,D+u]):T&&T>x&&g>G+p&&g<G+E-p?v.splice(5,1,["L",g+6,D+x],["L",g,D+x+6],["L",g-6,D+x],["L",G+u,D+x]):T&&0>T&&g>G+p&&g<G+E-p&&v.splice(1,1,["L",g-6,D],["L",g,D-6],["L",g+6,D],["L",E-u,D])),v},circle:function(G,D,E,x){return R(G+E/2,D+x/2,E/2,x/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(G,D,E,x){return[["M",G+E/2,D],["L",G+E,D+x/2],["L",G+E/2,D+x],["L",G,D+x/2],["Z"]]},rect:U,roundedRect:Y,square:U,triangle:function(G,D,E,x){return[["M",G+E/2,D],["L",G+E,D+x],["L",G,D+x],["Z"]]},"triangle-down":function(G,D,E,x){return[["M",G,D],["L",G+E,D],["L",G+E/2,D+x],["Z"]]}}}),N(rt,"Core/Renderer/SVG/TextBuilder.js",[rt["Core/Renderer/HTML/AST.js"],rt["Core/Globals.js"],rt["Core/Utilities.js"]],function(W,R,U){var Y=R.doc,Z=R.SVG_NS,q=R.win,$=U.attr,G=U.extend,D=U.fireEvent,E=U.isString,x=U.objectEach,T=U.pick;return function(){function u(p){var g=p.styles;this.renderer=p.renderer,this.svgElement=p,this.width=p.textWidth,this.textLineHeight=g&&g.lineHeight,this.textOutline=g&&g.textOutline,this.ellipsis=!(!g||g.textOverflow!=="ellipsis"),this.noWrap=!(!g||g.whiteSpace!=="nowrap"),this.fontSize=g&&g.fontSize}return u.prototype.buildSVG=function(){var p=this.svgElement,g=p.element,v=p.renderer,y=T(p.textStr,"").toString(),C=y.indexOf("<")!==-1,P=g.childNodes;v=this.width&&!p.added&&v.box;var L=[y,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,this.fontSize,this.width].join();if(L!==p.textCache){for(p.textCache=L,delete p.actualWidth,L=P.length;L--;)g.removeChild(P[L]);C||this.ellipsis||this.width||p.textPath||y.indexOf(" ")!==-1&&(!this.noWrap||/<br.*?>/g.test(y))?y!==""&&(v&&v.appendChild(g),y=new W(y),this.modifyTree(y.nodes),y.addToDOM(g),this.modifyDOM(),this.ellipsis&&(g.textContent||"").indexOf("…")!==-1&&p.attr("title",this.unescapeEntities(p.textStr||"",["&lt;","&gt;"])),v&&v.removeChild(g)):g.appendChild(Y.createTextNode(this.unescapeEntities(y))),E(this.textOutline)&&p.applyTextOutline&&p.applyTextOutline(this.textOutline)}},u.prototype.modifyDOM=function(){var p,g=this,v=this.svgElement,y=$(v.element,"x");for(v.firstLineMetrics=void 0;(p=v.element.firstChild)&&/^[\s\u200B]*$/.test(p.textContent||" ");)v.element.removeChild(p);[].forEach.call(v.element.querySelectorAll("tspan.highcharts-br"),function(M,f){M.nextSibling&&M.previousSibling&&(f===0&&M.previousSibling.nodeType===1&&(v.firstLineMetrics=v.renderer.fontMetrics(void 0,M.previousSibling)),$(M,{dy:g.getLineHeight(M.nextSibling),x:y}))});var C=this.width||0;if(C){var P=function(M,f){var b=M.textContent||"",l=b.replace(/([^\^])-/g,"$1- ").split(" "),h=!g.noWrap&&(1<l.length||1<v.element.childNodes.length),e=g.getLineHeight(f),r=0,o=v.actualWidth;if(g.ellipsis)b&&g.truncate(M,b,void 0,0,Math.max(0,C-parseInt(g.fontSize||12,10)),function(i,c){return i.substring(0,c)+"…"});else if(h){for(b=[],h=[];f.firstChild&&f.firstChild!==M;)h.push(f.firstChild),f.removeChild(f.firstChild);for(;l.length;)l.length&&!g.noWrap&&0<r&&(b.push(M.textContent||""),M.textContent=l.join(" ").replace(/- /g,"-")),g.truncate(M,void 0,l,r===0&&o||0,C,function(i,c){return l.slice(0,c).join(" ").replace(/- /g,"-")}),o=v.actualWidth,r++;h.forEach(function(i){f.insertBefore(i,M)}),b.forEach(function(i){f.insertBefore(Y.createTextNode(i),M),(i=Y.createElementNS(Z,"tspan")).textContent="​",$(i,{dy:e,x:y}),f.insertBefore(i,M)})}},L=function(M){[].slice.call(M.childNodes).forEach(function(f){f.nodeType===q.Node.TEXT_NODE?P(f,M):(f.className.baseVal.indexOf("highcharts-br")!==-1&&(v.actualWidth=0),L(f))})};L(v.element)}},u.prototype.getLineHeight=function(p){var g;return p=p.nodeType===q.Node.TEXT_NODE?p.parentElement:p,this.renderer.styledMode||(g=p&&/(px|em)$/.test(p.style.fontSize)?p.style.fontSize:this.fontSize||this.renderer.style.fontSize||12),this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(g,p||this.svgElement.element).h},u.prototype.modifyTree=function(p){var g=this,v=function(y,C){var P=y.attributes;P=P===void 0?{}:P;var L=y.children,M=y.style;M=M===void 0?{}:M;var f=y.tagName,b=g.renderer.styledMode;f==="b"||f==="strong"?b?P.class="highcharts-strong":M.fontWeight="bold":f!=="i"&&f!=="em"||(b?P.class="highcharts-emphasized":M.fontStyle="italic"),M&&M.color&&(M.fill=M.color),f==="br"?(P.class="highcharts-br",y.textContent="​",(C=p[C+1])&&C.textContent&&(C.textContent=C.textContent.replace(/^ +/gm,""))):f==="a"&&L&&L.some(function(l){return l.tagName==="#text"})&&(y.children=[{children:L,tagName:"tspan"}]),f!=="#text"&&f!=="a"&&(y.tagName="tspan"),G(y,{attributes:P,style:M}),L&&L.filter(function(l){return l.tagName!=="#text"}).forEach(v)};p.forEach(v),D(this.svgElement,"afterModifyTree",{nodes:p})},u.prototype.truncate=function(p,g,v,y,C,P){var L,M=this.svgElement,f=M.renderer,b=M.rotation,l=[],h=v?1:0,e=(g||v||"").length,r=e,o=function(c,a){a=a||c;var s=p.parentNode;if(s&&l[a]===void 0)if(s.getSubStringLength)try{l[a]=y+s.getSubStringLength(0,v?a+1:a)}catch(m){}else f.getSpanWidth&&(p.textContent=P(g||v,c),l[a]=y+f.getSpanWidth(M,p));return l[a]};M.rotation=0;var i=o(p.textContent.length);if(y+i>C){for(;h<=e;)r=Math.ceil((h+e)/2),v&&(L=P(v,r)),i=o(r,L&&L.length-1),h===e?h=e+1:i>C?e=r-1:h=r;e===0?p.textContent="":g&&e===g.length-1||(p.textContent=L||P(g||v,r))}v&&v.splice(0,r),M.actualWidth=i,M.rotation=b},u.prototype.unescapeEntities=function(p,g){return x(this.renderer.escapes,function(v,y){g&&g.indexOf(v)!==-1||(p=p.toString().replace(new RegExp(v,"g"),y))}),p},u}()}),N(rt,"Core/Renderer/SVG/SVGRenderer.js",[rt["Core/Renderer/HTML/AST.js"],rt["Core/Color/Color.js"],rt["Core/Globals.js"],rt["Core/Renderer/RendererRegistry.js"],rt["Core/Renderer/SVG/SVGElement.js"],rt["Core/Renderer/SVG/SVGLabel.js"],rt["Core/Renderer/SVG/Symbols.js"],rt["Core/Renderer/SVG/TextBuilder.js"],rt["Core/Utilities.js"]],function(W,R,U,Y,Z,q,$,G,D){var E,x=U.charts,T=U.deg2rad,u=U.doc,p=U.isFirefox,g=U.isMS,v=U.isWebKit,y=U.noop,C=U.SVG_NS,P=U.symbolSizes,L=U.win,M=D.addEvent,f=D.attr,b=D.createElement,l=D.css,h=D.defined,e=D.destroyObjectProperties,r=D.extend,o=D.isArray,i=D.isNumber,c=D.isObject,a=D.isString,s=D.merge,m=D.pick,A=D.pInt,O=D.uniqueKey;return U=function(){function d(w,k,z,F,j,I,_){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(w,k,z,F,j,I,_)}return d.prototype.init=function(w,k,z,F,j,I,_){var V,X=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"}),H=X.element;_||X.css(this.getStyle(F)),w.appendChild(H),f(w,"dir","ltr"),w.innerHTML.indexOf("xmlns")===-1&&f(H,"xmlns",this.SVG_NS),this.isSVG=!0,this.box=H,this.boxWrapper=X,this.alignedObjects=[],this.url=this.getReferenceURL(),this.createElement("desc").add().element.appendChild(u.createTextNode("Created with Highcharts 10.3.3")),this.defs=this.createElement("defs").add(),this.allowHTML=I,this.forExport=j,this.styledMode=_,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.setSize(k,z,!1),p&&w.getBoundingClientRect&&((k=function(){l(w,{left:0,top:0}),V=w.getBoundingClientRect(),l(w,{left:Math.ceil(V.left)-V.left+"px",top:Math.ceil(V.top)-V.top+"px"})})(),this.unSubPixelFix=M(L,"resize",k))},d.prototype.definition=function(w){return new W([w]).addToDOM(this.defs.element)},d.prototype.getReferenceURL=function(){if((p||v)&&u.getElementsByTagName("base").length){if(!h(E)){var w=O();w=new W([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:w},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":"url(#".concat(w,")"),fill:"rgba(0,0,0,0.001)"}}]}]).addToDOM(u.body),l(w,{position:"fixed",top:0,left:0,zIndex:9e5});var k=u.elementFromPoint(6,6);E=(k&&k.id)==="hitme",u.body.removeChild(w)}if(E)return L.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20")}return""},d.prototype.getStyle=function(w){return this.style=r({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},w)},d.prototype.setStyle=function(w){this.boxWrapper.css(this.getStyle(w))},d.prototype.isHidden=function(){return!this.boxWrapper.getBBox().width},d.prototype.destroy=function(){var w=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),e(this.gradients||{}),this.gradients=null,w&&(this.defs=w.destroy()),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null},d.prototype.createElement=function(w){var k=new this.Element;return k.init(this,w),k},d.prototype.getRadialAttr=function(w,k){return{cx:w[0]-w[2]/2+(k.cx||0)*w[2],cy:w[1]-w[2]/2+(k.cy||0)*w[2],r:(k.r||0)*w[2]}},d.prototype.buildText=function(w){new G(w).buildSVG()},d.prototype.getContrast=function(w){return 1.05/(.05+(w=.2126*(w=R.parse(w).rgba.map(function(k){return .03928>=(k/=255)?k/12.92:Math.pow((k+.055)/1.055,2.4)}))[0]+.7152*w[1]+.0722*w[2]))>(w+.05)/.05?"#FFFFFF":"#000000"},d.prototype.button=function(w,k,z,F,j,I,_,V,X,H){j===void 0&&(j={});var Q=this.label(w,k,z,X,void 0,void 0,H,void 0,"button"),et=this.styledMode;w=j.states||{};var tt=0;delete(j=s(j)).states;var st=s({color:"#333333",cursor:"pointer",fontWeight:"normal"},j.style);delete j.style;var ct=W.filterUserAttributes(j);if(Q.attr(s({padding:8,r:2},ct)),!et){ct=s({fill:"#f7f7f7",stroke:"#cccccc","stroke-width":1},ct);var gt=(I=s(ct,{fill:"#e6e6e6"},W.filterUserAttributes(I||w.hover||{}))).style;delete I.style;var mt=(_=s(ct,{fill:"#e6ebf5",style:{color:"#000000",fontWeight:"bold"}},W.filterUserAttributes(_||w.select||{}))).style;delete _.style;var bt=(V=s(ct,{style:{color:"#cccccc"}},W.filterUserAttributes(V||w.disabled||{}))).style;delete V.style}return M(Q.element,g?"mouseover":"mouseenter",function(){tt!==3&&Q.setState(1)}),M(Q.element,g?"mouseout":"mouseleave",function(){tt!==3&&Q.setState(tt)}),Q.setState=function(yt){yt!==1&&(Q.state=tt=yt),Q.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][yt||0]),et||(Q.attr([ct,I,_,V][yt||0]),c(yt=[st,gt,mt,bt][yt||0])&&Q.css(yt))},et||(Q.attr(ct).css(r({cursor:"default"},st)),H&&Q.text.css({pointerEvents:"none"})),Q.on("touchstart",function(yt){return yt.stopPropagation()}).on("click",function(yt){tt!==3&&F.call(Q,yt)})},d.prototype.crispLine=function(w,k,z){z===void 0&&(z="round");var F=w[0],j=w[1];return h(F[1])&&F[1]===j[1]&&(F[1]=j[1]=Math[z](F[1])-k%2/2),h(F[2])&&F[2]===j[2]&&(F[2]=j[2]=Math[z](F[2])+k%2/2),w},d.prototype.path=function(w){var k=this.styledMode?{}:{fill:"none"};return o(w)?k.d=w:c(w)&&r(k,w),this.createElement("path").attr(k)},d.prototype.circle=function(w,k,z){return w=c(w)?w:w===void 0?{}:{x:w,y:k,r:z},(k=this.createElement("circle")).xSetter=k.ySetter=function(F,j,I){I.setAttribute("c"+j,F)},k.attr(w)},d.prototype.arc=function(w,k,z,F,j,I){return c(w)?(k=(F=w).y,z=F.r,w=F.x):F={innerR:F,start:j,end:I},(w=this.symbol("arc",w,k,z,z,F)).r=z,w},d.prototype.rect=function(w,k,z,F,j,I){j=c(w)?w.r:j;var _=this.createElement("rect");return w=c(w)?w:w===void 0?{}:{x:w,y:k,width:Math.max(z,0),height:Math.max(F,0)},this.styledMode||(I!==void 0&&(w["stroke-width"]=I,w=_.crisp(w)),w.fill="none"),j&&(w.r=j),_.rSetter=function(V,X,H){_.r=V,f(H,{rx:V,ry:V})},_.rGetter=function(){return _.r||0},_.attr(w)},d.prototype.setSize=function(w,k,z){this.width=w,this.height=k,this.boxWrapper.animate({width:w,height:k},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:m(z,!0)?void 0:0}),this.alignElements()},d.prototype.g=function(w){var k=this.createElement("g");return w?k.attr({class:"highcharts-"+w}):k},d.prototype.image=function(w,k,z,F,j,I){var _={preserveAspectRatio:"none"},V=function(H,Q){H.setAttributeNS?H.setAttributeNS("http://www.w3.org/1999/xlink","href",Q):H.setAttribute("hc-svg-href",Q)};i(k)&&(_.x=k),i(z)&&(_.y=z),i(F)&&(_.width=F),i(j)&&(_.height=j);var X=this.createElement("image").attr(_);return k=function(H){V(X.element,w),I.call(X,H)},I?(V(X.element,"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),z=new L.Image,M(z,"load",k),z.src=w,z.complete&&k({})):V(X.element,w),X},d.prototype.symbol=function(w,k,z,F,j,I){var _,V=this,X=/^url\((.*?)\)$/,H=X.test(w),Q=!H&&(this.symbols[w]?w:"circle"),et=Q&&this.symbols[Q];if(et){typeof k=="number"&&(_=et.call(this.symbols,Math.round(k||0),Math.round(z||0),F||0,j||0,I));var tt=this.path(_);V.styledMode||tt.attr("fill","none"),r(tt,{symbolName:Q||void 0,x:k,y:z,width:F,height:j}),I&&r(tt,I)}else if(H){var st=w.match(X)[1],ct=tt=this.image(st);ct.imgwidth=m(P[st]&&P[st].width,I&&I.width),ct.imgheight=m(P[st]&&P[st].height,I&&I.height);var gt=function(mt){return mt.attr({width:mt.width,height:mt.height})};["width","height"].forEach(function(mt){ct[mt+"Setter"]=function(bt,yt){this[yt]=bt,bt=this.alignByTranslate;var dt=this.element,ot=this.width,ht=this.height,ut=this.imgwidth,vt=this.imgheight,wt=this["img"+yt];if(h(wt)){var xt=1;I&&I.backgroundSize==="within"&&ot&&ht?(xt=Math.min(ot/ut,ht/vt),wt=Math.round(wt*xt),f(dt,{width:Math.round(ut*xt),height:Math.round(vt*xt)})):dt&&dt.setAttribute(yt,wt),bt||this.translate(((ot||0)-wt*xt)/2,((ht||0)-wt*xt)/2)}}}),h(k)&&ct.attr({x:k,y:z}),ct.isImg=!0,h(ct.imgwidth)&&h(ct.imgheight)?gt(ct):(ct.attr({width:0,height:0}),b("img",{onload:function(){var mt=x[V.chartIndex];this.width===0&&(l(this,{position:"absolute",top:"-999em"}),u.body.appendChild(this)),P[st]={width:this.width,height:this.height},ct.imgwidth=this.width,ct.imgheight=this.height,ct.element&&gt(ct),this.parentNode&&this.parentNode.removeChild(this),V.imgCount--,V.imgCount||!mt||mt.hasLoaded||mt.onload()},src:st}),this.imgCount++)}return tt},d.prototype.clipRect=function(w,k,z,F){var j=O()+"-",I=this.createElement("clipPath").attr({id:j}).add(this.defs);return(w=this.rect(w,k,z,F,0).add(I)).id=j,w.clipPath=I,w.count=0,w},d.prototype.text=function(w,k,z,F){var j={};return!F||!this.allowHTML&&this.forExport?(j.x=Math.round(k||0),z&&(j.y=Math.round(z)),h(w)&&(j.text=w),w=this.createElement("text").attr(j),(!F||this.forExport&&!this.allowHTML)&&(w.xSetter=function(I,_,V){for(var X,H=V.getElementsByTagName("tspan"),Q=V.getAttribute(_),et=0;et<H.length;et++)(X=H[et]).getAttribute(_)===Q&&X.setAttribute(_,I);V.setAttribute(_,I)}),w):this.html(w,k,z)},d.prototype.fontMetrics=function(w,k){return w=!this.styledMode&&/px/.test(w)||!L.getComputedStyle?w||k&&k.style&&k.style.fontSize||this.style&&this.style.fontSize:k&&Z.prototype.getStyle.call(k,"font-size"),{h:k=24>(w=/px/.test(w)?A(w):12)?w+3:Math.round(1.2*w),b:Math.round(.8*k),f:w}},d.prototype.rotCorr=function(w,k,z){var F=w;return k&&z&&(F=Math.max(F*Math.cos(k*T),4)),{x:-w/3*Math.sin(k*T),y:F}},d.prototype.pathToSegments=function(w){for(var k=[],z=[],F={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2},j=0;j<w.length;j++)a(z[0])&&i(w[j])&&z.length===F[z[0].toUpperCase()]&&w.splice(j,0,z[0].replace("M","L").replace("m","l")),typeof w[j]=="string"&&(z.length&&k.push(z.slice(0)),z.length=0),z.push(w[j]);return k.push(z.slice(0)),k},d.prototype.label=function(w,k,z,F,j,I,_,V,X){return new q(this,w,k,z,F,j,I,_,V,X)},d.prototype.alignElements=function(){this.alignedObjects.forEach(function(w){return w.align()})},d}(),r(U.prototype,{Element:Z,SVG_NS:C,escapes:{"&":"&amp;","<":"&lt;",">":"&gt;","'":"&#39;",'"':"&quot;"},symbols:$,draw:y}),Y.registerRendererType("svg",U,!0),U}),N(rt,"Core/Renderer/HTML/HTMLElement.js",[rt["Core/Globals.js"],rt["Core/Renderer/SVG/SVGElement.js"],rt["Core/Utilities.js"]],function(W,R,U){var Y=this&&this.__extends||function(){var p=function(g,v){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,C){y.__proto__=C}||function(y,C){for(var P in C)C.hasOwnProperty(P)&&(y[P]=C[P])},p(g,v)};return function(g,v){function y(){this.constructor=g}p(g,v),g.prototype=v===null?Object.create(v):(y.prototype=v.prototype,new y)}}(),Z=W.isFirefox,q=W.isMS,$=W.isWebKit,G=W.win,D=U.css,E=U.defined,x=U.extend,T=U.pick,u=U.pInt;return function(p){function g(){return p!==null&&p.apply(this,arguments)||this}return Y(g,p),g.compose=function(v){if(g.composedClasses.indexOf(v)===-1){g.composedClasses.push(v);var y=g.prototype,C=v.prototype;C.getSpanCorrection=y.getSpanCorrection,C.htmlCss=y.htmlCss,C.htmlGetBBox=y.htmlGetBBox,C.htmlUpdateTransform=y.htmlUpdateTransform,C.setSpanRotation=y.setSpanRotation}return v},g.prototype.getSpanCorrection=function(v,y,C){this.xCorr=-v*C,this.yCorr=-y},g.prototype.htmlCss=function(v){var y=this.element.tagName==="SPAN"&&v&&"width"in v,C=T(y&&v.width,void 0);if(y){delete v.width,this.textWidth=C;var P=!0}return v&&v.textOverflow==="ellipsis"&&(v.whiteSpace="nowrap",v.overflow="hidden"),this.styles=x(this.styles,v),D(this.element,v),P&&this.htmlUpdateTransform(),this},g.prototype.htmlGetBBox=function(){var v=this.element;return{x:v.offsetLeft,y:v.offsetTop,width:v.offsetWidth,height:v.offsetHeight}},g.prototype.htmlUpdateTransform=function(){if(this.added){var v=this.renderer,y=this.element,C=this.translateX||0,P=this.translateY||0,L=this.x||0,M=this.y||0,f=this.textAlign||"left",b={left:0,center:.5,right:1}[f],l=this.styles;if(l=l&&l.whiteSpace,D(y,{marginLeft:C,marginTop:P}),!v.styledMode&&this.shadows&&this.shadows.forEach(function(c){D(c,{marginLeft:C+1,marginTop:P+1})}),this.inverted&&[].forEach.call(y.childNodes,function(c){v.invertChild(c,y)}),y.tagName==="SPAN"){var h=this.rotation,e=this.textWidth&&u(this.textWidth),r=[h,f,y.innerHTML,this.textWidth,this.textAlign].join(),o=void 0;if(o=!1,e!==this.oldTextWidth){if(this.textPxLength)var i=this.textPxLength;else D(y,{width:"",whiteSpace:l||"nowrap"}),i=y.offsetWidth;(e>this.oldTextWidth||i>e)&&(/[ \-]/.test(y.textContent||y.innerText)||y.style.textOverflow==="ellipsis")&&(D(y,{width:i>e||h?e+"px":"auto",display:"block",whiteSpace:l||"normal"}),this.oldTextWidth=e,o=!0)}this.hasBoxWidthChanged=o,r!==this.cTT&&(o=v.fontMetrics(y.style.fontSize,y).b,!E(h)||h===(this.oldRotation||0)&&f===this.oldAlign||this.setSpanRotation(h,b,o),this.getSpanCorrection(!E(h)&&this.textPxLength||y.offsetWidth,o,b,h,f)),D(y,{left:L+(this.xCorr||0)+"px",top:M+(this.yCorr||0)+"px"}),this.cTT=r,this.oldRotation=h,this.oldAlign=f}}else this.alignOnAdd=!0},g.prototype.setSpanRotation=function(v,y,C){var P={},L=q&&!/Edge/.test(G.navigator.userAgent)?"-ms-transform":$?"-webkit-transform":Z?"MozTransform":G.opera?"-o-transform":void 0;L&&(P[L]=P.transform="rotate("+v+"deg)",P[L+(Z?"Origin":"-origin")]=P.transformOrigin=100*y+"% "+C+"px",D(this.element,P))},g.composedClasses=[],g}(R)}),N(rt,"Core/Renderer/HTML/HTMLRenderer.js",[rt["Core/Renderer/HTML/AST.js"],rt["Core/Renderer/SVG/SVGElement.js"],rt["Core/Renderer/SVG/SVGRenderer.js"],rt["Core/Utilities.js"]],function(W,R,U,Y){var Z=this&&this.__extends||function(){var E=function(x,T){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,p){u.__proto__=p}||function(u,p){for(var g in p)p.hasOwnProperty(g)&&(u[g]=p[g])},E(x,T)};return function(x,T){function u(){this.constructor=x}E(x,T),x.prototype=T===null?Object.create(T):(u.prototype=T.prototype,new u)}}(),q=Y.attr,$=Y.createElement,G=Y.extend,D=Y.pick;return function(E){function x(){return E!==null&&E.apply(this,arguments)||this}return Z(x,E),x.compose=function(T){return x.composedClasses.indexOf(T)===-1&&(x.composedClasses.push(T),T.prototype.html=x.prototype.html),T},x.prototype.html=function(T,u,p){var g=this.createElement("span"),v=g.element,y=g.renderer,C=y.isSVG,P=function(L,M){["opacity","visibility"].forEach(function(f){L[f+"Setter"]=function(b,l,h){var e=L.div?L.div.style:M;R.prototype[f+"Setter"].call(this,b,l,h),e&&(e[l]=b)}}),L.addedSetters=!0};return g.textSetter=function(L){L!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,W.setElementHTML(this.element,D(L,"")),this.textStr=L,g.doTransform=!0)},C&&P(g,g.element.style),g.xSetter=g.ySetter=g.alignSetter=g.rotationSetter=function(L,M){M==="align"?g.alignValue=g.textAlign=L:g[M]=L,g.doTransform=!0},g.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)},g.attr({text:T,x:Math.round(u),y:Math.round(p)}).css({position:"absolute"}),y.styledMode||g.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize}),v.style.whiteSpace="nowrap",g.css=g.htmlCss,C&&(g.add=function(L){var M=y.box.parentNode,f=[];if(this.parentGroup=L){var b=L.div;if(!b){for(;L;)f.push(L),L=L.parentGroup;f.reverse().forEach(function(l){function h(i,c){l[c]=i,c==="translateX"?o.left=i+"px":o.top=i+"px",l.doTransform=!0}var e=q(l.element,"class"),r=l.styles||{},o=(b=l.div=l.div||$("div",e?{className:e}:void 0,{position:"absolute",left:(l.translateX||0)+"px",top:(l.translateY||0)+"px",display:l.display,opacity:l.opacity,cursor:r.cursor,pointerEvents:r.pointerEvents,visibility:l.visibility},b||M)).style;G(l,{classSetter:function(i){return function(c){this.element.setAttribute("class",c),i.className=c}}(b),on:function(){return f[0].div&&g.on.apply({element:f[0].div,onEvents:l.onEvents},arguments),l},translateXSetter:h,translateYSetter:h}),l.addedSetters||P(l)})}}else b=M;return b.appendChild(v),g.added=!0,g.alignOnAdd&&g.htmlUpdateTransform(),g}),g},x.composedClasses=[],x}(U)}),N(rt,"Core/Axis/AxisDefaults.js",[],function(){var W;return function(R){R.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"},R.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},R.defaultLeftAxisOptions={labels:{x:-15},title:{rotation:270}},R.defaultRightAxisOptions={labels:{x:15},title:{rotation:90}},R.defaultBottomAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}},R.defaultTopAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}}}(W||(W={})),W}),N(rt,"Core/Foundation.js",[rt["Core/Utilities.js"]],function(W){var R,U=W.addEvent,Y=W.isFunction,Z=W.objectEach,q=W.removeEvent;return function($){$.registerEventOptions=function(G,D){G.eventOptions=G.eventOptions||{},Z(D.events,function(E,x){G.eventOptions[x]!==E&&(G.eventOptions[x]&&(q(G,x,G.eventOptions[x]),delete G.eventOptions[x]),Y(E)&&(G.eventOptions[x]=E,U(G,x,E)))})}}(R||(R={})),R}),N(rt,"Core/Axis/Tick.js",[rt["Core/FormatUtilities.js"],rt["Core/Globals.js"],rt["Core/Utilities.js"]],function(W,R,U){var Y=R.deg2rad,Z=U.clamp,q=U.correctFloat,$=U.defined,G=U.destroyObjectProperties,D=U.extend,E=U.fireEvent,x=U.isNumber,T=U.merge,u=U.objectEach,p=U.pick;return R=function(){function g(v,y,C,P,L){this.isNewLabel=this.isNew=!0,this.axis=v,this.pos=y,this.type=C||"",this.parameters=L||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,E(this,"init"),C||P||this.addLabel()}return g.prototype.addLabel=function(){var v=this,y=v.axis,C=y.options,P=y.chart,L=y.categories,M=y.logarithmic,f=y.names,b=v.pos,l=p(v.options&&v.options.labels,C.labels),h=y.tickPositions,e=b===h[0],r=b===h[h.length-1],o=(!l.step||l.step===1)&&y.tickInterval===1;h=h.info;var i,c=v.label;if(L=this.parameters.category||(L?p(L[b],f[b],b):b),M&&x(L)&&(L=q(M.lin2log(L))),y.dateTime)if(h)var a=P.time.resolveDTLFormat(C.dateTimeLabelFormats[!C.grid&&h.higherRanks[b]||h.unitName]),s=a.main;else x(L)&&(s=y.dateTime.getXDateFormat(L,C.dateTimeLabelFormats||{}));v.isFirst=e,v.isLast=r;var m={axis:y,chart:P,dateTimeLabelFormat:s,isFirst:e,isLast:r,pos:b,tick:v,tickPositionInfo:h,value:L};E(this,"labelFormat",m);var A=function(d){return l.formatter?l.formatter.call(d,d):l.format?(d.text=y.defaultLabelFormatter.call(d,d),W.format(l.format,d,P)):y.defaultLabelFormatter.call(d,d)};C=A.call(m,m);var O=a&&a.list;v.shortenLabel=O?function(){for(i=0;i<O.length;i++)if(D(m,{dateTimeLabelFormat:O[i]}),c.attr({text:A.call(m,m)}),c.getBBox().width<y.getSlotWidth(v)-2*l.padding)return;c.attr({text:""})}:void 0,o&&y._addedPlotLB&&v.moveLabel(C,l),$(c)||v.movedLabel?c&&c.textStr!==C&&!o&&(!c.textWidth||l.style.width||c.styles.width||c.css({width:null}),c.attr({text:C}),c.textPxLength=c.getBBox().width):(v.label=c=v.createLabel({x:0,y:0},C,l),v.rotation=0)},g.prototype.createLabel=function(v,y,C){var P=this.axis,L=P.chart;return(v=$(y)&&C.enabled?L.renderer.text(y,v.x,v.y,C.useHTML).add(P.labelGroup):null)&&(L.styledMode||v.css(T(C.style)),v.textPxLength=v.getBBox().width),v},g.prototype.destroy=function(){G(this,this.axis)},g.prototype.getPosition=function(v,y,C,P){var L=this.axis,M=L.chart,f=P&&M.oldChartHeight||M.chartHeight;return(v={x:v?q(L.translate(y+C,void 0,void 0,P)+L.transB):L.left+L.offset+(L.opposite?(P&&M.oldChartWidth||M.chartWidth)-L.right-L.left:0),y:v?f-L.bottom+L.offset-(L.opposite?L.height:0):q(f-L.translate(y+C,void 0,void 0,P)-L.transB)}).y=Z(v.y,-1e5,1e5),E(this,"afterGetPosition",{pos:v}),v},g.prototype.getLabelPosition=function(v,y,C,P,L,M,f,b){var l=this.axis,h=l.transA,e=l.isLinked&&l.linkedParent?l.linkedParent.reversed:l.reversed,r=l.staggerLines,o=l.tickRotCorr||{x:0,y:0},i=P||l.reserveSpaceDefault?0:-l.labelOffset*(l.labelAlign==="center"?.5:1),c={};return C=l.side===0?C.rotation?-8:-C.getBBox().height:l.side===2?o.y+8:Math.cos(C.rotation*Y)*(o.y-C.getBBox(!1,0).height/2),$(L.y)&&(C=l.side===0&&l.horiz?L.y+C:L.y),v=v+L.x+i+o.x-(M&&P?M*h*(e?-1:1):0),y=y+C-(M&&!P?M*h*(e?1:-1):0),r&&(P=f/(b||1)%r,l.opposite&&(P=r-P-1),y+=l.labelOffset/r*P),c.x=v,c.y=Math.round(y),E(this,"afterGetLabelPosition",{pos:c,tickmarkOffset:M,index:f}),c},g.prototype.getLabelSize=function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0},g.prototype.getMarkPath=function(v,y,C,P,L,M){return M.crispLine([["M",v,y],["L",v+(L?0:-C),y+(L?C:0)]],P)},g.prototype.handleOverflow=function(v){var y=this.axis,C=y.options.labels,P=v.x,L=y.chart.chartWidth,M=y.chart.spacing,f=p(y.labelLeft,Math.min(y.pos,M[3]));M=p(y.labelRight,Math.max(y.isRadial?0:y.pos+y.len,L-M[1]));var b,l=this.label,h=this.rotation,e={left:0,center:.5,right:1}[y.labelAlign||l.attr("align")],r=l.getBBox().width,o=y.getSlotWidth(this),i={},c=o,a=1;h||C.overflow!=="justify"?0>h&&P-e*r<f?b=Math.round(P/Math.cos(h*Y)-f):0<h&&P+e*r>M&&(b=Math.round((L-P)/Math.cos(h*Y))):(L=P+(1-e)*r,P-e*r<f?c=v.x+c*(1-e)-f:L>M&&(c=M-v.x+c*e,a=-1),(c=Math.min(o,c))<o&&y.labelAlign==="center"&&(v.x+=a*(o-c-e*(o-Math.min(r,c)))),(r>c||y.autoRotation&&(l.styles||{}).width)&&(b=c)),b&&(this.shortenLabel?this.shortenLabel():(i.width=Math.floor(b)+"px",(C.style||{}).textOverflow||(i.textOverflow="ellipsis"),l.css(i)))},g.prototype.moveLabel=function(v,y){var C=this,P=C.label,L=C.axis,M=L.reversed,f=!1;if(P&&P.textStr===v?(C.movedLabel=P,f=!0,delete C.label):u(L.ticks,function(l){f||l.isNew||l===C||!l.label||l.label.textStr!==v||(C.movedLabel=l.label,f=!0,l.labelPos=C.movedLabel.xy,delete l.label)}),!f&&(C.labelPos||P)){var b=C.labelPos||P.xy;P=L.horiz?M?0:L.width+L.left:b.x,L=L.horiz?b.y:M?L.width+L.left:0,C.movedLabel=C.createLabel({x:P,y:L},v,y),C.movedLabel&&C.movedLabel.attr({opacity:0})}},g.prototype.render=function(v,y,C){var P=this.axis,L=P.horiz,M=this.pos,f=p(this.tickmarkOffset,P.tickmarkOffset);f=(M=this.getPosition(L,M,f,y)).x;var b=M.y;P=L&&f===P.pos+P.len||!L&&b===P.pos?-1:1,L=p(C,this.label&&this.label.newOpacity,1),C=p(C,1),this.isActive=!0,this.renderGridLine(y,C,P),this.renderMark(M,C,P),this.renderLabel(M,y,L,v),this.isNew=!1,E(this,"afterRender")},g.prototype.renderGridLine=function(v,y,C){var P=this.axis,L=P.options,M={},f=this.pos,b=this.type,l=p(this.tickmarkOffset,P.tickmarkOffset),h=P.chart.renderer,e=this.gridLine,r=L.gridLineWidth,o=L.gridLineColor,i=L.gridLineDashStyle;this.type==="minor"&&(r=L.minorGridLineWidth,o=L.minorGridLineColor,i=L.minorGridLineDashStyle),e||(P.chart.styledMode||(M.stroke=o,M["stroke-width"]=r||0,M.dashstyle=i),b||(M.zIndex=1),v&&(y=0),this.gridLine=e=h.path().attr(M).addClass("highcharts-"+(b?b+"-":"")+"grid-line").add(P.gridGroup)),e&&(C=P.getPlotLinePath({value:f+l,lineWidth:e.strokeWidth()*C,force:"pass",old:v,acrossPanes:!1}))&&e[v||this.isNew?"attr":"animate"]({d:C,opacity:y})},g.prototype.renderMark=function(v,y,C){var P=this.axis,L=P.options,M=P.chart.renderer,f=this.type,b=P.tickSize(f?f+"Tick":"tick"),l=v.x;v=v.y;var h=p(L[f!=="minor"?"tickWidth":"minorTickWidth"],!f&&P.isXAxis?1:0);L=L[f!=="minor"?"tickColor":"minorTickColor"];var e=this.mark,r=!e;b&&(P.opposite&&(b[0]=-b[0]),e||(this.mark=e=M.path().addClass("highcharts-"+(f?f+"-":"")+"tick").add(P.axisGroup),P.chart.styledMode||e.attr({stroke:L,"stroke-width":h})),e[r?"attr":"animate"]({d:this.getMarkPath(l,v,b[0],e.strokeWidth()*C,P.horiz,M),opacity:y}))},g.prototype.renderLabel=function(v,y,C,P){var L=this.axis,M=L.horiz,f=L.options,b=this.label,l=f.labels,h=l.step;L=p(this.tickmarkOffset,L.tickmarkOffset);var e=v.x;v=v.y;var r=!0;b&&x(e)&&(b.xy=v=this.getLabelPosition(e,v,b,M,l,L,P,h),this.isFirst&&!this.isLast&&!f.showFirstLabel||this.isLast&&!this.isFirst&&!f.showLastLabel?r=!1:!M||l.step||l.rotation||y||C===0||this.handleOverflow(v),h&&P%h&&(r=!1),r&&x(v.y)?(v.opacity=C,b[this.isNewLabel?"attr":"animate"](v).show(!0),this.isNewLabel=!1):(b.hide(),this.isNewLabel=!0))},g.prototype.replaceMovedLabel=function(){var v=this.label,y=this.axis,C=y.reversed;if(v&&!this.isNew){var P=y.horiz?C?y.left:y.width+y.left:v.xy.x;C=y.horiz?v.xy.y:C?y.width+y.top:y.top,v.animate({x:P,y:C,opacity:0},void 0,v.destroy),delete this.label}y.isDirty=!0,this.label=this.movedLabel,delete this.movedLabel},g}(),R}),N(rt,"Core/Axis/Axis.js",[rt["Core/Animation/AnimationUtilities.js"],rt["Core/Axis/AxisDefaults.js"],rt["Core/Color/Color.js"],rt["Core/Defaults.js"],rt["Core/Foundation.js"],rt["Core/Globals.js"],rt["Core/Axis/Tick.js"],rt["Core/Utilities.js"]],function(W,R,U,Y,Z,q,$,G){var D=W.animObject,E=Y.defaultOptions,x=Z.registerEventOptions,T=q.deg2rad,u=G.arrayMax,p=G.arrayMin,g=G.clamp,v=G.correctFloat,y=G.defined,C=G.destroyObjectProperties,P=G.erase,L=G.error,M=G.extend,f=G.fireEvent,b=G.isArray,l=G.isNumber,h=G.isString,e=G.merge,r=G.normalizeTickInterval,o=G.objectEach,i=G.pick,c=G.relativeLength,a=G.removeEvent,s=G.splat,m=G.syncTimeout,A=function(O,d){return r(d,void 0,void 0,i(O.options.allowDecimals,.5>d||O.tickAmount!==void 0),!!O.tickAmount)};return W=function(){function O(d,w){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,w)}return O.prototype.init=function(d,w){var k=w.isX;this.chart=d,this.horiz=d.inverted&&!this.isZAxis?!k:k,this.isXAxis=k,this.coll=this.coll||(k?"xAxis":"yAxis"),f(this,"init",{userOptions:w}),this.opposite=i(w.opposite,this.opposite),this.side=i(w.side,this.side,this.horiz?this.opposite?0:2:this.opposite?1:3),this.setOptions(w);var z=this.options,F=z.labels,j=z.type;this.userOptions=w,this.minPixelPadding=0,this.reversed=i(z.reversed,this.reversed),this.visible=z.visible,this.zoomEnabled=z.zoomEnabled,this.hasNames=j==="category"||z.categories===!0,this.categories=z.categories||(this.hasNames?[]:void 0),this.names||(this.names=[],this.names.keys={}),this.plotLinesAndBandsGroups={},this.positiveValuesOnly=!!this.logarithmic,this.isLinked=y(z.linkedTo),this.ticks={},this.labelEdge=[],this.minorTicks={},this.plotLinesAndBands=[],this.alternateBands={},this.len=0,this.minRange=this.userMinRange=z.minRange||z.maxZoom,this.range=z.range,this.offset=z.offset||0,this.min=this.max=null,w=i(z.crosshair,s(d.options.tooltip.crosshairs)[k?0:1]),this.crosshair=w===!0?{}:w,d.axes.indexOf(this)===-1&&(k?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&&k&&this.reversed===void 0&&(this.reversed=!0),this.labelRotation=l(F.rotation)?F.rotation:void 0,x(this,z),f(this,"afterInit")},O.prototype.setOptions=function(d){this.options=e(R.defaultXAxisOptions,this.coll==="yAxis"&&R.defaultYAxisOptions,[R.defaultTopAxisOptions,R.defaultRightAxisOptions,R.defaultBottomAxisOptions,R.defaultLeftAxisOptions][this.side],e(E[this.coll],d)),f(this,"afterSetOptions",{userOptions:d})},O.prototype.defaultLabelFormatter=function(d){var w=this.axis;d=this.chart.numberFormatter;var k=l(this.value)?this.value:NaN,z=w.chart.time,F=this.dateTimeLabelFormat,j=E.lang,I=j.numericSymbols;j=j.numericSymbolMagnitude||1e3;var _=w.logarithmic?Math.abs(k):w.tickInterval,V=I&&I.length;if(w.categories)var X="".concat(this.value);else if(F)X=z.dateFormat(F,k);else if(V&&1e3<=_)for(;V--&&X===void 0;)_>=(w=Math.pow(j,V+1))&&10*k%w==0&&I[V]!==null&&k!==0&&(X=d(k/w,-1)+I[V]);return X===void 0&&(X=1e4<=Math.abs(k)?d(k,-1):d(k,-1,void 0,"")),X},O.prototype.getSeriesExtremes=function(){var d,w=this,k=w.chart;f(this,"getSeriesExtremes",null,function(){w.hasVisibleSeries=!1,w.dataMin=w.dataMax=w.threshold=null,w.softThreshold=!w.isXAxis,w.series.forEach(function(z){if(z.visible||!k.options.chart.ignoreHiddenSeries){var F=z.options,j=F.threshold;if(w.hasVisibleSeries=!0,w.positiveValuesOnly&&0>=j&&(j=null),w.isXAxis){if((F=z.xData).length){F=w.logarithmic?F.filter(w.validatePositiveValue):F;var I=(d=z.getXExtremes(F)).min,_=d.max;l(I)||I instanceof Date||(F=F.filter(l),I=(d=z.getXExtremes(F)).min,_=d.max),F.length&&(w.dataMin=Math.min(i(w.dataMin,I),I),w.dataMax=Math.max(i(w.dataMax,_),_))}}else z=z.applyExtremes(),l(z.dataMin)&&(I=z.dataMin,w.dataMin=Math.min(i(w.dataMin,I),I)),l(z.dataMax)&&(_=z.dataMax,w.dataMax=Math.max(i(w.dataMax,_),_)),y(j)&&(w.threshold=j),(!F.softThreshold||w.positiveValuesOnly)&&(w.softThreshold=!1)}})}),f(this,"afterGetSeriesExtremes")},O.prototype.translate=function(d,w,k,z,F,j){var I=this.linkedParent||this,_=z&&I.old?I.old.min:I.min;if(!l(_))return NaN;var V=I.minPixelPadding;F=(I.isOrdinal||I.brokenAxis&&I.brokenAxis.hasBreaks||I.logarithmic&&F)&&I.lin2val;var X=1,H=0;return(z=z&&I.old?I.old.transA:I.transA)||(z=I.transA),k&&(X*=-1,H=I.len),I.reversed&&(H-=(X*=-1)*(I.sector||I.len)),w?(j=(d*X+H-V)/z+_,F&&(j=I.lin2val(j))):(F&&(d=I.val2lin(d)),d=X*(d-_)*z,j=(I.isRadial?d:v(d))+H+X*V+(l(j)?z*j:0)),j},O.prototype.toPixels=function(d,w){return this.translate(d,!1,!this.horiz,void 0,!0)+(w?0:this.pos)},O.prototype.toValue=function(d,w){return this.translate(d-(w?0:this.pos),!0,!this.horiz,void 0,!0)},O.prototype.getPlotLinePath=function(d){function w(yt,dt,ot){return bt!=="pass"&&(yt<dt||yt>ot)&&(bt?yt=g(yt,dt,ot):I=!0),yt}var k,z,F,j,I,_=this,V=_.chart,X=_.left,H=_.top,Q=d.old,et=d.value,tt=d.lineWidth,st=Q&&V.oldChartHeight||V.chartHeight,ct=Q&&V.oldChartWidth||V.chartWidth,gt=_.transB,mt=d.translatedValue,bt=d.force;return d={value:et,lineWidth:tt,old:Q,force:bt,acrossPanes:d.acrossPanes,translatedValue:mt},f(this,"getPlotLinePath",d,function(yt){mt=i(mt,_.translate(et,void 0,void 0,Q)),mt=g(mt,-1e5,1e5),k=F=Math.round(mt+gt),z=j=Math.round(st-mt-gt),l(mt)?_.horiz?(z=H,j=st-_.bottom,k=F=w(k,X,X+_.width)):(k=X,F=ct-_.right,z=j=w(z,H,H+_.height)):(I=!0,bt=!1),yt.path=I&&!bt?null:V.renderer.crispLine([["M",k,z],["L",F,j]],tt||1)}),d.path},O.prototype.getLinearTickPositions=function(d,w,k){var z=v(Math.floor(w/d)*d);k=v(Math.ceil(k/d)*d);var F,j=[];if(v(z+d)===z&&(F=20),this.single)return[w];for(w=z;w<=k&&(j.push(w),(w=v(w+d,F))!==I);)var I=w;return j},O.prototype.getMinorTickInterval=function(){var d=this.options;return d.minorTicks===!0?i(d.minorTickInterval,"auto"):d.minorTicks===!1?null:d.minorTickInterval},O.prototype.getMinorTickPositions=function(){var d=this.options,w=this.tickPositions,k=this.minorTickInterval,z=this.pointRangePadding||0,F=this.min-z,j=(z=this.max+z)-F,I=[];if(j&&j/k<this.len/3){var _=this.logarithmic;if(_)this.paddedTicks.forEach(function(V,X,H){X&&I.push.apply(I,_.getLogTickPositions(k,H[X-1],H[X],!0))});else if(this.dateTime&&this.getMinorTickInterval()==="auto")I=I.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(k),F,z,d.startOfWeek));else for(d=F+(w[0]-F)%k;d<=z&&d!==I[0];d+=k)I.push(d)}return I.length!==0&&this.trimTicks(I),I},O.prototype.adjustForMinRange=function(){var d,w,k,z,F=this.options,j=this.logarithmic,I=this.min,_=this.max,V=0;if(this.isXAxis&&this.minRange===void 0&&!j&&(y(F.min)||y(F.max)||y(F.floor)||y(F.ceiling)?this.minRange=null:(this.series.forEach(function(et){if(k=et.xData,z=et.xIncrement?1:k.length-1,1<k.length)for(d=z;0<d;d--)w=k[d]-k[d-1],(!V||w<V)&&(V=w)}),this.minRange=Math.min(5*V,this.dataMax-this.dataMin))),_-I<this.minRange){var X=this.dataMax-this.dataMin>=this.minRange,H=this.minRange,Q=(H-_+I)/2;Q=[I-Q,i(F.min,I-Q)],X&&(Q[2]=this.logarithmic?this.logarithmic.log2lin(this.dataMin):this.dataMin),_=[(I=u(Q))+H,i(F.max,I+H)],X&&(_[2]=j?j.log2lin(this.dataMax):this.dataMax),(_=p(_))-I<H&&(Q[0]=_-H,Q[1]=i(F.min,_-H),I=u(Q))}this.min=I,this.max=_},O.prototype.getClosest=function(){var d;return this.categories?d=1:this.series.forEach(function(w){var k=w.closestPointRange,z=w.visible||!w.chart.options.chart.ignoreHiddenSeries;!w.noSharedTooltip&&y(k)&&z&&(d=y(d)?Math.min(d,k):k)}),d},O.prototype.nameToX=function(d){var w=b(this.options.categories),k=w?this.categories:this.names,z=d.options.x;if(d.series.requireSorting=!1,y(z)||(z=this.options.uniqueNames&&k?w?k.indexOf(d.name):i(k.keys[d.name],-1):d.series.autoIncrement()),z===-1){if(!w&&k)var F=k.length}else F=z;return F!==void 0?(this.names[F]=d.name,this.names.keys[d.name]=F):d.x&&(F=d.x),F},O.prototype.updateNames=function(){var d=this,w=this.names;0<w.length&&(Object.keys(w.keys).forEach(function(k){delete w.keys[k]}),w.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(function(k){k.xIncrement=null,k.points&&!k.isDirtyData||(d.max=Math.max(d.max,k.xData.length-1),k.processData(),k.generatePoints()),k.data.forEach(function(z,F){if(z&&z.options&&z.name!==void 0){var j=d.nameToX(z);j!==void 0&&j!==z.x&&(z.x=j,k.xData[F]=j)}})}))},O.prototype.setAxisTranslation=function(){var d=this,w=d.max-d.min,k=d.linkedParent,z=!!d.categories,F=d.isXAxis,j=d.axisPointRange||0,I=0,_=0,V=d.transA;if(F||z||j){var X=d.getClosest();k?(I=k.minPointOffset,_=k.pointRangePadding):d.series.forEach(function(H){var Q=z?1:F?i(H.options.pointRange,X,0):d.axisPointRange||0,et=H.options.pointPlacement;j=Math.max(j,Q),d.single&&!z||(H=H.is("xrange")?!F:F,I=Math.max(I,H&&h(et)?0:Q/2),_=Math.max(_,H&&et==="on"?0:Q))}),k=d.ordinal&&d.ordinal.slope&&X?d.ordinal.slope/X:1,d.minPointOffset=I*=k,d.pointRangePadding=_*=k,d.pointRange=Math.min(j,d.single&&z?1:w),F&&(d.closestPointRange=X)}d.translationSlope=d.transA=V=d.staticScale||d.len/(w+_||1),d.transB=d.horiz?d.left:d.bottom,d.minPixelPadding=V*I,f(this,"afterSetAxisTranslation")},O.prototype.minFromRange=function(){return this.max-this.range},O.prototype.setTickInterval=function(d){var w=this.chart,k=this.logarithmic,z=this.options,F=this.isXAxis,j=this.isLinked,I=z.tickPixelInterval,_=this.categories,V=this.softThreshold,X=z.maxPadding,H=z.minPadding,Q=l(z.tickInterval)&&0<=z.tickInterval?z.tickInterval:void 0,et=l(this.threshold)?this.threshold:null;this.dateTime||_||j||this.getTickAmount();var tt=i(this.userMin,z.min),st=i(this.userMax,z.max);if(j){this.linkedParent=w[this.coll][z.linkedTo];var ct=this.linkedParent.getExtremes();this.min=i(ct.min,ct.dataMin),this.max=i(ct.max,ct.dataMax),z.type!==this.linkedParent.options.type&&L(11,1,w)}else{if(V&&y(et)){if(this.dataMin>=et)ct=et,H=0;else if(this.dataMax<=et){var gt=et;X=0}}this.min=i(tt,ct,this.dataMin),this.max=i(st,gt,this.dataMax)}if(k&&(this.positiveValuesOnly&&!d&&0>=Math.min(this.min,i(this.dataMin,this.min))&&L(10,1,w),this.min=v(k.log2lin(this.min),16),this.max=v(k.log2lin(this.max),16)),this.range&&y(this.max)&&(this.userMin=this.min=tt=Math.max(this.dataMin,this.minFromRange()),this.userMax=st=this.max,this.range=null),f(this,"foundExtremes"),this.beforePadding&&this.beforePadding(),this.adjustForMinRange(),!(_||this.axisPointRange||this.stacking&&this.stacking.usePercentage||j)&&y(this.min)&&y(this.max)&&(w=this.max-this.min)&&(!y(tt)&&H&&(this.min-=w*H),!y(st)&&X&&(this.max+=w*X)),l(this.userMin)||(l(z.softMin)&&z.softMin<this.min&&(this.min=tt=z.softMin),l(z.floor)&&(this.min=Math.max(this.min,z.floor))),l(this.userMax)||(l(z.softMax)&&z.softMax>this.max&&(this.max=st=z.softMax),l(z.ceiling)&&(this.max=Math.min(this.max,z.ceiling))),V&&y(this.dataMin)&&(et=et||0,!y(tt)&&this.min<et&&this.dataMin>=et?this.min=this.options.minRange?Math.min(et,this.max-this.minRange):et:!y(st)&&this.max>et&&this.dataMax<=et&&(this.max=this.options.minRange?Math.max(et,this.min+this.minRange):et)),l(this.min)&&l(this.max)&&!this.chart.polar&&this.min>this.max&&(y(this.options.min)?this.max=this.min:y(this.options.max)&&(this.min=this.max)),this.tickInterval=this.min===this.max||this.min===void 0||this.max===void 0?1:j&&this.linkedParent&&!Q&&I===this.linkedParent.options.tickPixelInterval?Q=this.linkedParent.tickInterval:i(Q,this.tickAmount?(this.max-this.min)/Math.max(this.tickAmount-1,1):void 0,_?1:(this.max-this.min)*I/Math.max(this.len,I)),F&&!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)}),f(this,"postProcessData",{hasExtremesChanged:mt})}this.setAxisTranslation(),f(this,"initialAxisTranslation"),this.pointRange&&!Q&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval)),d=i(z.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=A(this,this.tickInterval)),this.tickAmount||(this.tickInterval=this.unsquish()),this.setTickPositions()},O.prototype.setTickPositions=function(){var d,w=this.options,k=w.tickPositions,z=w.tickPositioner,F=this.getMinorTickInterval(),j=this.hasVerticalPanning(),I=this.coll==="colorAxis",_=(I||!j)&&w.startOnTick;if(j=(I||!j)&&w.endOnTick,I=[],this.tickmarkOffset=this.categories&&w.tickmarkPlacement==="between"&&this.tickInterval===1?.5:0,this.minorTickInterval=F==="auto"&&this.tickInterval?this.tickInterval/5:F,this.single=this.min===this.max&&y(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||w.allowDecimals!==!1),k)I=k.slice();else if(l(this.min)&&l(this.max)){if(this.ordinal&&this.ordinal.positions||!((this.max-this.min)/this.tickInterval>Math.max(2*this.len,200)))if(this.dateTime)I=this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,w.units),this.min,this.max,w.startOfWeek,this.ordinal&&this.ordinal.positions,this.closestPointRange,!0);else if(this.logarithmic)I=this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max);else for(F=w=this.tickInterval;F<=2*w&&(I=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&&I.length>this.tickAmount);)this.tickInterval=A(this,F*=1.1);else I=[this.min,this.max],L(19,!1,this.chart);I.length>this.len&&(I=[I[0],I[I.length-1]])[0]===I[1]&&(I.length=1),z&&(this.tickPositions=I,(d=z.apply(this,[this.min,this.max]))&&(I=d))}this.tickPositions=I,this.paddedTicks=I.slice(0),this.trimTicks(I,_,j),!this.isLinked&&l(this.min)&&l(this.max)&&(this.single&&2>I.length&&!this.categories&&!this.series.some(function(V){return V.is("heatmap")&&V.options.pointPlacement==="between"})&&(this.min-=.5,this.max+=.5),k||d||this.adjustTickAmount()),f(this,"afterSetTickPositions")},O.prototype.trimTicks=function(d,w,k){var z=d[0],F=d[d.length-1],j=!this.isOrdinal&&this.minPointOffset||0;if(f(this,"trimTicks"),!this.isLinked){if(w&&z!==-1/0)this.min=z;else for(;this.min-j>d[0];)d.shift();if(k)this.max=F;else for(;this.max+j<d[d.length-1];)d.pop();d.length===0&&y(z)&&!this.options.tickPositions&&d.push((F+z)/2)}},O.prototype.alignToOthers=function(){var d,w=this,k=[this],z=w.options,F=this.coll==="yAxis"&&this.chart.options.chart.alignThresholds,j=[];if(w.thresholdAlignment=void 0,(this.chart.options.chart.alignTicks!==!1&&z.alignTicks||F)&&z.startOnTick!==!1&&z.endOnTick!==!1&&!w.logarithmic){var I=function(X){var H=X.options;return[X.horiz?H.left:H.top,H.width,H.height,H.pane].join()},_=I(this);this.chart[this.coll].forEach(function(X){var H=X.series;H.length&&H.some(function(Q){return Q.visible})&&X!==w&&I(X)===_&&(d=!0,k.push(X))})}if(d&&F){k.forEach(function(X){X=X.getThresholdAlignment(w),l(X)&&j.push(X)});var V=1<j.length?j.reduce(function(X,H){return X+H},0)/j.length:void 0;k.forEach(function(X){X.thresholdAlignment=V})}return d},O.prototype.getThresholdAlignment=function(d){if((!l(this.dataMin)||this!==d&&this.series.some(function(w){return w.isDirty||w.isDirtyData}))&&this.getSeriesExtremes(),l(this.threshold))return d=g((this.threshold-(this.dataMin||0))/((this.dataMax||0)-(this.dataMin||0)),0,1),this.options.reversed&&(d=1-d),d},O.prototype.getTickAmount=function(){var d=this.options,w=d.tickPixelInterval,k=d.tickAmount;!y(d.tickInterval)&&!k&&this.len<w&&!this.isRadial&&!this.logarithmic&&d.startOnTick&&d.endOnTick&&(k=2),!k&&this.alignToOthers()&&(k=Math.ceil(this.len/w)+1),4>k&&(this.finalTickAmt=k,k=5),this.tickAmount=k},O.prototype.adjustTickAmount=function(){var d=this,w=d.finalTickAmt,k=d.max,z=d.min,F=d.options,j=d.tickPositions,I=d.tickAmount,_=d.thresholdAlignment,V=j&&j.length,X=i(d.threshold,d.softThreshold?0:null),H=d.tickInterval;if(l(_)){var Q=.5>_?Math.ceil(_*(I-1)):Math.floor(_*(I-1));F.reversed&&(Q=I-1-Q)}if(d.hasData()&&l(z)&&l(k)){if(_=function(){d.transA*=(V-1)/(I-1),d.min=F.startOnTick?j[0]:Math.min(z,j[0]),d.max=F.endOnTick?j[j.length-1]:Math.max(k,j[j.length-1])},l(Q)&&l(d.threshold)){for(;j[Q]!==X||j.length!==I||j[0]>z||j[j.length-1]<k;){for(j.length=0,j.push(d.threshold);j.length<I;)j[Q]===void 0||j[Q]>d.threshold?j.unshift(v(j[0]-H)):j.push(v(j[j.length-1]+H));if(H>8*d.tickInterval)break;H*=2}_()}else if(V<I){for(;j.length<I;)j.length%2||z===X?j.push(v(j[j.length-1]+H)):j.unshift(v(j[0]-H));_()}if(y(w)){for(H=X=j.length;H--;)(w===3&&H%2==1||2>=w&&0<H&&H<X-1)&&j.splice(H,1);d.finalTickAmt=void 0}}},O.prototype.setScale=function(){var d=!1,w=!1;this.series.forEach(function(z){d=d||z.isDirtyData||z.isDirty,w=w||z.xAxis&&z.xAxis.isDirty||!1}),this.setAxisSize();var k=this.len!==(this.old&&this.old.len);k||d||w||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=k||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),f(this,"afterSetScale")},O.prototype.setExtremes=function(d,w,k,z,F){var j=this,I=j.chart;k=i(k,!0),j.series.forEach(function(_){delete _.kdTree}),F=M(F,{min:d,max:w}),f(j,"setExtremes",F,function(){j.userMin=d,j.userMax=w,j.eventArgs=F,k&&I.redraw(z)})},O.prototype.zoom=function(d,w){var k=this,z=this.dataMin,F=this.dataMax,j=this.options,I=Math.min(z,i(j.min,z)),_=Math.max(F,i(j.max,F));return f(this,"zoom",d={newMin:d,newMax:w},function(V){var X=V.newMin,H=V.newMax;X===k.min&&H===k.max||(k.allowZoomOutside||(y(z)&&(X<I&&(X=I),X>_&&(X=_)),y(F)&&(H<I&&(H=I),H>_&&(H=_))),k.displayBtn=X!==void 0||H!==void 0,k.setExtremes(X,H,!1,void 0,{trigger:"zoom"})),V.zoomed=!0}),d.zoomed},O.prototype.setAxisSize=function(){var d=this.chart,w=this.options,k=w.offsets||[0,0,0,0],z=this.horiz,F=this.width=Math.round(c(i(w.width,d.plotWidth-k[3]+k[1]),d.plotWidth)),j=this.height=Math.round(c(i(w.height,d.plotHeight-k[0]+k[2]),d.plotHeight)),I=this.top=Math.round(c(i(w.top,d.plotTop+k[0]),d.plotHeight,d.plotTop));w=this.left=Math.round(c(i(w.left,d.plotLeft+k[3]),d.plotWidth,d.plotLeft)),this.bottom=d.chartHeight-j-I,this.right=d.chartWidth-F-w,this.len=Math.max(z?F:j,0),this.pos=z?w:I},O.prototype.getExtremes=function(){var d=this.logarithmic;return{min:d?v(d.lin2log(this.min)):this.min,max:d?v(d.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},O.prototype.getThreshold=function(d){var w=this.logarithmic,k=w?w.lin2log(this.min):this.min;return w=w?w.lin2log(this.max):this.max,d===null||d===-1/0?d=k:d===1/0?d=w:k>d?d=k:w<d&&(d=w),this.translate(d,0,1,0,1)},O.prototype.autoLabelAlign=function(d){var w=(i(d,0)-90*this.side+720)%360;return f(this,"autoLabelAlign",d={align:"center"},function(k){15<w&&165>w?k.align="right":195<w&&345>w&&(k.align="left")}),d.align},O.prototype.tickSize=function(d){var w=this.options,k=i(w[d==="tick"?"tickWidth":"minorTickWidth"],d==="tick"&&this.isXAxis&&!this.categories?1:0),z=w[d==="tick"?"tickLength":"minorTickLength"];if(k&&z){w[d+"Position"]==="inside"&&(z=-z);var F=[z,k]}return f(this,"afterTickSize",d={tickSize:F}),d.tickSize},O.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)},O.prototype.unsquish=function(){var d=this.options.labels,w=this.horiz,k=this.tickInterval,z=this.len/(((this.categories?1:0)+this.max-this.min)/k),F=d.rotation,j=this.labelMetrics(),I=Math.max(this.max-this.min,0),_=function(gt){var mt=gt/(z||1);return(mt=1<mt?Math.ceil(mt):1)*k>I&&gt!==1/0&&z!==1/0&&I&&(mt=Math.ceil(I/k)),v(mt*k)},V=k,X=Number.MAX_VALUE;if(w){if(!d.staggerLines)if(l(F))var H=[F];else z<d.autoRotationLimit&&(H=d.autoRotation);if(H)for(var Q=w=void 0,et=0,tt=H;et<tt.length;et++){var st=tt[et];if((st===F||st&&-90<=st&&90>=st)&&(Q=(w=_(Math.abs(j.h/Math.sin(T*st))))+Math.abs(st/360))<X){X=Q;var ct=st;V=w}}}else V=_(j.h);return this.autoRotation=H,this.labelRotation=i(ct,l(F)?F:0),d.step?k:V},O.prototype.getSlotWidth=function(d){var w=this.chart,k=this.horiz,z=this.options.labels,F=Math.max(this.tickPositions.length-(this.categories?0:1),1),j=w.margin[3];if(d&&l(d.slotWidth))return d.slotWidth;if(k&&2>z.step)return z.rotation?0:(this.staggerLines||1)*this.len/F;if(!k){if((d=z.style.width)!==void 0)return parseInt(String(d),10);if(j)return j-w.spacing[3]}return .33*w.chartWidth},O.prototype.renderUnsquish=function(){var d=this.chart,w=d.renderer,k=this.tickPositions,z=this.ticks,F=this.options.labels,j=F.style,I=this.horiz,_=this.getSlotWidth(),V=Math.max(1,Math.round(_-2*F.padding)),X={},H=this.labelMetrics(),Q=j.textOverflow,et=0;if(h(F.rotation)||(X.rotation=F.rotation||0),k.forEach(function(gt){(gt=z[gt]).movedLabel&&gt.replaceMovedLabel(),gt&&gt.label&&gt.label.textPxLength>et&&(et=gt.label.textPxLength)}),this.maxLabelLength=et,this.autoRotation)et>V&&et>H.h?X.rotation=this.labelRotation:this.labelRotation=0;else if(_){var tt=V;if(!Q){var st="clip";for(V=k.length;!I&&V--;){var ct=k[V];(ct=z[ct].label)&&(ct.styles&&ct.styles.textOverflow==="ellipsis"?ct.css({textOverflow:"clip"}):ct.textPxLength>_&&ct.css({width:_+"px"}),ct.getBBox().height>this.len/k.length-(H.h-H.f)&&(ct.specificTextOverflow="ellipsis"))}}}X.rotation&&(tt=et>.5*d.chartHeight?.33*d.chartHeight:et,Q||(st="ellipsis")),(this.labelAlign=F.align||this.autoLabelAlign(this.labelRotation))&&(X.align=this.labelAlign),k.forEach(function(gt){var mt=(gt=z[gt])&&gt.label,bt=j.width,yt={};mt&&(mt.attr(X),gt.shortenLabel?gt.shortenLabel():tt&&!bt&&j.whiteSpace!=="nowrap"&&(tt<mt.textPxLength||mt.element.tagName==="SPAN")?(yt.width=tt+"px",Q||(yt.textOverflow=mt.specificTextOverflow||st),mt.css(yt)):mt.styles&&mt.styles.width&&!yt.width&&!bt&&mt.css({width:null}),delete mt.specificTextOverflow,gt.rotation=X.rotation)},this),this.tickRotCorr=w.rotCorr(H.b,this.labelRotation||0,this.side!==0)},O.prototype.hasData=function(){return this.series.some(function(d){return d.hasData()})||this.options.showEmpty&&y(this.min)&&y(this.max)},O.prototype.addTitle=function(d){var w,k=this.chart.renderer,z=this.horiz,F=this.opposite,j=this.options.title,I=this.chart.styledMode;this.axisTitle||((w=j.textAlign)||(w=(z?{low:"left",middle:"center",high:"right"}:{low:F?"right":"left",middle:"center",high:F?"left":"right"})[j.align]),this.axisTitle=k.text(j.text||"",0,0,j.useHTML).attr({zIndex:7,rotation:j.rotation,align:w}).addClass("highcharts-axis-title"),I||this.axisTitle.css(e(j.style)),this.axisTitle.add(this.axisGroup),this.axisTitle.isNew=!0),I||j.style.width||this.isRadial||this.axisTitle.css({width:this.len+"px"}),this.axisTitle[d?"show":"hide"](d)},O.prototype.generateTick=function(d){var w=this.ticks;w[d]?w[d].addLabel():w[d]=new $(this,d)},O.prototype.getOffset=function(){var d=this,w=this,k=w.chart,z=w.horiz,F=w.options,j=w.side,I=w.ticks,_=w.tickPositions,V=w.coll,X=w.axisParent,H=k.renderer,Q=k.inverted&&!w.isZAxis?[1,0,3,2][j]:j,et=w.hasData(),tt=F.title,st=F.labels,ct=k.axisOffset;k=k.clipOffset;var gt,mt=[-1,1,1,-1][j],bt=F.className,yt=0,dt=0,ot=0;if(w.showAxis=gt=et||F.showEmpty,w.staggerLines=w.horiz&&st.staggerLines||void 0,!w.axisGroup){var ht=function(vt,wt,xt){return H.g(vt).attr({zIndex:xt}).addClass("highcharts-".concat(V.toLowerCase()).concat(wt," ")+(d.isRadial?"highcharts-radial-axis".concat(wt," "):"")+(bt||"")).add(X)};w.gridGroup=ht("grid","-grid",F.gridZIndex),w.axisGroup=ht("axis","",F.zIndex),w.labelGroup=ht("axis-labels","-labels",st.zIndex)}if(et||w.isLinked?(_.forEach(function(vt){w.generateTick(vt)}),w.renderUnsquish(),w.reserveSpaceDefault=j===0||j===2||{1:"left",3:"right"}[j]===w.labelAlign,i(st.reserveSpace,w.labelAlign==="center"||null,w.reserveSpaceDefault)&&_.forEach(function(vt){ot=Math.max(I[vt].getLabelSize(),ot)}),w.staggerLines&&(ot*=w.staggerLines),w.labelOffset=ot*(w.opposite?-1:1)):o(I,function(vt,wt){vt.destroy(),delete I[wt]}),tt&&tt.text&&tt.enabled!==!1&&(w.addTitle(gt),gt&&tt.reserveSpace!==!1)){w.titleOffset=yt=w.axisTitle.getBBox()[z?"height":"width"];var ut=tt.offset;dt=y(ut)?0:i(tt.margin,z?5:10)}w.renderLine(),w.offset=mt*i(F.offset,ct[j]?ct[j]+(F.margin||0):0),w.tickRotCorr=w.tickRotCorr||{x:0,y:0},tt=j===0?-w.labelMetrics().h:j===2?w.tickRotCorr.y:0,et=Math.abs(ot)+dt,ot&&(et=et-tt+mt*(z?i(st.y,w.tickRotCorr.y+8*mt):st.x)),w.axisTitleMargin=i(ut,et),w.getMaxLabelDimensions&&(w.maxLabelDimensions=w.getMaxLabelDimensions(I,_)),V!=="colorAxis"&&(z=this.tickSize("tick"),ct[j]=Math.max(ct[j],(w.axisTitleMargin||0)+yt+mt*w.offset,et,_&&_.length&&z?z[0]+mt*w.offset:0),F=!w.axisLine||F.offset?0:2*Math.floor(w.axisLine.strokeWidth()/2),k[Q]=Math.max(k[Q],F)),f(this,"afterGetOffset")},O.prototype.getLinePath=function(d){var w=this.chart,k=this.opposite,z=this.offset,F=this.horiz,j=this.left+(k?this.width:0)+z;return z=w.chartHeight-this.bottom-(k?this.height:0)+z,k&&(d*=-1),w.renderer.crispLine([["M",F?this.left:j,F?z:this.top],["L",F?w.chartWidth-this.right:j,F?z:w.chartHeight-this.bottom]],d)},O.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}))},O.prototype.getTitlePosition=function(){var d=this.horiz,w=this.left,k=this.top,z=this.len,F=this.options.title,j=d?w:k,I=this.opposite,_=this.offset,V=F.x,X=F.y,H=this.axisTitle,Q=this.chart.renderer.fontMetrics(F.style.fontSize,H);return H=H?Math.max(H.getBBox(!1,0).height-Q.h-1,0):0,z={low:j+(d?0:z),middle:j+z/2,high:j+(d?z:0)}[F.align],w=(d?k+this.height:w)+(d?1:-1)*(I?-1:1)*(this.axisTitleMargin||0)+[-H,H,Q.f,-H][this.side],d={x:d?z+V:w+(I?this.width:0)+_+V,y:d?w+X-(I?this.height:0)+_:z+X},f(this,"afterGetTitlePosition",{titlePosition:d}),d},O.prototype.renderMinorTick=function(d,w){var k=this.minorTicks;k[d]||(k[d]=new $(this,d,"minor")),w&&k[d].isNew&&k[d].render(null,!0),k[d].render(null,!1,1)},O.prototype.renderTick=function(d,w,k){var z=this.ticks;(!this.isLinked||d>=this.min&&d<=this.max||this.grid&&this.grid.isColumn)&&(z[d]||(z[d]=new $(this,d)),k&&z[d].isNew&&z[d].render(w,!0,-1),z[d].render(w))},O.prototype.render=function(){var d,w,k=this,z=k.chart,F=k.logarithmic,j=k.options,I=k.isLinked,_=k.tickPositions,V=k.axisTitle,X=k.ticks,H=k.minorTicks,Q=k.alternateBands,et=j.stackLabels,tt=j.alternateGridColor,st=k.tickmarkOffset,ct=k.axisLine,gt=k.showAxis,mt=D(z.renderer.globalAnimation);if(k.labelEdge.length=0,k.overlap=!1,[X,H,Q].forEach(function(yt){o(yt,function(dt){dt.isActive=!1})}),k.hasData()||I){var bt=k.chart.hasRendered&&k.old&&l(k.old.min);k.minorTickInterval&&!k.categories&&k.getMinorTickPositions().forEach(function(yt){k.renderMinorTick(yt,bt)}),_.length&&(_.forEach(function(yt,dt){k.renderTick(yt,dt,bt)}),st&&(k.min===0||k.single)&&(X[-1]||(X[-1]=new $(k,-1,null,!0)),X[-1].render(-1))),tt&&_.forEach(function(yt,dt){w=_[dt+1]!==void 0?_[dt+1]+st:k.max-st,dt%2==0&&yt<k.max&&w<=k.max+(z.polar?-st:st)&&(Q[yt]||(Q[yt]=new q.PlotLineOrBand(k)),d=yt+st,Q[yt].options={from:F?F.lin2log(d):d,to:F?F.lin2log(w):w,color:tt,className:"highcharts-alternate-grid"},Q[yt].render(),Q[yt].isActive=!0)}),k._addedPlotLB||(k._addedPlotLB=!0,(j.plotLines||[]).concat(j.plotBands||[]).forEach(function(yt){k.addPlotBandOrLine(yt)}))}[X,H,Q].forEach(function(yt){var dt=[],ot=mt.duration;o(yt,function(ht,ut){ht.isActive||(ht.render(ut,!1,0),ht.isActive=!1,dt.push(ut))}),m(function(){for(var ht=dt.length;ht--;)yt[dt[ht]]&&!yt[dt[ht]].isActive&&(yt[dt[ht]].destroy(),delete yt[dt[ht]])},yt!==Q&&z.hasRendered&&ot?ot:0)}),ct&&(ct[ct.isPlaced?"animate":"attr"]({d:this.getLinePath(ct.strokeWidth())}),ct.isPlaced=!0,ct[gt?"show":"hide"](gt)),V&&gt&&(j=k.getTitlePosition(),V[V.isNew?"attr":"animate"](j),V.isNew=!1),et&&et.enabled&&k.stacking&&k.stacking.renderStackTotals(),k.old={len:k.len,max:k.max,min:k.min,transA:k.transA,userMax:k.userMax,userMin:k.userMin},k.isDirty=!1,f(this,"afterRender")},O.prototype.redraw=function(){this.visible&&(this.render(),this.plotLinesAndBands.forEach(function(d){d.render()})),this.series.forEach(function(d){d.isDirty=!0})},O.prototype.getKeepProps=function(){return this.keepProps||O.keepProps},O.prototype.destroy=function(d){var w=this,k=w.plotLinesAndBands,z=this.eventOptions;if(f(this,"destroy",{keepEvents:d}),d||a(w),[w.ticks,w.minorTicks,w.alternateBands].forEach(function(j){C(j)}),k)for(d=k.length;d--;)k[d].destroy();for(var F in"axisLine axisTitle axisGroup gridGroup labelGroup cross scrollbar".split(" ").forEach(function(j){w[j]&&(w[j]=w[j].destroy())}),w.plotLinesAndBandsGroups)w.plotLinesAndBandsGroups[F]=w.plotLinesAndBandsGroups[F].destroy();o(w,function(j,I){w.getKeepProps().indexOf(I)===-1&&delete w[I]}),this.eventOptions=z},O.prototype.drawCrosshair=function(d,w){var k,z=this.crosshair,F=i(z&&z.snap,!0),j=this.chart,I=this.cross;if(f(this,"drawCrosshair",{e:d,point:w}),d||(d=this.cross&&this.cross.e),z&&(y(w)||!F)!==!1){if(F?y(w)&&(k=i(this.coll!=="colorAxis"?w.crosshairPos:null,this.isXAxis?w.plotX:this.len-w.plotY)):k=d&&(this.horiz?d.chartX-this.pos:this.len-d.chartY+this.pos),y(k)){var _={value:w&&(this.isXAxis?w.x:i(w.stackY,w.y)),translatedValue:k};j.polar&&M(_,{isCrosshair:!0,chartX:d&&d.chartX,chartY:d&&d.chartY,point:w}),_=this.getPlotLinePath(_)||null}if(!y(_))return void this.hideCrosshair();F=this.categories&&!this.isRadial,I||(this.cross=I=j.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(F?"category ":"thin ")+(z.className||"")).attr({zIndex:i(z.zIndex,2)}).add(),j.styledMode||(I.attr({stroke:z.color||(F?U.parse("#ccd6eb").setOpacity(.25).get():"#cccccc"),"stroke-width":i(z.width,1)}).css({"pointer-events":"none"}),z.dashStyle&&I.attr({dashstyle:z.dashStyle}))),I.show().attr({d:_}),F&&!z.width&&I.attr({"stroke-width":this.transA}),this.cross.e=d}else this.hideCrosshair();f(this,"afterDrawCrosshair",{e:d,point:w})},O.prototype.hideCrosshair=function(){this.cross&&this.cross.hide(),f(this,"afterHideCrosshair")},O.prototype.hasVerticalPanning=function(){var d=this.chart.options.chart.panning;return!!(d&&d.enabled&&/y/.test(d.type))},O.prototype.validatePositiveValue=function(d){return l(d)&&0<d},O.prototype.update=function(d,w){var k=this.chart;d=e(this.userOptions,d),this.destroy(!0),this.init(k,d),k.isDirtyBox=!0,i(w,!0)&&k.redraw()},O.prototype.remove=function(d){for(var w=this.chart,k=this.coll,z=this.series,F=z.length;F--;)z[F]&&z[F].remove(!1);P(w.axes,this),P(w[k],this),w[k].forEach(function(j,I){j.options.index=j.userOptions.index=I}),this.destroy(),w.isDirtyBox=!0,i(d,!0)&&w.redraw()},O.prototype.setTitle=function(d,w){this.update({title:d},w)},O.prototype.setCategories=function(d,w){this.update({categories:d},w)},O.defaultOptions=R.defaultXAxisOptions,O.keepProps="extKey hcEvents names series userMax userMin".split(" "),O}(),W}),N(rt,"Core/Axis/DateTimeAxis.js",[rt["Core/Utilities.js"]],function(W){var R,U=W.addEvent,Y=W.getMagnitude,Z=W.normalizeTickInterval,q=W.timeUnits;return function($){function G(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)}function D(T){T.userOptions.type!=="datetime"?this.dateTime=void 0:this.dateTime||(this.dateTime=new x(this))}var E=[];$.compose=function(T){return E.indexOf(T)===-1&&(E.push(T),T.keepProps.push("dateTime"),T.prototype.getTimeTicks=G,U(T,"init",D)),T};var x=function(){function T(u){this.axis=u}return T.prototype.normalizeTimeTickInterval=function(u,p){var g=p||[["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]];p=g[g.length-1];var v,y=q[p[0]],C=p[1];for(v=0;v<g.length&&(p=g[v],y=q[p[0]],C=p[1],!(g[v+1]&&u<=(y*C[C.length-1]+q[g[v+1][0]])/2));v++);return y===q.year&&u<5*y&&(C=[1,2,5]),{unitRange:y,count:u=Z(u/y,C,p[0]==="year"?Math.max(Y(u/y),1):1),unitName:p[0]}},T.prototype.getXDateFormat=function(u,p){var g=this.axis,v=g.chart.time;return g.closestPointRange?v.getDateFormat(g.closestPointRange,u,g.options.startOfWeek,p)||v.resolveDTLFormat(p.year).main:v.resolveDTLFormat(p.day).main},T}();$.Additions=x}(R||(R={})),R}),N(rt,"Core/Axis/LogarithmicAxis.js",[rt["Core/Utilities.js"]],function(W){var R,U=W.addEvent,Y=W.normalizeTickInterval,Z=W.pick;return function(q){function $(x){var T=this.logarithmic;x.userOptions.type!=="logarithmic"?this.logarithmic=void 0:T||(this.logarithmic=new E(this))}function G(){var x=this.logarithmic;x&&(this.lin2val=function(T){return x.lin2log(T)},this.val2lin=function(T){return x.log2lin(T)})}var D=[];q.compose=function(x){return D.indexOf(x)===-1&&(D.push(x),x.keepProps.push("logarithmic"),U(x,"init",$),U(x,"afterInit",G)),x};var E=function(){function x(T){this.axis=T}return x.prototype.getLogTickPositions=function(T,u,p,g){var v=this.axis,y=v.len,C=v.options,P=[];if(g||(this.minorAutoInterval=void 0),.5<=T)T=Math.round(T),P=v.getLinearTickPositions(T,u,p);else if(.08<=T){var L,M=Math.floor(u),f=C=void 0;for(y=.3<T?[1,2,4]:.15<T?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];M<p+1&&!f;M++){var b=y.length;for(L=0;L<b&&!f;L++){var l=this.log2lin(this.lin2log(M)*y[L]);l>u&&(!g||C<=p)&&C!==void 0&&P.push(C),C>p&&(f=!0),C=l}}}else u=this.lin2log(u),p=this.lin2log(p),T=g?v.getMinorTickInterval():C.tickInterval,T=Z(T==="auto"?null:T,this.minorAutoInterval,C.tickPixelInterval/(g?5:1)*(p-u)/((g?y/v.tickPositions.length:y)||1)),T=Y(T),P=v.getLinearTickPositions(T,u,p).map(this.log2lin),g||(this.minorAutoInterval=T/5);return g||(v.tickInterval=T),P},x.prototype.lin2log=function(T){return Math.pow(10,T)},x.prototype.log2lin=function(T){return Math.log(T)/Math.LN10},x}();q.Additions=E}(R||(R={})),R}),N(rt,"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js",[rt["Core/Utilities.js"]],function(W){var R,U=W.erase,Y=W.extend,Z=W.isNumber;return function(q){var $,G=[];q.compose=function(E,x){return $||($=E),G.indexOf(x)===-1&&(G.push(x),Y(x.prototype,D.prototype)),x};var D=function(){function E(){}return E.prototype.getPlotBandPath=function(x,T,u){u===void 0&&(u=this.options);var p=this.getPlotLinePath({value:T,force:!0,acrossPanes:u.acrossPanes}),g=[],v=this.horiz;if(T=!Z(this.min)||!Z(this.max)||x<this.min&&T<this.min||x>this.max&&T>this.max,x=this.getPlotLinePath({value:x,force:!0,acrossPanes:u.acrossPanes}),u=1,x&&p){if(T){var y=x.toString()===p.toString();u=0}for(T=0;T<x.length;T+=2){var C=x[T],P=x[T+1],L=p[T],M=p[T+1];C[0]!=="M"&&C[0]!=="L"||P[0]!=="M"&&P[0]!=="L"||L[0]!=="M"&&L[0]!=="L"||M[0]!=="M"&&M[0]!=="L"||(v&&L[1]===C[1]?(L[1]+=u,M[1]+=u):v||L[2]!==C[2]||(L[2]+=u,M[2]+=u),g.push(["M",C[1],C[2]],["L",P[1],P[2]],["L",M[1],M[2]],["L",L[1],L[2]],["Z"])),g.isFlat=y}}return g},E.prototype.addPlotBand=function(x){return this.addPlotBandOrLine(x,"plotBands")},E.prototype.addPlotLine=function(x){return this.addPlotBandOrLine(x,"plotLines")},E.prototype.addPlotBandOrLine=function(x,T){var u=this,p=this.userOptions,g=new $(this,x);if(this.visible&&(g=g.render()),g){if(this._addedPlotLB||(this._addedPlotLB=!0,(p.plotLines||[]).concat(p.plotBands||[]).forEach(function(y){u.addPlotBandOrLine(y)})),T){var v=p[T]||[];v.push(x),p[T]=v}this.plotLinesAndBands.push(g)}return g},E.prototype.removePlotBandOrLine=function(x){var T=this.plotLinesAndBands,u=this.options,p=this.userOptions;if(T){for(var g=T.length;g--;)T[g].id===x&&T[g].destroy();[u.plotLines||[],p.plotLines||[],u.plotBands||[],p.plotBands||[]].forEach(function(v){for(g=v.length;g--;)(v[g]||{}).id===x&&U(v,v[g])})}},E.prototype.removePlotBand=function(x){this.removePlotBandOrLine(x)},E.prototype.removePlotLine=function(x){this.removePlotBandOrLine(x)},E}()}(R||(R={})),R}),N(rt,"Core/Axis/PlotLineOrBand/PlotLineOrBand.js",[rt["Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js"],rt["Core/Utilities.js"]],function(W,R){var U=R.arrayMax,Y=R.arrayMin,Z=R.defined,q=R.destroyObjectProperties,$=R.erase,G=R.fireEvent,D=R.merge,E=R.objectEach,x=R.pick;return R=function(){function T(u,p){this.axis=u,p&&(this.options=p,this.id=p.id)}return T.compose=function(u){return W.compose(T,u)},T.prototype.render=function(){G(this,"render");var u=this,p=u.axis,g=p.horiz,v=p.logarithmic,y=u.options,C=y.color,P=x(y.zIndex,0),L=y.events,M={},f=p.chart.renderer,b=y.label,l=u.label,h=y.to,e=y.from,r=y.value,o=u.svgElem,i=[],c=Z(e)&&Z(h);i=Z(r);var a=!o,s={class:"highcharts-plot-"+(c?"band ":"line ")+(y.className||"")},m=c?"bands":"lines";if(v&&(e=v.log2lin(e),h=v.log2lin(h),r=v.log2lin(r)),p.chart.styledMode||(i?(s.stroke=C||"#999999",s["stroke-width"]=x(y.width,1),y.dashStyle&&(s.dashstyle=y.dashStyle)):c&&(s.fill=C||"#e6ebf5",y.borderWidth&&(s.stroke=y.borderColor,s["stroke-width"]=y.borderWidth))),M.zIndex=P,m+="-"+P,(v=p.plotLinesAndBandsGroups[m])||(p.plotLinesAndBandsGroups[m]=v=f.g("plot-"+m).attr(M).add()),a&&(u.svgElem=o=f.path().attr(s).add(v)),i)i=p.getPlotLinePath({value:r,lineWidth:o.strokeWidth(),acrossPanes:y.acrossPanes});else{if(!c)return;i=p.getPlotBandPath(e,h,y)}return!u.eventsAdded&&L&&(E(L,function(A,O){o.on(O,function(d){L[O].apply(u,[d])})}),u.eventsAdded=!0),(a||!o.d)&&i&&i.length?o.attr({d:i}):o&&(i?(o.show(),o.animate({d:i})):o.d&&(o.hide(),l&&(u.label=l=l.destroy()))),b&&(Z(b.text)||Z(b.formatter))&&i&&i.length&&0<p.width&&0<p.height&&!i.isFlat?(b=D({align:g&&c&&"center",x:g?!c&&4:10,verticalAlign:!g&&c&&"middle",y:g?c?16:10:c?6:-4,rotation:g&&!c&&90},b),this.renderLabel(b,i,c,P)):l&&l.hide(),u},T.prototype.renderLabel=function(u,p,g,v){var y=this.axis,C=y.chart.renderer,P=this.label;P||(this.label=P=C.text(this.getLabelText(u),0,0,u.useHTML).attr({align:u.textAlign||u.align,rotation:u.rotation,class:"highcharts-plot-"+(g?"band":"line")+"-label "+(u.className||""),zIndex:v}).add(),y.chart.styledMode||P.css(D({textOverflow:"ellipsis"},u.style))),v=p.xBounds||[p[0][1],p[1][1],g?p[2][1]:p[0][1]],p=p.yBounds||[p[0][2],p[1][2],g?p[2][2]:p[0][2]],g=Y(v),C=Y(p),P.align(u,!1,{x:g,y:C,width:U(v)-g,height:U(p)-C}),P.alignValue&&P.alignValue!=="left"||(u=u.clip?y.width:y.chart.chartWidth,P.css({width:(P.rotation===90?y.height-(P.alignAttr.y-y.top):u-(P.alignAttr.x-y.left))+"px"})),P.show(!0)},T.prototype.getLabelText=function(u){return Z(u.formatter)?u.formatter.call(this):u.text},T.prototype.destroy=function(){$(this.axis.plotLinesAndBands,this),delete this.axis,q(this)},T}(),R}),N(rt,"Core/Tooltip.js",[rt["Core/FormatUtilities.js"],rt["Core/Globals.js"],rt["Core/Renderer/RendererUtilities.js"],rt["Core/Renderer/RendererRegistry.js"],rt["Core/Utilities.js"]],function(W,R,U,Y,Z){var q=W.format,$=R.doc,G=U.distribute,D=Z.clamp,E=Z.css,x=Z.discardElement,T=Z.extend,u=Z.fireEvent,p=Z.isArray,g=Z.isNumber,v=Z.isString,y=Z.merge,C=Z.pick,P=Z.splat,L=Z.syncTimeout;return W=function(){function M(f,b){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=f,this.init(f,b)}return M.prototype.applyFilter=function(){var f=this.chart;f.renderer.definition({tagName:"filter",attributes:{id:"drop-shadow-"+f.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"}}]}]})},M.prototype.bodyFormatter=function(f){return f.map(function(b){var l=b.series.tooltipOptions;return(l[(b.point.formatPrefix||"point")+"Formatter"]||b.point.tooltipFormatter).call(b.point,l[(b.point.formatPrefix||"point")+"Format"]||"")})},M.prototype.cleanSplit=function(f){this.chart.series.forEach(function(b){var l=b&&b.tt;l&&(!l.isActive||f?b.tt=l.destroy():l.isActive=!1)})},M.prototype.defaultFormatter=function(f){var b=this.points||P(this),l=[f.tooltipFooterHeaderFormatter(b[0])];return(l=l.concat(f.bodyFormatter(b))).push(f.tooltipFooterHeaderFormatter(b[0],!0)),l},M.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(),x(this.container)),Z.clearTimeout(this.hideTimer),Z.clearTimeout(this.tooltipTimeout)},M.prototype.getAnchor=function(f,b){var l=this.chart,h=l.pointer,e=l.inverted,r=l.plotTop;if(l=l.plotLeft,(f=P(f))[0].series&&f[0].series.yAxis&&!f[0].series.yAxis.options.reversedStacks&&(f=f.slice().reverse()),this.followPointer&&b)b.chartX===void 0&&(b=h.normalize(b)),f=[b.chartX-l,b.chartY-r];else if(f[0].tooltipPos)f=f[0].tooltipPos;else{var o=0,i=0;f.forEach(function(c){(c=c.pos(!0))&&(o+=c[0],i+=c[1])}),o/=f.length,i/=f.length,this.shared&&1<f.length&&b&&(e?o=b.chartX:i=b.chartY),f=[o-l,i-r]}return f.map(Math.round)},M.prototype.getClassName=function(f,b,l){var h=f.series,e=h.options;return[this.options.className,"highcharts-label",l&&"highcharts-tooltip-header",b?"highcharts-tooltip-box":"highcharts-tooltip",!l&&"highcharts-color-"+C(f.colorIndex,h.colorIndex),e&&e.className].filter(v).join(" ")},M.prototype.getLabel=function(){var f,b=this,l=this.chart.styledMode,h=this.options,e=this.split&&this.allowShared,r=h.style.pointerEvents||(this.shouldStickOnContact()?"auto":"none"),o=this.chart.renderer;if(b.label){var i=!b.label.hasClass("highcharts-label");(e&&!i||!e&&i)&&b.destroy()}if(!this.label){if(this.outside){i=this.chart.options.chart.style;var c=Y.getRendererType();this.container=f=R.doc.createElement("div"),f.className="highcharts-tooltip-container",E(f,{position:"absolute",top:"1px",pointerEvents:r,zIndex:Math.max(this.options.style.zIndex||0,(i&&i.zIndex||0)+3)}),R.doc.body.appendChild(f),this.renderer=o=new c(f,0,0,i,void 0,void 0,o.styledMode)}if(e?this.label=o.g("tooltip"):(this.label=o.label("",0,0,h.shape,void 0,void 0,h.useHTML,void 0,"tooltip").attr({padding:h.padding,r:h.borderRadius}),l||this.label.attr({fill:h.backgroundColor,"stroke-width":h.borderWidth}).css(h.style).css({pointerEvents:r}).shadow(h.shadow)),l&&h.shadow&&(this.applyFilter(),this.label.attr({filter:"url(#drop-shadow-"+this.chart.index+")"})),b.outside&&!b.split){var a=this.label,s=a.xSetter,m=a.ySetter;a.xSetter=function(A){s.call(a,b.distance),f.style.left=A+"px"},a.ySetter=function(A){m.call(a,b.distance),f.style.top=A+"px"}}this.label.attr({zIndex:8}).add()}return this.label},M.prototype.getPosition=function(f,b,l){var h,e=this.chart,r=this.distance,o={},i=e.inverted&&l.h||0,c=this.outside,a=c?$.documentElement.clientWidth-2*r:e.chartWidth,s=c?Math.max($.body.scrollHeight,$.documentElement.scrollHeight,$.body.offsetHeight,$.documentElement.offsetHeight,$.documentElement.clientHeight):e.chartHeight,m=e.pointer.getChartPosition(),A=function(I){var _=I==="x";return[I,_?a:s,_?f:b].concat(c?[_?f*m.scaleX:b*m.scaleY,_?m.left-r+(l.plotX+e.plotLeft)*m.scaleX:m.top-r+(l.plotY+e.plotTop)*m.scaleY,0,_?a:s]:[_?f:b,_?l.plotX+e.plotLeft:l.plotY+e.plotTop,_?e.plotLeft:e.plotTop,_?e.plotLeft+e.plotWidth:e.plotTop+e.plotHeight])},O=A("y"),d=A("x");A=!!l.negative,!e.polar&&e.hoverSeries&&e.hoverSeries.yAxis&&e.hoverSeries.yAxis.reversed&&(A=!A);var w=!this.followPointer&&C(l.ttBelow,!e.inverted===A),k=function(I,_,V,X,H,Q,et){var tt=c?I==="y"?r*m.scaleY:r*m.scaleX:r,st=(V-X)/2,ct=X<H-r,gt=H+r+X<_,mt=H-tt-V+st;if(H=H+tt-st,w&&gt)o[I]=H;else if(!w&&ct)o[I]=mt;else if(ct)o[I]=Math.min(et-X,0>mt-i?mt:mt-i);else{if(!gt)return!1;o[I]=Math.max(Q,H+i+V>_?H:H+i)}},z=function(I,_,V,X,H){var Q;return H<r||H>_-r?Q=!1:o[I]=H<V/2?1:H>_-X/2?_-X-2:H-V/2,Q},F=function(I){var _=O;O=d,d=_,h=I},j=function(){k.apply(0,O)!==!1?z.apply(0,d)!==!1||h||(F(!0),j()):h?o.x=o.y=0:(F(!0),j())};return(e.inverted||1<this.len)&&F(),j(),o},M.prototype.hide=function(f){var b=this;Z.clearTimeout(this.hideTimer),f=C(f,this.options.hideDelay),this.isHidden||(this.hideTimer=L(function(){b.getLabel().fadeOut(f&&void 0),b.isHidden=!0},f))},M.prototype.init=function(f,b){this.chart=f,this.options=b,this.crosshairs=[],this.now={x:0,y:0},this.isHidden=!0,this.split=b.split&&!f.inverted&&!f.polar,this.shared=b.shared||this.split,this.outside=C(b.outside,!(!f.scrollablePixelsX&&!f.scrollablePixelsY))},M.prototype.shouldStickOnContact=function(f){return!(this.followPointer||!this.options.stickOnContact||f&&!this.chart.pointer.inClass(f.target,"highcharts-tooltip"))},M.prototype.move=function(f,b,l,h){var e=this,r=e.now,o=e.options.animation!==!1&&!e.isHidden&&(1<Math.abs(f-r.x)||1<Math.abs(b-r.y)),i=e.followPointer||1<e.len;T(r,{x:o?(2*r.x+f)/3:f,y:o?(r.y+b)/2:b,anchorX:i?void 0:o?(2*r.anchorX+l)/3:l,anchorY:i?void 0:o?(r.anchorY+h)/2:h}),e.getLabel().attr(r),e.drawTracker(),o&&(Z.clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout(function(){e&&e.move(f,b,l,h)},32))},M.prototype.refresh=function(f,b){var l=this.chart,h=this.options,e=l.pointer,r=P(f),o=r[0],i=[],c=h.formatter||this.defaultFormatter,a=this.shared,s=l.styledMode,m={};if(h.enabled&&o.series){Z.clearTimeout(this.hideTimer),this.allowShared=!(!p(f)&&f.series&&f.series.noSharedTooltip),this.followPointer=!this.split&&o.series.tooltipOptions.followPointer;var A=(f=this.getAnchor(f,b))[0],O=f[1];if(a&&this.allowShared?(e.applyInactiveState(r),r.forEach(function(k){k.setState("hover"),i.push(k.getLabelConfig())}),(m={x:o.category,y:o.y}).points=i):m=o.getLabelConfig(),this.len=i.length,c=c.call(m,this),a=o.series,this.distance=C(a.tooltipOptions.distance,16),c===!1)this.hide();else{if(this.split&&this.allowShared)this.renderSplit(c,r);else{var d=A,w=O;if(b&&e.isDirectTouch&&(d=b.chartX-l.plotLeft,w=b.chartY-l.plotTop),!l.polar&&a.options.clip!==!1&&!r.some(function(k){return e.isDirectTouch||k.series.shouldShowTooltip(d,w)}))return void this.hide();b=this.getLabel(),h.style.width&&!s||b.css({width:l.spacingBox.width+"px"}),b.attr({text:c&&c.join?c.join(""):c}),b.addClass(this.getClassName(o),!0),s||b.attr({stroke:h.borderColor||o.color||a.color||"#666666"}),this.updatePosition({plotX:A,plotY:O,negative:o.negative,ttBelow:o.ttBelow,h:f[2]||0})}this.isHidden&&this.label&&this.label.attr({opacity:1}).show(),this.isHidden=!1}u(this,"refresh")}},M.prototype.renderSplit=function(f,b){function l(gt,mt,bt,yt,dt){return dt===void 0&&(dt=!0),bt?(mt=X?0:tt,gt=D(gt-yt/2,I.left,I.right-yt-(h.outside?H:0))):(mt-=Q,gt=D(gt=dt?gt-yt-z:gt+z,dt?gt:I.left,I.right)),{x:gt,y:mt}}var h=this,e=h.chart,r=h.chart,o=r.chartWidth,i=r.chartHeight,c=r.plotHeight,a=r.plotLeft,s=r.plotTop,m=r.pointer,A=r.scrollablePixelsY;A=A===void 0?0:A;var O=r.scrollablePixelsX,d=r.scrollingContainer,w=(d=d===void 0?{scrollLeft:0,scrollTop:0}:d).scrollLeft;d=d.scrollTop;var k=r.styledMode,z=h.distance,F=h.options,j=h.options.positioner,I=h.outside&&typeof O!="number"?$.documentElement.getBoundingClientRect():{left:w,right:w+o,top:d,bottom:d+i},_=h.getLabel(),V=this.renderer||e.renderer,X=!(!e.xAxis[0]||!e.xAxis[0].opposite),H=(e=m.getChartPosition()).left;e=e.top;var Q=s+d,et=0,tt=c-A;v(f)&&(f=[!1,f]),f=f.slice(0,b.length+1).reduce(function(gt,mt,bt){if(mt!==!1&&mt!==""){var yt=(bt=b[bt-1]||{isHeader:!0,plotX:b[0].plotX,plotY:c,series:{}}).isHeader,dt=yt?h:bt.series;mt=mt.toString();var ot=dt.tt,ht=bt.isHeader,ut=bt.series;ot||(ot={padding:F.padding,r:F.borderRadius},k||(ot.fill=F.backgroundColor,ot["stroke-width"]=F.borderWidth),ot=V.label("",0,0,F[ht?"headerShape":"shape"],void 0,void 0,F.useHTML).addClass(h.getClassName(bt,!0,ht)).attr(ot).add(_)),ot.isActive=!0,ot.attr({text:mt}),k||ot.css(F.style).shadow(F.shadow).attr({stroke:F.borderColor||bt.color||ut.color||"#333333"}),mt=(ht=(dt=dt.tt=ot).getBBox()).width+dt.strokeWidth(),yt&&(et=ht.height,tt+=et,X&&(Q-=et)),ut=(ut=bt.plotX)===void 0?0:ut,ot=(ot=bt.plotY)===void 0?0:ot;var vt=bt.series;if(bt.isHeader){ut=a+ut;var wt=s+c/2}else{var xt=vt.xAxis,Ct=vt.yAxis;ut=xt.pos+D(ut,-z,xt.len+z),vt.shouldShowTooltip(0,Ct.pos-s+ot,{ignoreX:!0})&&(wt=Ct.pos+ot)}ut=D(ut,I.left-z,I.right+z),typeof wt=="number"?(ht=ht.height+1,ot=j?j.call(h,mt,ht,bt):l(ut,wt,yt,mt),gt.push({align:j?0:void 0,anchorX:ut,anchorY:wt,boxWidth:mt,point:bt,rank:C(ot.rank,yt?1:0),size:ht,target:ot.y,tt:dt,x:ot.x})):dt.isActive=!1}return gt},[]),!j&&f.some(function(gt){var mt=(h.outside?H:0)+gt.anchorX;return mt<I.left&&mt+gt.boxWidth<I.right||mt<H-I.left+gt.boxWidth&&I.right-mt>mt})&&(f=f.map(function(gt){var mt=l(gt.anchorX,gt.anchorY,gt.point.isHeader,gt.boxWidth,!1);return T(gt,{target:mt.y,x:mt.x})})),h.cleanSplit(),G(f,tt);var st=H,ct=H;f.forEach(function(gt){var mt=gt.x,bt=gt.boxWidth;(gt=gt.isHeader)||(h.outside&&H+mt<st&&(st=H+mt),!gt&&h.outside&&st+bt>ct&&(ct=H+mt))}),f.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},h.outside&&mt<bt){var ot=H-st;0<ot&&(dt||(yt.x=mt+ot,yt.anchorX=bt+ot),dt&&(yt.x=(ct-st)/2,yt.anchorX=bt+ot))}gt.tt.attr(yt)}),f=h.container,A=h.renderer,h.outside&&f&&A&&(r=_.getBBox(),A.setSize(r.width+r.x,r.height+r.y,!1),f.style.left=st+"px",f.style.top=e+"px")},M.prototype.drawTracker=function(){if(this.shouldStickOnContact()){var f=this.chart,b=this.label,l=this.shared?f.hoverPoints:f.hoverPoint;if(b&&l){var h={x:0,y:0,width:0,height:0};l=this.getAnchor(l);var e=b.getBBox();l[0]+=f.plotLeft-b.translateX,l[1]+=f.plotTop-b.translateY,h.x=Math.min(0,l[0]),h.y=Math.min(0,l[1]),h.width=0>l[0]?Math.max(Math.abs(l[0]),e.width-l[0]):Math.max(Math.abs(l[0]),e.width),h.height=0>l[1]?Math.max(Math.abs(l[1]),e.height-Math.abs(l[1])):Math.max(Math.abs(l[1]),e.height),this.tracker?this.tracker.attr(h):(this.tracker=b.renderer.rect(h).addClass("highcharts-tracker").add(b),f.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}}else this.tracker&&this.tracker.destroy()},M.prototype.styledModeFormat=function(f){return f.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}"')},M.prototype.tooltipFooterHeaderFormatter=function(f,b){var l=f.series,h=l.tooltipOptions,e=l.xAxis,r=e&&e.dateTime;e={isFooter:b,labelConfig:f};var o=h.xDateFormat,i=h[b?"footerFormat":"headerFormat"];return u(this,"headerFormatter",e,function(c){r&&!o&&g(f.key)&&(o=r.getXDateFormat(f.key,h.dateTimeLabelFormats)),r&&o&&(f.point&&f.point.tooltipDateKeys||["key"]).forEach(function(a){i=i.replace("{point."+a+"}","{point."+a+":"+o+"}")}),l.chart.styledMode&&(i=this.styledModeFormat(i)),c.text=q(i,{point:f,series:l},this.chart)}),e.text},M.prototype.update=function(f){this.destroy(),y(!0,this.chart.options.tooltip.userOptions,f),this.init(this.chart,y(!0,this.options,f))},M.prototype.updatePosition=function(f){var b=this.chart,l=this.distance,h=this.options,e=b.pointer,r=this.getLabel(),o=e.getChartPosition();e=o.left;var i=o.top,c=o.scaleX;o=o.scaleY;var a=(h.positioner||this.getPosition).call(this,r.width,r.height,f),s=(f.plotX||0)+b.plotLeft;f=(f.plotY||0)+b.plotTop,this.outside&&(h.positioner&&(a.x+=e-l,a.y+=i-l),l=h.borderWidth+2*l,this.renderer.setSize(r.width+l,r.height+l,!1),c===1&&o===1||(E(this.container,{transform:"scale(".concat(c,", ").concat(o,")")}),s*=c,f*=o),s+=e-a.x,f+=i-a.y),this.move(Math.round(a.x),Math.round(a.y||0),s,f)},M}(),W}),N(rt,"Core/Series/Point.js",[rt["Core/Renderer/HTML/AST.js"],rt["Core/Animation/AnimationUtilities.js"],rt["Core/Defaults.js"],rt["Core/FormatUtilities.js"],rt["Core/Utilities.js"]],function(W,R,U,Y,Z){var q=R.animObject,$=U.defaultOptions,G=Y.format,D=Z.addEvent,E=Z.defined,x=Z.erase,T=Z.extend,u=Z.fireEvent,p=Z.getNestedProperty,g=Z.isArray,v=Z.isFunction,y=Z.isNumber,C=Z.isObject,P=Z.merge,L=Z.objectEach,M=Z.pick,f=Z.syncTimeout,b=Z.removeEvent,l=Z.uniqueKey;return R=function(){function h(){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 h.prototype.animateBeforeDestroy=function(){var e=this,r={x:e.startXPos,opacity:0},o=e.getGraphicalProps();o.singular.forEach(function(i){e[i]=e[i].animate(i==="dataLabel"?{x:e[i].startXPos,y:e[i].startYPos,opacity:0}:r)}),o.plural.forEach(function(i){e[i].forEach(function(c){c.element&&c.animate(T({x:e.startXPos},c.startYPos?{x:c.startXPos,y:c.startYPos}:{}))})})},h.prototype.applyOptions=function(e,r){var o=this.series,i=o.options.pointValKey||o.pointValKey;return e=h.prototype.optionsToObject.call(this,e),T(this,e),this.options=this.options?T(this.options,e):e,e.group&&delete this.group,e.dataLabels&&delete this.dataLabels,i&&(this.y=h.prototype.getNestedProperty.call(this,i)),this.formatPrefix=(this.isNull=this.isValid&&!this.isValid())?"null":"point",this.selected&&(this.state="select"),"name"in this&&r===void 0&&o.xAxis&&o.xAxis.hasNames&&(this.x=o.xAxis.nameToX(this)),this.x===void 0&&o?this.x=r===void 0?o.autoIncrement():r:y(e.x)&&o.options.relativeXValue&&(this.x=o.autoIncrement(e.x)),this},h.prototype.destroy=function(){function e(){for(c in(r.graphic||r.graphics||r.dataLabel||r.dataLabels)&&(b(r),r.destroyElements()),r)r[c]=null}var r=this,o=r.series,i=o.chart;o=o.options.dataSorting;var c,a=i.hoverPoints,s=q(r.series.chart.renderer.globalAnimation);r.legendItem&&i.legend.destroyItem(r),a&&(r.setState(),x(a,r),a.length||(i.hoverPoints=null)),r===i.hoverPoint&&r.onMouseOut(),o&&o.enabled?(this.animateBeforeDestroy(),f(e,s.duration)):e(),i.pointCount--},h.prototype.destroyElements=function(e){var r=this;(e=r.getGraphicalProps(e)).singular.forEach(function(o){r[o]=r[o].destroy()}),e.plural.forEach(function(o){r[o].forEach(function(i){i&&i.element&&i.destroy()}),delete r[o]})},h.prototype.firePointEvent=function(e,r,o){var i=this,c=this.series.options;(c.point.events[e]||i.options&&i.options.events&&i.options.events[e])&&i.importEvents(),e==="click"&&c.allowPointSelect&&(o=function(a){i.select&&i.select(null,a.ctrlKey||a.metaKey||a.shiftKey)}),u(i,e,r,o)},h.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",""):"")},h.prototype.getGraphicalProps=function(e){var r,o=this,i=[],c={singular:[],plural:[]};for((e=e||{graphic:1,dataLabel:1}).graphic&&i.push("graphic","shadowGroup"),e.dataLabel&&i.push("dataLabel","dataLabelPath","dataLabelUpper","connector"),r=i.length;r--;){var a=i[r];o[a]&&c.singular.push(a)}return["graphic","dataLabel","connector"].forEach(function(s){var m=s+"s";e[s]&&o[m]&&c.plural.push(m)}),c},h.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}},h.prototype.getNestedProperty=function(e){if(e)return e.indexOf("custom.")===0?p(e,this.options):this[e]},h.prototype.getZone=function(){var e=this.series,r=e.zones;e=e.zoneAxis||"y";var o,i=0;for(o=r[i];this[e]>=o.value;)o=r[++i];return this.nonZonedColor||(this.nonZonedColor=this.color),this.color=o&&o.color&&!this.options.color?o.color:this.nonZonedColor,o},h.prototype.hasNewShapeType=function(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType},h.prototype.init=function(e,r,o){return this.series=e,this.applyOptions(r,o),this.id=E(this.id)?this.id:l(),this.resolveColor(),e.chart.pointCount++,u(this,"afterInit"),this},h.prototype.isValid=function(){return this.x!==null&&y(this.y)},h.prototype.optionsToObject=function(e){var r=this.series,o=r.options.keys,i=o||r.pointArrayMap||["y"],c=i.length,a={},s=0,m=0;if(y(e)||e===null)a[i[0]]=e;else if(g(e))for(!o&&e.length>c&&((r=typeof e[0])=="string"?a.name=e[0]:r==="number"&&(a.x=e[0]),s++);m<c;)o&&e[s]===void 0||(0<i[m].indexOf(".")?h.prototype.setNestedProperty(a,e[s],i[m]):a[i[m]]=e[s]),s++,m++;else typeof e=="object"&&(a=e,e.dataLabels&&(r._hasPointLabels=!0),e.marker&&(r._hasPointMarkers=!0));return a},h.prototype.pos=function(e,r){r===void 0&&(r=this.plotY);var o=this.plotX,i=this.series,c=i.chart,a=i.xAxis;i=i.yAxis;var s=0,m=0;if(y(o)&&y(r))return e&&(s=a?a.pos:c.plotLeft,m=i?i.pos:c.plotTop),c.inverted&&a&&i?[i.len-r+m,a.len-o+s]:[o+s,r+m]},h.prototype.resolveColor=function(){var e=this.series,r=e.chart.styledMode,o=e.chart.options.chart.colorCount;if(delete this.nonZonedColor,e.options.colorByPoint){if(!r){var i=(o=e.options.colors||e.chart.options.colors)[e.colorCounter];o=o.length}r=e.colorCounter,e.colorCounter++,e.colorCounter===o&&(e.colorCounter=0)}else r||(i=e.color),r=e.colorIndex;this.colorIndex=M(this.options.colorIndex,r),this.color=M(this.options.color,i)},h.prototype.setNestedProperty=function(e,r,o){return o.split(".").reduce(function(i,c,a,s){return i[c]=s.length-1===a?r:C(i[c],!0)?i[c]:{},i[c]},e),e},h.prototype.shouldDraw=function(){return!this.isNull},h.prototype.tooltipFormatter=function(e){var r=this.series,o=r.tooltipOptions,i=M(o.valueDecimals,""),c=o.valuePrefix||"",a=o.valueSuffix||"";return r.chart.styledMode&&(e=r.chart.tooltip.styledModeFormat(e)),(r.pointArrayMap||["y"]).forEach(function(s){s="{point."+s,(c||a)&&(e=e.replace(RegExp(s+"}","g"),c+s+"}"+a)),e=e.replace(RegExp(s+"}","g"),s+":,."+i+"f}")}),G(e,{point:this,series:this.series},r.chart)},h.prototype.update=function(e,r,o,i){function c(){s.applyOptions(e);var w=A&&s.hasMockGraphic;w=s.y===null?!w:w,A&&w&&(s.graphic=A.destroy(),delete s.hasMockGraphic),C(e,!0)&&(A&&A.element&&e&&e.marker&&e.marker.symbol!==void 0&&(s.graphic=A.destroy()),e&&e.dataLabels&&s.dataLabel&&(s.dataLabel=s.dataLabel.destroy()),s.connector&&(s.connector=s.connector.destroy())),a=s.index,m.updateParallelArrays(s,a),d.data[a]=C(d.data[a],!0)||C(e,!0)?s.options:M(e,d.data[a]),m.isDirty=m.isDirtyData=!0,!m.fixedBox&&m.hasCartesianSeries&&(O.isDirtyBox=!0),d.legendType==="point"&&(O.isDirtyLegend=!0),r&&O.redraw(o)}var a,s=this,m=s.series,A=s.graphic,O=m.chart,d=m.options;r=M(r,!0),i===!1?c():s.firePointEvent("update",{options:e},c)},h.prototype.remove=function(e,r){this.series.removePoint(this.series.data.indexOf(this),e,r)},h.prototype.select=function(e,r){var o=this,i=o.series,c=i.chart;this.selectedStaging=e=M(e,!o.selected),o.firePointEvent(e?"select":"unselect",{accumulate:r},function(){o.selected=o.options.selected=e,i.options.data[i.data.indexOf(o)]=o.options,o.setState(e&&"select"),r||c.getSelectedPoints().forEach(function(a){var s=a.series;a.selected&&a!==o&&(a.selected=a.options.selected=!1,s.options.data[s.data.indexOf(a)]=a.options,a.setState(c.hoverPoints&&s.options.inactiveOtherPoints?"inactive":""),a.firePointEvent("unselect"))})}),delete this.selectedStaging},h.prototype.onMouseOver=function(e){var r=this.series.chart,o=r.pointer;e=e?o.normalize(e):o.getChartCoordinatesFromPoint(this,r.inverted),o.runPointActions(e,this)},h.prototype.onMouseOut=function(){var e=this.series.chart;this.firePointEvent("mouseOut"),this.series.options.inactiveOtherPoints||(e.hoverPoints||[]).forEach(function(r){r.setState()}),e.hoverPoints=e.hoverPoint=null},h.prototype.importEvents=function(){if(!this.hasImportedEvents){var e=this,r=P(e.series.options.point,e.options).events;e.events=r,L(r,function(o,i){v(o)&&D(e,i,o)}),this.hasImportedEvents=!0}},h.prototype.setState=function(e,r){var o,i=this.series,c=this.state,a=i.options.states[e||"normal"]||{},s=$.plotOptions[i.type].marker&&i.options.marker,m=s&&s.enabled===!1,A=s&&s.states&&s.states[e||"normal"]||{},O=A.enabled===!1,d=this.marker||{},w=i.chart,k=s&&i.markerAttribs,z=i.halo,F=i.stateMarkerGraphic;if(!((e=e||"")===this.state&&!r||this.selected&&e!=="select"||a.enabled===!1||e&&(O||m&&A.enabled===!1)||e&&d.states&&d.states[e]&&d.states[e].enabled===!1)){if(this.state=e,k&&(o=i.markerAttribs(this,e)),this.graphic&&!this.hasMockGraphic){if(c&&this.graphic.removeClass("highcharts-point-"+c),e&&this.graphic.addClass("highcharts-point-"+e),!w.styledMode){c=i.pointAttribs(this,e);var j=M(w.options.chart.animation,a.animation),I=c.opacity;i.options.inactiveOtherPoints&&y(I)&&((this.dataLabels||[]).forEach(function(_){_&&!_.hasClass("highcharts-data-label-hidden")&&_.animate({opacity:I},j)}),this.connector&&this.connector.animate({opacity:I},j)),this.graphic.animate(c,j)}o&&this.graphic.animate(o,M(w.options.chart.animation,A.animation,s.animation)),F&&F.hide()}else e&&A&&(s=d.symbol||i.symbol,F&&F.currentSymbol!==s&&(F=F.destroy()),o&&(F?F[r?"animate":"attr"]({x:o.x,y:o.y}):s&&(i.stateMarkerGraphic=F=w.renderer.symbol(s,o.x,o.y,o.width,o.height).add(i.markerGroup),F.currentSymbol=s)),!w.styledMode&&F&&this.state!=="inactive"&&F.attr(i.pointAttribs(this,e))),F&&(F[e&&this.isInside?"show":"hide"](),F.element.point=this,F.addClass(this.getClassName(),!0));a=a.halo,o=(F=this.graphic||F)&&F.visibility||"inherit",a&&a.size&&F&&o!=="hidden"&&!this.isCluster?(z||(i.halo=z=w.renderer.path().add(F.parentGroup)),z.show()[r?"animate":"attr"]({d:this.haloPath(a.size)}),z.attr({class:"highcharts-halo highcharts-color-"+M(this.colorIndex,i.colorIndex)+(this.className?" "+this.className:""),visibility:o,zIndex:-1}),z.point=this,w.styledMode||z.attr(T({fill:this.color||i.color,"fill-opacity":a.opacity},W.filterUserAttributes(a.attributes||{})))):z&&z.point&&z.point.haloPath&&z.animate({d:z.point.haloPath(0)},null,z.hide),u(this,"afterSetState",{state:e})}},h.prototype.haloPath=function(e){var r=this.pos();return r?this.series.chart.renderer.symbols.circle(Math.floor(r[0])-e,r[1]-e,2*e,2*e):[]},h}(),R}),N(rt,"Core/Pointer.js",[rt["Core/Color/Color.js"],rt["Core/Globals.js"],rt["Core/Tooltip.js"],rt["Core/Utilities.js"]],function(W,R,U,Y){var Z=W.parse,q=R.charts,$=R.noop,G=Y.addEvent,D=Y.attr,E=Y.css,x=Y.defined,T=Y.extend,u=Y.find,p=Y.fireEvent,g=Y.isNumber,v=Y.isObject,y=Y.objectEach,C=Y.offset,P=Y.pick,L=Y.splat;return W=function(){function M(f,b){this.lastValidTouch={},this.pinchDown=[],this.runChartClick=!1,this.eventsToUnbind=[],this.chart=f,this.hasDragged=!1,this.options=b,this.init(f,b)}return M.prototype.applyInactiveState=function(f){var b,l=[];(f||[]).forEach(function(h){b=h.series,l.push(b),b.linkedParent&&l.push(b.linkedParent),b.linkedSeries&&(l=l.concat(b.linkedSeries)),b.navigatorSeries&&l.push(b.navigatorSeries)}),this.chart.series.forEach(function(h){l.indexOf(h)===-1?h.setState("inactive",!0):h.options.inactiveOtherPoints&&h.setAllPointsToState("inactive")})},M.prototype.destroy=function(){var f=this;this.eventsToUnbind.forEach(function(b){return b()}),this.eventsToUnbind=[],R.chartCount||(M.unbindDocumentMouseUp&&(M.unbindDocumentMouseUp=M.unbindDocumentMouseUp()),M.unbindDocumentTouchEnd&&(M.unbindDocumentTouchEnd=M.unbindDocumentTouchEnd())),clearInterval(f.tooltipTimeout),y(f,function(b,l){f[l]=void 0})},M.prototype.getSelectionMarkerAttrs=function(f,b){var l=this,h={args:{chartX:f,chartY:b},attrs:{},shapeType:"rect"};return p(this,"getSelectionMarkerAttrs",h,function(e){var r=l.chart,o=l.mouseDownX;o=o===void 0?0:o;var i=l.mouseDownY;i=i===void 0?0:i;var c=l.zoomHor,a=l.zoomVert;(e=e.attrs).x=r.plotLeft,e.y=r.plotTop,e.width=c?1:r.plotWidth,e.height=a?1:r.plotHeight,c&&(r=f-o,e.width=Math.abs(r),e.x=(0<r?0:r)+o),a&&(r=b-i,e.height=Math.abs(r),e.y=(0<r?0:r)+i)}),h},M.prototype.drag=function(f){var b=this.chart,l=b.options.chart,h=b.plotLeft,e=b.plotTop,r=b.plotWidth,o=b.plotHeight,i=this.mouseDownX||0,c=this.mouseDownY||0,a=v(l.panning)?l.panning&&l.panning.enabled:l.panning,s=l.panKey&&f[l.panKey+"Key"],m=f.chartX,A=f.chartY,O=this.selectionMarker;O&&O.touch||(m<h?m=h:m>h+r&&(m=h+r),A<e?A=e:A>e+o&&(A=e+o),this.hasDragged=Math.sqrt(Math.pow(i-m,2)+Math.pow(c-A,2)),10<this.hasDragged&&(h=b.isInsidePlot(i-h,c-e,{visiblePlotOnly:!0}),m=(A=this.getSelectionMarkerAttrs(m,A)).shapeType,A=A.attrs,!b.hasCartesianSeries&&!b.mapView||!this.zoomX&&!this.zoomY||!h||s||O||(this.selectionMarker=O=b.renderer[m](),O.attr({class:"highcharts-selection-marker",zIndex:7}).add(),b.styledMode||O.attr({fill:l.selectionMarkerFill||Z("#335cad").setOpacity(.25).get()})),O&&O.attr(A),h&&!O&&a&&b.pan(f,l.panning)))},M.prototype.dragStart=function(f){var b=this.chart;b.mouseIsDown=f.type,b.cancelClick=!1,b.mouseDownX=this.mouseDownX=f.chartX,b.mouseDownY=this.mouseDownY=f.chartY},M.prototype.getSelectionBox=function(f){var b={args:{marker:f},result:{}};return p(this,"getSelectionBox",b,function(l){l.result={x:f.attr?+f.attr("x"):f.x,y:f.attr?+f.attr("y"):f.y,width:f.attr?f.attr("width"):f.width,height:f.attr?f.attr("height"):f.height}}),b.result},M.prototype.drop=function(f){var b=this,l=this.chart,h=this.hasPinched;if(this.selectionMarker){var e=this.getSelectionBox(this.selectionMarker),r=e.x,o=e.y,i=e.width,c=e.height,a={originalEvent:f,xAxis:[],yAxis:[],x:r,y:o,width:i,height:c},s=!!l.mapView;(this.hasDragged||h)&&(l.axes.forEach(function(m){if(m.zoomEnabled&&x(m.min)&&(h||b[{xAxis:"zoomX",yAxis:"zoomY"}[m.coll]])&&g(r)&&g(o)&&g(i)&&g(c)){var A=m.horiz,O=f.type==="touchend"?m.minPixelPadding:0,d=m.toValue((A?r:o)+O);A=m.toValue((A?r+i:o+c)-O),a[m.coll].push({axis:m,min:Math.min(d,A),max:Math.max(d,A)}),s=!0}}),s&&p(l,"selection",a,function(m){l.zoom(T(m,h?{animation:!1}:null))})),g(l.index)&&(this.selectionMarker=this.selectionMarker.destroy()),h&&this.scaleGroups()}l&&g(l.index)&&(E(l.container,{cursor:l._cursor}),l.cancelClick=10<this.hasDragged,l.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])},M.prototype.findNearestKDPoint=function(f,b,l){var h;return f.forEach(function(e){var r=!(e.noSharedTooltip&&b)&&0>e.options.findNearestPointBy.indexOf("y");if(e=e.searchPoint(l,r),(r=v(e,!0)&&e.series)&&!(r=!v(h,!0))){r=h.distX-e.distX;var o=h.dist-e.dist,i=(e.series.group&&e.series.group.zIndex)-(h.series.group&&h.series.group.zIndex);r=0<(r!==0&&b?r:o!==0?o:i!==0?i:h.series.index>e.series.index?-1:1)}r&&(h=e)}),h},M.prototype.getChartCoordinatesFromPoint=function(f,b){var l=f.series,h=l.xAxis;l=l.yAxis;var e=f.shapeArgs;if(h&&l){var r=P(f.clientX,f.plotX),o=f.plotY||0;return f.isNode&&e&&g(e.x)&&g(e.y)&&(r=e.x,o=e.y),b?{chartX:l.len+l.pos-o,chartY:h.len+h.pos-r}:{chartX:r+h.pos,chartY:o+l.pos}}if(e&&e.x&&e.y)return{chartX:e.x,chartY:e.y}},M.prototype.getChartPosition=function(){if(this.chartPosition)return this.chartPosition;var f=this.chart.container,b=C(f);this.chartPosition={left:b.left,top:b.top,scaleX:1,scaleY:1};var l=f.offsetWidth;return f=f.offsetHeight,2<l&&2<f&&(this.chartPosition.scaleX=b.width/l,this.chartPosition.scaleY=b.height/f),this.chartPosition},M.prototype.getCoordinates=function(f){var b={xAxis:[],yAxis:[]};return this.chart.axes.forEach(function(l){b[l.isXAxis?"xAxis":"yAxis"].push({axis:l,value:l.toValue(f[l.horiz?"chartX":"chartY"])})}),b},M.prototype.getHoverData=function(f,b,l,h,e,r){var o=[];h=!(!h||!f);var i=function(m){return m.visible&&!(!e&&m.directTouch)&&P(m.options.enableMouseTracking,!0)},c={chartX:r?r.chartX:void 0,chartY:r?r.chartY:void 0,shared:e};p(this,"beforeGetHoverData",c);var a=b&&!b.stickyTracking?[b]:l.filter(function(m){return m.stickyTracking&&(c.filter||i)(m)}),s=h||!r?f:this.findNearestKDPoint(a,e,r);return b=s&&s.series,s&&(e&&!b.noSharedTooltip?(a=l.filter(function(m){return c.filter?c.filter(m):i(m)&&!m.noSharedTooltip}),a.forEach(function(m){var A=u(m.points,function(O){return O.x===s.x&&!O.isNull});v(A)&&(m.boosted&&m.boost&&(A=m.boost.getPoint(A)),o.push(A))})):o.push(s)),p(this,"afterGetHoverData",c={hoverPoint:s}),{hoverPoint:c.hoverPoint,hoverSeries:b,hoverPoints:o}},M.prototype.getPointFromEvent=function(f){f=f.target;for(var b;f&&!b;)b=f.point,f=f.parentNode;return b},M.prototype.onTrackerMouseOut=function(f){f=f.relatedTarget||f.toElement;var b=this.chart.hoverSeries;this.isDirectTouch=!1,!b||!f||b.stickyTracking||this.inClass(f,"highcharts-tooltip")||this.inClass(f,"highcharts-series-"+b.index)&&this.inClass(f,"highcharts-tracker")||b.onMouseOut()},M.prototype.inClass=function(f,b){for(var l;f;){if(l=D(f,"class")){if(l.indexOf(b)!==-1)return!0;if(l.indexOf("highcharts-container")!==-1)return!1}f=f.parentElement}},M.prototype.init=function(f,b){this.options=b,this.chart=f,this.runChartClick=!(!b.chart.events||!b.chart.events.click),this.pinchDown=[],this.lastValidTouch={},U&&(f.tooltip=new U(f,b.tooltip)),this.setDOMEvents()},M.prototype.normalize=function(f,b){var l=f.touches,h=l?l.length?l.item(0):P(l.changedTouches,f.changedTouches)[0]:f;return b||(b=this.getChartPosition()),l=h.pageX-b.left,h=h.pageY-b.top,l/=b.scaleX,h/=b.scaleY,T(f,{chartX:Math.round(l),chartY:Math.round(h)})},M.prototype.onContainerClick=function(f){var b=this.chart,l=b.hoverPoint;f=this.normalize(f);var h=b.plotLeft,e=b.plotTop;b.cancelClick||(l&&this.inClass(f.target,"highcharts-tracker")?(p(l.series,"click",T(f,{point:l})),b.hoverPoint&&l.firePointEvent("click",f)):(T(f,this.getCoordinates(f)),b.isInsidePlot(f.chartX-h,f.chartY-e,{visiblePlotOnly:!0})&&p(b,"click",f)))},M.prototype.onContainerMouseDown=function(f){var b=(1&(f.buttons||f.button))==1;f=this.normalize(f),R.isFirefox&&f.button!==0&&this.onContainerMouseMove(f),(f.button===void 0||b)&&(this.zoomOption(f),b&&f.preventDefault&&f.preventDefault(),this.dragStart(f))},M.prototype.onContainerMouseLeave=function(f){var b=q[P(M.hoverChartIndex,-1)],l=this.chart.tooltip;f=this.normalize(f),b&&(f.relatedTarget||f.toElement)&&(b.pointer.reset(),b.pointer.chartPosition=void 0),l&&!l.isHidden&&this.reset()},M.prototype.onContainerMouseEnter=function(f){delete this.chartPosition},M.prototype.onContainerMouseMove=function(f){var b=this.chart,l=b.tooltip;f=this.normalize(f),this.setHoverChartIndex(),f.preventDefault||(f.returnValue=!1),(b.mouseIsDown==="mousedown"||this.touchSelect(f))&&this.drag(f),b.openMenu||!this.inClass(f.target,"highcharts-tracker")&&!b.isInsidePlot(f.chartX-b.plotLeft,f.chartY-b.plotTop,{visiblePlotOnly:!0})||l&&l.shouldStickOnContact(f)||(this.inClass(f.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(f))},M.prototype.onDocumentTouchEnd=function(f){var b=q[P(M.hoverChartIndex,-1)];b&&b.pointer.drop(f)},M.prototype.onContainerTouchMove=function(f){this.touchSelect(f)?this.onContainerMouseMove(f):this.touch(f)},M.prototype.onContainerTouchStart=function(f){this.touchSelect(f)?this.onContainerMouseDown(f):(this.zoomOption(f),this.touch(f,!0))},M.prototype.onDocumentMouseMove=function(f){var b=this.chart,l=b.tooltip,h=this.chartPosition;f=this.normalize(f,h),!h||b.isInsidePlot(f.chartX-b.plotLeft,f.chartY-b.plotTop,{visiblePlotOnly:!0})||l&&l.shouldStickOnContact(f)||this.inClass(f.target,"highcharts-tracker")||this.reset()},M.prototype.onDocumentMouseUp=function(f){var b=q[P(M.hoverChartIndex,-1)];b&&b.pointer.drop(f)},M.prototype.pinch=function(f){var b=this,l=b.chart,h=b.pinchDown,e=f.touches||[],r=e.length,o=b.lastValidTouch,i=b.hasZoom,c={},a=r===1&&(b.inClass(f.target,"highcharts-tracker")&&l.runTrackerClick||b.runChartClick),s={},m=b.chart.tooltip;m=r===1&&P(m&&m.options.followTouchMove,!0);var A=b.selectionMarker;1<r?b.initiated=!0:m&&(b.initiated=!1),i&&b.initiated&&!a&&f.cancelable!==!1&&f.preventDefault(),[].map.call(e,function(O){return b.normalize(O)}),f.type==="touchstart"?([].forEach.call(e,function(O,d){h[d]={chartX:O.chartX,chartY:O.chartY}}),o.x=[h[0].chartX,h[1]&&h[1].chartX],o.y=[h[0].chartY,h[1]&&h[1].chartY],l.axes.forEach(function(O){if(O.zoomEnabled){var d=l.bounds[O.horiz?"h":"v"],w=O.minPixelPadding,k=O.toPixels(Math.min(P(O.options.min,O.dataMin),O.dataMin)),z=O.toPixels(Math.max(P(O.options.max,O.dataMax),O.dataMax)),F=Math.max(k,z);d.min=Math.min(O.pos,Math.min(k,z)-w),d.max=Math.max(O.pos+O.len,F+w)}}),b.res=!0):m?this.runPointActions(b.normalize(f)):h.length&&(p(l,"touchpan",{originalEvent:f},function(){A||(b.selectionMarker=A=T({destroy:$,touch:!0},l.plotBox)),b.pinchTranslate(h,e,c,A,s,o),b.hasPinched=i,b.scaleGroups(c,s)}),b.res&&(b.res=!1,this.reset(!1,0)))},M.prototype.pinchTranslate=function(f,b,l,h,e,r){this.zoomHor&&this.pinchTranslateDirection(!0,f,b,l,h,e,r),this.zoomVert&&this.pinchTranslateDirection(!1,f,b,l,h,e,r)},M.prototype.pinchTranslateDirection=function(f,b,l,h,e,r,o,i){var c=this.chart,a=f?"x":"y",s=f?"X":"Y",m="chart"+s,A=f?"width":"height",O=c["plot"+(f?"Left":"Top")],d=c.inverted,w=c.bounds[f?"h":"v"],k=b.length===1,z=b[0][m],F=!k&&b[1][m];b=function(){typeof X=="number"&&20<Math.abs(z-F)&&(_=i||Math.abs(V-X)/Math.abs(z-F)),I=(O-V)/_+z,j=c["plot"+(f?"Width":"Height")]/_};var j,I,_=i||1,V=l[0][m],X=!k&&l[1][m];if(b(),(l=I)<w.min){l=w.min;var H=!0}else l+j>w.max&&(l=w.max-j,H=!0);H?(V-=.8*(V-o[a][0]),typeof X=="number"&&(X-=.8*(X-o[a][1])),b()):o[a]=[V,X],d||(r[a]=I-O,r[A]=j),r=d?1/_:_,e[A]=j,e[a]=l,h[d?f?"scaleY":"scaleX":"scale"+s]=_,h["translate"+s]=r*O+(V-r*z)},M.prototype.reset=function(f,b){var l=this.chart,h=l.hoverSeries,e=l.hoverPoint,r=l.hoverPoints,o=l.tooltip,i=o&&o.shared?r:e;f&&i&&L(i).forEach(function(c){c.series.isCartesian&&c.plotX===void 0&&(f=!1)}),f?o&&i&&L(i).length&&(o.refresh(i),o.shared&&r?r.forEach(function(c){c.setState(c.state,!0),c.series.isCartesian&&(c.series.xAxis.crosshair&&c.series.xAxis.drawCrosshair(null,c),c.series.yAxis.crosshair&&c.series.yAxis.drawCrosshair(null,c))}):e&&(e.setState(e.state,!0),l.axes.forEach(function(c){c.crosshair&&e.series[c.coll]===c&&c.drawCrosshair(null,e)}))):(e&&e.onMouseOut(),r&&r.forEach(function(c){c.setState()}),h&&h.onMouseOut(),o&&o.hide(b),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),l.axes.forEach(function(c){c.hideCrosshair()}),this.hoverX=l.hoverPoints=l.hoverPoint=null)},M.prototype.runPointActions=function(f,b,l){var h=this.chart,e=h.tooltip&&h.tooltip.options.enabled?h.tooltip:void 0,r=!!e&&e.shared,o=b||h.hoverPoint,i=o&&o.series||h.hoverSeries;b=this.getHoverData(o,i,h.series,(!f||f.type!=="touchmove")&&(!!b||i&&i.directTouch&&this.isDirectTouch),r,f),o=b.hoverPoint,i=b.hoverSeries;var c=b.hoverPoints;b=i&&i.tooltipOptions.followPointer&&!i.tooltipOptions.split;var a=r&&i&&!i.noSharedTooltip;if(o&&(l||o!==h.hoverPoint||e&&e.isHidden)){if((h.hoverPoints||[]).forEach(function(s){c.indexOf(s)===-1&&s.setState()}),h.hoverSeries!==i&&i.onMouseOver(),this.applyInactiveState(c),(c||[]).forEach(function(s){s.setState("hover")}),h.hoverPoint&&h.hoverPoint.firePointEvent("mouseOut"),!o.series)return;h.hoverPoints=c,h.hoverPoint=o,o.firePointEvent("mouseOver",void 0,function(){e&&o&&e.refresh(a?c:o,f)})}else b&&e&&!e.isHidden&&(l=e.getAnchor([{}],f),h.isInsidePlot(l[0],l[1],{visiblePlotOnly:!0})&&e.updatePosition({plotX:l[0],plotY:l[1]}));this.unDocMouseMove||(this.unDocMouseMove=G(h.container.ownerDocument,"mousemove",function(s){var m=q[M.hoverChartIndex];m&&m.pointer.onDocumentMouseMove(s)}),this.eventsToUnbind.push(this.unDocMouseMove)),h.axes.forEach(function(s){var m,A=P((s.crosshair||{}).snap,!0);A&&((m=h.hoverPoint)&&m.series[s.coll]===s||(m=u(c,function(O){return O.series&&O.series[s.coll]===s}))),m||!A?s.drawCrosshair(f,m):s.hideCrosshair()})},M.prototype.scaleGroups=function(f,b){var l=this.chart;l.series.forEach(function(h){var e=f||h.getPlotBox();h.group&&(h.xAxis&&h.xAxis.zoomEnabled||l.mapView)&&(h.group.attr(e),h.markerGroup&&(h.markerGroup.attr(e),h.markerGroup.clip(b?l.clipRect:null)),h.dataLabelsGroup&&h.dataLabelsGroup.attr(e))}),l.clipRect.attr(b||l.clipBox)},M.prototype.setDOMEvents=function(){var f=this,b=this.chart.container,l=b.ownerDocument;b.onmousedown=this.onContainerMouseDown.bind(this),b.onmousemove=this.onContainerMouseMove.bind(this),b.onclick=this.onContainerClick.bind(this),this.eventsToUnbind.push(G(b,"mouseenter",this.onContainerMouseEnter.bind(this))),this.eventsToUnbind.push(G(b,"mouseleave",this.onContainerMouseLeave.bind(this))),M.unbindDocumentMouseUp||(M.unbindDocumentMouseUp=G(l,"mouseup",this.onDocumentMouseUp.bind(this)));for(var h=this.chart.renderTo.parentElement;h&&h.tagName!=="BODY";)this.eventsToUnbind.push(G(h,"scroll",function(){delete f.chartPosition})),h=h.parentElement;R.hasTouch&&(this.eventsToUnbind.push(G(b,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1})),this.eventsToUnbind.push(G(b,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),M.unbindDocumentTouchEnd||(M.unbindDocumentTouchEnd=G(l,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})))},M.prototype.setHoverChartIndex=function(){var f=this.chart,b=R.charts[P(M.hoverChartIndex,-1)];b&&b!==f&&b.pointer.onContainerMouseLeave({relatedTarget:f.container}),b&&b.mouseIsDown||(M.hoverChartIndex=f.index)},M.prototype.touch=function(f,b){var l=this.chart;if(this.setHoverChartIndex(),f.touches.length===1)if(f=this.normalize(f),l.isInsidePlot(f.chartX-l.plotLeft,f.chartY-l.plotTop,{visiblePlotOnly:!0})&&!l.openMenu){if(b&&this.runPointActions(f),f.type==="touchmove")var h=!!(b=this.pinchDown)[0]&&4<=Math.sqrt(Math.pow(b[0].chartX-f.chartX,2)+Math.pow(b[0].chartY-f.chartY,2));P(h,!0)&&this.pinch(f)}else b&&this.reset();else f.touches.length===2&&this.pinch(f)},M.prototype.touchSelect=function(f){return!(!this.chart.options.chart.zooming.singleTouch||!f.touches||f.touches.length!==1)},M.prototype.zoomOption=function(f){var b=this.chart,l=b.options.chart;b=b.inverted;var h=l.zooming.type||"";/touch/.test(f.type)&&(h=P(l.zooming.pinchType,h)),this.zoomX=f=/x/.test(h),this.zoomY=l=/y/.test(h),this.zoomHor=f&&!b||l&&b,this.zoomVert=l&&!b||f&&b,this.hasZoom=f||l},M}(),W}),N(rt,"Core/MSPointer.js",[rt["Core/Globals.js"],rt["Core/Pointer.js"],rt["Core/Utilities.js"]],function(W,R,U){function Y(){var C=[];return C.item=function(P){return this[P]},u(v,function(P){C.push({pageX:P.pageX,pageY:P.pageY,target:P.target})}),C}function Z(C,P,L,M){var f=$[R.hoverChartIndex||NaN];C.pointerType!=="touch"&&C.pointerType!==C.MSPOINTER_TYPE_TOUCH||!f||(f=f.pointer,M(C),f[P]({type:L,target:C.currentTarget,preventDefault:D,touches:Y()}))}var q=this&&this.__extends||function(){var C=function(P,L){return C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,f){M.__proto__=f}||function(M,f){for(var b in f)f.hasOwnProperty(b)&&(M[b]=f[b])},C(P,L)};return function(P,L){function M(){this.constructor=P}C(P,L),P.prototype=L===null?Object.create(L):(M.prototype=L.prototype,new M)}}(),$=W.charts,G=W.doc,D=W.noop,E=W.win,x=U.addEvent,T=U.css,u=U.objectEach,p=U.pick,g=U.removeEvent,v={},y=!!E.PointerEvent;return function(C){function P(){return C!==null&&C.apply(this,arguments)||this}return q(P,C),P.isRequired=function(){return!(W.hasTouch||!E.PointerEvent&&!E.MSPointerEvent)},P.prototype.batchMSEvents=function(L){L(this.chart.container,y?"pointerdown":"MSPointerDown",this.onContainerPointerDown),L(this.chart.container,y?"pointermove":"MSPointerMove",this.onContainerPointerMove),L(G,y?"pointerup":"MSPointerUp",this.onDocumentPointerUp)},P.prototype.destroy=function(){this.batchMSEvents(g),C.prototype.destroy.call(this)},P.prototype.init=function(L,M){C.prototype.init.call(this,L,M),this.hasZoom&&T(L.container,{"-ms-touch-action":"none","touch-action":"none"})},P.prototype.onContainerPointerDown=function(L){Z(L,"onContainerTouchStart","touchstart",function(M){v[M.pointerId]={pageX:M.pageX,pageY:M.pageY,target:M.currentTarget}})},P.prototype.onContainerPointerMove=function(L){Z(L,"onContainerTouchMove","touchmove",function(M){v[M.pointerId]={pageX:M.pageX,pageY:M.pageY},v[M.pointerId].target||(v[M.pointerId].target=M.currentTarget)})},P.prototype.onDocumentPointerUp=function(L){Z(L,"onDocumentTouchEnd","touchend",function(M){delete v[M.pointerId]})},P.prototype.setDOMEvents=function(){var L=this.chart.tooltip;C.prototype.setDOMEvents.call(this),(this.hasZoom||p(L&&L.options.followTouchMove,!0))&&this.batchMSEvents(x)},P}(R)}),N(rt,"Core/Legend/Legend.js",[rt["Core/Animation/AnimationUtilities.js"],rt["Core/FormatUtilities.js"],rt["Core/Globals.js"],rt["Core/Series/Point.js"],rt["Core/Renderer/RendererUtilities.js"],rt["Core/Utilities.js"]],function(W,R,U,Y,Z,q){var $=W.animObject,G=W.setAnimation,D=R.format,E=U.marginNames,x=Z.distribute,T=q.addEvent,u=q.createElement,p=q.css,g=q.defined,v=q.discardElement,y=q.find,C=q.fireEvent,P=q.isNumber,L=q.merge,M=q.pick,f=q.relativeLength,b=q.stableSort,l=q.syncTimeout;return W=function(){function h(e,r){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=e,this.init(e,r)}return h.prototype.init=function(e,r){this.chart=e,this.setOptions(r),r.enabled&&(this.render(),T(this.chart,"endResize",function(){this.legend.positionCheckboxes()}),this.proximate?this.unchartrender=T(this.chart,"render",function(){this.legend.proximatePositions(),this.legend.positionItems()}):this.unchartrender&&this.unchartrender())},h.prototype.setOptions=function(e){var r=M(e.padding,8);this.options=e,this.chart.styledMode||(this.itemStyle=e.itemStyle,this.itemHiddenStyle=L(this.itemStyle,e.itemHiddenStyle)),this.itemMarginTop=e.itemMarginTop||0,this.itemMarginBottom=e.itemMarginBottom||0,this.padding=r,this.initialItemY=r-5,this.symbolWidth=M(e.symbolWidth,16),this.pages=[],this.proximate=e.layout==="proximate"&&!this.chart.inverted,this.baseline=void 0},h.prototype.update=function(e,r){var o=this.chart;this.setOptions(L(!0,this.options,e)),this.destroy(),o.isDirtyLegend=o.isDirtyBox=!0,M(r,!0)&&o.redraw(),C(this,"afterUpdate")},h.prototype.colorizeItem=function(e,r){var o=e.legendItem||{},i=o.group,c=o.label,a=o.line;if(o=o.symbol,i&&i[r?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){var s=this.options;i=this.itemHiddenStyle.color,s=r?s.itemStyle.color:i;var m=r&&e.color||i,A=e.options&&e.options.marker,O={fill:m};c&&c.css({fill:s,color:s}),a&&a.attr({stroke:m}),o&&(A&&o.isMarker&&(O=e.pointAttribs(),r||(O.stroke=O.fill=i)),o.attr(O))}C(this,"afterColorizeItem",{item:e,visible:r})},h.prototype.positionItems=function(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()},h.prototype.positionItem=function(e){var r=this,o=e.legendItem||{},i=o.group,c=o.x;c=c===void 0?0:c,o=(o=o.y)===void 0?0:o;var a=this.options,s=a.symbolPadding,m=!a.rtl;a=e.checkbox,i&&i.element&&(s={translateX:m?c:this.legendWidth-c-2*s-4,translateY:o},i[g(i.translateY)?"animate":"attr"](s,void 0,function(){C(r,"afterPositionItem",{item:e})})),a&&(a.x=c,a.y=o)},h.prototype.destroyItem=function(e){for(var r=e.checkbox,o=e.legendItem||{},i=0,c=["group","label","line","symbol"];i<c.length;i++){var a=c[i];o[a]&&(o[a]=o[a].destroy())}r&&v(r),e.legendItem=void 0},h.prototype.destroy=function(){for(var e=0,r=this.getAllItems();e<r.length;e++)this.destroyItem(r[e]);for(e=0,r="clipRect up down pager nav box title group".split(" ");e<r.length;e++){var o=r[e];this[o]&&(this[o]=this[o].destroy())}this.display=null},h.prototype.positionCheckboxes=function(){var e=this.group&&this.group.alignAttr,r=this.clipHeight||this.legendHeight,o=this.titleHeight;if(e){var i=e.translateY;this.allItems.forEach(function(c){var a=c.checkbox;if(a){var s=i+o+a.y+(this.scrollOffset||0)+3;p(a,{left:e.translateX+c.checkboxOffset+a.x-20+"px",top:s+"px",display:this.proximate||s>i-6&&s<i+r-6?"":"none"})}},this)}},h.prototype.renderTitle=function(){var e=this.options,r=this.padding,o=e.title,i=0;o.text&&(this.title||(this.title=this.chart.renderer.label(o.text,r-3,r-4,void 0,void 0,void 0,e.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"}),i=(e=this.title.getBBox()).height,this.offsetWidth=e.width,this.contentGroup.attr({translateY:i})),this.titleHeight=i},h.prototype.setText=function(e){var r=this.options;e.legendItem.label.attr({text:r.labelFormat?D(r.labelFormat,e,this.chart):r.labelFormatter.call(e)})},h.prototype.renderItem=function(e){var r=e.legendItem=e.legendItem||{},o=this.chart,i=o.renderer,c=this.options,a=this.symbolWidth,s=c.symbolPadding||0,m=this.itemStyle,A=this.itemHiddenStyle,O=c.layout==="horizontal"?M(c.itemDistance,20):0,d=!c.rtl,w=!e.series,k=!w&&e.series.drawLegendSymbol?e.series:e,z=k.options,F=this.createCheckboxForItem&&z&&z.showCheckbox,j=c.useHTML,I=e.options.className,_=r.label;z=a+s+O+(F?20:0),_||(r.group=i.g("legend-item").addClass("highcharts-"+k.type+"-series highcharts-color-"+e.colorIndex+(I?" "+I:"")+(w?" highcharts-series-"+e.index:"")).attr({zIndex:1}).add(this.scrollGroup),r.label=_=i.text("",d?a+s:-s,this.baseline||0,j),o.styledMode||_.css(L(e.visible?m:A)),_.attr({align:d?"left":"right",zIndex:2}).add(r.group),this.baseline||(this.fontMetrics=i.fontMetrics(o.styledMode?12:m.fontSize,_),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,_.attr("y",this.baseline),this.symbolHeight=c.symbolHeight||this.fontMetrics.f,c.squareSymbol&&(this.symbolWidth=M(c.symbolWidth,Math.max(this.symbolHeight,16)),z=this.symbolWidth+s+O+(F?20:0),d&&_.attr("x",this.symbolWidth+s))),k.drawLegendSymbol(this,e),this.setItemEvents&&this.setItemEvents(e,_,j)),F&&!e.checkbox&&this.createCheckboxForItem&&this.createCheckboxForItem(e),this.colorizeItem(e,e.visible),!o.styledMode&&m.width||_.css({width:(c.itemWidth||this.widthOption||o.spacingBox.width)-z+"px"}),this.setText(e),o=_.getBBox(),i=this.fontMetrics&&this.fontMetrics.h||0,e.itemWidth=e.checkboxOffset=c.itemWidth||r.labelWidth||o.width+z,this.maxItemWidth=Math.max(this.maxItemWidth,e.itemWidth),this.totalItemWidth+=e.itemWidth,this.itemHeight=e.itemHeight=Math.round(r.labelHeight||(o.height>1.5*i?o.height:i))},h.prototype.layoutItem=function(e){var r=this.options,o=this.padding,i=r.layout==="horizontal",c=e.itemHeight,a=this.itemMarginBottom,s=this.itemMarginTop,m=i?M(r.itemDistance,20):0,A=this.maxLegendWidth;r=r.alignColumns&&this.totalItemWidth>A?this.maxItemWidth:e.itemWidth;var O=e.legendItem||{};i&&this.itemX-o+r>A&&(this.itemX=o,this.lastLineHeight&&(this.itemY+=s+this.lastLineHeight+a),this.lastLineHeight=0),this.lastItemY=s+this.itemY+a,this.lastLineHeight=Math.max(c,this.lastLineHeight),O.x=this.itemX,O.y=this.itemY,i?this.itemX+=r:(this.itemY+=s+c+a,this.lastLineHeight=c),this.offsetWidth=this.widthOption||Math.max((i?this.itemX-o-(e.checkbox?0:m):r)+o,this.offsetWidth)},h.prototype.getAllItems=function(){var e=[];return this.chart.series.forEach(function(r){var o=r&&r.options;r&&M(o.showInLegend,!g(o.linkedTo)&&void 0,!0)&&(e=e.concat((r.legendItem||{}).labels||(o.legendType==="point"?r.data:r)))}),C(this,"afterGetAllItems",{allItems:e}),e},h.prototype.getAlignment=function(){var e=this.options;return this.proximate?e.align.charAt(0)+"tv":e.floating?"":e.align.charAt(0)+e.verticalAlign.charAt(0)+e.layout.charAt(0)},h.prototype.adjustMargins=function(e,r){var o=this.chart,i=this.options,c=this.getAlignment();c&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(a,s){a.test(c)&&!g(e[s])&&(o[E[s]]=Math.max(o[E[s]],o.legend[(s+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][s]*i[s%2?"x":"y"]+M(i.margin,12)+r[s]+(o.titleOffset[s]||0)))})},h.prototype.proximatePositions=function(){var e=this.chart,r=[],o=this.options.align==="left";this.allItems.forEach(function(m){var A,O=o;if(m.yAxis){m.xAxis.options.reversed&&(O=!O),m.points&&(A=y(O?m.points:m.points.slice(0).reverse(),function(w){return P(w.plotY)})),O=this.itemMarginTop+m.legendItem.label.getBBox().height+this.itemMarginBottom;var d=m.yAxis.top-e.plotTop;m.visible?(A=A?A.plotY:m.yAxis.height,A+=d-.3*O):A=d+m.yAxis.height,r.push({target:A,size:O,item:m})}},this);for(var i,c=0,a=x(r,e.plotHeight);c<a.length;c++){var s=a[c];i=s.item.legendItem||{},P(s.pos)&&(i.y=e.plotTop-e.spacing[0]+s.pos)}},h.prototype.render=function(){var e=this.chart,r=e.renderer,o=this.options,i=this.padding,c=this.getAllItems(),a=this.group,s=this.box;this.itemX=i,this.itemY=this.initialItemY,this.lastItemY=this.offsetWidth=0,this.widthOption=f(o.width,e.spacingBox.width-i);var m=e.spacingBox.width-2*i-o.x;-1<["rm","lm"].indexOf(this.getAlignment().substring(0,2))&&(m/=2),this.maxLegendWidth=this.widthOption||m,a||(this.group=a=r.g("legend").addClass(o.className||"").attr({zIndex:7}).add(),this.contentGroup=r.g().attr({zIndex:1}).add(a),this.scrollGroup=r.g().add(this.contentGroup)),this.renderTitle(),b(c,function(O,d){return(O.options&&O.options.legendIndex||0)-(d.options&&d.options.legendIndex||0)}),o.reversed&&c.reverse(),this.allItems=c,this.display=m=!!c.length,this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0,c.forEach(this.renderItem,this),c.forEach(this.layoutItem,this),c=(this.widthOption||this.offsetWidth)+i;var A=this.lastItemY+this.lastLineHeight+this.titleHeight;A=this.handleOverflow(A),A+=i,s||(this.box=s=r.rect().addClass("highcharts-legend-box").attr({r:o.borderRadius}).add(a)),e.styledMode||s.attr({stroke:o.borderColor,"stroke-width":o.borderWidth||0,fill:o.backgroundColor||"none"}).shadow(o.shadow),0<c&&0<A&&s[s.placed?"animate":"attr"](s.crisp.call({},{x:0,y:0,width:c,height:A},s.strokeWidth())),a[m?"show":"hide"](),e.styledMode&&a.getStyle("display")==="none"&&(c=A=0),this.legendWidth=c,this.legendHeight=A,m&&this.align(),this.proximate||this.positionItems(),C(this,"afterRender")},h.prototype.align=function(e){e===void 0&&(e=this.chart.spacingBox);var r=this.chart,o=this.options,i=e.y;/(lth|ct|rth)/.test(this.getAlignment())&&0<r.titleOffset[0]?i+=r.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&0<r.titleOffset[2]&&(i-=r.titleOffset[2]),i!==e.y&&(e=L(e,{y:i})),r.hasRendered||(this.group.placed=!1),this.group.align(L(o,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":o.verticalAlign}),!0,e)},h.prototype.handleOverflow=function(e){var r,o,i,c=this,a=this.chart,s=a.renderer,m=this.options,A=m.y,O=m.verticalAlign==="top",d=this.padding,w=m.maxHeight,k=m.navigation,z=M(k.animation,!0),F=k.arrowSize||12,j=this.pages,I=this.allItems,_=function(Q){typeof Q=="number"?H.attr({height:Q}):H&&(c.clipRect=H.destroy(),c.contentGroup.clip()),c.contentGroup.div&&(c.contentGroup.div.style.clip=Q?"rect("+d+"px,9999px,"+(d+Q)+"px,0)":"auto")},V=function(Q){return c[Q]=s.circle(0,0,1.3*F).translate(F/2,F/2).add(X),a.styledMode||c[Q].attr("fill","rgba(0,0,0,0.0001)"),c[Q]};A=a.spacingBox.height+(O?-A:A)-d;var X=this.nav,H=this.clipRect;return m.layout!=="horizontal"||m.verticalAlign==="middle"||m.floating||(A/=2),w&&(A=Math.min(A,w)),j.length=0,e&&0<A&&e>A&&k.enabled!==!1?(this.clipHeight=r=Math.max(A-20-this.titleHeight-d,0),this.currentPage=M(this.currentPage,1),this.fullHeight=e,I.forEach(function(Q,et){Q=(i=Q.legendItem||{}).y||0;var tt=Math.round(i.label.getBBox().height),st=j.length;(!st||Q-j[st-1]>r&&(o||Q)!==j[st-1])&&(j.push(o||Q),st++),i.pageIx=st-1,o&&((I[et-1].legendItem||{}).pageIx=st-1),et===I.length-1&&Q+tt-j[st-1]>r&&tt<=r&&(j.push(Q),i.pageIx=st),Q!==o&&(o=Q)}),H||(H=c.clipRect=s.clipRect(0,d,9999,0),c.contentGroup.clip(H)),_(r),X||(this.nav=X=s.g().attr({zIndex:1}).add(this.group),this.up=s.symbol("triangle",0,0,F,F).add(X),V("upTracker").on("click",function(){c.scroll(-1,z)}),this.pager=s.text("",15,10).addClass("highcharts-legend-navigation"),!a.styledMode&&k.style&&this.pager.css(k.style),this.pager.add(X),this.down=s.symbol("triangle-down",0,0,F,F).add(X),V("downTracker").on("click",function(){c.scroll(1,z)})),c.scroll(0),e=A):X&&(_(),this.nav=X.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),e},h.prototype.scroll=function(e,r){var o=this,i=this.chart,c=this.pages,a=c.length,s=this.clipHeight,m=this.options.navigation,A=this.pager,O=this.padding,d=this.currentPage+e;d>a&&(d=a),0<d&&(r!==void 0&&G(r,i),this.nav.attr({translateX:O,translateY:s+this.padding+7+this.titleHeight,visibility:"inherit"}),[this.up,this.upTracker].forEach(function(w){w.attr({class:d===1?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),A.attr({text:d+"/"+a}),[this.down,this.downTracker].forEach(function(w){w.attr({x:18+this.pager.getBBox().width,class:d===a?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},this),i.styledMode||(this.up.attr({fill:d===1?m.inactiveColor:m.activeColor}),this.upTracker.css({cursor:d===1?"default":"pointer"}),this.down.attr({fill:d===a?m.inactiveColor:m.activeColor}),this.downTracker.css({cursor:d===a?"default":"pointer"})),this.scrollOffset=-c[d-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=d,this.positionCheckboxes(),e=$(M(r,i.renderer.globalAnimation,!0)),l(function(){C(o,"afterScroll",{currentPage:d})},e.duration))},h.prototype.setItemEvents=function(e,r,o){var i=this,c=e.legendItem||{},a=i.chart.renderer.boxWrapper,s=e instanceof Y,m="highcharts-legend-"+(s?"point":"series")+"-active",A=i.chart.styledMode,O=function(w){i.allItems.forEach(function(k){e!==k&&[k].concat(k.linkedSeries||[]).forEach(function(z){z.setState(w,!s)})})},d=0;for(o=o?[r,c.symbol]:[c.group];d<o.length;d++)(c=o[d])&&c.on("mouseover",function(){e.visible&&O("inactive"),e.setState("hover"),e.visible&&a.addClass(m),A||r.css(i.options.itemHoverStyle)}).on("mouseout",function(){i.chart.styledMode||r.css(L(e.visible?i.itemStyle:i.itemHiddenStyle)),O(""),a.removeClass(m),e.setState()}).on("click",function(w){var k=function(){e.setVisible&&e.setVisible(),O(e.visible?"inactive":"")};a.removeClass(m),w={browserEvent:w},e.firePointEvent?e.firePointEvent("legendItemClick",w,k):C(e,"legendItemClick",w,k)})},h.prototype.createCheckboxForItem=function(e){e.checkbox=u("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:e.selected,defaultChecked:e.selected},this.options.itemCheckboxStyle,this.chart.container),T(e.checkbox,"click",function(r){C(e.series||e,"checkboxClick",{checked:r.target.checked,item:e},function(){e.select()})})},h}(),W}),N(rt,"Core/Series/SeriesRegistry.js",[rt["Core/Globals.js"],rt["Core/Defaults.js"],rt["Core/Series/Point.js"],rt["Core/Utilities.js"]],function(W,R,U,Y){var Z,q=R.defaultOptions,$=Y.extendClass,G=Y.merge;return function(D){function E(x,T){var u=q.plotOptions||{},p=T.defaultOptions,g=T.prototype;g.type=x,g.pointClass||(g.pointClass=U),p&&(u[x]=p),D.seriesTypes[x]=T}D.seriesTypes=W.seriesTypes,D.registerSeriesType=E,D.seriesType=function(x,T,u,p,g){var v=q.plotOptions||{};return T=T||"",v[x]=G(v[T],u),E(x,$(D.seriesTypes[T]||function(){},p)),D.seriesTypes[x].prototype.type=x,g&&(D.seriesTypes[x].prototype.pointClass=$(U,g)),D.seriesTypes[x]}}(Z||(Z={})),Z}),N(rt,"Core/Chart/Chart.js",[rt["Core/Animation/AnimationUtilities.js"],rt["Core/Axis/Axis.js"],rt["Core/Defaults.js"],rt["Core/FormatUtilities.js"],rt["Core/Foundation.js"],rt["Core/Globals.js"],rt["Core/Legend/Legend.js"],rt["Core/MSPointer.js"],rt["Core/Pointer.js"],rt["Core/Renderer/RendererRegistry.js"],rt["Core/Series/SeriesRegistry.js"],rt["Core/Renderer/SVG/SVGRenderer.js"],rt["Core/Time.js"],rt["Core/Utilities.js"],rt["Core/Renderer/HTML/AST.js"]],function(W,R,U,Y,Z,q,$,G,D,E,x,T,u,p,g){var v=W.animate,y=W.animObject,C=W.setAnimation,P=U.defaultOptions,L=U.defaultTime,M=Y.numberFormat,f=Z.registerEventOptions,b=q.charts,l=q.doc,h=q.marginNames,e=q.svg,r=q.win,o=x.seriesTypes,i=p.addEvent,c=p.attr,a=p.cleanRecursively,s=p.createElement,m=p.css,A=p.defined,O=p.discardElement,d=p.erase,w=p.error,k=p.extend,z=p.find,F=p.fireEvent,j=p.getStyle,I=p.isArray,_=p.isNumber,V=p.isObject,X=p.isString,H=p.merge,Q=p.objectEach,et=p.pick,tt=p.pInt,st=p.relativeLength,ct=p.removeEvent,gt=p.splat,mt=p.syncTimeout,bt=p.uniqueKey;return W=function(){function yt(dt,ot,ht){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,ht)}return yt.chart=function(dt,ot,ht){return new yt(dt,ot,ht)},yt.prototype.getArgs=function(dt,ot,ht){X(dt)||dt.nodeName?(this.renderTo=dt,this.init(ot,ht)):this.init(dt,ot)},yt.prototype.init=function(dt,ot){var ht=dt.plotOptions||{};F(this,"init",{args:arguments},function(){var ut=H(P,dt),vt=ut.chart;Q(ut.plotOptions,function(xt,Ct){V(xt)&&(xt.tooltip=ht[Ct]&&H(ht[Ct].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 wt=vt.zooming=vt.zooming||{};dt.chart&&!dt.chart.zooming&&(wt.resetButton=vt.resetZoomButton),wt.key=et(wt.key,vt.zoomKey),wt.pinchType=et(wt.pinchType,vt.pinchType),wt.singleTouch=et(wt.singleTouch,vt.zoomBySingleTouch),wt.type=et(wt.type,vt.zoomType),this.options=ut,this.axes=[],this.series=[],this.time=dt.time&&Object.keys(dt.time).length?new u(dt.time):q.time,this.numberFormatter=vt.numberFormatter||M,this.styledMode=vt.styledMode,this.hasCartesianSeries=vt.showAxes,this.index=b.length,b.push(this),q.chartCount++,f(this,vt),this.xAxis=[],this.yAxis=[],this.pointCount=this.colorCounter=this.symbolCounter=0,F(this,"afterInit"),this.firstRender()})},yt.prototype.initSeries=function(dt){var ot=this.options.chart;ot=dt.type||ot.type||ot.defaultSeriesType;var ht=o[ot];return ht||w(17,!0,this,{missingModuleFor:ot}),typeof(ot=new ht).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 ht=ot.length;dt<ht;++dt)ot[dt]&&(ot[dt].index=dt,ot[dt].name=ot[dt].getName())},yt.prototype.isInsidePlot=function(dt,ot,ht){ht===void 0&&(ht={});var ut=this.inverted,vt=this.plotBox,wt=this.plotLeft,xt=this.plotTop,Ct=this.scrollablePlotBox,St=0,Mt=0;ht.visiblePlotOnly&&this.scrollingContainer&&(St=(Mt=this.scrollingContainer).scrollLeft,Mt=Mt.scrollTop);var Tt=ht.series;if(vt=ht.visiblePlotOnly&&Ct||vt,dt={x:Ct=ht.inverted?ot:dt,y:ot=ht.inverted?dt:ot,isInsidePlot:!0,options:ht},!ht.ignoreX){var Pt=Tt&&(ut&&!this.polar?Tt.yAxis:Tt.xAxis)||{pos:wt,len:1/0};(Ct=ht.paneCoordinates?Pt.pos+Ct:wt+Ct)>=Math.max(St+wt,Pt.pos)&&Ct<=Math.min(St+wt+vt.width,Pt.pos+Pt.len)||(dt.isInsidePlot=!1)}return!ht.ignoreY&&dt.isInsidePlot&&(ut=ht.axis&&!ht.axis.isXAxis&&ht.axis||Tt&&(ut?Tt.xAxis:Tt.yAxis)||{pos:xt,len:1/0},(ht=ht.paneCoordinates?ut.pos+ot:xt+ot)>=Math.max(Mt+xt,ut.pos)&&ht<=Math.min(Mt+xt+vt.height,ut.pos+ut.len)||(dt.isInsidePlot=!1)),F(this,"afterIsInsidePlot",dt),dt.isInsidePlot},yt.prototype.redraw=function(dt){F(this,"beforeRedraw");var ot=this.hasCartesianSeries?this.axes:this.colorAxis||[],ht=this.series,ut=this.pointer,vt=this.legend,wt=this.userOptions.legend,xt=this.renderer,Ct=xt.isHidden(),St=[],Mt=this.isDirtyBox,Tt=this.isDirtyLegend;for(this.setResponsive&&this.setResponsive(!1),C(!!this.hasRendered&&dt,this),Ct&&this.temporaryDisplay(),this.layOutTitles(),dt=ht.length;dt--;){var Pt=ht[dt];if(Pt.options.stacking||Pt.options.centerInCategory){var kt=!0;if(Pt.isDirty){var Ot=!0;break}}}if(Ot)for(dt=ht.length;dt--;)(Pt=ht[dt]).options.stacking&&(Pt.isDirty=!0);ht.forEach(function(Dt){Dt.isDirty&&(Dt.options.legendType==="point"?(typeof Dt.updateTotals=="function"&&Dt.updateTotals(),Tt=!0):wt&&(wt.labelFormatter||wt.labelFormat)&&(Tt=!0)),Dt.isDirtyData&&F(Dt,"updatedData")}),Tt&&vt&&vt.options.enabled&&(vt.render(),this.isDirtyLegend=!1),kt&&this.getStacks(),ot.forEach(function(Dt){Dt.updateNames(),Dt.setScale()}),this.getMargins(),ot.forEach(function(Dt){Dt.isDirty&&(Mt=!0)}),ot.forEach(function(Dt){var Et=Dt.min+","+Dt.max;Dt.extKey!==Et&&(Dt.extKey=Et,St.push(function(){F(Dt,"afterSetExtremes",k(Dt.eventArgs,Dt.getExtremes())),delete Dt.eventArgs})),(Mt||kt)&&Dt.redraw()}),Mt&&this.drawChartBox(),F(this,"predraw"),ht.forEach(function(Dt){(Mt||Dt.isDirty)&&Dt.visible&&Dt.redraw(),Dt.isDirtyData=!1}),ut&&ut.reset(!0),xt.draw(),F(this,"redraw"),F(this,"render"),Ct&&this.temporaryDisplay(!0),St.forEach(function(Dt){Dt.call()})},yt.prototype.get=function(dt){function ot(wt){return wt.id===dt||wt.options&&wt.options.id===dt}for(var ht=this.series,ut=z(this.axes,ot)||z(this.series,ot),vt=0;!ut&&vt<ht.length;vt++)ut=z(ht[vt].points||[],ot);return ut},yt.prototype.getAxes=function(){var dt=this,ot=this.options,ht=ot.xAxis=gt(ot.xAxis||{});ot=ot.yAxis=gt(ot.yAxis||{}),F(this,"getAxes"),ht.forEach(function(ut,vt){ut.index=vt,ut.isX=!0}),ot.forEach(function(ut,vt){ut.index=vt}),ht.concat(ot).forEach(function(ut){new R(dt,ut)}),F(this,"afterGetAxes")},yt.prototype.getSelectedPoints=function(){return this.series.reduce(function(dt,ot){return ot.getPointsCollection().forEach(function(ht){et(ht.selectedStaging,ht.selected)&&dt.push(ht)}),dt},[])},yt.prototype.getSelectedSeries=function(){return this.series.filter(function(dt){return dt.selected})},yt.prototype.setTitle=function(dt,ot,ht){this.applyDescription("title",dt),this.applyDescription("subtitle",ot),this.applyDescription("caption",void 0),this.layOutTitles(ht)},yt.prototype.applyDescription=function(dt,ot){var ht=this,ut=dt==="title"?{color:"#333333",fontSize:this.options.isStock?"16px":"18px"}:{color:"#666666"};ut=this.options[dt]=H(!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(wt){ht[{title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"}[dt]](wt)},this.styledMode||vt.css(ut.style),this[dt]=vt)},yt.prototype.layOutTitles=function(dt){var ot=[0,0,0],ht=this.renderer,ut=this.spacingBox;["title","subtitle","caption"].forEach(function(wt){var xt,Ct=this[wt],St=this.options[wt],Mt=St.verticalAlign||"top";if(wt=wt==="title"?Mt==="top"?-3:0:Mt==="top"?ot[0]+2:0,Ct){this.styledMode||(xt=St.style&&St.style.fontSize),xt=ht.fontMetrics(xt,Ct).b,Ct.css({width:(St.width||ut.width+(St.widthAdjust||0))+"px"});var Tt=Math.round(Ct.getBBox(St.useHTML).height);Ct.align(k({y:Mt==="bottom"?xt:wt+xt,height:Tt},St),!1,"spacingBox"),St.floating||(Mt==="top"?ot[0]=Math.ceil(ot[0]+Tt):Mt==="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,F(this,"afterLayOutTitles"),!this.isDirtyBox&&vt&&(this.isDirtyBox=this.isDirtyLegend=vt,this.hasRendered&&et(dt,!0)&&this.isDirtyBox&&this.redraw())},yt.prototype.getChartSize=function(){var dt=this.options.chart,ot=dt.width;dt=dt.height;var ht=this.renderTo;A(ot)||(this.containerWidth=j(ht,"width")),A(dt)||(this.containerHeight=j(ht,"height")),this.chartWidth=Math.max(0,ot||this.containerWidth||600),this.chartHeight=Math.max(0,st(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&&(m(ot,ot.hcOrigStyle),delete ot.hcOrigStyle),ot.hcOrigDetached&&(l.body.removeChild(ot),ot.hcOrigDetached=!1),ot=ot.parentNode;else for(;ot&&ot.style&&(l.body.contains(ot)||ot.parentNode||(ot.hcOrigDetached=!0,l.body.appendChild(ot)),(j(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),m(ot,dt),ot.offsetWidth||ot.style.setProperty("display","block","important")),(ot=ot.parentNode)!==l.body););},yt.prototype.setClassName=function(dt){this.container.className="highcharts-container "+(dt||"")},yt.prototype.getContainer=function(){var dt,ot=this.options,ht=ot.chart,ut=bt(),vt=this.renderTo;vt||(this.renderTo=vt=ht.renderTo),X(vt)&&(this.renderTo=vt=l.getElementById(vt)),vt||w(13,!0,this);var wt=tt(c(vt,"data-highcharts-chart"));_(wt)&&b[wt]&&b[wt].hasRendered&&b[wt].destroy(),c(vt,"data-highcharts-chart",this.index),vt.innerHTML=g.emptyHTML,ht.skipClone||vt.offsetWidth||this.temporaryDisplay(),this.getChartSize(),wt=this.chartWidth;var xt=this.chartHeight;if(m(vt,{overflow:"hidden"}),this.styledMode||(dt=k({position:"relative",overflow:"hidden",width:wt+"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"},ht.style||{})),this.container=ut=s("div",{id:ut},dt,vt),this._cursor=ut.style.cursor,this.renderer=new(ht.renderer||!e?E.getRendererType(ht.renderer):T)(ut,wt,xt,void 0,ht.forExport,ot.exporting&&ot.exporting.allowHTML,this.styledMode),C(void 0,this),this.setClassName(ht.className),this.styledMode)for(var Ct in ot.defs)this.renderer.definition(ot.defs[Ct]);else this.renderer.setStyle(ht.style);this.renderer.chartIndex=this.index,F(this,"afterGetContainer")},yt.prototype.getMargins=function(dt){var ot=this.spacing,ht=this.margin,ut=this.titleOffset;this.resetMargins(),ut[0]&&!A(ht[0])&&(this.plotTop=Math.max(this.plotTop,ut[0]+ot[0])),ut[2]&&!A(ht[2])&&(this.marginBottom=Math.max(this.marginBottom,ut[2]+ot[2])),this.legend&&this.legend.display&&this.legend.adjustMargins(ht,ot),F(this,"getMargins"),dt||this.getAxisMargins()},yt.prototype.getAxisMargins=function(){var dt=this,ot=dt.axisOffset=[0,0,0,0],ht=dt.colorAxis,ut=dt.margin,vt=function(wt){wt.forEach(function(xt){xt.visible&&xt.getOffset()})};dt.hasCartesianSeries?vt(dt.axes):ht&&ht.length&&vt(ht),h.forEach(function(wt,xt){A(ut[xt])||(dt[wt]+=ot[xt])}),dt.setChartSize()},yt.prototype.reflow=function(dt){var ot=this,ht=ot.options.chart,ut=ot.renderTo,vt=A(ht.width)&&A(ht.height),wt=ht.width||j(ut,"width");ht=ht.height||j(ut,"height"),ut=dt?dt.target:r,delete ot.pointer.chartPosition,vt||ot.isPrinting||!wt||!ht||ut!==r&&ut!==l||(wt===ot.containerWidth&&ht===ot.containerHeight||(p.clearTimeout(ot.reflowTimeout),ot.reflowTimeout=mt(function(){ot.container&&ot.setSize(void 0,void 0,!1)},dt?100:0)),ot.containerWidth=wt,ot.containerHeight=ht)},yt.prototype.setReflow=function(dt){var ot=this;dt===!1||this.unbindReflow?dt===!1&&this.unbindReflow&&(this.unbindReflow=this.unbindReflow()):(this.unbindReflow=i(r,"resize",function(ht){ot.options&&ot.reflow(ht)}),i(this,"destroy",this.unbindReflow))},yt.prototype.setSize=function(dt,ot,ht){var ut=this,vt=ut.renderer;ut.isResizing+=1,C(ht,ut),ht=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||(ht?v:m)(ut.container,{width:ut.chartWidth+"px",height:ut.chartHeight+"px"},ht),ut.setChartSize(!0),vt.setSize(ut.chartWidth,ut.chartHeight,ht),ut.axes.forEach(function(wt){wt.isDirty=!0,wt.setScale()}),ut.isDirtyLegend=!0,ut.isDirtyBox=!0,ut.layOutTitles(),ut.getMargins(),ut.redraw(ht),ut.oldChartHeight=null,F(ut,"resize"),mt(function(){ut&&F(ut,"endResize",null,function(){--ut.isResizing})},y(ht).duration)},yt.prototype.setChartSize=function(dt){var ot,ht,ut,vt,wt=this.inverted,xt=this.renderer,Ct=this.chartWidth,St=this.chartHeight,Mt=this.options.chart,Tt=this.spacing,Pt=this.clipOffset;this.plotLeft=ot=Math.round(this.plotLeft),this.plotTop=ht=Math.round(this.plotTop),this.plotWidth=ut=Math.max(0,Math.round(Ct-ot-this.marginRight)),this.plotHeight=vt=Math.max(0,Math.round(St-ht-this.marginBottom)),this.plotSizeX=wt?vt:ut,this.plotSizeY=wt?ut:vt,this.plotBorderWidth=Mt.plotBorderWidth||0,this.spacingBox=xt.spacingBox={x:Tt[3],y:Tt[0],width:Ct-Tt[3]-Tt[1],height:St-Tt[0]-Tt[2]},this.plotBox=xt.plotBox={x:ot,y:ht,width:ut,height:vt},wt=2*Math.floor(this.plotBorderWidth/2),Ct=Math.ceil(Math.max(wt,Pt[3])/2),St=Math.ceil(Math.max(wt,Pt[0])/2),this.clipBox={x:Ct,y:St,width:Math.floor(this.plotSizeX-Math.max(wt,Pt[1])/2-Ct),height:Math.max(0,Math.floor(this.plotSizeY-Math.max(wt,Pt[2])/2-St))},dt||(this.axes.forEach(function(kt){kt.setAxisSize(),kt.setAxisTranslation()}),xt.alignElements()),F(this,"afterSetChartSize",{skipAxes:dt})},yt.prototype.resetMargins=function(){F(this,"resetMargins");var dt=this,ot=dt.options.chart;["margin","spacing"].forEach(function(ht){var ut=ot[ht],vt=V(ut)?ut:[ut,ut,ut,ut];["Top","Right","Bottom","Left"].forEach(function(wt,xt){dt[ht][xt]=et(ot[ht+wt],vt[xt])})}),h.forEach(function(ht,ut){dt[ht]=et(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,ht=this.renderer,ut=this.chartWidth,vt=this.chartHeight,wt=this.styledMode,xt=this.plotBGImage,Ct=ot.backgroundColor,St=ot.plotBackgroundColor,Mt=ot.plotBackgroundImage,Tt=this.plotLeft,Pt=this.plotTop,kt=this.plotWidth,Ot=this.plotHeight,Dt=this.plotBox,Et=this.clipRect,It=this.clipBox,_t=this.chartBackground,Yt=this.plotBackground,Bt=this.plotBorder,Ft="animate";if(_t||(this.chartBackground=_t=ht.rect().addClass("highcharts-background").add(),Ft="attr"),wt)var Vt=dt=_t.strokeWidth();else dt=(Vt=ot.borderWidth||0)+(ot.shadow?8:0),Ct={fill:Ct||"none"},(Vt||_t["stroke-width"])&&(Ct.stroke=ot.borderColor,Ct["stroke-width"]=Vt),_t.attr(Ct).shadow(ot.shadow);_t[Ft]({x:dt/2,y:dt/2,width:ut-dt-Vt%2,height:vt-dt-Vt%2,r:ot.borderRadius}),Ft="animate",Yt||(Ft="attr",this.plotBackground=Yt=ht.rect().addClass("highcharts-plot-background").add()),Yt[Ft](Dt),wt||(Yt.attr({fill:St||"none"}).shadow(ot.plotShadow),Mt&&(xt?(Mt!==xt.attr("href")&&xt.attr("href",Mt),xt.animate(Dt)):this.plotBGImage=ht.image(Mt,Tt,Pt,kt,Ot).add())),Et?Et.animate({width:It.width,height:It.height}):this.clipRect=ht.clipRect(It),Ft="animate",Bt||(Ft="attr",this.plotBorder=Bt=ht.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add()),wt||Bt.attr({stroke:ot.plotBorderColor,"stroke-width":ot.plotBorderWidth||0,fill:"none"}),Bt[Ft](Bt.crisp({x:Tt,y:Pt,width:kt,height:Ot},-Bt.strokeWidth())),this.isDirtyBox=!1,F(this,"afterDrawChartBox")},yt.prototype.propFromSeries=function(){var dt,ot,ht,ut=this,vt=ut.options.chart,wt=ut.options.series;["inverted","angular","polar"].forEach(function(xt){for(ot=o[vt.type||vt.defaultSeriesType],ht=vt[xt]||ot&&ot.prototype[xt],dt=wt&&wt.length;!ht&&dt--;)(ot=o[wt[dt].type])&&ot.prototype[xt]&&(ht=!0);ut[xt]=ht})},yt.prototype.linkSeries=function(){var dt=this,ot=dt.series;ot.forEach(function(ht){ht.linkedSeries.length=0}),ot.forEach(function(ht){var ut=ht.options.linkedTo;X(ut)&&(ut=ut===":previous"?dt.series[ht.index-1]:dt.get(ut))&&ut.linkedParent!==ht&&(ut.linkedSeries.push(ht),ht.linkedParent=ut,ut.enabledDataSorting&&ht.setDataSortingOptions(),ht.visible=et(ht.options.visible,ut.options.visible,ht.visible))}),F(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(ht){var ut=k(ot.style,ht.style),vt=tt(ut.left)+dt.plotLeft,wt=tt(ut.top)+dt.plotTop+12;delete ut.left,delete ut.top,dt.renderer.text(ht.html,vt,wt).attr({zIndex:2}).css(ut).add()})},yt.prototype.render=function(){var dt=this.axes,ot=this.colorAxis,ht=this.renderer,ut=this.options,vt=function(Mt){Mt.forEach(function(Tt){Tt.visible&&Tt.render()})},wt=0;this.setTitle(),this.legend=new $(this,ut.legend),this.getStacks&&this.getStacks(),this.getMargins(!0),this.setChartSize(),ut=this.plotWidth,dt.some(function(Mt){if(Mt.horiz&&Mt.visible&&Mt.options.labels.enabled&&Mt.series.length)return wt=21,!0});var xt=this.plotHeight=Math.max(this.plotHeight-wt,0);dt.forEach(function(Mt){Mt.setScale()}),this.getAxisMargins();var Ct=1.1<ut/this.plotWidth,St=1.05<xt/this.plotHeight;(Ct||St)&&(dt.forEach(function(Mt){(Mt.horiz&&Ct||!Mt.horiz&&St)&&Mt.setTickInterval(!0)}),this.getMargins()),this.drawChartBox(),this.hasCartesianSeries?vt(dt):ot&&ot.length&&vt(ot),this.seriesGroup||(this.seriesGroup=ht.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,ht=H(!0,this.options.credits,dt);ht.enabled&&!this.credits&&(this.credits=this.renderer.text(ht.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){ht.href&&(r.location.href=ht.href)}).attr({align:ht.position.align,zIndex:8}),ot.styledMode||this.credits.css(ht.style),this.credits.add().align(ht.position),this.credits.update=function(ut){ot.credits=ot.credits.destroy(),ot.addCredits(ut)})},yt.prototype.destroy=function(){var dt,ot=this,ht=ot.axes,ut=ot.series,vt=ot.container,wt=vt&&vt.parentNode;for(F(ot,"destroy"),ot.renderer.forExport?d(b,ot):b[ot.index]=void 0,q.chartCount--,ot.renderTo.removeAttribute("data-highcharts-chart"),ct(ot),dt=ht.length;dt--;)ht[dt]=ht[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 Ct=ot[xt];Ct&&Ct.destroy&&(ot[xt]=Ct.destroy())}),vt&&(vt.innerHTML=g.emptyHTML,ct(vt),wt&&O(vt)),Q(ot,function(xt,Ct){delete ot[Ct]})},yt.prototype.firstRender=function(){var dt=this,ot=dt.options;dt.isReadyToRender&&!dt.isReadyToRender()||(dt.getContainer(),dt.resetMargins(),dt.setChartSize(),dt.propFromSeries(),dt.getAxes(),(I(ot.series)?ot.series:[]).forEach(function(ht){dt.initSeries(ht)}),dt.linkSeries(),dt.setSeriesData(),F(dt,"beforeRender"),D&&(G.isRequired()?dt.pointer=new G(dt,ot):dt.pointer=new D(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),F(this,"load"),F(this,"render"),A(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,"&lt;")}),dt.accessibility&&dt.accessibility.enabled===!1||w('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,ht){var ut,vt=this;return dt&&(ot=et(ot,!0),F(vt,"addSeries",{options:dt},function(){ut=vt.initSeries(dt),vt.isDirtyLegend=!0,vt.linkSeries(),ut.enabledDataSorting&&ut.setData(dt.data,!1),F(vt,"afterAddSeries",{series:ut}),ot&&vt.redraw(ht)})),ut},yt.prototype.addAxis=function(dt,ot,ht,ut){return this.createAxis(ot?"xAxis":"yAxis",{axis:dt,redraw:ht,animation:ut})},yt.prototype.addColorAxis=function(dt,ot,ht){return this.createAxis("colorAxis",{axis:dt,redraw:ot,animation:ht})},yt.prototype.createAxis=function(dt,ot){return dt=new R(this,H(ot.axis,{index:this[dt].length,isX:dt==="xAxis"})),et(ot.redraw,!0)&&this.redraw(ot.animation),dt},yt.prototype.showLoading=function(dt){var ot=this,ht=ot.options,ut=ht.loading,vt=function(){wt&&m(wt,{left:ot.plotLeft+"px",top:ot.plotTop+"px",width:ot.plotWidth+"px",height:ot.plotHeight+"px"})},wt=ot.loadingDiv,xt=ot.loadingSpan;wt||(ot.loadingDiv=wt=s("div",{className:"highcharts-loading highcharts-loading-hidden"},null,ot.container)),xt||(ot.loadingSpan=xt=s("span",{className:"highcharts-loading-inner"},null,wt),i(ot,"redraw",vt)),wt.className="highcharts-loading",g.setElementHTML(xt,et(dt,ht.lang.loading,"")),ot.styledMode||(m(wt,k(ut.style,{zIndex:10})),m(xt,ut.labelStyle),ot.loadingShown||(m(wt,{opacity:0,display:""}),v(wt,{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||v(ot,{opacity:0},{duration:dt.loading.hideDuration||100,complete:function(){m(ot,{display:"none"})}})),this.loadingShown=!1},yt.prototype.update=function(dt,ot,ht,ut){var vt,wt,xt=this,Ct={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},St=dt.isResponsiveOptions,Mt=[];F(xt,"update",{options:dt}),St||xt.setResponsive(!1,!0),dt=a(dt,xt.options),xt.userOptions=H(xt.userOptions,dt);var Tt=dt.chart;if(Tt){if(H(!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 Pt=!0}"alignTicks"in Tt&&(Pt=!0),"events"in Tt&&f(this,Tt),Q(Tt,function(kt,Ot){xt.propsRequireUpdateSeries.indexOf("chart."+Ot)!==-1&&(vt=!0),xt.propsRequireDirtyBox.indexOf(Ot)!==-1&&(xt.isDirtyBox=!0),xt.propsRequireReflow.indexOf(Ot)!==-1&&(St?xt.isDirtyBox=!0:wt=!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===L&&(this.time=new u(dt.time)),H(!0,xt.options.time,dt.time)),Q(dt,function(kt,Ot){xt[Ot]&&typeof xt[Ot].update=="function"?xt[Ot].update(kt,!1):typeof xt[Ct[Ot]]=="function"?xt[Ct[Ot]](kt):Ot!=="colors"&&xt.collectionsWithUpdate.indexOf(Ot)===-1&&H(!0,xt.options[Ot],dt[Ot]),Ot!=="chart"&&xt.propsRequireUpdateSeries.indexOf(Ot)!==-1&&(vt=!0)}),this.collectionsWithUpdate.forEach(function(kt){if(dt[kt]){var Ot=[];xt[kt].forEach(function(Dt,Et){Dt.options.isInternal||Ot.push(et(Dt.options.index,Et))}),gt(dt[kt]).forEach(function(Dt,Et){var It,_t=A(Dt.id);_t&&(It=xt.get(Dt.id)),!It&&xt[kt]&&(It=xt[kt][Ot?Ot[Et]:Et])&&_t&&A(It.options.id)&&(It=void 0),It&&It.coll===kt&&(It.update(Dt,!1),ht&&(It.touched=!0)),!It&&ht&&xt.collectionsWithInit[kt]&&(xt.collectionsWithInit[kt][0].apply(xt,[Dt].concat(xt.collectionsWithInit[kt][1]||[]).concat([!1])).touched=!0)}),ht&&xt[kt].forEach(function(Dt){Dt.touched||Dt.options.isInternal?delete Dt.touched:Mt.push(Dt)})}}),Mt.forEach(function(kt){kt.chart&&kt.remove&&kt.remove(!1)}),Pt&&xt.axes.forEach(function(kt){kt.update({},!1)}),vt&&xt.getSeriesOrderByLinks().forEach(function(kt){kt.chart&&kt.update({},!1)},this),Pt=Tt&&Tt.width,Tt=Tt&&(X(Tt.height)?st(Tt.height,Pt||xt.chartWidth):Tt.height),wt||_(Pt)&&Pt!==xt.chartWidth||_(Tt)&&Tt!==xt.chartHeight?xt.setSize(Pt,Tt,ut):et(ot,!0)&&xt.redraw(ut),F(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,ht=P.lang,ut=ot.options.chart.zooming.resetButton,vt=ut.theme,wt=ut.relativeTo==="chart"||ut.relativeTo==="spacingBox"?null:"scrollablePlotBox";F(this,"beforeShowResetZoom",null,function(){ot.resetZoomButton=ot.renderer.button(ht.resetZoom,null,null,dt,vt).attr({align:ut.position.align,title:ht.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(ut.position,!1,wt)}),F(this,"afterShowResetZoom")},yt.prototype.zoomOut=function(){F(this,"selection",{resetSelection:!0},this.zoom)},yt.prototype.zoom=function(dt){var ot,ht=this,ut=ht.pointer,vt=!1;!dt||dt.resetSelection?(ht.axes.forEach(function(xt){ot=xt.zoom()}),ut.initiated=!1):dt.xAxis.concat(dt.yAxis).forEach(function(xt){var Ct=xt.axis;(ut[Ct.isXAxis?"zoomX":"zoomY"]&&A(ut.mouseDownX)&&A(ut.mouseDownY)&&ht.isInsidePlot(ut.mouseDownX-ht.plotLeft,ut.mouseDownY-ht.plotTop,{axis:Ct})||!A(ht.inverted?ut.mouseDownX:ut.mouseDownY))&&(ot=Ct.zoom(xt.min,xt.max),Ct.displayBtn&&(vt=!0))});var wt=ht.resetZoomButton;vt&&!wt?ht.showResetZoom():!vt&&V(wt)&&(ht.resetZoomButton=wt.destroy()),ot&&ht.redraw(et(ht.options.chart.animation,dt&&dt.animation,100>ht.pointCount))},yt.prototype.pan=function(dt,ot){var ht=this,ut=ht.hoverPoints;ot=typeof ot=="object"?ot:{enabled:ot,type:"x"};var vt=ht.options.chart;vt&&vt.panning&&(vt.panning=ot);var wt,xt=ot.type;F(this,"pan",{originalEvent:dt},function(){ut&&ut.forEach(function(Mt){Mt.setState()});var Ct=ht.xAxis;xt==="xy"?Ct=Ct.concat(ht.yAxis):xt==="y"&&(Ct=ht.yAxis);var St={};Ct.forEach(function(Mt){if(Mt.options.panningEnabled&&!Mt.options.isInternal){var Tt=Mt.horiz,Pt=dt[Tt?"chartX":"chartY"],kt=ht[Tt=Tt?"mouseDownX":"mouseDownY"],Ot=Mt.minPointOffset||0,Dt=Mt.reversed&&!ht.inverted||!Mt.reversed&&ht.inverted?-1:1,Et=Mt.getExtremes(),It=Mt.toValue(kt-Pt,!0)+Ot*Dt,_t=Mt.toValue(kt+Mt.len-Pt,!0)-(Ot*Dt||Mt.isXAxis&&Mt.pointRangePadding||0),Yt=_t<It;Dt=Mt.hasVerticalPanning(),kt=Yt?_t:It,It=Yt?It:_t;var Bt=Mt.panningState;!Dt||Mt.isXAxis||Bt&&!Bt.isDirty||Mt.series.forEach(function(Ft){var Vt=Ft.getProcessedData(!0);Vt=Ft.getExtremes(Vt.yData,!0),Bt||(Bt={startMin:Number.MAX_VALUE,startMax:-Number.MAX_VALUE}),_(Vt.dataMin)&&_(Vt.dataMax)&&(Bt.startMin=Math.min(et(Ft.options.threshold,1/0),Vt.dataMin,Bt.startMin),Bt.startMax=Math.max(et(Ft.options.threshold,-1/0),Vt.dataMax,Bt.startMax))}),Dt=Math.min(et(Bt&&Bt.startMin,Et.dataMin),Ot?Et.min:Mt.toValue(Mt.toPixels(Et.min)-Mt.minPixelPadding)),_t=Math.max(et(Bt&&Bt.startMax,Et.dataMax),Ot?Et.max:Mt.toValue(Mt.toPixels(Et.max)+Mt.minPixelPadding)),Mt.panningState=Bt,Mt.isOrdinal||(0<(Ot=Dt-kt)&&(It+=Ot,kt=Dt),0<(Ot=It-_t)&&(It=_t,kt-=Ot),Mt.series.length&&kt!==Et.min&&It!==Et.max&&kt>=Dt&&It<=_t&&(Mt.setExtremes(kt,It,!1,!1,{trigger:"pan"}),!ht.resetZoomButton&&kt!==Dt&&It!==_t&&xt.match("y")&&(ht.showResetZoom(),Mt.displayBtn=!1),wt=!0),St[Tt]=Pt)}}),Q(St,function(Mt,Tt){ht[Tt]=Mt}),wt&&ht.redraw(!1),m(ht.container,{cursor:"move"})})},yt}(),k(W.prototype,{callbacks:[],collectionsWithInit:{xAxis:[W.prototype.addAxis,[!0]],yAxis:[W.prototype.addAxis,[!1]],series:[W.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(" ")}),W}),N(rt,"Core/Legend/LegendSymbol.js",[rt["Core/Utilities.js"]],function(W){var R,U=W.extend,Y=W.merge,Z=W.pick;return function(q){q.drawLineMarker=function($){var G=this.legendItem=this.legendItem||{},D=this.options,E=$.symbolWidth,x=$.symbolHeight,T=x/2,u=this.chart.renderer,p=G.group;$=$.baseline-Math.round(.3*$.fontMetrics.b);var g={},v=D.marker,y=0;this.chart.styledMode||(g={"stroke-width":Math.min(D.lineWidth||0,24)},D.dashStyle?g.dashstyle=D.dashStyle:D.linecap!=="square"&&(g["stroke-linecap"]="round")),G.line=u.path().addClass("highcharts-graph").attr(g).add(p),g["stroke-linecap"]&&(y=Math.min(G.line.strokeWidth(),E)/2),G.line.attr({d:[["M",y,$],["L",E-y,$]]}),v&&v.enabled!==!1&&E&&(D=Math.min(Z(v.radius,T),T),this.symbol.indexOf("url")===0&&(v=Y(v,{width:x,height:x}),D=0),G.symbol=G=u.symbol(this.symbol,E/2-D,$-D,2*D,2*D,U({context:"legend"},v)).addClass("highcharts-point").add(p),G.isMarker=!0)},q.drawRectangle=function($,G){G=G.legendItem||{};var D=$.symbolHeight,E=$.options.squareSymbol;G.symbol=this.chart.renderer.rect(E?($.symbolWidth-D)/2:0,$.baseline-D+1,E?D:$.symbolWidth,D,Z($.options.symbolRadius,D/2)).addClass("highcharts-point").attr({zIndex:3}).add(G.group)}}(R||(R={})),R}),N(rt,"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 W=this.series.chart.numberFormatter;return typeof this.y!="number"?"":W(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"}}),N(rt,"Core/Series/Series.js",[rt["Core/Animation/AnimationUtilities.js"],rt["Core/Defaults.js"],rt["Core/Foundation.js"],rt["Core/Globals.js"],rt["Core/Legend/LegendSymbol.js"],rt["Core/Series/Point.js"],rt["Core/Series/SeriesDefaults.js"],rt["Core/Series/SeriesRegistry.js"],rt["Core/Renderer/SVG/SVGElement.js"],rt["Core/Utilities.js"]],function(W,R,U,Y,Z,q,$,G,D,E){var x=W.animObject,T=W.setAnimation,u=R.defaultOptions,p=U.registerEventOptions,g=Y.hasTouch,v=Y.svg,y=Y.win,C=G.seriesTypes,P=E.arrayMax,L=E.arrayMin,M=E.clamp,f=E.cleanRecursively,b=E.correctFloat,l=E.defined,h=E.erase,e=E.error,r=E.extend,o=E.find,i=E.fireEvent,c=E.getNestedProperty,a=E.isArray,s=E.isNumber,m=E.isString,A=E.merge,O=E.objectEach,d=E.pick,w=E.removeEvent,k=E.splat,z=E.syncTimeout;return W=function(){function F(){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 F.prototype.init=function(j,I){i(this,"init",{options:I});var _=this,V=j.series;this.eventsToUnbind=[],_.chart=j,_.options=_.setOptions(I),I=_.options,_.linkedSeries=[],_.bindAxes(),r(_,{name:I.name,state:"",visible:I.visible!==!1,selected:I.selected===!0}),p(this,I);var X,H=I.events;(H&&H.click||I.point&&I.point.events&&I.point.events.click||I.allowPointSelect)&&(j.runTrackerClick=!0),_.getColor(),_.getSymbol(),_.parallelArrays.forEach(function(Q){_[Q+"Data"]||(_[Q+"Data"]=[])}),_.isCartesian&&(j.hasCartesianSeries=!0),V.length&&(X=V[V.length-1]),_._i=d(X&&X._i,-1)+1,_.opacity=_.options.opacity,j.orderSeries(this.insert(V)),I.dataSorting&&I.dataSorting.enabled?_.setDataSortingOptions():_.points||_.data||_.setData(I.data,!1),i(this,"afterInit")},F.prototype.is=function(j){return C[j]&&this instanceof C[j]},F.prototype.insert=function(j){var I,_=this.options.index;if(s(_)){for(I=j.length;I--;)if(_>=d(j[I].options.index,j[I]._i)){j.splice(I+1,0,this);break}I===-1&&j.unshift(this),I+=1}else j.push(this);return d(I,j.length-1)},F.prototype.bindAxes=function(){var j,I=this,_=I.options,V=I.chart;i(this,"bindAxes",null,function(){(I.axisTypes||[]).forEach(function(X){var H=0;V[X].forEach(function(Q){j=Q.options,(_[X]===H&&!j.isInternal||_[X]!==void 0&&_[X]===j.id||_[X]===void 0&&j.index===0)&&(I.insert(Q.series),I[X]=Q,Q.isDirty=!0),j.isInternal||H++}),I[X]||I.optionalAxis===X||e(18,!0,V)})}),i(this,"afterBindAxes")},F.prototype.updateParallelArrays=function(j,I){var _=j.series,V=arguments,X=s(I)?function(H){var Q=H==="y"&&_.toYData?_.toYData(j):j[H];_[H+"Data"][I]=Q}:function(H){Array.prototype[I].apply(_[H+"Data"],Array.prototype.slice.call(V,2))};_.parallelArrays.forEach(X)},F.prototype.hasData=function(){return this.visible&&this.dataMax!==void 0&&this.dataMin!==void 0||this.visible&&this.yData&&0<this.yData.length},F.prototype.autoIncrement=function(j){var I,_=this.options,V=_.pointIntervalUnit,X=_.relativeXValue,H=this.chart.time,Q=this.xIncrement;return Q=d(Q,_.pointStart,0),this.pointInterval=I=d(this.pointInterval,_.pointInterval,1),X&&s(j)&&(I*=j),V&&(_=new H.Date(Q),V==="day"?H.set("Date",_,H.get("Date",_)+I):V==="month"?H.set("Month",_,H.get("Month",_)+I):V==="year"&&H.set("FullYear",_,H.get("FullYear",_)+I),I=_.getTime()-Q),X&&s(j)?Q+I:(this.xIncrement=Q+I,Q)},F.prototype.setDataSortingOptions=function(){var j=this.options;r(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1}),l(j.pointRange)||(j.pointRange=1)},F.prototype.setOptions=function(j){var I=this.chart,_=I.options,V=_.plotOptions,X=I.userOptions||{};j=A(j),I=I.styledMode;var H={plotOptions:V,userOptions:j};i(this,"setOptions",H);var Q=H.plotOptions[this.type],et=X.plotOptions||{};return this.userOptions=H.userOptions,X=A(Q,V.series,X.plotOptions&&X.plotOptions[this.type],j),this.tooltipOptions=A(u.tooltip,u.plotOptions.series&&u.plotOptions.series.tooltip,u.plotOptions[this.type].tooltip,_.tooltip.userOptions,V.series&&V.series.tooltip,V[this.type].tooltip,j.tooltip),this.stickyTracking=d(j.stickyTracking,et[this.type]&&et[this.type].stickyTracking,et.series&&et.series.stickyTracking,!(!this.tooltipOptions.shared||this.noSharedTooltip)||X.stickyTracking),Q.marker===null&&delete X.marker,this.zoneAxis=X.zoneAxis,V=this.zones=(X.zones||[]).slice(),!X.negativeColor&&!X.negativeFillColor||X.zones||(_={value:X[this.zoneAxis+"Threshold"]||X.threshold||0,className:"highcharts-negative"},I||(_.color=X.negativeColor,_.fillColor=X.negativeFillColor),V.push(_)),V.length&&l(V[V.length-1].value)&&V.push(I?{}:{color:this.color,fillColor:this.fillColor}),i(this,"afterSetOptions",{options:X}),X},F.prototype.getName=function(){return d(this.options.name,"Series "+(this.index+1))},F.prototype.getCyclic=function(j,I,_){var V=this.chart,X=this.userOptions,H=j+"Index",Q=j+"Counter",et=_?_.length:d(V.options.chart[j+"Count"],V[j+"Count"]);if(!I){var tt=d(X[H],X["_"+H]);l(tt)||(V.series.length||(V[Q]=0),X["_"+H]=tt=V[Q]%et,V[Q]+=1),_&&(I=_[tt])}tt!==void 0&&(this[H]=tt),this[j]=I},F.prototype.getColor=function(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color="#cccccc":this.getCyclic("color",this.options.color||u.plotOptions[this.type].color,this.chart.options.colors)},F.prototype.getPointsCollection=function(){return(this.hasGroupedData?this.points:this.data)||[]},F.prototype.getSymbol=function(){this.getCyclic("symbol",this.options.marker.symbol,this.chart.options.symbols)},F.prototype.findPointIndex=function(j,I){var _,V,X=j.id,H=j.x,Q=this.points,et=this.options.dataSorting;if(X)(et=this.chart.get(X))instanceof q&&(_=et);else if((this.linkedParent||this.enabledDataSorting||this.options.relativeXValue)&&(_=function(st){return!st.touched&&st.index===j.index},et&&et.matchByName?_=function(st){return!st.touched&&st.name===j.name}:this.options.relativeXValue&&(_=function(st){return!st.touched&&st.options.x===j.x}),!(_=o(Q,_))))return;if(_){var tt=_&&_.index;tt!==void 0&&(V=!0)}return tt===void 0&&s(H)&&(tt=this.xData.indexOf(H,I)),tt!==-1&&tt!==void 0&&this.cropped&&(tt=tt>=this.cropStart?tt-this.cropStart:tt),!V&&s(tt)&&Q[tt]&&Q[tt].touched&&(tt=void 0),tt},F.prototype.updateData=function(j,I){var _,V,X,H=this.options,Q=H.dataSorting,et=this.points,tt=[],st=this.requireSorting,ct=j.length===et.length,gt=!0;if(this.xIncrement=null,j.forEach(function(mt,bt){var yt=l(mt)&&this.pointClass.prototype.optionsToObject.call({series:this},mt)||{},dt=yt.x;yt.id||s(dt)?((yt=this.findPointIndex(yt,X))===-1||yt===void 0?tt.push(mt):et[yt]&&mt!==H.data[yt]?(et[yt].update(mt,!1,null,!1),et[yt].touched=!0,st&&(X=yt+1)):et[yt]&&(et[yt].touched=!0),(!ct||bt!==yt||Q&&Q.enabled||this.hasDerivedData)&&(_=!0)):tt.push(mt)},this),_)for(j=et.length;j--;)(V=et[j])&&!V.touched&&V.remove&&V.remove(!1,I);else!ct||Q&&Q.enabled?gt=!1:(j.forEach(function(mt,bt){mt!==et[bt].y&&et[bt].update&&et[bt].update(mt,!1,null,!1)}),tt.length=0);return et.forEach(function(mt){mt&&(mt.touched=!1)}),!!gt&&(tt.forEach(function(mt){this.addPoint(mt,!1,null,null,!1)},this),this.xIncrement===null&&this.xData&&this.xData.length&&(this.xIncrement=P(this.xData),this.autoIncrement()),!0)},F.prototype.setData=function(j,I,_,V){I===void 0&&(I=!0);var X=this,H=X.points,Q=H&&H.length||0,et=X.options,tt=X.chart,st=et.dataSorting,ct=X.xAxis,gt=et.turboThreshold,mt=this.xData,bt=this.yData,yt=X.pointArrayMap;yt=yt&&yt.length;var dt,ot=et.keys,ht=0,ut=1,vt=null;if(!tt.options.chart.allowMutatingData){et.data&&delete X.options.data,X.userOptions.data&&delete X.userOptions.data;var wt=A(!0,j)}if(wt=(j=wt||j||[]).length,st&&st.enabled&&(j=this.sortData(j)),tt.options.chart.allowMutatingData&&V!==!1&&wt&&Q&&!X.cropped&&!X.hasGroupedData&&X.visible&&!X.boosted&&(dt=this.updateData(j,_)),!dt){if(X.xIncrement=null,X.colorCounter=0,this.parallelArrays.forEach(function(xt){X[xt+"Data"].length=0}),gt&&wt>gt)if(vt=X.getFirstValidPoint(j),s(vt))for(_=0;_<wt;_++)mt[_]=this.autoIncrement(),bt[_]=j[_];else if(a(vt))if(yt)if(vt.length===yt)for(_=0;_<wt;_++)mt[_]=this.autoIncrement(),bt[_]=j[_];else for(_=0;_<wt;_++)V=j[_],mt[_]=V[0],bt[_]=V.slice(1,yt+1);else if(ot&&(ht=0<=(ht=ot.indexOf("x"))?ht:0,ut=0<=(ut=ot.indexOf("y"))?ut:1),vt.length===1&&(ut=0),ht===ut)for(_=0;_<wt;_++)mt[_]=this.autoIncrement(),bt[_]=j[_][ut];else for(_=0;_<wt;_++)V=j[_],mt[_]=V[ht],bt[_]=V[ut];else e(12,!1,tt);else for(_=0;_<wt;_++)j[_]!==void 0&&(V={series:X},X.pointClass.prototype.applyOptions.apply(V,[j[_]]),X.updateParallelArrays(V,_));for(bt&&m(bt[0])&&e(14,!0,tt),X.data=[],X.options.data=X.userOptions.data=j,_=Q;_--;)H[_]&&H[_].destroy&&H[_].destroy();ct&&(ct.minRange=ct.userMinRange),X.isDirty=tt.isDirtyBox=!0,X.isDirtyData=!!H,_=!1}et.legendType==="point"&&(this.processData(),this.generatePoints()),I&&tt.redraw(_)},F.prototype.sortData=function(j){var I=this,_=I.options.dataSorting.sortKey||"y",V=function(X,H){return l(H)&&X.pointClass.prototype.optionsToObject.call({series:X},H)||{}};return j.forEach(function(X,H){j[H]=V(I,X),j[H].index=H},this),j.concat().sort(function(X,H){return X=c(_,X),(H=c(_,H))<X?-1:H>X?1:0}).forEach(function(X,H){X.x=H},this),I.linkedSeries&&I.linkedSeries.forEach(function(X){var H=X.options,Q=H.data;H.dataSorting&&H.dataSorting.enabled||!Q||(Q.forEach(function(et,tt){Q[tt]=V(X,et),j[tt]&&(Q[tt].x=j[tt].x,Q[tt].index=tt)}),X.setData(Q,!1))}),j},F.prototype.getProcessedData=function(j){var I=this.xAxis,_=this.options,V=_.cropThreshold,X=j||this.getExtremesFromAll||_.getExtremesFromAll,H=this.isCartesian;j=I&&I.val2lin,_=!(!I||!I.logarithmic);var Q=0,et=this.xData,tt=this.yData,st=this.requireSorting,ct=!1,gt=et.length;if(I){var mt=(ct=I.getExtremes()).min,bt=ct.max;ct=!(!I.categories||I.names.length)}if(H&&this.sorted&&!X&&(!V||gt>V||this.forceCrop)){if(et[gt-1]<mt||et[0]>bt)et=[],tt=[];else if(this.yData&&(et[0]<mt||et[gt-1]>bt)){var yt=this.cropData(this.xData,this.yData,mt,bt);et=yt.xData,tt=yt.yData,Q=yt.start,yt=!0}}for(V=et.length||1;--V;)if(0<(I=_?j(et[V])-j(et[V-1]):et[V]-et[V-1])&&(dt===void 0||I<dt))var dt=I;else 0>I&&st&&!ct&&(e(15,!1,this.chart),st=!1);return{xData:et,yData:tt,cropped:yt,cropStart:Q,closestPointRange:dt}},F.prototype.processData=function(j){var I=this.xAxis;if(this.isCartesian&&!this.isDirty&&!I.isDirty&&!this.yAxis.isDirty&&!j)return!1;j=this.getProcessedData(),this.cropped=j.cropped,this.cropStart=j.cropStart,this.processedXData=j.xData,this.processedYData=j.yData,this.closestPointRange=this.basePointRange=j.closestPointRange,i(this,"afterProcessData")},F.prototype.cropData=function(j,I,_,V,X){var H,Q=j.length,et=0,tt=Q;for(X=d(X,this.cropShoulder),H=0;H<Q;H++)if(j[H]>=_){et=Math.max(0,H-X);break}for(_=H;_<Q;_++)if(j[_]>V){tt=_+X;break}return{xData:j.slice(et,tt),yData:I.slice(et,tt),start:et,end:tt}},F.prototype.generatePoints=function(){var j=this.options,I=this.processedData||j.data,_=this.processedXData,V=this.processedYData,X=this.pointClass,H=_.length,Q=this.cropStart||0,et=this.hasGroupedData,tt=j.keys,st=[];j=j.dataGrouping&&j.dataGrouping.groupAll?Q:0;var ct,gt,mt=this.data;if(!mt&&!et){var bt=[];bt.length=I.length,mt=this.data=bt}for(tt&&et&&(this.options.keys=!1),gt=0;gt<H;gt++){if(bt=Q+gt,et){var yt=new X().init(this,[_[gt]].concat(k(V[gt])));yt.dataGroup=this.groupMap[j+gt],yt.dataGroup.options&&(yt.options=yt.dataGroup.options,r(yt,yt.dataGroup.options),delete yt.dataLabels)}else(yt=mt[bt])||I[bt]===void 0||(mt[bt]=yt=new X().init(this,I[bt],_[gt]));yt&&(yt.index=et?j+gt:bt,st[gt]=yt)}if(this.options.keys=tt,mt&&(H!==(ct=mt.length)||et))for(gt=0;gt<ct;gt++)gt!==Q||et||(gt+=H),mt[gt]&&(mt[gt].destroyElements(),mt[gt].plotX=void 0);this.data=mt,this.points=st,i(this,"afterGeneratePoints")},F.prototype.getXExtremes=function(j){return{min:L(j),max:P(j)}},F.prototype.getExtremes=function(j,I){var _=this.xAxis,V=this.yAxis,X=this.processedXData||this.xData,H=[],Q=this.requireSorting?this.cropShoulder:0;V=!!V&&V.positiveValuesOnly;var et,tt=0,st=0,ct=0,gt=(j=j||this.stackedYData||this.processedYData||[]).length;if(_){var mt=_.getExtremes();tt=mt.min,st=mt.max}for(et=0;et<gt;et++){var bt=X[et];mt=j[et];var yt=(s(mt)||a(mt))&&(mt.length||0<mt||!V);if(bt=I||this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!_||(X[et+Q]||bt)>=tt&&(X[et-Q]||bt)<=st,yt&&bt)if(yt=mt.length)for(;yt--;)s(mt[yt])&&(H[ct++]=mt[yt]);else H[ct++]=mt}return j={activeYData:H,dataMin:L(H),dataMax:P(H)},i(this,"afterGetExtremes",{dataExtremes:j}),j},F.prototype.applyExtremes=function(){var j=this.getExtremes();return this.dataMin=j.dataMin,this.dataMax=j.dataMax,j},F.prototype.getFirstValidPoint=function(j){for(var I=j.length,_=0,V=null;V===null&&_<I;)V=j[_],_++;return V},F.prototype.translate=function(){this.processedXData||this.processData(),this.generatePoints();var j,I,_=this.options,V=_.stacking,X=this.xAxis,H=X.categories,Q=this.enabledDataSorting,et=this.yAxis,tt=this.points,st=tt.length,ct=this.pointPlacementToXValue(),gt=!!ct,mt=_.threshold,bt=_.startFromThreshold?mt:0,yt=this.zoneAxis||"y",dt=Number.MAX_VALUE;for(j=0;j<st;j++){var ot=tt[j],ht=ot.x,ut=void 0,vt=void 0,wt=ot.y,xt=ot.low,Ct=V&&et.stacking&&et.stacking.stacks[(this.negStacks&&wt<(bt?0:mt)?"-":"")+this.stackKey];if((et.positiveValuesOnly&&!et.validatePositiveValue(wt)||X.positiveValuesOnly&&!X.validatePositiveValue(ht))&&(ot.isNull=!0),ot.plotX=I=b(M(X.translate(ht,0,0,0,1,ct,this.type==="flags"),-1e5,1e5)),V&&this.visible&&Ct&&Ct[ht]){var St=this.getStackIndicator(St,ht,this.index);!ot.isNull&&St.key&&(vt=(ut=Ct[ht]).points[St.key]),ut&&a(vt)&&(xt=vt[0],wt=vt[1],xt===bt&&St.key===Ct[ht].base&&(xt=d(s(mt)?mt:et.min)),et.positiveValuesOnly&&l(xt)&&0>=xt&&(xt=void 0),ot.total=ot.stackTotal=d(ut.total),ot.percentage=l(ot.y)&&ut.total?ot.y/ut.total*100:void 0,ot.stackY=wt,this.irregularWidths||ut.setOffset(this.pointXOffset||0,this.barW||0,void 0,void 0,void 0,this.xAxis))}if(ot.yBottom=l(xt)?M(et.translate(xt,0,1,0,1),-1e5,1e5):void 0,this.dataModify&&(wt=this.dataModify.modifyValue(wt,j)),ot.plotY=void 0,s(wt)&&(ut=et.translate(wt,!1,!0,!1,!0))!==void 0&&(ot.plotY=M(ut,-1e5,1e5)),ot.isInside=this.isPointInside(ot),ot.clientX=gt?b(X.translate(ht,0,0,0,1,ct)):I,ot.negative=ot[yt]<(_[yt+"Threshold"]||mt||0),ot.category=d(H&&H[ot.x],ot.x),!ot.isNull&&ot.visible!==!1){Mt!==void 0&&(dt=Math.min(dt,Math.abs(I-Mt)));var Mt=I}ot.zone=this.zones.length?ot.getZone():void 0,!ot.graphic&&this.group&&Q&&(ot.isNew=!0)}this.closestPointRangePx=dt,i(this,"afterTranslate")},F.prototype.getValidPoints=function(j,I,_){var V=this.chart;return(j||this.points||[]).filter(function(X){return!(I&&!V.isInsidePlot(X.plotX,X.plotY,{inverted:V.inverted}))&&X.visible!==!1&&(_||!X.isNull)})},F.prototype.getClipBox=function(){var j=this.chart,I=this.xAxis,_=this.yAxis,V=A(j.clipBox);return I&&I.len!==j.plotSizeX&&(V.width=I.len),_&&_.len!==j.plotSizeY&&(V.height=_.len),V},F.prototype.getSharedClipKey=function(){return this.sharedClipKey=(this.options.xAxis||0)+","+(this.options.yAxis||0)},F.prototype.setClip=function(){var j=this.chart,I=this.group,_=this.markerGroup,V=j.sharedClips;j=j.renderer;var X=this.getClipBox(),H=this.getSharedClipKey(),Q=V[H];Q?Q.animate(X):V[H]=Q=j.clipRect(X),I&&I.clip(this.options.clip===!1?void 0:Q),_&&_.clip()},F.prototype.animate=function(j){var I=this.chart,_=this.group,V=this.markerGroup,X=I.inverted,H=x(this.options.animation),Q=[this.getSharedClipKey(),H.duration,H.easing,H.defer].join(),et=I.sharedClips[Q],tt=I.sharedClips[Q+"m"];if(j&&_)H=this.getClipBox(),et?et.attr("height",H.height):(H.width=0,X&&(H.x=I.plotHeight),et=I.renderer.clipRect(H),I.sharedClips[Q]=et,tt=I.renderer.clipRect({x:-99,y:-99,width:X?I.plotWidth+199:99,height:X?99:I.plotHeight+199}),I.sharedClips[Q+"m"]=tt),_.clip(et),V&&V.clip(tt);else if(et&&!et.hasClass("highcharts-animating")){I=this.getClipBox();var st=H.step;V&&V.element.childNodes.length&&(H.step=function(ct,gt){st&&st.apply(gt,arguments),gt.prop==="width"&&tt&&tt.element&&tt.attr(X?"height":"width",ct+99)}),et.addClass("highcharts-animating").animate(I,H)}},F.prototype.afterAnimate=function(){var j=this;this.setClip(),O(this.chart.sharedClips,function(I,_,V){I&&!j.chart.container.querySelector('[clip-path="url(#'.concat(I.id,')"]'))&&(I.destroy(),delete V[_])}),this.finishedAnimating=!0,i(this,"afterAnimate")},F.prototype.drawPoints=function(j){j===void 0&&(j=this.points);var I,_,V=this.chart,X=V.styledMode,H=this.colorAxis,Q=this.options.marker,et=this[this.specialGroup||"markerGroup"],tt=this.xAxis,st=d(Q.enabled,!(tt&&!tt.isRadial)||null,this.closestPointRangePx>=Q.enabledThreshold*Q.radius);if(Q.enabled!==!1||this._hasPointMarkers)for(I=0;I<j.length;I++){var ct=j[I],gt=(_=ct.graphic)?"animate":"attr",mt=ct.marker||{},bt=!!ct.marker;if((st&&mt.enabled===void 0||mt.enabled)&&!ct.isNull&&ct.visible!==!1){var yt=d(mt.symbol,this.symbol,"rect"),dt=this.markerAttribs(ct,ct.selected&&"select");this.enabledDataSorting&&(ct.startXPos=tt.reversed?-(dt.width||0):tt.width);var ot=ct.isInside!==!1;!_&&ot&&(0<(dt.width||0)||ct.hasImage)&&(ct.graphic=_=V.renderer.symbol(yt,dt.x,dt.y,dt.width,dt.height,bt?mt:Q).add(et),this.enabledDataSorting&&V.hasRendered&&(_.attr({x:ct.startXPos}),gt="animate")),_&&gt==="animate"&&_[ot?"show":"hide"](ot).animate(dt),_&&(mt=this.pointAttribs(ct,X||!ct.selected?void 0:"select"),X?H&&_.css({fill:mt.fill}):_[gt](mt)),_&&_.addClass(ct.getClassName(),!0)}else _&&(ct.graphic=_.destroy())}},F.prototype.markerAttribs=function(j,I){var _=this.options,V=_.marker,X=j.marker||{},H=X.symbol||V.symbol,Q={},et=d(X.radius,V&&V.radius);return I&&(V=V.states[I],I=X.states&&X.states[I],et=d(I&&I.radius,V&&V.radius,et&&et+(V&&V.radiusPlus||0))),j.hasImage=H&&H.indexOf("url")===0,j.hasImage&&(et=0),j=j.pos(),s(et)&&j&&(Q.x=j[0]-et,Q.y=j[1]-et,_.crisp&&(Q.x=Math.floor(Q.x))),et&&(Q.width=Q.height=2*et),Q},F.prototype.pointAttribs=function(j,I){var _=this.options.marker,V=j&&j.options,X=V&&V.marker||{},H=V&&V.color,Q=j&&j.color,et=j&&j.zone&&j.zone.color,tt=this.color;return j=d(X.lineWidth,_.lineWidth),V=1,tt=H||et||Q||tt,H=X.fillColor||_.fillColor||tt,Q=X.lineColor||_.lineColor||tt,I=I||"normal",_=_.states[I]||{},I=X.states&&X.states[I]||{},j=d(I.lineWidth,_.lineWidth,j+d(I.lineWidthPlus,_.lineWidthPlus,0)),H=I.fillColor||_.fillColor||H,{stroke:Q=I.lineColor||_.lineColor||Q,"stroke-width":j,fill:H,opacity:V=d(I.opacity,_.opacity,V)}},F.prototype.destroy=function(j){var I,_,V,X=this,H=X.chart,Q=/AppleWebKit\/533/.test(y.navigator.userAgent),et=X.data||[];for(i(X,"destroy",{keepEventsForUpdate:j}),this.removeEvents(j),(X.axisTypes||[]).forEach(function(tt){(V=X[tt])&&V.series&&(h(V.series,X),V.isDirty=V.forceRedraw=!0)}),X.legendItem&&X.chart.legend.destroyItem(X),I=et.length;I--;)(_=et[I])&&_.destroy&&_.destroy();X.clips&&X.clips.forEach(function(tt){return tt.destroy()}),E.clearTimeout(X.animationTimeout),O(X,function(tt,st){tt instanceof D&&!tt.survive&&tt[Q&&st==="group"?"hide":"destroy"]()}),H.hoverSeries===X&&(H.hoverSeries=void 0),h(H.series,X),H.orderSeries(),O(X,function(tt,st){j&&st==="hcEvents"||delete X[st]})},F.prototype.applyZones=function(){var j,I,_,V,X,H,Q,et,tt=this,st=this.chart,ct=st.renderer,gt=this.zones,mt=this.clips||[],bt=this.graph,yt=this.area,dt=Math.max(st.plotWidth,st.plotHeight),ot=this[(this.zoneAxis||"y")+"Axis"],ht=st.inverted,ut=!1;if(gt.length&&(bt||yt)&&ot&&ot.min!==void 0){var vt=ot.reversed,wt=ot.horiz;bt&&!this.showLine&&bt.hide(),yt&&yt.hide();var xt=ot.getExtremes();gt.forEach(function(Ct,St){j=vt?wt?st.plotWidth:0:wt?0:ot.toPixels(xt.min)||0,j=M(d(I,j),0,dt),I=M(Math.round(ot.toPixels(d(Ct.value,xt.max),!0)||0),0,dt),ut&&(j=I=ot.toPixels(xt.max)),V=Math.abs(j-I),X=Math.min(j,I),H=Math.max(j,I),ot.isXAxis?(_={x:ht?H:X,y:0,width:V,height:dt},wt||(_.x=st.plotHeight-_.x)):(_={x:0,y:ht?H:X,width:dt,height:V},wt&&(_.y=st.plotWidth-_.y)),ht&&ct.isVML&&(_=ot.isXAxis?{x:0,y:vt?X:H,height:_.width,width:st.chartWidth}:{x:_.y-st.plotLeft-st.spacingBox.x,y:0,width:_.height,height:st.chartHeight}),mt[St]?mt[St].animate(_):mt[St]=ct.clipRect(_),Q=tt["zone-area-"+St],et=tt["zone-graph-"+St],bt&&et&&et.clip(mt[St]),yt&&Q&&Q.clip(mt[St]),ut=Ct.value>xt.max,tt.resetZones&&I===0&&(I=void 0)}),this.clips=mt}else tt.visible&&(bt&&bt.show(),yt&&yt.show())},F.prototype.plotGroup=function(j,I,_,V,X){var H=this[j],Q=!H;return _={visibility:_,zIndex:V||.1},this.opacity===void 0||this.chart.styledMode||this.state==="inactive"||(_.opacity=this.opacity),Q&&(this[j]=H=this.chart.renderer.g().add(X)),H.addClass("highcharts-"+I+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(l(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(H.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),H.attr(_)[Q?"attr":"animate"](this.getPlotBox(I)),H},F.prototype.getPlotBox=function(j){var I=this.xAxis,_=this.yAxis,V=this.chart;return j=V.inverted&&!V.polar&&I&&this.invertible!==!1&&j==="series",V.inverted&&(I=_,_=this.xAxis),{translateX:I?I.left:V.plotLeft,translateY:_?_.top:V.plotTop,rotation:j?90:0,rotationOriginX:j?(I.len-_.len)/2:0,rotationOriginY:j?(I.len+_.len)/2:0,scaleX:j?-1:1,scaleY:1}},F.prototype.removeEvents=function(j){j||w(this),this.eventsToUnbind.length&&(this.eventsToUnbind.forEach(function(I){I()}),this.eventsToUnbind.length=0)},F.prototype.render=function(){var j=this,I=j.chart,_=j.options,V=x(_.animation),X=j.visible?"inherit":"hidden",H=_.zIndex,Q=j.hasRendered,et=I.seriesGroup;I=!j.finishedAnimating&&I.renderer.isSVG?V.duration:0,i(this,"render"),j.plotGroup("group","series",X,H,et),j.markerGroup=j.plotGroup("markerGroup","markers",X,H,et),_.clip!==!1&&j.setClip(),j.animate&&I&&j.animate(!0),j.drawGraph&&(j.drawGraph(),j.applyZones()),j.visible&&j.drawPoints(),j.drawDataLabels&&j.drawDataLabels(),j.redrawPoints&&j.redrawPoints(),j.drawTracker&&j.options.enableMouseTracking!==!1&&j.drawTracker(),j.animate&&I&&j.animate(),Q||(I&&V.defer&&(I+=V.defer),j.animationTimeout=z(function(){j.afterAnimate()},I||0)),j.isDirty=!1,j.hasRendered=!0,i(j,"afterRender")},F.prototype.redraw=function(){var j=this.isDirty||this.isDirtyData;this.translate(),this.render(),j&&delete this.kdTree},F.prototype.searchPoint=function(j,I){var _=this.xAxis,V=this.yAxis,X=this.chart.inverted;return this.searchKDTree({clientX:X?_.len-j.chartY+_.pos:j.chartX-_.pos,plotY:X?V.len-j.chartX+V.pos:j.chartY-V.pos},I,j)},F.prototype.buildKDTree=function(j){function I(X,H,Q){var et=X&&X.length;if(et){var tt=_.kdAxisArray[H%Q];return X.sort(function(st,ct){return st[tt]-ct[tt]}),{point:X[et=Math.floor(et/2)],left:I(X.slice(0,et),H+1,Q),right:I(X.slice(et+1),H+1,Q)}}}this.buildingKdTree=!0;var _=this,V=-1<_.options.findNearestPointBy.indexOf("y")?2:1;delete _.kdTree,z(function(){_.kdTree=I(_.getValidPoints(null,!_.directTouch),V,V),_.buildingKdTree=!1},_.options.kdNow||j&&j.type==="touchstart"?0:1)},F.prototype.searchKDTree=function(j,I,_){var V=this,X=this.kdAxisArray[0],H=this.kdAxisArray[1],Q=I?"distX":"dist";if(I=-1<V.options.findNearestPointBy.indexOf("y")?2:1,this.kdTree||this.buildingKdTree||this.buildKDTree(_),this.kdTree)return function et(tt,st,ct,gt){var mt=st.point,bt=V.kdAxisArray[ct%gt],yt=mt,dt=l(tt[X])&&l(mt[X])?Math.pow(tt[X]-mt[X],2):null,ot=l(tt[H])&&l(mt[H])?Math.pow(tt[H]-mt[H],2):null;return ot=(dt||0)+(ot||0),mt.dist=l(ot)?Math.sqrt(ot):Number.MAX_VALUE,mt.distX=l(dt)?Math.sqrt(dt):Number.MAX_VALUE,dt=0>(bt=tt[bt]-mt[bt])?"right":"left",st[ot=0>bt?"left":"right"]&&(yt=(ot=et(tt,st[ot],ct+1,gt))[Q]<yt[Q]?ot:mt),st[dt]&&Math.sqrt(bt*bt)<yt[Q]&&(yt=(tt=et(tt,st[dt],ct+1,gt))[Q]<yt[Q]?tt:yt),yt}(j,this.kdTree,I,I)},F.prototype.pointPlacementToXValue=function(){var j=this.options,I=j.pointRange,_=this.xAxis;return(j=j.pointPlacement)==="between"&&(j=_.reversed?-.5:.5),s(j)?j*(I||_.pointRange):0},F.prototype.isPointInside=function(j){var I=this.chart,_=this.xAxis,V=this.yAxis;return j.plotY!==void 0&&j.plotX!==void 0&&0<=j.plotY&&j.plotY<=(V?V.len:I.plotHeight)&&0<=j.plotX&&j.plotX<=(_?_.len:I.plotWidth)},F.prototype.drawTracker=function(){var j=this,I=j.options,_=I.trackByArea,V=[].concat(_?j.areaPath:j.graphPath),X=j.chart,H=X.pointer,Q=X.renderer,et=X.options.tooltip.snap,tt=j.tracker,st=function(gt){X.hoverSeries!==j&&j.onMouseOver()},ct="rgba(192,192,192,"+(v?1e-4:.002)+")";tt?tt.attr({d:V}):j.graph&&(j.tracker=Q.path(V).attr({visibility:j.visible?"inherit":"hidden",zIndex:2}).addClass(_?"highcharts-tracker-area":"highcharts-tracker-line").add(j.group),X.styledMode||j.tracker.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:ct,fill:_?ct:"none","stroke-width":j.graph.strokeWidth()+(_?0:2*et)}),[j.tracker,j.markerGroup,j.dataLabelsGroup].forEach(function(gt){gt&&(gt.addClass("highcharts-tracker").on("mouseover",st).on("mouseout",function(mt){H.onTrackerMouseOut(mt)}),I.cursor&&!X.styledMode&&gt.css({cursor:I.cursor}),g)&&gt.on("touchstart",st)})),i(this,"afterDrawTracker")},F.prototype.addPoint=function(j,I,_,V,X){var H=this.options,Q=this.data,et=this.chart,tt=this.xAxis;tt=tt&&tt.hasNames&&tt.names;var st,ct=H.data,gt=this.xData;I=d(I,!0);var mt={series:this};this.pointClass.prototype.applyOptions.apply(mt,[j]);var bt=mt.x,yt=gt.length;if(this.requireSorting&&bt<gt[yt-1])for(st=!0;yt&&gt[yt-1]>bt;)yt--;this.updateParallelArrays(mt,"splice",yt,0,0),this.updateParallelArrays(mt,yt),tt&&mt.name&&(tt[bt]=mt.name),ct.splice(yt,0,j),(st||this.processedData)&&(this.data.splice(yt,0,null),this.processData()),H.legendType==="point"&&this.generatePoints(),_&&(Q[0]&&Q[0].remove?Q[0].remove(!1):(Q.shift(),this.updateParallelArrays(mt,"shift"),ct.shift())),X!==!1&&i(this,"addPoint",{point:mt}),this.isDirtyData=this.isDirty=!0,I&&et.redraw(V)},F.prototype.removePoint=function(j,I,_){var V=this,X=V.data,H=X[j],Q=V.points,et=V.chart,tt=function(){Q&&Q.length===X.length&&Q.splice(j,1),X.splice(j,1),V.options.data.splice(j,1),V.updateParallelArrays(H||{series:V},"splice",j,1),H&&H.destroy(),V.isDirty=!0,V.isDirtyData=!0,I&&et.redraw()};T(_,et),I=d(I,!0),H?H.firePointEvent("remove",null,tt):tt()},F.prototype.remove=function(j,I,_,V){function X(){H.destroy(V),Q.isDirtyLegend=Q.isDirtyBox=!0,Q.linkSeries(),d(j,!0)&&Q.redraw(I)}var H=this,Q=H.chart;_!==!1?i(H,"remove",null,X):X()},F.prototype.update=function(j,I){j=f(j,this.userOptions),i(this,"update",{options:j});var _=this,V=_.chart,X=_.userOptions,H=_.initialType||_.type,Q=V.options.plotOptions,et=C[H].prototype,tt=_.finishedAnimating&&{animation:!1},st={},ct=["eventOptions","navigatorSeries","baseSeries"],gt=j.type||X.type||V.options.chart.type,mt=!(this.hasDerivedData||gt&&gt!==this.type||j.pointStart!==void 0||j.pointInterval!==void 0||j.relativeXValue!==void 0||j.joinBy||j.mapData||_.hasOptionChanged("dataGrouping")||_.hasOptionChanged("pointStart")||_.hasOptionChanged("pointInterval")||_.hasOptionChanged("pointIntervalUnit")||_.hasOptionChanged("keys"));if(gt=gt||H,mt&&(ct.push("data","isDirtyData","points","processedData","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","_hasPointLabels","clips","nodes","layout","level","mapMap","mapData","minY","maxY","minX","maxX"),j.visible!==!1&&ct.push("area","graph"),_.parallelArrays.forEach(function(yt){ct.push(yt+"Data")}),j.data&&(j.dataSorting&&r(_.options.dataSorting,j.dataSorting),this.setData(j.data,!1))),j=A(X,tt,{index:X.index===void 0?_.index:X.index,pointStart:d(Q&&Q.series&&Q.series.pointStart,X.pointStart,_.xData[0])},!mt&&{data:_.options.data},j),mt&&j.data&&(j.data=_.options.data),(ct=["group","markerGroup","dataLabelsGroup","transformGroup","shadowGroup"].concat(ct)).forEach(function(yt){ct[yt]=_[yt],delete _[yt]}),Q=!1,C[gt]){if(Q=gt!==_.type,_.remove(!1,!1,!1,!0),Q)if(Object.setPrototypeOf)Object.setPrototypeOf(_,C[gt].prototype);else{for(bt in tt=Object.hasOwnProperty.call(_,"hcEvents")&&_.hcEvents,et)_[bt]=void 0;r(_,C[gt].prototype),tt?_.hcEvents=tt:delete _.hcEvents}}else e(17,!0,V,{missingModuleFor:gt});if(ct.forEach(function(yt){_[yt]=ct[yt]}),_.init(V,j),mt&&this.points){if((j=_.options).visible===!1)st.graphic=1,st.dataLabel=1;else if(!_._hasPointLabels){et=j.marker;var bt=j.dataLabels;X=X.marker||{},!et||et.enabled!==!1&&X.symbol===et.symbol&&X.height===et.height&&X.width===et.width||(st.graphic=1),bt&&bt.enabled===!1&&(st.dataLabel=1)}for(X=0,et=this.points;X<et.length;X++)(bt=et[X])&&bt.series&&(bt.resolveColor(),Object.keys(st).length&&bt.destroyElements(st),j.showInLegend===!1&&bt.legendItem&&V.legend.destroyItem(bt))}_.initialType=H,V.linkSeries(),Q&&_.linkedSeries.length&&(_.isDirtyData=!0),i(this,"afterUpdate"),d(I,!0)&&V.redraw(!!mt&&void 0)},F.prototype.setName=function(j){this.name=this.options.name=this.userOptions.name=j,this.chart.isDirtyLegend=!0},F.prototype.hasOptionChanged=function(j){var I=this.options[j],_=this.chart.options.plotOptions,V=this.userOptions[j];return V?I!==V:I!==d(_&&_[this.type]&&_[this.type][j],_&&_.series&&_.series[j],I)},F.prototype.onMouseOver=function(){var j=this.chart,I=j.hoverSeries;j.pointer.setHoverChartIndex(),I&&I!==this&&I.onMouseOut(),this.options.events.mouseOver&&i(this,"mouseOver"),this.setState("hover"),j.hoverSeries=this},F.prototype.onMouseOut=function(){var j=this.options,I=this.chart,_=I.tooltip,V=I.hoverPoint;I.hoverSeries=null,V&&V.onMouseOut(),this&&j.events.mouseOut&&i(this,"mouseOut"),!_||this.stickyTracking||_.shared&&!this.noSharedTooltip||_.hide(),I.series.forEach(function(X){X.setState("",!0)})},F.prototype.setState=function(j,I){var _=this,V=_.options,X=_.graph,H=V.inactiveOtherPoints,Q=V.states,et=d(Q[j||"normal"]&&Q[j||"normal"].animation,_.chart.options.chart.animation),tt=V.lineWidth,st=0,ct=V.opacity;if(j=j||"",_.state!==j&&([_.group,_.markerGroup,_.dataLabelsGroup].forEach(function(gt){gt&&(_.state&&gt.removeClass("highcharts-series-"+_.state),j&&gt.addClass("highcharts-series-"+j))}),_.state=j,!_.chart.styledMode)){if(Q[j]&&Q[j].enabled===!1)return;if(j&&(tt=Q[j].lineWidth||tt+(Q[j].lineWidthPlus||0),ct=d(Q[j].opacity,ct)),X&&!X.dashstyle&&s(tt))for(V={"stroke-width":tt},X.animate(V,et);_["zone-graph-"+st];)_["zone-graph-"+st].animate(V,et),st+=1;H||[_.group,_.markerGroup,_.dataLabelsGroup,_.labelBySeries].forEach(function(gt){gt&&gt.animate({opacity:ct},et)})}I&&H&&_.points&&_.setAllPointsToState(j||void 0)},F.prototype.setAllPointsToState=function(j){this.points.forEach(function(I){I.setState&&I.setState(j)})},F.prototype.setVisible=function(j,I){var _=this,V=_.chart,X=V.options.chart.ignoreHiddenSeries,H=_.visible,Q=(_.visible=j=_.options.visible=_.userOptions.visible=j===void 0?!H:j)?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(function(et){_[et]&&_[et][Q]()}),V.hoverSeries!==_&&(V.hoverPoint&&V.hoverPoint.series)!==_||_.onMouseOut(),_.legendItem&&V.legend.colorizeItem(_,j),_.isDirty=!0,_.options.stacking&&V.series.forEach(function(et){et.options.stacking&&et.visible&&(et.isDirty=!0)}),_.linkedSeries.forEach(function(et){et.setVisible(j,!1)}),X&&(V.isDirtyBox=!0),i(_,Q),I!==!1&&V.redraw()},F.prototype.show=function(){this.setVisible(!0)},F.prototype.hide=function(){this.setVisible(!1)},F.prototype.select=function(j){this.selected=j=this.options.selected=j===void 0?!this.selected:j,this.checkbox&&(this.checkbox.checked=j),i(this,j?"select":"unselect")},F.prototype.shouldShowTooltip=function(j,I,_){return _===void 0&&(_={}),_.series=this,_.visiblePlotOnly=!0,this.chart.isInsidePlot(j,I,_)},F.defaultOptions=$,F.types=G.seriesTypes,F.registerType=G.registerSeriesType,F}(),r(W.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,cropShoulder:1,directTouch:!1,drawLegendSymbol:Z.drawLineMarker,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:q,requireSorting:!0,sorted:!0}),G.series=W,W}),N(rt,"Extensions/ScrollablePlotArea.js",[rt["Core/Animation/AnimationUtilities.js"],rt["Core/Axis/Axis.js"],rt["Core/Chart/Chart.js"],rt["Core/Series/Series.js"],rt["Core/Renderer/RendererRegistry.js"],rt["Core/Utilities.js"]],function(W,R,U,Y,Z,q){var $=W.stop,G=q.addEvent,D=q.createElement,E=q.defined,x=q.merge,T=q.pick;G(U,"afterSetChartSize",function(u){var p=this.options.chart.scrollablePlotArea,g=p&&p.minWidth;if(p=p&&p.minHeight,!this.renderer.forExport){if(g){if(this.scrollablePixelsX=g=Math.max(0,g-this.chartWidth)){this.scrollablePlotBox=this.renderer.scrollablePlotBox=x(this.plotBox),this.plotBox.width=this.plotWidth+=g,this.inverted?this.clipBox.height+=g:this.clipBox.width+=g;var v={1:{name:"right",value:g}}}}else p&&(this.scrollablePixelsY=g=Math.max(0,p-this.chartHeight),E(g)&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=x(this.plotBox),this.plotBox.height=this.plotHeight+=g,this.inverted?this.clipBox.width+=g:this.clipBox.height+=g,v={2:{name:"bottom",value:g}}));v&&!u.skipAxes&&this.axes.forEach(function(y){v[y.side]?y.getPlotLinePath=function(){var C=v[y.side].name,P=this[C];this[C]=P-v[y.side].value;var L=R.prototype.getPlotLinePath.apply(this,arguments);return this[C]=P,L}:(y.setAxisSize(),y.setAxisTranslation())})}}),G(U,"render",function(){this.scrollablePixelsX||this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()}),U.prototype.setUpScrolling=function(){var u,p=this,g={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(g.overflowX="auto"),this.scrollablePixelsY&&(g.overflowY="auto"),this.scrollingParent=D("div",{className:"highcharts-scrolling-parent"},{position:"relative"},this.renderTo),this.scrollingContainer=D("div",{className:"highcharts-scrolling"},g,this.scrollingParent),G(this.scrollingContainer,"scroll",function(){p.pointer&&(delete p.pointer.chartPosition,p.hoverPoint&&(u=p.hoverPoint),p.pointer.runPointActions(void 0,u,!0))}),this.innerContainer=D("div",{className:"highcharts-inner-container"},null,this.scrollingContainer),this.innerContainer.appendChild(this.container),this.setUpScrolling=null},U.prototype.moveFixedElements=function(){var u,p=this.container,g=this.fixedRenderer,v=".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?u=".highcharts-yaxis":this.scrollablePixelsX&&this.inverted||this.scrollablePixelsY&&!this.inverted?u=".highcharts-xaxis":this.scrollablePixelsY&&this.inverted&&(u=".highcharts-yaxis"),u&&v.push(u+":not(.highcharts-radial-axis)",u+"-labels:not(.highcharts-radial-axis-labels)"),v.forEach(function(y){[].forEach.call(p.querySelectorAll(y),function(C){(C.namespaceURI===g.SVG_NS?g.box:g.box.parentNode).appendChild(C),C.style.pointerEvents="auto"})})},U.prototype.applyFixed=function(){var u=!this.fixedDiv,p=this.options.chart,g=p.scrollablePlotArea,v=Z.getRendererType();u?(this.fixedDiv=D("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(p.style&&p.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=p=new v(this.fixedDiv,this.chartWidth,this.chartHeight,this.options.chart.style),this.scrollableMask=p.path().attr({fill:this.options.chart.backgroundColor||"#fff","fill-opacity":T(g.opacity,.85),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),G(this,"afterShowResetZoom",this.moveFixedElements),G(this,"afterApplyDrilldown",this.moveFixedElements),G(this,"afterLayOutTitles",this.moveFixedElements)):this.fixedRenderer.setSize(this.chartWidth,this.chartHeight),(this.scrollableDirty||u)&&(this.scrollableDirty=!1,this.moveFixedElements()),p=this.chartWidth+(this.scrollablePixelsX||0),v=this.chartHeight+(this.scrollablePixelsY||0),$(this.container),this.container.style.width=p+"px",this.container.style.height=v+"px",this.renderer.boxWrapper.attr({width:p,height:v,viewBox:[0,0,p,v].join(" ")}),this.chartBackground.attr({width:p,height:v}),this.scrollingContainer.style.height=this.chartHeight+"px",u&&(g.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*g.scrollPositionX),g.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY*g.scrollPositionY)),v=this.axisOffset,u=this.plotTop-v[0]-1,g=this.plotLeft-v[3]-1,p=this.plotTop+this.plotHeight+v[2]+1,v=this.plotLeft+this.plotWidth+v[1]+1;var y=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),C=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0);u=this.scrollablePixelsX?[["M",0,u],["L",this.plotLeft-1,u],["L",this.plotLeft-1,p],["L",0,p],["Z"],["M",y,u],["L",this.chartWidth,u],["L",this.chartWidth,p],["L",y,p],["Z"]]:this.scrollablePixelsY?[["M",g,0],["L",g,this.plotTop-1],["L",v,this.plotTop-1],["L",v,0],["Z"],["M",g,C],["L",g,this.chartHeight],["L",v,this.chartHeight],["L",v,C],["Z"]]:[["M",0,0]],this.redrawTrigger!=="adjustHeight"&&this.scrollableMask.attr({d:u})},G(R,"afterInit",function(){this.chart.scrollableDirty=!0}),G(Y,"show",function(){this.chart.scrollableDirty=!0})}),N(rt,"Core/Axis/Stacking/StackItem.js",[rt["Core/FormatUtilities.js"],rt["Core/Series/SeriesRegistry.js"],rt["Core/Utilities.js"]],function(W,R,U){var Y=W.format,Z=R.series,q=U.destroyObjectProperties,$=U.pick,G=U.isNumber;return W=function(){function D(E,x,T,u,p){var g=E.chart.inverted,v=E.reversed;this.axis=E,E=this.isNegative=!!T!=!!v,this.options=x=x||{},this.x=u,this.cumulative=this.total=null,this.points={},this.hasValidPoints=!1,this.stack=p,this.rightCliff=this.leftCliff=0,this.alignOptions={align:x.align||(g?E?"left":"right":"center"),verticalAlign:x.verticalAlign||(g?"middle":E?"bottom":"top"),y:x.y,x:x.x},this.textAlign=x.textAlign||(g?E?"right":"left":"center")}return D.prototype.destroy=function(){q(this,this.axis)},D.prototype.render=function(E){var x=this.axis.chart,T=this.options,u=T.format;u=u?Y(u,this,x):T.formatter.call(this),this.label?this.label.attr({text:u,visibility:"hidden"}):(this.label=x.renderer.label(u,null,void 0,T.shape,void 0,void 0,T.useHTML,!1,"stack-labels"),u={r:T.borderRadius||0,text:u,padding:$(T.padding,5),visibility:"hidden"},x.styledMode||(u.fill=T.backgroundColor,u.stroke=T.borderColor,u["stroke-width"]=T.borderWidth,this.label.css(T.style||{})),this.label.attr(u),this.label.added||this.label.add(E)),this.label.labelrank=x.plotSizeY},D.prototype.setOffset=function(E,x,T,u,p,g){var v=this.alignOptions,y=this.axis,C=this.label,P=this.options,L=this.textAlign,M=y.chart;E=this.getStackBox({xOffset:E,width:x,boxBottom:T,boxTop:u,defaultX:p,xAxis:g}),p=v.verticalAlign,C&&E&&(x=C.getBBox(),T=C.padding,u=$(P.overflow,"justify")==="justify",v.x=P.x||0,v.y=P.y||0,L=(p=this.adjustStackPosition({labelBox:x,verticalAlign:p,textAlign:L})).x,p=p.y,E.x-=L,E.y-=p,C.align(v,!1,E),(L=M.isInsidePlot(C.alignAttr.x+v.x+L,C.alignAttr.y+v.y+p))||(u=!1),u&&Z.prototype.justifyDataLabel.call(y,C,v,C.alignAttr,x,E),C.attr({x:C.alignAttr.x,y:C.alignAttr.y,rotation:P.rotation,rotationOriginX:x.width/2,rotationOriginY:x.height/2}),$(!u&&P.crop,!0)&&(L=G(C.x)&&G(C.y)&&M.isInsidePlot(C.x-T+C.width,C.y)&&M.isInsidePlot(C.x+T,C.y)),C[L?"show":"hide"]())},D.prototype.adjustStackPosition=function(E){var x=E.labelBox,T={bottom:0,middle:1,top:2,right:1,center:0,left:-1};return{x:x.width/2+x.width/2*T[E.textAlign],y:x.height/2*T[E.verticalAlign]}},D.prototype.getStackBox=function(E){var x=this.axis,T=x.chart,u=E.boxTop,p=E.defaultX,g=E.xOffset,v=E.width,y=E.boxBottom;return u=x.stacking.usePercentage?100:$(u,this.total,0),u=x.toPixels(u),E=$(p,(E.xAxis||T.xAxis[0]).toPixels(this.x))+g,x=x.toPixels(y||0),x=Math.abs(u-x),y=this.isNegative,T.inverted?{x:(y?u:u-x)-T.plotLeft,y:E-T.plotTop,width:x,height:v}:{x:E-T.plotLeft,y:(y?u-x:u)-T.plotTop,width:v,height:x}},D}(),W}),N(rt,"Core/Axis/Stacking/StackingAxis.js",[rt["Core/Animation/AnimationUtilities.js"],rt["Core/Axis/Axis.js"],rt["Core/Series/SeriesRegistry.js"],rt["Core/Axis/Stacking/StackItem.js"],rt["Core/Utilities.js"]],function(W,R,U,Y,Z){function q(){var r=this,o=r.inverted;r.yAxis.forEach(function(i){i.stacking&&i.stacking.stacks&&i.hasVisibleSeries&&(i.stacking.oldStacks=i.stacking.stacks)}),r.series.forEach(function(i){var c=i.xAxis&&i.xAxis.options||{};!i.options.stacking||i.visible!==!0&&r.options.chart.ignoreHiddenSeries!==!1||(i.stackKey=[i.type,h(i.options.stack,""),o?c.top:c.left,o?c.height:c.width].join())})}function $(){var r=this.stacking;if(r){var o=r.stacks;l(o,function(i,c){L(i),o[c]=null}),r&&r.stackTotalGroup&&r.stackTotalGroup.destroy()}}function G(){this.coll!=="yAxis"||this.stacking||(this.stacking=new e(this))}function D(r,o,i,c){return!P(r)||r.x!==o||c&&r.stackKey!==c?r={x:o,index:0,key:c,stackKey:c}:r.index++,r.key=[i,o,r.index].join(),r}function E(){var r,o=this,i=o.stackKey,c=o.yAxis.stacking.stacks,a=o.processedXData,s=o[o.options.stacking+"Stacker"];s&&[i,"-"+i].forEach(function(m){for(var A,O,d=a.length;d--;)A=a[d],r=o.getStackIndicator(r,A,o.index,m),(O=(A=c[m]&&c[m][A])&&A.points[r.key])&&s.call(o,O,A,d)})}function x(r,o,i){o=o.total?100/o.total:0,r[0]=C(r[0]*o),r[1]=C(r[1]*o),this.stackedYData[i]=r[1]}function T(){var r=this.yAxis.stacking;this.options.centerInCategory&&(this.is("column")||this.is("columnrange"))&&!this.options.stacking&&1<this.chart.series.length?v.setStackedPoints.call(this,"group"):r&&l(r.stacks,function(o,i){i.slice(-5)==="group"&&(l(o,function(c){return c.destroy()}),delete r.stacks[i])})}function u(r){var o=this.chart,i=r||this.options.stacking;if(i&&(this.visible===!0||o.options.chart.ignoreHiddenSeries===!1)){var c=this.processedXData,a=this.processedYData,s=[],m=a.length,A=this.options,O=A.threshold,d=h(A.startFromThreshold&&O,0);A=A.stack;var w,k,z="-"+(r=r?""+this.type+",".concat(i):this.stackKey),F=this.negStacks,j=(o=i==="group"?o.yAxis[0]:this.yAxis).stacking.stacks,I=o.stacking.oldStacks;for(o.stacking.stacksTouched+=1,k=0;k<m;k++){var _=c[k],V=a[k],X=this.getStackIndicator(X,_,this.index),H=X.key,Q=(w=F&&V<(d?0:O))?z:r;j[Q]||(j[Q]={}),j[Q][_]||(I[Q]&&I[Q][_]?(j[Q][_]=I[Q][_],j[Q][_].total=null):j[Q][_]=new Y(o,o.options.stackLabels,!!w,_,A)),Q=j[Q][_],V!==null?(Q.points[H]=Q.points[this.index]=[h(Q.cumulative,d)],P(Q.cumulative)||(Q.base=H),Q.touched=o.stacking.stacksTouched,0<X.index&&this.singleStacks===!1&&(Q.points[H][0]=Q.points[this.index+","+_+",0"][0])):Q.points[H]=Q.points[this.index]=null,i==="percent"?(w=w?r:z,F&&j[w]&&j[w][_]?(w=j[w][_],Q.total=w.total=Math.max(w.total,Q.total)+Math.abs(V)||0):Q.total=C(Q.total+(Math.abs(V)||0))):i==="group"?(f(V)&&(V=V[0]),V!==null&&(Q.total=(Q.total||0)+1)):Q.total=C(Q.total+(V||0)),Q.cumulative=i==="group"?(Q.total||1)-1:h(Q.cumulative,d)+(V||0),V!==null&&(Q.points[H].push(Q.cumulative),s[k]=Q.cumulative,Q.hasValidPoints=!0)}i==="percent"&&(o.stacking.usePercentage=!0),i!=="group"&&(this.stackedYData=s),o.stacking.oldStacks={}}}var p,g=W.getDeferredAnimation,v=U.series.prototype,y=Z.addEvent,C=Z.correctFloat,P=Z.defined,L=Z.destroyObjectProperties,M=Z.fireEvent,f=Z.isArray,b=Z.isNumber,l=Z.objectEach,h=Z.pick,e=function(){function r(o){this.oldStacks={},this.stacks={},this.stacksTouched=0,this.axis=o}return r.prototype.buildStacks=function(){var o,i=this.axis,c=i.series,a=i.options.reversedStacks,s=c.length;for(this.usePercentage=!1,o=s;o--;){var m=c[a?o:s-o-1];m.setStackedPoints(),m.setGroupedPoints()}for(o=0;o<s;o++)c[o].modifyStacks();M(i,"afterBuildStacks")},r.prototype.cleanStacks=function(){if(this.oldStacks)var o=this.stacks=this.oldStacks;l(o,function(i){l(i,function(c){c.cumulative=c.total})})},r.prototype.resetStacks=function(){var o=this;l(this.stacks,function(i){l(i,function(c,a){b(c.touched)&&c.touched<o.stacksTouched?(c.destroy(),delete i[a]):(c.total=null,c.cumulative=null)})})},r.prototype.renderStackTotals=function(){var o=this.axis,i=o.chart,c=i.renderer,a=this.stacks;o=g(i,o.options.stackLabels&&o.options.stackLabels.animation||!1);var s=this.stackTotalGroup=this.stackTotalGroup||c.g("stack-labels").attr({zIndex:6,opacity:0}).add();s.translate(i.plotLeft,i.plotTop),l(a,function(m){l(m,function(A){A.render(s)})}),s.animate({opacity:1},o)},r}();return function(r){var o=[];r.compose=function(i,c,a){o.indexOf(i)===-1&&(o.push(i),y(i,"init",G),y(i,"destroy",$)),o.indexOf(c)===-1&&(o.push(c),c.prototype.getStacks=q),o.indexOf(a)===-1&&(o.push(a),(i=a.prototype).getStackIndicator=D,i.modifyStacks=E,i.percentStacker=x,i.setGroupedPoints=T,i.setStackedPoints=u)}}(p||(p={})),p}),N(rt,"Series/Line/LineSeries.js",[rt["Core/Series/Series.js"],rt["Core/Series/SeriesRegistry.js"],rt["Core/Utilities.js"]],function(W,R,U){var Y=this&&this.__extends||function(){var $=function(G,D){return($=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,x){E.__proto__=x}||function(E,x){for(var T in x)x.hasOwnProperty(T)&&(E[T]=x[T])})(G,D)};return function(G,D){function E(){this.constructor=G}$(G,D),G.prototype=D===null?Object.create(D):(E.prototype=D.prototype,new E)}}(),Z=U.defined,q=U.merge;return U=function($){function G(){var D=$!==null&&$.apply(this,arguments)||this;return D.data=void 0,D.options=void 0,D.points=void 0,D}return Y(G,$),G.prototype.drawGraph=function(){var D=this,E=this.options,x=(this.gappedPath||this.getGraphPath).call(this),T=this.chart.styledMode,u=[["graph","highcharts-graph"]];T||u[0].push(E.lineColor||this.color||"#cccccc",E.dashStyle),(u=D.getZonesGraphs(u)).forEach(function(p,g){var v=p[0],y=D[v],C=y?"animate":"attr";y?(y.endX=D.preventGraphAnimation?null:x.xMap,y.animate({d:x})):x.length&&(D[v]=y=D.chart.renderer.path(x).addClass(p[1]).attr({zIndex:1}).add(D.group)),y&&!T&&(v={stroke:p[2],"stroke-width":E.lineWidth||0,fill:D.fillGraph&&D.color||"none"},p[3]?v.dashstyle=p[3]:E.linecap!=="square"&&(v["stroke-linecap"]=v["stroke-linejoin"]="round"),y[C](v).shadow(2>g&&E.shadow)),y&&(y.startX=x.xMap,y.isArea=x.isArea)})},G.prototype.getGraphPath=function(D,E,x){var T,u=this,p=u.options,g=[],v=[],y=p.step,C=(D=D||u.points).reversed;return C&&D.reverse(),(y={right:1,center:2}[y]||y&&3)&&C&&(y=4-y),(D=this.getValidPoints(D,!1,!(p.connectNulls&&!E&&!x))).forEach(function(P,L){var M=P.plotX,f=P.plotY,b=D[L-1];(P.leftCliff||b&&b.rightCliff)&&!x&&(T=!0),P.isNull&&!Z(E)&&0<L?T=!p.connectNulls:P.isNull&&!E?T=!0:(L===0||T?L=[["M",P.plotX,P.plotY]]:u.getPointSpline?L=[u.getPointSpline(D,P,L)]:y?(L=y===1?[["L",b.plotX,f]]:y===2?[["L",(b.plotX+M)/2,b.plotY],["L",(b.plotX+M)/2,f]]:[["L",M,b.plotY]]).push(["L",M,f]):L=[["L",M,f]],v.push(P.x),y&&(v.push(P.x),y===2&&v.push(P.x)),g.push.apply(g,L),T=!1)}),g.xMap=v,u.graphPath=g},G.prototype.getZonesGraphs=function(D){return this.zones.forEach(function(E,x){x=["zone-graph-"+x,"highcharts-graph highcharts-zone-graph-"+x+" "+(E.className||"")],this.chart.styledMode||x.push(E.color||this.color,E.dashStyle||this.options.dashStyle),D.push(x)},this),D},G.defaultOptions=q(W.defaultOptions,{}),G}(W),R.registerSeriesType("line",U),U}),N(rt,"Series/Area/AreaSeries.js",[rt["Core/Color/Color.js"],rt["Core/Legend/LegendSymbol.js"],rt["Core/Series/SeriesRegistry.js"],rt["Core/Utilities.js"]],function(W,R,U,Y){var Z=this&&this.__extends||function(){var x=function(T,u){return x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,g){p.__proto__=g}||function(p,g){for(var v in g)g.hasOwnProperty(v)&&(p[v]=g[v])},x(T,u)};return function(T,u){function p(){this.constructor=T}x(T,u),T.prototype=u===null?Object.create(u):(p.prototype=u.prototype,new p)}}(),q=W.parse,$=U.seriesTypes.line;W=Y.extend;var G=Y.merge,D=Y.objectEach,E=Y.pick;return Y=function(x){function T(){var u=x!==null&&x.apply(this,arguments)||this;return u.data=void 0,u.options=void 0,u.points=void 0,u}return Z(T,x),T.prototype.drawGraph=function(){this.areaPath=[],x.prototype.drawGraph.apply(this);var u=this,p=this.areaPath,g=this.options,v=[["area","highcharts-area",this.color,g.fillColor]];this.zones.forEach(function(y,C){v.push(["zone-area-"+C,"highcharts-area highcharts-zone-area-"+C+" "+y.className,y.color||u.color,y.fillColor||g.fillColor])}),v.forEach(function(y){var C=y[0],P={},L=u[C],M=L?"animate":"attr";L?(L.endX=u.preventGraphAnimation?null:p.xMap,L.animate({d:p})):(P.zIndex=0,(L=u[C]=u.chart.renderer.path(p).addClass(y[1]).add(u.group)).isArea=!0),u.chart.styledMode||(P.fill=E(y[3],q(y[2]).setOpacity(E(g.fillOpacity,.75)).get())),L[M](P),L.startX=p.xMap,L.shiftUnit=g.step?2:1})},T.prototype.getGraphPath=function(u){var p=$.prototype.getGraphPath,g=this.options,v=g.stacking,y=this.yAxis,C=[],P=[],L=this.index,M=y.stacking.stacks[this.stackKey],f=g.threshold,b=Math.round(y.getThreshold(g.threshold));g=E(g.connectNulls,v==="percent");var l=function(c,a,s){var m=u[c];c=v&&M[m.x].points[L];var A=m[s+"Null"]||0;if(s=m[s+"Cliff"]||0,m=!0,s||A){var O=(A?c[0]:c[1])+s,d=c[0]+s;m=!!A}else!v&&u[a]&&u[a].isNull&&(O=d=f);O!==void 0&&(P.push({plotX:o,plotY:O===null?b:y.getThreshold(O),isNull:m,isCliff:!0}),C.push({plotX:o,plotY:d===null?b:y.getThreshold(d),doCurve:!1}))};u=u||this.points,v&&(u=this.getStackPoints(u));for(var h=0,e=u.length;h<e;++h){v||(u[h].leftCliff=u[h].rightCliff=u[h].leftNull=u[h].rightNull=void 0);var r=u[h].isNull,o=E(u[h].rectPlotX,u[h].plotX),i=v?E(u[h].yBottom,b):b;r&&!g||(g||l(h,h-1,"left"),r&&!v&&g||(P.push(u[h]),C.push({x:h,plotX:o,plotY:i})),g||l(h,h+1,"right"))}return l=p.call(this,P,!0,!0),C.reversed=!0,(i=(r=p.call(this,C,!0,!0))[0])&&i[0]==="M"&&(r[0]=["L",i[1],i[2]]),(r=l.concat(r)).length&&r.push(["Z"]),p=p.call(this,P,!1,g),r.xMap=l.xMap,this.areaPath=r,p},T.prototype.getStackPoints=function(u){var p=this,g=[],v=[],y=this.xAxis,C=this.yAxis,P=C.stacking.stacks[this.stackKey],L={},M=C.series,f=M.length,b=C.options.reversedStacks?1:-1,l=M.indexOf(p);if(u=u||this.points,this.options.stacking){for(var h=0;h<u.length;h++)u[h].leftNull=u[h].rightNull=void 0,L[u[h].x]=u[h];D(P,function(r,o){r.total!==null&&v.push(o)}),v.sort(function(r,o){return r-o});var e=M.map(function(r){return r.visible});v.forEach(function(r,o){var i,c,a=0;if(L[r]&&!L[r].isNull)g.push(L[r]),[-1,1].forEach(function(m){var A=m===1?"rightNull":"leftNull",O=P[v[o+m]],d=0;if(O)for(var w=l;0<=w&&w<f;){var k=M[w].index;(i=O.points[k])||(k===p.index?L[r][A]=!0:e[w]&&(c=P[r].points[k])&&(d-=c[1]-c[0])),w+=b}L[r][m===1?"rightCliff":"leftCliff"]=d});else{for(var s=l;0<=s&&s<f;){if(i=P[r].points[M[s].index]){a=i[1];break}s+=b}a=E(a,0),a=C.translate(a,0,1,0,1),g.push({isNull:!0,plotX:y.translate(r,0,0,0,1),x:r,plotY:a,yBottom:a})}})}return g},T.defaultOptions=G($.defaultOptions,{threshold:0}),T}($),W(Y.prototype,{singleStacks:!1,drawLegendSymbol:R.drawRectangle}),U.registerSeriesType("area",Y),Y}),N(rt,"Series/Spline/SplineSeries.js",[rt["Core/Series/SeriesRegistry.js"],rt["Core/Utilities.js"]],function(W,R){var U=this&&this.__extends||function(){var $=function(G,D){return($=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,x){E.__proto__=x}||function(E,x){for(var T in x)x.hasOwnProperty(T)&&(E[T]=x[T])})(G,D)};return function(G,D){function E(){this.constructor=G}$(G,D),G.prototype=D===null?Object.create(D):(E.prototype=D.prototype,new E)}}(),Y=W.seriesTypes.line,Z=R.merge,q=R.pick;return R=function($){function G(){var D=$!==null&&$.apply(this,arguments)||this;return D.data=void 0,D.options=void 0,D.points=void 0,D}return U(G,$),G.prototype.getPointSpline=function(D,E,x){var T=E.plotX||0,u=E.plotY||0,p=D[x-1];if(x=D[x+1],p&&!p.isNull&&p.doCurve!==!1&&!E.isCliff&&x&&!x.isNull&&x.doCurve!==!1&&!E.isCliff){D=p.plotY||0;var g=x.plotX||0;x=x.plotY||0;var v=0,y=(1.5*T+(p.plotX||0))/2.5,C=(1.5*u+D)/2.5,P=(1.5*u+x)/2.5;(g=(1.5*T+g)/2.5)!==y&&(v=(P-C)*(g-T)/(g-y)+u-P),P+=v,(C+=v)>D&&C>u?P=2*u-(C=Math.max(D,u)):C<D&&C<u&&(P=2*u-(C=Math.min(D,u))),P>x&&P>u?C=2*u-(P=Math.max(x,u)):P<x&&P<u&&(C=2*u-(P=Math.min(x,u))),E.rightContX=g,E.rightContY=P}return E=["C",q(p.rightContX,p.plotX,0),q(p.rightContY,p.plotY,0),q(y,T,0),q(C,u,0),T,u],p.rightContX=p.rightContY=void 0,E},G.defaultOptions=Z(Y.defaultOptions),G}(Y),W.registerSeriesType("spline",R),R}),N(rt,"Series/AreaSpline/AreaSplineSeries.js",[rt["Series/Spline/SplineSeries.js"],rt["Core/Legend/LegendSymbol.js"],rt["Core/Series/SeriesRegistry.js"],rt["Core/Utilities.js"]],function(W,R,U,Y){var Z=this&&this.__extends||function(){var E=function(x,T){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,p){u.__proto__=p}||function(u,p){for(var g in p)p.hasOwnProperty(g)&&(u[g]=p[g])},E(x,T)};return function(x,T){function u(){this.constructor=x}E(x,T),x.prototype=T===null?Object.create(T):(u.prototype=T.prototype,new u)}}(),q=U.seriesTypes,$=q.area;q=q.area.prototype;var G=Y.extend,D=Y.merge;return Y=function(E){function x(){var T=E!==null&&E.apply(this,arguments)||this;return T.data=void 0,T.points=void 0,T.options=void 0,T}return Z(x,E),x.defaultOptions=D(W.defaultOptions,$.defaultOptions),x}(W),G(Y.prototype,{getGraphPath:q.getGraphPath,getStackPoints:q.getStackPoints,drawGraph:q.drawGraph,drawLegendSymbol:R.drawRectangle}),U.registerSeriesType("areaspline",Y),Y}),N(rt,"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"}}),N(rt,"Series/Column/ColumnSeries.js",[rt["Core/Animation/AnimationUtilities.js"],rt["Core/Color/Color.js"],rt["Series/Column/ColumnSeriesDefaults.js"],rt["Core/Globals.js"],rt["Core/Legend/LegendSymbol.js"],rt["Core/Series/Series.js"],rt["Core/Series/SeriesRegistry.js"],rt["Core/Utilities.js"]],function(W,R,U,Y,Z,q,$,G){var D=this&&this.__extends||function(){var f=function(b,l){return f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,e){h.__proto__=e}||function(h,e){for(var r in e)e.hasOwnProperty(r)&&(h[r]=e[r])},f(b,l)};return function(b,l){function h(){this.constructor=b}f(b,l),b.prototype=l===null?Object.create(l):(h.prototype=l.prototype,new h)}}(),E=W.animObject,x=R.parse,T=Y.hasTouch;W=Y.noop;var u=G.clamp,p=G.defined,g=G.extend,v=G.fireEvent,y=G.isArray,C=G.isNumber,P=G.merge,L=G.pick,M=G.objectEach;return G=function(f){function b(){var l=f!==null&&f.apply(this,arguments)||this;return l.borderWidth=void 0,l.data=void 0,l.group=void 0,l.options=void 0,l.points=void 0,l}return D(b,f),b.prototype.animate=function(l){var h=this,e=this.yAxis,r=h.options,o=this.chart.inverted,i={},c=o?"translateX":"translateY";if(l)i.scaleY=.001,l=u(e.toPixels(r.threshold),e.pos,e.pos+e.len),o?i.translateX=l-e.len:i.translateY=l,h.clipBox&&h.setClip(),h.group.attr(i);else{var a=Number(h.group.attr(c));h.group.animate({scaleY:1},g(E(h.options.animation),{step:function(s,m){h.group&&(i[c]=a+m.pos*(e.pos-a),h.group.attr(i))}}))}},b.prototype.init=function(l,h){f.prototype.init.apply(this,arguments);var e=this;(l=e.chart).hasRendered&&l.series.forEach(function(r){r.type===e.type&&(r.isDirty=!0)})},b.prototype.getColumnMetrics=function(){var l=this,h=l.options,e=l.xAxis,r=l.yAxis,o=e.options.reversedStacks;o=e.reversed&&!o||!e.reversed&&o;var i,c={},a=0;h.grouping===!1?a=1:l.chart.series.forEach(function(O){var d=O.yAxis,w=O.options;if(O.type===l.type&&(O.visible||!l.chart.options.chart.ignoreHiddenSeries)&&r.len===d.len&&r.pos===d.pos){if(w.stacking&&w.stacking!=="group"){i=O.stackKey,c[i]===void 0&&(c[i]=a++);var k=c[i]}else w.grouping!==!1&&(k=a++);O.columnIndex=k}});var s=Math.min(Math.abs(e.transA)*(e.ordinal&&e.ordinal.slope||h.pointRange||e.closestPointRange||e.tickInterval||1),e.len),m=s*h.groupPadding,A=(s-2*m)/(a||1);return h=Math.min(h.maxPointWidth||e.len,L(h.pointWidth,A*(1-2*h.pointPadding))),l.columnMetrics={width:h,offset:(A-h)/2+(m+((l.columnIndex||0)+(o?1:0))*A-s/2)*(o?-1:1),paddedWidth:A,columnCount:a},l.columnMetrics},b.prototype.crispCol=function(l,h,e,r){var o=this.chart,i=this.borderWidth,c=-(i%2?.5:0);return i=i%2?.5:1,o.inverted&&o.renderer.isVML&&(i+=1),this.options.crisp&&(e=Math.round(l+e)+c,e-=l=Math.round(l)+c),r=Math.round(h+r)+i,c=.5>=Math.abs(h)&&.5<r,r-=h=Math.round(h)+i,c&&r&&(--h,r+=1),{x:l,y:h,width:e,height:r}},b.prototype.adjustForMissingColumns=function(l,h,e,r){var o=this,i=this.options.stacking;if(!e.isNull&&1<r.columnCount){var c=this.yAxis.options.reversedStacks,a=0,s=c?0:-r.columnCount;M(this.yAxis.stacking&&this.yAxis.stacking.stacks,function(m){if(typeof e.x=="number"){var A=m[e.x.toString()];A&&(m=A.points[o.index],i?(m&&(a=s),A.hasValidPoints&&(c?s++:s--)):y(m)&&(m=Object.keys(A.points).filter(function(O){return!O.match(",")&&A.points[O]&&1<A.points[O].length}).map(parseFloat).sort(function(O,d){return d-O}),a=m.indexOf(o.index),s=m.length))}}),l=(e.plotX||0)+((s-1)*r.paddedWidth+h)/2-h-a*r.paddedWidth}return l},b.prototype.translate=function(){var l=this,h=l.chart,e=l.options,r=l.dense=2>l.closestPointRange*l.xAxis.transA;r=l.borderWidth=L(e.borderWidth,r?0:1);var o=l.xAxis,i=l.yAxis,c=e.threshold,a=l.translatedThreshold=i.getThreshold(c),s=L(e.minPointLength,5),m=l.getColumnMetrics(),A=m.width,O=l.pointXOffset=m.offset,d=l.dataMin,w=l.dataMax,k=l.barW=Math.max(A,1+2*r);h.inverted&&(a-=.5),e.pointPadding&&(k=Math.ceil(k)),q.prototype.translate.apply(l),l.points.forEach(function(z){var F=L(z.yBottom,a),j=999+Math.abs(F),I=z.plotX||0;j=u(z.plotY,-j,i.len+j);var _=Math.min(j,F),V=Math.max(j,F)-_,X=A,H=I+O,Q=k;s&&Math.abs(V)<s&&(V=s,I=!i.reversed&&!z.negative||i.reversed&&z.negative,C(c)&&C(w)&&z.y===c&&w<=c&&(i.min||0)<c&&(d!==w||(i.max||0)<=c)&&(I=!I),_=Math.abs(_-a)>s?F-s:a-(I?s:0)),p(z.options.pointWidth)&&(X=Q=Math.ceil(z.options.pointWidth),H-=Math.round((X-A)/2)),e.centerInCategory&&(H=l.adjustForMissingColumns(H,X,z,m)),z.barX=H,z.pointWidth=X,z.tooltipPos=h.inverted?[u(i.len+i.pos-h.plotLeft-j,i.pos-h.plotLeft,i.len+i.pos-h.plotLeft),o.len+o.pos-h.plotTop-H-Q/2,V]:[o.left-h.plotLeft+H+Q/2,u(j+i.pos-h.plotTop,i.pos-h.plotTop,i.len+i.pos-h.plotTop),V],z.shapeType=l.pointClass.prototype.shapeType||"rect",z.shapeArgs=l.crispCol.apply(l,z.isNull?[H,a,Q,0]:[H,_,Q,V])})},b.prototype.drawGraph=function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")},b.prototype.pointAttribs=function(l,h){var e=this.options,r=this.pointAttrToOptions||{},o=r.stroke||"borderColor",i=r["stroke-width"]||"borderWidth",c=l&&l.color||this.color,a=l&&l[o]||e[o]||c;r=l&&l.options.dashStyle||e.dashStyle;var s=l&&l[i]||e[i]||this[i]||0,m=L(l&&l.opacity,e.opacity,1);if(l&&this.zones.length){var A=l.getZone();c=l.options.color||A&&(A.color||l.nonZonedColor)||this.color,A&&(a=A.borderColor||a,r=A.dashStyle||r,s=A.borderWidth||s)}return h&&l&&(h=(l=P(e.states[h],l.options.states&&l.options.states[h]||{})).brightness,c=l.color||h!==void 0&&x(c).brighten(l.brightness).get()||c,a=l[o]||a,s=l[i]||s,r=l.dashStyle||r,m=L(l.opacity,m)),o={fill:c,stroke:a,"stroke-width":s,opacity:m},r&&(o.dashstyle=r),o},b.prototype.drawPoints=function(l){l===void 0&&(l=this.points);var h,e=this,r=this.chart,o=e.options,i=r.renderer,c=o.animationLimit||250;l.forEach(function(a){var s=a.graphic,m=!!s,A=s&&r.pointCount<c?"animate":"attr";C(a.plotY)&&a.y!==null?(h=a.shapeArgs,s&&a.hasNewShapeType()&&(s=s.destroy()),e.enabledDataSorting&&(a.startXPos=e.xAxis.reversed?-(h&&h.width||0):e.xAxis.width),s||(a.graphic=s=i[a.shapeType](h).add(a.group||e.group))&&e.enabledDataSorting&&r.hasRendered&&r.pointCount<c&&(s.attr({x:a.startXPos}),m=!0,A="animate"),s&&m&&s[A](P(h)),o.borderRadius&&s[A]({r:o.borderRadius}),r.styledMode||s[A](e.pointAttribs(a,a.selected&&"select")).shadow(a.allowShadow!==!1&&o.shadow,null,o.stacking&&!o.borderRadius),s&&(s.addClass(a.getClassName(),!0),s.attr({visibility:a.visible?"inherit":"hidden"}))):s&&(a.graphic=s.destroy())})},b.prototype.drawTracker=function(l){l===void 0&&(l=this.points);var h,e=this,r=e.chart,o=r.pointer,i=function(c){var a=o.getPointFromEvent(c);a!==void 0&&(o.isDirectTouch=!0,a.onMouseOver(c))};l.forEach(function(c){h=y(c.dataLabels)?c.dataLabels:c.dataLabel?[c.dataLabel]:[],c.graphic&&(c.graphic.element.point=c),h.forEach(function(a){a.div?a.div.point=c:a.element.point=c})}),e._hasTracking||(e.trackerGroups.forEach(function(c){e[c]&&(e[c].addClass("highcharts-tracker").on("mouseover",i).on("mouseout",function(a){o.onTrackerMouseOut(a)}),T&&e[c].on("touchstart",i),!r.styledMode&&e.options.cursor&&e[c].css({cursor:e.options.cursor}))}),e._hasTracking=!0),v(this,"afterDrawTracker")},b.prototype.remove=function(){var l=this,h=l.chart;h.hasRendered&&h.series.forEach(function(e){e.type===l.type&&(e.isDirty=!0)}),q.prototype.remove.apply(l,arguments)},b.defaultOptions=P(q.defaultOptions,U),b}(q),g(G.prototype,{cropShoulder:0,directTouch:!0,drawLegendSymbol:Z.drawRectangle,getSymbol:W,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]}),$.registerSeriesType("column",G),G}),N(rt,"Core/Series/DataLabel.js",[rt["Core/Animation/AnimationUtilities.js"],rt["Core/FormatUtilities.js"],rt["Core/Utilities.js"]],function(W,R,U){var Y,Z=W.getDeferredAnimation,q=R.format,$=U.defined,G=U.extend,D=U.fireEvent,E=U.isArray,x=U.isString,T=U.merge,u=U.objectEach,p=U.pick,g=U.splat;return function(v){function y(b,l,h,e,r){var o=this,i=this.chart,c=this.isCartesian&&i.inverted,a=this.enabledDataSorting,s=b.plotX,m=b.plotY,A=h.rotation,O=h.align,d=$(s)&&$(m)&&i.isInsidePlot(s,Math.round(m),{inverted:c,paneCoordinates:!0,series:o});m=function(F){a&&o.xAxis&&!w&&o.setDataLabelStartPos(b,l,r,d,F)};var w=p(h.overflow,a?"none":"justify")==="justify";if(s=this.visible&&b.visible!==!1&&$(s)&&(b.series.forceDL||a&&!w||d||p(h.inside,!!this.options.stacking)&&e&&i.isInsidePlot(s,c?e.x+1:e.y+e.height-1,{inverted:c,paneCoordinates:!0,series:o})),c=b.pos(),s&&c){A&&l.attr({align:O}),O=l.getBBox(!0);var k=[0,0],z=i.renderer.fontMetrics(i.styledMode?void 0:h.style.fontSize,l).b;e=G({x:c[0],y:Math.round(c[1]),width:0,height:0},e),G(h,{width:O.width,height:O.height}),A?(w=!1,k=i.renderer.rotCorr(z,A),z={x:e.x+(h.x||0)+e.width/2+k.x,y:e.y+(h.y||0)+{top:0,middle:.5,bottom:1}[h.verticalAlign]*e.height},k=[O.x-Number(l.attr("x")),O.y-Number(l.attr("y"))],m(z),l[r?"attr":"animate"](z)):(m(e),l.align(h,void 0,e),z=l.alignAttr),w&&0<=e.height?this.justifyDataLabel(l,h,z,O,e,r):p(h.crop,!0)&&(e=z.x,m=z.y,e+=k[0],m+=k[1],s=i.isInsidePlot(e,m,{paneCoordinates:!0,series:o})&&i.isInsidePlot(e+O.width,m+O.height,{paneCoordinates:!0,series:o})),h.shape&&!A&&l[r?"attr":"animate"]({anchorX:c[0],anchorY:c[1]})}r&&a&&(l.placed=!1),s||a&&!w?l.show():(l.hide(),l.placed=!1)}function C(b){b===void 0&&(b=this.points);var l=this,h=l.chart,e=l.options,r=l.hasRendered||0,o=h.renderer,i=h.options.chart,c=i.backgroundColor;i=i.plotBackgroundColor;var a=o.getContrast(x(i)&&i||x(c)&&c||"#000000"),s=e.dataLabels;if(c=s.animation,c=s.defer?Z(h,c,l):{defer:0,duration:0},s=L(L(h.options.plotOptions&&h.options.plotOptions.series&&h.options.plotOptions.series.dataLabels,h.options.plotOptions&&h.options.plotOptions[l.type]&&h.options.plotOptions[l.type].dataLabels),s),D(this,"drawDataLabels"),E(s)||s.enabled||l._hasPointLabels){var m=l.plotGroup("dataLabelsGroup","data-labels",r?"inherit":"hidden",s.zIndex||6);m.attr({opacity:+r}),!r&&(r=l.dataLabelsGroup)&&(l.visible&&m.show(),r[e.animation?"animate":"attr"]({opacity:1},c)),b.forEach(function(A){g(L(s,A.dlOptions||A.options&&A.options.dataLabels)).forEach(function(O,d){var w=O.enabled&&(!A.isNull||A.dataLabelOnNull)&&function(Q,et){var tt=et.filter;return!tt||(et=tt.operator,Q=Q[tt.property],tt=tt.value,et===">"&&Q>tt||et==="<"&&Q<tt||et===">="&&Q>=tt||et==="<="&&Q<=tt||et==="=="&&Q==tt||et==="==="&&Q===tt)}(A,O),k=A.connectors?A.connectors[d]:A.connector,z=A.dataLabels?A.dataLabels[d]:A.dataLabel,F=!z,j=p(O.distance,A.labelDistance);if(w){var I=A.getLabelConfig(),_=p(O[A.formatPrefix+"Format"],O.format);I=$(_)?q(_,I,h):(O[A.formatPrefix+"Formatter"]||O.formatter).call(I,O),_=O.style;var V=O.rotation;h.styledMode||(_.color=p(O.color,_.color,l.color,"#000000"),_.color==="contrast"?(A.contrastColor=o.getContrast(A.color||l.color),_.color=!$(j)&&O.inside||0>j||e.stacking?A.contrastColor:a):delete A.contrastColor,e.cursor&&(_.cursor=e.cursor));var X={r:O.borderRadius||0,rotation:V,padding:O.padding,zIndex:1};if(!h.styledMode){j=O.backgroundColor;var H=O.borderColor;X.fill=j==="auto"?A.color:j,X.stroke=H==="auto"?A.color:H,X["stroke-width"]=O.borderWidth}u(X,function(Q,et){Q===void 0&&delete X[et]})}!z||w&&$(I)&&!!z.div==!!O.useHTML&&(z.rotation&&O.rotation||z.rotation===O.rotation)||(F=!0,A.dataLabel=z=A.dataLabel&&A.dataLabel.destroy(),A.dataLabels&&(A.dataLabels.length===1?delete A.dataLabels:delete A.dataLabels[d]),d||delete A.dataLabel,k&&(A.connector=A.connector.destroy(),A.connectors&&(A.connectors.length===1?delete A.connectors:delete A.connectors[d]))),w&&$(I)?(z?X.text=I:(A.dataLabels=A.dataLabels||[],z=A.dataLabels[d]=V?o.text(I,0,0,O.useHTML).addClass("highcharts-data-label"):o.label(I,0,0,O.shape,null,null,O.useHTML,null,"data-label"),d||(A.dataLabel=z),z.addClass(" highcharts-data-label-color-"+A.colorIndex+" "+(O.className||"")+(O.useHTML?" highcharts-tracker":""))),z.options=O,z.attr(X),h.styledMode||z.css(_).shadow(O.shadow),(d=O[A.formatPrefix+"TextPath"]||O.textPath)&&!O.useHTML&&(z.setTextPath(A.getDataLabelPath&&A.getDataLabelPath(z)||A.graphic,d),A.dataLabelPath&&!d.enabled&&(A.dataLabelPath=A.dataLabelPath.destroy())),z.added||z.add(m),l.alignDataLabel(A,z,O,null,F)):z&&z.hide()})})}D(this,"afterDrawDataLabels")}function P(b,l,h,e,r,o){var i=this.chart,c=l.align,a=l.verticalAlign,s=b.box?0:b.padding||0,m=l.x;m=m===void 0?0:m;var A=l.y;A=A===void 0?0:A;var O=(h.x||0)+s;if(0>O){c==="right"&&0<=m?(l.align="left",l.inside=!0):m-=O;var d=!0}return(O=(h.x||0)+e.width-s)>i.plotWidth&&(c==="left"&&0>=m?(l.align="right",l.inside=!0):m+=i.plotWidth-O,d=!0),0>(O=h.y+s)&&(a==="bottom"&&0<=A?(l.verticalAlign="top",l.inside=!0):A-=O,d=!0),(O=(h.y||0)+e.height-s)>i.plotHeight&&(a==="top"&&0>=A?(l.verticalAlign="bottom",l.inside=!0):A+=i.plotHeight-O,d=!0),d&&(l.x=m,l.y=A,b.placed=!o,b.align(l,void 0,r)),d}function L(b,l){var h,e=[];if(E(b)&&!E(l))e=b.map(function(r){return T(r,l)});else if(E(l)&&!E(b))e=l.map(function(r){return T(b,r)});else if(E(b)||E(l))for(h=Math.max(b.length,l.length);h--;)e[h]=T(b[h],l[h]);else e=T(b,l);return e}function M(b,l,h,e,r){var o=this.chart,i=o.inverted,c=this.xAxis,a=c.reversed,s=i?l.height/2:l.width/2;b=(b=b.pointWidth)?b/2:0,l.startXPos=i?r.x:a?-s-b:c.width-s+b,l.startYPos=i?a?this.yAxis.height-s+b:-s-b:r.y,e?l.visibility==="hidden"&&(l.show(),l.attr({opacity:0}).animate({opacity:1})):l.attr({opacity:1}).animate({opacity:0},void 0,l.hide),o.hasRendered&&(h&&l.attr({x:l.startXPos,y:l.startYPos}),l.placed=!0)}var f=[];v.compose=function(b){if(f.indexOf(b)===-1){var l=b.prototype;f.push(b),l.alignDataLabel=y,l.drawDataLabels=C,l.justifyDataLabel=P,l.setDataLabelStartPos=M}}}(Y||(Y={})),Y}),N(rt,"Series/Column/ColumnDataLabel.js",[rt["Core/Series/DataLabel.js"],rt["Core/Series/SeriesRegistry.js"],rt["Core/Utilities.js"]],function(W,R,U){var Y,Z=R.series,q=U.merge,$=U.pick;return function(G){function D(x,T,u,p,g){var v=this.chart.inverted,y=x.series,C=(y.xAxis?y.xAxis.len:this.chart.plotSizeX)||0;y=(y.yAxis?y.yAxis.len:this.chart.plotSizeY)||0;var P=x.dlBox||x.shapeArgs,L=$(x.below,x.plotY>$(this.translatedThreshold,y)),M=$(u.inside,!!this.options.stacking);P&&(0>(p=q(P)).y&&(p.height+=p.y,p.y=0),0<(P=p.y+p.height-y)&&P<p.height&&(p.height-=P),v&&(p={x:y-p.y-p.height,y:C-p.x-p.width,width:p.height,height:p.width}),M||(v?(p.x+=L?0:p.width,p.width=0):(p.y+=L?p.height:0,p.height=0))),u.align=$(u.align,!v||M?"center":L?"right":"left"),u.verticalAlign=$(u.verticalAlign,v||M?"middle":L?"top":"bottom"),Z.prototype.alignDataLabel.call(this,x,T,u,p,g),u.inside&&x.contrastColor&&T.css({color:x.contrastColor})}var E=[];G.compose=function(x){W.compose(Z),E.indexOf(x)===-1&&(E.push(x),x.prototype.alignDataLabel=D)}}(Y||(Y={})),Y}),N(rt,"Series/Bar/BarSeries.js",[rt["Series/Column/ColumnSeries.js"],rt["Core/Series/SeriesRegistry.js"],rt["Core/Utilities.js"]],function(W,R,U){var Y=this&&this.__extends||function(){var $=function(G,D){return($=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,x){E.__proto__=x}||function(E,x){for(var T in x)x.hasOwnProperty(T)&&(E[T]=x[T])})(G,D)};return function(G,D){function E(){this.constructor=G}$(G,D),G.prototype=D===null?Object.create(D):(E.prototype=D.prototype,new E)}}(),Z=U.extend,q=U.merge;return U=function($){function G(){var D=$!==null&&$.apply(this,arguments)||this;return D.data=void 0,D.options=void 0,D.points=void 0,D}return Y(G,$),G.defaultOptions=q(W.defaultOptions,{}),G}(W),Z(U.prototype,{inverted:!0}),R.registerSeriesType("bar",U),U}),N(rt,"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/>"}}}),N(rt,"Series/Scatter/ScatterSeries.js",[rt["Series/Scatter/ScatterSeriesDefaults.js"],rt["Core/Series/SeriesRegistry.js"],rt["Core/Utilities.js"]],function(W,R,U){var Y=this&&this.__extends||function(){var E=function(x,T){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,p){u.__proto__=p}||function(u,p){for(var g in p)p.hasOwnProperty(g)&&(u[g]=p[g])},E(x,T)};return function(x,T){function u(){this.constructor=x}E(x,T),x.prototype=T===null?Object.create(T):(u.prototype=T.prototype,new u)}}(),Z=R.seriesTypes,q=Z.column,$=Z.line;Z=U.addEvent;var G=U.extend,D=U.merge;return U=function(E){function x(){var T=E!==null&&E.apply(this,arguments)||this;return T.data=void 0,T.options=void 0,T.points=void 0,T}return Y(x,E),x.prototype.applyJitter=function(){var T=this,u=this.options.jitter,p=this.points.length;u&&this.points.forEach(function(g,v){["x","y"].forEach(function(y,C){var P="plot"+y.toUpperCase();if(u[y]&&!g.isNull){var L=T[y+"Axis"],M=u[y]*L.transA;if(L&&!L.isLog){var f=Math.max(0,g[P]-M);L=Math.min(L.len,g[P]+M),C=1e4*Math.sin(v+C*p),g[P]=f+(L-f)*(C-Math.floor(C)),y==="x"&&(g.clientX=g.plotX)}}})})},x.prototype.drawGraph=function(){this.options.lineWidth?E.prototype.drawGraph.call(this):this.graph&&(this.graph=this.graph.destroy())},x.defaultOptions=D($.defaultOptions,W),x}($),G(U.prototype,{drawTracker:q.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1}),Z(U,"afterTranslate",function(){this.applyJitter()}),R.registerSeriesType("scatter",U),U}),N(rt,"Series/CenteredUtilities.js",[rt["Core/Globals.js"],rt["Core/Series/Series.js"],rt["Core/Utilities.js"]],function(W,R,U){var Y,Z=W.deg2rad,q=U.fireEvent,$=U.isNumber,G=U.pick,D=U.relativeLength;return function(E){E.getCenter=function(){var x=this.options,T=this.chart,u=2*(x.slicedOffset||0),p=T.plotWidth-2*u,g=T.plotHeight-2*u,v=x.center,y=Math.min(p,g),C=x.thickness,P=x.size,L=x.innerSize||0;for(typeof P=="string"&&(P=parseFloat(P)),typeof L=="string"&&(L=parseFloat(L)),x=[G(v[0],"50%"),G(v[1],"50%"),G(P&&0>P?void 0:x.size,"100%"),G(L&&0>L?void 0:x.innerSize||0,"0%")],!T.angular||this instanceof R||(x[3]=0),v=0;4>v;++v)P=x[v],T=2>v||v===2&&/%$/.test(P),x[v]=D(P,[p,g,y,x[2]][v])+(T?u:0);return x[3]>x[2]&&(x[3]=x[2]),$(C)&&2*C<x[2]&&0<C&&(x[3]=x[2]-2*C),q(this,"afterGetCenter",{positions:x}),x},E.getStartAndEndRadians=function(x,T){return x=$(x)?x:0,T=$(T)&&T>x&&360>T-x?T:x+360,{start:Z*(x+-90),end:Z*(T+-90)}}}(Y||(Y={})),Y}),N(rt,"Series/Pie/PiePoint.js",[rt["Core/Animation/AnimationUtilities.js"],rt["Core/Series/Point.js"],rt["Core/Utilities.js"]],function(W,R,U){var Y=this&&this.__extends||function(){var x=function(T,u){return x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,g){p.__proto__=g}||function(p,g){for(var v in g)g.hasOwnProperty(v)&&(p[v]=g[v])},x(T,u)};return function(T,u){function p(){this.constructor=T}x(T,u),T.prototype=u===null?Object.create(u):(p.prototype=u.prototype,new p)}}(),Z=W.setAnimation,q=U.addEvent,$=U.defined;W=U.extend;var G=U.isNumber,D=U.pick,E=U.relativeLength;return R=function(x){function T(){var u=x!==null&&x.apply(this,arguments)||this;return u.labelDistance=void 0,u.options=void 0,u.series=void 0,u}return Y(T,x),T.prototype.getConnectorPath=function(){var u=this.labelPosition,p=this.series.options.dataLabels,g=this.connectorShapes,v=p.connectorShape;return g[v]&&(v=g[v]),v.call(this,{x:u.final.x,y:u.final.y,alignment:u.alignment},u.connectorPosition,p)},T.prototype.getTranslate=function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},T.prototype.haloPath=function(u){var p=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(p.x,p.y,p.r+u,p.r+u,{innerR:p.r-1,start:p.start,end:p.end})},T.prototype.init=function(){var u=this;x.prototype.init.apply(this,arguments),this.name=D(this.name,"Slice");var p=function(g){u.slice(g.type==="select")};return q(this,"select",p),q(this,"unselect",p),this},T.prototype.isValid=function(){return G(this.y)&&0<=this.y},T.prototype.setVisible=function(u,p){var g=this,v=this.series,y=v.chart,C=v.options.ignoreHiddenPoint;p=D(p,C),u!==this.visible&&(this.visible=this.options.visible=u=u===void 0?!this.visible:u,v.options.data[v.data.indexOf(this)]=this.options,["graphic","dataLabel","connector","shadowGroup"].forEach(function(P){g[P]&&g[P][u?"show":"hide"](u)}),this.legendItem&&y.legend.colorizeItem(this,u),u||this.state!=="hover"||this.setState(""),C&&(v.isDirty=!0),p&&y.redraw())},T.prototype.slice=function(u,p,g){var v=this.series;Z(g,v.chart),D(p,!0),this.sliced=this.options.sliced=$(u)?u:!this.sliced,v.options.data[v.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate()),this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},T}(R),W(R.prototype,{connectorShapes:{fixedOffset:function(x,T,u){var p=T.breakAt;return T=T.touchingSliceAt,[["M",x.x,x.y],u.softConnector?["C",x.x+(x.alignment==="left"?-5:5),x.y,2*p.x-T.x,2*p.y-T.y,p.x,p.y]:["L",p.x,p.y],["L",T.x,T.y]]},straight:function(x,T){return T=T.touchingSliceAt,[["M",x.x,x.y],["L",T.x,T.y]]},crookedLine:function(x,T,u){T=T.touchingSliceAt;var p=this.series,g=p.center[0],v=p.chart.plotWidth,y=p.chart.plotLeft;p=x.alignment;var C=this.shapeArgs.r;return u=E(u.crookDistance,1),u=["L",v=p==="left"?g+C+(v+y-g-C)*(1-u):y+(g-C)*u,x.y],g=!0,(p==="left"?v>x.x||v<T.x:v<x.x||v>T.x)&&(g=!1),x=[["M",x.x,x.y]],g&&x.push(u),x.push(["L",T.x,T.y]),x}}}),R}),N(rt,"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}}}}),N(rt,"Series/Pie/PieSeries.js",[rt["Series/CenteredUtilities.js"],rt["Series/Column/ColumnSeries.js"],rt["Core/Globals.js"],rt["Core/Legend/LegendSymbol.js"],rt["Series/Pie/PiePoint.js"],rt["Series/Pie/PieSeriesDefaults.js"],rt["Core/Series/Series.js"],rt["Core/Series/SeriesRegistry.js"],rt["Core/Renderer/SVG/Symbols.js"],rt["Core/Utilities.js"]],function(W,R,U,Y,Z,q,$,G,D,E){var x=this&&this.__extends||function(){var P=function(L,M){return P=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,b){f.__proto__=b}||function(f,b){for(var l in b)b.hasOwnProperty(l)&&(f[l]=b[l])},P(L,M)};return function(L,M){function f(){this.constructor=L}P(L,M),L.prototype=M===null?Object.create(M):(f.prototype=M.prototype,new f)}}(),T=W.getStartAndEndRadians;U=U.noop;var u=E.clamp,p=E.extend,g=E.fireEvent,v=E.merge,y=E.pick,C=E.relativeLength;return E=function(P){function L(){var M=P!==null&&P.apply(this,arguments)||this;return M.center=void 0,M.data=void 0,M.maxLabelDistance=void 0,M.options=void 0,M.points=void 0,M}return x(L,P),L.prototype.animate=function(M){var f=this,b=f.points,l=f.startAngleRad;M||b.forEach(function(h){var e=h.graphic,r=h.shapeArgs;e&&r&&(e.attr({r:y(h.startR,f.center&&f.center[3]/2),start:l,end:l}),e.animate({r:r.r,start:r.start,end:r.end},f.options.animation))})},L.prototype.drawEmpty=function(){var M=this.startAngleRad,f=this.endAngleRad,b=this.options;if(this.total===0&&this.center){var l=this.center[0],h=this.center[1];this.graph||(this.graph=this.chart.renderer.arc(l,h,this.center[1]/2,0,M,f).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:D.arc(l,h,this.center[2]/2,0,{start:M,end:f,innerR:this.center[3]/2})}),this.chart.styledMode||this.graph.attr({"stroke-width":b.borderWidth,fill:b.fillColor||"none",stroke:b.color||"#cccccc"})}else this.graph&&(this.graph=this.graph.destroy())},L.prototype.drawPoints=function(){var M=this.chart.renderer;this.points.forEach(function(f){f.graphic&&f.hasNewShapeType()&&(f.graphic=f.graphic.destroy()),f.graphic||(f.graphic=M[f.shapeType](f.shapeArgs).add(f.series.group),f.delayedRendering=!0)})},L.prototype.generatePoints=function(){P.prototype.generatePoints.call(this),this.updateTotals()},L.prototype.getX=function(M,f,b){var l=this.center,h=this.radii?this.radii[b.index]||0:l[2]/2;return M=Math.asin(u((M-l[1])/(h+b.labelDistance),-1,1)),l[0]+(f?-1:1)*Math.cos(M)*(h+b.labelDistance)+(0<b.labelDistance?(f?-1:1)*this.options.dataLabels.padding:0)},L.prototype.hasData=function(){return!!this.processedXData.length},L.prototype.redrawPoints=function(){var M,f,b,l,h=this,e=h.chart,r=e.renderer,o=h.options.shadow;this.drawEmpty(),!o||h.shadowGroup||e.styledMode||(h.shadowGroup=r.g("shadow").attr({zIndex:-1}).add(h.group)),h.points.forEach(function(i){var c={};if(f=i.graphic,!i.isNull&&f){var a=void 0;l=i.shapeArgs,M=i.getTranslate(),e.styledMode||(a=i.shadowGroup,o&&!a&&(a=i.shadowGroup=r.g("shadow").add(h.shadowGroup)),a&&a.attr(M),b=h.pointAttribs(i,i.selected&&"select")),i.delayedRendering?(f.setRadialReference(h.center).attr(l).attr(M),e.styledMode||f.attr(b).attr({"stroke-linejoin":"round"}).shadow(o,a),i.delayedRendering=!1):(f.setRadialReference(h.center),e.styledMode||v(!0,c,b),v(!0,c,l,M),f.animate(c)),f.attr({visibility:i.visible?"inherit":"hidden"}),f.addClass(i.getClassName(),!0)}else f&&(i.graphic=f.destroy())})},L.prototype.sortByAngle=function(M,f){M.sort(function(b,l){return b.angle!==void 0&&(l.angle-b.angle)*f})},L.prototype.translate=function(M){g(this,"translate"),this.generatePoints();var f=this.options,b=f.slicedOffset,l=b+(f.borderWidth||0),h=T(f.startAngle,f.endAngle),e=this.startAngleRad=h.start;h=(this.endAngleRad=h.end)-e;var r=this.points,o=f.dataLabels.distance;f=f.ignoreHiddenPoint;var i,c=r.length,a=0;for(M||(this.center=M=this.getCenter()),i=0;i<c;i++){var s=r[i],m=e+a*h;!s.isValid()||f&&!s.visible||(a+=s.percentage/100);var A=e+a*h,O={x:M[0],y:M[1],r:M[2]/2,innerR:M[3]/2,start:Math.round(1e3*m)/1e3,end:Math.round(1e3*A)/1e3};s.shapeType="arc",s.shapeArgs=O,s.labelDistance=y(s.options.dataLabels&&s.options.dataLabels.distance,o),s.labelDistance=C(s.labelDistance,O.r),this.maxLabelDistance=Math.max(this.maxLabelDistance||0,s.labelDistance),(A=(A+m)/2)>1.5*Math.PI?A-=2*Math.PI:A<-Math.PI/2&&(A+=2*Math.PI),s.slicedTranslation={translateX:Math.round(Math.cos(A)*b),translateY:Math.round(Math.sin(A)*b)},O=Math.cos(A)*M[2]/2;var d=Math.sin(A)*M[2]/2;s.tooltipPos=[M[0]+.7*O,M[1]+.7*d],s.half=A<-Math.PI/2||A>Math.PI/2?1:0,s.angle=A,m=Math.min(l,s.labelDistance/5),s.labelPosition={natural:{x:M[0]+O+Math.cos(A)*s.labelDistance,y:M[1]+d+Math.sin(A)*s.labelDistance},final:{},alignment:0>s.labelDistance?"center":s.half?"right":"left",connectorPosition:{breakAt:{x:M[0]+O+Math.cos(A)*m,y:M[1]+d+Math.sin(A)*m},touchingSliceAt:{x:M[0]+O,y:M[1]+d}}}}g(this,"afterTranslate")},L.prototype.updateTotals=function(){var M,f=this.points,b=f.length,l=this.options.ignoreHiddenPoint,h=0;for(M=0;M<b;M++){var e=f[M];!e.isValid()||l&&!e.visible||(h+=e.y)}for(this.total=h,M=0;M<b;M++)(e=f[M]).percentage=0<h&&(e.visible||!l)?e.y/h*100:0,e.total=h},L.defaultOptions=v($.defaultOptions,q),L}($),p(E.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawLegendSymbol:Y.drawRectangle,drawTracker:R.prototype.drawTracker,getCenter:W.getCenter,getSymbol:U,isCartesian:!1,noSharedTooltip:!0,pointAttribs:R.prototype.pointAttribs,pointClass:Z,requireSorting:!1,searchPoint:U,trackerGroups:["group","dataLabelsGroup"]}),G.registerSeriesType("pie",E),E}),N(rt,"Series/Pie/PieDataLabel.js",[rt["Core/Series/DataLabel.js"],rt["Core/Globals.js"],rt["Core/Renderer/RendererUtilities.js"],rt["Core/Series/SeriesRegistry.js"],rt["Core/Utilities.js"]],function(W,R,U,Y,Z){var q,$=R.noop,G=U.distribute,D=Y.series,E=Z.arrayMax,x=Z.clamp,T=Z.defined,u=Z.merge,p=Z.pick,g=Z.relativeLength;return function(v){function y(){var f,b,l,h,e,r,o,i,c,a,s,m,A=this,O=A.data,d=A.chart,w=A.options.dataLabels||{},k=w.connectorPadding,z=d.plotWidth,F=d.plotHeight,j=d.plotLeft,I=Math.round(d.chartWidth/3),_=A.center,V=_[2]/2,X=_[1],H=[[],[]],Q=[0,0,0,0],et=A.dataLabelPositioners;A.visible&&(w.enabled||A._hasPointLabels)&&(O.forEach(function(tt){tt.dataLabel&&tt.visible&&tt.dataLabel.shortened&&(tt.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),tt.dataLabel.shortened=!1)}),D.prototype.drawDataLabels.apply(A),O.forEach(function(tt){tt.dataLabel&&(tt.visible?(H[tt.half].push(tt),tt.dataLabel._pos=null,!T(w.style.width)&&!T(tt.options.dataLabels&&tt.options.dataLabels.style&&tt.options.dataLabels.style.width)&&tt.dataLabel.getBBox().width>I&&(tt.dataLabel.css({width:Math.round(.7*I)+"px"}),tt.dataLabel.shortened=!0)):(tt.dataLabel=tt.dataLabel.destroy(),tt.dataLabels&&tt.dataLabels.length===1&&delete tt.dataLabels))}),H.forEach(function(tt,st){var ct,gt=tt.length,mt=[];if(gt){if(A.sortByAngle(tt,st-.5),0<A.maxLabelDistance){var bt=Math.max(0,X-V-A.maxLabelDistance),yt=Math.min(X+V+A.maxLabelDistance,d.plotHeight);tt.forEach(function(dt){0<dt.labelDistance&&dt.dataLabel&&(dt.top=Math.max(0,X-V-dt.labelDistance),dt.bottom=Math.min(X+V+dt.labelDistance,d.plotHeight),ct=dt.dataLabel.getBBox().height||21,dt.distributeBox={target:dt.labelPosition.natural.y-dt.top+ct/2,size:ct,rank:dt.y},mt.push(dt.distributeBox))}),G(mt,bt=yt+ct-bt,bt/5)}for(s=0;s<gt;s++){if(f=tt[s],r=f.labelPosition,h=f.dataLabel,a=f.visible===!1?"hidden":"inherit",c=bt=r.natural.y,mt&&T(f.distributeBox)&&(f.distributeBox.pos===void 0?a="hidden":(o=f.distributeBox.size,c=et.radialDistributionY(f))),delete f.positionIndex,w.justify)i=et.justify(f,V,_);else switch(w.alignTo){case"connectors":i=et.alignToConnectors(tt,st,z,j);break;case"plotEdges":i=et.alignToPlotEdges(h,st,z,j);break;default:i=et.radialDistributionX(A,f,c,bt)}h._attr={visibility:a,align:r.alignment},m=f.options.dataLabels||{},h._pos={x:i+p(m.x,w.x)+({left:k,right:-k}[r.alignment]||0),y:c+p(m.y,w.y)-10},r.final.x=i,r.final.y=c,p(w.crop,!0)&&(e=h.getBBox().width,bt=null,i-e<k&&st===1?(bt=Math.round(e-i+k),Q[3]=Math.max(bt,Q[3])):i+e>z-k&&st===0&&(bt=Math.round(i+e-z+k),Q[1]=Math.max(bt,Q[1])),0>c-o/2?Q[0]=Math.max(Math.round(o/2-c),Q[0]):c+o/2>F&&(Q[2]=Math.max(Math.round(c+o/2-F),Q[2])),h.sideOverflow=bt)}}}),E(Q)===0||this.verifyDataLabelOverflow(Q))&&(this.placeDataLabels(),this.points.forEach(function(tt){var st;m=u(w,tt.options.dataLabels),(b=p(m.connectorWidth,1))&&(l=tt.connector,(h=tt.dataLabel)&&h._pos&&tt.visible&&0<tt.labelDistance?(a=h._attr.visibility,(st=!l)&&(tt.connector=l=d.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+tt.colorIndex+(tt.className?" "+tt.className:"")).add(A.dataLabelsGroup),d.styledMode||l.attr({"stroke-width":b,stroke:m.connectorColor||tt.color||"#666666"})),l[st?"attr":"animate"]({d:tt.getConnectorPath()}),l.attr("visibility",a)):l&&(tt.connector=l.destroy()))}))}function C(){this.points.forEach(function(f){var b,l=f.dataLabel;l&&f.visible&&((b=l._pos)?(l.sideOverflow&&(l._attr.width=Math.max(l.getBBox().width-l.sideOverflow,0),l.css({width:l._attr.width+"px",textOverflow:(this.options.dataLabels.style||{}).textOverflow||"ellipsis"}),l.shortened=!0),l.attr(l._attr),l[l.moved?"animate":"attr"](b),l.moved=!0):l&&l.attr({y:-9999})),delete f.distributeBox},this)}function P(f){var b=this.center,l=this.options,h=l.center,e=l.minSize||80,r=l.size!==null;if(!r){if(h[0]!==null)var o=Math.max(b[2]-Math.max(f[1],f[3]),e);else o=Math.max(b[2]-f[1]-f[3],e),b[0]+=(f[3]-f[1])/2;h[1]!==null?o=x(o,e,b[2]-Math.max(f[0],f[2])):(o=x(o,e,b[2]-f[0]-f[2]),b[1]+=(f[0]-f[2])/2),o<b[2]?(b[2]=o,b[3]=Math.min(l.thickness?Math.max(0,o-2*l.thickness):Math.max(0,g(l.innerSize||0,o)),o),this.translate(b),this.drawDataLabels&&this.drawDataLabels()):r=!0}return r}var L=[],M={radialDistributionY:function(f){return f.top+f.distributeBox.pos},radialDistributionX:function(f,b,l,h){return f.getX(l<b.top+2||l>b.bottom-2?h:l,b.half,b)},justify:function(f,b,l){return l[0]+(f.half?-1:1)*(b+f.labelDistance)},alignToPlotEdges:function(f,b,l,h){return f=f.getBBox().width,b?f+h:l-f-h},alignToConnectors:function(f,b,l,h){var e,r=0;return f.forEach(function(o){(e=o.dataLabel.getBBox().width)>r&&(r=e)}),b?r+h:l-r-h}};v.compose=function(f){W.compose(D),L.indexOf(f)===-1&&(L.push(f),(f=f.prototype).dataLabelPositioners=M,f.alignDataLabel=$,f.drawDataLabels=y,f.placeDataLabels=C,f.verifyDataLabelOverflow=P)}}(q||(q={})),q}),N(rt,"Extensions/OverlappingDataLabels.js",[rt["Core/Chart/Chart.js"],rt["Core/Utilities.js"]],function(W,R){function U(E,x){var T=!1;if(E){var u=E.newOpacity;E.oldOpacity!==u&&(E.alignAttr&&E.placed?(E[u?"removeClass":"addClass"]("highcharts-data-label-hidden"),T=!0,E.alignAttr.opacity=u,E[E.isOld?"animate":"attr"](E.alignAttr,null,function(){x.styledMode||E.css({pointerEvents:u?"auto":"none"})}),Z(x,"afterHideOverlappingLabel")):E.attr({opacity:u})),E.isOld=!0}return T}var Y=R.addEvent,Z=R.fireEvent,q=R.isArray,$=R.isNumber,G=R.objectEach,D=R.pick;Y(W,"render",function(){var E=this,x=[];(this.labelCollectors||[]).forEach(function(T){x=x.concat(T())}),(this.yAxis||[]).forEach(function(T){T.stacking&&T.options.stackLabels&&!T.options.stackLabels.allowOverlap&&G(T.stacking.stacks,function(u){G(u,function(p){p.label&&x.push(p.label)})})}),(this.series||[]).forEach(function(T){var u=T.options.dataLabels;T.visible&&(u.enabled!==!1||T._hasPointLabels)&&(u=function(p){return p.forEach(function(g){g.visible&&(q(g.dataLabels)?g.dataLabels:g.dataLabel?[g.dataLabel]:[]).forEach(function(v){var y=v.options;v.labelrank=D(y.labelrank,g.labelrank,g.shapeArgs&&g.shapeArgs.height),y.allowOverlap?(v.oldOpacity=v.opacity,v.newOpacity=1,U(v,E)):x.push(v)})})},u(T.nodes||[]),u(T.points))}),this.hideOverlappingLabels(x)}),W.prototype.hideOverlappingLabels=function(E){var x,T,u,p=this,g=E.length,v=p.renderer,y=!1,C=function(M){var f,b,l=M.box?0:M.padding||0,h=f=0;if(M&&(!M.alignAttr||M.placed)){var e=M.alignAttr||{x:M.attr("x"),y:M.attr("y")},r=M.parentGroup;M.width||(f=M.getBBox(),M.width=f.width,M.height=f.height,f=v.fontMetrics(null,M.element).h);var o=M.width-2*l;return(b={left:"0",center:"0.5",right:"1"}[M.alignValue])?h=+b*o:$(M.x)&&Math.round(M.x)!==M.translateX&&(h=M.x-M.translateX),{x:e.x+(r.translateX||0)+l-(h||0),y:e.y+(r.translateY||0)+l-f,width:M.width-2*l,height:M.height-2*l}}};for(T=0;T<g;T++)(x=E[T])&&(x.oldOpacity=x.opacity,x.newOpacity=1,x.absoluteBox=C(x));for(E.sort(function(M,f){return(f.labelrank||0)-(M.labelrank||0)}),T=0;T<g;T++){var P=(C=E[T])&&C.absoluteBox;for(x=T+1;x<g;++x){var L=(u=E[x])&&u.absoluteBox;!P||!L||C===u||C.newOpacity===0||u.newOpacity===0||C.visibility==="hidden"||u.visibility==="hidden"||L.x>=P.x+P.width||L.x+L.width<=P.x||L.y>=P.y+P.height||L.y+L.height<=P.y||((C.labelrank<u.labelrank?C:u).newOpacity=0)}}E.forEach(function(M){U(M,p)&&(y=!0)}),y&&Z(p,"afterHideAllOverlappingLabels")}}),N(rt,"Core/Responsive.js",[rt["Core/Utilities.js"]],function(W){var R,U=W.extend,Y=W.find,Z=W.isArray,q=W.isObject,$=W.merge,G=W.objectEach,D=W.pick,E=W.splat,x=W.uniqueKey;return function(T){var u=[];T.compose=function(g){return u.indexOf(g)===-1&&(u.push(g),U(g.prototype,p.prototype)),g};var p=function(){function g(){}return g.prototype.currentOptions=function(v){var y=this,C={};return function P(L,M,f,b){var l;G(L,function(h,e){if(!b&&-1<y.collectionsWithUpdate.indexOf(e)&&M[e])for(h=E(h),f[e]=[],l=0;l<Math.max(h.length,M[e].length);l++)M[e][l]&&(h[l]===void 0?f[e][l]=M[e][l]:(f[e][l]={},P(h[l],M[e][l],f[e][l],b+1)));else q(h)?(f[e]=Z(h)?[]:{},P(h,M[e]||{},f[e],b+1)):f[e]=M[e]===void 0?null:M[e]})}(v,this.options,C,0),C},g.prototype.matchResponsiveRule=function(v,y){var C=v.condition;(C.callback||function(){return this.chartWidth<=D(C.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=D(C.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=D(C.minWidth,0)&&this.chartHeight>=D(C.minHeight,0)}).call(this)&&y.push(v._id)},g.prototype.setResponsive=function(v,y){var C=this,P=this.options.responsive,L=this.currentResponsive,M=[];!y&&P&&P.rules&&P.rules.forEach(function(f){f._id===void 0&&(f._id=x()),C.matchResponsiveRule(f,M)},this),y=$.apply(void 0,M.map(function(f){return Y((P||{}).rules||[],function(b){return b._id===f})}).map(function(f){return f&&f.chartOptions})),y.isResponsiveOptions=!0,(M=M.toString()||void 0)!==(L&&L.ruleIds)&&(L&&this.update(L.undoOptions,v,!0),M?((L=this.currentOptions(y)).isResponsiveOptions=!0,this.currentResponsive={ruleIds:M,mergedOptions:y,undoOptions:L},this.update(y,v,!0)):this.currentResponsive=void 0)},g}()}(R||(R={})),R}),N(rt,"masters/highcharts.src.js",[rt["Core/Globals.js"],rt["Core/Utilities.js"],rt["Core/Defaults.js"],rt["Core/Animation/Fx.js"],rt["Core/Animation/AnimationUtilities.js"],rt["Core/Renderer/HTML/AST.js"],rt["Core/FormatUtilities.js"],rt["Core/Renderer/RendererUtilities.js"],rt["Core/Renderer/SVG/SVGElement.js"],rt["Core/Renderer/SVG/SVGRenderer.js"],rt["Core/Renderer/HTML/HTMLElement.js"],rt["Core/Renderer/HTML/HTMLRenderer.js"],rt["Core/Axis/Axis.js"],rt["Core/Axis/DateTimeAxis.js"],rt["Core/Axis/LogarithmicAxis.js"],rt["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],rt["Core/Axis/Tick.js"],rt["Core/Tooltip.js"],rt["Core/Series/Point.js"],rt["Core/Pointer.js"],rt["Core/MSPointer.js"],rt["Core/Legend/Legend.js"],rt["Core/Chart/Chart.js"],rt["Core/Axis/Stacking/StackingAxis.js"],rt["Core/Axis/Stacking/StackItem.js"],rt["Core/Series/Series.js"],rt["Core/Series/SeriesRegistry.js"],rt["Series/Column/ColumnSeries.js"],rt["Series/Column/ColumnDataLabel.js"],rt["Series/Pie/PieSeries.js"],rt["Series/Pie/PieDataLabel.js"],rt["Core/Series/DataLabel.js"],rt["Core/Responsive.js"],rt["Core/Color/Color.js"],rt["Core/Time.js"]],function(W,R,U,Y,Z,q,$,G,D,E,x,T,u,p,g,v,y,C,P,L,M,f,b,l,h,e,r,o,i,c,a,s,m,A,O){return W.animate=Z.animate,W.animObject=Z.animObject,W.getDeferredAnimation=Z.getDeferredAnimation,W.setAnimation=Z.setAnimation,W.stop=Z.stop,W.timers=Y.timers,W.AST=q,W.Axis=u,W.Chart=b,W.chart=b.chart,W.Fx=Y,W.Legend=f,W.PlotLineOrBand=v,W.Point=P,W.Pointer=M.isRequired()?M:L,W.Series=e,W.StackItem=h,W.SVGElement=D,W.SVGRenderer=E,W.Tick=y,W.Time=O,W.Tooltip=C,W.Color=A,W.color=A.parse,T.compose(E),x.compose(D),W.defaultOptions=U.defaultOptions,W.getOptions=U.getOptions,W.time=U.defaultTime,W.setOptions=U.setOptions,W.dateFormat=$.dateFormat,W.format=$.format,W.numberFormat=$.numberFormat,W.addEvent=R.addEvent,W.arrayMax=R.arrayMax,W.arrayMin=R.arrayMin,W.attr=R.attr,W.clearTimeout=R.clearTimeout,W.correctFloat=R.correctFloat,W.createElement=R.createElement,W.css=R.css,W.defined=R.defined,W.destroyObjectProperties=R.destroyObjectProperties,W.discardElement=R.discardElement,W.distribute=G.distribute,W.erase=R.erase,W.error=R.error,W.extend=R.extend,W.extendClass=R.extendClass,W.find=R.find,W.fireEvent=R.fireEvent,W.getMagnitude=R.getMagnitude,W.getStyle=R.getStyle,W.inArray=R.inArray,W.isArray=R.isArray,W.isClass=R.isClass,W.isDOMElement=R.isDOMElement,W.isFunction=R.isFunction,W.isNumber=R.isNumber,W.isObject=R.isObject,W.isString=R.isString,W.keys=R.keys,W.merge=R.merge,W.normalizeTickInterval=R.normalizeTickInterval,W.objectEach=R.objectEach,W.offset=R.offset,W.pad=R.pad,W.pick=R.pick,W.pInt=R.pInt,W.relativeLength=R.relativeLength,W.removeEvent=R.removeEvent,W.seriesType=r.seriesType,W.splat=R.splat,W.stableSort=R.stableSort,W.syncTimeout=R.syncTimeout,W.timeUnits=R.timeUnits,W.uniqueKey=R.uniqueKey,W.useSerialIds=R.useSerialIds,W.wrap=R.wrap,i.compose(o),s.compose(e),p.compose(u),g.compose(u),a.compose(c),v.compose(u),m.compose(b),l.compose(u,b,e),W}),rt["masters/highcharts.src.js"]._modules=rt,rt["masters/highcharts.src.js"]},J.exports?(pt.default=pt,J.exports=lt.document?pt(lt):pt):(at=function(){return pt(lt)}.call(it,nt,it,J))===void 0||(J.exports=at)},3491:function(J,it,nt){var at,lt,pt;lt=typeof window!="undefined"?window:this,pt=function(ft){var N={};function rt(W,R,U,Y){W.hasOwnProperty(R)||(W[R]=Y.apply(null,U),typeof CustomEvent=="function"&&ft.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:R,module:W[R]}})))}return rt(N,"Core/Globals.js",[],function(){var W;return function(R){R.SVG_NS="http://www.w3.org/2000/svg",R.product="Highcharts",R.version="10.3.3",R.win=ft!==void 0?ft:{},R.doc=R.win.document,R.svg=R.doc&&R.doc.createElementNS&&!!R.doc.createElementNS(R.SVG_NS,"svg").createSVGRect,R.userAgent=R.win.navigator&&R.win.navigator.userAgent||"",R.isChrome=R.userAgent.indexOf("Chrome")!==-1,R.isFirefox=R.userAgent.indexOf("Firefox")!==-1,R.isMS=/(edge|msie|trident)/i.test(R.userAgent)&&!R.win.opera,R.isSafari=!R.isChrome&&R.userAgent.indexOf("Safari")!==-1,R.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(R.userAgent),R.isWebKit=R.userAgent.indexOf("AppleWebKit")!==-1,R.deg2rad=2*Math.PI/360,R.hasBidiBug=R.isFirefox&&parseInt(R.userAgent.split("Firefox/")[1],10)<4,R.hasTouch=!!R.win.TouchEvent,R.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],R.noop=function(){},R.supportsPassiveEvents=function(){var U=!1;if(!R.isMS){var Y=Object.defineProperty({},"passive",{get:function(){U=!0}});R.win.addEventListener&&R.win.removeEventListener&&(R.win.addEventListener("testPassive",R.noop,Y),R.win.removeEventListener("testPassive",R.noop,Y))}return U}(),R.charts=[],R.dateFormats={},R.seriesTypes={},R.symbolSizes={},R.chartCount=0}(W||(W={})),W}),rt(N,"Core/Utilities.js",[N["Core/Globals.js"]],function(W){var R=W.charts,U=W.doc,Y=W.win;function Z(i,c,a,s){var m=c?"Highcharts error":"Highcharts warning";i===32&&(i=m+": Deprecated member");var A=T(i),O=A?m+" #"+i+": www.highcharts.com/errors/"+i+"/":i.toString();if(s!==void 0){var d="";A&&(O+="?"),f(s,function(w,k){d+=`
102
- - `.concat(k,": ").concat(w),A&&(O+=encodeURI(k)+"="+encodeURI(w))}),O+=d}l(W,"displayError",{chart:a,code:i,message:O,params:s},function(){if(c)throw new Error(O);Y.console&&Z.messages.indexOf(O)===-1&&console.warn(O)}),Z.messages.push(O)}function q(i,c){return parseInt(i,c||10)}function $(i){return typeof i=="string"}function G(i){var c=Object.prototype.toString.call(i);return c==="[object Array]"||c==="[object Array Iterator]"}function D(i,c){return!(!i||typeof i!="object"||c&&G(i))}function E(i){return D(i)&&typeof i.nodeType=="number"}function x(i){var c=i&&i.constructor;return!(!D(i,!0)||E(i)||!c||!c.name||c.name==="Object")}function T(i){return typeof i=="number"&&!isNaN(i)&&i<1/0&&i>-1/0}function u(i){return i!=null}function p(i,c,a){var s,m=$(c)&&!u(a),A=function(O,d){u(O)?i.setAttribute(d,O):m?(s=i.getAttribute(d))||d!=="class"||(s=i.getAttribute(d+"Name")):i.removeAttribute(d)};return $(c)?A(a,c):f(c,A),s}function g(i,c){var a;for(a in i||(i={}),c)i[a]=c[a];return i}function v(){for(var i=arguments,c=i.length,a=0;a<c;a++){var s=i[a];if(s!=null)return s}}function y(i,c){W.isMS&&!W.svg&&c&&u(c.opacity)&&(c.filter="alpha(opacity=".concat(100*c.opacity,")")),g(i.style,c)}function C(i){return Math.pow(10,Math.floor(Math.log(i)/Math.LN10))}function P(i,c){return i>1e14?i:parseFloat(i.toPrecision(c||14))}(function(i){i.messages=[]})(Z||(Z={})),Math.easeInOutSine=function(i){return-.5*(Math.cos(Math.PI*i)-1)};var L,M=Array.prototype.find?function(i,c){return i.find(c)}:function(i,c){var a,s=i.length;for(a=0;a<s;a++)if(c(i[a],a))return i[a]};function f(i,c,a){for(var s in i)Object.hasOwnProperty.call(i,s)&&c.call(a||i[s],i[s],s,i)}function b(i,c,a){function s(w,k){var z=i.removeEventListener||W.removeEventListenerPolyfill;z&&z.call(i,w,k,!1)}function m(w){var k,z;i.nodeName&&(c?(k={})[c]=!0:k=w,f(k,function(F,j){if(w[j])for(z=w[j].length;z--;)s(j,w[j][z].fn)}))}var A=typeof i=="function"&&i.prototype||i;if(Object.hasOwnProperty.call(A,"hcEvents")){var O=A.hcEvents;if(c){var d=O[c]||[];a?(O[c]=d.filter(function(w){return a!==w.fn}),s(c,a)):(m(O),O[c]=[])}else m(O),delete A.hcEvents}}function l(i,c,a,s){var m;if(a=a||{},U.createEvent&&(i.dispatchEvent||i.fireEvent&&i!==W))(m=U.createEvent("Events")).initEvent(c,!0,!0),a=g(m,a),i.dispatchEvent?i.dispatchEvent(a):i.fireEvent(c,a);else if(i.hcEvents){a.target||g(a,{preventDefault:function(){a.defaultPrevented=!0},target:i,type:c});for(var A=[],O=i,d=!1;O.hcEvents;)Object.hasOwnProperty.call(O,"hcEvents")&&O.hcEvents[c]&&(A.length&&(d=!0),A.unshift.apply(A,O.hcEvents[c])),O=Object.getPrototypeOf(O);d&&A.sort(function(w,k){return w.order-k.order}),A.forEach(function(w){w.fn.call(i,a)===!1&&a.preventDefault()})}s&&!a.defaultPrevented&&s.call(i,a)}f({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},function(i,c){W[c]=function(a){var s;return Z(32,!1,void 0,((s={})["Highcharts.".concat(c)]="use Array.".concat(i),s)),Array.prototype[i].apply(a,[].slice.call(arguments,1))}});var h,e,r=(h=Math.random().toString(36).substring(2,9)+"-",e=0,function(){return"highcharts-"+(L?"":h)+e++});Y.jQuery;var o={addEvent:function(i,c,a,s){s===void 0&&(s={});var m=typeof i=="function"&&i.prototype||i;Object.hasOwnProperty.call(m,"hcEvents")||(m.hcEvents={});var A=m.hcEvents;W.Point&&i instanceof W.Point&&i.series&&i.series.chart&&(i.series.chart.runTrackerClick=!0);var O=i.addEventListener||W.addEventListenerPolyfill;O&&O.call(i,c,a,!!W.supportsPassiveEvents&&{passive:s.passive===void 0?c.indexOf("touch")!==-1:s.passive,capture:!1}),A[c]||(A[c]=[]);var d={fn:a,order:typeof s.order=="number"?s.order:1/0};return A[c].push(d),A[c].sort(function(w,k){return w.order-k.order}),function(){b(i,c,a)}},arrayMax:function(i){for(var c=i.length,a=i[0];c--;)i[c]>a&&(a=i[c]);return a},arrayMin:function(i){for(var c=i.length,a=i[0];c--;)i[c]<a&&(a=i[c]);return a},attr:p,clamp:function(i,c,a){return i>c?i<a?i:a:c},cleanRecursively:function i(c,a){var s={};return f(c,function(m,A){var O;D(c[A],!0)&&!c.nodeType&&a[A]?(O=i(c[A],a[A]),Object.keys(O).length&&(s[A]=O)):(D(c[A])||c[A]!==a[A]||A in c&&!(A in a))&&(s[A]=c[A])}),s},clearTimeout:function(i){u(i)&&clearTimeout(i)},correctFloat:P,createElement:function(i,c,a,s,m){var A=U.createElement(i);return c&&g(A,c),m&&y(A,{padding:"0",border:"none",margin:"0"}),a&&y(A,a),s&&s.appendChild(A),A},css:y,defined:u,destroyObjectProperties:function(i,c){f(i,function(a,s){a&&a!==c&&a.destroy&&a.destroy(),delete i[s]})},discardElement:function(i){i&&i.parentElement&&i.parentElement.removeChild(i)},erase:function(i,c){for(var a=i.length;a--;)if(i[a]===c){i.splice(a,1);break}},error:Z,extend:g,extendClass:function(i,c){var a=function(){};return g(a.prototype=new i,c),a},find:M,fireEvent:l,getMagnitude:C,getNestedProperty:function(i,c){for(var a=i.split(".");a.length&&u(c);){var s=a.shift();if(s===void 0||s==="__proto__")return;var m=c[s];if(!u(m)||typeof m=="function"||typeof m.nodeType=="number"||m===Y)return;c=m}return c},getStyle:function i(c,a,s){var m,A=W.getStyle||i;if(a==="width"){var O=Math.min(c.offsetWidth,c.scrollWidth),d=c.getBoundingClientRect&&c.getBoundingClientRect().width;return d<O&&d>=O-1&&(O=Math.floor(d)),Math.max(0,O-(A(c,"padding-left",!0)||0)-(A(c,"padding-right",!0)||0))}if(a==="height")return Math.max(0,Math.min(c.offsetHeight,c.scrollHeight)-(A(c,"padding-top",!0)||0)-(A(c,"padding-bottom",!0)||0));Y.getComputedStyle||Z(27,!0);var w=Y.getComputedStyle(c,void 0);return w&&(m=w.getPropertyValue(a),v(s,a!=="opacity")&&(m=q(m))),m},inArray:function(i,c,a){return Z(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"}),c.indexOf(i,a)},isArray:G,isClass:x,isDOMElement:E,isFunction:function(i){return typeof i=="function"},isNumber:T,isObject:D,isString:$,keys:function(i){return Z(32,!1,void 0,{"Highcharts.keys":"use Object.keys"}),Object.keys(i)},merge:function(){var i,c=arguments,a={},s=function(A,O){return typeof A!="object"&&(A={}),f(O,function(d,w){w!=="__proto__"&&w!=="constructor"&&(!D(d,!0)||x(d)||E(d)?A[w]=O[w]:A[w]=s(A[w]||{},d))}),A};c[0]===!0&&(a=c[1],c=Array.prototype.slice.call(c,2));var m=c.length;for(i=0;i<m;i++)a=s(a,c[i]);return a},normalizeTickInterval:function(i,c,a,s,m){var A,O=i,d=i/(a=v(a,C(i)));for(c||(c=m?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],s===!1&&(a===1?c=c.filter(function(w){return w%1==0}):a<=.1&&(c=[1/a]))),A=0;A<c.length&&(O=c[A],!(m&&O*a>=i||!m&&d<=(c[A]+(c[A+1]||c[A]))/2));A++);return P(O*a,-Math.round(Math.log(.001)/Math.LN10))},objectEach:f,offset:function(i){var c=U.documentElement,a=i.parentElement||i.parentNode?i.getBoundingClientRect():{top:0,left:0,width:0,height:0};return{top:a.top+(Y.pageYOffset||c.scrollTop)-(c.clientTop||0),left:a.left+(Y.pageXOffset||c.scrollLeft)-(c.clientLeft||0),width:a.width,height:a.height}},pad:function(i,c,a){return new Array((c||2)+1-String(i).replace("-","").length).join(a||"0")+i},pick:v,pInt:q,relativeLength:function(i,c,a){return/%$/.test(i)?c*parseFloat(i)/100+(a||0):parseFloat(i)},removeEvent:b,splat:function(i){return G(i)?i:[i]},stableSort:function(i,c){var a,s,m=i.length;for(s=0;s<m;s++)i[s].safeI=s;for(i.sort(function(A,O){return(a=c(A,O))===0?A.safeI-O.safeI:a}),s=0;s<m;s++)delete i[s].safeI},syncTimeout:function(i,c,a){return c>0?setTimeout(i,c,a):(i.call(0,a),-1)},timeUnits:{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},uniqueKey:r,useSerialIds:function(i){return L=v(i,L)},wrap:function(i,c,a){var s=i[c];i[c]=function(){var m=arguments,A=this;return a.apply(this,[function(){return s.apply(A,arguments.length?arguments:m)}].concat([].slice.call(arguments)))}}};return o}),rt(N,"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"}}),rt(N,"Core/Color/Color.js",[N["Core/Globals.js"],N["Core/Utilities.js"]],function(W,R){var U=R.isNumber,Y=R.merge,Z=R.pInt;return function(){function q($){this.rgba=[NaN,NaN,NaN,NaN],this.input=$;var G=W.Color;return G&&G!==q?new G($):this instanceof q?void this.init($):new q($)}return q.parse=function($){return $?new q($):q.None},q.prototype.init=function($){var G,D,E,x;if(typeof $=="object"&&$.stops!==void 0)this.stops=$.stops.map(function(p){return new q(p[1])});else if(typeof $=="string"){if(this.input=$=q.names[$.toLowerCase()]||$,$.charAt(0)==="#"){var T=$.length,u=parseInt($.substr(1),16);T===7?D=[(16711680&u)>>16,(65280&u)>>8,255&u,1]:T===4&&(D=[(3840&u)>>4|(3840&u)>>8,(240&u)>>4|240&u,(15&u)<<4|15&u,1])}if(!D)for(E=q.parsers.length;E--&&!D;)(G=(x=q.parsers[E]).regex.exec($))&&(D=x.parse(G))}D&&(this.rgba=D)},q.prototype.get=function($){var G=this.input,D=this.rgba;if(typeof G=="object"&&this.stops!==void 0){var E=Y(G);return E.stops=[].slice.call(E.stops),this.stops.forEach(function(x,T){E.stops[T]=[E.stops[T][0],x.get($)]}),E}return D&&U(D[0])?$==="rgb"||!$&&D[3]===1?"rgb("+D[0]+","+D[1]+","+D[2]+")":$==="a"?"".concat(D[3]):"rgba("+D.join(",")+")":G},q.prototype.brighten=function($){var G=this.rgba;if(this.stops)this.stops.forEach(function(E){E.brighten($)});else if(U($)&&$!==0)for(var D=0;D<3;D++)G[D]+=Z(255*$),G[D]<0&&(G[D]=0),G[D]>255&&(G[D]=255);return this},q.prototype.setOpacity=function($){return this.rgba[3]=$,this},q.prototype.tweenTo=function($,G){var D=this.rgba,E=$.rgba;if(!U(D[0])||!U(E[0]))return $.input||"none";var x=E[3]!==1||D[3]!==1;return(x?"rgba(":"rgb(")+Math.round(E[0]+(D[0]-E[0])*(1-G))+","+Math.round(E[1]+(D[1]-E[1])*(1-G))+","+Math.round(E[2]+(D[2]-E[2])*(1-G))+(x?","+(E[3]+(D[3]-E[3])*(1-G)):"")+")"},q.names={white:"#ffffff",black:"#000000"},q.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($){return[Z($[1]),Z($[2]),Z($[3]),parseFloat($[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function($){return[Z($[1]),Z($[2]),Z($[3]),1]}}],q.None=new q(""),q}()}),rt(N,"Core/Color/Palettes.js",[],function(){return{colors:["#7cb5ec","#434348","#90ed7d","#f7a35c","#8085e9","#f15c80","#e4d354","#2b908f","#f45b5b","#91e8e1"]}}),rt(N,"Core/Time.js",[N["Core/Globals.js"],N["Core/Utilities.js"]],function(W,R){var U=W.win,Y=R.defined,Z=R.error,q=R.extend,$=R.isObject,G=R.merge,D=R.objectEach,E=R.pad,x=R.pick,T=R.splat,u=R.timeUnits,p=W.isSafari&&U.Intl&&U.Intl.DateTimeFormat.prototype.formatRange,g=W.isSafari&&U.Intl&&!U.Intl.DateTimeFormat.prototype.formatRange,v=function(){function y(C){this.options={},this.useUTC=!1,this.variableTimezone=!1,this.Date=U.Date,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.update(C)}return y.prototype.get=function(C,P){if(this.variableTimezone||this.timezoneOffset){var L=P.getTime(),M=L-this.getTimezoneOffset(P);P.setTime(M);var f=P["getUTC"+C]();return P.setTime(L),f}return this.useUTC?P["getUTC"+C]():P["get"+C]()},y.prototype.set=function(C,P,L){if(this.variableTimezone||this.timezoneOffset){if(C==="Milliseconds"||C==="Seconds"||C==="Minutes"&&this.getTimezoneOffset(P)%36e5==0)return P["setUTC"+C](L);var M=this.getTimezoneOffset(P),f=P.getTime()-M;P.setTime(f),P["setUTC"+C](L);var b=this.getTimezoneOffset(P);return f=P.getTime()+b,P.setTime(f)}return this.useUTC||p&&C==="FullYear"?P["setUTC"+C](L):P["set"+C](L)},y.prototype.update=function(C){C===void 0&&(C={});var P=x(C.useUTC,!0);this.options=C=G(!0,this.options,C),this.Date=C.Date||U.Date||Date,this.useUTC=P,this.timezoneOffset=P&&C.timezoneOffset||void 0,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.variableTimezone=P&&!(!C.getTimezoneOffset&&!C.timezone)},y.prototype.makeTime=function(C,P,L,M,f,b){var l,h,e;return this.useUTC?(l=this.Date.UTC.apply(0,arguments),l+=h=this.getTimezoneOffset(l),h!==(e=this.getTimezoneOffset(l))?l+=e-h:h-36e5!==this.getTimezoneOffset(l-36e5)||g||(l-=36e5)):l=new this.Date(C,P,x(L,1),x(M,0),x(f,0),x(b,0)).getTime(),l},y.prototype.timezoneOffsetFunction=function(){var C=this,P=this.options,L=P.getTimezoneOffset,M=P.moment||U.moment;if(!this.useUTC)return function(f){return 6e4*new Date(f.toString()).getTimezoneOffset()};if(P.timezone){if(M)return function(f){return 6e4*-M.tz(f,P.timezone).utcOffset()};Z(25)}return this.useUTC&&L?function(f){return 6e4*L(f.valueOf())}:function(){return 6e4*(C.timezoneOffset||0)}},y.prototype.dateFormat=function(C,P,L){if(!Y(P)||isNaN(P))return W.defaultOptions.lang&&W.defaultOptions.lang.invalidDate||"";C=x(C,"%Y-%m-%d %H:%M:%S");var M=this,f=new this.Date(P),b=this.get("Hours",f),l=this.get("Day",f),h=this.get("Date",f),e=this.get("Month",f),r=this.get("FullYear",f),o=W.defaultOptions.lang,i=o&&o.weekdays,c=o&&o.shortWeekdays,a=q({a:c?c[l]:i[l].substr(0,3),A:i[l],d:E(h),e:E(h,2," "),w:l,b:o.shortMonths[e],B:o.months[e],m:E(e+1),o:e+1,y:r.toString().substr(2,2),Y:r,H:E(b),k:b,I:E(b%12||12),l:b%12||12,M:E(this.get("Minutes",f)),p:b<12?"AM":"PM",P:b<12?"am":"pm",S:E(f.getSeconds()),L:E(Math.floor(P%1e3),3)},W.dateFormats);return D(a,function(s,m){for(;C.indexOf("%"+m)!==-1;)C=C.replace("%"+m,typeof s=="function"?s.call(M,P):s)}),L?C.substr(0,1).toUpperCase()+C.substr(1):C},y.prototype.resolveDTLFormat=function(C){return $(C,!0)?C:{main:(C=T(C))[0],from:C[1],to:C[2]}},y.prototype.getTimeTicks=function(C,P,L,M){var f,b,l,h,e=this,r=e.Date,o=[],i={},c=new r(P),a=C.unitRange,s=C.count||1;if(M=x(M,1),Y(P)){e.set("Milliseconds",c,a>=u.second?0:s*Math.floor(e.get("Milliseconds",c)/s)),a>=u.second&&e.set("Seconds",c,a>=u.minute?0:s*Math.floor(e.get("Seconds",c)/s)),a>=u.minute&&e.set("Minutes",c,a>=u.hour?0:s*Math.floor(e.get("Minutes",c)/s)),a>=u.hour&&e.set("Hours",c,a>=u.day?0:s*Math.floor(e.get("Hours",c)/s)),a>=u.day&&e.set("Date",c,a>=u.month?1:Math.max(1,s*Math.floor(e.get("Date",c)/s))),a>=u.month&&(e.set("Month",c,a>=u.year?0:s*Math.floor(e.get("Month",c)/s)),b=e.get("FullYear",c)),a>=u.year&&(b-=b%s,e.set("FullYear",c,b)),a===u.week&&(h=e.get("Day",c),e.set("Date",c,e.get("Date",c)-h+M+(h<M?-7:0))),b=e.get("FullYear",c);var m=e.get("Month",c),A=e.get("Date",c),O=e.get("Hours",c);P=c.getTime(),!e.variableTimezone&&e.useUTC||!Y(L)||(l=L-P>4*u.month||e.getTimezoneOffset(P)!==e.getTimezoneOffset(L));var d=c.getTime();for(f=1;d<L;)o.push(d),a===u.year?d=e.makeTime(b+f*s,0):a===u.month?d=e.makeTime(b,m+f*s):!l||a!==u.day&&a!==u.week?l&&a===u.hour&&s>1?d=e.makeTime(b,m,A,O+f*s):d+=a*s:d=e.makeTime(b,m,A+f*s*(a===u.day?1:7)),f++;o.push(d),a<=u.hour&&o.length<1e4&&o.forEach(function(w){w%18e5==0&&e.dateFormat("%H%M%S%L",w)==="000000000"&&(i[w]="day")})}return o.info=q(C,{higherRanks:i,totalRange:a*s}),o},y.prototype.getDateFormat=function(C,P,L,M){var f=this.dateFormat("%m-%d %H:%M:%S.%L",P),b="01-01 00:00:00.000",l={millisecond:15,second:12,minute:9,hour:6,day:3},h="millisecond",e=h;for(h in u){if(C===u.week&&+this.dateFormat("%w",P)===L&&f.substr(6)===b.substr(6)){h="week";break}if(u[h]>C){h=e;break}if(l[h]&&f.substr(l[h])!==b.substr(l[h]))break;h!=="week"&&(e=h)}return this.resolveDTLFormat(M[h]).main},y}();return v}),rt(N,"Core/Defaults.js",[N["Core/Chart/ChartDefaults.js"],N["Core/Color/Color.js"],N["Core/Globals.js"],N["Core/Color/Palettes.js"],N["Core/Time.js"],N["Core/Utilities.js"]],function(W,R,U,Y,Z,q){var $=R.parse,G=U.isTouchDevice,D=U.svg,E=q.merge,x={colors:Y.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:W,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:D,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:G?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:$("#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"}};x.chart.styledMode=!1;var T=new Z(E(x.global,x.time));return{defaultOptions:x,defaultTime:T,getOptions:function(){return x},setOptions:function(u){return E(!0,x,u),(u.time||u.global)&&(U.time?U.time.update(E(x.global,x.time,u.global,u.time)):U.time=T),x}}}),rt(N,"Core/Animation/Fx.js",[N["Core/Color/Color.js"],N["Core/Globals.js"],N["Core/Utilities.js"]],function(W,R,U){var Y=W.parse,Z=R.win,q=U.isNumber,$=U.objectEach,G=function(){function D(E,x,T){this.pos=NaN,this.options=x,this.elem=E,this.prop=T}return D.prototype.dSetter=function(){var E=this.paths,x=E&&E[0],T=E&&E[1],u=this.now||0,p=[];if(u!==1&&x&&T)if(x.length===T.length&&u<1)for(var g=0;g<T.length;g++){for(var v=x[g],y=T[g],C=[],P=0;P<y.length;P++){var L=v[P],M=y[P];q(L)&&q(M)&&(y[0]!=="A"||P!==4&&P!==5)?C[P]=L+u*(M-L):C[P]=M}p.push(C)}else p=T;else p=this.toD||[];this.elem.attr("d",p,void 0,!0)},D.prototype.update=function(){var E=this.elem,x=this.prop,T=this.now,u=this.options.step;this[x+"Setter"]?this[x+"Setter"]():E.attr?E.element&&E.attr(x,T,null,!0):E.style[x]=T+this.unit,u&&u.call(E,T,this)},D.prototype.run=function(E,x,T){var u=this,p=u.options,g=function(C){return!g.stopped&&u.step(C)},v=Z.requestAnimationFrame||function(C){setTimeout(C,13)},y=function(){for(var C=0;C<D.timers.length;C++)D.timers[C]()||D.timers.splice(C--,1);D.timers.length&&v(y)};E!==x||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=E,this.end=x,this.unit=T,this.now=this.start,this.pos=0,g.elem=this.elem,g.prop=this.prop,g()&&D.timers.push(g)===1&&v(y)):(delete p.curAnim[this.prop],p.complete&&Object.keys(p.curAnim).length===0&&p.complete.call(this.elem))},D.prototype.step=function(E){var x,T,u=+new Date,p=this.options,g=this.elem,v=p.complete,y=p.duration,C=p.curAnim;return g.attr&&!g.element?x=!1:E||u>=y+this.startTime?(this.now=this.end,this.pos=1,this.update(),C[this.prop]=!0,T=!0,$(C,function(P){P!==!0&&(T=!1)}),T&&v&&v.call(g),x=!1):(this.pos=p.easing((u-this.startTime)/y),this.now=this.start+(this.end-this.start)*this.pos,this.update(),x=!0),x},D.prototype.initPath=function(E,x,T){var u,p,g,v,y=E.startX,C=E.endX,P=T.slice(),L=E.isArea,M=L?2:1,f=x&&x.slice();if(!f)return[P,P];function b(h,e){for(;h.length<p;){var r=h[0],o=e[p-h.length];if(o&&r[0]==="M"&&(o[0]==="C"?h[0]=["C",r[1],r[2],r[1],r[2],r[1],r[2]]:h[0]=["L",r[1],r[2]]),h.unshift(r),L){var i=h.pop();h.push(h[h.length-1],i)}}}function l(h,e){for(;h.length<p;){var r=h[Math.floor(h.length/M)-1].slice();if(r[0]==="C"&&(r[1]=r[5],r[2]=r[6]),L){var o=h[Math.floor(h.length/M)].slice();h.splice(h.length/2,0,r,o)}else h.push(r)}}if(y&&C&&C.length){for(g=0;g<y.length;g++){if(y[g]===C[0]){u=g;break}if(y[0]===C[C.length-y.length+g]){u=g,v=!0;break}if(y[y.length-1]===C[C.length-y.length+g]){u=y.length-g;break}}u===void 0&&(f=[])}return f.length&&q(u)&&(p=P.length+u*M,v?(b(f,P),l(P)):(b(P,f),l(f))),[f,P]},D.prototype.fillSetter=function(){D.prototype.strokeSetter.apply(this,arguments)},D.prototype.strokeSetter=function(){this.elem.attr(this.prop,Y(this.start).tweenTo(Y(this.end),this.pos),void 0,!0)},D.timers=[],D}();return G}),rt(N,"Core/Animation/AnimationUtilities.js",[N["Core/Animation/Fx.js"],N["Core/Utilities.js"]],function(W,R){var U=R.defined,Y=R.getStyle,Z=R.isArray,q=R.isNumber,$=R.isObject,G=R.merge,D=R.objectEach,E=R.pick;function x(p){return $(p)?G({duration:500,defer:0},p):{duration:p?500:0,defer:0}}function T(p,g){for(var v=W.timers.length;v--;)W.timers[v].elem!==p||g&&g!==W.timers[v].prop||(W.timers[v].stopped=!0)}var u={animate:function(p,g,v){var y,C,P,L,M="";$(v)||(v={duration:(L=arguments)[2],easing:L[3],complete:L[4]}),q(v.duration)||(v.duration=400),v.easing=typeof v.easing=="function"?v.easing:Math[v.easing]||Math.easeInOutSine,v.curAnim=G(g),D(g,function(f,b){T(p,b),P=new W(p,v,b),C=void 0,b==="d"&&Z(g.d)?(P.paths=P.initPath(p,p.pathArray,g.d),P.toD=g.d,y=0,C=1):p.attr?y=p.attr(b):(y=parseFloat(Y(p,b))||0,b!=="opacity"&&(M="px")),C||(C=f),typeof C=="string"&&C.match("px")&&(C=C.replace(/px/g,"")),P.run(y,C,M)})},animObject:x,getDeferredAnimation:function(p,g,v){var y=x(g),C=v?[v]:p.series,P=0,L=0;return C.forEach(function(M){var f=x(M.options.animation);P=g&&U(g.defer)?y.defer:Math.max(P,f.duration+f.defer),L=Math.min(y.duration,f.duration)}),p.renderer.forExport&&(P=0),{defer:Math.max(0,P-L),duration:Math.min(P,L)}},setAnimation:function(p,g){g.renderer.globalAnimation=E(p,g.options.chart.animation,!0)},stop:T};return u}),rt(N,"Core/Renderer/HTML/AST.js",[N["Core/Globals.js"],N["Core/Utilities.js"]],function(W,R){var U=W.SVG_NS,Y=W.win,Z=R.attr,q=R.createElement,$=R.css,G=R.error,D=R.isFunction,E=R.isString,x=R.objectEach,T=R.splat,u=Y.trustedTypes,p=u&&D(u.createPolicy)&&u.createPolicy("highcharts",{createHTML:function(y){return y}}),g=p?p.createHTML(""):"",v=function(){try{return!!new DOMParser().parseFromString(g,"text/html")}catch(y){return!1}}();return function(){function y(C){this.nodes=typeof C=="string"?this.parseMarkup(C):C}return y.filterUserAttributes=function(C){return x(C,function(P,L){var M=!0;y.allowedAttributes.indexOf(L)===-1&&(M=!1),["background","dynsrc","href","lowsrc","src"].indexOf(L)!==-1&&(M=E(P)&&y.allowedReferences.some(function(f){return P.indexOf(f)===0})),M||(G(33,!1,void 0,{"Invalid attribute in config":"".concat(L)}),delete C[L]),E(P)&&C[L]&&(C[L]=P.replace(/</g,"&lt;"))}),C},y.parseStyle=function(C){return C.split(";").reduce(function(P,L){var M=L.split(":").map(function(b){return b.trim()}),f=M.shift();return f&&M.length&&(P[f.replace(/-([a-z])/g,function(b){return b[1].toUpperCase()})]=M.join(":")),P},{})},y.setElementHTML=function(C,P){C.innerHTML=y.emptyHTML,P&&new y(P).addToDOM(C)},y.prototype.addToDOM=function(C){return function P(L,M){var f;return T(L).forEach(function(b){var l,h=b.tagName,e=b.textContent?W.doc.createTextNode(b.textContent):void 0,r=y.bypassHTMLFiltering;if(h)if(h==="#text")l=e;else if(y.allowedTags.indexOf(h)!==-1||r){var o=h==="svg"?U:M.namespaceURI||U,i=W.doc.createElementNS(o,h),c=b.attributes||{};x(b,function(a,s){s!=="tagName"&&s!=="attributes"&&s!=="children"&&s!=="style"&&s!=="textContent"&&(c[s]=a)}),Z(i,r?c:y.filterUserAttributes(c)),b.style&&$(i,b.style),e&&i.appendChild(e),P(b.children||[],i),l=i}else G(33,!1,void 0,{"Invalid tagName in config":h});l&&M.appendChild(l),f=l}),f}(this.nodes,C)},y.prototype.parseMarkup=function(C){var P,L=[];if(C=C.trim().replace(/ style=(["'])/g," data-style=$1"),v)P=new DOMParser().parseFromString(p?p.createHTML(C):C,"text/html");else{var M=q("div");M.innerHTML=C,P={body:M}}var f=function(b,l){var h=b.nodeName.toLowerCase(),e={tagName:h};h==="#text"&&(e.textContent=b.textContent||"");var r=b.attributes;if(r){var o={};[].forEach.call(r,function(c){c.name==="data-style"?e.style=y.parseStyle(c.value):o[c.name]=c.value}),e.attributes=o}if(b.childNodes.length){var i=[];[].forEach.call(b.childNodes,function(c){f(c,i)}),i.length&&(e.children=i)}l.push(e)};return[].forEach.call(P.body.childNodes,function(b){return f(b,L)}),L},y.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"],y.allowedReferences=["https://","http://","mailto:","/","../","./","#"],y.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"],y.emptyHTML=g,y.bypassHTMLFiltering=!1,y}()}),rt(N,"Core/FormatUtilities.js",[N["Core/Defaults.js"],N["Core/Utilities.js"]],function(W,R){var U=W.defaultOptions,Y=W.defaultTime,Z=R.getNestedProperty,q=R.isNumber,$=R.pick,G=R.pInt;function D(E,x,T,u){var p,g;E=+E||0,x=+x;var v=U.lang,y=(E.toString().split(".")[1]||"").split("e")[0].length,C=E.toString().split("e"),P=x;x===-1?x=Math.min(y,20):q(x)?x&&C[1]&&C[1]<0&&((g=x+ +C[1])>=0?(C[0]=(+C[0]).toExponential(g).split("e")[0],x=g):(C[0]=C[0].split(".")[0]||0,E=x<20?(C[0]*Math.pow(10,C[1])).toFixed(x):0,C[1]=0)):x=2;var L=(Math.abs(C[1]?C[0]:E)+Math.pow(10,-Math.max(x,y)-1)).toFixed(x),M=String(G(L)),f=M.length>3?M.length%3:0;return T=$(T,v.decimalPoint),u=$(u,v.thousandsSep),p=E<0?"-":"",p+=f?M.substr(0,f)+u:"",+C[1]<0&&!P?p="0":p+=M.substr(f).replace(/(\d{3})(?=\d)/g,"$1"+u),x&&(p+=T+L.slice(-x)),C[1]&&+p!=0&&(p+="e"+C[1]),p}return{dateFormat:function(E,x,T){return Y.dateFormat(E,x,T)},format:function(E,x,T){for(var u,p,g,v,y="{",C=!1,P=/f$/,L=/\.([0-9])/,M=U.lang,f=T&&T.time||Y,b=T&&T.numberFormatter||D,l=[];E&&(v=E.indexOf(y))!==-1;){if(u=E.slice(0,v),C){if(p=u.split(":"),g=Z(p.shift()||"",x),p.length&&typeof g=="number")if(u=p.join(":"),P.test(u)){var h=parseInt((u.match(L)||["","-1"])[1],10);g!==null&&(g=b(g,h,M.decimalPoint,u.indexOf(",")>-1?M.thousandsSep:""))}else g=f.dateFormat(u,g);l.push(g)}else l.push(u);E=E.slice(v+1),y=(C=!C)?"}":"{"}return l.push(E),l.join("")},numberFormat:D}}),rt(N,"Core/Renderer/RendererUtilities.js",[N["Core/Utilities.js"]],function(W){var R,U=W.clamp,Y=W.pick,Z=W.stableSort;return function(q){q.distribute=function $(G,D,E){var x,T,u,p=G,g=p.reducedLen||D,v=function(L,M){return L.target-M.target},y=!0,C=[],P=0;for(x=G.length;x--;)P+=G[x].size;if(P>g){for(Z(G,function(L,M){return(M.rank||0)-(L.rank||0)}),x=0,P=0;P<=g;)P+=G[x].size,x++;C=G.splice(x-1,G.length)}for(Z(G,v),G=G.map(function(L){return{size:L.size,targets:[L.target],align:Y(L.align,.5)}});y;){for(x=G.length;x--;)T=G[x],u=(Math.min.apply(0,T.targets)+Math.max.apply(0,T.targets))/2,T.pos=U(u-T.size*T.align,0,D-T.size);for(x=G.length,y=!1;x--;)x>0&&G[x-1].pos+G[x-1].size>G[x].pos&&(G[x-1].size+=G[x].size,G[x-1].targets=G[x-1].targets.concat(G[x].targets),G[x-1].align=.5,G[x-1].pos+G[x-1].size>D&&(G[x-1].pos=D-G[x-1].size),G.splice(x,1),y=!0)}return p.push.apply(p,C),x=0,G.some(function(L){var M=0;return(L.targets||[]).some(function(){return p[x].pos=L.pos+M,E!==void 0&&Math.abs(p[x].pos-p[x].target)>E?(p.slice(0,x+1).forEach(function(f){return delete f.pos}),p.reducedLen=(p.reducedLen||D)-.1*D,p.reducedLen>.1*D&&$(p,D,E),!0):(M+=p[x].size,x++,!1)})}),Z(p,v),p}}(R||(R={})),R}),rt(N,"Core/Renderer/SVG/SVGElement.js",[N["Core/Animation/AnimationUtilities.js"],N["Core/Color/Color.js"],N["Core/Globals.js"],N["Core/Utilities.js"]],function(W,R,U,Y){var Z=W.animate,q=W.animObject,$=W.stop,G=U.deg2rad,D=U.doc,E=U.svg,x=U.SVG_NS,T=U.win,u=Y.addEvent,p=Y.attr,g=Y.createElement,v=Y.css,y=Y.defined,C=Y.erase,P=Y.extend,L=Y.fireEvent,M=Y.isArray,f=Y.isFunction,b=Y.isString,l=Y.merge,h=Y.objectEach,e=Y.pick,r=Y.pInt,o=Y.syncTimeout,i=Y.uniqueKey,c=function(){function a(){this.element=void 0,this.onEvents={},this.opacity=1,this.renderer=void 0,this.SVG_NS=x,this.symbolCustomAttribs=["x","y","width","height","r","start","end","innerR","anchorX","anchorY","rounded"]}return a.prototype._defaultGetter=function(s){var m=e(this[s+"Value"],this[s],this.element?this.element.getAttribute(s):null,0);return/^[\-0-9\.]+$/.test(m)&&(m=parseFloat(m)),m},a.prototype._defaultSetter=function(s,m,A){A.setAttribute(m,s)},a.prototype.add=function(s){var m,A=this.renderer,O=this.element;return s&&(this.parentGroup=s),this.textStr!==void 0&&this.element.nodeName==="text"&&A.buildText(this),this.added=!0,(!s||s.handleZ||this.zIndex)&&(m=this.zIndexSetter()),m||(s?s.element:A.box).appendChild(O),this.onAdd&&this.onAdd(),this},a.prototype.addClass=function(s,m){var A=m?"":this.attr("class")||"";return(s=(s||"").split(/ /g).reduce(function(O,d){return A.indexOf(d)===-1&&O.push(d),O},A?[A]:[]).join(" "))!==A&&this.attr("class",s),this},a.prototype.afterSetters=function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)},a.prototype.align=function(s,m,A){var O,d,w,k,z,F={},j=this.renderer,I=j.alignedObjects;s?(this.alignOptions=s,this.alignByTranslate=m,A&&!b(A)||(this.alignTo=w=A||"renderer",C(I,this),I.push(this),A=void 0)):(s=this.alignOptions,m=this.alignByTranslate,w=this.alignTo),A=e(A,j[w],w==="scrollablePlotBox"?j.plotBox:void 0,j);var _=s.align,V=s.verticalAlign;return O=(A.x||0)+(s.x||0),d=(A.y||0)+(s.y||0),_==="right"?k=1:_==="center"&&(k=2),k&&(O+=(A.width-(s.width||0))/k),F[m?"translateX":"x"]=Math.round(O),V==="bottom"?z=1:V==="middle"&&(z=2),z&&(d+=(A.height-(s.height||0))/z),F[m?"translateY":"y"]=Math.round(d),this[this.placed?"animate":"attr"](F),this.placed=!0,this.alignAttr=F,this},a.prototype.alignSetter=function(s){var m={left:"start",center:"middle",right:"end"};m[s]&&(this.alignValue=s,this.element.setAttribute("text-anchor",m[s]))},a.prototype.animate=function(s,m,A){var O=this,d=q(e(m,this.renderer.globalAnimation,!0)),w=d.defer;return e(D.hidden,D.msHidden,D.webkitHidden,!1)&&(d.duration=0),d.duration!==0?(A&&(d.complete=A),o(function(){O.element&&Z(O,s,d)},w)):(this.attr(s,void 0,A||d.complete),h(s,function(k,z){d.step&&d.step.call(this,k,{prop:z,pos:1,elem:this})},this)),this},a.prototype.applyTextOutline=function(s){var m=this.element;s.indexOf("contrast")!==-1&&(s=s.replace(/contrast/g,this.renderer.getContrast(m.style.fill)));var A=s.split(" "),O=A[A.length-1],d=A[0];if(d&&d!=="none"&&U.svg){this.fakeTS=!0,d=d.replace(/(^[\d\.]+)(.*?)$/g,function(j,I,_){return 2*Number(I)+_}),this.removeTextOutline();var w=D.createElementNS(x,"tspan");p(w,{class:"highcharts-text-outline",fill:O,stroke:O,"stroke-width":d,"stroke-linejoin":"round"});var k=m.querySelector("textPath")||m;[].forEach.call(k.childNodes,function(j){var I=j.cloneNode(!0);I.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach(function(_){return I.removeAttribute(_)}),w.appendChild(I)});var z=0;[].forEach.call(k.querySelectorAll("text tspan"),function(j){z+=Number(j.getAttribute("dy"))});var F=D.createElementNS(x,"tspan");F.textContent="​",p(F,{x:Number(m.getAttribute("x")),dy:-z}),w.appendChild(F),k.insertBefore(w,k.firstChild)}},a.prototype.attr=function(s,m,A,O){var d,w,k,z,F=this.element,j=this.symbolCustomAttribs,I=this;return typeof s=="string"&&m!==void 0&&(d=s,(s={})[d]=m),typeof s=="string"?I=(this[s+"Getter"]||this._defaultGetter).call(this,s,F):(h(s,function(_,V){k=!1,O||$(this,V),this.symbolName&&j.indexOf(V)!==-1&&(w||(this.symbolAttr(s),w=!0),k=!0),!this.rotation||V!=="x"&&V!=="y"||(this.doTransform=!0),k||((z=this[V+"Setter"]||this._defaultSetter).call(this,_,V,F),!this.styledMode&&this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(V)&&this.updateShadows(V,_,z))},this),this.afterSetters()),A&&A.call(this),I},a.prototype.clip=function(s){return this.attr("clip-path",s?"url("+this.renderer.url+"#"+s.id+")":"none")},a.prototype.crisp=function(s,m){var A=this;m=m||s.strokeWidth||0;var O=Math.round(m)%2/2;return s.x=Math.floor(s.x||A.x||0)+O,s.y=Math.floor(s.y||A.y||0)+O,s.width=Math.floor((s.width||A.width||0)-2*O),s.height=Math.floor((s.height||A.height||0)-2*O),y(s.strokeWidth)&&(s.strokeWidth=m),s},a.prototype.complexColor=function(s,m,A){var O,d,w,k,z,F,j,I,_,V,X,H=this.renderer,Q=[];L(this.renderer,"complexColor",{args:arguments},function(){if(s.radialGradient?d="radialGradient":s.linearGradient&&(d="linearGradient"),d){if(w=s[d],z=H.gradients,F=s.stops,_=A.radialReference,M(w)&&(s[d]=w={x1:w[0],y1:w[1],x2:w[2],y2:w[3],gradientUnits:"userSpaceOnUse"}),d==="radialGradient"&&_&&!y(w.gradientUnits)&&(k=w,w=l(w,H.getRadialAttr(_,k),{gradientUnits:"userSpaceOnUse"})),h(w,function(tt,st){st!=="id"&&Q.push(st,tt)}),h(F,function(tt){Q.push(tt)}),Q=Q.join(","),z[Q])V=z[Q].attr("id");else{w.id=V=i();var et=z[Q]=H.createElement(d).attr(w).add(H.defs);et.radAttr=k,et.stops=[],F.forEach(function(tt){tt[1].indexOf("rgba")===0?(O=R.parse(tt[1]),j=O.get("rgb"),I=O.get("a")):(j=tt[1],I=1);var st=H.createElement("stop").attr({offset:tt[0],"stop-color":j,"stop-opacity":I}).add(et);et.stops.push(st)})}X="url("+H.url+"#"+V+")",A.setAttribute(m,X),A.gradient=Q,s.toString=function(){return X}}})},a.prototype.css=function(s){var m,A=this.styles,O={},d=this.element,w=!A;if(s.color&&(s.fill=s.color),A&&h(s,function(z,F){A&&A[F]!==z&&(O[F]=z,w=!0)}),w){A&&(s=P(A,O)),s.width===null||s.width==="auto"?delete this.textWidth:d.nodeName.toLowerCase()==="text"&&s.width&&(m=this.textWidth=r(s.width)),this.styles=s,m&&!E&&this.renderer.forExport&&delete s.width;var k=l(s);d.namespaceURI===this.SVG_NS&&["textOutline","textOverflow","width"].forEach(function(z){return k&&delete k[z]}),v(d,k),this.added&&(this.element.nodeName==="text"&&this.renderer.buildText(this),s.textOutline&&this.applyTextOutline(s.textOutline))}return this},a.prototype.dashstyleSetter=function(s){var m,A=this["stroke-width"];if(A==="inherit"&&(A=1),s=s&&s.toLowerCase()){var O=s.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(m=O.length;m--;)O[m]=""+r(O[m])*e(A,NaN);s=O.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",s)}},a.prototype.destroy=function(){var s,m,A=this,O=A.element||{},d=A.renderer,w=O.ownerSVGElement,k=d.isSVG&&O.nodeName==="SPAN"&&A.parentGroup||void 0;if(O.onclick=O.onmouseout=O.onmouseover=O.onmousemove=O.point=null,$(A),A.clipPath&&w){var z=A.clipPath;[].forEach.call(w.querySelectorAll("[clip-path],[CLIP-PATH]"),function(F){F.getAttribute("clip-path").indexOf(z.element.id)>-1&&F.removeAttribute("clip-path")}),A.clipPath=z.destroy()}if(A.stops){for(m=0;m<A.stops.length;m++)A.stops[m].destroy();A.stops.length=0,A.stops=void 0}for(A.safeRemoveChild(O),d.styledMode||A.destroyShadows();k&&k.div&&k.div.childNodes.length===0;)s=k.parentGroup,A.safeRemoveChild(k.div),delete k.div,k=s;A.alignTo&&C(d.alignedObjects,A),h(A,function(F,j){A[j]&&A[j].parentGroup===A&&A[j].destroy&&A[j].destroy(),delete A[j]})},a.prototype.destroyShadows=function(){(this.shadows||[]).forEach(function(s){this.safeRemoveChild(s)},this),this.shadows=void 0},a.prototype.dSetter=function(s,m,A){M(s)&&(typeof s[0]=="string"&&(s=this.renderer.pathToSegments(s)),this.pathArray=s,s=s.reduce(function(O,d,w){return d&&d.join?(w?O+" ":"")+d.join(" "):(d||"").toString()},"")),/(NaN| {2}|^$)/.test(s)&&(s="M 0 0"),this[m]!==s&&(A.setAttribute(m,s),this[m]=s)},a.prototype.fadeOut=function(s){var m=this;m.animate({opacity:0},{duration:e(s,150),complete:function(){m.hide()}})},a.prototype.fillSetter=function(s,m,A){typeof s=="string"?A.setAttribute(m,s):s&&this.complexColor(s,m,A)},a.prototype.getBBox=function(s,m){var A,O,d,w,k,z=this,F=z.alignValue,j=z.element,I=z.renderer,_=z.styles,V=z.textStr,X=I.cache,H=I.cacheKeys,Q=j.namespaceURI===z.SVG_NS,et=e(m,z.rotation,0),tt=I.styledMode?j&&a.prototype.getStyle.call(j,"font-size"):_&&_.fontSize;if(y(V)&&((k=V.toString()).indexOf("<")===-1&&(k=k.replace(/[0-9]/g,"0")),k+=["",et,tt,z.textWidth,F,_&&_.textOverflow,_&&_.fontWeight].join(",")),k&&!s&&(A=X[k]),!A){if(Q||I.forExport){try{w=this.fakeTS&&function(Tt){var Pt=j.querySelector(".highcharts-text-outline");Pt&&v(Pt,{display:Tt})},f(w)&&w("none"),A=j.getBBox?P({},j.getBBox()):{width:j.offsetWidth,height:j.offsetHeight,x:0,y:0},f(w)&&w("")}catch(Tt){}(!A||A.width<0)&&(A={x:0,y:0,width:0,height:0})}else A=z.htmlGetBBox();if(I.isSVG&&(O=A.width,d=A.height,Q&&(A.height=d={"11px,17":14,"13px,20":16}[""+(tt||"")+",".concat(Math.round(d))]||d),et)){var st=Number(j.getAttribute("y")||0)-A.y,ct={right:1,center:.5}[F||0]||0,gt=et*G,mt=(et-90)*G,bt=O*Math.cos(gt),yt=O*Math.sin(gt),dt=Math.cos(mt),ot=Math.sin(mt),ht=A.x+ct*(O-bt)+st*dt,ut=ht+bt,vt=ut-d*dt,wt=vt-bt,xt=A.y+st-ct*yt+st*ot,Ct=xt+yt,St=Ct-d*ot,Mt=St-yt;A.x=Math.min(ht,ut,vt,wt),A.y=Math.min(xt,Ct,St,Mt),A.width=Math.max(ht,ut,vt,wt)-A.x,A.height=Math.max(xt,Ct,St,Mt)-A.y}if(k&&(V===""||A.height>0)){for(;H.length>250;)delete X[H.shift()];X[k]||H.push(k),X[k]=A}}return A},a.prototype.getStyle=function(s){return T.getComputedStyle(this.element||this,"").getPropertyValue(s)},a.prototype.hasClass=function(s){return(""+this.attr("class")).split(" ").indexOf(s)!==-1},a.prototype.hide=function(){return this.attr({visibility:"hidden"})},a.prototype.htmlGetBBox=function(){return{height:0,width:0,x:0,y:0}},a.prototype.init=function(s,m){this.element=m==="span"?g(m):D.createElementNS(this.SVG_NS,m),this.renderer=s,L(this,"afterInit")},a.prototype.on=function(s,m){var A=this.onEvents;return A[s]&&A[s](),A[s]=u(this.element,s,m),this},a.prototype.opacitySetter=function(s,m,A){var O=Number(Number(s).toFixed(3));this.opacity=O,A.setAttribute(m,O)},a.prototype.removeClass=function(s){return this.attr("class",(""+this.attr("class")).replace(b(s)?new RegExp("(^| )".concat(s,"( |$)")):s," ").replace(/ +/g," ").trim())},a.prototype.removeTextOutline=function(){var s=this.element.querySelector("tspan.highcharts-text-outline");s&&this.safeRemoveChild(s)},a.prototype.safeRemoveChild=function(s){var m=s.parentNode;m&&m.removeChild(s)},a.prototype.setRadialReference=function(s){var m=this.element.gradient&&this.renderer.gradients[this.element.gradient];return this.element.radialReference=s,m&&m.radAttr&&m.animate(this.renderer.getRadialAttr(s,m.radAttr)),this},a.prototype.setTextPath=function(s,m){var A=this;m=l(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},m);var O=this.renderer.url,d=this.text||this,w=d.textPath,k=m.attributes,z=m.enabled;if(s=s||w&&w.path,w&&w.undo(),s&&z){var F=u(d,"afterModifyTree",function(j){if(s&&z){var I=s.attr("id");I||s.attr("id",I=i());var _={x:0,y:0};y(k.dx)&&(_.dx=k.dx,delete k.dx),y(k.dy)&&(_.dy=k.dy,delete k.dy),d.attr(_),A.attr({transform:""}),A.box&&(A.box=A.box.destroy());var V=j.nodes.slice(0);j.nodes.length=0,j.nodes[0]={tagName:"textPath",attributes:P(k,{"text-anchor":k.textAnchor,href:""+O+"#".concat(I)}),children:V}}});d.textPath={path:s,undo:F}}else d.attr({dx:0,dy:0}),delete d.textPath;return this.added&&(d.textCache="",this.renderer.buildText(d)),this},a.prototype.shadow=function(s,m,A){var O,d,w,k,z,F,j=[],I=this,_=I.element,V=I.oldShadowOptions,X=I.parentGroup,H=X&&X.rotation===90,Q={color:"#000000",offsetX:H?-1:1,offsetY:H?-1:1,opacity:.15,width:3},et=!1;if(s===!0?F=Q:typeof s=="object"&&(F=P(Q,s)),F&&(F&&V&&h(F,function(tt,st){tt!==V[st]&&(et=!0)}),et&&this.destroyShadows(),this.oldShadowOptions=F),F){if(!this.shadows){for(k=F.opacity/F.width,z=H?"translate(".concat(F.offsetY,", ").concat(F.offsetX,")"):"translate(".concat(F.offsetX,", ").concat(F.offsetY,")"),O=1;O<=F.width;O++)d=_.cloneNode(!1),w=2*F.width+1-2*O,p(d,{stroke:s.color||"#000000","stroke-opacity":k*O,"stroke-width":w,transform:z,fill:"none"}),d.setAttribute("class",(d.getAttribute("class")||"")+" highcharts-shadow"),A&&(p(d,"height",Math.max(p(d,"height")-w,0)),d.cutHeight=w),m?m.element.appendChild(d):_.parentNode&&_.parentNode.insertBefore(d,_),j.push(d);this.shadows=j}}else this.destroyShadows();return this},a.prototype.show=function(s){return s===void 0&&(s=!0),this.attr({visibility:s?"inherit":"visible"})},a.prototype["stroke-widthSetter"]=function(s,m,A){this[m]=s,A.setAttribute(m,s)},a.prototype.strokeWidth=function(){if(!this.renderer.styledMode)return this["stroke-width"]||0;var s,m=this.getStyle("stroke-width"),A=0;return m.indexOf("px")===m.length-2?A=r(m):m!==""&&(s=D.createElementNS(x,"rect"),p(s,{width:m,"stroke-width":0}),this.element.parentNode.appendChild(s),A=s.getBBox().width,s.parentNode.removeChild(s)),A},a.prototype.symbolAttr=function(s){var m=this;["x","y","r","start","end","width","height","innerR","anchorX","anchorY","clockwise"].forEach(function(A){m[A]=e(s[A],m[A])}),m.attr({d:m.renderer.symbols[m.symbolName](m.x,m.y,m.width,m.height,m)})},a.prototype.textSetter=function(s){s!==this.textStr&&(delete this.textPxLength,this.textStr=s,this.added&&this.renderer.buildText(this))},a.prototype.titleSetter=function(s){var m=this.element,A=m.getElementsByTagName("title")[0]||D.createElementNS(this.SVG_NS,"title");m.insertBefore?m.insertBefore(A,m.firstChild):m.appendChild(A),A.textContent=String(e(s,"")).replace(/<[^>]*>/g,"").replace(/&lt;/g,"<").replace(/&gt;/g,">")},a.prototype.toFront=function(){var s=this.element;return s.parentNode.appendChild(s),this},a.prototype.translate=function(s,m){return this.attr({translateX:s,translateY:m})},a.prototype.updateShadows=function(s,m,A){var O=this.shadows;if(O)for(var d=O.length;d--;)A.call(O[d],s==="height"?Math.max(m-(O[d].cutHeight||0),0):s==="d"?this.d:m,s,O[d])},a.prototype.updateTransform=function(){var s=this,m=s.element,A=s.matrix,O=s.rotation,d=O===void 0?0:O,w=s.scaleX,k=s.scaleY,z=s.translateX,F=z===void 0?0:z,j=s.translateY,I=["translate("+F+","+(j===void 0?0:j)+")"];y(A)&&I.push("matrix("+A.join(",")+")"),d&&I.push("rotate("+d+" "+e(this.rotationOriginX,m.getAttribute("x"),0)+" "+e(this.rotationOriginY,m.getAttribute("y")||0)+")"),(y(w)||y(k))&&I.push("scale("+e(w,1)+" "+e(k,1)+")"),I.length&&!(this.text||this).textPath&&m.setAttribute("transform",I.join(" "))},a.prototype.visibilitySetter=function(s,m,A){s==="inherit"?A.removeAttribute(m):this[m]!==s&&A.setAttribute(m,s),this[m]=s},a.prototype.xGetter=function(s){return this.element.nodeName==="circle"&&(s==="x"?s="cx":s==="y"&&(s="cy")),this._defaultGetter(s)},a.prototype.zIndexSetter=function(s,m){var A,O,d,w,k,z=this.renderer,F=this.parentGroup,j=(F||z).element||z.box,I=this.element,_=j===z.box,V=!1,X=this.added;if(y(s)?(I.setAttribute("data-z-index",s),s=+s,this[m]===s&&(X=!1)):y(this[m])&&I.removeAttribute("data-z-index"),this[m]=s,X){for((s=this.zIndex)&&F&&(F.handleZ=!0),k=(A=j.childNodes).length-1;k>=0&&!V;k--)d=(O=A[k]).getAttribute("data-z-index"),w=!y(d),O!==I&&(s<0&&w&&!_&&!k?(j.insertBefore(I,A[k]),V=!0):(r(d)<=s||w&&(!y(s)||s>=0))&&(j.insertBefore(I,A[k+1]||null),V=!0));V||(j.insertBefore(I,A[_?3:0]||null),V=!0)}return V},a}();return c.prototype.strokeSetter=c.prototype.fillSetter,c.prototype.yGetter=c.prototype.xGetter,c.prototype.matrixSetter=c.prototype.rotationOriginXSetter=c.prototype.rotationOriginYSetter=c.prototype.rotationSetter=c.prototype.scaleXSetter=c.prototype.scaleYSetter=c.prototype.translateXSetter=c.prototype.translateYSetter=c.prototype.verticalAlignSetter=function(a,s){this[s]=a,this.doTransform=!0},c}),rt(N,"Core/Renderer/RendererRegistry.js",[N["Core/Globals.js"]],function(W){var R;return function(U){var Y;U.rendererTypes={},U.getRendererType=function(Z){return Z===void 0&&(Z=Y),U.rendererTypes[Z]||U.rendererTypes[Y]},U.registerRendererType=function(Z,q,$){U.rendererTypes[Z]=q,Y&&!$||(Y=Z,W.Renderer=q)}}(R||(R={})),R}),rt(N,"Core/Renderer/SVG/SVGLabel.js",[N["Core/Renderer/SVG/SVGElement.js"],N["Core/Utilities.js"]],function(W,R){var U,Y=this&&this.__extends||(U=function(x,T){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,p){u.__proto__=p}||function(u,p){for(var g in p)p.hasOwnProperty(g)&&(u[g]=p[g])},U(x,T)},function(x,T){function u(){this.constructor=x}U(x,T),x.prototype=T===null?Object.create(T):(u.prototype=T.prototype,new u)}),Z=R.defined,q=R.extend,$=R.isNumber,G=R.merge,D=R.pick,E=R.removeEvent;return function(x){function T(u,p,g,v,y,C,P,L,M,f){var b,l=x.call(this)||this;return l.paddingLeftSetter=l.paddingSetter,l.paddingRightSetter=l.paddingSetter,l.init(u,"g"),l.textStr=p,l.x=g,l.y=v,l.anchorX=C,l.anchorY=P,l.baseline=M,l.className=f,l.addClass(f==="button"?"highcharts-no-tooltip":"highcharts-label"),f&&l.addClass("highcharts-"+f),l.text=u.text(void 0,0,0,L).attr({zIndex:1}),typeof y=="string"&&((b=/^url\((.*?)\)$/.test(y))||l.renderer.symbols[y])&&(l.symbolKey=y),l.bBox=T.emptyBBox,l.padding=3,l.baselineOffset=0,l.needsBox=u.styledMode||b,l.deferredAttr={},l.alignFactor=0,l}return Y(T,x),T.prototype.alignSetter=function(u){var p={left:0,center:.5,right:1}[u];p!==this.alignFactor&&(this.alignFactor=p,this.bBox&&$(this.xSetting)&&this.attr({x:this.xSetting}))},T.prototype.anchorXSetter=function(u,p){this.anchorX=u,this.boxAttr(p,Math.round(u)-this.getCrispAdjust()-this.xSetting)},T.prototype.anchorYSetter=function(u,p){this.anchorY=u,this.boxAttr(p,u-this.ySetting)},T.prototype.boxAttr=function(u,p){this.box?this.box.attr(u,p):this.deferredAttr[u]=p},T.prototype.css=function(u){if(u){var p={};u=G(u),T.textProps.forEach(function(g){u[g]!==void 0&&(p[g]=u[g],delete u[g])}),this.text.css(p),"fontSize"in p||"fontWeight"in p?this.updateTextPadding():("width"in p||"textOverflow"in p)&&this.updateBoxSize()}return W.prototype.css.call(this,u)},T.prototype.destroy=function(){E(this.element,"mouseenter"),E(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),W.prototype.destroy.call(this)},T.prototype.fillSetter=function(u,p){u&&(this.needsBox=!0),this.fill=u,this.boxAttr(p,u)},T.prototype.getBBox=function(){this.textStr&&this.bBox.width===0&&this.bBox.height===0&&this.updateBoxSize();var u=this.padding,p=D(this.paddingLeft,u);return{width:this.width,height:this.height,x:this.bBox.x-p,y:this.bBox.y-u}},T.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},T.prototype.heightSetter=function(u){this.heightSetting=u},T.prototype.onAdd=function(){this.text.add(this),this.attr({text:D(this.textStr,""),x:this.x||0,y:this.y||0}),this.box&&Z(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})},T.prototype.paddingSetter=function(u,p){$(u)?u!==this[p]&&(this[p]=u,this.updateTextPadding()):this[p]=void 0},T.prototype.rSetter=function(u,p){this.boxAttr(p,u)},T.prototype.shadow=function(u){return u&&!this.renderer.styledMode&&(this.updateBoxSize(),this.box&&this.box.shadow(u)),this},T.prototype.strokeSetter=function(u,p){this.stroke=u,this.boxAttr(p,u)},T.prototype["stroke-widthSetter"]=function(u,p){u&&(this.needsBox=!0),this["stroke-width"]=u,this.boxAttr(p,u)},T.prototype["text-alignSetter"]=function(u){this.textAlign=u},T.prototype.textSetter=function(u){u!==void 0&&this.text.attr({text:u}),this.updateTextPadding()},T.prototype.updateBoxSize=function(){var u,p=this.text,g=p.element.style,v={},y=this.padding,C=this.bBox=$(this.widthSetting)&&$(this.heightSetting)&&!this.textAlign||!Z(p.textStr)?T.emptyBBox:p.getBBox();this.width=this.getPaddedWidth(),this.height=(this.heightSetting||C.height||0)+2*y;var P=this.renderer.fontMetrics(g&&g.fontSize,p);if(this.baselineOffset=y+Math.min((this.text.firstLineMetrics||P).b,C.height||1/0),this.heightSetting&&(this.baselineOffset+=(this.heightSetting-P.h)/2),this.needsBox&&!p.textPath){if(!this.box){var L=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect();L.addClass((this.className==="button"?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),L.add(this)}u=this.getCrispAdjust(),v.x=u,v.y=(this.baseline?-this.baselineOffset:0)+u,v.width=Math.round(this.width),v.height=Math.round(this.height),this.box.attr(q(v,this.deferredAttr)),this.deferredAttr={}}},T.prototype.updateTextPadding=function(){var u=this.text;if(!u.textPath){this.updateBoxSize();var p=this.baseline?0:this.baselineOffset,g=D(this.paddingLeft,this.padding);Z(this.widthSetting)&&this.bBox&&(this.textAlign==="center"||this.textAlign==="right")&&(g+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width)),g===u.x&&p===u.y||(u.attr("x",g),u.hasBoxWidthChanged&&(this.bBox=u.getBBox(!0)),p!==void 0&&u.attr("y",p)),u.x=g,u.y=p}},T.prototype.widthSetter=function(u){this.widthSetting=$(u)?u:void 0},T.prototype.getPaddedWidth=function(){var u=this.padding,p=D(this.paddingLeft,u),g=D(this.paddingRight,u);return(this.widthSetting||this.bBox.width||0)+p+g},T.prototype.xSetter=function(u){this.x=u,this.alignFactor&&(u-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0),this.xSetting=Math.round(u),this.attr("translateX",this.xSetting)},T.prototype.ySetter=function(u){this.ySetting=this.y=Math.round(u),this.attr("translateY",this.ySetting)},T.emptyBBox={width:0,height:0,x:0,y:0},T.textProps=["color","direction","fontFamily","fontSize","fontStyle","fontWeight","lineHeight","textAlign","textDecoration","textOutline","textOverflow","width"],T}(W)}),rt(N,"Core/Renderer/SVG/Symbols.js",[N["Core/Utilities.js"]],function(W){var R=W.defined,U=W.isNumber,Y=W.pick;function Z(G,D,E,x,T){var u=[];if(T){var p=T.start||0,g=Y(T.r,E),v=Y(T.r,x||E),y=.001,C=Math.abs((T.end||0)-p-2*Math.PI)<y,P=(T.end||0)-y,L=T.innerR,M=Y(T.open,C),f=Math.cos(p),b=Math.sin(p),l=Math.cos(P),h=Math.sin(P),e=Y(T.longArc,P-p-Math.PI<y?0:1);u.push(["M",G+g*f,D+v*b],["A",g,v,0,e,Y(T.clockwise,1),G+g*l,D+v*h]),R(L)&&u.push(M?["M",G+L*l,D+L*h]:["L",G+L*l,D+L*h],["A",L,L,0,e,R(T.clockwise)?1-T.clockwise:0,G+L*f,D+L*b]),M||u.push(["Z"])}return u}function q(G,D,E,x,T){return T&&T.r?$(G,D,E,x,T):[["M",G,D],["L",G+E,D],["L",G+E,D+x],["L",G,D+x],["Z"]]}function $(G,D,E,x,T){var u=T&&T.r||0;return[["M",G+u,D],["L",G+E-u,D],["C",G+E,D,G+E,D,G+E,D+u],["L",G+E,D+x-u],["C",G+E,D+x,G+E,D+x,G+E-u,D+x],["L",G+u,D+x],["C",G,D+x,G,D+x,G,D+x-u],["L",G,D+u],["C",G,D,G,D,G+u,D]]}return{arc:Z,callout:function(G,D,E,x,T){var u=Math.min(T&&T.r||0,E,x),p=u+6,g=T&&T.anchorX,v=T&&T.anchorY||0,y=$(G,D,E,x,{r:u});return U(g)&&(G+g>=E?v>D+p&&v<D+x-p?y.splice(3,1,["L",G+E,v-6],["L",G+E+6,v],["L",G+E,v+6],["L",G+E,D+x-u]):y.splice(3,1,["L",G+E,x/2],["L",g,v],["L",G+E,x/2],["L",G+E,D+x-u]):G+g<=0?v>D+p&&v<D+x-p?y.splice(7,1,["L",G,v+6],["L",G-6,v],["L",G,v-6],["L",G,D+u]):y.splice(7,1,["L",G,x/2],["L",g,v],["L",G,x/2],["L",G,D+u]):v&&v>x&&g>G+p&&g<G+E-p?y.splice(5,1,["L",g+6,D+x],["L",g,D+x+6],["L",g-6,D+x],["L",G+u,D+x]):v&&v<0&&g>G+p&&g<G+E-p&&y.splice(1,1,["L",g-6,D],["L",g,D-6],["L",g+6,D],["L",E-u,D])),y},circle:function(G,D,E,x){return Z(G+E/2,D+x/2,E/2,x/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(G,D,E,x){return[["M",G+E/2,D],["L",G+E,D+x/2],["L",G+E/2,D+x],["L",G,D+x/2],["Z"]]},rect:q,roundedRect:$,square:q,triangle:function(G,D,E,x){return[["M",G+E/2,D],["L",G+E,D+x],["L",G,D+x],["Z"]]},"triangle-down":function(G,D,E,x){return[["M",G,D],["L",G+E,D],["L",G+E/2,D+x],["Z"]]}}}),rt(N,"Core/Renderer/SVG/TextBuilder.js",[N["Core/Renderer/HTML/AST.js"],N["Core/Globals.js"],N["Core/Utilities.js"]],function(W,R,U){var Y=R.doc,Z=R.SVG_NS,q=R.win,$=U.attr,G=U.extend,D=U.fireEvent,E=U.isString,x=U.objectEach,T=U.pick;return function(){function u(p){var g=p.styles;this.renderer=p.renderer,this.svgElement=p,this.width=p.textWidth,this.textLineHeight=g&&g.lineHeight,this.textOutline=g&&g.textOutline,this.ellipsis=!!(g&&g.textOverflow==="ellipsis"),this.noWrap=!!(g&&g.whiteSpace==="nowrap"),this.fontSize=g&&g.fontSize}return u.prototype.buildSVG=function(){var p=this.svgElement,g=p.element,v=p.renderer,y=T(p.textStr,"").toString(),C=y.indexOf("<")!==-1,P=g.childNodes,L=this.width&&!p.added&&v.box,M=[y,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,this.fontSize,this.width].join(",");if(M!==p.textCache){p.textCache=M,delete p.actualWidth;for(var f=P.length;f--;)g.removeChild(P[f]);if(C||this.ellipsis||this.width||p.textPath||y.indexOf(" ")!==-1&&(!this.noWrap||/<br.*?>/g.test(y))){if(y!==""){L&&L.appendChild(g);var b=new W(y);this.modifyTree(b.nodes),b.addToDOM(g),this.modifyDOM(),this.ellipsis&&(g.textContent||"").indexOf("…")!==-1&&p.attr("title",this.unescapeEntities(p.textStr||"",["&lt;","&gt;"])),L&&L.removeChild(g)}}else g.appendChild(Y.createTextNode(this.unescapeEntities(y)));E(this.textOutline)&&p.applyTextOutline&&p.applyTextOutline(this.textOutline)}},u.prototype.modifyDOM=function(){var p,g=this,v=this.svgElement,y=$(v.element,"x");for(v.firstLineMetrics=void 0;(p=v.element.firstChild)&&/^[\s\u200B]*$/.test(p.textContent||" ");)v.element.removeChild(p);[].forEach.call(v.element.querySelectorAll("tspan.highcharts-br"),function(L,M){L.nextSibling&&L.previousSibling&&(M===0&&L.previousSibling.nodeType===1&&(v.firstLineMetrics=v.renderer.fontMetrics(void 0,L.previousSibling)),$(L,{dy:g.getLineHeight(L.nextSibling),x:y}))});var C=this.width||0;if(C){var P=function(L){[].slice.call(L.childNodes).forEach(function(M){M.nodeType===q.Node.TEXT_NODE?function(f,b){var l=f.textContent||"",h=l.replace(/([^\^])-/g,"$1- ").split(" "),e=!g.noWrap&&(h.length>1||v.element.childNodes.length>1),r=g.getLineHeight(b),o=0,i=v.actualWidth;if(g.ellipsis)l&&g.truncate(f,l,void 0,0,Math.max(0,C-parseInt(g.fontSize||12,10)),function(s,m){return s.substring(0,m)+"…"});else if(e){for(var c=[],a=[];b.firstChild&&b.firstChild!==f;)a.push(b.firstChild),b.removeChild(b.firstChild);for(;h.length;)h.length&&!g.noWrap&&o>0&&(c.push(f.textContent||""),f.textContent=h.join(" ").replace(/- /g,"-")),g.truncate(f,void 0,h,o===0&&i||0,C,function(s,m){return h.slice(0,m).join(" ").replace(/- /g,"-")}),i=v.actualWidth,o++;a.forEach(function(s){b.insertBefore(s,f)}),c.forEach(function(s){b.insertBefore(Y.createTextNode(s),f);var m=Y.createElementNS(Z,"tspan");m.textContent="​",$(m,{dy:r,x:y}),b.insertBefore(m,f)})}}(M,L):(M.className.baseVal.indexOf("highcharts-br")!==-1&&(v.actualWidth=0),P(M))})};P(v.element)}},u.prototype.getLineHeight=function(p){var g,v=p.nodeType===q.Node.TEXT_NODE?p.parentElement:p;return this.renderer.styledMode||(g=v&&/(px|em)$/.test(v.style.fontSize)?v.style.fontSize:this.fontSize||this.renderer.style.fontSize||12),this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(g,v||this.svgElement.element).h},u.prototype.modifyTree=function(p){var g=this,v=function(y,C){var P=y.attributes,L=P===void 0?{}:P,M=y.children,f=y.style,b=f===void 0?{}:f,l=y.tagName,h=g.renderer.styledMode;if(l==="b"||l==="strong"?h?L.class="highcharts-strong":b.fontWeight="bold":l!=="i"&&l!=="em"||(h?L.class="highcharts-emphasized":b.fontStyle="italic"),b&&b.color&&(b.fill=b.color),l==="br"){L.class="highcharts-br",y.textContent="​";var e=p[C+1];e&&e.textContent&&(e.textContent=e.textContent.replace(/^ +/gm,""))}else l==="a"&&M&&M.some(function(r){return r.tagName==="#text"})&&(y.children=[{children:M,tagName:"tspan"}]);l!=="#text"&&l!=="a"&&(y.tagName="tspan"),G(y,{attributes:L,style:b}),M&&M.filter(function(r){return r.tagName!=="#text"}).forEach(v)};p.forEach(v),D(this.svgElement,"afterModifyTree",{nodes:p})},u.prototype.truncate=function(p,g,v,y,C,P){var L,M,f=this.svgElement,b=f.renderer,l=f.rotation,h=[],e=v?1:0,r=(g||v||"").length,o=r,i=function(c,a){var s=a||c,m=p.parentNode;if(m&&h[s]===void 0)if(m.getSubStringLength)try{h[s]=y+m.getSubStringLength(0,v?s+1:s)}catch(A){}else b.getSpanWidth&&(p.textContent=P(g||v,c),h[s]=y+b.getSpanWidth(f,p));return h[s]};if(f.rotation=0,M=i(p.textContent.length),y+M>C){for(;e<=r;)o=Math.ceil((e+r)/2),v&&(L=P(v,o)),M=i(o,L&&L.length-1),e===r?e=r+1:M>C?r=o-1:e=o;r===0?p.textContent="":g&&r===g.length-1||(p.textContent=L||P(g||v,o))}v&&v.splice(0,o),f.actualWidth=M,f.rotation=l},u.prototype.unescapeEntities=function(p,g){return x(this.renderer.escapes,function(v,y){g&&g.indexOf(v)!==-1||(p=p.toString().replace(new RegExp(v,"g"),y))}),p},u}()}),rt(N,"Core/Renderer/SVG/SVGRenderer.js",[N["Core/Renderer/HTML/AST.js"],N["Core/Color/Color.js"],N["Core/Globals.js"],N["Core/Renderer/RendererRegistry.js"],N["Core/Renderer/SVG/SVGElement.js"],N["Core/Renderer/SVG/SVGLabel.js"],N["Core/Renderer/SVG/Symbols.js"],N["Core/Renderer/SVG/TextBuilder.js"],N["Core/Utilities.js"]],function(W,R,U,Y,Z,q,$,G,D){var E,x=U.charts,T=U.deg2rad,u=U.doc,p=U.isFirefox,g=U.isMS,v=U.isWebKit,y=U.noop,C=U.SVG_NS,P=U.symbolSizes,L=U.win,M=D.addEvent,f=D.attr,b=D.createElement,l=D.css,h=D.defined,e=D.destroyObjectProperties,r=D.extend,o=D.isArray,i=D.isNumber,c=D.isObject,a=D.isString,s=D.merge,m=D.pick,A=D.pInt,O=D.uniqueKey,d=function(){function w(k,z,F,j,I,_,V){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(k,z,F,j,I,_,V)}return w.prototype.init=function(k,z,F,j,I,_,V){var X,H,Q=this,et=Q.createElement("svg").attr({version:"1.1",class:"highcharts-root"}),tt=et.element;V||et.css(this.getStyle(j)),k.appendChild(tt),f(k,"dir","ltr"),k.innerHTML.indexOf("xmlns")===-1&&f(tt,"xmlns",this.SVG_NS),Q.isSVG=!0,this.box=tt,this.boxWrapper=et,Q.alignedObjects=[],this.url=this.getReferenceURL(),this.createElement("desc").add().element.appendChild(u.createTextNode("Created with Highcharts 10.3.3")),Q.defs=this.createElement("defs").add(),Q.allowHTML=_,Q.forExport=I,Q.styledMode=V,Q.gradients={},Q.cache={},Q.cacheKeys=[],Q.imgCount=0,Q.setSize(z,F,!1),p&&k.getBoundingClientRect&&((X=function(){l(k,{left:0,top:0}),H=k.getBoundingClientRect(),l(k,{left:Math.ceil(H.left)-H.left+"px",top:Math.ceil(H.top)-H.top+"px"})})(),Q.unSubPixelFix=M(L,"resize",X))},w.prototype.definition=function(k){return new W([k]).addToDOM(this.defs.element)},w.prototype.getReferenceURL=function(){if((p||v)&&u.getElementsByTagName("base").length){if(!h(E)){var k=O(),z=new W([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:k},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":"url(#".concat(k,")"),fill:"rgba(0,0,0,0.001)"}}]}]).addToDOM(u.body);l(z,{position:"fixed",top:0,left:0,zIndex:9e5});var F=u.elementFromPoint(6,6);E=(F&&F.id)==="hitme",u.body.removeChild(z)}if(E)return L.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20")}return""},w.prototype.getStyle=function(k){return this.style=r({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},k),this.style},w.prototype.setStyle=function(k){this.boxWrapper.css(this.getStyle(k))},w.prototype.isHidden=function(){return!this.boxWrapper.getBBox().width},w.prototype.destroy=function(){var k=this,z=k.defs;return k.box=null,k.boxWrapper=k.boxWrapper.destroy(),e(k.gradients||{}),k.gradients=null,z&&(k.defs=z.destroy()),k.unSubPixelFix&&k.unSubPixelFix(),k.alignedObjects=null,null},w.prototype.createElement=function(k){var z=new this.Element;return z.init(this,k),z},w.prototype.getRadialAttr=function(k,z){return{cx:k[0]-k[2]/2+(z.cx||0)*k[2],cy:k[1]-k[2]/2+(z.cy||0)*k[2],r:(z.r||0)*k[2]}},w.prototype.buildText=function(k){new G(k).buildSVG()},w.prototype.getContrast=function(k){var z=R.parse(k).rgba.map(function(j){var I=j/255;return I<=.03928?I/12.92:Math.pow((I+.055)/1.055,2.4)}),F=.2126*z[0]+.7152*z[1]+.0722*z[2];return 1.05/(F+.05)>(F+.05)/.05?"#FFFFFF":"#000000"},w.prototype.button=function(k,z,F,j,I,_,V,X,H,Q){I===void 0&&(I={});var et=this.label(k,z,F,H,void 0,void 0,Q,void 0,"button"),tt=this.styledMode,st=I.states||{},ct=0;delete(I=s(I)).states;var gt=s({color:"#333333",cursor:"pointer",fontWeight:"normal"},I.style);delete I.style;var mt,bt,yt,dt=W.filterUserAttributes(I);return et.attr(s({padding:8,r:2},dt)),tt||(dt=s({fill:"#f7f7f7",stroke:"#cccccc","stroke-width":1},dt),_=s(dt,{fill:"#e6e6e6"},W.filterUserAttributes(_||st.hover||{})),mt=_.style,delete _.style,V=s(dt,{fill:"#e6ebf5",style:{color:"#000000",fontWeight:"bold"}},W.filterUserAttributes(V||st.select||{})),bt=V.style,delete V.style,X=s(dt,{style:{color:"#cccccc"}},W.filterUserAttributes(X||st.disabled||{})),yt=X.style,delete X.style),M(et.element,g?"mouseover":"mouseenter",function(){ct!==3&&et.setState(1)}),M(et.element,g?"mouseout":"mouseleave",function(){ct!==3&&et.setState(ct)}),et.setState=function(ot){if(ot!==1&&(et.state=ct=ot),et.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][ot||0]),!tt){et.attr([dt,_,V,X][ot||0]);var ht=[gt,mt,bt,yt][ot||0];c(ht)&&et.css(ht)}},tt||(et.attr(dt).css(r({cursor:"default"},gt)),Q&&et.text.css({pointerEvents:"none"})),et.on("touchstart",function(ot){return ot.stopPropagation()}).on("click",function(ot){ct!==3&&j.call(et,ot)})},w.prototype.crispLine=function(k,z,F){F===void 0&&(F="round");var j=k[0],I=k[1];return h(j[1])&&j[1]===I[1]&&(j[1]=I[1]=Math[F](j[1])-z%2/2),h(j[2])&&j[2]===I[2]&&(j[2]=I[2]=Math[F](j[2])+z%2/2),k},w.prototype.path=function(k){var z=this.styledMode?{}:{fill:"none"};return o(k)?z.d=k:c(k)&&r(z,k),this.createElement("path").attr(z)},w.prototype.circle=function(k,z,F){var j=c(k)?k:k===void 0?{}:{x:k,y:z,r:F},I=this.createElement("circle");return I.xSetter=I.ySetter=function(_,V,X){X.setAttribute("c"+V,_)},I.attr(j)},w.prototype.arc=function(k,z,F,j,I,_){var V;c(k)?(z=(V=k).y,F=V.r,j=V.innerR,I=V.start,_=V.end,k=V.x):V={innerR:j,start:I,end:_};var X=this.symbol("arc",k,z,F,F,V);return X.r=F,X},w.prototype.rect=function(k,z,F,j,I,_){I=c(k)?k.r:I;var V=this.createElement("rect"),X=c(k)?k:k===void 0?{}:{x:k,y:z,width:Math.max(F,0),height:Math.max(j,0)};return this.styledMode||(_!==void 0&&(X["stroke-width"]=_,X=V.crisp(X)),X.fill="none"),I&&(X.r=I),V.rSetter=function(H,Q,et){V.r=H,f(et,{rx:H,ry:H})},V.rGetter=function(){return V.r||0},V.attr(X)},w.prototype.setSize=function(k,z,F){var j=this;j.width=k,j.height=z,j.boxWrapper.animate({width:k,height:z},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:m(F,!0)?void 0:0}),j.alignElements()},w.prototype.g=function(k){var z=this.createElement("g");return k?z.attr({class:"highcharts-"+k}):z},w.prototype.image=function(k,z,F,j,I,_){var V={preserveAspectRatio:"none"},X=function(tt,st){tt.setAttributeNS?tt.setAttributeNS("http://www.w3.org/1999/xlink","href",st):tt.setAttribute("hc-svg-href",st)};i(z)&&(V.x=z),i(F)&&(V.y=F),i(j)&&(V.width=j),i(I)&&(V.height=I);var H=this.createElement("image").attr(V),Q=function(tt){X(H.element,k),_.call(H,tt)};if(_){X(H.element,"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==");var et=new L.Image;M(et,"load",Q),et.src=k,et.complete&&Q({})}else X(H.element,k);return H},w.prototype.symbol=function(k,z,F,j,I,_){var V,X,H,Q,et=this,tt=/^url\((.*?)\)$/,st=tt.test(k),ct=!st&&(this.symbols[k]?k:"circle"),gt=ct&&this.symbols[ct];if(gt)typeof z=="number"&&(X=gt.call(this.symbols,Math.round(z||0),Math.round(F||0),j||0,I||0,_)),V=this.path(X),et.styledMode||V.attr("fill","none"),r(V,{symbolName:ct||void 0,x:z,y:F,width:j,height:I}),_&&r(V,_);else if(st){H=k.match(tt)[1];var mt=V=this.image(H);mt.imgwidth=m(P[H]&&P[H].width,_&&_.width),mt.imgheight=m(P[H]&&P[H].height,_&&_.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,ht=ot.alignByTranslate,ut=ot.element,vt=ot.width,wt=ot.height,xt=ot.imgwidth,Ct=ot.imgheight,St=this["img"+dt];if(h(St)){var Mt=1;_&&_.backgroundSize==="within"&&vt&&wt?(Mt=Math.min(vt/xt,wt/Ct),St=Math.round(St*Mt),f(ut,{width:Math.round(xt*Mt),height:Math.round(Ct*Mt)})):ut&&ut.setAttribute(dt,St),ht||this.translate(((vt||0)-St*Mt)/2,((wt||0)-St*Mt)/2)}}}),h(z)&&mt.attr({x:z,y:F}),mt.isImg=!0,h(mt.imgwidth)&&h(mt.imgheight)?Q(mt):(mt.attr({width:0,height:0}),b("img",{onload:function(){var bt=x[et.chartIndex];this.width===0&&(l(this,{position:"absolute",top:"-999em"}),u.body.appendChild(this)),P[H]={width:this.width,height:this.height},mt.imgwidth=this.width,mt.imgheight=this.height,mt.element&&Q(mt),this.parentNode&&this.parentNode.removeChild(this),et.imgCount--,et.imgCount||!bt||bt.hasLoaded||bt.onload()},src:H}),this.imgCount++)}return V},w.prototype.clipRect=function(k,z,F,j){var I=O()+"-",_=this.createElement("clipPath").attr({id:I}).add(this.defs),V=this.rect(k,z,F,j,0).add(_);return V.id=I,V.clipPath=_,V.count=0,V},w.prototype.text=function(k,z,F,j){var I=this,_={};if(j&&(I.allowHTML||!I.forExport))return I.html(k,z,F);_.x=Math.round(z||0),F&&(_.y=Math.round(F)),h(k)&&(_.text=k);var V=I.createElement("text").attr(_);return(!j||I.forExport&&!I.allowHTML)&&(V.xSetter=function(X,H,Q){for(var et=Q.getElementsByTagName("tspan"),tt=Q.getAttribute(H),st=0,ct=void 0;st<et.length;st++)(ct=et[st]).getAttribute(H)===tt&&ct.setAttribute(H,X);Q.setAttribute(H,X)}),V},w.prototype.fontMetrics=function(k,z){k=!this.styledMode&&/px/.test(k)||!L.getComputedStyle?k||z&&z.style&&z.style.fontSize||this.style&&this.style.fontSize:z&&Z.prototype.getStyle.call(z,"font-size");var F=(k=/px/.test(k)?A(k):12)<24?k+3:Math.round(1.2*k);return{h:F,b:Math.round(.8*F),f:k}},w.prototype.rotCorr=function(k,z,F){var j=k;return z&&F&&(j=Math.max(j*Math.cos(z*T),4)),{x:-k/3*Math.sin(z*T),y:j}},w.prototype.pathToSegments=function(k){for(var z=[],F=[],j={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2},I=0;I<k.length;I++)a(F[0])&&i(k[I])&&F.length===j[F[0].toUpperCase()]&&k.splice(I,0,F[0].replace("M","L").replace("m","l")),typeof k[I]=="string"&&(F.length&&z.push(F.slice(0)),F.length=0),F.push(k[I]);return z.push(F.slice(0)),z},w.prototype.label=function(k,z,F,j,I,_,V,X,H){return new q(this,k,z,F,j,I,_,V,X,H)},w.prototype.alignElements=function(){this.alignedObjects.forEach(function(k){return k.align()})},w}();return r(d.prototype,{Element:Z,SVG_NS:C,escapes:{"&":"&amp;","<":"&lt;",">":"&gt;","'":"&#39;",'"':"&quot;"},symbols:$,draw:y}),Y.registerRendererType("svg",d,!0),d}),rt(N,"Core/Renderer/HTML/HTMLElement.js",[N["Core/Globals.js"],N["Core/Renderer/SVG/SVGElement.js"],N["Core/Utilities.js"]],function(W,R,U){var Y,Z=this&&this.__extends||(Y=function(v,y){return Y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,P){C.__proto__=P}||function(C,P){for(var L in P)P.hasOwnProperty(L)&&(C[L]=P[L])},Y(v,y)},function(v,y){function C(){this.constructor=v}Y(v,y),v.prototype=y===null?Object.create(y):(C.prototype=y.prototype,new C)}),q=W.isFirefox,$=W.isMS,G=W.isWebKit,D=W.win,E=U.css,x=U.defined,T=U.extend,u=U.pick,p=U.pInt,g=function(v){function y(){return v!==null&&v.apply(this,arguments)||this}return Z(y,v),y.compose=function(C){if(y.composedClasses.indexOf(C)===-1){y.composedClasses.push(C);var P=y.prototype,L=C.prototype;L.getSpanCorrection=P.getSpanCorrection,L.htmlCss=P.htmlCss,L.htmlGetBBox=P.htmlGetBBox,L.htmlUpdateTransform=P.htmlUpdateTransform,L.setSpanRotation=P.setSpanRotation}return C},y.prototype.getSpanCorrection=function(C,P,L){this.xCorr=-C*L,this.yCorr=-P},y.prototype.htmlCss=function(C){var P,L=this,M=L.element.tagName==="SPAN"&&C&&"width"in C,f=u(M&&C.width,void 0);return M&&(delete C.width,L.textWidth=f,P=!0),C&&C.textOverflow==="ellipsis"&&(C.whiteSpace="nowrap",C.overflow="hidden"),L.styles=T(L.styles,C),E(L.element,C),P&&L.htmlUpdateTransform(),L},y.prototype.htmlGetBBox=function(){var C=this.element;return{x:C.offsetLeft,y:C.offsetTop,width:C.offsetWidth,height:C.offsetHeight}},y.prototype.htmlUpdateTransform=function(){if(this.added){var C=this,P=C.renderer,L=C.element,M=C.translateX||0,f=C.translateY||0,b=C.x||0,l=C.y||0,h=C.textAlign||"left",e={left:0,center:.5,right:1}[h],r=C.styles,o=r&&r.whiteSpace;if(E(L,{marginLeft:M,marginTop:f}),!P.styledMode&&C.shadows&&C.shadows.forEach(function(O){E(O,{marginLeft:M+1,marginTop:f+1})}),C.inverted&&[].forEach.call(L.childNodes,function(O){P.invertChild(O,L)}),L.tagName==="SPAN"){var i=C.rotation,c=C.textWidth&&p(C.textWidth),a=[i,h,L.innerHTML,C.textWidth,C.textAlign].join(","),s=void 0,m=!1;if(c!==C.oldTextWidth){var A=C.textPxLength?C.textPxLength:(E(L,{width:"",whiteSpace:o||"nowrap"}),L.offsetWidth);(c>C.oldTextWidth||A>c)&&(/[ \-]/.test(L.textContent||L.innerText)||L.style.textOverflow==="ellipsis")&&(E(L,{width:A>c||i?c+"px":"auto",display:"block",whiteSpace:o||"normal"}),C.oldTextWidth=c,m=!0)}C.hasBoxWidthChanged=m,a!==C.cTT&&(s=P.fontMetrics(L.style.fontSize,L).b,!x(i)||i===(C.oldRotation||0)&&h===C.oldAlign||C.setSpanRotation(i,e,s),C.getSpanCorrection(!x(i)&&C.textPxLength||L.offsetWidth,s,e,i,h)),E(L,{left:b+(C.xCorr||0)+"px",top:l+(C.yCorr||0)+"px"}),C.cTT=a,C.oldRotation=i,C.oldAlign=h}}else this.alignOnAdd=!0},y.prototype.setSpanRotation=function(C,P,L){var M={},f=$&&!/Edge/.test(D.navigator.userAgent)?"-ms-transform":G?"-webkit-transform":q?"MozTransform":D.opera?"-o-transform":void 0;f&&(M[f]=M.transform="rotate("+C+"deg)",M[f+(q?"Origin":"-origin")]=M.transformOrigin=100*P+"% "+L+"px",E(this.element,M))},y.composedClasses=[],y}(R);return g}),rt(N,"Core/Renderer/HTML/HTMLRenderer.js",[N["Core/Renderer/HTML/AST.js"],N["Core/Renderer/SVG/SVGElement.js"],N["Core/Renderer/SVG/SVGRenderer.js"],N["Core/Utilities.js"]],function(W,R,U,Y){var Z,q=this&&this.__extends||(Z=function(T,u){return Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,g){p.__proto__=g}||function(p,g){for(var v in g)g.hasOwnProperty(v)&&(p[v]=g[v])},Z(T,u)},function(T,u){function p(){this.constructor=T}Z(T,u),T.prototype=u===null?Object.create(u):(p.prototype=u.prototype,new p)}),$=Y.attr,G=Y.createElement,D=Y.extend,E=Y.pick,x=function(T){function u(){return T!==null&&T.apply(this,arguments)||this}return q(u,T),u.compose=function(p){if(u.composedClasses.indexOf(p)===-1){u.composedClasses.push(p);var g=u.prototype;p.prototype.html=g.html}return p},u.prototype.html=function(p,g,v){var y=this.createElement("span"),C=y.element,P=y.renderer,L=P.isSVG,M=function(f,b){["opacity","visibility"].forEach(function(l){f[l+"Setter"]=function(h,e,r){var o=f.div?f.div.style:b;R.prototype[l+"Setter"].call(this,h,e,r),o&&(o[e]=h)}}),f.addedSetters=!0};return y.textSetter=function(f){f!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,W.setElementHTML(this.element,E(f,"")),this.textStr=f,y.doTransform=!0)},L&&M(y,y.element.style),y.xSetter=y.ySetter=y.alignSetter=y.rotationSetter=function(f,b){b==="align"?y.alignValue=y.textAlign=f:y[b]=f,y.doTransform=!0},y.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)},y.attr({text:p,x:Math.round(g),y:Math.round(v)}).css({position:"absolute"}),P.styledMode||y.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize}),C.style.whiteSpace="nowrap",y.css=y.htmlCss,L&&(y.add=function(f){var b,l,h=P.box.parentNode,e=[];if(this.parentGroup=f,f){if(!(b=f.div)){for(l=f;l;)e.push(l),l=l.parentGroup;e.reverse().forEach(function(r){var o=$(r.element,"class");function i(s,m){r[m]=s,m==="translateX"?a.left=s+"px":a.top=s+"px",r.doTransform=!0}var c=r.styles||{},a=(b=r.div=r.div||G("div",o?{className:o}:void 0,{position:"absolute",left:(r.translateX||0)+"px",top:(r.translateY||0)+"px",display:r.display,opacity:r.opacity,cursor:c.cursor,pointerEvents:c.pointerEvents,visibility:r.visibility},b||h)).style;D(r,{classSetter:function(s){return function(m){this.element.setAttribute("class",m),s.className=m}}(b),on:function(){return e[0].div&&y.on.apply({element:e[0].div,onEvents:r.onEvents},arguments),r},translateXSetter:i,translateYSetter:i}),r.addedSetters||M(r)})}}else b=h;return b.appendChild(C),y.added=!0,y.alignOnAdd&&y.htmlUpdateTransform(),y}),y},u.composedClasses=[],u}(U);return x}),rt(N,"Core/Axis/AxisDefaults.js",[],function(){var W;return function(R){R.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"},R.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},R.defaultLeftAxisOptions={labels:{x:-15},title:{rotation:270}},R.defaultRightAxisOptions={labels:{x:15},title:{rotation:90}},R.defaultBottomAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}},R.defaultTopAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}}}(W||(W={})),W}),rt(N,"Core/Foundation.js",[N["Core/Utilities.js"]],function(W){var R,U=W.addEvent,Y=W.isFunction,Z=W.objectEach,q=W.removeEvent;return function($){$.registerEventOptions=function(G,D){G.eventOptions=G.eventOptions||{},Z(D.events,function(E,x){G.eventOptions[x]!==E&&(G.eventOptions[x]&&(q(G,x,G.eventOptions[x]),delete G.eventOptions[x]),Y(E)&&(G.eventOptions[x]=E,U(G,x,E)))})}}(R||(R={})),R}),rt(N,"Core/Axis/Tick.js",[N["Core/FormatUtilities.js"],N["Core/Globals.js"],N["Core/Utilities.js"]],function(W,R,U){var Y=R.deg2rad,Z=U.clamp,q=U.correctFloat,$=U.defined,G=U.destroyObjectProperties,D=U.extend,E=U.fireEvent,x=U.isNumber,T=U.merge,u=U.objectEach,p=U.pick;return function(){function g(v,y,C,P,L){this.isNew=!0,this.isNewLabel=!0,this.axis=v,this.pos=y,this.type=C||"",this.parameters=L||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,E(this,"init"),C||P||this.addLabel()}return g.prototype.addLabel=function(){var v,y,C,P=this,L=P.axis,M=L.options,f=L.chart,b=L.categories,l=L.logarithmic,h=L.names,e=P.pos,r=p(P.options&&P.options.labels,M.labels),o=L.tickPositions,i=e===o[0],c=e===o[o.length-1],a=(!r.step||r.step===1)&&L.tickInterval===1,s=o.info,m=P.label,A=this.parameters.category||(b?p(b[e],h[e],e):e);l&&x(A)&&(A=q(l.lin2log(A))),L.dateTime&&(s?v=(y=f.time.resolveDTLFormat(M.dateTimeLabelFormats[!M.grid&&s.higherRanks[e]||s.unitName])).main:x(A)&&(v=L.dateTime.getXDateFormat(A,M.dateTimeLabelFormats||{}))),P.isFirst=i,P.isLast=c;var O={axis:L,chart:f,dateTimeLabelFormat:v,isFirst:i,isLast:c,pos:e,tick:P,tickPositionInfo:s,value:A};E(this,"labelFormat",O);var d=function(z){return r.formatter?r.formatter.call(z,z):r.format?(z.text=L.defaultLabelFormatter.call(z,z),W.format(r.format,z,f)):L.defaultLabelFormatter.call(z,z)},w=d.call(O,O),k=y&&y.list;P.shortenLabel=k?function(){for(C=0;C<k.length;C++)if(D(O,{dateTimeLabelFormat:k[C]}),m.attr({text:d.call(O,O)}),m.getBBox().width<L.getSlotWidth(P)-2*r.padding)return;m.attr({text:""})}:void 0,a&&L._addedPlotLB&&P.moveLabel(w,r),$(m)||P.movedLabel?m&&m.textStr!==w&&!a&&(!m.textWidth||r.style.width||m.styles.width||m.css({width:null}),m.attr({text:w}),m.textPxLength=m.getBBox().width):(P.label=m=P.createLabel({x:0,y:0},w,r),P.rotation=0)},g.prototype.createLabel=function(v,y,C){var P=this.axis,L=P.chart,M=$(y)&&C.enabled?L.renderer.text(y,v.x,v.y,C.useHTML).add(P.labelGroup):null;return M&&(L.styledMode||M.css(T(C.style)),M.textPxLength=M.getBBox().width),M},g.prototype.destroy=function(){G(this,this.axis)},g.prototype.getPosition=function(v,y,C,P){var L=this.axis,M=L.chart,f=P&&M.oldChartHeight||M.chartHeight,b={x:v?q(L.translate(y+C,void 0,void 0,P)+L.transB):L.left+L.offset+(L.opposite?(P&&M.oldChartWidth||M.chartWidth)-L.right-L.left:0),y:v?f-L.bottom+L.offset-(L.opposite?L.height:0):q(f-L.translate(y+C,void 0,void 0,P)-L.transB)};return b.y=Z(b.y,-1e5,1e5),E(this,"afterGetPosition",{pos:b}),b},g.prototype.getLabelPosition=function(v,y,C,P,L,M,f,b){var l,h,e=this.axis,r=e.transA,o=e.isLinked&&e.linkedParent?e.linkedParent.reversed:e.reversed,i=e.staggerLines,c=e.tickRotCorr||{x:0,y:0},a=P||e.reserveSpaceDefault?0:-e.labelOffset*(e.labelAlign==="center"?.5:1),s={};return l=e.side===0?C.rotation?-8:-C.getBBox().height:e.side===2?c.y+8:Math.cos(C.rotation*Y)*(c.y-C.getBBox(!1,0).height/2),$(L.y)&&(l=e.side===0&&e.horiz?L.y+l:L.y),v=v+L.x+a+c.x-(M&&P?M*r*(o?-1:1):0),y=y+l-(M&&!P?M*r*(o?1:-1):0),i&&(h=f/(b||1)%i,e.opposite&&(h=i-h-1),y+=h*(e.labelOffset/i)),s.x=v,s.y=Math.round(y),E(this,"afterGetLabelPosition",{pos:s,tickmarkOffset:M,index:f}),s},g.prototype.getLabelSize=function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0},g.prototype.getMarkPath=function(v,y,C,P,L,M){return M.crispLine([["M",v,y],["L",v+(L?0:-C),y+(L?C:0)]],P)},g.prototype.handleOverflow=function(v){var y,C,P=this,L=this.axis,M=L.options.labels,f=v.x,b=L.chart.chartWidth,l=L.chart.spacing,h=p(L.labelLeft,Math.min(L.pos,l[3])),e=p(L.labelRight,Math.max(L.isRadial?0:L.pos+L.len,b-l[1])),r=this.label,o=this.rotation,i={left:0,center:.5,right:1}[L.labelAlign||r.attr("align")],c=r.getBBox().width,a=L.getSlotWidth(P),s=i,m={},A=a,O=1;o||M.overflow!=="justify"?o<0&&f-i*c<h?C=Math.round(f/Math.cos(o*Y)-h):o>0&&f+i*c>e&&(C=Math.round((b-f)/Math.cos(o*Y))):(y=f+(1-i)*c,f-i*c<h?A=v.x+A*(1-i)-h:y>e&&(A=e-v.x+A*i,O=-1),(A=Math.min(a,A))<a&&L.labelAlign==="center"&&(v.x+=O*(a-A-s*(a-Math.min(c,A)))),(c>A||L.autoRotation&&(r.styles||{}).width)&&(C=A)),C&&(P.shortenLabel?P.shortenLabel():(m.width=Math.floor(C)+"px",(M.style||{}).textOverflow||(m.textOverflow="ellipsis"),r.css(m)))},g.prototype.moveLabel=function(v,y){var C,P,L,M=this,f=M.label,b=M.axis,l=b.reversed,h=!1;f&&f.textStr===v?(M.movedLabel=f,h=!0,delete M.label):u(b.ticks,function(e){h||e.isNew||e===M||!e.label||e.label.textStr!==v||(M.movedLabel=e.label,h=!0,e.labelPos=M.movedLabel.xy,delete e.label)}),h||!M.labelPos&&!f||(C=M.labelPos||f.xy,P=b.horiz?l?0:b.width+b.left:C.x,L=b.horiz?C.y:l?b.width+b.left:0,M.movedLabel=M.createLabel({x:P,y:L},v,y),M.movedLabel&&M.movedLabel.attr({opacity:0}))},g.prototype.render=function(v,y,C){var P=this,L=P.axis,M=L.horiz,f=P.pos,b=p(P.tickmarkOffset,L.tickmarkOffset),l=P.getPosition(M,f,b,y),h=l.x,e=l.y,r=M&&h===L.pos+L.len||!M&&e===L.pos?-1:1,o=p(C,P.label&&P.label.newOpacity,1);C=p(C,1),this.isActive=!0,this.renderGridLine(y,C,r),this.renderMark(l,C,r),this.renderLabel(l,y,o,v),P.isNew=!1,E(this,"afterRender")},g.prototype.renderGridLine=function(v,y,C){var P,L=this,M=L.axis,f=M.options,b={},l=L.pos,h=L.type,e=p(L.tickmarkOffset,M.tickmarkOffset),r=M.chart.renderer,o=L.gridLine,i=f.gridLineWidth,c=f.gridLineColor,a=f.gridLineDashStyle;L.type==="minor"&&(i=f.minorGridLineWidth,c=f.minorGridLineColor,a=f.minorGridLineDashStyle),o||(M.chart.styledMode||(b.stroke=c,b["stroke-width"]=i||0,b.dashstyle=a),h||(b.zIndex=1),v&&(y=0),L.gridLine=o=r.path().attr(b).addClass("highcharts-"+(h?h+"-":"")+"grid-line").add(M.gridGroup)),o&&(P=M.getPlotLinePath({value:l+e,lineWidth:o.strokeWidth()*C,force:"pass",old:v,acrossPanes:!1}))&&o[v||L.isNew?"attr":"animate"]({d:P,opacity:y})},g.prototype.renderMark=function(v,y,C){var P=this,L=P.axis,M=L.options,f=L.chart.renderer,b=P.type,l=L.tickSize(b?b+"Tick":"tick"),h=v.x,e=v.y,r=p(M[b!=="minor"?"tickWidth":"minorTickWidth"],!b&&L.isXAxis?1:0),o=M[b!=="minor"?"tickColor":"minorTickColor"],i=P.mark,c=!i;l&&(L.opposite&&(l[0]=-l[0]),i||(P.mark=i=f.path().addClass("highcharts-"+(b?b+"-":"")+"tick").add(L.axisGroup),L.chart.styledMode||i.attr({stroke:o,"stroke-width":r})),i[c?"attr":"animate"]({d:P.getMarkPath(h,e,l[0],i.strokeWidth()*C,L.horiz,f),opacity:y}))},g.prototype.renderLabel=function(v,y,C,P){var L=this,M=L.axis,f=M.horiz,b=M.options,l=L.label,h=b.labels,e=h.step,r=p(L.tickmarkOffset,M.tickmarkOffset),o=v.x,i=v.y,c=!0;l&&x(o)&&(l.xy=v=L.getLabelPosition(o,i,l,f,h,r,P,e),L.isFirst&&!L.isLast&&!b.showFirstLabel||L.isLast&&!L.isFirst&&!b.showLastLabel?c=!1:!f||h.step||h.rotation||y||C===0||L.handleOverflow(v),e&&P%e&&(c=!1),c&&x(v.y)?(v.opacity=C,l[L.isNewLabel?"attr":"animate"](v).show(!0),L.isNewLabel=!1):(l.hide(),L.isNewLabel=!0))},g.prototype.replaceMovedLabel=function(){var v,y,C=this,P=C.label,L=C.axis,M=L.reversed;P&&!C.isNew&&(v=L.horiz?M?L.left:L.width+L.left:P.xy.x,y=L.horiz?P.xy.y:M?L.width+L.top:L.top,P.animate({x:v,y,opacity:0},void 0,P.destroy),delete C.label),L.isDirty=!0,C.label=C.movedLabel,delete C.movedLabel},g}()}),rt(N,"Core/Axis/Axis.js",[N["Core/Animation/AnimationUtilities.js"],N["Core/Axis/AxisDefaults.js"],N["Core/Color/Color.js"],N["Core/Defaults.js"],N["Core/Foundation.js"],N["Core/Globals.js"],N["Core/Axis/Tick.js"],N["Core/Utilities.js"]],function(W,R,U,Y,Z,q,$,G){var D=W.animObject,E=Y.defaultOptions,x=Z.registerEventOptions,T=q.deg2rad,u=G.arrayMax,p=G.arrayMin,g=G.clamp,v=G.correctFloat,y=G.defined,C=G.destroyObjectProperties,P=G.erase,L=G.error,M=G.extend,f=G.fireEvent,b=G.isArray,l=G.isNumber,h=G.isString,e=G.merge,r=G.normalizeTickInterval,o=G.objectEach,i=G.pick,c=G.relativeLength,a=G.removeEvent,s=G.splat,m=G.syncTimeout,A=function(O,d){return r(d,void 0,void 0,i(O.options.allowDecimals,d<.5||O.tickAmount!==void 0),!!O.tickAmount)};return function(){function O(d,w){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,w)}return O.prototype.init=function(d,w){var k=w.isX,z=this;z.chart=d,z.horiz=d.inverted&&!z.isZAxis?!k:k,z.isXAxis=k,z.coll=z.coll||(k?"xAxis":"yAxis"),f(this,"init",{userOptions:w}),z.opposite=i(w.opposite,z.opposite),z.side=i(w.side,z.side,z.horiz?z.opposite?0:2:z.opposite?1:3),z.setOptions(w);var F=this.options,j=F.labels,I=F.type;z.userOptions=w,z.minPixelPadding=0,z.reversed=i(F.reversed,z.reversed),z.visible=F.visible,z.zoomEnabled=F.zoomEnabled,z.hasNames=I==="category"||F.categories===!0,z.categories=F.categories||(z.hasNames?[]:void 0),z.names||(z.names=[],z.names.keys={}),z.plotLinesAndBandsGroups={},z.positiveValuesOnly=!!z.logarithmic,z.isLinked=y(F.linkedTo),z.ticks={},z.labelEdge=[],z.minorTicks={},z.plotLinesAndBands=[],z.alternateBands={},z.len=0,z.minRange=z.userMinRange=F.minRange||F.maxZoom,z.range=F.range,z.offset=F.offset||0,z.max=null,z.min=null;var _=i(F.crosshair,s(d.options.tooltip.crosshairs)[k?0:1]);z.crosshair=_===!0?{}:_,d.axes.indexOf(z)===-1&&(k?d.axes.splice(d.xAxis.length,0,z):d.axes.push(z),d[z.coll].push(z)),z.series=z.series||[],d.inverted&&!z.isZAxis&&k&&z.reversed===void 0&&(z.reversed=!0),z.labelRotation=l(j.rotation)?j.rotation:void 0,x(z,F),f(this,"afterInit")},O.prototype.setOptions=function(d){this.options=e(R.defaultXAxisOptions,this.coll==="yAxis"&&R.defaultYAxisOptions,[R.defaultTopAxisOptions,R.defaultRightAxisOptions,R.defaultBottomAxisOptions,R.defaultLeftAxisOptions][this.side],e(E[this.coll],d)),f(this,"afterSetOptions",{userOptions:d})},O.prototype.defaultLabelFormatter=function(d){var w,k,z=this.axis,F=this.chart.numberFormatter,j=l(this.value)?this.value:NaN,I=z.chart.time,_=z.categories,V=this.dateTimeLabelFormat,X=E.lang,H=X.numericSymbols,Q=X.numericSymbolMagnitude||1e3,et=z.logarithmic?Math.abs(j):z.tickInterval,tt=H&&H.length;if(_)k="".concat(this.value);else if(V)k=I.dateFormat(V,j);else if(tt&&et>=1e3)for(;tt--&&k===void 0;)et>=(w=Math.pow(Q,tt+1))&&10*j%w==0&&H[tt]!==null&&j!==0&&(k=F(j/w,-1)+H[tt]);return k===void 0&&(k=Math.abs(j)>=1e4?F(j,-1):F(j,-1,void 0,"")),k},O.prototype.getSeriesExtremes=function(){var d,w=this,k=w.chart;f(this,"getSeriesExtremes",null,function(){w.hasVisibleSeries=!1,w.dataMin=w.dataMax=w.threshold=null,w.softThreshold=!w.isXAxis,w.series.forEach(function(z){if(z.visible||!k.options.chart.ignoreHiddenSeries){var F=z.options,j=void 0,I=F.threshold,_=void 0,V=void 0;if(w.hasVisibleSeries=!0,w.positiveValuesOnly&&I<=0&&(I=null),w.isXAxis)(j=z.xData).length&&(j=w.logarithmic?j.filter(w.validatePositiveValue):j,_=(d=z.getXExtremes(j)).min,V=d.max,l(_)||_ instanceof Date||(j=j.filter(l),_=(d=z.getXExtremes(j)).min,V=d.max),j.length&&(w.dataMin=Math.min(i(w.dataMin,_),_),w.dataMax=Math.max(i(w.dataMax,V),V)));else{var X=z.applyExtremes();l(X.dataMin)&&(_=X.dataMin,w.dataMin=Math.min(i(w.dataMin,_),_)),l(X.dataMax)&&(V=X.dataMax,w.dataMax=Math.max(i(w.dataMax,V),V)),y(I)&&(w.threshold=I),F.softThreshold&&!w.positiveValuesOnly||(w.softThreshold=!1)}}})}),f(this,"afterGetSeriesExtremes")},O.prototype.translate=function(d,w,k,z,F,j){var I=this.linkedParent||this,_=z&&I.old?I.old.min:I.min;if(!l(_))return NaN;var V=I.minPixelPadding,X=(I.isOrdinal||I.brokenAxis&&I.brokenAxis.hasBreaks||I.logarithmic&&F)&&I.lin2val,H=1,Q=0,et=z&&I.old?I.old.transA:I.transA,tt=0;if(et||(et=I.transA),k&&(H*=-1,Q=I.len),I.reversed&&(Q-=(H*=-1)*(I.sector||I.len)),w)d=d*H+Q,tt=(d-=V)/et+_,X&&(tt=I.lin2val(tt));else{X&&(d=I.val2lin(d));var st=H*(d-_)*et;tt=(I.isRadial?st:v(st))+Q+H*V+(l(j)?et*j:0)}return tt},O.prototype.toPixels=function(d,w){return this.translate(d,!1,!this.horiz,void 0,!0)+(w?0:this.pos)},O.prototype.toValue=function(d,w){return this.translate(d-(w?0:this.pos),!0,!this.horiz,void 0,!0)},O.prototype.getPlotLinePath=function(d){var w,k,z,F,j,I=this,_=I.chart,V=I.left,X=I.top,H=d.old,Q=d.value,et=d.lineWidth,tt=H&&_.oldChartHeight||_.chartHeight,st=H&&_.oldChartWidth||_.chartWidth,ct=I.transB,gt=d.translatedValue,mt=d.force;function bt(dt,ot,ht){return mt!=="pass"&&(dt<ot||dt>ht)&&(mt?dt=g(dt,ot,ht):j=!0),dt}var yt={value:Q,lineWidth:et,old:H,force:mt,acrossPanes:d.acrossPanes,translatedValue:gt};return f(this,"getPlotLinePath",yt,function(dt){gt=i(gt,I.translate(Q,void 0,void 0,H)),gt=g(gt,-1e5,1e5),w=z=Math.round(gt+ct),k=F=Math.round(tt-gt-ct),l(gt)?I.horiz?(k=X,F=tt-I.bottom,w=z=bt(w,V,V+I.width)):(w=V,z=st-I.right,k=F=bt(k,X,X+I.height)):(j=!0,mt=!1),dt.path=j&&!mt?null:_.renderer.crispLine([["M",w,k],["L",z,F]],et||1)}),yt.path},O.prototype.getLinearTickPositions=function(d,w,k){var z,F,j,I=v(Math.floor(w/d)*d),_=v(Math.ceil(k/d)*d),V=[];if(v(I+d)===I&&(j=20),this.single)return[w];for(z=I;z<=_&&(V.push(z),(z=v(z+d,j))!==F);)F=z;return V},O.prototype.getMinorTickInterval=function(){var d=this.options;return d.minorTicks===!0?i(d.minorTickInterval,"auto"):d.minorTicks===!1?null:d.minorTickInterval},O.prototype.getMinorTickPositions=function(){var d,w=this,k=w.options,z=w.tickPositions,F=w.minorTickInterval,j=w.pointRangePadding||0,I=w.min-j,_=w.max+j,V=_-I,X=[];if(V&&V/F<w.len/3){var H=w.logarithmic;if(H)this.paddedTicks.forEach(function(Q,et,tt){et&&X.push.apply(X,H.getLogTickPositions(F,tt[et-1],tt[et],!0))});else if(w.dateTime&&this.getMinorTickInterval()==="auto")X=X.concat(w.getTimeTicks(w.dateTime.normalizeTimeTickInterval(F),I,_,k.startOfWeek));else for(d=I+(z[0]-I)%F;d<=_&&d!==X[0];d+=F)X.push(d)}return X.length!==0&&w.trimTicks(X),X},O.prototype.adjustForMinRange=function(){var d,w,k,z,F,j,I,_,V,X=this,H=X.options,Q=X.logarithmic,et=X.min,tt=X.max,st=0;X.isXAxis&&X.minRange===void 0&&!Q&&(y(H.min)||y(H.max)||y(H.floor)||y(H.ceiling)?X.minRange=null:(X.series.forEach(function(ct){if(F=ct.xData,j=ct.xIncrement?1:F.length-1,F.length>1)for(k=j;k>0;k--)z=F[k]-F[k-1],(!st||z<st)&&(st=z)}),X.minRange=Math.min(5*st,X.dataMax-X.dataMin))),tt-et<X.minRange&&(w=X.dataMax-X.dataMin>=X.minRange,I=[et-(d=((V=X.minRange)-tt+et)/2),i(H.min,et-d)],w&&(I[2]=X.logarithmic?X.logarithmic.log2lin(X.dataMin):X.dataMin),_=[(et=u(I))+V,i(H.max,et+V)],w&&(_[2]=Q?Q.log2lin(X.dataMax):X.dataMax),(tt=p(_))-et<V&&(I[0]=tt-V,I[1]=i(H.min,tt-V),et=u(I))),X.min=et,X.max=tt},O.prototype.getClosest=function(){var d;return this.categories?d=1:this.series.forEach(function(w){var k=w.closestPointRange,z=w.visible||!w.chart.options.chart.ignoreHiddenSeries;!w.noSharedTooltip&&y(k)&&z&&(d=y(d)?Math.min(d,k):k)}),d},O.prototype.nameToX=function(d){var w,k=b(this.options.categories),z=k?this.categories:this.names,F=d.options.x;return d.series.requireSorting=!1,y(F)||(F=this.options.uniqueNames&&z?k?z.indexOf(d.name):i(z.keys[d.name],-1):d.series.autoIncrement()),F===-1?!k&&z&&(w=z.length):w=F,w!==void 0?(this.names[w]=d.name,this.names.keys[d.name]=w):d.x&&(w=d.x),w},O.prototype.updateNames=function(){var d=this,w=this.names;w.length>0&&(Object.keys(w.keys).forEach(function(k){delete w.keys[k]}),w.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(function(k){k.xIncrement=null,k.points&&!k.isDirtyData||(d.max=Math.max(d.max,k.xData.length-1),k.processData(),k.generatePoints()),k.data.forEach(function(z,F){var j;z&&z.options&&z.name!==void 0&&(j=d.nameToX(z))!==void 0&&j!==z.x&&(z.x=j,k.xData[F]=j)})}))},O.prototype.setAxisTranslation=function(){var d,w,k=this,z=k.max-k.min,F=k.linkedParent,j=!!k.categories,I=k.isXAxis,_=k.axisPointRange||0,V=0,X=0,H=k.transA;(I||j||_)&&(d=k.getClosest(),F?(V=F.minPointOffset,X=F.pointRangePadding):k.series.forEach(function(Q){var et=j?1:I?i(Q.options.pointRange,d,0):k.axisPointRange||0,tt=Q.options.pointPlacement;if(_=Math.max(_,et),!k.single||j){var st=Q.is("xrange")?!I:I;V=Math.max(V,st&&h(tt)?0:et/2),X=Math.max(X,st&&tt==="on"?0:et)}}),w=k.ordinal&&k.ordinal.slope&&d?k.ordinal.slope/d:1,k.minPointOffset=V*=w,k.pointRangePadding=X*=w,k.pointRange=Math.min(_,k.single&&j?1:z),I&&(k.closestPointRange=d)),k.translationSlope=k.transA=H=k.staticScale||k.len/(z+X||1),k.transB=k.horiz?k.left:k.bottom,k.minPixelPadding=H*V,f(this,"afterSetAxisTranslation")},O.prototype.minFromRange=function(){return this.max-this.range},O.prototype.setTickInterval=function(d){var w,k,z,F,j,I,_=this,V=_.chart,X=_.logarithmic,H=_.options,Q=_.isXAxis,et=_.isLinked,tt=H.tickPixelInterval,st=_.categories,ct=_.softThreshold,gt=H.maxPadding,mt=H.minPadding,bt=l(H.tickInterval)&&H.tickInterval>=0?H.tickInterval:void 0,yt=l(_.threshold)?_.threshold:null;if(_.dateTime||st||et||this.getTickAmount(),j=i(_.userMin,H.min),I=i(_.userMax,H.max),et?(_.linkedParent=V[_.coll][H.linkedTo],k=_.linkedParent.getExtremes(),_.min=i(k.min,k.dataMin),_.max=i(k.max,k.dataMax),H.type!==_.linkedParent.options.type&&L(11,1,V)):(ct&&y(yt)&&(_.dataMin>=yt?(z=yt,mt=0):_.dataMax<=yt&&(F=yt,gt=0)),_.min=i(j,z,_.dataMin),_.max=i(I,F,_.dataMax)),X&&(_.positiveValuesOnly&&!d&&Math.min(_.min,i(_.dataMin,_.min))<=0&&L(10,1,V),_.min=v(X.log2lin(_.min),16),_.max=v(X.log2lin(_.max),16)),_.range&&y(_.max)&&(_.userMin=_.min=j=Math.max(_.dataMin,_.minFromRange()),_.userMax=I=_.max,_.range=null),f(_,"foundExtremes"),_.beforePadding&&_.beforePadding(),_.adjustForMinRange(),st||_.axisPointRange||_.stacking&&_.stacking.usePercentage||et||!y(_.min)||!y(_.max)||(w=_.max-_.min)&&(!y(j)&&mt&&(_.min-=w*mt),!y(I)&&gt&&(_.max+=w*gt)),l(_.userMin)||(l(H.softMin)&&H.softMin<_.min&&(_.min=j=H.softMin),l(H.floor)&&(_.min=Math.max(_.min,H.floor))),l(_.userMax)||(l(H.softMax)&&H.softMax>_.max&&(_.max=I=H.softMax),l(H.ceiling)&&(_.max=Math.min(_.max,H.ceiling))),ct&&y(_.dataMin)&&(yt=yt||0,!y(j)&&_.min<yt&&_.dataMin>=yt?_.min=_.options.minRange?Math.min(yt,_.max-_.minRange):yt:!y(I)&&_.max>yt&&_.dataMax<=yt&&(_.max=_.options.minRange?Math.max(yt,_.min+_.minRange):yt)),l(_.min)&&l(_.max)&&!this.chart.polar&&_.min>_.max&&(y(_.options.min)?_.max=_.min:y(_.options.max)&&(_.min=_.max)),_.min===_.max||_.min===void 0||_.max===void 0?_.tickInterval=1:et&&_.linkedParent&&!bt&&tt===_.linkedParent.options.tickPixelInterval?_.tickInterval=bt=_.linkedParent.tickInterval:_.tickInterval=i(bt,this.tickAmount?(_.max-_.min)/Math.max(this.tickAmount-1,1):void 0,st?1:(_.max-_.min)*tt/Math.max(_.len,tt)),Q&&!d){var dt=_.min!==(_.old&&_.old.min)||_.max!==(_.old&&_.old.max);_.series.forEach(function(ht){ht.forceCrop=ht.forceCropping&&ht.forceCropping(),ht.processData(dt)}),f(this,"postProcessData",{hasExtremesChanged:dt})}_.setAxisTranslation(),f(this,"initialAxisTranslation"),_.pointRange&&!bt&&(_.tickInterval=Math.max(_.pointRange,_.tickInterval));var ot=i(H.minTickInterval,_.dateTime&&!_.series.some(function(ht){return ht.noSharedTooltip})?_.closestPointRange:0);!bt&&_.tickInterval<ot&&(_.tickInterval=ot),_.dateTime||_.logarithmic||bt||(_.tickInterval=A(_,_.tickInterval)),this.tickAmount||(_.tickInterval=_.unsquish()),this.setTickPositions()},O.prototype.setTickPositions=function(){var d,w=this,k=this.options,z=k.tickPositions,F=k.tickPositioner,j=this.getMinorTickInterval(),I=this.hasVerticalPanning(),_=this.coll==="colorAxis",V=(_||!I)&&k.startOnTick,X=(_||!I)&&k.endOnTick,H=[];if(this.tickmarkOffset=this.categories&&k.tickmarkPlacement==="between"&&this.tickInterval===1?.5:0,this.minorTickInterval=j==="auto"&&this.tickInterval?this.tickInterval/5:j,this.single=this.min===this.max&&y(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||k.allowDecimals!==!1),z)H=z.slice();else if(l(this.min)&&l(this.max)){if(w.ordinal&&w.ordinal.positions||!((this.max-this.min)/this.tickInterval>Math.max(2*this.len,200)))if(w.dateTime)H=w.getTimeTicks(w.dateTime.normalizeTimeTickInterval(this.tickInterval,k.units),this.min,this.max,k.startOfWeek,w.ordinal&&w.ordinal.positions,this.closestPointRange,!0);else if(w.logarithmic)H=w.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max);else for(var Q=this.tickInterval,et=Q;et<=2*Q&&(H=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&&H.length>this.tickAmount);)this.tickInterval=A(this,et*=1.1);else H=[this.min,this.max],L(19,!1,this.chart);H.length>this.len&&(H=[H[0],H[H.length-1]])[0]===H[1]&&(H.length=1),F&&(this.tickPositions=H,(d=F.apply(w,[this.min,this.max]))&&(H=d))}this.tickPositions=H,this.paddedTicks=H.slice(0),this.trimTicks(H,V,X),!this.isLinked&&l(this.min)&&l(this.max)&&(this.single&&H.length<2&&!this.categories&&!this.series.some(function(tt){return tt.is("heatmap")&&tt.options.pointPlacement==="between"})&&(this.min-=.5,this.max+=.5),z||d||this.adjustTickAmount()),f(this,"afterSetTickPositions")},O.prototype.trimTicks=function(d,w,k){var z=d[0],F=d[d.length-1],j=!this.isOrdinal&&this.minPointOffset||0;if(f(this,"trimTicks"),!this.isLinked){if(w&&z!==-1/0)this.min=z;else for(;this.min-j>d[0];)d.shift();if(k)this.max=F;else for(;this.max+j<d[d.length-1];)d.pop();d.length===0&&y(z)&&!this.options.tickPositions&&d.push((F+z)/2)}},O.prototype.alignToOthers=function(){var d,w=this,k=[this],z=w.options,F=this.coll==="yAxis"&&this.chart.options.chart.alignThresholds,j=[];if(w.thresholdAlignment=void 0,(this.chart.options.chart.alignTicks!==!1&&z.alignTicks||F)&&z.startOnTick!==!1&&z.endOnTick!==!1&&!w.logarithmic){var I=function(X){var H=X.horiz,Q=X.options;return[H?Q.left:Q.top,Q.width,Q.height,Q.pane].join(",")},_=I(this);this.chart[this.coll].forEach(function(X){var H=X.series;H.length&&H.some(function(Q){return Q.visible})&&X!==w&&I(X)===_&&(d=!0,k.push(X))})}if(d&&F){k.forEach(function(X){var H=X.getThresholdAlignment(w);l(H)&&j.push(H)});var V=j.length>1?j.reduce(function(X,H){return X+H},0)/j.length:void 0;k.forEach(function(X){X.thresholdAlignment=V})}return d},O.prototype.getThresholdAlignment=function(d){if((!l(this.dataMin)||this!==d&&this.series.some(function(k){return k.isDirty||k.isDirtyData}))&&this.getSeriesExtremes(),l(this.threshold)){var w=g((this.threshold-(this.dataMin||0))/((this.dataMax||0)-(this.dataMin||0)),0,1);return this.options.reversed&&(w=1-w),w}},O.prototype.getTickAmount=function(){var d=this.options,w=d.tickPixelInterval,k=d.tickAmount;!y(d.tickInterval)&&!k&&this.len<w&&!this.isRadial&&!this.logarithmic&&d.startOnTick&&d.endOnTick&&(k=2),!k&&this.alignToOthers()&&(k=Math.ceil(this.len/w)+1),k<4&&(this.finalTickAmt=k,k=5),this.tickAmount=k},O.prototype.adjustTickAmount=function(){var d,w,k,z=this,F=z.finalTickAmt,j=z.max,I=z.min,_=z.options,V=z.tickPositions,X=z.tickAmount,H=z.thresholdAlignment,Q=V&&V.length,et=i(z.threshold,z.softThreshold?0:null),tt=z.tickInterval,st=function(){return V.push(v(V[V.length-1]+tt))},ct=function(){return V.unshift(v(V[0]-tt))};if(l(H)&&(k=H<.5?Math.ceil(H*(X-1)):Math.floor(H*(X-1)),_.reversed&&(k=X-1-k)),z.hasData()&&l(I)&&l(j)){var gt=function(){z.transA*=(Q-1)/(X-1),z.min=_.startOnTick?V[0]:Math.min(I,V[0]),z.max=_.endOnTick?V[V.length-1]:Math.max(j,V[V.length-1])};if(l(k)&&l(z.threshold)){for(;V[k]!==et||V.length!==X||V[0]>I||V[V.length-1]<j;){for(V.length=0,V.push(z.threshold);V.length<X;)V[k]===void 0||V[k]>z.threshold?ct():st();if(tt>8*z.tickInterval)break;tt*=2}gt()}else if(Q<X){for(;V.length<X;)V.length%2||I===et?st():ct();gt()}if(y(F)){for(w=d=V.length;w--;)(F===3&&w%2==1||F<=2&&w>0&&w<d-1)&&V.splice(w,1);z.finalTickAmt=void 0}}},O.prototype.setScale=function(){var d=this,w=!1,k=!1;d.series.forEach(function(F){w=w||F.isDirtyData||F.isDirty,k=k||F.xAxis&&F.xAxis.isDirty||!1}),d.setAxisSize();var z=d.len!==(d.old&&d.old.len);z||w||k||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=z||d.min!==(d.old&&d.old.min)||d.max!==(d.old&&d.old.max))):d.stacking&&d.stacking.cleanStacks(),w&&d.panningState&&(d.panningState.isDirty=!0),f(this,"afterSetScale")},O.prototype.setExtremes=function(d,w,k,z,F){var j=this,I=j.chart;k=i(k,!0),j.series.forEach(function(_){delete _.kdTree}),F=M(F,{min:d,max:w}),f(j,"setExtremes",F,function(){j.userMin=d,j.userMax=w,j.eventArgs=F,k&&I.redraw(z)})},O.prototype.zoom=function(d,w){var k=this,z=this.dataMin,F=this.dataMax,j=this.options,I=Math.min(z,i(j.min,z)),_=Math.max(F,i(j.max,F)),V={newMin:d,newMax:w};return f(this,"zoom",V,function(X){var H=X.newMin,Q=X.newMax;H===k.min&&Q===k.max||(k.allowZoomOutside||(y(z)&&(H<I&&(H=I),H>_&&(H=_)),y(F)&&(Q<I&&(Q=I),Q>_&&(Q=_))),k.displayBtn=H!==void 0||Q!==void 0,k.setExtremes(H,Q,!1,void 0,{trigger:"zoom"})),X.zoomed=!0}),V.zoomed},O.prototype.setAxisSize=function(){var d=this.chart,w=this.options,k=w.offsets||[0,0,0,0],z=this.horiz,F=this.width=Math.round(c(i(w.width,d.plotWidth-k[3]+k[1]),d.plotWidth)),j=this.height=Math.round(c(i(w.height,d.plotHeight-k[0]+k[2]),d.plotHeight)),I=this.top=Math.round(c(i(w.top,d.plotTop+k[0]),d.plotHeight,d.plotTop)),_=this.left=Math.round(c(i(w.left,d.plotLeft+k[3]),d.plotWidth,d.plotLeft));this.bottom=d.chartHeight-j-I,this.right=d.chartWidth-F-_,this.len=Math.max(z?F:j,0),this.pos=z?_:I},O.prototype.getExtremes=function(){var d=this,w=d.logarithmic;return{min:w?v(w.lin2log(d.min)):d.min,max:w?v(w.lin2log(d.max)):d.max,dataMin:d.dataMin,dataMax:d.dataMax,userMin:d.userMin,userMax:d.userMax}},O.prototype.getThreshold=function(d){var w=this,k=w.logarithmic,z=k?k.lin2log(w.min):w.min,F=k?k.lin2log(w.max):w.max;return d===null||d===-1/0?d=z:d===1/0?d=F:z>d?d=z:F<d&&(d=F),w.translate(d,0,1,0,1)},O.prototype.autoLabelAlign=function(d){var w=(i(d,0)-90*this.side+720)%360,k={align:"center"};return f(this,"autoLabelAlign",k,function(z){w>15&&w<165?z.align="right":w>195&&w<345&&(z.align="left")}),k.align},O.prototype.tickSize=function(d){var w,k=this.options,z=i(k[d==="tick"?"tickWidth":"minorTickWidth"],d==="tick"&&this.isXAxis&&!this.categories?1:0),F=k[d==="tick"?"tickLength":"minorTickLength"];z&&F&&(k[d+"Position"]==="inside"&&(F=-F),w=[F,z]);var j={tickSize:w};return f(this,"afterTickSize",j),j.tickSize},O.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)},O.prototype.unsquish=function(){var d,w,k=this.options.labels,z=this.horiz,F=this.tickInterval,j=this.len/(((this.categories?1:0)+this.max-this.min)/F),I=k.rotation,_=this.labelMetrics(),V=Math.max(this.max-this.min,0),X=function(mt){var bt=mt/(j||1);return(bt=bt>1?Math.ceil(bt):1)*F>V&&mt!==1/0&&j!==1/0&&V&&(bt=Math.ceil(V/F)),v(bt*F)},H=F,Q=Number.MAX_VALUE;if(z){if(k.staggerLines||(l(I)?w=[I]:j<k.autoRotationLimit&&(w=k.autoRotation)),w)for(var et=void 0,tt=void 0,st=0,ct=w;st<ct.length;st++){var gt=ct[st];(gt===I||gt&&gt>=-90&&gt<=90)&&(tt=(et=X(Math.abs(_.h/Math.sin(T*gt))))+Math.abs(gt/360))<Q&&(Q=tt,d=gt,H=et)}}else H=X(_.h);return this.autoRotation=w,this.labelRotation=i(d,l(I)?I:0),k.step?F:H},O.prototype.getSlotWidth=function(d){var w=this.chart,k=this.horiz,z=this.options.labels,F=Math.max(this.tickPositions.length-(this.categories?0:1),1),j=w.margin[3];if(d&&l(d.slotWidth))return d.slotWidth;if(k&&z.step<2)return z.rotation?0:(this.staggerLines||1)*this.len/F;if(!k){var I=z.style.width;if(I!==void 0)return parseInt(String(I),10);if(j)return j-w.spacing[3]}return .33*w.chartWidth},O.prototype.renderUnsquish=function(){var d,w,k,z,F,j=this.chart,I=j.renderer,_=this.tickPositions,V=this.ticks,X=this.options.labels,H=X.style,Q=this.horiz,et=this.getSlotWidth(),tt=Math.max(1,Math.round(et-2*X.padding)),st={},ct=this.labelMetrics(),gt=H.textOverflow,mt=0;if(h(X.rotation)||(st.rotation=X.rotation||0),_.forEach(function(bt){var yt=V[bt];yt.movedLabel&&yt.replaceMovedLabel(),yt&&yt.label&&yt.label.textPxLength>mt&&(mt=yt.label.textPxLength)}),this.maxLabelLength=mt,this.autoRotation)mt>tt&&mt>ct.h?st.rotation=this.labelRotation:this.labelRotation=0;else if(et&&(d=tt,!gt))for(w="clip",z=_.length;!Q&&z--;)F=_[z],(k=V[F].label)&&(k.styles&&k.styles.textOverflow==="ellipsis"?k.css({textOverflow:"clip"}):k.textPxLength>et&&k.css({width:et+"px"}),k.getBBox().height>this.len/_.length-(ct.h-ct.f)&&(k.specificTextOverflow="ellipsis"));st.rotation&&(d=mt>.5*j.chartHeight?.33*j.chartHeight:mt,gt||(w="ellipsis")),this.labelAlign=X.align||this.autoLabelAlign(this.labelRotation),this.labelAlign&&(st.align=this.labelAlign),_.forEach(function(bt){var yt=V[bt],dt=yt&&yt.label,ot=H.width,ht={};dt&&(dt.attr(st),yt.shortenLabel?yt.shortenLabel():d&&!ot&&H.whiteSpace!=="nowrap"&&(d<dt.textPxLength||dt.element.tagName==="SPAN")?(ht.width=d+"px",gt||(ht.textOverflow=dt.specificTextOverflow||w),dt.css(ht)):dt.styles&&dt.styles.width&&!ht.width&&!ot&&dt.css({width:null}),delete dt.specificTextOverflow,yt.rotation=st.rotation)},this),this.tickRotCorr=I.rotCorr(ct.b,this.labelRotation||0,this.side!==0)},O.prototype.hasData=function(){return this.series.some(function(d){return d.hasData()})||this.options.showEmpty&&y(this.min)&&y(this.max)},O.prototype.addTitle=function(d){var w,k=this,z=k.chart.renderer,F=k.horiz,j=k.opposite,I=k.options.title,_=k.chart.styledMode;k.axisTitle||((w=I.textAlign)||(w=(F?{low:"left",middle:"center",high:"right"}:{low:j?"right":"left",middle:"center",high:j?"left":"right"})[I.align]),k.axisTitle=z.text(I.text||"",0,0,I.useHTML).attr({zIndex:7,rotation:I.rotation,align:w}).addClass("highcharts-axis-title"),_||k.axisTitle.css(e(I.style)),k.axisTitle.add(k.axisGroup),k.axisTitle.isNew=!0),_||I.style.width||k.isRadial||k.axisTitle.css({width:k.len+"px"}),k.axisTitle[d?"show":"hide"](d)},O.prototype.generateTick=function(d){var w=this.ticks;w[d]?w[d].addLabel():w[d]=new $(this,d)},O.prototype.getOffset=function(){var d,w,k,z,F=this,j=this,I=j.chart,_=j.horiz,V=j.options,X=j.side,H=j.ticks,Q=j.tickPositions,et=j.coll,tt=j.axisParent,st=I.renderer,ct=I.inverted&&!j.isZAxis?[1,0,3,2][X]:X,gt=j.hasData(),mt=V.title,bt=V.labels,yt=I.axisOffset,dt=I.clipOffset,ot=[-1,1,1,-1][X],ht=V.className,ut=0,vt=0,wt=0;if(j.showAxis=d=gt||V.showEmpty,j.staggerLines=j.horiz&&bt.staggerLines||void 0,!j.axisGroup){var xt=function(Mt,Tt,Pt){return st.g(Mt).attr({zIndex:Pt}).addClass("highcharts-".concat(et.toLowerCase()).concat(Tt," ")+(F.isRadial?"highcharts-radial-axis".concat(Tt," "):"")+(ht||"")).add(tt)};j.gridGroup=xt("grid","-grid",V.gridZIndex),j.axisGroup=xt("axis","",V.zIndex),j.labelGroup=xt("axis-labels","-labels",bt.zIndex)}if(gt||j.isLinked?(Q.forEach(function(Mt){j.generateTick(Mt)}),j.renderUnsquish(),j.reserveSpaceDefault=X===0||X===2||{1:"left",3:"right"}[X]===j.labelAlign,i(bt.reserveSpace,j.labelAlign==="center"||null,j.reserveSpaceDefault)&&Q.forEach(function(Mt){wt=Math.max(H[Mt].getLabelSize(),wt)}),j.staggerLines&&(wt*=j.staggerLines),j.labelOffset=wt*(j.opposite?-1:1)):o(H,function(Mt,Tt){Mt.destroy(),delete H[Tt]}),mt&&mt.text&&mt.enabled!==!1&&(j.addTitle(d),d&&mt.reserveSpace!==!1&&(j.titleOffset=ut=j.axisTitle.getBBox()[_?"height":"width"],w=mt.offset,vt=y(w)?0:i(mt.margin,_?5:10))),j.renderLine(),j.offset=ot*i(V.offset,yt[X]?yt[X]+(V.margin||0):0),j.tickRotCorr=j.tickRotCorr||{x:0,y:0},z=X===0?-j.labelMetrics().h:X===2?j.tickRotCorr.y:0,k=Math.abs(wt)+vt,wt&&(k-=z,k+=ot*(_?i(bt.y,j.tickRotCorr.y+8*ot):bt.x)),j.axisTitleMargin=i(w,k),j.getMaxLabelDimensions&&(j.maxLabelDimensions=j.getMaxLabelDimensions(H,Q)),et!=="colorAxis"){var Ct=this.tickSize("tick");yt[X]=Math.max(yt[X],(j.axisTitleMargin||0)+ut+ot*j.offset,k,Q&&Q.length&&Ct?Ct[0]+ot*j.offset:0);var St=!j.axisLine||V.offset?0:2*Math.floor(j.axisLine.strokeWidth()/2);dt[ct]=Math.max(dt[ct],St)}f(this,"afterGetOffset")},O.prototype.getLinePath=function(d){var w=this.chart,k=this.opposite,z=this.offset,F=this.horiz,j=this.left+(k?this.width:0)+z,I=w.chartHeight-this.bottom-(k?this.height:0)+z;return k&&(d*=-1),w.renderer.crispLine([["M",F?this.left:j,F?I:this.top],["L",F?w.chartWidth-this.right:j,F?I:w.chartHeight-this.bottom]],d)},O.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}))},O.prototype.getTitlePosition=function(){var d=this.horiz,w=this.left,k=this.top,z=this.len,F=this.options.title,j=d?w:k,I=this.opposite,_=this.offset,V=F.x,X=F.y,H=this.axisTitle,Q=this.chart.renderer.fontMetrics(F.style.fontSize,H),et=H?Math.max(H.getBBox(!1,0).height-Q.h-1,0):0,tt={low:j+(d?0:z),middle:j+z/2,high:j+(d?z:0)}[F.align],st=(d?k+this.height:w)+(d?1:-1)*(I?-1:1)*(this.axisTitleMargin||0)+[-et,et,Q.f,-et][this.side],ct={x:d?tt+V:st+(I?this.width:0)+_+V,y:d?st+X-(I?this.height:0)+_:tt+X};return f(this,"afterGetTitlePosition",{titlePosition:ct}),ct},O.prototype.renderMinorTick=function(d,w){var k=this.minorTicks;k[d]||(k[d]=new $(this,d,"minor")),w&&k[d].isNew&&k[d].render(null,!0),k[d].render(null,!1,1)},O.prototype.renderTick=function(d,w,k){var z=this,F=z.isLinked,j=z.ticks;(!F||d>=z.min&&d<=z.max||z.grid&&z.grid.isColumn)&&(j[d]||(j[d]=new $(z,d)),k&&j[d].isNew&&j[d].render(w,!0,-1),j[d].render(w))},O.prototype.render=function(){var d,w,k=this,z=k.chart,F=k.logarithmic,j=z.renderer,I=k.options,_=k.isLinked,V=k.tickPositions,X=k.axisTitle,H=k.ticks,Q=k.minorTicks,et=k.alternateBands,tt=I.stackLabels,st=I.alternateGridColor,ct=k.tickmarkOffset,gt=k.axisLine,mt=k.showAxis,bt=D(j.globalAnimation);if(k.labelEdge.length=0,k.overlap=!1,[H,Q,et].forEach(function(ot){o(ot,function(ht){ht.isActive=!1})}),k.hasData()||_){var yt=k.chart.hasRendered&&k.old&&l(k.old.min);k.minorTickInterval&&!k.categories&&k.getMinorTickPositions().forEach(function(ot){k.renderMinorTick(ot,yt)}),V.length&&(V.forEach(function(ot,ht){k.renderTick(ot,ht,yt)}),ct&&(k.min===0||k.single)&&(H[-1]||(H[-1]=new $(k,-1,null,!0)),H[-1].render(-1))),st&&V.forEach(function(ot,ht){w=V[ht+1]!==void 0?V[ht+1]+ct:k.max-ct,ht%2==0&&ot<k.max&&w<=k.max+(z.polar?-ct:ct)&&(et[ot]||(et[ot]=new q.PlotLineOrBand(k)),d=ot+ct,et[ot].options={from:F?F.lin2log(d):d,to:F?F.lin2log(w):w,color:st,className:"highcharts-alternate-grid"},et[ot].render(),et[ot].isActive=!0)}),k._addedPlotLB||(k._addedPlotLB=!0,(I.plotLines||[]).concat(I.plotBands||[]).forEach(function(ot){k.addPlotBandOrLine(ot)}))}if([H,Q,et].forEach(function(ot){var ht=[],ut=bt.duration;o(ot,function(vt,wt){vt.isActive||(vt.render(wt,!1,0),vt.isActive=!1,ht.push(wt))}),m(function(){for(var vt=ht.length;vt--;)ot[ht[vt]]&&!ot[ht[vt]].isActive&&(ot[ht[vt]].destroy(),delete ot[ht[vt]])},ot!==et&&z.hasRendered&&ut?ut:0)}),gt&&(gt[gt.isPlaced?"animate":"attr"]({d:this.getLinePath(gt.strokeWidth())}),gt.isPlaced=!0,gt[mt?"show":"hide"](mt)),X&&mt){var dt=k.getTitlePosition();X[X.isNew?"attr":"animate"](dt),X.isNew=!1}tt&&tt.enabled&&k.stacking&&k.stacking.renderStackTotals(),k.old={len:k.len,max:k.max,min:k.min,transA:k.transA,userMax:k.userMax,userMin:k.userMin},k.isDirty=!1,f(this,"afterRender")},O.prototype.redraw=function(){this.visible&&(this.render(),this.plotLinesAndBands.forEach(function(d){d.render()})),this.series.forEach(function(d){d.isDirty=!0})},O.prototype.getKeepProps=function(){return this.keepProps||O.keepProps},O.prototype.destroy=function(d){var w=this,k=w.plotLinesAndBands,z=this.eventOptions;if(f(this,"destroy",{keepEvents:d}),d||a(w),[w.ticks,w.minorTicks,w.alternateBands].forEach(function(I){C(I)}),k)for(var F=k.length;F--;)k[F].destroy();for(var j in["axisLine","axisTitle","axisGroup","gridGroup","labelGroup","cross","scrollbar"].forEach(function(I){w[I]&&(w[I]=w[I].destroy())}),w.plotLinesAndBandsGroups)w.plotLinesAndBandsGroups[j]=w.plotLinesAndBandsGroups[j].destroy();o(w,function(I,_){w.getKeepProps().indexOf(_)===-1&&delete w[_]}),this.eventOptions=z},O.prototype.drawCrosshair=function(d,w){var k,z,F,j,I=this.crosshair,_=i(I&&I.snap,!0),V=this.chart,X=this.cross;if(f(this,"drawCrosshair",{e:d,point:w}),d||(d=this.cross&&this.cross.e),I&&(y(w)||!_)!==!1){if(_?y(w)&&(z=i(this.coll!=="colorAxis"?w.crosshairPos:null,this.isXAxis?w.plotX:this.len-w.plotY)):z=d&&(this.horiz?d.chartX-this.pos:this.len-d.chartY+this.pos),y(z)&&(j={value:w&&(this.isXAxis?w.x:i(w.stackY,w.y)),translatedValue:z},V.polar&&M(j,{isCrosshair:!0,chartX:d&&d.chartX,chartY:d&&d.chartY,point:w}),k=this.getPlotLinePath(j)||null),!y(k))return void this.hideCrosshair();F=this.categories&&!this.isRadial,X||(this.cross=X=V.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(F?"category ":"thin ")+(I.className||"")).attr({zIndex:i(I.zIndex,2)}).add(),V.styledMode||(X.attr({stroke:I.color||(F?U.parse("#ccd6eb").setOpacity(.25).get():"#cccccc"),"stroke-width":i(I.width,1)}).css({"pointer-events":"none"}),I.dashStyle&&X.attr({dashstyle:I.dashStyle}))),X.show().attr({d:k}),F&&!I.width&&X.attr({"stroke-width":this.transA}),this.cross.e=d}else this.hideCrosshair();f(this,"afterDrawCrosshair",{e:d,point:w})},O.prototype.hideCrosshair=function(){this.cross&&this.cross.hide(),f(this,"afterHideCrosshair")},O.prototype.hasVerticalPanning=function(){var d=this.chart.options.chart.panning;return!!(d&&d.enabled&&/y/.test(d.type))},O.prototype.validatePositiveValue=function(d){return l(d)&&d>0},O.prototype.update=function(d,w){var k=this.chart;d=e(this.userOptions,d),this.destroy(!0),this.init(k,d),k.isDirtyBox=!0,i(w,!0)&&k.redraw()},O.prototype.remove=function(d){for(var w=this.chart,k=this.coll,z=this.series,F=z.length;F--;)z[F]&&z[F].remove(!1);P(w.axes,this),P(w[k],this),w[k].forEach(function(j,I){j.options.index=j.userOptions.index=I}),this.destroy(),w.isDirtyBox=!0,i(d,!0)&&w.redraw()},O.prototype.setTitle=function(d,w){this.update({title:d},w)},O.prototype.setCategories=function(d,w){this.update({categories:d},w)},O.defaultOptions=R.defaultXAxisOptions,O.keepProps=["extKey","hcEvents","names","series","userMax","userMin"],O}()}),rt(N,"Core/Axis/DateTimeAxis.js",[N["Core/Utilities.js"]],function(W){var R,U=W.addEvent,Y=W.getMagnitude,Z=W.normalizeTickInterval,q=W.timeUnits;return function($){var G=[];function D(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)}function E(T){var u=this;T.userOptions.type==="datetime"?u.dateTime||(u.dateTime=new x(u)):u.dateTime=void 0}$.compose=function(T){return G.indexOf(T)===-1&&(G.push(T),T.keepProps.push("dateTime"),T.prototype.getTimeTicks=D,U(T,"init",E)),T};var x=function(){function T(u){this.axis=u}return T.prototype.normalizeTimeTickInterval=function(u,p){var g,v=p||[["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]],y=v[v.length-1],C=q[y[0]],P=y[1];for(g=0;g<v.length&&(y=v[g],C=q[y[0]],P=y[1],!(v[g+1]&&u<=(C*P[P.length-1]+q[v[g+1][0]])/2));g++);return C===q.year&&u<5*C&&(P=[1,2,5]),{unitRange:C,count:Z(u/C,P,y[0]==="year"?Math.max(Y(u/C),1):1),unitName:y[0]}},T.prototype.getXDateFormat=function(u,p){var g=this.axis,v=g.chart.time;return g.closestPointRange?v.getDateFormat(g.closestPointRange,u,g.options.startOfWeek,p)||v.resolveDTLFormat(p.year).main:v.resolveDTLFormat(p.day).main},T}();$.Additions=x}(R||(R={})),R}),rt(N,"Core/Axis/LogarithmicAxis.js",[N["Core/Utilities.js"]],function(W){var R,U=W.addEvent,Y=W.normalizeTickInterval,Z=W.pick;return function(q){var $=[];function G(x){var T=this,u=x.userOptions,p=T.logarithmic;u.type!=="logarithmic"?T.logarithmic=void 0:p||(p=T.logarithmic=new E(T))}function D(){var x=this,T=x.logarithmic;T&&(x.lin2val=function(u){return T.lin2log(u)},x.val2lin=function(u){return T.log2lin(u)})}q.compose=function(x){return $.indexOf(x)===-1&&($.push(x),x.keepProps.push("logarithmic"),U(x,"init",G),U(x,"afterInit",D)),x};var E=function(){function x(T){this.axis=T}return x.prototype.getLogTickPositions=function(T,u,p,g){var v=this,y=v.axis,C=y.len,P=y.options,L=[];if(g||(v.minorAutoInterval=void 0),T>=.5)T=Math.round(T),L=y.getLinearTickPositions(T,u,p);else if(T>=.08){var M,f=void 0,b=void 0,l=void 0,h=void 0,e=void 0,r=void 0;for(M=T>.3?[1,2,4]:T>.15?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9],f=Math.floor(u);f<p+1&&!r;f++)for(l=M.length,b=0;b<l&&!r;b++)(h=v.log2lin(v.lin2log(f)*M[b]))>u&&(!g||e<=p)&&e!==void 0&&L.push(e),e>p&&(r=!0),e=h}else{var o=v.lin2log(u),i=v.lin2log(p),c=g?y.getMinorTickInterval():P.tickInterval,a=c==="auto"?null:c,s=P.tickPixelInterval/(g?5:1),m=g?C/y.tickPositions.length:C;T=Z(a,v.minorAutoInterval,(i-o)*s/(m||1)),T=Y(T),L=y.getLinearTickPositions(T,o,i).map(v.log2lin),g||(v.minorAutoInterval=T/5)}return g||(y.tickInterval=T),L},x.prototype.lin2log=function(T){return Math.pow(10,T)},x.prototype.log2lin=function(T){return Math.log(T)/Math.LN10},x}();q.Additions=E}(R||(R={})),R}),rt(N,"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js",[N["Core/Utilities.js"]],function(W){var R,U=W.erase,Y=W.extend,Z=W.isNumber;return function(q){var $,G=[];q.compose=function(E,x){return $||($=E),G.indexOf(x)===-1&&(G.push(x),Y(x.prototype,D.prototype)),x};var D=function(){function E(){}return E.prototype.getPlotBandPath=function(x,T,u){u===void 0&&(u=this.options);var p,g,v=this.getPlotLinePath({value:T,force:!0,acrossPanes:u.acrossPanes}),y=[],C=this.horiz,P=!Z(this.min)||!Z(this.max)||x<this.min&&T<this.min||x>this.max&&T>this.max,L=this.getPlotLinePath({value:x,force:!0,acrossPanes:u.acrossPanes}),M=1;if(L&&v)for(P&&(g=L.toString()===v.toString(),M=0),p=0;p<L.length;p+=2){var f=L[p],b=L[p+1],l=v[p],h=v[p+1];f[0]!=="M"&&f[0]!=="L"||b[0]!=="M"&&b[0]!=="L"||l[0]!=="M"&&l[0]!=="L"||h[0]!=="M"&&h[0]!=="L"||(C&&l[1]===f[1]?(l[1]+=M,h[1]+=M):C||l[2]!==f[2]||(l[2]+=M,h[2]+=M),y.push(["M",f[1],f[2]],["L",b[1],b[2]],["L",h[1],h[2]],["L",l[1],l[2]],["Z"])),y.isFlat=g}else L=null;return y},E.prototype.addPlotBand=function(x){return this.addPlotBandOrLine(x,"plotBands")},E.prototype.addPlotLine=function(x){return this.addPlotBandOrLine(x,"plotLines")},E.prototype.addPlotBandOrLine=function(x,T){var u=this,p=this.userOptions,g=new $(this,x);if(this.visible&&(g=g.render()),g){if(this._addedPlotLB||(this._addedPlotLB=!0,(p.plotLines||[]).concat(p.plotBands||[]).forEach(function(y){u.addPlotBandOrLine(y)})),T){var v=p[T]||[];v.push(x),p[T]=v}this.plotLinesAndBands.push(g)}return g},E.prototype.removePlotBandOrLine=function(x){var T=this.plotLinesAndBands,u=this.options,p=this.userOptions;if(T){for(var g=T.length;g--;)T[g].id===x&&T[g].destroy();[u.plotLines||[],p.plotLines||[],u.plotBands||[],p.plotBands||[]].forEach(function(v){for(g=v.length;g--;)(v[g]||{}).id===x&&U(v,v[g])})}},E.prototype.removePlotBand=function(x){this.removePlotBandOrLine(x)},E.prototype.removePlotLine=function(x){this.removePlotBandOrLine(x)},E}()}(R||(R={})),R}),rt(N,"Core/Axis/PlotLineOrBand/PlotLineOrBand.js",[N["Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js"],N["Core/Utilities.js"]],function(W,R){var U=R.arrayMax,Y=R.arrayMin,Z=R.defined,q=R.destroyObjectProperties,$=R.erase,G=R.fireEvent,D=R.merge,E=R.objectEach,x=R.pick;return function(){function T(u,p){this.axis=u,p&&(this.options=p,this.id=p.id)}return T.compose=function(u){return W.compose(T,u)},T.prototype.render=function(){G(this,"render");var u,p=this,g=p.axis,v=g.horiz,y=g.logarithmic,C=p.options,P=C.color,L=x(C.zIndex,0),M=C.events,f={},b=g.chart.renderer,l=C.label,h=p.label,e=C.to,r=C.from,o=C.value,i=p.svgElem,c=[],a=Z(r)&&Z(e),s=Z(o),m=!i,A={class:"highcharts-plot-"+(a?"band ":"line ")+(C.className||"")},O=a?"bands":"lines";if(y&&(r=y.log2lin(r),e=y.log2lin(e),o=y.log2lin(o)),g.chart.styledMode||(s?(A.stroke=P||"#999999",A["stroke-width"]=x(C.width,1),C.dashStyle&&(A.dashstyle=C.dashStyle)):a&&(A.fill=P||"#e6ebf5",C.borderWidth&&(A.stroke=C.borderColor,A["stroke-width"]=C.borderWidth))),f.zIndex=L,O+="-"+L,(u=g.plotLinesAndBandsGroups[O])||(g.plotLinesAndBandsGroups[O]=u=b.g("plot-"+O).attr(f).add()),m&&(p.svgElem=i=b.path().attr(A).add(u)),s)c=g.getPlotLinePath({value:o,lineWidth:i.strokeWidth(),acrossPanes:C.acrossPanes});else{if(!a)return;c=g.getPlotBandPath(r,e,C)}return!p.eventsAdded&&M&&(E(M,function(d,w){i.on(w,function(k){M[w].apply(p,[k])})}),p.eventsAdded=!0),(m||!i.d)&&c&&c.length?i.attr({d:c}):i&&(c?(i.show(),i.animate({d:c})):i.d&&(i.hide(),h&&(p.label=h=h.destroy()))),l&&(Z(l.text)||Z(l.formatter))&&c&&c.length&&g.width>0&&g.height>0&&!c.isFlat?(l=D({align:v&&a&&"center",x:v?!a&&4:10,verticalAlign:!v&&a&&"middle",y:v?a?16:10:a?6:-4,rotation:v&&!a&&90},l),this.renderLabel(l,c,a,L)):h&&h.hide(),p},T.prototype.renderLabel=function(u,p,g,v){var y=this,C=y.axis,P=C.chart.renderer,L=y.label;L||(y.label=L=P.text(this.getLabelText(u),0,0,u.useHTML).attr({align:u.textAlign||u.align,rotation:u.rotation,class:"highcharts-plot-"+(g?"band":"line")+"-label "+(u.className||""),zIndex:v}).add(),C.chart.styledMode||L.css(D({textOverflow:"ellipsis"},u.style)));var M=p.xBounds||[p[0][1],p[1][1],g?p[2][1]:p[0][1]],f=p.yBounds||[p[0][2],p[1][2],g?p[2][2]:p[0][2]],b=Y(M),l=Y(f);if(L.align(u,!1,{x:b,y:l,width:U(M)-b,height:U(f)-l}),!L.alignValue||L.alignValue==="left"){var h=u.clip?C.width:C.chart.chartWidth;L.css({width:(L.rotation===90?C.height-(L.alignAttr.y-C.top):h-(L.alignAttr.x-C.left))+"px"})}L.show(!0)},T.prototype.getLabelText=function(u){return Z(u.formatter)?u.formatter.call(this):u.text},T.prototype.destroy=function(){$(this.axis.plotLinesAndBands,this),delete this.axis,q(this)},T}()}),rt(N,"Core/Tooltip.js",[N["Core/FormatUtilities.js"],N["Core/Globals.js"],N["Core/Renderer/RendererUtilities.js"],N["Core/Renderer/RendererRegistry.js"],N["Core/Utilities.js"]],function(W,R,U,Y,Z){var q=W.format,$=R.doc,G=U.distribute,D=Z.clamp,E=Z.css,x=Z.discardElement,T=Z.extend,u=Z.fireEvent,p=Z.isArray,g=Z.isNumber,v=Z.isString,y=Z.merge,C=Z.pick,P=Z.splat,L=Z.syncTimeout;return function(){function M(f,b){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=f,this.init(f,b)}return M.prototype.applyFilter=function(){var f=this.chart;f.renderer.definition({tagName:"filter",attributes:{id:"drop-shadow-"+f.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"}}]}]})},M.prototype.bodyFormatter=function(f){return f.map(function(b){var l=b.series.tooltipOptions;return(l[(b.point.formatPrefix||"point")+"Formatter"]||b.point.tooltipFormatter).call(b.point,l[(b.point.formatPrefix||"point")+"Format"]||"")})},M.prototype.cleanSplit=function(f){this.chart.series.forEach(function(b){var l=b&&b.tt;l&&(!l.isActive||f?b.tt=l.destroy():l.isActive=!1)})},M.prototype.defaultFormatter=function(f){var b,l=this.points||P(this);return(b=(b=[f.tooltipFooterHeaderFormatter(l[0])]).concat(f.bodyFormatter(l))).push(f.tooltipFooterHeaderFormatter(l[0],!0)),b},M.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(),x(this.container)),Z.clearTimeout(this.hideTimer),Z.clearTimeout(this.tooltipTimeout)},M.prototype.getAnchor=function(f,b){var l,h=this.chart,e=h.pointer,r=h.inverted,o=h.plotTop,i=h.plotLeft;if((f=P(f))[0].series&&f[0].series.yAxis&&!f[0].series.yAxis.options.reversedStacks&&(f=f.slice().reverse()),this.followPointer&&b)b.chartX===void 0&&(b=e.normalize(b)),l=[b.chartX-i,b.chartY-o];else if(f[0].tooltipPos)l=f[0].tooltipPos;else{var c=0,a=0;f.forEach(function(s){var m=s.pos(!0);m&&(c+=m[0],a+=m[1])}),c/=f.length,a/=f.length,this.shared&&f.length>1&&b&&(r?c=b.chartX:a=b.chartY),l=[c-i,a-o]}return l.map(Math.round)},M.prototype.getClassName=function(f,b,l){var h=this.options,e=f.series,r=e.options;return[h.className,"highcharts-label",l&&"highcharts-tooltip-header",b?"highcharts-tooltip-box":"highcharts-tooltip",!l&&"highcharts-color-"+C(f.colorIndex,e.colorIndex),r&&r.className].filter(v).join(" ")},M.prototype.getLabel=function(){var f,b=this,l=this.chart.styledMode,h=this.options,e=this.split&&this.allowShared,r=h.style.pointerEvents||(this.shouldStickOnContact()?"auto":"none"),o=this.chart.renderer;if(b.label){var i=!b.label.hasClass("highcharts-label");(e&&!i||!e&&i)&&b.destroy()}if(!this.label){if(this.outside){var c=this.chart.options.chart.style,a=Y.getRendererType();this.container=f=R.doc.createElement("div"),f.className="highcharts-tooltip-container",E(f,{position:"absolute",top:"1px",pointerEvents:r,zIndex:Math.max(this.options.style.zIndex||0,(c&&c.zIndex||0)+3)}),R.doc.body.appendChild(f),this.renderer=o=new a(f,0,0,c,void 0,void 0,o.styledMode)}if(e?this.label=o.g("tooltip"):(this.label=o.label("",0,0,h.shape,void 0,void 0,h.useHTML,void 0,"tooltip").attr({padding:h.padding,r:h.borderRadius}),l||this.label.attr({fill:h.backgroundColor,"stroke-width":h.borderWidth}).css(h.style).css({pointerEvents:r}).shadow(h.shadow)),l&&h.shadow&&(this.applyFilter(),this.label.attr({filter:"url(#drop-shadow-"+this.chart.index+")"})),b.outside&&!b.split){var s=this.label,m=s.xSetter,A=s.ySetter;s.xSetter=function(O){m.call(s,b.distance),f.style.left=O+"px"},s.ySetter=function(O){A.call(s,b.distance),f.style.top=O+"px"}}this.label.attr({zIndex:8}).add()}return this.label},M.prototype.getPosition=function(f,b,l){var h,e=this.chart,r=this.distance,o={},i=e.inverted&&l.h||0,c=this.outside,a=c?$.documentElement.clientWidth-2*r:e.chartWidth,s=c?Math.max($.body.scrollHeight,$.documentElement.scrollHeight,$.body.offsetHeight,$.documentElement.offsetHeight,$.documentElement.clientHeight):e.chartHeight,m=e.pointer.getChartPosition(),A=function(X){return X*m.scaleX},O=function(X){return X*m.scaleY},d=function(X){var H=X==="x";return[X,H?a:s,H?f:b].concat(c?[H?A(f):O(b),H?m.left-r+A(l.plotX+e.plotLeft):m.top-r+O(l.plotY+e.plotTop),0,H?a:s]:[H?f:b,H?l.plotX+e.plotLeft:l.plotY+e.plotTop,H?e.plotLeft:e.plotTop,H?e.plotLeft+e.plotWidth:e.plotTop+e.plotHeight])},w=d("y"),k=d("x"),z=!!l.negative;!e.polar&&e.hoverSeries&&e.hoverSeries.yAxis&&e.hoverSeries.yAxis.reversed&&(z=!z);var F=!this.followPointer&&C(l.ttBelow,!e.inverted===z),j=function(X,H,Q,et,tt,st,ct){var gt=c?X==="y"?O(r):A(r):r,mt=(Q-et)/2,bt=et<tt-r,yt=tt+r+et<H,dt=tt-gt-Q+mt,ot=tt+gt-mt;if(F&&yt)o[X]=ot;else if(!F&&bt)o[X]=dt;else if(bt)o[X]=Math.min(ct-et,dt-i<0?dt:dt-i);else{if(!yt)return!1;o[X]=Math.max(st,ot+i+Q>H?ot:ot+i)}},I=function(X,H,Q,et,tt){var st;return tt<r||tt>H-r?st=!1:o[X]=tt<Q/2?1:tt>H-et/2?H-et-2:tt-Q/2,st},_=function(X){var H=w;w=k,k=H,h=X},V=function(){j.apply(0,w)!==!1?I.apply(0,k)!==!1||h||(_(!0),V()):h?o.x=o.y=0:(_(!0),V())};return(e.inverted||this.len>1)&&_(),V(),o},M.prototype.hide=function(f){var b=this;Z.clearTimeout(this.hideTimer),f=C(f,this.options.hideDelay),this.isHidden||(this.hideTimer=L(function(){b.getLabel().fadeOut(f&&void 0),b.isHidden=!0},f))},M.prototype.init=function(f,b){this.chart=f,this.options=b,this.crosshairs=[],this.now={x:0,y:0},this.isHidden=!0,this.split=b.split&&!f.inverted&&!f.polar,this.shared=b.shared||this.split,this.outside=C(b.outside,!!(f.scrollablePixelsX||f.scrollablePixelsY))},M.prototype.shouldStickOnContact=function(f){return!(this.followPointer||!this.options.stickOnContact||f&&!this.chart.pointer.inClass(f.target,"highcharts-tooltip"))},M.prototype.move=function(f,b,l,h){var e=this,r=e.now,o=e.options.animation!==!1&&!e.isHidden&&(Math.abs(f-r.x)>1||Math.abs(b-r.y)>1),i=e.followPointer||e.len>1;T(r,{x:o?(2*r.x+f)/3:f,y:o?(r.y+b)/2:b,anchorX:i?void 0:o?(2*r.anchorX+l)/3:l,anchorY:i?void 0:o?(r.anchorY+h)/2:h}),e.getLabel().attr(r),e.drawTracker(),o&&(Z.clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout(function(){e&&e.move(f,b,l,h)},32))},M.prototype.refresh=function(f,b){var l=this,h=this.chart,e=l.options,r=h.pointer,o=P(f),i=o[0],c=[],a=e.formatter||l.defaultFormatter,s=l.shared,m=h.styledMode,A={};if(e.enabled&&i.series){Z.clearTimeout(this.hideTimer),l.allowShared=!(!p(f)&&f.series&&f.series.noSharedTooltip),l.followPointer=!l.split&&i.series.tooltipOptions.followPointer;var O=l.getAnchor(f,b),d=O[0],w=O[1];s&&l.allowShared?(r.applyInactiveState(o),o.forEach(function(_){_.setState("hover"),c.push(_.getLabelConfig())}),(A={x:i.category,y:i.y}).points=c):A=i.getLabelConfig(),this.len=c.length;var k=a.call(A,l),z=i.series;if(this.distance=C(z.tooltipOptions.distance,16),k===!1)this.hide();else{if(l.split&&l.allowShared)this.renderSplit(k,o);else{var F=d,j=w;if(b&&r.isDirectTouch&&(F=b.chartX-h.plotLeft,j=b.chartY-h.plotTop),!h.polar&&z.options.clip!==!1&&!o.some(function(_){return r.isDirectTouch||_.series.shouldShowTooltip(F,j)}))return void l.hide();var I=l.getLabel();e.style.width&&!m||I.css({width:h.spacingBox.width+"px"}),I.attr({text:k&&k.join?k.join(""):k}),I.addClass(l.getClassName(i),!0),m||I.attr({stroke:e.borderColor||i.color||z.color||"#666666"}),l.updatePosition({plotX:d,plotY:w,negative:i.negative,ttBelow:i.ttBelow,h:O[2]||0})}l.isHidden&&l.label&&l.label.attr({opacity:1}).show(),l.isHidden=!1}u(this,"refresh")}},M.prototype.renderSplit=function(f,b){var l=this,h=l.chart,e=l.chart,r=e.chartWidth,o=e.chartHeight,i=e.plotHeight,c=e.plotLeft,a=e.plotTop,s=e.pointer,m=e.scrollablePixelsY,A=m===void 0?0:m,O=e.scrollablePixelsX,d=e.scrollingContainer,w=d===void 0?{scrollLeft:0,scrollTop:0}:d,k=w.scrollLeft,z=w.scrollTop,F=e.styledMode,j=l.distance,I=l.options,_=l.options.positioner,V=l.outside&&typeof O!="number"?$.documentElement.getBoundingClientRect():{left:k,right:k+r,top:z,bottom:z+o},X=l.getLabel(),H=this.renderer||h.renderer,Q=!!(h.xAxis[0]&&h.xAxis[0].opposite),et=s.getChartPosition(),tt=et.left,st=et.top,ct=a+z,gt=0,mt=i-A;function bt(Mt,Tt,Pt,kt,Ot){var Dt,Et;return Ot===void 0&&(Ot=!0),Pt?(Dt=Q?0:mt,Et=D(Mt-kt/2,V.left,V.right-kt-(l.outside?tt:0))):(Dt=Tt-ct,Et=D(Et=Ot?Mt-kt-j:Mt+j,Ot?Et:V.left,V.right)),{x:Et,y:Dt}}v(f)&&(f=[!1,f]);var yt=f.slice(0,b.length+1).reduce(function(Mt,Tt,Pt){if(Tt!==!1&&Tt!==""){var kt=b[Pt-1]||{isHeader:!0,plotX:b[0].plotX,plotY:i,series:{}},Ot=kt.isHeader,Dt=Ot?l:kt.series,Et=Dt.tt=function(Ht,$t,ve){var Lt=Ht,zt=$t.isHeader,Wt=$t.series;if(!Lt){var Xt={padding:I.padding,r:I.borderRadius};F||(Xt.fill=I.backgroundColor,Xt["stroke-width"]=I.borderWidth),Lt=H.label("",0,0,I[zt?"headerShape":"shape"],void 0,void 0,I.useHTML).addClass(l.getClassName($t,!0,zt)).attr(Xt).add(X)}return Lt.isActive=!0,Lt.attr({text:ve}),F||Lt.css(I.style).shadow(I.shadow).attr({stroke:I.borderColor||$t.color||Wt.color||"#333333"}),Lt}(Dt.tt,kt,Tt.toString()),It=Et.getBBox(),_t=It.width+Et.strokeWidth();Ot&&(gt=It.height,mt+=gt,Q&&(ct-=gt));var Yt=function(Ht){var $t,ve,Lt=Ht.isHeader,zt=Ht.plotX,Wt=zt===void 0?0:zt,Xt=Ht.plotY,he=Xt===void 0?0:Xt,ae=Ht.series;if(Lt)$t=c+Wt,ve=a+i/2;else{var ne=ae.xAxis,Kt=ae.yAxis;$t=ne.pos+D(Wt,-j,ne.len+j),ae.shouldShowTooltip(0,Kt.pos-a+he,{ignoreX:!0})&&(ve=Kt.pos+he)}return{anchorX:$t=D($t,V.left-j,V.right+j),anchorY:ve}}(kt),Bt=Yt.anchorX,Ft=Yt.anchorY;if(typeof Ft=="number"){var Vt=It.height+1,ue=_?_.call(l,_t,Vt,kt):bt(Bt,Ft,Ot,_t);Mt.push({align:_?0:void 0,anchorX:Bt,anchorY:Ft,boxWidth:_t,point:kt,rank:C(ue.rank,Ot?1:0),size:Vt,target:ue.y,tt:Et,x:ue.x})}else Et.isActive=!1}return Mt},[]);!_&&yt.some(function(Mt){var Tt=(l.outside?tt:0)+Mt.anchorX;return Tt<V.left&&Tt+Mt.boxWidth<V.right||Tt<tt-V.left+Mt.boxWidth&&V.right-Tt>Tt})&&(yt=yt.map(function(Mt){var Tt=bt(Mt.anchorX,Mt.anchorY,Mt.point.isHeader,Mt.boxWidth,!1),Pt=Tt.x,kt=Tt.y;return T(Mt,{target:kt,x:Pt})})),l.cleanSplit(),G(yt,mt);var dt={left:tt,right:tt};yt.forEach(function(Mt){var Tt=Mt.x,Pt=Mt.boxWidth,kt=Mt.isHeader;kt||(l.outside&&tt+Tt<dt.left&&(dt.left=tt+Tt),!kt&&l.outside&&dt.left+Pt>dt.right&&(dt.right=tt+Tt))}),yt.forEach(function(Mt){var Tt=Mt.x,Pt=Mt.anchorX,kt=Mt.anchorY,Ot=Mt.pos,Dt=Mt.point.isHeader,Et={visibility:Ot===void 0?"hidden":"inherit",x:Tt,y:(Ot||0)+ct,anchorX:Pt,anchorY:kt};if(l.outside&&Tt<Pt){var It=tt-dt.left;It>0&&(Dt||(Et.x=Tt+It,Et.anchorX=Pt+It),Dt&&(Et.x=(dt.right-dt.left)/2,Et.anchorX=Pt+It))}Mt.tt.attr(Et)});var ot=l.container,ht=l.outside,ut=l.renderer;if(ht&&ot&&ut){var vt=X.getBBox(),wt=vt.width,xt=vt.height,Ct=vt.x,St=vt.y;ut.setSize(wt+Ct,xt+St,!1),ot.style.left=dt.left+"px",ot.style.top=st+"px"}},M.prototype.drawTracker=function(){var f=this;if(this.shouldStickOnContact()){var b=f.chart,l=f.label,h=f.shared?b.hoverPoints:b.hoverPoint;if(l&&h){var e={x:0,y:0,width:0,height:0},r=this.getAnchor(h),o=l.getBBox();r[0]+=b.plotLeft-l.translateX,r[1]+=b.plotTop-l.translateY,e.x=Math.min(0,r[0]),e.y=Math.min(0,r[1]),e.width=r[0]<0?Math.max(Math.abs(r[0]),o.width-r[0]):Math.max(Math.abs(r[0]),o.width),e.height=r[1]<0?Math.max(Math.abs(r[1]),o.height-Math.abs(r[1])):Math.max(Math.abs(r[1]),o.height),f.tracker?f.tracker.attr(e):(f.tracker=l.renderer.rect(e).addClass("highcharts-tracker").add(l),b.styledMode||f.tracker.attr({fill:"rgba(0,0,0,0)"}))}}else f.tracker&&f.tracker.destroy()},M.prototype.styledModeFormat=function(f){return f.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}"')},M.prototype.tooltipFooterHeaderFormatter=function(f,b){var l=f.series,h=l.tooltipOptions,e=l.xAxis,r=e&&e.dateTime,o={isFooter:b,labelConfig:f},i=h.xDateFormat,c=h[b?"footerFormat":"headerFormat"];return u(this,"headerFormatter",o,function(a){r&&!i&&g(f.key)&&(i=r.getXDateFormat(f.key,h.dateTimeLabelFormats)),r&&i&&(f.point&&f.point.tooltipDateKeys||["key"]).forEach(function(s){c=c.replace("{point."+s+"}","{point."+s+":"+i+"}")}),l.chart.styledMode&&(c=this.styledModeFormat(c)),a.text=q(c,{point:f,series:l},this.chart)}),o.text},M.prototype.update=function(f){this.destroy(),y(!0,this.chart.options.tooltip.userOptions,f),this.init(this.chart,y(!0,this.options,f))},M.prototype.updatePosition=function(f){var b,l=this,h=l.chart,e=l.distance,r=l.options,o=h.pointer,i=this.getLabel(),c=o.getChartPosition(),a=c.left,s=c.top,m=c.scaleX,A=c.scaleY,O=(r.positioner||this.getPosition).call(this,i.width,i.height,f),d=(f.plotX||0)+h.plotLeft,w=(f.plotY||0)+h.plotTop;this.outside&&(r.positioner&&(O.x+=a-e,O.y+=s-e),b=r.borderWidth+2*e,this.renderer.setSize(i.width+b,i.height+b,!1),m===1&&A===1||(E(this.container,{transform:"scale(".concat(m,", ").concat(A,")")}),d*=m,w*=A),d+=a-O.x,w+=s-O.y),this.move(Math.round(O.x),Math.round(O.y||0),d,w)},M}()}),rt(N,"Core/Series/Point.js",[N["Core/Renderer/HTML/AST.js"],N["Core/Animation/AnimationUtilities.js"],N["Core/Defaults.js"],N["Core/FormatUtilities.js"],N["Core/Utilities.js"]],function(W,R,U,Y,Z){var q=R.animObject,$=U.defaultOptions,G=Y.format,D=Z.addEvent,E=Z.defined,x=Z.erase,T=Z.extend,u=Z.fireEvent,p=Z.getNestedProperty,g=Z.isArray,v=Z.isFunction,y=Z.isNumber,C=Z.isObject,P=Z.merge,L=Z.objectEach,M=Z.pick,f=Z.syncTimeout,b=Z.removeEvent,l=Z.uniqueKey;return function(){function h(){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 h.prototype.animateBeforeDestroy=function(){var e=this,r={x:e.startXPos,opacity:0},o=e.getGraphicalProps();o.singular.forEach(function(i){var c=i==="dataLabel";e[i]=e[i].animate(c?{x:e[i].startXPos,y:e[i].startYPos,opacity:0}:r)}),o.plural.forEach(function(i){e[i].forEach(function(c){c.element&&c.animate(T({x:e.startXPos},c.startYPos?{x:c.startXPos,y:c.startYPos}:{}))})})},h.prototype.applyOptions=function(e,r){var o=this,i=o.series,c=i.options.pointValKey||i.pointValKey;return e=h.prototype.optionsToObject.call(this,e),T(o,e),o.options=o.options?T(o.options,e):e,e.group&&delete o.group,e.dataLabels&&delete o.dataLabels,c&&(o.y=h.prototype.getNestedProperty.call(o,c)),o.isNull=this.isValid&&!this.isValid(),o.formatPrefix=o.isNull?"null":"point",o.selected&&(o.state="select"),"name"in o&&r===void 0&&i.xAxis&&i.xAxis.hasNames&&(o.x=i.xAxis.nameToX(o)),o.x===void 0&&i?o.x=r===void 0?i.autoIncrement():r:y(e.x)&&i.options.relativeXValue&&(o.x=i.autoIncrement(e.x)),o},h.prototype.destroy=function(){var e,r=this,o=r.series,i=o.chart,c=o.options.dataSorting,a=i.hoverPoints,s=r.series.chart.renderer.globalAnimation,m=q(s);function A(){for(e in(r.graphic||r.graphics||r.dataLabel||r.dataLabels)&&(b(r),r.destroyElements()),r)r[e]=null}r.legendItem&&i.legend.destroyItem(r),a&&(r.setState(),x(a,r),a.length||(i.hoverPoints=null)),r===i.hoverPoint&&r.onMouseOut(),c&&c.enabled?(this.animateBeforeDestroy(),f(A,m.duration)):A(),i.pointCount--},h.prototype.destroyElements=function(e){var r=this,o=r.getGraphicalProps(e);o.singular.forEach(function(i){r[i]=r[i].destroy()}),o.plural.forEach(function(i){r[i].forEach(function(c){c&&c.element&&c.destroy()}),delete r[i]})},h.prototype.firePointEvent=function(e,r,o){var i=this,c=this.series.options;(c.point.events[e]||i.options&&i.options.events&&i.options.events[e])&&i.importEvents(),e==="click"&&c.allowPointSelect&&(o=function(a){i.select&&i.select(null,a.ctrlKey||a.metaKey||a.shiftKey)}),u(i,e,r,o)},h.prototype.getClassName=function(){var e=this;return"highcharts-point"+(e.selected?" highcharts-point-select":"")+(e.negative?" highcharts-negative":"")+(e.isNull?" highcharts-null-point":"")+(e.colorIndex!==void 0?" highcharts-color-"+e.colorIndex:"")+(e.options.className?" "+e.options.className:"")+(e.zone&&e.zone.className?" "+e.zone.className.replace("highcharts-negative",""):"")},h.prototype.getGraphicalProps=function(e){var r,o,i=this,c=[],a={singular:[],plural:[]};for((e=e||{graphic:1,dataLabel:1}).graphic&&c.push("graphic","shadowGroup"),e.dataLabel&&c.push("dataLabel","dataLabelPath","dataLabelUpper","connector"),o=c.length;o--;)r=c[o],i[r]&&a.singular.push(r);return["graphic","dataLabel","connector"].forEach(function(s){var m=s+"s";e[s]&&i[m]&&a.plural.push(m)}),a},h.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}},h.prototype.getNestedProperty=function(e){if(e)return e.indexOf("custom.")===0?p(e,this.options):this[e]},h.prototype.getZone=function(){var e,r=this.series,o=r.zones,i=r.zoneAxis||"y",c=0;for(e=o[c];this[i]>=e.value;)e=o[++c];return this.nonZonedColor||(this.nonZonedColor=this.color),e&&e.color&&!this.options.color?this.color=e.color:this.color=this.nonZonedColor,e},h.prototype.hasNewShapeType=function(){var e=this;return(e.graphic&&(e.graphic.symbolName||e.graphic.element.nodeName))!==this.shapeType},h.prototype.init=function(e,r,o){return this.series=e,this.applyOptions(r,o),this.id=E(this.id)?this.id:l(),this.resolveColor(),e.chart.pointCount++,u(this,"afterInit"),this},h.prototype.isValid=function(){return this.x!==null&&y(this.y)},h.prototype.optionsToObject=function(e){var r,o=this.series,i=o.options.keys,c=i||o.pointArrayMap||["y"],a=c.length,s={},m=0,A=0;if(y(e)||e===null)s[c[0]]=e;else if(g(e))for(!i&&e.length>a&&((r=typeof e[0])=="string"?s.name=e[0]:r==="number"&&(s.x=e[0]),m++);A<a;)i&&e[m]===void 0||(c[A].indexOf(".")>0?h.prototype.setNestedProperty(s,e[m],c[A]):s[c[A]]=e[m]),m++,A++;else typeof e=="object"&&(s=e,e.dataLabels&&(o._hasPointLabels=!0),e.marker&&(o._hasPointMarkers=!0));return s},h.prototype.pos=function(e,r){r===void 0&&(r=this.plotY);var o=this.plotX,i=this.series,c=i.chart,a=i.xAxis,s=i.yAxis,m=0,A=0;if(y(o)&&y(r))return e&&(m=a?a.pos:c.plotLeft,A=s?s.pos:c.plotTop),c.inverted&&a&&s?[s.len-r+A,a.len-o+m]:[o+m,r+A]},h.prototype.resolveColor=function(){var e,r,o,i=this.series,c=i.chart.options.chart,a=i.chart.styledMode,s=c.colorCount;delete this.nonZonedColor,i.options.colorByPoint?(a||(e=(r=i.options.colors||i.chart.options.colors)[i.colorCounter],s=r.length),o=i.colorCounter,i.colorCounter++,i.colorCounter===s&&(i.colorCounter=0)):(a||(e=i.color),o=i.colorIndex),this.colorIndex=M(this.options.colorIndex,o),this.color=M(this.options.color,e)},h.prototype.setNestedProperty=function(e,r,o){return o.split(".").reduce(function(i,c,a,s){var m=s.length-1===a;return i[c]=m?r:C(i[c],!0)?i[c]:{},i[c]},e),e},h.prototype.shouldDraw=function(){return!this.isNull},h.prototype.tooltipFormatter=function(e){var r=this.series,o=r.tooltipOptions,i=M(o.valueDecimals,""),c=o.valuePrefix||"",a=o.valueSuffix||"";return r.chart.styledMode&&(e=r.chart.tooltip.styledModeFormat(e)),(r.pointArrayMap||["y"]).forEach(function(s){s="{point."+s,(c||a)&&(e=e.replace(RegExp(s+"}","g"),c+s+"}"+a)),e=e.replace(RegExp(s+"}","g"),s+":,."+i+"f}")}),G(e,{point:this,series:this.series},r.chart)},h.prototype.update=function(e,r,o,i){var c,a=this,s=a.series,m=a.graphic,A=s.chart,O=s.options;function d(){a.applyOptions(e);var w=m&&a.hasMockGraphic,k=a.y===null?!w:w;m&&k&&(a.graphic=m.destroy(),delete a.hasMockGraphic),C(e,!0)&&(m&&m.element&&e&&e.marker&&e.marker.symbol!==void 0&&(a.graphic=m.destroy()),e&&e.dataLabels&&a.dataLabel&&(a.dataLabel=a.dataLabel.destroy()),a.connector&&(a.connector=a.connector.destroy())),c=a.index,s.updateParallelArrays(a,c),O.data[c]=C(O.data[c],!0)||C(e,!0)?a.options:M(e,O.data[c]),s.isDirty=s.isDirtyData=!0,!s.fixedBox&&s.hasCartesianSeries&&(A.isDirtyBox=!0),O.legendType==="point"&&(A.isDirtyLegend=!0),r&&A.redraw(o)}r=M(r,!0),i===!1?d():a.firePointEvent("update",{options:e},d)},h.prototype.remove=function(e,r){this.series.removePoint(this.series.data.indexOf(this),e,r)},h.prototype.select=function(e,r){var o=this,i=o.series,c=i.chart;e=M(e,!o.selected),this.selectedStaging=e,o.firePointEvent(e?"select":"unselect",{accumulate:r},function(){o.selected=o.options.selected=e,i.options.data[i.data.indexOf(o)]=o.options,o.setState(e&&"select"),r||c.getSelectedPoints().forEach(function(a){var s=a.series;a.selected&&a!==o&&(a.selected=a.options.selected=!1,s.options.data[s.data.indexOf(a)]=a.options,a.setState(c.hoverPoints&&s.options.inactiveOtherPoints?"inactive":""),a.firePointEvent("unselect"))})}),delete this.selectedStaging},h.prototype.onMouseOver=function(e){var r=this,o=r.series.chart,i=o.pointer;e=e?i.normalize(e):i.getChartCoordinatesFromPoint(r,o.inverted),i.runPointActions(e,r)},h.prototype.onMouseOut=function(){var e=this,r=e.series.chart;e.firePointEvent("mouseOut"),e.series.options.inactiveOtherPoints||(r.hoverPoints||[]).forEach(function(o){o.setState()}),r.hoverPoints=r.hoverPoint=null},h.prototype.importEvents=function(){if(!this.hasImportedEvents){var e=this,r=P(e.series.options.point,e.options).events;e.events=r,L(r,function(o,i){v(o)&&D(e,i,o)}),this.hasImportedEvents=!0}},h.prototype.setState=function(e,r){var o,i,c,a,s=this,m=s.series,A=s.state,O=m.options.states[e||"normal"]||{},d=$.plotOptions[m.type].marker&&m.options.marker,w=d&&d.enabled===!1,k=d&&d.states&&d.states[e||"normal"]||{},z=k.enabled===!1,F=s.marker||{},j=m.chart,I=d&&m.markerAttribs,_=m.halo,V=m.stateMarkerGraphic;if(!((e=e||"")===s.state&&!r||s.selected&&e!=="select"||O.enabled===!1||e&&(z||w&&k.enabled===!1)||e&&F.states&&F.states[e]&&F.states[e].enabled===!1)){if(s.state=e,I&&(o=m.markerAttribs(s,e)),s.graphic&&!s.hasMockGraphic){if(A&&s.graphic.removeClass("highcharts-point-"+A),e&&s.graphic.addClass("highcharts-point-"+e),!j.styledMode){i=m.pointAttribs(s,e),c=M(j.options.chart.animation,O.animation);var X=i.opacity;m.options.inactiveOtherPoints&&y(X)&&((s.dataLabels||[]).forEach(function(tt){tt&&!tt.hasClass("highcharts-data-label-hidden")&&tt.animate({opacity:X},c)}),s.connector&&s.connector.animate({opacity:X},c)),s.graphic.animate(i,c)}o&&s.graphic.animate(o,M(j.options.chart.animation,k.animation,d.animation)),V&&V.hide()}else e&&k&&(a=F.symbol||m.symbol,V&&V.currentSymbol!==a&&(V=V.destroy()),o&&(V?V[r?"animate":"attr"]({x:o.x,y:o.y}):a&&(m.stateMarkerGraphic=V=j.renderer.symbol(a,o.x,o.y,o.width,o.height).add(m.markerGroup),V.currentSymbol=a)),!j.styledMode&&V&&s.state!=="inactive"&&V.attr(m.pointAttribs(s,e))),V&&(V[e&&s.isInside?"show":"hide"](),V.element.point=s,V.addClass(s.getClassName(),!0));var H=O.halo,Q=s.graphic||V,et=Q&&Q.visibility||"inherit";H&&H.size&&Q&&et!=="hidden"&&!s.isCluster?(_||(m.halo=_=j.renderer.path().add(Q.parentGroup)),_.show()[r?"animate":"attr"]({d:s.haloPath(H.size)}),_.attr({class:"highcharts-halo highcharts-color-"+M(s.colorIndex,m.colorIndex)+(s.className?" "+s.className:""),visibility:et,zIndex:-1}),_.point=s,j.styledMode||_.attr(T({fill:s.color||m.color,"fill-opacity":H.opacity},W.filterUserAttributes(H.attributes||{})))):_&&_.point&&_.point.haloPath&&_.animate({d:_.point.haloPath(0)},null,_.hide),u(s,"afterSetState",{state:e})}},h.prototype.haloPath=function(e){var r=this.pos();return r?this.series.chart.renderer.symbols.circle(Math.floor(r[0])-e,r[1]-e,2*e,2*e):[]},h}()}),rt(N,"Core/Pointer.js",[N["Core/Color/Color.js"],N["Core/Globals.js"],N["Core/Tooltip.js"],N["Core/Utilities.js"]],function(W,R,U,Y){var Z=W.parse,q=R.charts,$=R.noop,G=Y.addEvent,D=Y.attr,E=Y.css,x=Y.defined,T=Y.extend,u=Y.find,p=Y.fireEvent,g=Y.isNumber,v=Y.isObject,y=Y.objectEach,C=Y.offset,P=Y.pick,L=Y.splat;return function(){function M(f,b){this.lastValidTouch={},this.pinchDown=[],this.runChartClick=!1,this.eventsToUnbind=[],this.chart=f,this.hasDragged=!1,this.options=b,this.init(f,b)}return M.prototype.applyInactiveState=function(f){var b,l=[];(f||[]).forEach(function(h){b=h.series,l.push(b),b.linkedParent&&l.push(b.linkedParent),b.linkedSeries&&(l=l.concat(b.linkedSeries)),b.navigatorSeries&&l.push(b.navigatorSeries)}),this.chart.series.forEach(function(h){l.indexOf(h)===-1?h.setState("inactive",!0):h.options.inactiveOtherPoints&&h.setAllPointsToState("inactive")})},M.prototype.destroy=function(){var f=this;this.eventsToUnbind.forEach(function(b){return b()}),this.eventsToUnbind=[],R.chartCount||(M.unbindDocumentMouseUp&&(M.unbindDocumentMouseUp=M.unbindDocumentMouseUp()),M.unbindDocumentTouchEnd&&(M.unbindDocumentTouchEnd=M.unbindDocumentTouchEnd())),clearInterval(f.tooltipTimeout),y(f,function(b,l){f[l]=void 0})},M.prototype.getSelectionMarkerAttrs=function(f,b){var l=this,h={args:{chartX:f,chartY:b},attrs:{},shapeType:"rect"};return p(this,"getSelectionMarkerAttrs",h,function(e){var r,o=l,i=o.chart,c=o.mouseDownX,a=c===void 0?0:c,s=o.mouseDownY,m=s===void 0?0:s,A=o.zoomHor,O=o.zoomVert,d=e.attrs;d.x=i.plotLeft,d.y=i.plotTop,d.width=A?1:i.plotWidth,d.height=O?1:i.plotHeight,A&&(r=f-a,d.width=Math.abs(r),d.x=(r>0?0:r)+a),O&&(r=b-m,d.height=Math.abs(r),d.y=(r>0?0:r)+m)}),h},M.prototype.drag=function(f){var b,l=this.chart,h=l.options.chart,e=l.plotLeft,r=l.plotTop,o=l.plotWidth,i=l.plotHeight,c=this.mouseDownX||0,a=this.mouseDownY||0,s=v(h.panning)?h.panning&&h.panning.enabled:h.panning,m=h.panKey&&f[h.panKey+"Key"],A=f.chartX,O=f.chartY,d=this.selectionMarker;if((!d||!d.touch)&&(A<e?A=e:A>e+o&&(A=e+o),O<r?O=r:O>r+i&&(O=r+i),this.hasDragged=Math.sqrt(Math.pow(c-A,2)+Math.pow(a-O,2)),this.hasDragged>10)){b=l.isInsidePlot(c-e,a-r,{visiblePlotOnly:!0});var w=this.getSelectionMarkerAttrs(A,O),k=w.shapeType,z=w.attrs;(l.hasCartesianSeries||l.mapView)&&(this.zoomX||this.zoomY)&&b&&!m&&(d||(this.selectionMarker=d=l.renderer[k](),d.attr({class:"highcharts-selection-marker",zIndex:7}).add(),l.styledMode||d.attr({fill:h.selectionMarkerFill||Z("#335cad").setOpacity(.25).get()}))),d&&d.attr(z),b&&!d&&s&&l.pan(f,h.panning)}},M.prototype.dragStart=function(f){var b=this.chart;b.mouseIsDown=f.type,b.cancelClick=!1,b.mouseDownX=this.mouseDownX=f.chartX,b.mouseDownY=this.mouseDownY=f.chartY},M.prototype.getSelectionBox=function(f){var b={args:{marker:f},result:{}};return p(this,"getSelectionBox",b,function(l){l.result={x:f.attr?+f.attr("x"):f.x,y:f.attr?+f.attr("y"):f.y,width:f.attr?f.attr("width"):f.width,height:f.attr?f.attr("height"):f.height}}),b.result},M.prototype.drop=function(f){var b=this,l=this.chart,h=this.hasPinched;if(this.selectionMarker){var e=this.getSelectionBox(this.selectionMarker),r=e.x,o=e.y,i=e.width,c=e.height,a={originalEvent:f,xAxis:[],yAxis:[],x:r,y:o,width:i,height:c},s=!!l.mapView;(this.hasDragged||h)&&(l.axes.forEach(function(m){if(m.zoomEnabled&&x(m.min)&&(h||b[{xAxis:"zoomX",yAxis:"zoomY"}[m.coll]])&&g(r)&&g(o)&&g(i)&&g(c)){var A=m.horiz,O=f.type==="touchend"?m.minPixelPadding:0,d=m.toValue((A?r:o)+O),w=m.toValue((A?r+i:o+c)-O);a[m.coll].push({axis:m,min:Math.min(d,w),max:Math.max(d,w)}),s=!0}}),s&&p(l,"selection",a,function(m){l.zoom(T(m,h?{animation:!1}:null))})),g(l.index)&&(this.selectionMarker=this.selectionMarker.destroy()),h&&this.scaleGroups()}l&&g(l.index)&&(E(l.container,{cursor:l._cursor}),l.cancelClick=this.hasDragged>10,l.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])},M.prototype.findNearestKDPoint=function(f,b,l){var h;return f.forEach(function(e){var r,o,i,c,a,s=!(e.noSharedTooltip&&b)&&e.options.findNearestPointBy.indexOf("y")<0,m=e.searchPoint(l,s);v(m,!0)&&m.series&&(!v(h,!0)||(o=m,i=(r=h).distX-o.distX,c=r.dist-o.dist,a=(o.series.group&&o.series.group.zIndex)-(r.series.group&&r.series.group.zIndex),(i!==0&&b?i:c!==0?c:a!==0?a:r.series.index>o.series.index?-1:1)>0))&&(h=m)}),h},M.prototype.getChartCoordinatesFromPoint=function(f,b){var l=f.series,h=l.xAxis,e=l.yAxis,r=f.shapeArgs;if(h&&e){var o=P(f.clientX,f.plotX),i=f.plotY||0;return f.isNode&&r&&g(r.x)&&g(r.y)&&(o=r.x,i=r.y),b?{chartX:e.len+e.pos-i,chartY:h.len+h.pos-o}:{chartX:o+h.pos,chartY:i+e.pos}}if(r&&r.x&&r.y)return{chartX:r.x,chartY:r.y}},M.prototype.getChartPosition=function(){if(this.chartPosition)return this.chartPosition;var f=this.chart.container,b=C(f);this.chartPosition={left:b.left,top:b.top,scaleX:1,scaleY:1};var l=f.offsetWidth,h=f.offsetHeight;return l>2&&h>2&&(this.chartPosition.scaleX=b.width/l,this.chartPosition.scaleY=b.height/h),this.chartPosition},M.prototype.getCoordinates=function(f){var b={xAxis:[],yAxis:[]};return this.chart.axes.forEach(function(l){b[l.isXAxis?"xAxis":"yAxis"].push({axis:l,value:l.toValue(f[l.horiz?"chartX":"chartY"])})}),b},M.prototype.getHoverData=function(f,b,l,h,e,r){var o,i=[],c=!(!h||!f),a=function(O){return O.visible&&!(!e&&O.directTouch)&&P(O.options.enableMouseTracking,!0)},s=b,m={chartX:r?r.chartX:void 0,chartY:r?r.chartY:void 0,shared:e};p(this,"beforeGetHoverData",m),o=s&&!s.stickyTracking?[s]:l.filter(function(O){return O.stickyTracking&&(m.filter||a)(O)});var A=c||!r?f:this.findNearestKDPoint(o,e,r);return s=A&&A.series,A&&(e&&!s.noSharedTooltip?(o=l.filter(function(O){return m.filter?m.filter(O):a(O)&&!O.noSharedTooltip})).forEach(function(O){var d=u(O.points,function(w){return w.x===A.x&&!w.isNull});v(d)&&(O.boosted&&O.boost&&(d=O.boost.getPoint(d)),i.push(d))}):i.push(A)),p(this,"afterGetHoverData",m={hoverPoint:A}),{hoverPoint:m.hoverPoint,hoverSeries:s,hoverPoints:i}},M.prototype.getPointFromEvent=function(f){for(var b,l=f.target;l&&!b;)b=l.point,l=l.parentNode;return b},M.prototype.onTrackerMouseOut=function(f){var b=this.chart,l=f.relatedTarget||f.toElement,h=b.hoverSeries;this.isDirectTouch=!1,!h||!l||h.stickyTracking||this.inClass(l,"highcharts-tooltip")||this.inClass(l,"highcharts-series-"+h.index)&&this.inClass(l,"highcharts-tracker")||h.onMouseOut()},M.prototype.inClass=function(f,b){for(var l,h=f;h;){if(l=D(h,"class")){if(l.indexOf(b)!==-1)return!0;if(l.indexOf("highcharts-container")!==-1)return!1}h=h.parentElement}},M.prototype.init=function(f,b){this.options=b,this.chart=f,this.runChartClick=!!(b.chart.events&&b.chart.events.click),this.pinchDown=[],this.lastValidTouch={},U&&(f.tooltip=new U(f,b.tooltip)),this.setDOMEvents()},M.prototype.normalize=function(f,b){var l=f.touches,h=l?l.length?l.item(0):P(l.changedTouches,f.changedTouches)[0]:f;b||(b=this.getChartPosition());var e=h.pageX-b.left,r=h.pageY-b.top;return e/=b.scaleX,r/=b.scaleY,T(f,{chartX:Math.round(e),chartY:Math.round(r)})},M.prototype.onContainerClick=function(f){var b=this.chart,l=b.hoverPoint,h=this.normalize(f),e=b.plotLeft,r=b.plotTop;b.cancelClick||(l&&this.inClass(h.target,"highcharts-tracker")?(p(l.series,"click",T(h,{point:l})),b.hoverPoint&&l.firePointEvent("click",h)):(T(h,this.getCoordinates(h)),b.isInsidePlot(h.chartX-e,h.chartY-r,{visiblePlotOnly:!0})&&p(b,"click",h)))},M.prototype.onContainerMouseDown=function(f){var b=(1&(f.buttons||f.button))==1;f=this.normalize(f),R.isFirefox&&f.button!==0&&this.onContainerMouseMove(f),(f.button===void 0||b)&&(this.zoomOption(f),b&&f.preventDefault&&f.preventDefault(),this.dragStart(f))},M.prototype.onContainerMouseLeave=function(f){var b=q[P(M.hoverChartIndex,-1)],l=this.chart.tooltip;f=this.normalize(f),b&&(f.relatedTarget||f.toElement)&&(b.pointer.reset(),b.pointer.chartPosition=void 0),l&&!l.isHidden&&this.reset()},M.prototype.onContainerMouseEnter=function(f){delete this.chartPosition},M.prototype.onContainerMouseMove=function(f){var b=this.chart,l=b.tooltip,h=this.normalize(f);this.setHoverChartIndex(),h.preventDefault||(h.returnValue=!1),(b.mouseIsDown==="mousedown"||this.touchSelect(h))&&this.drag(h),b.openMenu||!this.inClass(h.target,"highcharts-tracker")&&!b.isInsidePlot(h.chartX-b.plotLeft,h.chartY-b.plotTop,{visiblePlotOnly:!0})||l&&l.shouldStickOnContact(h)||(this.inClass(h.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(h))},M.prototype.onDocumentTouchEnd=function(f){var b=q[P(M.hoverChartIndex,-1)];b&&b.pointer.drop(f)},M.prototype.onContainerTouchMove=function(f){this.touchSelect(f)?this.onContainerMouseMove(f):this.touch(f)},M.prototype.onContainerTouchStart=function(f){this.touchSelect(f)?this.onContainerMouseDown(f):(this.zoomOption(f),this.touch(f,!0))},M.prototype.onDocumentMouseMove=function(f){var b=this.chart,l=b.tooltip,h=this.chartPosition,e=this.normalize(f,h);!h||b.isInsidePlot(e.chartX-b.plotLeft,e.chartY-b.plotTop,{visiblePlotOnly:!0})||l&&l.shouldStickOnContact(e)||this.inClass(e.target,"highcharts-tracker")||this.reset()},M.prototype.onDocumentMouseUp=function(f){var b=q[P(M.hoverChartIndex,-1)];b&&b.pointer.drop(f)},M.prototype.pinch=function(f){var b=this,l=b.chart,h=b.pinchDown,e=f.touches||[],r=e.length,o=b.lastValidTouch,i=b.hasZoom,c={},a=r===1&&(b.inClass(f.target,"highcharts-tracker")&&l.runTrackerClick||b.runChartClick),s={},m=b.chart.tooltip,A=r===1&&P(m&&m.options.followTouchMove,!0),O=b.selectionMarker;r>1?b.initiated=!0:A&&(b.initiated=!1),i&&b.initiated&&!a&&f.cancelable!==!1&&f.preventDefault(),[].map.call(e,function(d){return b.normalize(d)}),f.type==="touchstart"?([].forEach.call(e,function(d,w){h[w]={chartX:d.chartX,chartY:d.chartY}}),o.x=[h[0].chartX,h[1]&&h[1].chartX],o.y=[h[0].chartY,h[1]&&h[1].chartY],l.axes.forEach(function(d){if(d.zoomEnabled){var w=l.bounds[d.horiz?"h":"v"],k=d.minPixelPadding,z=d.toPixels(Math.min(P(d.options.min,d.dataMin),d.dataMin)),F=d.toPixels(Math.max(P(d.options.max,d.dataMax),d.dataMax)),j=Math.min(z,F),I=Math.max(z,F);w.min=Math.min(d.pos,j-k),w.max=Math.max(d.pos+d.len,I+k)}}),b.res=!0):A?this.runPointActions(b.normalize(f)):h.length&&(p(l,"touchpan",{originalEvent:f},function(){O||(b.selectionMarker=O=T({destroy:$,touch:!0},l.plotBox)),b.pinchTranslate(h,e,c,O,s,o),b.hasPinched=i,b.scaleGroups(c,s)}),b.res&&(b.res=!1,this.reset(!1,0)))},M.prototype.pinchTranslate=function(f,b,l,h,e,r){this.zoomHor&&this.pinchTranslateDirection(!0,f,b,l,h,e,r),this.zoomVert&&this.pinchTranslateDirection(!1,f,b,l,h,e,r)},M.prototype.pinchTranslateDirection=function(f,b,l,h,e,r,o,i){var c,a,s,m,A=this.chart,O=f?"x":"y",d=f?"X":"Y",w="chart"+d,k=f?"width":"height",z=A["plot"+(f?"Left":"Top")],F=A.inverted,j=A.bounds[f?"h":"v"],I=b.length===1,_=b[0][w],V=!I&&b[1][w],X=function(){typeof et=="number"&&Math.abs(_-V)>20&&(H=i||Math.abs(Q-et)/Math.abs(_-V)),s=(z-Q)/H+_,c=A["plot"+(f?"Width":"Height")]/H},H=i||1,Q=l[0][w],et=!I&&l[1][w];X(),(a=s)<j.min?(a=j.min,m=!0):a+c>j.max&&(a=j.max-c,m=!0),m?(Q-=.8*(Q-o[O][0]),typeof et=="number"&&(et-=.8*(et-o[O][1])),X()):o[O]=[Q,et],F||(r[O]=s-z,r[k]=c);var tt=F?f?"scaleY":"scaleX":"scale"+d,st=F?1/H:H;e[k]=c,e[O]=a,h[tt]=H,h["translate"+d]=st*z+(Q-st*_)},M.prototype.reset=function(f,b){var l=this,h=l.chart,e=h.hoverSeries,r=h.hoverPoint,o=h.hoverPoints,i=h.tooltip,c=i&&i.shared?o:r;f&&c&&L(c).forEach(function(a){a.series.isCartesian&&a.plotX===void 0&&(f=!1)}),f?i&&c&&L(c).length&&(i.refresh(c),i.shared&&o?o.forEach(function(a){a.setState(a.state,!0),a.series.isCartesian&&(a.series.xAxis.crosshair&&a.series.xAxis.drawCrosshair(null,a),a.series.yAxis.crosshair&&a.series.yAxis.drawCrosshair(null,a))}):r&&(r.setState(r.state,!0),h.axes.forEach(function(a){a.crosshair&&r.series[a.coll]===a&&a.drawCrosshair(null,r)}))):(r&&r.onMouseOut(),o&&o.forEach(function(a){a.setState()}),e&&e.onMouseOut(),i&&i.hide(b),l.unDocMouseMove&&(l.unDocMouseMove=l.unDocMouseMove()),h.axes.forEach(function(a){a.hideCrosshair()}),l.hoverX=h.hoverPoints=h.hoverPoint=null)},M.prototype.runPointActions=function(f,b,l){var h=this,e=h.chart,r=e.series,o=e.tooltip&&e.tooltip.options.enabled?e.tooltip:void 0,i=!!o&&o.shared,c=b||e.hoverPoint,a=c&&c.series||e.hoverSeries,s=(!f||f.type!=="touchmove")&&(!!b||a&&a.directTouch&&h.isDirectTouch),m=this.getHoverData(c,a,r,s,i,f);c=m.hoverPoint,a=m.hoverSeries;var A=m.hoverPoints,O=a&&a.tooltipOptions.followPointer&&!a.tooltipOptions.split,d=i&&a&&!a.noSharedTooltip;if(c&&(l||c!==e.hoverPoint||o&&o.isHidden)){if((e.hoverPoints||[]).forEach(function(k){A.indexOf(k)===-1&&k.setState()}),e.hoverSeries!==a&&a.onMouseOver(),h.applyInactiveState(A),(A||[]).forEach(function(k){k.setState("hover")}),e.hoverPoint&&e.hoverPoint.firePointEvent("mouseOut"),!c.series)return;e.hoverPoints=A,e.hoverPoint=c,c.firePointEvent("mouseOver",void 0,function(){o&&c&&o.refresh(d?A:c,f)})}else if(O&&o&&!o.isHidden){var w=o.getAnchor([{}],f);e.isInsidePlot(w[0],w[1],{visiblePlotOnly:!0})&&o.updatePosition({plotX:w[0],plotY:w[1]})}h.unDocMouseMove||(h.unDocMouseMove=G(e.container.ownerDocument,"mousemove",function(k){var z=q[M.hoverChartIndex];z&&z.pointer.onDocumentMouseMove(k)}),h.eventsToUnbind.push(h.unDocMouseMove)),e.axes.forEach(function(k){var z,F=P((k.crosshair||{}).snap,!0);F&&((z=e.hoverPoint)&&z.series[k.coll]===k||(z=u(A,function(j){return j.series&&j.series[k.coll]===k}))),z||!F?k.drawCrosshair(f,z):k.hideCrosshair()})},M.prototype.scaleGroups=function(f,b){var l=this.chart;l.series.forEach(function(h){var e=f||h.getPlotBox();h.group&&(h.xAxis&&h.xAxis.zoomEnabled||l.mapView)&&(h.group.attr(e),h.markerGroup&&(h.markerGroup.attr(e),h.markerGroup.clip(b?l.clipRect:null)),h.dataLabelsGroup&&h.dataLabelsGroup.attr(e))}),l.clipRect.attr(b||l.clipBox)},M.prototype.setDOMEvents=function(){var f=this,b=this.chart.container,l=b.ownerDocument;b.onmousedown=this.onContainerMouseDown.bind(this),b.onmousemove=this.onContainerMouseMove.bind(this),b.onclick=this.onContainerClick.bind(this),this.eventsToUnbind.push(G(b,"mouseenter",this.onContainerMouseEnter.bind(this))),this.eventsToUnbind.push(G(b,"mouseleave",this.onContainerMouseLeave.bind(this))),M.unbindDocumentMouseUp||(M.unbindDocumentMouseUp=G(l,"mouseup",this.onDocumentMouseUp.bind(this)));for(var h=this.chart.renderTo.parentElement;h&&h.tagName!=="BODY";)this.eventsToUnbind.push(G(h,"scroll",function(){delete f.chartPosition})),h=h.parentElement;R.hasTouch&&(this.eventsToUnbind.push(G(b,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1})),this.eventsToUnbind.push(G(b,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),M.unbindDocumentTouchEnd||(M.unbindDocumentTouchEnd=G(l,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})))},M.prototype.setHoverChartIndex=function(){var f=this.chart,b=R.charts[P(M.hoverChartIndex,-1)];b&&b!==f&&b.pointer.onContainerMouseLeave({relatedTarget:f.container}),b&&b.mouseIsDown||(M.hoverChartIndex=f.index)},M.prototype.touch=function(f,b){var l,h,e=this.chart;this.setHoverChartIndex(),f.touches.length===1?(f=this.normalize(f),e.isInsidePlot(f.chartX-e.plotLeft,f.chartY-e.plotTop,{visiblePlotOnly:!0})&&!e.openMenu?(b&&this.runPointActions(f),f.type==="touchmove"&&(l=!!(h=this.pinchDown)[0]&&Math.sqrt(Math.pow(h[0].chartX-f.chartX,2)+Math.pow(h[0].chartY-f.chartY,2))>=4),P(l,!0)&&this.pinch(f)):b&&this.reset()):f.touches.length===2&&this.pinch(f)},M.prototype.touchSelect=function(f){return!!(this.chart.options.chart.zooming.singleTouch&&f.touches&&f.touches.length===1)},M.prototype.zoomOption=function(f){var b,l,h=this.chart,e=h.options.chart,r=h.inverted,o=e.zooming.type||"";/touch/.test(f.type)&&(o=P(e.zooming.pinchType,o)),this.zoomX=b=/x/.test(o),this.zoomY=l=/y/.test(o),this.zoomHor=b&&!r||l&&r,this.zoomVert=l&&!r||b&&r,this.hasZoom=b||l},M}()}),rt(N,"Core/MSPointer.js",[N["Core/Globals.js"],N["Core/Pointer.js"],N["Core/Utilities.js"]],function(W,R,U){var Y,Z=this&&this.__extends||(Y=function(P,L){return Y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,f){M.__proto__=f}||function(M,f){for(var b in f)f.hasOwnProperty(b)&&(M[b]=f[b])},Y(P,L)},function(P,L){function M(){this.constructor=P}Y(P,L),P.prototype=L===null?Object.create(L):(M.prototype=L.prototype,new M)}),q=W.charts,$=W.doc,G=W.noop,D=W.win,E=U.addEvent,x=U.css,T=U.objectEach,u=U.pick,p=U.removeEvent,g={},v=!!D.PointerEvent;function y(P,L,M,f){var b,l=q[R.hoverChartIndex||NaN];if((P.pointerType==="touch"||P.pointerType===P.MSPOINTER_TYPE_TOUCH)&&l){var h=l.pointer;f(P),h[L]({type:M,target:P.currentTarget,preventDefault:G,touches:(b=[],b.item=function(e){return this[e]},T(g,function(e){b.push({pageX:e.pageX,pageY:e.pageY,target:e.target})}),b)})}}var C=function(P){function L(){return P!==null&&P.apply(this,arguments)||this}return Z(L,P),L.isRequired=function(){return!(W.hasTouch||!D.PointerEvent&&!D.MSPointerEvent)},L.prototype.batchMSEvents=function(M){M(this.chart.container,v?"pointerdown":"MSPointerDown",this.onContainerPointerDown),M(this.chart.container,v?"pointermove":"MSPointerMove",this.onContainerPointerMove),M($,v?"pointerup":"MSPointerUp",this.onDocumentPointerUp)},L.prototype.destroy=function(){this.batchMSEvents(p),P.prototype.destroy.call(this)},L.prototype.init=function(M,f){P.prototype.init.call(this,M,f),this.hasZoom&&x(M.container,{"-ms-touch-action":"none","touch-action":"none"})},L.prototype.onContainerPointerDown=function(M){y(M,"onContainerTouchStart","touchstart",function(f){g[f.pointerId]={pageX:f.pageX,pageY:f.pageY,target:f.currentTarget}})},L.prototype.onContainerPointerMove=function(M){y(M,"onContainerTouchMove","touchmove",function(f){g[f.pointerId]={pageX:f.pageX,pageY:f.pageY},g[f.pointerId].target||(g[f.pointerId].target=f.currentTarget)})},L.prototype.onDocumentPointerUp=function(M){y(M,"onDocumentTouchEnd","touchend",function(f){delete g[f.pointerId]})},L.prototype.setDOMEvents=function(){var M=this.chart.tooltip;P.prototype.setDOMEvents.call(this),(this.hasZoom||u(M&&M.options.followTouchMove,!0))&&this.batchMSEvents(E)},L}(R);return C}),rt(N,"Core/Legend/Legend.js",[N["Core/Animation/AnimationUtilities.js"],N["Core/FormatUtilities.js"],N["Core/Globals.js"],N["Core/Series/Point.js"],N["Core/Renderer/RendererUtilities.js"],N["Core/Utilities.js"]],function(W,R,U,Y,Z,q){var $=W.animObject,G=W.setAnimation,D=R.format,E=U.marginNames,x=Z.distribute,T=q.addEvent,u=q.createElement,p=q.css,g=q.defined,v=q.discardElement,y=q.find,C=q.fireEvent,P=q.isNumber,L=q.merge,M=q.pick,f=q.relativeLength,b=q.stableSort,l=q.syncTimeout;return function(){function h(e,r){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=e,this.init(e,r)}return h.prototype.init=function(e,r){this.chart=e,this.setOptions(r),r.enabled&&(this.render(),T(this.chart,"endResize",function(){this.legend.positionCheckboxes()}),this.proximate?this.unchartrender=T(this.chart,"render",function(){this.legend.proximatePositions(),this.legend.positionItems()}):this.unchartrender&&this.unchartrender())},h.prototype.setOptions=function(e){var r=M(e.padding,8);this.options=e,this.chart.styledMode||(this.itemStyle=e.itemStyle,this.itemHiddenStyle=L(this.itemStyle,e.itemHiddenStyle)),this.itemMarginTop=e.itemMarginTop||0,this.itemMarginBottom=e.itemMarginBottom||0,this.padding=r,this.initialItemY=r-5,this.symbolWidth=M(e.symbolWidth,16),this.pages=[],this.proximate=e.layout==="proximate"&&!this.chart.inverted,this.baseline=void 0},h.prototype.update=function(e,r){var o=this.chart;this.setOptions(L(!0,this.options,e)),this.destroy(),o.isDirtyLegend=o.isDirtyBox=!0,M(r,!0)&&o.redraw(),C(this,"afterUpdate")},h.prototype.colorizeItem=function(e,r){var o=e.legendItem||{},i=o.group,c=o.label,a=o.line,s=o.symbol;if(i&&i[r?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){var m=this.options,A=this.itemHiddenStyle.color,O=r?m.itemStyle.color:A,d=r&&e.color||A,w=e.options&&e.options.marker,k={fill:d};c&&c.css({fill:O,color:O}),a&&a.attr({stroke:d}),s&&(w&&s.isMarker&&(k=e.pointAttribs(),r||(k.stroke=k.fill=A)),s.attr(k))}C(this,"afterColorizeItem",{item:e,visible:r})},h.prototype.positionItems=function(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()},h.prototype.positionItem=function(e){var r=this,o=e.legendItem||{},i=o.group,c=o.x,a=c===void 0?0:c,s=o.y,m=s===void 0?0:s,A=this.options,O=A.symbolPadding,d=!A.rtl,w=e.checkbox;if(i&&i.element){var k={translateX:d?a:this.legendWidth-a-2*O-4,translateY:m};i[g(i.translateY)?"animate":"attr"](k,void 0,function(){C(r,"afterPositionItem",{item:e})})}w&&(w.x=a,w.y=m)},h.prototype.destroyItem=function(e){for(var r=e.checkbox,o=e.legendItem||{},i=0,c=["group","label","line","symbol"];i<c.length;i++){var a=c[i];o[a]&&(o[a]=o[a].destroy())}r&&v(r),e.legendItem=void 0},h.prototype.destroy=function(){for(var e=this,r=0,o=this.getAllItems();r<o.length;r++){var i=o[r];this.destroyItem(i)}for(var c=0,a=["clipRect","up","down","pager","nav","box","title","group"];c<a.length;c++){var s=a[c];e[s]&&(e[s]=e[s].destroy())}this.display=null},h.prototype.positionCheckboxes=function(){var e,r=this.group&&this.group.alignAttr,o=this.clipHeight||this.legendHeight,i=this.titleHeight;r&&(e=r.translateY,this.allItems.forEach(function(c){var a,s=c.checkbox;s&&(a=e+i+s.y+(this.scrollOffset||0)+3,p(s,{left:r.translateX+c.checkboxOffset+s.x-20+"px",top:a+"px",display:this.proximate||a>e-6&&a<e+o-6?"":"none"}))},this))},h.prototype.renderTitle=function(){var e,r=this.options,o=this.padding,i=r.title,c=0;i.text&&(this.title||(this.title=this.chart.renderer.label(i.text,o-3,o-4,void 0,void 0,void 0,r.useHTML,void 0,"legend-title").attr({zIndex:1}),this.chart.styledMode||this.title.css(i.style),this.title.add(this.group)),i.width||this.title.css({width:this.maxLegendWidth+"px"}),c=(e=this.title.getBBox()).height,this.offsetWidth=e.width,this.contentGroup.attr({translateY:c})),this.titleHeight=c},h.prototype.setText=function(e){var r=this.options;e.legendItem.label.attr({text:r.labelFormat?D(r.labelFormat,e,this.chart):r.labelFormatter.call(e)})},h.prototype.renderItem=function(e){var r=this,o=e.legendItem=e.legendItem||{},i=r.chart,c=i.renderer,a=r.options,s=a.layout==="horizontal",m=r.symbolWidth,A=a.symbolPadding||0,O=r.itemStyle,d=r.itemHiddenStyle,w=s?M(a.itemDistance,20):0,k=!a.rtl,z=!e.series,F=!z&&e.series.drawLegendSymbol?e.series:e,j=F.options,I=r.createCheckboxForItem&&j&&j.showCheckbox,_=a.useHTML,V=e.options.className,X=o.label,H=m+A+w+(I?20:0);X||(o.group=c.g("legend-item").addClass("highcharts-"+F.type+"-series highcharts-color-"+e.colorIndex+(V?" "+V:"")+(z?" highcharts-series-"+e.index:"")).attr({zIndex:1}).add(r.scrollGroup),o.label=X=c.text("",k?m+A:-A,r.baseline||0,_),i.styledMode||X.css(L(e.visible?O:d)),X.attr({align:k?"left":"right",zIndex:2}).add(o.group),r.baseline||(r.fontMetrics=c.fontMetrics(i.styledMode?12:O.fontSize,X),r.baseline=r.fontMetrics.f+3+r.itemMarginTop,X.attr("y",r.baseline),r.symbolHeight=a.symbolHeight||r.fontMetrics.f,a.squareSymbol&&(r.symbolWidth=M(a.symbolWidth,Math.max(r.symbolHeight,16)),H=r.symbolWidth+A+w+(I?20:0),k&&X.attr("x",r.symbolWidth+A))),F.drawLegendSymbol(r,e),r.setItemEvents&&r.setItemEvents(e,X,_)),I&&!e.checkbox&&r.createCheckboxForItem&&r.createCheckboxForItem(e),r.colorizeItem(e,e.visible),!i.styledMode&&O.width||X.css({width:(a.itemWidth||r.widthOption||i.spacingBox.width)-H+"px"}),r.setText(e);var Q=X.getBBox(),et=r.fontMetrics&&r.fontMetrics.h||0;e.itemWidth=e.checkboxOffset=a.itemWidth||o.labelWidth||Q.width+H,r.maxItemWidth=Math.max(r.maxItemWidth,e.itemWidth),r.totalItemWidth+=e.itemWidth,r.itemHeight=e.itemHeight=Math.round(o.labelHeight||(Q.height>1.5*et?Q.height:et))},h.prototype.layoutItem=function(e){var r=this.options,o=this.padding,i=r.layout==="horizontal",c=e.itemHeight,a=this.itemMarginBottom,s=this.itemMarginTop,m=i?M(r.itemDistance,20):0,A=this.maxLegendWidth,O=r.alignColumns&&this.totalItemWidth>A?this.maxItemWidth:e.itemWidth,d=e.legendItem||{};i&&this.itemX-o+O>A&&(this.itemX=o,this.lastLineHeight&&(this.itemY+=s+this.lastLineHeight+a),this.lastLineHeight=0),this.lastItemY=s+this.itemY+a,this.lastLineHeight=Math.max(c,this.lastLineHeight),d.x=this.itemX,d.y=this.itemY,i?this.itemX+=O:(this.itemY+=s+c+a,this.lastLineHeight=c),this.offsetWidth=this.widthOption||Math.max((i?this.itemX-o-(e.checkbox?0:m):O)+o,this.offsetWidth)},h.prototype.getAllItems=function(){var e=[];return this.chart.series.forEach(function(r){var o=r&&r.options;r&&M(o.showInLegend,!g(o.linkedTo)&&void 0,!0)&&(e=e.concat((r.legendItem||{}).labels||(o.legendType==="point"?r.data:r)))}),C(this,"afterGetAllItems",{allItems:e}),e},h.prototype.getAlignment=function(){var e=this.options;return this.proximate?e.align.charAt(0)+"tv":e.floating?"":e.align.charAt(0)+e.verticalAlign.charAt(0)+e.layout.charAt(0)},h.prototype.adjustMargins=function(e,r){var o=this.chart,i=this.options,c=this.getAlignment();c&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(a,s){a.test(c)&&!g(e[s])&&(o[E[s]]=Math.max(o[E[s]],o.legend[(s+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][s]*i[s%2?"x":"y"]+M(i.margin,12)+r[s]+(o.titleOffset[s]||0)))})},h.prototype.proximatePositions=function(){var e,r=this.chart,o=[],i=this.options.align==="left";this.allItems.forEach(function(m){var A,O,d,w,k=i;m.yAxis&&(m.xAxis.options.reversed&&(k=!k),m.points&&(A=y(k?m.points:m.points.slice(0).reverse(),function(z){return P(z.plotY)})),O=this.itemMarginTop+m.legendItem.label.getBBox().height+this.itemMarginBottom,w=m.yAxis.top-r.plotTop,m.visible?(d=A?A.plotY:m.yAxis.height,d+=w-.3*O):d=w+m.yAxis.height,o.push({target:d,size:O,item:m}))},this);for(var c=0,a=x(o,r.plotHeight);c<a.length;c++){var s=a[c];e=s.item.legendItem||{},P(s.pos)&&(e.y=r.plotTop-r.spacing[0]+s.pos)}},h.prototype.render=function(){var e,r,o,i,c=this,a=c.chart,s=a.renderer,m=c.options,A=c.padding,O=c.getAllItems(),d=c.group,w=c.box;c.itemX=A,c.itemY=c.initialItemY,c.offsetWidth=0,c.lastItemY=0,c.widthOption=f(m.width,a.spacingBox.width-A),i=a.spacingBox.width-2*A-m.x,["rm","lm"].indexOf(c.getAlignment().substring(0,2))>-1&&(i/=2),c.maxLegendWidth=c.widthOption||i,d||(c.group=d=s.g("legend").addClass(m.className||"").attr({zIndex:7}).add(),c.contentGroup=s.g().attr({zIndex:1}).add(d),c.scrollGroup=s.g().add(c.contentGroup)),c.renderTitle(),b(O,function(k,z){return(k.options&&k.options.legendIndex||0)-(z.options&&z.options.legendIndex||0)}),m.reversed&&O.reverse(),c.allItems=O,c.display=e=!!O.length,c.lastLineHeight=0,c.maxItemWidth=0,c.totalItemWidth=0,c.itemHeight=0,O.forEach(c.renderItem,c),O.forEach(c.layoutItem,c),r=(c.widthOption||c.offsetWidth)+A,o=c.lastItemY+c.lastLineHeight+c.titleHeight,o=c.handleOverflow(o),o+=A,w||(c.box=w=s.rect().addClass("highcharts-legend-box").attr({r:m.borderRadius}).add(d)),a.styledMode||w.attr({stroke:m.borderColor,"stroke-width":m.borderWidth||0,fill:m.backgroundColor||"none"}).shadow(m.shadow),r>0&&o>0&&w[w.placed?"animate":"attr"](w.crisp.call({},{x:0,y:0,width:r,height:o},w.strokeWidth())),d[e?"show":"hide"](),a.styledMode&&d.getStyle("display")==="none"&&(r=o=0),c.legendWidth=r,c.legendHeight=o,e&&c.align(),this.proximate||this.positionItems(),C(this,"afterRender")},h.prototype.align=function(e){e===void 0&&(e=this.chart.spacingBox);var r=this.chart,o=this.options,i=e.y;/(lth|ct|rth)/.test(this.getAlignment())&&r.titleOffset[0]>0?i+=r.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&r.titleOffset[2]>0&&(i-=r.titleOffset[2]),i!==e.y&&(e=L(e,{y:i})),r.hasRendered||(this.group.placed=!1),this.group.align(L(o,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":o.verticalAlign}),!0,e)},h.prototype.handleOverflow=function(e){var r,o,i,c=this,a=this.chart,s=a.renderer,m=this.options,A=m.y,O=m.verticalAlign==="top",d=this.padding,w=m.maxHeight,k=m.navigation,z=M(k.animation,!0),F=k.arrowSize||12,j=this.pages,I=this.allItems,_=function(et){typeof et=="number"?Q.attr({height:et}):Q&&(c.clipRect=Q.destroy(),c.contentGroup.clip()),c.contentGroup.div&&(c.contentGroup.div.style.clip=et?"rect("+d+"px,9999px,"+(d+et)+"px,0)":"auto")},V=function(et){return c[et]=s.circle(0,0,1.3*F).translate(F/2,F/2).add(H),a.styledMode||c[et].attr("fill","rgba(0,0,0,0.0001)"),c[et]},X=a.spacingBox.height+(O?-A:A)-d,H=this.nav,Q=this.clipRect;return m.layout!=="horizontal"||m.verticalAlign==="middle"||m.floating||(X/=2),w&&(X=Math.min(X,w)),j.length=0,e&&X>0&&e>X&&k.enabled!==!1?(this.clipHeight=r=Math.max(X-20-this.titleHeight-d,0),this.currentPage=M(this.currentPage,1),this.fullHeight=e,I.forEach(function(et,tt){var st=(i=et.legendItem||{}).y||0,ct=Math.round(i.label.getBBox().height),gt=j.length;(!gt||st-j[gt-1]>r&&(o||st)!==j[gt-1])&&(j.push(o||st),gt++),i.pageIx=gt-1,o&&((I[tt-1].legendItem||{}).pageIx=gt-1),tt===I.length-1&&st+ct-j[gt-1]>r&&ct<=r&&(j.push(st),i.pageIx=gt),st!==o&&(o=st)}),Q||(Q=c.clipRect=s.clipRect(0,d,9999,0),c.contentGroup.clip(Q)),_(r),H||(this.nav=H=s.g().attr({zIndex:1}).add(this.group),this.up=s.symbol("triangle",0,0,F,F).add(H),V("upTracker").on("click",function(){c.scroll(-1,z)}),this.pager=s.text("",15,10).addClass("highcharts-legend-navigation"),!a.styledMode&&k.style&&this.pager.css(k.style),this.pager.add(H),this.down=s.symbol("triangle-down",0,0,F,F).add(H),V("downTracker").on("click",function(){c.scroll(1,z)})),c.scroll(0),e=X):H&&(_(),this.nav=H.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),e},h.prototype.scroll=function(e,r){var o=this,i=this.chart,c=this.pages,a=c.length,s=this.clipHeight,m=this.options.navigation,A=this.pager,O=this.padding,d=this.currentPage+e;if(d>a&&(d=a),d>0){r!==void 0&&G(r,i),this.nav.attr({translateX:O,translateY:s+this.padding+7+this.titleHeight,visibility:"inherit"}),[this.up,this.upTracker].forEach(function(k){k.attr({class:d===1?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),A.attr({text:d+"/"+a}),[this.down,this.downTracker].forEach(function(k){k.attr({x:18+this.pager.getBBox().width,class:d===a?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},this),i.styledMode||(this.up.attr({fill:d===1?m.inactiveColor:m.activeColor}),this.upTracker.css({cursor:d===1?"default":"pointer"}),this.down.attr({fill:d===a?m.inactiveColor:m.activeColor}),this.downTracker.css({cursor:d===a?"default":"pointer"})),this.scrollOffset=-c[d-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=d,this.positionCheckboxes();var w=$(M(r,i.renderer.globalAnimation,!0));l(function(){C(o,"afterScroll",{currentPage:d})},w.duration)}},h.prototype.setItemEvents=function(e,r,o){for(var i=this,c=e.legendItem||{},a=i.chart.renderer.boxWrapper,s=e instanceof Y,m="highcharts-legend-"+(s?"point":"series")+"-active",A=i.chart.styledMode,O=o?[r,c.symbol]:[c.group],d=function(F){i.allItems.forEach(function(j){e!==j&&[j].concat(j.linkedSeries||[]).forEach(function(I){I.setState(F,!s)})})},w=0,k=O;w<k.length;w++){var z=k[w];z&&z.on("mouseover",function(){e.visible&&d("inactive"),e.setState("hover"),e.visible&&a.addClass(m),A||r.css(i.options.itemHoverStyle)}).on("mouseout",function(){i.chart.styledMode||r.css(L(e.visible?i.itemStyle:i.itemHiddenStyle)),d(""),a.removeClass(m),e.setState()}).on("click",function(F){var j="legendItemClick",I=function(){e.setVisible&&e.setVisible(),d(e.visible?"inactive":"")};a.removeClass(m),F={browserEvent:F},e.firePointEvent?e.firePointEvent(j,F,I):C(e,j,F,I)})}},h.prototype.createCheckboxForItem=function(e){e.checkbox=u("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:e.selected,defaultChecked:e.selected},this.options.itemCheckboxStyle,this.chart.container),T(e.checkbox,"click",function(r){var o=r.target;C(e.series||e,"checkboxClick",{checked:o.checked,item:e},function(){e.select()})})},h}()}),rt(N,"Core/Series/SeriesRegistry.js",[N["Core/Globals.js"],N["Core/Defaults.js"],N["Core/Series/Point.js"],N["Core/Utilities.js"]],function(W,R,U,Y){var Z,q=R.defaultOptions,$=Y.extendClass,G=Y.merge;return function(D){function E(x,T){var u=q.plotOptions||{},p=T.defaultOptions,g=T.prototype;g.type=x,g.pointClass||(g.pointClass=U),p&&(u[x]=p),D.seriesTypes[x]=T}D.seriesTypes=W.seriesTypes,D.registerSeriesType=E,D.seriesType=function(x,T,u,p,g){var v=q.plotOptions||{};return T=T||"",v[x]=G(v[T],u),E(x,$(D.seriesTypes[T]||function(){},p)),D.seriesTypes[x].prototype.type=x,g&&(D.seriesTypes[x].prototype.pointClass=$(U,g)),D.seriesTypes[x]}}(Z||(Z={})),Z}),rt(N,"Core/Chart/Chart.js",[N["Core/Animation/AnimationUtilities.js"],N["Core/Axis/Axis.js"],N["Core/Defaults.js"],N["Core/FormatUtilities.js"],N["Core/Foundation.js"],N["Core/Globals.js"],N["Core/Legend/Legend.js"],N["Core/MSPointer.js"],N["Core/Pointer.js"],N["Core/Renderer/RendererRegistry.js"],N["Core/Series/SeriesRegistry.js"],N["Core/Renderer/SVG/SVGRenderer.js"],N["Core/Time.js"],N["Core/Utilities.js"],N["Core/Renderer/HTML/AST.js"]],function(W,R,U,Y,Z,q,$,G,D,E,x,T,u,p,g){var v=W.animate,y=W.animObject,C=W.setAnimation,P=U.defaultOptions,L=U.defaultTime,M=Y.numberFormat,f=Z.registerEventOptions,b=q.charts,l=q.doc,h=q.marginNames,e=q.svg,r=q.win,o=x.seriesTypes,i=p.addEvent,c=p.attr,a=p.cleanRecursively,s=p.createElement,m=p.css,A=p.defined,O=p.discardElement,d=p.erase,w=p.error,k=p.extend,z=p.find,F=p.fireEvent,j=p.getStyle,I=p.isArray,_=p.isNumber,V=p.isObject,X=p.isString,H=p.merge,Q=p.objectEach,et=p.pick,tt=p.pInt,st=p.relativeLength,ct=p.removeEvent,gt=p.splat,mt=p.syncTimeout,bt=p.uniqueKey,yt=function(){function dt(ot,ht,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,ht,ut)}return dt.chart=function(ot,ht,ut){return new dt(ot,ht,ut)},dt.prototype.getArgs=function(ot,ht,ut){X(ot)||ot.nodeName?(this.renderTo=ot,this.init(ht,ut)):this.init(ot,ht)},dt.prototype.init=function(ot,ht){var ut=ot.plotOptions||{};F(this,"init",{args:arguments},function(){var vt=H(P,ot),wt=vt.chart;Q(vt.plotOptions,function(St,Mt){V(St)&&(St.tooltip=ut[Mt]&&H(ut[Mt].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=ht,this.isResizing=0;var xt=wt.zooming=wt.zooming||{};ot.chart&&!ot.chart.zooming&&(xt.resetButton=wt.resetZoomButton),xt.key=et(xt.key,wt.zoomKey),xt.pinchType=et(xt.pinchType,wt.pinchType),xt.singleTouch=et(xt.singleTouch,wt.zoomBySingleTouch),xt.type=et(xt.type,wt.zoomType),this.options=vt,this.axes=[],this.series=[],this.time=ot.time&&Object.keys(ot.time).length?new u(ot.time):q.time,this.numberFormatter=wt.numberFormatter||M,this.styledMode=wt.styledMode,this.hasCartesianSeries=wt.showAxes;var Ct=this;Ct.index=b.length,b.push(Ct),q.chartCount++,f(this,wt),Ct.xAxis=[],Ct.yAxis=[],Ct.pointCount=Ct.colorCounter=Ct.symbolCounter=0,F(Ct,"afterInit"),Ct.firstRender()})},dt.prototype.initSeries=function(ot){var ht=this,ut=ht.options.chart,vt=ot.type||ut.type||ut.defaultSeriesType,wt=o[vt];wt||w(17,!0,ht,{missingModuleFor:vt});var xt=new wt;return typeof xt.init=="function"&&xt.init(ht,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,ht){return ot.linkedSeries.length||ht.linkedSeries.length?ht.linkedSeries.length-ot.linkedSeries.length:0})},dt.prototype.orderSeries=function(ot){for(var ht=this.series,ut=ot||0,vt=ht.length;ut<vt;++ut)ht[ut]&&(ht[ut].index=ut,ht[ut].name=ht[ut].getName())},dt.prototype.isInsidePlot=function(ot,ht,ut){var vt;ut===void 0&&(ut={});var wt=this,xt=wt.inverted,Ct=wt.plotBox,St=wt.plotLeft,Mt=wt.plotTop,Tt=wt.scrollablePlotBox,Pt=0,kt=0;ut.visiblePlotOnly&&this.scrollingContainer&&(Pt=(vt=this.scrollingContainer).scrollLeft,kt=vt.scrollTop);var Ot=ut.series,Dt=ut.visiblePlotOnly&&Tt||Ct,Et=ut.inverted?ht:ot,It=ut.inverted?ot:ht,_t={x:Et,y:It,isInsidePlot:!0,options:ut};if(!ut.ignoreX){var Yt=Ot&&(xt&&!this.polar?Ot.yAxis:Ot.xAxis)||{pos:St,len:1/0},Bt=ut.paneCoordinates?Yt.pos+Et:St+Et;Bt>=Math.max(Pt+St,Yt.pos)&&Bt<=Math.min(Pt+St+Dt.width,Yt.pos+Yt.len)||(_t.isInsidePlot=!1)}if(!ut.ignoreY&&_t.isInsidePlot){var Ft=ut.axis&&!ut.axis.isXAxis&&ut.axis||Ot&&(xt?Ot.xAxis:Ot.yAxis)||{pos:Mt,len:1/0},Vt=ut.paneCoordinates?Ft.pos+It:Mt+It;Vt>=Math.max(kt+Mt,Ft.pos)&&Vt<=Math.min(kt+Mt+Dt.height,Ft.pos+Ft.len)||(_t.isInsidePlot=!1)}return F(this,"afterIsInsidePlot",_t),_t.isInsidePlot},dt.prototype.redraw=function(ot){F(this,"beforeRedraw");var ht,ut,vt,wt,xt=this,Ct=xt.hasCartesianSeries?xt.axes:xt.colorAxis||[],St=xt.series,Mt=xt.pointer,Tt=xt.legend,Pt=xt.userOptions.legend,kt=xt.renderer,Ot=kt.isHidden(),Dt=[],Et=xt.isDirtyBox,It=xt.isDirtyLegend;for(xt.setResponsive&&xt.setResponsive(!1),C(!!xt.hasRendered&&ot,xt),Ot&&xt.temporaryDisplay(),xt.layOutTitles(),vt=St.length;vt--;)if(((wt=St[vt]).options.stacking||wt.options.centerInCategory)&&(ut=!0,wt.isDirty)){ht=!0;break}if(ht)for(vt=St.length;vt--;)(wt=St[vt]).options.stacking&&(wt.isDirty=!0);St.forEach(function(_t){_t.isDirty&&(_t.options.legendType==="point"?(typeof _t.updateTotals=="function"&&_t.updateTotals(),It=!0):Pt&&(Pt.labelFormatter||Pt.labelFormat)&&(It=!0)),_t.isDirtyData&&F(_t,"updatedData")}),It&&Tt&&Tt.options.enabled&&(Tt.render(),xt.isDirtyLegend=!1),ut&&xt.getStacks(),Ct.forEach(function(_t){_t.updateNames(),_t.setScale()}),xt.getMargins(),Ct.forEach(function(_t){_t.isDirty&&(Et=!0)}),Ct.forEach(function(_t){var Yt=_t.min+","+_t.max;_t.extKey!==Yt&&(_t.extKey=Yt,Dt.push(function(){F(_t,"afterSetExtremes",k(_t.eventArgs,_t.getExtremes())),delete _t.eventArgs})),(Et||ut)&&_t.redraw()}),Et&&xt.drawChartBox(),F(xt,"predraw"),St.forEach(function(_t){(Et||_t.isDirty)&&_t.visible&&_t.redraw(),_t.isDirtyData=!1}),Mt&&Mt.reset(!0),kt.draw(),F(xt,"redraw"),F(xt,"render"),Ot&&xt.temporaryDisplay(!0),Dt.forEach(function(_t){_t.call()})},dt.prototype.get=function(ot){var ht=this.series;function ut(xt){return xt.id===ot||xt.options&&xt.options.id===ot}for(var vt=z(this.axes,ut)||z(this.series,ut),wt=0;!vt&&wt<ht.length;wt++)vt=z(ht[wt].points||[],ut);return vt},dt.prototype.getAxes=function(){var ot=this,ht=this.options,ut=ht.xAxis=gt(ht.xAxis||{}),vt=ht.yAxis=gt(ht.yAxis||{});F(this,"getAxes"),ut.forEach(function(wt,xt){wt.index=xt,wt.isX=!0}),vt.forEach(function(wt,xt){wt.index=xt}),ut.concat(vt).forEach(function(wt){new R(ot,wt)}),F(this,"afterGetAxes")},dt.prototype.getSelectedPoints=function(){return this.series.reduce(function(ot,ht){return ht.getPointsCollection().forEach(function(ut){et(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,ht,ut){this.applyDescription("title",ot),this.applyDescription("subtitle",ht),this.applyDescription("caption",void 0),this.layOutTitles(ut)},dt.prototype.applyDescription=function(ot,ht){var ut=this,vt=ot==="title"?{color:"#333333",fontSize:this.options.isStock?"16px":"18px"}:{color:"#666666"},wt=this.options[ot]=H(!this.styledMode&&{style:vt},this.options[ot],ht),xt=this[ot];xt&&ht&&(this[ot]=xt=xt.destroy()),wt&&!xt&&((xt=this.renderer.text(wt.text,0,0,wt.useHTML).attr({align:wt.align,class:"highcharts-"+ot,zIndex:wt.zIndex||4}).add()).update=function(Ct){ut[{title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"}[ot]](Ct)},this.styledMode||xt.css(wt.style),this[ot]=xt)},dt.prototype.layOutTitles=function(ot){var ht=[0,0,0],ut=this.renderer,vt=this.spacingBox;["title","subtitle","caption"].forEach(function(xt){var Ct,St,Mt=this[xt],Tt=this.options[xt],Pt=Tt.verticalAlign||"top",kt=xt==="title"?Pt==="top"?-3:0:Pt==="top"?ht[0]+2:0;Mt&&(this.styledMode||(Ct=Tt.style&&Tt.style.fontSize),Ct=ut.fontMetrics(Ct,Mt).b,Mt.css({width:(Tt.width||vt.width+(Tt.widthAdjust||0))+"px"}),St=Math.round(Mt.getBBox(Tt.useHTML).height),Mt.align(k({y:Pt==="bottom"?Ct:kt+Ct,height:St},Tt),!1,"spacingBox"),Tt.floating||(Pt==="top"?ht[0]=Math.ceil(ht[0]+St):Pt==="bottom"&&(ht[2]=Math.ceil(ht[2]+St))))},this),ht[0]&&(this.options.title.verticalAlign||"top")==="top"&&(ht[0]+=this.options.title.margin),ht[2]&&this.options.caption.verticalAlign==="bottom"&&(ht[2]+=this.options.caption.margin);var wt=!this.titleOffset||this.titleOffset.join(",")!==ht.join(",");this.titleOffset=ht,F(this,"afterLayOutTitles"),!this.isDirtyBox&&wt&&(this.isDirtyBox=this.isDirtyLegend=wt,this.hasRendered&&et(ot,!0)&&this.isDirtyBox&&this.redraw())},dt.prototype.getChartSize=function(){var ot=this,ht=ot.options.chart,ut=ht.width,vt=ht.height,wt=ot.renderTo;A(ut)||(ot.containerWidth=j(wt,"width")),A(vt)||(ot.containerHeight=j(wt,"height")),ot.chartWidth=Math.max(0,ut||ot.containerWidth||600),ot.chartHeight=Math.max(0,st(vt,ot.chartWidth)||(ot.containerHeight>1?ot.containerHeight:400))},dt.prototype.temporaryDisplay=function(ot){var ht,ut=this.renderTo;if(ot)for(;ut&&ut.style;)ut.hcOrigStyle&&(m(ut,ut.hcOrigStyle),delete ut.hcOrigStyle),ut.hcOrigDetached&&(l.body.removeChild(ut),ut.hcOrigDetached=!1),ut=ut.parentNode;else for(;ut&&ut.style&&(l.body.contains(ut)||ut.parentNode||(ut.hcOrigDetached=!0,l.body.appendChild(ut)),(j(ut,"display",!1)==="none"||ut.hcOricDetached)&&(ut.hcOrigStyle={display:ut.style.display,height:ut.style.height,overflow:ut.style.overflow},ht={display:"block",overflow:"hidden"},ut!==this.renderTo&&(ht.height=0),m(ut,ht),ut.offsetWidth||ut.style.setProperty("display","block","important")),(ut=ut.parentNode)!==l.body););},dt.prototype.setClassName=function(ot){this.container.className="highcharts-container "+(ot||"")},dt.prototype.getContainer=function(){var ot,ht=this,ut=ht.options,vt=ut.chart,wt="data-highcharts-chart",xt=bt(),Ct=ht.renderTo;Ct||(ht.renderTo=Ct=vt.renderTo),X(Ct)&&(ht.renderTo=Ct=l.getElementById(Ct)),Ct||w(13,!0,ht);var St=tt(c(Ct,wt));_(St)&&b[St]&&b[St].hasRendered&&b[St].destroy(),c(Ct,wt,ht.index),Ct.innerHTML=g.emptyHTML,vt.skipClone||Ct.offsetWidth||ht.temporaryDisplay(),ht.getChartSize();var Mt=ht.chartWidth,Tt=ht.chartHeight;m(Ct,{overflow:"hidden"}),ht.styledMode||(ot=k({position:"relative",overflow:"hidden",width:Mt+"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 Pt=s("div",{id:xt},ot,Ct);ht.container=Pt,ht._cursor=Pt.style.cursor;var kt=vt.renderer||!e?E.getRendererType(vt.renderer):T;if(ht.renderer=new kt(Pt,Mt,Tt,void 0,vt.forExport,ut.exporting&&ut.exporting.allowHTML,ht.styledMode),C(void 0,ht),ht.setClassName(vt.className),ht.styledMode)for(var Ot in ut.defs)this.renderer.definition(ut.defs[Ot]);else ht.renderer.setStyle(vt.style);ht.renderer.chartIndex=ht.index,F(this,"afterGetContainer")},dt.prototype.getMargins=function(ot){var ht=this,ut=ht.spacing,vt=ht.margin,wt=ht.titleOffset;this.resetMargins(),wt[0]&&!A(vt[0])&&(this.plotTop=Math.max(this.plotTop,wt[0]+ut[0])),wt[2]&&!A(vt[2])&&(this.marginBottom=Math.max(this.marginBottom,wt[2]+ut[2])),this.legend&&this.legend.display&&this.legend.adjustMargins(vt,ut),F(this,"getMargins"),ot||this.getAxisMargins()},dt.prototype.getAxisMargins=function(){var ot=this,ht=ot.axisOffset=[0,0,0,0],ut=ot.colorAxis,vt=ot.margin,wt=function(xt){xt.forEach(function(Ct){Ct.visible&&Ct.getOffset()})};ot.hasCartesianSeries?wt(ot.axes):ut&&ut.length&&wt(ut),h.forEach(function(xt,Ct){A(vt[Ct])||(ot[xt]+=ht[Ct])}),ot.setChartSize()},dt.prototype.reflow=function(ot){var ht=this,ut=ht.options.chart,vt=ht.renderTo,wt=A(ut.width)&&A(ut.height),xt=ut.width||j(vt,"width"),Ct=ut.height||j(vt,"height"),St=ot?ot.target:r;delete ht.pointer.chartPosition,wt||ht.isPrinting||!xt||!Ct||St!==r&&St!==l||(xt===ht.containerWidth&&Ct===ht.containerHeight||(p.clearTimeout(ht.reflowTimeout),ht.reflowTimeout=mt(function(){ht.container&&ht.setSize(void 0,void 0,!1)},ot?100:0)),ht.containerWidth=xt,ht.containerHeight=Ct)},dt.prototype.setReflow=function(ot){var ht=this;ot===!1||this.unbindReflow?ot===!1&&this.unbindReflow&&(this.unbindReflow=this.unbindReflow()):(this.unbindReflow=i(r,"resize",function(ut){ht.options&&ht.reflow(ut)}),i(this,"destroy",this.unbindReflow))},dt.prototype.setSize=function(ot,ht,ut){var vt=this,wt=vt.renderer;vt.isResizing+=1,C(ut,vt);var xt=wt.globalAnimation;vt.oldChartHeight=vt.chartHeight,vt.oldChartWidth=vt.chartWidth,ot!==void 0&&(vt.options.chart.width=ot),ht!==void 0&&(vt.options.chart.height=ht),vt.getChartSize(),vt.styledMode||(xt?v:m)(vt.container,{width:vt.chartWidth+"px",height:vt.chartHeight+"px"},xt),vt.setChartSize(!0),wt.setSize(vt.chartWidth,vt.chartHeight,xt),vt.axes.forEach(function(Ct){Ct.isDirty=!0,Ct.setScale()}),vt.isDirtyLegend=!0,vt.isDirtyBox=!0,vt.layOutTitles(),vt.getMargins(),vt.redraw(xt),vt.oldChartHeight=null,F(vt,"resize"),mt(function(){vt&&F(vt,"endResize",null,function(){vt.isResizing-=1})},y(xt).duration)},dt.prototype.setChartSize=function(ot){var ht,ut,vt,wt,xt=this,Ct=xt.inverted,St=xt.renderer,Mt=xt.chartWidth,Tt=xt.chartHeight,Pt=xt.options.chart,kt=xt.spacing,Ot=xt.clipOffset;xt.plotLeft=ht=Math.round(xt.plotLeft),xt.plotTop=ut=Math.round(xt.plotTop),xt.plotWidth=vt=Math.max(0,Math.round(Mt-ht-xt.marginRight)),xt.plotHeight=wt=Math.max(0,Math.round(Tt-ut-xt.marginBottom)),xt.plotSizeX=Ct?wt:vt,xt.plotSizeY=Ct?vt:wt,xt.plotBorderWidth=Pt.plotBorderWidth||0,xt.spacingBox=St.spacingBox={x:kt[3],y:kt[0],width:Mt-kt[3]-kt[1],height:Tt-kt[0]-kt[2]},xt.plotBox=St.plotBox={x:ht,y:ut,width:vt,height:wt};var Dt=2*Math.floor(xt.plotBorderWidth/2),Et=Math.ceil(Math.max(Dt,Ot[3])/2),It=Math.ceil(Math.max(Dt,Ot[0])/2);xt.clipBox={x:Et,y:It,width:Math.floor(xt.plotSizeX-Math.max(Dt,Ot[1])/2-Et),height:Math.max(0,Math.floor(xt.plotSizeY-Math.max(Dt,Ot[2])/2-It))},ot||(xt.axes.forEach(function(_t){_t.setAxisSize(),_t.setAxisTranslation()}),St.alignElements()),F(xt,"afterSetChartSize",{skipAxes:ot})},dt.prototype.resetMargins=function(){F(this,"resetMargins");var ot=this,ht=ot.options.chart;["margin","spacing"].forEach(function(ut){var vt=ht[ut],wt=V(vt)?vt:[vt,vt,vt,vt];["Top","Right","Bottom","Left"].forEach(function(xt,Ct){ot[ut][Ct]=et(ht[ut+xt],wt[Ct])})}),h.forEach(function(ut,vt){ot[ut]=et(ot.margin[vt],ot.spacing[vt])}),ot.axisOffset=[0,0,0,0],ot.clipOffset=[0,0,0,0]},dt.prototype.drawChartBox=function(){var ot,ht,ut,vt=this,wt=vt.options.chart,xt=vt.renderer,Ct=vt.chartWidth,St=vt.chartHeight,Mt=vt.styledMode,Tt=vt.plotBGImage,Pt=wt.backgroundColor,kt=wt.plotBackgroundColor,Ot=wt.plotBackgroundImage,Dt=vt.plotLeft,Et=vt.plotTop,It=vt.plotWidth,_t=vt.plotHeight,Yt=vt.plotBox,Bt=vt.clipRect,Ft=vt.clipBox,Vt=vt.chartBackground,ue=vt.plotBackground,Ht=vt.plotBorder,$t="animate";Vt||(vt.chartBackground=Vt=xt.rect().addClass("highcharts-background").add(),$t="attr"),Mt?ot=ht=Vt.strokeWidth():(ht=(ot=wt.borderWidth||0)+(wt.shadow?8:0),ut={fill:Pt||"none"},(ot||Vt["stroke-width"])&&(ut.stroke=wt.borderColor,ut["stroke-width"]=ot),Vt.attr(ut).shadow(wt.shadow)),Vt[$t]({x:ht/2,y:ht/2,width:Ct-ht-ot%2,height:St-ht-ot%2,r:wt.borderRadius}),$t="animate",ue||($t="attr",vt.plotBackground=ue=xt.rect().addClass("highcharts-plot-background").add()),ue[$t](Yt),Mt||(ue.attr({fill:kt||"none"}).shadow(wt.plotShadow),Ot&&(Tt?(Ot!==Tt.attr("href")&&Tt.attr("href",Ot),Tt.animate(Yt)):vt.plotBGImage=xt.image(Ot,Dt,Et,It,_t).add())),Bt?Bt.animate({width:Ft.width,height:Ft.height}):vt.clipRect=xt.clipRect(Ft),$t="animate",Ht||($t="attr",vt.plotBorder=Ht=xt.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add()),Mt||Ht.attr({stroke:wt.plotBorderColor,"stroke-width":wt.plotBorderWidth||0,fill:"none"}),Ht[$t](Ht.crisp({x:Dt,y:Et,width:It,height:_t},-Ht.strokeWidth())),vt.isDirtyBox=!1,F(this,"afterDrawChartBox")},dt.prototype.propFromSeries=function(){var ot,ht,ut,vt=this,wt=vt.options.chart,xt=vt.options.series;["inverted","angular","polar"].forEach(function(Ct){for(ht=o[wt.type||wt.defaultSeriesType],ut=wt[Ct]||ht&&ht.prototype[Ct],ot=xt&&xt.length;!ut&&ot--;)(ht=o[xt[ot].type])&&ht.prototype[Ct]&&(ut=!0);vt[Ct]=ut})},dt.prototype.linkSeries=function(){var ot=this,ht=ot.series;ht.forEach(function(ut){ut.linkedSeries.length=0}),ht.forEach(function(ut){var vt=ut.options.linkedTo;X(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=et(ut.options.visible,vt.options.visible,ut.visible))}),F(this,"afterLinkSeries")},dt.prototype.renderSeries=function(){this.series.forEach(function(ot){ot.translate(),ot.render()})},dt.prototype.renderLabels=function(){var ot=this,ht=ot.options.labels;ht.items&&ht.items.forEach(function(ut){var vt=k(ht.style,ut.style),wt=tt(vt.left)+ot.plotLeft,xt=tt(vt.top)+ot.plotTop+12;delete vt.left,delete vt.top,ot.renderer.text(ut.html,wt,xt).attr({zIndex:2}).css(vt).add()})},dt.prototype.render=function(){var ot=this,ht=ot.axes,ut=ot.colorAxis,vt=ot.renderer,wt=ot.options,xt=function(kt){kt.forEach(function(Ot){Ot.visible&&Ot.render()})},Ct=0;ot.setTitle(),ot.legend=new $(ot,wt.legend),ot.getStacks&&ot.getStacks(),ot.getMargins(!0),ot.setChartSize();var St=ot.plotWidth;ht.some(function(kt){if(kt.horiz&&kt.visible&&kt.options.labels.enabled&&kt.series.length)return Ct=21,!0}),ot.plotHeight=Math.max(ot.plotHeight-Ct,0);var Mt=ot.plotHeight;ht.forEach(function(kt){kt.setScale()}),ot.getAxisMargins();var Tt=St/ot.plotWidth>1.1,Pt=Mt/ot.plotHeight>1.05;(Tt||Pt)&&(ht.forEach(function(kt){(kt.horiz&&Tt||!kt.horiz&&Pt)&&kt.setTickInterval(!0)}),ot.getMargins()),ot.drawChartBox(),ot.hasCartesianSeries?xt(ht):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 ht=this,ut=H(!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&&(r.location.href=ut.href)}).attr({align:ut.position.align,zIndex:8}),ht.styledMode||this.credits.css(ut.style),this.credits.add().align(ut.position),this.credits.update=function(vt){ht.credits=ht.credits.destroy(),ht.addCredits(vt)})},dt.prototype.destroy=function(){var ot,ht=this,ut=ht.axes,vt=ht.series,wt=ht.container,xt=wt&&wt.parentNode;for(F(ht,"destroy"),ht.renderer.forExport?d(b,ht):b[ht.index]=void 0,q.chartCount--,ht.renderTo.removeAttribute("data-highcharts-chart"),ct(ht),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(Ct){var St=ht[Ct];St&&St.destroy&&(ht[Ct]=St.destroy())}),wt&&(wt.innerHTML=g.emptyHTML,ct(wt),xt&&O(wt)),Q(ht,function(Ct,St){delete ht[St]})},dt.prototype.firstRender=function(){var ot=this,ht=ot.options;ot.isReadyToRender&&!ot.isReadyToRender()||(ot.getContainer(),ot.resetMargins(),ot.setChartSize(),ot.propFromSeries(),ot.getAxes(),(I(ht.series)?ht.series:[]).forEach(function(ut){ot.initSeries(ut)}),ot.linkSeries(),ot.setSeriesData(),F(ot,"beforeRender"),D&&(G.isRequired()?ot.pointer=new G(ot,ht):ot.pointer=new D(ot,ht)),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),F(this,"load"),F(this,"render"),A(this.index)&&this.setReflow(this.options.chart.reflow),this.warnIfA11yModuleNotLoaded(),this.hasLoaded=!0},dt.prototype.warnIfA11yModuleNotLoaded=function(){var ot=this.options,ht=this.title;ot&&!this.accessibility&&(this.renderer.boxWrapper.attr({role:"img","aria-label":(ht&&ht.element.textContent||"").replace(/</g,"&lt;")}),ot.accessibility&&ot.accessibility.enabled===!1||w('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,ht,ut){var vt,wt=this;return ot&&(ht=et(ht,!0),F(wt,"addSeries",{options:ot},function(){vt=wt.initSeries(ot),wt.isDirtyLegend=!0,wt.linkSeries(),vt.enabledDataSorting&&vt.setData(ot.data,!1),F(wt,"afterAddSeries",{series:vt}),ht&&wt.redraw(ut)})),vt},dt.prototype.addAxis=function(ot,ht,ut,vt){return this.createAxis(ht?"xAxis":"yAxis",{axis:ot,redraw:ut,animation:vt})},dt.prototype.addColorAxis=function(ot,ht,ut){return this.createAxis("colorAxis",{axis:ot,redraw:ht,animation:ut})},dt.prototype.createAxis=function(ot,ht){var ut=new R(this,H(ht.axis,{index:this[ot].length,isX:ot==="xAxis"}));return et(ht.redraw,!0)&&this.redraw(ht.animation),ut},dt.prototype.showLoading=function(ot){var ht=this,ut=ht.options,vt=ut.loading,wt=function(){xt&&m(xt,{left:ht.plotLeft+"px",top:ht.plotTop+"px",width:ht.plotWidth+"px",height:ht.plotHeight+"px"})},xt=ht.loadingDiv,Ct=ht.loadingSpan;xt||(ht.loadingDiv=xt=s("div",{className:"highcharts-loading highcharts-loading-hidden"},null,ht.container)),Ct||(ht.loadingSpan=Ct=s("span",{className:"highcharts-loading-inner"},null,xt),i(ht,"redraw",wt)),xt.className="highcharts-loading",g.setElementHTML(Ct,et(ot,ut.lang.loading,"")),ht.styledMode||(m(xt,k(vt.style,{zIndex:10})),m(Ct,vt.labelStyle),ht.loadingShown||(m(xt,{opacity:0,display:""}),v(xt,{opacity:vt.style.opacity||.5},{duration:vt.showDuration||0}))),ht.loadingShown=!0,wt()},dt.prototype.hideLoading=function(){var ot=this.options,ht=this.loadingDiv;ht&&(ht.className="highcharts-loading highcharts-loading-hidden",this.styledMode||v(ht,{opacity:0},{duration:ot.loading.hideDuration||100,complete:function(){m(ht,{display:"none"})}})),this.loadingShown=!1},dt.prototype.update=function(ot,ht,ut,vt){var wt,xt,Ct,St=this,Mt={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},Tt=ot.isResponsiveOptions,Pt=[];F(St,"update",{options:ot}),Tt||St.setResponsive(!1,!0),ot=a(ot,St.options),St.userOptions=H(St.userOptions,ot);var kt=ot.chart;kt&&(H(!0,St.options.chart,kt),"className"in kt&&St.setClassName(kt.className),"reflow"in kt&&St.setReflow(kt.reflow),("inverted"in kt||"polar"in kt||"type"in kt)&&(St.propFromSeries(),wt=!0),"alignTicks"in kt&&(wt=!0),"events"in kt&&f(this,kt),Q(kt,function(Et,It){St.propsRequireUpdateSeries.indexOf("chart."+It)!==-1&&(xt=!0),St.propsRequireDirtyBox.indexOf(It)!==-1&&(St.isDirtyBox=!0),St.propsRequireReflow.indexOf(It)!==-1&&(Tt?St.isDirtyBox=!0:Ct=!0)}),!St.styledMode&&kt.style&&St.renderer.setStyle(St.options.chart.style||{})),!St.styledMode&&ot.colors&&(this.options.colors=ot.colors),ot.time&&(this.time===L&&(this.time=new u(ot.time)),H(!0,St.options.time,ot.time)),Q(ot,function(Et,It){St[It]&&typeof St[It].update=="function"?St[It].update(Et,!1):typeof St[Mt[It]]=="function"?St[Mt[It]](Et):It!=="colors"&&St.collectionsWithUpdate.indexOf(It)===-1&&H(!0,St.options[It],ot[It]),It!=="chart"&&St.propsRequireUpdateSeries.indexOf(It)!==-1&&(xt=!0)}),this.collectionsWithUpdate.forEach(function(Et){var It;ot[Et]&&(It=[],St[Et].forEach(function(_t,Yt){_t.options.isInternal||It.push(et(_t.options.index,Yt))}),gt(ot[Et]).forEach(function(_t,Yt){var Bt,Ft=A(_t.id);Ft&&(Bt=St.get(_t.id)),!Bt&&St[Et]&&(Bt=St[Et][It?It[Yt]:Yt])&&Ft&&A(Bt.options.id)&&(Bt=void 0),Bt&&Bt.coll===Et&&(Bt.update(_t,!1),ut&&(Bt.touched=!0)),!Bt&&ut&&St.collectionsWithInit[Et]&&(St.collectionsWithInit[Et][0].apply(St,[_t].concat(St.collectionsWithInit[Et][1]||[]).concat([!1])).touched=!0)}),ut&&St[Et].forEach(function(_t){_t.touched||_t.options.isInternal?delete _t.touched:Pt.push(_t)}))}),Pt.forEach(function(Et){Et.chart&&Et.remove&&Et.remove(!1)}),wt&&St.axes.forEach(function(Et){Et.update({},!1)}),xt&&St.getSeriesOrderByLinks().forEach(function(Et){Et.chart&&Et.update({},!1)},this);var Ot=kt&&kt.width,Dt=kt&&(X(kt.height)?st(kt.height,Ot||St.chartWidth):kt.height);Ct||_(Ot)&&Ot!==St.chartWidth||_(Dt)&&Dt!==St.chartHeight?St.setSize(Ot,Dt,vt):et(ht,!0)&&St.redraw(vt),F(St,"afterUpdate",{options:ot,redraw:ht,animation:vt})},dt.prototype.setSubtitle=function(ot,ht){this.applyDescription("subtitle",ot),this.layOutTitles(ht)},dt.prototype.setCaption=function(ot,ht){this.applyDescription("caption",ot),this.layOutTitles(ht)},dt.prototype.showResetZoom=function(){var ot=this,ht=P.lang,ut=ot.options.chart.zooming.resetButton,vt=ut.theme,wt=ut.relativeTo==="chart"||ut.relativeTo==="spacingBox"?null:"scrollablePlotBox";function xt(){ot.zoomOut()}F(this,"beforeShowResetZoom",null,function(){ot.resetZoomButton=ot.renderer.button(ht.resetZoom,null,null,xt,vt).attr({align:ut.position.align,title:ht.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(ut.position,!1,wt)}),F(this,"afterShowResetZoom")},dt.prototype.zoomOut=function(){F(this,"selection",{resetSelection:!0},this.zoom)},dt.prototype.zoom=function(ot){var ht,ut=this,vt=ut.pointer,wt=!1;!ot||ot.resetSelection?(ut.axes.forEach(function(Ct){ht=Ct.zoom()}),vt.initiated=!1):ot.xAxis.concat(ot.yAxis).forEach(function(Ct){var St=Ct.axis,Mt=St.isXAxis;(vt[Mt?"zoomX":"zoomY"]&&A(vt.mouseDownX)&&A(vt.mouseDownY)&&ut.isInsidePlot(vt.mouseDownX-ut.plotLeft,vt.mouseDownY-ut.plotTop,{axis:St})||!A(ut.inverted?vt.mouseDownX:vt.mouseDownY))&&(ht=St.zoom(Ct.min,Ct.max),St.displayBtn&&(wt=!0))});var xt=ut.resetZoomButton;wt&&!xt?ut.showResetZoom():!wt&&V(xt)&&(ut.resetZoomButton=xt.destroy()),ht&&ut.redraw(et(ut.options.chart.animation,ot&&ot.animation,ut.pointCount<100))},dt.prototype.pan=function(ot,ht){var ut=this,vt=ut.hoverPoints,wt=typeof ht=="object"?ht:{enabled:ht,type:"x"},xt=ut.options.chart;xt&&xt.panning&&(xt.panning=wt);var Ct,St=wt.type;F(this,"pan",{originalEvent:ot},function(){vt&&vt.forEach(function(Pt){Pt.setState()});var Mt=ut.xAxis;St==="xy"?Mt=Mt.concat(ut.yAxis):St==="y"&&(Mt=ut.yAxis);var Tt={};Mt.forEach(function(Pt){if(Pt.options.panningEnabled&&!Pt.options.isInternal){var kt,Ot=Pt.horiz,Dt=ot[Ot?"chartX":"chartY"],Et=Ot?"mouseDownX":"mouseDownY",It=ut[Et],_t=Pt.minPointOffset||0,Yt=Pt.reversed&&!ut.inverted||!Pt.reversed&&ut.inverted?-1:1,Bt=Pt.getExtremes(),Ft=Pt.toValue(It-Dt,!0)+_t*Yt,Vt=Pt.toValue(It+Pt.len-Dt,!0)-(_t*Yt||Pt.isXAxis&&Pt.pointRangePadding||0),ue=Vt<Ft,Ht=Pt.hasVerticalPanning(),$t=ue?Vt:Ft,ve=ue?Ft:Vt,Lt=Pt.panningState;!Ht||Pt.isXAxis||Lt&&!Lt.isDirty||Pt.series.forEach(function(Xt){var he=Xt.getProcessedData(!0),ae=Xt.getExtremes(he.yData,!0);Lt||(Lt={startMin:Number.MAX_VALUE,startMax:-Number.MAX_VALUE}),_(ae.dataMin)&&_(ae.dataMax)&&(Lt.startMin=Math.min(et(Xt.options.threshold,1/0),ae.dataMin,Lt.startMin),Lt.startMax=Math.max(et(Xt.options.threshold,-1/0),ae.dataMax,Lt.startMax))});var zt=Math.min(et(Lt&&Lt.startMin,Bt.dataMin),_t?Bt.min:Pt.toValue(Pt.toPixels(Bt.min)-Pt.minPixelPadding)),Wt=Math.max(et(Lt&&Lt.startMax,Bt.dataMax),_t?Bt.max:Pt.toValue(Pt.toPixels(Bt.max)+Pt.minPixelPadding));Pt.panningState=Lt,Pt.isOrdinal||((kt=zt-$t)>0&&(ve+=kt,$t=zt),(kt=ve-Wt)>0&&(ve=Wt,$t-=kt),Pt.series.length&&$t!==Bt.min&&ve!==Bt.max&&$t>=zt&&ve<=Wt&&(Pt.setExtremes($t,ve,!1,!1,{trigger:"pan"}),!ut.resetZoomButton&&$t!==zt&&ve!==Wt&&St.match("y")&&(ut.showResetZoom(),Pt.displayBtn=!1),Ct=!0),Tt[Et]=Dt)}}),Q(Tt,function(Pt,kt){ut[kt]=Pt}),Ct&&ut.redraw(!1),m(ut.container,{cursor:"move"})})},dt}();return k(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}),rt(N,"Core/Legend/LegendSymbol.js",[N["Core/Utilities.js"]],function(W){var R,U=W.extend,Y=W.merge,Z=W.pick;return function(q){q.drawLineMarker=function($){var G,D=this.legendItem=this.legendItem||{},E=this.options,x=$.symbolWidth,T=$.symbolHeight,u=T/2,p=this.chart.renderer,g=D.group,v=$.baseline-Math.round(.3*$.fontMetrics.b),y={},C=E.marker,P=0;if(this.chart.styledMode||(y={"stroke-width":Math.min(E.lineWidth||0,24)},E.dashStyle?y.dashstyle=E.dashStyle:E.linecap!=="square"&&(y["stroke-linecap"]="round")),D.line=p.path().addClass("highcharts-graph").attr(y).add(g),y["stroke-linecap"]&&(P=Math.min(D.line.strokeWidth(),x)/2),D.line.attr({d:[["M",P,v],["L",x-P,v]]}),C&&C.enabled!==!1&&x){var L=Math.min(Z(C.radius,u),u);this.symbol.indexOf("url")===0&&(C=Y(C,{width:T,height:T}),L=0),D.symbol=G=p.symbol(this.symbol,x/2-L,v-L,2*L,2*L,U({context:"legend"},C)).addClass("highcharts-point").add(g),G.isMarker=!0}},q.drawRectangle=function($,G){var D=G.legendItem||{},E=$.options,x=$.symbolHeight,T=E.squareSymbol,u=T?x:$.symbolWidth;D.symbol=this.chart.renderer.rect(T?($.symbolWidth-x)/2:0,$.baseline-x+1,u,x,Z($.options.symbolRadius,x/2)).addClass("highcharts-point").attr({zIndex:3}).add(D.group)}}(R||(R={})),R}),rt(N,"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 W=this.series.chart.numberFormatter;return typeof this.y!="number"?"":W(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"}}),rt(N,"Core/Series/Series.js",[N["Core/Animation/AnimationUtilities.js"],N["Core/Defaults.js"],N["Core/Foundation.js"],N["Core/Globals.js"],N["Core/Legend/LegendSymbol.js"],N["Core/Series/Point.js"],N["Core/Series/SeriesDefaults.js"],N["Core/Series/SeriesRegistry.js"],N["Core/Renderer/SVG/SVGElement.js"],N["Core/Utilities.js"]],function(W,R,U,Y,Z,q,$,G,D,E){var x=W.animObject,T=W.setAnimation,u=R.defaultOptions,p=U.registerEventOptions,g=Y.hasTouch,v=Y.svg,y=Y.win,C=G.seriesTypes,P=E.arrayMax,L=E.arrayMin,M=E.clamp,f=E.cleanRecursively,b=E.correctFloat,l=E.defined,h=E.erase,e=E.error,r=E.extend,o=E.find,i=E.fireEvent,c=E.getNestedProperty,a=E.isArray,s=E.isNumber,m=E.isString,A=E.merge,O=E.objectEach,d=E.pick,w=E.removeEvent,k=E.splat,z=E.syncTimeout,F=function(){function j(){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 j.prototype.init=function(I,_){i(this,"init",{options:_});var V=this,X=I.series;this.eventsToUnbind=[],V.chart=I,V.options=V.setOptions(_);var H=V.options;V.linkedSeries=[],V.bindAxes(),r(V,{name:H.name,state:"",visible:H.visible!==!1,selected:H.selected===!0}),p(this,H);var Q,et=H.events;(et&&et.click||H.point&&H.point.events&&H.point.events.click||H.allowPointSelect)&&(I.runTrackerClick=!0),V.getColor(),V.getSymbol(),V.parallelArrays.forEach(function(tt){V[tt+"Data"]||(V[tt+"Data"]=[])}),V.isCartesian&&(I.hasCartesianSeries=!0),X.length&&(Q=X[X.length-1]),V._i=d(Q&&Q._i,-1)+1,V.opacity=V.options.opacity,I.orderSeries(this.insert(X)),H.dataSorting&&H.dataSorting.enabled?V.setDataSortingOptions():V.points||V.data||V.setData(H.data,!1),i(this,"afterInit")},j.prototype.is=function(I){return C[I]&&this instanceof C[I]},j.prototype.insert=function(I){var _,V=this.options.index;if(s(V)){for(_=I.length;_--;)if(V>=d(I[_].options.index,I[_]._i)){I.splice(_+1,0,this);break}_===-1&&I.unshift(this),_+=1}else I.push(this);return d(_,I.length-1)},j.prototype.bindAxes=function(){var I,_=this,V=_.options,X=_.chart;i(this,"bindAxes",null,function(){(_.axisTypes||[]).forEach(function(H){var Q=0;X[H].forEach(function(et){I=et.options,(V[H]===Q&&!I.isInternal||V[H]!==void 0&&V[H]===I.id||V[H]===void 0&&I.index===0)&&(_.insert(et.series),_[H]=et,et.isDirty=!0),I.isInternal||Q++}),_[H]||_.optionalAxis===H||e(18,!0,X)})}),i(this,"afterBindAxes")},j.prototype.updateParallelArrays=function(I,_){var V=I.series,X=arguments,H=s(_)?function(Q){var et=Q==="y"&&V.toYData?V.toYData(I):I[Q];V[Q+"Data"][_]=et}:function(Q){Array.prototype[_].apply(V[Q+"Data"],Array.prototype.slice.call(X,2))};V.parallelArrays.forEach(H)},j.prototype.hasData=function(){return this.visible&&this.dataMax!==void 0&&this.dataMin!==void 0||this.visible&&this.yData&&this.yData.length>0},j.prototype.autoIncrement=function(I){var _,V,X=this.options,H=X.pointIntervalUnit,Q=X.relativeXValue,et=this.chart.time,tt=this.xIncrement;return tt=d(tt,X.pointStart,0),this.pointInterval=V=d(this.pointInterval,X.pointInterval,1),Q&&s(I)&&(V*=I),H&&(_=new et.Date(tt),H==="day"?et.set("Date",_,et.get("Date",_)+V):H==="month"?et.set("Month",_,et.get("Month",_)+V):H==="year"&&et.set("FullYear",_,et.get("FullYear",_)+V),V=_.getTime()-tt),Q&&s(I)?tt+V:(this.xIncrement=tt+V,tt)},j.prototype.setDataSortingOptions=function(){var I=this.options;r(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1}),l(I.pointRange)||(I.pointRange=1)},j.prototype.setOptions=function(I){var _,V=this.chart,X=V.options,H=X.plotOptions,Q=V.userOptions||{},et=A(I),tt=V.styledMode,st={plotOptions:H,userOptions:et};i(this,"setOptions",st);var ct=st.plotOptions[this.type],gt=Q.plotOptions||{};this.userOptions=st.userOptions;var mt=A(ct,H.series,Q.plotOptions&&Q.plotOptions[this.type],et);this.tooltipOptions=A(u.tooltip,u.plotOptions.series&&u.plotOptions.series.tooltip,u.plotOptions[this.type].tooltip,X.tooltip.userOptions,H.series&&H.series.tooltip,H[this.type].tooltip,et.tooltip),this.stickyTracking=d(et.stickyTracking,gt[this.type]&&gt[this.type].stickyTracking,gt.series&&gt.series.stickyTracking,!(!this.tooltipOptions.shared||this.noSharedTooltip)||mt.stickyTracking),ct.marker===null&&delete mt.marker,this.zoneAxis=mt.zoneAxis;var bt=this.zones=(mt.zones||[]).slice();return!mt.negativeColor&&!mt.negativeFillColor||mt.zones||(_={value:mt[this.zoneAxis+"Threshold"]||mt.threshold||0,className:"highcharts-negative"},tt||(_.color=mt.negativeColor,_.fillColor=mt.negativeFillColor),bt.push(_)),bt.length&&l(bt[bt.length-1].value)&&bt.push(tt?{}:{color:this.color,fillColor:this.fillColor}),i(this,"afterSetOptions",{options:mt}),mt},j.prototype.getName=function(){return d(this.options.name,"Series "+(this.index+1))},j.prototype.getCyclic=function(I,_,V){var X,H,Q=this.chart,et=this.userOptions,tt=I+"Index",st=I+"Counter",ct=V?V.length:d(Q.options.chart[I+"Count"],Q[I+"Count"]);_||(H=d(et[tt],et["_"+tt]),l(H)?X=H:(Q.series.length||(Q[st]=0),et["_"+tt]=X=Q[st]%ct,Q[st]+=1),V&&(_=V[X])),X!==void 0&&(this[tt]=X),this[I]=_},j.prototype.getColor=function(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color="#cccccc":this.getCyclic("color",this.options.color||u.plotOptions[this.type].color,this.chart.options.colors)},j.prototype.getPointsCollection=function(){return(this.hasGroupedData?this.points:this.data)||[]},j.prototype.getSymbol=function(){var I=this.options.marker;this.getCyclic("symbol",I.symbol,this.chart.options.symbols)},j.prototype.findPointIndex=function(I,_){var V,X,H,Q=I.id,et=I.x,tt=this.points,st=this.options.dataSorting;if(Q){var ct=this.chart.get(Q);ct instanceof q&&(V=ct)}else if(this.linkedParent||this.enabledDataSorting||this.options.relativeXValue){var gt=function(mt){return!mt.touched&&mt.index===I.index};if(st&&st.matchByName?gt=function(mt){return!mt.touched&&mt.name===I.name}:this.options.relativeXValue&&(gt=function(mt){return!mt.touched&&mt.options.x===I.x}),!(V=o(tt,gt)))return}return V&&(H=V&&V.index)!==void 0&&(X=!0),H===void 0&&s(et)&&(H=this.xData.indexOf(et,_)),H!==-1&&H!==void 0&&this.cropped&&(H=H>=this.cropStart?H-this.cropStart:H),!X&&s(H)&&tt[H]&&tt[H].touched&&(H=void 0),H},j.prototype.updateData=function(I,_){var V,X,H,Q,et=this.options,tt=et.dataSorting,st=this.points,ct=[],gt=this.requireSorting,mt=I.length===st.length,bt=!0;if(this.xIncrement=null,I.forEach(function(yt,dt){var ot,ht=l(yt)&&this.pointClass.prototype.optionsToObject.call({series:this},yt)||{},ut=ht.x;ht.id||s(ut)?((ot=this.findPointIndex(ht,Q))===-1||ot===void 0?ct.push(yt):st[ot]&&yt!==et.data[ot]?(st[ot].update(yt,!1,null,!1),st[ot].touched=!0,gt&&(Q=ot+1)):st[ot]&&(st[ot].touched=!0),(!mt||dt!==ot||tt&&tt.enabled||this.hasDerivedData)&&(V=!0)):ct.push(yt)},this),V)for(X=st.length;X--;)(H=st[X])&&!H.touched&&H.remove&&H.remove(!1,_);else!mt||tt&&tt.enabled?bt=!1:(I.forEach(function(yt,dt){yt!==st[dt].y&&st[dt].update&&st[dt].update(yt,!1,null,!1)}),ct.length=0);return st.forEach(function(yt){yt&&(yt.touched=!1)}),!!bt&&(ct.forEach(function(yt){this.addPoint(yt,!1,null,null,!1)},this),this.xIncrement===null&&this.xData&&this.xData.length&&(this.xIncrement=P(this.xData),this.autoIncrement()),!0)},j.prototype.setData=function(I,_,V,X){_===void 0&&(_=!0);var H,Q,et,tt,st=this,ct=st.points,gt=ct&&ct.length||0,mt=st.options,bt=st.chart,yt=mt.dataSorting,dt=st.xAxis,ot=mt.turboThreshold,ht=this.xData,ut=this.yData,vt=st.pointArrayMap,wt=vt&&vt.length,xt=mt.keys,Ct=0,St=1,Mt=null;bt.options.chart.allowMutatingData||(mt.data&&delete st.options.data,st.userOptions.data&&delete st.userOptions.data,tt=A(!0,I));var Tt=(I=tt||I||[]).length;if(yt&&yt.enabled&&(I=this.sortData(I)),bt.options.chart.allowMutatingData&&X!==!1&&Tt&&gt&&!st.cropped&&!st.hasGroupedData&&st.visible&&!st.boosted&&(et=this.updateData(I,V)),!et){if(st.xIncrement=null,st.colorCounter=0,this.parallelArrays.forEach(function(Pt){st[Pt+"Data"].length=0}),ot&&Tt>ot)if(Mt=st.getFirstValidPoint(I),s(Mt))for(H=0;H<Tt;H++)ht[H]=this.autoIncrement(),ut[H]=I[H];else if(a(Mt))if(wt)if(Mt.length===wt)for(H=0;H<Tt;H++)ht[H]=this.autoIncrement(),ut[H]=I[H];else for(H=0;H<Tt;H++)Q=I[H],ht[H]=Q[0],ut[H]=Q.slice(1,wt+1);else if(xt&&(Ct=(Ct=xt.indexOf("x"))>=0?Ct:0,St=(St=xt.indexOf("y"))>=0?St:1),Mt.length===1&&(St=0),Ct===St)for(H=0;H<Tt;H++)ht[H]=this.autoIncrement(),ut[H]=I[H][St];else for(H=0;H<Tt;H++)Q=I[H],ht[H]=Q[Ct],ut[H]=Q[St];else e(12,!1,bt);else for(H=0;H<Tt;H++)I[H]!==void 0&&(Q={series:st},st.pointClass.prototype.applyOptions.apply(Q,[I[H]]),st.updateParallelArrays(Q,H));for(ut&&m(ut[0])&&e(14,!0,bt),st.data=[],st.options.data=st.userOptions.data=I,H=gt;H--;)ct[H]&&ct[H].destroy&&ct[H].destroy();dt&&(dt.minRange=dt.userMinRange),st.isDirty=bt.isDirtyBox=!0,st.isDirtyData=!!ct,V=!1}mt.legendType==="point"&&(this.processData(),this.generatePoints()),_&&bt.redraw(V)},j.prototype.sortData=function(I){var _=this,V=_.options.dataSorting.sortKey||"y",X=function(H,Q){return l(Q)&&H.pointClass.prototype.optionsToObject.call({series:H},Q)||{}};return I.forEach(function(H,Q){I[Q]=X(_,H),I[Q].index=Q},this),I.concat().sort(function(H,Q){var et=c(V,H),tt=c(V,Q);return tt<et?-1:tt>et?1:0}).forEach(function(H,Q){H.x=Q},this),_.linkedSeries&&_.linkedSeries.forEach(function(H){var Q=H.options,et=Q.data;Q.dataSorting&&Q.dataSorting.enabled||!et||(et.forEach(function(tt,st){et[st]=X(H,tt),I[st]&&(et[st].x=I[st].x,et[st].index=st)}),H.setData(et,!1))}),I},j.prototype.getProcessedData=function(I){var _,V,X,H,Q,et,tt,st,ct=this,gt=ct.xAxis,mt=ct.options,bt=mt.cropThreshold,yt=I||ct.getExtremesFromAll||mt.getExtremesFromAll,dt=ct.isCartesian,ot=gt&&gt.val2lin,ht=!(!gt||!gt.logarithmic),ut=0,vt=ct.xData,wt=ct.yData,xt=ct.requireSorting,Ct=!1,St=vt.length;for(gt&&(tt=(et=gt.getExtremes()).min,st=et.max,Ct=!(!gt.categories||gt.names.length)),dt&&ct.sorted&&!yt&&(!bt||St>bt||ct.forceCrop)&&(vt[St-1]<tt||vt[0]>st?(vt=[],wt=[]):ct.yData&&(vt[0]<tt||vt[St-1]>st)&&(vt=(_=this.cropData(ct.xData,ct.yData,tt,st)).xData,wt=_.yData,ut=_.start,V=!0)),Q=vt.length||1;--Q;)(X=ht?ot(vt[Q])-ot(vt[Q-1]):vt[Q]-vt[Q-1])>0&&(H===void 0||X<H)?H=X:X<0&&xt&&!Ct&&(e(15,!1,ct.chart),xt=!1);return{xData:vt,yData:wt,cropped:V,cropStart:ut,closestPointRange:H}},j.prototype.processData=function(I){var _=this,V=_.xAxis;if(_.isCartesian&&!_.isDirty&&!V.isDirty&&!_.yAxis.isDirty&&!I)return!1;var X=_.getProcessedData();_.cropped=X.cropped,_.cropStart=X.cropStart,_.processedXData=X.xData,_.processedYData=X.yData,_.closestPointRange=_.basePointRange=X.closestPointRange,i(_,"afterProcessData")},j.prototype.cropData=function(I,_,V,X,H){var Q,et,tt=I.length,st=0,ct=tt;for(H=d(H,this.cropShoulder),Q=0;Q<tt;Q++)if(I[Q]>=V){st=Math.max(0,Q-H);break}for(et=Q;et<tt;et++)if(I[et]>X){ct=et+H;break}return{xData:I.slice(st,ct),yData:_.slice(st,ct),start:st,end:ct}},j.prototype.generatePoints=function(){var I,_,V,X,H=this,Q=H.options,et=H.processedData||Q.data,tt=H.processedXData,st=H.processedYData,ct=H.pointClass,gt=tt.length,mt=H.cropStart||0,bt=H.hasGroupedData,yt=Q.keys,dt=[],ot=Q.dataGrouping&&Q.dataGrouping.groupAll?mt:0,ht=H.data;if(!ht&&!bt){var ut=[];ut.length=et.length,ht=H.data=ut}for(yt&&bt&&(H.options.keys=!1),X=0;X<gt;X++)_=mt+X,bt?((V=new ct().init(H,[tt[X]].concat(k(st[X])))).dataGroup=H.groupMap[ot+X],V.dataGroup.options&&(V.options=V.dataGroup.options,r(V,V.dataGroup.options),delete V.dataLabels)):(V=ht[_])||et[_]===void 0||(ht[_]=V=new ct().init(H,et[_],tt[X])),V&&(V.index=bt?ot+X:_,dt[X]=V);if(H.options.keys=yt,ht&&(gt!==(I=ht.length)||bt))for(X=0;X<I;X++)X!==mt||bt||(X+=gt),ht[X]&&(ht[X].destroyElements(),ht[X].plotX=void 0);H.data=ht,H.points=dt,i(this,"afterGeneratePoints")},j.prototype.getXExtremes=function(I){return{min:L(I),max:P(I)}},j.prototype.getExtremes=function(I,_){var V,X,H,Q,et,tt,st,ct=this.xAxis,gt=this.yAxis,mt=this.processedXData||this.xData,bt=[],yt=this.requireSorting?this.cropShoulder:0,dt=!!gt&&gt.positiveValuesOnly,ot=0,ht=0,ut=0,vt=(I=I||this.stackedYData||this.processedYData||[]).length;for(ct&&(ot=(V=ct.getExtremes()).min,ht=V.max),tt=0;tt<vt;tt++)if(Q=mt[tt],et=I[tt],X=(s(et)||a(et))&&(et.length||et>0||!dt),H=_||this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!ct||(mt[tt+yt]||Q)>=ot&&(mt[tt-yt]||Q)<=ht,X&&H)if(st=et.length)for(;st--;)s(et[st])&&(bt[ut++]=et[st]);else bt[ut++]=et;var wt={activeYData:bt,dataMin:L(bt),dataMax:P(bt)};return i(this,"afterGetExtremes",{dataExtremes:wt}),wt},j.prototype.applyExtremes=function(){var I=this.getExtremes();return this.dataMin=I.dataMin,this.dataMax=I.dataMax,I},j.prototype.getFirstValidPoint=function(I){for(var _=I.length,V=0,X=null;X===null&&V<_;)X=I[V],V++;return X},j.prototype.translate=function(){this.processedXData||this.processData(),this.generatePoints();var I,_,V,X,H=this,Q=H.options,et=Q.stacking,tt=H.xAxis,st=tt.categories,ct=H.enabledDataSorting,gt=H.yAxis,mt=H.points,bt=mt.length,yt=H.pointPlacementToXValue(),dt=!!yt,ot=Q.threshold,ht=Q.startFromThreshold?ot:0,ut=this.zoneAxis||"y",vt=Number.MAX_VALUE;function wt(Dt){return M(Dt,-1e5,1e5)}for(I=0;I<bt;I++){var xt=mt[I],Ct=xt.x,St=void 0,Mt=void 0,Tt=xt.y,Pt=xt.low,kt=et&&gt.stacking&&gt.stacking.stacks[(H.negStacks&&Tt<(ht?0:ot)?"-":"")+H.stackKey];if((gt.positiveValuesOnly&&!gt.validatePositiveValue(Tt)||tt.positiveValuesOnly&&!tt.validatePositiveValue(Ct))&&(xt.isNull=!0),xt.plotX=_=b(wt(tt.translate(Ct,0,0,0,1,yt,this.type==="flags"))),et&&H.visible&&kt&&kt[Ct]&&(X=H.getStackIndicator(X,Ct,H.index),!xt.isNull&&X.key&&(Mt=(St=kt[Ct]).points[X.key]),St&&a(Mt)&&(Pt=Mt[0],Tt=Mt[1],Pt===ht&&X.key===kt[Ct].base&&(Pt=d(s(ot)?ot:gt.min)),gt.positiveValuesOnly&&l(Pt)&&Pt<=0&&(Pt=void 0),xt.total=xt.stackTotal=d(St.total),xt.percentage=l(xt.y)&&St.total?xt.y/St.total*100:void 0,xt.stackY=Tt,H.irregularWidths||St.setOffset(H.pointXOffset||0,H.barW||0,void 0,void 0,void 0,H.xAxis))),xt.yBottom=l(Pt)?wt(gt.translate(Pt,0,1,0,1)):void 0,H.dataModify&&(Tt=H.dataModify.modifyValue(Tt,I)),xt.plotY=void 0,s(Tt)){var Ot=gt.translate(Tt,!1,!0,!1,!0);Ot!==void 0&&(xt.plotY=wt(Ot))}xt.isInside=this.isPointInside(xt),xt.clientX=dt?b(tt.translate(Ct,0,0,0,1,yt)):_,xt.negative=xt[ut]<(Q[ut+"Threshold"]||ot||0),xt.category=d(st&&st[xt.x],xt.x),xt.isNull||xt.visible===!1||(V!==void 0&&(vt=Math.min(vt,Math.abs(_-V))),V=_),xt.zone=this.zones.length?xt.getZone():void 0,!xt.graphic&&H.group&&ct&&(xt.isNew=!0)}H.closestPointRangePx=vt,i(this,"afterTranslate")},j.prototype.getValidPoints=function(I,_,V){var X=this.chart;return(I||this.points||[]).filter(function(H){return!(_&&!X.isInsidePlot(H.plotX,H.plotY,{inverted:X.inverted}))&&H.visible!==!1&&(V||!H.isNull)})},j.prototype.getClipBox=function(){var I=this,_=I.chart,V=I.xAxis,X=I.yAxis,H=A(_.clipBox);return V&&V.len!==_.plotSizeX&&(H.width=V.len),X&&X.len!==_.plotSizeY&&(H.height=X.len),H},j.prototype.getSharedClipKey=function(){return this.sharedClipKey=(this.options.xAxis||0)+","+(this.options.yAxis||0),this.sharedClipKey},j.prototype.setClip=function(){var I=this,_=I.chart,V=I.group,X=I.markerGroup,H=_.sharedClips,Q=_.renderer,et=this.getClipBox(),tt=this.getSharedClipKey(),st=H[tt];st?st.animate(et):H[tt]=st=Q.clipRect(et),V&&V.clip(this.options.clip===!1?void 0:st),X&&X.clip()},j.prototype.animate=function(I){var _=this,V=_.chart,X=_.group,H=_.markerGroup,Q=V.inverted,et=x(this.options.animation),tt=[this.getSharedClipKey(),et.duration,et.easing,et.defer].join(","),st=V.sharedClips[tt],ct=V.sharedClips[tt+"m"];if(I&&X){var gt=this.getClipBox();if(st)st.attr("height",gt.height);else{gt.width=0,Q&&(gt.x=V.plotHeight),st=V.renderer.clipRect(gt),V.sharedClips[tt]=st;var mt={x:-99,y:-99,width:Q?V.plotWidth+199:99,height:Q?99:V.plotHeight+199};ct=V.renderer.clipRect(mt),V.sharedClips[tt+"m"]=ct}X.clip(st),H&&H.clip(ct)}else if(st&&!st.hasClass("highcharts-animating")){var bt=this.getClipBox(),yt=et.step;H&&H.element.childNodes.length&&(et.step=function(dt,ot){yt&&yt.apply(ot,arguments),ot.prop==="width"&&ct&&ct.element&&ct.attr(Q?"height":"width",dt+99)}),st.addClass("highcharts-animating").animate(bt,et)}},j.prototype.afterAnimate=function(){var I=this;this.setClip(),O(this.chart.sharedClips,function(_,V,X){_&&!I.chart.container.querySelector('[clip-path="url(#'.concat(_.id,')"]'))&&(_.destroy(),delete X[V])}),this.finishedAnimating=!0,i(this,"afterAnimate")},j.prototype.drawPoints=function(I){I===void 0&&(I=this.points);var _,V,X,H,Q,et,tt,st=this,ct=st.chart,gt=ct.styledMode,mt=st.colorAxis,bt=st.options.marker,yt=st[st.specialGroup||"markerGroup"],dt=st.xAxis,ot=d(bt.enabled,!(dt&&!dt.isRadial)||null,st.closestPointRangePx>=bt.enabledThreshold*bt.radius);if(bt.enabled!==!1||st._hasPointMarkers)for(_=0;_<I.length;_++)if(H=(X=(V=I[_]).graphic)?"animate":"attr",Q=V.marker||{},et=!!V.marker,(ot&&Q.enabled===void 0||Q.enabled)&&!V.isNull&&V.visible!==!1){var ht=d(Q.symbol,st.symbol,"rect");tt=st.markerAttribs(V,V.selected&&"select"),st.enabledDataSorting&&(V.startXPos=dt.reversed?-(tt.width||0):dt.width);var ut=V.isInside!==!1;if(!X&&ut&&((tt.width||0)>0||V.hasImage)&&(V.graphic=X=ct.renderer.symbol(ht,tt.x,tt.y,tt.width,tt.height,et?Q:bt).add(yt),st.enabledDataSorting&&ct.hasRendered&&(X.attr({x:V.startXPos}),H="animate")),X&&H==="animate"&&X[ut?"show":"hide"](ut).animate(tt),X){var vt=st.pointAttribs(V,gt||!V.selected?void 0:"select");gt?mt&&X.css({fill:vt.fill}):X[H](vt)}X&&X.addClass(V.getClassName(),!0)}else X&&(V.graphic=X.destroy())},j.prototype.markerAttribs=function(I,_){var V,X,H=this.options,Q=H.marker,et=I.marker||{},tt=et.symbol||Q.symbol,st={},ct=d(et.radius,Q&&Q.radius);_&&(V=Q.states[_],X=et.states&&et.states[_],ct=d(X&&X.radius,V&&V.radius,ct&&ct+(V&&V.radiusPlus||0))),I.hasImage=tt&&tt.indexOf("url")===0,I.hasImage&&(ct=0);var gt=I.pos();return s(ct)&&gt&&(st.x=gt[0]-ct,st.y=gt[1]-ct,H.crisp&&(st.x=Math.floor(st.x))),ct&&(st.width=st.height=2*ct),st},j.prototype.pointAttribs=function(I,_){var V,X,H,Q,et=this.options.marker,tt=I&&I.options,st=tt&&tt.marker||{},ct=tt&&tt.color,gt=I&&I.color,mt=I&&I.zone&&I.zone.color,bt=this.color,yt=d(st.lineWidth,et.lineWidth),dt=1;return bt=ct||mt||gt||bt,H=st.fillColor||et.fillColor||bt,Q=st.lineColor||et.lineColor||bt,(_=_||"normal")&&(V=et.states[_]||{},X=st.states&&st.states[_]||{},yt=d(X.lineWidth,V.lineWidth,yt+d(X.lineWidthPlus,V.lineWidthPlus,0)),H=X.fillColor||V.fillColor||H,Q=X.lineColor||V.lineColor||Q,dt=d(X.opacity,V.opacity,dt)),{stroke:Q,"stroke-width":yt,fill:H,opacity:dt}},j.prototype.destroy=function(I){var _,V,X,H=this,Q=H.chart,et=/AppleWebKit\/533/.test(y.navigator.userAgent),tt=H.data||[];for(i(H,"destroy",{keepEventsForUpdate:I}),this.removeEvents(I),(H.axisTypes||[]).forEach(function(st){(X=H[st])&&X.series&&(h(X.series,H),X.isDirty=X.forceRedraw=!0)}),H.legendItem&&H.chart.legend.destroyItem(H),_=tt.length;_--;)(V=tt[_])&&V.destroy&&V.destroy();H.clips&&H.clips.forEach(function(st){return st.destroy()}),E.clearTimeout(H.animationTimeout),O(H,function(st,ct){st instanceof D&&!st.survive&&st[et&&ct==="group"?"hide":"destroy"]()}),Q.hoverSeries===H&&(Q.hoverSeries=void 0),h(Q.series,H),Q.orderSeries(),O(H,function(st,ct){I&&ct==="hcEvents"||delete H[ct]})},j.prototype.applyZones=function(){var I,_,V,X,H,Q,et,tt,st,ct,gt,mt=this,bt=this.chart,yt=bt.renderer,dt=this.zones,ot=this.clips||[],ht=this.graph,ut=this.area,vt=Math.max(bt.plotWidth,bt.plotHeight),wt=this[(this.zoneAxis||"y")+"Axis"],xt=bt.inverted,Ct=!1;dt.length&&(ht||ut)&&wt&&wt.min!==void 0?(H=wt.reversed,Q=wt.horiz,ht&&!this.showLine&&ht.hide(),ut&&ut.hide(),X=wt.getExtremes(),dt.forEach(function(St,Mt){I=H?Q?bt.plotWidth:0:Q?0:wt.toPixels(X.min)||0,I=M(d(_,I),0,vt),_=M(Math.round(wt.toPixels(d(St.value,X.max),!0)||0),0,vt),Ct&&(I=_=wt.toPixels(X.max)),et=Math.abs(I-_),tt=Math.min(I,_),st=Math.max(I,_),wt.isXAxis?(V={x:xt?st:tt,y:0,width:et,height:vt},Q||(V.x=bt.plotHeight-V.x)):(V={x:0,y:xt?st:tt,width:vt,height:et},Q&&(V.y=bt.plotWidth-V.y)),xt&&yt.isVML&&(V=wt.isXAxis?{x:0,y:H?tt:st,height:V.width,width:bt.chartWidth}:{x:V.y-bt.plotLeft-bt.spacingBox.x,y:0,width:V.height,height:bt.chartHeight}),ot[Mt]?ot[Mt].animate(V):ot[Mt]=yt.clipRect(V),ct=mt["zone-area-"+Mt],gt=mt["zone-graph-"+Mt],ht&&gt&&gt.clip(ot[Mt]),ut&&ct&&ct.clip(ot[Mt]),Ct=St.value>X.max,mt.resetZones&&_===0&&(_=void 0)}),this.clips=ot):mt.visible&&(ht&&ht.show(),ut&&ut.show())},j.prototype.plotGroup=function(I,_,V,X,H){var Q=this[I],et=!Q,tt={visibility:V,zIndex:X||.1};return this.opacity===void 0||this.chart.styledMode||this.state==="inactive"||(tt.opacity=this.opacity),et&&(this[I]=Q=this.chart.renderer.g().add(H)),Q.addClass("highcharts-"+_+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(l(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(Q.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),Q.attr(tt)[et?"attr":"animate"](this.getPlotBox(_)),Q},j.prototype.getPlotBox=function(I){var _=this.xAxis,V=this.yAxis,X=this.chart,H=X.inverted&&!X.polar&&_&&this.invertible!==!1&&I==="series";return X.inverted&&(_=V,V=this.xAxis),{translateX:_?_.left:X.plotLeft,translateY:V?V.top:X.plotTop,rotation:H?90:0,rotationOriginX:H?(_.len-V.len)/2:0,rotationOriginY:H?(_.len+V.len)/2:0,scaleX:H?-1:1,scaleY:1}},j.prototype.removeEvents=function(I){var _=this;I||w(_),_.eventsToUnbind.length&&(_.eventsToUnbind.forEach(function(V){V()}),_.eventsToUnbind.length=0)},j.prototype.render=function(){var I=this,_=I.chart,V=I.options,X=x(V.animation),H=I.visible?"inherit":"hidden",Q=V.zIndex,et=I.hasRendered,tt=_.seriesGroup,st=!I.finishedAnimating&&_.renderer.isSVG?X.duration:0;i(this,"render"),I.plotGroup("group","series",H,Q,tt),I.markerGroup=I.plotGroup("markerGroup","markers",H,Q,tt),V.clip!==!1&&I.setClip(),I.animate&&st&&I.animate(!0),I.drawGraph&&(I.drawGraph(),I.applyZones()),I.visible&&I.drawPoints(),I.drawDataLabels&&I.drawDataLabels(),I.redrawPoints&&I.redrawPoints(),I.drawTracker&&I.options.enableMouseTracking!==!1&&I.drawTracker(),I.animate&&st&&I.animate(),et||(st&&X.defer&&(st+=X.defer),I.animationTimeout=z(function(){I.afterAnimate()},st||0)),I.isDirty=!1,I.hasRendered=!0,i(I,"afterRender")},j.prototype.redraw=function(){var I=this.isDirty||this.isDirtyData;this.translate(),this.render(),I&&delete this.kdTree},j.prototype.searchPoint=function(I,_){var V=this,X=V.xAxis,H=V.yAxis,Q=V.chart.inverted;return this.searchKDTree({clientX:Q?X.len-I.chartY+X.pos:I.chartX-X.pos,plotY:Q?H.len-I.chartX+H.pos:I.chartY-H.pos},_,I)},j.prototype.buildKDTree=function(I){this.buildingKdTree=!0;var _=this,V=_.options.findNearestPointBy.indexOf("y")>-1?2:1;function X(H,Q,et){var tt,st,ct=H&&H.length;if(ct)return tt=_.kdAxisArray[Q%et],H.sort(function(gt,mt){return gt[tt]-mt[tt]}),{point:H[st=Math.floor(ct/2)],left:X(H.slice(0,st),Q+1,et),right:X(H.slice(st+1),Q+1,et)}}delete _.kdTree,z(function(){_.kdTree=X(_.getValidPoints(null,!_.directTouch),V,V),_.buildingKdTree=!1},_.options.kdNow||I&&I.type==="touchstart"?0:1)},j.prototype.searchKDTree=function(I,_,V){var X=this,H=this.kdAxisArray[0],Q=this.kdAxisArray[1],et=_?"distX":"dist",tt=X.options.findNearestPointBy.indexOf("y")>-1?2:1;if(this.kdTree||this.buildingKdTree||this.buildKDTree(V),this.kdTree)return function st(ct,gt,mt,bt){var yt,dt,ot,ht,ut,vt,wt=gt.point,xt=X.kdAxisArray[mt%bt],Ct=wt;ht=wt,vt=((ut=l((ot=ct)[H])&&l(ht[H])?Math.pow(ot[H]-ht[H],2):null)||0)+((l(ot[Q])&&l(ht[Q])?Math.pow(ot[Q]-ht[Q],2):null)||0),ht.dist=l(vt)?Math.sqrt(vt):Number.MAX_VALUE,ht.distX=l(ut)?Math.sqrt(ut):Number.MAX_VALUE;var St=ct[xt]-wt[xt],Mt=St<0?"left":"right",Tt=St<0?"right":"left";return gt[Mt]&&(Ct=(yt=st(ct,gt[Mt],mt+1,bt))[et]<Ct[et]?yt:wt),gt[Tt]&&Math.sqrt(St*St)<Ct[et]&&(Ct=(dt=st(ct,gt[Tt],mt+1,bt))[et]<Ct[et]?dt:Ct),Ct}(I,this.kdTree,tt,tt)},j.prototype.pointPlacementToXValue=function(){var I=this.options,_=I.pointPlacement,V=I.pointRange,X=this.xAxis,H=_;return H==="between"&&(H=X.reversed?-.5:.5),s(H)?H*(V||X.pointRange):0},j.prototype.isPointInside=function(I){var _=this,V=_.chart,X=_.xAxis,H=_.yAxis;return I.plotY!==void 0&&I.plotX!==void 0&&I.plotY>=0&&I.plotY<=(H?H.len:V.plotHeight)&&I.plotX>=0&&I.plotX<=(X?X.len:V.plotWidth)},j.prototype.drawTracker=function(){var I=this,_=I.options,V=_.trackByArea,X=[].concat(V?I.areaPath:I.graphPath),H=I.chart,Q=H.pointer,et=H.renderer,tt=H.options.tooltip.snap,st=I.tracker,ct=function(mt){H.hoverSeries!==I&&I.onMouseOver()},gt="rgba(192,192,192,"+(v?1e-4:.002)+")";st?st.attr({d:X}):I.graph&&(I.tracker=et.path(X).attr({visibility:I.visible?"inherit":"hidden",zIndex:2}).addClass(V?"highcharts-tracker-area":"highcharts-tracker-line").add(I.group),H.styledMode||I.tracker.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:gt,fill:V?gt:"none","stroke-width":I.graph.strokeWidth()+(V?0:2*tt)}),[I.tracker,I.markerGroup,I.dataLabelsGroup].forEach(function(mt){mt&&(mt.addClass("highcharts-tracker").on("mouseover",ct).on("mouseout",function(bt){Q.onTrackerMouseOut(bt)}),_.cursor&&!H.styledMode&&mt.css({cursor:_.cursor}),g&&mt.on("touchstart",ct))})),i(this,"afterDrawTracker")},j.prototype.addPoint=function(I,_,V,X,H){var Q,et,tt=this,st=tt.options,ct=tt.data,gt=tt.chart,mt=tt.xAxis,bt=mt&&mt.hasNames&&mt.names,yt=st.data,dt=tt.xData;_=d(_,!0);var ot={series:tt};tt.pointClass.prototype.applyOptions.apply(ot,[I]);var ht=ot.x;if(et=dt.length,tt.requireSorting&&ht<dt[et-1])for(Q=!0;et&&dt[et-1]>ht;)et--;tt.updateParallelArrays(ot,"splice",et,0,0),tt.updateParallelArrays(ot,et),bt&&ot.name&&(bt[ht]=ot.name),yt.splice(et,0,I),(Q||tt.processedData)&&(tt.data.splice(et,0,null),tt.processData()),st.legendType==="point"&&tt.generatePoints(),V&&(ct[0]&&ct[0].remove?ct[0].remove(!1):(ct.shift(),tt.updateParallelArrays(ot,"shift"),yt.shift())),H!==!1&&i(tt,"addPoint",{point:ot}),tt.isDirty=!0,tt.isDirtyData=!0,_&&gt.redraw(X)},j.prototype.removePoint=function(I,_,V){var X=this,H=X.data,Q=H[I],et=X.points,tt=X.chart,st=function(){et&&et.length===H.length&&et.splice(I,1),H.splice(I,1),X.options.data.splice(I,1),X.updateParallelArrays(Q||{series:X},"splice",I,1),Q&&Q.destroy(),X.isDirty=!0,X.isDirtyData=!0,_&&tt.redraw()};T(V,tt),_=d(_,!0),Q?Q.firePointEvent("remove",null,st):st()},j.prototype.remove=function(I,_,V,X){var H=this,Q=H.chart;function et(){H.destroy(X),Q.isDirtyLegend=Q.isDirtyBox=!0,Q.linkSeries(),d(I,!0)&&Q.redraw(_)}V!==!1?i(H,"remove",null,et):et()},j.prototype.update=function(I,_){I=f(I,this.userOptions),i(this,"update",{options:I});var V,X,H=this,Q=H.chart,et=H.userOptions,tt=H.initialType||H.type,st=Q.options.plotOptions,ct=C[tt].prototype,gt=H.finishedAnimating&&{animation:!1},mt={},bt=["eventOptions","navigatorSeries","baseSeries"],yt=I.type||et.type||Q.options.chart.type,dt=!(this.hasDerivedData||yt&&yt!==this.type||I.pointStart!==void 0||I.pointInterval!==void 0||I.relativeXValue!==void 0||I.joinBy||I.mapData||H.hasOptionChanged("dataGrouping")||H.hasOptionChanged("pointStart")||H.hasOptionChanged("pointInterval")||H.hasOptionChanged("pointIntervalUnit")||H.hasOptionChanged("keys"));yt=yt||tt,dt&&(bt.push("data","isDirtyData","points","processedData","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","_hasPointLabels","clips","nodes","layout","level","mapMap","mapData","minY","maxY","minX","maxX"),I.visible!==!1&&bt.push("area","graph"),H.parallelArrays.forEach(function(Mt){bt.push(Mt+"Data")}),I.data&&(I.dataSorting&&r(H.options.dataSorting,I.dataSorting),this.setData(I.data,!1))),I=A(et,gt,{index:et.index===void 0?H.index:et.index,pointStart:d(st&&st.series&&st.series.pointStart,et.pointStart,H.xData[0])},!dt&&{data:H.options.data},I),dt&&I.data&&(I.data=H.options.data),(bt=["group","markerGroup","dataLabelsGroup","transformGroup","shadowGroup"].concat(bt)).forEach(function(Mt){bt[Mt]=H[Mt],delete H[Mt]});var ot=!1;if(C[yt]){if(ot=yt!==H.type,H.remove(!1,!1,!1,!0),ot)if(Object.setPrototypeOf)Object.setPrototypeOf(H,C[yt].prototype);else{var ht=Object.hasOwnProperty.call(H,"hcEvents")&&H.hcEvents;for(X in ct)H[X]=void 0;r(H,C[yt].prototype),ht?H.hcEvents=ht:delete H.hcEvents}}else e(17,!0,Q,{missingModuleFor:yt});if(bt.forEach(function(Mt){H[Mt]=bt[Mt]}),H.init(Q,I),dt&&this.points){if((V=H.options).visible===!1)mt.graphic=1,mt.dataLabel=1;else if(!H._hasPointLabels){var ut=V.marker,vt=V.dataLabels,wt=et.marker||{};!ut||ut.enabled!==!1&&wt.symbol===ut.symbol&&wt.height===ut.height&&wt.width===ut.width||(mt.graphic=1),vt&&vt.enabled===!1&&(mt.dataLabel=1)}for(var xt=0,Ct=this.points;xt<Ct.length;xt++){var St=Ct[xt];St&&St.series&&(St.resolveColor(),Object.keys(mt).length&&St.destroyElements(mt),V.showInLegend===!1&&St.legendItem&&Q.legend.destroyItem(St))}}H.initialType=tt,Q.linkSeries(),ot&&H.linkedSeries.length&&(H.isDirtyData=!0),i(this,"afterUpdate"),d(_,!0)&&Q.redraw(!!dt&&void 0)},j.prototype.setName=function(I){this.name=this.options.name=this.userOptions.name=I,this.chart.isDirtyLegend=!0},j.prototype.hasOptionChanged=function(I){var _=this.chart,V=this.options[I],X=_.options.plotOptions,H=this.userOptions[I];return H?V!==H:V!==d(X&&X[this.type]&&X[this.type][I],X&&X.series&&X.series[I],V)},j.prototype.onMouseOver=function(){var I=this,_=I.chart,V=_.hoverSeries;_.pointer.setHoverChartIndex(),V&&V!==I&&V.onMouseOut(),I.options.events.mouseOver&&i(I,"mouseOver"),I.setState("hover"),_.hoverSeries=I},j.prototype.onMouseOut=function(){var I=this,_=I.options,V=I.chart,X=V.tooltip,H=V.hoverPoint;V.hoverSeries=null,H&&H.onMouseOut(),I&&_.events.mouseOut&&i(I,"mouseOut"),!X||I.stickyTracking||X.shared&&!I.noSharedTooltip||X.hide(),V.series.forEach(function(Q){Q.setState("",!0)})},j.prototype.setState=function(I,_){var V,X=this,H=X.options,Q=X.graph,et=H.inactiveOtherPoints,tt=H.states,st=d(tt[I||"normal"]&&tt[I||"normal"].animation,X.chart.options.chart.animation),ct=H.lineWidth,gt=0,mt=H.opacity;if(I=I||"",X.state!==I&&([X.group,X.markerGroup,X.dataLabelsGroup].forEach(function(bt){bt&&(X.state&&bt.removeClass("highcharts-series-"+X.state),I&&bt.addClass("highcharts-series-"+I))}),X.state=I,!X.chart.styledMode)){if(tt[I]&&tt[I].enabled===!1)return;if(I&&(ct=tt[I].lineWidth||ct+(tt[I].lineWidthPlus||0),mt=d(tt[I].opacity,mt)),Q&&!Q.dashstyle&&s(ct))for(V={"stroke-width":ct},Q.animate(V,st);X["zone-graph-"+gt];)X["zone-graph-"+gt].animate(V,st),gt+=1;et||[X.group,X.markerGroup,X.dataLabelsGroup,X.labelBySeries].forEach(function(bt){bt&&bt.animate({opacity:mt},st)})}_&&et&&X.points&&X.setAllPointsToState(I||void 0)},j.prototype.setAllPointsToState=function(I){this.points.forEach(function(_){_.setState&&_.setState(I)})},j.prototype.setVisible=function(I,_){var V=this,X=V.chart,H=X.options.chart.ignoreHiddenSeries,Q=V.visible;V.visible=I=V.options.visible=V.userOptions.visible=I===void 0?!Q:I;var et=I?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(function(tt){V[tt]&&V[tt][et]()}),X.hoverSeries!==V&&(X.hoverPoint&&X.hoverPoint.series)!==V||V.onMouseOut(),V.legendItem&&X.legend.colorizeItem(V,I),V.isDirty=!0,V.options.stacking&&X.series.forEach(function(tt){tt.options.stacking&&tt.visible&&(tt.isDirty=!0)}),V.linkedSeries.forEach(function(tt){tt.setVisible(I,!1)}),H&&(X.isDirtyBox=!0),i(V,et),_!==!1&&X.redraw()},j.prototype.show=function(){this.setVisible(!0)},j.prototype.hide=function(){this.setVisible(!1)},j.prototype.select=function(I){var _=this;_.selected=I=this.options.selected=I===void 0?!_.selected:I,_.checkbox&&(_.checkbox.checked=I),i(_,I?"select":"unselect")},j.prototype.shouldShowTooltip=function(I,_,V){return V===void 0&&(V={}),V.series=this,V.visiblePlotOnly=!0,this.chart.isInsidePlot(I,_,V)},j.defaultOptions=$,j.types=G.seriesTypes,j.registerType=G.registerSeriesType,j}();return r(F.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,cropShoulder:1,directTouch:!1,drawLegendSymbol:Z.drawLineMarker,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:q,requireSorting:!0,sorted:!0}),G.series=F,F}),rt(N,"Extensions/ScrollablePlotArea.js",[N["Core/Animation/AnimationUtilities.js"],N["Core/Axis/Axis.js"],N["Core/Chart/Chart.js"],N["Core/Series/Series.js"],N["Core/Renderer/RendererRegistry.js"],N["Core/Utilities.js"]],function(W,R,U,Y,Z,q){var $=W.stop,G=q.addEvent,D=q.createElement,E=q.defined,x=q.merge,T=q.pick;G(U,"afterSetChartSize",function(u){var p,g,v,y=this.options.chart.scrollablePlotArea,C=y&&y.minWidth,P=y&&y.minHeight;this.renderer.forExport||(C?(this.scrollablePixelsX=p=Math.max(0,C-this.chartWidth),p&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=x(this.plotBox),this.plotBox.width=this.plotWidth+=p,this.inverted?this.clipBox.height+=p:this.clipBox.width+=p,v={1:{name:"right",value:p}})):P&&(this.scrollablePixelsY=g=Math.max(0,P-this.chartHeight),E(g)&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=x(this.plotBox),this.plotBox.height=this.plotHeight+=g,this.inverted?this.clipBox.width+=g:this.clipBox.height+=g,v={2:{name:"bottom",value:g}})),v&&!u.skipAxes&&this.axes.forEach(function(L){v[L.side]?L.getPlotLinePath=function(){var M,f=v[L.side].name,b=v[L.side].value,l=this[f];return this[f]=l-b,M=R.prototype.getPlotLinePath.apply(this,arguments),this[f]=l,M}:(L.setAxisSize(),L.setAxisTranslation())}))}),G(U,"render",function(){this.scrollablePixelsX||this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()}),U.prototype.setUpScrolling=function(){var u,p=this,g={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(g.overflowX="auto"),this.scrollablePixelsY&&(g.overflowY="auto"),this.scrollingParent=D("div",{className:"highcharts-scrolling-parent"},{position:"relative"},this.renderTo),this.scrollingContainer=D("div",{className:"highcharts-scrolling"},g,this.scrollingParent),G(this.scrollingContainer,"scroll",function(){p.pointer&&(delete p.pointer.chartPosition,p.hoverPoint&&(u=p.hoverPoint),p.pointer.runPointActions(void 0,u,!0))}),this.innerContainer=D("div",{className:"highcharts-inner-container"},null,this.scrollingContainer),this.innerContainer.appendChild(this.container),this.setUpScrolling=null},U.prototype.moveFixedElements=function(){var u,p=this.container,g=this.fixedRenderer,v=[".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?u=".highcharts-yaxis":this.scrollablePixelsX&&this.inverted||this.scrollablePixelsY&&!this.inverted?u=".highcharts-xaxis":this.scrollablePixelsY&&this.inverted&&(u=".highcharts-yaxis"),u&&v.push(u+":not(.highcharts-radial-axis)",u+"-labels:not(.highcharts-radial-axis-labels)"),v.forEach(function(y){[].forEach.call(p.querySelectorAll(y),function(C){(C.namespaceURI===g.SVG_NS?g.box:g.box.parentNode).appendChild(C),C.style.pointerEvents="auto"})})},U.prototype.applyFixed=function(){var u,p,g,v=!this.fixedDiv,y=this.options.chart,C=y.scrollablePlotArea,P=Z.getRendererType();v?(this.fixedDiv=D("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(y.style&&y.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=u=new P(this.fixedDiv,this.chartWidth,this.chartHeight,this.options.chart.style),this.scrollableMask=u.path().attr({fill:this.options.chart.backgroundColor||"#fff","fill-opacity":T(C.opacity,.85),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),G(this,"afterShowResetZoom",this.moveFixedElements),G(this,"afterApplyDrilldown",this.moveFixedElements),G(this,"afterLayOutTitles",this.moveFixedElements)):this.fixedRenderer.setSize(this.chartWidth,this.chartHeight),(this.scrollableDirty||v)&&(this.scrollableDirty=!1,this.moveFixedElements()),p=this.chartWidth+(this.scrollablePixelsX||0),g=this.chartHeight+(this.scrollablePixelsY||0),$(this.container),this.container.style.width=p+"px",this.container.style.height=g+"px",this.renderer.boxWrapper.attr({width:p,height:g,viewBox:[0,0,p,g].join(" ")}),this.chartBackground.attr({width:p,height:g}),this.scrollingContainer.style.height=this.chartHeight+"px",v&&(C.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*C.scrollPositionX),C.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY*C.scrollPositionY));var L,M=this.axisOffset,f=this.plotTop-M[0]-1,b=this.plotLeft-M[3]-1,l=this.plotTop+this.plotHeight+M[2]+1,h=this.plotLeft+this.plotWidth+M[1]+1,e=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),r=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0);L=this.scrollablePixelsX?[["M",0,f],["L",this.plotLeft-1,f],["L",this.plotLeft-1,l],["L",0,l],["Z"],["M",e,f],["L",this.chartWidth,f],["L",this.chartWidth,l],["L",e,l],["Z"]]:this.scrollablePixelsY?[["M",b,0],["L",b,this.plotTop-1],["L",h,this.plotTop-1],["L",h,0],["Z"],["M",b,r],["L",b,this.chartHeight],["L",h,this.chartHeight],["L",h,r],["Z"]]:[["M",0,0]],this.redrawTrigger!=="adjustHeight"&&this.scrollableMask.attr({d:L})},G(R,"afterInit",function(){this.chart.scrollableDirty=!0}),G(Y,"show",function(){this.chart.scrollableDirty=!0})}),rt(N,"Core/Axis/Stacking/StackItem.js",[N["Core/FormatUtilities.js"],N["Core/Series/SeriesRegistry.js"],N["Core/Utilities.js"]],function(W,R,U){var Y=W.format,Z=R.series,q=U.destroyObjectProperties,$=U.pick,G=U.isNumber;return function(){function D(E,x,T,u,p){var g=E.chart.inverted,v=E.reversed;this.axis=E;var y=this.isNegative=!!T!=!!v;this.options=x=x||{},this.x=u,this.total=null,this.cumulative=null,this.points={},this.hasValidPoints=!1,this.stack=p,this.leftCliff=0,this.rightCliff=0,this.alignOptions={align:x.align||(g?y?"left":"right":"center"),verticalAlign:x.verticalAlign||(g?"middle":y?"bottom":"top"),y:x.y,x:x.x},this.textAlign=x.textAlign||(g?y?"right":"left":"center")}return D.prototype.destroy=function(){q(this,this.axis)},D.prototype.render=function(E){var x=this.axis.chart,T=this.options,u=T.format,p=u?Y(u,this,x):T.formatter.call(this);if(this.label)this.label.attr({text:p,visibility:"hidden"});else{this.label=x.renderer.label(p,null,void 0,T.shape,void 0,void 0,T.useHTML,!1,"stack-labels");var g={r:T.borderRadius||0,text:p,padding:$(T.padding,5),visibility:"hidden"};x.styledMode||(g.fill=T.backgroundColor,g.stroke=T.borderColor,g["stroke-width"]=T.borderWidth,this.label.css(T.style||{})),this.label.attr(g),this.label.added||this.label.add(E)}this.label.labelrank=x.plotSizeY},D.prototype.setOffset=function(E,x,T,u,p,g){var v=this,y=v.alignOptions,C=v.axis,P=v.label,L=v.options,M=v.textAlign,f=C.chart,b=this.getStackBox({xOffset:E,width:x,boxBottom:T,boxTop:u,defaultX:p,xAxis:g}),l=y.verticalAlign;if(P&&b){var h=P.getBBox(),e=P.padding,r=$(L.overflow,"justify")==="justify",o=void 0;y.x=L.x||0,y.y=L.y||0;var i=this.adjustStackPosition({labelBox:h,verticalAlign:l,textAlign:M}),c=i.x,a=i.y;b.x-=c,b.y-=a,P.align(y,!1,b),(o=f.isInsidePlot(P.alignAttr.x+y.x+c,P.alignAttr.y+y.y+a))||(r=!1),r&&Z.prototype.justifyDataLabel.call(C,P,y,P.alignAttr,h,b),P.attr({x:P.alignAttr.x,y:P.alignAttr.y,rotation:L.rotation,rotationOriginX:h.width/2,rotationOriginY:h.height/2}),$(!r&&L.crop,!0)&&(o=G(P.x)&&G(P.y)&&f.isInsidePlot(P.x-e+P.width,P.y)&&f.isInsidePlot(P.x+e,P.y)),P[o?"show":"hide"]()}},D.prototype.adjustStackPosition=function(E){var x=E.labelBox,T=E.verticalAlign,u=E.textAlign,p={bottom:0,middle:1,top:2,right:1,center:0,left:-1},g=p[T],v=p[u];return{x:x.width/2+x.width/2*v,y:x.height/2*g}},D.prototype.getStackBox=function(E){var x=this.axis,T=x.chart,u=E.boxTop,p=E.defaultX,g=E.xOffset,v=E.width,y=E.boxBottom,C=x.stacking.usePercentage?100:$(u,this.total,0),P=x.toPixels(C),L=E.xAxis||T.xAxis[0],M=$(p,L.toPixels(this.x))+g,f=x.toPixels(y||0),b=Math.abs(P-f),l=T.inverted,h=this.isNegative;return l?{x:(h?P:P-b)-T.plotLeft,y:M-T.plotTop,width:b,height:v}:{x:M-T.plotLeft,y:(h?P-b:P)-T.plotTop,width:v,height:b}},D}()}),rt(N,"Core/Axis/Stacking/StackingAxis.js",[N["Core/Animation/AnimationUtilities.js"],N["Core/Axis/Axis.js"],N["Core/Series/SeriesRegistry.js"],N["Core/Axis/Stacking/StackItem.js"],N["Core/Utilities.js"]],function(W,R,U,Y,Z){var q=W.getDeferredAnimation,$=U.series.prototype,G=Z.addEvent,D=Z.correctFloat,E=Z.defined,x=Z.destroyObjectProperties,T=Z.fireEvent,u=Z.isArray,p=Z.isNumber,g=Z.objectEach,v=Z.pick;function y(){var r=this,o=r.inverted;r.yAxis.forEach(function(i){i.stacking&&i.stacking.stacks&&i.hasVisibleSeries&&(i.stacking.oldStacks=i.stacking.stacks)}),r.series.forEach(function(i){var c=i.xAxis&&i.xAxis.options||{};!i.options.stacking||i.visible!==!0&&r.options.chart.ignoreHiddenSeries!==!1||(i.stackKey=[i.type,v(i.options.stack,""),o?c.top:c.left,o?c.height:c.width].join(","))})}function C(){var r=this.stacking;if(r){var o=r.stacks;g(o,function(i,c){x(i),o[c]=null}),r&&r.stackTotalGroup&&r.stackTotalGroup.destroy()}}function P(){this.coll!=="yAxis"||this.stacking||(this.stacking=new e(this))}function L(r,o,i,c){return!E(r)||r.x!==o||c&&r.stackKey!==c?r={x:o,index:0,key:c,stackKey:c}:r.index++,r.key=[i,o,r.index].join(","),r}function M(){var r,o=this,i=o.yAxis,c=o.stackKey,a=i.stacking.stacks,s=o.processedXData,m=o.options.stacking,A=o[m+"Stacker"];A&&[c,"-"+c].forEach(function(O){for(var d,w,k,z=s.length;z--;)d=s[z],r=o.getStackIndicator(r,d,o.index,O),(k=(w=a[O]&&a[O][d])&&w.points[r.key])&&A.call(o,k,w,z)})}function f(r,o,i){var c=o.total?100/o.total:0;r[0]=D(r[0]*c),r[1]=D(r[1]*c),this.stackedYData[i]=r[1]}function b(){var r=this.yAxis.stacking;this.options.centerInCategory&&(this.is("column")||this.is("columnrange"))&&!this.options.stacking&&this.chart.series.length>1?$.setStackedPoints.call(this,"group"):r&&g(r.stacks,function(o,i){i.slice(-5)==="group"&&(g(o,function(c){return c.destroy()}),delete r.stacks[i])})}function l(r){var o=this.chart,i=r||this.options.stacking;if(i&&(this.visible===!0||o.options.chart.ignoreHiddenSeries===!1)){var c,a,s,m,A,O,d,w,k,z=this,F=z.processedXData,j=z.processedYData,I=[],_=j.length,V=z.options,X=V.threshold,H=v(V.startFromThreshold&&X,0),Q=V.stack,et=r?""+z.type+",".concat(i):z.stackKey,tt="-"+et,st=z.negStacks,ct=i==="group"?o.yAxis[0]:z.yAxis,gt=ct.stacking.stacks,mt=ct.stacking.oldStacks;for(ct.stacking.stacksTouched+=1,d=0;d<_;d++)w=F[d],k=j[d],O=(c=z.getStackIndicator(c,w,z.index)).key,gt[A=(a=st&&k<(H?0:X))?tt:et]||(gt[A]={}),gt[A][w]||(mt[A]&&mt[A][w]?(gt[A][w]=mt[A][w],gt[A][w].total=null):gt[A][w]=new Y(ct,ct.options.stackLabels,!!a,w,Q)),s=gt[A][w],k!==null?(s.points[O]=s.points[z.index]=[v(s.cumulative,H)],E(s.cumulative)||(s.base=O),s.touched=ct.stacking.stacksTouched,c.index>0&&z.singleStacks===!1&&(s.points[O][0]=s.points[z.index+","+w+",0"][0])):s.points[O]=s.points[z.index]=null,i==="percent"?(m=a?et:tt,st&&gt[m]&&gt[m][w]?(m=gt[m][w],s.total=m.total=Math.max(m.total,s.total)+Math.abs(k)||0):s.total=D(s.total+(Math.abs(k)||0))):i==="group"?(u(k)&&(k=k[0]),k!==null&&(s.total=(s.total||0)+1)):s.total=D(s.total+(k||0)),s.cumulative=i==="group"?(s.total||1)-1:v(s.cumulative,H)+(k||0),k!==null&&(s.points[O].push(s.cumulative),I[d]=s.cumulative,s.hasValidPoints=!0);i==="percent"&&(ct.stacking.usePercentage=!0),i!=="group"&&(this.stackedYData=I),ct.stacking.oldStacks={}}}var h,e=function(){function r(o){this.oldStacks={},this.stacks={},this.stacksTouched=0,this.axis=o}return r.prototype.buildStacks=function(){var o,i,c=this.axis,a=c.series,s=c.options.reversedStacks,m=a.length;for(this.usePercentage=!1,i=m;i--;)(o=a[s?i:m-i-1]).setStackedPoints(),o.setGroupedPoints();for(i=0;i<m;i++)a[i].modifyStacks();T(c,"afterBuildStacks")},r.prototype.cleanStacks=function(){var o,i=this;i.oldStacks&&(o=i.stacks=i.oldStacks),g(o,function(c){g(c,function(a){a.cumulative=a.total})})},r.prototype.resetStacks=function(){var o=this;g(this.stacks,function(i){g(i,function(c,a){p(c.touched)&&c.touched<o.stacksTouched?(c.destroy(),delete i[a]):(c.total=null,c.cumulative=null)})})},r.prototype.renderStackTotals=function(){var o=this,i=o.axis,c=i.chart,a=c.renderer,s=o.stacks,m=i.options.stackLabels&&i.options.stackLabels.animation,A=q(c,m||!1),O=o.stackTotalGroup=o.stackTotalGroup||a.g("stack-labels").attr({zIndex:6,opacity:0}).add();O.translate(c.plotLeft,c.plotTop),g(s,function(d){g(d,function(w){w.render(O)})}),O.animate({opacity:1},A)},r}();return function(r){var o=[];r.compose=function(i,c,a){if(o.indexOf(i)===-1&&(o.push(i),G(i,"init",P),G(i,"destroy",C)),o.indexOf(c)===-1&&(o.push(c),c.prototype.getStacks=y),o.indexOf(a)===-1){o.push(a);var s=a.prototype;s.getStackIndicator=L,s.modifyStacks=M,s.percentStacker=f,s.setGroupedPoints=b,s.setStackedPoints=l}}}(h||(h={})),h}),rt(N,"Series/Line/LineSeries.js",[N["Core/Series/Series.js"],N["Core/Series/SeriesRegistry.js"],N["Core/Utilities.js"]],function(W,R,U){var Y,Z=this&&this.__extends||(Y=function(D,E){return Y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,T){x.__proto__=T}||function(x,T){for(var u in T)T.hasOwnProperty(u)&&(x[u]=T[u])},Y(D,E)},function(D,E){function x(){this.constructor=D}Y(D,E),D.prototype=E===null?Object.create(E):(x.prototype=E.prototype,new x)}),q=U.defined,$=U.merge,G=function(D){function E(){var x=D!==null&&D.apply(this,arguments)||this;return x.data=void 0,x.options=void 0,x.points=void 0,x}return Z(E,D),E.prototype.drawGraph=function(){var x=this,T=this.options,u=(this.gappedPath||this.getGraphPath).call(this),p=this.chart.styledMode,g=[["graph","highcharts-graph"]];p||g[0].push(T.lineColor||this.color||"#cccccc",T.dashStyle),(g=x.getZonesGraphs(g)).forEach(function(v,y){var C,P=v[0],L=x[P],M=L?"animate":"attr";L?(L.endX=x.preventGraphAnimation?null:u.xMap,L.animate({d:u})):u.length&&(x[P]=L=x.chart.renderer.path(u).addClass(v[1]).attr({zIndex:1}).add(x.group)),L&&!p&&(C={stroke:v[2],"stroke-width":T.lineWidth||0,fill:x.fillGraph&&x.color||"none"},v[3]?C.dashstyle=v[3]:T.linecap!=="square"&&(C["stroke-linecap"]=C["stroke-linejoin"]="round"),L[M](C).shadow(y<2&&T.shadow)),L&&(L.startX=u.xMap,L.isArea=u.isArea)})},E.prototype.getGraphPath=function(x,T,u){var p,g=this,v=g.options,y=[],C=[],P=v.step,L=(x=x||g.points).reversed;return L&&x.reverse(),(P={right:1,center:2}[P]||P&&3)&&L&&(P=4-P),(x=this.getValidPoints(x,!1,!(v.connectNulls&&!T&&!u))).forEach(function(M,f){var b,l=M.plotX,h=M.plotY,e=x[f-1];(M.leftCliff||e&&e.rightCliff)&&!u&&(p=!0),M.isNull&&!q(T)&&f>0?p=!v.connectNulls:M.isNull&&!T?p=!0:(f===0||p?b=[["M",M.plotX,M.plotY]]:g.getPointSpline?b=[g.getPointSpline(x,M,f)]:P?(b=P===1?[["L",e.plotX,h]]:P===2?[["L",(e.plotX+l)/2,e.plotY],["L",(e.plotX+l)/2,h]]:[["L",l,e.plotY]]).push(["L",l,h]):b=[["L",l,h]],C.push(M.x),P&&(C.push(M.x),P===2&&C.push(M.x)),y.push.apply(y,b),p=!1)}),y.xMap=C,g.graphPath=y,y},E.prototype.getZonesGraphs=function(x){return this.zones.forEach(function(T,u){var p=["zone-graph-"+u,"highcharts-graph highcharts-zone-graph-"+u+" "+(T.className||"")];this.chart.styledMode||p.push(T.color||this.color,T.dashStyle||this.options.dashStyle),x.push(p)},this),x},E.defaultOptions=$(W.defaultOptions,{}),E}(W);return R.registerSeriesType("line",G),G}),rt(N,"Series/Area/AreaSeries.js",[N["Core/Color/Color.js"],N["Core/Legend/LegendSymbol.js"],N["Core/Series/SeriesRegistry.js"],N["Core/Utilities.js"]],function(W,R,U,Y){var Z,q=this&&this.__extends||(Z=function(p,g){return Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,y){v.__proto__=y}||function(v,y){for(var C in y)y.hasOwnProperty(C)&&(v[C]=y[C])},Z(p,g)},function(p,g){function v(){this.constructor=p}Z(p,g),p.prototype=g===null?Object.create(g):(v.prototype=g.prototype,new v)}),$=W.parse,G=U.seriesTypes.line,D=Y.extend,E=Y.merge,x=Y.objectEach,T=Y.pick,u=function(p){function g(){var v=p!==null&&p.apply(this,arguments)||this;return v.data=void 0,v.options=void 0,v.points=void 0,v}return q(g,p),g.prototype.drawGraph=function(){this.areaPath=[],p.prototype.drawGraph.apply(this);var v=this,y=this.areaPath,C=this.options,P=this.zones,L=[["area","highcharts-area",this.color,C.fillColor]];P.forEach(function(M,f){L.push(["zone-area-"+f,"highcharts-area highcharts-zone-area-"+f+" "+M.className,M.color||v.color,M.fillColor||C.fillColor])}),L.forEach(function(M){var f=M[0],b={},l=v[f],h=l?"animate":"attr";l?(l.endX=v.preventGraphAnimation?null:y.xMap,l.animate({d:y})):(b.zIndex=0,(l=v[f]=v.chart.renderer.path(y).addClass(M[1]).add(v.group)).isArea=!0),v.chart.styledMode||(b.fill=T(M[3],$(M[2]).setOpacity(T(C.fillOpacity,.75)).get())),l[h](b),l.startX=y.xMap,l.shiftUnit=C.step?2:1})},g.prototype.getGraphPath=function(v){var y,C,P,L=G.prototype.getGraphPath,M=this.options,f=M.stacking,b=this.yAxis,l=[],h=[],e=this.index,r=b.stacking.stacks[this.stackKey],o=M.threshold,i=Math.round(b.getThreshold(M.threshold)),c=T(M.connectNulls,f==="percent"),a=function(z,F,j){var I,_,V=v[z],X=f&&r[V.x].points[e],H=V[j+"Null"]||0,Q=V[j+"Cliff"]||0,et=!0;Q||H?(I=(H?X[0]:X[1])+Q,_=X[0]+Q,et=!!H):!f&&v[F]&&v[F].isNull&&(I=_=o),I!==void 0&&(h.push({plotX:y,plotY:I===null?i:b.getThreshold(I),isNull:et,isCliff:!0}),l.push({plotX:y,plotY:_===null?i:b.getThreshold(_),doCurve:!1}))};v=v||this.points,f&&(v=this.getStackPoints(v));for(var s=0,m=v.length;s<m;++s)f||(v[s].leftCliff=v[s].rightCliff=v[s].leftNull=v[s].rightNull=void 0),C=v[s].isNull,y=T(v[s].rectPlotX,v[s].plotX),P=f?T(v[s].yBottom,i):i,C&&!c||(c||a(s,s-1,"left"),C&&!f&&c||(h.push(v[s]),l.push({x:s,plotX:y,plotY:P})),c||a(s,s+1,"right"));var A=L.call(this,h,!0,!0);l.reversed=!0;var O=L.call(this,l,!0,!0),d=O[0];d&&d[0]==="M"&&(O[0]=["L",d[1],d[2]]);var w=A.concat(O);w.length&&w.push(["Z"]);var k=L.call(this,h,!1,c);return w.xMap=A.xMap,this.areaPath=w,k},g.prototype.getStackPoints=function(v){var y=this,C=[],P=[],L=this.xAxis,M=this.yAxis,f=M.stacking.stacks[this.stackKey],b={},l=M.series,h=l.length,e=M.options.reversedStacks?1:-1,r=l.indexOf(y);if(v=v||this.points,this.options.stacking){for(var o=0;o<v.length;o++)v[o].leftNull=v[o].rightNull=void 0,b[v[o].x]=v[o];x(f,function(c,a){c.total!==null&&P.push(a)}),P.sort(function(c,a){return c-a});var i=l.map(function(c){return c.visible});P.forEach(function(c,a){var s,m,A=0;if(b[c]&&!b[c].isNull)C.push(b[c]),[-1,1].forEach(function(w){var k=w===1?"rightNull":"leftNull",z=w===1?"rightCliff":"leftCliff",F=f[P[a+w]],j=0;if(F)for(var I=r;I>=0&&I<h;){var _=l[I].index;(s=F.points[_])||(_===y.index?b[c][k]=!0:i[I]&&(m=f[c].points[_])&&(j-=m[1]-m[0])),I+=e}b[c][z]=j});else{for(var O=r;O>=0&&O<h;){var d=l[O].index;if(s=f[c].points[d]){A=s[1];break}O+=e}A=T(A,0),A=M.translate(A,0,1,0,1),C.push({isNull:!0,plotX:L.translate(c,0,0,0,1),x:c,plotY:A,yBottom:A})}})}return C},g.defaultOptions=E(G.defaultOptions,{threshold:0}),g}(G);return D(u.prototype,{singleStacks:!1,drawLegendSymbol:R.drawRectangle}),U.registerSeriesType("area",u),u}),rt(N,"Series/Spline/SplineSeries.js",[N["Core/Series/SeriesRegistry.js"],N["Core/Utilities.js"]],function(W,R){var U,Y=this&&this.__extends||(U=function(D,E){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,T){x.__proto__=T}||function(x,T){for(var u in T)T.hasOwnProperty(u)&&(x[u]=T[u])},U(D,E)},function(D,E){function x(){this.constructor=D}U(D,E),D.prototype=E===null?Object.create(E):(x.prototype=E.prototype,new x)}),Z=W.seriesTypes.line,q=R.merge,$=R.pick,G=function(D){function E(){var x=D!==null&&D.apply(this,arguments)||this;return x.data=void 0,x.options=void 0,x.points=void 0,x}return Y(E,D),E.prototype.getPointSpline=function(x,T,u){var p,g,v,y,C=1.5,P=2.5,L=T.plotX||0,M=T.plotY||0,f=x[u-1],b=x[u+1];function l(a){return a&&!a.isNull&&a.doCurve!==!1&&!T.isCliff}if(l(f)&&l(b)){var h=f.plotX||0,e=f.plotY||0,r=b.plotX||0,o=b.plotY||0,i=0;g=(C*M+e)/P,y=(C*M+o)/P,(v=(C*L+r)/P)!=(p=(C*L+h)/P)&&(i=(y-g)*(v-L)/(v-p)+M-y),y+=i,(g+=i)>e&&g>M?y=2*M-(g=Math.max(e,M)):g<e&&g<M&&(y=2*M-(g=Math.min(e,M))),y>o&&y>M?g=2*M-(y=Math.max(o,M)):y<o&&y<M&&(g=2*M-(y=Math.min(o,M))),T.rightContX=v,T.rightContY=y}var c=["C",$(f.rightContX,f.plotX,0),$(f.rightContY,f.plotY,0),$(p,L,0),$(g,M,0),L,M];return f.rightContX=f.rightContY=void 0,c},E.defaultOptions=q(Z.defaultOptions),E}(Z);return W.registerSeriesType("spline",G),G}),rt(N,"Series/AreaSpline/AreaSplineSeries.js",[N["Series/Spline/SplineSeries.js"],N["Core/Legend/LegendSymbol.js"],N["Core/Series/SeriesRegistry.js"],N["Core/Utilities.js"]],function(W,R,U,Y){var Z,q=this&&this.__extends||(Z=function(u,p){return Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,v){g.__proto__=v}||function(g,v){for(var y in v)v.hasOwnProperty(y)&&(g[y]=v[y])},Z(u,p)},function(u,p){function g(){this.constructor=u}Z(u,p),u.prototype=p===null?Object.create(p):(g.prototype=p.prototype,new g)}),$=U.seriesTypes,G=$.area,D=$.area.prototype,E=Y.extend,x=Y.merge,T=function(u){function p(){var g=u!==null&&u.apply(this,arguments)||this;return g.data=void 0,g.points=void 0,g.options=void 0,g}return q(p,u),p.defaultOptions=x(W.defaultOptions,G.defaultOptions),p}(W);return E(T.prototype,{getGraphPath:D.getGraphPath,getStackPoints:D.getStackPoints,drawGraph:D.drawGraph,drawLegendSymbol:R.drawRectangle}),U.registerSeriesType("areaspline",T),T}),rt(N,"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"}}),rt(N,"Series/Column/ColumnSeries.js",[N["Core/Animation/AnimationUtilities.js"],N["Core/Color/Color.js"],N["Series/Column/ColumnSeriesDefaults.js"],N["Core/Globals.js"],N["Core/Legend/LegendSymbol.js"],N["Core/Series/Series.js"],N["Core/Series/SeriesRegistry.js"],N["Core/Utilities.js"]],function(W,R,U,Y,Z,q,$,G){var D,E=this&&this.__extends||(D=function(h,e){return D=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])},D(h,e)},function(h,e){function r(){this.constructor=h}D(h,e),h.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}),x=W.animObject,T=R.parse,u=Y.hasTouch,p=Y.noop,g=G.clamp,v=G.defined,y=G.extend,C=G.fireEvent,P=G.isArray,L=G.isNumber,M=G.merge,f=G.pick,b=G.objectEach,l=function(h){function e(){var r=h!==null&&h.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 E(e,h),e.prototype.animate=function(r){var o,i,c=this,a=this.yAxis,s=c.options,m=this.chart.inverted,A={},O=m?"translateX":"translateY";r?(A.scaleY=.001,i=g(a.toPixels(s.threshold),a.pos,a.pos+a.len),m?A.translateX=i-a.len:A.translateY=i,c.clipBox&&c.setClip(),c.group.attr(A)):(o=Number(c.group.attr(O)),c.group.animate({scaleY:1},y(x(c.options.animation),{step:function(d,w){c.group&&(A[O]=o+w.pos*(a.pos-o),c.group.attr(A))}})))},e.prototype.init=function(r,o){h.prototype.init.apply(this,arguments);var i=this;(r=i.chart).hasRendered&&r.series.forEach(function(c){c.type===i.type&&(c.isDirty=!0)})},e.prototype.getColumnMetrics=function(){var r,o=this,i=o.options,c=o.xAxis,a=o.yAxis,s=c.options.reversedStacks,m=c.reversed&&!s||!c.reversed&&s,A={},O=0;i.grouping===!1?O=1:o.chart.series.forEach(function(j){var I,_=j.yAxis,V=j.options;j.type!==o.type||!j.visible&&o.chart.options.chart.ignoreHiddenSeries||a.len!==_.len||a.pos!==_.pos||(V.stacking&&V.stacking!=="group"?(r=j.stackKey,A[r]===void 0&&(A[r]=O++),I=A[r]):V.grouping!==!1&&(I=O++),j.columnIndex=I)});var d=Math.min(Math.abs(c.transA)*(c.ordinal&&c.ordinal.slope||i.pointRange||c.closestPointRange||c.tickInterval||1),c.len),w=d*i.groupPadding,k=(d-2*w)/(O||1),z=Math.min(i.maxPointWidth||c.len,f(i.pointWidth,k*(1-2*i.pointPadding))),F=(k-z)/2+(w+((o.columnIndex||0)+(m?1:0))*k-d/2)*(m?-1:1);return o.columnMetrics={width:z,offset:F,paddedWidth:k,columnCount:O},o.columnMetrics},e.prototype.crispCol=function(r,o,i,c){var a=this.chart,s=this.borderWidth,m=-(s%2?.5:0),A=s%2?.5:1;a.inverted&&a.renderer.isVML&&(A+=1),this.options.crisp&&(i=Math.round(r+i)+m-(r=Math.round(r)+m));var O=Math.round(o+c)+A,d=Math.abs(o)<=.5&&O>.5;return c=O-(o=Math.round(o)+A),d&&c&&(o-=1,c+=1),{x:r,y:o,width:i,height:c}},e.prototype.adjustForMissingColumns=function(r,o,i,c){var a=this,s=this.options.stacking;if(!i.isNull&&c.columnCount>1){var m=this.yAxis.options.reversedStacks,A=0,O=m?0:-c.columnCount;b(this.yAxis.stacking&&this.yAxis.stacking.stacks,function(w){if(typeof i.x=="number"){var k=w[i.x.toString()];if(k){var z=k.points[a.index];if(s)z&&(A=O),k.hasValidPoints&&(m?O++:O--);else if(P(z)){var F=Object.keys(k.points).filter(function(j){return!j.match(",")&&k.points[j]&&k.points[j].length>1}).map(parseFloat).sort(function(j,I){return I-j});A=F.indexOf(a.index),O=F.length}}}});var d=(O-1)*c.paddedWidth+o;r=(i.plotX||0)+d/2-o-A*c.paddedWidth}return r},e.prototype.translate=function(){var r=this,o=r.chart,i=r.options,c=r.dense=r.closestPointRange*r.xAxis.transA<2,a=r.borderWidth=f(i.borderWidth,c?0:1),s=r.xAxis,m=r.yAxis,A=i.threshold,O=r.translatedThreshold=m.getThreshold(A),d=f(i.minPointLength,5),w=r.getColumnMetrics(),k=w.width,z=r.pointXOffset=w.offset,F=r.dataMin,j=r.dataMax,I=r.barW=Math.max(k,1+2*a);o.inverted&&(O-=.5),i.pointPadding&&(I=Math.ceil(I)),q.prototype.translate.apply(r),r.points.forEach(function(_){var V,X=f(_.yBottom,O),H=999+Math.abs(X),Q=_.plotX||0,et=g(_.plotY,-H,m.len+H),tt=Math.min(et,X),st=Math.max(et,X)-tt,ct=k,gt=Q+z,mt=I;d&&Math.abs(st)<d&&(st=d,V=!m.reversed&&!_.negative||m.reversed&&_.negative,L(A)&&L(j)&&_.y===A&&j<=A&&(m.min||0)<A&&(F!==j||(m.max||0)<=A)&&(V=!V),tt=Math.abs(tt-O)>d?X-d:O-(V?d:0)),v(_.options.pointWidth)&&(ct=mt=Math.ceil(_.options.pointWidth),gt-=Math.round((ct-k)/2)),i.centerInCategory&&(gt=r.adjustForMissingColumns(gt,ct,_,w)),_.barX=gt,_.pointWidth=ct,_.tooltipPos=o.inverted?[g(m.len+m.pos-o.plotLeft-et,m.pos-o.plotLeft,m.len+m.pos-o.plotLeft),s.len+s.pos-o.plotTop-gt-mt/2,st]:[s.left-o.plotLeft+gt+mt/2,g(et+m.pos-o.plotTop,m.pos-o.plotTop,m.len+m.pos-o.plotTop),st],_.shapeType=r.pointClass.prototype.shapeType||"rect",_.shapeArgs=r.crispCol.apply(r,_.isNull?[gt,O,mt,0]:[gt,tt,mt,st])})},e.prototype.drawGraph=function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")},e.prototype.pointAttribs=function(r,o){var i,c,a,s=this.options,m=this.pointAttrToOptions||{},A=m.stroke||"borderColor",O=m["stroke-width"]||"borderWidth",d=r&&r.color||this.color,w=r&&r[A]||s[A]||d,k=r&&r.options.dashStyle||s.dashStyle,z=r&&r[O]||s[O]||this[O]||0,F=f(r&&r.opacity,s.opacity,1);r&&this.zones.length&&(c=r.getZone(),d=r.options.color||c&&(c.color||r.nonZonedColor)||this.color,c&&(w=c.borderColor||w,k=c.dashStyle||k,z=c.borderWidth||z)),o&&r&&(a=(i=M(s.states[o],r.options.states&&r.options.states[o]||{})).brightness,d=i.color||a!==void 0&&T(d).brighten(i.brightness).get()||d,w=i[A]||w,z=i[O]||z,k=i.dashStyle||k,F=f(i.opacity,F));var j={fill:d,stroke:w,"stroke-width":z,opacity:F};return k&&(j.dashstyle=k),j},e.prototype.drawPoints=function(r){r===void 0&&(r=this.points);var o,i=this,c=this.chart,a=i.options,s=c.renderer,m=a.animationLimit||250;r.forEach(function(A){var O=A.plotY,d=A.graphic,w=!!d,k=d&&c.pointCount<m?"animate":"attr";L(O)&&A.y!==null?(o=A.shapeArgs,d&&A.hasNewShapeType()&&(d=d.destroy()),i.enabledDataSorting&&(A.startXPos=i.xAxis.reversed?-(o&&o.width||0):i.xAxis.width),d||(A.graphic=d=s[A.shapeType](o).add(A.group||i.group),d&&i.enabledDataSorting&&c.hasRendered&&c.pointCount<m&&(d.attr({x:A.startXPos}),w=!0,k="animate")),d&&w&&d[k](M(o)),a.borderRadius&&d[k]({r:a.borderRadius}),c.styledMode||d[k](i.pointAttribs(A,A.selected&&"select")).shadow(A.allowShadow!==!1&&a.shadow,null,a.stacking&&!a.borderRadius),d&&(d.addClass(A.getClassName(),!0),d.attr({visibility:A.visible?"inherit":"hidden"}))):d&&(A.graphic=d.destroy())})},e.prototype.drawTracker=function(r){r===void 0&&(r=this.points);var o,i=this,c=i.chart,a=c.pointer,s=function(m){var A=a.getPointFromEvent(m);A!==void 0&&(a.isDirectTouch=!0,A.onMouseOver(m))};r.forEach(function(m){o=P(m.dataLabels)?m.dataLabels:m.dataLabel?[m.dataLabel]:[],m.graphic&&(m.graphic.element.point=m),o.forEach(function(A){A.div?A.div.point=m:A.element.point=m})}),i._hasTracking||(i.trackerGroups.forEach(function(m){i[m]&&(i[m].addClass("highcharts-tracker").on("mouseover",s).on("mouseout",function(A){a.onTrackerMouseOut(A)}),u&&i[m].on("touchstart",s),!c.styledMode&&i.options.cursor&&i[m].css({cursor:i.options.cursor}))}),i._hasTracking=!0),C(this,"afterDrawTracker")},e.prototype.remove=function(){var r=this,o=r.chart;o.hasRendered&&o.series.forEach(function(i){i.type===r.type&&(i.isDirty=!0)}),q.prototype.remove.apply(r,arguments)},e.defaultOptions=M(q.defaultOptions,U),e}(q);return y(l.prototype,{cropShoulder:0,directTouch:!0,drawLegendSymbol:Z.drawRectangle,getSymbol:p,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]}),$.registerSeriesType("column",l),l}),rt(N,"Core/Series/DataLabel.js",[N["Core/Animation/AnimationUtilities.js"],N["Core/FormatUtilities.js"],N["Core/Utilities.js"]],function(W,R,U){var Y,Z=W.getDeferredAnimation,q=R.format,$=U.defined,G=U.extend,D=U.fireEvent,E=U.isArray,x=U.isString,T=U.merge,u=U.objectEach,p=U.pick,g=U.splat;return function(v){var y=[];function C(b,l,h,e,r){var o,i,c,a=this,s=this.chart,m=this.isCartesian&&s.inverted,A=this.enabledDataSorting,O=b.plotX,d=b.plotY,w=h.rotation,k=h.align,z=$(O)&&$(d)&&s.isInsidePlot(O,Math.round(d),{inverted:m,paneCoordinates:!0,series:a}),F=function(et){A&&a.xAxis&&!j&&a.setDataLabelStartPos(b,l,r,z,et)},j=p(h.overflow,A?"none":"justify")==="justify",I=this.visible&&b.visible!==!1&&$(O)&&(b.series.forceDL||A&&!j||z||p(h.inside,!!this.options.stacking)&&e&&s.isInsidePlot(O,m?e.x+1:e.y+e.height-1,{inverted:m,paneCoordinates:!0,series:a})),_=b.pos();if(I&&_){w&&l.attr({align:k});var V=l.getBBox(!0),X=[0,0];if(o=s.renderer.fontMetrics(s.styledMode?void 0:h.style.fontSize,l).b,e=G({x:_[0],y:Math.round(_[1]),width:0,height:0},e),G(h,{width:V.width,height:V.height}),w?(j=!1,i=s.renderer.rotCorr(o,w),c={x:e.x+(h.x||0)+e.width/2+i.x,y:e.y+(h.y||0)+{top:0,middle:.5,bottom:1}[h.verticalAlign]*e.height},X=[V.x-Number(l.attr("x")),V.y-Number(l.attr("y"))],F(c),l[r?"attr":"animate"](c)):(F(e),l.align(h,void 0,e),c=l.alignAttr),j&&e.height>=0)this.justifyDataLabel(l,h,c,V,e,r);else if(p(h.crop,!0)){var H=c.x,Q=c.y;H+=X[0],Q+=X[1],I=s.isInsidePlot(H,Q,{paneCoordinates:!0,series:a})&&s.isInsidePlot(H+V.width,Q+V.height,{paneCoordinates:!0,series:a})}h.shape&&!w&&l[r?"attr":"animate"]({anchorX:_[0],anchorY:_[1]})}r&&A&&(l.placed=!1),I||A&&!j?l.show():(l.hide(),l.placed=!1)}function P(b){b===void 0&&(b=this.points);var l,h=this,e=h.chart,r=h.options,o=h.hasRendered||0,i=e.renderer,c=e.options.chart,a=c.backgroundColor,s=c.plotBackgroundColor,m=i.getContrast(x(s)&&s||x(a)&&a||"#000000"),A=r.dataLabels,O=A.animation,d=A.defer?Z(e,O,h):{defer:0,duration:0};if(A=M(M(e.options.plotOptions&&e.options.plotOptions.series&&e.options.plotOptions.series.dataLabels,e.options.plotOptions&&e.options.plotOptions[h.type]&&e.options.plotOptions[h.type].dataLabels),A),D(this,"drawDataLabels"),E(A)||A.enabled||h._hasPointLabels){if((l=h.plotGroup("dataLabelsGroup","data-labels",o?"inherit":"hidden",A.zIndex||6)).attr({opacity:+o}),!o){var w=h.dataLabelsGroup;w&&(h.visible&&l.show(),w[r.animation?"animate":"attr"]({opacity:1},d))}b.forEach(function(k){g(M(A,k.dlOptions||k.options&&k.options.dataLabels)).forEach(function(z,F){var j,I,_,V,X,H,Q=z.enabled&&(!k.isNull||k.dataLabelOnNull)&&function(yt,dt){var ot=dt.filter;if(ot){var ht=ot.operator,ut=yt[ot.property],vt=ot.value;return ht===">"&&ut>vt||ht==="<"&&ut<vt||ht===">="&&ut>=vt||ht==="<="&&ut<=vt||ht==="=="&&ut==vt||ht==="==="&&ut===vt}return!0}(k,z),et=k.connectors?k.connectors[F]:k.connector,tt=k.dataLabels?k.dataLabels[F]:k.dataLabel,st=!tt,ct=p(z.distance,k.labelDistance);if(Q){if(j=k.getLabelConfig(),I=p(z[k.formatPrefix+"Format"],z.format),_=$(I)?q(I,j,e):(z[k.formatPrefix+"Formatter"]||z.formatter).call(j,z),V=z.style,X=z.rotation,e.styledMode||(V.color=p(z.color,V.color,h.color,"#000000"),V.color==="contrast"?(k.contrastColor=i.getContrast(k.color||h.color),V.color=!$(ct)&&z.inside||ct<0||r.stacking?k.contrastColor:m):delete k.contrastColor,r.cursor&&(V.cursor=r.cursor)),H={r:z.borderRadius||0,rotation:X,padding:z.padding,zIndex:1},!e.styledMode){var gt=z.backgroundColor,mt=z.borderColor;H.fill=gt==="auto"?k.color:gt,H.stroke=mt==="auto"?k.color:mt,H["stroke-width"]=z.borderWidth}u(H,function(yt,dt){yt===void 0&&delete H[dt]})}if(!tt||Q&&$(_)&&!!tt.div==!!z.useHTML&&(tt.rotation&&z.rotation||tt.rotation===z.rotation)||(st=!0,k.dataLabel=tt=k.dataLabel&&k.dataLabel.destroy(),k.dataLabels&&(k.dataLabels.length===1?delete k.dataLabels:delete k.dataLabels[F]),F||delete k.dataLabel,et&&(k.connector=k.connector.destroy(),k.connectors&&(k.connectors.length===1?delete k.connectors:delete k.connectors[F]))),Q&&$(_)){tt?H.text=_:(k.dataLabels=k.dataLabels||[],tt=k.dataLabels[F]=X?i.text(_,0,0,z.useHTML).addClass("highcharts-data-label"):i.label(_,0,0,z.shape,null,null,z.useHTML,null,"data-label"),F||(k.dataLabel=tt),tt.addClass(" highcharts-data-label-color-"+k.colorIndex+" "+(z.className||"")+(z.useHTML?" highcharts-tracker":""))),tt.options=z,tt.attr(H),e.styledMode||tt.css(V).shadow(z.shadow);var bt=z[k.formatPrefix+"TextPath"]||z.textPath;bt&&!z.useHTML&&(tt.setTextPath(k.getDataLabelPath&&k.getDataLabelPath(tt)||k.graphic,bt),k.dataLabelPath&&!bt.enabled&&(k.dataLabelPath=k.dataLabelPath.destroy())),tt.added||tt.add(l),h.alignDataLabel(k,tt,z,null,st)}else tt&&tt.hide()})})}D(this,"afterDrawDataLabels")}function L(b,l,h,e,r,o){var i,c,a=this.chart,s=l.align,m=l.verticalAlign,A=b.box?0:b.padding||0,O=l.x,d=O===void 0?0:O,w=l.y,k=w===void 0?0:w;return(i=(h.x||0)+A)<0&&(s==="right"&&d>=0?(l.align="left",l.inside=!0):d-=i,c=!0),(i=(h.x||0)+e.width-A)>a.plotWidth&&(s==="left"&&d<=0?(l.align="right",l.inside=!0):d+=a.plotWidth-i,c=!0),(i=h.y+A)<0&&(m==="bottom"&&k>=0?(l.verticalAlign="top",l.inside=!0):k-=i,c=!0),(i=(h.y||0)+e.height-A)>a.plotHeight&&(m==="top"&&k<=0?(l.verticalAlign="bottom",l.inside=!0):k+=a.plotHeight-i,c=!0),c&&(l.x=d,l.y=k,b.placed=!o,b.align(l,void 0,r)),c}function M(b,l){var h,e=[];if(E(b)&&!E(l))e=b.map(function(r){return T(r,l)});else if(E(l)&&!E(b))e=l.map(function(r){return T(b,r)});else if(E(b)||E(l))for(h=Math.max(b.length,l.length);h--;)e[h]=T(b[h],l[h]);else e=T(b,l);return e}function f(b,l,h,e,r){var o=this.chart,i=o.inverted,c=this.xAxis,a=c.reversed,s=i?l.height/2:l.width/2,m=b.pointWidth,A=m?m/2:0;l.startXPos=i?r.x:a?-s-A:c.width-s+A,l.startYPos=i?a?this.yAxis.height-s+A:-s-A:r.y,e?l.visibility==="hidden"&&(l.show(),l.attr({opacity:0}).animate({opacity:1})):l.attr({opacity:1}).animate({opacity:0},void 0,l.hide),o.hasRendered&&(h&&l.attr({x:l.startXPos,y:l.startYPos}),l.placed=!0)}v.compose=function(b){if(y.indexOf(b)===-1){var l=b.prototype;y.push(b),l.alignDataLabel=C,l.drawDataLabels=P,l.justifyDataLabel=L,l.setDataLabelStartPos=f}}}(Y||(Y={})),Y}),rt(N,"Series/Column/ColumnDataLabel.js",[N["Core/Series/DataLabel.js"],N["Core/Series/SeriesRegistry.js"],N["Core/Utilities.js"]],function(W,R,U){var Y,Z=R.series,q=U.merge,$=U.pick;return function(G){var D=[];function E(x,T,u,p,g){var v,y=this.chart.inverted,C=x.series,P=(C.xAxis?C.xAxis.len:this.chart.plotSizeX)||0,L=(C.yAxis?C.yAxis.len:this.chart.plotSizeY)||0,M=x.dlBox||x.shapeArgs,f=$(x.below,x.plotY>$(this.translatedThreshold,L)),b=$(u.inside,!!this.options.stacking);M&&((p=q(M)).y<0&&(p.height+=p.y,p.y=0),(v=p.y+p.height-L)>0&&v<p.height&&(p.height-=v),y&&(p={x:L-p.y-p.height,y:P-p.x-p.width,width:p.height,height:p.width}),b||(y?(p.x+=f?0:p.width,p.width=0):(p.y+=f?p.height:0,p.height=0))),u.align=$(u.align,!y||b?"center":f?"right":"left"),u.verticalAlign=$(u.verticalAlign,y||b?"middle":f?"top":"bottom"),Z.prototype.alignDataLabel.call(this,x,T,u,p,g),u.inside&&x.contrastColor&&T.css({color:x.contrastColor})}G.compose=function(x){W.compose(Z),D.indexOf(x)===-1&&(D.push(x),x.prototype.alignDataLabel=E)}}(Y||(Y={})),Y}),rt(N,"Series/Bar/BarSeries.js",[N["Series/Column/ColumnSeries.js"],N["Core/Series/SeriesRegistry.js"],N["Core/Utilities.js"]],function(W,R,U){var Y,Z=this&&this.__extends||(Y=function(D,E){return Y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,T){x.__proto__=T}||function(x,T){for(var u in T)T.hasOwnProperty(u)&&(x[u]=T[u])},Y(D,E)},function(D,E){function x(){this.constructor=D}Y(D,E),D.prototype=E===null?Object.create(E):(x.prototype=E.prototype,new x)}),q=U.extend,$=U.merge,G=function(D){function E(){var x=D!==null&&D.apply(this,arguments)||this;return x.data=void 0,x.options=void 0,x.points=void 0,x}return Z(E,D),E.defaultOptions=$(W.defaultOptions,{}),E}(W);return q(G.prototype,{inverted:!0}),R.registerSeriesType("bar",G),G}),rt(N,"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/>"}}}),rt(N,"Series/Scatter/ScatterSeries.js",[N["Series/Scatter/ScatterSeriesDefaults.js"],N["Core/Series/SeriesRegistry.js"],N["Core/Utilities.js"]],function(W,R,U){var Y,Z=this&&this.__extends||(Y=function(u,p){return Y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,v){g.__proto__=v}||function(g,v){for(var y in v)v.hasOwnProperty(y)&&(g[y]=v[y])},Y(u,p)},function(u,p){function g(){this.constructor=u}Y(u,p),u.prototype=p===null?Object.create(p):(g.prototype=p.prototype,new g)}),q=R.seriesTypes,$=q.column,G=q.line,D=U.addEvent,E=U.extend,x=U.merge,T=function(u){function p(){var g=u!==null&&u.apply(this,arguments)||this;return g.data=void 0,g.options=void 0,g.points=void 0,g}return Z(p,u),p.prototype.applyJitter=function(){var g=this,v=this.options.jitter,y=this.points.length;v&&this.points.forEach(function(C,P){["x","y"].forEach(function(L,M){var f,b,l,h,e,r,o="plot"+L.toUpperCase();v[L]&&!C.isNull&&(f=g[L+"Axis"],h=v[L]*f.transA,f&&!f.isLog&&(b=Math.max(0,C[o]-h),l=Math.min(f.len,C[o]+h),C[o]=b+(l-b)*(e=P+M*y,(r=1e4*Math.sin(e))-Math.floor(r)),L==="x"&&(C.clientX=C.plotX)))})})},p.prototype.drawGraph=function(){this.options.lineWidth?u.prototype.drawGraph.call(this):this.graph&&(this.graph=this.graph.destroy())},p.defaultOptions=x(G.defaultOptions,W),p}(G);return E(T.prototype,{drawTracker:$.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1}),D(T,"afterTranslate",function(){this.applyJitter()}),R.registerSeriesType("scatter",T),T}),rt(N,"Series/CenteredUtilities.js",[N["Core/Globals.js"],N["Core/Series/Series.js"],N["Core/Utilities.js"]],function(W,R,U){var Y,Z=W.deg2rad,q=U.fireEvent,$=U.isNumber,G=U.pick,D=U.relativeLength;return function(E){E.getCenter=function(){var x,T,u,p=this.options,g=this.chart,v=2*(p.slicedOffset||0),y=g.plotWidth-2*v,C=g.plotHeight-2*v,P=p.center,L=Math.min(y,C),M=p.thickness,f=p.size,b=p.innerSize||0;typeof f=="string"&&(f=parseFloat(f)),typeof b=="string"&&(b=parseFloat(b));var l=[G(P[0],"50%"),G(P[1],"50%"),G(f&&f<0?void 0:p.size,"100%"),G(b&&b<0?void 0:p.innerSize||0,"0%")];for(!g.angular||this instanceof R||(l[3]=0),T=0;T<4;++T)u=l[T],x=T<2||T===2&&/%$/.test(u),l[T]=D(u,[y,C,L,l[2]][T])+(x?v:0);return l[3]>l[2]&&(l[3]=l[2]),$(M)&&2*M<l[2]&&M>0&&(l[3]=l[2]-2*M),q(this,"afterGetCenter",{positions:l}),l},E.getStartAndEndRadians=function(x,T){var u=$(x)?x:0,p=$(T)&&T>u&&T-u<360?T:u+360;return{start:Z*(u+-90),end:Z*(p+-90)}}}(Y||(Y={})),Y}),rt(N,"Series/Pie/PiePoint.js",[N["Core/Animation/AnimationUtilities.js"],N["Core/Series/Point.js"],N["Core/Utilities.js"]],function(W,R,U){var Y,Z=this&&this.__extends||(Y=function(p,g){return Y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,y){v.__proto__=y}||function(v,y){for(var C in y)y.hasOwnProperty(C)&&(v[C]=y[C])},Y(p,g)},function(p,g){function v(){this.constructor=p}Y(p,g),p.prototype=g===null?Object.create(g):(v.prototype=g.prototype,new v)}),q=W.setAnimation,$=U.addEvent,G=U.defined,D=U.extend,E=U.isNumber,x=U.pick,T=U.relativeLength,u=function(p){function g(){var v=p!==null&&p.apply(this,arguments)||this;return v.labelDistance=void 0,v.options=void 0,v.series=void 0,v}return Z(g,p),g.prototype.getConnectorPath=function(){var v=this.labelPosition,y=this.series.options.dataLabels,C=this.connectorShapes,P=y.connectorShape;return C[P]&&(P=C[P]),P.call(this,{x:v.final.x,y:v.final.y,alignment:v.alignment},v.connectorPosition,y)},g.prototype.getTranslate=function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},g.prototype.haloPath=function(v){var y=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(y.x,y.y,y.r+v,y.r+v,{innerR:y.r-1,start:y.start,end:y.end})},g.prototype.init=function(){var v=this;p.prototype.init.apply(this,arguments),this.name=x(this.name,"Slice");var y=function(C){v.slice(C.type==="select")};return $(this,"select",y),$(this,"unselect",y),this},g.prototype.isValid=function(){return E(this.y)&&this.y>=0},g.prototype.setVisible=function(v,y){var C=this,P=this.series,L=P.chart,M=P.options.ignoreHiddenPoint;y=x(y,M),v!==this.visible&&(this.visible=this.options.visible=v=v===void 0?!this.visible:v,P.options.data[P.data.indexOf(this)]=this.options,["graphic","dataLabel","connector","shadowGroup"].forEach(function(f){C[f]&&C[f][v?"show":"hide"](v)}),this.legendItem&&L.legend.colorizeItem(this,v),v||this.state!=="hover"||this.setState(""),M&&(P.isDirty=!0),y&&L.redraw())},g.prototype.slice=function(v,y,C){var P=this.series,L=P.chart;q(C,L),y=x(y,!0),this.sliced=this.options.sliced=v=G(v)?v:!this.sliced,P.options.data[P.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate()),this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},g}(R);return D(u.prototype,{connectorShapes:{fixedOffset:function(p,g,v){var y=g.breakAt,C=g.touchingSliceAt,P=v.softConnector?["C",p.x+(p.alignment==="left"?-5:5),p.y,2*y.x-C.x,2*y.y-C.y,y.x,y.y]:["L",y.x,y.y];return[["M",p.x,p.y],P,["L",C.x,C.y]]},straight:function(p,g){var v=g.touchingSliceAt;return[["M",p.x,p.y],["L",v.x,v.y]]},crookedLine:function(p,g,v){var y=g.touchingSliceAt,C=this.series,P=C.center[0],L=C.chart.plotWidth,M=C.chart.plotLeft,f=p.alignment,b=this.shapeArgs.r,l=T(v.crookDistance,1),h=f==="left"?P+b+(L+M-P-b)*(1-l):M+(P-b)*l,e=["L",h,p.y],r=!0;(f==="left"?h>p.x||h<y.x:h<p.x||h>y.x)&&(r=!1);var o=[["M",p.x,p.y]];return r&&o.push(e),o.push(["L",y.x,y.y]),o}}}),u}),rt(N,"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}}}}),rt(N,"Series/Pie/PieSeries.js",[N["Series/CenteredUtilities.js"],N["Series/Column/ColumnSeries.js"],N["Core/Globals.js"],N["Core/Legend/LegendSymbol.js"],N["Series/Pie/PiePoint.js"],N["Series/Pie/PieSeriesDefaults.js"],N["Core/Series/Series.js"],N["Core/Series/SeriesRegistry.js"],N["Core/Renderer/SVG/Symbols.js"],N["Core/Utilities.js"]],function(W,R,U,Y,Z,q,$,G,D,E){var x,T=this&&this.__extends||(x=function(f,b){return x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,h){l.__proto__=h}||function(l,h){for(var e in h)h.hasOwnProperty(e)&&(l[e]=h[e])},x(f,b)},function(f,b){function l(){this.constructor=f}x(f,b),f.prototype=b===null?Object.create(b):(l.prototype=b.prototype,new l)}),u=W.getStartAndEndRadians,p=U.noop,g=E.clamp,v=E.extend,y=E.fireEvent,C=E.merge,P=E.pick,L=E.relativeLength,M=function(f){function b(){var l=f!==null&&f.apply(this,arguments)||this;return l.center=void 0,l.data=void 0,l.maxLabelDistance=void 0,l.options=void 0,l.points=void 0,l}return T(b,f),b.prototype.animate=function(l){var h=this,e=h.points,r=h.startAngleRad;l||e.forEach(function(o){var i=o.graphic,c=o.shapeArgs;i&&c&&(i.attr({r:P(o.startR,h.center&&h.center[3]/2),start:r,end:r}),i.animate({r:c.r,start:c.start,end:c.end},h.options.animation))})},b.prototype.drawEmpty=function(){var l,h,e=this.startAngleRad,r=this.endAngleRad,o=this.options;this.total===0&&this.center?(l=this.center[0],h=this.center[1],this.graph||(this.graph=this.chart.renderer.arc(l,h,this.center[1]/2,0,e,r).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:D.arc(l,h,this.center[2]/2,0,{start:e,end:r,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())},b.prototype.drawPoints=function(){var l=this.chart.renderer;this.points.forEach(function(h){h.graphic&&h.hasNewShapeType()&&(h.graphic=h.graphic.destroy()),h.graphic||(h.graphic=l[h.shapeType](h.shapeArgs).add(h.series.group),h.delayedRendering=!0)})},b.prototype.generatePoints=function(){f.prototype.generatePoints.call(this),this.updateTotals()},b.prototype.getX=function(l,h,e){var r=this.center,o=this.radii?this.radii[e.index]||0:r[2]/2,i=Math.asin(g((l-r[1])/(o+e.labelDistance),-1,1));return r[0]+(h?-1:1)*(Math.cos(i)*(o+e.labelDistance))+(e.labelDistance>0?(h?-1:1)*this.options.dataLabels.padding:0)},b.prototype.hasData=function(){return!!this.processedXData.length},b.prototype.redrawPoints=function(){var l,h,e,r,o=this,i=o.chart,c=i.renderer,a=o.options.shadow;this.drawEmpty(),!a||o.shadowGroup||i.styledMode||(o.shadowGroup=c.g("shadow").attr({zIndex:-1}).add(o.group)),o.points.forEach(function(s){var m={};if(h=s.graphic,!s.isNull&&h){var A=void 0;r=s.shapeArgs,l=s.getTranslate(),i.styledMode||(A=s.shadowGroup,a&&!A&&(A=s.shadowGroup=c.g("shadow").add(o.shadowGroup)),A&&A.attr(l),e=o.pointAttribs(s,s.selected&&"select")),s.delayedRendering?(h.setRadialReference(o.center).attr(r).attr(l),i.styledMode||h.attr(e).attr({"stroke-linejoin":"round"}).shadow(a,A),s.delayedRendering=!1):(h.setRadialReference(o.center),i.styledMode||C(!0,m,e),C(!0,m,r,l),h.animate(m)),h.attr({visibility:s.visible?"inherit":"hidden"}),h.addClass(s.getClassName(),!0)}else h&&(s.graphic=h.destroy())})},b.prototype.sortByAngle=function(l,h){l.sort(function(e,r){return e.angle!==void 0&&(r.angle-e.angle)*h})},b.prototype.translate=function(l){y(this,"translate"),this.generatePoints();var h,e,r,o,i,c,a,s,m=this,A=1e3,O=m.options,d=O.slicedOffset,w=d+(O.borderWidth||0),k=u(O.startAngle,O.endAngle),z=m.startAngleRad=k.start,F=(m.endAngleRad=k.end)-z,j=m.points,I=O.dataLabels.distance,_=O.ignoreHiddenPoint,V=j.length,X=0;for(l||(m.center=l=m.getCenter()),a=0;a<V;a++){e=z+X*F,!(s=j[a]).isValid()||_&&!s.visible||(X+=s.percentage/100),r=z+X*F;var H={x:l[0],y:l[1],r:l[2]/2,innerR:l[3]/2,start:Math.round(e*A)/A,end:Math.round(r*A)/A};s.shapeType="arc",s.shapeArgs=H,s.labelDistance=P(s.options.dataLabels&&s.options.dataLabels.distance,I),s.labelDistance=L(s.labelDistance,H.r),m.maxLabelDistance=Math.max(m.maxLabelDistance||0,s.labelDistance),(o=(r+e)/2)>1.5*Math.PI?o-=2*Math.PI:o<-Math.PI/2&&(o+=2*Math.PI),s.slicedTranslation={translateX:Math.round(Math.cos(o)*d),translateY:Math.round(Math.sin(o)*d)},i=Math.cos(o)*l[2]/2,c=Math.sin(o)*l[2]/2,s.tooltipPos=[l[0]+.7*i,l[1]+.7*c],s.half=o<-Math.PI/2||o>Math.PI/2?1:0,s.angle=o,h=Math.min(w,s.labelDistance/5),s.labelPosition={natural:{x:l[0]+i+Math.cos(o)*s.labelDistance,y:l[1]+c+Math.sin(o)*s.labelDistance},final:{},alignment:s.labelDistance<0?"center":s.half?"right":"left",connectorPosition:{breakAt:{x:l[0]+i+Math.cos(o)*h,y:l[1]+c+Math.sin(o)*h},touchingSliceAt:{x:l[0]+i,y:l[1]+c}}}}y(m,"afterTranslate")},b.prototype.updateTotals=function(){var l,h,e=this.points,r=e.length,o=this.options.ignoreHiddenPoint,i=0;for(l=0;l<r;l++)!(h=e[l]).isValid()||o&&!h.visible||(i+=h.y);for(this.total=i,l=0;l<r;l++)(h=e[l]).percentage=i>0&&(h.visible||!o)?h.y/i*100:0,h.total=i},b.defaultOptions=C($.defaultOptions,q),b}($);return v(M.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawLegendSymbol:Y.drawRectangle,drawTracker:R.prototype.drawTracker,getCenter:W.getCenter,getSymbol:p,isCartesian:!1,noSharedTooltip:!0,pointAttribs:R.prototype.pointAttribs,pointClass:Z,requireSorting:!1,searchPoint:p,trackerGroups:["group","dataLabelsGroup"]}),G.registerSeriesType("pie",M),M}),rt(N,"Series/Pie/PieDataLabel.js",[N["Core/Series/DataLabel.js"],N["Core/Globals.js"],N["Core/Renderer/RendererUtilities.js"],N["Core/Series/SeriesRegistry.js"],N["Core/Utilities.js"]],function(W,R,U,Y,Z){var q,$=R.noop,G=U.distribute,D=Y.series,E=Z.arrayMax,x=Z.clamp,T=Z.defined,u=Z.merge,p=Z.pick,g=Z.relativeLength;return function(v){var y=[],C={radialDistributionY:function(f){return f.top+f.distributeBox.pos},radialDistributionX:function(f,b,l,h){return f.getX(l<b.top+2||l>b.bottom-2?h:l,b.half,b)},justify:function(f,b,l){return l[0]+(f.half?-1:1)*(b+f.labelDistance)},alignToPlotEdges:function(f,b,l,h){var e=f.getBBox().width;return b?e+h:l-e-h},alignToConnectors:function(f,b,l,h){var e,r=0;return f.forEach(function(o){(e=o.dataLabel.getBBox().width)>r&&(r=e)}),b?r+h:l-r-h}};function P(){var f,b,l,h,e,r,o,i,c,a,s,m,A=this,O=A.data,d=A.chart,w=A.options.dataLabels||{},k=w.connectorPadding,z=d.plotWidth,F=d.plotHeight,j=d.plotLeft,I=Math.round(d.chartWidth/3),_=A.center,V=_[2]/2,X=_[1],H=[[],[]],Q=[0,0,0,0],et=A.dataLabelPositioners;A.visible&&(w.enabled||A._hasPointLabels)&&(O.forEach(function(tt){tt.dataLabel&&tt.visible&&tt.dataLabel.shortened&&(tt.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),tt.dataLabel.shortened=!1)}),D.prototype.drawDataLabels.apply(A),O.forEach(function(tt){tt.dataLabel&&(tt.visible?(H[tt.half].push(tt),tt.dataLabel._pos=null,T(w.style.width)||T(tt.options.dataLabels&&tt.options.dataLabels.style&&tt.options.dataLabels.style.width)||tt.dataLabel.getBBox().width>I&&(tt.dataLabel.css({width:Math.round(.7*I)+"px"}),tt.dataLabel.shortened=!0)):(tt.dataLabel=tt.dataLabel.destroy(),tt.dataLabels&&tt.dataLabels.length===1&&delete tt.dataLabels))}),H.forEach(function(tt,st){var ct,gt,mt,bt,yt,dt,ot=tt.length,ht=[];if(ot)for(A.sortByAngle(tt,st-.5),A.maxLabelDistance>0&&(ct=Math.max(0,X-V-A.maxLabelDistance),gt=Math.min(X+V+A.maxLabelDistance,d.plotHeight),tt.forEach(function(ut){ut.labelDistance>0&&ut.dataLabel&&(ut.top=Math.max(0,X-V-ut.labelDistance),ut.bottom=Math.min(X+V+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},ht.push(ut.distributeBox))}),G(ht,dt=gt+yt-ct,dt/5)),s=0;s<ot;s++){if(f=tt[s],r=f.labelPosition,h=f.dataLabel,a=f.visible===!1?"hidden":"inherit",mt=r.natural.y,c=mt,ht&&T(f.distributeBox)&&(f.distributeBox.pos===void 0?a="hidden":(o=f.distributeBox.size,c=et.radialDistributionY(f))),delete f.positionIndex,w.justify)i=et.justify(f,V,_);else switch(w.alignTo){case"connectors":i=et.alignToConnectors(tt,st,z,j);break;case"plotEdges":i=et.alignToPlotEdges(h,st,z,j);break;default:i=et.radialDistributionX(A,f,c,mt)}h._attr={visibility:a,align:r.alignment},m=f.options.dataLabels||{},h._pos={x:i+p(m.x,w.x)+({left:k,right:-k}[r.alignment]||0),y:c+p(m.y,w.y)-10},r.final.x=i,r.final.y=c,p(w.crop,!0)&&(e=h.getBBox().width,bt=null,i-e<k&&st===1?(bt=Math.round(e-i+k),Q[3]=Math.max(bt,Q[3])):i+e>z-k&&st===0&&(bt=Math.round(i+e-z+k),Q[1]=Math.max(bt,Q[1])),c-o/2<0?Q[0]=Math.max(Math.round(o/2-c),Q[0]):c+o/2>F&&(Q[2]=Math.max(Math.round(c+o/2-F),Q[2])),h.sideOverflow=bt)}}),(E(Q)===0||this.verifyDataLabelOverflow(Q))&&(this.placeDataLabels(),this.points.forEach(function(tt){if(m=u(w,tt.options.dataLabels),b=p(m.connectorWidth,1)){var st=void 0;l=tt.connector,(h=tt.dataLabel)&&h._pos&&tt.visible&&tt.labelDistance>0?(a=h._attr.visibility,(st=!l)&&(tt.connector=l=d.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+tt.colorIndex+(tt.className?" "+tt.className:"")).add(A.dataLabelsGroup),d.styledMode||l.attr({"stroke-width":b,stroke:m.connectorColor||tt.color||"#666666"})),l[st?"attr":"animate"]({d:tt.getConnectorPath()}),l.attr("visibility",a)):l&&(tt.connector=l.destroy())}})))}function L(){this.points.forEach(function(f){var b,l=f.dataLabel;l&&f.visible&&((b=l._pos)?(l.sideOverflow&&(l._attr.width=Math.max(l.getBBox().width-l.sideOverflow,0),l.css({width:l._attr.width+"px",textOverflow:(this.options.dataLabels.style||{}).textOverflow||"ellipsis"}),l.shortened=!0),l.attr(l._attr),l[l.moved?"animate":"attr"](b),l.moved=!0):l&&l.attr({y:-9999})),delete f.distributeBox},this)}function M(f){var b=this.center,l=this.options,h=l.center,e=l.minSize||80,r=e,o=l.size!==null;return o||(h[0]!==null?r=Math.max(b[2]-Math.max(f[1],f[3]),e):(r=Math.max(b[2]-f[1]-f[3],e),b[0]+=(f[3]-f[1])/2),h[1]!==null?r=x(r,e,b[2]-Math.max(f[0],f[2])):(r=x(r,e,b[2]-f[0]-f[2]),b[1]+=(f[0]-f[2])/2),r<b[2]?(b[2]=r,b[3]=Math.min(l.thickness?Math.max(0,r-2*l.thickness):Math.max(0,g(l.innerSize||0,r)),r),this.translate(b),this.drawDataLabels&&this.drawDataLabels()):o=!0),o}v.compose=function(f){if(W.compose(D),y.indexOf(f)===-1){y.push(f);var b=f.prototype;b.dataLabelPositioners=C,b.alignDataLabel=$,b.drawDataLabels=P,b.placeDataLabels=L,b.verifyDataLabelOverflow=M}}}(q||(q={})),q}),rt(N,"Extensions/OverlappingDataLabels.js",[N["Core/Chart/Chart.js"],N["Core/Utilities.js"]],function(W,R){var U=R.addEvent,Y=R.fireEvent,Z=R.isArray,q=R.isNumber,$=R.objectEach,G=R.pick;function D(E,x){var T,u,p=!1;return E&&(u=E.newOpacity,E.oldOpacity!==u&&(E.alignAttr&&E.placed?(E[u?"removeClass":"addClass"]("highcharts-data-label-hidden"),T=function(){x.styledMode||E.css({pointerEvents:u?"auto":"none"})},p=!0,E.alignAttr.opacity=u,E[E.isOld?"animate":"attr"](E.alignAttr,null,T),Y(x,"afterHideOverlappingLabel")):E.attr({opacity:u})),E.isOld=!0),p}U(W,"render",function(){var E=this,x=[];(this.labelCollectors||[]).forEach(function(T){x=x.concat(T())}),(this.yAxis||[]).forEach(function(T){T.stacking&&T.options.stackLabels&&!T.options.stackLabels.allowOverlap&&$(T.stacking.stacks,function(u){$(u,function(p){p.label&&x.push(p.label)})})}),(this.series||[]).forEach(function(T){var u=T.options.dataLabels;if(T.visible&&(u.enabled!==!1||T._hasPointLabels)){var p=function(g){return g.forEach(function(v){v.visible&&(Z(v.dataLabels)?v.dataLabels:v.dataLabel?[v.dataLabel]:[]).forEach(function(y){var C=y.options;y.labelrank=G(C.labelrank,v.labelrank,v.shapeArgs&&v.shapeArgs.height),C.allowOverlap?(y.oldOpacity=y.opacity,y.newOpacity=1,D(y,E)):x.push(y)})})};p(T.nodes||[]),p(T.points)}}),this.hideOverlappingLabels(x)}),W.prototype.hideOverlappingLabels=function(E){var x,T,u,p,g,v,y,C=this,P=E.length,L=C.renderer,M=!1,f=function(l,h){return!(h.x>=l.x+l.width||h.x+h.width<=l.x||h.y>=l.y+l.height||h.y+h.height<=l.y)},b=function(l){var h,e,r,o,i,c=l.box?0:l.padding||0,a=0,s=0;if(l&&(!l.alignAttr||l.placed))return h=l.alignAttr||{x:l.attr("x"),y:l.attr("y")},e=l.parentGroup,l.width||(r=l.getBBox(),l.width=r.width,l.height=r.height,a=L.fontMetrics(null,l.element).h),o=l.width-2*c,(i={left:"0",center:"0.5",right:"1"}[l.alignValue])?s=+i*o:q(l.x)&&Math.round(l.x)!==l.translateX&&(s=l.x-l.translateX),{x:h.x+(e.translateX||0)+c-(s||0),y:h.y+(e.translateY||0)+c-a,width:l.width-2*c,height:l.height-2*c}};for(T=0;T<P;T++)(x=E[T])&&(x.oldOpacity=x.opacity,x.newOpacity=1,x.absoluteBox=b(x));for(E.sort(function(l,h){return(h.labelrank||0)-(l.labelrank||0)}),T=0;T<P;T++)for(v=(p=E[T])&&p.absoluteBox,u=T+1;u<P;++u)y=(g=E[u])&&g.absoluteBox,v&&y&&p!==g&&p.newOpacity!==0&&g.newOpacity!==0&&p.visibility!=="hidden"&&g.visibility!=="hidden"&&f(v,y)&&((p.labelrank<g.labelrank?p:g).newOpacity=0);E.forEach(function(l){D(l,C)&&(M=!0)}),M&&Y(C,"afterHideAllOverlappingLabels")}}),rt(N,"Core/Responsive.js",[N["Core/Utilities.js"]],function(W){var R,U=W.extend,Y=W.find,Z=W.isArray,q=W.isObject,$=W.merge,G=W.objectEach,D=W.pick,E=W.splat,x=W.uniqueKey;return function(T){var u=[];T.compose=function(g){return u.indexOf(g)===-1&&(u.push(g),U(g.prototype,p.prototype)),g};var p=function(){function g(){}return g.prototype.currentOptions=function(v){var y=this,C={};return function P(L,M,f,b){var l;G(L,function(h,e){if(!b&&y.collectionsWithUpdate.indexOf(e)>-1&&M[e])for(h=E(h),f[e]=[],l=0;l<Math.max(h.length,M[e].length);l++)M[e][l]&&(h[l]===void 0?f[e][l]=M[e][l]:(f[e][l]={},P(h[l],M[e][l],f[e][l],b+1)));else q(h)?(f[e]=Z(h)?[]:{},P(h,M[e]||{},f[e],b+1)):M[e]===void 0?f[e]=null:f[e]=M[e]})}(v,this.options,C,0),C},g.prototype.matchResponsiveRule=function(v,y){var C=v.condition;(C.callback||function(){return this.chartWidth<=D(C.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=D(C.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=D(C.minWidth,0)&&this.chartHeight>=D(C.minHeight,0)}).call(this)&&y.push(v._id)},g.prototype.setResponsive=function(v,y){var C,P=this,L=this.options.responsive,M=this.currentResponsive,f=[];!y&&L&&L.rules&&L.rules.forEach(function(h){h._id===void 0&&(h._id=x()),P.matchResponsiveRule(h,f)},this);var b=$.apply(void 0,f.map(function(h){return Y((L||{}).rules||[],function(e){return e._id===h})}).map(function(h){return h&&h.chartOptions}));b.isResponsiveOptions=!0,f=f.toString()||void 0;var l=M&&M.ruleIds;f!==l&&(M&&this.update(M.undoOptions,v,!0),f?((C=this.currentOptions(b)).isResponsiveOptions=!0,this.currentResponsive={ruleIds:f,mergedOptions:b,undoOptions:C},this.update(b,v,!0)):this.currentResponsive=void 0)},g}()}(R||(R={})),R}),rt(N,"masters/highcharts.src.js",[N["Core/Globals.js"],N["Core/Utilities.js"],N["Core/Defaults.js"],N["Core/Animation/Fx.js"],N["Core/Animation/AnimationUtilities.js"],N["Core/Renderer/HTML/AST.js"],N["Core/FormatUtilities.js"],N["Core/Renderer/RendererUtilities.js"],N["Core/Renderer/SVG/SVGElement.js"],N["Core/Renderer/SVG/SVGRenderer.js"],N["Core/Renderer/HTML/HTMLElement.js"],N["Core/Renderer/HTML/HTMLRenderer.js"],N["Core/Axis/Axis.js"],N["Core/Axis/DateTimeAxis.js"],N["Core/Axis/LogarithmicAxis.js"],N["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],N["Core/Axis/Tick.js"],N["Core/Tooltip.js"],N["Core/Series/Point.js"],N["Core/Pointer.js"],N["Core/MSPointer.js"],N["Core/Legend/Legend.js"],N["Core/Chart/Chart.js"],N["Core/Axis/Stacking/StackingAxis.js"],N["Core/Axis/Stacking/StackItem.js"],N["Core/Series/Series.js"],N["Core/Series/SeriesRegistry.js"],N["Series/Column/ColumnSeries.js"],N["Series/Column/ColumnDataLabel.js"],N["Series/Pie/PieSeries.js"],N["Series/Pie/PieDataLabel.js"],N["Core/Series/DataLabel.js"],N["Core/Responsive.js"],N["Core/Color/Color.js"],N["Core/Time.js"]],function(W,R,U,Y,Z,q,$,G,D,E,x,T,u,p,g,v,y,C,P,L,M,f,b,l,h,e,r,o,i,c,a,s,m,A,O){var d=W;return d.animate=Z.animate,d.animObject=Z.animObject,d.getDeferredAnimation=Z.getDeferredAnimation,d.setAnimation=Z.setAnimation,d.stop=Z.stop,d.timers=Y.timers,d.AST=q,d.Axis=u,d.Chart=b,d.chart=b.chart,d.Fx=Y,d.Legend=f,d.PlotLineOrBand=v,d.Point=P,d.Pointer=M.isRequired()?M:L,d.Series=e,d.StackItem=h,d.SVGElement=D,d.SVGRenderer=E,d.Tick=y,d.Time=O,d.Tooltip=C,d.Color=A,d.color=A.parse,T.compose(E),x.compose(D),d.defaultOptions=U.defaultOptions,d.getOptions=U.getOptions,d.time=U.defaultTime,d.setOptions=U.setOptions,d.dateFormat=$.dateFormat,d.format=$.format,d.numberFormat=$.numberFormat,d.addEvent=R.addEvent,d.arrayMax=R.arrayMax,d.arrayMin=R.arrayMin,d.attr=R.attr,d.clearTimeout=R.clearTimeout,d.correctFloat=R.correctFloat,d.createElement=R.createElement,d.css=R.css,d.defined=R.defined,d.destroyObjectProperties=R.destroyObjectProperties,d.discardElement=R.discardElement,d.distribute=G.distribute,d.erase=R.erase,d.error=R.error,d.extend=R.extend,d.extendClass=R.extendClass,d.find=R.find,d.fireEvent=R.fireEvent,d.getMagnitude=R.getMagnitude,d.getStyle=R.getStyle,d.inArray=R.inArray,d.isArray=R.isArray,d.isClass=R.isClass,d.isDOMElement=R.isDOMElement,d.isFunction=R.isFunction,d.isNumber=R.isNumber,d.isObject=R.isObject,d.isString=R.isString,d.keys=R.keys,d.merge=R.merge,d.normalizeTickInterval=R.normalizeTickInterval,d.objectEach=R.objectEach,d.offset=R.offset,d.pad=R.pad,d.pick=R.pick,d.pInt=R.pInt,d.relativeLength=R.relativeLength,d.removeEvent=R.removeEvent,d.seriesType=r.seriesType,d.splat=R.splat,d.stableSort=R.stableSort,d.syncTimeout=R.syncTimeout,d.timeUnits=R.timeUnits,d.uniqueKey=R.uniqueKey,d.useSerialIds=R.useSerialIds,d.wrap=R.wrap,i.compose(o),s.compose(e),p.compose(u),g.compose(u),a.compose(c),v.compose(u),m.compose(b),l.compose(u,b,e),d}),rt(N,"Core/Axis/BrokenAxis.js",[N["Core/Axis/Stacking/StackItem.js"],N["Core/Utilities.js"]],function(W,R){var U,Y=R.addEvent,Z=R.find,q=R.fireEvent,$=R.isArray,G=R.isNumber,D=R.pick;return function(E){var x=[];function T(){this.brokenAxis!==void 0&&this.brokenAxis.setBreaks(this.options.breaks,!1)}function u(){var M=this;M.brokenAxis&&M.brokenAxis.hasBreaks&&(M.options.ordinal=!1)}function p(){var M=this,f=M.brokenAxis;if(f&&f.hasBreaks){for(var b=M.tickPositions,l=M.tickPositions.info,h=[],e=0;e<b.length;e++)f.isInAnyBreak(b[e])||h.push(b[e]);M.tickPositions=h,M.tickPositions.info=l}}function g(){var M=this;M.brokenAxis||(M.brokenAxis=new L(M))}function v(){var M=this,f=M.isDirty,b=M.options.connectNulls,l=M.points,h=M.xAxis,e=M.yAxis;if(f)for(var r=l.length;r--;){var o=l[r],i=!(o.y===null&&b===!1)&&(h&&h.brokenAxis&&h.brokenAxis.isInAnyBreak(o.x,!0)||e&&e.brokenAxis&&e.brokenAxis.isInAnyBreak(o.y,!0));o.visible=!i&&o.options.visible!==!1}}function y(){this.drawBreaks(this.xAxis,["x"]),this.drawBreaks(this.yAxis,D(this.pointArrayMap,["y"]))}function C(M,f){var b,l,h,e,r=this,o=r.points;if(M&&M.brokenAxis&&M.brokenAxis.hasBreaks){var i=M.brokenAxis;f.forEach(function(c){b=i&&i.breakArray||[],l=M.isXAxis?M.min:D(r.options.threshold,M.min),o.forEach(function(a){e=D(a["stack"+c.toUpperCase()],a[c]),b.forEach(function(s){G(l)&&G(e)&&(h=!1,l<s.from&&e>s.to||l>s.from&&e<s.from?h="pointBreak":(l<s.from&&e>s.from&&e<s.to||l>s.from&&e>s.to&&e<s.from)&&(h="pointInBreak"),h&&q(M,h,{point:a,brk:s}))})})})}}function P(){var M=this.currentDataGrouping,f=M&&M.gapSize,b=this.points.slice(),l=this.yAxis,h=this.options.gapSize,e=b.length-1;if(h&&e>0){this.options.gapUnit!=="value"&&(h*=this.basePointRange),f&&f>h&&f>=this.basePointRange&&(h=f);for(var r=void 0,o=void 0;e--;)if(o&&o.visible!==!1||(o=b[e+1]),r=b[e],o.visible!==!1&&r.visible!==!1){if(o.x-r.x>h){var i=(r.x+o.x)/2;b.splice(e+1,0,{isNull:!0,x:i}),l.stacking&&this.options.stacking&&((l.stacking.stacks[this.stackKey][i]=new W(l,l.options.stackLabels,!1,i,this.stack)).total=0)}o=r}}return this.getGraphPath(b)}E.compose=function(M,f){if(x.indexOf(M)===-1&&(x.push(M),M.keepProps.push("brokenAxis"),Y(M,"init",g),Y(M,"afterInit",T),Y(M,"afterSetTickPositions",p),Y(M,"afterSetOptions",u)),x.indexOf(f)===-1){x.push(f);var b=f.prototype;b.drawBreaks=C,b.gappedPath=P,Y(f,"afterGeneratePoints",v),Y(f,"afterRender",y)}return M};var L=function(){function M(f){this.hasBreaks=!1,this.axis=f}return M.isInBreak=function(f,b){var l=f.repeat||1/0,h=f.from,e=f.to-f.from,r=b>=h?(b-h)%l:l-(h-b)%l;return f.inclusive?r<=e:r<e&&r!==0},M.lin2Val=function(f){var b=this.brokenAxis,l=b&&b.breakArray;if(!l||!G(f))return f;var h,e,r=f;for(e=0;e<l.length&&!((h=l[e]).from>=r);e++)(h.to<r||M.isInBreak(h,r))&&(r+=h.len);return r},M.val2Lin=function(f){var b=this.brokenAxis,l=b&&b.breakArray;if(!l||!G(f))return f;var h,e,r=f;for(e=0;e<l.length;e++)if((h=l[e]).to<=f)r-=h.len;else{if(h.from>=f)break;if(M.isInBreak(h,f)){r-=f-h.from;break}}return r},M.prototype.findBreakAt=function(f,b){return Z(b,function(l){return l.from<f&&f<l.to})},M.prototype.isInAnyBreak=function(f,b){var l,h,e,r=this.axis,o=r.options.breaks||[],i=o.length;if(i&&G(f)){for(;i--;)M.isInBreak(o[i],f)&&(l=!0,h||(h=D(o[i].showPoints,!r.isXAxis)));e=l&&b?l&&!h:l}return e},M.prototype.setBreaks=function(f,b){var l=this,h=l.axis,e=$(f)&&!!f.length;h.isDirty=l.hasBreaks!==e,l.hasBreaks=e,h.options.breaks=h.userOptions.breaks=f,h.forceRedraw=!0,h.series.forEach(function(r){r.isDirty=!0}),e||h.val2lin!==M.val2Lin||(delete h.val2lin,delete h.lin2val),e&&(h.userOptions.ordinal=!1,h.lin2val=M.lin2Val,h.val2lin=M.val2Lin,h.setExtremes=function(r,o,i,c,a){if(l.hasBreaks){for(var s=this.options.breaks||[],m=void 0;m=l.findBreakAt(r,s);)r=m.to;for(;m=l.findBreakAt(o,s);)o=m.from;o<r&&(o=r)}h.constructor.prototype.setExtremes.call(this,r,o,i,c,a)},h.setAxisTranslation=function(){if(h.constructor.prototype.setAxisTranslation.call(this),l.unitLength=void 0,l.hasBreaks){var r,o,i,c,a=h.options.breaks||[],s=[],m=[],A=D(h.pointRangePadding,0),O=0,d=h.userMin||h.min,w=h.userMax||h.max;a.forEach(function(k){o=k.repeat||1/0,G(d)&&G(w)&&(M.isInBreak(k,d)&&(d+=k.to%o-d%o),M.isInBreak(k,w)&&(w-=w%o-k.from%o))}),a.forEach(function(k){if(i=k.from,o=k.repeat||1/0,G(d)&&G(w)){for(;i-o>d;)i-=o;for(;i<d;)i+=o;for(c=i;c<w;c+=o)s.push({value:c,move:"in"}),s.push({value:c+k.to-k.from,move:"out",size:k.breakSize})}}),s.sort(function(k,z){return k.value===z.value?(k.move==="in"?0:1)-(z.move==="in"?0:1):k.value-z.value}),r=0,i=d,s.forEach(function(k){(r+=k.move==="in"?1:-1)===1&&k.move==="in"&&(i=k.value),r===0&&G(i)&&(m.push({from:i,to:k.value,len:k.value-i-(k.size||0)}),O+=k.value-i-(k.size||0))}),l.breakArray=m,G(d)&&G(w)&&G(h.min)&&(l.unitLength=w-d-O+A,q(h,"afterBreaks"),h.staticScale?h.transA=h.staticScale:l.unitLength&&(h.transA*=(w-h.min+A)/l.unitLength),A&&(h.minPixelPadding=h.transA*(h.minPointOffset||0)),h.min=d,h.max=w)}}),D(b,!0)&&h.chart.redraw()},M}();E.Additions=L}(U||(U={})),U}),rt(N,"masters/modules/broken-axis.src.js",[N["Core/Globals.js"],N["Core/Axis/BrokenAxis.js"]],function(W,R){var U=W;R.compose(U.Axis,U.Series)}),rt(N,"Extensions/DataGrouping/ApproximationRegistry.js",[],function(){return{}}),rt(N,"Extensions/DataGrouping/ApproximationDefaults.js",[N["Extensions/DataGrouping/ApproximationRegistry.js"],N["Core/Utilities.js"]],function(W,R){var U=R.arrayMax,Y=R.arrayMin,Z=R.correctFloat,q=R.extend,$=R.isNumber;function G(x){var T=x.length,u=D(x);return $(u)&&T&&(u=Z(u/T)),u}function D(x){var T,u=x.length;if(!u&&x.hasNulls)T=null;else if(u)for(T=0;u--;)T+=x[u];return T}var E={average:G,averages:function(){var x=[];return[].forEach.call(arguments,function(T){x.push(G(T))}),x[0]===void 0?void 0:x},close:function(x){return x.length?x[x.length-1]:x.hasNulls?null:void 0},high:function(x){return x.length?U(x):x.hasNulls?null:void 0},hlc:function(x,T,u){if(x=W.high(x),T=W.low(T),u=W.close(u),$(x)||$(T)||$(u))return[x,T,u]},low:function(x){return x.length?Y(x):x.hasNulls?null:void 0},ohlc:function(x,T,u,p){if(x=W.open(x),T=W.high(T),u=W.low(u),p=W.close(p),$(x)||$(T)||$(u)||$(p))return[x,T,u,p]},open:function(x){return x.length?x[0]:x.hasNulls?null:void 0},range:function(x,T){return x=W.low(x),T=W.high(T),$(x)||$(T)?[x,T]:x===null&&T===null?null:void 0},sum:D};return q(W,E),E}),rt(N,"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]]}}),rt(N,"Extensions/DataGrouping/DataGroupingAxisComposition.js",[N["Extensions/DataGrouping/DataGroupingDefaults.js"],N["Core/Utilities.js"]],function(W,R){var U,Y=R.addEvent,Z=R.extend,q=R.merge,$=R.pick,G=[];function D(u){var p=this,g=p.series;g.forEach(function(v){v.groupPixelWidth=void 0}),g.forEach(function(v){v.groupPixelWidth=p.getGroupPixelWidth&&p.getGroupPixelWidth(),v.groupPixelWidth&&(v.hasProcessed=!0),v.applyGrouping(!!u.hasExtremesChanged)})}function E(){for(var u,p,g=this.series,v=g.length,y=0,C=!1;v--;)(p=g[v].options.dataGrouping)&&(y=Math.max(y,$(p.groupPixelWidth,W.common.groupPixelWidth)),u=(g[v].processedXData||g[v].data).length,(g[v].groupPixelWidth||u>this.chart.plotSizeX/y||u&&p.forced)&&(C=!0));return C?y:0}function x(){this.series.forEach(function(u){u.hasProcessed=!1})}function T(u,p){var g;if(p=$(p,!0),u||(u={forced:!1,units:null}),this instanceof U)for(g=this.series.length;g--;)this.series[g].update({dataGrouping:u},!1);else this.chart.options.series.forEach(function(v){v.dataGrouping=typeof u=="boolean"?u:q(u,v.dataGrouping)});this.ordinal&&(this.ordinal.slope=void 0),p&&this.chart.redraw()}return{compose:function(u){U=u,G.indexOf(u)===-1&&(G.push(u),Y(u,"afterSetScale",x),Y(u,"postProcessData",D),Z(u.prototype,{applyGrouping:D,getGroupPixelWidth:E,setDataGrouping:T}))}}}),rt(N,"Extensions/DataGrouping/DataGroupingSeriesComposition.js",[N["Extensions/DataGrouping/ApproximationRegistry.js"],N["Extensions/DataGrouping/DataGroupingDefaults.js"],N["Core/Axis/DateTimeAxis.js"],N["Core/Defaults.js"],N["Core/Series/SeriesRegistry.js"],N["Core/Utilities.js"]],function(W,R,U,Y,Z,q){var $=Z.series.prototype,G=q.addEvent,D=q.defined,E=q.error,x=q.extend,T=q.isNumber,u=q.merge,p=q.pick,g=$.generatePoints,v=[];function y(b){var l,h,e=this,r=e.chart,o=e.options.dataGrouping,i=e.allowDG!==!1&&o&&p(o.enabled,r.options.isStock),c=e.visible||!r.options.chart.ignoreHiddenSeries,a=this.currentDataGrouping,s=!1;i&&!e.requireSorting&&(e.requireSorting=s=!0);var m=function(ct,gt){return!(ct.isCartesian&&!ct.isDirty&&!ct.xAxis.isDirty&&!ct.yAxis.isDirty&&!gt)}(e,b)===!1||!i;if(s&&(e.requireSorting=!1),!m){e.destroyGroupedData();var A=o.groupAll?e.xData:e.processedXData,O=o.groupAll?e.yData:e.processedYData,d=r.plotSizeX,w=e.xAxis,k=w.options.ordinal,z=e.groupPixelWidth,F=void 0,j=void 0;if(z&&A&&A.length&&d){j=!0,e.isDirty=!0,e.points=null;var I=w.getExtremes(),_=I.min,V=I.max,X=z*(V-_)/d*(k&&w.ordinal&&w.ordinal.getGroupIntervalFactor(_,V,e)||1),H=w.getTimeTicks(U.Additions.prototype.normalizeTimeTickInterval(X,o.units||R.units),Math.min(_,A[0]),Math.max(V,A[A.length-1]),w.options.startOfWeek,A,e.closestPointRange),Q=$.groupData.apply(e,[A,O,H,o.approximation]),et=Q.groupedXData,tt=Q.groupedYData,st=0;for(o&&o.smoothed&&et.length&&(o.firstAnchor="firstPoint",o.anchor="middle",o.lastAnchor="lastPoint",E(32,!1,r,{"dataGrouping.smoothed":"use dataGrouping.anchor"})),function(ct,gt,mt){var bt,yt=ct.options.dataGrouping,dt=ct.currentDataGrouping&&ct.currentDataGrouping.gapSize;if(yt&&ct.xData&&dt&&ct.groupMap){var ot=gt.length-1,ht=yt.anchor,ut=p(yt.firstAnchor,ht),vt=p(yt.lastAnchor,ht);if(ht&&ht!=="start"){var wt=dt*{middle:.5,end:1}[ht];for(bt=gt.length-1;bt--&&bt>0;)gt[bt]+=wt}if(ut&&ut!=="start"&&ct.xData[0]>=gt[0]){var xt=ct.groupMap[0].start,Ct=ct.groupMap[0].length,St=void 0;T(xt)&&T(Ct)&&(St=xt+(Ct-1)),gt[0]={middle:gt[0]+.5*dt,end:gt[0]+dt,firstPoint:ct.xData[0],lastPoint:St&&ct.xData[St]}[ut]}if(vt&&vt!=="start"&&dt&&gt[ot]>=mt-dt){var Mt=ct.groupMap[ct.groupMap.length-1].start;gt[ot]={middle:gt[ot]+.5*dt,end:gt[ot]+dt,firstPoint:Mt&&ct.xData[Mt],lastPoint:ct.xData[ct.xData.length-1]}[vt]}}}(e,et,V),F=1;F<H.length;F++)H.info.segmentStarts&&H.info.segmentStarts.indexOf(F)!==-1||(st=Math.max(H[F]-H[F-1],st));(l=H.info).gapSize=st,e.closestPointRange=H.info.totalRange,e.groupMap=Q.groupMap,c&&function(ct,gt){D(gt[0])&&T(ct.min)&&T(ct.dataMin)&&gt[0]<ct.min&&((!D(ct.options.min)&&ct.min<=ct.dataMin||ct.min===ct.dataMin)&&(ct.min=Math.min(gt[0],ct.min)),ct.dataMin=Math.min(gt[0],ct.dataMin)),D(gt[gt.length-1])&&T(ct.max)&&T(ct.dataMax)&&gt[gt.length-1]>ct.max&&((!D(ct.options.max)&&T(ct.dataMax)&&ct.max>=ct.dataMax||ct.max===ct.dataMax)&&(ct.max=Math.max(gt[gt.length-1],ct.max)),ct.dataMax=Math.max(gt[gt.length-1],ct.dataMax))}(w,et),o.groupAll&&(e.allGroupedData=tt,et=(h=e.cropData(et,tt,w.min,w.max,1)).xData,tt=h.yData,e.cropStart=h.start),e.processedXData=et,e.processedYData=tt}else e.groupMap=null;e.hasGroupedData=j,e.currentDataGrouping=l,e.preventGraphAnimation=(a&&a.totalRange)!==(l&&l.totalRange)}}function C(){this.groupedData&&(this.groupedData.forEach(function(b,l){b&&(this.groupedData[l]=b.destroy?b.destroy():null)},this),this.groupedData.length=0)}function P(){g.apply(this),this.destroyGroupedData(),this.groupedData=this.hasGroupedData?this.points:null}function L(){return this.is("arearange")?"range":this.is("ohlc")?"ohlc":this.is("hlc")?"hlc":this.is("column")?"sum":"average"}function M(b,l,h,e){var r,o,i,c=this,a=c.data,s=c.options&&c.options.data,m=[],A=[],O=[],d=b.length,w=!!l,k=[],z=c.pointArrayMap,F=z&&z.length,j=["x"].concat(z||["y"]),I=this.options.dataGrouping&&this.options.dataGrouping.groupAll,_=0,V=0,X=typeof e=="function"?e:e&&W[e]?W[e]:W[c.getDGApproximation&&c.getDGApproximation()||"average"];if(F)for(var H=z.length;H--;)k.push([]);else k.push([]);for(var Q=F||1,et=0;et<=d;et++)if(!(b[et]<h[0])){for(;h[_+1]!==void 0&&b[et]>=h[_+1]||et===d;){r=h[_],c.dataGroupInfo={start:I?V:c.cropStart+V,length:k[0].length},i=X.apply(c,k),c.pointClass&&!D(c.dataGroupInfo.options)&&(c.dataGroupInfo.options=u(c.pointClass.prototype.optionsToObject.call({series:c},c.options.data[c.cropStart+V])),j.forEach(function(mt){delete c.dataGroupInfo.options[mt]})),i!==void 0&&(m.push(r),A.push(i),O.push(c.dataGroupInfo)),V=et;for(var tt=0;tt<Q;tt++)k[tt].length=0,k[tt].hasNulls=!1;if(_+=1,et===d)break}if(et===d)break;if(z){var st=c.options.dataGrouping&&c.options.dataGrouping.groupAll?et:c.cropStart+et,ct=a&&a[st]||c.pointClass.prototype.applyOptions.apply({series:c},[s[st]]),gt=void 0;for(tt=0;tt<F;tt++)gt=ct[z[tt]],T(gt)?k[tt].push(gt):gt===null&&(k[tt].hasNulls=!0)}else o=w?l[et]:null,T(o)?k[0].push(o):o===null&&(k[0].hasNulls=!0)}return{groupedXData:m,groupedYData:A,groupMap:O}}function f(b){var l=b.options,h=this.type,e=this.chart.options.plotOptions,r=this.useCommonDataGrouping&&R.common,o=R.seriesSpecific,i=Y.defaultOptions.plotOptions[h].dataGrouping;if(e&&(o[h]||r)){var c=this.chart.rangeSelector;i||(i=u(R.common,o[h])),l.dataGrouping=u(r,i,e.series&&e.series.dataGrouping,e[h].dataGrouping,this.userOptions.dataGrouping,!l.isInternal&&c&&T(c.selected)&&c.buttonOptions[c.selected].dataGrouping)}}return{compose:function(b){var l=b.prototype.pointClass;v.indexOf(l)===-1&&(v.push(l),G(l,"update",function(){if(this.dataGroup)return E(24,!1,this.series.chart),!1})),v.indexOf(b)===-1&&(v.push(b),G(b,"afterSetOptions",f),G(b,"destroy",C),x(b.prototype,{applyGrouping:y,destroyGroupedData:C,generatePoints:P,getDGApproximation:L,groupData:M}))},groupData:M}}),rt(N,"Extensions/DataGrouping/DataGrouping.js",[N["Extensions/DataGrouping/DataGroupingAxisComposition.js"],N["Extensions/DataGrouping/DataGroupingDefaults.js"],N["Extensions/DataGrouping/DataGroupingSeriesComposition.js"],N["Core/FormatUtilities.js"],N["Core/Utilities.js"]],function(W,R,U,Y,Z){var q=Y.format,$=Z.addEvent,G=Z.extend,D=Z.isNumber,E=[];function x(T){var u,p,g,v,y,C=this.chart,P=C.time,L=T.labelConfig,M=L.series,f=M.options,b=M.tooltipOptions,l=f.dataGrouping,h=M.xAxis,e=b.xDateFormat,r=b[T.isFooter?"footerFormat":"headerFormat"];h&&h.options.type==="datetime"&&l&&D(L.key)&&(p=M.currentDataGrouping,g=l.dateTimeLabelFormats||R.common.dateTimeLabelFormats,p?(v=g[p.unitName],p.count===1?e=v[0]:(e=v[1],u=v[2])):!e&&g&&h.dateTime&&(e=h.dateTime.getXDateFormat(L.x,b.dateTimeLabelFormats)),y=P.dateFormat(e,L.key),u&&(y+=P.dateFormat(u,L.key+p.totalRange-1)),M.chart.styledMode&&(r=this.styledModeFormat(r)),T.text=q(r,{point:G(L.point,{key:y}),series:M},C),T.preventDefault())}return{compose:function(T,u,p){W.compose(T),U.compose(u),E.indexOf(p)===-1&&(E.push(p),$(p,"headerFormatter",x))},groupData:U.groupData}}),rt(N,"masters/modules/datagrouping.src.js",[N["Core/Globals.js"],N["Extensions/DataGrouping/ApproximationDefaults.js"],N["Extensions/DataGrouping/ApproximationRegistry.js"],N["Extensions/DataGrouping/DataGrouping.js"]],function(W,R,U,Y){var Z=W;Z.dataGrouping={approximationDefaults:R,approximations:U},Y.compose(Z.Axis,Z.Series,Z.Tooltip)}),rt(N,"Series/DataModifyComposition.js",[N["Core/Axis/Axis.js"],N["Core/Series/Point.js"],N["Core/Series/Series.js"],N["Core/Utilities.js"]],function(W,R,U,Y){var Z,q=R.prototype.tooltipFormatter,$=Y.addEvent,G=Y.arrayMax,D=Y.arrayMin,E=Y.correctFloat,x=Y.defined,T=Y.isArray,u=Y.isNumber,p=Y.isString,g=Y.pick;return function(v){var y=[];function C(o,i,c){this.isXAxis||(this.series.forEach(function(a){o==="compare"&&typeof i!="boolean"?a.setCompare(i,!1):o!=="cumulative"||p(i)||a.setCumulative(i,!1)}),g(c,!0)&&this.chart.redraw())}function P(o){var i=this,c=i.series.chart.numberFormatter,a=function(s){o=o.replace("{point."+s+"}",(i[s]>0&&s==="change"?"+":"")+c(i[s],g(i.series.tooltipOptions.changeDecimals,2)))};return x(i.change)&&a("change"),x(i.cumulativeSum)&&a("cumulativeSum"),q.apply(this,[o])}function L(){var o,i=this.options.compare;(i==="percent"||i==="value"||this.options.cumulative)&&(o=new r(this),i==="percent"||i==="value"?o.initCompare(i):o.initCumulative()),this.dataModify=o}function M(o){var i=o.dataExtremes,c=i.activeYData;if(this.dataModify&&i){var a=void 0;this.options.compare?a=[this.dataModify.modifyValue(i.dataMin),this.dataModify.modifyValue(i.dataMax)]:this.options.cumulative&&T(c)&&c.length>=2&&(a=r.getCumulativeExtremes(c)),a&&(i.dataMin=D(a),i.dataMax=G(a))}}function f(o,i){this.options.compare=this.userOptions.compare=o,this.update({},g(i,!0)),!this.dataModify||o!=="value"&&o!=="percent"?this.points.forEach(function(c){delete c.change}):this.dataModify.initCompare(o)}function b(){var o=this;if(o.xAxis&&o.processedYData&&o.dataModify){var i=o.processedXData,c=o.processedYData,a=c.length,s=o.options.compareStart===!0?0:1,m=-1,A=void 0;for(o.pointArrayMap&&(m=o.pointArrayMap.indexOf(o.options.pointValKey||o.pointValKey||"y")),A=0;A<a-s;A++){var O=c[A]&&m>-1?c[A][m]:c[A];if(u(O)&&O!==0&&i[A+s]>=(o.xAxis.min||0)){o.dataModify.compareValue=O;break}}}}function l(o,i){this.setModifier("compare",o,i)}function h(o,i){o=g(o,!1),this.options.cumulative=this.userOptions.cumulative=o,this.update({},g(i,!0)),this.dataModify?this.dataModify.initCumulative():this.points.forEach(function(c){delete c.cumulativeSum})}function e(o,i){this.setModifier("cumulative",o,i)}v.compose=function(o,i,c){if(y.indexOf(o)===-1){y.push(o);var a=o.prototype;a.setCompare=f,a.setCumulative=h,$(o,"afterInit",L),$(o,"afterGetExtremes",M),$(o,"afterProcessData",b)}if(y.indexOf(i)===-1){y.push(i);var s=i.prototype;s.setCompare=l,s.setModifier=C,s.setCumulative=e}return y.indexOf(c)===-1&&(y.push(c),c.prototype.tooltipFormatter=P),o};var r=function(){function o(i){this.series=i}return o.prototype.modifyValue=function(){return 0},o.getCumulativeExtremes=function(i){var c=1/0,a=-1/0;return i.reduce(function(s,m){var A=s+m;return c=Math.min(c,A,s),a=Math.max(a,A,s),A}),[c,a]},o.prototype.initCompare=function(i){this.modifyValue=function(c,a){c===null&&(c=0);var s=this.compareValue;if(c!==void 0&&s!==void 0){if(i==="value"?c-=s:c=c/s*100-(this.series.options.compareBase===100?0:100),a!==void 0){var m=this.series.points[a];m&&(m.change=c)}return c}return 0}},o.prototype.initCumulative=function(){this.modifyValue=function(i,c){if(i===null&&(i=0),i!==void 0&&c!==void 0){var a=c>0?this.series.points[c-1]:null;a&&a.cumulativeSum&&(i=E(a.cumulativeSum+i));var s=this.series.points[c];return s&&(s.cumulativeSum=i),i}return 0}},o}();v.Additions=r}(Z||(Z={})),Z}),rt(N,"Core/Axis/NavigatorAxisComposition.js",[N["Core/Globals.js"],N["Core/Utilities.js"]],function(W,R){var U=W.isTouchDevice,Y=R.addEvent,Z=R.correctFloat,q=R.defined,$=R.isNumber,G=R.pick,D=[];function E(){var u=this;u.navigatorAxis||(u.navigatorAxis=new T(u))}function x(u){var p=this,g=p.chart.options,v=g.navigator,y=p.navigatorAxis,C=g.chart.zooming.pinchType,P=g.rangeSelector,L=g.chart.zooming.type;if(p.isXAxis&&(v&&v.enabled||P&&P.enabled)){if(L==="y")u.zoomed=!1;else if((!U&&L==="xy"||U&&C==="xy")&&p.options.range){var M=y.previousZoom;q(u.newMin)?y.previousZoom=[p.min,p.max]:M&&(u.newMin=M[0],u.newMax=M[1],y.previousZoom=void 0)}}u.zoomed!==void 0&&u.preventDefault()}var T=function(){function u(p){this.axis=p}return u.compose=function(p){D.indexOf(p)===-1&&(D.push(p),p.keepProps.push("navigatorAxis"),Y(p,"init",E),Y(p,"zoom",x))},u.prototype.destroy=function(){this.axis=void 0},u.prototype.toFixedRange=function(p,g,v,y){var C=this.axis,P=C.chart,L=G(v,C.translate(p,!0,!C.horiz)),M=G(y,C.translate(g,!0,!C.horiz)),f=P&&P.fixedRange,b=(C.pointRange||0)/2,l=f&&(M-L)/f;return q(v)||(L=Z(L+b)),q(y)||(M=Z(M-b)),l>.7&&l<1.3&&(y?L=M-f:M=L+f),$(L)&&$(M)||(L=M=void 0),{min:L,max:M}},u}();return T}),rt(N,"Stock/Navigator/NavigatorDefaults.js",[N["Core/Color/Color.js"],N["Core/Series/SeriesRegistry.js"]],function(W,R){var U=W.parse,Y=R.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:U("#6685c2").setOpacity(.3).get(),outlineColor:"#cccccc",outlineWidth:1,series:{type:Y.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}}}),rt(N,"Stock/Navigator/NavigatorSymbols.js",[],function(){return{"navigator-handle":function(W,R,U,Y,Z){Z===void 0&&(Z={});var q=Z.width?Z.width/2:U,$=Math.round(q/3)+.5;return[["M",-q-1,.5],["L",q,.5],["L",q,(Y=Z.height||Y)+.5],["L",-q-1,Y+.5],["L",-q-1,.5],["M",-$,4],["L",-$,Y-3],["M",$-1,4],["L",$-1,Y-3]]}}}),rt(N,"Stock/Navigator/NavigatorComposition.js",[N["Core/Defaults.js"],N["Core/Globals.js"],N["Core/Axis/NavigatorAxisComposition.js"],N["Stock/Navigator/NavigatorDefaults.js"],N["Stock/Navigator/NavigatorSymbols.js"],N["Core/Renderer/RendererRegistry.js"],N["Core/Utilities.js"]],function(W,R,U,Y,Z,q,$){var G,D=W.defaultOptions,E=W.setOptions,x=R.isTouchDevice,T=q.getRendererType,u=$.addEvent,p=$.extend,g=$.merge,v=$.pick,y=[];function C(){this.navigator&&this.navigator.setBaseSeries(null,!1)}function P(){var e,r,o,i,c=this.legend,a=this.navigator;a&&(r=c&&c.options,o=a.xAxis,i=a.yAxis,e=a.scrollbarHeight,this.inverted?(a.left=a.opposite?this.chartWidth-e-a.height:this.spacing[3]+e,a.top=this.plotTop+e):(a.left=v(o.left,this.plotLeft+e),a.top=a.navigatorOptions.top||this.chartHeight-a.height-e-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(r&&r.verticalAlign==="bottom"&&r.layout!=="proximate"&&r.enabled&&!r.floating?c.legendHeight+v(r.margin,10):0)-(this.titleOffset?this.titleOffset[2]:0)),o&&i&&(this.inverted?o.options.left=i.options.left=a.left:o.options.top=i.options.top=a.top,o.setAxisSize(),i.setAxisSize()))}function L(e){this.navigator||this.scroller||!this.options.navigator.enabled&&!this.options.scrollbar.enabled||(this.scroller=this.navigator=new G(this),v(e.redraw,!0)&&this.redraw(e.animation))}function M(){var e=this.options;(e.navigator.enabled||e.scrollbar.enabled)&&(this.scroller=this.navigator=new G(this))}function f(){var e=this.options,r=e.navigator,o=e.rangeSelector;if((r&&r.enabled||o&&o.enabled)&&(!x&&e.chart.zooming.type==="x"||x&&e.chart.zooming.pinchType==="x"))return!1}function b(e){var r=e.navigator;if(r&&e.xAxis[0]){var o=e.xAxis[0].getExtremes();r.render(o.min,o.max)}}function l(e){var r=e.options.navigator||{},o=e.options.scrollbar||{};this.navigator||this.scroller||!r.enabled&&!o.enabled||(g(!0,this.options.navigator,r),g(!0,this.options.scrollbar,o),delete e.options.navigator,delete e.options.scrollbar)}function h(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)}return{compose:function(e,r,o,i){U.compose(e),G=o,y.indexOf(r)===-1&&(y.push(r),r.prototype.callbacks.push(b),u(r,"afterAddSeries",C),u(r,"afterSetChartSize",P),u(r,"afterUpdate",L),u(r,"beforeRender",M),u(r,"beforeShowResetZoom",f),u(r,"update",l)),y.indexOf(i)===-1&&(y.push(i),u(i,"afterUpdate",h)),y.indexOf(T)===-1&&(y.push(T),p(T().prototype.symbols,Z)),y.indexOf(E)===-1&&(y.push(E),p(D,{navigator:Y}))}}}),rt(N,"Core/Axis/ScrollbarAxis.js",[N["Core/Utilities.js"]],function(W){var R=W.addEvent,U=W.defined,Y=W.pick;return function(){function Z(){}return Z.compose=function(q,$){if(Z.composed.indexOf(q)!==-1)return q;Z.composed.push(q);var G=function(D){var E=Y(D.options&&D.options.min,D.min),x=Y(D.options&&D.options.max,D.max);return{axisMin:E,axisMax:x,scrollMin:U(D.dataMin)?Math.min(E,D.min,D.dataMin,Y(D.threshold,1/0)):E,scrollMax:U(D.dataMax)?Math.max(x,D.max,D.dataMax,Y(D.threshold,-1/0)):x}};return R(q,"afterInit",function(){var D=this;D.options&&D.options.scrollbar&&D.options.scrollbar.enabled&&(D.options.scrollbar.vertical=!D.horiz,D.options.startOnTick=D.options.endOnTick=!1,D.scrollbar=new $(D.chart.renderer,D.options.scrollbar,D.chart),R(D.scrollbar,"changed",function(E){var x,T,u=G(D),p=u.axisMin,g=u.axisMax,v=u.scrollMin,y=u.scrollMax-v;U(p)&&U(g)&&(D.horiz&&!D.reversed||!D.horiz&&D.reversed?(x=v+y*this.to,T=v+y*this.from):(x=v+y*(1-this.from),T=v+y*(1-this.to)),this.shouldUpdateExtremes(E.DOMType)?D.setExtremes(T,x,!0,E.DOMType!=="mousemove"&&E.DOMType!=="touchmove",E):this.setRange(this.from,this.to))}))}),R(q,"afterRender",function(){var D,E,x,T=this,u=G(T),p=u.scrollMin,g=u.scrollMax,v=T.scrollbar,y=T.axisTitleMargin+(T.titleOffset||0),C=T.chart.scrollbarsOffsets,P=T.options.margin||0;if(v){if(T.horiz)T.opposite||(C[1]+=y),v.position(T.left,T.top+T.height+2+C[1]-(T.opposite?P:0),T.width,T.height),T.opposite||(C[1]+=P),D=1;else{T.opposite&&(C[0]+=y);var L;L=v.options.opposite?T.left+T.width+2+C[0]-(T.opposite?0:P):T.opposite?0:P,v.position(L,T.top,T.width,T.height),T.opposite&&(C[0]+=P),D=0}C[D]+=v.size+v.options.margin,isNaN(p)||isNaN(g)||!U(T.min)||!U(T.max)||T.min===T.max?v.setRange(0,1):(E=(T.min-p)/(g-p),x=(T.max-p)/(g-p),T.horiz&&!T.reversed||!T.horiz&&T.reversed?v.setRange(E,x):v.setRange(1-x,1-E))}}),R(q,"afterGetOffset",function(){var D=this,E=D.scrollbar&&!D.scrollbar.options.opposite,x=D.horiz?2:E?3:1,T=D.scrollbar;T&&(D.chart.scrollbarsOffsets=[0,0],D.chart.axisOffset[x]+=T.size+T.options.margin)}),q},Z.composed=[],Z}()}),rt(N,"Stock/Scrollbar/ScrollbarDefaults.js",[N["Core/Globals.js"]],function(W){return{height:W.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}}),rt(N,"Stock/Scrollbar/Scrollbar.js",[N["Core/Defaults.js"],N["Core/Globals.js"],N["Core/Axis/ScrollbarAxis.js"],N["Stock/Scrollbar/ScrollbarDefaults.js"],N["Core/Utilities.js"]],function(W,R,U,Y,Z){var q=W.defaultOptions,$=Z.addEvent,G=Z.correctFloat,D=Z.defined,E=Z.destroyObjectProperties,x=Z.fireEvent,T=Z.merge,u=Z.pick,p=Z.removeEvent,g=function(){function v(y,C,P){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(y,C,P)}return v.compose=function(y){U.compose(y,v)},v.swapXY=function(y,C){return C&&y.forEach(function(P){for(var L,M=P.length,f=0;f<M;f+=2)typeof(L=P[f+1])=="number"&&(P[f+1]=P[f+2],P[f+2]=L)}),y},v.prototype.addEvents=function(){var y=this.options.inverted?[1,0]:[0,1],C=this.scrollbarButtons,P=this.scrollbarGroup.element,L=this.track.element,M=this.mouseDownHandler.bind(this),f=this.mouseMoveHandler.bind(this),b=this.mouseUpHandler.bind(this),l=[[C[y[0]].element,"click",this.buttonToMinClick.bind(this)],[C[y[1]].element,"click",this.buttonToMaxClick.bind(this)],[L,"click",this.trackClick.bind(this)],[P,"mousedown",M],[P.ownerDocument,"mousemove",f],[P.ownerDocument,"mouseup",b]];R.hasTouch&&l.push([P,"touchstart",M],[P.ownerDocument,"touchmove",f],[P.ownerDocument,"touchend",b]),l.forEach(function(h){$.apply(null,h)}),this._events=l},v.prototype.buttonToMaxClick=function(y){var C=this,P=(C.to-C.from)*u(C.options.step,.2);C.updatePosition(C.from+P,C.to+P),x(C,"changed",{from:C.from,to:C.to,trigger:"scrollbar",DOMEvent:y})},v.prototype.buttonToMinClick=function(y){var C=this,P=G(C.to-C.from)*u(C.options.step,.2);C.updatePosition(G(C.from-P),G(C.to-P)),x(C,"changed",{from:C.from,to:C.to,trigger:"scrollbar",DOMEvent:y})},v.prototype.cursorToScrollbarPosition=function(y){var C=this,P=C.options,L=P.minWidth>C.calculatedWidth?P.minWidth:0;return{chartX:(y.chartX-C.x-C.xOffset)/(C.barWidth-L),chartY:(y.chartY-C.y-C.yOffset)/(C.barWidth-L)}},v.prototype.destroy=function(){var y=this,C=y.chart.scroller;y.removeEvents(),["track","scrollbarRifles","scrollbar","scrollbarGroup","group"].forEach(function(P){y[P]&&y[P].destroy&&(y[P]=y[P].destroy())}),C&&y===C.scrollbar&&(C.scrollbar=null,E(C.scrollbarButtons))},v.prototype.drawScrollbarButton=function(y){var C,P=this,L=P.renderer,M=P.scrollbarButtons,f=P.options,b=P.size,l=L.g().add(P.group);M.push(l),C=L.rect().addClass("highcharts-scrollbar-button").add(l),P.chart.styledMode||C.attr({stroke:f.buttonBorderColor,"stroke-width":f.buttonBorderWidth,fill:f.buttonBackgroundColor}),C.attr(C.crisp({x:-.5,y:-.5,width:b+1,height:b+1,r:f.buttonBorderRadius},C.strokeWidth())),C=L.path(v.swapXY([["M",b/2+(y?-1:1),b/2-3],["L",b/2+(y?-1:1),b/2+3],["L",b/2+(y?2:-2),b/2]],f.vertical)).addClass("highcharts-scrollbar-arrow").add(M[y]),P.chart.styledMode||C.attr({fill:f.buttonArrowColor})},v.prototype.init=function(y,C,P){var L=this;L.scrollbarButtons=[],L.renderer=y,L.userOptions=C,L.options=T(Y,q.scrollbar,C),L.chart=P,L.size=u(L.options.size,L.options.height),C.enabled&&(L.render(),L.addEvents())},v.prototype.mouseDownHandler=function(y){var C=this,P=C.chart.pointer.normalize(y),L=C.cursorToScrollbarPosition(P);C.chartX=L.chartX,C.chartY=L.chartY,C.initPositions=[C.from,C.to],C.grabbedCenter=!0},v.prototype.mouseMoveHandler=function(y){var C,P=this,L=P.chart.pointer.normalize(y),M=P.options.vertical?"chartY":"chartX",f=P.initPositions||[];!P.grabbedCenter||y.touches&&y.touches[0][M]===0||(C=P.cursorToScrollbarPosition(L)[M]-P[M],P.hasDragged=!0,P.updatePosition(f[0]+C,f[1]+C),P.hasDragged&&x(P,"changed",{from:P.from,to:P.to,trigger:"scrollbar",DOMType:y.type,DOMEvent:y}))},v.prototype.mouseUpHandler=function(y){var C=this;C.hasDragged&&x(C,"changed",{from:C.from,to:C.to,trigger:"scrollbar",DOMType:y.type,DOMEvent:y}),C.grabbedCenter=C.hasDragged=C.chartX=C.chartY=null},v.prototype.position=function(y,C,P,L){var M=this,f=M.options.vertical,b=M.rendered?"animate":"attr",l=L,h=0;M.group.show(),M.x=y,M.y=C+this.trackBorderWidth,M.width=P,M.height=L,M.xOffset=l,M.yOffset=h,f?(M.width=M.yOffset=P=h=M.size,M.xOffset=l=0,M.barWidth=L-2*P,M.x=y+=M.options.margin):(M.height=M.xOffset=L=l=M.size,M.barWidth=P-2*L,M.y=M.y+M.options.margin),M.group[b]({translateX:y,translateY:M.y}),M.track[b]({width:P,height:L}),M.scrollbarButtons[1][b]({translateX:f?0:P-l,translateY:f?L-h:0})},v.prototype.removeEvents=function(){this._events.forEach(function(y){p.apply(null,y)}),this._events.length=0},v.prototype.render=function(){var y=this,C=y.renderer,P=y.options,L=y.size,M=y.chart.styledMode,f=C.g("scrollbar").attr({zIndex:P.zIndex}).hide().add();y.group=f,y.track=C.rect().addClass("highcharts-scrollbar-track").attr({x:0,r:P.trackBorderRadius||0,height:L,width:L}).add(f),M||y.track.attr({fill:P.trackBackgroundColor,stroke:P.trackBorderColor,"stroke-width":P.trackBorderWidth}),y.trackBorderWidth=y.track.strokeWidth(),y.track.attr({y:-this.trackBorderWidth%2/2}),y.scrollbarGroup=C.g().add(f),y.scrollbar=C.rect().addClass("highcharts-scrollbar-thumb").attr({height:L,width:L,r:P.barBorderRadius||0}).add(y.scrollbarGroup),y.scrollbarRifles=C.path(v.swapXY([["M",-3,L/4],["L",-3,2*L/3],["M",0,L/4],["L",0,2*L/3],["M",3,L/4],["L",3,2*L/3]],P.vertical)).addClass("highcharts-scrollbar-rifles").add(y.scrollbarGroup),M||(y.scrollbar.attr({fill:P.barBackgroundColor,stroke:P.barBorderColor,"stroke-width":P.barBorderWidth}),y.scrollbarRifles.attr({stroke:P.rifleColor,"stroke-width":1})),y.scrollbarStrokeWidth=y.scrollbar.strokeWidth(),y.scrollbarGroup.translate(-y.scrollbarStrokeWidth%2/2,-y.scrollbarStrokeWidth%2/2),y.drawScrollbarButton(0),y.drawScrollbarButton(1)},v.prototype.setRange=function(y,C){var P=this,L=P.options,M=L.vertical,f=L.minWidth,b=P.barWidth,l=!this.rendered||this.hasDragged||this.chart.navigator&&this.chart.navigator.hasDragged?"attr":"animate";if(D(b)){var h,e,r=b*Math.min(C,1);y=Math.max(y,0),h=Math.ceil(b*y),P.calculatedWidth=e=G(r-h),e<f&&(h=(b-f+e)*y,e=f);var o=Math.floor(h+P.xOffset+P.yOffset),i=e/2-.5;P.from=y,P.to=C,M?(P.scrollbarGroup[l]({translateY:o}),P.scrollbar[l]({height:e}),P.scrollbarRifles[l]({translateY:i}),P.scrollbarTop=o,P.scrollbarLeft=0):(P.scrollbarGroup[l]({translateX:o}),P.scrollbar[l]({width:e}),P.scrollbarRifles[l]({translateX:i}),P.scrollbarLeft=o,P.scrollbarTop=0),e<=12?P.scrollbarRifles.hide():P.scrollbarRifles.show(),L.showFull===!1&&(y<=0&&C>=1?P.group.hide():P.group.show()),P.rendered=!0}},v.prototype.shouldUpdateExtremes=function(y){return u(this.options.liveRedraw,R.svg&&!R.isTouchDevice&&!this.chart.boosted)||y==="mouseup"||y==="touchend"||!D(y)},v.prototype.trackClick=function(y){var C=this,P=C.chart.pointer.normalize(y),L=C.to-C.from,M=C.y+C.scrollbarTop,f=C.x+C.scrollbarLeft;C.options.vertical&&P.chartY>M||!C.options.vertical&&P.chartX>f?C.updatePosition(C.from+L,C.to+L):C.updatePosition(C.from-L,C.to-L),x(C,"changed",{from:C.from,to:C.to,trigger:"scrollbar",DOMEvent:y})},v.prototype.update=function(y){this.destroy(),this.init(this.chart.renderer,T(!0,this.options,y),this.chart)},v.prototype.updatePosition=function(y,C){C>1&&(y=G(1-G(C-y)),C=1),y<0&&(C=G(C-y),y=0),this.from=y,this.to=C},v.defaultOptions=Y,v}();return q.scrollbar=T(!0,g.defaultOptions,q.scrollbar),g}),rt(N,"Stock/Navigator/Navigator.js",[N["Core/Axis/Axis.js"],N["Core/Defaults.js"],N["Core/Globals.js"],N["Core/Axis/NavigatorAxisComposition.js"],N["Stock/Navigator/NavigatorComposition.js"],N["Stock/Scrollbar/Scrollbar.js"],N["Core/Utilities.js"]],function(W,R,U,Y,Z,q,$){var G=R.defaultOptions,D=U.hasTouch,E=U.isTouchDevice,x=$.addEvent,T=$.clamp,u=$.correctFloat,p=$.defined,g=$.destroyObjectProperties,v=$.erase,y=$.extend,C=$.find,P=$.isArray,L=$.isNumber,M=$.merge,f=$.pick,b=$.removeEvent,l=$.splat;function h(e){for(var r=[],o=1;o<arguments.length;o++)r[o-1]=arguments[o];var i=[].filter.call(r,L);if(i.length)return Math[e].apply(0,i)}return function(){function e(r){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(r)}return e.compose=function(r,o,i){Z.compose(r,o,e,i)},e.prototype.drawHandle=function(r,o,i,c){var a=this,s=a.navigatorOptions.handles.height;a.handles[o][c](i?{translateX:Math.round(a.left+a.height/2),translateY:Math.round(a.top+parseInt(r,10)+.5-s)}:{translateX:Math.round(a.left+parseInt(r,10)),translateY:Math.round(a.top+a.height/2-s/2-1)})},e.prototype.drawOutline=function(r,o,i,c){var a,s,m=this,A=m.navigatorOptions.maskInside,O=m.outline.strokeWidth(),d=O/2,w=O%2/2,k=m.outlineHeight,z=m.scrollbarHeight||0,F=m.size,j=m.left-z,I=m.top;i?(s=[["M",(j-=d)+k,I-z-w],["L",j+k,a=I+o+w],["L",j,a],["L",j,o=I+r+w],["L",j+k,o],["L",j+k,I+F+z]],A&&s.push(["M",j+k,a-d],["L",j+k,o+d])):(s=[["M",j,I+=d],["L",r+=j+z-w,I],["L",r,I+k],["L",o+=j+z-w,I+k],["L",o,I],["L",j+F+2*z,I]],A&&s.push(["M",r-d,I],["L",o+d,I])),m.outline[c]({d:s})},e.prototype.drawMasks=function(r,o,i,c){var a,s,m,A,O=this,d=O.left,w=O.top,k=O.height;i?(m=[d,d,d],A=[w,w+r,w+o],s=[k,k,k],a=[r,o-r,O.size-o]):(m=[d,d+r,d+o],A=[w,w,w],s=[r,o-r,O.size-o],a=[k,k,k]),O.shades.forEach(function(z,F){z[c]({x:m[F],y:A[F],width:s[F],height:a[F]})})},e.prototype.renderElements=function(){var r=this,o=r.navigatorOptions,i=o.maskInside,c=r.chart,a=c.inverted,s=c.renderer,m={cursor:a?"ns-resize":"ew-resize"},A=r.navigatorGroup=s.g("navigator").attr({zIndex:8,visibility:"hidden"}).add();if([!i,i,!i].forEach(function(k,z){var F=s.rect().addClass("highcharts-navigator-mask"+(z===1?"-inside":"-outside")).add(A);c.styledMode||(F.attr({fill:k?o.maskFill:"rgba(0,0,0,0)"}),z===1&&F.css(m)),r.shades[z]=F}),r.outline=s.path().addClass("highcharts-navigator-outline").add(A),c.styledMode||r.outline.attr({"stroke-width":o.outlineWidth,stroke:o.outlineColor}),o.handles&&o.handles.enabled){var O=o.handles,d=O.height,w=O.width;[0,1].forEach(function(k){r.handles[k]=s.symbol(O.symbols[k],-w/2-1,0,w,d,O),c.inverted&&r.handles[k].attr({rotation:90,rotationOriginX:Math.floor(-w/2),rotationOriginY:(d+w)/2}),r.handles[k].attr({zIndex:7-k}).addClass("highcharts-navigator-handle highcharts-navigator-handle-"+["left","right"][k]).add(A),c.styledMode||r.handles[k].attr({fill:O.backgroundColor,stroke:O.borderColor,"stroke-width":O.lineWidth}).css(m)})}},e.prototype.update=function(r){(this.series||[]).forEach(function(i){i.baseSeries&&delete i.baseSeries.navigatorSeries}),this.destroy();var o=this.chart.options;M(!0,o.navigator,r),this.init(this.chart)},e.prototype.render=function(r,o,i,c){var a,s,m,A,O,d=this,w=d.chart,k=d.xAxis,z=k.pointRange||0,F=k.navigatorAxis.fake?w.xAxis[0]:k,j=d.navigatorEnabled,I=d.rendered,_=w.inverted,V=w.xAxis[0].minRange,X=w.xAxis[0].options.maxRange,H=d.scrollbarHeight;if(!this.hasDragged||p(i)){if(r=u(r-z/2),o=u(o+z/2),!L(r)||!L(o)){if(!I)return;i=0,c=f(k.width,F.width)}d.left=f(k.left,w.plotLeft+H+(_?w.plotWidth:0));var Q=d.size=A=f(k.len,(_?w.plotHeight:w.plotWidth)-2*H);a=_?H:A+2*H,i=f(i,k.toPixels(r,!0)),c=f(c,k.toPixels(o,!0)),L(i)&&Math.abs(i)!==1/0||(i=0,c=a);var et=k.toValue(i,!0),tt=k.toValue(c,!0),st=Math.abs(u(tt-et));st<V?this.grabbedLeft?i=k.toPixels(tt-V-z,!0):this.grabbedRight&&(c=k.toPixels(et+V+z,!0)):p(X)&&u(st-z)>X&&(this.grabbedLeft?i=k.toPixels(tt-X-z,!0):this.grabbedRight&&(c=k.toPixels(et+X+z,!0))),d.zoomedMax=T(Math.max(i,c),0,Q),d.zoomedMin=T(d.fixedWidth?d.zoomedMax-d.fixedWidth:Math.min(i,c),0,Q),d.range=d.zoomedMax-d.zoomedMin,Q=Math.round(d.zoomedMax);var ct=Math.round(d.zoomedMin);j&&(d.navigatorGroup.attr({visibility:"inherit"}),O=I&&!d.hasDragged?"animate":"attr",d.drawMasks(ct,Q,_,O),d.drawOutline(ct,Q,_,O),d.navigatorOptions.handles.enabled&&(d.drawHandle(ct,0,_,O),d.drawHandle(Q,1,_,O))),d.scrollbar&&(_?(m=d.top-H,s=d.left-H+(j||!F.opposite?0:(F.titleOffset||0)+F.axisTitleMargin),H=A+2*H):(m=d.top+(j?d.height:-H),s=d.left-H),d.scrollbar.position(s,m,a,H),d.scrollbar.setRange(d.zoomedMin/(A||1),d.zoomedMax/(A||1))),d.rendered=!0}},e.prototype.addMouseEvents=function(){var r,o,i=this,c=i.chart,a=c.container,s=[];i.mouseMoveHandler=r=function(m){i.onMouseMove(m)},i.mouseUpHandler=o=function(m){i.onMouseUp(m)},(s=i.getPartsEvents("mousedown")).push(x(c.renderTo,"mousemove",r),x(a.ownerDocument,"mouseup",o)),D&&(s.push(x(c.renderTo,"touchmove",r),x(a.ownerDocument,"touchend",o)),s.concat(i.getPartsEvents("touchstart"))),i.eventsToUnbind=s,i.series&&i.series[0]&&s.push(x(i.series[0].xAxis,"foundExtremes",function(){c.navigator.modifyNavigatorAxisExtremes()}))},e.prototype.getPartsEvents=function(r){var o=this,i=[];return["shades","handles"].forEach(function(c){o[c].forEach(function(a,s){i.push(x(a.element,r,function(m){o[c+"Mousedown"](m,s)}))})}),i},e.prototype.shadesMousedown=function(r,o){r=this.chart.pointer.normalize(r);var i,c,a,s,m=this,A=m.chart,O=m.xAxis,d=m.zoomedMin,w=m.size,k=m.range,z=m.left,F=r.chartX;A.inverted&&(F=r.chartY,z=m.top),o===1?(m.grabbedCenter=F,m.fixedWidth=k,m.dragOffset=F-d):(s=F-z-k/2,o===0?s=Math.max(0,s):o===2&&s+k>=w&&(s=w-k,m.reversedExtremes?(s-=k,c=m.getUnionExtremes().dataMin):i=m.getUnionExtremes().dataMax),s!==d&&(m.fixedWidth=k,a=O.navigatorAxis.toFixedRange(s,s+k,c,i),p(a.min)&&A.xAxis[0].setExtremes(Math.min(a.min,a.max),Math.max(a.min,a.max),!0,null,{trigger:"navigator"})))},e.prototype.handlesMousedown=function(r,o){r=this.chart.pointer.normalize(r);var i=this,c=i.chart,a=c.xAxis[0],s=i.reversedExtremes;o===0?(i.grabbedLeft=!0,i.otherHandlePos=i.zoomedMax,i.fixedExtreme=s?a.min:a.max):(i.grabbedRight=!0,i.otherHandlePos=i.zoomedMin,i.fixedExtreme=s?a.max:a.min),c.fixedRange=null},e.prototype.onMouseMove=function(r){var o,i=this,c=i.chart,a=i.navigatorSize,s=i.range,m=i.dragOffset,A=c.inverted,O=i.left;r.touches&&r.touches[0].pageX===0||(o=(r=c.pointer.normalize(r)).chartX,A&&(O=i.top,o=r.chartY),i.grabbedLeft?(i.hasDragged=!0,i.render(0,0,o-O,i.otherHandlePos)):i.grabbedRight?(i.hasDragged=!0,i.render(0,0,i.otherHandlePos,o-O)):i.grabbedCenter&&(i.hasDragged=!0,o<m?o=m:o>a+m-s&&(o=a+m-s),i.render(0,0,o-m,o-m+s)),i.hasDragged&&i.scrollbar&&f(i.scrollbar.options.liveRedraw,U.svg&&!E&&!this.chart.boosted)&&(r.DOMType=r.type,setTimeout(function(){i.onMouseUp(r)},0)))},e.prototype.onMouseUp=function(r){var o,i,c,a,s,m,A=this,O=A.chart,d=A.xAxis,w=A.scrollbar,k=r.DOMEvent||r,z=O.inverted,F=A.rendered&&!A.hasDragged?"animate":"attr";(!A.hasDragged||w&&w.hasDragged)&&r.trigger!=="scrollbar"||(c=A.getUnionExtremes(),A.zoomedMin===A.otherHandlePos?a=A.fixedExtreme:A.zoomedMax===A.otherHandlePos&&(s=A.fixedExtreme),A.zoomedMax===A.size&&(s=A.reversedExtremes?c.dataMin:c.dataMax),A.zoomedMin===0&&(a=A.reversedExtremes?c.dataMax:c.dataMin),m=d.navigatorAxis.toFixedRange(A.zoomedMin,A.zoomedMax,a,s),p(m.min)&&O.xAxis[0].setExtremes(Math.min(m.min,m.max),Math.max(m.min,m.max),!0,!A.hasDragged&&null,{trigger:"navigator",triggerOp:"navigator-drag",DOMEvent:k})),r.DOMType!=="mousemove"&&r.DOMType!=="touchmove"&&(A.grabbedLeft=A.grabbedRight=A.grabbedCenter=A.fixedWidth=A.fixedExtreme=A.otherHandlePos=A.hasDragged=A.dragOffset=null),A.navigatorEnabled&&L(A.zoomedMin)&&L(A.zoomedMax)&&(i=Math.round(A.zoomedMin),o=Math.round(A.zoomedMax),A.shades&&A.drawMasks(i,o,z,F),A.outline&&A.drawOutline(i,o,z,F),A.navigatorOptions.handles.enabled&&Object.keys(A.handles).length===A.handles.length&&(A.drawHandle(i,0,z,F),A.drawHandle(o,1,z,F)))},e.prototype.removeEvents=function(){this.eventsToUnbind&&(this.eventsToUnbind.forEach(function(r){r()}),this.eventsToUnbind=void 0),this.removeBaseSeriesEvents()},e.prototype.removeBaseSeriesEvents=function(){var r=this.baseSeries||[];this.navigatorEnabled&&r[0]&&(this.navigatorOptions.adaptToUpdatedData!==!1&&r.forEach(function(o){b(o,"updatedData",this.updatedDataHandler)},this),r[0].xAxis&&b(r[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes))},e.prototype.init=function(r){var o=r.options,i=o.navigator||{},c=i.enabled,a=o.scrollbar||{},s=a.enabled,m=c&&i.height||0,A=s&&a.height||0;this.handles=[],this.shades=[],this.chart=r,this.setBaseSeries(),this.height=m,this.scrollbarHeight=A,this.scrollbarEnabled=s,this.navigatorEnabled=c,this.navigatorOptions=i,this.scrollbarOptions=a,this.outlineHeight=m+A,this.opposite=f(i.opposite,!!(!c&&r.inverted));var O=this,d=O.baseSeries,w=r.xAxis.length,k=r.yAxis.length,z=d&&d[0]&&d[0].xAxis||r.xAxis[0]||{options:{}};r.isDirtyBox=!0,O.navigatorEnabled?(O.xAxis=new W(r,M({breaks:z.options.breaks,ordinal:z.options.ordinal},i.xAxis,{id:"navigator-x-axis",yAxis:"navigator-y-axis",isX:!0,type:"datetime",index:w,isInternal:!0,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},r.inverted?{offsets:[A,0,-A,0],width:m}:{offsets:[0,-A,0,A],height:m})),O.yAxis=new W(r,M(i.yAxis,{id:"navigator-y-axis",alignTicks:!1,offset:0,index:k,isInternal:!0,reversed:f(i.yAxis&&i.yAxis.reversed,r.yAxis[0]&&r.yAxis[0].reversed,!1),zoomEnabled:!1},r.inverted?{width:m}:{height:m})),d||i.series.data?O.updateNavigatorSeries(!1):r.series.length===0&&(O.unbindRedraw=x(r,"beforeRedraw",function(){r.series.length>0&&!O.series&&(O.setBaseSeries(),O.unbindRedraw())})),O.reversedExtremes=r.inverted&&!O.xAxis.reversed||!r.inverted&&O.xAxis.reversed,O.renderElements(),O.addMouseEvents()):(O.xAxis={chart:r,navigatorAxis:{fake:!0},translate:function(F,j){var I=r.xAxis[0],_=I.getExtremes(),V=I.len-2*A,X=h("min",I.options.min,_.dataMin),H=h("max",I.options.max,_.dataMax)-X;return j?F*H/V+X:V*(F-X)/H},toPixels:function(F){return this.translate(F)},toValue:function(F){return this.translate(F,!0)}},O.xAxis.navigatorAxis.axis=O.xAxis,O.xAxis.navigatorAxis.toFixedRange=Y.prototype.toFixedRange.bind(O.xAxis.navigatorAxis)),r.options.scrollbar.enabled&&(r.scrollbar=O.scrollbar=new q(r.renderer,M(r.options.scrollbar,{margin:O.navigatorEnabled?0:10,vertical:r.inverted}),r),x(O.scrollbar,"changed",function(F){var j=O.size,I=j*this.to,_=j*this.from;O.hasDragged=O.scrollbar.hasDragged,O.render(0,0,_,I),this.shouldUpdateExtremes(F.DOMType)&&setTimeout(function(){O.onMouseUp(F)})})),O.addBaseSeriesEvents(),O.addChartEvents()},e.prototype.getUnionExtremes=function(r){var o,i=this.chart.xAxis[0],c=this.xAxis,a=c.options,s=i.options;return r&&i.dataMin===null||(o={dataMin:f(a&&a.min,h("min",s.min,i.dataMin,c.dataMin,c.min)),dataMax:f(a&&a.max,h("max",s.max,i.dataMax,c.dataMax,c.max))}),o},e.prototype.setBaseSeries=function(r,o){var i=this.chart,c=this.baseSeries=[];r=r||i.options&&i.options.navigator.baseSeries||(i.series.length?C(i.series,function(a){return!a.options.isInternal}).index:0),(i.series||[]).forEach(function(a,s){a.options.isInternal||!a.options.showInNavigator&&(s!==r&&a.options.id!==r||a.options.showInNavigator===!1)||c.push(a)}),this.xAxis&&!this.xAxis.navigatorAxis.fake&&this.updateNavigatorSeries(!0,o)},e.prototype.updateNavigatorSeries=function(r,o){var i,c,a,s=this,m=s.chart,A=s.baseSeries,O={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=s.series=(s.series||[]).filter(function(k){var z=k.baseSeries;return!(A.indexOf(z)<0&&(z&&(b(z,"updatedData",s.updatedDataHandler),delete z.navigatorSeries),k.chart&&k.destroy(),1))}),w=s.navigatorOptions.series;A&&A.length&&A.forEach(function(k){var z=k.navigatorSeries,F=y({color:k.color,visible:k.visible},P(w)?G.navigator.series:w);if(!z||s.navigatorOptions.adaptToUpdatedData!==!1){O.name="Navigator "+A.length,i=k.options||{},a=i.navigatorOptions||{},F.dataLabels=l(F.dataLabels),(c=M(i,O,F,a)).pointRange=f(F.pointRange,a.pointRange,G.plotOptions[c.type||"line"].pointRange);var j=a.data||F.data;s.hasNavigatorData=s.hasNavigatorData||!!j,c.data=j||i.data&&i.data.slice(0),z&&z.options?z.update(c,o):(k.navigatorSeries=m.initSeries(c),k.navigatorSeries.baseSeries=k,d.push(k.navigatorSeries))}}),(!w.data||A&&A.length)&&!P(w)||(s.hasNavigatorData=!1,(w=l(w)).forEach(function(k,z){O.name="Navigator "+(d.length+1),(c=M(G.navigator.series,{color:m.series[z]&&!m.series[z].options.isInternal&&m.series[z].color||m.options.colors[z]||m.options.colors[0]},O,k)).data=k.data,c.data&&(s.hasNavigatorData=!0,d.push(m.initSeries(c)))})),r&&this.addBaseSeriesEvents()},e.prototype.addBaseSeriesEvents=function(){var r=this,o=this,i=o.baseSeries||[];i[0]&&i[0].xAxis&&i[0].eventsToUnbind.push(x(i[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes)),i.forEach(function(c){c.eventsToUnbind.push(x(c,"show",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)})),c.eventsToUnbind.push(x(c,"hide",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)})),r.navigatorOptions.adaptToUpdatedData!==!1&&c.xAxis&&c.eventsToUnbind.push(x(c,"updatedData",r.updatedDataHandler)),c.eventsToUnbind.push(x(c,"remove",function(){this.navigatorSeries&&(v(o.series,this.navigatorSeries),p(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)}))})},e.prototype.getBaseSeriesMin=function(r){return this.baseSeries.reduce(function(o,i){return Math.min(o,i.xData&&i.xData.length?i.xData[0]:o)},r)},e.prototype.modifyNavigatorAxisExtremes=function(){var r=this.xAxis;if(r.getExtremes!==void 0){var o=this.getUnionExtremes(!0);!o||o.dataMin===r.min&&o.dataMax===r.max||(r.min=o.dataMin,r.max=o.dataMax)}},e.prototype.modifyBaseAxisExtremes=function(){var r,o,i=this,c=i.chart.navigator,a=i.getExtremes(),s=a.min,m=a.max,A=a.dataMin,O=a.dataMax,d=m-s,w=c.stickToMin,k=c.stickToMax,z=f(i.options.overscroll,0),F=c.series&&c.series[0],j=!!i.setExtremes;i.eventArgs&&i.eventArgs.trigger==="rangeSelectorButton"||(w&&(r=(o=A)+d),k&&(r=O+z,w||(o=Math.max(A,r-d,c.getBaseSeriesMin(F&&F.xData?F.xData[0]:-Number.MAX_VALUE)))),j&&(w||k)&&L(o)&&(i.min=i.userMin=o,i.max=i.userMax=r)),c.stickToMin=c.stickToMax=null},e.prototype.updatedDataHandler=function(){var r=this.chart.navigator,o=this,i=this.navigatorSeries,c=r.reversedExtremes?Math.round(r.zoomedMin)===0:Math.round(r.zoomedMax)>=Math.round(r.size);r.stickToMax=f(this.chart.options.navigator&&this.chart.options.navigator.stickToMax,c),r.stickToMin=r.shouldStickToMin(o,r),i&&!r.hasNavigatorData&&(i.options.pointStart=o.xData[0],i.setData(o.options.data,!1,null,!1))},e.prototype.shouldStickToMin=function(r,o){var i=o.getBaseSeriesMin(r.xData[0]),c=r.xAxis,a=c.max,s=c.min,m=c.options.range;return!(!L(a)||!L(s))&&(m&&a-i>0?a-i<m:s<=i)},e.prototype.addChartEvents=function(){this.eventsToUnbind||(this.eventsToUnbind=[]),this.eventsToUnbind.push(x(this.chart,"redraw",function(){var r=this.navigator,o=r&&(r.baseSeries&&r.baseSeries[0]&&r.baseSeries[0].xAxis||this.xAxis[0]);o&&r.render(o.min,o.max)}),x(this.chart,"getMargins",function(){var r=this,o=r.navigator,i=o.opposite?"plotTop":"marginBottom";r.inverted&&(i=o.opposite?"marginRight":"plotLeft"),r[i]=(r[i]||0)+(o.navigatorEnabled||!r.inverted?o.outlineHeight:0)+o.navigatorOptions.margin}))},e.prototype.destroy=function(){var r=this;this.removeEvents(),this.xAxis&&(v(this.chart.xAxis,this.xAxis),v(this.chart.axes,this.xAxis)),this.yAxis&&(v(this.chart.yAxis,this.yAxis),v(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){r[o]&&r[o].destroy&&r[o].destroy(),r[o]=null}),[this.handles].forEach(function(o){g(o)})},e}()}),rt(N,"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"}}}}),rt(N,"Stock/RangeSelector/RangeSelectorComposition.js",[N["Core/Defaults.js"],N["Stock/RangeSelector/RangeSelectorDefaults.js"],N["Core/Utilities.js"]],function(W,R,U){var Y,Z=W.defaultOptions,q=W.setOptions,$=U.addEvent,G=U.defined,D=U.extend,E=U.find,x=U.isNumber,T=U.merge,u=U.pick,p=[],g=[];function v(){var l,h,e=this.range,r=e.type,o=this.max,i=this.chart.time,c=function(s,m){var A=r==="year"?"FullYear":"Month",O=new i.Date(s),d=i.get(A,O);return i.set(A,O,d+m),d===i.get(A,O)&&i.set("Date",O,0),O.getTime()-s};x(e)?(l=o-e,h=e):e&&(l=o+c(o,-(e.count||1)),this.chart&&(this.chart.fixedRange=o-l));var a=u(this.dataMin,Number.MIN_VALUE);return x(l)||(l=a),l<=a&&(l=a,h===void 0&&(h=c(l,e.count)),this.newMax=Math.min(l+h,u(this.dataMax,Number.MAX_VALUE))),x(o)?!x(e)&&e&&e._offsetMin&&(l+=e._offsetMin):l=void 0,l}function y(){this.options.rangeSelector&&this.options.rangeSelector.enabled&&(this.rangeSelector=new Y(this))}function C(){var l=this,h=l.axes,e=l.rangeSelector;if(e){x(e.deferredYTDClick)&&(e.clickButton(e.deferredYTDClick),delete e.deferredYTDClick),h.forEach(function(o){o.updateNames(),o.setScale()}),l.getAxisMargins(),e.render();var r=e.options.verticalAlign;e.options.floating||(r==="bottom"?this.extraBottomMargin=!0:r!=="middle"&&(this.extraTopMargin=!0))}}function P(l){var h,e,r,o,i=l.rangeSelector,c=function(){i&&(h=l.xAxis[0].getExtremes(),e=l.legend,o=i&&i.options.verticalAlign,x(h.min)&&i.render(h.min,h.max),e.display&&o==="top"&&o===e.options.verticalAlign&&(r=T(l.spacingBox),e.options.layout==="vertical"?r.y=l.plotTop:r.y+=i.getHeight(),e.group.placed=!1,e.align(r)))};i&&(E(p,function(a){return a[0]===l})||p.push([l,[$(l.xAxis[0],"afterSetExtremes",function(a){i&&i.render(a.min,a.max)}),$(l,"redraw",c)]]),c())}function L(){for(var l=0,h=p.length;l<h;++l){var e=p[l];if(e[0]===this)return e[1].forEach(function(r){return r()}),void p.splice(l,1)}}function M(){var l=this.rangeSelector;if(l){var h=l.getHeight();this.extraTopMargin&&(this.plotTop+=h),this.extraBottomMargin&&(this.marginBottom+=h)}}function f(){var l=this.rangeSelector;if(l&&!l.options.floating){l.render();var h=l.options.verticalAlign;h==="bottom"?this.extraBottomMargin=!0:h!=="middle"&&(this.extraTopMargin=!0)}}function b(l){var h=l.options.rangeSelector,e=this.extraBottomMargin,r=this.extraTopMargin,o=this.rangeSelector;if(h&&h.enabled&&!G(o)&&this.options.rangeSelector&&(this.options.rangeSelector.enabled=!0,this.rangeSelector=o=new Y(this)),this.extraBottomMargin=!1,this.extraTopMargin=!1,o){P(this);var i=h&&h.verticalAlign||o.options&&o.options.verticalAlign;o.options.floating||(i==="bottom"?this.extraBottomMargin=!0:i!=="middle"&&(this.extraTopMargin=!0)),this.extraBottomMargin===e&&this.extraTopMargin===r||(this.isDirtyBox=!0)}}return{compose:function(l,h,e){Y=e,g.indexOf(l)===-1&&(g.push(l),l.prototype.minFromRange=v),g.indexOf(h)===-1&&(g.push(h),$(h,"afterGetContainer",y),$(h,"beforeRender",C),$(h,"destroy",L),$(h,"getMargins",M),$(h,"render",f),$(h,"update",b),h.prototype.callbacks.push(P)),g.indexOf(q)===-1&&(D(Z,{rangeSelector:R.rangeSelector}),D(Z.lang,R.lang))}}}),rt(N,"Stock/RangeSelector/RangeSelector.js",[N["Core/Axis/Axis.js"],N["Core/Defaults.js"],N["Core/Globals.js"],N["Stock/RangeSelector/RangeSelectorComposition.js"],N["Core/Renderer/SVG/SVGElement.js"],N["Core/Utilities.js"]],function(W,R,U,Y,Z,q){var $=R.defaultOptions,G=q.addEvent,D=q.createElement,E=q.css,x=q.defined,T=q.destroyObjectProperties,u=q.discardElement,p=q.extend,g=q.fireEvent,v=q.isNumber,y=q.merge,C=q.objectEach,P=q.pad,L=q.pick,M=q.pInt,f=q.splat,b=function(){function l(h){this.buttons=void 0,this.buttonOptions=l.prototype.defaultButtons,this.initialButtonGroupWidth=0,this.options=void 0,this.chart=h,this.init(h)}return l.compose=function(h,e){Y.compose(h,e,l)},l.prototype.clickButton=function(h,e){var r,o,i,c,a,s,m,A=this,O=A.chart,d=A.buttonOptions[h],w=O.xAxis[0],k=O.scroller&&O.scroller.getUnionExtremes()||w||{},z=d.type,F=d.dataGrouping,j=k.dataMin,I=k.dataMax,_=w&&Math.round(Math.min(w.max,L(I,w.max))),V=d._range,X=!0;if(j!==null&&I!==null){if(O.fixedRange=V,A.setSelected(h),F&&(this.forcedDataGrouping=!0,W.prototype.setDataGrouping.call(w||{chart:this.chart},F,!1),this.frozenStates=d.preserveDataGrouping),z==="month"||z==="year")w?(s={range:d,max:_,chart:O,dataMin:j,dataMax:I},r=w.minFromRange.call(s),v(s.newMax)&&(_=s.newMax),X=!1):V=d;else if(V)r=Math.max(_-V,j),_=Math.min(r+V,I),X=!1;else if(z==="ytd"){if(!w)return void(A.deferredYTDClick=h);I!==void 0&&j!==void 0||(j=Number.MAX_VALUE,I=Number.MIN_VALUE,O.series.forEach(function(H){var Q=H.xData;Q&&(j=Math.min(Q[0],j),I=Math.max(Q[Q.length-1],I))}),e=!1),r=i=(m=A.getYTDExtremes(I,j,O.time.useUTC)).min,_=m.max}else z==="all"&&w&&(O.navigator&&O.navigator.baseSeries[0]&&(O.navigator.baseSeries[0].xAxis.options.range=void 0),r=j,_=I);X&&d._offsetMin&&x(r)&&(r+=d._offsetMin),d._offsetMax&&x(_)&&(_+=d._offsetMax),this.dropdown&&(this.dropdown.selectedIndex=h+1),w?w.setExtremes(r,_,L(e,!0),void 0,{trigger:"rangeSelectorButton",rangeSelectorButton:d}):(o=f(O.options.xAxis)[0],a=o.range,o.range=V,c=o.min,o.min=i,G(O,"load",function(){o.range=a,o.min=c})),g(this,"afterBtnClick")}},l.prototype.setSelected=function(h){this.selected=this.options.selected=h},l.prototype.init=function(h){var e=this,r=h.options.rangeSelector,o=r.buttons||e.defaultButtons.slice(),i=r.selected,c=function(){var a=e.minInput,s=e.maxInput;a&&a.blur&&g(a,"blur"),s&&s.blur&&g(s,"blur")};e.chart=h,e.options=r,e.buttons=[],e.buttonOptions=o,this.eventsToUnbind=[],this.eventsToUnbind.push(G(h.container,"mousedown",c)),this.eventsToUnbind.push(G(h,"resize",c)),o.forEach(e.computeButtonRange),i!==void 0&&o[i]&&this.clickButton(i,!1),this.eventsToUnbind.push(G(h,"load",function(){h.xAxis&&h.xAxis[0]&&G(h.xAxis[0],"setExtremes",function(a){this.max-this.min!==h.fixedRange&&a.trigger!=="rangeSelectorButton"&&a.trigger!=="updatedData"&&e.forcedDataGrouping&&!e.frozenStates&&this.setDataGrouping(!1,!1)})}))},l.prototype.updateButtonStates=function(){var h=this,e=this.chart,r=this.dropdown,o=e.xAxis[0],i=Math.round(o.max-o.min),c=!o.hasVisibleSeries,a=864e5,s=e.scroller&&e.scroller.getUnionExtremes()||o,m=s.dataMin,A=s.dataMax,O=h.getYTDExtremes(A,m,e.time.useUTC),d=O.min,w=O.max,k=h.selected,z=h.options.allButtonsEnabled,F=h.buttons,j=v(k);h.buttonOptions.forEach(function(I,_){var V=I._range,X=I.type,H=I.count||1,Q=F[_],et=I._offsetMax-I._offsetMin,tt=_===k,st=V>A-m,ct=V<o.minRange,gt=0,mt=!1,bt=!1,yt=V===i;(X==="month"||X==="year")&&i+36e5>={month:28,year:365}[X]*a*H-et&&i-36e5<={month:31,year:366}[X]*a*H+et?yt=!0:X==="ytd"?(yt=w-d+et===i,mt=!tt):X==="all"&&(yt=o.max-o.min>=A-m,bt=!tt&&j&&yt);var dt=!z&&(st||ct||bt||c),ot=tt&&yt||yt&&!j&&!mt||tt&&h.frozenStates;dt?gt=3:ot&&(j=!0,gt=2),Q.state!==gt&&(Q.setState(gt),r&&(r.options[_+1].disabled=dt,gt===2&&(r.selectedIndex=_+1)),gt===0&&k===_&&h.setSelected())})},l.prototype.computeButtonRange=function(h){var e=h.type,r=h.count||1,o={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5};o[e]?h._range=o[e]*r:e!=="month"&&e!=="year"||(h._range=24*{month:30,year:365}[e]*36e5*r),h._offsetMin=L(h.offsetMin,0),h._offsetMax=L(h.offsetMax,0),h._range+=h._offsetMax-h._offsetMin},l.prototype.getInputValue=function(h){var e=h==="min"?this.minInput:this.maxInput,r=this.chart.options.rangeSelector,o=this.chart.time;return e?(e.type==="text"&&r.inputDateParser||this.defaultInputDateParser)(e.value,o.useUTC,o):0},l.prototype.setInputValue=function(h,e){var r=this.options,o=this.chart.time,i=h==="min"?this.minInput:this.maxInput,c=h==="min"?this.minDateBox:this.maxDateBox;if(i){var a=i.getAttribute("data-hc-time"),s=x(a)?Number(a):void 0;if(x(e)){var m=s;x(m)&&i.setAttribute("data-hc-time-previous",m),i.setAttribute("data-hc-time",e),s=e}i.value=o.dateFormat(this.inputTypeFormats[i.type]||r.inputEditDateFormat,s),c&&c.attr({text:o.dateFormat(r.inputDateFormat,s)})}},l.prototype.setInputExtremes=function(h,e,r){var o=h==="min"?this.minInput:this.maxInput;if(o){var i=this.inputTypeFormats[o.type],c=this.chart.time;if(i){var a=c.dateFormat(i,e);o.min!==a&&(o.min=a);var s=c.dateFormat(i,r);o.max!==s&&(o.max=s)}}},l.prototype.showInput=function(h){var e=h==="min"?this.minDateBox:this.maxDateBox,r=h==="min"?this.minInput:this.maxInput;if(r&&e&&this.inputGroup){var o=r.type==="text",i=this.inputGroup,c=i.translateX,a=i.translateY,s=this.options.inputBoxWidth;E(r,{width:o?e.width+(s?-2:20)+"px":"auto",height:o?e.height-2+"px":"auto",border:"2px solid silver"}),E(r,o&&s?{left:c+e.x+"px",top:a+"px"}:{left:Math.min(Math.round(e.x+c-(r.offsetWidth-e.width)/2),this.chart.chartWidth-r.offsetWidth)+"px",top:a-(r.offsetHeight-e.height)/2+"px"})}},l.prototype.hideInput=function(h){var e=h==="min"?this.minInput:this.maxInput;e&&E(e,{top:"-9999em",border:0,width:"1px",height:"1px"})},l.prototype.defaultInputDateParser=function(h,e,r){var o,i=h.split("/").join("-").split(" ").join("T");if(i.indexOf("T")===-1&&(i+="T00:00"),e)i+="Z";else if(U.isSafari&&(!((o=i).length>6)||o.lastIndexOf("-")!==o.length-6&&o.lastIndexOf("+")!==o.length-6)){var c=new Date(i).getTimezoneOffset()/60;i+=c<=0?"+".concat(P(-c),":00"):"-".concat(P(c),":00")}var a=Date.parse(i);if(!v(a)){var s=h.split("-");a=Date.UTC(M(s[0]),M(s[1])-1,M(s[2]))}return r&&e&&v(a)&&(a+=r.getTimezoneOffset(a)),a},l.prototype.drawInput=function(h){var e=this,r=e.chart,o=e.div,i=e.inputGroup,c=this,a=r.renderer.style||{},s=r.renderer,m=r.options.rangeSelector,A=$.lang,O=h==="min";function d(){var I=c.maxInput,_=c.minInput,V=r.xAxis[0],X=r.scroller&&r.scroller.xAxis?r.scroller.xAxis:V,H=X.dataMin,Q=X.dataMax,et=c.getInputValue(h);et!==Number(F.getAttribute("data-hc-time-previous"))&&v(et)&&(F.setAttribute("data-hc-time-previous",et),O&&I&&v(H)?et>Number(I.getAttribute("data-hc-time"))?et=void 0:et<H&&(et=H):_&&v(Q)&&(et<Number(_.getAttribute("data-hc-time"))?et=void 0:et>Q&&(et=Q)),et!==void 0&&V.setExtremes(O?et:V.min,O?V.max:et,void 0,void 0,{trigger:"rangeSelectorInput"}))}var w=A[O?"rangeSelectorFrom":"rangeSelectorTo"]||"",k=s.label(w,0).addClass("highcharts-range-label").attr({padding:w?2:0,height:w?m.inputBoxHeight:0}).add(i),z=s.label("",0).addClass("highcharts-range-input").attr({padding:2,width:m.inputBoxWidth,height:m.inputBoxHeight,"text-align":"center"}).on("click",function(){c.showInput(h),c[h+"Input"].focus()});r.styledMode||z.attr({stroke:m.inputBoxBorderColor,"stroke-width":1}),z.add(i);var F=D("input",{name:h,className:"highcharts-range-selector"},void 0,o);F.setAttribute("type",function(I){if(I.indexOf("%L")!==-1)return"text";var _=["a","A","d","e","w","b","B","m","o","y","Y"].some(function(X){return I.indexOf("%"+X)!==-1}),V=["H","k","I","l","M","S"].some(function(X){return I.indexOf("%"+X)!==-1});return _&&V?"datetime-local":_?"date":V?"time":"text"}(m.inputDateFormat||"%b %e, %Y")),r.styledMode||(k.css(y(a,m.labelStyle)),z.css(y({color:"#333333"},a,m.inputStyle)),E(F,p({position:"absolute",border:0,boxShadow:"0 0 15px rgba(0,0,0,0.3)",width:"1px",height:"1px",padding:0,textAlign:"center",fontSize:a.fontSize,fontFamily:a.fontFamily,top:"-9999em"},m.inputStyle))),F.onfocus=function(){c.showInput(h)},F.onblur=function(){F===U.doc.activeElement&&d(),c.hideInput(h),c.setInputValue(h),F.blur()};var j=!1;return F.onchange=function(){j||(d(),c.hideInput(h),F.blur())},F.onkeypress=function(I){I.keyCode===13&&d()},F.onkeydown=function(I){j=!0,I.keyCode!==38&&I.keyCode!==40||d()},F.onkeyup=function(){j=!1},{dateBox:z,input:F,label:k}},l.prototype.getPosition=function(){var h=this.chart,e=h.options.rangeSelector,r=e.verticalAlign==="top"?h.plotTop-h.axisOffset[0]:0;return{buttonTop:r+e.buttonPosition.y,inputTop:r+e.inputPosition.y-10}},l.prototype.getYTDExtremes=function(h,e,r){var o=this.chart.time,i=new o.Date(h),c=o.get("FullYear",i),a=r?o.Date.UTC(c,0,1):+new o.Date(c,0,1),s=Math.max(e,a),m=i.getTime();return{max:Math.min(h||m,m),min:s}},l.prototype.render=function(h,e){var r=this.chart,o=r.renderer,i=r.container,c=r.options,a=c.rangeSelector,s=L(c.chart.style&&c.chart.style.zIndex,0)+1,m=a.inputEnabled,A=this.rendered;if(a.enabled!==!1){if(!A&&(this.group=o.g("range-selector-group").attr({zIndex:7}).add(),this.div=D("div",void 0,{position:"relative",height:0,zIndex:s}),this.buttonOptions.length&&this.renderButtons(),i.parentNode&&i.parentNode.insertBefore(this.div,i),m)){this.inputGroup=o.g("input-group").add(this.group);var O=this.drawInput("min");this.minDateBox=O.dateBox,this.minLabel=O.label,this.minInput=O.input;var d=this.drawInput("max");this.maxDateBox=d.dateBox,this.maxLabel=d.label,this.maxInput=d.input}if(m){this.setInputValue("min",h),this.setInputValue("max",e);var w=r.scroller&&r.scroller.getUnionExtremes()||r.xAxis[0]||{};if(x(w.dataMin)&&x(w.dataMax)){var k=r.xAxis[0].minRange||0;this.setInputExtremes("min",w.dataMin,Math.min(w.dataMax,this.getInputValue("max"))-k),this.setInputExtremes("max",Math.max(w.dataMin,this.getInputValue("min"))+k,w.dataMax)}if(this.inputGroup){var z=0;[this.minLabel,this.minDateBox,this.maxLabel,this.maxDateBox].forEach(function(F){if(F){var j=F.getBBox().width;j&&(F.attr({x:z}),z+=j+a.inputSpacing)}})}}this.alignElements(),this.rendered=!0}},l.prototype.renderButtons=function(){var h=this,e=this,r=e.buttons,o=e.chart,i=e.options,c=$.lang,a=o.renderer,s=y(i.buttonTheme),m=s&&s.states,A=s.width||28;delete s.width,delete s.states,this.buttonGroup=a.g("range-selector-buttons").add(this.group);var O=this.dropdown=D("select",void 0,{position:"absolute",width:"1px",height:"1px",padding:0,border:0,top:"-9999em",cursor:"pointer",opacity:1e-4},this.div);G(O,"touchstart",function(){O.style.fontSize="16px"}),[[U.isMS?"mouseover":"mouseenter"],[U.isMS?"mouseout":"mouseleave"],["change","click"]].forEach(function(d){var w=d[0],k=d[1];G(O,w,function(){var z=r[h.currentButtonIndex()];z&&g(z.element,k||w)})}),this.zoomText=a.label(c&&c.rangeSelectorZoom||"",0).attr({padding:i.buttonTheme.padding,height:i.buttonTheme.height,paddingLeft:0,paddingRight:0}).add(this.buttonGroup),this.chart.styledMode||(this.zoomText.css(i.labelStyle),s["stroke-width"]=L(s["stroke-width"],0)),D("option",{textContent:this.zoomText.textStr,disabled:!0},void 0,O),this.buttonOptions.forEach(function(d,w){D("option",{textContent:d.title||d.text},void 0,O),r[w]=a.button(d.text,0,0,function(k){var z,F=d.events&&d.events.click;F&&(z=F.call(d,k)),z!==!1&&h.clickButton(w),h.isActive=!0},s,m&&m.hover,m&&m.select,m&&m.disabled).attr({"text-align":"center",width:A}).add(h.buttonGroup),d.title&&r[w].attr("title",d.title)})},l.prototype.alignElements=function(){var h=this,e=this,r=e.buttonGroup,o=e.buttons,i=e.chart,c=e.group,a=e.inputGroup,s=e.options,m=e.zoomText,A=i.options,O=A.exporting&&A.exporting.enabled!==!1&&A.navigation&&A.navigation.buttonOptions,d=s.buttonPosition,w=s.inputPosition,k=s.verticalAlign,z=function(mt,bt){return O&&h.titleCollision(i)&&k==="top"&&bt.align==="right"&&bt.y-mt.getBBox().height-12<(O.y||0)+(O.height||0)+i.spacing[0]?-40:0},F=i.plotLeft;if(c&&d&&w){var j=d.x-i.spacing[3];if(r){if(this.positionButtons(),!this.initialButtonGroupWidth){var I=0;m&&(I+=m.getBBox().width+5),o.forEach(function(mt,bt){I+=mt.width,bt!==o.length-1&&(I+=s.buttonSpacing)}),this.initialButtonGroupWidth=I}F-=i.spacing[3],this.updateButtonStates();var _=z(r,d);this.alignButtonGroup(_),c.placed=r.placed=i.hasLoaded}var V=0;a&&(V=z(a,w),w.align==="left"?j=F:w.align==="right"&&(j=-Math.max(i.axisOffset[1],-V)),a.align({y:w.y,width:a.getBBox().width,align:w.align,x:w.x+j-2},!0,i.spacingBox),a.placed=i.hasLoaded),this.handleCollision(V),c.align({verticalAlign:k},!0,i.spacingBox);var X=c.alignAttr.translateY,H=c.getBBox().height+20,Q=0;if(k==="bottom"){var et=i.legend&&i.legend.options;Q=X-(H=H+(et&&et.verticalAlign==="bottom"&&et.enabled&&!et.floating?i.legend.legendHeight+L(et.margin,10):0)-20)-(s.floating?0:s.y)-(i.titleOffset?i.titleOffset[2]:0)-10}k==="top"?(s.floating&&(Q=0),i.titleOffset&&i.titleOffset[0]&&(Q=i.titleOffset[0]),Q+=i.margin[0]-i.spacing[0]||0):k==="middle"&&(w.y===d.y?Q=X:(w.y||d.y)&&(w.y<0||d.y<0?Q-=Math.min(w.y,d.y):Q=X-H)),c.translate(s.x,s.y+Math.floor(Q));var tt=this,st=tt.minInput,ct=tt.maxInput,gt=tt.dropdown;s.inputEnabled&&st&&ct&&(st.style.marginTop=c.translateY+"px",ct.style.marginTop=c.translateY+"px"),gt&&(gt.style.marginTop=c.translateY+"px")}},l.prototype.alignButtonGroup=function(h,e){var r=this,o=r.chart,i=r.options,c=r.buttonGroup,a=i.buttonPosition,s=o.plotLeft-o.spacing[3],m=a.x-o.spacing[3];a.align==="right"?m+=h-s:a.align==="center"&&(m-=s/2),c&&c.align({y:a.y,width:L(e,this.initialButtonGroupWidth),align:a.align,x:m},!0,o.spacingBox)},l.prototype.positionButtons=function(){var h=this,e=h.buttons,r=h.chart,o=h.options,i=h.zoomText,c=r.hasLoaded?"animate":"attr",a=o.buttonPosition,s=r.plotLeft,m=s;i&&i.visibility!=="hidden"&&(i[c]({x:L(s+a.x,s)}),m+=a.x+i.getBBox().width+5);for(var A=0,O=this.buttonOptions.length;A<O;++A)e[A].visibility!=="hidden"?(e[A][c]({x:m}),m+=e[A].width+o.buttonSpacing):e[A][c]({x:s})},l.prototype.handleCollision=function(h){var e=this,r=this,o=r.chart,i=r.buttonGroup,c=r.inputGroup,a=this.options,s=a.buttonPosition,m=a.dropdown,A=a.inputPosition,O=function(){var k=0;return e.buttons.forEach(function(z){var F=z.getBBox();F.width>k&&(k=F.width)}),k},d=function(k){if(c&&i){var z=c.alignAttr.translateX+c.alignOptions.x-h+c.getBBox().x+2,F=c.alignOptions.width,j=i.alignAttr.translateX+i.getBBox().x;return j+k>z&&z+F>j&&s.y<A.y+c.getBBox().height}return!1},w=function(){c&&i&&c.attr({translateX:c.alignAttr.translateX+(o.axisOffset[1]>=-h?0:-h),translateY:c.alignAttr.translateY+i.getBBox().height+10})};if(i){if(m==="always")return this.collapseButtons(h),void(d(O())&&w());m==="never"&&this.expandButtons()}c&&i?A.align===s.align||d(this.initialButtonGroupWidth+20)?m==="responsive"?(this.collapseButtons(h),d(O())&&w()):w():m==="responsive"&&this.expandButtons():i&&m==="responsive"&&(this.initialButtonGroupWidth>o.plotWidth?this.collapseButtons(h):this.expandButtons())},l.prototype.collapseButtons=function(h){var e=this,r=e.buttons,o=e.buttonOptions,i=e.chart,c=e.dropdown,a=e.options,s=e.zoomText,m=i.userOptions.rangeSelector&&i.userOptions.rangeSelector.buttonTheme||{},A=function(w){return{text:w?w+" ▾":"▾",width:"auto",paddingLeft:L(a.buttonTheme.paddingLeft,m.padding,8),paddingRight:L(a.buttonTheme.paddingRight,m.padding,8)}};s&&s.hide();var O=!1;o.forEach(function(w,k){var z=r[k];z.state!==2?z.hide():(z.show(),z.attr(A(w.text)),O=!0)}),O||(c&&(c.selectedIndex=0),r[0].show(),r[0].attr(A(this.zoomText&&this.zoomText.textStr)));var d=a.buttonPosition.align;this.positionButtons(),d!=="right"&&d!=="center"||this.alignButtonGroup(h,r[this.currentButtonIndex()].getBBox().width),this.showDropdown()},l.prototype.expandButtons=function(){var h=this,e=h.buttons,r=h.buttonOptions,o=h.options,i=h.zoomText;this.hideDropdown(),i&&i.show(),r.forEach(function(c,a){var s=e[a];s.show(),s.attr({text:c.text,width:o.buttonTheme.width||28,paddingLeft:L(o.buttonTheme.paddingLeft,"unset"),paddingRight:L(o.buttonTheme.paddingRight,"unset")}),s.state<2&&s.setState(0)}),this.positionButtons()},l.prototype.currentButtonIndex=function(){var h=this.dropdown;return h&&h.selectedIndex>0?h.selectedIndex-1:0},l.prototype.showDropdown=function(){var h=this,e=h.buttonGroup,r=h.buttons,o=h.chart,i=h.dropdown;if(e&&i){var c=e.translateX,a=e.translateY,s=r[this.currentButtonIndex()].getBBox();E(i,{left:o.plotLeft+c+"px",top:a+.5+"px",width:s.width+"px",height:s.height+"px"}),this.hasVisibleDropdown=!0}},l.prototype.hideDropdown=function(){var h=this.dropdown;h&&(E(h,{top:"-9999em",width:"1px",height:"1px"}),this.hasVisibleDropdown=!1)},l.prototype.getHeight=function(){var h=this.options,e=this.group,r=h.inputPosition,o=h.buttonPosition,i=h.y,c=o.y,a=r.y,s=0;if(h.height)return h.height;this.alignElements(),s=e?e.getBBox(!0).height+13+i:0;var m=Math.min(a,c);return(a<0&&c<0||a>0&&c>0)&&(s+=Math.abs(m)),s},l.prototype.titleCollision=function(h){return!(h.options.title.text||h.options.subtitle.text)},l.prototype.update=function(h){var e=this.chart;y(!0,e.options.rangeSelector,h),this.destroy(),this.init(e),this.render()},l.prototype.destroy=function(){var h=this,e=h.minInput,r=h.maxInput;h.eventsToUnbind&&(h.eventsToUnbind.forEach(function(o){return o()}),h.eventsToUnbind=void 0),T(h.buttons),e&&(e.onfocus=e.onblur=e.onchange=null),r&&(r.onfocus=r.onblur=r.onchange=null),C(h,function(o,i){o&&i!=="chart"&&(o instanceof Z?o.destroy():o instanceof ft.HTMLElement&&u(o)),o!==l.prototype[i]&&(h[i]=null)},this)},l}();return p(b.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"}}),b}),rt(N,"Core/Axis/OrdinalAxis.js",[N["Core/Axis/Axis.js"],N["Core/Globals.js"],N["Core/Series/Series.js"],N["Core/Utilities.js"]],function(W,R,U,Y){var Z,q=Y.addEvent,$=Y.correctFloat,G=Y.css,D=Y.defined,E=Y.error,x=Y.pick,T=Y.timeUnits,u=[];return function(p){function g(r,o,i,c,a,s,m){a===void 0&&(a=[]),s===void 0&&(s=0);var A,O,d,w,k,z={},F=this.options.tickPixelInterval,j=this.chart.time,I=[],_=0,V=[],X=-Number.MAX_VALUE;if(!this.options.ordinal&&!this.options.breaks||!a||a.length<3||o===void 0)return j.getTimeTicks.apply(j,arguments);var H=a.length;for(A=0;A<H;A++){if(k=A&&a[A-1]>i,a[A]<o&&(_=A),A===H-1||a[A+1]-a[A]>5*s||k){if(a[A]>X){for(O=j.getTimeTicks(r,a[_],a[A],c);O.length&&O[0]<=X;)O.shift();O.length&&(X=O[O.length-1]),I.push(V.length),V=V.concat(O)}_=A+1}if(k)break}if(O){if(w=O.info,m&&w.unitRange<=T.hour){for(A=V.length-1,_=1;_<A;_++)j.dateFormat("%d",V[_])!==j.dateFormat("%d",V[_-1])&&(z[V[_]]="day",d=!0);d&&(z[V[0]]="day"),w.higherRanks=z}w.segmentStarts=I,V.info=w}else E(12,!1,this.chart);if(m&&D(F)){for(var Q=V.length,et=[],tt=[],st=void 0,ct=void 0,gt=void 0,mt=void 0,bt=void 0,yt=Q;yt--;)ct=this.translate(V[yt]),gt&&(tt[yt]=gt-ct),et[yt]=gt=ct;for(tt.sort(),(mt=tt[Math.floor(tt.length/2)])<.6*F&&(mt=null),yt=V[Q-1]>i?Q-1:Q,gt=void 0;yt--;)ct=et[yt],bt=Math.abs(gt-ct),gt&&bt<.8*F&&(mt===null||bt<.8*mt)?(z[V[yt]]&&!z[V[yt+1]]?(st=yt+1,gt=ct):st=yt,V.splice(st,1)):gt=ct}return V}function v(r){var o=this.ordinal.positions;if(!o)return r;var i,c=o.length-1;return r<0?r=o[0]:r>c?r=o[c]:i=r-(c=Math.floor(r)),i!==void 0&&o[c]!==void 0?o[c]+(i?i*(o[c+1]-o[c]):0):r}function y(r){var o=this,i=o.ordinal,c=o.old?o.old.min:o.min,a=o.old?o.old.transA:o.transA,s=i.positions;if(!s)return r;var m=(r-c)*a+o.minPixelPadding;if(m>0&&m<o.left+o.len||(i.extendedOrdinalPositions||(i.extendedOrdinalPositions=i.getExtendedPositions()),s=i.extendedOrdinalPositions),s&&s.length){var A=i.getIndexOfPoint(m,s),O=$(A%1);if(A>=0&&A<s.length-1){var d=s[Math.floor(A)],w=s[Math.ceil(A)]-d;return s[Math.floor(A)]+O*w}var k=s.length,z=s[0],F=s[k-1],j=(F-z)/(k-1);return A<0?z+j*A:F+j*(A-k)}return r}function C(r,o){var i=p.Additions.findIndexOf(r,o,!0);return r[i]===o?i:i+(o-r[i])/(r[i+1]-r[i])}function P(){var r=this;r.ordinal||(r.ordinal=new p.Additions(r))}function L(){var r=this;r.isXAxis&&D(r.options.overscroll)&&r.max===r.dataMax&&(!r.chart.mouseIsDown||r.isInternal)&&(!r.eventArgs||r.eventArgs&&r.eventArgs.trigger!=="navigator")&&(r.max+=r.options.overscroll,!r.isInternal&&D(r.userMin)&&(r.min+=r.options.overscroll))}function M(){var r=this;r.horiz&&!r.isDirty&&(r.isDirty=r.isOrdinal&&r.chart.navigator&&!r.chart.navigator.adaptToUpdatedData)}function f(){var r=this;r.ordinal&&(r.ordinal.beforeSetTickPositions(),r.tickInterval=r.ordinal.postProcessTickInterval(r.tickInterval))}function b(r){var o=this,i=o.xAxis[0],c=i.options.overscroll,a=r.originalEvent.chartX,s=o.options.chart.panning,m=!1;if(s&&s.type!=="y"&&i.options.ordinal&&i.series.length){var A=o.mouseDownX,O=i.getExtremes(),d=O.dataMax,w=O.min,k=O.max,z=o.hoverPoints,F=i.closestPointRange||i.ordinal&&i.ordinal.overscrollPointsRange,j=(A-a)/(i.translationSlope*(i.ordinal.slope||F)),I=i.ordinal.getExtendedPositions(),_={ordinal:{positions:I,extendedOrdinalPositions:I}},V=i.index2val,X=i.val2lin,H=void 0,Q=void 0,et=void 0,tt=void 0;_.ordinal.positions?Math.abs(j)>1&&(z&&z.forEach(function(st){st.setState()}),j<0?(et=_,tt=i.ordinal.positions?i:_):(et=i.ordinal.positions?i:_,tt=_),d>(Q=tt.ordinal.positions)[Q.length-1]&&Q.push(d),o.fixedRange=k-w,(H=i.navigatorAxis.toFixedRange(void 0,void 0,V.apply(et,[X.apply(et,[w,!0])+j]),V.apply(tt,[X.apply(tt,[k,!0])+j]))).min>=Math.min(O.dataMin,w)&&H.max<=Math.max(d,k)+c&&i.setExtremes(H.min,H.max,!0,!1,{trigger:"pan"}),o.mouseDownX=a,G(o.container,{cursor:"move"})):m=!0}else m=!0;m||s&&/y/.test(s.type)?c&&(i.max=i.dataMax+c):r.preventDefault()}function l(){var r=this.xAxis;r&&r.options.ordinal&&(delete r.ordinal.index,delete r.ordinal.extendedOrdinalPositions)}function h(r,o){var i=this.ordinal,c=i.positions,a=i.slope,s=i.extendedOrdinalPositions;if(!c)return r;var m,A=c.length;if(c[0]<=r&&c[A-1]>=r)m=C(c,r);else{if(s||(s=i.getExtendedPositions&&i.getExtendedPositions(),i.extendedOrdinalPositions=s),!s||!s.length)return r;var O=s.length;a||(a=(s[O-1]-s[0])/O);var d=C(s,c[0]);m=r>=s[0]&&r<=s[O-1]?C(s,r)-d:r<s[0]?-d-(s[0]-r)/a:(r-s[O-1])/a+O-d}return o?m:a*(m||0)+i.offset}p.compose=function(r,o,i){if(u.indexOf(r)===-1){u.push(r);var c=r.prototype;c.getTimeTicks=g,c.index2val=v,c.lin2val=y,c.val2lin=h,c.ordinal2lin=c.val2lin,q(r,"afterInit",P),q(r,"foundExtremes",L),q(r,"afterSetScale",M),q(r,"initialAxisTranslation",f)}return u.indexOf(i)===-1&&(u.push(i),q(i,"pan",b)),u.indexOf(o)===-1&&(u.push(o),q(o,"updatedData",l)),r};var e=function(){function r(o){this.index={},this.axis=o}return r.prototype.beforeSetTickPositions=function(){var o,i,c,a,s,m,A,O=this.axis,d=O.ordinal,w=O.getExtremes(),k=w.min,z=w.max,F=O.isXAxis&&!!O.options.breaks,j=O.options.ordinal,I=O.chart.options.chart.ignoreHiddenSeries,_=[],V=Number.MAX_VALUE,X=!1,H=!1,Q=!1;if(j||F){var et=0;if(O.series.forEach(function(tt,st){if(i=[],st>0&&tt.options.id!=="highcharts-navigator-series"&&tt.processedXData.length>1&&(H=et!==tt.processedXData[1]-tt.processedXData[0]),et=tt.processedXData[1]-tt.processedXData[0],tt.boosted&&(Q=tt.boosted),(!I||tt.visible!==!1)&&(tt.takeOrdinalPosition!==!1||F)&&(_=_.concat(tt.processedXData),o=_.length,_.sort(function(ct,gt){return ct-gt}),V=Math.min(V,x(tt.closestPointRange,V)),o)){for(st=0;st<o-1;)_[st]!==_[st+1]&&i.push(_[st+1]),st++;i[0]!==_[0]&&i.unshift(_[0]),_=i}}),H&&Q&&(_.pop(),_.shift()),(o=_.length)>2){for(c=_[1]-_[0],A=o-1;A--&&!X;)_[A+1]-_[A]!==c&&(X=!0);!O.options.keepOrdinalPadding&&(_[0]-k>c||z-_[_.length-1]>c)&&(X=!0)}else O.options.overscroll&&(o===2?V=_[1]-_[0]:o===1?(V=O.options.overscroll,_=[_[0],_[0]+V]):V=d.overscrollPointsRange);X||O.forceOrdinal?(O.options.overscroll&&(d.overscrollPointsRange=V,_=_.concat(d.getOverscrollPositions())),d.positions=_,a=O.ordinal2lin(Math.max(k,_[0]),!0),s=Math.max(O.ordinal2lin(Math.min(z,_[_.length-1]),!0),1),d.slope=m=(z-k)/(s-a),d.offset=k-a*m):(d.overscrollPointsRange=x(O.closestPointRange,d.overscrollPointsRange),d.positions=O.ordinal.slope=d.offset=void 0)}O.isOrdinal=j&&X,d.groupIntervalFactor=null},r.findIndexOf=function(o,i,c){for(var a,s=0,m=o.length-1;s<m;)o[a=Math.ceil((s+m)/2)]<=i?s=a:m=a-1;return o[s]===i||c?s:-1},r.prototype.getExtendedPositions=function(){var o,i=this,c=i.axis,a=c.constructor.prototype,s=c.chart,m=c.series[0].currentDataGrouping,A=m?m.count+m.unitName:"raw",O=c.options.overscroll,d=c.getExtremes(),w=void 0,k=i.index;return k||(k=i.index={}),k[A]||((o={series:[],chart:s,forceOrdinal:!1,getExtremes:function(){return{min:d.dataMin,max:d.dataMax+O}},getGroupPixelWidth:a.getGroupPixelWidth,getTimeTicks:a.getTimeTicks,options:{ordinal:!0},ordinal:{getGroupIntervalFactor:this.getGroupIntervalFactor},ordinal2lin:a.ordinal2lin,getIndexOfPoint:a.getIndexOfPoint,val2lin:a.val2lin}).ordinal.axis=o,c.series.forEach(function(z){(w={xAxis:o,xData:z.xData.slice(),chart:s,destroyGroupedData:R.noop,getProcessedData:U.prototype.getProcessedData,applyGrouping:U.prototype.applyGrouping}).xData=w.xData.concat(i.getOverscrollPositions()),w.options={dataGrouping:m?{firstAnchor:"firstPoint",anchor:"middle",lastAnchor:"lastPoint",enabled:!0,forced:!0,approximation:"open",units:[[m.unitName,[m.count]]]}:{enabled:!1}},o.series.push(w),z.processData.apply(w)}),w.closestPointRange!==w.basePointRange&&w.currentDataGrouping&&(o.forceOrdinal=!0),c.ordinal.beforeSetTickPositions.apply({axis:o}),k[A]=o.ordinal.positions),k[A]},r.prototype.getGroupIntervalFactor=function(o,i,c){var a,s,m=this,A=c.processedXData,O=A.length,d=[],w=m.groupIntervalFactor;if(!w){for(s=0;s<O-1;s++)d[s]=A[s+1]-A[s];d.sort(function(k,z){return k-z}),a=d[Math.floor(O/2)],o=Math.max(o,A[0]),i=Math.min(i,A[O-1]),m.groupIntervalFactor=w=O*a/(i-o)}return w},r.prototype.getIndexOfPoint=function(o,i){var c=this,a=c.axis,s=c.positions?c.positions[0]:0,m=a.series[0].points&&a.series[0].points[0]&&a.series[0].points[0].plotX||a.minPixelPadding;a.series.length>1&&a.series.forEach(function(d){d.points&&D(d.points[0])&&D(d.points[0].plotX)&&d.points[0].plotX<m&&d.points[0].plotX>=x(a.min,-1/0)&&(m=d.points[0].plotX)});var A=a.translationSlope*(c.slope||a.closestPointRange||c.overscrollPointsRange),O=(o-m)/A;return r.findIndexOf(i,s)+O},r.prototype.getOverscrollPositions=function(){var o=this.axis,i=o.options.overscroll,c=this.overscrollPointsRange,a=[],s=o.dataMax;if(D(c))for(;s<=o.dataMax+i;)s+=c,a.push(s);return a},r.prototype.postProcessTickInterval=function(o){var i=this.axis,c=this.slope;return c?i.options.breaks?i.closestPointRange||o:o/(c/i.closestPointRange):o},r}();p.Additions=e}(Z||(Z={})),Z}),rt(N,"Series/HLC/HLCPoint.js",[N["Core/Series/SeriesRegistry.js"]],function(W){var R,U=this&&this.__extends||(R=function(Z,q){return R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function($,G){$.__proto__=G}||function($,G){for(var D in G)G.hasOwnProperty(D)&&($[D]=G[D])},R(Z,q)},function(Z,q){function $(){this.constructor=Z}R(Z,q),Z.prototype=q===null?Object.create(q):($.prototype=q.prototype,new $)}),Y=function(Z){function q(){var $=Z!==null&&Z.apply(this,arguments)||this;return $.close=void 0,$.high=void 0,$.low=void 0,$.options=void 0,$.plotClose=void 0,$.series=void 0,$}return U(q,Z),q}(W.seriesTypes.column.prototype.pointClass);return Y}),rt(N,"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}}),rt(N,"Series/HLC/HLCSeries.js",[N["Series/HLC/HLCPoint.js"],N["Series/HLC/HLCSeriesDefaults.js"],N["Core/Series/SeriesRegistry.js"],N["Core/Utilities.js"]],function(W,R,U,Y){var Z,q=this&&this.__extends||(Z=function(x,T){return Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,p){u.__proto__=p}||function(u,p){for(var g in p)p.hasOwnProperty(g)&&(u[g]=p[g])},Z(x,T)},function(x,T){function u(){this.constructor=x}Z(x,T),x.prototype=T===null?Object.create(T):(u.prototype=T.prototype,new u)}),$=U.seriesTypes.column,G=Y.extend,D=Y.merge,E=function(x){function T(){var u=x!==null&&x.apply(this,arguments)||this;return u.data=void 0,u.options=void 0,u.points=void 0,u.yData=void 0,u}return q(T,x),T.prototype.extendStem=function(u,p,g){var v=u[0],y=u[1];typeof v[2]=="number"&&(v[2]=Math.max(g+p,v[2])),typeof y[2]=="number"&&(y[2]=Math.min(g-p,y[2]))},T.prototype.getPointPath=function(u,p){var g=p.strokeWidth(),v=u.series,y=g%2/2,C=Math.round(u.plotX)-y,P=Math.round(u.shapeArgs.width/2),L=u.plotClose,M=[["M",C,Math.round(u.yBottom)],["L",C,Math.round(u.plotHigh)]];return u.close!==null&&(L=Math.round(u.plotClose)+y,M.push(["M",C,L],["L",C+P,L]),v.extendStem(M,g/2,L)),M},T.prototype.drawSinglePoint=function(u){var p,g=u.series,v=g.chart,y=u.graphic;u.plotY!==void 0&&(y||(u.graphic=y=v.renderer.path().add(g.group)),v.styledMode||y.attr(g.pointAttribs(u,u.selected&&"select")),p=g.getPointPath(u,y),y[y?"animate":"attr"]({d:p}).addClass(u.getClassName(),!0))},T.prototype.drawPoints=function(){this.points.forEach(this.drawSinglePoint)},T.prototype.init=function(){x.prototype.init.apply(this,arguments),this.options.stacking=void 0},T.prototype.pointAttribs=function(u,p){var g=x.prototype.pointAttribs.call(this,u,p);return delete g.fill,g},T.prototype.toYData=function(u){return[u.high,u.low,u.close]},T.prototype.translate=function(){var u=this,p=u.yAxis,g=this.pointArrayMap&&this.pointArrayMap.slice()||[],v=g.map(function(y){return"plot".concat(y.charAt(0).toUpperCase()+y.slice(1))});v.push("yBottom"),g.push("low"),x.prototype.translate.apply(u),u.points.forEach(function(y){g.forEach(function(C,P){var L=y[C];L!==null&&(u.dataModify&&(L=u.dataModify.modifyValue(L)),y[v[P]]=p.toPixels(L,!0))}),y.tooltipPos[1]=y.plotHigh+p.pos-u.chart.plotTop})},T.defaultOptions=D($.defaultOptions,R),T}($);return G(E.prototype,{pointClass:W,animate:null,directTouch:!1,pointArrayMap:["high","low","close"],pointAttrToOptions:{stroke:"color","stroke-width":"lineWidth"},pointValKey:"close"}),U.registerSeriesType("hlc",E),E}),rt(N,"Series/OHLC/OHLCPoint.js",[N["Core/Series/SeriesRegistry.js"]],function(W){var R,U=this&&this.__extends||(R=function(Z,q){return R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function($,G){$.__proto__=G}||function($,G){for(var D in G)G.hasOwnProperty(D)&&($[D]=G[D])},R(Z,q)},function(Z,q){function $(){this.constructor=Z}R(Z,q),Z.prototype=q===null?Object.create(q):($.prototype=q.prototype,new $)}),Y=function(Z){function q(){var $=Z!==null&&Z.apply(this,arguments)||this;return $.open=void 0,$.options=void 0,$.plotOpen=void 0,$.series=void 0,$}return U(q,Z),q.prototype.getClassName=function(){return Z.prototype.getClassName.call(this)+(this.open<this.close?" highcharts-point-up":" highcharts-point-down")},q.prototype.resolveUpColor=function(){this.open<this.close&&!this.options.color&&this.series.options.upColor&&(this.color=this.series.options.upColor)},q.prototype.resolveColor=function(){Z.prototype.resolveColor.call(this),this.resolveUpColor()},q.prototype.getZone=function(){var $=Z.prototype.getZone.call(this);return this.resolveUpColor(),$},q.prototype.applyOptions=function(){return Z.prototype.applyOptions.apply(this,arguments),this.resolveColor&&this.resolveColor(),this},q}(W.seriesTypes.hlc.prototype.pointClass);return Y}),rt(N,"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/>'}}}),rt(N,"Series/OHLC/OHLCSeries.js",[N["Series/OHLC/OHLCPoint.js"],N["Series/OHLC/OHLCSeriesDefaults.js"],N["Core/Series/SeriesRegistry.js"],N["Core/Utilities.js"]],function(W,R,U,Y){var Z,q=this&&this.__extends||(Z=function(g,v){return Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,C){y.__proto__=C}||function(y,C){for(var P in C)C.hasOwnProperty(P)&&(y[P]=C[P])},Z(g,v)},function(g,v){function y(){this.constructor=g}Z(g,v),g.prototype=v===null?Object.create(v):(y.prototype=v.prototype,new y)}),$=U.seriesTypes.hlc,G=Y.addEvent,D=Y.extend,E=Y.merge,x=[];function T(g){var v=g.options,y=v.dataGrouping;y&&v.useOhlcData&&v.id!=="highcharts-navigator-series"&&(y.approximation="ohlc")}function u(g){var v=g.options;v.useOhlcData&&v.id!=="highcharts-navigator-series"&&D(this,{pointValKey:p.prototype.pointValKey,pointArrayMap:p.prototype.pointArrayMap,toYData:p.prototype.toYData})}var p=function(g){function v(){var y=g!==null&&g.apply(this,arguments)||this;return y.data=void 0,y.options=void 0,y.points=void 0,y}return q(v,g),v.compose=function(y){for(var C=[],P=1;P<arguments.length;P++)C[P-1]=arguments[P];x.indexOf(y)===-1&&(x.push(y),G(y,"afterSetOptions",T),G(y,"init",u))},v.prototype.getPointPath=function(y,C){var P=g.prototype.getPointPath.call(this,y,C),L=C.strokeWidth(),M=L%2/2,f=Math.round(y.plotX)-M,b=Math.round(y.shapeArgs.width/2),l=y.plotOpen;return y.open!==null&&(l=Math.round(y.plotOpen)+M,P.push(["M",f,l],["L",f-b,l]),g.prototype.extendStem.call(this,P,L/2,l)),P},v.prototype.pointAttribs=function(y,C){var P=g.prototype.pointAttribs.call(this,y,C),L=this.options;return delete P.fill,!y.options.color&&L.upColor&&y.open<y.close&&(P.stroke=L.upColor),P},v.prototype.toYData=function(y){return[y.open,y.high,y.low,y.close]},v.defaultOptions=E($.defaultOptions,R),v}($);return D(p.prototype,{pointClass:W,pointArrayMap:["open","high","low","close"]}),U.registerSeriesType("ohlc",p),p}),rt(N,"Series/Candlestick/CandlestickSeriesDefaults.js",[N["Core/Defaults.js"],N["Core/Utilities.js"]],function(W,R){return{states:{hover:{lineWidth:2}},threshold:null,lineColor:"#000000",lineWidth:1,upColor:"#ffffff",stickyTracking:!0}}),rt(N,"Series/Candlestick/CandlestickSeries.js",[N["Series/Candlestick/CandlestickSeriesDefaults.js"],N["Core/Defaults.js"],N["Core/Series/SeriesRegistry.js"],N["Core/Utilities.js"]],function(W,R,U,Y){var Z,q=this&&this.__extends||(Z=function(u,p){return Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,v){g.__proto__=v}||function(g,v){for(var y in v)v.hasOwnProperty(y)&&(g[y]=v[y])},Z(u,p)},function(u,p){function g(){this.constructor=u}Z(u,p),u.prototype=p===null?Object.create(p):(g.prototype=p.prototype,new g)}),$=R.defaultOptions,G=U.seriesTypes,D=G.column,E=G.ohlc,x=Y.merge,T=function(u){function p(){var g=u!==null&&u.apply(this,arguments)||this;return g.data=void 0,g.options=void 0,g.points=void 0,g}return q(p,u),p.prototype.pointAttribs=function(g,v){var y=D.prototype.pointAttribs.call(this,g,v),C=this.options,P=g.open<g.close,L=C.lineColor||this.color,M=g.color||this.color;if(y["stroke-width"]=C.lineWidth,y.fill=g.options.color||P&&C.upColor||M,y.stroke=g.options.lineColor||P&&C.upLineColor||L,v){var f=C.states[v];y.fill=f.color||y.fill,y.stroke=f.lineColor||y.stroke,y["stroke-width"]=f.lineWidth||y["stroke-width"]}return y},p.prototype.drawPoints=function(){for(var g=this,v=g.points,y=g.chart,C=g.yAxis.reversed,P=0,L=v;P<L.length;P++){var M=L[P],f=M.graphic,b=void 0,l=void 0,h=void 0,e=void 0,r=void 0,o=void 0,i=void 0,c=void 0,a=void 0,s=void 0,m=!f;M.plotY!==void 0&&(f||(M.graphic=f=y.renderer.path().add(g.group)),g.chart.styledMode||f.attr(g.pointAttribs(M,M.selected&&"select")).shadow(g.options.shadow),i=f.strokeWidth()%2/2,c=Math.round(M.plotX)-i,b=M.plotOpen,l=M.plotClose,h=Math.min(b,l),e=Math.max(b,l),s=Math.round(M.shapeArgs.width/2),r=C?e!==M.yBottom:Math.round(h)!==Math.round(M.plotHigh),o=C?Math.round(h)!==Math.round(M.plotHigh):e!==M.yBottom,h=Math.round(h)+i,e=Math.round(e)+i,(a=[]).push(["M",c-s,e],["L",c-s,h],["L",c+s,h],["L",c+s,e],["Z"],["M",c,h],["L",c,r?Math.round(C?M.yBottom:M.plotHigh):h],["M",c,e],["L",c,o?Math.round(C?M.plotHigh:M.yBottom):e]),f[m?"attr":"animate"]({d:a}).addClass(M.getClassName(),!0))}},p.defaultOptions=x(E.defaultOptions,$.plotOptions,{tooltip:E.defaultOptions.tooltip},W),p}(E);return U.registerSeriesType("candlestick",T),T}),rt(N,"Series/Flags/FlagsPoint.js",[N["Core/Series/SeriesRegistry.js"],N["Core/Utilities.js"]],function(W,R){var U,Y=this&&this.__extends||(U=function(G,D){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,x){E.__proto__=x}||function(E,x){for(var T in x)x.hasOwnProperty(T)&&(E[T]=x[T])},U(G,D)},function(G,D){function E(){this.constructor=G}U(G,D),G.prototype=D===null?Object.create(D):(E.prototype=D.prototype,new E)}),Z=W.seriesTypes.column.prototype.pointClass,q=R.isNumber,$=function(G){function D(){var E=G!==null&&G.apply(this,arguments)||this;return E.options=void 0,E.series=void 0,E.ttBelow=!1,E}return Y(D,G),D.prototype.isValid=function(){return q(this.y)||this.y===void 0},D.prototype.hasNewShapeType=function(){var E=this.options.shape||this.series.options.shape;return this.graphic&&E&&E!==this.graphic.symbolKey},D}(Z);return $}),rt(N,"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"}}}),rt(N,"Series/Flags/FlagsSymbols.js",[N["Core/Renderer/RendererRegistry.js"]],function(W){var R;return function(U){var Y=[];function Z($,G,D,E,x){var T=x&&x.anchorX||$,u=x&&x.anchorY||G,p=this.circle(T-1,u-1,2,2);return p.push(["M",T,u],["L",$,G+E],["L",$,G],["L",$+D,G],["L",$+D,G+E],["L",$,G+E],["Z"]),p}function q($,G){$[G+"pin"]=function(D,E,x,T,u){var p,g=u&&u.anchorX,v=u&&u.anchorY;if(G==="circle"&&T>x&&(D-=Math.round((T-x)/2),x=T),p=$[G](D,E,x,T),g&&v){var y=g;if(G==="circle")y=D+x/2;else{var C=p[0],P=p[1];C[0]==="M"&&P[0]==="L"&&(y=(C[1]+P[1])/2)}var L=E>v?E:E+T;p.push(["M",y,L],["L",g,v]),p=p.concat($.circle(g-1,v-1,2,2))}return p}}U.compose=function($){Y.indexOf($)===-1&&(Y.push($),(D=$.prototype.symbols).flag=Z,q(D,"circle"),q(D,"square"));var G=W.getRendererType();if(Y.indexOf(G)){Y.push(G);var D=$.prototype.symbols,E=G.prototype.symbols;E.circlepin=D.circlepin,E.flag=D.flag.bind(D),E.squarepin=D.squarepin}}}(R||(R={})),R}),rt(N,"Series/OnSeriesComposition.js",[N["Series/Column/ColumnSeries.js"],N["Core/Series/Series.js"],N["Core/Utilities.js"]],function(W,R,U){var Y,Z=W.prototype,q=R.prototype,$=U.defined,G=U.stableSort;return function(D){var E=[];function x(u){return q.getPlotBox.call(this.options.onSeries&&this.chart.get(this.options.onSeries)||this,u)}function T(){Z.translate.apply(this);var u,p,g,v,y,C,P,L=this,M=L.options,f=L.chart,b=L.points,l=M.onSeries,h=l&&f.get(l),e=h&&h.options.step,r=h&&h.points,o=f.inverted,i=L.xAxis,c=L.yAxis,a=b.length-1,s=M.onKey||"y",m=r&&r.length,A=0;if(h&&h.visible&&m)for(A=(h.pointXOffset||0)+(h.barW||0)/2,C=h.currentDataGrouping,v=r[m-1].x+(C?C.totalRange:0),G(b,function(O,d){return O.x-d.x}),s="plot"+s[0].toUpperCase()+s.substr(1);m--&&b[a]&&(g=r[m],(u=b[a]).y=g.y,!(g.x<=u.x&&g[s]!==void 0&&(u.x<=v&&(u.plotY=g[s],g.x<u.x&&!e&&(y=r[m+1])&&y[s]!==void 0&&(P=(u.x-g.x)/(y.x-g.x),u.plotY+=P*(y[s]-g[s]),u.y+=P*(y.y-g.y))),m++,--a<0))););b.forEach(function(O,d){var w;O.plotX+=A,(O.plotY===void 0||o)&&(O.plotX>=0&&O.plotX<=i.len?o?(O.plotY=i.translate(O.x,0,1,0,1),O.plotX=$(O.y)?c.translate(O.y,0,0,0,1):0):O.plotY=(i.opposite?0:L.yAxis.len)+i.offset:O.shapeArgs={}),(p=b[d-1])&&p.plotX===O.plotX&&(p.stackIndex===void 0&&(p.stackIndex=0),w=p.stackIndex+1),O.stackIndex=w}),this.onSeries=h}D.compose=function(u){if(E.indexOf(u)===-1){E.push(u);var p=u.prototype;p.getPlotBox=x,p.translate=T}return u},D.getPlotBox=x,D.translate=T}(Y||(Y={})),Y}),rt(N,"Series/Flags/FlagsSeries.js",[N["Series/Flags/FlagsPoint.js"],N["Series/Flags/FlagsSeriesDefaults.js"],N["Series/Flags/FlagsSymbols.js"],N["Core/Globals.js"],N["Series/OnSeriesComposition.js"],N["Core/Renderer/RendererUtilities.js"],N["Core/Series/SeriesRegistry.js"],N["Core/Renderer/SVG/SVGElement.js"],N["Core/Utilities.js"]],function(W,R,U,Y,Z,q,$,G,D){var E,x=this&&this.__extends||(E=function(b,l){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,e){h.__proto__=e}||function(h,e){for(var r in e)e.hasOwnProperty(r)&&(h[r]=e[r])},E(b,l)},function(b,l){function h(){this.constructor=b}E(b,l),b.prototype=l===null?Object.create(l):(h.prototype=l.prototype,new h)}),T=Y.noop,u=q.distribute,p=$.series,g=$.seriesTypes.column,v=D.addEvent,y=D.defined,C=D.extend,P=D.merge,L=D.objectEach,M=D.wrap,f=function(b){function l(){var h=b!==null&&b.apply(this,arguments)||this;return h.data=void 0,h.options=void 0,h.points=void 0,h}return x(l,b),l.prototype.animate=function(h){h&&this.setClip()},l.prototype.drawPoints=function(){var h,e,r,o,i,c,a,s,m,A,O,d=this,w=d.points,k=d.chart,z=k.renderer,F=k.inverted,j=d.options,I=j.y,_=d.yAxis,V={},X=[];for(o=w.length;o--;)i=w[o],A=(F?i.plotY:i.plotX)>d.xAxis.len,h=i.plotX,a=i.stackIndex,r=i.options.shape||j.shape,(e=i.plotY)!==void 0&&(e=i.plotY+I-(a!==void 0&&a*j.stackDistance)),i.anchorX=a?void 0:i.plotX,s=a?void 0:i.plotY,O=r!=="flag",c=i.graphic,e!==void 0&&h>=0&&!A?(c&&i.hasNewShapeType()&&(c=c.destroy()),c||(c=i.graphic=z.label("",null,null,r,null,null,j.useHTML).addClass("highcharts-point").add(d.markerGroup),i.graphic.div&&(i.graphic.div.point=i),c.isNew=!0),c.attr({align:O?"center":"left",width:j.width,height:j.height,"text-align":j.textAlign}),k.styledMode||c.attr(d.pointAttribs(i)).css(P(j.style,i.style)).shadow(j.shadow),h>0&&(h-=c.strokeWidth()%2),m={y:e,anchorY:s},j.allowOverlapX&&(m.x=h,m.anchorX=i.anchorX),c.attr({text:i.options.title||j.title||"A"})[c.isNew?"attr":"animate"](m),j.allowOverlapX||(V[i.plotX]?V[i.plotX].size=Math.max(V[i.plotX].size,c.width):V[i.plotX]={align:O?.5:0,size:c.width,target:h,anchorX:h}),i.tooltipPos=[h,e+_.pos-k.plotTop]):c&&(i.graphic=c.destroy());if(!j.allowOverlapX){var H=100;L(V,function(mt){mt.plotX=mt.anchorX,X.push(mt),H=Math.max(mt.size,H)}),u(X,F?_.len:this.xAxis.len,H);for(var Q=0,et=w;Q<et.length;Q++){var tt=et[Q],st=tt.plotX,ct=tt.graphic,gt=ct&&V[st];gt&&ct&&(y(gt.pos)?ct[ct.isNew?"attr":"animate"]({x:gt.pos+(gt.align||0)*gt.size,anchorX:tt.anchorX}).show().isNew=!1:ct.hide().isNew=!0)}}j.useHTML&&d.markerGroup&&M(d.markerGroup,"on",function(mt){return G.prototype.on.apply(mt.apply(this,[].slice.call(arguments,1)),[].slice.call(arguments,1))})},l.prototype.drawTracker=function(){var h=this.points;b.prototype.drawTracker.call(this);for(var e=function(i){var c=i.graphic;c&&(i.unbindMouseOver&&i.unbindMouseOver(),i.unbindMouseOver=v(c.element,"mouseover",function(){i.stackIndex>0&&!i.raised&&(i._y=c.y,c.attr({y:i._y-8}),i.raised=!0);for(var a=0,s=h;a<s.length;a++){var m=s[a];m!==i&&m.raised&&m.graphic&&(m.graphic.attr({y:m._y}),m.raised=!1)}}))},r=0,o=h;r<o.length;r++)e(o[r])},l.prototype.pointAttribs=function(h,e){var r=this.options,o=h&&h.color||this.color,i=r.lineColor,c=h&&h.lineWidth,a=h&&h.fillColor||r.fillColor;return e&&(a=r.states[e].fillColor,i=r.states[e].lineColor,c=r.states[e].lineWidth),{fill:a||o,stroke:i||o,"stroke-width":c||r.lineWidth||0}},l.prototype.setClip=function(){p.prototype.setClip.apply(this,arguments),this.options.clip!==!1&&this.sharedClipKey&&this.markerGroup&&this.markerGroup.clip(this.chart.sharedClips[this.sharedClipKey])},l.compose=U.compose,l.defaultOptions=P(g.defaultOptions,R),l}(g);return Z.compose(f),C(f.prototype,{allowDG:!1,forceCrop:!0,invertible:!1,noSharedTooltip:!0,pointClass:W,sorted:!1,takeOrdinalPosition:!1,trackerGroups:["markerGroup"],buildKDTree:T,init:p.prototype.init}),$.registerSeriesType("flags",f),f}),rt(N,"Core/Chart/StockChart.js",[N["Core/Axis/Axis.js"],N["Core/Chart/Chart.js"],N["Core/FormatUtilities.js"],N["Core/Defaults.js"],N["Stock/Navigator/NavigatorDefaults.js"],N["Stock/RangeSelector/RangeSelectorDefaults.js"],N["Stock/Scrollbar/ScrollbarDefaults.js"],N["Core/Series/Series.js"],N["Core/Renderer/SVG/SVGRenderer.js"],N["Core/Utilities.js"]],function(W,R,U,Y,Z,q,$,G,D,E){var x,T=this&&this.__extends||(x=function(o,i){return x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,a){c.__proto__=a}||function(c,a){for(var s in a)a.hasOwnProperty(s)&&(c[s]=a[s])},x(o,i)},function(o,i){function c(){this.constructor=o}x(o,i),o.prototype=i===null?Object.create(i):(c.prototype=i.prototype,new c)}),u=U.format,p=Y.getOptions,g=E.addEvent,v=E.clamp,y=E.defined,C=E.extend,P=E.find,L=E.isNumber,M=E.isString,f=E.merge,b=E.pick,l=E.splat,h=function(o){function i(){return o!==null&&o.apply(this,arguments)||this}return T(i,o),i.prototype.init=function(c,a){var s=p(),m=c.xAxis,A=c.yAxis,O=b(c.navigator&&c.navigator.enabled,Z.enabled,!0);c.xAxis=c.yAxis=void 0;var d=f({chart:{panning:{enabled:!0,type:"x"},zooming:{pinchType:"x"}},navigator:{enabled:O},scrollbar:{enabled:b($.enabled,!0)},rangeSelector:{enabled:b(q.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:b(s.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1}},c,{isStock:!0});c.xAxis=m,c.yAxis=A,d.xAxis=l(c.xAxis||{}).map(function(w,k){return f(e("xAxis",w),s.xAxis,s.xAxis&&s.xAxis[k],w,r("xAxis",c))}),d.yAxis=l(c.yAxis||{}).map(function(w,k){return f(e("yAxis",w),s.yAxis,s.yAxis&&s.yAxis[k],w)}),o.prototype.init.call(this,d,a)},i.prototype.createAxis=function(c,a){return a.axis=f(e(c,a.axis),a.axis,r(c,this.userOptions)),o.prototype.createAxis.call(this,c,a)},i}(R);function e(o,i){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:b(i.opposite,!0),showLastLabel:!(!i.categories&&i.type!=="category"),title:{text:null}}:{}}function r(o,i){if(o==="xAxis"){var c={type:"datetime",categories:void 0};return b(i.navigator&&i.navigator.enabled,Z.enabled,!0)&&(c.startOnTick=!1,c.endOnTick=!1),c}return{}}return function(o){o.stockChart=function(i,c,a){return new o(i,c,a)}}(h||(h={})),g(G,"setOptions",function(o){var i;this.chart.options.isStock&&(this.is("column")||this.is("columnrange")?i={borderWidth:0,shadow:!1}:this.is("scatter")||this.is("sma")||(i={marker:{enabled:!1,radius:2}}),i&&(o.plotOptions[this.type]=f(o.plotOptions[this.type],i)))}),g(W,"autoLabelAlign",function(o){var i,c=this.chart,a=this.options,s=c._labelPanes=c._labelPanes||{},m=this.options.labels;this.chart.options.isStock&&this.coll==="yAxis"&&!s[i=a.top+","+a.height]&&m.enabled&&(m.x===15&&(m.x=0),m.align===void 0&&(m.align="right"),s[i]=this,o.align="right",o.preventDefault())}),g(W,"destroy",function(){var o=this.chart,i=this.options&&this.options.top+","+this.options.height;i&&o._labelPanes&&o._labelPanes[i]===this&&delete o._labelPanes[i]}),g(W,"getPlotLinePath",function(o){var i,c,a,s,m,A,O,d,w,k=this,z=this.isLinked&&!this.series?this.linkedParent.series:this.series,F=k.chart,j=F.renderer,I=k.left,_=k.top,V=[],X=[],H=o.translatedValue,Q=o.value,et=o.force;(F.options.isStock&&o.acrossPanes!==!1&&k.coll==="xAxis"||k.coll==="yAxis")&&(o.preventDefault(),O=k.coll,d=O==="xAxis"?"yAxis":"xAxis",w=k.options[d],X=L(w)?[F[d][w]]:M(w)?[F.get(w)]:z.map(function(tt){return tt[d]}),(k.isXAxis?F.yAxis:F.xAxis).forEach(function(tt){if(!y(tt.options.id)||tt.options.id.indexOf("navigator")===-1){var st=tt.isXAxis?"yAxis":"xAxis",ct=y(tt.options[st])?F[st][tt.options[st]]:F[st][0];k===ct&&X.push(tt)}}),m=X.length?[]:[k.isXAxis?F.yAxis[0]:F.xAxis[0]],X.forEach(function(tt){m.indexOf(tt)!==-1||P(m,function(st){return st.pos===tt.pos&&st.len===tt.len})||m.push(tt)}),A=b(H,k.translate(Q,void 0,void 0,o.old)),L(A)&&(k.horiz?m.forEach(function(tt){var st;c=tt.pos,s=c+tt.len,i=a=Math.round(A+k.transB),et!=="pass"&&(i<I||i>I+k.width)&&(et?i=a=v(i,I,I+k.width):st=!0),st||V.push(["M",i,c],["L",a,s])}):m.forEach(function(tt){var st;i=tt.pos,a=i+tt.len,c=s=Math.round(_+k.height-A),et!=="pass"&&(c<_||c>_+k.height)&&(et?c=s=v(c,_,_+k.height):st=!0),st||V.push(["M",i,c],["L",a,s])})),o.path=V.length>0?j.crispPolyLine(V,o.lineWidth||1):null)}),D.prototype.crispPolyLine=function(o,i){for(var c=0;c<o.length;c+=2){var a=o[c],s=o[c+1];a[1]===s[1]&&(a[1]=s[1]=Math.round(a[1])-i%2/2),a[2]===s[2]&&(a[2]=s[2]=Math.round(a[2])+i%2/2)}return o},g(W,"afterHideCrosshair",function(){this.crossLabel&&(this.crossLabel=this.crossLabel.hide())}),g(W,"afterDrawCrosshair",function(o){if(this.crosshair&&this.crosshair.label&&this.crosshair.label.enabled&&this.cross&&L(this.min)&&L(this.max)){var i,c,a,s,m,A=this.chart,O=this.logarithmic,d=this.crosshair.label,w=this.horiz,k=this.opposite,z=this.left,F=this.top,j=this.crossLabel,I=d.format,_="",V=this.options.tickPosition==="inside",X=this.crosshair.snap!==!1,H=0,Q=o.e||this.cross&&this.cross.e,et=o.point,tt=this.min,st=this.max;O&&(tt=O.lin2log(tt),st=O.lin2log(st)),m=w?"center":k?this.labelAlign==="right"?"right":"left":this.labelAlign==="left"?"left":"center",j||(j=this.crossLabel=A.renderer.label("",0,void 0,d.shape||"callout").addClass("highcharts-crosshair-label highcharts-color-"+(et&&et.series?et.series.colorIndex:this.series[0]&&this.series[0].colorIndex)).attr({align:d.align||m,padding:b(d.padding,8),r:b(d.borderRadius,3),zIndex:2}).add(this.labelGroup),A.styledMode||j.attr({fill:d.backgroundColor||et&&et.series&&et.series.color||"#666666",stroke:d.borderColor||"","stroke-width":d.borderWidth||0}).css(C({color:"#ffffff",fontWeight:"normal",fontSize:"11px",textAlign:"center"},d.style||{}))),w?(i=X?(et.plotX||0)+z:Q.chartX,c=F+(k?0:this.height)):(i=k?this.width+z:0,c=X?(et.plotY||0)+F:Q.chartY),I||d.formatter||(this.dateTime&&(_="%b %d, %Y"),I="{value"+(_?":"+_:"")+"}");var ct=X?this.isXAxis?et.x:et.y:this.toValue(w?Q.chartX:Q.chartY),gt=et&&et.series?et.series.isPointInside(et):L(ct)&&ct>tt&&ct<st,mt="";I?mt=u(I,{value:ct},A):d.formatter&&L(ct)&&(mt=d.formatter.call(this,ct)),j.attr({text:mt,x:i,y:c,visibility:gt?"inherit":"hidden"}),a=j.getBBox(),L(j.y)&&(w?(V&&!k||!V&&k)&&(c=j.y-a.height):c=j.y-a.height/2),s=w?{left:z-a.x,right:z+this.width-a.x}:{left:this.labelAlign==="left"?z:0,right:this.labelAlign==="right"?z+this.width:A.chartWidth},j.translateX<s.left&&(H=s.left-j.translateX),j.translateX+a.width>=s.right&&(H=-(j.translateX+a.width-s.right)),j.attr({x:i+H,y:c,anchorX:w?i:this.opposite?0:A.chartWidth,anchorY:w?this.opposite?A.chartHeight:0:c+a.height/2})}}),G.prototype.forceCropping=function(){var o=this.chart,i=this.options.dataGrouping;return this.allowDG!==!1&&i&&b(i.enabled,o.options.isStock)},g(R,"update",function(o){var i=o.options;"scrollbar"in i&&this.navigator&&(f(!0,this.options.scrollbar,i.scrollbar),this.navigator.update({}),delete i.scrollbar)}),h}),rt(N,"masters/modules/stock.src.js",[N["Core/Globals.js"],N["Series/DataModifyComposition.js"],N["Stock/Navigator/Navigator.js"],N["Stock/RangeSelector/RangeSelector.js"],N["Stock/Scrollbar/Scrollbar.js"],N["Core/Axis/OrdinalAxis.js"],N["Series/OHLC/OHLCSeries.js"],N["Series/Flags/FlagsSeries.js"],N["Core/Chart/StockChart.js"]],function(W,R,U,Y,Z,q,$,G,D){var E=W;E.Navigator=U,E.RangeSelector=Y,E.Scrollbar=Z,E.StockChart=E.stockChart=D.stockChart,R.compose(E.Series,E.Axis,E.Point),G.compose(E.Renderer),U.compose(E.Axis,E.Chart,E.Series),$.compose(E.Series),q.compose(E.Axis,E.Series,E.Chart),Y.compose(E.Axis,E.Chart),Z.compose(E.Axis)}),rt(N,"masters/highstock.src.js",[N["masters/highcharts.src.js"]],function(W){return W.product="Highstock",W}),N["masters/highstock.src.js"]._modules=N,N["masters/highstock.src.js"]},J.exports?(pt.default=pt,J.exports=lt.document?pt(lt):pt):(at=function(){return pt(lt)}.call(it,nt,it,J))===void 0||(J.exports=at)},3968:(J,it,nt)=>{var at,lt,pt;pt=function(ft){var N=ft?ft._modules:{};function rt(W,R,U,Y){W.hasOwnProperty(R)||(W[R]=Y.apply(null,U),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:R,module:W[R]}})))}rt(N,"Accessibility/Utils/HTMLUtilities.js",[N["Core/Globals.js"],N["Core/Utilities.js"]],function(W,R){var U=W.doc,Y=W.win,Z=R.css,q=Y.EventTarget&&new Y.EventTarget||"none";function $(D){if(typeof Y.MouseEvent=="function")return new Y.MouseEvent(D.type,D);if(U.createEvent){var E=U.createEvent("MouseEvent");if(E.initMouseEvent)return E.initMouseEvent(D.type,D.bubbles,D.cancelable,D.view||Y,D.detail,D.screenX,D.screenY,D.clientX,D.clientY,D.ctrlKey,D.altKey,D.shiftKey,D.metaKey,D.button,D.relatedTarget),E}return G(D.type)}function G(D,E,x){var T=E||{x:0,y:0};if(typeof Y.MouseEvent=="function")return new Y.MouseEvent(D,{bubbles:!0,cancelable:!0,composed:!0,button:0,buttons:1,relatedTarget:x||q,view:Y,detail:D==="click"?1:0,screenX:T.x,screenY:T.y,clientX:T.x,clientY:T.y});if(U.createEvent){var u=U.createEvent("MouseEvent");if(u.initMouseEvent)return u.initMouseEvent(D,!0,!0,Y,D==="click"?1:0,T.x,T.y,T.x,T.y,!1,!1,!1,!1,0,null),u}return{type:D}}return{addClass:function(D,E){D.classList?D.classList.add(E):D.className.indexOf(E)<0&&(D.className+=" "+E)},cloneMouseEvent:$,cloneTouchEvent:function(D){var E=function(u){for(var p=[],g=0;g<u.length;++g){var v=u.item(g);v&&p.push(v)}return p};if(typeof Y.TouchEvent=="function"){var x=new Y.TouchEvent(D.type,{touches:E(D.touches),targetTouches:E(D.targetTouches),changedTouches:E(D.changedTouches),ctrlKey:D.ctrlKey,shiftKey:D.shiftKey,altKey:D.altKey,metaKey:D.metaKey,bubbles:D.bubbles,cancelable:D.cancelable,composed:D.composed,detail:D.detail,view:D.view});return D.defaultPrevented&&x.preventDefault(),x}var T=$(D);return T.touches=D.touches,T.changedTouches=D.changedTouches,T.targetTouches=D.targetTouches,T},escapeStringForHTML:function(D){return D.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;").replace(/\//g,"&#x2F;")},getElement:function(D){return U.getElementById(D)},getFakeMouseEvent:G,getHeadingTagNameForElement:function(D){var E=function(u){var p=parseInt(u.slice(1),10);return"h"+Math.min(6,p+1)},x=function(u){return/H[1-6]/.test(u)},T=function(u){var p=function(y){for(var C=y;C=C.previousSibling;){var P=C.tagName||"";if(x(P))return P}return""}(u);if(p)return E(p);var g=u.parentElement;if(!g)return"p";var v=g.tagName;return x(v)?E(v):T(g)};return T(D)},removeChildNodes:function(D){for(;D.lastChild;)D.removeChild(D.lastChild)},removeClass:function(D,E){D.classList?D.classList.remove(E):D.className=D.className.replace(new RegExp(E,"g"),"")},removeElement:function(D){D&&D.parentNode&&D.parentNode.removeChild(D)},reverseChildNodes:function(D){for(var E=D.childNodes.length;E--;)D.appendChild(D.childNodes[E])},simulatedEventTarget:q,stripHTMLTagsFromString:function(D){return typeof D=="string"?D.replace(/<\/?[^>]+(>|$)/g,""):D},visuallyHideElement:function(D){Z(D,{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})}}}),rt(N,"Accessibility/A11yI18n.js",[N["Core/FormatUtilities.js"],N["Core/Utilities.js"]],function(W,R){var U,Y=W.format,Z=R.getNestedProperty,q=R.pick;return function($){var G=[];function D(x,T,u){var p,g,v=function(P,L){var M=P.slice(L||0),f=M.indexOf("{"),b=M.indexOf("}");if(f>-1&&b>f)return{statement:M.substring(f+1,b),begin:L+f+1,end:L+b}},y=[],C=0;do p=v(x,C),(g=x.substring(C,p&&p.begin-1)).length&&y.push({value:g,type:"constant"}),p&&y.push({value:p.statement,type:"statement"}),C=p?p.end+1:C+1;while(p);return y.forEach(function(P){P.type==="statement"&&(P.value=function(L,M){var f,b,l,h=L.indexOf("#each("),e=L.indexOf("#plural("),r=L.indexOf("["),o=L.indexOf("]");if(h>-1){var i=L.slice(h).indexOf(")")+h,c=L.substring(0,h),a=L.substring(i+1),s=L.substring(h+6,i).split(","),m=Number(s[1]),A=void 0;if(b="",f=Z(s[0],M)){A=(m=isNaN(m)?f.length:m)<0?f.length+m:Math.min(m,f.length);for(var O=0;O<A;++O)b+=c+f[O]+a}return b.length?b:""}if(e>-1){var d=L.slice(e).indexOf(")")+e,w=L.substring(e+8,d).split(",");switch(Number(Z(w[0],M))){case 0:b=q(w[4],w[1]);break;case 1:b=q(w[2],w[1]);break;case 2:b=q(w[3],w[1]);break;default:b=w[1]}return b?(l=b).trim&&l.trim()||l.replace(/^\s+|\s+$/g,""):""}if(r>-1){var k=L.substring(0,r),z=Number(L.substring(r+1,o)),F=void 0;return f=Z(k,M),!isNaN(z)&&f&&(z<0?(F=f[f.length+z])===void 0&&(F=f[0]):(F=f[z])===void 0&&(F=f[f.length-1])),F!==void 0?F:""}return"{"+L+"}"}(P.value,T))}),Y(y.reduce(function(P,L){return P+L.value},""),T,u)}function E(x,T){for(var u=x.split("."),p=this.options.lang,g=0;g<u.length;++g)p=p&&p[u[g]];return typeof p=="string"?D(p,T,this):""}$.compose=function(x){return G.indexOf(x)===-1&&(G.push(x),x.prototype.langFormat=E),x},$.i18nFormat=D}(U||(U={})),U}),rt(N,"Accessibility/Utils/ChartUtilities.js",[N["Core/Globals.js"],N["Accessibility/Utils/HTMLUtilities.js"],N["Core/Utilities.js"]],function(W,R,U){var Y=W.doc,Z=R.stripHTMLTagsFromString,q=U.defined,$=U.find,G=U.fireEvent;function D(x){if(x.points&&x.points.length){var T=$(x.points,function(u){return!!u.graphic});return T&&T.graphic&&T.graphic.element}}function E(x){var T=D(x);return T&&T.parentNode||x.graph&&x.graph.element||x.group&&x.group.element}return{fireEventOnWrappedOrUnwrappedElement:function x(T,u){var p=u.type,g=T.hcEvents;Y.createEvent&&(T.dispatchEvent||T.fireEvent)?T.dispatchEvent?T.dispatchEvent(u):T.fireEvent(p,u):g&&g[p]?G(T,p,u):T.element&&x(T.element,u)},getChartTitle:function(x){return Z(x.options.title.text||x.langFormat("accessibility.defaultChartTitle",{chart:x}))},getAxisDescription:function(x){return x&&(x.userOptions&&x.userOptions.accessibility&&x.userOptions.accessibility.description||x.axisTitle&&x.axisTitle.textStr||x.options.id||x.categories&&"categories"||x.dateTime&&"Time"||"values")},getAxisRangeDescription:function(x){var T=x.options||{};return T.accessibility&&T.accessibility.rangeDescription!==void 0?T.accessibility.rangeDescription:x.categories?function(u){var p=u.chart;return u.dataMax&&u.dataMin?p.langFormat("accessibility.axis.rangeCategories",{chart:p,axis:u,numCategories:u.dataMax-u.dataMin+1}):""}(x):!x.dateTime||x.min!==0&&x.dataMin!==0?function(u){var p=u.chart,g=p.options,v=g&&g.accessibility&&g.accessibility.screenReaderSection.axisRangeDateFormat||"",y={min:u.dataMin||u.min||0,max:u.dataMax||u.max||0},C=function(P){return u.dateTime?p.time.dateFormat(v,y[P]):y[P].toString()};return p.langFormat("accessibility.axis.rangeFromTo",{chart:p,axis:u,rangeFrom:C("min"),rangeTo:C("max")})}(x):function(u){var p=u.chart,g={},v=u.dataMin||u.min||0,y=u.dataMax||u.max||0,C="Seconds";g.Seconds=(y-v)/1e3,g.Minutes=g.Seconds/60,g.Hours=g.Minutes/60,g.Days=g.Hours/24,["Minutes","Hours","Days"].forEach(function(L){g[L]>2&&(C=L)});var P=g[C].toFixed(C!=="Seconds"&&C!=="Minutes"?1:0);return p.langFormat("accessibility.axis.timeRange"+C,{chart:p,axis:u,range:P.replace(".0","")})}(x)},getPointFromXY:function(x,T,u){for(var p,g=x.length;g--;)if(p=$(x[g].points||[],function(v){return v.x===T&&v.y===u}))return p},getSeriesFirstPointElement:D,getSeriesFromName:function(x,T){return T?(x.series||[]).filter(function(u){return u.name===T}):x.series},getSeriesA11yElement:E,unhideChartElementFromAT:function x(T,u){u.setAttribute("aria-hidden",!1),u!==T.renderTo&&u.parentNode&&u.parentNode!==Y.body&&(Array.prototype.forEach.call(u.parentNode.childNodes,function(p){p.hasAttribute("aria-hidden")||p.setAttribute("aria-hidden",!0)}),x(T,u.parentNode))},hideSeriesFromAT:function(x){var T=E(x);T&&T.setAttribute("aria-hidden",!0)},scrollToPoint:function(x){var T=x.series.xAxis,u=x.series.yAxis,p=T&&T.scrollbar?T:u,g=p&&p.scrollbar;if(g&&q(g.to)&&q(g.from)){var v=g.to-g.from,y=function(C,P){if(!q(C.dataMin)||!q(C.dataMax))return 0;var L=C.toPixels(C.dataMin),M=C.toPixels(C.dataMax),f=C.coll==="xAxis"?"x":"y";return(C.toPixels(P[f]||0)-L)/(M-L)}(p,x);g.updatePosition(y-v/2,y+v/2),G(g,"changed",{from:g.from,to:g.to,trigger:"scrollbar",DOMEvent:null})}}}}),rt(N,"Accessibility/Utils/DOMElementProvider.js",[N["Core/Globals.js"],N["Accessibility/Utils/HTMLUtilities.js"]],function(W,R){var U=W.doc,Y=R.removeElement,Z=function(){function q(){this.elements=[]}return q.prototype.createElement=function(){var $=U.createElement.apply(U,arguments);return this.elements.push($),$},q.prototype.destroyCreatedElements=function(){this.elements.forEach(function($){Y($)}),this.elements=[]},q}();return Z}),rt(N,"Accessibility/Utils/EventProvider.js",[N["Core/Globals.js"],N["Core/Utilities.js"]],function(W,R){var U=R.addEvent,Y=function(){function Z(){this.eventRemovers=[]}return Z.prototype.addEvent=function(){var q=U.apply(W,arguments);return this.eventRemovers.push(q),q},Z.prototype.removeAddedEvents=function(){this.eventRemovers.forEach(function(q){return q()}),this.eventRemovers=[]},Z}();return Y}),rt(N,"Accessibility/AccessibilityComponent.js",[N["Accessibility/Utils/ChartUtilities.js"],N["Accessibility/Utils/DOMElementProvider.js"],N["Accessibility/Utils/EventProvider.js"],N["Accessibility/Utils/HTMLUtilities.js"],N["Core/Utilities.js"]],function(W,R,U,Y,Z){var q=W.fireEventOnWrappedOrUnwrappedElement,$=Y.getFakeMouseEvent,G=Z.extend,D=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(x,T){this.chart=x,this.eventProvider=new U,this.domElementProvider=new R,this.proxyProvider=T,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(x,T,u,p){return this.eventProvider.addEvent(x,T,u,p)},E.prototype.createElement=function(x,T){return this.domElementProvider.createElement(x,T)},E.prototype.fakeClickEvent=function(x){var T=$("click");q(x,T)},E.prototype.destroyBase=function(){this.domElementProvider.destroyCreatedElements(),this.eventProvider.removeAddedEvents()},E}();return G(D.prototype,{init:function(){},getKeyboardNavigation:function(){},onChartUpdate:function(){},onChartRender:function(){},destroy:function(){}}),D}),rt(N,"Accessibility/KeyboardNavigationHandler.js",[N["Core/Utilities.js"]],function(W){var R=W.find;return function(){function U(Y,Z){this.chart=Y,this.keyCodeMap=Z.keyCodeMap||[],this.validate=Z.validate,this.init=Z.init,this.terminate=Z.terminate,this.response={success:1,prev:2,next:3,noHandler:4,fail:5}}return U.prototype.run=function(Y){var Z=Y.which||Y.keyCode,q=this.response.noHandler,$=R(this.keyCodeMap,function(G){return G[0].indexOf(Z)>-1});return $?q=$[1].call(this,Z,Y):Z===9&&(q=this.response[Y.shiftKey?"prev":"next"]),q},U}()}),rt(N,"Accessibility/Components/ContainerComponent.js",[N["Accessibility/AccessibilityComponent.js"],N["Accessibility/KeyboardNavigationHandler.js"],N["Accessibility/Utils/ChartUtilities.js"],N["Core/Globals.js"],N["Accessibility/Utils/HTMLUtilities.js"]],function(W,R,U,Y,Z){var q,$=this&&this.__extends||(q=function(u,p){return q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,v){g.__proto__=v}||function(g,v){for(var y in v)v.hasOwnProperty(y)&&(g[y]=v[y])},q(u,p)},function(u,p){function g(){this.constructor=u}q(u,p),u.prototype=p===null?Object.create(p):(g.prototype=p.prototype,new g)}),G=U.unhideChartElementFromAT,D=U.getChartTitle,E=Y.doc,x=Z.stripHTMLTagsFromString,T=function(u){function p(){return u!==null&&u.apply(this,arguments)||this}return $(p,u),p.prototype.onChartUpdate=function(){this.handleSVGTitleElement(),this.setSVGContainerLabel(),this.setGraphicContainerAttrs(),this.setRenderToAttrs(),this.makeCreditsAccessible()},p.prototype.handleSVGTitleElement=function(){var g=this.chart,v="highcharts-title-"+g.index,y=x(g.langFormat("accessibility.svgContainerTitle",{chartTitle:D(g)}));if(y.length){var C=this.svgTitleElement=this.svgTitleElement||E.createElementNS("http://www.w3.org/2000/svg","title");C.textContent=y,C.id=v,g.renderTo.insertBefore(C,g.renderTo.firstChild)}},p.prototype.setSVGContainerLabel=function(){var g=this.chart,v=g.langFormat("accessibility.svgContainerLabel",{chartTitle:D(g)});g.renderer.box&&v.length&&g.renderer.box.setAttribute("aria-label",v)},p.prototype.setGraphicContainerAttrs=function(){var g=this.chart,v=g.langFormat("accessibility.graphicContainerLabel",{chartTitle:D(g)});v.length&&g.container.setAttribute("aria-label",v)},p.prototype.setRenderToAttrs=function(){var g=this.chart,v=g.options.accessibility.landmarkVerbosity!=="disabled",y=g.langFormat("accessibility.chartContainerLabel",{title:D(g),chart:g});y&&(g.renderTo.setAttribute("role",v?"region":"group"),g.renderTo.setAttribute("aria-label",y))},p.prototype.makeCreditsAccessible=function(){var g=this.chart,v=g.credits;v&&(v.textStr&&v.element.setAttribute("aria-label",g.langFormat("accessibility.credits",{creditsStr:x(v.textStr)})),G(g,v.element))},p.prototype.getKeyboardNavigation=function(){var g=this.chart;return new R(g,{keyCodeMap:[],validate:function(){return!0},init:function(){var v=g.accessibility;v&&v.keyboardNavigation.tabindexContainer.focus()}})},p.prototype.destroy=function(){this.chart.renderTo.setAttribute("aria-hidden",!0)},p}(W);return T}),rt(N,"Accessibility/FocusBorder.js",[N["Core/Renderer/SVG/SVGLabel.js"],N["Core/Utilities.js"]],function(W,R){var U,Y=R.addEvent,Z=R.pick;return function(q){var $=[],G=["x","y","transform","width","height","r","d","stroke-width"];function D(){var u=this.focusElement,p=this.options.accessibility.keyboardNavigation.focusBorder;u&&(u.removeFocusBorder(),p.enabled&&u.addFocusBorder(p.margin,{stroke:p.style.color,strokeWidth:p.style.lineWidth,r:p.style.borderRadius}))}function E(u,p){var g=this.options.accessibility.keyboardNavigation.focusBorder,v=p||u.element;v&&v.focus&&(v.hcEvents&&v.hcEvents.focusin||Y(v,"focusin",function(){}),v.focus(),g.hideBrowserFocusOutline&&(v.style.outline="none")),this.focusElement&&this.focusElement.removeFocusBorder(),this.focusElement=u,this.renderFocusBorder()}function x(u,p){this.focusBorder&&this.removeFocusBorder();var g=this.getBBox(),v=Z(u,3),y=this.parentGroup,C=this.scaleX||y&&y.scaleX,P=this.scaleY||y&&y.scaleY,L=(C?!P:P)?Math.abs(C||P||1):(Math.abs(C||1)+Math.abs(P||1))/2;g.x+=this.translateX?this.translateX:0,g.y+=this.translateY?this.translateY:0;var M,f,b,l=g.x-v,h=g.y-v,e=g.width+2*v,r=g.height+2*v,o=this instanceof W;if(this.element.nodeName==="text"||o){var i=!!this.rotation,c=o?{x:i?1:0,y:0}:(f=0,b=0,(M=this).attr("text-anchor")==="middle"?f=b=.5:M.rotation?f=.25:b=.75,{x:f,y:b}),a=+this.attr("x"),s=+this.attr("y");if(isNaN(a)||(l=a-g.width*c.x-v),isNaN(s)||(h=s-g.height*c.y-v),o&&i){var m=e;e=r,r=m,isNaN(a)||(l=a-g.height*c.x-v),isNaN(s)||(h=s-g.width*c.y-v)}}this.focusBorder=this.renderer.rect(l,h,e,r,parseInt((p&&p.r||0).toString(),10)/L).addClass("highcharts-focus-border").attr({zIndex:99}).add(y),this.renderer.styledMode||this.focusBorder.attr({stroke:p&&p.stroke,"stroke-width":(p&&p.strokeWidth||0)/L}),function(A){for(var O=[],d=1;d<arguments.length;d++)O[d-1]=arguments[d];A.focusBorderUpdateHooks||(A.focusBorderUpdateHooks={},G.forEach(function(w){var k=w+"Setter",z=A[k]||A._defaultSetter;A.focusBorderUpdateHooks[k]=z,A[k]=function(){var F=z.apply(A,arguments);return A.addFocusBorder.apply(A,O),F}}))}(this,u,p),function(A){if(!A.focusBorderDestroyHook){var O=A.destroy;A.destroy=function(){return A.focusBorder&&A.focusBorder.destroy&&A.focusBorder.destroy(),O.apply(A,arguments)},A.focusBorderDestroyHook=O}}(this)}function T(){var u;(function(p){p.focusBorderUpdateHooks&&(Object.keys(p.focusBorderUpdateHooks).forEach(function(g){var v=p.focusBorderUpdateHooks[g];v===p._defaultSetter?delete p[g]:p[g]=v}),delete p.focusBorderUpdateHooks)})(this),(u=this).focusBorderDestroyHook&&(u.destroy=u.focusBorderDestroyHook,delete u.focusBorderDestroyHook),this.focusBorder&&(this.focusBorder.destroy(),delete this.focusBorder)}q.compose=function(u,p){if($.indexOf(u)===-1){$.push(u);var g=u.prototype;g.renderFocusBorder=D,g.setFocusToElement=E}if($.indexOf(p)===-1){$.push(p);var v=p.prototype;v.addFocusBorder=x,v.removeFocusBorder=T}}}(U||(U={})),U}),rt(N,"Accessibility/Utils/Announcer.js",[N["Core/Renderer/HTML/AST.js"],N["Accessibility/Utils/DOMElementProvider.js"],N["Core/Globals.js"],N["Accessibility/Utils/HTMLUtilities.js"],N["Core/Utilities.js"]],function(W,R,U,Y,Z){var q=U.doc,$=Y.addClass,G=Y.visuallyHideElement,D=Z.attr;return function(){function E(x,T){this.chart=x,this.domElementProvider=new R,this.announceRegion=this.addAnnounceRegion(T)}return E.prototype.destroy=function(){this.domElementProvider.destroyCreatedElements()},E.prototype.announce=function(x){var T=this;W.setElementHTML(this.announceRegion,x),this.clearAnnouncementRegionTimer&&clearTimeout(this.clearAnnouncementRegionTimer),this.clearAnnouncementRegionTimer=setTimeout(function(){T.announceRegion.innerHTML=W.emptyHTML,delete T.clearAnnouncementRegionTimer},1e3)},E.prototype.addAnnounceRegion=function(x){var T=this.chart.announcerContainer||this.createAnnouncerContainer(),u=this.domElementProvider.createElement("div");return D(u,{"aria-hidden":!1,"aria-live":x}),this.chart.styledMode?$(u,"highcharts-visually-hidden"):G(u),T.appendChild(u),u},E.prototype.createAnnouncerContainer=function(){var x=this.chart,T=q.createElement("div");return D(T,{"aria-hidden":!1,class:"highcharts-announcer-container"}),T.style.position="relative",x.renderTo.insertBefore(T,x.renderTo.firstChild),x.announcerContainer=T,T},E}()}),rt(N,"Accessibility/Components/AnnotationsA11y.js",[N["Accessibility/Utils/HTMLUtilities.js"]],function(W){var R=W.escapeStringForHTML,U=W.stripHTMLTagsFromString;function Y(G){return(G.annotations||[]).reduce(function(D,E){return E.options&&E.options.visible!==!1&&(D=D.concat(E.labels)),D},[])}function Z(G){return G.options&&G.options.accessibility&&G.options.accessibility.description||G.graphic&&G.graphic.text&&G.graphic.text.textStr||""}function q(G){var D=G.options&&G.options.accessibility&&G.options.accessibility.description;if(D)return D;var E=G.chart,x=Z(G),T=G.points.filter(function(v){return!!v.graphic}).map(function(v){var y=v.accessibility&&v.accessibility.valueDescription||function(P){return P.graphic&&P.graphic.element&&P.graphic.element.getAttribute("aria-label")||""}(v),C=v&&v.series.name||"";return(C?C+", ":"")+"data point "+y}).filter(function(v){return!!v}),u=T.length,p="accessibility.screenReaderSection.annotations.description"+(u>1?"MultiplePoints":u?"SinglePoint":"NoPoints"),g={annotationText:x,annotation:G,numPoints:u,annotationPoint:T[0],additionalAnnotationPoints:T.slice(1)};return E.langFormat(p,g)}function $(G){return Y(G).map(function(D){var E=R(U(q(D)));return E?"<li>".concat(E,"</li>"):""})}return{getAnnotationsInfoHTML:function(G){var D=G.annotations;if(!D||!D.length)return"";var E=$(G);return'<ul style="list-style-type: none">'.concat(E.join(" "),"</ul>")},getAnnotationLabelDescription:q,getAnnotationListItems:$,getPointAnnotationTexts:function(G){var D=Y(G.series.chart).filter(function(E){return E.points.indexOf(G)>-1});return D.length?D.map(function(E){return"".concat(Z(E))}):[]}}}),rt(N,"Accessibility/Components/InfoRegionsComponent.js",[N["Accessibility/A11yI18n.js"],N["Accessibility/AccessibilityComponent.js"],N["Accessibility/Utils/Announcer.js"],N["Accessibility/Components/AnnotationsA11y.js"],N["Core/Renderer/HTML/AST.js"],N["Accessibility/Utils/ChartUtilities.js"],N["Core/FormatUtilities.js"],N["Core/Globals.js"],N["Accessibility/Utils/HTMLUtilities.js"],N["Core/Utilities.js"]],function(W,R,U,Y,Z,q,$,G,D,E){var x,T=this&&this.__extends||(x=function(i,c){return x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,s){a.__proto__=s}||function(a,s){for(var m in s)s.hasOwnProperty(m)&&(a[m]=s[m])},x(i,c)},function(i,c){function a(){this.constructor=i}x(i,c),i.prototype=c===null?Object.create(c):(a.prototype=c.prototype,new a)}),u=Y.getAnnotationsInfoHTML,p=q.getAxisDescription,g=q.getAxisRangeDescription,v=q.getChartTitle,y=q.unhideChartElementFromAT,C=$.format,P=G.doc,L=D.addClass,M=D.getElement,f=D.getHeadingTagNameForElement,b=D.stripHTMLTagsFromString,l=D.visuallyHideElement,h=E.attr,e=E.pick;function r(i){return i.replace(/<(\w+)[^>]*?>\s*<\/\1>/g,"")}var o=function(i){function c(){var a=i!==null&&i.apply(this,arguments)||this;return a.announcer=void 0,a.screenReaderSections={},a}return T(c,i),c.prototype.init=function(){var a=this.chart,s=this;this.initRegionsDefinitions(),this.addEvent(a,"aftergetTableAST",function(m){s.onDataTableCreated(m)}),this.addEvent(a,"afterViewData",function(m){m.wasHidden&&(s.dataTableDiv=m.element,setTimeout(function(){s.focusDataTable()},300))}),this.announcer=new U(a,"assertive")},c.prototype.initRegionsDefinitions=function(){var a=this;this.screenReaderSections={before:{element:null,buildContent:function(s){var m=s.options.accessibility.screenReaderSection.beforeChartFormatter;return m?m(s):a.defaultBeforeChartFormatter(s)},insertIntoDOM:function(s,m){m.renderTo.insertBefore(s,m.renderTo.firstChild)},afterInserted:function(){a.sonifyButtonId!==void 0&&a.initSonifyButton(a.sonifyButtonId),a.dataTableButtonId!==void 0&&a.initDataTableButton(a.dataTableButtonId)}},after:{element:null,buildContent:function(s){var m=s.options.accessibility.screenReaderSection.afterChartFormatter;return m?m(s):a.defaultAfterChartFormatter()},insertIntoDOM:function(s,m){m.renderTo.insertBefore(s,m.container.nextSibling)},afterInserted:function(){a.chart.accessibility&&a.chart.accessibility.keyboardNavigation.updateExitAnchor()}}}},c.prototype.onChartRender=function(){var a=this;this.linkedDescriptionElement=this.getLinkedDescriptionElement(),this.setLinkedDescriptionAttrs(),Object.keys(this.screenReaderSections).forEach(function(s){a.updateScreenReaderSection(s)})},c.prototype.getLinkedDescriptionElement=function(){var a=this.chart.options.accessibility.linkedDescription;if(a){if(typeof a!="string")return a;var s=C(a,this.chart),m=P.querySelectorAll(s);return m.length===1?m[0]:void 0}},c.prototype.setLinkedDescriptionAttrs=function(){var a=this.linkedDescriptionElement;a&&(a.setAttribute("aria-hidden","true"),L(a,"highcharts-linked-description"))},c.prototype.updateScreenReaderSection=function(a){var s=this.chart,m=this.screenReaderSections[a],A=m.buildContent(s),O=m.element=m.element||this.createElement("div"),d=O.firstChild||this.createElement("div");A?(this.setScreenReaderSectionAttribs(O,a),Z.setElementHTML(d,A),O.appendChild(d),m.insertIntoDOM(O,s),s.styledMode?L(d,"highcharts-visually-hidden"):l(d),y(s,d),m.afterInserted&&m.afterInserted()):(O.parentNode&&O.parentNode.removeChild(O),m.element=null)},c.prototype.setScreenReaderSectionAttribs=function(a,s){var m=this.chart,A=m.langFormat("accessibility.screenReaderSection."+s+"RegionLabel",{chart:m,chartTitle:v(m)}),O="highcharts-screen-reader-region-".concat(s,"-").concat(m.index);h(a,{id:O,"aria-label":A||void 0}),a.style.position="relative",A&&a.setAttribute("role",m.options.accessibility.landmarkVerbosity==="all"?"region":"group")},c.prototype.defaultBeforeChartFormatter=function(){var a=this.chart,s=a.options.accessibility.screenReaderSection.beforeChartFormat;if(!s)return"";var m=this.getAxesDescription(),A=a.sonify&&a.options.sonification&&a.options.sonification.enabled,O="highcharts-a11y-sonify-data-btn-"+a.index,d="hc-linkto-highcharts-data-table-"+a.index,w=u(a),k=a.langFormat("accessibility.screenReaderSection.annotations.heading",{chart:a}),z={headingTagName:f(a.renderTo),chartTitle:v(a),typeDescription:this.getTypeDescriptionText(),chartSubtitle:this.getSubtitleText(),chartLongdesc:this.getLongdescText(),xAxisDescription:m.xAxis,yAxisDescription:m.yAxis,playAsSoundButton:A?this.getSonifyButtonText(O):"",viewTableButton:a.getCSV?this.getDataTableButtonText(d):"",annotationsTitle:w?k:"",annotationsList:w},F=W.i18nFormat(s,z,a);return this.dataTableButtonId=d,this.sonifyButtonId=O,r(F)},c.prototype.defaultAfterChartFormatter=function(){var a=this.chart,s=a.options.accessibility.screenReaderSection.afterChartFormat;if(!s)return"";var m={endOfChartMarker:this.getEndOfChartMarkerText()};return r(W.i18nFormat(s,m,a))},c.prototype.getLinkedDescription=function(){var a=this.linkedDescriptionElement,s=a&&a.innerHTML||"";return b(s)},c.prototype.getLongdescText=function(){var a=this.chart.options,s=a.caption,m=s&&s.text,A=this.getLinkedDescription();return a.accessibility.description||A||m||""},c.prototype.getTypeDescriptionText=function(){var a=this.chart;return a.types?a.options.accessibility.typeDescription||function(s,m){var A=m[0],O=s.series&&s.series[0]||{},d=s.mapView&&s.mapView.geoMap&&s.mapView.geoMap.title,w={numSeries:s.series.length,numPoints:O.points&&O.points.length,chart:s,mapTitle:d};return A?A==="map"?function(k,z){return z.mapTitle?k.langFormat("accessibility.chartTypes.mapTypeDescription",z):k.langFormat("accessibility.chartTypes.unknownMap",z)}(s,w):s.types.length>1?function(k,z){return k.langFormat("accessibility.chartTypes.combinationChart",z)}(s,w):function(k,z,F){var j=z[0],I=k.langFormat("accessibility.seriesTypeDescriptions."+j,F),_=k.series&&k.series.length<2?"Single":"Multiple";return(k.langFormat("accessibility.chartTypes."+j+_,F)||k.langFormat("accessibility.chartTypes.default"+_,F))+(I?" "+I:"")}(s,m,w):function(k,z){return k.langFormat("accessibility.chartTypes.emptyChart",z)}(s,w)}(a,a.types):""},c.prototype.getDataTableButtonText=function(a){var s=this.chart;return'<button id="'+a+'">'+s.langFormat("accessibility.table.viewAsDataTableButtonText",{chart:s,chartTitle:v(s)})+"</button>"},c.prototype.getSonifyButtonText=function(a){var s=this.chart;return s.options.sonification&&s.options.sonification.enabled===!1?"":'<button id="'+a+'">'+s.langFormat("accessibility.sonification.playAsSoundButtonText",{chart:s,chartTitle:v(s)})+"</button>"},c.prototype.getSubtitleText=function(){var a=this.chart.options.subtitle;return b(a&&a.text||"")},c.prototype.getEndOfChartMarkerText=function(){var a=this.chart,s=a.langFormat("accessibility.screenReaderSection.endOfChartMarker",{chart:a});return'<div id="highcharts-end-of-chart-marker-'+a.index+'">'+s+"</div>"},c.prototype.onDataTableCreated=function(a){var s=this.chart;if(s.options.accessibility.enabled){this.viewDataTableButton&&this.viewDataTableButton.setAttribute("aria-expanded","true");var m=a.tree.attributes||{};m.tabindex=-1,m.summary=function(A){return A.langFormat("accessibility.table.tableSummary",{chart:A})}(s),a.tree.attributes=m}},c.prototype.focusDataTable=function(){var a=this.dataTableDiv,s=a&&a.getElementsByTagName("table")[0];s&&s.focus&&s.focus()},c.prototype.initSonifyButton=function(a){var s=this,m=this.sonifyButton=M(a),A=this.chart,O=function(d){m&&(m.setAttribute("aria-hidden","true"),m.setAttribute("aria-label","")),d.preventDefault(),d.stopPropagation();var w=A.langFormat("accessibility.sonification.playAsSoundClickAnnouncement",{chart:A});s.announcer.announce(w),setTimeout(function(){m&&(m.removeAttribute("aria-hidden"),m.removeAttribute("aria-label")),A.sonify&&A.sonify()},1e3)};m&&A&&(m.setAttribute("tabindex",-1),m.onclick=function(d){(A.options.accessibility&&A.options.accessibility.screenReaderSection.onPlayAsSoundClick||O).call(this,d,A)})},c.prototype.initDataTableButton=function(a){var s=this.viewDataTableButton=M(a),m=this.chart,A=a.replace("hc-linkto-","");s&&(h(s,{tabindex:-1,"aria-expanded":!!M(A)}),s.onclick=m.options.accessibility.screenReaderSection.onViewDataTableClick||function(){m.viewData()})},c.prototype.getAxesDescription=function(){var a=this.chart,s=function(k,z){var F=a[k];return F.length>1||F[0]&&e(F[0].options.accessibility&&F[0].options.accessibility.enabled,z)},m=!!a.types&&a.types.indexOf("map")<0&&a.types.indexOf("treemap")<0&&a.types.indexOf("tilemap")<0,A=!!a.hasCartesianSeries,O=s("xAxis",!a.angular&&A&&m),d=s("yAxis",A&&m),w={};return O&&(w.xAxis=this.getAxisDescriptionText("xAxis")),d&&(w.yAxis=this.getAxisDescriptionText("yAxis")),w},c.prototype.getAxisDescriptionText=function(a){var s=this.chart,m=s[a];return s.langFormat("accessibility.axis."+a+"Description"+(m.length>1?"Plural":"Singular"),{chart:s,names:m.map(function(A){return p(A)}),ranges:m.map(function(A){return g(A)}),numAxes:m.length})},c.prototype.destroy=function(){this.announcer&&this.announcer.destroy()},c}(R);return o}),rt(N,"Accessibility/Components/MenuComponent.js",[N["Core/Chart/Chart.js"],N["Core/Utilities.js"],N["Accessibility/AccessibilityComponent.js"],N["Accessibility/KeyboardNavigationHandler.js"],N["Accessibility/Utils/ChartUtilities.js"],N["Accessibility/Utils/HTMLUtilities.js"]],function(W,R,U,Y,Z,q){var $,G=this&&this.__extends||($=function(g,v){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,C){y.__proto__=C}||function(y,C){for(var P in C)C.hasOwnProperty(P)&&(y[P]=C[P])},$(g,v)},function(g,v){function y(){this.constructor=g}$(g,v),g.prototype=v===null?Object.create(v):(y.prototype=v.prototype,new y)}),D=R.attr,E=Z.getChartTitle,x=Z.unhideChartElementFromAT,T=q.getFakeMouseEvent;function u(g){return g.exportSVGElements&&g.exportSVGElements[0]}var p=function(g){function v(){return g!==null&&g.apply(this,arguments)||this}return G(v,g),v.prototype.init=function(){var y=this.chart,C=this;this.addEvent(y,"exportMenuShown",function(){C.onMenuShown()}),this.addEvent(y,"exportMenuHidden",function(){C.onMenuHidden()}),this.createProxyGroup()},v.prototype.onMenuHidden=function(){var y=this.chart.exportContextMenu;y&&y.setAttribute("aria-hidden","true"),this.setExportButtonExpandedState("false")},v.prototype.onMenuShown=function(){var y=this.chart,C=y.exportContextMenu;C&&(this.addAccessibleContextMenuAttribs(),x(y,C)),this.setExportButtonExpandedState("true")},v.prototype.setExportButtonExpandedState=function(y){this.exportButtonProxy&&this.exportButtonProxy.buttonElement.setAttribute("aria-expanded",y)},v.prototype.onChartRender=function(){var y=this.chart,C=y.focusElement,P=y.accessibility;this.proxyProvider.clearGroup("chartMenu"),this.proxyMenuButton(),this.exportButtonProxy&&C&&C===y.exportingGroup&&(C.focusBorder?y.setFocusToElement(C,this.exportButtonProxy.buttonElement):P&&P.keyboardNavigation.tabindexContainer.focus())},v.prototype.proxyMenuButton=function(){var y=this.chart,C=this.proxyProvider,P=u(y);(function(L){var M=L.options.exporting,f=u(L);return!!(M&&M.enabled!==!1&&M.accessibility&&M.accessibility.enabled&&f&&f.element)})(y)&&P&&(this.exportButtonProxy=C.addProxyElement("chartMenu",{click:P},{"aria-label":y.langFormat("accessibility.exporting.menuButtonLabel",{chart:y,chartTitle:E(y)}),"aria-expanded":!1,title:y.options.lang.contextButtonTitle||null}))},v.prototype.createProxyGroup=function(){this.chart&&this.proxyProvider&&this.proxyProvider.addGroup("chartMenu","div")},v.prototype.addAccessibleContextMenuAttribs=function(){var y=this.chart,C=y.exportDivElements;if(C&&C.length){C.forEach(function(L){L&&(L.tagName!=="LI"||L.children&&L.children.length?L.setAttribute("aria-hidden","true"):L.setAttribute("tabindex",-1))});var P=C[0]&&C[0].parentNode;P&&D(P,{"aria-hidden":void 0,"aria-label":y.langFormat("accessibility.exporting.chartMenuLabel",{chart:y}),role:"list"})}},v.prototype.getKeyboardNavigation=function(){var y=this.keyCodes,C=this.chart,P=this;return new Y(C,{keyCodeMap:[[[y.left,y.up],function(){return P.onKbdPrevious(this)}],[[y.right,y.down],function(){return P.onKbdNext(this)}],[[y.enter,y.space],function(){return P.onKbdClick(this)}]],validate:function(){return!!C.exporting&&C.options.exporting.enabled!==!1&&C.options.exporting.accessibility.enabled!==!1},init:function(){var L=P.exportButtonProxy,M=P.chart.exportingGroup;L&&M&&C.setFocusToElement(M,L.buttonElement)},terminate:function(){C.hideExportMenu()}})},v.prototype.onKbdPrevious=function(y){for(var C=this.chart,P=C.options.accessibility,L=y.response,M=C.highlightedExportItemIx||0;M--;)if(C.highlightExportItem(M))return L.success;return P.keyboardNavigation.wrapAround?(C.highlightLastExportItem(),L.success):L.prev},v.prototype.onKbdNext=function(y){for(var C=this.chart,P=C.options.accessibility,L=y.response,M=(C.highlightedExportItemIx||0)+1;M<C.exportDivElements.length;++M)if(C.highlightExportItem(M))return L.success;return P.keyboardNavigation.wrapAround?(C.highlightExportItem(0),L.success):L.next},v.prototype.onKbdClick=function(y){var C=this.chart,P=C.exportDivElements[C.highlightedExportItemIx],L=u(C).element;return C.openMenu?this.fakeClickEvent(P):(this.fakeClickEvent(L),C.highlightExportItem(0)),y.response.success},v}(U);return function(g){var v=[];function y(){var M=u(this);if(M){var f=M.element;f.onclick&&f.onclick(T("click"))}}function C(){var M=this,f=M.exportDivElements;f&&M.exportContextMenu&&M.openMenu&&(f.forEach(function(b){b&&b.className==="highcharts-menu-item"&&b.onmouseout&&b.onmouseout(T("mouseout"))}),M.highlightedExportItemIx=0,M.exportContextMenu.hideMenu(),M.container.focus())}function P(M){var f=this.exportDivElements&&this.exportDivElements[M],b=this.exportDivElements&&this.exportDivElements[this.highlightedExportItemIx];if(f&&f.tagName==="LI"&&(!f.children||!f.children.length)){var l=!!(this.renderTo.getElementsByTagName("g")[0]||{}).focus;return f.focus&&l&&f.focus(),b&&b.onmouseout&&b.onmouseout(T("mouseout")),f.onmouseover&&f.onmouseover(T("mouseover")),this.highlightedExportItemIx=M,!0}return!1}function L(){var M=this;if(M.exportDivElements){for(var f=M.exportDivElements.length;f--;)if(M.highlightExportItem(f))return!0}return!1}g.compose=function(M){if(v.indexOf(M)===-1){v.push(M);var f=W.prototype;f.hideExportMenu=C,f.highlightExportItem=P,f.highlightLastExportItem=L,f.showExportMenu=y}}}(p||(p={})),p}),rt(N,"Accessibility/KeyboardNavigation.js",[N["Core/Globals.js"],N["Accessibility/Components/MenuComponent.js"],N["Core/Utilities.js"],N["Accessibility/Utils/EventProvider.js"],N["Accessibility/Utils/HTMLUtilities.js"]],function(W,R,U,Y,Z){var q=W.doc,$=W.win,G=U.addEvent,D=U.fireEvent,E=Z.getElement,x=Z.simulatedEventTarget,T=function(){function u(p,g){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(p,g)}return u.prototype.init=function(p,g){var v=this,y=this.eventProvider=new Y;this.chart=p,this.components=g,this.modules=[],this.currentModuleIx=0,this.update(),y.addEvent(this.tabindexContainer,"keydown",function(C){return v.onKeydown(C)}),y.addEvent(this.tabindexContainer,"focus",function(C){return v.onFocus(C)}),["mouseup","touchend"].forEach(function(C){return y.addEvent(q,C,function(P){return v.onMouseUp(P)})}),["mousedown","touchstart"].forEach(function(C){return y.addEvent(p.renderTo,C,function(){v.isClickingChart=!0})}),y.addEvent(p.renderTo,"mouseover",function(){v.pointerIsOverChart=!0}),y.addEvent(p.renderTo,"mouseout",function(){v.pointerIsOverChart=!1})},u.prototype.update=function(p){var g=this.chart.options.accessibility,v=g&&g.keyboardNavigation,y=this.components;this.updateContainerTabindex(),v&&v.enabled&&p&&p.length?(this.modules=p.reduce(function(C,P){var L=y[P].getKeyboardNavigation();return C.concat(L)},[]),this.updateExitAnchor()):(this.modules=[],this.currentModuleIx=0,this.removeExitAnchor())},u.prototype.updateExitAnchor=function(){var p="highcharts-end-of-chart-marker-".concat(this.chart.index),g=E(p);this.removeExitAnchor(),g?(this.makeElementAnExitAnchor(g),this.exitAnchor=g):this.createExitAnchor()},u.prototype.move=function(p){var g=this.modules&&this.modules[this.currentModuleIx];g&&g.terminate&&g.terminate(p),this.chart.focusElement&&this.chart.focusElement.removeFocusBorder(),this.currentModuleIx+=p;var v=this.modules&&this.modules[this.currentModuleIx];if(v){if(v.validate&&!v.validate())return this.move(p);if(v.init)return v.init(p),!0}return this.currentModuleIx=0,this.exiting=!0,p>0?this.exitAnchor&&this.exitAnchor.focus():this.tabindexContainer.focus(),!1},u.prototype.onFocus=function(p){var g=this.chart,v=p.relatedTarget&&g.container.contains(p.relatedTarget);if(!(this.exiting||this.tabbingInBackwards||this.isClickingChart||v)){var y=this.getFirstValidModuleIx();y!==null&&(this.currentModuleIx=y,this.modules[y].init(1))}this.exiting=!1},u.prototype.onMouseUp=function(p){if(delete this.isClickingChart,!this.keyboardReset&&p.relatedTarget!==x){var g=this.chart;if(!this.pointerIsOverChart){var v=this.modules&&this.modules[this.currentModuleIx||0];v&&v.terminate&&v.terminate(),this.currentModuleIx=0}g.focusElement&&(g.focusElement.removeFocusBorder(),delete g.focusElement),this.keyboardReset=!0}},u.prototype.onKeydown=function(p){var g,v=p||$.event,y=this.modules&&this.modules.length&&this.modules[this.currentModuleIx];if(this.keyboardReset=!1,this.exiting=!1,y){var C=y.run(v);C===y.response.success?g=!0:C===y.response.prev?g=this.move(-1):C===y.response.next&&(g=this.move(1)),g&&(v.preventDefault(),v.stopPropagation())}},u.prototype.updateContainerTabindex=function(){var p,g=this.chart.options.accessibility,v=g&&g.keyboardNavigation,y=!(v&&v.enabled===!1),C=this.chart,P=C.container;C.renderTo.hasAttribute("tabindex")?(P.removeAttribute("tabindex"),p=C.renderTo):p=P,this.tabindexContainer=p;var L=p.getAttribute("tabindex");y&&!L?p.setAttribute("tabindex","0"):y||C.container.removeAttribute("tabindex")},u.prototype.createExitAnchor=function(){var p=this.chart,g=this.exitAnchor=q.createElement("div");p.renderTo.appendChild(g),this.makeElementAnExitAnchor(g)},u.prototype.makeElementAnExitAnchor=function(p){var g=this.tabindexContainer.getAttribute("tabindex")||0;p.setAttribute("class","highcharts-exit-anchor"),p.setAttribute("tabindex",g),p.setAttribute("aria-hidden",!1),this.addExitAnchorEventsToEl(p)},u.prototype.removeExitAnchor=function(){this.exitAnchor&&this.exitAnchor.parentNode&&(this.exitAnchor.parentNode.removeChild(this.exitAnchor),delete this.exitAnchor)},u.prototype.addExitAnchorEventsToEl=function(p){var g=this.chart,v=this;this.eventProvider.addEvent(p,"focus",function(y){var C=y||$.event,P=!(C.relatedTarget&&g.container.contains(C.relatedTarget)||v.exiting);if(g.focusElement&&delete g.focusElement,P){if(v.tabbingInBackwards=!0,v.tabindexContainer.focus(),delete v.tabbingInBackwards,C.preventDefault(),v.modules&&v.modules.length){v.currentModuleIx=v.modules.length-1;var L=v.modules[v.currentModuleIx];L&&L.validate&&!L.validate()?v.move(-1):L&&L.init(-1)}}else v.exiting=!1})},u.prototype.getFirstValidModuleIx=function(){for(var p=this.modules.length,g=0;g<p;++g){var v=this.modules[g];if(!v.validate||v.validate())return g}return null},u.prototype.destroy=function(){this.removeExitAnchor(),this.eventProvider.removeAddedEvents(),this.chart.container.removeAttribute("tabindex")},u}();return function(u){var p=[];function g(){var y=this;D(this,"dismissPopupContent",{},function(){y.tooltip&&y.tooltip.hide(0),y.hideExportMenu()})}function v(y){(y.which||y.keyCode)===27&&W.charts&&W.charts.forEach(function(C){C&&C.dismissPopupContent&&C.dismissPopupContent()})}u.compose=function(y){return R.compose(y),p.indexOf(y)===-1&&(p.push(y),y.prototype.dismissPopupContent=g),p.indexOf(q)===-1&&(p.push(q),G(q,"keydown",v)),y}}(T||(T={})),T}),rt(N,"Accessibility/Components/LegendComponent.js",[N["Core/Animation/AnimationUtilities.js"],N["Core/Globals.js"],N["Core/Legend/Legend.js"],N["Core/Utilities.js"],N["Accessibility/AccessibilityComponent.js"],N["Accessibility/KeyboardNavigationHandler.js"],N["Accessibility/Utils/ChartUtilities.js"],N["Accessibility/Utils/HTMLUtilities.js"]],function(W,R,U,Y,Z,q,$,G){var D,E=this&&this.__extends||(D=function(h,e){return D=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])},D(h,e)},function(h,e){function r(){this.constructor=h}D(h,e),h.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}),x=W.animObject,T=R.doc,u=Y.addEvent,p=Y.fireEvent,g=Y.isNumber,v=Y.pick,y=Y.syncTimeout,C=$.getChartTitle,P=G.stripHTMLTagsFromString,L=G.addClass,M=G.removeClass;function f(h){var e=h.legend&&h.legend.allItems,r=h.options.legend.accessibility||{},o=h.colorAxis&&h.colorAxis.some(function(i){return!i.dataClasses||!i.dataClasses.length});return!(!e||!e.length||o||r.enabled===!1)}function b(h,e){var r=e.legendItem||{};e.setState(h?"hover":"",!0);for(var o=0,i=["group","label","symbol"];o<i.length;o++){var c=r[i[o]],a=c&&c.element||c;a&&p(a,h?"mouseover":"mouseout")}}var l=function(h){function e(){var r=h!==null&&h.apply(this,arguments)||this;return r.highlightedLegendItemIx=NaN,r.proxyGroup=null,r}return E(e,h),e.prototype.init=function(){var r=this;this.recreateProxies(),this.addEvent(U,"afterScroll",function(){this.chart===r.chart&&(r.proxyProvider.updateGroupProxyElementPositions("legend"),r.updateLegendItemProxyVisibility(),r.highlightedLegendItemIx>-1&&this.chart.highlightLegendItem(r.highlightedLegendItemIx))}),this.addEvent(U,"afterPositionItem",function(o){this.chart===r.chart&&this.chart.renderer&&r.updateProxyPositionForItem(o.item)}),this.addEvent(U,"afterRender",function(){this.chart===r.chart&&this.chart.renderer&&r.recreateProxies()&&y(function(){return r.proxyProvider.updateGroupProxyElementPositions("legend")},x(v(this.chart.renderer.globalAnimation,!0)).duration)})},e.prototype.updateLegendItemProxyVisibility=function(){var r,o=this.chart,i=o.legend,c=i.allItems||[],a=i.currentPage||1,s=i.clipHeight||0;c.forEach(function(m){if(m.a11yProxyElement){var A=i.pages&&i.pages.length,O=m.a11yProxyElement.element,d=!1;if(r=m.legendItem||{},A){var w=r.pageIx||0;d=(r.y||0)+(r.label?Math.round(r.label.getBBox().height):0)-i.pages[w]>s||w!==a-1}d?o.styledMode?L(O,"highcharts-a11y-invisible"):O.style.visibility="hidden":(M(O,"highcharts-a11y-invisible"),O.style.visibility="")}})},e.prototype.onChartRender=function(){f(this.chart)||this.removeProxies()},e.prototype.highlightAdjacentLegendPage=function(r){var o=this.chart,i=o.legend,c=(i.currentPage||1)+r,a=i.pages||[];if(c>0&&c<=a.length)for(var s=0,m=0,A=i.allItems;m<A.length;m++)((A[m].legendItem||{}).pageIx||0)+1===c&&o.highlightLegendItem(s)&&(this.highlightedLegendItemIx=s),++s},e.prototype.updateProxyPositionForItem=function(r){r.a11yProxyElement&&r.a11yProxyElement.refreshPosition()},e.prototype.recreateProxies=function(){var r=T.activeElement,o=this.proxyGroup,i=r&&o&&o.contains(r);return this.removeProxies(),!!f(this.chart)&&(this.addLegendProxyGroup(),this.proxyLegendItems(),this.updateLegendItemProxyVisibility(),this.updateLegendTitle(),i&&this.chart.highlightLegendItem(this.highlightedLegendItemIx),!0)},e.prototype.removeProxies=function(){this.proxyProvider.removeGroup("legend")},e.prototype.updateLegendTitle=function(){var r=this.chart,o=P((r.legend&&r.legend.options.title&&r.legend.options.title.text||"").replace(/<br ?\/?>/g," ")),i=r.langFormat("accessibility.legend.legendLabel"+(o?"":"NoTitle"),{chart:r,legendTitle:o,chartTitle:C(r)});this.proxyProvider.updateGroupAttrs("legend",{"aria-label":i})},e.prototype.addLegendProxyGroup=function(){var r=this.chart.options.accessibility.landmarkVerbosity==="all"?"region":null;this.proxyGroup=this.proxyProvider.addGroup("legend","ul",{"aria-label":"_placeholder_",role:r})},e.prototype.proxyLegendItems=function(){var r,o=this;((this.chart.legend||{}).allItems||[]).forEach(function(i){(r=i.legendItem||{}).label&&r.label.element&&o.proxyLegendItem(i)})},e.prototype.proxyLegendItem=function(r){var o=r.legendItem||{};if(o.label&&o.group){var i=this.chart.langFormat("accessibility.legend.legendItem",{chart:this.chart,itemName:P(r.name),item:r}),c={tabindex:-1,"aria-pressed":r.visible,"aria-label":i},a=o.group.div?o.label:o.group;r.a11yProxyElement=this.proxyProvider.addProxyElement("legend",{click:o.label,visual:a.element},c)}},e.prototype.getKeyboardNavigation=function(){var r=this.keyCodes,o=this,i=this.chart;return new q(i,{keyCodeMap:[[[r.left,r.right,r.up,r.down],function(c){return o.onKbdArrowKey(this,c)}],[[r.enter,r.space],function(){return o.onKbdClick(this)}],[[r.pageDown,r.pageUp],function(c){var a=c===r.pageDown?1:-1;return o.highlightAdjacentLegendPage(a),this.response.success}]],validate:function(){return o.shouldHaveLegendNavigation()},init:function(){i.highlightLegendItem(0),o.highlightedLegendItemIx=0},terminate:function(){o.highlightedLegendItemIx=-1,i.legend.allItems.forEach(function(c){return b(!1,c)})}})},e.prototype.onKbdArrowKey=function(r,o){var i=this.keyCodes,c=r.response,a=this.chart,s=a.options.accessibility,m=a.legend.allItems.length,A=o===i.left||o===i.up?-1:1;return a.highlightLegendItem(this.highlightedLegendItemIx+A)?(this.highlightedLegendItemIx+=A,c.success):(m>1&&s.keyboardNavigation.wrapAround&&r.init(A),c.success)},e.prototype.onKbdClick=function(r){var o=this.chart.legend.allItems[this.highlightedLegendItemIx];return o&&o.a11yProxyElement&&o.a11yProxyElement.click(),r.response.success},e.prototype.shouldHaveLegendNavigation=function(){if(!f(this.chart))return!1;var r=this.chart,o=(r.options.legend||{}).accessibility||{};return!!(r.legend.display&&o.keyboardNavigation&&o.keyboardNavigation.enabled)},e}(Z);return function(h){var e=[];function r(i){var c,a,s,m,A=this.legend.allItems,O=this.accessibility&&this.accessibility.components.legend.highlightedLegendItemIx,d=A[i],w=d.legendItem||{};if(d){g(O)&&A[O]&&b(!1,A[O]),a=i,s=((c=this.legend).allItems[a].legendItem||{}).pageIx,m=c.currentPage,s!==void 0&&s+1!==m&&c.scroll(1+s-m);var k=w.label,z=d.a11yProxyElement&&d.a11yProxyElement.buttonElement;return k&&k.element&&z&&this.setFocusToElement(k,z),b(!0,d),!0}return!1}function o(i){var c=this.chart.options.accessibility,a=i.item;c.enabled&&a&&a.a11yProxyElement&&a.a11yProxyElement.buttonElement.setAttribute("aria-pressed",i.visible?"true":"false")}h.compose=function(i,c){e.indexOf(i)===-1&&(e.push(i),i.prototype.highlightLegendItem=r),e.indexOf(c)===-1&&(e.push(c),u(c,"afterColorizeItem",o))}}(l||(l={})),l}),rt(N,"Accessibility/Components/SeriesComponent/SeriesDescriber.js",[N["Accessibility/Components/AnnotationsA11y.js"],N["Accessibility/Utils/ChartUtilities.js"],N["Core/FormatUtilities.js"],N["Accessibility/Utils/HTMLUtilities.js"],N["Core/Utilities.js"]],function(W,R,U,Y,Z){var q=W.getPointAnnotationTexts,$=R.getAxisDescription,G=R.getSeriesFirstPointElement,D=R.getSeriesA11yElement,E=R.unhideChartElementFromAT,x=U.format,T=U.numberFormat,u=Y.reverseChildNodes,p=Y.stripHTMLTagsFromString,g=Z.find,v=Z.isNumber,y=Z.pick,C=Z.defined;function P(e){var r=e.chart.options.accessibility.series.pointDescriptionEnabledThreshold;return!!(r!==!1&&e.points&&e.points.length>=r)}function L(e,r){var o=e.series,i=o.chart,c=i.options.accessibility.point||{},a=o.options.accessibility&&o.options.accessibility.point||{},s=o.tooltipOptions||{},m=i.options.lang;return v(r)?T(r,a.valueDecimals||c.valueDecimals||s.valueDecimals||-1,m.decimalPoint,m.accessibility.thousandsSep||m.thousandsSep):r}function M(e,r){var o=e[r];return e.chart.langFormat("accessibility.series."+r+"Description",{name:$(o),series:e})}function f(e){var r=e.series,o=r.chart.options.accessibility.point||{},i=r.chart.options.accessibility&&r.chart.options.accessibility.point||{},c=r.tooltipOptions||{},a=i.valuePrefix||o.valuePrefix||c.valuePrefix||"",s=i.valueSuffix||o.valueSuffix||c.valueSuffix||"",m=L(e,e[e.value!==void 0?"value":"y"]);return e.isNull?r.chart.langFormat("accessibility.series.nullPointValue",{point:e}):r.pointArrayMap?function(A,O,d){var w=O||"",k=d||"";return A.series.pointArrayMap.reduce(function(z,F){return z+(z.length?", ":"")+function(j){var I=L(A,y(A[j],A.options[j]));return j+": "+w+I+k}(F)},"")}(e,a,s):a+m+s}function b(e){var r=e.series,o=r.chart.series.length>1||r.options.name,i=function(O){var d=O.series,w=d.chart,k=d.options.accessibility,z=k&&k.point&&k.point.valueDescriptionFormat||w.options.accessibility.point.valueDescriptionFormat,F=y(d.xAxis&&d.xAxis.options.accessibility&&d.xAxis.options.accessibility.enabled,!w.angular),j=F?function(_){var V=function(et){var tt=et.series,st=tt.chart,ct=tt.options.accessibility&&tt.options.accessibility.point||{},gt=st.options.accessibility.point||{},mt=tt.xAxis&&tt.xAxis.dateTime;if(mt){var bt=mt.getXDateFormat(et.x||0,st.options.tooltip.dateTimeLabelFormats),yt=ct.dateFormatter&&ct.dateFormatter(et)||gt.dateFormatter&&gt.dateFormatter(et)||ct.dateFormat||gt.dateFormat||bt;return st.time.dateFormat(yt,et.x||0,void 0)}}(_),X=(_.series.xAxis||{}).categories&&C(_.category)&&(""+_.category).replace("<br/>"," "),H=C(_.id)&&(""+_.id).indexOf("highcharts-")<0,Q="x, "+_.x;return _.name||V||X||(H?_.id:Q)}(O):"",I={point:O,index:C(O.index)?O.index+1:"",xDescription:j,value:f(O),separator:F?", ":""};return x(z,I,w)}(e),c=e.options&&e.options.accessibility&&e.options.accessibility.description,a=c?" "+c:"",s=o?" "+r.name+".":"",m=function(O){var d=O.series.chart,w=q(O),k={point:O,annotations:w};return w.length?d.langFormat("accessibility.series.pointAnnotationsDescription",k):""}(e),A=m?" "+m:"";return e.accessibility=e.accessibility||{},e.accessibility.valueDescription=i,i+a+s+A}function l(e){var r=function(c){var a=c.options.accessibility||{};return!P(c)&&!a.exposeAsGroupOnly}(e),o=function(c){var a=c.chart.options.accessibility.keyboardNavigation.seriesNavigation;return!(!c.points||!(c.points.length<a.pointNavigationEnabledThreshold||a.pointNavigationEnabledThreshold===!1))}(e),i=e.chart.options.accessibility.point.describeNull;(r||o)&&e.points.forEach(function(c){var a=c.graphic&&c.graphic.element||function(m){var A=m.series,O=A&&A.chart,d=A&&A.is("sunburst"),w=m.isNull,k=O&&O.options.accessibility.point.describeNull;return w&&!d&&k}(c)&&function(m){var A=m.series,O=function(z){var F=z.index;return z.series&&z.series.data&&C(F)&&g(z.series.data,function(j){return!!(j&&j.index!==void 0&&j.index>F&&j.graphic&&j.graphic.element)})||null}(m),d=O&&O.graphic,w=d?d.parentGroup:A.graph||A.group,k=function(z,F){var j=z.series.chart.renderer.rect(F.x,F.y,1,1);return j.attr({class:"highcharts-a11y-mock-point",fill:"none",opacity:0,"fill-opacity":0,"stroke-opacity":0}),j}(m,O?{x:y(m.plotX,O.plotX,0),y:y(m.plotY,O.plotY,0)}:{x:y(m.plotX,0),y:y(m.plotY,0)});if(w&&w.element)return m.graphic=k,m.hasMockGraphic=!0,k.add(w),w.element.insertBefore(k.element,d?d.element:null),k.element}(c),s=c.options&&c.options.accessibility&&c.options.accessibility.enabled===!1;if(a){if(c.isNull&&!i)return void a.setAttribute("aria-hidden",!0);a.setAttribute("tabindex","-1"),e.chart.styledMode||(a.style.outline="none"),r&&!s?function(m,A){var O=m.series,d=O.chart.options.accessibility.point||{},w=O.options.accessibility&&O.options.accessibility.point||{},k=p(w.descriptionFormatter&&w.descriptionFormatter(m)||d.descriptionFormatter&&d.descriptionFormatter(m)||b(m));A.setAttribute("role","img"),A.setAttribute("aria-label",k)}(c,a):a.setAttribute("aria-hidden",!0)}})}function h(e){var r=e.chart,o=r.types||[],i=function(z){var F=(z.options.accessibility||{}).description;return F&&z.chart.langFormat("accessibility.series.description",{description:F,series:z})||""}(e),c=function(z){return r[z]&&r[z].length>1&&e[z]},a=e.index+1,s=M(e,"xAxis"),m=M(e,"yAxis"),A={seriesNumber:a,series:e,chart:r},O=o.length>1?"Combination":"",d=r.langFormat("accessibility.series.summary."+e.type+O,A)||r.langFormat("accessibility.series.summary.default"+O,A),w=(c("yAxis")?" "+m+".":"")+(c("xAxis")?" "+s+".":""),k=r.options.accessibility.series.descriptionFormat||"";return x(k,{seriesDescription:d,authorDescription:i?" "+i:"",axisDescription:w,series:e,chart:r,seriesNumber:a},void 0)}return{defaultPointDescriptionFormatter:b,defaultSeriesDescriptionFormatter:h,describeSeries:function(e){var r=e.chart,o=G(e),i=D(e),c=r.is3d&&r.is3d();i&&(i.lastChild!==o||c||u(i),l(e),E(r,i),function(a){var s=a.chart,m=s.options.chart,A=m.options3d&&m.options3d.enabled,O=s.series.length>1,d=s.options.accessibility.series.describeSingleSeries,w=(a.options.accessibility||{}).exposeAsGroupOnly;return!(A&&O)&&(O||d||w||P(a))}(e)?function(a,s){var m=a.options.accessibility||{},A=a.chart.options.accessibility,O=A.landmarkVerbosity;m.exposeAsGroupOnly?s.setAttribute("role","img"):O==="all"?s.setAttribute("role","region"):s.setAttribute("role","group"),s.setAttribute("tabindex","-1"),a.chart.styledMode||(s.style.outline="none"),s.setAttribute("aria-label",p(A.series.descriptionFormatter&&A.series.descriptionFormatter(a)||h(a)))}(e,i):i.removeAttribute("aria-label"))}}}),rt(N,"Accessibility/Components/SeriesComponent/NewDataAnnouncer.js",[N["Core/Globals.js"],N["Core/Utilities.js"],N["Accessibility/Utils/Announcer.js"],N["Accessibility/Utils/ChartUtilities.js"],N["Accessibility/Utils/EventProvider.js"],N["Accessibility/Components/SeriesComponent/SeriesDescriber.js"]],function(W,R,U,Y,Z,q){var $=R.addEvent,G=R.defined,D=Y.getChartTitle,E=q.defaultPointDescriptionFormatter,x=q.defaultSeriesDescriptionFormatter;function T(p){return!!p.options.accessibility.announceNewData.enabled}var u=function(){function p(g){this.announcer=void 0,this.dirty={allSeries:{}},this.eventProvider=void 0,this.lastAnnouncementTime=0,this.chart=g}return p.prototype.init=function(){var g=this.chart,v=g.options.accessibility.announceNewData.interruptUser?"assertive":"polite";this.lastAnnouncementTime=0,this.dirty={allSeries:{}},this.eventProvider=new Z,this.announcer=new U(g,v),this.addEventListeners()},p.prototype.destroy=function(){this.eventProvider.removeAddedEvents(),this.announcer.destroy()},p.prototype.addEventListeners=function(){var g=this,v=this.chart,y=this.eventProvider;y.addEvent(v,"afterApplyDrilldown",function(){g.lastAnnouncementTime=0}),y.addEvent(v,"afterAddSeries",function(C){g.onSeriesAdded(C.series)}),y.addEvent(v,"redraw",function(){g.announceDirtyData()})},p.prototype.onSeriesAdded=function(g){T(this.chart)&&(this.dirty.hasDirty=!0,this.dirty.allSeries[g.name+g.index]=g,this.dirty.newSeries=G(this.dirty.newSeries)?void 0:g)},p.prototype.announceDirtyData=function(){var g,v,y=this.chart,C=this;if(y.options.accessibility.announceNewData&&this.dirty.hasDirty){var P=this.dirty.newPoint;P&&(P=(v=(g=P).series.data.filter(function(L){return g.x===L.x&&g.y===L.y})).length===1?v[0]:g),this.queueAnnouncement(Object.keys(this.dirty.allSeries).map(function(L){return C.dirty.allSeries[L]}),this.dirty.newSeries,P),this.dirty={allSeries:{}}}},p.prototype.queueAnnouncement=function(g,v,y){var C,P,L,M=this,f=this.chart.options.accessibility.announceNewData;if(f.enabled){var b=+new Date,l=b-this.lastAnnouncementTime,h=Math.max(0,f.minAnnounceInterval-l),e=(C=this.queuedAnnouncement&&this.queuedAnnouncement.series,P=g,L=(C||[]).concat(P||[]).reduce(function(o,i){return o[i.name+i.index]=i,o},{}),Object.keys(L).map(function(o){return L[o]})),r=this.buildAnnouncementMessage(e,v,y);r&&(this.queuedAnnouncement&&clearTimeout(this.queuedAnnouncementTimer),this.queuedAnnouncement={time:b,message:r,series:e},this.queuedAnnouncementTimer=setTimeout(function(){M&&M.announcer&&(M.lastAnnouncementTime=+new Date,M.announcer.announce(M.queuedAnnouncement.message),delete M.queuedAnnouncement,delete M.queuedAnnouncementTimer)},h))}},p.prototype.buildAnnouncementMessage=function(g,v,y){var C=this.chart,P=C.options.accessibility.announceNewData;if(P.announcementFormatter){var L=P.announcementFormatter(g,v,y);if(L!==!1)return L.length?L:null}var M=W.charts&&W.charts.length>1?"Multiple":"Single",f=v?"newSeriesAnnounce"+M:y?"newPointAnnounce"+M:"newDataAnnounce",b=D(C);return C.langFormat("accessibility.announceNewData."+f,{chartTitle:b,seriesDesc:v?x(v):null,pointDesc:y?E(y):null,point:y,series:v})},p}();return function(p){function g(y){var C=this.chart,P=this.newDataAnnouncer;P&&P.chart===C&&T(C)&&(P.dirty.newPoint=G(P.dirty.newPoint)?void 0:y.point)}function v(){var y=this.chart,C=this.newDataAnnouncer;C&&C.chart===y&&T(y)&&(C.dirty.hasDirty=!0,C.dirty.allSeries[this.name+this.index]=this)}p.composedClasses=[],p.compose=function(y){p.composedClasses.indexOf(y)===-1&&(p.composedClasses.push(y),$(y,"addPoint",g),$(y,"updatedData",v))}}(u||(u={})),u}),rt(N,"Accessibility/ProxyElement.js",[N["Core/Globals.js"],N["Core/Utilities.js"],N["Accessibility/Utils/EventProvider.js"],N["Accessibility/Utils/ChartUtilities.js"],N["Accessibility/Utils/HTMLUtilities.js"]],function(W,R,U,Y,Z){var q=W.doc,$=R.attr,G=R.css,D=R.merge,E=Y.fireEventOnWrappedOrUnwrappedElement,x=Z.cloneMouseEvent,T=Z.cloneTouchEvent,u=Z.getFakeMouseEvent,p=Z.removeElement;return function(){function g(v,y,C,P){this.chart=v,this.target=y,this.groupType=C;var L=C==="ul";this.eventProvider=new U;var M=L?q.createElement("li"):null,f=this.buttonElement=q.createElement("button");v.styledMode||this.hideButtonVisually(f),M?(L&&!v.styledMode&&(M.style.listStyle="none"),M.appendChild(f),this.element=M):this.element=f,this.updateTarget(y,P)}return g.prototype.click=function(){var v=this.getTargetPosition();v.x+=v.width/2,v.y+=v.height/2;var y=u("click",v);E(this.target.click,y)},g.prototype.updateTarget=function(v,y){this.target=v,this.updateCSSClassName();var C=y||{};Object.keys(C).forEach(function(P){C[P]===null&&delete C[P]}),$(this.buttonElement,D({"aria-label":this.getTargetAttr(v.click,"aria-label")},C)),this.eventProvider.removeAddedEvents(),this.addProxyEventsToButton(this.buttonElement,v.click),this.refreshPosition()},g.prototype.refreshPosition=function(){var v=this.getTargetPosition();G(this.buttonElement,{width:(v.width||1)+"px",height:(v.height||1)+"px",left:(Math.round(v.x)||0)+"px",top:(Math.round(v.y)||0)+"px"})},g.prototype.remove=function(){this.eventProvider.removeAddedEvents(),p(this.element)},g.prototype.updateCSSClassName=function(){var v=function(M){return M.indexOf("highcharts-no-tooltip")>-1},y=this.chart.legend,C=y.group&&y.group.div,P=v(C&&C.className||""),L=v(this.getTargetAttr(this.target.click,"class")||"");this.buttonElement.className=P||L?"highcharts-a11y-proxy-button highcharts-no-tooltip":"highcharts-a11y-proxy-button"},g.prototype.addProxyEventsToButton=function(v,y){var C=this;["click","touchstart","touchend","touchcancel","touchmove","mouseover","mouseenter","mouseleave","mouseout"].forEach(function(P){var L=P.indexOf("touch")===0;C.eventProvider.addEvent(v,P,function(M){var f=L?T(M):x(M);y&&E(y,f),M.stopPropagation(),L||M.preventDefault()},{passive:!1})})},g.prototype.hideButtonVisually=function(v){G(v,{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)"})},g.prototype.getTargetPosition=function(){var v=this.target.click,y=v.element?v.element:v,C=this.target.visual||y;if(this.chart.renderTo&&C&&C.getBoundingClientRect){var P=C.getBoundingClientRect(),L=this.chart.pointer.getChartPosition();return{x:(P.left-L.left)/L.scaleX,y:(P.top-L.top)/L.scaleY,width:P.right/L.scaleX-P.left/L.scaleX,height:P.bottom/L.scaleY-P.top/L.scaleY}}return{x:0,y:0,width:1,height:1}},g.prototype.getTargetAttr=function(v,y){return v.element?v.element.getAttribute(y):v.getAttribute(y)},g}()}),rt(N,"Accessibility/ProxyProvider.js",[N["Core/Globals.js"],N["Core/Utilities.js"],N["Accessibility/Utils/ChartUtilities.js"],N["Accessibility/Utils/DOMElementProvider.js"],N["Accessibility/Utils/HTMLUtilities.js"],N["Accessibility/ProxyElement.js"]],function(W,R,U,Y,Z,q){var $=W.doc,G=R.attr,D=R.css,E=U.unhideChartElementFromAT,x=Z.removeElement,T=Z.removeChildNodes;return function(){function u(p){this.chart=p,this.domElementProvider=new Y,this.groups={},this.groupOrder=[],this.beforeChartProxyPosContainer=this.createProxyPosContainer("before"),this.afterChartProxyPosContainer=this.createProxyPosContainer("after"),this.update()}return u.prototype.addProxyElement=function(p,g,v){var y=this.groups[p];if(!y)throw new Error("ProxyProvider.addProxyElement: Invalid group key "+p);var C=new q(this.chart,g,y.type,v);return y.proxyContainerElement.appendChild(C.element),y.proxyElements.push(C),C},u.prototype.addGroup=function(p,g,v){var y=this.groups[p];if(y)return y.groupElement;var C,P=this.domElementProvider.createElement(g);return v&&v.role&&g!=="div"?(C=this.domElementProvider.createElement("div")).appendChild(P):C=P,C.className="highcharts-a11y-proxy-group highcharts-a11y-proxy-group-"+p.replace(/\W/g,"-"),this.groups[p]={proxyContainerElement:P,groupElement:C,type:g,proxyElements:[]},G(C,v||{}),g==="ul"&&P.setAttribute("role","list"),this.afterChartProxyPosContainer.appendChild(C),this.updateGroupOrder(this.groupOrder),C},u.prototype.updateGroupAttrs=function(p,g){var v=this.groups[p];if(!v)throw new Error("ProxyProvider.updateGroupAttrs: Invalid group key "+p);G(v.groupElement,g)},u.prototype.updateGroupOrder=function(p){var g=this;if(this.groupOrder=p.slice(),!this.isDOMOrderGroupOrder()){var v=p.indexOf("series"),y=v>-1?p.slice(0,v):p,C=v>-1?p.slice(v+1):[],P=$.activeElement;["before","after"].forEach(function(L){var M=g[L==="before"?"beforeChartProxyPosContainer":"afterChartProxyPosContainer"],f=L==="before"?y:C;T(M),f.forEach(function(b){var l=g.groups[b];l&&M.appendChild(l.groupElement)})}),(this.beforeChartProxyPosContainer.contains(P)||this.afterChartProxyPosContainer.contains(P))&&P&&P.focus&&P.focus()}},u.prototype.clearGroup=function(p){var g=this.groups[p];if(!g)throw new Error("ProxyProvider.clearGroup: Invalid group key "+p);T(g.proxyContainerElement)},u.prototype.removeGroup=function(p){var g=this.groups[p];g&&(x(g.groupElement),delete this.groups[p])},u.prototype.update=function(){this.updatePosContainerPositions(),this.updateGroupOrder(this.groupOrder),this.updateProxyElementPositions()},u.prototype.updateProxyElementPositions=function(){Object.keys(this.groups).forEach(this.updateGroupProxyElementPositions.bind(this))},u.prototype.updateGroupProxyElementPositions=function(p){var g=this.groups[p];g&&g.proxyElements.forEach(function(v){return v.refreshPosition()})},u.prototype.destroy=function(){this.domElementProvider.destroyCreatedElements()},u.prototype.createProxyPosContainer=function(p){var g=this.domElementProvider.createElement("div");return g.setAttribute("aria-hidden","false"),g.className="highcharts-a11y-proxy-container"+(p?"-"+p:""),D(g,{top:"0",left:"0"}),this.chart.styledMode||(g.style.whiteSpace="nowrap",g.style.position="absolute"),g},u.prototype.getCurrentGroupOrderInDOM=function(){var p=this,g=function(P){for(var L=Object.keys(p.groups),M=L.length;M--;){var f=L[M],b=p.groups[f];if(b&&P===b.groupElement)return f}},v=function(P){for(var L=[],M=P.children,f=0;f<M.length;++f){var b=g(M[f]);b&&L.push(b)}return L},y=v(this.beforeChartProxyPosContainer),C=v(this.afterChartProxyPosContainer);return y.push("series"),y.concat(C)},u.prototype.isDOMOrderGroupOrder=function(){var p=this,g=this.getCurrentGroupOrderInDOM(),v=this.groupOrder.filter(function(C){return C==="series"||!!p.groups[C]}),y=g.length;if(y!==v.length)return!1;for(;y--;)if(g[y]!==v[y])return!1;return!0},u.prototype.updatePosContainerPositions=function(){var p=this.chart;if(!p.renderer.forExport){var g=p.renderer.box;p.container.insertBefore(this.afterChartProxyPosContainer,g.nextSibling),p.container.insertBefore(this.beforeChartProxyPosContainer,g),E(this.chart,this.afterChartProxyPosContainer),E(this.chart,this.beforeChartProxyPosContainer)}},u}()}),rt(N,"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"}}}}),rt(N,"Stock/RangeSelector/RangeSelectorComposition.js",[N["Core/Defaults.js"],N["Stock/RangeSelector/RangeSelectorDefaults.js"],N["Core/Utilities.js"]],function(W,R,U){var Y,Z=W.defaultOptions,q=W.setOptions,$=U.addEvent,G=U.defined,D=U.extend,E=U.find,x=U.isNumber,T=U.merge,u=U.pick,p=[],g=[];function v(){var l,h,e=this.range,r=e.type,o=this.max,i=this.chart.time,c=function(s,m){var A=r==="year"?"FullYear":"Month",O=new i.Date(s),d=i.get(A,O);return i.set(A,O,d+m),d===i.get(A,O)&&i.set("Date",O,0),O.getTime()-s};x(e)?(l=o-e,h=e):e&&(l=o+c(o,-(e.count||1)),this.chart&&(this.chart.fixedRange=o-l));var a=u(this.dataMin,Number.MIN_VALUE);return x(l)||(l=a),l<=a&&(l=a,h===void 0&&(h=c(l,e.count)),this.newMax=Math.min(l+h,u(this.dataMax,Number.MAX_VALUE))),x(o)?!x(e)&&e&&e._offsetMin&&(l+=e._offsetMin):l=void 0,l}function y(){this.options.rangeSelector&&this.options.rangeSelector.enabled&&(this.rangeSelector=new Y(this))}function C(){var l=this,h=l.axes,e=l.rangeSelector;if(e){x(e.deferredYTDClick)&&(e.clickButton(e.deferredYTDClick),delete e.deferredYTDClick),h.forEach(function(o){o.updateNames(),o.setScale()}),l.getAxisMargins(),e.render();var r=e.options.verticalAlign;e.options.floating||(r==="bottom"?this.extraBottomMargin=!0:r!=="middle"&&(this.extraTopMargin=!0))}}function P(l){var h,e,r,o,i=l.rangeSelector,c=function(){i&&(h=l.xAxis[0].getExtremes(),e=l.legend,o=i&&i.options.verticalAlign,x(h.min)&&i.render(h.min,h.max),e.display&&o==="top"&&o===e.options.verticalAlign&&(r=T(l.spacingBox),e.options.layout==="vertical"?r.y=l.plotTop:r.y+=i.getHeight(),e.group.placed=!1,e.align(r)))};i&&(E(p,function(a){return a[0]===l})||p.push([l,[$(l.xAxis[0],"afterSetExtremes",function(a){i&&i.render(a.min,a.max)}),$(l,"redraw",c)]]),c())}function L(){for(var l=0,h=p.length;l<h;++l){var e=p[l];if(e[0]===this)return e[1].forEach(function(r){return r()}),void p.splice(l,1)}}function M(){var l=this.rangeSelector;if(l){var h=l.getHeight();this.extraTopMargin&&(this.plotTop+=h),this.extraBottomMargin&&(this.marginBottom+=h)}}function f(){var l=this.rangeSelector;if(l&&!l.options.floating){l.render();var h=l.options.verticalAlign;h==="bottom"?this.extraBottomMargin=!0:h!=="middle"&&(this.extraTopMargin=!0)}}function b(l){var h=l.options.rangeSelector,e=this.extraBottomMargin,r=this.extraTopMargin,o=this.rangeSelector;if(h&&h.enabled&&!G(o)&&this.options.rangeSelector&&(this.options.rangeSelector.enabled=!0,this.rangeSelector=o=new Y(this)),this.extraBottomMargin=!1,this.extraTopMargin=!1,o){P(this);var i=h&&h.verticalAlign||o.options&&o.options.verticalAlign;o.options.floating||(i==="bottom"?this.extraBottomMargin=!0:i!=="middle"&&(this.extraTopMargin=!0)),this.extraBottomMargin===e&&this.extraTopMargin===r||(this.isDirtyBox=!0)}}return{compose:function(l,h,e){Y=e,g.indexOf(l)===-1&&(g.push(l),l.prototype.minFromRange=v),g.indexOf(h)===-1&&(g.push(h),$(h,"afterGetContainer",y),$(h,"beforeRender",C),$(h,"destroy",L),$(h,"getMargins",M),$(h,"render",f),$(h,"update",b),h.prototype.callbacks.push(P)),g.indexOf(q)===-1&&(D(Z,{rangeSelector:R.rangeSelector}),D(Z.lang,R.lang))}}}),rt(N,"Stock/RangeSelector/RangeSelector.js",[N["Core/Axis/Axis.js"],N["Core/Defaults.js"],N["Core/Globals.js"],N["Stock/RangeSelector/RangeSelectorComposition.js"],N["Core/Renderer/SVG/SVGElement.js"],N["Core/Utilities.js"]],function(W,R,U,Y,Z,q){var $=R.defaultOptions,G=q.addEvent,D=q.createElement,E=q.css,x=q.defined,T=q.destroyObjectProperties,u=q.discardElement,p=q.extend,g=q.fireEvent,v=q.isNumber,y=q.merge,C=q.objectEach,P=q.pad,L=q.pick,M=q.pInt,f=q.splat,b=function(){function l(h){this.buttons=void 0,this.buttonOptions=l.prototype.defaultButtons,this.initialButtonGroupWidth=0,this.options=void 0,this.chart=h,this.init(h)}return l.compose=function(h,e){Y.compose(h,e,l)},l.prototype.clickButton=function(h,e){var r,o,i,c,a,s,m,A=this,O=A.chart,d=A.buttonOptions[h],w=O.xAxis[0],k=O.scroller&&O.scroller.getUnionExtremes()||w||{},z=d.type,F=d.dataGrouping,j=k.dataMin,I=k.dataMax,_=w&&Math.round(Math.min(w.max,L(I,w.max))),V=d._range,X=!0;if(j!==null&&I!==null){if(O.fixedRange=V,A.setSelected(h),F&&(this.forcedDataGrouping=!0,W.prototype.setDataGrouping.call(w||{chart:this.chart},F,!1),this.frozenStates=d.preserveDataGrouping),z==="month"||z==="year")w?(s={range:d,max:_,chart:O,dataMin:j,dataMax:I},r=w.minFromRange.call(s),v(s.newMax)&&(_=s.newMax),X=!1):V=d;else if(V)r=Math.max(_-V,j),_=Math.min(r+V,I),X=!1;else if(z==="ytd"){if(!w)return void(A.deferredYTDClick=h);I!==void 0&&j!==void 0||(j=Number.MAX_VALUE,I=Number.MIN_VALUE,O.series.forEach(function(H){var Q=H.xData;Q&&(j=Math.min(Q[0],j),I=Math.max(Q[Q.length-1],I))}),e=!1),r=i=(m=A.getYTDExtremes(I,j,O.time.useUTC)).min,_=m.max}else z==="all"&&w&&(O.navigator&&O.navigator.baseSeries[0]&&(O.navigator.baseSeries[0].xAxis.options.range=void 0),r=j,_=I);X&&d._offsetMin&&x(r)&&(r+=d._offsetMin),d._offsetMax&&x(_)&&(_+=d._offsetMax),this.dropdown&&(this.dropdown.selectedIndex=h+1),w?w.setExtremes(r,_,L(e,!0),void 0,{trigger:"rangeSelectorButton",rangeSelectorButton:d}):(o=f(O.options.xAxis)[0],a=o.range,o.range=V,c=o.min,o.min=i,G(O,"load",function(){o.range=a,o.min=c})),g(this,"afterBtnClick")}},l.prototype.setSelected=function(h){this.selected=this.options.selected=h},l.prototype.init=function(h){var e=this,r=h.options.rangeSelector,o=r.buttons||e.defaultButtons.slice(),i=r.selected,c=function(){var a=e.minInput,s=e.maxInput;a&&a.blur&&g(a,"blur"),s&&s.blur&&g(s,"blur")};e.chart=h,e.options=r,e.buttons=[],e.buttonOptions=o,this.eventsToUnbind=[],this.eventsToUnbind.push(G(h.container,"mousedown",c)),this.eventsToUnbind.push(G(h,"resize",c)),o.forEach(e.computeButtonRange),i!==void 0&&o[i]&&this.clickButton(i,!1),this.eventsToUnbind.push(G(h,"load",function(){h.xAxis&&h.xAxis[0]&&G(h.xAxis[0],"setExtremes",function(a){this.max-this.min!==h.fixedRange&&a.trigger!=="rangeSelectorButton"&&a.trigger!=="updatedData"&&e.forcedDataGrouping&&!e.frozenStates&&this.setDataGrouping(!1,!1)})}))},l.prototype.updateButtonStates=function(){var h=this,e=this.chart,r=this.dropdown,o=e.xAxis[0],i=Math.round(o.max-o.min),c=!o.hasVisibleSeries,a=864e5,s=e.scroller&&e.scroller.getUnionExtremes()||o,m=s.dataMin,A=s.dataMax,O=h.getYTDExtremes(A,m,e.time.useUTC),d=O.min,w=O.max,k=h.selected,z=h.options.allButtonsEnabled,F=h.buttons,j=v(k);h.buttonOptions.forEach(function(I,_){var V=I._range,X=I.type,H=I.count||1,Q=F[_],et=I._offsetMax-I._offsetMin,tt=_===k,st=V>A-m,ct=V<o.minRange,gt=0,mt=!1,bt=!1,yt=V===i;(X==="month"||X==="year")&&i+36e5>={month:28,year:365}[X]*a*H-et&&i-36e5<={month:31,year:366}[X]*a*H+et?yt=!0:X==="ytd"?(yt=w-d+et===i,mt=!tt):X==="all"&&(yt=o.max-o.min>=A-m,bt=!tt&&j&&yt);var dt=!z&&(st||ct||bt||c),ot=tt&&yt||yt&&!j&&!mt||tt&&h.frozenStates;dt?gt=3:ot&&(j=!0,gt=2),Q.state!==gt&&(Q.setState(gt),r&&(r.options[_+1].disabled=dt,gt===2&&(r.selectedIndex=_+1)),gt===0&&k===_&&h.setSelected())})},l.prototype.computeButtonRange=function(h){var e=h.type,r=h.count||1,o={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5};o[e]?h._range=o[e]*r:e!=="month"&&e!=="year"||(h._range=24*{month:30,year:365}[e]*36e5*r),h._offsetMin=L(h.offsetMin,0),h._offsetMax=L(h.offsetMax,0),h._range+=h._offsetMax-h._offsetMin},l.prototype.getInputValue=function(h){var e=h==="min"?this.minInput:this.maxInput,r=this.chart.options.rangeSelector,o=this.chart.time;return e?(e.type==="text"&&r.inputDateParser||this.defaultInputDateParser)(e.value,o.useUTC,o):0},l.prototype.setInputValue=function(h,e){var r=this.options,o=this.chart.time,i=h==="min"?this.minInput:this.maxInput,c=h==="min"?this.minDateBox:this.maxDateBox;if(i){var a=i.getAttribute("data-hc-time"),s=x(a)?Number(a):void 0;if(x(e)){var m=s;x(m)&&i.setAttribute("data-hc-time-previous",m),i.setAttribute("data-hc-time",e),s=e}i.value=o.dateFormat(this.inputTypeFormats[i.type]||r.inputEditDateFormat,s),c&&c.attr({text:o.dateFormat(r.inputDateFormat,s)})}},l.prototype.setInputExtremes=function(h,e,r){var o=h==="min"?this.minInput:this.maxInput;if(o){var i=this.inputTypeFormats[o.type],c=this.chart.time;if(i){var a=c.dateFormat(i,e);o.min!==a&&(o.min=a);var s=c.dateFormat(i,r);o.max!==s&&(o.max=s)}}},l.prototype.showInput=function(h){var e=h==="min"?this.minDateBox:this.maxDateBox,r=h==="min"?this.minInput:this.maxInput;if(r&&e&&this.inputGroup){var o=r.type==="text",i=this.inputGroup,c=i.translateX,a=i.translateY,s=this.options.inputBoxWidth;E(r,{width:o?e.width+(s?-2:20)+"px":"auto",height:o?e.height-2+"px":"auto",border:"2px solid silver"}),E(r,o&&s?{left:c+e.x+"px",top:a+"px"}:{left:Math.min(Math.round(e.x+c-(r.offsetWidth-e.width)/2),this.chart.chartWidth-r.offsetWidth)+"px",top:a-(r.offsetHeight-e.height)/2+"px"})}},l.prototype.hideInput=function(h){var e=h==="min"?this.minInput:this.maxInput;e&&E(e,{top:"-9999em",border:0,width:"1px",height:"1px"})},l.prototype.defaultInputDateParser=function(h,e,r){var o,i=h.split("/").join("-").split(" ").join("T");if(i.indexOf("T")===-1&&(i+="T00:00"),e)i+="Z";else if(U.isSafari&&(!((o=i).length>6)||o.lastIndexOf("-")!==o.length-6&&o.lastIndexOf("+")!==o.length-6)){var c=new Date(i).getTimezoneOffset()/60;i+=c<=0?"+".concat(P(-c),":00"):"-".concat(P(c),":00")}var a=Date.parse(i);if(!v(a)){var s=h.split("-");a=Date.UTC(M(s[0]),M(s[1])-1,M(s[2]))}return r&&e&&v(a)&&(a+=r.getTimezoneOffset(a)),a},l.prototype.drawInput=function(h){var e=this,r=e.chart,o=e.div,i=e.inputGroup,c=this,a=r.renderer.style||{},s=r.renderer,m=r.options.rangeSelector,A=$.lang,O=h==="min";function d(){var I=c.maxInput,_=c.minInput,V=r.xAxis[0],X=r.scroller&&r.scroller.xAxis?r.scroller.xAxis:V,H=X.dataMin,Q=X.dataMax,et=c.getInputValue(h);et!==Number(F.getAttribute("data-hc-time-previous"))&&v(et)&&(F.setAttribute("data-hc-time-previous",et),O&&I&&v(H)?et>Number(I.getAttribute("data-hc-time"))?et=void 0:et<H&&(et=H):_&&v(Q)&&(et<Number(_.getAttribute("data-hc-time"))?et=void 0:et>Q&&(et=Q)),et!==void 0&&V.setExtremes(O?et:V.min,O?V.max:et,void 0,void 0,{trigger:"rangeSelectorInput"}))}var w=A[O?"rangeSelectorFrom":"rangeSelectorTo"]||"",k=s.label(w,0).addClass("highcharts-range-label").attr({padding:w?2:0,height:w?m.inputBoxHeight:0}).add(i),z=s.label("",0).addClass("highcharts-range-input").attr({padding:2,width:m.inputBoxWidth,height:m.inputBoxHeight,"text-align":"center"}).on("click",function(){c.showInput(h),c[h+"Input"].focus()});r.styledMode||z.attr({stroke:m.inputBoxBorderColor,"stroke-width":1}),z.add(i);var F=D("input",{name:h,className:"highcharts-range-selector"},void 0,o);F.setAttribute("type",function(I){if(I.indexOf("%L")!==-1)return"text";var _=["a","A","d","e","w","b","B","m","o","y","Y"].some(function(X){return I.indexOf("%"+X)!==-1}),V=["H","k","I","l","M","S"].some(function(X){return I.indexOf("%"+X)!==-1});return _&&V?"datetime-local":_?"date":V?"time":"text"}(m.inputDateFormat||"%b %e, %Y")),r.styledMode||(k.css(y(a,m.labelStyle)),z.css(y({color:"#333333"},a,m.inputStyle)),E(F,p({position:"absolute",border:0,boxShadow:"0 0 15px rgba(0,0,0,0.3)",width:"1px",height:"1px",padding:0,textAlign:"center",fontSize:a.fontSize,fontFamily:a.fontFamily,top:"-9999em"},m.inputStyle))),F.onfocus=function(){c.showInput(h)},F.onblur=function(){F===U.doc.activeElement&&d(),c.hideInput(h),c.setInputValue(h),F.blur()};var j=!1;return F.onchange=function(){j||(d(),c.hideInput(h),F.blur())},F.onkeypress=function(I){I.keyCode===13&&d()},F.onkeydown=function(I){j=!0,I.keyCode!==38&&I.keyCode!==40||d()},F.onkeyup=function(){j=!1},{dateBox:z,input:F,label:k}},l.prototype.getPosition=function(){var h=this.chart,e=h.options.rangeSelector,r=e.verticalAlign==="top"?h.plotTop-h.axisOffset[0]:0;return{buttonTop:r+e.buttonPosition.y,inputTop:r+e.inputPosition.y-10}},l.prototype.getYTDExtremes=function(h,e,r){var o=this.chart.time,i=new o.Date(h),c=o.get("FullYear",i),a=r?o.Date.UTC(c,0,1):+new o.Date(c,0,1),s=Math.max(e,a),m=i.getTime();return{max:Math.min(h||m,m),min:s}},l.prototype.render=function(h,e){var r=this.chart,o=r.renderer,i=r.container,c=r.options,a=c.rangeSelector,s=L(c.chart.style&&c.chart.style.zIndex,0)+1,m=a.inputEnabled,A=this.rendered;if(a.enabled!==!1){if(!A&&(this.group=o.g("range-selector-group").attr({zIndex:7}).add(),this.div=D("div",void 0,{position:"relative",height:0,zIndex:s}),this.buttonOptions.length&&this.renderButtons(),i.parentNode&&i.parentNode.insertBefore(this.div,i),m)){this.inputGroup=o.g("input-group").add(this.group);var O=this.drawInput("min");this.minDateBox=O.dateBox,this.minLabel=O.label,this.minInput=O.input;var d=this.drawInput("max");this.maxDateBox=d.dateBox,this.maxLabel=d.label,this.maxInput=d.input}if(m){this.setInputValue("min",h),this.setInputValue("max",e);var w=r.scroller&&r.scroller.getUnionExtremes()||r.xAxis[0]||{};if(x(w.dataMin)&&x(w.dataMax)){var k=r.xAxis[0].minRange||0;this.setInputExtremes("min",w.dataMin,Math.min(w.dataMax,this.getInputValue("max"))-k),this.setInputExtremes("max",Math.max(w.dataMin,this.getInputValue("min"))+k,w.dataMax)}if(this.inputGroup){var z=0;[this.minLabel,this.minDateBox,this.maxLabel,this.maxDateBox].forEach(function(F){if(F){var j=F.getBBox().width;j&&(F.attr({x:z}),z+=j+a.inputSpacing)}})}}this.alignElements(),this.rendered=!0}},l.prototype.renderButtons=function(){var h=this,e=this,r=e.buttons,o=e.chart,i=e.options,c=$.lang,a=o.renderer,s=y(i.buttonTheme),m=s&&s.states,A=s.width||28;delete s.width,delete s.states,this.buttonGroup=a.g("range-selector-buttons").add(this.group);var O=this.dropdown=D("select",void 0,{position:"absolute",width:"1px",height:"1px",padding:0,border:0,top:"-9999em",cursor:"pointer",opacity:1e-4},this.div);G(O,"touchstart",function(){O.style.fontSize="16px"}),[[U.isMS?"mouseover":"mouseenter"],[U.isMS?"mouseout":"mouseleave"],["change","click"]].forEach(function(d){var w=d[0],k=d[1];G(O,w,function(){var z=r[h.currentButtonIndex()];z&&g(z.element,k||w)})}),this.zoomText=a.label(c&&c.rangeSelectorZoom||"",0).attr({padding:i.buttonTheme.padding,height:i.buttonTheme.height,paddingLeft:0,paddingRight:0}).add(this.buttonGroup),this.chart.styledMode||(this.zoomText.css(i.labelStyle),s["stroke-width"]=L(s["stroke-width"],0)),D("option",{textContent:this.zoomText.textStr,disabled:!0},void 0,O),this.buttonOptions.forEach(function(d,w){D("option",{textContent:d.title||d.text},void 0,O),r[w]=a.button(d.text,0,0,function(k){var z,F=d.events&&d.events.click;F&&(z=F.call(d,k)),z!==!1&&h.clickButton(w),h.isActive=!0},s,m&&m.hover,m&&m.select,m&&m.disabled).attr({"text-align":"center",width:A}).add(h.buttonGroup),d.title&&r[w].attr("title",d.title)})},l.prototype.alignElements=function(){var h=this,e=this,r=e.buttonGroup,o=e.buttons,i=e.chart,c=e.group,a=e.inputGroup,s=e.options,m=e.zoomText,A=i.options,O=A.exporting&&A.exporting.enabled!==!1&&A.navigation&&A.navigation.buttonOptions,d=s.buttonPosition,w=s.inputPosition,k=s.verticalAlign,z=function(mt,bt){return O&&h.titleCollision(i)&&k==="top"&&bt.align==="right"&&bt.y-mt.getBBox().height-12<(O.y||0)+(O.height||0)+i.spacing[0]?-40:0},F=i.plotLeft;if(c&&d&&w){var j=d.x-i.spacing[3];if(r){if(this.positionButtons(),!this.initialButtonGroupWidth){var I=0;m&&(I+=m.getBBox().width+5),o.forEach(function(mt,bt){I+=mt.width,bt!==o.length-1&&(I+=s.buttonSpacing)}),this.initialButtonGroupWidth=I}F-=i.spacing[3],this.updateButtonStates();var _=z(r,d);this.alignButtonGroup(_),c.placed=r.placed=i.hasLoaded}var V=0;a&&(V=z(a,w),w.align==="left"?j=F:w.align==="right"&&(j=-Math.max(i.axisOffset[1],-V)),a.align({y:w.y,width:a.getBBox().width,align:w.align,x:w.x+j-2},!0,i.spacingBox),a.placed=i.hasLoaded),this.handleCollision(V),c.align({verticalAlign:k},!0,i.spacingBox);var X=c.alignAttr.translateY,H=c.getBBox().height+20,Q=0;if(k==="bottom"){var et=i.legend&&i.legend.options;Q=X-(H=H+(et&&et.verticalAlign==="bottom"&&et.enabled&&!et.floating?i.legend.legendHeight+L(et.margin,10):0)-20)-(s.floating?0:s.y)-(i.titleOffset?i.titleOffset[2]:0)-10}k==="top"?(s.floating&&(Q=0),i.titleOffset&&i.titleOffset[0]&&(Q=i.titleOffset[0]),Q+=i.margin[0]-i.spacing[0]||0):k==="middle"&&(w.y===d.y?Q=X:(w.y||d.y)&&(w.y<0||d.y<0?Q-=Math.min(w.y,d.y):Q=X-H)),c.translate(s.x,s.y+Math.floor(Q));var tt=this,st=tt.minInput,ct=tt.maxInput,gt=tt.dropdown;s.inputEnabled&&st&&ct&&(st.style.marginTop=c.translateY+"px",ct.style.marginTop=c.translateY+"px"),gt&&(gt.style.marginTop=c.translateY+"px")}},l.prototype.alignButtonGroup=function(h,e){var r=this,o=r.chart,i=r.options,c=r.buttonGroup,a=i.buttonPosition,s=o.plotLeft-o.spacing[3],m=a.x-o.spacing[3];a.align==="right"?m+=h-s:a.align==="center"&&(m-=s/2),c&&c.align({y:a.y,width:L(e,this.initialButtonGroupWidth),align:a.align,x:m},!0,o.spacingBox)},l.prototype.positionButtons=function(){var h=this,e=h.buttons,r=h.chart,o=h.options,i=h.zoomText,c=r.hasLoaded?"animate":"attr",a=o.buttonPosition,s=r.plotLeft,m=s;i&&i.visibility!=="hidden"&&(i[c]({x:L(s+a.x,s)}),m+=a.x+i.getBBox().width+5);for(var A=0,O=this.buttonOptions.length;A<O;++A)e[A].visibility!=="hidden"?(e[A][c]({x:m}),m+=e[A].width+o.buttonSpacing):e[A][c]({x:s})},l.prototype.handleCollision=function(h){var e=this,r=this,o=r.chart,i=r.buttonGroup,c=r.inputGroup,a=this.options,s=a.buttonPosition,m=a.dropdown,A=a.inputPosition,O=function(){var k=0;return e.buttons.forEach(function(z){var F=z.getBBox();F.width>k&&(k=F.width)}),k},d=function(k){if(c&&i){var z=c.alignAttr.translateX+c.alignOptions.x-h+c.getBBox().x+2,F=c.alignOptions.width,j=i.alignAttr.translateX+i.getBBox().x;return j+k>z&&z+F>j&&s.y<A.y+c.getBBox().height}return!1},w=function(){c&&i&&c.attr({translateX:c.alignAttr.translateX+(o.axisOffset[1]>=-h?0:-h),translateY:c.alignAttr.translateY+i.getBBox().height+10})};if(i){if(m==="always")return this.collapseButtons(h),void(d(O())&&w());m==="never"&&this.expandButtons()}c&&i?A.align===s.align||d(this.initialButtonGroupWidth+20)?m==="responsive"?(this.collapseButtons(h),d(O())&&w()):w():m==="responsive"&&this.expandButtons():i&&m==="responsive"&&(this.initialButtonGroupWidth>o.plotWidth?this.collapseButtons(h):this.expandButtons())},l.prototype.collapseButtons=function(h){var e=this,r=e.buttons,o=e.buttonOptions,i=e.chart,c=e.dropdown,a=e.options,s=e.zoomText,m=i.userOptions.rangeSelector&&i.userOptions.rangeSelector.buttonTheme||{},A=function(w){return{text:w?w+" ▾":"▾",width:"auto",paddingLeft:L(a.buttonTheme.paddingLeft,m.padding,8),paddingRight:L(a.buttonTheme.paddingRight,m.padding,8)}};s&&s.hide();var O=!1;o.forEach(function(w,k){var z=r[k];z.state!==2?z.hide():(z.show(),z.attr(A(w.text)),O=!0)}),O||(c&&(c.selectedIndex=0),r[0].show(),r[0].attr(A(this.zoomText&&this.zoomText.textStr)));var d=a.buttonPosition.align;this.positionButtons(),d!=="right"&&d!=="center"||this.alignButtonGroup(h,r[this.currentButtonIndex()].getBBox().width),this.showDropdown()},l.prototype.expandButtons=function(){var h=this,e=h.buttons,r=h.buttonOptions,o=h.options,i=h.zoomText;this.hideDropdown(),i&&i.show(),r.forEach(function(c,a){var s=e[a];s.show(),s.attr({text:c.text,width:o.buttonTheme.width||28,paddingLeft:L(o.buttonTheme.paddingLeft,"unset"),paddingRight:L(o.buttonTheme.paddingRight,"unset")}),s.state<2&&s.setState(0)}),this.positionButtons()},l.prototype.currentButtonIndex=function(){var h=this.dropdown;return h&&h.selectedIndex>0?h.selectedIndex-1:0},l.prototype.showDropdown=function(){var h=this,e=h.buttonGroup,r=h.buttons,o=h.chart,i=h.dropdown;if(e&&i){var c=e.translateX,a=e.translateY,s=r[this.currentButtonIndex()].getBBox();E(i,{left:o.plotLeft+c+"px",top:a+.5+"px",width:s.width+"px",height:s.height+"px"}),this.hasVisibleDropdown=!0}},l.prototype.hideDropdown=function(){var h=this.dropdown;h&&(E(h,{top:"-9999em",width:"1px",height:"1px"}),this.hasVisibleDropdown=!1)},l.prototype.getHeight=function(){var h=this.options,e=this.group,r=h.inputPosition,o=h.buttonPosition,i=h.y,c=o.y,a=r.y,s=0;if(h.height)return h.height;this.alignElements(),s=e?e.getBBox(!0).height+13+i:0;var m=Math.min(a,c);return(a<0&&c<0||a>0&&c>0)&&(s+=Math.abs(m)),s},l.prototype.titleCollision=function(h){return!(h.options.title.text||h.options.subtitle.text)},l.prototype.update=function(h){var e=this.chart;y(!0,e.options.rangeSelector,h),this.destroy(),this.init(e),this.render()},l.prototype.destroy=function(){var h=this,e=h.minInput,r=h.maxInput;h.eventsToUnbind&&(h.eventsToUnbind.forEach(function(o){return o()}),h.eventsToUnbind=void 0),T(h.buttons),e&&(e.onfocus=e.onblur=e.onchange=null),r&&(r.onfocus=r.onblur=r.onchange=null),C(h,function(o,i){o&&i!=="chart"&&(o instanceof Z?o.destroy():o instanceof window.HTMLElement&&u(o)),o!==l.prototype[i]&&(h[i]=null)},this)},l}();return p(b.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"}}),b}),rt(N,"Accessibility/Components/RangeSelectorComponent.js",[N["Stock/RangeSelector/RangeSelector.js"],N["Accessibility/AccessibilityComponent.js"],N["Accessibility/Utils/ChartUtilities.js"],N["Accessibility/Utils/Announcer.js"],N["Accessibility/KeyboardNavigationHandler.js"],N["Core/Utilities.js"]],function(W,R,U,Y,Z,q){var $,G=this&&this.__extends||($=function(p,g){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,y){v.__proto__=y}||function(v,y){for(var C in y)y.hasOwnProperty(C)&&(v[C]=y[C])},$(p,g)},function(p,g){function v(){this.constructor=p}$(p,g),p.prototype=g===null?Object.create(g):(v.prototype=g.prototype,new v)}),D=U.unhideChartElementFromAT,E=U.getAxisRangeDescription,x=q.addEvent,T=q.attr,u=function(p){function g(){var v=p!==null&&p.apply(this,arguments)||this;return v.announcer=void 0,v}return G(g,p),g.prototype.init=function(){var v=this.chart;this.announcer=new Y(v,"polite")},g.prototype.onChartUpdate=function(){var v=this.chart,y=this,C=v.rangeSelector;C&&(this.updateSelectorVisibility(),this.setDropdownAttrs(),C.buttons&&C.buttons.length&&C.buttons.forEach(function(P){y.setRangeButtonAttrs(P)}),C.maxInput&&C.minInput&&["minInput","maxInput"].forEach(function(P,L){var M=C[P];M&&(D(v,M),y.setRangeInputAttrs(M,"accessibility.rangeSelector."+(L?"max":"min")+"InputLabel"))}))},g.prototype.updateSelectorVisibility=function(){var v=this.chart,y=v.rangeSelector,C=y&&y.dropdown,P=y&&y.buttons||[],L=function(M){return M.setAttribute("aria-hidden",!0)};y&&y.hasVisibleDropdown&&C?(D(v,C),P.forEach(function(M){return L(M.element)})):(C&&L(C),P.forEach(function(M){return D(v,M.element)}))},g.prototype.setDropdownAttrs=function(){var v=this.chart,y=v.rangeSelector&&v.rangeSelector.dropdown;if(y){var C=v.langFormat("accessibility.rangeSelector.dropdownLabel",{rangeTitle:v.options.lang.rangeSelectorZoom});y.setAttribute("aria-label",C),y.setAttribute("tabindex",-1)}},g.prototype.setRangeButtonAttrs=function(v){T(v.element,{tabindex:-1,role:"button"})},g.prototype.setRangeInputAttrs=function(v,y){var C=this.chart;T(v,{tabindex:-1,"aria-label":C.langFormat(y,{chart:C})})},g.prototype.onButtonNavKbdArrowKey=function(v,y){var C=v.response,P=this.keyCodes,L=this.chart,M=L.options.accessibility.keyboardNavigation.wrapAround,f=y===P.left||y===P.up?-1:1;return L.highlightRangeSelectorButton(L.highlightedRangeSelectorItemIx+f)?C.success:M?(v.init(f),C.success):C[f>0?"next":"prev"]},g.prototype.onButtonNavKbdClick=function(v){var y=v.response,C=this.chart;return C.oldRangeSelectorItemState===3||this.fakeClickEvent(C.rangeSelector.buttons[C.highlightedRangeSelectorItemIx].element),y.success},g.prototype.onAfterBtnClick=function(){var v=this.chart,y=E(v.xAxis[0]),C=v.langFormat("accessibility.rangeSelector.clickButtonAnnouncement",{chart:v,axisRangeDescription:y});C&&this.announcer.announce(C)},g.prototype.onInputKbdMove=function(v){var y=this.chart,C=y.rangeSelector,P=y.highlightedInputRangeIx=(y.highlightedInputRangeIx||0)+v;if(P>1||P<0)y.accessibility&&(y.accessibility.keyboardNavigation.tabindexContainer.focus(),y.accessibility.keyboardNavigation.move(v));else if(C){var L=C[P?"maxDateBox":"minDateBox"],M=C[P?"maxInput":"minInput"];L&&M&&y.setFocusToElement(L,M)}},g.prototype.onInputNavInit=function(v){var y=this,C=this,P=this.chart,L=v>0?0:1,M=P.rangeSelector,f=M&&M[L?"maxDateBox":"minDateBox"],b=M&&M.minInput,l=M&&M.maxInput,h=L?l:b;if(P.highlightedInputRangeIx=L,f&&b&&l){P.setFocusToElement(f,h),this.removeInputKeydownHandler&&this.removeInputKeydownHandler();var e=function(i){(i.which||i.keyCode)===y.keyCodes.tab&&(i.preventDefault(),i.stopPropagation(),C.onInputKbdMove(i.shiftKey?-1:1))},r=x(b,"keydown",e),o=x(l,"keydown",e);this.removeInputKeydownHandler=function(){r(),o()}}},g.prototype.onInputNavTerminate=function(){var v=this.chart.rangeSelector||{};v.maxInput&&v.hideInput("max"),v.minInput&&v.hideInput("min"),this.removeInputKeydownHandler&&(this.removeInputKeydownHandler(),delete this.removeInputKeydownHandler)},g.prototype.initDropdownNav=function(){var v=this,y=this.chart,C=y.rangeSelector,P=C&&C.dropdown;C&&P&&(y.setFocusToElement(C.buttonGroup,P),this.removeDropdownKeydownHandler&&this.removeDropdownKeydownHandler(),this.removeDropdownKeydownHandler=x(P,"keydown",function(L){var M=(L.which||L.keyCode)===v.keyCodes.tab,f=y.accessibility;M&&(L.preventDefault(),L.stopPropagation(),f&&(f.keyboardNavigation.tabindexContainer.focus(),f.keyboardNavigation.move(L.shiftKey?-1:1)))}))},g.prototype.getRangeSelectorButtonNavigation=function(){var v=this.chart,y=this.keyCodes,C=this;return new Z(v,{keyCodeMap:[[[y.left,y.right,y.up,y.down],function(P){return C.onButtonNavKbdArrowKey(this,P)}],[[y.enter,y.space],function(){return C.onButtonNavKbdClick(this)}]],validate:function(){return!!(v.rangeSelector&&v.rangeSelector.buttons&&v.rangeSelector.buttons.length)},init:function(P){var L=v.rangeSelector;if(L&&L.hasVisibleDropdown)C.initDropdownNav();else if(L){var M=L.buttons.length-1;v.highlightRangeSelectorButton(P>0?0:M)}},terminate:function(){C.removeDropdownKeydownHandler&&(C.removeDropdownKeydownHandler(),delete C.removeDropdownKeydownHandler)}})},g.prototype.getRangeSelectorInputNavigation=function(){var v=this.chart,y=this;return new Z(v,{keyCodeMap:[],validate:function(){return function(C){return!!(C.rangeSelector&&C.rangeSelector.inputGroup&&C.rangeSelector.inputGroup.element.style.visibility!=="hidden"&&C.options.rangeSelector.inputEnabled!==!1&&C.rangeSelector.minInput&&C.rangeSelector.maxInput)}(v)},init:function(C){y.onInputNavInit(C)},terminate:function(){y.onInputNavTerminate()}})},g.prototype.getKeyboardNavigation=function(){return[this.getRangeSelectorButtonNavigation(),this.getRangeSelectorInputNavigation()]},g.prototype.destroy=function(){this.removeDropdownKeydownHandler&&this.removeDropdownKeydownHandler(),this.removeInputKeydownHandler&&this.removeInputKeydownHandler(),this.announcer&&this.announcer.destroy()},g}(R);return function(p){var g=[];function v(C){var P=this.rangeSelector&&this.rangeSelector.buttons||[],L=this.highlightedRangeSelectorItemIx,M=this.rangeSelector&&this.rangeSelector.selected;return L!==void 0&&P[L]&&L!==M&&P[L].setState(this.oldRangeSelectorItemState||0),this.highlightedRangeSelectorItemIx=C,!!P[C]&&(this.setFocusToElement(P[C].box,P[C].element),C!==M&&(this.oldRangeSelectorItemState=P[C].state,P[C].setState(1)),!0)}function y(){var C=this.chart.accessibility;if(C&&C.components.rangeSelector)return C.components.rangeSelector.onAfterBtnClick()}p.compose=function(C,P){g.indexOf(C)===-1&&(g.push(C),C.prototype.highlightRangeSelectorButton=v),g.indexOf(P)===-1&&(g.push(P),x(W,"afterBtnClick",y))}}(u||(u={})),u}),rt(N,"Accessibility/Components/SeriesComponent/ForcedMarkers.js",[N["Core/Utilities.js"]],function(W){var R,U=W.addEvent,Y=W.merge;return function(Z){var q=[];function $(p){Y(!0,p,{marker:{enabled:!0,states:{normal:{opacity:0}}}})}function G(p){return p.marker.states&&p.marker.states.normal&&p.marker.states.normal.opacity}function D(p){return!!(p._hasPointMarkers&&p.points&&p.points.length)}function E(){var p=this;p.chart.styledMode&&(p.markerGroup&&p.markerGroup[p.a11yMarkersForced?"addClass":"removeClass"]("highcharts-a11y-markers-hidden"),D(p)&&p.points.forEach(function(g){g.graphic&&(g.graphic[g.hasForcedA11yMarker?"addClass":"removeClass"]("highcharts-a11y-marker-hidden"),g.graphic[g.hasForcedA11yMarker===!1?"addClass":"removeClass"]("highcharts-a11y-marker-visible"))}))}function x(p){this.resetA11yMarkerOptions=Y(p.options.marker||{},this.userOptions.marker||{})}function T(){var p=this,g=p.options;(function(v){var y=v.chart.options.accessibility.enabled,C=(v.options.accessibility&&v.options.accessibility.enabled)!==!1;return y&&C&&function(P){var L=P.chart.options.accessibility;return P.points.length<L.series.pointDescriptionEnabledThreshold||L.series.pointDescriptionEnabledThreshold===!1}(v)})(p)?(g.marker&&g.marker.enabled===!1&&(p.a11yMarkersForced=!0,$(p.options)),D(p)&&function(v){for(var y=v.points.length;y--;){var C=v.points[y],P=C.options,L=C.hasForcedA11yMarker;if(delete C.hasForcedA11yMarker,P.marker){var M=L&&G(P)===0;P.marker.enabled&&!M?(u(P),C.hasForcedA11yMarker=!1):P.marker.enabled===!1&&($(P),C.hasForcedA11yMarker=!0)}}}(p)):p.a11yMarkersForced&&(delete p.a11yMarkersForced,function(v){var y=v.resetA11yMarkerOptions;if(y){var C=y.states&&y.states.normal&&y.states.normal.opacity;v.update({marker:{enabled:y.enabled,states:{normal:{opacity:C}}}})}}(p),delete p.resetA11yMarkerOptions)}function u(p){Y(!0,p.marker,{states:{normal:{opacity:G(p)||1}}})}Z.compose=function(p){q.indexOf(p)===-1&&(q.push(p),U(p,"afterSetOptions",x),U(p,"render",T),U(p,"afterRender",E))}}(R||(R={})),R}),rt(N,"Accessibility/Components/SeriesComponent/SeriesKeyboardNavigation.js",[N["Core/Series/Point.js"],N["Core/Series/Series.js"],N["Core/Series/SeriesRegistry.js"],N["Core/Globals.js"],N["Core/Utilities.js"],N["Accessibility/KeyboardNavigationHandler.js"],N["Accessibility/Utils/EventProvider.js"],N["Accessibility/Utils/ChartUtilities.js"]],function(W,R,U,Y,Z,q,$,G){var D=U.seriesTypes,E=Y.doc,x=Z.defined,T=Z.fireEvent,u=G.getPointFromXY,p=G.getSeriesFromName,g=G.scrollToPoint;function v(l){var h=l.index,e=l.series.points,r=e.length;if(e[h]===l)return h;for(;r--;)if(e[r]===l)return r}function y(l){var h=l.chart.options.accessibility.keyboardNavigation.seriesNavigation,e=l.options.accessibility||{},r=e.keyboardNavigation;return r&&r.enabled===!1||e.enabled===!1||l.options.enableMouseTracking===!1||!l.visible||h.pointNavigationEnabledThreshold&&h.pointNavigationEnabledThreshold<=l.points.length}function C(l){var h=l.series.chart.options.accessibility,e=l.options.accessibility&&l.options.accessibility.enabled===!1;return l.isNull&&h.keyboardNavigation.seriesNavigation.skipNullPoints||l.visible===!1||l.isInside===!1||e||y(l.series)}function P(l){for(var h=l.points||[],e=h.length,r=0;r<e;++r)if(!C(h[r]))return h[r];return null}function L(l){for(var h=l.series||[],e=h.length,r=0;r<e;++r)if(!y(h[r])){var o=P(h[r]);if(o)return o}return null}function M(l){for(var h=l.series.length,e=!1;h--&&(l.highlightedPoint=l.series[h].points[l.series[h].points.length-1],!(e=l.series[h].highlightNextValidPoint())););return e}function f(l){delete l.highlightedPoint;var h=L(l);return!!h&&h.highlight()}var b=function(){function l(h,e){this.keyCodes=e,this.chart=h}return l.prototype.init=function(){var h=this,e=this.chart,r=this.eventProvider=new $;r.addEvent(R,"destroy",function(){return h.onSeriesDestroy(this)}),r.addEvent(e,"afterApplyDrilldown",function(){(function(o){var i=L(o);i&&i.highlight(!1)})(this)}),r.addEvent(e,"drilldown",function(o){var i=o.point,c=i.series;h.lastDrilledDownPoint={x:i.x,y:i.y,seriesName:c?c.name:""}}),r.addEvent(e,"drillupall",function(){setTimeout(function(){h.onDrillupAll()},10)}),r.addEvent(W,"afterSetState",function(){var o=this,i=o.graphic&&o.graphic.element,c=E.activeElement,a=c&&c.getAttribute("class"),s=a&&a.indexOf("highcharts-a11y-proxy-button")>-1;e.highlightedPoint===o&&c!==i&&!s&&i&&i.focus&&i.focus()})},l.prototype.onDrillupAll=function(){var h,e=this.lastDrilledDownPoint,r=this.chart,o=e&&p(r,e.seriesName);e&&o&&x(e.x)&&x(e.y)&&(h=u(o,e.x,e.y)),h=h||L(r),r.container&&r.container.focus(),h&&h.highlight&&h.highlight(!1)},l.prototype.getKeyboardNavigationHandler=function(){var h=this,e=this.keyCodes,r=this.chart,o=r.inverted;return new q(r,{keyCodeMap:[[o?[e.up,e.down]:[e.left,e.right],function(i){return h.onKbdSideways(this,i)}],[o?[e.left,e.right]:[e.up,e.down],function(i){return h.onKbdVertical(this,i)}],[[e.enter,e.space],function(i,c){var a=r.highlightedPoint;return a&&(c.point=a,T(a.series,"click",c),a.firePointEvent("click")),this.response.success}],[[e.home],function(){return f(r),this.response.success}],[[e.end],function(){return M(r),this.response.success}],[[e.pageDown,e.pageUp],function(i){return r.highlightAdjacentSeries(i===e.pageDown),this.response.success}]],init:function(){return h.onHandlerInit(this)},validate:function(){return!!L(r)},terminate:function(){return h.onHandlerTerminate()}})},l.prototype.onKbdSideways=function(h,e){var r=this.keyCodes,o=e===r.right||e===r.down;return this.attemptHighlightAdjacentPoint(h,o)},l.prototype.onHandlerInit=function(h){var e=this.chart;return e.options.accessibility.keyboardNavigation.seriesNavigation.rememberPointFocus&&e.highlightedPoint?e.highlightedPoint.highlight():f(e),h.response.success},l.prototype.onKbdVertical=function(h,e){var r=this.chart,o=this.keyCodes,i=e===o.down||e===o.right,c=r.options.accessibility.keyboardNavigation.seriesNavigation;return c.mode&&c.mode==="serialize"?this.attemptHighlightAdjacentPoint(h,i):(r[r.highlightedPoint&&r.highlightedPoint.series.keyboardMoveVertical?"highlightAdjacentPointVertical":"highlightAdjacentSeries"](i),h.response.success)},l.prototype.onHandlerTerminate=function(){var h=this.chart,e=h.options.accessibility.keyboardNavigation;h.tooltip&&h.tooltip.hide(0);var r=h.highlightedPoint&&h.highlightedPoint.series;r&&r.onMouseOut&&r.onMouseOut(),h.highlightedPoint&&h.highlightedPoint.onMouseOut&&h.highlightedPoint.onMouseOut(),e.seriesNavigation.rememberPointFocus||delete h.highlightedPoint},l.prototype.attemptHighlightAdjacentPoint=function(h,e){var r=this.chart,o=r.options.accessibility.keyboardNavigation.wrapAround;return r.highlightAdjacentPoint(e)||o&&(e?f(r):M(r))?h.response.success:h.response[e?"next":"prev"]},l.prototype.onSeriesDestroy=function(h){var e=this.chart;e.highlightedPoint&&e.highlightedPoint.series===h&&(delete e.highlightedPoint,e.focusElement&&e.focusElement.removeFocusBorder())},l.prototype.destroy=function(){this.eventProvider.removeAddedEvents()},l}();return function(l){var h=[];function e(a){var s,m,A=this,O=A.series,d=A.highlightedPoint,w=d&&v(d)||0,k=d&&d.series.points||[],z=A.series&&A.series[A.series.length-1],F=z&&z.points&&z.points[z.points.length-1];if(!O[0]||!O[0].points)return!1;if(d){if(s=O[d.series.index+(a?1:-1)],!(m=k[w+(a?1:-1)])&&s&&(m=s.points[a?0:s.points.length-1]),!m)return!1}else m=a?O[0].points[0]:F;return C(m)?(y(s=m.series)?A.highlightedPoint=a?s.points[s.points.length-1]:s.points[0]:A.highlightedPoint=m,A.highlightAdjacentPoint(a)):m.highlight()}function r(a){var s,m=this.highlightedPoint,A=1/0;return!(!x(m.plotX)||!x(m.plotY))&&(this.series.forEach(function(O){y(O)||O.points.forEach(function(d){if(x(d.plotY)&&x(d.plotX)&&d!==m){var w=d.plotY-m.plotY,k=Math.abs(d.plotX-m.plotX),z=Math.abs(w)*Math.abs(w)+k*k*4;O.yAxis&&O.yAxis.reversed&&(w*=-1),w<=0&&a||w>=0&&!a||z<5||C(d)||z<A&&(A=z,s=d)}})}),!!s&&s.highlight())}function o(a){var s,m,A=this,O=A.highlightedPoint,d=A.series&&A.series[A.series.length-1],w=d&&d.points&&d.points[d.points.length-1];return A.highlightedPoint?!!(s=A.series[O.series.index+(a?-1:1)])&&!!(m=function(k,z,F,j){var I,_,V,X=1/0,H=z.points.length,Q=function(et){return!(x(et.plotX)&&x(et.plotY))};if(!Q(k)){for(;H--;)Q(I=z.points[H])||(V=(k.plotX-I.plotX)*(k.plotX-I.plotX)*4+(k.plotY-I.plotY)*(k.plotY-I.plotY)*1)<X&&(X=V,_=H);return x(_)?z.points[_]:void 0}}(O,s))&&(y(s)?(m.highlight(),A.highlightAdjacentSeries(a)||(O.highlight(),!1)):(m.highlight(),m.series.highlightNextValidPoint())):(s=a?A.series&&A.series[0]:d,!!(m=a?s&&s.points&&s.points[0]:w)&&m.highlight())}function i(a){a===void 0&&(a=!0);var s=this.series.chart;return!this.isNull&&a?this.onMouseOver():s.tooltip&&s.tooltip.hide(0),g(this),this.graphic&&(s.setFocusToElement(this.graphic),!a&&s.focusElement&&s.focusElement.removeFocusBorder()),s.highlightedPoint=this,this}function c(){var a=this.chart.highlightedPoint,s=(a&&a.series)===this?v(a):0,m=this.points,A=m.length;if(m&&A){for(var O=s;O<A;++O)if(!C(m[O]))return m[O].highlight();for(var d=s;d>=0;--d)if(!C(m[d]))return m[d].highlight()}return!1}l.compose=function(a,s,m){if(h.indexOf(a)===-1){h.push(a);var A=a.prototype;A.highlightAdjacentPoint=e,A.highlightAdjacentPointVertical=r,A.highlightAdjacentSeries=o}if(h.indexOf(s)===-1&&(h.push(s),s.prototype.highlight=i),h.indexOf(m)===-1){h.push(m);var O=m.prototype;O.keyboardMoveVertical=!0,["column","gantt","pie"].forEach(function(d){D[d]&&(D[d].prototype.keyboardMoveVertical=!1)}),O.highlightNextValidPoint=c}}}(b||(b={})),b}),rt(N,"Accessibility/Components/SeriesComponent/SeriesComponent.js",[N["Accessibility/AccessibilityComponent.js"],N["Accessibility/Utils/ChartUtilities.js"],N["Accessibility/Components/SeriesComponent/ForcedMarkers.js"],N["Accessibility/Components/SeriesComponent/NewDataAnnouncer.js"],N["Accessibility/Components/SeriesComponent/SeriesDescriber.js"],N["Accessibility/Components/SeriesComponent/SeriesKeyboardNavigation.js"],N["Core/Tooltip.js"]],function(W,R,U,Y,Z,q,$){var G,D=this&&this.__extends||(G=function(u,p){return G=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,v){g.__proto__=v}||function(g,v){for(var y in v)v.hasOwnProperty(y)&&(g[y]=v[y])},G(u,p)},function(u,p){function g(){this.constructor=u}G(u,p),u.prototype=p===null?Object.create(p):(g.prototype=p.prototype,new g)}),E=R.hideSeriesFromAT,x=Z.describeSeries,T=function(u){function p(){return u!==null&&u.apply(this,arguments)||this}return D(p,u),p.compose=function(g,v,y){Y.compose(y),U.compose(y),q.compose(g,v,y)},p.prototype.init=function(){this.newDataAnnouncer=new Y(this.chart),this.newDataAnnouncer.init(),this.keyboardNavigation=new q(this.chart,this.keyCodes),this.keyboardNavigation.init(),this.hideTooltipFromATWhenShown(),this.hideSeriesLabelsFromATWhenShown()},p.prototype.hideTooltipFromATWhenShown=function(){var g=this;this.addEvent($,"refresh",function(){this.chart===g.chart&&this.label&&this.label.element&&this.label.element.setAttribute("aria-hidden",!0)})},p.prototype.hideSeriesLabelsFromATWhenShown=function(){this.addEvent(this.chart,"afterDrawSeriesLabels",function(){this.series.forEach(function(g){g.labelBySeries&&g.labelBySeries.attr("aria-hidden",!0)})})},p.prototype.onChartRender=function(){this.chart.series.forEach(function(g){(g.options.accessibility&&g.options.accessibility.enabled)!==!1&&g.visible?x(g):E(g)})},p.prototype.getKeyboardNavigation=function(){return this.keyboardNavigation.getKeyboardNavigationHandler()},p.prototype.destroy=function(){this.newDataAnnouncer.destroy(),this.keyboardNavigation.destroy()},p}(W);return T}),rt(N,"Accessibility/Components/ZoomComponent.js",[N["Accessibility/AccessibilityComponent.js"],N["Accessibility/Utils/ChartUtilities.js"],N["Accessibility/Utils/HTMLUtilities.js"],N["Accessibility/KeyboardNavigationHandler.js"],N["Core/Utilities.js"]],function(W,R,U,Y,Z){var q,$=this&&this.__extends||(q=function(u,p){return q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,v){g.__proto__=v}||function(g,v){for(var y in v)v.hasOwnProperty(y)&&(g[y]=v[y])},q(u,p)},function(u,p){function g(){this.constructor=u}q(u,p),u.prototype=p===null?Object.create(p):(g.prototype=p.prototype,new g)}),G=R.unhideChartElementFromAT,D=U.getFakeMouseEvent,E=Z.attr,x=Z.pick,T=function(u){function p(){var g=u!==null&&u.apply(this,arguments)||this;return g.focusedMapNavButtonIx=-1,g}return $(p,u),p.prototype.init=function(){var g=this,v=this.chart;this.proxyProvider.addGroup("zoom","div"),["afterShowResetZoom","afterApplyDrilldown","drillupall"].forEach(function(y){g.addEvent(v,y,function(){g.updateProxyOverlays()})})},p.prototype.onChartUpdate=function(){var g=this.chart,v=this;g.mapNavigation&&g.mapNavigation.navButtons.forEach(function(y,C){G(g,y.element),v.setMapNavButtonAttrs(y.element,"accessibility.zoom.mapZoom"+(C?"Out":"In"))})},p.prototype.setMapNavButtonAttrs=function(g,v){var y=this.chart,C=y.langFormat(v,{chart:y});E(g,{tabindex:-1,role:"button","aria-label":C})},p.prototype.onChartRender=function(){this.updateProxyOverlays()},p.prototype.updateProxyOverlays=function(){var g=this.chart;if(this.proxyProvider.clearGroup("zoom"),g.resetZoomButton&&this.createZoomProxyButton(g.resetZoomButton,"resetZoomProxyButton",g.langFormat("accessibility.zoom.resetZoomButton",{chart:g})),g.drillUpButton&&g.breadcrumbs&&g.breadcrumbs.list){var v=g.breadcrumbs.list[g.breadcrumbs.list.length-1];this.createZoomProxyButton(g.drillUpButton,"drillUpProxyButton",g.langFormat("accessibility.drillUpButton",{chart:g,buttonText:g.breadcrumbs.getButtonText(v)}))}},p.prototype.createZoomProxyButton=function(g,v,y){this[v]=this.proxyProvider.addProxyElement("zoom",{click:g},{"aria-label":y,tabindex:-1})},p.prototype.getMapZoomNavigation=function(){var g=this.keyCodes,v=this.chart,y=this;return new Y(v,{keyCodeMap:[[[g.up,g.down,g.left,g.right],function(C){return y.onMapKbdArrow(this,C)}],[[g.tab],function(C,P){return y.onMapKbdTab(this,P)}],[[g.space,g.enter],function(){return y.onMapKbdClick(this)}]],validate:function(){return function(C){return!!(C.mapView&&C.mapNavigation&&C.mapNavigation.navButtons.length)}(v)},init:function(C){return y.onMapNavInit(C)}})},p.prototype.onMapKbdArrow=function(g,v){var y=this.chart,C=this.keyCodes,P=y.container,L=v===C.up||v===C.down,M=v===C.left||v===C.up?1:-1,f=(L?y.plotHeight:y.plotWidth)/10*M,b=10*Math.random(),l={x:P.offsetLeft+y.plotLeft+y.plotWidth/2+b,y:P.offsetTop+y.plotTop+y.plotHeight/2+b},h=L?{x:l.x,y:l.y+f}:{x:l.x+f,y:l.y};return[D("mousedown",l),D("mousemove",h),D("mouseup",h)].forEach(function(e){return P.dispatchEvent(e)}),g.response.success},p.prototype.onMapKbdTab=function(g,v){var y=this.chart,C=g.response,P=v.shiftKey,L=P&&!this.focusedMapNavButtonIx||!P&&this.focusedMapNavButtonIx;if(y.mapNavigation.navButtons[this.focusedMapNavButtonIx].setState(0),L)return y.mapView&&y.mapView.zoomBy(),C[P?"prev":"next"];this.focusedMapNavButtonIx+=P?-1:1;var M=y.mapNavigation.navButtons[this.focusedMapNavButtonIx];return y.setFocusToElement(M.box,M.element),M.setState(2),C.success},p.prototype.onMapKbdClick=function(g){var v=this.chart.mapNavigation.navButtons[this.focusedMapNavButtonIx].element;return this.fakeClickEvent(v),g.response.success},p.prototype.onMapNavInit=function(g){var v=this.chart,y=v.mapNavigation.navButtons[0],C=v.mapNavigation.navButtons[1],P=g>0?y:C;v.setFocusToElement(P.box,P.element),P.setState(2),this.focusedMapNavButtonIx=g>0?0:1},p.prototype.simpleButtonNavigation=function(g,v,y){var C=this.keyCodes,P=this,L=this.chart;return new Y(L,{keyCodeMap:[[[C.tab,C.up,C.down,C.left,C.right],function(M,f){var b=M===C.tab&&f.shiftKey||M===C.left||M===C.up;return this.response[b?"prev":"next"]}],[[C.space,C.enter],function(){var M=y(this,L);return x(M,this.response.success)}]],validate:function(){return L[g]&&L[g].box&&P[v].buttonElement},init:function(){L.setFocusToElement(L[g].box,P[v].buttonElement)}})},p.prototype.getKeyboardNavigation=function(){return[this.simpleButtonNavigation("resetZoomButton","resetZoomProxyButton",function(g,v){v.zoomOut()}),this.simpleButtonNavigation("drillUpButton","drillUpProxyButton",function(g,v){return v.drillUp(),g.response.prev}),this.getMapZoomNavigation()]},p}(W);return T}),rt(N,"Accessibility/HighContrastMode.js",[N["Core/Globals.js"]],function(W){var R=W.doc,U=W.isMS,Y=W.win;return{isHighContrastModeActive:function(){var Z=/(Edg)/.test(Y.navigator.userAgent);if(Y.matchMedia&&Z)return Y.matchMedia("(-ms-high-contrast: active)").matches;if(U&&Y.getComputedStyle){var q=R.createElement("div");q.style.backgroundImage="url(".concat("data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",")"),R.body.appendChild(q);var $=(q.currentStyle||Y.getComputedStyle(q)).backgroundImage;return R.body.removeChild(q),$==="none"}return Y.matchMedia&&Y.matchMedia("(forced-colors: active)").matches},setHighContrastTheme:function(Z){Z.highContrastModeActive=!0;var q=Z.options.accessibility.highContrastTheme;Z.update(q,!1),Z.series.forEach(function($){var G=q.plotOptions[$.type]||{};$.update({color:G.color||"windowText",colors:[G.color||"windowText"],borderColor:G.borderColor||"window"}),$.points.forEach(function(D){D.options&&D.options.color&&D.update({color:G.color||"windowText",borderColor:G.borderColor||"window"},!1)})}),Z.redraw()}}}),rt(N,"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"}}}),rt(N,"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}}}}),rt(N,"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). }"}}}}),rt(N,"Accessibility/Options/DeprecatedOptions.js",[N["Core/Utilities.js"]],function(W){var R=W.error,U=W.pick;function Y(q,$,G){for(var D,E=q,x=0;x<$.length-1;++x)E=E[D=$[x]]=U(E[D],{});E[$[$.length-1]]=G}function Z(q,$,G,D){function E(u,p){return p.reduce(function(g,v){return g[v]},u)}var x=E(q.options,$),T=E(q.options,G);Object.keys(D).forEach(function(u){var p,g=x[u];g!==void 0&&(Y(T,D[u],g),R(32,!1,q,((p={})[$.join(".")+"."+u]=G.join(".")+"."+D[u].join("."),p)))})}return function(q){(function($){var G=$.options.chart,D=$.options.accessibility||{};["description","typeDescription"].forEach(function(E){var x;G[E]&&(D[E]=G[E],R(32,!1,$,((x={})["chart.".concat(E)]="use accessibility.".concat(E),x)))})})(q),function($){$.axes.forEach(function(G){var D=G.options;D&&D.description&&(D.accessibility=D.accessibility||{},D.accessibility.description=D.description,R(32,!1,$,{"axis.description":"use axis.accessibility.description"}))})}(q),q.series&&function($){var G={description:["accessibility","description"],exposeElementToA11y:["accessibility","exposeAsGroupOnly"],pointDescriptionFormatter:["accessibility","point","descriptionFormatter"],skipKeyboardNavigation:["accessibility","keyboardNavigation","enabled"],"accessibility.pointDescriptionFormatter":["accessibility","point","descriptionFormatter"]};$.series.forEach(function(D){Object.keys(G).forEach(function(E){var x,T=D.options[E];E==="accessibility.pointDescriptionFormatter"&&(T=D.options.accessibility&&D.options.accessibility.pointDescriptionFormatter),T!==void 0&&(Y(D.options,G[E],E==="skipKeyboardNavigation"?!T:T),R(32,!1,$,((x={})["series.".concat(E)]="series."+G[E].join("."),x)))})})}(q),function($){Z($,["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"]})}(q),function($){Z($,["accessibility","keyboardNavigation"],["accessibility","keyboardNavigation","seriesNavigation"],{skipNullPoints:["skipNullPoints"],mode:["mode"]})}(q),function($){Z($,["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"]})}(q)}}),rt(N,"Accessibility/Accessibility.js",[N["Core/Defaults.js"],N["Core/Globals.js"],N["Core/Utilities.js"],N["Accessibility/Utils/HTMLUtilities.js"],N["Accessibility/A11yI18n.js"],N["Accessibility/Components/ContainerComponent.js"],N["Accessibility/FocusBorder.js"],N["Accessibility/Components/InfoRegionsComponent.js"],N["Accessibility/KeyboardNavigation.js"],N["Accessibility/Components/LegendComponent.js"],N["Accessibility/Components/MenuComponent.js"],N["Accessibility/Components/SeriesComponent/NewDataAnnouncer.js"],N["Accessibility/ProxyProvider.js"],N["Accessibility/Components/RangeSelectorComponent.js"],N["Accessibility/Components/SeriesComponent/SeriesComponent.js"],N["Accessibility/Components/ZoomComponent.js"],N["Accessibility/HighContrastMode.js"],N["Accessibility/HighContrastTheme.js"],N["Accessibility/Options/A11yDefaults.js"],N["Accessibility/Options/LangDefaults.js"],N["Accessibility/Options/DeprecatedOptions.js"]],function(W,R,U,Y,Z,q,$,G,D,E,x,T,u,p,g,v,y,C,P,L,M){var f=W.defaultOptions,b=R.doc,l=U.addEvent,h=U.extend,e=U.fireEvent,r=U.merge,o=Y.removeElement,i=function(){function c(a){this.chart=void 0,this.components=void 0,this.keyboardNavigation=void 0,this.proxyProvider=void 0,this.init(a)}return c.prototype.init=function(a){if(this.chart=a,!b.addEventListener||!a.renderer.isSVG)return this.zombie=!0,this.components={},void a.renderTo.setAttribute("aria-hidden",!0);M(a),this.proxyProvider=new u(this.chart),this.initComponents(),this.keyboardNavigation=new D(a,this.components)},c.prototype.initComponents=function(){var a=this.chart,s=this.proxyProvider,m=a.options.accessibility;this.components={container:new q,infoRegions:new G,legend:new E,chartMenu:new x,rangeSelector:new p,series:new g,zoom:new v},m.customComponents&&h(this.components,m.customComponents);var A=this.components;this.getComponentOrder().forEach(function(O){A[O].initBase(a,s),A[O].init()})},c.prototype.getComponentOrder=function(){if(!this.components)return[];if(!this.components.series)return Object.keys(this.components);var a=Object.keys(this.components).filter(function(s){return s!=="series"});return["series"].concat(a)},c.prototype.update=function(){var a=this.components,s=this.chart,m=s.options.accessibility;e(s,"beforeA11yUpdate"),s.types=this.getChartTypes();var A=m.keyboardNavigation.order;this.proxyProvider.updateGroupOrder(A),this.getComponentOrder().forEach(function(O){a[O].onChartUpdate(),e(s,"afterA11yComponentUpdate",{name:O,component:a[O]})}),this.keyboardNavigation.update(A),!s.highContrastModeActive&&y.isHighContrastModeActive()&&y.setHighContrastTheme(s),e(s,"afterA11yUpdate",{accessibility:this})},c.prototype.destroy=function(){var a=this.chart||{},s=this.components;Object.keys(s).forEach(function(m){s[m].destroy(),s[m].destroyBase()}),this.proxyProvider&&this.proxyProvider.destroy(),a.announcerContainer&&o(a.announcerContainer),this.keyboardNavigation&&this.keyboardNavigation.destroy(),a.renderTo&&a.renderTo.setAttribute("aria-hidden",!0),a.focusElement&&a.focusElement.removeFocusBorder()},c.prototype.getChartTypes=function(){var a={};return this.chart.series.forEach(function(s){a[s.type]=1}),Object.keys(a)},c}();return function(c){var a=[];function s(){this.accessibility&&this.accessibility.destroy()}function m(){this.a11yDirty&&this.renderTo&&(delete this.a11yDirty,this.updateA11yEnabled());var w=this.accessibility;w&&!w.zombie&&(w.proxyProvider.updateProxyElementPositions(),w.getComponentOrder().forEach(function(k){w.components[k].onChartRender()}))}function A(w){var k=w.options.accessibility;k&&(k.customComponents&&(this.options.accessibility.customComponents=k.customComponents,delete k.customComponents),r(!0,this.options.accessibility,k),this.accessibility&&this.accessibility.destroy&&(this.accessibility.destroy(),delete this.accessibility)),this.a11yDirty=!0}function O(){var w=this.accessibility,k=this.options.accessibility;k&&k.enabled?w&&!w.zombie?w.update():(this.accessibility=w=new c(this),w&&!w.zombie&&w.update()):w?(w.destroy&&w.destroy(),delete this.accessibility):this.renderTo.setAttribute("aria-hidden",!0)}function d(){this.series.chart.accessibility&&(this.series.chart.a11yDirty=!0)}c.i18nFormat=Z.i18nFormat,c.compose=function(w,k,z,F,j,I){D.compose(w),T.compose(F),E.compose(w,k),x.compose(w),g.compose(w,z,F),Z.compose(w),$.compose(w,j),I&&p.compose(w,I),a.indexOf(w)===-1&&(a.push(w),w.prototype.updateA11yEnabled=O,l(w,"destroy",s),l(w,"render",m),l(w,"update",A),["addSeries","init"].forEach(function(_){l(w,_,function(){this.a11yDirty=!0})}),["afterApplyDrilldown","drillupall"].forEach(function(_){l(w,_,function(){var V=this.accessibility;V&&!V.zombie&&V.update()})})),a.indexOf(z)===-1&&(a.push(z),l(z,"update",d)),a.indexOf(F)===-1&&(a.push(F),["update","updatedData","remove"].forEach(function(_){l(F,_,function(){this.chart.accessibility&&(this.chart.a11yDirty=!0)})}))}}(i||(i={})),r(!0,f,P,{accessibility:{highContrastTheme:C},lang:L}),i}),rt(N,"masters/modules/accessibility.src.js",[N["Core/Globals.js"],N["Accessibility/Accessibility.js"],N["Accessibility/AccessibilityComponent.js"],N["Accessibility/Utils/ChartUtilities.js"],N["Accessibility/Utils/HTMLUtilities.js"],N["Accessibility/KeyboardNavigationHandler.js"],N["Accessibility/Components/SeriesComponent/SeriesDescriber.js"]],function(W,R,U,Y,Z,q,$){var G=W;G.i18nFormat=R.i18nFormat,G.A11yChartUtilities=Y,G.A11yHTMLUtilities=Z,G.AccessibilityComponent=U,G.KeyboardNavigationHandler=q,G.SeriesAccessibilityDescriber=$,R.compose(G.Chart,G.Legend,G.Point,G.Series,G.SVGElement,G.RangeSelector)})},J.exports?(pt.default=pt,J.exports=pt):(at=[nt(8840)],(lt=function(ft){return pt(ft),pt.Highcharts=ft,pt}.apply(it,at))===void 0||(J.exports=lt))},8291:(J,it,nt)=>{var at,lt,pt;pt=function(ft){var N=ft?ft._modules:{};function rt(W,R,U,Y){W.hasOwnProperty(R)||(W[R]=Y.apply(null,U),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:R,module:W[R]}})))}rt(N,"Core/HttpUtilities.js",[N["Core/Globals.js"],N["Core/Utilities.js"]],function(W,R){var U=W.doc,Y=R.createElement,Z=R.discardElement,q=R.merge,$=R.objectEach,G={ajax:function(D){var E={json:"application/json",xml:"application/xml",text:"text/plain",octet:"application/octet-stream"},x=new XMLHttpRequest;function T(u,p){D.error&&D.error(u,p)}if(!D.url)return!1;x.open((D.type||"get").toUpperCase(),D.url,!0),D.headers&&D.headers["Content-Type"]||x.setRequestHeader("Content-Type",E[D.dataType||"json"]||E.text),$(D.headers,function(u,p){x.setRequestHeader(p,u)}),D.responseType&&(x.responseType=D.responseType),x.onreadystatechange=function(){var u;if(x.readyState===4){if(x.status===200){if(D.responseType!=="blob"&&(u=x.responseText,D.dataType==="json"))try{u=JSON.parse(u)}catch(p){if(p instanceof Error)return T(x,p)}return D.success&&D.success(u,x)}T(x,x.responseText)}},D.data&&typeof D.data!="string"&&(D.data=JSON.stringify(D.data)),x.send(D.data)},getJSON:function(D,E){G.ajax({url:D,success:E,dataType:"json",headers:{"Content-Type":"text/plain"}})},post:function(D,E,x){var T=Y("form",q({method:"post",action:D,enctype:"multipart/form-data"},x),{display:"none"},U.body);$(E,function(u,p){Y("input",{type:"hidden",name:p,value:u},void 0,T)}),T.submit(),Z(T)}};return G}),rt(N,"Extensions/Data.js",[N["Core/Chart/Chart.js"],N["Core/Defaults.js"],N["Core/Globals.js"],N["Core/HttpUtilities.js"],N["Core/Series/Point.js"],N["Core/Series/SeriesRegistry.js"],N["Core/Utilities.js"]],function(W,R,U,Y,Z,q,$){var G=R.getOptions,D=U.doc,E=Y.ajax,x=q.seriesTypes,T=$.addEvent,u=$.defined,p=$.extend,g=$.fireEvent,v=$.isNumber,y=$.merge,C=$.objectEach,P=$.pick,L=$.splat;function M(l){return!!(l&&(l.rowsURL||l.csvURL||l.columnsURL))}var f=function(){function l(h,e,r){e===void 0&&(e={}),this.rowsToColumns=l.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 i=new Date,c=+o[3];return c>i.getFullYear()-2e3?c+=1900:c+=2e3,Date.UTC(c,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=r,this.chartOptions=e,this.options=h,this.rawColumns=[],this.init(h,e,r)}return l.data=function(h,e,r){return e===void 0&&(e={}),new l(h,e,r)},l.rowsToColumns=function(h){var e,r,o,i,c;if(h)for(c=[],r=h.length,e=0;e<r;e++)for(i=h[e].length,o=0;o<i;o++)c[o]||(c[o]=[]),c[o][e]=h[e][o];return c},l.prototype.init=function(h,e,r){var o,i=h.decimalPoint;e&&(this.chartOptions=e),r&&(this.chart=r),i!=="."&&i!==","&&(i=void 0),this.options=h,this.columns=h.columns||this.rowsToColumns(h.rows)||[],this.firstRowAsNames=P(h.firstRowAsNames,this.firstRowAsNames,!0),this.decimalRegex=i&&new RegExp("^(-?[0-9]+)"+i+"([0-9]+)$"),this.liveDataTimeout!==void 0&&clearTimeout(this.liveDataTimeout),this.rawColumns=[],this.columns.length&&(this.dataFound(),o=!M(h)),o||(o=this.fetchLiveData()),o||(o=!!this.parseCSV().length),o||(o=!!this.parseTable().length),o||(o=this.parseGoogleSpreadsheet()),!o&&h.afterComplete&&h.afterComplete()},l.prototype.getColumnDistribution=function(){var h,e=this.chartOptions,r=this.options,o=[],i=function(w){return(x[w||"line"].prototype.pointArrayMap||[0]).length},c=function(w){return x[w||"line"].prototype.pointArrayMap},a=e&&e.chart&&e.chart.type,s=[],m=[],A=r&&r.seriesMapping||e&&e.series&&e.series.map(function(){return{x:0}})||[],O=0;(e&&e.series||[]).forEach(function(w){s.push(i(w.type||a))}),A.forEach(function(w){o.push(w.x||0)}),o.length===0&&o.push(0),A.forEach(function(w){var k=new b,z=s[O]||i(a),F=(e&&e.series||[])[O]||{},j=c(F.type||a),I=j||["y"];for((u(w.x)||F.isCartesian||!j)&&k.addColumnReader(w.x,"x"),C(w,function(_,V){V!=="x"&&k.addColumnReader(_,V)}),h=0;h<z;h++)k.hasReader(I[h])||k.addColumnReader(void 0,I[h]);m.push(k),O++});var d=c(a);d===void 0&&(d=["y"]),this.valueCount={global:i(a),xColumns:o,individual:s,seriesBuilders:m,globalPointArrayMap:d}},l.prototype.dataFound=function(){this.options.switchRowsAndColumns&&(this.columns=this.rowsToColumns(this.columns)),this.getColumnDistribution(),this.parseTypes(),this.parsed()!==!1&&this.complete()},l.prototype.parseCSV=function(h){var e,r,o=this,i=this.columns=[],c=h||this.options,a=c.startColumn!==void 0&&c.startColumn?c.startColumn:0,s=c.endColumn||Number.MAX_VALUE,m=[],A={",":0,";":0," ":0},O=c.csv,d=c.startRow!==void 0&&c.startRow?c.startRow:0,w=c.endRow||Number.MAX_VALUE,k=0;function z(j,I,_,V){var X=0,H="",Q="",et="",tt="",st=0,ct=0;function gt(yt){H=j[yt],Q=j[yt-1],et=j[yt+1]}function mt(yt){m.length<ct+1&&m.push([yt]),m[ct][m[ct].length-1]!==yt&&m[ct].push(yt)}function bt(){if(a>st||st>s)return++st,void(tt="");!isNaN(parseFloat(tt))&&isFinite(tt)?(tt=parseFloat(tt),mt("number")):isNaN(Date.parse(tt))?mt("string"):(tt=tt.replace(/\//g,"-"),mt("date")),i.length<ct+1&&i.push([]),i[ct][I]=tt,tt="",++ct,++st}if(j.trim().length&&j.trim()[0]!=="#"){for(;X<j.length;X++)if(gt(X),H==='"')for(gt(++X);X<j.length&&(H!=='"'||Q==='"'||et==='"');)(H!=='"'||H==='"'&&Q!=='"')&&(tt+=H),gt(++X);else H===e?bt():tt+=H;bt()}}if(O&&c.beforeParse&&(O=c.beforeParse.call(this,O)),O){r=O.replace(/\r\n/g,`
103
- `).replace(/\r/g,`
104
- `).split(c.lineDelimiter||`
105
- `),(!d||d<0)&&(d=0),(!w||w>=r.length)&&(w=r.length-1),c.itemDelimiter?e=c.itemDelimiter:(e=null,e=function(j){var I,_=0,V=0;return j.some(function(X,H){var Q,et,tt,st=!1,ct="";if(H>13)return!0;for(var gt=0;gt<X.length;gt++){if(Q=X[gt],et=X[gt+1],tt=X[gt-1],Q==="#")return;if(Q==='"')if(st){if(tt!=='"'&&et!=='"'){for(;et===" "&&gt<X.length;)et=X[++gt];A[et]!==void 0&&A[et]++,st=!1}}else st=!0;else A[Q]!==void 0?(ct=ct.trim(),isNaN(Date.parse(ct))&&!isNaN(ct)&&isFinite(ct)||A[Q]++,ct=""):ct+=Q;Q===","&&V++,Q==="."&&_++}}),I=A[";"]>A[","]?";":",",c.decimalPoint||(c.decimalPoint=_>V?".":",",o.decimalRegex=new RegExp("^(-?[0-9]+)"+c.decimalPoint+"([0-9]+)$")),I}(r));var F=0;for(k=d;k<=w;k++)r[k][0]==="#"?F++:z(r[k],k-d-F);c.columnTypes&&c.columnTypes.length!==0||!m.length||!m[0].length||m[0][1]!=="date"||c.dateFormat||(c.dateFormat=function(j,I){var _,V,X,H="YYYY/mm/dd",Q=[],et=[],tt=[],st=0,ct=!1;for((!I||I>j.length)&&(I=j.length);st<I;st++)if(j[st]!==void 0&&j[st]&&j[st].length)for(_=j[st].trim().replace(/\//g," ").replace(/\-/g," ").replace(/\./g," ").split(" "),tt=["","",""],X=0;X<_.length;X++)X<tt.length&&(_[X]=parseInt(_[X],10),_[X]&&(et[X]=!et[X]||et[X]<_[X]?_[X]:et[X],Q[X]!==void 0?Q[X]!==_[X]&&(Q[X]=!1):Q[X]=_[X],_[X]>31?_[X]<100?tt[X]="YY":tt[X]="YYYY":_[X]>12&&_[X]<=31?(tt[X]="dd",ct=!0):tt[X].length||(tt[X]="mm")));if(ct){for(X=0;X<Q.length;X++)Q[X]!==!1?et[X]>12&&tt[X]!=="YY"&&tt[X]!=="YYYY"&&(tt[X]="YY"):et[X]>12&&tt[X]==="mm"&&(tt[X]="dd");return tt.length===3&&tt[1]==="dd"&&tt[2]==="dd"&&(tt[2]="YY"),V=tt.join("/"),(c.dateFormats||o.dateFormats)[V]?V:(g("deduceDateFailed"),H)}return H}(i[0])),this.dataFound()}return i},l.prototype.parseTable=function(){var h=this.options,e=this.columns||[],r=h.startRow||0,o=h.endRow||Number.MAX_VALUE,i=h.startColumn||0,c=h.endColumn||Number.MAX_VALUE;if(h.table){var a=h.table;typeof a=="string"&&(a=D.getElementById(a)),[].forEach.call(a.getElementsByTagName("tr"),function(s,m){m>=r&&m<=o&&[].forEach.call(s.children,function(A,O){var d=e[O-i],w=1;if((A.tagName==="TD"||A.tagName==="TH")&&O>=i&&O<=c)for(e[O-i]||(e[O-i]=[]),e[O-i][m-r]=A.innerHTML;m-r>=w&&d[m-r-w]===void 0;)d[m-r-w]=null,w++})}),this.dataFound()}return e},l.prototype.fetchLiveData=function(){var h=this,e=this.chart,r=this.options,o=r.enablePolling,i=y(r),c=0,a=1e3*(r.dataRefreshRate||2);return!!M(r)&&(a<1e3&&(a=1e3),delete r.csvURL,delete r.rowsURL,delete r.columnsURL,function s(m){function A(O,d,w){if(!O||!/^(http|\/|\.\/|\.\.\/)/.test(O))return O&&r.error&&r.error("Invalid URL"),!1;function k(){o&&e.liveDataURL===O&&(h.liveDataTimeout=setTimeout(s,a))}return m&&(clearTimeout(h.liveDataTimeout),e.liveDataURL=O),E({url:O,dataType:w||"json",success:function(z){e&&e.series&&d(z),k()},error:function(z,F){return++c<3&&k(),r.error&&r.error(F,z)}}),!0}A(i.csvURL,function(O){e.update({data:{csv:O}})},"text")||A(i.rowsURL,function(O){e.update({data:{rows:O}})})||A(i.columnsURL,function(O){e.update({data:{columns:O}})})}(!0),M(r))},l.prototype.parseGoogleSpreadsheet=function(){var h=this,e=this.options,r=e.googleSpreadsheetKey,o=this.chart,i=Math.max(1e3*(e.dataRefreshRate||2),4e3),c=function(){if(e.googleSpreadsheetRange)return e.googleSpreadsheetRange;var a="ABCDEFGHIJKLMNOPQRSTUVWXYZ",s=(a.charAt(e.startColumn||0)||"A")+((e.startRow||0)+1),m=a.charAt(P(e.endColumn,-1))||"ZZ";return u(e.endRow)&&(m+=e.endRow+1),""+s+":".concat(m)};return r&&(delete e.googleSpreadsheetKey,function a(s){var m=["https://sheets.googleapis.com/v4/spreadsheets",r,"values",c(),"?alt=json&majorDimension=COLUMNS&valueRenderOption=UNFORMATTED_VALUE&dateTimeRenderOption=FORMATTED_STRING&key="+e.googleAPIKey].join("/");E({url:m,dataType:"json",success:function(A){s(A),e.enablePolling&&(h.liveDataTimeout=setTimeout(function(){a(s)},i))},error:function(A,O){return e.error&&e.error(O,A)}})}(function(a){var s=a.values;if(!s||s.length===0)return!1;var m=s.reduce(function(A,O){return Math.max(A,O.length)},0);s.forEach(function(A){for(var O=0;O<m;O++)A[O]===void 0&&(A[O]=null)}),o&&o.series?o.update({data:{columns:s}}):(h.columns=s,h.dataFound())})),!1},l.prototype.trim=function(h,e){return typeof h=="string"&&(h=h.replace(/^\s+|\s+$/g,""),e&&/^[0-9\s]+$/.test(h)&&(h=h.replace(/\s/g,"")),this.decimalRegex&&(h=h.replace(this.decimalRegex,"$1.$2"))),h},l.prototype.parseTypes=function(){for(var h=this.columns||[],e=h.length;e--;)this.parseColumn(h[e],e)},l.prototype.parseColumn=function(h,e){var r,o,i,c,a,s,m,A=this.rawColumns,O=this.columns,d=this.firstRowAsNames,w=this.valueCount.xColumns.indexOf(e)!==-1,k=[],z=this.chartOptions,F=(this.options.columnTypes||[])[e],j=w&&(z&&z.xAxis&&L(z.xAxis)[0].type==="category"||F==="string"),I=u(h.name),_=h.length;for(A[e]||(A[e]=[]);_--;)r=k[_]||h[_],i=this.trim(r),c=this.trim(r,!0),o=parseFloat(c),A[e][_]===void 0&&(A[e][_]=i),j||_===0&&d&&!I?h[_]=""+i:+c===o?(h[_]=o,o>31536e6&&F!=="float"?h.isDatetime=!0:h.isNumeric=!0,h[_+1]!==void 0&&(m=o>h[_+1])):(i&&i.length&&(a=this.parseDate(r)),w&&v(a)&&F!=="float"?(k[_]=r,h[_]=a,h.isDatetime=!0,h[_+1]!==void 0&&((s=a>h[_+1])!==m&&m!==void 0&&(this.alternativeFormat?(this.dateFormat=this.alternativeFormat,_=h.length,this.alternativeFormat=this.dateFormats[this.dateFormat].alternative):h.unsorted=!0),m=s)):(h[_]=i===""?null:i,_!==0&&(h.isDatetime||h.isNumeric)&&(h.mixed=!0)));if(w&&h.mixed&&(O[e]=A[e]),w&&m&&this.options.sort)for(e=0;e<O.length;e++)O[e].reverse(),d&&O[e].unshift(O[e].pop())},l.prototype.parseDate=function(h){var e,r,o,i,c=this.options.parseDate,a=this.options.dateFormat||this.dateFormat;if(c)e=c(h);else if(typeof h=="string"){if(a)(o=this.dateFormats[a])||(o=this.dateFormats["YYYY/mm/dd"]),(i=h.match(o.regex))&&(e=o.parser(i));else for(r in this.dateFormats)if(o=this.dateFormats[r],i=h.match(o.regex)){this.dateFormat=a=r,this.alternativeFormat=o.alternative,e=o.parser(i);break}i||(h.match(/:.+(GMT|UTC|[Z+-])/)&&(h=h.replace(/\s*(?:GMT|UTC)?([+-])(\d\d)(\d\d)$/,"$1$2:$3").replace(/(?:\s+|GMT|UTC)([+-])/,"$1").replace(/(\d)\s*(?:GMT|UTC|Z)$/,"$1+00:00")),typeof(i=Date.parse(h))=="object"&&i!==null&&i.getTime?e=i.getTime()-6e4*i.getTimezoneOffset():v(i)&&(e=i-6e4*new Date(i).getTimezoneOffset()))}return e},l.prototype.getData=function(){if(this.columns)return this.rowsToColumns(this.columns).slice(1)},l.prototype.parsed=function(){if(this.options.parsed)return this.options.parsed.call(this,this.columns)},l.prototype.complete=function(){var h,e,r,o,i,c,a,s,m,A,O,d,w=this.columns,k=this.options,z=[];if(k.complete||k.afterComplete){if(this.firstRowAsNames)for(o=0;o<w.length;o++){var F=w[o];u(F.name)||(F.name=P(F.shift(),"").toString())}for(e=[],A=function(j,I){var _,V,X,H=[],Q=[];for(V=0;V<j;V+=1)H.push(!0);for(_=0;_<I.length;_+=1)for(X=I[_].getReferencedColumnIndexes(),V=0;V<X.length;V+=1)H[X[V]]=!1;for(V=0;V<H.length;V+=1)H[V]&&Q.push(V);return Q}(w.length,this.valueCount.seriesBuilders),a=0;a<this.valueCount.seriesBuilders.length;a++)(m=this.valueCount.seriesBuilders[a]).populateColumns(A)&&z.push(m);for(;A.length>0;){for((m=new b).addColumnReader(0,"x"),(d=A.indexOf(0))!==-1&&A.splice(d,1),o=0;o<this.valueCount.global;o++)m.addColumnReader(void 0,this.valueCount.globalPointArrayMap[o]);m.populateColumns(A)&&z.push(m)}if(z.length>0&&z[0].readers.length>0&&(O=w[z[0].readers[0].columnIndex])!==void 0&&(O.isDatetime?h="datetime":O.isNumeric||(h="category")),h==="category")for(a=0;a<z.length;a++)for(m=z[a],c=0;c<m.readers.length;c++)m.readers[c].configName==="x"&&(m.readers[c].configName="name");for(a=0;a<z.length;a++){for(m=z[a],r=[],i=0;i<w[0].length;i++)r[i]=m.read(w,i);e[a]={data:r},m.name&&(e[a].name=m.name),h==="category"&&(e[a].turboThreshold=0)}s={series:e},h&&(s.xAxis={type:h},h==="category"&&(s.xAxis.uniqueNames=!1)),k.complete&&k.complete(s),k.afterComplete&&k.afterComplete(s)}},l.prototype.update=function(h,e){var r=this.chart,o=r.options;h&&(h.afterComplete=function(i){i&&(i.xAxis&&r.xAxis[0]&&i.xAxis.type===r.xAxis[0].options.type&&delete i.xAxis,r.update(i,e,!0))},y(!0,o.data,h),o.data&&o.data.googleSpreadsheetKey&&!h.columns&&delete o.data.columns,this.init(o.data))},l}();T(W,"init",function(l){var h=this,e=l.args[1],r=G().data,o=l.args[0]||{};if((r||o&&o.data)&&!h.hasDataDef){h.hasDataDef=!0;var i=y(r,o.data);h.data=new f(p(i,{afterComplete:function(c){var a,s;if(Object.hasOwnProperty.call(o,"series"))if(typeof o.series=="object")for(a=Math.max(o.series.length,c&&c.series?c.series.length:0);a--;)s=o.series[a]||{},o.series[a]=y(s,c&&c.series?c.series[a]:{});else delete o.series;o=y(c,o),h.init(o,e)}}),o,h),l.preventDefault()}});var b=function(){function l(){this.readers=[],this.pointIsArray=!0}return l.prototype.populateColumns=function(h){var e=!0;return this.readers.forEach(function(r){r.columnIndex===void 0&&(r.columnIndex=h.shift())}),this.readers.forEach(function(r){r.columnIndex===void 0&&(e=!1)}),e},l.prototype.read=function(h,e){var r,o=this,i=o.pointIsArray,c=i?[]:{};return o.readers.forEach(function(a){var s=h[a.columnIndex][e];i?c.push(s):a.configName.indexOf(".")>0?Z.prototype.setNestedProperty(c,s,a.configName):c[a.configName]=s}),this.name===void 0&&o.readers.length>=2&&(r=o.getReferencedColumnIndexes()).length>=2&&(r.shift(),r.sort(function(a,s){return a-s}),this.name=h[r.shift()].name),c},l.prototype.addColumnReader=function(h,e){this.readers.push({columnIndex:h,configName:e}),e!=="x"&&e!=="y"&&e!==void 0&&(this.pointIsArray=!1)},l.prototype.getReferencedColumnIndexes=function(){var h,e,r=[];for(h=0;h<this.readers.length;h+=1)(e=this.readers[h]).columnIndex!==void 0&&r.push(e.columnIndex);return r},l.prototype.hasReader=function(h){var e;for(e=0;e<this.readers.length;e+=1)if(this.readers[e].configName===h)return!0},l}();return f}),rt(N,"masters/modules/data.src.js",[N["Core/Globals.js"],N["Core/HttpUtilities.js"],N["Extensions/Data.js"]],function(W,R,U){var Y=W;Y.ajax=R.ajax,Y.data=U.data,Y.getJSON=R.getJSON,Y.post=R.post,Y.Data=U,Y.HttpUtilities=R})},J.exports?(pt.default=pt,J.exports=pt):(at=[nt(8840)],(lt=function(ft){return pt(ft),pt.Highcharts=ft,pt}.apply(it,at))===void 0||(J.exports=lt))},7330:(J,it,nt)=>{var at,lt,pt;pt=function(ft){var N=ft?ft._modules:{};function rt(W,R,U,Y){W.hasOwnProperty(R)||(W[R]=Y.apply(null,U),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:R,module:W[R]}})))}rt(N,"Extensions/Breadcrumbs.js",[N["Core/Chart/Chart.js"],N["Core/Defaults.js"],N["Core/Globals.js"],N["Core/Utilities.js"],N["Core/FormatUtilities.js"]],function(W,R,U,Y,Z){var q=R.defaultOptions,$=Z.format,G=Y.addEvent,D=Y.objectEach,E=Y.extend,x=Y.fireEvent,T=Y.merge,u=Y.pick,p=Y.defined,g=Y.isString;E(q.lang,{mainBreadcrumb:"Main"});var v=function(){function y(C,P){this.group=void 0,this.list=[],this.elementList={},this.isDirty=!0,this.level=0,this.options=void 0;var L=T(C.options.drilldown&&C.options.drilldown.drillUpButton,y.defaultBreadcrumbsOptions,C.options.navigation&&C.options.navigation.breadcrumbs,P);this.chart=C,this.options=L||{}}return y.prototype.updateProperties=function(C){this.setList(C),this.setLevel(),this.isDirty=!0},y.prototype.setList=function(C){this.list=C},y.prototype.setLevel=function(){this.level=this.list.length&&this.list.length-1},y.prototype.getLevel=function(){return this.level},y.prototype.getButtonText=function(C){var P=this.chart,L=this.options,M=P.options.lang,f=u(L.format,L.showFullPath?"{level.name}":"← {level.name}"),b=M&&u(M.drillUpText,M.mainBreadcrumb),l=L.formatter&&L.formatter(C)||$(f,{level:C.levelOptions},P)||"";return(g(l)&&!l.length||l==="← ")&&p(b)&&(l=L.showFullPath?b:"← "+b),l},y.prototype.redraw=function(){this.isDirty&&this.render(),this.group&&this.group.align(),this.isDirty=!1},y.prototype.render=function(){var C=this,P=C.chart,L=C.options;!C.group&&L&&(C.group=P.renderer.g("breadcrumbs-group").addClass("highcharts-no-tooltip highcharts-breadcrumbs").attr({zIndex:L.zIndex}).add()),L.showFullPath?this.renderFullPathButtons():this.renderSingleButton(),this.alignBreadcrumbsGroup()},y.prototype.renderFullPathButtons=function(){this.destroySingleButton(),this.resetElementListState(),this.updateListElements(),this.destroyListElements()},y.prototype.renderSingleButton=function(){var C=this,P=C.chart,L=C.list,M=C.options.buttonSpacing;this.destroyListElements();var f=C.group?C.group.getBBox().width:M,b=M,l=L[L.length-2];!P.drillUpButton&&this.level>0?P.drillUpButton=C.renderButton(l,f,b):P.drillUpButton&&(this.level>0?this.updateSingleButton():this.destroySingleButton())},y.prototype.alignBreadcrumbsGroup=function(C){var P=this;if(P.group){var L=P.options,M=L.buttonTheme,f=L.position,b=L.relativeTo==="chart"||L.relativeTo==="spacingBox"?void 0:"scrollablePlotBox",l=P.group.getBBox(),h=2*(M.padding||0)+L.buttonSpacing;f.width=l.width+h,f.height=l.height+h;var e=T(f);C&&(e.x+=C),P.options.rtl&&(e.x+=f.width),e.y=u(e.y,this.yOffset,0),P.group.align(e,!0,b)}},y.prototype.renderButton=function(C,P,L){var M=this,f=this.chart,b=M.options,l=T(b.buttonTheme),h=f.renderer.button(M.getButtonText(C),P,L,function(e){var r,o=b.events&&b.events.click;o&&(r=o.call(M,e,C)),r!==!1&&(b.showFullPath?e.newLevel=C.level:e.newLevel=M.level-1,x(M,"up",e))},l).addClass("highcharts-breadcrumbs-button").add(M.group);return f.styledMode||h.attr(b.style),h},y.prototype.renderSeparator=function(C,P){var L=this.chart,M=this.options.separator,f=L.renderer.label(M.text,C,P,void 0,void 0,void 0,!1).addClass("highcharts-breadcrumbs-separator").add(this.group);return L.styledMode||f.css(M.style),f},y.prototype.update=function(C){T(!0,this.options,C),this.destroy(),this.isDirty=!0},y.prototype.updateSingleButton=function(){var C=this.chart,P=this.list[this.level-1];C.drillUpButton&&C.drillUpButton.attr({text:this.getButtonText(P)})},y.prototype.destroy=function(){this.destroySingleButton(),this.destroyListElements(!0),this.group&&this.group.destroy(),this.group=void 0},y.prototype.destroyListElements=function(C){var P=this.elementList;D(P,function(L,M){!C&&P[M].updated||((L=P[M]).button&&L.button.destroy(),L.separator&&L.separator.destroy(),delete L.button,delete L.separator,delete P[M])}),C&&(this.elementList={})},y.prototype.destroySingleButton=function(){this.chart.drillUpButton&&(this.chart.drillUpButton.destroy(),this.chart.drillUpButton=void 0)},y.prototype.resetElementListState=function(){D(this.elementList,function(C){C.updated=!1})},y.prototype.updateListElements=function(){var C,P=this,L=P.elementList,M=P.options.buttonSpacing,f=P.list,b=P.options.rtl,l=b?-1:1,h=function(i,c){return l*i.getBBox().width+l*c},e=function(i,c,a){i.translate(c-i.getBBox().width,a)},r=P.group?h(P.group,M):M,o=M;f.forEach(function(i,c){var a,s,m=c===f.length-1;L[i.level]?(a=(C=L[i.level]).button,C.separator||m?C.separator&&m&&(C.separator.destroy(),delete C.separator):(r+=l*M,C.separator=P.renderSeparator(r,o),b&&e(C.separator,r,o),r+=h(C.separator,M)),L[i.level].updated=!0):(a=P.renderButton(i,r,o),b&&e(a,r,o),r+=h(a,M),m||(s=P.renderSeparator(r,o),b&&e(s,r,o),r+=h(s,M)),L[i.level]={button:a,separator:s,updated:!0}),a&&a.setState(m?2:0)})},y.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},y}();return U.Breadcrumbs||(U.Breadcrumbs=v,G(W,"getMargins",function(){var y=this.breadcrumbs;if(y&&!y.options.floating&&y.level){var C=y.options,P=C.buttonTheme,L=(P.height||0)+2*(P.padding||0)+C.buttonSpacing,M=C.position.verticalAlign;M==="bottom"?(this.marginBottom=(this.marginBottom||0)+L,y.yOffset=L):M!=="middle"?(this.plotTop+=L,y.yOffset=-L):y.yOffset=void 0}}),G(W,"redraw",function(){this.breadcrumbs&&this.breadcrumbs.redraw()}),G(W,"destroy",function(){this.breadcrumbs&&(this.breadcrumbs.destroy(),this.breadcrumbs=void 0)}),G(W,"afterShowResetZoom",function(){var y=this;if(y.breadcrumbs){var C=y.resetZoomButton&&y.resetZoomButton.getBBox(),P=y.breadcrumbs.options;C&&P.position.align==="right"&&P.relativeTo==="plotBox"&&y.breadcrumbs.alignBreadcrumbsGroup(-C.width-P.buttonSpacing)}}),G(W,"selection",function(y){y.resetSelection===!0&&this.breadcrumbs&&this.breadcrumbs.alignBreadcrumbsGroup()})),v}),rt(N,"Extensions/Drilldown.js",[N["Core/Animation/AnimationUtilities.js"],N["Core/Axis/Axis.js"],N["Core/Chart/Chart.js"],N["Core/Color/Color.js"],N["Series/Column/ColumnSeries.js"],N["Core/Globals.js"],N["Core/Defaults.js"],N["Core/Series/Point.js"],N["Core/Series/Series.js"],N["Core/Series/SeriesRegistry.js"],N["Core/Renderer/SVG/SVGRenderer.js"],N["Core/Axis/Tick.js"],N["Core/Utilities.js"],N["Extensions/Breadcrumbs.js"]],function(W,R,U,Y,Z,q,$,G,D,E,x,T,u,p){var g=W.animObject,v=q.noop,y=$.defaultOptions,C=E.seriesTypes,P=u.addEvent,L=u.removeEvent,M=u.extend,f=u.fireEvent,b=u.merge,l=u.objectEach,h=u.pick,e=u.syncTimeout,r=C.pie,o=1;M(y.lang,{}),y.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}}},x.prototype.Element.prototype.fadeIn=function(m){this.attr({opacity:.1,visibility:"inherit"}).animate({opacity:h(this.newOpacity,1)},m||{duration:250})},U.prototype.addSeriesAsDrilldown=function(m,A){this.addSingleSeriesAsDrilldown(m,A),this.applyDrilldown()},U.prototype.addSingleSeriesAsDrilldown=function(m,A){var O,d,w,k,z,F,j=m.series,I=j.xAxis,_=j.yAxis,V=[],X=[];F=this.styledMode?{colorIndex:h(m.colorIndex,j.colorIndex)}:{color:m.color||j.color},this.drilldownLevels||(this.drilldownLevels=[]),k=j.options._levelNumber||0,(z=this.drilldownLevels[this.drilldownLevels.length-1])&&z.levelNumber!==k&&(z=void 0),A=M(M({_ddSeriesId:o++},F),A),d=j.points.indexOf(m),j.chart.series.forEach(function(H){H.xAxis!==I||H.isDrilling||(H.options._ddSeriesId=H.options._ddSeriesId||o++,H.options._colorIndex=H.userOptions._colorIndex,H.options._levelNumber=H.options._levelNumber||k,z?(V=z.levelSeries,X=z.levelSeriesOptions):(V.push(H),H.purgedOptions=b({_ddSeriesId:H.options._ddSeriesId,_levelNumber:H.options._levelNumber,selected:H.options.selected},H.userOptions),X.push(H.purgedOptions)))}),w=M({levelNumber:k,seriesOptions:j.options,seriesPurgedOptions:j.purgedOptions,levelSeriesOptions:X,levelSeries:V,shapeArgs:m.shapeArgs,bBox:m.graphic?m.graphic.getBBox():{},color:m.isNull?Y.parse(F.color).setOpacity(0).get():F.color,lowerSeriesOptions:A,pointOptions:j.options.data[d],pointIndex:d,oldExtremes:{xMin:I&&I.userMin,xMax:I&&I.userMax,yMin:_&&_.userMin,yMax:_&&_.userMax},resetZoomButton:z&&z.levelNumber===k?void 0:this.resetZoomButton},F),this.drilldownLevels.push(w),I&&I.names&&(I.names.length=0),(O=w.lowerSeries=this.addSeries(A,!1)).options._levelNumber=k+1,I&&(I.oldPos=I.pos,I.userMin=I.userMax=null,_.userMin=_.userMax=null),j.type===O.type&&(O.animate=O.animateDrilldown||v,O.options.animation=!0)},U.prototype.applyDrilldown=function(){var m,A=this.drilldownLevels;A&&A.length>0&&(m=A[A.length-1].levelNumber,this.drilldownLevels.forEach(function(O){O.levelNumber===m&&O.levelSeries.forEach(function(d){d.options&&d.options._levelNumber===m&&d.remove(!1)})})),this.resetZoomButton&&(this.resetZoomButton.hide(),delete this.resetZoomButton),this.pointer.reset(),f(this,"afterDrilldown"),this.redraw(),f(this,"afterApplyDrilldown")};var i=function(m){var A=[],O=m.drilldownLevels;return O&&O.length&&(A[0]||A.push({level:0,levelOptions:O[0].seriesOptions}),O.forEach(function(d,w){var k=A[A.length-1];d.levelNumber+1>k.level&&A.push({level:d.levelNumber+1,levelOptions:b({name:d.lowerSeries.name},d.pointOptions)})})),A};function c(m){var A=g(this.chart.options.drilldown.animation);m&&(m.hide(),e(function(){m&&m.added&&m.fadeIn()},Math.max(A.duration-50,0)))}U.prototype.drillUp=function(){if(this.drilldownLevels&&this.drilldownLevels.length!==0){f(this,"beforeDrillUp");for(var m,A,O,d,w,k=this,z=k.drilldownLevels,F=z[z.length-1].levelNumber,j=z.length,I=k.series,_=function(X){var H;I.forEach(function(Q){Q.options._ddSeriesId===X._ddSeriesId&&(H=Q)}),(H=H||k.addSeries(X,!1)).type===O.type&&H.animateDrillupTo&&(H.animate=H.animateDrillupTo),X===A.seriesPurgedOptions&&(d=H)},V=k.drilldownLevels.length;j--;)if((A=z[j]).levelNumber===F){if(z.pop(),!(O=A.lowerSeries).chart){for(m=I.length;m--;)if(I[m].options.id===A.lowerSeriesOptions.id&&I[m].options._levelNumber===F+1){O=I[m];break}}O.xData=[],O.xAxis&&O.xAxis.names&&(V===0||j===V)&&(O.xAxis.names.length=0),A.levelSeriesOptions.forEach(_),f(k,"drillup",{seriesOptions:A.seriesPurgedOptions||A.seriesOptions}),d.type===O.type&&(d.drilldownLevel=A,d.options.animation=k.options.drilldown.animation,O.animateDrillupFrom&&O.chart&&O.animateDrillupFrom(A)),d.options._levelNumber=F,O.remove(!1),d.xAxis&&(w=A.oldExtremes,d.xAxis.setExtremes(w.xMin,w.xMax,!1),d.yAxis.setExtremes(w.yMin,w.yMax,!1)),A.resetZoomButton&&(k.resetZoomButton=A.resetZoomButton)}f(k,"afterDrillUp"),this.redraw(),this.ddDupes&&(this.ddDupes.length=0),f(k,"drillupall")}},P(U,"afterInit",function(){var m=this;m.drilldown={chart:m,fadeInGroup:c,update:function(A,O){b(!0,m.options.drilldown,A),h(O,!0)&&m.redraw()}}}),P(U,"render",function(){(this.xAxis||[]).forEach(function(m){m.ddPoints={},m.series.forEach(function(A){var O,d,w=A.xData||[],k=A.points;for(O=0;O<w.length;O++)if(typeof(d=A.options.data[O])!="number"&&(d=A.pointClass.prototype.optionsToObject.call({series:A},d)).drilldown){m.ddPoints[w[O]]||(m.ddPoints[w[O]]=[]);var z=O-(A.cropStart||0);m.ddPoints[w[O]].push(!(k&&z>=0&&z<k.length)||k[z])}}),l(m.ticks,T.prototype.drillable)})}),P(q.Breadcrumbs,"up",function(m){for(var A=this.chart,O=this.getLevel()-m.newLevel,d=0;d<O;d++)A.drillUp()}),P(U,"afterDrilldown",function(){var m=this,A=m.options.drilldown,O=A&&A.breadcrumbs;m.breadcrumbs||(m.breadcrumbs=new p(m,O)),m.breadcrumbs.updateProperties(i(m))}),P(U,"afterDrillUp",function(){var m=this;m.breadcrumbs&&m.breadcrumbs.updateProperties(i(m))}),P(U,"update",function(m){var A=this.breadcrumbs,O=m.options.drilldown&&m.options.drilldown.breadcrumbs;A&&O&&A.update(m.options.drilldown.breadcrumbs)}),Z.prototype.animateDrillupTo=function(m){if(!m){var A=this,O=A.drilldownLevel;this.points.forEach(function(d){var w=d.dataLabel;d.graphic&&d.graphic.hide(),w&&(w.hidden=w.attr("visibility")==="hidden",w.hidden||(w.hide(),d.connector&&d.connector.hide()))}),e(function(){if(A.points){var d=[];A.data.forEach(function(w){d.push(w)}),A.nodes&&(d=d.concat(A.nodes)),d.forEach(function(w,k){var z=k===(O&&O.pointIndex)?"show":"fadeIn",F=z==="show"||void 0,j=w.dataLabel;w.graphic&&w.graphic[z](F),j&&!j.hidden&&(j.fadeIn(),w.connector&&w.connector.fadeIn())})}},Math.max(this.chart.options.drilldown.animation.duration-50,0)),delete this.animate}},Z.prototype.animateDrilldown=function(m){var A,O=this,d=this.chart,w=d.drilldownLevels,k=g(d.options.drilldown.animation),z=this.xAxis,F=d.styledMode;m||(w.forEach(function(j){O.options._ddSeriesId===j.lowerSeriesOptions._ddSeriesId&&(A=j.shapeArgs,F||(A.fill=j.color))}),A.x+=h(z.oldPos,z.pos)-z.pos,this.points.forEach(function(j){var I=j.shapeArgs;F||(I.fill=j.color),j.graphic&&j.graphic.attr(A).animate(M(j.shapeArgs,{fill:j.color||O.color}),k)}),d.drilldown&&d.drilldown.fadeInGroup(this.dataLabelsGroup),delete this.animate)},Z.prototype.animateDrillupFrom=function(m){var A=g(this.chart.options.drilldown.animation),O=this.group,d=O!==this.chart.columnGroup,w=this;w.trackerGroups.forEach(function(k){w[k]&&w[k].on("mouseover")}),d&&delete this.group,this.points.forEach(function(k){var z=k.graphic,F=m.shapeArgs,j=function(){z.destroy(),O&&d&&(O=O.destroy())};z&&F&&(delete k.graphic,w.chart.styledMode||(F.fill=m.color),A.duration?z.animate(F,b(A,{complete:j})):(z.attr(F),j()))})},r&&M(r.prototype,{animateDrillupTo:Z.prototype.animateDrillupTo,animateDrillupFrom:Z.prototype.animateDrillupFrom,animateDrilldown:function(m){var A=this.chart.drilldownLevels[this.chart.drilldownLevels.length-1],O=this.chart.options.drilldown.animation;if(this.is("item")&&(O.duration=0),this.center){var d=A.shapeArgs,w=d.start,k=(d.end-w)/this.points.length,z=this.chart.styledMode;m||(this.points.forEach(function(F,j){var I=F.shapeArgs;z||(d.fill=A.color,I.fill=F.color),F.graphic&&F.graphic.attr(b(d,{start:w+j*k,end:w+(j+1)*k}))[O?"animate":"attr"](I,O)}),this.chart.drilldown&&this.chart.drilldown.fadeInGroup(this.dataLabelsGroup),delete this.animate)}}}),G.prototype.doDrilldown=function(){this.runDrilldown()},G.prototype.runDrilldown=function(m,A,O){var d,w=this.series.chart,k=w.options.drilldown,z=(k.series||[]).length;for(w.ddDupes||(w.ddDupes=[]);z--&&!d;)k.series[z].id===this.drilldown&&w.ddDupes.indexOf(this.drilldown)===-1&&(d=k.series[z],w.ddDupes.push(this.drilldown));f(w,"drilldown",{point:this,seriesOptions:d,category:A,originalEvent:O,points:A!==void 0&&this.series.xAxis.getDDPoints(A).slice(0)},function(F){var j=F.point.series&&F.point.series.chart,I=F.seriesOptions;j&&I&&(m?j.addSingleSeriesAsDrilldown(F.point,I):j.addSeriesAsDrilldown(F.point,I))})},R.prototype.drilldownCategory=function(m,A){this.getDDPoints(m).forEach(function(O){O&&O.series&&O.series.visible&&O.runDrilldown&&O.runDrilldown(!0,m,A)}),this.chart.applyDrilldown()},R.prototype.getDDPoints=function(m){return this.ddPoints&&this.ddPoints[m]||[]},T.prototype.drillable=function(){var m=this.pos,A=this.label,O=this.axis,d=O.coll==="xAxis"&&O.getDDPoints,w=d&&O.getDDPoints(m),k=O.chart.styledMode;d&&(A&&w&&w.length?(A.drillable=!0,A.basicStyles||k||(A.basicStyles=b(A.styles)),A.addClass("highcharts-drilldown-axis-label"),A.removeOnDrillableClick&&L(A.element,"click"),A.removeOnDrillableClick=P(A.element,"click",function(z){z.preventDefault(),O.drilldownCategory(m,z)}),k||A.css(O.chart.options.drilldown.activeAxisLabelStyle)):A&&A.drillable&&A.removeOnDrillableClick&&(k||(A.styles={},A.element.removeAttribute("style"),A.css(A.basicStyles)),A.removeOnDrillableClick(),A.removeClass("highcharts-drilldown-axis-label")))},P(G,"afterInit",function(){var m=this;return m.drilldown&&!m.unbindDrilldownClick&&(m.unbindDrilldownClick=P(m,"click",a)),m}),P(G,"update",function(m){var A=this,O=m.options||{};O.drilldown&&!A.unbindDrilldownClick?A.unbindDrilldownClick=P(A,"click",a):!O.drilldown&&O.drilldown!==void 0&&A.unbindDrilldownClick&&(A.unbindDrilldownClick=A.unbindDrilldownClick())});var a=function(m){var A=this,O=A.series;O.xAxis&&O.chart.options.drilldown.allowPointDrilldown===!1?O.xAxis.drilldownCategory(A.x,m):A.runDrilldown(void 0,void 0,m)};P(D,"afterDrawDataLabels",function(){var m=this.chart.options.drilldown.activeDataLabelStyle,A=this.chart.renderer,O=this.chart.styledMode;this.points.forEach(function(d){var w=d.options.dataLabels,k=h(d.dlOptions,w&&w.style,{});d.drilldown&&d.dataLabel&&(m.color!=="contrast"||O||(k.color=A.getContrast(d.color||this.color)),w&&w.color&&(k.color=w.color),d.dataLabel.addClass("highcharts-drilldown-data-label"),O||d.dataLabel.css(m).css(k))},this)});var s=function(m,A,O,d){m[O?"addClass":"removeClass"]("highcharts-drilldown-point"),d||m.css({cursor:A})};P(D,"afterDrawTracker",function(){var m=this.chart.styledMode;this.points.forEach(function(A){A.drilldown&&A.graphic&&s(A.graphic,"pointer",!0,m)})}),P(G,"afterSetState",function(){var m=this.series.chart.styledMode;this.drilldown&&this.series.halo&&this.state==="hover"?s(this.series.halo,"pointer",!0,m):this.series.halo&&s(this.series.halo,"auto",!1,m)}),P(U,"drillup",function(){this.resetZoomButton&&(this.resetZoomButton=this.resetZoomButton.destroy())}),P(U,"drillupall",function(){this.resetZoomButton&&this.showResetZoom()})}),rt(N,"masters/modules/drilldown.src.js",[],function(){})},J.exports?(pt.default=pt,J.exports=pt):(at=[nt(8840)],(lt=function(ft){return pt(ft),pt.Highcharts=ft,pt}.apply(it,at))===void 0||(J.exports=lt))},8693:(J,it,nt)=>{var at,lt,pt;pt=function(ft){var N=ft?ft._modules:{};function rt(W,R,U,Y){W.hasOwnProperty(R)||(W[R]=Y.apply(null,U),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:R,module:W[R]}})))}rt(N,"Series/Funnel/FunnelSeries.js",[N["Core/Chart/Chart.js"],N["Core/Globals.js"],N["Core/Series/SeriesRegistry.js"],N["Core/Utilities.js"]],function(W,R,U,Y){var Z,q=this&&this.__extends||(Z=function(y,C){return Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(P,L){P.__proto__=L}||function(P,L){for(var M in L)L.hasOwnProperty(M)&&(P[M]=L[M])},Z(y,C)},function(y,C){function P(){this.constructor=y}Z(y,C),y.prototype=C===null?Object.create(C):(P.prototype=C.prototype,new P)}),$=R.noop,G=U.series,D=U.seriesTypes.pie,E=Y.addEvent,x=Y.extend,T=Y.fireEvent,u=Y.isArray,p=Y.merge,g=Y.pick,v=function(y){function C(){var P=y!==null&&y.apply(this,arguments)||this;return P.data=void 0,P.options=void 0,P.points=void 0,P}return q(C,y),C.prototype.alignDataLabel=function(P,L,M,f,b){var l=P.series,h=l.options.reversed,e=P.dlBox||P.shapeArgs,r=M.align,o=M.verticalAlign,i=((l.options||{}).dataLabels||{}).inside,c=l.center[1],a=h?2*c-P.plotY:P.plotY,s=l.getWidthAt(a-e.height/2+L.height),m=o==="middle"?(e.topWidth-e.bottomWidth)/4:(s-e.bottomWidth)/2,A=e.y,O=e.x,d=g(L.height,L.getBBox().height);o==="middle"?A=e.y-e.height/2+d/2:o==="top"&&(A=e.y-e.height+d+M.padding),(o==="top"&&!h||o==="bottom"&&h||o==="middle")&&(r==="right"?O=e.x-M.padding+m:r==="left"&&(O=e.x+M.padding-m)),f={x:O,y:h?A-e.height:A,width:e.bottomWidth,height:e.height},M.verticalAlign="bottom",i&&!P.visible||G.prototype.alignDataLabel.call(this,P,L,M,f,b),i&&(!P.visible&&P.dataLabel&&(P.dataLabel.placed=!1),P.contrastColor&&L.css({color:P.contrastColor}))},C.prototype.drawDataLabels=function(){var P,L,M,f,b,l=this,h=l.data,e=l.options.dataLabels.distance,r=h.length;for(l.center[2]-=2*e;r--;)L=(P=(M=h[r]).half)?1:-1,b=M.plotY,M.labelDistance=g(M.options.dataLabels&&M.options.dataLabels.distance,e),l.maxLabelDistance=Math.max(M.labelDistance,l.maxLabelDistance||0),f=l.getX(b,P,M),M.labelPosition={natural:{x:0,y:b},final:{},alignment:P?"right":"left",connectorPosition:{breakAt:{x:f+(M.labelDistance-5)*L,y:b},touchingSliceAt:{x:f+M.labelDistance*L,y:b}}};U.seriesTypes[l.options.dataLabels.inside?"column":"pie"].prototype.drawDataLabels.call(this)},C.prototype.translate=function(){var P,L,M,f,b,l,h,e,r,o,i=0,c=this,a=c.chart,s=c.options,m=s.reversed,A=s.ignoreHiddenPoint,O=a.plotWidth,d=a.plotHeight,w=0,k=s.center,z=et(k[0],O),F=et(k[1],d),j=et(s.width,O),I=et(s.height,d),_=et(s.neckWidth,O),V=et(s.neckHeight,d),X=F-I/2+I-V,H=c.data,Q=s.dataLabels.position==="left"?1:0;function et(tt,st){return/%$/.test(tt)?st*parseInt(tt,10)/100:parseInt(tt,10)}c.getWidthAt=function(tt){return tt>X||I===V?_:_+(j-_)*(1-(tt-(F-I/2))/(I-V))},c.getX=function(tt,st,ct){return z+(st?-1:1)*(c.getWidthAt(m?2*F-tt:tt)/2+ct.labelDistance)},c.center=[z,F,I],c.centerX=z,H.forEach(function(tt){A&&tt.visible===!1||(i+=tt.y)}),H.forEach(function(tt){o=null,M=i?tt.y/i:0,e=(b=F-I/2+w*I)+M*I,P=c.getWidthAt(b),l=(f=z-P/2)+P,P=c.getWidthAt(e),r=(h=z-P/2)+P,b>X?(f=h=z-_/2,l=r=z+_/2):e>X&&(o=e,P=c.getWidthAt(X),r=(h=z-P/2)+P,e=X),m&&(b=2*F-b,e=2*F-e,o!==null&&(o=2*F-o)),L=[["M",f,b],["L",l,b],["L",r,e]],o!==null&&L.push(["L",r,o],["L",h,o]),L.push(["L",h,e],["Z"]),tt.shapeType="path",tt.shapeArgs={d:L},tt.percentage=100*M,tt.plotX=z,tt.plotY=(b+(o||e))/2,tt.tooltipPos=[z,tt.plotY],tt.dlBox={x:h,y:b,topWidth:l-f,bottomWidth:r-h,height:Math.abs(g(o,e)-b),width:NaN},tt.slice=$,tt.half=Q,A&&tt.visible===!1||(w+=M)}),T(c,"afterTranslate")},C.prototype.sortByAngle=function(P){P.sort(function(L,M){return L.plotY-M.plotY})},C.defaultOptions=p(D.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"}}}),C}(D);return x(v.prototype,{animate:$}),E(W,"afterHideAllOverlappingLabels",function(){this.series.forEach(function(y){var C=y.options&&y.options.dataLabels;u(C)&&(C=C[0]),y.is("pie")&&y.placeDataLabels&&C&&!C.inside&&y.placeDataLabels()})}),U.registerSeriesType("funnel",v),v}),rt(N,"Series/Pyramid/PyramidSeries.js",[N["Series/Funnel/FunnelSeries.js"],N["Core/Series/SeriesRegistry.js"],N["Core/Utilities.js"]],function(W,R,U){var Y,Z=this&&this.__extends||(Y=function(G,D){return Y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,x){E.__proto__=x}||function(E,x){for(var T in x)x.hasOwnProperty(T)&&(E[T]=x[T])},Y(G,D)},function(G,D){function E(){this.constructor=G}Y(G,D),G.prototype=D===null?Object.create(D):(E.prototype=D.prototype,new E)}),q=U.merge,$=function(G){function D(){var E=G!==null&&G.apply(this,arguments)||this;return E.data=void 0,E.options=void 0,E.points=void 0,E}return Z(D,G),D.defaultOptions=q(W.defaultOptions,{neckWidth:"0%",neckHeight:"0%",reversed:!0}),D}(W);return R.registerSeriesType("pyramid",$),$}),rt(N,"masters/modules/funnel.src.js",[],function(){})},J.exports?(pt.default=pt,J.exports=pt):(at=[nt(8840)],(lt=function(ft){return pt(ft),pt.Highcharts=ft,pt}.apply(it,at))===void 0||(J.exports=lt))},7922:(J,it,nt)=>{var at,lt,pt;pt=function(ft){var N=ft?ft._modules:{};function rt(W,R,U,Y){W.hasOwnProperty(R)||(W[R]=Y.apply(null,U),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:R,module:W[R]}})))}rt(N,"Core/Axis/Color/ColorAxisComposition.js",[N["Core/Color/Color.js"],N["Core/Utilities.js"]],function(W,R){var U,Y=W.parse,Z=R.addEvent,q=R.extend,$=R.merge,G=R.pick,D=R.splat;return function(E){var x,T=[];function u(){var b=this,l=this.options;this.colorAxis=[],l.colorAxis&&(l.colorAxis=D(l.colorAxis),l.colorAxis.forEach(function(h,e){h.index=e,new x(b,h)}))}function p(b){var l,h,e=this,r=this.chart.colorAxis||[],o=function(c){var a=b.allItems.indexOf(c);a!==-1&&(e.destroyItem(b.allItems[a]),b.allItems.splice(a,1))},i=[];for(r.forEach(function(c){(l=c.options)&&l.showInLegend&&(l.dataClasses&&l.visible?i=i.concat(c.getDataClassLegendSymbols()):l.visible&&i.push(c),c.series.forEach(function(a){a.options.showInLegend&&!l.dataClasses||(a.options.legendType==="point"?a.points.forEach(function(s){o(s)}):o(a))}))}),h=i.length;h--;)b.allItems.unshift(i[h])}function g(b){b.visible&&b.item.legendColor&&b.item.legendItem.symbol.attr({fill:b.item.legendColor})}function v(){var b=this.chart.colorAxis;b&&b.forEach(function(l){l.update({},arguments[2])})}function y(){(this.chart.colorAxis&&this.chart.colorAxis.length||this.colorAttribs)&&this.translateColors()}function C(){var b=this.axisTypes;b?b.indexOf("colorAxis")===-1&&b.push("colorAxis"):this.axisTypes=["colorAxis"]}function P(b){var l=this,h=b?"show":"hide";l.visible=l.options.visible=!!b,["graphic","dataLabel"].forEach(function(e){l[e]&&l[e][h]()}),this.series.buildKDTree()}function L(){var b=this,l=this.data.length?this.data:this.points,h=this.options.nullColor,e=this.colorAxis,r=this.colorKey;l.forEach(function(o){var i=o.getNestedProperty(r),c=o.options.color||(o.isNull||o.value===null?h:e&&i!==void 0?e.toColor(i,o):o.color||b.color);c&&o.color!==c&&(o.color=c,b.options.legendType==="point"&&o.legendItem&&o.legendItem.label&&b.chart.legend.colorizeItem(o,o.visible))})}function M(){this.elem.attr("fill",Y(this.start).tweenTo(Y(this.end),this.pos),void 0,!0)}function f(){this.elem.attr("stroke",Y(this.start).tweenTo(Y(this.end),this.pos),void 0,!0)}E.compose=function(b,l,h,e,r){if(x||(x=b),T.indexOf(l)===-1){T.push(l);var o=l.prototype;o.collectionsWithUpdate.push("colorAxis"),o.collectionsWithInit.colorAxis=[o.addColorAxis],Z(l,"afterGetAxes",u),function(c){var a=c.prototype.createAxis;c.prototype.createAxis=function(s,m){if(s!=="colorAxis")return a.apply(this,arguments);var A=new x(this,$(m.axis,{index:this[s].length,isX:!1}));return this.isDirtyLegend=!0,this.axes.forEach(function(O){O.series=[]}),this.series.forEach(function(O){O.bindAxes(),O.isDirtyData=!0}),G(m.redraw,!0)&&this.redraw(m.animation),A}}(l)}if(T.indexOf(h)===-1){T.push(h);var i=h.prototype;i.fillSetter=M,i.strokeSetter=f}T.indexOf(e)===-1&&(T.push(e),Z(e,"afterGetAllItems",p),Z(e,"afterColorizeItem",g),Z(e,"afterUpdate",v)),T.indexOf(r)===-1&&(T.push(r),q(r.prototype,{optionalAxis:"colorAxis",translateColors:L}),q(r.prototype.pointClass.prototype,{setVisible:P}),Z(r,"afterTranslate",y,{order:1}),Z(r,"bindAxes",C))},E.pointSetVisible=P}(U||(U={})),U}),rt(N,"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}}),rt(N,"Core/Axis/Color/ColorAxis.js",[N["Core/Axis/Axis.js"],N["Core/Color/Color.js"],N["Core/Axis/Color/ColorAxisComposition.js"],N["Core/Axis/Color/ColorAxisDefaults.js"],N["Core/Globals.js"],N["Core/Legend/LegendSymbol.js"],N["Core/Series/SeriesRegistry.js"],N["Core/Utilities.js"]],function(W,R,U,Y,Z,q,$,G){var D,E=this&&this.__extends||(D=function(C,P){return D=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(L,M){L.__proto__=M}||function(L,M){for(var f in M)M.hasOwnProperty(f)&&(L[f]=M[f])},D(C,P)},function(C,P){function L(){this.constructor=C}D(C,P),C.prototype=P===null?Object.create(P):(L.prototype=P.prototype,new L)}),x=R.parse,T=$.series,u=G.extend,p=G.isNumber,g=G.merge,v=G.pick,y=function(C){function P(L,M){var f=C.call(this,L,M)||this;return f.beforePadding=!1,f.chart=void 0,f.coll="colorAxis",f.dataClasses=void 0,f.name="",f.options=void 0,f.stops=void 0,f.visible=!0,f.init(L,M),f}return E(P,C),P.compose=function(L,M,f,b){U.compose(P,L,M,f,b)},P.prototype.init=function(L,M){var f=this,b=L.options.legend||{},l=M.layout?M.layout!=="vertical":b.layout!=="vertical",h=M.visible,e=g(P.defaultColorAxisOptions,M,{showEmpty:!1,title:null,visible:b.enabled&&h!==!1});f.coll="colorAxis",f.side=M.side||l?2:1,f.reversed=M.reversed||!l,f.opposite=!l,C.prototype.init.call(this,L,e),f.userOptions.visible=h,M.dataClasses&&f.initDataClasses(M),f.initStops(),f.horiz=l,f.zoomEnabled=!1},P.prototype.initDataClasses=function(L){var M,f=this,b=f.chart,l=f.legendItem=f.legendItem||{},h=L.dataClasses.length,e=f.options,r=0,o=b.options.chart.colorCount;f.dataClasses=M=[],l.labels=[],(L.dataClasses||[]).forEach(function(i,c){var a;i=g(i),M.push(i),!b.styledMode&&i.color||(e.dataClassColor==="category"?(b.styledMode||(a=b.options.colors,o=a.length,i.color=a[r]),i.colorIndex=r,++r===o&&(r=0)):i.color=x(e.minColor).tweenTo(x(e.maxColor),h<2?.5:c/(h-1)))})},P.prototype.hasData=function(){return!!(this.tickPositions||[]).length},P.prototype.setTickPositions=function(){if(!this.dataClasses)return C.prototype.setTickPositions.call(this)},P.prototype.initStops=function(){var L=this;L.stops=L.options.stops||[[0,L.options.minColor],[1,L.options.maxColor]],L.stops.forEach(function(M){M.color=x(M[1])})},P.prototype.setOptions=function(L){C.prototype.setOptions.call(this,L),this.options.crosshair=this.options.marker},P.prototype.setAxisSize=function(){var L,M,f,b,l=this,h=l.legendItem&&l.legendItem.symbol,e=l.chart,r=e.options.legend||{};h?(this.left=L=h.attr("x"),this.top=M=h.attr("y"),this.width=f=h.attr("width"),this.height=b=h.attr("height"),this.right=e.chartWidth-L-f,this.bottom=e.chartHeight-M-b,this.len=this.horiz?f:b,this.pos=this.horiz?L:M):this.len=(this.horiz?r.symbolWidth:r.symbolHeight)||P.defaultLegendLength},P.prototype.normalizedValue=function(L){var M=this;return M.logarithmic&&(L=M.logarithmic.log2lin(L)),1-(M.max-L)/(M.max-M.min||1)},P.prototype.toColor=function(L,M){var f,b,l,h,e,r,o=this,i=o.dataClasses,c=o.stops;if(i){for(r=i.length;r--;)if(b=(e=i[r]).from,l=e.to,(b===void 0||L>=b)&&(l===void 0||L<=l)){h=e.color,M&&(M.dataClass=r,M.colorIndex=e.colorIndex);break}}else{for(f=o.normalizedValue(L),r=c.length;r--&&!(f>c[r][0]););b=c[r]||c[r+1],f=1-((l=c[r+1]||b)[0]-f)/(l[0]-b[0]||1),h=b.color.tweenTo(l.color,f)}return h},P.prototype.getOffset=function(){var L=this,M=L.legendItem&&L.legendItem.group,f=L.chart.axisOffset[L.side];if(M){L.axisParent=M,C.prototype.getOffset.call(this);var b=this.chart.legend;b.allItems.forEach(function(l){l instanceof P&&l.drawLegendSymbol(b,l)}),b.render(),this.chart.getMargins(!0),L.added||(L.added=!0,L.labelLeft=0,L.labelRight=L.width),L.chart.axisOffset[L.side]=f}},P.prototype.setLegendColor=function(){var L=this,M=L.horiz,f=L.reversed,b=f?1:0,l=f?0:1,h=M?[b,0,l,0]:[0,l,0,b];L.legendColor={linearGradient:{x1:h[0],y1:h[1],x2:h[2],y2:h[3]},stops:L.stops}},P.prototype.drawLegendSymbol=function(L,M){var f=M.legendItem||{},b=L.padding,l=L.options,h=v(l.itemDistance,10),e=this.horiz,r=v(l.symbolWidth,e?P.defaultLegendLength:12),o=v(l.symbolHeight,e?12:P.defaultLegendLength),i=v(l.labelPadding,e?16:30);this.setLegendColor(),f.symbol||(f.symbol=this.chart.renderer.rect(0,L.baseline-11,r,o).attr({zIndex:1}).add(f.group)),f.labelWidth=r+b+(e?h:this.options.labels.x+this.maxLabelLength),f.labelHeight=o+b+(e?i:0)},P.prototype.setState=function(L){this.series.forEach(function(M){M.setState(L)})},P.prototype.setVisible=function(){},P.prototype.getSeriesExtremes=function(){var L,M,f,b,l,h,e,r,o=this.series,i=o.length;for(this.dataMin=1/0,this.dataMax=-1/0;i--;){if(M=(h=o[i]).colorKey=v(h.options.colorKey,h.colorKey,h.pointValKey,h.zoneAxis,"y"),b=h.pointArrayMap,l=h[M+"Min"]&&h[M+"Max"],h[M+"Data"])L=h[M+"Data"];else if(b){if(L=[],f=b.indexOf(M),e=h.yData,f>=0&&e)for(r=0;r<e.length;r++)L.push(v(e[r][f],e[r]))}else L=h.yData;if(l)h.minColorValue=h[M+"Min"],h.maxColorValue=h[M+"Max"];else{var c=T.prototype.getExtremes.call(h,L);h.minColorValue=c.dataMin,h.maxColorValue=c.dataMax}h.minColorValue!==void 0&&(this.dataMin=Math.min(this.dataMin,h.minColorValue),this.dataMax=Math.max(this.dataMax,h.maxColorValue)),l||T.prototype.applyExtremes.call(h)}},P.prototype.drawCrosshair=function(L,M){var f,b=this,l=b.legendItem||{},h=M&&M.plotX,e=M&&M.plotY,r=b.pos,o=b.len;M&&((f=b.toPixels(M.getNestedProperty(M.series.colorKey)))<r?f=r-2:f>r+o&&(f=r+o+2),M.plotX=f,M.plotY=b.len-f,C.prototype.drawCrosshair.call(this,L,M),M.plotX=h,M.plotY=e,b.cross&&!b.cross.addedToColorAxis&&l.group&&(b.cross.addClass("highcharts-coloraxis-marker").add(l.group),b.cross.addedToColorAxis=!0,b.chart.styledMode||typeof b.crosshair!="object"||b.cross.attr({fill:b.crosshair.color})))},P.prototype.getPlotLinePath=function(L){var M=this,f=M.left,b=L.translatedValue,l=M.top;return p(b)?M.horiz?[["M",b-4,l-6],["L",b+4,l-6],["L",b,l],["Z"]]:[["M",f,b],["L",f-6,b+6],["L",f-6,b-6],["Z"]]:C.prototype.getPlotLinePath.call(this,L)},P.prototype.update=function(L,M){var f=this,b=f.chart.legend;this.series.forEach(function(l){l.isDirtyData=!0}),(L.dataClasses&&b.allItems||f.dataClasses)&&f.destroyItems(),C.prototype.update.call(this,L,M),f.legendItem&&f.legendItem.label&&(f.setLegendColor(),b.colorizeItem(this,!0))},P.prototype.destroyItems=function(){var L=this,M=L.chart,f=L.legendItem||{};if(f.label)M.legend.destroyItem(L);else if(f.labels)for(var b=0,l=f.labels;b<l.length;b++){var h=l[b];M.legend.destroyItem(h)}M.isDirtyLegend=!0},P.prototype.destroy=function(){this.chart.isDirtyLegend=!0,this.destroyItems(),C.prototype.destroy.apply(this,[].slice.call(arguments))},P.prototype.remove=function(L){this.destroyItems(),C.prototype.remove.call(this,L)},P.prototype.getDataClassLegendSymbols=function(){var L,M=this,f=M.chart,b=M.legendItem&&M.legendItem.labels||[],l=f.options.legend,h=v(l.valueDecimals,-1),e=v(l.valueSuffix,""),r=function(o){return M.series.reduce(function(i,c){return i.push.apply(i,c.points.filter(function(a){return a.dataClass===o})),i},[])};return b.length||M.dataClasses.forEach(function(o,i){var c=o.from,a=o.to,s=f.numberFormatter,m=!0;L="",c===void 0?L="< ":a===void 0&&(L="> "),c!==void 0&&(L+=s(c,h)+e),c!==void 0&&a!==void 0&&(L+=" - "),a!==void 0&&(L+=s(a,h)+e),b.push(u({chart:f,name:L,options:{},drawLegendSymbol:q.drawRectangle,visible:!0,isDataClass:!0,setState:function(A){for(var O=0,d=r(i);O<d.length;O++)d[O].setState(A)},setVisible:function(){this.visible=m=M.visible=!m;for(var A=0,O=r(i);A<O.length;A++)O[A].setVisible(m);f.legend.colorizeItem(this,m)}},o))}),b},P.defaultColorAxisOptions=Y,P.defaultLegendLength=200,P.keepProps=["legendItem"],P}(W);return Array.prototype.push.apply(W.keepProps,y.keepProps),y}),rt(N,"Maps/MapNavigationDefaults.js",[N["Core/Defaults.js"],N["Core/Utilities.js"]],function(W,R){var U={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,R.extend)(W.defaultOptions.lang,{zoomIn:"Zoom in",zoomOut:"Zoom out"}),W.defaultOptions.mapNavigation=U,U}),rt(N,"Maps/MapNavigation.js",[N["Core/Chart/Chart.js"],N["Core/Globals.js"],N["Core/Utilities.js"]],function(W,R,U){var Y=R.doc,Z=U.addEvent,q=U.extend,$=U.isNumber,G=U.merge,D=U.objectEach,E=U.pick;function x(u){u&&(u.preventDefault&&u.preventDefault(),u.stopPropagation&&u.stopPropagation(),u.cancelBubble=!0)}function T(u){this.navButtons=[],this.init(u)}T.prototype.init=function(u){this.chart=u},T.prototype.update=function(u){var p,g=this,v=this.chart,y=v.options.mapNavigation,C=function(L){this.handler.call(v,L),x(L)},P=g.navButtons;for(u&&(y=v.options.mapNavigation=G(v.options.mapNavigation,u));P.length;)P.pop().destroy();E(y.enableButtons,y.enabled)&&!v.renderer.forExport&&(g.navButtonsGroup||(g.navButtonsGroup=v.renderer.g().attr({zIndex:4}).add()),D(y.buttons,function(L,M){L=G(y.buttonOptions,L),!v.styledMode&&L.theme&&((p=L.theme).style=G(L.theme.style,L.style));var f=v.renderer.button(L.text||"",0,0,C,p,void 0,void 0,void 0,M==="zoomIn"?"topbutton":"bottombutton").addClass("highcharts-map-navigation highcharts-"+{zoomIn:"zoom-in",zoomOut:"zoom-out"}[M]).attr({width:L.width,height:L.height,title:v.options.lang[M],padding:L.padding,zIndex:5}).add(g.navButtonsGroup);if(f.handler=L.onclick,Z(f.element,"dblclick",x),P.push(f),q(L,{width:f.width,height:2*f.height}),v.hasLoaded)f.align(L,!1,L.alignTo);else var b=Z(v,"load",function(){f.element&&f.align(L,!1,L.alignTo),b()})}),v.hasLoaded||Z(v,"render",function(){var L,M,f=v.exportingGroup&&v.exportingGroup.getBBox();if(f){var b=g.navButtonsGroup.getBBox();if(L=f,!((M=b).x>=L.x+L.width||M.x+M.width<=L.x||M.y>=L.y+L.height||M.y+M.height<=L.y)){var l=-b.y-b.height+f.y-5,h=f.y+f.height-b.y+5,e=y.buttonOptions&&y.buttonOptions.verticalAlign;g.navButtonsGroup.attr({translateY:e==="bottom"?l:h})}}})),this.updateEvents(y)},T.prototype.updateEvents=function(u){var p=this.chart;E(u.enableDoubleClickZoom,u.enabled)||u.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||Z(p.container,"dblclick",function(g){p.pointer.onContainerDblClick(g)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick()),E(u.enableMouseWheelZoom,u.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||Z(p.container,Y.onwheel!==void 0?"wheel":Y.onmousewheel!==void 0?"mousewheel":"DOMMouseScroll",function(g){return p.pointer.inClass(g.target,"highcharts-no-mousewheel")||(p.pointer.onContainerMouseWheel(g),x(g)),!1}):this.unbindMouseWheel&&(this.unbindMouseWheel=this.unbindMouseWheel())},q(W.prototype,{fitToBox:function(u,p){return[["x","width"],["y","height"]].forEach(function(g){var v=g[0],y=g[1];u[v]+u[y]>p[v]+p[y]&&(u[y]>p[y]?(u[y]=p[y],u[v]=p[v]):u[v]=p[v]+p[y]-u[y]),u[y]>p[y]&&(u[y]=p[y]),u[v]<p[v]&&(u[v]=p[v])}),u},mapZoom:function(u,p,g,v,y){this.mapView&&($(u)&&(u=Math.log(u)/Math.log(.5)),this.mapView.zoomBy(u,$(p)&&$(g)?this.mapView.projection.inverse([p,g]):void 0,$(v)&&$(y)?[v,y]:void 0))}}),Z(W,"beforeRender",function(){this.mapNavigation=new T(this),this.mapNavigation.update()}),R.MapNavigation=T}),rt(N,"Maps/MapPointer.js",[N["Core/Pointer.js"],N["Core/Utilities.js"]],function(W,R){var U,Y=R.defined,Z=R.extend,q=R.pick,$=R.wrap,G=W.prototype.normalize,D=0;Z(W.prototype,{normalize:function(E,x){var T=this.chart;if(E=G.call(this,E,x),T&&T.mapView){var u=T.mapView.pixelsToLonLat({x:E.chartX-T.plotLeft,y:E.chartY-T.plotTop});u&&Z(E,u)}return E},onContainerDblClick:function(E){var x=this.chart;E=this.normalize(E),x.options.mapNavigation.enableDoubleClickZoomTo?x.pointer.inClass(E.target,"highcharts-tracker")&&x.hoverPoint&&x.hoverPoint.zoomTo():x.isInsidePlot(E.chartX-x.plotLeft,E.chartY-x.plotTop)&&x.mapZoom(.5,void 0,void 0,E.chartX,E.chartY)},onContainerMouseWheel:function(E){var x=this.chart;E=this.normalize(E);var T=Y(E.wheelDelta)&&-E.wheelDelta/120||E.deltaY||E.detail;Math.abs(T)>=1&&(D+=Math.abs(T),U&&clearTimeout(U),U=setTimeout(function(){D=0},50)),D<10&&x.isInsidePlot(E.chartX-x.plotLeft,E.chartY-x.plotTop)&&x.mapView&&x.mapView.zoomBy((x.options.mapNavigation.mouseWheelSensitivity-1)*-T,void 0,[E.chartX,E.chartY],!(Math.abs(T)<1)&&void 0)}}),$(W.prototype,"zoomOption",function(E){var x=this.chart.options.mapNavigation;q(x.enableTouchZoom,x.enabled)&&(this.chart.options.chart.zooming.pinchType="xy"),E.apply(this,[].slice.call(arguments,1))}),$(W.prototype,"pinchTranslate",function(E,x,T,u,p,g,v){var y;E.call(this,x,T,u,p,g,v),this.chart.options.chart.type==="map"&&this.hasZoom&&(y=u.scaleX>u.scaleY,this.pinchTranslateDirection(!y,x,T,u,p,g,v,y?u.scaleX:u.scaleY))})}),rt(N,"Series/ColorMapComposition.js",[N["Core/Series/SeriesRegistry.js"],N["Core/Utilities.js"]],function(W,R){var U,Y=W.seriesTypes.column.prototype,Z=R.addEvent,q=R.defined;return function($){var G=[];function D(E){var x=this;x.moveToTopOnHover&&x.graphic&&x.graphic.attr({zIndex:E&&E.state==="hover"?1:0})}$.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))}},$.seriesMembers={colorKey:"value",axisTypes:["xAxis","yAxis","colorAxis"],parallelArrays:["x","y","value"],pointArrayMap:["value"],trackerGroups:["group","markerGroup","dataLabelsGroup"],colorAttribs:function(E){var x={};return!q(E.color)||E.state&&E.state!=="normal"||(x[this.colorProp||"fill"]=E.color),x},pointAttribs:Y.pointAttribs},$.compose=function(E){var x=E.prototype.pointClass;return G.indexOf(x)===-1&&(G.push(x),Z(x,"afterSetState",D)),E}}(U||(U={})),U}),rt(N,"Maps/MapSymbols.js",[N["Core/Renderer/SVG/SVGRenderer.js"]],function(W){var R=W.prototype.symbols;function U(Y,Z,q,$,G,D,E,x){return[["M",Y+G,Z],["L",Y+q-D,Z],["C",Y+q-D/2,Z,Y+q,Z+D/2,Y+q,Z+D],["L",Y+q,Z+$-E],["C",Y+q,Z+$-E/2,Y+q-E/2,Z+$,Y+q-E,Z+$],["L",Y+x,Z+$],["C",Y+x/2,Z+$,Y,Z+$-x/2,Y,Z+$-x],["L",Y,Z+G],["C",Y,Z+G/2,Y+G/2,Z,Y+G,Z],["Z"]]}return R.bottombutton=function(Y,Z,q,$,G){var D=G&&G.r||0;return U(Y-1,Z-1,q,$,0,0,D,D)},R.topbutton=function(Y,Z,q,$,G){var D=G&&G.r||0;return U(Y-1,Z-1,q,$,D,D,0,0)},R}),rt(N,"Core/Chart/MapChart.js",[N["Core/Chart/Chart.js"],N["Core/Defaults.js"],N["Core/Renderer/SVG/SVGRenderer.js"],N["Core/Utilities.js"]],function(W,R,U,Y){var Z,q=this&&this.__extends||(Z=function(x,T){return Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,p){u.__proto__=p}||function(u,p){for(var g in p)p.hasOwnProperty(g)&&(u[g]=p[g])},Z(x,T)},function(x,T){function u(){this.constructor=x}Z(x,T),x.prototype=T===null?Object.create(T):(u.prototype=T.prototype,new u)}),$=R.getOptions,G=Y.merge,D=Y.pick,E=function(x){function T(){return x!==null&&x.apply(this,arguments)||this}return q(T,x),T.prototype.init=function(u,p){var g=$().credits,v=G({chart:{panning:{enabled:!0,type:"xy"},type:"map"},credits:{mapText:D(g.mapText,' © <a href="{geojson.copyrightUrl}">{geojson.copyrightShort}</a>'),mapTextFull:D(g.mapTextFull,"{geojson.copyright}")},mapView:{},tooltip:{followTouchMove:!1}},u);x.prototype.init.call(this,v,p)},T}(W);return function(x){x.maps={},x.mapChart=function(T,u,p){return new x(T,u,p)},x.splitPath=function(T){var u;return u=typeof T=="string"?(T=T.replace(/([A-Za-z])/g," $1 ").replace(/^\s*/,"").replace(/\s*$/,"")).split(/[ ,;]+/).map(function(p){return/[A-za-z]/.test(p)?p:parseFloat(p)}):T,U.prototype.pathToSegments(u)}}(E||(E={})),E}),rt(N,"Maps/MapUtilities.js",[],function(){return{boundsFromPath:function(W){var R,U=-Number.MAX_VALUE,Y=Number.MAX_VALUE,Z=-Number.MAX_VALUE,q=Number.MAX_VALUE;if(W.forEach(function($){var G=$[$.length-2],D=$[$.length-1];typeof G=="number"&&typeof D=="number"&&(Y=Math.min(Y,G),U=Math.max(U,G),q=Math.min(q,D),Z=Math.max(Z,D),R=!0)}),R)return{x1:Y,y1:q,x2:U,y2:Z}},pointInPolygon:function(W,R){var U,Y,Z=!1,q=W.x,$=W.y;for(U=0,Y=R.length-1;U<R.length;Y=U++)R[U][1]>$!=R[Y][1]>$&&q<(R[Y][0]-R[U][0])*($-R[U][1])/(R[Y][1]-R[U][1])+R[U][0]&&(Z=!Z);return Z}}}),rt(N,"Series/Map/MapPoint.js",[N["Series/ColorMapComposition.js"],N["Maps/MapUtilities.js"],N["Core/Series/SeriesRegistry.js"],N["Core/Utilities.js"]],function(W,R,U,Y){var Z,q=this&&this.__extends||(Z=function(u,p){return Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,v){g.__proto__=v}||function(g,v){for(var y in v)v.hasOwnProperty(y)&&(g[y]=v[y])},Z(u,p)},function(u,p){function g(){this.constructor=u}Z(u,p),u.prototype=p===null?Object.create(p):(g.prototype=p.prototype,new g)}),$=R.boundsFromPath,G=U.seriesTypes.scatter,D=Y.extend,E=Y.isNumber,x=Y.pick,T=function(u){function p(){var g=u!==null&&u.apply(this,arguments)||this;return g.options=void 0,g.path=void 0,g.series=void 0,g}return q(p,u),p.getProjectedPath=function(g,v){return g.projectedPath||(v&&g.geometry?(v.hasCoordinates=!0,g.projectedPath=v.path(g.geometry)):g.projectedPath=g.path),g.projectedPath||[]},p.prototype.applyOptions=function(g,v){var y=this.series,C=u.prototype.applyOptions.call(this,g,v),P=y.joinBy;if(y.mapData&&y.mapMap){var L=P[1],M=u.prototype.getNestedProperty.call(C,L),f=M!==void 0&&y.mapMap[M];f?D(C,f):y.pointArrayMap.indexOf("value")!==-1&&(C.value=C.value||null)}return C},p.prototype.getProjectedBounds=function(g){var v=p.getProjectedPath(this,g),y=$(v),C=this.properties;if(y){var P=C&&C["hc-middle-x"],L=C&&C["hc-middle-y"];y.midX=y.x1+(y.x2-y.x1)*x(this.middleX,E(P)?P:.5);var M=x(this.middleY,E(L)?L:.5);return this.geometry||(M=1-M),y.midY=y.y2-(y.y2-y.y1)*M,y}},p.prototype.onMouseOver=function(g){Y.clearTimeout(this.colorInterval),!this.isNull&&this.visible||this.series.options.nullInteraction?u.prototype.onMouseOver.call(this,g):this.series.onMouseOut(g)},p.prototype.setVisible=function(g){var v=g?"show":"hide";this.visible=this.options.visible=!!g,this.dataLabel&&this.dataLabel[v](),this.graphic&&this.graphic.attr(this.series.pointAttribs(this))},p.prototype.zoomTo=function(){var g=this,v=g.series.chart,y=v.mapView,C=g.bounds;if(y&&C){var P=E(g.insetIndex)&&y.insets[g.insetIndex];if(P){var L=P.projectedUnitsToPixels({x:C.x1,y:C.y1}),M=P.projectedUnitsToPixels({x:C.x2,y:C.y2}),f=y.pixelsToProjectedUnits({x:L.x,y:L.y}),b=y.pixelsToProjectedUnits({x:M.x,y:M.y});C={x1:f.x,y1:f.y,x2:b.x,y2:b.y}}y.fitToBounds(C,void 0,!1),g.series.isDirty=!0,v.redraw()}},p}(G.prototype.pointClass);return D(T.prototype,{dataLabelOnNull:W.pointMembers.dataLabelOnNull,moveToTopOnHover:W.pointMembers.moveToTopOnHover,isValid:W.pointMembers.isValid}),T}),rt(N,"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}}),rt(N,"Maps/MapViewInsetsOptionsDefault.js",[],function(){return{borderColor:"#cccccc",borderWidth:1,center:[0,0],padding:"10%",relativeTo:"mapBoundingBox",units:"percent"}}),rt(N,"Extensions/GeoJSON.js",[N["Core/Chart/Chart.js"],N["Core/FormatUtilities.js"],N["Core/Globals.js"],N["Core/Utilities.js"]],function(W,R,U,Y){var Z=R.format,q=U.win,$=Y.error,G=Y.extend,D=Y.merge,E=Y.wrap;function x(u,p){p||(p=Object.keys(u.objects)[0]);var g=u.objects[p];if(g["hc-decoded-geojson"])return g["hc-decoded-geojson"];var v=u.arcs;if(u.transform){var y=u.transform,C=y.scale,P=y.translate;v=u.arcs.map(function(b){var l=0,h=0;return b.map(function(e){return(e=e.slice())[0]=(l+=e[0])*C[0]+P[0],e[1]=(h+=e[1])*C[1]+P[1],e})})}var L=function(b){return typeof b[0]=="number"?b.reduce(function(l,h,e){var r=h<0?v[~h]:v[h];return h<0?(r=r.slice(0,e===0?r.length:r.length-1)).reverse():e&&(r=r.slice(1)),l.concat(r)},[]):b.map(L)},M=g.geometries.map(function(b){return{type:"Feature",properties:b.properties,geometry:{type:b.type,coordinates:b.coordinates||L(b.arcs)}}}),f={type:"FeatureCollection",copyright:u.copyright,copyrightShort:u.copyrightShort,copyrightUrl:u.copyrightUrl,features:M,"hc-recommended-mapview":g["hc-recommended-mapview"],bbox:u.bbox,title:u.title};return g["hc-decoded-geojson"]=f,f}function T(u,p,g){p===void 0&&(p="map");var v=[],y=u.type==="Topology"?x(u):u;return y.features.forEach(function(C){var P,L=C.geometry||{},M=L.type,f=L.coordinates,b=C.properties;if((p!=="map"&&p!=="mapbubble"||M!=="Polygon"&&M!=="MultiPolygon")&&(p!=="mapline"||M!=="LineString"&&M!=="MultiLineString")?p==="mappoint"&&M==="Point"&&f.length&&(P={geometry:{coordinates:f,type:M}}):f.length&&(P={geometry:{coordinates:f,type:M}}),P){var l=b&&(b.name||b.NAME),h=b&&b.lon,e=b&&b.lat;v.push(G(P,{lat:typeof e=="number"?e:void 0,lon:typeof h=="number"?h:void 0,name:typeof l=="string"?l:void 0,properties:b}))}}),g&&y.copyrightShort&&(g.chart.mapCredits=Z(g.chart.options.credits.mapText,{geojson:y}),g.chart.mapCreditsFull=Z(g.chart.options.credits.mapTextFull,{geojson:y})),v}return W.prototype.transformFromLatLon=function(u,p){var g=this.options.chart.proj4||q.proj4;if(g){var v=p.jsonmarginX,y=v===void 0?0:v,C=p.jsonmarginY,P=C===void 0?0:C,L=p.jsonres,M=L===void 0?1:L,f=p.scale,b=f===void 0?1:f,l=p.xoffset,h=l===void 0?0:l,e=p.xpan,r=e===void 0?0:e,o=p.yoffset,i=o===void 0?0:o,c=p.ypan,a=c===void 0?0:c,s=g(p.crs,[u.lon,u.lat]),m=p.cosAngle||p.rotation&&Math.cos(p.rotation),A=p.sinAngle||p.rotation&&Math.sin(p.rotation),O=p.rotation?[s[0]*m+s[1]*A,-s[0]*A+s[1]*m]:s;return{x:((O[0]-h)*b+r)*M+y,y:-(((i-O[1])*b+a)*M-P)}}$(21,!1,this)},W.prototype.transformToLatLon=function(u,p){var g=this.options.chart.proj4||q.proj4;if(g){if(u.y!==null){var v=p.jsonmarginX,y=v===void 0?0:v,C=p.jsonmarginY,P=C===void 0?0:C,L=p.jsonres,M=L===void 0?1:L,f=p.scale,b=f===void 0?1:f,l=p.xoffset,h=l===void 0?0:l,e=p.xpan,r=e===void 0?0:e,o=p.yoffset,i=o===void 0?0:o,c=p.ypan,a=c===void 0?0:c,s={x:((u.x-y)/M-r)/b+h,y:((u.y-P)/M+a)/b+i},m=p.cosAngle||p.rotation&&Math.cos(p.rotation),A=p.sinAngle||p.rotation&&Math.sin(p.rotation),O=g(p.crs,"WGS84",p.rotation?{x:s.x*m+s.y*-A,y:s.x*A+s.y*m}:s);return{lat:O.y,lon:O.x}}}else $(21,!1,this)},W.prototype.fromPointToLatLon=function(u){return this.mapView&&this.mapView.projectedUnitsToLonLat(u)},W.prototype.fromLatLonToPoint=function(u){return this.mapView&&this.mapView.lonLatToProjectedUnits(u)},E(W.prototype,"addCredits",function(u,p){p=D(!0,this.options.credits,p),this.mapCredits&&(p.href=null),u.call(this,p),this.credits&&this.mapCreditsFull&&this.credits.attr({title:this.mapCreditsFull})}),U.geojson=T,U.topo2geo=x,{geojson:T,topo2geo:x}}),rt(N,"Core/Geometry/PolygonClip.js",[],function(){var W,R=function(Y,Z,q){return(Z[0]-Y[0])*(q[1]-Y[1])>(Z[1]-Y[1])*(q[0]-Y[0])},U=function(Y,Z,q,$){var G=[Y[0]-Z[0],Y[1]-Z[1]],D=[q[0]-$[0],q[1]-$[1]],E=Y[0]*Z[1]-Y[1]*Z[0],x=q[0]*$[1]-q[1]*$[0],T=1/(G[0]*D[1]-G[1]*D[0]),u=[(E*D[0]-x*G[0])*T,(E*D[1]-x*G[1])*T];return u.isIntersection=!0,u};return function(Y){Y.clipLineString=function(Z,q){for(var $=[],G=Y.clipPolygon(Z,q,!1),D=1;D<G.length;D++)G[D].isIntersection&&G[D-1].isIntersection&&($.push(G.splice(0,D)),D=0),D===G.length-1&&$.push(G);return $},Y.clipPolygon=function(Z,q,$){$===void 0&&($=!0);for(var G,D,E,x=q[q.length-1],T=Z,u=0;u<q.length;u++){var p=T;G=q[u],T=[],D=$?p[p.length-1]:p[0];for(var g=0;g<p.length;g++)E=p[g],R(x,G,E)?(R(x,G,D)||T.push(U(x,G,D,E)),T.push(E)):R(x,G,D)&&T.push(U(x,G,D,E)),D=E;x=G}return T}}(W||(W={})),W}),rt(N,"Maps/Projections/LambertConformalConic.js",[],function(){var W=Math.sign||function($){return $===0?0:$>0?1:-1},R=63.78137,U=Math.PI/180,Y=Math.PI/2,Z=1e-6,q=function($){return Math.tan((Y+$)/2)};return function(){function $(G){var D,E=(G.parallels||[]).map(function(g){return g*U}),x=E[0]||0,T=(D=E[1])!==null&&D!==void 0?D:x,u=Math.cos(x);typeof G.projectedBounds=="object"&&(this.projectedBounds=G.projectedBounds);var p=x===T?Math.sin(x):Math.log(u/Math.cos(T))/Math.log(q(T)/q(x));Math.abs(p)<1e-10&&(p=1e-10*(W(p)||1)),this.n=p,this.c=u*Math.pow(q(x),p)/p}return $.prototype.forward=function(G){var D=G[0]*U,E=this,x=E.c,T=E.n,u=E.projectedBounds,p=G[1]*U;x>0?p<-Y+Z&&(p=-Y+Z):p>Y-Z&&(p=Y-Z);var g=x/Math.pow(q(p),T),v=g*Math.sin(T*D)*R,y=(x-g*Math.cos(T*D))*R,C=[v,y];return u&&(v<u.x1||v>u.x2||y<u.y1||y>u.y2)&&(C.outside=!0),C},$.prototype.inverse=function(G){var D=G[0]/R,E=G[1]/R,x=this.c,T=this.n,u=x-E,p=W(T)*Math.sqrt(D*D+u*u),g=Math.atan2(D,Math.abs(u))*W(u);return u*T<0&&(g-=Math.PI*W(D)*W(u)),[g/T/U,(2*Math.atan(Math.pow(x/p,1/T))-Y)/U]},$}()}),rt(N,"Maps/Projections/EqualEarth.js",[],function(){var W=1.340264,R=-.081106,U=893e-6,Y=.003796,Z=Math.sqrt(3)/2,q=74.03120656864502;return function(){function $(){this.bounds={x1:-200.37508342789243,x2:200.37508342789243,y1:-97.52595454902263,y2:97.52595454902263}}return $.prototype.forward=function(G){var D=Math.PI/180,E=Math.asin(Z*Math.sin(G[1]*D)),x=E*E,T=x*x*x;return[G[0]*D*Math.cos(E)*q/(Z*(W+3*R*x+T*(7*U+9*Y*x))),E*q*(W+R*x+T*(U+Y*x))]},$.prototype.inverse=function(G){var D,E,x,T,u=G[0]/q,p=G[1]/q,g=180/Math.PI,v=p;for(T=0;T<12&&(v-=x=(v*(W+R*(D=v*v)+(E=D*D*D)*(U+Y*D))-p)/(W+3*R*D+E*(7*U+9*Y*D)),!(Math.abs(x)<1e-9));++T);return[g*Z*u*(W+3*R*(D=v*v)+(E=D*D*D)*(7*U+9*Y*D))/Math.cos(v),g*Math.asin(Math.sin(v)/Z)]},$}()}),rt(N,"Maps/Projections/Miller.js",[],function(){var W=Math.PI/4,R=Math.PI/180,U=63.78137;return function(){function Y(){this.bounds={x1:-200.37508342789243,x2:200.37508342789243,y1:-146.91480769173063,y2:146.91480769173063}}return Y.prototype.forward=function(Z){return[Z[0]*R*U,79.7267125*Math.log(Math.tan(W+.4*Z[1]*R))]},Y.prototype.inverse=function(Z){return[Z[0]/U/R,2.5*(Math.atan(Math.exp(Z[1]/U*.8))-W)/R]},Y}()}),rt(N,"Maps/Projections/Orthographic.js",[],function(){var W=Math.PI/180,R=63.78460826781007;return function(){function U(){this.antimeridianCutting=!1,this.bounds={x1:-R,x2:R,y1:-R,y2:R}}return U.prototype.forward=function(Y){var Z=Y[0],q=Y[1]*W,$=[Math.cos(q)*Math.sin(Z*W)*R,Math.sin(q)*R];return(Z<-90||Z>90)&&($.outside=!0),$},U.prototype.inverse=function(Y){var Z=Y[0]/R,q=Y[1]/R,$=Math.sqrt(Z*Z+q*q),G=Math.asin($),D=Math.sin(G),E=Math.cos(G);return[Math.atan2(Z*D,$*E)/W,Math.asin($&&q*D/$)/W]},U}()}),rt(N,"Maps/Projections/WebMercator.js",[],function(){var W=85.0511287798,R=63.78137,U=Math.PI/180;return function(){function Y(){this.bounds={x1:-200.37508342789243,x2:200.37508342789243,y1:-200.3750834278071,y2:200.3750834278071},this.maxLatitude=W}return Y.prototype.forward=function(Z){var q=Math.sin(Z[1]*U),$=[R*Z[0]*U,R*Math.log((1+q)/(1-q))/2];return Math.abs(Z[1])>W&&($.outside=!0),$},Y.prototype.inverse=function(Z){return[Z[0]/(R*U),(2*Math.atan(Math.exp(Z[1]/R))-Math.PI/2)/U]},Y}()}),rt(N,"Maps/Projections/ProjectionRegistry.js",[N["Maps/Projections/LambertConformalConic.js"],N["Maps/Projections/EqualEarth.js"],N["Maps/Projections/Miller.js"],N["Maps/Projections/Orthographic.js"],N["Maps/Projections/WebMercator.js"]],function(W,R,U,Y,Z){return{EqualEarth:R,LambertConformalConic:W,Miller:U,Orthographic:Y,WebMercator:Z}}),rt(N,"Maps/Projection.js",[N["Core/Geometry/PolygonClip.js"],N["Maps/Projections/ProjectionRegistry.js"],N["Core/Utilities.js"]],function(W,R,U){var Y=this&&this.__spreadArray||function(T,u,p){if(p||arguments.length===2)for(var g,v=0,y=u.length;v<y;v++)!g&&v in u||(g||(g=Array.prototype.slice.call(u,0,v)),g[v]=u[v]);return T.concat(g||Array.prototype.slice.call(u))},Z=W.clipLineString,q=W.clipPolygon,$=U.clamp,G=U.erase,D=2*Math.PI/360,E=1e-6,x=function(T){return T<-180&&(T+=360),T>180&&(T-=360),T};return function(){function T(u){u===void 0&&(u={}),this.hasCoordinates=!1,this.hasGeoProjection=!1,this.maxLatitude=90,this.options=u;var p=u.name,g=u.projectedBounds,v=u.rotation;this.rotator=v?this.getRotator(v):void 0;var y=p?T.registry[p]:void 0;y&&(this.def=new y(u));var C=this.def,P=this.rotator;C&&(this.maxLatitude=C.maxLatitude||90,this.hasGeoProjection=!0),P&&C?(this.forward=function(L){return C.forward(P.forward(L))},this.inverse=function(L){return P.inverse(C.inverse(L))}):C?(this.forward=function(L){return C.forward(L)},this.inverse=function(L){return C.inverse(L)}):P&&(this.forward=P.forward,this.inverse=P.inverse),this.bounds=g==="world"?C&&C.bounds:g}return T.add=function(u,p){T.registry[u]=p},T.greatCircle=function(u,p,g){var v=Math.atan2,y=Math.cos,C=Math.sin,P=Math.sqrt,L=u[1]*D,M=u[0]*D,f=p[1]*D,b=p[0]*D,l=f-L,h=b-M,e=C(l/2)*C(l/2)+y(L)*y(f)*C(h/2)*C(h/2),r=2*v(P(e),P(1-e)),o=6371e3*r,i=Math.round(o/5e5),c=[];if(g&&c.push(u),i>1)for(var a=1/i,s=a;s<.999;s+=a){var m=C((1-s)*r)/C(r),A=C(s*r)/C(r),O=m*y(L)*y(M)+A*y(f)*y(b),d=m*y(L)*C(M)+A*y(f)*C(b),w=v(m*C(L)+A*C(f),P(O*O+d*d)),k=v(d,O);c.push([k/D,w/D])}return g&&c.push(p),c},T.insertGreatCircles=function(u){for(var p=u.length-1;p--;)if(Math.max(Math.abs(u[p][0]-u[p+1][0]),Math.abs(u[p][1]-u[p+1][1]))>10){var g=T.greatCircle(u[p],u[p+1]);g.length&&u.splice.apply(u,Y([p+1,0],g,!1))}},T.toString=function(u){var p=u||{},g=p.name,v=p.rotation;return[g,v&&v.join(",")].join(";")},T.prototype.lineIntersectsBounds=function(u){var p,g=this.bounds||{},v=g.x1,y=g.x2,C=g.y1,P=g.y2,L=function(f,b,l){var h=f[0],e=f[1],r=b?0:1;if(typeof l=="number"&&h[b]>=l!=e[b]>=l){var o=(l-h[b])/(e[b]-h[b]),i=h[r]+o*(e[r]-h[r]);return b?[i,l]:[l,i]}},M=u[0];return((p=L(u,0,v))||(p=L(u,0,y)))&&(M=p,u[1]=p),((p=L(u,1,C))||(p=L(u,1,P)))&&(M=p),M},T.prototype.getRotator=function(u){var p=u[0]*D,g=(u[1]||0)*D,v=(u[2]||0)*D,y=Math.cos(g),C=Math.sin(g),P=Math.cos(v),L=Math.sin(v);if(p!==0||g!==0||v!==0)return{forward:function(M){var f=M[0]*D+p,b=M[1]*D,l=Math.cos(b),h=Math.cos(f)*l,e=Math.sin(f)*l,r=Math.sin(b),o=r*y+h*C;return[Math.atan2(e*P-o*L,h*y-r*C)/D,Math.asin(o*P+e*L)/D]},inverse:function(M){var f=M[0]*D,b=M[1]*D,l=Math.cos(b),h=Math.cos(f)*l,e=Math.sin(f)*l,r=Math.sin(b),o=r*P-e*L;return[(Math.atan2(e*P+r*L,h*y+o*C)-p)/D,Math.asin(o*y-h*C)/D]}}},T.prototype.forward=function(u){return u},T.prototype.inverse=function(u){return u},T.prototype.cutOnAntimeridian=function(u,p){var g,v=180,y=[],C=[u];if(u.forEach(function(A,O){var d=u[O-1];if(!O){if(!p)return;d=u[u.length-1]}var w=d[0],k=A[0];if((w<-90||w>90)&&(k<-90||k>90)&&w>0!=k>0){var z=$((v-(w+360)%360)/((k+360)%360-(w+360)%360),0,1),F=d[1]+z*(A[1]-d[1]);y.push({i:O,lat:F,direction:w<0?1:-1,previousLonLat:d,lonLat:A})}}),y.length)if(p){y.length%2==1&&(g=y.slice().sort(function(A,O){return Math.abs(O.lat)-Math.abs(A.lat)})[0],G(y,g));for(var P=y.length-2;P>=0;){var L=y[P].i,M=x(v+y[P].direction*E),f=x(v-y[P].direction*E);(m=u.splice.apply(u,Y([L,y[P+1].i-L],T.greatCircle([M,y[P].lat],[M,y[P+1].lat],!0),!1))).push.apply(m,T.greatCircle([f,y[P+1].lat],[f,y[P].lat],!0)),C.push(m),P-=2}if(g)for(var b=0;b<C.length;b++){var l=g.direction,h=g.lat,e=C[b],r=e.indexOf(g.lonLat);if(r>-1){for(var o=(h<0?-1:1)*this.maxLatitude,i=x(v+l*E),c=x(v-l*E),a=T.greatCircle([i,h],[i,o],!0),s=i+120*l;s>-180&&s<180;s+=120*l)a.push([s,o]);a.push.apply(a,T.greatCircle([c,o],[c,g.lat],!0)),e.splice.apply(e,Y([r,0],a,!1));break}}}else for(P=y.length;P--;){var m;L=y[P].i,(m=u.splice(L,u.length,[x(v+y[P].direction*E),y[P].lat])).unshift([x(v-y[P].direction*E),y[P].lat]),C.push(m)}return C},T.prototype.path=function(u){var p,g=this,v=this,y=v.bounds,C=v.def,P=v.rotator,L=[],M=u.type==="Polygon"||u.type==="MultiPolygon",f=this.hasGeoProjection,b=!C||C.antimeridianCutting!==!1,l=b?P:void 0,h=b&&C||this;y&&(p=[[y.x1,y.y1],[y.x2,y.y1],[y.x2,y.y2],[y.x1,y.y2]]);var e=function(r){var o=r.map(function(c){if(b){l&&(c=l.forward(c));var a=c[0];Math.abs(a-180)<E&&(a=a<180?179.999999:180.000001),c=[a,c[1]]}return c}),i=[o];f&&(T.insertGreatCircles(o),b&&(i=g.cutOnAntimeridian(o,M))),i.forEach(function(c){if(!(c.length<2)){var a,s,m=!1,A=!1,O=function(I){m?L.push(["L",I[0],I[1]]):(L.push(["M",I[0],I[1]]),m=!0)},d=!1,w=!1,k=c.map(function(I){var _=h.forward(I);return _.outside?d=!0:w=!0,_[1]===1/0?_[1]=1e10:_[1]===-1/0&&(_[1]=-1e10),_});if(b){if(M&&k.push(k[0]),d){if(!w)return;if(p){if(M)k=q(k,p);else if(y)return void Z(k,p).forEach(function(I){m=!1,I.forEach(O)})}}k.forEach(O)}else for(var z=0;z<k.length;z++){var F=c[z],j=k[z];j.outside?A=!0:(M&&!a&&(a=F,c.push(F),k.push(j)),A&&s&&(M&&f?T.greatCircle(s,F).forEach(function(I){return O(h.forward(I))}):m=!1),O(j),s=F,A=!1)}}})};return u.type==="LineString"?e(u.coordinates):u.type==="MultiLineString"?u.coordinates.forEach(function(r){return e(r)}):u.type==="Polygon"?(u.coordinates.forEach(function(r){return e(r)}),L.length&&L.push(["Z"])):u.type==="MultiPolygon"&&(u.coordinates.forEach(function(r){r.forEach(function(o){return e(o)})}),L.length&&L.push(["Z"])),L},T.registry=R,T}()}),rt(N,"Maps/MapView.js",[N["Maps/MapViewOptionsDefault.js"],N["Maps/MapViewInsetsOptionsDefault.js"],N["Extensions/GeoJSON.js"],N["Core/Chart/MapChart.js"],N["Maps/MapUtilities.js"],N["Maps/Projection.js"],N["Core/Utilities.js"]],function(W,R,U,Y,Z,q,$){var G,D=this&&this.__extends||(G=function(i,c){return G=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,s){a.__proto__=s}||function(a,s){for(var m in s)s.hasOwnProperty(m)&&(a[m]=s[m])},G(i,c)},function(i,c){function a(){this.constructor=i}G(i,c),i.prototype=c===null?Object.create(c):(a.prototype=c.prototype,new a)}),E=this&&this.__spreadArray||function(i,c,a){if(a||arguments.length===2)for(var s,m=0,A=c.length;m<A;m++)!s&&m in c||(s||(s=Array.prototype.slice.call(c,0,m)),s[m]=c[m]);return i.concat(s||Array.prototype.slice.call(c))},x=U.topo2geo,T=Y.maps,u=Z.boundsFromPath,p=Z.pointInPolygon,g=$.addEvent,v=$.clamp,y=$.fireEvent,C=$.isArray,P=$.isNumber,L=$.isObject,M=$.isString,f=$.merge,b=$.pick,l=$.relativeLength,h=400.979322,e=function(i,c){var a=c.width,s=c.height,m=Math.max((i.x2-i.x1)/(a/256),(i.y2-i.y1)/(s/256));return Math.log(h/m)/Math.log(2)},r=function(){function i(c,a){var s,m,A=this;if(this.insets=[],this.padding=[0,0,0,0],this.eventsToUnbind=[],!(this instanceof o)){var O=E([c.options.chart.map],(c.options.series||[]).map(function(X){return X.mapData}),!0).map(function(X){return A.getGeoMap(X)}),d=[];O.forEach(function(X){if(X&&(s||(s=X["hc-recommended-mapview"]),X.bbox)){var H=X.bbox,Q=H[0],et=H[1],tt=H[2],st=H[3];d.push({x1:Q,y1:et,x2:tt,y2:st})}});var w=d.length&&i.compositeBounds(d);if(w){var k=w.x1,z=w.y1,F=w.x2,j=w.y2;m=F-k>180&&j-z>90?{name:"EqualEarth"}:{name:"LambertConformalConic",parallels:[z,j],rotation:[-(k+F)/2]}}this.geoMap=O[0]}this.userOptions=a||{};var I=f(W,{projection:m},s,a),_=s&&s.insets,V=a&&a.insets;_&&V&&(I.insets=i.mergeInsets(_,V)),this.chart=c,this.center=I.center,this.options=I,this.projection=new q(I.projection),this.playingField=c.plotBox,this.zoom=I.zoom||0,this.createInsets(),this.eventsToUnbind.push(g(c,"afterSetChartSize",function(){A.playingField=A.getField(),A.minZoom!==void 0&&A.minZoom!==A.zoom||(A.fitToBounds(void 0,void 0,!1),!A.chart.hasRendered&&P(A.userOptions.zoom)&&(A.zoom=A.userOptions.zoom),A.userOptions.center&&f(!0,A.center,A.userOptions.center))})),this.setUpEvents()}return i.mergeInsets=function(c,a){var s=function(A){var O={};return A.forEach(function(d,w){O[d&&d.id||"i".concat(w)]=d}),O},m=f(s(c),s(a));return Object.keys(m).map(function(A){return m[A]})},i.prototype.createInsets=function(){var c=this,a=this.options,s=a.insets;s&&s.forEach(function(m){var A=new o(c,f(a.insetOptions,m));c.insets.push(A)})},i.prototype.fitToBounds=function(c,a,s,m){s===void 0&&(s=!0);var A=c||this.getProjectedBounds();if(A){var O=b(a,c?0:this.options.padding),d=this.getField(!1),w=C(O)?O:[O,O,O,O];this.padding=[l(w[0],d.height),l(w[1],d.width),l(w[2],d.height),l(w[3],d.width)],this.playingField=this.getField();var k=e(A,this.playingField);c||(this.minZoom=k);var z=this.projection.inverse([(A.x2+A.x1)/2,(A.y2+A.y1)/2]);this.setView(z,k,s,m)}},i.prototype.getField=function(c){c===void 0&&(c=!0);var a=c?this.padding:[0,0,0,0];return{x:a[3],y:a[0],width:this.chart.plotWidth-a[1]-a[3],height:this.chart.plotHeight-a[0]-a[2]}},i.prototype.getGeoMap=function(c){if(M(c))return T[c];if(L(c,!0)){if(c.type==="FeatureCollection")return c;if(c.type==="Topology")return x(c)}},i.prototype.getMapBBox=function(){var c=this.getProjectedBounds(),a=this.getScale();if(c){var s=this.padding,m=this.projectedUnitsToPixels({x:c.x1,y:c.y2});return{width:(c.x2-c.x1)*a+s[1]+s[3],height:(c.y2-c.y1)*a+s[0]+s[2],x:m.x-s[3],y:m.y-s[0]}}},i.prototype.getProjectedBounds=function(){var c=this.projection,a=this.chart.series.reduce(function(d,w){var k=w.getProjectedBounds&&w.getProjectedBounds();return k&&w.options.affectsMapView!==!1&&d.push(k),d},[]),s=this.options.fitToGeometry;if(s){if(!this.fitToGeometryCache)if(s.type==="MultiPoint"){var m=s.coordinates.map(function(d){return c.forward(d)}),A=m.map(function(d){return d[0]}),O=m.map(function(d){return d[1]});this.fitToGeometryCache={x1:Math.min.apply(0,A),x2:Math.max.apply(0,A),y1:Math.min.apply(0,O),y2:Math.max.apply(0,O)}}else this.fitToGeometryCache=u(c.path(s));return this.fitToGeometryCache}return this.projection.bounds||i.compositeBounds(a)},i.prototype.getScale=function(){return 256/h*Math.pow(2,this.zoom)},i.prototype.getSVGTransform=function(){var c=this.playingField,a=c.x,s=c.y,m=c.width,A=c.height,O=this.projection.forward(this.center),d=this.projection.hasCoordinates?-1:1,w=this.getScale(),k=w*d;return{scaleX:w,scaleY:k,translateX:a+m/2-O[0]*w,translateY:s+A/2-O[1]*k}},i.prototype.lonLatToPixels=function(c){var a=this.lonLatToProjectedUnits(c);if(a)return this.projectedUnitsToPixels(a)},i.prototype.lonLatToProjectedUnits=function(c){var a=this.chart,s=a.mapTransforms;if(s){for(var m in s)if(Object.hasOwnProperty.call(s,m)&&s[m].hitZone){var A=a.transformFromLatLon(c,s[m]);if(A&&p(A,s[m].hitZone.coordinates[0]))return A}return a.transformFromLatLon(c,s.default)}for(var O=0,d=this.insets;O<d.length;O++){var w=d[O];if(w.options.geoBounds&&p({x:c.lon,y:c.lat},w.options.geoBounds.coordinates[0])){var k=w.projection.forward([c.lon,c.lat]),z=w.projectedUnitsToPixels({x:k[0],y:k[1]});return this.pixelsToProjectedUnits(z)}}var F=this.projection.forward([c.lon,c.lat]);if(!F.outside)return{x:F[0],y:F[1]}},i.prototype.projectedUnitsToLonLat=function(c){var a=this.chart,s=a.mapTransforms;if(s){for(var m in s)if(Object.hasOwnProperty.call(s,m)&&s[m].hitZone&&p(c,s[m].hitZone.coordinates[0]))return a.transformToLatLon(c,s[m]);return a.transformToLatLon(c,s.default)}for(var A=this.projectedUnitsToPixels(c),O=0,d=this.insets;O<d.length;O++){var w=d[O];if(w.hitZone&&p(A,w.hitZone.coordinates[0])){var k=w.pixelsToProjectedUnits(A),z=w.projection.inverse([k.x,k.y]);return{lon:z[0],lat:z[1]}}}var F=this.projection.inverse([c.x,c.y]);return{lon:F[0],lat:F[1]}},i.prototype.redraw=function(c){this.chart.series.forEach(function(a){a.useMapGeometry&&(a.isDirty=!0)}),this.chart.redraw(c)},i.prototype.setView=function(c,a,s,m){s===void 0&&(s=!0),c&&(this.center=c),typeof a=="number"&&(typeof this.minZoom=="number"&&(a=Math.max(a,this.minZoom)),typeof this.options.maxZoom=="number"&&(a=Math.min(a,this.options.maxZoom)),P(a)&&(this.zoom=a));var A=this.getProjectedBounds();if(A){var O=this.projection.forward(this.center),d=this.playingField,w=d.x,k=d.y,z=d.width,F=d.height,j=this.getScale(),I=this.projectedUnitsToPixels({x:A.x1,y:A.y1}),_=this.projectedUnitsToPixels({x:A.x2,y:A.y2}),V=[(A.x1+A.x2)/2,(A.y1+A.y2)/2],X=I.x,H=_.y,Q=_.x,et=I.y;Q-X<z?O[0]=V[0]:X<w&&Q<w+z?O[0]+=Math.max(X-w,Q-z-w)/j:Q>w+z&&X>w&&(O[0]+=Math.min(Q-z-w,X-w)/j),et-H<F?O[1]=V[1]:H<k&&et<k+F?O[1]-=Math.max(H-k,et-F-k)/j:et>k+F&&H>k&&(O[1]-=Math.min(et-F-k,H-k)/j),this.center=this.projection.inverse(O),this.insets.forEach(function(tt){tt.options.field&&(tt.hitZone=tt.getHitZone(),tt.playingField=tt.getField())}),this.render()}y(this,"afterSetView"),s&&this.redraw(m)},i.prototype.projectedUnitsToPixels=function(c){var a=this.getScale(),s=this.projection.forward(this.center),m=this.playingField,A=m.x+m.width/2,O=m.y+m.height/2;return{x:A-a*(s[0]-c.x),y:O+a*(s[1]-c.y)}},i.prototype.pixelsToLonLat=function(c){return this.projectedUnitsToLonLat(this.pixelsToProjectedUnits(c))},i.prototype.pixelsToProjectedUnits=function(c){var a=c.x,s=c.y,m=this.getScale(),A=this.projection.forward(this.center),O=this.playingField,d=O.x+O.width/2,w=O.y+O.height/2;return{x:A[0]+(a-d)/m,y:A[1]-(s-w)/m}},i.prototype.setUpEvents=function(){var c,a,s,m=this,A=this.chart,O=function(d){var w=A.pointer.pinchDown,k=m.projection,z=A.mouseDownX,F=A.mouseDownY;if(w.length===1&&(z=w[0].chartX,F=w[0].chartY),typeof z=="number"&&typeof F=="number"){var j=""+z+",".concat(F),I=d.originalEvent,_=I.chartX,V=I.chartY;j!==a&&(a=j,c=m.projection.forward(m.center),s=(m.projection.options.rotation||[0,0]).slice());var X=k.def&&k.def.bounds,H=X&&e(X,m.playingField)||-1/0;if(k.options.name==="Orthographic"&&(m.minZoom||1/0)<1.1*H){var Q=440/(m.getScale()*Math.min(A.plotWidth,A.plotHeight));if(s){var et=(z-_)*Q-s[0],tt=v(-s[1]-(F-V)*Q,-80,80),st=m.zoom;m.update({projection:{rotation:[-et,-tt]}},!1),m.zoom=st,A.redraw(!1)}}else if(P(_)&&P(V)){var ct=m.getScale(),gt=m.projection.hasCoordinates?1:-1,mt=m.projection.inverse([c[0]+(z-_)/ct,c[1]-(F-V)/ct*gt]);m.setView(mt,void 0,!0,!1)}d.preventDefault()}};g(A,"pan",O),g(A,"touchpan",O),g(A,"selection",function(d){if(d.resetSelection)m.zoomBy();else{var w=d.x-A.plotLeft,k=d.y-A.plotTop,z=m.pixelsToProjectedUnits({x:w,y:k}),F=z.y,j=z.x,I=m.pixelsToProjectedUnits({x:w+d.width,y:k+d.height}),_=I.y,V=I.x;m.fitToBounds({x1:j,y1:F,x2:V,y2:_},void 0,!0,!d.originalEvent.touches&&void 0),/^touch/.test(d.originalEvent.type)||A.showResetZoom(),d.preventDefault()}})},i.prototype.render=function(){this.group||(this.group=this.chart.renderer.g("map-view").attr({zIndex:4}).add())},i.prototype.update=function(c,a,s){a===void 0&&(a=!0);var m=c.projection,A=m&&q.toString(m)!==q.toString(this.options.projection),O=!1;f(!0,this.userOptions,c),f(!0,this.options,c),"insets"in c&&(this.insets.forEach(function(d){return d.destroy()}),this.insets.length=0,O=!0),(A||"fitToGeometry"in c)&&delete this.fitToGeometryCache,(A||O)&&(this.chart.series.forEach(function(d){var w=d.transformGroups;if(d.clearBounds&&d.clearBounds(),d.isDirty=!0,d.isDirtyData=!0,O&&w)for(;w.length>1;){var k=w.pop();k&&k.destroy()}}),A&&(this.projection=new q(this.options.projection)),O&&this.createInsets(),c.center||P(c.zoom)||this.fitToBounds(void 0,void 0,!1)),c.center||P(c.zoom)?this.setView(this.options.center,c.zoom,!1):"fitToGeometry"in c&&this.fitToBounds(void 0,void 0,!1),a&&this.chart.redraw(s)},i.prototype.zoomBy=function(c,a,s,m){var A=this.chart,O=this.projection.forward(this.center),d=a?this.projection.forward(a):[],w=d[0],k=d[1];if(typeof c=="number"){var z=this.zoom+c,F=void 0;if(s){var j=s[0],I=s[1],_=this.getScale(),V=j-A.plotLeft-A.plotWidth/2,X=I-A.plotTop-A.plotHeight/2;w=O[0]+V/_,k=O[1]+X/_}typeof w=="number"&&typeof k=="number"&&(_=1-Math.pow(2,this.zoom)/Math.pow(2,z),V=O[0]-w,X=O[1]-k,O[0]-=V*_,O[1]+=X*_,F=this.projection.inverse(O)),this.setView(F,z,void 0,m)}else this.fitToBounds(void 0,void 0,void 0,m)},i.compositeBounds=function(c){if(c.length)return c.slice(1).reduce(function(a,s){return a.x1=Math.min(a.x1,s.x1),a.y1=Math.min(a.y1,s.y1),a.x2=Math.max(a.x2,s.x2),a.y2=Math.max(a.y2,s.y2),a},f(c[0]))},i}(),o=function(i){function c(a,s){var m=i.call(this,a.chart,s)||this;if(m.id=s.id,m.mapView=a,m.options=f(R,s),m.allBounds=[],m.options.geoBounds){var A=a.projection.path(m.options.geoBounds);m.geoBoundsProjectedBox=u(A),m.geoBoundsProjectedPolygon=A.map(function(O){return[O[1]||0,O[2]||0]})}return m}return D(c,i),c.prototype.getField=function(a){a===void 0&&(a=!0);var s=this.hitZone;if(s){var m=a?this.padding:[0,0,0,0],A=s.coordinates[0],O=A.map(function(j){return j[0]}),d=A.map(function(j){return j[1]}),w=Math.min.apply(0,O)+m[3],k=Math.max.apply(0,O)-m[1],z=Math.min.apply(0,d)+m[0],F=Math.max.apply(0,d)-m[2];if(P(w)&&P(z))return{x:w,y:z,width:k-w,height:F-z}}return i.prototype.getField.call(this,a)},c.prototype.getHitZone=function(){var a=this,s=a.chart,m=a.mapView,A=a.options,O=(A.field||{}).coordinates;if(O){var d=O[0];if(A.units==="percent"){var w=A.relativeTo==="mapBoundingBox"&&m.getMapBBox()||f(s.plotBox,{x:0,y:0});d=d.map(function(k){return[l(k[0]+"%",w.width,w.x),l(k[1]+"%",w.height,w.y)]})}return{type:"Polygon",coordinates:[d]}}},c.prototype.getProjectedBounds=function(){return r.compositeBounds(this.allBounds)},c.prototype.isInside=function(a){var s=this.geoBoundsProjectedBox,m=this.geoBoundsProjectedPolygon;return!!(s&&a.x>=s.x1&&a.x<=s.x2&&a.y>=s.y1&&a.y<=s.y2&&m&&p(a,m))},c.prototype.render=function(){var a=this,s=a.chart,m=a.mapView,A=a.options,O=A.borderPath||A.field;if(O&&m.group){var d=!0;this.border||(this.border=s.renderer.path().addClass("highcharts-mapview-inset-border").add(m.group),d=!1),s.styledMode||this.border.attr({stroke:A.borderColor,"stroke-width":A.borderWidth});var w=Math.round(this.border.strokeWidth())%2/2,k=A.relativeTo==="mapBoundingBox"&&m.getMapBBox()||m.playingField,z=(O.coordinates||[]).reduce(function(F,j){return j.reduce(function(I,_,V){var X=_[0],H=_[1];return A.units==="percent"&&(X=s.plotLeft+l(X+"%",k.width,k.x),H=s.plotTop+l(H+"%",k.height,k.y)),X=Math.floor(X)+w,H=Math.floor(H)+w,I.push(V===0?["M",X,H]:["L",X,H]),I},F)},[]);this.border[d?"animate":"attr"]({d:z})}},c.prototype.destroy=function(){this.border&&(this.border=this.border.destroy()),this.eventsToUnbind.forEach(function(a){return a()})},c.prototype.setUpEvents=function(){},c}(r);return g(Y,"afterInit",function(){this.mapView=new r(this,this.options.mapView)}),r}),rt(N,"Series/Map/MapSeries.js",[N["Core/Animation/AnimationUtilities.js"],N["Series/ColorMapComposition.js"],N["Series/CenteredUtilities.js"],N["Core/Globals.js"],N["Core/Legend/LegendSymbol.js"],N["Core/Chart/MapChart.js"],N["Series/Map/MapPoint.js"],N["Maps/MapView.js"],N["Core/Series/Series.js"],N["Core/Series/SeriesRegistry.js"],N["Core/Renderer/SVG/SVGRenderer.js"],N["Core/Utilities.js"]],function(W,R,U,Y,Z,q,$,G,D,E,x,T){var u,p=this&&this.__extends||(u=function(A,O){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,w){d.__proto__=w}||function(d,w){for(var k in w)w.hasOwnProperty(k)&&(d[k]=w[k])},u(A,O)},function(A,O){function d(){this.constructor=A}u(A,O),A.prototype=O===null?Object.create(O):(d.prototype=O.prototype,new d)}),g=W.animObject,v=Y.noop,y=q.splitPath,C=E.seriesTypes,P=C.column,L=C.scatter,M=T.extend,f=T.find,b=T.fireEvent,l=T.getNestedProperty,h=T.isArray,e=T.defined,r=T.isNumber,o=T.isObject,i=T.merge,c=T.objectEach,a=T.pick,s=T.splat,m=function(A){function O(){var d=A!==null&&A.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 p(O,A),O.prototype.animate=function(d){var w=this.chart,k=this.group,z=g(this.options.animation);w.renderer.isSVG&&(d?k.attr({translateX:w.plotLeft+w.plotWidth/2,translateY:w.plotTop+w.plotHeight/2,scaleX:.001,scaleY:.001}):k.animate({translateX:w.plotLeft,translateY:w.plotTop,scaleX:1,scaleY:1},z))},O.prototype.animateDrilldown=function(d){var w=this.chart,k=this.group;w.renderer.isSVG&&(d?k.attr({translateX:w.plotLeft+w.plotWidth/2,translateY:w.plotTop+w.plotHeight/2,scaleX:.1,scaleY:.1,opacity:.01}):(k.animate({translateX:w.plotLeft,translateY:w.plotTop,scaleX:1,scaleY:1,opacity:1},this.chart.options.drilldown.animation),w.drilldown&&w.drilldown.fadeInGroup(this.dataLabelsGroup)))},O.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})},O.prototype.animateDrillupTo=function(d){P.prototype.animateDrillupTo.call(this,d)},O.prototype.clearBounds=function(){this.points.forEach(function(d){delete d.bounds,delete d.insetIndex,delete d.projectedPath}),delete this.bounds},O.prototype.doFullTranslate=function(){return!!(this.isDirtyData||this.chart.isResizing||this.chart.renderer.isVML||!this.hasRendered)},O.prototype.drawMapDataLabels=function(){D.prototype.drawDataLabels.call(this),this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)},O.prototype.drawPoints=function(){var d=this,w=this,k=this,z=k.chart,F=k.group,j=k.transformGroups,I=j===void 0?[]:j,_=z.mapView,V=z.renderer;_&&(this.transformGroups=I,I[0]||(I[0]=V.g().add(F)),_.insets.forEach(function(X,H){I[H+1]||I.push(V.g().add(F))}),this.doFullTranslate()&&(this.points.forEach(function(X){var H=X.graphic,Q=X.shapeArgs;X.group=I[typeof X.insetIndex=="number"?X.insetIndex+1:0],H&&H.parentGroup!==X.group&&H.add(X.group),Q&&z.hasRendered&&!z.styledMode&&(Q.fill=d.pointAttribs(X,X.state).fill)}),P.prototype.drawPoints.apply(this),this.points.forEach(function(X){var H=X.graphic;if(H){var Q=H.animate,et="";X.name&&(et+="highcharts-name-"+X.name.replace(/ /g,"-").toLowerCase()),X.properties&&X.properties["hc-key"]&&(et+=" highcharts-key-"+X.properties["hc-key"].toString().toLowerCase()),et&&H.addClass(et),z.styledMode&&H.css(d.pointAttribs(X,X.selected?"select":void 0)),H.animate=function(tt,st,ct){var gt=r(tt["stroke-width"])&&!r(H["stroke-width"]),mt=r(H["stroke-width"])&&!r(tt["stroke-width"]);if(gt||mt){var bt=a(w.getStrokeWidth(w.options),1)/(z.mapView&&z.mapView.getScale()||1);gt&&(H["stroke-width"]=bt),mt&&(tt["stroke-width"]=bt)}var yt=Q.call(H,tt,st,mt?function(){H.element.removeAttribute("stroke-width"),delete H["stroke-width"],ct&&ct.apply(this,arguments)}:ct);return yt}}})),I.forEach(function(X,H){var Q=(H===0?_:_.insets[H-1]).getSVGTransform(),et=a(d.getStrokeWidth(d.options),1),tt=Q.scaleX,st=Q.scaleY>0?1:-1,ct=function(yt){(w.points||[]).forEach(function(dt){var ot,ht=dt.graphic;ht&&ht["stroke-width"]&&(ot=d.getStrokeWidth(dt.options))&&ht.attr({"stroke-width":ot/yt})})};if(V.globalAnimation&&z.hasRendered){var gt=Number(X.attr("translateX")),mt=Number(X.attr("translateY")),bt=Number(X.attr("scaleX"));X.attr({animator:0}).animate({animator:1},{step:function(yt,dt){var ot=bt+(tt-bt)*dt.pos;X.attr({translateX:gt+(Q.translateX-gt)*dt.pos,translateY:mt+(Q.translateY-mt)*dt.pos,scaleX:ot,scaleY:ot*st,"stroke-width":et/ot}),ct(ot)}})}else X.attr(i(Q,{"stroke-width":et/tt})),ct(tt)}),this.drawMapDataLabels())},O.prototype.getProjectedBounds=function(){if(!this.bounds&&this.chart.mapView){var d=this.chart.mapView,w=d.insets,k=d.projection,z=[];(this.points||[]).forEach(function(F){if(F.path||F.geometry){if(typeof F.path=="string"?F.path=y(F.path):h(F.path)&&F.path[0]==="M"&&(F.path=x.prototype.pathToSegments(F.path)),!F.bounds){var j=F.getProjectedBounds(k);if(j){F.labelrank=a(F.labelrank,(j.x2-j.x1)*(j.y2-j.y1));var I=j.midX,_=j.midY;if(w&&r(I)&&r(_)){var V=f(w,function(X){return X.isInside({x:I,y:_})});V&&(delete F.projectedPath,(j=F.getProjectedBounds(V.projection))&&V.allBounds.push(j),F.insetIndex=w.indexOf(V))}F.bounds=j}}F.bounds&&F.insetIndex===void 0&&z.push(F.bounds)}}),this.bounds=G.compositeBounds(z)}return this.bounds},O.prototype.getStrokeWidth=function(d){var w=this.pointAttrToOptions;return d[w&&w["stroke-width"]||"borderWidth"]},O.prototype.hasData=function(){return!!this.processedXData.length},O.prototype.pointAttribs=function(d,w){var k=d.series.chart,z=k.mapView,F=k.styledMode?this.colorAttribs(d):P.prototype.pointAttribs.call(this,d,w),j=this.getStrokeWidth(d.options);if(w){var I=i(this.options.states[w],d.options.states&&d.options.states[w]||{}),_=this.getStrokeWidth(I);e(_)&&(j=_)}j&&z&&(j/=z.getScale());var V=this.getStrokeWidth(this.options);return F.dashstyle&&z&&r(V)&&(j=V/z.getScale()),d.visible||(F.fill=this.options.nullColor),e(j)?F["stroke-width"]=j:delete F["stroke-width"],F["stroke-linecap"]=F["stroke-linejoin"]=this.options.linecap,F},O.prototype.updateData=function(){return!this.processedData&&A.prototype.updateData.apply(this,arguments)},O.prototype.setData=function(d,w,k,z){w===void 0&&(w=!0),delete this.bounds,A.prototype.setData.call(this,d,!1,void 0,z),this.processData(),this.generatePoints(),w&&this.chart.redraw(k)},O.prototype.processData=function(){var d,w,k,z,F=this.options,j=F.data,I=this.chart.options.chart,_=this.joinBy,V=F.keys||this.pointArrayMap,X=[],H={},Q=this.chart.mapView,et=Q&&(o(F.mapData,!0)?Q.getGeoMap(F.mapData):Q.geoMap),tt=this.chart.mapTransforms;this.chart.mapTransforms=tt=I.mapTransforms||et&&et["hc-transform"]||tt,tt&&c(tt,function(bt){bt.rotation&&(bt.cosAngle=Math.cos(bt.rotation),bt.sinAngle=Math.sin(bt.rotation))}),h(F.mapData)?z=F.mapData:et&&et.type==="FeatureCollection"&&(this.mapTitle=et.title,z=Y.geojson(et,this.type,this)),this.processedData=[];var st=this.processedData;if(j&&j.forEach(function(bt,yt){var dt=0;if(r(bt))st[yt]={value:bt};else if(h(bt)){st[yt]={},!F.keys&&bt.length>V.length&&typeof bt[0]=="string"&&(st[yt]["hc-key"]=bt[0],++dt);for(var ot=0;ot<V.length;++ot,++dt)V[ot]&&bt[dt]!==void 0&&(V[ot].indexOf(".")>0?$.prototype.setNestedProperty(st[yt],bt[dt],V[ot]):st[yt][V[ot]]=bt[dt])}else st[yt]=j[yt];_&&_[0]==="_i"&&(st[yt]._i=yt)}),z){for(this.mapData=z,this.mapMap={},k=0;k<z.length;k++)w=(d=z[k]).properties,d._i=k,_[0]&&w&&w[_[0]]&&(d[_[0]]=w[_[0]]),H[d[_[0]]]=d;if(this.mapMap=H,_[1]){var ct=_[1];st.forEach(function(bt){var yt=l(ct,bt);H[yt]&&X.push(H[yt])})}if(F.allAreas){if(_[1]){var gt=_[1];st.forEach(function(bt){X.push(l(gt,bt))})}var mt="|"+X.map(function(bt){return bt&&bt[_[0]]}).join("|")+"|";z.forEach(function(bt){_[0]&&mt.indexOf("|"+bt[_[0]]+"|")!==-1||st.push(i(bt,{value:null}))})}}this.processedXData=new Array(st.length)},O.prototype.setOptions=function(d){var w=D.prototype.setOptions.call(this,d),k=w.joinBy;return k===null&&(k="_i"),(k=this.joinBy=s(k))[1]||(k[1]=k[0]),w},O.prototype.translate=function(){var d=this,w=d.doFullTranslate(),k=this.chart.mapView,z=k&&k.projection;if(!this.chart.hasRendered||!this.isDirtyData&&this.hasRendered||(this.processData(),this.generatePoints(),delete this.bounds,!k||k.userOptions.center||r(k.userOptions.zoom)?this.getProjectedBounds():k.fitToBounds(void 0,void 0,!1)),k){var F=k.getSVGTransform();d.points.forEach(function(j){var I=r(j.insetIndex)&&k.insets[j.insetIndex].getSVGTransform()||F;I&&j.bounds&&r(j.bounds.midX)&&r(j.bounds.midY)&&(j.plotX=j.bounds.midX*I.scaleX+I.translateX,j.plotY=j.bounds.midY*I.scaleY+I.translateY),w&&(j.shapeType="path",j.shapeArgs={d:$.getProjectedPath(j,z)})})}b(d,"afterTranslate")},O.defaultOptions=i(L.defaultOptions,{affectsMapView:!0,animation:!1,dataLabels:{crop:!1,formatter:function(){var d=this.series.chart.numberFormatter,w=this.point.value;return r(w)?d(w,-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"}}}),O}(L);return M(m.prototype,{type:"map",axisTypes:R.seriesMembers.axisTypes,colorAttribs:R.seriesMembers.colorAttribs,colorKey:R.seriesMembers.colorKey,directTouch:!0,drawDataLabels:v,drawGraph:v,drawLegendSymbol:Z.drawRectangle,forceDL:!0,getCenter:U.getCenter,getExtremesFromAll:!0,getSymbol:v,isCartesian:!1,parallelArrays:R.seriesMembers.parallelArrays,pointArrayMap:R.seriesMembers.pointArrayMap,pointClass:$,preserveAspectRatio:!0,searchPoint:v,trackerGroups:R.seriesMembers.trackerGroups,useMapGeometry:!0}),R.compose(m),E.registerSeriesType("map",m),m}),rt(N,"Series/MapLine/MapLineSeries.js",[N["Series/Map/MapSeries.js"],N["Core/Series/SeriesRegistry.js"],N["Core/Utilities.js"]],function(W,R,U){var Y,Z=this&&this.__extends||(Y=function(E,x){return Y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,u){T.__proto__=u}||function(T,u){for(var p in u)u.hasOwnProperty(p)&&(T[p]=u[p])},Y(E,x)},function(E,x){function T(){this.constructor=E}Y(E,x),E.prototype=x===null?Object.create(x):(T.prototype=x.prototype,new T)}),q=R.series,$=U.extend,G=U.merge,D=function(E){function x(){var T=E!==null&&E.apply(this,arguments)||this;return T.data=void 0,T.options=void 0,T.points=void 0,T}return Z(x,E),x.prototype.pointAttribs=function(T,u){var p=W.prototype.pointAttribs.call(this,T,u);return p.fill=this.options.fillColor,p},x.defaultOptions=G(W.defaultOptions,{lineWidth:1,fillColor:"none"}),x}(W);return $(D.prototype,{type:"mapline",colorProp:"stroke",drawLegendSymbol:q.prototype.drawLegendSymbol,pointAttrToOptions:{stroke:"color","stroke-width":"lineWidth"}}),R.registerSeriesType("mapline",D),D}),rt(N,"Series/MapPoint/MapPointPoint.js",[N["Core/Series/SeriesRegistry.js"],N["Core/Utilities.js"]],function(W,R){var U,Y=this&&this.__extends||(U=function(G,D){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,x){E.__proto__=x}||function(E,x){for(var T in x)x.hasOwnProperty(T)&&(E[T]=x[T])},U(G,D)},function(G,D){function E(){this.constructor=G}U(G,D),G.prototype=D===null?Object.create(D):(E.prototype=D.prototype,new E)}),Z=W.seriesTypes.scatter,q=R.isNumber,$=function(G){function D(){var E=G!==null&&G.apply(this,arguments)||this;return E.options=void 0,E.series=void 0,E}return Y(D,G),D.prototype.isValid=function(){return!!(this.options.geometry||q(this.x)&&q(this.y)||q(this.options.lon)&&q(this.options.lat))},D}(Z.prototype.pointClass);return $}),rt(N,"Series/MapPoint/MapPointSeries.js",[N["Core/Globals.js"],N["Series/MapPoint/MapPointPoint.js"],N["Core/Series/SeriesRegistry.js"],N["Core/Renderer/SVG/SVGRenderer.js"],N["Core/Utilities.js"]],function(W,R,U,Y,Z){var q,$=this&&this.__extends||(q=function(y,C){return q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(P,L){P.__proto__=L}||function(P,L){for(var M in L)L.hasOwnProperty(M)&&(P[M]=L[M])},q(y,C)},function(y,C){function P(){this.constructor=y}q(y,C),y.prototype=C===null?Object.create(C):(P.prototype=C.prototype,new P)}),G=W.noop,D=U.seriesTypes,E=D.map,x=D.scatter,T=Z.extend,u=Z.fireEvent,p=Z.isNumber,g=Z.merge,v=function(y){function C(){var P=y!==null&&y.apply(this,arguments)||this;return P.chart=void 0,P.data=void 0,P.options=void 0,P.points=void 0,P.clearBounds=E.prototype.clearBounds,P}return $(C,y),C.prototype.drawDataLabels=function(){y.prototype.drawDataLabels.call(this),this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)},C.prototype.projectPoint=function(P){var L=this.chart.mapView;if(L){var M=P.geometry,f=P.lon,b=P.lat,l=M&&M.type==="Point"&&M.coordinates;if(p(f)&&p(b)&&(l=[f,b]),l)return L.lonLatToProjectedUnits({lon:l[0],lat:l[1]})}},C.prototype.translate=function(){var P=this,L=this.chart.mapView;if(this.processedXData||this.processData(),this.generatePoints(),this.getProjectedBounds&&this.isDirtyData&&(delete this.bounds,this.getProjectedBounds()),L){var M=L.getSVGTransform(),f=L.projection.hasCoordinates;this.points.forEach(function(b){var l,h=b.x,e=h===void 0?void 0:h,r=b.y,o=r===void 0?void 0:r,i=p(b.insetIndex)&&L.insets[b.insetIndex].getSVGTransform()||M,c=P.projectPoint(b.options)||b.properties&&P.projectPoint(b.properties);if(c?(e=c.x,o=c.y):b.bounds&&(e=b.bounds.midX,o=b.bounds.midY,i&&p(e)&&p(o)&&(b.plotX=e*i.scaleX+i.translateX,b.plotY=o*i.scaleY+i.translateY,l=!0)),p(e)&&p(o)){if(!l){var a=L.projectedUnitsToPixels({x:e,y:o});b.plotX=a.x,b.plotY=f?a.y:P.chart.plotHeight-a.y}}else b.y=b.plotX=b.plotY=void 0;b.isInside=P.isPointInside(b),b.zone=P.zones.length?b.getZone():void 0})}u(this,"afterTranslate")},C.defaultOptions=g(x.defaultOptions,{dataLabels:{crop:!1,defer:!1,enabled:!0,formatter:function(){return this.point.name},overflow:!1,style:{color:"#000000"}}}),C}(x);return Y.prototype.symbols.mapmarker=function(y,C,P,L,M){var f,b,l=M&&M.context==="legend";l?(f=y+P/2,b=C+L):M&&typeof M.anchorX=="number"&&typeof M.anchorY=="number"?(f=M.anchorX,b=M.anchorY):(f=y+P/2,b=C+L/2,C-=L);var h=l?L/3:L/2;return[["M",f,b],["C",f,b,f-h,C+1.5*h,f-h,C+h],["A",h,h,1,1,1,f+h,C+h],["C",f+h,C+1.5*h,f,b,f,b],["Z"]]},T(v.prototype,{type:"mappoint",axisTypes:["colorAxis"],forceDL:!0,isCartesian:!1,pointClass:R,searchPoint:G,useMapGeometry:!0}),U.registerSeriesType("mappoint",v),v}),rt(N,"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}}),rt(N,"Series/Bubble/BubbleLegendItem.js",[N["Core/Color/Color.js"],N["Core/FormatUtilities.js"],N["Core/Globals.js"],N["Core/Utilities.js"]],function(W,R,U,Y){var Z=W.parse,q=U.noop,$=Y.arrayMax,G=Y.arrayMin,D=Y.isNumber,E=Y.merge,x=Y.pick,T=Y.stableSort;return function(){function u(p,g){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=q,this.init(p,g)}return u.prototype.init=function(p,g){this.options=p,this.visible=!0,this.chart=g.chart,this.legend=g},u.prototype.addToLegend=function(p){p.splice(this.options.legendIndex,0,this)},u.prototype.drawLegendSymbol=function(p){var g,v=this.chart,y=x(p.options.itemDistance,20),C=this.legendItem||{},P=this.options,L=P.ranges,M=P.connectorDistance;if(this.fontMetrics=v.renderer.fontMetrics(P.labels.style.fontSize),L&&L.length&&D(L[0].value)){T(L,function(h,e){return e.value-h.value}),this.ranges=L,this.setOptions(),this.render();var f=this.getMaxLabelSize(),b=this.ranges[0].radius,l=2*b;g=(g=M-b+f.width)>0?g:0,this.maxLabel=f,this.movementX=P.labels.align==="left"?g:0,C.labelWidth=l+g+y,C.labelHeight=l+this.fontMetrics.h/2}else p.options.bubbleLegend.autoRanges=!0},u.prototype.setOptions=function(){var p=this.ranges,g=this.options,v=this.chart.series[g.seriesIndex],y=this.legend.baseline,C={zIndex:g.zIndex,"stroke-width":g.borderWidth},P={zIndex:g.zIndex,"stroke-width":g.connectorWidth},L={align:this.legend.options.rtl||g.labels.align==="left"?"right":"left",zIndex:g.zIndex},M=v.options.marker.fillOpacity,f=this.chart.styledMode;p.forEach(function(b,l){f||(C.stroke=x(b.borderColor,g.borderColor,v.color),C.fill=x(b.color,g.color,M!==1?Z(v.color).setOpacity(M).get("rgba"):v.color),P.stroke=x(b.connectorColor,g.connectorColor,v.color)),p[l].radius=this.getRangeRadius(b.value),p[l]=E(p[l],{center:p[0].radius-p[l].radius+y}),f||E(!0,p[l],{bubbleAttribs:E(C),connectorAttribs:E(P),labelAttribs:L})},this)},u.prototype.getRangeRadius=function(p){var g=this.options,v=this.options.seriesIndex,y=this.chart.series[v],C=g.ranges[0].value,P=g.ranges[g.ranges.length-1].value,L=g.minSize,M=g.maxSize;return y.getRadius.call(this,P,C,L,M,p)},u.prototype.render=function(){var p=this.legendItem||{},g=this.chart.renderer,v=this.options.zThreshold;this.symbols||(this.symbols={connectors:[],bubbleItems:[],labels:[]}),p.symbol=g.g("bubble-legend"),p.label=g.g("bubble-legend-item"),p.symbol.translateX=0,p.symbol.translateY=0;for(var y=0,C=this.ranges;y<C.length;y++){var P=C[y];P.value>=v&&this.renderRange(P)}p.symbol.add(p.label),p.label.add(p.group),this.hideOverlappingLabels()},u.prototype.renderRange=function(p){var g=this.ranges[0],v=this.legend,y=this.options,C=y.labels,P=this.chart,L=P.series[y.seriesIndex],M=P.renderer,f=this.symbols,b=f.labels,l=p.center,h=Math.abs(p.radius),e=y.connectorDistance||0,r=C.align,o=v.options.rtl,i=y.borderWidth,c=y.connectorWidth,a=g.radius||0,s=l-h-i/2+c/2,m=this.fontMetrics,A=m.f/2-(m.h-m.f)/2,O=(s%1?1:.5)-(c%2?0:.5),d=M.styledMode,w=o||r==="left"?-e:e;r==="center"&&(w=0,y.connectorDistance=0,p.labelAttribs.align="center");var k=s+y.labels.y,z=a+w+y.labels.x;f.bubbleItems.push(M.circle(a,l+O,h).attr(d?{}:p.bubbleAttribs).addClass((d?"highcharts-color-"+L.colorIndex+" ":"")+"highcharts-bubble-legend-symbol "+(y.className||"")).add(this.legendItem.symbol)),f.connectors.push(M.path(M.crispLine([["M",a,s],["L",a+w,s]],y.connectorWidth)).attr(d?{}:p.connectorAttribs).addClass((d?"highcharts-color-"+this.options.seriesIndex+" ":"")+"highcharts-bubble-legend-connectors "+(y.connectorClassName||"")).add(this.legendItem.symbol));var F=M.text(this.formatLabel(p),z,k+A).attr(d?{}:p.labelAttribs).css(d?{}:C.style).addClass("highcharts-bubble-legend-labels "+(y.labels.className||"")).add(this.legendItem.symbol);b.push(F),F.placed=!0,F.alignAttr={x:z,y:k+A}},u.prototype.getMaxLabelSize=function(){var p,g;return this.symbols.labels.forEach(function(v){g=v.getBBox(!0),p=p?g.width>p.width?g:p:g}),p||{}},u.prototype.formatLabel=function(p){var g=this.options,v=g.labels.formatter,y=g.labels.format,C=this.chart.numberFormatter;return y?R.format(y,p):v?v.call(p):C(p.value,1)},u.prototype.hideOverlappingLabels=function(){var p=this.chart,g=this.options.labels.allowOverlap,v=this.symbols;!g&&v&&(p.hideOverlappingLabels(v.labels),v.labels.forEach(function(y,C){y.newOpacity?y.newOpacity!==y.oldOpacity&&v.connectors[C].show():v.connectors[C].hide()}))},u.prototype.getRanges=function(){var p,g,v=this.legend.bubbleLegend,y=v.chart.series,C=v.options.ranges,P=Number.MAX_VALUE,L=-Number.MAX_VALUE;return y.forEach(function(M){M.isBubble&&!M.ignoreSeries&&(g=M.zData.filter(D)).length&&(P=x(M.options.zMin,Math.min(P,Math.max(G(g),M.options.displayNegative===!1?M.options.zThreshold:-Number.MAX_VALUE))),L=x(M.options.zMax,Math.max(L,$(g))))}),p=P===L?[{value:L}]:[{value:P},{value:(P+L)/2},{value:L,autoRanges:!0}],C.length&&C[0].radius&&p.reverse(),p.forEach(function(M,f){C&&C[f]&&(p[f]=E(C[f],M))}),p},u.prototype.predictBubbleSizes=function(){var p,g=this.chart,v=this.fontMetrics,y=g.legend.options,C=y.floating,P=y.layout==="horizontal",L=P?g.legend.lastLineHeight:0,M=g.plotSizeX,f=g.plotSizeY,b=g.series[this.options.seriesIndex],l=b.getPxExtremes(),h=Math.ceil(l.minPxSize),e=Math.ceil(l.maxPxSize),r=Math.min(f,M),o=b.options.maxSize;return C||!/%$/.test(o)?p=e:(o=parseFloat(o),p=(r+L-v.h/2)*o/100/(o/100+1),(P&&f-p>=M||!P&&M-p>=f)&&(p=e)),[h,Math.ceil(p)]},u.prototype.updateRanges=function(p,g){var v=this.legend.options.bubbleLegend;v.minSize=p,v.maxSize=g,v.ranges=this.getRanges()},u.prototype.correctSizes=function(){var p=this.legend,g=this.chart.series[this.options.seriesIndex].getPxExtremes(),v=g.maxPxSize,y=this.options.maxSize;Math.abs(Math.ceil(v)-y)>1&&(this.updateRanges(this.options.minSize,g.maxPxSize),p.render())},u}()}),rt(N,"Series/Bubble/BubbleLegendComposition.js",[N["Series/Bubble/BubbleLegendDefaults.js"],N["Series/Bubble/BubbleLegendItem.js"],N["Core/Defaults.js"],N["Core/Utilities.js"]],function(W,R,U,Y){var Z=U.setOptions,q=Y.addEvent,$=Y.objectEach,G=Y.wrap,D=[];function E(v,y,C){var P,L,M,f=this,b=f.legend,l=x(f)>=0;b&&b.options.enabled&&b.bubbleLegend&&b.options.bubbleLegend.autoRanges&&l?(P=b.bubbleLegend.options,L=b.bubbleLegend.predictBubbleSizes(),b.bubbleLegend.updateRanges(L[0],L[1]),P.placed||(b.group.placed=!1,b.allItems.forEach(function(h){(M=h.legendItem||{}).group&&(M.group.translateY=null)})),b.render(),f.getMargins(),f.axes.forEach(function(h){h.visible&&h.render(),P.placed||(h.setScale(),h.updateNames(),$(h.ticks,function(e){e.isNew=!0,e.isNewLabel=!0}))}),P.placed=!0,f.getMargins(),v.call(f,y,C),b.bubbleLegend.correctSizes(),g(b,T(b))):(v.call(f,y,C),b&&b.options.enabled&&b.bubbleLegend&&(b.render(),g(b,T(b))))}function x(v){for(var y=v.series,C=0;C<y.length;){if(y[C]&&y[C].isBubble&&y[C].visible&&y[C].zData.length)return C;C++}return-1}function T(v){var y,C,P,L=v.allItems,M=[],f=L.length,b=0,l=0;for(b=0;b<f;b++)if(C=L[b].legendItem||{},P=(L[b+1]||{}).legendItem||{},C.labelHeight&&(L[b].itemHeight=C.labelHeight),L[b]===L[f-1]||C.y!==P.y){for(M.push({height:0}),y=M[M.length-1];l<=b;l++)L[l].itemHeight>y.height&&(y.height=L[l].itemHeight);y.step=b}return M}function u(v){var y=this,C=y.bubbleLegend,P=y.options,L=P.bubbleLegend,M=x(y.chart);C&&C.ranges&&C.ranges.length&&(L.ranges.length&&(L.autoRanges=!!L.ranges[0].autoRanges),y.destroyItem(C)),M>=0&&P.enabled&&L.enabled&&(L.seriesIndex=M,y.bubbleLegend=new R(L,y),y.bubbleLegend.addToLegend(v.allItems))}function p(){var v,y=this,C=y.chart,P=y.visible,L=y.chart.legend;L&&L.bubbleLegend&&(y.visible=!P,y.ignoreSeries=P,v=x(C)>=0,L.bubbleLegend.visible!==v&&(L.update({bubbleLegend:{enabled:v}}),L.bubbleLegend.visible=v),y.visible=P)}function g(v,y){var C,P,L,M,f=v.allItems,b=v.options.rtl,l=0;f.forEach(function(h,e){(M=h.legendItem||{}).group&&(C=M.group.translateX||0,P=M.y||0,((L=h.movementX)||b&&h.ranges)&&(L=b?C-h.options.maxSize/2:C+L,M.group.attr({translateX:L})),e>y[l].step&&l++,M.group.attr({translateY:Math.round(P+y[l].height/2)}),M.y=P+y[l].height/2)})}return{compose:function(v,y,C){D.indexOf(v)===-1&&(D.push(v),Z({legend:{bubbleLegend:W}}),G(v.prototype,"drawChartBox",E)),D.indexOf(y)===-1&&(D.push(y),q(y,"afterGetAllItems",u)),D.indexOf(C)===-1&&(D.push(C),q(C,"legendItemClick",p))}}}),rt(N,"Series/Bubble/BubblePoint.js",[N["Core/Series/Point.js"],N["Core/Series/SeriesRegistry.js"],N["Core/Utilities.js"]],function(W,R,U){var Y,Z=this&&this.__extends||(Y=function(D,E){return Y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,T){x.__proto__=T}||function(x,T){for(var u in T)T.hasOwnProperty(u)&&(x[u]=T[u])},Y(D,E)},function(D,E){function x(){this.constructor=D}Y(D,E),D.prototype=E===null?Object.create(E):(x.prototype=E.prototype,new x)}),q=R.seriesTypes.scatter.prototype.pointClass,$=U.extend,G=function(D){function E(){var x=D!==null&&D.apply(this,arguments)||this;return x.options=void 0,x.series=void 0,x}return Z(E,D),E.prototype.haloPath=function(x){return W.prototype.haloPath.call(this,x===0?0:(this.marker&&this.marker.radius||0)+x)},E}(q);return $(G.prototype,{ttBelow:!1}),G}),rt(N,"Series/Bubble/BubbleSeries.js",[N["Series/Bubble/BubbleLegendComposition.js"],N["Series/Bubble/BubblePoint.js"],N["Core/Color/Color.js"],N["Core/Globals.js"],N["Core/Series/SeriesRegistry.js"],N["Core/Utilities.js"]],function(W,R,U,Y,Z,q){var $,G=this&&this.__extends||($=function(e,r){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,i){o.__proto__=i}||function(o,i){for(var c in i)i.hasOwnProperty(c)&&(o[c]=i[c])},$(e,r)},function(e,r){function o(){this.constructor=e}$(e,r),e.prototype=r===null?Object.create(r):(o.prototype=r.prototype,new o)}),D=U.parse,E=Y.noop,x=Z.series,T=Z.seriesTypes,u=T.column.prototype,p=T.scatter,g=q.addEvent,v=q.arrayMax,y=q.arrayMin,C=q.clamp,P=q.extend,L=q.isNumber,M=q.merge,f=q.pick,b=[];function l(){var e,r=this,o=this.len,i=this.chart,c=this.isXAxis,a=c?"xData":"yData",s=this.min,m=this.max-s,A=0,O=o,d=o/m;this.series.forEach(function(w){if(w.bubblePadding&&(w.visible||!i.options.chart.ignoreHiddenSeries)){r.allowZoomOutside=!0,e=!0;var k=w[a];if(c&&((w.onPoint||w).getRadii(0,0,w),w.onPoint&&(w.radii=w.onPoint.radii)),m>0){for(var z=k.length;z--;)if(L(k[z])&&r.dataMin<=k[z]&&k[z]<=r.max){var F=w.radii&&w.radii[z]||0;A=Math.min((k[z]-s)*d-F,A),O=Math.max((k[z]-s)*d+F,O)}}}}),e&&m>0&&!this.logarithmic&&(O-=o,d*=(o+Math.max(0,A)-Math.min(O,o))/o,[["min","userMin",A],["max","userMax",O]].forEach(function(w){f(r.options[w[0]],r[w[1]])===void 0&&(r[w[0]]+=w[2]/d)}))}var h=function(e){function r(){var o=e!==null&&e.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 G(r,e),r.compose=function(o,i,c,a){W.compose(i,c,a),b.indexOf(o)===-1&&(b.push(o),o.prototype.beforePadding=l)},r.prototype.animate=function(o){!o&&this.points.length<this.options.animationLimit&&this.points.forEach(function(i){var c=i.graphic;c&&c.width&&(this.hasRendered||c.attr({x:i.plotX,y:i.plotY,width:1,height:1}),c.animate(this.markerAttribs(i),this.options.animation))},this)},r.prototype.getRadii=function(){var o,i,c,a=this,s=this.zData,m=this.yData,A=[],O=this.chart.bubbleZExtremes,d=this.getPxExtremes(),w=d.minPxSize,k=d.maxPxSize;if(!O){var z,F=Number.MAX_VALUE,j=-Number.MAX_VALUE;this.chart.series.forEach(function(I){if(I.bubblePadding&&(I.visible||!a.chart.options.chart.ignoreHiddenSeries)){var _=(I.onPoint||I).getZExtremes();_&&(F=Math.min(F||_.zMin,_.zMin),j=Math.max(j||_.zMax,_.zMax),z=!0)}}),z?(O={zMin:F,zMax:j},this.chart.bubbleZExtremes=O):O={zMin:0,zMax:0}}for(i=0,o=s.length;i<o;i++)c=s[i],A.push(this.getRadius(O.zMin,O.zMax,w,k,c,m&&m[i]));this.radii=A},r.prototype.getRadius=function(o,i,c,a,s,m){var A=this.options,O=A.sizeBy!=="width",d=A.zThreshold,w=i-o,k=.5;if(m===null||s===null)return null;if(L(s)){if(A.sizeByAbsoluteValue&&(s=Math.abs(s-d),i=w=Math.max(i-d,Math.abs(o-d)),o=0),s<o)return c/2-1;w>0&&(k=(s-o)/w)}return O&&k>=0&&(k=Math.sqrt(k)),Math.ceil(c+k*(a-c))/2},r.prototype.hasData=function(){return!!this.processedXData.length},r.prototype.pointAttribs=function(o,i){var c=this.options.marker.fillOpacity,a=x.prototype.pointAttribs.call(this,o,i);return c!==1&&(a.fill=D(a.fill).setOpacity(c).get("rgba")),a},r.prototype.translate=function(){e.prototype.translate.call(this),this.getRadii(),this.translateBubble()},r.prototype.translateBubble=function(){for(var o=this.data,i=this.radii,c=this.getPxExtremes().minPxSize,a=o.length;a--;){var s=o[a],m=i?i[a]:0;L(m)&&m>=c/2?(s.marker=P(s.marker,{radius:m,width:2*m,height:2*m}),s.dlBox={x:s.plotX-m,y:s.plotY-m,width:2*m,height:2*m}):(s.shapeArgs=s.plotY=s.dlBox=void 0,s.isInside=!1)}},r.prototype.getPxExtremes=function(){var o=Math.min(this.chart.plotWidth,this.chart.plotHeight),i=function(a){var s;return typeof a=="string"&&(s=/%$/.test(a),a=parseInt(a,10)),s?o*a/100:a},c=i(f(this.options.minSize,8));return{minPxSize:c,maxPxSize:Math.max(i(f(this.options.maxSize,"20%")),c)}},r.prototype.getZExtremes=function(){var o=this.options,i=(this.zData||[]).filter(L);if(i.length){var c=f(o.zMin,C(y(i),o.displayNegative===!1?o.zThreshold||0:-Number.MAX_VALUE,Number.MAX_VALUE)),a=f(o.zMax,v(i));if(L(c)&&L(a))return{zMin:c,zMax:a}}},r.defaultOptions=M(p.defaultOptions,{dataLabels:{formatter:function(){var o=this.series.chart.numberFormatter,i=this.point.z;return L(i)?o(i,-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"}),r}(p);return P(h.prototype,{alignDataLabel:u.alignDataLabel,applyZones:E,bubblePadding:!0,buildKDTree:E,directTouch:!0,isBubble:!0,pointArrayMap:["y","z"],pointClass:R,parallelArrays:["x","y","z"],trackerGroups:["group","dataLabelsGroup"],specialGroup:"group",zoneAxis:"z"}),g(h,"updatedData",function(e){delete e.target.chart.bubbleZExtremes}),g(h,"remove",function(e){delete e.target.chart.bubbleZExtremes}),Z.registerSeriesType("bubble",h),h}),rt(N,"Series/MapBubble/MapBubblePoint.js",[N["Series/Bubble/BubblePoint.js"],N["Core/Series/SeriesRegistry.js"],N["Core/Utilities.js"]],function(W,R,U){var Y,Z=this&&this.__extends||(Y=function(D,E){return Y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,T){x.__proto__=T}||function(x,T){for(var u in T)T.hasOwnProperty(u)&&(x[u]=T[u])},Y(D,E)},function(D,E){function x(){this.constructor=D}Y(D,E),D.prototype=E===null?Object.create(E):(x.prototype=E.prototype,new x)}),q=R.seriesTypes.map.prototype.pointClass.prototype,$=U.extend,G=function(D){function E(){return D!==null&&D.apply(this,arguments)||this}return Z(E,D),E.prototype.isValid=function(){return typeof this.z=="number"},E}(W);return $(G.prototype,{applyOptions:q.applyOptions,getProjectedBounds:q.getProjectedBounds}),G}),rt(N,"Series/MapBubble/MapBubbleSeries.js",[N["Series/Bubble/BubbleSeries.js"],N["Series/MapBubble/MapBubblePoint.js"],N["Core/Series/SeriesRegistry.js"],N["Core/Utilities.js"]],function(W,R,U,Y){var Z,q=this&&this.__extends||(Z=function(u,p){return Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,v){g.__proto__=v}||function(g,v){for(var y in v)v.hasOwnProperty(y)&&(g[y]=v[y])},Z(u,p)},function(u,p){function g(){this.constructor=u}Z(u,p),u.prototype=p===null?Object.create(p):(g.prototype=p.prototype,new g)}),$=U.seriesTypes,G=$.map.prototype,D=$.mappoint.prototype,E=Y.extend,x=Y.merge,T=function(u){function p(){var g=u!==null&&u.apply(this,arguments)||this;return g.data=void 0,g.options=void 0,g.points=void 0,g.clearBounds=G.clearBounds,g}return q(p,u),p.prototype.searchPoint=function(g,v){return this.searchKDTree({clientX:g.chartX-this.chart.plotLeft,plotY:g.chartY-this.chart.plotTop},v,g)},p.prototype.translate=function(){D.translate.call(this),this.getRadii(),this.translateBubble()},p.defaultOptions=x(W.defaultOptions,{lineWidth:0,animationLimit:500,joinBy:"hc-key",tooltip:{pointFormat:"{point.name}: {point.z}"}}),p}(W);return E(T.prototype,{type:"mapbubble",axisTypes:["colorAxis"],getProjectedBounds:G.getProjectedBounds,isCartesian:!1,pointArrayMap:["z"],pointClass:R,processData:G.processData,projectPoint:D.projectPoint,setData:G.setData,setOptions:G.setOptions,updateData:G.updateData,useMapGeometry:!0,xyFromShape:!0}),U.registerSeriesType("mapbubble",T),T}),rt(N,"Series/Heatmap/HeatmapPoint.js",[N["Core/Series/SeriesRegistry.js"],N["Core/Utilities.js"]],function(W,R){var U,Y=this&&this.__extends||(U=function(x,T){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,p){u.__proto__=p}||function(u,p){for(var g in p)p.hasOwnProperty(g)&&(u[g]=p[g])},U(x,T)},function(x,T){function u(){this.constructor=x}U(x,T),x.prototype=T===null?Object.create(T):(u.prototype=T.prototype,new u)}),Z=W.seriesTypes.scatter.prototype.pointClass,q=R.clamp,$=R.defined,G=R.extend,D=R.pick,E=function(x){function T(){var u=x!==null&&x.apply(this,arguments)||this;return u.options=void 0,u.series=void 0,u.value=void 0,u.x=void 0,u.y=void 0,u}return Y(T,x),T.prototype.applyOptions=function(u,p){return(this.isNull||this.value===null)&&delete this.color,x.prototype.applyOptions.call(this,u,p),this.formatPrefix=this.isNull||this.value===null?"null":"point",this},T.prototype.getCellAttributes=function(){var u=this,p=u.series,g=p.options,v=(g.colsize||1)/2,y=(g.rowsize||1)/2,C=p.xAxis,P=p.yAxis,L=u.options.marker||p.options.marker,M=p.pointPlacementToXValue(),f=D(u.pointPadding,g.pointPadding,0),b={x1:q(Math.round(C.len-C.translate(u.x-v,!1,!0,!1,!0,-M)),-C.len,2*C.len),x2:q(Math.round(C.len-C.translate(u.x+v,!1,!0,!1,!0,-M)),-C.len,2*C.len),y1:q(Math.round(P.translate(u.y-y,!1,!0,!1,!0)),-P.len,2*P.len),y2:q(Math.round(P.translate(u.y+y,!1,!0,!1,!0)),-P.len,2*P.len)};return[["width","x"],["height","y"]].forEach(function(l){var h=l[0],e=l[1],r=e+"1",o=e+"2",i=Math.abs(b[r]-b[o]),c=L&&L.lineWidth||0,a=Math.abs(b[r]+b[o])/2,s=L&&L[h];if($(s)&&s<i){var m=s/2+c/2;b[r]=a-m,b[o]=a+m}f&&(e==="y"&&(r=o,o=e+"1"),b[r]+=f,b[o]-=f)}),b},T.prototype.haloPath=function(u){if(!u)return[];var p=this.shapeArgs||{},g=p.x,v=g===void 0?0:g,y=p.y,C=y===void 0?0:y,P=p.width,L=P===void 0?0:P,M=p.height,f=M===void 0?0:M;return[["M",v-u,C-u],["L",v-u,C+f+u],["L",v+L+u,C+f+u],["L",v+L+u,C-u],["Z"]]},T.prototype.isValid=function(){return this.value!==1/0&&this.value!==-1/0},T}(Z);return G(E.prototype,{dataLabelOnNull:!0,moveToTopOnHover:!0,ttBelow:!1}),E}),rt(N,"Series/Heatmap/HeatmapSeries.js",[N["Core/Color/Color.js"],N["Series/ColorMapComposition.js"],N["Series/Heatmap/HeatmapPoint.js"],N["Core/Legend/LegendSymbol.js"],N["Core/Series/SeriesRegistry.js"],N["Core/Renderer/SVG/SVGRenderer.js"],N["Core/Utilities.js"]],function(W,R,U,Y,Z,q,$){var G,D=this&&this.__extends||(G=function(M,f){return G=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,l){b.__proto__=l}||function(b,l){for(var h in l)l.hasOwnProperty(h)&&(b[h]=l[h])},G(M,f)},function(M,f){function b(){this.constructor=M}G(M,f),M.prototype=f===null?Object.create(f):(b.prototype=f.prototype,new b)}),E=Z.series,x=Z.seriesTypes,T=x.column,u=x.scatter,p=q.prototype.symbols,g=$.extend,v=$.fireEvent,y=$.isNumber,C=$.merge,P=$.pick,L=function(M){function f(){var b=M!==null&&M.apply(this,arguments)||this;return b.colorAxis=void 0,b.data=void 0,b.options=void 0,b.points=void 0,b.valueMax=NaN,b.valueMin=NaN,b}return D(f,M),f.prototype.drawPoints=function(){var b=this;((this.options.marker||{}).enabled||this._hasPointMarkers)&&(E.prototype.drawPoints.call(this),this.points.forEach(function(l){l.graphic&&(l.graphic[b.chart.styledMode?"css":"animate"](b.colorAttribs(l)),l.value===null&&l.graphic.addClass("highcharts-null-point"))}))},f.prototype.getExtremes=function(){var b=E.prototype.getExtremes.call(this,this.valueData),l=b.dataMin,h=b.dataMax;return y(l)&&(this.valueMin=l),y(h)&&(this.valueMax=h),E.prototype.getExtremes.call(this)},f.prototype.getValidPoints=function(b,l){return E.prototype.getValidPoints.call(this,b,l,!0)},f.prototype.hasData=function(){return!!this.processedXData.length},f.prototype.init=function(){M.prototype.init.apply(this,arguments);var b=this.options;b.pointRange=P(b.pointRange,b.colsize||1),this.yAxis.axisPointRange=b.rowsize||1,p.ellipse=p.circle,b.marker&&(b.marker.r=b.borderRadius)},f.prototype.markerAttribs=function(b,l){var h=b.shapeArgs||{};if(b.hasImage)return{x:b.plotX,y:b.plotY};if(l&&l!=="normal"){var e=b.options.marker||{},r=this.options.marker||{},o=r.states&&r.states[l]||{},i=e.states&&e.states[l]||{},c=(i.width||o.width||h.width||0)+(i.widthPlus||o.widthPlus||0),a=(i.height||o.height||h.height||0)+(i.heightPlus||o.heightPlus||0);return{x:(h.x||0)+((h.width||0)-c)/2,y:(h.y||0)+((h.height||0)-a)/2,width:c,height:a}}return h},f.prototype.pointAttribs=function(b,l){var h=this,e=E.prototype.pointAttribs.call(h,b,l),r=h.options||{},o=h.chart.options.plotOptions||{},i=o.series||{},c=o.heatmap||{},a=b&&b.options.borderColor||r.borderColor||c.borderColor||i.borderColor,s=b&&b.options.borderWidth||r.borderWidth||c.borderWidth||i.borderWidth||e["stroke-width"];if(e.stroke=b&&b.marker&&b.marker.lineColor||r.marker&&r.marker.lineColor||a||this.color,e["stroke-width"]=s,l&&l!=="normal"){var m=C(r.states&&r.states[l],r.marker&&r.marker.states&&r.marker.states[l],b&&b.options.states&&b.options.states[l]||{});e.fill=m.color||W.parse(e.fill).brighten(m.brightness||0).get(),e.stroke=m.lineColor||e.stroke}return e},f.prototype.translate=function(){var b=this,l=b.options,h=l.marker&&l.marker.symbol||"rect",e=p[h]?h:"rect",r=["circle","square"].indexOf(e)!==-1;b.generatePoints(),b.points.forEach(function(o){var i=o.getCellAttributes(),c=Math.min(i.x1,i.x2),a=Math.min(i.y1,i.y2),s=Math.max(Math.abs(i.x2-i.x1),0),m=Math.max(Math.abs(i.y2-i.y1),0);if(o.hasImage=(o.marker&&o.marker.symbol||h||"").indexOf("url")===0,r){var A=Math.abs(s-m);c=Math.min(i.x1,i.x2)+(s<m?0:A/2),a=Math.min(i.y1,i.y2)+(s<m?A/2:0),s=m=Math.min(s,m)}o.hasImage&&(o.marker={width:s,height:m}),o.plotX=o.clientX=(i.x1+i.x2)/2,o.plotY=(i.y1+i.y2)/2,o.shapeType="path",o.shapeArgs=C(!0,{x:c,y:a,width:s,height:m},{d:p[e](c,a,s,m,{r:l.borderRadius})})}),v(b,"afterTranslate")},f.defaultOptions=C(u.defaultOptions,{animation:!1,borderRadius:0,borderWidth:0,nullColor:"#f7f7f7",dataLabels:{formatter:function(){var b=this.series.chart.numberFormatter,l=this.point.value;return y(l)?b(l,-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}}}),f}(u);return g(L.prototype,{axisTypes:R.seriesMembers.axisTypes,colorKey:R.seriesMembers.colorKey,directTouch:!0,getExtremesFromAll:!0,parallelArrays:R.seriesMembers.parallelArrays,pointArrayMap:["y","value"],pointClass:U,specialGroup:"group",trackerGroups:R.seriesMembers.trackerGroups,alignDataLabel:T.prototype.alignDataLabel,colorAttribs:R.seriesMembers.colorAttribs,drawLegendSymbol:Y.drawRectangle,getSymbol:E.prototype.getSymbol}),R.compose(L),Z.registerSeriesType("heatmap",L),L}),rt(N,"masters/modules/map.src.js",[N["Core/Globals.js"],N["Core/Axis/Color/ColorAxis.js"],N["Series/MapBubble/MapBubbleSeries.js"],N["Core/Chart/MapChart.js"],N["Maps/MapView.js"],N["Maps/Projection.js"]],function(W,R,U,Y,Z,q){var $=W;$.ColorAxis=R,$.MapChart=Y,$.mapChart=$.Map=Y.mapChart,$.MapView=Z,$.maps=Y.maps,$.Projection=q,R.compose($.Chart,$.Fx,$.Legend,$.Series),U.compose($.Axis,$.Chart,$.Legend,$.Series)})},J.exports?(pt.default=pt,J.exports=pt):(at=[nt(8840)],(lt=function(ft){return pt(ft),pt.Highcharts=ft,pt}.apply(it,at))===void 0||(J.exports=lt))},1548:(J,it,nt)=>{var at,lt,pt;pt=function(ft){var N=ft?ft._modules:{};function rt(W,R,U,Y){W.hasOwnProperty(R)||(W[R]=Y.apply(null,U),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:R,module:W[R]}})))}rt(N,"Series/ColorMapComposition.js",[N["Core/Series/SeriesRegistry.js"],N["Core/Utilities.js"]],function(W,R){var U,Y=W.seriesTypes.column.prototype,Z=R.addEvent,q=R.defined;return function($){var G=[];function D(E){var x=this;x.moveToTopOnHover&&x.graphic&&x.graphic.attr({zIndex:E&&E.state==="hover"?1:0})}$.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))}},$.seriesMembers={colorKey:"value",axisTypes:["xAxis","yAxis","colorAxis"],parallelArrays:["x","y","value"],pointArrayMap:["value"],trackerGroups:["group","markerGroup","dataLabelsGroup"],colorAttribs:function(E){var x={};return!q(E.color)||E.state&&E.state!=="normal"||(x[this.colorProp||"fill"]=E.color),x},pointAttribs:Y.pointAttribs},$.compose=function(E){var x=E.prototype.pointClass;return G.indexOf(x)===-1&&(G.push(x),Z(x,"afterSetState",D)),E}}(U||(U={})),U}),rt(N,"Series/Treemap/TreemapAlgorithmGroup.js",[],function(){return function(){function W(R,U,Y,Z){this.height=R,this.width=U,this.plot=Z,this.direction=Y,this.startDirection=Y,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(q,$){return Math.max(q/$,$/q)}}}return W.prototype.addElement=function(R){this.lP.total=this.elArr[this.elArr.length-1],this.total=this.total+R,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(R)},W.prototype.reset=function(){this.nW=0,this.lW=0,this.elArr=[],this.total=0},W}()}),rt(N,"Series/DrawPointUtilities.js",[N["Core/Utilities.js"]],function(W){return{draw:function(R,U){var Y=U.animatableAttribs,Z=U.onComplete,q=U.css,$=U.renderer,G=R.series&&R.series.chart.hasRendered?void 0:R.series&&R.series.options.animation,D=R.graphic;if(U.attribs=U.attribs||{},U.attribs.class=R.getClassName(),R.shouldDraw())D||(R.graphic=D=U.shapeType==="text"?$.text():$[U.shapeType](U.shapeArgs||{}),D.add(U.group)),q&&D.css(q),D.attr(U.attribs).animate(Y,!U.isNew&&G,Z);else if(D){var E=function(){R.graphic=D=D&&D.destroy(),typeof Z=="function"&&Z()};Object.keys(Y).length?D.animate(Y,void 0,function(){return E()}):E()}}}}),rt(N,"Series/Treemap/TreemapPoint.js",[N["Series/DrawPointUtilities.js"],N["Core/Series/SeriesRegistry.js"],N["Core/Utilities.js"]],function(W,R,U){var Y,Z=this&&this.__extends||(Y=function(p,g){return Y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,y){v.__proto__=y}||function(v,y){for(var C in y)y.hasOwnProperty(C)&&(v[C]=y[C])},Y(p,g)},function(p,g){function v(){this.constructor=p}Y(p,g),p.prototype=g===null?Object.create(g):(v.prototype=g.prototype,new v)}),q=R.series.prototype.pointClass,$=R.seriesTypes,G=$.pie.prototype.pointClass,D=$.scatter.prototype.pointClass,E=U.extend,x=U.isNumber,T=U.pick,u=function(p){function g(){var v=p!==null&&p.apply(this,arguments)||this;return v.name=void 0,v.node=void 0,v.options=void 0,v.series=void 0,v.shapeType="rect",v.value=void 0,v}return Z(g,p),g.prototype.draw=function(v){W.draw(this,v)},g.prototype.getClassName=function(){var v=q.prototype.getClassName.call(this),y=this.series,C=y.options;return this.node.level<=y.nodeMap[y.rootNode].level?v+=" highcharts-above-level":this.node.isLeaf||T(C.interactByLeaf,!C.allowTraversingTree)?this.node.isLeaf||(v+=" highcharts-internal-node"):v+=" highcharts-internal-node-interactive",v},g.prototype.isValid=function(){return!!(this.id||x(this.value))},g.prototype.setState=function(v){q.prototype.setState.call(this,v),this.graphic&&this.graphic.attr({zIndex:v==="hover"?1:0})},g.prototype.shouldDraw=function(){return x(this.plotY)&&this.y!==null},g}(D);return E(u.prototype,{setVisible:G.prototype.setVisible}),u}),rt(N,"Series/Treemap/TreemapUtilities.js",[N["Core/Utilities.js"]],function(W){var R,U=W.objectEach;return function(Y){Y.AXIS_MAX=100,Y.isBoolean=function(Z){return typeof Z=="boolean"},Y.eachObject=function(Z,q,$){$=$||this,U(Z,function(G,D){q.call($,G,D,Z)})},Y.recursive=function Z(q,$,G){var D;G===void 0&&(G=this),(D=$.call(G,q))!==!1&&Z(D,$,G)}}(R||(R={})),R}),rt(N,"Series/TreeUtilities.js",[N["Core/Color/Color.js"],N["Core/Utilities.js"]],function(W,R){var U=R.extend,Y=R.isArray,Z=R.isNumber,q=R.isObject,$=R.merge,G=R.pick;return{getColor:function(D,E){var x,T,u,p,g,v,y=E.index,C=E.mapOptionsToLevel,P=E.parentColor,L=E.parentColorIndex,M=E.series,f=E.colors,b=E.siblings,l=M.points,h=M.chart.options.chart;return D&&(x=l[D.i],T=C[D.level]||{},x&&T.colorByPoint&&(p=x.index%(f?f.length:h.colorCount),u=f&&f[p]),M.chart.styledMode||(g=G(x&&x.options.color,T&&T.color,u,P&&function(e){var r=T&&T.colorVariation;return r&&r.key==="brightness"&&y&&b?W.parse(e).brighten(r.to*(y/b)).get():e}(P),M.color)),v=G(x&&x.options.colorIndex,T&&T.colorIndex,p,L,E.colorIndex)),{color:g,colorIndex:v}},getLevelOptions:function(D){var E,x,T,u,p,g,v={};if(q(D))for(u=Z(D.from)?D.from:1,g=D.levels,x={},E=q(D.defaults)?D.defaults:{},Y(g)&&(x=g.reduce(function(y,C){var P,L,M;return q(C)&&Z(C.level)&&(M=$({},C),L=G(M.levelIsConstant,E.levelIsConstant),delete M.levelIsConstant,delete M.level,P=C.level+(L?0:u-1),q(y[P])?$(!0,y[P],M):y[P]=M),y},{})),p=Z(D.to)?D.to:1,T=0;T<=p;T++)v[T]=$({},E,q(x[T])?x[T]:{});return v},setTreeValues:function D(E,x){var T=x.before,u=x.idRoot,p=x.mapIdToNode[u],g=x.levelIsConstant!==!1,v=x.points[E.i],y=v&&v.options||{},C=[],P=0;E.levelDynamic=E.level-(g?0:p.level),E.name=G(v&&v.name,""),E.visible=u===E.id||x.visible===!0,typeof T=="function"&&(E=T(E,x)),E.children.forEach(function(M,f){var b=U({},x);U(b,{index:f,siblings:E.children.length,visible:E.visible}),M=D(M,b),C.push(M),M.visible&&(P+=M.val)});var L=G(y.value,P);return E.visible=L>=0&&(P>0||E.visible),E.children=C,E.childrenTotal=P,E.isLeaf=E.visible&&!P,E.val=L,E},updateRootId:function(D){var E,x;return q(D)&&(x=q(D.options)?D.options:{},E=G(D.rootNode,x.rootId,""),q(D.userOptions)&&(D.userOptions.rootId=E),D.rootNode=E),E}}}),rt(N,"Extensions/Breadcrumbs.js",[N["Core/Chart/Chart.js"],N["Core/Defaults.js"],N["Core/Globals.js"],N["Core/Utilities.js"],N["Core/FormatUtilities.js"]],function(W,R,U,Y,Z){var q=R.defaultOptions,$=Z.format,G=Y.addEvent,D=Y.objectEach,E=Y.extend,x=Y.fireEvent,T=Y.merge,u=Y.pick,p=Y.defined,g=Y.isString;E(q.lang,{mainBreadcrumb:"Main"});var v=function(){function y(C,P){this.group=void 0,this.list=[],this.elementList={},this.isDirty=!0,this.level=0,this.options=void 0;var L=T(C.options.drilldown&&C.options.drilldown.drillUpButton,y.defaultBreadcrumbsOptions,C.options.navigation&&C.options.navigation.breadcrumbs,P);this.chart=C,this.options=L||{}}return y.prototype.updateProperties=function(C){this.setList(C),this.setLevel(),this.isDirty=!0},y.prototype.setList=function(C){this.list=C},y.prototype.setLevel=function(){this.level=this.list.length&&this.list.length-1},y.prototype.getLevel=function(){return this.level},y.prototype.getButtonText=function(C){var P=this.chart,L=this.options,M=P.options.lang,f=u(L.format,L.showFullPath?"{level.name}":"← {level.name}"),b=M&&u(M.drillUpText,M.mainBreadcrumb),l=L.formatter&&L.formatter(C)||$(f,{level:C.levelOptions},P)||"";return(g(l)&&!l.length||l==="← ")&&p(b)&&(l=L.showFullPath?b:"← "+b),l},y.prototype.redraw=function(){this.isDirty&&this.render(),this.group&&this.group.align(),this.isDirty=!1},y.prototype.render=function(){var C=this,P=C.chart,L=C.options;!C.group&&L&&(C.group=P.renderer.g("breadcrumbs-group").addClass("highcharts-no-tooltip highcharts-breadcrumbs").attr({zIndex:L.zIndex}).add()),L.showFullPath?this.renderFullPathButtons():this.renderSingleButton(),this.alignBreadcrumbsGroup()},y.prototype.renderFullPathButtons=function(){this.destroySingleButton(),this.resetElementListState(),this.updateListElements(),this.destroyListElements()},y.prototype.renderSingleButton=function(){var C=this,P=C.chart,L=C.list,M=C.options.buttonSpacing;this.destroyListElements();var f=C.group?C.group.getBBox().width:M,b=M,l=L[L.length-2];!P.drillUpButton&&this.level>0?P.drillUpButton=C.renderButton(l,f,b):P.drillUpButton&&(this.level>0?this.updateSingleButton():this.destroySingleButton())},y.prototype.alignBreadcrumbsGroup=function(C){var P=this;if(P.group){var L=P.options,M=L.buttonTheme,f=L.position,b=L.relativeTo==="chart"||L.relativeTo==="spacingBox"?void 0:"scrollablePlotBox",l=P.group.getBBox(),h=2*(M.padding||0)+L.buttonSpacing;f.width=l.width+h,f.height=l.height+h;var e=T(f);C&&(e.x+=C),P.options.rtl&&(e.x+=f.width),e.y=u(e.y,this.yOffset,0),P.group.align(e,!0,b)}},y.prototype.renderButton=function(C,P,L){var M=this,f=this.chart,b=M.options,l=T(b.buttonTheme),h=f.renderer.button(M.getButtonText(C),P,L,function(e){var r,o=b.events&&b.events.click;o&&(r=o.call(M,e,C)),r!==!1&&(b.showFullPath?e.newLevel=C.level:e.newLevel=M.level-1,x(M,"up",e))},l).addClass("highcharts-breadcrumbs-button").add(M.group);return f.styledMode||h.attr(b.style),h},y.prototype.renderSeparator=function(C,P){var L=this.chart,M=this.options.separator,f=L.renderer.label(M.text,C,P,void 0,void 0,void 0,!1).addClass("highcharts-breadcrumbs-separator").add(this.group);return L.styledMode||f.css(M.style),f},y.prototype.update=function(C){T(!0,this.options,C),this.destroy(),this.isDirty=!0},y.prototype.updateSingleButton=function(){var C=this.chart,P=this.list[this.level-1];C.drillUpButton&&C.drillUpButton.attr({text:this.getButtonText(P)})},y.prototype.destroy=function(){this.destroySingleButton(),this.destroyListElements(!0),this.group&&this.group.destroy(),this.group=void 0},y.prototype.destroyListElements=function(C){var P=this.elementList;D(P,function(L,M){!C&&P[M].updated||((L=P[M]).button&&L.button.destroy(),L.separator&&L.separator.destroy(),delete L.button,delete L.separator,delete P[M])}),C&&(this.elementList={})},y.prototype.destroySingleButton=function(){this.chart.drillUpButton&&(this.chart.drillUpButton.destroy(),this.chart.drillUpButton=void 0)},y.prototype.resetElementListState=function(){D(this.elementList,function(C){C.updated=!1})},y.prototype.updateListElements=function(){var C,P=this,L=P.elementList,M=P.options.buttonSpacing,f=P.list,b=P.options.rtl,l=b?-1:1,h=function(i,c){return l*i.getBBox().width+l*c},e=function(i,c,a){i.translate(c-i.getBBox().width,a)},r=P.group?h(P.group,M):M,o=M;f.forEach(function(i,c){var a,s,m=c===f.length-1;L[i.level]?(a=(C=L[i.level]).button,C.separator||m?C.separator&&m&&(C.separator.destroy(),delete C.separator):(r+=l*M,C.separator=P.renderSeparator(r,o),b&&e(C.separator,r,o),r+=h(C.separator,M)),L[i.level].updated=!0):(a=P.renderButton(i,r,o),b&&e(a,r,o),r+=h(a,M),m||(s=P.renderSeparator(r,o),b&&e(s,r,o),r+=h(s,M)),L[i.level]={button:a,separator:s,updated:!0}),a&&a.setState(m?2:0)})},y.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},y}();return U.Breadcrumbs||(U.Breadcrumbs=v,G(W,"getMargins",function(){var y=this.breadcrumbs;if(y&&!y.options.floating&&y.level){var C=y.options,P=C.buttonTheme,L=(P.height||0)+2*(P.padding||0)+C.buttonSpacing,M=C.position.verticalAlign;M==="bottom"?(this.marginBottom=(this.marginBottom||0)+L,y.yOffset=L):M!=="middle"?(this.plotTop+=L,y.yOffset=-L):y.yOffset=void 0}}),G(W,"redraw",function(){this.breadcrumbs&&this.breadcrumbs.redraw()}),G(W,"destroy",function(){this.breadcrumbs&&(this.breadcrumbs.destroy(),this.breadcrumbs=void 0)}),G(W,"afterShowResetZoom",function(){var y=this;if(y.breadcrumbs){var C=y.resetZoomButton&&y.resetZoomButton.getBBox(),P=y.breadcrumbs.options;C&&P.position.align==="right"&&P.relativeTo==="plotBox"&&y.breadcrumbs.alignBreadcrumbsGroup(-C.width-P.buttonSpacing)}}),G(W,"selection",function(y){y.resetSelection===!0&&this.breadcrumbs&&this.breadcrumbs.alignBreadcrumbsGroup()})),v}),rt(N,"Series/Treemap/TreemapComposition.js",[N["Core/Series/SeriesRegistry.js"],N["Series/Treemap/TreemapUtilities.js"],N["Core/Utilities.js"]],function(W,R,U){var Y=W.series,Z=U.addEvent,q=U.extend,$=!1;Z(Y,"afterBindAxes",function(){var G,D=this,E=D.xAxis,x=D.yAxis;E&&x&&(D.is("treemap")?(G={endOnTick:!1,gridLineWidth:0,lineWidth:0,min:0,minPadding:0,max:R.AXIS_MAX,maxPadding:0,startOnTick:!1,title:void 0,tickPositions:[]},q(x.options,G),q(E.options,G),$=!0):$&&(x.setOptions(x.userOptions),E.setOptions(E.userOptions),$=!1))})}),rt(N,"Series/Treemap/TreemapNode.js",[],function(){return function(){function W(){this.childrenTotal=0,this.visible=!1}return W.prototype.init=function(R,U,Y,Z,q,$,G){return this.id=R,this.i=U,this.children=Y,this.height=Z,this.level=q,this.series=$,this.parent=G,this},W}()}),rt(N,"Series/Treemap/TreemapSeries.js",[N["Core/Color/Color.js"],N["Series/ColorMapComposition.js"],N["Core/Globals.js"],N["Core/Legend/LegendSymbol.js"],N["Core/Series/SeriesRegistry.js"],N["Series/Treemap/TreemapAlgorithmGroup.js"],N["Series/Treemap/TreemapPoint.js"],N["Series/Treemap/TreemapUtilities.js"],N["Series/TreeUtilities.js"],N["Extensions/Breadcrumbs.js"],N["Core/Utilities.js"],N["Series/Treemap/TreemapNode.js"]],function(W,R,U,Y,Z,q,$,G,D,E,x,T){var u,p=this&&this.__extends||(u=function(k,z){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(F,j){F.__proto__=j}||function(F,j){for(var I in j)j.hasOwnProperty(I)&&(F[I]=j[I])},u(k,z)},function(k,z){function F(){this.constructor=k}u(k,z),k.prototype=z===null?Object.create(z):(F.prototype=z.prototype,new F)}),g=W.parse,v=U.noop,y=Z.series,C=Z.seriesTypes,P=C.column,L=C.heatmap,M=C.scatter,f=D.getColor,b=D.getLevelOptions,l=D.updateRootId,h=x.addEvent,e=x.correctFloat,r=x.defined,o=x.error,i=x.extend,c=x.fireEvent,a=x.isArray,s=x.isObject,m=x.isString,A=x.merge,O=x.pick,d=x.stableSort,w=function(k){function z(){var F=k!==null&&k.apply(this,arguments)||this;return F.axisRatio=void 0,F.data=void 0,F.mapOptionsToLevel=void 0,F.nodeMap=void 0,F.nodeList=void 0,F.options=void 0,F.points=void 0,F.rootNode=void 0,F.tree=void 0,F.level=void 0,F}return p(z,k),z.prototype.algorithmCalcPoints=function(F,j,I,_){var V,X,H,Q,et,tt=I.lW,st=I.lH,ct=I.plot,gt=0,mt=I.elArr.length-1;j?(tt=I.nW,st=I.nH):et=I.elArr[I.elArr.length-1],I.elArr.forEach(function(bt){(j||gt<mt)&&(I.direction===0?(V=ct.x,X=ct.y,Q=bt/(H=tt)):(V=ct.x,X=ct.y,H=bt/(Q=st)),_.push({x:V,y:X,width:H,height:e(Q)}),I.direction===0?ct.y=ct.y+Q:ct.x=ct.x+H),gt+=1}),I.reset(),I.direction===0?I.width=I.width-tt:I.height=I.height-st,ct.y=ct.parent.y+(ct.parent.height-I.height),ct.x=ct.parent.x+(ct.parent.width-I.width),F&&(I.direction=1-I.direction),j||I.addElement(et)},z.prototype.algorithmFill=function(F,j,I){var _,V,X,H,Q,et=[],tt=j.direction,st=j.x,ct=j.y,gt=j.width,mt=j.height;return I.forEach(function(bt){_=j.width*j.height*(bt.val/j.val),V=st,X=ct,tt===0?(gt-=H=_/(Q=mt),st+=H):(mt-=Q=_/(H=gt),ct+=Q),et.push({x:V,y:X,width:H,height:Q}),F&&(tt=1-tt)}),et},z.prototype.algorithmLowAspectRatio=function(F,j,I){var _,V=[],X=this,H={x:j.x,y:j.y,parent:j},Q=j.direction,et=0,tt=I.length-1,st=new q(j.height,j.width,Q,H);return I.forEach(function(ct){_=j.width*j.height*(ct.val/j.val),st.addElement(_),st.lP.nR>st.lP.lR&&X.algorithmCalcPoints(F,!1,st,V,H),et===tt&&X.algorithmCalcPoints(F,!0,st,V,H),et+=1}),V},z.prototype.alignDataLabel=function(F,j,I){var _=I.style;_&&!r(_.textOverflow)&&j.text&&j.getBBox().width>j.text.textWidth&&j.css({textOverflow:"ellipsis",width:_.width+="px"}),P.prototype.alignDataLabel.apply(this,arguments),F.dataLabel&&F.dataLabel.attr({zIndex:(F.node.zIndex||0)+1})},z.prototype.calculateChildrenAreas=function(F,j){var I,_,V=this,X=V.options,H=V.mapOptionsToLevel[F.level+1],Q=O(V[H&&H.layoutAlgorithm]&&H.layoutAlgorithm,X.layoutAlgorithm),et=X.alternateStartingDirection;_=F.children.filter(function(tt){return!tt.ignore}),H&&H.layoutStartingDirection&&(j.direction=H.layoutStartingDirection==="vertical"?0:1),I=V[Q](j,_),_.forEach(function(tt,st){var ct=I[st];tt.values=A(ct,{val:tt.childrenTotal,direction:et?1-j.direction:j.direction}),tt.pointValues=A(ct,{x:ct.x/V.axisRatio,y:G.AXIS_MAX-ct.y-ct.height,width:ct.width/V.axisRatio}),tt.children.length&&V.calculateChildrenAreas(tt,tt.values)})},z.prototype.createList=function(F){var j=this.chart,I=j.breadcrumbs,_=[];if(I){var V=0;_.push({level:V,levelOptions:j.series[0]});for(var X=F.target.nodeMap[F.newRootId],H=[];X.parent||X.parent==="";)H.push(X),X=F.target.nodeMap[X.parent];H.reverse().forEach(function(Q){_.push({level:++V,levelOptions:Q})}),_.length<=1&&(_.length=0)}return _},z.prototype.drawDataLabels=function(){var F,j,I=this,_=I.mapOptionsToLevel;I.points.filter(function(V){return V.node.visible}).forEach(function(V){j=_[V.node.level],F={style:{}},V.node.isLeaf||(F.enabled=!1),j&&j.dataLabels&&(F=A(F,j.dataLabels),I._hasPointLabels=!0),V.shapeArgs&&(F.style.width=V.shapeArgs.width,V.dataLabel&&V.dataLabel.css({width:V.shapeArgs.width+"px"})),V.dlOptions=A(F,V.options.dataLabels)}),y.prototype.drawDataLabels.call(this)},z.prototype.drawPoints=function(F){F===void 0&&(F=this.points);var j=this,I=j.chart,_=I.renderer,V=I.styledMode,X=j.options,H=V?{}:X.shadow,Q=X.borderRadius,et=I.pointCount<X.animationLimit,tt=X.allowTraversingTree;F.forEach(function(st){var ct=st.node.levelDynamic,gt={},mt={},bt={},yt="level-group-"+st.node.level,dt=!!st.graphic,ot=et&&dt,ht=st.shapeArgs;st.shouldDraw()&&(st.isInside=!0,Q&&(mt.r=Q),A(!0,ot?gt:mt,dt?ht:{},V?{}:j.pointAttribs(st,st.selected?"select":void 0)),j.colorAttribs&&V&&i(bt,j.colorAttribs(st)),j[yt]||(j[yt]=_.g(yt).attr({zIndex:1e3-(ct||0)}).add(j.group),j[yt].survive=!0)),st.draw({animatableAttribs:gt,attribs:mt,css:bt,group:j[yt],renderer:_,shadow:H,shapeArgs:ht,shapeType:st.shapeType}),tt&&st.graphic&&(st.drillId=X.interactByLeaf?j.drillToByLeaf(st):j.drillToByGroup(st))})},z.prototype.drillToByGroup=function(F){var j=!1;return F.node.level-this.nodeMap[this.rootNode].level!=1||F.node.isLeaf||(j=F.id),j},z.prototype.drillToByLeaf=function(F){var j,I=this,_=!1;if(F.node.parent!==I.rootNode&&F.node.isLeaf)for(j=F.node;!_;)(j=I.nodeMap[j.parent]).parent===I.rootNode&&(_=j.id);return _},z.prototype.drillToNode=function(F,j){o(32,!1,void 0,{"treemap.drillToNode":"use treemap.setRootNode"}),this.setRootNode(F,j)},z.prototype.drillUp=function(){var F=this,j=F.nodeMap[F.rootNode];j&&m(j.parent)&&F.setRootNode(j.parent,!0,{trigger:"traverseUpButton"})},z.prototype.getExtremes=function(){var F=y.prototype.getExtremes.call(this,this.colorValueData),j=F.dataMin,I=F.dataMax;return this.valueMin=j,this.valueMax=I,y.prototype.getExtremes.call(this)},z.prototype.getListOfParents=function(F,j){var I=a(F)?F:[],_=a(j)?j:[],V=I.reduce(function(X,H,Q){var et=O(H.parent,"");return X[et]===void 0&&(X[et]=[]),X[et].push(Q),X},{"":[]});return G.eachObject(V,function(X,H,Q){H!==""&&_.indexOf(H)===-1&&(X.forEach(function(et){Q[""].push(et)}),delete Q[H])}),V},z.prototype.getTree=function(){var F=this,j=this.data.map(function(_){return _.id}),I=F.getListOfParents(this.data,j);return F.nodeMap={},F.nodeList=[],F.buildTree("",-1,0,I)},z.prototype.buildTree=function(F,j,I,_,V){var X,H,Q=this,et=[],tt=Q.points[j],st=0;return(_[F]||[]).forEach(function(ct){H=Q.buildTree(Q.points[ct].id,ct,I+1,_,F),st=Math.max(H.height+1,st),et.push(H)}),X=new Q.NodeClass().init(F,j,et,st,I,Q,V),et.forEach(function(ct){ct.parentNode=X}),Q.nodeMap[X.id]=X,Q.nodeList.push(X),tt&&(tt.node=X,X.point=tt),X},z.prototype.hasData=function(){return!!this.processedXData.length},z.prototype.init=function(F,j){var I,_=this,V=A(j.drillUpButton,j.breadcrumbs);I=h(_,"setOptions",function(X){var H=X.userOptions;r(H.allowDrillToNode)&&!r(H.allowTraversingTree)&&(H.allowTraversingTree=H.allowDrillToNode,delete H.allowDrillToNode),r(H.drillUpButton)&&!r(H.traverseUpButton)&&(H.traverseUpButton=H.drillUpButton,delete H.drillUpButton)}),y.prototype.init.call(_,F,j),delete _.opacity,_.eventsToUnbind.push(I),_.options.allowTraversingTree&&(_.eventsToUnbind.push(h(_,"click",_.onClickDrillToNode)),_.eventsToUnbind.push(h(_,"setRootNode",function(X){var H=_.chart;H.breadcrumbs&&H.breadcrumbs.updateProperties(_.createList(X))})),_.eventsToUnbind.push(h(_,"update",function(X,H){var Q=this.chart.breadcrumbs;Q&&X.options.breadcrumbs&&Q.update(X.options.breadcrumbs)})),_.eventsToUnbind.push(h(_,"destroy",function(X){var H=this.chart;H.breadcrumbs&&(H.breadcrumbs.destroy(),X.keepEventsForUpdate||(H.breadcrumbs=void 0))}))),F.breadcrumbs||(F.breadcrumbs=new E(F,V)),_.eventsToUnbind.push(h(F.breadcrumbs,"up",function(X){for(var H=this.level-X.newLevel,Q=0;Q<H;Q++)_.drillUp()}))},z.prototype.onClickDrillToNode=function(F){var j=F.point,I=j&&j.drillId;m(I)&&(j.setState(""),this.setRootNode(I,!0,{trigger:"click"}))},z.prototype.pointAttribs=function(F,j){var I,_,V=s(this.mapOptionsToLevel)?this.mapOptionsToLevel:{},X=F&&V[F.node.level]||{},H=this.options,Q=j&&H.states&&H.states[j]||{},et=F&&F.getClassName()||"";return I={stroke:F&&F.borderColor||X.borderColor||Q.borderColor||H.borderColor,"stroke-width":O(F&&F.borderWidth,X.borderWidth,Q.borderWidth,H.borderWidth),dashstyle:F&&F.borderDashStyle||X.borderDashStyle||Q.borderDashStyle||H.borderDashStyle,fill:F&&F.color||this.color},et.indexOf("highcharts-above-level")!==-1?(I.fill="none",I["stroke-width"]=0):et.indexOf("highcharts-internal-node-interactive")!==-1?(_=O(Q.opacity,H.opacity),I.fill=g(I.fill).setOpacity(_).get(),I.cursor="pointer"):et.indexOf("highcharts-internal-node")!==-1?I.fill="none":j&&(I.fill=g(I.fill).brighten(Q.brightness).get()),I},z.prototype.setColorRecursive=function(F,j,I,_,V){var X,H,Q=this,et=Q&&Q.chart,tt=et&&et.options&&et.options.colors;F&&(X=f(F,{colors:tt,index:_,mapOptionsToLevel:Q.mapOptionsToLevel,parentColor:j,parentColorIndex:I,series:Q,siblings:V}),(H=Q.points[F.i])&&(H.color=X.color,H.colorIndex=X.colorIndex),(F.children||[]).forEach(function(st,ct){Q.setColorRecursive(st,X.color,X.colorIndex,ct,F.children.length)}))},z.prototype.setPointValues=function(){var F=this,j=F.points,I=F.xAxis,_=F.yAxis,V=F.chart.styledMode;j.forEach(function(X){var H=X.node,Q=H.pointValues,et=H.visible;if(Q&&et){var tt=Q.height,st=Q.width,ct=Q.x,gt=Q.y,mt=function(ut){return V?0:(F.pointAttribs(ut)["stroke-width"]||0)%2/2}(X),bt=Math.round(I.toPixels(ct,!0))-mt,yt=Math.round(I.toPixels(ct+st,!0))-mt,dt=Math.round(_.toPixels(gt,!0))-mt,ot=Math.round(_.toPixels(gt+tt,!0))-mt,ht={x:Math.min(bt,yt),y:Math.min(dt,ot),width:Math.abs(yt-bt),height:Math.abs(ot-dt)};X.plotX=ht.x+ht.width/2,X.plotY=ht.y+ht.height/2,X.shapeArgs=ht}else delete X.plotX,delete X.plotY})},z.prototype.setRootNode=function(F,j,I){var _=this,V=i({newRootId:F,previousRootId:_.rootNode,redraw:O(j,!0),series:_},I);c(_,"setRootNode",V,function(X){var H=X.series;H.idPreviousRoot=X.previousRootId,H.rootNode=X.newRootId,H.isDirty=!0,X.redraw&&H.chart.redraw()})},z.prototype.setState=function(F){this.options.inactiveOtherPoints=!0,y.prototype.setState.call(this,F,!1),this.options.inactiveOtherPoints=!1},z.prototype.setTreeValues=function(F){var j,I=this,_=I.options,V=I.rootNode,X=I.nodeMap[V],H=!G.isBoolean(_.levelIsConstant)||_.levelIsConstant,Q=0,et=[],tt=I.points[F.i];return F.children.forEach(function(st){st=I.setTreeValues(st),et.push(st),st.ignore||(Q+=st.val)}),d(et,function(st,ct){return(st.sortIndex||0)-(ct.sortIndex||0)}),j=O(tt&&tt.options.value,Q),tt&&(tt.value=j),i(F,{children:et,childrenTotal:Q,ignore:!(O(tt&&tt.visible,!0)&&j>0),isLeaf:F.visible&&!Q,levelDynamic:F.level-(H?0:X.level),name:O(tt&&tt.name,""),sortIndex:O(tt&&tt.sortIndex,-j),val:j}),F},z.prototype.sliceAndDice=function(F,j){return this.algorithmFill(!0,F,j)},z.prototype.squarified=function(F,j){return this.algorithmLowAspectRatio(!0,F,j)},z.prototype.strip=function(F,j){return this.algorithmLowAspectRatio(!1,F,j)},z.prototype.stripes=function(F,j){return this.algorithmFill(!1,F,j)},z.prototype.translate=function(){var F,j,I,_,V,X=this,H=X.options,Q=l(X);y.prototype.translate.call(X),_=X.tree=X.getTree(),F=X.nodeMap[Q],Q===""||F&&F.children.length||(X.setRootNode("",!1),Q=X.rootNode,F=X.nodeMap[Q]),X.mapOptionsToLevel=b({from:F.level+1,levels:H.levels,to:_.height,defaults:{levelIsConstant:X.options.levelIsConstant,colorByPoint:H.colorByPoint}}),G.recursive(X.nodeMap[X.rootNode],function(et){var tt=!1,st=et.parent;return et.visible=!0,(st||st==="")&&(tt=X.nodeMap[st]),tt}),G.recursive(X.nodeMap[X.rootNode].children,function(et){var tt=!1;return et.forEach(function(st){st.visible=!0,st.children.length&&(tt=(tt||[]).concat(st.children))}),tt}),X.setTreeValues(_),X.axisRatio=X.xAxis.len/X.yAxis.len,X.nodeMap[""].pointValues=j={x:0,y:0,width:G.AXIS_MAX,height:G.AXIS_MAX},X.nodeMap[""].values=I=A(j,{width:j.width*X.axisRatio,direction:H.layoutStartingDirection==="vertical"?0:1,val:_.val}),X.calculateChildrenAreas(_,I),X.colorAxis||H.colorByPoint||X.setColorRecursive(X.tree),H.allowTraversingTree&&(V=F.pointValues,X.xAxis.setExtremes(V.x,V.x+V.width,!1),X.yAxis.setExtremes(V.y,V.y+V.height,!1),X.xAxis.setScale(),X.yAxis.setScale()),X.setPointValues()},z.defaultOptions=A(M.defaultOptions,{allowTraversingTree:!1,animationLimit:250,borderRadius:0,showInLegend:!1,marker:void 0,colorByPoint:!1,dataLabels:{defer:!1,enabled:!0,formatter:function(){var F=this&&this.point?this.point:{};return m(F.name)?F.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:L?0:.1,halo:!1,opacity:.75,shadow:!1}}}),z}(M);return i(w.prototype,{buildKDTree:v,colorAttribs:R.seriesMembers.colorAttribs,colorKey:"colorValue",directTouch:!0,drawLegendSymbol:Y.drawRectangle,getExtremesFromAll:!0,getSymbol:v,optionalAxis:"colorAxis",parallelArrays:["x","y","value","colorValue"],pointArrayMap:["value"],pointClass:$,NodeClass:T,trackerGroups:["group","dataLabelsGroup"],utils:{recursive:G.recursive}}),R.compose(w),Z.registerSeriesType("treemap",w),w}),rt(N,"Series/Sunburst/SunburstPoint.js",[N["Core/Series/SeriesRegistry.js"],N["Core/Utilities.js"]],function(W,R){var U,Y=this&&this.__extends||(U=function(E,x){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,u){T.__proto__=u}||function(T,u){for(var p in u)u.hasOwnProperty(p)&&(T[p]=u[p])},U(E,x)},function(E,x){function T(){this.constructor=E}U(E,x),E.prototype=x===null?Object.create(x):(T.prototype=x.prototype,new T)}),Z=W.series.prototype.pointClass,q=W.seriesTypes.treemap.prototype.pointClass,$=R.correctFloat,G=R.extend,D=function(E){function x(){var T=E!==null&&E.apply(this,arguments)||this;return T.node=void 0,T.options=void 0,T.series=void 0,T.shapeExisting=void 0,T.shapeType=void 0,T}return Y(x,E),x.prototype.getDataLabelPath=function(T){var u,p=this.series.chart.renderer,g=this.shapeExisting,v=g.start,y=g.end,C=v+(y-v)/2,P=C<0&&C>-Math.PI||C>Math.PI,L=g.r+(T.options.distance||0);return v===-Math.PI/2&&$(y)===$(1.5*Math.PI)&&(v=-Math.PI+Math.PI/360,y=-Math.PI/360,P=!0),y-v>Math.PI&&(P=!1,u=!0),this.dataLabelPath&&(this.dataLabelPath=this.dataLabelPath.destroy()),this.dataLabelPath=p.arc({open:!0,longArc:u?1:0}).attr({start:P?v:y,end:P?y:v,clockwise:+P,x:g.x,y:g.y,r:(L+g.innerR)/2}).add(p.defs),this.dataLabelPath},x.prototype.isValid=function(){return!0},x}(q);return G(D.prototype,{getClassName:Z.prototype.getClassName,haloPath:Z.prototype.haloPath,setState:Z.prototype.setState}),D}),rt(N,"Series/Sunburst/SunburstUtilities.js",[N["Core/Series/SeriesRegistry.js"],N["Core/Utilities.js"]],function(W,R){var U,Y=W.seriesTypes.treemap,Z=R.isNumber,q=R.isObject,$=R.merge;return function(G){function D(E,x){var T,u=[];if(Z(E)&&Z(x)&&E<=x)for(T=E;T<=x;T++)u.push(T);return u}G.recursive=Y.prototype.utils.recursive,G.calculateLevelSizes=function(E,x){var T,u,p,g,v,y,C,P=q(x)?x:{},L=0;return q(E)&&(T=$({},E),y=Z(P.from)?P.from:0,C=Z(P.to)?P.to:0,p=D(y,C),g=Object.keys(T).filter(function(M){return p.indexOf(+M)===-1}),u=v=Z(P.diffRadius)?P.diffRadius:0,p.forEach(function(M){var f=T[M],b=f.levelSize.unit,l=f.levelSize.value;b==="weight"?L+=l:b==="percentage"?(f.levelSize={unit:"pixels",value:l/100*u},v-=f.levelSize.value):b==="pixels"&&(v-=l)}),p.forEach(function(M){var f,b=T[M];b.levelSize.unit==="weight"&&(f=b.levelSize.value,T[M].levelSize={unit:"pixels",value:f/L*v})}),g.forEach(function(M){T[M].levelSize={value:0,unit:"pixels"}})),T},G.getLevelFromAndTo=function(E){var x=E.level;return{from:x>0?x:1,to:x+E.height}},G.range=D}(U||(U={})),U}),rt(N,"Series/Sunburst/SunburstNode.js",[N["Series/Treemap/TreemapNode.js"]],function(W){var R,U=this&&this.__extends||(R=function(Z,q){return R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function($,G){$.__proto__=G}||function($,G){for(var D in G)G.hasOwnProperty(D)&&($[D]=G[D])},R(Z,q)},function(Z,q){function $(){this.constructor=Z}R(Z,q),Z.prototype=q===null?Object.create(q):($.prototype=q.prototype,new $)}),Y=function(Z){function q(){return Z!==null&&Z.apply(this,arguments)||this}return U(q,Z),q}(W);return Y}),rt(N,"Series/Sunburst/SunburstSeries.js",[N["Series/CenteredUtilities.js"],N["Core/Globals.js"],N["Core/Series/SeriesRegistry.js"],N["Series/Sunburst/SunburstPoint.js"],N["Series/Sunburst/SunburstUtilities.js"],N["Series/TreeUtilities.js"],N["Core/Utilities.js"],N["Series/Sunburst/SunburstNode.js"]],function(W,R,U,Y,Z,q,$,G){var D,E=this&&this.__extends||(D=function(O,d){return D=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,k){w.__proto__=k}||function(w,k){for(var z in k)k.hasOwnProperty(z)&&(w[z]=k[z])},D(O,d)},function(O,d){function w(){this.constructor=O}D(O,d),O.prototype=d===null?Object.create(d):(w.prototype=d.prototype,new w)}),x=W.getCenter,T=W.getStartAndEndRadians,u=R.noop,p=U.series,g=U.seriesTypes,v=g.column,y=g.treemap,C=q.getColor,P=q.getLevelOptions,L=q.setTreeValues,M=q.updateRootId,f=$.defined,b=$.error,l=$.extend,h=$.isNumber,e=$.isObject,r=$.isString,o=$.merge,i=$.splat,c=180/Math.PI,a=function(O,d,w,k){return{x:O+Math.cos(w)*k,y:d+Math.sin(w)*k}};function s(O,d,w){var k;return O.node.isLeaf||(k=d===O.id?w[d].parent:O.id),k}function m(O,d){var w=d.mapIdToNode,k=O.parent,z=k?w[k]:void 0,F=d.series,j=F.chart,I=F.points[O.i],_=F.options.colors||j&&j.options.colors,V=C(O,{colors:_,colorIndex:F.colorIndex,index:d.index,mapOptionsToLevel:d.mapOptionsToLevel,parentColor:z&&z.color,parentColorIndex:z&&z.colorIndex,series:d.series,siblings:d.siblings});return O.color=V.color,O.colorIndex=V.colorIndex,I&&(I.color=O.color,I.colorIndex=O.colorIndex,O.sliced=O.id!==d.idRoot&&I.sliced),O}var A=function(O){function d(){var w=O!==null&&O.apply(this,arguments)||this;return w.center=void 0,w.data=void 0,w.mapOptionsToLevel=void 0,w.nodeMap=void 0,w.options=void 0,w.points=void 0,w.shapeRoot=void 0,w.startAndEndRadians=void 0,w.tree=void 0,w}return E(d,O),d.prototype.alignDataLabel=function(w,k,z){if(!z.textPath||!z.textPath.enabled)return O.prototype.alignDataLabel.apply(this,arguments)},d.prototype.animate=function(w){var k,z=this.chart,F=[z.plotWidth/2,z.plotHeight/2],j=z.plotLeft,I=z.plotTop,_=this.group;w?(k={translateX:F[0]+j,translateY:F[1]+I,scaleX:.001,scaleY:.001,rotation:10,opacity:.01},_.attr(k)):(k={translateX:j,translateY:I,scaleX:1,scaleY:1,rotation:0,opacity:1},_.animate(k,this.options.animation))},d.prototype.drawPoints=function(){var w,k=this,z=k.mapOptionsToLevel,F=k.shapeRoot,j=k.group,I=k.hasRendered,_=k.rootNode,V=k.idPreviousRoot,X=k.nodeMap,H=X[V],Q=H&&H.shapeArgs,et=k.points,tt=k.startAndEndRadians,st=k.chart,ct=st&&st.options&&st.options.chart||{},gt=typeof ct.animation!="boolean"||ct.animation,mt=k.center,bt={x:mt[0],y:mt[1]},yt=mt[3]/2,dt=k.chart.renderer,ot=!1,ht=!1,ut=!!(gt&&I&&_!==V&&k.dataLabelsGroup);ut&&(k.dataLabelsGroup.attr({opacity:0}),w=function(){var vt=k;ot=!0,vt.dataLabelsGroup&&vt.dataLabelsGroup.animate({opacity:1,visibility:"inherit"})}),et.forEach(function(vt){var wt,xt,Ct=vt.node,St=z[Ct.level],Mt=vt.shapeExisting||{},Tt=Ct.shapeArgs||{},Pt=!(!Ct.visible||!Ct.shapeArgs);wt=I&&gt?function(kt,Ot){var Dt=Ot.point,Et=Ot.radians,It=Ot.innerR,_t=Ot.idRoot,Yt=Ot.idPreviousRoot,Bt=Ot.shapeExisting,Ft=Ot.shapeRoot,Vt=Ot.shapePreviousRoot,ue=Ot.visible,Ht={},$t={end:kt.end,start:kt.start,innerR:kt.innerR,r:kt.r,x:kt.x,y:kt.y};return ue?!Dt.graphic&&Vt&&((Ht=_t===Dt.id?{start:Et.start,end:Et.end}:Vt.end<=kt.start?{start:Et.end,end:Et.end}:{start:Et.start,end:Et.start}).innerR=Ht.r=It):Dt.graphic&&(Yt===Dt.id?$t={innerR:It,r:It}:Ft&&($t=Ft.end<=Bt.start?{innerR:It,r:It,start:Et.end,end:Et.end}:{innerR:It,r:It,start:Et.start,end:Et.start})),{from:Ht,to:$t}}(Tt,{center:bt,point:vt,radians:tt,innerR:yt,idRoot:_,idPreviousRoot:V,shapeExisting:Mt,shapeRoot:F,shapePreviousRoot:Q,visible:Pt}):{to:Tt,from:{}},l(vt,{shapeExisting:Tt,tooltipPos:[Tt.plotX,Tt.plotY],drillId:s(vt,_,X),name:""+(vt.name||vt.id||vt.index),plotX:Tt.plotX,plotY:Tt.plotY,value:Ct.val,isInside:Pt,isNull:!Pt}),vt.dlOptions=function(kt){var Ot,Dt,Et=kt.point,It=e(kt.shapeArgs)?kt.shapeArgs:{},_t=e(kt.optionsPoint)?kt.optionsPoint.dataLabels:{},Yt=i(e(kt.level)?kt.level.dataLabels:{})[0],Bt=o({style:{}},Yt,_t),Ft=Bt.rotationMode;return h(Bt.rotation)||(Ft!=="auto"&&Ft!=="circular"||(Et.innerArcLength<1&&Et.outerArcLength>It.radius?(Ot=0,Et.dataLabelPath&&Ft==="circular"&&(Bt.textPath={enabled:!0})):Et.innerArcLength>1&&Et.outerArcLength>1.5*It.radius?Ft==="circular"?Bt.textPath={enabled:!0,attributes:{dy:5}}:Ft="parallel":(Et.dataLabel&&Et.dataLabel.textPath&&Ft==="circular"&&(Bt.textPath={enabled:!1}),Ft="perpendicular")),Ft!=="auto"&&Ft!=="circular"&&(Ot=It.end-(It.end-It.start)/2),Ft==="parallel"?Bt.style.width=Math.min(2.5*It.radius,(Et.outerArcLength+Et.innerArcLength)/2):!f(Bt.style.width)&&It.radius&&(Bt.style.width=Et.node.level===1?2*It.radius:It.radius),Ft==="perpendicular"&&Et.series.chart.renderer.fontMetrics(Bt.style.fontSize).h>Et.outerArcLength&&(Bt.style.width=1),Bt.style.width=Math.max(Bt.style.width-2*(Bt.padding||0),1),Dt=Ot*c%180,Ft==="parallel"&&(Dt-=90),Dt>90?Dt-=180:Dt<-90&&(Dt+=180),Bt.rotation=Dt),Bt.textPath&&(Et.shapeExisting.innerR===0&&Bt.textPath.enabled?(Bt.rotation=0,Bt.textPath.enabled=!1,Bt.style.width=Math.max(2*Et.shapeExisting.r-2*(Bt.padding||0),1)):Et.dlOptions&&Et.dlOptions.textPath&&!Et.dlOptions.textPath.enabled&&Ft==="circular"&&(Bt.textPath.enabled=!0),Bt.textPath.enabled&&(Bt.rotation=0,Bt.style.width=Math.max((Et.outerArcLength+Et.innerArcLength)/2-2*(Bt.padding||0),1))),Bt.rotation===0&&(Bt.rotation=.001),Bt}({point:vt,level:St,optionsPoint:vt.options,shapeArgs:Tt}),!ht&&Pt&&(ht=!0,xt=w),vt.draw({animatableAttribs:wt.to,attribs:l(wt.from,!st.styledMode&&k.pointAttribs(vt,vt.selected&&"select")),onComplete:xt,group:j,renderer:dt,shapeType:"arc",shapeArgs:Tt})}),ut&&ht?(k.hasRendered=!1,k.options.dataLabels.defer=!0,p.prototype.drawDataLabels.call(k),k.hasRendered=!0,ot&&w()):p.prototype.drawDataLabels.call(k)},d.prototype.layoutAlgorithm=function(w,k,z){var F=w.start,j=w.end-F,I=w.val,_=w.x,V=w.y,X=z&&e(z.levelSize)&&h(z.levelSize.value)?z.levelSize.value:0,H=w.r,Q=H+X,et=z&&h(z.slicedOffset)?z.slicedOffset:0;return(k||[]).reduce(function(tt,st){var ct=1/I*st.val*j,gt=a(_,V,F+ct/2,et),mt={x:st.sliced?gt.x:_,y:st.sliced?gt.y:V,innerR:H,r:Q,radius:X,start:F,end:F+ct};return tt.push(mt),F=mt.end,tt},[])},d.prototype.setShapeArgs=function(w,k,z){var F,j=w.level+1,I=z[j],_=w.children.filter(function(V){return V.visible});F=this.layoutAlgorithm(k,_,I),_.forEach(function(V,X){var H=F[X],Q=H.start+(H.end-H.start)/2,et=H.innerR+(H.r-H.innerR)/2,tt=H.end-H.start,st=H.innerR===0&&tt>6.28?{x:H.x,y:H.y}:a(H.x,H.y,Q,et),ct=V.val?V.childrenTotal>V.val?V.childrenTotal:V.val:V.childrenTotal;this.points[V.i]&&(this.points[V.i].innerArcLength=tt*H.innerR,this.points[V.i].outerArcLength=tt*H.r),V.shapeArgs=o(H,{plotX:st.x,plotY:st.y+4*Math.abs(Math.cos(Q))}),V.values=o(H,{val:ct}),V.children.length&&this.setShapeArgs(V,V.values,z)},this)},d.prototype.translate=function(){var w,k,z,F,j=this,I=j.options,_=j.center=j.getCenter(),V=j.startAndEndRadians=T(I.startAngle,I.endAngle),X=_[3]/2,H=_[2]/2-X,Q=M(j),et=j.nodeMap,tt=et&&et[Q],st={};j.shapeRoot=tt&&tt.shapeArgs,p.prototype.translate.call(j),z=j.tree=j.getTree(),tt=(et=j.nodeMap)[Q],k=et[r(tt.parent)?tt.parent:""];var ct=Z.getLevelFromAndTo(tt),gt=ct.from,mt=ct.to;w=P({from:gt,levels:j.options.levels,to:mt,defaults:{colorByPoint:I.colorByPoint,dataLabels:I.dataLabels,levelIsConstant:I.levelIsConstant,levelSize:I.levelSize,slicedOffset:I.slicedOffset}}),w=Z.calculateLevelSizes(w,{diffRadius:H,from:gt,to:mt}),L(z,{before:m,idRoot:Q,levelIsConstant:I.levelIsConstant,mapOptionsToLevel:w,mapIdToNode:et,points:j.points,series:j}),F=et[""].shapeArgs={end:V.end,r:X,start:V.start,val:tt.val,x:_[0],y:_[1]},this.setShapeArgs(k,F,w),j.mapOptionsToLevel=w,j.data.forEach(function(bt){st[bt.id]&&b(31,!1,j.chart),st[bt.id]=!0}),st={}},d.defaultOptions=o(y.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}(y);return l(A.prototype,{drawDataLabels:u,getCenter:x,onPointSupported:!0,pointAttribs:v.prototype.pointAttribs,pointClass:Y,NodeClass:G,utils:Z}),U.registerSeriesType("sunburst",A),A}),rt(N,"masters/modules/sunburst.src.js",[],function(){})},J.exports?(pt.default=pt,J.exports=pt):(at=[nt(8840)],(lt=function(ft){return pt(ft),pt.Highcharts=ft,pt}.apply(it,at))===void 0||(J.exports=lt))},4649:(J,it,nt)=>{nt.d(it,{Z:()=>N});var at=nt(8804);const lt=function(rt,W){for(var R=rt.length;R--;)if((0,at.Z)(rt[R][0],W))return R;return-1};var pt=Array.prototype.splice;function ft(rt){var W=-1,R=rt==null?0:rt.length;for(this.clear();++W<R;){var U=rt[W];this.set(U[0],U[1])}}ft.prototype.clear=function(){this.__data__=[],this.size=0},ft.prototype.delete=function(rt){var W=this.__data__,R=lt(W,rt);return!(R<0||(R==W.length-1?W.pop():pt.call(W,R,1),--this.size,0))},ft.prototype.get=function(rt){var W=this.__data__,R=lt(W,rt);return R<0?void 0:W[R][1]},ft.prototype.has=function(rt){return lt(this.__data__,rt)>-1},ft.prototype.set=function(rt,W){var R=this.__data__,U=lt(R,rt);return U<0?(++this.size,R.push([rt,W])):R[U][1]=W,this};const N=ft},8896:(J,it,nt)=>{nt.d(it,{Z:()=>pt});var at=nt(5546),lt=nt(3221);const pt=(0,at.Z)(lt.Z,"Map")},3703:(J,it,nt)=>{nt.d(it,{Z:()=>Y});const at=(0,nt(5546).Z)(Object,"create");var lt=Object.prototype.hasOwnProperty,pt=Object.prototype.hasOwnProperty;function ft(Z){var q=-1,$=Z==null?0:Z.length;for(this.clear();++q<$;){var G=Z[q];this.set(G[0],G[1])}}ft.prototype.clear=function(){this.__data__=at?at(null):{},this.size=0},ft.prototype.delete=function(Z){var q=this.has(Z)&&delete this.__data__[Z];return this.size-=q?1:0,q},ft.prototype.get=function(Z){var q=this.__data__;if(at){var $=q[Z];return $==="__lodash_hash_undefined__"?void 0:$}return lt.call(q,Z)?q[Z]:void 0},ft.prototype.has=function(Z){var q=this.__data__;return at?q[Z]!==void 0:pt.call(q,Z)},ft.prototype.set=function(Z,q){var $=this.__data__;return this.size+=this.has(Z)?0:1,$[Z]=at&&q===void 0?"__lodash_hash_undefined__":q,this};const N=ft;var rt=nt(4649),W=nt(8896);const R=function(Z,q){var $,G,D=Z.__data__;return((G=typeof($=q))=="string"||G=="number"||G=="symbol"||G=="boolean"?$!=="__proto__":$===null)?D[typeof q=="string"?"string":"hash"]:D.map};function U(Z){var q=-1,$=Z==null?0:Z.length;for(this.clear();++q<$;){var G=Z[q];this.set(G[0],G[1])}}U.prototype.clear=function(){this.size=0,this.__data__={hash:new N,map:new(W.Z||rt.Z),string:new N}},U.prototype.delete=function(Z){var q=R(this,Z).delete(Z);return this.size-=q?1:0,q},U.prototype.get=function(Z){return R(this,Z).get(Z)},U.prototype.has=function(Z){return R(this,Z).has(Z)},U.prototype.set=function(Z,q){var $=R(this,Z),G=$.size;return $.set(Z,q),this.size+=$.size==G?0:1,this};const Y=U},187:(J,it,nt)=>{nt.d(it,{Z:()=>at});const at=nt(3221).Z.Symbol},6299:(J,it,nt)=>{nt.d(it,{Z:()=>ft});var at=nt(3896),lt=nt(8804),pt=Object.prototype.hasOwnProperty;const ft=function(N,rt,W){var R=N[rt];pt.call(N,rt)&&(0,lt.Z)(R,W)&&(W!==void 0||rt in N)||(0,at.Z)(N,rt,W)}},3896:(J,it,nt)=>{nt.d(it,{Z:()=>pt});var at=nt(5546);const lt=function(){try{var ft=(0,at.Z)(Object,"defineProperty");return ft({},"",{}),ft}catch(N){}}(),pt=function(ft,N,rt){N=="__proto__"&&lt?lt(ft,N,{configurable:!0,enumerable:!0,value:rt,writable:!0}):ft[N]=rt}},9001:(J,it,nt)=>{nt.d(it,{Z:()=>R});var at=nt(187),lt=Object.prototype,pt=lt.hasOwnProperty,ft=lt.toString,N=at.Z?at.Z.toStringTag:void 0,rt=Object.prototype.toString,W=at.Z?at.Z.toStringTag:void 0;const R=function(U){return U==null?U===void 0?"[object Undefined]":"[object Null]":W&&W in Object(U)?function(Y){var Z=pt.call(Y,N),q=Y[N];try{Y[N]=void 0;var $=!0}catch(D){}var G=ft.call(Y);return $&&(Z?Y[N]=q:delete Y[N]),G}(U):function(Y){return rt.call(Y)}(U)}},8525:(J,it,nt)=>{nt.d(it,{Z:()=>E});var at=nt(7885),lt=nt(2758),pt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ft=/^\w*$/,N=nt(3703);function rt(x,T){if(typeof x!="function"||T!=null&&typeof T!="function")throw new TypeError("Expected a function");var u=function(){var p=arguments,g=T?T.apply(this,p):p[0],v=u.cache;if(v.has(g))return v.get(g);var y=x.apply(this,p);return u.cache=v.set(g,y)||v,y};return u.cache=new(rt.Cache||N.Z),u}rt.Cache=N.Z;var W=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,R=/\\(\\)?/g;const U=(Y=rt(function(x){var T=[];return x.charCodeAt(0)===46&&T.push(""),x.replace(W,function(u,p,g,v){T.push(g?v.replace(R,"$1"):p||u)}),T},function(x){return Z.size===500&&Z.clear(),x}),Z=Y.cache,Y);var Y,Z,q=nt(187),$=q.Z?q.Z.prototype:void 0,G=$?$.toString:void 0;const D=function x(T){if(typeof T=="string")return T;if((0,at.Z)(T))return function(p,g){for(var v=-1,y=p==null?0:p.length,C=Array(y);++v<y;)C[v]=g(p[v],v,p);return C}(T,x)+"";if((0,lt.Z)(T))return G?G.call(T):"";var u=T+"";return u=="0"&&1/T==-1/0?"-0":u},E=function(x,T){return(0,at.Z)(x)?x:function(u,p){if((0,at.Z)(u))return!1;var g=typeof u;return!(g!="number"&&g!="symbol"&&g!="boolean"&&u!=null&&!(0,lt.Z)(u))||ft.test(u)||!pt.test(u)||p!=null&&u in Object(p)}(x,T)?[x]:U(function(u){return u==null?"":D(u)}(x))}},2168:(J,it,nt)=>{nt.d(it,{Z:()=>at});const at=typeof Ke=="object"&&Ke&&Ke.Object===Object&&Ke},5546:(J,it,nt)=>{nt.d(it,{Z:()=>G});var at=nt(8936);const lt=nt(3221).Z["__core-js_shared__"];var pt,ft=(pt=/[^.]+$/.exec(lt&&lt.keys&&lt.keys.IE_PROTO||""))?"Symbol(src)_1."+pt:"",N=nt(3122),rt=nt(6682),W=/^\[object .+?Constructor\]$/,R=Function.prototype,U=Object.prototype,Y=R.toString,Z=U.hasOwnProperty,q=RegExp("^"+Y.call(Z).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const $=function(D){return!(!(0,N.Z)(D)||(E=D,ft&&ft in E))&&((0,at.Z)(D)?q:W).test((0,rt.Z)(D));var E},G=function(D,E){var x=function(T,u){return T==null?void 0:T[u]}(D,E);return $(x)?x:void 0}},6401:(J,it,nt)=>{nt.d(it,{Z:()=>lt});var at=/^(?:0|[1-9]\d*)$/;const lt=function(pt,ft){var N=typeof pt;return!!(ft=ft==null?9007199254740991:ft)&&(N=="number"||N!="symbol"&&at.test(pt))&&pt>-1&&pt%1==0&&pt<ft}},3221:(J,it,nt)=>{nt.d(it,{Z:()=>pt});var at=nt(2168),lt=typeof self=="object"&&self&&self.Object===Object&&self;const pt=at.Z||lt||Function("return this")()},7969:(J,it,nt)=>{nt.d(it,{Z:()=>lt});var at=nt(2758);const lt=function(pt){if(typeof pt=="string"||(0,at.Z)(pt))return pt;var ft=pt+"";return ft=="0"&&1/pt==-1/0?"-0":ft}},6682:(J,it,nt)=>{nt.d(it,{Z:()=>lt});var at=Function.prototype.toString;const lt=function(pt){if(pt!=null){try{return at.call(pt)}catch(ft){}try{return pt+""}catch(ft){}}return""}},5998:(J,it,nt)=>{nt.r(it),nt.d(it,{default:()=>ve});var at=nt(4649),lt=nt(8896),pt=nt(3703);function ft(Lt){var zt=this.__data__=new at.Z(Lt);this.size=zt.size}ft.prototype.clear=function(){this.__data__=new at.Z,this.size=0},ft.prototype.delete=function(Lt){var zt=this.__data__,Wt=zt.delete(Lt);return this.size=zt.size,Wt},ft.prototype.get=function(Lt){return this.__data__.get(Lt)},ft.prototype.has=function(Lt){return this.__data__.has(Lt)},ft.prototype.set=function(Lt,zt){var Wt=this.__data__;if(Wt instanceof at.Z){var Xt=Wt.__data__;if(!lt.Z||Xt.length<199)return Xt.push([Lt,zt]),this.size=++Wt.size,this;Wt=this.__data__=new pt.Z(Xt)}return Wt.set(Lt,zt),this.size=Wt.size,this};const N=ft;var rt=nt(6299);nt(3896);var W=nt(9001),R=nt(3391);const U=function(Lt){return(0,R.Z)(Lt)&&(0,W.Z)(Lt)=="[object Arguments]"};var Y=Object.prototype,Z=Y.hasOwnProperty,q=Y.propertyIsEnumerable;const $=U(function(){return arguments}())?U:function(Lt){return(0,R.Z)(Lt)&&Z.call(Lt,"callee")&&!q.call(Lt,"callee")};var G=nt(7885),D=nt(3221),E=n&&!n.nodeType&&n,x=E&&!0&&t&&!t.nodeType&&t,T=x&&x.exports===E?D.Z.Buffer:void 0;const u=(T?T.isBuffer:void 0)||function(){return!1};var p=nt(6401);const g=function(Lt){return typeof Lt=="number"&&Lt>-1&&Lt%1==0&&Lt<=9007199254740991};var v={};v["[object Float32Array]"]=v["[object Float64Array]"]=v["[object Int8Array]"]=v["[object Int16Array]"]=v["[object Int32Array]"]=v["[object Uint8Array]"]=v["[object Uint8ClampedArray]"]=v["[object Uint16Array]"]=v["[object Uint32Array]"]=!0,v["[object Arguments]"]=v["[object Array]"]=v["[object ArrayBuffer]"]=v["[object Boolean]"]=v["[object DataView]"]=v["[object Date]"]=v["[object Error]"]=v["[object Function]"]=v["[object Map]"]=v["[object Number]"]=v["[object Object]"]=v["[object RegExp]"]=v["[object Set]"]=v["[object String]"]=v["[object WeakMap]"]=!1;const y=function(Lt){return function(zt){return Lt(zt)}};var C=nt(2168),P=n&&!n.nodeType&&n,L=P&&!0&&t&&!t.nodeType&&t,M=L&&L.exports===P&&C.Z.process;const f=function(){try{return L&&L.require&&L.require("util").types||M&&M.binding&&M.binding("util")}catch(Lt){}}();var b=f&&f.isTypedArray;const l=b?y(b):function(Lt){return(0,R.Z)(Lt)&&g(Lt.length)&&!!v[(0,W.Z)(Lt)]};var h=Object.prototype.hasOwnProperty;const e=function(Lt,zt){var Wt=(0,G.Z)(Lt),Xt=!Wt&&$(Lt),he=!Wt&&!Xt&&u(Lt),ae=!Wt&&!Xt&&!he&&l(Lt),ne=Wt||Xt||he||ae,Kt=ne?function(qe,Mr){for(var Ci=-1,Xi=Array(qe);++Ci<qe;)Xi[Ci]=Mr(Ci);return Xi}(Lt.length,String):[],wi=Kt.length;for(var fe in Lt)!h.call(Lt,fe)||ne&&(fe=="length"||he&&(fe=="offset"||fe=="parent")||ae&&(fe=="buffer"||fe=="byteLength"||fe=="byteOffset")||(0,p.Z)(fe,wi))||Kt.push(fe);return Kt};var r=Object.prototype;const o=function(Lt){var zt=Lt&&Lt.constructor;return Lt===(typeof zt=="function"&&zt.prototype||r)},i=function(Lt,zt){return function(Wt){return Lt(zt(Wt))}},c=i(Object.keys,Object);var a=Object.prototype.hasOwnProperty,s=nt(8936);const m=function(Lt){return Lt!=null&&g(Lt.length)&&!(0,s.Z)(Lt)},A=function(Lt){return m(Lt)?e(Lt):function(zt){if(!o(zt))return c(zt);var Wt=[];for(var Xt in Object(zt))a.call(zt,Xt)&&Xt!="constructor"&&Wt.push(Xt);return Wt}(Lt)};var O=nt(3122);const d=function(){return[]};var w=Object.prototype.propertyIsEnumerable,k=Object.getOwnPropertySymbols;const z=k?function(Lt){return Lt==null?[]:(Lt=Object(Lt),function(zt,Wt){for(var Xt=-1,he=zt==null?0:zt.length,ae=0,ne=[];++Xt<he;){var Kt=zt[Xt];Wt(Kt,Xt,zt)&&(ne[ae++]=Kt)}return ne}(k(Lt),function(zt){return w.call(Lt,zt)}))}:d,F=function(Lt,zt){for(var Wt=-1,Xt=zt.length,he=Lt.length;++Wt<Xt;)Lt[he+Wt]=zt[Wt];return Lt},j=i(Object.getPrototypeOf,Object),I=function(Lt,zt,Wt){var Xt=zt(Lt);return(0,G.Z)(Lt)?Xt:F(Xt,Wt(Lt))},_=function(Lt){return I(Lt,A,z)};var V=nt(5546);const X=(0,V.Z)(D.Z,"DataView"),H=(0,V.Z)(D.Z,"Promise"),Q=(0,V.Z)(D.Z,"Set"),et=(0,V.Z)(D.Z,"WeakMap");var tt=nt(6682),st="[object Map]",ct="[object Promise]",gt="[object Set]",mt="[object WeakMap]",bt="[object DataView]",yt=(0,tt.Z)(X),dt=(0,tt.Z)(lt.Z),ot=(0,tt.Z)(H),ht=(0,tt.Z)(Q),ut=(0,tt.Z)(et),vt=W.Z;(X&&vt(new X(new ArrayBuffer(1)))!=bt||lt.Z&&vt(new lt.Z)!=st||H&&vt(H.resolve())!=ct||Q&&vt(new Q)!=gt||et&&vt(new et)!=mt)&&(vt=function(Lt){var zt=(0,W.Z)(Lt),Wt=zt=="[object Object]"?Lt.constructor:void 0,Xt=Wt?(0,tt.Z)(Wt):"";if(Xt)switch(Xt){case yt:return bt;case dt:return st;case ot:return ct;case ht:return gt;case ut:return mt}return zt});const wt=vt;var xt=Object.prototype.hasOwnProperty;const Ct=D.Z.Uint8Array,St=function(Lt){var zt=new Lt.constructor(Lt.byteLength);return new Ct(zt).set(new Ct(Lt)),zt};var Mt=/\w*$/,Tt=nt(187),Pt=Tt.Z?Tt.Z.prototype:void 0,kt=Pt?Pt.valueOf:void 0;const Ot=function(Lt,zt,Wt){var Xt,he,ae,ne=Lt.constructor;switch(zt){case"[object ArrayBuffer]":return St(Lt);case"[object Boolean]":case"[object Date]":return new ne(+Lt);case"[object DataView]":return function(Kt,wi){var fe=St(Kt.buffer);return new Kt.constructor(fe,Kt.byteOffset,Kt.byteLength)}(Lt);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(Kt,wi){var fe=St(Kt.buffer);return new Kt.constructor(fe,Kt.byteOffset,Kt.length)}(Lt);case"[object Map]":case"[object Set]":return new ne;case"[object Number]":case"[object String]":return new ne(Lt);case"[object RegExp]":return(ae=new(he=Lt).constructor(he.source,Mt.exec(he))).lastIndex=he.lastIndex,ae;case"[object Symbol]":return Xt=Lt,kt?Object(kt.call(Xt)):{}}};var Dt=Object.create;const Et=function(){function Lt(){}return function(zt){if(!(0,O.Z)(zt))return{};if(Dt)return Dt(zt);Lt.prototype=zt;var Wt=new Lt;return Lt.prototype=void 0,Wt}}();var It=f&&f.isMap;const _t=It?y(It):function(Lt){return(0,R.Z)(Lt)&&wt(Lt)=="[object Map]"};var Yt=f&&f.isSet;const Bt=Yt?y(Yt):function(Lt){return(0,R.Z)(Lt)&&wt(Lt)=="[object Set]"};var Ft="[object Arguments]",Vt="[object Function]",ue="[object Object]",Ht={};Ht[Ft]=Ht["[object Array]"]=Ht["[object ArrayBuffer]"]=Ht["[object DataView]"]=Ht["[object Boolean]"]=Ht["[object Date]"]=Ht["[object Float32Array]"]=Ht["[object Float64Array]"]=Ht["[object Int8Array]"]=Ht["[object Int16Array]"]=Ht["[object Int32Array]"]=Ht["[object Map]"]=Ht["[object Number]"]=Ht[ue]=Ht["[object RegExp]"]=Ht["[object Set]"]=Ht["[object String]"]=Ht["[object Symbol]"]=Ht["[object Uint8Array]"]=Ht["[object Uint8ClampedArray]"]=Ht["[object Uint16Array]"]=Ht["[object Uint32Array]"]=!0,Ht["[object Error]"]=Ht[Vt]=Ht["[object WeakMap]"]=!1;const $t=function Lt(zt,Wt,Xt,he,ae,ne){var Kt,wi=1&Wt;if(Kt!==void 0)return Kt;if(!(0,O.Z)(zt))return zt;var fe=(0,G.Z)(zt);if(fe)Kt=function(te){var Ae=te.length,pi=new te.constructor(Ae);return Ae&&typeof te[0]=="string"&&xt.call(te,"index")&&(pi.index=te.index,pi.input=te.input),pi}(zt);else{var qe=wt(zt),Mr=qe==Vt||qe=="[object GeneratorFunction]";if(u(zt))return function(te,Ae){return te.slice()}(zt);if(qe==ue||qe==Ft||Mr&&!ae)Kt=Mr?{}:function(te){return typeof te.constructor!="function"||o(te)?{}:Et(j(te))}(zt);else{if(!Ht[qe])return ae?zt:{};Kt=Ot(zt,qe)}}ne||(ne=new N);var Ci=ne.get(zt);if(Ci)return Ci;ne.set(zt,Kt),Bt(zt)?zt.forEach(function(te){Kt.add(Lt(te,Wt,Xt,te,zt,ne))}):_t(zt)&&zt.forEach(function(te,Ae){Kt.set(Ae,Lt(te,Wt,Xt,Ae,zt,ne))});var Xi=fe?void 0:_(zt);return function(te,Ae){for(var pi=-1,Hd=te==null?0:te.length;++pi<Hd&&Ae(te[pi],pi,te)!==!1;);}(Xi||zt,function(te,Ae){Xi&&(te=zt[Ae=te]),(0,rt.Z)(Kt,Ae,Lt(te,Wt,Xt,Ae,zt,ne))}),Kt},ve=function(Lt){return $t(Lt,5)}},8804:(J,it,nt)=>{nt.d(it,{Z:()=>at});const at=function(lt,pt){return lt===pt||lt!=lt&&pt!=pt}},1857:(J,it,nt)=>{nt.r(it),nt.d(it,{default:()=>pt});var at=nt(8525),lt=nt(7969);const pt=function(ft,N,rt){var W=ft==null?void 0:function(R,U){for(var Y=0,Z=(U=(0,at.Z)(U,R)).length;R!=null&&Y<Z;)R=R[(0,lt.Z)(U[Y++])];return Y&&Y==Z?R:void 0}(ft,N);return W===void 0?rt:W}},7885:(J,it,nt)=>{nt.d(it,{Z:()=>at});const at=Array.isArray},8936:(J,it,nt)=>{nt.d(it,{Z:()=>pt});var at=nt(9001),lt=nt(3122);const pt=function(ft){if(!(0,lt.Z)(ft))return!1;var N=(0,at.Z)(ft);return N=="[object Function]"||N=="[object GeneratorFunction]"||N=="[object AsyncFunction]"||N=="[object Proxy]"}},3122:(J,it,nt)=>{nt.d(it,{Z:()=>at});const at=function(lt){var pt=typeof lt;return lt!=null&&(pt=="object"||pt=="function")}},3391:(J,it,nt)=>{nt.d(it,{Z:()=>at});const at=function(lt){return lt!=null&&typeof lt=="object"}},1284:(J,it,nt)=>{nt.r(it),nt.d(it,{default:()=>ft});var at=nt(9001),lt=nt(7885),pt=nt(3391);const ft=function(N){return typeof N=="string"||!(0,lt.Z)(N)&&(0,pt.Z)(N)&&(0,at.Z)(N)=="[object String]"}},2758:(J,it,nt)=>{nt.d(it,{Z:()=>pt});var at=nt(9001),lt=nt(3391);const pt=function(ft){return typeof ft=="symbol"||(0,lt.Z)(ft)&&(0,at.Z)(ft)=="[object Symbol]"}},4402:(J,it,nt)=>{nt.r(it),nt.d(it,{default:()=>at});const at=function(lt){return lt===void 0}},4891:(J,it,nt)=>{nt.r(it),nt.d(it,{default:()=>rt});var at=nt(6299),lt=nt(8525),pt=nt(6401),ft=nt(3122),N=nt(7969);const rt=function(W,R,U){return W==null?W:function(Y,Z,q,$){if(!(0,ft.Z)(Y))return Y;for(var G=-1,D=(Z=(0,lt.Z)(Z,Y)).length,E=D-1,x=Y;x!=null&&++G<D;){var T=(0,N.Z)(Z[G]),u=q;if(T==="__proto__"||T==="constructor"||T==="prototype")return Y;if(G!=E){var p=x[T];(u=void 0)==void 0&&(u=(0,ft.Z)(p)?p:(0,pt.Z)(Z[G+1])?[]:{})}(0,at.Z)(x,T,u),x=x[T]}return Y}(W,R,U)}}},B={};function K(J){var it=B[J];if(it!==void 0)return it.exports;var nt=B[J]={exports:{}};return S[J].call(nt.exports,nt,nt.exports,K),nt.exports}return K.d=(J,it)=>{for(var nt in it)K.o(it,nt)&&!K.o(J,nt)&&Object.defineProperty(J,nt,{enumerable:!0,get:it[nt]})},K.o=(J,it)=>Object.prototype.hasOwnProperty.call(J,it),K.r=J=>{typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(J,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(J,"__esModule",{value:!0})},K(4658)})())})(On,On.exports);var wL=On.exports;const Ed=xe(wL),CL="rgb(255, 255, 255)",zl="rgb(43, 51, 66)",uo=20,fo=4,SL=2,Dn=1,ML=uo*2,AL=26,TL=20,Fl=35,kL=uo+fo-2,Gl={key:"brightness",to:.15};Ed.Series.types.treemap.prototype.squarifiedWithTopSpacing=function(t,n){const S=OL(t.height,this.chart.plotHeight),B=this.squarified(t,n),K=S(kL);return DL(this.chart)?B.map((J,it)=>{const nt=J.height>=S(ML);return n[it].point.options.custom.bigLabelSpacing=nt,nt&&(J.height=J.height-K,J.y=J.y+K),J}):B};function PL(t,n,S){const B=LL();return B.forEach((K,J)=>{var nt,at,lt,pt,ft,N,rt;const it=K.dataLabels;(nt=n==null?void 0:n.labels)!=null&&nt.category&&(it.enabled=(ft=(pt=(lt=(at=n.labels)==null?void 0:at.category)==null?void 0:lt[J])==null?void 0:pt.enabled)!=null?ft:!0),(N=S==null?void 0:S.typography)!=null&&N.fontFamily&&(it.style.fontFamily=(rt=S==null?void 0:S.typography)==null?void 0:rt.fontFamily)}),t.breakBy.length===1&&(B[0].borderWidth=Dn,B[0].borderColor="black",B[0].layoutAlgorithm="strip",B[0].dataLabels=B[1].dataLabels),t.breakBy.length===2&&(B[1].borderWidth=Dn,B[1].borderColor="black"),t.breakBy.some(({isColored:K})=>K)&&(B[1].colorVariation=Gl,B[2].colorVariation=Gl),B}function nn(){var S,B;const t=xr(Re(this.color))>.4&&!((B=(S=this.point.options)==null?void 0:S.custom)!=null&&B.blur),{width:n}=Dd(this.point);return EL(this.point)?Od(this.point)?`<div
106
- style="
107
- width:${n-fo}px;
108
- height: ${uo}px;
109
- background: #e6e6e6;
110
- color: ${zl};
111
- padding: 3px;
112
- position: absolute;
113
- top: -${uo}px;
114
- text-align: center;
115
- overflow: hidden;
116
- text-overflow: ellipsis;
117
- left: ${fo/2}px;
118
- "
119
- >${this.key}</div>`:`<div style="fill:${t?CL:zl};">${this.key}</div>`:""}function LL(){return[{level:1,borderWidth:fo,borderColor:"white",layoutAlgorithm:"squarifiedWithTopSpacing",dataLabels:{useHTML:!0,enabled:!0,align:"left",verticalAlign:"top",allowOverlap:!0,padding:0,style:{fontSize:"14px"},formatter:nn}},{level:2,borderWidth:SL,borderColor:"white",dataLabels:{enabled:!0,align:"left",verticalAlign:"top",style:{fontSize:"14px"},formatter:nn}},{level:3,borderColor:"black",borderWidth:Dn,dataLabels:{enabled:!0,align:"center",verticalAlign:"middle",style:{fontSize:"13px"},formatter:nn}}]}function Od(t){var n,S,B,K;return((S=(n=t.options)==null?void 0:n.custom)==null?void 0:S.levelsCount)!==1&&((K=(B=t.options)==null?void 0:B.custom)==null?void 0:K.level)===1}function EL(t){const{height:n,width:S}=Dd(t),{level:B}=t.options.custom;return Od(t)?!!t.options.custom.bigLabelSpacing:B!==3?n>=AL&&S>=Fl:n>=TL&&S>=Fl}function OL(t,n){return S=>{const B=n/t;return S/B}}function DL(t){var B,K,J,it,nt,at;const n=(K=(B=t.options.series)==null?void 0:B[0])!=null?K:{};return(at=((nt=(it=(J=n==null?void 0:n.levels)==null?void 0:J[0])==null?void 0:it.dataLabels)!=null?nt:{}).enabled)!=null?at:!0}function Dd(t){var n,S,B,K;return{width:(S=(n=t.shapeArgs)==null?void 0:n.width)!=null?S:0,height:(K=(B=t.shapeArgs)==null?void 0:B.height)!=null?K:0}}function jd(t,n,S){if(!t.series[0])return[];const B=jL(t),K=t.series[0].data.map(J=>{var it,nt;return{value:J.value,name:(it=J.xDisplayValue)==null?void 0:it.slice(-1).toString(),parent:(nt=J.xValue)==null?void 0:nt.slice(0,-1).join("_"),custom:jt(At({},J),{level:t.xAxisCount,levelsCount:t.xAxisCount})}});return IL([...B,...K],n,S)}function jL(t){const n={};return t.xValues.forEach(S=>{S.rawValues.slice(0,-1).forEach((B,K)=>{const J=S.rawValues.slice(0,K+1).join("_");n[J]={id:J,name:S.xValues[K],parent:S.rawValues.slice(0,K).join("_"),custom:{level:K+1,levelsCount:t.xAxisCount}}})}),Object.values(n)}function IL(t,n,S){const B=n.breakBy.map(J=>J.isColored).indexOf(!0)+1,K=new Map;return t.map(J=>{var it;return J.custom.level===B?(K.has(J.name)||K.set(J.name,K.size),jt(At({},J),{color:(it=Go(n,J.name))!=null?it:Ye(S==null?void 0:S.palette.variantColors,K.get(J.name))})):J})}const _L="rgb(0, 206, 230)",NL={type:"treemap",layoutAlgorithm:"strip",layoutStartingDirection:"horizontal",clip:!1,color:_L,dataLabels:{style:{textOutline:"none"}}},BL={title:{text:null},chart:{type:"treemap",spacing:[20,20,20,20],alignTicks:!1,polar:!1,animation:{duration:300}},series:[]};function RL(t,n,S,B){var K;return jt(At({},BL),{series:[jt(At({},NL),{name:(K=n.y[0].title)!=null?K:n.y[0].name,data:jd(t,n,B),levels:PL(n,S,B)})],tooltip:Ld(n,S)})}function zL(t,n,S,B){var it,nt;const K={level:1,color:(nt=(it=B==null?void 0:B.chart)==null?void 0:it.backgroundColor)!=null?nt:"white",dataLabels:{enabled:!0,useHTML:!0,className:"!csdk-overflow-visible",formatter(){var pt,ft,N,rt,W,R;const at=oe((ft=(pt=n.y)==null?void 0:pt[0])==null?void 0:ft.numberFormatConfig),{value:lt}=this.point;return`
120
- <div style="text-align: center; transform: translateY(calc(-50% + 15px))">
121
- <div style="color: ${(rt=(N=B==null?void 0:B.chart)==null?void 0:N.secondaryTextColor)!=null?rt:"#9EA2AB"}">${this.point.name}</div>
122
- ${ni()}
123
- <div style="
124
- font-weight: 600;
125
- font-size: 18px;
126
- color: ${(R=(W=B==null?void 0:B.chart)==null?void 0:W.textColor)!=null?R:"#5B6372"}
127
- "
128
- >${Oi(at,lt)}</div>
129
- </div>
130
- `}},levelSize:{unit:"pixels",value:60}},J=Array.from(new Array(t.xAxisCount)).map((at,lt)=>{var pt,ft,N,rt;return{level:lt+2,dataLabels:{enabled:(rt=(N=(ft=(pt=S==null?void 0:S.labels)==null?void 0:pt.category)==null?void 0:ft[lt])==null?void 0:N.enabled)!=null?rt:!1,formatter(){return`<span style="color: ${xr(Re(this.color))>.4?"white":"rgb(43, 51, 66)"}">${this.point.name}</span>`}}}});return[K,...J]}const jn="SUNBURST_ROOT_PARENT_ID";function FL(t,n,S){var it;const B={id:jn,name:(it=n.y[0].title)!=null?it:n.y[0].name,custom:{level:0,levelsCount:t.xAxisCount}},K=jd(t,n,S).map(nt=>nt.parent===""?jt(At({},nt),{parent:jn}):nt),J=GL(K,n,S);return[B,...J]}function GL(t,n,S){const B=WL(n),K={};return t.map(J=>{var pt,ft,N;const it=(J==null?void 0:J.parent)||"",nt=(ft=B[((pt=J.custom)==null?void 0:pt.level)||""])==null?void 0:ft[(J==null?void 0:J.name)||""],at=K[it]=it in K?K[it]+1:0,lt=Ye(S==null?void 0:S.palette.variantColors,(((N=J.custom)==null?void 0:N.level)||1)-1);return jt(At({},J),{color:nt||Up(lt,-(at*.1))})})}function WL(t){return t.breakBy.reduce((n,S,B)=>{var K;return(K=t==null?void 0:t.seriesToColorMap)!=null&&K[S.name]&&(n[B+1]=t.seriesToColorMap[S.name]),n},{})}const Id=50,HL=1e3,UL=500,In=1e5,Ne={lineType:"straight",stackType:"classic",legend:"bottom",lineWidth:2,valueLabel:{},marker:{enabled:!1,size:"small",fill:"full"},xAxis:{type:"linear",enabled:!0,titleEnabled:!0,title:"X Axis title",gridLine:!0,labels:!0,min:null,max:null,tickInterval:null},yAxis:{type:"linear",enabled:!0,titleEnabled:!0,title:"Y Axis title",gridLine:!0,labels:!0,min:null,max:null,tickInterval:null},autoZoom:!0,pieType:Sd,pieLabels:Cd,funnelType:Ps,funnelSize:ks,funnelDirection:Ls,funnelLabels:Ts,indicatorType:"numeric",numericSubtype:"numericSimple",skin:"vertical",indicatorComponents:{title:{shouldBeShown:!1,text:""},secondaryTitle:{text:""},ticks:{shouldBeShown:!0},labels:{shouldBeShown:!0}},dataLimits:{seriesCapacity:Id,categoriesCapacity:In}},_d={scatterDefaultSize:10,scatterBubbleMinSize:12,scatterBubbleMaxSize:48},XL=(t,n)=>{var K;if(!t.enabled)return{enabled:!1};const S=(K=t.rotation)!=null?K:0,B=At({enabled:!0,align:"center",verticalAlign:"middle",types:{count:!1,relative:!0,totals:!0},rotation:S},Ms(S)==="horizontal"?{y:-1}:null);return B.formatter=function(){var N,rt;const J=this,it={maskedY:n.y,maskedX:n.x,maskedSize:n.size,maskedBreakByColor:n.breakByColor},at=[n.y,n.x,n.size,n.breakByColor].find(W=>W&&gr(W)),lt=(N=Object.entries(it).find(([,W])=>W===at))==null?void 0:N[0],pt=((rt=J.point.custom)==null?void 0:rt[lt])||"";if(isNaN(parseFloat(pt)))return pt;const ft=oe(at==null?void 0:at.numberFormatConfig);return pe(ft,parseFloat(pt))},B.style=jt(At({},B.style),{fontWeight:"",textOutline:""}),B},YL=(t,n)=>({minSize:n?t.scatterBubbleMinSize:t.scatterDefaultSize,maxSize:n?t.scatterBubbleMaxSize:t.scatterDefaultSize}),VL=(t,n)=>{var B;const S=!!n.size;return{bubble:At({animation:!1},YL((B=t.markerSize)!=null?B:_d,S)),series:{allowPointSelect:!1,boostThreshold:0,dataLabels:XL(t.valueLabel,n),stickyTracking:!1,turboThreshold:0}}};var $L=ts,ZL=Oo,qL=bo,Wl=Ve,KL=dr;function JL(t,n,S,B){if(!Wl(t))return t;n=ZL(n,t);for(var K=-1,J=n.length,it=J-1,nt=t;nt!=null&&++K<J;){var at=KL(n[K]),lt=S;if(at==="__proto__"||at==="constructor"||at==="prototype")return t;if(K!=it){var pt=nt[at];lt=B?B(pt,at,nt):void 0,lt===void 0&&(lt=Wl(pt)?pt:qL(n[K+1])?[]:{})}$L(nt,at,lt),nt=nt[at]}return t}var QL=JL,tE=Kn,eE=QL,iE=Oo;function rE(t,n,S){for(var B=-1,K=n.length,J={};++B<K;){var it=n[B],nt=tE(t,it);S(nt,it)&&eE(J,iE(it,t),nt)}return J}var oE=rE,nE=oE,sE=Eh;function aE(t,n){return nE(t,n,function(S,B){return sE(t,B)})}var lE=aE,hE=lE,cE=Wc,pE=cE(function(t,n){return t==null?{}:hE(t,n)}),Nd=pE;const dE=xe(Nd),uE=Object.freeze({"area/basic":{lineType:"straight",stackType:"classic"},"area/stacked":{lineType:"straight",stackType:"stacked"},"area/stacked100":{lineType:"straight",stackType:"stack100"},"area/spline":{lineType:"smooth",stackType:"classic"},"area/stackedspline":{lineType:"smooth",stackType:"stacked"},"area/stackedspline100":{lineType:"smooth",stackType:"stack100"},"arearange/basic":{lineType:"straight",stackType:"classic"},"arearange/spline":{lineType:"smooth",stackType:"classic"},"bar/classic":{stackType:"classic"},"bar/stacked":{stackType:"stacked"},"bar/stacked100":{stackType:"stack100"},"column/classic":{stackType:"classic"},"column/stackedcolumn":{stackType:"stacked"},"column/stackedcolumn100":{stackType:"stack100"},"line/basic":{lineType:"straight"},"line/spline":{lineType:"smooth"},"pie/classic":{pieType:"classic"},"pie/donut":{pieType:"donut"},"pie/ring":{pieType:"ring"},"polar/column":{polarType:"column"},"polar/area":{polarType:"area"},"polar/line":{polarType:"line"},"indicator/numeric":{indicatorType:"numeric"},"indicator/gauge":{indicatorType:"gauge"},treemap:{},sunburst:{},"boxplot/full":{boxplotType:"full"},"boxplot/hollow":{boxplotType:"hollow"},scattermap:{},"areamap/world":{mapType:"world"},"areamap/usa":{mapType:"usa"}});function fE(t){let n;switch(t.subtype){case"indicator/numeric":n=At({indicatorType:"numeric",numericSubtype:t.numericSubtype},t.numericSubtype==="numericSimple"?{skin:t.skin}:null);break;case"indicator/gauge":n=At({indicatorType:"gauge",skin:t.skin},t.tickerBarHeight?{tickerBarHeight:t.tickerBarHeight}:null);break}return jt(At(At({},Ne),n),{indicatorComponents:t.indicatorComponents||Ne.indicatorComponents,forceTickerView:!!t.forceTickerView})}const gE=t=>jt(At({},Ne),{mapType:t.mapType||"world"}),mE=(t,n,S)=>{const B="y"in S&&Array.isArray(S.y)?S.y.some(nt=>nt.showOnRightAxis):!1;let K;switch(t){case"bar":case"column":K=Bd(n,S,B,t);break;case"area":K=TE(n,S,B);break;case"arearange":case"line":K=AE(n,S,B);break;case"pie":K=LE(n);break;case"funnel":K=EE(n);break;case"treemap":K=OE(n);break;case"sunburst":K=DE(n);break;case"polar":K=IE(n,S);break;case"indicator":K=fE(n);break;case"scatter":K=NE(n);break;case"boxplot":K=BE(n);break;case"areamap":K=gE(n);break;case"scattermap":K=zE(n);break;default:throw new ls("errors.chartTypeNotSupported",{chartType:t})}const J="subtype"in n&&n.subtype?n.subtype:"line/basic",it=uE[J];return At(At({},K),it)};function yE(t,n,S){const B=wr(S!=null?S:{},Sr());return mE(t,B,n)}function wr(t,n){return Pe.withOptions({mergeArrays:!1},n,t)}function Es(t,n,S){return vE(t,n).map(K=>{const J=K.seriesId,it=K.seriesStyleOptions,nt=ME(n,wr(it,S));return{seriesId:J,designOptions:dE(nt,["lineWidth","marker"])}}).reduce((K,{seriesId:J,designOptions:it})=>jt(At({},K),{[J]:it}),{})}function vE(t,n){return cs(n)?bE(t):[]}function bE(t){return t.y.filter(xE).map(n=>({seriesId:n.name,seriesStyleOptions:n.seriesStyleOptions}))}function xE(t){return t.seriesStyleOptions!==void 0}const Cr=t=>t!=null&&t.enabled&&t.position||null,_n=(t,n)=>{var S,B,K,J,it;return t?{enabled:t.enabled,gridLine:t.gridLines,labels:(S=t.labels)==null?void 0:S.enabled,type:t.logarithmic?"logarithmic":"linear",titleEnabled:(B=t.title)==null?void 0:B.enabled,title:((K=t==null?void 0:t.title)==null?void 0:K.text)||null,min:(J=t.min)!=null?J:null,max:(it=t.max)!=null?it:null,tickInterval:t.isIntervalEnabled&&(t!=null&&t.intervalJumps)?t==null?void 0:t.intervalJumps:null}:n},wE=t=>(t==null?void 0:t.enabled)||!1,CE=t=>{const n=_n(t,Ne.yAxis);return n.gridLine=t.templateMainYHasGridLines||!1,n},Os=t=>{let n=1;switch(t.width){case"thin":n=1;break;case"bold":n=3;break;case"thick":n=5;break}return n},SE="classic",Ui=(t,n)=>{var lt,pt,ft,N;const S=Cr(t.legend),B=Ho(t,"cartesian"),K=_n(t.xAxis,Ne.xAxis);let J=null;(pt=(lt=t==null?void 0:t.xAxis)==null?void 0:lt.x2Title)!=null&&pt.enabled&&((N=(ft=t==null?void 0:t.xAxis)==null?void 0:ft.x2Title)!=null&&N.text)&&(J=jt(At({},Ne.xAxis),{title:t.xAxis.x2Title.text}));const it=_n(t.yAxis,Ne.yAxis);let nt={type:"linear",enabled:!0,titleEnabled:!0,title:"Y2 Axis title",gridLine:!0,labels:!0,min:null,max:null,tickInterval:null};t.y2Axis&&(nt=At(At({},nt),CE(t.y2Axis)));const at=wE(t.navigator);return jt(At(At(jt(At({},Ne),{legend:S,autoZoom:at,valueLabel:t.seriesLabels||{},xAxis:K,yAxis:it}),n&&nt&&{y2Axis:nt}),J&&{x2Axis:J}),{dataLimits:B})},Wo=t=>({enabled:t.enabled,fill:t.fill==="filled"?"full":"hollow",size:t.size==="small"?"small":"large"}),Bd=(t,n,S,B)=>{const K=Ui(t,S),J=wr(t!=null?t:{},Sr()),it=Es(n,B,J);return jt(At({},K),{designPerSeries:it,stackType:SE})},ME=(t,n)=>{var B;const S=Ui(n,!1);if(t==="line"){const K=n;S.lineWidth=Os(K.lineWidth||{width:"bold"}),S.marker=Wo((B=K==null?void 0:K.markers)!=null?B:{enabled:!0,fill:"filled",size:"small"})}return S},AE=(t,n,S)=>{var it;const B=Ui(t,S);B.lineWidth=Os(t.lineWidth||{width:"bold"}),B.marker=Wo((it=t==null?void 0:t.markers)!=null?it:{enabled:!0,fill:"filled",size:"small"});const K=wr(t!=null?t:{},Sr()),J=Es(n,"line",K);return jt(At({},B),{designPerSeries:J})},TE=(t,n,S)=>{var B;return jt(At({},Bd(t,n,S,"area")),{lineWidth:Os(t.lineWidth||{width:"thin"}),marker:Wo((B=t==null?void 0:t.markers)!=null?B:{enabled:!0,fill:"filled",size:"small"})})},Ho=(t,n)=>{var K;const S={seriesCapacity:n==="categorical"?In:n==="pie"?HL:Id,categoriesCapacity:n==="scatter"?UL:In},B=(K=t==null?void 0:t.dataLimits)!=null?K:{};return"categoriesCapacity"in B&&(B==null?void 0:B.categoriesCapacity)!==void 0&&(S.categoriesCapacity=B==null?void 0:B.categoriesCapacity),(B==null?void 0:B.seriesCapacity)!==void 0&&(S.seriesCapacity=B==null?void 0:B.seriesCapacity),S},kE={enabled:!0,showCategories:!0,showValue:!0,showPercent:!0,showDecimals:!1},PE="classic",LE=t=>{var nt,at,lt,pt,ft;const{legend:n,labels:S}=t;let B=kE;S&&(B=jt(At({},B),{showCategories:(nt=S.categories)!=null?nt:!1,showDecimals:(at=S.decimals)!=null?at:!1,enabled:(lt=S.enabled)!=null?lt:!1,showPercent:(pt=S.percent)!=null?pt:!1,showValue:(ft=S.value)!=null?ft:!1}));const K=PE,J=t!=null&&t.convolution?t.convolution:{enabled:!1},it=Ho(t,"pie");return jt(At({},Ne),{pieLabels:B,pieType:K,convolution:J,legend:Cr(n),dataLimits:it})},EE=t=>{var at,lt,pt,ft,N;const{funnelType:n=Ps,funnelSize:S=ks,funnelDirection:B=Ls,legend:K,labels:J}=t;let it=Ts;J&&(it=jt(At({},it),{showCategories:(at=J.categories)!=null?at:!1,showDecimals:(lt=J.decimals)!=null?lt:!1,enabled:(pt=J.enabled)!=null?pt:!1,showPercent:(ft=J.percent)!=null?ft:!1,showValue:(N=J.value)!=null?N:!1}));const nt=Ho(t,"categorical");return jt(At({},Ne),{funnelSize:S,funnelType:n,funnelDirection:B,funnelLabels:it,legend:Cr(K),dataLimits:nt})},OE=t=>t,DE=t=>t,jE="column",IE=(t,n)=>{const S=Ui(t,!1),B=wr(t!=null?t:{},Sr()),K=Es(n,"polar",B);return jt(At({},S),{polarType:jE,designPerSeries:K})},_E=t=>At(At({},_d),t),NE=t=>{var n;return jt(At({},Ui(t,!1)),{lineWidth:0,marker:Wo((n=t==null?void 0:t.markers)!=null?n:{enabled:!0,fill:"filled",size:"small"}),dataLimits:Ho(t,"scatter"),markerSize:_E(t.markerSize),legend:Cr(t.legend)})},BE=t=>jt(At({},Ui(t,!1)),{boxplotType:t.subtype==="boxplot/hollow"?"hollow":"full"}),RE={fill:"filled",size:{defaultSize:4,minSize:4,maxSize:24}},zE=t=>jt(At({},Ne),{markers:Pe(RE,t.markers||{})}),FE={type:"sunburst",borderWidth:0,dataLabels:{style:{textOutline:"none"}}},GE={title:{text:null},chart:{type:"sunburst",spacing:[20,20,20,20],alignTicks:!1,polar:!1,animation:{duration:300}},series:[],plotOptions:{series:{},sunburst:{events:{legendItemClick:function(t){t.preventDefault()}}}}};function WE(t,n,S,B){return jt(At({},GE),{series:[jt(At({},FE),{name:"Root",data:FL(t,n,B),levels:zL(t,n,S,B),showInLegend:!1}),...n.breakBy.map((K,J)=>({name:K.title||K.name,showInLegend:!0,color:Ye(B==null?void 0:B.palette.variantColors,J),data:[],states:{hover:{enabled:!1}}}))],tooltip:Ld(n,S,{displayTotalContribution:!0,displayColorCircles:!0,shouldSkip:K=>K.point.options.id===jn}),legend:yi(Cr(S.legend))})}const HE=(t,n,S,B,K)=>{var at,lt;const J=[],it=Fo(n,S),nt=20;switch(n){case"pie":const pt=S,{series:ft,convolutionSeries:N,alerts:rt}=dL(t,B,pt,K);return J.push(...rt),{options:{title:{text:null},chart:{type:it,spacing:[nt,20,20,20],alignTicks:!1,polar:!1},xAxis:[],yAxis:[],legend:yi(pt.legend),series:ft,plotOptions:JP(pt.pieType,pt.pieLabels,B,K),tooltip:_l((at=pt.pieLabels)==null?void 0:at.showDecimals,B),drilldown:{activeDataLabelStyle:{cursor:"pointer",fontWeight:"bold",textDecoration:"none"},series:N}},alerts:J};case"funnel":const R=S,{series:U,alerts:Y}=mL(t,B,R,K);return J.push(...Y),{options:{title:{text:null},chart:{type:it,spacing:[30,30,30,30],alignTicks:!1,polar:!1},xAxis:[],yAxis:[],legend:yi(R.legend),series:U,plotOptions:cL(R,B,K),tooltip:_l((lt=R.funnelLabels)==null?void 0:lt.showDecimals,B)},alerts:J};case"treemap":return{options:RL(t,B,S,K),alerts:J};case"sunburst":return{options:WE(t,B,S,K),alerts:J};default:throw new Error("Unexpected chart type")}},Ge="#d1d1d7";function Rd(t,n,S){if(S&&S.length&&!S.includes(n))return"";const B=typeof n=="number"?n:parseFloat(n);return isNaN(B)?`${n}`:t&&Hi(t)&&!me(t.type)?`${n}`:pe(oe(t==null?void 0:t.numberFormatConfig),B)}const UE=(t,n,S)=>[{type:t.type,startOnTick:!1,endOnTick:!(t.max||n),labels:{overflow:"justify",enabled:t.enabled&&t.labels,autoRotation:[-10,-20,-30,-40,-50,-60,-70,-80,-90],style:de,formatter:function(){return Rd(S==null?void 0:S.x,this.value,this.axis.categories)}},categories:n||void 0,gridLineWidth:t.enabled&&t.gridLine?1:0,gridLineColor:Ge,gridLineDashStyle:"Dot",title:{enabled:t.enabled&&t.titleEnabled,margin:25,text:t.title||null},lineColor:Ge,lineWidth:1,minorTickColor:Ge,minorGridLineColor:Ge,minorGridLineDashStyle:"Dot",minorTickLength:0,tickLength:0,tickColor:Ge,tickmarkPlacement:"on",tickInterval:t.enabled?t.tickInterval:null,min:t.enabled?t.min:null,max:t.enabled?t.max:null}],XE=(t,n,S)=>[{type:t.type,startOnTick:!1,endOnTick:!(t.max||n),title:{enabled:t.enabled&&t.titleEnabled,text:t.title||null},labels:{enabled:t.labels,autoRotation:[-10,-20,-30,-40,-50,-60,-70,-80,-90],style:de,formatter:function(){return Rd(S==null?void 0:S.y,this.value,this.axis.categories)}},categories:n||void 0,gridLineColor:Ge,gridLineDashStyle:"Dot",gridLineWidth:1,lineColor:Ge,lineWidth:1,maxPadding:.025,minPadding:.025,minorGridLineColor:Ge,minorGridLineDashStyle:"Dot",minorGridLineWidth:0,minorTickColor:Ge,minorTickWidth:0,opposite:!1,tickColor:Ge,tickWidth:0,tickmarkPlacement:"on",tickInterval:t.enabled?t.tickInterval:null,min:t.enabled?t.min:null,max:t.enabled?t.max:null}],zd="#00cee6",Nn=t=>{const n=t.rawValue==null?Number(t.displayValue):Number(t.rawValue);return Number.isNaN(n)||n===void 0?null:n},YE=t=>t?Nn(t):1,VE=(t,n)=>{const{xAxis:S,yAxis:B,breakByPoint:K,breakByColor:J,size:it}=t,{xCategoriesMap:nt,yCategoriesMap:at}=n,lt=nt.get(S.displayValue),pt=at.get(B.displayValue),ft=S.blur||B.blur||(K==null?void 0:K.blur);return{x:lt!==void 0?lt:Nn(S),y:pt!==void 0?pt:Nn(B),z:YE(it),maskedX:S.displayValue,maskedY:B.displayValue,maskedBreakByPoint:K==null?void 0:K.displayValue,maskedBreakByColor:J==null?void 0:J.displayValue,color:J==null?void 0:J.color,maskedSize:it==null?void 0:it.displayValue,selected:ft}},$E=(t,n,S)=>{var it;const B=new Map;t.forEach(nt=>{var at;if(nt.breakByColor){const{displayValue:lt,color:pt}=nt.breakByColor;if(lt&&!B.has(lt)){const ft=pt||((at=n==null?void 0:n.seriesToColorMap)==null?void 0:at[lt]);B.set(lt,ft)}}});const K=new Map,J=me((it=n==null?void 0:n.breakByColor)==null?void 0:it.type)?"number":"string";return Array.from(B).sort(([nt],[at])=>Uc(nt,at,Hc.ASC,J)).forEach(([nt,at],lt)=>{K.set(nt,{color:at!=null?at:Ye(S==null?void 0:S.palette.variantColors,lt),index:lt})}),K},ZE=(t,n,S)=>{const B={enabled:!0,fillOpacity:.7,lineWidth:1,states:{select:{fillOpacity:.3,lineWidth:1}}};return t.size?Array.from(t).map(([K,{index:J,color:it}])=>({data:[],index:J,marker:B,name:K,showInLegend:!0,type:"bubble",color:it})):[{data:[],index:0,marker:B,name:n,showInLegend:!!n,type:"bubble",color:fp(S)||zd}]},qE=(t,n)=>{const S=t.get(n);return S?S.index:0},KE=(t,n)=>{const S=ws({getValueFromDataStructure:B=>{var K;return parseFloat(`${(K=B.custom)==null?void 0:K.maskedBreakByColor}`)},applyColorToDataStructure:(B,K)=>jt(At({},B),{color:K})});return t.map(B=>jt(At({},B),{data:S(B.data,n)}))},JE=t=>{if(t&&gr(t)&&t.color)return t.color},QE=(t,n,S,B)=>{for(const K of n){const{x:J,y:it,z:nt,maskedX:at,maskedY:lt,maskedBreakByPoint:pt,maskedSize:ft,color:N,maskedBreakByColor:rt,selected:W}=VE(K,S);if(J!==null&&it!==null){const R=t[qE(B,rt)],U={color:N||R.color||zd,x:J,y:it,z:nt,custom:{maskedX:at,maskedY:lt,maskedBreakByPoint:pt,maskedBreakByColor:rt,maskedSize:ft},selected:W};R.data.push(U)}}return t},tO=t=>{const n=t==null?void 0:t.breakByColor,S=t==null?void 0:t.breakByPoint;return n&&Fe(n)||S&&Fe(S)||""},eO=(t,n,S,B)=>{const K=S==null?void 0:S.breakByColor,J=tO(S),it=JE(K),nt=K&&Hi(K)?$E(t,S,B):new Map;let at=ZE(nt,J,it);return at=QE(at,t,n,nt),it&&(at=KE(at,it)),at},iO=(t,n)=>n?t.slice(0,n):t,rO=(t,n,S,B,K)=>{const J=[],it=eO(t,n,S,B);return K&&it.length>K?(J.push(Ii(it.length,K)),{series:iO(it,K),alerts:J}):{series:it,alerts:J}},zr=20,oO=30,nO=t=>jt(At({},yi(t)),{symbolHeight:12,symbolWidth:12,itemMarginBottom:0,itemMarginTop:0}),sO=(t,n,S,B,K)=>{const J=[],it=Fo(n,S),nt=B,{scatterDataTable:at}=t,{seriesCapacity:lt,categoriesCapacity:pt}=S.dataLimits;let{xCategories:ft,yCategories:N}=t;ft&&ft.length>pt&&(J.push(Ln("x",ft.length,pt)),ft=ft.slice(0,pt)),N&&N.length>pt&&(J.push(Ln("y",N.length,pt)),N=N.slice(0,pt));const{series:rt,alerts:W}=rO(at,j2(ft,N),nt,K,lt);return J.unshift(...W),{options:{title:{text:null},subtitle:{text:null},chart:{type:it,spacing:[zr,zr,zr,zr],marginTop:oO,alignTicks:!1,polar:!1},xAxis:UE(S.xAxis,ft==null?void 0:ft.slice(0,pt),nt),yAxis:XE(S.yAxis,N==null?void 0:N.slice(0,pt),nt),legend:nO(S.legend),series:rt,plotOptions:VL(S,nt),tooltip:lP(nt)},alerts:J}},aO=(t,n)=>{const S=[],[B,K]=t.series,{boxplotType:J}=n,it=[jt(At({},B),{data:B.data.map(nt=>{var at;return jt(At({},nt),{color:"#0090a1",fillColor:J==="hollow"?"transparent":"#00cee6",innerBoxColor:J==="hollow"?"transparent":"#00afc4",selected:(at=nt.blur)!=null?at:!1})}),medianWidth:1,maxPointWidth:42,minPointWidth:20,whiskerWidth:1,whiskerLength:"100%",fillOpacity:.8,strokeOpacity:.8,showInLegend:!0,legendIndex:0,yAxis:0,color:"#0090a1"})];return K&&it.push(jt(At({},K),{data:K.data.map(nt=>jt(At({},nt),{marker:{lineColor:nt.blur?"rgba(0, 144, 161, 0.3)":"#0090a1"}})),type:"scatter",legendIndex:1,showInLegend:!1,marker:{enabled:!0,fillColor:"transparent",lineWidth:1,lineColor:"#0090a1"},color:"#0090a1"})),{series:it,alerts:S}},We="#d1d1d7",lO=t=>t.series[0].data.reduce((n,{low:S,high:B})=>({min:Math.min(n.min,S),max:Math.max(n.max,B)}),{min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY}),hO=(t,n,S)=>[{labels:{overflow:"none",enabled:t.enabled&&t.labels,autoRotation:[-10,-20,-30,-40,-50,-60,-70,-80,-90],style:de,formatter(){const{value:B}=this;if(S&&Hi(S)&&!me(S.type))return`${B}`;const K=typeof B=="number"?B:parseFloat(B);return isNaN(K)?`${B}`:pe(oe(S==null?void 0:S.numberFormatConfig),K)}},categories:n,title:{text:t.enabled&&t.titleEnabled&&t.title||null,margin:25},tickmarkPlacement:"on",gridLineWidth:t.enabled&&t.gridLine?1:0,minorTickLength:0,tickLength:0,startOnTick:!0,endOnTick:!0,lineColor:We,tickColor:We,minorTickColor:We,gridLineColor:We,gridLineDashStyle:"Dot",minorGridLineColor:We,minorGridLineDashStyle:"Dot",min:t.enabled?t.min:null,max:t.enabled?t.max:null}],cO=(t,n,S)=>{const B=lO(n);return[{labels:{enabled:t.enabled&&t.labels,autoRotation:[-10,-20,-30,-40,-50,-60,-70,-80,-90],style:de,formatter(){return pe(oe(S==null?void 0:S.numberFormatConfig),this.value)}},tickmarkPlacement:"on",title:{text:t.enabled&&t.titleEnabled&&t.title||null,margin:25,style:de},minorGridLineWidth:0,lineColor:We,lineWidth:1,tickColor:We,minorTickColor:We,gridLineColor:We,gridLineDashStyle:"Dot",gridLineWidth:t.enabled&&t.gridLine?1:0,minorGridLineColor:We,minorGridLineDashStyle:"Dot",min:t.enabled&&kn(t.min)?t.min:B.min,max:t.enabled&&kn(t.max)?t.max:B.max,tickInterval:t.enabled?t.tickInterval:null}]},Hl=t=>function(n,S){const B=S?this.point[S]:void 0;return B===void 0||isNaN(B)?"":pe(oe(t),B)},pO=t=>{var n,S,B,K;return{series:{dataLabels:{enabled:(n=t.enabled)!=null?n:!1,style:{fontFamily:"Open Sans",fontSize:"13px",fontWeight:"normal",color:"#001b4f"},rotation:(S=t.rotation)!=null?S:0,align:"center",formatter:Hl()},grouping:!1,stickyTracking:!1,turboThreshold:0,boostThreshold:0,softThreshold:!1},boxplot:{dataLabels:{enabled:(B=t.enabled)!=null?B:!1,style:{fontFamily:"Open Sans",fontSize:"13px",fontWeight:"normal",color:"#001b4f"},rotation:(K=t.rotation)!=null?K:0,align:"center",formatter:Hl()}},scatter:{dataLabels:{enabled:!1}}}};function dO(t){return t===void 0}var uO=dO;const Fd=xe(uO),fO=(t,n)=>({animation:!1,backgroundColor:si,borderColor:gi,borderRadius:10,borderWidth:1,useHTML:!0,formatter(){const{x:S,y:B}=this,{high:K,low:J,q3:it,q1:nt,median:at}=this.point,lt=Fd(K),pt=sr(t.category,S,`${S}`);if(lt){const U=be(t.outliers,B,`${B}`);return mi(`
131
- <div>${this.series.name}</div>
132
- <div>${ce(U,this.point.color)}</div>
133
- ${t.category?`${ni()}<div>${pt}</div>`:""}
134
- `)}const ft=be(t.whiskerMax,K,`${K}`),N=be(t.whiskerMin,J,`${J}`),rt=be(t.boxMax,it,`${it}`),W=be(t.boxMin,nt,`${nt}`),R=be(t.boxMedian,at,`${at}`);return mi(`
135
- <div>${n("boxplot.tooltip.whiskers")}</div>
136
- <div class="csdk-boxplot-tooltip-row">
137
- <span>${n("boxplot.tooltip.max")}</span>
138
- ${ce(ft,this.point.color)}
139
- </div>
140
- <div class="csdk-boxplot-tooltip-row">
141
- <span>${n("boxplot.tooltip.min")}</span>
142
- ${ce(N,this.point.color)}
143
- </div>
144
- ${ni()}
145
- <div>${n("boxplot.tooltip.box")}</div>
146
- <div class="csdk-boxplot-tooltip-row">
147
- <span>${n("boxplot.tooltip.max")}</span>
148
- ${ce(rt,this.point.color)}
149
- </div>
150
- <div class="csdk-boxplot-tooltip-row">
151
- <span>${n("boxplot.tooltip.min")}</span>
152
- ${ce(W,this.point.color)}
153
- </div>
154
- <div class="csdk-boxplot-tooltip-row">
155
- <span>${n("boxplot.tooltip.median")}</span>
156
- ${ce(R,this.point.color)}
157
- </div>
158
- ${ni()}
159
- <div>${t.category?pt:this.series.name}</div>
160
- `)}}),gO=(t,n,S,B)=>{const K=Fo("boxplot",n),{series:J,alerts:it}=aO(t,n),nt=t.xValues.map(lt=>lt.key);return{options:{title:{text:null},chart:{type:K,spacing:[25,20,20,20],polar:!1,zooming:{type:"x"},events:{selection:lt=>{lt.preventDefault()}}},legend:yi(n.legend),xAxis:hO(n.xAxis,nt,S.category),yAxis:cO(n.yAxis,t,S.whiskerMax),series:J,plotOptions:pO(n.valueLabel),navigator:wd(K,n.autoZoom,t.xValues.length),tooltip:fO(S,B)},alerts:it}},mO=(t,n,S)=>({animation:!1,crosshairs:!0,backgroundColor:si,borderColor:gi,borderRadius:10,borderWidth:1,useHTML:!0,formatter:function(){var q,$,G,D;const B=this;if(!B.point.low||!B.point.high)return xd(B,t,n,S);let K;B.percentage&&(K=`${Math.round(B.percentage)}`);const J=n,it=(q=J.rangeValues)==null?void 0:q.find(J.breakBy.length>0?E=>E[0].enabled:E=>E[0].title===B.series.name),[nt,at]=it!=null?it:[void 0,void 0],lt=pd(nt),pt=be(nt,B.point.high,""),ft=be(at,B.point.low,""),N=(D=(G=($=B.point)==null?void 0:$.custom)==null?void 0:G.xDisplayValue)!=null?D:B.x,rt=J.x?sr(J.x[0],B.x,N):N,W=pt+(lt&&K?` / ${K}%`:""),R=ft+(lt&&K?` / ${K}%`:""),U=B.point.color||B.series.color,{upperPointName:Y,lowerPointName:Z}=B.point;return mi(`
161
- <div>${B.series.name}</div>
162
- <div class="csdk-range-tooltip-row">
163
- <span>${Y||S("arearange.tooltip.max")}</span>
164
- ${ce(W,U)}
165
- </div>
166
- <div class="csdk-range-tooltip-row">
167
- <span>${Z||S("arearange.tooltip.min")}</span>
168
- ${ce(R,U)}
169
- </div>
170
- ${ni()}
171
- <div>${rt||""}</div>
172
- `)}}),Ul=(t,n,S,B,K,J,it)=>{var E,x;const nt=[],at=[];B.seriesValues.forEach(T=>{at.push(T),nt.push(T)}),B.rangeValues.forEach(([T,u])=>{at.push(u),nt.push(T)});const ft=jt(At({},B),{y:at,seriesToColorMap:B.seriesToColorMap}),N=En(jt(At({},t),{type:"cartesian"}),n,S,ft,K,J,it),rt={};N.options.series.forEach(T=>{rt[T.name]=T});const W=jt(At({},B),{y:nt,seriesToColorMap:B.seriesToColorMap}),R=En(jt(At({},t.seriesOther),{type:"cartesian"}),n,S,W,K,J,it),U={};R.options.series.forEach(T=>{U[T.name]=T});let Y=1/0,Z=-1/0,q=-1,$=0;if(N.options.series.forEach((T,u)=>{if(B.breakBy.length===0&&u<B.seriesValues.length)Pi(T.name)&&(q=N2(T,U,rt)),T.zIndex=1,T.data.forEach(p=>{p.y&&p.y<Y&&(Y=p.y),p.y&&p.y>Z&&(Z=p.y)});else{const p=U[T.name].data;T.yAxis=0;let g=0;B.breakBy.length===0&&(g=u-B.seriesValues.length);const v=B.rangeValues[g],y=v[0].name.indexOf("_")+1,C=v[1].name.substring(y),P=v[0].name.substring(y);T.type="arearange",Pi(T.name)&&B2(T,U),$=Math.max(T.data.length,$),T.data=T.data.map((L,M)=>{const f=jt(At({},L),{low:p[M].y,high:L.y,y:void 0,upperPointName:C,lowerPointName:P});return f.low&&f.low<Y&&(Y=f.low),f.high&&f.high>Z&&(Z=f.high),f}),Pi(T.name)&&R2(T,U)}}),N.options.xAxis||(N.options.xAxis=[]),q>0&&z2(N.options.xAxis,q,$),n==="arearange"&&S.lineType==="smooth"){const T="areasplinerange";N.options.chart.type=T,(E=N.options.navigator)!=null&&E.series&&(N.options.navigator.series.type=T)}n==="arearange"&&(N.options.tooltip=mO(!1,B,K));const[G]=(x=N.options.yAxis)!=null?x:[],D=jt(At({},G),{min:Y,max:Z});return N.options.yAxis=[D],N},yO=(t,n,S,B,K,J,it)=>{switch(t.type){case"range":return Ul(t,n,S,B,K,J,it);case"cartesian":{const nt=B,at=id(nt)?Ul(jt(At({},t),{type:"range"}),n,S,rd(nt),K,J,it):En(t,n,S,nt,K,J,it);return G2(at.options.series,K),at}case"categorical":return HE(t,n,S,B,J);case"scatter":return sO(t,n,S,B,J);case"boxplot":return gO(t,S,B,K);default:throw new Error("Unexpected chart type")}},vO={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}},Sr=()=>fr(vO);class Gd extends mo{constructor(S,B){var K;super((K=S.jaql.title)!=null?K:"",B);le(this,"metadataItem");le(this,"expression");le(this,"skipValidation");le(this,"aggregation");le(this,"formula");le(this,"sortType");this.expression=S.jaql.dim||S.jaql.formula,this.metadataItem=S,S.jaql.agg?this.aggregation=S.jaql.agg:delete this.aggregation,S.jaql.formula?this.formula=S.jaql.formula:delete this.formula,S.jaql.sort?this.sortType=cd(S.jaql.sort):delete this.sortType,this.skipValidation=!0}get id(){return this.expression}jaql(){return this.metadataItem}}const bO={text:Ut.TextAttribute,numeric:Ut.NumericAttribute,datetime:Ut.DateLevel};function Ds(t){var n;return new Gd(t,(n=bO[t.jaql.datatype])!=null?n:"numeric")}const xO=t=>"chartType"in t.chartRecommendations?t.chartRecommendations:{chartType:"table",chartFamily:"table",axesMapping:{}},Wd=t=>({dataOptions:{columns:t.map(Ds)}}),wO=Object.freeze({convolution:{enabled:!0,selectedConvolutionType:"bySlicesCount",independentSlicesCount:7},lineWidth:{width:"bold"},markers:{enabled:!1},legend:{enabled:!1},yAxis:{gridLines:!1},xAxis:{gridLines:!1}}),CO=Object.freeze({line:"line/spline",pie:"pie/donut",bar:"bar/stacked",column:"column/stackedcolumn"}),SO=(t,n)=>{const{axesMapping:S,chartFamily:B}=n,K=t.reduce((it,nt)=>(it[nt.jaql.title]=nt,it),{}),J=Object.entries(S).reduce((it,nt)=>{const[at,lt]=nt;return it[`${at}`]=Array.isArray(lt)?lt.map(pt=>{var rt,W;const ft=K[pt.name];if(!ft)return{column:{type:"",name:pt.name}};const N=Ds(ft);if(ft.panel==="measures")return{column:N,sortType:"sortNone"};if(Ue(N.type)){const R=(W=(rt=ft.format)==null?void 0:rt.mask)==null?void 0:W[ft.jaql.level];if(R)return{column:N,dateFormat:R}}return N}):lt,it},{});switch(B){case"cartesian":return At({category:[],value:[],breakBy:[]},J);case"categorical":return At({category:[],value:[]},J);case"scatter":return Object.keys(J).forEach(it=>{J[`${it}`]=J[`${it}`][0]}),J;case"scattermap":return Object.keys(J).forEach(it=>{it!=="geo"&&(J[`${it}`]=J[`${it}`][0])}),J;case"table":return Object.keys(J).length===0?Wd(t).dataOptions:J;case"boxplot":case"areamap":case"indicator":default:return J}},Xl=(t,n)=>{var S,B,K,J;return n==="x"?(B=(S=t.axesMapping.category)!=null?S:t.axesMapping.x)==null?void 0:B.map(it=>it.name).join(", "):(J=(K=t.axesMapping.value)!=null?K:t.axesMapping.y)==null?void 0:J.map(it=>it.name).join(", ")},MO=(t,n,S=!0)=>{const B=SO(t,n);let K,J;return S?(K=Pe(wO,{subtype:CO[n.chartType]}),J=Pe(K,{legend:{enabled:!0,position:"right"},yAxis:{title:{enabled:!0,text:Xl(n,"y")}},xAxis:{title:{enabled:!0,text:Xl(n,"x")}}})):(K=Sr(),J=K),{dataOptions:B,chartStyleOptions:K,expandedChartStyleOptions:J}},AO=t=>cs(t)?"cartesian":Qc(t)?"categorical":tp(t)?"scatter":ep(t)?"scattermap":ip(t)?"indicator":np(t)?"areamap":op(t)?"boxplot":"table";exports.AbstractTranslatableError=Fn;exports.AggregationTypes=re;exports.BOXPLOT_CHART_TYPES=Kc;exports.CARTESIAN_CHART_TYPES=$c;exports.CATEGORICAL_CHART_TYPES=Zc;exports.CascadingFilter=Mc;exports.Color=Jt;exports.CurrencyPosition=sd;exports.CustomFilter=Pc;exports.DEFAULT_COLOR=io;exports.DateLevels=Nt;exports.DateOperators=Ei;exports.DateRangeFilter=kc;exports.DimensionalAttribute=Gi;exports.DimensionalBaseMeasure=Qe;exports.DimensionalCalculatedMeasure=Li;exports.DimensionalLevelAttribute=Be;exports.FORECAST_PREFIX=zo;exports.FilterTypes=Ie;exports.Highcharts=Ed;exports.JaqlElement=Gd;exports.MeasureFilter=Ac;exports.MembersFilter=Sc;exports.MetadataTypes=Ut;exports.NumericFilter=Tc;exports.NumericOperators=ye;exports.RANGE_CHART_TYPES=Jc;exports.RankingFilter=os;exports.RankingOperators=rs;exports.RelativeDateFilter=ns;exports.SCATTER_CHART_TYPES=qc;exports.TREND_PREFIX=Ss;exports.TRIANGLE_COLOR_ADJUSTMENT=Vk;exports.TextFilter=Ze;exports.TextOperators=$e;exports.TranslatableError=ls;exports.WidgetDashboardFilterMode=nd;exports._Set=vh;exports._SetCache=ch;exports._Stack=Lo;exports._WeakMap=bh;exports._apply=zc;exports._arrayEach=Wh;exports._arrayMap=Ah;exports._baseAssignValue=vo;exports._baseCreate=Vh;exports._baseFlatten=Rc;exports._baseFor=oh;exports._baseForOwn=hh;exports._baseGetTag=vi;exports._baseIsEqual=Vn;exports._baseIteratee=Oh;exports._baseToString=kh;exports._baseTrim=Ic;exports._baseUnary=xo;exports._cacheHas=ph;exports._cloneBufferExports=Hh;exports._cloneTypedArray=Yh;exports._copyArray=Uh;exports._copyObject=ur;exports._flatRest=Wc;exports._getPrototype=es;exports._hasPath=Lh;exports._initCloneObject=$h;exports._isIndex=bo;exports._overRest=Fc;exports._root=De;exports._setToArray=fh;exports._setToString=Gc;exports.advancedAnalyticsData=W2;exports.applyFormatPlainText=pe;exports.applyOpacity=Qk;exports.between=eo;exports.bottomRanking=fc;exports.cartesianData=Tn;exports.cloneDeep=fr;exports.commonjsGlobal=Ke;exports.contains=ic;exports.convertFilterRelationsModelToJaql=eP;exports.createCompareValue=er;exports.createDataColoringFunction=ws;exports.createDataTableFromData=EA;exports.createFilterFromJaql=xM;exports.createJaqlElement=Ds;exports.customFormula=Zx;exports.dateRange=cc;exports.dateRelativeFrom=pc;exports.dateRelativeTo=dc;exports.deriveChartFamily=AO;exports.doesntContain=Qh;exports.doesntEndWith=tc;exports.doesntEqual=yS;exports.doesntStartWith=ec;exports.emptyTable=gs;exports.endsWith=rc;exports.eq_1=Mo;exports.equals=nc;exports.exclude=Jh;exports.forecast=Qx;exports.formatTooltipValue=be;exports.get=Qb;exports.getAugmentedNamespace=yu;exports.getChartOptions=MO;exports.getChartRecommendationsOrDefault=xO;exports.getChartSubtype=$2;exports.getChartType=V2;exports.getColoringServiceByColorOptions=Yp;exports.getColumnByName=ii;exports.getColumnsByName=ir;exports.getCompleteNumberFormatConfig=oe;exports.getDarkFactor=xr;exports.getDataOptionTitle=Fe;exports.getDataSourceName=vM;exports.getDefaultDateFormat=As;exports.getDefaultExportFromCjs=xe;exports.getDefaults=Su;exports.getEnabledPanelItems=J2;exports.getFilterCompareId=po;exports.getFilterListAndRelations=yM;exports.getFilterRelationsFromJaql=tP;exports.getI18n=Au;exports.getIndexedRows=fs;exports.getOrderedXValues=Qp;exports.getPaletteColor=Ye;exports.getRootPanelItem=hd;exports.getSelectedConditionOption=Io;exports.getSlightlyDifferentColor=Jk;exports.getSortType=cd;exports.getTableOptions=Wd;exports.getUniformColorOptionsFromString=ms;exports.getValue=ds;exports.greaterThan=sc;exports.greaterThanOrEqual=ac;exports.groupBy=lp;exports.highchartsOptionsService=yO;exports.identity_1=Jn;exports.initI18next=zn;exports.initializeI18n=Kl;exports.isAreamap=np;exports.isArguments_1=lr;exports.isArrayLike_1=So;exports.isArray_1=je;exports.isBlurred=us;exports.isBoolean=Ih;exports.isBoxplot=op;exports.isBufferExports=hr;exports.isCartesian=cs;exports.isCascadingFilter=ad;exports.isCategorical=Qc;exports.isCategory=Hi;exports.isCell=Yc;exports.isChartWidget=K2;exports.isConditionFilter=bc;exports.isDataSourceInfo=bM;exports.isDataTableEmpty=LA;exports.isDatetime=Ue;exports.isEmpty_1=Vp;exports.isForecastChart=id;exports.isFunction=pf;exports.isFunction_1=yo;exports.isIndicator=ip;exports.isMeasureColumn=Nc;exports.isNumber=me;exports.isNumber$1=kn;exports.isNumber_1=od;exports.isObjectLike_1=ti;exports.isObject_1=Ve;exports.isPivotWidget=ld;exports.isRange=NA;exports.isScatter=tp;exports.isScattermap=ep;exports.isSpecificItemsFilter=vc;exports.isSupportedWidgetType=Z2;exports.isTable=_A;exports.isTableWidget=q2;exports.isText=jh;exports.isTypedArray_1=wo;exports.isUndefined=Fd;exports.isValue=gr;exports.keysIn_1=Do;exports.lessThan=lc;exports.lessThanOrEqual=hc;exports.like=mS;exports.mapValues=Dh;exports.max=Kx;exports.members=jo;exports.merge=Pe;exports.merge$1=ke;exports.mergeFilters=$r;exports.mergeFiltersByStrategy=Q2;exports.min=qx;exports.normalizeAttributeName=fn;exports.normalizeName=ei;exports.orderBy=ap;exports.parseISO=ss;exports.pick_1=Nd;exports.prepareChartDesignOptions=yE;exports.rangeData=td;exports.requiredArgs=Ec;exports.rownumColumnName=hs;exports.safeCombine=x2;exports.scaleBrightness=Up;exports.scatterData=_2;exports.selectColumns=hp;exports.simpleColumnType=_h;exports.sortDirection=Jp;exports.spanSegment=ce;exports.splitColumn=Zp;exports.startsWith=oc;exports.toColor=Re;exports.toFinite_1=_c;exports.toGray=Hp;exports.toInteger=Lc;exports.toNumber_1=as;exports.toString_1=qn;exports.tooltipWrapper=mi;exports.topRanking=uc;exports.translateAttributeToCategory=S2;exports.translateCategoryToAttribute=Kp;exports.translateColumnToAttribure=A2;exports.translateColumnToCategory=Cs;exports.translateColumnToCategoryOrValue=w2;exports.translateColumnToValue=qp;exports.translateMeasureToValue=C2;exports.translateValueToMeasure=M2;exports.trend=Jx;